@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,12 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../define-graph-XyJheaFm.cjs';
3
- import { a as Store } from '../store-view-PCT7vTKH.cjs';
4
- import '../extension-types-BLEVH4SG.cjs';
5
- import '../types-ho4DJJb_.cjs';
6
- import '../temporal-Dn_JADWY.cjs';
7
- import '../manager-Dm6MCYO7.cjs';
8
- import '../searchable-aUaKh3_r.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-BSviZubs.js';
3
- import { a as Store } from '../store-view-BDjGFjpN.js';
4
- import '../extension-types-BLEVH4SG.js';
5
- import '../types-D-vOo_pM.js';
6
- import '../temporal-CyFsSPe8.js';
7
- import '../manager-C7iC5bk_.js';
8
- import '../searchable-Cet4Oztt.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 { q as SerializedNodeDef, r as SerializedEdgeDef, I as IndexDeclaration, v as SerializedSchema, C as SchemaVersionRow, G as GraphBackend } from './types-D-vOo_pM.js';
3
- import { G as GraphDef } from './define-graph-BSviZubs.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,6 +400,23 @@ 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>;
555
420
  /**
556
421
  * Reads the committed schema version for a graph in a single round-trip — no
557
422
  * schema reconcile, no diff, no materialization-marker reads.
@@ -577,4 +442,4 @@ declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, gra
577
442
  */
578
443
  declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
579
444
 
580
- 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, getCommittedSchemaVersion as j, getMigrationActions as k, getSchemaChanges as l, initializeSchema as m, isBackwardsCompatible as n, isSchemaInitialized as o, loadActiveSchemaWithBootstrap as p, loadAndMergeGraphExtensionDocument as q, migrateSchema as r, parseSerializedSchema as s, rollbackSchema as t };
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 };
@@ -1,6 +1,6 @@
1
- import { a as NodeType, A as AnyEdgeType, I as IndexEntity } from './extension-types-BLEVH4SG.cjs';
2
- import { q as SerializedNodeDef, r as SerializedEdgeDef, I as IndexDeclaration, v as SerializedSchema, C as SchemaVersionRow, G as GraphBackend } from './types-ho4DJJb_.cjs';
3
- import { G as GraphDef } from './define-graph-XyJheaFm.cjs';
1
+ import { a as NodeType, b as AnyEdgeType, v as SchemaVersionRow, w as GraphBackend, x as SerializedSchema } from './types-Dh-EgT-w.cjs';
2
+ import { G as GraphDef } from './define-graph-Byslw2OO.cjs';
3
+ import { S as SchemaDiff } from './materialize-indexes-DzMCetZe.cjs';
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,6 +400,23 @@ 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>;
555
420
  /**
556
421
  * Reads the committed schema version for a graph in a single round-trip — no
557
422
  * schema reconcile, no diff, no materialization-marker reads.
@@ -577,4 +442,4 @@ declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, gra
577
442
  */
578
443
  declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
579
444
 
580
- 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, getCommittedSchemaVersion as j, getMigrationActions as k, getSchemaChanges as l, initializeSchema as m, isBackwardsCompatible as n, isSchemaInitialized as o, loadActiveSchemaWithBootstrap as p, loadAndMergeGraphExtensionDocument as q, migrateSchema as r, parseSerializedSchema as s, rollbackSchema as t };
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 };