@nicia-ai/typegraph 0.49.0 → 0.51.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 (370) hide show
  1. package/README.md +12 -0
  2. package/dist/backend/drizzle/indexes.cjs +11 -9
  3. package/dist/backend/drizzle/indexes.d.cts +1 -1
  4. package/dist/backend/drizzle/indexes.d.ts +1 -1
  5. package/dist/backend/drizzle/indexes.js +7 -5
  6. package/dist/backend/index.cjs +190 -53
  7. package/dist/backend/index.d.cts +90 -4
  8. package/dist/backend/index.d.ts +90 -4
  9. package/dist/backend/index.js +9 -12
  10. package/dist/backend/postgres/index.cjs +36 -28
  11. package/dist/backend/postgres/index.d.cts +7 -7
  12. package/dist/backend/postgres/index.d.ts +7 -7
  13. package/dist/backend/postgres/index.js +19 -15
  14. package/dist/backend/postgres/pglite-store.cjs +7 -62
  15. package/dist/backend/postgres/pglite-store.cjs.map +1 -1
  16. package/dist/backend/postgres/pglite-store.d.cts +8 -8
  17. package/dist/backend/postgres/pglite-store.d.ts +8 -8
  18. package/dist/backend/postgres/pglite-store.js +7 -62
  19. package/dist/backend/postgres/pglite-store.js.map +1 -1
  20. package/dist/backend/postgres/pglite.cjs +21 -17
  21. package/dist/backend/postgres/pglite.d.cts +3 -3
  22. package/dist/backend/postgres/pglite.d.ts +3 -3
  23. package/dist/backend/postgres/pglite.js +20 -16
  24. package/dist/backend/sqlite/index.cjs +33 -25
  25. package/dist/backend/sqlite/index.d.cts +7 -7
  26. package/dist/backend/sqlite/index.d.ts +7 -7
  27. package/dist/backend/sqlite/index.js +17 -13
  28. package/dist/backend/sqlite/libsql.cjs +24 -20
  29. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  30. package/dist/backend/sqlite/libsql.d.cts +3 -3
  31. package/dist/backend/sqlite/libsql.d.ts +3 -3
  32. package/dist/backend/sqlite/libsql.js +19 -15
  33. package/dist/backend/sqlite/libsql.js.map +1 -1
  34. package/dist/backend/sqlite/local-store.cjs +9 -64
  35. package/dist/backend/sqlite/local-store.cjs.map +1 -1
  36. package/dist/backend/sqlite/local-store.d.cts +8 -8
  37. package/dist/backend/sqlite/local-store.d.ts +8 -8
  38. package/dist/backend/sqlite/local-store.js +8 -64
  39. package/dist/backend/sqlite/local-store.js.map +1 -1
  40. package/dist/backend/sqlite/local.cjs +25 -20
  41. package/dist/backend/sqlite/local.d.cts +3 -3
  42. package/dist/backend/sqlite/local.d.ts +3 -3
  43. package/dist/backend/sqlite/local.js +21 -16
  44. package/dist/chunk-2CVDZCXH.cjs +1278 -0
  45. package/dist/chunk-2CVDZCXH.cjs.map +1 -0
  46. package/dist/{chunk-MYKHJI2J.js → chunk-2DWTBNSH.js} +3 -3
  47. package/dist/{chunk-MYKHJI2J.js.map → chunk-2DWTBNSH.js.map} +1 -1
  48. package/dist/{chunk-JB6T4GLL.cjs → chunk-2KCTP3U2.cjs} +870 -528
  49. package/dist/chunk-2KCTP3U2.cjs.map +1 -0
  50. package/dist/{chunk-OORXGFL5.cjs → chunk-322TBTOQ.cjs} +48 -48
  51. package/dist/{chunk-OORXGFL5.cjs.map → chunk-322TBTOQ.cjs.map} +1 -1
  52. package/dist/{chunk-FA2AFWLP.cjs → chunk-36SX6QXP.cjs} +31 -12
  53. package/dist/chunk-36SX6QXP.cjs.map +1 -0
  54. package/dist/{chunk-SDBBMD4N.js → chunk-36VYWVQU.js} +3 -3
  55. package/dist/{chunk-SDBBMD4N.js.map → chunk-36VYWVQU.js.map} +1 -1
  56. package/dist/chunk-4DKY6RIU.js +1253 -0
  57. package/dist/chunk-4DKY6RIU.js.map +1 -0
  58. package/dist/chunk-4QKOZYMV.js +9 -0
  59. package/dist/chunk-4QKOZYMV.js.map +1 -0
  60. package/dist/{chunk-WIC7DRXW.js → chunk-57JM6NW3.js} +9 -19
  61. package/dist/chunk-57JM6NW3.js.map +1 -0
  62. package/dist/chunk-5WWEYV4H.cjs +5113 -0
  63. package/dist/chunk-5WWEYV4H.cjs.map +1 -0
  64. package/dist/chunk-6KQEICJ6.cjs +12 -0
  65. package/dist/{chunk-MKJ4KXL5.cjs.map → chunk-6KQEICJ6.cjs.map} +1 -1
  66. package/dist/{chunk-DZAICA5J.js → chunk-6NKSE5AU.js} +4 -4
  67. package/dist/{chunk-DZAICA5J.js.map → chunk-6NKSE5AU.js.map} +1 -1
  68. package/dist/{chunk-KKBDXCLQ.js → chunk-6NLYIMJO.js} +4 -4
  69. package/dist/{chunk-KKBDXCLQ.js.map → chunk-6NLYIMJO.js.map} +1 -1
  70. package/dist/{chunk-BFUOME67.cjs → chunk-7B7I7YAW.cjs} +20 -11
  71. package/dist/chunk-7B7I7YAW.cjs.map +1 -0
  72. package/dist/{chunk-ZDKTPBGV.js → chunk-7G5IYROL.js} +6 -548
  73. package/dist/chunk-7G5IYROL.js.map +1 -0
  74. package/dist/{chunk-3DMMGT6S.js → chunk-7QFRK6PU.js} +4 -8
  75. package/dist/chunk-7QFRK6PU.js.map +1 -0
  76. package/dist/chunk-A4C4NJ5U.cjs +12 -0
  77. package/dist/chunk-A4C4NJ5U.cjs.map +1 -0
  78. package/dist/{chunk-CHAOFCHV.js → chunk-AH2A74OZ.js} +3 -3
  79. package/dist/{chunk-CHAOFCHV.js.map → chunk-AH2A74OZ.js.map} +1 -1
  80. package/dist/{chunk-UGHQV7MP.cjs → chunk-B3MN7EJR.cjs} +228 -162
  81. package/dist/chunk-B3MN7EJR.cjs.map +1 -0
  82. package/dist/{chunk-TZEGUG6D.cjs → chunk-BZ5MVITP.cjs} +4 -4
  83. package/dist/{chunk-TZEGUG6D.cjs.map → chunk-BZ5MVITP.cjs.map} +1 -1
  84. package/dist/{chunk-YVF2EM7B.js → chunk-CAI6SMP6.js} +3 -3
  85. package/dist/{chunk-YVF2EM7B.js.map → chunk-CAI6SMP6.js.map} +1 -1
  86. package/dist/{chunk-JONXFAPO.js → chunk-CBOD7TXH.js} +5 -5
  87. package/dist/{chunk-JONXFAPO.js.map → chunk-CBOD7TXH.js.map} +1 -1
  88. package/dist/{chunk-FQPEMEWX.cjs → chunk-CRZ56SZU.cjs} +81 -32
  89. package/dist/chunk-CRZ56SZU.cjs.map +1 -0
  90. package/dist/{chunk-DO7SAMEK.cjs → chunk-D3GWARN7.cjs} +47 -47
  91. package/dist/{chunk-DO7SAMEK.cjs.map → chunk-D3GWARN7.cjs.map} +1 -1
  92. package/dist/{chunk-QTD6HX4O.js → chunk-D3OUDFU7.js} +5 -5
  93. package/dist/{chunk-QTD6HX4O.js.map → chunk-D3OUDFU7.js.map} +1 -1
  94. package/dist/{chunk-2QGYQBS2.cjs → chunk-DWUDZ66O.cjs} +10 -10
  95. package/dist/{chunk-2QGYQBS2.cjs.map → chunk-DWUDZ66O.cjs.map} +1 -1
  96. package/dist/chunk-EKG2UXNX.cjs +23 -0
  97. package/dist/chunk-EKG2UXNX.cjs.map +1 -0
  98. package/dist/chunk-FMMW3KX7.cjs +148 -0
  99. package/dist/chunk-FMMW3KX7.cjs.map +1 -0
  100. package/dist/{chunk-XVWOYKIK.js → chunk-FZHF5UWR.js} +3 -3
  101. package/dist/{chunk-XVWOYKIK.js.map → chunk-FZHF5UWR.js.map} +1 -1
  102. package/dist/chunk-H2VWDQWC.cjs +571 -0
  103. package/dist/chunk-H2VWDQWC.cjs.map +1 -0
  104. package/dist/chunk-H4FY6OZK.js +13 -0
  105. package/dist/chunk-H4FY6OZK.js.map +1 -0
  106. package/dist/{chunk-EDN4Y4ZG.cjs → chunk-H5IJSROF.cjs} +9 -15
  107. package/dist/chunk-H5IJSROF.cjs.map +1 -0
  108. package/dist/chunk-HZUB5CON.js +27 -0
  109. package/dist/chunk-HZUB5CON.js.map +1 -0
  110. package/dist/{chunk-NACVVDWB.js → chunk-I5IOSA27.js} +103 -105
  111. package/dist/chunk-I5IOSA27.js.map +1 -0
  112. package/dist/{chunk-OI2GQ25X.cjs → chunk-I7YAY2VQ.cjs} +7 -7
  113. package/dist/{chunk-OI2GQ25X.cjs.map → chunk-I7YAY2VQ.cjs.map} +1 -1
  114. package/dist/chunk-IRCWIA3R.js +20 -0
  115. package/dist/chunk-IRCWIA3R.js.map +1 -0
  116. package/dist/chunk-IVQBLXBK.cjs +55 -0
  117. package/dist/chunk-IVQBLXBK.cjs.map +1 -0
  118. package/dist/{chunk-7SQSZN2J.js → chunk-IZD4HTCP.js} +5 -5
  119. package/dist/{chunk-7SQSZN2J.js.map → chunk-IZD4HTCP.js.map} +1 -1
  120. package/dist/{chunk-3FPR224C.cjs → chunk-JHRUZ73O.cjs} +116 -107
  121. package/dist/chunk-JHRUZ73O.cjs.map +1 -0
  122. package/dist/{chunk-EZEEWCFJ.cjs → chunk-JQKMEKKW.cjs} +525 -298
  123. package/dist/chunk-JQKMEKKW.cjs.map +1 -0
  124. package/dist/chunk-JVA3KDEA.cjs +691 -0
  125. package/dist/chunk-JVA3KDEA.cjs.map +1 -0
  126. package/dist/{chunk-5K2BKEBD.js → chunk-K46SDNQD.js} +10 -4
  127. package/dist/chunk-K46SDNQD.js.map +1 -0
  128. package/dist/{chunk-7LZJNLA5.js → chunk-K67P5DLL.js} +108 -42
  129. package/dist/chunk-K67P5DLL.js.map +1 -0
  130. package/dist/{chunk-3G5W2U2L.cjs → chunk-KACEYDYV.cjs} +335 -258
  131. package/dist/chunk-KACEYDYV.cjs.map +1 -0
  132. package/dist/{chunk-JFRT7S3B.cjs → chunk-L6EVYIID.cjs} +318 -478
  133. package/dist/chunk-L6EVYIID.cjs.map +1 -0
  134. package/dist/{chunk-SHFBB23Q.js → chunk-LI4K2KEJ.js} +6 -4
  135. package/dist/chunk-LI4K2KEJ.js.map +1 -0
  136. package/dist/chunk-LKZDQ2B4.js +1581 -0
  137. package/dist/chunk-LKZDQ2B4.js.map +1 -0
  138. package/dist/{chunk-WODMN3Q2.cjs → chunk-LLFPQOBA.cjs} +27 -27
  139. package/dist/{chunk-WODMN3Q2.cjs.map → chunk-LLFPQOBA.cjs.map} +1 -1
  140. package/dist/{chunk-P6YLZTRE.js → chunk-LZMQ3SFK.js} +3 -3
  141. package/dist/{chunk-P6YLZTRE.js.map → chunk-LZMQ3SFK.js.map} +1 -1
  142. package/dist/{chunk-HEV35TGT.js → chunk-M3VTS3F6.js} +13 -4
  143. package/dist/chunk-M3VTS3F6.js.map +1 -0
  144. package/dist/{chunk-TQHGE7UC.cjs → chunk-M5MSP3BI.cjs} +18 -10
  145. package/dist/chunk-M5MSP3BI.cjs.map +1 -0
  146. package/dist/{chunk-D4QLTJSM.js → chunk-NBOS7BY3.js} +63 -23
  147. package/dist/chunk-NBOS7BY3.js.map +1 -0
  148. package/dist/chunk-NGQDGL5X.js +140 -0
  149. package/dist/chunk-NGQDGL5X.js.map +1 -0
  150. package/dist/{chunk-SIT26LAZ.cjs → chunk-NLX5OWK7.cjs} +33 -5
  151. package/dist/chunk-NLX5OWK7.cjs.map +1 -0
  152. package/dist/chunk-NUQ2YFFH.cjs +1637 -0
  153. package/dist/chunk-NUQ2YFFH.cjs.map +1 -0
  154. package/dist/{chunk-UMGZDVOA.cjs → chunk-OGL4X4PH.cjs} +206 -208
  155. package/dist/chunk-OGL4X4PH.cjs.map +1 -0
  156. package/dist/{chunk-LRQKXRXO.cjs → chunk-OTNTGEXR.cjs} +4 -4
  157. package/dist/{chunk-LRQKXRXO.cjs.map → chunk-OTNTGEXR.cjs.map} +1 -1
  158. package/dist/chunk-OTWE63BW.js +53 -0
  159. package/dist/chunk-OTWE63BW.js.map +1 -0
  160. package/dist/chunk-PC5NGH5A.js +549 -0
  161. package/dist/chunk-PC5NGH5A.js.map +1 -0
  162. package/dist/{chunk-26YKDNUD.cjs → chunk-PS3TUWJM.cjs} +12 -10
  163. package/dist/chunk-PS3TUWJM.cjs.map +1 -0
  164. package/dist/{chunk-OMZ37BM2.js → chunk-PVFFH7TL.js} +5 -5
  165. package/dist/{chunk-OMZ37BM2.js.map → chunk-PVFFH7TL.js.map} +1 -1
  166. package/dist/chunk-QCD5JKU4.cjs +15 -0
  167. package/dist/chunk-QCD5JKU4.cjs.map +1 -0
  168. package/dist/{chunk-UGHG7PGX.js → chunk-QG5VEOKX.js} +30 -4
  169. package/dist/chunk-QG5VEOKX.js.map +1 -0
  170. package/dist/{chunk-TUNPBZY3.cjs → chunk-QLLZM5I3.cjs} +4 -4
  171. package/dist/{chunk-TUNPBZY3.cjs.map → chunk-QLLZM5I3.cjs.map} +1 -1
  172. package/dist/{chunk-BRRP76WO.js → chunk-RCBG6YMT.js} +781 -375
  173. package/dist/chunk-RCBG6YMT.js.map +1 -0
  174. package/dist/{chunk-LTXQOEIC.js → chunk-RI7RJH4G.js} +281 -204
  175. package/dist/chunk-RI7RJH4G.js.map +1 -0
  176. package/dist/{chunk-GYEG3ZLZ.cjs → chunk-RJMHU2MG.cjs} +121 -18
  177. package/dist/chunk-RJMHU2MG.cjs.map +1 -0
  178. package/dist/{chunk-GLHXM7C4.js → chunk-RVUL2HXY.js} +61 -23
  179. package/dist/chunk-RVUL2HXY.js.map +1 -0
  180. package/dist/chunk-RWUWTJQY.cjs +30 -0
  181. package/dist/chunk-RWUWTJQY.cjs.map +1 -0
  182. package/dist/{chunk-2O4PCIZ6.cjs → chunk-S5GU4LUN.cjs} +13 -13
  183. package/dist/{chunk-2O4PCIZ6.cjs.map → chunk-S5GU4LUN.cjs.map} +1 -1
  184. package/dist/{chunk-JPD2CTC3.js → chunk-SDPWO2Z5.js} +7 -7
  185. package/dist/{chunk-JPD2CTC3.js.map → chunk-SDPWO2Z5.js.map} +1 -1
  186. package/dist/{chunk-OVI7IXYX.js → chunk-SLGGT2XD.js} +3 -3
  187. package/dist/{chunk-OVI7IXYX.js.map → chunk-SLGGT2XD.js.map} +1 -1
  188. package/dist/{chunk-ROR5ZR6A.cjs → chunk-TIJUA4I6.cjs} +45 -45
  189. package/dist/{chunk-ROR5ZR6A.cjs.map → chunk-TIJUA4I6.cjs.map} +1 -1
  190. package/dist/{chunk-AOSSQDVO.cjs → chunk-TM54OBHX.cjs} +13 -13
  191. package/dist/{chunk-AOSSQDVO.cjs.map → chunk-TM54OBHX.cjs.map} +1 -1
  192. package/dist/{chunk-KF6K7TGH.js → chunk-TYEYRCXL.js} +766 -433
  193. package/dist/chunk-TYEYRCXL.js.map +1 -0
  194. package/dist/{chunk-Z2JCLZFJ.js → chunk-UKOVGCRN.js} +2151 -570
  195. package/dist/chunk-UKOVGCRN.js.map +1 -0
  196. package/dist/chunk-UYKDYE5D.cjs +12 -0
  197. package/dist/{chunk-CICO5GXD.cjs.map → chunk-UYKDYE5D.cjs.map} +1 -1
  198. package/dist/{chunk-S5TERQVW.js → chunk-VAAC7L57.js} +284 -66
  199. package/dist/chunk-VAAC7L57.js.map +1 -0
  200. package/dist/{chunk-7UOLHNWC.cjs → chunk-VKHXYVN7.cjs} +22 -33
  201. package/dist/chunk-VKHXYVN7.cjs.map +1 -0
  202. package/dist/{chunk-6NGW27EO.cjs → chunk-VLBTRXA2.cjs} +10 -10
  203. package/dist/{chunk-6NGW27EO.cjs.map → chunk-VLBTRXA2.cjs.map} +1 -1
  204. package/dist/{chunk-YIURNGXI.js → chunk-VUQZNUHU.js} +22 -6
  205. package/dist/chunk-VUQZNUHU.js.map +1 -0
  206. package/dist/{chunk-YYUHLYM2.cjs → chunk-WDM5WQK4.cjs} +183 -143
  207. package/dist/chunk-WDM5WQK4.cjs.map +1 -0
  208. package/dist/{chunk-ZFMCDJGB.js → chunk-WFSYYU4W.js} +70 -220
  209. package/dist/chunk-WFSYYU4W.js.map +1 -0
  210. package/dist/{chunk-SR725PWF.cjs → chunk-WRBV2FNH.cjs} +2065 -1659
  211. package/dist/chunk-WRBV2FNH.cjs.map +1 -0
  212. package/dist/{chunk-MRDBBHIZ.cjs → chunk-X4GDXBOP.cjs} +2 -2
  213. package/dist/chunk-X4GDXBOP.cjs.map +1 -0
  214. package/dist/chunk-XORONCV3.js +202 -0
  215. package/dist/chunk-XORONCV3.js.map +1 -0
  216. package/dist/{chunk-D5R42W5D.js → chunk-XZW2CTNO.js} +115 -12
  217. package/dist/chunk-XZW2CTNO.js.map +1 -0
  218. package/dist/{chunk-ZLONH2UD.js → chunk-YDEJQWOL.js} +2 -2
  219. package/dist/chunk-YDEJQWOL.js.map +1 -0
  220. package/dist/{chunk-2TYSSBU5.js → chunk-YT2IVFAI.js} +30 -21
  221. package/dist/chunk-YT2IVFAI.js.map +1 -0
  222. package/dist/chunk-ZGVTNKTX.cjs +217 -0
  223. package/dist/chunk-ZGVTNKTX.cjs.map +1 -0
  224. package/dist/core/index.cjs +29 -28
  225. package/dist/core/index.d.cts +4 -4
  226. package/dist/core/index.d.ts +4 -4
  227. package/dist/core/index.js +9 -8
  228. package/dist/{ddl-D_oW-EVO.d.ts → ddl-BvcbgzHo.d.ts} +3 -3
  229. package/dist/{ddl-BL1NZLMY.d.cts → ddl-Ufebz5q5.d.cts} +3 -3
  230. package/dist/graph-extension/index.cjs +21 -20
  231. package/dist/graph-extension/index.d.cts +2 -4
  232. package/dist/graph-extension/index.d.ts +2 -4
  233. package/dist/graph-extension/index.js +5 -4
  234. package/dist/graph-merge/index.cjs +324 -307
  235. package/dist/graph-merge/index.cjs.map +1 -1
  236. package/dist/graph-merge/index.d.cts +8 -9
  237. package/dist/graph-merge/index.d.ts +8 -9
  238. package/dist/graph-merge/index.js +51 -34
  239. package/dist/graph-merge/index.js.map +1 -1
  240. package/dist/index.cjs +224 -222
  241. package/dist/index.cjs.map +1 -1
  242. package/dist/index.d.cts +11 -12
  243. package/dist/index.d.ts +11 -12
  244. package/dist/index.js +38 -36
  245. package/dist/index.js.map +1 -1
  246. package/dist/indexes/index.cjs +15 -13
  247. package/dist/indexes/index.d.cts +4 -4
  248. package/dist/indexes/index.d.ts +4 -4
  249. package/dist/indexes/index.js +8 -6
  250. package/dist/{ingestion-import-target-dNeL7iAv.d.ts → ingestion-import-target-CAs1OX-l.d.cts} +1 -1
  251. package/dist/{ingestion-import-target-XPxZYw89.d.cts → ingestion-import-target-DCQSPfNx.d.ts} +1 -1
  252. package/dist/interchange/index.cjs +57 -54
  253. package/dist/interchange/index.cjs.map +1 -1
  254. package/dist/interchange/index.d.cts +19 -8
  255. package/dist/interchange/index.d.ts +19 -8
  256. package/dist/interchange/index.js +21 -18
  257. package/dist/interchange/index.js.map +1 -1
  258. package/dist/local-store-impl-6DDTFM32.cjs +77 -0
  259. package/dist/local-store-impl-6DDTFM32.cjs.map +1 -0
  260. package/dist/local-store-impl-OXTOVU2J.js +75 -0
  261. package/dist/local-store-impl-OXTOVU2J.js.map +1 -0
  262. package/dist/{manager-CYaff3n3.d.cts → manager-B68OrPR2.d.ts} +29 -2
  263. package/dist/{manager-D9eRT_ns.d.ts → manager-D_t7oK69.d.cts} +29 -2
  264. package/dist/pglite-store-impl-6EMZGL7K.js +73 -0
  265. package/dist/pglite-store-impl-6EMZGL7K.js.map +1 -0
  266. package/dist/pglite-store-impl-GJG3Y7RP.cjs +75 -0
  267. package/dist/pglite-store-impl-GJG3Y7RP.cjs.map +1 -0
  268. package/dist/{postgres-CcL4bAHS.d.ts → postgres-BPLSVyHM.d.ts} +279 -2
  269. package/dist/{postgres-DMj39MEu.d.cts → postgres-CqvtFC2y.d.cts} +279 -2
  270. package/dist/profiler/index.d.cts +9 -9
  271. package/dist/profiler/index.d.ts +9 -9
  272. package/dist/provenance/index.cjs +59 -44
  273. package/dist/provenance/index.cjs.map +1 -1
  274. package/dist/provenance/index.d.cts +7 -7
  275. package/dist/provenance/index.d.ts +7 -7
  276. package/dist/provenance/index.js +28 -13
  277. package/dist/provenance/index.js.map +1 -1
  278. package/dist/{repair-validity-windows-BFNZvd_H.d.cts → repair-validity-windows-DEzCKAdy.d.cts} +7 -3
  279. package/dist/{repair-validity-windows-DlUSqwCg.d.ts → repair-validity-windows-GMdaS2AH.d.ts} +7 -3
  280. package/dist/resolve-D_H8MHtq.d.ts +1805 -0
  281. package/dist/resolve-WEW8gWws.d.cts +1805 -0
  282. package/dist/schema/index.cjs +48 -46
  283. package/dist/schema/index.d.cts +4 -6
  284. package/dist/schema/index.d.ts +4 -6
  285. package/dist/schema/index.js +21 -19
  286. package/dist/{searchable-bpE1bBfc.d.ts → searchable-C_UREI9K.d.ts} +1 -1
  287. package/dist/{searchable-DHJMh_nj.d.cts → searchable-ClgET_i7.d.cts} +1 -1
  288. package/dist/{sqlite-YppHrNFb.d.cts → sqlite-D1mXO9Kp.d.cts} +310 -2
  289. package/dist/{sqlite-D7Oz0SQh.d.ts → sqlite-MZA3oZNB.d.ts} +310 -2
  290. package/dist/{store-bphCSo7z.d.cts → store-CuFX7fCx.d.cts} +117 -31
  291. package/dist/{store-DRrFCx5x.d.ts → store-D-ZjXQpW.d.ts} +117 -31
  292. package/dist/{temporal-CbnLzTmM.d.ts → temporal-CpyEiRY8.d.cts} +1 -1
  293. package/dist/{temporal-5GqpYCk2.d.cts → temporal-y0Aep9Su.d.ts} +1 -1
  294. package/dist/{types-BqFZTQmV.d.cts → types-6yf0Vv-_.d.cts} +2016 -94
  295. package/dist/{types-BqFZTQmV.d.ts → types-6yf0Vv-_.d.ts} +2016 -94
  296. package/dist/{types-Bx74kaTt.d.ts → types-DzJ4dlzk.d.cts} +1 -1
  297. package/dist/{types-CXAhpW-c.d.cts → types-_vVSB9k-.d.ts} +1 -1
  298. package/dist/{where-O-k2wgYm.d.ts → where-DuG2LCLe.d.ts} +1 -1
  299. package/dist/{where-DI_Fqz-X.d.cts → where-Mhf_yyKX.d.cts} +1 -1
  300. package/package.json +7 -2
  301. package/dist/chunk-26YKDNUD.cjs.map +0 -1
  302. package/dist/chunk-2TYSSBU5.js.map +0 -1
  303. package/dist/chunk-3DMMGT6S.js.map +0 -1
  304. package/dist/chunk-3FPR224C.cjs.map +0 -1
  305. package/dist/chunk-3G5W2U2L.cjs.map +0 -1
  306. package/dist/chunk-3KOY4FH3.cjs +0 -934
  307. package/dist/chunk-3KOY4FH3.cjs.map +0 -1
  308. package/dist/chunk-3QNZ5SAJ.cjs +0 -3502
  309. package/dist/chunk-3QNZ5SAJ.cjs.map +0 -1
  310. package/dist/chunk-3U5ABFDW.cjs +0 -259
  311. package/dist/chunk-3U5ABFDW.cjs.map +0 -1
  312. package/dist/chunk-5K2BKEBD.js.map +0 -1
  313. package/dist/chunk-5PRKMB24.cjs +0 -124
  314. package/dist/chunk-5PRKMB24.cjs.map +0 -1
  315. package/dist/chunk-6LN7FIVU.js +0 -107
  316. package/dist/chunk-6LN7FIVU.js.map +0 -1
  317. package/dist/chunk-6SWPJEYN.js +0 -1126
  318. package/dist/chunk-6SWPJEYN.js.map +0 -1
  319. package/dist/chunk-7LZJNLA5.js.map +0 -1
  320. package/dist/chunk-7UOLHNWC.cjs.map +0 -1
  321. package/dist/chunk-BFUOME67.cjs.map +0 -1
  322. package/dist/chunk-BRRP76WO.js.map +0 -1
  323. package/dist/chunk-CICO5GXD.cjs +0 -12
  324. package/dist/chunk-D4QLTJSM.js.map +0 -1
  325. package/dist/chunk-D5R42W5D.js.map +0 -1
  326. package/dist/chunk-EDN4Y4ZG.cjs.map +0 -1
  327. package/dist/chunk-EZEEWCFJ.cjs.map +0 -1
  328. package/dist/chunk-FA2AFWLP.cjs.map +0 -1
  329. package/dist/chunk-FQPEMEWX.cjs.map +0 -1
  330. package/dist/chunk-GLHXM7C4.js.map +0 -1
  331. package/dist/chunk-GYEG3ZLZ.cjs.map +0 -1
  332. package/dist/chunk-HDL2ARHX.cjs +0 -1156
  333. package/dist/chunk-HDL2ARHX.cjs.map +0 -1
  334. package/dist/chunk-HEV35TGT.js.map +0 -1
  335. package/dist/chunk-I4GAZH5Z.js +0 -913
  336. package/dist/chunk-I4GAZH5Z.js.map +0 -1
  337. package/dist/chunk-JB6T4GLL.cjs.map +0 -1
  338. package/dist/chunk-JBQQ7THH.js +0 -20
  339. package/dist/chunk-JBQQ7THH.js.map +0 -1
  340. package/dist/chunk-JFRT7S3B.cjs.map +0 -1
  341. package/dist/chunk-KF6K7TGH.js.map +0 -1
  342. package/dist/chunk-L3LQNR34.cjs +0 -1254
  343. package/dist/chunk-L3LQNR34.cjs.map +0 -1
  344. package/dist/chunk-LTXQOEIC.js.map +0 -1
  345. package/dist/chunk-MKJ4KXL5.cjs +0 -12
  346. package/dist/chunk-MRDBBHIZ.cjs.map +0 -1
  347. package/dist/chunk-NACVVDWB.js.map +0 -1
  348. package/dist/chunk-NVY5CJFP.js +0 -244
  349. package/dist/chunk-NVY5CJFP.js.map +0 -1
  350. package/dist/chunk-PWLJ77UV.cjs +0 -23
  351. package/dist/chunk-PWLJ77UV.cjs.map +0 -1
  352. package/dist/chunk-S5TERQVW.js.map +0 -1
  353. package/dist/chunk-SHFBB23Q.js.map +0 -1
  354. package/dist/chunk-SIT26LAZ.cjs.map +0 -1
  355. package/dist/chunk-SR725PWF.cjs.map +0 -1
  356. package/dist/chunk-TQHGE7UC.cjs.map +0 -1
  357. package/dist/chunk-UGHG7PGX.js.map +0 -1
  358. package/dist/chunk-UGHQV7MP.cjs.map +0 -1
  359. package/dist/chunk-UMGZDVOA.cjs.map +0 -1
  360. package/dist/chunk-WIC7DRXW.js.map +0 -1
  361. package/dist/chunk-YIURNGXI.js.map +0 -1
  362. package/dist/chunk-YYUHLYM2.cjs.map +0 -1
  363. package/dist/chunk-Z2JCLZFJ.js.map +0 -1
  364. package/dist/chunk-ZDKTPBGV.js.map +0 -1
  365. package/dist/chunk-ZFMCDJGB.js.map +0 -1
  366. package/dist/chunk-ZLONH2UD.js.map +0 -1
  367. package/dist/index-COs_z6nV.d.cts +0 -1132
  368. package/dist/index-D7d1u2gr.d.ts +0 -1132
  369. package/dist/materialize-indexes-DJ3ykH59.d.ts +0 -266
  370. package/dist/materialize-indexes-DTtAnvfY.d.cts +0 -266
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-BqFZTQmV.cjs';
2
+ import { I as IndexDeclaration } from './types-6yf0Vv-_.cjs';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -16,6 +16,7 @@ type PostgresTableNames = Readonly<{
16
16
  identityClosure: string;
17
17
  identitySeparation: string;
18
18
  uniques: string;
19
+ edgeClaims: string;
19
20
  schemaVersions: string;
20
21
  fulltext: string;
21
22
  indexMaterializations: string;
@@ -2069,6 +2070,98 @@ declare function createPostgresTables(names?: Partial<PostgresTableNames>, optio
2069
2070
  };
2070
2071
  dialect: "pg";
2071
2072
  }>;
2073
+ readonly edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
2074
+ name: string;
2075
+ schema: undefined;
2076
+ columns: {
2077
+ graphId: drizzle_orm_pg_core.PgColumn<{
2078
+ name: "graph_id";
2079
+ tableName: string;
2080
+ dataType: "string";
2081
+ columnType: "PgText";
2082
+ data: string;
2083
+ driverParam: string;
2084
+ notNull: true;
2085
+ hasDefault: false;
2086
+ isPrimaryKey: false;
2087
+ isAutoincrement: false;
2088
+ hasRuntimeDefault: false;
2089
+ enumValues: [string, ...string[]];
2090
+ baseColumn: never;
2091
+ identity: undefined;
2092
+ generated: undefined;
2093
+ }, {}, {}>;
2094
+ axis: drizzle_orm_pg_core.PgColumn<{
2095
+ name: "axis";
2096
+ tableName: string;
2097
+ dataType: "string";
2098
+ columnType: "PgText";
2099
+ data: string;
2100
+ driverParam: string;
2101
+ notNull: true;
2102
+ hasDefault: false;
2103
+ isPrimaryKey: false;
2104
+ isAutoincrement: false;
2105
+ hasRuntimeDefault: false;
2106
+ enumValues: [string, ...string[]];
2107
+ baseColumn: never;
2108
+ identity: undefined;
2109
+ generated: undefined;
2110
+ }, {}, {}>;
2111
+ key: drizzle_orm_pg_core.PgColumn<{
2112
+ name: "key";
2113
+ tableName: string;
2114
+ dataType: "string";
2115
+ columnType: "PgText";
2116
+ data: string;
2117
+ driverParam: string;
2118
+ notNull: true;
2119
+ hasDefault: false;
2120
+ isPrimaryKey: false;
2121
+ isAutoincrement: false;
2122
+ hasRuntimeDefault: false;
2123
+ enumValues: [string, ...string[]];
2124
+ baseColumn: never;
2125
+ identity: undefined;
2126
+ generated: undefined;
2127
+ }, {}, {}>;
2128
+ edgeId: drizzle_orm_pg_core.PgColumn<{
2129
+ name: "edge_id";
2130
+ tableName: string;
2131
+ dataType: "string";
2132
+ columnType: "PgText";
2133
+ data: string;
2134
+ driverParam: string;
2135
+ notNull: true;
2136
+ hasDefault: false;
2137
+ isPrimaryKey: false;
2138
+ isAutoincrement: false;
2139
+ hasRuntimeDefault: false;
2140
+ enumValues: [string, ...string[]];
2141
+ baseColumn: never;
2142
+ identity: undefined;
2143
+ generated: undefined;
2144
+ }, {}, {}>;
2145
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
2146
+ name: "updated_at";
2147
+ tableName: string;
2148
+ dataType: "date";
2149
+ columnType: "PgTimestamp";
2150
+ data: Date;
2151
+ driverParam: string;
2152
+ notNull: true;
2153
+ hasDefault: false;
2154
+ isPrimaryKey: false;
2155
+ isAutoincrement: false;
2156
+ hasRuntimeDefault: false;
2157
+ enumValues: undefined;
2158
+ baseColumn: never;
2159
+ identity: undefined;
2160
+ generated: undefined;
2161
+ }, {}, {}>;
2162
+ };
2163
+ dialect: "pg";
2164
+ }>;
2072
2165
  readonly schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
2073
2166
  name: string;
2074
2167
  schema: undefined;
@@ -4852,6 +4945,98 @@ declare const tables: {
4852
4945
  };
4853
4946
  dialect: "pg";
4854
4947
  }>;
4948
+ readonly edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
4949
+ name: string;
4950
+ schema: undefined;
4951
+ columns: {
4952
+ graphId: drizzle_orm_pg_core.PgColumn<{
4953
+ name: "graph_id";
4954
+ tableName: string;
4955
+ dataType: "string";
4956
+ columnType: "PgText";
4957
+ data: string;
4958
+ driverParam: string;
4959
+ notNull: true;
4960
+ hasDefault: false;
4961
+ isPrimaryKey: false;
4962
+ isAutoincrement: false;
4963
+ hasRuntimeDefault: false;
4964
+ enumValues: [string, ...string[]];
4965
+ baseColumn: never;
4966
+ identity: undefined;
4967
+ generated: undefined;
4968
+ }, {}, {}>;
4969
+ axis: drizzle_orm_pg_core.PgColumn<{
4970
+ name: "axis";
4971
+ tableName: string;
4972
+ dataType: "string";
4973
+ columnType: "PgText";
4974
+ data: string;
4975
+ driverParam: string;
4976
+ notNull: true;
4977
+ hasDefault: false;
4978
+ isPrimaryKey: false;
4979
+ isAutoincrement: false;
4980
+ hasRuntimeDefault: false;
4981
+ enumValues: [string, ...string[]];
4982
+ baseColumn: never;
4983
+ identity: undefined;
4984
+ generated: undefined;
4985
+ }, {}, {}>;
4986
+ key: drizzle_orm_pg_core.PgColumn<{
4987
+ name: "key";
4988
+ tableName: string;
4989
+ dataType: "string";
4990
+ columnType: "PgText";
4991
+ data: string;
4992
+ driverParam: string;
4993
+ notNull: true;
4994
+ hasDefault: false;
4995
+ isPrimaryKey: false;
4996
+ isAutoincrement: false;
4997
+ hasRuntimeDefault: false;
4998
+ enumValues: [string, ...string[]];
4999
+ baseColumn: never;
5000
+ identity: undefined;
5001
+ generated: undefined;
5002
+ }, {}, {}>;
5003
+ edgeId: drizzle_orm_pg_core.PgColumn<{
5004
+ name: "edge_id";
5005
+ tableName: string;
5006
+ dataType: "string";
5007
+ columnType: "PgText";
5008
+ data: string;
5009
+ driverParam: string;
5010
+ notNull: true;
5011
+ hasDefault: false;
5012
+ isPrimaryKey: false;
5013
+ isAutoincrement: false;
5014
+ hasRuntimeDefault: false;
5015
+ enumValues: [string, ...string[]];
5016
+ baseColumn: never;
5017
+ identity: undefined;
5018
+ generated: undefined;
5019
+ }, {}, {}>;
5020
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
5021
+ name: "updated_at";
5022
+ tableName: string;
5023
+ dataType: "date";
5024
+ columnType: "PgTimestamp";
5025
+ data: Date;
5026
+ driverParam: string;
5027
+ notNull: true;
5028
+ hasDefault: false;
5029
+ isPrimaryKey: false;
5030
+ isAutoincrement: false;
5031
+ hasRuntimeDefault: false;
5032
+ enumValues: undefined;
5033
+ baseColumn: never;
5034
+ identity: undefined;
5035
+ generated: undefined;
5036
+ }, {}, {}>;
5037
+ };
5038
+ dialect: "pg";
5039
+ }>;
4855
5040
  readonly schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
4856
5041
  name: string;
4857
5042
  schema: undefined;
@@ -6834,6 +7019,98 @@ declare const uniques: drizzle_orm_pg_core.PgTableWithColumns<{
6834
7019
  };
6835
7020
  dialect: "pg";
6836
7021
  }>;
7022
+ declare const edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
7023
+ name: string;
7024
+ schema: undefined;
7025
+ columns: {
7026
+ graphId: drizzle_orm_pg_core.PgColumn<{
7027
+ name: "graph_id";
7028
+ tableName: string;
7029
+ dataType: "string";
7030
+ columnType: "PgText";
7031
+ data: string;
7032
+ driverParam: string;
7033
+ notNull: true;
7034
+ hasDefault: false;
7035
+ isPrimaryKey: false;
7036
+ isAutoincrement: false;
7037
+ hasRuntimeDefault: false;
7038
+ enumValues: [string, ...string[]];
7039
+ baseColumn: never;
7040
+ identity: undefined;
7041
+ generated: undefined;
7042
+ }, {}, {}>;
7043
+ axis: drizzle_orm_pg_core.PgColumn<{
7044
+ name: "axis";
7045
+ tableName: string;
7046
+ dataType: "string";
7047
+ columnType: "PgText";
7048
+ data: string;
7049
+ driverParam: string;
7050
+ notNull: true;
7051
+ hasDefault: false;
7052
+ isPrimaryKey: false;
7053
+ isAutoincrement: false;
7054
+ hasRuntimeDefault: false;
7055
+ enumValues: [string, ...string[]];
7056
+ baseColumn: never;
7057
+ identity: undefined;
7058
+ generated: undefined;
7059
+ }, {}, {}>;
7060
+ key: drizzle_orm_pg_core.PgColumn<{
7061
+ name: "key";
7062
+ tableName: string;
7063
+ dataType: "string";
7064
+ columnType: "PgText";
7065
+ data: string;
7066
+ driverParam: string;
7067
+ notNull: true;
7068
+ hasDefault: false;
7069
+ isPrimaryKey: false;
7070
+ isAutoincrement: false;
7071
+ hasRuntimeDefault: false;
7072
+ enumValues: [string, ...string[]];
7073
+ baseColumn: never;
7074
+ identity: undefined;
7075
+ generated: undefined;
7076
+ }, {}, {}>;
7077
+ edgeId: drizzle_orm_pg_core.PgColumn<{
7078
+ name: "edge_id";
7079
+ tableName: string;
7080
+ dataType: "string";
7081
+ columnType: "PgText";
7082
+ data: string;
7083
+ driverParam: string;
7084
+ notNull: true;
7085
+ hasDefault: false;
7086
+ isPrimaryKey: false;
7087
+ isAutoincrement: false;
7088
+ hasRuntimeDefault: false;
7089
+ enumValues: [string, ...string[]];
7090
+ baseColumn: never;
7091
+ identity: undefined;
7092
+ generated: undefined;
7093
+ }, {}, {}>;
7094
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
7095
+ name: "updated_at";
7096
+ tableName: string;
7097
+ dataType: "date";
7098
+ columnType: "PgTimestamp";
7099
+ data: Date;
7100
+ driverParam: string;
7101
+ notNull: true;
7102
+ hasDefault: false;
7103
+ isPrimaryKey: false;
7104
+ isAutoincrement: false;
7105
+ hasRuntimeDefault: false;
7106
+ enumValues: undefined;
7107
+ baseColumn: never;
7108
+ identity: undefined;
7109
+ generated: undefined;
7110
+ }, {}, {}>;
7111
+ };
7112
+ dialect: "pg";
7113
+ }>;
6837
7114
  declare const schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
6838
7115
  name: string;
6839
7116
  schema: undefined;
@@ -7080,4 +7357,4 @@ declare const fulltext: drizzle_orm_pg_core.PgTableWithColumns<{
7080
7357
  */
7081
7358
  type PostgresTables = ReturnType<typeof createPostgresTables>;
7082
7359
 
7083
- export { type CreatePostgresTablesOptions as C, type PostgresTables as P, type PostgresTableNames as a, recordedEdges as b, createPostgresTables as c, recordedNodes as d, edges as e, fulltext as f, nodes as n, recordedClock as r, schemaVersions as s, tables as t, uniques as u };
7360
+ export { type CreatePostgresTablesOptions as C, type PostgresTables as P, type PostgresTableNames as a, edges as b, createPostgresTables as c, recordedEdges as d, edgeClaims as e, fulltext as f, recordedNodes as g, nodes as n, recordedClock as r, schemaVersions as s, tables as t, uniques as u };
@@ -1,13 +1,13 @@
1
- import { d8 as GraphDef, d9 as QueryAst } from '../types-BqFZTQmV.cjs';
2
- export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.cjs';
3
- import { a as Store } from '../store-bphCSo7z.cjs';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-CXAhpW-c.cjs';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CXAhpW-c.cjs';
1
+ import { d as GraphDef, Q as QueryAst } from '../types-6yf0Vv-_.cjs';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-6yf0Vv-_.cjs';
3
+ import { a as Store } from '../store-CuFX7fCx.cjs';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-DzJ4dlzk.cjs';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-DzJ4dlzk.cjs';
6
6
  import 'zod';
7
- import '../temporal-5GqpYCk2.cjs';
8
- import '../searchable-DHJMh_nj.cjs';
9
- import '../manager-CYaff3n3.cjs';
10
- import '../materialize-indexes-DTtAnvfY.cjs';
7
+ import '../temporal-CpyEiRY8.cjs';
8
+ import '../searchable-ClgET_i7.cjs';
9
+ import '../manager-D_t7oK69.cjs';
10
+ import '../resolve-WEW8gWws.cjs';
11
11
 
12
12
  /**
13
13
  * A Store with profiling capabilities.
@@ -1,13 +1,13 @@
1
- import { d8 as GraphDef, d9 as QueryAst } from '../types-BqFZTQmV.js';
2
- export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.js';
3
- import { a as Store } from '../store-DRrFCx5x.js';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-Bx74kaTt.js';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-Bx74kaTt.js';
1
+ import { d as GraphDef, Q as QueryAst } from '../types-6yf0Vv-_.js';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-6yf0Vv-_.js';
3
+ import { a as Store } from '../store-D-ZjXQpW.js';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-_vVSB9k-.js';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-_vVSB9k-.js';
6
6
  import 'zod';
7
- import '../temporal-CbnLzTmM.js';
8
- import '../searchable-bpE1bBfc.js';
9
- import '../manager-D9eRT_ns.js';
10
- import '../materialize-indexes-DJ3ykH59.js';
7
+ import '../temporal-y0Aep9Su.js';
8
+ import '../searchable-C_UREI9K.js';
9
+ import '../manager-B68OrPR2.js';
10
+ import '../resolve-D_H8MHtq.js';
11
11
 
12
12
  /**
13
13
  * A Store with profiling capabilities.
@@ -1,18 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunk3KOY4FH3_cjs = require('../chunk-3KOY4FH3.cjs');
4
- var chunkEZEEWCFJ_cjs = require('../chunk-EZEEWCFJ.cjs');
5
- require('../chunk-SIT26LAZ.cjs');
6
- require('../chunk-3U5ABFDW.cjs');
7
- var chunk5PRKMB24_cjs = require('../chunk-5PRKMB24.cjs');
8
- require('../chunk-FQPEMEWX.cjs');
9
- require('../chunk-2QGYQBS2.cjs');
10
- var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
3
+ var chunk2CVDZCXH_cjs = require('../chunk-2CVDZCXH.cjs');
4
+ require('../chunk-FMMW3KX7.cjs');
5
+ var chunkJQKMEKKW_cjs = require('../chunk-JQKMEKKW.cjs');
6
+ require('../chunk-NLX5OWK7.cjs');
7
+ var chunkZGVTNKTX_cjs = require('../chunk-ZGVTNKTX.cjs');
8
+ var chunkNUQ2YFFH_cjs = require('../chunk-NUQ2YFFH.cjs');
9
+ require('../chunk-CRZ56SZU.cjs');
10
+ require('../chunk-DWUDZ66O.cjs');
11
+ var chunkM5MSP3BI_cjs = require('../chunk-M5MSP3BI.cjs');
12
+ require('../chunk-A4C4NJ5U.cjs');
11
13
  require('../chunk-NAUA4PW5.cjs');
12
- require('../chunk-EDN4Y4ZG.cjs');
14
+ require('../chunk-H5IJSROF.cjs');
13
15
  require('../chunk-RT5ZY4XA.cjs');
14
16
  require('../chunk-HAHNRASW.cjs');
15
- var chunkMRDBBHIZ_cjs = require('../chunk-MRDBBHIZ.cjs');
17
+ var chunkRWUWTJQY_cjs = require('../chunk-RWUWTJQY.cjs');
18
+ var chunkX4GDXBOP_cjs = require('../chunk-X4GDXBOP.cjs');
16
19
  require('../chunk-A7J2YDDI.cjs');
17
20
  var chunkN66HCGCY_cjs = require('../chunk-N66HCGCY.cjs');
18
21
 
@@ -34,7 +37,7 @@ function edgeToKey(edge) {
34
37
  function keyToRef(key) {
35
38
  const separatorIndex = key.indexOf(KEY_SEPARATOR);
36
39
  if (separatorIndex === -1) {
37
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
40
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
38
41
  "Invalid provenance identity key.",
39
42
  { key },
40
43
  {
@@ -47,12 +50,12 @@ function keyToRef(key) {
47
50
  return { kind, id };
48
51
  }
49
52
  function sortedReferences(keys) {
50
- return [...keys].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
53
+ return [...keys].toSorted((left, right) => chunkRWUWTJQY_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
51
54
  }
52
55
  function parseNodeProps(row) {
53
- const parsed = chunk5PRKMB24_cjs.rowPropsToObject(row.props);
56
+ const parsed = chunkNUQ2YFFH_cjs.rowPropsToObject(row.props);
54
57
  if (!chunkN66HCGCY_cjs.isPlainObject(parsed)) {
55
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
58
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
56
59
  `Node ${row.kind}/${row.id} props are not an object.`,
57
60
  { kind: row.kind, id: row.id }
58
61
  );
@@ -64,7 +67,7 @@ function sourceRetractedState(row, retractedField) {
64
67
  const value = props[retractedField];
65
68
  if (value === void 0) return "available";
66
69
  if (typeof value !== "boolean") {
67
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
70
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
68
71
  `Provenance source field "${retractedField}" must contain a boolean value.`,
69
72
  { kind: row.kind, id: row.id, field: retractedField },
70
73
  {
@@ -82,26 +85,26 @@ function normalizeConfig(graph, config) {
82
85
  const derivesKind = config.derives.kind;
83
86
  const retractedField = config.source.retractedField ?? DEFAULT_RETRACTED_FIELD;
84
87
  if (sourceKinds.length === 0) {
85
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
88
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
86
89
  "Provenance retraction requires at least one source kind.",
87
90
  { role: "source" }
88
91
  );
89
92
  }
90
93
  if (factKinds.length === 0) {
91
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
94
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
92
95
  "Provenance retraction requires at least one fact kind.",
93
96
  { role: "fact" }
94
97
  );
95
98
  }
96
99
  const duplicateSourceKinds = duplicateValues(sourceKinds);
97
100
  if (duplicateSourceKinds.length > 0) {
98
- throw new chunkMRDBBHIZ_cjs.ConfigurationError("Provenance source kinds must be unique.", {
101
+ throw new chunkX4GDXBOP_cjs.ConfigurationError("Provenance source kinds must be unique.", {
99
102
  duplicateSourceKinds
100
103
  });
101
104
  }
102
105
  const duplicateFactKinds = duplicateValues(factKinds);
103
106
  if (duplicateFactKinds.length > 0) {
104
- throw new chunkMRDBBHIZ_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
107
+ throw new chunkX4GDXBOP_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
105
108
  duplicateFactKinds
106
109
  });
107
110
  }
@@ -119,7 +122,7 @@ function normalizeConfig(graph, config) {
119
122
  if (factKinds.some(
120
123
  (kind) => sourceKinds.includes(kind) || kind === justificationKind
121
124
  )) {
122
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
125
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
123
126
  "Provenance fact kinds must be distinct from source and justification kinds.",
124
127
  { sourceKinds, justificationKind, factKinds }
125
128
  );
@@ -157,11 +160,11 @@ function duplicateValues(values) {
157
160
  }
158
161
  seen.add(value);
159
162
  }
160
- return [...duplicates].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right));
163
+ return [...duplicates].toSorted((left, right) => chunkRWUWTJQY_cjs.compareStrings(left, right));
161
164
  }
162
165
  function assertKind(records, kind, role, noun, graphId) {
163
166
  if (Object.hasOwn(records, kind)) return;
164
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
167
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
165
168
  `Provenance ${role} kind "${kind}" is not a ${noun} kind in this graph.`,
166
169
  { role, kind, graphId }
167
170
  );
@@ -170,7 +173,7 @@ function assertSourceField(graph, sourceKind, retractedField) {
170
173
  const registration = graph.nodes[sourceKind];
171
174
  if (registration === void 0) return;
172
175
  if (Object.hasOwn(registration.type.schema.shape, retractedField)) return;
173
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
176
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
174
177
  `Provenance source kind "${sourceKind}" must include field "${retractedField}".`,
175
178
  { sourceKind, retractedField },
176
179
  {
@@ -185,14 +188,14 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
185
188
  const toKinds = new Set(registration.to.map((node) => node.kind));
186
189
  for (const kind of expected.fromKinds) {
187
190
  if (fromKinds.has(kind)) continue;
188
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
191
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
189
192
  `Provenance ${expected.role} edge "${edgeKind}" cannot start at "${kind}".`,
190
193
  { edgeKind, role: expected.role, expectedFrom: kind }
191
194
  );
192
195
  }
193
196
  for (const kind of expected.toKinds) {
194
197
  if (toKinds.has(kind)) continue;
195
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
198
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
196
199
  `Provenance ${expected.role} edge "${edgeKind}" cannot end at "${kind}".`,
197
200
  { edgeKind, role: expected.role, expectedTo: kind }
198
201
  );
@@ -208,7 +211,7 @@ async function findNodeRows(backend, graphId, kind, options) {
208
211
  orderBy: "id"
209
212
  });
210
213
  return rows.filter(
211
- (row) => chunkTQHGE7UC_cjs.validityWindowContainsInstant(row.valid_from, row.valid_to, options.asOf)
214
+ (row) => chunkM5MSP3BI_cjs.validityWindowContainsInstant(row.valid_from, row.valid_to, options.asOf)
212
215
  );
213
216
  }
214
217
  return backend.findNodesByKind({
@@ -297,7 +300,7 @@ function buildSupportEdges(config, rows) {
297
300
  };
298
301
  }
299
302
  async function loadSupportGraph(backend, graphId, config) {
300
- const asOf = chunkTQHGE7UC_cjs.nowIso();
303
+ const asOf = chunkM5MSP3BI_cjs.nowIso();
301
304
  const roles = await readRoles(backend, graphId, config, asOf);
302
305
  const supportEdges = buildSupportEdges(config, roles);
303
306
  const sourceRowsByKind = await Promise.all(
@@ -405,7 +408,7 @@ function buildReport(before, after, affected) {
405
408
  const unaffected = sortedReferences(
406
409
  believedBefore.filter((key) => !affected.has(key))
407
410
  );
408
- const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => ({
411
+ const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkRWUWTJQY_cjs.compareStrings(left, right)).map((key) => ({
409
412
  fact: keyToRef(key),
410
413
  via: sortedReferences(
411
414
  after.firingJustificationKeysByFact.get(key) ?? []
@@ -428,21 +431,21 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
428
431
  snapshot,
429
432
  affected,
430
433
  (key) => !snapshot.supportedFactKeys.has(key),
431
- chunk5PRKMB24_cjs.isLiveNodeRow,
434
+ chunkNUQ2YFFH_cjs.isLiveNodeRow,
432
435
  (row) => closeFactCurrency(backend, store, runHooks, row, lock)
433
436
  );
434
437
  await forEachAffectedFact(
435
438
  snapshot,
436
439
  affected,
437
440
  (key) => snapshot.supportedFactKeys.has(key),
438
- chunk5PRKMB24_cjs.isTombstonedNodeRow,
441
+ chunkNUQ2YFFH_cjs.isTombstonedNodeRow,
439
442
  (row) => reopenFactCurrency(backend, store, runHooks, row, lock)
440
443
  );
441
444
  }
442
445
  function getFactRegistration(store, row) {
443
446
  const registration = store.graph.nodes[row.kind];
444
447
  if (registration !== void 0) return registration;
445
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
448
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
446
449
  `Provenance fact kind "${row.kind}" is not a node kind in this graph.`,
447
450
  { kind: row.kind, graphId: store.graphId }
448
451
  );
@@ -450,8 +453,14 @@ function getFactRegistration(store, row) {
450
453
  async function closeFactCurrency(backend, store, runHooks, row, lock) {
451
454
  await runHooks("delete", row.kind, row.id, async () => {
452
455
  const registration = getFactRegistration(store, row);
453
- await chunk3KOY4FH3_cjs.applyNodeSoftDelete(
454
- chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
456
+ await chunk2CVDZCXH_cjs.applyNodeSoftDelete(
457
+ chunk2CVDZCXH_cjs.createNodeWriteContext(
458
+ store.graphId,
459
+ store.registry,
460
+ lock,
461
+ chunkZGVTNKTX_cjs.createClaimsVerdictThunk(chunk2CVDZCXH_cjs.storeBackend(store)),
462
+ chunkN66HCGCY_cjs.requireDefined(chunk2CVDZCXH_cjs.storeRuntime(store).uniqueSidecarBatch)
463
+ ),
455
464
  {
456
465
  existing: row,
457
466
  schema: registration.type.schema,
@@ -466,8 +475,14 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
466
475
  async function reopenFactCurrency(backend, store, runHooks, row, lock) {
467
476
  await runHooks("update", row.kind, row.id, async () => {
468
477
  const registration = getFactRegistration(store, row);
469
- await chunk3KOY4FH3_cjs.applyNodeResurrect(
470
- chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
478
+ await chunk2CVDZCXH_cjs.applyNodeResurrect(
479
+ chunk2CVDZCXH_cjs.createNodeWriteContext(
480
+ store.graphId,
481
+ store.registry,
482
+ lock,
483
+ chunkZGVTNKTX_cjs.createClaimsVerdictThunk(chunk2CVDZCXH_cjs.storeBackend(store)),
484
+ chunkN66HCGCY_cjs.requireDefined(chunk2CVDZCXH_cjs.storeRuntime(store).uniqueSidecarBatch)
485
+ ),
471
486
  {
472
487
  existing: row,
473
488
  schema: registration.type.schema,
@@ -480,7 +495,7 @@ async function reopenFactCurrency(backend, store, runHooks, row, lock) {
480
495
  function getTransactionNodeCollection(tx, kind) {
481
496
  const collection = tx.getNodeCollection(kind);
482
497
  if (collection !== void 0) return collection;
483
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
498
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
484
499
  `Provenance source kind "${kind}" is not available on this transaction.`,
485
500
  { kind }
486
501
  );
@@ -493,14 +508,14 @@ async function runTransition(store, config, sources, retracted) {
493
508
  const uniqueSources = uniqueNodeReferences(sources);
494
509
  for (const source of uniqueSources) {
495
510
  if (config.sourceKinds.includes(source.kind)) continue;
496
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
511
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
497
512
  `Provenance retraction source must be one of: ${config.sourceKinds.join(", ")}.`,
498
513
  { expectedKinds: config.sourceKinds, actualKind: source.kind }
499
514
  );
500
515
  }
501
516
  return store.transaction(async (tx) => {
502
- const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
503
- const lock = await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
517
+ const backend = chunk2CVDZCXH_cjs.transactionBackend(tx);
518
+ const lock = await chunkJQKMEKKW_cjs.lockRecordedGraphWrite(backend, store.graphId);
504
519
  const rows = await Promise.all(
505
520
  uniqueSources.map(
506
521
  (source) => backend.getNode(store.graphId, source.kind, source.id)
@@ -509,7 +524,7 @@ async function runTransition(store, config, sources, retracted) {
509
524
  const sourceRows = uniqueSources.map((source, index) => {
510
525
  const sourceRow = rows[index];
511
526
  if (sourceRow === void 0 || sourceRow.deleted_at !== void 0) {
512
- throw new chunkMRDBBHIZ_cjs.NodeNotFoundError(source.kind, source.id);
527
+ throw new chunkX4GDXBOP_cjs.NodeNotFoundError(source.kind, source.id);
513
528
  }
514
529
  return { source, row: sourceRow };
515
530
  });
@@ -536,7 +551,7 @@ async function runTransition(store, config, sources, retracted) {
536
551
  await synchronizeFactCurrency(
537
552
  backend,
538
553
  store,
539
- chunk3KOY4FH3_cjs.transactionNodeOperationHookRunner(tx),
554
+ chunk2CVDZCXH_cjs.transactionNodeOperationHookRunner(tx),
540
555
  after,
541
556
  affected,
542
557
  lock
@@ -562,8 +577,8 @@ function createRetractionCapability(store, config) {
562
577
  unRetractMany: (sources) => transition(sources, false),
563
578
  async holding() {
564
579
  return store.transaction(async (tx) => {
565
- const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
566
- await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
580
+ const backend = chunk2CVDZCXH_cjs.transactionBackend(tx);
581
+ await chunkJQKMEKKW_cjs.lockRecordedGraphWrite(backend, store.graphId);
567
582
  const snapshot = await computeSupport(
568
583
  backend,
569
584
  store.graphId,
@@ -578,7 +593,7 @@ function createRetractionCapability(store, config) {
578
593
  }
579
594
  function assertRetractionHistoryEnabled(store) {
580
595
  if (!store.historyEnabled) {
581
- throw new chunkMRDBBHIZ_cjs.ConfigurationError(
596
+ throw new chunkX4GDXBOP_cjs.ConfigurationError(
582
597
  "createRetractionCapability requires a store created with { history: true }.",
583
598
  { graphId: store.graphId },
584
599
  {