@noy-db/hub 0.2.0-pre.5 → 0.2.0-pre.7
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 +379 -21
- 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-E225X5CQ.js → chunk-22ESLVUM.js} +3 -3
- package/dist/{chunk-5QPF2MJ5.js → chunk-2TXMTYWZ.js} +3 -3
- package/dist/{chunk-BT7544RM.js → chunk-3O5FNO5O.js} +116 -54
- package/dist/chunk-3O5FNO5O.js.map +1 -0
- package/dist/{chunk-34XGYMQT.js → chunk-3XCXUJTM.js} +2 -2
- package/dist/{chunk-XDW37COG.js → chunk-4EOVWJL6.js} +212 -7
- package/dist/chunk-4EOVWJL6.js.map +1 -0
- package/dist/{chunk-KGFV72WK.js → chunk-4YVVF6JN.js} +5 -5
- package/dist/{chunk-UGVDIOY7.js → chunk-6ILPGZXZ.js} +2 -2
- package/dist/{chunk-DFCINPB5.js → chunk-6MXGU2PW.js} +2 -2
- package/dist/{chunk-Y3P5DEMZ.js → chunk-7IH5FDXD.js} +6 -6
- package/dist/{chunk-2GMRNNI3.js → chunk-ASFE2X62.js} +2 -2
- package/dist/{chunk-YZ6JETII.js → chunk-AYRTGXF3.js} +180 -5
- package/dist/chunk-AYRTGXF3.js.map +1 -0
- package/dist/{chunk-CCC25PA7.js → chunk-BE5ZALMB.js} +5 -5
- package/dist/{chunk-WEA4TDTJ.js → chunk-BNUCCUES.js} +3 -3
- package/dist/{chunk-PS5G6A3Y.js → chunk-BRZFN354.js} +4 -4
- package/dist/{chunk-RIHZBSWJ.js → chunk-CBHPW77B.js} +3 -3
- package/dist/{chunk-LWFQYT4N.js → chunk-CSHY53CZ.js} +2 -2
- package/dist/{chunk-MDIC4FAU.js → chunk-DCP4L4SH.js} +2 -2
- package/dist/{chunk-TNBIWSQ7.js → chunk-GI6S5ZF2.js} +2 -2
- package/dist/{chunk-G26QAQNI.js → chunk-GZIDTXC4.js} +2 -2
- package/dist/{chunk-ARZAHCCF.js → chunk-HNC55FLJ.js} +3 -3
- package/dist/{chunk-SGSHQ4PH.js → chunk-HNFXKQD7.js} +5 -5
- package/dist/{chunk-YEHUEUNP.js → chunk-JZDA2SRB.js} +4 -4
- package/dist/{chunk-PX3MJ6RB.js → chunk-KK44CQ5B.js} +3 -3
- package/dist/{chunk-OPD3PZOG.js → chunk-LSY46G55.js} +4 -4
- package/dist/{chunk-T6MTNGBM.js → chunk-N4CDTRDH.js} +4 -4
- package/dist/{chunk-ZQMYB56Z.js → chunk-O3JCRQT3.js} +3 -3
- package/dist/{chunk-LJO6Q3X6.js → chunk-OA6HE2RW.js} +3 -3
- package/dist/{chunk-HIELMTUK.js → chunk-OIF6LZUR.js} +2 -2
- package/dist/{chunk-YJ46RFCD.js → chunk-OXCFFRF3.js} +2 -2
- package/dist/{chunk-ED3E3OLO.js → chunk-PJKGXUMG.js} +2 -2
- package/dist/{chunk-6A4AMQ2H.js → chunk-QYO6I7KK.js} +4 -4
- package/dist/{chunk-6HJ2ZALB.js → chunk-REQJJIPP.js} +44 -2
- package/dist/chunk-REQJJIPP.js.map +1 -0
- package/dist/{chunk-7TX7HN42.js → chunk-SLJQIBT7.js} +20 -3
- package/dist/chunk-SLJQIBT7.js.map +1 -0
- package/dist/{chunk-A4JNVBPF.js → chunk-SYOSRZN4.js} +5 -5
- package/dist/{chunk-R4LTCI6O.js → chunk-TS4FQPDD.js} +2 -2
- package/dist/{chunk-ICH4AIGL.js → chunk-TV3YZ35S.js} +5 -1
- package/dist/chunk-TV3YZ35S.js.map +1 -0
- package/dist/{chunk-CKH247ZR.js → chunk-UPBZ7NVY.js} +4 -4
- package/dist/{chunk-XVJFFGTG.js → chunk-VZOZ3DBN.js} +3 -3
- package/dist/{chunk-5VMTAX4Y.js → chunk-W6EQLGMB.js} +2 -2
- package/dist/{chunk-JSYTGEX4.js → chunk-WBUG3324.js} +3 -3
- package/dist/{chunk-5OVIFUQE.js → chunk-WIRRPTFH.js} +1 -1
- package/dist/chunk-WIRRPTFH.js.map +1 -0
- package/dist/{chunk-25WFLKOH.js → chunk-WM5GFORS.js} +2 -2
- package/dist/{chunk-CGJFCT3X.js → chunk-WMKCAN4H.js} +2 -2
- package/dist/{chunk-R7JTYCRX.js → chunk-XZCBBZLS.js} +2 -2
- package/dist/{chunk-EKTOYEZ3.js → chunk-YAMTXW77.js} +2 -2
- 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-TRZ5BJMY.js} +3 -3
- package/dist/{delegation-42LO4WFO.js → delegation-TLZTK2XW.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--ahUTrhc.d.ts → dev-unlock-ClAEZQC4.d.ts} +1 -1
- package/dist/{dev-unlock-BIwt2V3p.d.cts → dev-unlock-L3z34v0J.d.cts} +1 -1
- package/dist/executor-HAVRTQN4.js +11 -0
- package/dist/executor-V3DKOADS.js +8 -0
- package/dist/executor-XO4M4243.js +8 -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-CJEFQxSD.d.ts → hash-B3lV6lw3.d.ts} +1 -1
- package/dist/{hash-BQVrGV-t.d.cts → hash-M6-JI3Yu.d.cts} +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 +75 -10
- 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 +15 -13
- package/dist/{index-fIPPh5dg.d.ts → index-CmWQyC4e.d.ts} +84 -7
- package/dist/{index-5I0MZ0jQ.d.cts → index-vB43MAt4.d.cts} +84 -7
- package/dist/index.cjs +516 -123
- 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 +66 -60
- 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-EJKUQ6FA.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-SQVVE2DR.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-MK4UQ626.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-BXPXMN3U.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-4NEW7LQY.js → registry-4R4IURUM.js} +3 -3
- package/dist/registry-GPBLCHG7.js +8 -0
- package/dist/registry-ZON5HNIV.js +8 -0
- package/dist/{revoke-R5NIQ74J.js → revoke-Y7UDOXGH.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-UD2ZSVDJ.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-F4V5E7ZK.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-BV4AZKmx.d.ts → types-DT7cXRHq.d.ts} +84 -8
- package/dist/{types-BeKi0hCx.d.cts → types-r-y7TIqj.d.cts} +84 -8
- package/dist/{ulid-Cvljl7ZZ.d.cts → ulid-BkW3mLlz.d.cts} +1 -1
- package/dist/{ulid-CQc0eBxE.d.ts → ulid-Dt55yn4s.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-derivation-BkOBDhsu.d.cts → with-derivation-DB63Po2m.d.cts} +1 -1
- package/dist/{with-derivation-BWcwmevt.d.ts → with-derivation-D_Ids_H6.d.ts} +1 -1
- package/dist/{with-guard-BD4Hyu8s.d.cts → with-guard-BHThLppa.d.cts} +1 -1
- package/dist/{with-guard-Du54s3Ti.d.ts → with-guard-BJwdc0s6.d.ts} +1 -1
- package/dist/{with-materialized-view-BCPPZdjC.d.cts → with-materialized-view-BJmJ-FrO.d.cts} +1 -1
- package/dist/{with-materialized-view-B5W4wFAC.d.ts → with-materialized-view-D-CRVSDX.d.ts} +1 -1
- package/dist/{with-overlayed-view-Cw-h9p9N.d.ts → with-overlayed-view-CNf6GbDG.d.ts} +1 -1
- package/dist/{with-overlayed-view-B8RrlLsG.d.cts → with-overlayed-view-zePNtUSq.d.cts} +1 -1
- package/package.json +13 -3
- 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-BT7544RM.js.map +0 -1
- package/dist/chunk-ICH4AIGL.js.map +0 -1
- package/dist/chunk-NONMIU6C.js +0 -118
- package/dist/chunk-NONMIU6C.js.map +0 -1
- package/dist/chunk-XDW37COG.js.map +0 -1
- package/dist/chunk-YZ6JETII.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-6TADQIYH.js +0 -34
- package/dist/registry-446I2NMN.js +0 -8
- package/dist/registry-524KJZG4.js +0 -8
- /package/dist/{chunk-E225X5CQ.js.map → chunk-22ESLVUM.js.map} +0 -0
- /package/dist/{chunk-5QPF2MJ5.js.map → chunk-2TXMTYWZ.js.map} +0 -0
- /package/dist/{chunk-34XGYMQT.js.map → chunk-3XCXUJTM.js.map} +0 -0
- /package/dist/{chunk-KGFV72WK.js.map → chunk-4YVVF6JN.js.map} +0 -0
- /package/dist/{chunk-UGVDIOY7.js.map → chunk-6ILPGZXZ.js.map} +0 -0
- /package/dist/{chunk-DFCINPB5.js.map → chunk-6MXGU2PW.js.map} +0 -0
- /package/dist/{chunk-Y3P5DEMZ.js.map → chunk-7IH5FDXD.js.map} +0 -0
- /package/dist/{chunk-2GMRNNI3.js.map → chunk-ASFE2X62.js.map} +0 -0
- /package/dist/{chunk-CCC25PA7.js.map → chunk-BE5ZALMB.js.map} +0 -0
- /package/dist/{chunk-WEA4TDTJ.js.map → chunk-BNUCCUES.js.map} +0 -0
- /package/dist/{chunk-PS5G6A3Y.js.map → chunk-BRZFN354.js.map} +0 -0
- /package/dist/{chunk-RIHZBSWJ.js.map → chunk-CBHPW77B.js.map} +0 -0
- /package/dist/{chunk-LWFQYT4N.js.map → chunk-CSHY53CZ.js.map} +0 -0
- /package/dist/{chunk-MDIC4FAU.js.map → chunk-DCP4L4SH.js.map} +0 -0
- /package/dist/{chunk-TNBIWSQ7.js.map → chunk-GI6S5ZF2.js.map} +0 -0
- /package/dist/{chunk-G26QAQNI.js.map → chunk-GZIDTXC4.js.map} +0 -0
- /package/dist/{chunk-ARZAHCCF.js.map → chunk-HNC55FLJ.js.map} +0 -0
- /package/dist/{chunk-SGSHQ4PH.js.map → chunk-HNFXKQD7.js.map} +0 -0
- /package/dist/{chunk-YEHUEUNP.js.map → chunk-JZDA2SRB.js.map} +0 -0
- /package/dist/{chunk-PX3MJ6RB.js.map → chunk-KK44CQ5B.js.map} +0 -0
- /package/dist/{chunk-OPD3PZOG.js.map → chunk-LSY46G55.js.map} +0 -0
- /package/dist/{chunk-T6MTNGBM.js.map → chunk-N4CDTRDH.js.map} +0 -0
- /package/dist/{chunk-ZQMYB56Z.js.map → chunk-O3JCRQT3.js.map} +0 -0
- /package/dist/{chunk-LJO6Q3X6.js.map → chunk-OA6HE2RW.js.map} +0 -0
- /package/dist/{chunk-HIELMTUK.js.map → chunk-OIF6LZUR.js.map} +0 -0
- /package/dist/{chunk-YJ46RFCD.js.map → chunk-OXCFFRF3.js.map} +0 -0
- /package/dist/{chunk-ED3E3OLO.js.map → chunk-PJKGXUMG.js.map} +0 -0
- /package/dist/{chunk-6A4AMQ2H.js.map → chunk-QYO6I7KK.js.map} +0 -0
- /package/dist/{chunk-A4JNVBPF.js.map → chunk-SYOSRZN4.js.map} +0 -0
- /package/dist/{chunk-R4LTCI6O.js.map → chunk-TS4FQPDD.js.map} +0 -0
- /package/dist/{chunk-CKH247ZR.js.map → chunk-UPBZ7NVY.js.map} +0 -0
- /package/dist/{chunk-XVJFFGTG.js.map → chunk-VZOZ3DBN.js.map} +0 -0
- /package/dist/{chunk-5VMTAX4Y.js.map → chunk-W6EQLGMB.js.map} +0 -0
- /package/dist/{chunk-JSYTGEX4.js.map → chunk-WBUG3324.js.map} +0 -0
- /package/dist/{chunk-25WFLKOH.js.map → chunk-WM5GFORS.js.map} +0 -0
- /package/dist/{chunk-CGJFCT3X.js.map → chunk-WMKCAN4H.js.map} +0 -0
- /package/dist/{chunk-R7JTYCRX.js.map → chunk-XZCBBZLS.js.map} +0 -0
- /package/dist/{chunk-EKTOYEZ3.js.map → chunk-YAMTXW77.js.map} +0 -0
- /package/dist/{crypto-5UDZZL26.js.map → crypto-TRZ5BJMY.js.map} +0 -0
- /package/dist/{delegation-42LO4WFO.js.map → delegation-TLZTK2XW.js.map} +0 -0
- /package/dist/{executor-AWCHQ2KN.js.map → executor-HAVRTQN4.js.map} +0 -0
- /package/dist/{executor-RWICJI7J.js.map → executor-V3DKOADS.js.map} +0 -0
- /package/dist/{executor-SOLEQVUB.js.map → executor-XO4M4243.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-EJKUQ6FA.js.map} +0 -0
- /package/dist/{ledger-UX4QIHWI.js.map → ledger-SQVVE2DR.js.map} +0 -0
- /package/dist/{noydb-6TADQIYH.js.map → noydb-MK4UQ626.js.map} +0 -0
- /package/dist/{public-envelope-YKHKP74C.js.map → public-envelope-BXPXMN3U.js.map} +0 -0
- /package/dist/{registry-446I2NMN.js.map → registry-4R4IURUM.js.map} +0 -0
- /package/dist/{registry-4NEW7LQY.js.map → registry-GPBLCHG7.js.map} +0 -0
- /package/dist/{registry-524KJZG4.js.map → registry-ZON5HNIV.js.map} +0 -0
- /package/dist/{revoke-R5NIQ74J.js.map → revoke-Y7UDOXGH.js.map} +0 -0
- /package/dist/{signer-WGDJNWSU.js.map → signer-UD2ZSVDJ.js.map} +0 -0
- /package/dist/{stale-74WGLVZ2.js.map → stale-F4V5E7ZK.js.map} +0 -0
package/dist/tx/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import '../lazy-builder-
|
|
4
|
-
import '../predicate-
|
|
1
|
+
import { aw as TxStrategy } from '../types-DT7cXRHq.js';
|
|
2
|
+
export { ax as AmendmentTxOptions, ay as TxCollection, az as TxContext, aA as TxVault, aB as runTransaction } from '../types-DT7cXRHq.js';
|
|
3
|
+
import '../lazy-builder-7tIpFyWN.js';
|
|
4
|
+
import '../predicate-BSAGEyu5.js';
|
|
5
5
|
import '../strategy-DSTrsZ8t.js';
|
|
6
6
|
import '../strategy-BSxFXGzb.js';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-CmWQyC4e.js';
|
|
8
8
|
import '@noy-db/attestation';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/tx/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
TxContext,
|
|
4
4
|
TxVault,
|
|
5
5
|
runTransaction
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OA6HE2RW.js";
|
|
7
7
|
import "../chunk-FZU343FL.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-REQJJIPP.js";
|
|
9
9
|
|
|
10
10
|
// src/tx/dry-run.ts
|
|
11
11
|
var SEP = " ";
|
|
@@ -43,7 +43,7 @@ async function runDryRun(db, fn) {
|
|
|
43
43
|
const gctx = { existing: before, vault: facade, userId: v.userId, role: v.role };
|
|
44
44
|
try {
|
|
45
45
|
await registry.runChecks(op.collectionName, after, gctx);
|
|
46
|
-
const { GuardExecutor } = await import("../executor-
|
|
46
|
+
const { GuardExecutor } = await import("../executor-V3DKOADS.js");
|
|
47
47
|
for (const g of guards) {
|
|
48
48
|
await GuardExecutor.checkFrozenFields(g, op.id, before, after);
|
|
49
49
|
}
|
|
@@ -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-7tIpFyWN.js';
|
|
2
2
|
import { b as AggregateSpec, A as AggregateStrategy } from './strategy-DSTrsZ8t.js';
|
|
3
3
|
import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.js';
|
|
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, av as RefRegistry, as as RefDescriptor, a6 as JoinableSource, ax as RefViolation, ay as ScanBuilder } from './index-CmWQyC4e.js';
|
|
5
|
+
import { F as FieldClause, I as IndexDef, C as CollectionIndexes } from './predicate-BSAGEyu5.js';
|
|
6
6
|
import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1769,17 +1769,34 @@ declare function validateI18nTextValue(value: unknown, field: string, descriptor
|
|
|
1769
1769
|
*/
|
|
1770
1770
|
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback?: string | readonly string[], field?: string): string | Record<string, string>;
|
|
1771
1771
|
/**
|
|
1772
|
-
*
|
|
1772
|
+
* Return all leaf values at `path`, expanding `[].` array wildcards.
|
|
1773
|
+
*
|
|
1774
|
+
* - `'name'` → `[obj.name]`
|
|
1775
|
+
* - `'address.lineOne'` → `[obj.address.lineOne]`
|
|
1776
|
+
* - `'contacts[].title'` → `[obj.contacts[0].title, obj.contacts[1].title, …]`
|
|
1777
|
+
*
|
|
1778
|
+
* Returns an empty array when the path does not resolve (missing key,
|
|
1779
|
+
* wrong type, etc.). Used by `enforceI18nOnPut` to validate nested fields.
|
|
1780
|
+
*/
|
|
1781
|
+
declare function getAtPath(obj: Record<string, unknown>, path: string): unknown[];
|
|
1782
|
+
/**
|
|
1783
|
+
* Mutate `obj` in-place, setting `value` at the nested `path`.
|
|
1784
|
+
* Supports dot notation (`'address.lineOne'`) but not array wildcards —
|
|
1785
|
+
* auto-translate on `contacts[].title` style paths is not supported.
|
|
1786
|
+
*/
|
|
1787
|
+
declare function setAtPathInPlace(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
1788
|
+
/**
|
|
1789
|
+
* Apply locale resolution to a single record, returning a new copy.
|
|
1773
1790
|
*
|
|
1774
1791
|
* For each field registered as an `i18nText` descriptor:
|
|
1775
1792
|
* - If `locale === 'raw'`, the field value is left as the stored map.
|
|
1776
1793
|
* - Otherwise, the field value is replaced with the resolved string.
|
|
1777
1794
|
*
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1795
|
+
* Field paths support dot notation (`'address.lineOne'`) and array
|
|
1796
|
+
* wildcards (`'contacts[].title'`). Top-level fields work as before.
|
|
1780
1797
|
*
|
|
1781
1798
|
* @param record The decrypted record.
|
|
1782
|
-
* @param i18nFields Map of field
|
|
1799
|
+
* @param i18nFields Map of field path → `I18nTextDescriptor`.
|
|
1783
1800
|
* @param locale The requested locale (or `'raw'`).
|
|
1784
1801
|
* @param fallback Fallback chain (optional).
|
|
1785
1802
|
*/
|
|
@@ -4344,6 +4361,36 @@ declare class QuickUnlockStore {
|
|
|
4344
4361
|
private clearTimer;
|
|
4345
4362
|
}
|
|
4346
4363
|
|
|
4364
|
+
interface SnapshotMeta {
|
|
4365
|
+
readonly version: string;
|
|
4366
|
+
readonly label?: string;
|
|
4367
|
+
readonly note?: string;
|
|
4368
|
+
readonly exportedAt: string;
|
|
4369
|
+
readonly exportedBy: string;
|
|
4370
|
+
readonly size: number;
|
|
4371
|
+
/**
|
|
4372
|
+
* `'verified'` — bundle was produced by `writeNoydbBundle(vault, {})`, which embeds
|
|
4373
|
+
* ledgerHead metadata; `vault.load()` runs `verifyBackupIntegrity()` on restore.
|
|
4374
|
+
* `'legacy-unverifiable'` — reserved for v2 import paths that read pre-existing bundles
|
|
4375
|
+
* lacking a ledgerHead; not produced by the current engine.
|
|
4376
|
+
*/
|
|
4377
|
+
readonly integrity: 'verified' | 'legacy-unverifiable';
|
|
4378
|
+
}
|
|
4379
|
+
interface RetentionPolicy {
|
|
4380
|
+
readonly keepLast?: number;
|
|
4381
|
+
readonly maxAgeDays?: number;
|
|
4382
|
+
readonly prune?: boolean;
|
|
4383
|
+
}
|
|
4384
|
+
/** @internal */
|
|
4385
|
+
interface SnapshotStrategy {
|
|
4386
|
+
snapshot(vault: unknown, by: string, opts?: {
|
|
4387
|
+
label?: string;
|
|
4388
|
+
note?: string;
|
|
4389
|
+
}): Promise<SnapshotMeta>;
|
|
4390
|
+
listSnapshots(vaultId: string): Promise<SnapshotMeta[]>;
|
|
4391
|
+
restoreSnapshot(vault: unknown, version: string): Promise<void>;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4347
4394
|
/**
|
|
4348
4395
|
* Multi-record atomic transactions.
|
|
4349
4396
|
*
|
|
@@ -4773,6 +4820,7 @@ declare class Noydb {
|
|
|
4773
4820
|
private readonly txStrategy;
|
|
4774
4821
|
private readonly sessionStrategy;
|
|
4775
4822
|
private readonly syncStrategy;
|
|
4823
|
+
private readonly snapshotStrategy;
|
|
4776
4824
|
/**
|
|
4777
4825
|
* Currently-running multi-record transaction, set by
|
|
4778
4826
|
* `runTransaction` at the start of Phase 2 (commit) and cleared in
|
|
@@ -5744,6 +5792,27 @@ declare class Noydb {
|
|
|
5744
5792
|
* should use {@link getKeyring}, which returns a defensive copy.
|
|
5745
5793
|
*/
|
|
5746
5794
|
private getKeyringInternal;
|
|
5795
|
+
/**
|
|
5796
|
+
* Take an on-demand checkpoint of the given vault.
|
|
5797
|
+
* Requires `snapshotStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
5798
|
+
* @throws ValidationError when the vault is not open
|
|
5799
|
+
*/
|
|
5800
|
+
snapshot(vault: string, opts?: {
|
|
5801
|
+
label?: string;
|
|
5802
|
+
note?: string;
|
|
5803
|
+
}): Promise<SnapshotMeta>;
|
|
5804
|
+
/**
|
|
5805
|
+
* List all snapshots for the given vault, newest first.
|
|
5806
|
+
* Reads only the sidecar index — does not download snapshot bytes.
|
|
5807
|
+
*/
|
|
5808
|
+
listSnapshots(vault: string): Promise<SnapshotMeta[]>;
|
|
5809
|
+
/**
|
|
5810
|
+
* Restore the vault to a previously snapshotted state.
|
|
5811
|
+
* Runs `verifyBackupIntegrity()` automatically on restore.
|
|
5812
|
+
* @throws SnapshotNotFoundError when `version` doesn't exist in the store
|
|
5813
|
+
* @throws ValidationError when the vault is not open
|
|
5814
|
+
*/
|
|
5815
|
+
restoreSnapshot(vault: string, version: string): Promise<void>;
|
|
5747
5816
|
}
|
|
5748
5817
|
/** Create a new NOYDB instance. */
|
|
5749
5818
|
declare function createNoydb(options: NoydbOptions): Promise<Noydb>;
|
|
@@ -12223,6 +12292,13 @@ interface NoydbOptions {
|
|
|
12223
12292
|
* @internal
|
|
12224
12293
|
*/
|
|
12225
12294
|
readonly syncStrategy?: SyncStrategy;
|
|
12295
|
+
/**
|
|
12296
|
+
* Tree-shake seam — optional snapshot-lifecycle subsystem. Pass
|
|
12297
|
+
* `withSnapshots({ store })` from `@noy-db/hub/snapshots` to enable
|
|
12298
|
+
* `db.snapshot()`, `db.listSnapshots()`, and `db.restoreSnapshot()`.
|
|
12299
|
+
* When omitted, all three methods throw with a pointer at the subpath.
|
|
12300
|
+
*/
|
|
12301
|
+
readonly snapshotStrategy?: SnapshotStrategy;
|
|
12226
12302
|
/**
|
|
12227
12303
|
* Optional guard strategies — collection-level write guards. Each
|
|
12228
12304
|
* handle is the output of `withGuard()` from `@noy-db/hub/guards`.
|
|
@@ -12528,4 +12604,4 @@ interface DeleteManyResult {
|
|
|
12528
12604
|
}>;
|
|
12529
12605
|
}
|
|
12530
12606
|
|
|
12531
|
-
export { type ConsentAuditEntry as $, type BlobObject as A, type BlobStrategy as B, type BlobPutOptions as C, DICT_COLLECTION_PREFIX as D, type BlobResponseOptions as E, BlobSet as F, type BlobStrategyOpenArgs as G, type CompactRunOptions as H, type I18nStrategy as I, type CompactionContext as J, type CompactionResult as K, DEFAULT_CHUNK_SIZE as L, EXPORT_AUDIT_COLLECTION as M, ExportBlobsAbortedError as N, type ExportBlobsAuditEntry as O, PolicyEnforcer as P, type ExportBlobsHandle as Q, type ExportBlobsOptions as R, type SessionStrategy as S, type ExportedBlob as T, type SlotInfo as U, type SlotRecord as V, type VersionRecord as W, createExportBlobsHandle as X, runCompaction as Y, type ConsentStrategy as Z, CONSENT_AUDIT_COLLECTION as _, type DictEntry as a, VaultInstant as a$, type ConsentAuditFilter as a0, type ConsentContext as a1, type ConsentOp as a2, loadConsentEntries as a3, writeConsentEntry as a4, type PeriodsStrategy as a5, type CarryForwardContext as a6, type ClosePeriodOptions as a7, type OpenPeriodOptions as a8, PERIODS_COLLECTION as a9, type DerivationStrategyHandle as aA, type DerivedFromMeta as aB, type OutputSpec as aC, type RecordOutputSpec as aD, type MaterializedViewStrategy as aE, type MaterializedViewStrategyHandle as aF, type OverlayedViewStrategy as aG, Collection as aH, OverlayedViewRegistry as aI, type OverlayedViewStrategyHandle as aJ, type SyncStrategy as aK, type Role as aL, type UnlockedKeyring as aM, type HistoryStrategy as aN, type NoydbStore as aO, type HistoryOptions as aP, type EncryptedEnvelope as aQ, type PruneOptions as aR, type AppendInput as aS, type ChangeType as aT, CollectionInstant as aU, type DiffEntry as aV, type JsonPatch as aW, type JsonPatchOp as aX, type LedgerEntry as aY, LedgerStore as aZ, type VaultEngine as a_, type PeriodRecord as aa, type ReadOnlyCollection as ab, appendPeriodLedgerEntry as ac, assertTsWritable as ad, chainAnchor as ae, loadPeriods as af, validatePeriodName as ag, type GuardStrategy as ah, type GuardChange as ai, type GuardContext as aj, GuardRegistry as ak, type GuardStrategyHandle as al, ReadOnlyVaultFacade as am, type ShadowStrategy as an, CollectionFrame as ao, VaultFrame as ap, type TxStrategy as aq, type AmendmentTxOptions as ar, TxCollection as as, TxContext as at, TxVault as au, runTransaction as av, type DerivationStrategy as aw, type DerivationContext as ax, type ArrayOutputSpec as ay, DerivationRegistry as az, type DictKeyDescriptor as b, type EnrollAuthenticatorOptions as b$, type VerifyResult as b0, applyPatch as b1, canonicalJson as b2, computePatch as b3, diff as b4, formatDiff as b5, hashEntry as b6, paddedIndex as b7, parseIndex as b8, sha256Hex as b9, type AccessibleVault as bA, type AffectedDocument as bB, BUNDLE_STORE_POLICY as bC, type BuiltInGateName as bD, type CacheOptions as bE, type CacheStats as bF, type ChangeEvent as bG, type CollectionChangeEvent as bH, type CollectionConflictResolver as bI, type CollectionDescriptor as bJ, type CollectionStats as bK, type Conflict as bL, type ConflictPolicy as bM, type ConflictStrategy as bN, type CrossTierAccessEvent as bO, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as bP, DELEGATIONS_COLLECTION as bQ, type DeepPartial as bR, type DeepPartialOrNull as bS, type DelegationToken as bT, type DeleteManyResult as bU, type DerivationDescriptor as bV, type DirtyEntry as bW, type DryRunResult as bX, type DumpSchemaOptions as bY, ELEVATION_AUDIT_COLLECTION as bZ, ElevatedHandle as b_, type PublicEnvelope as ba, type SealingKeyProvider as bb, type BundleRecipient as bc, type RecipientSealer as bd, type RecipientHint as be, Vault as bf, type RecoveryEnrollmentInput as bg, type ShamirRecoveryProvider as bh, type MVQueryContext as bi, type RegisteredMV as bj, MaterializedViewRegistry as bk, type MaterializedFromMeta as bl, type MaterializedViewOutput as bm, type UnionSource as bn, type UserEnvelope as bo, type GateName as bp, type GatePolicy as bq, type VaultPolicy as br, type ActiveTier as bs, type FactorProof as bt, type SchemaUpdateStrategy as bu, type TransformFn as bv, type PersistedSchemaEnvelope as bw, type UpdateDecision as bx, type DirectoryConfig as by, type UserVisibility as bz, DictionaryHandle as c, type PlaintextTranslatorContext as c$, type EnrollAuthenticatorWrappingDEKsOptions as c0, type EnrollAuthenticatorWrappingKEKOptions as c1, type EnrollRecoveryResult as c2, type ExportCapability as c3, type ExportChunk as c4, type ExportFormat as c5, type ExportStreamOptions as c6, type FactorKind as c7, type FactorProofBundle as c8, type FactorRequirement as c9, type LruOptions as cA, type LruStats as cB, MAGIC_LINK_CONTENT_INFO_PREFIX as cC, MAGIC_LINK_GRANTS_COLLECTION as cD, MAGIC_LINK_KEK_INFO_PREFIX as cE, type MagicLinkGrantPayload as cF, type MagicLinkGrantRecord as cG, type MaterializedViewDescriptor as cH, MemoryRecipientSealer as cI, MemorySealingKeyProvider as cJ, NOYDB_BACKUP_VERSION as cK, NOYDB_FORMAT_VERSION as cL, NOYDB_KEYRING_VERSION as cM, NOYDB_SYNC_VERSION as cN, Noydb as cO, type NoydbBundleStore as cP, type NoydbEventMap as cQ, type NoydbOptions as cR, type OverlayViewDescriptor as cS, PUBLIC_ENVELOPE_FIELDS as cT, type PaperRecoveryDoc as cU, type PaperRecoveryEntry as cV, type PassphrasePolicy as cW, type PassphraseValidationResult as cX, type Permission as cY, type Permissions as cZ, type PersistedSchemaKind as c_, type FenceDoc as ca, type FenceState as cb, type FieldChange as cc, type FieldDescriptor as cd, type FieldSource as ce, type GhostRecord as cf, type GrantOptions as cg, type GuardViolation as ch, type HistoryConfig as ci, type HistoryEntry as cj, INDEXED_STORE_POLICY as ck, type ImportCapability as cl, type InferOutput as cm, type InternalCollectionStats as cn, type IssueDelegationOptions as co, type IssueMagicLinkGrantOptions as cp, type KeyringAuthenticator as cq, type KeyringAuthenticatorWrappingDEKs as cr, type KeyringAuthenticatorWrappingKEK as cs, type KeyringFile as ct, type ListAccessibleVaultsOptions as cu, type ListPageResult as cv, type ListUsersOptions as cw, type LiveUserEnvelope as cx, type LocaleReadOptions as cy, Lru as cz, type DictionaryOptions as d, type TabRole as d$, type PlaintextTranslatorFn as d0, PresenceHandle as d1, type PresencePeer as d2, type PublicEnvelopeField as d3, type PublicEnvelopeSchema as d4, type PublicEnvelopeText as d5, type PullMode as d6, type PullOptions as d7, type PullPolicy as d8, type PullResult as d9, type SealedPassphrase as dA, type SessionPolicy as dB, type SetPublicEnvelopeInput as dC, type ShamirRecoveryDoc as dD, type ShamirRecoveryEntry as dE, type SlotRewrapCeremony as dF, type SlotRewrapContext as dG, type StandardSchemaV1 as dH, type StandardSchemaV1Issue as dI, type StandardSchemaV1SyncResult as dJ, type StoreAuth as dK, type StoreAuthKind as dL, type StoreCapabilities as dM, SyncEngine as dN, type SyncMetadata as dO, type SyncPolicy as dP, SyncScheduler as dQ, type SyncSchedulerStatus as dR, type SyncStatus as dS, type SyncTarget as dT, type SyncTargetRole as dU, SyncTransaction as dV, type SyncTransactionResult as dW, type TabChannel as dX, type TabCoordinationOptions as dY, type TabLockManager as dZ, type TabPresence as d_, type PushMode as da, type PushOptions as db, type PushPolicy as dc, type PushResult as dd, type PutManyItemOptions as de, type PutManyOptions as df, type PutManyResult as dg, type QueryAcrossOptions as dh, type QueryAcrossResult as di, type QuickUnlockState as dj, QuickUnlockStore as dk, type ReAuthOperation as dl, type RecoverPassphraseInput as dm, type RecoverPassphraseResult as dn, type RecoverUserOptions as dp, type RecoveryProof as dq, type ResolvedPublicEnvelopeSchema as dr, type RevokeOptions as ds, type RotatePassphraseInput as dt, type RotateRecoveryOptions as du, type RotateRecoveryResult as dv, SEALED_PASSPHRASE_RECORD_ID as dw, type SchemaDelta as dx, type SchemaIntrospection as dy, type SealedEnvelope as dz, type I18nTextDescriptor as e, savePaperRecoveryEntries as e$, type TierMode as e0, type TranslatorAuditEntry as e1, type TxOp as e2, USER_ENVELOPE_COLLECTION as e3, USER_ENVELOPE_MAX_BYTES as e4, type Unsubscribe as e5, type UpdateAuthenticatorOptions as e6, type UpdateContext as e7, type UpdateUserOptions as e8, UserApi as e9, findAuthenticator as eA, hasExportCapability as eB, hasImportCapability as eC, hasRecoveryEnrolled as eD, isMagicLinkGrantExpired as eE, isPublicEnvelope as eF, issueDelegation as eG, recoverPassphrase as eH, rotatePassphrase as eI, listMagicLinkGrants as eJ, listUsers as eK, listUsersWithEnvelopes as eL, loadActiveDelegations as eM, loadPaperRecoveryEntries as eN, loadSealedPassphrase as eO, loadShamirRecoveryEntries as eP, magicLinkGrantRecordId as eQ, mintPaperRecoveryEntry as eR, mintShamirRecoveryEntry as eS, mintWrappedDeksBlob as eT, parseSealedEnvelope as eU, readMagicLinkGrantRecord as eV, recoverUser as eW, removeAuthenticator as eX, resolveSchema as eY, revokeDelegation as eZ, revokeMagicLinkGrant as e_, type UserEnvelopeCheckGate as ea, UserEnvelopeOversizedError as eb, type UserEnvelopePresented as ec, type UserInfo as ed, type VaultBackup as ee, type VaultPolicyOnDisk as ef, type VaultSchemaSnapshot as eg, type VaultSnapshot as eh, type WarningRules as ei, WeakPassphraseError as ej, type WeakPassphraseReason as ek, type WrappedDeksBlob as el, type WriteConflict as em, type WriteEvent as en, type WriteHook as eo, type WriteQueue as ep, assertStrongPassphrase as eq, buildRecipientKeyringFile as er, burnPaperRecoveryEntry as es, createNoydb as et, createStore as eu, deriveMagicLinkContentKey as ev, enrollAuthenticator as ew, estimateEntropy as ex, evaluateExportCapability as ey, evaluateImportCapability as ez, type I18nTextOptions as f, saveSealedPassphrase as f0, saveShamirRecoveryEntries as f1, unwrapDeksFromBlob as f2, unwrapDeksFromPaperEntry as f3, unwrapDeksFromShamirEntry as f4, unwrapMagicLinkGrant as f5, validatePassphrase as f6, validatePublicEnvelopeInput as f7, validateSchemaInput as f8, validateSchemaOutput as f9, writeMagicLinkGrant as fa, changeSecret as fb, createOwnerKeyring as fc, ensureCollectionDEK as fd, grant as fe, loadKeyring as ff, persistKeyring as fg, revoke as fh, updateAuthenticator as fi, updateKeyringIdentity as fj, applyI18nLocale as g, dictCollectionName as h, dictKey as i, i18nText as j, isDictCollectionName as k, isDictKeyDescriptor as l, isI18nTextDescriptor as m, createEnforcer as n, validateSessionPolicy as o, BLOB_CHUNKS_COLLECTION as p, BLOB_COLLECTION as q, resolveI18nText as r, BLOB_EVICTION_AUDIT_COLLECTION as s, BLOB_INDEX_COLLECTION as t, BLOB_SLOTS_PREFIX as u, validateI18nTextValue as v, BLOB_VERSIONS_PREFIX as w, type BlobEvictionEntry as x, type BlobFieldPolicy as y, type BlobFieldsConfig as z };
|
|
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 };
|
|
@@ -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, av as RefRegistry, as as RefDescriptor, a6 as JoinableSource, ax as RefViolation, ay as ScanBuilder } from './index-vB43MAt4.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
|
/**
|
|
@@ -1769,17 +1769,34 @@ declare function validateI18nTextValue(value: unknown, field: string, descriptor
|
|
|
1769
1769
|
*/
|
|
1770
1770
|
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback?: string | readonly string[], field?: string): string | Record<string, string>;
|
|
1771
1771
|
/**
|
|
1772
|
-
*
|
|
1772
|
+
* Return all leaf values at `path`, expanding `[].` array wildcards.
|
|
1773
|
+
*
|
|
1774
|
+
* - `'name'` → `[obj.name]`
|
|
1775
|
+
* - `'address.lineOne'` → `[obj.address.lineOne]`
|
|
1776
|
+
* - `'contacts[].title'` → `[obj.contacts[0].title, obj.contacts[1].title, …]`
|
|
1777
|
+
*
|
|
1778
|
+
* Returns an empty array when the path does not resolve (missing key,
|
|
1779
|
+
* wrong type, etc.). Used by `enforceI18nOnPut` to validate nested fields.
|
|
1780
|
+
*/
|
|
1781
|
+
declare function getAtPath(obj: Record<string, unknown>, path: string): unknown[];
|
|
1782
|
+
/**
|
|
1783
|
+
* Mutate `obj` in-place, setting `value` at the nested `path`.
|
|
1784
|
+
* Supports dot notation (`'address.lineOne'`) but not array wildcards —
|
|
1785
|
+
* auto-translate on `contacts[].title` style paths is not supported.
|
|
1786
|
+
*/
|
|
1787
|
+
declare function setAtPathInPlace(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
1788
|
+
/**
|
|
1789
|
+
* Apply locale resolution to a single record, returning a new copy.
|
|
1773
1790
|
*
|
|
1774
1791
|
* For each field registered as an `i18nText` descriptor:
|
|
1775
1792
|
* - If `locale === 'raw'`, the field value is left as the stored map.
|
|
1776
1793
|
* - Otherwise, the field value is replaced with the resolved string.
|
|
1777
1794
|
*
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1795
|
+
* Field paths support dot notation (`'address.lineOne'`) and array
|
|
1796
|
+
* wildcards (`'contacts[].title'`). Top-level fields work as before.
|
|
1780
1797
|
*
|
|
1781
1798
|
* @param record The decrypted record.
|
|
1782
|
-
* @param i18nFields Map of field
|
|
1799
|
+
* @param i18nFields Map of field path → `I18nTextDescriptor`.
|
|
1783
1800
|
* @param locale The requested locale (or `'raw'`).
|
|
1784
1801
|
* @param fallback Fallback chain (optional).
|
|
1785
1802
|
*/
|
|
@@ -4344,6 +4361,36 @@ declare class QuickUnlockStore {
|
|
|
4344
4361
|
private clearTimer;
|
|
4345
4362
|
}
|
|
4346
4363
|
|
|
4364
|
+
interface SnapshotMeta {
|
|
4365
|
+
readonly version: string;
|
|
4366
|
+
readonly label?: string;
|
|
4367
|
+
readonly note?: string;
|
|
4368
|
+
readonly exportedAt: string;
|
|
4369
|
+
readonly exportedBy: string;
|
|
4370
|
+
readonly size: number;
|
|
4371
|
+
/**
|
|
4372
|
+
* `'verified'` — bundle was produced by `writeNoydbBundle(vault, {})`, which embeds
|
|
4373
|
+
* ledgerHead metadata; `vault.load()` runs `verifyBackupIntegrity()` on restore.
|
|
4374
|
+
* `'legacy-unverifiable'` — reserved for v2 import paths that read pre-existing bundles
|
|
4375
|
+
* lacking a ledgerHead; not produced by the current engine.
|
|
4376
|
+
*/
|
|
4377
|
+
readonly integrity: 'verified' | 'legacy-unverifiable';
|
|
4378
|
+
}
|
|
4379
|
+
interface RetentionPolicy {
|
|
4380
|
+
readonly keepLast?: number;
|
|
4381
|
+
readonly maxAgeDays?: number;
|
|
4382
|
+
readonly prune?: boolean;
|
|
4383
|
+
}
|
|
4384
|
+
/** @internal */
|
|
4385
|
+
interface SnapshotStrategy {
|
|
4386
|
+
snapshot(vault: unknown, by: string, opts?: {
|
|
4387
|
+
label?: string;
|
|
4388
|
+
note?: string;
|
|
4389
|
+
}): Promise<SnapshotMeta>;
|
|
4390
|
+
listSnapshots(vaultId: string): Promise<SnapshotMeta[]>;
|
|
4391
|
+
restoreSnapshot(vault: unknown, version: string): Promise<void>;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4347
4394
|
/**
|
|
4348
4395
|
* Multi-record atomic transactions.
|
|
4349
4396
|
*
|
|
@@ -4773,6 +4820,7 @@ declare class Noydb {
|
|
|
4773
4820
|
private readonly txStrategy;
|
|
4774
4821
|
private readonly sessionStrategy;
|
|
4775
4822
|
private readonly syncStrategy;
|
|
4823
|
+
private readonly snapshotStrategy;
|
|
4776
4824
|
/**
|
|
4777
4825
|
* Currently-running multi-record transaction, set by
|
|
4778
4826
|
* `runTransaction` at the start of Phase 2 (commit) and cleared in
|
|
@@ -5744,6 +5792,27 @@ declare class Noydb {
|
|
|
5744
5792
|
* should use {@link getKeyring}, which returns a defensive copy.
|
|
5745
5793
|
*/
|
|
5746
5794
|
private getKeyringInternal;
|
|
5795
|
+
/**
|
|
5796
|
+
* Take an on-demand checkpoint of the given vault.
|
|
5797
|
+
* Requires `snapshotStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
5798
|
+
* @throws ValidationError when the vault is not open
|
|
5799
|
+
*/
|
|
5800
|
+
snapshot(vault: string, opts?: {
|
|
5801
|
+
label?: string;
|
|
5802
|
+
note?: string;
|
|
5803
|
+
}): Promise<SnapshotMeta>;
|
|
5804
|
+
/**
|
|
5805
|
+
* List all snapshots for the given vault, newest first.
|
|
5806
|
+
* Reads only the sidecar index — does not download snapshot bytes.
|
|
5807
|
+
*/
|
|
5808
|
+
listSnapshots(vault: string): Promise<SnapshotMeta[]>;
|
|
5809
|
+
/**
|
|
5810
|
+
* Restore the vault to a previously snapshotted state.
|
|
5811
|
+
* Runs `verifyBackupIntegrity()` automatically on restore.
|
|
5812
|
+
* @throws SnapshotNotFoundError when `version` doesn't exist in the store
|
|
5813
|
+
* @throws ValidationError when the vault is not open
|
|
5814
|
+
*/
|
|
5815
|
+
restoreSnapshot(vault: string, version: string): Promise<void>;
|
|
5747
5816
|
}
|
|
5748
5817
|
/** Create a new NOYDB instance. */
|
|
5749
5818
|
declare function createNoydb(options: NoydbOptions): Promise<Noydb>;
|
|
@@ -12223,6 +12292,13 @@ interface NoydbOptions {
|
|
|
12223
12292
|
* @internal
|
|
12224
12293
|
*/
|
|
12225
12294
|
readonly syncStrategy?: SyncStrategy;
|
|
12295
|
+
/**
|
|
12296
|
+
* Tree-shake seam — optional snapshot-lifecycle subsystem. Pass
|
|
12297
|
+
* `withSnapshots({ store })` from `@noy-db/hub/snapshots` to enable
|
|
12298
|
+
* `db.snapshot()`, `db.listSnapshots()`, and `db.restoreSnapshot()`.
|
|
12299
|
+
* When omitted, all three methods throw with a pointer at the subpath.
|
|
12300
|
+
*/
|
|
12301
|
+
readonly snapshotStrategy?: SnapshotStrategy;
|
|
12226
12302
|
/**
|
|
12227
12303
|
* Optional guard strategies — collection-level write guards. Each
|
|
12228
12304
|
* handle is the output of `withGuard()` from `@noy-db/hub/guards`.
|
|
@@ -12528,4 +12604,4 @@ interface DeleteManyResult {
|
|
|
12528
12604
|
}>;
|
|
12529
12605
|
}
|
|
12530
12606
|
|
|
12531
|
-
export { type ConsentAuditEntry as $, type BlobObject as A, type BlobStrategy as B, type BlobPutOptions as C, DICT_COLLECTION_PREFIX as D, type BlobResponseOptions as E, BlobSet as F, type BlobStrategyOpenArgs as G, type CompactRunOptions as H, type I18nStrategy as I, type CompactionContext as J, type CompactionResult as K, DEFAULT_CHUNK_SIZE as L, EXPORT_AUDIT_COLLECTION as M, ExportBlobsAbortedError as N, type ExportBlobsAuditEntry as O, PolicyEnforcer as P, type ExportBlobsHandle as Q, type ExportBlobsOptions as R, type SessionStrategy as S, type ExportedBlob as T, type SlotInfo as U, type SlotRecord as V, type VersionRecord as W, createExportBlobsHandle as X, runCompaction as Y, type ConsentStrategy as Z, CONSENT_AUDIT_COLLECTION as _, type DictEntry as a, VaultInstant as a$, type ConsentAuditFilter as a0, type ConsentContext as a1, type ConsentOp as a2, loadConsentEntries as a3, writeConsentEntry as a4, type PeriodsStrategy as a5, type CarryForwardContext as a6, type ClosePeriodOptions as a7, type OpenPeriodOptions as a8, PERIODS_COLLECTION as a9, type DerivationStrategyHandle as aA, type DerivedFromMeta as aB, type OutputSpec as aC, type RecordOutputSpec as aD, type MaterializedViewStrategy as aE, type MaterializedViewStrategyHandle as aF, type OverlayedViewStrategy as aG, Collection as aH, OverlayedViewRegistry as aI, type OverlayedViewStrategyHandle as aJ, type SyncStrategy as aK, type Role as aL, type UnlockedKeyring as aM, type HistoryStrategy as aN, type NoydbStore as aO, type HistoryOptions as aP, type EncryptedEnvelope as aQ, type PruneOptions as aR, type AppendInput as aS, type ChangeType as aT, CollectionInstant as aU, type DiffEntry as aV, type JsonPatch as aW, type JsonPatchOp as aX, type LedgerEntry as aY, LedgerStore as aZ, type VaultEngine as a_, type PeriodRecord as aa, type ReadOnlyCollection as ab, appendPeriodLedgerEntry as ac, assertTsWritable as ad, chainAnchor as ae, loadPeriods as af, validatePeriodName as ag, type GuardStrategy as ah, type GuardChange as ai, type GuardContext as aj, GuardRegistry as ak, type GuardStrategyHandle as al, ReadOnlyVaultFacade as am, type ShadowStrategy as an, CollectionFrame as ao, VaultFrame as ap, type TxStrategy as aq, type AmendmentTxOptions as ar, TxCollection as as, TxContext as at, TxVault as au, runTransaction as av, type DerivationStrategy as aw, type DerivationContext as ax, type ArrayOutputSpec as ay, DerivationRegistry as az, type DictKeyDescriptor as b, type EnrollAuthenticatorOptions as b$, type VerifyResult as b0, applyPatch as b1, canonicalJson as b2, computePatch as b3, diff as b4, formatDiff as b5, hashEntry as b6, paddedIndex as b7, parseIndex as b8, sha256Hex as b9, type AccessibleVault as bA, type AffectedDocument as bB, BUNDLE_STORE_POLICY as bC, type BuiltInGateName as bD, type CacheOptions as bE, type CacheStats as bF, type ChangeEvent as bG, type CollectionChangeEvent as bH, type CollectionConflictResolver as bI, type CollectionDescriptor as bJ, type CollectionStats as bK, type Conflict as bL, type ConflictPolicy as bM, type ConflictStrategy as bN, type CrossTierAccessEvent as bO, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as bP, DELEGATIONS_COLLECTION as bQ, type DeepPartial as bR, type DeepPartialOrNull as bS, type DelegationToken as bT, type DeleteManyResult as bU, type DerivationDescriptor as bV, type DirtyEntry as bW, type DryRunResult as bX, type DumpSchemaOptions as bY, ELEVATION_AUDIT_COLLECTION as bZ, ElevatedHandle as b_, type PublicEnvelope as ba, type SealingKeyProvider as bb, type BundleRecipient as bc, type RecipientSealer as bd, type RecipientHint as be, Vault as bf, type RecoveryEnrollmentInput as bg, type ShamirRecoveryProvider as bh, type MVQueryContext as bi, type RegisteredMV as bj, MaterializedViewRegistry as bk, type MaterializedFromMeta as bl, type MaterializedViewOutput as bm, type UnionSource as bn, type UserEnvelope as bo, type GateName as bp, type GatePolicy as bq, type VaultPolicy as br, type ActiveTier as bs, type FactorProof as bt, type SchemaUpdateStrategy as bu, type TransformFn as bv, type PersistedSchemaEnvelope as bw, type UpdateDecision as bx, type DirectoryConfig as by, type UserVisibility as bz, DictionaryHandle as c, type PlaintextTranslatorContext as c$, type EnrollAuthenticatorWrappingDEKsOptions as c0, type EnrollAuthenticatorWrappingKEKOptions as c1, type EnrollRecoveryResult as c2, type ExportCapability as c3, type ExportChunk as c4, type ExportFormat as c5, type ExportStreamOptions as c6, type FactorKind as c7, type FactorProofBundle as c8, type FactorRequirement as c9, type LruOptions as cA, type LruStats as cB, MAGIC_LINK_CONTENT_INFO_PREFIX as cC, MAGIC_LINK_GRANTS_COLLECTION as cD, MAGIC_LINK_KEK_INFO_PREFIX as cE, type MagicLinkGrantPayload as cF, type MagicLinkGrantRecord as cG, type MaterializedViewDescriptor as cH, MemoryRecipientSealer as cI, MemorySealingKeyProvider as cJ, NOYDB_BACKUP_VERSION as cK, NOYDB_FORMAT_VERSION as cL, NOYDB_KEYRING_VERSION as cM, NOYDB_SYNC_VERSION as cN, Noydb as cO, type NoydbBundleStore as cP, type NoydbEventMap as cQ, type NoydbOptions as cR, type OverlayViewDescriptor as cS, PUBLIC_ENVELOPE_FIELDS as cT, type PaperRecoveryDoc as cU, type PaperRecoveryEntry as cV, type PassphrasePolicy as cW, type PassphraseValidationResult as cX, type Permission as cY, type Permissions as cZ, type PersistedSchemaKind as c_, type FenceDoc as ca, type FenceState as cb, type FieldChange as cc, type FieldDescriptor as cd, type FieldSource as ce, type GhostRecord as cf, type GrantOptions as cg, type GuardViolation as ch, type HistoryConfig as ci, type HistoryEntry as cj, INDEXED_STORE_POLICY as ck, type ImportCapability as cl, type InferOutput as cm, type InternalCollectionStats as cn, type IssueDelegationOptions as co, type IssueMagicLinkGrantOptions as cp, type KeyringAuthenticator as cq, type KeyringAuthenticatorWrappingDEKs as cr, type KeyringAuthenticatorWrappingKEK as cs, type KeyringFile as ct, type ListAccessibleVaultsOptions as cu, type ListPageResult as cv, type ListUsersOptions as cw, type LiveUserEnvelope as cx, type LocaleReadOptions as cy, Lru as cz, type DictionaryOptions as d, type TabRole as d$, type PlaintextTranslatorFn as d0, PresenceHandle as d1, type PresencePeer as d2, type PublicEnvelopeField as d3, type PublicEnvelopeSchema as d4, type PublicEnvelopeText as d5, type PullMode as d6, type PullOptions as d7, type PullPolicy as d8, type PullResult as d9, type SealedPassphrase as dA, type SessionPolicy as dB, type SetPublicEnvelopeInput as dC, type ShamirRecoveryDoc as dD, type ShamirRecoveryEntry as dE, type SlotRewrapCeremony as dF, type SlotRewrapContext as dG, type StandardSchemaV1 as dH, type StandardSchemaV1Issue as dI, type StandardSchemaV1SyncResult as dJ, type StoreAuth as dK, type StoreAuthKind as dL, type StoreCapabilities as dM, SyncEngine as dN, type SyncMetadata as dO, type SyncPolicy as dP, SyncScheduler as dQ, type SyncSchedulerStatus as dR, type SyncStatus as dS, type SyncTarget as dT, type SyncTargetRole as dU, SyncTransaction as dV, type SyncTransactionResult as dW, type TabChannel as dX, type TabCoordinationOptions as dY, type TabLockManager as dZ, type TabPresence as d_, type PushMode as da, type PushOptions as db, type PushPolicy as dc, type PushResult as dd, type PutManyItemOptions as de, type PutManyOptions as df, type PutManyResult as dg, type QueryAcrossOptions as dh, type QueryAcrossResult as di, type QuickUnlockState as dj, QuickUnlockStore as dk, type ReAuthOperation as dl, type RecoverPassphraseInput as dm, type RecoverPassphraseResult as dn, type RecoverUserOptions as dp, type RecoveryProof as dq, type ResolvedPublicEnvelopeSchema as dr, type RevokeOptions as ds, type RotatePassphraseInput as dt, type RotateRecoveryOptions as du, type RotateRecoveryResult as dv, SEALED_PASSPHRASE_RECORD_ID as dw, type SchemaDelta as dx, type SchemaIntrospection as dy, type SealedEnvelope as dz, type I18nTextDescriptor as e, savePaperRecoveryEntries as e$, type TierMode as e0, type TranslatorAuditEntry as e1, type TxOp as e2, USER_ENVELOPE_COLLECTION as e3, USER_ENVELOPE_MAX_BYTES as e4, type Unsubscribe as e5, type UpdateAuthenticatorOptions as e6, type UpdateContext as e7, type UpdateUserOptions as e8, UserApi as e9, findAuthenticator as eA, hasExportCapability as eB, hasImportCapability as eC, hasRecoveryEnrolled as eD, isMagicLinkGrantExpired as eE, isPublicEnvelope as eF, issueDelegation as eG, recoverPassphrase as eH, rotatePassphrase as eI, listMagicLinkGrants as eJ, listUsers as eK, listUsersWithEnvelopes as eL, loadActiveDelegations as eM, loadPaperRecoveryEntries as eN, loadSealedPassphrase as eO, loadShamirRecoveryEntries as eP, magicLinkGrantRecordId as eQ, mintPaperRecoveryEntry as eR, mintShamirRecoveryEntry as eS, mintWrappedDeksBlob as eT, parseSealedEnvelope as eU, readMagicLinkGrantRecord as eV, recoverUser as eW, removeAuthenticator as eX, resolveSchema as eY, revokeDelegation as eZ, revokeMagicLinkGrant as e_, type UserEnvelopeCheckGate as ea, UserEnvelopeOversizedError as eb, type UserEnvelopePresented as ec, type UserInfo as ed, type VaultBackup as ee, type VaultPolicyOnDisk as ef, type VaultSchemaSnapshot as eg, type VaultSnapshot as eh, type WarningRules as ei, WeakPassphraseError as ej, type WeakPassphraseReason as ek, type WrappedDeksBlob as el, type WriteConflict as em, type WriteEvent as en, type WriteHook as eo, type WriteQueue as ep, assertStrongPassphrase as eq, buildRecipientKeyringFile as er, burnPaperRecoveryEntry as es, createNoydb as et, createStore as eu, deriveMagicLinkContentKey as ev, enrollAuthenticator as ew, estimateEntropy as ex, evaluateExportCapability as ey, evaluateImportCapability as ez, type I18nTextOptions as f, saveSealedPassphrase as f0, saveShamirRecoveryEntries as f1, unwrapDeksFromBlob as f2, unwrapDeksFromPaperEntry as f3, unwrapDeksFromShamirEntry as f4, unwrapMagicLinkGrant as f5, validatePassphrase as f6, validatePublicEnvelopeInput as f7, validateSchemaInput as f8, validateSchemaOutput as f9, writeMagicLinkGrant as fa, changeSecret as fb, createOwnerKeyring as fc, ensureCollectionDEK as fd, grant as fe, loadKeyring as ff, persistKeyring as fg, revoke as fh, updateAuthenticator as fi, updateKeyringIdentity as fj, applyI18nLocale as g, dictCollectionName as h, dictKey as i, i18nText as j, isDictCollectionName as k, isDictKeyDescriptor as l, isI18nTextDescriptor as m, createEnforcer as n, validateSessionPolicy as o, BLOB_CHUNKS_COLLECTION as p, BLOB_COLLECTION as q, resolveI18nText as r, BLOB_EVICTION_AUDIT_COLLECTION as s, BLOB_INDEX_COLLECTION as t, BLOB_SLOTS_PREFIX as u, validateI18nTextValue as v, BLOB_VERSIONS_PREFIX as w, type BlobEvictionEntry as x, type BlobFieldPolicy as y, type BlobFieldsConfig as z };
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bg as PublicEnvelope, bh as SealingKeyProvider, bi as BundleRecipient, bj as RecipientSealer, bk as RecipientHint, bl as Vault } from './types-r-y7TIqj.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bg as PublicEnvelope, bh as SealingKeyProvider, bi as BundleRecipient, bj as RecipientSealer, bk as RecipientHint, bl as Vault } from './types-DT7cXRHq.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|