@nicia-ai/typegraph 0.46.2 → 0.47.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 +20 -1
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +50 -49
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +11 -10
- package/dist/backend/postgres/index.cjs +27 -26
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +14 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +30 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +16 -15
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +15 -14
- package/dist/backend/sqlite/index.cjs +24 -23
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +12 -11
- package/dist/backend/sqlite/libsql.cjs +19 -18
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +14 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +35 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +31 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +17 -16
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +15 -14
- package/dist/{chunk-TCT66A7N.cjs → chunk-26YKDNUD.cjs} +10 -10
- package/dist/{chunk-TCT66A7N.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
- package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
- package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
- package/dist/{chunk-ANKOXPCC.cjs → chunk-3HGRTCDU.cjs} +6 -4
- package/dist/chunk-3HGRTCDU.cjs.map +1 -0
- package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
- package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
- package/dist/{chunk-5PDSCELM.cjs → chunk-425IZOQ5.cjs} +11 -164
- package/dist/chunk-425IZOQ5.cjs.map +1 -0
- package/dist/{chunk-S7WIRFNS.cjs → chunk-5FBRVORR.cjs} +12 -12
- package/dist/{chunk-S7WIRFNS.cjs.map → chunk-5FBRVORR.cjs.map} +1 -1
- package/dist/{chunk-GWXXHOLU.js → chunk-5FT3TLPK.js} +11 -11
- package/dist/{chunk-GWXXHOLU.js.map → chunk-5FT3TLPK.js.map} +1 -1
- package/dist/{chunk-S3G5VLSW.js → chunk-5UMTUOM5.js} +6 -6
- package/dist/{chunk-S3G5VLSW.js.map → chunk-5UMTUOM5.js.map} +1 -1
- package/dist/{chunk-RFDEYLIK.js → chunk-6FWSNSRE.js} +7 -7
- package/dist/{chunk-RFDEYLIK.js.map → chunk-6FWSNSRE.js.map} +1 -1
- package/dist/{chunk-F36KZDFX.cjs → chunk-6JVZSOHQ.cjs} +91 -91
- package/dist/{chunk-F36KZDFX.cjs.map → chunk-6JVZSOHQ.cjs.map} +1 -1
- package/dist/chunk-6KFLYYOC.cjs +161 -0
- package/dist/chunk-6KFLYYOC.cjs.map +1 -0
- package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
- package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
- package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
- package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
- package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
- package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
- package/dist/{chunk-BEB4OFZF.cjs → chunk-AMMWA76F.cjs} +51 -59
- package/dist/chunk-AMMWA76F.cjs.map +1 -0
- package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
- package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
- package/dist/{chunk-EDHV4CBU.js → chunk-AVGUJWVX.js} +30 -10
- package/dist/chunk-AVGUJWVX.js.map +1 -0
- package/dist/{chunk-C2ZP5YS6.cjs → chunk-BCQ76AXA.cjs} +258 -153
- package/dist/chunk-BCQ76AXA.cjs.map +1 -0
- package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
- package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
- package/dist/{chunk-C6KE2HSQ.cjs → chunk-BR7SHKGM.cjs} +1611 -1382
- package/dist/chunk-BR7SHKGM.cjs.map +1 -0
- package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
- package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
- package/dist/chunk-CICO5GXD.cjs +12 -0
- package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
- package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
- package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
- package/dist/{chunk-YQ4JONWE.js → chunk-DJZTXBWY.js} +342 -113
- package/dist/chunk-DJZTXBWY.js.map +1 -0
- package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
- package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
- package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
- package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
- package/dist/{chunk-E4OSGBCM.cjs → chunk-EMIB2RXD.cjs} +131 -131
- package/dist/{chunk-E4OSGBCM.cjs.map → chunk-EMIB2RXD.cjs.map} +1 -1
- package/dist/{chunk-GWUWRZXW.js → chunk-EP4RUYD6.js} +3 -3
- package/dist/{chunk-GWUWRZXW.js.map → chunk-EP4RUYD6.js.map} +1 -1
- package/dist/{chunk-LHYSY6SE.js → chunk-FNOMT74T.js} +10 -8
- package/dist/chunk-FNOMT74T.js.map +1 -0
- package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
- package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
- package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
- package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
- package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
- package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
- package/dist/{chunk-XBHRKLZU.cjs → chunk-GYUJZARH.cjs} +4 -4
- package/dist/{chunk-XBHRKLZU.cjs.map → chunk-GYUJZARH.cjs.map} +1 -1
- package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
- package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
- package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
- package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
- package/dist/{chunk-UTVQPZPN.cjs → chunk-I4G3SQPF.cjs} +20 -20
- package/dist/{chunk-UTVQPZPN.cjs.map → chunk-I4G3SQPF.cjs.map} +1 -1
- package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
- package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
- package/dist/{chunk-GVAMRRZR.cjs → chunk-JR6SX5RH.cjs} +4 -4
- package/dist/{chunk-GVAMRRZR.cjs.map → chunk-JR6SX5RH.cjs.map} +1 -1
- package/dist/{chunk-N3QTGPC7.cjs → chunk-KABFHAL7.cjs} +100 -99
- package/dist/chunk-KABFHAL7.cjs.map +1 -0
- package/dist/{chunk-KXSMF6PL.js → chunk-KH7XW7VV.js} +20 -12
- package/dist/chunk-KH7XW7VV.js.map +1 -0
- package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
- package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
- package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
- package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
- package/dist/{chunk-IHRDX7K6.js → chunk-LEWHMOUY.js} +46 -56
- package/dist/chunk-LEWHMOUY.js.map +1 -0
- package/dist/{chunk-AF3TWL5C.cjs → chunk-LRQKXRXO.cjs} +4 -4
- package/dist/{chunk-AF3TWL5C.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
- package/dist/{chunk-WYFB7BN3.js → chunk-M35DF33T.js} +143 -38
- package/dist/chunk-M35DF33T.js.map +1 -0
- package/dist/{chunk-32UETY6S.cjs → chunk-MFZR4QKM.cjs} +30 -28
- package/dist/chunk-MFZR4QKM.cjs.map +1 -0
- package/dist/chunk-MKJ4KXL5.cjs +12 -0
- package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
- package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
- package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
- package/dist/{chunk-QPOQX2DI.cjs → chunk-MX4DHSQP.cjs} +1023 -360
- package/dist/chunk-MX4DHSQP.cjs.map +1 -0
- package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
- package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
- package/dist/{chunk-DSAWGCMP.js → chunk-NAZ2RA4L.js} +3 -3
- package/dist/{chunk-DSAWGCMP.js.map → chunk-NAZ2RA4L.js.map} +1 -1
- package/dist/{chunk-R7EWHKID.js → chunk-NG2RB5WL.js} +4 -145
- package/dist/chunk-NG2RB5WL.js.map +1 -0
- package/dist/{chunk-A2LJG5GM.js → chunk-NNQ6A3RM.js} +803 -143
- package/dist/chunk-NNQ6A3RM.js.map +1 -0
- package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
- package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
- package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
- package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
- package/dist/{chunk-A4R3H7RU.cjs → chunk-OIFSOPSR.cjs} +259 -238
- package/dist/chunk-OIFSOPSR.cjs.map +1 -0
- package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
- package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
- package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
- package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
- package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
- package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
- package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
- package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
- package/dist/{chunk-AT3MLMJV.js → chunk-QS3NQZVC.js} +82 -16
- package/dist/chunk-QS3NQZVC.js.map +1 -0
- package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
- package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
- package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
- package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
- package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
- package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
- package/dist/{chunk-WEJHA7AD.js → chunk-SE6EGQSD.js} +78 -16
- package/dist/chunk-SE6EGQSD.js.map +1 -0
- package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
- package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
- package/dist/{chunk-FA6Z7B5L.js → chunk-SHSSRCFR.js} +5 -3
- package/dist/chunk-SHSSRCFR.js.map +1 -0
- package/dist/{chunk-KOAI3KIV.cjs → chunk-TZEGUG6D.cjs} +4 -4
- package/dist/{chunk-KOAI3KIV.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
- package/dist/{chunk-HNYLMPQQ.cjs → chunk-U5EDAVOJ.cjs} +140 -74
- package/dist/chunk-U5EDAVOJ.cjs.map +1 -0
- package/dist/{chunk-RHDOAQCT.cjs → chunk-UPAJHMW3.cjs} +122 -114
- package/dist/chunk-UPAJHMW3.cjs.map +1 -0
- package/dist/{chunk-BQM5P2NO.cjs → chunk-WGX7JH7E.cjs} +235 -170
- package/dist/chunk-WGX7JH7E.cjs.map +1 -0
- package/dist/{chunk-DYPRZ53S.cjs → chunk-WODMN3Q2.cjs} +27 -27
- package/dist/{chunk-DYPRZ53S.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
- package/dist/{chunk-OZJCH7ZS.js → chunk-XVWOYKIK.js} +3 -3
- package/dist/{chunk-OZJCH7ZS.js.map → chunk-XVWOYKIK.js.map} +1 -1
- package/dist/chunk-XY5OMOJD.js +147 -0
- package/dist/chunk-XY5OMOJD.js.map +1 -0
- package/dist/{chunk-KA4L2NZ3.js → chunk-XYBQI6LE.js} +14 -14
- package/dist/{chunk-KA4L2NZ3.js.map → chunk-XYBQI6LE.js.map} +1 -1
- package/dist/{chunk-EAMVXR5B.js → chunk-ZDKTPBGV.js} +4 -4
- package/dist/{chunk-EAMVXR5B.js.map → chunk-ZDKTPBGV.js.map} +1 -1
- package/dist/{chunk-Z43KWLZF.js → chunk-ZHNXLS3C.js} +9 -8
- package/dist/chunk-ZHNXLS3C.js.map +1 -0
- package/dist/{chunk-62ZXBMSD.js → chunk-ZLONH2UD.js} +46 -3
- package/dist/chunk-ZLONH2UD.js.map +1 -0
- package/dist/core/index.cjs +28 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +8 -7
- package/dist/{ddl-opIn8DfX.d.ts → ddl-CprnMXJ-.d.ts} +3 -3
- package/dist/{ddl-mE07h_EM.d.cts → ddl-DJA7Lci5.d.cts} +3 -3
- 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 +4 -4
- package/dist/graph-merge/index.cjs +3204 -635
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +502 -60
- package/dist/graph-merge/index.d.ts +502 -60
- package/dist/graph-merge/index.js +2979 -427
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-Deyu8IXL.d.ts → index-CHTv4XMZ.d.cts} +47 -3
- package/dist/{index-DrRS51Ld.d.cts → index-CzoJ3MUw.d.ts} +47 -3
- package/dist/index.cjs +229 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- 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 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +53 -52
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +17 -13
- package/dist/interchange/index.d.ts +17 -13
- package/dist/interchange/index.js +17 -16
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-DX983gJ0.d.ts → manager-B6sOQzcQ.d.ts} +2 -2
- package/dist/{manager-ptr3JLRP.d.cts → manager-DlY1vlla.d.cts} +2 -2
- package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DQL4xcpf.d.ts} +1 -1
- package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-sskhp-c_.d.cts} +1 -1
- package/dist/{postgres-DwgEXSPI.d.cts → postgres-B6YOUcaK.d.ts} +1 -1
- package/dist/{postgres-QdOMHTBz.d.ts → postgres-BXy_nyMs.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +43 -42
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +10 -9
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +45 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +18 -17
- package/dist/{searchable-BrUh0pdc.d.cts → searchable-0Cn_lY8U.d.cts} +1 -1
- package/dist/{searchable-BOUuA83f.d.ts → searchable-D9gMiwcS.d.ts} +1 -1
- package/dist/{sqlite-BfYcV61E.d.cts → sqlite-ClXuBYAj.d.ts} +1 -1
- package/dist/{sqlite-DK40XVR1.d.ts → sqlite-DioSxaPe.d.cts} +1 -1
- package/dist/{store-Bo1psfVZ.d.ts → store-5j-w5onJ.d.ts} +120 -71
- package/dist/{store-FTqBpuJD.d.cts → store-CFedKGU5.d.cts} +120 -71
- package/dist/{temporal-CXewwLTB.d.cts → temporal-Ce1pG0S1.d.cts} +1 -1
- package/dist/{temporal-DPtn0HOu.d.ts → temporal-CjO9FH1l.d.ts} +1 -1
- package/dist/{types-CeT7xM4M.d.ts → types-BrdOFu48.d.ts} +1 -1
- package/dist/{types-Du78EvpN.d.ts → types-DKkMJZjR.d.cts} +32 -6
- package/dist/{types-Du78EvpN.d.cts → types-DKkMJZjR.d.ts} +32 -6
- package/dist/{types-XR1nHERK.d.cts → types-oj_OGAaZ.d.cts} +1 -1
- package/dist/{where-CMbFiWwp.d.ts → where-C8w2627G.d.ts} +1 -1
- package/dist/{where-CJsp-YUf.d.cts → where-D1wKCJ4Q.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-32UETY6S.cjs.map +0 -1
- package/dist/chunk-5PDSCELM.cjs.map +0 -1
- package/dist/chunk-62ZXBMSD.js.map +0 -1
- package/dist/chunk-6LAXM4J2.cjs +0 -12
- package/dist/chunk-73MWKDFK.cjs +0 -12
- package/dist/chunk-A2LJG5GM.js.map +0 -1
- package/dist/chunk-A4R3H7RU.cjs.map +0 -1
- package/dist/chunk-ANKOXPCC.cjs.map +0 -1
- package/dist/chunk-AT3MLMJV.js.map +0 -1
- package/dist/chunk-BEB4OFZF.cjs.map +0 -1
- package/dist/chunk-BQM5P2NO.cjs.map +0 -1
- package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
- package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
- package/dist/chunk-EDHV4CBU.js.map +0 -1
- package/dist/chunk-FA6Z7B5L.js.map +0 -1
- package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
- package/dist/chunk-IHRDX7K6.js.map +0 -1
- package/dist/chunk-KCH7WQA5.cjs.map +0 -1
- package/dist/chunk-KXSMF6PL.js.map +0 -1
- package/dist/chunk-LHYSY6SE.js.map +0 -1
- package/dist/chunk-N3QTGPC7.cjs.map +0 -1
- package/dist/chunk-QPOQX2DI.cjs.map +0 -1
- package/dist/chunk-R7EWHKID.js.map +0 -1
- package/dist/chunk-RHDOAQCT.cjs.map +0 -1
- package/dist/chunk-WEJHA7AD.js.map +0 -1
- package/dist/chunk-WYFB7BN3.js.map +0 -1
- package/dist/chunk-YQ4JONWE.js.map +0 -1
- package/dist/chunk-Z43KWLZF.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { cw as ValueType, cx as PredicateExpression,
|
|
3
|
-
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-
|
|
4
|
-
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-
|
|
5
|
-
import { K as KindRegistry, S as SchemaManagerOptions, b as SchemaValidationResult } from './manager-
|
|
6
|
-
import { S as SchemaDiff, j as MaterializeIndexesOptions, M as MaterializeIndexesResult, k as MaterializeSystemIndexesOptions } from './materialize-indexes-
|
|
2
|
+
import { cw as ValueType, cx as PredicateExpression, aN as FulltextQueryMode, cy as VectorMetricType, Q as QueryAst, J as JsonPointer, $ as FieldRef, bk as ParameterRef, u as NodeType, v as AnyEdgeType, a5 as EdgeType, bR as TraversalExpansion, y as GraphBackend, S as SqlDialect, w as SqlSchema, cz as Traversal, cA as NodePredicate, cB as ProjectedField, bj as OrderSpec, cC as AggregateOrderSpec, T as TemporalMode, cD as GroupBySpec, a_ as HybridFusionOptions, b2 as JsonPointerInput, cE as RecursiveCyclePolicy, d as GraphDef, a2 as TraversalDirection$1, aD as EdgeRegistration, bf as NodeId, bO as TransactionBackend, _ as AggregateExpr, bC as SortDirection, ak as CompiledSelectSql, F as FulltextStrategy, V as VectorStrategy, cF as VectorSlotMap, cG as RecordedReadBinding, cH as SelectiveField, cI as ComposableQuery, cJ as SetOperationType, cK as SetOperation, G as GraphIdentityConfig, bg as NodeKinds, cL as NodeRow, K as KindEntity, aG as ExternalRecordedReadSource, aA as EdgeId, cM as EdgeRow, cN as BackendValidityEndMutation, bi as NodeRegistration, aB as EdgeKinds, bQ as TransactionReadBackend, a8 as AllNodeTypes, b7 as KindAnnotations, X as JsonSchema, bW as UniquenessScope, af as Collation, ae as Cardinality, aF as EndpointExistence, aW as GraphExtension, cO as VectorMetric, B as BackendCapabilities, C as ContributionDiagnostic, c as ContributionRepairResult, aq as ContributionProbeResult, at as ContributionRebuildScope, as as ContributionRebuildResult, bP as TransactionOptions, A as AdapterBackend } from './types-DKkMJZjR.js';
|
|
3
|
+
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-CjO9FH1l.js';
|
|
4
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-D9gMiwcS.js';
|
|
5
|
+
import { K as KindRegistry, S as SchemaManagerOptions, b as SchemaValidationResult } from './manager-B6sOQzcQ.js';
|
|
6
|
+
import { S as SchemaDiff, j as MaterializeIndexesOptions, M as MaterializeIndexesResult, k as MaterializeSystemIndexesOptions } from './materialize-indexes-DQL4xcpf.js';
|
|
7
7
|
|
|
8
8
|
type FieldTypeInfo = Readonly<{
|
|
9
9
|
valueType: ValueType;
|
|
@@ -272,7 +272,11 @@ declare function notInSubquery(field: FieldRef, subquery: QueryAst): Predicate;
|
|
|
272
272
|
|
|
273
273
|
declare const DYNAMIC_NODE_BRAND: unique symbol;
|
|
274
274
|
declare const DYNAMIC_EDGE_BRAND: unique symbol;
|
|
275
|
-
|
|
275
|
+
/** A runtime-registered node kind whose collection lookup preserved `K`. */
|
|
276
|
+
type DynamicNodeKind<K extends string = string> = K & Readonly<{
|
|
277
|
+
[DYNAMIC_NODE_BRAND]: true;
|
|
278
|
+
}>;
|
|
279
|
+
type DynamicNodeType<K extends string = string> = NodeType<DynamicNodeKind<K>> & Readonly<{
|
|
276
280
|
[DYNAMIC_NODE_BRAND]: true;
|
|
277
281
|
}>;
|
|
278
282
|
type DynamicEdgeType = AnyEdgeType & Readonly<{
|
|
@@ -1643,6 +1647,13 @@ declare const RECORDED_POINT_READ_NAMES: readonly ["getById", "getByIds"];
|
|
|
1643
1647
|
* Store types for TypeGraph operations.
|
|
1644
1648
|
*/
|
|
1645
1649
|
|
|
1650
|
+
/**
|
|
1651
|
+
* An explicit validity-end mutation. Omission preserves the stored end,
|
|
1652
|
+
* `validTo` sets it, and `clearValidTo` reopens the window. The union keeps the
|
|
1653
|
+
* two write actions mutually exclusive without exposing public `null`.
|
|
1654
|
+
*/
|
|
1655
|
+
type ValidityEndMutation = BackendValidityEndMutation;
|
|
1656
|
+
|
|
1646
1657
|
/**
|
|
1647
1658
|
* Canonical mapping from snake_case row fields to camelCase meta fields.
|
|
1648
1659
|
*
|
|
@@ -1707,8 +1718,7 @@ type UpdateNodeInput<N extends NodeType = NodeType> = Readonly<{
|
|
|
1707
1718
|
kind: N["kind"];
|
|
1708
1719
|
id: NodeId<N>;
|
|
1709
1720
|
props: Partial<z.infer<N["schema"]>>;
|
|
1710
|
-
|
|
1711
|
-
}>;
|
|
1721
|
+
}> & ValidityEndMutation;
|
|
1712
1722
|
/**
|
|
1713
1723
|
* Metadata for an edge instance.
|
|
1714
1724
|
* Derived from EdgeRow via TemporalMetaFieldMap (edges have no version).
|
|
@@ -1750,8 +1760,7 @@ type CreateEdgeInput<E extends AnyEdgeType = EdgeType> = Readonly<{
|
|
|
1750
1760
|
type UpdateEdgeInput<E extends AnyEdgeType = EdgeType> = Readonly<{
|
|
1751
1761
|
id: EdgeId<E>;
|
|
1752
1762
|
props: Partial<z.infer<E["schema"]>>;
|
|
1753
|
-
|
|
1754
|
-
}>;
|
|
1763
|
+
}> & ValidityEndMutation;
|
|
1755
1764
|
/**
|
|
1756
1765
|
* Options for node and edge queries.
|
|
1757
1766
|
*/
|
|
@@ -1921,9 +1930,9 @@ type BaseStoreOptions = Readonly<{
|
|
|
1921
1930
|
*/
|
|
1922
1931
|
autoRefreshStatistics?: false | number;
|
|
1923
1932
|
/**
|
|
1924
|
-
* Skip the write for an `upsertById
|
|
1925
|
-
* validated props are value-identical to the
|
|
1926
|
-
* off.
|
|
1933
|
+
* Skip the write for an `upsertById`, `bulkUpsertById` item, or endpoint
|
|
1934
|
+
* get-or-create update whose validated props are value-identical to the
|
|
1935
|
+
* existing live row. Default off.
|
|
1927
1936
|
*
|
|
1928
1937
|
* Enable this for at-least-once / replay materializers. An event log that
|
|
1929
1938
|
* re-delivers a byte-identical change would otherwise rewrite the row anyway:
|
|
@@ -1944,7 +1953,12 @@ type BaseStoreOptions = Readonly<{
|
|
|
1944
1953
|
* **no write at all**: no `updateNode`, no recorded-time capture, no history
|
|
1945
1954
|
* row, no revision-anchor advance, and no `update` operation hooks (nothing
|
|
1946
1955
|
* happened, so nothing is reported). It resolves with the **existing** node,
|
|
1947
|
-
* preserving its original `validFrom` / `updatedAt` / `version`.
|
|
1956
|
+
* preserving its original `validFrom` / `updatedAt` / `version`. An endpoint
|
|
1957
|
+
* get-or-create reports action `"found"` when its requested update is
|
|
1958
|
+
* coalesced; `"updated"` always means an UPDATE actually ran.
|
|
1959
|
+
* Node `getOrCreateByConstraint` updates are outside this option's scope and
|
|
1960
|
+
* still write on every `ifExists: "update"` match; replay projectors that
|
|
1961
|
+
* need coalescing should use `upsertById` for nodes.
|
|
1948
1962
|
*
|
|
1949
1963
|
* Receipt shape is unchanged and needs no new signal: a coalesced upsert
|
|
1950
1964
|
* still counts as one write intent (`writes.total` includes it), but
|
|
@@ -1960,9 +1974,8 @@ type BaseStoreOptions = Readonly<{
|
|
|
1960
1974
|
* batch already queued (a create or an update).
|
|
1961
1975
|
* 2. That row is not soft-deleted (a deleted row resurrects — a real
|
|
1962
1976
|
* change — and is never coalesced).
|
|
1963
|
-
* 3.
|
|
1964
|
-
*
|
|
1965
|
-
* applied per item in the bulk path).
|
|
1977
|
+
* 3. Any requested `validFrom` / `validTo` names the window already stored;
|
|
1978
|
+
* a changed or inapplicable temporal request reaches the write path.
|
|
1966
1979
|
* 4. The new props, merged over the stored props and run through the
|
|
1967
1980
|
* kind's Zod schema (defaults applied, values normalized), are deeply
|
|
1968
1981
|
* value-identical to the stored props (key order aside).
|
|
@@ -2240,13 +2253,7 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
|
|
|
2240
2253
|
* properties and `validTo`.
|
|
2241
2254
|
*/
|
|
2242
2255
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2243
|
-
|
|
2244
|
-
* Valid-time end for a created, updated, or resurrected edge. Ignored when
|
|
2245
|
-
* the operation returns an existing edge without writing. May not precede
|
|
2246
|
-
* the row's effective start; see `INVERTED_VALIDITY_WINDOW_CODE`.
|
|
2247
|
-
*/
|
|
2248
|
-
validTo?: string;
|
|
2249
|
-
}>;
|
|
2256
|
+
}> & ValidityEndMutation;
|
|
2250
2257
|
/**
|
|
2251
2258
|
* A collection of nodes of a specific type.
|
|
2252
2259
|
*
|
|
@@ -2267,10 +2274,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2267
2274
|
getById: (id: NodeId<N>, options?: QueryOptions) => Promise<Node<N> | undefined>;
|
|
2268
2275
|
/** Get multiple nodes by ID, preserving input order (undefined for missing) */
|
|
2269
2276
|
getByIds: (ids: readonly NodeId<N>[], options?: QueryOptions) => Promise<readonly (Node<N> | undefined)[]>;
|
|
2270
|
-
/**
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2277
|
+
/**
|
|
2278
|
+
* Update a node's properties and optionally set or clear its validity end.
|
|
2279
|
+
* Omitting both end options preserves the stored window.
|
|
2280
|
+
*/
|
|
2281
|
+
update: (id: NodeId<N>, props: Partial<z.input<N["schema"]>>, options?: ValidityEndMutation) => Promise<Node<N>>;
|
|
2274
2282
|
/**
|
|
2275
2283
|
* Updates every current node selected by the supplied predicates in one
|
|
2276
2284
|
* set-based write. Relationship clauses are independent EXISTS predicates
|
|
@@ -2350,9 +2358,8 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2350
2358
|
*/
|
|
2351
2359
|
upsertById: (id: string, props: z.input<N["schema"]>, options?: Readonly<{
|
|
2352
2360
|
validFrom?: string;
|
|
2353
|
-
validTo?: string;
|
|
2354
2361
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2355
|
-
}>) => Promise<Node<N>>;
|
|
2362
|
+
}> & ValidityEndMutation) => Promise<Node<N>>;
|
|
2356
2363
|
/**
|
|
2357
2364
|
* Upsert a node from untyped data, relying on runtime Zod validation.
|
|
2358
2365
|
*
|
|
@@ -2371,9 +2378,8 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2371
2378
|
*/
|
|
2372
2379
|
upsertByIdFromRecord: (id: string, data: Record<string, unknown>, options?: Readonly<{
|
|
2373
2380
|
validFrom?: string;
|
|
2374
|
-
validTo?: string;
|
|
2375
2381
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2376
|
-
}>) => Promise<Node<N>>;
|
|
2382
|
+
}> & ValidityEndMutation) => Promise<Node<N>>;
|
|
2377
2383
|
/**
|
|
2378
2384
|
* Create multiple nodes in a batch.
|
|
2379
2385
|
*
|
|
@@ -2423,13 +2429,12 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2423
2429
|
* the workaround is to split the handoff across two batches (release, then
|
|
2424
2430
|
* claim) or to apply those items as sequential `upsertById` calls.
|
|
2425
2431
|
*/
|
|
2426
|
-
bulkUpsertById: (items: readonly Readonly<{
|
|
2432
|
+
bulkUpsertById: (items: readonly (Readonly<{
|
|
2427
2433
|
id: string;
|
|
2428
2434
|
props: z.input<N["schema"]>;
|
|
2429
2435
|
validFrom?: string;
|
|
2430
|
-
validTo?: string;
|
|
2431
2436
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2432
|
-
}>[]) => Promise<Node<N>[]>;
|
|
2437
|
+
}> & ValidityEndMutation)[]) => Promise<Node<N>[]>;
|
|
2433
2438
|
/**
|
|
2434
2439
|
* Insert multiple nodes without returning results.
|
|
2435
2440
|
*
|
|
@@ -2583,10 +2588,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2583
2588
|
getById: (id: EdgeId<E>, options?: QueryOptions) => Promise<Edge<E, From, To> | undefined>;
|
|
2584
2589
|
/** Get multiple edges by ID, preserving input order (undefined for missing) */
|
|
2585
2590
|
getByIds: (ids: readonly EdgeId<E>[], options?: QueryOptions) => Promise<readonly (Edge<E, From, To> | undefined)[]>;
|
|
2586
|
-
/**
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2591
|
+
/**
|
|
2592
|
+
* Update an edge's properties and optionally set or clear its validity end.
|
|
2593
|
+
* Reopening a `oneActive` edge rechecks cardinality before the write.
|
|
2594
|
+
*/
|
|
2595
|
+
update: (id: EdgeId<E>, props: Partial<z.input<E["schema"]>>, options?: ValidityEndMutation) => Promise<Edge<E, From, To>>;
|
|
2590
2596
|
/**
|
|
2591
2597
|
* Find edges from a specific node.
|
|
2592
2598
|
*
|
|
@@ -2740,14 +2746,13 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2740
2746
|
* than silent, and the workaround is to split the handoff across two batches
|
|
2741
2747
|
* (free the slot, then claim it) or to apply those items individually.
|
|
2742
2748
|
*/
|
|
2743
|
-
bulkUpsertById: (items: readonly Readonly<{
|
|
2749
|
+
bulkUpsertById: (items: readonly (Readonly<{
|
|
2744
2750
|
id: EdgeId<E>;
|
|
2745
2751
|
from: NodeRef<From>;
|
|
2746
2752
|
to: NodeRef<To>;
|
|
2747
2753
|
props?: z.input<E["schema"]>;
|
|
2748
2754
|
validFrom?: string;
|
|
2749
|
-
|
|
2750
|
-
}>[]) => Promise<Edge<E, From, To>[]>;
|
|
2755
|
+
}> & ValidityEndMutation)[]) => Promise<Edge<E, From, To>[]>;
|
|
2751
2756
|
/**
|
|
2752
2757
|
* Insert multiple edges without returning results.
|
|
2753
2758
|
*
|
|
@@ -2824,14 +2829,13 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2824
2829
|
* Results are returned in the same order as the input items.
|
|
2825
2830
|
* Atomic when the backend supports transactions.
|
|
2826
2831
|
*/
|
|
2827
|
-
bulkGetOrCreateByEndpoints: (items: readonly Readonly<{
|
|
2832
|
+
bulkGetOrCreateByEndpoints: (items: readonly (Readonly<{
|
|
2828
2833
|
from: NodeRef<From>;
|
|
2829
2834
|
to: NodeRef<To>;
|
|
2830
2835
|
props: z.input<E["schema"]>;
|
|
2831
2836
|
validFrom?: string;
|
|
2832
|
-
validTo?: string;
|
|
2833
2837
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2834
|
-
}>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
2838
|
+
}> & ValidityEndMutation)[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
2835
2839
|
}>;
|
|
2836
2840
|
/**
|
|
2837
2841
|
* Extract uniqueness constraint names from a NodeRegistration.
|
|
@@ -3042,7 +3046,7 @@ type TransactionCollections<G extends GraphDef> = Readonly<{
|
|
|
3042
3046
|
* `Store.getNodeCollection`. Returns `undefined` when `kind` is not
|
|
3043
3047
|
* registered in this graph.
|
|
3044
3048
|
*/
|
|
3045
|
-
getNodeCollection: (kind:
|
|
3049
|
+
getNodeCollection: <const K extends string>(kind: K) => DynamicNodeCollection<K> | undefined;
|
|
3046
3050
|
}> & (G["identity"] extends GraphIdentityConfig ? Readonly<{
|
|
3047
3051
|
identity: IdentityFacade<G>;
|
|
3048
3052
|
}> : Readonly<Record<never, never>>);
|
|
@@ -3098,6 +3102,20 @@ type MeasurableTransactionContext<G extends GraphDef> = TransactionContext<G> &
|
|
|
3098
3102
|
type MeasurableAdapterTransactionContext<G extends GraphDef, TNativeTransaction> = AdapterTransactionContext<G, TNativeTransaction> & Readonly<{
|
|
3099
3103
|
measure: ScopedMeasure<MeasurableAdapterTransactionContext<G, TNativeTransaction>>;
|
|
3100
3104
|
}>;
|
|
3105
|
+
/**
|
|
3106
|
+
* A node returned by a runtime string-keyed collection.
|
|
3107
|
+
*
|
|
3108
|
+
* Its nominal node-type brand proves the value passed through the dynamic
|
|
3109
|
+
* collection API while its properties remain runtime-schema-shaped.
|
|
3110
|
+
*/
|
|
3111
|
+
type DynamicNode<K extends string = string> = Node<DynamicNodeType<K>>;
|
|
3112
|
+
declare const DYNAMIC_NODE_REFERENCE_BRAND: unique symbol;
|
|
3113
|
+
/** A nominal lightweight reference returned by runtime-aware identity reads. */
|
|
3114
|
+
type DynamicNodeReference<K extends string = string> = Readonly<{
|
|
3115
|
+
kind: DynamicNodeKind<K>;
|
|
3116
|
+
id: NodeId<DynamicNodeType<K>>;
|
|
3117
|
+
[DYNAMIC_NODE_REFERENCE_BRAND]: true;
|
|
3118
|
+
}>;
|
|
3101
3119
|
/**
|
|
3102
3120
|
* Replace branded `NodeId` / `EdgeId` with plain `string` in each
|
|
3103
3121
|
* method's parameter list. Return types are preserved unchanged.
|
|
@@ -3122,15 +3140,15 @@ type UnbrandRecord<T extends Record<string, unknown>> = {
|
|
|
3122
3140
|
* A node collection with widened generics for runtime string-keyed access.
|
|
3123
3141
|
*
|
|
3124
3142
|
* This is the return type of `store.getNodeCollection(kind)`. It exposes
|
|
3125
|
-
* the full `NodeCollection` API but with
|
|
3126
|
-
* names instead of the specific generic parameters, since
|
|
3127
|
-
* is not known at compile time.
|
|
3143
|
+
* the full `NodeCollection` API but with a nominal `DynamicNodeType` and
|
|
3144
|
+
* `string` constraint names instead of the specific generic parameters, since
|
|
3145
|
+
* the concrete type is not known at compile time.
|
|
3128
3146
|
*
|
|
3129
3147
|
* ID parameters accept plain `string` instead of branded `NodeId<N>`, since
|
|
3130
3148
|
* the dynamic path typically receives IDs from edge metadata, snapshots,
|
|
3131
3149
|
* or external input where the brand is not available.
|
|
3132
3150
|
*/
|
|
3133
|
-
type DynamicNodeCollection = WidenBrandedIds<NodeCollection<
|
|
3151
|
+
type DynamicNodeCollection<K extends string = string> = WidenBrandedIds<NodeCollection<DynamicNodeType<K>, string>>;
|
|
3134
3152
|
/**
|
|
3135
3153
|
* An edge collection with widened generics for runtime string-keyed access.
|
|
3136
3154
|
*
|
|
@@ -3182,19 +3200,28 @@ type StoreProjection<G extends GraphDef, N extends keyof G["nodes"] & string = n
|
|
|
3182
3200
|
}>;
|
|
3183
3201
|
|
|
3184
3202
|
/**
|
|
3185
|
-
* The
|
|
3186
|
-
*
|
|
3187
|
-
*
|
|
3188
|
-
*
|
|
3203
|
+
* The accepted *input* form for every identity facade method: a whole node or
|
|
3204
|
+
* a `{ kind, id }` pair for any compile-time graph kind, plus a proof-bearing
|
|
3205
|
+
* node or reference produced through the runtime collection lane. Runtime
|
|
3206
|
+
* values stay nominal so accepting them does not make an arbitrary
|
|
3207
|
+
* `{ kind: string, id: string }` object type-safe.
|
|
3208
|
+
*
|
|
3209
|
+
* Identity results use {@link IdentityNodeReference}, which honestly includes
|
|
3210
|
+
* runtime kinds because an evolved kind can belong to a class reached from a
|
|
3211
|
+
* compile-time node.
|
|
3212
|
+
*/
|
|
3213
|
+
type IdentityNodeRefInput<G extends GraphDef> = NodeRef<AllNodeTypes<G>> | DynamicNode | DynamicNodeReference;
|
|
3214
|
+
/**
|
|
3215
|
+
* A node reference returned by Operational Identity.
|
|
3189
3216
|
*
|
|
3190
|
-
* Identity
|
|
3191
|
-
*
|
|
3217
|
+
* Identity classes can contain runtime-evolved kinds even when a read starts
|
|
3218
|
+
* from a compile-time node, so results honestly include both lanes.
|
|
3192
3219
|
*/
|
|
3193
|
-
type
|
|
3194
|
-
/** A hydrated
|
|
3220
|
+
type IdentityNodeReference<G extends GraphDef> = GraphNodeReference<G> | DynamicNodeReference;
|
|
3221
|
+
/** A hydrated compile-time or runtime identity member. */
|
|
3195
3222
|
type IdentityNode<G extends GraphDef> = {
|
|
3196
3223
|
[K in NodeKinds<G>]: Node<G["nodes"][K]["type"]>;
|
|
3197
|
-
}[NodeKinds<G>];
|
|
3224
|
+
}[NodeKinds<G>] | DynamicNode;
|
|
3198
3225
|
declare const __identityAssertionId: unique symbol;
|
|
3199
3226
|
type IdentityAssertionId = string & Readonly<{
|
|
3200
3227
|
[__identityAssertionId]: true;
|
|
@@ -3224,8 +3251,8 @@ type IdentityRelation = "same" | "different";
|
|
|
3224
3251
|
type IdentityAssertion<G extends GraphDef> = Readonly<{
|
|
3225
3252
|
id: IdentityAssertionId;
|
|
3226
3253
|
relation: IdentityRelation;
|
|
3227
|
-
a:
|
|
3228
|
-
b:
|
|
3254
|
+
a: IdentityNodeReference<G>;
|
|
3255
|
+
b: IdentityNodeReference<G>;
|
|
3229
3256
|
validFrom: string;
|
|
3230
3257
|
validTo?: string;
|
|
3231
3258
|
}>;
|
|
@@ -3234,11 +3261,16 @@ type IdentityAssertionResult<G extends GraphDef> = Readonly<{
|
|
|
3234
3261
|
assertion: IdentityAssertion<G>;
|
|
3235
3262
|
action: "created" | "existing";
|
|
3236
3263
|
}>;
|
|
3264
|
+
/** The half-open effective-time window of an identity assertion. */
|
|
3265
|
+
type IdentityValidityWindow = Readonly<{
|
|
3266
|
+
validFrom?: string;
|
|
3267
|
+
validTo?: string;
|
|
3268
|
+
}>;
|
|
3237
3269
|
/** One ordered node pair handed to `bulkAssertSame` / `bulkAssertDifferent`. */
|
|
3238
3270
|
type IdentityPair<G extends GraphDef> = Readonly<{
|
|
3239
3271
|
a: IdentityNodeRefInput<G>;
|
|
3240
3272
|
b: IdentityNodeRefInput<G>;
|
|
3241
|
-
}
|
|
3273
|
+
}> & IdentityValidityWindow;
|
|
3242
3274
|
/**
|
|
3243
3275
|
* The read half of the identity surface: equivalence-set membership,
|
|
3244
3276
|
* representative selection, and the assertions behind them.
|
|
@@ -3248,8 +3280,8 @@ type IdentityPair<G extends GraphDef> = Readonly<{
|
|
|
3248
3280
|
* The full read+write surface is {@link IdentityFacade}.
|
|
3249
3281
|
*/
|
|
3250
3282
|
type IdentityReadFacade<G extends GraphDef> = Readonly<{
|
|
3251
|
-
representativeOf: (ref: IdentityNodeRefInput<G>) => Promise<
|
|
3252
|
-
membersOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly
|
|
3283
|
+
representativeOf: (ref: IdentityNodeRefInput<G>) => Promise<IdentityNodeReference<G> | undefined>;
|
|
3284
|
+
membersOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly IdentityNodeReference<G>[]>;
|
|
3253
3285
|
nodesOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly IdentityNode<G>[]>;
|
|
3254
3286
|
areSame: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>) => Promise<boolean>;
|
|
3255
3287
|
areDifferent: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>) => Promise<boolean>;
|
|
@@ -3265,8 +3297,8 @@ type IdentityReadFacade<G extends GraphDef> = Readonly<{
|
|
|
3265
3297
|
* `action: "existing"` rather than duplicating it.
|
|
3266
3298
|
*/
|
|
3267
3299
|
type IdentityFacade<G extends GraphDef> = IdentityReadFacade<G> & Readonly<{
|
|
3268
|
-
assertSame: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G
|
|
3269
|
-
assertDifferent: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G
|
|
3300
|
+
assertSame: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>, window?: IdentityValidityWindow) => Promise<IdentityAssertionResult<G>>;
|
|
3301
|
+
assertDifferent: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>, window?: IdentityValidityWindow) => Promise<IdentityAssertionResult<G>>;
|
|
3270
3302
|
bulkAssertSame: (pairs: readonly IdentityPair<G>[]) => Promise<readonly IdentityAssertionResult<G>[]>;
|
|
3271
3303
|
bulkAssertDifferent: (pairs: readonly IdentityPair<G>[]) => Promise<readonly IdentityAssertionResult<G>[]>;
|
|
3272
3304
|
retractAssertion: (id: IdentityAssertionId) => Promise<IdentityAssertion<G> | undefined>;
|
|
@@ -3733,7 +3765,7 @@ type InternalGraphAlgorithms<G extends GraphDef> = Readonly<{
|
|
|
3733
3765
|
*/
|
|
3734
3766
|
declare const HISTORY_STORE_BACKEND_KEYS: readonly ["assertRuntimeContributionsInitialized", "assertVectorSlotInitialized", "assertVectorSlotsInitialized", "bootstrapTables", "capabilities", "checkUnique", "checkUniqueBatch", "claimIndexMaterialization", "close", "commitSchemaVersion", "commitSchemaVersionIfKindsEmpty", "lockSchemaVersionForWrite", "compileSql", "countEdgesByKind", "countEdgesFrom", "countNodesByKind", "createVectorIndex", "deleteEdge", "deleteEdgesBatch", "deleteEmbedding", "deleteEmbeddingBatch", "deleteFulltext", "deleteFulltextBatch", "deleteNode", "deleteUnique", "hardDeleteUniquesByNodeIds", "deleteVectorSlotContribution", "dialect", "dropVectorIndex", "edgeExistsBetween", "ensureContributionMaterializationsTable", "ensureFulltextTable", "ensureIndexMaterializationsTable", "ensureKindRemovalsTable", "ensureReconciliationMarkersTable", "ensureRevisionOriginsTable", "ensureRuntimeContributions", "ensureVectorSlotContribution", "ensureVectorSlotContributions", "execute", "executeTemporaryStatement", "findEdgesByKind", "findEdgesByEndpointSet", "findEdgesByHeterogeneousEndpointSet", "findEdgesConnectedTo", "findNodesByKind", "fulltextSearch", "fulltextStrategy", "getActiveSchema", "getAllKindRemovals", "getContributionMaterialization", "getEdge", "getEdges", "getIndexMaterialization", "getIndexMaterializations", "getNode", "getNodes", "getPendingKindRemovals", "getReconciliationMarker", "getSchemaVersion", "hardDeleteEdge", "hardDeleteEdgesBatch", "hardDeleteNode", "hardDeleteUniquesByNodeIds", "hybridSearch", "insertEdge", "insertEdgeNoReturn", "insertEdgesBatch", "insertEdgesBatchReturning", "insertNode", "insertNodeNoReturn", "insertNodesBatch", "insertNodesBatchReturning", "insertUnique", "insertUniqueBatch", "probeContributions", "recordContributionMaterialization", "recordIndexMaterialization", "recordKindRemoval", "refreshStatistics", "releaseIndexMaterializationClaim", "setActiveVersion", "setReconciliationMarker", "tableNames", "updateEdge", "updateNode", "updateNodeSet", "upsertEmbedding", "upsertEmbeddingBatch", "upsertFulltext", "upsertFulltextBatch", "vectorSearch", "vectorStrategy", "verifyContributions"];
|
|
3735
3767
|
type HistoryStoreBackendMember = (typeof HISTORY_STORE_BACKEND_KEYS)[number];
|
|
3736
|
-
type UnsafeHistoryStoreBackendMember = "clearGraph" | "commitSchemaVersionWithPreflight" | "executeDdl" | "executeRaw" | "executeStatement" | "ensureIdentityTables" | "identityTableDdl" | "rebuildContribution" | "repairContributions" | "schemaWriteTransaction" | "transaction" | "trustedImport";
|
|
3768
|
+
type UnsafeHistoryStoreBackendMember = "clearGraph" | "commitSchemaVersionWithPreflight" | "executeDdl" | "executeRaw" | "executeStatement" | "ensureIdentityTables" | "ensureTrigramExtension" | "identityTableDdl" | "rebuildContribution" | "repairContributions" | "schemaWriteTransaction" | "transaction" | "trustedImport";
|
|
3737
3769
|
type UnclassifiedHistoryStoreBackendMember = Exclude<keyof GraphBackend, HistoryStoreBackendMember | UnsafeHistoryStoreBackendMember>;
|
|
3738
3770
|
type HistoryStoreBackend = UnclassifiedHistoryStoreBackendMember extends never ? Readonly<Pick<GraphBackend, HistoryStoreBackendMember>> : never;
|
|
3739
3771
|
|
|
@@ -4225,7 +4257,24 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
4225
4257
|
created: number;
|
|
4226
4258
|
skipped: number;
|
|
4227
4259
|
}>>;
|
|
4228
|
-
applyIdentityMergeAtTarget: (target: GraphBackend | TransactionBackend,
|
|
4260
|
+
applyIdentityMergeAtTarget: (target: GraphBackend | TransactionBackend, retractions: readonly Readonly<{
|
|
4261
|
+
id: string;
|
|
4262
|
+
relation: "same" | "different";
|
|
4263
|
+
a: Readonly<{
|
|
4264
|
+
kind: string;
|
|
4265
|
+
id: string;
|
|
4266
|
+
}>;
|
|
4267
|
+
b: Readonly<{
|
|
4268
|
+
kind: string;
|
|
4269
|
+
id: string;
|
|
4270
|
+
}>;
|
|
4271
|
+
validFrom: string;
|
|
4272
|
+
validTo?: string | undefined;
|
|
4273
|
+
endedBy?: Readonly<{
|
|
4274
|
+
kind: string;
|
|
4275
|
+
id: string;
|
|
4276
|
+
}> | undefined;
|
|
4277
|
+
}>[], assertions: readonly Readonly<{
|
|
4229
4278
|
id: string;
|
|
4230
4279
|
relation: "same" | "different";
|
|
4231
4280
|
a: Readonly<{
|
|
@@ -4894,8 +4943,8 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
4894
4943
|
edges: GraphEdgeCollections<G>;
|
|
4895
4944
|
algorithms: GraphAlgorithms<G>;
|
|
4896
4945
|
search: StoreSearch<G>;
|
|
4897
|
-
getNodeCollection: (kind:
|
|
4898
|
-
getNodeCollectionOrThrow: (kind:
|
|
4946
|
+
getNodeCollection: <const K extends string>(kind: K) => DynamicNodeCollection<K> | undefined;
|
|
4947
|
+
getNodeCollectionOrThrow: <const K extends string>(kind: K) => DynamicNodeCollection<K>;
|
|
4899
4948
|
getEdgeCollection: (kind: string) => DynamicEdgeCollection | undefined;
|
|
4900
4949
|
getEdgeCollectionOrThrow: (kind: string) => DynamicEdgeCollection;
|
|
4901
4950
|
getNodePropsSchema: (kind: string) => z.ZodObject<z.ZodRawShape> | undefined;
|
|
@@ -5227,4 +5276,4 @@ declare function createVerifiedAdapterStore<G extends GraphDef, TNativeTransacti
|
|
|
5227
5276
|
SchemaValidationResult
|
|
5228
5277
|
]>;
|
|
5229
5278
|
|
|
5230
|
-
export { type
|
|
5279
|
+
export { type DynamicNodeKind as $, type AliasMap as A, type BaseStoreOptions as B, type BatchableQuery as C, type BulkEdgeSourceGroup as D, type EdgeAliasMap as E, type BulkFindEdgesFromParams as F, type BulkFindEdgesFromResult as G, type HistoryStoreOptions as H, type IdentityAssertion as I, type BulkOperationHookContext as J, type ConstraintNames as K, type LiveStoreOptions as L, type CreateEdgeInput as M, type CreateNodeInput as N, type DegreeOptions as O, type DynamicEdgeAccessor as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type DynamicEdgeCollection as V, type DynamicEdgeType as W, type DynamicFieldBuilder as X, type DynamicNode as Y, type DynamicNodeAccessor as Z, type DynamicNodeCollection as _, type Store as a, type OntologyIntrospection as a$, type DynamicNodeReference as a0, type DynamicNodeType as a1, type DynamicSelectableEdge as a2, type DynamicSelectableNode as a3, type Edge as a4, type EdgeAccessor as a5, type EdgeBatchReads as a6, type EdgeBulkFindEndpointOptions as a7, type EdgeBulkFindOptions as a8, type EdgeCollection as a9, type IdentityTraversalOption as aA, type IdentityValidityWindow as aB, type IfExistsMode as aC, type InitialQueryBuilder as aD, type KindIntrospection as aE, type LabelPropagationMembership as aF, type LabelPropagationOptions as aG, type MaterializeRemovalsEntry as aH, type MaterializeRemovalsOptions as aI, type MaterializeRemovalsResult as aJ, type MeasurableAdapterHistoryTransactionContext as aK, type MeasurableAdapterTransactionContext as aL, type MeasurableTransactionContext as aM, type NeighborsOptions as aN, type NoRecordedCoordinate as aO, type Node as aP, type NodeAccessor as aQ, type NodeAlias as aR, type NodeBulkFindByIndexOptions as aS, type NodeCollection as aT, type NodeCurrentReads as aU, type NodeGetOrCreateByConstraintOptions as aV, type NodeGetOrCreateByConstraintResult as aW, type NodeIdentifier as aX, type NodeRef as aY, type NodeTemporalReads as aZ, type NodeWrites as a_, type EdgeFindByEndpointsOptions as aa, type EdgeGetOrCreateByEndpointsOptions as ab, type EdgeGetOrCreateByEndpointsResult as ac, type EdgeIntrospection as ad, type EdgeTemporalReads as ae, type EdgeWrites as af, type EmptyAliasMap as ag, type EmptyEdgeAliasMap as ah, ExecutableAggregateQuery as ai, ExecutableQuery as aj, type FieldAccessor as ak, type FulltextSearchHit as al, type FulltextSearchOptions as am, type GetOrCreateAction as an, type GraphAlgorithms as ao, type GraphEdgeCollections as ap, type GraphEdgeForKinds as aq, type GraphNodeCollections as ar, type GraphNodeReference as as, type HistoryStoreBackend as at, type HookContext as au, type HybridFulltextOptions as av, type HybridSearchHit as aw, type HybridSearchOptions as ax, type HybridVectorOptions as ay, type IdentityNodeReference as az, type HistoryStore as b, type SubgraphEdgeResult as b$, type OperationHookContext as b0, type PageRankOptions as b1, type PageRankScore as b2, type PaginateOptions as b3, type PaginatedResult as b4, type PathNode as b5, type PersonalizedPageRankOptions as b6, type PersonalizedPageRankSeed as b7, type Predicate as b8, PreparedQuery as b9, type SelectableNode as bA, type ShortestPathOptions as bB, type ShortestPathResult as bC, type SqlAvailability as bD, type StoreHooks as bE, type StoreProjection as bF, type StoreRef as bG, StoreSearch as bH, StoreView as bI, type StoreViewCanReachOptions as bJ, type StoreViewCoordinate as bK, type StoreViewDegreeOptions as bL, type StoreViewEdgeCollection as bM, type StoreViewEdgeCollections as bN, type StoreViewGraphAlgorithms as bO, type StoreViewLabelPropagationOptions as bP, type StoreViewNeighborsOptions as bQ, type StoreViewNodeCollection as bR, type StoreViewNodeCollections as bS, type StoreViewPageRankOptions as bT, type StoreViewPersonalizedPageRankOptions as bU, type StoreViewReachableOptions as bV, type StoreViewShortestPathOptions as bW, type StoreViewSubgraphOptions as bX, type StoreViewWeaklyConnectedComponentsOptions as bY, type StoreViewWeightedShortestPathOptions as bZ, type StreamOptions as b_, type PropsAccessor as ba, type QueryHookContext as bb, type QueryOptions as bc, type ReachableNode as bd, type ReachableOptions as be, type RebuildContributionOptions as bf, type RebuildFulltextOptions as bg, type RebuildFulltextResult as bh, type ReclaimedVectorFieldEntry as bi, type ReconciledSchema as bj, type RecordedScanOptions as bk, type RecordedScanPage as bl, RecordedStoreView as bm, type RecordedStoreViewEdgeCollection as bn, type RecordedStoreViewEdgeCollections as bo, type RecordedStoreViewNodeCollection as bp, type RecordedStoreViewNodeCollections as bq, type RecursiveTraversalOptions as br, type ReembedFunction as bs, type ReembedVectorFieldOptions as bt, type ReembedVectorFieldResult as bu, type SchemaIntrospection as bv, type ScopedMeasure as bw, type SearchScopeOptions as bx, type SelectContext as by, type SelectableEdge as bz, type RecordedReadStore as c, type SubgraphNodeResult as c0, type SubgraphOptions as c1, type SubgraphResult as c2, type SubsetEdge as c3, type SubsetNode as c4, type TemporalAlgorithmOptions as c5, type TransactionContext as c6, type TransactionOutcome as c7, type TransactionReceipt as c8, type TraversalDirection as c9, isParameterRef as cA, notExists as cB, notInSubquery as cC, param as cD, type TypedEdgeCollection as ca, type TypedRecordedStoreViewEdgeCollection as cb, type TypedStoreViewEdgeCollection as cc, UnionableQuery as cd, type UniqueIntrospection as ce, type UpdateEdgeInput as cf, type UpdateNodeInput as cg, type ValidityEndMutation as ch, type VectorSearchHit as ci, type VectorSearchOptions as cj, type WeaklyConnectedComponentMembership as ck, type WeaklyConnectedComponentsOptions as cl, type WeightedShortestPathOptions as cm, type WeightedShortestPathResult as cn, asIdentityAssertionId as co, createAdapterStore as cp, createAdapterStoreWithSchema as cq, createQueryBuilder as cr, createStore as cs, createStoreWithSchema as ct, createVerifiedAdapterStore as cu, createVerifiedStore as cv, defineSubgraphProject as cw, exists as cx, fieldRef as cy, inSubquery as cz, type IdentityAssertionId as d, type IdentityAssertionResult as e, type IdentityFacade as f, type IdentityNode as g, type IdentityNodeRefInput as h, type IdentityPair as i, type IdentityReadFacade as j, type IdentityRelation as k, type IdentityWriteSummary as l, type RecursiveAliasMap as m, QueryBuilder as n, type EmptyRecursiveAliasMap as o, type AdapterHistoryStore as p, type AdapterHistoryTransactionContext as q, type AdapterRecordedReadStore as r, type AdapterStore as s, type AdapterTransactionContext as t, type AggregateResult as u, type AlgorithmCyclePolicy as v, type AnyEdge as w, type AnyNode as x, type BaseTraversalOptions as y, type BatchResults as z };
|