@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-
|
|
4
|
-
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-
|
|
5
|
-
import { K as KindRegistry, S as SchemaManagerOptions, b as SchemaValidationResult } from './manager-
|
|
6
|
-
import { S as SchemaDiff, j as MaterializeIndexesOptions, M as MaterializeIndexesResult, k as MaterializeSystemIndexesOptions } from './materialize-indexes-
|
|
2
|
+
import { cy as ValueType, ef as PredicateExpression, aH as FulltextQueryMode, eg as VectorMetricType, d9 as QueryAst, bf as JsonPointer, dl as FieldRef, dU as ParameterRef, dg as NodeType, dh as AnyEdgeType, dr as EdgeType, dZ as TraversalExpansion, aM as GraphBackend, c2 as SqlDialect, di as SqlSchema, eh as Traversal, ei as NodePredicate, ej as ProjectedField, dT as OrderSpec, ek as AggregateOrderSpec, ce as TemporalMode, el as GroupBySpec, dF as HybridFusionOptions, dH as JsonPointerInput, em as RecursiveCyclePolicy, d8 as GraphDef, dp as TraversalDirection$1, dz as EdgeRegistration, dP as NodeId, cg as TransactionBackend, dk as AggregateExpr, dY as SortDirection, q as CompiledSelectSql, aK as FulltextStrategy, cL as VectorStrategy, en as VectorSlotMap, eo as RecordedReadBinding, ep as SelectiveField, eq as ComposableQuery, er as SetOperationType, es as SetOperation, aR as GraphIdentityConfig, dQ as NodeKinds, bs as NodeRow, bj as KindEntity, dB as ExternalRecordedReadSource, dw as EdgeId, a9 as EdgeRow, et as BackendValidityEndMutation, dS as NodeRegistration, dx as EdgeKinds, ci as TransactionReadBackend, dt as AllNodeTypes, bi as KindAnnotations, bg as JsonSchema, cn as UniquenessScope, l as Collation, C as Cardinality, aa as EndpointExistence, aP as GraphExtension, cF as VectorMetric, d as BackendCapabilities, u as ContributionDiagnostic, K as ContributionRepairResult, E as ContributionProbeResult, H as ContributionRebuildScope, G as ContributionRebuildResult, ch as TransactionOptions, b as AdapterBackend } from './types-BqFZTQmV.cjs';
|
|
3
|
+
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-5GqpYCk2.cjs';
|
|
4
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-DHJMh_nj.cjs';
|
|
5
|
+
import { K as KindRegistry, S as SchemaManagerOptions, b as SchemaValidationResult } from './manager-CYaff3n3.cjs';
|
|
6
|
+
import { S as SchemaDiff, j as MaterializeIndexesOptions, M as MaterializeIndexesResult, k as MaterializeSystemIndexesOptions } from './materialize-indexes-DTtAnvfY.cjs';
|
|
7
7
|
|
|
8
8
|
type FieldTypeInfo = Readonly<{
|
|
9
9
|
valueType: ValueType;
|
|
@@ -2263,7 +2263,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2263
2263
|
/**
|
|
2264
2264
|
* Create a new node.
|
|
2265
2265
|
*
|
|
2266
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2266
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2267
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2268
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2269
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2270
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2267
2271
|
*/
|
|
2268
2272
|
create: (props: z.input<N["schema"]>, options?: Readonly<{
|
|
2269
2273
|
id?: string;
|
|
@@ -2332,7 +2336,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2332
2336
|
* the data shape is determined at runtime, not compile time.
|
|
2333
2337
|
* The return type is fully typed — only the input gate is relaxed.
|
|
2334
2338
|
*
|
|
2335
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2339
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2340
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2341
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2342
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2343
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2336
2344
|
*/
|
|
2337
2345
|
createFromRecord: (data: Record<string, unknown>, options?: Readonly<{
|
|
2338
2346
|
id?: string;
|
|
@@ -2347,9 +2355,15 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2347
2355
|
*
|
|
2348
2356
|
* `validFrom` applies when the upsert CREATES the row and when it RESURRECTS
|
|
2349
2357
|
* a tombstoned one — both write a fresh validity window — defaulting to the
|
|
2350
|
-
* operation's timestamp when omitted.
|
|
2351
|
-
*
|
|
2352
|
-
*
|
|
2358
|
+
* operation's timestamp when omitted. That default is dropped when a stated
|
|
2359
|
+
* `validTo` at or before the write instant would leave the row readable at no
|
|
2360
|
+
* coordinate: NO lower bound is stored ("ended at T, start unknown") and
|
|
2361
|
+
* `meta.validFrom` reads back as `undefined`. A RESURRECTION takes the same
|
|
2362
|
+
* exception, decided against the instant it samples, so one stated window
|
|
2363
|
+
* reaches ONE stored shape whether the id is fresh or names a tombstone. An
|
|
2364
|
+
* update to a LIVE row stores no lower bound, because that row's is already
|
|
2365
|
+
* history, so one naming a different instant is REFUSED (`ValidationError`
|
|
2366
|
+
* carrying
|
|
2353
2367
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2354
2368
|
* bound the row already holds is accepted and changes nothing. Set
|
|
2355
2369
|
* `onImmutableLowerBound: "preserve"` for event materializers whose
|
|
@@ -2369,9 +2383,15 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2369
2383
|
*
|
|
2370
2384
|
* `validFrom` applies when the upsert CREATES the row and when it RESURRECTS
|
|
2371
2385
|
* a tombstoned one — both write a fresh validity window — defaulting to the
|
|
2372
|
-
* operation's timestamp when omitted.
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2386
|
+
* operation's timestamp when omitted. That default is dropped when a stated
|
|
2387
|
+
* `validTo` at or before the write instant would leave the row readable at no
|
|
2388
|
+
* coordinate: NO lower bound is stored ("ended at T, start unknown") and
|
|
2389
|
+
* `meta.validFrom` reads back as `undefined`. A RESURRECTION takes the same
|
|
2390
|
+
* exception, decided against the instant it samples, so one stated window
|
|
2391
|
+
* reaches ONE stored shape whether the id is fresh or names a tombstone. An
|
|
2392
|
+
* update to a LIVE row stores no lower bound, because that row's is already
|
|
2393
|
+
* history, so one naming a different instant is REFUSED (`ValidationError`
|
|
2394
|
+
* carrying
|
|
2375
2395
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2376
2396
|
* bound the row already holds is accepted and changes nothing. Set
|
|
2377
2397
|
* `onImmutableLowerBound: "preserve"` for create/resurrection-only input.
|
|
@@ -2386,7 +2406,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2386
2406
|
* More efficient than calling create() multiple times.
|
|
2387
2407
|
* Use `bulkInsert` for the dedicated fast path that skips returning results.
|
|
2388
2408
|
*
|
|
2389
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2409
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2410
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2411
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2412
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2413
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2390
2414
|
*/
|
|
2391
2415
|
bulkCreate: (items: readonly Readonly<{
|
|
2392
2416
|
props: z.input<N["schema"]>;
|
|
@@ -2408,7 +2432,12 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2408
2432
|
*
|
|
2409
2433
|
* `validFrom` applies when the upsert CREATES the row and when it RESURRECTS
|
|
2410
2434
|
* a tombstoned one — both write a fresh validity window — defaulting to the
|
|
2411
|
-
* operation's timestamp when omitted.
|
|
2435
|
+
* operation's timestamp when omitted. That default is dropped when a stated
|
|
2436
|
+
* `validTo` at or before the write instant would leave the row readable at no
|
|
2437
|
+
* coordinate: NO lower bound is stored ("ended at T, start unknown") and
|
|
2438
|
+
* `meta.validFrom` reads back as `undefined`. A RESURRECTION takes the same
|
|
2439
|
+
* exception, decided against the instant it samples, so one stated window
|
|
2440
|
+
* reaches ONE stored shape whether the id is fresh or names a tombstone. An update to a LIVE row stores no lower
|
|
2412
2441
|
* bound, because that row's is already history, so one naming a different
|
|
2413
2442
|
* instant is REFUSED (`ValidationError` carrying
|
|
2414
2443
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
@@ -2442,7 +2471,11 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2442
2471
|
* with `returnResults: false`, the intent is unambiguous: no results
|
|
2443
2472
|
* are returned and the operation is wrapped in a transaction.
|
|
2444
2473
|
*
|
|
2445
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2474
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2475
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2476
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2477
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2478
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2446
2479
|
*/
|
|
2447
2480
|
bulkInsert: (items: readonly Readonly<{
|
|
2448
2481
|
props: z.input<N["schema"]>;
|
|
@@ -2577,7 +2610,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2577
2610
|
/**
|
|
2578
2611
|
* Create a new edge.
|
|
2579
2612
|
*
|
|
2580
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2613
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2614
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2615
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2616
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2617
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2581
2618
|
*
|
|
2582
2619
|
* @param from - Source node (must be one of the allowed 'from' types)
|
|
2583
2620
|
* @param to - Target node (must be one of the allowed 'to' types)
|
|
@@ -2701,7 +2738,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2701
2738
|
* More efficient than calling create() multiple times.
|
|
2702
2739
|
* Use `bulkInsert` for the dedicated fast path that skips returning results.
|
|
2703
2740
|
*
|
|
2704
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2741
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2742
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2743
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2744
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2745
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2705
2746
|
*/
|
|
2706
2747
|
bulkCreate: (items: readonly Readonly<{
|
|
2707
2748
|
from: NodeRef<From>;
|
|
@@ -2726,11 +2767,16 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2726
2767
|
* is refused with `ValidationError` carrying
|
|
2727
2768
|
* `EDGE_IDENTITY_MISMATCH_CODE`; it is never silently ignored.
|
|
2728
2769
|
*
|
|
2729
|
-
* `validFrom` applies when the upsert CREATES the
|
|
2730
|
-
* a tombstoned one
|
|
2731
|
-
* operation's timestamp when omitted
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2770
|
+
* `validFrom` applies when the upsert CREATES the edge and when it RESURRECTS
|
|
2771
|
+
* a tombstoned one. A create writes a fresh validity window, defaulting to the
|
|
2772
|
+
* operation's timestamp when omitted — unless a stated `validTo` at or before
|
|
2773
|
+
* that instant would leave the row readable at no coordinate, in which case NO
|
|
2774
|
+
* lower bound is stored ("ended at T, start unknown") and `meta.validFrom`
|
|
2775
|
+
* reads back as `undefined`. A resurrection stamps nothing: an edge RETAINS
|
|
2776
|
+
* its stored lower bound unless the item names a new one, so a `validTo`
|
|
2777
|
+
* before the retained bound is REFUSED rather than stamped over. An update to
|
|
2778
|
+
* a LIVE row stores no lower bound, because that row's is already history, so
|
|
2779
|
+
* one naming a different instant is REFUSED (`ValidationError` carrying
|
|
2734
2780
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2735
2781
|
* bound the row already holds is accepted and changes nothing.
|
|
2736
2782
|
*
|
|
@@ -2760,7 +2806,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2760
2806
|
* with `returnResults: false`, the intent is unambiguous: no results
|
|
2761
2807
|
* are returned and the operation is wrapped in a transaction.
|
|
2762
2808
|
*
|
|
2763
|
-
* `validFrom` defaults to the operation's creation timestamp when omitted
|
|
2809
|
+
* `validFrom` defaults to the operation's creation timestamp when omitted —
|
|
2810
|
+
* unless a stated `validTo` at or before that instant would leave the row
|
|
2811
|
+
* readable at no coordinate, in which case the row is stored with NO lower
|
|
2812
|
+
* bound ("ended at T, start unknown") and `meta.validFrom` reads back as
|
|
2813
|
+
* `undefined`. A future `validTo` is unaffected.
|
|
2764
2814
|
*/
|
|
2765
2815
|
bulkInsert: (items: readonly Readonly<{
|
|
2766
2816
|
from: NodeRef<From>;
|
|
@@ -2807,8 +2857,13 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
2807
2857
|
* property fields, only edges whose properties match on those fields are considered.
|
|
2808
2858
|
* Soft-deleted matches are resurrected when cardinality allows.
|
|
2809
2859
|
*
|
|
2810
|
-
* `validFrom` applies on the create and RESURRECT branches
|
|
2811
|
-
* operation's creation timestamp when omitted
|
|
2860
|
+
* `validFrom` applies on the create and RESURRECT branches. A create defaults
|
|
2861
|
+
* it to the operation's creation timestamp when omitted — unless a stated
|
|
2862
|
+
* `validTo` at or before that instant would leave the row readable at no
|
|
2863
|
+
* coordinate, in which case no lower bound is stored ("ended at T, start
|
|
2864
|
+
* unknown"). A resurrection stamps nothing: an edge RETAINS its stored lower
|
|
2865
|
+
* bound unless the call names a new one, so a `validTo` before the retained
|
|
2866
|
+
* bound is REFUSED rather than stamped over. On the `ifExists: "update"`
|
|
2812
2867
|
* branch a live edge's lower bound is history and cannot be stored, so a
|
|
2813
2868
|
* `validFrom` naming a different instant is REFUSED (`ValidationError`
|
|
2814
2869
|
* carrying `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`); restating the bound the
|
|
@@ -3306,6 +3361,14 @@ type IdentityFacade<G extends GraphDef> = IdentityReadFacade<G> & Readonly<{
|
|
|
3306
3361
|
retractDifferentAssertion: (a: IdentityNodeRefInput<G>, b: IdentityNodeRefInput<G>) => Promise<IdentityAssertion<G> | undefined>;
|
|
3307
3362
|
bulkRetractAssertions: (ids: readonly IdentityAssertionId[]) => Promise<readonly IdentityAssertion<G>[]>;
|
|
3308
3363
|
}>;
|
|
3364
|
+
/**
|
|
3365
|
+
* The assertion-only write surface of the TypeGraph Identity Profile.
|
|
3366
|
+
*
|
|
3367
|
+
* This deliberately excludes reads and retractions so constrained staging
|
|
3368
|
+
* handles can accept incoming identity claims without exposing the broader
|
|
3369
|
+
* operational identity surface.
|
|
3370
|
+
*/
|
|
3371
|
+
type IdentityAssertionWriteFacade<G extends GraphDef> = Pick<IdentityFacade<G>, "assertSame" | "assertDifferent" | "bulkAssertSame" | "bulkAssertDifferent">;
|
|
3309
3372
|
/**
|
|
3310
3373
|
* Per-transaction identity write counts carried by a transaction receipt.
|
|
3311
3374
|
* `total` is the sum of the three preceding counters.
|
|
@@ -4100,6 +4163,22 @@ declare const STORE_RUNTIME: unique symbol;
|
|
|
4100
4163
|
*/
|
|
4101
4164
|
type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
4102
4165
|
backend: GraphBackend;
|
|
4166
|
+
/**
|
|
4167
|
+
* @internal The backend this Store's queries actually execute through for
|
|
4168
|
+
* `target` — the Store's own backend when `target` is omitted.
|
|
4169
|
+
*
|
|
4170
|
+
* It is the SAME private construction the query path uses rather than a
|
|
4171
|
+
* reconstruction of it, because the object it returns is the one a lost
|
|
4172
|
+
* derivation corrupts: the hooked query backend is a transient local inside
|
|
4173
|
+
* query construction that is stored nowhere, so no other handle on it exists
|
|
4174
|
+
* and a regression there is invisible to every assertion about
|
|
4175
|
+
* {@link StoreRuntime.backend}.
|
|
4176
|
+
*
|
|
4177
|
+
* NOTE for anything asserting on it: with no query hook configured this
|
|
4178
|
+
* returns its argument unchanged, so a hookless Store answers with the very
|
|
4179
|
+
* object it was handed and a comparison against that object is a tautology.
|
|
4180
|
+
*/
|
|
4181
|
+
queryBackend: (target?: GraphBackend | TransactionBackend) => GraphBackend;
|
|
4103
4182
|
sealedQuery: (coordinate: ReadCoordinate) => InitialQueryBuilder<G, "sealed">;
|
|
4104
4183
|
recordedNodeGetById: <N extends NodeType>(kind: string, id: NodeId<N>, coordinate: ReadCoordinate) => Promise<Node<N> | undefined>;
|
|
4105
4184
|
recordedNodeGetByIds: <N extends NodeType>(kind: string, ids: readonly NodeId<N>[], coordinate: ReadCoordinate) => Promise<readonly (Node<N> | undefined)[]>;
|
|
@@ -4112,6 +4191,22 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
4112
4191
|
identityAtCoordinate: (coordinate: ReadCoordinate) => IdentityReadFacade<G>;
|
|
4113
4192
|
rebuildIdentityClosure: () => Promise<void>;
|
|
4114
4193
|
validateIdentity: () => Promise<void>;
|
|
4194
|
+
/**
|
|
4195
|
+
* Validates one final resolved node write set, then clears the affected
|
|
4196
|
+
* uniqueness sidecars so its upserts may claim their approved keys in any
|
|
4197
|
+
* order. The caller must supply a transaction-bound backend.
|
|
4198
|
+
*/
|
|
4199
|
+
applyResolvedNodeUniqueness: <Output>(target: TransactionBackend, writes: Readonly<{
|
|
4200
|
+
upserts: readonly Readonly<{
|
|
4201
|
+
kind: string;
|
|
4202
|
+
id: string;
|
|
4203
|
+
props: Readonly<Record<string, unknown>>;
|
|
4204
|
+
}>[];
|
|
4205
|
+
releases: readonly Readonly<{
|
|
4206
|
+
kind: string;
|
|
4207
|
+
id: string;
|
|
4208
|
+
}>[];
|
|
4209
|
+
}>, apply: () => Promise<Output>) => Promise<Output>;
|
|
4115
4210
|
/**
|
|
4116
4211
|
* @internal Reads the graph's identity assertions in transfer shape, honoring
|
|
4117
4212
|
* this store's SQL binding. Used by interchange export, base-version
|
|
@@ -5276,4 +5371,4 @@ declare function createVerifiedAdapterStore<G extends GraphDef, TNativeTransacti
|
|
|
5276
5371
|
SchemaValidationResult
|
|
5277
5372
|
]>;
|
|
5278
5373
|
|
|
5279
|
-
export { type DynamicNodeKind as $, type AliasMap as A, type BaseStoreOptions as B, type BatchableQuery as C, type BulkEdgeSourceGroup as D, type EdgeAliasMap as E, type BulkFindEdgesFromParams as F, type BulkFindEdgesFromResult as G, type HistoryStoreOptions as H, type IdentityAssertion as I, type BulkOperationHookContext as J, type ConstraintNames as K, type LiveStoreOptions as L, type CreateEdgeInput as M, type CreateNodeInput as N, type DegreeOptions as O, type DynamicEdgeAccessor as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type DynamicEdgeCollection as V, type DynamicEdgeType as W, type DynamicFieldBuilder as X, type DynamicNode as Y, type DynamicNodeAccessor as Z, type DynamicNodeCollection as _, type Store as a, type
|
|
5374
|
+
export { type DynamicNodeKind as $, type AliasMap as A, type BaseStoreOptions as B, type BatchableQuery as C, type BulkEdgeSourceGroup as D, type EdgeAliasMap as E, type BulkFindEdgesFromParams as F, type BulkFindEdgesFromResult as G, type HistoryStoreOptions as H, type IdentityAssertion as I, type BulkOperationHookContext as J, type ConstraintNames as K, type LiveStoreOptions as L, type CreateEdgeInput as M, type CreateNodeInput as N, type DegreeOptions as O, type DynamicEdgeAccessor as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type DynamicEdgeCollection as V, type DynamicEdgeType as W, type DynamicFieldBuilder as X, type DynamicNode as Y, type DynamicNodeAccessor as Z, type DynamicNodeCollection as _, type Store as a, type NodeWrites as a$, type DynamicNodeReference as a0, type DynamicNodeType as a1, type DynamicSelectableEdge as a2, type DynamicSelectableNode as a3, type Edge as a4, type EdgeAccessor as a5, type EdgeBatchReads as a6, type EdgeBulkFindEndpointOptions as a7, type EdgeBulkFindOptions as a8, type EdgeCollection as a9, type IdentityNodeReference as aA, type IdentityTraversalOption as aB, type IdentityValidityWindow as aC, type IfExistsMode as aD, type InitialQueryBuilder as aE, type KindIntrospection as aF, type LabelPropagationMembership as aG, type LabelPropagationOptions as aH, type MaterializeRemovalsEntry as aI, type MaterializeRemovalsOptions as aJ, type MaterializeRemovalsResult as aK, type MeasurableAdapterHistoryTransactionContext as aL, type MeasurableAdapterTransactionContext as aM, type MeasurableTransactionContext as aN, type NeighborsOptions as aO, type NoRecordedCoordinate as aP, type Node as aQ, type NodeAccessor as aR, type NodeAlias as aS, type NodeBulkFindByIndexOptions as aT, type NodeCollection as aU, type NodeCurrentReads as aV, type NodeGetOrCreateByConstraintOptions as aW, type NodeGetOrCreateByConstraintResult as aX, type NodeIdentifier as aY, type NodeRef as aZ, type NodeTemporalReads as a_, type EdgeFindByEndpointsOptions as aa, type EdgeGetOrCreateByEndpointsOptions as ab, type EdgeGetOrCreateByEndpointsResult as ac, type EdgeIntrospection as ad, type EdgeTemporalReads as ae, type EdgeWrites as af, type EmptyAliasMap as ag, type EmptyEdgeAliasMap as ah, ExecutableAggregateQuery as ai, ExecutableQuery as aj, type FieldAccessor as ak, type FulltextSearchHit as al, type FulltextSearchOptions as am, type GetOrCreateAction as an, type GraphAlgorithms as ao, type GraphEdgeCollections as ap, type GraphEdgeForKinds as aq, type GraphNodeCollections as ar, type GraphNodeReference as as, type HistoryStoreBackend as at, type HookContext as au, type HybridFulltextOptions as av, type HybridSearchHit as aw, type HybridSearchOptions as ax, type HybridVectorOptions as ay, type IdentityAssertionWriteFacade as az, type HistoryStore as b, type StreamOptions as b$, type OntologyIntrospection as b0, type OperationHookContext as b1, type PageRankOptions as b2, type PageRankScore as b3, type PaginateOptions as b4, type PaginatedResult as b5, type PathNode as b6, type PersonalizedPageRankOptions as b7, type PersonalizedPageRankSeed as b8, type Predicate as b9, type SelectableEdge as bA, type SelectableNode as bB, type ShortestPathOptions as bC, type ShortestPathResult as bD, type SqlAvailability as bE, type StoreHooks as bF, type StoreProjection as bG, type StoreRef as bH, StoreSearch as bI, StoreView as bJ, type StoreViewCanReachOptions as bK, type StoreViewCoordinate as bL, type StoreViewDegreeOptions as bM, type StoreViewEdgeCollection as bN, type StoreViewEdgeCollections as bO, type StoreViewGraphAlgorithms as bP, type StoreViewLabelPropagationOptions as bQ, type StoreViewNeighborsOptions as bR, type StoreViewNodeCollection as bS, type StoreViewNodeCollections as bT, type StoreViewPageRankOptions as bU, type StoreViewPersonalizedPageRankOptions as bV, type StoreViewReachableOptions as bW, type StoreViewShortestPathOptions as bX, type StoreViewSubgraphOptions as bY, type StoreViewWeaklyConnectedComponentsOptions as bZ, type StoreViewWeightedShortestPathOptions as b_, PreparedQuery as ba, type PropsAccessor as bb, type QueryHookContext as bc, type QueryOptions as bd, type ReachableNode as be, type ReachableOptions as bf, type RebuildContributionOptions as bg, type RebuildFulltextOptions as bh, type RebuildFulltextResult as bi, type ReclaimedVectorFieldEntry as bj, type ReconciledSchema as bk, type RecordedScanOptions as bl, type RecordedScanPage as bm, RecordedStoreView as bn, type RecordedStoreViewEdgeCollection as bo, type RecordedStoreViewEdgeCollections as bp, type RecordedStoreViewNodeCollection as bq, type RecordedStoreViewNodeCollections as br, type RecursiveTraversalOptions as bs, type ReembedFunction as bt, type ReembedVectorFieldOptions as bu, type ReembedVectorFieldResult as bv, type SchemaIntrospection as bw, type ScopedMeasure as bx, type SearchScopeOptions as by, type SelectContext as bz, type RecordedReadStore as c, type SubgraphEdgeResult as c0, type SubgraphNodeResult as c1, type SubgraphOptions as c2, type SubgraphResult as c3, type SubsetEdge as c4, type SubsetNode as c5, type TemporalAlgorithmOptions as c6, type TransactionContext as c7, type TransactionOutcome as c8, type TransactionReceipt as c9, inSubquery as cA, isParameterRef as cB, notExists as cC, notInSubquery as cD, param as cE, type TraversalDirection as ca, type TypedEdgeCollection as cb, type TypedRecordedStoreViewEdgeCollection as cc, type TypedStoreViewEdgeCollection as cd, UnionableQuery as ce, type UniqueIntrospection as cf, type UpdateEdgeInput as cg, type UpdateNodeInput as ch, type ValidityEndMutation as ci, type VectorSearchHit as cj, type VectorSearchOptions as ck, type WeaklyConnectedComponentMembership as cl, type WeaklyConnectedComponentsOptions as cm, type WeightedShortestPathOptions as cn, type WeightedShortestPathResult as co, asIdentityAssertionId as cp, createAdapterStore as cq, createAdapterStoreWithSchema as cr, createQueryBuilder as cs, createStore as ct, createStoreWithSchema as cu, createVerifiedAdapterStore as cv, createVerifiedStore as cw, defineSubgraphProject as cx, exists as cy, fieldRef as cz, type IdentityAssertionId as d, type IdentityAssertionResult as e, type IdentityFacade as f, type IdentityNode as g, type IdentityNodeRefInput as h, type IdentityPair as i, type IdentityReadFacade as j, type IdentityRelation as k, type IdentityWriteSummary as l, type RecursiveAliasMap as m, QueryBuilder as n, type EmptyRecursiveAliasMap as o, type AdapterHistoryStore as p, type AdapterHistoryTransactionContext as q, type AdapterRecordedReadStore as r, type AdapterStore as s, type AdapterTransactionContext as t, type AggregateResult as u, type AlgorithmCyclePolicy as v, type AnyEdge as w, type AnyNode as x, type BaseTraversalOptions as y, type BatchResults as z };
|
|
@@ -2622,7 +2622,13 @@ type InsertNodeParams = Readonly<{
|
|
|
2622
2622
|
id: string;
|
|
2623
2623
|
props: Readonly<Record<string, unknown>>;
|
|
2624
2624
|
/**
|
|
2625
|
-
* Omitted (`undefined`):
|
|
2625
|
+
* Omitted (`undefined`): the insert stamps its own creation timestamp —
|
|
2626
|
+
* UNLESS a stated `validTo` at or before that instant would make the stored
|
|
2627
|
+
* window readable at no coordinate, in which case the row is stored with no
|
|
2628
|
+
* lower bound ("ended at T, start unknown"). See
|
|
2629
|
+
* `resolveStampedValidityLowerBound`, which every insert builder decides
|
|
2630
|
+
* through. Custom backend implementations can import that owner from
|
|
2631
|
+
* `@nicia-ai/typegraph/backend` rather than reimplementing the rule.
|
|
2626
2632
|
* `null`: preserves an explicit open-left validity window (no lower
|
|
2627
2633
|
* bound) — used by interchange import to round-trip a row that was
|
|
2628
2634
|
* already NULL, instead of re-stamping it to the import's own timestamp.
|
|
@@ -2648,7 +2654,20 @@ type UpdateNodeParams = Readonly<{
|
|
|
2648
2654
|
kind: string;
|
|
2649
2655
|
id: string;
|
|
2650
2656
|
props: Readonly<Record<string, unknown>>;
|
|
2651
|
-
/**
|
|
2657
|
+
/**
|
|
2658
|
+
* Applied when resurrecting a tombstone, which RESETS the window. Omitted
|
|
2659
|
+
* means the resurrection instant — unless a stated `validTo` at or before it
|
|
2660
|
+
* would leave the row readable at no coordinate, in which case the
|
|
2661
|
+
* resurrection stores no lower bound. Same rule, same owner, as an insert:
|
|
2662
|
+
* `resolveStampedValidityLowerBound`.
|
|
2663
|
+
*
|
|
2664
|
+
* The store's own resurrection paths never omit it. Their window guard has to
|
|
2665
|
+
* judge the bound the write will STORE, so they resolve it through that owner
|
|
2666
|
+
* against the instant they sampled and pass the result — `null` included,
|
|
2667
|
+
* which is how "store no lower bound" is spelled here. Omission is for callers
|
|
2668
|
+
* with no such verdict to honor; it lets this builder decide against its own,
|
|
2669
|
+
* strictly later sample.
|
|
2670
|
+
*/
|
|
2652
2671
|
validFrom?: string | null;
|
|
2653
2672
|
/**
|
|
2654
2673
|
* The effective `valid_from` this write ASSERTS the target row already
|
|
@@ -2731,7 +2750,13 @@ type InsertEdgeParams = Readonly<{
|
|
|
2731
2750
|
toId: string;
|
|
2732
2751
|
props: Readonly<Record<string, unknown>>;
|
|
2733
2752
|
/**
|
|
2734
|
-
* Omitted (`undefined`):
|
|
2753
|
+
* Omitted (`undefined`): the insert stamps its own creation timestamp —
|
|
2754
|
+
* UNLESS a stated `validTo` at or before that instant would make the stored
|
|
2755
|
+
* window readable at no coordinate, in which case the row is stored with no
|
|
2756
|
+
* lower bound ("ended at T, start unknown"). See
|
|
2757
|
+
* `resolveStampedValidityLowerBound`, which every insert builder decides
|
|
2758
|
+
* through. Custom backend implementations can import that owner from
|
|
2759
|
+
* `@nicia-ai/typegraph/backend` rather than reimplementing the rule.
|
|
2735
2760
|
* `null`: preserves an explicit open-left validity window (no lower
|
|
2736
2761
|
* bound) — used by interchange import to round-trip a row that was
|
|
2737
2762
|
* already NULL, instead of re-stamping it to the import's own timestamp.
|
|
@@ -5628,4 +5653,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
5628
5653
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
5629
5654
|
type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
|
|
5630
5655
|
|
|
5631
|
-
export { type FieldRef as $, type AdapterBackend as A, type BackendCapabilities as B, type ContributionDiagnostic as C, type SerializedNodeDef as D, type EdgeIndexDeclaration as E, type FulltextStrategy as F, type GraphIdentityConfig as G, type SerializedEdgeDef as H, type IndexDeclaration as I, type JsonPointer as J, type KindEntity as K, type IndexEntity as L, type SerializedMetaEdge as M, type NodeIndexDeclaration as N, type SerializedOntologyRelation as O, type SerializedClosures as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqlDialect as S, type TemporalMode as T, type SchemaHash as U, type VectorStrategy as V, type NullCheckOp as W, type JsonSchema as X, type SerializedOntology as Y, type SerializedUniqueConstraint as Z, type AggregateExpr as _, type ContributionDiagnosticState as a, type IndexMaterializationBackend as a$, type ComparisonOp as a0, type AggregateComparisonPredicate as a1, type TraversalDirection as a2, type OntologyRelation as a3, type InferenceType as a4, type EdgeType as a5, type AdapterBackendTransactions as a6, type AllEdgeTypes as a7, type AllNodeTypes as a8, type BackendIdentity as a9, type EdgeId as aA, type EdgeKinds as aB, type EdgeProps as aC, type EdgeRegistration as aD, type EdgeTypeWithEndpoints as aE, type EndpointExistence as aF, type ExternalRecordedReadSource as aG, type FilteredApproximateSearch as aH, type FilteredApproximateSearchMode as aI, type FindEdgesByHeterogeneousEndpointSetParams as aJ, type FulltextBatchRow as aK, type FulltextCapabilities as aL, type FulltextOperationBackend as aM, type FulltextQueryMode as aN, type FulltextSearchParams as aO, type FulltextSearchResult as aP, type GetEdgeType as aQ, type GetNodeType as aR, type GraphAnalyticsCapabilities as aS, type GraphDefaults as aT, type GraphEntityReadBackend as aU, type GraphEntityWriteBackend as aV, type GraphExtension as aW, type GraphExtensionVersion as aX, type GraphLifecycleBackend as aY, type HardDeleteUniquesByNodeIdsParams as aZ, type HybridFusionOptions as a_, type BackendLifecycle as aa, type BackendMaintenance as ab, type BackendTransactions as ac, CURRENT_GRAPH_EXTENSION_VERSION as ad, type Cardinality as ae, type Collation as af, type CommitSchemaVersionExpected as ag, type CommitSchemaVersionIfKindsEmptyResult as ah, type CommitSchemaVersionParams as ai, type CompiledRowsSql as aj, type CompiledSelectSql as ak, type CompiledStatementSql as al, type ContributionCapabilities as am, type ContributionMaterializationBackend as an, type ContributionProbeContribution as ao, type ContributionProbeEntry as ap, type ContributionProbeResult as aq, type ContributionProbeState as ar, type ContributionRebuildResult as as, type ContributionRebuildScope as at, type ContributionRepopulationStats as au, DEFAULT_SQL_SCHEMA as av, type DeleteBehavior as aw, type DeleteFulltextBatchParams as ax, type EdgeEntityReadBackend as ay, type EdgeEntityWriteBackend as az, type ContributionRepairEntry as b, type VectorOperationBackend as b$, type IntentSql as b0, type JsonPointerFor as b1, type JsonPointerInput as b2, type JsonPointerSegment as b3, type JsonPointerSegments as b4, type JsonPointerSegmentsFor as b5, type JsonValue as b6, type KindAnnotations as b7, LEGACY_GRAPH_EXTENSION_VERSION as b8, type LockSchemaVersionForWriteParams as b9, type SchemaWriteFenceBackend as bA, type SetActiveVersionParams as bB, type SortDirection as bC, type SqlChunk as bD, type SqlFragment as bE, type SqlIdentifierChunk as bF, type SqlIntent as bG, type SqlParameterChunk as bH, type SqlPlaceholderChunk as bI, type SqlTableNames as bJ, type SqlTag as bK, type SqlTextChunk as bL, type StrategyTableContribution as bM, type TableContribution as bN, type TransactionBackend as bO, type TransactionOptions as bP, type TransactionReadBackend as bQ, type TraversalExpansion as bR, type TrustedImportOptions as bS, type TrustedImportSession as bT, type UniqueConstraint as bU, type UniqueConstraintBackend as bV, type UniquenessScope as bW, type UpdateNodeSetParams as bX, type UpdateNodeSetResult as bY, type UpsertFulltextBatchParams as bZ, type VectorCapabilities as b_, MAX_JSON_POINTER_DEPTH as ba, type MetaEdge as bb, type MetaEdgeProperties as bc, type NodeEntityReadBackend as bd, type NodeEntityWriteBackend as be, type NodeId as bf, type NodeKinds as bg, type NodeProps as bh, type NodeRegistration as bi, type OrderSpec as bj, type ParameterRef as bk, Placeholder as bl, type PopulatedSchemaKind as bm, type QueryExecutionBackend as bn, type RawQueryExecutionBackend as bo, type RawStatementExecutionBackend as bp, type RecordedRelationOptions as bq, type RemovalMaterializationBackend as br, type RenderedSql as bs, type ResolveJsonPointer as bt, type ResolveJsonPointerSegments as bu, type ResolvedSqlTableNames as bv, type RowProps as bw, type SchemaCommitBackend as bx, type SchemaKindEmptinessProbe as by, type SchemaReadBackend as bz, type ContributionRepairResult as c, type CreateVectorIndexParams as c$, type VectorSearchFrontierTuning as c0, asEdgeId as c1, asNodeId as c2, buildVectorCapabilities as c3, createSqlSchema as c4, defineGraph as c5, fts5Strategy as c6, getEdgeKinds as c7, getNodeKinds as c8, isEdgeType as c9, type NodePredicate as cA, type ProjectedField as cB, type AggregateOrderSpec as cC, type GroupBySpec as cD, type RecursiveCyclePolicy as cE, type VectorSlotMap as cF, type RecordedReadBinding as cG, type SelectiveField as cH, type ComposableQuery as cI, type SetOperationType as cJ, type SetOperation as cK, type NodeRow as cL, type EdgeRow as cM, type BackendValidityEndMutation as cN, type VectorMetric as cO, ALL_FULLTEXT_MODES as cP, ALL_META_EDGE_NAMES as cQ, BASE_CONTRIBUTION_OWNER as cR, type CheckUniqueBatchParams as cS, type CheckUniqueParams as cT, type ClaimIndexMaterializationParams as cU, type CompiledTemporaryStatementSql as cV, type ContributionMaterializationIdentity as cW, type ContributionMaterializationRow as cX, type CountEdgesByKindParams as cY, type CountEdgesFromParams as cZ, type CountNodesByKindParams as c_, isEdgeTypeWithEndpoints as ca, isGraphDef as cb, isMetaEdge as cc, isNodeType as cd, isSqlFragment as ce, joinJsonPointers as cf, jsonPointer as cg, normalizeJsonPointer as ch, parseJsonPointer as ci, recordedRelation as cj, renderPostgres as ck, renderSql as cl, renderSqlInline as cm, renderSqlite as cn, rowPropsToJsonText as co, rowPropsToObject as cp, sql as cq, tsvectorStrategy as cr, type ExtensionNodeDef as cs, type ExtensionEdgeDef as ct, type ExtensionOntologyRelation as cu, type ExtensionIndex as cv, type ValueType as cw, type PredicateExpression as cx, type VectorMetricType as cy, type Traversal as cz, type GraphDef as d, type RelationalIndexMethod as d$, D1_MAX_BIND_PARAMETERS as d0, DURABLE_OBJECT_MAX_BIND_PARAMETERS as d1, type DeleteEdgeParams as d2, type DeleteEdgesBatchParams as d3, type DeleteEmbeddingParams as d4, type DeleteFulltextParams as d5, type DeleteNodeParams as d6, type DeleteUniqueParams as d7, type DialectAdapter as d8, type DialectCapabilities as d9, type FindEdgesConnectedToParams as dA, type FindNodesByKindParams as dB, type GraphReadBackend as dC, type HardDeleteEdgeParams as dD, type HardDeleteNodeParams as dE, type HybridSearchParams as dF, type HybridSearchRow as dG, type IdentityTableNames as dH, type InListParameterOptions as dI, type IndexDeclarationBase as dJ, type IndexMaterializationRow as dK, type IndexWhereLiteral as dL, type IndexWhereOp as dM, type IndexWhereOperand as dN, type InsertEdgeParams as dO, type InsertNodeParams as dP, type InsertSchemaParams as dQ, type InsertUniqueParams as dR, type KindRemovalRow as dS, type LiveNodeRow as dT, MODERN_SQLITE_MAX_BIND_PARAMETERS as dU, type MetaEdgeName as dV, POSTGRES_CAPABILITIES as dW, POSTGRES_MAX_BIND_PARAMETERS as dX, type RecordContributionMaterializationParams as dY, type RecordIndexMaterializationParams as dZ, type RecordKindRemovalParams as d_, type DialectRecursiveQueryStrategy as da, type DialectStandardQueryStrategy as db, type DialectVectorPredicateStrategy as dc, type DropVectorIndexParams as dd, type EdgeExistsBetweenParams as de, type ExtensionArrayItemType as df, type ExtensionArrayProperty as dg, type ExtensionBooleanProperty as dh, type ExtensionEdgeIndex as di, type ExtensionEmbeddingModifier as dj, type ExtensionEnumProperty as dk, type ExtensionIndexWhere as dl, type ExtensionNodeIndex as dm, type ExtensionNumberProperty as dn, type ExtensionObjectFieldProperty as dp, type ExtensionObjectProperty as dq, type ExtensionPropertyModifiers as dr, type ExtensionPropertyType as ds, type ExtensionSearchableModifier as dt, type ExtensionStringProperty as du, type ExtensionUniqueConstraint as dv, type ExtensionUniqueWhere as dw, FULLTEXT_CONTRIBUTION_NAME as dx, type FindEdgesByEndpointSetParams as dy, type FindEdgesByKindParams as dz, type EdgeIndexConfig as e, type ReleaseIndexMaterializationClaimParams as e0, SQLITE_CAPABILITIES as e1, SQLITE_MAX_BIND_PARAMETERS as e2, type SchemaCommitPreflightBackend as e3, type SqlCompilationBackend as e4, type TombstonedNodeRow as e5, type UniqueRow as e6, type UpdateEdgeParams as e7, type UpdateNodeParams as e8, type UpsertEmbeddingBatchParams as e9, type UpsertEmbeddingBatchRow as ea, type UpsertEmbeddingParams as eb, type UpsertFulltextParams as ec, VECTOR_CONTRIBUTION_PREFIX as ed, type VectorIndexType as ee, type VectorSearchParams as ef, type VectorSearchResult as eg, assertFiniteEmbedding as eh, assertVectorMinScore as ei, assertVectorSearchLimit as ej, buildFulltextCapabilities as ek, isLiveNodeRow as el, isSqlPlaceholder as em, isTombstonedNodeRow as en, normalizeGraphAnalyticsCapabilities as eo, quoteIdentifier as ep, shortHash as eq, vectorMinScoreCondition as er, vectorPhysicalName as es, vectorScoreExpression as et, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eu, type GraphExtensionTopLevelKey as ev, type EdgeIndexDirection as f, type EdgeIndexWhereBuilder as g, type IndexOrigin as h, type IndexScope as i, type IndexWhereExpression as j, type IndexWhereFieldBuilder as k, type IndexWhereInput as l, type NodeIndexConfig as m, type NodeIndexWhereBuilder as n, type SystemColumnName as o, type VectorIndexDeclaration as p, type VectorIndexImplementation as q, type VectorIndexMetric as r, type VectorIndexParams as s, type VectorSlot as t, type NodeType as u, type AnyEdgeType as v, SqlSchema as w, type SchemaVersionRow as x, type GraphBackend as y, type SerializedSchema as z };
|
|
5656
|
+
export { type DialectCapabilities as $, ALL_FULLTEXT_MODES as A, BASE_CONTRIBUTION_OWNER as B, type Cardinality as C, type ContributionProbeEntry as D, type ContributionProbeResult as E, type ContributionProbeState as F, type ContributionRebuildResult as G, type ContributionRebuildScope as H, type IndexDeclaration as I, type ContributionRepairEntry as J, type ContributionRepairResult as K, type ContributionRepopulationStats as L, type CountEdgesByKindParams as M, type CountEdgesFromParams as N, type CountNodesByKindParams as O, type CreateVectorIndexParams as P, D1_MAX_BIND_PARAMETERS as Q, DURABLE_OBJECT_MAX_BIND_PARAMETERS as R, type DeleteBehavior as S, type DeleteEdgeParams as T, type DeleteEdgesBatchParams as U, type DeleteEmbeddingParams as V, type DeleteFulltextBatchParams as W, type DeleteFulltextParams as X, type DeleteNodeParams as Y, type DeleteUniqueParams as Z, type DialectAdapter as _, ALL_META_EDGE_NAMES as a, type IndexDeclarationBase as a$, type DialectRecursiveQueryStrategy as a0, type DialectStandardQueryStrategy as a1, type DialectVectorPredicateStrategy as a2, type DropVectorIndexParams as a3, type EdgeEntityReadBackend as a4, type EdgeEntityWriteBackend as a5, type EdgeExistsBetweenParams as a6, type EdgeIndexDeclaration as a7, type EdgeIndexDirection as a8, type EdgeRow as a9, type FindEdgesByHeterogeneousEndpointSetParams as aA, type FindEdgesByKindParams as aB, type FindEdgesConnectedToParams as aC, type FindNodesByKindParams as aD, type FulltextBatchRow as aE, type FulltextCapabilities as aF, type FulltextOperationBackend as aG, type FulltextQueryMode as aH, type FulltextSearchParams as aI, type FulltextSearchResult as aJ, type FulltextStrategy as aK, type GraphAnalyticsCapabilities as aL, type GraphBackend as aM, type GraphEntityReadBackend as aN, type GraphEntityWriteBackend as aO, type GraphExtension as aP, type GraphExtensionVersion as aQ, type GraphIdentityConfig as aR, type GraphLifecycleBackend as aS, type GraphReadBackend as aT, type HardDeleteEdgeParams as aU, type HardDeleteNodeParams as aV, type HardDeleteUniquesByNodeIdsParams as aW, type HybridSearchParams as aX, type HybridSearchRow as aY, type IdentityTableNames as aZ, type InListParameterOptions as a_, type EndpointExistence as aa, type ExtensionArrayItemType as ab, type ExtensionArrayProperty as ac, type ExtensionBooleanProperty as ad, type ExtensionEdgeDef as ae, type ExtensionEdgeIndex as af, type ExtensionEmbeddingModifier as ag, type ExtensionEnumProperty as ah, type ExtensionIndex as ai, type ExtensionIndexWhere as aj, type ExtensionNodeDef as ak, type ExtensionNodeIndex as al, type ExtensionNumberProperty as am, type ExtensionObjectFieldProperty as an, type ExtensionObjectProperty as ao, type ExtensionOntologyRelation as ap, type ExtensionPropertyModifiers as aq, type ExtensionPropertyType as ar, type ExtensionSearchableModifier as as, type ExtensionStringProperty as at, type ExtensionUniqueConstraint as au, type ExtensionUniqueWhere as av, FULLTEXT_CONTRIBUTION_NAME as aw, type FilteredApproximateSearch as ax, type FilteredApproximateSearchMode as ay, type FindEdgesByEndpointSetParams as az, type AdapterBackend as b, type SetActiveVersionParams as b$, type IndexEntity as b0, type IndexMaterializationBackend as b1, type IndexMaterializationRow as b2, type IndexOrigin as b3, type IndexScope as b4, type IndexWhereExpression as b5, type IndexWhereLiteral as b6, type IndexWhereOp as b7, type IndexWhereOperand as b8, type InferenceType as b9, type RawStatementExecutionBackend as bA, type RecordContributionMaterializationParams as bB, type RecordIndexMaterializationParams as bC, type RecordKindRemovalParams as bD, type RelationalIndexDeclaration as bE, type RelationalIndexMethod as bF, type ReleaseIndexMaterializationClaimParams as bG, type RemovalMaterializationBackend as bH, type RenderedSql as bI, type ResolvedSqlTableNames as bJ, type RowProps as bK, SQLITE_CAPABILITIES as bL, SQLITE_MAX_BIND_PARAMETERS as bM, type SchemaCommitBackend as bN, type SchemaCommitPreflightBackend as bO, type SchemaKindEmptinessProbe as bP, type SchemaReadBackend as bQ, type SchemaVersionRow as bR, type SchemaWriteFenceBackend as bS, type SerializedClosures as bT, type SerializedEdgeDef as bU, type SerializedMetaEdge as bV, type SerializedNodeDef as bW, type SerializedOntology as bX, type SerializedOntologyRelation as bY, type SerializedSchema as bZ, type SerializedUniqueConstraint as b_, type InsertEdgeParams as ba, type InsertNodeParams as bb, type InsertSchemaParams as bc, type InsertUniqueParams as bd, type IntentSql as be, type JsonPointer as bf, type JsonSchema as bg, type JsonValue as bh, type KindAnnotations as bi, type KindEntity as bj, type KindRemovalRow as bk, type LiveNodeRow as bl, type LockSchemaVersionForWriteParams as bm, MODERN_SQLITE_MAX_BIND_PARAMETERS as bn, type MetaEdgeName as bo, type NodeEntityReadBackend as bp, type NodeEntityWriteBackend as bq, type NodeIndexDeclaration as br, type NodeRow as bs, type NullCheckOp as bt, POSTGRES_CAPABILITIES as bu, POSTGRES_MAX_BIND_PARAMETERS as bv, Placeholder as bw, type PopulatedSchemaKind as bx, type QueryExecutionBackend as by, type RawQueryExecutionBackend as bz, type AdapterBackendTransactions as c, renderSqlite as c$, type SqlChunk as c0, type SqlCompilationBackend as c1, type SqlDialect as c2, type SqlFragment as c3, type SqlIdentifierChunk as c4, type SqlIntent as c5, type SqlParameterChunk as c6, type SqlPlaceholderChunk as c7, type SqlTableNames as c8, type SqlTag as c9, type VectorIndexDeclaration as cA, type VectorIndexImplementation as cB, type VectorIndexMetric as cC, type VectorIndexParams as cD, type VectorIndexType as cE, type VectorMetric as cF, type VectorOperationBackend as cG, type VectorSearchFrontierTuning as cH, type VectorSearchParams as cI, type VectorSearchResult as cJ, type VectorSlot as cK, type VectorStrategy as cL, assertFiniteEmbedding as cM, assertVectorMinScore as cN, assertVectorSearchLimit as cO, buildFulltextCapabilities as cP, buildVectorCapabilities as cQ, fts5Strategy as cR, isLiveNodeRow as cS, isSqlFragment as cT, isSqlPlaceholder as cU, isTombstonedNodeRow as cV, normalizeGraphAnalyticsCapabilities as cW, quoteIdentifier as cX, renderPostgres as cY, renderSql as cZ, renderSqlInline as c_, type SqlTextChunk as ca, type StrategyTableContribution as cb, type SystemColumnName as cc, type TableContribution as cd, type TemporalMode as ce, type TombstonedNodeRow as cf, type TransactionBackend as cg, type TransactionOptions as ch, type TransactionReadBackend as ci, type TrustedImportOptions as cj, type TrustedImportSession as ck, type UniqueConstraintBackend as cl, type UniqueRow as cm, type UniquenessScope as cn, type UpdateEdgeParams as co, type UpdateNodeParams as cp, type UpdateNodeSetParams as cq, type UpdateNodeSetResult as cr, type UpsertEmbeddingBatchParams as cs, type UpsertEmbeddingBatchRow as ct, type UpsertEmbeddingParams as cu, type UpsertFulltextBatchParams as cv, type UpsertFulltextParams as cw, VECTOR_CONTRIBUTION_PREFIX as cx, type ValueType as cy, type VectorCapabilities as cz, type BackendCapabilities as d, asEdgeId as d$, rowPropsToJsonText as d0, rowPropsToObject as d1, shortHash as d2, sql as d3, tsvectorStrategy as d4, vectorMinScoreCondition as d5, vectorPhysicalName as d6, vectorScoreExpression as d7, type GraphDef as d8, type QueryAst as d9, type EdgeTypeWithEndpoints as dA, type ExternalRecordedReadSource as dB, type GetEdgeType as dC, type GetNodeType as dD, type GraphDefaults as dE, type HybridFusionOptions as dF, type JsonPointerFor as dG, type JsonPointerInput as dH, type JsonPointerSegment as dI, type JsonPointerSegments as dJ, type JsonPointerSegmentsFor as dK, LEGACY_GRAPH_EXTENSION_VERSION as dL, MAX_JSON_POINTER_DEPTH as dM, type MetaEdge as dN, type MetaEdgeProperties as dO, type NodeId as dP, type NodeKinds as dQ, type NodeProps as dR, type NodeRegistration as dS, type OrderSpec as dT, type ParameterRef as dU, type RecordedRelationOptions as dV, type ResolveJsonPointer as dW, type ResolveJsonPointerSegments as dX, type SortDirection as dY, type TraversalExpansion as dZ, type UniqueConstraint as d_, type EdgeIndexConfig as da, type EdgeIndexWhereBuilder as db, type IndexWhereFieldBuilder as dc, type IndexWhereInput as dd, type NodeIndexConfig as de, type NodeIndexWhereBuilder as df, type NodeType as dg, type AnyEdgeType as dh, SqlSchema as di, type SchemaHash as dj, type AggregateExpr as dk, type FieldRef as dl, type ComparisonOp as dm, type AggregateComparisonPredicate as dn, type TraversalDirection as dp, type OntologyRelation as dq, type EdgeType as dr, type AllEdgeTypes as ds, type AllNodeTypes as dt, CURRENT_GRAPH_EXTENSION_VERSION as du, DEFAULT_SQL_SCHEMA as dv, type EdgeId as dw, type EdgeKinds as dx, type EdgeProps as dy, type EdgeRegistration as dz, type BackendIdentity as e, asNodeId as e0, createSqlSchema as e1, defineGraph as e2, getEdgeKinds as e3, getNodeKinds as e4, isEdgeType as e5, isEdgeTypeWithEndpoints as e6, isGraphDef as e7, isMetaEdge as e8, isNodeType as e9, joinJsonPointers as ea, jsonPointer as eb, normalizeJsonPointer as ec, parseJsonPointer as ed, recordedRelation as ee, type PredicateExpression as ef, type VectorMetricType as eg, type Traversal as eh, type NodePredicate as ei, type ProjectedField as ej, type AggregateOrderSpec as ek, type GroupBySpec as el, type RecursiveCyclePolicy as em, type VectorSlotMap as en, type RecordedReadBinding as eo, type SelectiveField as ep, type ComposableQuery as eq, type SetOperationType as er, type SetOperation as es, type BackendValidityEndMutation as et, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eu, type GraphExtensionTopLevelKey as ev, type BackendLifecycle as f, type BackendMaintenance as g, type BackendTransactions as h, type CheckUniqueBatchParams as i, type CheckUniqueParams as j, type ClaimIndexMaterializationParams as k, type Collation as l, type CommitSchemaVersionExpected as m, type CommitSchemaVersionIfKindsEmptyResult as n, type CommitSchemaVersionParams as o, type CompiledRowsSql as p, type CompiledSelectSql as q, type CompiledStatementSql as r, type CompiledTemporaryStatementSql as s, type ContributionCapabilities as t, type ContributionDiagnostic as u, type ContributionDiagnosticState as v, type ContributionMaterializationBackend as w, type ContributionMaterializationIdentity as x, type ContributionMaterializationRow as y, type ContributionProbeContribution as z };
|
|
@@ -2622,7 +2622,13 @@ type InsertNodeParams = Readonly<{
|
|
|
2622
2622
|
id: string;
|
|
2623
2623
|
props: Readonly<Record<string, unknown>>;
|
|
2624
2624
|
/**
|
|
2625
|
-
* Omitted (`undefined`):
|
|
2625
|
+
* Omitted (`undefined`): the insert stamps its own creation timestamp —
|
|
2626
|
+
* UNLESS a stated `validTo` at or before that instant would make the stored
|
|
2627
|
+
* window readable at no coordinate, in which case the row is stored with no
|
|
2628
|
+
* lower bound ("ended at T, start unknown"). See
|
|
2629
|
+
* `resolveStampedValidityLowerBound`, which every insert builder decides
|
|
2630
|
+
* through. Custom backend implementations can import that owner from
|
|
2631
|
+
* `@nicia-ai/typegraph/backend` rather than reimplementing the rule.
|
|
2626
2632
|
* `null`: preserves an explicit open-left validity window (no lower
|
|
2627
2633
|
* bound) — used by interchange import to round-trip a row that was
|
|
2628
2634
|
* already NULL, instead of re-stamping it to the import's own timestamp.
|
|
@@ -2648,7 +2654,20 @@ type UpdateNodeParams = Readonly<{
|
|
|
2648
2654
|
kind: string;
|
|
2649
2655
|
id: string;
|
|
2650
2656
|
props: Readonly<Record<string, unknown>>;
|
|
2651
|
-
/**
|
|
2657
|
+
/**
|
|
2658
|
+
* Applied when resurrecting a tombstone, which RESETS the window. Omitted
|
|
2659
|
+
* means the resurrection instant — unless a stated `validTo` at or before it
|
|
2660
|
+
* would leave the row readable at no coordinate, in which case the
|
|
2661
|
+
* resurrection stores no lower bound. Same rule, same owner, as an insert:
|
|
2662
|
+
* `resolveStampedValidityLowerBound`.
|
|
2663
|
+
*
|
|
2664
|
+
* The store's own resurrection paths never omit it. Their window guard has to
|
|
2665
|
+
* judge the bound the write will STORE, so they resolve it through that owner
|
|
2666
|
+
* against the instant they sampled and pass the result — `null` included,
|
|
2667
|
+
* which is how "store no lower bound" is spelled here. Omission is for callers
|
|
2668
|
+
* with no such verdict to honor; it lets this builder decide against its own,
|
|
2669
|
+
* strictly later sample.
|
|
2670
|
+
*/
|
|
2652
2671
|
validFrom?: string | null;
|
|
2653
2672
|
/**
|
|
2654
2673
|
* The effective `valid_from` this write ASSERTS the target row already
|
|
@@ -2731,7 +2750,13 @@ type InsertEdgeParams = Readonly<{
|
|
|
2731
2750
|
toId: string;
|
|
2732
2751
|
props: Readonly<Record<string, unknown>>;
|
|
2733
2752
|
/**
|
|
2734
|
-
* Omitted (`undefined`):
|
|
2753
|
+
* Omitted (`undefined`): the insert stamps its own creation timestamp —
|
|
2754
|
+
* UNLESS a stated `validTo` at or before that instant would make the stored
|
|
2755
|
+
* window readable at no coordinate, in which case the row is stored with no
|
|
2756
|
+
* lower bound ("ended at T, start unknown"). See
|
|
2757
|
+
* `resolveStampedValidityLowerBound`, which every insert builder decides
|
|
2758
|
+
* through. Custom backend implementations can import that owner from
|
|
2759
|
+
* `@nicia-ai/typegraph/backend` rather than reimplementing the rule.
|
|
2735
2760
|
* `null`: preserves an explicit open-left validity window (no lower
|
|
2736
2761
|
* bound) — used by interchange import to round-trip a row that was
|
|
2737
2762
|
* already NULL, instead of re-stamping it to the import's own timestamp.
|
|
@@ -5628,4 +5653,4 @@ type RelationalIndexDeclaration = NodeIndexDeclaration | EdgeIndexDeclaration;
|
|
|
5628
5653
|
type IndexDeclaration = RelationalIndexDeclaration | VectorIndexDeclaration;
|
|
5629
5654
|
type SystemColumnName = "graph_id" | "kind" | "id" | "from_kind" | "from_id" | "to_kind" | "to_id" | "deleted_at" | "valid_from" | "valid_to" | "created_at" | "updated_at" | "version";
|
|
5630
5655
|
|
|
5631
|
-
export { type FieldRef as $, type AdapterBackend as A, type BackendCapabilities as B, type ContributionDiagnostic as C, type SerializedNodeDef as D, type EdgeIndexDeclaration as E, type FulltextStrategy as F, type GraphIdentityConfig as G, type SerializedEdgeDef as H, type IndexDeclaration as I, type JsonPointer as J, type KindEntity as K, type IndexEntity as L, type SerializedMetaEdge as M, type NodeIndexDeclaration as N, type SerializedOntologyRelation as O, type SerializedClosures as P, type QueryAst as Q, type RelationalIndexDeclaration as R, type SqlDialect as S, type TemporalMode as T, type SchemaHash as U, type VectorStrategy as V, type NullCheckOp as W, type JsonSchema as X, type SerializedOntology as Y, type SerializedUniqueConstraint as Z, type AggregateExpr as _, type ContributionDiagnosticState as a, type IndexMaterializationBackend as a$, type ComparisonOp as a0, type AggregateComparisonPredicate as a1, type TraversalDirection as a2, type OntologyRelation as a3, type InferenceType as a4, type EdgeType as a5, type AdapterBackendTransactions as a6, type AllEdgeTypes as a7, type AllNodeTypes as a8, type BackendIdentity as a9, type EdgeId as aA, type EdgeKinds as aB, type EdgeProps as aC, type EdgeRegistration as aD, type EdgeTypeWithEndpoints as aE, type EndpointExistence as aF, type ExternalRecordedReadSource as aG, type FilteredApproximateSearch as aH, type FilteredApproximateSearchMode as aI, type FindEdgesByHeterogeneousEndpointSetParams as aJ, type FulltextBatchRow as aK, type FulltextCapabilities as aL, type FulltextOperationBackend as aM, type FulltextQueryMode as aN, type FulltextSearchParams as aO, type FulltextSearchResult as aP, type GetEdgeType as aQ, type GetNodeType as aR, type GraphAnalyticsCapabilities as aS, type GraphDefaults as aT, type GraphEntityReadBackend as aU, type GraphEntityWriteBackend as aV, type GraphExtension as aW, type GraphExtensionVersion as aX, type GraphLifecycleBackend as aY, type HardDeleteUniquesByNodeIdsParams as aZ, type HybridFusionOptions as a_, type BackendLifecycle as aa, type BackendMaintenance as ab, type BackendTransactions as ac, CURRENT_GRAPH_EXTENSION_VERSION as ad, type Cardinality as ae, type Collation as af, type CommitSchemaVersionExpected as ag, type CommitSchemaVersionIfKindsEmptyResult as ah, type CommitSchemaVersionParams as ai, type CompiledRowsSql as aj, type CompiledSelectSql as ak, type CompiledStatementSql as al, type ContributionCapabilities as am, type ContributionMaterializationBackend as an, type ContributionProbeContribution as ao, type ContributionProbeEntry as ap, type ContributionProbeResult as aq, type ContributionProbeState as ar, type ContributionRebuildResult as as, type ContributionRebuildScope as at, type ContributionRepopulationStats as au, DEFAULT_SQL_SCHEMA as av, type DeleteBehavior as aw, type DeleteFulltextBatchParams as ax, type EdgeEntityReadBackend as ay, type EdgeEntityWriteBackend as az, type ContributionRepairEntry as b, type VectorOperationBackend as b$, type IntentSql as b0, type JsonPointerFor as b1, type JsonPointerInput as b2, type JsonPointerSegment as b3, type JsonPointerSegments as b4, type JsonPointerSegmentsFor as b5, type JsonValue as b6, type KindAnnotations as b7, LEGACY_GRAPH_EXTENSION_VERSION as b8, type LockSchemaVersionForWriteParams as b9, type SchemaWriteFenceBackend as bA, type SetActiveVersionParams as bB, type SortDirection as bC, type SqlChunk as bD, type SqlFragment as bE, type SqlIdentifierChunk as bF, type SqlIntent as bG, type SqlParameterChunk as bH, type SqlPlaceholderChunk as bI, type SqlTableNames as bJ, type SqlTag as bK, type SqlTextChunk as bL, type StrategyTableContribution as bM, type TableContribution as bN, type TransactionBackend as bO, type TransactionOptions as bP, type TransactionReadBackend as bQ, type TraversalExpansion as bR, type TrustedImportOptions as bS, type TrustedImportSession as bT, type UniqueConstraint as bU, type UniqueConstraintBackend as bV, type UniquenessScope as bW, type UpdateNodeSetParams as bX, type UpdateNodeSetResult as bY, type UpsertFulltextBatchParams as bZ, type VectorCapabilities as b_, MAX_JSON_POINTER_DEPTH as ba, type MetaEdge as bb, type MetaEdgeProperties as bc, type NodeEntityReadBackend as bd, type NodeEntityWriteBackend as be, type NodeId as bf, type NodeKinds as bg, type NodeProps as bh, type NodeRegistration as bi, type OrderSpec as bj, type ParameterRef as bk, Placeholder as bl, type PopulatedSchemaKind as bm, type QueryExecutionBackend as bn, type RawQueryExecutionBackend as bo, type RawStatementExecutionBackend as bp, type RecordedRelationOptions as bq, type RemovalMaterializationBackend as br, type RenderedSql as bs, type ResolveJsonPointer as bt, type ResolveJsonPointerSegments as bu, type ResolvedSqlTableNames as bv, type RowProps as bw, type SchemaCommitBackend as bx, type SchemaKindEmptinessProbe as by, type SchemaReadBackend as bz, type ContributionRepairResult as c, type CreateVectorIndexParams as c$, type VectorSearchFrontierTuning as c0, asEdgeId as c1, asNodeId as c2, buildVectorCapabilities as c3, createSqlSchema as c4, defineGraph as c5, fts5Strategy as c6, getEdgeKinds as c7, getNodeKinds as c8, isEdgeType as c9, type NodePredicate as cA, type ProjectedField as cB, type AggregateOrderSpec as cC, type GroupBySpec as cD, type RecursiveCyclePolicy as cE, type VectorSlotMap as cF, type RecordedReadBinding as cG, type SelectiveField as cH, type ComposableQuery as cI, type SetOperationType as cJ, type SetOperation as cK, type NodeRow as cL, type EdgeRow as cM, type BackendValidityEndMutation as cN, type VectorMetric as cO, ALL_FULLTEXT_MODES as cP, ALL_META_EDGE_NAMES as cQ, BASE_CONTRIBUTION_OWNER as cR, type CheckUniqueBatchParams as cS, type CheckUniqueParams as cT, type ClaimIndexMaterializationParams as cU, type CompiledTemporaryStatementSql as cV, type ContributionMaterializationIdentity as cW, type ContributionMaterializationRow as cX, type CountEdgesByKindParams as cY, type CountEdgesFromParams as cZ, type CountNodesByKindParams as c_, isEdgeTypeWithEndpoints as ca, isGraphDef as cb, isMetaEdge as cc, isNodeType as cd, isSqlFragment as ce, joinJsonPointers as cf, jsonPointer as cg, normalizeJsonPointer as ch, parseJsonPointer as ci, recordedRelation as cj, renderPostgres as ck, renderSql as cl, renderSqlInline as cm, renderSqlite as cn, rowPropsToJsonText as co, rowPropsToObject as cp, sql as cq, tsvectorStrategy as cr, type ExtensionNodeDef as cs, type ExtensionEdgeDef as ct, type ExtensionOntologyRelation as cu, type ExtensionIndex as cv, type ValueType as cw, type PredicateExpression as cx, type VectorMetricType as cy, type Traversal as cz, type GraphDef as d, type RelationalIndexMethod as d$, D1_MAX_BIND_PARAMETERS as d0, DURABLE_OBJECT_MAX_BIND_PARAMETERS as d1, type DeleteEdgeParams as d2, type DeleteEdgesBatchParams as d3, type DeleteEmbeddingParams as d4, type DeleteFulltextParams as d5, type DeleteNodeParams as d6, type DeleteUniqueParams as d7, type DialectAdapter as d8, type DialectCapabilities as d9, type FindEdgesConnectedToParams as dA, type FindNodesByKindParams as dB, type GraphReadBackend as dC, type HardDeleteEdgeParams as dD, type HardDeleteNodeParams as dE, type HybridSearchParams as dF, type HybridSearchRow as dG, type IdentityTableNames as dH, type InListParameterOptions as dI, type IndexDeclarationBase as dJ, type IndexMaterializationRow as dK, type IndexWhereLiteral as dL, type IndexWhereOp as dM, type IndexWhereOperand as dN, type InsertEdgeParams as dO, type InsertNodeParams as dP, type InsertSchemaParams as dQ, type InsertUniqueParams as dR, type KindRemovalRow as dS, type LiveNodeRow as dT, MODERN_SQLITE_MAX_BIND_PARAMETERS as dU, type MetaEdgeName as dV, POSTGRES_CAPABILITIES as dW, POSTGRES_MAX_BIND_PARAMETERS as dX, type RecordContributionMaterializationParams as dY, type RecordIndexMaterializationParams as dZ, type RecordKindRemovalParams as d_, type DialectRecursiveQueryStrategy as da, type DialectStandardQueryStrategy as db, type DialectVectorPredicateStrategy as dc, type DropVectorIndexParams as dd, type EdgeExistsBetweenParams as de, type ExtensionArrayItemType as df, type ExtensionArrayProperty as dg, type ExtensionBooleanProperty as dh, type ExtensionEdgeIndex as di, type ExtensionEmbeddingModifier as dj, type ExtensionEnumProperty as dk, type ExtensionIndexWhere as dl, type ExtensionNodeIndex as dm, type ExtensionNumberProperty as dn, type ExtensionObjectFieldProperty as dp, type ExtensionObjectProperty as dq, type ExtensionPropertyModifiers as dr, type ExtensionPropertyType as ds, type ExtensionSearchableModifier as dt, type ExtensionStringProperty as du, type ExtensionUniqueConstraint as dv, type ExtensionUniqueWhere as dw, FULLTEXT_CONTRIBUTION_NAME as dx, type FindEdgesByEndpointSetParams as dy, type FindEdgesByKindParams as dz, type EdgeIndexConfig as e, type ReleaseIndexMaterializationClaimParams as e0, SQLITE_CAPABILITIES as e1, SQLITE_MAX_BIND_PARAMETERS as e2, type SchemaCommitPreflightBackend as e3, type SqlCompilationBackend as e4, type TombstonedNodeRow as e5, type UniqueRow as e6, type UpdateEdgeParams as e7, type UpdateNodeParams as e8, type UpsertEmbeddingBatchParams as e9, type UpsertEmbeddingBatchRow as ea, type UpsertEmbeddingParams as eb, type UpsertFulltextParams as ec, VECTOR_CONTRIBUTION_PREFIX as ed, type VectorIndexType as ee, type VectorSearchParams as ef, type VectorSearchResult as eg, assertFiniteEmbedding as eh, assertVectorMinScore as ei, assertVectorSearchLimit as ej, buildFulltextCapabilities as ek, isLiveNodeRow as el, isSqlPlaceholder as em, isTombstonedNodeRow as en, normalizeGraphAnalyticsCapabilities as eo, quoteIdentifier as ep, shortHash as eq, vectorMinScoreCondition as er, vectorPhysicalName as es, vectorScoreExpression as et, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eu, type GraphExtensionTopLevelKey as ev, type EdgeIndexDirection as f, type EdgeIndexWhereBuilder as g, type IndexOrigin as h, type IndexScope as i, type IndexWhereExpression as j, type IndexWhereFieldBuilder as k, type IndexWhereInput as l, type NodeIndexConfig as m, type NodeIndexWhereBuilder as n, type SystemColumnName as o, type VectorIndexDeclaration as p, type VectorIndexImplementation as q, type VectorIndexMetric as r, type VectorIndexParams as s, type VectorSlot as t, type NodeType as u, type AnyEdgeType as v, SqlSchema as w, type SchemaVersionRow as x, type GraphBackend as y, type SerializedSchema as z };
|
|
5656
|
+
export { type DialectCapabilities as $, ALL_FULLTEXT_MODES as A, BASE_CONTRIBUTION_OWNER as B, type Cardinality as C, type ContributionProbeEntry as D, type ContributionProbeResult as E, type ContributionProbeState as F, type ContributionRebuildResult as G, type ContributionRebuildScope as H, type IndexDeclaration as I, type ContributionRepairEntry as J, type ContributionRepairResult as K, type ContributionRepopulationStats as L, type CountEdgesByKindParams as M, type CountEdgesFromParams as N, type CountNodesByKindParams as O, type CreateVectorIndexParams as P, D1_MAX_BIND_PARAMETERS as Q, DURABLE_OBJECT_MAX_BIND_PARAMETERS as R, type DeleteBehavior as S, type DeleteEdgeParams as T, type DeleteEdgesBatchParams as U, type DeleteEmbeddingParams as V, type DeleteFulltextBatchParams as W, type DeleteFulltextParams as X, type DeleteNodeParams as Y, type DeleteUniqueParams as Z, type DialectAdapter as _, ALL_META_EDGE_NAMES as a, type IndexDeclarationBase as a$, type DialectRecursiveQueryStrategy as a0, type DialectStandardQueryStrategy as a1, type DialectVectorPredicateStrategy as a2, type DropVectorIndexParams as a3, type EdgeEntityReadBackend as a4, type EdgeEntityWriteBackend as a5, type EdgeExistsBetweenParams as a6, type EdgeIndexDeclaration as a7, type EdgeIndexDirection as a8, type EdgeRow as a9, type FindEdgesByHeterogeneousEndpointSetParams as aA, type FindEdgesByKindParams as aB, type FindEdgesConnectedToParams as aC, type FindNodesByKindParams as aD, type FulltextBatchRow as aE, type FulltextCapabilities as aF, type FulltextOperationBackend as aG, type FulltextQueryMode as aH, type FulltextSearchParams as aI, type FulltextSearchResult as aJ, type FulltextStrategy as aK, type GraphAnalyticsCapabilities as aL, type GraphBackend as aM, type GraphEntityReadBackend as aN, type GraphEntityWriteBackend as aO, type GraphExtension as aP, type GraphExtensionVersion as aQ, type GraphIdentityConfig as aR, type GraphLifecycleBackend as aS, type GraphReadBackend as aT, type HardDeleteEdgeParams as aU, type HardDeleteNodeParams as aV, type HardDeleteUniquesByNodeIdsParams as aW, type HybridSearchParams as aX, type HybridSearchRow as aY, type IdentityTableNames as aZ, type InListParameterOptions as a_, type EndpointExistence as aa, type ExtensionArrayItemType as ab, type ExtensionArrayProperty as ac, type ExtensionBooleanProperty as ad, type ExtensionEdgeDef as ae, type ExtensionEdgeIndex as af, type ExtensionEmbeddingModifier as ag, type ExtensionEnumProperty as ah, type ExtensionIndex as ai, type ExtensionIndexWhere as aj, type ExtensionNodeDef as ak, type ExtensionNodeIndex as al, type ExtensionNumberProperty as am, type ExtensionObjectFieldProperty as an, type ExtensionObjectProperty as ao, type ExtensionOntologyRelation as ap, type ExtensionPropertyModifiers as aq, type ExtensionPropertyType as ar, type ExtensionSearchableModifier as as, type ExtensionStringProperty as at, type ExtensionUniqueConstraint as au, type ExtensionUniqueWhere as av, FULLTEXT_CONTRIBUTION_NAME as aw, type FilteredApproximateSearch as ax, type FilteredApproximateSearchMode as ay, type FindEdgesByEndpointSetParams as az, type AdapterBackend as b, type SetActiveVersionParams as b$, type IndexEntity as b0, type IndexMaterializationBackend as b1, type IndexMaterializationRow as b2, type IndexOrigin as b3, type IndexScope as b4, type IndexWhereExpression as b5, type IndexWhereLiteral as b6, type IndexWhereOp as b7, type IndexWhereOperand as b8, type InferenceType as b9, type RawStatementExecutionBackend as bA, type RecordContributionMaterializationParams as bB, type RecordIndexMaterializationParams as bC, type RecordKindRemovalParams as bD, type RelationalIndexDeclaration as bE, type RelationalIndexMethod as bF, type ReleaseIndexMaterializationClaimParams as bG, type RemovalMaterializationBackend as bH, type RenderedSql as bI, type ResolvedSqlTableNames as bJ, type RowProps as bK, SQLITE_CAPABILITIES as bL, SQLITE_MAX_BIND_PARAMETERS as bM, type SchemaCommitBackend as bN, type SchemaCommitPreflightBackend as bO, type SchemaKindEmptinessProbe as bP, type SchemaReadBackend as bQ, type SchemaVersionRow as bR, type SchemaWriteFenceBackend as bS, type SerializedClosures as bT, type SerializedEdgeDef as bU, type SerializedMetaEdge as bV, type SerializedNodeDef as bW, type SerializedOntology as bX, type SerializedOntologyRelation as bY, type SerializedSchema as bZ, type SerializedUniqueConstraint as b_, type InsertEdgeParams as ba, type InsertNodeParams as bb, type InsertSchemaParams as bc, type InsertUniqueParams as bd, type IntentSql as be, type JsonPointer as bf, type JsonSchema as bg, type JsonValue as bh, type KindAnnotations as bi, type KindEntity as bj, type KindRemovalRow as bk, type LiveNodeRow as bl, type LockSchemaVersionForWriteParams as bm, MODERN_SQLITE_MAX_BIND_PARAMETERS as bn, type MetaEdgeName as bo, type NodeEntityReadBackend as bp, type NodeEntityWriteBackend as bq, type NodeIndexDeclaration as br, type NodeRow as bs, type NullCheckOp as bt, POSTGRES_CAPABILITIES as bu, POSTGRES_MAX_BIND_PARAMETERS as bv, Placeholder as bw, type PopulatedSchemaKind as bx, type QueryExecutionBackend as by, type RawQueryExecutionBackend as bz, type AdapterBackendTransactions as c, renderSqlite as c$, type SqlChunk as c0, type SqlCompilationBackend as c1, type SqlDialect as c2, type SqlFragment as c3, type SqlIdentifierChunk as c4, type SqlIntent as c5, type SqlParameterChunk as c6, type SqlPlaceholderChunk as c7, type SqlTableNames as c8, type SqlTag as c9, type VectorIndexDeclaration as cA, type VectorIndexImplementation as cB, type VectorIndexMetric as cC, type VectorIndexParams as cD, type VectorIndexType as cE, type VectorMetric as cF, type VectorOperationBackend as cG, type VectorSearchFrontierTuning as cH, type VectorSearchParams as cI, type VectorSearchResult as cJ, type VectorSlot as cK, type VectorStrategy as cL, assertFiniteEmbedding as cM, assertVectorMinScore as cN, assertVectorSearchLimit as cO, buildFulltextCapabilities as cP, buildVectorCapabilities as cQ, fts5Strategy as cR, isLiveNodeRow as cS, isSqlFragment as cT, isSqlPlaceholder as cU, isTombstonedNodeRow as cV, normalizeGraphAnalyticsCapabilities as cW, quoteIdentifier as cX, renderPostgres as cY, renderSql as cZ, renderSqlInline as c_, type SqlTextChunk as ca, type StrategyTableContribution as cb, type SystemColumnName as cc, type TableContribution as cd, type TemporalMode as ce, type TombstonedNodeRow as cf, type TransactionBackend as cg, type TransactionOptions as ch, type TransactionReadBackend as ci, type TrustedImportOptions as cj, type TrustedImportSession as ck, type UniqueConstraintBackend as cl, type UniqueRow as cm, type UniquenessScope as cn, type UpdateEdgeParams as co, type UpdateNodeParams as cp, type UpdateNodeSetParams as cq, type UpdateNodeSetResult as cr, type UpsertEmbeddingBatchParams as cs, type UpsertEmbeddingBatchRow as ct, type UpsertEmbeddingParams as cu, type UpsertFulltextBatchParams as cv, type UpsertFulltextParams as cw, VECTOR_CONTRIBUTION_PREFIX as cx, type ValueType as cy, type VectorCapabilities as cz, type BackendCapabilities as d, asEdgeId as d$, rowPropsToJsonText as d0, rowPropsToObject as d1, shortHash as d2, sql as d3, tsvectorStrategy as d4, vectorMinScoreCondition as d5, vectorPhysicalName as d6, vectorScoreExpression as d7, type GraphDef as d8, type QueryAst as d9, type EdgeTypeWithEndpoints as dA, type ExternalRecordedReadSource as dB, type GetEdgeType as dC, type GetNodeType as dD, type GraphDefaults as dE, type HybridFusionOptions as dF, type JsonPointerFor as dG, type JsonPointerInput as dH, type JsonPointerSegment as dI, type JsonPointerSegments as dJ, type JsonPointerSegmentsFor as dK, LEGACY_GRAPH_EXTENSION_VERSION as dL, MAX_JSON_POINTER_DEPTH as dM, type MetaEdge as dN, type MetaEdgeProperties as dO, type NodeId as dP, type NodeKinds as dQ, type NodeProps as dR, type NodeRegistration as dS, type OrderSpec as dT, type ParameterRef as dU, type RecordedRelationOptions as dV, type ResolveJsonPointer as dW, type ResolveJsonPointerSegments as dX, type SortDirection as dY, type TraversalExpansion as dZ, type UniqueConstraint as d_, type EdgeIndexConfig as da, type EdgeIndexWhereBuilder as db, type IndexWhereFieldBuilder as dc, type IndexWhereInput as dd, type NodeIndexConfig as de, type NodeIndexWhereBuilder as df, type NodeType as dg, type AnyEdgeType as dh, SqlSchema as di, type SchemaHash as dj, type AggregateExpr as dk, type FieldRef as dl, type ComparisonOp as dm, type AggregateComparisonPredicate as dn, type TraversalDirection as dp, type OntologyRelation as dq, type EdgeType as dr, type AllEdgeTypes as ds, type AllNodeTypes as dt, CURRENT_GRAPH_EXTENSION_VERSION as du, DEFAULT_SQL_SCHEMA as dv, type EdgeId as dw, type EdgeKinds as dx, type EdgeProps as dy, type EdgeRegistration as dz, type BackendIdentity as e, asNodeId as e0, createSqlSchema as e1, defineGraph as e2, getEdgeKinds as e3, getNodeKinds as e4, isEdgeType as e5, isEdgeTypeWithEndpoints as e6, isGraphDef as e7, isMetaEdge as e8, isNodeType as e9, joinJsonPointers as ea, jsonPointer as eb, normalizeJsonPointer as ec, parseJsonPointer as ed, recordedRelation as ee, type PredicateExpression as ef, type VectorMetricType as eg, type Traversal as eh, type NodePredicate as ei, type ProjectedField as ej, type AggregateOrderSpec as ek, type GroupBySpec as el, type RecursiveCyclePolicy as em, type VectorSlotMap as en, type RecordedReadBinding as eo, type SelectiveField as ep, type ComposableQuery as eq, type SetOperationType as er, type SetOperation as es, type BackendValidityEndMutation as et, GRAPH_EXTENSION_TOP_LEVEL_KEYS as eu, type GraphExtensionTopLevelKey as ev, type BackendLifecycle as f, type BackendMaintenance as g, type BackendTransactions as h, type CheckUniqueBatchParams as i, type CheckUniqueParams as j, type ClaimIndexMaterializationParams as k, type Collation as l, type CommitSchemaVersionExpected as m, type CommitSchemaVersionIfKindsEmptyResult as n, type CommitSchemaVersionParams as o, type CompiledRowsSql as p, type CompiledSelectSql as q, type CompiledStatementSql as r, type CompiledTemporaryStatementSql as s, type ContributionCapabilities as t, type ContributionDiagnostic as u, type ContributionDiagnosticState as v, type ContributionMaterializationBackend as w, type ContributionMaterializationIdentity as x, type ContributionMaterializationRow as y, type ContributionProbeContribution as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dh as AnyEdgeType, da as EdgeIndexConfig, a7 as EdgeIndexDeclaration, dg as NodeType, de as NodeIndexConfig, br as NodeIndexDeclaration, b5 as IndexWhereExpression } from './types-BqFZTQmV.cjs';
|
|
2
2
|
|
|
3
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
4
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dh as AnyEdgeType, da as EdgeIndexConfig, a7 as EdgeIndexDeclaration, dg as NodeType, de as NodeIndexConfig, br as NodeIndexDeclaration, b5 as IndexWhereExpression } from './types-BqFZTQmV.js';
|
|
2
2
|
|
|
3
3
|
/** The TypeGraph relations that carry system indexes. */
|
|
4
4
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicia-ai/typegraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -192,8 +192,7 @@
|
|
|
192
192
|
"tsup": "^8.5.1",
|
|
193
193
|
"typescript": "^5.9.3",
|
|
194
194
|
"vitest": "^4.1.9",
|
|
195
|
-
"zod": "^4.4.3"
|
|
196
|
-
"@typegraph/eslint-config": "0.1.0"
|
|
195
|
+
"zod": "^4.4.3"
|
|
197
196
|
},
|
|
198
197
|
"scripts": {
|
|
199
198
|
"dev": "tsup --watch",
|