@nicia-ai/typegraph 0.28.1 → 0.30.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 (178) hide show
  1. package/dist/backend/postgres/index.cjs +24 -762
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +24 -5
  4. package/dist/backend/postgres/index.d.ts +24 -5
  5. package/dist/backend/postgres/index.js +11 -753
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/postgres/pglite.cjs +52 -0
  8. package/dist/backend/postgres/pglite.cjs.map +1 -0
  9. package/dist/backend/postgres/pglite.d.cts +116 -0
  10. package/dist/backend/postgres/pglite.d.ts +116 -0
  11. package/dist/backend/postgres/pglite.js +50 -0
  12. package/dist/backend/postgres/pglite.js.map +1 -0
  13. package/dist/backend/sqlite/index.cjs +23 -27
  14. package/dist/backend/sqlite/index.d.cts +22 -15
  15. package/dist/backend/sqlite/index.d.ts +22 -15
  16. package/dist/backend/sqlite/index.js +10 -10
  17. package/dist/backend/sqlite/libsql.cjs +18 -14
  18. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  19. package/dist/backend/sqlite/libsql.d.cts +3 -3
  20. package/dist/backend/sqlite/libsql.d.ts +3 -3
  21. package/dist/backend/sqlite/libsql.js +17 -13
  22. package/dist/backend/sqlite/libsql.js.map +1 -1
  23. package/dist/backend/sqlite/local.cjs +19 -17
  24. package/dist/backend/sqlite/local.cjs.map +1 -1
  25. package/dist/backend/sqlite/local.d.cts +9 -3
  26. package/dist/backend/sqlite/local.d.ts +9 -3
  27. package/dist/backend/sqlite/local.js +17 -15
  28. package/dist/backend/sqlite/local.js.map +1 -1
  29. package/dist/chunk-26HWIIVS.cjs +740 -0
  30. package/dist/chunk-26HWIIVS.cjs.map +1 -0
  31. package/dist/chunk-2QA5EHEN.js +181 -0
  32. package/dist/chunk-2QA5EHEN.js.map +1 -0
  33. package/dist/chunk-3IRMLJEK.js +206 -0
  34. package/dist/chunk-3IRMLJEK.js.map +1 -0
  35. package/dist/{chunk-5MTOKWDA.js → chunk-3JLRHQ67.js} +9 -9
  36. package/dist/{chunk-5MTOKWDA.js.map → chunk-3JLRHQ67.js.map} +1 -1
  37. package/dist/{chunk-WVQXAFP3.js → chunk-454I6GDF.js} +46 -5
  38. package/dist/chunk-454I6GDF.js.map +1 -0
  39. package/dist/{chunk-CTHNVU6K.cjs → chunk-4BXHVEFB.cjs} +16 -16
  40. package/dist/{chunk-CTHNVU6K.cjs.map → chunk-4BXHVEFB.cjs.map} +1 -1
  41. package/dist/{chunk-NMOE2ZEU.cjs → chunk-4LBO6KIF.cjs} +139 -128
  42. package/dist/chunk-4LBO6KIF.cjs.map +1 -0
  43. package/dist/chunk-633N7DSE.js +258 -0
  44. package/dist/chunk-633N7DSE.js.map +1 -0
  45. package/dist/{chunk-WFUN6DCM.cjs → chunk-7JGLPAFV.cjs} +11 -11
  46. package/dist/chunk-7JGLPAFV.cjs.map +1 -0
  47. package/dist/{chunk-ZTREJOGB.js → chunk-AI3RNREM.js} +140 -69
  48. package/dist/chunk-AI3RNREM.js.map +1 -0
  49. package/dist/{chunk-TSGBRPNE.js → chunk-ENDUY2CD.js} +46 -46
  50. package/dist/chunk-ENDUY2CD.js.map +1 -0
  51. package/dist/{chunk-7V335GHG.cjs → chunk-FLRCVI2G.cjs} +12 -2
  52. package/dist/chunk-FLRCVI2G.cjs.map +1 -0
  53. package/dist/chunk-FVIGJTS7.js +305 -0
  54. package/dist/chunk-FVIGJTS7.js.map +1 -0
  55. package/dist/chunk-FWBVPATK.cjs +208 -0
  56. package/dist/chunk-FWBVPATK.cjs.map +1 -0
  57. package/dist/chunk-IE6GN7L3.cjs +319 -0
  58. package/dist/chunk-IE6GN7L3.cjs.map +1 -0
  59. package/dist/{chunk-PGU2XKMA.js → chunk-IUIJJYPI.js} +117 -106
  60. package/dist/chunk-IUIJJYPI.js.map +1 -0
  61. package/dist/{chunk-E5ROA3MN.js → chunk-IX7RE7CG.js} +3 -3
  62. package/dist/{chunk-E5ROA3MN.js.map → chunk-IX7RE7CG.js.map} +1 -1
  63. package/dist/{chunk-YEDQLNVE.cjs → chunk-JIEJCTDS.cjs} +30 -2
  64. package/dist/chunk-JIEJCTDS.cjs.map +1 -0
  65. package/dist/{chunk-WZH2MKHW.cjs → chunk-K4N35E7B.cjs} +101 -101
  66. package/dist/{chunk-WZH2MKHW.cjs.map → chunk-K4N35E7B.cjs.map} +1 -1
  67. package/dist/{chunk-NZ5PMBTG.js → chunk-K5P5OZXS.js} +12 -3
  68. package/dist/chunk-K5P5OZXS.js.map +1 -0
  69. package/dist/chunk-K5VREXMZ.js +738 -0
  70. package/dist/chunk-K5VREXMZ.js.map +1 -0
  71. package/dist/chunk-LUHU4T2F.cjs +12 -0
  72. package/dist/{chunk-4FJVSF3K.cjs.map → chunk-LUHU4T2F.cjs.map} +1 -1
  73. package/dist/{chunk-O57GYGYK.js → chunk-M6OC455F.js} +32 -18
  74. package/dist/chunk-M6OC455F.js.map +1 -0
  75. package/dist/{chunk-OYLF3IC7.js → chunk-MAQJYNJR.js} +4 -4
  76. package/dist/chunk-MAQJYNJR.js.map +1 -0
  77. package/dist/{chunk-OOS2RKRH.js → chunk-MXE2U3EX.js} +4 -4
  78. package/dist/{chunk-OOS2RKRH.js.map → chunk-MXE2U3EX.js.map} +1 -1
  79. package/dist/{chunk-TKM2WDT4.js → chunk-N2OEOGBB.js} +386 -1093
  80. package/dist/chunk-N2OEOGBB.js.map +1 -0
  81. package/dist/{chunk-EJCDOA37.js → chunk-R4JOBEJU.js} +5 -5
  82. package/dist/{chunk-EJCDOA37.js.map → chunk-R4JOBEJU.js.map} +1 -1
  83. package/dist/{chunk-FFHW2JEK.cjs → chunk-RP7YITHX.cjs} +32 -17
  84. package/dist/chunk-RP7YITHX.cjs.map +1 -0
  85. package/dist/{chunk-PYJOBZR3.cjs → chunk-SGPXKJ4A.cjs} +60 -60
  86. package/dist/chunk-SGPXKJ4A.cjs.map +1 -0
  87. package/dist/{chunk-U5ROKVRF.js → chunk-TQOYM4LN.js} +29 -3
  88. package/dist/chunk-TQOYM4LN.js.map +1 -0
  89. package/dist/{chunk-PN37HVAV.cjs → chunk-UESTHN47.cjs} +153 -71
  90. package/dist/chunk-UESTHN47.cjs.map +1 -0
  91. package/dist/chunk-VFX3LC76.cjs +183 -0
  92. package/dist/chunk-VFX3LC76.cjs.map +1 -0
  93. package/dist/chunk-WEMZM7J7.cjs +270 -0
  94. package/dist/chunk-WEMZM7J7.cjs.map +1 -0
  95. package/dist/{chunk-NYQFPGYP.cjs → chunk-WFCECD6Q.cjs} +423 -1139
  96. package/dist/chunk-WFCECD6Q.cjs.map +1 -0
  97. package/dist/{chunk-EK6RJ373.cjs → chunk-YQGLVWB2.cjs} +7 -7
  98. package/dist/{chunk-EK6RJ373.cjs.map → chunk-YQGLVWB2.cjs.map} +1 -1
  99. package/dist/{chunk-X3244EKP.cjs → chunk-ZFWNO3GE.cjs} +48 -4
  100. package/dist/chunk-ZFWNO3GE.cjs.map +1 -0
  101. package/dist/ddl-BSFlbGQF.d.cts +38 -0
  102. package/dist/ddl-EdkIiFVU.d.ts +38 -0
  103. package/dist/{extension-types-B78CZfA5.d.cts → extension-types-CwHV-Uk4.d.cts} +4 -4
  104. package/dist/{extension-types-B78CZfA5.d.ts → extension-types-CwHV-Uk4.d.ts} +4 -4
  105. package/dist/graph-extension/index.cjs +19 -19
  106. package/dist/graph-extension/index.d.cts +4 -4
  107. package/dist/graph-extension/index.d.ts +4 -4
  108. package/dist/graph-extension/index.js +4 -4
  109. package/dist/{index-CWdBFWbI.d.ts → index-DzeIiMO3.d.ts} +30 -3
  110. package/dist/{index-Bilw0pYm.d.cts → index-Ln_KHTGA.d.cts} +30 -3
  111. package/dist/index.cjs +1542 -1011
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.cts +142 -12
  114. package/dist/index.d.ts +142 -12
  115. package/dist/index.js +1138 -643
  116. package/dist/index.js.map +1 -1
  117. package/dist/indexes/index.cjs +19 -19
  118. package/dist/indexes/index.d.cts +9 -9
  119. package/dist/indexes/index.d.ts +9 -9
  120. package/dist/indexes/index.js +5 -5
  121. package/dist/interchange/index.cjs +8 -14
  122. package/dist/interchange/index.cjs.map +1 -1
  123. package/dist/interchange/index.d.cts +5 -16
  124. package/dist/interchange/index.d.ts +5 -16
  125. package/dist/interchange/index.js +3 -9
  126. package/dist/interchange/index.js.map +1 -1
  127. package/dist/{manager-ehLTTNq0.d.ts → manager-BbdyNhkv.d.ts} +2 -2
  128. package/dist/{manager-c1MGaVVR.d.cts → manager-wTDgjoXG.d.cts} +2 -2
  129. package/dist/{materialize-indexes-DFavFQah.d.ts → materialize-indexes-lkawaDor.d.ts} +1 -1
  130. package/dist/{materialize-indexes-BQfaAZKA.d.cts → materialize-indexes-oanE3RU0.d.cts} +1 -1
  131. package/dist/{ddl-0Ooc2dpL.d.ts → postgres-CK2ByP1q.d.cts} +2 -471
  132. package/dist/{ddl-Dza3kDrI.d.cts → postgres-ymXYC6Rr.d.ts} +2 -471
  133. package/dist/profiler/index.cjs +10 -10
  134. package/dist/profiler/index.d.cts +7 -7
  135. package/dist/profiler/index.d.ts +7 -7
  136. package/dist/profiler/index.js +3 -3
  137. package/dist/schema/index.cjs +33 -33
  138. package/dist/schema/index.d.cts +7 -7
  139. package/dist/schema/index.d.ts +7 -7
  140. package/dist/schema/index.js +10 -10
  141. package/dist/{sqlite-BxZUPbyD.d.ts → sqlite-DxH1lrwD.d.cts} +2 -468
  142. package/dist/{sqlite-mvpXjEeB.d.cts → sqlite-R8YGOqVQ.d.ts} +2 -468
  143. package/dist/{store-Ufc1Eoey.d.ts → store--z1Tmk7U.d.cts} +124 -5
  144. package/dist/{store-D7YEMg2v.d.cts → store-CNKM334w.d.ts} +124 -5
  145. package/dist/{types-CMQymcwk.d.cts → types-BBiDqJCU.d.ts} +252 -46
  146. package/dist/{types-B-sJJ4GQ.d.ts → types-CMvxx2kd.d.ts} +2 -2
  147. package/dist/{types-CmUA9sal.d.cts → types-D5B6Be5c.d.cts} +2 -2
  148. package/dist/{types-CQ7xXJMP.d.ts → types-dL-clxO3.d.cts} +252 -46
  149. package/dist/{where-CtrLu1Zf.d.ts → where-CAo6wsBZ.d.ts} +2 -2
  150. package/dist/{where-5zf15aFZ.d.cts → where-bJjuOCeV.d.cts} +2 -2
  151. package/package.json +20 -5
  152. package/dist/chunk-3EUKJEQ3.js +0 -77
  153. package/dist/chunk-3EUKJEQ3.js.map +0 -1
  154. package/dist/chunk-4FJVSF3K.cjs +0 -12
  155. package/dist/chunk-7V335GHG.cjs.map +0 -1
  156. package/dist/chunk-FFHW2JEK.cjs.map +0 -1
  157. package/dist/chunk-HTGDWIDE.cjs +0 -89
  158. package/dist/chunk-HTGDWIDE.cjs.map +0 -1
  159. package/dist/chunk-LYRUNG6E.cjs +0 -52
  160. package/dist/chunk-LYRUNG6E.cjs.map +0 -1
  161. package/dist/chunk-NMOE2ZEU.cjs.map +0 -1
  162. package/dist/chunk-NYQFPGYP.cjs.map +0 -1
  163. package/dist/chunk-NZ5PMBTG.js.map +0 -1
  164. package/dist/chunk-O57GYGYK.js.map +0 -1
  165. package/dist/chunk-OYLF3IC7.js.map +0 -1
  166. package/dist/chunk-PCHTTG42.js +0 -47
  167. package/dist/chunk-PCHTTG42.js.map +0 -1
  168. package/dist/chunk-PGU2XKMA.js.map +0 -1
  169. package/dist/chunk-PN37HVAV.cjs.map +0 -1
  170. package/dist/chunk-PYJOBZR3.cjs.map +0 -1
  171. package/dist/chunk-TKM2WDT4.js.map +0 -1
  172. package/dist/chunk-TSGBRPNE.js.map +0 -1
  173. package/dist/chunk-U5ROKVRF.js.map +0 -1
  174. package/dist/chunk-WFUN6DCM.cjs.map +0 -1
  175. package/dist/chunk-WVQXAFP3.js.map +0 -1
  176. package/dist/chunk-X3244EKP.cjs.map +0 -1
  177. package/dist/chunk-YEDQLNVE.cjs.map +0 -1
  178. package/dist/chunk-ZTREJOGB.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-CQ7xXJMP.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-ehLTTNq0.js';
4
- import { A as AnyEdgeType, N as NodeType, T as TemporalMode, e as EdgeType, E as EdgeRegistration, h as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, k as EndpointExistence, d as KindAnnotations, o as UniquenessScope, g as Collation, G as GraphExtension } from './extension-types-B78CZfA5.js';
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-dL-clxO3.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-wTDgjoXG.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';
5
5
  import { SQL } from 'drizzle-orm';
6
- import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-DFavFQah.js';
6
+ import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-oanE3RU0.cjs';
7
7
 
8
8
  /**
9
9
  * Embedding type for vector search.
@@ -239,6 +239,25 @@ type CompileQueryOptions = Readonly<{
239
239
  * default (tsvector).
240
240
  */
241
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
+ * Whether the active backend supports SQL window functions such as
252
+ * `ROW_NUMBER()`. Defaults to true for direct compiler callers.
253
+ */
254
+ windowFunctions?: boolean | undefined;
255
+ /**
256
+ * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
257
+ * the `field.similarTo(...)` CTE to know which kinds in an alias
258
+ * declare the field. Callers build it from the graph's node schemas.
259
+ */
260
+ vectorSlots?: VectorSlotMap | undefined;
242
261
  }>;
243
262
 
244
263
  type FieldTypeInfo = Readonly<{
@@ -1173,6 +1192,19 @@ type NodeGetOrCreateByConstraintOptions = Readonly<{
1173
1192
  /** Existing record behavior. Default: "return" */
1174
1193
  ifExists?: IfExistsMode;
1175
1194
  }>;
1195
+ /**
1196
+ * Options for node bulkFindByIndex operations.
1197
+ */
1198
+ type NodeBulkFindByIndexOptions = Readonly<{
1199
+ /**
1200
+ * Maximum number of candidate nodes returned per input item. When omitted,
1201
+ * each input's candidate set is unbounded. Must be a positive integer.
1202
+ *
1203
+ * Candidates are ordered deterministically by node id, so the cap is stable
1204
+ * across calls. Use this to bound fan-out on low-selectivity index keys.
1205
+ */
1206
+ limitPerInput?: number;
1207
+ }>;
1176
1208
  /**
1177
1209
  * Result of an edge getOrCreateByEndpoints operation.
1178
1210
  */
@@ -1349,6 +1381,28 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
1349
1381
  bulkFindByConstraint: (constraintName: CN, items: readonly Readonly<{
1350
1382
  props: z.input<N["schema"]>;
1351
1383
  }>[]) => Promise<(Node<N> | undefined)[]>;
1384
+ /**
1385
+ * Batched candidate retrieval against a declared node index.
1386
+ *
1387
+ * For each input item, TypeGraph computes the index lookup key from
1388
+ * `index.fields` (JSON-pointer extraction, partial-`where` applied to
1389
+ * stored rows, null-safe matching) and returns the live, non-soft-deleted
1390
+ * nodes that share that key. Unlike {@link bulkFindByConstraint}, the index
1391
+ * may be non-unique, so each input yields a (possibly empty) array.
1392
+ *
1393
+ * Results preserve input order; each inner array is ordered by node id.
1394
+ * Empty input returns `[]`. An unknown index name throws
1395
+ * `NodeIndexNotFoundError`; a type-incompatible indexed field throws
1396
+ * `ValidationError`. This is candidate retrieval, not a uniqueness or
1397
+ * identity guarantee.
1398
+ *
1399
+ * @param indexName - Name of the declared node index to match on
1400
+ * @param items - Records whose `props` supply the indexed-field values
1401
+ * @param options - Optional `limitPerInput` to bound per-input fan-out
1402
+ */
1403
+ bulkFindByIndex: (indexName: string, items: readonly Readonly<{
1404
+ props: Partial<z.input<N["schema"]>>;
1405
+ }>[], options?: NodeBulkFindByIndexOptions) => Promise<readonly Node<N>[][]>;
1352
1406
  /**
1353
1407
  * Get an existing node by uniqueness constraint, or create a new one.
1354
1408
  *
@@ -1920,8 +1974,29 @@ type MaterializeRemovalsEntry = Readonly<{
1920
1974
  status: "removed" | "failed";
1921
1975
  error?: Error;
1922
1976
  }>;
1977
+ /**
1978
+ * Outcome of reclaiming one per-`(graphId, kind, field)` vector table that
1979
+ * was orphaned when its embedding field was dropped from a *surviving*
1980
+ * kind's schema. Distinct from {@link MaterializeRemovalsEntry} (whole
1981
+ * kinds) because the unit is a single embedding field, not a kind.
1982
+ */
1983
+ type ReclaimedVectorFieldEntry = Readonly<{
1984
+ kind: string;
1985
+ fieldPath: string;
1986
+ status: "reclaimed" | "failed";
1987
+ error?: Error;
1988
+ }>;
1923
1989
  type MaterializeRemovalsResult = Readonly<{
1924
1990
  results: readonly MaterializeRemovalsEntry[];
1991
+ /**
1992
+ * Embedding fields removed from a *surviving* kind whose per-field vector
1993
+ * table this pass dropped (or confirmed already absent). Empty when the
1994
+ * backend has no vector strategy or no embedding field has ever been
1995
+ * dropped. Re-derived from immutable schema history each call, so it lists
1996
+ * the same removed fields on repeat passes — the underlying drop is
1997
+ * idempotent (`DROP ... IF EXISTS`). See {@link reclaimRemovedVectorFieldTables}.
1998
+ */
1999
+ reclaimedVectorFields: readonly ReclaimedVectorFieldEntry[];
1925
2000
  }>;
1926
2001
 
1927
2002
  /**
@@ -3147,6 +3222,32 @@ type StoreSchemaMetadata = Readonly<{
3147
3222
  * .execute();
3148
3223
  * ```
3149
3224
  */
3225
+ /**
3226
+ * Optional embedder for {@link Store.reembedVectorField}. Receives a batch of
3227
+ * the kind's nodes and returns a map of `nodeId → new embedding vector` (omit
3228
+ * an id to leave that node without an embedding). Called once per page; the
3229
+ * page size is `batchSize`.
3230
+ */
3231
+ type ReembedFunction = (nodes: readonly Node[]) => Promise<ReadonlyMap<string, readonly number[]>> | ReadonlyMap<string, readonly number[]>;
3232
+ /** Options for {@link Store.reembedVectorField}. */
3233
+ type ReembedVectorFieldOptions = Readonly<{
3234
+ /**
3235
+ * When supplied, drives a batched re-embed loop after recreating storage:
3236
+ * pages the kind's nodes, calls `embed(batch)`, and upserts the returned
3237
+ * vectors. When omitted, storage is recreated empty and the caller
3238
+ * re-embeds via normal `update()` / `upsertEmbedding` writes.
3239
+ */
3240
+ embed?: ReembedFunction;
3241
+ /** Re-embed page size. Default 200. */
3242
+ batchSize?: number;
3243
+ }>;
3244
+ /** Result of {@link Store.reembedVectorField}. */
3245
+ type ReembedVectorFieldResult = Readonly<{
3246
+ /** Whether the per-field storage was dropped and recreated. */
3247
+ recreated: boolean;
3248
+ /** Number of nodes whose embedding was re-written (0 without `embed`). */
3249
+ reembedded: number;
3250
+ }>;
3150
3251
  declare class Store<G extends GraphDef> {
3151
3252
  #private;
3152
3253
  constructor(graph: G, backend: GraphBackend, options?: StoreOptions, schemaMetadata?: StoreSchemaMetadata);
@@ -3680,6 +3781,24 @@ declare class Store<G extends GraphDef> {
3680
3781
  * has no schema yet.
3681
3782
  */
3682
3783
  materializeIndexes(options?: MaterializeIndexesOptions): Promise<MaterializeIndexesResult>;
3784
+ /**
3785
+ * Recreate a vector field's per-field storage at its current declared
3786
+ * dimension, then optionally re-embed existing rows.
3787
+ *
3788
+ * Use this after changing a field's `embedding(N)` to `embedding(M)` (e.g. a
3789
+ * new embedding model): the stored N-dim vectors are invalid under the new
3790
+ * dimension and must be recomputed, not converted. This drops and recreates
3791
+ * the per-`(graphId, kind, field)` table at the new dimension — a brief
3792
+ * window where the field returns no vector hits — resets its materialization
3793
+ * marker, then, when `options.embed` is supplied, pages the kind's nodes,
3794
+ * calls `embed(batch)`, and upserts the returned vectors. Without `embed`,
3795
+ * storage is recreated empty and the caller re-embeds via normal
3796
+ * `update()` / `upsertEmbedding` writes.
3797
+ *
3798
+ * @throws {ConfigurationError} when the backend has no vector strategy or
3799
+ * cannot execute DDL, or `(kind, fieldPath)` is not a declared embedding.
3800
+ */
3801
+ reembedVectorField(kind: string, fieldPath: string, options?: ReembedVectorFieldOptions): Promise<ReembedVectorFieldResult>;
3683
3802
  /**
3684
3803
  * Removes extension kinds from the schema with cascading edge and
3685
3804
  * ontology cleanup. Two-phase by design:
@@ -3833,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
3833
3952
  */
3834
3953
  declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
3835
3954
 
3836
- export { type MaterializeRemovalsOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EdgeAliasMap as E, type EmbeddingSchema as F, type EmbeddingValue as G, ExecutableAggregateQuery as H, ExecutableQuery as I, type FieldAccessor as J, type FulltextSearchHit as K, type FulltextSearchOptions as L, type GetOrCreateAction as M, type GraphAlgorithms as N, type GraphEdgeCollections as O, type GraphNodeCollections as P, QueryBuilder as Q, type HookContext as R, Store as S, TraversalBuilder as T, type HybridFulltextOptions as U, type HybridSearchHit as V, type HybridSearchOptions as W, type HybridVectorOptions as X, type IfExistsMode as Y, type KindIntrospection as Z, type MaterializeRemovalsEntry as _, type AggregateResult as a, getEmbeddingDimensions as a$, type MaterializeRemovalsResult as a0, type NeighborsOptions as a1, type Node as a2, type NodeAccessor as a3, type NodeAlias as a4, type NodeCollection as a5, type NodeGetOrCreateByConstraintOptions as a6, type NodeGetOrCreateByConstraintResult as a7, type NodeIdentifier as a8, type NodeRef as a9, type StoreProjection as aA, type StoreRef as aB, StoreSearch as aC, type StreamOptions as aD, type SubgraphEdgeResult as aE, type SubgraphNodeResult as aF, type SubgraphOptions as aG, type SubgraphResult as aH, type SubsetEdge as aI, type SubsetNode as aJ, type TemporalAlgorithmOptions as aK, type TransactionContext as aL, type TraversalDirection as aM, type TypedEdgeCollection as aN, UnionableQuery as aO, type UniqueIntrospection as aP, type UpdateEdgeInput as aQ, type UpdateNodeInput as aR, type VectorSearchHit as aS, type VectorSearchOptions as aT, createStore as aU, createStoreWithSchema as aV, createVerifiedStore as aW, defineSubgraphProject as aX, embedding as aY, exists as aZ, fieldRef as a_, type OntologyIntrospection as aa, type OperationHookContext as ab, type PaginateOptions as ac, type PaginatedResult as ad, type PathNode as ae, type Predicate as af, PreparedQuery as ag, type PropsAccessor as ah, type QueryHookContext as ai, type QueryOptions as aj, type ReachableNode as ak, type ReachableOptions as al, type RebuildFulltextOptions as am, type RebuildFulltextResult as an, type RecursiveTraversalOptions as ao, type SchemaIntrospection as ap, type SearchableMetadata as aq, type SearchableOptions as ar, type SearchableSchema as as, type SelectContext as at, type SelectableEdge as au, type SelectableNode as av, type ShortestPathOptions as aw, type ShortestPathResult as ax, type StoreHooks as ay, type StoreOptions as az, type AlgorithmCyclePolicy as b, getSearchableMetadata as b0, inSubquery as b1, isEmbeddingSchema as b2, isParameterRef as b3, isSearchableSchema as b4, notExists as b5, notInSubquery as b6, param as b7, searchable as b8, type AnyEdge as c, type AnyNode as d, type BatchResults as e, type BatchableQuery as f, type ConstraintNames as g, type CreateEdgeInput as h, type CreateNodeInput as i, type DegreeOptions as j, type DynamicEdgeAccessor as k, type DynamicEdgeCollection as l, type DynamicEdgeType as m, type DynamicFieldBuilder as n, type DynamicNodeAccessor as o, type DynamicNodeCollection as p, type DynamicNodeType as q, type DynamicSelectableEdge as r, type DynamicSelectableNode as s, type Edge as t, type EdgeAccessor as u, type EdgeCollection as v, type EdgeFindByEndpointsOptions as w, type EdgeGetOrCreateByEndpointsOptions as x, type EdgeGetOrCreateByEndpointsResult as y, type EdgeIntrospection as z };
3955
+ 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, createStore 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 NodeBulkFindByIndexOptions as a7, type NodeCollection as a8, type NodeGetOrCreateByConstraintOptions as a9, type SelectContext as aA, type SelectableEdge as aB, type SelectableNode as aC, type ShortestPathOptions as aD, type ShortestPathResult as aE, type StoreHooks as aF, type StoreOptions as aG, type StoreProjection as aH, type StoreRef as aI, StoreSearch as aJ, type StreamOptions as aK, type SubgraphEdgeResult as aL, type SubgraphNodeResult as aM, type SubgraphOptions as aN, type SubgraphResult as aO, type SubsetEdge as aP, type SubsetNode as aQ, type TemporalAlgorithmOptions as aR, type TransactionContext as aS, type TraversalDirection as aT, type TypedEdgeCollection as aU, UnionableQuery as aV, type UniqueIntrospection as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintResult as aa, type NodeIdentifier as ab, type NodeRef as ac, type OntologyIntrospection as ad, type OperationHookContext as ae, type PaginateOptions as af, type PaginatedResult as ag, type PathNode as ah, type Predicate as ai, PreparedQuery as aj, type PropsAccessor as ak, type QueryHookContext as al, type QueryOptions as am, type ReachableNode as an, type ReachableOptions as ao, type RebuildFulltextOptions as ap, type RebuildFulltextResult as aq, type ReclaimedVectorFieldEntry as ar, type RecursiveTraversalOptions as as, type ReembedFunction as at, type ReembedVectorFieldOptions as au, type ReembedVectorFieldResult as av, type SchemaIntrospection as aw, type SearchableMetadata as ax, type SearchableOptions as ay, type SearchableSchema 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, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-CMQymcwk.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-c1MGaVVR.cjs';
4
- import { A as AnyEdgeType, N as NodeType, T as TemporalMode, e as EdgeType, E as EdgeRegistration, h as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, k as EndpointExistence, d as KindAnnotations, o as UniquenessScope, g as Collation, G as GraphExtension } from './extension-types-B78CZfA5.cjs';
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-BBiDqJCU.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-BbdyNhkv.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';
5
5
  import { SQL } from 'drizzle-orm';
6
- import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BQfaAZKA.cjs';
6
+ import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-lkawaDor.js';
7
7
 
8
8
  /**
9
9
  * Embedding type for vector search.
@@ -239,6 +239,25 @@ type CompileQueryOptions = Readonly<{
239
239
  * default (tsvector).
240
240
  */
241
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
+ * Whether the active backend supports SQL window functions such as
252
+ * `ROW_NUMBER()`. Defaults to true for direct compiler callers.
253
+ */
254
+ windowFunctions?: boolean | undefined;
255
+ /**
256
+ * Declared embedding slots `(kind, fieldPath) -> descriptor` used by
257
+ * the `field.similarTo(...)` CTE to know which kinds in an alias
258
+ * declare the field. Callers build it from the graph's node schemas.
259
+ */
260
+ vectorSlots?: VectorSlotMap | undefined;
242
261
  }>;
243
262
 
244
263
  type FieldTypeInfo = Readonly<{
@@ -1173,6 +1192,19 @@ type NodeGetOrCreateByConstraintOptions = Readonly<{
1173
1192
  /** Existing record behavior. Default: "return" */
1174
1193
  ifExists?: IfExistsMode;
1175
1194
  }>;
1195
+ /**
1196
+ * Options for node bulkFindByIndex operations.
1197
+ */
1198
+ type NodeBulkFindByIndexOptions = Readonly<{
1199
+ /**
1200
+ * Maximum number of candidate nodes returned per input item. When omitted,
1201
+ * each input's candidate set is unbounded. Must be a positive integer.
1202
+ *
1203
+ * Candidates are ordered deterministically by node id, so the cap is stable
1204
+ * across calls. Use this to bound fan-out on low-selectivity index keys.
1205
+ */
1206
+ limitPerInput?: number;
1207
+ }>;
1176
1208
  /**
1177
1209
  * Result of an edge getOrCreateByEndpoints operation.
1178
1210
  */
@@ -1349,6 +1381,28 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
1349
1381
  bulkFindByConstraint: (constraintName: CN, items: readonly Readonly<{
1350
1382
  props: z.input<N["schema"]>;
1351
1383
  }>[]) => Promise<(Node<N> | undefined)[]>;
1384
+ /**
1385
+ * Batched candidate retrieval against a declared node index.
1386
+ *
1387
+ * For each input item, TypeGraph computes the index lookup key from
1388
+ * `index.fields` (JSON-pointer extraction, partial-`where` applied to
1389
+ * stored rows, null-safe matching) and returns the live, non-soft-deleted
1390
+ * nodes that share that key. Unlike {@link bulkFindByConstraint}, the index
1391
+ * may be non-unique, so each input yields a (possibly empty) array.
1392
+ *
1393
+ * Results preserve input order; each inner array is ordered by node id.
1394
+ * Empty input returns `[]`. An unknown index name throws
1395
+ * `NodeIndexNotFoundError`; a type-incompatible indexed field throws
1396
+ * `ValidationError`. This is candidate retrieval, not a uniqueness or
1397
+ * identity guarantee.
1398
+ *
1399
+ * @param indexName - Name of the declared node index to match on
1400
+ * @param items - Records whose `props` supply the indexed-field values
1401
+ * @param options - Optional `limitPerInput` to bound per-input fan-out
1402
+ */
1403
+ bulkFindByIndex: (indexName: string, items: readonly Readonly<{
1404
+ props: Partial<z.input<N["schema"]>>;
1405
+ }>[], options?: NodeBulkFindByIndexOptions) => Promise<readonly Node<N>[][]>;
1352
1406
  /**
1353
1407
  * Get an existing node by uniqueness constraint, or create a new one.
1354
1408
  *
@@ -1920,8 +1974,29 @@ type MaterializeRemovalsEntry = Readonly<{
1920
1974
  status: "removed" | "failed";
1921
1975
  error?: Error;
1922
1976
  }>;
1977
+ /**
1978
+ * Outcome of reclaiming one per-`(graphId, kind, field)` vector table that
1979
+ * was orphaned when its embedding field was dropped from a *surviving*
1980
+ * kind's schema. Distinct from {@link MaterializeRemovalsEntry} (whole
1981
+ * kinds) because the unit is a single embedding field, not a kind.
1982
+ */
1983
+ type ReclaimedVectorFieldEntry = Readonly<{
1984
+ kind: string;
1985
+ fieldPath: string;
1986
+ status: "reclaimed" | "failed";
1987
+ error?: Error;
1988
+ }>;
1923
1989
  type MaterializeRemovalsResult = Readonly<{
1924
1990
  results: readonly MaterializeRemovalsEntry[];
1991
+ /**
1992
+ * Embedding fields removed from a *surviving* kind whose per-field vector
1993
+ * table this pass dropped (or confirmed already absent). Empty when the
1994
+ * backend has no vector strategy or no embedding field has ever been
1995
+ * dropped. Re-derived from immutable schema history each call, so it lists
1996
+ * the same removed fields on repeat passes — the underlying drop is
1997
+ * idempotent (`DROP ... IF EXISTS`). See {@link reclaimRemovedVectorFieldTables}.
1998
+ */
1999
+ reclaimedVectorFields: readonly ReclaimedVectorFieldEntry[];
1925
2000
  }>;
1926
2001
 
1927
2002
  /**
@@ -3147,6 +3222,32 @@ type StoreSchemaMetadata = Readonly<{
3147
3222
  * .execute();
3148
3223
  * ```
3149
3224
  */
3225
+ /**
3226
+ * Optional embedder for {@link Store.reembedVectorField}. Receives a batch of
3227
+ * the kind's nodes and returns a map of `nodeId → new embedding vector` (omit
3228
+ * an id to leave that node without an embedding). Called once per page; the
3229
+ * page size is `batchSize`.
3230
+ */
3231
+ type ReembedFunction = (nodes: readonly Node[]) => Promise<ReadonlyMap<string, readonly number[]>> | ReadonlyMap<string, readonly number[]>;
3232
+ /** Options for {@link Store.reembedVectorField}. */
3233
+ type ReembedVectorFieldOptions = Readonly<{
3234
+ /**
3235
+ * When supplied, drives a batched re-embed loop after recreating storage:
3236
+ * pages the kind's nodes, calls `embed(batch)`, and upserts the returned
3237
+ * vectors. When omitted, storage is recreated empty and the caller
3238
+ * re-embeds via normal `update()` / `upsertEmbedding` writes.
3239
+ */
3240
+ embed?: ReembedFunction;
3241
+ /** Re-embed page size. Default 200. */
3242
+ batchSize?: number;
3243
+ }>;
3244
+ /** Result of {@link Store.reembedVectorField}. */
3245
+ type ReembedVectorFieldResult = Readonly<{
3246
+ /** Whether the per-field storage was dropped and recreated. */
3247
+ recreated: boolean;
3248
+ /** Number of nodes whose embedding was re-written (0 without `embed`). */
3249
+ reembedded: number;
3250
+ }>;
3150
3251
  declare class Store<G extends GraphDef> {
3151
3252
  #private;
3152
3253
  constructor(graph: G, backend: GraphBackend, options?: StoreOptions, schemaMetadata?: StoreSchemaMetadata);
@@ -3680,6 +3781,24 @@ declare class Store<G extends GraphDef> {
3680
3781
  * has no schema yet.
3681
3782
  */
3682
3783
  materializeIndexes(options?: MaterializeIndexesOptions): Promise<MaterializeIndexesResult>;
3784
+ /**
3785
+ * Recreate a vector field's per-field storage at its current declared
3786
+ * dimension, then optionally re-embed existing rows.
3787
+ *
3788
+ * Use this after changing a field's `embedding(N)` to `embedding(M)` (e.g. a
3789
+ * new embedding model): the stored N-dim vectors are invalid under the new
3790
+ * dimension and must be recomputed, not converted. This drops and recreates
3791
+ * the per-`(graphId, kind, field)` table at the new dimension — a brief
3792
+ * window where the field returns no vector hits — resets its materialization
3793
+ * marker, then, when `options.embed` is supplied, pages the kind's nodes,
3794
+ * calls `embed(batch)`, and upserts the returned vectors. Without `embed`,
3795
+ * storage is recreated empty and the caller re-embeds via normal
3796
+ * `update()` / `upsertEmbedding` writes.
3797
+ *
3798
+ * @throws {ConfigurationError} when the backend has no vector strategy or
3799
+ * cannot execute DDL, or `(kind, fieldPath)` is not a declared embedding.
3800
+ */
3801
+ reembedVectorField(kind: string, fieldPath: string, options?: ReembedVectorFieldOptions): Promise<ReembedVectorFieldResult>;
3683
3802
  /**
3684
3803
  * Removes extension kinds from the schema with cascading edge and
3685
3804
  * ontology cleanup. Two-phase by design:
@@ -3833,4 +3952,4 @@ declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: Gr
3833
3952
  */
3834
3953
  declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
3835
3954
 
3836
- export { type MaterializeRemovalsOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EdgeAliasMap as E, type EmbeddingSchema as F, type EmbeddingValue as G, ExecutableAggregateQuery as H, ExecutableQuery as I, type FieldAccessor as J, type FulltextSearchHit as K, type FulltextSearchOptions as L, type GetOrCreateAction as M, type GraphAlgorithms as N, type GraphEdgeCollections as O, type GraphNodeCollections as P, QueryBuilder as Q, type HookContext as R, Store as S, TraversalBuilder as T, type HybridFulltextOptions as U, type HybridSearchHit as V, type HybridSearchOptions as W, type HybridVectorOptions as X, type IfExistsMode as Y, type KindIntrospection as Z, type MaterializeRemovalsEntry as _, type AggregateResult as a, getEmbeddingDimensions as a$, type MaterializeRemovalsResult as a0, type NeighborsOptions as a1, type Node as a2, type NodeAccessor as a3, type NodeAlias as a4, type NodeCollection as a5, type NodeGetOrCreateByConstraintOptions as a6, type NodeGetOrCreateByConstraintResult as a7, type NodeIdentifier as a8, type NodeRef as a9, type StoreProjection as aA, type StoreRef as aB, StoreSearch as aC, type StreamOptions as aD, type SubgraphEdgeResult as aE, type SubgraphNodeResult as aF, type SubgraphOptions as aG, type SubgraphResult as aH, type SubsetEdge as aI, type SubsetNode as aJ, type TemporalAlgorithmOptions as aK, type TransactionContext as aL, type TraversalDirection as aM, type TypedEdgeCollection as aN, UnionableQuery as aO, type UniqueIntrospection as aP, type UpdateEdgeInput as aQ, type UpdateNodeInput as aR, type VectorSearchHit as aS, type VectorSearchOptions as aT, createStore as aU, createStoreWithSchema as aV, createVerifiedStore as aW, defineSubgraphProject as aX, embedding as aY, exists as aZ, fieldRef as a_, type OntologyIntrospection as aa, type OperationHookContext as ab, type PaginateOptions as ac, type PaginatedResult as ad, type PathNode as ae, type Predicate as af, PreparedQuery as ag, type PropsAccessor as ah, type QueryHookContext as ai, type QueryOptions as aj, type ReachableNode as ak, type ReachableOptions as al, type RebuildFulltextOptions as am, type RebuildFulltextResult as an, type RecursiveTraversalOptions as ao, type SchemaIntrospection as ap, type SearchableMetadata as aq, type SearchableOptions as ar, type SearchableSchema as as, type SelectContext as at, type SelectableEdge as au, type SelectableNode as av, type ShortestPathOptions as aw, type ShortestPathResult as ax, type StoreHooks as ay, type StoreOptions as az, type AlgorithmCyclePolicy as b, getSearchableMetadata as b0, inSubquery as b1, isEmbeddingSchema as b2, isParameterRef as b3, isSearchableSchema as b4, notExists as b5, notInSubquery as b6, param as b7, searchable as b8, type AnyEdge as c, type AnyNode as d, type BatchResults as e, type BatchableQuery as f, type ConstraintNames as g, type CreateEdgeInput as h, type CreateNodeInput as i, type DegreeOptions as j, type DynamicEdgeAccessor as k, type DynamicEdgeCollection as l, type DynamicEdgeType as m, type DynamicFieldBuilder as n, type DynamicNodeAccessor as o, type DynamicNodeCollection as p, type DynamicNodeType as q, type DynamicSelectableEdge as r, type DynamicSelectableNode as s, type Edge as t, type EdgeAccessor as u, type EdgeCollection as v, type EdgeFindByEndpointsOptions as w, type EdgeGetOrCreateByEndpointsOptions as x, type EdgeGetOrCreateByEndpointsResult as y, type EdgeIntrospection as z };
3955
+ 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, createStore 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 NodeBulkFindByIndexOptions as a7, type NodeCollection as a8, type NodeGetOrCreateByConstraintOptions as a9, type SelectContext as aA, type SelectableEdge as aB, type SelectableNode as aC, type ShortestPathOptions as aD, type ShortestPathResult as aE, type StoreHooks as aF, type StoreOptions as aG, type StoreProjection as aH, type StoreRef as aI, StoreSearch as aJ, type StreamOptions as aK, type SubgraphEdgeResult as aL, type SubgraphNodeResult as aM, type SubgraphOptions as aN, type SubgraphResult as aO, type SubsetEdge as aP, type SubsetNode as aQ, type TemporalAlgorithmOptions as aR, type TransactionContext as aS, type TraversalDirection as aT, type TypedEdgeCollection as aU, UnionableQuery as aV, type UniqueIntrospection as aW, type UpdateEdgeInput as aX, type UpdateNodeInput as aY, type VectorSearchHit as aZ, type VectorSearchOptions as a_, type NodeGetOrCreateByConstraintResult as aa, type NodeIdentifier as ab, type NodeRef as ac, type OntologyIntrospection as ad, type OperationHookContext as ae, type PaginateOptions as af, type PaginatedResult as ag, type PathNode as ah, type Predicate as ai, PreparedQuery as aj, type PropsAccessor as ak, type QueryHookContext as al, type QueryOptions as am, type ReachableNode as an, type ReachableOptions as ao, type RebuildFulltextOptions as ap, type RebuildFulltextResult as aq, type ReclaimedVectorFieldEntry as ar, type RecursiveTraversalOptions as as, type ReembedFunction as at, type ReembedVectorFieldOptions as au, type ReembedVectorFieldResult as av, type SchemaIntrospection as aw, type SearchableMetadata as ax, type SearchableOptions as ay, type SearchableSchema 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 };