@nicia-ai/typegraph 0.58.0 → 0.59.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/CHANGELOG.md +22 -0
- package/README.md +12 -0
- package/dist/{atomic-mutation-program-CPcn0ZPu.d.ts → atomic-mutation-program-BNvJ13bq.d.ts} +1 -1
- package/dist/{atomic-mutation-program-AqOe51XD.d.cts → atomic-mutation-program-DOVE147J.d.cts} +1 -1
- package/dist/backend/drizzle/engine/index.cjs +8 -8
- package/dist/backend/drizzle/engine/index.d.cts +9 -9
- package/dist/backend/drizzle/engine/index.d.ts +9 -9
- package/dist/backend/drizzle/engine/index.js +3 -3
- package/dist/backend/drizzle/indexes.cjs +6 -6
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +2 -2
- package/dist/backend/index.d.cts +7 -7
- package/dist/backend/index.d.ts +7 -7
- package/dist/backend/postgres/index.cjs +17 -17
- package/dist/backend/postgres/index.d.cts +8 -8
- package/dist/backend/postgres/index.d.ts +8 -8
- package/dist/backend/postgres/index.js +3 -3
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +6 -6
- package/dist/backend/postgres/pglite-store.d.ts +6 -6
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +5 -5
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +4 -4
- package/dist/backend/sqlite/index.cjs +16 -16
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +3 -3
- package/dist/backend/sqlite/libsql.cjs +7 -7
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +3 -3
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.d.cts +6 -6
- package/dist/backend/sqlite/local-store.d.ts +6 -6
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +5 -5
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +4 -4
- package/dist/{chunk-QR6V2BXA.cjs → chunk-26CL47SW.cjs} +13 -13
- package/dist/{chunk-QR6V2BXA.cjs.map → chunk-26CL47SW.cjs.map} +1 -1
- package/dist/{chunk-U53HFE4L.cjs → chunk-2GZL5ED3.cjs} +16 -16
- package/dist/{chunk-U53HFE4L.cjs.map → chunk-2GZL5ED3.cjs.map} +1 -1
- package/dist/{chunk-QIKO6DL5.js → chunk-2QNFFAMF.js} +3 -3
- package/dist/{chunk-QIKO6DL5.js.map → chunk-2QNFFAMF.js.map} +1 -1
- package/dist/{chunk-M7TRJXFE.js → chunk-3GX5HTPP.js} +3 -3
- package/dist/{chunk-M7TRJXFE.js.map → chunk-3GX5HTPP.js.map} +1 -1
- package/dist/{chunk-US3BLFWM.js → chunk-7GNPCBS2.js} +3 -3
- package/dist/{chunk-US3BLFWM.js.map → chunk-7GNPCBS2.js.map} +1 -1
- package/dist/{chunk-FHFPUORN.cjs → chunk-CA76FVJB.cjs} +1234 -306
- package/dist/chunk-CA76FVJB.cjs.map +1 -0
- package/dist/{chunk-4MZQVVPX.cjs → chunk-D5CHUSW7.cjs} +33 -2
- package/dist/chunk-D5CHUSW7.cjs.map +1 -0
- package/dist/{chunk-TKEJR2UL.cjs → chunk-DWO6WZP5.cjs} +6 -6
- package/dist/{chunk-TKEJR2UL.cjs.map → chunk-DWO6WZP5.cjs.map} +1 -1
- package/dist/{chunk-5C4OYYDD.js → chunk-DZ3ETMXF.js} +4 -4
- package/dist/{chunk-5C4OYYDD.js.map → chunk-DZ3ETMXF.js.map} +1 -1
- package/dist/{chunk-IV3FENV2.js → chunk-E6PU35DE.js} +4 -4
- package/dist/{chunk-IV3FENV2.js.map → chunk-E6PU35DE.js.map} +1 -1
- package/dist/{chunk-GUMNJJFP.cjs → chunk-EN67I47R.cjs} +9 -9
- package/dist/{chunk-GUMNJJFP.cjs.map → chunk-EN67I47R.cjs.map} +1 -1
- package/dist/{chunk-BYBMDK6X.js → chunk-GYOQAV6R.js} +3 -3
- package/dist/{chunk-BYBMDK6X.js.map → chunk-GYOQAV6R.js.map} +1 -1
- package/dist/{chunk-GTW5YKFV.js → chunk-HCNC53MU.js} +3 -3
- package/dist/{chunk-GTW5YKFV.js.map → chunk-HCNC53MU.js.map} +1 -1
- package/dist/{chunk-BMATB57B.cjs → chunk-KW3ON5IU.cjs} +11 -11
- package/dist/{chunk-BMATB57B.cjs.map → chunk-KW3ON5IU.cjs.map} +1 -1
- package/dist/{chunk-GK62U3S5.js → chunk-LOFUF6L7.js} +3 -3
- package/dist/{chunk-GK62U3S5.js.map → chunk-LOFUF6L7.js.map} +1 -1
- package/dist/{chunk-7JUD57B4.js → chunk-MKQY4ZLZ.js} +996 -68
- package/dist/chunk-MKQY4ZLZ.js.map +1 -0
- package/dist/{chunk-YTYB5KCQ.js → chunk-OH7QRGPQ.js} +33 -2
- package/dist/chunk-OH7QRGPQ.js.map +1 -0
- package/dist/{chunk-WAG3NVD7.cjs → chunk-QBQ465OX.cjs} +12 -12
- package/dist/{chunk-WAG3NVD7.cjs.map → chunk-QBQ465OX.cjs.map} +1 -1
- package/dist/{chunk-CRROO6PK.cjs → chunk-QHP2BCBJ.cjs} +4 -4
- package/dist/{chunk-CRROO6PK.cjs.map → chunk-QHP2BCBJ.cjs.map} +1 -1
- package/dist/{chunk-ZHLWPHNT.cjs → chunk-RJ3GVX73.cjs} +6 -6
- package/dist/{chunk-ZHLWPHNT.cjs.map → chunk-RJ3GVX73.cjs.map} +1 -1
- package/dist/{chunk-SYKR6MVR.cjs → chunk-T2M2S5YZ.cjs} +59 -59
- package/dist/{chunk-SYKR6MVR.cjs.map → chunk-T2M2S5YZ.cjs.map} +1 -1
- package/dist/{chunk-OESX3T5K.js → chunk-TNNDNSNH.js} +4 -4
- package/dist/{chunk-OESX3T5K.js.map → chunk-TNNDNSNH.js.map} +1 -1
- package/dist/{chunk-C3CN2C2T.cjs → chunk-UOHFBYYH.cjs} +4 -4
- package/dist/{chunk-C3CN2C2T.cjs.map → chunk-UOHFBYYH.cjs.map} +1 -1
- package/dist/{chunk-DV24YZHG.js → chunk-V3JKR2CN.js} +4 -4
- package/dist/{chunk-DV24YZHG.js.map → chunk-V3JKR2CN.js.map} +1 -1
- package/dist/{chunk-CVO2ZPW5.js → chunk-W4NT4IMI.js} +3 -3
- package/dist/{chunk-CVO2ZPW5.js.map → chunk-W4NT4IMI.js.map} +1 -1
- package/dist/{chunk-FGKWXSHF.cjs → chunk-XGYUUUHY.cjs} +22 -22
- package/dist/{chunk-FGKWXSHF.cjs.map → chunk-XGYUUUHY.cjs.map} +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/{ddl-wlEdaCQK.d.cts → ddl-B9lzB8Zi.d.cts} +3 -3
- package/dist/{ddl-DkFrUTn_.d.ts → ddl-DuZWvxBb.d.ts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -2
- package/dist/graph-extension/index.d.ts +2 -2
- package/dist/graph-merge/index.cjs +31 -31
- package/dist/graph-merge/index.d.cts +7 -6
- package/dist/graph-merge/index.d.ts +7 -6
- package/dist/graph-merge/index.js +8 -8
- package/dist/{graph-templates-6zTU7bNe.d.cts → graph-templates-Buh-RlmQ.d.cts} +2 -2
- package/dist/{graph-templates-B4gkXVqg.d.ts → graph-templates-DQnmCPkd.d.ts} +2 -2
- package/dist/index.cjs +68 -68
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +8 -8
- package/dist/indexes/index.cjs +8 -8
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +3 -3
- package/dist/{ingestion-import-target-im9wEB00.d.cts → ingestion-import-target-BSgJagqI.d.cts} +1 -1
- package/dist/{ingestion-import-target-SopMSm-T.d.ts → ingestion-import-target-PNw10V4T.d.ts} +1 -1
- package/dist/interchange/index.cjs +27 -27
- package/dist/interchange/index.d.cts +7 -6
- package/dist/interchange/index.d.ts +7 -6
- package/dist/interchange/index.js +4 -4
- package/dist/{local-store-impl-FTGRP2V7.js → local-store-impl-EPUMDNQJ.js} +12 -12
- package/dist/{local-store-impl-FTGRP2V7.js.map → local-store-impl-EPUMDNQJ.js.map} +1 -1
- package/dist/{local-store-impl-ARNXBBSF.cjs → local-store-impl-GFBZBCTN.cjs} +15 -15
- package/dist/{local-store-impl-ARNXBBSF.cjs.map → local-store-impl-GFBZBCTN.cjs.map} +1 -1
- package/dist/{pglite-store-impl-CNQZYRBC.cjs → pglite-store-impl-DB4RRLB7.cjs} +15 -15
- package/dist/{pglite-store-impl-CNQZYRBC.cjs.map → pglite-store-impl-DB4RRLB7.cjs.map} +1 -1
- package/dist/{pglite-store-impl-NULC2IHH.js → pglite-store-impl-M5PWKN7Z.js} +12 -12
- package/dist/{pglite-store-impl-NULC2IHH.js.map → pglite-store-impl-M5PWKN7Z.js.map} +1 -1
- package/dist/{postgres-Dd3TrFku.d.ts → postgres-2FBMdOE_.d.ts} +3 -3
- package/dist/{postgres-CLPfTNYN.d.ts → postgres-BR3AeXm9.d.ts} +1 -1
- package/dist/{postgres-cLQPlKtp.d.cts → postgres-CRatyTVL.d.cts} +1 -1
- package/dist/{postgres-B4VD_rVy.d.cts → postgres-lbZf0zyg.d.cts} +3 -3
- package/dist/{profile-Co154QBx.d.ts → profile-BipG05-8.d.ts} +2 -2
- package/dist/{profile-BqThShR_.d.cts → profile-DKtvxVyA.d.cts} +2 -2
- package/dist/profiler/index.d.cts +8 -7
- package/dist/profiler/index.d.ts +8 -7
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +6 -5
- package/dist/provenance/index.d.ts +6 -5
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-BLoClfCq.d.cts → repair-validity-windows-BnSHFIsR.d.cts} +1 -1
- package/dist/{repair-validity-windows-C__28ckL.d.ts → repair-validity-windows-DfRb4gZm.d.ts} +1 -1
- package/dist/{resolve-DgFSIK99.d.ts → resolve-BbjZDYTw.d.ts} +1 -1
- package/dist/{resolve-DSUxNIqw.d.cts → resolve-mLksuBg2.d.cts} +1 -1
- package/dist/schema/index.cjs +30 -30
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +5 -5
- package/dist/{searchable-CZKn12eY.d.cts → searchable-BEAN91Ce.d.cts} +1 -1
- package/dist/{searchable-CUWWphQI.d.ts → searchable-Bg2lMPRm.d.ts} +1 -1
- package/dist/{sqlite-mSd_eVk4.d.ts → sqlite-Cal3rHgZ.d.ts} +3 -3
- package/dist/{sqlite-CoBmhiFd.d.ts → sqlite-CvajLABd.d.cts} +1 -1
- package/dist/{sqlite-qXLIybR2.d.cts → sqlite-DQxKoWAH.d.cts} +3 -3
- package/dist/{sqlite-RdH7w-ix.d.cts → sqlite-jH5J-Jb8.d.ts} +1 -1
- package/dist/{store-BzmMsCcw.d.ts → store-CvtRQ8Nb.d.cts} +136 -10
- package/dist/{store-CL6uTm_W.d.cts → store-sLu0hcRm.d.ts} +136 -10
- package/dist/{types-BUoh7cc3.d.cts → types-BUA3dZ99.d.cts} +1 -1
- package/dist/{types-ClC0IFIS.d.ts → types-CPtb7KNf.d.ts} +1 -1
- package/dist/{types-Blq8PG_N.d.ts → types-Dky3sCFz.d.cts} +9 -0
- package/dist/{types-Blq8PG_N.d.cts → types-Dky3sCFz.d.ts} +9 -0
- package/dist/{where-61C-QoM8.d.ts → where-BReEkAiy.d.ts} +1 -1
- package/dist/{where-o3Me5iJx.d.cts → where-Cz11nPRu.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-4MZQVVPX.cjs.map +0 -1
- package/dist/chunk-7JUD57B4.js.map +0 -1
- package/dist/chunk-FHFPUORN.cjs.map +0 -1
- package/dist/chunk-YTYB5KCQ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { $ as NodeType, fp as EdgeType, _ as AnyEdgeType, G as GraphIdentityConfig, e9 as ValueType, hs as PredicateExpression, cm as FulltextQueryMode, ht as VectorMetricType, Q as QueryAst, J as JsonPointer, eP as FieldRef, go as ParameterRef, gQ as TraversalExpansion, f as GraphBackend, q as SqlDialect, gH as SqlSchema, hu as Traversal, hv as NodePredicate, hw as ProjectedField, gn as OrderSpec, hx as AggregateOrderSpec, dS as TemporalMode, R as RecordedInstant, hy as GroupBySpec, fI as HybridFusionOptions, fX as JsonPointerInput, hz as RecursiveCyclePolicy, e as GraphDef, eS as TraversalDirection$1, fm as EdgeRegistration, gf as NodeId, T as TransactionBackend,
|
|
3
|
-
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-
|
|
4
|
-
import { b as BundleVerdictOf, U as UNIQUE_SIDECAR_BATCH, B as BATCH_POINT_READ } from './resolve-
|
|
2
|
+
import { $ as NodeType, fp as EdgeType, _ as AnyEdgeType, G as GraphIdentityConfig, e9 as ValueType, hs as PredicateExpression, cm as FulltextQueryMode, ht as VectorMetricType, Q as QueryAst, J as JsonPointer, eP as FieldRef, go as ParameterRef, gQ as TraversalExpansion, f as GraphBackend, q as SqlDialect, gH as SqlSchema, hu as Traversal, hv as NodePredicate, hw as ProjectedField, gn as OrderSpec, hx as AggregateOrderSpec, dS as TemporalMode, R as RecordedInstant, hy as GroupBySpec, fI as HybridFusionOptions, fX as JsonPointerInput, hz as RecursiveCyclePolicy, e as GraphDef, eS as TraversalDirection$1, fm as EdgeRegistration, gf as NodeId, T as TransactionBackend, b2 as CompiledSelectSql, eO as AggregateExpr, gG as SortDirection, d as FulltextStrategy, V as VectorStrategy, hA as VectorSlotMap, hB as RecordedReadBinding, dr as RecursiveTraversalVerdict, hC as SelectiveField, hD as ComposableQuery, hE as SetOperationType, hF as SetOperation, gi as NodeKinds, n as NodeRow, K as KindEntity, fC as ExternalRecordedReadSource, ff as EdgeId, l as EdgeRow, hG as BackendValidityEndMutation, cQ as JsonScalar, gm as NodeRegistration, fg as EdgeKinds, dV as TransactionReadBackend, eV as AllNodeTypes, am as SchemaDiff, S as SchemaVersionRow, a5 as SerializedSchema, fG as GraphAnnotations, cS as KindAnnotations, ai as JsonSchema, d_ as UniquenessScope, aY as Collation, aR as Cardinality, bN as EndpointExistence, cs as GraphExtension, hH as ReadCoordinate, aN as BackendIdentity, cq as GraphEntityReadBackend, dD as SchemaReadBackend, dd as QueryExecutionBackend, dH as SqlCompilationBackend, de as RawQueryExecutionBackend, ec as VectorMetric, aG as TypeGraphError, Y as BackendCapabilities, b$ as ExtensionNodeDef, hI as ExtensionObjectSchema, bV as ExtensionEdgeDef, hJ as ExtensionEdgeProperties, g5 as MaterializeIndexesOptions, g6 as MaterializeIndexesResult, g7 as MaterializeSystemIndexesOptions, C as ContributionDiagnostic, c as ContributionRepairResult, be as ContributionProbeResult, bh as ContributionRebuildScope, bg as ContributionRebuildResult, dU as TransactionOptions, A as AdapterBackend } from './types-Dky3sCFz.cjs';
|
|
3
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-BEAN91Ce.cjs';
|
|
4
|
+
import { b as BundleVerdictOf, U as UNIQUE_SIDECAR_BATCH, B as BATCH_POINT_READ } from './resolve-mLksuBg2.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Who allocates recorded-time revisions for a backend: TypeGraph's own
|
|
@@ -593,6 +593,31 @@ type QueryCoordinateState = "open" | "sealed";
|
|
|
593
593
|
type BatchableQuery<R = unknown> = Readonly<{
|
|
594
594
|
executeOn: (backend: GraphBackend | TransactionBackend) => Promise<readonly R[]>;
|
|
595
595
|
}>;
|
|
596
|
+
/** A read whose result can be embedded in an exact-one-statement batch. */
|
|
597
|
+
type OneStatementBatchableQuery<R = unknown> = Readonly<{
|
|
598
|
+
execute?: () => Promise<R>;
|
|
599
|
+
/** @internal Resolved by `store.batchOnce()` before execution. */
|
|
600
|
+
compileOneStatementBatchItem?: () => Readonly<{
|
|
601
|
+
query: CompiledSelectSql;
|
|
602
|
+
outputNames: readonly string[];
|
|
603
|
+
orderBy: readonly Readonly<{
|
|
604
|
+
column: string;
|
|
605
|
+
direction: "asc" | "desc";
|
|
606
|
+
nulls: "first" | "last";
|
|
607
|
+
}>[];
|
|
608
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => R;
|
|
609
|
+
}>;
|
|
610
|
+
}>;
|
|
611
|
+
/** A cold read with a concrete one-statement batch compilation contract. */
|
|
612
|
+
type CompiledOneStatementRead<R> = Required<Pick<OneStatementBatchableQuery<R>, "compileOneStatementBatchItem">>;
|
|
613
|
+
/** A read that can be embedded in an exact-one-statement batch. */
|
|
614
|
+
type EmbeddableOneStatementRead<R> = OneStatementBatchableQuery<R> & (BatchableQuery<unknown> | CompiledOneStatementRead<R>);
|
|
615
|
+
/** An embeddable one-statement read that can also execute independently. */
|
|
616
|
+
type ExecutableOneStatementRead<R> = CompiledOneStatementRead<R> & Required<Pick<OneStatementBatchableQuery<R>, "execute">>;
|
|
617
|
+
/** Preserves each input query's result type in an exact-one-statement batch. */
|
|
618
|
+
type OneStatementBatchResults<Queries extends readonly EmbeddableOneStatementRead<unknown>[]> = {
|
|
619
|
+
-readonly [K in keyof Queries]: Queries[K] extends (EmbeddableOneStatementRead<infer R>) ? R : never;
|
|
620
|
+
};
|
|
596
621
|
/**
|
|
597
622
|
* Maps a tuple of BatchableQuery types to their result types.
|
|
598
623
|
*
|
|
@@ -1347,6 +1372,17 @@ declare class UnionableQuery<G extends GraphDef, R> {
|
|
|
1347
1372
|
* transaction support.
|
|
1348
1373
|
*/
|
|
1349
1374
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
1375
|
+
/** @internal Embedding contract consumed by `store.batchOnce()`. */
|
|
1376
|
+
compileOneStatementBatchItem?(): Readonly<{
|
|
1377
|
+
query: CompiledSelectSql;
|
|
1378
|
+
outputNames: readonly string[];
|
|
1379
|
+
orderBy: readonly Readonly<{
|
|
1380
|
+
column: string;
|
|
1381
|
+
direction: "asc" | "desc";
|
|
1382
|
+
nulls: "first" | "last";
|
|
1383
|
+
}>[];
|
|
1384
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => readonly R[];
|
|
1385
|
+
}>;
|
|
1350
1386
|
}
|
|
1351
1387
|
|
|
1352
1388
|
/**
|
|
@@ -1492,6 +1528,17 @@ declare class ExecutableQuery<G extends GraphDef, Aliases extends AliasMap, Edge
|
|
|
1492
1528
|
* The fallback clears the fast path for this instance.
|
|
1493
1529
|
*/
|
|
1494
1530
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
1531
|
+
/** @internal Embedding contract consumed by `store.batchOnce()`. */
|
|
1532
|
+
compileOneStatementBatchItem?(): Readonly<{
|
|
1533
|
+
query: CompiledSelectSql;
|
|
1534
|
+
outputNames: readonly string[];
|
|
1535
|
+
orderBy: readonly Readonly<{
|
|
1536
|
+
column: string;
|
|
1537
|
+
direction: "asc" | "desc";
|
|
1538
|
+
nulls: "first" | "last";
|
|
1539
|
+
}>[];
|
|
1540
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => readonly R[];
|
|
1541
|
+
}>;
|
|
1495
1542
|
/**
|
|
1496
1543
|
* Executes a paginated query using cursor-based keyset pagination.
|
|
1497
1544
|
*
|
|
@@ -4817,6 +4864,47 @@ type MaterializeRemovalsResult = Readonly<{
|
|
|
4817
4864
|
reclaimedVectorFields: readonly ReclaimedVectorFieldEntry[];
|
|
4818
4865
|
}>;
|
|
4819
4866
|
|
|
4867
|
+
/** Edge metadata fields accepted by bounded neighbor and subgraph reads. */
|
|
4868
|
+
type NeighborOrderField = "createdAt" | "id" | "updatedAt" | "validFrom" | "validTo";
|
|
4869
|
+
/** Node property names accepted by adjacent-node ordering. */
|
|
4870
|
+
type NeighborNodeOrderField<G extends GraphDef> = {
|
|
4871
|
+
[K in keyof G["nodes"] & string]: Exclude<keyof Node<G["nodes"][K]["type"]>, "id" | "kind" | "meta"> & string;
|
|
4872
|
+
}[keyof G["nodes"] & string];
|
|
4873
|
+
type NeighborOrder<G extends GraphDef> = Readonly<{
|
|
4874
|
+
by?: "edge";
|
|
4875
|
+
field: NeighborOrderField;
|
|
4876
|
+
direction?: "asc" | "desc";
|
|
4877
|
+
}> | Readonly<{
|
|
4878
|
+
by: "node";
|
|
4879
|
+
field: NeighborNodeOrderField<G>;
|
|
4880
|
+
direction?: "asc" | "desc";
|
|
4881
|
+
}>;
|
|
4882
|
+
/** Per-edge-kind ordering and bound applied before traversal expands an edge. */
|
|
4883
|
+
type EdgeReadWindow = Readonly<{
|
|
4884
|
+
limit: number;
|
|
4885
|
+
/** Direction for this edge kind; defaults to the traversal direction. */
|
|
4886
|
+
direction?: "both" | "in" | "out";
|
|
4887
|
+
orderBy?: Readonly<{
|
|
4888
|
+
field: NeighborOrderField;
|
|
4889
|
+
direction?: "asc" | "desc";
|
|
4890
|
+
}>;
|
|
4891
|
+
}>;
|
|
4892
|
+
/** Options for reading adjacent edge-node pairs without hydrating all targets. */
|
|
4893
|
+
type NeighborReadOptionsBoundary<G extends GraphDef, K extends EdgeKinds<G>> = Readonly<{
|
|
4894
|
+
edges?: readonly K[];
|
|
4895
|
+
direction?: "both" | "in" | "out";
|
|
4896
|
+
orderBy?: NeighborOrder<G>;
|
|
4897
|
+
limit?: number;
|
|
4898
|
+
temporalMode?: TemporalMode;
|
|
4899
|
+
asOf?: string;
|
|
4900
|
+
}>;
|
|
4901
|
+
type NeighborReadOptions<G extends GraphDef, K extends EdgeKinds<G>> = NeighborReadOptionsBoundary<G, K> & Required<Pick<NeighborReadOptionsBoundary<G, K>, "edges">>;
|
|
4902
|
+
/** One edge and the node it reaches from the requested source and direction. */
|
|
4903
|
+
type NeighborResult<G extends GraphDef, K extends EdgeKinds<G>> = Readonly<{
|
|
4904
|
+
edge: GraphEdgeForKinds<G, K>;
|
|
4905
|
+
node: Node<AllNodeTypes<G>>;
|
|
4906
|
+
}>;
|
|
4907
|
+
|
|
4820
4908
|
/**
|
|
4821
4909
|
* Discriminated union of all Node runtime types in a graph.
|
|
4822
4910
|
*
|
|
@@ -4946,6 +5034,12 @@ type SubgraphOptions<G extends GraphDef, EK extends EdgeKinds<G>, NK extends Nod
|
|
|
4946
5034
|
* projection keys. Specifying a kind outside those sets is a compile-time error.
|
|
4947
5035
|
*/
|
|
4948
5036
|
project?: P;
|
|
5037
|
+
/**
|
|
5038
|
+
* Per-edge-kind windows applied while traversing and hydrating. Each limit
|
|
5039
|
+
* is partitioned by the current endpoint, so append-only edge histories can
|
|
5040
|
+
* contribute only their newest N targets at every hop.
|
|
5041
|
+
*/
|
|
5042
|
+
edgeWindows?: Readonly<Partial<Record<EK, EdgeReadWindow>>>;
|
|
4949
5043
|
}>;
|
|
4950
5044
|
/**
|
|
4951
5045
|
* Subgraph options as seen by the internal executor: identical to the public
|
|
@@ -5961,6 +6055,11 @@ interface RequiredEdgeCollectionLookup<G extends GraphDef = GraphDef> {
|
|
|
5961
6055
|
<K extends EdgeKinds<G>>(kind: K): DynamicEdgeCollection<G["edges"][K]["type"]>;
|
|
5962
6056
|
(kind: string): DynamicEdgeCollection;
|
|
5963
6057
|
}
|
|
6058
|
+
type CheckedReadScopeBoundary<G extends GraphDef> = Readonly<{
|
|
6059
|
+
query?: () => InitialQueryBuilder<G, "open">;
|
|
6060
|
+
}>;
|
|
6061
|
+
/** Read scope whose fluent-query executions all verify one schema version. */
|
|
6062
|
+
type CheckedReadScope<G extends GraphDef> = CheckedReadScopeBoundary<G> & Required<Pick<CheckedReadScopeBoundary<G>, "query">>;
|
|
5964
6063
|
type StoreCore<G extends GraphDef> = Readonly<{
|
|
5965
6064
|
[STORE_RUNTIME]: StoreRuntime<G>;
|
|
5966
6065
|
graph: G;
|
|
@@ -5995,6 +6094,7 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
5995
6094
|
schemaChanges: () => Promise<SchemaDiff | undefined>;
|
|
5996
6095
|
requiresMigration: () => Promise<boolean>;
|
|
5997
6096
|
query: () => InitialQueryBuilder<G, "open">;
|
|
6097
|
+
withCheckedReads?: <T>(expectedSchemaVersion: number | undefined, fn: (reads: CheckedReadScope<G>) => Promise<T>) => Promise<T>;
|
|
5998
6098
|
asOf: (asOf: string) => StoreView<G>;
|
|
5999
6099
|
asOfRecorded: (recordedAsOf: RecordedInstant) => RecordedStoreView<G>;
|
|
6000
6100
|
recordedNow: () => Promise<RecordedInstant | undefined>;
|
|
@@ -6007,6 +6107,13 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
6007
6107
|
BatchableQuery<unknown>,
|
|
6008
6108
|
...BatchableQuery<unknown>[]
|
|
6009
6109
|
]>(...queries: Queries) => Promise<BatchResults<Queries>>;
|
|
6110
|
+
batchOnce?: <const Queries extends readonly [
|
|
6111
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6112
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6113
|
+
...EmbeddableOneStatementRead<unknown>[]
|
|
6114
|
+
]>(build: (read: BatchReadBuilder<G>) => Queries) => Promise<OneStatementBatchResults<Queries>>;
|
|
6115
|
+
neighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => Promise<readonly NeighborResult<G, K>[]>;
|
|
6116
|
+
countNeighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => Promise<number>;
|
|
6010
6117
|
bulkFindEdgesFrom: <const K extends EdgeKinds<G>>(params: BulkFindEdgesFromParams<G, K>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindEdgesFromResult<G, K>[]>;
|
|
6011
6118
|
bulkFindEdgesTo: <const K extends EdgeKinds<G>>(params: BulkFindEdgesToParams<G, K>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindEdgesToResult<G, K>[]>;
|
|
6012
6119
|
bulkFindRuntimeEdgesFrom: <NT extends RuntimeNodeKind, ET extends RuntimeEdgeKind>(params: BulkFindRuntimeEdgesFromParams<NT, ET>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindRuntimeEdgesFromResult<NT, ET>[]>;
|
|
@@ -6057,6 +6164,25 @@ type StoreTransactions<G extends GraphDef> = Readonly<{
|
|
|
6057
6164
|
transaction: <T>(fn: (tx: TransactionContext<G>) => Promise<T>, options?: StoreTransactionOptions) => Promise<T>;
|
|
6058
6165
|
transactionWithReceipt: <T>(fn: (tx: MeasurableTransactionContext<G>) => Promise<T>, options?: StoreTransactionOptions) => Promise<TransactionOutcome<T>>;
|
|
6059
6166
|
}>;
|
|
6167
|
+
/** Builds cold reads that {@link Store.batchOnce} can compose in one statement. */
|
|
6168
|
+
type BatchReadBuilder<G extends GraphDef> = Readonly<{
|
|
6169
|
+
neighbors: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => CompiledOneStatementRead<readonly NeighborResult<G, K>[]>;
|
|
6170
|
+
countNeighbors: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => CompiledOneStatementRead<number>;
|
|
6171
|
+
subgraph: <const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: SubgraphOptions<G, EK, NK, P>) => CompiledOneStatementRead<SubgraphResult<G, NK, EK, P>>;
|
|
6172
|
+
}>;
|
|
6173
|
+
type AddedStoreReadsBoundary<G extends GraphDef> = Readonly<{
|
|
6174
|
+
withCheckedReads?: <T>(expectedSchemaVersion: number | undefined, fn: (reads: CheckedReadScope<G>) => Promise<T>) => Promise<T>;
|
|
6175
|
+
batchOnce?: <const Queries extends readonly [
|
|
6176
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6177
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6178
|
+
...EmbeddableOneStatementRead<unknown>[]
|
|
6179
|
+
]>(build: (read: BatchReadBuilder<G>) => Queries) => Promise<OneStatementBatchResults<Queries>>;
|
|
6180
|
+
neighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => Promise<readonly NeighborResult<G, K>[]>;
|
|
6181
|
+
countNeighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => Promise<number>;
|
|
6182
|
+
}>;
|
|
6183
|
+
type AddedStoreReadKey = keyof AddedStoreReadsBoundary<GraphDef>;
|
|
6184
|
+
type AddedStoreReads<G extends GraphDef> = AddedStoreReadsBoundary<G> & Required<Pick<AddedStoreReadsBoundary<G>, AddedStoreReadKey>>;
|
|
6185
|
+
type ResolvedStoreCore<G extends GraphDef> = StoreCore<G> & AddedStoreReads<G>;
|
|
6060
6186
|
interface StoreEvolution<G extends GraphDef, TStore extends StoreCore<G>> {
|
|
6061
6187
|
readonly evolve: <TRefStore extends StoreCore<G> = TStore>(extension: GraphExtension, options?: Readonly<{
|
|
6062
6188
|
ref?: TStore extends TRefStore ? StoreRef<TRefStore> : never;
|
|
@@ -6078,7 +6204,7 @@ interface StoreEvolution<G extends GraphDef, TStore extends StoreCore<G>> {
|
|
|
6078
6204
|
* graph-owned transactions while keeping adapter-native handles, backend
|
|
6079
6205
|
* internals, and caller-owned transaction adoption out of the public surface.
|
|
6080
6206
|
*/
|
|
6081
|
-
type Store<G extends GraphDef> =
|
|
6207
|
+
type Store<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, Store<G>>;
|
|
6082
6208
|
/**
|
|
6083
6209
|
* An opaque, in-memory snapshot of a store's reconciled schema: the merged
|
|
6084
6210
|
* compile-time + runtime-committed graph plus the committed schema version and
|
|
@@ -6135,7 +6261,7 @@ interface AdapterStoreReconciliation<G extends GraphDef, TNativeTransaction, Sel
|
|
|
6135
6261
|
* this surface so native transaction handles remain precisely typed without
|
|
6136
6262
|
* leaking into the default Store contract.
|
|
6137
6263
|
*/
|
|
6138
|
-
type AdapterStore<G extends GraphDef, TNativeTransaction> =
|
|
6264
|
+
type AdapterStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterStore<G, TNativeTransaction>> & AdapterStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterStore<G, TNativeTransaction>> & Readonly<{
|
|
6139
6265
|
backend: GraphBackend;
|
|
6140
6266
|
}>;
|
|
6141
6267
|
type AdapterStoreTransactions<G extends GraphDef, TNativeTransaction> = Readonly<{
|
|
@@ -6158,18 +6284,18 @@ type AdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> =
|
|
|
6158
6284
|
type MeasurableAdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> = AdapterHistoryTransactionContext<G, TNativeTransaction> & Readonly<{
|
|
6159
6285
|
measure: ScopedMeasure<MeasurableAdapterHistoryTransactionContext<G, TNativeTransaction>>;
|
|
6160
6286
|
}>;
|
|
6161
|
-
type AdapterRecordedReadStore<G extends GraphDef, TNativeTransaction> =
|
|
6287
|
+
type AdapterRecordedReadStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterRecordedReadStore<G, TNativeTransaction>> & AdapterStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterRecordedReadStore<G, TNativeTransaction>> & Readonly<{
|
|
6162
6288
|
backend: GraphBackend;
|
|
6163
6289
|
recordedReadBound: true;
|
|
6164
6290
|
}>;
|
|
6165
|
-
type RecordedReadStore<G extends GraphDef> =
|
|
6291
|
+
type RecordedReadStore<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, RecordedReadStore<G>> & Readonly<{
|
|
6166
6292
|
recordedReadBound: true;
|
|
6167
6293
|
}>;
|
|
6168
|
-
type HistoryStore<G extends GraphDef> =
|
|
6294
|
+
type HistoryStore<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, HistoryStore<G>> & Readonly<{
|
|
6169
6295
|
historyEnabled: true;
|
|
6170
6296
|
recordedReadBound: true;
|
|
6171
6297
|
}>;
|
|
6172
|
-
type AdapterHistoryStore<G extends GraphDef, TNativeTransaction> =
|
|
6298
|
+
type AdapterHistoryStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterHistoryStore<G, TNativeTransaction>> & AdapterHistoryStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterHistoryStore<G, TNativeTransaction>> & Readonly<{
|
|
6173
6299
|
backend: HistoryStoreBackend;
|
|
6174
6300
|
historyEnabled: true;
|
|
6175
6301
|
recordedReadBound: true;
|
|
@@ -6348,4 +6474,4 @@ declare function createVerifiedAdapterStore<G extends GraphDef, TNativeTransacti
|
|
|
6348
6474
|
SchemaValidationResult
|
|
6349
6475
|
]>;
|
|
6350
6476
|
|
|
6351
|
-
export { type
|
|
6477
|
+
export { type AlgorithmCyclePolicy as $, migrateSchema as A, type BatchReadBuilder as B, type CompiledOneStatementRead as C, parseSerializedSchema as D, requiresMigration as E, rollbackSchema as F, type AliasMap as G, type HistoryStoreOptions as H, type IdentityAssertion as I, type EdgeAliasMap as J, KindRegistry as K, type LiveStoreOptions as L, type MigrateSchemaOptions as M, type RecursiveAliasMap as N, QueryBuilder as O, type EmptyRecursiveAliasMap as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type AdapterHistoryStore as V, type AdapterHistoryTransactionContext as W, type AdapterRecordedReadStore as X, type AdapterStore as Y, type AdapterTransactionContext as Z, type AggregateResult as _, type SchemaManagerOptions as a, type GraphEdgeForKinds as a$, type AnyEdge as a0, type AnyNode as a1, type BaseStoreOptions as a2, type BaseTraversalOptions as a3, type BatchResults as a4, type BatchableQuery as a5, type BulkEdgeSourceGroup as a6, type BulkFindEdgesFromParams as a7, type BulkFindEdgesFromResult as a8, type BulkFindEdgesToParams as a9, type DynamicStoreViewEdgeCollection as aA, type Edge as aB, type EdgeAccessor as aC, type EdgeBatchReads as aD, type EdgeBulkFindEndpointOptions as aE, type EdgeBulkFindOptions as aF, type EdgeCollection as aG, type EdgeCollectionLookup as aH, type EdgeFindByEndpointsOptions as aI, type EdgeGetOrCreateByEndpointsOptions as aJ, type EdgeGetOrCreateByEndpointsResult as aK, type EdgeIntrospection as aL, type EdgeReadWindow as aM, type EdgeTemporalReads as aN, type EdgeWrites as aO, type EmbeddableOneStatementRead as aP, type EmptyAliasMap as aQ, type EmptyEdgeAliasMap as aR, ExecutableAggregateQuery as aS, type ExecutableOneStatementRead as aT, ExecutableQuery as aU, type FieldAccessor as aV, type FulltextSearchHit as aW, type FulltextSearchOptions as aX, type GetOrCreateAction as aY, type GraphAlgorithms as aZ, type GraphEdgeCollections as a_, type BulkFindEdgesToResult as aa, type BulkFindRuntimeEdgesFromParams as ab, type BulkFindRuntimeEdgesFromResult as ac, type BulkOperationHookContext as ad, type CheckedReadScope as ae, type ClaimOwner as af, type ClaimTarget as ag, type CompareAndSetAbsent as ah, type CompareAndSetExpected as ai, type ConstraintFenceViolation as aj, type ConstraintNames as ak, type CreateEdgeInput as al, type CreateNodeInput as am, type DegreeOptions as an, type DynamicEdgeAccessor as ao, type DynamicEdgeCollection as ap, type DynamicEdgeType as aq, type DynamicFieldBuilder as ar, type DynamicNode as as, type DynamicNodeAccessor as at, type DynamicNodeCollection as au, type DynamicNodeKind as av, type DynamicNodeReference as aw, type DynamicNodeType as ax, type DynamicSelectableEdge as ay, type DynamicSelectableNode as az, type Store as b, type RebuildContributionOptions as b$, type GraphNodeCollections as b0, type GraphNodeReference as b1, type HistoryStoreBackend as b2, type HookContext as b3, type HybridFulltextOptions as b4, type HybridSearchHit as b5, type HybridSearchOptions as b6, type HybridVectorOptions as b7, type IdentityAssertionWriteFacade as b8, type IdentityNodeReference as b9, type NodeCollectionLookup as bA, type NodeCurrentReads as bB, type NodeGetOrCreateByConstraintOptions as bC, type NodeGetOrCreateByConstraintResult as bD, type NodeIdentifier as bE, type NodeRef as bF, type NodeTemporalReads as bG, type NodeWrites as bH, type OneStatementBatchResults as bI, type OneStatementBatchableQuery as bJ, type OntologyIntrospection as bK, type OperationHookContext as bL, type PageRankOptions as bM, type PageRankScore as bN, type PaginateOptions as bO, type PaginatedResult as bP, type PathNode as bQ, type PersonalizedPageRankOptions as bR, type PersonalizedPageRankSeed as bS, type Predicate as bT, PreparedQuery as bU, type PropertyPopulationStatistics as bV, type PropsAccessor as bW, type QueryHookContext as bX, type QueryOptions as bY, type ReachableNode as bZ, type ReachableOptions as b_, type IdentityTraversalOption as ba, type IdentityValidityWindow as bb, type IfExistsMode as bc, type InitialQueryBuilder as bd, type KindIntrospection as be, type KindPopulationStatistics as bf, type LabelPropagationMembership as bg, type LabelPropagationOptions as bh, type MaterializeRemovalsEntry as bi, type MaterializeRemovalsOptions as bj, type MaterializeRemovalsResult as bk, type MeasurableAdapterHistoryTransactionContext as bl, type MeasurableAdapterTransactionContext as bm, type MeasurableTransactionContext as bn, type NeighborNodeOrderField as bo, type NeighborOrder as bp, type NeighborOrderField as bq, type NeighborReadOptions as br, type NeighborResult as bs, type NeighborsOptions as bt, type NoRecordedCoordinate as bu, type Node as bv, type NodeAccessor as bw, type NodeAlias as bx, type NodeBulkFindByIndexOptions as by, type NodeCollection as bz, type HistoryStore as c, type StoreViewWeightedShortestPathOptions as c$, type RebuildFulltextOptions as c0, type RebuildFulltextResult as c1, type ReclaimedVectorFieldEntry as c2, type RecordedScanOptions as c3, type RecordedScanPage as c4, RecordedStoreView as c5, type RecordedStoreViewEdgeCollection as c6, type RecordedStoreViewEdgeCollections as c7, type RecordedStoreViewNodeCollection as c8, type RecordedStoreViewNodeCollections as c9, type StoreAnalysisSchemaCoordinate as cA, type StoreDescription as cB, type StoreHooks as cC, type StorePopulationStatistics as cD, type StoreProjection as cE, type StoreRef as cF, StoreSearch as cG, type StoreTransactionOptions as cH, type StoreValidationFailure as cI, type StoreValidationPage as cJ, StoreView as cK, type StoreViewCanReachOptions as cL, type StoreViewCoordinate as cM, type StoreViewDegreeOptions as cN, type StoreViewEdgeCollection as cO, type StoreViewEdgeCollections as cP, type StoreViewGraphAlgorithms as cQ, type StoreViewLabelPropagationOptions as cR, type StoreViewNeighborsOptions as cS, type StoreViewNodeCollection as cT, type StoreViewNodeCollections as cU, type StoreViewPageRankOptions as cV, type StoreViewPersonalizedPageRankOptions as cW, type StoreViewReachableOptions as cX, type StoreViewShortestPathOptions as cY, type StoreViewSubgraphOptions as cZ, type StoreViewWeaklyConnectedComponentsOptions as c_, type RecursiveTraversalOptions as ca, type ReembedFunction as cb, type ReembedVectorFieldOptions as cc, type ReembedVectorFieldResult as cd, type RequiredEdgeCollectionLookup as ce, type RequiredNodeCollectionLookup as cf, type RuntimeBulkEdgeSourceGroup as cg, type RuntimeEdgeCollection as ch, type RuntimeEdgeFor as ci, type RuntimeEdgeKind as cj, type RuntimeEdgeTypeFor as ck, type RuntimeNodeCollection as cl, type RuntimeNodeKind as cm, type RuntimeNodeReferenceFor as cn, type RuntimeNodeTypeFor as co, type SchemaIntrospection as cp, type ScopedMeasure as cq, type SearchScopeOptions as cr, type SelectContext as cs, type SelectableEdge as ct, type SelectableNode as cu, type ShortestPathOptions as cv, type ShortestPathResult as cw, type SqlAvailability as cx, StoreAnalysisCursorStaleError as cy, type StoreAnalysisCursorStaleErrorDetails as cz, type RecordedReadStore as d, type StreamOptions as d0, type SubgraphEdgeResult as d1, type SubgraphNodeResult as d2, type SubgraphOptions as d3, type SubgraphResult as d4, type SubsetEdge as d5, type SubsetNode as d6, type TemporalAlgorithmOptions as d7, type TransactionContext as d8, type TransactionOutcome as d9, createVerifiedAdapterStore as dA, createVerifiedStore as dB, defineSubgraphProject as dC, exists as dD, fieldRef as dE, inSubquery as dF, isParameterRef as dG, notExists as dH, notInSubquery as dI, param as dJ, EDGE_TEMPORAL_READ_NAMES as dK, IDENTITY_READ_NAMES as dL, type TransactionReceipt as da, type TraversalDirection as db, type TypedEdgeCollection as dc, type TypedRecordedStoreViewEdgeCollection as dd, type TypedStoreViewEdgeCollection as de, UnionableQuery as df, type UniqueIntrospection as dg, type UpdateEdgeInput as dh, type UpdateNodeInput as di, type ValidateStoreOptions as dj, type ValidityEndMutation as dk, type VectorSearchHit as dl, type VectorSearchOptions as dm, type WeaklyConnectedComponentMembership as dn, type WeaklyConnectedComponentsOptions as dp, type WeightedShortestPathOptions as dq, type WeightedShortestPathResult as dr, type WorkingCopyOptions as ds, asIdentityAssertionId as dt, compareAndSetAbsent as du, createAdapterStore as dv, createAdapterStoreWithSchema as dw, createQueryBuilder as dx, createStore as dy, createStoreWithSchema as dz, type IdentityAssertionId as e, type IdentityAssertionResult as f, type IdentityFacade as g, type IdentityNode as h, type IdentityNodeRefInput as i, type IdentityPair as j, type IdentityReadFacade as k, type IdentityRelation as l, type IdentityWriteSummary as m, type ReconciledSchema as n, type MigrationHookContext as o, type SchemaValidationResult as p, applyDeprecatedKinds as q, assertSchemaCurrent as r, ensureSchema as s, getActiveSchema as t, getCommittedSchemaVersion as u, getSchemaChanges as v, initializeSchema as w, isSchemaInitialized as x, loadActiveSchemaWithBootstrap as y, loadAndMergeGraphExtensionDocument as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { $ as NodeType, fp as EdgeType, _ as AnyEdgeType, G as GraphIdentityConfig, e9 as ValueType, hs as PredicateExpression, cm as FulltextQueryMode, ht as VectorMetricType, Q as QueryAst, J as JsonPointer, eP as FieldRef, go as ParameterRef, gQ as TraversalExpansion, f as GraphBackend, q as SqlDialect, gH as SqlSchema, hu as Traversal, hv as NodePredicate, hw as ProjectedField, gn as OrderSpec, hx as AggregateOrderSpec, dS as TemporalMode, R as RecordedInstant, hy as GroupBySpec, fI as HybridFusionOptions, fX as JsonPointerInput, hz as RecursiveCyclePolicy, e as GraphDef, eS as TraversalDirection$1, fm as EdgeRegistration, gf as NodeId, T as TransactionBackend,
|
|
3
|
-
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-
|
|
4
|
-
import { b as BundleVerdictOf, U as UNIQUE_SIDECAR_BATCH, B as BATCH_POINT_READ } from './resolve-
|
|
2
|
+
import { $ as NodeType, fp as EdgeType, _ as AnyEdgeType, G as GraphIdentityConfig, e9 as ValueType, hs as PredicateExpression, cm as FulltextQueryMode, ht as VectorMetricType, Q as QueryAst, J as JsonPointer, eP as FieldRef, go as ParameterRef, gQ as TraversalExpansion, f as GraphBackend, q as SqlDialect, gH as SqlSchema, hu as Traversal, hv as NodePredicate, hw as ProjectedField, gn as OrderSpec, hx as AggregateOrderSpec, dS as TemporalMode, R as RecordedInstant, hy as GroupBySpec, fI as HybridFusionOptions, fX as JsonPointerInput, hz as RecursiveCyclePolicy, e as GraphDef, eS as TraversalDirection$1, fm as EdgeRegistration, gf as NodeId, T as TransactionBackend, b2 as CompiledSelectSql, eO as AggregateExpr, gG as SortDirection, d as FulltextStrategy, V as VectorStrategy, hA as VectorSlotMap, hB as RecordedReadBinding, dr as RecursiveTraversalVerdict, hC as SelectiveField, hD as ComposableQuery, hE as SetOperationType, hF as SetOperation, gi as NodeKinds, n as NodeRow, K as KindEntity, fC as ExternalRecordedReadSource, ff as EdgeId, l as EdgeRow, hG as BackendValidityEndMutation, cQ as JsonScalar, gm as NodeRegistration, fg as EdgeKinds, dV as TransactionReadBackend, eV as AllNodeTypes, am as SchemaDiff, S as SchemaVersionRow, a5 as SerializedSchema, fG as GraphAnnotations, cS as KindAnnotations, ai as JsonSchema, d_ as UniquenessScope, aY as Collation, aR as Cardinality, bN as EndpointExistence, cs as GraphExtension, hH as ReadCoordinate, aN as BackendIdentity, cq as GraphEntityReadBackend, dD as SchemaReadBackend, dd as QueryExecutionBackend, dH as SqlCompilationBackend, de as RawQueryExecutionBackend, ec as VectorMetric, aG as TypeGraphError, Y as BackendCapabilities, b$ as ExtensionNodeDef, hI as ExtensionObjectSchema, bV as ExtensionEdgeDef, hJ as ExtensionEdgeProperties, g5 as MaterializeIndexesOptions, g6 as MaterializeIndexesResult, g7 as MaterializeSystemIndexesOptions, C as ContributionDiagnostic, c as ContributionRepairResult, be as ContributionProbeResult, bh as ContributionRebuildScope, bg as ContributionRebuildResult, dU as TransactionOptions, A as AdapterBackend } from './types-Dky3sCFz.js';
|
|
3
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-Bg2lMPRm.js';
|
|
4
|
+
import { b as BundleVerdictOf, U as UNIQUE_SIDECAR_BATCH, B as BATCH_POINT_READ } from './resolve-BbjZDYTw.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Who allocates recorded-time revisions for a backend: TypeGraph's own
|
|
@@ -593,6 +593,31 @@ type QueryCoordinateState = "open" | "sealed";
|
|
|
593
593
|
type BatchableQuery<R = unknown> = Readonly<{
|
|
594
594
|
executeOn: (backend: GraphBackend | TransactionBackend) => Promise<readonly R[]>;
|
|
595
595
|
}>;
|
|
596
|
+
/** A read whose result can be embedded in an exact-one-statement batch. */
|
|
597
|
+
type OneStatementBatchableQuery<R = unknown> = Readonly<{
|
|
598
|
+
execute?: () => Promise<R>;
|
|
599
|
+
/** @internal Resolved by `store.batchOnce()` before execution. */
|
|
600
|
+
compileOneStatementBatchItem?: () => Readonly<{
|
|
601
|
+
query: CompiledSelectSql;
|
|
602
|
+
outputNames: readonly string[];
|
|
603
|
+
orderBy: readonly Readonly<{
|
|
604
|
+
column: string;
|
|
605
|
+
direction: "asc" | "desc";
|
|
606
|
+
nulls: "first" | "last";
|
|
607
|
+
}>[];
|
|
608
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => R;
|
|
609
|
+
}>;
|
|
610
|
+
}>;
|
|
611
|
+
/** A cold read with a concrete one-statement batch compilation contract. */
|
|
612
|
+
type CompiledOneStatementRead<R> = Required<Pick<OneStatementBatchableQuery<R>, "compileOneStatementBatchItem">>;
|
|
613
|
+
/** A read that can be embedded in an exact-one-statement batch. */
|
|
614
|
+
type EmbeddableOneStatementRead<R> = OneStatementBatchableQuery<R> & (BatchableQuery<unknown> | CompiledOneStatementRead<R>);
|
|
615
|
+
/** An embeddable one-statement read that can also execute independently. */
|
|
616
|
+
type ExecutableOneStatementRead<R> = CompiledOneStatementRead<R> & Required<Pick<OneStatementBatchableQuery<R>, "execute">>;
|
|
617
|
+
/** Preserves each input query's result type in an exact-one-statement batch. */
|
|
618
|
+
type OneStatementBatchResults<Queries extends readonly EmbeddableOneStatementRead<unknown>[]> = {
|
|
619
|
+
-readonly [K in keyof Queries]: Queries[K] extends (EmbeddableOneStatementRead<infer R>) ? R : never;
|
|
620
|
+
};
|
|
596
621
|
/**
|
|
597
622
|
* Maps a tuple of BatchableQuery types to their result types.
|
|
598
623
|
*
|
|
@@ -1347,6 +1372,17 @@ declare class UnionableQuery<G extends GraphDef, R> {
|
|
|
1347
1372
|
* transaction support.
|
|
1348
1373
|
*/
|
|
1349
1374
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
1375
|
+
/** @internal Embedding contract consumed by `store.batchOnce()`. */
|
|
1376
|
+
compileOneStatementBatchItem?(): Readonly<{
|
|
1377
|
+
query: CompiledSelectSql;
|
|
1378
|
+
outputNames: readonly string[];
|
|
1379
|
+
orderBy: readonly Readonly<{
|
|
1380
|
+
column: string;
|
|
1381
|
+
direction: "asc" | "desc";
|
|
1382
|
+
nulls: "first" | "last";
|
|
1383
|
+
}>[];
|
|
1384
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => readonly R[];
|
|
1385
|
+
}>;
|
|
1350
1386
|
}
|
|
1351
1387
|
|
|
1352
1388
|
/**
|
|
@@ -1492,6 +1528,17 @@ declare class ExecutableQuery<G extends GraphDef, Aliases extends AliasMap, Edge
|
|
|
1492
1528
|
* The fallback clears the fast path for this instance.
|
|
1493
1529
|
*/
|
|
1494
1530
|
executeOn(backend: GraphBackend | TransactionBackend): Promise<readonly R[]>;
|
|
1531
|
+
/** @internal Embedding contract consumed by `store.batchOnce()`. */
|
|
1532
|
+
compileOneStatementBatchItem?(): Readonly<{
|
|
1533
|
+
query: CompiledSelectSql;
|
|
1534
|
+
outputNames: readonly string[];
|
|
1535
|
+
orderBy: readonly Readonly<{
|
|
1536
|
+
column: string;
|
|
1537
|
+
direction: "asc" | "desc";
|
|
1538
|
+
nulls: "first" | "last";
|
|
1539
|
+
}>[];
|
|
1540
|
+
mapRows: (rows: readonly Record<string, unknown>[]) => readonly R[];
|
|
1541
|
+
}>;
|
|
1495
1542
|
/**
|
|
1496
1543
|
* Executes a paginated query using cursor-based keyset pagination.
|
|
1497
1544
|
*
|
|
@@ -4817,6 +4864,47 @@ type MaterializeRemovalsResult = Readonly<{
|
|
|
4817
4864
|
reclaimedVectorFields: readonly ReclaimedVectorFieldEntry[];
|
|
4818
4865
|
}>;
|
|
4819
4866
|
|
|
4867
|
+
/** Edge metadata fields accepted by bounded neighbor and subgraph reads. */
|
|
4868
|
+
type NeighborOrderField = "createdAt" | "id" | "updatedAt" | "validFrom" | "validTo";
|
|
4869
|
+
/** Node property names accepted by adjacent-node ordering. */
|
|
4870
|
+
type NeighborNodeOrderField<G extends GraphDef> = {
|
|
4871
|
+
[K in keyof G["nodes"] & string]: Exclude<keyof Node<G["nodes"][K]["type"]>, "id" | "kind" | "meta"> & string;
|
|
4872
|
+
}[keyof G["nodes"] & string];
|
|
4873
|
+
type NeighborOrder<G extends GraphDef> = Readonly<{
|
|
4874
|
+
by?: "edge";
|
|
4875
|
+
field: NeighborOrderField;
|
|
4876
|
+
direction?: "asc" | "desc";
|
|
4877
|
+
}> | Readonly<{
|
|
4878
|
+
by: "node";
|
|
4879
|
+
field: NeighborNodeOrderField<G>;
|
|
4880
|
+
direction?: "asc" | "desc";
|
|
4881
|
+
}>;
|
|
4882
|
+
/** Per-edge-kind ordering and bound applied before traversal expands an edge. */
|
|
4883
|
+
type EdgeReadWindow = Readonly<{
|
|
4884
|
+
limit: number;
|
|
4885
|
+
/** Direction for this edge kind; defaults to the traversal direction. */
|
|
4886
|
+
direction?: "both" | "in" | "out";
|
|
4887
|
+
orderBy?: Readonly<{
|
|
4888
|
+
field: NeighborOrderField;
|
|
4889
|
+
direction?: "asc" | "desc";
|
|
4890
|
+
}>;
|
|
4891
|
+
}>;
|
|
4892
|
+
/** Options for reading adjacent edge-node pairs without hydrating all targets. */
|
|
4893
|
+
type NeighborReadOptionsBoundary<G extends GraphDef, K extends EdgeKinds<G>> = Readonly<{
|
|
4894
|
+
edges?: readonly K[];
|
|
4895
|
+
direction?: "both" | "in" | "out";
|
|
4896
|
+
orderBy?: NeighborOrder<G>;
|
|
4897
|
+
limit?: number;
|
|
4898
|
+
temporalMode?: TemporalMode;
|
|
4899
|
+
asOf?: string;
|
|
4900
|
+
}>;
|
|
4901
|
+
type NeighborReadOptions<G extends GraphDef, K extends EdgeKinds<G>> = NeighborReadOptionsBoundary<G, K> & Required<Pick<NeighborReadOptionsBoundary<G, K>, "edges">>;
|
|
4902
|
+
/** One edge and the node it reaches from the requested source and direction. */
|
|
4903
|
+
type NeighborResult<G extends GraphDef, K extends EdgeKinds<G>> = Readonly<{
|
|
4904
|
+
edge: GraphEdgeForKinds<G, K>;
|
|
4905
|
+
node: Node<AllNodeTypes<G>>;
|
|
4906
|
+
}>;
|
|
4907
|
+
|
|
4820
4908
|
/**
|
|
4821
4909
|
* Discriminated union of all Node runtime types in a graph.
|
|
4822
4910
|
*
|
|
@@ -4946,6 +5034,12 @@ type SubgraphOptions<G extends GraphDef, EK extends EdgeKinds<G>, NK extends Nod
|
|
|
4946
5034
|
* projection keys. Specifying a kind outside those sets is a compile-time error.
|
|
4947
5035
|
*/
|
|
4948
5036
|
project?: P;
|
|
5037
|
+
/**
|
|
5038
|
+
* Per-edge-kind windows applied while traversing and hydrating. Each limit
|
|
5039
|
+
* is partitioned by the current endpoint, so append-only edge histories can
|
|
5040
|
+
* contribute only their newest N targets at every hop.
|
|
5041
|
+
*/
|
|
5042
|
+
edgeWindows?: Readonly<Partial<Record<EK, EdgeReadWindow>>>;
|
|
4949
5043
|
}>;
|
|
4950
5044
|
/**
|
|
4951
5045
|
* Subgraph options as seen by the internal executor: identical to the public
|
|
@@ -5961,6 +6055,11 @@ interface RequiredEdgeCollectionLookup<G extends GraphDef = GraphDef> {
|
|
|
5961
6055
|
<K extends EdgeKinds<G>>(kind: K): DynamicEdgeCollection<G["edges"][K]["type"]>;
|
|
5962
6056
|
(kind: string): DynamicEdgeCollection;
|
|
5963
6057
|
}
|
|
6058
|
+
type CheckedReadScopeBoundary<G extends GraphDef> = Readonly<{
|
|
6059
|
+
query?: () => InitialQueryBuilder<G, "open">;
|
|
6060
|
+
}>;
|
|
6061
|
+
/** Read scope whose fluent-query executions all verify one schema version. */
|
|
6062
|
+
type CheckedReadScope<G extends GraphDef> = CheckedReadScopeBoundary<G> & Required<Pick<CheckedReadScopeBoundary<G>, "query">>;
|
|
5964
6063
|
type StoreCore<G extends GraphDef> = Readonly<{
|
|
5965
6064
|
[STORE_RUNTIME]: StoreRuntime<G>;
|
|
5966
6065
|
graph: G;
|
|
@@ -5995,6 +6094,7 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
5995
6094
|
schemaChanges: () => Promise<SchemaDiff | undefined>;
|
|
5996
6095
|
requiresMigration: () => Promise<boolean>;
|
|
5997
6096
|
query: () => InitialQueryBuilder<G, "open">;
|
|
6097
|
+
withCheckedReads?: <T>(expectedSchemaVersion: number | undefined, fn: (reads: CheckedReadScope<G>) => Promise<T>) => Promise<T>;
|
|
5998
6098
|
asOf: (asOf: string) => StoreView<G>;
|
|
5999
6099
|
asOfRecorded: (recordedAsOf: RecordedInstant) => RecordedStoreView<G>;
|
|
6000
6100
|
recordedNow: () => Promise<RecordedInstant | undefined>;
|
|
@@ -6007,6 +6107,13 @@ type StoreCore<G extends GraphDef> = Readonly<{
|
|
|
6007
6107
|
BatchableQuery<unknown>,
|
|
6008
6108
|
...BatchableQuery<unknown>[]
|
|
6009
6109
|
]>(...queries: Queries) => Promise<BatchResults<Queries>>;
|
|
6110
|
+
batchOnce?: <const Queries extends readonly [
|
|
6111
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6112
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6113
|
+
...EmbeddableOneStatementRead<unknown>[]
|
|
6114
|
+
]>(build: (read: BatchReadBuilder<G>) => Queries) => Promise<OneStatementBatchResults<Queries>>;
|
|
6115
|
+
neighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => Promise<readonly NeighborResult<G, K>[]>;
|
|
6116
|
+
countNeighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => Promise<number>;
|
|
6010
6117
|
bulkFindEdgesFrom: <const K extends EdgeKinds<G>>(params: BulkFindEdgesFromParams<G, K>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindEdgesFromResult<G, K>[]>;
|
|
6011
6118
|
bulkFindEdgesTo: <const K extends EdgeKinds<G>>(params: BulkFindEdgesToParams<G, K>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindEdgesToResult<G, K>[]>;
|
|
6012
6119
|
bulkFindRuntimeEdgesFrom: <NT extends RuntimeNodeKind, ET extends RuntimeEdgeKind>(params: BulkFindRuntimeEdgesFromParams<NT, ET>, options?: EdgeBulkFindEndpointOptions) => Promise<readonly BulkFindRuntimeEdgesFromResult<NT, ET>[]>;
|
|
@@ -6057,6 +6164,25 @@ type StoreTransactions<G extends GraphDef> = Readonly<{
|
|
|
6057
6164
|
transaction: <T>(fn: (tx: TransactionContext<G>) => Promise<T>, options?: StoreTransactionOptions) => Promise<T>;
|
|
6058
6165
|
transactionWithReceipt: <T>(fn: (tx: MeasurableTransactionContext<G>) => Promise<T>, options?: StoreTransactionOptions) => Promise<TransactionOutcome<T>>;
|
|
6059
6166
|
}>;
|
|
6167
|
+
/** Builds cold reads that {@link Store.batchOnce} can compose in one statement. */
|
|
6168
|
+
type BatchReadBuilder<G extends GraphDef> = Readonly<{
|
|
6169
|
+
neighbors: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => CompiledOneStatementRead<readonly NeighborResult<G, K>[]>;
|
|
6170
|
+
countNeighbors: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => CompiledOneStatementRead<number>;
|
|
6171
|
+
subgraph: <const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: SubgraphOptions<G, EK, NK, P>) => CompiledOneStatementRead<SubgraphResult<G, NK, EK, P>>;
|
|
6172
|
+
}>;
|
|
6173
|
+
type AddedStoreReadsBoundary<G extends GraphDef> = Readonly<{
|
|
6174
|
+
withCheckedReads?: <T>(expectedSchemaVersion: number | undefined, fn: (reads: CheckedReadScope<G>) => Promise<T>) => Promise<T>;
|
|
6175
|
+
batchOnce?: <const Queries extends readonly [
|
|
6176
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6177
|
+
EmbeddableOneStatementRead<unknown>,
|
|
6178
|
+
...EmbeddableOneStatementRead<unknown>[]
|
|
6179
|
+
]>(build: (read: BatchReadBuilder<G>) => Queries) => Promise<OneStatementBatchResults<Queries>>;
|
|
6180
|
+
neighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: NeighborReadOptions<G, K>) => Promise<readonly NeighborResult<G, K>[]>;
|
|
6181
|
+
countNeighbors?: <const K extends EdgeKinds<G>>(source: GraphNodeReference<G>, options: Omit<NeighborReadOptions<G, K>, "limit" | "orderBy">) => Promise<number>;
|
|
6182
|
+
}>;
|
|
6183
|
+
type AddedStoreReadKey = keyof AddedStoreReadsBoundary<GraphDef>;
|
|
6184
|
+
type AddedStoreReads<G extends GraphDef> = AddedStoreReadsBoundary<G> & Required<Pick<AddedStoreReadsBoundary<G>, AddedStoreReadKey>>;
|
|
6185
|
+
type ResolvedStoreCore<G extends GraphDef> = StoreCore<G> & AddedStoreReads<G>;
|
|
6060
6186
|
interface StoreEvolution<G extends GraphDef, TStore extends StoreCore<G>> {
|
|
6061
6187
|
readonly evolve: <TRefStore extends StoreCore<G> = TStore>(extension: GraphExtension, options?: Readonly<{
|
|
6062
6188
|
ref?: TStore extends TRefStore ? StoreRef<TRefStore> : never;
|
|
@@ -6078,7 +6204,7 @@ interface StoreEvolution<G extends GraphDef, TStore extends StoreCore<G>> {
|
|
|
6078
6204
|
* graph-owned transactions while keeping adapter-native handles, backend
|
|
6079
6205
|
* internals, and caller-owned transaction adoption out of the public surface.
|
|
6080
6206
|
*/
|
|
6081
|
-
type Store<G extends GraphDef> =
|
|
6207
|
+
type Store<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, Store<G>>;
|
|
6082
6208
|
/**
|
|
6083
6209
|
* An opaque, in-memory snapshot of a store's reconciled schema: the merged
|
|
6084
6210
|
* compile-time + runtime-committed graph plus the committed schema version and
|
|
@@ -6135,7 +6261,7 @@ interface AdapterStoreReconciliation<G extends GraphDef, TNativeTransaction, Sel
|
|
|
6135
6261
|
* this surface so native transaction handles remain precisely typed without
|
|
6136
6262
|
* leaking into the default Store contract.
|
|
6137
6263
|
*/
|
|
6138
|
-
type AdapterStore<G extends GraphDef, TNativeTransaction> =
|
|
6264
|
+
type AdapterStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterStore<G, TNativeTransaction>> & AdapterStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterStore<G, TNativeTransaction>> & Readonly<{
|
|
6139
6265
|
backend: GraphBackend;
|
|
6140
6266
|
}>;
|
|
6141
6267
|
type AdapterStoreTransactions<G extends GraphDef, TNativeTransaction> = Readonly<{
|
|
@@ -6158,18 +6284,18 @@ type AdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> =
|
|
|
6158
6284
|
type MeasurableAdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> = AdapterHistoryTransactionContext<G, TNativeTransaction> & Readonly<{
|
|
6159
6285
|
measure: ScopedMeasure<MeasurableAdapterHistoryTransactionContext<G, TNativeTransaction>>;
|
|
6160
6286
|
}>;
|
|
6161
|
-
type AdapterRecordedReadStore<G extends GraphDef, TNativeTransaction> =
|
|
6287
|
+
type AdapterRecordedReadStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterRecordedReadStore<G, TNativeTransaction>> & AdapterStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterRecordedReadStore<G, TNativeTransaction>> & Readonly<{
|
|
6162
6288
|
backend: GraphBackend;
|
|
6163
6289
|
recordedReadBound: true;
|
|
6164
6290
|
}>;
|
|
6165
|
-
type RecordedReadStore<G extends GraphDef> =
|
|
6291
|
+
type RecordedReadStore<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, RecordedReadStore<G>> & Readonly<{
|
|
6166
6292
|
recordedReadBound: true;
|
|
6167
6293
|
}>;
|
|
6168
|
-
type HistoryStore<G extends GraphDef> =
|
|
6294
|
+
type HistoryStore<G extends GraphDef> = ResolvedStoreCore<G> & StoreTransactions<G> & StoreEvolution<G, HistoryStore<G>> & Readonly<{
|
|
6169
6295
|
historyEnabled: true;
|
|
6170
6296
|
recordedReadBound: true;
|
|
6171
6297
|
}>;
|
|
6172
|
-
type AdapterHistoryStore<G extends GraphDef, TNativeTransaction> =
|
|
6298
|
+
type AdapterHistoryStore<G extends GraphDef, TNativeTransaction> = ResolvedStoreCore<G> & StoreEvolution<G, AdapterHistoryStore<G, TNativeTransaction>> & AdapterHistoryStoreTransactions<G, TNativeTransaction> & AdapterStoreReconciliation<G, TNativeTransaction, AdapterHistoryStore<G, TNativeTransaction>> & Readonly<{
|
|
6173
6299
|
backend: HistoryStoreBackend;
|
|
6174
6300
|
historyEnabled: true;
|
|
6175
6301
|
recordedReadBound: true;
|
|
@@ -6348,4 +6474,4 @@ declare function createVerifiedAdapterStore<G extends GraphDef, TNativeTransacti
|
|
|
6348
6474
|
SchemaValidationResult
|
|
6349
6475
|
]>;
|
|
6350
6476
|
|
|
6351
|
-
export { type
|
|
6477
|
+
export { type AlgorithmCyclePolicy as $, migrateSchema as A, type BatchReadBuilder as B, type CompiledOneStatementRead as C, parseSerializedSchema as D, requiresMigration as E, rollbackSchema as F, type AliasMap as G, type HistoryStoreOptions as H, type IdentityAssertion as I, type EdgeAliasMap as J, KindRegistry as K, type LiveStoreOptions as L, type MigrateSchemaOptions as M, type RecursiveAliasMap as N, QueryBuilder as O, type EmptyRecursiveAliasMap as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type AdapterHistoryStore as V, type AdapterHistoryTransactionContext as W, type AdapterRecordedReadStore as X, type AdapterStore as Y, type AdapterTransactionContext as Z, type AggregateResult as _, type SchemaManagerOptions as a, type GraphEdgeForKinds as a$, type AnyEdge as a0, type AnyNode as a1, type BaseStoreOptions as a2, type BaseTraversalOptions as a3, type BatchResults as a4, type BatchableQuery as a5, type BulkEdgeSourceGroup as a6, type BulkFindEdgesFromParams as a7, type BulkFindEdgesFromResult as a8, type BulkFindEdgesToParams as a9, type DynamicStoreViewEdgeCollection as aA, type Edge as aB, type EdgeAccessor as aC, type EdgeBatchReads as aD, type EdgeBulkFindEndpointOptions as aE, type EdgeBulkFindOptions as aF, type EdgeCollection as aG, type EdgeCollectionLookup as aH, type EdgeFindByEndpointsOptions as aI, type EdgeGetOrCreateByEndpointsOptions as aJ, type EdgeGetOrCreateByEndpointsResult as aK, type EdgeIntrospection as aL, type EdgeReadWindow as aM, type EdgeTemporalReads as aN, type EdgeWrites as aO, type EmbeddableOneStatementRead as aP, type EmptyAliasMap as aQ, type EmptyEdgeAliasMap as aR, ExecutableAggregateQuery as aS, type ExecutableOneStatementRead as aT, ExecutableQuery as aU, type FieldAccessor as aV, type FulltextSearchHit as aW, type FulltextSearchOptions as aX, type GetOrCreateAction as aY, type GraphAlgorithms as aZ, type GraphEdgeCollections as a_, type BulkFindEdgesToResult as aa, type BulkFindRuntimeEdgesFromParams as ab, type BulkFindRuntimeEdgesFromResult as ac, type BulkOperationHookContext as ad, type CheckedReadScope as ae, type ClaimOwner as af, type ClaimTarget as ag, type CompareAndSetAbsent as ah, type CompareAndSetExpected as ai, type ConstraintFenceViolation as aj, type ConstraintNames as ak, type CreateEdgeInput as al, type CreateNodeInput as am, type DegreeOptions as an, type DynamicEdgeAccessor as ao, type DynamicEdgeCollection as ap, type DynamicEdgeType as aq, type DynamicFieldBuilder as ar, type DynamicNode as as, type DynamicNodeAccessor as at, type DynamicNodeCollection as au, type DynamicNodeKind as av, type DynamicNodeReference as aw, type DynamicNodeType as ax, type DynamicSelectableEdge as ay, type DynamicSelectableNode as az, type Store as b, type RebuildContributionOptions as b$, type GraphNodeCollections as b0, type GraphNodeReference as b1, type HistoryStoreBackend as b2, type HookContext as b3, type HybridFulltextOptions as b4, type HybridSearchHit as b5, type HybridSearchOptions as b6, type HybridVectorOptions as b7, type IdentityAssertionWriteFacade as b8, type IdentityNodeReference as b9, type NodeCollectionLookup as bA, type NodeCurrentReads as bB, type NodeGetOrCreateByConstraintOptions as bC, type NodeGetOrCreateByConstraintResult as bD, type NodeIdentifier as bE, type NodeRef as bF, type NodeTemporalReads as bG, type NodeWrites as bH, type OneStatementBatchResults as bI, type OneStatementBatchableQuery as bJ, type OntologyIntrospection as bK, type OperationHookContext as bL, type PageRankOptions as bM, type PageRankScore as bN, type PaginateOptions as bO, type PaginatedResult as bP, type PathNode as bQ, type PersonalizedPageRankOptions as bR, type PersonalizedPageRankSeed as bS, type Predicate as bT, PreparedQuery as bU, type PropertyPopulationStatistics as bV, type PropsAccessor as bW, type QueryHookContext as bX, type QueryOptions as bY, type ReachableNode as bZ, type ReachableOptions as b_, type IdentityTraversalOption as ba, type IdentityValidityWindow as bb, type IfExistsMode as bc, type InitialQueryBuilder as bd, type KindIntrospection as be, type KindPopulationStatistics as bf, type LabelPropagationMembership as bg, type LabelPropagationOptions as bh, type MaterializeRemovalsEntry as bi, type MaterializeRemovalsOptions as bj, type MaterializeRemovalsResult as bk, type MeasurableAdapterHistoryTransactionContext as bl, type MeasurableAdapterTransactionContext as bm, type MeasurableTransactionContext as bn, type NeighborNodeOrderField as bo, type NeighborOrder as bp, type NeighborOrderField as bq, type NeighborReadOptions as br, type NeighborResult as bs, type NeighborsOptions as bt, type NoRecordedCoordinate as bu, type Node as bv, type NodeAccessor as bw, type NodeAlias as bx, type NodeBulkFindByIndexOptions as by, type NodeCollection as bz, type HistoryStore as c, type StoreViewWeightedShortestPathOptions as c$, type RebuildFulltextOptions as c0, type RebuildFulltextResult as c1, type ReclaimedVectorFieldEntry as c2, type RecordedScanOptions as c3, type RecordedScanPage as c4, RecordedStoreView as c5, type RecordedStoreViewEdgeCollection as c6, type RecordedStoreViewEdgeCollections as c7, type RecordedStoreViewNodeCollection as c8, type RecordedStoreViewNodeCollections as c9, type StoreAnalysisSchemaCoordinate as cA, type StoreDescription as cB, type StoreHooks as cC, type StorePopulationStatistics as cD, type StoreProjection as cE, type StoreRef as cF, StoreSearch as cG, type StoreTransactionOptions as cH, type StoreValidationFailure as cI, type StoreValidationPage as cJ, StoreView as cK, type StoreViewCanReachOptions as cL, type StoreViewCoordinate as cM, type StoreViewDegreeOptions as cN, type StoreViewEdgeCollection as cO, type StoreViewEdgeCollections as cP, type StoreViewGraphAlgorithms as cQ, type StoreViewLabelPropagationOptions as cR, type StoreViewNeighborsOptions as cS, type StoreViewNodeCollection as cT, type StoreViewNodeCollections as cU, type StoreViewPageRankOptions as cV, type StoreViewPersonalizedPageRankOptions as cW, type StoreViewReachableOptions as cX, type StoreViewShortestPathOptions as cY, type StoreViewSubgraphOptions as cZ, type StoreViewWeaklyConnectedComponentsOptions as c_, type RecursiveTraversalOptions as ca, type ReembedFunction as cb, type ReembedVectorFieldOptions as cc, type ReembedVectorFieldResult as cd, type RequiredEdgeCollectionLookup as ce, type RequiredNodeCollectionLookup as cf, type RuntimeBulkEdgeSourceGroup as cg, type RuntimeEdgeCollection as ch, type RuntimeEdgeFor as ci, type RuntimeEdgeKind as cj, type RuntimeEdgeTypeFor as ck, type RuntimeNodeCollection as cl, type RuntimeNodeKind as cm, type RuntimeNodeReferenceFor as cn, type RuntimeNodeTypeFor as co, type SchemaIntrospection as cp, type ScopedMeasure as cq, type SearchScopeOptions as cr, type SelectContext as cs, type SelectableEdge as ct, type SelectableNode as cu, type ShortestPathOptions as cv, type ShortestPathResult as cw, type SqlAvailability as cx, StoreAnalysisCursorStaleError as cy, type StoreAnalysisCursorStaleErrorDetails as cz, type RecordedReadStore as d, type StreamOptions as d0, type SubgraphEdgeResult as d1, type SubgraphNodeResult as d2, type SubgraphOptions as d3, type SubgraphResult as d4, type SubsetEdge as d5, type SubsetNode as d6, type TemporalAlgorithmOptions as d7, type TransactionContext as d8, type TransactionOutcome as d9, createVerifiedAdapterStore as dA, createVerifiedStore as dB, defineSubgraphProject as dC, exists as dD, fieldRef as dE, inSubquery as dF, isParameterRef as dG, notExists as dH, notInSubquery as dI, param as dJ, EDGE_TEMPORAL_READ_NAMES as dK, IDENTITY_READ_NAMES as dL, type TransactionReceipt as da, type TraversalDirection as db, type TypedEdgeCollection as dc, type TypedRecordedStoreViewEdgeCollection as dd, type TypedStoreViewEdgeCollection as de, UnionableQuery as df, type UniqueIntrospection as dg, type UpdateEdgeInput as dh, type UpdateNodeInput as di, type ValidateStoreOptions as dj, type ValidityEndMutation as dk, type VectorSearchHit as dl, type VectorSearchOptions as dm, type WeaklyConnectedComponentMembership as dn, type WeaklyConnectedComponentsOptions as dp, type WeightedShortestPathOptions as dq, type WeightedShortestPathResult as dr, type WorkingCopyOptions as ds, asIdentityAssertionId as dt, compareAndSetAbsent as du, createAdapterStore as dv, createAdapterStoreWithSchema as dw, createQueryBuilder as dx, createStore as dy, createStoreWithSchema as dz, type IdentityAssertionId as e, type IdentityAssertionResult as f, type IdentityFacade as g, type IdentityNode as h, type IdentityNodeRefInput as i, type IdentityPair as j, type IdentityReadFacade as k, type IdentityRelation as l, type IdentityWriteSummary as m, type ReconciledSchema as n, type MigrationHookContext as o, type SchemaValidationResult as p, applyDeprecatedKinds as q, assertSchemaCurrent as r, ensureSchema as s, getActiveSchema as t, getCommittedSchemaVersion as u, getSchemaChanges as v, initializeSchema as w, isSchemaInitialized as x, loadActiveSchemaWithBootstrap as y, loadAndMergeGraphExtensionDocument as z };
|