@nicia-ai/typegraph 0.4.0 → 0.6.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 (114) hide show
  1. package/README.md +2 -2
  2. package/dist/{ast-CXFx6bF6.d.ts → ast-CG87Zr6p.d.ts} +2 -2
  3. package/dist/{ast-D-3bOanX.d.cts → ast-Cq9qrnNP.d.cts} +2 -2
  4. package/dist/backend/postgres/index.cjs +295 -23
  5. package/dist/backend/postgres/index.cjs.map +1 -1
  6. package/dist/backend/postgres/index.d.cts +33 -10
  7. package/dist/backend/postgres/index.d.ts +33 -10
  8. package/dist/backend/postgres/index.js +285 -5
  9. package/dist/backend/postgres/index.js.map +1 -1
  10. package/dist/backend/sqlite/index.cjs +21 -90
  11. package/dist/backend/sqlite/index.cjs.map +1 -1
  12. package/dist/backend/sqlite/index.d.cts +22 -58
  13. package/dist/backend/sqlite/index.d.ts +22 -58
  14. package/dist/backend/sqlite/index.js +3 -78
  15. package/dist/backend/sqlite/index.js.map +1 -1
  16. package/dist/backend/sqlite/local.cjs +83 -0
  17. package/dist/backend/sqlite/local.cjs.map +1 -0
  18. package/dist/backend/sqlite/local.d.cts +66 -0
  19. package/dist/backend/sqlite/local.d.ts +66 -0
  20. package/dist/backend/sqlite/local.js +77 -0
  21. package/dist/backend/sqlite/local.js.map +1 -0
  22. package/dist/chunk-23NGZHUN.cjs +2132 -0
  23. package/dist/chunk-23NGZHUN.cjs.map +1 -0
  24. package/dist/{chunk-ZO2FRJ2U.js → chunk-2DKSQNPW.js} +3 -4
  25. package/dist/chunk-2DKSQNPW.js.map +1 -0
  26. package/dist/chunk-JPO7W262.js +2093 -0
  27. package/dist/chunk-JPO7W262.js.map +1 -0
  28. package/dist/{chunk-NYDXJGA3.cjs → chunk-K5O7TOJO.cjs} +15 -16
  29. package/dist/chunk-K5O7TOJO.cjs.map +1 -0
  30. package/dist/{backend/drizzle/schema/postgres.d.ts → ddl-Bcyb4DW1.d.cts} +17 -17
  31. package/dist/{backend/drizzle/schema/postgres.d.cts → ddl-D7DQx8w8.d.ts} +17 -17
  32. package/dist/{index-DyrR_d-H.d.cts → index-QTnQwakS.d.cts} +1 -1
  33. package/dist/{index-DyrR_d-H.d.ts → index-QTnQwakS.d.ts} +1 -1
  34. package/dist/index.cjs +238 -1
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +11 -12
  37. package/dist/index.d.ts +11 -12
  38. package/dist/index.js +238 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/indexes/index.d.cts +5 -6
  41. package/dist/indexes/index.d.ts +5 -6
  42. package/dist/interchange/index.d.cts +5 -6
  43. package/dist/interchange/index.d.ts +5 -6
  44. package/dist/{manager-0NysX4s6.d.cts → manager-BImRiYwz.d.cts} +3 -3
  45. package/dist/{manager-DFKe7ql3.d.ts → manager-DGQ9UF18.d.ts} +3 -3
  46. package/dist/profiler/index.d.cts +7 -8
  47. package/dist/profiler/index.d.ts +7 -8
  48. package/dist/schema/index.d.cts +6 -7
  49. package/dist/schema/index.d.ts +6 -7
  50. package/dist/{backend/drizzle/schema/sqlite.d.ts → sqlite-CSJ-fgIm.d.ts} +2 -25
  51. package/dist/{backend/drizzle/schema/sqlite.d.cts → sqlite-FWGZLwDd.d.cts} +2 -25
  52. package/dist/{store-SiovWEYA.d.ts → store-CscQUG-S.d.ts} +57 -6
  53. package/dist/{store-DhoA5uRc.d.cts → store-DNv1yd3n.d.cts} +57 -6
  54. package/dist/{types-DHRsi6j9.d.cts → types-BbMn2Ycv.d.cts} +2 -2
  55. package/dist/{types-ZT5mlism.d.ts → types-C2rhqkg7.d.ts} +2 -2
  56. package/dist/{types-6EKrWTs9.d.ts → types-D5ggX07j.d.ts} +7 -3
  57. package/dist/{types-BL1GyVku.d.cts → types-DEMAqkA1.d.cts} +1 -1
  58. package/dist/{types-DCGa53O2.d.ts → types-DJZoHy5R.d.ts} +1 -1
  59. package/dist/{types-DTJEu_-h.d.ts → types-DolHw9pJ.d.cts} +14 -1
  60. package/dist/{types-DTJEu_-h.d.cts → types-DolHw9pJ.d.ts} +14 -1
  61. package/dist/{types-BUy-pHKH.d.cts → types-SVDEKnU6.d.cts} +7 -3
  62. package/package.json +6 -46
  63. package/dist/backend/drizzle/index.cjs +0 -40
  64. package/dist/backend/drizzle/index.cjs.map +0 -1
  65. package/dist/backend/drizzle/index.d.cts +0 -13
  66. package/dist/backend/drizzle/index.d.ts +0 -13
  67. package/dist/backend/drizzle/index.js +0 -11
  68. package/dist/backend/drizzle/index.js.map +0 -1
  69. package/dist/backend/drizzle/postgres.cjs +0 -26
  70. package/dist/backend/drizzle/postgres.cjs.map +0 -1
  71. package/dist/backend/drizzle/postgres.d.cts +0 -35
  72. package/dist/backend/drizzle/postgres.d.ts +0 -35
  73. package/dist/backend/drizzle/postgres.js +0 -9
  74. package/dist/backend/drizzle/postgres.js.map +0 -1
  75. package/dist/backend/drizzle/schema/postgres.cjs +0 -39
  76. package/dist/backend/drizzle/schema/postgres.cjs.map +0 -1
  77. package/dist/backend/drizzle/schema/postgres.js +0 -6
  78. package/dist/backend/drizzle/schema/postgres.js.map +0 -1
  79. package/dist/backend/drizzle/schema/sqlite.cjs +0 -39
  80. package/dist/backend/drizzle/schema/sqlite.cjs.map +0 -1
  81. package/dist/backend/drizzle/schema/sqlite.js +0 -6
  82. package/dist/backend/drizzle/schema/sqlite.js.map +0 -1
  83. package/dist/backend/drizzle/sqlite.cjs +0 -26
  84. package/dist/backend/drizzle/sqlite.cjs.map +0 -1
  85. package/dist/backend/drizzle/sqlite.d.cts +0 -35
  86. package/dist/backend/drizzle/sqlite.d.ts +0 -35
  87. package/dist/backend/drizzle/sqlite.js +0 -9
  88. package/dist/backend/drizzle/sqlite.js.map +0 -1
  89. package/dist/chunk-3PURVEA4.js +0 -193
  90. package/dist/chunk-3PURVEA4.js.map +0 -1
  91. package/dist/chunk-7RVSDXT3.cjs +0 -1509
  92. package/dist/chunk-7RVSDXT3.cjs.map +0 -1
  93. package/dist/chunk-LUARLSYT.cjs +0 -289
  94. package/dist/chunk-LUARLSYT.cjs.map +0 -1
  95. package/dist/chunk-NU2XNMVI.cjs +0 -201
  96. package/dist/chunk-NU2XNMVI.cjs.map +0 -1
  97. package/dist/chunk-NYDXJGA3.cjs.map +0 -1
  98. package/dist/chunk-OGGLFYFA.js +0 -177
  99. package/dist/chunk-OGGLFYFA.js.map +0 -1
  100. package/dist/chunk-Q6PXIKRQ.js +0 -287
  101. package/dist/chunk-Q6PXIKRQ.js.map +0 -1
  102. package/dist/chunk-SMLIWLS7.js +0 -236
  103. package/dist/chunk-SMLIWLS7.js.map +0 -1
  104. package/dist/chunk-UYMT4LO2.cjs +0 -241
  105. package/dist/chunk-UYMT4LO2.cjs.map +0 -1
  106. package/dist/chunk-XZL6MCZJ.cjs +0 -185
  107. package/dist/chunk-XZL6MCZJ.cjs.map +0 -1
  108. package/dist/chunk-ZO2FRJ2U.js.map +0 -1
  109. package/dist/chunk-ZQGOBVXZ.js +0 -1488
  110. package/dist/chunk-ZQGOBVXZ.js.map +0 -1
  111. package/dist/test-helpers-CIq1Hhj1.d.ts +0 -26
  112. package/dist/test-helpers-DPRFVky4.d.cts +0 -26
  113. package/dist/types-BRzHlhKC.d.cts +0 -14
  114. package/dist/types-BRzHlhKC.d.ts +0 -14
@@ -1,13 +1,12 @@
1
- import { S as SqlDialect } from '../types-BRzHlhKC.cjs';
2
- import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-DHRsi6j9.cjs';
3
- export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-DHRsi6j9.cjs';
4
- import { A as AnyEdgeType, N as NodeType } from '../types-DTJEu_-h.cjs';
1
+ import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-DolHw9pJ.cjs';
2
+ import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-BbMn2Ycv.cjs';
3
+ export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-BbMn2Ycv.cjs';
5
4
  import { SQLWrapper } from 'drizzle-orm';
6
5
  import { IndexBuilder } from 'drizzle-orm/pg-core';
7
6
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
8
- import { D as DeclaredIndex } from '../types-BL1GyVku.cjs';
7
+ import { D as DeclaredIndex } from '../types-DEMAqkA1.cjs';
9
8
  import 'zod';
10
- import '../ast-D-3bOanX.cjs';
9
+ import '../ast-Cq9qrnNP.cjs';
11
10
 
12
11
  type GenerateIndexDdlOptions = Readonly<{
13
12
  nodesTableName?: string | undefined;
@@ -1,13 +1,12 @@
1
- import { S as SqlDialect } from '../types-BRzHlhKC.js';
2
- import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-ZT5mlism.js';
3
- export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-ZT5mlism.js';
4
- import { A as AnyEdgeType, N as NodeType } from '../types-DTJEu_-h.js';
1
+ import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-DolHw9pJ.js';
2
+ import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-C2rhqkg7.js';
3
+ export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-C2rhqkg7.js';
5
4
  import { SQLWrapper } from 'drizzle-orm';
6
5
  import { IndexBuilder } from 'drizzle-orm/pg-core';
7
6
  import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
8
- import { D as DeclaredIndex } from '../types-DCGa53O2.js';
7
+ import { D as DeclaredIndex } from '../types-DJZoHy5R.js';
9
8
  import 'zod';
10
- import '../ast-CXFx6bF6.js';
9
+ import '../ast-CG87Zr6p.js';
11
10
 
12
11
  type GenerateIndexDdlOptions = Readonly<{
13
12
  nodesTableName?: string | undefined;
@@ -1,11 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-0NysX4s6.cjs';
3
- import { S as Store } from '../store-DhoA5uRc.cjs';
4
- import '../types-DTJEu_-h.cjs';
5
- import '../types-BUy-pHKH.cjs';
2
+ import { G as GraphDef } from '../manager-BImRiYwz.cjs';
3
+ import { D as Store } from '../store-DNv1yd3n.cjs';
4
+ import '../types-DolHw9pJ.cjs';
5
+ import '../types-SVDEKnU6.cjs';
6
6
  import 'drizzle-orm';
7
- import '../types-BRzHlhKC.cjs';
8
- import '../ast-D-3bOanX.cjs';
7
+ import '../ast-Cq9qrnNP.cjs';
9
8
 
10
9
  /**
11
10
  * Graph interchange format types.
@@ -1,11 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { G as GraphDef } from '../manager-DFKe7ql3.js';
3
- import { S as Store } from '../store-SiovWEYA.js';
4
- import '../types-DTJEu_-h.js';
5
- import '../types-6EKrWTs9.js';
2
+ import { G as GraphDef } from '../manager-DGQ9UF18.js';
3
+ import { D as Store } from '../store-CscQUG-S.js';
4
+ import '../types-DolHw9pJ.js';
5
+ import '../types-D5ggX07j.js';
6
6
  import 'drizzle-orm';
7
- import '../types-BRzHlhKC.js';
8
- import '../ast-CXFx6bF6.js';
7
+ import '../ast-CG87Zr6p.js';
9
8
 
10
9
  /**
11
10
  * Graph interchange format types.
@@ -1,5 +1,5 @@
1
- import { a as NodeRegistration, b as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, c as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DTJEu_-h.cjs';
2
- import { O as OntologyRelation, S as SerializedNodeDef, a as SerializedEdgeDef, e as SerializedSchema, G as GraphBackend, i as SchemaVersionRow } from './types-BUy-pHKH.cjs';
1
+ import { h as NodeRegistration, c as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, d as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DolHw9pJ.cjs';
2
+ import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-SVDEKnU6.cjs';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -490,4 +490,4 @@ declare function isSchemaInitialized(backend: GraphBackend, graphId: string): Pr
490
490
  */
491
491
  declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaDiff | undefined>;
492
492
 
493
- export { type AllEdgeTypes as A, type ChangeSeverity as C, type EdgeChange as E, type GraphDef as G, KindRegistry as K, type MigrationHookContext as M, type NodeChange as N, type OntologyChange as O, type SchemaDiff as S, type ChangeType as a, type SchemaManagerOptions as b, type SchemaValidationResult as c, computeSchemaDiff as d, ensureSchema as e, getMigrationActions as f, getActiveSchema as g, getSchemaChanges as h, initializeSchema as i, isBackwardsCompatible as j, isSchemaInitialized as k, type AllNodeTypes as l, migrateSchema as m, type EdgeKinds as n, type GetEdgeType as o, type GetNodeType as p, type NodeKinds as q, rollbackSchema as r, defineGraph as s, getEdgeKinds as t, getNodeKinds as u, isGraphDef as v };
493
+ export { type AllEdgeTypes as A, type ChangeSeverity as C, type EdgeKinds as E, type GraphDef as G, KindRegistry as K, type MigrationHookContext as M, type NodeKinds as N, type OntologyChange as O, type SchemaManagerOptions as S, type AllNodeTypes as a, type GetEdgeType as b, type GetNodeType as c, defineGraph as d, getNodeKinds as e, type SchemaValidationResult as f, getEdgeKinds as g, type ChangeType as h, isGraphDef as i, type EdgeChange as j, type NodeChange as k, type SchemaDiff as l, computeSchemaDiff as m, ensureSchema as n, getActiveSchema as o, getMigrationActions as p, getSchemaChanges as q, initializeSchema as r, isBackwardsCompatible as s, isSchemaInitialized as t, migrateSchema as u, rollbackSchema as v };
@@ -1,5 +1,5 @@
1
- import { a as NodeRegistration, b as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, c as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DTJEu_-h.js';
2
- import { O as OntologyRelation, S as SerializedNodeDef, a as SerializedEdgeDef, e as SerializedSchema, G as GraphBackend, i as SchemaVersionRow } from './types-6EKrWTs9.js';
1
+ import { h as NodeRegistration, c as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, d as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DolHw9pJ.js';
2
+ import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-D5ggX07j.js';
3
3
 
4
4
  /** Brand key for GraphDef */
5
5
  declare const GRAPH_DEF_BRAND: "__graphDef";
@@ -490,4 +490,4 @@ declare function isSchemaInitialized(backend: GraphBackend, graphId: string): Pr
490
490
  */
491
491
  declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaDiff | undefined>;
492
492
 
493
- export { type AllEdgeTypes as A, type ChangeSeverity as C, type EdgeChange as E, type GraphDef as G, KindRegistry as K, type MigrationHookContext as M, type NodeChange as N, type OntologyChange as O, type SchemaDiff as S, type ChangeType as a, type SchemaManagerOptions as b, type SchemaValidationResult as c, computeSchemaDiff as d, ensureSchema as e, getMigrationActions as f, getActiveSchema as g, getSchemaChanges as h, initializeSchema as i, isBackwardsCompatible as j, isSchemaInitialized as k, type AllNodeTypes as l, migrateSchema as m, type EdgeKinds as n, type GetEdgeType as o, type GetNodeType as p, type NodeKinds as q, rollbackSchema as r, defineGraph as s, getEdgeKinds as t, getNodeKinds as u, isGraphDef as v };
493
+ export { type AllEdgeTypes as A, type ChangeSeverity as C, type EdgeKinds as E, type GraphDef as G, KindRegistry as K, type MigrationHookContext as M, type NodeKinds as N, type OntologyChange as O, type SchemaManagerOptions as S, type AllNodeTypes as a, type GetEdgeType as b, type GetNodeType as c, defineGraph as d, getNodeKinds as e, type SchemaValidationResult as f, getEdgeKinds as g, type ChangeType as h, isGraphDef as i, type EdgeChange as j, type NodeChange as k, type SchemaDiff as l, computeSchemaDiff as m, ensureSchema as n, getActiveSchema as o, getMigrationActions as p, getSchemaChanges as q, initializeSchema as r, isBackwardsCompatible as s, isSchemaInitialized as t, migrateSchema as u, rollbackSchema as v };
@@ -1,13 +1,12 @@
1
- import { G as GraphDef } from '../manager-0NysX4s6.cjs';
2
- import { Q as QueryAst } from '../ast-D-3bOanX.cjs';
3
- import { S as Store } from '../store-DhoA5uRc.cjs';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-BL1GyVku.cjs';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-BL1GyVku.cjs';
6
- import '../types-DTJEu_-h.cjs';
1
+ import { G as GraphDef } from '../manager-BImRiYwz.cjs';
2
+ import { Q as QueryAst } from '../ast-Cq9qrnNP.cjs';
3
+ import { D as Store } from '../store-DNv1yd3n.cjs';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-DEMAqkA1.cjs';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-DEMAqkA1.cjs';
6
+ import '../types-DolHw9pJ.cjs';
7
7
  import 'zod';
8
- import '../types-BUy-pHKH.cjs';
8
+ import '../types-SVDEKnU6.cjs';
9
9
  import 'drizzle-orm';
10
- import '../types-BRzHlhKC.cjs';
11
10
 
12
11
  /**
13
12
  * QueryProfiler - Main profiler class.
@@ -1,13 +1,12 @@
1
- import { G as GraphDef } from '../manager-DFKe7ql3.js';
2
- import { Q as QueryAst } from '../ast-CXFx6bF6.js';
3
- import { S as Store } from '../store-SiovWEYA.js';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-DCGa53O2.js';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-DCGa53O2.js';
6
- import '../types-DTJEu_-h.js';
1
+ import { G as GraphDef } from '../manager-DGQ9UF18.js';
2
+ import { Q as QueryAst } from '../ast-CG87Zr6p.js';
3
+ import { D as Store } from '../store-CscQUG-S.js';
4
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-DJZoHy5R.js';
5
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-DJZoHy5R.js';
6
+ import '../types-DolHw9pJ.js';
7
7
  import 'zod';
8
- import '../types-6EKrWTs9.js';
8
+ import '../types-D5ggX07j.js';
9
9
  import 'drizzle-orm';
10
- import '../types-BRzHlhKC.js';
11
10
 
12
11
  /**
13
12
  * QueryProfiler - Main profiler class.
@@ -1,12 +1,11 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-0NysX4s6.cjs';
2
- export { C as ChangeSeverity, a as ChangeType, E as EdgeChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, b as SchemaManagerOptions, c as SchemaValidationResult, d as computeSchemaDiff, e as ensureSchema, g as getActiveSchema, f as getMigrationActions, h as getSchemaChanges, i as initializeSchema, j as isBackwardsCompatible, k as isSchemaInitialized, m as migrateSchema, r as rollbackSchema } from '../manager-0NysX4s6.cjs';
3
- import { S as SerializedNodeDef, a as SerializedEdgeDef, b as SerializedMetaEdge, c as SerializedOntologyRelation, d as SerializedClosures, e as SerializedSchema, f as SchemaHash } from '../types-BUy-pHKH.cjs';
4
- export { J as JsonSchema, g as SerializedOntology, h as SerializedUniqueConstraint } from '../types-BUy-pHKH.cjs';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-BImRiYwz.cjs';
2
+ export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-BImRiYwz.cjs';
3
+ import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-SVDEKnU6.cjs';
4
+ export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-SVDEKnU6.cjs';
5
5
  import { ZodType, ZodError } from 'zod';
6
- import { V as ValidationIssue, a as ValidationError } from '../index-DyrR_d-H.cjs';
7
- import '../types-DTJEu_-h.cjs';
6
+ import { k as ValidationIssue, V as ValidationError } from '../index-QTnQwakS.cjs';
7
+ import '../types-DolHw9pJ.cjs';
8
8
  import 'drizzle-orm';
9
- import '../types-BRzHlhKC.cjs';
10
9
 
11
10
  /**
12
11
  * Schema deserializer for loading stored schemas.
@@ -1,12 +1,11 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-DFKe7ql3.js';
2
- export { C as ChangeSeverity, a as ChangeType, E as EdgeChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, b as SchemaManagerOptions, c as SchemaValidationResult, d as computeSchemaDiff, e as ensureSchema, g as getActiveSchema, f as getMigrationActions, h as getSchemaChanges, i as initializeSchema, j as isBackwardsCompatible, k as isSchemaInitialized, m as migrateSchema, r as rollbackSchema } from '../manager-DFKe7ql3.js';
3
- import { S as SerializedNodeDef, a as SerializedEdgeDef, b as SerializedMetaEdge, c as SerializedOntologyRelation, d as SerializedClosures, e as SerializedSchema, f as SchemaHash } from '../types-6EKrWTs9.js';
4
- export { J as JsonSchema, g as SerializedOntology, h as SerializedUniqueConstraint } from '../types-6EKrWTs9.js';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-DGQ9UF18.js';
2
+ export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-DGQ9UF18.js';
3
+ import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-D5ggX07j.js';
4
+ export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-D5ggX07j.js';
5
5
  import { ZodType, ZodError } from 'zod';
6
- import { V as ValidationIssue, a as ValidationError } from '../index-DyrR_d-H.js';
7
- import '../types-DTJEu_-h.js';
6
+ import { k as ValidationIssue, V as ValidationError } from '../index-QTnQwakS.js';
7
+ import '../types-DolHw9pJ.js';
8
8
  import 'drizzle-orm';
9
- import '../types-BRzHlhKC.js';
10
9
 
11
10
  /**
12
11
  * Schema deserializer for loading stored schemas.
@@ -1,8 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { T as TypeGraphIndex } from '../../../types-ZT5mlism.js';
3
- import 'zod';
4
- import '../../../types-DTJEu_-h.js';
5
- import '../../../ast-CXFx6bF6.js';
2
+ import { T as TypeGraphIndex } from './types-C2rhqkg7.js';
6
3
 
7
4
  /**
8
5
  * Table name configuration.
@@ -2624,25 +2621,5 @@ declare const embeddings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2624
2621
  * Type representing the tables object returned by createSqliteTables.
2625
2622
  */
2626
2623
  type SqliteTables = ReturnType<typeof createSqliteTables>;
2627
- /**
2628
- * Type for nodes table.
2629
- */
2630
- type NodesTable = SqliteTables["nodes"];
2631
- /**
2632
- * Type for edges table.
2633
- */
2634
- type EdgesTable = SqliteTables["edges"];
2635
- /**
2636
- * Type for uniques table.
2637
- */
2638
- type UniquesTable = SqliteTables["uniques"];
2639
- /**
2640
- * Type for schema versions table.
2641
- */
2642
- type SchemaVersionsTable = SqliteTables["schemaVersions"];
2643
- /**
2644
- * Type for embeddings table.
2645
- */
2646
- type EmbeddingsTable = SqliteTables["embeddings"];
2647
2624
 
2648
- export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type SqliteTableNames, type SqliteTables, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
2625
+ export { type CreateSqliteTablesOptions as C, type SqliteTables as S, type SqliteTableNames as a, embeddings as b, createSqliteTables as c, edges as e, nodes as n, schemaVersions as s, tables as t, uniques as u };
@@ -1,8 +1,5 @@
1
1
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
2
- import { T as TypeGraphIndex } from '../../../types-DHRsi6j9.cjs';
3
- import 'zod';
4
- import '../../../types-DTJEu_-h.cjs';
5
- import '../../../ast-D-3bOanX.cjs';
2
+ import { T as TypeGraphIndex } from './types-BbMn2Ycv.cjs';
6
3
 
7
4
  /**
8
5
  * Table name configuration.
@@ -2624,25 +2621,5 @@ declare const embeddings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2624
2621
  * Type representing the tables object returned by createSqliteTables.
2625
2622
  */
2626
2623
  type SqliteTables = ReturnType<typeof createSqliteTables>;
2627
- /**
2628
- * Type for nodes table.
2629
- */
2630
- type NodesTable = SqliteTables["nodes"];
2631
- /**
2632
- * Type for edges table.
2633
- */
2634
- type EdgesTable = SqliteTables["edges"];
2635
- /**
2636
- * Type for uniques table.
2637
- */
2638
- type UniquesTable = SqliteTables["uniques"];
2639
- /**
2640
- * Type for schema versions table.
2641
- */
2642
- type SchemaVersionsTable = SqliteTables["schemaVersions"];
2643
- /**
2644
- * Type for embeddings table.
2645
- */
2646
- type EmbeddingsTable = SqliteTables["embeddings"];
2647
2624
 
2648
- export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type SqliteTableNames, type SqliteTables, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
2625
+ export { type CreateSqliteTablesOptions as C, type SqliteTables as S, type SqliteTableNames as a, embeddings as b, createSqliteTables as c, edges as e, nodes as n, schemaVersions as s, tables as t, uniques as u };
@@ -1,10 +1,9 @@
1
- import { k as SqlSchema, G as GraphBackend } from './types-6EKrWTs9.js';
2
- import { K as KindRegistry, G as GraphDef, b as SchemaManagerOptions, c as SchemaValidationResult } from './manager-DFKe7ql3.js';
3
- import { N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, b as EdgeRegistration, g as NodeId } from './types-DTJEu_-h.js';
4
- import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, d as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-CXFx6bF6.js';
1
+ import { S as SqlSchema, G as GraphBackend } from './types-D5ggX07j.js';
2
+ import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-DGQ9UF18.js';
3
+ import { S as SqlDialect, N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, c as EdgeRegistration, f as NodeId } from './types-DolHw9pJ.js';
4
+ import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, c as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-CG87Zr6p.js';
5
5
  import { SQL } from 'drizzle-orm';
6
6
  import { z } from 'zod';
7
- import { S as SqlDialect } from './types-BRzHlhKC.js';
8
7
 
9
8
  /**
10
9
  * Embedding type for vector search.
@@ -805,6 +804,18 @@ type EdgeGetOrCreateByEndpointsResult<E extends AnyEdgeType> = Readonly<{
805
804
  edge: Edge<E>;
806
805
  action: GetOrCreateAction;
807
806
  }>;
807
+ /**
808
+ * Options for edge findByEndpoints operations.
809
+ */
810
+ type EdgeFindByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
811
+ /**
812
+ * Edge property fields to include in the match alongside the (from, to) endpoints.
813
+ * When omitted, matches on endpoints only (returns first live edge).
814
+ */
815
+ matchOn?: readonly (keyof z.input<E["schema"]>)[];
816
+ /** Property values to match against when matchOn is specified. */
817
+ props?: Partial<z.input<E["schema"]>>;
818
+ }>;
808
819
  /**
809
820
  * Options for edge getOrCreateByEndpoints operations.
810
821
  */
@@ -920,6 +931,25 @@ type NodeCollection<N extends NodeType> = Readonly<{
920
931
  * that don't exist.
921
932
  */
922
933
  bulkDelete: (ids: readonly NodeId<N>[]) => Promise<void>;
934
+ /**
935
+ * Find a node by uniqueness constraint.
936
+ *
937
+ * Looks up a live node by the named constraint key computed from `props`.
938
+ * Returns the node if found, or undefined. Soft-deleted nodes are excluded.
939
+ *
940
+ * @param constraintName - Name of the uniqueness constraint to match on
941
+ * @param props - Properties to compute the constraint key from
942
+ */
943
+ findByConstraint: (constraintName: string, props: z.input<N["schema"]>) => Promise<Node<N> | undefined>;
944
+ /**
945
+ * Batch version of findByConstraint.
946
+ *
947
+ * Results are returned in the same order as the input items.
948
+ * Returns undefined for entries that don't match.
949
+ */
950
+ bulkFindByConstraint: (constraintName: string, items: readonly Readonly<{
951
+ props: z.input<N["schema"]>;
952
+ }>[]) => Promise<(Node<N> | undefined)[]>;
923
953
  /**
924
954
  * Get an existing node by uniqueness constraint, or create a new one.
925
955
  *
@@ -1103,6 +1133,17 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1103
1133
  * that don't exist.
1104
1134
  */
1105
1135
  bulkDelete: (ids: readonly string[]) => Promise<void>;
1136
+ /**
1137
+ * Find a live edge by endpoints and optional property fields.
1138
+ *
1139
+ * Returns the first matching live edge, or undefined.
1140
+ * Soft-deleted edges are excluded.
1141
+ *
1142
+ * @param from - Source node
1143
+ * @param to - Target node
1144
+ * @param options - Match criteria (matchOn fields and property values)
1145
+ */
1146
+ findByEndpoints: (from: TypedNodeRef<From>, to: TypedNodeRef<To>, options?: EdgeFindByEndpointsOptions<E>) => Promise<Edge<E> | undefined>;
1106
1147
  /**
1107
1148
  * Get an existing edge by endpoints and optional property fields, or create a new one.
1108
1149
  *
@@ -1833,6 +1874,16 @@ declare class Store<G extends GraphDef> {
1833
1874
  * ```
1834
1875
  */
1835
1876
  transaction<T>(fn: (tx: TransactionContext<G>) => Promise<T>): Promise<T>;
1877
+ /**
1878
+ * Hard-deletes all data for this graph from the database.
1879
+ *
1880
+ * Removes all nodes, edges, uniqueness entries, embeddings, and schema versions
1881
+ * for this graph's ID. No hooks, no per-row logic. Wrapped in a transaction
1882
+ * when the backend supports it.
1883
+ *
1884
+ * The store is usable after clearing — new data can be created immediately.
1885
+ */
1886
+ clear(): Promise<void>;
1836
1887
  /**
1837
1888
  * Closes the store and releases underlying resources.
1838
1889
  *
@@ -1903,4 +1954,4 @@ declare function createStore<G extends GraphDef>(graph: G, backend: GraphBackend
1903
1954
  */
1904
1955
  declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions & SchemaManagerOptions): Promise<[Store<G>, SchemaValidationResult]>;
1905
1956
 
1906
- export { exists as $, type AliasMap as A, type SelectableNode as B, type CreateQueryBuilderOptions as C, type StoreHooks as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type StoreOptions as J, type StreamOptions as K, type TransactionContext as L, type TypedEdgeCollection as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type RecursiveTraversalOptions as R, Store as S, TraversalBuilder as T, type TypedNodeRef as U, UnionableQuery as V, type UpdateEdgeInput as W, type UpdateNodeInput as X, createStore as Y, createStoreWithSchema as Z, embedding as _, type AggregateResult as a, fieldRef as a0, getEmbeddingDimensions as a1, inSubquery as a2, isEmbeddingSchema as a3, isParameterRef as a4, notExists as a5, notInSubquery as a6, param as a7, type CreateEdgeInput as b, type CreateNodeInput as c, type Edge as d, type EdgeAccessor as e, type EdgeCollection as f, type EdgeGetOrCreateByEndpointsOptions as g, type EdgeGetOrCreateByEndpointsResult as h, type EmbeddingSchema as i, type EmbeddingValue as j, ExecutableAggregateQuery as k, ExecutableQuery as l, type NodeAccessor as m, type NodeAlias as n, type NodeCollection as o, type NodeGetOrCreateByConstraintOptions as p, type NodeGetOrCreateByConstraintResult as q, type NodeRef as r, type PaginatedResult as s, type Predicate as t, PreparedQuery as u, type PropsAccessor as v, type QueryHookContext as w, type QueryOptions as x, type SelectContext as y, type SelectableEdge as z };
1957
+ export { embedding as $, type AliasMap as A, type SelectableNode as B, type CreateQueryBuilderOptions as C, Store as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type StoreHooks as J, type StoreOptions as K, type StreamOptions as L, type TransactionContext as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type RecursiveTraversalOptions as R, type SelectContext as S, TraversalBuilder as T, type TypedEdgeCollection as U, type TypedNodeRef as V, UnionableQuery as W, type UpdateEdgeInput as X, type UpdateNodeInput as Y, createStore as Z, createStoreWithSchema as _, type AggregateResult as a, exists as a0, fieldRef as a1, getEmbeddingDimensions as a2, inSubquery as a3, isEmbeddingSchema as a4, isParameterRef as a5, notExists as a6, notInSubquery as a7, param as a8, type CreateEdgeInput as b, type CreateNodeInput as c, type Edge as d, type EdgeAccessor as e, type EdgeCollection as f, type EdgeFindByEndpointsOptions as g, type EdgeGetOrCreateByEndpointsOptions as h, type EdgeGetOrCreateByEndpointsResult as i, type EmbeddingSchema as j, type EmbeddingValue as k, ExecutableAggregateQuery as l, ExecutableQuery as m, type NodeAccessor as n, type NodeAlias as o, type NodeCollection as p, type NodeGetOrCreateByConstraintOptions as q, type NodeGetOrCreateByConstraintResult as r, type NodeRef as s, type PaginatedResult as t, type Predicate as u, PreparedQuery as v, type PropsAccessor as w, type QueryHookContext as x, type QueryOptions as y, type SelectableEdge as z };
@@ -1,10 +1,9 @@
1
- import { k as SqlSchema, G as GraphBackend } from './types-BUy-pHKH.cjs';
2
- import { K as KindRegistry, G as GraphDef, b as SchemaManagerOptions, c as SchemaValidationResult } from './manager-0NysX4s6.cjs';
3
- import { N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, b as EdgeRegistration, g as NodeId } from './types-DTJEu_-h.cjs';
4
- import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, d as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-D-3bOanX.cjs';
1
+ import { S as SqlSchema, G as GraphBackend } from './types-SVDEKnU6.cjs';
2
+ import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-BImRiYwz.cjs';
3
+ import { S as SqlDialect, N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, c as EdgeRegistration, f as NodeId } from './types-DolHw9pJ.cjs';
4
+ import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, c as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-Cq9qrnNP.cjs';
5
5
  import { SQL } from 'drizzle-orm';
6
6
  import { z } from 'zod';
7
- import { S as SqlDialect } from './types-BRzHlhKC.cjs';
8
7
 
9
8
  /**
10
9
  * Embedding type for vector search.
@@ -805,6 +804,18 @@ type EdgeGetOrCreateByEndpointsResult<E extends AnyEdgeType> = Readonly<{
805
804
  edge: Edge<E>;
806
805
  action: GetOrCreateAction;
807
806
  }>;
807
+ /**
808
+ * Options for edge findByEndpoints operations.
809
+ */
810
+ type EdgeFindByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
811
+ /**
812
+ * Edge property fields to include in the match alongside the (from, to) endpoints.
813
+ * When omitted, matches on endpoints only (returns first live edge).
814
+ */
815
+ matchOn?: readonly (keyof z.input<E["schema"]>)[];
816
+ /** Property values to match against when matchOn is specified. */
817
+ props?: Partial<z.input<E["schema"]>>;
818
+ }>;
808
819
  /**
809
820
  * Options for edge getOrCreateByEndpoints operations.
810
821
  */
@@ -920,6 +931,25 @@ type NodeCollection<N extends NodeType> = Readonly<{
920
931
  * that don't exist.
921
932
  */
922
933
  bulkDelete: (ids: readonly NodeId<N>[]) => Promise<void>;
934
+ /**
935
+ * Find a node by uniqueness constraint.
936
+ *
937
+ * Looks up a live node by the named constraint key computed from `props`.
938
+ * Returns the node if found, or undefined. Soft-deleted nodes are excluded.
939
+ *
940
+ * @param constraintName - Name of the uniqueness constraint to match on
941
+ * @param props - Properties to compute the constraint key from
942
+ */
943
+ findByConstraint: (constraintName: string, props: z.input<N["schema"]>) => Promise<Node<N> | undefined>;
944
+ /**
945
+ * Batch version of findByConstraint.
946
+ *
947
+ * Results are returned in the same order as the input items.
948
+ * Returns undefined for entries that don't match.
949
+ */
950
+ bulkFindByConstraint: (constraintName: string, items: readonly Readonly<{
951
+ props: z.input<N["schema"]>;
952
+ }>[]) => Promise<(Node<N> | undefined)[]>;
923
953
  /**
924
954
  * Get an existing node by uniqueness constraint, or create a new one.
925
955
  *
@@ -1103,6 +1133,17 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
1103
1133
  * that don't exist.
1104
1134
  */
1105
1135
  bulkDelete: (ids: readonly string[]) => Promise<void>;
1136
+ /**
1137
+ * Find a live edge by endpoints and optional property fields.
1138
+ *
1139
+ * Returns the first matching live edge, or undefined.
1140
+ * Soft-deleted edges are excluded.
1141
+ *
1142
+ * @param from - Source node
1143
+ * @param to - Target node
1144
+ * @param options - Match criteria (matchOn fields and property values)
1145
+ */
1146
+ findByEndpoints: (from: TypedNodeRef<From>, to: TypedNodeRef<To>, options?: EdgeFindByEndpointsOptions<E>) => Promise<Edge<E> | undefined>;
1106
1147
  /**
1107
1148
  * Get an existing edge by endpoints and optional property fields, or create a new one.
1108
1149
  *
@@ -1833,6 +1874,16 @@ declare class Store<G extends GraphDef> {
1833
1874
  * ```
1834
1875
  */
1835
1876
  transaction<T>(fn: (tx: TransactionContext<G>) => Promise<T>): Promise<T>;
1877
+ /**
1878
+ * Hard-deletes all data for this graph from the database.
1879
+ *
1880
+ * Removes all nodes, edges, uniqueness entries, embeddings, and schema versions
1881
+ * for this graph's ID. No hooks, no per-row logic. Wrapped in a transaction
1882
+ * when the backend supports it.
1883
+ *
1884
+ * The store is usable after clearing — new data can be created immediately.
1885
+ */
1886
+ clear(): Promise<void>;
1836
1887
  /**
1837
1888
  * Closes the store and releases underlying resources.
1838
1889
  *
@@ -1903,4 +1954,4 @@ declare function createStore<G extends GraphDef>(graph: G, backend: GraphBackend
1903
1954
  */
1904
1955
  declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions & SchemaManagerOptions): Promise<[Store<G>, SchemaValidationResult]>;
1905
1956
 
1906
- export { exists as $, type AliasMap as A, type SelectableNode as B, type CreateQueryBuilderOptions as C, type StoreHooks as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type StoreOptions as J, type StreamOptions as K, type TransactionContext as L, type TypedEdgeCollection as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type RecursiveTraversalOptions as R, Store as S, TraversalBuilder as T, type TypedNodeRef as U, UnionableQuery as V, type UpdateEdgeInput as W, type UpdateNodeInput as X, createStore as Y, createStoreWithSchema as Z, embedding as _, type AggregateResult as a, fieldRef as a0, getEmbeddingDimensions as a1, inSubquery as a2, isEmbeddingSchema as a3, isParameterRef as a4, notExists as a5, notInSubquery as a6, param as a7, type CreateEdgeInput as b, type CreateNodeInput as c, type Edge as d, type EdgeAccessor as e, type EdgeCollection as f, type EdgeGetOrCreateByEndpointsOptions as g, type EdgeGetOrCreateByEndpointsResult as h, type EmbeddingSchema as i, type EmbeddingValue as j, ExecutableAggregateQuery as k, ExecutableQuery as l, type NodeAccessor as m, type NodeAlias as n, type NodeCollection as o, type NodeGetOrCreateByConstraintOptions as p, type NodeGetOrCreateByConstraintResult as q, type NodeRef as r, type PaginatedResult as s, type Predicate as t, PreparedQuery as u, type PropsAccessor as v, type QueryHookContext as w, type QueryOptions as x, type SelectContext as y, type SelectableEdge as z };
1957
+ export { embedding as $, type AliasMap as A, type SelectableNode as B, type CreateQueryBuilderOptions as C, Store as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type StoreHooks as J, type StoreOptions as K, type StreamOptions as L, type TransactionContext as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type RecursiveTraversalOptions as R, type SelectContext as S, TraversalBuilder as T, type TypedEdgeCollection as U, type TypedNodeRef as V, UnionableQuery as W, type UpdateEdgeInput as X, type UpdateNodeInput as Y, createStore as Z, createStoreWithSchema as _, type AggregateResult as a, exists as a0, fieldRef as a1, getEmbeddingDimensions as a2, inSubquery as a3, isEmbeddingSchema as a4, isParameterRef as a5, notExists as a6, notInSubquery as a7, param as a8, type CreateEdgeInput as b, type CreateNodeInput as c, type Edge as d, type EdgeAccessor as e, type EdgeCollection as f, type EdgeFindByEndpointsOptions as g, type EdgeGetOrCreateByEndpointsOptions as h, type EdgeGetOrCreateByEndpointsResult as i, type EmbeddingSchema as j, type EmbeddingValue as k, ExecutableAggregateQuery as l, ExecutableQuery as m, type NodeAccessor as n, type NodeAlias as o, type NodeCollection as p, type NodeGetOrCreateByConstraintOptions as q, type NodeGetOrCreateByConstraintResult as r, type NodeRef as s, type PaginatedResult as t, type Predicate as u, PreparedQuery as v, type PropsAccessor as w, type QueryHookContext as x, type QueryOptions as y, type SelectableEdge as z };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as AnyEdgeType, E as EdgeType, N as NodeType } from './types-DTJEu_-h.cjs';
3
- import { J as JsonPointer, V as ValueType, a as JsonPointerFor, b as JsonPointerSegmentsFor } from './ast-D-3bOanX.cjs';
2
+ import { A as AnyEdgeType, E as EdgeType, N as NodeType } from './types-DolHw9pJ.cjs';
3
+ import { J as JsonPointer, V as ValueType, b as JsonPointerFor, f as JsonPointerSegmentsFor } from './ast-Cq9qrnNP.cjs';
4
4
 
5
5
  type IndexScope =
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as AnyEdgeType, E as EdgeType, N as NodeType } from './types-DTJEu_-h.js';
3
- import { J as JsonPointer, V as ValueType, a as JsonPointerFor, b as JsonPointerSegmentsFor } from './ast-CXFx6bF6.js';
2
+ import { A as AnyEdgeType, E as EdgeType, N as NodeType } from './types-DolHw9pJ.js';
3
+ import { J as JsonPointer, V as ValueType, b as JsonPointerFor, f as JsonPointerSegmentsFor } from './ast-CG87Zr6p.js';
4
4
 
5
5
  type IndexScope =
6
6
  /**
@@ -1,6 +1,5 @@
1
1
  import { SQL } from 'drizzle-orm';
2
- import { N as NodeType, E as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, d as Cardinality, e as EndpointExistence, T as TemporalMode } from './types-DTJEu_-h.js';
3
- import { S as SqlDialect } from './types-BRzHlhKC.js';
2
+ import { N as NodeType, E as EdgeType, i as UniquenessScope, a as Collation, D as DeleteBehavior, C as Cardinality, e as EndpointExistence, T as TemporalMode, S as SqlDialect } from './types-DolHw9pJ.js';
4
3
 
5
4
  /** Brand key for MetaEdge */
6
5
  declare const META_EDGE_BRAND: "__metaEdge";
@@ -583,6 +582,11 @@ type GraphBackend = Readonly<{
583
582
  vectorSearch?: (params: VectorSearchParams) => Promise<readonly VectorSearchResult[]>;
584
583
  createVectorIndex?: (params: CreateVectorIndexParams) => Promise<void>;
585
584
  dropVectorIndex?: (params: DropVectorIndexParams) => Promise<void>;
585
+ /**
586
+ * Hard-deletes all data for a graph (nodes, edges, uniques, embeddings, schema versions).
587
+ * Intended for import-replacement workflows. No hooks, no per-row logic.
588
+ */
589
+ clearGraph: (graphId: string) => Promise<void>;
586
590
  execute: <T>(query: SQL) => Promise<readonly T[]>;
587
591
  /** Execute pre-compiled SQL text with bound parameters. Available on sync SQLite and pg backends. */
588
592
  executeRaw?: <T>(sqlText: string, params: readonly unknown[]) => Promise<readonly T[]>;
@@ -741,4 +745,4 @@ type CountEdgesByKindParams = Readonly<{
741
745
  asOf?: string;
742
746
  }>;
743
747
 
744
- export { DEFAULT_SQL_SCHEMA as D, type GraphBackend as G, type InferenceType as I, type JsonSchema as J, type MetaEdge as M, type OntologyRelation as O, type SerializedNodeDef as S, type TransactionBackend as T, type SerializedEdgeDef as a, type SerializedMetaEdge as b, type SerializedOntologyRelation as c, type SerializedClosures as d, type SerializedSchema as e, type SchemaHash as f, type SerializedOntology as g, type SerializedUniqueConstraint as h, type SchemaVersionRow as i, type MetaEdgeProperties as j, type SqlSchema as k, type SqlTableNames as l, createSqlSchema as m, isMetaEdge as n };
748
+ export { DEFAULT_SQL_SCHEMA as D, type GraphBackend as G, type InferenceType as I, type JsonSchema as J, type MetaEdge as M, type OntologyRelation as O, type SqlSchema as S, type TransactionBackend as T, type MetaEdgeProperties as a, type SqlTableNames as b, createSqlSchema as c, type SerializedNodeDef as d, type SerializedEdgeDef as e, type SerializedMetaEdge as f, type SerializedOntologyRelation as g, type SerializedClosures as h, isMetaEdge as i, type SerializedSchema as j, type SchemaHash as k, type SerializedOntology as l, type SerializedUniqueConstraint as m, type SchemaVersionRow as n };
@@ -1,4 +1,4 @@
1
- import { J as JsonPointer } from './ast-D-3bOanX.cjs';
1
+ import { J as JsonPointer } from './ast-Cq9qrnNP.cjs';
2
2
 
3
3
  /**
4
4
  * QueryProfiler types.
@@ -1,4 +1,4 @@
1
- import { J as JsonPointer } from './ast-CXFx6bF6.js';
1
+ import { J as JsonPointer } from './ast-CG87Zr6p.js';
2
2
 
3
3
  /**
4
4
  * QueryProfiler types.
@@ -155,4 +155,17 @@ declare function isEdgeType(value: unknown): value is AnyEdgeType;
155
155
  */
156
156
  declare function isEdgeTypeWithEndpoints(value: unknown): value is EdgeTypeWithEndpoints;
157
157
 
158
- export { type AnyEdgeType as A, type Collation as C, type DeleteBehavior as D, type EdgeType as E, type GraphDefaults as G, type NodeType as N, type TemporalMode as T, type UniquenessScope as U, type NodeRegistration as a, type EdgeRegistration as b, type EdgeTypeWithEndpoints as c, type Cardinality as d, type EndpointExistence as e, type EdgeProps as f, type NodeId as g, type NodeProps as h, type UniqueConstraint as i, isEdgeType as j, isEdgeTypeWithEndpoints as k, isNodeType as l };
158
+ /**
159
+ * SQL Dialect Abstraction Layer
160
+ *
161
+ * Provides a unified interface for dialect-specific SQL generation.
162
+ * Implementing a new dialect (MySQL, SQL Server, etc.) requires
163
+ * implementing this interface.
164
+ */
165
+
166
+ /**
167
+ * Supported SQL dialects.
168
+ */
169
+ type SqlDialect = "sqlite" | "postgres";
170
+
171
+ export { type AnyEdgeType as A, type Cardinality as C, type DeleteBehavior as D, type EdgeType as E, type GraphDefaults as G, type NodeType as N, type SqlDialect as S, type TemporalMode as T, type UniqueConstraint as U, type Collation as a, type EdgeProps as b, type EdgeRegistration as c, type EdgeTypeWithEndpoints as d, type EndpointExistence as e, type NodeId as f, type NodeProps as g, type NodeRegistration as h, type UniquenessScope as i, isEdgeType as j, isEdgeTypeWithEndpoints as k, isNodeType as l };
@@ -155,4 +155,17 @@ declare function isEdgeType(value: unknown): value is AnyEdgeType;
155
155
  */
156
156
  declare function isEdgeTypeWithEndpoints(value: unknown): value is EdgeTypeWithEndpoints;
157
157
 
158
- export { type AnyEdgeType as A, type Collation as C, type DeleteBehavior as D, type EdgeType as E, type GraphDefaults as G, type NodeType as N, type TemporalMode as T, type UniquenessScope as U, type NodeRegistration as a, type EdgeRegistration as b, type EdgeTypeWithEndpoints as c, type Cardinality as d, type EndpointExistence as e, type EdgeProps as f, type NodeId as g, type NodeProps as h, type UniqueConstraint as i, isEdgeType as j, isEdgeTypeWithEndpoints as k, isNodeType as l };
158
+ /**
159
+ * SQL Dialect Abstraction Layer
160
+ *
161
+ * Provides a unified interface for dialect-specific SQL generation.
162
+ * Implementing a new dialect (MySQL, SQL Server, etc.) requires
163
+ * implementing this interface.
164
+ */
165
+
166
+ /**
167
+ * Supported SQL dialects.
168
+ */
169
+ type SqlDialect = "sqlite" | "postgres";
170
+
171
+ export { type AnyEdgeType as A, type Cardinality as C, type DeleteBehavior as D, type EdgeType as E, type GraphDefaults as G, type NodeType as N, type SqlDialect as S, type TemporalMode as T, type UniqueConstraint as U, type Collation as a, type EdgeProps as b, type EdgeRegistration as c, type EdgeTypeWithEndpoints as d, type EndpointExistence as e, type NodeId as f, type NodeProps as g, type NodeRegistration as h, type UniquenessScope as i, isEdgeType as j, isEdgeTypeWithEndpoints as k, isNodeType as l };