@noy-db/hub 0.2.0-pre.12 → 0.2.0-pre.14
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/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +2 -2
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +3 -3
- package/dist/attestation/index.d.ts +3 -3
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +4 -4
- package/dist/blobs/index.d.ts +4 -4
- package/dist/blobs/index.js +5 -5
- package/dist/bundle/index.cjs +683 -39
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +5 -5
- package/dist/bundle/index.d.ts +5 -5
- package/dist/bundle/index.js +9 -9
- package/dist/{chunk-OPDTLHFA.js → chunk-3EWA37FV.js} +2 -2
- package/dist/{chunk-ZCFS7U4J.js → chunk-4PEFEETV.js} +2 -2
- package/dist/{chunk-ZC7MNVYN.js → chunk-4TBBMHVC.js} +2 -2
- package/dist/{chunk-AGRC7NQQ.js → chunk-535SSHBS.js} +33 -1
- package/dist/chunk-535SSHBS.js.map +1 -0
- package/dist/{chunk-SJJQKNMP.js → chunk-56DJ7JVK.js} +4 -4
- package/dist/{chunk-C2CIIQRG.js → chunk-5LQG6ZO2.js} +2 -2
- package/dist/{chunk-6AD5TBF2.js → chunk-6AJBSQU4.js} +3 -3
- package/dist/{chunk-LWSD4QPT.js → chunk-6RR3MNMG.js} +3 -3
- package/dist/{chunk-O53RIZCC.js → chunk-7HT2MEZ5.js} +5 -5
- package/dist/{chunk-7LVRIW4G.js → chunk-7PS7EOCF.js} +4 -4
- package/dist/{chunk-GFPR7VJS.js → chunk-A5ZOOZFB.js} +4 -4
- package/dist/{chunk-B7GGYNKQ.js → chunk-AAVWKNZW.js} +2 -2
- package/dist/{chunk-TMHJEYW7.js → chunk-ACKFRSAH.js} +302 -137
- package/dist/chunk-ACKFRSAH.js.map +1 -0
- package/dist/{chunk-SZ4N3IL5.js → chunk-BIYRQQV6.js} +5 -5
- package/dist/{chunk-CILT6V3V.js → chunk-BQ65SS5A.js} +2 -2
- package/dist/{chunk-DLTU4M2I.js → chunk-COFPAMX6.js} +6 -6
- package/dist/{chunk-UA6G45ME.js → chunk-DKO2QFSA.js} +3 -3
- package/dist/{chunk-L6BYRCYB.js → chunk-DQU36Q7I.js} +2 -2
- package/dist/{chunk-VOXMU6LB.js → chunk-EGD5DXFT.js} +2 -2
- package/dist/{chunk-BXOUVUES.js → chunk-F4OJZIWQ.js} +4 -4
- package/dist/{chunk-P3Z5Y2TS.js → chunk-FWPKCXTN.js} +2 -2
- package/dist/{chunk-LYNNZEQD.js → chunk-GC4V7RU7.js} +1 -1
- package/dist/chunk-GC4V7RU7.js.map +1 -0
- package/dist/{chunk-6BYBVRZU.js → chunk-HOR4R722.js} +3 -3
- package/dist/{chunk-XSIFXX54.js → chunk-JD3OZAI4.js} +2 -2
- package/dist/{chunk-UOC7JMZO.js → chunk-KGCORI4L.js} +135 -10
- package/dist/chunk-KGCORI4L.js.map +1 -0
- package/dist/{chunk-RRDWXNBQ.js → chunk-KI6HAJWL.js} +3 -3
- package/dist/{chunk-LSEW3ZZ2.js → chunk-L2FE64BU.js} +3 -3
- package/dist/{chunk-HBAJDI2N.js → chunk-LX3CB26H.js} +5 -5
- package/dist/{chunk-LOA2VCMS.js → chunk-NSCVNK5K.js} +5 -5
- package/dist/{chunk-4BHFNKTP.js → chunk-OHVFWCJP.js} +2 -2
- package/dist/{chunk-7JJE3OMJ.js → chunk-PE4AQGFH.js} +5 -5
- package/dist/{chunk-RHQYVHFH.js → chunk-TS26M2SB.js} +2 -2
- package/dist/{chunk-EKNUBIIQ.js → chunk-UWNYBOOO.js} +4 -4
- package/dist/{chunk-WNRGOVLG.js → chunk-VU7SWWT5.js} +2 -2
- package/dist/{chunk-WUG3E423.js → chunk-WBAYSNUQ.js} +4 -4
- package/dist/{chunk-XHM2SARW.js → chunk-WGHU7BLI.js} +3 -3
- package/dist/{chunk-5ARRXIVR.js → chunk-X73VS74Y.js} +2 -2
- package/dist/{chunk-M45IRXDM.js → chunk-YHPM5D7Y.js} +3 -3
- package/dist/{chunk-P4EDT5ZP.js → chunk-YNTBADIY.js} +2 -2
- package/dist/{chunk-IUBHXEPJ.js → chunk-YULZKK4F.js} +2 -2
- package/dist/{chunk-IEPT7HVP.js → chunk-Z4DO7YSI.js} +2 -2
- package/dist/chunk-ZC7J6ZYV.js +7 -0
- package/dist/chunk-ZC7J6ZYV.js.map +1 -0
- package/dist/{chunk-HLGDYFWR.js → chunk-ZNQYHJXX.js} +2 -2
- package/dist/{chunk-CHBXWJZQ.js → chunk-ZWTNWAO4.js} +2 -2
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +4 -4
- package/dist/consent/index.d.ts +4 -4
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-AJB72OKN.js → crypto-QXQOHMHF.js} +3 -3
- package/dist/{delegation-6FCWDRUS.js → delegation-NIQ43IPU.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +5 -5
- package/dist/derivations/index.d.ts +5 -5
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-ckqa_Nso.d.cts → dev-unlock-BF4OSxRv.d.cts} +1 -1
- package/dist/{dev-unlock-D3mpVFRc.d.ts → dev-unlock-DV7ujTCI.d.ts} +1 -1
- package/dist/executor-6ZDSDZ6V.js +8 -0
- package/dist/executor-723ZP6TH.js +11 -0
- package/dist/executor-IDZDAFNH.js +8 -0
- package/dist/{fanout-sidecar-ZSKEQ6NI.js → fanout-sidecar-N6OJX6QR.js} +2 -2
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +5 -5
- package/dist/guards/index.d.ts +5 -5
- package/dist/guards/index.js +3 -3
- package/dist/{hash-rDSSd_oW.d.cts → hash-BcF5WQXl.d.cts} +1 -1
- package/dist/{hash-CTZVkXLx.d.ts → hash-DswxkLtW.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +5 -5
- package/dist/history/index.d.ts +5 -5
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +4 -4
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/index.js +6 -6
- package/dist/{immutable-guard-C51vAHuh.d.cts → immutable-guard-7KqslW2K.d.cts} +1 -1
- package/dist/{immutable-guard-DyD0qg2k.d.ts → immutable-guard-C8IYdzfu.d.ts} +1 -1
- package/dist/{index-Cmop06zJ.d.cts → index-CUVOMtgg.d.cts} +28 -2
- package/dist/{index-CkFHr4OP.d.ts → index-Cqzp4tt9.d.ts} +28 -2
- package/dist/index.cjs +699 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -13
- package/dist/index.d.ts +22 -13
- package/dist/index.js +59 -40
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-ADVS4OVP.js +12 -0
- package/dist/{ledger-5JMVF7PY.js → ledger-CWSE3BLF.js} +5 -5
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +5 -5
- package/dist/materialized-views/index.d.ts +5 -5
- package/dist/materialized-views/index.js +6 -6
- package/dist/noydb-VZ4JVW55.js +35 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +5 -5
- package/dist/overlay-views/index.d.ts +5 -5
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +4 -4
- package/dist/periods/index.d.ts +4 -4
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-PFLZI5MO.js → public-envelope-SYHEYQ3X.js} +4 -4
- package/dist/query/index.cjs +89 -7
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +3 -3
- package/dist/{registry-NCY445U5.js → registry-DK5YWAAA.js} +3 -3
- package/dist/registry-IUZQVVBB.js +8 -0
- package/dist/registry-XGLNADIE.js +8 -0
- package/dist/{revoke-7RLGQWZ7.js → revoke-ZDFKMR5E.js} +6 -6
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +5 -5
- package/dist/session/index.d.ts +5 -5
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +4 -4
- package/dist/shadow/index.d.ts +4 -4
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-6JF44I4A.js → signer-P5D7Y72U.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +4 -4
- package/dist/snapshots/index.d.ts +4 -4
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-UBLP3RJ3.js → stale-7FRJVHN6.js} +2 -2
- package/dist/state-vault-TMXZRTY5.js +147 -0
- package/dist/state-vault-TMXZRTY5.js.map +1 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +4 -4
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +2 -2
- package/dist/{strategy-rtpKDfTC.d.ts → strategy-CrS7PnbE.d.cts} +20 -1
- package/dist/{strategy-rtpKDfTC.d.cts → strategy-CrS7PnbE.d.ts} +20 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +3 -3
- package/dist/sync/index.d.ts +3 -3
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +4 -4
- package/dist/team/index.d.ts +4 -4
- package/dist/team/index.js +8 -8
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +4 -4
- package/dist/tx/index.d.ts +4 -4
- package/dist/tx/index.js +3 -3
- package/dist/{types-DRdfwgTG.d.ts → types-BFHQUjdy.d.ts} +341 -90
- package/dist/{types-BGwjsDef.d.cts → types-V5R2-pd4.d.cts} +341 -90
- package/dist/{ulid-D4d0Xto3.d.cts → ulid-CwNf9e6-.d.cts} +1 -1
- package/dist/{ulid-DOTPZ5_h.d.ts → ulid-p2nKiiKg.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-Z4KB75ZH.js → vault-group-W7QC4UYW.js} +175 -18
- package/dist/vault-group-W7QC4UYW.js.map +1 -0
- package/dist/{with-derivation-CB1EdcFF.d.cts → with-derivation-C9K43BOB.d.cts} +1 -1
- package/dist/{with-derivation-B082Y_WQ.d.ts → with-derivation-Ds9yZgCj.d.ts} +1 -1
- package/dist/{with-materialized-view-CzRg1Dpr.d.cts → with-materialized-view-DgQcAjYv.d.cts} +1 -1
- package/dist/{with-materialized-view-Dw4SwjKl.d.ts → with-materialized-view-DwR4jkV5.d.ts} +1 -1
- package/dist/{with-overlayed-view-C9YFKXzn.d.cts → with-overlayed-view-7-rUB3vD.d.cts} +1 -1
- package/dist/{with-overlayed-view-CaCXeW26.d.ts → with-overlayed-view-ByyhHdVr.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-AGRC7NQQ.js.map +0 -1
- package/dist/chunk-LYNNZEQD.js.map +0 -1
- package/dist/chunk-TMHJEYW7.js.map +0 -1
- package/dist/chunk-UOC7JMZO.js.map +0 -1
- package/dist/executor-7KSCEIFA.js +0 -8
- package/dist/executor-D2QMNGRJ.js +0 -8
- package/dist/executor-O5AZK7UW.js +0 -11
- package/dist/issue-YIYG4OW5.js +0 -12
- package/dist/noydb-D5SLAJ6V.js +0 -34
- package/dist/registry-BVQ5ITMF.js +0 -8
- package/dist/registry-JLP3QOLD.js +0 -8
- package/dist/vault-group-Z4KB75ZH.js.map +0 -1
- /package/dist/{chunk-OPDTLHFA.js.map → chunk-3EWA37FV.js.map} +0 -0
- /package/dist/{chunk-ZCFS7U4J.js.map → chunk-4PEFEETV.js.map} +0 -0
- /package/dist/{chunk-ZC7MNVYN.js.map → chunk-4TBBMHVC.js.map} +0 -0
- /package/dist/{chunk-SJJQKNMP.js.map → chunk-56DJ7JVK.js.map} +0 -0
- /package/dist/{chunk-C2CIIQRG.js.map → chunk-5LQG6ZO2.js.map} +0 -0
- /package/dist/{chunk-6AD5TBF2.js.map → chunk-6AJBSQU4.js.map} +0 -0
- /package/dist/{chunk-LWSD4QPT.js.map → chunk-6RR3MNMG.js.map} +0 -0
- /package/dist/{chunk-O53RIZCC.js.map → chunk-7HT2MEZ5.js.map} +0 -0
- /package/dist/{chunk-7LVRIW4G.js.map → chunk-7PS7EOCF.js.map} +0 -0
- /package/dist/{chunk-GFPR7VJS.js.map → chunk-A5ZOOZFB.js.map} +0 -0
- /package/dist/{chunk-B7GGYNKQ.js.map → chunk-AAVWKNZW.js.map} +0 -0
- /package/dist/{chunk-SZ4N3IL5.js.map → chunk-BIYRQQV6.js.map} +0 -0
- /package/dist/{chunk-CILT6V3V.js.map → chunk-BQ65SS5A.js.map} +0 -0
- /package/dist/{chunk-DLTU4M2I.js.map → chunk-COFPAMX6.js.map} +0 -0
- /package/dist/{chunk-UA6G45ME.js.map → chunk-DKO2QFSA.js.map} +0 -0
- /package/dist/{chunk-L6BYRCYB.js.map → chunk-DQU36Q7I.js.map} +0 -0
- /package/dist/{chunk-VOXMU6LB.js.map → chunk-EGD5DXFT.js.map} +0 -0
- /package/dist/{chunk-BXOUVUES.js.map → chunk-F4OJZIWQ.js.map} +0 -0
- /package/dist/{chunk-P3Z5Y2TS.js.map → chunk-FWPKCXTN.js.map} +0 -0
- /package/dist/{chunk-6BYBVRZU.js.map → chunk-HOR4R722.js.map} +0 -0
- /package/dist/{chunk-XSIFXX54.js.map → chunk-JD3OZAI4.js.map} +0 -0
- /package/dist/{chunk-RRDWXNBQ.js.map → chunk-KI6HAJWL.js.map} +0 -0
- /package/dist/{chunk-LSEW3ZZ2.js.map → chunk-L2FE64BU.js.map} +0 -0
- /package/dist/{chunk-HBAJDI2N.js.map → chunk-LX3CB26H.js.map} +0 -0
- /package/dist/{chunk-LOA2VCMS.js.map → chunk-NSCVNK5K.js.map} +0 -0
- /package/dist/{chunk-4BHFNKTP.js.map → chunk-OHVFWCJP.js.map} +0 -0
- /package/dist/{chunk-7JJE3OMJ.js.map → chunk-PE4AQGFH.js.map} +0 -0
- /package/dist/{chunk-RHQYVHFH.js.map → chunk-TS26M2SB.js.map} +0 -0
- /package/dist/{chunk-EKNUBIIQ.js.map → chunk-UWNYBOOO.js.map} +0 -0
- /package/dist/{chunk-WNRGOVLG.js.map → chunk-VU7SWWT5.js.map} +0 -0
- /package/dist/{chunk-WUG3E423.js.map → chunk-WBAYSNUQ.js.map} +0 -0
- /package/dist/{chunk-XHM2SARW.js.map → chunk-WGHU7BLI.js.map} +0 -0
- /package/dist/{chunk-5ARRXIVR.js.map → chunk-X73VS74Y.js.map} +0 -0
- /package/dist/{chunk-M45IRXDM.js.map → chunk-YHPM5D7Y.js.map} +0 -0
- /package/dist/{chunk-P4EDT5ZP.js.map → chunk-YNTBADIY.js.map} +0 -0
- /package/dist/{chunk-IUBHXEPJ.js.map → chunk-YULZKK4F.js.map} +0 -0
- /package/dist/{chunk-IEPT7HVP.js.map → chunk-Z4DO7YSI.js.map} +0 -0
- /package/dist/{chunk-HLGDYFWR.js.map → chunk-ZNQYHJXX.js.map} +0 -0
- /package/dist/{chunk-CHBXWJZQ.js.map → chunk-ZWTNWAO4.js.map} +0 -0
- /package/dist/{crypto-AJB72OKN.js.map → crypto-QXQOHMHF.js.map} +0 -0
- /package/dist/{delegation-6FCWDRUS.js.map → delegation-NIQ43IPU.js.map} +0 -0
- /package/dist/{executor-7KSCEIFA.js.map → executor-6ZDSDZ6V.js.map} +0 -0
- /package/dist/{executor-D2QMNGRJ.js.map → executor-723ZP6TH.js.map} +0 -0
- /package/dist/{executor-O5AZK7UW.js.map → executor-IDZDAFNH.js.map} +0 -0
- /package/dist/{fanout-sidecar-ZSKEQ6NI.js.map → fanout-sidecar-N6OJX6QR.js.map} +0 -0
- /package/dist/{issue-YIYG4OW5.js.map → issue-ADVS4OVP.js.map} +0 -0
- /package/dist/{ledger-5JMVF7PY.js.map → ledger-CWSE3BLF.js.map} +0 -0
- /package/dist/{noydb-D5SLAJ6V.js.map → noydb-VZ4JVW55.js.map} +0 -0
- /package/dist/{public-envelope-PFLZI5MO.js.map → public-envelope-SYHEYQ3X.js.map} +0 -0
- /package/dist/{registry-BVQ5ITMF.js.map → registry-DK5YWAAA.js.map} +0 -0
- /package/dist/{registry-JLP3QOLD.js.map → registry-IUZQVVBB.js.map} +0 -0
- /package/dist/{registry-NCY445U5.js.map → registry-XGLNADIE.js.map} +0 -0
- /package/dist/{revoke-7RLGQWZ7.js.map → revoke-ZDFKMR5E.js.map} +0 -0
- /package/dist/{signer-6JF44I4A.js.map → signer-P5D7Y72U.js.map} +0 -0
- /package/dist/{stale-UBLP3RJ3.js.map → stale-7FRJVHN6.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-Ci5_YG73.cjs';
|
|
2
|
-
import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, au as MoneyDescriptor } from './strategy-
|
|
2
|
+
import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, au as MoneyDescriptor } from './strategy-CrS7PnbE.cjs';
|
|
3
3
|
import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.cjs';
|
|
4
|
-
import { L as LiveQuery, Q as Query, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-
|
|
5
|
-
import {
|
|
4
|
+
import { L as LiveQuery, Q as Query, c as JoinStrategy, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-CUVOMtgg.cjs';
|
|
5
|
+
import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-Bt5ft-9c.cjs';
|
|
6
6
|
import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -140,6 +140,34 @@ declare function validateSchemaInput<Output>(schema: StandardSchemaV1<unknown, O
|
|
|
140
140
|
*/
|
|
141
141
|
declare function validateSchemaOutput<Output>(schema: StandardSchemaV1<unknown, Output>, value: unknown, context: string): Promise<Output>;
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* @category capability
|
|
145
|
+
* Deferred-numbering config descriptor. See
|
|
146
|
+
* docs/superpowers/specs/2026-06-08-sealed-numbering-and-store-clock-design.md.
|
|
147
|
+
*/
|
|
148
|
+
/** A registered deferred-numbering series. */
|
|
149
|
+
interface DeferredNumberingConfig {
|
|
150
|
+
/** Series name — the key passed to `vault.sequence(series)`. */
|
|
151
|
+
readonly series: string;
|
|
152
|
+
/** Collection holding the records to number. */
|
|
153
|
+
readonly collection: string;
|
|
154
|
+
/** Field on each record where the assigned serial is written. */
|
|
155
|
+
readonly field: string;
|
|
156
|
+
/**
|
|
157
|
+
* Minimum wall-clock age (ms) before an entry is eligible at a pass, in
|
|
158
|
+
* addition to the interval commit-wait. Default 0 — the store-clock
|
|
159
|
+
* interval (`storeLatest ≤ now.earliest`) is the correctness mechanism.
|
|
160
|
+
*/
|
|
161
|
+
readonly settleWindowMs: number;
|
|
162
|
+
}
|
|
163
|
+
/** Declare a deferred-numbering series. Pass the result in `createNoydb({ numbering: [...] })`. */
|
|
164
|
+
declare function withDeferredNumbering(config: {
|
|
165
|
+
series: string;
|
|
166
|
+
collection: string;
|
|
167
|
+
field: string;
|
|
168
|
+
settleWindowMs?: number;
|
|
169
|
+
}): DeferredNumberingConfig;
|
|
170
|
+
|
|
143
171
|
/**
|
|
144
172
|
* Sync scheduling policy.
|
|
145
173
|
*
|
|
@@ -3708,6 +3736,170 @@ declare class SyncEngine {
|
|
|
3708
3736
|
private persistMeta;
|
|
3709
3737
|
}
|
|
3710
3738
|
|
|
3739
|
+
/**
|
|
3740
|
+
* @category capability
|
|
3741
|
+
* Multi-vault partition federation (MVF) — public types for VaultGroup
|
|
3742
|
+
* transparent shard routing. See
|
|
3743
|
+
* docs/superpowers/specs/2026-06-07-mvf-vaultgroup-routing-mvp-design.md.
|
|
3744
|
+
*/
|
|
3745
|
+
|
|
3746
|
+
/**
|
|
3747
|
+
* A schema blueprint for a class of shard vaults. `configure` is
|
|
3748
|
+
* re-applied to every shard handle so all shards are configured
|
|
3749
|
+
* identically (collections, indexes, schemas). `version` is recorded
|
|
3750
|
+
* into each shard's registry row and drives the fan-out
|
|
3751
|
+
* `minVersion` guard.
|
|
3752
|
+
*/
|
|
3753
|
+
interface VaultTemplate {
|
|
3754
|
+
readonly version: number;
|
|
3755
|
+
readonly configure: (vault: Vault) => void;
|
|
3756
|
+
}
|
|
3757
|
+
/** One row in the StateManagement `vault-registry` collection. */
|
|
3758
|
+
interface VaultRegistryRow {
|
|
3759
|
+
readonly vaultId: string;
|
|
3760
|
+
readonly partitionKey: string;
|
|
3761
|
+
readonly templateName: string;
|
|
3762
|
+
readonly schemaVersion: number;
|
|
3763
|
+
readonly createdAt: number;
|
|
3764
|
+
/** Which VaultGroup this shard belongs to (registry is shared across groups). */
|
|
3765
|
+
readonly group: string;
|
|
3766
|
+
}
|
|
3767
|
+
/** How a VaultGroup maps records to shards. */
|
|
3768
|
+
interface ShardingConfig<T> {
|
|
3769
|
+
/** Extract the partition key from a record. */
|
|
3770
|
+
readonly keyOf: (record: T) => string;
|
|
3771
|
+
/** Name of the template (registered via `withVaultTemplate`) shards are stamped from. */
|
|
3772
|
+
readonly vaultTemplate: string;
|
|
3773
|
+
/** When a write targets an unknown partition key, stamp a shard inline. Default `true`. */
|
|
3774
|
+
readonly autoCreate?: boolean;
|
|
3775
|
+
}
|
|
3776
|
+
/** Options for `Noydb.openVaultGroup`. */
|
|
3777
|
+
interface VaultGroupOptions<T> {
|
|
3778
|
+
/**
|
|
3779
|
+
* The `vault-registry` collection (source of truth for shard discovery).
|
|
3780
|
+
* Optional: when omitted, the reserved StateManagement vault's registry
|
|
3781
|
+
* is auto-opened and used.
|
|
3782
|
+
*/
|
|
3783
|
+
readonly registry?: Collection<VaultRegistryRow>;
|
|
3784
|
+
readonly sharding: ShardingConfig<T>;
|
|
3785
|
+
}
|
|
3786
|
+
/** Options for a cross-shard fan-out read. */
|
|
3787
|
+
interface FanoutQueryOptions {
|
|
3788
|
+
/** Skip shards whose registry `schemaVersion` is below this. */
|
|
3789
|
+
readonly minVersion?: number;
|
|
3790
|
+
/** Max shards queried in parallel (passed to queryAcross). Default 1. */
|
|
3791
|
+
readonly concurrency?: number;
|
|
3792
|
+
}
|
|
3793
|
+
/** A shard excluded from a fan-out result, with the reason. */
|
|
3794
|
+
interface SkippedVault {
|
|
3795
|
+
readonly vaultId: string;
|
|
3796
|
+
readonly reason: 'schema-drift' | 'error' | 'no-grant';
|
|
3797
|
+
readonly error?: Error;
|
|
3798
|
+
}
|
|
3799
|
+
/** The result of a cross-shard fan-out read. */
|
|
3800
|
+
interface FanoutResult<R> {
|
|
3801
|
+
readonly results: R[];
|
|
3802
|
+
readonly skippedVaults: SkippedVault[];
|
|
3803
|
+
}
|
|
3804
|
+
/** A single captured where-clause, replayed inside each shard. */
|
|
3805
|
+
interface WhereClause {
|
|
3806
|
+
readonly field: string;
|
|
3807
|
+
readonly op: Operator;
|
|
3808
|
+
readonly value: unknown;
|
|
3809
|
+
}
|
|
3810
|
+
/** Options for the live/aggregate fan-out (extends the one-shot opts). */
|
|
3811
|
+
interface LiveQueryOptions extends FanoutQueryOptions {
|
|
3812
|
+
/** Coalesce window before recompute. Default 0 (microtask). */
|
|
3813
|
+
readonly debounceMs?: number;
|
|
3814
|
+
}
|
|
3815
|
+
/** A grouped aggregate output row: the grouped field + the reduced spec result. */
|
|
3816
|
+
type GroupedRow<F extends string, Spec extends AggregateSpec> = {
|
|
3817
|
+
readonly [K in F]: unknown;
|
|
3818
|
+
} & AggregateResult<Spec>;
|
|
3819
|
+
/** Reactive cross-shard record (or grouped-row) query — array-shaped, mirrors LiveQuery<T>. */
|
|
3820
|
+
interface CrossVaultLiveQuery<T> extends LiveQuery<T> {
|
|
3821
|
+
readonly skippedVaults: readonly SkippedVault[];
|
|
3822
|
+
readonly ready: Promise<void>;
|
|
3823
|
+
}
|
|
3824
|
+
/** Reactive cross-shard scalar aggregate — mirrors LiveAggregation<R>. */
|
|
3825
|
+
interface CrossVaultLiveAggregation<R> extends LiveAggregation<R> {
|
|
3826
|
+
readonly skippedVaults: readonly SkippedVault[];
|
|
3827
|
+
readonly ready: Promise<void>;
|
|
3828
|
+
}
|
|
3829
|
+
/** A serializable blueprint captured from a VaultTemplate.configure run. */
|
|
3830
|
+
interface CapturedBlueprint {
|
|
3831
|
+
/** Sorted collection names declared by the template. */
|
|
3832
|
+
readonly collections: string[];
|
|
3833
|
+
/** Per-collection index defs (key order canonicalized). */
|
|
3834
|
+
readonly indexes: Record<string, IndexDef[]>;
|
|
3835
|
+
/** Collections that declared `persistJsonSchema: true`. */
|
|
3836
|
+
readonly persistJsonSchema: string[];
|
|
3837
|
+
}
|
|
3838
|
+
/** One row in the StateManagement `schema-manifest` collection, keyed by `${templateName}:${version}`. */
|
|
3839
|
+
interface SchemaManifestRow {
|
|
3840
|
+
readonly templateName: string;
|
|
3841
|
+
readonly version: number;
|
|
3842
|
+
readonly collections: string[];
|
|
3843
|
+
readonly indexes: Record<string, IndexDef[]>;
|
|
3844
|
+
readonly persistJsonSchema: string[];
|
|
3845
|
+
/** sha256 over the canonicalized serializable blueprint. */
|
|
3846
|
+
readonly fingerprint: string;
|
|
3847
|
+
readonly recordedAt: number;
|
|
3848
|
+
}
|
|
3849
|
+
/** One row in the append-only StateManagement `deployment-events` collection. */
|
|
3850
|
+
interface DeploymentEvent {
|
|
3851
|
+
readonly id: string;
|
|
3852
|
+
readonly ts: number;
|
|
3853
|
+
readonly type: 'shard-created' | 'manifest-recorded' | 'group-opened';
|
|
3854
|
+
readonly group: string;
|
|
3855
|
+
readonly vaultId?: string;
|
|
3856
|
+
readonly templateName?: string;
|
|
3857
|
+
readonly version?: number;
|
|
3858
|
+
readonly actor?: string;
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
/**
|
|
3862
|
+
* @category capability
|
|
3863
|
+
* StateManagement Vault — federation control plane (registry +
|
|
3864
|
+
* schema-manifest + append-only deployment-events). See
|
|
3865
|
+
* docs/superpowers/specs/2026-06-08-statemanagement-vault-design.md.
|
|
3866
|
+
*/
|
|
3867
|
+
|
|
3868
|
+
declare class StateManagementVault {
|
|
3869
|
+
#private;
|
|
3870
|
+
readonly registry: Collection<VaultRegistryRow>;
|
|
3871
|
+
readonly schemaManifest: Collection<SchemaManifestRow>;
|
|
3872
|
+
private constructor();
|
|
3873
|
+
/** Idempotently open the reserved state vault and bind the three control-plane collections. */
|
|
3874
|
+
static open(db: Noydb): Promise<StateManagementVault>;
|
|
3875
|
+
/** Read-only query over the append-only deployment-events log. */
|
|
3876
|
+
queryEvents(): Query<DeploymentEvent>;
|
|
3877
|
+
/**
|
|
3878
|
+
* Append a deployment event with a fresh unique (ULID) id. This is the
|
|
3879
|
+
* only write path to the events log; no update/delete is exposed.
|
|
3880
|
+
* Callers should treat failures as non-fatal — this method does not
|
|
3881
|
+
* swallow errors, so wrap the call site in try/catch where appropriate.
|
|
3882
|
+
*/
|
|
3883
|
+
appendEvent(event: Omit<DeploymentEvent, 'id' | 'ts'> & {
|
|
3884
|
+
ts?: number;
|
|
3885
|
+
}): Promise<void>;
|
|
3886
|
+
/**
|
|
3887
|
+
* Ensure a manifest row exists for `(templateName, template.version)`.
|
|
3888
|
+
* Safe to call repeatedly: the `fingerprint` is a deterministic hash of
|
|
3889
|
+
* the template's declared shape (stable across calls), though each call
|
|
3890
|
+
* refreshes `recordedAt`.
|
|
3891
|
+
*/
|
|
3892
|
+
recordManifest(templateName: string, template: VaultTemplate): Promise<string>;
|
|
3893
|
+
/**
|
|
3894
|
+
* True when `template`'s current declared shape does not match the recorded
|
|
3895
|
+
* manifest for `(templateName, template.version)`. Because shards carry no
|
|
3896
|
+
* schema state independent of their template, this catches "a template's
|
|
3897
|
+
* shape changed without bumping `version`" — not independent per-shard drift.
|
|
3898
|
+
* A missing manifest is treated as drift (nothing to verify against).
|
|
3899
|
+
*/
|
|
3900
|
+
detectDrift(templateName: string, template: VaultTemplate): Promise<boolean>;
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3711
3903
|
/**
|
|
3712
3904
|
* **Wrap-DEKs primitive** — a single canonical shape for the
|
|
3713
3905
|
* pattern of "serialize a DEK set, encrypt it under a credential-derived
|
|
@@ -5080,89 +5272,49 @@ interface FactorProofBundle {
|
|
|
5080
5272
|
/** Active session tier — what the engine compares against `gate.minTier`. */
|
|
5081
5273
|
type ActiveTier = 1 | 2 | 3;
|
|
5082
5274
|
|
|
5083
|
-
/**
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
*
|
|
5094
|
-
*
|
|
5095
|
-
*
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
}
|
|
5101
|
-
/**
|
|
5102
|
-
interface
|
|
5103
|
-
|
|
5104
|
-
readonly
|
|
5105
|
-
|
|
5106
|
-
readonly
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
/**
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
readonly vaultTemplate: string;
|
|
5115
|
-
/** When a write targets an unknown partition key, stamp a shard inline. Default `true`. */
|
|
5116
|
-
readonly autoCreate?: boolean;
|
|
5117
|
-
}
|
|
5118
|
-
/** Options for `Noydb.openVaultGroup`. */
|
|
5119
|
-
interface VaultGroupOptions<T> {
|
|
5120
|
-
/** The `vault-registry` collection (source of truth for shard discovery). */
|
|
5121
|
-
readonly registry: Collection<VaultRegistryRow>;
|
|
5122
|
-
readonly sharding: ShardingConfig<T>;
|
|
5123
|
-
}
|
|
5124
|
-
/** Options for a cross-shard fan-out read. */
|
|
5125
|
-
interface FanoutQueryOptions {
|
|
5126
|
-
/** Skip shards whose registry `schemaVersion` is below this. */
|
|
5127
|
-
readonly minVersion?: number;
|
|
5128
|
-
/** Max shards queried in parallel (passed to queryAcross). Default 1. */
|
|
5129
|
-
readonly concurrency?: number;
|
|
5130
|
-
}
|
|
5131
|
-
/** A shard excluded from a fan-out result, with the reason. */
|
|
5132
|
-
interface SkippedVault {
|
|
5133
|
-
readonly vaultId: string;
|
|
5134
|
-
readonly reason: 'schema-drift' | 'error' | 'no-grant';
|
|
5135
|
-
readonly error?: Error;
|
|
5136
|
-
}
|
|
5137
|
-
/** The result of a cross-shard fan-out read. */
|
|
5138
|
-
interface FanoutResult<R> {
|
|
5139
|
-
readonly results: R[];
|
|
5140
|
-
readonly skippedVaults: SkippedVault[];
|
|
5141
|
-
}
|
|
5142
|
-
/** A single captured where-clause, replayed inside each shard. */
|
|
5143
|
-
interface WhereClause {
|
|
5275
|
+
/** Public options for `ShardedQuery.crossShardJoin`. */
|
|
5276
|
+
interface CrossShardJoinOptions {
|
|
5277
|
+
/** Alias key under which the joined same-shard record attaches. */
|
|
5278
|
+
readonly as: string;
|
|
5279
|
+
/** Per-shard row ceiling override (default DEFAULT_JOIN_MAX_ROWS). */
|
|
5280
|
+
readonly maxRows?: number;
|
|
5281
|
+
/** Planner strategy override, passed through to intra-vault `.join()`. */
|
|
5282
|
+
readonly strategy?: JoinStrategy;
|
|
5283
|
+
}
|
|
5284
|
+
/**
|
|
5285
|
+
* Minimal structural shape of a broadcast dimension source. A
|
|
5286
|
+
* `Collection` satisfies this natively: `list()` hydrates and returns
|
|
5287
|
+
* the decoded records. Kept as a one-method interface so plain test
|
|
5288
|
+
* sources are trivial to construct.
|
|
5289
|
+
*/
|
|
5290
|
+
interface BroadcastSource {
|
|
5291
|
+
list(): Promise<readonly unknown[]>;
|
|
5292
|
+
}
|
|
5293
|
+
/** Public options for `ShardedQuery.broadcastJoin`. */
|
|
5294
|
+
interface BroadcastJoinOptions {
|
|
5295
|
+
/** Alias key under which the dimension record attaches. */
|
|
5296
|
+
readonly as: string;
|
|
5297
|
+
/** The shared dimension collection (an opened handle in another vault). */
|
|
5298
|
+
readonly from: BroadcastSource;
|
|
5299
|
+
/** Right-side key to match `field` against. Default 'id'. */
|
|
5300
|
+
readonly on?: string;
|
|
5301
|
+
/** Miss behavior. 'warn' (default) attaches null + one-shot warning; 'cascade' is silent. */
|
|
5302
|
+
readonly mode?: 'warn' | 'cascade';
|
|
5303
|
+
}
|
|
5304
|
+
/** Internal co-partitioned leg carried on ShardedQuery. */
|
|
5305
|
+
interface CoPartitionedLeg {
|
|
5144
5306
|
readonly field: string;
|
|
5145
|
-
readonly
|
|
5146
|
-
readonly
|
|
5147
|
-
|
|
5148
|
-
/** Options for the live/aggregate fan-out (extends the one-shot opts). */
|
|
5149
|
-
interface LiveQueryOptions extends FanoutQueryOptions {
|
|
5150
|
-
/** Coalesce window before recompute. Default 0 (microtask). */
|
|
5151
|
-
readonly debounceMs?: number;
|
|
5307
|
+
readonly as: string;
|
|
5308
|
+
readonly maxRows: number | undefined;
|
|
5309
|
+
readonly strategy: JoinStrategy | undefined;
|
|
5152
5310
|
}
|
|
5153
|
-
/**
|
|
5154
|
-
|
|
5155
|
-
readonly
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
readonly
|
|
5160
|
-
readonly ready: Promise<void>;
|
|
5161
|
-
}
|
|
5162
|
-
/** Reactive cross-shard scalar aggregate — mirrors LiveAggregation<R>. */
|
|
5163
|
-
interface CrossVaultLiveAggregation<R> extends LiveAggregation<R> {
|
|
5164
|
-
readonly skippedVaults: readonly SkippedVault[];
|
|
5165
|
-
readonly ready: Promise<void>;
|
|
5311
|
+
/** Internal broadcast leg carried on ShardedQuery. */
|
|
5312
|
+
interface BroadcastLeg {
|
|
5313
|
+
readonly field: string;
|
|
5314
|
+
readonly as: string;
|
|
5315
|
+
readonly from: BroadcastSource;
|
|
5316
|
+
readonly on: string;
|
|
5317
|
+
readonly mode: 'warn' | 'cascade';
|
|
5166
5318
|
}
|
|
5167
5319
|
|
|
5168
5320
|
/** A source that can fan out records across shards. Satisfied by ShardedQuery. */
|
|
@@ -5228,9 +5380,27 @@ declare class VaultGroup<T> {
|
|
|
5228
5380
|
/** @internal */ registry: Collection<VaultRegistryRow>,
|
|
5229
5381
|
/** @internal */ sharding: ShardingConfig<T>,
|
|
5230
5382
|
/** @internal */ template: VaultTemplate);
|
|
5383
|
+
/** @internal — set when the group is managed (no explicit registry). */
|
|
5384
|
+
private stateVault;
|
|
5385
|
+
/** @internal */
|
|
5386
|
+
_attachStateVault(sv: StateManagementVault): void;
|
|
5231
5387
|
/** Deterministic vault name for a partition key, namespaced by the group. */
|
|
5232
5388
|
shardVaultId(partitionKey: string): string;
|
|
5233
|
-
/**
|
|
5389
|
+
/**
|
|
5390
|
+
* @internal — group-qualified registry record key (avoids cross-group key
|
|
5391
|
+
* collisions). Identical to the shard vault id by design — the registry row
|
|
5392
|
+
* for a shard is keyed by that shard's vault id — so it delegates to
|
|
5393
|
+
* `shardVaultId`, reusing its partition-key validation.
|
|
5394
|
+
*/
|
|
5395
|
+
registryId(partitionKey: string): string;
|
|
5396
|
+
/**
|
|
5397
|
+
* Registry rows for THIS group (hydrates the registry collection first).
|
|
5398
|
+
* The registry may be shared across groups (the auto-wired StateManagement
|
|
5399
|
+
* vault holds one `vaultRegistry` for the whole instance), so rows are
|
|
5400
|
+
* filtered by `group` — without this, a group's fan-out reads would leak
|
|
5401
|
+
* across into other groups' shards. Mirrors the `${group}--` scoping that
|
|
5402
|
+
* `liveBinding().isRelevant` already applies to the reactive path.
|
|
5403
|
+
*/
|
|
5234
5404
|
allRows(): Promise<VaultRegistryRow[]>;
|
|
5235
5405
|
/** Open an existing shard and apply the template. */
|
|
5236
5406
|
openShard(partitionKey: string): Promise<Vault>;
|
|
@@ -5272,17 +5442,25 @@ declare class ShardedQuery<T, R = T> {
|
|
|
5272
5442
|
private readonly group;
|
|
5273
5443
|
private readonly collectionName;
|
|
5274
5444
|
private readonly clauses;
|
|
5275
|
-
|
|
5445
|
+
private readonly coPartitionedLegs;
|
|
5446
|
+
private readonly broadcastLegs;
|
|
5447
|
+
constructor(group: VaultGroup<T>, collectionName: string, clauses: readonly WhereClause[], coPartitionedLegs?: readonly CoPartitionedLeg[], broadcastLegs?: readonly BroadcastLeg[]);
|
|
5276
5448
|
where(field: string, op: WhereClause['op'], value: unknown): ShardedQuery<T, R>;
|
|
5449
|
+
/** Co-partitioned join: each shard joins its own same-vault right collection (resolved via ref()), then union. */
|
|
5450
|
+
crossShardJoin(field: string, opts: CrossShardJoinOptions): ShardedQuery<T, R>;
|
|
5451
|
+
/** Broadcast dimension join: enrich every merged row from a single shared collection. */
|
|
5452
|
+
broadcastJoin(field: string, opts: BroadcastJoinOptions): ShardedQuery<T, R>;
|
|
5277
5453
|
/** @internal — fan out the where-filtered records across eligible shards. */
|
|
5278
5454
|
fanoutRecords(options?: FanoutQueryOptions): Promise<{
|
|
5279
5455
|
records: R[];
|
|
5280
5456
|
skippedVaults: SkippedVault[];
|
|
5281
5457
|
}>;
|
|
5282
|
-
/** Fan out across eligible shards
|
|
5458
|
+
/** Fan out across eligible shards, merge, then apply any broadcast dimension legs. */
|
|
5283
5459
|
toArray(options?: FanoutQueryOptions): Promise<FanoutResult<R>>;
|
|
5284
5460
|
/** @internal — build the change-subscription + relevance binding for this query's group+collection. */
|
|
5285
5461
|
liveBinding(): LiveBinding;
|
|
5462
|
+
/** @internal — joined queries don't support reactive/aggregate surfaces in v1. */
|
|
5463
|
+
private assertNoJoinLegs;
|
|
5286
5464
|
/** Returns a reactive cross-shard live query — a facade over CrossVaultLive. */
|
|
5287
5465
|
live(options?: LiveQueryOptions): CrossVaultLiveQuery<R>;
|
|
5288
5466
|
/** One-shot distributed aggregate — central reduce over all shard records. */
|
|
@@ -5608,6 +5786,12 @@ declare class Noydb {
|
|
|
5608
5786
|
* collection.
|
|
5609
5787
|
*/
|
|
5610
5788
|
openVaultGroup<T>(name: string, opts: VaultGroupOptions<T>): Promise<VaultGroup<T>>;
|
|
5789
|
+
/**
|
|
5790
|
+
* Open the reserved StateManagement control-plane vault (registry +
|
|
5791
|
+
* schema-manifest + deployment-events). Lazy-loaded so the federation
|
|
5792
|
+
* chunk stays out of the core graph until used.
|
|
5793
|
+
*/
|
|
5794
|
+
openStateManagementVault(): Promise<StateManagementVault>;
|
|
5611
5795
|
/**
|
|
5612
5796
|
* @internal — true when an encrypted shard vault is provisioned
|
|
5613
5797
|
* (its keyring exists in the store).
|
|
@@ -7192,9 +7376,16 @@ declare class OverlayedViewRegistry {
|
|
|
7192
7376
|
* to its record in the same operation.
|
|
7193
7377
|
*/
|
|
7194
7378
|
|
|
7379
|
+
/** Options for `SequenceHandle.next`. Deferred-numbering series use `for`; the CAS counter ignores all of these. */
|
|
7380
|
+
interface NextOptions {
|
|
7381
|
+
/** Deferred mode: the record id to number. Ignored by the CAS counter. */
|
|
7382
|
+
readonly for?: string;
|
|
7383
|
+
/** Deferred mode: reject after this many ms if still unsealed (reserved; not yet enforced in this slice). */
|
|
7384
|
+
readonly timeoutMs?: number;
|
|
7385
|
+
}
|
|
7195
7386
|
interface SequenceHandle {
|
|
7196
|
-
/** Atomically allocate and return the next value (1, 2, 3, …). */
|
|
7197
|
-
next(): Promise<number>;
|
|
7387
|
+
/** Atomically allocate and return the next value (1, 2, 3, …). Deferred series resolve at the next pass. */
|
|
7388
|
+
next(opts?: NextOptions): Promise<number>;
|
|
7198
7389
|
/** Read the current value without allocating. Returns 0 if never used. */
|
|
7199
7390
|
peek(): Promise<number>;
|
|
7200
7391
|
}
|
|
@@ -7229,6 +7420,17 @@ declare class SequenceStore {
|
|
|
7229
7420
|
next(name: string): Promise<number>;
|
|
7230
7421
|
}
|
|
7231
7422
|
|
|
7423
|
+
/**
|
|
7424
|
+
* @category capability
|
|
7425
|
+
* Deferred numbering engine — store-clock-ordered, gap-free serials assigned
|
|
7426
|
+
* at an explicit numbering pass. See the design spec.
|
|
7427
|
+
*/
|
|
7428
|
+
|
|
7429
|
+
interface Assignment {
|
|
7430
|
+
recordId: string;
|
|
7431
|
+
serial: number;
|
|
7432
|
+
}
|
|
7433
|
+
|
|
7232
7434
|
/**
|
|
7233
7435
|
* Vault-internal singleton that holds the guard graph and dispatches
|
|
7234
7436
|
* per-collection guard execution. Owned by `Vault`; not exported.
|
|
@@ -8282,6 +8484,10 @@ declare class Vault {
|
|
|
8282
8484
|
private ledgerStore;
|
|
8283
8485
|
/** Lazily-built atomic-sequence store. See {@link sequence}. */
|
|
8284
8486
|
private sequenceStore;
|
|
8487
|
+
/** Lazily-built deferred-numbering engine. See {@link runNumberingPass}. */
|
|
8488
|
+
private deferredNumbering;
|
|
8489
|
+
/** Registered deferred-numbering series, keyed by series name. */
|
|
8490
|
+
private readonly numberingConfigs;
|
|
8285
8491
|
/**
|
|
8286
8492
|
* Background writes for persisted-schema envelopes (#schema-dump v0
|
|
8287
8493
|
* slice 1). One promise per `collection({ persistJsonSchema: true })`
|
|
@@ -8404,6 +8610,7 @@ declare class Vault {
|
|
|
8404
8610
|
i18nStrategy?: I18nStrategy | undefined;
|
|
8405
8611
|
syncStrategy?: SyncStrategy | undefined;
|
|
8406
8612
|
guardStrategies?: ReadonlyArray<GuardStrategyHandleAny> | undefined;
|
|
8613
|
+
numberingConfigs?: ReadonlyArray<DeferredNumberingConfig> | undefined;
|
|
8407
8614
|
});
|
|
8408
8615
|
/**
|
|
8409
8616
|
* Construct (or reconstruct) the lazy DEK resolver. Captures the
|
|
@@ -8740,6 +8947,14 @@ declare class Vault {
|
|
|
8740
8947
|
* ```
|
|
8741
8948
|
*/
|
|
8742
8949
|
sequence(name: string): SequenceHandle;
|
|
8950
|
+
/** @internal — lazily build the deferred-numbering engine with a cache-coherent stamp. */
|
|
8951
|
+
private deferred;
|
|
8952
|
+
/**
|
|
8953
|
+
* Run a deferred-numbering pass for `series`: assign gap-free serials to all
|
|
8954
|
+
* records whose store-commit-time interval has settled, in store-time order.
|
|
8955
|
+
* Returns the assignments made. See {@link sequence} / `withDeferredNumbering`.
|
|
8956
|
+
*/
|
|
8957
|
+
runNumberingPass(series: string): Promise<Assignment[]>;
|
|
8743
8958
|
compact(options?: CompactRunOptions): Promise<CompactionResult>;
|
|
8744
8959
|
/**
|
|
8745
8960
|
* Sweep records eligible by their collection's `archive` policy into the
|
|
@@ -10436,6 +10651,12 @@ declare class Collection<T> {
|
|
|
10436
10651
|
* each record is locale-resolved before being returned.
|
|
10437
10652
|
*/
|
|
10438
10653
|
list(locale?: LocaleReadOptions): Promise<T[]>;
|
|
10654
|
+
/**
|
|
10655
|
+
* @internal — whether any read-side record transform is registered
|
|
10656
|
+
* (money decode, i18nText resolution, dictKey labels). Gates the
|
|
10657
|
+
* no-transform fast path in {@link list}.
|
|
10658
|
+
*/
|
|
10659
|
+
private hasReadTransforms;
|
|
10439
10660
|
/**
|
|
10440
10661
|
* Put many records in one call. Each item is processed sequentially
|
|
10441
10662
|
* through the normal `put()` path — meaning per-item validation,
|
|
@@ -11693,6 +11914,12 @@ interface NoydbStore {
|
|
|
11693
11914
|
saveAll(vault: string, data: VaultSnapshot): Promise<void>;
|
|
11694
11915
|
/** Optional connectivity check for sync engine. */
|
|
11695
11916
|
ping?(): Promise<boolean>;
|
|
11917
|
+
/**
|
|
11918
|
+
* The store's authoritative time as a bounded-uncertainty interval.
|
|
11919
|
+
* Present iff `capabilities.serverWriteTime` is true. Monotonic
|
|
11920
|
+
* non-decreasing across calls on a single store.
|
|
11921
|
+
*/
|
|
11922
|
+
getStoreTime?(): Promise<StoreTime>;
|
|
11696
11923
|
/**
|
|
11697
11924
|
* Optional: list record IDs in a collection that have `_ts` after `since`.
|
|
11698
11925
|
* Used by partial sync (`pull({ modifiedSince })`). Stores that omit this
|
|
@@ -12896,6 +13123,17 @@ interface StoreAuth {
|
|
|
12896
13123
|
required: boolean;
|
|
12897
13124
|
flow: 'static' | 'oauth' | 'kerberos' | 'implicit';
|
|
12898
13125
|
}
|
|
13126
|
+
/**
|
|
13127
|
+
* The store's authoritative clock as a bounded-uncertainty interval
|
|
13128
|
+
* (Spanner TrueTime model). True time is provably within [earliest, latest];
|
|
13129
|
+
* `latest - earliest` is the clock-uncertainty bound ε. Used by deferred
|
|
13130
|
+
* numbering to order records by store-commit-time and to commit-wait. Never
|
|
13131
|
+
* the client wall clock.
|
|
13132
|
+
*/
|
|
13133
|
+
interface StoreTime {
|
|
13134
|
+
readonly earliest: number;
|
|
13135
|
+
readonly latest: number;
|
|
13136
|
+
}
|
|
12899
13137
|
interface StoreCapabilities {
|
|
12900
13138
|
/**
|
|
12901
13139
|
* true — the store's expectedVersion check and write are atomic at the
|
|
@@ -12904,6 +13142,13 @@ interface StoreCapabilities {
|
|
|
12904
13142
|
* false — check and write are separate operations with a race window.
|
|
12905
13143
|
*/
|
|
12906
13144
|
casAtomic: boolean;
|
|
13145
|
+
/**
|
|
13146
|
+
* true — the store exposes an authoritative {@link NoydbStore.getStoreTime}
|
|
13147
|
+
* clock and records are ordered by store-commit-time. Required for
|
|
13148
|
+
* `withDeferredNumbering`. Absent/false — the store cannot back deferred
|
|
13149
|
+
* numbering (use CAS `sequence().next()` or per-series).
|
|
13150
|
+
*/
|
|
13151
|
+
serverWriteTime?: boolean;
|
|
12907
13152
|
auth: StoreAuth;
|
|
12908
13153
|
/**
|
|
12909
13154
|
* true — the store implements {@link NoydbStore.tx} and commits
|
|
@@ -13078,6 +13323,12 @@ interface NoydbOptions {
|
|
|
13078
13323
|
* in registration order on `collection.put()`.
|
|
13079
13324
|
*/
|
|
13080
13325
|
readonly guardStrategies?: ReadonlyArray<GuardStrategyHandleAny>;
|
|
13326
|
+
/**
|
|
13327
|
+
* Deferred-numbering series declared via `withDeferredNumbering(...)`.
|
|
13328
|
+
* `vault.sequence(series).next({ for })` then assigns gap-free serials at a
|
|
13329
|
+
* numbering pass (`vault.runNumberingPass(series)`) instead of via CAS.
|
|
13330
|
+
*/
|
|
13331
|
+
readonly numbering?: ReadonlyArray<DeferredNumberingConfig>;
|
|
13081
13332
|
/**
|
|
13082
13333
|
* Optional derivation strategies — source-to-output projections that
|
|
13083
13334
|
* fire on `collection.put()`. Each handle is the output of
|
|
@@ -13376,4 +13627,4 @@ interface DeleteManyResult {
|
|
|
13376
13627
|
}>;
|
|
13377
13628
|
}
|
|
13378
13629
|
|
|
13379
|
-
export { type ExportBlobsAuditEntry as $, BLOB_COLLECTION as A, type BlobStrategy as B, BLOB_EVICTION_AUDIT_COLLECTION as C, DICT_COLLECTION_PREFIX as D, BLOB_INDEX_COLLECTION as E, BLOB_SLOTS_PREFIX as F, BLOB_VERSIONS_PREFIX as G, type BlobEvictionEntry as H, type I18nStrategy as I, type BlobFieldPolicy as J, type BlobFieldsConfig as K, type Layer as L, type BlobObject as M, type BlobPutOptions as N, type OnMissing as O, PolicyEnforcer as P, type BlobResponseOptions as Q, type ResolveI18nOptions as R, type ScriptWarning as S, BlobSet as T, type BlobStrategyOpenArgs as U, type CompactRunOptions as V, type CompactionContext as W, type CompactionResult as X, DEFAULT_CHUNK_SIZE as Y, EXPORT_AUDIT_COLLECTION as Z, ExportBlobsAbortedError as _, type DictEntry as a, type SyncStrategy as a$, type ExportBlobsHandle as a0, type ExportBlobsOptions as a1, type ExportedBlob as a2, type SlotInfo as a3, type SlotRecord as a4, type VersionRecord as a5, createExportBlobsHandle as a6, runCompaction as a7, type ConsentStrategy as a8, CONSENT_AUDIT_COLLECTION as a9, VaultFrame as aA, type NoydbBundleStore as aB, type RetentionPolicy as aC, type SnapshotPolicy as aD, type SnapshotStrategy as aE, type SnapshotMeta as aF, type SnapshotMode as aG, type TxStrategy as aH, type AmendmentTxOptions as aI, TxCollection as aJ, TxContext as aK, TxVault as aL, runTransaction as aM, type DerivationStrategy as aN, type DerivationContext as aO, type ArrayOutputSpec as aP, DerivationRegistry as aQ, type DerivationStrategyHandle as aR, type DerivedFromMeta as aS, type OutputSpec as aT, type RecordOutputSpec as aU, type MaterializedViewStrategy as aV, type MaterializedViewStrategyHandle as aW, type OverlayedViewStrategy as aX, Collection as aY, OverlayedViewRegistry as aZ, type OverlayedViewStrategyHandle as a_, type ConsentAuditEntry as aa, type ConsentAuditFilter as ab, type ConsentContext as ac, type ConsentOp as ad, loadConsentEntries as ae, writeConsentEntry as af, type PeriodsStrategy as ag, type CarryForwardContext as ah, type ClosePeriodOptions as ai, type OpenPeriodOptions as aj, PERIODS_COLLECTION as ak, type PeriodRecord as al, type ReadOnlyCollection as am, appendPeriodLedgerEntry as an, assertTsWritable as ao, chainAnchor as ap, loadPeriods as aq, validatePeriodName as ar, type GuardStrategy as as, type GuardChange as at, type GuardContext as au, GuardRegistry as av, type GuardStrategyHandle as aw, ReadOnlyVaultFacade as ax, type ShadowStrategy as ay, CollectionFrame as az, type DictKeyDescriptor as b, type ChangeEvent as b$, type Role as b0, type UnlockedKeyring as b1, type HistoryStrategy as b2, type NoydbStore as b3, type HistoryOptions as b4, type EncryptedEnvelope as b5, type PruneOptions as b6, type AppendInput as b7, type ChangeType as b8, CollectionInstant as b9, type RegisteredMV as bA, MaterializedViewRegistry as bB, type MaterializedFromMeta as bC, type MaterializedViewOutput as bD, type UnionSource as bE, type UserEnvelope as bF, type GateName as bG, type GatePolicy as bH, type VaultPolicy as bI, type ActiveTier as bJ, type FactorProof as bK, type SchemaUpdateStrategy as bL, type TransformFn as bM, type PersistedSchemaEnvelope as bN, type UpdateDecision as bO, type DirectoryConfig as bP, type UserVisibility as bQ, type AccessibleVault as bR, type AffectedDocument as bS, type ArchivePolicy as bT, type ArchiveResult as bU, type ArchiveRunOptions as bV, type ArchiveStrategy as bW, BUNDLE_STORE_POLICY as bX, type BuiltInGateName as bY, type CacheOptions as bZ, type CacheStats as b_, type DiffEntry as ba, type JsonPatch as bb, type JsonPatchOp as bc, type LedgerEntry as bd, LedgerStore as be, type VaultEngine as bf, VaultInstant as bg, type VerifyResult as bh, applyPatch as bi, canonicalJson as bj, computePatch as bk, diff as bl, formatDiff as bm, hashEntry as bn, paddedIndex as bo, parseIndex as bp, sha256Hex as bq, type PublicEnvelope as br, type SealingKeyProvider as bs, type BundleRecipient as bt, type RecipientSealer as bu, type RecipientHint as bv, Vault as bw, type RecoveryEnrollmentInput as bx, type ShamirRecoveryProvider as by, type MVQueryContext as bz, DictionaryHandle as c, type ListUsersOptions as c$, type CollectionChangeEvent as c0, type CollectionConflictResolver as c1, type CollectionDescriptor as c2, type CollectionStats as c3, ComputedFieldError as c4, type ComputedFields as c5, type ComputedFn as c6, type Conflict as c7, type ConflictPolicy as c8, type ConflictStrategy as c9, type FactorKind as cA, type FactorProofBundle as cB, type FactorRequirement as cC, type FanoutQueryOptions as cD, type FanoutResult as cE, type FenceDoc as cF, type FenceState as cG, type FieldChange as cH, type FieldDescriptor as cI, type FieldSource as cJ, type GhostRecord as cK, type GrantOptions as cL, type GuardViolation as cM, type HistoryConfig as cN, type HistoryEntry as cO, INDEXED_STORE_POLICY as cP, type ImportCapability as cQ, type InferOutput as cR, type InternalCollectionStats as cS, type IssueDelegationOptions as cT, type IssueMagicLinkGrantOptions as cU, type KeyringAuthenticator as cV, type KeyringAuthenticatorWrappingDEKs as cW, type KeyringAuthenticatorWrappingKEK as cX, type KeyringFile as cY, type ListAccessibleVaultsOptions as cZ, type ListPageResult as c_, type CrossTierAccessEvent as ca, CrossVaultAggregation as cb, CrossVaultGroupedAggregation as cc, type GroupedRow as cd, type CrossVaultLiveAggregation as ce, type CrossVaultLiveQuery as cf, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as cg, DELEGATIONS_COLLECTION as ch, type DeepPartial as ci, type DeepPartialOrNull as cj, type DelegationToken as ck, type DeleteManyResult as cl, type DerivationDescriptor as cm, type DirtyEntry as cn, type DryRunResult as co, type DumpSchemaOptions as cp, ELEVATION_AUDIT_COLLECTION as cq, ElevatedHandle as cr, type EnrollAuthenticatorOptions as cs, type EnrollAuthenticatorWrappingDEKsOptions as ct, type EnrollAuthenticatorWrappingKEKOptions as cu, type EnrollRecoveryResult as cv, type ExportCapability as cw, type ExportChunk as cx, type ExportFormat as cy, type ExportStreamOptions as cz, type DictionaryOptions as d, SEALED_PASSPHRASE_RECORD_ID as d$, type LiveQueryOptions as d0, type LiveUserEnvelope as d1, type LocaleReadOptions as d2, Lru as d3, type LruOptions as d4, type LruStats as d5, MAGIC_LINK_CONTENT_INFO_PREFIX as d6, MAGIC_LINK_GRANTS_COLLECTION as d7, MAGIC_LINK_KEK_INFO_PREFIX as d8, type MagicLinkGrantPayload as d9, type PublicEnvelopeSchema as dA, type PublicEnvelopeText as dB, type PullMode as dC, type PullOptions as dD, type PullPolicy as dE, type PullResult as dF, type PushMode as dG, type PushOptions as dH, type PushPolicy as dI, type PushResult as dJ, type PutManyItemOptions as dK, type PutManyOptions as dL, type PutManyResult as dM, type QueryAcrossOptions as dN, type QueryAcrossResult as dO, type QuickUnlockState as dP, QuickUnlockStore as dQ, type ReAuthOperation as dR, type RecoverPassphraseInput as dS, type RecoverPassphraseResult as dT, type RecoverUserOptions as dU, type RecoveryProof as dV, type ResolvedPublicEnvelopeSchema as dW, type RevokeOptions as dX, type RotatePassphraseInput as dY, type RotateRecoveryOptions as dZ, type RotateRecoveryResult as d_, type MagicLinkGrantRecord as da, type MaterializedViewDescriptor as db, MemoryRecipientSealer as dc, MemorySealingKeyProvider as dd, NOYDB_BACKUP_VERSION as de, NOYDB_FORMAT_VERSION as df, NOYDB_KEYRING_VERSION as dg, NOYDB_SYNC_VERSION as dh, Noydb as di, type NoydbEventMap as dj, type NoydbOptions as dk, type OverlayViewDescriptor as dl, PUBLIC_ENVELOPE_FIELDS as dm, type PaperRecoveryDoc as dn, type PaperRecoveryEntry as dp, type PassphrasePolicy as dq, type PassphraseValidationResult as dr, type Permission as ds, type Permissions as dt, type PersistedSchemaKind as du, type PlaintextTranslatorContext as dv, type PlaintextTranslatorFn as dw, PresenceHandle as dx, type PresencePeer as dy, type PublicEnvelopeField as dz, type I18nMap as e, type WithArchiveOptions as e$, type SchemaDelta as e0, type SchemaIntrospection as e1, type SealedEnvelope as e2, type SealedPassphrase as e3, type SequenceHandle as e4, SequenceStore as e5, type SessionPolicy as e6, type SetPublicEnvelopeInput as e7, type ShamirRecoveryDoc as e8, type ShamirRecoveryEntry as e9, type TabPresence as eA, type TabRole as eB, type TierMode as eC, type TranslatorAuditEntry as eD, type TxOp as eE, USER_ENVELOPE_COLLECTION as eF, USER_ENVELOPE_MAX_BYTES as eG, type Unsubscribe as eH, type UpdateAuthenticatorOptions as eI, type UpdateContext as eJ, type UpdateUserOptions as eK, UserApi as eL, type UserEnvelopeCheckGate as eM, UserEnvelopeOversizedError as eN, type UserEnvelopePresented as eO, type UserInfo as eP, type VaultBackup as eQ, VaultGroup as eR, type VaultGroupOptions as eS, type VaultPolicyOnDisk as eT, type VaultRegistryRow as eU, type VaultSchemaSnapshot as eV, type VaultSnapshot as eW, type VaultTemplate as eX, type WarningRules as eY, WeakPassphraseError as eZ, type WeakPassphraseReason as e_, ShardedCollection as ea, ShardedGroupedQuery as eb, ShardedQuery as ec, type ShardingConfig as ed, type SkippedVault as ee, type SlotRewrapCeremony as ef, type SlotRewrapContext as eg, type StandardSchemaV1 as eh, type StandardSchemaV1Issue as ei, type StandardSchemaV1SyncResult as ej, type StoreAuth as ek, type StoreAuthKind as el, type StoreCapabilities as em, SyncEngine as en, type SyncMetadata as eo, type SyncPolicy as ep, SyncScheduler as eq, type SyncSchedulerStatus as er, type SyncStatus as es, type SyncTarget as et, type SyncTargetRole as eu, SyncTransaction as ev, type SyncTransactionResult as ew, type TabChannel as ex, type TabCoordinationOptions as ey, type TabLockManager as ez, type I18nTextDescriptor as f, updateAuthenticator as f$, type WrappedDeksBlob as f0, type WriteConflict as f1, type WriteEvent as f2, type WriteHook as f3, type WriteQueue as f4, assertStrongPassphrase as f5, buildRecipientKeyringFile as f6, burnPaperRecoveryEntry as f7, createNoydb as f8, createStore as f9, parseSealedEnvelope as fA, readMagicLinkGrantRecord as fB, recoverUser as fC, removeAuthenticator as fD, resolveSchema as fE, revokeDelegation as fF, revokeMagicLinkGrant as fG, savePaperRecoveryEntries as fH, saveSealedPassphrase as fI, saveShamirRecoveryEntries as fJ, unwrapDeksFromBlob as fK, unwrapDeksFromPaperEntry as fL, unwrapDeksFromShamirEntry as fM, unwrapMagicLinkGrant as fN, validatePassphrase as fO, validatePublicEnvelopeInput as fP, validateSchemaInput as fQ, validateSchemaOutput as fR, withArchive as fS, writeMagicLinkGrant as fT, changeSecret as fU, createOwnerKeyring as fV, ensureCollectionDEK as fW, grant as fX, loadKeyring as fY, persistKeyring as fZ, revoke as f_, deriveMagicLinkContentKey as fa, enrollAuthenticator as fb, estimateEntropy as fc, evalComputedFields as fd, evaluateExportCapability as fe, evaluateImportCapability as ff, findAuthenticator as fg, hasExportCapability as fh, hasImportCapability as fi, hasRecoveryEnrolled as fj, isMagicLinkGrantExpired as fk, isPublicEnvelope as fl, issueDelegation as fm, recoverPassphrase as fn, rotatePassphrase as fo, listMagicLinkGrants as fp, listUsers as fq, listUsersWithEnvelopes as fr, loadActiveDelegations as fs, loadPaperRecoveryEntries as ft, loadSealedPassphrase as fu, loadShamirRecoveryEntries as fv, magicLinkGrantRecordId as fw, mintPaperRecoveryEntry as fx, mintShamirRecoveryEntry as fy, mintWrappedDeksBlob as fz, type I18nTextOptions as g, updateKeyringIdentity as g0, type OnMissingPolicy as h, applyI18nLocale as i, dictCollectionName as j, dictKey as k, enforceScript as l, getAtPath as m, i18nText as n, inferScripts as o, isDictCollectionName as p, isDictKeyDescriptor as q, isI18nTextDescriptor as r, resolveI18nText as s, resolvePolicy as t, setAtPathInPlace as u, validateI18nTextValue as v, type SessionStrategy as w, createEnforcer as x, validateSessionPolicy as y, BLOB_CHUNKS_COLLECTION as z };
|
|
13630
|
+
export { type ExportBlobsAuditEntry as $, BLOB_COLLECTION as A, type BlobStrategy as B, BLOB_EVICTION_AUDIT_COLLECTION as C, DICT_COLLECTION_PREFIX as D, BLOB_INDEX_COLLECTION as E, BLOB_SLOTS_PREFIX as F, BLOB_VERSIONS_PREFIX as G, type BlobEvictionEntry as H, type I18nStrategy as I, type BlobFieldPolicy as J, type BlobFieldsConfig as K, type Layer as L, type BlobObject as M, type BlobPutOptions as N, type OnMissing as O, PolicyEnforcer as P, type BlobResponseOptions as Q, type ResolveI18nOptions as R, type ScriptWarning as S, BlobSet as T, type BlobStrategyOpenArgs as U, type CompactRunOptions as V, type CompactionContext as W, type CompactionResult as X, DEFAULT_CHUNK_SIZE as Y, EXPORT_AUDIT_COLLECTION as Z, ExportBlobsAbortedError as _, type DictEntry as a, type SyncStrategy as a$, type ExportBlobsHandle as a0, type ExportBlobsOptions as a1, type ExportedBlob as a2, type SlotInfo as a3, type SlotRecord as a4, type VersionRecord as a5, createExportBlobsHandle as a6, runCompaction as a7, type ConsentStrategy as a8, CONSENT_AUDIT_COLLECTION as a9, VaultFrame as aA, type NoydbBundleStore as aB, type RetentionPolicy as aC, type SnapshotPolicy as aD, type SnapshotStrategy as aE, type SnapshotMeta as aF, type SnapshotMode as aG, type TxStrategy as aH, type AmendmentTxOptions as aI, TxCollection as aJ, TxContext as aK, TxVault as aL, runTransaction as aM, type DerivationStrategy as aN, type DerivationContext as aO, type ArrayOutputSpec as aP, DerivationRegistry as aQ, type DerivationStrategyHandle as aR, type DerivedFromMeta as aS, type OutputSpec as aT, type RecordOutputSpec as aU, type MaterializedViewStrategy as aV, type MaterializedViewStrategyHandle as aW, type OverlayedViewStrategy as aX, Collection as aY, OverlayedViewRegistry as aZ, type OverlayedViewStrategyHandle as a_, type ConsentAuditEntry as aa, type ConsentAuditFilter as ab, type ConsentContext as ac, type ConsentOp as ad, loadConsentEntries as ae, writeConsentEntry as af, type PeriodsStrategy as ag, type CarryForwardContext as ah, type ClosePeriodOptions as ai, type OpenPeriodOptions as aj, PERIODS_COLLECTION as ak, type PeriodRecord as al, type ReadOnlyCollection as am, appendPeriodLedgerEntry as an, assertTsWritable as ao, chainAnchor as ap, loadPeriods as aq, validatePeriodName as ar, type GuardStrategy as as, type GuardChange as at, type GuardContext as au, GuardRegistry as av, type GuardStrategyHandle as aw, ReadOnlyVaultFacade as ax, type ShadowStrategy as ay, CollectionFrame as az, type DictKeyDescriptor as b, type CapturedBlueprint as b$, type Role as b0, type UnlockedKeyring as b1, type HistoryStrategy as b2, type NoydbStore as b3, type HistoryOptions as b4, type EncryptedEnvelope as b5, type PruneOptions as b6, type AppendInput as b7, type ChangeType as b8, CollectionInstant as b9, type RegisteredMV as bA, MaterializedViewRegistry as bB, type MaterializedFromMeta as bC, type MaterializedViewOutput as bD, type UnionSource as bE, type UserEnvelope as bF, type GateName as bG, type GatePolicy as bH, type VaultPolicy as bI, type ActiveTier as bJ, type FactorProof as bK, type SchemaUpdateStrategy as bL, type TransformFn as bM, type PersistedSchemaEnvelope as bN, type UpdateDecision as bO, type DirectoryConfig as bP, type UserVisibility as bQ, type AccessibleVault as bR, type AffectedDocument as bS, type ArchivePolicy as bT, type ArchiveResult as bU, type ArchiveRunOptions as bV, type ArchiveStrategy as bW, BUNDLE_STORE_POLICY as bX, type BuiltInGateName as bY, type CacheOptions as bZ, type CacheStats as b_, type DiffEntry as ba, type JsonPatch as bb, type JsonPatchOp as bc, type LedgerEntry as bd, LedgerStore as be, type VaultEngine as bf, VaultInstant as bg, type VerifyResult as bh, applyPatch as bi, canonicalJson as bj, computePatch as bk, diff as bl, formatDiff as bm, hashEntry as bn, paddedIndex as bo, parseIndex as bp, sha256Hex as bq, type PublicEnvelope as br, type SealingKeyProvider as bs, type BundleRecipient as bt, type RecipientSealer as bu, type RecipientHint as bv, Vault as bw, type RecoveryEnrollmentInput as bx, type ShamirRecoveryProvider as by, type MVQueryContext as bz, DictionaryHandle as c, type KeyringFile as c$, type ChangeEvent as c0, type CollectionChangeEvent as c1, type CollectionConflictResolver as c2, type CollectionDescriptor as c3, type CollectionStats as c4, ComputedFieldError as c5, type ComputedFields as c6, type ComputedFn as c7, type Conflict as c8, type ConflictPolicy as c9, type ExportChunk as cA, type ExportFormat as cB, type ExportStreamOptions as cC, type FactorKind as cD, type FactorProofBundle as cE, type FactorRequirement as cF, type FanoutQueryOptions as cG, type FanoutResult as cH, type FenceDoc as cI, type FenceState as cJ, type FieldChange as cK, type FieldDescriptor as cL, type FieldSource as cM, type GhostRecord as cN, type GrantOptions as cO, type GuardViolation as cP, type HistoryConfig as cQ, type HistoryEntry as cR, INDEXED_STORE_POLICY as cS, type ImportCapability as cT, type InferOutput as cU, type InternalCollectionStats as cV, type IssueDelegationOptions as cW, type IssueMagicLinkGrantOptions as cX, type KeyringAuthenticator as cY, type KeyringAuthenticatorWrappingDEKs as cZ, type KeyringAuthenticatorWrappingKEK as c_, type ConflictStrategy as ca, type CrossTierAccessEvent as cb, CrossVaultAggregation as cc, CrossVaultGroupedAggregation as cd, type GroupedRow as ce, type CrossVaultLiveAggregation as cf, type CrossVaultLiveQuery as cg, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as ch, DELEGATIONS_COLLECTION as ci, type DeepPartial as cj, type DeepPartialOrNull as ck, type DeferredNumberingConfig as cl, type DelegationToken as cm, type DeleteManyResult as cn, type DeploymentEvent as co, type DerivationDescriptor as cp, type DirtyEntry as cq, type DryRunResult as cr, type DumpSchemaOptions as cs, ELEVATION_AUDIT_COLLECTION as ct, ElevatedHandle as cu, type EnrollAuthenticatorOptions as cv, type EnrollAuthenticatorWrappingDEKsOptions as cw, type EnrollAuthenticatorWrappingKEKOptions as cx, type EnrollRecoveryResult as cy, type ExportCapability as cz, type DictionaryOptions as d, type ResolvedPublicEnvelopeSchema as d$, type ListAccessibleVaultsOptions as d0, type ListPageResult as d1, type ListUsersOptions as d2, type LiveQueryOptions as d3, type LiveUserEnvelope as d4, type LocaleReadOptions as d5, Lru as d6, type LruOptions as d7, type LruStats as d8, MAGIC_LINK_CONTENT_INFO_PREFIX as d9, type PlaintextTranslatorContext as dA, type PlaintextTranslatorFn as dB, PresenceHandle as dC, type PresencePeer as dD, type PublicEnvelopeField as dE, type PublicEnvelopeSchema as dF, type PublicEnvelopeText as dG, type PullMode as dH, type PullOptions as dI, type PullPolicy as dJ, type PullResult as dK, type PushMode as dL, type PushOptions as dM, type PushPolicy as dN, type PushResult as dO, type PutManyItemOptions as dP, type PutManyOptions as dQ, type PutManyResult as dR, type QueryAcrossOptions as dS, type QueryAcrossResult as dT, type QuickUnlockState as dU, QuickUnlockStore as dV, type ReAuthOperation as dW, type RecoverPassphraseInput as dX, type RecoverPassphraseResult as dY, type RecoverUserOptions as dZ, type RecoveryProof as d_, MAGIC_LINK_GRANTS_COLLECTION as da, MAGIC_LINK_KEK_INFO_PREFIX as db, type MagicLinkGrantPayload as dc, type MagicLinkGrantRecord as dd, type MaterializedViewDescriptor as de, MemoryRecipientSealer as df, MemorySealingKeyProvider as dg, NOYDB_BACKUP_VERSION as dh, NOYDB_FORMAT_VERSION as di, NOYDB_KEYRING_VERSION as dj, NOYDB_SYNC_VERSION as dk, type NextOptions as dl, Noydb as dm, type NoydbEventMap as dn, type NoydbOptions as dp, type Assignment as dq, type OverlayViewDescriptor as dr, PUBLIC_ENVELOPE_FIELDS as ds, type PaperRecoveryDoc as dt, type PaperRecoveryEntry as du, type PassphrasePolicy as dv, type PassphraseValidationResult as dw, type Permission as dx, type Permissions as dy, type PersistedSchemaKind as dz, type I18nMap as e, type VaultPolicyOnDisk as e$, type RevokeOptions as e0, type RotatePassphraseInput as e1, type RotateRecoveryOptions as e2, type RotateRecoveryResult as e3, SEALED_PASSPHRASE_RECORD_ID as e4, type SchemaDelta as e5, type SchemaIntrospection as e6, type SchemaManifestRow as e7, type SealedEnvelope as e8, type SealedPassphrase as e9, type SyncStatus as eA, type SyncTarget as eB, type SyncTargetRole as eC, SyncTransaction as eD, type SyncTransactionResult as eE, type TabChannel as eF, type TabCoordinationOptions as eG, type TabLockManager as eH, type TabPresence as eI, type TabRole as eJ, type TierMode as eK, type TranslatorAuditEntry as eL, type TxOp as eM, USER_ENVELOPE_COLLECTION as eN, USER_ENVELOPE_MAX_BYTES as eO, type Unsubscribe as eP, type UpdateAuthenticatorOptions as eQ, type UpdateContext as eR, type UpdateUserOptions as eS, UserApi as eT, type UserEnvelopeCheckGate as eU, UserEnvelopeOversizedError as eV, type UserEnvelopePresented as eW, type UserInfo as eX, type VaultBackup as eY, VaultGroup as eZ, type VaultGroupOptions as e_, type SequenceHandle as ea, SequenceStore as eb, type SessionPolicy as ec, type SetPublicEnvelopeInput as ed, type ShamirRecoveryDoc as ee, type ShamirRecoveryEntry as ef, ShardedCollection as eg, ShardedGroupedQuery as eh, ShardedQuery as ei, type ShardingConfig as ej, type SkippedVault as ek, type SlotRewrapCeremony as el, type SlotRewrapContext as em, type StandardSchemaV1 as en, type StandardSchemaV1Issue as eo, type StandardSchemaV1SyncResult as ep, StateManagementVault as eq, type StoreAuth as er, type StoreAuthKind as es, type StoreCapabilities as et, type StoreTime as eu, SyncEngine as ev, type SyncMetadata as ew, type SyncPolicy as ex, SyncScheduler as ey, type SyncSchedulerStatus as ez, type I18nTextDescriptor as f, withDeferredNumbering as f$, type VaultRegistryRow as f0, type VaultSchemaSnapshot as f1, type VaultSnapshot as f2, type VaultTemplate as f3, type WarningRules as f4, WeakPassphraseError as f5, type WeakPassphraseReason as f6, type WithArchiveOptions as f7, type WrappedDeksBlob as f8, type WriteConflict as f9, loadActiveDelegations as fA, loadPaperRecoveryEntries as fB, loadSealedPassphrase as fC, loadShamirRecoveryEntries as fD, magicLinkGrantRecordId as fE, mintPaperRecoveryEntry as fF, mintShamirRecoveryEntry as fG, mintWrappedDeksBlob as fH, parseSealedEnvelope as fI, readMagicLinkGrantRecord as fJ, recoverUser as fK, removeAuthenticator as fL, resolveSchema as fM, revokeDelegation as fN, revokeMagicLinkGrant as fO, savePaperRecoveryEntries as fP, saveSealedPassphrase as fQ, saveShamirRecoveryEntries as fR, unwrapDeksFromBlob as fS, unwrapDeksFromPaperEntry as fT, unwrapDeksFromShamirEntry as fU, unwrapMagicLinkGrant as fV, validatePassphrase as fW, validatePublicEnvelopeInput as fX, validateSchemaInput as fY, validateSchemaOutput as fZ, withArchive as f_, type WriteEvent as fa, type WriteHook as fb, type WriteQueue as fc, assertStrongPassphrase as fd, buildRecipientKeyringFile as fe, burnPaperRecoveryEntry as ff, createNoydb as fg, createStore as fh, deriveMagicLinkContentKey as fi, enrollAuthenticator as fj, estimateEntropy as fk, evalComputedFields as fl, evaluateExportCapability as fm, evaluateImportCapability as fn, findAuthenticator as fo, hasExportCapability as fp, hasImportCapability as fq, hasRecoveryEnrolled as fr, isMagicLinkGrantExpired as fs, isPublicEnvelope as ft, issueDelegation as fu, recoverPassphrase as fv, rotatePassphrase as fw, listMagicLinkGrants as fx, listUsers as fy, listUsersWithEnvelopes as fz, type I18nTextOptions as g, writeMagicLinkGrant as g0, changeSecret as g1, createOwnerKeyring as g2, ensureCollectionDEK as g3, grant as g4, loadKeyring as g5, persistKeyring as g6, revoke as g7, updateAuthenticator as g8, updateKeyringIdentity as g9, type OnMissingPolicy as h, applyI18nLocale as i, dictCollectionName as j, dictKey as k, enforceScript as l, getAtPath as m, i18nText as n, inferScripts as o, isDictCollectionName as p, isDictKeyDescriptor as q, isI18nTextDescriptor as r, resolveI18nText as s, resolvePolicy as t, setAtPathInPlace as u, validateI18nTextValue as v, type SessionStrategy as w, createEnforcer as x, validateSessionPolicy as y, BLOB_CHUNKS_COLLECTION as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-
|
|
1
|
+
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-V5R2-pd4.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-
|
|
1
|
+
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-BFHQUjdy.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|