@nicia-ai/typegraph 0.43.0 → 0.44.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 +50 -50
- 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 +26 -26
- package/dist/backend/postgres/index.d.cts +6 -5
- package/dist/backend/postgres/index.d.ts +6 -5
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +33 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +7 -7
- package/dist/backend/postgres/pglite-store.d.ts +7 -7
- package/dist/backend/postgres/pglite-store.js +29 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +3 -2
- package/dist/backend/postgres/pglite.d.ts +3 -2
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +7 -6
- package/dist/backend/sqlite/index.d.ts +7 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -2
- package/dist/backend/sqlite/libsql.d.ts +3 -2
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +34 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -7
- package/dist/backend/sqlite/local-store.d.ts +8 -7
- package/dist/backend/sqlite/local-store.js +30 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +3 -2
- package/dist/backend/sqlite/local.d.ts +3 -2
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-3RPQDGUE.cjs → chunk-2BIG7U6E.cjs} +5 -5
- package/dist/{chunk-3RPQDGUE.cjs.map → chunk-2BIG7U6E.cjs.map} +1 -1
- package/dist/{chunk-2OOY4OYT.js → chunk-2L54C2C2.js} +4 -4
- package/dist/{chunk-2OOY4OYT.js.map → chunk-2L54C2C2.js.map} +1 -1
- package/dist/{chunk-V2GZBPY2.cjs → chunk-2VLBGQBY.cjs} +310 -61
- package/dist/chunk-2VLBGQBY.cjs.map +1 -0
- package/dist/{chunk-RXOAXO3R.js → chunk-2WDD2NO3.js} +3 -3
- package/dist/{chunk-RXOAXO3R.js.map → chunk-2WDD2NO3.js.map} +1 -1
- package/dist/{chunk-2HKIID5K.js → chunk-2Y4IFKW7.js} +5 -5
- package/dist/{chunk-2HKIID5K.js.map → chunk-2Y4IFKW7.js.map} +1 -1
- package/dist/{chunk-ECU53PMN.cjs → chunk-3PRKZW6D.cjs} +5 -5
- package/dist/chunk-3PRKZW6D.cjs.map +1 -0
- package/dist/{chunk-2G6ZEGYO.js → chunk-46GDII45.js} +4 -4
- package/dist/{chunk-2G6ZEGYO.js.map → chunk-46GDII45.js.map} +1 -1
- package/dist/{chunk-OYJSYDIH.js → chunk-4MB3AQAQ.js} +13 -3
- package/dist/chunk-4MB3AQAQ.js.map +1 -0
- package/dist/chunk-4SZ6XPTG.cjs +12 -0
- package/dist/{chunk-VGMNGWBR.cjs.map → chunk-4SZ6XPTG.cjs.map} +1 -1
- package/dist/{chunk-FY4VY5EV.cjs → chunk-5MUSU4ZP.cjs} +20 -20
- package/dist/chunk-5MUSU4ZP.cjs.map +1 -0
- package/dist/{chunk-ZIRC2U6G.js → chunk-63KCKSSH.js} +78 -16
- package/dist/chunk-63KCKSSH.js.map +1 -0
- package/dist/{chunk-7Y6BV3TK.cjs → chunk-66UVLHQA.cjs} +100 -100
- package/dist/{chunk-7Y6BV3TK.cjs.map → chunk-66UVLHQA.cjs.map} +1 -1
- package/dist/{chunk-M4GYQF2H.js → chunk-6DCB664D.js} +7 -4
- package/dist/chunk-6DCB664D.js.map +1 -0
- package/dist/{chunk-OMQ2NBOR.cjs → chunk-6JZUSDY2.cjs} +27 -27
- package/dist/{chunk-OMQ2NBOR.cjs.map → chunk-6JZUSDY2.cjs.map} +1 -1
- package/dist/{chunk-Z3WIL6S3.js → chunk-7G32LIQM.js} +5 -5
- package/dist/{chunk-Z3WIL6S3.js.map → chunk-7G32LIQM.js.map} +1 -1
- package/dist/{chunk-KDRF3NR2.cjs → chunk-7V2FGGI2.cjs} +250 -198
- package/dist/chunk-7V2FGGI2.cjs.map +1 -0
- package/dist/{chunk-I73ATSAH.cjs → chunk-A2I2XO52.cjs} +4 -4
- package/dist/{chunk-I73ATSAH.cjs.map → chunk-A2I2XO52.cjs.map} +1 -1
- package/dist/{chunk-O2GZM7UK.cjs → chunk-A4PBRX4C.cjs} +7 -7
- package/dist/{chunk-O2GZM7UK.cjs.map → chunk-A4PBRX4C.cjs.map} +1 -1
- package/dist/{chunk-64LERBFM.cjs → chunk-ALFUGRYB.cjs} +75 -65
- package/dist/chunk-ALFUGRYB.cjs.map +1 -0
- package/dist/{chunk-NXIZL7ZZ.js → chunk-ATLN63JA.js} +6 -6
- package/dist/chunk-ATLN63JA.js.map +1 -0
- package/dist/{chunk-CUPJL6TS.js → chunk-B75XRV3O.js} +3 -3
- package/dist/{chunk-CUPJL6TS.js.map → chunk-B75XRV3O.js.map} +1 -1
- package/dist/{chunk-JNXZQBN3.js → chunk-BCP7LLOY.js} +687 -456
- package/dist/chunk-BCP7LLOY.js.map +1 -0
- package/dist/{chunk-RAWG2FEU.js → chunk-BEFM74L2.js} +264 -18
- package/dist/chunk-BEFM74L2.js.map +1 -0
- package/dist/{chunk-LQLVJWUH.js → chunk-BNUFUFAU.js} +7 -7
- package/dist/chunk-BNUFUFAU.js.map +1 -0
- package/dist/{chunk-KTBTSHU6.cjs → chunk-C4F7VJ5D.cjs} +13 -3
- package/dist/chunk-C4F7VJ5D.cjs.map +1 -0
- package/dist/{chunk-CVK4T34X.cjs → chunk-CPEL3YIR.cjs} +22 -22
- package/dist/{chunk-CVK4T34X.cjs.map → chunk-CPEL3YIR.cjs.map} +1 -1
- package/dist/{chunk-O3USVVWS.js → chunk-DK2S42XB.js} +3 -3
- package/dist/{chunk-O3USVVWS.js.map → chunk-DK2S42XB.js.map} +1 -1
- package/dist/{chunk-DMZEVJGL.cjs → chunk-EE7N5XXQ.cjs} +13 -13
- package/dist/{chunk-DMZEVJGL.cjs.map → chunk-EE7N5XXQ.cjs.map} +1 -1
- package/dist/{chunk-ZGOUVMVS.js → chunk-EFELJVLA.js} +5 -5
- package/dist/{chunk-ZGOUVMVS.js.map → chunk-EFELJVLA.js.map} +1 -1
- package/dist/chunk-EPTSMFH7.cjs +12 -0
- package/dist/{chunk-U3YRCZ5L.cjs.map → chunk-EPTSMFH7.cjs.map} +1 -1
- package/dist/{chunk-FSCJOTHF.cjs → chunk-EQ7JKLZO.cjs} +10 -10
- package/dist/{chunk-FSCJOTHF.cjs.map → chunk-EQ7JKLZO.cjs.map} +1 -1
- package/dist/{chunk-5Q3P6OIC.cjs → chunk-FGO5JFVJ.cjs} +12 -12
- package/dist/chunk-FGO5JFVJ.cjs.map +1 -0
- package/dist/{chunk-VC26BUNP.js → chunk-FMGEZBAQ.js} +5 -5
- package/dist/{chunk-VC26BUNP.js.map → chunk-FMGEZBAQ.js.map} +1 -1
- package/dist/{chunk-UZLEQFTV.js → chunk-FMMIX6N4.js} +4 -4
- package/dist/chunk-FMMIX6N4.js.map +1 -0
- package/dist/{chunk-5C75HQYQ.js → chunk-FRHHDHKH.js} +5 -5
- package/dist/{chunk-5C75HQYQ.js.map → chunk-FRHHDHKH.js.map} +1 -1
- package/dist/{chunk-CTWZPYJW.js → chunk-FSXTPBRN.js} +63 -12
- package/dist/chunk-FSXTPBRN.js.map +1 -0
- package/dist/{chunk-TRC646QQ.cjs → chunk-GFRGG2US.cjs} +7 -7
- package/dist/{chunk-TRC646QQ.cjs.map → chunk-GFRGG2US.cjs.map} +1 -1
- package/dist/{chunk-UJRWOV5B.js → chunk-GWEDD3DH.js} +5 -5
- package/dist/{chunk-UJRWOV5B.js.map → chunk-GWEDD3DH.js.map} +1 -1
- package/dist/{chunk-AQR6BHB3.cjs → chunk-HJH3RMXG.cjs} +10 -10
- package/dist/{chunk-AQR6BHB3.cjs.map → chunk-HJH3RMXG.cjs.map} +1 -1
- package/dist/{chunk-F7TDKSVB.cjs → chunk-HOHAJ2NR.cjs} +4 -4
- package/dist/{chunk-F7TDKSVB.cjs.map → chunk-HOHAJ2NR.cjs.map} +1 -1
- package/dist/{chunk-YPVQYM3L.js → chunk-HOIFFY4M.js} +100 -20
- package/dist/chunk-HOIFFY4M.js.map +1 -0
- package/dist/{chunk-LDCWO5B6.js → chunk-IIMQJYAM.js} +3 -3
- package/dist/{chunk-LDCWO5B6.js.map → chunk-IIMQJYAM.js.map} +1 -1
- package/dist/{chunk-OM6RIOA5.cjs → chunk-IIT5K7SK.cjs} +13 -13
- package/dist/{chunk-OM6RIOA5.cjs.map → chunk-IIT5K7SK.cjs.map} +1 -1
- package/dist/{chunk-EQOQOT55.js → chunk-IJTLXNGJ.js} +5 -5
- package/dist/{chunk-EQOQOT55.js.map → chunk-IJTLXNGJ.js.map} +1 -1
- package/dist/{chunk-4XRP2N6B.js → chunk-JRP3VGHS.js} +3 -3
- package/dist/{chunk-4XRP2N6B.js.map → chunk-JRP3VGHS.js.map} +1 -1
- package/dist/{chunk-42XYPKZU.js → chunk-K3BUWSFR.js} +41 -3
- package/dist/chunk-K3BUWSFR.js.map +1 -0
- package/dist/{chunk-GT7NEXSU.js → chunk-KCO5EFJU.js} +3 -3
- package/dist/{chunk-GT7NEXSU.js.map → chunk-KCO5EFJU.js.map} +1 -1
- package/dist/{chunk-ARN3ZODS.cjs → chunk-KKYELPZ2.cjs} +6 -6
- package/dist/{chunk-ARN3ZODS.cjs.map → chunk-KKYELPZ2.cjs.map} +1 -1
- package/dist/{chunk-33PAKPED.cjs → chunk-MCHP7RHZ.cjs} +41 -41
- package/dist/{chunk-33PAKPED.cjs.map → chunk-MCHP7RHZ.cjs.map} +1 -1
- package/dist/{chunk-CDYRPI5U.js → chunk-MIJKEVV7.js} +4 -4
- package/dist/{chunk-CDYRPI5U.js.map → chunk-MIJKEVV7.js.map} +1 -1
- package/dist/{chunk-BLBG2VZ5.cjs → chunk-NCX65HBY.cjs} +137 -108
- package/dist/chunk-NCX65HBY.cjs.map +1 -0
- package/dist/{chunk-6TJ6PKPS.cjs → chunk-NN3QSOVS.cjs} +27 -27
- package/dist/{chunk-6TJ6PKPS.cjs.map → chunk-NN3QSOVS.cjs.map} +1 -1
- package/dist/{chunk-F2KVJ6FF.cjs → chunk-OSZPLZIV.cjs} +179 -117
- package/dist/chunk-OSZPLZIV.cjs.map +1 -0
- package/dist/{chunk-UTTW2Q3M.cjs → chunk-OVUUTCPJ.cjs} +171 -133
- package/dist/chunk-OVUUTCPJ.cjs.map +1 -0
- package/dist/{chunk-FMPZPOUD.js → chunk-PAW2XUZN.js} +3 -3
- package/dist/{chunk-FMPZPOUD.js.map → chunk-PAW2XUZN.js.map} +1 -1
- package/dist/{chunk-5ZPRE4CV.cjs → chunk-PDGEXGS6.cjs} +204 -124
- package/dist/chunk-PDGEXGS6.cjs.map +1 -0
- package/dist/{chunk-CVNGKTHO.js → chunk-PHXITZE4.js} +4 -4
- package/dist/{chunk-CVNGKTHO.js.map → chunk-PHXITZE4.js.map} +1 -1
- package/dist/{chunk-ZPCKPLMX.cjs → chunk-QB6VMOJ2.cjs} +8 -8
- package/dist/{chunk-ZPCKPLMX.cjs.map → chunk-QB6VMOJ2.cjs.map} +1 -1
- package/dist/{chunk-5AERZSHC.cjs → chunk-QGKILWGZ.cjs} +4 -4
- package/dist/{chunk-5AERZSHC.cjs.map → chunk-QGKILWGZ.cjs.map} +1 -1
- package/dist/{chunk-ZOHCFYXE.js → chunk-QT6V3YRH.js} +3 -3
- package/dist/{chunk-ZOHCFYXE.js.map → chunk-QT6V3YRH.js.map} +1 -1
- package/dist/{chunk-XDMPDUKL.cjs → chunk-QYWINYEA.cjs} +9 -9
- package/dist/{chunk-XDMPDUKL.cjs.map → chunk-QYWINYEA.cjs.map} +1 -1
- package/dist/{chunk-3V6D5DEC.js → chunk-S4KQ5LV4.js} +3 -3
- package/dist/{chunk-3V6D5DEC.js.map → chunk-S4KQ5LV4.js.map} +1 -1
- package/dist/{chunk-L5AUCL5P.js → chunk-SBPC5IP3.js} +40 -12
- package/dist/chunk-SBPC5IP3.js.map +1 -0
- package/dist/{chunk-HHBKGPEI.js → chunk-SQRD2CYF.js} +264 -21
- package/dist/chunk-SQRD2CYF.js.map +1 -0
- package/dist/{chunk-O7XVCLXW.cjs → chunk-ST3LPB2V.cjs} +324 -77
- package/dist/chunk-ST3LPB2V.cjs.map +1 -0
- package/dist/{chunk-FFQGI67R.cjs → chunk-STQ3BSED.cjs} +44 -44
- package/dist/{chunk-FFQGI67R.cjs.map → chunk-STQ3BSED.cjs.map} +1 -1
- package/dist/{chunk-JOYPNY33.js → chunk-TCRIQMBU.js} +9 -9
- package/dist/{chunk-JOYPNY33.js.map → chunk-TCRIQMBU.js.map} +1 -1
- package/dist/{chunk-ZP2KPDNN.js → chunk-TFMVL4QH.js} +3 -3
- package/dist/{chunk-ZP2KPDNN.js.map → chunk-TFMVL4QH.js.map} +1 -1
- package/dist/{chunk-4WYFRACU.js → chunk-TVLKA4AY.js} +3 -3
- package/dist/{chunk-4WYFRACU.js.map → chunk-TVLKA4AY.js.map} +1 -1
- package/dist/{chunk-X2XOQZT3.cjs → chunk-U5W4LKZV.cjs} +13 -9
- package/dist/chunk-U5W4LKZV.cjs.map +1 -0
- package/dist/{chunk-L2BYRYHC.js → chunk-VITTKBWF.js} +43 -33
- package/dist/chunk-VITTKBWF.js.map +1 -0
- package/dist/{chunk-AO2WPYFZ.cjs → chunk-WBUFJ7BS.cjs} +4 -4
- package/dist/{chunk-AO2WPYFZ.cjs.map → chunk-WBUFJ7BS.cjs.map} +1 -1
- package/dist/{chunk-CI5NPLXX.js → chunk-XMYJY7NI.js} +3 -3
- package/dist/{chunk-CI5NPLXX.js.map → chunk-XMYJY7NI.js.map} +1 -1
- package/dist/{chunk-NDQLPKBX.cjs → chunk-XR4YZFKW.cjs} +1740 -1509
- package/dist/chunk-XR4YZFKW.cjs.map +1 -0
- package/dist/{chunk-5GV4JQNA.cjs → chunk-YNULOIR5.cjs} +43 -43
- package/dist/{chunk-5GV4JQNA.cjs.map → chunk-YNULOIR5.cjs.map} +1 -1
- package/dist/{chunk-ZBV4LQD2.cjs → chunk-ZTAJL4DT.cjs} +4 -4
- package/dist/{chunk-ZBV4LQD2.cjs.map → chunk-ZTAJL4DT.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +8 -8
- package/dist/{ddl-Bc4Dl8fu.d.ts → ddl-D5369kOY.d.ts} +3 -3
- package/dist/{ddl-3unqC-kg.d.cts → ddl-eWg7hx6R.d.cts} +3 -3
- package/dist/{define-graph-Byslw2OO.d.cts → define-graph-DVF-oN1i.d.cts} +1 -1
- package/dist/{define-graph-DBFnc7u_.d.ts → define-graph-SvYXOl78.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -5
- package/dist/graph-merge/index.cjs +104 -104
- package/dist/graph-merge/index.d.cts +9 -8
- package/dist/graph-merge/index.d.ts +9 -8
- package/dist/graph-merge/index.js +24 -24
- package/dist/{index-DHXw7QAl.d.cts → index-By89Sezh.d.ts} +37 -7
- package/dist/{index-DQzVJBHa.d.ts → index-DcQ3Sxs-.d.cts} +37 -7
- package/dist/index.cjs +210 -202
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +34 -34
- 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 +49 -41
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +11 -11
- package/dist/interchange/index.d.ts +11 -11
- package/dist/interchange/index.js +23 -15
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-Dl0-er1G.d.ts → manager-B0KjKE93.d.ts} +44 -6
- package/dist/{manager-U9_zopqr.d.cts → manager-Cn0NFIhN.d.cts} +44 -6
- package/dist/{materialize-indexes-BM3u0aXE.d.ts → materialize-indexes-BD4V3svD.d.ts} +1 -1
- package/dist/{materialize-indexes-DzMCetZe.d.cts → materialize-indexes-DVRhd5h4.d.cts} +1 -1
- package/dist/{postgres-DpJqtbSX.d.cts → postgres-DaEWvN4x.d.cts} +1 -1
- package/dist/{postgres-C5-WMKFA.d.ts → postgres-u0a0HN2D.d.ts} +1 -1
- package/dist/profiler/index.d.cts +10 -9
- package/dist/profiler/index.d.ts +10 -9
- package/dist/provenance/index.cjs +38 -38
- 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 +8 -8
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +41 -41
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +14 -14
- package/dist/{searchable-B4mUXZT6.d.cts → searchable-BT7j9_IK.d.cts} +2 -2
- package/dist/{searchable-C7jmPNLT.d.ts → searchable-CnYEancP.d.ts} +2 -2
- package/dist/{sqlite-Ch5tSYQY.d.ts → sqlite-BrMoSsI7.d.cts} +1 -1
- package/dist/{sqlite-Da7jiYu9.d.cts → sqlite-CHhZUyO5.d.ts} +1 -1
- package/dist/{store-view-DdwBNjZQ.d.ts → store-view-Bvdku0Ht.d.ts} +181 -34
- package/dist/{store-view-D1F6KqsE.d.cts → store-view-w-md0nQ4.d.cts} +181 -34
- package/dist/{temporal-BtrTYTiB.d.ts → temporal--x9T8K4S.d.ts} +1 -1
- package/dist/{temporal-CMpigMCW.d.cts → temporal-BCORwUau.d.cts} +1 -1
- package/dist/{types-G4sVM-76.d.cts → types-6-WJmSD4.d.cts} +1 -1
- package/dist/{types-D2rU5Taq.d.ts → types-COODtTJU.d.ts} +1 -1
- package/dist/{types-Dh-EgT-w.d.cts → types-Cjvkj0jA.d.cts} +351 -12
- package/dist/{types-Dh-EgT-w.d.ts → types-Cjvkj0jA.d.ts} +351 -12
- package/dist/{where-B8Y21kig.d.ts → where-5xVawAwL.d.ts} +1 -1
- package/dist/{where-DbZ9XDOI.d.cts → where-CUQmCR6d.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-42XYPKZU.js.map +0 -1
- package/dist/chunk-5Q3P6OIC.cjs.map +0 -1
- package/dist/chunk-5ZPRE4CV.cjs.map +0 -1
- package/dist/chunk-64LERBFM.cjs.map +0 -1
- package/dist/chunk-BLBG2VZ5.cjs.map +0 -1
- package/dist/chunk-CTWZPYJW.js.map +0 -1
- package/dist/chunk-ECU53PMN.cjs.map +0 -1
- package/dist/chunk-F2KVJ6FF.cjs.map +0 -1
- package/dist/chunk-FY4VY5EV.cjs.map +0 -1
- package/dist/chunk-HHBKGPEI.js.map +0 -1
- package/dist/chunk-JNXZQBN3.js.map +0 -1
- package/dist/chunk-KDRF3NR2.cjs.map +0 -1
- package/dist/chunk-KTBTSHU6.cjs.map +0 -1
- package/dist/chunk-L2BYRYHC.js.map +0 -1
- package/dist/chunk-L5AUCL5P.js.map +0 -1
- package/dist/chunk-LQLVJWUH.js.map +0 -1
- package/dist/chunk-M4GYQF2H.js.map +0 -1
- package/dist/chunk-NDQLPKBX.cjs.map +0 -1
- package/dist/chunk-NXIZL7ZZ.js.map +0 -1
- package/dist/chunk-O7XVCLXW.cjs.map +0 -1
- package/dist/chunk-OYJSYDIH.js.map +0 -1
- package/dist/chunk-RAWG2FEU.js.map +0 -1
- package/dist/chunk-U3YRCZ5L.cjs +0 -12
- package/dist/chunk-UTTW2Q3M.cjs.map +0 -1
- package/dist/chunk-UZLEQFTV.js.map +0 -1
- package/dist/chunk-V2GZBPY2.cjs.map +0 -1
- package/dist/chunk-VGMNGWBR.cjs +0 -12
- package/dist/chunk-X2XOQZT3.cjs.map +0 -1
- package/dist/chunk-YPVQYM3L.js.map +0 -1
- package/dist/chunk-ZIRC2U6G.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G as GraphDef, E as EdgeKinds, N as NodeKinds, a as AllNodeTypes } from './define-graph-
|
|
2
|
-
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-
|
|
3
|
-
import {
|
|
4
|
-
import { K as KindRegistry, S as SchemaManagerOptions,
|
|
1
|
+
import { G as GraphDef, E as EdgeKinds, N as NodeKinds, a as AllNodeTypes } from './define-graph-DVF-oN1i.cjs';
|
|
2
|
+
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-BCORwUau.cjs';
|
|
3
|
+
import { c5 as ValueType, c6 as PredicateExpression, az as FulltextQueryMode, c7 as VectorMetricType, Q as QueryAst, J as JsonPointer, a2 as FieldRef, a$ as ParameterRef, b as NodeType, c as AnyEdgeType, a0 as EdgeType, bx as TraversalExpansion, x as GraphBackend, S as SqlDialect, bo as SqlSchema, c8 as Traversal, c9 as NodePredicate, ca as ProjectedField, a_ as OrderSpec, cb as AggregateOrderSpec, T as TemporalMode, cc as GroupBySpec, aH as HybridFusionOptions, aL as JsonPointerInput, cd as RecursiveCyclePolicy, a5 as TraversalDirection$1, E as EdgeRegistration, aY as NodeId, bu as TransactionBackend, K as KindEntity, at as ExternalRecordedReadSource, ce as NodeRow, ap as EdgeId, cf as EdgeRow, N as NodeRegistration, bw as TransactionReadBackend, a1 as AggregateExpr, bh as SortDirection, ai as CompiledSelectSql, F as FulltextStrategy, V as VectorStrategy, cg as VectorSlotMap, ch as RecordedReadBinding, ci as SelectiveField, cj as ComposableQuery, ck as SetOperationType, cl as SetOperation, cm as VectorMetric, aQ as KindAnnotations, Y as JsonSchema, bC as UniquenessScope, ad as Collation, ac as Cardinality, as as EndpointExistence, G as GraphExtension, B as BackendCapabilities, C as ContributionDiagnostic, bv as TransactionOptions, A as AdapterBackend } from './types-Cjvkj0jA.cjs';
|
|
4
|
+
import { K as KindRegistry, S as SchemaManagerOptions, b as SchemaValidationResult } from './manager-Cn0NFIhN.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-
|
|
7
|
-
import { S as SchemaDiff, h as MaterializeIndexesOptions, M as MaterializeIndexesResult, j as MaterializeSystemIndexesOptions } from './materialize-indexes-
|
|
6
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-BT7j9_IK.cjs';
|
|
7
|
+
import { S as SchemaDiff, h as MaterializeIndexesOptions, M as MaterializeIndexesResult, j as MaterializeSystemIndexesOptions } from './materialize-indexes-DVRhd5h4.cjs';
|
|
8
8
|
|
|
9
9
|
type FieldTypeInfo = Readonly<{
|
|
10
10
|
valueType: ValueType;
|
|
@@ -50,8 +50,10 @@ type Predicate = Readonly<{
|
|
|
50
50
|
* Creates a named parameter reference for prepared queries.
|
|
51
51
|
*
|
|
52
52
|
* Use with `query.prepare()` to create reusable parameterized queries.
|
|
53
|
-
*
|
|
54
|
-
*
|
|
53
|
+
* Supported in scalar comparison positions (eq, neq, gt, etc.), string
|
|
54
|
+
* operations, between bounds, and as the WHOLE list of `in()`/`notIn()` —
|
|
55
|
+
* `field.in(param("ids"))` bound to an array at execute time. A `param()`
|
|
56
|
+
* among the individual elements of a literal list is rejected.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* ```typescript
|
|
@@ -63,6 +65,18 @@ type Predicate = Readonly<{
|
|
|
63
65
|
*
|
|
64
66
|
* const results = await prepared.execute({ name: "Alice" });
|
|
65
67
|
* ```
|
|
68
|
+
*
|
|
69
|
+
* @example List-valued parameter — one compiled statement, any list length.
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const byIds = store.query()
|
|
72
|
+
* .from("Person", "p")
|
|
73
|
+
* .whereNode("p", (p) => p.id.in(param("ids")))
|
|
74
|
+
* .select((ctx) => ctx.p)
|
|
75
|
+
* .prepare();
|
|
76
|
+
*
|
|
77
|
+
* await byIds.execute({ ids: ["a", "b"] });
|
|
78
|
+
* await byIds.execute({ ids: ["c"] });
|
|
79
|
+
* ```
|
|
66
80
|
*/
|
|
67
81
|
declare function param(name: string): ParameterRef;
|
|
68
82
|
/**
|
|
@@ -305,10 +319,17 @@ type DynamicSelectableEdge = Readonly<{
|
|
|
305
319
|
|
|
306
320
|
type QueryCoordinateState = "open" | "sealed";
|
|
307
321
|
/**
|
|
308
|
-
* A query
|
|
322
|
+
* A query deferred for execution inside a `store.batch()` call.
|
|
309
323
|
*
|
|
310
324
|
* Both `ExecutableQuery` and `UnionableQuery` satisfy this interface.
|
|
311
325
|
* The result type `R` is preserved per-query in the batch return tuple.
|
|
326
|
+
*
|
|
327
|
+
* Deferring costs nothing and saves nothing on its own: `store.batch()` runs
|
|
328
|
+
* each query as its own statement (sometimes two — see `ExecutableQuery`'s
|
|
329
|
+
* `executeOn`), so it does not fold these into a single round trip. Whether
|
|
330
|
+
* they share one connection is up to the adapter, not to
|
|
331
|
+
* `backend.capabilities.transactions` — see `store.batch()` for the full cost
|
|
332
|
+
* model.
|
|
312
333
|
*/
|
|
313
334
|
type BatchableQuery<R = unknown> = Readonly<{
|
|
314
335
|
executeOn: (backend: GraphBackend | TransactionBackend) => Promise<readonly R[]>;
|
|
@@ -417,8 +438,8 @@ type BaseFieldAccessor = Readonly<{
|
|
|
417
438
|
neq: (value: unknown) => Predicate;
|
|
418
439
|
isNull: () => Predicate;
|
|
419
440
|
isNotNull: () => Predicate;
|
|
420
|
-
in: (values: readonly unknown[]) => Predicate;
|
|
421
|
-
notIn: (values: readonly unknown[]) => Predicate;
|
|
441
|
+
in: (values: readonly unknown[] | ParameterRef) => Predicate;
|
|
442
|
+
notIn: (values: readonly unknown[] | ParameterRef) => Predicate;
|
|
422
443
|
}>;
|
|
423
444
|
type StringFieldAccessor = BaseFieldAccessor & Readonly<{
|
|
424
445
|
gt: (value: string | ParameterRef) => Predicate;
|
|
@@ -766,7 +787,7 @@ declare const CURRENT_ONLY_READ_NAMES: readonly ["findByConstraint", "bulkFindBy
|
|
|
766
787
|
/** Node write method names: never available on a read-only StoreView. */
|
|
767
788
|
declare const NODE_WRITE_NAMES: readonly ["create", "createFromRecord", "update", "delete", "hardDelete", "upsertById", "upsertByIdFromRecord", "bulkCreate", "bulkUpsertById", "bulkInsert", "bulkDelete", "getOrCreateByConstraint", "bulkGetOrCreateByConstraint"];
|
|
768
789
|
/** Temporal-aware edge read method names. */
|
|
769
|
-
declare const EDGE_TEMPORAL_READ_NAMES: readonly ["getById", "getByIds", "find", "count", "findFrom", "findTo", "findByEndpoints"];
|
|
790
|
+
declare const EDGE_TEMPORAL_READ_NAMES: readonly ["getById", "getByIds", "find", "count", "findFrom", "findTo", "bulkFindFrom", "bulkFindTo", "findByEndpoints"];
|
|
770
791
|
/** Deferred edge batch-read method names. */
|
|
771
792
|
declare const EDGE_BATCH_READ_NAMES: readonly ["batchFindFrom", "batchFindTo", "batchFindByEndpoints"];
|
|
772
793
|
/** Edge write method names: never available on a read-only StoreView. */
|
|
@@ -916,10 +937,14 @@ type HookContext = Readonly<{
|
|
|
916
937
|
startedAt: Date;
|
|
917
938
|
}>;
|
|
918
939
|
/**
|
|
919
|
-
*
|
|
940
|
+
* Context for one SQL statement a query builder submits to the backend.
|
|
941
|
+
*
|
|
942
|
+
* A single logical query can emit more than one context, for example when a
|
|
943
|
+
* selective projection falls back to a full-row fetch. Backend-internal setup
|
|
944
|
+
* statements are not exposed as separate query-hook events.
|
|
920
945
|
*/
|
|
921
946
|
type QueryHookContext = HookContext & Readonly<{
|
|
922
|
-
/** The SQL
|
|
947
|
+
/** The SQL statement being executed */
|
|
923
948
|
sql: string;
|
|
924
949
|
/** Query parameters */
|
|
925
950
|
params: readonly unknown[];
|
|
@@ -962,9 +987,9 @@ type OperationHookContext = HookContext & Readonly<{
|
|
|
962
987
|
* ```
|
|
963
988
|
*/
|
|
964
989
|
type StoreHooks = Readonly<{
|
|
965
|
-
/** Called before
|
|
990
|
+
/** Called before each query-builder statement is submitted to the backend. */
|
|
966
991
|
onQueryStart?: (ctx: QueryHookContext) => void;
|
|
967
|
-
/** Called after
|
|
992
|
+
/** Called after each submitted query-builder statement succeeds. */
|
|
968
993
|
onQueryEnd?: (ctx: QueryHookContext, result: Readonly<{
|
|
969
994
|
rowCount: number;
|
|
970
995
|
durationMs: number;
|
|
@@ -1234,6 +1259,26 @@ type NodeBulkFindByIndexOptions = Readonly<{
|
|
|
1234
1259
|
*/
|
|
1235
1260
|
limitPerInput?: number;
|
|
1236
1261
|
}>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Per-endpoint fan-out cap shared by the live and view forms of the edge
|
|
1264
|
+
* bulk endpoint reads.
|
|
1265
|
+
*/
|
|
1266
|
+
type EdgeBulkFindOptions = Readonly<{
|
|
1267
|
+
/**
|
|
1268
|
+
* Maximum number of edges returned for each input endpoint. When omitted,
|
|
1269
|
+
* every input's edge set is unbounded. Must be a positive integer.
|
|
1270
|
+
*
|
|
1271
|
+
* The cap keeps each input's leading edges under the same ordering
|
|
1272
|
+
* `findFrom` / `findTo` return, so it bounds fan-out without reordering
|
|
1273
|
+
* anything.
|
|
1274
|
+
*/
|
|
1275
|
+
limitPerInput?: number;
|
|
1276
|
+
}>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Options for the edge bulk endpoint reads: the temporal coordinate every
|
|
1279
|
+
* edge read accepts, plus the per-endpoint fan-out cap.
|
|
1280
|
+
*/
|
|
1281
|
+
type EdgeBulkFindEndpointOptions = QueryOptions & EdgeBulkFindOptions;
|
|
1237
1282
|
/**
|
|
1238
1283
|
* Result of an edge getOrCreateByEndpoints operation.
|
|
1239
1284
|
*/
|
|
@@ -1569,25 +1614,66 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
1569
1614
|
* Temporal semantics mirror {@link EdgeCollection.findFrom}.
|
|
1570
1615
|
*/
|
|
1571
1616
|
findTo: (to: NodeRef<To>, options?: QueryOptions) => Promise<Edge<E, From, To>[]>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Find the edges from a SET of source nodes in one read.
|
|
1619
|
+
*
|
|
1620
|
+
* `findFrom` with a widened endpoint predicate and nothing else: the same
|
|
1621
|
+
* temporal model, the same soft-delete filtering, and the same per-source
|
|
1622
|
+
* ordering — but `from_id IN (...)` instead of `from_id = ?`, so a page of
|
|
1623
|
+
* N sources costs one statement per distinct source kind and bind-budget
|
|
1624
|
+
* chunk rather than N singleton statements.
|
|
1625
|
+
*
|
|
1626
|
+
* Results are grouped per input: the outer array is parallel to `froms`
|
|
1627
|
+
* (index `i` holds the edges of `froms[i]`), and repeated inputs each get
|
|
1628
|
+
* their own copy of the same edge set. Empty input returns `[]`; a source
|
|
1629
|
+
* with no edges gets an empty array. Large inputs are split across
|
|
1630
|
+
* statements to respect the backend's bound-parameter budget, which is
|
|
1631
|
+
* invisible in the result.
|
|
1632
|
+
*
|
|
1633
|
+
* Requires a backend implementing `findEdgesByEndpointSet` — both bundled
|
|
1634
|
+
* Drizzle backends do. On one that does not, this **refuses** with a
|
|
1635
|
+
* `ConfigurationError` rather than looping `findFrom` per input: asking for
|
|
1636
|
+
* a bulk read is asking for set-oriented statements, and silently issuing N
|
|
1637
|
+
* singleton statements is the cost surprise the method exists to remove.
|
|
1638
|
+
*
|
|
1639
|
+
* @param froms - Source nodes to read the edges of
|
|
1640
|
+
* @param options - Temporal coordinate plus optional `limitPerInput`
|
|
1641
|
+
* @throws {ConfigurationError} when the backend cannot read an endpoint set
|
|
1642
|
+
*/
|
|
1643
|
+
bulkFindFrom: (froms: readonly NodeRef<From>[], options?: EdgeBulkFindEndpointOptions) => Promise<readonly Edge<E, From, To>[][]>;
|
|
1644
|
+
/**
|
|
1645
|
+
* Find the edges into a SET of target nodes in one read.
|
|
1646
|
+
*
|
|
1647
|
+
* Mirrors {@link EdgeCollection.bulkFindFrom} on the `to` endpoint.
|
|
1648
|
+
*/
|
|
1649
|
+
bulkFindTo: (tos: readonly NodeRef<To>[], options?: EdgeBulkFindEndpointOptions) => Promise<readonly Edge<E, From, To>[][]>;
|
|
1572
1650
|
/**
|
|
1573
1651
|
* Deferred variant of `findFrom` for use with `store.batch()`.
|
|
1574
1652
|
*
|
|
1575
1653
|
* Returns a `BatchableQuery` instead of executing immediately. Accepts
|
|
1576
1654
|
* the same temporal `options` as {@link EdgeCollection.findFrom}.
|
|
1655
|
+
*
|
|
1656
|
+
* Batching these still issues one statement per call — it does not merge
|
|
1657
|
+
* the reads, and whether they share a connection is up to the adapter. It
|
|
1658
|
+
* is not a snapshot: PostgreSQL's default read-committed isolation lets a
|
|
1659
|
+
* later read observe a commit the earlier ones did not. To read edges for
|
|
1660
|
+
* many sources in one statement, traverse from them in a single query.
|
|
1577
1661
|
*/
|
|
1578
1662
|
batchFindFrom: (from: NodeRef<From>, options?: QueryOptions) => BatchableQuery<Edge<E, From, To>>;
|
|
1579
1663
|
/**
|
|
1580
1664
|
* Deferred variant of `findTo` for use with `store.batch()`.
|
|
1581
1665
|
*
|
|
1582
1666
|
* Returns a `BatchableQuery` instead of executing immediately. Accepts
|
|
1583
|
-
* the same temporal `options` as {@link EdgeCollection.findTo}.
|
|
1667
|
+
* the same temporal `options` as {@link EdgeCollection.findTo}. Costs one
|
|
1668
|
+
* statement per call, like {@link EdgeCollection.batchFindFrom}.
|
|
1584
1669
|
*/
|
|
1585
1670
|
batchFindTo: (to: NodeRef<To>, options?: QueryOptions) => BatchableQuery<Edge<E, From, To>>;
|
|
1586
1671
|
/**
|
|
1587
1672
|
* Deferred variant of `findByEndpoints` for use with `store.batch()`.
|
|
1588
1673
|
*
|
|
1589
1674
|
* Returns a `BatchableQuery` that yields a 0-or-1 element array
|
|
1590
|
-
* (matching `findByEndpoints`' at-most-one semantics).
|
|
1675
|
+
* (matching `findByEndpoints`' at-most-one semantics). Costs one statement
|
|
1676
|
+
* per call, like {@link EdgeCollection.batchFindFrom}.
|
|
1591
1677
|
*/
|
|
1592
1678
|
batchFindByEndpoints: (from: NodeRef<From>, to: NodeRef<To>, options?: EdgeFindByEndpointsOptions<E>, temporal?: QueryOptions) => BatchableQuery<Edge<E, From, To>>;
|
|
1593
1679
|
/** Delete an edge (soft delete - sets deletedAt timestamp) */
|
|
@@ -1819,6 +1905,10 @@ type StoreViewEdgeCollection<E extends AnyEdgeType, From extends NodeType = Node
|
|
|
1819
1905
|
findFrom: (from: NodeRef<From>) => Promise<Edge<E, From, To>[]>;
|
|
1820
1906
|
/** Find edges to a specific node at the view's pinned coordinate. */
|
|
1821
1907
|
findTo: (to: NodeRef<To>) => Promise<Edge<E, From, To>[]>;
|
|
1908
|
+
/** Find the edges from a set of source nodes at the view's pinned coordinate. */
|
|
1909
|
+
bulkFindFrom: (froms: readonly NodeRef<From>[], options?: EdgeBulkFindOptions) => Promise<readonly Edge<E, From, To>[][]>;
|
|
1910
|
+
/** Find the edges into a set of target nodes at the view's pinned coordinate. */
|
|
1911
|
+
bulkFindTo: (tos: readonly NodeRef<To>[], options?: EdgeBulkFindOptions) => Promise<readonly Edge<E, From, To>[][]>;
|
|
1822
1912
|
/** Find the edge between two endpoints at the view's pinned coordinate. */
|
|
1823
1913
|
findByEndpoints: (from: NodeRef<From>, to: NodeRef<To>, options?: EdgeFindByEndpointsOptions<E>) => Promise<Edge<E, From, To> | undefined>;
|
|
1824
1914
|
}>;
|
|
@@ -2225,7 +2315,8 @@ type CompileQueryOptions = Readonly<{
|
|
|
2225
2315
|
* the first `execute()`).
|
|
2226
2316
|
*
|
|
2227
2317
|
* Fast path: when the backend can compile and run raw SQL (`compileSql` +
|
|
2228
|
-
* `executeRaw`)
|
|
2318
|
+
* `executeRaw`) AND the statement is raw-executable, it is compiled ONCE
|
|
2319
|
+
* into a cached template whose
|
|
2229
2320
|
* "current" read instant and user `param()` refs are reserved placeholders
|
|
2230
2321
|
* (see {@link buildReadInstantTemplate}). Every `execute()` fills those
|
|
2231
2322
|
* placeholders — a fresh instant plus the call's bindings — and runs the
|
|
@@ -2233,9 +2324,14 @@ type CompileQueryOptions = Readonly<{
|
|
|
2233
2324
|
* never freezes "now" the way a cached literal instant would (the #246
|
|
2234
2325
|
* regression).
|
|
2235
2326
|
*
|
|
2236
|
-
* Fallback:
|
|
2237
|
-
*
|
|
2238
|
-
*
|
|
2327
|
+
* Fallback: substitutes parameter refs into the AST, compiles fresh per call,
|
|
2328
|
+
* and executes via the standard `backend.execute` path. Taken in two cases —
|
|
2329
|
+
* a backend without raw execution (custom/async), and a statement that is not
|
|
2330
|
+
* raw-executable because its execution semantics ride on the compiled SQL
|
|
2331
|
+
* OBJECT rather than its text (approximate vector search's iterative-scan
|
|
2332
|
+
* wrapper, `subgraph()`'s force-custom-plan fetches). The second applies even
|
|
2333
|
+
* on PostgreSQL with `executeRaw` available; `isRawExecutable` in
|
|
2334
|
+
* `sql-intent.ts` is the predicate that decides it.
|
|
2239
2335
|
*/
|
|
2240
2336
|
|
|
2241
2337
|
type PreparedQueryConfig<R> = Readonly<{
|
|
@@ -2354,7 +2450,11 @@ declare class UnionableQuery<G extends GraphDef, R> {
|
|
|
2354
2450
|
/**
|
|
2355
2451
|
* Executes the combined query against a provided backend.
|
|
2356
2452
|
*
|
|
2357
|
-
* Used by `store.batch()` to run
|
|
2453
|
+
* Used by `store.batch()` to run several queries in sequence against one
|
|
2454
|
+
* target — a transaction on backends that have them, the backend itself
|
|
2455
|
+
* otherwise. A set operation compiles to one statement; whether that target
|
|
2456
|
+
* is a shared connection is the adapter's business, not a function of
|
|
2457
|
+
* transaction support.
|
|
2358
2458
|
*/
|
|
2359
2459
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
2360
2460
|
}
|
|
@@ -2445,7 +2545,9 @@ declare class ExecutableQuery<G extends GraphDef, Aliases extends AliasMap, Edge
|
|
|
2445
2545
|
* validates the AST once (a malformed query fails fast, here, instead of on
|
|
2446
2546
|
* first use); the prepared query then compiles once into a reusable template
|
|
2447
2547
|
* and fills a fresh read instant per execute() — see PreparedQuery's class
|
|
2448
|
-
* doc comment
|
|
2548
|
+
* doc comment, which also covers the two cases that recompile per call
|
|
2549
|
+
* instead (no `executeRaw`, or a statement whose semantics ride on the SQL
|
|
2550
|
+
* object rather than its text).
|
|
2449
2551
|
*
|
|
2450
2552
|
* Use `param("name")` in predicates to create parameterized slots,
|
|
2451
2553
|
* then pass values via `prepared.execute({ name: "value" })`.
|
|
@@ -2481,9 +2583,15 @@ declare class ExecutableQuery<G extends GraphDef, Aliases extends AliasMap, Edge
|
|
|
2481
2583
|
/**
|
|
2482
2584
|
* Executes the query against a provided backend.
|
|
2483
2585
|
*
|
|
2484
|
-
* Used by `store.batch()` to run
|
|
2485
|
-
*
|
|
2486
|
-
*
|
|
2586
|
+
* Used by `store.batch()` to run several queries in sequence against one
|
|
2587
|
+
* target — a transaction on backends that have them, the backend itself
|
|
2588
|
+
* otherwise. The full compile → execute → transform pipeline runs
|
|
2589
|
+
* identically to `execute()`, but against the given backend.
|
|
2590
|
+
*
|
|
2591
|
+
* Costs one statement, or two when the selective-field path runs and its
|
|
2592
|
+
* mapping then falls back: `#tryOptimizedExecutionOn` detects that only
|
|
2593
|
+
* after its statement has executed, and the caller re-runs the full fetch.
|
|
2594
|
+
* The fallback clears the fast path for this instance.
|
|
2487
2595
|
*/
|
|
2488
2596
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
2489
2597
|
/**
|
|
@@ -3574,9 +3682,9 @@ declare class StoreSearch<G extends GraphDef> {
|
|
|
3574
3682
|
* transactions stay internal because each can mutate live rows without a
|
|
3575
3683
|
* corresponding capture flush.
|
|
3576
3684
|
*/
|
|
3577
|
-
declare const HISTORY_STORE_BACKEND_KEYS: readonly ["assertRuntimeContributionsInitialized", "assertVectorSlotInitialized", "assertVectorSlotsInitialized", "bootstrapTables", "capabilities", "checkUnique", "checkUniqueBatch", "claimIndexMaterialization", "close", "commitSchemaVersion", "compileSql", "countEdgesByKind", "countEdgesFrom", "countNodesByKind", "createVectorIndex", "deleteEdge", "deleteEdgesBatch", "deleteEmbedding", "deleteFulltext", "deleteFulltextBatch", "deleteNode", "deleteUnique", "deleteVectorSlotContribution", "dialect", "dropVectorIndex", "edgeExistsBetween", "ensureContributionMaterializationsTable", "ensureFulltextTable", "ensureIndexMaterializationsTable", "ensureKindRemovalsTable", "ensureReconciliationMarkersTable", "ensureRevisionOriginsTable", "ensureRuntimeContributions", "ensureVectorSlotContribution", "ensureVectorSlotContributions", "execute", "executeTemporaryStatement", "findEdgesByKind", "findEdgesConnectedTo", "findNodesByKind", "fulltextSearch", "fulltextStrategy", "getActiveSchema", "getAllKindRemovals", "getContributionMaterialization", "getEdge", "getEdges", "getIndexMaterialization", "getIndexMaterializations", "getNode", "getNodes", "getPendingKindRemovals", "getReconciliationMarker", "getSchemaVersion", "hardDeleteEdge", "hardDeleteEdgesBatch", "hardDeleteNode", "hybridSearch", "insertEdge", "insertEdgeNoReturn", "insertEdgesBatch", "insertEdgesBatchReturning", "insertNode", "insertNodeNoReturn", "insertNodesBatch", "insertNodesBatchReturning", "insertUnique", "insertUniqueBatch", "recordContributionMaterialization", "recordIndexMaterialization", "recordKindRemoval", "refreshStatistics", "releaseIndexMaterializationClaim", "setActiveVersion", "setReconciliationMarker", "tableNames", "updateEdge", "updateNode", "upsertEmbedding", "upsertEmbeddingBatch", "upsertFulltext", "upsertFulltextBatch", "vectorSearch", "vectorStrategy"];
|
|
3685
|
+
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", "deleteFulltext", "deleteFulltextBatch", "deleteNode", "deleteUnique", "deleteVectorSlotContribution", "dialect", "dropVectorIndex", "edgeExistsBetween", "ensureContributionMaterializationsTable", "ensureFulltextTable", "ensureIndexMaterializationsTable", "ensureKindRemovalsTable", "ensureReconciliationMarkersTable", "ensureRevisionOriginsTable", "ensureRuntimeContributions", "ensureVectorSlotContribution", "ensureVectorSlotContributions", "execute", "executeTemporaryStatement", "findEdgesByKind", "findEdgesByEndpointSet", "findEdgesConnectedTo", "findNodesByKind", "fulltextSearch", "fulltextStrategy", "getActiveSchema", "getAllKindRemovals", "getContributionMaterialization", "getEdge", "getEdges", "getIndexMaterialization", "getIndexMaterializations", "getNode", "getNodes", "getPendingKindRemovals", "getReconciliationMarker", "getSchemaVersion", "hardDeleteEdge", "hardDeleteEdgesBatch", "hardDeleteNode", "hybridSearch", "insertEdge", "insertEdgeNoReturn", "insertEdgesBatch", "insertEdgesBatchReturning", "insertNode", "insertNodeNoReturn", "insertNodesBatch", "insertNodesBatchReturning", "insertUnique", "insertUniqueBatch", "recordContributionMaterialization", "recordIndexMaterialization", "recordKindRemoval", "refreshStatistics", "releaseIndexMaterializationClaim", "setActiveVersion", "setReconciliationMarker", "tableNames", "updateEdge", "updateNode", "upsertEmbedding", "upsertEmbeddingBatch", "upsertFulltext", "upsertFulltextBatch", "vectorSearch", "vectorStrategy", "verifyContributions"];
|
|
3578
3686
|
type HistoryStoreBackendMember = (typeof HISTORY_STORE_BACKEND_KEYS)[number];
|
|
3579
|
-
type UnsafeHistoryStoreBackendMember = "clearGraph" | "executeDdl" | "executeRaw" | "executeStatement" | "transaction" | "trustedImport";
|
|
3687
|
+
type UnsafeHistoryStoreBackendMember = "clearGraph" | "executeDdl" | "executeRaw" | "executeStatement" | "schemaWriteTransaction" | "transaction" | "trustedImport";
|
|
3580
3688
|
type UnclassifiedHistoryStoreBackendMember = Exclude<keyof GraphBackend, HistoryStoreBackendMember | UnsafeHistoryStoreBackendMember>;
|
|
3581
3689
|
type HistoryStoreBackend = UnclassifiedHistoryStoreBackendMember extends never ? Readonly<Pick<GraphBackend, HistoryStoreBackendMember>> : never;
|
|
3582
3690
|
|
|
@@ -3662,8 +3770,8 @@ type UniqueIntrospection = Readonly<{
|
|
|
3662
3770
|
* budget); the data deletion happens here, scoped per-deployment via
|
|
3663
3771
|
* the `typegraph_kind_removals` status table. Splitting the verbs
|
|
3664
3772
|
* mirrors how `materializeIndexes` complements `evolve`: schema
|
|
3665
|
-
* commits are atomic and fast, data work is bounded by row count and
|
|
3666
|
-
* deferrable
|
|
3773
|
+
* commits are atomic and fast, while data work is bounded by row count and
|
|
3774
|
+
* deferrable. Candidates run sequentially because they share one graph lock.
|
|
3667
3775
|
*/
|
|
3668
3776
|
|
|
3669
3777
|
type MaterializeRemovalsOptions = Readonly<{
|
|
@@ -3672,11 +3780,40 @@ type MaterializeRemovalsOptions = Readonly<{
|
|
|
3672
3780
|
/** Halt on first failure. Default: false (best-effort). */
|
|
3673
3781
|
stopOnError?: boolean;
|
|
3674
3782
|
}>;
|
|
3783
|
+
/**
|
|
3784
|
+
* Outcome of one queued kind removal, discriminated on `status`.
|
|
3785
|
+
*
|
|
3786
|
+
* A union rather than one shape with optional fields, so each outcome carries
|
|
3787
|
+
* exactly its own payload: `"failed"` always has an `error`, `"skipped"`
|
|
3788
|
+
* always has a `reason`, and `"removed"` has neither. The flat form permitted
|
|
3789
|
+
* impossible states — a `"skipped"` with no reason, or a `"removed"` carrying
|
|
3790
|
+
* `reason: "kind-is-live"` — and narrowing on `status` still left both fields
|
|
3791
|
+
* optional at the use site.
|
|
3792
|
+
*/
|
|
3675
3793
|
type MaterializeRemovalsEntry = Readonly<{
|
|
3676
3794
|
kind: string;
|
|
3677
3795
|
entity: KindEntity;
|
|
3678
|
-
status: "removed"
|
|
3679
|
-
|
|
3796
|
+
status: "removed";
|
|
3797
|
+
}> | Readonly<{
|
|
3798
|
+
kind: string;
|
|
3799
|
+
entity: KindEntity;
|
|
3800
|
+
status: "failed";
|
|
3801
|
+
error: Error;
|
|
3802
|
+
}> | Readonly<{
|
|
3803
|
+
kind: string;
|
|
3804
|
+
entity: KindEntity;
|
|
3805
|
+
status: "skipped";
|
|
3806
|
+
/**
|
|
3807
|
+
* `"kind-is-live"`: the active schema declares this kind again — it was
|
|
3808
|
+
* dropped, then re-added — so deleting its rows would destroy live
|
|
3809
|
+
* data. The queue row stays pending, so a later removal of the same
|
|
3810
|
+
* kind still reclaims it.
|
|
3811
|
+
*
|
|
3812
|
+
* Reported rather than silent: an empty `results` array would otherwise
|
|
3813
|
+
* be indistinguishable from "nothing was pending", leaving the queue at
|
|
3814
|
+
* a non-zero depth with nothing explaining why.
|
|
3815
|
+
*/
|
|
3816
|
+
reason: "kind-is-live";
|
|
3680
3817
|
}>;
|
|
3681
3818
|
/**
|
|
3682
3819
|
* Outcome of reclaiming one per-`(graphId, kind, field)` vector table that
|
|
@@ -4007,6 +4144,7 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
4007
4144
|
materializeIndexes: (options?: MaterializeIndexesOptions) => Promise<MaterializeIndexesResult>;
|
|
4008
4145
|
materializeSystemIndexes: (options?: MaterializeSystemIndexesOptions) => Promise<MaterializeIndexesResult>;
|
|
4009
4146
|
reembedVectorField: (kind: string, fieldPath: string, options?: ReembedVectorFieldOptions) => Promise<ReembedVectorFieldResult>;
|
|
4147
|
+
verifyContributions: () => Promise<readonly ContributionDiagnostic[]>;
|
|
4010
4148
|
materializeRemovals: (options?: MaterializeRemovalsOptions) => Promise<MaterializeRemovalsResult>;
|
|
4011
4149
|
close: () => Promise<void>;
|
|
4012
4150
|
}>;
|
|
@@ -4185,6 +4323,10 @@ declare function createAdapterStore<G extends GraphDef, TNativeTransaction>(grap
|
|
|
4185
4323
|
* - Initializes the schema on first run (version 1)
|
|
4186
4324
|
* - Auto-migrates safe changes (additive changes)
|
|
4187
4325
|
* - Throws MigrationError for breaking changes
|
|
4326
|
+
* - Fences managed writes against concurrent schema-version commits; a stale Store
|
|
4327
|
+
* fails before writing instead of landing rows against a replaced schema
|
|
4328
|
+
* (official transactional backends only; unsupported custom backends fail
|
|
4329
|
+
* closed on their first managed write)
|
|
4188
4330
|
*
|
|
4189
4331
|
* @param graph - The graph definition
|
|
4190
4332
|
* @param backend - The database backend
|
|
@@ -4245,6 +4387,11 @@ declare function createAdapterStoreWithSchema<G extends GraphDef, TNativeTransac
|
|
|
4245
4387
|
* initialized, or `StoreNotInitializedError` when the schema is
|
|
4246
4388
|
* current but the runtime-contribution markers are missing/stale.
|
|
4247
4389
|
* The runtime can use a least-privilege, DML-only database role.
|
|
4390
|
+
* Managed writes are fenced against concurrent schema-version commits just like
|
|
4391
|
+
* `createStoreWithSchema`; a stale verified Store fails before writing.
|
|
4392
|
+
* Runtime backends must support transactions and the schema-write fence;
|
|
4393
|
+
* unsupported custom or HTTP backends attach for reads but fail closed on a
|
|
4394
|
+
* managed write.
|
|
4248
4395
|
* - **`createStore(graph, backend)`** is the same zero-DDL attach
|
|
4249
4396
|
* *without* the verification gate — fastest, but schema drift goes
|
|
4250
4397
|
* undetected until a hot-path operation trips.
|
|
@@ -4472,4 +4619,4 @@ declare class RecordedStoreView<G extends GraphDef> extends CoordinatePinnedView
|
|
|
4472
4619
|
get edges(): RecordedStoreViewEdgeCollections<G>;
|
|
4473
4620
|
}
|
|
4474
4621
|
|
|
4475
|
-
export {
|
|
4622
|
+
export { type EmptyAliasMap as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeBulkFindEndpointOptions as N, type EdgeBulkFindOptions as O, type EdgeCollection as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeFindByEndpointsOptions as V, type EdgeGetOrCreateByEndpointsOptions as W, type EdgeGetOrCreateByEndpointsResult as X, type EdgeIntrospection as Y, type EdgeTemporalReads as Z, type EdgeWrites as _, type Store as a, RecordedStoreView as a$, type EmptyEdgeAliasMap as a0, ExecutableAggregateQuery as a1, ExecutableQuery as a2, type FieldAccessor as a3, type FulltextSearchHit as a4, type FulltextSearchOptions as a5, type GetOrCreateAction as a6, type GraphAlgorithms as a7, type GraphEdgeCollections as a8, type GraphNodeCollections as a9, type NodeGetOrCreateByConstraintResult as aA, type NodeIdentifier as aB, type NodeRef as aC, type NodeTemporalReads as aD, type NodeWrites as aE, type OntologyIntrospection as aF, type OperationHookContext as aG, type PageRankOptions as aH, type PageRankScore as aI, type PaginateOptions as aJ, type PaginatedResult as aK, type PathNode as aL, type PersonalizedPageRankOptions as aM, type PersonalizedPageRankSeed as aN, type Predicate as aO, PreparedQuery as aP, type PropsAccessor as aQ, type QueryHookContext as aR, type QueryOptions as aS, type ReachableNode as aT, type ReachableOptions as aU, type RebuildFulltextOptions as aV, type RebuildFulltextResult as aW, type ReclaimedVectorFieldEntry as aX, type ReconciledSchema as aY, type RecordedScanOptions as aZ, type RecordedScanPage as a_, type HistoryStoreBackend as aa, type HookContext as ab, type HybridFulltextOptions as ac, type HybridSearchHit as ad, type HybridSearchOptions as ae, type HybridVectorOptions as af, type IfExistsMode as ag, type InitialQueryBuilder as ah, type KindIntrospection as ai, type LabelPropagationMembership as aj, type LabelPropagationOptions as ak, type MaterializeRemovalsEntry as al, type MaterializeRemovalsOptions as am, type MaterializeRemovalsResult as an, type MeasurableAdapterHistoryTransactionContext as ao, type MeasurableAdapterTransactionContext as ap, type MeasurableTransactionContext as aq, type NeighborsOptions as ar, type NoRecordedCoordinate as as, type Node as at, type NodeAccessor as au, type NodeAlias as av, type NodeBulkFindByIndexOptions as aw, type NodeCollection as ax, type NodeCurrentReads as ay, type NodeGetOrCreateByConstraintOptions as az, type HistoryStore as b, type WeightedShortestPathResult as b$, type RecordedStoreViewEdgeCollection as b0, type RecordedStoreViewEdgeCollections as b1, type RecordedStoreViewNodeCollection as b2, type RecordedStoreViewNodeCollections as b3, type RecursiveTraversalOptions as b4, type ReembedFunction as b5, type ReembedVectorFieldOptions as b6, type ReembedVectorFieldResult as b7, type SchemaIntrospection as b8, type ScopedMeasure as b9, type StoreViewSubgraphOptions as bA, type StoreViewWeaklyConnectedComponentsOptions as bB, type StoreViewWeightedShortestPathOptions as bC, type StreamOptions as bD, type SubgraphEdgeResult as bE, type SubgraphNodeResult as bF, type SubgraphOptions as bG, type SubgraphResult as bH, type SubsetEdge as bI, type SubsetNode as bJ, type TemporalAlgorithmOptions as bK, type TransactionContext as bL, type TransactionOutcome as bM, type TransactionReceipt as bN, type TraversalDirection as bO, type TypedEdgeCollection as bP, type TypedRecordedStoreViewEdgeCollection as bQ, type TypedStoreViewEdgeCollection as bR, UnionableQuery as bS, type UniqueIntrospection as bT, type UpdateEdgeInput as bU, type UpdateNodeInput as bV, type VectorSearchHit as bW, type VectorSearchOptions as bX, type WeaklyConnectedComponentMembership as bY, type WeaklyConnectedComponentsOptions as bZ, type WeightedShortestPathOptions as b_, type SearchScopeOptions as ba, type SelectContext as bb, type SelectableEdge as bc, type SelectableNode as bd, type ShortestPathOptions as be, type ShortestPathResult as bf, type SqlAvailability as bg, type StoreHooks as bh, type StoreProjection as bi, type StoreRef as bj, StoreSearch as bk, StoreView as bl, type StoreViewCanReachOptions as bm, type StoreViewCoordinate as bn, type StoreViewDegreeOptions as bo, type StoreViewEdgeCollection as bp, type StoreViewEdgeCollections as bq, type StoreViewGraphAlgorithms as br, type StoreViewLabelPropagationOptions as bs, type StoreViewNeighborsOptions as bt, type StoreViewNodeCollection as bu, type StoreViewNodeCollections as bv, type StoreViewPageRankOptions as bw, type StoreViewPersonalizedPageRankOptions as bx, type StoreViewReachableOptions as by, type StoreViewShortestPathOptions as bz, type RecordedReadStore as c, createAdapterStore as c0, createAdapterStoreWithSchema as c1, createQueryBuilder as c2, createStore as c3, createStoreWithSchema as c4, createVerifiedAdapterStore as c5, createVerifiedStore as c6, defineSubgraphProject as c7, exists as c8, fieldRef as c9, inSubquery as ca, isParameterRef as cb, notExists as cc, notInSubquery as cd, param as ce, type RecursiveAliasMap as d, QueryBuilder as e, type EmptyRecursiveAliasMap as f, type AdapterHistoryStore as g, type AdapterHistoryTransactionContext as h, type AdapterRecordedReadStore as i, type AdapterStore as j, type AdapterTransactionContext as k, type AggregateResult as l, type AlgorithmCyclePolicy as m, type AnyEdge as n, type AnyNode as o, type BaseTraversalOptions as p, type BatchResults as q, type BatchableQuery as r, type CreateEdgeInput as s, type CreateNodeInput as t, type DynamicEdgeAccessor as u, type DynamicEdgeCollection as v, type DynamicEdgeType as w, type DynamicFieldBuilder as x, type DynamicNodeAccessor as y, type DynamicNodeCollection as z };
|