@nicia-ai/typegraph 0.49.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +56 -52
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +34 -28
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +17 -15
- package/dist/backend/postgres/pglite-store.cjs +36 -35
- 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 +32 -31
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +19 -17
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +18 -16
- package/dist/backend/sqlite/index.cjs +31 -25
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +15 -13
- package/dist/backend/sqlite/libsql.cjs +22 -20
- 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 +17 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +37 -36
- 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 +33 -32
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +20 -18
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +18 -16
- package/dist/{chunk-LTXQOEIC.js → chunk-2CYI5HRH.js} +248 -203
- package/dist/chunk-2CYI5HRH.js.map +1 -0
- package/dist/{chunk-KF6K7TGH.js → chunk-2GIV5X4P.js} +702 -422
- package/dist/chunk-2GIV5X4P.js.map +1 -0
- package/dist/{chunk-2TYSSBU5.js → chunk-2Q45FAIE.js} +15 -15
- package/dist/{chunk-2TYSSBU5.js.map → chunk-2Q45FAIE.js.map} +1 -1
- package/dist/{chunk-WODMN3Q2.cjs → chunk-45YZXI6X.cjs} +27 -27
- package/dist/{chunk-WODMN3Q2.cjs.map → chunk-45YZXI6X.cjs.map} +1 -1
- package/dist/{chunk-3DMMGT6S.js → chunk-46UGOVRW.js} +3 -3
- package/dist/{chunk-3DMMGT6S.js.map → chunk-46UGOVRW.js.map} +1 -1
- package/dist/{chunk-GLHXM7C4.js → chunk-5LKOVCPP.js} +60 -23
- package/dist/chunk-5LKOVCPP.js.map +1 -0
- package/dist/{chunk-JFRT7S3B.cjs → chunk-5OWHU7Z7.cjs} +261 -459
- package/dist/chunk-5OWHU7Z7.cjs.map +1 -0
- package/dist/{chunk-7SQSZN2J.js → chunk-5PP4KRPV.js} +5 -5
- package/dist/{chunk-7SQSZN2J.js.map → chunk-5PP4KRPV.js.map} +1 -1
- package/dist/chunk-6KQEICJ6.cjs +12 -0
- package/dist/{chunk-MKJ4KXL5.cjs.map → chunk-6KQEICJ6.cjs.map} +1 -1
- package/dist/{chunk-6SWPJEYN.js → chunk-6LEOAIIB.js} +40 -6
- package/dist/chunk-6LEOAIIB.js.map +1 -0
- package/dist/{chunk-DZAICA5J.js → chunk-6NKSE5AU.js} +4 -4
- package/dist/{chunk-DZAICA5J.js.map → chunk-6NKSE5AU.js.map} +1 -1
- package/dist/{chunk-OVI7IXYX.js → chunk-6S3PTHL4.js} +3 -3
- package/dist/{chunk-OVI7IXYX.js.map → chunk-6S3PTHL4.js.map} +1 -1
- package/dist/{chunk-3FPR224C.cjs → chunk-7CCMCMJO.cjs} +102 -102
- package/dist/{chunk-3FPR224C.cjs.map → chunk-7CCMCMJO.cjs.map} +1 -1
- package/dist/{chunk-SHFBB23Q.js → chunk-7OWE7WD6.js} +6 -4
- package/dist/chunk-7OWE7WD6.js.map +1 -0
- package/dist/chunk-7PRMDZIA.cjs +182 -0
- package/dist/chunk-7PRMDZIA.cjs.map +1 -0
- package/dist/{chunk-CHAOFCHV.js → chunk-AH2A74OZ.js} +3 -3
- package/dist/{chunk-CHAOFCHV.js.map → chunk-AH2A74OZ.js.map} +1 -1
- package/dist/{chunk-OORXGFL5.cjs → chunk-BYBDM423.cjs} +48 -48
- package/dist/{chunk-OORXGFL5.cjs.map → chunk-BYBDM423.cjs.map} +1 -1
- package/dist/{chunk-JB6T4GLL.cjs → chunk-C76WFIVZ.cjs} +808 -519
- package/dist/chunk-C76WFIVZ.cjs.map +1 -0
- package/dist/{chunk-3G5W2U2L.cjs → chunk-CS6JTQQ2.cjs} +302 -257
- package/dist/chunk-CS6JTQQ2.cjs.map +1 -0
- package/dist/{chunk-AOSSQDVO.cjs → chunk-CSNOYIB4.cjs} +13 -13
- package/dist/{chunk-AOSSQDVO.cjs.map → chunk-CSNOYIB4.cjs.map} +1 -1
- package/dist/{chunk-HEV35TGT.js → chunk-DI6VC62F.js} +13 -4
- package/dist/chunk-DI6VC62F.js.map +1 -0
- package/dist/{chunk-2QGYQBS2.cjs → chunk-DWUDZ66O.cjs} +10 -10
- package/dist/{chunk-2QGYQBS2.cjs.map → chunk-DWUDZ66O.cjs.map} +1 -1
- package/dist/{chunk-ZDKTPBGV.js → chunk-EDLKIQRI.js} +4 -4
- package/dist/{chunk-ZDKTPBGV.js.map → chunk-EDLKIQRI.js.map} +1 -1
- package/dist/chunk-EH3JZJUM.cjs +567 -0
- package/dist/chunk-EH3JZJUM.cjs.map +1 -0
- package/dist/{chunk-S5TERQVW.js → chunk-FX5ZW6PN.js} +196 -33
- package/dist/chunk-FX5ZW6PN.js.map +1 -0
- package/dist/{chunk-XVWOYKIK.js → chunk-FZHF5UWR.js} +3 -3
- package/dist/{chunk-XVWOYKIK.js.map → chunk-FZHF5UWR.js.map} +1 -1
- package/dist/{chunk-BFUOME67.cjs → chunk-G2TLHH6T.cjs} +20 -11
- package/dist/chunk-G2TLHH6T.cjs.map +1 -0
- package/dist/{chunk-5PRKMB24.cjs → chunk-GHZPZNFC.cjs} +12 -4
- package/dist/chunk-GHZPZNFC.cjs.map +1 -0
- package/dist/{chunk-ZFMCDJGB.js → chunk-GVYVGGPJ.js} +11 -199
- package/dist/chunk-GVYVGGPJ.js.map +1 -0
- package/dist/{chunk-SDBBMD4N.js → chunk-H3XP6BAV.js} +3 -3
- package/dist/{chunk-SDBBMD4N.js.map → chunk-H3XP6BAV.js.map} +1 -1
- package/dist/{chunk-ROR5ZR6A.cjs → chunk-HSEZ7X6Y.cjs} +45 -45
- package/dist/{chunk-ROR5ZR6A.cjs.map → chunk-HSEZ7X6Y.cjs.map} +1 -1
- package/dist/{chunk-LRQKXRXO.cjs → chunk-HY5BNOUN.cjs} +4 -4
- package/dist/{chunk-LRQKXRXO.cjs.map → chunk-HY5BNOUN.cjs.map} +1 -1
- package/dist/chunk-HZUB5CON.js +27 -0
- package/dist/chunk-HZUB5CON.js.map +1 -0
- package/dist/{chunk-MYKHJI2J.js → chunk-I5C6OTKR.js} +3 -3
- package/dist/{chunk-MYKHJI2J.js.map → chunk-I5C6OTKR.js.map} +1 -1
- package/dist/{chunk-3U5ABFDW.cjs → chunk-IHK5KA2Q.cjs} +31 -28
- package/dist/chunk-IHK5KA2Q.cjs.map +1 -0
- package/dist/{chunk-26YKDNUD.cjs → chunk-IPRP6TDL.cjs} +12 -10
- package/dist/chunk-IPRP6TDL.cjs.map +1 -0
- package/dist/{chunk-UGHG7PGX.js → chunk-IRPYOHRC.js} +26 -4
- package/dist/chunk-IRPYOHRC.js.map +1 -0
- package/dist/{chunk-7UOLHNWC.cjs → chunk-ISKCIQF2.cjs} +20 -20
- package/dist/{chunk-7UOLHNWC.cjs.map → chunk-ISKCIQF2.cjs.map} +1 -1
- package/dist/{chunk-7LZJNLA5.js → chunk-JG5XIJDY.js} +57 -31
- package/dist/chunk-JG5XIJDY.js.map +1 -0
- package/dist/{chunk-YYUHLYM2.cjs → chunk-K2XYLVVB.cjs} +134 -133
- package/dist/chunk-K2XYLVVB.cjs.map +1 -0
- package/dist/{chunk-5K2BKEBD.js → chunk-K46SDNQD.js} +10 -4
- package/dist/chunk-K46SDNQD.js.map +1 -0
- package/dist/{chunk-TZEGUG6D.cjs → chunk-K6VKTBST.cjs} +4 -4
- package/dist/{chunk-TZEGUG6D.cjs.map → chunk-K6VKTBST.cjs.map} +1 -1
- package/dist/chunk-KWNWG4RC.cjs +12 -0
- package/dist/{chunk-CICO5GXD.cjs.map → chunk-KWNWG4RC.cjs.map} +1 -1
- package/dist/{chunk-FQPEMEWX.cjs → chunk-LLVOQOWE.cjs} +80 -32
- package/dist/chunk-LLVOQOWE.cjs.map +1 -0
- package/dist/{chunk-TQHGE7UC.cjs → chunk-M5MSP3BI.cjs} +18 -10
- package/dist/chunk-M5MSP3BI.cjs.map +1 -0
- package/dist/{chunk-Z2JCLZFJ.js → chunk-MJPZNEJZ.js} +273 -291
- package/dist/chunk-MJPZNEJZ.js.map +1 -0
- package/dist/{chunk-TUNPBZY3.cjs → chunk-MM3JHVKZ.cjs} +4 -4
- package/dist/{chunk-TUNPBZY3.cjs.map → chunk-MM3JHVKZ.cjs.map} +1 -1
- package/dist/{chunk-BRRP76WO.js → chunk-MX7EKQPM.js} +457 -299
- package/dist/chunk-MX7EKQPM.js.map +1 -0
- package/dist/{chunk-D4QLTJSM.js → chunk-MZ34E2GN.js} +13 -12
- package/dist/chunk-MZ34E2GN.js.map +1 -0
- package/dist/{chunk-EDN4Y4ZG.cjs → chunk-OJHD3LXJ.cjs} +9 -9
- package/dist/{chunk-EDN4Y4ZG.cjs.map → chunk-OJHD3LXJ.cjs.map} +1 -1
- package/dist/{chunk-DO7SAMEK.cjs → chunk-ON47CBE4.cjs} +47 -47
- package/dist/{chunk-DO7SAMEK.cjs.map → chunk-ON47CBE4.cjs.map} +1 -1
- package/dist/{chunk-6LN7FIVU.js → chunk-PALYTHGM.js} +11 -4
- package/dist/chunk-PALYTHGM.js.map +1 -0
- package/dist/{chunk-YVF2EM7B.js → chunk-R7MRFE5P.js} +3 -3
- package/dist/{chunk-YVF2EM7B.js.map → chunk-R7MRFE5P.js.map} +1 -1
- package/dist/{chunk-EZEEWCFJ.cjs → chunk-RDP6ZRSM.cjs} +435 -265
- package/dist/chunk-RDP6ZRSM.cjs.map +1 -0
- package/dist/{chunk-GYEG3ZLZ.cjs → chunk-RJMHU2MG.cjs} +121 -18
- package/dist/chunk-RJMHU2MG.cjs.map +1 -0
- package/dist/chunk-RWUWTJQY.cjs +30 -0
- package/dist/chunk-RWUWTJQY.cjs.map +1 -0
- package/dist/{chunk-JPD2CTC3.js → chunk-S33YQEL7.js} +7 -7
- package/dist/{chunk-JPD2CTC3.js.map → chunk-S33YQEL7.js.map} +1 -1
- package/dist/chunk-S3SDEQMC.js +532 -0
- package/dist/chunk-S3SDEQMC.js.map +1 -0
- package/dist/{chunk-OI2GQ25X.cjs → chunk-SHC7BCG5.cjs} +7 -7
- package/dist/{chunk-OI2GQ25X.cjs.map → chunk-SHC7BCG5.cjs.map} +1 -1
- package/dist/{chunk-L3LQNR34.cjs → chunk-TEC24ZDA.cjs} +161 -161
- package/dist/{chunk-L3LQNR34.cjs.map → chunk-TEC24ZDA.cjs.map} +1 -1
- package/dist/{chunk-HDL2ARHX.cjs → chunk-TP4NJTI3.cjs} +63 -27
- package/dist/chunk-TP4NJTI3.cjs.map +1 -0
- package/dist/{chunk-UMGZDVOA.cjs → chunk-TTCOPKUL.cjs} +124 -124
- package/dist/{chunk-UMGZDVOA.cjs.map → chunk-TTCOPKUL.cjs.map} +1 -1
- package/dist/chunk-TUVD4DFR.cjs +1207 -0
- package/dist/chunk-TUVD4DFR.cjs.map +1 -0
- package/dist/{chunk-UGHQV7MP.cjs → chunk-TYGGUWMS.cjs} +178 -152
- package/dist/chunk-TYGGUWMS.cjs.map +1 -0
- package/dist/{chunk-WIC7DRXW.js → chunk-U3Z7XKAG.js} +7 -7
- package/dist/{chunk-WIC7DRXW.js.map → chunk-U3Z7XKAG.js.map} +1 -1
- package/dist/{chunk-NACVVDWB.js → chunk-U5EL6JUV.js} +10 -10
- package/dist/{chunk-NACVVDWB.js.map → chunk-U5EL6JUV.js.map} +1 -1
- package/dist/{chunk-OMZ37BM2.js → chunk-V76FGHY3.js} +5 -5
- package/dist/{chunk-OMZ37BM2.js.map → chunk-V76FGHY3.js.map} +1 -1
- package/dist/{chunk-6NGW27EO.cjs → chunk-VLBTRXA2.cjs} +10 -10
- package/dist/{chunk-6NGW27EO.cjs.map → chunk-VLBTRXA2.cjs.map} +1 -1
- package/dist/chunk-VTJVMP4I.js +1182 -0
- package/dist/chunk-VTJVMP4I.js.map +1 -0
- package/dist/{chunk-QTD6HX4O.js → chunk-W5SOCUBL.js} +5 -5
- package/dist/{chunk-QTD6HX4O.js.map → chunk-W5SOCUBL.js.map} +1 -1
- package/dist/{chunk-SR725PWF.cjs → chunk-WCLMKNQE.cjs} +1750 -1592
- package/dist/chunk-WCLMKNQE.cjs.map +1 -0
- package/dist/{chunk-2O4PCIZ6.cjs → chunk-WK23PGTP.cjs} +13 -13
- package/dist/{chunk-2O4PCIZ6.cjs.map → chunk-WK23PGTP.cjs.map} +1 -1
- package/dist/{chunk-KKBDXCLQ.js → chunk-WQBAQZHR.js} +4 -4
- package/dist/{chunk-KKBDXCLQ.js.map → chunk-WQBAQZHR.js.map} +1 -1
- package/dist/{chunk-MRDBBHIZ.cjs → chunk-X4GDXBOP.cjs} +2 -2
- package/dist/chunk-X4GDXBOP.cjs.map +1 -0
- package/dist/{chunk-3QNZ5SAJ.cjs → chunk-XMY2SXOH.cjs} +437 -455
- package/dist/chunk-XMY2SXOH.cjs.map +1 -0
- package/dist/{chunk-D5R42W5D.js → chunk-XZW2CTNO.js} +115 -12
- package/dist/chunk-XZW2CTNO.js.map +1 -0
- package/dist/{chunk-NVY5CJFP.js → chunk-Y55DLLEG.js} +9 -6
- package/dist/chunk-Y55DLLEG.js.map +1 -0
- package/dist/chunk-YA36ABIL.js +174 -0
- package/dist/chunk-YA36ABIL.js.map +1 -0
- package/dist/{chunk-ZLONH2UD.js → chunk-YDEJQWOL.js} +2 -2
- package/dist/chunk-YDEJQWOL.js.map +1 -0
- package/dist/{chunk-JONXFAPO.js → chunk-ZAQUKCUC.js} +5 -5
- package/dist/{chunk-JONXFAPO.js.map → chunk-ZAQUKCUC.js.map} +1 -1
- package/dist/{chunk-SIT26LAZ.cjs → chunk-ZBFZGLZE.cjs} +29 -5
- package/dist/chunk-ZBFZGLZE.cjs.map +1 -0
- package/dist/{chunk-P6YLZTRE.js → chunk-ZRJTM7MT.js} +3 -3
- package/dist/{chunk-P6YLZTRE.js.map → chunk-ZRJTM7MT.js.map} +1 -1
- package/dist/core/index.cjs +29 -28
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +9 -8
- package/dist/{ddl-D_oW-EVO.d.ts → ddl-B49O7dB_.d.ts} +3 -3
- package/dist/{ddl-BL1NZLMY.d.cts → ddl-DcZG660s.d.cts} +3 -3
- package/dist/graph-extension/index.cjs +21 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -4
- package/dist/graph-merge/index.cjs +305 -303
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +9 -9
- package/dist/graph-merge/index.d.ts +9 -9
- package/dist/graph-merge/index.js +29 -27
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-D7d1u2gr.d.ts → index-B0PrmE3K.d.cts} +16 -2
- package/dist/{index-COs_z6nV.d.cts → index-CwcXsL5R.d.ts} +16 -2
- package/dist/index.cjs +223 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +37 -36
- 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/{ingestion-import-target-dNeL7iAv.d.ts → ingestion-import-target-CI8OWIkM.d.ts} +1 -1
- package/dist/{ingestion-import-target-XPxZYw89.d.cts → ingestion-import-target-DCpfM1PX.d.cts} +1 -1
- package/dist/interchange/index.cjs +55 -54
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +19 -8
- package/dist/interchange/index.d.ts +19 -8
- package/dist/interchange/index.js +19 -18
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-D9eRT_ns.d.ts → manager-Cfg1ENj1.d.ts} +30 -2
- package/dist/{manager-CYaff3n3.d.cts → manager-D348fa6W.d.cts} +30 -2
- package/dist/{materialize-indexes-DJ3ykH59.d.ts → materialize-indexes-C9GG3O3C.d.ts} +1 -1
- package/dist/{materialize-indexes-DTtAnvfY.d.cts → materialize-indexes-CrSiW_lT.d.cts} +1 -1
- package/dist/{postgres-CcL4bAHS.d.ts → postgres-CH1kkM5J.d.cts} +279 -2
- package/dist/{postgres-DMj39MEu.d.cts → postgres-UStOycLI.d.ts} +279 -2
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +46 -44
- 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 +12 -10
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-DlUSqwCg.d.ts → repair-validity-windows-BtOEe2pS.d.ts} +2 -2
- package/dist/{repair-validity-windows-BFNZvd_H.d.cts → repair-validity-windows-aWX7VNvv.d.cts} +2 -2
- package/dist/schema/index.cjs +46 -46
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +19 -19
- package/dist/{searchable-DHJMh_nj.d.cts → searchable-C8-RrL3l.d.cts} +1 -1
- package/dist/{searchable-bpE1bBfc.d.ts → searchable-z4BiFfHI.d.ts} +1 -1
- package/dist/{sqlite-YppHrNFb.d.cts → sqlite-Cyx9j9o6.d.cts} +309 -2
- package/dist/{sqlite-D7Oz0SQh.d.ts → sqlite-axLw5Lo5.d.ts} +309 -2
- package/dist/{store-bphCSo7z.d.cts → store-CTfQ9taw.d.ts} +102 -13
- package/dist/{store-DRrFCx5x.d.ts → store-DR9J7JVB.d.cts} +102 -13
- package/dist/{temporal-5GqpYCk2.d.cts → temporal-B4Ky4wzh.d.cts} +1 -1
- package/dist/{temporal-CbnLzTmM.d.ts → temporal-CBOrERz5.d.ts} +1 -1
- package/dist/{types-CXAhpW-c.d.cts → types-BE921wRl.d.cts} +1 -1
- package/dist/{types-Bx74kaTt.d.ts → types-BScHXVM7.d.ts} +1 -1
- package/dist/{types-BqFZTQmV.d.cts → types-CWg4dTjj.d.cts} +257 -6
- package/dist/{types-BqFZTQmV.d.ts → types-CWg4dTjj.d.ts} +257 -6
- package/dist/{where-O-k2wgYm.d.ts → where-BWXUPV3C.d.ts} +1 -1
- package/dist/{where-DI_Fqz-X.d.cts → where-CNtx1aLc.d.cts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-26YKDNUD.cjs.map +0 -1
- package/dist/chunk-3G5W2U2L.cjs.map +0 -1
- package/dist/chunk-3KOY4FH3.cjs +0 -934
- package/dist/chunk-3KOY4FH3.cjs.map +0 -1
- package/dist/chunk-3QNZ5SAJ.cjs.map +0 -1
- package/dist/chunk-3U5ABFDW.cjs.map +0 -1
- package/dist/chunk-5K2BKEBD.js.map +0 -1
- package/dist/chunk-5PRKMB24.cjs.map +0 -1
- package/dist/chunk-6LN7FIVU.js.map +0 -1
- package/dist/chunk-6SWPJEYN.js.map +0 -1
- package/dist/chunk-7LZJNLA5.js.map +0 -1
- package/dist/chunk-BFUOME67.cjs.map +0 -1
- package/dist/chunk-BRRP76WO.js.map +0 -1
- package/dist/chunk-CICO5GXD.cjs +0 -12
- package/dist/chunk-D4QLTJSM.js.map +0 -1
- package/dist/chunk-D5R42W5D.js.map +0 -1
- package/dist/chunk-EZEEWCFJ.cjs.map +0 -1
- package/dist/chunk-FA2AFWLP.cjs +0 -167
- package/dist/chunk-FA2AFWLP.cjs.map +0 -1
- package/dist/chunk-FQPEMEWX.cjs.map +0 -1
- package/dist/chunk-GLHXM7C4.js.map +0 -1
- package/dist/chunk-GYEG3ZLZ.cjs.map +0 -1
- package/dist/chunk-HDL2ARHX.cjs.map +0 -1
- package/dist/chunk-HEV35TGT.js.map +0 -1
- package/dist/chunk-I4GAZH5Z.js +0 -913
- package/dist/chunk-I4GAZH5Z.js.map +0 -1
- package/dist/chunk-JB6T4GLL.cjs.map +0 -1
- package/dist/chunk-JBQQ7THH.js +0 -20
- package/dist/chunk-JBQQ7THH.js.map +0 -1
- package/dist/chunk-JFRT7S3B.cjs.map +0 -1
- package/dist/chunk-KF6K7TGH.js.map +0 -1
- package/dist/chunk-LTXQOEIC.js.map +0 -1
- package/dist/chunk-MKJ4KXL5.cjs +0 -12
- package/dist/chunk-MRDBBHIZ.cjs.map +0 -1
- package/dist/chunk-NVY5CJFP.js.map +0 -1
- package/dist/chunk-PWLJ77UV.cjs +0 -23
- package/dist/chunk-PWLJ77UV.cjs.map +0 -1
- package/dist/chunk-S5TERQVW.js.map +0 -1
- package/dist/chunk-SHFBB23Q.js.map +0 -1
- package/dist/chunk-SIT26LAZ.cjs.map +0 -1
- package/dist/chunk-SR725PWF.cjs.map +0 -1
- package/dist/chunk-TQHGE7UC.cjs.map +0 -1
- package/dist/chunk-UGHG7PGX.js.map +0 -1
- package/dist/chunk-UGHQV7MP.cjs.map +0 -1
- package/dist/chunk-YIURNGXI.js +0 -155
- package/dist/chunk-YIURNGXI.js.map +0 -1
- package/dist/chunk-YYUHLYM2.cjs.map +0 -1
- package/dist/chunk-Z2JCLZFJ.js.map +0 -1
- package/dist/chunk-ZFMCDJGB.js.map +0 -1
- package/dist/chunk-ZLONH2UD.js.map +0 -1
|
@@ -1068,7 +1068,7 @@ declare function renderSqlInline(fragment: SqlFragment, dialect: SqlDialect): st
|
|
|
1068
1068
|
* Table names for TypeGraph SQL schema.
|
|
1069
1069
|
*
|
|
1070
1070
|
* Carries every customizable physical-table name the backend exposes,
|
|
1071
|
-
* including the secondary tables (`uniques`) that the query compiler
|
|
1071
|
+
* including the secondary tables (`uniques`, `edgeClaims`) that the query compiler
|
|
1072
1072
|
* itself doesn't reference but `materializeRemovals` and other
|
|
1073
1073
|
* cleanup paths need to address by name. Backends without a
|
|
1074
1074
|
* `uniques` table (custom embeddings-only stores) leave it as the
|
|
@@ -1100,6 +1100,8 @@ type SqlTableNames = Readonly<{
|
|
|
1100
1100
|
fulltext: string;
|
|
1101
1101
|
/** Node uniques table name (default: "typegraph_node_uniques") */
|
|
1102
1102
|
uniques: string;
|
|
1103
|
+
/** Edge cardinality claim table name (default: "typegraph_edge_claims") */
|
|
1104
|
+
edgeClaims?: string | undefined;
|
|
1103
1105
|
}>;
|
|
1104
1106
|
type ResolvedSqlTableNames = Readonly<{
|
|
1105
1107
|
/** Nodes table name */
|
|
@@ -1122,6 +1124,8 @@ type ResolvedSqlTableNames = Readonly<{
|
|
|
1122
1124
|
fulltext: string;
|
|
1123
1125
|
/** Node uniques table name */
|
|
1124
1126
|
uniques: string;
|
|
1127
|
+
/** Edge cardinality claim table name */
|
|
1128
|
+
edgeClaims: string;
|
|
1125
1129
|
}>;
|
|
1126
1130
|
type SqlSchemaFields = Readonly<{
|
|
1127
1131
|
/** Table names */
|
|
@@ -2501,6 +2505,20 @@ type BackendCapabilities = Readonly<{
|
|
|
2501
2505
|
* budget applies.
|
|
2502
2506
|
*/
|
|
2503
2507
|
maxBindParameters?: number;
|
|
2508
|
+
/**
|
|
2509
|
+
* Whether this backend supplies the claim relations that fence declared
|
|
2510
|
+
* constraints (`uniques`, re-keyed onto claim axes, plus
|
|
2511
|
+
* `typegraph_edge_claims`) AND implements the claim members.
|
|
2512
|
+
*
|
|
2513
|
+
* Absent means `false`: the backend predates the claim relations, keeps every
|
|
2514
|
+
* fence it has today, and is listed as such in the parity matrix. Never
|
|
2515
|
+
* INFERRED from member presence — a projection that forwarded `capabilities`
|
|
2516
|
+
* while dropping a method would otherwise yield a verdict read from a
|
|
2517
|
+
* different object than the write goes to. `claimSupport`
|
|
2518
|
+
* (`store/claims/backing.ts`) is the one reader, and it refuses a backend
|
|
2519
|
+
* whose declaration and surface disagree in either direction.
|
|
2520
|
+
*/
|
|
2521
|
+
readonly constraintClaims?: boolean;
|
|
2504
2522
|
/** Vector search capabilities (undefined if not configured) */
|
|
2505
2523
|
vector?: VectorCapabilities | undefined;
|
|
2506
2524
|
/** Fulltext search capabilities (undefined if not configured) */
|
|
@@ -3659,6 +3677,17 @@ type IdentityTableNames = Readonly<{
|
|
|
3659
3677
|
identityClosure: string;
|
|
3660
3678
|
identitySeparation: string;
|
|
3661
3679
|
}>;
|
|
3680
|
+
/**
|
|
3681
|
+
* The database-global extensions TypeGraph installs on a caller's behalf.
|
|
3682
|
+
*
|
|
3683
|
+
* The extent is closed on purpose: {@link GraphBackend.ensureExtension}
|
|
3684
|
+
* interpolates the name into DDL, so the allowlist — not the caller — is what
|
|
3685
|
+
* decides the identifier can be trusted. `pg_trgm` backs `method: "trigram"`
|
|
3686
|
+
* index materialization; `vector` backs pgvector storage.
|
|
3687
|
+
*/
|
|
3688
|
+
declare const DATABASE_EXTENSION_NAMES: readonly ["pg_trgm", "vector"];
|
|
3689
|
+
/** A name {@link GraphBackend.ensureExtension} accepts. */
|
|
3690
|
+
type DatabaseExtensionName = (typeof DATABASE_EXTENSION_NAMES)[number];
|
|
3662
3691
|
/**
|
|
3663
3692
|
* The GraphBackend interface abstracts database operations.
|
|
3664
3693
|
*
|
|
@@ -3769,8 +3798,70 @@ type GraphBackend = Readonly<{
|
|
|
3769
3798
|
* rebuild reservations from the returned node after-images.
|
|
3770
3799
|
*/
|
|
3771
3800
|
hardDeleteUniquesByNodeIds?: (this: void, params: HardDeleteUniquesByNodeIdsParams) => Promise<void>;
|
|
3801
|
+
/**
|
|
3802
|
+
* Permanently removes every uniqueness claim owned by nodes of one concrete
|
|
3803
|
+
* kind, at whatever axis each claim sits on. THE definition of "the claims
|
|
3804
|
+
* this kind owns" — kind removal reaps through it so it can neither leak a
|
|
3805
|
+
* claim whose axis is a sibling kind nor delete a surviving sibling's claim.
|
|
3806
|
+
* Optional capability.
|
|
3807
|
+
*/
|
|
3808
|
+
hardDeleteUniquesByConcreteKind?: (this: void, params: HardDeleteUniquesByConcreteKindParams) => Promise<void>;
|
|
3772
3809
|
checkUnique: (this: void, params: CheckUniqueParams) => Promise<UniqueRow | undefined>;
|
|
3773
3810
|
checkUniqueBatch?: (this: void, params: CheckUniqueBatchParams) => Promise<readonly UniqueRow[]>;
|
|
3811
|
+
/**
|
|
3812
|
+
* Takes the claim on one edge cardinality axis, in two statements: a
|
|
3813
|
+
* decision-free create-or-lock that reports the committed holder, and — only
|
|
3814
|
+
* when that holder is a different edge — a conditional takeover that succeeds
|
|
3815
|
+
* exactly when the incumbent is no longer an edge the axis and key describe.
|
|
3816
|
+
*
|
|
3817
|
+
* The claim is the FENCE for a declared cardinality: `(kind, from)` and
|
|
3818
|
+
* `(kind, from, to)` are predicates the edges primary key `(graph_id, id)`
|
|
3819
|
+
* cannot enforce, so without this relation two concurrent writers can both
|
|
3820
|
+
* pass the probe and both commit. Read through the `constraintClaims`
|
|
3821
|
+
* capability, never through member presence — see `claimSupport`
|
|
3822
|
+
* (`store/claims/backing.ts`).
|
|
3823
|
+
*/
|
|
3824
|
+
claimEdgeCardinality?: (this: void, params: ClaimEdgeCardinalityParams) => Promise<EdgeClaimOutcome>;
|
|
3825
|
+
/**
|
|
3826
|
+
* Batched variant of `claimEdgeCardinality`: one multi-row create-or-lock
|
|
3827
|
+
* statement, then a takeover statement only for the entries a different edge
|
|
3828
|
+
* holds. Outcomes are returned positionally, one per entry.
|
|
3829
|
+
*
|
|
3830
|
+
* Callers must not pass two entries with the same conflict target
|
|
3831
|
+
* (`axis`, `key`): a multi-row upsert cannot affect one row twice.
|
|
3832
|
+
*/
|
|
3833
|
+
claimEdgeCardinalityBatch?: (this: void, entries: readonly ClaimEdgeCardinalityParams[]) => Promise<readonly EdgeClaimOutcome[]>;
|
|
3834
|
+
/**
|
|
3835
|
+
* Housekeeping only: drops the claim rows named edges hold, so hard deletes,
|
|
3836
|
+
* kind removal and `clearGraph` do not grow the relation without bound. The
|
|
3837
|
+
* FENCE never depends on it having run — a claim whose holder is no longer
|
|
3838
|
+
* live (or, for `oneActive`, no longer active) is taken over in place.
|
|
3839
|
+
*/
|
|
3840
|
+
purgeEdgeClaims?: (this: void, params: PurgeEdgeClaimsParams) => Promise<void>;
|
|
3841
|
+
/**
|
|
3842
|
+
* Read-only diagnostic: the rows that make a declared constraint currently
|
|
3843
|
+
* violated, for a caller (`store.verifyConstraintFences()`) that folds them
|
|
3844
|
+
* onto the claim axes they contend for.
|
|
3845
|
+
*
|
|
3846
|
+
* It reads the ENTITY relations for the two families whose pre-upgrade
|
|
3847
|
+
* violations no claim row records — a database written before the claim
|
|
3848
|
+
* relations existed holds no edge claims at all — and the `uniques` relation
|
|
3849
|
+
* for uniqueness, where a pre-upgrade duplicate is exactly two live rows
|
|
3850
|
+
* sitting at two different `node_kind`s. A scan of a claim relation's primary
|
|
3851
|
+
* key can find neither, which is why this is not one.
|
|
3852
|
+
*
|
|
3853
|
+
* Returns the contending ROWS, not the verdict: the axis a `uniques` row
|
|
3854
|
+
* belongs to is a fold over the graph's subclass component, and the key an
|
|
3855
|
+
* edge's claim sits on is `EDGE_CARDINALITY_SPECS`' — both of which live
|
|
3856
|
+
* above the backend, so a backend that decided either would be a second
|
|
3857
|
+
* spelling of a decision the fence already owns.
|
|
3858
|
+
*
|
|
3859
|
+
* Writes nothing: no DDL, no claim writes. Safe on a replica and under a
|
|
3860
|
+
* least-privilege role. Present only on backends that can run the audit;
|
|
3861
|
+
* `store.verifyConstraintFences()` refuses with a typed error when absent
|
|
3862
|
+
* rather than reporting an empty (and therefore reassuring) result.
|
|
3863
|
+
*/
|
|
3864
|
+
readConstraintFenceViolations?: (this: void, params: ReadConstraintFenceViolationsParams) => Promise<ConstraintFenceViolationRows>;
|
|
3774
3865
|
getActiveSchema: (this: void, graphId: string) => Promise<SchemaVersionRow | undefined>;
|
|
3775
3866
|
getSchemaVersion: (this: void, graphId: string, version: number) => Promise<SchemaVersionRow | undefined>;
|
|
3776
3867
|
/**
|
|
@@ -3951,6 +4042,12 @@ type GraphBackend = Readonly<{
|
|
|
3951
4042
|
* Install the PostgreSQL `pg_trgm` extension under a database-global
|
|
3952
4043
|
* concurrency fence. Relational trigram index materialization calls this
|
|
3953
4044
|
* before emitting its index DDL; non-PostgreSQL backends omit it.
|
|
4045
|
+
*
|
|
4046
|
+
* @deprecated The `pg_trgm`-only spelling of {@link GraphBackend.ensureExtension},
|
|
4047
|
+
* which says the same thing for every extension the library installs. It is
|
|
4048
|
+
* retained — and still consulted, after `ensureExtension` — so a backend
|
|
4049
|
+
* written against 0.47 keeps its fence; the bundled PostgreSQL backend
|
|
4050
|
+
* implements it by delegating. Implement `ensureExtension` in new backends.
|
|
3954
4051
|
*/
|
|
3955
4052
|
ensureTrigramExtension?: (this: void) => Promise<void>;
|
|
3956
4053
|
/**
|
|
@@ -4394,6 +4491,30 @@ type GraphBackend = Readonly<{
|
|
|
4394
4491
|
* statement outside `transaction(...)`.
|
|
4395
4492
|
*/
|
|
4396
4493
|
executeDdl?: (this: void, ddl: string) => Promise<void>;
|
|
4494
|
+
/**
|
|
4495
|
+
* Installs a database-global extension idempotently, tolerating the
|
|
4496
|
+
* concurrent-install race.
|
|
4497
|
+
*
|
|
4498
|
+
* `CREATE EXTENSION IF NOT EXISTS` is not a concurrency primitive on
|
|
4499
|
+
* PostgreSQL: the existence check cannot see another session's uncommitted
|
|
4500
|
+
* `pg_extension` row, so the loser of a race waits for the winner and is
|
|
4501
|
+
* then handed SQLSTATE 23505 instead of the harmless "already exists"
|
|
4502
|
+
* notice (#446). A backend implementing this member owns that retry, and
|
|
4503
|
+
* may additionally serialize same-extension installers behind a fence of its
|
|
4504
|
+
* own (the bundled PostgreSQL backend takes a transaction advisory lock
|
|
4505
|
+
* keyed on the extension, #475).
|
|
4506
|
+
*
|
|
4507
|
+
* This is the one member the library asks for an extension install; it
|
|
4508
|
+
* supersedes {@link GraphBackend.ensureTrigramExtension}, which said the same
|
|
4509
|
+
* thing for one extension.
|
|
4510
|
+
*
|
|
4511
|
+
* Like `executeDdl`, implementations MUST run the statement at the
|
|
4512
|
+
* top-level backend, never inside `transaction(...)`: the 23505 aborts the
|
|
4513
|
+
* enclosing transaction, so a retry issued inside one would only collect
|
|
4514
|
+
* `25P02` on the way out. That is why this member is absent from
|
|
4515
|
+
* {@link TransactionBackend}.
|
|
4516
|
+
*/
|
|
4517
|
+
ensureExtension?: (this: void, name: DatabaseExtensionName) => Promise<void>;
|
|
4397
4518
|
/** Runs TypeGraph operations inside a backend-owned transaction. */
|
|
4398
4519
|
transaction: <T>(this: void, fn: (tx: TransactionBackend) => Promise<T>, options?: TransactionOptions) => Promise<T>;
|
|
4399
4520
|
close: (this: void) => Promise<void>;
|
|
@@ -4418,7 +4539,7 @@ type EdgeEntityReadBackend = Pick<GraphBackend, "getEdge" | "getEdges" | "countE
|
|
|
4418
4539
|
type EdgeEntityWriteBackend = Pick<GraphBackend, "insertEdge" | "insertEdgeNoReturn" | "insertEdgesBatch" | "insertEdgesBatchReturning" | "updateEdge" | "deleteEdge" | "deleteEdgesBatch" | "hardDeleteEdge" | "hardDeleteEdgesBatch">;
|
|
4419
4540
|
type GraphEntityReadBackend = NodeEntityReadBackend & EdgeEntityReadBackend;
|
|
4420
4541
|
type GraphEntityWriteBackend = NodeEntityWriteBackend & EdgeEntityWriteBackend;
|
|
4421
|
-
type UniqueConstraintBackend = Pick<GraphBackend, "insertUnique" | "insertUniqueBatch" | "deleteUnique" | "hardDeleteUniquesByNodeIds" | "checkUnique" | "checkUniqueBatch">;
|
|
4542
|
+
type UniqueConstraintBackend = Pick<GraphBackend, "insertUnique" | "insertUniqueBatch" | "deleteUnique" | "hardDeleteUniquesByNodeIds" | "hardDeleteUniquesByConcreteKind" | "checkUnique" | "checkUniqueBatch">;
|
|
4422
4543
|
type SchemaReadBackend = Pick<GraphBackend, "getActiveSchema" | "getSchemaVersion">;
|
|
4423
4544
|
type SchemaCommitBackend = Pick<GraphBackend, "commitSchemaVersion" | "commitSchemaVersionIfKindsEmpty" | "setActiveVersion">;
|
|
4424
4545
|
type SchemaWriteFenceBackend = Pick<GraphBackend, "lockSchemaVersionForWrite">;
|
|
@@ -4453,7 +4574,7 @@ type TransactionReadBackend = Readonly<BackendIdentity & GraphEntityReadBackend
|
|
|
4453
4574
|
* deliberately absent: their guarantees depend on the top-level backend or
|
|
4454
4575
|
* lifecycle owner rather than an already-open transaction.
|
|
4455
4576
|
*/
|
|
4456
|
-
type TransactionBackend = Readonly<BackendIdentity & GraphEntityReadBackend & GraphEntityWriteBackend & UniqueConstraintBackend & SchemaReadBackend & Pick<GraphBackend, "lockSchemaVersionForWrite"> & VectorOperationBackend & FulltextOperationBackend & IndexMaterializationBackend & ContributionMaterializationBackend & RemovalMaterializationBackend & GraphLifecycleBackend & QueryExecutionBackend & RawQueryExecutionBackend & RawStatementExecutionBackend>;
|
|
4577
|
+
type TransactionBackend = Readonly<BackendIdentity & GraphEntityReadBackend & GraphEntityWriteBackend & UniqueConstraintBackend & Pick<GraphBackend, "claimEdgeCardinality" | "claimEdgeCardinalityBatch" | "purgeEdgeClaims"> & SchemaReadBackend & Pick<GraphBackend, "lockSchemaVersionForWrite"> & VectorOperationBackend & FulltextOperationBackend & IndexMaterializationBackend & ContributionMaterializationBackend & RemovalMaterializationBackend & GraphLifecycleBackend & QueryExecutionBackend & RawQueryExecutionBackend & RawStatementExecutionBackend>;
|
|
4457
4578
|
/**
|
|
4458
4579
|
* The target a schema-commit preflight runs against: a transaction backend
|
|
4459
4580
|
* that MAY also carry the schema-write DDL primitive.
|
|
@@ -4483,13 +4604,34 @@ type InsertUniqueParams = Readonly<{
|
|
|
4483
4604
|
concreteKind: string;
|
|
4484
4605
|
}>;
|
|
4485
4606
|
/**
|
|
4486
|
-
* Parameters for
|
|
4607
|
+
* Parameters for releasing a unique constraint entry.
|
|
4608
|
+
*
|
|
4609
|
+
* Every release is scoped to the claim's OWNER — the pair
|
|
4610
|
+
* `(concreteKind, nodeId)`, because a node id is unique only within its kind.
|
|
4611
|
+
* The two shapes differ only in whether the claim AXIS participates:
|
|
4612
|
+
*
|
|
4613
|
+
* - **Lifecycle release** (`nodeKind` absent) — "give up every claim this node
|
|
4614
|
+
* holds for this constraint and key, whatever axis it sits on". Soft delete,
|
|
4615
|
+
* an update's key-change release and the resurrect diff use it, so a claim
|
|
4616
|
+
* written under an older axis is still released by newer code.
|
|
4617
|
+
* - **Compensating release** (`nodeKind` present) — "undo exactly the row I
|
|
4618
|
+
* just claimed, at the axis I claimed it on". A failed write's rollback uses
|
|
4619
|
+
* it, so it touches neither a row that predates the write nor one another
|
|
4620
|
+
* node holds.
|
|
4487
4621
|
*/
|
|
4488
4622
|
type DeleteUniqueParams = Readonly<{
|
|
4489
4623
|
graphId: string;
|
|
4490
|
-
|
|
4624
|
+
/**
|
|
4625
|
+
* The claim axis (`uniques.node_kind`) the release is restricted to. Absent
|
|
4626
|
+
* releases the owner's claims at every axis — see the two shapes above.
|
|
4627
|
+
*/
|
|
4628
|
+
nodeKind?: string;
|
|
4491
4629
|
constraintName: string;
|
|
4492
4630
|
key: string;
|
|
4631
|
+
/** The claim owner's concrete kind (`uniques.concrete_kind`). */
|
|
4632
|
+
concreteKind: string;
|
|
4633
|
+
/** The claim owner's node id (`uniques.node_id`). */
|
|
4634
|
+
nodeId: string;
|
|
4493
4635
|
}>;
|
|
4494
4636
|
/** Parameters for permanently clearing uniqueness sidecars by node identity. */
|
|
4495
4637
|
type HardDeleteUniquesByNodeIdsParams = Readonly<{
|
|
@@ -4497,6 +4639,115 @@ type HardDeleteUniquesByNodeIdsParams = Readonly<{
|
|
|
4497
4639
|
concreteKind: string;
|
|
4498
4640
|
nodeIds: readonly string[];
|
|
4499
4641
|
}>;
|
|
4642
|
+
/** Parameters for permanently clearing every uniqueness claim a kind owns. */
|
|
4643
|
+
type HardDeleteUniquesByConcreteKindParams = Readonly<{
|
|
4644
|
+
graphId: string;
|
|
4645
|
+
concreteKind: string;
|
|
4646
|
+
}>;
|
|
4647
|
+
/**
|
|
4648
|
+
* One edge cardinality claim, named by the components its axis, its key and its
|
|
4649
|
+
* holder-liveness predicate are all built from.
|
|
4650
|
+
*
|
|
4651
|
+
* The components are passed RAW rather than pre-rendered: `EDGE_CARDINALITY_SPECS`
|
|
4652
|
+
* (`store/claims/edge-claims.ts`) is the one table that decides which endpoints
|
|
4653
|
+
* the key covers and what a holder must still be, and both the TypeScript probe
|
|
4654
|
+
* and the SQL builder read it. A caller that rendered the axis and key itself
|
|
4655
|
+
* would be a second spelling of that decision.
|
|
4656
|
+
*/
|
|
4657
|
+
type ClaimEdgeCardinalityParams = Readonly<{
|
|
4658
|
+
graphId: string;
|
|
4659
|
+
/** The declared cardinality; `many` declares nothing and never claims. */
|
|
4660
|
+
cardinality: Exclude<Cardinality, "many">;
|
|
4661
|
+
edgeKind: string;
|
|
4662
|
+
/** The edge that will hold the axis if this claim lands. */
|
|
4663
|
+
edgeId: string;
|
|
4664
|
+
fromKind: string;
|
|
4665
|
+
fromId: string;
|
|
4666
|
+
toKind: string;
|
|
4667
|
+
toId: string;
|
|
4668
|
+
}>;
|
|
4669
|
+
/**
|
|
4670
|
+
* What a claim statement decided.
|
|
4671
|
+
*
|
|
4672
|
+
* `refused` carries the incumbent so the caller can say which edge holds the
|
|
4673
|
+
* axis; the typed refusal itself is the store's, built from the same
|
|
4674
|
+
* `checkCardinality` / `checkUniqueEdge` owners the probe uses, so a caller
|
|
4675
|
+
* cannot tell which layer refused.
|
|
4676
|
+
*/
|
|
4677
|
+
type EdgeClaimOutcome = Readonly<{
|
|
4678
|
+
status: "claimed";
|
|
4679
|
+
}> | Readonly<{
|
|
4680
|
+
status: "refused";
|
|
4681
|
+
holderEdgeId: string;
|
|
4682
|
+
}>;
|
|
4683
|
+
/** Parameters for the housekeeping purge of claims held by named edges. */
|
|
4684
|
+
type PurgeEdgeClaimsParams = Readonly<{
|
|
4685
|
+
graphId: string;
|
|
4686
|
+
edgeIds: readonly string[];
|
|
4687
|
+
}>;
|
|
4688
|
+
/** One edge kind's declared cardinality, as the fence audit reads it. */
|
|
4689
|
+
type EdgeCardinalityDeclaration = Readonly<{
|
|
4690
|
+
edgeKind: string;
|
|
4691
|
+
/** `many` declares nothing, so it is unrepresentable here. */
|
|
4692
|
+
cardinality: Exclude<Cardinality, "many">;
|
|
4693
|
+
}>;
|
|
4694
|
+
/**
|
|
4695
|
+
* What a constraint-fence audit asks the database about: the declarations the
|
|
4696
|
+
* graph carries, one list per family.
|
|
4697
|
+
*
|
|
4698
|
+
* The declarations are passed rather than discovered because the backend holds
|
|
4699
|
+
* no schema — and because the `uniqueConstraintNames` restriction is
|
|
4700
|
+
* load-bearing rather than an optimization: the `uniques` relation also holds
|
|
4701
|
+
* disjointness claims, whose `node_kind` is a pair label rather than a kind and
|
|
4702
|
+
* for which no uniqueness axis can be computed. Those rows are covered by
|
|
4703
|
+
* `disjointKindPairs`, from the nodes relation.
|
|
4704
|
+
*/
|
|
4705
|
+
type ReadConstraintFenceViolationsParams = Readonly<{
|
|
4706
|
+
graphId: string;
|
|
4707
|
+
/** Every unique constraint name the graph declares, in any scope. */
|
|
4708
|
+
uniqueConstraintNames: readonly string[];
|
|
4709
|
+
/** Every declared `disjointWith` pair, each read as one intersection. */
|
|
4710
|
+
disjointKindPairs: readonly (readonly [string, string])[];
|
|
4711
|
+
/** Every edge kind declaring a cardinality other than `many`. */
|
|
4712
|
+
edgeCardinalities: readonly EdgeCardinalityDeclaration[];
|
|
4713
|
+
}>;
|
|
4714
|
+
/**
|
|
4715
|
+
* One live `uniques` row that shares its `(constraint_name, key)` with at least
|
|
4716
|
+
* one other live row — a candidate, not a verdict: two rows contend only when
|
|
4717
|
+
* their `node_kind`s fold onto ONE claim axis, which the caller decides.
|
|
4718
|
+
*/
|
|
4719
|
+
type ContendedUniqueRow = Readonly<{
|
|
4720
|
+
nodeKind: string;
|
|
4721
|
+
constraintName: string;
|
|
4722
|
+
key: string;
|
|
4723
|
+
concreteKind: string;
|
|
4724
|
+
nodeId: string;
|
|
4725
|
+
}>;
|
|
4726
|
+
/**
|
|
4727
|
+
* One live edge that shares its declared cardinality's population with at least
|
|
4728
|
+
* one other live edge. The endpoints are returned whole so the caller can name
|
|
4729
|
+
* the claim key through the one builder that renders it.
|
|
4730
|
+
*/
|
|
4731
|
+
type ContendedEdgeRow = Readonly<{
|
|
4732
|
+
edgeKind: string;
|
|
4733
|
+
cardinality: Exclude<Cardinality, "many">;
|
|
4734
|
+
edgeId: string;
|
|
4735
|
+
fromKind: string;
|
|
4736
|
+
fromId: string;
|
|
4737
|
+
toKind: string;
|
|
4738
|
+
toId: string;
|
|
4739
|
+
}>;
|
|
4740
|
+
/** One node id live under BOTH kinds of a declared disjoint pair. */
|
|
4741
|
+
type DisjointOverlapRow = Readonly<{
|
|
4742
|
+
kinds: readonly [string, string];
|
|
4743
|
+
nodeId: string;
|
|
4744
|
+
}>;
|
|
4745
|
+
/** Everything one constraint-fence audit read, per family. */
|
|
4746
|
+
type ConstraintFenceViolationRows = Readonly<{
|
|
4747
|
+
contendedUniqueRows: readonly ContendedUniqueRow[];
|
|
4748
|
+
contendedEdgeRows: readonly ContendedEdgeRow[];
|
|
4749
|
+
disjointOverlaps: readonly DisjointOverlapRow[];
|
|
4750
|
+
}>;
|
|
4500
4751
|
/**
|
|
4501
4752
|
* Parameters for checking a unique constraint.
|
|
4502
4753
|
*/
|
|
@@ -5653,4 +5904,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
5653
5904
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
5654
5905
|
type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
|
|
5655
5906
|
|
|
5656
|
-
export { type DialectCapabilities as $, ALL_FULLTEXT_MODES as A, BASE_CONTRIBUTION_OWNER as B, type Cardinality as C, type ContributionProbeEntry as D, type ContributionProbeResult as E, type ContributionProbeState as F, type ContributionRebuildResult as G, type ContributionRebuildScope as H, type IndexDeclaration as I, type ContributionRepairEntry as J, type ContributionRepairResult as K, type ContributionRepopulationStats as L, type CountEdgesByKindParams as M, type CountEdgesFromParams as N, type CountNodesByKindParams as O, type CreateVectorIndexParams as P, D1_MAX_BIND_PARAMETERS as Q, DURABLE_OBJECT_MAX_BIND_PARAMETERS as R, type DeleteBehavior as S, type DeleteEdgeParams as T, type DeleteEdgesBatchParams as U, type DeleteEmbeddingParams as V, type DeleteFulltextBatchParams as W, type DeleteFulltextParams as X, type DeleteNodeParams as Y, type DeleteUniqueParams as Z, type DialectAdapter as _, ALL_META_EDGE_NAMES as a, type IndexDeclarationBase as a$, type DialectRecursiveQueryStrategy as a0, type DialectStandardQueryStrategy as a1, type DialectVectorPredicateStrategy as a2, type DropVectorIndexParams as a3, type EdgeEntityReadBackend as a4, type EdgeEntityWriteBackend as a5, type EdgeExistsBetweenParams as a6, type EdgeIndexDeclaration as a7, type EdgeIndexDirection as a8, type EdgeRow as a9, type FindEdgesByHeterogeneousEndpointSetParams as aA, type FindEdgesByKindParams as aB, type FindEdgesConnectedToParams as aC, type FindNodesByKindParams as aD, type FulltextBatchRow as aE, type FulltextCapabilities as aF, type FulltextOperationBackend as aG, type FulltextQueryMode as aH, type FulltextSearchParams as aI, type FulltextSearchResult as aJ, type FulltextStrategy as aK, type GraphAnalyticsCapabilities as aL, type GraphBackend as aM, type GraphEntityReadBackend as aN, type GraphEntityWriteBackend as aO, type GraphExtension as aP, type GraphExtensionVersion as aQ, type GraphIdentityConfig as aR, type GraphLifecycleBackend as aS, type GraphReadBackend as aT, type HardDeleteEdgeParams as aU, type HardDeleteNodeParams as aV, type HardDeleteUniquesByNodeIdsParams as aW, type HybridSearchParams as aX, type HybridSearchRow as aY, type IdentityTableNames as aZ, type InListParameterOptions as a_, type EndpointExistence as aa, type ExtensionArrayItemType as ab, type ExtensionArrayProperty as ac, type ExtensionBooleanProperty as ad, type ExtensionEdgeDef as ae, type ExtensionEdgeIndex as af, type ExtensionEmbeddingModifier as ag, type ExtensionEnumProperty as ah, type ExtensionIndex as ai, type ExtensionIndexWhere as aj, type ExtensionNodeDef as ak, type ExtensionNodeIndex as al, type ExtensionNumberProperty as am, type ExtensionObjectFieldProperty as an, type ExtensionObjectProperty as ao, type ExtensionOntologyRelation as ap, type ExtensionPropertyModifiers as aq, type ExtensionPropertyType as ar, type ExtensionSearchableModifier as as, type ExtensionStringProperty as at, type ExtensionUniqueConstraint as au, type ExtensionUniqueWhere as av, FULLTEXT_CONTRIBUTION_NAME as aw, type FilteredApproximateSearch as ax, type FilteredApproximateSearchMode as ay, type FindEdgesByEndpointSetParams as az, type AdapterBackend as b, type SetActiveVersionParams as b$, type IndexEntity as b0, type IndexMaterializationBackend as b1, type IndexMaterializationRow as b2, type IndexOrigin as b3, type IndexScope as b4, type IndexWhereExpression as b5, type IndexWhereLiteral as b6, type IndexWhereOp as b7, type IndexWhereOperand as b8, type InferenceType as b9, type RawStatementExecutionBackend as bA, type RecordContributionMaterializationParams as bB, type RecordIndexMaterializationParams as bC, type RecordKindRemovalParams as bD, type RelationalIndexDeclaration as bE, type RelationalIndexMethod as bF, type ReleaseIndexMaterializationClaimParams as bG, type RemovalMaterializationBackend as bH, type RenderedSql as bI, type ResolvedSqlTableNames as bJ, type RowProps as bK, SQLITE_CAPABILITIES as bL, SQLITE_MAX_BIND_PARAMETERS as bM, type SchemaCommitBackend as bN, type SchemaCommitPreflightBackend as bO, type SchemaKindEmptinessProbe as bP, type SchemaReadBackend as bQ, type SchemaVersionRow as bR, type SchemaWriteFenceBackend as bS, type SerializedClosures as bT, type SerializedEdgeDef as bU, type SerializedMetaEdge as bV, type SerializedNodeDef as bW, type SerializedOntology as bX, type SerializedOntologyRelation as bY, type SerializedSchema as bZ, type SerializedUniqueConstraint as b_, type InsertEdgeParams as ba, type InsertNodeParams as bb, type InsertSchemaParams as bc, type InsertUniqueParams as bd, type IntentSql as be, type JsonPointer as bf, type JsonSchema as bg, type JsonValue as bh, type KindAnnotations as bi, type KindEntity as bj, type KindRemovalRow as bk, type LiveNodeRow as bl, type LockSchemaVersionForWriteParams as bm, MODERN_SQLITE_MAX_BIND_PARAMETERS as bn, type MetaEdgeName as bo, type NodeEntityReadBackend as bp, type NodeEntityWriteBackend as bq, type NodeIndexDeclaration as br, type NodeRow as bs, type NullCheckOp as bt, POSTGRES_CAPABILITIES as bu, POSTGRES_MAX_BIND_PARAMETERS as bv, Placeholder as bw, type PopulatedSchemaKind as bx, type QueryExecutionBackend as by, type RawQueryExecutionBackend as bz, type AdapterBackendTransactions as c, renderSqlite as c$, type SqlChunk as c0, type SqlCompilationBackend as c1, type SqlDialect as c2, type SqlFragment as c3, type SqlIdentifierChunk as c4, type SqlIntent as c5, type SqlParameterChunk as c6, type SqlPlaceholderChunk as c7, type SqlTableNames as c8, type SqlTag as c9, type VectorIndexDeclaration as cA, type VectorIndexImplementation as cB, type VectorIndexMetric as cC, type VectorIndexParams as cD, type VectorIndexType as cE, type VectorMetric as cF, type VectorOperationBackend as cG, type VectorSearchFrontierTuning as cH, type VectorSearchParams as cI, type VectorSearchResult as cJ, type VectorSlot as cK, type VectorStrategy as cL, assertFiniteEmbedding as cM, assertVectorMinScore as cN, assertVectorSearchLimit as cO, buildFulltextCapabilities as cP, buildVectorCapabilities as cQ, fts5Strategy as cR, isLiveNodeRow as cS, isSqlFragment as cT, isSqlPlaceholder as cU, isTombstonedNodeRow as cV, normalizeGraphAnalyticsCapabilities as cW, quoteIdentifier as cX, renderPostgres as cY, renderSql as cZ, renderSqlInline as c_, type SqlTextChunk as ca, type StrategyTableContribution as cb, type SystemColumnName as cc, type TableContribution as cd, type TemporalMode as ce, type TombstonedNodeRow as cf, type TransactionBackend as cg, type TransactionOptions as ch, type TransactionReadBackend as ci, type TrustedImportOptions as cj, type TrustedImportSession as ck, type UniqueConstraintBackend as cl, type UniqueRow as cm, type UniquenessScope as cn, type UpdateEdgeParams as co, type UpdateNodeParams as cp, type UpdateNodeSetParams as cq, type UpdateNodeSetResult as cr, type UpsertEmbeddingBatchParams as cs, type UpsertEmbeddingBatchRow as ct, type UpsertEmbeddingParams as cu, type UpsertFulltextBatchParams as cv, type UpsertFulltextParams as cw, VECTOR_CONTRIBUTION_PREFIX as cx, type ValueType as cy, type VectorCapabilities as cz, type BackendCapabilities as d, asEdgeId as d$, rowPropsToJsonText as d0, rowPropsToObject as d1, shortHash as d2, sql as d3, tsvectorStrategy as d4, vectorMinScoreCondition as d5, vectorPhysicalName as d6, vectorScoreExpression as d7, type GraphDef as d8, type QueryAst as d9, type EdgeTypeWithEndpoints as dA, type ExternalRecordedReadSource as dB, type GetEdgeType as dC, type GetNodeType as dD, type GraphDefaults as dE, type HybridFusionOptions as dF, type JsonPointerFor as dG, type JsonPointerInput as dH, type JsonPointerSegment as dI, type JsonPointerSegments as dJ, type JsonPointerSegmentsFor as dK, LEGACY_GRAPH_EXTENSION_VERSION as dL, MAX_JSON_POINTER_DEPTH as dM, type MetaEdge as dN, type MetaEdgeProperties as dO, type NodeId as dP, type NodeKinds as dQ, type NodeProps as dR, type NodeRegistration as dS, type OrderSpec as dT, type ParameterRef as dU, type RecordedRelationOptions as dV, type ResolveJsonPointer as dW, type ResolveJsonPointerSegments as dX, type SortDirection as dY, type TraversalExpansion as dZ, type UniqueConstraint as d_, type EdgeIndexConfig as da, type EdgeIndexWhereBuilder as db, type IndexWhereFieldBuilder as dc, type IndexWhereInput as dd, type NodeIndexConfig as de, type NodeIndexWhereBuilder as df, type NodeType as dg, type AnyEdgeType as dh, SqlSchema as di, type SchemaHash as dj, type AggregateExpr as dk, type FieldRef as dl, type ComparisonOp as dm, type AggregateComparisonPredicate as dn, type TraversalDirection as dp, type OntologyRelation as dq, type EdgeType as dr, type AllEdgeTypes as ds, type AllNodeTypes as dt, CURRENT_GRAPH_EXTENSION_VERSION as du, DEFAULT_SQL_SCHEMA as dv, type EdgeId as dw, type EdgeKinds as dx, type EdgeProps as dy, type EdgeRegistration as dz, type BackendIdentity as e, asNodeId as e0, createSqlSchema as e1, defineGraph as e2, getEdgeKinds as e3, getNodeKinds as e4, isEdgeType as e5, isEdgeTypeWithEndpoints as e6, isGraphDef as e7, isMetaEdge as e8, isNodeType as e9, joinJsonPointers as ea, jsonPointer as eb, normalizeJsonPointer as ec, parseJsonPointer as ed, recordedRelation as ee, type PredicateExpression as ef, type VectorMetricType as eg, type Traversal as eh, type NodePredicate as ei, type ProjectedField as ej, type AggregateOrderSpec as ek, type GroupBySpec as el, type RecursiveCyclePolicy as em, type VectorSlotMap as en, type RecordedReadBinding as eo, type SelectiveField as ep, type ComposableQuery as eq, type SetOperationType as er, type SetOperation as es, type BackendValidityEndMutation as et, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eu, type GraphExtensionTopLevelKey as ev, type BackendLifecycle as f, type BackendMaintenance as g, type BackendTransactions as h, type CheckUniqueBatchParams as i, type CheckUniqueParams as j, type ClaimIndexMaterializationParams as k, type Collation as l, type CommitSchemaVersionExpected as m, type CommitSchemaVersionIfKindsEmptyResult as n, type CommitSchemaVersionParams as o, type CompiledRowsSql as p, type CompiledSelectSql as q, type CompiledStatementSql as r, type CompiledTemporaryStatementSql as s, type ContributionCapabilities as t, type ContributionDiagnostic as u, type ContributionDiagnosticState as v, type ContributionMaterializationBackend as w, type ContributionMaterializationIdentity as x, type ContributionMaterializationRow as y, type ContributionProbeContribution as z };
|
|
5907
|
+
export { type DeleteEmbeddingParams as $, ALL_FULLTEXT_MODES as A, BASE_CONTRIBUTION_OWNER as B, type Cardinality as C, type ContributionMaterializationBackend as D, type ContributionMaterializationIdentity as E, type ContributionMaterializationRow as F, type ContributionProbeContribution as G, type ContributionProbeEntry as H, type IndexDeclaration as I, type ContributionProbeResult as J, type ContributionProbeState as K, type ContributionRebuildResult as L, type ContributionRebuildScope as M, type ContributionRepairEntry as N, type ContributionRepairResult as O, type ContributionRepopulationStats as P, type CountEdgesByKindParams as Q, type CountEdgesFromParams as R, type CountNodesByKindParams as S, type CreateVectorIndexParams as T, D1_MAX_BIND_PARAMETERS as U, DATABASE_EXTENSION_NAMES as V, DURABLE_OBJECT_MAX_BIND_PARAMETERS as W, type DatabaseExtensionName as X, type DeleteBehavior as Y, type DeleteEdgeParams as Z, type DeleteEdgesBatchParams as _, ALL_META_EDGE_NAMES as a, type GraphLifecycleBackend as a$, type DeleteFulltextBatchParams as a0, type DeleteFulltextParams as a1, type DeleteNodeParams as a2, type DeleteUniqueParams as a3, type DialectAdapter as a4, type DialectCapabilities as a5, type DialectRecursiveQueryStrategy as a6, type DialectStandardQueryStrategy as a7, type DialectVectorPredicateStrategy as a8, type DisjointOverlapRow as a9, type ExtensionPropertyType as aA, type ExtensionSearchableModifier as aB, type ExtensionStringProperty as aC, type ExtensionUniqueConstraint as aD, type ExtensionUniqueWhere as aE, FULLTEXT_CONTRIBUTION_NAME as aF, type FilteredApproximateSearch as aG, type FilteredApproximateSearchMode as aH, type FindEdgesByEndpointSetParams as aI, type FindEdgesByHeterogeneousEndpointSetParams as aJ, type FindEdgesByKindParams as aK, type FindEdgesConnectedToParams as aL, type FindNodesByKindParams as aM, type FulltextBatchRow as aN, type FulltextCapabilities as aO, type FulltextOperationBackend as aP, type FulltextQueryMode as aQ, type FulltextSearchParams as aR, type FulltextSearchResult as aS, type FulltextStrategy as aT, type GraphAnalyticsCapabilities as aU, type GraphBackend as aV, type GraphEntityReadBackend as aW, type GraphEntityWriteBackend as aX, type GraphExtension as aY, type GraphExtensionVersion as aZ, type GraphIdentityConfig as a_, type DropVectorIndexParams as aa, type EdgeCardinalityDeclaration as ab, type EdgeClaimOutcome as ac, type EdgeEntityReadBackend as ad, type EdgeEntityWriteBackend as ae, type EdgeExistsBetweenParams as af, type EdgeIndexDeclaration as ag, type EdgeIndexDirection as ah, type EdgeRow as ai, type EndpointExistence as aj, type ExtensionArrayItemType as ak, type ExtensionArrayProperty as al, type ExtensionBooleanProperty as am, type ExtensionEdgeDef as an, type ExtensionEdgeIndex as ao, type ExtensionEmbeddingModifier as ap, type ExtensionEnumProperty as aq, type ExtensionIndex as ar, type ExtensionIndexWhere as as, type ExtensionNodeDef as at, type ExtensionNodeIndex as au, type ExtensionNumberProperty as av, type ExtensionObjectFieldProperty as aw, type ExtensionObjectProperty as ax, type ExtensionOntologyRelation as ay, type ExtensionPropertyModifiers as az, type AdapterBackend as b, type SchemaKindEmptinessProbe as b$, type GraphReadBackend as b0, type HardDeleteEdgeParams as b1, type HardDeleteNodeParams as b2, type HardDeleteUniquesByConcreteKindParams as b3, type HardDeleteUniquesByNodeIdsParams as b4, type HybridSearchParams as b5, type HybridSearchRow as b6, type IdentityTableNames as b7, type InListParameterOptions as b8, type IndexDeclarationBase as b9, type NodeEntityWriteBackend as bA, type NodeIndexDeclaration as bB, type NodeRow as bC, type NullCheckOp as bD, POSTGRES_CAPABILITIES as bE, POSTGRES_MAX_BIND_PARAMETERS as bF, Placeholder as bG, type PopulatedSchemaKind as bH, type PurgeEdgeClaimsParams as bI, type QueryExecutionBackend as bJ, type RawQueryExecutionBackend as bK, type RawStatementExecutionBackend as bL, type ReadConstraintFenceViolationsParams as bM, type RecordContributionMaterializationParams as bN, type RecordIndexMaterializationParams as bO, type RecordKindRemovalParams as bP, type RelationalIndexDeclaration as bQ, type RelationalIndexMethod as bR, type ReleaseIndexMaterializationClaimParams as bS, type RemovalMaterializationBackend as bT, type RenderedSql as bU, type ResolvedSqlTableNames as bV, type RowProps as bW, SQLITE_CAPABILITIES as bX, SQLITE_MAX_BIND_PARAMETERS as bY, type SchemaCommitBackend as bZ, type SchemaCommitPreflightBackend as b_, type IndexEntity as ba, type IndexMaterializationBackend as bb, type IndexMaterializationRow as bc, type IndexOrigin as bd, type IndexScope as be, type IndexWhereExpression as bf, type IndexWhereLiteral as bg, type IndexWhereOp as bh, type IndexWhereOperand as bi, type InferenceType as bj, type InsertEdgeParams as bk, type InsertNodeParams as bl, type InsertSchemaParams as bm, type InsertUniqueParams as bn, type IntentSql as bo, type JsonPointer as bp, type JsonSchema as bq, type JsonValue as br, type KindAnnotations as bs, type KindEntity as bt, type KindRemovalRow as bu, type LiveNodeRow as bv, type LockSchemaVersionForWriteParams as bw, MODERN_SQLITE_MAX_BIND_PARAMETERS as bx, type MetaEdgeName as by, type NodeEntityReadBackend as bz, type AdapterBackendTransactions as c, buildFulltextCapabilities as c$, type SchemaReadBackend as c0, type SchemaVersionRow as c1, type SchemaWriteFenceBackend as c2, type SerializedClosures as c3, type SerializedEdgeDef as c4, type SerializedMetaEdge as c5, type SerializedNodeDef as c6, type SerializedOntology as c7, type SerializedOntologyRelation as c8, type SerializedSchema as c9, type UpdateEdgeParams as cA, type UpdateNodeParams as cB, type UpdateNodeSetParams as cC, type UpdateNodeSetResult as cD, type UpsertEmbeddingBatchParams as cE, type UpsertEmbeddingBatchRow as cF, type UpsertEmbeddingParams as cG, type UpsertFulltextBatchParams as cH, type UpsertFulltextParams as cI, VECTOR_CONTRIBUTION_PREFIX as cJ, type ValueType as cK, type VectorCapabilities as cL, type VectorIndexDeclaration as cM, type VectorIndexImplementation as cN, type VectorIndexMetric as cO, type VectorIndexParams as cP, type VectorIndexType as cQ, type VectorMetric as cR, type VectorOperationBackend as cS, type VectorSearchFrontierTuning as cT, type VectorSearchParams as cU, type VectorSearchResult as cV, type VectorSlot as cW, type VectorStrategy as cX, assertFiniteEmbedding as cY, assertVectorMinScore as cZ, assertVectorSearchLimit as c_, type SerializedUniqueConstraint as ca, type SetActiveVersionParams as cb, type SqlChunk as cc, type SqlCompilationBackend as cd, type SqlDialect as ce, type SqlFragment as cf, type SqlIdentifierChunk as cg, type SqlIntent as ch, type SqlParameterChunk as ci, type SqlPlaceholderChunk as cj, type SqlTableNames as ck, type SqlTag as cl, type SqlTextChunk as cm, type StrategyTableContribution as cn, type SystemColumnName as co, type TableContribution as cp, type TemporalMode as cq, type TombstonedNodeRow as cr, type TransactionBackend as cs, type TransactionOptions as ct, type TransactionReadBackend as cu, type TrustedImportOptions as cv, type TrustedImportSession as cw, type UniqueConstraintBackend as cx, type UniqueRow as cy, type UniquenessScope as cz, type BackendCapabilities as d, type NodeId as d$, buildVectorCapabilities as d0, fts5Strategy as d1, isLiveNodeRow as d2, isSqlFragment as d3, isSqlPlaceholder as d4, isTombstonedNodeRow as d5, normalizeGraphAnalyticsCapabilities as d6, quoteIdentifier as d7, renderPostgres as d8, renderSql as d9, type AggregateComparisonPredicate as dA, type TraversalDirection as dB, type OntologyRelation as dC, type EdgeType as dD, type AllEdgeTypes as dE, type AllNodeTypes as dF, CURRENT_GRAPH_EXTENSION_VERSION as dG, DEFAULT_SQL_SCHEMA as dH, type EdgeId as dI, type EdgeKinds as dJ, type EdgeProps as dK, type EdgeRegistration as dL, type EdgeTypeWithEndpoints as dM, type ExternalRecordedReadSource as dN, type GetEdgeType as dO, type GetNodeType as dP, type GraphDefaults as dQ, type HybridFusionOptions as dR, type JsonPointerFor as dS, type JsonPointerInput as dT, type JsonPointerSegment as dU, type JsonPointerSegments as dV, type JsonPointerSegmentsFor as dW, LEGACY_GRAPH_EXTENSION_VERSION as dX, MAX_JSON_POINTER_DEPTH as dY, type MetaEdge as dZ, type MetaEdgeProperties as d_, renderSqlInline as da, renderSqlite as db, rowPropsToJsonText as dc, rowPropsToObject as dd, shortHash as de, sql as df, tsvectorStrategy as dg, vectorMinScoreCondition as dh, vectorPhysicalName as di, vectorScoreExpression as dj, type GraphDef as dk, type QueryAst as dl, type EdgeIndexConfig as dm, type EdgeIndexWhereBuilder as dn, type IndexWhereFieldBuilder as dp, type IndexWhereInput as dq, type NodeIndexConfig as dr, type NodeIndexWhereBuilder as ds, type NodeType as dt, type AnyEdgeType as du, SqlSchema as dv, type SchemaHash as dw, type AggregateExpr as dx, type FieldRef as dy, type ComparisonOp as dz, type BackendIdentity as e, type NodeKinds as e0, type NodeProps as e1, type NodeRegistration as e2, type OrderSpec as e3, type ParameterRef as e4, type RecordedRelationOptions as e5, type ResolveJsonPointer as e6, type ResolveJsonPointerSegments as e7, type SortDirection as e8, type TraversalExpansion as e9, type RecordedReadBinding as eA, type SelectiveField as eB, type ComposableQuery as eC, type SetOperationType as eD, type SetOperation as eE, type BackendValidityEndMutation as eF, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eG, type GraphExtensionTopLevelKey as eH, type UniqueConstraint as ea, asEdgeId as eb, asNodeId as ec, createSqlSchema as ed, defineGraph as ee, getEdgeKinds as ef, getNodeKinds as eg, isEdgeType as eh, isEdgeTypeWithEndpoints as ei, isGraphDef as ej, isMetaEdge as ek, isNodeType as el, joinJsonPointers as em, jsonPointer as en, normalizeJsonPointer as eo, parseJsonPointer as ep, recordedRelation as eq, type PredicateExpression as er, type VectorMetricType as es, type Traversal as et, type NodePredicate as eu, type ProjectedField as ev, type AggregateOrderSpec as ew, type GroupBySpec as ex, type RecursiveCyclePolicy as ey, type VectorSlotMap as ez, type BackendLifecycle as f, type BackendMaintenance as g, type BackendTransactions as h, type CheckUniqueBatchParams as i, type CheckUniqueParams as j, type ClaimEdgeCardinalityParams as k, type ClaimIndexMaterializationParams as l, type Collation as m, type CommitSchemaVersionExpected as n, type CommitSchemaVersionIfKindsEmptyResult as o, type CommitSchemaVersionParams as p, type CompiledRowsSql as q, type CompiledSelectSql as r, type CompiledStatementSql as s, type CompiledTemporaryStatementSql as t, type ConstraintFenceViolationRows as u, type ContendedEdgeRow as v, type ContendedUniqueRow as w, type ContributionCapabilities as x, type ContributionDiagnostic as y, type ContributionDiagnosticState as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { du as AnyEdgeType, dm as EdgeIndexConfig, ag as EdgeIndexDeclaration, dt as NodeType, dr as NodeIndexConfig, bB as NodeIndexDeclaration, bf as IndexWhereExpression } from './types-CWg4dTjj.js';
|
|
2
2
|
|
|
3
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
4
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { du as AnyEdgeType, dm as EdgeIndexConfig, ag as EdgeIndexDeclaration, dt as NodeType, dr as NodeIndexConfig, bB as NodeIndexDeclaration, bf as IndexWhereExpression } from './types-CWg4dTjj.cjs';
|
|
2
2
|
|
|
3
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
4
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicia-ai/typegraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -224,6 +224,7 @@
|
|
|
224
224
|
"test:coverage": "vitest run --coverage",
|
|
225
225
|
"test:coverage:merge": "vitest run --merge-reports=.vitest-reports --coverage",
|
|
226
226
|
"test:mutation": "stryker run",
|
|
227
|
-
"test:mutation:critical": "stryker run stryker.critical.config.json"
|
|
227
|
+
"test:mutation:critical": "stryker run stryker.critical.config.json",
|
|
228
|
+
"test:mutation:claims": "stryker run stryker.claims.config.json"
|
|
228
229
|
}
|
|
229
230
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/node.ts","../src/core/edge.ts","../src/ontology/types.ts"],"names":["assertSchemaKeysAreFree","RESERVED_NODE_KEYS","assertJsonValue","NODE_TYPE_BRAND","z","validateSchemaKeys","RESERVED_EDGE_KEYS","EDGE_TYPE_BRAND"],"mappings":";;;;;;;AAmCA,SAAS,kBAAA,CACP,QACA,IAAA,EACM;AACN,EAAAA,yCAAA,CAAwB,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQC,oCAAkB,CAAA;AAClE;AAgBO,SAAS,UAAA,CAGd,MAAS,OAAA,EAA+C;AACxD,EAAA,kBAAA,CAAmB,OAAA,CAAQ,QAAQ,IAAI,CAAA;AACvC,EAAA,IAAI,OAAA,CAAQ,gBAAgB,MAAA,EAAW;AACrC,IAAAC,iCAAA,CAAgB,OAAA,CAAQ,WAAA,EAAa,aAAA,EAAe,CAAA,MAAA,EAAS,IAAI,CAAA,CAAA,CAAG,CAAA;AAAA,EACtE;AAEA,EAAA,OAAO,OAAO,MAAA,CAAO;AAAA,IACnB,CAACC,iCAAe,GAAG,IAAA;AAAA,IACnB,IAAA,EAAM,IAAA;AAAA,IACN,QAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,aAAa,OAAA,CAAQ,WAAA;AAAA,IACrB,aAAa,OAAA,CAAQ;AAAA,GACtB,CAAA;AACH;ACxBA,IAAM,YAAA,GAAeC,KAAA,CAAE,MAAA,CAAO,EAAE,CAAA;AAOhC,SAASC,mBAAAA,CACP,QACA,IAAA,EACM;AACN,EAAAL,yCAAA,CAAwB,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQM,oCAAkB,CAAA;AAClE;AAgDO,SAAS,UAAA,CAMd,MACA,OAAA,EACqD;AACrD,EAAA,MAAM,MAAA,GAAS,SAAS,MAAA,IAAU,YAAA;AAClC,EAAAD,mBAAAA,CAAmB,QAAQ,IAAI,CAAA;AAC/B,EAAA,IAAI,OAAA,EAAS,gBAAgB,MAAA,EAAW;AACtC,IAAAH,iCAAA,CAAgB,OAAA,CAAQ,WAAA,EAAa,aAAA,EAAe,CAAA,MAAA,EAAS,IAAI,CAAA,CAAA,CAAG,CAAA;AAAA,EACtE;AAEA,EAAA,OAAO,OAAO,MAAA,CAAO;AAAA,IACnB,CAACK,iCAAe,GAAG,IAAA;AAAA,IACnB,IAAA,EAAM,IAAA;AAAA,IACN,MAAA;AAAA,IACA,aAAa,OAAA,EAAS,WAAA;AAAA,IACtB,aAAa,OAAA,EAAS,WAAA;AAAA,IACtB,MAAM,OAAA,EAAS,IAAA;AAAA,IACf,IAAI,OAAA,EAAS;AAAA,GACd,CAAA;AACH;;;AC7HO,IAAM,eAAA,GAAkB;AA+ExB,SAAS,WAAW,KAAA,EAAmC;AAC5D,EAAA,OACE,OAAO,UAAU,QAAA,IACjB,KAAA,KAAU,QACV,eAAA,IAAmB,KAAA,IAClB,KAAA,CAAkC,eAAe,CAAA,KAAM,IAAA;AAE5D;AAKO,SAAS,YAAY,SAAA,EAAiD;AAC3E,EAAA,IAAI,OAAO,cAAc,QAAA,EAAU;AACjC,IAAA,OAAO,SAAA;AAAA,EACT;AACA,EAAA,OAAO,SAAA,CAAU,IAAA;AACnB","file":"chunk-26YKDNUD.cjs","sourcesContent":["import { type z } from \"zod\";\n\nimport {\n assertSchemaKeysAreFree,\n RESERVED_NODE_KEYS,\n} from \"../store/reserved-keys\";\nimport { assertJsonValue } from \"./json-value\";\nimport { type KindAnnotations, NODE_TYPE_BRAND, type NodeType } from \"./types\";\n\n// ============================================================\n// Node Factory Options\n// ============================================================\n\n/**\n * Options for defining a node type.\n */\nexport type DefineNodeOptions<S extends z.ZodObject<z.ZodRawShape>> = Readonly<{\n /** Zod schema for node properties */\n schema: S;\n /** Optional description for documentation */\n description?: string;\n /**\n * Consumer-owned structured annotations for the kind.\n *\n * Stored in the canonical schema and **participates in schema hashing** —\n * any change bumps the schema version and shows up as a `safe`-severity\n * diff in `getSchemaChanges`. See `KindAnnotations` for the contract.\n */\n annotations?: KindAnnotations;\n}>;\n\n// ============================================================\n// Node Factory\n// ============================================================\n\nfunction validateSchemaKeys(\n schema: z.ZodObject<z.ZodRawShape>,\n name: string,\n): void {\n assertSchemaKeysAreFree(\"Node\", name, schema, RESERVED_NODE_KEYS);\n}\n\n/**\n * Creates a node type definition.\n *\n * @example\n * ```typescript\n * const Person = defineNode(\"Person\", {\n * schema: z.object({\n * fullName: z.string().min(1),\n * email: z.string().email().optional(),\n * }),\n * description: \"A person in the system\",\n * });\n * ```\n */\nexport function defineNode<\n K extends string,\n S extends z.ZodObject<z.ZodRawShape>,\n>(name: K, options: DefineNodeOptions<S>): NodeType<K, S> {\n validateSchemaKeys(options.schema, name);\n if (options.annotations !== undefined) {\n assertJsonValue(options.annotations, \"annotations\", `Node \"${name}\"`);\n }\n\n return Object.freeze({\n [NODE_TYPE_BRAND]: true as const,\n kind: name,\n schema: options.schema,\n description: options.description,\n annotations: options.annotations,\n });\n}\n","import { z } from \"zod\";\n\nimport {\n assertSchemaKeysAreFree,\n RESERVED_EDGE_KEYS,\n} from \"../store/reserved-keys\";\nimport { assertJsonValue } from \"./json-value\";\nimport {\n EDGE_TYPE_BRAND,\n type EdgeType,\n type KindAnnotations,\n type NodeType,\n} from \"./types\";\n\n// ============================================================\n// Edge Factory Options\n// ============================================================\n\n/**\n * Options for defining an edge type.\n */\nexport type DefineEdgeOptions<\n S extends z.ZodObject<z.ZodRawShape>,\n From extends readonly NodeType[] | undefined = undefined,\n To extends readonly NodeType[] | undefined = undefined,\n> = Readonly<{\n /** Zod schema for edge properties (defaults to empty object) */\n schema?: S;\n /** Optional description for documentation */\n description?: string;\n /**\n * Consumer-owned structured annotations for the kind.\n *\n * Stored in the canonical schema and **participates in schema hashing** —\n * any change bumps the schema version and shows up as a `safe`-severity\n * diff in `getSchemaChanges`. See `KindAnnotations` for the contract.\n */\n annotations?: KindAnnotations;\n /** Node types that can be the source of this edge (domain constraint) */\n from?: From;\n /** Node types that can be the target of this edge (range constraint) */\n to?: To;\n}>;\n\n// ============================================================\n// Empty Schema\n// ============================================================\n\nconst EMPTY_SCHEMA = z.object({});\ntype EmptySchema = typeof EMPTY_SCHEMA;\n\n// ============================================================\n// Edge Factory\n// ============================================================\n\nfunction validateSchemaKeys(\n schema: z.ZodObject<z.ZodRawShape>,\n name: string,\n): void {\n assertSchemaKeysAreFree(\"Edge\", name, schema, RESERVED_EDGE_KEYS);\n}\n\n/**\n * Creates an edge type definition.\n *\n * @example\n * ```typescript\n * // Edge with no properties\n * const hasEpisode = defineEdge(\"hasEpisode\");\n *\n * // Edge with properties\n * const employedAt = defineEdge(\"employedAt\", {\n * schema: z.object({\n * isPrimary: z.boolean().default(true),\n * startedAt: z.date(),\n * }),\n * description: \"Employment relationship\",\n * });\n *\n * // Edge with domain/range constraints (can be used directly in defineGraph)\n * const worksAt = defineEdge(\"worksAt\", {\n * schema: z.object({ role: z.string() }),\n * from: [Person],\n * to: [Company],\n * });\n * ```\n */\n// Overload: no options - returns edge without domain/range\nexport function defineEdge<K extends string>(name: K): EdgeType<K, EmptySchema>;\n\n// Overload: options with both from and to - returns edge with domain/range\nexport function defineEdge<\n K extends string,\n S extends z.ZodObject<z.ZodRawShape>,\n From extends readonly NodeType[],\n To extends readonly NodeType[],\n>(\n name: K,\n options: DefineEdgeOptions<S, From, To> & { from: From; to: To },\n): EdgeType<K, S, From, To>;\n\n// Overload: options without from/to - returns edge without domain/range\nexport function defineEdge<\n K extends string,\n S extends z.ZodObject<z.ZodRawShape>,\n>(name: K, options: DefineEdgeOptions<S>): EdgeType<K, S>;\n\n// Implementation\nexport function defineEdge<\n K extends string,\n S extends z.ZodObject<z.ZodRawShape>,\n From extends readonly NodeType[] | undefined,\n To extends readonly NodeType[] | undefined,\n>(\n name: K,\n options?: DefineEdgeOptions<S, From, To>,\n): EdgeType<K, S, From, To> | EdgeType<K, EmptySchema> {\n const schema = options?.schema ?? EMPTY_SCHEMA;\n validateSchemaKeys(schema, name);\n if (options?.annotations !== undefined) {\n assertJsonValue(options.annotations, \"annotations\", `Edge \"${name}\"`);\n }\n\n return Object.freeze({\n [EDGE_TYPE_BRAND]: true as const,\n kind: name,\n schema,\n description: options?.description,\n annotations: options?.annotations,\n from: options?.from,\n to: options?.to,\n }) as EdgeType<K, S, From, To> | EdgeType<K, EmptySchema>;\n}\n","import { type EdgeType, type NodeType } from \"../core/types\";\n\n// ============================================================\n// Brand Key\n// ============================================================\n\n/** Brand key for MetaEdge */\nexport const META_EDGE_BRAND = \"__metaEdge\" as const;\n\n// ============================================================\n// Inference Types\n// ============================================================\n\n/**\n * How a meta-edge affects queries and validation.\n */\nexport type InferenceType =\n | \"subsumption\" // Query for X includes instances of subclasses\n | \"hierarchy\" // Enables broader/narrower traversal\n | \"substitution\" // Can substitute equivalent types\n | \"constraint\" // Validation rules\n | \"composition\" // Part-whole navigation\n | \"association\" // Discovery/recommendation\n | \"none\"; // No automatic inference\n\n// ============================================================\n// Meta-Edge Properties\n// ============================================================\n\n/**\n * Properties of a meta-edge.\n */\nexport type MetaEdgeProperties = Readonly<{\n transitive: boolean; // A→B, B→C implies A→C\n symmetric: boolean; // A→B implies B→A\n reflexive: boolean; // A→A is always true\n inverse: string | undefined; // Name of inverse meta-edge\n inference: InferenceType; // How this affects queries\n description: string | undefined;\n}>;\n\n// ============================================================\n// Meta-Edge Type\n// ============================================================\n\n/**\n * A meta-edge definition.\n *\n * Meta-edges represent type-level relationships (between kinds),\n * not instance-level relationships (between nodes).\n */\nexport type MetaEdge<K extends string = string> = Readonly<{\n [META_EDGE_BRAND]: true;\n name: K;\n properties: MetaEdgeProperties;\n}>;\n\n// ============================================================\n// Ontology Relation\n// ============================================================\n\n/**\n * A relation in the ontology (instance of meta-edge between types).\n *\n * @example\n * ```typescript\n * // Podcast subClassOf Media\n * subClassOf(Podcast, Media)\n *\n * // Person equivalentTo schema:Person\n * equivalentTo(Person, \"https://schema.org/Person\")\n * ```\n */\nexport type OntologyRelation = Readonly<{\n metaEdge: MetaEdge;\n from: NodeType | EdgeType | string; // string for external IRIs\n to: NodeType | EdgeType | string;\n}>;\n\n// ============================================================\n// Type Guards\n// ============================================================\n\n/**\n * Checks if a value is a MetaEdge.\n */\nexport function isMetaEdge(value: unknown): value is MetaEdge {\n return (\n typeof value === \"object\" &&\n value !== null &&\n META_EDGE_BRAND in value &&\n (value as Record<string, unknown>)[META_EDGE_BRAND] === true\n );\n}\n\n/**\n * Gets the type name from a NodeType, EdgeType, or IRI string.\n */\nexport function getTypeName(typeOrIri: NodeType | EdgeType | string): string {\n if (typeof typeOrIri === \"string\") {\n return typeOrIri;\n }\n return typeOrIri.kind;\n}\n"]}
|