@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.
Files changed (265) hide show
  1. package/dist/backend/drizzle/indexes.cjs +9 -9
  2. package/dist/backend/drizzle/indexes.d.cts +1 -2
  3. package/dist/backend/drizzle/indexes.d.ts +1 -2
  4. package/dist/backend/drizzle/indexes.js +5 -5
  5. package/dist/backend/index.cjs +50 -50
  6. package/dist/backend/index.d.cts +3 -4
  7. package/dist/backend/index.d.ts +3 -4
  8. package/dist/backend/index.js +11 -11
  9. package/dist/backend/postgres/index.cjs +26 -26
  10. package/dist/backend/postgres/index.d.cts +5 -6
  11. package/dist/backend/postgres/index.d.ts +5 -6
  12. package/dist/backend/postgres/index.js +13 -13
  13. package/dist/backend/postgres/pglite-store.cjs +34 -34
  14. package/dist/backend/postgres/pglite-store.d.cts +7 -8
  15. package/dist/backend/postgres/pglite-store.d.ts +7 -8
  16. package/dist/backend/postgres/pglite-store.js +30 -30
  17. package/dist/backend/postgres/pglite.cjs +15 -15
  18. package/dist/backend/postgres/pglite.d.cts +2 -3
  19. package/dist/backend/postgres/pglite.d.ts +2 -3
  20. package/dist/backend/postgres/pglite.js +14 -14
  21. package/dist/backend/sqlite/index.cjs +23 -23
  22. package/dist/backend/sqlite/index.d.cts +5 -6
  23. package/dist/backend/sqlite/index.d.ts +5 -6
  24. package/dist/backend/sqlite/index.js +11 -11
  25. package/dist/backend/sqlite/libsql.cjs +17 -17
  26. package/dist/backend/sqlite/libsql.d.cts +2 -3
  27. package/dist/backend/sqlite/libsql.d.ts +2 -3
  28. package/dist/backend/sqlite/libsql.js +13 -13
  29. package/dist/backend/sqlite/local-store.cjs +35 -35
  30. package/dist/backend/sqlite/local-store.d.cts +7 -8
  31. package/dist/backend/sqlite/local-store.d.ts +7 -8
  32. package/dist/backend/sqlite/local-store.js +31 -31
  33. package/dist/backend/sqlite/local.cjs +16 -16
  34. package/dist/backend/sqlite/local.d.cts +2 -3
  35. package/dist/backend/sqlite/local.d.ts +2 -3
  36. package/dist/backend/sqlite/local.js +14 -14
  37. package/dist/{chunk-LOKG3KQV.cjs → chunk-277UZV7X.cjs} +1113 -1089
  38. package/dist/chunk-277UZV7X.cjs.map +1 -0
  39. package/dist/{chunk-2I3DNNBU.js → chunk-2G6ZEGYO.js} +4 -4
  40. package/dist/{chunk-2I3DNNBU.js.map → chunk-2G6ZEGYO.js.map} +1 -1
  41. package/dist/{chunk-76HE7DJP.js → chunk-2HKIID5K.js} +5 -5
  42. package/dist/{chunk-76HE7DJP.js.map → chunk-2HKIID5K.js.map} +1 -1
  43. package/dist/{chunk-QOHTVDHU.js → chunk-2OOY4OYT.js} +4 -4
  44. package/dist/{chunk-QOHTVDHU.js.map → chunk-2OOY4OYT.js.map} +1 -1
  45. package/dist/{chunk-UCHW2MGP.cjs → chunk-2SO5I5AI.cjs} +196 -196
  46. package/dist/{chunk-UCHW2MGP.cjs.map → chunk-2SO5I5AI.cjs.map} +1 -1
  47. package/dist/{chunk-LFFVD5ZR.cjs → chunk-33PAKPED.cjs} +41 -41
  48. package/dist/{chunk-LFFVD5ZR.cjs.map → chunk-33PAKPED.cjs.map} +1 -1
  49. package/dist/{chunk-QCKD3RCI.cjs → chunk-3RPQDGUE.cjs} +5 -5
  50. package/dist/{chunk-QCKD3RCI.cjs.map → chunk-3RPQDGUE.cjs.map} +1 -1
  51. package/dist/{chunk-PH4IJ3V5.js → chunk-3V6D5DEC.js} +3 -3
  52. package/dist/{chunk-PH4IJ3V5.js.map → chunk-3V6D5DEC.js.map} +1 -1
  53. package/dist/{chunk-Y5UC3IXF.js → chunk-42XYPKZU.js} +3 -3
  54. package/dist/{chunk-Y5UC3IXF.js.map → chunk-42XYPKZU.js.map} +1 -1
  55. package/dist/{chunk-XZA3Y4YH.js → chunk-4WYFRACU.js} +3 -3
  56. package/dist/{chunk-XZA3Y4YH.js.map → chunk-4WYFRACU.js.map} +1 -1
  57. package/dist/{chunk-AQVDAKXH.js → chunk-4XRP2N6B.js} +3 -3
  58. package/dist/{chunk-AQVDAKXH.js.map → chunk-4XRP2N6B.js.map} +1 -1
  59. package/dist/{chunk-PWXGB77L.cjs → chunk-5AERZSHC.cjs} +4 -4
  60. package/dist/{chunk-PWXGB77L.cjs.map → chunk-5AERZSHC.cjs.map} +1 -1
  61. package/dist/{chunk-K6CD6W5J.js → chunk-5C75HQYQ.js} +5 -5
  62. package/dist/{chunk-K6CD6W5J.js.map → chunk-5C75HQYQ.js.map} +1 -1
  63. package/dist/{chunk-2J5NMMVR.cjs → chunk-5GV4JQNA.cjs} +43 -43
  64. package/dist/{chunk-2J5NMMVR.cjs.map → chunk-5GV4JQNA.cjs.map} +1 -1
  65. package/dist/{chunk-KHNKYSGP.cjs → chunk-5P6IPIT6.cjs} +41 -41
  66. package/dist/{chunk-KHNKYSGP.cjs.map → chunk-5P6IPIT6.cjs.map} +1 -1
  67. package/dist/{chunk-M2RPZS7J.cjs → chunk-5Q3P6OIC.cjs} +12 -12
  68. package/dist/{chunk-M2RPZS7J.cjs.map → chunk-5Q3P6OIC.cjs.map} +1 -1
  69. package/dist/{chunk-QXKVUJLI.cjs → chunk-5ZPRE4CV.cjs} +206 -166
  70. package/dist/chunk-5ZPRE4CV.cjs.map +1 -0
  71. package/dist/{chunk-53BSOG3O.js → chunk-6NB73BXV.js} +11 -11
  72. package/dist/{chunk-53BSOG3O.js.map → chunk-6NB73BXV.js.map} +1 -1
  73. package/dist/{chunk-SE422RES.cjs → chunk-6TJ6PKPS.cjs} +27 -27
  74. package/dist/{chunk-SE422RES.cjs.map → chunk-6TJ6PKPS.cjs.map} +1 -1
  75. package/dist/{chunk-7WLEQIHA.cjs → chunk-7Y6BV3TK.cjs} +100 -100
  76. package/dist/{chunk-7WLEQIHA.cjs.map → chunk-7Y6BV3TK.cjs.map} +1 -1
  77. package/dist/{chunk-HP6LWBLB.cjs → chunk-AO2WPYFZ.cjs} +4 -4
  78. package/dist/{chunk-HP6LWBLB.cjs.map → chunk-AO2WPYFZ.cjs.map} +1 -1
  79. package/dist/{chunk-7UTUKH4E.cjs → chunk-AQR6BHB3.cjs} +10 -10
  80. package/dist/{chunk-7UTUKH4E.cjs.map → chunk-AQR6BHB3.cjs.map} +1 -1
  81. package/dist/{chunk-X4PVHAZ6.cjs → chunk-ARN3ZODS.cjs} +6 -6
  82. package/dist/{chunk-X4PVHAZ6.cjs.map → chunk-ARN3ZODS.cjs.map} +1 -1
  83. package/dist/{chunk-YYLMXERH.js → chunk-CDYRPI5U.js} +4 -4
  84. package/dist/{chunk-YYLMXERH.js.map → chunk-CDYRPI5U.js.map} +1 -1
  85. package/dist/{chunk-3LKL3S6X.js → chunk-CI5NPLXX.js} +3 -3
  86. package/dist/{chunk-3LKL3S6X.js.map → chunk-CI5NPLXX.js.map} +1 -1
  87. package/dist/{chunk-UUIBACKJ.js → chunk-CUPJL6TS.js} +3 -3
  88. package/dist/{chunk-UUIBACKJ.js.map → chunk-CUPJL6TS.js.map} +1 -1
  89. package/dist/{chunk-JZYMOHHM.cjs → chunk-CVK4T34X.cjs} +22 -22
  90. package/dist/{chunk-JZYMOHHM.cjs.map → chunk-CVK4T34X.cjs.map} +1 -1
  91. package/dist/{chunk-L3DDZUZP.js → chunk-CVNGKTHO.js} +4 -4
  92. package/dist/{chunk-L3DDZUZP.js.map → chunk-CVNGKTHO.js.map} +1 -1
  93. package/dist/{chunk-RW24SAHI.cjs → chunk-DMZEVJGL.cjs} +13 -13
  94. package/dist/{chunk-RW24SAHI.cjs.map → chunk-DMZEVJGL.cjs.map} +1 -1
  95. package/dist/{chunk-MQBF3XGY.js → chunk-DP7KC6CL.js} +47 -23
  96. package/dist/chunk-DP7KC6CL.js.map +1 -0
  97. package/dist/{chunk-QYDUCWD2.cjs → chunk-ECU53PMN.cjs} +4 -4
  98. package/dist/{chunk-QYDUCWD2.cjs.map → chunk-ECU53PMN.cjs.map} +1 -1
  99. package/dist/{chunk-SCTZRFW5.js → chunk-EQOQOT55.js} +5 -5
  100. package/dist/{chunk-SCTZRFW5.js.map → chunk-EQOQOT55.js.map} +1 -1
  101. package/dist/{chunk-JHK6NPFV.js → chunk-EVFL2ZY5.js} +9 -9
  102. package/dist/{chunk-JHK6NPFV.js.map → chunk-EVFL2ZY5.js.map} +1 -1
  103. package/dist/{chunk-SAMJLDGG.cjs → chunk-F2KVJ6FF.cjs} +112 -112
  104. package/dist/{chunk-SAMJLDGG.cjs.map → chunk-F2KVJ6FF.cjs.map} +1 -1
  105. package/dist/{chunk-NMQ6C6TS.cjs → chunk-F7TDKSVB.cjs} +4 -4
  106. package/dist/{chunk-NMQ6C6TS.cjs.map → chunk-F7TDKSVB.cjs.map} +1 -1
  107. package/dist/{chunk-HQRZEYYB.cjs → chunk-FFQGI67R.cjs} +44 -44
  108. package/dist/{chunk-HQRZEYYB.cjs.map → chunk-FFQGI67R.cjs.map} +1 -1
  109. package/dist/{chunk-YIRLBUNN.js → chunk-FMPZPOUD.js} +3 -3
  110. package/dist/{chunk-YIRLBUNN.js.map → chunk-FMPZPOUD.js.map} +1 -1
  111. package/dist/{chunk-LL5D5T5W.cjs → chunk-FSCJOTHF.cjs} +10 -10
  112. package/dist/{chunk-LL5D5T5W.cjs.map → chunk-FSCJOTHF.cjs.map} +1 -1
  113. package/dist/{chunk-2X73QTIC.cjs → chunk-FY4VY5EV.cjs} +20 -20
  114. package/dist/{chunk-2X73QTIC.cjs.map → chunk-FY4VY5EV.cjs.map} +1 -1
  115. package/dist/{chunk-3SHAUJRB.js → chunk-GT7NEXSU.js} +3 -3
  116. package/dist/{chunk-3SHAUJRB.js.map → chunk-GT7NEXSU.js.map} +1 -1
  117. package/dist/{chunk-W66YCXWT.js → chunk-HHBKGPEI.js} +11 -10
  118. package/dist/chunk-HHBKGPEI.js.map +1 -0
  119. package/dist/{chunk-CKFBZ4LV.cjs → chunk-I73ATSAH.cjs} +4 -4
  120. package/dist/{chunk-CKFBZ4LV.cjs.map → chunk-I73ATSAH.cjs.map} +1 -1
  121. package/dist/{chunk-ELA3V6UN.js → chunk-JOYPNY33.js} +9 -9
  122. package/dist/{chunk-ELA3V6UN.js.map → chunk-JOYPNY33.js.map} +1 -1
  123. package/dist/{chunk-YIX3BEBR.cjs → chunk-K2HHCWZO.cjs} +108 -108
  124. package/dist/{chunk-YIX3BEBR.cjs.map → chunk-K2HHCWZO.cjs.map} +1 -1
  125. package/dist/{chunk-SAFZ6JTI.cjs → chunk-KTBTSHU6.cjs} +19 -2
  126. package/dist/chunk-KTBTSHU6.cjs.map +1 -0
  127. package/dist/{chunk-KOI7UEI5.js → chunk-LDCWO5B6.js} +3 -3
  128. package/dist/{chunk-KOI7UEI5.js.map → chunk-LDCWO5B6.js.map} +1 -1
  129. package/dist/{chunk-I5CRUPKO.js → chunk-LQLVJWUH.js} +7 -7
  130. package/dist/{chunk-I5CRUPKO.js.map → chunk-LQLVJWUH.js.map} +1 -1
  131. package/dist/{chunk-6N7QBIWN.js → chunk-M4GYQF2H.js} +3 -3
  132. package/dist/{chunk-6N7QBIWN.js.map → chunk-M4GYQF2H.js.map} +1 -1
  133. package/dist/{chunk-ZE7E46IZ.js → chunk-NXIZL7ZZ.js} +6 -6
  134. package/dist/{chunk-ZE7E46IZ.js.map → chunk-NXIZL7ZZ.js.map} +1 -1
  135. package/dist/{chunk-XRU7V7FF.cjs → chunk-O2GZM7UK.cjs} +7 -7
  136. package/dist/{chunk-XRU7V7FF.cjs.map → chunk-O2GZM7UK.cjs.map} +1 -1
  137. package/dist/{chunk-ZE6NVENI.js → chunk-O3USVVWS.js} +3 -3
  138. package/dist/{chunk-ZE6NVENI.js.map → chunk-O3USVVWS.js.map} +1 -1
  139. package/dist/{chunk-UDS5DZNY.cjs → chunk-O7XVCLXW.cjs} +68 -67
  140. package/dist/chunk-O7XVCLXW.cjs.map +1 -0
  141. package/dist/{chunk-KLR77R5A.cjs → chunk-OM6RIOA5.cjs} +13 -13
  142. package/dist/{chunk-KLR77R5A.cjs.map → chunk-OM6RIOA5.cjs.map} +1 -1
  143. package/dist/{chunk-LLHMAHG4.cjs → chunk-OMQ2NBOR.cjs} +27 -27
  144. package/dist/{chunk-LLHMAHG4.cjs.map → chunk-OMQ2NBOR.cjs.map} +1 -1
  145. package/dist/{chunk-DPNA466P.js → chunk-OYJSYDIH.js} +19 -3
  146. package/dist/chunk-OYJSYDIH.js.map +1 -0
  147. package/dist/{chunk-V3S74J44.js → chunk-RAWG2FEU.js} +134 -22
  148. package/dist/chunk-RAWG2FEU.js.map +1 -0
  149. package/dist/{chunk-TAUGGLNQ.js → chunk-RXOAXO3R.js} +3 -3
  150. package/dist/{chunk-TAUGGLNQ.js.map → chunk-RXOAXO3R.js.map} +1 -1
  151. package/dist/{chunk-LLE25NRD.cjs → chunk-TRC646QQ.cjs} +7 -7
  152. package/dist/{chunk-LLE25NRD.cjs.map → chunk-TRC646QQ.cjs.map} +1 -1
  153. package/dist/chunk-U3YRCZ5L.cjs +12 -0
  154. package/dist/{chunk-IMQKXL4E.cjs.map → chunk-U3YRCZ5L.cjs.map} +1 -1
  155. package/dist/{chunk-ZVME6OSV.js → chunk-UJRWOV5B.js} +5 -5
  156. package/dist/{chunk-ZVME6OSV.js.map → chunk-UJRWOV5B.js.map} +1 -1
  157. package/dist/{chunk-HAQVISUF.cjs → chunk-UTTW2Q3M.cjs} +133 -133
  158. package/dist/{chunk-HAQVISUF.cjs.map → chunk-UTTW2Q3M.cjs.map} +1 -1
  159. package/dist/{chunk-L5ET7FYQ.js → chunk-UZLEQFTV.js} +3 -3
  160. package/dist/{chunk-L5ET7FYQ.js.map → chunk-UZLEQFTV.js.map} +1 -1
  161. package/dist/{chunk-JP5EICR6.cjs → chunk-V2GZBPY2.cjs} +179 -65
  162. package/dist/chunk-V2GZBPY2.cjs.map +1 -0
  163. package/dist/{chunk-BUZWMDNL.js → chunk-VC26BUNP.js} +5 -5
  164. package/dist/{chunk-BUZWMDNL.js.map → chunk-VC26BUNP.js.map} +1 -1
  165. package/dist/chunk-VGMNGWBR.cjs +12 -0
  166. package/dist/{chunk-5YBDB7UG.cjs.map → chunk-VGMNGWBR.cjs.map} +1 -1
  167. package/dist/{chunk-XMEYZYGE.js → chunk-WYQILW5V.js} +8 -8
  168. package/dist/{chunk-XMEYZYGE.js.map → chunk-WYQILW5V.js.map} +1 -1
  169. package/dist/{chunk-YX3H63VV.cjs → chunk-X2XOQZT3.cjs} +9 -9
  170. package/dist/{chunk-YX3H63VV.cjs.map → chunk-X2XOQZT3.cjs.map} +1 -1
  171. package/dist/{chunk-N2V3HJFV.cjs → chunk-XDMPDUKL.cjs} +9 -9
  172. package/dist/{chunk-N2V3HJFV.cjs.map → chunk-XDMPDUKL.cjs.map} +1 -1
  173. package/dist/{chunk-EFZ4S22A.js → chunk-YPVQYM3L.js} +107 -67
  174. package/dist/chunk-YPVQYM3L.js.map +1 -0
  175. package/dist/{chunk-5J4VNCUD.js → chunk-Z3WIL6S3.js} +5 -5
  176. package/dist/{chunk-5J4VNCUD.js.map → chunk-Z3WIL6S3.js.map} +1 -1
  177. package/dist/{chunk-MNURF4RF.cjs → chunk-ZBV4LQD2.cjs} +4 -4
  178. package/dist/{chunk-MNURF4RF.cjs.map → chunk-ZBV4LQD2.cjs.map} +1 -1
  179. package/dist/{chunk-YGX4PMG6.js → chunk-ZGOUVMVS.js} +5 -5
  180. package/dist/{chunk-YGX4PMG6.js.map → chunk-ZGOUVMVS.js.map} +1 -1
  181. package/dist/{chunk-QZYGZVUI.js → chunk-ZIRC2U6G.js} +11 -11
  182. package/dist/{chunk-QZYGZVUI.js.map → chunk-ZIRC2U6G.js.map} +1 -1
  183. package/dist/{chunk-6QP4QXBR.js → chunk-ZOHCFYXE.js} +3 -3
  184. package/dist/{chunk-6QP4QXBR.js.map → chunk-ZOHCFYXE.js.map} +1 -1
  185. package/dist/{chunk-VWEFXG73.js → chunk-ZP2KPDNN.js} +3 -3
  186. package/dist/{chunk-VWEFXG73.js.map → chunk-ZP2KPDNN.js.map} +1 -1
  187. package/dist/{chunk-NT6ILURI.cjs → chunk-ZPCKPLMX.cjs} +8 -8
  188. package/dist/{chunk-NT6ILURI.cjs.map → chunk-ZPCKPLMX.cjs.map} +1 -1
  189. package/dist/core/index.cjs +28 -28
  190. package/dist/core/index.d.cts +5 -6
  191. package/dist/core/index.d.ts +5 -6
  192. package/dist/core/index.js +8 -8
  193. package/dist/{ddl-BCXFRLWg.d.cts → ddl-3unqC-kg.d.cts} +3 -3
  194. package/dist/{ddl-ByLmGgn9.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
  195. package/dist/{define-graph-BSviZubs.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
  196. package/dist/{define-graph-XyJheaFm.d.cts → define-graph-DBFnc7u_.d.ts} +1 -2
  197. package/dist/graph-extension/index.cjs +20 -20
  198. package/dist/graph-extension/index.d.cts +4 -4
  199. package/dist/graph-extension/index.d.ts +4 -4
  200. package/dist/graph-extension/index.js +5 -5
  201. package/dist/graph-merge/index.cjs +105 -105
  202. package/dist/graph-merge/index.d.cts +8 -9
  203. package/dist/graph-merge/index.d.ts +8 -9
  204. package/dist/graph-merge/index.js +25 -25
  205. package/dist/{index-BD_3TCgh.d.ts → index-DHXw7QAl.d.cts} +19 -4
  206. package/dist/{index-BihFPsPu.d.cts → index-DQzVJBHa.d.ts} +19 -4
  207. package/dist/index.cjs +206 -202
  208. package/dist/index.d.cts +13 -15
  209. package/dist/index.d.ts +13 -15
  210. package/dist/index.js +35 -35
  211. package/dist/indexes/index.cjs +13 -13
  212. package/dist/indexes/index.d.cts +4 -5
  213. package/dist/indexes/index.d.ts +4 -5
  214. package/dist/indexes/index.js +6 -6
  215. package/dist/interchange/index.cjs +40 -40
  216. package/dist/interchange/index.d.cts +9 -10
  217. package/dist/interchange/index.d.ts +9 -10
  218. package/dist/interchange/index.js +14 -14
  219. package/dist/{manager-C7iC5bk_.d.ts → manager-Dl0-er1G.d.ts} +21 -156
  220. package/dist/{manager-Dm6MCYO7.d.cts → manager-U9_zopqr.d.cts} +21 -156
  221. package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
  222. package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
  223. package/dist/{postgres-DZxwzCQ8.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
  224. package/dist/{postgres-Cb6ceh4-.d.ts → postgres-DpJqtbSX.d.cts} +1 -1
  225. package/dist/profiler/index.d.cts +9 -10
  226. package/dist/profiler/index.d.ts +9 -10
  227. package/dist/provenance/index.cjs +39 -39
  228. package/dist/provenance/index.d.cts +7 -8
  229. package/dist/provenance/index.d.ts +7 -8
  230. package/dist/provenance/index.js +9 -9
  231. package/dist/schema/index.cjs +48 -39
  232. package/dist/schema/index.d.cts +7 -8
  233. package/dist/schema/index.d.ts +7 -8
  234. package/dist/schema/index.js +15 -14
  235. package/dist/{searchable-aUaKh3_r.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
  236. package/dist/{searchable-Cet4Oztt.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
  237. package/dist/{sqlite-Cb3Ilj9_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
  238. package/dist/{sqlite-Dxklpizv.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
  239. package/dist/{store-view-PCT7vTKH.d.cts → store-view-6C2vTWqf.d.ts} +8 -7
  240. package/dist/{store-view-BDjGFjpN.d.ts → store-view-CNcOG8bQ.d.cts} +8 -7
  241. package/dist/{temporal-CyFsSPe8.d.ts → temporal-BtrTYTiB.d.ts} +1 -1
  242. package/dist/{temporal-Dn_JADWY.d.cts → temporal-CMpigMCW.d.cts} +1 -1
  243. package/dist/{types-CFZiEEPh.d.ts → types-D2rU5Taq.d.ts} +1 -2
  244. package/dist/{types-D-vOo_pM.d.ts → types-Dh-EgT-w.d.cts} +569 -2
  245. package/dist/{types-ho4DJJb_.d.cts → types-Dh-EgT-w.d.ts} +569 -2
  246. package/dist/{types-CsaG00wS.d.cts → types-G4sVM-76.d.cts} +1 -2
  247. package/dist/{where-DLYaXa4L.d.ts → where-B8Y21kig.d.ts} +1 -2
  248. package/dist/{where-udes1WRA.d.cts → where-DbZ9XDOI.d.cts} +1 -2
  249. package/package.json +1 -1
  250. package/dist/chunk-5YBDB7UG.cjs +0 -12
  251. package/dist/chunk-DPNA466P.js.map +0 -1
  252. package/dist/chunk-EFZ4S22A.js.map +0 -1
  253. package/dist/chunk-IMQKXL4E.cjs +0 -12
  254. package/dist/chunk-JP5EICR6.cjs.map +0 -1
  255. package/dist/chunk-LOKG3KQV.cjs.map +0 -1
  256. package/dist/chunk-MQBF3XGY.js.map +0 -1
  257. package/dist/chunk-QXKVUJLI.cjs.map +0 -1
  258. package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
  259. package/dist/chunk-UDS5DZNY.cjs.map +0 -1
  260. package/dist/chunk-V3S74J44.js.map +0 -1
  261. package/dist/chunk-W66YCXWT.js.map +0 -1
  262. package/dist/extension-types-BLEVH4SG.d.cts +0 -571
  263. package/dist/extension-types-BLEVH4SG.d.ts +0 -571
  264. package/dist/materialize-indexes-D4iei4Kp.d.ts +0 -90
  265. package/dist/materialize-indexes-ExQ6OrAh.d.cts +0 -90
@@ -1,5 +1,251 @@
1
1
  import { z } from 'zod';
2
- import { a as NodeType, d as EdgeType, o as UniquenessScope, f as Collation, D as DeleteBehavior, l as KindAnnotations, e as Cardinality, j as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, c as NullCheckOp, A as AnyEdgeType } from './extension-types-BLEVH4SG.cjs';
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 CompiledRowsSql as $, type AdapterBackend as A, type BackendCapabilities as B, type SchemaVersionRow as C, type InferenceType as D, type EdgeIndexDeclaration as E, type FulltextStrategy as F, type GraphBackend as G, type AggregateExpr as H, type IndexDeclaration as I, type JsonPointer as J, type FieldRef as K, type ComparisonOp as L, type AggregateComparisonPredicate as M, type NodeIndexDeclaration as N, type OntologyRelation as O, type AdapterBackendTransactions as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqlDialect as S, type TraversalDirection as T, type BackendIdentity as U, type VectorStrategy as V, type BackendLifecycle as W, type BackendMaintenance as X, type BackendTransactions as Y, type CommitSchemaVersionExpected as Z, type CommitSchemaVersionParams as _, type EdgeIndexConfig as a, type TransactionOptions as a$, type CompiledSelectSql as a0, type CompiledStatementSql as a1, type ContributionMaterializationBackend as a2, DEFAULT_SQL_SCHEMA as a3, type DeleteFulltextBatchParams as a4, type EdgeEntityReadBackend as a5, type EdgeEntityWriteBackend as a6, type ExternalRecordedReadSource as a7, type FilteredApproximateSearch as a8, type FilteredApproximateSearchMode as a9, type QueryExecutionBackend as aA, type RawQueryExecutionBackend as aB, type RawStatementExecutionBackend as aC, type RecordedRelationOptions as aD, type RemovalMaterializationBackend as aE, type RenderedSql as aF, type ResolveJsonPointer as aG, type ResolveJsonPointerSegments as aH, type ResolvedSqlTableNames as aI, type RowProps as aJ, type SchemaCommitBackend as aK, type SchemaReadBackend as aL, type SetActiveVersionParams as aM, type SortDirection as aN, type SqlChunk as aO, type SqlFragment as aP, type SqlIdentifierChunk as aQ, type SqlIntent as aR, type SqlParameterChunk as aS, type SqlPlaceholderChunk as aT, SqlSchema as aU, type SqlTableNames as aV, type SqlTag as aW, type SqlTextChunk as aX, type StrategyTableContribution as aY, type TableContribution as aZ, type TransactionBackend as a_, type FulltextBatchRow as aa, type FulltextCapabilities as ab, type FulltextOperationBackend as ac, type FulltextQueryMode as ad, type FulltextSearchParams as ae, type FulltextSearchResult as af, type GraphAnalyticsCapabilities as ag, type GraphEntityReadBackend as ah, type GraphEntityWriteBackend as ai, type GraphLifecycleBackend as aj, type HybridFusionOptions as ak, type IndexMaterializationBackend as al, type IntentSql as am, type JsonPointerFor as an, type JsonPointerInput as ao, type JsonPointerSegment as ap, type JsonPointerSegments as aq, type JsonPointerSegmentsFor as ar, MAX_JSON_POINTER_DEPTH as as, type MetaEdge as at, type MetaEdgeProperties as au, type NodeEntityReadBackend as av, type NodeEntityWriteBackend as aw, type OrderSpec as ax, type ParameterRef as ay, Placeholder as az, type EdgeIndexDirection as b, type DialectAdapter as b$, type TransactionReadBackend as b0, type TraversalExpansion as b1, type TrustedImportSession as b2, type UniqueConstraintBackend as b3, type UpsertFulltextBatchParams as b4, type VectorCapabilities as b5, type VectorOperationBackend as b6, buildVectorCapabilities as b7, createSqlSchema as b8, fts5Strategy as b9, type VectorSlotMap as bA, type RecordedReadBinding as bB, type SelectiveField as bC, type ComposableQuery as bD, type SetOperationType as bE, type SetOperation as bF, type VectorMetric as bG, ALL_FULLTEXT_MODES as bH, BASE_CONTRIBUTION_OWNER as bI, type CheckUniqueBatchParams as bJ, type CheckUniqueParams as bK, type ClaimIndexMaterializationParams as bL, type CompiledTemporaryStatementSql as bM, type ContributionMaterializationIdentity as bN, type ContributionMaterializationRow as bO, type CountEdgesByKindParams as bP, type CountEdgesFromParams as bQ, type CountNodesByKindParams as bR, type CreateVectorIndexParams as bS, D1_MAX_BIND_PARAMETERS as bT, DURABLE_OBJECT_MAX_BIND_PARAMETERS as bU, type DeleteEdgeParams as bV, type DeleteEdgesBatchParams as bW, type DeleteEmbeddingParams as bX, type DeleteFulltextParams as bY, type DeleteNodeParams as bZ, type DeleteUniqueParams as b_, isMetaEdge as ba, isSqlFragment as bb, joinJsonPointers as bc, jsonPointer as bd, normalizeJsonPointer as be, parseJsonPointer as bf, recordedRelation as bg, renderPostgres as bh, renderSql as bi, renderSqlInline as bj, renderSqlite as bk, rowPropsToJsonText as bl, rowPropsToObject as bm, sql as bn, tsvectorStrategy as bo, type ValueType as bp, type PredicateExpression as bq, type VectorMetricType as br, type Traversal as bs, type NodePredicate as bt, type ProjectedField as bu, type AggregateOrderSpec as bv, type GroupBySpec as bw, type RecursiveCyclePolicy as bx, type NodeRow as by, type EdgeRow as bz, type EdgeIndexWhereBuilder as c, type DialectCapabilities as c0, type DialectRecursiveQueryStrategy as c1, type DialectStandardQueryStrategy as c2, type DialectVectorPredicateStrategy as c3, type DropVectorIndexParams as c4, type EdgeExistsBetweenParams as c5, FULLTEXT_CONTRIBUTION_NAME as c6, type FindEdgesByKindParams as c7, type FindEdgesConnectedToParams as c8, type FindNodesByKindParams as c9, type SqlCompilationBackend as cA, type TombstonedNodeRow as cB, type UniqueRow as cC, type UpdateEdgeParams as cD, type UpdateNodeParams as cE, type UpsertEmbeddingBatchParams as cF, type UpsertEmbeddingBatchRow as cG, type UpsertEmbeddingParams as cH, type UpsertFulltextParams as cI, VECTOR_CONTRIBUTION_PREFIX as cJ, type VectorIndexType as cK, type VectorSearchParams as cL, type VectorSearchResult as cM, assertFiniteEmbedding as cN, assertVectorMinScore as cO, assertVectorSearchLimit as cP, buildFulltextCapabilities as cQ, isLiveNodeRow as cR, isSqlPlaceholder as cS, isTombstonedNodeRow as cT, normalizeGraphAnalyticsCapabilities as cU, quoteIdentifier as cV, shortHash as cW, vectorMinScoreCondition as cX, vectorPhysicalName as cY, vectorScoreExpression as cZ, type GraphReadBackend as ca, type HardDeleteEdgeParams as cb, type HardDeleteNodeParams as cc, type HybridSearchParams as cd, type HybridSearchRow as ce, type IndexDeclarationBase as cf, type IndexMaterializationRow as cg, type IndexWhereLiteral as ch, type IndexWhereOp as ci, type IndexWhereOperand as cj, type InsertEdgeParams as ck, type InsertNodeParams as cl, type InsertSchemaParams as cm, type InsertUniqueParams as cn, type KindRemovalRow as co, type LiveNodeRow as cp, MODERN_SQLITE_MAX_BIND_PARAMETERS as cq, POSTGRES_CAPABILITIES as cr, POSTGRES_MAX_BIND_PARAMETERS as cs, type RecordContributionMaterializationParams as ct, type RecordIndexMaterializationParams as cu, type RecordKindRemovalParams as cv, type RelationalIndexMethod as cw, type ReleaseIndexMaterializationClaimParams as cx, SQLITE_CAPABILITIES as cy, SQLITE_MAX_BIND_PARAMETERS as cz, type IndexOrigin as d, type IndexScope as e, type IndexWhereExpression as f, type IndexWhereFieldBuilder as g, type IndexWhereInput as h, type NodeIndexConfig as i, type NodeIndexWhereBuilder as j, type SystemColumnName as k, type VectorIndexDeclaration as l, type VectorIndexImplementation as m, type VectorIndexMetric as n, type VectorIndexParams as o, type VectorSlot as p, type SerializedNodeDef as q, type SerializedEdgeDef as r, type SerializedMetaEdge as s, type SerializedOntologyRelation as t, type SerializedClosures as u, type SerializedSchema as v, type SchemaHash as w, type JsonSchema as x, type SerializedOntology as y, type SerializedUniqueConstraint as z };
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 { K as KindEntity } from './extension-types-BLEVH4SG.cjs';
2
- import { J as JsonPointer } from './types-ho4DJJb_.cjs';
1
+ import { K as KindEntity, J as JsonPointer } from './types-Dh-EgT-w.cjs';
3
2
 
4
3
  /**
5
4
  * QueryProfiler types.
@@ -1,5 +1,4 @@
1
- import { A as AnyEdgeType, a as NodeType } from './extension-types-BLEVH4SG.js';
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 { A as AnyEdgeType, a as NodeType } from './extension-types-BLEVH4SG.cjs';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.41.0",
3
+ "version": "0.42.1",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -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