@noy-db/hub 0.2.0-pre.6 → 0.2.0-pre.8
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.js +4 -4
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +4 -4
- package/dist/attestation/index.d.ts +4 -4
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +5 -5
- package/dist/blobs/index.d.ts +5 -5
- package/dist/blobs/index.js +5 -5
- package/dist/bundle/index.cjs +420 -29
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +6 -6
- package/dist/bundle/index.d.ts +6 -6
- package/dist/bundle/index.js +12 -12
- package/dist/{chunk-JICBEFBT.js → chunk-22DWZL57.js} +63 -27
- package/dist/chunk-22DWZL57.js.map +1 -0
- package/dist/{chunk-XDW37COG.js → chunk-2GLDA55J.js} +212 -7
- package/dist/chunk-2GLDA55J.js.map +1 -0
- package/dist/{chunk-RIHZBSWJ.js → chunk-2WUSG3IT.js} +3 -3
- package/dist/{chunk-JSYTGEX4.js → chunk-3BFJOWSU.js} +3 -3
- package/dist/{chunk-Y3P5DEMZ.js → chunk-3YPCK6JX.js} +6 -6
- package/dist/{chunk-A4JNVBPF.js → chunk-53XBRIRT.js} +5 -5
- package/dist/{chunk-CKH247ZR.js → chunk-5T22KDPN.js} +4 -4
- package/dist/{chunk-PX3MJ6RB.js → chunk-5XHKQ56N.js} +3 -3
- package/dist/{chunk-W277AG6N.js → chunk-6774ZOQ7.js} +170 -57
- package/dist/chunk-6774ZOQ7.js.map +1 -0
- package/dist/chunk-6STK5TQP.js +139 -0
- package/dist/chunk-6STK5TQP.js.map +1 -0
- package/dist/{chunk-6HJ2ZALB.js → chunk-B6PB7JLN.js} +66 -2
- package/dist/chunk-B6PB7JLN.js.map +1 -0
- package/dist/{chunk-5QPF2MJ5.js → chunk-BVRYKATC.js} +3 -3
- package/dist/{chunk-UGVDIOY7.js → chunk-DE6GKS6G.js} +2 -2
- package/dist/{chunk-R4LTCI6O.js → chunk-DFMLEQZB.js} +2 -2
- package/dist/{chunk-34XGYMQT.js → chunk-DJHHA6XH.js} +2 -2
- package/dist/{chunk-OPD3PZOG.js → chunk-DL3HWOQ5.js} +4 -4
- package/dist/{chunk-DFCINPB5.js → chunk-DO7C2TOG.js} +2 -2
- package/dist/{chunk-T6MTNGBM.js → chunk-DONMZAD2.js} +4 -4
- package/dist/{chunk-ARZAHCCF.js → chunk-F3GDRNUT.js} +3 -3
- package/dist/{chunk-XVJFFGTG.js → chunk-H2X3ISXG.js} +3 -3
- package/dist/{chunk-R7JTYCRX.js → chunk-HNRHLRDC.js} +2 -2
- package/dist/{chunk-E225X5CQ.js → chunk-I5FOWO4J.js} +3 -3
- package/dist/{chunk-ZQMYB56Z.js → chunk-JWRVQKRZ.js} +3 -3
- package/dist/{chunk-LWFQYT4N.js → chunk-K3DK3NU5.js} +2 -2
- package/dist/{chunk-WEA4TDTJ.js → chunk-ML236QKC.js} +3 -3
- package/dist/{chunk-G26QAQNI.js → chunk-NONAAENK.js} +2 -2
- package/dist/{chunk-YEHUEUNP.js → chunk-O3VZPBZG.js} +4 -4
- package/dist/{chunk-HIELMTUK.js → chunk-OIF6LZUR.js} +2 -2
- package/dist/{chunk-ED3E3OLO.js → chunk-OQ6PIGHA.js} +2 -2
- package/dist/{chunk-6A4AMQ2H.js → chunk-PE2FR4J3.js} +4 -4
- package/dist/{chunk-EKTOYEZ3.js → chunk-PP6W64Y3.js} +2 -2
- package/dist/{chunk-SGSHQ4PH.js → chunk-PX35GA7L.js} +5 -5
- package/dist/{chunk-YJ46RFCD.js → chunk-QEILDE6R.js} +2 -2
- package/dist/{chunk-KGFV72WK.js → chunk-QODLLGQ7.js} +5 -5
- package/dist/{chunk-2GMRNNI3.js → chunk-RAZ4OVLL.js} +2 -2
- package/dist/{chunk-25WFLKOH.js → chunk-SYMWGEET.js} +2 -2
- package/dist/{chunk-7TX7HN42.js → chunk-T7JEBOGN.js} +20 -3
- package/dist/chunk-T7JEBOGN.js.map +1 -0
- package/dist/{chunk-LJO6Q3X6.js → chunk-TFBP23BX.js} +3 -3
- package/dist/{chunk-ICH4AIGL.js → chunk-TV3YZ35S.js} +5 -1
- package/dist/chunk-TV3YZ35S.js.map +1 -0
- package/dist/{chunk-TNBIWSQ7.js → chunk-U26HQ6KJ.js} +2 -2
- package/dist/{chunk-CGJFCT3X.js → chunk-VTKGMEPP.js} +2 -2
- package/dist/{chunk-5VMTAX4Y.js → chunk-W6EQLGMB.js} +2 -2
- package/dist/{chunk-5OVIFUQE.js → chunk-WIRRPTFH.js} +1 -1
- package/dist/chunk-WIRRPTFH.js.map +1 -0
- package/dist/{chunk-PS5G6A3Y.js → chunk-WPLVTJ5D.js} +4 -4
- package/dist/{chunk-MDIC4FAU.js → chunk-XJFLDA7A.js} +2 -2
- package/dist/{chunk-CCC25PA7.js → chunk-ZYWZWG6G.js} +5 -5
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-5UDZZL26.js → crypto-HTZ4FJOP.js} +3 -3
- package/dist/{delegation-42LO4WFO.js → delegation-RI54P6I5.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +6 -6
- package/dist/derivations/index.d.ts +6 -6
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-Dy1qVpkL.d.cts → dev-unlock-M4VAWNq_.d.cts} +1 -1
- package/dist/{dev-unlock-Cvo-xCQC.d.ts → dev-unlock-p3ysikWP.d.ts} +1 -1
- package/dist/executor-5PNY7LGW.js +8 -0
- package/dist/executor-B4QIYGZX.js +8 -0
- package/dist/executor-BWXXDQ7K.js +11 -0
- package/dist/{fanout-sidecar-EVICRM46.js → fanout-sidecar-OKPMMPLG.js} +2 -2
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +6 -6
- package/dist/guards/index.d.ts +6 -6
- package/dist/guards/index.js +3 -3
- package/dist/{hash-BgEQklQc.d.cts → hash-BPsYPcv_.d.cts} +1 -1
- package/dist/{hash-BAlWR4WD.d.ts → hash-C1GtiOhR.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +6 -6
- package/dist/history/index.d.ts +6 -6
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs +217 -22
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +5 -5
- package/dist/i18n/index.d.ts +5 -5
- package/dist/i18n/index.js +16 -5
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-5I0MZ0jQ.d.cts → index-4fBVt8j9.d.cts} +104 -7
- package/dist/{index-fIPPh5dg.d.ts → index-D8I_pyJD.d.ts} +104 -7
- package/dist/index.cjs +625 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +70 -52
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs +4 -0
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.d.cts +3 -3
- package/dist/indexing/index.d.ts +3 -3
- package/dist/indexing/index.js +4 -4
- package/dist/issue-VGDPP4B5.js +12 -0
- package/dist/{lazy-builder-D1MyR1qH.d.ts → lazy-builder-7tIpFyWN.d.ts} +1 -1
- package/dist/{lazy-builder-DXlSCNCJ.d.cts → lazy-builder-wY4pMCEe.d.cts} +1 -1
- package/dist/{ledger-UX4QIHWI.js → ledger-TMRZYNVJ.js} +5 -5
- package/dist/materialized-views/index.cjs +18 -1
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +10 -8
- package/dist/materialized-views/index.d.ts +10 -8
- package/dist/materialized-views/index.js +12 -12
- package/dist/noydb-LZBH3XDK.js +34 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +6 -6
- package/dist/overlay-views/index.d.ts +6 -6
- package/dist/overlay-views/index.js +6 -6
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +5 -5
- package/dist/periods/index.d.ts +5 -5
- package/dist/periods/index.js +5 -5
- package/dist/{predicate-B0IKeBXx.d.cts → predicate-BSAGEyu5.d.cts} +26 -2
- package/dist/{predicate-B0IKeBXx.d.ts → predicate-BSAGEyu5.d.ts} +26 -2
- package/dist/{public-envelope-YKHKP74C.js → public-envelope-BW6OXORV.js} +4 -4
- package/dist/query/index.cjs +244 -4
- 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 +12 -6
- package/dist/registry-3QP3YKQS.js +8 -0
- package/dist/{registry-4NEW7LQY.js → registry-OJIOSBV6.js} +3 -3
- package/dist/registry-USRVT6YF.js +8 -0
- package/dist/{revoke-R5NIQ74J.js → revoke-JCC7N56X.js} +6 -6
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +6 -6
- package/dist/session/index.d.ts +6 -6
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +5 -5
- package/dist/shadow/index.d.ts +5 -5
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-WGDJNWSU.js → signer-72QAUSVW.js} +5 -5
- package/dist/snapshots/index.cjs +903 -0
- package/dist/snapshots/index.cjs.map +1 -0
- package/dist/snapshots/index.d.cts +21 -0
- package/dist/snapshots/index.d.ts +21 -0
- package/dist/snapshots/index.js +118 -0
- package/dist/snapshots/index.js.map +1 -0
- package/dist/{stale-74WGLVZ2.js → stale-6ZDBTQT7.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +5 -5
- package/dist/store/index.d.ts +5 -5
- package/dist/store/index.js +2 -2
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +4 -4
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +5 -5
- package/dist/team/index.d.ts +5 -5
- package/dist/team/index.js +8 -8
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +5 -5
- package/dist/tx/index.d.ts +5 -5
- package/dist/tx/index.js +3 -3
- package/dist/{types-DlnZh1_i.d.ts → types-DGU60JDt.d.ts} +235 -7
- package/dist/{types-DVlvNn2c.d.cts → types-DjunxzJa.d.cts} +235 -7
- package/dist/{ulid-CzPONlhG.d.ts → ulid-BFJkYRRW.d.ts} +1 -1
- package/dist/{ulid-r98nkjVd.d.cts → ulid-DPeuPgi3.d.cts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-derivation-BMQ9pIHe.d.cts → with-derivation-Df0kMlED.d.cts} +1 -1
- package/dist/{with-derivation-B98shCV8.d.ts → with-derivation-DfOpKjFw.d.ts} +1 -1
- package/dist/{with-guard-DmT50nVG.d.ts → with-guard-0KksDtSR.d.ts} +1 -1
- package/dist/{with-guard-DUnC3JDN.d.cts → with-guard-C6W5RVrH.d.cts} +1 -1
- package/dist/{with-materialized-view-Bp_M3sNG.d.ts → with-materialized-view-BiasFcYx.d.ts} +1 -1
- package/dist/{with-materialized-view-eMTZ65_J.d.cts → with-materialized-view-BmDKyHrm.d.cts} +1 -1
- package/dist/{with-overlayed-view-BoY6PB3n.d.cts → with-overlayed-view-CA66vhHz.d.cts} +1 -1
- package/dist/{with-overlayed-view-zzSnRQmS.d.ts → with-overlayed-view-CQViuko_.d.ts} +1 -1
- package/package.json +15 -4
- package/dist/chunk-5OVIFUQE.js.map +0 -1
- package/dist/chunk-6HJ2ZALB.js.map +0 -1
- package/dist/chunk-7TX7HN42.js.map +0 -1
- package/dist/chunk-ICH4AIGL.js.map +0 -1
- package/dist/chunk-JICBEFBT.js.map +0 -1
- package/dist/chunk-W277AG6N.js.map +0 -1
- package/dist/chunk-XDW37COG.js.map +0 -1
- package/dist/executor-AWCHQ2KN.js +0 -8
- package/dist/executor-RWICJI7J.js +0 -11
- package/dist/executor-SOLEQVUB.js +0 -8
- package/dist/issue-IODMTPME.js +0 -12
- package/dist/noydb-FY2666NY.js +0 -34
- package/dist/registry-446I2NMN.js +0 -8
- package/dist/registry-524KJZG4.js +0 -8
- /package/dist/{chunk-RIHZBSWJ.js.map → chunk-2WUSG3IT.js.map} +0 -0
- /package/dist/{chunk-JSYTGEX4.js.map → chunk-3BFJOWSU.js.map} +0 -0
- /package/dist/{chunk-Y3P5DEMZ.js.map → chunk-3YPCK6JX.js.map} +0 -0
- /package/dist/{chunk-A4JNVBPF.js.map → chunk-53XBRIRT.js.map} +0 -0
- /package/dist/{chunk-CKH247ZR.js.map → chunk-5T22KDPN.js.map} +0 -0
- /package/dist/{chunk-PX3MJ6RB.js.map → chunk-5XHKQ56N.js.map} +0 -0
- /package/dist/{chunk-5QPF2MJ5.js.map → chunk-BVRYKATC.js.map} +0 -0
- /package/dist/{chunk-UGVDIOY7.js.map → chunk-DE6GKS6G.js.map} +0 -0
- /package/dist/{chunk-R4LTCI6O.js.map → chunk-DFMLEQZB.js.map} +0 -0
- /package/dist/{chunk-34XGYMQT.js.map → chunk-DJHHA6XH.js.map} +0 -0
- /package/dist/{chunk-OPD3PZOG.js.map → chunk-DL3HWOQ5.js.map} +0 -0
- /package/dist/{chunk-DFCINPB5.js.map → chunk-DO7C2TOG.js.map} +0 -0
- /package/dist/{chunk-T6MTNGBM.js.map → chunk-DONMZAD2.js.map} +0 -0
- /package/dist/{chunk-ARZAHCCF.js.map → chunk-F3GDRNUT.js.map} +0 -0
- /package/dist/{chunk-XVJFFGTG.js.map → chunk-H2X3ISXG.js.map} +0 -0
- /package/dist/{chunk-R7JTYCRX.js.map → chunk-HNRHLRDC.js.map} +0 -0
- /package/dist/{chunk-E225X5CQ.js.map → chunk-I5FOWO4J.js.map} +0 -0
- /package/dist/{chunk-ZQMYB56Z.js.map → chunk-JWRVQKRZ.js.map} +0 -0
- /package/dist/{chunk-LWFQYT4N.js.map → chunk-K3DK3NU5.js.map} +0 -0
- /package/dist/{chunk-WEA4TDTJ.js.map → chunk-ML236QKC.js.map} +0 -0
- /package/dist/{chunk-G26QAQNI.js.map → chunk-NONAAENK.js.map} +0 -0
- /package/dist/{chunk-YEHUEUNP.js.map → chunk-O3VZPBZG.js.map} +0 -0
- /package/dist/{chunk-HIELMTUK.js.map → chunk-OIF6LZUR.js.map} +0 -0
- /package/dist/{chunk-ED3E3OLO.js.map → chunk-OQ6PIGHA.js.map} +0 -0
- /package/dist/{chunk-6A4AMQ2H.js.map → chunk-PE2FR4J3.js.map} +0 -0
- /package/dist/{chunk-EKTOYEZ3.js.map → chunk-PP6W64Y3.js.map} +0 -0
- /package/dist/{chunk-SGSHQ4PH.js.map → chunk-PX35GA7L.js.map} +0 -0
- /package/dist/{chunk-YJ46RFCD.js.map → chunk-QEILDE6R.js.map} +0 -0
- /package/dist/{chunk-KGFV72WK.js.map → chunk-QODLLGQ7.js.map} +0 -0
- /package/dist/{chunk-2GMRNNI3.js.map → chunk-RAZ4OVLL.js.map} +0 -0
- /package/dist/{chunk-25WFLKOH.js.map → chunk-SYMWGEET.js.map} +0 -0
- /package/dist/{chunk-LJO6Q3X6.js.map → chunk-TFBP23BX.js.map} +0 -0
- /package/dist/{chunk-TNBIWSQ7.js.map → chunk-U26HQ6KJ.js.map} +0 -0
- /package/dist/{chunk-CGJFCT3X.js.map → chunk-VTKGMEPP.js.map} +0 -0
- /package/dist/{chunk-5VMTAX4Y.js.map → chunk-W6EQLGMB.js.map} +0 -0
- /package/dist/{chunk-PS5G6A3Y.js.map → chunk-WPLVTJ5D.js.map} +0 -0
- /package/dist/{chunk-MDIC4FAU.js.map → chunk-XJFLDA7A.js.map} +0 -0
- /package/dist/{chunk-CCC25PA7.js.map → chunk-ZYWZWG6G.js.map} +0 -0
- /package/dist/{crypto-5UDZZL26.js.map → crypto-HTZ4FJOP.js.map} +0 -0
- /package/dist/{delegation-42LO4WFO.js.map → delegation-RI54P6I5.js.map} +0 -0
- /package/dist/{executor-AWCHQ2KN.js.map → executor-5PNY7LGW.js.map} +0 -0
- /package/dist/{executor-RWICJI7J.js.map → executor-B4QIYGZX.js.map} +0 -0
- /package/dist/{executor-SOLEQVUB.js.map → executor-BWXXDQ7K.js.map} +0 -0
- /package/dist/{fanout-sidecar-EVICRM46.js.map → fanout-sidecar-OKPMMPLG.js.map} +0 -0
- /package/dist/{issue-IODMTPME.js.map → issue-VGDPP4B5.js.map} +0 -0
- /package/dist/{ledger-UX4QIHWI.js.map → ledger-TMRZYNVJ.js.map} +0 -0
- /package/dist/{noydb-FY2666NY.js.map → noydb-LZBH3XDK.js.map} +0 -0
- /package/dist/{public-envelope-YKHKP74C.js.map → public-envelope-BW6OXORV.js.map} +0 -0
- /package/dist/{registry-446I2NMN.js.map → registry-3QP3YKQS.js.map} +0 -0
- /package/dist/{registry-4NEW7LQY.js.map → registry-OJIOSBV6.js.map} +0 -0
- /package/dist/{registry-524KJZG4.js.map → registry-USRVT6YF.js.map} +0 -0
- /package/dist/{revoke-R5NIQ74J.js.map → revoke-JCC7N56X.js.map} +0 -0
- /package/dist/{signer-WGDJNWSU.js.map → signer-72QAUSVW.js.map} +0 -0
- /package/dist/{stale-74WGLVZ2.js.map → stale-6ZDBTQT7.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-
|
|
1
|
+
import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-wY4pMCEe.cjs';
|
|
2
2
|
import { b as AggregateSpec, A as AggregateStrategy } from './strategy-DSTrsZ8t.cjs';
|
|
3
3
|
import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.cjs';
|
|
4
|
-
import { N as NoydbError, Q as Query,
|
|
5
|
-
import { F as FieldClause, I as IndexDef, C as CollectionIndexes } from './predicate-
|
|
4
|
+
import { N as NoydbError, Q as Query, aw as RefRegistry, at as RefDescriptor, a7 as JoinableSource, ay as RefViolation, az as ScanBuilder } from './index-4fBVt8j9.cjs';
|
|
5
|
+
import { F as FieldClause, I as IndexDef, C as CollectionIndexes } from './predicate-BSAGEyu5.cjs';
|
|
6
6
|
import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1644,6 +1644,51 @@ interface PeriodsStrategy {
|
|
|
1644
1644
|
appendPeriodLedgerEntry(ledger: LedgerStore | null, actor: string, envelope: EncryptedEnvelope, periodName: string): Promise<void>;
|
|
1645
1645
|
}
|
|
1646
1646
|
|
|
1647
|
+
/**
|
|
1648
|
+
* Per-layer i18n resolution policy.
|
|
1649
|
+
*
|
|
1650
|
+
* `onMissing` governs what happens when a multilingual field is resolved
|
|
1651
|
+
* to a target locale that is absent. It may be a single scalar policy or
|
|
1652
|
+
* a per-layer map, so a field can be lenient at the app read boundary but
|
|
1653
|
+
* strict inside a materialized view.
|
|
1654
|
+
*
|
|
1655
|
+
* Effective policy for layer `λ`:
|
|
1656
|
+
*
|
|
1657
|
+
* ```
|
|
1658
|
+
* explicit(λ) = typeof onMissing === 'object' ? onMissing[λ] : undefined
|
|
1659
|
+
* scalar = typeof onMissing === 'string' ? onMissing : undefined
|
|
1660
|
+
* policy(λ) = explicit(λ) ?? layerDefault(λ) ?? scalar ?? 'throw'
|
|
1661
|
+
* ```
|
|
1662
|
+
*
|
|
1663
|
+
* - `layerDefault('guard') = 'substitute'` — guards are lenient unless
|
|
1664
|
+
* EXPLICITLY overridden; they never inherit a scalar policy (a guard
|
|
1665
|
+
* reading a display value must not hard-fail on a missing locale).
|
|
1666
|
+
* - every other layer has no default, so it inherits the scalar, else
|
|
1667
|
+
* falls back to `'throw'` (today's behavior — zero breaking change).
|
|
1668
|
+
*
|
|
1669
|
+
* @public
|
|
1670
|
+
*/
|
|
1671
|
+
type OnMissing = 'substitute' | 'null' | 'throw';
|
|
1672
|
+
/**
|
|
1673
|
+
* The contexts in which a multilingual field is resolved. Each can carry
|
|
1674
|
+
* its own `onMissing` policy.
|
|
1675
|
+
*
|
|
1676
|
+
* - `read` — ordinary app reads (`get`/`list`/query projection).
|
|
1677
|
+
* - `guard` — a guard callback reading a value.
|
|
1678
|
+
* - `join` — a joined record expanded onto a row.
|
|
1679
|
+
* - `mv` — materialized-view input.
|
|
1680
|
+
* - `derivation` — derivation input.
|
|
1681
|
+
* - `export` — bundle/public-envelope export.
|
|
1682
|
+
*/
|
|
1683
|
+
type Layer = 'read' | 'guard' | 'join' | 'mv' | 'derivation' | 'export';
|
|
1684
|
+
/** Field-level policy: a single scalar, or a per-layer map. */
|
|
1685
|
+
type OnMissingPolicy = OnMissing | Partial<Record<Layer, OnMissing>>;
|
|
1686
|
+
/**
|
|
1687
|
+
* Resolve the effective `OnMissing` for a layer from a field's declared
|
|
1688
|
+
* policy. See module docs for the resolution rule.
|
|
1689
|
+
*/
|
|
1690
|
+
declare function resolvePolicy(onMissing: OnMissingPolicy | undefined, layer: Layer): OnMissing;
|
|
1691
|
+
|
|
1647
1692
|
/**
|
|
1648
1693
|
* i18nText schema type —
|
|
1649
1694
|
*
|
|
@@ -1685,6 +1730,37 @@ interface PeriodsStrategy {
|
|
|
1685
1730
|
* Pluralization, RTL rendering, date/number formatting, per-locale CRDT
|
|
1686
1731
|
* merging.
|
|
1687
1732
|
*/
|
|
1733
|
+
|
|
1734
|
+
/** Flatten an intersection into a single object literal for nicer hovers. */
|
|
1735
|
+
type Prettify<T> = {
|
|
1736
|
+
[K in keyof T]: T[K];
|
|
1737
|
+
} & {};
|
|
1738
|
+
/**
|
|
1739
|
+
* The stored shape of a multilingual field, inferred from its `required`
|
|
1740
|
+
* mode — so the compiler forces you to handle an absent optional locale
|
|
1741
|
+
* (`string | undefined`) instead of silently yielding `undefined`.
|
|
1742
|
+
*
|
|
1743
|
+
* Mirrors `i18nText({ languages, required })`:
|
|
1744
|
+
* - `'all'` (default) — every locale required: `{ th: string; en: string }`
|
|
1745
|
+
* - `'any'` — every locale optional: `{ th?: string; en?: string }`
|
|
1746
|
+
* (the "at least one present" guarantee is runtime-only — not expressible
|
|
1747
|
+
* in TypeScript — so each key is optional)
|
|
1748
|
+
* - `readonly L[]` — listed locales required, the rest optional:
|
|
1749
|
+
* `I18nMap<'th'|'en', ['th']>` → `{ th: string; en?: string }`
|
|
1750
|
+
*
|
|
1751
|
+
* @example
|
|
1752
|
+
* ```ts
|
|
1753
|
+
* type Lang = 'th' | 'en'
|
|
1754
|
+
* interface Contact {
|
|
1755
|
+
* name: I18nMap<Lang, 'any'> // { th?: string; en?: string }
|
|
1756
|
+
* legalName: I18nMap<Lang, ['th']> // { th: string; en?: string }
|
|
1757
|
+
* slug: I18nMap<Lang> // { th: string; en: string }
|
|
1758
|
+
* }
|
|
1759
|
+
* ```
|
|
1760
|
+
*
|
|
1761
|
+
* @public
|
|
1762
|
+
*/
|
|
1763
|
+
type I18nMap<Langs extends string, Required extends 'all' | 'any' | readonly Langs[] = 'all'> = Required extends 'all' ? Record<Langs, string> : Required extends 'any' ? Partial<Record<Langs, string>> : Required extends readonly (infer R extends Langs)[] ? Prettify<Record<R, string> & Partial<Record<Exclude<Langs, R>, string>>> : never;
|
|
1688
1764
|
/**
|
|
1689
1765
|
* Options for `i18nText()`.
|
|
1690
1766
|
*
|
|
@@ -1713,6 +1789,38 @@ interface I18nTextOptions {
|
|
|
1713
1789
|
* before `put()` if a translator is configured. Default: `false`.
|
|
1714
1790
|
*/
|
|
1715
1791
|
readonly autoTranslate?: boolean;
|
|
1792
|
+
/**
|
|
1793
|
+
* What to do when this field is resolved to a locale that is absent.
|
|
1794
|
+
* A single policy, or a per-layer map (read/guard/join/mv/derivation/
|
|
1795
|
+
* export). Default `'throw'` — today's behavior, zero breaking change.
|
|
1796
|
+
* See {@link OnMissingPolicy}.
|
|
1797
|
+
*
|
|
1798
|
+
* NOTE (current wiring): the `read` layer (`get`/`list`) is enforced.
|
|
1799
|
+
* Guard, derivation, mv, join and export reads currently resolve
|
|
1800
|
+
* through the same read path and so observe the `read`/scalar policy;
|
|
1801
|
+
* dedicated per-layer enforcement for those contexts is a tracked
|
|
1802
|
+
* follow-up (mv/join additionally require resolution to be injected
|
|
1803
|
+
* into the query/aggregate pipeline, which today reads raw maps).
|
|
1804
|
+
*/
|
|
1805
|
+
readonly onMissing?: OnMissingPolicy;
|
|
1806
|
+
/**
|
|
1807
|
+
* Ordered preferred-substitute locales used when `onMissing` resolves
|
|
1808
|
+
* to `'substitute'` and the target locale is absent. `'any'` as an
|
|
1809
|
+
* element means "first non-empty value". A caller-supplied `fallback`
|
|
1810
|
+
* at read time takes precedence over this declared list.
|
|
1811
|
+
*/
|
|
1812
|
+
readonly substitute?: readonly string[];
|
|
1813
|
+
/**
|
|
1814
|
+
* Per-locale script enforcement (write-time). `'auto'` infers the
|
|
1815
|
+
* allowed Unicode scripts per locale (asymmetric Latin tolerance); an
|
|
1816
|
+
* object overrides per slot. Absent ⇒ no check. See `./script.ts`.
|
|
1817
|
+
*/
|
|
1818
|
+
readonly script?: 'auto' | Partial<Record<string, readonly string[]>>;
|
|
1819
|
+
/**
|
|
1820
|
+
* What to do when a slot's value contains characters outside its
|
|
1821
|
+
* allowed script set. Default `'reject'`.
|
|
1822
|
+
*/
|
|
1823
|
+
readonly onScriptViolation?: 'reject' | 'filter' | 'warn';
|
|
1716
1824
|
}
|
|
1717
1825
|
/**
|
|
1718
1826
|
* Descriptor returned by `i18nText()`. Attach to the collection's
|
|
@@ -1767,7 +1875,15 @@ declare function validateI18nTextValue(value: unknown, field: string, descriptor
|
|
|
1767
1875
|
* @param field Field name used in `LocaleNotSpecifiedError` messages.
|
|
1768
1876
|
* @returns The resolved string, OR the original map when `locale === 'raw'`.
|
|
1769
1877
|
*/
|
|
1878
|
+
/** Options for the policy-aware form of {@link resolveI18nText}. */
|
|
1879
|
+
interface ResolveI18nOptions {
|
|
1880
|
+
/** Effective policy for the resolution layer. Default `'throw'`. */
|
|
1881
|
+
readonly policy?: OnMissing;
|
|
1882
|
+
/** Declared substitute chain; applied only under policy `'substitute'`. */
|
|
1883
|
+
readonly substitute?: readonly string[];
|
|
1884
|
+
}
|
|
1770
1885
|
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback?: string | readonly string[], field?: string): string | Record<string, string>;
|
|
1886
|
+
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback: string | readonly string[] | undefined, field: string | undefined, opts: ResolveI18nOptions): string | Record<string, string> | null;
|
|
1771
1887
|
/**
|
|
1772
1888
|
* Return all leaf values at `path`, expanding `[].` array wildcards.
|
|
1773
1889
|
*
|
|
@@ -1799,8 +1915,12 @@ declare function setAtPathInPlace(obj: Record<string, unknown>, path: string, va
|
|
|
1799
1915
|
* @param i18nFields Map of field path → `I18nTextDescriptor`.
|
|
1800
1916
|
* @param locale The requested locale (or `'raw'`).
|
|
1801
1917
|
* @param fallback Fallback chain (optional).
|
|
1918
|
+
* @param layer Resolution layer (default `'read'`). Each field's
|
|
1919
|
+
* `onMissing` policy is resolved for this layer, so the
|
|
1920
|
+
* same record resolves leniently on a get but strictly
|
|
1921
|
+
* inside an mv/derivation.
|
|
1802
1922
|
*/
|
|
1803
|
-
declare function applyI18nLocale(record: Record<string, unknown>, i18nFields: Record<string, I18nTextDescriptor>, locale: string, fallback?: string | readonly string[]): Record<string, unknown>;
|
|
1923
|
+
declare function applyI18nLocale(record: Record<string, unknown>, i18nFields: Record<string, I18nTextDescriptor>, locale: string, fallback?: string | readonly string[], layer?: Layer): Record<string, unknown>;
|
|
1804
1924
|
|
|
1805
1925
|
type EventHandler<T> = (data: T) => void;
|
|
1806
1926
|
/** Typed event emitter for NOYDB events. */
|
|
@@ -2325,6 +2445,16 @@ interface DictKeyDescriptor<Keys extends string = string> {
|
|
|
2325
2445
|
readonly name: string;
|
|
2326
2446
|
/** Declared valid keys. When set, `put()` rejects keys not in this set. */
|
|
2327
2447
|
readonly keys: readonly Keys[] | undefined;
|
|
2448
|
+
/**
|
|
2449
|
+
* What to do when a label is missing for the resolved locale. Mirrors
|
|
2450
|
+
* `i18nText`'s `onMissing`. Default behavior (when unset) preserves the
|
|
2451
|
+
* legacy contract: a missing label is omitted (scalar) or `null`
|
|
2452
|
+
* (array element) — i.e. `'null'`. Set `'substitute'` to walk the
|
|
2453
|
+
* declared `substitute` chain, or `'throw'` to raise.
|
|
2454
|
+
*/
|
|
2455
|
+
readonly onMissing?: OnMissingPolicy;
|
|
2456
|
+
/** Ordered preferred-substitute locales for label resolution. */
|
|
2457
|
+
readonly substitute?: readonly string[];
|
|
2328
2458
|
}
|
|
2329
2459
|
/**
|
|
2330
2460
|
* Create a `DictKeyDescriptor` for a dictionary-backed enum field.
|
|
@@ -2343,7 +2473,10 @@ interface DictKeyDescriptor<Keys extends string = string> {
|
|
|
2343
2473
|
* })
|
|
2344
2474
|
* ```
|
|
2345
2475
|
*/
|
|
2346
|
-
declare function dictKey<Keys extends string>(name: string, keys?: readonly Keys[]
|
|
2476
|
+
declare function dictKey<Keys extends string>(name: string, keys?: readonly Keys[], opts?: {
|
|
2477
|
+
onMissing?: OnMissingPolicy;
|
|
2478
|
+
substitute?: readonly string[];
|
|
2479
|
+
}): DictKeyDescriptor<Keys>;
|
|
2347
2480
|
/** Runtime predicate for detecting a DictKeyDescriptor. */
|
|
2348
2481
|
declare function isDictKeyDescriptor(x: unknown): x is DictKeyDescriptor;
|
|
2349
2482
|
/**
|
|
@@ -2487,6 +2620,32 @@ declare class DictionaryHandle<Keys extends string = string> {
|
|
|
2487
2620
|
resolveLabel(key: string, locale: string, fallback?: string | readonly string[]): Promise<string | undefined>;
|
|
2488
2621
|
}
|
|
2489
2622
|
|
|
2623
|
+
/**
|
|
2624
|
+
* Infer the allowed Unicode scripts for a BCP-47 locale, with asymmetric
|
|
2625
|
+
* Latin tolerance. A script subtag (`th-Latn`) wins over the base
|
|
2626
|
+
* language. Unknown locales default to `['Latin']`.
|
|
2627
|
+
*/
|
|
2628
|
+
declare function inferScripts(locale: string): readonly string[];
|
|
2629
|
+
/** A non-fatal script violation recorded under `'filter'`/`'warn'` modes. */
|
|
2630
|
+
interface ScriptWarning {
|
|
2631
|
+
readonly field: string;
|
|
2632
|
+
readonly locale: string;
|
|
2633
|
+
readonly expected: readonly string[];
|
|
2634
|
+
readonly sample: string;
|
|
2635
|
+
}
|
|
2636
|
+
/**
|
|
2637
|
+
* Enforce a field's script constraint over an i18nText value map.
|
|
2638
|
+
*
|
|
2639
|
+
* - No `script` option ⇒ returns the value unchanged.
|
|
2640
|
+
* - `onScriptViolation: 'reject'` (default) ⇒ throws {@link ScriptViolationError}.
|
|
2641
|
+
* - `'filter'` ⇒ returns a copy with disallowed characters stripped + warnings.
|
|
2642
|
+
* - `'warn'` ⇒ returns the value unchanged + warnings.
|
|
2643
|
+
*/
|
|
2644
|
+
declare function enforceScript(value: Record<string, unknown>, field: string, descriptor: I18nTextDescriptor): {
|
|
2645
|
+
value: Record<string, unknown>;
|
|
2646
|
+
warnings: ScriptWarning[];
|
|
2647
|
+
};
|
|
2648
|
+
|
|
2490
2649
|
/**
|
|
2491
2650
|
* Strategy seam for the optional i18n (multi-locale + dictionary)
|
|
2492
2651
|
* subsystem. Core imports `I18nStrategy` type-only + `NO_I18N` stub;
|
|
@@ -2548,13 +2707,23 @@ interface I18nStrategy {
|
|
|
2548
2707
|
* return a new object. Returns the input unchanged under
|
|
2549
2708
|
* `NO_I18N`.
|
|
2550
2709
|
*/
|
|
2551
|
-
applyI18nLocale(record: Record<string, unknown>, fields: Record<string, I18nTextDescriptor>, locale: string, fallback?: string | readonly string[]): Record<string, unknown>;
|
|
2710
|
+
applyI18nLocale(record: Record<string, unknown>, fields: Record<string, I18nTextDescriptor>, locale: string, fallback?: string | readonly string[], layer?: Layer): Record<string, unknown>;
|
|
2552
2711
|
/**
|
|
2553
2712
|
* Validate that an i18nText field's value satisfies its descriptor
|
|
2554
2713
|
* (required locales present, etc.). Throws under `NO_I18N` —
|
|
2555
2714
|
* declaring i18nFields without opting in is a misconfiguration.
|
|
2556
2715
|
*/
|
|
2557
2716
|
validateI18nTextValue(value: unknown, field: string, descriptor: I18nTextDescriptor): void;
|
|
2717
|
+
/**
|
|
2718
|
+
* Enforce per-locale script constraints over an i18nText value map
|
|
2719
|
+
* (write-time). Returns the (possibly filtered) value plus any
|
|
2720
|
+
* non-fatal warnings. Returns the value unchanged when the field has
|
|
2721
|
+
* no `script` option, or under `NO_I18N`.
|
|
2722
|
+
*/
|
|
2723
|
+
enforceScript(value: Record<string, unknown>, field: string, descriptor: I18nTextDescriptor): {
|
|
2724
|
+
value: Record<string, unknown>;
|
|
2725
|
+
warnings: ScriptWarning[];
|
|
2726
|
+
};
|
|
2558
2727
|
/**
|
|
2559
2728
|
* Construct a typed `DictionaryHandle` for the named dictionary.
|
|
2560
2729
|
* Throws under `NO_I18N`.
|
|
@@ -4361,6 +4530,36 @@ declare class QuickUnlockStore {
|
|
|
4361
4530
|
private clearTimer;
|
|
4362
4531
|
}
|
|
4363
4532
|
|
|
4533
|
+
interface SnapshotMeta {
|
|
4534
|
+
readonly version: string;
|
|
4535
|
+
readonly label?: string;
|
|
4536
|
+
readonly note?: string;
|
|
4537
|
+
readonly exportedAt: string;
|
|
4538
|
+
readonly exportedBy: string;
|
|
4539
|
+
readonly size: number;
|
|
4540
|
+
/**
|
|
4541
|
+
* `'verified'` — bundle was produced by `writeNoydbBundle(vault, {})`, which embeds
|
|
4542
|
+
* ledgerHead metadata; `vault.load()` runs `verifyBackupIntegrity()` on restore.
|
|
4543
|
+
* `'legacy-unverifiable'` — reserved for v2 import paths that read pre-existing bundles
|
|
4544
|
+
* lacking a ledgerHead; not produced by the current engine.
|
|
4545
|
+
*/
|
|
4546
|
+
readonly integrity: 'verified' | 'legacy-unverifiable';
|
|
4547
|
+
}
|
|
4548
|
+
interface RetentionPolicy {
|
|
4549
|
+
readonly keepLast?: number;
|
|
4550
|
+
readonly maxAgeDays?: number;
|
|
4551
|
+
readonly prune?: boolean;
|
|
4552
|
+
}
|
|
4553
|
+
/** @internal */
|
|
4554
|
+
interface SnapshotStrategy {
|
|
4555
|
+
snapshot(vault: unknown, by: string, opts?: {
|
|
4556
|
+
label?: string;
|
|
4557
|
+
note?: string;
|
|
4558
|
+
}): Promise<SnapshotMeta>;
|
|
4559
|
+
listSnapshots(vaultId: string): Promise<SnapshotMeta[]>;
|
|
4560
|
+
restoreSnapshot(vault: unknown, version: string): Promise<void>;
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4364
4563
|
/**
|
|
4365
4564
|
* Multi-record atomic transactions.
|
|
4366
4565
|
*
|
|
@@ -4790,6 +4989,7 @@ declare class Noydb {
|
|
|
4790
4989
|
private readonly txStrategy;
|
|
4791
4990
|
private readonly sessionStrategy;
|
|
4792
4991
|
private readonly syncStrategy;
|
|
4992
|
+
private readonly snapshotStrategy;
|
|
4793
4993
|
/**
|
|
4794
4994
|
* Currently-running multi-record transaction, set by
|
|
4795
4995
|
* `runTransaction` at the start of Phase 2 (commit) and cleared in
|
|
@@ -5761,6 +5961,27 @@ declare class Noydb {
|
|
|
5761
5961
|
* should use {@link getKeyring}, which returns a defensive copy.
|
|
5762
5962
|
*/
|
|
5763
5963
|
private getKeyringInternal;
|
|
5964
|
+
/**
|
|
5965
|
+
* Take an on-demand checkpoint of the given vault.
|
|
5966
|
+
* Requires `snapshotStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
5967
|
+
* @throws ValidationError when the vault is not open
|
|
5968
|
+
*/
|
|
5969
|
+
snapshot(vault: string, opts?: {
|
|
5970
|
+
label?: string;
|
|
5971
|
+
note?: string;
|
|
5972
|
+
}): Promise<SnapshotMeta>;
|
|
5973
|
+
/**
|
|
5974
|
+
* List all snapshots for the given vault, newest first.
|
|
5975
|
+
* Reads only the sidecar index — does not download snapshot bytes.
|
|
5976
|
+
*/
|
|
5977
|
+
listSnapshots(vault: string): Promise<SnapshotMeta[]>;
|
|
5978
|
+
/**
|
|
5979
|
+
* Restore the vault to a previously snapshotted state.
|
|
5980
|
+
* Runs `verifyBackupIntegrity()` automatically on restore.
|
|
5981
|
+
* @throws SnapshotNotFoundError when `version` doesn't exist in the store
|
|
5982
|
+
* @throws ValidationError when the vault is not open
|
|
5983
|
+
*/
|
|
5984
|
+
restoreSnapshot(vault: string, version: string): Promise<void>;
|
|
5764
5985
|
}
|
|
5765
5986
|
/** Create a new NOYDB instance. */
|
|
5766
5987
|
declare function createNoydb(options: NoydbOptions): Promise<Noydb>;
|
|
@@ -12240,6 +12461,13 @@ interface NoydbOptions {
|
|
|
12240
12461
|
* @internal
|
|
12241
12462
|
*/
|
|
12242
12463
|
readonly syncStrategy?: SyncStrategy;
|
|
12464
|
+
/**
|
|
12465
|
+
* Tree-shake seam — optional snapshot-lifecycle subsystem. Pass
|
|
12466
|
+
* `withSnapshots({ store })` from `@noy-db/hub/snapshots` to enable
|
|
12467
|
+
* `db.snapshot()`, `db.listSnapshots()`, and `db.restoreSnapshot()`.
|
|
12468
|
+
* When omitted, all three methods throw with a pointer at the subpath.
|
|
12469
|
+
*/
|
|
12470
|
+
readonly snapshotStrategy?: SnapshotStrategy;
|
|
12243
12471
|
/**
|
|
12244
12472
|
* Optional guard strategies — collection-level write guards. Each
|
|
12245
12473
|
* handle is the output of `withGuard()` from `@noy-db/hub/guards`.
|
|
@@ -12545,4 +12773,4 @@ interface DeleteManyResult {
|
|
|
12545
12773
|
}>;
|
|
12546
12774
|
}
|
|
12547
12775
|
|
|
12548
|
-
export { type ConsentStrategy as $, type BlobFieldPolicy as A, type BlobStrategy as B, type BlobFieldsConfig as C, DICT_COLLECTION_PREFIX as D, type BlobObject as E, type BlobPutOptions as F, type BlobResponseOptions as G, BlobSet as H, type I18nStrategy as I, type BlobStrategyOpenArgs as J, type CompactRunOptions as K, type CompactionContext as L, type CompactionResult as M, DEFAULT_CHUNK_SIZE as N, EXPORT_AUDIT_COLLECTION as O, PolicyEnforcer as P, ExportBlobsAbortedError as Q, type ExportBlobsAuditEntry as R, type SessionStrategy as S, type ExportBlobsHandle as T, type ExportBlobsOptions as U, type ExportedBlob as V, type SlotInfo as W, type SlotRecord as X, type VersionRecord as Y, createExportBlobsHandle as Z, runCompaction as _, type DictEntry as a, LedgerStore as a$, CONSENT_AUDIT_COLLECTION as a0, type ConsentAuditEntry as a1, type ConsentAuditFilter as a2, type ConsentContext as a3, type ConsentOp as a4, loadConsentEntries as a5, writeConsentEntry as a6, type PeriodsStrategy as a7, type CarryForwardContext as a8, type ClosePeriodOptions as a9, type ArrayOutputSpec as aA, DerivationRegistry as aB, type DerivationStrategyHandle as aC, type DerivedFromMeta as aD, type OutputSpec as aE, type RecordOutputSpec as aF, type MaterializedViewStrategy as aG, type MaterializedViewStrategyHandle as aH, type OverlayedViewStrategy as aI, Collection as aJ, OverlayedViewRegistry as aK, type OverlayedViewStrategyHandle as aL, type SyncStrategy as aM, type Role as aN, type UnlockedKeyring as aO, type HistoryStrategy as aP, type NoydbStore as aQ, type HistoryOptions as aR, type EncryptedEnvelope as aS, type PruneOptions as aT, type AppendInput as aU, type ChangeType as aV, CollectionInstant as aW, type DiffEntry as aX, type JsonPatch as aY, type JsonPatchOp as aZ, type LedgerEntry as a_, type OpenPeriodOptions as aa, PERIODS_COLLECTION as ab, type PeriodRecord as ac, type ReadOnlyCollection as ad, appendPeriodLedgerEntry as ae, assertTsWritable as af, chainAnchor as ag, loadPeriods as ah, validatePeriodName as ai, type GuardStrategy as aj, type GuardChange as ak, type GuardContext as al, GuardRegistry as am, type GuardStrategyHandle as an, ReadOnlyVaultFacade as ao, type ShadowStrategy as ap, CollectionFrame as aq, VaultFrame as ar, type TxStrategy as as, type AmendmentTxOptions as at, TxCollection as au, TxContext as av, TxVault as aw, runTransaction as ax, type DerivationStrategy as ay, type DerivationContext as az, type DictKeyDescriptor as b, ELEVATION_AUDIT_COLLECTION as b$, type VaultEngine as b0, VaultInstant as b1, type VerifyResult as b2, applyPatch as b3, canonicalJson as b4, computePatch as b5, diff as b6, formatDiff as b7, hashEntry as b8, paddedIndex as b9, type DirectoryConfig as bA, type UserVisibility as bB, type AccessibleVault as bC, type AffectedDocument as bD, BUNDLE_STORE_POLICY as bE, type BuiltInGateName as bF, type CacheOptions as bG, type CacheStats as bH, type ChangeEvent as bI, type CollectionChangeEvent as bJ, type CollectionConflictResolver as bK, type CollectionDescriptor as bL, type CollectionStats as bM, type Conflict as bN, type ConflictPolicy as bO, type ConflictStrategy as bP, type CrossTierAccessEvent as bQ, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as bR, DELEGATIONS_COLLECTION as bS, type DeepPartial as bT, type DeepPartialOrNull as bU, type DelegationToken as bV, type DeleteManyResult as bW, type DerivationDescriptor as bX, type DirtyEntry as bY, type DryRunResult as bZ, type DumpSchemaOptions as b_, parseIndex as ba, sha256Hex as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, type MVQueryContext as bk, type RegisteredMV as bl, MaterializedViewRegistry as bm, type MaterializedFromMeta as bn, type MaterializedViewOutput as bo, type UnionSource as bp, type UserEnvelope as bq, type GateName as br, type GatePolicy as bs, type VaultPolicy as bt, type ActiveTier as bu, type FactorProof as bv, type SchemaUpdateStrategy as bw, type TransformFn as bx, type PersistedSchemaEnvelope as by, type UpdateDecision as bz, DictionaryHandle as c, type Permissions as c$, ElevatedHandle as c0, type EnrollAuthenticatorOptions as c1, type EnrollAuthenticatorWrappingDEKsOptions as c2, type EnrollAuthenticatorWrappingKEKOptions as c3, type EnrollRecoveryResult as c4, type ExportCapability as c5, type ExportChunk as c6, type ExportFormat as c7, type ExportStreamOptions as c8, type FactorKind as c9, type LocaleReadOptions as cA, Lru as cB, type LruOptions as cC, type LruStats as cD, MAGIC_LINK_CONTENT_INFO_PREFIX as cE, MAGIC_LINK_GRANTS_COLLECTION as cF, MAGIC_LINK_KEK_INFO_PREFIX as cG, type MagicLinkGrantPayload as cH, type MagicLinkGrantRecord as cI, type MaterializedViewDescriptor as cJ, MemoryRecipientSealer as cK, MemorySealingKeyProvider as cL, NOYDB_BACKUP_VERSION as cM, NOYDB_FORMAT_VERSION as cN, NOYDB_KEYRING_VERSION as cO, NOYDB_SYNC_VERSION as cP, Noydb as cQ, type NoydbBundleStore as cR, type NoydbEventMap as cS, type NoydbOptions as cT, type OverlayViewDescriptor as cU, PUBLIC_ENVELOPE_FIELDS as cV, type PaperRecoveryDoc as cW, type PaperRecoveryEntry as cX, type PassphrasePolicy as cY, type PassphraseValidationResult as cZ, type Permission as c_, type FactorProofBundle as ca, type FactorRequirement as cb, type FenceDoc as cc, type FenceState as cd, type FieldChange as ce, type FieldDescriptor as cf, type FieldSource as cg, type GhostRecord as ch, type GrantOptions as ci, type GuardViolation as cj, type HistoryConfig as ck, type HistoryEntry as cl, INDEXED_STORE_POLICY as cm, type ImportCapability as cn, type InferOutput as co, type InternalCollectionStats as cp, type IssueDelegationOptions as cq, type IssueMagicLinkGrantOptions as cr, type KeyringAuthenticator as cs, type KeyringAuthenticatorWrappingDEKs as ct, type KeyringAuthenticatorWrappingKEK as cu, type KeyringFile as cv, type ListAccessibleVaultsOptions as cw, type ListPageResult as cx, type ListUsersOptions as cy, type LiveUserEnvelope as cz, type DictionaryOptions as d, type TabLockManager as d$, type PersistedSchemaKind as d0, type PlaintextTranslatorContext as d1, type PlaintextTranslatorFn as d2, PresenceHandle as d3, type PresencePeer as d4, type PublicEnvelopeField as d5, type PublicEnvelopeSchema as d6, type PublicEnvelopeText as d7, type PullMode as d8, type PullOptions as d9, type SchemaIntrospection as dA, type SealedEnvelope as dB, type SealedPassphrase as dC, type SessionPolicy as dD, type SetPublicEnvelopeInput as dE, type ShamirRecoveryDoc as dF, type ShamirRecoveryEntry as dG, type SlotRewrapCeremony as dH, type SlotRewrapContext as dI, type StandardSchemaV1 as dJ, type StandardSchemaV1Issue as dK, type StandardSchemaV1SyncResult as dL, type StoreAuth as dM, type StoreAuthKind as dN, type StoreCapabilities as dO, SyncEngine as dP, type SyncMetadata as dQ, type SyncPolicy as dR, SyncScheduler as dS, type SyncSchedulerStatus as dT, type SyncStatus as dU, type SyncTarget as dV, type SyncTargetRole as dW, SyncTransaction as dX, type SyncTransactionResult as dY, type TabChannel as dZ, type TabCoordinationOptions as d_, type PullPolicy as da, type PullResult as db, type PushMode as dc, type PushOptions as dd, type PushPolicy as de, type PushResult as df, type PutManyItemOptions as dg, type PutManyOptions as dh, type PutManyResult as di, type QueryAcrossOptions as dj, type QueryAcrossResult as dk, type QuickUnlockState as dl, QuickUnlockStore as dm, type ReAuthOperation as dn, type RecoverPassphraseInput as dp, type RecoverPassphraseResult as dq, type RecoverUserOptions as dr, type RecoveryProof as ds, type ResolvedPublicEnvelopeSchema as dt, type RevokeOptions as du, type RotatePassphraseInput as dv, type RotateRecoveryOptions as dw, type RotateRecoveryResult as dx, SEALED_PASSPHRASE_RECORD_ID as dy, type SchemaDelta as dz, type I18nTextDescriptor as e, revokeDelegation as e$, type TabPresence as e0, type TabRole as e1, type TierMode as e2, type TranslatorAuditEntry as e3, type TxOp as e4, USER_ENVELOPE_COLLECTION as e5, USER_ENVELOPE_MAX_BYTES as e6, type Unsubscribe as e7, type UpdateAuthenticatorOptions as e8, type UpdateContext as e9, evaluateExportCapability as eA, evaluateImportCapability as eB, findAuthenticator as eC, hasExportCapability as eD, hasImportCapability as eE, hasRecoveryEnrolled as eF, isMagicLinkGrantExpired as eG, isPublicEnvelope as eH, issueDelegation as eI, recoverPassphrase as eJ, rotatePassphrase as eK, listMagicLinkGrants as eL, listUsers as eM, listUsersWithEnvelopes as eN, loadActiveDelegations as eO, loadPaperRecoveryEntries as eP, loadSealedPassphrase as eQ, loadShamirRecoveryEntries as eR, magicLinkGrantRecordId as eS, mintPaperRecoveryEntry as eT, mintShamirRecoveryEntry as eU, mintWrappedDeksBlob as eV, parseSealedEnvelope as eW, readMagicLinkGrantRecord as eX, recoverUser as eY, removeAuthenticator as eZ, resolveSchema as e_, type UpdateUserOptions as ea, UserApi as eb, type UserEnvelopeCheckGate as ec, UserEnvelopeOversizedError as ed, type UserEnvelopePresented as ee, type UserInfo as ef, type VaultBackup as eg, type VaultPolicyOnDisk as eh, type VaultSchemaSnapshot as ei, type VaultSnapshot as ej, type WarningRules as ek, WeakPassphraseError as el, type WeakPassphraseReason as em, type WrappedDeksBlob as en, type WriteConflict as eo, type WriteEvent as ep, type WriteHook as eq, type WriteQueue as er, assertStrongPassphrase as es, buildRecipientKeyringFile as et, burnPaperRecoveryEntry as eu, createNoydb as ev, createStore as ew, deriveMagicLinkContentKey as ex, enrollAuthenticator as ey, estimateEntropy as ez, type I18nTextOptions as f, revokeMagicLinkGrant as f0, savePaperRecoveryEntries as f1, saveSealedPassphrase as f2, saveShamirRecoveryEntries as f3, unwrapDeksFromBlob as f4, unwrapDeksFromPaperEntry as f5, unwrapDeksFromShamirEntry as f6, unwrapMagicLinkGrant as f7, validatePassphrase as f8, validatePublicEnvelopeInput as f9, validateSchemaInput as fa, validateSchemaOutput as fb, writeMagicLinkGrant as fc, changeSecret as fd, createOwnerKeyring as fe, ensureCollectionDEK as ff, grant as fg, loadKeyring as fh, persistKeyring as fi, revoke as fj, updateAuthenticator as fk, updateKeyringIdentity as fl, applyI18nLocale as g, dictCollectionName as h, dictKey as i, getAtPath as j, i18nText as k, isDictCollectionName as l, isDictKeyDescriptor as m, isI18nTextDescriptor as n, createEnforcer as o, validateSessionPolicy as p, BLOB_CHUNKS_COLLECTION as q, resolveI18nText as r, setAtPathInPlace as s, BLOB_COLLECTION as t, BLOB_EVICTION_AUDIT_COLLECTION as u, validateI18nTextValue as v, BLOB_INDEX_COLLECTION as w, BLOB_SLOTS_PREFIX as x, BLOB_VERSIONS_PREFIX as y, type BlobEvictionEntry as z };
|
|
12776
|
+
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 UnlockedKeyring 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 SnapshotStrategy as aD, type SnapshotMeta as aE, type TxStrategy as aF, type AmendmentTxOptions as aG, TxCollection as aH, TxContext as aI, TxVault as aJ, runTransaction as aK, type DerivationStrategy as aL, type DerivationContext as aM, type ArrayOutputSpec as aN, DerivationRegistry as aO, type DerivationStrategyHandle as aP, type DerivedFromMeta as aQ, type OutputSpec as aR, type RecordOutputSpec as aS, type MaterializedViewStrategy as aT, type MaterializedViewStrategyHandle as aU, type OverlayedViewStrategy as aV, Collection as aW, OverlayedViewRegistry as aX, type OverlayedViewStrategyHandle as aY, type SyncStrategy as aZ, type Role 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 ConflictPolicy as b$, type HistoryStrategy as b0, type NoydbStore as b1, type HistoryOptions as b2, type EncryptedEnvelope as b3, type PruneOptions as b4, type AppendInput as b5, type ChangeType as b6, CollectionInstant as b7, type DiffEntry as b8, type JsonPatch as b9, type MaterializedFromMeta as bA, type MaterializedViewOutput as bB, type UnionSource as bC, type UserEnvelope as bD, type GateName as bE, type GatePolicy as bF, type VaultPolicy as bG, type ActiveTier as bH, type FactorProof as bI, type SchemaUpdateStrategy as bJ, type TransformFn as bK, type PersistedSchemaEnvelope as bL, type UpdateDecision as bM, type DirectoryConfig as bN, type UserVisibility as bO, type AccessibleVault as bP, type AffectedDocument as bQ, BUNDLE_STORE_POLICY as bR, type BuiltInGateName as bS, type CacheOptions as bT, type CacheStats as bU, type ChangeEvent as bV, type CollectionChangeEvent as bW, type CollectionConflictResolver as bX, type CollectionDescriptor as bY, type CollectionStats as bZ, type Conflict as b_, type JsonPatchOp as ba, type LedgerEntry as bb, LedgerStore as bc, type VaultEngine as bd, VaultInstant as be, type VerifyResult as bf, applyPatch as bg, canonicalJson as bh, computePatch as bi, diff as bj, formatDiff as bk, hashEntry as bl, paddedIndex as bm, parseIndex as bn, sha256Hex as bo, type PublicEnvelope as bp, type SealingKeyProvider as bq, type BundleRecipient as br, type RecipientSealer as bs, type RecipientHint as bt, Vault as bu, type RecoveryEnrollmentInput as bv, type ShamirRecoveryProvider as bw, type MVQueryContext as bx, type RegisteredMV as by, MaterializedViewRegistry as bz, DictionaryHandle as c, NOYDB_KEYRING_VERSION as c$, type ConflictStrategy as c0, type CrossTierAccessEvent as c1, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c2, DELEGATIONS_COLLECTION as c3, type DeepPartial as c4, type DeepPartialOrNull as c5, type DelegationToken as c6, type DeleteManyResult as c7, type DerivationDescriptor as c8, type DirtyEntry as c9, type ImportCapability as cA, type InferOutput as cB, type InternalCollectionStats as cC, type IssueDelegationOptions as cD, type IssueMagicLinkGrantOptions as cE, type KeyringAuthenticator as cF, type KeyringAuthenticatorWrappingDEKs as cG, type KeyringAuthenticatorWrappingKEK as cH, type KeyringFile as cI, type ListAccessibleVaultsOptions as cJ, type ListPageResult as cK, type ListUsersOptions as cL, type LiveUserEnvelope as cM, type LocaleReadOptions as cN, Lru as cO, type LruOptions as cP, type LruStats as cQ, MAGIC_LINK_CONTENT_INFO_PREFIX as cR, MAGIC_LINK_GRANTS_COLLECTION as cS, MAGIC_LINK_KEK_INFO_PREFIX as cT, type MagicLinkGrantPayload as cU, type MagicLinkGrantRecord as cV, type MaterializedViewDescriptor as cW, MemoryRecipientSealer as cX, MemorySealingKeyProvider as cY, NOYDB_BACKUP_VERSION as cZ, NOYDB_FORMAT_VERSION as c_, type DryRunResult as ca, type DumpSchemaOptions as cb, ELEVATION_AUDIT_COLLECTION as cc, ElevatedHandle as cd, type EnrollAuthenticatorOptions as ce, type EnrollAuthenticatorWrappingDEKsOptions as cf, type EnrollAuthenticatorWrappingKEKOptions as cg, type EnrollRecoveryResult as ch, type ExportCapability as ci, type ExportChunk as cj, type ExportFormat as ck, type ExportStreamOptions as cl, type FactorKind as cm, type FactorProofBundle as cn, type FactorRequirement as co, type FenceDoc as cp, type FenceState as cq, type FieldChange as cr, type FieldDescriptor as cs, type FieldSource as ct, type GhostRecord as cu, type GrantOptions as cv, type GuardViolation as cw, type HistoryConfig as cx, type HistoryEntry as cy, INDEXED_STORE_POLICY as cz, type DictionaryOptions as d, SyncEngine as d$, NOYDB_SYNC_VERSION as d0, Noydb as d1, type NoydbEventMap as d2, type NoydbOptions as d3, type OverlayViewDescriptor as d4, PUBLIC_ENVELOPE_FIELDS as d5, type PaperRecoveryDoc as d6, type PaperRecoveryEntry as d7, type PassphrasePolicy as d8, type PassphraseValidationResult as d9, type ReAuthOperation as dA, type RecoverPassphraseInput as dB, type RecoverPassphraseResult as dC, type RecoverUserOptions as dD, type RecoveryProof as dE, type ResolvedPublicEnvelopeSchema as dF, type RevokeOptions as dG, type RotatePassphraseInput as dH, type RotateRecoveryOptions as dI, type RotateRecoveryResult as dJ, SEALED_PASSPHRASE_RECORD_ID as dK, type SchemaDelta as dL, type SchemaIntrospection as dM, type SealedEnvelope as dN, type SealedPassphrase as dO, type SessionPolicy as dP, type SetPublicEnvelopeInput as dQ, type ShamirRecoveryDoc as dR, type ShamirRecoveryEntry as dS, type SlotRewrapCeremony as dT, type SlotRewrapContext as dU, type StandardSchemaV1 as dV, type StandardSchemaV1Issue as dW, type StandardSchemaV1SyncResult as dX, type StoreAuth as dY, type StoreAuthKind as dZ, type StoreCapabilities as d_, type Permission as da, type Permissions as db, type PersistedSchemaKind as dc, type PlaintextTranslatorContext as dd, type PlaintextTranslatorFn as de, PresenceHandle as df, type PresencePeer as dg, type PublicEnvelopeField as dh, type PublicEnvelopeSchema as di, type PublicEnvelopeText as dj, type PullMode as dk, type PullOptions as dl, type PullPolicy as dm, type PullResult as dn, type PushMode as dp, type PushOptions as dq, type PushPolicy as dr, type PushResult as ds, type PutManyItemOptions as dt, type PutManyOptions as du, type PutManyResult as dv, type QueryAcrossOptions as dw, type QueryAcrossResult as dx, type QuickUnlockState as dy, QuickUnlockStore as dz, type I18nMap as e, loadPaperRecoveryEntries as e$, type SyncMetadata as e0, type SyncPolicy as e1, SyncScheduler as e2, type SyncSchedulerStatus as e3, type SyncStatus as e4, type SyncTarget as e5, type SyncTargetRole as e6, SyncTransaction as e7, type SyncTransactionResult as e8, type TabChannel as e9, type WriteConflict as eA, type WriteEvent as eB, type WriteHook as eC, type WriteQueue as eD, assertStrongPassphrase as eE, buildRecipientKeyringFile as eF, burnPaperRecoveryEntry as eG, createNoydb as eH, createStore as eI, deriveMagicLinkContentKey as eJ, enrollAuthenticator as eK, estimateEntropy as eL, evaluateExportCapability as eM, evaluateImportCapability as eN, findAuthenticator as eO, hasExportCapability as eP, hasImportCapability as eQ, hasRecoveryEnrolled as eR, isMagicLinkGrantExpired as eS, isPublicEnvelope as eT, issueDelegation as eU, recoverPassphrase as eV, rotatePassphrase as eW, listMagicLinkGrants as eX, listUsers as eY, listUsersWithEnvelopes as eZ, loadActiveDelegations as e_, type TabCoordinationOptions as ea, type TabLockManager as eb, type TabPresence as ec, type TabRole as ed, type TierMode as ee, type TranslatorAuditEntry as ef, type TxOp as eg, USER_ENVELOPE_COLLECTION as eh, USER_ENVELOPE_MAX_BYTES as ei, type Unsubscribe as ej, type UpdateAuthenticatorOptions as ek, type UpdateContext as el, type UpdateUserOptions as em, UserApi as en, type UserEnvelopeCheckGate as eo, UserEnvelopeOversizedError as ep, type UserEnvelopePresented as eq, type UserInfo as er, type VaultBackup as es, type VaultPolicyOnDisk as et, type VaultSchemaSnapshot as eu, type VaultSnapshot as ev, type WarningRules as ew, WeakPassphraseError as ex, type WeakPassphraseReason as ey, type WrappedDeksBlob as ez, type I18nTextDescriptor as f, loadSealedPassphrase as f0, loadShamirRecoveryEntries as f1, magicLinkGrantRecordId as f2, mintPaperRecoveryEntry as f3, mintShamirRecoveryEntry as f4, mintWrappedDeksBlob as f5, parseSealedEnvelope as f6, readMagicLinkGrantRecord as f7, recoverUser as f8, removeAuthenticator as f9, resolveSchema as fa, revokeDelegation as fb, revokeMagicLinkGrant as fc, savePaperRecoveryEntries as fd, saveSealedPassphrase as fe, saveShamirRecoveryEntries as ff, unwrapDeksFromBlob as fg, unwrapDeksFromPaperEntry as fh, unwrapDeksFromShamirEntry as fi, unwrapMagicLinkGrant as fj, validatePassphrase as fk, validatePublicEnvelopeInput as fl, validateSchemaInput as fm, validateSchemaOutput as fn, writeMagicLinkGrant as fo, changeSecret as fp, createOwnerKeyring as fq, ensureCollectionDEK as fr, grant as fs, loadKeyring as ft, persistKeyring as fu, revoke as fv, updateAuthenticator as fw, updateKeyringIdentity as fx, type I18nTextOptions as g, 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 {
|
|
1
|
+
import { bp as PublicEnvelope, bq as SealingKeyProvider, br as BundleRecipient, bs as RecipientSealer, bt as RecipientHint, bu as Vault } from './types-DGU60JDt.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bp as PublicEnvelope, bq as SealingKeyProvider, br as BundleRecipient, bs as RecipientSealer, bt as RecipientHint, bu as Vault } from './types-DjunxzJa.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|