@nicia-ai/typegraph 0.46.1 → 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-NK5Q7UNE.cjs → chunk-26YKDNUD.cjs} +10 -10
- package/dist/{chunk-NK5Q7UNE.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
- package/dist/{chunk-PQBQG7IM.js → chunk-3DMMGT6S.js} +3 -3
- package/dist/{chunk-PQBQG7IM.js.map → chunk-3DMMGT6S.js.map} +1 -1
- package/dist/{chunk-XBYVV3MP.cjs → chunk-3HGRTCDU.cjs} +6 -4
- package/dist/chunk-3HGRTCDU.cjs.map +1 -0
- package/dist/{chunk-NFCVHQ5P.cjs → chunk-3U5ABFDW.cjs} +26 -26
- package/dist/{chunk-NFCVHQ5P.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
- package/dist/{chunk-MCLYU6BN.cjs → chunk-425IZOQ5.cjs} +11 -164
- package/dist/chunk-425IZOQ5.cjs.map +1 -0
- package/dist/{chunk-M4BDU5RX.cjs → chunk-5FBRVORR.cjs} +12 -12
- package/dist/{chunk-M4BDU5RX.cjs.map → chunk-5FBRVORR.cjs.map} +1 -1
- package/dist/{chunk-C23WSN5E.js → chunk-5FT3TLPK.js} +20 -14
- package/dist/chunk-5FT3TLPK.js.map +1 -0
- package/dist/{chunk-YBFHZUXX.js → chunk-5UMTUOM5.js} +6 -6
- package/dist/{chunk-YBFHZUXX.js.map → chunk-5UMTUOM5.js.map} +1 -1
- package/dist/{chunk-HFHTMECK.js → chunk-6FWSNSRE.js} +7 -7
- package/dist/{chunk-HFHTMECK.js.map → chunk-6FWSNSRE.js.map} +1 -1
- package/dist/{chunk-65E3XWGF.cjs → chunk-6JVZSOHQ.cjs} +91 -91
- package/dist/{chunk-65E3XWGF.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-LBJKZXDE.cjs → chunk-6NGW27EO.cjs} +10 -10
- package/dist/{chunk-LBJKZXDE.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
- package/dist/{chunk-5UVRGXD3.js → chunk-6SWPJEYN.js} +5 -5
- package/dist/{chunk-5UVRGXD3.js.map → chunk-6SWPJEYN.js.map} +1 -1
- package/dist/{chunk-BKCUOV7A.js → chunk-7SQSZN2J.js} +5 -5
- package/dist/{chunk-BKCUOV7A.js.map → chunk-7SQSZN2J.js.map} +1 -1
- package/dist/{chunk-YAAM3M2S.cjs → chunk-AMMWA76F.cjs} +51 -59
- package/dist/chunk-AMMWA76F.cjs.map +1 -0
- package/dist/{chunk-62ZP23AW.cjs → chunk-AOSSQDVO.cjs} +13 -13
- package/dist/{chunk-62ZP23AW.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
- package/dist/{chunk-NLI2AVEF.js → chunk-AVGUJWVX.js} +30 -10
- package/dist/chunk-AVGUJWVX.js.map +1 -0
- package/dist/{chunk-TQR4KBY2.cjs → chunk-BCQ76AXA.cjs} +262 -155
- package/dist/chunk-BCQ76AXA.cjs.map +1 -0
- package/dist/{chunk-CXBHOOIQ.cjs → chunk-BFUOME67.cjs} +11 -11
- package/dist/{chunk-CXBHOOIQ.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
- package/dist/{chunk-PNTCATDE.cjs → chunk-BR7SHKGM.cjs} +1672 -1400
- package/dist/chunk-BR7SHKGM.cjs.map +1 -0
- package/dist/{chunk-ASTI57H3.js → chunk-CHAOFCHV.js} +3 -3
- package/dist/{chunk-ASTI57H3.js.map → chunk-CHAOFCHV.js.map} +1 -1
- package/dist/chunk-CICO5GXD.cjs +12 -0
- package/dist/{chunk-A4OC4DVN.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
- package/dist/{chunk-T4XNKYXB.js → chunk-D5R42W5D.js} +4 -4
- package/dist/{chunk-T4XNKYXB.js.map → chunk-D5R42W5D.js.map} +1 -1
- package/dist/{chunk-S6PW7VV5.js → chunk-DJZTXBWY.js} +410 -138
- package/dist/chunk-DJZTXBWY.js.map +1 -0
- package/dist/{chunk-UDISNXDL.cjs → chunk-DO7SAMEK.cjs} +47 -47
- package/dist/{chunk-UDISNXDL.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
- package/dist/{chunk-VCRRKBLN.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
- package/dist/{chunk-VCRRKBLN.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
- package/dist/{chunk-YVWGEQJE.cjs → chunk-EMIB2RXD.cjs} +139 -133
- package/dist/chunk-EMIB2RXD.cjs.map +1 -0
- package/dist/{chunk-2Z2Z3ZD6.js → chunk-EP4RUYD6.js} +3 -3
- package/dist/{chunk-2Z2Z3ZD6.js.map → chunk-EP4RUYD6.js.map} +1 -1
- package/dist/{chunk-M3WP7RQZ.js → chunk-FNOMT74T.js} +10 -8
- package/dist/chunk-FNOMT74T.js.map +1 -0
- package/dist/{chunk-E4WNQBEF.cjs → chunk-FQPEMEWX.cjs} +12 -12
- package/dist/{chunk-E4WNQBEF.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
- package/dist/{chunk-WDGA7IYB.js → chunk-GLHXM7C4.js} +3 -3
- package/dist/{chunk-WDGA7IYB.js.map → chunk-GLHXM7C4.js.map} +1 -1
- package/dist/{chunk-7BQXPCGN.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
- package/dist/{chunk-7BQXPCGN.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
- package/dist/{chunk-VLT6PEWR.cjs → chunk-GYUJZARH.cjs} +4 -4
- package/dist/{chunk-VLT6PEWR.cjs.map → chunk-GYUJZARH.cjs.map} +1 -1
- package/dist/{chunk-RMQLSPA2.cjs → chunk-HDL2ARHX.cjs} +27 -27
- package/dist/{chunk-RMQLSPA2.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
- package/dist/{chunk-775A4ZMN.js → chunk-HEV35TGT.js} +4 -4
- package/dist/{chunk-775A4ZMN.js.map → chunk-HEV35TGT.js.map} +1 -1
- package/dist/{chunk-3DHZCOT7.cjs → chunk-I4G3SQPF.cjs} +20 -20
- package/dist/{chunk-3DHZCOT7.cjs.map → chunk-I4G3SQPF.cjs.map} +1 -1
- package/dist/{chunk-VGTJPTIC.js → chunk-JONXFAPO.js} +5 -5
- package/dist/{chunk-VGTJPTIC.js.map → chunk-JONXFAPO.js.map} +1 -1
- package/dist/{chunk-BSFJMMV3.cjs → chunk-JR6SX5RH.cjs} +4 -4
- package/dist/{chunk-BSFJMMV3.cjs.map → chunk-JR6SX5RH.cjs.map} +1 -1
- package/dist/{chunk-YBQOHKHN.cjs → chunk-KABFHAL7.cjs} +100 -99
- package/dist/chunk-KABFHAL7.cjs.map +1 -0
- package/dist/{chunk-7VQXLT5O.js → chunk-KH7XW7VV.js} +111 -27
- package/dist/chunk-KH7XW7VV.js.map +1 -0
- package/dist/{chunk-DCQVHAYQ.js → chunk-KKBDXCLQ.js} +4 -4
- package/dist/{chunk-DCQVHAYQ.js.map → chunk-KKBDXCLQ.js.map} +1 -1
- package/dist/{chunk-4UGOKMI5.cjs → chunk-L3LQNR34.cjs} +161 -161
- package/dist/{chunk-4UGOKMI5.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
- package/dist/{chunk-NMWDXFPH.js → chunk-LEWHMOUY.js} +46 -56
- package/dist/chunk-LEWHMOUY.js.map +1 -0
- package/dist/{chunk-U63GDNRC.cjs → chunk-LRQKXRXO.cjs} +4 -4
- package/dist/{chunk-U63GDNRC.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
- package/dist/{chunk-5763DULU.js → chunk-M35DF33T.js} +147 -40
- package/dist/chunk-M35DF33T.js.map +1 -0
- package/dist/{chunk-Q3G6A4I3.cjs → chunk-MFZR4QKM.cjs} +30 -28
- package/dist/chunk-MFZR4QKM.cjs.map +1 -0
- package/dist/chunk-MKJ4KXL5.cjs +12 -0
- package/dist/{chunk-VQH4VAWD.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
- package/dist/{chunk-NI72YOJB.cjs → chunk-MRDBBHIZ.cjs} +70 -2
- package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
- package/dist/{chunk-DTVWX77L.cjs → chunk-MX4DHSQP.cjs} +1023 -360
- package/dist/chunk-MX4DHSQP.cjs.map +1 -0
- package/dist/{chunk-2LG2XB2M.js → chunk-MYKHJI2J.js} +3 -3
- package/dist/{chunk-2LG2XB2M.js.map → chunk-MYKHJI2J.js.map} +1 -1
- package/dist/{chunk-JZUR7ZWE.js → chunk-NAZ2RA4L.js} +3 -3
- package/dist/{chunk-JZUR7ZWE.js.map → chunk-NAZ2RA4L.js.map} +1 -1
- package/dist/{chunk-XL7SLCXS.js → chunk-NG2RB5WL.js} +4 -145
- package/dist/chunk-NG2RB5WL.js.map +1 -0
- package/dist/{chunk-GF3KXUTW.js → chunk-NNQ6A3RM.js} +803 -143
- package/dist/chunk-NNQ6A3RM.js.map +1 -0
- package/dist/{chunk-MSY7FSX4.js → chunk-NVY5CJFP.js} +4 -4
- package/dist/{chunk-MSY7FSX4.js.map → chunk-NVY5CJFP.js.map} +1 -1
- package/dist/{chunk-XCAGZAKP.cjs → chunk-OI2GQ25X.cjs} +7 -7
- package/dist/{chunk-XCAGZAKP.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
- package/dist/{chunk-PF6F5NLJ.cjs → chunk-OIFSOPSR.cjs} +259 -238
- package/dist/chunk-OIFSOPSR.cjs.map +1 -0
- package/dist/{chunk-UV3SN74I.js → chunk-OMZ37BM2.js} +5 -5
- package/dist/{chunk-UV3SN74I.js.map → chunk-OMZ37BM2.js.map} +1 -1
- package/dist/{chunk-PNN7RHVR.cjs → chunk-OORXGFL5.cjs} +48 -48
- package/dist/{chunk-PNN7RHVR.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
- package/dist/{chunk-YWGVVALJ.js → chunk-OVI7IXYX.js} +3 -3
- package/dist/{chunk-YWGVVALJ.js.map → chunk-OVI7IXYX.js.map} +1 -1
- package/dist/{chunk-I5MOXA4H.js → chunk-P6YLZTRE.js} +3 -3
- package/dist/{chunk-I5MOXA4H.js.map → chunk-P6YLZTRE.js.map} +1 -1
- package/dist/{chunk-WQZLUGVR.js → chunk-QS3NQZVC.js} +82 -16
- package/dist/chunk-QS3NQZVC.js.map +1 -0
- package/dist/{chunk-5262ZMTR.js → chunk-QTD6HX4O.js} +5 -5
- package/dist/{chunk-5262ZMTR.js.map → chunk-QTD6HX4O.js.map} +1 -1
- package/dist/{chunk-MXJDTH5B.cjs → chunk-ROR5ZR6A.cjs} +45 -45
- package/dist/{chunk-MXJDTH5B.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
- package/dist/{chunk-CBTIUB76.js → chunk-SDBBMD4N.js} +3 -3
- package/dist/{chunk-CBTIUB76.js.map → chunk-SDBBMD4N.js.map} +1 -1
- package/dist/{chunk-L65OU2U3.js → chunk-SE6EGQSD.js} +78 -16
- package/dist/chunk-SE6EGQSD.js.map +1 -0
- package/dist/{chunk-JXA2ZP2Q.js → chunk-SHFBB23Q.js} +4 -4
- package/dist/{chunk-JXA2ZP2Q.js.map → chunk-SHFBB23Q.js.map} +1 -1
- package/dist/{chunk-AKLS3BYZ.js → chunk-SHSSRCFR.js} +5 -3
- package/dist/chunk-SHSSRCFR.js.map +1 -0
- package/dist/{chunk-2NA5DYLO.cjs → chunk-TZEGUG6D.cjs} +4 -4
- package/dist/{chunk-2NA5DYLO.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
- package/dist/{chunk-CMWHLBVN.cjs → chunk-U5EDAVOJ.cjs} +140 -74
- package/dist/chunk-U5EDAVOJ.cjs.map +1 -0
- package/dist/{chunk-MUK4BU7K.cjs → chunk-UPAJHMW3.cjs} +210 -126
- package/dist/chunk-UPAJHMW3.cjs.map +1 -0
- package/dist/{chunk-PT7RIRIZ.cjs → chunk-WGX7JH7E.cjs} +235 -170
- package/dist/chunk-WGX7JH7E.cjs.map +1 -0
- package/dist/{chunk-U5SON7R2.cjs → chunk-WODMN3Q2.cjs} +27 -27
- package/dist/{chunk-U5SON7R2.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
- package/dist/{chunk-K5ELX2GT.js → chunk-XVWOYKIK.js} +3 -3
- package/dist/{chunk-K5ELX2GT.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-LGHCOKTT.js → chunk-XYBQI6LE.js} +14 -14
- package/dist/{chunk-LGHCOKTT.js.map → chunk-XYBQI6LE.js.map} +1 -1
- package/dist/{chunk-YDFDBE6D.js → chunk-ZDKTPBGV.js} +4 -4
- package/dist/{chunk-YDFDBE6D.js.map → chunk-ZDKTPBGV.js.map} +1 -1
- package/dist/{chunk-MZLPX2R7.js → chunk-ZHNXLS3C.js} +9 -8
- package/dist/chunk-ZHNXLS3C.js.map +1 -0
- package/dist/{chunk-J3WZ3FA2.js → chunk-ZLONH2UD.js} +67 -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-BXfGHbPN.d.ts → ddl-CprnMXJ-.d.ts} +3 -3
- package/dist/{ddl-BJcOp4WZ.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-BSHvKfok.d.ts → index-CHTv4XMZ.d.cts} +64 -3
- package/dist/{index-DxaYCv8Y.d.cts → index-CzoJ3MUw.d.ts} +64 -3
- package/dist/index.cjs +232 -215
- 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-CfZAimti.d.ts → manager-B6sOQzcQ.d.ts} +2 -2
- package/dist/{manager-HGk6E_HW.d.cts → manager-DlY1vlla.d.cts} +2 -2
- package/dist/{materialize-indexes-BMJP6Tms.d.ts → materialize-indexes-DQL4xcpf.d.ts} +1 -1
- package/dist/{materialize-indexes-6A7dWGtb.d.cts → materialize-indexes-sskhp-c_.d.cts} +1 -1
- package/dist/{postgres-DFYWENdR.d.cts → postgres-B6YOUcaK.d.ts} +1 -1
- package/dist/{postgres-e7a9TdvR.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-CIje5XYD.d.cts → searchable-0Cn_lY8U.d.cts} +1 -1
- package/dist/{searchable-9OQoPuRs.d.ts → searchable-D9gMiwcS.d.ts} +1 -1
- package/dist/{sqlite-DerU5tc7.d.ts → sqlite-ClXuBYAj.d.ts} +1 -1
- package/dist/{sqlite-DitnISa9.d.cts → sqlite-DioSxaPe.d.cts} +1 -1
- package/dist/{store-ClQ-MZQS.d.ts → store-5j-w5onJ.d.ts} +128 -69
- package/dist/{store-B0h6x7wo.d.cts → store-CFedKGU5.d.cts} +128 -69
- package/dist/{temporal-Bn-Fi8FJ.d.cts → temporal-Ce1pG0S1.d.cts} +1 -1
- package/dist/{temporal-BtM4UALv.d.ts → temporal-CjO9FH1l.d.ts} +1 -1
- package/dist/{types-KFfk-8Ah.d.ts → types-BrdOFu48.d.ts} +1 -1
- package/dist/{types-HkveCCx0.d.ts → types-DKkMJZjR.d.cts} +39 -12
- package/dist/{types-HkveCCx0.d.cts → types-DKkMJZjR.d.ts} +39 -12
- package/dist/{types-CoIx8HX5.d.cts → types-oj_OGAaZ.d.cts} +1 -1
- package/dist/{where-ws5hf-Ov.d.ts → where-C8w2627G.d.ts} +1 -1
- package/dist/{where--fk7_0kv.d.cts → where-D1wKCJ4Q.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-5763DULU.js.map +0 -1
- package/dist/chunk-7VQXLT5O.js.map +0 -1
- package/dist/chunk-A4OC4DVN.cjs +0 -12
- package/dist/chunk-AKLS3BYZ.js.map +0 -1
- package/dist/chunk-C23WSN5E.js.map +0 -1
- package/dist/chunk-CMWHLBVN.cjs.map +0 -1
- package/dist/chunk-DTVWX77L.cjs.map +0 -1
- package/dist/chunk-GF3KXUTW.js.map +0 -1
- package/dist/chunk-J3WZ3FA2.js.map +0 -1
- package/dist/chunk-L65OU2U3.js.map +0 -1
- package/dist/chunk-M3WP7RQZ.js.map +0 -1
- package/dist/chunk-MCLYU6BN.cjs.map +0 -1
- package/dist/chunk-MUK4BU7K.cjs.map +0 -1
- package/dist/chunk-MZLPX2R7.js.map +0 -1
- package/dist/chunk-NI72YOJB.cjs.map +0 -1
- package/dist/chunk-NLI2AVEF.js.map +0 -1
- package/dist/chunk-NMWDXFPH.js.map +0 -1
- package/dist/chunk-PF6F5NLJ.cjs.map +0 -1
- package/dist/chunk-PNTCATDE.cjs.map +0 -1
- package/dist/chunk-PT7RIRIZ.cjs.map +0 -1
- package/dist/chunk-Q3G6A4I3.cjs.map +0 -1
- package/dist/chunk-S6PW7VV5.js.map +0 -1
- package/dist/chunk-TQR4KBY2.cjs.map +0 -1
- package/dist/chunk-VQH4VAWD.cjs +0 -12
- package/dist/chunk-WQZLUGVR.js.map +0 -1
- package/dist/chunk-XBYVV3MP.cjs.map +0 -1
- package/dist/chunk-XL7SLCXS.js.map +0 -1
- package/dist/chunk-YAAM3M2S.cjs.map +0 -1
- package/dist/chunk-YBQOHKHN.cjs.map +0 -1
- package/dist/chunk-YVWGEQJE.cjs.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).
|
|
@@ -2232,12 +2245,15 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
|
|
|
2232
2245
|
*/
|
|
2233
2246
|
validFrom?: string;
|
|
2234
2247
|
/**
|
|
2235
|
-
*
|
|
2236
|
-
* the
|
|
2237
|
-
*
|
|
2248
|
+
* How an `ifExists: "update"` write treats a stated `validFrom` that differs
|
|
2249
|
+
* from the live edge's stored lower bound. Default: `"refuse"`.
|
|
2250
|
+
*
|
|
2251
|
+
* `"preserve"` makes `validFrom` create/resurrection-only input: it is still
|
|
2252
|
+
* validated, but a live update keeps the stored lower bound while applying
|
|
2253
|
+
* properties and `validTo`.
|
|
2238
2254
|
*/
|
|
2239
|
-
|
|
2240
|
-
}
|
|
2255
|
+
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2256
|
+
}> & ValidityEndMutation;
|
|
2241
2257
|
/**
|
|
2242
2258
|
* A collection of nodes of a specific type.
|
|
2243
2259
|
*
|
|
@@ -2258,10 +2274,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2258
2274
|
getById: (id: NodeId<N>, options?: QueryOptions) => Promise<Node<N> | undefined>;
|
|
2259
2275
|
/** Get multiple nodes by ID, preserving input order (undefined for missing) */
|
|
2260
2276
|
getByIds: (ids: readonly NodeId<N>[], options?: QueryOptions) => Promise<readonly (Node<N> | undefined)[]>;
|
|
2261
|
-
/**
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
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>>;
|
|
2265
2282
|
/**
|
|
2266
2283
|
* Updates every current node selected by the supplied predicates in one
|
|
2267
2284
|
* set-based write. Relationship clauses are independent EXISTS predicates
|
|
@@ -2341,9 +2358,8 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2341
2358
|
*/
|
|
2342
2359
|
upsertById: (id: string, props: z.input<N["schema"]>, options?: Readonly<{
|
|
2343
2360
|
validFrom?: string;
|
|
2344
|
-
validTo?: string;
|
|
2345
2361
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2346
|
-
}>) => Promise<Node<N>>;
|
|
2362
|
+
}> & ValidityEndMutation) => Promise<Node<N>>;
|
|
2347
2363
|
/**
|
|
2348
2364
|
* Upsert a node from untyped data, relying on runtime Zod validation.
|
|
2349
2365
|
*
|
|
@@ -2362,9 +2378,8 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2362
2378
|
*/
|
|
2363
2379
|
upsertByIdFromRecord: (id: string, data: Record<string, unknown>, options?: Readonly<{
|
|
2364
2380
|
validFrom?: string;
|
|
2365
|
-
validTo?: string;
|
|
2366
2381
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2367
|
-
}>) => Promise<Node<N>>;
|
|
2382
|
+
}> & ValidityEndMutation) => Promise<Node<N>>;
|
|
2368
2383
|
/**
|
|
2369
2384
|
* Create multiple nodes in a batch.
|
|
2370
2385
|
*
|
|
@@ -2414,13 +2429,12 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2414
2429
|
* the workaround is to split the handoff across two batches (release, then
|
|
2415
2430
|
* claim) or to apply those items as sequential `upsertById` calls.
|
|
2416
2431
|
*/
|
|
2417
|
-
bulkUpsertById: (items: readonly Readonly<{
|
|
2432
|
+
bulkUpsertById: (items: readonly (Readonly<{
|
|
2418
2433
|
id: string;
|
|
2419
2434
|
props: z.input<N["schema"]>;
|
|
2420
2435
|
validFrom?: string;
|
|
2421
|
-
validTo?: string;
|
|
2422
2436
|
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2423
|
-
}>[]) => Promise<Node<N>[]>;
|
|
2437
|
+
}> & ValidityEndMutation)[]) => Promise<Node<N>[]>;
|
|
2424
2438
|
/**
|
|
2425
2439
|
* Insert multiple nodes without returning results.
|
|
2426
2440
|
*
|
|
@@ -2574,10 +2588,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2574
2588
|
getById: (id: EdgeId<E>, options?: QueryOptions) => Promise<Edge<E, From, To> | undefined>;
|
|
2575
2589
|
/** Get multiple edges by ID, preserving input order (undefined for missing) */
|
|
2576
2590
|
getByIds: (ids: readonly EdgeId<E>[], options?: QueryOptions) => Promise<readonly (Edge<E, From, To> | undefined)[]>;
|
|
2577
|
-
/**
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
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>>;
|
|
2581
2596
|
/**
|
|
2582
2597
|
* Find edges from a specific node.
|
|
2583
2598
|
*
|
|
@@ -2731,14 +2746,13 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2731
2746
|
* than silent, and the workaround is to split the handoff across two batches
|
|
2732
2747
|
* (free the slot, then claim it) or to apply those items individually.
|
|
2733
2748
|
*/
|
|
2734
|
-
bulkUpsertById: (items: readonly Readonly<{
|
|
2749
|
+
bulkUpsertById: (items: readonly (Readonly<{
|
|
2735
2750
|
id: EdgeId<E>;
|
|
2736
2751
|
from: NodeRef<From>;
|
|
2737
2752
|
to: NodeRef<To>;
|
|
2738
2753
|
props?: z.input<E["schema"]>;
|
|
2739
2754
|
validFrom?: string;
|
|
2740
|
-
|
|
2741
|
-
}>[]) => Promise<Edge<E, From, To>[]>;
|
|
2755
|
+
}> & ValidityEndMutation)[]) => Promise<Edge<E, From, To>[]>;
|
|
2742
2756
|
/**
|
|
2743
2757
|
* Insert multiple edges without returning results.
|
|
2744
2758
|
*
|
|
@@ -2815,13 +2829,13 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2815
2829
|
* Results are returned in the same order as the input items.
|
|
2816
2830
|
* Atomic when the backend supports transactions.
|
|
2817
2831
|
*/
|
|
2818
|
-
bulkGetOrCreateByEndpoints: (items: readonly Readonly<{
|
|
2832
|
+
bulkGetOrCreateByEndpoints: (items: readonly (Readonly<{
|
|
2819
2833
|
from: NodeRef<From>;
|
|
2820
2834
|
to: NodeRef<To>;
|
|
2821
2835
|
props: z.input<E["schema"]>;
|
|
2822
2836
|
validFrom?: string;
|
|
2823
|
-
|
|
2824
|
-
}>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
2837
|
+
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2838
|
+
}> & ValidityEndMutation)[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
2825
2839
|
}>;
|
|
2826
2840
|
/**
|
|
2827
2841
|
* Extract uniqueness constraint names from a NodeRegistration.
|
|
@@ -3032,7 +3046,7 @@ type TransactionCollections<G extends GraphDef> = Readonly<{
|
|
|
3032
3046
|
* `Store.getNodeCollection`. Returns `undefined` when `kind` is not
|
|
3033
3047
|
* registered in this graph.
|
|
3034
3048
|
*/
|
|
3035
|
-
getNodeCollection: (kind:
|
|
3049
|
+
getNodeCollection: <const K extends string>(kind: K) => DynamicNodeCollection<K> | undefined;
|
|
3036
3050
|
}> & (G["identity"] extends GraphIdentityConfig ? Readonly<{
|
|
3037
3051
|
identity: IdentityFacade<G>;
|
|
3038
3052
|
}> : Readonly<Record<never, never>>);
|
|
@@ -3088,6 +3102,20 @@ type MeasurableTransactionContext<G extends GraphDef> = TransactionContext<G> &
|
|
|
3088
3102
|
type MeasurableAdapterTransactionContext<G extends GraphDef, TNativeTransaction> = AdapterTransactionContext<G, TNativeTransaction> & Readonly<{
|
|
3089
3103
|
measure: ScopedMeasure<MeasurableAdapterTransactionContext<G, TNativeTransaction>>;
|
|
3090
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
|
+
}>;
|
|
3091
3119
|
/**
|
|
3092
3120
|
* Replace branded `NodeId` / `EdgeId` with plain `string` in each
|
|
3093
3121
|
* method's parameter list. Return types are preserved unchanged.
|
|
@@ -3112,15 +3140,15 @@ type UnbrandRecord<T extends Record<string, unknown>> = {
|
|
|
3112
3140
|
* A node collection with widened generics for runtime string-keyed access.
|
|
3113
3141
|
*
|
|
3114
3142
|
* This is the return type of `store.getNodeCollection(kind)`. It exposes
|
|
3115
|
-
* the full `NodeCollection` API but with
|
|
3116
|
-
* names instead of the specific generic parameters, since
|
|
3117
|
-
* 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.
|
|
3118
3146
|
*
|
|
3119
3147
|
* ID parameters accept plain `string` instead of branded `NodeId<N>`, since
|
|
3120
3148
|
* the dynamic path typically receives IDs from edge metadata, snapshots,
|
|
3121
3149
|
* or external input where the brand is not available.
|
|
3122
3150
|
*/
|
|
3123
|
-
type DynamicNodeCollection = WidenBrandedIds<NodeCollection<
|
|
3151
|
+
type DynamicNodeCollection<K extends string = string> = WidenBrandedIds<NodeCollection<DynamicNodeType<K>, string>>;
|
|
3124
3152
|
/**
|
|
3125
3153
|
* An edge collection with widened generics for runtime string-keyed access.
|
|
3126
3154
|
*
|
|
@@ -3172,19 +3200,28 @@ type StoreProjection<G extends GraphDef, N extends keyof G["nodes"] & string = n
|
|
|
3172
3200
|
}>;
|
|
3173
3201
|
|
|
3174
3202
|
/**
|
|
3175
|
-
* The
|
|
3176
|
-
*
|
|
3177
|
-
*
|
|
3178
|
-
*
|
|
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.
|
|
3179
3216
|
*
|
|
3180
|
-
* Identity
|
|
3181
|
-
*
|
|
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.
|
|
3182
3219
|
*/
|
|
3183
|
-
type
|
|
3184
|
-
/** A hydrated
|
|
3220
|
+
type IdentityNodeReference<G extends GraphDef> = GraphNodeReference<G> | DynamicNodeReference;
|
|
3221
|
+
/** A hydrated compile-time or runtime identity member. */
|
|
3185
3222
|
type IdentityNode<G extends GraphDef> = {
|
|
3186
3223
|
[K in NodeKinds<G>]: Node<G["nodes"][K]["type"]>;
|
|
3187
|
-
}[NodeKinds<G>];
|
|
3224
|
+
}[NodeKinds<G>] | DynamicNode;
|
|
3188
3225
|
declare const __identityAssertionId: unique symbol;
|
|
3189
3226
|
type IdentityAssertionId = string & Readonly<{
|
|
3190
3227
|
[__identityAssertionId]: true;
|
|
@@ -3214,8 +3251,8 @@ type IdentityRelation = "same" | "different";
|
|
|
3214
3251
|
type IdentityAssertion<G extends GraphDef> = Readonly<{
|
|
3215
3252
|
id: IdentityAssertionId;
|
|
3216
3253
|
relation: IdentityRelation;
|
|
3217
|
-
a:
|
|
3218
|
-
b:
|
|
3254
|
+
a: IdentityNodeReference<G>;
|
|
3255
|
+
b: IdentityNodeReference<G>;
|
|
3219
3256
|
validFrom: string;
|
|
3220
3257
|
validTo?: string;
|
|
3221
3258
|
}>;
|
|
@@ -3224,11 +3261,16 @@ type IdentityAssertionResult<G extends GraphDef> = Readonly<{
|
|
|
3224
3261
|
assertion: IdentityAssertion<G>;
|
|
3225
3262
|
action: "created" | "existing";
|
|
3226
3263
|
}>;
|
|
3264
|
+
/** The half-open effective-time window of an identity assertion. */
|
|
3265
|
+
type IdentityValidityWindow = Readonly<{
|
|
3266
|
+
validFrom?: string;
|
|
3267
|
+
validTo?: string;
|
|
3268
|
+
}>;
|
|
3227
3269
|
/** One ordered node pair handed to `bulkAssertSame` / `bulkAssertDifferent`. */
|
|
3228
3270
|
type IdentityPair<G extends GraphDef> = Readonly<{
|
|
3229
3271
|
a: IdentityNodeRefInput<G>;
|
|
3230
3272
|
b: IdentityNodeRefInput<G>;
|
|
3231
|
-
}
|
|
3273
|
+
}> & IdentityValidityWindow;
|
|
3232
3274
|
/**
|
|
3233
3275
|
* The read half of the identity surface: equivalence-set membership,
|
|
3234
3276
|
* representative selection, and the assertions behind them.
|
|
@@ -3238,8 +3280,8 @@ type IdentityPair<G extends GraphDef> = Readonly<{
|
|
|
3238
3280
|
* The full read+write surface is {@link IdentityFacade}.
|
|
3239
3281
|
*/
|
|
3240
3282
|
type IdentityReadFacade<G extends GraphDef> = Readonly<{
|
|
3241
|
-
representativeOf: (ref: IdentityNodeRefInput<G>) => Promise<
|
|
3242
|
-
membersOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly
|
|
3283
|
+
representativeOf: (ref: IdentityNodeRefInput<G>) => Promise<IdentityNodeReference<G> | undefined>;
|
|
3284
|
+
membersOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly IdentityNodeReference<G>[]>;
|
|
3243
3285
|
nodesOf: (ref: IdentityNodeRefInput<G>) => Promise<readonly IdentityNode<G>[]>;
|
|
3244
3286
|
areSame: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>) => Promise<boolean>;
|
|
3245
3287
|
areDifferent: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>) => Promise<boolean>;
|
|
@@ -3255,8 +3297,8 @@ type IdentityReadFacade<G extends GraphDef> = Readonly<{
|
|
|
3255
3297
|
* `action: "existing"` rather than duplicating it.
|
|
3256
3298
|
*/
|
|
3257
3299
|
type IdentityFacade<G extends GraphDef> = IdentityReadFacade<G> & Readonly<{
|
|
3258
|
-
assertSame: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G
|
|
3259
|
-
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>>;
|
|
3260
3302
|
bulkAssertSame: (pairs: readonly IdentityPair<G>[]) => Promise<readonly IdentityAssertionResult<G>[]>;
|
|
3261
3303
|
bulkAssertDifferent: (pairs: readonly IdentityPair<G>[]) => Promise<readonly IdentityAssertionResult<G>[]>;
|
|
3262
3304
|
retractAssertion: (id: IdentityAssertionId) => Promise<IdentityAssertion<G> | undefined>;
|
|
@@ -3723,7 +3765,7 @@ type InternalGraphAlgorithms<G extends GraphDef> = Readonly<{
|
|
|
3723
3765
|
*/
|
|
3724
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"];
|
|
3725
3767
|
type HistoryStoreBackendMember = (typeof HISTORY_STORE_BACKEND_KEYS)[number];
|
|
3726
|
-
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";
|
|
3727
3769
|
type UnclassifiedHistoryStoreBackendMember = Exclude<keyof GraphBackend, HistoryStoreBackendMember | UnsafeHistoryStoreBackendMember>;
|
|
3728
3770
|
type HistoryStoreBackend = UnclassifiedHistoryStoreBackendMember extends never ? Readonly<Pick<GraphBackend, HistoryStoreBackendMember>> : never;
|
|
3729
3771
|
|
|
@@ -4215,7 +4257,24 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
4215
4257
|
created: number;
|
|
4216
4258
|
skipped: number;
|
|
4217
4259
|
}>>;
|
|
4218
|
-
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<{
|
|
4219
4278
|
id: string;
|
|
4220
4279
|
relation: "same" | "different";
|
|
4221
4280
|
a: Readonly<{
|
|
@@ -4884,8 +4943,8 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
4884
4943
|
edges: GraphEdgeCollections<G>;
|
|
4885
4944
|
algorithms: GraphAlgorithms<G>;
|
|
4886
4945
|
search: StoreSearch<G>;
|
|
4887
|
-
getNodeCollection: (kind:
|
|
4888
|
-
getNodeCollectionOrThrow: (kind:
|
|
4946
|
+
getNodeCollection: <const K extends string>(kind: K) => DynamicNodeCollection<K> | undefined;
|
|
4947
|
+
getNodeCollectionOrThrow: <const K extends string>(kind: K) => DynamicNodeCollection<K>;
|
|
4889
4948
|
getEdgeCollection: (kind: string) => DynamicEdgeCollection | undefined;
|
|
4890
4949
|
getEdgeCollectionOrThrow: (kind: string) => DynamicEdgeCollection;
|
|
4891
4950
|
getNodePropsSchema: (kind: string) => z.ZodObject<z.ZodRawShape> | undefined;
|
|
@@ -5217,4 +5276,4 @@ declare function createVerifiedAdapterStore<G extends GraphDef, TNativeTransacti
|
|
|
5217
5276
|
SchemaValidationResult
|
|
5218
5277
|
]>;
|
|
5219
5278
|
|
|
5220
|
-
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 };
|