@nicia-ai/typegraph 0.41.0 → 0.42.1
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 -2
- package/dist/backend/drizzle/indexes.d.ts +1 -2
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +50 -50
- package/dist/backend/index.d.cts +3 -4
- package/dist/backend/index.d.ts +3 -4
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +5 -6
- package/dist/backend/postgres/index.d.ts +5 -6
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -34
- package/dist/backend/postgres/pglite-store.d.cts +7 -8
- package/dist/backend/postgres/pglite-store.d.ts +7 -8
- package/dist/backend/postgres/pglite-store.js +30 -30
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +2 -3
- package/dist/backend/postgres/pglite.d.ts +2 -3
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +5 -6
- package/dist/backend/sqlite/index.d.ts +5 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.d.cts +2 -3
- package/dist/backend/sqlite/libsql.d.ts +2 -3
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/local-store.cjs +35 -35
- package/dist/backend/sqlite/local-store.d.cts +7 -8
- package/dist/backend/sqlite/local-store.d.ts +7 -8
- package/dist/backend/sqlite/local-store.js +31 -31
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +2 -3
- package/dist/backend/sqlite/local.d.ts +2 -3
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-LOKG3KQV.cjs → chunk-277UZV7X.cjs} +1113 -1089
- package/dist/chunk-277UZV7X.cjs.map +1 -0
- package/dist/{chunk-2I3DNNBU.js → chunk-2G6ZEGYO.js} +4 -4
- package/dist/{chunk-2I3DNNBU.js.map → chunk-2G6ZEGYO.js.map} +1 -1
- package/dist/{chunk-76HE7DJP.js → chunk-2HKIID5K.js} +5 -5
- package/dist/{chunk-76HE7DJP.js.map → chunk-2HKIID5K.js.map} +1 -1
- package/dist/{chunk-QOHTVDHU.js → chunk-2OOY4OYT.js} +4 -4
- package/dist/{chunk-QOHTVDHU.js.map → chunk-2OOY4OYT.js.map} +1 -1
- package/dist/{chunk-UCHW2MGP.cjs → chunk-2SO5I5AI.cjs} +196 -196
- package/dist/{chunk-UCHW2MGP.cjs.map → chunk-2SO5I5AI.cjs.map} +1 -1
- package/dist/{chunk-LFFVD5ZR.cjs → chunk-33PAKPED.cjs} +41 -41
- package/dist/{chunk-LFFVD5ZR.cjs.map → chunk-33PAKPED.cjs.map} +1 -1
- package/dist/{chunk-QCKD3RCI.cjs → chunk-3RPQDGUE.cjs} +5 -5
- package/dist/{chunk-QCKD3RCI.cjs.map → chunk-3RPQDGUE.cjs.map} +1 -1
- package/dist/{chunk-PH4IJ3V5.js → chunk-3V6D5DEC.js} +3 -3
- package/dist/{chunk-PH4IJ3V5.js.map → chunk-3V6D5DEC.js.map} +1 -1
- package/dist/{chunk-Y5UC3IXF.js → chunk-42XYPKZU.js} +3 -3
- package/dist/{chunk-Y5UC3IXF.js.map → chunk-42XYPKZU.js.map} +1 -1
- package/dist/{chunk-XZA3Y4YH.js → chunk-4WYFRACU.js} +3 -3
- package/dist/{chunk-XZA3Y4YH.js.map → chunk-4WYFRACU.js.map} +1 -1
- package/dist/{chunk-AQVDAKXH.js → chunk-4XRP2N6B.js} +3 -3
- package/dist/{chunk-AQVDAKXH.js.map → chunk-4XRP2N6B.js.map} +1 -1
- package/dist/{chunk-PWXGB77L.cjs → chunk-5AERZSHC.cjs} +4 -4
- package/dist/{chunk-PWXGB77L.cjs.map → chunk-5AERZSHC.cjs.map} +1 -1
- package/dist/{chunk-K6CD6W5J.js → chunk-5C75HQYQ.js} +5 -5
- package/dist/{chunk-K6CD6W5J.js.map → chunk-5C75HQYQ.js.map} +1 -1
- package/dist/{chunk-2J5NMMVR.cjs → chunk-5GV4JQNA.cjs} +43 -43
- package/dist/{chunk-2J5NMMVR.cjs.map → chunk-5GV4JQNA.cjs.map} +1 -1
- package/dist/{chunk-KHNKYSGP.cjs → chunk-5P6IPIT6.cjs} +41 -41
- package/dist/{chunk-KHNKYSGP.cjs.map → chunk-5P6IPIT6.cjs.map} +1 -1
- package/dist/{chunk-M2RPZS7J.cjs → chunk-5Q3P6OIC.cjs} +12 -12
- package/dist/{chunk-M2RPZS7J.cjs.map → chunk-5Q3P6OIC.cjs.map} +1 -1
- package/dist/{chunk-QXKVUJLI.cjs → chunk-5ZPRE4CV.cjs} +206 -166
- package/dist/chunk-5ZPRE4CV.cjs.map +1 -0
- package/dist/{chunk-53BSOG3O.js → chunk-6NB73BXV.js} +11 -11
- package/dist/{chunk-53BSOG3O.js.map → chunk-6NB73BXV.js.map} +1 -1
- package/dist/{chunk-SE422RES.cjs → chunk-6TJ6PKPS.cjs} +27 -27
- package/dist/{chunk-SE422RES.cjs.map → chunk-6TJ6PKPS.cjs.map} +1 -1
- package/dist/{chunk-7WLEQIHA.cjs → chunk-7Y6BV3TK.cjs} +100 -100
- package/dist/{chunk-7WLEQIHA.cjs.map → chunk-7Y6BV3TK.cjs.map} +1 -1
- package/dist/{chunk-HP6LWBLB.cjs → chunk-AO2WPYFZ.cjs} +4 -4
- package/dist/{chunk-HP6LWBLB.cjs.map → chunk-AO2WPYFZ.cjs.map} +1 -1
- package/dist/{chunk-7UTUKH4E.cjs → chunk-AQR6BHB3.cjs} +10 -10
- package/dist/{chunk-7UTUKH4E.cjs.map → chunk-AQR6BHB3.cjs.map} +1 -1
- package/dist/{chunk-X4PVHAZ6.cjs → chunk-ARN3ZODS.cjs} +6 -6
- package/dist/{chunk-X4PVHAZ6.cjs.map → chunk-ARN3ZODS.cjs.map} +1 -1
- package/dist/{chunk-YYLMXERH.js → chunk-CDYRPI5U.js} +4 -4
- package/dist/{chunk-YYLMXERH.js.map → chunk-CDYRPI5U.js.map} +1 -1
- package/dist/{chunk-3LKL3S6X.js → chunk-CI5NPLXX.js} +3 -3
- package/dist/{chunk-3LKL3S6X.js.map → chunk-CI5NPLXX.js.map} +1 -1
- package/dist/{chunk-UUIBACKJ.js → chunk-CUPJL6TS.js} +3 -3
- package/dist/{chunk-UUIBACKJ.js.map → chunk-CUPJL6TS.js.map} +1 -1
- package/dist/{chunk-JZYMOHHM.cjs → chunk-CVK4T34X.cjs} +22 -22
- package/dist/{chunk-JZYMOHHM.cjs.map → chunk-CVK4T34X.cjs.map} +1 -1
- package/dist/{chunk-L3DDZUZP.js → chunk-CVNGKTHO.js} +4 -4
- package/dist/{chunk-L3DDZUZP.js.map → chunk-CVNGKTHO.js.map} +1 -1
- package/dist/{chunk-RW24SAHI.cjs → chunk-DMZEVJGL.cjs} +13 -13
- package/dist/{chunk-RW24SAHI.cjs.map → chunk-DMZEVJGL.cjs.map} +1 -1
- package/dist/{chunk-MQBF3XGY.js → chunk-DP7KC6CL.js} +47 -23
- package/dist/chunk-DP7KC6CL.js.map +1 -0
- package/dist/{chunk-QYDUCWD2.cjs → chunk-ECU53PMN.cjs} +4 -4
- package/dist/{chunk-QYDUCWD2.cjs.map → chunk-ECU53PMN.cjs.map} +1 -1
- package/dist/{chunk-SCTZRFW5.js → chunk-EQOQOT55.js} +5 -5
- package/dist/{chunk-SCTZRFW5.js.map → chunk-EQOQOT55.js.map} +1 -1
- package/dist/{chunk-JHK6NPFV.js → chunk-EVFL2ZY5.js} +9 -9
- package/dist/{chunk-JHK6NPFV.js.map → chunk-EVFL2ZY5.js.map} +1 -1
- package/dist/{chunk-SAMJLDGG.cjs → chunk-F2KVJ6FF.cjs} +112 -112
- package/dist/{chunk-SAMJLDGG.cjs.map → chunk-F2KVJ6FF.cjs.map} +1 -1
- package/dist/{chunk-NMQ6C6TS.cjs → chunk-F7TDKSVB.cjs} +4 -4
- package/dist/{chunk-NMQ6C6TS.cjs.map → chunk-F7TDKSVB.cjs.map} +1 -1
- package/dist/{chunk-HQRZEYYB.cjs → chunk-FFQGI67R.cjs} +44 -44
- package/dist/{chunk-HQRZEYYB.cjs.map → chunk-FFQGI67R.cjs.map} +1 -1
- package/dist/{chunk-YIRLBUNN.js → chunk-FMPZPOUD.js} +3 -3
- package/dist/{chunk-YIRLBUNN.js.map → chunk-FMPZPOUD.js.map} +1 -1
- package/dist/{chunk-LL5D5T5W.cjs → chunk-FSCJOTHF.cjs} +10 -10
- package/dist/{chunk-LL5D5T5W.cjs.map → chunk-FSCJOTHF.cjs.map} +1 -1
- package/dist/{chunk-2X73QTIC.cjs → chunk-FY4VY5EV.cjs} +20 -20
- package/dist/{chunk-2X73QTIC.cjs.map → chunk-FY4VY5EV.cjs.map} +1 -1
- package/dist/{chunk-3SHAUJRB.js → chunk-GT7NEXSU.js} +3 -3
- package/dist/{chunk-3SHAUJRB.js.map → chunk-GT7NEXSU.js.map} +1 -1
- package/dist/{chunk-W66YCXWT.js → chunk-HHBKGPEI.js} +11 -10
- package/dist/chunk-HHBKGPEI.js.map +1 -0
- package/dist/{chunk-CKFBZ4LV.cjs → chunk-I73ATSAH.cjs} +4 -4
- package/dist/{chunk-CKFBZ4LV.cjs.map → chunk-I73ATSAH.cjs.map} +1 -1
- package/dist/{chunk-ELA3V6UN.js → chunk-JOYPNY33.js} +9 -9
- package/dist/{chunk-ELA3V6UN.js.map → chunk-JOYPNY33.js.map} +1 -1
- package/dist/{chunk-YIX3BEBR.cjs → chunk-K2HHCWZO.cjs} +108 -108
- package/dist/{chunk-YIX3BEBR.cjs.map → chunk-K2HHCWZO.cjs.map} +1 -1
- package/dist/{chunk-SAFZ6JTI.cjs → chunk-KTBTSHU6.cjs} +19 -2
- package/dist/chunk-KTBTSHU6.cjs.map +1 -0
- package/dist/{chunk-KOI7UEI5.js → chunk-LDCWO5B6.js} +3 -3
- package/dist/{chunk-KOI7UEI5.js.map → chunk-LDCWO5B6.js.map} +1 -1
- package/dist/{chunk-I5CRUPKO.js → chunk-LQLVJWUH.js} +7 -7
- package/dist/{chunk-I5CRUPKO.js.map → chunk-LQLVJWUH.js.map} +1 -1
- package/dist/{chunk-6N7QBIWN.js → chunk-M4GYQF2H.js} +3 -3
- package/dist/{chunk-6N7QBIWN.js.map → chunk-M4GYQF2H.js.map} +1 -1
- package/dist/{chunk-ZE7E46IZ.js → chunk-NXIZL7ZZ.js} +6 -6
- package/dist/{chunk-ZE7E46IZ.js.map → chunk-NXIZL7ZZ.js.map} +1 -1
- package/dist/{chunk-XRU7V7FF.cjs → chunk-O2GZM7UK.cjs} +7 -7
- package/dist/{chunk-XRU7V7FF.cjs.map → chunk-O2GZM7UK.cjs.map} +1 -1
- package/dist/{chunk-ZE6NVENI.js → chunk-O3USVVWS.js} +3 -3
- package/dist/{chunk-ZE6NVENI.js.map → chunk-O3USVVWS.js.map} +1 -1
- package/dist/{chunk-UDS5DZNY.cjs → chunk-O7XVCLXW.cjs} +68 -67
- package/dist/chunk-O7XVCLXW.cjs.map +1 -0
- package/dist/{chunk-KLR77R5A.cjs → chunk-OM6RIOA5.cjs} +13 -13
- package/dist/{chunk-KLR77R5A.cjs.map → chunk-OM6RIOA5.cjs.map} +1 -1
- package/dist/{chunk-LLHMAHG4.cjs → chunk-OMQ2NBOR.cjs} +27 -27
- package/dist/{chunk-LLHMAHG4.cjs.map → chunk-OMQ2NBOR.cjs.map} +1 -1
- package/dist/{chunk-DPNA466P.js → chunk-OYJSYDIH.js} +19 -3
- package/dist/chunk-OYJSYDIH.js.map +1 -0
- package/dist/{chunk-V3S74J44.js → chunk-RAWG2FEU.js} +134 -22
- package/dist/chunk-RAWG2FEU.js.map +1 -0
- package/dist/{chunk-TAUGGLNQ.js → chunk-RXOAXO3R.js} +3 -3
- package/dist/{chunk-TAUGGLNQ.js.map → chunk-RXOAXO3R.js.map} +1 -1
- package/dist/{chunk-LLE25NRD.cjs → chunk-TRC646QQ.cjs} +7 -7
- package/dist/{chunk-LLE25NRD.cjs.map → chunk-TRC646QQ.cjs.map} +1 -1
- package/dist/chunk-U3YRCZ5L.cjs +12 -0
- package/dist/{chunk-IMQKXL4E.cjs.map → chunk-U3YRCZ5L.cjs.map} +1 -1
- package/dist/{chunk-ZVME6OSV.js → chunk-UJRWOV5B.js} +5 -5
- package/dist/{chunk-ZVME6OSV.js.map → chunk-UJRWOV5B.js.map} +1 -1
- package/dist/{chunk-HAQVISUF.cjs → chunk-UTTW2Q3M.cjs} +133 -133
- package/dist/{chunk-HAQVISUF.cjs.map → chunk-UTTW2Q3M.cjs.map} +1 -1
- package/dist/{chunk-L5ET7FYQ.js → chunk-UZLEQFTV.js} +3 -3
- package/dist/{chunk-L5ET7FYQ.js.map → chunk-UZLEQFTV.js.map} +1 -1
- package/dist/{chunk-JP5EICR6.cjs → chunk-V2GZBPY2.cjs} +179 -65
- package/dist/chunk-V2GZBPY2.cjs.map +1 -0
- package/dist/{chunk-BUZWMDNL.js → chunk-VC26BUNP.js} +5 -5
- package/dist/{chunk-BUZWMDNL.js.map → chunk-VC26BUNP.js.map} +1 -1
- package/dist/chunk-VGMNGWBR.cjs +12 -0
- package/dist/{chunk-5YBDB7UG.cjs.map → chunk-VGMNGWBR.cjs.map} +1 -1
- package/dist/{chunk-XMEYZYGE.js → chunk-WYQILW5V.js} +8 -8
- package/dist/{chunk-XMEYZYGE.js.map → chunk-WYQILW5V.js.map} +1 -1
- package/dist/{chunk-YX3H63VV.cjs → chunk-X2XOQZT3.cjs} +9 -9
- package/dist/{chunk-YX3H63VV.cjs.map → chunk-X2XOQZT3.cjs.map} +1 -1
- package/dist/{chunk-N2V3HJFV.cjs → chunk-XDMPDUKL.cjs} +9 -9
- package/dist/{chunk-N2V3HJFV.cjs.map → chunk-XDMPDUKL.cjs.map} +1 -1
- package/dist/{chunk-EFZ4S22A.js → chunk-YPVQYM3L.js} +107 -67
- package/dist/chunk-YPVQYM3L.js.map +1 -0
- package/dist/{chunk-5J4VNCUD.js → chunk-Z3WIL6S3.js} +5 -5
- package/dist/{chunk-5J4VNCUD.js.map → chunk-Z3WIL6S3.js.map} +1 -1
- package/dist/{chunk-MNURF4RF.cjs → chunk-ZBV4LQD2.cjs} +4 -4
- package/dist/{chunk-MNURF4RF.cjs.map → chunk-ZBV4LQD2.cjs.map} +1 -1
- package/dist/{chunk-YGX4PMG6.js → chunk-ZGOUVMVS.js} +5 -5
- package/dist/{chunk-YGX4PMG6.js.map → chunk-ZGOUVMVS.js.map} +1 -1
- package/dist/{chunk-QZYGZVUI.js → chunk-ZIRC2U6G.js} +11 -11
- package/dist/{chunk-QZYGZVUI.js.map → chunk-ZIRC2U6G.js.map} +1 -1
- package/dist/{chunk-6QP4QXBR.js → chunk-ZOHCFYXE.js} +3 -3
- package/dist/{chunk-6QP4QXBR.js.map → chunk-ZOHCFYXE.js.map} +1 -1
- package/dist/{chunk-VWEFXG73.js → chunk-ZP2KPDNN.js} +3 -3
- package/dist/{chunk-VWEFXG73.js.map → chunk-ZP2KPDNN.js.map} +1 -1
- package/dist/{chunk-NT6ILURI.cjs → chunk-ZPCKPLMX.cjs} +8 -8
- package/dist/{chunk-NT6ILURI.cjs.map → chunk-ZPCKPLMX.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -6
- package/dist/core/index.d.ts +5 -6
- package/dist/core/index.js +8 -8
- package/dist/{ddl-BCXFRLWg.d.cts → ddl-3unqC-kg.d.cts} +3 -3
- package/dist/{ddl-ByLmGgn9.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
- package/dist/{define-graph-BSviZubs.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
- package/dist/{define-graph-XyJheaFm.d.cts → define-graph-DBFnc7u_.d.ts} +1 -2
- 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 +105 -105
- package/dist/graph-merge/index.d.cts +8 -9
- package/dist/graph-merge/index.d.ts +8 -9
- package/dist/graph-merge/index.js +25 -25
- package/dist/{index-BD_3TCgh.d.ts → index-DHXw7QAl.d.cts} +19 -4
- package/dist/{index-BihFPsPu.d.cts → index-DQzVJBHa.d.ts} +19 -4
- package/dist/index.cjs +206 -202
- package/dist/index.d.cts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.js +35 -35
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -5
- package/dist/indexes/index.d.ts +4 -5
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +40 -40
- package/dist/interchange/index.d.cts +9 -10
- package/dist/interchange/index.d.ts +9 -10
- package/dist/interchange/index.js +14 -14
- package/dist/{manager-C7iC5bk_.d.ts → manager-Dl0-er1G.d.ts} +21 -156
- package/dist/{manager-Dm6MCYO7.d.cts → manager-U9_zopqr.d.cts} +21 -156
- package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
- package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
- package/dist/{postgres-DZxwzCQ8.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
- package/dist/{postgres-Cb6ceh4-.d.ts → postgres-DpJqtbSX.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -10
- package/dist/profiler/index.d.ts +9 -10
- package/dist/provenance/index.cjs +39 -39
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +9 -9
- package/dist/schema/index.cjs +48 -39
- package/dist/schema/index.d.cts +7 -8
- package/dist/schema/index.d.ts +7 -8
- package/dist/schema/index.js +15 -14
- package/dist/{searchable-aUaKh3_r.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
- package/dist/{searchable-Cet4Oztt.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
- package/dist/{sqlite-Cb3Ilj9_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
- package/dist/{sqlite-Dxklpizv.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
- package/dist/{store-view-PCT7vTKH.d.cts → store-view-6C2vTWqf.d.ts} +8 -7
- package/dist/{store-view-BDjGFjpN.d.ts → store-view-CNcOG8bQ.d.cts} +8 -7
- package/dist/{temporal-CyFsSPe8.d.ts → temporal-BtrTYTiB.d.ts} +1 -1
- package/dist/{temporal-Dn_JADWY.d.cts → temporal-CMpigMCW.d.cts} +1 -1
- package/dist/{types-CFZiEEPh.d.ts → types-D2rU5Taq.d.ts} +1 -2
- package/dist/{types-D-vOo_pM.d.ts → types-Dh-EgT-w.d.cts} +569 -2
- package/dist/{types-ho4DJJb_.d.cts → types-Dh-EgT-w.d.ts} +569 -2
- package/dist/{types-CsaG00wS.d.cts → types-G4sVM-76.d.cts} +1 -2
- package/dist/{where-DLYaXa4L.d.ts → where-B8Y21kig.d.ts} +1 -2
- package/dist/{where-udes1WRA.d.cts → where-DbZ9XDOI.d.cts} +1 -2
- package/package.json +1 -1
- package/dist/chunk-5YBDB7UG.cjs +0 -12
- package/dist/chunk-DPNA466P.js.map +0 -1
- package/dist/chunk-EFZ4S22A.js.map +0 -1
- package/dist/chunk-IMQKXL4E.cjs +0 -12
- package/dist/chunk-JP5EICR6.cjs.map +0 -1
- package/dist/chunk-LOKG3KQV.cjs.map +0 -1
- package/dist/chunk-MQBF3XGY.js.map +0 -1
- package/dist/chunk-QXKVUJLI.cjs.map +0 -1
- package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
- package/dist/chunk-UDS5DZNY.cjs.map +0 -1
- package/dist/chunk-V3S74J44.js.map +0 -1
- package/dist/chunk-W66YCXWT.js.map +0 -1
- package/dist/extension-types-BLEVH4SG.d.cts +0 -571
- package/dist/extension-types-BLEVH4SG.d.ts +0 -571
- package/dist/materialize-indexes-D4iei4Kp.d.ts +0 -90
- package/dist/materialize-indexes-ExQ6OrAh.d.cts +0 -90
|
@@ -1,5 +1,251 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Which side of the bipartite graph a kind lives on. Used everywhere a
|
|
5
|
+
* function takes "the entity that owns a kind" — error metadata,
|
|
6
|
+
* extension classifiers, removal queues, schema diffs.
|
|
7
|
+
*/
|
|
8
|
+
type KindEntity = "node" | "edge";
|
|
9
|
+
/**
|
|
10
|
+
* Which physical surface an index targets. Vector indexes don't own a
|
|
11
|
+
* kind directly (they back a per-`(kind, field)` typed embedding table
|
|
12
|
+
* owned by the active `VectorStrategy`), but they participate in the same
|
|
13
|
+
* materialization and diff pipelines, so they share this discriminator.
|
|
14
|
+
*
|
|
15
|
+
* `"system"` marks TypeGraph's own base-relation indexes
|
|
16
|
+
* (`SYSTEM_INDEX_DECLARATIONS`) — graph-independent, but materialized and
|
|
17
|
+
* status-tracked through the same pipeline; their status rows carry the
|
|
18
|
+
* relation key (e.g. `"recordedNodes"`) in the `kind` column.
|
|
19
|
+
*/
|
|
20
|
+
type IndexEntity = "node" | "edge" | "vector" | "system";
|
|
21
|
+
/**
|
|
22
|
+
* Field-level null-check operations that round-trip through persisted
|
|
23
|
+
* documents (unique-constraint where clauses, index where clauses,
|
|
24
|
+
* graph-extension where clauses, IsNullPredicate). Consolidated so a
|
|
25
|
+
* single rename or extension touches one site.
|
|
26
|
+
*/
|
|
27
|
+
type NullCheckOp = "isNull" | "isNotNull";
|
|
28
|
+
/** Brand key for NodeType */
|
|
29
|
+
declare const NODE_TYPE_BRAND: "__nodeType";
|
|
30
|
+
/** Brand key for EdgeType */
|
|
31
|
+
declare const EDGE_TYPE_BRAND: "__edgeType";
|
|
32
|
+
/** Brand symbol for NodeId */
|
|
33
|
+
declare const __nodeId: unique symbol;
|
|
34
|
+
/** Brand symbol for EdgeId */
|
|
35
|
+
declare const __edgeId: unique symbol;
|
|
36
|
+
/**
|
|
37
|
+
* Any JSON-serializable value.
|
|
38
|
+
*
|
|
39
|
+
* Mirrors the JSON wire format: primitives, arrays, and string-keyed objects.
|
|
40
|
+
* `null` is included because the JSON spec requires it for "no value here";
|
|
41
|
+
* this is the one place in the public API that uses `null` over `undefined`.
|
|
42
|
+
*/
|
|
43
|
+
type JsonValue = null | string | number | boolean | readonly JsonValue[] | Readonly<{
|
|
44
|
+
[key: string]: JsonValue;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Consumer-owned per-kind annotations.
|
|
48
|
+
*
|
|
49
|
+
* Stable labels attached to a node or edge kind at definition time — UI hints,
|
|
50
|
+
* audit policy, provenance pointers, tooling annotations.
|
|
51
|
+
*
|
|
52
|
+
* **Consumer-owned, fully.** TypeGraph never reads, validates, or interprets
|
|
53
|
+
* values in this field. Consumers own the entire namespace; there are no
|
|
54
|
+
* reserved keys or extension prefixes. Future library-owned per-kind state,
|
|
55
|
+
* if needed, will use a separate sibling field rather than carving out keys
|
|
56
|
+
* here.
|
|
57
|
+
*
|
|
58
|
+
* **Annotations participate in schema hashing.** Any change to an annotation
|
|
59
|
+
* value (or adding/removing an annotation key) bumps the canonical schema
|
|
60
|
+
* hash and is reported as a `safe`-severity diff by `getSchemaChanges`. If
|
|
61
|
+
* you don't want versioning for a piece of state, do not put it here.
|
|
62
|
+
*
|
|
63
|
+
* Values must be JSON-serializable — `bigint`, `function`, `symbol`, `undefined`,
|
|
64
|
+
* `Date`, and other class instances are rejected at definition time so they can
|
|
65
|
+
* never silently break schema hashing or storage round-trips.
|
|
66
|
+
*/
|
|
67
|
+
type KindAnnotations = Readonly<Record<string, JsonValue>>;
|
|
68
|
+
/**
|
|
69
|
+
* A node type definition.
|
|
70
|
+
*
|
|
71
|
+
* Created via `defineNode()`. Represents a type of node in the graph
|
|
72
|
+
* with an associated Zod schema for properties.
|
|
73
|
+
*/
|
|
74
|
+
type NodeType<K extends string = string, S extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>> = Readonly<{
|
|
75
|
+
[NODE_TYPE_BRAND]: true;
|
|
76
|
+
kind: K;
|
|
77
|
+
schema: S;
|
|
78
|
+
description: string | undefined;
|
|
79
|
+
annotations: KindAnnotations | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* Branded node ID type.
|
|
83
|
+
*
|
|
84
|
+
* Prevents mixing IDs from different node types at compile time.
|
|
85
|
+
*/
|
|
86
|
+
type NodeId<N extends NodeType> = string & Readonly<{
|
|
87
|
+
[__nodeId]: N;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Brands a non-empty string as a {@link NodeId}.
|
|
91
|
+
*
|
|
92
|
+
* Use this when a persisted node id has round-tripped through untyped storage
|
|
93
|
+
* or an external boundary and must be passed back to read/update/delete
|
|
94
|
+
* surfaces such as `getById`, `getByIds`, `update`, or `delete`.
|
|
95
|
+
* Write surfaces that mint or claim ids, such as `create({ id })` and
|
|
96
|
+
* `upsertById`, intentionally accept plain strings.
|
|
97
|
+
*
|
|
98
|
+
* @throws {ValidationError} when `value` is empty.
|
|
99
|
+
*/
|
|
100
|
+
declare function asNodeId<N extends NodeType = NodeType>(value: string): NodeId<N>;
|
|
101
|
+
/**
|
|
102
|
+
* Infer the props type from a NodeType.
|
|
103
|
+
*/
|
|
104
|
+
type NodeProps<N extends NodeType> = z.infer<N["schema"]>;
|
|
105
|
+
/**
|
|
106
|
+
* An edge type definition.
|
|
107
|
+
*
|
|
108
|
+
* Created via `defineEdge()`. Represents a type of edge in the graph
|
|
109
|
+
* with an optional Zod schema for properties.
|
|
110
|
+
*
|
|
111
|
+
* Optionally includes `from` and `to` arrays that define the allowed
|
|
112
|
+
* source and target node types (domain and range constraints).
|
|
113
|
+
*/
|
|
114
|
+
type EdgeType<K extends string = string, S extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, From extends readonly NodeType[] | undefined = undefined, To extends readonly NodeType[] | undefined = undefined> = Readonly<{
|
|
115
|
+
[EDGE_TYPE_BRAND]: true;
|
|
116
|
+
kind: K;
|
|
117
|
+
schema: S;
|
|
118
|
+
description: string | undefined;
|
|
119
|
+
annotations: KindAnnotations | undefined;
|
|
120
|
+
from: From;
|
|
121
|
+
to: To;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Base edge type for use in constraints - accepts any from/to configuration.
|
|
125
|
+
*/
|
|
126
|
+
type AnyEdgeType = EdgeType<string, z.ZodObject<z.ZodRawShape>, readonly NodeType[] | undefined, readonly NodeType[] | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* An edge type that has both from and to constraints defined.
|
|
129
|
+
* Can be used directly in defineGraph without an EdgeRegistration wrapper.
|
|
130
|
+
*/
|
|
131
|
+
type EdgeTypeWithEndpoints = EdgeType<string, z.ZodObject<z.ZodRawShape>, readonly NodeType[], readonly NodeType[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Branded edge ID type.
|
|
134
|
+
*
|
|
135
|
+
* Prevents mixing IDs from different edge types at compile time.
|
|
136
|
+
*/
|
|
137
|
+
type EdgeId<E extends AnyEdgeType = AnyEdgeType> = string & Readonly<{
|
|
138
|
+
[__edgeId]: E;
|
|
139
|
+
}>;
|
|
140
|
+
/**
|
|
141
|
+
* Brands a non-empty string as an {@link EdgeId}.
|
|
142
|
+
*
|
|
143
|
+
* Use this when a persisted edge id has round-tripped through untyped storage
|
|
144
|
+
* or an external boundary and must be passed back to read/update/delete
|
|
145
|
+
* surfaces such as `getById`, `getByIds`, `update`, or `delete`.
|
|
146
|
+
* Write surfaces that mint ids intentionally accept plain strings.
|
|
147
|
+
*
|
|
148
|
+
* @throws {ValidationError} when `value` is empty.
|
|
149
|
+
*/
|
|
150
|
+
declare function asEdgeId<E extends AnyEdgeType = AnyEdgeType>(value: string): EdgeId<E>;
|
|
151
|
+
/**
|
|
152
|
+
* Infer the props type from an EdgeType.
|
|
153
|
+
*/
|
|
154
|
+
type EdgeProps<E extends AnyEdgeType> = z.infer<E["schema"]>;
|
|
155
|
+
/**
|
|
156
|
+
* Delete behaviors for nodes.
|
|
157
|
+
*/
|
|
158
|
+
type DeleteBehavior = "restrict" | "cascade" | "disconnect";
|
|
159
|
+
/**
|
|
160
|
+
* Edge cardinality constraints.
|
|
161
|
+
*/
|
|
162
|
+
type Cardinality = "many" | "one" | "unique" | "oneActive";
|
|
163
|
+
/**
|
|
164
|
+
* Endpoint existence modes for edge validation.
|
|
165
|
+
*/
|
|
166
|
+
type EndpointExistence = "notDeleted" | "currentlyValid" | "ever";
|
|
167
|
+
/**
|
|
168
|
+
* Temporal query modes.
|
|
169
|
+
*/
|
|
170
|
+
type TemporalMode = "current" | "asOf" | "includeEnded" | "includeTombstones";
|
|
171
|
+
/**
|
|
172
|
+
* Uniqueness constraint scope.
|
|
173
|
+
*/
|
|
174
|
+
type UniquenessScope = "kind" | "kindWithSubClasses";
|
|
175
|
+
/**
|
|
176
|
+
* Collation for uniqueness constraints.
|
|
177
|
+
*/
|
|
178
|
+
type Collation = "binary" | "caseInsensitive";
|
|
179
|
+
/**
|
|
180
|
+
* Uniqueness constraint definition.
|
|
181
|
+
*/
|
|
182
|
+
type UniqueConstraint<S extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>> = Readonly<{
|
|
183
|
+
name: string;
|
|
184
|
+
fields: readonly (keyof z.infer<S> & string)[];
|
|
185
|
+
where?: (props: UniqueConstraintPredicateBuilder<S>) => UniqueConstraintPredicate;
|
|
186
|
+
scope: UniquenessScope;
|
|
187
|
+
collation: Collation;
|
|
188
|
+
}>;
|
|
189
|
+
/**
|
|
190
|
+
* Predicate builder for uniqueness constraint where clause.
|
|
191
|
+
* Uses -? to make all fields required in the builder, even if optional in the schema.
|
|
192
|
+
*/
|
|
193
|
+
type UniqueConstraintPredicateBuilder<S extends z.ZodObject<z.ZodRawShape>> = Readonly<{
|
|
194
|
+
[K in keyof z.infer<S>]-?: UniqueConstraintField;
|
|
195
|
+
}>;
|
|
196
|
+
/**
|
|
197
|
+
* Field operations for uniqueness constraint predicates.
|
|
198
|
+
*/
|
|
199
|
+
type UniqueConstraintField = Readonly<{
|
|
200
|
+
isNull: () => UniqueConstraintPredicate;
|
|
201
|
+
isNotNull: () => UniqueConstraintPredicate;
|
|
202
|
+
}>;
|
|
203
|
+
/**
|
|
204
|
+
* A uniqueness constraint predicate (internal representation).
|
|
205
|
+
*/
|
|
206
|
+
type UniqueConstraintPredicate = Readonly<{
|
|
207
|
+
__type: "unique_predicate";
|
|
208
|
+
field: string;
|
|
209
|
+
op: NullCheckOp;
|
|
210
|
+
}>;
|
|
211
|
+
/**
|
|
212
|
+
* Node registration in a graph definition.
|
|
213
|
+
*/
|
|
214
|
+
type NodeRegistration<N extends NodeType = NodeType> = Readonly<{
|
|
215
|
+
type: N;
|
|
216
|
+
unique?: readonly UniqueConstraint<N["schema"]>[];
|
|
217
|
+
onDelete?: DeleteBehavior;
|
|
218
|
+
}>;
|
|
219
|
+
/**
|
|
220
|
+
* Edge registration in a graph definition.
|
|
221
|
+
*/
|
|
222
|
+
type EdgeRegistration<E extends AnyEdgeType = AnyEdgeType, FromTypes extends NodeType = NodeType, ToTypes extends NodeType = NodeType> = Readonly<{
|
|
223
|
+
type: E;
|
|
224
|
+
from: readonly FromTypes[];
|
|
225
|
+
to: readonly ToTypes[];
|
|
226
|
+
cardinality?: Cardinality;
|
|
227
|
+
endpointExistence?: EndpointExistence;
|
|
228
|
+
}>;
|
|
229
|
+
/**
|
|
230
|
+
* Default settings for a graph.
|
|
231
|
+
*/
|
|
232
|
+
type GraphDefaults = Readonly<{
|
|
233
|
+
onNodeDelete?: DeleteBehavior;
|
|
234
|
+
temporalMode?: TemporalMode;
|
|
235
|
+
}>;
|
|
236
|
+
/**
|
|
237
|
+
* Checks if a value is a NodeType.
|
|
238
|
+
*/
|
|
239
|
+
declare function isNodeType(value: unknown): value is NodeType;
|
|
240
|
+
/**
|
|
241
|
+
* Checks if a value is an EdgeType.
|
|
242
|
+
*/
|
|
243
|
+
declare function isEdgeType(value: unknown): value is AnyEdgeType;
|
|
244
|
+
/**
|
|
245
|
+
* Checks if a value is an EdgeType with both from and to constraints defined.
|
|
246
|
+
* Such edges can be used directly in defineGraph without an EdgeRegistration wrapper.
|
|
247
|
+
*/
|
|
248
|
+
declare function isEdgeTypeWithEndpoints(value: unknown): value is EdgeTypeWithEndpoints;
|
|
3
249
|
|
|
4
250
|
declare const MAX_JSON_POINTER_DEPTH: 5;
|
|
5
251
|
type JsonPointer = string & {
|
|
@@ -1147,6 +1393,327 @@ type CompiledSelectSql = CompiledRowsSql;
|
|
|
1147
1393
|
type CompiledStatementSql = IntentSql<"statement">;
|
|
1148
1394
|
type CompiledTemporaryStatementSql = IntentSql<"temporary-statement">;
|
|
1149
1395
|
|
|
1396
|
+
declare const ALL_META_EDGE_NAMES: readonly ["subClassOf", "broader", "narrower", "relatedTo", "equivalentTo", "sameAs", "differentFrom", "disjointWith", "partOf", "hasPart", "inverseOf", "implies"];
|
|
1397
|
+
type MetaEdgeName = (typeof ALL_META_EDGE_NAMES)[number];
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Pure-value document format for graph extensions.
|
|
1401
|
+
*
|
|
1402
|
+
* A `GraphExtension` is a plain JSON-serializable description of
|
|
1403
|
+
* additional node kinds, edge kinds, and ontology relations that should
|
|
1404
|
+
* be merged into a graph at runtime. The document is the canonical
|
|
1405
|
+
* artifact: every restart re-compiles it back to the same Zod-bearing
|
|
1406
|
+
* `NodeType` / `EdgeType` / `OntologyRelation` shapes.
|
|
1407
|
+
*
|
|
1408
|
+
* The supported property-type subset is intentionally narrower than full
|
|
1409
|
+
* JSON Schema — only what compiles cleanly to Zod and what real
|
|
1410
|
+
* agent-induced schemas use in practice. Anything outside this set fails
|
|
1411
|
+
* loudly at `defineGraphExtension(...)`.
|
|
1412
|
+
*/
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Per-property modifier: tag the field as fulltext-searchable.
|
|
1416
|
+
*
|
|
1417
|
+
* Compiles to a `searchable({ language })`-wrapped Zod string when applied
|
|
1418
|
+
* to a `string` property. Rejected on any other property type at validation
|
|
1419
|
+
* time.
|
|
1420
|
+
*/
|
|
1421
|
+
type ExtensionSearchableModifier = Readonly<{
|
|
1422
|
+
language?: string;
|
|
1423
|
+
}>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Per-property modifier: declare a vector embedding with the given
|
|
1426
|
+
* dimensionality. Compiles to `embedding(dimensions)` and is only valid on
|
|
1427
|
+
* `array` properties whose item type is `number`. Rejected elsewhere.
|
|
1428
|
+
*/
|
|
1429
|
+
type ExtensionEmbeddingModifier = Readonly<{
|
|
1430
|
+
dimensions: number;
|
|
1431
|
+
}>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Modifiers shared by every graph-extension property type.
|
|
1434
|
+
*
|
|
1435
|
+
* `optional: true` flips the field from required-with-graph-extension-validation
|
|
1436
|
+
* to `.optional()` and removes it from the parent object's `required`
|
|
1437
|
+
* list. `searchable` and `embedding` only apply to specific underlying
|
|
1438
|
+
* types — see the per-modifier docs.
|
|
1439
|
+
*/
|
|
1440
|
+
type ExtensionPropertyModifiers = Readonly<{
|
|
1441
|
+
optional?: boolean;
|
|
1442
|
+
searchable?: ExtensionSearchableModifier;
|
|
1443
|
+
embedding?: ExtensionEmbeddingModifier;
|
|
1444
|
+
description?: string;
|
|
1445
|
+
}>;
|
|
1446
|
+
/**
|
|
1447
|
+
* String property. Compiles to `z.string()` plus the requested refinements.
|
|
1448
|
+
* `format` accepts the two formats motivated by induced schemas in
|
|
1449
|
+
* practice — covers ISO datetimes, URIs, email addresses, UUIDs, and
|
|
1450
|
+
* date-only strings. Each format routes to the corresponding Zod
|
|
1451
|
+
* factory (`z.iso.datetime()`, `z.url()`, `z.email()`, `z.uuid()`,
|
|
1452
|
+
* `z.iso.date()`); other JSON-Schema formats are deliberately not
|
|
1453
|
+
* supported in v1.
|
|
1454
|
+
*/
|
|
1455
|
+
type ExtensionStringProperty = Readonly<{
|
|
1456
|
+
type: "string";
|
|
1457
|
+
minLength?: number;
|
|
1458
|
+
maxLength?: number;
|
|
1459
|
+
pattern?: string;
|
|
1460
|
+
format?: "datetime" | "uri" | "email" | "uuid" | "date";
|
|
1461
|
+
}> & ExtensionPropertyModifiers;
|
|
1462
|
+
/**
|
|
1463
|
+
* Number property. `int: true` requires whole numbers; `min` / `max` are
|
|
1464
|
+
* inclusive bounds. Compiles to `z.number().int()?.min(...)?.max(...)`.
|
|
1465
|
+
*/
|
|
1466
|
+
type ExtensionNumberProperty = Readonly<{
|
|
1467
|
+
type: "number";
|
|
1468
|
+
min?: number;
|
|
1469
|
+
max?: number;
|
|
1470
|
+
int?: boolean;
|
|
1471
|
+
}> & ExtensionPropertyModifiers;
|
|
1472
|
+
/**
|
|
1473
|
+
* Boolean property. Compiles to `z.boolean()`.
|
|
1474
|
+
*/
|
|
1475
|
+
type ExtensionBooleanProperty = Readonly<{
|
|
1476
|
+
type: "boolean";
|
|
1477
|
+
}> & ExtensionPropertyModifiers;
|
|
1478
|
+
/**
|
|
1479
|
+
* Closed-set string enum. Compiles to `z.enum([...values])`. Must contain
|
|
1480
|
+
* at least one value; duplicate values are rejected at validation time.
|
|
1481
|
+
*/
|
|
1482
|
+
type ExtensionEnumProperty = Readonly<{
|
|
1483
|
+
type: "enum";
|
|
1484
|
+
values: readonly string[];
|
|
1485
|
+
}> & ExtensionPropertyModifiers;
|
|
1486
|
+
/**
|
|
1487
|
+
* Array property. `items` is any of the scalar property types or an
|
|
1488
|
+
* object property — nested arrays are forbidden in v1. Compiles to
|
|
1489
|
+
* `z.array(<items>)`. The `embedding` modifier turns this into a
|
|
1490
|
+
* vector embedding instead of a generic array.
|
|
1491
|
+
*/
|
|
1492
|
+
type ExtensionArrayProperty = Readonly<{
|
|
1493
|
+
type: "array";
|
|
1494
|
+
items: ExtensionArrayItemType;
|
|
1495
|
+
}> & ExtensionPropertyModifiers;
|
|
1496
|
+
/**
|
|
1497
|
+
* Element types allowed inside an array — every leaf property type plus
|
|
1498
|
+
* single-level object. Nesting an array inside an array is rejected at
|
|
1499
|
+
* validation time so the v1 surface stays a flat tree.
|
|
1500
|
+
*/
|
|
1501
|
+
type ExtensionArrayItemType = ExtensionStringProperty | ExtensionNumberProperty | ExtensionBooleanProperty | ExtensionEnumProperty | ExtensionObjectProperty;
|
|
1502
|
+
/**
|
|
1503
|
+
* Object property. `properties` is a single nesting level; deeper objects
|
|
1504
|
+
* are rejected at validation time so the v1 surface is auditable at a
|
|
1505
|
+
* glance.
|
|
1506
|
+
*/
|
|
1507
|
+
type ExtensionObjectProperty = Readonly<{
|
|
1508
|
+
type: "object";
|
|
1509
|
+
properties: Readonly<Record<string, ExtensionObjectFieldProperty>>;
|
|
1510
|
+
}> & ExtensionPropertyModifiers;
|
|
1511
|
+
/**
|
|
1512
|
+
* Property types allowed inside an `object`'s `properties` — leaf scalars
|
|
1513
|
+
* and arrays only. Nested objects are blocked here to enforce the
|
|
1514
|
+
* single-nesting-level rule.
|
|
1515
|
+
*/
|
|
1516
|
+
type ExtensionObjectFieldProperty = ExtensionStringProperty | ExtensionNumberProperty | ExtensionBooleanProperty | ExtensionEnumProperty | ExtensionArrayProperty;
|
|
1517
|
+
/**
|
|
1518
|
+
* Top-level property descriptor for a node or edge field.
|
|
1519
|
+
*
|
|
1520
|
+
* The discriminated union covers every type in the v1 subset; arbitrary
|
|
1521
|
+
* `unknown` inputs are validated against this set at
|
|
1522
|
+
* `defineGraphExtension(...)` time.
|
|
1523
|
+
*/
|
|
1524
|
+
type ExtensionPropertyType = ExtensionStringProperty | ExtensionNumberProperty | ExtensionBooleanProperty | ExtensionEnumProperty | ExtensionArrayProperty | ExtensionObjectProperty;
|
|
1525
|
+
/**
|
|
1526
|
+
* Document-side `where` clause for a unique constraint.
|
|
1527
|
+
*
|
|
1528
|
+
* Mirrors `serializeWherePredicate`'s capability — the only operations
|
|
1529
|
+
* round-trippable through the persisted form are `isNull` and `isNotNull`.
|
|
1530
|
+
* Anything richer (equality, `in`, etc.) is rejected at validation time.
|
|
1531
|
+
*/
|
|
1532
|
+
type ExtensionUniqueWhere = Readonly<{
|
|
1533
|
+
field: string;
|
|
1534
|
+
op: NullCheckOp;
|
|
1535
|
+
}>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Unique constraint declaration. `fields` must reference declared
|
|
1538
|
+
* properties on the kind. Defaults match the existing `UniqueConstraint`:
|
|
1539
|
+
* `scope: "kind"`, `collation: "binary"`.
|
|
1540
|
+
*/
|
|
1541
|
+
type ExtensionUniqueConstraint = Readonly<{
|
|
1542
|
+
name: string;
|
|
1543
|
+
fields: readonly string[];
|
|
1544
|
+
scope?: "kind" | "kindWithSubClasses";
|
|
1545
|
+
collation?: "binary" | "caseInsensitive";
|
|
1546
|
+
where?: ExtensionUniqueWhere;
|
|
1547
|
+
}>;
|
|
1548
|
+
/**
|
|
1549
|
+
* Graph-extension declaration of a node kind.
|
|
1550
|
+
*
|
|
1551
|
+
* Property names follow the same reserved-key rules as compile-time
|
|
1552
|
+
* `defineNode` (`id`, `kind`, `meta`, and the `$`-prefix accessor
|
|
1553
|
+
* namespace are forbidden). Annotation values must be JSON.
|
|
1554
|
+
*/
|
|
1555
|
+
type ExtensionNodeDef = Readonly<{
|
|
1556
|
+
description?: string;
|
|
1557
|
+
annotations?: KindAnnotations;
|
|
1558
|
+
properties: Readonly<Record<string, ExtensionPropertyType>>;
|
|
1559
|
+
unique?: readonly ExtensionUniqueConstraint[];
|
|
1560
|
+
}>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Graph-extension declaration of an edge kind.
|
|
1563
|
+
*
|
|
1564
|
+
* `from` / `to` reference node kind names — either kinds declared in this
|
|
1565
|
+
* same document or compile-time kinds the document is being merged into.
|
|
1566
|
+
* Endpoints that resolve to nothing within the document are flagged as
|
|
1567
|
+
* soft references at validation time but not rejected; the final
|
|
1568
|
+
* cross-graph check happens when the document is merged into a host
|
|
1569
|
+
* `GraphDef`.
|
|
1570
|
+
*/
|
|
1571
|
+
type ExtensionEdgeDef = Readonly<{
|
|
1572
|
+
description?: string;
|
|
1573
|
+
annotations?: KindAnnotations;
|
|
1574
|
+
from: readonly string[];
|
|
1575
|
+
to: readonly string[];
|
|
1576
|
+
properties?: Readonly<Record<string, ExtensionPropertyType>>;
|
|
1577
|
+
}>;
|
|
1578
|
+
/**
|
|
1579
|
+
* Document-level analogue of compile-time `defineNodeIndex` /
|
|
1580
|
+
* `defineEdgeIndex`. Mirrors `serializeWherePredicate`'s persistence-
|
|
1581
|
+
* round-trippable subset: only `isNull` / `isNotNull` predicates are
|
|
1582
|
+
* supported in v1, matching `ExtensionUniqueWhere`.
|
|
1583
|
+
*/
|
|
1584
|
+
type ExtensionIndexWhere = Readonly<{
|
|
1585
|
+
field: string;
|
|
1586
|
+
op: NullCheckOp;
|
|
1587
|
+
}>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Graph-extension-declared node index. `kind` references either a kind
|
|
1590
|
+
* declared in this same document or a compile-time host kind resolved
|
|
1591
|
+
* at merge time. `fields` and `coveringFields` are top-level property
|
|
1592
|
+
* names — JSON-pointer paths are not supported in v1, matching the
|
|
1593
|
+
* `ExtensionUniqueConstraint` v1 surface.
|
|
1594
|
+
*/
|
|
1595
|
+
type ExtensionNodeIndex = Readonly<{
|
|
1596
|
+
entity: "node";
|
|
1597
|
+
kind: string;
|
|
1598
|
+
name?: string;
|
|
1599
|
+
fields: readonly string[];
|
|
1600
|
+
coveringFields?: readonly string[];
|
|
1601
|
+
unique?: boolean;
|
|
1602
|
+
scope?: "graphAndKind" | "graph" | "none";
|
|
1603
|
+
where?: ExtensionIndexWhere;
|
|
1604
|
+
}>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Graph-extension-declared edge index. `direction` mirrors
|
|
1607
|
+
* `EdgeIndexDirection`; `kind` references a graph-extension or compile-time
|
|
1608
|
+
* edge kind.
|
|
1609
|
+
*/
|
|
1610
|
+
type ExtensionEdgeIndex = Readonly<{
|
|
1611
|
+
entity: "edge";
|
|
1612
|
+
kind: string;
|
|
1613
|
+
name?: string;
|
|
1614
|
+
direction?: "out" | "in" | "none";
|
|
1615
|
+
fields: readonly string[];
|
|
1616
|
+
coveringFields?: readonly string[];
|
|
1617
|
+
unique?: boolean;
|
|
1618
|
+
scope?: "graphAndKind" | "graph" | "none";
|
|
1619
|
+
where?: ExtensionIndexWhere;
|
|
1620
|
+
}>;
|
|
1621
|
+
type ExtensionIndex = ExtensionNodeIndex | ExtensionEdgeIndex;
|
|
1622
|
+
/**
|
|
1623
|
+
* Graph-extension ontology relation. `metaEdge` is one of the built-in
|
|
1624
|
+
* meta-edge names (subClassOf, broader, disjointWith, etc.).
|
|
1625
|
+
*
|
|
1626
|
+
* `from` / `to` are either node-kind names declared in this document or
|
|
1627
|
+
* external IRI strings. The pure-value document does not distinguish the
|
|
1628
|
+
* two — the compiler treats endpoints that match a declared kind as
|
|
1629
|
+
* `NodeType` references and falls back to passing the raw string for
|
|
1630
|
+
* IRIs (matching the existing `OntologyRelation` shape, where
|
|
1631
|
+
* `from`/`to` are `NodeType | EdgeType | string`).
|
|
1632
|
+
*/
|
|
1633
|
+
type ExtensionOntologyRelation = Readonly<{
|
|
1634
|
+
metaEdge: MetaEdgeName;
|
|
1635
|
+
from: string;
|
|
1636
|
+
to: string;
|
|
1637
|
+
}>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Stable default major used when a stored document omits `version`.
|
|
1640
|
+
*
|
|
1641
|
+
* Pinned to `1` permanently. Pre-versioning documents (those persisted
|
|
1642
|
+
* before the field existed) and documents that explicitly omit
|
|
1643
|
+
* `version` are interpreted as `1` regardless of which major the
|
|
1644
|
+
* library currently supports. Splitting this from
|
|
1645
|
+
* `CURRENT_GRAPH_EXTENSION_VERSION` is load-bearing for future major
|
|
1646
|
+
* bumps: when v2 ships, `CURRENT` becomes `2` but `LEGACY` stays at
|
|
1647
|
+
* `1`, so a v1-era stored document still parses as v1 (and the
|
|
1648
|
+
* version-mismatch path can route it through a migration) rather than
|
|
1649
|
+
* being silently misinterpreted as v2.
|
|
1650
|
+
*/
|
|
1651
|
+
declare const LEGACY_GRAPH_EXTENSION_VERSION: 1;
|
|
1652
|
+
/**
|
|
1653
|
+
* Current major version of the `GraphExtension` format.
|
|
1654
|
+
*
|
|
1655
|
+
* Documents with a higher major version than this constant are
|
|
1656
|
+
* rejected with `GRAPH_EXTENSION_VERSION_UNSUPPORTED` — there is no
|
|
1657
|
+
* automatic downgrade path. Minor / additive changes ride forward-
|
|
1658
|
+
* compat via `.loose()` on every nested object schema.
|
|
1659
|
+
*/
|
|
1660
|
+
declare const CURRENT_GRAPH_EXTENSION_VERSION: 1;
|
|
1661
|
+
/**
|
|
1662
|
+
* Type of the `GraphExtension.version` field. Stays `number`
|
|
1663
|
+
* rather than `typeof CURRENT_GRAPH_EXTENSION_VERSION` because the
|
|
1664
|
+
* field can carry any major across the library version range a
|
|
1665
|
+
* stored document might have been written by — the
|
|
1666
|
+
* document-vs-supported check happens in the validator, not at the
|
|
1667
|
+
* type level. Pinning to the current literal would prevent a v1
|
|
1668
|
+
* v1 library from typing a v2 document at all, which is the wrong
|
|
1669
|
+
* relationship: we WANT a v1 library to receive v2 documents and
|
|
1670
|
+
* report `GRAPH_EXTENSION_VERSION_UNSUPPORTED` cleanly.
|
|
1671
|
+
*/
|
|
1672
|
+
type GraphExtensionVersion = number;
|
|
1673
|
+
/**
|
|
1674
|
+
* The canonical pure-value graph-extension document.
|
|
1675
|
+
*
|
|
1676
|
+
* Frozen at construction. Round-trips losslessly through `JSON.stringify`
|
|
1677
|
+
* / `JSON.parse`; the `GraphExtension → CompiledExtension` direction
|
|
1678
|
+
* is provided by `compileGraphExtension(...)`. There is no
|
|
1679
|
+
* `Zod → GraphExtension` direction because graph-extension kinds always
|
|
1680
|
+
* originate as documents.
|
|
1681
|
+
*
|
|
1682
|
+
* `version` is the major-version tag for the document format. The
|
|
1683
|
+
* compiler accepts documents whose version is equal to the current
|
|
1684
|
+
* supported major (today: 1) or absent (the canonical persisted form
|
|
1685
|
+
* omits `version` when it equals the legacy default — see
|
|
1686
|
+
* `serializer.ts` — so the round-trip default is "absent means legacy
|
|
1687
|
+
* major"). Higher majors surface as
|
|
1688
|
+
* `GRAPH_EXTENSION_VERSION_UNSUPPORTED` so a newer-version extension
|
|
1689
|
+
* committed by a future writer can't be silently misread by an older
|
|
1690
|
+
* runtime. See `graph-extensions.md` for the format-versioning policy.
|
|
1691
|
+
*/
|
|
1692
|
+
type GraphExtension = Readonly<{
|
|
1693
|
+
version?: GraphExtensionVersion;
|
|
1694
|
+
nodes?: Readonly<Record<string, ExtensionNodeDef>>;
|
|
1695
|
+
edges?: Readonly<Record<string, ExtensionEdgeDef>>;
|
|
1696
|
+
ontology?: readonly ExtensionOntologyRelation[];
|
|
1697
|
+
/**
|
|
1698
|
+
* Graph-extension-declared relational indexes. Each entry references a
|
|
1699
|
+
* node or edge kind by name — either declared in this document or
|
|
1700
|
+
* a compile-time host kind that the document is being merged into.
|
|
1701
|
+
* Vector indexes auto-derive from `embedding()` modifiers on
|
|
1702
|
+
* graph-extension kinds; this slot is for explicit relational indexes
|
|
1703
|
+
* (analogue of compile-time `defineGraph({ indexes: [...] })`).
|
|
1704
|
+
*/
|
|
1705
|
+
indexes?: readonly ExtensionIndex[];
|
|
1706
|
+
}>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Top-level v1 slots a `GraphExtension` document may carry. Single
|
|
1709
|
+
* source of truth for both the strict-authoring validator (typo rejection
|
|
1710
|
+
* via `defineGraphExtension`) and the persistence Zod schema (which
|
|
1711
|
+
* leaves the field set loose for forward compatibility but uses this
|
|
1712
|
+
* list to drive the Zod object shape).
|
|
1713
|
+
*/
|
|
1714
|
+
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
1715
|
+
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
1716
|
+
|
|
1150
1717
|
/** Brand key for MetaEdge */
|
|
1151
1718
|
declare const META_EDGE_BRAND: "__metaEdge";
|
|
1152
1719
|
/**
|
|
@@ -3850,4 +4417,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
3850
4417
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
3851
4418
|
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";
|
|
3852
4419
|
|
|
3853
|
-
export { type
|
|
4420
|
+
export { type AggregateExpr as $, type AdapterBackend as A, type BackendCapabilities as B, type IndexEntity as C, type DeleteBehavior as D, type EdgeRegistration as E, type FulltextStrategy as F, type GraphExtension as G, type SerializedMetaEdge as H, type IndexDeclaration as I, type JsonPointer as J, type KindEntity as K, type SerializedOntologyRelation as L, type SerializedClosures as M, type NodeRegistration as N, type OntologyRelation as O, type SchemaHash as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqlDialect as S, type TemporalMode as T, type NullCheckOp as U, type VectorStrategy as V, type JsonSchema as W, type SerializedOntology as X, type SerializedUniqueConstraint as Y, type InferenceType as Z, type EdgeType as _, type NodeType as a, type RawStatementExecutionBackend as a$, type FieldRef as a0, type ComparisonOp as a1, type AggregateComparisonPredicate as a2, type TraversalDirection as a3, type AdapterBackendTransactions as a4, type BackendIdentity as a5, type BackendLifecycle as a6, type BackendMaintenance as a7, type BackendTransactions as a8, CURRENT_GRAPH_EXTENSION_VERSION as a9, type GraphEntityReadBackend as aA, type GraphEntityWriteBackend as aB, type GraphExtensionVersion as aC, type GraphLifecycleBackend as aD, type HybridFusionOptions as aE, type IndexMaterializationBackend as aF, type IntentSql as aG, type JsonPointerFor as aH, type JsonPointerInput as aI, type JsonPointerSegment as aJ, type JsonPointerSegments as aK, type JsonPointerSegmentsFor as aL, type JsonValue as aM, type KindAnnotations as aN, LEGACY_GRAPH_EXTENSION_VERSION as aO, MAX_JSON_POINTER_DEPTH as aP, type MetaEdge as aQ, type MetaEdgeProperties as aR, type NodeEntityReadBackend as aS, type NodeEntityWriteBackend as aT, type NodeId as aU, type NodeProps as aV, type OrderSpec as aW, type ParameterRef as aX, Placeholder as aY, type QueryExecutionBackend as aZ, type RawQueryExecutionBackend as a_, type Cardinality as aa, type Collation as ab, type CommitSchemaVersionExpected as ac, type CommitSchemaVersionParams as ad, type CompiledRowsSql as ae, type CompiledSelectSql as af, type CompiledStatementSql as ag, type ContributionMaterializationBackend as ah, DEFAULT_SQL_SCHEMA as ai, type DeleteFulltextBatchParams as aj, type EdgeEntityReadBackend as ak, type EdgeEntityWriteBackend as al, type EdgeId as am, type EdgeProps as an, type EdgeTypeWithEndpoints as ao, type EndpointExistence as ap, type ExternalRecordedReadSource as aq, type FilteredApproximateSearch as ar, type FilteredApproximateSearchMode as as, type FulltextBatchRow as at, type FulltextCapabilities as au, type FulltextOperationBackend as av, type FulltextQueryMode as aw, type FulltextSearchParams as ax, type FulltextSearchResult as ay, type GraphAnalyticsCapabilities as az, type AnyEdgeType as b, type VectorMetricType as b$, type RecordedRelationOptions as b0, type RemovalMaterializationBackend as b1, type RenderedSql as b2, type ResolveJsonPointer as b3, type ResolveJsonPointerSegments as b4, type ResolvedSqlTableNames as b5, type RowProps as b6, type SchemaCommitBackend as b7, type SchemaReadBackend as b8, type SetActiveVersionParams as b9, buildVectorCapabilities as bA, createSqlSchema as bB, fts5Strategy as bC, isEdgeType as bD, isEdgeTypeWithEndpoints as bE, isMetaEdge as bF, isNodeType as bG, isSqlFragment as bH, joinJsonPointers as bI, jsonPointer as bJ, normalizeJsonPointer as bK, parseJsonPointer as bL, recordedRelation as bM, renderPostgres as bN, renderSql as bO, renderSqlInline as bP, renderSqlite as bQ, rowPropsToJsonText as bR, rowPropsToObject as bS, sql as bT, tsvectorStrategy as bU, type ExtensionNodeDef as bV, type ExtensionEdgeDef as bW, type ExtensionOntologyRelation as bX, type ExtensionIndex as bY, type ValueType as bZ, type PredicateExpression as b_, type SortDirection as ba, type SqlChunk as bb, type SqlFragment as bc, type SqlIdentifierChunk as bd, type SqlIntent as be, type SqlParameterChunk as bf, type SqlPlaceholderChunk as bg, SqlSchema as bh, type SqlTableNames as bi, type SqlTag as bj, type SqlTextChunk as bk, type StrategyTableContribution as bl, type TableContribution as bm, type TransactionBackend as bn, type TransactionOptions as bo, type TransactionReadBackend as bp, type TraversalExpansion as bq, type TrustedImportSession as br, type UniqueConstraint as bs, type UniqueConstraintBackend as bt, type UniquenessScope as bu, type UpsertFulltextBatchParams as bv, type VectorCapabilities as bw, type VectorOperationBackend as bx, asEdgeId as by, asNodeId as bz, type GraphDefaults as c, type FindNodesByKindParams as c$, type Traversal as c0, type NodePredicate as c1, type ProjectedField as c2, type AggregateOrderSpec as c3, type GroupBySpec as c4, type RecursiveCyclePolicy as c5, type NodeRow as c6, type EdgeRow as c7, type VectorSlotMap as c8, type RecordedReadBinding as c9, type DialectAdapter as cA, type DialectCapabilities as cB, type DialectRecursiveQueryStrategy as cC, type DialectStandardQueryStrategy as cD, type DialectVectorPredicateStrategy as cE, type DropVectorIndexParams as cF, type EdgeExistsBetweenParams as cG, type ExtensionArrayItemType as cH, type ExtensionArrayProperty as cI, type ExtensionBooleanProperty as cJ, type ExtensionEdgeIndex as cK, type ExtensionEmbeddingModifier as cL, type ExtensionEnumProperty as cM, type ExtensionIndexWhere as cN, type ExtensionNodeIndex as cO, type ExtensionNumberProperty as cP, type ExtensionObjectFieldProperty as cQ, type ExtensionObjectProperty as cR, type ExtensionPropertyModifiers as cS, type ExtensionPropertyType as cT, type ExtensionSearchableModifier as cU, type ExtensionStringProperty as cV, type ExtensionUniqueConstraint as cW, type ExtensionUniqueWhere as cX, FULLTEXT_CONTRIBUTION_NAME as cY, type FindEdgesByKindParams as cZ, type FindEdgesConnectedToParams as c_, type SelectiveField as ca, type ComposableQuery as cb, type SetOperationType as cc, type SetOperation as cd, type VectorMetric as ce, ALL_FULLTEXT_MODES as cf, ALL_META_EDGE_NAMES as cg, BASE_CONTRIBUTION_OWNER as ch, type CheckUniqueBatchParams as ci, type CheckUniqueParams as cj, type ClaimIndexMaterializationParams as ck, type CompiledTemporaryStatementSql as cl, type ContributionMaterializationIdentity as cm, type ContributionMaterializationRow as cn, type CountEdgesByKindParams as co, type CountEdgesFromParams as cp, type CountNodesByKindParams as cq, type CreateVectorIndexParams as cr, D1_MAX_BIND_PARAMETERS as cs, DURABLE_OBJECT_MAX_BIND_PARAMETERS as ct, type DeleteEdgeParams as cu, type DeleteEdgesBatchParams as cv, type DeleteEmbeddingParams as cw, type DeleteFulltextParams as cx, type DeleteNodeParams as cy, type DeleteUniqueParams as cz, type EdgeIndexDeclaration as d, type GraphReadBackend as d0, type HardDeleteEdgeParams as d1, type HardDeleteNodeParams as d2, type HybridSearchParams as d3, type HybridSearchRow as d4, type IndexDeclarationBase as d5, type IndexMaterializationRow as d6, type IndexWhereLiteral as d7, type IndexWhereOp as d8, type IndexWhereOperand as d9, type UpsertFulltextParams as dA, VECTOR_CONTRIBUTION_PREFIX as dB, type VectorIndexType as dC, type VectorSearchParams as dD, type VectorSearchResult as dE, assertFiniteEmbedding as dF, assertVectorMinScore as dG, assertVectorSearchLimit as dH, buildFulltextCapabilities as dI, isLiveNodeRow as dJ, isSqlPlaceholder as dK, isTombstonedNodeRow as dL, normalizeGraphAnalyticsCapabilities as dM, quoteIdentifier as dN, shortHash as dO, vectorMinScoreCondition as dP, vectorPhysicalName as dQ, vectorScoreExpression as dR, GRAPH_EXTENSION_TOP_LEVEL_KEYS as dS, type GraphExtensionTopLevelKey as dT, type InsertEdgeParams as da, type InsertNodeParams as db, type InsertSchemaParams as dc, type InsertUniqueParams as dd, type KindRemovalRow as de, type LiveNodeRow as df, MODERN_SQLITE_MAX_BIND_PARAMETERS as dg, type MetaEdgeName as dh, POSTGRES_CAPABILITIES as di, POSTGRES_MAX_BIND_PARAMETERS as dj, type RecordContributionMaterializationParams as dk, type RecordIndexMaterializationParams as dl, type RecordKindRemovalParams as dm, type RelationalIndexMethod as dn, type ReleaseIndexMaterializationClaimParams as dp, SQLITE_CAPABILITIES as dq, SQLITE_MAX_BIND_PARAMETERS as dr, type SqlCompilationBackend as ds, type TombstonedNodeRow as dt, type UniqueRow as du, type UpdateEdgeParams as dv, type UpdateNodeParams as dw, type UpsertEmbeddingBatchParams as dx, type UpsertEmbeddingBatchRow as dy, type UpsertEmbeddingParams as dz, type NodeIndexDeclaration as e, type EdgeIndexConfig as f, type EdgeIndexDirection as g, type EdgeIndexWhereBuilder as h, type IndexOrigin as i, type IndexScope as j, type IndexWhereExpression as k, type IndexWhereFieldBuilder as l, type IndexWhereInput as m, type NodeIndexConfig as n, type NodeIndexWhereBuilder as o, type SystemColumnName as p, type VectorIndexDeclaration as q, type VectorIndexImplementation as r, type VectorIndexMetric as s, type VectorIndexParams as t, type VectorSlot as u, type SchemaVersionRow as v, type GraphBackend as w, type SerializedSchema as x, type SerializedNodeDef as y, type SerializedEdgeDef as z };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './types-D-vOo_pM.js';
|
|
1
|
+
import { b as AnyEdgeType, f as EdgeIndexConfig, d as EdgeIndexDeclaration, a as NodeType, n as NodeIndexConfig, e as NodeIndexDeclaration, k as IndexWhereExpression } from './types-Dh-EgT-w.js';
|
|
3
2
|
|
|
4
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
5
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './types-ho4DJJb_.cjs';
|
|
1
|
+
import { b as AnyEdgeType, f as EdgeIndexConfig, d as EdgeIndexDeclaration, a as NodeType, n as NodeIndexConfig, e as NodeIndexDeclaration, k as IndexWhereExpression } from './types-Dh-EgT-w.cjs';
|
|
3
2
|
|
|
4
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
5
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
package/package.json
CHANGED
package/dist/chunk-5YBDB7UG.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkYX3H63VV_cjs = require('./chunk-YX3H63VV.cjs');
|
|
4
|
-
|
|
5
|
-
// src/query/dialect/vector/pagination.ts
|
|
6
|
-
function vectorPageClause(limit, offset) {
|
|
7
|
-
return offset === void 0 || offset === 0 ? chunkYX3H63VV_cjs.sql`LIMIT ${limit}` : chunkYX3H63VV_cjs.sql`LIMIT ${limit} OFFSET ${offset}`;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
exports.vectorPageClause = vectorPageClause;
|
|
11
|
-
//# sourceMappingURL=chunk-5YBDB7UG.cjs.map
|
|
12
|
-
//# sourceMappingURL=chunk-5YBDB7UG.cjs.map
|