@nicia-ai/typegraph 0.38.0 → 0.40.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.cjs +8 -10
- package/dist/backend/drizzle/indexes.d.cts +2 -2
- package/dist/backend/drizzle/indexes.d.ts +2 -2
- package/dist/backend/drizzle/indexes.js +4 -6
- package/dist/backend/index.cjs +60 -39
- package/dist/backend/index.d.cts +60 -1
- package/dist/backend/index.d.ts +60 -1
- package/dist/backend/index.js +12 -3
- package/dist/backend/postgres/index.cjs +25 -27
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +12 -14
- package/dist/backend/postgres/pglite-store.cjs +26 -27
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +6 -5
- package/dist/backend/postgres/pglite-store.d.ts +6 -5
- package/dist/backend/postgres/pglite-store.js +22 -23
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +14 -16
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +13 -15
- package/dist/backend/sqlite/index.cjs +26 -28
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +10 -12
- package/dist/backend/sqlite/libsql.cjs +16 -18
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +15 -17
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +27 -28
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +6 -5
- package/dist/backend/sqlite/local-store.d.ts +6 -5
- package/dist/backend/sqlite/local-store.js +23 -24
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +15 -17
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +13 -15
- package/dist/{chunk-U4JDJKPD.js → chunk-2I3DNNBU.js} +4 -4
- package/dist/{chunk-U4JDJKPD.js.map → chunk-2I3DNNBU.js.map} +1 -1
- package/dist/{chunk-NPWACFQJ.cjs → chunk-2J5NMMVR.cjs} +43 -43
- package/dist/{chunk-NPWACFQJ.cjs.map → chunk-2J5NMMVR.cjs.map} +1 -1
- package/dist/{chunk-NU23DUSJ.cjs → chunk-2X73QTIC.cjs} +12 -13
- package/dist/chunk-2X73QTIC.cjs.map +1 -0
- package/dist/{chunk-A2FGSWMQ.js → chunk-3BL3JFHL.js} +202 -52
- package/dist/chunk-3BL3JFHL.js.map +1 -0
- package/dist/chunk-3SHAUJRB.js +79 -0
- package/dist/chunk-3SHAUJRB.js.map +1 -0
- package/dist/{chunk-UPXDVI3T.js → chunk-53BSOG3O.js} +8 -7
- package/dist/chunk-53BSOG3O.js.map +1 -0
- package/dist/chunk-5J4VNCUD.js +856 -0
- package/dist/chunk-5J4VNCUD.js.map +1 -0
- package/dist/chunk-5YBDB7UG.cjs +12 -0
- package/dist/{chunk-FMNUSGZ4.cjs.map → chunk-5YBDB7UG.cjs.map} +1 -1
- package/dist/{chunk-6XDBRDZE.js → chunk-6N7QBIWN.js} +7 -3
- package/dist/chunk-6N7QBIWN.js.map +1 -0
- package/dist/{chunk-EZH7FNUS.js → chunk-6QP4QXBR.js} +3 -3
- package/dist/{chunk-EZH7FNUS.js.map → chunk-6QP4QXBR.js.map} +1 -1
- package/dist/{chunk-E6TXEISH.cjs → chunk-7UTUKH4E.cjs} +4 -4
- package/dist/{chunk-E6TXEISH.cjs.map → chunk-7UTUKH4E.cjs.map} +1 -1
- package/dist/chunk-7WLEQIHA.cjs +605 -0
- package/dist/chunk-7WLEQIHA.cjs.map +1 -0
- package/dist/{chunk-BQITNFQJ.js → chunk-AQVDAKXH.js} +3 -3
- package/dist/{chunk-BQITNFQJ.js.map → chunk-AQVDAKXH.js.map} +1 -1
- package/dist/{chunk-X6CNEA32.js → chunk-BUZWMDNL.js} +5 -5
- package/dist/{chunk-X6CNEA32.js.map → chunk-BUZWMDNL.js.map} +1 -1
- package/dist/{chunk-7M3NACL3.cjs → chunk-CKFBZ4LV.cjs} +4 -4
- package/dist/{chunk-7M3NACL3.cjs.map → chunk-CKFBZ4LV.cjs.map} +1 -1
- package/dist/{chunk-VBH7ZXSZ.js → chunk-CU3LPYNB.js} +5 -5
- package/dist/{chunk-VBH7ZXSZ.js.map → chunk-CU3LPYNB.js.map} +1 -1
- package/dist/{chunk-YJDSPA5E.js → chunk-EFZ4S22A.js} +11 -10
- package/dist/chunk-EFZ4S22A.js.map +1 -0
- package/dist/chunk-ELA3V6UN.js +601 -0
- package/dist/chunk-ELA3V6UN.js.map +1 -0
- package/dist/{chunk-2SL7OGPR.cjs → chunk-H6I36MGT.cjs} +1037 -887
- package/dist/chunk-H6I36MGT.cjs.map +1 -0
- package/dist/chunk-HAQVISUF.cjs +1098 -0
- package/dist/chunk-HAQVISUF.cjs.map +1 -0
- package/dist/{chunk-O5H62ZWJ.cjs → chunk-HP6LWBLB.cjs} +14 -2
- package/dist/chunk-HP6LWBLB.cjs.map +1 -0
- package/dist/{chunk-BKAKAVRW.cjs → chunk-HQRZEYYB.cjs} +44 -44
- package/dist/{chunk-BKAKAVRW.cjs.map → chunk-HQRZEYYB.cjs.map} +1 -1
- package/dist/{chunk-XD6X7O5R.js → chunk-I5CRUPKO.js} +9 -10
- package/dist/{chunk-XD6X7O5R.js.map → chunk-I5CRUPKO.js.map} +1 -1
- package/dist/{chunk-RQPRCEIO.js → chunk-JHK6NPFV.js} +218 -306
- package/dist/chunk-JHK6NPFV.js.map +1 -0
- package/dist/chunk-JZYMOHHM.cjs +226 -0
- package/dist/chunk-JZYMOHHM.cjs.map +1 -0
- package/dist/{chunk-CQC6VBAF.cjs → chunk-K4FB2RMO.cjs} +10 -10
- package/dist/{chunk-CQC6VBAF.cjs.map → chunk-K4FB2RMO.cjs.map} +1 -1
- package/dist/{chunk-ERZ4QPQX.js → chunk-K6CD6W5J.js} +5 -5
- package/dist/{chunk-ERZ4QPQX.js.map → chunk-K6CD6W5J.js.map} +1 -1
- package/dist/{chunk-LZ3TVJY4.cjs → chunk-KHNKYSGP.cjs} +34 -34
- package/dist/{chunk-LZ3TVJY4.cjs.map → chunk-KHNKYSGP.cjs.map} +1 -1
- package/dist/{chunk-CWX77JB4.cjs → chunk-KLR77R5A.cjs} +13 -13
- package/dist/{chunk-CWX77JB4.cjs.map → chunk-KLR77R5A.cjs.map} +1 -1
- package/dist/{chunk-AOL64O4Z.js → chunk-L3DDZUZP.js} +3 -3
- package/dist/{chunk-AOL64O4Z.js.map → chunk-L3DDZUZP.js.map} +1 -1
- package/dist/{chunk-PZHC5GCD.js → chunk-L5ET7FYQ.js} +3 -3
- package/dist/{chunk-PZHC5GCD.js.map → chunk-L5ET7FYQ.js.map} +1 -1
- package/dist/{chunk-B63IFHXR.cjs → chunk-LFFVD5ZR.cjs} +41 -41
- package/dist/{chunk-B63IFHXR.cjs.map → chunk-LFFVD5ZR.cjs.map} +1 -1
- package/dist/chunk-LL5D5T5W.cjs +157 -0
- package/dist/chunk-LL5D5T5W.cjs.map +1 -0
- package/dist/{chunk-GUUWKPTK.cjs → chunk-LLE25NRD.cjs} +7 -7
- package/dist/{chunk-GUUWKPTK.cjs.map → chunk-LLE25NRD.cjs.map} +1 -1
- package/dist/chunk-LLHMAHG4.cjs +886 -0
- package/dist/chunk-LLHMAHG4.cjs.map +1 -0
- package/dist/{chunk-ZHX4KEM7.cjs → chunk-M2RPZS7J.cjs} +10 -10
- package/dist/{chunk-ZHX4KEM7.cjs.map → chunk-M2RPZS7J.cjs.map} +1 -1
- package/dist/chunk-MNURF4RF.cjs +85 -0
- package/dist/chunk-MNURF4RF.cjs.map +1 -0
- package/dist/chunk-QOHTVDHU.js +144 -0
- package/dist/chunk-QOHTVDHU.js.map +1 -0
- package/dist/{chunk-7VLCN3JB.cjs → chunk-QXKVUJLI.cjs} +113 -112
- package/dist/chunk-QXKVUJLI.cjs.map +1 -0
- package/dist/{chunk-GNPGGLAE.cjs → chunk-QYDUCWD2.cjs} +4 -4
- package/dist/{chunk-GNPGGLAE.cjs.map → chunk-QYDUCWD2.cjs.map} +1 -1
- package/dist/{chunk-TE5ZA4VX.js → chunk-QZYGZVUI.js} +45 -41
- package/dist/chunk-QZYGZVUI.js.map +1 -0
- package/dist/{chunk-YLINFV7Z.cjs → chunk-SAMJLDGG.cjs} +114 -110
- package/dist/chunk-SAMJLDGG.cjs.map +1 -0
- package/dist/{chunk-DOVMTPKE.cjs → chunk-SE422RES.cjs} +27 -27
- package/dist/{chunk-DOVMTPKE.cjs.map → chunk-SE422RES.cjs.map} +1 -1
- package/dist/{chunk-NWYCOFEZ.cjs → chunk-UCHW2MGP.cjs} +332 -433
- package/dist/chunk-UCHW2MGP.cjs.map +1 -0
- package/dist/{chunk-XFY73JWD.cjs → chunk-UDS5DZNY.cjs} +498 -1098
- package/dist/chunk-UDS5DZNY.cjs.map +1 -0
- package/dist/{chunk-KFLXWVUJ.js → chunk-UUIBACKJ.js} +14 -3
- package/dist/chunk-UUIBACKJ.js.map +1 -0
- package/dist/{chunk-VDYA2HMS.js → chunk-VWEFXG73.js} +3 -3
- package/dist/{chunk-VDYA2HMS.js.map → chunk-VWEFXG73.js.map} +1 -1
- package/dist/{chunk-G32AO634.js → chunk-W66YCXWT.js} +464 -1048
- package/dist/chunk-W66YCXWT.js.map +1 -0
- package/dist/{chunk-E6YZRKMM.js → chunk-XMEYZYGE.js} +6 -6
- package/dist/{chunk-E6YZRKMM.js.map → chunk-XMEYZYGE.js.map} +1 -1
- package/dist/{chunk-G3CSQLLT.js → chunk-Y5UC3IXF.js} +461 -6
- package/dist/chunk-Y5UC3IXF.js.map +1 -0
- package/dist/{chunk-SDHV2MWU.js → chunk-YGX4PMG6.js} +5 -5
- package/dist/{chunk-SDHV2MWU.js.map → chunk-YGX4PMG6.js.map} +1 -1
- package/dist/{chunk-KCLZHYPU.cjs → chunk-YIX3BEBR.cjs} +86 -85
- package/dist/chunk-YIX3BEBR.cjs.map +1 -0
- package/dist/{chunk-X6RDQ5NB.cjs → chunk-YX3H63VV.cjs} +8 -2
- package/dist/chunk-YX3H63VV.cjs.map +1 -0
- package/dist/chunk-YYLMXERH.js +211 -0
- package/dist/chunk-YYLMXERH.js.map +1 -0
- package/dist/{chunk-6G5CQ6JX.js → chunk-ZE7E46IZ.js} +5 -5
- package/dist/{chunk-6G5CQ6JX.js.map → chunk-ZE7E46IZ.js.map} +1 -1
- package/dist/{chunk-Z2PPIVOO.js → chunk-ZVME6OSV.js} +5 -5
- package/dist/{chunk-Z2PPIVOO.js.map → chunk-ZVME6OSV.js.map} +1 -1
- package/dist/core/index.cjs +15 -3
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +2 -2
- package/dist/{ddl-Dx3Z0_WC.d.ts → ddl-BLEzHw6j.d.ts} +3 -3
- package/dist/{ddl-J6sDyABg.d.cts → ddl-KnCdF_le.d.cts} +3 -3
- package/dist/{define-graph-CzEvA_8F.d.cts → define-graph-Cv3CFwKm.d.cts} +1 -1
- package/dist/{define-graph-DRo9xpYN.d.ts → define-graph-DQnj3fNH.d.ts} +1 -1
- package/dist/graph-merge/index.cjs +40 -43
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +15 -9
- package/dist/graph-merge/index.d.ts +15 -9
- package/dist/graph-merge/index.js +19 -22
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +143 -119
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +23 -23
- package/dist/indexes/index.cjs +12 -14
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +5 -7
- package/dist/interchange/index.cjs +29 -30
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +6 -5
- package/dist/interchange/index.d.ts +6 -5
- package/dist/interchange/index.js +10 -11
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-CASfhmzV.d.ts → manager-DjE6Mhag.d.ts} +2 -2
- package/dist/{manager-nCEJiYBb.d.cts → manager-mqee5MVB.d.cts} +2 -2
- package/dist/{postgres-DMgIKQU-.d.cts → postgres-Bm4DyFQU.d.cts} +100 -49
- package/dist/{postgres-Cl1ZAN1G.d.ts → postgres-DtaVALOZ.d.ts} +100 -49
- package/dist/profiler/index.d.cts +8 -7
- package/dist/profiler/index.d.ts +8 -7
- package/dist/provenance/index.cjs +20 -20
- package/dist/provenance/index.d.cts +6 -5
- package/dist/provenance/index.d.ts +6 -5
- package/dist/provenance/index.js +7 -7
- package/dist/schema/index.cjs +26 -28
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +5 -5
- package/dist/schema/index.d.ts +5 -5
- package/dist/schema/index.js +7 -9
- package/dist/schema/index.js.map +1 -1
- package/dist/{temporal-DqtOEo_B.d.ts → searchable-BxlJQVFw.d.cts} +3 -58
- package/dist/{temporal-BC_NQV5Y.d.cts → searchable-ChJ29MCd.d.ts} +3 -58
- package/dist/{sqlite-BDkW39aa.d.cts → sqlite-DT6tTHOG.d.cts} +124 -97
- package/dist/{sqlite-CYfhvESj.d.ts → sqlite-m9Izphk_.d.ts} +124 -97
- package/dist/{store-view-BoHqdHjB.d.cts → store-view-C-buB8Q8.d.cts} +46 -31
- package/dist/{store-view-Ctq-3OHy.d.ts → store-view-CagdeyNn.d.ts} +46 -31
- package/dist/temporal-CyFsSPe8.d.ts +73 -0
- package/dist/temporal-Dn_JADWY.d.cts +73 -0
- package/dist/{types-CUevi_D1.d.ts → types-CYdXzZef.d.ts} +1 -1
- package/dist/{types-COq3-vMC.d.cts → types-CqSfMRW3.d.cts} +1 -1
- package/dist/{where-C92TXCzT.d.cts → where-C3-HRgUq.d.cts} +1 -1
- package/dist/{where-BdE_cYtx.d.ts → where-sQL4u5h-.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2SL7OGPR.cjs.map +0 -1
- package/dist/chunk-6XDBRDZE.js.map +0 -1
- package/dist/chunk-7VLCN3JB.cjs.map +0 -1
- package/dist/chunk-A2FGSWMQ.js.map +0 -1
- package/dist/chunk-DDCIXXOO.js +0 -9
- package/dist/chunk-DDCIXXOO.js.map +0 -1
- package/dist/chunk-DDCYVIVV.cjs +0 -44
- package/dist/chunk-DDCYVIVV.cjs.map +0 -1
- package/dist/chunk-EOJFGECD.cjs +0 -284
- package/dist/chunk-EOJFGECD.cjs.map +0 -1
- package/dist/chunk-FMNUSGZ4.cjs +0 -12
- package/dist/chunk-G32AO634.js.map +0 -1
- package/dist/chunk-G3CSQLLT.js.map +0 -1
- package/dist/chunk-I6FX7AAG.js +0 -39
- package/dist/chunk-I6FX7AAG.js.map +0 -1
- package/dist/chunk-J6IJARLG.js +0 -94
- package/dist/chunk-J6IJARLG.js.map +0 -1
- package/dist/chunk-KCLZHYPU.cjs.map +0 -1
- package/dist/chunk-KFLXWVUJ.js.map +0 -1
- package/dist/chunk-MTNEGGM2.js +0 -273
- package/dist/chunk-MTNEGGM2.js.map +0 -1
- package/dist/chunk-NU23DUSJ.cjs.map +0 -1
- package/dist/chunk-NWYCOFEZ.cjs.map +0 -1
- package/dist/chunk-O5H62ZWJ.cjs.map +0 -1
- package/dist/chunk-RQPRCEIO.js.map +0 -1
- package/dist/chunk-SVUKGWSN.cjs +0 -102
- package/dist/chunk-SVUKGWSN.cjs.map +0 -1
- package/dist/chunk-TE5ZA4VX.js.map +0 -1
- package/dist/chunk-UH2USOMG.cjs +0 -627
- package/dist/chunk-UH2USOMG.cjs.map +0 -1
- package/dist/chunk-UPXDVI3T.js.map +0 -1
- package/dist/chunk-X6RDQ5NB.cjs.map +0 -1
- package/dist/chunk-XFY73JWD.cjs.map +0 -1
- package/dist/chunk-Y7M44XEK.js +0 -462
- package/dist/chunk-Y7M44XEK.js.map +0 -1
- package/dist/chunk-YJDSPA5E.js.map +0 -1
- package/dist/chunk-YLINFV7Z.cjs.map +0 -1
- package/dist/chunk-Z5QHVL5U.cjs +0 -12
- package/dist/chunk-Z5QHVL5U.cjs.map +0 -1
- package/dist/chunk-ZKZAIX42.cjs +0 -479
- package/dist/chunk-ZKZAIX42.cjs.map +0 -1
- package/dist/{index-CrFL_ENI.d.cts → types-C5pZeKTl.d.cts} +1 -1
- package/dist/{index-Bq7vSPHy.d.ts → types-D8szWDUo.d.ts} +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { G as GraphDef, E as EdgeKinds, N as NodeKinds, a as AllNodeTypes } from './define-graph-
|
|
2
|
-
import {
|
|
1
|
+
import { G as GraphDef, E as EdgeKinds, N as NodeKinds, a as AllNodeTypes } from './define-graph-DQnj3fNH.js';
|
|
2
|
+
import { R as RecordedInstant, d as ReadCoordinate } from './temporal-CyFsSPe8.js';
|
|
3
3
|
import { a as NodeType, A as AnyEdgeType, d as EdgeType, T as TemporalMode, E as EdgeRegistration, m as NodeId, K as KindEntity, g as EdgeId, N as NodeRegistration, l as KindAnnotations, o as UniquenessScope, f as Collation, e as Cardinality, j as EndpointExistence, G as GraphExtension } from './extension-types-BLEVH4SG.js';
|
|
4
|
-
import { K as KindRegistry, S as SchemaManagerOptions, d as SchemaValidationResult } from './manager-
|
|
4
|
+
import { K as KindRegistry, S as SchemaManagerOptions, d as SchemaValidationResult } from './manager-DjE6Mhag.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { bp as ValueType, bq as PredicateExpression, ad as FulltextQueryMode, br as VectorMetricType, Q as QueryAst, J as JsonPointer, K as FieldRef, ay as ParameterRef, b1 as TraversalExpansion, G as GraphBackend, S as SqlDialect, aU as SqlSchema, bs as Traversal, bt as NodePredicate, bu as ProjectedField, ax as OrderSpec, bv as AggregateOrderSpec, bw as GroupBySpec, ak as HybridFusionOptions, ao as JsonPointerInput, bx as RecursiveCyclePolicy, T as TraversalDirection$1, a_ as TransactionBackend, a7 as ExternalRecordedReadSource, by as NodeRow, bz as EdgeRow, b0 as TransactionReadBackend, H as AggregateExpr, aN as SortDirection, a0 as CompiledSelectSql, F as FulltextStrategy, V as VectorStrategy, bA as VectorSlotMap, bB as RecordedReadBinding, bC as SelectiveField, bD as ComposableQuery, bE as SetOperationType, bF as SetOperation, bG as VectorMetric, x as JsonSchema, B as BackendCapabilities, a$ as TransactionOptions, A as AdapterBackend } from './
|
|
6
|
+
import { bp as ValueType, bq as PredicateExpression, ad as FulltextQueryMode, br as VectorMetricType, Q as QueryAst, J as JsonPointer, K as FieldRef, ay as ParameterRef, b1 as TraversalExpansion, G as GraphBackend, S as SqlDialect, aU as SqlSchema, bs as Traversal, bt as NodePredicate, bu as ProjectedField, ax as OrderSpec, bv as AggregateOrderSpec, bw as GroupBySpec, ak as HybridFusionOptions, ao as JsonPointerInput, bx as RecursiveCyclePolicy, T as TraversalDirection$1, a_ as TransactionBackend, a7 as ExternalRecordedReadSource, by as NodeRow, bz as EdgeRow, b0 as TransactionReadBackend, H as AggregateExpr, aN as SortDirection, a0 as CompiledSelectSql, F as FulltextStrategy, V as VectorStrategy, bA as VectorSlotMap, bB as RecordedReadBinding, bC as SelectiveField, bD as ComposableQuery, bE as SetOperationType, bF as SetOperation, bG as VectorMetric, x as JsonSchema, B as BackendCapabilities, a$ as TransactionOptions, A as AdapterBackend } from './types-D8szWDUo.js';
|
|
7
|
+
import { S as SearchableMetadata, c as EmbeddingValue } from './searchable-ChJ29MCd.js';
|
|
7
8
|
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult, c as MaterializeSystemIndexesOptions } from './materialize-indexes-D4iei4Kp.js';
|
|
8
9
|
|
|
9
10
|
type FieldTypeInfo = Readonly<{
|
|
@@ -1819,17 +1820,39 @@ type StoreViewNodeCollections<G extends GraphDef> = {
|
|
|
1819
1820
|
type StoreViewEdgeCollections<G extends GraphDef> = {
|
|
1820
1821
|
[K in keyof G["edges"] & string]-?: TypedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1821
1822
|
};
|
|
1822
|
-
/**
|
|
1823
|
-
type
|
|
1824
|
-
/**
|
|
1825
|
-
|
|
1823
|
+
/** Options for one bounded, forward-only recorded-time collection scan. */
|
|
1824
|
+
type RecordedScanOptions = Readonly<{
|
|
1825
|
+
/** Maximum entities to return. Defaults to 1,000 and cannot exceed 1,000. */
|
|
1826
|
+
limit?: number;
|
|
1827
|
+
/** Opaque cursor returned by the preceding page. */
|
|
1828
|
+
after?: string;
|
|
1829
|
+
}>;
|
|
1830
|
+
/** One page from a deterministic recorded-time collection scan. */
|
|
1831
|
+
type RecordedScanPage<T> = Readonly<{
|
|
1832
|
+
/** Entities ordered by canonical id ascending. */
|
|
1833
|
+
data: readonly T[];
|
|
1834
|
+
/** Cursor for the next page, or `undefined` when the scan is complete. */
|
|
1835
|
+
nextCursor: string | undefined;
|
|
1836
|
+
/** Whether another page exists after this one. */
|
|
1837
|
+
hasNextPage: boolean;
|
|
1838
|
+
}>;
|
|
1839
|
+
/** Recorded-time reconstructing reads for one node kind. */
|
|
1840
|
+
type RecordedStoreViewNodeCollection<N extends NodeType> = Pick<StoreViewNodeCollection<N>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1841
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1842
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
1843
|
+
}>;
|
|
1844
|
+
/** Recorded-time reconstructing reads for one edge kind. */
|
|
1845
|
+
type RecordedStoreViewEdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To extends NodeType = NodeType> = Pick<StoreViewEdgeCollection<E, From, To>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1846
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1847
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E, From, To>>>;
|
|
1848
|
+
}>;
|
|
1826
1849
|
/** Recorded-time edge collection derived from an `EdgeRegistration`. */
|
|
1827
1850
|
type TypedRecordedStoreViewEdgeCollection<R extends EdgeRegistration> = RecordedStoreViewEdgeCollection<R["type"], EdgeFromTypes<R> extends NodeType ? EdgeFromTypes<R> : NodeType, EdgeToTypes<R> extends NodeType ? EdgeToTypes<R> : NodeType>;
|
|
1828
|
-
/** Mapped type of all recorded-time node
|
|
1851
|
+
/** Mapped type of all recorded-time node reconstructing-read collections. */
|
|
1829
1852
|
type RecordedStoreViewNodeCollections<G extends GraphDef> = {
|
|
1830
1853
|
[K in keyof G["nodes"] & string]-?: RecordedStoreViewNodeCollection<G["nodes"][K]["type"]>;
|
|
1831
1854
|
};
|
|
1832
|
-
/** Mapped type of all recorded-time edge
|
|
1855
|
+
/** Mapped type of all recorded-time edge reconstructing-read collections. */
|
|
1833
1856
|
type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
1834
1857
|
[K in keyof G["edges"] & string]-?: TypedRecordedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1835
1858
|
};
|
|
@@ -1837,9 +1860,10 @@ type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
|
1837
1860
|
* Whether — and why — `tx.sql` can be used on a transaction context. A single
|
|
1838
1861
|
* required discriminant covering exactly the four states raw-SQL access can be
|
|
1839
1862
|
* in, so an adapter caller branches on capability instead of truthiness-testing
|
|
1840
|
-
* `tx.sql`.
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1863
|
+
* `tx.sql`. The non-available variants omit `sql` entirely, so even reading the
|
|
1864
|
+
* handle requires first narrowing `sqlAvailability` to `"available"`. The
|
|
1865
|
+
* runtime object keeps a fail-loud getter under history / revision tracking for
|
|
1866
|
+
* JavaScript and type-suppressed callers. See
|
|
1843
1867
|
* {@link AdapterTransactionContext} for the per-value semantics.
|
|
1844
1868
|
*/
|
|
1845
1869
|
type SqlAvailability = "available" | "history" | "revisionTracking" | "unavailable";
|
|
@@ -1847,10 +1871,8 @@ type AdapterTransactionSqlAccess<TNativeTransaction> = Readonly<{
|
|
|
1847
1871
|
sql: TNativeTransaction;
|
|
1848
1872
|
sqlAvailability: "available";
|
|
1849
1873
|
}> | Readonly<{
|
|
1850
|
-
sql?: never;
|
|
1851
1874
|
sqlAvailability: "history" | "revisionTracking";
|
|
1852
1875
|
}> | Readonly<{
|
|
1853
|
-
sql?: undefined;
|
|
1854
1876
|
sqlAvailability: "unavailable";
|
|
1855
1877
|
}>;
|
|
1856
1878
|
declare const TRANSACTION_RUNTIME: unique symbol;
|
|
@@ -2102,14 +2124,6 @@ declare class ExecutableAggregateQuery<G extends GraphDef, Aliases extends Alias
|
|
|
2102
2124
|
execute(): Promise<readonly AggregateResult<R>[]>;
|
|
2103
2125
|
}
|
|
2104
2126
|
|
|
2105
|
-
/**
|
|
2106
|
-
* Temporal Filter Compilation
|
|
2107
|
-
*
|
|
2108
|
-
* Generates SQL clauses for temporal filtering based on valid_from/valid_to
|
|
2109
|
-
* and deleted_at timestamps. Consolidates the previously duplicated temporal
|
|
2110
|
-
* filter functions into a single, parameterized implementation.
|
|
2111
|
-
*/
|
|
2112
|
-
|
|
2113
2127
|
/**
|
|
2114
2128
|
* How a "current" valid-time read instant is emitted into compiled SQL:
|
|
2115
2129
|
*
|
|
@@ -3855,8 +3869,10 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
3855
3869
|
sealedQuery: (coordinate: ReadCoordinate) => InitialQueryBuilder<G, "sealed">;
|
|
3856
3870
|
recordedNodeGetById: <N extends NodeType>(kind: string, id: NodeId<N>, coordinate: ReadCoordinate) => Promise<Node<N> | undefined>;
|
|
3857
3871
|
recordedNodeGetByIds: <N extends NodeType>(kind: string, ids: readonly NodeId<N>[], coordinate: ReadCoordinate) => Promise<readonly (Node<N> | undefined)[]>;
|
|
3872
|
+
recordedNodeScan: <N extends NodeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
3858
3873
|
recordedEdgeGetById: <E extends AnyEdgeType>(kind: string, id: EdgeId<E>, coordinate: ReadCoordinate) => Promise<Edge<E> | undefined>;
|
|
3859
3874
|
recordedEdgeGetByIds: <E extends AnyEdgeType>(kind: string, ids: readonly EdgeId<E>[], coordinate: ReadCoordinate) => Promise<readonly (Edge<E> | undefined)[]>;
|
|
3875
|
+
recordedEdgeScan: <E extends AnyEdgeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E>>>;
|
|
3860
3876
|
subgraphAtCoordinate: <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: InternalSubgraphOptions<G, EK, NK, P>) => Promise<SubgraphResult<G, NK, EK, P>>;
|
|
3861
3877
|
algorithmsAtCoordinate: (coordinate: ReadCoordinate) => InternalGraphAlgorithms<G>;
|
|
3862
3878
|
}>;
|
|
@@ -4017,14 +4033,13 @@ type AdapterStoreTransactions<G extends GraphDef, TNativeTransaction> = Readonly
|
|
|
4017
4033
|
withRecordedTransaction: <T>(externalTransaction: TNativeTransaction, fn: (tx: MeasurableAdapterTransactionContext<G, TNativeTransaction>) => Promise<T>) => Promise<TransactionOutcome<T>>;
|
|
4018
4034
|
}>;
|
|
4019
4035
|
type AdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> = Omit<AdapterTransactionContext<G, TNativeTransaction>, "sql" | "sqlAvailability"> & Readonly<{
|
|
4020
|
-
sql?: never;
|
|
4021
4036
|
sqlAvailability: "history";
|
|
4022
4037
|
}>;
|
|
4023
4038
|
/**
|
|
4024
4039
|
* The {@link AdapterHistoryTransactionContext} handed to a `withRecordedTransaction`
|
|
4025
4040
|
* callback, extended with {@link ScopedMeasure}. Its `measure` scopes to a child
|
|
4026
4041
|
* {@link MeasurableAdapterHistoryTransactionContext} (so nested scopes keep the
|
|
4027
|
-
* history-safe
|
|
4042
|
+
* history-safe absent-`sql` / backend typing). Assignable to
|
|
4028
4043
|
* {@link MeasurableTransactionContext} (and hence to {@link TransactionContext}),
|
|
4029
4044
|
* so a projector helper typed against either still accepts it.
|
|
4030
4045
|
*/
|
|
@@ -4373,19 +4388,19 @@ declare class StoreView<G extends GraphDef> extends CoordinatePinnedView<G> {
|
|
|
4373
4388
|
/**
|
|
4374
4389
|
* A narrow recorded-time read lens. It preserves the valid-time coordinate
|
|
4375
4390
|
* carried by the source view and adds a recorded/system-time pin. Collection
|
|
4376
|
-
* reads
|
|
4391
|
+
* reads expose point reconstruction and bounded scans; broad collection
|
|
4377
4392
|
* predicates, endpoint reads, search, and further coordinate changes are absent
|
|
4378
4393
|
* from the typed surface and refused by the runtime proxies for JS callers.
|
|
4379
4394
|
*/
|
|
4380
4395
|
declare class RecordedStoreView<G extends GraphDef> extends CoordinatePinnedView<G> {
|
|
4381
4396
|
#private;
|
|
4382
4397
|
constructor(store: Store<G>, coordinate: ReadCoordinate);
|
|
4383
|
-
/** The recorded/system-time
|
|
4384
|
-
get asOfRecorded():
|
|
4385
|
-
/** Recorded-time node
|
|
4398
|
+
/** The recorded/system-time anchor this view reconstructs. */
|
|
4399
|
+
get asOfRecorded(): RecordedInstant;
|
|
4400
|
+
/** Recorded-time node reconstructing-read collections. */
|
|
4386
4401
|
get nodes(): RecordedStoreViewNodeCollections<G>;
|
|
4387
|
-
/** Recorded-time edge
|
|
4402
|
+
/** Recorded-time edge reconstructing-read collections. */
|
|
4388
4403
|
get edges(): RecordedStoreViewEdgeCollections<G>;
|
|
4389
4404
|
}
|
|
4390
4405
|
|
|
4391
|
-
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type
|
|
4406
|
+
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type RecordedStoreViewNodeCollection as a$, ExecutableQuery as a0, type FieldAccessor as a1, type FulltextSearchHit as a2, type FulltextSearchOptions as a3, type GetOrCreateAction as a4, type GraphAlgorithms as a5, type GraphEdgeCollections as a6, type GraphNodeCollections as a7, type HistoryStoreBackend as a8, type HookContext as a9, type NodeRef as aA, type NodeTemporalReads as aB, type NodeWrites as aC, type OntologyIntrospection as aD, type OperationHookContext as aE, type PageRankOptions as aF, type PageRankScore as aG, type PaginateOptions as aH, type PaginatedResult as aI, type PathNode as aJ, type PersonalizedPageRankOptions as aK, type PersonalizedPageRankSeed as aL, type Predicate as aM, PreparedQuery as aN, type PropsAccessor as aO, type QueryHookContext as aP, type QueryOptions as aQ, type ReachableNode as aR, type ReachableOptions as aS, type RebuildFulltextOptions as aT, type RebuildFulltextResult as aU, type ReclaimedVectorFieldEntry as aV, type RecordedScanOptions as aW, type RecordedScanPage as aX, RecordedStoreView as aY, type RecordedStoreViewEdgeCollection as aZ, type RecordedStoreViewEdgeCollections as a_, type HybridFulltextOptions as aa, type HybridSearchHit as ab, type HybridSearchOptions as ac, type HybridVectorOptions as ad, type IfExistsMode as ae, type InitialQueryBuilder as af, type KindIntrospection as ag, type LabelPropagationMembership as ah, type LabelPropagationOptions as ai, type MaterializeRemovalsEntry as aj, type MaterializeRemovalsOptions as ak, type MaterializeRemovalsResult as al, type MeasurableAdapterHistoryTransactionContext as am, type MeasurableAdapterTransactionContext as an, type MeasurableTransactionContext as ao, type NeighborsOptions as ap, type NoRecordedCoordinate as aq, type Node as ar, type NodeAccessor as as, type NodeAlias as at, type NodeBulkFindByIndexOptions as au, type NodeCollection as av, type NodeCurrentReads as aw, type NodeGetOrCreateByConstraintOptions as ax, type NodeGetOrCreateByConstraintResult as ay, type NodeIdentifier as az, type HistoryStore as b, createQueryBuilder as b$, type RecordedStoreViewNodeCollections as b0, type RecursiveTraversalOptions as b1, type ReembedFunction as b2, type ReembedVectorFieldOptions as b3, type ReembedVectorFieldResult as b4, type SchemaIntrospection as b5, type ScopedMeasure as b6, type SearchScopeOptions as b7, type SelectContext as b8, type SelectableEdge as b9, type StreamOptions as bA, type SubgraphEdgeResult as bB, type SubgraphNodeResult as bC, type SubgraphOptions as bD, type SubgraphResult as bE, type SubsetEdge as bF, type SubsetNode as bG, type TemporalAlgorithmOptions as bH, type TransactionContext as bI, type TransactionOutcome as bJ, type TransactionReceipt as bK, type TraversalDirection as bL, type TypedEdgeCollection as bM, type TypedRecordedStoreViewEdgeCollection as bN, type TypedStoreViewEdgeCollection as bO, UnionableQuery as bP, type UniqueIntrospection as bQ, type UpdateEdgeInput as bR, type UpdateNodeInput as bS, type VectorSearchHit as bT, type VectorSearchOptions as bU, type WeaklyConnectedComponentMembership as bV, type WeaklyConnectedComponentsOptions as bW, type WeightedShortestPathOptions as bX, type WeightedShortestPathResult as bY, createAdapterStore as bZ, createAdapterStoreWithSchema as b_, type SelectableNode as ba, type ShortestPathOptions as bb, type ShortestPathResult as bc, type SqlAvailability as bd, type StoreHooks as be, type StoreProjection as bf, type StoreRef as bg, StoreSearch as bh, StoreView as bi, type StoreViewCanReachOptions as bj, type StoreViewCoordinate as bk, type StoreViewDegreeOptions as bl, type StoreViewEdgeCollection as bm, type StoreViewEdgeCollections as bn, type StoreViewGraphAlgorithms as bo, type StoreViewLabelPropagationOptions as bp, type StoreViewNeighborsOptions as bq, type StoreViewNodeCollection as br, type StoreViewNodeCollections as bs, type StoreViewPageRankOptions as bt, type StoreViewPersonalizedPageRankOptions as bu, type StoreViewReachableOptions as bv, type StoreViewShortestPathOptions as bw, type StoreViewSubgraphOptions as bx, type StoreViewWeaklyConnectedComponentsOptions as by, type StoreViewWeightedShortestPathOptions as bz, type RecordedReadStore as c, createStore as c0, createStoreWithSchema as c1, createVerifiedAdapterStore as c2, createVerifiedStore as c3, defineSubgraphProject as c4, exists as c5, fieldRef as c6, inSubquery as c7, isParameterRef as c8, notExists as c9, notInSubquery as ca, param as cb, type RecursiveAliasMap as d, QueryBuilder as e, type EmptyRecursiveAliasMap as f, type AdapterHistoryStore as g, type AdapterHistoryTransactionContext as h, type AdapterRecordedReadStore as i, type AdapterStore as j, type AdapterTransactionContext as k, type AggregateResult as l, type AlgorithmCyclePolicy as m, type AnyEdge as n, type AnyNode as o, type BaseTraversalOptions as p, type BatchResults as q, type BatchableQuery as r, type CreateEdgeInput as s, type CreateNodeInput as t, type DynamicEdgeAccessor as u, type DynamicEdgeCollection as v, type DynamicEdgeType as w, type DynamicFieldBuilder as x, type DynamicNodeAccessor as y, type DynamicNodeCollection as z };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { T as TemporalMode } from './extension-types-BLEVH4SG.js';
|
|
2
|
+
|
|
3
|
+
declare const RECORDED_INSTANT_BRAND: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* A versioned recorded-time anchor containing a fixed-width logical revision
|
|
6
|
+
* and a canonical UTC physical timestamp:
|
|
7
|
+
* `r1:0000000000000001:YYYY-MM-DDTHH:mm:ss.sssZ`.
|
|
8
|
+
*
|
|
9
|
+
* Logical revisions are strictly monotonic per graph and make every commit
|
|
10
|
+
* addressable even when many commits share one wall-clock millisecond. The
|
|
11
|
+
* timestamp is a non-decreasing physical wall-time high-water mark used by
|
|
12
|
+
* diagonal valid-time reads. Same-millisecond commits repeat it; backward clock
|
|
13
|
+
* corrections hold it at the previous value until wall time catches up. The
|
|
14
|
+
* string is canonical and lexicographically ordered by revision, so it can
|
|
15
|
+
* round-trip through plain string checkpoint columns without a custom
|
|
16
|
+
* serializer.
|
|
17
|
+
*/
|
|
18
|
+
type RecordedInstant = string & {
|
|
19
|
+
readonly [RECORDED_INSTANT_BRAND]: "RecordedInstant";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Returns the canonical UTC wall-time component of a recorded anchor.
|
|
23
|
+
*
|
|
24
|
+
* The value is non-decreasing per graph, but it is not the commit-order key;
|
|
25
|
+
* use the complete {@link RecordedInstant} when ordering or replaying commits.
|
|
26
|
+
*/
|
|
27
|
+
declare function recordedInstantWallTime(instant: RecordedInstant): string;
|
|
28
|
+
/** Returns the strict per-graph logical revision carried by an anchor. */
|
|
29
|
+
declare function recordedInstantRevision(instant: RecordedInstant): number;
|
|
30
|
+
/**
|
|
31
|
+
* Compares two recorded anchors by logical revision.
|
|
32
|
+
*
|
|
33
|
+
* Revisions are local to a graph, so only compare anchors produced by the same
|
|
34
|
+
* graph. The physical wall-time component deliberately does not participate.
|
|
35
|
+
*/
|
|
36
|
+
declare function compareRecordedInstants(left: RecordedInstant, right: RecordedInstant): -1 | 0 | 1;
|
|
37
|
+
/**
|
|
38
|
+
* Brands a canonical versioned anchor string as a {@link RecordedInstant}.
|
|
39
|
+
*
|
|
40
|
+
* The escape hatch for an instant that round-trips through untyped storage:
|
|
41
|
+
* captured from {@link Store.recordedNow}, persisted as a plain string, read
|
|
42
|
+
* back, and replayed into `asOfRecorded`. Validates the canonical form eagerly —
|
|
43
|
+
* the same check `asOfRecorded` applies — so a malformed value fails here, at the
|
|
44
|
+
* brand site, rather than deeper in a read. Does *not* assert the instant is a
|
|
45
|
+
* real captured commit; it only guarantees the value is well-formed enough to
|
|
46
|
+
* compare correctly against the recorded relations.
|
|
47
|
+
*
|
|
48
|
+
* @throws {ValidationError} when `value` is not a canonical versioned anchor.
|
|
49
|
+
*/
|
|
50
|
+
declare function asRecordedInstant(value: string): RecordedInstant;
|
|
51
|
+
/**
|
|
52
|
+
* The single opaque temporal coordinate every pinned read is resolved
|
|
53
|
+
* against. It carries the valid-time axis plus an optional recorded/system-time
|
|
54
|
+
* axis, so every surface can inject one coordinate object instead of threading
|
|
55
|
+
* each temporal dimension separately.
|
|
56
|
+
*/
|
|
57
|
+
type ReadCoordinate = Readonly<{
|
|
58
|
+
/**
|
|
59
|
+
* The valid-time axis: a resolved temporal mode and (only for `"asOf"`) the
|
|
60
|
+
* instant it is pinned to.
|
|
61
|
+
*/
|
|
62
|
+
valid: Readonly<{
|
|
63
|
+
mode: TemporalMode;
|
|
64
|
+
/** Defined only when `mode` is `"asOf"`. */
|
|
65
|
+
asOf?: string;
|
|
66
|
+
}>;
|
|
67
|
+
/** The recorded/system-time axis. Defined only for recorded-pinned views. */
|
|
68
|
+
recorded?: Readonly<{
|
|
69
|
+
asOf: RecordedInstant;
|
|
70
|
+
}>;
|
|
71
|
+
}>;
|
|
72
|
+
|
|
73
|
+
export { type RecordedInstant as R, asRecordedInstant as a, recordedInstantWallTime as b, compareRecordedInstants as c, type ReadCoordinate as d, recordedInstantRevision as r };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { T as TemporalMode } from './extension-types-BLEVH4SG.cjs';
|
|
2
|
+
|
|
3
|
+
declare const RECORDED_INSTANT_BRAND: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* A versioned recorded-time anchor containing a fixed-width logical revision
|
|
6
|
+
* and a canonical UTC physical timestamp:
|
|
7
|
+
* `r1:0000000000000001:YYYY-MM-DDTHH:mm:ss.sssZ`.
|
|
8
|
+
*
|
|
9
|
+
* Logical revisions are strictly monotonic per graph and make every commit
|
|
10
|
+
* addressable even when many commits share one wall-clock millisecond. The
|
|
11
|
+
* timestamp is a non-decreasing physical wall-time high-water mark used by
|
|
12
|
+
* diagonal valid-time reads. Same-millisecond commits repeat it; backward clock
|
|
13
|
+
* corrections hold it at the previous value until wall time catches up. The
|
|
14
|
+
* string is canonical and lexicographically ordered by revision, so it can
|
|
15
|
+
* round-trip through plain string checkpoint columns without a custom
|
|
16
|
+
* serializer.
|
|
17
|
+
*/
|
|
18
|
+
type RecordedInstant = string & {
|
|
19
|
+
readonly [RECORDED_INSTANT_BRAND]: "RecordedInstant";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Returns the canonical UTC wall-time component of a recorded anchor.
|
|
23
|
+
*
|
|
24
|
+
* The value is non-decreasing per graph, but it is not the commit-order key;
|
|
25
|
+
* use the complete {@link RecordedInstant} when ordering or replaying commits.
|
|
26
|
+
*/
|
|
27
|
+
declare function recordedInstantWallTime(instant: RecordedInstant): string;
|
|
28
|
+
/** Returns the strict per-graph logical revision carried by an anchor. */
|
|
29
|
+
declare function recordedInstantRevision(instant: RecordedInstant): number;
|
|
30
|
+
/**
|
|
31
|
+
* Compares two recorded anchors by logical revision.
|
|
32
|
+
*
|
|
33
|
+
* Revisions are local to a graph, so only compare anchors produced by the same
|
|
34
|
+
* graph. The physical wall-time component deliberately does not participate.
|
|
35
|
+
*/
|
|
36
|
+
declare function compareRecordedInstants(left: RecordedInstant, right: RecordedInstant): -1 | 0 | 1;
|
|
37
|
+
/**
|
|
38
|
+
* Brands a canonical versioned anchor string as a {@link RecordedInstant}.
|
|
39
|
+
*
|
|
40
|
+
* The escape hatch for an instant that round-trips through untyped storage:
|
|
41
|
+
* captured from {@link Store.recordedNow}, persisted as a plain string, read
|
|
42
|
+
* back, and replayed into `asOfRecorded`. Validates the canonical form eagerly —
|
|
43
|
+
* the same check `asOfRecorded` applies — so a malformed value fails here, at the
|
|
44
|
+
* brand site, rather than deeper in a read. Does *not* assert the instant is a
|
|
45
|
+
* real captured commit; it only guarantees the value is well-formed enough to
|
|
46
|
+
* compare correctly against the recorded relations.
|
|
47
|
+
*
|
|
48
|
+
* @throws {ValidationError} when `value` is not a canonical versioned anchor.
|
|
49
|
+
*/
|
|
50
|
+
declare function asRecordedInstant(value: string): RecordedInstant;
|
|
51
|
+
/**
|
|
52
|
+
* The single opaque temporal coordinate every pinned read is resolved
|
|
53
|
+
* against. It carries the valid-time axis plus an optional recorded/system-time
|
|
54
|
+
* axis, so every surface can inject one coordinate object instead of threading
|
|
55
|
+
* each temporal dimension separately.
|
|
56
|
+
*/
|
|
57
|
+
type ReadCoordinate = Readonly<{
|
|
58
|
+
/**
|
|
59
|
+
* The valid-time axis: a resolved temporal mode and (only for `"asOf"`) the
|
|
60
|
+
* instant it is pinned to.
|
|
61
|
+
*/
|
|
62
|
+
valid: Readonly<{
|
|
63
|
+
mode: TemporalMode;
|
|
64
|
+
/** Defined only when `mode` is `"asOf"`. */
|
|
65
|
+
asOf?: string;
|
|
66
|
+
}>;
|
|
67
|
+
/** The recorded/system-time axis. Defined only for recorded-pinned views. */
|
|
68
|
+
recorded?: Readonly<{
|
|
69
|
+
asOf: RecordedInstant;
|
|
70
|
+
}>;
|
|
71
|
+
}>;
|
|
72
|
+
|
|
73
|
+
export { type RecordedInstant as R, asRecordedInstant as a, recordedInstantWallTime as b, compareRecordedInstants as c, type ReadCoordinate as d, recordedInstantRevision as r };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AnyEdgeType, a as NodeType } from './extension-types-BLEVH4SG.cjs';
|
|
2
|
-
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './
|
|
2
|
+
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './types-C5pZeKTl.cjs';
|
|
3
3
|
|
|
4
4
|
/** The TypeGraph relations that carry system indexes. */
|
|
5
5
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AnyEdgeType, a as NodeType } from './extension-types-BLEVH4SG.js';
|
|
2
|
-
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './
|
|
2
|
+
import { a as EdgeIndexConfig, E as EdgeIndexDeclaration, i as NodeIndexConfig, N as NodeIndexDeclaration, f as IndexWhereExpression } from './types-D8szWDUo.js';
|
|
3
3
|
|
|
4
4
|
/** The TypeGraph relations that carry system indexes. */
|
|
5
5
|
type SystemIndexTable = "nodes" | "edges" | "recordedNodes" | "recordedEdges";
|