@noy-db/hub 0.2.0-pre.13 → 0.2.0-pre.15
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 +56 -56
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +4 -4
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +5 -5
- package/dist/attestation/index.d.ts +5 -5
- package/dist/attestation/index.js +5 -5
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +6 -6
- package/dist/blobs/index.d.ts +6 -6
- package/dist/blobs/index.js +4 -4
- package/dist/bundle/index.cjs +559 -76
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +7 -7
- package/dist/bundle/index.d.ts +7 -7
- package/dist/bundle/index.js +8 -8
- package/dist/{chunk-YWBHS25M.js → chunk-3EWXMOK3.js} +8 -267
- package/dist/chunk-3EWXMOK3.js.map +1 -0
- package/dist/{chunk-SJ24GHID.js → chunk-4TBBMHVC.js} +2 -2
- package/dist/{chunk-NKGY3C53.js → chunk-535SSHBS.js} +8 -1
- package/dist/{chunk-NKGY3C53.js.map → chunk-535SSHBS.js.map} +1 -1
- package/dist/{chunk-HQXOEWLZ.js → chunk-56DJ7JVK.js} +3 -3
- package/dist/{chunk-KKB42D3Q.js → chunk-5LQG6ZO2.js} +2 -2
- package/dist/{chunk-TDECYU4Y.js → chunk-6AJBSQU4.js} +2 -2
- package/dist/{chunk-O2JW656W.js → chunk-6RR3MNMG.js} +3 -3
- package/dist/{chunk-P5MW7BG2.js → chunk-7EFFHEN5.js} +57 -50
- package/dist/chunk-7EFFHEN5.js.map +1 -0
- package/dist/{chunk-7TEI2K2A.js → chunk-7HT2MEZ5.js} +4 -4
- package/dist/{chunk-WQKZIQIL.js → chunk-7PS7EOCF.js} +3 -3
- package/dist/{chunk-C3WRKABE.js → chunk-A5ZOOZFB.js} +3 -3
- package/dist/{chunk-5NISHSBO.js → chunk-AAVWKNZW.js} +2 -2
- package/dist/{chunk-SOU42FGB.js → chunk-BIYRQQV6.js} +4 -4
- package/dist/{chunk-ILWQGTNH.js → chunk-BQ65SS5A.js} +2 -2
- package/dist/{chunk-CWFQTAD4.js → chunk-C5T5AFWN.js} +4 -4
- package/dist/chunk-CJORTUJ2.js +524 -0
- package/dist/chunk-CJORTUJ2.js.map +1 -0
- package/dist/{chunk-SYSKC237.js → chunk-COFPAMX6.js} +5 -5
- package/dist/{chunk-D5Y3HIC6.js → chunk-CZI2A4MQ.js} +3 -3
- package/dist/{chunk-KJF7EPUE.js → chunk-DKO2QFSA.js} +2 -2
- package/dist/{chunk-QFYVGJLI.js → chunk-DQU36Q7I.js} +2 -2
- package/dist/{chunk-NIUXQDWD.js → chunk-EGD5DXFT.js} +2 -2
- package/dist/{chunk-NJMKHRQI.js → chunk-EYVQHAGH.js} +267 -67
- package/dist/chunk-EYVQHAGH.js.map +1 -0
- package/dist/{chunk-KHQ3N5AB.js → chunk-F4OJZIWQ.js} +4 -4
- package/dist/{chunk-3OUCWHV6.js → chunk-FWPKCXTN.js} +2 -2
- package/dist/{chunk-QIVFGU2M.js → chunk-HOR4R722.js} +3 -3
- package/dist/{chunk-NP6EZT44.js → chunk-IQLVUT37.js} +2 -2
- package/dist/{chunk-4VCQH32J.js → chunk-JD3OZAI4.js} +2 -2
- package/dist/{chunk-J67BP5EP.js → chunk-KI6HAJWL.js} +3 -3
- package/dist/{chunk-AYNF7PVX.js → chunk-KIP6JLTF.js} +2 -2
- package/dist/{chunk-PW26DAXS.js → chunk-L2FE64BU.js} +3 -3
- package/dist/{chunk-QAWCVWCX.js → chunk-LX3CB26H.js} +4 -4
- package/dist/{chunk-VAK6NQAK.js → chunk-NSCVNK5K.js} +4 -4
- package/dist/{chunk-4YDZ7JPZ.js → chunk-NU6Q3FOR.js} +4 -4
- package/dist/chunk-NU6Q3FOR.js.map +1 -0
- package/dist/{chunk-3XZRRBFW.js → chunk-OHVFWCJP.js} +2 -2
- package/dist/{chunk-TEQGXA7L.js → chunk-PE4AQGFH.js} +4 -4
- package/dist/{chunk-UNQEWORI.js → chunk-TS26M2SB.js} +2 -2
- package/dist/{chunk-FNVFT4HZ.js → chunk-VU7SWWT5.js} +2 -2
- package/dist/{chunk-GZJ5JBED.js → chunk-WBAYSNUQ.js} +3 -3
- package/dist/{chunk-HHZ77DHM.js → chunk-WGHU7BLI.js} +2 -2
- package/dist/{chunk-GL3Z7LH7.js → chunk-X73VS74Y.js} +2 -2
- package/dist/{chunk-WIBHRONM.js → chunk-XWH4MXIU.js} +2 -2
- package/dist/{chunk-M6KXHRIA.js → chunk-YHPM5D7Y.js} +3 -3
- package/dist/{chunk-E3DIBDKA.js → chunk-YULZKK4F.js} +2 -2
- package/dist/{chunk-JWFNOD2T.js → chunk-Z4DO7YSI.js} +2 -2
- package/dist/{chunk-JPOQMXGT.js → chunk-ZNQYHJXX.js} +2 -2
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +6 -6
- package/dist/consent/index.d.ts +6 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-YXH6SAOW.js → crypto-QXQOHMHF.js} +3 -3
- package/dist/{delegation-K5ERUH6A.js → delegation-NIQ43IPU.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +7 -7
- package/dist/derivations/index.d.ts +7 -7
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-BW0GNBEV.d.ts → dev-unlock-iAS8z9jc.d.ts} +1 -1
- package/dist/{dev-unlock-a7SOtaV0.d.cts → dev-unlock-nVkuRLLe.d.cts} +1 -1
- package/dist/executor-6ZDSDZ6V.js +8 -0
- package/dist/executor-HSSRXDOB.js +11 -0
- package/dist/executor-IDZDAFNH.js +8 -0
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +7 -7
- package/dist/guards/index.d.ts +7 -7
- package/dist/guards/index.js +3 -3
- package/dist/{hash-B0cLQcq_.d.cts → hash-Cv6byZs7.d.cts} +1 -1
- package/dist/{hash-uMNIAAW8.d.ts → hash-DHOnRarj.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +7 -7
- package/dist/history/index.d.ts +7 -7
- package/dist/history/index.js +4 -4
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +6 -6
- package/dist/i18n/index.d.ts +6 -6
- package/dist/i18n/index.js +5 -5
- package/dist/{immutable-guard-B0h-ipLz.d.ts → immutable-guard-BehB1YGB.d.ts} +1 -1
- package/dist/{immutable-guard-BZIcYhYX.d.cts → immutable-guard-yBEOYmif.d.cts} +1 -1
- package/dist/{index-CUVOMtgg.d.cts → index-D95VK1Qy.d.cts} +11 -3
- package/dist/{index-Cqzp4tt9.d.ts → index-XNB2r6bX.d.ts} +11 -3
- package/dist/index.cjs +700 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +145 -15
- package/dist/index.d.ts +145 -15
- package/dist/index.js +164 -48
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs +92 -31
- 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-ADVS4OVP.js +12 -0
- package/dist/{lazy-builder-D5GU14TS.d.ts → lazy-builder-ChSqcF5t.d.ts} +1 -1
- package/dist/{lazy-builder-Ci5_YG73.d.cts → lazy-builder-eYZzLEL1.d.cts} +1 -1
- package/dist/{ledger-64TTQMRS.js → ledger-CWSE3BLF.js} +4 -4
- package/dist/materialized-views/index.cjs +2 -2
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +7 -7
- package/dist/materialized-views/index.d.ts +7 -7
- package/dist/materialized-views/index.js +7 -7
- package/dist/noydb-GZGFBA4E.js +35 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +7 -7
- package/dist/overlay-views/index.d.ts +7 -7
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +6 -6
- package/dist/periods/index.d.ts +6 -6
- package/dist/periods/index.js +4 -4
- package/dist/{predicate-Bt5ft-9c.d.cts → predicate-BmhBSPCH.d.cts} +59 -2
- package/dist/{predicate-Bt5ft-9c.d.ts → predicate-BmhBSPCH.d.ts} +59 -2
- package/dist/{public-envelope-MHG6YVXW.js → public-envelope-SYHEYQ3X.js} +3 -3
- package/dist/query/index.cjs +580 -195
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +6 -6
- package/dist/{registry-PV4G3OPA.js → registry-DK5YWAAA.js} +3 -3
- package/dist/registry-IUZQVVBB.js +8 -0
- package/dist/registry-XGLNADIE.js +8 -0
- package/dist/{revoke-5BOLVJ3N.js → revoke-ZDFKMR5E.js} +5 -5
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +7 -7
- package/dist/session/index.d.ts +7 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +6 -6
- package/dist/shadow/index.d.ts +6 -6
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-GRIYBA22.js → signer-P5D7Y72U.js} +4 -4
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +6 -6
- package/dist/snapshots/index.d.ts +6 -6
- package/dist/snapshots/index.js +3 -3
- package/dist/{stale-LZYMMDDS.js → stale-JH67FU57.js} +2 -2
- package/dist/{state-vault-QFJWU23A.js → state-vault-TMXZRTY5.js} +3 -3
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +6 -6
- package/dist/store/index.d.ts +6 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-CrS7PnbE.d.ts → strategy-CbneC7bS.d.cts} +1 -1
- package/dist/{strategy-CrS7PnbE.d.cts → strategy-CbneC7bS.d.ts} +1 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +3 -3
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +6 -6
- package/dist/team/index.d.ts +6 -6
- package/dist/team/index.js +7 -7
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +6 -6
- package/dist/tx/index.d.ts +6 -6
- package/dist/tx/index.js +3 -3
- package/dist/{types-pax34sec.d.ts → types-4t1-tWS4.d.ts} +77 -9
- package/dist/{types-CDwSSXiI.d.cts → types-BpPV5uyy.d.cts} +77 -9
- package/dist/{ulid-7bCSgIgb.d.cts → ulid-CiPrpGqm.d.cts} +1 -1
- package/dist/{ulid-C_t4hL3d.d.ts → ulid-DAfenvFd.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-UO4YUZOG.js → vault-group-KOM7QRJG.js} +125 -11
- package/dist/vault-group-KOM7QRJG.js.map +1 -0
- package/dist/{with-derivation-D8wFlb6V.d.cts → with-derivation-DBqJB3dQ.d.cts} +1 -1
- package/dist/{with-derivation-BjdOxUBn.d.ts → with-derivation-OK9M2sJE.d.ts} +1 -1
- package/dist/{with-materialized-view-DJb-HO65.d.ts → with-materialized-view-Dt-ufPWQ.d.ts} +1 -1
- package/dist/{with-materialized-view-5QMF1rS_.d.cts → with-materialized-view-NzuxYPDF.d.cts} +1 -1
- package/dist/{with-overlayed-view-DDNflPvC.d.cts → with-overlayed-view-CC0_ocy-.d.cts} +1 -1
- package/dist/{with-overlayed-view-CkqTefbz.d.ts → with-overlayed-view-eDvMs6LO.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-4YDZ7JPZ.js.map +0 -1
- package/dist/chunk-NJMKHRQI.js.map +0 -1
- package/dist/chunk-P5MW7BG2.js.map +0 -1
- package/dist/chunk-TV3YZ35S.js +0 -90
- package/dist/chunk-TV3YZ35S.js.map +0 -1
- package/dist/chunk-YWBHS25M.js.map +0 -1
- package/dist/executor-AVJ7UEWA.js +0 -8
- package/dist/executor-IQO3KGXQ.js +0 -11
- package/dist/executor-VT7TKGE4.js +0 -8
- package/dist/issue-ZH27C23Y.js +0 -12
- package/dist/noydb-O76SKBST.js +0 -35
- package/dist/registry-2PKBQDCH.js +0 -8
- package/dist/registry-4VXFKCBJ.js +0 -8
- package/dist/vault-group-UO4YUZOG.js.map +0 -1
- /package/dist/{chunk-SJ24GHID.js.map → chunk-4TBBMHVC.js.map} +0 -0
- /package/dist/{chunk-HQXOEWLZ.js.map → chunk-56DJ7JVK.js.map} +0 -0
- /package/dist/{chunk-KKB42D3Q.js.map → chunk-5LQG6ZO2.js.map} +0 -0
- /package/dist/{chunk-TDECYU4Y.js.map → chunk-6AJBSQU4.js.map} +0 -0
- /package/dist/{chunk-O2JW656W.js.map → chunk-6RR3MNMG.js.map} +0 -0
- /package/dist/{chunk-7TEI2K2A.js.map → chunk-7HT2MEZ5.js.map} +0 -0
- /package/dist/{chunk-WQKZIQIL.js.map → chunk-7PS7EOCF.js.map} +0 -0
- /package/dist/{chunk-C3WRKABE.js.map → chunk-A5ZOOZFB.js.map} +0 -0
- /package/dist/{chunk-5NISHSBO.js.map → chunk-AAVWKNZW.js.map} +0 -0
- /package/dist/{chunk-SOU42FGB.js.map → chunk-BIYRQQV6.js.map} +0 -0
- /package/dist/{chunk-ILWQGTNH.js.map → chunk-BQ65SS5A.js.map} +0 -0
- /package/dist/{chunk-CWFQTAD4.js.map → chunk-C5T5AFWN.js.map} +0 -0
- /package/dist/{chunk-SYSKC237.js.map → chunk-COFPAMX6.js.map} +0 -0
- /package/dist/{chunk-D5Y3HIC6.js.map → chunk-CZI2A4MQ.js.map} +0 -0
- /package/dist/{chunk-KJF7EPUE.js.map → chunk-DKO2QFSA.js.map} +0 -0
- /package/dist/{chunk-QFYVGJLI.js.map → chunk-DQU36Q7I.js.map} +0 -0
- /package/dist/{chunk-NIUXQDWD.js.map → chunk-EGD5DXFT.js.map} +0 -0
- /package/dist/{chunk-KHQ3N5AB.js.map → chunk-F4OJZIWQ.js.map} +0 -0
- /package/dist/{chunk-3OUCWHV6.js.map → chunk-FWPKCXTN.js.map} +0 -0
- /package/dist/{chunk-QIVFGU2M.js.map → chunk-HOR4R722.js.map} +0 -0
- /package/dist/{chunk-NP6EZT44.js.map → chunk-IQLVUT37.js.map} +0 -0
- /package/dist/{chunk-4VCQH32J.js.map → chunk-JD3OZAI4.js.map} +0 -0
- /package/dist/{chunk-J67BP5EP.js.map → chunk-KI6HAJWL.js.map} +0 -0
- /package/dist/{chunk-AYNF7PVX.js.map → chunk-KIP6JLTF.js.map} +0 -0
- /package/dist/{chunk-PW26DAXS.js.map → chunk-L2FE64BU.js.map} +0 -0
- /package/dist/{chunk-QAWCVWCX.js.map → chunk-LX3CB26H.js.map} +0 -0
- /package/dist/{chunk-VAK6NQAK.js.map → chunk-NSCVNK5K.js.map} +0 -0
- /package/dist/{chunk-3XZRRBFW.js.map → chunk-OHVFWCJP.js.map} +0 -0
- /package/dist/{chunk-TEQGXA7L.js.map → chunk-PE4AQGFH.js.map} +0 -0
- /package/dist/{chunk-UNQEWORI.js.map → chunk-TS26M2SB.js.map} +0 -0
- /package/dist/{chunk-FNVFT4HZ.js.map → chunk-VU7SWWT5.js.map} +0 -0
- /package/dist/{chunk-GZJ5JBED.js.map → chunk-WBAYSNUQ.js.map} +0 -0
- /package/dist/{chunk-HHZ77DHM.js.map → chunk-WGHU7BLI.js.map} +0 -0
- /package/dist/{chunk-GL3Z7LH7.js.map → chunk-X73VS74Y.js.map} +0 -0
- /package/dist/{chunk-WIBHRONM.js.map → chunk-XWH4MXIU.js.map} +0 -0
- /package/dist/{chunk-M6KXHRIA.js.map → chunk-YHPM5D7Y.js.map} +0 -0
- /package/dist/{chunk-E3DIBDKA.js.map → chunk-YULZKK4F.js.map} +0 -0
- /package/dist/{chunk-JWFNOD2T.js.map → chunk-Z4DO7YSI.js.map} +0 -0
- /package/dist/{chunk-JPOQMXGT.js.map → chunk-ZNQYHJXX.js.map} +0 -0
- /package/dist/{crypto-YXH6SAOW.js.map → crypto-QXQOHMHF.js.map} +0 -0
- /package/dist/{delegation-K5ERUH6A.js.map → delegation-NIQ43IPU.js.map} +0 -0
- /package/dist/{executor-AVJ7UEWA.js.map → executor-6ZDSDZ6V.js.map} +0 -0
- /package/dist/{executor-IQO3KGXQ.js.map → executor-HSSRXDOB.js.map} +0 -0
- /package/dist/{executor-VT7TKGE4.js.map → executor-IDZDAFNH.js.map} +0 -0
- /package/dist/{issue-ZH27C23Y.js.map → issue-ADVS4OVP.js.map} +0 -0
- /package/dist/{ledger-64TTQMRS.js.map → ledger-CWSE3BLF.js.map} +0 -0
- /package/dist/{noydb-O76SKBST.js.map → noydb-GZGFBA4E.js.map} +0 -0
- /package/dist/{public-envelope-MHG6YVXW.js.map → public-envelope-SYHEYQ3X.js.map} +0 -0
- /package/dist/{registry-2PKBQDCH.js.map → registry-DK5YWAAA.js.map} +0 -0
- /package/dist/{registry-4VXFKCBJ.js.map → registry-IUZQVVBB.js.map} +0 -0
- /package/dist/{registry-PV4G3OPA.js.map → registry-XGLNADIE.js.map} +0 -0
- /package/dist/{revoke-5BOLVJ3N.js.map → revoke-ZDFKMR5E.js.map} +0 -0
- /package/dist/{signer-GRIYBA22.js.map → signer-P5D7Y72U.js.map} +0 -0
- /package/dist/{stale-LZYMMDDS.js.map → stale-JH67FU57.js.map} +0 -0
- /package/dist/{state-vault-QFJWU23A.js.map → state-vault-TMXZRTY5.js.map} +0 -0
|
@@ -7,37 +7,37 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
TxContext,
|
|
9
9
|
revertExecuted
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YHPM5D7Y.js";
|
|
11
11
|
import {
|
|
12
12
|
OverlayedCollection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OHVFWCJP.js";
|
|
14
14
|
import {
|
|
15
15
|
LazyQuery,
|
|
16
16
|
decodeIdxId,
|
|
17
17
|
encodeIdxId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CZI2A4MQ.js";
|
|
19
19
|
import {
|
|
20
20
|
SCHEMAS_COLLECTION,
|
|
21
21
|
loadPersistedSchema,
|
|
22
22
|
resolveManagedSecret,
|
|
23
23
|
savePersistedSchema,
|
|
24
24
|
saveSealedPassphrase
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WGHU7BLI.js";
|
|
26
26
|
import {
|
|
27
27
|
loadPublicEnvelope,
|
|
28
28
|
readPublicEnvelope,
|
|
29
29
|
savePublicEnvelope,
|
|
30
30
|
validatePublicEnvelopeInput
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DKO2QFSA.js";
|
|
32
32
|
import {
|
|
33
33
|
PERIODS_COLLECTION
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KI6HAJWL.js";
|
|
35
35
|
import {
|
|
36
36
|
getAtPath,
|
|
37
37
|
isDictCollectionName,
|
|
38
38
|
resolvePolicy,
|
|
39
39
|
setAtPathInPlace
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7HT2MEZ5.js";
|
|
41
41
|
import {
|
|
42
42
|
ManagedRecoveryNotEnrolledError,
|
|
43
43
|
PolicyDeniedError,
|
|
@@ -59,11 +59,11 @@ import {
|
|
|
59
59
|
saveShamirRecoveryEntries,
|
|
60
60
|
updateAuthenticator,
|
|
61
61
|
writeMagicLinkGrant
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-COFPAMX6.js";
|
|
63
63
|
import {
|
|
64
64
|
assertTierAccess,
|
|
65
65
|
dekKey
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-4TBBMHVC.js";
|
|
67
67
|
import {
|
|
68
68
|
USER_ENVELOPE_COLLECTION,
|
|
69
69
|
assertKeyringOpenAllowed,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
rotateKeys,
|
|
89
89
|
saveUserEnvelope,
|
|
90
90
|
updateKeyringIdentity
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-A5ZOOZFB.js";
|
|
92
92
|
import {
|
|
93
93
|
INDEXED_STORE_POLICY
|
|
94
94
|
} from "./chunk-2QR2PQTT.js";
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
import {
|
|
99
99
|
LEDGER_COLLECTION,
|
|
100
100
|
LEDGER_DELTAS_COLLECTION
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-56DJ7JVK.js";
|
|
102
102
|
import {
|
|
103
103
|
sha256Hex as sha256Hex2
|
|
104
104
|
} from "./chunk-Z6FNBOTC.js";
|
|
@@ -106,20 +106,23 @@ import {
|
|
|
106
106
|
NO_AGGREGATE,
|
|
107
107
|
Query,
|
|
108
108
|
ScanBuilder,
|
|
109
|
+
canonicalizeIncomingMoney,
|
|
110
|
+
canonicalizeStoredMoney,
|
|
109
111
|
decodeMoneyFields,
|
|
110
|
-
quantizeMoneyFields
|
|
111
|
-
|
|
112
|
+
quantizeMoneyFields,
|
|
113
|
+
validateMoneyFieldPaths
|
|
114
|
+
} from "./chunk-EYVQHAGH.js";
|
|
112
115
|
import {
|
|
113
116
|
canonicalGroupKey
|
|
114
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-3EWXMOK3.js";
|
|
115
118
|
import {
|
|
116
119
|
readPath
|
|
117
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-CJORTUJ2.js";
|
|
118
121
|
import {
|
|
119
122
|
EXPORT_AUDIT_COLLECTION,
|
|
120
123
|
createExportBlobsHandle,
|
|
121
124
|
runCompaction
|
|
122
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-6AJBSQU4.js";
|
|
123
126
|
import {
|
|
124
127
|
NOYDB_BACKUP_VERSION,
|
|
125
128
|
NOYDB_FORMAT_VERSION
|
|
@@ -129,7 +132,7 @@ import {
|
|
|
129
132
|
encrypt,
|
|
130
133
|
encryptDeterministic,
|
|
131
134
|
sha256Hex
|
|
132
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-YULZKK4F.js";
|
|
133
136
|
import {
|
|
134
137
|
AlreadyElevatedError,
|
|
135
138
|
AttestationError,
|
|
@@ -164,7 +167,7 @@ import {
|
|
|
164
167
|
UnsupportedIndexOptionError,
|
|
165
168
|
ValidationError,
|
|
166
169
|
VaultTemplateNotFoundError
|
|
167
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-535SSHBS.js";
|
|
168
171
|
|
|
169
172
|
// src/policy/storage.ts
|
|
170
173
|
var META_COLLECTION = "_meta";
|
|
@@ -807,7 +810,7 @@ async function resolveStaleOnRead(accessor, outputCollection, id) {
|
|
|
807
810
|
}
|
|
808
811
|
const sourceWithId = { ...source, id };
|
|
809
812
|
if (DerivationExecutor === null) {
|
|
810
|
-
({ DerivationExecutor } = await import("./executor-
|
|
813
|
+
({ DerivationExecutor } = await import("./executor-6ZDSDZ6V.js"));
|
|
811
814
|
}
|
|
812
815
|
const ctx = { vault: accessor.getReadOnlyFacade() };
|
|
813
816
|
const result = await DerivationExecutor.run(spec, sourceWithId, 0, strategyHash, ctx);
|
|
@@ -1153,6 +1156,7 @@ var Collection = class {
|
|
|
1153
1156
|
this.joinResolver = opts.joinResolver;
|
|
1154
1157
|
this.i18nFields = opts.i18nFields;
|
|
1155
1158
|
this.dictKeyFields = opts.dictKeyFields;
|
|
1159
|
+
if (opts.moneyFields) validateMoneyFieldPaths(opts.moneyFields);
|
|
1156
1160
|
this.moneyFields = opts.moneyFields;
|
|
1157
1161
|
this.computed = opts.computed;
|
|
1158
1162
|
this.dictLabelResolver = opts.dictLabelResolver;
|
|
@@ -1286,7 +1290,9 @@ var Collection = class {
|
|
|
1286
1290
|
* declaration; this reconciles that ordering. First-wins. Not public.
|
|
1287
1291
|
*/
|
|
1288
1292
|
_applyMoneyFields(moneyFields) {
|
|
1289
|
-
if (this.moneyFields
|
|
1293
|
+
if (this.moneyFields !== void 0) return;
|
|
1294
|
+
validateMoneyFieldPaths(moneyFields);
|
|
1295
|
+
this.moneyFields = moneyFields;
|
|
1290
1296
|
}
|
|
1291
1297
|
/** @internal — attach computed fields post-construction. See {@link _applyMoneyFields}. */
|
|
1292
1298
|
_applyComputed(computed) {
|
|
@@ -1313,7 +1319,7 @@ var Collection = class {
|
|
|
1313
1319
|
}
|
|
1314
1320
|
}
|
|
1315
1321
|
if (this.materializedViewSource !== void 0) {
|
|
1316
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
1322
|
+
const { resolveStaleMVOnRead } = await import("./stale-JH67FU57.js");
|
|
1317
1323
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name);
|
|
1318
1324
|
}
|
|
1319
1325
|
let record;
|
|
@@ -1453,6 +1459,7 @@ var Collection = class {
|
|
|
1453
1459
|
if (!hasWritePermission(this.keyring, this.name)) {
|
|
1454
1460
|
throw new ReadOnlyError();
|
|
1455
1461
|
}
|
|
1462
|
+
record = canonicalizeIncomingMoney(record, this.moneyFields);
|
|
1456
1463
|
if (this.subsystemBus?.hasGateHandlers("beforePut")) {
|
|
1457
1464
|
const existingEnv = await this.adapter.get(this.vault, this.name, id);
|
|
1458
1465
|
let existingRecord = null;
|
|
@@ -1469,7 +1476,7 @@ var Collection = class {
|
|
|
1469
1476
|
collection: this.name,
|
|
1470
1477
|
docId: id,
|
|
1471
1478
|
incoming: record,
|
|
1472
|
-
existing: existingRecord,
|
|
1479
|
+
existing: canonicalizeStoredMoney(existingRecord, this.moneyFields),
|
|
1473
1480
|
existingVersion: existingEnv?._v ?? 0,
|
|
1474
1481
|
existingTs: existingEnv?._ts,
|
|
1475
1482
|
userId: this.keyring.userId,
|
|
@@ -1710,7 +1717,7 @@ var Collection = class {
|
|
|
1710
1717
|
if (mode === "eager") {
|
|
1711
1718
|
if (executor === null) {
|
|
1712
1719
|
;
|
|
1713
|
-
({ MaterializedViewExecutor: executor } = await import("./executor-
|
|
1720
|
+
({ MaterializedViewExecutor: executor } = await import("./executor-HSSRXDOB.js"));
|
|
1714
1721
|
}
|
|
1715
1722
|
await executor.refresh(reg, {
|
|
1716
1723
|
getCollection: (name) => this.materializedViewSource.getCollection(name),
|
|
@@ -1719,7 +1726,7 @@ var Collection = class {
|
|
|
1719
1726
|
});
|
|
1720
1727
|
} else if (mode === "lazy") {
|
|
1721
1728
|
if (staleHelpers === null) {
|
|
1722
|
-
staleHelpers = await import("./stale-
|
|
1729
|
+
staleHelpers = await import("./stale-JH67FU57.js");
|
|
1723
1730
|
}
|
|
1724
1731
|
staleHelpers.markMVStale(registry, reg.spec.name);
|
|
1725
1732
|
}
|
|
@@ -1738,7 +1745,7 @@ var Collection = class {
|
|
|
1738
1745
|
*/
|
|
1739
1746
|
async dispatchDerivations(id, record, version) {
|
|
1740
1747
|
if (this.derivationSource === void 0) return;
|
|
1741
|
-
const incoming = record;
|
|
1748
|
+
const incoming = canonicalizeStoredMoney(record, this.moneyFields);
|
|
1742
1749
|
if (incoming && typeof incoming === "object" && "_derivedFrom" in incoming) return;
|
|
1743
1750
|
const registry = this.derivationSource.registry();
|
|
1744
1751
|
const strategies = registry.strategiesForSource(this.name);
|
|
@@ -1748,7 +1755,7 @@ var Collection = class {
|
|
|
1748
1755
|
const mode = typeof spec.lifecycle === "string" ? spec.lifecycle : spec.lifecycle.mode;
|
|
1749
1756
|
if (mode === "eager") {
|
|
1750
1757
|
if (DerivationExecutor === null) {
|
|
1751
|
-
({ DerivationExecutor } = await import("./executor-
|
|
1758
|
+
({ DerivationExecutor } = await import("./executor-6ZDSDZ6V.js"));
|
|
1752
1759
|
}
|
|
1753
1760
|
const sourceWithId = { ...incoming, id };
|
|
1754
1761
|
const ctx = { vault: this.derivationSource.getReadOnlyFacade() };
|
|
@@ -1971,7 +1978,7 @@ var Collection = class {
|
|
|
1971
1978
|
vault: this.vault,
|
|
1972
1979
|
collection: this.name,
|
|
1973
1980
|
docId: id,
|
|
1974
|
-
existing: existingRecord,
|
|
1981
|
+
existing: canonicalizeStoredMoney(existingRecord, this.moneyFields),
|
|
1975
1982
|
existingVersion: existingEnv._v,
|
|
1976
1983
|
existingTs: existingEnv._ts,
|
|
1977
1984
|
internal,
|
|
@@ -2100,7 +2107,7 @@ var Collection = class {
|
|
|
2100
2107
|
if (mode === "eager") {
|
|
2101
2108
|
if (executor === null) {
|
|
2102
2109
|
;
|
|
2103
|
-
({ MaterializedViewExecutor: executor } = await import("./executor-
|
|
2110
|
+
({ MaterializedViewExecutor: executor } = await import("./executor-HSSRXDOB.js"));
|
|
2104
2111
|
}
|
|
2105
2112
|
await executor.refresh(reg, {
|
|
2106
2113
|
getCollection: (name) => this.materializedViewSource.getCollection(name),
|
|
@@ -2109,7 +2116,7 @@ var Collection = class {
|
|
|
2109
2116
|
});
|
|
2110
2117
|
} else if (mode === "lazy") {
|
|
2111
2118
|
if (staleHelpers === null) {
|
|
2112
|
-
staleHelpers = await import("./stale-
|
|
2119
|
+
staleHelpers = await import("./stale-JH67FU57.js");
|
|
2113
2120
|
}
|
|
2114
2121
|
staleHelpers.markMVStale(registry, reg.spec.name);
|
|
2115
2122
|
}
|
|
@@ -2132,7 +2139,7 @@ var Collection = class {
|
|
|
2132
2139
|
);
|
|
2133
2140
|
}
|
|
2134
2141
|
if (this.materializedViewSource !== void 0) {
|
|
2135
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
2142
|
+
const { resolveStaleMVOnRead } = await import("./stale-JH67FU57.js");
|
|
2136
2143
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name);
|
|
2137
2144
|
}
|
|
2138
2145
|
await this.ensureHydrated();
|
|
@@ -6135,12 +6142,12 @@ var Vault = class {
|
|
|
6135
6142
|
if (!fieldSchema) {
|
|
6136
6143
|
throw new AttestationError(`issueAttestation: collection '${collectionName}' has no attestation field-schema. Declare it via vault.collection('${collectionName}', { attestation: { fields: [...] } }).`);
|
|
6137
6144
|
}
|
|
6138
|
-
const { issueAttestationCore } = await import("./issue-
|
|
6145
|
+
const { issueAttestationCore } = await import("./issue-ADVS4OVP.js");
|
|
6139
6146
|
const out = await issueAttestationCore(this.makeIssueContext(), { collection: collectionName, id, fieldSchema });
|
|
6140
6147
|
return { docId: out.docId, qr: out.qr, keyId: out.keyId, publicKeyB64: out.publicKeyB64 };
|
|
6141
6148
|
}
|
|
6142
6149
|
async getDocumentSigningPublicKey() {
|
|
6143
|
-
const { loadSigner, loadOrCreateSigner } = await import("./signer-
|
|
6150
|
+
const { loadSigner, loadOrCreateSigner } = await import("./signer-P5D7Y72U.js");
|
|
6144
6151
|
const existing = await loadSigner(this.adapter, this.name, this.getDEK);
|
|
6145
6152
|
if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
|
|
6146
6153
|
if (this.keyring.role !== "owner") {
|
|
@@ -6166,19 +6173,19 @@ var Vault = class {
|
|
|
6166
6173
|
};
|
|
6167
6174
|
}
|
|
6168
6175
|
async revokeAttestation(docId) {
|
|
6169
|
-
const { revokeDocCore } = await import("./revoke-
|
|
6176
|
+
const { revokeDocCore } = await import("./revoke-ZDFKMR5E.js");
|
|
6170
6177
|
await revokeDocCore(this.makeRevokeContext(), docId);
|
|
6171
6178
|
}
|
|
6172
6179
|
async unrevokeAttestation(docId) {
|
|
6173
|
-
const { unrevokeDocCore } = await import("./revoke-
|
|
6180
|
+
const { unrevokeDocCore } = await import("./revoke-ZDFKMR5E.js");
|
|
6174
6181
|
await unrevokeDocCore(this.makeRevokeContext(), docId);
|
|
6175
6182
|
}
|
|
6176
6183
|
async getRevokedDocIds() {
|
|
6177
|
-
const { getRevokedDocIdsCore } = await import("./revoke-
|
|
6184
|
+
const { getRevokedDocIdsCore } = await import("./revoke-ZDFKMR5E.js");
|
|
6178
6185
|
return getRevokedDocIdsCore(this.makeRevokeContext());
|
|
6179
6186
|
}
|
|
6180
6187
|
async publishRevocationList() {
|
|
6181
|
-
const { publishRevocationListCore } = await import("./revoke-
|
|
6188
|
+
const { publishRevocationListCore } = await import("./revoke-ZDFKMR5E.js");
|
|
6182
6189
|
return publishRevocationListCore(this.makeRevokeContext());
|
|
6183
6190
|
}
|
|
6184
6191
|
makeRevokeContext() {
|
|
@@ -6495,7 +6502,7 @@ var Vault = class {
|
|
|
6495
6502
|
async _initDerivations(handles) {
|
|
6496
6503
|
if (handles.length === 0) return;
|
|
6497
6504
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
6498
|
-
import("./registry-
|
|
6505
|
+
import("./registry-XGLNADIE.js"),
|
|
6499
6506
|
import("./read-only-facade-ITU6L7BL.js")
|
|
6500
6507
|
]);
|
|
6501
6508
|
const registry = new DerivationRegistry();
|
|
@@ -6526,7 +6533,7 @@ var Vault = class {
|
|
|
6526
6533
|
*/
|
|
6527
6534
|
async _initMaterializedViews(handles) {
|
|
6528
6535
|
if (handles.length === 0) return;
|
|
6529
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
6536
|
+
const { MaterializedViewRegistry } = await import("./registry-DK5YWAAA.js");
|
|
6530
6537
|
const registry = new MaterializedViewRegistry();
|
|
6531
6538
|
this.materializedViewRegistry = registry;
|
|
6532
6539
|
const db = this;
|
|
@@ -6550,7 +6557,7 @@ var Vault = class {
|
|
|
6550
6557
|
*/
|
|
6551
6558
|
async _initOverlayedViews(handles) {
|
|
6552
6559
|
if (handles.length === 0) return;
|
|
6553
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
6560
|
+
const { OverlayedViewRegistry } = await import("./registry-IUZQVVBB.js");
|
|
6554
6561
|
const registry = new OverlayedViewRegistry();
|
|
6555
6562
|
const mvRegistry = this.materializedViewRegistry;
|
|
6556
6563
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -6597,13 +6604,13 @@ var Vault = class {
|
|
|
6597
6604
|
if (!reg) {
|
|
6598
6605
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
6599
6606
|
}
|
|
6600
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
6607
|
+
const { MaterializedViewExecutor } = await import("./executor-HSSRXDOB.js");
|
|
6601
6608
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
6602
6609
|
getCollection: (n) => this.collection(n),
|
|
6603
6610
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
6604
6611
|
getQueryContext: () => this
|
|
6605
6612
|
});
|
|
6606
|
-
const { clearMVStale } = await import("./stale-
|
|
6613
|
+
const { clearMVStale } = await import("./stale-JH67FU57.js");
|
|
6607
6614
|
clearMVStale(registry, name);
|
|
6608
6615
|
return result;
|
|
6609
6616
|
}
|
|
@@ -6619,7 +6626,7 @@ var Vault = class {
|
|
|
6619
6626
|
if (registry === null) return { derived: 0, failed: 0 };
|
|
6620
6627
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
6621
6628
|
if (strategies.length === 0) return { derived: 0, failed: 0 };
|
|
6622
|
-
const { DerivationExecutor } = await import("./executor-
|
|
6629
|
+
const { DerivationExecutor } = await import("./executor-6ZDSDZ6V.js");
|
|
6623
6630
|
const sourceColl = this.collection(sourceCollection);
|
|
6624
6631
|
const records = await sourceColl.list();
|
|
6625
6632
|
const ctx = { vault: this.readOnlyFacade ?? new (await import("./read-only-facade-ITU6L7BL.js")).ReadOnlyVaultFacade(this) };
|
|
@@ -6865,7 +6872,7 @@ var Vault = class {
|
|
|
6865
6872
|
* collection.
|
|
6866
6873
|
*/
|
|
6867
6874
|
async delegate(opts) {
|
|
6868
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
6875
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NIQ43IPU.js");
|
|
6869
6876
|
if (!this.keyring.kek) {
|
|
6870
6877
|
throw new ValidationError(
|
|
6871
6878
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (passphrase) first."
|
|
@@ -6887,7 +6894,7 @@ var Vault = class {
|
|
|
6887
6894
|
* if the id does not exist.
|
|
6888
6895
|
*/
|
|
6889
6896
|
async revokeDelegation(id) {
|
|
6890
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
6897
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NIQ43IPU.js");
|
|
6891
6898
|
await revokeDelegation(this.adapter, this.name, id);
|
|
6892
6899
|
void DELEGATIONS_COLLECTION;
|
|
6893
6900
|
}
|
|
@@ -7356,7 +7363,7 @@ var Vault = class {
|
|
|
7356
7363
|
* @see docs/subsystems/public-envelope.md
|
|
7357
7364
|
*/
|
|
7358
7365
|
async getPublicEnvelope(opts = {}) {
|
|
7359
|
-
const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-
|
|
7366
|
+
const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-SYHEYQ3X.js");
|
|
7360
7367
|
return readPublicEnvelope2(this.adapter, this.name, opts);
|
|
7361
7368
|
}
|
|
7362
7369
|
/**
|
|
@@ -8966,7 +8973,7 @@ var Noydb = class {
|
|
|
8966
8973
|
if (!facade) return;
|
|
8967
8974
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
|
|
8968
8975
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
8969
|
-
const { GuardExecutor } = await import("./executor-
|
|
8976
|
+
const { GuardExecutor } = await import("./executor-IDZDAFNH.js");
|
|
8970
8977
|
for (const g of guards) {
|
|
8971
8978
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
8972
8979
|
}
|
|
@@ -9565,8 +9572,8 @@ var Noydb = class {
|
|
|
9565
9572
|
if (name === STATE_VAULT_NAME) throw new ReservedVaultNameError(name);
|
|
9566
9573
|
const template = this.vaultTemplates.get(opts.sharding.vaultTemplate);
|
|
9567
9574
|
if (!template) throw new VaultTemplateNotFoundError(opts.sharding.vaultTemplate);
|
|
9568
|
-
const { VaultGroup } = await import("./vault-group-
|
|
9569
|
-
const { StateManagementVault } = await import("./state-vault-
|
|
9575
|
+
const { VaultGroup } = await import("./vault-group-KOM7QRJG.js");
|
|
9576
|
+
const { StateManagementVault } = await import("./state-vault-TMXZRTY5.js");
|
|
9570
9577
|
const stateVault = opts.registry ? void 0 : await StateManagementVault.open(this);
|
|
9571
9578
|
const registry = opts.registry ?? stateVault.registry;
|
|
9572
9579
|
const group = new VaultGroup(this, name, registry, opts.sharding, template);
|
|
@@ -9593,7 +9600,7 @@ var Noydb = class {
|
|
|
9593
9600
|
*/
|
|
9594
9601
|
async openStateManagementVault() {
|
|
9595
9602
|
if (this.closed) throw new ValidationError("Instance is closed");
|
|
9596
|
-
const { StateManagementVault } = await import("./state-vault-
|
|
9603
|
+
const { StateManagementVault } = await import("./state-vault-TMXZRTY5.js");
|
|
9597
9604
|
return StateManagementVault.open(this);
|
|
9598
9605
|
}
|
|
9599
9606
|
/**
|
|
@@ -11133,4 +11140,4 @@ export {
|
|
|
11133
11140
|
Noydb,
|
|
11134
11141
|
createNoydb
|
|
11135
11142
|
};
|
|
11136
|
-
//# sourceMappingURL=chunk-
|
|
11143
|
+
//# sourceMappingURL=chunk-7EFFHEN5.js.map
|