@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.
- package/README.md +2 -2
- package/dist/{ast-CXFx6bF6.d.ts → ast-CG87Zr6p.d.ts} +2 -2
- package/dist/{ast-D-3bOanX.d.cts → ast-Cq9qrnNP.d.cts} +2 -2
- package/dist/backend/postgres/index.cjs +295 -23
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +33 -10
- package/dist/backend/postgres/index.d.ts +33 -10
- package/dist/backend/postgres/index.js +285 -5
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +21 -90
- package/dist/backend/sqlite/index.cjs.map +1 -1
- package/dist/backend/sqlite/index.d.cts +22 -58
- package/dist/backend/sqlite/index.d.ts +22 -58
- package/dist/backend/sqlite/index.js +3 -78
- package/dist/backend/sqlite/index.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +83 -0
- package/dist/backend/sqlite/local.cjs.map +1 -0
- package/dist/backend/sqlite/local.d.cts +66 -0
- package/dist/backend/sqlite/local.d.ts +66 -0
- package/dist/backend/sqlite/local.js +77 -0
- package/dist/backend/sqlite/local.js.map +1 -0
- package/dist/chunk-23NGZHUN.cjs +2132 -0
- package/dist/chunk-23NGZHUN.cjs.map +1 -0
- package/dist/{chunk-ZO2FRJ2U.js → chunk-2DKSQNPW.js} +3 -4
- package/dist/chunk-2DKSQNPW.js.map +1 -0
- package/dist/chunk-JPO7W262.js +2093 -0
- package/dist/chunk-JPO7W262.js.map +1 -0
- package/dist/{chunk-NYDXJGA3.cjs → chunk-K5O7TOJO.cjs} +15 -16
- package/dist/chunk-K5O7TOJO.cjs.map +1 -0
- package/dist/{backend/drizzle/schema/postgres.d.ts → ddl-Bcyb4DW1.d.cts} +17 -17
- package/dist/{backend/drizzle/schema/postgres.d.cts → ddl-D7DQx8w8.d.ts} +17 -17
- package/dist/{index-DyrR_d-H.d.cts → index-QTnQwakS.d.cts} +1 -1
- package/dist/{index-DyrR_d-H.d.ts → index-QTnQwakS.d.ts} +1 -1
- package/dist/index.cjs +238 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.js +238 -1
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +5 -6
- package/dist/indexes/index.d.ts +5 -6
- package/dist/interchange/index.d.cts +5 -6
- package/dist/interchange/index.d.ts +5 -6
- package/dist/{manager-0NysX4s6.d.cts → manager-BImRiYwz.d.cts} +3 -3
- package/dist/{manager-DFKe7ql3.d.ts → manager-DGQ9UF18.d.ts} +3 -3
- package/dist/profiler/index.d.cts +7 -8
- package/dist/profiler/index.d.ts +7 -8
- package/dist/schema/index.d.cts +6 -7
- package/dist/schema/index.d.ts +6 -7
- package/dist/{backend/drizzle/schema/sqlite.d.ts → sqlite-CSJ-fgIm.d.ts} +2 -25
- package/dist/{backend/drizzle/schema/sqlite.d.cts → sqlite-FWGZLwDd.d.cts} +2 -25
- package/dist/{store-SiovWEYA.d.ts → store-CscQUG-S.d.ts} +57 -6
- package/dist/{store-DhoA5uRc.d.cts → store-DNv1yd3n.d.cts} +57 -6
- package/dist/{types-DHRsi6j9.d.cts → types-BbMn2Ycv.d.cts} +2 -2
- package/dist/{types-ZT5mlism.d.ts → types-C2rhqkg7.d.ts} +2 -2
- package/dist/{types-6EKrWTs9.d.ts → types-D5ggX07j.d.ts} +7 -3
- package/dist/{types-BL1GyVku.d.cts → types-DEMAqkA1.d.cts} +1 -1
- package/dist/{types-DCGa53O2.d.ts → types-DJZoHy5R.d.ts} +1 -1
- package/dist/{types-DTJEu_-h.d.ts → types-DolHw9pJ.d.cts} +14 -1
- package/dist/{types-DTJEu_-h.d.cts → types-DolHw9pJ.d.ts} +14 -1
- package/dist/{types-BUy-pHKH.d.cts → types-SVDEKnU6.d.cts} +7 -3
- package/package.json +6 -46
- package/dist/backend/drizzle/index.cjs +0 -40
- package/dist/backend/drizzle/index.cjs.map +0 -1
- package/dist/backend/drizzle/index.d.cts +0 -13
- package/dist/backend/drizzle/index.d.ts +0 -13
- package/dist/backend/drizzle/index.js +0 -11
- package/dist/backend/drizzle/index.js.map +0 -1
- package/dist/backend/drizzle/postgres.cjs +0 -26
- package/dist/backend/drizzle/postgres.cjs.map +0 -1
- package/dist/backend/drizzle/postgres.d.cts +0 -35
- package/dist/backend/drizzle/postgres.d.ts +0 -35
- package/dist/backend/drizzle/postgres.js +0 -9
- package/dist/backend/drizzle/postgres.js.map +0 -1
- package/dist/backend/drizzle/schema/postgres.cjs +0 -39
- package/dist/backend/drizzle/schema/postgres.cjs.map +0 -1
- package/dist/backend/drizzle/schema/postgres.js +0 -6
- package/dist/backend/drizzle/schema/postgres.js.map +0 -1
- package/dist/backend/drizzle/schema/sqlite.cjs +0 -39
- package/dist/backend/drizzle/schema/sqlite.cjs.map +0 -1
- package/dist/backend/drizzle/schema/sqlite.js +0 -6
- package/dist/backend/drizzle/schema/sqlite.js.map +0 -1
- package/dist/backend/drizzle/sqlite.cjs +0 -26
- package/dist/backend/drizzle/sqlite.cjs.map +0 -1
- package/dist/backend/drizzle/sqlite.d.cts +0 -35
- package/dist/backend/drizzle/sqlite.d.ts +0 -35
- package/dist/backend/drizzle/sqlite.js +0 -9
- package/dist/backend/drizzle/sqlite.js.map +0 -1
- package/dist/chunk-3PURVEA4.js +0 -193
- package/dist/chunk-3PURVEA4.js.map +0 -1
- package/dist/chunk-7RVSDXT3.cjs +0 -1509
- package/dist/chunk-7RVSDXT3.cjs.map +0 -1
- package/dist/chunk-LUARLSYT.cjs +0 -289
- package/dist/chunk-LUARLSYT.cjs.map +0 -1
- package/dist/chunk-NU2XNMVI.cjs +0 -201
- package/dist/chunk-NU2XNMVI.cjs.map +0 -1
- package/dist/chunk-NYDXJGA3.cjs.map +0 -1
- package/dist/chunk-OGGLFYFA.js +0 -177
- package/dist/chunk-OGGLFYFA.js.map +0 -1
- package/dist/chunk-Q6PXIKRQ.js +0 -287
- package/dist/chunk-Q6PXIKRQ.js.map +0 -1
- package/dist/chunk-SMLIWLS7.js +0 -236
- package/dist/chunk-SMLIWLS7.js.map +0 -1
- package/dist/chunk-UYMT4LO2.cjs +0 -241
- package/dist/chunk-UYMT4LO2.cjs.map +0 -1
- package/dist/chunk-XZL6MCZJ.cjs +0 -185
- package/dist/chunk-XZL6MCZJ.cjs.map +0 -1
- package/dist/chunk-ZO2FRJ2U.js.map +0 -1
- package/dist/chunk-ZQGOBVXZ.js +0 -1488
- package/dist/chunk-ZQGOBVXZ.js.map +0 -1
- package/dist/test-helpers-CIq1Hhj1.d.ts +0 -26
- package/dist/test-helpers-DPRFVky4.d.cts +0 -26
- package/dist/types-BRzHlhKC.d.cts +0 -14
- package/dist/types-BRzHlhKC.d.ts +0 -14
package/dist/indexes/index.d.cts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { S as SqlDialect } from '../types-
|
|
2
|
-
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-
|
|
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-
|
|
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-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-DEMAqkA1.cjs';
|
|
9
8
|
import 'zod';
|
|
10
|
-
import '../ast-
|
|
9
|
+
import '../ast-Cq9qrnNP.cjs';
|
|
11
10
|
|
|
12
11
|
type GenerateIndexDdlOptions = Readonly<{
|
|
13
12
|
nodesTableName?: string | undefined;
|
package/dist/indexes/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { S as SqlDialect } from '../types-
|
|
2
|
-
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-
|
|
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-
|
|
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-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-DJZoHy5R.js';
|
|
9
8
|
import 'zod';
|
|
10
|
-
import '../ast-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
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 '../
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
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 '../
|
|
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 {
|
|
2
|
-
import { O as OntologyRelation,
|
|
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
|
|
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 {
|
|
2
|
-
import { O as OntologyRelation,
|
|
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
|
|
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-
|
|
2
|
-
import { Q as QueryAst } from '../ast-
|
|
3
|
-
import {
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
6
|
-
import '../types-
|
|
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-
|
|
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.
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { G as GraphDef } from '../manager-
|
|
2
|
-
import { Q as QueryAst } from '../ast-
|
|
3
|
-
import {
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
6
|
-
import '../types-
|
|
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-
|
|
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.
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity,
|
|
3
|
-
import {
|
|
4
|
-
export { J as JsonSchema,
|
|
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 {
|
|
7
|
-
import '../types-
|
|
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.
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity,
|
|
3
|
-
import {
|
|
4
|
-
export { J as JsonSchema,
|
|
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 {
|
|
7
|
-
import '../types-
|
|
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 '
|
|
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
|
|
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 '
|
|
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
|
|
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 {
|
|
2
|
-
import { K as KindRegistry, G as GraphDef,
|
|
3
|
-
import { N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType,
|
|
4
|
-
import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef,
|
|
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 {
|
|
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 {
|
|
2
|
-
import { K as KindRegistry, G as GraphDef,
|
|
3
|
-
import { N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType,
|
|
4
|
-
import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef,
|
|
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 {
|
|
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-
|
|
3
|
-
import { J as JsonPointer, V as ValueType,
|
|
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-
|
|
3
|
-
import { J as JsonPointer, V as ValueType,
|
|
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,
|
|
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
|
|
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 };
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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 };
|