@nicia-ai/typegraph 0.29.0 → 0.31.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 (205) hide show
  1. package/README.md +39 -0
  2. package/dist/backend/postgres/index.cjs +21 -20
  3. package/dist/backend/postgres/index.d.cts +6 -6
  4. package/dist/backend/postgres/index.d.ts +6 -6
  5. package/dist/backend/postgres/index.js +11 -10
  6. package/dist/backend/postgres/pglite.cjs +16 -15
  7. package/dist/backend/postgres/pglite.cjs.map +1 -1
  8. package/dist/backend/postgres/pglite.d.cts +3 -3
  9. package/dist/backend/postgres/pglite.d.ts +3 -3
  10. package/dist/backend/postgres/pglite.js +11 -10
  11. package/dist/backend/postgres/pglite.js.map +1 -1
  12. package/dist/backend/sqlite/index.cjs +18 -18
  13. package/dist/backend/sqlite/index.d.cts +12 -7
  14. package/dist/backend/sqlite/index.d.ts +12 -7
  15. package/dist/backend/sqlite/index.js +9 -9
  16. package/dist/backend/sqlite/libsql.cjs +14 -14
  17. package/dist/backend/sqlite/libsql.d.cts +3 -3
  18. package/dist/backend/sqlite/libsql.d.ts +3 -3
  19. package/dist/backend/sqlite/libsql.js +10 -10
  20. package/dist/backend/sqlite/local.cjs +17 -16
  21. package/dist/backend/sqlite/local.cjs.map +1 -1
  22. package/dist/backend/sqlite/local.d.cts +9 -3
  23. package/dist/backend/sqlite/local.d.ts +9 -3
  24. package/dist/backend/sqlite/local.js +12 -11
  25. package/dist/backend/sqlite/local.js.map +1 -1
  26. package/dist/{chunk-7KLVFWXR.js → chunk-2HZGWCB4.js} +121 -497
  27. package/dist/chunk-2HZGWCB4.js.map +1 -0
  28. package/dist/chunk-2YMGNYXY.js +40 -0
  29. package/dist/chunk-2YMGNYXY.js.map +1 -0
  30. package/dist/chunk-2ZY4K43M.js +90 -0
  31. package/dist/chunk-2ZY4K43M.js.map +1 -0
  32. package/dist/chunk-3EUKJEQ3.js +77 -0
  33. package/dist/chunk-3EUKJEQ3.js.map +1 -0
  34. package/dist/chunk-3JBJEYWE.cjs +604 -0
  35. package/dist/chunk-3JBJEYWE.cjs.map +1 -0
  36. package/dist/{chunk-A4H6QMV4.js → chunk-4A4GUZTQ.js} +15 -11
  37. package/dist/chunk-4A4GUZTQ.js.map +1 -0
  38. package/dist/{chunk-F2Q76CQ4.cjs → chunk-54JVNOAQ.cjs} +5 -37
  39. package/dist/chunk-54JVNOAQ.cjs.map +1 -0
  40. package/dist/{chunk-KGAJ5HFO.cjs → chunk-5CN7B4CZ.cjs} +17 -98
  41. package/dist/chunk-5CN7B4CZ.cjs.map +1 -0
  42. package/dist/{chunk-XTQHSOIC.cjs → chunk-5DTPBFX5.cjs} +88 -87
  43. package/dist/chunk-5DTPBFX5.cjs.map +1 -0
  44. package/dist/chunk-6G35I3VW.cjs +40 -0
  45. package/dist/chunk-6G35I3VW.cjs.map +1 -0
  46. package/dist/{chunk-UPBXUOW7.cjs → chunk-6RMLO5O4.cjs} +19 -64
  47. package/dist/chunk-6RMLO5O4.cjs.map +1 -0
  48. package/dist/chunk-6SA7UIQJ.cjs +94 -0
  49. package/dist/chunk-6SA7UIQJ.cjs.map +1 -0
  50. package/dist/chunk-6ZR4QC3O.cjs +12 -0
  51. package/dist/{chunk-Q3ZZLU3O.cjs.map → chunk-6ZR4QC3O.cjs.map} +1 -1
  52. package/dist/chunk-73KASJGO.cjs +52 -0
  53. package/dist/chunk-73KASJGO.cjs.map +1 -0
  54. package/dist/{chunk-R2LA6MKR.cjs → chunk-7JGLPAFV.cjs} +8 -8
  55. package/dist/{chunk-R2LA6MKR.cjs.map → chunk-7JGLPAFV.cjs.map} +1 -1
  56. package/dist/chunk-A3W7QG7K.js +45 -0
  57. package/dist/chunk-A3W7QG7K.js.map +1 -0
  58. package/dist/{chunk-Q5ASTPM4.cjs → chunk-ASYQDPPU.cjs} +19 -19
  59. package/dist/{chunk-Q5ASTPM4.cjs.map → chunk-ASYQDPPU.cjs.map} +1 -1
  60. package/dist/{chunk-IE2TPFBT.js → chunk-ATTXBMAX.js} +4 -74
  61. package/dist/chunk-ATTXBMAX.js.map +1 -0
  62. package/dist/chunk-AW4A3P5A.cjs +51 -0
  63. package/dist/chunk-AW4A3P5A.cjs.map +1 -0
  64. package/dist/{chunk-ZYQEXGYC.cjs → chunk-CIINW6PS.cjs} +92 -87
  65. package/dist/chunk-CIINW6PS.cjs.map +1 -0
  66. package/dist/{chunk-UP4QAJND.cjs → chunk-FLOI7QOT.cjs} +66 -65
  67. package/dist/chunk-FLOI7QOT.cjs.map +1 -0
  68. package/dist/{chunk-7V335GHG.cjs → chunk-FLRCVI2G.cjs} +12 -2
  69. package/dist/chunk-FLRCVI2G.cjs.map +1 -0
  70. package/dist/{chunk-HKN622O4.js → chunk-GKFWM3DS.js} +4 -32
  71. package/dist/chunk-GKFWM3DS.js.map +1 -0
  72. package/dist/chunk-HTGDWIDE.cjs +89 -0
  73. package/dist/chunk-HTGDWIDE.cjs.map +1 -0
  74. package/dist/{chunk-OGUH56BB.js → chunk-IJORSAC3.js} +6 -42
  75. package/dist/chunk-IJORSAC3.js.map +1 -0
  76. package/dist/{chunk-G6P3OVDY.cjs → chunk-JIEJCTDS.cjs} +18 -2
  77. package/dist/chunk-JIEJCTDS.cjs.map +1 -0
  78. package/dist/{chunk-NZ5PMBTG.js → chunk-K5P5OZXS.js} +12 -3
  79. package/dist/chunk-K5P5OZXS.js.map +1 -0
  80. package/dist/{chunk-HM6XMR3E.cjs → chunk-KTIEB7VH.cjs} +42 -32
  81. package/dist/chunk-KTIEB7VH.cjs.map +1 -0
  82. package/dist/chunk-LJLMDDCW.js +282 -0
  83. package/dist/chunk-LJLMDDCW.js.map +1 -0
  84. package/dist/{chunk-Z36W5WUM.js → chunk-MAQJYNJR.js} +3 -3
  85. package/dist/{chunk-Z36W5WUM.js.map → chunk-MAQJYNJR.js.map} +1 -1
  86. package/dist/{chunk-N3VVQDMA.js → chunk-MXE2U3EX.js} +3 -3
  87. package/dist/{chunk-N3VVQDMA.js.map → chunk-MXE2U3EX.js.map} +1 -1
  88. package/dist/{chunk-4K6IHUW6.cjs → chunk-N2MBPTAF.cjs} +14 -14
  89. package/dist/{chunk-4K6IHUW6.cjs.map → chunk-N2MBPTAF.cjs.map} +1 -1
  90. package/dist/{chunk-CUZGBWFT.js → chunk-O4VUR6SI.js} +3 -3
  91. package/dist/{chunk-CUZGBWFT.js.map → chunk-O4VUR6SI.js.map} +1 -1
  92. package/dist/chunk-RZ4DH4E7.cjs +15832 -0
  93. package/dist/chunk-RZ4DH4E7.cjs.map +1 -0
  94. package/dist/chunk-SAJSMR2B.js +35 -0
  95. package/dist/chunk-SAJSMR2B.js.map +1 -0
  96. package/dist/{chunk-RU5BBUU2.cjs → chunk-SFFJ2IKN.cjs} +71 -67
  97. package/dist/chunk-SFFJ2IKN.cjs.map +1 -0
  98. package/dist/{chunk-Y52UNT66.js → chunk-STP7QVUB.js} +8 -7
  99. package/dist/chunk-STP7QVUB.js.map +1 -0
  100. package/dist/chunk-THX25XW6.js +590 -0
  101. package/dist/chunk-THX25XW6.js.map +1 -0
  102. package/dist/{chunk-MB363HT5.js → chunk-TQOYM4LN.js} +18 -3
  103. package/dist/chunk-TQOYM4LN.js.map +1 -0
  104. package/dist/chunk-UIFEEPME.js +15787 -0
  105. package/dist/chunk-UIFEEPME.js.map +1 -0
  106. package/dist/{chunk-GPUNAJFH.js → chunk-UJ4V3YUQ.js} +3 -3
  107. package/dist/{chunk-GPUNAJFH.js.map → chunk-UJ4V3YUQ.js.map} +1 -1
  108. package/dist/{chunk-C2RWFIYP.cjs → chunk-V4IQYOQ4.cjs} +127 -511
  109. package/dist/chunk-V4IQYOQ4.cjs.map +1 -0
  110. package/dist/chunk-VMEWZU2N.cjs +287 -0
  111. package/dist/chunk-VMEWZU2N.cjs.map +1 -0
  112. package/dist/{chunk-3DTLDGIM.js → chunk-VZX2KSY3.js} +14 -9
  113. package/dist/chunk-VZX2KSY3.js.map +1 -0
  114. package/dist/{chunk-BMDF2S7S.js → chunk-WYTUF3QO.js} +3 -3
  115. package/dist/{chunk-BMDF2S7S.js.map → chunk-WYTUF3QO.js.map} +1 -1
  116. package/dist/{chunk-MRMD7S7E.js → chunk-XKJQQQVR.js} +9 -8
  117. package/dist/chunk-XKJQQQVR.js.map +1 -0
  118. package/dist/{chunk-SFNUHFON.js → chunk-YCV72E6L.js} +25 -19
  119. package/dist/chunk-YCV72E6L.js.map +1 -0
  120. package/dist/{chunk-VGU26WIU.cjs → chunk-YQGLVWB2.cjs} +4 -4
  121. package/dist/{chunk-VGU26WIU.cjs.map → chunk-YQGLVWB2.cjs.map} +1 -1
  122. package/dist/{ddl-BwH00BB6.d.ts → ddl-BJcPrB4L.d.ts} +3 -3
  123. package/dist/{ddl-D3o-RmsV.d.cts → ddl-CPZ7mB7X.d.cts} +3 -3
  124. package/dist/{extension-types-CwHV-Uk4.d.ts → extension-types-D1k0inWU.d.cts} +1 -1
  125. package/dist/{extension-types-CwHV-Uk4.d.cts → extension-types-D1k0inWU.d.ts} +1 -1
  126. package/dist/graph-extension/index.cjs +19 -19
  127. package/dist/graph-extension/index.d.cts +5 -16
  128. package/dist/graph-extension/index.d.ts +5 -16
  129. package/dist/graph-extension/index.js +4 -4
  130. package/dist/graph-merge/index.cjs +3822 -0
  131. package/dist/graph-merge/index.cjs.map +1 -0
  132. package/dist/graph-merge/index.d.cts +1191 -0
  133. package/dist/graph-merge/index.d.ts +1191 -0
  134. package/dist/graph-merge/index.js +3791 -0
  135. package/dist/graph-merge/index.js.map +1 -0
  136. package/dist/{index-CapHwi1a.d.ts → index-BEK0VtNB.d.ts} +11 -3
  137. package/dist/{index-jPPexxM5.d.cts → index-C8sSTErx.d.cts} +11 -3
  138. package/dist/index.cjs +365 -15732
  139. package/dist/index.cjs.map +1 -1
  140. package/dist/index.d.cts +12 -11
  141. package/dist/index.d.ts +12 -11
  142. package/dist/index.js +27 -15533
  143. package/dist/index.js.map +1 -1
  144. package/dist/indexes/index.cjs +32 -28
  145. package/dist/indexes/index.d.cts +5 -5
  146. package/dist/indexes/index.d.ts +5 -5
  147. package/dist/indexes/index.js +8 -4
  148. package/dist/interchange/index.cjs +50 -593
  149. package/dist/interchange/index.cjs.map +1 -1
  150. package/dist/interchange/index.d.cts +5 -5
  151. package/dist/interchange/index.d.ts +5 -5
  152. package/dist/interchange/index.js +3 -589
  153. package/dist/interchange/index.js.map +1 -1
  154. package/dist/{manager-BUugwCYz.d.ts → manager-By-WEd8M.d.ts} +3 -3
  155. package/dist/{manager-DpIpn1HQ.d.cts → manager-Np7VVSlE.d.cts} +3 -3
  156. package/dist/{materialize-indexes-lkawaDor.d.ts → materialize-indexes-CAGhqPHQ.d.ts} +1 -1
  157. package/dist/{materialize-indexes-oanE3RU0.d.cts → materialize-indexes-DEYkU-wr.d.cts} +1 -1
  158. package/dist/{postgres-CQL9UIn2.d.cts → postgres-4J2tmauh.d.cts} +1 -1
  159. package/dist/{postgres-CcRLaxz0.d.ts → postgres-BdIb7tS_.d.ts} +1 -1
  160. package/dist/profiler/index.cjs +9 -9
  161. package/dist/profiler/index.d.cts +7 -7
  162. package/dist/profiler/index.d.ts +7 -7
  163. package/dist/profiler/index.js +2 -2
  164. package/dist/result-DWo6mUVz.d.cts +37 -0
  165. package/dist/result-DWo6mUVz.d.ts +37 -0
  166. package/dist/schema/index.cjs +33 -32
  167. package/dist/schema/index.cjs.map +1 -1
  168. package/dist/schema/index.d.cts +7 -7
  169. package/dist/schema/index.d.ts +7 -7
  170. package/dist/schema/index.js +10 -9
  171. package/dist/schema/index.js.map +1 -1
  172. package/dist/{sqlite-Rj3xu4It.d.cts → sqlite-Gatk_iw_.d.cts} +1 -1
  173. package/dist/{sqlite-CZDFUfHS.d.ts → sqlite-aM_PAz-O.d.ts} +1 -1
  174. package/dist/{store-B43FpOVX.d.cts → store-DuCbdqsh.d.cts} +84 -44
  175. package/dist/{store-De0Y33wP.d.ts → store-MloRPwb9.d.ts} +84 -44
  176. package/dist/{types-DXCSyxac.d.cts → types-BKQljXom.d.ts} +18 -2
  177. package/dist/{types-CmAT-Z47.d.ts → types-C1CYxWrL.d.cts} +18 -2
  178. package/dist/{types-Bwlp_yvu.d.cts → types-DoByHGyU.d.cts} +2 -2
  179. package/dist/{types-B5GSeE3t.d.ts → types-K3vpaJAL.d.ts} +2 -2
  180. package/dist/{where-CP4qGIHd.d.ts → where-Dt49bvo6.d.ts} +2 -2
  181. package/dist/{where-2dsyYt3d.d.cts → where-DydZjGOb.d.cts} +2 -2
  182. package/package.json +6 -1
  183. package/dist/chunk-3DTLDGIM.js.map +0 -1
  184. package/dist/chunk-7KLVFWXR.js.map +0 -1
  185. package/dist/chunk-7V335GHG.cjs.map +0 -1
  186. package/dist/chunk-A4H6QMV4.js.map +0 -1
  187. package/dist/chunk-C2RWFIYP.cjs.map +0 -1
  188. package/dist/chunk-F2Q76CQ4.cjs.map +0 -1
  189. package/dist/chunk-G6P3OVDY.cjs.map +0 -1
  190. package/dist/chunk-HKN622O4.js.map +0 -1
  191. package/dist/chunk-HM6XMR3E.cjs.map +0 -1
  192. package/dist/chunk-IE2TPFBT.js.map +0 -1
  193. package/dist/chunk-KGAJ5HFO.cjs.map +0 -1
  194. package/dist/chunk-MB363HT5.js.map +0 -1
  195. package/dist/chunk-MRMD7S7E.js.map +0 -1
  196. package/dist/chunk-NZ5PMBTG.js.map +0 -1
  197. package/dist/chunk-OGUH56BB.js.map +0 -1
  198. package/dist/chunk-Q3ZZLU3O.cjs +0 -12
  199. package/dist/chunk-RU5BBUU2.cjs.map +0 -1
  200. package/dist/chunk-SFNUHFON.js.map +0 -1
  201. package/dist/chunk-UP4QAJND.cjs.map +0 -1
  202. package/dist/chunk-UPBXUOW7.cjs.map +0 -1
  203. package/dist/chunk-XTQHSOIC.cjs.map +0 -1
  204. package/dist/chunk-Y52UNT66.js.map +0 -1
  205. package/dist/chunk-ZYQEXGYC.cjs.map +0 -1
@@ -1,14 +1,14 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-BUugwCYz.js';
2
- export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-BUugwCYz.js';
3
- import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-CmAT-Z47.js';
4
- export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-CmAT-Z47.js';
5
- import { a as NullCheckOp, K as KindEntity } from '../extension-types-CwHV-Uk4.js';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-By-WEd8M.js';
2
+ export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-By-WEd8M.js';
3
+ import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-BKQljXom.js';
4
+ export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-BKQljXom.js';
5
+ import { a as NullCheckOp, K as KindEntity } from '../extension-types-D1k0inWU.js';
6
6
  import { ZodType, ZodError } from 'zod';
7
- import { V as ValidationIssue, a as ValidationError } from '../index-CapHwi1a.js';
7
+ import { V as ValidationIssue, a as ValidationError } from '../index-BEK0VtNB.js';
8
8
  import 'drizzle-orm';
9
9
  import 'drizzle-orm/pg-core';
10
10
  import 'drizzle-orm/sqlite-core';
11
- import '../materialize-indexes-lkawaDor.js';
11
+ import '../materialize-indexes-CAGhqPHQ.js';
12
12
 
13
13
  /**
14
14
  * Schema deserializer for loading stored schemas.
@@ -1,13 +1,14 @@
1
- import { KindRegistry } from '../chunk-MRMD7S7E.js';
2
- export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-MRMD7S7E.js';
3
- import '../chunk-Z36W5WUM.js';
4
- import '../chunk-SFNUHFON.js';
5
- import '../chunk-M6OC455F.js';
6
- import '../chunk-OGUH56BB.js';
7
- import '../chunk-N3VVQDMA.js';
1
+ import { KindRegistry } from '../chunk-XKJQQQVR.js';
2
+ export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-XKJQQQVR.js';
3
+ import '../chunk-MAQJYNJR.js';
4
+ import '../chunk-IJORSAC3.js';
5
+ import '../chunk-MXE2U3EX.js';
8
6
  import '../chunk-454I6GDF.js';
9
- import '../chunk-MB363HT5.js';
10
- import '../chunk-NZ5PMBTG.js';
7
+ import '../chunk-YCV72E6L.js';
8
+ import '../chunk-M6OC455F.js';
9
+ import '../chunk-2YMGNYXY.js';
10
+ import '../chunk-TQOYM4LN.js';
11
+ import '../chunk-K5P5OZXS.js';
11
12
 
12
13
  // src/schema/deserializer.ts
13
14
  function deserializeSchema(schema) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schema/deserializer.ts"],"names":[],"mappings":"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","file":"index.js","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { KindRegistry } from \"../registry/kind-registry\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a KindRegistry from the closures */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n getNode: (name) => schema.nodes[name],\n getNodeNames: () => nodeNames,\n\n getEdge: (name) => schema.edges[name],\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) => schema.ontology.metaEdges[name],\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromClosures(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized closures.\n *\n * This allows query execution without recomputing closures.\n */\nfunction buildRegistryFromClosures(schema: SerializedSchema): KindRegistry {\n const { closures } = schema.ontology;\n\n // Convert Record<string, string[]> back to Map<string, Set<string>>\n const subClassAncestors = recordToMap(closures.subClassAncestors);\n const subClassDescendants = recordToMap(closures.subClassDescendants);\n const broaderClosure = recordToMap(closures.broaderClosure);\n const narrowerClosure = recordToMap(closures.narrowerClosure);\n const equivalenceSets = recordToMap(closures.equivalenceSets);\n const partOfClosure = recordToMap(closures.partOfClosure);\n const hasPartClosure = recordToMap(closures.hasPartClosure);\n const iriToKind = simpleRecordToMap(closures.iriToKind);\n const disjointPairs = new Set(closures.disjointPairs);\n const edgeInverses = simpleRecordToMap(closures.edgeInverses);\n const edgeImplicationsClosure = recordToMap(closures.edgeImplicationsClosure);\n const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);\n\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map();\n const edgeKinds = new Map();\n\n return new KindRegistry(nodeKinds, edgeKinds, {\n subClassAncestors,\n subClassDescendants,\n broaderClosure,\n narrowerClosure,\n equivalenceSets,\n iriToKind,\n disjointPairs,\n partOfClosure,\n hasPartClosure,\n edgeInverses,\n edgeImplicationsClosure,\n edgeImplyingClosure,\n });\n}\n\n/**\n * Converts Record<string, string[]> to Map<string, Set<string>>.\n */\nfunction recordToMap(\n record: Record<string, readonly string[]>,\n): ReadonlyMap<string, ReadonlySet<string>> {\n const result = new Map<string, Set<string>>();\n for (const [key, values] of Object.entries(record)) {\n result.set(key, new Set(values));\n }\n return result;\n}\n\n/**\n * Converts Record<string, string> to Map<string, string>.\n */\nfunction simpleRecordToMap(\n record: Record<string, string>,\n): ReadonlyMap<string, string> {\n return new Map(Object.entries(record));\n}\n"]}
1
+ {"version":3,"sources":["../../src/schema/deserializer.ts"],"names":[],"mappings":"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","file":"index.js","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { KindRegistry } from \"../registry/kind-registry\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a KindRegistry from the closures */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n getNode: (name) => schema.nodes[name],\n getNodeNames: () => nodeNames,\n\n getEdge: (name) => schema.edges[name],\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) => schema.ontology.metaEdges[name],\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromClosures(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized closures.\n *\n * This allows query execution without recomputing closures.\n */\nfunction buildRegistryFromClosures(schema: SerializedSchema): KindRegistry {\n const { closures } = schema.ontology;\n\n // Convert Record<string, string[]> back to Map<string, Set<string>>\n const subClassAncestors = recordToMap(closures.subClassAncestors);\n const subClassDescendants = recordToMap(closures.subClassDescendants);\n const broaderClosure = recordToMap(closures.broaderClosure);\n const narrowerClosure = recordToMap(closures.narrowerClosure);\n const equivalenceSets = recordToMap(closures.equivalenceSets);\n const partOfClosure = recordToMap(closures.partOfClosure);\n const hasPartClosure = recordToMap(closures.hasPartClosure);\n const iriToKind = simpleRecordToMap(closures.iriToKind);\n const disjointPairs = new Set(closures.disjointPairs);\n const edgeInverses = simpleRecordToMap(closures.edgeInverses);\n const edgeImplicationsClosure = recordToMap(closures.edgeImplicationsClosure);\n const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);\n\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map();\n const edgeKinds = new Map();\n\n return new KindRegistry(nodeKinds, edgeKinds, {\n subClassAncestors,\n subClassDescendants,\n broaderClosure,\n narrowerClosure,\n equivalenceSets,\n iriToKind,\n disjointPairs,\n partOfClosure,\n hasPartClosure,\n edgeInverses,\n edgeImplicationsClosure,\n edgeImplyingClosure,\n });\n}\n\n/**\n * Converts Record<string, string[]> to Map<string, Set<string>>.\n */\nfunction recordToMap(\n record: Record<string, readonly string[]>,\n): ReadonlyMap<string, ReadonlySet<string>> {\n const result = new Map<string, Set<string>>();\n for (const [key, values] of Object.entries(record)) {\n result.set(key, new Set(values));\n }\n return result;\n}\n\n/**\n * Converts Record<string, string> to Map<string, string>.\n */\nfunction simpleRecordToMap(\n record: Record<string, string>,\n): ReadonlyMap<string, string> {\n return new Map(Object.entries(record));\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { I as IndexDeclaration } from './types-DXCSyxac.cjs';
2
+ import { I as IndexDeclaration } from './types-C1CYxWrL.cjs';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { I as IndexDeclaration } from './types-CmAT-Z47.js';
2
+ import { I as IndexDeclaration } from './types-BKQljXom.js';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { p as SqlDialect, ai as SqlSchema, F as FulltextStrategy, V as VectorStrategy, aA as VectorSlotMap, aB as ValueType, aC as PredicateExpression, aD as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, aE as Traversal, aF as NodePredicate, aG as ProjectedField, ac as OrderSpec, aH as GroupBySpec, a4 as HybridFusionOptions, aI as RecursiveCyclePolicy, aJ as TraversalDirection$1, aK as EdgeRow, aL as NodeRow, W as AdoptedTransaction, L as AggregateExpr, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-DXCSyxac.cjs';
3
- import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-DpIpn1HQ.cjs';
4
- import { A as AnyEdgeType, N as NodeType, T as TemporalMode, d as EdgeType, E as EdgeRegistration, i as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, g as EndpointExistence, e as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-CwHV-Uk4.cjs';
2
+ import { aA as ValueType, aB as PredicateExpression, aC as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, p as SqlDialect, ai as SqlSchema, aD as Traversal, aE as NodePredicate, aF as ProjectedField, ac as OrderSpec, aG as GroupBySpec, a4 as HybridFusionOptions, aH as RecursiveCyclePolicy, aI as TraversalDirection$1, aJ as EdgeRow, aK as NodeRow, W as AdoptedTransaction, L as AggregateExpr, F as FulltextStrategy, V as VectorStrategy, aL as VectorSlotMap, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-C1CYxWrL.cjs';
3
+ import { K as KindRegistry, G as GraphDef, w as EdgeKinds, t as NodeKinds, v as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-Np7VVSlE.cjs';
4
+ import { A as AnyEdgeType, N as NodeType, T as TemporalMode, g as EdgeType, E as EdgeRegistration, e as EdgeId, d as NodeId, b as NodeRegistration, K as KindEntity, m as Cardinality, n as EndpointExistence, f as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D1k0inWU.cjs';
5
5
  import { SQL } from 'drizzle-orm';
6
- import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-oanE3RU0.cjs';
6
+ import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-DEYkU-wr.cjs';
7
7
 
8
8
  /**
9
9
  * Embedding type for vector search.
@@ -216,45 +216,6 @@ declare function searchable(options?: SearchableOptions): SearchableSchema;
216
216
  declare function isSearchableSchema(value: unknown): value is SearchableSchema;
217
217
  declare function getSearchableMetadata(schema: z.ZodType): SearchableMetadata | undefined;
218
218
 
219
- /**
220
- * Query Compiler Module
221
- *
222
- * Main entry point for compiling query ASTs to SQL.
223
- * Re-exports individual compiler modules and provides the main compile functions.
224
- */
225
-
226
- /**
227
- * Options for query compilation.
228
- */
229
- type CompileQueryOptions = Readonly<{
230
- /** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
231
- dialect?: SqlDialect | undefined;
232
- /** SQL schema configuration for table names. Defaults to standard names. */
233
- schema?: SqlSchema | undefined;
234
- /**
235
- * Fulltext strategy override. When set, overrides the dialect's
236
- * default fulltext strategy for `$fulltext.matches()` compilation.
237
- * Callers typically read this from `backend.fulltextStrategy` so a
238
- * backend-declared strategy (e.g. ParadeDB) wins over the dialect
239
- * default (tsvector).
240
- */
241
- fulltextStrategy?: FulltextStrategy | undefined;
242
- /**
243
- * Vector strategy override. When set, `field.similarTo(...)`
244
- * predicates compile against the strategy's per-`(kind, field)`
245
- * tables and distance expression. Callers read it from
246
- * `backend.vectorStrategy` so a backend-declared strategy (pgvector,
247
- * libsql-native, sqlite-vec) drives the per-field relevance scan.
248
- */
249
- vectorStrategy?: VectorStrategy | undefined;
250
- /**
251
- * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
252
- * the `field.similarTo(...)` CTE to know which kinds in an alias
253
- * declare the field. Callers build it from the graph's node schemas.
254
- */
255
- vectorSlots?: VectorSlotMap | undefined;
256
- }>;
257
-
258
219
  type FieldTypeInfo = Readonly<{
259
220
  valueType: ValueType;
260
221
  elementType?: ValueType | undefined;
@@ -1187,6 +1148,19 @@ type NodeGetOrCreateByConstraintOptions = Readonly<{
1187
1148
  /** Existing record behavior. Default: "return" */
1188
1149
  ifExists?: IfExistsMode;
1189
1150
  }>;
1151
+ /**
1152
+ * Options for node bulkFindByIndex operations.
1153
+ */
1154
+ type NodeBulkFindByIndexOptions = Readonly<{
1155
+ /**
1156
+ * Maximum number of candidate nodes returned per input item. When omitted,
1157
+ * each input's candidate set is unbounded. Must be a positive integer.
1158
+ *
1159
+ * Candidates are ordered deterministically by node id, so the cap is stable
1160
+ * across calls. Use this to bound fan-out on low-selectivity index keys.
1161
+ */
1162
+ limitPerInput?: number;
1163
+ }>;
1190
1164
  /**
1191
1165
  * Result of an edge getOrCreateByEndpoints operation.
1192
1166
  */
@@ -1363,6 +1337,28 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
1363
1337
  bulkFindByConstraint: (constraintName: CN, items: readonly Readonly<{
1364
1338
  props: z.input<N["schema"]>;
1365
1339
  }>[]) => Promise<(Node<N> | undefined)[]>;
1340
+ /**
1341
+ * Batched candidate retrieval against a declared node index.
1342
+ *
1343
+ * For each input item, TypeGraph computes the index lookup key from
1344
+ * `index.fields` (JSON-pointer extraction, partial-`where` applied to
1345
+ * stored rows, null-safe matching) and returns the live, non-soft-deleted
1346
+ * nodes that share that key. Unlike {@link bulkFindByConstraint}, the index
1347
+ * may be non-unique, so each input yields a (possibly empty) array.
1348
+ *
1349
+ * Results preserve input order; each inner array is ordered by node id.
1350
+ * Empty input returns `[]`. An unknown index name throws
1351
+ * `NodeIndexNotFoundError`; a type-incompatible indexed field throws
1352
+ * `ValidationError`. This is candidate retrieval, not a uniqueness or
1353
+ * identity guarantee.
1354
+ *
1355
+ * @param indexName - Name of the declared node index to match on
1356
+ * @param items - Records whose `props` supply the indexed-field values
1357
+ * @param options - Optional `limitPerInput` to bound per-input fan-out
1358
+ */
1359
+ bulkFindByIndex: (indexName: string, items: readonly Readonly<{
1360
+ props: Partial<z.input<N["schema"]>>;
1361
+ }>[], options?: NodeBulkFindByIndexOptions) => Promise<readonly Node<N>[][]>;
1366
1362
  /**
1367
1363
  * Get an existing node by uniqueness constraint, or create a new one.
1368
1364
  *
@@ -2010,6 +2006,50 @@ declare class ExecutableAggregateQuery<G extends GraphDef, Aliases extends Alias
2010
2006
  execute(): Promise<readonly AggregateResult<R>[]>;
2011
2007
  }
2012
2008
 
2009
+ /**
2010
+ * Query Compiler Module
2011
+ *
2012
+ * Main entry point for compiling query ASTs to SQL.
2013
+ * Re-exports individual compiler modules and provides the main compile functions.
2014
+ */
2015
+
2016
+ /**
2017
+ * Options for query compilation.
2018
+ */
2019
+ type CompileQueryOptions = Readonly<{
2020
+ /** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
2021
+ dialect?: SqlDialect | undefined;
2022
+ /** SQL schema configuration for table names. Defaults to standard names. */
2023
+ schema?: SqlSchema | undefined;
2024
+ /**
2025
+ * Fulltext strategy override. When set, overrides the dialect's
2026
+ * default fulltext strategy for `$fulltext.matches()` compilation.
2027
+ * Callers typically read this from `backend.fulltextStrategy` so a
2028
+ * backend-declared strategy (e.g. ParadeDB) wins over the dialect
2029
+ * default (tsvector).
2030
+ */
2031
+ fulltextStrategy?: FulltextStrategy | undefined;
2032
+ /**
2033
+ * Vector strategy override. When set, `field.similarTo(...)`
2034
+ * predicates compile against the strategy's per-`(kind, field)`
2035
+ * tables and distance expression. Callers read it from
2036
+ * `backend.vectorStrategy` so a backend-declared strategy (pgvector,
2037
+ * libsql-native, sqlite-vec) drives the per-field relevance scan.
2038
+ */
2039
+ vectorStrategy?: VectorStrategy | undefined;
2040
+ /**
2041
+ * Whether the active backend supports SQL window functions such as
2042
+ * `ROW_NUMBER()`. Defaults to true for direct compiler callers.
2043
+ */
2044
+ windowFunctions?: boolean | undefined;
2045
+ /**
2046
+ * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
2047
+ * the `field.similarTo(...)` CTE to know which kinds in an alias
2048
+ * declare the field. Callers build it from the graph's node schemas.
2049
+ */
2050
+ vectorSlots?: VectorSlotMap | undefined;
2051
+ }>;
2052
+
2013
2053
  type PreparedQueryConfig<R> = Readonly<{
2014
2054
  ast: QueryAst;
2015
2055
  unoptimizedAst: QueryAst;
@@ -3912,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
3912
3952
  */
3913
3953
  declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
3914
3954
 
3915
- export { type KindIntrospection as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type FulltextSearchOptions as N, type GetOrCreateAction as O, type GraphAlgorithms as P, QueryBuilder as Q, type GraphEdgeCollections as R, Store as S, TraversalBuilder as T, type GraphNodeCollections as U, type HookContext as V, type HybridFulltextOptions as W, type HybridSearchHit as X, type HybridSearchOptions as Y, type HybridVectorOptions as Z, type IfExistsMode as _, type EmbeddingIndexType as a, createStoreWithSchema as a$, type MaterializeRemovalsEntry as a0, type MaterializeRemovalsOptions as a1, type MaterializeRemovalsResult as a2, type NeighborsOptions as a3, type Node as a4, type NodeAccessor as a5, type NodeAlias as a6, type NodeCollection as a7, type NodeGetOrCreateByConstraintOptions as a8, type NodeGetOrCreateByConstraintResult as a9, type SelectableEdge as aA, type SelectableNode as aB, type ShortestPathOptions as aC, type ShortestPathResult as aD, type StoreHooks as aE, type StoreOptions as aF, type StoreProjection as aG, type StoreRef as aH, StoreSearch as aI, type StreamOptions as aJ, type SubgraphEdgeResult as aK, type SubgraphNodeResult as aL, type SubgraphOptions as aM, type SubgraphResult as aN, type SubsetEdge as aO, type SubsetNode as aP, type TemporalAlgorithmOptions as aQ, type TransactionContext as aR, type TraversalDirection as aS, type TypedEdgeCollection as aT, UnionableQuery as aU, type UniqueIntrospection as aV, type UpdateEdgeInput as aW, type UpdateNodeInput as aX, type VectorSearchHit as aY, type VectorSearchOptions as aZ, createStore as a_, type NodeIdentifier as aa, type NodeRef as ab, type OntologyIntrospection as ac, type OperationHookContext as ad, type PaginateOptions as ae, type PaginatedResult as af, type PathNode as ag, type Predicate as ah, PreparedQuery as ai, type PropsAccessor as aj, type QueryHookContext as ak, type QueryOptions as al, type ReachableNode as am, type ReachableOptions as an, type RebuildFulltextOptions as ao, type RebuildFulltextResult as ap, type ReclaimedVectorFieldEntry as aq, type RecursiveTraversalOptions as ar, type ReembedFunction as as, type ReembedVectorFieldOptions as at, type ReembedVectorFieldResult as au, type SchemaIntrospection as av, type SearchableMetadata as aw, type SearchableOptions as ax, type SearchableSchema as ay, type SelectContext as az, type EdgeAliasMap as b, createVerifiedStore as b0, defineSubgraphProject as b1, embedding as b2, exists as b3, fieldRef as b4, getEmbeddingDimensions as b5, getSearchableMetadata as b6, inSubquery as b7, isEmbeddingSchema as b8, isParameterRef as b9, isSearchableSchema as ba, notExists as bb, notInSubquery as bc, param as bd, searchable as be, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
3955
+ export { type HybridVectorOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type Node as N, type FulltextSearchOptions as O, type GetOrCreateAction as P, QueryBuilder as Q, type GraphAlgorithms as R, Store as S, TraversalBuilder as T, type UniqueIntrospection as U, type GraphEdgeCollections as V, type GraphNodeCollections as W, type HookContext as X, type HybridFulltextOptions as Y, type HybridSearchHit as Z, type HybridSearchOptions as _, type EmbeddingIndexType as a, createStore as a$, type IfExistsMode as a0, type KindIntrospection as a1, type MaterializeRemovalsEntry as a2, type MaterializeRemovalsOptions as a3, type MaterializeRemovalsResult as a4, type NeighborsOptions as a5, type NodeAccessor as a6, type NodeAlias as a7, type NodeBulkFindByIndexOptions as a8, type NodeCollection as a9, type SearchableSchema as aA, type SelectContext as aB, type SelectableEdge as aC, type SelectableNode as aD, type ShortestPathOptions as aE, type ShortestPathResult as aF, type StoreHooks as aG, type StoreOptions as aH, type StoreProjection as aI, type StoreRef as aJ, StoreSearch as aK, type StreamOptions as aL, type SubgraphEdgeResult as aM, type SubgraphNodeResult as aN, type SubgraphOptions as aO, type SubgraphResult as aP, type SubsetEdge as aQ, type SubsetNode as aR, type TemporalAlgorithmOptions as aS, type TransactionContext as aT, type TraversalDirection as aU, type TypedEdgeCollection as aV, UnionableQuery as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintOptions as aa, type NodeGetOrCreateByConstraintResult as ab, type NodeIdentifier as ac, type NodeRef as ad, type OntologyIntrospection as ae, type OperationHookContext as af, type PaginateOptions as ag, type PaginatedResult as ah, type PathNode as ai, type Predicate as aj, PreparedQuery as ak, type PropsAccessor as al, type QueryHookContext as am, type QueryOptions as an, type ReachableNode as ao, type ReachableOptions as ap, type RebuildFulltextOptions as aq, type RebuildFulltextResult as ar, type ReclaimedVectorFieldEntry as as, type RecursiveTraversalOptions as at, type ReembedFunction as au, type ReembedVectorFieldOptions as av, type ReembedVectorFieldResult as aw, type SchemaIntrospection as ax, type SearchableMetadata as ay, type SearchableOptions as az, type EdgeAliasMap as b, createStoreWithSchema as b0, createVerifiedStore as b1, defineSubgraphProject as b2, embedding as b3, exists as b4, fieldRef as b5, getEmbeddingDimensions as b6, getSearchableMetadata as b7, inSubquery as b8, isEmbeddingSchema as b9, isParameterRef as ba, isSearchableSchema as bb, notExists as bc, notInSubquery as bd, param as be, searchable as bf, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { p as SqlDialect, ai as SqlSchema, F as FulltextStrategy, V as VectorStrategy, aA as VectorSlotMap, aB as ValueType, aC as PredicateExpression, aD as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, aE as Traversal, aF as NodePredicate, aG as ProjectedField, ac as OrderSpec, aH as GroupBySpec, a4 as HybridFusionOptions, aI as RecursiveCyclePolicy, aJ as TraversalDirection$1, aK as EdgeRow, aL as NodeRow, W as AdoptedTransaction, L as AggregateExpr, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-CmAT-Z47.js';
3
- import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-BUugwCYz.js';
4
- import { A as AnyEdgeType, N as NodeType, T as TemporalMode, d as EdgeType, E as EdgeRegistration, i as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, g as EndpointExistence, e as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-CwHV-Uk4.js';
2
+ import { aA as ValueType, aB as PredicateExpression, aC as VectorMetricType, a1 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, P as FieldRef, ad as ParameterRef, G as GraphBackend, am as TransactionBackend, a6 as JsonPointerInput, an as TraversalExpansion, p as SqlDialect, ai as SqlSchema, aD as Traversal, aE as NodePredicate, aF as ProjectedField, ac as OrderSpec, aG as GroupBySpec, a4 as HybridFusionOptions, aH as RecursiveCyclePolicy, aI as TraversalDirection$1, aJ as EdgeRow, aK as NodeRow, W as AdoptedTransaction, L as AggregateExpr, F as FulltextStrategy, V as VectorStrategy, aL as VectorSlotMap, aM as SelectiveField, aN as ComposableQuery, aO as SetOperationType, aP as SetOperation, ah as SortDirection, m as JsonSchema, aQ as VectorMetric } from './types-BKQljXom.js';
3
+ import { K as KindRegistry, G as GraphDef, w as EdgeKinds, t as NodeKinds, v as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-By-WEd8M.js';
4
+ import { A as AnyEdgeType, N as NodeType, T as TemporalMode, g as EdgeType, E as EdgeRegistration, e as EdgeId, d as NodeId, b as NodeRegistration, K as KindEntity, m as Cardinality, n as EndpointExistence, f as KindAnnotations, U as UniquenessScope, C as Collation, G as GraphExtension } from './extension-types-D1k0inWU.js';
5
5
  import { SQL } from 'drizzle-orm';
6
- import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-lkawaDor.js';
6
+ import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-CAGhqPHQ.js';
7
7
 
8
8
  /**
9
9
  * Embedding type for vector search.
@@ -216,45 +216,6 @@ declare function searchable(options?: SearchableOptions): SearchableSchema;
216
216
  declare function isSearchableSchema(value: unknown): value is SearchableSchema;
217
217
  declare function getSearchableMetadata(schema: z.ZodType): SearchableMetadata | undefined;
218
218
 
219
- /**
220
- * Query Compiler Module
221
- *
222
- * Main entry point for compiling query ASTs to SQL.
223
- * Re-exports individual compiler modules and provides the main compile functions.
224
- */
225
-
226
- /**
227
- * Options for query compilation.
228
- */
229
- type CompileQueryOptions = Readonly<{
230
- /** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
231
- dialect?: SqlDialect | undefined;
232
- /** SQL schema configuration for table names. Defaults to standard names. */
233
- schema?: SqlSchema | undefined;
234
- /**
235
- * Fulltext strategy override. When set, overrides the dialect's
236
- * default fulltext strategy for `$fulltext.matches()` compilation.
237
- * Callers typically read this from `backend.fulltextStrategy` so a
238
- * backend-declared strategy (e.g. ParadeDB) wins over the dialect
239
- * default (tsvector).
240
- */
241
- fulltextStrategy?: FulltextStrategy | undefined;
242
- /**
243
- * Vector strategy override. When set, `field.similarTo(...)`
244
- * predicates compile against the strategy's per-`(kind, field)`
245
- * tables and distance expression. Callers read it from
246
- * `backend.vectorStrategy` so a backend-declared strategy (pgvector,
247
- * libsql-native, sqlite-vec) drives the per-field relevance scan.
248
- */
249
- vectorStrategy?: VectorStrategy | undefined;
250
- /**
251
- * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
252
- * the `field.similarTo(...)` CTE to know which kinds in an alias
253
- * declare the field. Callers build it from the graph's node schemas.
254
- */
255
- vectorSlots?: VectorSlotMap | undefined;
256
- }>;
257
-
258
219
  type FieldTypeInfo = Readonly<{
259
220
  valueType: ValueType;
260
221
  elementType?: ValueType | undefined;
@@ -1187,6 +1148,19 @@ type NodeGetOrCreateByConstraintOptions = Readonly<{
1187
1148
  /** Existing record behavior. Default: "return" */
1188
1149
  ifExists?: IfExistsMode;
1189
1150
  }>;
1151
+ /**
1152
+ * Options for node bulkFindByIndex operations.
1153
+ */
1154
+ type NodeBulkFindByIndexOptions = Readonly<{
1155
+ /**
1156
+ * Maximum number of candidate nodes returned per input item. When omitted,
1157
+ * each input's candidate set is unbounded. Must be a positive integer.
1158
+ *
1159
+ * Candidates are ordered deterministically by node id, so the cap is stable
1160
+ * across calls. Use this to bound fan-out on low-selectivity index keys.
1161
+ */
1162
+ limitPerInput?: number;
1163
+ }>;
1190
1164
  /**
1191
1165
  * Result of an edge getOrCreateByEndpoints operation.
1192
1166
  */
@@ -1363,6 +1337,28 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
1363
1337
  bulkFindByConstraint: (constraintName: CN, items: readonly Readonly<{
1364
1338
  props: z.input<N["schema"]>;
1365
1339
  }>[]) => Promise<(Node<N> | undefined)[]>;
1340
+ /**
1341
+ * Batched candidate retrieval against a declared node index.
1342
+ *
1343
+ * For each input item, TypeGraph computes the index lookup key from
1344
+ * `index.fields` (JSON-pointer extraction, partial-`where` applied to
1345
+ * stored rows, null-safe matching) and returns the live, non-soft-deleted
1346
+ * nodes that share that key. Unlike {@link bulkFindByConstraint}, the index
1347
+ * may be non-unique, so each input yields a (possibly empty) array.
1348
+ *
1349
+ * Results preserve input order; each inner array is ordered by node id.
1350
+ * Empty input returns `[]`. An unknown index name throws
1351
+ * `NodeIndexNotFoundError`; a type-incompatible indexed field throws
1352
+ * `ValidationError`. This is candidate retrieval, not a uniqueness or
1353
+ * identity guarantee.
1354
+ *
1355
+ * @param indexName - Name of the declared node index to match on
1356
+ * @param items - Records whose `props` supply the indexed-field values
1357
+ * @param options - Optional `limitPerInput` to bound per-input fan-out
1358
+ */
1359
+ bulkFindByIndex: (indexName: string, items: readonly Readonly<{
1360
+ props: Partial<z.input<N["schema"]>>;
1361
+ }>[], options?: NodeBulkFindByIndexOptions) => Promise<readonly Node<N>[][]>;
1366
1362
  /**
1367
1363
  * Get an existing node by uniqueness constraint, or create a new one.
1368
1364
  *
@@ -2010,6 +2006,50 @@ declare class ExecutableAggregateQuery<G extends GraphDef, Aliases extends Alias
2010
2006
  execute(): Promise<readonly AggregateResult<R>[]>;
2011
2007
  }
2012
2008
 
2009
+ /**
2010
+ * Query Compiler Module
2011
+ *
2012
+ * Main entry point for compiling query ASTs to SQL.
2013
+ * Re-exports individual compiler modules and provides the main compile functions.
2014
+ */
2015
+
2016
+ /**
2017
+ * Options for query compilation.
2018
+ */
2019
+ type CompileQueryOptions = Readonly<{
2020
+ /** SQL dialect ("sqlite" or "postgres"). Defaults to "sqlite". */
2021
+ dialect?: SqlDialect | undefined;
2022
+ /** SQL schema configuration for table names. Defaults to standard names. */
2023
+ schema?: SqlSchema | undefined;
2024
+ /**
2025
+ * Fulltext strategy override. When set, overrides the dialect's
2026
+ * default fulltext strategy for `$fulltext.matches()` compilation.
2027
+ * Callers typically read this from `backend.fulltextStrategy` so a
2028
+ * backend-declared strategy (e.g. ParadeDB) wins over the dialect
2029
+ * default (tsvector).
2030
+ */
2031
+ fulltextStrategy?: FulltextStrategy | undefined;
2032
+ /**
2033
+ * Vector strategy override. When set, `field.similarTo(...)`
2034
+ * predicates compile against the strategy's per-`(kind, field)`
2035
+ * tables and distance expression. Callers read it from
2036
+ * `backend.vectorStrategy` so a backend-declared strategy (pgvector,
2037
+ * libsql-native, sqlite-vec) drives the per-field relevance scan.
2038
+ */
2039
+ vectorStrategy?: VectorStrategy | undefined;
2040
+ /**
2041
+ * Whether the active backend supports SQL window functions such as
2042
+ * `ROW_NUMBER()`. Defaults to true for direct compiler callers.
2043
+ */
2044
+ windowFunctions?: boolean | undefined;
2045
+ /**
2046
+ * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
2047
+ * the `field.similarTo(...)` CTE to know which kinds in an alias
2048
+ * declare the field. Callers build it from the graph's node schemas.
2049
+ */
2050
+ vectorSlots?: VectorSlotMap | undefined;
2051
+ }>;
2052
+
2013
2053
  type PreparedQueryConfig<R> = Readonly<{
2014
2054
  ast: QueryAst;
2015
2055
  unoptimizedAst: QueryAst;
@@ -3912,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
3912
3952
  */
3913
3953
  declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
3914
3954
 
3915
- export { type KindIntrospection as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type FulltextSearchOptions as N, type GetOrCreateAction as O, type GraphAlgorithms as P, QueryBuilder as Q, type GraphEdgeCollections as R, Store as S, TraversalBuilder as T, type GraphNodeCollections as U, type HookContext as V, type HybridFulltextOptions as W, type HybridSearchHit as X, type HybridSearchOptions as Y, type HybridVectorOptions as Z, type IfExistsMode as _, type EmbeddingIndexType as a, createStoreWithSchema as a$, type MaterializeRemovalsEntry as a0, type MaterializeRemovalsOptions as a1, type MaterializeRemovalsResult as a2, type NeighborsOptions as a3, type Node as a4, type NodeAccessor as a5, type NodeAlias as a6, type NodeCollection as a7, type NodeGetOrCreateByConstraintOptions as a8, type NodeGetOrCreateByConstraintResult as a9, type SelectableEdge as aA, type SelectableNode as aB, type ShortestPathOptions as aC, type ShortestPathResult as aD, type StoreHooks as aE, type StoreOptions as aF, type StoreProjection as aG, type StoreRef as aH, StoreSearch as aI, type StreamOptions as aJ, type SubgraphEdgeResult as aK, type SubgraphNodeResult as aL, type SubgraphOptions as aM, type SubgraphResult as aN, type SubsetEdge as aO, type SubsetNode as aP, type TemporalAlgorithmOptions as aQ, type TransactionContext as aR, type TraversalDirection as aS, type TypedEdgeCollection as aT, UnionableQuery as aU, type UniqueIntrospection as aV, type UpdateEdgeInput as aW, type UpdateNodeInput as aX, type VectorSearchHit as aY, type VectorSearchOptions as aZ, createStore as a_, type NodeIdentifier as aa, type NodeRef as ab, type OntologyIntrospection as ac, type OperationHookContext as ad, type PaginateOptions as ae, type PaginatedResult as af, type PathNode as ag, type Predicate as ah, PreparedQuery as ai, type PropsAccessor as aj, type QueryHookContext as ak, type QueryOptions as al, type ReachableNode as am, type ReachableOptions as an, type RebuildFulltextOptions as ao, type RebuildFulltextResult as ap, type ReclaimedVectorFieldEntry as aq, type RecursiveTraversalOptions as ar, type ReembedFunction as as, type ReembedVectorFieldOptions as at, type ReembedVectorFieldResult as au, type SchemaIntrospection as av, type SearchableMetadata as aw, type SearchableOptions as ax, type SearchableSchema as ay, type SelectContext as az, type EdgeAliasMap as b, createVerifiedStore as b0, defineSubgraphProject as b1, embedding as b2, exists as b3, fieldRef as b4, getEmbeddingDimensions as b5, getSearchableMetadata as b6, inSubquery as b7, isEmbeddingSchema as b8, isParameterRef as b9, isSearchableSchema as ba, notExists as bb, notInSubquery as bc, param as bd, searchable as be, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
3955
+ export { type HybridVectorOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EmbeddingMetric as E, type EdgeGetOrCreateByEndpointsResult as F, type EdgeIntrospection as G, type EmbeddingSchema as H, type EmbeddingValue as I, ExecutableAggregateQuery as J, ExecutableQuery as K, type FieldAccessor as L, type FulltextSearchHit as M, type Node as N, type FulltextSearchOptions as O, type GetOrCreateAction as P, QueryBuilder as Q, type GraphAlgorithms as R, Store as S, TraversalBuilder as T, type UniqueIntrospection as U, type GraphEdgeCollections as V, type GraphNodeCollections as W, type HookContext as X, type HybridFulltextOptions as Y, type HybridSearchHit as Z, type HybridSearchOptions as _, type EmbeddingIndexType as a, createStore as a$, type IfExistsMode as a0, type KindIntrospection as a1, type MaterializeRemovalsEntry as a2, type MaterializeRemovalsOptions as a3, type MaterializeRemovalsResult as a4, type NeighborsOptions as a5, type NodeAccessor as a6, type NodeAlias as a7, type NodeBulkFindByIndexOptions as a8, type NodeCollection as a9, type SearchableSchema as aA, type SelectContext as aB, type SelectableEdge as aC, type SelectableNode as aD, type ShortestPathOptions as aE, type ShortestPathResult as aF, type StoreHooks as aG, type StoreOptions as aH, type StoreProjection as aI, type StoreRef as aJ, StoreSearch as aK, type StreamOptions as aL, type SubgraphEdgeResult as aM, type SubgraphNodeResult as aN, type SubgraphOptions as aO, type SubgraphResult as aP, type SubsetEdge as aQ, type SubsetNode as aR, type TemporalAlgorithmOptions as aS, type TransactionContext as aT, type TraversalDirection as aU, type TypedEdgeCollection as aV, UnionableQuery as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintOptions as aa, type NodeGetOrCreateByConstraintResult as ab, type NodeIdentifier as ac, type NodeRef as ad, type OntologyIntrospection as ae, type OperationHookContext as af, type PaginateOptions as ag, type PaginatedResult as ah, type PathNode as ai, type Predicate as aj, PreparedQuery as ak, type PropsAccessor as al, type QueryHookContext as am, type QueryOptions as an, type ReachableNode as ao, type ReachableOptions as ap, type RebuildFulltextOptions as aq, type RebuildFulltextResult as ar, type ReclaimedVectorFieldEntry as as, type RecursiveTraversalOptions as at, type ReembedFunction as au, type ReembedVectorFieldOptions as av, type ReembedVectorFieldResult as aw, type SchemaIntrospection as ax, type SearchableMetadata as ay, type SearchableOptions as az, type EdgeAliasMap as b, createStoreWithSchema as b0, createVerifiedStore as b1, defineSubgraphProject as b2, embedding as b3, exists as b4, fieldRef as b5, getEmbeddingDimensions as b6, getSearchableMetadata as b7, inSubquery as b8, isEmbeddingSchema as b9, isParameterRef as ba, isSearchableSchema as bb, notExists as bc, notInSubquery as bd, param as be, searchable as bf, type AggregateResult as c, type AlgorithmCyclePolicy as d, type AnyEdge as e, type AnyNode as f, type BatchResults as g, type BatchableQuery as h, type ConstraintNames as i, type CreateEdgeInput as j, type CreateNodeInput as k, type DegreeOptions as l, type DynamicEdgeAccessor as m, type DynamicEdgeCollection as n, type DynamicEdgeType as o, type DynamicFieldBuilder as p, type DynamicNodeAccessor as q, type DynamicNodeCollection as r, type DynamicNodeType as s, type DynamicSelectableEdge as t, type DynamicSelectableNode as u, type Edge as v, type EdgeAccessor as w, type EdgeCollection as x, type EdgeFindByEndpointsOptions as y, type EdgeGetOrCreateByEndpointsOptions as z };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { N as NodeType, d as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, e as KindAnnotations, f as Cardinality, g as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-CwHV-Uk4.cjs';
2
+ import { N as NodeType, g as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, f as KindAnnotations, m as Cardinality, n as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-D1k0inWU.js';
3
3
  import { SQL } from 'drizzle-orm';
4
4
  import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
5
5
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
@@ -799,6 +799,8 @@ type FulltextCapabilities = Readonly<{
799
799
  type BackendCapabilities = Readonly<{
800
800
  /** Whether the backend supports atomic transactions (D1 does not) */
801
801
  transactions: boolean;
802
+ /** Whether the backend supports SQL window functions such as ROW_NUMBER() */
803
+ windowFunctions: boolean;
802
804
  /** Vector search capabilities (undefined if not configured) */
803
805
  vector?: VectorCapabilities | undefined;
804
806
  /** Fulltext search capabilities (undefined if not configured) */
@@ -1876,6 +1878,20 @@ type FindEdgesByKindParams = Readonly<{
1876
1878
  temporalMode?: TemporalMode;
1877
1879
  /** Timestamp for "current" and "asOf" temporal modes. */
1878
1880
  asOf?: string;
1881
+ /**
1882
+ * Stable ordering for keyset pagination. Default: "created_at" (existing
1883
+ * behavior). Use "id" for iteration that is stable under shared `created_at`
1884
+ * timestamps — the offset path orders by the NON-unique `created_at`, so a
1885
+ * full enumeration must page by the unique `id` to avoid skipping a row at a
1886
+ * page boundary. Mirrors {@link FindNodesByKindParams.orderBy}.
1887
+ */
1888
+ orderBy?: "id" | "created_at";
1889
+ /**
1890
+ * Keyset cursor. Returns rows strictly greater (by `orderBy`) than this value.
1891
+ * When `orderBy: "id"`, compared lexicographically. Mutually exclusive with
1892
+ * `offset` — callers pick one. Mirrors {@link FindNodesByKindParams.after}.
1893
+ */
1894
+ after?: string;
1879
1895
  }>;
1880
1896
  /**
1881
1897
  * Parameters for counting edges by kind.
@@ -2602,4 +2618,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
2602
2618
  type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
2603
2619
  type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
2604
2620
 
2605
- export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type VectorSlotMap as aA, type ValueType as aB, type PredicateExpression as aC, type VectorMetricType as aD, type Traversal as aE, type NodePredicate as aF, type ProjectedField as aG, type GroupBySpec as aH, type RecursiveCyclePolicy as aI, type TraversalDirection as aJ, type EdgeRow as aK, type NodeRow as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
2621
+ export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type ValueType as aA, type PredicateExpression as aB, type VectorMetricType as aC, type Traversal as aD, type NodePredicate as aE, type ProjectedField as aF, type GroupBySpec as aG, type RecursiveCyclePolicy as aH, type TraversalDirection as aI, type EdgeRow as aJ, type NodeRow as aK, type VectorSlotMap as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { N as NodeType, d as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, e as KindAnnotations, f as Cardinality, g as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-CwHV-Uk4.js';
2
+ import { N as NodeType, g as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, f as KindAnnotations, m as Cardinality, n as EndpointExistence, T as TemporalMode, G as GraphExtension, I as IndexEntity, K as KindEntity, a as NullCheckOp, A as AnyEdgeType } from './extension-types-D1k0inWU.cjs';
3
3
  import { SQL } from 'drizzle-orm';
4
4
  import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
5
5
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
@@ -799,6 +799,8 @@ type FulltextCapabilities = Readonly<{
799
799
  type BackendCapabilities = Readonly<{
800
800
  /** Whether the backend supports atomic transactions (D1 does not) */
801
801
  transactions: boolean;
802
+ /** Whether the backend supports SQL window functions such as ROW_NUMBER() */
803
+ windowFunctions: boolean;
802
804
  /** Vector search capabilities (undefined if not configured) */
803
805
  vector?: VectorCapabilities | undefined;
804
806
  /** Fulltext search capabilities (undefined if not configured) */
@@ -1876,6 +1878,20 @@ type FindEdgesByKindParams = Readonly<{
1876
1878
  temporalMode?: TemporalMode;
1877
1879
  /** Timestamp for "current" and "asOf" temporal modes. */
1878
1880
  asOf?: string;
1881
+ /**
1882
+ * Stable ordering for keyset pagination. Default: "created_at" (existing
1883
+ * behavior). Use "id" for iteration that is stable under shared `created_at`
1884
+ * timestamps — the offset path orders by the NON-unique `created_at`, so a
1885
+ * full enumeration must page by the unique `id` to avoid skipping a row at a
1886
+ * page boundary. Mirrors {@link FindNodesByKindParams.orderBy}.
1887
+ */
1888
+ orderBy?: "id" | "created_at";
1889
+ /**
1890
+ * Keyset cursor. Returns rows strictly greater (by `orderBy`) than this value.
1891
+ * When `orderBy: "id"`, compared lexicographically. Mutually exclusive with
1892
+ * `offset` — callers pick one. Mirrors {@link FindNodesByKindParams.after}.
1893
+ */
1894
+ after?: string;
1879
1895
  }>;
1880
1896
  /**
1881
1897
  * Parameters for counting edges by kind.
@@ -2602,4 +2618,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
2602
2618
  type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
2603
2619
  type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
2604
2620
 
2605
- export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type VectorSlotMap as aA, type ValueType as aB, type PredicateExpression as aC, type VectorMetricType as aD, type Traversal as aE, type NodePredicate as aF, type ProjectedField as aG, type GroupBySpec as aH, type RecursiveCyclePolicy as aI, type TraversalDirection as aJ, type EdgeRow as aK, type NodeRow as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
2621
+ export { type FulltextBatchRow as $, type AnySqliteDatabase as A, type BackendCapabilities as B, type VectorIndexMetric as C, type VectorIndexParams as D, type EdgeIndexConfig as E, type FulltextStrategy as F, type GraphBackend as G, type SchemaVersionRow as H, type IndexDeclaration as I, type JsonPointer as J, type InferenceType as K, type AggregateExpr as L, type MetaEdge as M, type NodeIndexConfig as N, type OntologyRelation as O, type FieldRef as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqliteExecutionProfileHints as S, type ComparisonOp as T, type AggregateComparisonPredicate as U, type VectorStrategy as V, type AdoptedTransaction as W, type CommitSchemaVersionExpected as X, type CommitSchemaVersionParams as Y, DEFAULT_SQL_SCHEMA as Z, type DeleteFulltextBatchParams as _, type SqliteTransactionMode as a, type FulltextCapabilities as a0, type FulltextQueryMode as a1, type FulltextSearchParams as a2, type FulltextSearchResult as a3, type HybridFusionOptions as a4, type JsonPointerFor as a5, type JsonPointerInput as a6, type JsonPointerSegment as a7, type JsonPointerSegments as a8, type JsonPointerSegmentsFor as a9, type ValueType as aA, type PredicateExpression as aB, type VectorMetricType as aC, type Traversal as aD, type NodePredicate as aE, type ProjectedField as aF, type GroupBySpec as aG, type RecursiveCyclePolicy as aH, type TraversalDirection as aI, type EdgeRow as aJ, type NodeRow as aK, type VectorSlotMap as aL, type SelectiveField as aM, type ComposableQuery as aN, type SetOperationType as aO, type SetOperation as aP, type VectorMetric as aQ, MAX_JSON_POINTER_DEPTH as aa, type MetaEdgeProperties as ab, type OrderSpec as ac, type ParameterRef as ad, type ResolveJsonPointer as ae, type ResolveJsonPointerSegments as af, type SetActiveVersionParams as ag, type SortDirection as ah, type SqlSchema as ai, type SqlTableNames as aj, type StrategyTableContribution as ak, type TableContribution as al, type TransactionBackend as am, type TraversalExpansion as an, type UpsertFulltextBatchParams as ao, type VectorCapabilities as ap, type VectorSlot as aq, buildVectorCapabilities as ar, createSqlSchema as as, fts5Strategy as at, isMetaEdge as au, joinJsonPointers as av, jsonPointer as aw, normalizeJsonPointer as ax, parseJsonPointer as ay, tsvectorStrategy as az, type AnyPgDatabase as b, type EdgeIndexDeclaration as c, type NodeIndexDeclaration as d, type IndexWhereExpression as e, type SerializedNodeDef as f, type SerializedEdgeDef as g, type SerializedMetaEdge as h, type SerializedOntologyRelation as i, type SerializedClosures as j, type SerializedSchema as k, type SchemaHash as l, type JsonSchema as m, type SerializedOntology as n, type SerializedUniqueConstraint as o, type SqlDialect as p, type EdgeIndexDirection as q, type EdgeIndexWhereBuilder as r, type IndexOrigin as s, type IndexScope as t, type IndexWhereFieldBuilder as u, type IndexWhereInput as v, type NodeIndexWhereBuilder as w, type SystemColumnName as x, type VectorIndexDeclaration as y, type VectorIndexImplementation as z };
@@ -1,5 +1,5 @@
1
- import { K as KindEntity } from './extension-types-CwHV-Uk4.cjs';
2
- import { J as JsonPointer } from './types-DXCSyxac.cjs';
1
+ import { K as KindEntity } from './extension-types-D1k0inWU.cjs';
2
+ import { J as JsonPointer } from './types-C1CYxWrL.cjs';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -1,5 +1,5 @@
1
- import { K as KindEntity } from './extension-types-CwHV-Uk4.js';
2
- import { J as JsonPointer } from './types-CmAT-Z47.js';
1
+ import { K as KindEntity } from './extension-types-D1k0inWU.js';
2
+ import { J as JsonPointer } from './types-BKQljXom.js';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -1,5 +1,5 @@
1
- import { A as AnyEdgeType, N as NodeType } from './extension-types-CwHV-Uk4.js';
2
- import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-CmAT-Z47.js';
1
+ import { A as AnyEdgeType, N as NodeType } from './extension-types-D1k0inWU.js';
2
+ import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-BKQljXom.js';
3
3
 
4
4
  declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
5
5
  declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;