@nicia-ai/typegraph 0.28.0 → 0.29.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/dist/backend/postgres/index.cjs +23 -761
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +24 -5
- package/dist/backend/postgres/index.d.ts +24 -5
- package/dist/backend/postgres/index.js +10 -752
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +52 -0
- package/dist/backend/postgres/pglite.cjs.map +1 -0
- package/dist/backend/postgres/pglite.d.cts +116 -0
- package/dist/backend/postgres/pglite.d.ts +116 -0
- package/dist/backend/postgres/pglite.js +50 -0
- package/dist/backend/postgres/pglite.js.map +1 -0
- package/dist/backend/sqlite/index.cjs +22 -26
- package/dist/backend/sqlite/index.d.cts +17 -15
- package/dist/backend/sqlite/index.d.ts +17 -15
- package/dist/backend/sqlite/index.js +9 -9
- package/dist/backend/sqlite/libsql.cjs +17 -13
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +16 -12
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +17 -16
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +15 -14
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-DFHLG75V.js → chunk-3DTLDGIM.js} +386 -1093
- package/dist/chunk-3DTLDGIM.js.map +1 -0
- package/dist/{chunk-WVQXAFP3.js → chunk-454I6GDF.js} +46 -5
- package/dist/chunk-454I6GDF.js.map +1 -0
- package/dist/chunk-4K6IHUW6.cjs +183 -0
- package/dist/chunk-4K6IHUW6.cjs.map +1 -0
- package/dist/{chunk-ZTREJOGB.js → chunk-7KLVFWXR.js} +113 -68
- package/dist/chunk-7KLVFWXR.js.map +1 -0
- package/dist/{chunk-UKG7XHZ3.js → chunk-A4H6QMV4.js} +110 -102
- package/dist/chunk-A4H6QMV4.js.map +1 -0
- package/dist/{chunk-E5ROA3MN.js → chunk-BMDF2S7S.js} +3 -3
- package/dist/{chunk-E5ROA3MN.js.map → chunk-BMDF2S7S.js.map} +1 -1
- package/dist/{chunk-PN37HVAV.cjs → chunk-C2RWFIYP.cjs} +121 -67
- package/dist/chunk-C2RWFIYP.cjs.map +1 -0
- package/dist/chunk-CUZGBWFT.js +206 -0
- package/dist/chunk-CUZGBWFT.js.map +1 -0
- package/dist/chunk-F2Q76CQ4.cjs +266 -0
- package/dist/chunk-F2Q76CQ4.cjs.map +1 -0
- package/dist/{chunk-YEDQLNVE.cjs → chunk-G6P3OVDY.cjs} +14 -2
- package/dist/chunk-G6P3OVDY.cjs.map +1 -0
- package/dist/chunk-GPUNAJFH.js +181 -0
- package/dist/chunk-GPUNAJFH.js.map +1 -0
- package/dist/chunk-HKN622O4.js +254 -0
- package/dist/chunk-HKN622O4.js.map +1 -0
- package/dist/{chunk-PYJOBZR3.cjs → chunk-HM6XMR3E.cjs} +52 -52
- package/dist/chunk-HM6XMR3E.cjs.map +1 -0
- package/dist/chunk-IE2TPFBT.js +305 -0
- package/dist/chunk-IE2TPFBT.js.map +1 -0
- package/dist/chunk-KGAJ5HFO.cjs +319 -0
- package/dist/chunk-KGAJ5HFO.cjs.map +1 -0
- package/dist/chunk-M6OC455F.js +65 -0
- package/dist/chunk-M6OC455F.js.map +1 -0
- package/dist/{chunk-U5ROKVRF.js → chunk-MB363HT5.js} +14 -3
- package/dist/chunk-MB363HT5.js.map +1 -0
- package/dist/{chunk-X53YKGHR.js → chunk-MRMD7S7E.js} +9 -9
- package/dist/{chunk-X53YKGHR.js.map → chunk-MRMD7S7E.js.map} +1 -1
- package/dist/{chunk-OOS2RKRH.js → chunk-N3VVQDMA.js} +3 -3
- package/dist/{chunk-OOS2RKRH.js.map → chunk-N3VVQDMA.js.map} +1 -1
- package/dist/{chunk-EJCDOA37.js → chunk-OGUH56BB.js} +4 -4
- package/dist/{chunk-EJCDOA37.js.map → chunk-OGUH56BB.js.map} +1 -1
- package/dist/chunk-Q3ZZLU3O.cjs +12 -0
- package/dist/{chunk-4FJVSF3K.cjs.map → chunk-Q3ZZLU3O.cjs.map} +1 -1
- package/dist/chunk-Q5ASTPM4.cjs +208 -0
- package/dist/chunk-Q5ASTPM4.cjs.map +1 -0
- package/dist/{chunk-WFUN6DCM.cjs → chunk-R2LA6MKR.cjs} +11 -11
- package/dist/chunk-R2LA6MKR.cjs.map +1 -0
- package/dist/chunk-RP7YITHX.cjs +70 -0
- package/dist/chunk-RP7YITHX.cjs.map +1 -0
- package/dist/{chunk-33K3ZYFG.cjs → chunk-RU5BBUU2.cjs} +132 -124
- package/dist/chunk-RU5BBUU2.cjs.map +1 -0
- package/dist/{chunk-TSGBRPNE.js → chunk-SFNUHFON.js} +45 -45
- package/dist/chunk-SFNUHFON.js.map +1 -0
- package/dist/chunk-UP4QAJND.cjs +740 -0
- package/dist/chunk-UP4QAJND.cjs.map +1 -0
- package/dist/{chunk-CTHNVU6K.cjs → chunk-UPBXUOW7.cjs} +8 -8
- package/dist/{chunk-CTHNVU6K.cjs.map → chunk-UPBXUOW7.cjs.map} +1 -1
- package/dist/{chunk-EK6RJ373.cjs → chunk-VGU26WIU.cjs} +5 -5
- package/dist/{chunk-EK6RJ373.cjs.map → chunk-VGU26WIU.cjs.map} +1 -1
- package/dist/{chunk-ZGEMI7MJ.cjs → chunk-XTQHSOIC.cjs} +101 -101
- package/dist/{chunk-ZGEMI7MJ.cjs.map → chunk-XTQHSOIC.cjs.map} +1 -1
- package/dist/chunk-Y52UNT66.js +738 -0
- package/dist/chunk-Y52UNT66.js.map +1 -0
- package/dist/{chunk-OYLF3IC7.js → chunk-Z36W5WUM.js} +4 -4
- package/dist/chunk-Z36W5WUM.js.map +1 -0
- package/dist/{chunk-X3244EKP.cjs → chunk-ZFWNO3GE.cjs} +48 -4
- package/dist/chunk-ZFWNO3GE.cjs.map +1 -0
- package/dist/{chunk-2E4VTD2E.cjs → chunk-ZYQEXGYC.cjs} +423 -1139
- package/dist/chunk-ZYQEXGYC.cjs.map +1 -0
- package/dist/ddl-BwH00BB6.d.ts +38 -0
- package/dist/ddl-D3o-RmsV.d.cts +38 -0
- package/dist/{extension-types-B78CZfA5.d.ts → extension-types-CwHV-Uk4.d.cts} +4 -4
- package/dist/{extension-types-B78CZfA5.d.cts → extension-types-CwHV-Uk4.d.ts} +4 -4
- package/dist/graph-extension/index.cjs +18 -18
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +3 -3
- package/dist/{index-CWdBFWbI.d.ts → index-CapHwi1a.d.ts} +22 -3
- package/dist/{index-Bilw0pYm.d.cts → index-jPPexxM5.d.cts} +22 -3
- package/dist/index.cjs +1211 -945
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -12
- package/dist/index.d.ts +142 -12
- package/dist/index.js +778 -544
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +18 -18
- package/dist/indexes/index.d.cts +9 -9
- package/dist/indexes/index.d.ts +9 -9
- package/dist/indexes/index.js +4 -4
- package/dist/interchange/index.cjs +8 -14
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +5 -16
- package/dist/interchange/index.d.ts +5 -16
- package/dist/interchange/index.js +3 -9
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-ehLTTNq0.d.ts → manager-BUugwCYz.d.ts} +2 -2
- package/dist/{manager-c1MGaVVR.d.cts → manager-DpIpn1HQ.d.cts} +2 -2
- package/dist/{materialize-indexes-DFavFQah.d.ts → materialize-indexes-lkawaDor.d.ts} +1 -1
- package/dist/{materialize-indexes-BQfaAZKA.d.cts → materialize-indexes-oanE3RU0.d.cts} +1 -1
- package/dist/{ddl-0Ooc2dpL.d.ts → postgres-CQL9UIn2.d.cts} +2 -471
- package/dist/{ddl-Dza3kDrI.d.cts → postgres-CcRLaxz0.d.ts} +2 -471
- package/dist/profiler/index.cjs +4 -4
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/profiler/index.js +2 -2
- package/dist/schema/index.cjs +32 -32
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +9 -9
- package/dist/{sqlite-BxZUPbyD.d.ts → sqlite-CZDFUfHS.d.ts} +2 -468
- package/dist/{sqlite-mvpXjEeB.d.cts → sqlite-Rj3xu4It.d.cts} +2 -468
- package/dist/{store-Ufc1Eoey.d.ts → store-B43FpOVX.d.cts} +84 -5
- package/dist/{store-D7YEMg2v.d.cts → store-De0Y33wP.d.ts} +84 -5
- package/dist/{types-B-sJJ4GQ.d.ts → types-B5GSeE3t.d.ts} +2 -2
- package/dist/{types-CmUA9sal.d.cts → types-Bwlp_yvu.d.cts} +2 -2
- package/dist/{types-CMQymcwk.d.cts → types-CmAT-Z47.d.ts} +250 -46
- package/dist/{types-CQ7xXJMP.d.ts → types-DXCSyxac.d.cts} +250 -46
- package/dist/{where-5zf15aFZ.d.cts → where-2dsyYt3d.d.cts} +2 -2
- package/dist/{where-CtrLu1Zf.d.ts → where-CP4qGIHd.d.ts} +2 -2
- package/package.json +20 -5
- package/dist/chunk-2E4VTD2E.cjs.map +0 -1
- package/dist/chunk-33K3ZYFG.cjs.map +0 -1
- package/dist/chunk-3EUKJEQ3.js +0 -77
- package/dist/chunk-3EUKJEQ3.js.map +0 -1
- package/dist/chunk-4FJVSF3K.cjs +0 -12
- package/dist/chunk-5H3BAMTB.js +0 -32
- package/dist/chunk-5H3BAMTB.js.map +0 -1
- package/dist/chunk-DFHLG75V.js.map +0 -1
- package/dist/chunk-HTGDWIDE.cjs +0 -89
- package/dist/chunk-HTGDWIDE.cjs.map +0 -1
- package/dist/chunk-IUIWCFG3.cjs +0 -36
- package/dist/chunk-IUIWCFG3.cjs.map +0 -1
- package/dist/chunk-LYRUNG6E.cjs +0 -52
- package/dist/chunk-LYRUNG6E.cjs.map +0 -1
- package/dist/chunk-OYLF3IC7.js.map +0 -1
- package/dist/chunk-PCHTTG42.js +0 -47
- package/dist/chunk-PCHTTG42.js.map +0 -1
- package/dist/chunk-PN37HVAV.cjs.map +0 -1
- package/dist/chunk-PYJOBZR3.cjs.map +0 -1
- package/dist/chunk-TSGBRPNE.js.map +0 -1
- package/dist/chunk-U5ROKVRF.js.map +0 -1
- package/dist/chunk-UKG7XHZ3.js.map +0 -1
- package/dist/chunk-WFUN6DCM.cjs.map +0 -1
- package/dist/chunk-WVQXAFP3.js.map +0 -1
- package/dist/chunk-X3244EKP.cjs.map +0 -1
- package/dist/chunk-YEDQLNVE.cjs.map +0 -1
- package/dist/chunk-ZTREJOGB.js.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { F as FulltextStrategy } from './types-CmAT-Z47.js';
|
|
2
|
+
import { P as PostgresTables } from './postgres-CcRLaxz0.js';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-CZDFUfHS.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generates all DDL statements for the given SQLite tables.
|
|
7
|
+
*
|
|
8
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
9
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
10
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
11
|
+
* cross-table foreign keys.
|
|
12
|
+
*/
|
|
13
|
+
declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
14
|
+
/**
|
|
15
|
+
* Generates a single SQL string for SQLite migrations.
|
|
16
|
+
* Convenience function that joins all DDL statements.
|
|
17
|
+
*/
|
|
18
|
+
declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
|
|
19
|
+
/**
|
|
20
|
+
* Generates all DDL statements for the given PostgreSQL tables.
|
|
21
|
+
*
|
|
22
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
23
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
24
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
25
|
+
* cross-table foreign keys.
|
|
26
|
+
*/
|
|
27
|
+
declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
28
|
+
/**
|
|
29
|
+
* Generates a single SQL string for PostgreSQL migrations.
|
|
30
|
+
* Convenience function that joins all DDL statements.
|
|
31
|
+
*
|
|
32
|
+
* Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
|
|
33
|
+
* embedding tables `pgvectorStrategy` materializes at runtime use the
|
|
34
|
+
* native VECTOR type.
|
|
35
|
+
*/
|
|
36
|
+
declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
|
|
37
|
+
|
|
38
|
+
export { generateSqliteMigrationSQL as a, generatePostgresDDL as b, generatePostgresMigrationSQL as c, generateSqliteDDL as g };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { F as FulltextStrategy } from './types-DXCSyxac.cjs';
|
|
2
|
+
import { P as PostgresTables } from './postgres-CQL9UIn2.cjs';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-Rj3xu4It.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generates all DDL statements for the given SQLite tables.
|
|
7
|
+
*
|
|
8
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
9
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
10
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
11
|
+
* cross-table foreign keys.
|
|
12
|
+
*/
|
|
13
|
+
declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
14
|
+
/**
|
|
15
|
+
* Generates a single SQL string for SQLite migrations.
|
|
16
|
+
* Convenience function that joins all DDL statements.
|
|
17
|
+
*/
|
|
18
|
+
declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
|
|
19
|
+
/**
|
|
20
|
+
* Generates all DDL statements for the given PostgreSQL tables.
|
|
21
|
+
*
|
|
22
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
23
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
24
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
25
|
+
* cross-table foreign keys.
|
|
26
|
+
*/
|
|
27
|
+
declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
28
|
+
/**
|
|
29
|
+
* Generates a single SQL string for PostgreSQL migrations.
|
|
30
|
+
* Convenience function that joins all DDL statements.
|
|
31
|
+
*
|
|
32
|
+
* Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
|
|
33
|
+
* embedding tables `pgvectorStrategy` materializes at runtime use the
|
|
34
|
+
* native VECTOR type.
|
|
35
|
+
*/
|
|
36
|
+
declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
|
|
37
|
+
|
|
38
|
+
export { generateSqliteMigrationSQL as a, generatePostgresDDL as b, generatePostgresMigrationSQL as c, generateSqliteDDL as g };
|
|
@@ -8,9 +8,9 @@ import { z } from 'zod';
|
|
|
8
8
|
type KindEntity = "node" | "edge";
|
|
9
9
|
/**
|
|
10
10
|
* Which physical surface an index targets. Vector indexes don't own a
|
|
11
|
-
* kind directly (they
|
|
12
|
-
*
|
|
13
|
-
* and diff pipelines, so they share this discriminator.
|
|
11
|
+
* kind directly (they back a per-`(kind, field)` typed embedding table
|
|
12
|
+
* owned by the active `VectorStrategy`), but they participate in the same
|
|
13
|
+
* materialization and diff pipelines, so they share this discriminator.
|
|
14
14
|
*/
|
|
15
15
|
type IndexEntity = "node" | "edge" | "vector";
|
|
16
16
|
/**
|
|
@@ -540,4 +540,4 @@ type GraphExtension = Readonly<{
|
|
|
540
540
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
541
541
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
542
542
|
|
|
543
|
-
export { type AnyEdgeType as A, type ExtensionIndexWhere as B,
|
|
543
|
+
export { type AnyEdgeType as A, type ExtensionIndexWhere as B, type Collation as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionNodeDef as F, type GraphExtension as G, type ExtensionNodeIndex as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionNumberProperty as M, type NodeType as N, type ExtensionObjectFieldProperty as O, type ExtensionObjectProperty as P, type ExtensionOntologyRelation as Q, type ExtensionPropertyType as R, type ExtensionSearchableModifier as S, type TemporalMode as T, type UniquenessScope as U, type ExtensionStringProperty as V, type ExtensionUniqueConstraint as W, type ExtensionUniqueWhere as X, GRAPH_EXTENSION_TOP_LEVEL_KEYS as Y, type GraphExtensionTopLevelKey as Z, type NullCheckOp as a, type NodeRegistration as b, type GraphDefaults as c, type EdgeType as d, type KindAnnotations as e, type Cardinality as f, type EndpointExistence as g, CURRENT_GRAPH_EXTENSION_VERSION as h, type EdgeId as i, type EdgeProps as j, type EdgeTypeWithEndpoints as k, type GraphExtensionVersion as l, type NodeId as m, type NodeProps as n, type UniqueConstraint as o, isEdgeType as p, isEdgeTypeWithEndpoints as q, isNodeType as r, type ExtensionArrayItemType as s, type ExtensionArrayProperty as t, type ExtensionBooleanProperty as u, type ExtensionEdgeDef as v, type ExtensionEdgeIndex as w, type ExtensionEmbeddingModifier as x, type ExtensionEnumProperty as y, type ExtensionIndex as z };
|
|
@@ -8,9 +8,9 @@ import { z } from 'zod';
|
|
|
8
8
|
type KindEntity = "node" | "edge";
|
|
9
9
|
/**
|
|
10
10
|
* Which physical surface an index targets. Vector indexes don't own a
|
|
11
|
-
* kind directly (they
|
|
12
|
-
*
|
|
13
|
-
* and diff pipelines, so they share this discriminator.
|
|
11
|
+
* kind directly (they back a per-`(kind, field)` typed embedding table
|
|
12
|
+
* owned by the active `VectorStrategy`), but they participate in the same
|
|
13
|
+
* materialization and diff pipelines, so they share this discriminator.
|
|
14
14
|
*/
|
|
15
15
|
type IndexEntity = "node" | "edge" | "vector";
|
|
16
16
|
/**
|
|
@@ -540,4 +540,4 @@ type GraphExtension = Readonly<{
|
|
|
540
540
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
541
541
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
542
542
|
|
|
543
|
-
export { type AnyEdgeType as A, type ExtensionIndexWhere as B,
|
|
543
|
+
export { type AnyEdgeType as A, type ExtensionIndexWhere as B, type Collation as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionNodeDef as F, type GraphExtension as G, type ExtensionNodeIndex as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionNumberProperty as M, type NodeType as N, type ExtensionObjectFieldProperty as O, type ExtensionObjectProperty as P, type ExtensionOntologyRelation as Q, type ExtensionPropertyType as R, type ExtensionSearchableModifier as S, type TemporalMode as T, type UniquenessScope as U, type ExtensionStringProperty as V, type ExtensionUniqueConstraint as W, type ExtensionUniqueWhere as X, GRAPH_EXTENSION_TOP_LEVEL_KEYS as Y, type GraphExtensionTopLevelKey as Z, type NullCheckOp as a, type NodeRegistration as b, type GraphDefaults as c, type EdgeType as d, type KindAnnotations as e, type Cardinality as f, type EndpointExistence as g, CURRENT_GRAPH_EXTENSION_VERSION as h, type EdgeId as i, type EdgeProps as j, type EdgeTypeWithEndpoints as k, type GraphExtensionVersion as l, type NodeId as m, type NodeProps as n, type UniqueConstraint as o, isEdgeType as p, isEdgeTypeWithEndpoints as q, isNodeType as r, type ExtensionArrayItemType as s, type ExtensionArrayProperty as t, type ExtensionBooleanProperty as u, type ExtensionEdgeDef as v, type ExtensionEdgeIndex as w, type ExtensionEmbeddingModifier as x, type ExtensionEnumProperty as y, type ExtensionIndex as z };
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkQ3ZZLU3O_cjs = require('../chunk-Q3ZZLU3O.cjs');
|
|
4
|
+
var chunkHM6XMR3E_cjs = require('../chunk-HM6XMR3E.cjs');
|
|
5
|
+
require('../chunk-G6P3OVDY.cjs');
|
|
6
6
|
require('../chunk-7V335GHG.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "defineGraphExtension", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkQ3ZZLU3O_cjs.defineGraphExtension; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "CURRENT_GRAPH_EXTENSION_VERSION", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkHM6XMR3E_cjs.CURRENT_GRAPH_EXTENSION_VERSION; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "GRAPH_EXTENSION_ISSUE_CODES", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkHM6XMR3E_cjs.GRAPH_EXTENSION_ISSUE_CODES; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "GRAPH_EXTENSION_TOP_LEVEL_KEYS", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkHM6XMR3E_cjs.GRAPH_EXTENSION_TOP_LEVEL_KEYS; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "GraphExtensionError", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkHM6XMR3E_cjs.GraphExtensionError; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "GraphExtensionUnresolvedEndpointError", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkHM6XMR3E_cjs.GraphExtensionUnresolvedEndpointError; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "GraphExtensionValidationError", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkHM6XMR3E_cjs.GraphExtensionValidationError; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "GraphExtensionVersionUnsupportedError", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkHM6XMR3E_cjs.GraphExtensionVersionUnsupportedError; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "INCOMPATIBLE_CHANGE_TYPES", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkHM6XMR3E_cjs.INCOMPATIBLE_CHANGE_TYPES; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "IncompatibleChangeError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkHM6XMR3E_cjs.IncompatibleChangeError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "KindCollisionError", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkHM6XMR3E_cjs.KindCollisionError; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "KindHasReferentsError", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkHM6XMR3E_cjs.KindHasReferentsError; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "LEGACY_GRAPH_EXTENSION_VERSION", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkHM6XMR3E_cjs.LEGACY_GRAPH_EXTENSION_VERSION; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "RemoveCompileTimeKindError", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkHM6XMR3E_cjs.RemoveCompileTimeKindError; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "validateGraphExtension", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkHM6XMR3E_cjs.validateGraphExtension; }
|
|
69
69
|
});
|
|
70
70
|
//# sourceMappingURL=index.cjs.map
|
|
71
71
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export {
|
|
3
|
-
import { T as TypeGraphError,
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-CwHV-Uk4.cjs';
|
|
2
|
+
export { h as CURRENT_GRAPH_EXTENSION_VERSION, s as ExtensionArrayItemType, t as ExtensionArrayProperty, u as ExtensionBooleanProperty, v as ExtensionEdgeDef, w as ExtensionEdgeIndex, x as ExtensionEmbeddingModifier, y as ExtensionEnumProperty, z as ExtensionIndex, B as ExtensionIndexWhere, F as ExtensionNodeDef, H as ExtensionNodeIndex, M as ExtensionNumberProperty, O as ExtensionObjectFieldProperty, P as ExtensionObjectProperty, Q as ExtensionOntologyRelation, R as ExtensionPropertyType, S as ExtensionSearchableModifier, V as ExtensionStringProperty, W as ExtensionUniqueConstraint, X as ExtensionUniqueWhere, Y as GRAPH_EXTENSION_TOP_LEVEL_KEYS, Z as GraphExtensionTopLevelKey, l as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-CwHV-Uk4.cjs';
|
|
3
|
+
import { T as TypeGraphError, i as ErrorCategory } from '../index-jPPexxM5.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../materialize-indexes-
|
|
5
|
+
import '../materialize-indexes-oanE3RU0.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export {
|
|
3
|
-
import { T as TypeGraphError,
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-CwHV-Uk4.js';
|
|
2
|
+
export { h as CURRENT_GRAPH_EXTENSION_VERSION, s as ExtensionArrayItemType, t as ExtensionArrayProperty, u as ExtensionBooleanProperty, v as ExtensionEdgeDef, w as ExtensionEdgeIndex, x as ExtensionEmbeddingModifier, y as ExtensionEnumProperty, z as ExtensionIndex, B as ExtensionIndexWhere, F as ExtensionNodeDef, H as ExtensionNodeIndex, M as ExtensionNumberProperty, O as ExtensionObjectFieldProperty, P as ExtensionObjectProperty, Q as ExtensionOntologyRelation, R as ExtensionPropertyType, S as ExtensionSearchableModifier, V as ExtensionStringProperty, W as ExtensionUniqueConstraint, X as ExtensionUniqueWhere, Y as GRAPH_EXTENSION_TOP_LEVEL_KEYS, Z as GraphExtensionTopLevelKey, l as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-CwHV-Uk4.js';
|
|
3
|
+
import { T as TypeGraphError, i as ErrorCategory } from '../index-CapHwi1a.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../materialize-indexes-
|
|
5
|
+
import '../materialize-indexes-lkawaDor.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { defineGraphExtension } from '../chunk-
|
|
2
|
-
export { CURRENT_GRAPH_EXTENSION_VERSION, GRAPH_EXTENSION_ISSUE_CODES, GRAPH_EXTENSION_TOP_LEVEL_KEYS, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, INCOMPATIBLE_CHANGE_TYPES, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, validateGraphExtension } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { defineGraphExtension } from '../chunk-BMDF2S7S.js';
|
|
2
|
+
export { CURRENT_GRAPH_EXTENSION_VERSION, GRAPH_EXTENSION_ISSUE_CODES, GRAPH_EXTENSION_TOP_LEVEL_KEYS, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, INCOMPATIBLE_CHANGE_TYPES, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, validateGraphExtension } from '../chunk-SFNUHFON.js';
|
|
3
|
+
import '../chunk-MB363HT5.js';
|
|
4
4
|
import '../chunk-NZ5PMBTG.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { M as MaterializeIndexesResult } from './materialize-indexes-
|
|
1
|
+
import { K as KindEntity } from './extension-types-CwHV-Uk4.js';
|
|
2
|
+
import { M as MaterializeIndexesResult } from './materialize-indexes-lkawaDor.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeGraph Error Hierarchy
|
|
@@ -447,6 +447,25 @@ declare class DatabaseOperationError extends TypeGraphError {
|
|
|
447
447
|
cause?: unknown;
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Thrown when an embedding field's declared dimension no longer matches the
|
|
452
|
+
* dimension of its materialized per-field storage — i.e. a field's
|
|
453
|
+
* `embedding(N)` was changed to `embedding(M)`. The stored vectors are invalid
|
|
454
|
+
* under the new dimension and cannot be converted, only recomputed, so this is
|
|
455
|
+
* a deliberate app-driven migration: call
|
|
456
|
+
* `store.reembedVectorField(kind, fieldPath, ...)` to recreate the storage at
|
|
457
|
+
* the new dimension and re-embed existing rows.
|
|
458
|
+
*/
|
|
459
|
+
declare class EmbeddingDimensionChangedError extends TypeGraphError {
|
|
460
|
+
constructor(message: string, details: Readonly<{
|
|
461
|
+
kind: string;
|
|
462
|
+
fieldPath: string;
|
|
463
|
+
declaredDimensions?: number;
|
|
464
|
+
storedDimensions?: number;
|
|
465
|
+
}>, options?: {
|
|
466
|
+
cause?: unknown;
|
|
467
|
+
});
|
|
468
|
+
}
|
|
450
469
|
/**
|
|
451
470
|
* Thrown when a query predicate cannot be compiled for the target database.
|
|
452
471
|
*/
|
|
@@ -530,4 +549,4 @@ declare function isConstraintError(error: unknown): boolean;
|
|
|
530
549
|
*/
|
|
531
550
|
declare function getErrorSuggestion(error: unknown): string | undefined;
|
|
532
551
|
|
|
533
|
-
export { BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, KindNotFoundError as K, MigrationError as M, NodeConstraintNotFoundError as N, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, ValidationError as a, CompilerInvariantError as b, ConfigurationError as c, DisjointError as d, EdgeNotFoundError as e,
|
|
552
|
+
export { BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, KindNotFoundError as K, MigrationError as M, NodeConstraintNotFoundError as N, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, ValidationError as a, CompilerInvariantError as b, ConfigurationError as c, DisjointError as d, EdgeNotFoundError as e, EmbeddingDimensionChangedError as f, EndpointError as g, EndpointNotFoundError as h, type ErrorCategory as i, NodeNotFoundError as j, SchemaMismatchError as k, StaleVersionError as l, StoreNotInitializedError as m, type StoreNotInitializedReason as n, type TypeGraphErrorOptions as o, UnsupportedPredicateError as p, type ValidationErrorDetails as q, VersionConflictError as r, getErrorSuggestion as s, isConstraintError as t, isSystemError as u, isTypeGraphError as v, isUserRecoverable as w };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { M as MaterializeIndexesResult } from './materialize-indexes-
|
|
1
|
+
import { K as KindEntity } from './extension-types-CwHV-Uk4.cjs';
|
|
2
|
+
import { M as MaterializeIndexesResult } from './materialize-indexes-oanE3RU0.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeGraph Error Hierarchy
|
|
@@ -447,6 +447,25 @@ declare class DatabaseOperationError extends TypeGraphError {
|
|
|
447
447
|
cause?: unknown;
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Thrown when an embedding field's declared dimension no longer matches the
|
|
452
|
+
* dimension of its materialized per-field storage — i.e. a field's
|
|
453
|
+
* `embedding(N)` was changed to `embedding(M)`. The stored vectors are invalid
|
|
454
|
+
* under the new dimension and cannot be converted, only recomputed, so this is
|
|
455
|
+
* a deliberate app-driven migration: call
|
|
456
|
+
* `store.reembedVectorField(kind, fieldPath, ...)` to recreate the storage at
|
|
457
|
+
* the new dimension and re-embed existing rows.
|
|
458
|
+
*/
|
|
459
|
+
declare class EmbeddingDimensionChangedError extends TypeGraphError {
|
|
460
|
+
constructor(message: string, details: Readonly<{
|
|
461
|
+
kind: string;
|
|
462
|
+
fieldPath: string;
|
|
463
|
+
declaredDimensions?: number;
|
|
464
|
+
storedDimensions?: number;
|
|
465
|
+
}>, options?: {
|
|
466
|
+
cause?: unknown;
|
|
467
|
+
});
|
|
468
|
+
}
|
|
450
469
|
/**
|
|
451
470
|
* Thrown when a query predicate cannot be compiled for the target database.
|
|
452
471
|
*/
|
|
@@ -530,4 +549,4 @@ declare function isConstraintError(error: unknown): boolean;
|
|
|
530
549
|
*/
|
|
531
550
|
declare function getErrorSuggestion(error: unknown): string | undefined;
|
|
532
551
|
|
|
533
|
-
export { BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, KindNotFoundError as K, MigrationError as M, NodeConstraintNotFoundError as N, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, ValidationError as a, CompilerInvariantError as b, ConfigurationError as c, DisjointError as d, EdgeNotFoundError as e,
|
|
552
|
+
export { BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, KindNotFoundError as K, MigrationError as M, NodeConstraintNotFoundError as N, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, ValidationError as a, CompilerInvariantError as b, ConfigurationError as c, DisjointError as d, EdgeNotFoundError as e, EmbeddingDimensionChangedError as f, EndpointError as g, EndpointNotFoundError as h, type ErrorCategory as i, NodeNotFoundError as j, SchemaMismatchError as k, StaleVersionError as l, StoreNotInitializedError as m, type StoreNotInitializedReason as n, type TypeGraphErrorOptions as o, UnsupportedPredicateError as p, type ValidationErrorDetails as q, VersionConflictError as r, getErrorSuggestion as s, isConstraintError as t, isSystemError as u, isTypeGraphError as v, isUserRecoverable as w };
|