@nicia-ai/typegraph 0.25.0 → 0.25.1

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 (69) hide show
  1. package/dist/backend/postgres/index.cjs +92 -44
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +4 -4
  4. package/dist/backend/postgres/index.d.ts +4 -4
  5. package/dist/backend/postgres/index.js +47 -3
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/sqlite/index.cjs +13 -13
  8. package/dist/backend/sqlite/index.d.cts +4 -4
  9. package/dist/backend/sqlite/index.d.ts +4 -4
  10. package/dist/backend/sqlite/index.js +3 -3
  11. package/dist/backend/sqlite/libsql.cjs +6 -6
  12. package/dist/backend/sqlite/libsql.d.cts +2 -2
  13. package/dist/backend/sqlite/libsql.d.ts +2 -2
  14. package/dist/backend/sqlite/libsql.js +3 -3
  15. package/dist/backend/sqlite/local.cjs +7 -7
  16. package/dist/backend/sqlite/local.d.cts +2 -2
  17. package/dist/backend/sqlite/local.d.ts +2 -2
  18. package/dist/backend/sqlite/local.js +3 -3
  19. package/dist/{chunk-LVCSL6A3.js → chunk-AAA2CR3P.js} +5 -3
  20. package/dist/chunk-AAA2CR3P.js.map +1 -0
  21. package/dist/{chunk-OJ6IQVZG.js → chunk-CLEUFN2K.js} +48 -4
  22. package/dist/chunk-CLEUFN2K.js.map +1 -0
  23. package/dist/{chunk-ZEMNF3QK.cjs → chunk-CLGC7AQ2.cjs} +78 -34
  24. package/dist/chunk-CLGC7AQ2.cjs.map +1 -0
  25. package/dist/{chunk-FPCOUJSL.js → chunk-CPFR3O7L.js} +2 -2
  26. package/dist/{chunk-FPCOUJSL.js.map → chunk-CPFR3O7L.js.map} +1 -1
  27. package/dist/{chunk-O2P3KAUT.cjs → chunk-CQVNGKU7.cjs} +39 -14
  28. package/dist/chunk-CQVNGKU7.cjs.map +1 -0
  29. package/dist/{chunk-7CDXX3QZ.cjs → chunk-OECDVACY.cjs} +2 -2
  30. package/dist/{chunk-7CDXX3QZ.cjs.map → chunk-OECDVACY.cjs.map} +1 -1
  31. package/dist/{chunk-WI5VRP3X.js → chunk-PSKUWVCB.js} +39 -15
  32. package/dist/chunk-PSKUWVCB.js.map +1 -0
  33. package/dist/{chunk-7W3KAMVQ.cjs → chunk-QMQYK3IF.cjs} +5 -3
  34. package/dist/chunk-QMQYK3IF.cjs.map +1 -0
  35. package/dist/{ddl-DpaeAKPp.d.ts → ddl-BqMmpNor.d.ts} +403 -21
  36. package/dist/{ddl-B2jjLjpR.d.cts → ddl-Bwjh8Hff.d.cts} +403 -21
  37. package/dist/index.cjs +65 -65
  38. package/dist/index.d.cts +7 -7
  39. package/dist/index.d.ts +7 -7
  40. package/dist/index.js +3 -3
  41. package/dist/indexes/index.d.cts +4 -4
  42. package/dist/indexes/index.d.ts +4 -4
  43. package/dist/interchange/index.d.cts +3 -3
  44. package/dist/interchange/index.d.ts +3 -3
  45. package/dist/{manager-BpjBW1JK.d.cts → manager-Cy3dhwYO.d.cts} +7 -2
  46. package/dist/{manager-BKaPQbns.d.ts → manager-sZkU2VPC.d.ts} +7 -2
  47. package/dist/profiler/index.d.cts +5 -5
  48. package/dist/profiler/index.d.ts +5 -5
  49. package/dist/schema/index.cjs +24 -24
  50. package/dist/schema/index.d.cts +4 -4
  51. package/dist/schema/index.d.ts +4 -4
  52. package/dist/schema/index.js +2 -2
  53. package/dist/{sqlite-Myo8e3Lr.d.cts → sqlite-BhFswiAR.d.cts} +1 -1
  54. package/dist/{sqlite-CU3j6rc7.d.ts → sqlite-h6dta1IJ.d.ts} +1 -1
  55. package/dist/{store-De98Lod4.d.ts → store-BS_hehiz.d.ts} +2 -2
  56. package/dist/{store-BAGuOHDh.d.cts → store-CkCvqRUf.d.cts} +2 -2
  57. package/dist/{types-CYga3lZp.d.cts → types-BpgACExN.d.cts} +1 -1
  58. package/dist/{types-BLmJq4wI.d.ts → types-Bz-Pi681.d.ts} +1 -1
  59. package/dist/{types-BNWYZ-0-.d.ts → types-DptZHe-l.d.ts} +9 -0
  60. package/dist/{types--0EslBx5.d.cts → types-WF5ItKQu.d.cts} +9 -0
  61. package/dist/{where-CluR73rs.d.ts → where-C40InMIp.d.ts} +1 -1
  62. package/dist/{where-m1uWsdua.d.cts → where-DZYMiXVq.d.cts} +1 -1
  63. package/package.json +1 -1
  64. package/dist/chunk-7W3KAMVQ.cjs.map +0 -1
  65. package/dist/chunk-LVCSL6A3.js.map +0 -1
  66. package/dist/chunk-O2P3KAUT.cjs.map +0 -1
  67. package/dist/chunk-OJ6IQVZG.js.map +0 -1
  68. package/dist/chunk-WI5VRP3X.js.map +0 -1
  69. package/dist/chunk-ZEMNF3QK.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHTGDWIDE_cjs = require('./chunk-HTGDWIDE.cjs');
4
- var chunk7W3KAMVQ_cjs = require('./chunk-7W3KAMVQ.cjs');
4
+ var chunkQMQYK3IF_cjs = require('./chunk-QMQYK3IF.cjs');
5
5
  var chunkE5JZSEGJ_cjs = require('./chunk-E5JZSEGJ.cjs');
6
6
  var chunkD2GO3RBL_cjs = require('./chunk-D2GO3RBL.cjs');
7
7
  var chunkRCAJZG67_cjs = require('./chunk-RCAJZG67.cjs');
8
- var chunk7CDXX3QZ_cjs = require('./chunk-7CDXX3QZ.cjs');
8
+ var chunkOECDVACY_cjs = require('./chunk-OECDVACY.cjs');
9
9
  var chunkJTI5WT4P_cjs = require('./chunk-JTI5WT4P.cjs');
10
10
  var chunkCTHNVU6K_cjs = require('./chunk-CTHNVU6K.cjs');
11
11
  var chunkEK6RJ373_cjs = require('./chunk-EK6RJ373.cjs');
@@ -27,7 +27,7 @@ function metaEdge(name, options = {}) {
27
27
  description: options.description
28
28
  };
29
29
  return Object.freeze({
30
- [chunk7W3KAMVQ_cjs.META_EDGE_BRAND]: true,
30
+ [chunkQMQYK3IF_cjs.META_EDGE_BRAND]: true,
31
31
  name,
32
32
  properties
33
33
  });
@@ -4280,7 +4280,7 @@ function classifyUnique(kind, existing, next, recorders) {
4280
4280
  if (newOne === void 0) continue;
4281
4281
  const { name: _existingName, ...existingShape } = constraint;
4282
4282
  const { name: _nextName, ...nextShape } = newOne;
4283
- if (!chunk7W3KAMVQ_cjs.canonicalEqual(existingShape, nextShape)) {
4283
+ if (!chunkQMQYK3IF_cjs.canonicalEqual(existingShape, nextShape)) {
4284
4284
  recorders.recordRequireEmpty({
4285
4285
  kind,
4286
4286
  type: "ADD_UNIQUE_ON_POPULATED",
@@ -4297,7 +4297,7 @@ function planRemovals(graph, names) {
4297
4297
  if (namesSet.size === 0) {
4298
4298
  return { document, removedNodeKinds: [], removedEdgeKinds: [] };
4299
4299
  }
4300
- const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunk7W3KAMVQ_cjs.extensionKindNames(document);
4300
+ const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunkQMQYK3IF_cjs.extensionKindNames(document);
4301
4301
  const compileTimeNodeNames = new Set(
4302
4302
  Object.keys(graph.nodes).filter((name) => !runtimeNodeNames.has(name))
4303
4303
  );
@@ -4397,8 +4397,8 @@ function planRemovals(graph, names) {
4397
4397
  function stripGraphExtension(graph) {
4398
4398
  const document = graph.extension;
4399
4399
  if (document === void 0) return graph;
4400
- const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunk7W3KAMVQ_cjs.extensionKindNames(document);
4401
- const runtimeOntologyKeys = chunk7W3KAMVQ_cjs.buildGraphExtensionOntologyKeySet(document);
4400
+ const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunkQMQYK3IF_cjs.extensionKindNames(document);
4401
+ const runtimeOntologyKeys = chunkQMQYK3IF_cjs.buildGraphExtensionOntologyKeySet(document);
4402
4402
  const compileNodes = {};
4403
4403
  for (const [name, registration] of Object.entries(graph.nodes)) {
4404
4404
  if (runtimeNodeNames.has(name)) continue;
@@ -4410,7 +4410,7 @@ function stripGraphExtension(graph) {
4410
4410
  compileEdges[name] = registration;
4411
4411
  }
4412
4412
  const compileOntology = graph.ontology.filter(
4413
- (relation) => !runtimeOntologyKeys.has(chunk7W3KAMVQ_cjs.compileTimeOntologyKey(relation))
4413
+ (relation) => !runtimeOntologyKeys.has(chunkQMQYK3IF_cjs.compileTimeOntologyKey(relation))
4414
4414
  );
4415
4415
  const compileIndexes = (graph.indexes ?? []).filter(
4416
4416
  (index) => index.origin !== "runtime"
@@ -4450,13 +4450,13 @@ function buildCompileTimeReferentIndex(graph, runtimeEdgeNames) {
4450
4450
  append(endpoint.kind, referent);
4451
4451
  }
4452
4452
  }
4453
- const runtimeOntologyKeys = chunk7W3KAMVQ_cjs.buildGraphExtensionOntologyKeySet(
4453
+ const runtimeOntologyKeys = chunkQMQYK3IF_cjs.buildGraphExtensionOntologyKeySet(
4454
4454
  graph.extension
4455
4455
  );
4456
4456
  for (const relation of graph.ontology) {
4457
- if (runtimeOntologyKeys.has(chunk7W3KAMVQ_cjs.compileTimeOntologyKey(relation))) continue;
4458
- const fromName = chunk7W3KAMVQ_cjs.getTypeName(relation.from);
4459
- const toName = chunk7W3KAMVQ_cjs.getTypeName(relation.to);
4457
+ if (runtimeOntologyKeys.has(chunkQMQYK3IF_cjs.compileTimeOntologyKey(relation))) continue;
4458
+ const fromName = chunkQMQYK3IF_cjs.getTypeName(relation.from);
4459
+ const toName = chunkQMQYK3IF_cjs.getTypeName(relation.to);
4460
4460
  const referent = {
4461
4461
  type: "compile-time-ontology",
4462
4462
  name: `${relation.metaEdge.name}(${fromName}, ${toName})`
@@ -9995,8 +9995,8 @@ function createQueryBuilder(graphId, registry, options) {
9995
9995
  function buildKindRegistry(graph) {
9996
9996
  const nodeTypes = extractNodeTypes(graph);
9997
9997
  const edgeTypes = extractEdgeTypes(graph);
9998
- const closures = graph.ontology.length > 0 ? chunk7W3KAMVQ_cjs.computeClosuresFromOntology(graph.ontology) : chunk7W3KAMVQ_cjs.createEmptyClosures();
9999
- return new chunk7W3KAMVQ_cjs.KindRegistry(nodeTypes, edgeTypes, closures);
9998
+ const closures = graph.ontology.length > 0 ? chunkQMQYK3IF_cjs.computeClosuresFromOntology(graph.ontology) : chunkQMQYK3IF_cjs.createEmptyClosures();
9999
+ return new chunkQMQYK3IF_cjs.KindRegistry(nodeTypes, edgeTypes, closures);
10000
10000
  }
10001
10001
  function extractNodeTypes(graph) {
10002
10002
  const result = /* @__PURE__ */ new Map();
@@ -10991,7 +10991,7 @@ function createEdgeCollectionsProxy(graph, graphId, registry, backend, operation
10991
10991
  // src/store/introspect.ts
10992
10992
  function introspectSchema(graph, context) {
10993
10993
  const extension = graph.extension;
10994
- const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunk7W3KAMVQ_cjs.extensionKindNames(extension);
10994
+ const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = chunkQMQYK3IF_cjs.extensionKindNames(extension);
10995
10995
  const deprecated = graph.deprecatedKinds;
10996
10996
  const kinds = [];
10997
10997
  for (const [name, registration] of Object.entries(graph.nodes)) {
@@ -11002,7 +11002,7 @@ function introspectSchema(graph, context) {
11002
11002
  description: reg.type.description,
11003
11003
  annotations: reg.type.annotations,
11004
11004
  deprecated: deprecated.has(name),
11005
- properties: chunk7W3KAMVQ_cjs.serializeSchemaProperties(reg.type.schema),
11005
+ properties: chunkQMQYK3IF_cjs.serializeSchemaProperties(reg.type.schema),
11006
11006
  unique: (reg.unique ?? []).map((constraint) => ({
11007
11007
  name: constraint.name,
11008
11008
  fields: [...constraint.fields],
@@ -11023,17 +11023,17 @@ function introspectSchema(graph, context) {
11023
11023
  to: reg.to.map((entry2) => entry2.kind),
11024
11024
  cardinality: reg.cardinality ?? "many",
11025
11025
  endpointExistence: reg.endpointExistence ?? "notDeleted",
11026
- properties: chunk7W3KAMVQ_cjs.serializeSchemaProperties(edgeType.schema),
11026
+ properties: chunkQMQYK3IF_cjs.serializeSchemaProperties(edgeType.schema),
11027
11027
  annotations: edgeType.annotations,
11028
11028
  deprecated: deprecated.has(name)
11029
11029
  });
11030
11030
  }
11031
- const runtimeOntologyKeys = chunk7W3KAMVQ_cjs.buildGraphExtensionOntologyKeySet(extension);
11031
+ const runtimeOntologyKeys = chunkQMQYK3IF_cjs.buildGraphExtensionOntologyKeySet(extension);
11032
11032
  const ontology = graph.ontology.map((relation) => ({
11033
11033
  metaEdge: relation.metaEdge.name,
11034
- from: chunk7W3KAMVQ_cjs.getTypeName(relation.from),
11035
- to: chunk7W3KAMVQ_cjs.getTypeName(relation.to),
11036
- origin: runtimeOntologyKeys.has(chunk7W3KAMVQ_cjs.compileTimeOntologyKey(relation)) ? "runtime" : "compile-time"
11034
+ from: chunkQMQYK3IF_cjs.getTypeName(relation.from),
11035
+ to: chunkQMQYK3IF_cjs.getTypeName(relation.to),
11036
+ origin: runtimeOntologyKeys.has(chunkQMQYK3IF_cjs.compileTimeOntologyKey(relation)) ? "runtime" : "compile-time"
11037
11037
  }));
11038
11038
  return {
11039
11039
  graphId: context.graphId,
@@ -11360,7 +11360,7 @@ function buildAttempt(args) {
11360
11360
  }
11361
11361
  async function computeIndexSignature(dialect, targetTableName, declaration) {
11362
11362
  const hashable = { dialect, targetTableName, declaration };
11363
- const json = JSON.stringify(hashable, chunk7W3KAMVQ_cjs.sortedReplacer);
11363
+ const json = JSON.stringify(hashable, chunkQMQYK3IF_cjs.sortedReplacer);
11364
11364
  return chunkCTHNVU6K_cjs.sha256Hex(json, 16);
11365
11365
  }
11366
11366
 
@@ -11428,14 +11428,14 @@ async function reconcilePendingRemovals(context) {
11428
11428
  const reconciliations = [];
11429
11429
  const stopAtVersion = marker ?? 1;
11430
11430
  let currentRow = activeRow;
11431
- let currentSchema = chunk7W3KAMVQ_cjs.parseSerializedSchema(activeRow.schema_doc);
11431
+ let currentSchema = chunkQMQYK3IF_cjs.parseSerializedSchema(activeRow.schema_doc);
11432
11432
  while (currentRow.version > stopAtVersion) {
11433
11433
  const priorRow = await backend.getSchemaVersion(
11434
11434
  graphId,
11435
11435
  currentRow.version - 1
11436
11436
  );
11437
11437
  if (priorRow === void 0) break;
11438
- const priorSchema = chunk7W3KAMVQ_cjs.parseSerializedSchema(priorRow.schema_doc);
11438
+ const priorSchema = chunkQMQYK3IF_cjs.parseSerializedSchema(priorRow.schema_doc);
11439
11439
  for (const entity of ENTITY_KINDS) {
11440
11440
  const priorEntries = priorSchema[entity === "node" ? "nodes" : "edges"];
11441
11441
  const currentEntries = currentSchema[entity === "node" ? "nodes" : "edges"];
@@ -11951,7 +11951,7 @@ async function validateAndPrepareEdgeCreate(ctx, input, id, backend) {
11951
11951
  nodeId: input.toId
11952
11952
  });
11953
11953
  }
11954
- const validatedProps = chunk7W3KAMVQ_cjs.validateEdgeProps(edgeKind.schema, input.props, {
11954
+ const validatedProps = chunkQMQYK3IF_cjs.validateEdgeProps(edgeKind.schema, input.props, {
11955
11955
  kind,
11956
11956
  operation: "create"
11957
11957
  });
@@ -12101,7 +12101,7 @@ async function executeEdgeUpdate(ctx, input, backend) {
12101
12101
  const edgeKind = registration.type;
12102
12102
  const existingProps = JSON.parse(existing.props);
12103
12103
  const mergedProps = { ...existingProps, ...input.props };
12104
- const validatedProps = chunk7W3KAMVQ_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
12104
+ const validatedProps = chunkQMQYK3IF_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
12105
12105
  kind: existing.kind,
12106
12106
  operation: "update",
12107
12107
  id
@@ -12127,7 +12127,7 @@ async function executeEdgeUpsertUpdate(ctx, input, backend, options) {
12127
12127
  const edgeKind = registration.type;
12128
12128
  const existingProps = JSON.parse(existing.props);
12129
12129
  const mergedProps = { ...existingProps, ...input.props };
12130
- const validatedProps = chunk7W3KAMVQ_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
12130
+ const validatedProps = chunkQMQYK3IF_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
12131
12131
  kind: existing.kind,
12132
12132
  operation: "update",
12133
12133
  id
@@ -12284,7 +12284,7 @@ async function executeEdgeGetOrCreateByEndpoints(ctx, kind, fromKind, fromId, to
12284
12284
  const matchOn = options?.matchOn ?? [];
12285
12285
  const registration = getEdgeRegistration(ctx.graph, kind);
12286
12286
  const edgeKind = registration.type;
12287
- const validatedProps = chunk7W3KAMVQ_cjs.validateEdgeProps(edgeKind.schema, props, {
12287
+ const validatedProps = chunkQMQYK3IF_cjs.validateEdgeProps(edgeKind.schema, props, {
12288
12288
  kind,
12289
12289
  operation: "create"
12290
12290
  });
@@ -12366,7 +12366,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
12366
12366
  validateMatchOnFields(edgeKind.schema, matchOn, kind);
12367
12367
  const validated = [];
12368
12368
  for (const item of items) {
12369
- const validatedProps = chunk7W3KAMVQ_cjs.validateEdgeProps(edgeKind.schema, item.props, {
12369
+ const validatedProps = chunkQMQYK3IF_cjs.validateEdgeProps(edgeKind.schema, item.props, {
12370
12370
  kind,
12371
12371
  operation: "create"
12372
12372
  });
@@ -13013,7 +13013,7 @@ async function validateAndPrepareNodeCreate(ctx, input, id, backend) {
13013
13013
  const kind = input.kind;
13014
13014
  const registration = getNodeRegistration(ctx.graph, kind);
13015
13015
  const nodeKind = registration.type;
13016
- const validatedProps = chunk7W3KAMVQ_cjs.validateNodeProps(nodeKind.schema, input.props, {
13016
+ const validatedProps = chunkQMQYK3IF_cjs.validateNodeProps(nodeKind.schema, input.props, {
13017
13017
  kind,
13018
13018
  operation: "create"
13019
13019
  });
@@ -13087,7 +13087,7 @@ async function performNodeUpdate(ctx, input, backend, options) {
13087
13087
  const existingProps = JSON.parse(existing.props);
13088
13088
  const mergedProps = { ...existingProps, ...input.props };
13089
13089
  const nodeKind = registration.type;
13090
- const validatedProps = chunk7W3KAMVQ_cjs.validateNodeProps(nodeKind.schema, mergedProps, {
13090
+ const validatedProps = chunkQMQYK3IF_cjs.validateNodeProps(nodeKind.schema, mergedProps, {
13091
13091
  kind,
13092
13092
  operation: "update",
13093
13093
  id
@@ -13360,7 +13360,7 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
13360
13360
  const ifExists = options?.ifExists ?? "return";
13361
13361
  const registration = getNodeRegistration(ctx.graph, kind);
13362
13362
  const nodeKind = registration.type;
13363
- const validatedProps = chunk7W3KAMVQ_cjs.validateNodeProps(nodeKind.schema, props, {
13363
+ const validatedProps = chunkQMQYK3IF_cjs.validateNodeProps(nodeKind.schema, props, {
13364
13364
  kind,
13365
13365
  operation: "create"
13366
13366
  });
@@ -13432,7 +13432,7 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
13432
13432
  async function executeNodeFindByConstraint(ctx, kind, constraintName, props, backend) {
13433
13433
  const registration = getNodeRegistration(ctx.graph, kind);
13434
13434
  const nodeKind = registration.type;
13435
- const validatedProps = chunk7W3KAMVQ_cjs.validateNodeProps(nodeKind.schema, props, {
13435
+ const validatedProps = chunkQMQYK3IF_cjs.validateNodeProps(nodeKind.schema, props, {
13436
13436
  kind,
13437
13437
  operation: "create"
13438
13438
  });
@@ -13469,7 +13469,7 @@ async function executeNodeFindByConstraint(ctx, kind, constraintName, props, bac
13469
13469
  function validateAndComputeKeys(nodeKind, kind, constraint, items) {
13470
13470
  const validated = [];
13471
13471
  for (const item of items) {
13472
- const validatedProps = chunk7W3KAMVQ_cjs.validateNodeProps(nodeKind.schema, item.props, {
13472
+ const validatedProps = chunkQMQYK3IF_cjs.validateNodeProps(nodeKind.schema, item.props, {
13473
13473
  kind,
13474
13474
  operation: "create"
13475
13475
  });
@@ -13763,7 +13763,7 @@ async function rebuildFulltextIndex(ctx, nodeKind, options) {
13763
13763
  }
13764
13764
  }
13765
13765
  };
13766
- await chunk7CDXX3QZ_cjs.runOptionallyInTransaction(backend, writePage);
13766
+ await chunkOECDVACY_cjs.runOptionallyInTransaction(backend, writePage);
13767
13767
  processed += rows.length;
13768
13768
  upserted += pageResult.toUpsert.length;
13769
13769
  cleared += pageResult.toDelete.length;
@@ -14675,7 +14675,7 @@ var Store = class _Store {
14675
14675
  * @returns A tuple with per-query typed results, preserving input order
14676
14676
  */
14677
14677
  async batch(...queries) {
14678
- return chunk7CDXX3QZ_cjs.runOptionallyInTransaction(this.#backend, async (target) => {
14678
+ return chunkOECDVACY_cjs.runOptionallyInTransaction(this.#backend, async (target) => {
14679
14679
  const results = [];
14680
14680
  for (const query of queries) {
14681
14681
  const result = await query.executeOn(target);
@@ -14888,7 +14888,7 @@ var Store = class _Store {
14888
14888
  */
14889
14889
  async evolve(extension, options) {
14890
14890
  const { activeRow, baseline } = await this.#loadCaughtUp("evolve");
14891
- const merged = chunk7W3KAMVQ_cjs.mergeGraphExtension(baseline, extension);
14891
+ const merged = chunkQMQYK3IF_cjs.mergeGraphExtension(baseline, extension);
14892
14892
  if (merged === baseline) {
14893
14893
  if (baseline === this.#graph) {
14894
14894
  if (options?.ref !== void 0) options.ref.current = this;
@@ -14924,7 +14924,7 @@ var Store = class _Store {
14924
14924
  );
14925
14925
  if (error !== void 0) throw error;
14926
14926
  }
14927
- const committed = await chunk7W3KAMVQ_cjs.commitNewSchemaVersion(
14927
+ const committed = await chunkQMQYK3IF_cjs.commitNewSchemaVersion(
14928
14928
  this.#backend,
14929
14929
  merged,
14930
14930
  activeRow.version
@@ -15076,9 +15076,9 @@ var Store = class _Store {
15076
15076
  );
15077
15077
  }
15078
15078
  const compileTimeGraph = stripGraphExtension(this.#graph);
15079
- const merged = plan.document === void 0 ? compileTimeGraph : chunk7W3KAMVQ_cjs.mergeGraphExtension(compileTimeGraph, plan.document);
15080
- const finalGraph = chunk7W3KAMVQ_cjs.applyDeprecatedKinds(merged, baseline.deprecatedKinds);
15081
- const committedRow = await chunk7W3KAMVQ_cjs.commitNewSchemaVersion(
15079
+ const merged = plan.document === void 0 ? compileTimeGraph : chunkQMQYK3IF_cjs.mergeGraphExtension(compileTimeGraph, plan.document);
15080
+ const finalGraph = chunkQMQYK3IF_cjs.applyDeprecatedKinds(merged, baseline.deprecatedKinds);
15081
+ const committedRow = await chunkQMQYK3IF_cjs.commitNewSchemaVersion(
15082
15082
  this.#backend,
15083
15083
  finalGraph,
15084
15084
  activeRow.version
@@ -15161,8 +15161,8 @@ var Store = class _Store {
15161
15161
  schemaMetadataFromRow(activeRow)
15162
15162
  );
15163
15163
  }
15164
- const merged = chunk7W3KAMVQ_cjs.applyDeprecatedKinds(baseline, nextSet);
15165
- const result = await chunk7W3KAMVQ_cjs.ensureSchema(this.#backend, merged, {
15164
+ const merged = chunkQMQYK3IF_cjs.applyDeprecatedKinds(baseline, nextSet);
15165
+ const result = await chunkQMQYK3IF_cjs.ensureSchema(this.#backend, merged, {
15166
15166
  preloaded: { activeRow, storedSchema },
15167
15167
  autoMigrate: true
15168
15168
  });
@@ -15171,8 +15171,8 @@ var Store = class _Store {
15171
15171
  }
15172
15172
  #catchUpToStored(storedSchema) {
15173
15173
  const compileTimeGraph = stripGraphExtension(this.#graph);
15174
- const withGraphExtension = storedSchema.extension === void 0 ? compileTimeGraph : chunk7W3KAMVQ_cjs.mergeGraphExtension(compileTimeGraph, storedSchema.extension);
15175
- return chunk7W3KAMVQ_cjs.applyDeprecatedKinds(
15174
+ const withGraphExtension = storedSchema.extension === void 0 ? compileTimeGraph : chunkQMQYK3IF_cjs.mergeGraphExtension(compileTimeGraph, storedSchema.extension);
15175
+ return chunkQMQYK3IF_cjs.applyDeprecatedKinds(
15176
15176
  withGraphExtension,
15177
15177
  storedSchema.deprecatedKinds
15178
15178
  );
@@ -15190,7 +15190,7 @@ var Store = class _Store {
15190
15190
  * serializes the actual commit.
15191
15191
  */
15192
15192
  async #loadCaughtUp(verb) {
15193
- const activeRow = await chunk7W3KAMVQ_cjs.loadActiveSchemaWithBootstrap(
15193
+ const activeRow = await chunkQMQYK3IF_cjs.loadActiveSchemaWithBootstrap(
15194
15194
  this.#backend,
15195
15195
  this.graphId
15196
15196
  );
@@ -15201,7 +15201,7 @@ var Store = class _Store {
15201
15201
  { code }
15202
15202
  );
15203
15203
  }
15204
- const storedSchema = chunk7W3KAMVQ_cjs.parseSerializedSchema(activeRow.schema_doc);
15204
+ const storedSchema = chunkQMQYK3IF_cjs.parseSerializedSchema(activeRow.schema_doc);
15205
15205
  const baseline = this.#catchUpToStored(storedSchema);
15206
15206
  return { activeRow, storedSchema, baseline };
15207
15207
  }
@@ -15372,8 +15372,8 @@ async function createStoreWithSchema(graph, backend, options) {
15372
15372
  graph: merged,
15373
15373
  activeRow,
15374
15374
  storedSchema
15375
- } = await chunk7W3KAMVQ_cjs.loadAndMergeGraphExtensionDocument(backend, graph);
15376
- const result = await chunk7W3KAMVQ_cjs.ensureSchema(backend, merged, {
15375
+ } = await chunkQMQYK3IF_cjs.loadAndMergeGraphExtensionDocument(backend, graph);
15376
+ const result = await chunkQMQYK3IF_cjs.ensureSchema(backend, merged, {
15377
15377
  ...options,
15378
15378
  preloaded: { activeRow, storedSchema }
15379
15379
  });
@@ -15388,67 +15388,67 @@ async function createStoreWithSchema(graph, backend, options) {
15388
15388
 
15389
15389
  Object.defineProperty(exports, "broader", {
15390
15390
  enumerable: true,
15391
- get: function () { return chunk7W3KAMVQ_cjs.broader; }
15391
+ get: function () { return chunkQMQYK3IF_cjs.broader; }
15392
15392
  });
15393
15393
  Object.defineProperty(exports, "core", {
15394
15394
  enumerable: true,
15395
- get: function () { return chunk7W3KAMVQ_cjs.core; }
15395
+ get: function () { return chunkQMQYK3IF_cjs.core; }
15396
15396
  });
15397
15397
  Object.defineProperty(exports, "defineEdge", {
15398
15398
  enumerable: true,
15399
- get: function () { return chunk7W3KAMVQ_cjs.defineEdge; }
15399
+ get: function () { return chunkQMQYK3IF_cjs.defineEdge; }
15400
15400
  });
15401
15401
  Object.defineProperty(exports, "defineNode", {
15402
15402
  enumerable: true,
15403
- get: function () { return chunk7W3KAMVQ_cjs.defineNode; }
15403
+ get: function () { return chunkQMQYK3IF_cjs.defineNode; }
15404
15404
  });
15405
15405
  Object.defineProperty(exports, "differentFrom", {
15406
15406
  enumerable: true,
15407
- get: function () { return chunk7W3KAMVQ_cjs.differentFrom; }
15407
+ get: function () { return chunkQMQYK3IF_cjs.differentFrom; }
15408
15408
  });
15409
15409
  Object.defineProperty(exports, "disjointWith", {
15410
15410
  enumerable: true,
15411
- get: function () { return chunk7W3KAMVQ_cjs.disjointWith; }
15411
+ get: function () { return chunkQMQYK3IF_cjs.disjointWith; }
15412
15412
  });
15413
15413
  Object.defineProperty(exports, "equivalentTo", {
15414
15414
  enumerable: true,
15415
- get: function () { return chunk7W3KAMVQ_cjs.equivalentTo; }
15415
+ get: function () { return chunkQMQYK3IF_cjs.equivalentTo; }
15416
15416
  });
15417
15417
  Object.defineProperty(exports, "hasPart", {
15418
15418
  enumerable: true,
15419
- get: function () { return chunk7W3KAMVQ_cjs.hasPart; }
15419
+ get: function () { return chunkQMQYK3IF_cjs.hasPart; }
15420
15420
  });
15421
15421
  Object.defineProperty(exports, "implies", {
15422
15422
  enumerable: true,
15423
- get: function () { return chunk7W3KAMVQ_cjs.implies; }
15423
+ get: function () { return chunkQMQYK3IF_cjs.implies; }
15424
15424
  });
15425
15425
  Object.defineProperty(exports, "inverseOf", {
15426
15426
  enumerable: true,
15427
- get: function () { return chunk7W3KAMVQ_cjs.inverseOf; }
15427
+ get: function () { return chunkQMQYK3IF_cjs.inverseOf; }
15428
15428
  });
15429
15429
  Object.defineProperty(exports, "isMetaEdge", {
15430
15430
  enumerable: true,
15431
- get: function () { return chunk7W3KAMVQ_cjs.isMetaEdge; }
15431
+ get: function () { return chunkQMQYK3IF_cjs.isMetaEdge; }
15432
15432
  });
15433
15433
  Object.defineProperty(exports, "narrower", {
15434
15434
  enumerable: true,
15435
- get: function () { return chunk7W3KAMVQ_cjs.narrower; }
15435
+ get: function () { return chunkQMQYK3IF_cjs.narrower; }
15436
15436
  });
15437
15437
  Object.defineProperty(exports, "partOf", {
15438
15438
  enumerable: true,
15439
- get: function () { return chunk7W3KAMVQ_cjs.partOf; }
15439
+ get: function () { return chunkQMQYK3IF_cjs.partOf; }
15440
15440
  });
15441
15441
  Object.defineProperty(exports, "relatedTo", {
15442
15442
  enumerable: true,
15443
- get: function () { return chunk7W3KAMVQ_cjs.relatedTo; }
15443
+ get: function () { return chunkQMQYK3IF_cjs.relatedTo; }
15444
15444
  });
15445
15445
  Object.defineProperty(exports, "sameAs", {
15446
15446
  enumerable: true,
15447
- get: function () { return chunk7W3KAMVQ_cjs.sameAs; }
15447
+ get: function () { return chunkQMQYK3IF_cjs.sameAs; }
15448
15448
  });
15449
15449
  Object.defineProperty(exports, "subClassOf", {
15450
15450
  enumerable: true,
15451
- get: function () { return chunk7W3KAMVQ_cjs.subClassOf; }
15451
+ get: function () { return chunkQMQYK3IF_cjs.subClassOf; }
15452
15452
  });
15453
15453
  Object.defineProperty(exports, "defineGraph", {
15454
15454
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  import { e as KindAnnotations, N as NodeType, d as EdgeType } from './extension-types-D07e_NTw.cjs';
3
3
  export { A as AnyEdgeType, h as CURRENT_GRAPH_EXTENSION_VERSION, f as Cardinality, C as Collation, D as DeleteBehavior, i as EdgeId, j as EdgeProps, E as EdgeRegistration, k as EdgeTypeWithEndpoints, g as EndpointExistence, c as GraphDefaults, G as GraphExtension, l as GraphExtensionVersion, J as JsonValue, L as LEGACY_GRAPH_EXTENSION_VERSION, m as NodeId, n as NodeProps, b as NodeRegistration, T as TemporalMode, o as UniqueConstraint, U as UniquenessScope, p as isEdgeType, q as isEdgeTypeWithEndpoints, r as isNodeType } from './extension-types-D07e_NTw.cjs';
4
- import { z as InferenceType, M as MetaEdge, O as OntologyRelation, A as AggregateExpr, C as FieldRef, D as ComparisonOp, H as AggregateComparisonPredicate } from './types--0EslBx5.cjs';
5
- export { B as BackendCapabilities, K as CommitSchemaVersionExpected, L as CommitSchemaVersionParams, P as DEFAULT_SQL_SCHEMA, T as DeleteFulltextBatchParams, E as EdgeIndexConfig, a as EdgeIndexDeclaration, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, U as FulltextBatchRow, W as FulltextCapabilities, X as FulltextQueryMode, Y as FulltextSearchParams, Z as FulltextSearchResult, F as FulltextStrategy, G as GraphBackend, _ as HybridFusionOptions, I as IndexDeclaration, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, J as JsonPointer, $ as JsonPointerFor, a0 as JsonPointerInput, a1 as JsonPointerSegment, a2 as JsonPointerSegments, a3 as JsonPointerSegmentsFor, a4 as MAX_JSON_POINTER_DEPTH, a5 as MetaEdgeProperties, N as NodeIndexConfig, b as NodeIndexDeclaration, t as NodeIndexWhereBuilder, a6 as OrderSpec, a7 as ParameterRef, a8 as ResolveJsonPointer, a9 as ResolveJsonPointerSegments, y as SchemaVersionRow, aa as SetActiveVersionParams, ab as SortDirection, m as SqlDialect, ac as SqlSchema, ad as SqlTableNames, ae as TransactionBackend, af as TraversalExpansion, ag as UpsertFulltextBatchParams, ah as VectorCapabilities, ai as createSqlSchema, aj as fts5Strategy, ak as isMetaEdge, al as joinJsonPointers, am as jsonPointer, an as normalizeJsonPointer, ao as parseJsonPointer, ap as tsvectorStrategy } from './types--0EslBx5.cjs';
6
- import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-BAGuOHDh.cjs';
7
- export { a as AggregateResult, b as AlgorithmCyclePolicy, c as AnyEdge, d as AnyNode, B as BaseTraversalOptions, e as BatchResults, f as BatchableQuery, g as ConstraintNames, h as CreateEdgeInput, i as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, j as DegreeOptions, k as DynamicEdgeAccessor, l as DynamicEdgeCollection, m as DynamicEdgeType, n as DynamicFieldBuilder, o as DynamicNodeAccessor, p as DynamicNodeCollection, q as DynamicNodeType, r as DynamicSelectableEdge, s as DynamicSelectableNode, t as Edge, u as EdgeAccessor, v as EdgeCollection, w as EdgeFindByEndpointsOptions, x as EdgeGetOrCreateByEndpointsOptions, y as EdgeGetOrCreateByEndpointsResult, z as EdgeIntrospection, F as EmbeddingSchema, G as EmbeddingValue, H as ExecutableAggregateQuery, I as ExecutableQuery, J as FieldAccessor, K as FulltextSearchHit, L as FulltextSearchOptions, M as GetOrCreateAction, N as GraphAlgorithms, O as GraphEdgeCollections, P as GraphNodeCollections, R as HookContext, U as HybridFulltextOptions, V as HybridSearchHit, W as HybridSearchOptions, X as HybridVectorOptions, Y as IfExistsMode, Z as KindIntrospection, _ as MaterializeRemovalsEntry, $ as MaterializeRemovalsOptions, a0 as MaterializeRemovalsResult, a1 as NeighborsOptions, a2 as Node, a3 as NodeAccessor, a4 as NodeAlias, a5 as NodeCollection, a6 as NodeGetOrCreateByConstraintOptions, a7 as NodeGetOrCreateByConstraintResult, a8 as NodeIdentifier, a9 as NodeRef, aa as OntologyIntrospection, ab as OperationHookContext, ac as PaginateOptions, ad as PaginatedResult, ae as PathNode, af as Predicate, ag as PreparedQuery, ah as PropsAccessor, ai as QueryHookContext, aj as QueryOptions, ak as ReachableNode, al as ReachableOptions, am as RebuildFulltextOptions, an as RebuildFulltextResult, ao as RecursiveTraversalOptions, ap as SchemaIntrospection, aq as SearchableMetadata, ar as SearchableOptions, as as SearchableSchema, at as SelectContext, au as SelectableEdge, av as SelectableNode, aw as ShortestPathOptions, ax as ShortestPathResult, S as Store, ay as StoreHooks, az as StoreOptions, aA as StoreProjection, aB as StoreRef, aC as StoreSearch, aD as StreamOptions, aE as SubgraphEdgeResult, aF as SubgraphNodeResult, aG as SubgraphOptions, aH as SubgraphResult, aI as SubsetEdge, aJ as SubsetNode, aK as TemporalAlgorithmOptions, aL as TransactionContext, aM as TraversalDirection, aN as TypedEdgeCollection, aO as UnionableQuery, aP as UniqueIntrospection, aQ as UpdateEdgeInput, aR as UpdateNodeInput, aS as VectorSearchHit, aT as VectorSearchOptions, aU as createStore, aV as createStoreWithSchema, aW as defineSubgraphProject, aX as embedding, aY as exists, aZ as fieldRef, a_ as getEmbeddingDimensions, a$ as getSearchableMetadata, b0 as inSubquery, b1 as isEmbeddingSchema, b2 as isParameterRef, b3 as isSearchableSchema, b4 as notExists, b5 as notInSubquery, b6 as param, b7 as searchable } from './store-BAGuOHDh.cjs';
8
- import { G as GraphDef, K as KindRegistry } from './manager-BpjBW1JK.cjs';
9
- export { A as AllEdgeTypes, s as AllNodeTypes, t as EdgeKinds, u as GetEdgeType, v as GetNodeType, w as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, x as defineGraph, y as getEdgeKinds, z as getNodeKinds, B as isGraphDef } from './manager-BpjBW1JK.cjs';
4
+ import { z as InferenceType, M as MetaEdge, O as OntologyRelation, A as AggregateExpr, C as FieldRef, D as ComparisonOp, H as AggregateComparisonPredicate } from './types-WF5ItKQu.cjs';
5
+ export { B as BackendCapabilities, K as CommitSchemaVersionExpected, L as CommitSchemaVersionParams, P as DEFAULT_SQL_SCHEMA, T as DeleteFulltextBatchParams, E as EdgeIndexConfig, a as EdgeIndexDeclaration, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, U as FulltextBatchRow, W as FulltextCapabilities, X as FulltextQueryMode, Y as FulltextSearchParams, Z as FulltextSearchResult, F as FulltextStrategy, G as GraphBackend, _ as HybridFusionOptions, I as IndexDeclaration, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, J as JsonPointer, $ as JsonPointerFor, a0 as JsonPointerInput, a1 as JsonPointerSegment, a2 as JsonPointerSegments, a3 as JsonPointerSegmentsFor, a4 as MAX_JSON_POINTER_DEPTH, a5 as MetaEdgeProperties, N as NodeIndexConfig, b as NodeIndexDeclaration, t as NodeIndexWhereBuilder, a6 as OrderSpec, a7 as ParameterRef, a8 as ResolveJsonPointer, a9 as ResolveJsonPointerSegments, y as SchemaVersionRow, aa as SetActiveVersionParams, ab as SortDirection, m as SqlDialect, ac as SqlSchema, ad as SqlTableNames, ae as TransactionBackend, af as TraversalExpansion, ag as UpsertFulltextBatchParams, ah as VectorCapabilities, ai as createSqlSchema, aj as fts5Strategy, ak as isMetaEdge, al as joinJsonPointers, am as jsonPointer, an as normalizeJsonPointer, ao as parseJsonPointer, ap as tsvectorStrategy } from './types-WF5ItKQu.cjs';
6
+ import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-CkCvqRUf.cjs';
7
+ export { a as AggregateResult, b as AlgorithmCyclePolicy, c as AnyEdge, d as AnyNode, B as BaseTraversalOptions, e as BatchResults, f as BatchableQuery, g as ConstraintNames, h as CreateEdgeInput, i as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, j as DegreeOptions, k as DynamicEdgeAccessor, l as DynamicEdgeCollection, m as DynamicEdgeType, n as DynamicFieldBuilder, o as DynamicNodeAccessor, p as DynamicNodeCollection, q as DynamicNodeType, r as DynamicSelectableEdge, s as DynamicSelectableNode, t as Edge, u as EdgeAccessor, v as EdgeCollection, w as EdgeFindByEndpointsOptions, x as EdgeGetOrCreateByEndpointsOptions, y as EdgeGetOrCreateByEndpointsResult, z as EdgeIntrospection, F as EmbeddingSchema, G as EmbeddingValue, H as ExecutableAggregateQuery, I as ExecutableQuery, J as FieldAccessor, K as FulltextSearchHit, L as FulltextSearchOptions, M as GetOrCreateAction, N as GraphAlgorithms, O as GraphEdgeCollections, P as GraphNodeCollections, R as HookContext, U as HybridFulltextOptions, V as HybridSearchHit, W as HybridSearchOptions, X as HybridVectorOptions, Y as IfExistsMode, Z as KindIntrospection, _ as MaterializeRemovalsEntry, $ as MaterializeRemovalsOptions, a0 as MaterializeRemovalsResult, a1 as NeighborsOptions, a2 as Node, a3 as NodeAccessor, a4 as NodeAlias, a5 as NodeCollection, a6 as NodeGetOrCreateByConstraintOptions, a7 as NodeGetOrCreateByConstraintResult, a8 as NodeIdentifier, a9 as NodeRef, aa as OntologyIntrospection, ab as OperationHookContext, ac as PaginateOptions, ad as PaginatedResult, ae as PathNode, af as Predicate, ag as PreparedQuery, ah as PropsAccessor, ai as QueryHookContext, aj as QueryOptions, ak as ReachableNode, al as ReachableOptions, am as RebuildFulltextOptions, an as RebuildFulltextResult, ao as RecursiveTraversalOptions, ap as SchemaIntrospection, aq as SearchableMetadata, ar as SearchableOptions, as as SearchableSchema, at as SelectContext, au as SelectableEdge, av as SelectableNode, aw as ShortestPathOptions, ax as ShortestPathResult, S as Store, ay as StoreHooks, az as StoreOptions, aA as StoreProjection, aB as StoreRef, aC as StoreSearch, aD as StreamOptions, aE as SubgraphEdgeResult, aF as SubgraphNodeResult, aG as SubgraphOptions, aH as SubgraphResult, aI as SubsetEdge, aJ as SubsetNode, aK as TemporalAlgorithmOptions, aL as TransactionContext, aM as TraversalDirection, aN as TypedEdgeCollection, aO as UnionableQuery, aP as UniqueIntrospection, aQ as UpdateEdgeInput, aR as UpdateNodeInput, aS as VectorSearchHit, aT as VectorSearchOptions, aU as createStore, aV as createStoreWithSchema, aW as defineSubgraphProject, aX as embedding, aY as exists, aZ as fieldRef, a_ as getEmbeddingDimensions, a$ as getSearchableMetadata, b0 as inSubquery, b1 as isEmbeddingSchema, b2 as isParameterRef, b3 as isSearchableSchema, b4 as notExists, b5 as notInSubquery, b6 as param, b7 as searchable } from './store-CkCvqRUf.cjs';
8
+ import { G as GraphDef, K as KindRegistry } from './manager-Cy3dhwYO.cjs';
9
+ export { A as AllEdgeTypes, s as AllNodeTypes, t as EdgeKinds, u as GetEdgeType, v as GetNodeType, w as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, x as defineGraph, y as getEdgeKinds, z as getNodeKinds, B as isGraphDef } from './manager-Cy3dhwYO.cjs';
10
10
  export { B as BackendDisposedError, C as CardinalityError, b as CompilerInvariantError, c as ConfigurationError, D as DatabaseOperationError, d as DisjointError, E as EagerMaterializationError, e as EdgeNotFoundError, f as EndpointError, g as EndpointNotFoundError, h as ErrorCategory, K as KindNotFoundError, M as MigrationError, N as NodeConstraintNotFoundError, i as NodeNotFoundError, R as RestrictedDeleteError, S as SchemaContentConflictError, j as SchemaMismatchError, k as StaleVersionError, T as TypeGraphError, l as TypeGraphErrorOptions, U as UniquenessError, m as UnsupportedPredicateError, a as ValidationError, n as ValidationErrorDetails, V as ValidationIssue, o as VersionConflictError, p as getErrorSuggestion, q as isConstraintError, r as isSystemError, s as isTypeGraphError, t as isUserRecoverable } from './index-CT6nvtxL.cjs';
11
11
  export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BB9N5uQl.cjs';
12
- export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-m1uWsdua.cjs';
12
+ export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-DZYMiXVq.cjs';
13
13
  export { GraphExtensionError, GraphExtensionIssue, GraphExtensionIssueCode, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChange, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, KindReferent, RemoveCompileTimeKindError, defineGraphExtension, validateGraphExtension } from './graph-extension/index.cjs';
14
14
  import 'drizzle-orm';
15
15
 
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  import { e as KindAnnotations, N as NodeType, d as EdgeType } from './extension-types-D07e_NTw.js';
3
3
  export { A as AnyEdgeType, h as CURRENT_GRAPH_EXTENSION_VERSION, f as Cardinality, C as Collation, D as DeleteBehavior, i as EdgeId, j as EdgeProps, E as EdgeRegistration, k as EdgeTypeWithEndpoints, g as EndpointExistence, c as GraphDefaults, G as GraphExtension, l as GraphExtensionVersion, J as JsonValue, L as LEGACY_GRAPH_EXTENSION_VERSION, m as NodeId, n as NodeProps, b as NodeRegistration, T as TemporalMode, o as UniqueConstraint, U as UniquenessScope, p as isEdgeType, q as isEdgeTypeWithEndpoints, r as isNodeType } from './extension-types-D07e_NTw.js';
4
- import { z as InferenceType, M as MetaEdge, O as OntologyRelation, A as AggregateExpr, C as FieldRef, D as ComparisonOp, H as AggregateComparisonPredicate } from './types-BNWYZ-0-.js';
5
- export { B as BackendCapabilities, K as CommitSchemaVersionExpected, L as CommitSchemaVersionParams, P as DEFAULT_SQL_SCHEMA, T as DeleteFulltextBatchParams, E as EdgeIndexConfig, a as EdgeIndexDeclaration, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, U as FulltextBatchRow, W as FulltextCapabilities, X as FulltextQueryMode, Y as FulltextSearchParams, Z as FulltextSearchResult, F as FulltextStrategy, G as GraphBackend, _ as HybridFusionOptions, I as IndexDeclaration, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, J as JsonPointer, $ as JsonPointerFor, a0 as JsonPointerInput, a1 as JsonPointerSegment, a2 as JsonPointerSegments, a3 as JsonPointerSegmentsFor, a4 as MAX_JSON_POINTER_DEPTH, a5 as MetaEdgeProperties, N as NodeIndexConfig, b as NodeIndexDeclaration, t as NodeIndexWhereBuilder, a6 as OrderSpec, a7 as ParameterRef, a8 as ResolveJsonPointer, a9 as ResolveJsonPointerSegments, y as SchemaVersionRow, aa as SetActiveVersionParams, ab as SortDirection, m as SqlDialect, ac as SqlSchema, ad as SqlTableNames, ae as TransactionBackend, af as TraversalExpansion, ag as UpsertFulltextBatchParams, ah as VectorCapabilities, ai as createSqlSchema, aj as fts5Strategy, ak as isMetaEdge, al as joinJsonPointers, am as jsonPointer, an as normalizeJsonPointer, ao as parseJsonPointer, ap as tsvectorStrategy } from './types-BNWYZ-0-.js';
6
- import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-De98Lod4.js';
7
- export { a as AggregateResult, b as AlgorithmCyclePolicy, c as AnyEdge, d as AnyNode, B as BaseTraversalOptions, e as BatchResults, f as BatchableQuery, g as ConstraintNames, h as CreateEdgeInput, i as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, j as DegreeOptions, k as DynamicEdgeAccessor, l as DynamicEdgeCollection, m as DynamicEdgeType, n as DynamicFieldBuilder, o as DynamicNodeAccessor, p as DynamicNodeCollection, q as DynamicNodeType, r as DynamicSelectableEdge, s as DynamicSelectableNode, t as Edge, u as EdgeAccessor, v as EdgeCollection, w as EdgeFindByEndpointsOptions, x as EdgeGetOrCreateByEndpointsOptions, y as EdgeGetOrCreateByEndpointsResult, z as EdgeIntrospection, F as EmbeddingSchema, G as EmbeddingValue, H as ExecutableAggregateQuery, I as ExecutableQuery, J as FieldAccessor, K as FulltextSearchHit, L as FulltextSearchOptions, M as GetOrCreateAction, N as GraphAlgorithms, O as GraphEdgeCollections, P as GraphNodeCollections, R as HookContext, U as HybridFulltextOptions, V as HybridSearchHit, W as HybridSearchOptions, X as HybridVectorOptions, Y as IfExistsMode, Z as KindIntrospection, _ as MaterializeRemovalsEntry, $ as MaterializeRemovalsOptions, a0 as MaterializeRemovalsResult, a1 as NeighborsOptions, a2 as Node, a3 as NodeAccessor, a4 as NodeAlias, a5 as NodeCollection, a6 as NodeGetOrCreateByConstraintOptions, a7 as NodeGetOrCreateByConstraintResult, a8 as NodeIdentifier, a9 as NodeRef, aa as OntologyIntrospection, ab as OperationHookContext, ac as PaginateOptions, ad as PaginatedResult, ae as PathNode, af as Predicate, ag as PreparedQuery, ah as PropsAccessor, ai as QueryHookContext, aj as QueryOptions, ak as ReachableNode, al as ReachableOptions, am as RebuildFulltextOptions, an as RebuildFulltextResult, ao as RecursiveTraversalOptions, ap as SchemaIntrospection, aq as SearchableMetadata, ar as SearchableOptions, as as SearchableSchema, at as SelectContext, au as SelectableEdge, av as SelectableNode, aw as ShortestPathOptions, ax as ShortestPathResult, S as Store, ay as StoreHooks, az as StoreOptions, aA as StoreProjection, aB as StoreRef, aC as StoreSearch, aD as StreamOptions, aE as SubgraphEdgeResult, aF as SubgraphNodeResult, aG as SubgraphOptions, aH as SubgraphResult, aI as SubsetEdge, aJ as SubsetNode, aK as TemporalAlgorithmOptions, aL as TransactionContext, aM as TraversalDirection, aN as TypedEdgeCollection, aO as UnionableQuery, aP as UniqueIntrospection, aQ as UpdateEdgeInput, aR as UpdateNodeInput, aS as VectorSearchHit, aT as VectorSearchOptions, aU as createStore, aV as createStoreWithSchema, aW as defineSubgraphProject, aX as embedding, aY as exists, aZ as fieldRef, a_ as getEmbeddingDimensions, a$ as getSearchableMetadata, b0 as inSubquery, b1 as isEmbeddingSchema, b2 as isParameterRef, b3 as isSearchableSchema, b4 as notExists, b5 as notInSubquery, b6 as param, b7 as searchable } from './store-De98Lod4.js';
8
- import { G as GraphDef, K as KindRegistry } from './manager-BKaPQbns.js';
9
- export { A as AllEdgeTypes, s as AllNodeTypes, t as EdgeKinds, u as GetEdgeType, v as GetNodeType, w as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, x as defineGraph, y as getEdgeKinds, z as getNodeKinds, B as isGraphDef } from './manager-BKaPQbns.js';
4
+ import { z as InferenceType, M as MetaEdge, O as OntologyRelation, A as AggregateExpr, C as FieldRef, D as ComparisonOp, H as AggregateComparisonPredicate } from './types-DptZHe-l.js';
5
+ export { B as BackendCapabilities, K as CommitSchemaVersionExpected, L as CommitSchemaVersionParams, P as DEFAULT_SQL_SCHEMA, T as DeleteFulltextBatchParams, E as EdgeIndexConfig, a as EdgeIndexDeclaration, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, U as FulltextBatchRow, W as FulltextCapabilities, X as FulltextQueryMode, Y as FulltextSearchParams, Z as FulltextSearchResult, F as FulltextStrategy, G as GraphBackend, _ as HybridFusionOptions, I as IndexDeclaration, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, J as JsonPointer, $ as JsonPointerFor, a0 as JsonPointerInput, a1 as JsonPointerSegment, a2 as JsonPointerSegments, a3 as JsonPointerSegmentsFor, a4 as MAX_JSON_POINTER_DEPTH, a5 as MetaEdgeProperties, N as NodeIndexConfig, b as NodeIndexDeclaration, t as NodeIndexWhereBuilder, a6 as OrderSpec, a7 as ParameterRef, a8 as ResolveJsonPointer, a9 as ResolveJsonPointerSegments, y as SchemaVersionRow, aa as SetActiveVersionParams, ab as SortDirection, m as SqlDialect, ac as SqlSchema, ad as SqlTableNames, ae as TransactionBackend, af as TraversalExpansion, ag as UpsertFulltextBatchParams, ah as VectorCapabilities, ai as createSqlSchema, aj as fts5Strategy, ak as isMetaEdge, al as joinJsonPointers, am as jsonPointer, an as normalizeJsonPointer, ao as parseJsonPointer, ap as tsvectorStrategy } from './types-DptZHe-l.js';
6
+ import { A as AliasMap, E as EdgeAliasMap, Q as QueryBuilder, T as TraversalBuilder, C as CreateQueryBuilderOptions } from './store-BS_hehiz.js';
7
+ export { a as AggregateResult, b as AlgorithmCyclePolicy, c as AnyEdge, d as AnyNode, B as BaseTraversalOptions, e as BatchResults, f as BatchableQuery, g as ConstraintNames, h as CreateEdgeInput, i as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, j as DegreeOptions, k as DynamicEdgeAccessor, l as DynamicEdgeCollection, m as DynamicEdgeType, n as DynamicFieldBuilder, o as DynamicNodeAccessor, p as DynamicNodeCollection, q as DynamicNodeType, r as DynamicSelectableEdge, s as DynamicSelectableNode, t as Edge, u as EdgeAccessor, v as EdgeCollection, w as EdgeFindByEndpointsOptions, x as EdgeGetOrCreateByEndpointsOptions, y as EdgeGetOrCreateByEndpointsResult, z as EdgeIntrospection, F as EmbeddingSchema, G as EmbeddingValue, H as ExecutableAggregateQuery, I as ExecutableQuery, J as FieldAccessor, K as FulltextSearchHit, L as FulltextSearchOptions, M as GetOrCreateAction, N as GraphAlgorithms, O as GraphEdgeCollections, P as GraphNodeCollections, R as HookContext, U as HybridFulltextOptions, V as HybridSearchHit, W as HybridSearchOptions, X as HybridVectorOptions, Y as IfExistsMode, Z as KindIntrospection, _ as MaterializeRemovalsEntry, $ as MaterializeRemovalsOptions, a0 as MaterializeRemovalsResult, a1 as NeighborsOptions, a2 as Node, a3 as NodeAccessor, a4 as NodeAlias, a5 as NodeCollection, a6 as NodeGetOrCreateByConstraintOptions, a7 as NodeGetOrCreateByConstraintResult, a8 as NodeIdentifier, a9 as NodeRef, aa as OntologyIntrospection, ab as OperationHookContext, ac as PaginateOptions, ad as PaginatedResult, ae as PathNode, af as Predicate, ag as PreparedQuery, ah as PropsAccessor, ai as QueryHookContext, aj as QueryOptions, ak as ReachableNode, al as ReachableOptions, am as RebuildFulltextOptions, an as RebuildFulltextResult, ao as RecursiveTraversalOptions, ap as SchemaIntrospection, aq as SearchableMetadata, ar as SearchableOptions, as as SearchableSchema, at as SelectContext, au as SelectableEdge, av as SelectableNode, aw as ShortestPathOptions, ax as ShortestPathResult, S as Store, ay as StoreHooks, az as StoreOptions, aA as StoreProjection, aB as StoreRef, aC as StoreSearch, aD as StreamOptions, aE as SubgraphEdgeResult, aF as SubgraphNodeResult, aG as SubgraphOptions, aH as SubgraphResult, aI as SubsetEdge, aJ as SubsetNode, aK as TemporalAlgorithmOptions, aL as TransactionContext, aM as TraversalDirection, aN as TypedEdgeCollection, aO as UnionableQuery, aP as UniqueIntrospection, aQ as UpdateEdgeInput, aR as UpdateNodeInput, aS as VectorSearchHit, aT as VectorSearchOptions, aU as createStore, aV as createStoreWithSchema, aW as defineSubgraphProject, aX as embedding, aY as exists, aZ as fieldRef, a_ as getEmbeddingDimensions, a$ as getSearchableMetadata, b0 as inSubquery, b1 as isEmbeddingSchema, b2 as isParameterRef, b3 as isSearchableSchema, b4 as notExists, b5 as notInSubquery, b6 as param, b7 as searchable } from './store-BS_hehiz.js';
8
+ import { G as GraphDef, K as KindRegistry } from './manager-sZkU2VPC.js';
9
+ export { A as AllEdgeTypes, s as AllNodeTypes, t as EdgeKinds, u as GetEdgeType, v as GetNodeType, w as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, x as defineGraph, y as getEdgeKinds, z as getNodeKinds, B as isGraphDef } from './manager-sZkU2VPC.js';
10
10
  export { B as BackendDisposedError, C as CardinalityError, b as CompilerInvariantError, c as ConfigurationError, D as DatabaseOperationError, d as DisjointError, E as EagerMaterializationError, e as EdgeNotFoundError, f as EndpointError, g as EndpointNotFoundError, h as ErrorCategory, K as KindNotFoundError, M as MigrationError, N as NodeConstraintNotFoundError, i as NodeNotFoundError, R as RestrictedDeleteError, S as SchemaContentConflictError, j as SchemaMismatchError, k as StaleVersionError, T as TypeGraphError, l as TypeGraphErrorOptions, U as UniquenessError, m as UnsupportedPredicateError, a as ValidationError, n as ValidationErrorDetails, V as ValidationIssue, o as VersionConflictError, p as getErrorSuggestion, q as isConstraintError, r as isSystemError, s as isTypeGraphError, t as isUserRecoverable } from './index-DQheiVQV.js';
11
11
  export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BYpU2RKh.js';
12
- export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-CluR73rs.js';
12
+ export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from './where-C40InMIp.js';
13
13
  export { GraphExtensionError, GraphExtensionIssue, GraphExtensionIssueCode, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChange, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, KindReferent, RemoveCompileTimeKindError, defineGraphExtension, validateGraphExtension } from './graph-extension/index.js';
14
14
  import 'drizzle-orm';
15
15
 
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { quoteIdentifier, EMPTY_REQUIRED_COLUMNS, addRequiredColumn, markSelectiveFieldAsRequired, markFieldRefAsRequired, NODE_COLUMNS, shouldProjectColumn, mapSelectiveSystemFieldToColumn, isIdFieldRef, isAggregateExpr, EDGE_COLUMNS } from './chunk-3EUKJEQ3.js';
2
- import { META_EDGE_BRAND, loadAndMergeGraphExtensionDocument, ensureSchema, mergeGraphExtension, commitNewSchemaVersion, applyDeprecatedKinds, loadActiveSchemaWithBootstrap, parseSerializedSchema, computeClosuresFromOntology, createEmptyClosures, KindRegistry, extensionKindNames, serializeSchemaProperties, buildGraphExtensionOntologyKeySet, compileTimeOntologyKey, getTypeName, validateNodeProps, validateEdgeProps, canonicalEqual, sortedReplacer } from './chunk-LVCSL6A3.js';
3
- export { broader, core, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, isMetaEdge, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-LVCSL6A3.js';
2
+ import { META_EDGE_BRAND, loadAndMergeGraphExtensionDocument, ensureSchema, mergeGraphExtension, commitNewSchemaVersion, applyDeprecatedKinds, loadActiveSchemaWithBootstrap, parseSerializedSchema, computeClosuresFromOntology, createEmptyClosures, KindRegistry, extensionKindNames, serializeSchemaProperties, buildGraphExtensionOntologyKeySet, compileTimeOntologyKey, getTypeName, validateNodeProps, validateEdgeProps, canonicalEqual, sortedReplacer } from './chunk-AAA2CR3P.js';
3
+ export { broader, core, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, isMetaEdge, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-AAA2CR3P.js';
4
4
  import { nowIso, isKnownKind, validateOptionalIsoDate, getNodeKinds, getEdgeKinds } from './chunk-EG6TJ3I5.js';
5
5
  export { defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from './chunk-EG6TJ3I5.js';
6
6
  export { defineGraphExtension } from './chunk-NHQWXSTS.js';
7
7
  import { IncompatibleChangeError, filterReservedKeys, RESERVED_NODE_KEYS, RESERVED_EDGE_KEYS, RemoveCompileTimeKindError, KindHasReferentsError, validateProjectionField } from './chunk-4BOWVUGQ.js';
8
8
  export { CURRENT_GRAPH_EXTENSION_VERSION, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, validateGraphExtension } from './chunk-4BOWVUGQ.js';
9
- import { runOptionallyInTransaction } from './chunk-FPCOUJSL.js';
9
+ import { runOptionallyInTransaction } from './chunk-CPFR3O7L.js';
10
10
  import { getDialect, generateIndexDDL } from './chunk-YZZBDCLV.js';
11
11
  export { andWhere, fts5Strategy, notWhere, orWhere, tsvectorStrategy } from './chunk-YZZBDCLV.js';
12
12
  import { MAX_PG_IDENTIFIER_LENGTH, DEFAULT_PAGINATION_LIMIT, DEFAULT_STREAM_BATCH_SIZE, NODE_META_KEYS, EDGE_META_KEYS, SQLITE_PATH_DELIMITER, PG_ARRAY_START, PG_ARRAY_END, PG_PATH_ELEMENT_SEPARATOR, fnv1aBase36, sha256Hex } from './chunk-EJCDOA37.js';
@@ -1,10 +1,10 @@
1
- import { a as EdgeIndexDeclaration, m as SqlDialect, R as RelationalIndexDeclaration, b as NodeIndexDeclaration, I as IndexDeclaration } from '../types--0EslBx5.cjs';
2
- export { E as EdgeIndexConfig, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, N as NodeIndexConfig, t as NodeIndexWhereBuilder, u as SystemColumnName, V as VectorIndexDeclaration, v as VectorIndexImplementation, w as VectorIndexMetric, x as VectorIndexParams } from '../types--0EslBx5.cjs';
3
- export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-m1uWsdua.cjs';
1
+ import { a as EdgeIndexDeclaration, m as SqlDialect, R as RelationalIndexDeclaration, b as NodeIndexDeclaration, I as IndexDeclaration } from '../types-WF5ItKQu.cjs';
2
+ export { E as EdgeIndexConfig, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, N as NodeIndexConfig, t as NodeIndexWhereBuilder, u as SystemColumnName, V as VectorIndexDeclaration, v as VectorIndexImplementation, w as VectorIndexMetric, x as VectorIndexParams } from '../types-WF5ItKQu.cjs';
3
+ export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-DZYMiXVq.cjs';
4
4
  import { SQLWrapper } from 'drizzle-orm';
5
5
  import { IndexBuilder } from 'drizzle-orm/pg-core';
6
6
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
7
- import { D as DeclaredIndex } from '../types-CYga3lZp.cjs';
7
+ import { D as DeclaredIndex } from '../types-BpgACExN.cjs';
8
8
  import 'zod';
9
9
  import '../extension-types-D07e_NTw.cjs';
10
10
 
@@ -1,10 +1,10 @@
1
- import { a as EdgeIndexDeclaration, m as SqlDialect, R as RelationalIndexDeclaration, b as NodeIndexDeclaration, I as IndexDeclaration } from '../types-BNWYZ-0-.js';
2
- export { E as EdgeIndexConfig, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, N as NodeIndexConfig, t as NodeIndexWhereBuilder, u as SystemColumnName, V as VectorIndexDeclaration, v as VectorIndexImplementation, w as VectorIndexMetric, x as VectorIndexParams } from '../types-BNWYZ-0-.js';
3
- export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-CluR73rs.js';
1
+ import { a as EdgeIndexDeclaration, m as SqlDialect, R as RelationalIndexDeclaration, b as NodeIndexDeclaration, I as IndexDeclaration } from '../types-DptZHe-l.js';
2
+ export { E as EdgeIndexConfig, n as EdgeIndexDirection, o as EdgeIndexWhereBuilder, p as IndexOrigin, q as IndexScope, c as IndexWhereExpression, r as IndexWhereFieldBuilder, s as IndexWhereInput, N as NodeIndexConfig, t as NodeIndexWhereBuilder, u as SystemColumnName, V as VectorIndexDeclaration, v as VectorIndexImplementation, w as VectorIndexMetric, x as VectorIndexParams } from '../types-DptZHe-l.js';
3
+ export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-C40InMIp.js';
4
4
  import { SQLWrapper } from 'drizzle-orm';
5
5
  import { IndexBuilder } from 'drizzle-orm/pg-core';
6
6
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
7
- import { D as DeclaredIndex } from '../types-BLmJq4wI.js';
7
+ import { D as DeclaredIndex } from '../types-Bz-Pi681.js';
8
8
  import 'zod';
9
9
  import '../extension-types-D07e_NTw.js';
10
10
 
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-BpjBW1JK.cjs';
3
- import { S as Store } from '../store-BAGuOHDh.cjs';
2
+ import { G as GraphDef } from '../manager-Cy3dhwYO.cjs';
3
+ import { S as Store } from '../store-CkCvqRUf.cjs';
4
4
  import '../extension-types-D07e_NTw.cjs';
5
- import '../types--0EslBx5.cjs';
5
+ import '../types-WF5ItKQu.cjs';
6
6
  import 'drizzle-orm';
7
7
  import '../materialize-indexes-BB9N5uQl.cjs';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-BKaPQbns.js';
3
- import { S as Store } from '../store-De98Lod4.js';
2
+ import { G as GraphDef } from '../manager-sZkU2VPC.js';
3
+ import { S as Store } from '../store-BS_hehiz.js';
4
4
  import '../extension-types-D07e_NTw.js';
5
- import '../types-BNWYZ-0-.js';
5
+ import '../types-DptZHe-l.js';
6
6
  import 'drizzle-orm';
7
7
  import '../materialize-indexes-BYpU2RKh.js';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-D07e_NTw.cjs';
2
- import { O as OntologyRelation, I as IndexDeclaration, S as SerializedNodeDef, d as SerializedEdgeDef, h as SerializedSchema, y as SchemaVersionRow, G as GraphBackend } from './types--0EslBx5.cjs';
2
+ import { O as OntologyRelation, I as IndexDeclaration, S as SerializedNodeDef, d as SerializedEdgeDef, h as SerializedSchema, y as SchemaVersionRow, G as GraphBackend } from './types-WF5ItKQu.cjs';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -486,7 +486,12 @@ declare function getMigrationActions(diff: SchemaDiff): readonly string[];
486
486
  declare function parseSerializedSchema(json: string): SerializedSchema;
487
487
  /**
488
488
  * Reads the active schema row, bootstrapping the base tables on the
489
- * first call against an empty database.
489
+ * first call against an empty database. Also runs
490
+ * `ensureFulltextTable` on the success path: drizzle-kit-managed
491
+ * setups create every base table EXCEPT the strategy-owned fulltext
492
+ * table, and the missing-table-error fallback below doesn't trigger
493
+ * once `schema_versions` exists. The focused ensure closes that gap
494
+ * before any `searchable()` write runs.
490
495
  */
491
496
  declare function loadActiveSchemaWithBootstrap(backend: GraphBackend, graphId: string): Promise<SchemaVersionRow | undefined>;
492
497
  /**