@nicia-ai/typegraph 0.47.0 → 0.49.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 (211) hide show
  1. package/dist/backend/drizzle/indexes.d.cts +1 -1
  2. package/dist/backend/drizzle/indexes.d.ts +1 -1
  3. package/dist/backend/index.cjs +27 -19
  4. package/dist/backend/index.d.cts +37 -55
  5. package/dist/backend/index.d.ts +37 -55
  6. package/dist/backend/index.js +4 -4
  7. package/dist/backend/postgres/index.cjs +7 -7
  8. package/dist/backend/postgres/index.d.cts +21 -7
  9. package/dist/backend/postgres/index.d.ts +21 -7
  10. package/dist/backend/postgres/index.js +6 -6
  11. package/dist/backend/postgres/pglite-store.cjs +17 -17
  12. package/dist/backend/postgres/pglite-store.d.cts +8 -8
  13. package/dist/backend/postgres/pglite-store.d.ts +8 -8
  14. package/dist/backend/postgres/pglite-store.js +14 -14
  15. package/dist/backend/postgres/pglite.cjs +8 -8
  16. package/dist/backend/postgres/pglite.d.cts +3 -3
  17. package/dist/backend/postgres/pglite.d.ts +3 -3
  18. package/dist/backend/postgres/pglite.js +7 -7
  19. package/dist/backend/sqlite/index.cjs +7 -7
  20. package/dist/backend/sqlite/index.d.cts +20 -7
  21. package/dist/backend/sqlite/index.d.ts +20 -7
  22. package/dist/backend/sqlite/index.js +6 -6
  23. package/dist/backend/sqlite/libsql.cjs +8 -8
  24. package/dist/backend/sqlite/libsql.d.cts +3 -3
  25. package/dist/backend/sqlite/libsql.d.ts +3 -3
  26. package/dist/backend/sqlite/libsql.js +6 -6
  27. package/dist/backend/sqlite/local-store.cjs +18 -18
  28. package/dist/backend/sqlite/local-store.d.cts +8 -8
  29. package/dist/backend/sqlite/local-store.d.ts +8 -8
  30. package/dist/backend/sqlite/local-store.js +15 -15
  31. package/dist/backend/sqlite/local.cjs +9 -9
  32. package/dist/backend/sqlite/local.d.cts +3 -3
  33. package/dist/backend/sqlite/local.d.ts +3 -3
  34. package/dist/backend/sqlite/local.js +7 -7
  35. package/dist/{chunk-5FBRVORR.cjs → chunk-2O4PCIZ6.cjs} +8 -7
  36. package/dist/chunk-2O4PCIZ6.cjs.map +1 -0
  37. package/dist/{chunk-6KFLYYOC.cjs → chunk-2QGYQBS2.cjs} +5 -5
  38. package/dist/{chunk-6KFLYYOC.cjs.map → chunk-2QGYQBS2.cjs.map} +1 -1
  39. package/dist/{chunk-XYBQI6LE.js → chunk-2TYSSBU5.js} +6 -6
  40. package/dist/{chunk-XYBQI6LE.js.map → chunk-2TYSSBU5.js.map} +1 -1
  41. package/dist/{chunk-6JVZSOHQ.cjs → chunk-3FPR224C.cjs} +26 -26
  42. package/dist/{chunk-6JVZSOHQ.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
  43. package/dist/{chunk-U5EDAVOJ.cjs → chunk-3G5W2U2L.cjs} +82 -51
  44. package/dist/chunk-3G5W2U2L.cjs.map +1 -0
  45. package/dist/{chunk-MFZR4QKM.cjs → chunk-3KOY4FH3.cjs} +181 -4
  46. package/dist/chunk-3KOY4FH3.cjs.map +1 -0
  47. package/dist/{chunk-UPAJHMW3.cjs → chunk-3QNZ5SAJ.cjs} +55 -58
  48. package/dist/chunk-3QNZ5SAJ.cjs.map +1 -0
  49. package/dist/{chunk-NG2RB5WL.js → chunk-5K2BKEBD.js} +18 -3
  50. package/dist/chunk-5K2BKEBD.js.map +1 -0
  51. package/dist/chunk-5PRKMB24.cjs +124 -0
  52. package/dist/chunk-5PRKMB24.cjs.map +1 -0
  53. package/dist/chunk-6LN7FIVU.js +107 -0
  54. package/dist/chunk-6LN7FIVU.js.map +1 -0
  55. package/dist/{chunk-M35DF33T.js → chunk-7LZJNLA5.js} +29 -16
  56. package/dist/chunk-7LZJNLA5.js.map +1 -0
  57. package/dist/{chunk-I4G3SQPF.cjs → chunk-7UOLHNWC.cjs} +7 -7
  58. package/dist/chunk-7UOLHNWC.cjs.map +1 -0
  59. package/dist/{chunk-DJZTXBWY.js → chunk-BRRP76WO.js} +71 -30
  60. package/dist/chunk-BRRP76WO.js.map +1 -0
  61. package/dist/{chunk-5FT3TLPK.js → chunk-D4QLTJSM.js} +16 -13
  62. package/dist/chunk-D4QLTJSM.js.map +1 -0
  63. package/dist/{chunk-XY5OMOJD.js → chunk-DZAICA5J.js} +3 -3
  64. package/dist/{chunk-XY5OMOJD.js.map → chunk-DZAICA5J.js.map} +1 -1
  65. package/dist/{chunk-OIFSOPSR.cjs → chunk-EZEEWCFJ.cjs} +38 -156
  66. package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
  67. package/dist/{chunk-AMMWA76F.cjs → chunk-FA2AFWLP.cjs} +6 -6
  68. package/dist/{chunk-AMMWA76F.cjs.map → chunk-FA2AFWLP.cjs.map} +1 -1
  69. package/dist/{chunk-FNOMT74T.js → chunk-I4GAZH5Z.js} +180 -5
  70. package/dist/chunk-I4GAZH5Z.js.map +1 -0
  71. package/dist/{chunk-WGX7JH7E.cjs → chunk-JB6T4GLL.cjs} +106 -134
  72. package/dist/chunk-JB6T4GLL.cjs.map +1 -0
  73. package/dist/{chunk-MX4DHSQP.cjs → chunk-JFRT7S3B.cjs} +92 -98
  74. package/dist/chunk-JFRT7S3B.cjs.map +1 -0
  75. package/dist/{chunk-5UMTUOM5.js → chunk-JPD2CTC3.js} +5 -4
  76. package/dist/chunk-JPD2CTC3.js.map +1 -0
  77. package/dist/{chunk-SE6EGQSD.js → chunk-KF6K7TGH.js} +38 -66
  78. package/dist/chunk-KF6K7TGH.js.map +1 -0
  79. package/dist/{chunk-QS3NQZVC.js → chunk-LTXQOEIC.js} +44 -14
  80. package/dist/chunk-LTXQOEIC.js.map +1 -0
  81. package/dist/{chunk-ZHNXLS3C.js → chunk-NACVVDWB.js} +208 -8
  82. package/dist/chunk-NACVVDWB.js.map +1 -0
  83. package/dist/{chunk-AVGUJWVX.js → chunk-S5TERQVW.js} +15 -132
  84. package/dist/chunk-S5TERQVW.js.map +1 -0
  85. package/dist/chunk-SIT26LAZ.cjs +614 -0
  86. package/dist/chunk-SIT26LAZ.cjs.map +1 -0
  87. package/dist/{chunk-BR7SHKGM.cjs → chunk-SR725PWF.cjs} +548 -507
  88. package/dist/chunk-SR725PWF.cjs.map +1 -0
  89. package/dist/{chunk-425IZOQ5.cjs → chunk-TQHGE7UC.cjs} +20 -2
  90. package/dist/chunk-TQHGE7UC.cjs.map +1 -0
  91. package/dist/{chunk-GYUJZARH.cjs → chunk-TUNPBZY3.cjs} +4 -4
  92. package/dist/{chunk-GYUJZARH.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
  93. package/dist/chunk-UGHG7PGX.js +592 -0
  94. package/dist/chunk-UGHG7PGX.js.map +1 -0
  95. package/dist/{chunk-BCQ76AXA.cjs → chunk-UGHQV7MP.cjs} +107 -94
  96. package/dist/chunk-UGHQV7MP.cjs.map +1 -0
  97. package/dist/{chunk-KABFHAL7.cjs → chunk-UMGZDVOA.cjs} +213 -12
  98. package/dist/chunk-UMGZDVOA.cjs.map +1 -0
  99. package/dist/{chunk-6FWSNSRE.js → chunk-WIC7DRXW.js} +4 -4
  100. package/dist/chunk-WIC7DRXW.js.map +1 -0
  101. package/dist/{chunk-LEWHMOUY.js → chunk-YIURNGXI.js} +4 -4
  102. package/dist/{chunk-LEWHMOUY.js.map → chunk-YIURNGXI.js.map} +1 -1
  103. package/dist/{chunk-EP4RUYD6.js → chunk-YVF2EM7B.js} +3 -3
  104. package/dist/{chunk-EP4RUYD6.js.map → chunk-YVF2EM7B.js.map} +1 -1
  105. package/dist/{chunk-EMIB2RXD.cjs → chunk-YYUHLYM2.cjs} +99 -96
  106. package/dist/chunk-YYUHLYM2.cjs.map +1 -0
  107. package/dist/{chunk-KH7XW7VV.js → chunk-Z2JCLZFJ.js} +25 -28
  108. package/dist/chunk-Z2JCLZFJ.js.map +1 -0
  109. package/dist/{chunk-NNQ6A3RM.js → chunk-ZFMCDJGB.js} +7 -12
  110. package/dist/chunk-ZFMCDJGB.js.map +1 -0
  111. package/dist/core/index.cjs +6 -6
  112. package/dist/core/index.d.cts +4 -4
  113. package/dist/core/index.d.ts +4 -4
  114. package/dist/core/index.js +2 -2
  115. package/dist/ddl-BL1NZLMY.d.cts +78 -0
  116. package/dist/ddl-D_oW-EVO.d.ts +78 -0
  117. package/dist/graph-extension/index.d.cts +4 -4
  118. package/dist/graph-extension/index.d.ts +4 -4
  119. package/dist/graph-merge/index.cjs +357 -191
  120. package/dist/graph-merge/index.cjs.map +1 -1
  121. package/dist/graph-merge/index.d.cts +68 -15
  122. package/dist/graph-merge/index.d.ts +68 -15
  123. package/dist/graph-merge/index.js +197 -32
  124. package/dist/graph-merge/index.js.map +1 -1
  125. package/dist/{index-CHTv4XMZ.d.cts → index-COs_z6nV.d.cts} +2 -2
  126. package/dist/{index-CzoJ3MUw.d.ts → index-D7d1u2gr.d.ts} +2 -2
  127. package/dist/index.cjs +90 -86
  128. package/dist/index.cjs.map +1 -1
  129. package/dist/index.d.cts +12 -12
  130. package/dist/index.d.ts +12 -12
  131. package/dist/index.js +13 -13
  132. package/dist/index.js.map +1 -1
  133. package/dist/indexes/index.d.cts +4 -4
  134. package/dist/indexes/index.d.ts +4 -4
  135. package/dist/ingestion-import-target-XPxZYw89.d.cts +17 -0
  136. package/dist/ingestion-import-target-dNeL7iAv.d.ts +17 -0
  137. package/dist/interchange/index.cjs +38 -38
  138. package/dist/interchange/index.d.cts +15 -12
  139. package/dist/interchange/index.d.ts +15 -12
  140. package/dist/interchange/index.js +10 -10
  141. package/dist/{manager-DlY1vlla.d.cts → manager-CYaff3n3.d.cts} +2 -2
  142. package/dist/{manager-B6sOQzcQ.d.ts → manager-D9eRT_ns.d.ts} +2 -2
  143. package/dist/{materialize-indexes-DQL4xcpf.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
  144. package/dist/{materialize-indexes-sskhp-c_.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
  145. package/dist/{postgres-BXy_nyMs.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
  146. package/dist/{postgres-B6YOUcaK.d.ts → postgres-DMj39MEu.d.cts} +1 -1
  147. package/dist/profiler/index.d.cts +9 -9
  148. package/dist/profiler/index.d.ts +9 -9
  149. package/dist/provenance/index.cjs +25 -26
  150. package/dist/provenance/index.cjs.map +1 -1
  151. package/dist/provenance/index.d.cts +7 -7
  152. package/dist/provenance/index.d.ts +7 -7
  153. package/dist/provenance/index.js +9 -10
  154. package/dist/provenance/index.js.map +1 -1
  155. package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
  156. package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
  157. package/dist/schema/index.cjs +35 -35
  158. package/dist/schema/index.d.cts +6 -6
  159. package/dist/schema/index.d.ts +6 -6
  160. package/dist/schema/index.js +8 -8
  161. package/dist/{searchable-D9gMiwcS.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
  162. package/dist/{searchable-0Cn_lY8U.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
  163. package/dist/{sqlite-DioSxaPe.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
  164. package/dist/{sqlite-ClXuBYAj.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
  165. package/dist/{store-5j-w5onJ.d.ts → store-DRrFCx5x.d.ts} +122 -27
  166. package/dist/{store-CFedKGU5.d.cts → store-bphCSo7z.d.cts} +122 -27
  167. package/dist/{temporal-CjO9FH1l.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
  168. package/dist/{temporal-Ce1pG0S1.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
  169. package/dist/{types-DKkMJZjR.d.cts → types-BqFZTQmV.d.cts} +29 -4
  170. package/dist/{types-DKkMJZjR.d.ts → types-BqFZTQmV.d.ts} +29 -4
  171. package/dist/{types-BrdOFu48.d.ts → types-Bx74kaTt.d.ts} +1 -1
  172. package/dist/{types-oj_OGAaZ.d.cts → types-CXAhpW-c.d.cts} +1 -1
  173. package/dist/{where-D1wKCJ4Q.d.cts → where-DI_Fqz-X.d.cts} +1 -1
  174. package/dist/{where-C8w2627G.d.ts → where-O-k2wgYm.d.ts} +1 -1
  175. package/package.json +2 -3
  176. package/dist/chunk-3HGRTCDU.cjs +0 -269
  177. package/dist/chunk-3HGRTCDU.cjs.map +0 -1
  178. package/dist/chunk-425IZOQ5.cjs.map +0 -1
  179. package/dist/chunk-5FBRVORR.cjs.map +0 -1
  180. package/dist/chunk-5FT3TLPK.js.map +0 -1
  181. package/dist/chunk-5UMTUOM5.js.map +0 -1
  182. package/dist/chunk-6FWSNSRE.js.map +0 -1
  183. package/dist/chunk-AVGUJWVX.js.map +0 -1
  184. package/dist/chunk-BCQ76AXA.cjs.map +0 -1
  185. package/dist/chunk-BR7SHKGM.cjs.map +0 -1
  186. package/dist/chunk-DJZTXBWY.js.map +0 -1
  187. package/dist/chunk-EMIB2RXD.cjs.map +0 -1
  188. package/dist/chunk-FNOMT74T.js.map +0 -1
  189. package/dist/chunk-I4G3SQPF.cjs.map +0 -1
  190. package/dist/chunk-JR6SX5RH.cjs +0 -268
  191. package/dist/chunk-JR6SX5RH.cjs.map +0 -1
  192. package/dist/chunk-KABFHAL7.cjs.map +0 -1
  193. package/dist/chunk-KH7XW7VV.js.map +0 -1
  194. package/dist/chunk-M35DF33T.js.map +0 -1
  195. package/dist/chunk-MFZR4QKM.cjs.map +0 -1
  196. package/dist/chunk-MX4DHSQP.cjs.map +0 -1
  197. package/dist/chunk-NAZ2RA4L.js +0 -254
  198. package/dist/chunk-NAZ2RA4L.js.map +0 -1
  199. package/dist/chunk-NG2RB5WL.js.map +0 -1
  200. package/dist/chunk-NNQ6A3RM.js.map +0 -1
  201. package/dist/chunk-OIFSOPSR.cjs.map +0 -1
  202. package/dist/chunk-QS3NQZVC.js.map +0 -1
  203. package/dist/chunk-SE6EGQSD.js.map +0 -1
  204. package/dist/chunk-SHSSRCFR.js +0 -246
  205. package/dist/chunk-SHSSRCFR.js.map +0 -1
  206. package/dist/chunk-U5EDAVOJ.cjs.map +0 -1
  207. package/dist/chunk-UPAJHMW3.cjs.map +0 -1
  208. package/dist/chunk-WGX7JH7E.cjs.map +0 -1
  209. package/dist/chunk-ZHNXLS3C.js.map +0 -1
  210. package/dist/ddl-CprnMXJ-.d.ts +0 -38
  211. package/dist/ddl-DJA7Lci5.d.cts +0 -38
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkU5EDAVOJ_cjs = require('../chunk-U5EDAVOJ.cjs');
4
- require('../chunk-WGX7JH7E.cjs');
5
- var chunkMFZR4QKM_cjs = require('../chunk-MFZR4QKM.cjs');
6
- require('../chunk-MX4DHSQP.cjs');
7
- require('../chunk-OIFSOPSR.cjs');
3
+ var chunk3G5W2U2L_cjs = require('../chunk-3G5W2U2L.cjs');
4
+ require('../chunk-JB6T4GLL.cjs');
5
+ var chunk3KOY4FH3_cjs = require('../chunk-3KOY4FH3.cjs');
6
+ require('../chunk-JFRT7S3B.cjs');
7
+ require('../chunk-EZEEWCFJ.cjs');
8
8
  require('../chunk-PWLJ77UV.cjs');
9
- require('../chunk-JR6SX5RH.cjs');
9
+ var chunkSIT26LAZ_cjs = require('../chunk-SIT26LAZ.cjs');
10
10
  require('../chunk-3U5ABFDW.cjs');
11
- var chunk3HGRTCDU_cjs = require('../chunk-3HGRTCDU.cjs');
11
+ require('../chunk-5PRKMB24.cjs');
12
12
  require('../chunk-BFUOME67.cjs');
13
13
  require('../chunk-FQPEMEWX.cjs');
14
- require('../chunk-6KFLYYOC.cjs');
15
- var chunk425IZOQ5_cjs = require('../chunk-425IZOQ5.cjs');
14
+ require('../chunk-2QGYQBS2.cjs');
15
+ var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
16
16
  require('../chunk-NAUA4PW5.cjs');
17
17
  require('../chunk-L3LQNR34.cjs');
18
18
  require('../chunk-EDN4Y4ZG.cjs');
@@ -81,10 +81,10 @@ function invalidStream(message) {
81
81
  }
82
82
  function nonCanonicalWindowOf(entity) {
83
83
  const { validFrom, validTo } = entity;
84
- if (typeof validFrom === "string" && !chunk425IZOQ5_cjs.isCanonicalIsoDate(validFrom)) {
84
+ if (typeof validFrom === "string" && !chunkTQHGE7UC_cjs.isCanonicalIsoDate(validFrom)) {
85
85
  return { field: "validFrom", value: validFrom };
86
86
  }
87
- if (typeof validTo === "string" && !chunk425IZOQ5_cjs.isCanonicalIsoDate(validTo)) {
87
+ if (typeof validTo === "string" && !chunkTQHGE7UC_cjs.isCanonicalIsoDate(validTo)) {
88
88
  return { field: "validTo", value: validTo };
89
89
  }
90
90
  return void 0;
@@ -100,7 +100,7 @@ function nonCanonicalWindowMessage(subject, field, value) {
100
100
  return `Non-canonical ${field} in trusted import: ${subject} states "${value}". Expected canonical fixed-width UTC ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ), which is what makes a stored timestamp sort chronologically against an asOf coordinate. Convert with new Date(value).toISOString().`;
101
101
  }
102
102
  function hasInvertedWindow(entity) {
103
- return chunk425IZOQ5_cjs.isInvertedValidityWindow(
103
+ return chunkTQHGE7UC_cjs.isInvertedValidityWindow(
104
104
  entity.validFrom ?? void 0,
105
105
  entity.validTo
106
106
  );
@@ -260,7 +260,7 @@ async function consumeTrustedChunks(store, session, chunks) {
260
260
  }
261
261
  async function trustedImportGraphStream(store, chunks) {
262
262
  rejectUnsupportedStoreFeatures(store);
263
- const backend = chunkMFZR4QKM_cjs.storeBackend(store);
263
+ const backend = chunk3KOY4FH3_cjs.storeBackend(store);
264
264
  const trustedImport = backend.trustedImport;
265
265
  if (trustedImport === void 0) {
266
266
  throw new chunkMRDBBHIZ_cjs.TrustedImportError(
@@ -269,10 +269,10 @@ async function trustedImportGraphStream(store, chunks) {
269
269
  { dialect: backend.dialect }
270
270
  );
271
271
  }
272
- const sourceBackend = Symbol.asyncIterator in chunks ? chunkU5EDAVOJ_cjs.exportStreamBackend(chunks) : void 0;
273
- const contention = sourceBackend === void 0 ? void 0 : chunk3HGRTCDU_cjs.snapshotExportContention(sourceBackend, backend);
272
+ const sourceBackend = Symbol.asyncIterator in chunks ? chunk3G5W2U2L_cjs.exportStreamBackend(chunks) : void 0;
273
+ const contention = sourceBackend === void 0 ? void 0 : chunkSIT26LAZ_cjs.snapshotExportContention(sourceBackend, backend);
274
274
  if (contention !== void 0) {
275
- throw chunkU5EDAVOJ_cjs.serializedStreamRefusal({
275
+ throw chunk3G5W2U2L_cjs.serializedStreamRefusal({
276
276
  graphId: store.graphId,
277
277
  requested: "import-stream",
278
278
  heldBy: "export-snapshot",
@@ -286,7 +286,7 @@ async function trustedImportGraphStream(store, chunks) {
286
286
  expectedVersion: schemaVersion
287
287
  }
288
288
  };
289
- return chunkU5EDAVOJ_cjs.withImportStreamLease(
289
+ return chunk3G5W2U2L_cjs.withImportStreamLease(
290
290
  store,
291
291
  () => trustedImport(
292
292
  (session) => consumeTrustedChunks(store, session, chunks),
@@ -315,87 +315,87 @@ function trustedImportGraph(store, data) {
315
315
 
316
316
  Object.defineProperty(exports, "ConflictStrategySchema", {
317
317
  enumerable: true,
318
- get: function () { return chunkU5EDAVOJ_cjs.ConflictStrategySchema; }
318
+ get: function () { return chunk3G5W2U2L_cjs.ConflictStrategySchema; }
319
319
  });
320
320
  Object.defineProperty(exports, "ExportOptionsSchema", {
321
321
  enumerable: true,
322
- get: function () { return chunkU5EDAVOJ_cjs.ExportOptionsSchema; }
322
+ get: function () { return chunk3G5W2U2L_cjs.ExportOptionsSchema; }
323
323
  });
324
324
  Object.defineProperty(exports, "ExportStreamOptionsSchema", {
325
325
  enumerable: true,
326
- get: function () { return chunkU5EDAVOJ_cjs.ExportStreamOptionsSchema; }
326
+ get: function () { return chunk3G5W2U2L_cjs.ExportStreamOptionsSchema; }
327
327
  });
328
328
  Object.defineProperty(exports, "FORMAT_VERSION", {
329
329
  enumerable: true,
330
- get: function () { return chunkU5EDAVOJ_cjs.FORMAT_VERSION; }
330
+ get: function () { return chunk3G5W2U2L_cjs.FORMAT_VERSION; }
331
331
  });
332
332
  Object.defineProperty(exports, "GraphDataHeaderSchema", {
333
333
  enumerable: true,
334
- get: function () { return chunkU5EDAVOJ_cjs.GraphDataHeaderSchema; }
334
+ get: function () { return chunk3G5W2U2L_cjs.GraphDataHeaderSchema; }
335
335
  });
336
336
  Object.defineProperty(exports, "GraphDataSchema", {
337
337
  enumerable: true,
338
- get: function () { return chunkU5EDAVOJ_cjs.GraphDataSchema; }
338
+ get: function () { return chunk3G5W2U2L_cjs.GraphDataSchema; }
339
339
  });
340
340
  Object.defineProperty(exports, "GraphDataSourceSchema", {
341
341
  enumerable: true,
342
- get: function () { return chunkU5EDAVOJ_cjs.GraphDataSourceSchema; }
342
+ get: function () { return chunk3G5W2U2L_cjs.GraphDataSourceSchema; }
343
343
  });
344
344
  Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
345
345
  enumerable: true,
346
- get: function () { return chunkU5EDAVOJ_cjs.GraphInterchangeChunkSchema; }
346
+ get: function () { return chunk3G5W2U2L_cjs.GraphInterchangeChunkSchema; }
347
347
  });
348
348
  Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
349
349
  enumerable: true,
350
- get: function () { return chunkU5EDAVOJ_cjs.IdentityInterchangeModeSchema; }
350
+ get: function () { return chunk3G5W2U2L_cjs.IdentityInterchangeModeSchema; }
351
351
  });
352
352
  Object.defineProperty(exports, "ImportErrorSchema", {
353
353
  enumerable: true,
354
- get: function () { return chunkU5EDAVOJ_cjs.ImportErrorSchema; }
354
+ get: function () { return chunk3G5W2U2L_cjs.ImportErrorSchema; }
355
355
  });
356
356
  Object.defineProperty(exports, "ImportOptionsSchema", {
357
357
  enumerable: true,
358
- get: function () { return chunkU5EDAVOJ_cjs.ImportOptionsSchema; }
358
+ get: function () { return chunk3G5W2U2L_cjs.ImportOptionsSchema; }
359
359
  });
360
360
  Object.defineProperty(exports, "ImportResultSchema", {
361
361
  enumerable: true,
362
- get: function () { return chunkU5EDAVOJ_cjs.ImportResultSchema; }
362
+ get: function () { return chunk3G5W2U2L_cjs.ImportResultSchema; }
363
363
  });
364
364
  Object.defineProperty(exports, "InterchangeEdgeSchema", {
365
365
  enumerable: true,
366
- get: function () { return chunkU5EDAVOJ_cjs.InterchangeEdgeSchema; }
366
+ get: function () { return chunk3G5W2U2L_cjs.InterchangeEdgeSchema; }
367
367
  });
368
368
  Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
369
369
  enumerable: true,
370
- get: function () { return chunkU5EDAVOJ_cjs.InterchangeIdentityAssertionSchema; }
370
+ get: function () { return chunk3G5W2U2L_cjs.InterchangeIdentityAssertionSchema; }
371
371
  });
372
372
  Object.defineProperty(exports, "InterchangeIdentitySchema", {
373
373
  enumerable: true,
374
- get: function () { return chunkU5EDAVOJ_cjs.InterchangeIdentitySchema; }
374
+ get: function () { return chunk3G5W2U2L_cjs.InterchangeIdentitySchema; }
375
375
  });
376
376
  Object.defineProperty(exports, "InterchangeNodeSchema", {
377
377
  enumerable: true,
378
- get: function () { return chunkU5EDAVOJ_cjs.InterchangeNodeSchema; }
378
+ get: function () { return chunk3G5W2U2L_cjs.InterchangeNodeSchema; }
379
379
  });
380
380
  Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
381
381
  enumerable: true,
382
- get: function () { return chunkU5EDAVOJ_cjs.UnknownPropertyStrategySchema; }
382
+ get: function () { return chunk3G5W2U2L_cjs.UnknownPropertyStrategySchema; }
383
383
  });
384
384
  Object.defineProperty(exports, "exportGraph", {
385
385
  enumerable: true,
386
- get: function () { return chunkU5EDAVOJ_cjs.exportGraph; }
386
+ get: function () { return chunk3G5W2U2L_cjs.exportGraph; }
387
387
  });
388
388
  Object.defineProperty(exports, "exportGraphStream", {
389
389
  enumerable: true,
390
- get: function () { return chunkU5EDAVOJ_cjs.exportGraphStream; }
390
+ get: function () { return chunk3G5W2U2L_cjs.exportGraphStream; }
391
391
  });
392
392
  Object.defineProperty(exports, "importGraph", {
393
393
  enumerable: true,
394
- get: function () { return chunkU5EDAVOJ_cjs.importGraph; }
394
+ get: function () { return chunk3G5W2U2L_cjs.importGraph; }
395
395
  });
396
396
  Object.defineProperty(exports, "importGraphStream", {
397
397
  enumerable: true,
398
- get: function () { return chunkU5EDAVOJ_cjs.importGraphStream; }
398
+ get: function () { return chunk3G5W2U2L_cjs.importGraphStream; }
399
399
  });
400
400
  exports.trustedImportGraph = trustedImportGraph;
401
401
  exports.trustedImportGraphStream = trustedImportGraphStream;
@@ -1,11 +1,12 @@
1
- import { d as GraphDef } from '../types-DKkMJZjR.cjs';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-DKkMJZjR.cjs';
1
+ import { d8 as GraphDef } from '../types-BqFZTQmV.cjs';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.cjs';
3
3
  import { z } from 'zod';
4
- import { a as Store } from '../store-CFedKGU5.cjs';
5
- import '../temporal-Ce1pG0S1.cjs';
6
- import '../searchable-0Cn_lY8U.cjs';
7
- import '../manager-DlY1vlla.cjs';
8
- import '../materialize-indexes-sskhp-c_.cjs';
4
+ import { a as Store } from '../store-bphCSo7z.cjs';
5
+ import { I as IngestionImportTarget } from '../ingestion-import-target-XPxZYw89.cjs';
6
+ import '../temporal-5GqpYCk2.cjs';
7
+ import '../searchable-DHJMh_nj.cjs';
8
+ import '../manager-CYaff3n3.cjs';
9
+ import '../materialize-indexes-DTtAnvfY.cjs';
9
10
 
10
11
  /**
11
12
  * Graph interchange format types.
@@ -559,8 +560,10 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
559
560
  */
560
561
  declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
561
562
 
563
+ /** A normal Store or an opaque ingestion branch that interchange may stage. */
564
+ type ImportTarget<G extends GraphDef> = Store<G> | IngestionImportTarget<G>;
562
565
  /**
563
- * Import graph data into a store.
566
+ * Import graph data into a store or opaque ingestion branch.
564
567
  *
565
568
  * Nodes are imported first to satisfy edge reference validation.
566
569
  * The import runs within a transaction for atomicity when supported.
@@ -573,7 +576,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
573
576
  * connection is therefore refused on the first chunk instead of nesting a write
574
577
  * transaction inside the export's open snapshot.
575
578
  *
576
- * @param store - The graph store to import into
579
+ * @param target - The graph store or ingestion branch to import into
577
580
  * @param data - Graph data in interchange format
578
581
  * @param options - Import configuration
579
582
  * @returns Import statistics and any errors
@@ -588,7 +591,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
588
591
  * console.log(`Created ${result.nodes.created} nodes`);
589
592
  * ```
590
593
  */
591
- declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
594
+ declare function importGraph<G extends GraphDef>(target: ImportTarget<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
592
595
  /**
593
596
  * Imports a header-first stream of bounded interchange chunks.
594
597
  *
@@ -626,7 +629,7 @@ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphDat
626
629
  * single-connection — see the residual gap documented in
627
630
  * `backend/transaction-resource.ts`.
628
631
  */
629
- declare function importGraphStream<G extends GraphDef>(store: Store<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
632
+ declare function importGraphStream<G extends GraphDef>(target: ImportTarget<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
630
633
 
631
634
  /** Counts committed by a trusted initial import. */
632
635
  type TrustedImportResult = Readonly<{
@@ -656,4 +659,4 @@ declare function trustedImportGraphStream<G extends GraphDef>(store: Store<G>, c
656
659
  /** In-memory convenience wrapper around {@link trustedImportGraphStream}. */
657
660
  declare function trustedImportGraph<G extends GraphDef>(store: Store<G>, data: GraphData): Promise<TrustedImportResult>;
658
661
 
659
- 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 IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
662
+ 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 IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type ImportTarget, IngestionImportTarget, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
@@ -1,11 +1,12 @@
1
- import { d as GraphDef } from '../types-DKkMJZjR.js';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-DKkMJZjR.js';
1
+ import { d8 as GraphDef } from '../types-BqFZTQmV.js';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.js';
3
3
  import { z } from 'zod';
4
- import { a as Store } from '../store-5j-w5onJ.js';
5
- import '../temporal-CjO9FH1l.js';
6
- import '../searchable-D9gMiwcS.js';
7
- import '../manager-B6sOQzcQ.js';
8
- import '../materialize-indexes-DQL4xcpf.js';
4
+ import { a as Store } from '../store-DRrFCx5x.js';
5
+ import { I as IngestionImportTarget } from '../ingestion-import-target-dNeL7iAv.js';
6
+ import '../temporal-CbnLzTmM.js';
7
+ import '../searchable-bpE1bBfc.js';
8
+ import '../manager-D9eRT_ns.js';
9
+ import '../materialize-indexes-DJ3ykH59.js';
9
10
 
10
11
  /**
11
12
  * Graph interchange format types.
@@ -559,8 +560,10 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
559
560
  */
560
561
  declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
561
562
 
563
+ /** A normal Store or an opaque ingestion branch that interchange may stage. */
564
+ type ImportTarget<G extends GraphDef> = Store<G> | IngestionImportTarget<G>;
562
565
  /**
563
- * Import graph data into a store.
566
+ * Import graph data into a store or opaque ingestion branch.
564
567
  *
565
568
  * Nodes are imported first to satisfy edge reference validation.
566
569
  * The import runs within a transaction for atomicity when supported.
@@ -573,7 +576,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
573
576
  * connection is therefore refused on the first chunk instead of nesting a write
574
577
  * transaction inside the export's open snapshot.
575
578
  *
576
- * @param store - The graph store to import into
579
+ * @param target - The graph store or ingestion branch to import into
577
580
  * @param data - Graph data in interchange format
578
581
  * @param options - Import configuration
579
582
  * @returns Import statistics and any errors
@@ -588,7 +591,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
588
591
  * console.log(`Created ${result.nodes.created} nodes`);
589
592
  * ```
590
593
  */
591
- declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
594
+ declare function importGraph<G extends GraphDef>(target: ImportTarget<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
592
595
  /**
593
596
  * Imports a header-first stream of bounded interchange chunks.
594
597
  *
@@ -626,7 +629,7 @@ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphDat
626
629
  * single-connection — see the residual gap documented in
627
630
  * `backend/transaction-resource.ts`.
628
631
  */
629
- declare function importGraphStream<G extends GraphDef>(store: Store<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
632
+ declare function importGraphStream<G extends GraphDef>(target: ImportTarget<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
630
633
 
631
634
  /** Counts committed by a trusted initial import. */
632
635
  type TrustedImportResult = Readonly<{
@@ -656,4 +659,4 @@ declare function trustedImportGraphStream<G extends GraphDef>(store: Store<G>, c
656
659
  /** In-memory convenience wrapper around {@link trustedImportGraphStream}. */
657
660
  declare function trustedImportGraph<G extends GraphDef>(store: Store<G>, data: GraphData): Promise<TrustedImportResult>;
658
661
 
659
- 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 IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
662
+ 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 IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type ImportTarget, IngestionImportTarget, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
@@ -1,17 +1,17 @@
1
- import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-QS3NQZVC.js';
2
- export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-QS3NQZVC.js';
3
- import '../chunk-SE6EGQSD.js';
4
- import { storeBackend } from '../chunk-FNOMT74T.js';
5
- import '../chunk-NNQ6A3RM.js';
6
- import '../chunk-AVGUJWVX.js';
1
+ import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-LTXQOEIC.js';
2
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-LTXQOEIC.js';
3
+ import '../chunk-KF6K7TGH.js';
4
+ import { storeBackend } from '../chunk-I4GAZH5Z.js';
5
+ import '../chunk-ZFMCDJGB.js';
6
+ import '../chunk-S5TERQVW.js';
7
7
  import '../chunk-JBQQ7THH.js';
8
- import '../chunk-NAZ2RA4L.js';
8
+ import { snapshotExportContention } from '../chunk-UGHG7PGX.js';
9
9
  import '../chunk-NVY5CJFP.js';
10
- import { snapshotExportContention } from '../chunk-SHSSRCFR.js';
10
+ import '../chunk-6LN7FIVU.js';
11
11
  import '../chunk-HEV35TGT.js';
12
12
  import '../chunk-GLHXM7C4.js';
13
- import '../chunk-XY5OMOJD.js';
14
- import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-NG2RB5WL.js';
13
+ import '../chunk-DZAICA5J.js';
14
+ import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-5K2BKEBD.js';
15
15
  import '../chunk-2EBMPJBO.js';
16
16
  import '../chunk-ZDKTPBGV.js';
17
17
  import '../chunk-3DMMGT6S.js';
@@ -1,5 +1,5 @@
1
- import { u as NodeType, v as AnyEdgeType, G as GraphIdentityConfig, w as SqlSchema, x as SchemaVersionRow, y as GraphBackend, z as SerializedSchema, d as GraphDef } from './types-DKkMJZjR.cjs';
2
- import { S as SchemaDiff } from './materialize-indexes-sskhp-c_.cjs';
1
+ import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.cjs';
2
+ import { S as SchemaDiff } from './materialize-indexes-DTtAnvfY.cjs';
3
3
 
4
4
  /**
5
5
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -1,5 +1,5 @@
1
- import { u as NodeType, v as AnyEdgeType, G as GraphIdentityConfig, w as SqlSchema, x as SchemaVersionRow, y as GraphBackend, z as SerializedSchema, d as GraphDef } from './types-DKkMJZjR.js';
2
- import { S as SchemaDiff } from './materialize-indexes-DQL4xcpf.js';
1
+ import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.js';
2
+ import { S as SchemaDiff } from './materialize-indexes-DJ3ykH59.js';
3
3
 
4
4
  /**
5
5
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -1,4 +1,4 @@
1
- import { D as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, z as SerializedSchema } from './types-DKkMJZjR.js';
1
+ import { bW as SerializedNodeDef, bU as SerializedEdgeDef, b0 as IndexEntity, I as IndexDeclaration, bZ as SerializedSchema } from './types-BqFZTQmV.js';
2
2
 
3
3
  /**
4
4
  * Schema migration utilities.
@@ -1,4 +1,4 @@
1
- import { D as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, z as SerializedSchema } from './types-DKkMJZjR.cjs';
1
+ import { bW as SerializedNodeDef, bU as SerializedEdgeDef, b0 as IndexEntity, I as IndexDeclaration, bZ as SerializedSchema } from './types-BqFZTQmV.cjs';
2
2
 
3
3
  /**
4
4
  * Schema migration utilities.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-DKkMJZjR.cjs';
2
+ import { I as IndexDeclaration } from './types-BqFZTQmV.js';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-DKkMJZjR.js';
2
+ import { I as IndexDeclaration } from './types-BqFZTQmV.cjs';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,13 +1,13 @@
1
- import { d as GraphDef, Q as QueryAst } from '../types-DKkMJZjR.cjs';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-DKkMJZjR.cjs';
3
- import { a as Store } from '../store-CFedKGU5.cjs';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-oj_OGAaZ.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-oj_OGAaZ.cjs';
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';
6
6
  import 'zod';
7
- import '../temporal-Ce1pG0S1.cjs';
8
- import '../searchable-0Cn_lY8U.cjs';
9
- import '../manager-DlY1vlla.cjs';
10
- import '../materialize-indexes-sskhp-c_.cjs';
7
+ import '../temporal-5GqpYCk2.cjs';
8
+ import '../searchable-DHJMh_nj.cjs';
9
+ import '../manager-CYaff3n3.cjs';
10
+ import '../materialize-indexes-DTtAnvfY.cjs';
11
11
 
12
12
  /**
13
13
  * A Store with profiling capabilities.
@@ -1,13 +1,13 @@
1
- import { d as GraphDef, Q as QueryAst } from '../types-DKkMJZjR.js';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-DKkMJZjR.js';
3
- import { a as Store } from '../store-5j-w5onJ.js';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-BrdOFu48.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-BrdOFu48.js';
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';
6
6
  import 'zod';
7
- import '../temporal-CjO9FH1l.js';
8
- import '../searchable-D9gMiwcS.js';
9
- import '../manager-B6sOQzcQ.js';
10
- import '../materialize-indexes-DQL4xcpf.js';
7
+ import '../temporal-CbnLzTmM.js';
8
+ import '../searchable-bpE1bBfc.js';
9
+ import '../manager-D9eRT_ns.js';
10
+ import '../materialize-indexes-DJ3ykH59.js';
11
11
 
12
12
  /**
13
13
  * A Store with profiling capabilities.
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkMFZR4QKM_cjs = require('../chunk-MFZR4QKM.cjs');
4
- var chunkOIFSOPSR_cjs = require('../chunk-OIFSOPSR.cjs');
5
- require('../chunk-JR6SX5RH.cjs');
3
+ var chunk3KOY4FH3_cjs = require('../chunk-3KOY4FH3.cjs');
4
+ var chunkEZEEWCFJ_cjs = require('../chunk-EZEEWCFJ.cjs');
5
+ require('../chunk-SIT26LAZ.cjs');
6
6
  require('../chunk-3U5ABFDW.cjs');
7
- var chunk3HGRTCDU_cjs = require('../chunk-3HGRTCDU.cjs');
7
+ var chunk5PRKMB24_cjs = require('../chunk-5PRKMB24.cjs');
8
8
  require('../chunk-FQPEMEWX.cjs');
9
- require('../chunk-6KFLYYOC.cjs');
10
- var chunk425IZOQ5_cjs = require('../chunk-425IZOQ5.cjs');
9
+ require('../chunk-2QGYQBS2.cjs');
10
+ var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
11
11
  require('../chunk-NAUA4PW5.cjs');
12
12
  require('../chunk-EDN4Y4ZG.cjs');
13
13
  require('../chunk-RT5ZY4XA.cjs');
@@ -47,10 +47,10 @@ function keyToRef(key) {
47
47
  return { kind, id };
48
48
  }
49
49
  function sortedReferences(keys) {
50
- return [...keys].toSorted((left, right) => chunkOIFSOPSR_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
50
+ return [...keys].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
51
51
  }
52
52
  function parseNodeProps(row) {
53
- const parsed = chunk3HGRTCDU_cjs.rowPropsToObject(row.props);
53
+ const parsed = chunk5PRKMB24_cjs.rowPropsToObject(row.props);
54
54
  if (!chunkN66HCGCY_cjs.isPlainObject(parsed)) {
55
55
  throw new chunkMRDBBHIZ_cjs.ConfigurationError(
56
56
  `Node ${row.kind}/${row.id} props are not an object.`,
@@ -157,7 +157,7 @@ function duplicateValues(values) {
157
157
  }
158
158
  seen.add(value);
159
159
  }
160
- return [...duplicates].toSorted((left, right) => chunkOIFSOPSR_cjs.compareStrings(left, right));
160
+ return [...duplicates].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right));
161
161
  }
162
162
  function assertKind(records, kind, role, noun, graphId) {
163
163
  if (Object.hasOwn(records, kind)) return;
@@ -198,9 +198,6 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
198
198
  );
199
199
  }
200
200
  }
201
- function isValidAt(row, asOf) {
202
- return (row.valid_from === void 0 || row.valid_from <= asOf) && (row.valid_to === void 0 || row.valid_to > asOf);
203
- }
204
201
  async function findNodeRows(backend, graphId, kind, options) {
205
202
  if (options.includeTombstones) {
206
203
  const rows = await backend.findNodesByKind({
@@ -210,7 +207,9 @@ async function findNodeRows(backend, graphId, kind, options) {
210
207
  temporalMode: "includeTombstones",
211
208
  orderBy: "id"
212
209
  });
213
- return rows.filter((row) => isValidAt(row, options.asOf));
210
+ return rows.filter(
211
+ (row) => chunkTQHGE7UC_cjs.validityWindowContainsInstant(row.valid_from, row.valid_to, options.asOf)
212
+ );
214
213
  }
215
214
  return backend.findNodesByKind({
216
215
  graphId,
@@ -298,7 +297,7 @@ function buildSupportEdges(config, rows) {
298
297
  };
299
298
  }
300
299
  async function loadSupportGraph(backend, graphId, config) {
301
- const asOf = chunk425IZOQ5_cjs.nowIso();
300
+ const asOf = chunkTQHGE7UC_cjs.nowIso();
302
301
  const roles = await readRoles(backend, graphId, config, asOf);
303
302
  const supportEdges = buildSupportEdges(config, roles);
304
303
  const sourceRowsByKind = await Promise.all(
@@ -406,7 +405,7 @@ function buildReport(before, after, affected) {
406
405
  const unaffected = sortedReferences(
407
406
  believedBefore.filter((key) => !affected.has(key))
408
407
  );
409
- const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkOIFSOPSR_cjs.compareStrings(left, right)).map((key) => ({
408
+ const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => ({
410
409
  fact: keyToRef(key),
411
410
  via: sortedReferences(
412
411
  after.firingJustificationKeysByFact.get(key) ?? []
@@ -429,14 +428,14 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
429
428
  snapshot,
430
429
  affected,
431
430
  (key) => !snapshot.supportedFactKeys.has(key),
432
- chunk3HGRTCDU_cjs.isLiveNodeRow,
431
+ chunk5PRKMB24_cjs.isLiveNodeRow,
433
432
  (row) => closeFactCurrency(backend, store, runHooks, row, lock)
434
433
  );
435
434
  await forEachAffectedFact(
436
435
  snapshot,
437
436
  affected,
438
437
  (key) => snapshot.supportedFactKeys.has(key),
439
- chunk3HGRTCDU_cjs.isTombstonedNodeRow,
438
+ chunk5PRKMB24_cjs.isTombstonedNodeRow,
440
439
  (row) => reopenFactCurrency(backend, store, runHooks, row, lock)
441
440
  );
442
441
  }
@@ -451,8 +450,8 @@ function getFactRegistration(store, row) {
451
450
  async function closeFactCurrency(backend, store, runHooks, row, lock) {
452
451
  await runHooks("delete", row.kind, row.id, async () => {
453
452
  const registration = getFactRegistration(store, row);
454
- await chunkMFZR4QKM_cjs.applyNodeSoftDelete(
455
- chunkMFZR4QKM_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
453
+ await chunk3KOY4FH3_cjs.applyNodeSoftDelete(
454
+ chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
456
455
  {
457
456
  existing: row,
458
457
  schema: registration.type.schema,
@@ -467,8 +466,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
467
466
  async function reopenFactCurrency(backend, store, runHooks, row, lock) {
468
467
  await runHooks("update", row.kind, row.id, async () => {
469
468
  const registration = getFactRegistration(store, row);
470
- await chunkMFZR4QKM_cjs.applyNodeResurrect(
471
- chunkMFZR4QKM_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
469
+ await chunk3KOY4FH3_cjs.applyNodeResurrect(
470
+ chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
472
471
  {
473
472
  existing: row,
474
473
  schema: registration.type.schema,
@@ -500,8 +499,8 @@ async function runTransition(store, config, sources, retracted) {
500
499
  );
501
500
  }
502
501
  return store.transaction(async (tx) => {
503
- const backend = chunkMFZR4QKM_cjs.transactionBackend(tx);
504
- const lock = await chunkOIFSOPSR_cjs.lockRecordedGraphWrite(backend, store.graphId);
502
+ const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
503
+ const lock = await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
505
504
  const rows = await Promise.all(
506
505
  uniqueSources.map(
507
506
  (source) => backend.getNode(store.graphId, source.kind, source.id)
@@ -537,7 +536,7 @@ async function runTransition(store, config, sources, retracted) {
537
536
  await synchronizeFactCurrency(
538
537
  backend,
539
538
  store,
540
- chunkMFZR4QKM_cjs.transactionNodeOperationHookRunner(tx),
539
+ chunk3KOY4FH3_cjs.transactionNodeOperationHookRunner(tx),
541
540
  after,
542
541
  affected,
543
542
  lock
@@ -563,8 +562,8 @@ function createRetractionCapability(store, config) {
563
562
  unRetractMany: (sources) => transition(sources, false),
564
563
  async holding() {
565
564
  return store.transaction(async (tx) => {
566
- const backend = chunkMFZR4QKM_cjs.transactionBackend(tx);
567
- await chunkOIFSOPSR_cjs.lockRecordedGraphWrite(backend, store.graphId);
565
+ const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
566
+ await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
568
567
  const snapshot = await computeSupport(
569
568
  backend,
570
569
  store.graphId,