@nicia-ai/typegraph 0.34.0 → 0.36.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 (287) hide show
  1. package/dist/backend/postgres/index.cjs +29 -29
  2. package/dist/backend/postgres/index.d.cts +39 -7
  3. package/dist/backend/postgres/index.d.ts +39 -7
  4. package/dist/backend/postgres/index.js +16 -16
  5. package/dist/backend/postgres/pglite.cjs +21 -21
  6. package/dist/backend/postgres/pglite.d.cts +4 -4
  7. package/dist/backend/postgres/pglite.d.ts +4 -4
  8. package/dist/backend/postgres/pglite.js +16 -16
  9. package/dist/backend/sqlite/index.cjs +25 -26
  10. package/dist/backend/sqlite/index.d.cts +8 -8
  11. package/dist/backend/sqlite/index.d.ts +8 -8
  12. package/dist/backend/sqlite/index.js +13 -14
  13. package/dist/backend/sqlite/libsql.cjs +19 -19
  14. package/dist/backend/sqlite/libsql.d.cts +4 -4
  15. package/dist/backend/sqlite/libsql.d.ts +4 -4
  16. package/dist/backend/sqlite/libsql.js +15 -15
  17. package/dist/backend/sqlite/local.cjs +101 -21
  18. package/dist/backend/sqlite/local.cjs.map +1 -1
  19. package/dist/backend/sqlite/local.d.cts +95 -5
  20. package/dist/backend/sqlite/local.d.ts +95 -5
  21. package/dist/backend/sqlite/local.js +95 -16
  22. package/dist/backend/sqlite/local.js.map +1 -1
  23. package/dist/{chunk-T6SPUYLX.cjs → chunk-2THZ3TQI.cjs} +116 -10
  24. package/dist/chunk-2THZ3TQI.cjs.map +1 -0
  25. package/dist/{chunk-UJLOZYKT.cjs → chunk-456Z2U7Y.cjs} +441 -115
  26. package/dist/chunk-456Z2U7Y.cjs.map +1 -0
  27. package/dist/chunk-4BCU6VFZ.cjs +100 -0
  28. package/dist/chunk-4BCU6VFZ.cjs.map +1 -0
  29. package/dist/chunk-4BMPGT35.cjs +12 -0
  30. package/dist/{chunk-HMFK4BXR.cjs.map → chunk-4BMPGT35.cjs.map} +1 -1
  31. package/dist/chunk-4CAXEB2F.cjs +1366 -0
  32. package/dist/chunk-4CAXEB2F.cjs.map +1 -0
  33. package/dist/{chunk-RY2VIWAM.js → chunk-4GX2JJXS.js} +355 -32
  34. package/dist/chunk-4GX2JJXS.js.map +1 -0
  35. package/dist/{chunk-GQANNXXT.cjs → chunk-5A6FNS6N.cjs} +75 -20
  36. package/dist/chunk-5A6FNS6N.cjs.map +1 -0
  37. package/dist/{chunk-3Z6TW3CT.cjs → chunk-5AQIKK56.cjs} +65 -25
  38. package/dist/chunk-5AQIKK56.cjs.map +1 -0
  39. package/dist/{chunk-WLRIWYHQ.js → chunk-5DIPR3L3.js} +2145 -1937
  40. package/dist/chunk-5DIPR3L3.js.map +1 -0
  41. package/dist/{chunk-BVTWD66D.js → chunk-5SEGFTZX.js} +3 -3
  42. package/dist/{chunk-BVTWD66D.js.map → chunk-5SEGFTZX.js.map} +1 -1
  43. package/dist/{chunk-A7SZZFAG.js → chunk-5VTR2F2K.js} +452 -109
  44. package/dist/chunk-5VTR2F2K.js.map +1 -0
  45. package/dist/{chunk-JJRCLAUN.cjs → chunk-5W4L6DLF.cjs} +116 -10
  46. package/dist/chunk-5W4L6DLF.cjs.map +1 -0
  47. package/dist/{chunk-6GNSY7AV.js → chunk-6FR2MMS6.js} +7 -7
  48. package/dist/chunk-6FR2MMS6.js.map +1 -0
  49. package/dist/{chunk-3BRVBQQD.cjs → chunk-7BQLPXK6.cjs} +2648 -2440
  50. package/dist/chunk-7BQLPXK6.cjs.map +1 -0
  51. package/dist/chunk-7YSP4V4R.cjs +69 -0
  52. package/dist/chunk-7YSP4V4R.cjs.map +1 -0
  53. package/dist/chunk-A42GCBGX.cjs +28 -0
  54. package/dist/chunk-A42GCBGX.cjs.map +1 -0
  55. package/dist/{chunk-ZV5N4DBG.js → chunk-BJVEU3ZL.js} +300 -58
  56. package/dist/chunk-BJVEU3ZL.js.map +1 -0
  57. package/dist/chunk-BYPOGQWK.js +25 -0
  58. package/dist/chunk-BYPOGQWK.js.map +1 -0
  59. package/dist/chunk-CUHM5CWJ.cjs +12 -0
  60. package/dist/chunk-CUHM5CWJ.cjs.map +1 -0
  61. package/dist/{chunk-2JXB3NYJ.cjs → chunk-D7ZEOS56.cjs} +25 -32
  62. package/dist/chunk-D7ZEOS56.cjs.map +1 -0
  63. package/dist/chunk-DFVLCOP6.js +10 -0
  64. package/dist/chunk-DFVLCOP6.js.map +1 -0
  65. package/dist/{chunk-JIEJCTDS.cjs → chunk-DIK74MXX.cjs} +37 -4
  66. package/dist/chunk-DIK74MXX.cjs.map +1 -0
  67. package/dist/chunk-DN5VP4JC.js +1343 -0
  68. package/dist/chunk-DN5VP4JC.js.map +1 -0
  69. package/dist/chunk-EOLERH7Y.cjs +40 -0
  70. package/dist/chunk-EOLERH7Y.cjs.map +1 -0
  71. package/dist/{chunk-TGJE22RM.cjs → chunk-FACJJWGF.cjs} +24 -6
  72. package/dist/chunk-FACJJWGF.cjs.map +1 -0
  73. package/dist/{chunk-WVC2Q2FD.cjs → chunk-FN35DLCN.cjs} +31 -9
  74. package/dist/chunk-FN35DLCN.cjs.map +1 -0
  75. package/dist/{chunk-KUTNI6SI.js → chunk-FPIZFYHE.js} +10 -18
  76. package/dist/chunk-FPIZFYHE.js.map +1 -0
  77. package/dist/{chunk-VCGO4V26.js → chunk-FRV5Q5IO.js} +64 -9
  78. package/dist/chunk-FRV5Q5IO.js.map +1 -0
  79. package/dist/{chunk-K5P5OZXS.js → chunk-G6Q5UM7U.js} +2 -2
  80. package/dist/{chunk-K5P5OZXS.js.map → chunk-G6Q5UM7U.js.map} +1 -1
  81. package/dist/{chunk-JQGIPGVL.cjs → chunk-H7YNSMA7.cjs} +43 -2
  82. package/dist/chunk-H7YNSMA7.cjs.map +1 -0
  83. package/dist/chunk-HW3LW7DH.cjs +1271 -0
  84. package/dist/chunk-HW3LW7DH.cjs.map +1 -0
  85. package/dist/{chunk-V3QNTB7Z.js → chunk-IU46OHVW.js} +194 -114
  86. package/dist/chunk-IU46OHVW.js.map +1 -0
  87. package/dist/{chunk-HK5SATYM.cjs → chunk-J3LEGNQB.cjs} +16 -109
  88. package/dist/chunk-J3LEGNQB.cjs.map +1 -0
  89. package/dist/{chunk-ZP5WHI4C.cjs → chunk-JFMEONLG.cjs} +358 -116
  90. package/dist/chunk-JFMEONLG.cjs.map +1 -0
  91. package/dist/{chunk-2MRAX3UE.js → chunk-JFUPDJXD.js} +47 -4
  92. package/dist/chunk-JFUPDJXD.js.map +1 -0
  93. package/dist/{chunk-Z5XBMDXU.js → chunk-KBGQIPRQ.js} +42 -3
  94. package/dist/chunk-KBGQIPRQ.js.map +1 -0
  95. package/dist/{chunk-K2TGS3EN.js → chunk-M75SUBFG.js} +138 -89
  96. package/dist/chunk-M75SUBFG.js.map +1 -0
  97. package/dist/chunk-OHMP6N2J.js +47 -0
  98. package/dist/chunk-OHMP6N2J.js.map +1 -0
  99. package/dist/{chunk-4DIBPQNJ.js → chunk-OR5ZA5WP.js} +135 -25
  100. package/dist/chunk-OR5ZA5WP.js.map +1 -0
  101. package/dist/{chunk-6HVOHZHS.cjs → chunk-PWGX5DF5.cjs} +213 -168
  102. package/dist/chunk-PWGX5DF5.cjs.map +1 -0
  103. package/dist/chunk-PZKNKG5M.js +1252 -0
  104. package/dist/chunk-PZKNKG5M.js.map +1 -0
  105. package/dist/{chunk-DEQFL35G.js → chunk-Q5TEXCTB.js} +61 -7
  106. package/dist/chunk-Q5TEXCTB.js.map +1 -0
  107. package/dist/{chunk-QV245VMN.js → chunk-RAXU3RMB.js} +100 -6
  108. package/dist/chunk-RAXU3RMB.js.map +1 -0
  109. package/dist/{chunk-RHZWOJVA.cjs → chunk-RSSQKPSZ.cjs} +52 -4
  110. package/dist/chunk-RSSQKPSZ.cjs.map +1 -0
  111. package/dist/{chunk-G6SOJEDI.cjs → chunk-S55OV6PW.cjs} +15 -15
  112. package/dist/chunk-S55OV6PW.cjs.map +1 -0
  113. package/dist/chunk-S5F7ZLP2.js +94 -0
  114. package/dist/chunk-S5F7ZLP2.js.map +1 -0
  115. package/dist/{chunk-3E7SNSIA.cjs → chunk-SJDMVITW.cjs} +4 -4
  116. package/dist/{chunk-3E7SNSIA.cjs.map → chunk-SJDMVITW.cjs.map} +1 -1
  117. package/dist/{chunk-CHXTTSC6.js → chunk-SKCOUWAX.js} +104 -5
  118. package/dist/chunk-SKCOUWAX.js.map +1 -0
  119. package/dist/{chunk-XLUNB2TZ.js → chunk-SNXVDZAJ.js} +3 -3
  120. package/dist/{chunk-XLUNB2TZ.js.map → chunk-SNXVDZAJ.js.map} +1 -1
  121. package/dist/{chunk-ZURTTSCM.js → chunk-SXGE7ITL.js} +6 -94
  122. package/dist/chunk-SXGE7ITL.js.map +1 -0
  123. package/dist/{chunk-RBV7YCQD.js → chunk-T2WUSPDA.js} +49 -9
  124. package/dist/chunk-T2WUSPDA.js.map +1 -0
  125. package/dist/{chunk-KGC4LY5T.cjs → chunk-TCOCYN2P.cjs} +75 -21
  126. package/dist/chunk-TCOCYN2P.cjs.map +1 -0
  127. package/dist/{chunk-FLRCVI2G.cjs → chunk-TDXIBCGY.cjs} +2 -2
  128. package/dist/{chunk-FLRCVI2G.cjs.map → chunk-TDXIBCGY.cjs.map} +1 -1
  129. package/dist/{chunk-ZY4GXIVN.cjs → chunk-TEDRJXOG.cjs} +5 -5
  130. package/dist/{chunk-ZY4GXIVN.cjs.map → chunk-TEDRJXOG.cjs.map} +1 -1
  131. package/dist/{chunk-WL2SG7ZV.cjs → chunk-UMDVATGY.cjs} +6 -6
  132. package/dist/{chunk-WL2SG7ZV.cjs.map → chunk-UMDVATGY.cjs.map} +1 -1
  133. package/dist/chunk-UT3S4SEN.js +31 -0
  134. package/dist/chunk-UT3S4SEN.js.map +1 -0
  135. package/dist/{chunk-RRKQAKD6.cjs → chunk-UUT7UN2N.cjs} +149 -39
  136. package/dist/chunk-UUT7UN2N.cjs.map +1 -0
  137. package/dist/{chunk-SHLY4MCM.js → chunk-UZV3AZKF.js} +21 -3
  138. package/dist/chunk-UZV3AZKF.js.map +1 -0
  139. package/dist/{chunk-CYX2JTDG.js → chunk-VHMPG6UL.js} +29 -7
  140. package/dist/chunk-VHMPG6UL.js.map +1 -0
  141. package/dist/{chunk-LANHCOXB.js → chunk-VQEXF5D4.js} +485 -83
  142. package/dist/chunk-VQEXF5D4.js.map +1 -0
  143. package/dist/{chunk-K34OPSJK.js → chunk-W63OVYY4.js} +3 -3
  144. package/dist/{chunk-K34OPSJK.js.map → chunk-W63OVYY4.js.map} +1 -1
  145. package/dist/{chunk-TQOYM4LN.js → chunk-WI7ISNQF.js} +35 -5
  146. package/dist/chunk-WI7ISNQF.js.map +1 -0
  147. package/dist/{chunk-UNNPKQUG.cjs → chunk-X4JBT642.cjs} +246 -155
  148. package/dist/chunk-X4JBT642.cjs.map +1 -0
  149. package/dist/chunk-ZAMFOJ5P.cjs +1176 -0
  150. package/dist/chunk-ZAMFOJ5P.cjs.map +1 -0
  151. package/dist/{chunk-T46GR2VY.js → chunk-ZIGXMKQQ.js} +3 -3
  152. package/dist/{chunk-T46GR2VY.js.map → chunk-ZIGXMKQQ.js.map} +1 -1
  153. package/dist/{chunk-5IQIX7LU.cjs → chunk-ZUNQ5BEP.cjs} +518 -172
  154. package/dist/chunk-ZUNQ5BEP.cjs.map +1 -0
  155. package/dist/{ddl-BrmPg61z.d.ts → ddl-C2rZ-Aen.d.ts} +4 -4
  156. package/dist/{ddl-j1-sH6lE.d.cts → ddl-CZz7a0E8.d.cts} +4 -4
  157. package/dist/{extension-types-YGFJPrzK.d.cts → extension-types-ixRpJVUp.d.cts} +24 -1
  158. package/dist/{extension-types-YGFJPrzK.d.ts → extension-types-ixRpJVUp.d.ts} +24 -1
  159. package/dist/{types-DkNnF-7K.d.cts → fulltext-strategy-B57yvC5Q.d.ts} +2562 -2133
  160. package/dist/{types-D1Sqeyxy.d.ts → fulltext-strategy-CDkSSYhq.d.cts} +2562 -2133
  161. package/dist/graph-extension/index.cjs +20 -19
  162. package/dist/graph-extension/index.d.cts +4 -4
  163. package/dist/graph-extension/index.d.ts +4 -4
  164. package/dist/graph-extension/index.js +5 -4
  165. package/dist/graph-merge/index.cjs +255 -164
  166. package/dist/graph-merge/index.cjs.map +1 -1
  167. package/dist/graph-merge/index.d.cts +63 -33
  168. package/dist/graph-merge/index.d.ts +63 -33
  169. package/dist/graph-merge/index.js +135 -44
  170. package/dist/graph-merge/index.js.map +1 -1
  171. package/dist/{index-DGX6D9j1.d.ts → index-BFvdmBPV.d.ts} +301 -93
  172. package/dist/{index-SEvUHDA6.d.cts → index-BLtQWKRj.d.cts} +301 -93
  173. package/dist/index.cjs +216 -188
  174. package/dist/index.d.cts +11 -11
  175. package/dist/index.d.ts +11 -11
  176. package/dist/index.js +33 -33
  177. package/dist/indexes/index.cjs +19 -20
  178. package/dist/indexes/index.d.cts +5 -5
  179. package/dist/indexes/index.d.ts +5 -5
  180. package/dist/indexes/index.js +10 -11
  181. package/dist/interchange/index.cjs +48 -26
  182. package/dist/interchange/index.d.cts +126 -12
  183. package/dist/interchange/index.d.ts +126 -12
  184. package/dist/interchange/index.js +15 -13
  185. package/dist/{manager-ms9cKdc6.d.cts → manager-DwQi8eV0.d.cts} +9 -2
  186. package/dist/{manager-BZUeN_BU.d.ts → manager-ejUCB52T.d.ts} +9 -2
  187. package/dist/{materialize-indexes-D20xNluI.d.cts → materialize-indexes-B4e9360H.d.cts} +20 -4
  188. package/dist/{materialize-indexes-CAkIYFV-.d.ts → materialize-indexes-te9TPMMJ.d.ts} +20 -4
  189. package/dist/{postgres-BhpxGMC5.d.cts → postgres-CfEqsRMp.d.cts} +152 -1
  190. package/dist/{postgres-CWHLwNl1.d.ts → postgres-DQ5R6rzV.d.ts} +152 -1
  191. package/dist/profiler/index.cjs +11 -11
  192. package/dist/profiler/index.d.cts +7 -7
  193. package/dist/profiler/index.d.ts +7 -7
  194. package/dist/profiler/index.js +4 -4
  195. package/dist/provenance/index.cjs +40 -41
  196. package/dist/provenance/index.cjs.map +1 -1
  197. package/dist/provenance/index.d.cts +5 -5
  198. package/dist/provenance/index.d.ts +5 -5
  199. package/dist/provenance/index.js +11 -12
  200. package/dist/provenance/index.js.map +1 -1
  201. package/dist/schema/index.cjs +53 -40
  202. package/dist/schema/index.cjs.map +1 -1
  203. package/dist/schema/index.d.cts +57 -57
  204. package/dist/schema/index.d.ts +57 -57
  205. package/dist/schema/index.js +28 -15
  206. package/dist/schema/index.js.map +1 -1
  207. package/dist/{sqlite-XrDxNaa7.d.cts → sqlite-D7zBinNR.d.cts} +92 -1
  208. package/dist/{sqlite-CGu5SLsw.d.ts → sqlite-DvQndLky.d.ts} +92 -1
  209. package/dist/{store-view-D09po4H6.d.cts → store-view-9KDOpZzF.d.cts} +643 -58
  210. package/dist/{store-view-BlgnhEYf.d.ts → store-view-DplHC3Nt.d.ts} +643 -58
  211. package/dist/{types-DiE1AO7p.d.cts → types-Bv9DcS_E.d.cts} +2 -2
  212. package/dist/{types-B1TbZJYS.d.ts → types-CoxuV7EJ.d.ts} +2 -2
  213. package/dist/{where-DKjuofPr.d.cts → where-7RKFOsXt.d.ts} +2 -2
  214. package/dist/{where-DrUIIWHb.d.ts → where-DdMIXOtH.d.cts} +2 -2
  215. package/package.json +14 -13
  216. package/dist/chunk-2EBMPJBO.js +0 -16
  217. package/dist/chunk-2EBMPJBO.js.map +0 -1
  218. package/dist/chunk-2JXB3NYJ.cjs.map +0 -1
  219. package/dist/chunk-2MRAX3UE.js.map +0 -1
  220. package/dist/chunk-3BRVBQQD.cjs.map +0 -1
  221. package/dist/chunk-3EUKJEQ3.js +0 -77
  222. package/dist/chunk-3EUKJEQ3.js.map +0 -1
  223. package/dist/chunk-3Z6TW3CT.cjs.map +0 -1
  224. package/dist/chunk-4DIBPQNJ.js.map +0 -1
  225. package/dist/chunk-4S2FXGBJ.js +0 -9
  226. package/dist/chunk-4S2FXGBJ.js.map +0 -1
  227. package/dist/chunk-5IQIX7LU.cjs.map +0 -1
  228. package/dist/chunk-6GNSY7AV.js.map +0 -1
  229. package/dist/chunk-6HVOHZHS.cjs.map +0 -1
  230. package/dist/chunk-6SCVW4AS.js +0 -20
  231. package/dist/chunk-6SCVW4AS.js.map +0 -1
  232. package/dist/chunk-A7SZZFAG.js.map +0 -1
  233. package/dist/chunk-CHXTTSC6.js.map +0 -1
  234. package/dist/chunk-CYX2JTDG.js.map +0 -1
  235. package/dist/chunk-DEQFL35G.js.map +0 -1
  236. package/dist/chunk-G6SOJEDI.cjs.map +0 -1
  237. package/dist/chunk-GQANNXXT.cjs.map +0 -1
  238. package/dist/chunk-GZCNZ7QW.js +0 -24
  239. package/dist/chunk-GZCNZ7QW.js.map +0 -1
  240. package/dist/chunk-HK5SATYM.cjs.map +0 -1
  241. package/dist/chunk-HMFK4BXR.cjs +0 -12
  242. package/dist/chunk-HTGDWIDE.cjs +0 -89
  243. package/dist/chunk-HTGDWIDE.cjs.map +0 -1
  244. package/dist/chunk-JIEJCTDS.cjs.map +0 -1
  245. package/dist/chunk-JJRCLAUN.cjs.map +0 -1
  246. package/dist/chunk-JQGIPGVL.cjs.map +0 -1
  247. package/dist/chunk-K2TGS3EN.js.map +0 -1
  248. package/dist/chunk-KGC4LY5T.cjs.map +0 -1
  249. package/dist/chunk-KNHYNQQ3.cjs +0 -663
  250. package/dist/chunk-KNHYNQQ3.cjs.map +0 -1
  251. package/dist/chunk-KUTNI6SI.js.map +0 -1
  252. package/dist/chunk-LANHCOXB.js.map +0 -1
  253. package/dist/chunk-N6WTUSBV.cjs +0 -23
  254. package/dist/chunk-N6WTUSBV.cjs.map +0 -1
  255. package/dist/chunk-NAUA4PW5.cjs +0 -28
  256. package/dist/chunk-NAUA4PW5.cjs.map +0 -1
  257. package/dist/chunk-QV245VMN.js.map +0 -1
  258. package/dist/chunk-RBV7YCQD.js.map +0 -1
  259. package/dist/chunk-RHZWOJVA.cjs.map +0 -1
  260. package/dist/chunk-RRKQAKD6.cjs.map +0 -1
  261. package/dist/chunk-RY2VIWAM.js.map +0 -1
  262. package/dist/chunk-SHLY4MCM.js.map +0 -1
  263. package/dist/chunk-T2DWPQNE.js +0 -649
  264. package/dist/chunk-T2DWPQNE.js.map +0 -1
  265. package/dist/chunk-T6SPUYLX.cjs.map +0 -1
  266. package/dist/chunk-TGJE22RM.cjs.map +0 -1
  267. package/dist/chunk-TOTPVGOG.cjs +0 -774
  268. package/dist/chunk-TOTPVGOG.cjs.map +0 -1
  269. package/dist/chunk-TQOYM4LN.js.map +0 -1
  270. package/dist/chunk-UJLOZYKT.cjs.map +0 -1
  271. package/dist/chunk-UNNPKQUG.cjs.map +0 -1
  272. package/dist/chunk-V3QNTB7Z.js.map +0 -1
  273. package/dist/chunk-VCGO4V26.js.map +0 -1
  274. package/dist/chunk-WLRIWYHQ.js.map +0 -1
  275. package/dist/chunk-WVC2Q2FD.cjs.map +0 -1
  276. package/dist/chunk-XXVEULWX.js +0 -39
  277. package/dist/chunk-XXVEULWX.js.map +0 -1
  278. package/dist/chunk-YAZE7QZR.cjs +0 -32
  279. package/dist/chunk-YAZE7QZR.cjs.map +0 -1
  280. package/dist/chunk-YC6PWTHY.cjs +0 -44
  281. package/dist/chunk-YC6PWTHY.cjs.map +0 -1
  282. package/dist/chunk-Z5HBYM7U.cjs +0 -11
  283. package/dist/chunk-Z5HBYM7U.cjs.map +0 -1
  284. package/dist/chunk-Z5XBMDXU.js.map +0 -1
  285. package/dist/chunk-ZP5WHI4C.cjs.map +0 -1
  286. package/dist/chunk-ZURTTSCM.js.map +0 -1
  287. package/dist/chunk-ZV5N4DBG.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-ms9cKdc6.cjs';
3
- import { S as Store } from '../store-view-D09po4H6.cjs';
4
- import '../extension-types-YGFJPrzK.cjs';
5
- import '../types-DkNnF-7K.cjs';
2
+ import { G as GraphDef } from '../manager-DwQi8eV0.cjs';
3
+ import { S as Store } from '../store-view-9KDOpZzF.cjs';
4
+ import '../extension-types-ixRpJVUp.cjs';
5
+ import '../fulltext-strategy-CDkSSYhq.cjs';
6
6
  import 'drizzle-orm';
7
7
  import 'drizzle-orm/pg-core';
8
8
  import 'drizzle-orm/sqlite-core';
9
- import '../materialize-indexes-D20xNluI.cjs';
9
+ import '../materialize-indexes-B4e9360H.cjs';
10
10
 
11
11
  /**
12
12
  * Graph interchange format types.
@@ -33,7 +33,7 @@ declare const InterchangeNodeSchema: z.ZodObject<{
33
33
  kind: z.ZodString;
34
34
  id: z.ZodString;
35
35
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
36
- validFrom: z.ZodOptional<z.ZodISODateTime>;
36
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
37
37
  validTo: z.ZodOptional<z.ZodISODateTime>;
38
38
  meta: z.ZodOptional<z.ZodObject<{
39
39
  version: z.ZodOptional<z.ZodNumber>;
@@ -60,7 +60,7 @@ declare const InterchangeEdgeSchema: z.ZodObject<{
60
60
  id: z.ZodString;
61
61
  }, z.core.$strip>;
62
62
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63
- validFrom: z.ZodOptional<z.ZodISODateTime>;
63
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
64
64
  validTo: z.ZodOptional<z.ZodISODateTime>;
65
65
  meta: z.ZodOptional<z.ZodObject<{
66
66
  createdAt: z.ZodOptional<z.ZodISODateTime>;
@@ -110,8 +110,18 @@ declare const ImportOptionsSchema: z.ZodObject<{
110
110
  }>>;
111
111
  validateReferences: z.ZodDefault<z.ZodBoolean>;
112
112
  batchSize: z.ZodDefault<z.ZodNumber>;
113
+ refreshStatistics: z.ZodOptional<z.ZodBoolean>;
114
+ onStreamChunkError: z.ZodDefault<z.ZodEnum<{
115
+ abort: "abort";
116
+ continue: "continue";
117
+ }>>;
113
118
  }, z.core.$strip>;
114
- type ImportOptions = z.infer<typeof ImportOptionsSchema>;
119
+ /**
120
+ * Caller-facing options: fields with schema defaults are optional.
121
+ * `importGraph` parses these once at its boundary; internal stages
122
+ * consume {@link ResolvedImportOptions} with every default applied.
123
+ */
124
+ type ImportOptions = z.input<typeof ImportOptionsSchema>;
115
125
  /**
116
126
  * Source metadata for graph data.
117
127
  *
@@ -149,7 +159,7 @@ declare const GraphDataSchema: z.ZodObject<{
149
159
  kind: z.ZodString;
150
160
  id: z.ZodString;
151
161
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
152
- validFrom: z.ZodOptional<z.ZodISODateTime>;
162
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
153
163
  validTo: z.ZodOptional<z.ZodISODateTime>;
154
164
  meta: z.ZodOptional<z.ZodObject<{
155
165
  version: z.ZodOptional<z.ZodNumber>;
@@ -169,7 +179,7 @@ declare const GraphDataSchema: z.ZodObject<{
169
179
  id: z.ZodString;
170
180
  }, z.core.$strip>;
171
181
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
172
- validFrom: z.ZodOptional<z.ZodISODateTime>;
182
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
173
183
  validTo: z.ZodOptional<z.ZodISODateTime>;
174
184
  meta: z.ZodOptional<z.ZodObject<{
175
185
  createdAt: z.ZodOptional<z.ZodISODateTime>;
@@ -178,6 +188,76 @@ declare const GraphDataSchema: z.ZodObject<{
178
188
  }, z.core.$strip>>;
179
189
  }, z.core.$strip>;
180
190
  type GraphData = z.infer<typeof GraphDataSchema>;
191
+ /** The metadata envelope emitted before streamed graph entities. */
192
+ declare const GraphDataHeaderSchema: z.ZodObject<{
193
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
194
+ type: z.ZodLiteral<"typegraph-export">;
195
+ graphId: z.ZodString;
196
+ schemaVersion: z.ZodNumber;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"external">;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>], "type">;
201
+ formatVersion: z.ZodLiteral<"1.0">;
202
+ exportedAt: z.ZodISODateTime;
203
+ }, z.core.$strip>;
204
+ type GraphDataHeader = z.infer<typeof GraphDataHeaderSchema>;
205
+ /**
206
+ * One bounded unit in the streamed interchange protocol. Nodes always precede
207
+ * edges, so an importer can validate endpoints from rows already written to its
208
+ * target without retaining all prior nodes in memory.
209
+ */
210
+ declare const GraphInterchangeChunkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ type: z.ZodLiteral<"header">;
212
+ header: z.ZodObject<{
213
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"typegraph-export">;
215
+ graphId: z.ZodString;
216
+ schemaVersion: z.ZodNumber;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"external">;
219
+ description: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>], "type">;
221
+ formatVersion: z.ZodLiteral<"1.0">;
222
+ exportedAt: z.ZodISODateTime;
223
+ }, z.core.$strip>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ type: z.ZodLiteral<"nodes">;
226
+ nodes: z.ZodArray<z.ZodObject<{
227
+ kind: z.ZodString;
228
+ id: z.ZodString;
229
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
230
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
231
+ validTo: z.ZodOptional<z.ZodISODateTime>;
232
+ meta: z.ZodOptional<z.ZodObject<{
233
+ version: z.ZodOptional<z.ZodNumber>;
234
+ createdAt: z.ZodOptional<z.ZodISODateTime>;
235
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
236
+ }, z.core.$strip>>;
237
+ }, z.core.$strip>>;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ type: z.ZodLiteral<"edges">;
240
+ edges: z.ZodArray<z.ZodObject<{
241
+ kind: z.ZodString;
242
+ id: z.ZodString;
243
+ from: z.ZodObject<{
244
+ kind: z.ZodString;
245
+ id: z.ZodString;
246
+ }, z.core.$strip>;
247
+ to: z.ZodObject<{
248
+ kind: z.ZodString;
249
+ id: z.ZodString;
250
+ }, z.core.$strip>;
251
+ properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
253
+ validTo: z.ZodOptional<z.ZodISODateTime>;
254
+ meta: z.ZodOptional<z.ZodObject<{
255
+ createdAt: z.ZodOptional<z.ZodISODateTime>;
256
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>>;
259
+ }, z.core.$strip>], "type">;
260
+ type GraphInterchangeChunk = z.infer<typeof GraphInterchangeChunkSchema>;
181
261
  /**
182
262
  * An error that occurred during import.
183
263
  */
@@ -233,6 +313,20 @@ declare const ExportOptionsSchema: z.ZodObject<{
233
313
  type ExportOptions = z.infer<typeof ExportOptionsSchema>;
234
314
  /** Export options as accepted by exportGraph (input type with optional defaults) */
235
315
  type ExportOptionsInput = z.input<typeof ExportOptionsSchema>;
316
+ /**
317
+ * Export options for {@link exportGraphStream}. `batchSize` bounds the number
318
+ * of node or edge entities retained for one yielded chunk.
319
+ */
320
+ declare const ExportStreamOptionsSchema: z.ZodObject<{
321
+ nodeKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
322
+ edgeKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
323
+ includeTemporal: z.ZodDefault<z.ZodBoolean>;
324
+ includeMeta: z.ZodDefault<z.ZodBoolean>;
325
+ includeDeleted: z.ZodDefault<z.ZodBoolean>;
326
+ batchSize: z.ZodDefault<z.ZodNumber>;
327
+ }, z.core.$strip>;
328
+ type ExportStreamOptions = z.infer<typeof ExportStreamOptionsSchema>;
329
+ type ExportStreamOptionsInput = z.input<typeof ExportStreamOptionsSchema>;
236
330
 
237
331
  /**
238
332
  * Export graph data from a store.
@@ -253,6 +347,13 @@ type ExportOptionsInput = z.input<typeof ExportOptionsSchema>;
253
347
  * ```
254
348
  */
255
349
  declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: ExportOptionsInput): Promise<GraphData>;
350
+ /**
351
+ * Exports a graph as bounded node and edge chunks. The stream always yields one
352
+ * header, then every node chunk, then every edge chunk. Consumers that write to
353
+ * a network, file, or fresh working copy can process one chunk at a time rather
354
+ * than materializing a graph-sized {@link GraphData} value.
355
+ */
356
+ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
256
357
 
257
358
  /**
258
359
  * Import graph data into a store.
@@ -275,6 +376,19 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
275
376
  * console.log(`Created ${result.nodes.created} nodes`);
276
377
  * ```
277
378
  */
278
- declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, options: ImportOptions): Promise<ImportResult>;
379
+ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
380
+ /**
381
+ * Imports a header-first stream of bounded interchange chunks.
382
+ *
383
+ * Each chunk is committed through the same {@link importGraph} implementation
384
+ * as an in-memory import, so validation and conflict semantics stay identical.
385
+ * Chunks are individually atomic on transactional backends; a consumer needing
386
+ * all-or-nothing behavior can import into a disposable working-copy backend and
387
+ * publish it only after this function succeeds.
388
+ *
389
+ * Nodes must precede edges. Once a node chunk commits, edge validation reads the
390
+ * target store rather than retaining every imported node id in memory.
391
+ */
392
+ declare function importGraphStream<G extends GraphDef>(store: Store<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
279
393
 
280
- export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, FORMAT_VERSION, type GraphData, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeNode, InterchangeNodeSchema, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, importGraph };
394
+ export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeNode, InterchangeNodeSchema, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream };
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-BZUeN_BU.js';
3
- import { S as Store } from '../store-view-BlgnhEYf.js';
4
- import '../extension-types-YGFJPrzK.js';
5
- import '../types-D1Sqeyxy.js';
2
+ import { G as GraphDef } from '../manager-ejUCB52T.js';
3
+ import { S as Store } from '../store-view-DplHC3Nt.js';
4
+ import '../extension-types-ixRpJVUp.js';
5
+ import '../fulltext-strategy-B57yvC5Q.js';
6
6
  import 'drizzle-orm';
7
7
  import 'drizzle-orm/pg-core';
8
8
  import 'drizzle-orm/sqlite-core';
9
- import '../materialize-indexes-CAkIYFV-.js';
9
+ import '../materialize-indexes-te9TPMMJ.js';
10
10
 
11
11
  /**
12
12
  * Graph interchange format types.
@@ -33,7 +33,7 @@ declare const InterchangeNodeSchema: z.ZodObject<{
33
33
  kind: z.ZodString;
34
34
  id: z.ZodString;
35
35
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
36
- validFrom: z.ZodOptional<z.ZodISODateTime>;
36
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
37
37
  validTo: z.ZodOptional<z.ZodISODateTime>;
38
38
  meta: z.ZodOptional<z.ZodObject<{
39
39
  version: z.ZodOptional<z.ZodNumber>;
@@ -60,7 +60,7 @@ declare const InterchangeEdgeSchema: z.ZodObject<{
60
60
  id: z.ZodString;
61
61
  }, z.core.$strip>;
62
62
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63
- validFrom: z.ZodOptional<z.ZodISODateTime>;
63
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
64
64
  validTo: z.ZodOptional<z.ZodISODateTime>;
65
65
  meta: z.ZodOptional<z.ZodObject<{
66
66
  createdAt: z.ZodOptional<z.ZodISODateTime>;
@@ -110,8 +110,18 @@ declare const ImportOptionsSchema: z.ZodObject<{
110
110
  }>>;
111
111
  validateReferences: z.ZodDefault<z.ZodBoolean>;
112
112
  batchSize: z.ZodDefault<z.ZodNumber>;
113
+ refreshStatistics: z.ZodOptional<z.ZodBoolean>;
114
+ onStreamChunkError: z.ZodDefault<z.ZodEnum<{
115
+ abort: "abort";
116
+ continue: "continue";
117
+ }>>;
113
118
  }, z.core.$strip>;
114
- type ImportOptions = z.infer<typeof ImportOptionsSchema>;
119
+ /**
120
+ * Caller-facing options: fields with schema defaults are optional.
121
+ * `importGraph` parses these once at its boundary; internal stages
122
+ * consume {@link ResolvedImportOptions} with every default applied.
123
+ */
124
+ type ImportOptions = z.input<typeof ImportOptionsSchema>;
115
125
  /**
116
126
  * Source metadata for graph data.
117
127
  *
@@ -149,7 +159,7 @@ declare const GraphDataSchema: z.ZodObject<{
149
159
  kind: z.ZodString;
150
160
  id: z.ZodString;
151
161
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
152
- validFrom: z.ZodOptional<z.ZodISODateTime>;
162
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
153
163
  validTo: z.ZodOptional<z.ZodISODateTime>;
154
164
  meta: z.ZodOptional<z.ZodObject<{
155
165
  version: z.ZodOptional<z.ZodNumber>;
@@ -169,7 +179,7 @@ declare const GraphDataSchema: z.ZodObject<{
169
179
  id: z.ZodString;
170
180
  }, z.core.$strip>;
171
181
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
172
- validFrom: z.ZodOptional<z.ZodISODateTime>;
182
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
173
183
  validTo: z.ZodOptional<z.ZodISODateTime>;
174
184
  meta: z.ZodOptional<z.ZodObject<{
175
185
  createdAt: z.ZodOptional<z.ZodISODateTime>;
@@ -178,6 +188,76 @@ declare const GraphDataSchema: z.ZodObject<{
178
188
  }, z.core.$strip>>;
179
189
  }, z.core.$strip>;
180
190
  type GraphData = z.infer<typeof GraphDataSchema>;
191
+ /** The metadata envelope emitted before streamed graph entities. */
192
+ declare const GraphDataHeaderSchema: z.ZodObject<{
193
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
194
+ type: z.ZodLiteral<"typegraph-export">;
195
+ graphId: z.ZodString;
196
+ schemaVersion: z.ZodNumber;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"external">;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>], "type">;
201
+ formatVersion: z.ZodLiteral<"1.0">;
202
+ exportedAt: z.ZodISODateTime;
203
+ }, z.core.$strip>;
204
+ type GraphDataHeader = z.infer<typeof GraphDataHeaderSchema>;
205
+ /**
206
+ * One bounded unit in the streamed interchange protocol. Nodes always precede
207
+ * edges, so an importer can validate endpoints from rows already written to its
208
+ * target without retaining all prior nodes in memory.
209
+ */
210
+ declare const GraphInterchangeChunkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ type: z.ZodLiteral<"header">;
212
+ header: z.ZodObject<{
213
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"typegraph-export">;
215
+ graphId: z.ZodString;
216
+ schemaVersion: z.ZodNumber;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"external">;
219
+ description: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>], "type">;
221
+ formatVersion: z.ZodLiteral<"1.0">;
222
+ exportedAt: z.ZodISODateTime;
223
+ }, z.core.$strip>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ type: z.ZodLiteral<"nodes">;
226
+ nodes: z.ZodArray<z.ZodObject<{
227
+ kind: z.ZodString;
228
+ id: z.ZodString;
229
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
230
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
231
+ validTo: z.ZodOptional<z.ZodISODateTime>;
232
+ meta: z.ZodOptional<z.ZodObject<{
233
+ version: z.ZodOptional<z.ZodNumber>;
234
+ createdAt: z.ZodOptional<z.ZodISODateTime>;
235
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
236
+ }, z.core.$strip>>;
237
+ }, z.core.$strip>>;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ type: z.ZodLiteral<"edges">;
240
+ edges: z.ZodArray<z.ZodObject<{
241
+ kind: z.ZodString;
242
+ id: z.ZodString;
243
+ from: z.ZodObject<{
244
+ kind: z.ZodString;
245
+ id: z.ZodString;
246
+ }, z.core.$strip>;
247
+ to: z.ZodObject<{
248
+ kind: z.ZodString;
249
+ id: z.ZodString;
250
+ }, z.core.$strip>;
251
+ properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
253
+ validTo: z.ZodOptional<z.ZodISODateTime>;
254
+ meta: z.ZodOptional<z.ZodObject<{
255
+ createdAt: z.ZodOptional<z.ZodISODateTime>;
256
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>>;
259
+ }, z.core.$strip>], "type">;
260
+ type GraphInterchangeChunk = z.infer<typeof GraphInterchangeChunkSchema>;
181
261
  /**
182
262
  * An error that occurred during import.
183
263
  */
@@ -233,6 +313,20 @@ declare const ExportOptionsSchema: z.ZodObject<{
233
313
  type ExportOptions = z.infer<typeof ExportOptionsSchema>;
234
314
  /** Export options as accepted by exportGraph (input type with optional defaults) */
235
315
  type ExportOptionsInput = z.input<typeof ExportOptionsSchema>;
316
+ /**
317
+ * Export options for {@link exportGraphStream}. `batchSize` bounds the number
318
+ * of node or edge entities retained for one yielded chunk.
319
+ */
320
+ declare const ExportStreamOptionsSchema: z.ZodObject<{
321
+ nodeKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
322
+ edgeKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
323
+ includeTemporal: z.ZodDefault<z.ZodBoolean>;
324
+ includeMeta: z.ZodDefault<z.ZodBoolean>;
325
+ includeDeleted: z.ZodDefault<z.ZodBoolean>;
326
+ batchSize: z.ZodDefault<z.ZodNumber>;
327
+ }, z.core.$strip>;
328
+ type ExportStreamOptions = z.infer<typeof ExportStreamOptionsSchema>;
329
+ type ExportStreamOptionsInput = z.input<typeof ExportStreamOptionsSchema>;
236
330
 
237
331
  /**
238
332
  * Export graph data from a store.
@@ -253,6 +347,13 @@ type ExportOptionsInput = z.input<typeof ExportOptionsSchema>;
253
347
  * ```
254
348
  */
255
349
  declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: ExportOptionsInput): Promise<GraphData>;
350
+ /**
351
+ * Exports a graph as bounded node and edge chunks. The stream always yields one
352
+ * header, then every node chunk, then every edge chunk. Consumers that write to
353
+ * a network, file, or fresh working copy can process one chunk at a time rather
354
+ * than materializing a graph-sized {@link GraphData} value.
355
+ */
356
+ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
256
357
 
257
358
  /**
258
359
  * Import graph data into a store.
@@ -275,6 +376,19 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
275
376
  * console.log(`Created ${result.nodes.created} nodes`);
276
377
  * ```
277
378
  */
278
- declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, options: ImportOptions): Promise<ImportResult>;
379
+ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
380
+ /**
381
+ * Imports a header-first stream of bounded interchange chunks.
382
+ *
383
+ * Each chunk is committed through the same {@link importGraph} implementation
384
+ * as an in-memory import, so validation and conflict semantics stay identical.
385
+ * Chunks are individually atomic on transactional backends; a consumer needing
386
+ * all-or-nothing behavior can import into a disposable working-copy backend and
387
+ * publish it only after this function succeeds.
388
+ *
389
+ * Nodes must precede edges. Once a node chunk commits, edge validation reads the
390
+ * target store rather than retaining every imported node id in memory.
391
+ */
392
+ declare function importGraphStream<G extends GraphDef>(store: Store<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
279
393
 
280
- export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, FORMAT_VERSION, type GraphData, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeNode, InterchangeNodeSchema, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, importGraph };
394
+ export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeNode, InterchangeNodeSchema, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream };
@@ -1,15 +1,17 @@
1
- export { ConflictStrategySchema, ExportOptionsSchema, FORMAT_VERSION, GraphDataSchema, GraphDataSourceSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, importGraph } from '../chunk-T2DWPQNE.js';
2
- import '../chunk-6SCVW4AS.js';
3
- import '../chunk-CHXTTSC6.js';
4
- import '../chunk-A7SZZFAG.js';
5
- import '../chunk-V3QNTB7Z.js';
6
- import '../chunk-XXVEULWX.js';
7
- import '../chunk-2MRAX3UE.js';
8
- import '../chunk-GZCNZ7QW.js';
9
- import '../chunk-2EBMPJBO.js';
10
- import '../chunk-Z5XBMDXU.js';
11
- import '../chunk-XLUNB2TZ.js';
12
- import '../chunk-TQOYM4LN.js';
13
- import '../chunk-K5P5OZXS.js';
1
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-PZKNKG5M.js';
2
+ import '../chunk-DN5VP4JC.js';
3
+ import '../chunk-SKCOUWAX.js';
4
+ import '../chunk-UR7W5YQK.js';
5
+ import '../chunk-FPIZFYHE.js';
6
+ import '../chunk-S5F7ZLP2.js';
7
+ import '../chunk-5VTR2F2K.js';
8
+ import '../chunk-UT3S4SEN.js';
9
+ import '../chunk-IU46OHVW.js';
10
+ import '../chunk-JFUPDJXD.js';
11
+ import '../chunk-OHMP6N2J.js';
12
+ import '../chunk-KBGQIPRQ.js';
13
+ import '../chunk-SNXVDZAJ.js';
14
+ import '../chunk-WI7ISNQF.js';
15
+ import '../chunk-G6Q5UM7U.js';
14
16
  //# sourceMappingURL=index.js.map
15
17
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-YGFJPrzK.cjs';
2
- import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, H as SchemaVersionRow, G as GraphBackend } from './types-DkNnF-7K.cjs';
1
+ import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-ixRpJVUp.cjs';
2
+ import { O as OntologyRelation, I as IndexDeclaration, u as SerializedNodeDef, v as SerializedEdgeDef, s as SerializedSchema, H as SchemaVersionRow, G as GraphBackend } from './fulltext-strategy-CDkSSYhq.cjs';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -296,6 +296,13 @@ declare class KindRegistry {
296
296
  * Uses subsumption: Company is assignable to Organization if Company subClassOf Organization.
297
297
  */
298
298
  isAssignableTo(concreteKind: string, targetKind: string): boolean;
299
+ /**
300
+ * Checks if a concrete kind is assignable to at least one of the given
301
+ * target kinds. Shared by every "is this kind usable where one of these
302
+ * kinds is expected" check (edge endpoint validation, ontology relation
303
+ * endpoint compatibility) so they can't independently drift.
304
+ */
305
+ isAssignableToAny(concreteKind: string, targetKinds: readonly string[]): boolean;
299
306
  /**
300
307
  * Validates that a kind exists in the registry.
301
308
  */
@@ -1,5 +1,5 @@
1
- import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-YGFJPrzK.js';
2
- import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, H as SchemaVersionRow, G as GraphBackend } from './types-D1Sqeyxy.js';
1
+ import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-ixRpJVUp.js';
2
+ import { O as OntologyRelation, I as IndexDeclaration, u as SerializedNodeDef, v as SerializedEdgeDef, s as SerializedSchema, H as SchemaVersionRow, G as GraphBackend } from './fulltext-strategy-B57yvC5Q.js';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -296,6 +296,13 @@ declare class KindRegistry {
296
296
  * Uses subsumption: Company is assignable to Organization if Company subClassOf Organization.
297
297
  */
298
298
  isAssignableTo(concreteKind: string, targetKind: string): boolean;
299
+ /**
300
+ * Checks if a concrete kind is assignable to at least one of the given
301
+ * target kinds. Shared by every "is this kind usable where one of these
302
+ * kinds is expected" check (edge endpoint validation, ontology relation
303
+ * endpoint compatibility) so they can't independently drift.
304
+ */
305
+ isAssignableToAny(concreteKind: string, targetKinds: readonly string[]): boolean;
299
306
  /**
300
307
  * Validates that a kind exists in the registry.
301
308
  */
@@ -1,4 +1,4 @@
1
- import { I as IndexEntity } from './extension-types-YGFJPrzK.cjs';
1
+ import { I as IndexEntity } from './extension-types-ixRpJVUp.cjs';
2
2
 
3
3
  /**
4
4
  * Index materialization — runs declared index DDL against the live
@@ -23,9 +23,14 @@ import { I as IndexEntity } from './extension-types-YGFJPrzK.cjs';
23
23
  * only that something with that name exists. Drift detection here
24
24
  * relies on TypeGraph's recorded signature, not on PG metadata.
25
25
  * - Failed `CONCURRENTLY` builds leave invalid indexes behind
26
- * (`pg_index.indisvalid = false`). v1 surfaces this as a `failed`
27
- * result; the operator must drop the invalid index manually before
28
- * retry.
26
+ * (`pg_index.indisvalid = false`). Relational rebuilds self-heal: the
27
+ * claim-holding materializer drops an invalid leftover with the
28
+ * declaration's name before rebuilding (see dropInvalidIndexLeftover).
29
+ * Vector per-field index leftovers remain operator-repair.
30
+ * - Two materializers racing the SAME index name serialize through a
31
+ * durable claim in the status table (see materializeWithClaim) —
32
+ * concurrent same-name expression-index CIC builds deadlock on
33
+ * Postgres (no safe-snapshot exemption).
29
34
  */
30
35
 
31
36
  type MaterializeIndexesOptions = Readonly<{
@@ -33,6 +38,17 @@ type MaterializeIndexesOptions = Readonly<{
33
38
  kinds?: readonly string[];
34
39
  /** Stop on the first failure. Default: false (best-effort). */
35
40
  stopOnError?: boolean;
41
+ /**
42
+ * Refresh planner statistics (ANALYZE) after at least one index was
43
+ * created. A fresh index can be ignored by the planner until statistics
44
+ * exist. Default: true. Applied on non-concurrent builders (SQLite) and
45
+ * on concurrent builders that serialize same-index builds via the
46
+ * cross-caller claim primitive (the bundled Postgres backend); a custom
47
+ * concurrent backend without the primitive skips the refresh — see
48
+ * refreshStatisticsAfterCreation — and should call
49
+ * `store.refreshStatistics()` after materializing.
50
+ */
51
+ refreshStatistics?: boolean;
36
52
  }>;
37
53
  /**
38
54
  * Per-index outcome from `materializeIndexes()`.
@@ -1,4 +1,4 @@
1
- import { I as IndexEntity } from './extension-types-YGFJPrzK.js';
1
+ import { I as IndexEntity } from './extension-types-ixRpJVUp.js';
2
2
 
3
3
  /**
4
4
  * Index materialization — runs declared index DDL against the live
@@ -23,9 +23,14 @@ import { I as IndexEntity } from './extension-types-YGFJPrzK.js';
23
23
  * only that something with that name exists. Drift detection here
24
24
  * relies on TypeGraph's recorded signature, not on PG metadata.
25
25
  * - Failed `CONCURRENTLY` builds leave invalid indexes behind
26
- * (`pg_index.indisvalid = false`). v1 surfaces this as a `failed`
27
- * result; the operator must drop the invalid index manually before
28
- * retry.
26
+ * (`pg_index.indisvalid = false`). Relational rebuilds self-heal: the
27
+ * claim-holding materializer drops an invalid leftover with the
28
+ * declaration's name before rebuilding (see dropInvalidIndexLeftover).
29
+ * Vector per-field index leftovers remain operator-repair.
30
+ * - Two materializers racing the SAME index name serialize through a
31
+ * durable claim in the status table (see materializeWithClaim) —
32
+ * concurrent same-name expression-index CIC builds deadlock on
33
+ * Postgres (no safe-snapshot exemption).
29
34
  */
30
35
 
31
36
  type MaterializeIndexesOptions = Readonly<{
@@ -33,6 +38,17 @@ type MaterializeIndexesOptions = Readonly<{
33
38
  kinds?: readonly string[];
34
39
  /** Stop on the first failure. Default: false (best-effort). */
35
40
  stopOnError?: boolean;
41
+ /**
42
+ * Refresh planner statistics (ANALYZE) after at least one index was
43
+ * created. A fresh index can be ignored by the planner until statistics
44
+ * exist. Default: true. Applied on non-concurrent builders (SQLite) and
45
+ * on concurrent builders that serialize same-index builds via the
46
+ * cross-caller claim primitive (the bundled Postgres backend); a custom
47
+ * concurrent backend without the primitive skips the refresh — see
48
+ * refreshStatisticsAfterCreation — and should call
49
+ * `store.refreshStatistics()` after materializing.
50
+ */
51
+ refreshStatistics?: boolean;
36
52
  }>;
37
53
  /**
38
54
  * Per-index outcome from `materializeIndexes()`.