@noy-db/hub 0.2.0-pre.7 → 0.2.0-pre.9
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 +2 -2
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +2 -2
- package/dist/attestation/index.d.ts +2 -2
- package/dist/attestation/index.js +5 -5
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +3 -3
- package/dist/blobs/index.d.ts +3 -3
- package/dist/blobs/index.js +4 -4
- package/dist/bundle/index.cjs +255 -15
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +4 -4
- package/dist/bundle/index.d.ts +4 -4
- package/dist/bundle/index.js +8 -8
- package/dist/{chunk-AYRTGXF3.js → chunk-22DWZL57.js} +62 -26
- package/dist/chunk-22DWZL57.js.map +1 -0
- package/dist/{chunk-4EOVWJL6.js → chunk-2GLDA55J.js} +2 -2
- package/dist/{chunk-CBHPW77B.js → chunk-2WUSG3IT.js} +2 -2
- package/dist/{chunk-WBUG3324.js → chunk-3BFJOWSU.js} +2 -2
- package/dist/{chunk-7IH5FDXD.js → chunk-3YPCK6JX.js} +5 -5
- package/dist/{chunk-SYOSRZN4.js → chunk-53XBRIRT.js} +4 -4
- package/dist/{chunk-UPBZ7NVY.js → chunk-5T22KDPN.js} +4 -4
- package/dist/{chunk-KK44CQ5B.js → chunk-5XHKQ56N.js} +2 -2
- package/dist/{chunk-3O5FNO5O.js → chunk-6CME4UEK.js} +259 -50
- package/dist/chunk-6CME4UEK.js.map +1 -0
- package/dist/chunk-6STK5TQP.js +139 -0
- package/dist/chunk-6STK5TQP.js.map +1 -0
- package/dist/{chunk-REQJJIPP.js → chunk-B6PB7JLN.js} +23 -1
- package/dist/{chunk-REQJJIPP.js.map → chunk-B6PB7JLN.js.map} +1 -1
- package/dist/{chunk-2TXMTYWZ.js → chunk-BVRYKATC.js} +3 -3
- package/dist/{chunk-6ILPGZXZ.js → chunk-DE6GKS6G.js} +2 -2
- package/dist/{chunk-TS4FQPDD.js → chunk-DFMLEQZB.js} +2 -2
- package/dist/{chunk-3XCXUJTM.js → chunk-DJHHA6XH.js} +2 -2
- package/dist/{chunk-LSY46G55.js → chunk-DL3HWOQ5.js} +3 -3
- package/dist/{chunk-6MXGU2PW.js → chunk-DO7C2TOG.js} +2 -2
- package/dist/{chunk-N4CDTRDH.js → chunk-DONMZAD2.js} +3 -3
- package/dist/{chunk-HNC55FLJ.js → chunk-F3GDRNUT.js} +3 -3
- package/dist/{chunk-VZOZ3DBN.js → chunk-H2X3ISXG.js} +3 -3
- package/dist/{chunk-XZCBBZLS.js → chunk-HNRHLRDC.js} +2 -2
- package/dist/{chunk-22ESLVUM.js → chunk-I5FOWO4J.js} +2 -2
- package/dist/{chunk-O3JCRQT3.js → chunk-JWRVQKRZ.js} +3 -3
- package/dist/{chunk-CSHY53CZ.js → chunk-K3DK3NU5.js} +2 -2
- package/dist/{chunk-BNUCCUES.js → chunk-ML236QKC.js} +2 -2
- package/dist/{chunk-GZIDTXC4.js → chunk-NONAAENK.js} +2 -2
- package/dist/{chunk-JZDA2SRB.js → chunk-O3VZPBZG.js} +4 -4
- package/dist/{chunk-PJKGXUMG.js → chunk-OQ6PIGHA.js} +2 -2
- package/dist/{chunk-QYO6I7KK.js → chunk-PE2FR4J3.js} +3 -3
- package/dist/{chunk-YAMTXW77.js → chunk-PP6W64Y3.js} +2 -2
- package/dist/{chunk-HNFXKQD7.js → chunk-PX35GA7L.js} +4 -4
- package/dist/{chunk-OXCFFRF3.js → chunk-QEILDE6R.js} +2 -2
- package/dist/{chunk-4YVVF6JN.js → chunk-QODLLGQ7.js} +4 -4
- package/dist/{chunk-ASFE2X62.js → chunk-RAZ4OVLL.js} +2 -2
- package/dist/{chunk-WM5GFORS.js → chunk-SYMWGEET.js} +2 -2
- package/dist/{chunk-SLJQIBT7.js → chunk-T7JEBOGN.js} +2 -2
- package/dist/{chunk-OA6HE2RW.js → chunk-TFBP23BX.js} +3 -3
- package/dist/{chunk-GI6S5ZF2.js → chunk-U26HQ6KJ.js} +2 -2
- package/dist/{chunk-WMKCAN4H.js → chunk-VTKGMEPP.js} +2 -2
- package/dist/{chunk-BRZFN354.js → chunk-WPLVTJ5D.js} +3 -3
- package/dist/{chunk-DCP4L4SH.js → chunk-XJFLDA7A.js} +2 -2
- package/dist/{chunk-BE5ZALMB.js → chunk-ZYWZWG6G.js} +4 -4
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +3 -3
- package/dist/consent/index.d.ts +3 -3
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-TRZ5BJMY.js → crypto-HTZ4FJOP.js} +3 -3
- package/dist/{delegation-TLZTK2XW.js → delegation-RI54P6I5.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +4 -4
- package/dist/derivations/index.d.ts +4 -4
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-ClAEZQC4.d.ts → dev-unlock-B4kDxep_.d.ts} +1 -1
- package/dist/{dev-unlock-L3z34v0J.d.cts → dev-unlock-BIoEFbwm.d.cts} +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/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +4 -4
- package/dist/guards/index.d.ts +4 -4
- package/dist/guards/index.js +3 -3
- package/dist/{hash-M6-JI3Yu.d.cts → hash-DdpVypUp.d.cts} +1 -1
- package/dist/{hash-B3lV6lw3.d.ts → hash-HJqD14vS.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +4 -4
- package/dist/history/index.d.ts +4 -4
- package/dist/history/index.js +4 -4
- package/dist/i18n/index.cjs +217 -22
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +15 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-vB43MAt4.d.cts → index-4fBVt8j9.d.cts} +21 -1
- package/dist/{index-CmWQyC4e.d.ts → index-D8I_pyJD.d.ts} +21 -1
- package/dist/index.cjs +439 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +48 -38
- 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-VGDPP4B5.js +12 -0
- package/dist/{ledger-SQVVE2DR.js → ledger-TMRZYNVJ.js} +4 -4
- 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-G725ZSZG.js +34 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +4 -4
- package/dist/overlay-views/index.d.ts +4 -4
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +3 -3
- package/dist/periods/index.d.ts +3 -3
- package/dist/periods/index.js +4 -4
- package/dist/{public-envelope-BXPXMN3U.js → public-envelope-BW6OXORV.js} +3 -3
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +3 -3
- package/dist/registry-3QP3YKQS.js +8 -0
- package/dist/{registry-4R4IURUM.js → registry-OJIOSBV6.js} +3 -3
- package/dist/registry-USRVT6YF.js +8 -0
- package/dist/{revoke-Y7UDOXGH.js → revoke-JCC7N56X.js} +5 -5
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +4 -4
- package/dist/session/index.d.ts +4 -4
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +3 -3
- package/dist/shadow/index.d.ts +3 -3
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-UD2ZSVDJ.js → signer-72QAUSVW.js} +4 -4
- package/dist/snapshots/index.cjs +37 -3
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +13 -6
- package/dist/snapshots/index.d.ts +13 -6
- package/dist/snapshots/index.js +40 -6
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-F4V5E7ZK.js → stale-6ZDBTQT7.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +3 -3
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +2 -2
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +2 -2
- package/dist/sync/index.d.ts +2 -2
- package/dist/sync/index.js +3 -3
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +3 -3
- package/dist/team/index.d.ts +3 -3
- package/dist/team/index.js +7 -7
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +3 -3
- package/dist/tx/index.d.ts +3 -3
- package/dist/tx/index.js +3 -3
- package/dist/{types-DT7cXRHq.d.ts → types-Df28QFKb.d.ts} +216 -5
- package/dist/{types-r-y7TIqj.d.cts → types-DyXYr8rE.d.cts} +216 -5
- package/dist/{ulid-Dt55yn4s.d.ts → ulid-CJ8RzRrm.d.ts} +1 -1
- package/dist/{ulid-BkW3mLlz.d.cts → ulid-Drr7ykr6.d.cts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-derivation-D_Ids_H6.d.ts → with-derivation-DFnFByiQ.d.ts} +1 -1
- package/dist/{with-derivation-DB63Po2m.d.cts → with-derivation-DU3Sjazm.d.cts} +1 -1
- package/dist/{with-guard-BHThLppa.d.cts → with-guard-ByyxmEe7.d.cts} +1 -1
- package/dist/{with-guard-BJwdc0s6.d.ts → with-guard-qube6BMI.d.ts} +1 -1
- package/dist/{with-materialized-view-D-CRVSDX.d.ts → with-materialized-view-BLkQxoQN.d.ts} +1 -1
- package/dist/{with-materialized-view-BJmJ-FrO.d.cts → with-materialized-view-BmEToIR1.d.cts} +1 -1
- package/dist/{with-overlayed-view-zePNtUSq.d.cts → with-overlayed-view-BMsQQbWm.d.cts} +1 -1
- package/dist/{with-overlayed-view-CNf6GbDG.d.ts → with-overlayed-view-CRsSEwHR.d.ts} +1 -1
- package/package.json +5 -4
- package/dist/chunk-3O5FNO5O.js.map +0 -1
- package/dist/chunk-AYRTGXF3.js.map +0 -1
- package/dist/executor-HAVRTQN4.js +0 -11
- package/dist/executor-V3DKOADS.js +0 -8
- package/dist/executor-XO4M4243.js +0 -8
- package/dist/issue-EJKUQ6FA.js +0 -12
- package/dist/noydb-MK4UQ626.js +0 -34
- package/dist/registry-GPBLCHG7.js +0 -8
- package/dist/registry-ZON5HNIV.js +0 -8
- /package/dist/{chunk-4EOVWJL6.js.map → chunk-2GLDA55J.js.map} +0 -0
- /package/dist/{chunk-CBHPW77B.js.map → chunk-2WUSG3IT.js.map} +0 -0
- /package/dist/{chunk-WBUG3324.js.map → chunk-3BFJOWSU.js.map} +0 -0
- /package/dist/{chunk-7IH5FDXD.js.map → chunk-3YPCK6JX.js.map} +0 -0
- /package/dist/{chunk-SYOSRZN4.js.map → chunk-53XBRIRT.js.map} +0 -0
- /package/dist/{chunk-UPBZ7NVY.js.map → chunk-5T22KDPN.js.map} +0 -0
- /package/dist/{chunk-KK44CQ5B.js.map → chunk-5XHKQ56N.js.map} +0 -0
- /package/dist/{chunk-2TXMTYWZ.js.map → chunk-BVRYKATC.js.map} +0 -0
- /package/dist/{chunk-6ILPGZXZ.js.map → chunk-DE6GKS6G.js.map} +0 -0
- /package/dist/{chunk-TS4FQPDD.js.map → chunk-DFMLEQZB.js.map} +0 -0
- /package/dist/{chunk-3XCXUJTM.js.map → chunk-DJHHA6XH.js.map} +0 -0
- /package/dist/{chunk-LSY46G55.js.map → chunk-DL3HWOQ5.js.map} +0 -0
- /package/dist/{chunk-6MXGU2PW.js.map → chunk-DO7C2TOG.js.map} +0 -0
- /package/dist/{chunk-N4CDTRDH.js.map → chunk-DONMZAD2.js.map} +0 -0
- /package/dist/{chunk-HNC55FLJ.js.map → chunk-F3GDRNUT.js.map} +0 -0
- /package/dist/{chunk-VZOZ3DBN.js.map → chunk-H2X3ISXG.js.map} +0 -0
- /package/dist/{chunk-XZCBBZLS.js.map → chunk-HNRHLRDC.js.map} +0 -0
- /package/dist/{chunk-22ESLVUM.js.map → chunk-I5FOWO4J.js.map} +0 -0
- /package/dist/{chunk-O3JCRQT3.js.map → chunk-JWRVQKRZ.js.map} +0 -0
- /package/dist/{chunk-CSHY53CZ.js.map → chunk-K3DK3NU5.js.map} +0 -0
- /package/dist/{chunk-BNUCCUES.js.map → chunk-ML236QKC.js.map} +0 -0
- /package/dist/{chunk-GZIDTXC4.js.map → chunk-NONAAENK.js.map} +0 -0
- /package/dist/{chunk-JZDA2SRB.js.map → chunk-O3VZPBZG.js.map} +0 -0
- /package/dist/{chunk-PJKGXUMG.js.map → chunk-OQ6PIGHA.js.map} +0 -0
- /package/dist/{chunk-QYO6I7KK.js.map → chunk-PE2FR4J3.js.map} +0 -0
- /package/dist/{chunk-YAMTXW77.js.map → chunk-PP6W64Y3.js.map} +0 -0
- /package/dist/{chunk-HNFXKQD7.js.map → chunk-PX35GA7L.js.map} +0 -0
- /package/dist/{chunk-OXCFFRF3.js.map → chunk-QEILDE6R.js.map} +0 -0
- /package/dist/{chunk-4YVVF6JN.js.map → chunk-QODLLGQ7.js.map} +0 -0
- /package/dist/{chunk-ASFE2X62.js.map → chunk-RAZ4OVLL.js.map} +0 -0
- /package/dist/{chunk-WM5GFORS.js.map → chunk-SYMWGEET.js.map} +0 -0
- /package/dist/{chunk-SLJQIBT7.js.map → chunk-T7JEBOGN.js.map} +0 -0
- /package/dist/{chunk-OA6HE2RW.js.map → chunk-TFBP23BX.js.map} +0 -0
- /package/dist/{chunk-GI6S5ZF2.js.map → chunk-U26HQ6KJ.js.map} +0 -0
- /package/dist/{chunk-WMKCAN4H.js.map → chunk-VTKGMEPP.js.map} +0 -0
- /package/dist/{chunk-BRZFN354.js.map → chunk-WPLVTJ5D.js.map} +0 -0
- /package/dist/{chunk-DCP4L4SH.js.map → chunk-XJFLDA7A.js.map} +0 -0
- /package/dist/{chunk-BE5ZALMB.js.map → chunk-ZYWZWG6G.js.map} +0 -0
- /package/dist/{crypto-TRZ5BJMY.js.map → crypto-HTZ4FJOP.js.map} +0 -0
- /package/dist/{delegation-TLZTK2XW.js.map → delegation-RI54P6I5.js.map} +0 -0
- /package/dist/{executor-HAVRTQN4.js.map → executor-5PNY7LGW.js.map} +0 -0
- /package/dist/{executor-V3DKOADS.js.map → executor-B4QIYGZX.js.map} +0 -0
- /package/dist/{executor-XO4M4243.js.map → executor-BWXXDQ7K.js.map} +0 -0
- /package/dist/{issue-EJKUQ6FA.js.map → issue-VGDPP4B5.js.map} +0 -0
- /package/dist/{ledger-SQVVE2DR.js.map → ledger-TMRZYNVJ.js.map} +0 -0
- /package/dist/{noydb-MK4UQ626.js.map → noydb-G725ZSZG.js.map} +0 -0
- /package/dist/{public-envelope-BXPXMN3U.js.map → public-envelope-BW6OXORV.js.map} +0 -0
- /package/dist/{registry-4R4IURUM.js.map → registry-3QP3YKQS.js.map} +0 -0
- /package/dist/{registry-GPBLCHG7.js.map → registry-OJIOSBV6.js.map} +0 -0
- /package/dist/{registry-ZON5HNIV.js.map → registry-USRVT6YF.js.map} +0 -0
- /package/dist/{revoke-Y7UDOXGH.js.map → revoke-JCC7N56X.js.map} +0 -0
- /package/dist/{signer-UD2ZSVDJ.js.map → signer-72QAUSVW.js.map} +0 -0
- /package/dist/{stale-F4V5E7ZK.js.map → stale-6ZDBTQT7.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
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,
|
|
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
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
|
|
|
@@ -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,30 @@ declare class QuickUnlockStore {
|
|
|
4361
4530
|
private clearTimer;
|
|
4362
4531
|
}
|
|
4363
4532
|
|
|
4533
|
+
/**
|
|
4534
|
+
* Cadence policy for automatic snapshots. Borrows the vocabulary of the sync
|
|
4535
|
+
* `SyncPolicy` (debounce / interval / minInterval / onUnload) but is a separate,
|
|
4536
|
+
* snapshot-specific shape — automatic snapshots write the single rolling
|
|
4537
|
+
* `<vault>__auto` key, never the immutable on-demand pool.
|
|
4538
|
+
*
|
|
4539
|
+
* Default mode is `'manual'`: no timers, snapshots stay on-demand.
|
|
4540
|
+
*/
|
|
4541
|
+
type SnapshotMode = 'manual' | 'debounce' | 'interval';
|
|
4542
|
+
interface SnapshotPolicy {
|
|
4543
|
+
/** Trigger mode. Default `'manual'` — no automatic snapshots. */
|
|
4544
|
+
readonly mode?: SnapshotMode;
|
|
4545
|
+
/** Idle delay (ms) after a write before an auto-snapshot fires. `mode:'debounce'`. Default 30_000. */
|
|
4546
|
+
readonly debounceMs?: number;
|
|
4547
|
+
/** Fixed interval (ms). `mode:'interval'`. Default 300_000. */
|
|
4548
|
+
readonly intervalMs?: number;
|
|
4549
|
+
/** Hard floor (ms) between auto-snapshots regardless of mode. Default 0. */
|
|
4550
|
+
readonly minIntervalMs?: number;
|
|
4551
|
+
/** Flush a pending auto-snapshot on tab-hide / process exit. Default true for non-manual modes. */
|
|
4552
|
+
readonly onUnload?: boolean;
|
|
4553
|
+
/** Label applied to each auto-snapshot. Default `'auto'`. */
|
|
4554
|
+
readonly label?: string;
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4364
4557
|
interface SnapshotMeta {
|
|
4365
4558
|
readonly version: string;
|
|
4366
4559
|
readonly label?: string;
|
|
@@ -4375,6 +4568,8 @@ interface SnapshotMeta {
|
|
|
4375
4568
|
* lacking a ledgerHead; not produced by the current engine.
|
|
4376
4569
|
*/
|
|
4377
4570
|
readonly integrity: 'verified' | 'legacy-unverifiable';
|
|
4571
|
+
/** `true` for the rolling auto-snapshot; absent on on-demand checkpoints. */
|
|
4572
|
+
readonly auto?: true;
|
|
4378
4573
|
}
|
|
4379
4574
|
interface RetentionPolicy {
|
|
4380
4575
|
readonly keepLast?: number;
|
|
@@ -4389,6 +4584,13 @@ interface SnapshotStrategy {
|
|
|
4389
4584
|
}): Promise<SnapshotMeta>;
|
|
4390
4585
|
listSnapshots(vaultId: string): Promise<SnapshotMeta[]>;
|
|
4391
4586
|
restoreSnapshot(vault: unknown, version: string): Promise<void>;
|
|
4587
|
+
/** Rolling auto-snapshot to the fixed `<vault>__auto` key. */
|
|
4588
|
+
autoSnapshot(vault: unknown, by: string, opts?: {
|
|
4589
|
+
label?: string;
|
|
4590
|
+
note?: string;
|
|
4591
|
+
}): Promise<SnapshotMeta>;
|
|
4592
|
+
/** Configured cadence policy. Undefined or `mode:'manual'` ⇒ no scheduler is wired. */
|
|
4593
|
+
readonly policy?: SnapshotPolicy;
|
|
4392
4594
|
}
|
|
4393
4595
|
|
|
4394
4596
|
/**
|
|
@@ -4821,6 +5023,8 @@ declare class Noydb {
|
|
|
4821
5023
|
private readonly sessionStrategy;
|
|
4822
5024
|
private readonly syncStrategy;
|
|
4823
5025
|
private readonly snapshotStrategy;
|
|
5026
|
+
private snapshotScheduler;
|
|
5027
|
+
private readonly dirtySnapshotVaults;
|
|
4824
5028
|
/**
|
|
4825
5029
|
* Currently-running multi-record transaction, set by
|
|
4826
5030
|
* `runTransaction` at the start of Phase 2 (commit) and cleared in
|
|
@@ -5801,6 +6005,13 @@ declare class Noydb {
|
|
|
5801
6005
|
label?: string;
|
|
5802
6006
|
note?: string;
|
|
5803
6007
|
}): Promise<SnapshotMeta>;
|
|
6008
|
+
/**
|
|
6009
|
+
* Wire the automatic-snapshot cadence when a non-manual `snapshotPolicy` is
|
|
6010
|
+
* configured. Subscribes to `onAfterWrite` to mark the written vault dirty and
|
|
6011
|
+
* nudge the scheduler; the scheduler fires `autoSnapshot()` per dirty vault.
|
|
6012
|
+
* No-op for `mode:'manual'` or no policy.
|
|
6013
|
+
*/
|
|
6014
|
+
private initSnapshotCadence;
|
|
5804
6015
|
/**
|
|
5805
6016
|
* List all snapshots for the given vault, newest first.
|
|
5806
6017
|
* Reads only the sidecar index — does not download snapshot bytes.
|
|
@@ -12604,4 +12815,4 @@ interface DeleteManyResult {
|
|
|
12604
12815
|
}>;
|
|
12605
12816
|
}
|
|
12606
12817
|
|
|
12607
|
-
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, type DiffEntry 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, TxVault as aA, runTransaction as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, OverlayedViewRegistry as aO, type OverlayedViewStrategyHandle as aP, type SyncStrategy as aQ, type Role as aR, type UnlockedKeyring as aS, type HistoryStrategy as aT, type NoydbStore as aU, type HistoryOptions as aV, type EncryptedEnvelope as aW, type PruneOptions as aX, type AppendInput as aY, type ChangeType as aZ, CollectionInstant 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 NoydbBundleStore as as, type RetentionPolicy as at, type SnapshotStrategy as au, type SnapshotMeta as av, type TxStrategy as aw, type AmendmentTxOptions as ax, TxCollection as ay, TxContext as az, type DictKeyDescriptor as b, type DerivationDescriptor as b$, type JsonPatch as b0, type JsonPatchOp as b1, type LedgerEntry as b2, LedgerStore as b3, type VaultEngine as b4, VaultInstant as b5, type VerifyResult as b6, applyPatch as b7, canonicalJson as b8, computePatch as b9, type SchemaUpdateStrategy as bA, type TransformFn as bB, type PersistedSchemaEnvelope as bC, type UpdateDecision as bD, type DirectoryConfig as bE, type UserVisibility as bF, type AccessibleVault as bG, type AffectedDocument as bH, BUNDLE_STORE_POLICY as bI, type BuiltInGateName as bJ, type CacheOptions as bK, type CacheStats as bL, type ChangeEvent as bM, type CollectionChangeEvent as bN, type CollectionConflictResolver as bO, type CollectionDescriptor as bP, type CollectionStats as bQ, type Conflict as bR, type ConflictPolicy as bS, type ConflictStrategy as bT, type CrossTierAccessEvent as bU, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as bV, DELEGATIONS_COLLECTION as bW, type DeepPartial as bX, type DeepPartialOrNull as bY, type DelegationToken as bZ, type DeleteManyResult as b_, diff as ba, formatDiff as bb, hashEntry as bc, paddedIndex as bd, parseIndex as be, sha256Hex as bf, type PublicEnvelope as bg, type SealingKeyProvider as bh, type BundleRecipient as bi, type RecipientSealer as bj, type RecipientHint as bk, Vault as bl, type RecoveryEnrollmentInput as bm, type ShamirRecoveryProvider as bn, type MVQueryContext as bo, type RegisteredMV as bp, MaterializedViewRegistry as bq, type MaterializedFromMeta as br, type MaterializedViewOutput as bs, type UnionSource as bt, type UserEnvelope as bu, type GateName as bv, type GatePolicy as bw, type VaultPolicy as bx, type ActiveTier as by, type FactorProof as bz, DictionaryHandle as c, type PassphrasePolicy as c$, type DirtyEntry as c0, type DryRunResult as c1, type DumpSchemaOptions as c2, ELEVATION_AUDIT_COLLECTION as c3, ElevatedHandle as c4, type EnrollAuthenticatorOptions as c5, type EnrollAuthenticatorWrappingDEKsOptions as c6, type EnrollAuthenticatorWrappingKEKOptions as c7, type EnrollRecoveryResult as c8, type ExportCapability as c9, type ListAccessibleVaultsOptions as cA, type ListPageResult as cB, type ListUsersOptions as cC, type LiveUserEnvelope as cD, type LocaleReadOptions as cE, Lru as cF, type LruOptions as cG, type LruStats as cH, MAGIC_LINK_CONTENT_INFO_PREFIX as cI, MAGIC_LINK_GRANTS_COLLECTION as cJ, MAGIC_LINK_KEK_INFO_PREFIX as cK, type MagicLinkGrantPayload as cL, type MagicLinkGrantRecord as cM, type MaterializedViewDescriptor as cN, MemoryRecipientSealer as cO, MemorySealingKeyProvider as cP, NOYDB_BACKUP_VERSION as cQ, NOYDB_FORMAT_VERSION as cR, NOYDB_KEYRING_VERSION as cS, NOYDB_SYNC_VERSION as cT, Noydb as cU, type NoydbEventMap as cV, type NoydbOptions as cW, type OverlayViewDescriptor as cX, PUBLIC_ENVELOPE_FIELDS as cY, type PaperRecoveryDoc as cZ, type PaperRecoveryEntry as c_, 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 FenceDoc as cg, type FenceState as ch, type FieldChange as ci, type FieldDescriptor as cj, type FieldSource as ck, type GhostRecord as cl, type GrantOptions as cm, type GuardViolation as cn, type HistoryConfig as co, type HistoryEntry as cp, INDEXED_STORE_POLICY as cq, type ImportCapability as cr, type InferOutput as cs, type InternalCollectionStats as ct, type IssueDelegationOptions as cu, type IssueMagicLinkGrantOptions as cv, type KeyringAuthenticator as cw, type KeyringAuthenticatorWrappingDEKs as cx, type KeyringAuthenticatorWrappingKEK as cy, type KeyringFile as cz, type DictionaryOptions as d, type SyncTransactionResult as d$, type PassphraseValidationResult as d0, type Permission as d1, type Permissions as d2, type PersistedSchemaKind as d3, type PlaintextTranslatorContext as d4, type PlaintextTranslatorFn as d5, PresenceHandle as d6, type PresencePeer as d7, type PublicEnvelopeField as d8, type PublicEnvelopeSchema as d9, type RotateRecoveryResult as dA, SEALED_PASSPHRASE_RECORD_ID as dB, type SchemaDelta as dC, type SchemaIntrospection as dD, type SealedEnvelope as dE, type SealedPassphrase as dF, type SessionPolicy as dG, type SetPublicEnvelopeInput as dH, type ShamirRecoveryDoc as dI, type ShamirRecoveryEntry as dJ, type SlotRewrapCeremony as dK, type SlotRewrapContext as dL, type StandardSchemaV1 as dM, type StandardSchemaV1Issue as dN, type StandardSchemaV1SyncResult as dO, type StoreAuth as dP, type StoreAuthKind as dQ, type StoreCapabilities as dR, SyncEngine as dS, type SyncMetadata as dT, type SyncPolicy as dU, SyncScheduler as dV, type SyncSchedulerStatus as dW, type SyncStatus as dX, type SyncTarget as dY, type SyncTargetRole as dZ, SyncTransaction as d_, type PublicEnvelopeText as da, type PullMode as db, type PullOptions as dc, type PullPolicy as dd, type PullResult as de, type PushMode as df, type PushOptions as dg, type PushPolicy as dh, type PushResult as di, type PutManyItemOptions as dj, type PutManyOptions as dk, type PutManyResult as dl, type QueryAcrossOptions as dm, type QueryAcrossResult as dn, 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 I18nTextDescriptor as e, recoverUser as e$, type TabChannel as e0, type TabCoordinationOptions as e1, type TabLockManager as e2, type TabPresence as e3, type TabRole as e4, type TierMode as e5, type TranslatorAuditEntry as e6, type TxOp as e7, USER_ENVELOPE_COLLECTION as e8, USER_ENVELOPE_MAX_BYTES as e9, deriveMagicLinkContentKey as eA, enrollAuthenticator as eB, estimateEntropy as eC, evaluateExportCapability as eD, evaluateImportCapability as eE, findAuthenticator as eF, hasExportCapability as eG, hasImportCapability as eH, hasRecoveryEnrolled as eI, isMagicLinkGrantExpired as eJ, isPublicEnvelope as eK, issueDelegation as eL, recoverPassphrase as eM, rotatePassphrase as eN, listMagicLinkGrants as eO, listUsers as eP, listUsersWithEnvelopes as eQ, loadActiveDelegations as eR, loadPaperRecoveryEntries as eS, loadSealedPassphrase as eT, loadShamirRecoveryEntries as eU, magicLinkGrantRecordId as eV, mintPaperRecoveryEntry as eW, mintShamirRecoveryEntry as eX, mintWrappedDeksBlob as eY, parseSealedEnvelope as eZ, readMagicLinkGrantRecord as e_, type Unsubscribe as ea, type UpdateAuthenticatorOptions as eb, type UpdateContext as ec, type UpdateUserOptions as ed, UserApi as ee, type UserEnvelopeCheckGate as ef, UserEnvelopeOversizedError as eg, type UserEnvelopePresented as eh, type UserInfo as ei, type VaultBackup as ej, type VaultPolicyOnDisk as ek, type VaultSchemaSnapshot as el, type VaultSnapshot as em, type WarningRules as en, WeakPassphraseError as eo, type WeakPassphraseReason as ep, type WrappedDeksBlob as eq, type WriteConflict as er, type WriteEvent as es, type WriteHook as et, type WriteQueue as eu, assertStrongPassphrase as ev, buildRecipientKeyringFile as ew, burnPaperRecoveryEntry as ex, createNoydb as ey, createStore as ez, type I18nTextOptions as f, removeAuthenticator as f0, resolveSchema as f1, revokeDelegation as f2, revokeMagicLinkGrant as f3, savePaperRecoveryEntries as f4, saveSealedPassphrase as f5, saveShamirRecoveryEntries as f6, unwrapDeksFromBlob as f7, unwrapDeksFromPaperEntry as f8, unwrapDeksFromShamirEntry as f9, unwrapMagicLinkGrant as fa, validatePassphrase as fb, validatePublicEnvelopeInput as fc, validateSchemaInput as fd, validateSchemaOutput as fe, writeMagicLinkGrant as ff, changeSecret as fg, createOwnerKeyring as fh, ensureCollectionDEK as fi, grant as fj, loadKeyring as fk, persistKeyring as fl, revoke as fm, updateAuthenticator as fn, updateKeyringIdentity as fo, 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 };
|
|
12818
|
+
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 CollectionStats 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, BUNDLE_STORE_POLICY as bT, type BuiltInGateName as bU, type CacheOptions as bV, type CacheStats as bW, type ChangeEvent as bX, type CollectionChangeEvent as bY, type CollectionConflictResolver as bZ, type CollectionDescriptor 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, NOYDB_BACKUP_VERSION as c$, type Conflict as c0, type ConflictPolicy as c1, type ConflictStrategy as c2, type CrossTierAccessEvent as c3, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c4, DELEGATIONS_COLLECTION as c5, type DeepPartial as c6, type DeepPartialOrNull as c7, type DelegationToken as c8, type DeleteManyResult as c9, type HistoryEntry as cA, INDEXED_STORE_POLICY as cB, type ImportCapability as cC, type InferOutput as cD, type InternalCollectionStats as cE, type IssueDelegationOptions as cF, type IssueMagicLinkGrantOptions as cG, type KeyringAuthenticator as cH, type KeyringAuthenticatorWrappingDEKs as cI, type KeyringAuthenticatorWrappingKEK as cJ, type KeyringFile as cK, type ListAccessibleVaultsOptions as cL, type ListPageResult as cM, type ListUsersOptions as cN, type LiveUserEnvelope as cO, type LocaleReadOptions as cP, Lru as cQ, type LruOptions as cR, type LruStats as cS, MAGIC_LINK_CONTENT_INFO_PREFIX as cT, MAGIC_LINK_GRANTS_COLLECTION as cU, MAGIC_LINK_KEK_INFO_PREFIX as cV, type MagicLinkGrantPayload as cW, type MagicLinkGrantRecord as cX, type MaterializedViewDescriptor as cY, MemoryRecipientSealer as cZ, MemorySealingKeyProvider as c_, type DerivationDescriptor as ca, type DirtyEntry as cb, type DryRunResult as cc, type DumpSchemaOptions as cd, ELEVATION_AUDIT_COLLECTION as ce, ElevatedHandle as cf, type EnrollAuthenticatorOptions as cg, type EnrollAuthenticatorWrappingDEKsOptions as ch, type EnrollAuthenticatorWrappingKEKOptions as ci, type EnrollRecoveryResult as cj, type ExportCapability as ck, type ExportChunk as cl, type ExportFormat as cm, type ExportStreamOptions as cn, type FactorKind as co, type FactorProofBundle as cp, type FactorRequirement as cq, type FenceDoc as cr, type FenceState as cs, type FieldChange as ct, type FieldDescriptor as cu, type FieldSource as cv, type GhostRecord as cw, type GrantOptions as cx, type GuardViolation as cy, type HistoryConfig as cz, type DictionaryOptions as d, type StoreAuthKind as d$, NOYDB_FORMAT_VERSION as d0, NOYDB_KEYRING_VERSION as d1, NOYDB_SYNC_VERSION as d2, Noydb as d3, type NoydbEventMap as d4, type NoydbOptions as d5, type OverlayViewDescriptor as d6, PUBLIC_ENVELOPE_FIELDS as d7, type PaperRecoveryDoc as d8, type PaperRecoveryEntry as d9, type QuickUnlockState as dA, QuickUnlockStore as dB, type ReAuthOperation as dC, type RecoverPassphraseInput as dD, type RecoverPassphraseResult as dE, type RecoverUserOptions as dF, type RecoveryProof as dG, type ResolvedPublicEnvelopeSchema as dH, type RevokeOptions as dI, type RotatePassphraseInput as dJ, type RotateRecoveryOptions as dK, type RotateRecoveryResult as dL, SEALED_PASSPHRASE_RECORD_ID as dM, type SchemaDelta as dN, type SchemaIntrospection as dO, type SealedEnvelope as dP, type SealedPassphrase as dQ, type SessionPolicy as dR, type SetPublicEnvelopeInput as dS, type ShamirRecoveryDoc as dT, type ShamirRecoveryEntry as dU, type SlotRewrapCeremony as dV, type SlotRewrapContext as dW, type StandardSchemaV1 as dX, type StandardSchemaV1Issue as dY, type StandardSchemaV1SyncResult as dZ, type StoreAuth as d_, type PassphrasePolicy as da, type PassphraseValidationResult as db, type Permission as dc, type Permissions as dd, type PersistedSchemaKind as de, type PlaintextTranslatorContext as df, type PlaintextTranslatorFn as dg, PresenceHandle as dh, type PresencePeer as di, type PublicEnvelopeField as dj, type PublicEnvelopeSchema as dk, type PublicEnvelopeText as dl, type PullMode as dm, type PullOptions as dn, type PullPolicy as dp, type PullResult as dq, type PushMode as dr, type PushOptions as ds, type PushPolicy as dt, type PushResult as du, type PutManyItemOptions as dv, type PutManyOptions as dw, type PutManyResult as dx, type QueryAcrossOptions as dy, type QueryAcrossResult as dz, type I18nMap as e, listUsersWithEnvelopes as e$, type StoreCapabilities as e0, SyncEngine as e1, type SyncMetadata as e2, type SyncPolicy as e3, SyncScheduler as e4, type SyncSchedulerStatus as e5, type SyncStatus as e6, type SyncTarget as e7, type SyncTargetRole as e8, SyncTransaction as e9, type WeakPassphraseReason as eA, type WrappedDeksBlob as eB, type WriteConflict as eC, type WriteEvent as eD, type WriteHook as eE, type WriteQueue as eF, assertStrongPassphrase as eG, buildRecipientKeyringFile as eH, burnPaperRecoveryEntry as eI, createNoydb as eJ, createStore as eK, deriveMagicLinkContentKey as eL, enrollAuthenticator as eM, estimateEntropy as eN, evaluateExportCapability as eO, evaluateImportCapability as eP, findAuthenticator as eQ, hasExportCapability as eR, hasImportCapability as eS, hasRecoveryEnrolled as eT, isMagicLinkGrantExpired as eU, isPublicEnvelope as eV, issueDelegation as eW, recoverPassphrase as eX, rotatePassphrase as eY, listMagicLinkGrants as eZ, listUsers as e_, type SyncTransactionResult as ea, type TabChannel as eb, type TabCoordinationOptions as ec, type TabLockManager as ed, type TabPresence as ee, type TabRole as ef, type TierMode as eg, type TranslatorAuditEntry as eh, type TxOp as ei, USER_ENVELOPE_COLLECTION as ej, USER_ENVELOPE_MAX_BYTES as ek, type Unsubscribe as el, type UpdateAuthenticatorOptions as em, type UpdateContext as en, type UpdateUserOptions as eo, UserApi as ep, type UserEnvelopeCheckGate as eq, UserEnvelopeOversizedError as er, type UserEnvelopePresented as es, type UserInfo as et, type VaultBackup as eu, type VaultPolicyOnDisk as ev, type VaultSchemaSnapshot as ew, type VaultSnapshot as ex, type WarningRules as ey, WeakPassphraseError as ez, type I18nTextDescriptor as f, loadActiveDelegations as f0, loadPaperRecoveryEntries as f1, loadSealedPassphrase as f2, loadShamirRecoveryEntries as f3, magicLinkGrantRecordId as f4, mintPaperRecoveryEntry as f5, mintShamirRecoveryEntry as f6, mintWrappedDeksBlob as f7, parseSealedEnvelope as f8, readMagicLinkGrantRecord as f9, recoverUser as fa, removeAuthenticator as fb, resolveSchema as fc, revokeDelegation as fd, revokeMagicLinkGrant as fe, savePaperRecoveryEntries as ff, saveSealedPassphrase as fg, saveShamirRecoveryEntries as fh, unwrapDeksFromBlob as fi, unwrapDeksFromPaperEntry as fj, unwrapDeksFromShamirEntry as fk, unwrapMagicLinkGrant as fl, validatePassphrase as fm, validatePublicEnvelopeInput as fn, validateSchemaInput as fo, validateSchemaOutput as fp, writeMagicLinkGrant as fq, changeSecret as fr, createOwnerKeyring as fs, ensureCollectionDEK as ft, grant as fu, loadKeyring as fv, persistKeyring as fw, revoke as fx, updateAuthenticator as fy, updateKeyringIdentity as fz, 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 { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-Df28QFKb.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-DyXYr8rE.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|