@nicia-ai/typegraph 0.47.0 → 0.49.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/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/index.cjs +27 -19
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +4 -4
- package/dist/backend/postgres/index.cjs +7 -7
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +6 -6
- package/dist/backend/postgres/pglite-store.cjs +17 -17
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +14 -14
- package/dist/backend/postgres/pglite.cjs +8 -8
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +7 -7
- package/dist/backend/sqlite/index.cjs +7 -7
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +6 -6
- package/dist/backend/sqlite/libsql.cjs +8 -8
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +6 -6
- package/dist/backend/sqlite/local-store.cjs +18 -18
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +15 -15
- package/dist/backend/sqlite/local.cjs +9 -9
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +7 -7
- package/dist/{chunk-5FBRVORR.cjs → chunk-2O4PCIZ6.cjs} +8 -7
- package/dist/chunk-2O4PCIZ6.cjs.map +1 -0
- package/dist/{chunk-6KFLYYOC.cjs → chunk-2QGYQBS2.cjs} +5 -5
- package/dist/{chunk-6KFLYYOC.cjs.map → chunk-2QGYQBS2.cjs.map} +1 -1
- package/dist/{chunk-XYBQI6LE.js → chunk-2TYSSBU5.js} +6 -6
- package/dist/{chunk-XYBQI6LE.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-6JVZSOHQ.cjs → chunk-3FPR224C.cjs} +26 -26
- package/dist/{chunk-6JVZSOHQ.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-U5EDAVOJ.cjs → chunk-3G5W2U2L.cjs} +82 -51
- package/dist/chunk-3G5W2U2L.cjs.map +1 -0
- package/dist/{chunk-MFZR4QKM.cjs → chunk-3KOY4FH3.cjs} +181 -4
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-UPAJHMW3.cjs → chunk-3QNZ5SAJ.cjs} +55 -58
- package/dist/chunk-3QNZ5SAJ.cjs.map +1 -0
- package/dist/{chunk-NG2RB5WL.js → chunk-5K2BKEBD.js} +18 -3
- package/dist/chunk-5K2BKEBD.js.map +1 -0
- package/dist/chunk-5PRKMB24.cjs +124 -0
- package/dist/chunk-5PRKMB24.cjs.map +1 -0
- package/dist/chunk-6LN7FIVU.js +107 -0
- package/dist/chunk-6LN7FIVU.js.map +1 -0
- package/dist/{chunk-M35DF33T.js → chunk-7LZJNLA5.js} +29 -16
- package/dist/chunk-7LZJNLA5.js.map +1 -0
- package/dist/{chunk-I4G3SQPF.cjs → chunk-7UOLHNWC.cjs} +7 -7
- package/dist/chunk-7UOLHNWC.cjs.map +1 -0
- package/dist/{chunk-DJZTXBWY.js → chunk-BRRP76WO.js} +71 -30
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-5FT3TLPK.js → chunk-D4QLTJSM.js} +16 -13
- package/dist/chunk-D4QLTJSM.js.map +1 -0
- package/dist/{chunk-XY5OMOJD.js → chunk-DZAICA5J.js} +3 -3
- package/dist/{chunk-XY5OMOJD.js.map → chunk-DZAICA5J.js.map} +1 -1
- package/dist/{chunk-OIFSOPSR.cjs → chunk-EZEEWCFJ.cjs} +38 -156
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-AMMWA76F.cjs → chunk-FA2AFWLP.cjs} +6 -6
- package/dist/{chunk-AMMWA76F.cjs.map → chunk-FA2AFWLP.cjs.map} +1 -1
- package/dist/{chunk-FNOMT74T.js → chunk-I4GAZH5Z.js} +180 -5
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-WGX7JH7E.cjs → chunk-JB6T4GLL.cjs} +106 -134
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-MX4DHSQP.cjs → chunk-JFRT7S3B.cjs} +92 -98
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-5UMTUOM5.js → chunk-JPD2CTC3.js} +5 -4
- package/dist/chunk-JPD2CTC3.js.map +1 -0
- package/dist/{chunk-SE6EGQSD.js → chunk-KF6K7TGH.js} +38 -66
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-QS3NQZVC.js → chunk-LTXQOEIC.js} +44 -14
- package/dist/chunk-LTXQOEIC.js.map +1 -0
- package/dist/{chunk-ZHNXLS3C.js → chunk-NACVVDWB.js} +208 -8
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-AVGUJWVX.js → chunk-S5TERQVW.js} +15 -132
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-BR7SHKGM.cjs → chunk-SR725PWF.cjs} +548 -507
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-425IZOQ5.cjs → chunk-TQHGE7UC.cjs} +20 -2
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-GYUJZARH.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-GYUJZARH.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-BCQ76AXA.cjs → chunk-UGHQV7MP.cjs} +107 -94
- package/dist/chunk-UGHQV7MP.cjs.map +1 -0
- package/dist/{chunk-KABFHAL7.cjs → chunk-UMGZDVOA.cjs} +213 -12
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-6FWSNSRE.js → chunk-WIC7DRXW.js} +4 -4
- package/dist/chunk-WIC7DRXW.js.map +1 -0
- package/dist/{chunk-LEWHMOUY.js → chunk-YIURNGXI.js} +4 -4
- package/dist/{chunk-LEWHMOUY.js.map → chunk-YIURNGXI.js.map} +1 -1
- package/dist/{chunk-EP4RUYD6.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-EP4RUYD6.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-EMIB2RXD.cjs → chunk-YYUHLYM2.cjs} +99 -96
- package/dist/chunk-YYUHLYM2.cjs.map +1 -0
- package/dist/{chunk-KH7XW7VV.js → chunk-Z2JCLZFJ.js} +25 -28
- package/dist/chunk-Z2JCLZFJ.js.map +1 -0
- package/dist/{chunk-NNQ6A3RM.js → chunk-ZFMCDJGB.js} +7 -12
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -2
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-merge/index.cjs +357 -191
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +68 -15
- package/dist/graph-merge/index.d.ts +68 -15
- package/dist/graph-merge/index.js +197 -32
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-CHTv4XMZ.d.cts → index-COs_z6nV.d.cts} +2 -2
- package/dist/{index-CzoJ3MUw.d.ts → index-D7d1u2gr.d.ts} +2 -2
- package/dist/index.cjs +90 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/ingestion-import-target-XPxZYw89.d.cts +17 -0
- package/dist/ingestion-import-target-dNeL7iAv.d.ts +17 -0
- package/dist/interchange/index.cjs +38 -38
- package/dist/interchange/index.d.cts +15 -12
- package/dist/interchange/index.d.ts +15 -12
- package/dist/interchange/index.js +10 -10
- package/dist/{manager-DlY1vlla.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-B6sOQzcQ.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-DQL4xcpf.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-sskhp-c_.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-BXy_nyMs.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-B6YOUcaK.d.ts → postgres-DMj39MEu.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +25 -26
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +9 -10
- package/dist/provenance/index.js.map +1 -1
- package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
- package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +8 -8
- package/dist/{searchable-D9gMiwcS.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-0Cn_lY8U.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-DioSxaPe.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-ClXuBYAj.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-5j-w5onJ.d.ts → store-DRrFCx5x.d.ts} +122 -27
- package/dist/{store-CFedKGU5.d.cts → store-bphCSo7z.d.cts} +122 -27
- package/dist/{temporal-CjO9FH1l.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-Ce1pG0S1.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-DKkMJZjR.d.cts → types-BqFZTQmV.d.cts} +29 -4
- package/dist/{types-DKkMJZjR.d.ts → types-BqFZTQmV.d.ts} +29 -4
- package/dist/{types-BrdOFu48.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-oj_OGAaZ.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-D1wKCJ4Q.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-C8w2627G.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +2 -3
- package/dist/chunk-3HGRTCDU.cjs +0 -269
- package/dist/chunk-3HGRTCDU.cjs.map +0 -1
- package/dist/chunk-425IZOQ5.cjs.map +0 -1
- package/dist/chunk-5FBRVORR.cjs.map +0 -1
- package/dist/chunk-5FT3TLPK.js.map +0 -1
- package/dist/chunk-5UMTUOM5.js.map +0 -1
- package/dist/chunk-6FWSNSRE.js.map +0 -1
- package/dist/chunk-AVGUJWVX.js.map +0 -1
- package/dist/chunk-BCQ76AXA.cjs.map +0 -1
- package/dist/chunk-BR7SHKGM.cjs.map +0 -1
- package/dist/chunk-DJZTXBWY.js.map +0 -1
- package/dist/chunk-EMIB2RXD.cjs.map +0 -1
- package/dist/chunk-FNOMT74T.js.map +0 -1
- package/dist/chunk-I4G3SQPF.cjs.map +0 -1
- package/dist/chunk-JR6SX5RH.cjs +0 -268
- package/dist/chunk-JR6SX5RH.cjs.map +0 -1
- package/dist/chunk-KABFHAL7.cjs.map +0 -1
- package/dist/chunk-KH7XW7VV.js.map +0 -1
- package/dist/chunk-M35DF33T.js.map +0 -1
- package/dist/chunk-MFZR4QKM.cjs.map +0 -1
- package/dist/chunk-MX4DHSQP.cjs.map +0 -1
- package/dist/chunk-NAZ2RA4L.js +0 -254
- package/dist/chunk-NAZ2RA4L.js.map +0 -1
- package/dist/chunk-NG2RB5WL.js.map +0 -1
- package/dist/chunk-NNQ6A3RM.js.map +0 -1
- package/dist/chunk-OIFSOPSR.cjs.map +0 -1
- package/dist/chunk-QS3NQZVC.js.map +0 -1
- package/dist/chunk-SE6EGQSD.js.map +0 -1
- package/dist/chunk-SHSSRCFR.js +0 -246
- package/dist/chunk-SHSSRCFR.js.map +0 -1
- package/dist/chunk-U5EDAVOJ.cjs.map +0 -1
- package/dist/chunk-UPAJHMW3.cjs.map +0 -1
- package/dist/chunk-WGX7JH7E.cjs.map +0 -1
- package/dist/chunk-ZHNXLS3C.js.map +0 -1
- package/dist/ddl-CprnMXJ-.d.ts +0 -38
- package/dist/ddl-DJA7Lci5.d.cts +0 -38
package/dist/core/index.cjs
CHANGED
|
@@ -4,8 +4,8 @@ var chunkTZEGUG6D_cjs = require('../chunk-TZEGUG6D.cjs');
|
|
|
4
4
|
var chunk26YKDNUD_cjs = require('../chunk-26YKDNUD.cjs');
|
|
5
5
|
var chunkBFUOME67_cjs = require('../chunk-BFUOME67.cjs');
|
|
6
6
|
require('../chunk-FQPEMEWX.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var chunk2QGYQBS2_cjs = require('../chunk-2QGYQBS2.cjs');
|
|
8
|
+
require('../chunk-TQHGE7UC.cjs');
|
|
9
9
|
var chunkHAHNRASW_cjs = require('../chunk-HAHNRASW.cjs');
|
|
10
10
|
require('../chunk-6NGW27EO.cjs');
|
|
11
11
|
require('../chunk-MRDBBHIZ.cjs');
|
|
@@ -79,19 +79,19 @@ Object.defineProperty(exports, "isNodeType", {
|
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "asRecordedInstant", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2QGYQBS2_cjs.asRecordedInstant; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "compareRecordedInstants", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2QGYQBS2_cjs.compareRecordedInstants; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "recordedInstantRevision", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2QGYQBS2_cjs.recordedInstantRevision; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "recordedInstantWallTime", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2QGYQBS2_cjs.recordedInstantWallTime; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "DEFAULT_SEARCHABLE_LANGUAGE", {
|
|
97
97
|
enumerable: true,
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-
|
|
5
|
-
export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-
|
|
2
|
+
import { bi as KindAnnotations, dg as NodeType, dr as EdgeType, b9 as InferenceType, dN as MetaEdge } from '../types-BqFZTQmV.cjs';
|
|
3
|
+
export { ds as AllEdgeTypes, dt as AllNodeTypes, dh as AnyEdgeType, C as Cardinality, l as Collation, S as DeleteBehavior, dw as EdgeId, dx as EdgeKinds, dy as EdgeProps, dz as EdgeRegistration, dA as EdgeTypeWithEndpoints, aa as EndpointExistence, dC as GetEdgeType, dD as GetNodeType, d8 as GraphDef, dE as GraphDefaults, aR as GraphIdentityConfig, b0 as IndexEntity, bh as JsonValue, bj as KindEntity, dP as NodeId, dQ as NodeKinds, dR as NodeProps, dS as NodeRegistration, bt as NullCheckOp, ce as TemporalMode, d_ as UniqueConstraint, cn as UniquenessScope, d$ as asEdgeId, e0 as asNodeId, e2 as defineGraph, e3 as getEdgeKinds, e4 as getNodeKinds, e5 as isEdgeType, e6 as isEdgeTypeWithEndpoints, e7 as isGraphDef, e9 as isNodeType } from '../types-BqFZTQmV.cjs';
|
|
4
|
+
export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-DHJMh_nj.cjs';
|
|
5
|
+
export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-5GqpYCk2.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Options for defining a node type.
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-
|
|
5
|
-
export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-
|
|
2
|
+
import { bi as KindAnnotations, dg as NodeType, dr as EdgeType, b9 as InferenceType, dN as MetaEdge } from '../types-BqFZTQmV.js';
|
|
3
|
+
export { ds as AllEdgeTypes, dt as AllNodeTypes, dh as AnyEdgeType, C as Cardinality, l as Collation, S as DeleteBehavior, dw as EdgeId, dx as EdgeKinds, dy as EdgeProps, dz as EdgeRegistration, dA as EdgeTypeWithEndpoints, aa as EndpointExistence, dC as GetEdgeType, dD as GetNodeType, d8 as GraphDef, dE as GraphDefaults, aR as GraphIdentityConfig, b0 as IndexEntity, bh as JsonValue, bj as KindEntity, dP as NodeId, dQ as NodeKinds, dR as NodeProps, dS as NodeRegistration, bt as NullCheckOp, ce as TemporalMode, d_ as UniqueConstraint, cn as UniquenessScope, d$ as asEdgeId, e0 as asNodeId, e2 as defineGraph, e3 as getEdgeKinds, e4 as getNodeKinds, e5 as isEdgeType, e6 as isEdgeTypeWithEndpoints, e7 as isGraphDef, e9 as isNodeType } from '../types-BqFZTQmV.js';
|
|
4
|
+
export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as embedding, g as getEmbeddingDimensions, h as getSearchableMetadata, i as isEmbeddingSchema, j as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from '../searchable-bpE1bBfc.js';
|
|
5
|
+
export { R as RecordedInstant, a as asRecordedInstant, c as compareRecordedInstants, r as recordedInstantRevision, b as recordedInstantWallTime } from '../temporal-CbnLzTmM.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Options for defining a node type.
|
package/dist/core/index.js
CHANGED
|
@@ -2,8 +2,8 @@ export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchem
|
|
|
2
2
|
export { defineEdge, defineNode } from '../chunk-SHFBB23Q.js';
|
|
3
3
|
export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from '../chunk-HEV35TGT.js';
|
|
4
4
|
import '../chunk-GLHXM7C4.js';
|
|
5
|
-
export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from '../chunk-DZAICA5J.js';
|
|
6
|
+
import '../chunk-5K2BKEBD.js';
|
|
7
7
|
export { DEFAULT_SEARCHABLE_LANGUAGE, embedding, getEmbeddingDimensions, getSearchableMetadata, isEmbeddingSchema, isSearchableSchema, resolveGraphVectorSlots, searchable } from '../chunk-PC2UBAUB.js';
|
|
8
8
|
import '../chunk-XVWOYKIK.js';
|
|
9
9
|
import '../chunk-ZLONH2UD.js';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { aK as FulltextStrategy } from './types-BqFZTQmV.cjs';
|
|
2
|
+
import { P as PostgresTables } from './postgres-DMj39MEu.cjs';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-YppHrNFb.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Declare the connection this backend serializes on, when TypeGraph cannot
|
|
7
|
+
* detect it (Bun `SQL`, `expo-sqlite`, `op-sqlite`, `sqlite-proxy`, `pg-proxy`,
|
|
8
|
+
* a postgres-js pool capped through a string the driver does not coerce — the
|
|
9
|
+
* KNOWN GAPS in this module's inventory). Two wrappers that pass the same
|
|
10
|
+
* object are treated as one serialized resource, exactly as two wrappers over a
|
|
11
|
+
* detected client are.
|
|
12
|
+
*
|
|
13
|
+
* - `"detect"` (the default, and the same behavior as omitting the option):
|
|
14
|
+
* whatever the factory's driver predicates find, and nothing else.
|
|
15
|
+
* - `"shared"`: the given object IS the serialized resource. Refused with a
|
|
16
|
+
* {@link ConfigurationError} when the factory detected a DIFFERENT resource —
|
|
17
|
+
* silently overriding would let two wrappers over one handle be given two
|
|
18
|
+
* different sentinels and quietly de-serialize a pair that really does share.
|
|
19
|
+
* - `"independent"`: statements can run on independent connections. The
|
|
20
|
+
* documented escape hatch for a mis-detection, so a user surprised by a
|
|
21
|
+
* refusal is never stuck.
|
|
22
|
+
*
|
|
23
|
+
* SCOPE — read this before using `"independent"`: this option controls the
|
|
24
|
+
* SHARED-RESOURCE arm of {@link snapshotExportContention} only. It cannot lift
|
|
25
|
+
* the object-identity arm, under which ONE SQLite backend object exporting into
|
|
26
|
+
* ITSELF is refused with `same-sqlite-backend`. That arm is a driver fact (one
|
|
27
|
+
* handle, one open snapshot transaction), not a claim about connection
|
|
28
|
+
* topology, so no declaration can make it false.
|
|
29
|
+
*
|
|
30
|
+
* That surviving arm is SQLITE-ONLY, deliberately: it is gated on
|
|
31
|
+
* `dialect === "sqlite"`, so on Postgres a backend declared `"independent"`
|
|
32
|
+
* exporting into ITSELF is not refused either — a Postgres client that hands
|
|
33
|
+
* out independent connections is exactly what the declaration claims, and the
|
|
34
|
+
* snapshot and the writes it contends with land on different ones.
|
|
35
|
+
*/
|
|
36
|
+
type SerializedResourceDeclaration = Readonly<{
|
|
37
|
+
mode: "detect";
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
mode: "shared";
|
|
40
|
+
resource: object;
|
|
41
|
+
}> | Readonly<{
|
|
42
|
+
mode: "independent";
|
|
43
|
+
}>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generates all DDL statements for the given SQLite tables.
|
|
47
|
+
*
|
|
48
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
49
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
50
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
51
|
+
* cross-table foreign keys.
|
|
52
|
+
*/
|
|
53
|
+
declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
54
|
+
/**
|
|
55
|
+
* Generates a single SQL string for SQLite migrations.
|
|
56
|
+
* Convenience function that joins all DDL statements.
|
|
57
|
+
*/
|
|
58
|
+
declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
|
|
59
|
+
/**
|
|
60
|
+
* Generates all DDL statements for the given PostgreSQL tables.
|
|
61
|
+
*
|
|
62
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
63
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
64
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
65
|
+
* cross-table foreign keys.
|
|
66
|
+
*/
|
|
67
|
+
declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
68
|
+
/**
|
|
69
|
+
* Generates a single SQL string for PostgreSQL migrations.
|
|
70
|
+
* Convenience function that joins all DDL statements.
|
|
71
|
+
*
|
|
72
|
+
* Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
|
|
73
|
+
* embedding tables `pgvectorStrategy` materializes at runtime use the
|
|
74
|
+
* native VECTOR type.
|
|
75
|
+
*/
|
|
76
|
+
declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
|
|
77
|
+
|
|
78
|
+
export { type SerializedResourceDeclaration as S, generatePostgresMigrationSQL as a, generateSqliteDDL as b, generateSqliteMigrationSQL as c, generatePostgresDDL as g };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { aK as FulltextStrategy } from './types-BqFZTQmV.js';
|
|
2
|
+
import { P as PostgresTables } from './postgres-CcL4bAHS.js';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-D7Oz0SQh.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Declare the connection this backend serializes on, when TypeGraph cannot
|
|
7
|
+
* detect it (Bun `SQL`, `expo-sqlite`, `op-sqlite`, `sqlite-proxy`, `pg-proxy`,
|
|
8
|
+
* a postgres-js pool capped through a string the driver does not coerce — the
|
|
9
|
+
* KNOWN GAPS in this module's inventory). Two wrappers that pass the same
|
|
10
|
+
* object are treated as one serialized resource, exactly as two wrappers over a
|
|
11
|
+
* detected client are.
|
|
12
|
+
*
|
|
13
|
+
* - `"detect"` (the default, and the same behavior as omitting the option):
|
|
14
|
+
* whatever the factory's driver predicates find, and nothing else.
|
|
15
|
+
* - `"shared"`: the given object IS the serialized resource. Refused with a
|
|
16
|
+
* {@link ConfigurationError} when the factory detected a DIFFERENT resource —
|
|
17
|
+
* silently overriding would let two wrappers over one handle be given two
|
|
18
|
+
* different sentinels and quietly de-serialize a pair that really does share.
|
|
19
|
+
* - `"independent"`: statements can run on independent connections. The
|
|
20
|
+
* documented escape hatch for a mis-detection, so a user surprised by a
|
|
21
|
+
* refusal is never stuck.
|
|
22
|
+
*
|
|
23
|
+
* SCOPE — read this before using `"independent"`: this option controls the
|
|
24
|
+
* SHARED-RESOURCE arm of {@link snapshotExportContention} only. It cannot lift
|
|
25
|
+
* the object-identity arm, under which ONE SQLite backend object exporting into
|
|
26
|
+
* ITSELF is refused with `same-sqlite-backend`. That arm is a driver fact (one
|
|
27
|
+
* handle, one open snapshot transaction), not a claim about connection
|
|
28
|
+
* topology, so no declaration can make it false.
|
|
29
|
+
*
|
|
30
|
+
* That surviving arm is SQLITE-ONLY, deliberately: it is gated on
|
|
31
|
+
* `dialect === "sqlite"`, so on Postgres a backend declared `"independent"`
|
|
32
|
+
* exporting into ITSELF is not refused either — a Postgres client that hands
|
|
33
|
+
* out independent connections is exactly what the declaration claims, and the
|
|
34
|
+
* snapshot and the writes it contends with land on different ones.
|
|
35
|
+
*/
|
|
36
|
+
type SerializedResourceDeclaration = Readonly<{
|
|
37
|
+
mode: "detect";
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
mode: "shared";
|
|
40
|
+
resource: object;
|
|
41
|
+
}> | Readonly<{
|
|
42
|
+
mode: "independent";
|
|
43
|
+
}>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generates all DDL statements for the given SQLite tables.
|
|
47
|
+
*
|
|
48
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
49
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
50
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
51
|
+
* cross-table foreign keys.
|
|
52
|
+
*/
|
|
53
|
+
declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
54
|
+
/**
|
|
55
|
+
* Generates a single SQL string for SQLite migrations.
|
|
56
|
+
* Convenience function that joins all DDL statements.
|
|
57
|
+
*/
|
|
58
|
+
declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
|
|
59
|
+
/**
|
|
60
|
+
* Generates all DDL statements for the given PostgreSQL tables.
|
|
61
|
+
*
|
|
62
|
+
* Iterates the unified contribution set (#129) — base tables first,
|
|
63
|
+
* then strategy-owned tables. Per-contribution ordering is
|
|
64
|
+
* table-then-its-own-indexes; safe because TypeGraph's tables carry no
|
|
65
|
+
* cross-table foreign keys.
|
|
66
|
+
*/
|
|
67
|
+
declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
68
|
+
/**
|
|
69
|
+
* Generates a single SQL string for PostgreSQL migrations.
|
|
70
|
+
* Convenience function that joins all DDL statements.
|
|
71
|
+
*
|
|
72
|
+
* Includes CREATE EXTENSION for pgvector since the per-`(kind, field)`
|
|
73
|
+
* embedding tables `pgvectorStrategy` materializes at runtime use the
|
|
74
|
+
* native VECTOR type.
|
|
75
|
+
*/
|
|
76
|
+
declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
|
|
77
|
+
|
|
78
|
+
export { type SerializedResourceDeclaration as S, generatePostgresMigrationSQL as a, generateSqliteDDL as b, generateSqliteMigrationSQL as c, generatePostgresDDL as g };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { aj as TypeGraphError, w as ErrorCategory } from '../index-
|
|
1
|
+
import { aP as GraphExtension, bj as KindEntity } from '../types-BqFZTQmV.cjs';
|
|
2
|
+
export { du as CURRENT_GRAPH_EXTENSION_VERSION, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aQ as GraphExtensionVersion, dL as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-BqFZTQmV.cjs';
|
|
3
|
+
import { aj as TypeGraphError, w as ErrorCategory } from '../index-COs_z6nV.cjs';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-DTtAnvfY.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { aj as TypeGraphError, w as ErrorCategory } from '../index-
|
|
1
|
+
import { aP as GraphExtension, bj as KindEntity } from '../types-BqFZTQmV.js';
|
|
2
|
+
export { du as CURRENT_GRAPH_EXTENSION_VERSION, ab as ExtensionArrayItemType, ac as ExtensionArrayProperty, ad as ExtensionBooleanProperty, ae as ExtensionEdgeDef, af as ExtensionEdgeIndex, ag as ExtensionEmbeddingModifier, ah as ExtensionEnumProperty, ai as ExtensionIndex, aj as ExtensionIndexWhere, ak as ExtensionNodeDef, al as ExtensionNodeIndex, am as ExtensionNumberProperty, an as ExtensionObjectFieldProperty, ao as ExtensionObjectProperty, ap as ExtensionOntologyRelation, ar as ExtensionPropertyType, as as ExtensionSearchableModifier, at as ExtensionStringProperty, au as ExtensionUniqueConstraint, av as ExtensionUniqueWhere, eu as GRAPH_EXTENSION_TOP_LEVEL_KEYS, ev as GraphExtensionTopLevelKey, aQ as GraphExtensionVersion, dL as LEGACY_GRAPH_EXTENSION_VERSION } from '../types-BqFZTQmV.js';
|
|
3
|
+
import { aj as TypeGraphError, w as ErrorCategory } from '../index-D7d1u2gr.js';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-DJ3ykH59.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|