@nicia-ai/typegraph 0.40.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) 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-H6I36MGT.cjs → chunk-277UZV7X.cjs} +1191 -1090
  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-3RPQDGUE.cjs +83 -0
  50. package/dist/chunk-3RPQDGUE.cjs.map +1 -0
  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-53BSOG3O.js → chunk-6NB73BXV.js} +11 -11
  68. package/dist/{chunk-53BSOG3O.js.map → chunk-6NB73BXV.js.map} +1 -1
  69. package/dist/{chunk-SE422RES.cjs → chunk-6TJ6PKPS.cjs} +27 -27
  70. package/dist/{chunk-SE422RES.cjs.map → chunk-6TJ6PKPS.cjs.map} +1 -1
  71. package/dist/{chunk-QXKVUJLI.cjs → chunk-7TOT7RKY.cjs} +120 -120
  72. package/dist/{chunk-QXKVUJLI.cjs.map → chunk-7TOT7RKY.cjs.map} +1 -1
  73. package/dist/{chunk-7WLEQIHA.cjs → chunk-7Y6BV3TK.cjs} +100 -100
  74. package/dist/{chunk-7WLEQIHA.cjs.map → chunk-7Y6BV3TK.cjs.map} +1 -1
  75. package/dist/{chunk-HP6LWBLB.cjs → chunk-AO2WPYFZ.cjs} +4 -4
  76. package/dist/{chunk-HP6LWBLB.cjs.map → chunk-AO2WPYFZ.cjs.map} +1 -1
  77. package/dist/{chunk-7UTUKH4E.cjs → chunk-AQR6BHB3.cjs} +10 -10
  78. package/dist/{chunk-7UTUKH4E.cjs.map → chunk-AQR6BHB3.cjs.map} +1 -1
  79. package/dist/{chunk-X4PVHAZ6.cjs → chunk-ARN3ZODS.cjs} +6 -6
  80. package/dist/{chunk-X4PVHAZ6.cjs.map → chunk-ARN3ZODS.cjs.map} +1 -1
  81. package/dist/{chunk-EFZ4S22A.js → chunk-BGXKXGDI.js} +12 -12
  82. package/dist/{chunk-EFZ4S22A.js.map → chunk-BGXKXGDI.js.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-3BL3JFHL.js → chunk-DP7KC6CL.js} +126 -25
  96. package/dist/{chunk-3BL3JFHL.js.map → chunk-DP7KC6CL.js.map} +1 -1
  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-LDCWO5B6.js +81 -0
  128. package/dist/chunk-LDCWO5B6.js.map +1 -0
  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-ZE7E46IZ.js → chunk-LTVBD56M.js} +6 -6
  132. package/dist/{chunk-ZE7E46IZ.js.map → chunk-LTVBD56M.js.map} +1 -1
  133. package/dist/{chunk-6N7QBIWN.js → chunk-M4GYQF2H.js} +3 -3
  134. package/dist/{chunk-6N7QBIWN.js.map → chunk-M4GYQF2H.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-CU3LPYNB.js → chunk-RAWG2FEU.js} +138 -22
  148. package/dist/chunk-RAWG2FEU.js.map +1 -0
  149. package/dist/{chunk-M2RPZS7J.cjs → chunk-RTUCOEIO.cjs} +12 -12
  150. package/dist/{chunk-M2RPZS7J.cjs.map → chunk-RTUCOEIO.cjs.map} +1 -1
  151. package/dist/{chunk-TAUGGLNQ.js → chunk-RXOAXO3R.js} +3 -3
  152. package/dist/{chunk-TAUGGLNQ.js.map → chunk-RXOAXO3R.js.map} +1 -1
  153. package/dist/{chunk-LLE25NRD.cjs → chunk-TRC646QQ.cjs} +7 -7
  154. package/dist/{chunk-LLE25NRD.cjs.map → chunk-TRC646QQ.cjs.map} +1 -1
  155. package/dist/chunk-U3YRCZ5L.cjs +12 -0
  156. package/dist/{chunk-IMQKXL4E.cjs.map → chunk-U3YRCZ5L.cjs.map} +1 -1
  157. package/dist/{chunk-ZVME6OSV.js → chunk-UJRWOV5B.js} +5 -5
  158. package/dist/{chunk-ZVME6OSV.js.map → chunk-UJRWOV5B.js.map} +1 -1
  159. package/dist/{chunk-HAQVISUF.cjs → chunk-UTTW2Q3M.cjs} +133 -133
  160. package/dist/{chunk-HAQVISUF.cjs.map → chunk-UTTW2Q3M.cjs.map} +1 -1
  161. package/dist/{chunk-L5ET7FYQ.js → chunk-UZLEQFTV.js} +3 -3
  162. package/dist/{chunk-L5ET7FYQ.js.map → chunk-UZLEQFTV.js.map} +1 -1
  163. package/dist/{chunk-K4FB2RMO.cjs → chunk-V2GZBPY2.cjs} +184 -65
  164. package/dist/chunk-V2GZBPY2.cjs.map +1 -0
  165. package/dist/{chunk-BUZWMDNL.js → chunk-VC26BUNP.js} +5 -5
  166. package/dist/{chunk-BUZWMDNL.js.map → chunk-VC26BUNP.js.map} +1 -1
  167. package/dist/chunk-VGMNGWBR.cjs +12 -0
  168. package/dist/{chunk-5YBDB7UG.cjs.map → chunk-VGMNGWBR.cjs.map} +1 -1
  169. package/dist/{chunk-XMEYZYGE.js → chunk-WYQILW5V.js} +8 -8
  170. package/dist/{chunk-XMEYZYGE.js.map → chunk-WYQILW5V.js.map} +1 -1
  171. package/dist/{chunk-YX3H63VV.cjs → chunk-X2XOQZT3.cjs} +9 -9
  172. package/dist/{chunk-YX3H63VV.cjs.map → chunk-X2XOQZT3.cjs.map} +1 -1
  173. package/dist/{chunk-N2V3HJFV.cjs → chunk-XDMPDUKL.cjs} +9 -9
  174. package/dist/{chunk-N2V3HJFV.cjs.map → chunk-XDMPDUKL.cjs.map} +1 -1
  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-KnCdF_le.d.cts → ddl-3unqC-kg.d.cts} +3 -3
  194. package/dist/{ddl-BLEzHw6j.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
  195. package/dist/{define-graph-DQnj3fNH.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
  196. package/dist/{define-graph-Cv3CFwKm.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 +209 -200
  208. package/dist/index.cjs.map +1 -1
  209. package/dist/index.d.cts +13 -15
  210. package/dist/index.d.ts +13 -15
  211. package/dist/index.js +35 -34
  212. package/dist/index.js.map +1 -1
  213. package/dist/indexes/index.cjs +13 -13
  214. package/dist/indexes/index.d.cts +4 -5
  215. package/dist/indexes/index.d.ts +4 -5
  216. package/dist/indexes/index.js +6 -6
  217. package/dist/interchange/index.cjs +40 -40
  218. package/dist/interchange/index.d.cts +9 -10
  219. package/dist/interchange/index.d.ts +9 -10
  220. package/dist/interchange/index.js +14 -14
  221. package/dist/{manager-DjE6Mhag.d.ts → manager-Dl0-er1G.d.ts} +45 -156
  222. package/dist/{manager-mqee5MVB.d.cts → manager-U9_zopqr.d.cts} +45 -156
  223. package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
  224. package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
  225. package/dist/{postgres-Bm4DyFQU.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
  226. package/dist/{postgres-DtaVALOZ.d.ts → postgres-DpJqtbSX.d.cts} +1 -1
  227. package/dist/profiler/index.d.cts +9 -10
  228. package/dist/profiler/index.d.ts +9 -10
  229. package/dist/provenance/index.cjs +39 -39
  230. package/dist/provenance/index.d.cts +7 -8
  231. package/dist/provenance/index.d.ts +7 -8
  232. package/dist/provenance/index.js +9 -9
  233. package/dist/schema/index.cjs +55 -112
  234. package/dist/schema/index.cjs.map +1 -1
  235. package/dist/schema/index.d.cts +57 -58
  236. package/dist/schema/index.d.ts +57 -58
  237. package/dist/schema/index.js +15 -92
  238. package/dist/schema/index.js.map +1 -1
  239. package/dist/{searchable-BxlJQVFw.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
  240. package/dist/{searchable-ChJ29MCd.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
  241. package/dist/{sqlite-m9Izphk_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
  242. package/dist/{sqlite-DT6tTHOG.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
  243. package/dist/{store-view-CagdeyNn.d.ts → store-view-6C2vTWqf.d.ts} +68 -16
  244. package/dist/{store-view-C-buB8Q8.d.cts → store-view-CNcOG8bQ.d.cts} +68 -16
  245. package/dist/{temporal-CyFsSPe8.d.ts → temporal-BtrTYTiB.d.ts} +1 -1
  246. package/dist/{temporal-Dn_JADWY.d.cts → temporal-CMpigMCW.d.cts} +1 -1
  247. package/dist/{types-CYdXzZef.d.ts → types-D2rU5Taq.d.ts} +1 -2
  248. package/dist/{types-D8szWDUo.d.ts → types-Dh-EgT-w.d.cts} +569 -2
  249. package/dist/{types-C5pZeKTl.d.cts → types-Dh-EgT-w.d.ts} +569 -2
  250. package/dist/{types-CqSfMRW3.d.cts → types-G4sVM-76.d.cts} +1 -2
  251. package/dist/{where-sQL4u5h-.d.ts → where-B8Y21kig.d.ts} +1 -2
  252. package/dist/{where-C3-HRgUq.d.cts → where-DbZ9XDOI.d.cts} +1 -2
  253. package/package.json +1 -1
  254. package/dist/chunk-5YBDB7UG.cjs +0 -12
  255. package/dist/chunk-CU3LPYNB.js.map +0 -1
  256. package/dist/chunk-DPNA466P.js.map +0 -1
  257. package/dist/chunk-H6I36MGT.cjs.map +0 -1
  258. package/dist/chunk-IMQKXL4E.cjs +0 -12
  259. package/dist/chunk-K4FB2RMO.cjs.map +0 -1
  260. package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
  261. package/dist/chunk-UDS5DZNY.cjs.map +0 -1
  262. package/dist/chunk-W66YCXWT.js.map +0 -1
  263. package/dist/extension-types-BLEVH4SG.d.cts +0 -571
  264. package/dist/extension-types-BLEVH4SG.d.ts +0 -571
  265. package/dist/materialize-indexes-D4iei4Kp.d.ts +0 -90
  266. package/dist/materialize-indexes-ExQ6OrAh.d.cts +0 -90
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkUWG5GX6E_cjs = require('../chunk-UWG5GX6E.cjs');
4
- var chunkKLR77R5A_cjs = require('../chunk-KLR77R5A.cjs');
5
- var chunkLLE25NRD_cjs = require('../chunk-LLE25NRD.cjs');
6
- var chunkCKFBZ4LV_cjs = require('../chunk-CKFBZ4LV.cjs');
4
+ var chunkOM6RIOA5_cjs = require('../chunk-OM6RIOA5.cjs');
5
+ var chunkTRC646QQ_cjs = require('../chunk-TRC646QQ.cjs');
6
+ var chunkI73ATSAH_cjs = require('../chunk-I73ATSAH.cjs');
7
7
  require('../chunk-ZY4GXIVN.cjs');
8
8
  require('../chunk-NAUA4PW5.cjs');
9
- require('../chunk-HAQVISUF.cjs');
10
- require('../chunk-YX3H63VV.cjs');
9
+ require('../chunk-UTTW2Q3M.cjs');
10
+ require('../chunk-X2XOQZT3.cjs');
11
11
  require('../chunk-FJMPR3OH.cjs');
12
12
  require('../chunk-SJDMVITW.cjs');
13
13
  require('../chunk-764JHTLT.cjs');
14
14
  require('../chunk-HAHNRASW.cjs');
15
- require('../chunk-SAFZ6JTI.cjs');
15
+ require('../chunk-KTBTSHU6.cjs');
16
16
  require('../chunk-TDXIBCGY.cjs');
17
17
 
18
18
 
@@ -39,31 +39,31 @@ Object.defineProperty(exports, "toDeclaredIndexes", {
39
39
  });
40
40
  Object.defineProperty(exports, "generateEdgeIndexDDL", {
41
41
  enumerable: true,
42
- get: function () { return chunkKLR77R5A_cjs.generateEdgeIndexDDL; }
42
+ get: function () { return chunkOM6RIOA5_cjs.generateEdgeIndexDDL; }
43
43
  });
44
44
  Object.defineProperty(exports, "generateIndexDDL", {
45
45
  enumerable: true,
46
- get: function () { return chunkKLR77R5A_cjs.generateIndexDDL; }
46
+ get: function () { return chunkOM6RIOA5_cjs.generateIndexDDL; }
47
47
  });
48
48
  Object.defineProperty(exports, "generateNodeIndexDDL", {
49
49
  enumerable: true,
50
- get: function () { return chunkKLR77R5A_cjs.generateNodeIndexDDL; }
50
+ get: function () { return chunkOM6RIOA5_cjs.generateNodeIndexDDL; }
51
51
  });
52
52
  Object.defineProperty(exports, "SYSTEM_INDEX_DECLARATIONS", {
53
53
  enumerable: true,
54
- get: function () { return chunkLLE25NRD_cjs.SYSTEM_INDEX_DECLARATIONS; }
54
+ get: function () { return chunkTRC646QQ_cjs.SYSTEM_INDEX_DECLARATIONS; }
55
55
  });
56
56
  Object.defineProperty(exports, "generateSystemIndexDDL", {
57
57
  enumerable: true,
58
- get: function () { return chunkLLE25NRD_cjs.generateSystemIndexDDL; }
58
+ get: function () { return chunkTRC646QQ_cjs.generateSystemIndexDDL; }
59
59
  });
60
60
  Object.defineProperty(exports, "defineEdgeIndex", {
61
61
  enumerable: true,
62
- get: function () { return chunkCKFBZ4LV_cjs.defineEdgeIndex; }
62
+ get: function () { return chunkI73ATSAH_cjs.defineEdgeIndex; }
63
63
  });
64
64
  Object.defineProperty(exports, "defineNodeIndex", {
65
65
  enumerable: true,
66
- get: function () { return chunkCKFBZ4LV_cjs.defineNodeIndex; }
66
+ get: function () { return chunkI73ATSAH_cjs.defineNodeIndex; }
67
67
  });
68
68
  //# sourceMappingURL=index.cjs.map
69
69
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,8 @@
1
- import { E as EdgeIndexDeclaration, S as SqlDialect, R as RelationalIndexDeclaration, N as NodeIndexDeclaration, I as IndexDeclaration } from '../types-C5pZeKTl.cjs';
2
- export { a as EdgeIndexConfig, b as EdgeIndexDirection, c as EdgeIndexWhereBuilder, d as IndexOrigin, e as IndexScope, f as IndexWhereExpression, g as IndexWhereFieldBuilder, h as IndexWhereInput, i as NodeIndexConfig, j as NodeIndexWhereBuilder, k as SystemColumnName, l as VectorIndexDeclaration, m as VectorIndexImplementation, n as VectorIndexMetric, o as VectorIndexParams } from '../types-C5pZeKTl.cjs';
3
- export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, g as generateSystemIndexDDL, n as notWhere, o as orWhere } from '../where-C3-HRgUq.cjs';
4
- import { D as DeclaredIndex } from '../types-CqSfMRW3.cjs';
1
+ import { d as EdgeIndexDeclaration, S as SqlDialect, R as RelationalIndexDeclaration, e as NodeIndexDeclaration, I as IndexDeclaration } from '../types-Dh-EgT-w.cjs';
2
+ export { f as EdgeIndexConfig, g as EdgeIndexDirection, h as EdgeIndexWhereBuilder, i as IndexOrigin, j as IndexScope, k as IndexWhereExpression, l as IndexWhereFieldBuilder, m as IndexWhereInput, n as NodeIndexConfig, o as NodeIndexWhereBuilder, p as SystemColumnName, q as VectorIndexDeclaration, r as VectorIndexImplementation, s as VectorIndexMetric, t as VectorIndexParams } from '../types-Dh-EgT-w.cjs';
3
+ export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, g as generateSystemIndexDDL, n as notWhere, o as orWhere } from '../where-DbZ9XDOI.cjs';
4
+ import { D as DeclaredIndex } from '../types-G4sVM-76.cjs';
5
5
  import 'zod';
6
- import '../extension-types-BLEVH4SG.cjs';
7
6
 
8
7
  type GenerateIndexDdlOptions = Readonly<{
9
8
  nodesTableName?: string | undefined;
@@ -1,9 +1,8 @@
1
- import { E as EdgeIndexDeclaration, S as SqlDialect, R as RelationalIndexDeclaration, N as NodeIndexDeclaration, I as IndexDeclaration } from '../types-D8szWDUo.js';
2
- export { a as EdgeIndexConfig, b as EdgeIndexDirection, c as EdgeIndexWhereBuilder, d as IndexOrigin, e as IndexScope, f as IndexWhereExpression, g as IndexWhereFieldBuilder, h as IndexWhereInput, i as NodeIndexConfig, j as NodeIndexWhereBuilder, k as SystemColumnName, l as VectorIndexDeclaration, m as VectorIndexImplementation, n as VectorIndexMetric, o as VectorIndexParams } from '../types-D8szWDUo.js';
3
- export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, g as generateSystemIndexDDL, n as notWhere, o as orWhere } from '../where-sQL4u5h-.js';
4
- import { D as DeclaredIndex } from '../types-CYdXzZef.js';
1
+ import { d as EdgeIndexDeclaration, S as SqlDialect, R as RelationalIndexDeclaration, e as NodeIndexDeclaration, I as IndexDeclaration } from '../types-Dh-EgT-w.js';
2
+ export { f as EdgeIndexConfig, g as EdgeIndexDirection, h as EdgeIndexWhereBuilder, i as IndexOrigin, j as IndexScope, k as IndexWhereExpression, l as IndexWhereFieldBuilder, m as IndexWhereInput, n as NodeIndexConfig, o as NodeIndexWhereBuilder, p as SystemColumnName, q as VectorIndexDeclaration, r as VectorIndexImplementation, s as VectorIndexMetric, t as VectorIndexParams } from '../types-Dh-EgT-w.js';
3
+ export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, g as generateSystemIndexDDL, n as notWhere, o as orWhere } from '../where-B8Y21kig.js';
4
+ import { D as DeclaredIndex } from '../types-D2rU5Taq.js';
5
5
  import 'zod';
6
- import '../extension-types-BLEVH4SG.js';
7
6
 
8
7
  type GenerateIndexDdlOptions = Readonly<{
9
8
  nodesTableName?: string | undefined;
@@ -1,16 +1,16 @@
1
1
  export { andWhere, notWhere, orWhere, toDeclaredIndex, toDeclaredIndexes } from '../chunk-QZ7A6HBM.js';
2
- export { generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL } from '../chunk-2I3DNNBU.js';
3
- export { SYSTEM_INDEX_DECLARATIONS, generateSystemIndexDDL } from '../chunk-AQVDAKXH.js';
4
- export { defineEdgeIndex, defineNodeIndex } from '../chunk-VWEFXG73.js';
2
+ export { generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL } from '../chunk-2G6ZEGYO.js';
3
+ export { SYSTEM_INDEX_DECLARATIONS, generateSystemIndexDDL } from '../chunk-4XRP2N6B.js';
4
+ export { defineEdgeIndex, defineNodeIndex } from '../chunk-ZP2KPDNN.js';
5
5
  import '../chunk-K34OPSJK.js';
6
6
  import '../chunk-2EBMPJBO.js';
7
- import '../chunk-Y5UC3IXF.js';
8
- import '../chunk-6N7QBIWN.js';
7
+ import '../chunk-42XYPKZU.js';
8
+ import '../chunk-M4GYQF2H.js';
9
9
  import '../chunk-D7PG5D5K.js';
10
10
  import '../chunk-SNXVDZAJ.js';
11
11
  import '../chunk-QMQLUA66.js';
12
12
  import '../chunk-PC2UBAUB.js';
13
- import '../chunk-DPNA466P.js';
13
+ import '../chunk-OYJSYDIH.js';
14
14
  import '../chunk-G6Q5UM7U.js';
15
15
  //# sourceMappingURL=index.js.map
16
16
  //# sourceMappingURL=index.js.map
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkKHNKYSGP_cjs = require('../chunk-KHNKYSGP.cjs');
4
- require('../chunk-YIX3BEBR.cjs');
5
- var chunkUCHW2MGP_cjs = require('../chunk-UCHW2MGP.cjs');
3
+ var chunk5P6IPIT6_cjs = require('../chunk-5P6IPIT6.cjs');
4
+ require('../chunk-K2HHCWZO.cjs');
5
+ var chunk2SO5I5AI_cjs = require('../chunk-2SO5I5AI.cjs');
6
6
  require('../chunk-ZDH3DX3C.cjs');
7
- require('../chunk-JZYMOHHM.cjs');
8
- require('../chunk-QYDUCWD2.cjs');
9
- require('../chunk-LL5D5T5W.cjs');
10
- require('../chunk-X4PVHAZ6.cjs');
7
+ require('../chunk-CVK4T34X.cjs');
8
+ require('../chunk-ECU53PMN.cjs');
9
+ require('../chunk-FSCJOTHF.cjs');
10
+ require('../chunk-ARN3ZODS.cjs');
11
11
  require('../chunk-ACSVZPK7.cjs');
12
- require('../chunk-HP6LWBLB.cjs');
13
- require('../chunk-NT6ILURI.cjs');
14
- require('../chunk-MNURF4RF.cjs');
12
+ require('../chunk-AO2WPYFZ.cjs');
13
+ require('../chunk-ZPCKPLMX.cjs');
14
+ require('../chunk-ZBV4LQD2.cjs');
15
15
  require('../chunk-NAUA4PW5.cjs');
16
- require('../chunk-HAQVISUF.cjs');
17
- require('../chunk-YX3H63VV.cjs');
16
+ require('../chunk-UTTW2Q3M.cjs');
17
+ require('../chunk-X2XOQZT3.cjs');
18
18
  require('../chunk-SJDMVITW.cjs');
19
19
  require('../chunk-764JHTLT.cjs');
20
20
  var chunkHAHNRASW_cjs = require('../chunk-HAHNRASW.cjs');
21
- require('../chunk-XRU7V7FF.cjs');
22
- var chunkSAFZ6JTI_cjs = require('../chunk-SAFZ6JTI.cjs');
21
+ require('../chunk-O2GZM7UK.cjs');
22
+ var chunkKTBTSHU6_cjs = require('../chunk-KTBTSHU6.cjs');
23
23
  require('../chunk-TDXIBCGY.cjs');
24
24
 
25
25
  // src/interchange/trusted-import.ts
26
26
  function rejectUnsupportedStoreFeatures(store) {
27
27
  if (store.historyEnabled) {
28
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
28
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
29
29
  "Trusted import does not support recorded-time history capture.",
30
30
  "history_unsupported",
31
31
  { graphId: store.graphId }
32
32
  );
33
33
  }
34
34
  if (store.revisionTrackingEnabled) {
35
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
35
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
36
36
  "Trusted import does not support revision tracking.",
37
37
  "revision_tracking_unsupported",
38
38
  { graphId: store.graphId }
@@ -40,7 +40,7 @@ function rejectUnsupportedStoreFeatures(store) {
40
40
  }
41
41
  const uniqueKinds = Object.values(store.graph.nodes).filter((registration) => (registration.unique?.length ?? 0) > 0).map((registration) => registration.type.kind);
42
42
  if (uniqueKinds.length > 0) {
43
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
43
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
44
44
  "Trusted import does not maintain node uniqueness sidecars.",
45
45
  "uniqueness_unsupported",
46
46
  { graphId: store.graphId, nodeKinds: uniqueKinds }
@@ -50,7 +50,7 @@ function rejectUnsupportedStoreFeatures(store) {
50
50
  (registration) => chunkHAHNRASW_cjs.getSearchableFields(registration.type.schema).length > 0
51
51
  ).map((registration) => registration.type.kind);
52
52
  if (searchableKinds.length > 0) {
53
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
53
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
54
54
  "Trusted import does not maintain fulltext sidecars.",
55
55
  "fulltext_unsupported",
56
56
  { graphId: store.graphId, nodeKinds: searchableKinds }
@@ -58,7 +58,7 @@ function rejectUnsupportedStoreFeatures(store) {
58
58
  }
59
59
  const vectorSlots = chunkHAHNRASW_cjs.resolveGraphVectorSlots(store.graph);
60
60
  if (vectorSlots.length > 0) {
61
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
61
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
62
62
  "Trusted import does not maintain vector sidecars.",
63
63
  "vector_unsupported",
64
64
  {
@@ -69,7 +69,7 @@ function rejectUnsupportedStoreFeatures(store) {
69
69
  }
70
70
  }
71
71
  function invalidStream(message) {
72
- return new chunkSAFZ6JTI_cjs.TrustedImportError(message, "invalid_stream");
72
+ return new chunkKTBTSHU6_cjs.TrustedImportError(message, "invalid_stream");
73
73
  }
74
74
  function nodeParams(graphId, node) {
75
75
  return {
@@ -178,10 +178,10 @@ async function consumeTrustedChunks(store, session, chunks) {
178
178
  }
179
179
  async function trustedImportGraphStream(store, chunks) {
180
180
  rejectUnsupportedStoreFeatures(store);
181
- const backend = chunkUCHW2MGP_cjs.storeBackend(store);
181
+ const backend = chunk2SO5I5AI_cjs.storeBackend(store);
182
182
  const trustedImport = backend.trustedImport;
183
183
  if (trustedImport === void 0) {
184
- throw new chunkSAFZ6JTI_cjs.TrustedImportError(
184
+ throw new chunkKTBTSHU6_cjs.TrustedImportError(
185
185
  `The ${backend.dialect} backend does not support trusted import.`,
186
186
  "backend_unsupported",
187
187
  { dialect: backend.dialect }
@@ -203,75 +203,75 @@ function trustedImportGraph(store, data) {
203
203
 
204
204
  Object.defineProperty(exports, "ConflictStrategySchema", {
205
205
  enumerable: true,
206
- get: function () { return chunkKHNKYSGP_cjs.ConflictStrategySchema; }
206
+ get: function () { return chunk5P6IPIT6_cjs.ConflictStrategySchema; }
207
207
  });
208
208
  Object.defineProperty(exports, "ExportOptionsSchema", {
209
209
  enumerable: true,
210
- get: function () { return chunkKHNKYSGP_cjs.ExportOptionsSchema; }
210
+ get: function () { return chunk5P6IPIT6_cjs.ExportOptionsSchema; }
211
211
  });
212
212
  Object.defineProperty(exports, "ExportStreamOptionsSchema", {
213
213
  enumerable: true,
214
- get: function () { return chunkKHNKYSGP_cjs.ExportStreamOptionsSchema; }
214
+ get: function () { return chunk5P6IPIT6_cjs.ExportStreamOptionsSchema; }
215
215
  });
216
216
  Object.defineProperty(exports, "FORMAT_VERSION", {
217
217
  enumerable: true,
218
- get: function () { return chunkKHNKYSGP_cjs.FORMAT_VERSION; }
218
+ get: function () { return chunk5P6IPIT6_cjs.FORMAT_VERSION; }
219
219
  });
220
220
  Object.defineProperty(exports, "GraphDataHeaderSchema", {
221
221
  enumerable: true,
222
- get: function () { return chunkKHNKYSGP_cjs.GraphDataHeaderSchema; }
222
+ get: function () { return chunk5P6IPIT6_cjs.GraphDataHeaderSchema; }
223
223
  });
224
224
  Object.defineProperty(exports, "GraphDataSchema", {
225
225
  enumerable: true,
226
- get: function () { return chunkKHNKYSGP_cjs.GraphDataSchema; }
226
+ get: function () { return chunk5P6IPIT6_cjs.GraphDataSchema; }
227
227
  });
228
228
  Object.defineProperty(exports, "GraphDataSourceSchema", {
229
229
  enumerable: true,
230
- get: function () { return chunkKHNKYSGP_cjs.GraphDataSourceSchema; }
230
+ get: function () { return chunk5P6IPIT6_cjs.GraphDataSourceSchema; }
231
231
  });
232
232
  Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
233
233
  enumerable: true,
234
- get: function () { return chunkKHNKYSGP_cjs.GraphInterchangeChunkSchema; }
234
+ get: function () { return chunk5P6IPIT6_cjs.GraphInterchangeChunkSchema; }
235
235
  });
236
236
  Object.defineProperty(exports, "ImportErrorSchema", {
237
237
  enumerable: true,
238
- get: function () { return chunkKHNKYSGP_cjs.ImportErrorSchema; }
238
+ get: function () { return chunk5P6IPIT6_cjs.ImportErrorSchema; }
239
239
  });
240
240
  Object.defineProperty(exports, "ImportOptionsSchema", {
241
241
  enumerable: true,
242
- get: function () { return chunkKHNKYSGP_cjs.ImportOptionsSchema; }
242
+ get: function () { return chunk5P6IPIT6_cjs.ImportOptionsSchema; }
243
243
  });
244
244
  Object.defineProperty(exports, "ImportResultSchema", {
245
245
  enumerable: true,
246
- get: function () { return chunkKHNKYSGP_cjs.ImportResultSchema; }
246
+ get: function () { return chunk5P6IPIT6_cjs.ImportResultSchema; }
247
247
  });
248
248
  Object.defineProperty(exports, "InterchangeEdgeSchema", {
249
249
  enumerable: true,
250
- get: function () { return chunkKHNKYSGP_cjs.InterchangeEdgeSchema; }
250
+ get: function () { return chunk5P6IPIT6_cjs.InterchangeEdgeSchema; }
251
251
  });
252
252
  Object.defineProperty(exports, "InterchangeNodeSchema", {
253
253
  enumerable: true,
254
- get: function () { return chunkKHNKYSGP_cjs.InterchangeNodeSchema; }
254
+ get: function () { return chunk5P6IPIT6_cjs.InterchangeNodeSchema; }
255
255
  });
256
256
  Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
257
257
  enumerable: true,
258
- get: function () { return chunkKHNKYSGP_cjs.UnknownPropertyStrategySchema; }
258
+ get: function () { return chunk5P6IPIT6_cjs.UnknownPropertyStrategySchema; }
259
259
  });
260
260
  Object.defineProperty(exports, "exportGraph", {
261
261
  enumerable: true,
262
- get: function () { return chunkKHNKYSGP_cjs.exportGraph; }
262
+ get: function () { return chunk5P6IPIT6_cjs.exportGraph; }
263
263
  });
264
264
  Object.defineProperty(exports, "exportGraphStream", {
265
265
  enumerable: true,
266
- get: function () { return chunkKHNKYSGP_cjs.exportGraphStream; }
266
+ get: function () { return chunk5P6IPIT6_cjs.exportGraphStream; }
267
267
  });
268
268
  Object.defineProperty(exports, "importGraph", {
269
269
  enumerable: true,
270
- get: function () { return chunkKHNKYSGP_cjs.importGraph; }
270
+ get: function () { return chunk5P6IPIT6_cjs.importGraph; }
271
271
  });
272
272
  Object.defineProperty(exports, "importGraphStream", {
273
273
  enumerable: true,
274
- get: function () { return chunkKHNKYSGP_cjs.importGraphStream; }
274
+ get: function () { return chunk5P6IPIT6_cjs.importGraphStream; }
275
275
  });
276
276
  exports.trustedImportGraph = trustedImportGraph;
277
277
  exports.trustedImportGraphStream = trustedImportGraphStream;
@@ -1,12 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../define-graph-Cv3CFwKm.cjs';
3
- import { a as Store } from '../store-view-C-buB8Q8.cjs';
4
- import '../extension-types-BLEVH4SG.cjs';
5
- import '../types-C5pZeKTl.cjs';
6
- import '../temporal-Dn_JADWY.cjs';
7
- import '../manager-mqee5MVB.cjs';
8
- import '../searchable-BxlJQVFw.cjs';
9
- import '../materialize-indexes-ExQ6OrAh.cjs';
2
+ import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
3
+ import { a as Store } from '../store-view-CNcOG8bQ.cjs';
4
+ import '../types-Dh-EgT-w.cjs';
5
+ import '../temporal-CMpigMCW.cjs';
6
+ import '../manager-U9_zopqr.cjs';
7
+ import '../materialize-indexes-DzMCetZe.cjs';
8
+ import '../searchable-B4mUXZT6.cjs';
10
9
 
11
10
  /**
12
11
  * Graph interchange format types.
@@ -89,8 +88,8 @@ type ConflictStrategy = z.infer<typeof ConflictStrategySchema>;
89
88
  * - `allow`: Pass through to storage (relies on backend behavior)
90
89
  */
91
90
  declare const UnknownPropertyStrategySchema: z.ZodEnum<{
92
- allow: "allow";
93
91
  error: "error";
92
+ allow: "allow";
94
93
  strip: "strip";
95
94
  }>;
96
95
  type UnknownPropertyStrategy = z.infer<typeof UnknownPropertyStrategySchema>;
@@ -104,8 +103,8 @@ declare const ImportOptionsSchema: z.ZodObject<{
104
103
  update: "update";
105
104
  }>;
106
105
  onUnknownProperty: z.ZodDefault<z.ZodEnum<{
107
- allow: "allow";
108
106
  error: "error";
107
+ allow: "allow";
109
108
  strip: "strip";
110
109
  }>>;
111
110
  validateReferences: z.ZodDefault<z.ZodBoolean>;
@@ -1,12 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../define-graph-DQnj3fNH.js';
3
- import { a as Store } from '../store-view-CagdeyNn.js';
4
- import '../extension-types-BLEVH4SG.js';
5
- import '../types-D8szWDUo.js';
6
- import '../temporal-CyFsSPe8.js';
7
- import '../manager-DjE6Mhag.js';
8
- import '../searchable-ChJ29MCd.js';
9
- import '../materialize-indexes-D4iei4Kp.js';
2
+ import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
3
+ import { a as Store } from '../store-view-6C2vTWqf.js';
4
+ import '../types-Dh-EgT-w.js';
5
+ import '../temporal-BtrTYTiB.js';
6
+ import '../manager-Dl0-er1G.js';
7
+ import '../materialize-indexes-BM3u0aXE.js';
8
+ import '../searchable-C7jmPNLT.js';
10
9
 
11
10
  /**
12
11
  * Graph interchange format types.
@@ -89,8 +88,8 @@ type ConflictStrategy = z.infer<typeof ConflictStrategySchema>;
89
88
  * - `allow`: Pass through to storage (relies on backend behavior)
90
89
  */
91
90
  declare const UnknownPropertyStrategySchema: z.ZodEnum<{
92
- allow: "allow";
93
91
  error: "error";
92
+ allow: "allow";
94
93
  strip: "strip";
95
94
  }>;
96
95
  type UnknownPropertyStrategy = z.infer<typeof UnknownPropertyStrategySchema>;
@@ -104,8 +103,8 @@ declare const ImportOptionsSchema: z.ZodObject<{
104
103
  update: "update";
105
104
  }>;
106
105
  onUnknownProperty: z.ZodDefault<z.ZodEnum<{
107
- allow: "allow";
108
106
  error: "error";
107
+ allow: "allow";
109
108
  strip: "strip";
110
109
  }>>;
111
110
  validateReferences: z.ZodDefault<z.ZodBoolean>;
@@ -1,23 +1,23 @@
1
- export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-XMEYZYGE.js';
2
- import '../chunk-53BSOG3O.js';
3
- import { storeBackend } from '../chunk-JHK6NPFV.js';
1
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-WYQILW5V.js';
2
+ import '../chunk-6NB73BXV.js';
3
+ import { storeBackend } from '../chunk-EVFL2ZY5.js';
4
4
  import '../chunk-35S6P5ZU.js';
5
- import '../chunk-YYLMXERH.js';
6
- import '../chunk-L5ET7FYQ.js';
7
- import '../chunk-QOHTVDHU.js';
8
- import '../chunk-ZE6NVENI.js';
5
+ import '../chunk-CDYRPI5U.js';
6
+ import '../chunk-UZLEQFTV.js';
7
+ import '../chunk-2OOY4OYT.js';
8
+ import '../chunk-O3USVVWS.js';
9
9
  import '../chunk-UR7W5YQK.js';
10
- import '../chunk-UUIBACKJ.js';
11
- import '../chunk-PH4IJ3V5.js';
12
- import '../chunk-3SHAUJRB.js';
10
+ import '../chunk-CUPJL6TS.js';
11
+ import '../chunk-3V6D5DEC.js';
12
+ import '../chunk-GT7NEXSU.js';
13
13
  import '../chunk-2EBMPJBO.js';
14
- import '../chunk-Y5UC3IXF.js';
15
- import '../chunk-6N7QBIWN.js';
14
+ import '../chunk-42XYPKZU.js';
15
+ import '../chunk-M4GYQF2H.js';
16
16
  import '../chunk-SNXVDZAJ.js';
17
17
  import '../chunk-QMQLUA66.js';
18
18
  import { getSearchableFields, resolveGraphVectorSlots } from '../chunk-PC2UBAUB.js';
19
- import '../chunk-XZA3Y4YH.js';
20
- import { TrustedImportError } from '../chunk-DPNA466P.js';
19
+ import '../chunk-4WYFRACU.js';
20
+ import { TrustedImportError } from '../chunk-OYJSYDIH.js';
21
21
  import '../chunk-G6Q5UM7U.js';
22
22
 
23
23
  // src/interchange/trusted-import.ts
@@ -1,6 +1,6 @@
1
- import { a as NodeType, A as AnyEdgeType, I as IndexEntity } from './extension-types-BLEVH4SG.js';
2
- import { s as SerializedNodeDef, t as SerializedEdgeDef, I as IndexDeclaration, q as SerializedSchema, C as SchemaVersionRow, G as GraphBackend } from './types-D8szWDUo.js';
3
- import { G as GraphDef } from './define-graph-DQnj3fNH.js';
1
+ import { a as NodeType, b as AnyEdgeType, v as SchemaVersionRow, w as GraphBackend, x as SerializedSchema } from './types-Dh-EgT-w.js';
2
+ import { G as GraphDef } from './define-graph-DBFnc7u_.js';
3
+ import { S as SchemaDiff } from './materialize-indexes-BM3u0aXE.js';
4
4
 
5
5
  /**
6
6
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -152,158 +152,6 @@ declare class KindRegistry {
152
152
  getEdgeType(name: string): AnyEdgeType | undefined;
153
153
  }
154
154
 
155
- /**
156
- * Schema migration utilities.
157
- *
158
- * Provides diff detection between schema versions to identify
159
- * what has changed and what migrations might be needed.
160
- */
161
-
162
- /**
163
- * Types of changes that can occur in a schema.
164
- */
165
- type ChangeType = "added" | "removed" | "modified" | "renamed";
166
- /**
167
- * Severity of a change for migration purposes.
168
- */
169
- type ChangeSeverity = "safe" | "warning" | "breaking";
170
- /**
171
- * A change to a node definition.
172
- */
173
- type NodeChange = Readonly<{
174
- type: ChangeType;
175
- kind: string;
176
- severity: ChangeSeverity;
177
- details: string;
178
- before?: SerializedNodeDef | undefined;
179
- after?: SerializedNodeDef | undefined;
180
- }>;
181
- /**
182
- * A change to an edge definition.
183
- */
184
- type EdgeChange = Readonly<{
185
- type: ChangeType;
186
- kind: string;
187
- severity: ChangeSeverity;
188
- details: string;
189
- before?: SerializedEdgeDef | undefined;
190
- after?: SerializedEdgeDef | undefined;
191
- }>;
192
- /**
193
- * A change to the ontology.
194
- */
195
- type OntologyChange = Readonly<{
196
- type: ChangeType;
197
- entity: "metaEdge" | "relation";
198
- name: string;
199
- severity: ChangeSeverity;
200
- details: string;
201
- }>;
202
- /**
203
- * A change to an index declaration.
204
- *
205
- * Index changes are always `safe`-severity: index DDL is materialized
206
- * separately and never blocks schema-version commits or migrations.
207
- * Adding, removing, or modifying an index never invalidates existing
208
- * data — it only changes which physical indexes the deployment will
209
- * materialize on its next pass.
210
- */
211
- type IndexChange = Readonly<{
212
- type: ChangeType;
213
- /** Index name (the diffing identity key). */
214
- name: string;
215
- /**
216
- * Whether this index is on a node, edge, or vector field. Vector
217
- * index changes flow through the same diff classification as
218
- * relational ones.
219
- */
220
- entity: IndexEntity;
221
- severity: ChangeSeverity;
222
- details: string;
223
- before?: IndexDeclaration | undefined;
224
- after?: IndexDeclaration | undefined;
225
- }>;
226
- /**
227
- * A change to the persisted graph-extension document.
228
- *
229
- * Graph-extension document changes are committed only through the
230
- * graph-extension lifecycle verbs (`evolve` and `removeKinds`), so the
231
- * extension-slice change itself is `safe`-severity. The detailed
232
- * per-kind effect is captured in the corresponding node/edge/ontology
233
- * changes the merged document produced.
234
- */
235
- type ExtensionChange = Readonly<{
236
- type: ChangeType;
237
- severity: ChangeSeverity;
238
- details: string;
239
- }>;
240
- /**
241
- * Change to the soft-deprecated kind set. `safe`-severity by
242
- * construction — deprecation is a metadata signal that doesn't gate
243
- * reads, writes, or queries. The `added` and `removed` arrays carry
244
- * the per-name deltas so consumers can render granular diffs.
245
- */
246
- type DeprecatedKindsChange = Readonly<{
247
- added: readonly string[];
248
- removed: readonly string[];
249
- severity: ChangeSeverity;
250
- details: string;
251
- }>;
252
- /**
253
- * A complete diff between two schema versions.
254
- */
255
- type SchemaDiff = Readonly<{
256
- fromVersion: number;
257
- toVersion: number;
258
- /** Changes to node definitions */
259
- nodes: readonly NodeChange[];
260
- /** Changes to edge definitions */
261
- edges: readonly EdgeChange[];
262
- /** Changes to ontology */
263
- ontology: readonly OntologyChange[];
264
- /** Changes to index declarations */
265
- indexes: readonly IndexChange[];
266
- /**
267
- * Change to the graph-extension document, if any. `undefined` when
268
- * the slice is unchanged on both sides (the common case).
269
- */
270
- extension?: ExtensionChange;
271
- /**
272
- * Change to the soft-deprecated kind set, if any. `undefined` when
273
- * the set is unchanged on both sides.
274
- */
275
- deprecatedKinds?: DeprecatedKindsChange;
276
- /** Whether any breaking changes exist */
277
- hasBreakingChanges: boolean;
278
- /** Whether the change is backwards compatible (no breaking changes) */
279
- isBackwardsCompatible: boolean;
280
- /** Whether any changes exist at all */
281
- hasChanges: boolean;
282
- /** Summary of changes */
283
- summary: string;
284
- }>;
285
- /**
286
- * Computes the diff between two schema versions.
287
- *
288
- * @param before - The previous schema version
289
- * @param after - The new schema version
290
- * @returns A diff describing all changes
291
- */
292
- declare function computeSchemaDiff(before: SerializedSchema, after: SerializedSchema): SchemaDiff;
293
- /**
294
- * Checks if a schema change is backwards compatible.
295
- *
296
- * A change is backwards compatible if:
297
- * - No nodes or edges were removed
298
- * - No required properties were added
299
- * - No existing properties were removed
300
- */
301
- declare function isBackwardsCompatible(diff: SchemaDiff): boolean;
302
- /**
303
- * Gets a list of actions needed for migration.
304
- */
305
- declare function getMigrationActions(diff: SchemaDiff): readonly string[];
306
-
307
155
  /**
308
156
  * Schema manager for TypeGraph.
309
157
  *
@@ -552,5 +400,46 @@ declare function isSchemaInitialized(backend: GraphBackend, graphId: string): Pr
552
400
  * @returns The diff, or undefined if schema not initialized
553
401
  */
554
402
  declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaDiff | undefined>;
403
+ /**
404
+ * Whether committing `graph` would require a schema migration — a SELECT-only
405
+ * pre-flight with no DDL and no writes.
406
+ *
407
+ * Returns `true` when the schema has not been initialized yet (the privileged
408
+ * bootstrap is required) and when the committed schema is behind `graph`.
409
+ * This is the predicate a least-privilege runtime checks to route to the
410
+ * privileged path *before* a write discovers the migration wall mid-request.
411
+ *
412
+ * For the additive-vs-incompatible distinction, use `getSchemaChanges` and
413
+ * {@link classifySchemaChanges} instead — this collapses both to `true`.
414
+ *
415
+ * @param backend - The database backend
416
+ * @param graph - The current graph definition
417
+ * @returns Whether a privileged migration/bootstrap is required.
418
+ */
419
+ declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<boolean>;
420
+ /**
421
+ * Reads the committed schema version for a graph in a single round-trip — no
422
+ * schema reconcile, no diff, no materialization-marker reads.
423
+ *
424
+ * This is the cross-isolate invalidation probe for a cached reconciled schema:
425
+ * compare the returned version against the one a verified open recorded
426
+ * (`store.reconciledSchema.version`); when it has moved, another process
427
+ * committed a schema change and the cached reconciliation must be refreshed via
428
+ * `createVerifiedAdapterStore`. One read replaces the three-query verified open
429
+ * on the steady-state (unchanged) path — the round-trip that saturated the
430
+ * connection pool under fan-out.
431
+ *
432
+ * It reads the active schema *row* (via `backend.getActiveSchema`), so the
433
+ * committed `schema_doc` is transferred and normalized even though only the
434
+ * version is used. A version-only backend query would shrink the payload
435
+ * further; it is a backward-compatible follow-up, not required for the
436
+ * round-trip win above.
437
+ *
438
+ * @param backend - The database backend
439
+ * @param graphId - The graph ID
440
+ * @returns The active committed version, or `undefined` if the schema has not
441
+ * been initialized for this graph.
442
+ */
443
+ declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
555
444
 
556
- export { type ChangeSeverity as C, type DeprecatedKindsChange as D, type EdgeChange as E, type IndexChange as I, KindRegistry as K, type MigrationHookContext as M, type NodeChange as N, type OntologyChange as O, type SchemaManagerOptions as S, type ChangeType as a, type ExtensionChange as b, type SchemaDiff as c, type SchemaValidationResult as d, applyDeprecatedKinds as e, assertSchemaCurrent as f, computeSchemaDiff as g, ensureSchema as h, getActiveSchema as i, getMigrationActions as j, getSchemaChanges as k, initializeSchema as l, isBackwardsCompatible as m, isSchemaInitialized as n, loadActiveSchemaWithBootstrap as o, loadAndMergeGraphExtensionDocument as p, migrateSchema as q, parseSerializedSchema as r, rollbackSchema as s };
445
+ export { KindRegistry as K, type MigrationHookContext as M, type SchemaManagerOptions as S, type SchemaValidationResult as a, applyDeprecatedKinds as b, assertSchemaCurrent as c, getCommittedSchemaVersion as d, ensureSchema as e, getSchemaChanges as f, getActiveSchema as g, isSchemaInitialized as h, initializeSchema as i, loadAndMergeGraphExtensionDocument as j, rollbackSchema as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, parseSerializedSchema as p, requiresMigration as r };