@nicia-ai/typegraph 0.47.0 → 0.48.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 (207) 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-EMIB2RXD.cjs → chunk-2HIYYMWY.cjs} +99 -96
  36. package/dist/chunk-2HIYYMWY.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-5FT3TLPK.js → chunk-2SYZXD54.js} +16 -13
  40. package/dist/chunk-2SYZXD54.js.map +1 -0
  41. package/dist/{chunk-XYBQI6LE.js → chunk-2TYSSBU5.js} +6 -6
  42. package/dist/{chunk-XYBQI6LE.js.map → chunk-2TYSSBU5.js.map} +1 -1
  43. package/dist/{chunk-6JVZSOHQ.cjs → chunk-3FPR224C.cjs} +26 -26
  44. package/dist/{chunk-6JVZSOHQ.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
  45. package/dist/{chunk-MFZR4QKM.cjs → chunk-3KOY4FH3.cjs} +181 -4
  46. package/dist/chunk-3KOY4FH3.cjs.map +1 -0
  47. package/dist/{chunk-6FWSNSRE.js → chunk-4WMMBDS5.js} +4 -4
  48. package/dist/chunk-4WMMBDS5.js.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-I4G3SQPF.cjs → chunk-7XUYFFR4.cjs} +7 -7
  56. package/dist/chunk-7XUYFFR4.cjs.map +1 -0
  57. package/dist/{chunk-KH7XW7VV.js → chunk-ACGSAMD3.js} +24 -27
  58. package/dist/chunk-ACGSAMD3.js.map +1 -0
  59. package/dist/{chunk-QS3NQZVC.js → chunk-AX6JGVTZ.js} +16 -11
  60. package/dist/chunk-AX6JGVTZ.js.map +1 -0
  61. package/dist/{chunk-DJZTXBWY.js → chunk-BRRP76WO.js} +71 -30
  62. package/dist/chunk-BRRP76WO.js.map +1 -0
  63. package/dist/{chunk-5UMTUOM5.js → chunk-CT3ZKTOF.js} +5 -4
  64. package/dist/chunk-CT3ZKTOF.js.map +1 -0
  65. package/dist/{chunk-XY5OMOJD.js → chunk-DZAICA5J.js} +3 -3
  66. package/dist/{chunk-XY5OMOJD.js.map → chunk-DZAICA5J.js.map} +1 -1
  67. package/dist/{chunk-OIFSOPSR.cjs → chunk-EZEEWCFJ.cjs} +38 -156
  68. package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
  69. package/dist/{chunk-AMMWA76F.cjs → chunk-FA2AFWLP.cjs} +6 -6
  70. package/dist/{chunk-AMMWA76F.cjs.map → chunk-FA2AFWLP.cjs.map} +1 -1
  71. package/dist/{chunk-FNOMT74T.js → chunk-I4GAZH5Z.js} +180 -5
  72. package/dist/chunk-I4GAZH5Z.js.map +1 -0
  73. package/dist/{chunk-WGX7JH7E.cjs → chunk-JB6T4GLL.cjs} +106 -134
  74. package/dist/chunk-JB6T4GLL.cjs.map +1 -0
  75. package/dist/{chunk-MX4DHSQP.cjs → chunk-JFRT7S3B.cjs} +92 -98
  76. package/dist/chunk-JFRT7S3B.cjs.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-ZHNXLS3C.js → chunk-NACVVDWB.js} +208 -8
  80. package/dist/chunk-NACVVDWB.js.map +1 -0
  81. package/dist/{chunk-M35DF33T.js → chunk-OD4SSY2U.js} +29 -16
  82. package/dist/chunk-OD4SSY2U.js.map +1 -0
  83. package/dist/{chunk-U5EDAVOJ.cjs → chunk-OTUPEF2W.cjs} +54 -49
  84. package/dist/chunk-OTUPEF2W.cjs.map +1 -0
  85. package/dist/{chunk-BCQ76AXA.cjs → chunk-PFBRJBUL.cjs} +107 -94
  86. package/dist/chunk-PFBRJBUL.cjs.map +1 -0
  87. package/dist/{chunk-AVGUJWVX.js → chunk-S5TERQVW.js} +15 -132
  88. package/dist/chunk-S5TERQVW.js.map +1 -0
  89. package/dist/chunk-SIT26LAZ.cjs +614 -0
  90. package/dist/chunk-SIT26LAZ.cjs.map +1 -0
  91. package/dist/{chunk-BR7SHKGM.cjs → chunk-SR725PWF.cjs} +548 -507
  92. package/dist/chunk-SR725PWF.cjs.map +1 -0
  93. package/dist/{chunk-5FBRVORR.cjs → chunk-TKZXMWQF.cjs} +8 -7
  94. package/dist/chunk-TKZXMWQF.cjs.map +1 -0
  95. package/dist/{chunk-425IZOQ5.cjs → chunk-TQHGE7UC.cjs} +20 -2
  96. package/dist/chunk-TQHGE7UC.cjs.map +1 -0
  97. package/dist/{chunk-GYUJZARH.cjs → chunk-TUNPBZY3.cjs} +4 -4
  98. package/dist/{chunk-GYUJZARH.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
  99. package/dist/chunk-UGHG7PGX.js +592 -0
  100. package/dist/chunk-UGHG7PGX.js.map +1 -0
  101. package/dist/{chunk-KABFHAL7.cjs → chunk-UMGZDVOA.cjs} +213 -12
  102. package/dist/chunk-UMGZDVOA.cjs.map +1 -0
  103. package/dist/{chunk-UPAJHMW3.cjs → chunk-WCCATHMB.cjs} +54 -57
  104. package/dist/chunk-WCCATHMB.cjs.map +1 -0
  105. package/dist/{chunk-LEWHMOUY.js → chunk-YIURNGXI.js} +4 -4
  106. package/dist/{chunk-LEWHMOUY.js.map → chunk-YIURNGXI.js.map} +1 -1
  107. package/dist/{chunk-EP4RUYD6.js → chunk-YVF2EM7B.js} +3 -3
  108. package/dist/{chunk-EP4RUYD6.js.map → chunk-YVF2EM7B.js.map} +1 -1
  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 +334 -191
  120. package/dist/graph-merge/index.cjs.map +1 -1
  121. package/dist/graph-merge/index.d.cts +65 -15
  122. package/dist/graph-merge/index.d.ts +65 -15
  123. package/dist/graph-merge/index.js +174 -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.d.cts +12 -12
  129. package/dist/index.d.ts +12 -12
  130. package/dist/index.js +13 -13
  131. package/dist/indexes/index.d.cts +4 -4
  132. package/dist/indexes/index.d.ts +4 -4
  133. package/dist/interchange/index.cjs +38 -38
  134. package/dist/interchange/index.d.cts +7 -7
  135. package/dist/interchange/index.d.ts +7 -7
  136. package/dist/interchange/index.js +10 -10
  137. package/dist/{manager-DlY1vlla.d.cts → manager-CYaff3n3.d.cts} +2 -2
  138. package/dist/{manager-B6sOQzcQ.d.ts → manager-D9eRT_ns.d.ts} +2 -2
  139. package/dist/{materialize-indexes-DQL4xcpf.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
  140. package/dist/{materialize-indexes-sskhp-c_.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
  141. package/dist/{postgres-BXy_nyMs.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
  142. package/dist/{postgres-B6YOUcaK.d.ts → postgres-DMj39MEu.d.cts} +1 -1
  143. package/dist/profiler/index.d.cts +9 -9
  144. package/dist/profiler/index.d.ts +9 -9
  145. package/dist/provenance/index.cjs +25 -26
  146. package/dist/provenance/index.cjs.map +1 -1
  147. package/dist/provenance/index.d.cts +7 -7
  148. package/dist/provenance/index.d.ts +7 -7
  149. package/dist/provenance/index.js +9 -10
  150. package/dist/provenance/index.js.map +1 -1
  151. package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
  152. package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
  153. package/dist/schema/index.cjs +35 -35
  154. package/dist/schema/index.d.cts +6 -6
  155. package/dist/schema/index.d.ts +6 -6
  156. package/dist/schema/index.js +8 -8
  157. package/dist/{searchable-D9gMiwcS.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
  158. package/dist/{searchable-0Cn_lY8U.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
  159. package/dist/{sqlite-DioSxaPe.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
  160. package/dist/{sqlite-ClXuBYAj.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
  161. package/dist/{store-5j-w5onJ.d.ts → store-JUVvtmR4.d.cts} +113 -26
  162. package/dist/{store-CFedKGU5.d.cts → store-UzrGvZOo.d.ts} +113 -26
  163. package/dist/{temporal-CjO9FH1l.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
  164. package/dist/{temporal-Ce1pG0S1.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
  165. package/dist/{types-DKkMJZjR.d.cts → types-BqFZTQmV.d.cts} +29 -4
  166. package/dist/{types-DKkMJZjR.d.ts → types-BqFZTQmV.d.ts} +29 -4
  167. package/dist/{types-BrdOFu48.d.ts → types-Bx74kaTt.d.ts} +1 -1
  168. package/dist/{types-oj_OGAaZ.d.cts → types-CXAhpW-c.d.cts} +1 -1
  169. package/dist/{where-D1wKCJ4Q.d.cts → where-DI_Fqz-X.d.cts} +1 -1
  170. package/dist/{where-C8w2627G.d.ts → where-O-k2wgYm.d.ts} +1 -1
  171. package/package.json +1 -1
  172. package/dist/chunk-3HGRTCDU.cjs +0 -269
  173. package/dist/chunk-3HGRTCDU.cjs.map +0 -1
  174. package/dist/chunk-425IZOQ5.cjs.map +0 -1
  175. package/dist/chunk-5FBRVORR.cjs.map +0 -1
  176. package/dist/chunk-5FT3TLPK.js.map +0 -1
  177. package/dist/chunk-5UMTUOM5.js.map +0 -1
  178. package/dist/chunk-6FWSNSRE.js.map +0 -1
  179. package/dist/chunk-AVGUJWVX.js.map +0 -1
  180. package/dist/chunk-BCQ76AXA.cjs.map +0 -1
  181. package/dist/chunk-BR7SHKGM.cjs.map +0 -1
  182. package/dist/chunk-DJZTXBWY.js.map +0 -1
  183. package/dist/chunk-EMIB2RXD.cjs.map +0 -1
  184. package/dist/chunk-FNOMT74T.js.map +0 -1
  185. package/dist/chunk-I4G3SQPF.cjs.map +0 -1
  186. package/dist/chunk-JR6SX5RH.cjs +0 -268
  187. package/dist/chunk-JR6SX5RH.cjs.map +0 -1
  188. package/dist/chunk-KABFHAL7.cjs.map +0 -1
  189. package/dist/chunk-KH7XW7VV.js.map +0 -1
  190. package/dist/chunk-M35DF33T.js.map +0 -1
  191. package/dist/chunk-MFZR4QKM.cjs.map +0 -1
  192. package/dist/chunk-MX4DHSQP.cjs.map +0 -1
  193. package/dist/chunk-NAZ2RA4L.js +0 -254
  194. package/dist/chunk-NAZ2RA4L.js.map +0 -1
  195. package/dist/chunk-NG2RB5WL.js.map +0 -1
  196. package/dist/chunk-NNQ6A3RM.js.map +0 -1
  197. package/dist/chunk-OIFSOPSR.cjs.map +0 -1
  198. package/dist/chunk-QS3NQZVC.js.map +0 -1
  199. package/dist/chunk-SE6EGQSD.js.map +0 -1
  200. package/dist/chunk-SHSSRCFR.js +0 -246
  201. package/dist/chunk-SHSSRCFR.js.map +0 -1
  202. package/dist/chunk-U5EDAVOJ.cjs.map +0 -1
  203. package/dist/chunk-UPAJHMW3.cjs.map +0 -1
  204. package/dist/chunk-WGX7JH7E.cjs.map +0 -1
  205. package/dist/chunk-ZHNXLS3C.js.map +0 -1
  206. package/dist/ddl-CprnMXJ-.d.ts +0 -38
  207. package/dist/ddl-DJA7Lci5.d.cts +0 -38
@@ -1,7 +1,7 @@
1
1
  import { SQLWrapper } from 'drizzle-orm';
2
2
  import { IndexBuilder } from 'drizzle-orm/pg-core';
3
3
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
4
- import { I as IndexDeclaration } from '../../types-DKkMJZjR.cjs';
4
+ import { I as IndexDeclaration } from '../../types-BqFZTQmV.cjs';
5
5
  import 'zod';
6
6
 
7
7
  declare function buildPostgresNodeIndexBuilders(table: NodeIndexTable, indexes: readonly IndexDeclaration[]): readonly IndexBuilder[];
@@ -1,7 +1,7 @@
1
1
  import { SQLWrapper } from 'drizzle-orm';
2
2
  import { IndexBuilder } from 'drizzle-orm/pg-core';
3
3
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
4
- import { I as IndexDeclaration } from '../../types-DKkMJZjR.js';
4
+ import { I as IndexDeclaration } from '../../types-BqFZTQmV.js';
5
5
  import 'zod';
6
6
 
7
7
  declare function buildPostgresNodeIndexBuilders(table: NodeIndexTable, indexes: readonly IndexDeclaration[]): readonly IndexBuilder[];
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkKABFHAL7_cjs = require('../chunk-KABFHAL7.cjs');
3
+ var chunkUMGZDVOA_cjs = require('../chunk-UMGZDVOA.cjs');
4
4
  require('../chunk-HDL2ARHX.cjs');
5
5
  require('../chunk-WODMN3Q2.cjs');
6
6
  require('../chunk-3U5ABFDW.cjs');
7
- var chunk3HGRTCDU_cjs = require('../chunk-3HGRTCDU.cjs');
8
- require('../chunk-6KFLYYOC.cjs');
9
- require('../chunk-425IZOQ5.cjs');
7
+ var chunk5PRKMB24_cjs = require('../chunk-5PRKMB24.cjs');
8
+ require('../chunk-2QGYQBS2.cjs');
9
+ var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
10
10
  require('../chunk-OI2GQ25X.cjs');
11
11
  require('../chunk-NAUA4PW5.cjs');
12
12
  var chunkL3LQNR34_cjs = require('../chunk-L3LQNR34.cjs');
@@ -20,63 +20,71 @@ require('../chunk-N66HCGCY.cjs');
20
20
 
21
21
  Object.defineProperty(exports, "deleteLegacyRecordedAnchorMap", {
22
22
  enumerable: true,
23
- get: function () { return chunkKABFHAL7_cjs.deleteLegacyRecordedAnchorMap; }
23
+ get: function () { return chunkUMGZDVOA_cjs.deleteLegacyRecordedAnchorMap; }
24
24
  });
25
25
  Object.defineProperty(exports, "migrateLegacyRecordedTime", {
26
26
  enumerable: true,
27
- get: function () { return chunkKABFHAL7_cjs.migrateLegacyRecordedTime; }
27
+ get: function () { return chunkUMGZDVOA_cjs.migrateLegacyRecordedTime; }
28
28
  });
29
29
  Object.defineProperty(exports, "migrateRecordedAnchor", {
30
30
  enumerable: true,
31
- get: function () { return chunkKABFHAL7_cjs.migrateRecordedAnchor; }
31
+ get: function () { return chunkUMGZDVOA_cjs.migrateRecordedAnchor; }
32
+ });
33
+ Object.defineProperty(exports, "repairInvertedValidityWindows", {
34
+ enumerable: true,
35
+ get: function () { return chunkUMGZDVOA_cjs.repairInvertedValidityWindows; }
32
36
  });
33
37
  Object.defineProperty(exports, "D1_MAX_BIND_PARAMETERS", {
34
38
  enumerable: true,
35
- get: function () { return chunk3HGRTCDU_cjs.D1_MAX_BIND_PARAMETERS; }
39
+ get: function () { return chunk5PRKMB24_cjs.D1_MAX_BIND_PARAMETERS; }
36
40
  });
37
41
  Object.defineProperty(exports, "DURABLE_OBJECT_MAX_BIND_PARAMETERS", {
38
42
  enumerable: true,
39
- get: function () { return chunk3HGRTCDU_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS; }
43
+ get: function () { return chunk5PRKMB24_cjs.DURABLE_OBJECT_MAX_BIND_PARAMETERS; }
40
44
  });
41
45
  Object.defineProperty(exports, "MODERN_SQLITE_MAX_BIND_PARAMETERS", {
42
46
  enumerable: true,
43
- get: function () { return chunk3HGRTCDU_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS; }
47
+ get: function () { return chunk5PRKMB24_cjs.MODERN_SQLITE_MAX_BIND_PARAMETERS; }
44
48
  });
45
49
  Object.defineProperty(exports, "POSTGRES_CAPABILITIES", {
46
50
  enumerable: true,
47
- get: function () { return chunk3HGRTCDU_cjs.POSTGRES_CAPABILITIES; }
51
+ get: function () { return chunk5PRKMB24_cjs.POSTGRES_CAPABILITIES; }
48
52
  });
49
53
  Object.defineProperty(exports, "POSTGRES_MAX_BIND_PARAMETERS", {
50
54
  enumerable: true,
51
- get: function () { return chunk3HGRTCDU_cjs.POSTGRES_MAX_BIND_PARAMETERS; }
55
+ get: function () { return chunk5PRKMB24_cjs.POSTGRES_MAX_BIND_PARAMETERS; }
52
56
  });
53
57
  Object.defineProperty(exports, "SQLITE_CAPABILITIES", {
54
58
  enumerable: true,
55
- get: function () { return chunk3HGRTCDU_cjs.SQLITE_CAPABILITIES; }
59
+ get: function () { return chunk5PRKMB24_cjs.SQLITE_CAPABILITIES; }
56
60
  });
57
61
  Object.defineProperty(exports, "SQLITE_MAX_BIND_PARAMETERS", {
58
62
  enumerable: true,
59
- get: function () { return chunk3HGRTCDU_cjs.SQLITE_MAX_BIND_PARAMETERS; }
63
+ get: function () { return chunk5PRKMB24_cjs.SQLITE_MAX_BIND_PARAMETERS; }
60
64
  });
61
65
  Object.defineProperty(exports, "isLiveNodeRow", {
62
66
  enumerable: true,
63
- get: function () { return chunk3HGRTCDU_cjs.isLiveNodeRow; }
67
+ get: function () { return chunk5PRKMB24_cjs.isLiveNodeRow; }
64
68
  });
65
69
  Object.defineProperty(exports, "isTombstonedNodeRow", {
66
70
  enumerable: true,
67
- get: function () { return chunk3HGRTCDU_cjs.isTombstonedNodeRow; }
71
+ get: function () { return chunk5PRKMB24_cjs.isTombstonedNodeRow; }
68
72
  });
69
73
  Object.defineProperty(exports, "normalizeGraphAnalyticsCapabilities", {
70
74
  enumerable: true,
71
- get: function () { return chunk3HGRTCDU_cjs.normalizeGraphAnalyticsCapabilities; }
75
+ get: function () { return chunk5PRKMB24_cjs.normalizeGraphAnalyticsCapabilities; }
72
76
  });
73
77
  Object.defineProperty(exports, "rowPropsToJsonText", {
74
78
  enumerable: true,
75
- get: function () { return chunk3HGRTCDU_cjs.rowPropsToJsonText; }
79
+ get: function () { return chunk5PRKMB24_cjs.rowPropsToJsonText; }
76
80
  });
77
81
  Object.defineProperty(exports, "rowPropsToObject", {
78
82
  enumerable: true,
79
- get: function () { return chunk3HGRTCDU_cjs.rowPropsToObject; }
83
+ get: function () { return chunk5PRKMB24_cjs.rowPropsToObject; }
84
+ });
85
+ Object.defineProperty(exports, "resolveStampedValidityLowerBound", {
86
+ enumerable: true,
87
+ get: function () { return chunkTQHGE7UC_cjs.resolveStampedValidityLowerBound; }
80
88
  });
81
89
  Object.defineProperty(exports, "ALL_FULLTEXT_MODES", {
82
90
  enumerable: true,
@@ -1,61 +1,43 @@
1
- import { y as GraphBackend, bJ as SqlTableNames } from '../types-DKkMJZjR.cjs';
2
- export { cP as ALL_FULLTEXT_MODES, cQ as ALL_META_EDGE_NAMES, A as AdapterBackend, a6 as AdapterBackendTransactions, cR as BASE_CONTRIBUTION_OWNER, B as BackendCapabilities, a9 as BackendIdentity, aa as BackendLifecycle, ab as BackendMaintenance, ac as BackendTransactions, ae as Cardinality, cS as CheckUniqueBatchParams, cT as CheckUniqueParams, cU as ClaimIndexMaterializationParams, af as Collation, ag as CommitSchemaVersionExpected, ah as CommitSchemaVersionIfKindsEmptyResult, ai as CommitSchemaVersionParams, aj as CompiledRowsSql, ak as CompiledSelectSql, al as CompiledStatementSql, cV as CompiledTemporaryStatementSql, am as ContributionCapabilities, C as ContributionDiagnostic, a as ContributionDiagnosticState, an as ContributionMaterializationBackend, cW as ContributionMaterializationIdentity, cX as ContributionMaterializationRow, ao as ContributionProbeContribution, ap as ContributionProbeEntry, aq as ContributionProbeResult, ar as ContributionProbeState, as as ContributionRebuildResult, at as ContributionRebuildScope, b as ContributionRepairEntry, c as ContributionRepairResult, au as ContributionRepopulationStats, cY as CountEdgesByKindParams, cZ as CountEdgesFromParams, c_ as CountNodesByKindParams, c$ as CreateVectorIndexParams, d0 as D1_MAX_BIND_PARAMETERS, d1 as DURABLE_OBJECT_MAX_BIND_PARAMETERS, aw as DeleteBehavior, d2 as DeleteEdgeParams, d3 as DeleteEdgesBatchParams, d4 as DeleteEmbeddingParams, ax as DeleteFulltextBatchParams, d5 as DeleteFulltextParams, d6 as DeleteNodeParams, d7 as DeleteUniqueParams, d8 as DialectAdapter, d9 as DialectCapabilities, da as DialectRecursiveQueryStrategy, db as DialectStandardQueryStrategy, dc as DialectVectorPredicateStrategy, dd as DropVectorIndexParams, ay as EdgeEntityReadBackend, az as EdgeEntityWriteBackend, de as EdgeExistsBetweenParams, E as EdgeIndexDeclaration, f as EdgeIndexDirection, cM as EdgeRow, aF as EndpointExistence, df as ExtensionArrayItemType, dg as ExtensionArrayProperty, dh as ExtensionBooleanProperty, ct as ExtensionEdgeDef, di as ExtensionEdgeIndex, dj as ExtensionEmbeddingModifier, dk as ExtensionEnumProperty, cv as ExtensionIndex, dl as ExtensionIndexWhere, cs as ExtensionNodeDef, dm as ExtensionNodeIndex, dn as ExtensionNumberProperty, dp as ExtensionObjectFieldProperty, dq as ExtensionObjectProperty, cu as ExtensionOntologyRelation, dr as ExtensionPropertyModifiers, ds as ExtensionPropertyType, dt as ExtensionSearchableModifier, du as ExtensionStringProperty, dv as ExtensionUniqueConstraint, dw as ExtensionUniqueWhere, dx as FULLTEXT_CONTRIBUTION_NAME, aH as FilteredApproximateSearch, aI as FilteredApproximateSearchMode, dy as FindEdgesByEndpointSetParams, aJ as FindEdgesByHeterogeneousEndpointSetParams, dz as FindEdgesByKindParams, dA as FindEdgesConnectedToParams, dB as FindNodesByKindParams, aK as FulltextBatchRow, aL as FulltextCapabilities, aM as FulltextOperationBackend, aN as FulltextQueryMode, aO as FulltextSearchParams, aP as FulltextSearchResult, F as FulltextStrategy, aS as GraphAnalyticsCapabilities, aU as GraphEntityReadBackend, aV as GraphEntityWriteBackend, aW as GraphExtension, aX as GraphExtensionVersion, G as GraphIdentityConfig, aY as GraphLifecycleBackend, dC as GraphReadBackend, dD as HardDeleteEdgeParams, dE as HardDeleteNodeParams, aZ as HardDeleteUniquesByNodeIdsParams, dF as HybridSearchParams, dG as HybridSearchRow, dH as IdentityTableNames, dI as InListParameterOptions, I as IndexDeclaration, dJ as IndexDeclarationBase, L as IndexEntity, a$ as IndexMaterializationBackend, dK as IndexMaterializationRow, h as IndexOrigin, i as IndexScope, j as IndexWhereExpression, dL as IndexWhereLiteral, dM as IndexWhereOp, dN as IndexWhereOperand, a4 as InferenceType, dO as InsertEdgeParams, dP as InsertNodeParams, dQ as InsertSchemaParams, dR as InsertUniqueParams, b0 as IntentSql, J as JsonPointer, X as JsonSchema, b6 as JsonValue, b7 as KindAnnotations, K as KindEntity, dS as KindRemovalRow, dT as LiveNodeRow, b9 as LockSchemaVersionForWriteParams, dU as MODERN_SQLITE_MAX_BIND_PARAMETERS, dV as MetaEdgeName, bd as NodeEntityReadBackend, be as NodeEntityWriteBackend, N as NodeIndexDeclaration, cL as NodeRow, W as NullCheckOp, dW as POSTGRES_CAPABILITIES, dX as POSTGRES_MAX_BIND_PARAMETERS, bl as Placeholder, bm as PopulatedSchemaKind, bn as QueryExecutionBackend, bo as RawQueryExecutionBackend, bp as RawStatementExecutionBackend, dY as RecordContributionMaterializationParams, dZ as RecordIndexMaterializationParams, d_ as RecordKindRemovalParams, R as RelationalIndexDeclaration, d$ as RelationalIndexMethod, e0 as ReleaseIndexMaterializationClaimParams, br as RemovalMaterializationBackend, bs as RenderedSql, bv as ResolvedSqlTableNames, bw as RowProps, e1 as SQLITE_CAPABILITIES, e2 as SQLITE_MAX_BIND_PARAMETERS, bx as SchemaCommitBackend, e3 as SchemaCommitPreflightBackend, by as SchemaKindEmptinessProbe, bz as SchemaReadBackend, x as SchemaVersionRow, bA as SchemaWriteFenceBackend, P as SerializedClosures, H as SerializedEdgeDef, M as SerializedMetaEdge, D as SerializedNodeDef, Y as SerializedOntology, O as SerializedOntologyRelation, z as SerializedSchema, Z as SerializedUniqueConstraint, bB as SetActiveVersionParams, bD as SqlChunk, e4 as SqlCompilationBackend, S as SqlDialect, bE as SqlFragment, bF as SqlIdentifierChunk, bG as SqlIntent, bH as SqlParameterChunk, bI as SqlPlaceholderChunk, bK as SqlTag, bL as SqlTextChunk, bM as StrategyTableContribution, o as SystemColumnName, bN as TableContribution, T as TemporalMode, e5 as TombstonedNodeRow, bO as TransactionBackend, bP as TransactionOptions, bQ as TransactionReadBackend, bS as TrustedImportOptions, bT as TrustedImportSession, bV as UniqueConstraintBackend, e6 as UniqueRow, bW as UniquenessScope, e7 as UpdateEdgeParams, e8 as UpdateNodeParams, bX as UpdateNodeSetParams, bY as UpdateNodeSetResult, e9 as UpsertEmbeddingBatchParams, ea as UpsertEmbeddingBatchRow, eb as UpsertEmbeddingParams, bZ as UpsertFulltextBatchParams, ec as UpsertFulltextParams, ed as VECTOR_CONTRIBUTION_PREFIX, cw as ValueType, b_ as VectorCapabilities, p as VectorIndexDeclaration, q as VectorIndexImplementation, r as VectorIndexMetric, s as VectorIndexParams, ee as VectorIndexType, cO as VectorMetric, b$ as VectorOperationBackend, c0 as VectorSearchFrontierTuning, ef as VectorSearchParams, eg as VectorSearchResult, t as VectorSlot, V as VectorStrategy, eh as assertFiniteEmbedding, ei as assertVectorMinScore, ej as assertVectorSearchLimit, ek as buildFulltextCapabilities, c3 as buildVectorCapabilities, c6 as fts5Strategy, el as isLiveNodeRow, ce as isSqlFragment, em as isSqlPlaceholder, en as isTombstonedNodeRow, eo as normalizeGraphAnalyticsCapabilities, ep as quoteIdentifier, ck as renderPostgres, cl as renderSql, cm as renderSqlInline, cn as renderSqlite, co as rowPropsToJsonText, cp as rowPropsToObject, eq as shortHash, cq as sql, cr as tsvectorStrategy, er as vectorMinScoreCondition, es as vectorPhysicalName, et as vectorScoreExpression } from '../types-DKkMJZjR.cjs';
3
- import { R as RecordedInstant } from '../temporal-Ce1pG0S1.cjs';
1
+ export { A as ALL_FULLTEXT_MODES, a as ALL_META_EDGE_NAMES, b as AdapterBackend, c as AdapterBackendTransactions, B as BASE_CONTRIBUTION_OWNER, d as BackendCapabilities, e as BackendIdentity, f as BackendLifecycle, g as BackendMaintenance, h as BackendTransactions, C as Cardinality, i as CheckUniqueBatchParams, j as CheckUniqueParams, k as ClaimIndexMaterializationParams, l as Collation, m as CommitSchemaVersionExpected, n as CommitSchemaVersionIfKindsEmptyResult, o as CommitSchemaVersionParams, p as CompiledRowsSql, q as CompiledSelectSql, r as CompiledStatementSql, s as CompiledTemporaryStatementSql, t as ContributionCapabilities, u as ContributionDiagnostic, v as ContributionDiagnosticState, w as ContributionMaterializationBackend, x as ContributionMaterializationIdentity, y as ContributionMaterializationRow, z as ContributionProbeContribution, D as ContributionProbeEntry, E as ContributionProbeResult, F as ContributionProbeState, G as ContributionRebuildResult, H as ContributionRebuildScope, J as ContributionRepairEntry, K as ContributionRepairResult, L as ContributionRepopulationStats, M as CountEdgesByKindParams, N as CountEdgesFromParams, O as CountNodesByKindParams, P as CreateVectorIndexParams, Q as D1_MAX_BIND_PARAMETERS, R as DURABLE_OBJECT_MAX_BIND_PARAMETERS, S as DeleteBehavior, T as DeleteEdgeParams, U as DeleteEdgesBatchParams, V as DeleteEmbeddingParams, W as DeleteFulltextBatchParams, X as DeleteFulltextParams, Y as DeleteNodeParams, Z as DeleteUniqueParams, _ as DialectAdapter, $ as DialectCapabilities, a0 as DialectRecursiveQueryStrategy, a1 as DialectStandardQueryStrategy, a2 as DialectVectorPredicateStrategy, a3 as DropVectorIndexParams, a4 as EdgeEntityReadBackend, a5 as EdgeEntityWriteBackend, a6 as EdgeExistsBetweenParams, a7 as EdgeIndexDeclaration, a8 as EdgeIndexDirection, a9 as EdgeRow, aa as EndpointExistence, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, aq as ExtensionPropertyModifiers, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, aw as FULLTEXT_CONTRIBUTION_NAME, ax as FilteredApproximateSearch, ay as FilteredApproximateSearchMode, az as FindEdgesByEndpointSetParams, aA as FindEdgesByHeterogeneousEndpointSetParams, aB as FindEdgesByKindParams, aC as FindEdgesConnectedToParams, aD as FindNodesByKindParams, aE as FulltextBatchRow, aF as FulltextCapabilities, aG as FulltextOperationBackend, aH as FulltextQueryMode, aI as FulltextSearchParams, aJ as FulltextSearchResult, aK as FulltextStrategy, aL as GraphAnalyticsCapabilities, aM as GraphBackend, aN as GraphEntityReadBackend, aO as GraphEntityWriteBackend, aP as GraphExtension, aQ as GraphExtensionVersion, aR as GraphIdentityConfig, aS as GraphLifecycleBackend, aT as GraphReadBackend, aU as HardDeleteEdgeParams, aV as HardDeleteNodeParams, aW as HardDeleteUniquesByNodeIdsParams, aX as HybridSearchParams, aY as HybridSearchRow, aZ as IdentityTableNames, a_ as InListParameterOptions, I as IndexDeclaration, a$ as IndexDeclarationBase, b0 as IndexEntity, b1 as IndexMaterializationBackend, b2 as IndexMaterializationRow, b3 as IndexOrigin, b4 as IndexScope, b5 as IndexWhereExpression, b6 as IndexWhereLiteral, b7 as IndexWhereOp, b8 as IndexWhereOperand, b9 as InferenceType, ba as InsertEdgeParams, bb as InsertNodeParams, bc as InsertSchemaParams, bd as InsertUniqueParams, be as IntentSql, bf as JsonPointer, bg as JsonSchema, bh as JsonValue, bi as KindAnnotations, bj as KindEntity, bk as KindRemovalRow, bl as LiveNodeRow, bm as LockSchemaVersionForWriteParams, bn as MODERN_SQLITE_MAX_BIND_PARAMETERS, bo as MetaEdgeName, bp as NodeEntityReadBackend, bq as NodeEntityWriteBackend, br as NodeIndexDeclaration, bs as NodeRow, bt as NullCheckOp, bu as POSTGRES_CAPABILITIES, bv as POSTGRES_MAX_BIND_PARAMETERS, bw as Placeholder, bx as PopulatedSchemaKind, by as QueryExecutionBackend, bz as RawQueryExecutionBackend, bA as RawStatementExecutionBackend, bB as RecordContributionMaterializationParams, bC as RecordIndexMaterializationParams, bD as RecordKindRemovalParams, bE as RelationalIndexDeclaration, bF as RelationalIndexMethod, bG as ReleaseIndexMaterializationClaimParams, bH as RemovalMaterializationBackend, bI as RenderedSql, bJ as ResolvedSqlTableNames, bK as RowProps, bL as SQLITE_CAPABILITIES, bM as SQLITE_MAX_BIND_PARAMETERS, bN as SchemaCommitBackend, bO as SchemaCommitPreflightBackend, bP as SchemaKindEmptinessProbe, bQ as SchemaReadBackend, bR as SchemaVersionRow, bS as SchemaWriteFenceBackend, bT as SerializedClosures, bU as SerializedEdgeDef, bV as SerializedMetaEdge, bW as SerializedNodeDef, bX as SerializedOntology, bY as SerializedOntologyRelation, bZ as SerializedSchema, b_ as SerializedUniqueConstraint, b$ as SetActiveVersionParams, c0 as SqlChunk, c1 as SqlCompilationBackend, c2 as SqlDialect, c3 as SqlFragment, c4 as SqlIdentifierChunk, c5 as SqlIntent, c6 as SqlParameterChunk, c7 as SqlPlaceholderChunk, c8 as SqlTableNames, c9 as SqlTag, ca as SqlTextChunk, cb as StrategyTableContribution, cc as SystemColumnName, cd as TableContribution, ce as TemporalMode, cf as TombstonedNodeRow, cg as TransactionBackend, ch as TransactionOptions, ci as TransactionReadBackend, cj as TrustedImportOptions, ck as TrustedImportSession, cl as UniqueConstraintBackend, cm as UniqueRow, cn as UniquenessScope, co as UpdateEdgeParams, cp as UpdateNodeParams, cq as UpdateNodeSetParams, cr as UpdateNodeSetResult, cs as UpsertEmbeddingBatchParams, ct as UpsertEmbeddingBatchRow, cu as UpsertEmbeddingParams, cv as UpsertFulltextBatchParams, cw as UpsertFulltextParams, cx as VECTOR_CONTRIBUTION_PREFIX, cy as ValueType, cz as VectorCapabilities, cA as VectorIndexDeclaration, cB as VectorIndexImplementation, cC as VectorIndexMetric, cD as VectorIndexParams, cE as VectorIndexType, cF as VectorMetric, cG as VectorOperationBackend, cH as VectorSearchFrontierTuning, cI as VectorSearchParams, cJ as VectorSearchResult, cK as VectorSlot, cL as VectorStrategy, cM as assertFiniteEmbedding, cN as assertVectorMinScore, cO as assertVectorSearchLimit, cP as buildFulltextCapabilities, cQ as buildVectorCapabilities, cR as fts5Strategy, cS as isLiveNodeRow, cT as isSqlFragment, cU as isSqlPlaceholder, cV as isTombstonedNodeRow, cW as normalizeGraphAnalyticsCapabilities, cX as quoteIdentifier, cY as renderPostgres, cZ as renderSql, c_ as renderSqlInline, c$ as renderSqlite, d0 as rowPropsToJsonText, d1 as rowPropsToObject, d2 as shortHash, d3 as sql, d4 as tsvectorStrategy, d5 as vectorMinScoreCondition, d6 as vectorPhysicalName, d7 as vectorScoreExpression } from '../types-BqFZTQmV.cjs';
2
+ export { D as DeleteLegacyRecordedAnchorMapOptions, M as MigrateLegacyRecordedTimeOptions, a as MigrateLegacyRecordedTimeResult, b as MigrateRecordedAnchorOptions, R as RepairInvertedWindowsOptions, c as RepairInvertedWindowsReport, d as RepairRelation, e as RepairRelationScope, f as deleteLegacyRecordedAnchorMap, m as migrateLegacyRecordedTime, g as migrateRecordedAnchor, r as repairInvertedValidityWindows } from '../repair-validity-windows-BFNZvd_H.cjs';
3
+ export { R as RecordedInstant } from '../temporal-5GqpYCk2.cjs';
4
4
  import 'zod';
5
5
 
6
6
  /**
7
- * One-time offline migration from timestamp-only recorded relations to numeric
8
- * revisions. The durable remap table lets applications translate checkpoints
9
- * stored outside TypeGraph before deleting the migration metadata.
10
- */
11
-
12
- type MigrateLegacyRecordedTimeOptions = Readonly<{
13
- backend: GraphBackend;
14
- /** Override the backend's recorded table names. */
15
- tableNames?: Partial<SqlTableNames> | undefined;
16
- /** Override the durable legacy-anchor mapping table name. */
17
- mappingTableName?: string | undefined;
18
- }>;
19
- type MigrateLegacyRecordedTimeResult = Readonly<{
20
- /** `true` when timestamp columns were rewritten during this call. */
21
- migrated: boolean;
22
- /** Number of graphs represented in the legacy commit order. */
23
- graphs: number;
24
- /** Number of distinct legacy anchors available for remapping. */
25
- anchors: number;
26
- /** Physical table retaining the old-anchor → revision mapping. */
27
- mappingTableName: string;
28
- }>;
29
- type MigrateRecordedAnchorOptions = Readonly<{
30
- backend: Pick<GraphBackend, "dialect" | "execute" | "tableNames">;
31
- graphId: string;
32
- anchor: string;
33
- tableNames?: Partial<SqlTableNames> | undefined;
34
- mappingTableName?: string | undefined;
35
- }>;
36
- type DeleteLegacyRecordedAnchorMapOptions = Readonly<{
37
- backend: Pick<GraphBackend, "dialect" | "execute" | "executeStatement" | "tableNames" | "transaction">;
38
- graphId: string;
39
- tableNames?: Partial<SqlTableNames> | undefined;
40
- mappingTableName?: string | undefined;
41
- /** Drop the mapping table when this deletion leaves it empty. */
42
- dropWhenEmpty?: boolean | undefined;
43
- }>;
44
- /**
45
- * Rewrites timestamp-only recorded relations to numeric revisions.
7
+ * THE lower bound a write that STAMPS its own start stores, decided against the
8
+ * instant it is about to stamp. One owner for every such write, so no two of them
9
+ * can spell the decision differently. Three inputs, three outcomes:
46
10
  *
47
- * Run offline before opening a Store with the new schema. The durable mapping
48
- * table is retained so external checkpoint stores can call
49
- * {@link migrateRecordedAnchor}; delete each graph's rows after its downstream
50
- * checkpoints have been rewritten.
51
- */
52
- declare function migrateLegacyRecordedTime(options: MigrateLegacyRecordedTimeOptions): Promise<MigrateLegacyRecordedTimeResult>;
53
- /** Remaps one timestamp-only checkpoint after {@link migrateLegacyRecordedTime}. */
54
- declare function migrateRecordedAnchor(options: MigrateRecordedAnchorOptions): Promise<RecordedInstant>;
55
- /**
56
- * Deletes one graph's legacy remap rows after downstream checkpoints migrate.
57
- * Set `dropWhenEmpty` to remove the migration table after the final graph.
11
+ * - a stated `null` → no lower bound (a CONFIRMED open-left window, which is
12
+ * how interchange round-trips a row that has none);
13
+ * - a stated string → that bound, the caller's own assertion, verbatim;
14
+ * - nothing stated → the write instant, UNLESS stamping it would leave the
15
+ * window readable at no instant. A row carrying only a
16
+ * `validTo` at or before the write instant is "born already
17
+ * ended": its start is UNKNOWN, not at-or-after its end, so
18
+ * it stores no lower bound and reads back at every `asOf`
19
+ * before that end (issue #407).
20
+ *
21
+ * The comparison against `validTo` is NON-STRICT: `validTo === writeInstant`
22
+ * stores no bound too. A stamped `[T, T)` is a successful write no coordinate can
23
+ * observe, and the millisecond of skew between a caller's own `Date.now()` and the
24
+ * backend's sample is enough to land there — so the rule is total, and there is no
25
+ * input for which a stamped bound yields an empty window.
26
+ *
27
+ * The write instant is a PARAMETER, not a clock read: the caller passes the very
28
+ * value it binds into `created_at`/`updated_at` (or, for a resurrection, the
29
+ * instant its guard judged), so the decision and the stamp cannot come from two
30
+ * different samples (issue #413's failure mode). This function has no way to
31
+ * sample a clock, which is what makes that structural rather than tested.
32
+ *
33
+ * PRECONDITION: as {@link isEmptyValidityWindow}. This is called BELOW the
34
+ * validation boundary, on a public `GraphBackend` surface, so canonicality is
35
+ * established by whoever reached the backend: store paths through
36
+ * {@link validateOptionalCanonicalIsoDate}, interchange import through its own
37
+ * window validator, trusted import through its per-chunk format check. A direct
38
+ * `GraphBackend` caller establishes it itself — a pre-existing property of that
39
+ * surface, written down here rather than left implicit.
58
40
  */
59
- declare function deleteLegacyRecordedAnchorMap(options: DeleteLegacyRecordedAnchorMapOptions): Promise<void>;
41
+ declare function resolveStampedValidityLowerBound(statedValidFrom: string | null | undefined, validTo: string | undefined, writeInstant: string): string | undefined;
60
42
 
61
- export { type DeleteLegacyRecordedAnchorMapOptions, GraphBackend, type MigrateLegacyRecordedTimeOptions, type MigrateLegacyRecordedTimeResult, type MigrateRecordedAnchorOptions, RecordedInstant, SqlTableNames, deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor };
43
+ export { resolveStampedValidityLowerBound };
@@ -1,61 +1,43 @@
1
- import { y as GraphBackend, bJ as SqlTableNames } from '../types-DKkMJZjR.js';
2
- export { cP as ALL_FULLTEXT_MODES, cQ as ALL_META_EDGE_NAMES, A as AdapterBackend, a6 as AdapterBackendTransactions, cR as BASE_CONTRIBUTION_OWNER, B as BackendCapabilities, a9 as BackendIdentity, aa as BackendLifecycle, ab as BackendMaintenance, ac as BackendTransactions, ae as Cardinality, cS as CheckUniqueBatchParams, cT as CheckUniqueParams, cU as ClaimIndexMaterializationParams, af as Collation, ag as CommitSchemaVersionExpected, ah as CommitSchemaVersionIfKindsEmptyResult, ai as CommitSchemaVersionParams, aj as CompiledRowsSql, ak as CompiledSelectSql, al as CompiledStatementSql, cV as CompiledTemporaryStatementSql, am as ContributionCapabilities, C as ContributionDiagnostic, a as ContributionDiagnosticState, an as ContributionMaterializationBackend, cW as ContributionMaterializationIdentity, cX as ContributionMaterializationRow, ao as ContributionProbeContribution, ap as ContributionProbeEntry, aq as ContributionProbeResult, ar as ContributionProbeState, as as ContributionRebuildResult, at as ContributionRebuildScope, b as ContributionRepairEntry, c as ContributionRepairResult, au as ContributionRepopulationStats, cY as CountEdgesByKindParams, cZ as CountEdgesFromParams, c_ as CountNodesByKindParams, c$ as CreateVectorIndexParams, d0 as D1_MAX_BIND_PARAMETERS, d1 as DURABLE_OBJECT_MAX_BIND_PARAMETERS, aw as DeleteBehavior, d2 as DeleteEdgeParams, d3 as DeleteEdgesBatchParams, d4 as DeleteEmbeddingParams, ax as DeleteFulltextBatchParams, d5 as DeleteFulltextParams, d6 as DeleteNodeParams, d7 as DeleteUniqueParams, d8 as DialectAdapter, d9 as DialectCapabilities, da as DialectRecursiveQueryStrategy, db as DialectStandardQueryStrategy, dc as DialectVectorPredicateStrategy, dd as DropVectorIndexParams, ay as EdgeEntityReadBackend, az as EdgeEntityWriteBackend, de as EdgeExistsBetweenParams, E as EdgeIndexDeclaration, f as EdgeIndexDirection, cM as EdgeRow, aF as EndpointExistence, df as ExtensionArrayItemType, dg as ExtensionArrayProperty, dh as ExtensionBooleanProperty, ct as ExtensionEdgeDef, di as ExtensionEdgeIndex, dj as ExtensionEmbeddingModifier, dk as ExtensionEnumProperty, cv as ExtensionIndex, dl as ExtensionIndexWhere, cs as ExtensionNodeDef, dm as ExtensionNodeIndex, dn as ExtensionNumberProperty, dp as ExtensionObjectFieldProperty, dq as ExtensionObjectProperty, cu as ExtensionOntologyRelation, dr as ExtensionPropertyModifiers, ds as ExtensionPropertyType, dt as ExtensionSearchableModifier, du as ExtensionStringProperty, dv as ExtensionUniqueConstraint, dw as ExtensionUniqueWhere, dx as FULLTEXT_CONTRIBUTION_NAME, aH as FilteredApproximateSearch, aI as FilteredApproximateSearchMode, dy as FindEdgesByEndpointSetParams, aJ as FindEdgesByHeterogeneousEndpointSetParams, dz as FindEdgesByKindParams, dA as FindEdgesConnectedToParams, dB as FindNodesByKindParams, aK as FulltextBatchRow, aL as FulltextCapabilities, aM as FulltextOperationBackend, aN as FulltextQueryMode, aO as FulltextSearchParams, aP as FulltextSearchResult, F as FulltextStrategy, aS as GraphAnalyticsCapabilities, aU as GraphEntityReadBackend, aV as GraphEntityWriteBackend, aW as GraphExtension, aX as GraphExtensionVersion, G as GraphIdentityConfig, aY as GraphLifecycleBackend, dC as GraphReadBackend, dD as HardDeleteEdgeParams, dE as HardDeleteNodeParams, aZ as HardDeleteUniquesByNodeIdsParams, dF as HybridSearchParams, dG as HybridSearchRow, dH as IdentityTableNames, dI as InListParameterOptions, I as IndexDeclaration, dJ as IndexDeclarationBase, L as IndexEntity, a$ as IndexMaterializationBackend, dK as IndexMaterializationRow, h as IndexOrigin, i as IndexScope, j as IndexWhereExpression, dL as IndexWhereLiteral, dM as IndexWhereOp, dN as IndexWhereOperand, a4 as InferenceType, dO as InsertEdgeParams, dP as InsertNodeParams, dQ as InsertSchemaParams, dR as InsertUniqueParams, b0 as IntentSql, J as JsonPointer, X as JsonSchema, b6 as JsonValue, b7 as KindAnnotations, K as KindEntity, dS as KindRemovalRow, dT as LiveNodeRow, b9 as LockSchemaVersionForWriteParams, dU as MODERN_SQLITE_MAX_BIND_PARAMETERS, dV as MetaEdgeName, bd as NodeEntityReadBackend, be as NodeEntityWriteBackend, N as NodeIndexDeclaration, cL as NodeRow, W as NullCheckOp, dW as POSTGRES_CAPABILITIES, dX as POSTGRES_MAX_BIND_PARAMETERS, bl as Placeholder, bm as PopulatedSchemaKind, bn as QueryExecutionBackend, bo as RawQueryExecutionBackend, bp as RawStatementExecutionBackend, dY as RecordContributionMaterializationParams, dZ as RecordIndexMaterializationParams, d_ as RecordKindRemovalParams, R as RelationalIndexDeclaration, d$ as RelationalIndexMethod, e0 as ReleaseIndexMaterializationClaimParams, br as RemovalMaterializationBackend, bs as RenderedSql, bv as ResolvedSqlTableNames, bw as RowProps, e1 as SQLITE_CAPABILITIES, e2 as SQLITE_MAX_BIND_PARAMETERS, bx as SchemaCommitBackend, e3 as SchemaCommitPreflightBackend, by as SchemaKindEmptinessProbe, bz as SchemaReadBackend, x as SchemaVersionRow, bA as SchemaWriteFenceBackend, P as SerializedClosures, H as SerializedEdgeDef, M as SerializedMetaEdge, D as SerializedNodeDef, Y as SerializedOntology, O as SerializedOntologyRelation, z as SerializedSchema, Z as SerializedUniqueConstraint, bB as SetActiveVersionParams, bD as SqlChunk, e4 as SqlCompilationBackend, S as SqlDialect, bE as SqlFragment, bF as SqlIdentifierChunk, bG as SqlIntent, bH as SqlParameterChunk, bI as SqlPlaceholderChunk, bK as SqlTag, bL as SqlTextChunk, bM as StrategyTableContribution, o as SystemColumnName, bN as TableContribution, T as TemporalMode, e5 as TombstonedNodeRow, bO as TransactionBackend, bP as TransactionOptions, bQ as TransactionReadBackend, bS as TrustedImportOptions, bT as TrustedImportSession, bV as UniqueConstraintBackend, e6 as UniqueRow, bW as UniquenessScope, e7 as UpdateEdgeParams, e8 as UpdateNodeParams, bX as UpdateNodeSetParams, bY as UpdateNodeSetResult, e9 as UpsertEmbeddingBatchParams, ea as UpsertEmbeddingBatchRow, eb as UpsertEmbeddingParams, bZ as UpsertFulltextBatchParams, ec as UpsertFulltextParams, ed as VECTOR_CONTRIBUTION_PREFIX, cw as ValueType, b_ as VectorCapabilities, p as VectorIndexDeclaration, q as VectorIndexImplementation, r as VectorIndexMetric, s as VectorIndexParams, ee as VectorIndexType, cO as VectorMetric, b$ as VectorOperationBackend, c0 as VectorSearchFrontierTuning, ef as VectorSearchParams, eg as VectorSearchResult, t as VectorSlot, V as VectorStrategy, eh as assertFiniteEmbedding, ei as assertVectorMinScore, ej as assertVectorSearchLimit, ek as buildFulltextCapabilities, c3 as buildVectorCapabilities, c6 as fts5Strategy, el as isLiveNodeRow, ce as isSqlFragment, em as isSqlPlaceholder, en as isTombstonedNodeRow, eo as normalizeGraphAnalyticsCapabilities, ep as quoteIdentifier, ck as renderPostgres, cl as renderSql, cm as renderSqlInline, cn as renderSqlite, co as rowPropsToJsonText, cp as rowPropsToObject, eq as shortHash, cq as sql, cr as tsvectorStrategy, er as vectorMinScoreCondition, es as vectorPhysicalName, et as vectorScoreExpression } from '../types-DKkMJZjR.js';
3
- import { R as RecordedInstant } from '../temporal-CjO9FH1l.js';
1
+ export { A as ALL_FULLTEXT_MODES, a as ALL_META_EDGE_NAMES, b as AdapterBackend, c as AdapterBackendTransactions, B as BASE_CONTRIBUTION_OWNER, d as BackendCapabilities, e as BackendIdentity, f as BackendLifecycle, g as BackendMaintenance, h as BackendTransactions, C as Cardinality, i as CheckUniqueBatchParams, j as CheckUniqueParams, k as ClaimIndexMaterializationParams, l as Collation, m as CommitSchemaVersionExpected, n as CommitSchemaVersionIfKindsEmptyResult, o as CommitSchemaVersionParams, p as CompiledRowsSql, q as CompiledSelectSql, r as CompiledStatementSql, s as CompiledTemporaryStatementSql, t as ContributionCapabilities, u as ContributionDiagnostic, v as ContributionDiagnosticState, w as ContributionMaterializationBackend, x as ContributionMaterializationIdentity, y as ContributionMaterializationRow, z as ContributionProbeContribution, D as ContributionProbeEntry, E as ContributionProbeResult, F as ContributionProbeState, G as ContributionRebuildResult, H as ContributionRebuildScope, J as ContributionRepairEntry, K as ContributionRepairResult, L as ContributionRepopulationStats, M as CountEdgesByKindParams, N as CountEdgesFromParams, O as CountNodesByKindParams, P as CreateVectorIndexParams, Q as D1_MAX_BIND_PARAMETERS, R as DURABLE_OBJECT_MAX_BIND_PARAMETERS, S as DeleteBehavior, T as DeleteEdgeParams, U as DeleteEdgesBatchParams, V as DeleteEmbeddingParams, W as DeleteFulltextBatchParams, X as DeleteFulltextParams, Y as DeleteNodeParams, Z as DeleteUniqueParams, _ as DialectAdapter, $ as DialectCapabilities, a0 as DialectRecursiveQueryStrategy, a1 as DialectStandardQueryStrategy, a2 as DialectVectorPredicateStrategy, a3 as DropVectorIndexParams, a4 as EdgeEntityReadBackend, a5 as EdgeEntityWriteBackend, a6 as EdgeExistsBetweenParams, a7 as EdgeIndexDeclaration, a8 as EdgeIndexDirection, a9 as EdgeRow, aa as EndpointExistence, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, aq as ExtensionPropertyModifiers, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, aw as FULLTEXT_CONTRIBUTION_NAME, ax as FilteredApproximateSearch, ay as FilteredApproximateSearchMode, az as FindEdgesByEndpointSetParams, aA as FindEdgesByHeterogeneousEndpointSetParams, aB as FindEdgesByKindParams, aC as FindEdgesConnectedToParams, aD as FindNodesByKindParams, aE as FulltextBatchRow, aF as FulltextCapabilities, aG as FulltextOperationBackend, aH as FulltextQueryMode, aI as FulltextSearchParams, aJ as FulltextSearchResult, aK as FulltextStrategy, aL as GraphAnalyticsCapabilities, aM as GraphBackend, aN as GraphEntityReadBackend, aO as GraphEntityWriteBackend, aP as GraphExtension, aQ as GraphExtensionVersion, aR as GraphIdentityConfig, aS as GraphLifecycleBackend, aT as GraphReadBackend, aU as HardDeleteEdgeParams, aV as HardDeleteNodeParams, aW as HardDeleteUniquesByNodeIdsParams, aX as HybridSearchParams, aY as HybridSearchRow, aZ as IdentityTableNames, a_ as InListParameterOptions, I as IndexDeclaration, a$ as IndexDeclarationBase, b0 as IndexEntity, b1 as IndexMaterializationBackend, b2 as IndexMaterializationRow, b3 as IndexOrigin, b4 as IndexScope, b5 as IndexWhereExpression, b6 as IndexWhereLiteral, b7 as IndexWhereOp, b8 as IndexWhereOperand, b9 as InferenceType, ba as InsertEdgeParams, bb as InsertNodeParams, bc as InsertSchemaParams, bd as InsertUniqueParams, be as IntentSql, bf as JsonPointer, bg as JsonSchema, bh as JsonValue, bi as KindAnnotations, bj as KindEntity, bk as KindRemovalRow, bl as LiveNodeRow, bm as LockSchemaVersionForWriteParams, bn as MODERN_SQLITE_MAX_BIND_PARAMETERS, bo as MetaEdgeName, bp as NodeEntityReadBackend, bq as NodeEntityWriteBackend, br as NodeIndexDeclaration, bs as NodeRow, bt as NullCheckOp, bu as POSTGRES_CAPABILITIES, bv as POSTGRES_MAX_BIND_PARAMETERS, bw as Placeholder, bx as PopulatedSchemaKind, by as QueryExecutionBackend, bz as RawQueryExecutionBackend, bA as RawStatementExecutionBackend, bB as RecordContributionMaterializationParams, bC as RecordIndexMaterializationParams, bD as RecordKindRemovalParams, bE as RelationalIndexDeclaration, bF as RelationalIndexMethod, bG as ReleaseIndexMaterializationClaimParams, bH as RemovalMaterializationBackend, bI as RenderedSql, bJ as ResolvedSqlTableNames, bK as RowProps, bL as SQLITE_CAPABILITIES, bM as SQLITE_MAX_BIND_PARAMETERS, bN as SchemaCommitBackend, bO as SchemaCommitPreflightBackend, bP as SchemaKindEmptinessProbe, bQ as SchemaReadBackend, bR as SchemaVersionRow, bS as SchemaWriteFenceBackend, bT as SerializedClosures, bU as SerializedEdgeDef, bV as SerializedMetaEdge, bW as SerializedNodeDef, bX as SerializedOntology, bY as SerializedOntologyRelation, bZ as SerializedSchema, b_ as SerializedUniqueConstraint, b$ as SetActiveVersionParams, c0 as SqlChunk, c1 as SqlCompilationBackend, c2 as SqlDialect, c3 as SqlFragment, c4 as SqlIdentifierChunk, c5 as SqlIntent, c6 as SqlParameterChunk, c7 as SqlPlaceholderChunk, c8 as SqlTableNames, c9 as SqlTag, ca as SqlTextChunk, cb as StrategyTableContribution, cc as SystemColumnName, cd as TableContribution, ce as TemporalMode, cf as TombstonedNodeRow, cg as TransactionBackend, ch as TransactionOptions, ci as TransactionReadBackend, cj as TrustedImportOptions, ck as TrustedImportSession, cl as UniqueConstraintBackend, cm as UniqueRow, cn as UniquenessScope, co as UpdateEdgeParams, cp as UpdateNodeParams, cq as UpdateNodeSetParams, cr as UpdateNodeSetResult, cs as UpsertEmbeddingBatchParams, ct as UpsertEmbeddingBatchRow, cu as UpsertEmbeddingParams, cv as UpsertFulltextBatchParams, cw as UpsertFulltextParams, cx as VECTOR_CONTRIBUTION_PREFIX, cy as ValueType, cz as VectorCapabilities, cA as VectorIndexDeclaration, cB as VectorIndexImplementation, cC as VectorIndexMetric, cD as VectorIndexParams, cE as VectorIndexType, cF as VectorMetric, cG as VectorOperationBackend, cH as VectorSearchFrontierTuning, cI as VectorSearchParams, cJ as VectorSearchResult, cK as VectorSlot, cL as VectorStrategy, cM as assertFiniteEmbedding, cN as assertVectorMinScore, cO as assertVectorSearchLimit, cP as buildFulltextCapabilities, cQ as buildVectorCapabilities, cR as fts5Strategy, cS as isLiveNodeRow, cT as isSqlFragment, cU as isSqlPlaceholder, cV as isTombstonedNodeRow, cW as normalizeGraphAnalyticsCapabilities, cX as quoteIdentifier, cY as renderPostgres, cZ as renderSql, c_ as renderSqlInline, c$ as renderSqlite, d0 as rowPropsToJsonText, d1 as rowPropsToObject, d2 as shortHash, d3 as sql, d4 as tsvectorStrategy, d5 as vectorMinScoreCondition, d6 as vectorPhysicalName, d7 as vectorScoreExpression } from '../types-BqFZTQmV.js';
2
+ export { D as DeleteLegacyRecordedAnchorMapOptions, M as MigrateLegacyRecordedTimeOptions, a as MigrateLegacyRecordedTimeResult, b as MigrateRecordedAnchorOptions, R as RepairInvertedWindowsOptions, c as RepairInvertedWindowsReport, d as RepairRelation, e as RepairRelationScope, f as deleteLegacyRecordedAnchorMap, m as migrateLegacyRecordedTime, g as migrateRecordedAnchor, r as repairInvertedValidityWindows } from '../repair-validity-windows-DlUSqwCg.js';
3
+ export { R as RecordedInstant } from '../temporal-CbnLzTmM.js';
4
4
  import 'zod';
5
5
 
6
6
  /**
7
- * One-time offline migration from timestamp-only recorded relations to numeric
8
- * revisions. The durable remap table lets applications translate checkpoints
9
- * stored outside TypeGraph before deleting the migration metadata.
10
- */
11
-
12
- type MigrateLegacyRecordedTimeOptions = Readonly<{
13
- backend: GraphBackend;
14
- /** Override the backend's recorded table names. */
15
- tableNames?: Partial<SqlTableNames> | undefined;
16
- /** Override the durable legacy-anchor mapping table name. */
17
- mappingTableName?: string | undefined;
18
- }>;
19
- type MigrateLegacyRecordedTimeResult = Readonly<{
20
- /** `true` when timestamp columns were rewritten during this call. */
21
- migrated: boolean;
22
- /** Number of graphs represented in the legacy commit order. */
23
- graphs: number;
24
- /** Number of distinct legacy anchors available for remapping. */
25
- anchors: number;
26
- /** Physical table retaining the old-anchor → revision mapping. */
27
- mappingTableName: string;
28
- }>;
29
- type MigrateRecordedAnchorOptions = Readonly<{
30
- backend: Pick<GraphBackend, "dialect" | "execute" | "tableNames">;
31
- graphId: string;
32
- anchor: string;
33
- tableNames?: Partial<SqlTableNames> | undefined;
34
- mappingTableName?: string | undefined;
35
- }>;
36
- type DeleteLegacyRecordedAnchorMapOptions = Readonly<{
37
- backend: Pick<GraphBackend, "dialect" | "execute" | "executeStatement" | "tableNames" | "transaction">;
38
- graphId: string;
39
- tableNames?: Partial<SqlTableNames> | undefined;
40
- mappingTableName?: string | undefined;
41
- /** Drop the mapping table when this deletion leaves it empty. */
42
- dropWhenEmpty?: boolean | undefined;
43
- }>;
44
- /**
45
- * Rewrites timestamp-only recorded relations to numeric revisions.
7
+ * THE lower bound a write that STAMPS its own start stores, decided against the
8
+ * instant it is about to stamp. One owner for every such write, so no two of them
9
+ * can spell the decision differently. Three inputs, three outcomes:
46
10
  *
47
- * Run offline before opening a Store with the new schema. The durable mapping
48
- * table is retained so external checkpoint stores can call
49
- * {@link migrateRecordedAnchor}; delete each graph's rows after its downstream
50
- * checkpoints have been rewritten.
51
- */
52
- declare function migrateLegacyRecordedTime(options: MigrateLegacyRecordedTimeOptions): Promise<MigrateLegacyRecordedTimeResult>;
53
- /** Remaps one timestamp-only checkpoint after {@link migrateLegacyRecordedTime}. */
54
- declare function migrateRecordedAnchor(options: MigrateRecordedAnchorOptions): Promise<RecordedInstant>;
55
- /**
56
- * Deletes one graph's legacy remap rows after downstream checkpoints migrate.
57
- * Set `dropWhenEmpty` to remove the migration table after the final graph.
11
+ * - a stated `null` → no lower bound (a CONFIRMED open-left window, which is
12
+ * how interchange round-trips a row that has none);
13
+ * - a stated string → that bound, the caller's own assertion, verbatim;
14
+ * - nothing stated → the write instant, UNLESS stamping it would leave the
15
+ * window readable at no instant. A row carrying only a
16
+ * `validTo` at or before the write instant is "born already
17
+ * ended": its start is UNKNOWN, not at-or-after its end, so
18
+ * it stores no lower bound and reads back at every `asOf`
19
+ * before that end (issue #407).
20
+ *
21
+ * The comparison against `validTo` is NON-STRICT: `validTo === writeInstant`
22
+ * stores no bound too. A stamped `[T, T)` is a successful write no coordinate can
23
+ * observe, and the millisecond of skew between a caller's own `Date.now()` and the
24
+ * backend's sample is enough to land there — so the rule is total, and there is no
25
+ * input for which a stamped bound yields an empty window.
26
+ *
27
+ * The write instant is a PARAMETER, not a clock read: the caller passes the very
28
+ * value it binds into `created_at`/`updated_at` (or, for a resurrection, the
29
+ * instant its guard judged), so the decision and the stamp cannot come from two
30
+ * different samples (issue #413's failure mode). This function has no way to
31
+ * sample a clock, which is what makes that structural rather than tested.
32
+ *
33
+ * PRECONDITION: as {@link isEmptyValidityWindow}. This is called BELOW the
34
+ * validation boundary, on a public `GraphBackend` surface, so canonicality is
35
+ * established by whoever reached the backend: store paths through
36
+ * {@link validateOptionalCanonicalIsoDate}, interchange import through its own
37
+ * window validator, trusted import through its per-chunk format check. A direct
38
+ * `GraphBackend` caller establishes it itself — a pre-existing property of that
39
+ * surface, written down here rather than left implicit.
58
40
  */
59
- declare function deleteLegacyRecordedAnchorMap(options: DeleteLegacyRecordedAnchorMapOptions): Promise<void>;
41
+ declare function resolveStampedValidityLowerBound(statedValidFrom: string | null | undefined, validTo: string | undefined, writeInstant: string): string | undefined;
60
42
 
61
- export { type DeleteLegacyRecordedAnchorMapOptions, GraphBackend, type MigrateLegacyRecordedTimeOptions, type MigrateLegacyRecordedTimeResult, type MigrateRecordedAnchorOptions, RecordedInstant, SqlTableNames, deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor };
43
+ export { resolveStampedValidityLowerBound };
@@ -1,10 +1,10 @@
1
- export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-ZHNXLS3C.js';
1
+ export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from '../chunk-NACVVDWB.js';
2
2
  import '../chunk-6SWPJEYN.js';
3
3
  import '../chunk-OMZ37BM2.js';
4
4
  import '../chunk-NVY5CJFP.js';
5
- export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-SHSSRCFR.js';
6
- import '../chunk-XY5OMOJD.js';
7
- import '../chunk-NG2RB5WL.js';
5
+ export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-6LN7FIVU.js';
6
+ import '../chunk-DZAICA5J.js';
7
+ export { resolveStampedValidityLowerBound } from '../chunk-5K2BKEBD.js';
8
8
  import '../chunk-SDBBMD4N.js';
9
9
  import '../chunk-2EBMPJBO.js';
10
10
  export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-ZDKTPBGV.js';
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkBCQ76AXA_cjs = require('../../chunk-BCQ76AXA.cjs');
4
- require('../../chunk-UPAJHMW3.cjs');
3
+ var chunkPFBRJBUL_cjs = require('../../chunk-PFBRJBUL.cjs');
4
+ require('../../chunk-WCCATHMB.cjs');
5
5
  require('../../chunk-ROR5ZR6A.cjs');
6
6
  require('../../chunk-CICO5GXD.cjs');
7
- require('../../chunk-AMMWA76F.cjs');
7
+ require('../../chunk-FA2AFWLP.cjs');
8
8
  var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
9
9
  require('../../chunk-WODMN3Q2.cjs');
10
10
  require('../../chunk-PWLJ77UV.cjs');
11
- require('../../chunk-JR6SX5RH.cjs');
12
- require('../../chunk-3HGRTCDU.cjs');
13
- require('../../chunk-425IZOQ5.cjs');
11
+ require('../../chunk-SIT26LAZ.cjs');
12
+ require('../../chunk-5PRKMB24.cjs');
13
+ require('../../chunk-TQHGE7UC.cjs');
14
14
  require('../../chunk-OI2GQ25X.cjs');
15
15
  require('../../chunk-ZY4GXIVN.cjs');
16
16
  require('../../chunk-NAUA4PW5.cjs');
@@ -24,7 +24,7 @@ require('../../chunk-N66HCGCY.cjs');
24
24
 
25
25
  Object.defineProperty(exports, "createPostgresBackend", {
26
26
  enumerable: true,
27
- get: function () { return chunkBCQ76AXA_cjs.createPostgresBackend; }
27
+ get: function () { return chunkPFBRJBUL_cjs.createPostgresBackend; }
28
28
  });
29
29
  Object.defineProperty(exports, "createPostgresTables", {
30
30
  enumerable: true,
@@ -1,13 +1,14 @@
1
- import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-DKkMJZjR.cjs';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.cjs';
1
+ import { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.cjs';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
3
3
  import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
4
- import { P as PostgresTables } from '../../postgres-BXy_nyMs.cjs';
5
- export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-BXy_nyMs.cjs';
6
- export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-DJA7Lci5.cjs';
4
+ import { S as SerializedResourceDeclaration } from '../../ddl-BL1NZLMY.cjs';
5
+ export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-BL1NZLMY.cjs';
6
+ import { P as PostgresTables } from '../../postgres-DMj39MEu.cjs';
7
+ export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DMj39MEu.cjs';
7
8
  import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import '../../sqlite-DioSxaPe.cjs';
11
+ import '../../sqlite-YppHrNFb.cjs';
11
12
  import 'drizzle-orm/sqlite-core';
12
13
 
13
14
  /**
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
115
116
  * `prepareStatements` is `false`.
116
117
  */
117
118
  preparedStatementCacheMax?: number;
119
+ /**
120
+ * Declare the connection this backend serializes every statement onto, when
121
+ * TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
122
+ * `pg-proxy`, a postgres-js client capped through a non-numeric string the
123
+ * driver does not coerce) — or declare that it serializes on nothing, when
124
+ * detection is wrong for your topology.
125
+ *
126
+ * Defaults to `{ mode: "detect" }`. See
127
+ * {@link SerializedResourceDeclaration} for what each mode means and for the
128
+ * one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
129
+ * therefore never reached from here).
130
+ */
131
+ serializedResource?: SerializedResourceDeclaration;
118
132
  }>;
119
133
  /**
120
134
  * Creates a TypeGraph backend for PostgreSQL databases.
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
127
141
  */
128
142
  declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
129
143
 
130
- export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
144
+ export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
@@ -1,13 +1,14 @@
1
- import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-DKkMJZjR.js';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.js';
1
+ import { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.js';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
3
3
  import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
4
- import { P as PostgresTables } from '../../postgres-B6YOUcaK.js';
5
- export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-B6YOUcaK.js';
6
- export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-CprnMXJ-.js';
4
+ import { S as SerializedResourceDeclaration } from '../../ddl-D_oW-EVO.js';
5
+ export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-D_oW-EVO.js';
6
+ import { P as PostgresTables } from '../../postgres-CcL4bAHS.js';
7
+ export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-CcL4bAHS.js';
7
8
  import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import '../../sqlite-ClXuBYAj.js';
11
+ import '../../sqlite-D7Oz0SQh.js';
11
12
  import 'drizzle-orm/sqlite-core';
12
13
 
13
14
  /**
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
115
116
  * `prepareStatements` is `false`.
116
117
  */
117
118
  preparedStatementCacheMax?: number;
119
+ /**
120
+ * Declare the connection this backend serializes every statement onto, when
121
+ * TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
122
+ * `pg-proxy`, a postgres-js client capped through a non-numeric string the
123
+ * driver does not coerce) — or declare that it serializes on nothing, when
124
+ * detection is wrong for your topology.
125
+ *
126
+ * Defaults to `{ mode: "detect" }`. See
127
+ * {@link SerializedResourceDeclaration} for what each mode means and for the
128
+ * one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
129
+ * therefore never reached from here).
130
+ */
131
+ serializedResource?: SerializedResourceDeclaration;
118
132
  }>;
119
133
  /**
120
134
  * Creates a TypeGraph backend for PostgreSQL databases.
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
127
141
  */
128
142
  declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
129
143
 
130
- export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
144
+ export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
@@ -1,14 +1,14 @@
1
- export { createPostgresBackend } from '../../chunk-M35DF33T.js';
2
- import '../../chunk-KH7XW7VV.js';
1
+ export { createPostgresBackend } from '../../chunk-OD4SSY2U.js';
2
+ import '../../chunk-ACGSAMD3.js';
3
3
  import '../../chunk-JONXFAPO.js';
4
4
  import '../../chunk-OVI7IXYX.js';
5
- import '../../chunk-LEWHMOUY.js';
5
+ import '../../chunk-YIURNGXI.js';
6
6
  export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-6SWPJEYN.js';
7
7
  import '../../chunk-OMZ37BM2.js';
8
8
  import '../../chunk-JBQQ7THH.js';
9
- import '../../chunk-NAZ2RA4L.js';
10
- import '../../chunk-SHSSRCFR.js';
11
- import '../../chunk-NG2RB5WL.js';
9
+ import '../../chunk-UGHG7PGX.js';
10
+ import '../../chunk-6LN7FIVU.js';
11
+ import '../../chunk-5K2BKEBD.js';
12
12
  import '../../chunk-SDBBMD4N.js';
13
13
  import '../../chunk-K34OPSJK.js';
14
14
  import '../../chunk-2EBMPJBO.js';