@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
@@ -4,8 +4,8 @@ var chunkTZEGUG6D_cjs = require('../chunk-TZEGUG6D.cjs');
4
4
  var chunk26YKDNUD_cjs = require('../chunk-26YKDNUD.cjs');
5
5
  var chunkBFUOME67_cjs = require('../chunk-BFUOME67.cjs');
6
6
  require('../chunk-FQPEMEWX.cjs');
7
- var chunk6KFLYYOC_cjs = require('../chunk-6KFLYYOC.cjs');
8
- require('../chunk-425IZOQ5.cjs');
7
+ var chunk2QGYQBS2_cjs = require('../chunk-2QGYQBS2.cjs');
8
+ require('../chunk-TQHGE7UC.cjs');
9
9
  var chunkHAHNRASW_cjs = require('../chunk-HAHNRASW.cjs');
10
10
  require('../chunk-6NGW27EO.cjs');
11
11
  require('../chunk-MRDBBHIZ.cjs');
@@ -79,19 +79,19 @@ Object.defineProperty(exports, "isNodeType", {
79
79
  });
80
80
  Object.defineProperty(exports, "asRecordedInstant", {
81
81
  enumerable: true,
82
- get: function () { return chunk6KFLYYOC_cjs.asRecordedInstant; }
82
+ get: function () { return chunk2QGYQBS2_cjs.asRecordedInstant; }
83
83
  });
84
84
  Object.defineProperty(exports, "compareRecordedInstants", {
85
85
  enumerable: true,
86
- get: function () { return chunk6KFLYYOC_cjs.compareRecordedInstants; }
86
+ get: function () { return chunk2QGYQBS2_cjs.compareRecordedInstants; }
87
87
  });
88
88
  Object.defineProperty(exports, "recordedInstantRevision", {
89
89
  enumerable: true,
90
- get: function () { return chunk6KFLYYOC_cjs.recordedInstantRevision; }
90
+ get: function () { return chunk2QGYQBS2_cjs.recordedInstantRevision; }
91
91
  });
92
92
  Object.defineProperty(exports, "recordedInstantWallTime", {
93
93
  enumerable: true,
94
- get: function () { return chunk6KFLYYOC_cjs.recordedInstantWallTime; }
94
+ get: function () { return chunk2QGYQBS2_cjs.recordedInstantWallTime; }
95
95
  });
96
96
  Object.defineProperty(exports, "DEFAULT_SEARCHABLE_LANGUAGE", {
97
97
  enumerable: true,
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { b7 as KindAnnotations, u as NodeType, a5 as EdgeType, a4 as InferenceType, bb as MetaEdge } from '../types-DKkMJZjR.cjs';
3
- export { a7 as AllEdgeTypes, a8 as AllNodeTypes, v as AnyEdgeType, ae as Cardinality, af as Collation, aw as DeleteBehavior, aA as EdgeId, aB as EdgeKinds, aC as EdgeProps, aD as EdgeRegistration, aE as EdgeTypeWithEndpoints, aF as EndpointExistence, aQ as GetEdgeType, aR as GetNodeType, d as GraphDef, aT as GraphDefaults, G as GraphIdentityConfig, L as IndexEntity, b6 as JsonValue, K as KindEntity, bf as NodeId, bg as NodeKinds, bh as NodeProps, bi as NodeRegistration, W as NullCheckOp, T as TemporalMode, bU as UniqueConstraint, bW as UniquenessScope, c1 as asEdgeId, c2 as asNodeId, c5 as defineGraph, c7 as getEdgeKinds, c8 as getNodeKinds, c9 as isEdgeType, ca as isEdgeTypeWithEndpoints, cb as isGraphDef, cd as isNodeType } from '../types-DKkMJZjR.cjs';
4
- export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-0Cn_lY8U.cjs';
5
- export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-Ce1pG0S1.cjs';
2
+ import { bi as KindAnnotations, dg as NodeType, dr as EdgeType, b9 as InferenceType, dN as MetaEdge } from '../types-BqFZTQmV.cjs';
3
+ export { ds as AllEdgeTypes, dt as AllNodeTypes, dh as AnyEdgeType, C as Cardinality, l as Collation, S as DeleteBehavior, dw as EdgeId, dx as EdgeKinds, dy as EdgeProps, dz as EdgeRegistration, dA as EdgeTypeWithEndpoints, aa as EndpointExistence, dC as GetEdgeType, dD as GetNodeType, d8 as GraphDef, dE as GraphDefaults, aR as GraphIdentityConfig, b0 as IndexEntity, bh as JsonValue, bj as KindEntity, dP as NodeId, dQ as NodeKinds, dR as NodeProps, dS as NodeRegistration, bt as NullCheckOp, ce as TemporalMode, d_ as UniqueConstraint, cn as UniquenessScope, d$ as asEdgeId, e0 as asNodeId, e2 as defineGraph, e3 as getEdgeKinds, e4 as getNodeKinds, e5 as isEdgeType, e6 as isEdgeTypeWithEndpoints, e7 as isGraphDef, e9 as isNodeType } from '../types-BqFZTQmV.cjs';
4
+ export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-DHJMh_nj.cjs';
5
+ export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-5GqpYCk2.cjs';
6
6
 
7
7
  /**
8
8
  * Options for defining a node type.
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { b7 as KindAnnotations, u as NodeType, a5 as EdgeType, a4 as InferenceType, bb as MetaEdge } from '../types-DKkMJZjR.js';
3
- export { a7 as AllEdgeTypes, a8 as AllNodeTypes, v as AnyEdgeType, ae as Cardinality, af as Collation, aw as DeleteBehavior, aA as EdgeId, aB as EdgeKinds, aC as EdgeProps, aD as EdgeRegistration, aE as EdgeTypeWithEndpoints, aF as EndpointExistence, aQ as GetEdgeType, aR as GetNodeType, d as GraphDef, aT as GraphDefaults, G as GraphIdentityConfig, L as IndexEntity, b6 as JsonValue, K as KindEntity, bf as NodeId, bg as NodeKinds, bh as NodeProps, bi as NodeRegistration, W as NullCheckOp, T as TemporalMode, bU as UniqueConstraint, bW as UniquenessScope, c1 as asEdgeId, c2 as asNodeId, c5 as defineGraph, c7 as getEdgeKinds, c8 as getNodeKinds, c9 as isEdgeType, ca as isEdgeTypeWithEndpoints, cb as isGraphDef, cd as isNodeType } from '../types-DKkMJZjR.js';
4
- export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-D9gMiwcS.js';
5
- export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-CjO9FH1l.js';
2
+ import { bi as KindAnnotations, dg as NodeType, dr as EdgeType, b9 as InferenceType, dN as MetaEdge } from '../types-BqFZTQmV.js';
3
+ export { ds as AllEdgeTypes, dt as AllNodeTypes, dh as AnyEdgeType, C as Cardinality, l as Collation, S as DeleteBehavior, dw as EdgeId, dx as EdgeKinds, dy as EdgeProps, dz as EdgeRegistration, dA as EdgeTypeWithEndpoints, aa as EndpointExistence, dC as GetEdgeType, dD as GetNodeType, d8 as GraphDef, dE as GraphDefaults, aR as GraphIdentityConfig, b0 as IndexEntity, bh as JsonValue, bj as KindEntity, dP as NodeId, dQ as NodeKinds, dR as NodeProps, dS as NodeRegistration, bt as NullCheckOp, ce as TemporalMode, d_ as UniqueConstraint, cn as UniquenessScope, d$ as asEdgeId, e0 as asNodeId, e2 as defineGraph, e3 as getEdgeKinds, e4 as getNodeKinds, e5 as isEdgeType, e6 as isEdgeTypeWithEndpoints, e7 as isGraphDef, e9 as isNodeType } from '../types-BqFZTQmV.js';
4
+ export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-bpE1bBfc.js';
5
+ export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-CbnLzTmM.js';
6
6
 
7
7
  /**
8
8
  * Options for defining a node type.
@@ -2,8 +2,8 @@ export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchem
2
2
  export { defineEdge, defineNode } from '../chunk-SHFBB23Q.js';
3
3
  export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from '../chunk-HEV35TGT.js';
4
4
  import '../chunk-GLHXM7C4.js';
5
- export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from '../chunk-XY5OMOJD.js';
6
- import '../chunk-NG2RB5WL.js';
5
+ export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from '../chunk-DZAICA5J.js';
6
+ import '../chunk-5K2BKEBD.js';
7
7
  export { DEFAULT_SEARCHABLE_LANGUAGE, embedding, getEmbeddingDimensions, getSearchableMetadata, isEmbeddingSchema, isSearchableSchema, resolveGraphVectorSlots, searchable } from '../chunk-PC2UBAUB.js';
8
8
  import '../chunk-XVWOYKIK.js';
9
9
  import '../chunk-ZLONH2UD.js';
@@ -0,0 +1,78 @@
1
+ import { aK as FulltextStrategy } from './types-BqFZTQmV.cjs';
2
+ import { P as PostgresTables } from './postgres-DMj39MEu.cjs';
3
+ import { S as SqliteTables } from './sqlite-YppHrNFb.cjs';
4
+
5
+ /**
6
+ * Declare the connection this backend serializes on, when TypeGraph cannot
7
+ * detect it (Bun `SQL`, `expo-sqlite`, `op-sqlite`, `sqlite-proxy`, `pg-proxy`,
8
+ * a postgres-js pool capped through a string the driver does not coerce — the
9
+ * KNOWN GAPS in this module's inventory). Two wrappers that pass the same
10
+ * object are treated as one serialized resource, exactly as two wrappers over a
11
+ * detected client are.
12
+ *
13
+ * - `"detect"` (the default, and the same behavior as omitting the option):
14
+ * whatever the factory's driver predicates find, and nothing else.
15
+ * - `"shared"`: the given object IS the serialized resource. Refused with a
16
+ * {@link ConfigurationError} when the factory detected a DIFFERENT resource —
17
+ * silently overriding would let two wrappers over one handle be given two
18
+ * different sentinels and quietly de-serialize a pair that really does share.
19
+ * - `"independent"`: statements can run on independent connections. The
20
+ * documented escape hatch for a mis-detection, so a user surprised by a
21
+ * refusal is never stuck.
22
+ *
23
+ * SCOPE — read this before using `"independent"`: this option controls the
24
+ * SHARED-RESOURCE arm of {@link snapshotExportContention} only. It cannot lift
25
+ * the object-identity arm, under which ONE SQLite backend object exporting into
26
+ * ITSELF is refused with `same-sqlite-backend`. That arm is a driver fact (one
27
+ * handle, one open snapshot transaction), not a claim about connection
28
+ * topology, so no declaration can make it false.
29
+ *
30
+ * That surviving arm is SQLITE-ONLY, deliberately: it is gated on
31
+ * `dialect === "sqlite"`, so on Postgres a backend declared `"independent"`
32
+ * exporting into ITSELF is not refused either — a Postgres client that hands
33
+ * out independent connections is exactly what the declaration claims, and the
34
+ * snapshot and the writes it contends with land on different ones.
35
+ */
36
+ type SerializedResourceDeclaration = Readonly<{
37
+ mode: "detect";
38
+ }> | Readonly<{
39
+ mode: "shared";
40
+ resource: object;
41
+ }> | Readonly<{
42
+ mode: "independent";
43
+ }>;
44
+
45
+ /**
46
+ * Generates all DDL statements for the given SQLite tables.
47
+ *
48
+ * Iterates the unified contribution set (#129) — base tables first,
49
+ * then strategy-owned tables. Per-contribution ordering is
50
+ * table-then-its-own-indexes; safe because TypeGraph's tables carry no
51
+ * cross-table foreign keys.
52
+ */
53
+ declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
54
+ /**
55
+ * Generates a single SQL string for SQLite migrations.
56
+ * Convenience function that joins all DDL statements.
57
+ */
58
+ declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
59
+ /**
60
+ * Generates all DDL statements for the given PostgreSQL tables.
61
+ *
62
+ * Iterates the unified contribution set (#129) — base tables first,
63
+ * then strategy-owned tables. Per-contribution ordering is
64
+ * table-then-its-own-indexes; safe because TypeGraph's tables carry no
65
+ * cross-table foreign keys.
66
+ */
67
+ declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
68
+ /**
69
+ * Generates a single SQL string for PostgreSQL migrations.
70
+ * Convenience function that joins all DDL statements.
71
+ *
72
+ * Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
73
+ * embedding tables `pgvectorStrategy` materializes at runtime use the
74
+ * native VECTOR type.
75
+ */
76
+ declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
77
+
78
+ export { type SerializedResourceDeclaration as S, generatePostgresMigrationSQL as a, generateSqliteDDL as b, generateSqliteMigrationSQL as c, generatePostgresDDL as g };
@@ -0,0 +1,78 @@
1
+ import { aK as FulltextStrategy } from './types-BqFZTQmV.js';
2
+ import { P as PostgresTables } from './postgres-CcL4bAHS.js';
3
+ import { S as SqliteTables } from './sqlite-D7Oz0SQh.js';
4
+
5
+ /**
6
+ * Declare the connection this backend serializes on, when TypeGraph cannot
7
+ * detect it (Bun `SQL`, `expo-sqlite`, `op-sqlite`, `sqlite-proxy`, `pg-proxy`,
8
+ * a postgres-js pool capped through a string the driver does not coerce — the
9
+ * KNOWN GAPS in this module's inventory). Two wrappers that pass the same
10
+ * object are treated as one serialized resource, exactly as two wrappers over a
11
+ * detected client are.
12
+ *
13
+ * - `"detect"` (the default, and the same behavior as omitting the option):
14
+ * whatever the factory's driver predicates find, and nothing else.
15
+ * - `"shared"`: the given object IS the serialized resource. Refused with a
16
+ * {@link ConfigurationError} when the factory detected a DIFFERENT resource —
17
+ * silently overriding would let two wrappers over one handle be given two
18
+ * different sentinels and quietly de-serialize a pair that really does share.
19
+ * - `"independent"`: statements can run on independent connections. The
20
+ * documented escape hatch for a mis-detection, so a user surprised by a
21
+ * refusal is never stuck.
22
+ *
23
+ * SCOPE — read this before using `"independent"`: this option controls the
24
+ * SHARED-RESOURCE arm of {@link snapshotExportContention} only. It cannot lift
25
+ * the object-identity arm, under which ONE SQLite backend object exporting into
26
+ * ITSELF is refused with `same-sqlite-backend`. That arm is a driver fact (one
27
+ * handle, one open snapshot transaction), not a claim about connection
28
+ * topology, so no declaration can make it false.
29
+ *
30
+ * That surviving arm is SQLITE-ONLY, deliberately: it is gated on
31
+ * `dialect === "sqlite"`, so on Postgres a backend declared `"independent"`
32
+ * exporting into ITSELF is not refused either — a Postgres client that hands
33
+ * out independent connections is exactly what the declaration claims, and the
34
+ * snapshot and the writes it contends with land on different ones.
35
+ */
36
+ type SerializedResourceDeclaration = Readonly<{
37
+ mode: "detect";
38
+ }> | Readonly<{
39
+ mode: "shared";
40
+ resource: object;
41
+ }> | Readonly<{
42
+ mode: "independent";
43
+ }>;
44
+
45
+ /**
46
+ * Generates all DDL statements for the given SQLite tables.
47
+ *
48
+ * Iterates the unified contribution set (#129) — base tables first,
49
+ * then strategy-owned tables. Per-contribution ordering is
50
+ * table-then-its-own-indexes; safe because TypeGraph's tables carry no
51
+ * cross-table foreign keys.
52
+ */
53
+ declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
54
+ /**
55
+ * Generates a single SQL string for SQLite migrations.
56
+ * Convenience function that joins all DDL statements.
57
+ */
58
+ declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
59
+ /**
60
+ * Generates all DDL statements for the given PostgreSQL tables.
61
+ *
62
+ * Iterates the unified contribution set (#129) — base tables first,
63
+ * then strategy-owned tables. Per-contribution ordering is
64
+ * table-then-its-own-indexes; safe because TypeGraph's tables carry no
65
+ * cross-table foreign keys.
66
+ */
67
+ declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
68
+ /**
69
+ * Generates a single SQL string for PostgreSQL migrations.
70
+ * Convenience function that joins all DDL statements.
71
+ *
72
+ * Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
73
+ * embedding tables `pgvectorStrategy` materializes at runtime use the
74
+ * native VECTOR type.
75
+ */
76
+ declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
77
+
78
+ export { type SerializedResourceDeclaration as S, generatePostgresMigrationSQL as a, generateSqliteDDL as b, generateSqliteMigrationSQL as c, generatePostgresDDL as g };
@@ -1,9 +1,9 @@
1
- import { aW as GraphExtension, K as KindEntity } from '../types-DKkMJZjR.cjs';
2
- export { ad as CURRENT_GRAPH_EXTENSION_VERSION, 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, ds as ExtensionPropertyType, dt as ExtensionSearchableModifier, du as ExtensionStringProperty, dv as ExtensionUniqueConstraint, dw as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aX as GraphExtensionVersion, b8 as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-DKkMJZjR.cjs';
3
- import { aj as TypeGraphError, w as ErrorCategory } from '../index-CHTv4XMZ.cjs';
1
+ import { aP as GraphExtension, bj as KindEntity } from '../types-BqFZTQmV.cjs';
2
+ export { du as CURRENT_GRAPH_EXTENSION_VERSION, 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, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aQ as GraphExtensionVersion, dL as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-BqFZTQmV.cjs';
3
+ import { aj as TypeGraphError, w as ErrorCategory } from '../index-COs_z6nV.cjs';
4
4
  import { R as Result } from '../result-DWo6mUVz.cjs';
5
5
  import 'zod';
6
- import '../materialize-indexes-sskhp-c_.cjs';
6
+ import '../materialize-indexes-DTtAnvfY.cjs';
7
7
 
8
8
  /**
9
9
  * Validates and freezes a graph-extension document.
@@ -1,9 +1,9 @@
1
- import { aW as GraphExtension, K as KindEntity } from '../types-DKkMJZjR.js';
2
- export { ad as CURRENT_GRAPH_EXTENSION_VERSION, 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, ds as ExtensionPropertyType, dt as ExtensionSearchableModifier, du as ExtensionStringProperty, dv as ExtensionUniqueConstraint, dw as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aX as GraphExtensionVersion, b8 as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-DKkMJZjR.js';
3
- import { aj as TypeGraphError, w as ErrorCategory } from '../index-CzoJ3MUw.js';
1
+ import { aP as GraphExtension, bj as KindEntity } from '../types-BqFZTQmV.js';
2
+ export { du as CURRENT_GRAPH_EXTENSION_VERSION, 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, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aQ as GraphExtensionVersion, dL as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-BqFZTQmV.js';
3
+ import { aj as TypeGraphError, w as ErrorCategory } from '../index-D7d1u2gr.js';
4
4
  import { R as Result } from '../result-DWo6mUVz.js';
5
5
  import 'zod';
6
- import '../materialize-indexes-DQL4xcpf.js';
6
+ import '../materialize-indexes-DJ3ykH59.js';
7
7
 
8
8
  /**
9
9
  * Validates and freezes a graph-extension document.