@noy-db/hub 0.10.0-pre.0 → 0.10.0-pre.2
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/CHANGELOG.md +90 -0
- package/README.md +2 -2
- package/dist/api-QSEKT4KS.js +15 -0
- package/dist/as/index.js +19 -12
- package/dist/as/index.js.map +1 -1
- package/dist/at/index.js +6 -9
- package/dist/attestation/index.js +16 -19
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-E3GBMNDA.js → backup-BHKVK5SD.js} +9 -12
- package/dist/{backup-E3GBMNDA.js.map → backup-BHKVK5SD.js.map} +1 -1
- package/dist/blobs/index.js +10 -13
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +11 -14
- package/dist/broker/index.js.map +1 -1
- package/dist/by/index.js +2 -2
- package/dist/capsule/contract.d.ts +176 -16
- package/dist/capsule/contract.js +35 -30
- package/dist/capsule/enclave-aes/bound.d.ts +11 -1
- package/dist/capsule/enclave-aes/classify/digest.d.ts +4 -2
- package/dist/capsule/enclave-aes/index.d.ts +9 -0
- package/dist/capsule/enclave-aes/index.js +643 -78
- package/dist/capsule/enclave-aes/index.js.map +1 -1
- package/dist/capsule/enclave-aes/primitives.d.ts +2 -2
- package/dist/capsule/index.d.ts +1 -1
- package/dist/capsule/plumbing/classify-reveal.d.ts +29 -0
- package/dist/capsule/plumbing/classify-verify.d.ts +53 -0
- package/dist/capsule/plumbing/index.d.ts +17 -0
- package/dist/{capsule-YQKQZPH7.js → capsule-YAITMH77.js} +16 -9
- package/dist/cargo/index.js +34 -36
- package/dist/{chunk-U43RSPPX.js → chunk-23A4SBRR.js} +3 -4
- package/dist/{chunk-U43RSPPX.js.map → chunk-23A4SBRR.js.map} +1 -1
- package/dist/{chunk-PREYKC76.js → chunk-24AGG4PP.js} +3 -3
- package/dist/{chunk-ZVJKHGE5.js → chunk-24IJZA4M.js} +14 -8
- package/dist/chunk-24IJZA4M.js.map +1 -0
- package/dist/{chunk-4N4OIVK3.js → chunk-2NVQ5SEA.js} +15 -5
- package/dist/chunk-2NVQ5SEA.js.map +1 -0
- package/dist/{chunk-ZNVBCKMV.js → chunk-2SIREKBR.js} +2 -2
- package/dist/{chunk-N6EWQ5VB.js → chunk-37FOG6AE.js} +14 -7
- package/dist/chunk-37FOG6AE.js.map +1 -0
- package/dist/{chunk-UQRKAM2R.js → chunk-3M2KK7O7.js} +3 -3
- package/dist/{chunk-P6FATPXQ.js → chunk-3ZCVY3T6.js} +2 -2
- package/dist/{chunk-PBEHTFUG.js → chunk-4CGWLHPQ.js} +6 -6
- package/dist/{chunk-PFHDQY5L.js → chunk-56Z4NOC6.js} +3 -3
- package/dist/{chunk-GLSCL74M.js → chunk-5AVIUJP4.js} +13 -9
- package/dist/chunk-5AVIUJP4.js.map +1 -0
- package/dist/{chunk-F7X7MPK4.js → chunk-5BGHAVBN.js} +2 -2
- package/dist/{chunk-QHG7GQKM.js → chunk-5JNEDW7I.js} +2 -2
- package/dist/{chunk-GHMINSER.js → chunk-5OWJSDTO.js} +4 -4
- package/dist/{chunk-GHMINSER.js.map → chunk-5OWJSDTO.js.map} +1 -1
- package/dist/{chunk-DYIR6RC3.js → chunk-5Y4MO7UQ.js} +4 -4
- package/dist/{chunk-TLIFNRU5.js → chunk-63LZLRWG.js} +2 -2
- package/dist/{chunk-GZISWBCJ.js → chunk-74W56QPY.js} +4 -4
- package/dist/{chunk-CLOSXHR4.js → chunk-7KNYLHVX.js} +3 -3
- package/dist/chunk-7KNYLHVX.js.map +1 -0
- package/dist/{chunk-LFUID7OW.js → chunk-7VJ2SIEI.js} +42 -22
- package/dist/chunk-7VJ2SIEI.js.map +1 -0
- package/dist/{chunk-WVQDY3UM.js → chunk-AHA7UALU.js} +4 -4
- package/dist/{chunk-U277K5GR.js → chunk-AIHBYQHF.js} +259 -123
- package/dist/chunk-AIHBYQHF.js.map +1 -0
- package/dist/{chunk-S2ORTQGS.js → chunk-ANYX2M6P.js} +3 -3
- package/dist/{chunk-6WEPFEMJ.js → chunk-ATKYMRBC.js} +4 -4
- package/dist/{chunk-7UHLO4ZN.js → chunk-B2HU55QD.js} +2 -2
- package/dist/{chunk-Y22JWHCP.js → chunk-BEKMLYQ4.js} +4 -4
- package/dist/{chunk-27NCEPKM.js → chunk-BPFXD4EX.js} +23 -3
- package/dist/chunk-BPFXD4EX.js.map +1 -0
- package/dist/{chunk-7C7OF26T.js → chunk-C2NXAR3D.js} +5 -5
- package/dist/{chunk-Z2KP6PNF.js → chunk-CJBWJO5P.js} +6 -6
- package/dist/{chunk-Z2KP6PNF.js.map → chunk-CJBWJO5P.js.map} +1 -1
- package/dist/{chunk-6WIFF46H.js → chunk-CQLMRCKX.js} +2 -2
- package/dist/{chunk-URGHKZPL.js → chunk-CR5UPYIJ.js} +1 -1
- package/dist/chunk-CR5UPYIJ.js.map +1 -0
- package/dist/{chunk-LMC5L3MM.js → chunk-DS2JXSUA.js} +6 -6
- package/dist/{chunk-X6Z2SIRF.js → chunk-E2JIE4S3.js} +2 -2
- package/dist/{chunk-EQ6C2ZPT.js → chunk-E7Y4J4GL.js} +2 -2
- package/dist/{chunk-LZN6DTFI.js → chunk-ECDM6YRX.js} +2 -2
- package/dist/{chunk-WRLWEYHY.js → chunk-EFINFZIF.js} +11 -1
- package/dist/chunk-EFINFZIF.js.map +1 -0
- package/dist/{chunk-2T2TGRWE.js → chunk-EM56MHN5.js} +6 -6
- package/dist/{chunk-NK4LGBGQ.js → chunk-EQXOJH6O.js} +4 -4
- package/dist/{chunk-OK44MD3C.js → chunk-ET3U2C3A.js} +2 -2
- package/dist/{chunk-RF5WDM25.js → chunk-EU4G7PQH.js} +2 -2
- package/dist/{chunk-K5JNK63R.js → chunk-EUCUYK5E.js} +10 -10
- package/dist/{chunk-2ODEFG6K.js → chunk-EWSIJDWO.js} +4 -4
- package/dist/{chunk-LJ744WXU.js → chunk-F2FD4LSB.js} +2 -2
- package/dist/{chunk-L4UL4IAR.js → chunk-F7ENMZYJ.js} +2 -2
- package/dist/{chunk-KBIS64X4.js → chunk-FIIVYQOW.js} +5 -5
- package/dist/{chunk-TBVDI3LY.js → chunk-FPK2LPLR.js} +8 -8
- package/dist/chunk-FPK2LPLR.js.map +1 -0
- package/dist/{chunk-BQJ5ORU5.js → chunk-FQEUJGBV.js} +2 -2
- package/dist/{chunk-UORWAG7K.js → chunk-FY4FFNKK.js} +2 -2
- package/dist/{chunk-MMWX5OT5.js → chunk-GDCYZGPB.js} +2 -2
- package/dist/{chunk-7ONMS7QI.js → chunk-H6Q7GKLI.js} +2 -2
- package/dist/{chunk-654RE5YC.js → chunk-HDAPQF6Q.js} +3 -3
- package/dist/{chunk-5SMCBPJ2.js → chunk-HRLMUZLI.js} +5 -5
- package/dist/{chunk-R4GLRJ55.js → chunk-HRNQYGLQ.js} +2 -2
- package/dist/{chunk-HTRLQ4ZZ.js → chunk-I4S7IZSS.js} +321 -235
- package/dist/chunk-I4S7IZSS.js.map +1 -0
- package/dist/{chunk-UNAMWK2Q.js → chunk-IN4XZJYD.js} +4 -3
- package/dist/{chunk-UNAMWK2Q.js.map → chunk-IN4XZJYD.js.map} +1 -1
- package/dist/{chunk-2RH5SEY7.js → chunk-ISIXU45J.js} +2 -2
- package/dist/chunk-ISIXU45J.js.map +1 -0
- package/dist/{chunk-NHEKQWFI.js → chunk-J4L4AS2W.js} +2 -2
- package/dist/{chunk-UMV5GBTJ.js → chunk-JPSOFWJR.js} +2 -2
- package/dist/{chunk-A52BK5AY.js → chunk-JRCO67NG.js} +2 -2
- package/dist/{chunk-FVKQ5QUC.js → chunk-JW3I3NNZ.js} +2 -2
- package/dist/{chunk-BNYDOF2Q.js → chunk-JZMPSQBH.js} +4 -4
- package/dist/{chunk-ZK2WT532.js → chunk-K5TVSOPQ.js} +5 -5
- package/dist/{chunk-2IASHJPS.js → chunk-K75SL74I.js} +2 -2
- package/dist/{chunk-O3NGOHXQ.js → chunk-KA4AAUST.js} +2 -2
- package/dist/chunk-KHSBMLQE.js +161 -0
- package/dist/chunk-KHSBMLQE.js.map +1 -0
- package/dist/{chunk-QQLXKDGC.js → chunk-KUGUML7H.js} +3 -3
- package/dist/{chunk-AMSSAOOB.js → chunk-L4J5NC2Q.js} +2 -2
- package/dist/{chunk-AYOQZJDB.js → chunk-LIX4QPMM.js} +2 -2
- package/dist/{chunk-WIUH6EJ7.js → chunk-LWQFGR34.js} +3 -3
- package/dist/{chunk-QNOWNCZS.js → chunk-MMSSHMHW.js} +2 -2
- package/dist/{chunk-T5EXREMW.js → chunk-N25Z6PR4.js} +6 -5
- package/dist/chunk-N25Z6PR4.js.map +1 -0
- package/dist/{chunk-ND6S2DKC.js → chunk-N5S2BCW3.js} +2 -2
- package/dist/{chunk-X5RGG3ZW.js → chunk-NIZH2TYZ.js} +2 -2
- package/dist/{chunk-SXPLIRQH.js → chunk-NLDBQHDV.js} +2 -2
- package/dist/{chunk-AI35LNWQ.js → chunk-NQQ4MOPC.js} +4 -4
- package/dist/{chunk-B6EWMGFX.js → chunk-NUBI6PYH.js} +2 -2
- package/dist/{chunk-ID4ZBC3X.js → chunk-NYEXUZDW.js} +4 -4
- package/dist/{chunk-GU6QXHPZ.js → chunk-OIBFIWVJ.js} +4 -4
- package/dist/chunk-OIBFIWVJ.js.map +1 -0
- package/dist/{chunk-PWAMX5KU.js → chunk-OOLF5FU2.js} +2 -2
- package/dist/{chunk-WQUIJPN4.js → chunk-OQA7UF2Q.js} +3 -3
- package/dist/{chunk-7JRLCP2J.js → chunk-ORJPICJI.js} +2 -2
- package/dist/{chunk-IF2M43G4.js → chunk-PBRD75JF.js} +2 -2
- package/dist/{chunk-RKBCUP5D.js → chunk-PDCBL23X.js} +39 -17
- package/dist/chunk-PDCBL23X.js.map +1 -0
- package/dist/{chunk-BSEPI3HD.js → chunk-PR36DD2X.js} +7 -7
- package/dist/{chunk-52ZFNK46.js → chunk-PV4HIC4E.js} +2 -2
- package/dist/{chunk-TU6ZJTYT.js → chunk-PZNK4HTV.js} +3 -3
- package/dist/{chunk-LUQBG637.js → chunk-QBLPLNPE.js} +3 -3
- package/dist/{chunk-UADW5NOU.js → chunk-QZXUISRF.js} +5 -5
- package/dist/{chunk-BMAXBTYH.js → chunk-RBXYO7MD.js} +5 -5
- package/dist/{chunk-PZN76MMV.js → chunk-RIACRFWA.js} +4 -4
- package/dist/{chunk-ICHHNI5E.js → chunk-RL6RNDJQ.js} +8 -8
- package/dist/{chunk-4WLI37WK.js → chunk-SJ2P7UXD.js} +7 -7
- package/dist/{chunk-2QH3I7QC.js → chunk-SWXS4LV3.js} +11 -11
- package/dist/{chunk-4KYKRYRT.js → chunk-TOTCZFRF.js} +2 -2
- package/dist/{chunk-CSAN22QG.js → chunk-TT4D52EK.js} +6 -6
- package/dist/{chunk-VLRY2UH4.js → chunk-U7CMJY5P.js} +10 -10
- package/dist/{chunk-NIUHKKMM.js → chunk-UNKTZDA2.js} +11 -11
- package/dist/{chunk-NIUHKKMM.js.map → chunk-UNKTZDA2.js.map} +1 -1
- package/dist/{chunk-QVUMKG3Z.js → chunk-UXH4AKH3.js} +95 -151
- package/dist/chunk-UXH4AKH3.js.map +1 -0
- package/dist/{chunk-PU5ZEV65.js → chunk-UZVHSYIF.js} +2 -2
- package/dist/{chunk-3EXQXOQ2.js → chunk-VHKAW5OI.js} +29 -5
- package/dist/chunk-VHKAW5OI.js.map +1 -0
- package/dist/{chunk-XQGKS4OW.js → chunk-VKZ3TDET.js} +3 -3
- package/dist/{chunk-ZOFNZLAA.js → chunk-VLZPUG5A.js} +4 -4
- package/dist/{chunk-OR3OHKU6.js → chunk-VSN5FLMI.js} +2 -2
- package/dist/{chunk-JQMEXCUZ.js → chunk-VYBBE7RN.js} +8 -8
- package/dist/chunk-VYBBE7RN.js.map +1 -0
- package/dist/{chunk-SVXFCCSX.js → chunk-WHK4JVKF.js} +8 -8
- package/dist/{chunk-YVA6UPRN.js → chunk-X4LDBALX.js} +2 -2
- package/dist/{chunk-35CNOVQE.js → chunk-X67E7NIJ.js} +3 -3
- package/dist/{chunk-IPF5ORDI.js → chunk-XMARKBUC.js} +3 -3
- package/dist/{chunk-B3B6HV5S.js → chunk-XMBBTETD.js} +2 -2
- package/dist/{chunk-GQ4MF3CM.js → chunk-XMBTAN5E.js} +28 -14
- package/dist/chunk-XMBTAN5E.js.map +1 -0
- package/dist/{chunk-FUHUGKDN.js → chunk-XROQP6IQ.js} +4 -4
- package/dist/chunk-XWWDZKLS.js +196 -0
- package/dist/chunk-XWWDZKLS.js.map +1 -0
- package/dist/{chunk-DL4GCSTS.js → chunk-Y2RYUWSQ.js} +10 -10
- package/dist/{chunk-7IV7GVOS.js → chunk-YCTSQV7K.js} +5 -5
- package/dist/{chunk-IFUYLIEY.js → chunk-YF7P2DG7.js} +2 -2
- package/dist/{chunk-PIO6NW7O.js → chunk-ZG7DBIVX.js} +2 -2
- package/dist/{chunk-NUZ7ROUZ.js → chunk-ZGJ775X7.js} +2 -2
- package/dist/{chunk-6BEBWHNL.js → chunk-ZQQLOEWN.js} +3 -3
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-7HXDMYHI.js → classified-marker-HKMRC7SC.js} +3 -3
- package/dist/{reveal-UAPBG743.js → classify-reveal-YSJKJEIR.js} +7 -12
- package/dist/classify-reveal-YSJKJEIR.js.map +1 -0
- package/dist/{verify-QWO5UKD6.js → classify-verify-ZCTKYQ43.js} +31 -41
- package/dist/classify-verify-ZCTKYQ43.js.map +1 -0
- package/dist/collection-facade-PPKNUR2J.js +38 -0
- package/dist/{computed-LZLSYOPG.js → computed-UCYVPMZA.js} +3 -3
- package/dist/consent/index.js +6 -9
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +6 -9
- package/dist/custody/index.js +11 -13
- package/dist/{dead-filter-PZIJ4F4G.js → dead-filter-YOBWRG4O.js} +8 -11
- package/dist/{dead-filter-PZIJ4F4G.js.map → dead-filter-YOBWRG4O.js.map} +1 -1
- package/dist/debug/index.js +5 -8
- package/dist/debug/index.js.map +1 -1
- package/dist/delegation-SNALWRMO.js +24 -0
- package/dist/derivations/index.js +20 -23
- package/dist/derive-4GNU4E4I.js +17 -0
- package/dist/directory/index.js +7 -10
- package/dist/{dispatch-4BUYPWMJ.js → dispatch-QW32QBLW.js} +17 -20
- package/dist/{dispatch-4BUYPWMJ.js.map → dispatch-QW32QBLW.js.map} +1 -1
- package/dist/{dispatch-KOPDDPEQ.js → dispatch-V5WLDTVX.js} +5 -5
- package/dist/executor-7QN22OKI.js +8 -0
- package/dist/executor-BJZJNVBB.js +8 -0
- package/dist/executor-JEAAEJUM.js +32 -0
- package/dist/export-accessible-TVO2KQPG.js +20 -0
- package/dist/extract-partition-43CLDRN4.js +33 -0
- package/dist/{fanout-sidecar-FYDRL7F3.js → fanout-sidecar-DDONAFJT.js} +6 -9
- package/dist/{fanout-sidecar-FYDRL7F3.js.map → fanout-sidecar-DDONAFJT.js.map} +1 -1
- package/dist/forget/index.js +6 -9
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +11 -14
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +11 -14
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +122 -123
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +5 -5
- package/dist/introspection/index.js +8 -11
- package/dist/issue-EIHEDAXM.js +16 -0
- package/dist/kernel/capsule-requirements.d.ts +84 -0
- package/dist/kernel/errors.d.ts +19 -3
- package/dist/kernel/export-scope.d.ts +28 -1
- package/dist/kernel/store-segment-guard.d.ts +29 -0
- package/dist/kernel/types.d.ts +169 -13
- package/dist/kernel/validation.d.ts +32 -0
- package/dist/kernel/vault.d.ts +5 -5
- package/dist/{ledger-UFJCB6T5.js → ledger-BMVUFQ3R.js} +8 -11
- package/dist/liberate-7KHXCLNJ.js +23 -0
- package/dist/link-set-PC2EJRKL.js +26 -0
- package/dist/{managed-secret-H5WYSJ46.js → managed-secret-RPRVEYZA.js} +7 -10
- package/dist/materialized-views/index.js +23 -26
- package/dist/{migrate-cek-SPESQAAO.js → migrate-cek-DTSCWGEF.js} +2 -2
- package/dist/money/index.js +5 -5
- package/dist/noydb-AYDNOXAX.js +98 -0
- package/dist/on/index.js +11 -13
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +9 -12
- package/dist/pod/index.js +65 -67
- package/dist/{pod-handle-GJLCOUGK.js → pod-handle-KBPQRN6Q.js} +6 -9
- package/dist/{pod-handle-GJLCOUGK.js.map → pod-handle-KBPQRN6Q.js.map} +1 -1
- package/dist/policy/index.js +7 -10
- package/dist/port/at/index.d.ts +1 -0
- package/dist/port/with/admission-authority.d.ts +2 -1
- package/dist/port/with/collection-registries.d.ts +37 -0
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-2AC2STHC.js → post-register-RITSNASO.js} +6 -6
- package/dist/query/all/index.js +15 -15
- package/dist/query/index.js +7 -7
- package/dist/query/live/index.js +7 -7
- package/dist/query/reduce/index.js +10 -10
- package/dist/query/relate/index.js +9 -9
- package/dist/reduce/index.js +8 -8
- package/dist/register-BB34SK7E.js +27 -0
- package/dist/registry-65L6V5TO.js +20 -0
- package/dist/registry-HU62GPWA.js +32 -0
- package/dist/registry-SMNK6UM4.js +8 -0
- package/dist/registry-X5VPBKCO.js +8 -0
- package/dist/request-withdrawal-4SKAH46W.js +26 -0
- package/dist/{restore-to-OOPKLAPU.js → restore-to-VQHT67OH.js} +7 -10
- package/dist/{restore-to-OOPKLAPU.js.map → restore-to-VQHT67OH.js.map} +1 -1
- package/dist/revoke-IF5PX2JY.js +21 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +9 -12
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +4 -4
- package/dist/{seed-BVYDPVIW.js → seed-F2OSDZJR.js} +11 -13
- package/dist/{seed-BVYDPVIW.js.map → seed-F2OSDZJR.js.map} +1 -1
- package/dist/sequence/index.js +6 -9
- package/dist/session/index.js +6 -9
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +2 -2
- package/dist/signer-5P7IZC2K.js +20 -0
- package/dist/snapshots/index.js +8 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-CROGJBIJ.js → stale-PUCZH5GJ.js} +7 -10
- package/dist/storage-5EGY5OYE.js +18 -0
- package/dist/store/index.js +1 -1
- package/dist/{store-coordination-provider-2YD2PTTP.js → store-coordination-provider-SEQM7SHJ.js} +7 -10
- package/dist/{store-coordination-provider-2YD2PTTP.js.map → store-coordination-provider-SEQM7SHJ.js.map} +1 -1
- package/dist/sync/index.js +13 -15
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +14 -16
- package/dist/tiers/index.js +8 -11
- package/dist/to/index.js +2 -2
- package/dist/transactions/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/vault-diff-H7LT5ZBJ.js +8 -0
- package/dist/vault-head/index.js +5 -8
- package/dist/vault-head/index.js.map +1 -1
- package/dist/walk-Z4N7PCZ2.js +17 -0
- package/dist/with-audit/portability/export-accessible.d.ts +3 -1
- package/dist/with-cargo/vault-diff.d.ts +28 -0
- package/dist/with-commit/sequence/index.d.ts +22 -0
- package/dist/with-party/team/delegation.d.ts +16 -12
- package/dist/with-party/team/keyring.d.ts +77 -0
- package/dist/with-party/team/managed-secret.d.ts +40 -3
- package/dist/with-party/team/noydb-facade.d.ts +2 -2
- package/dist/with-party/team/peer-recover.d.ts +2 -2
- package/dist/with-party/team/rotate-recover.d.ts +3 -3
- package/dist/with-shape/manifest/storage.d.ts +2 -2
- package/dist/with-shape/manifest/writer.d.ts +2 -2
- package/dist/with-store/store-middleware.d.ts +18 -5
- package/dist/with-sync/engine.d.ts +0 -2
- package/dist/withdraw-accessible-CRCIQSTL.js +23 -0
- package/package.json +3 -3
- package/dist/api-H4B7ZQXP.js +0 -18
- package/dist/capsule/enclave-aes/classify/reveal.d.ts +0 -10
- package/dist/capsule/enclave-aes/classify/verify.d.ts +0 -36
- package/dist/chunk-27NCEPKM.js.map +0 -1
- package/dist/chunk-2RH5SEY7.js.map +0 -1
- package/dist/chunk-3EXQXOQ2.js.map +0 -1
- package/dist/chunk-4N4OIVK3.js.map +0 -1
- package/dist/chunk-5A3HOTP5.js +0 -591
- package/dist/chunk-5A3HOTP5.js.map +0 -1
- package/dist/chunk-CLOSXHR4.js.map +0 -1
- package/dist/chunk-EPPAEGH5.js +0 -157
- package/dist/chunk-EPPAEGH5.js.map +0 -1
- package/dist/chunk-GLSCL74M.js.map +0 -1
- package/dist/chunk-GQ4MF3CM.js.map +0 -1
- package/dist/chunk-GU6QXHPZ.js.map +0 -1
- package/dist/chunk-HTRLQ4ZZ.js.map +0 -1
- package/dist/chunk-JQMEXCUZ.js.map +0 -1
- package/dist/chunk-LFUID7OW.js.map +0 -1
- package/dist/chunk-N6EWQ5VB.js.map +0 -1
- package/dist/chunk-NH2UOV3B.js +0 -18
- package/dist/chunk-NH2UOV3B.js.map +0 -1
- package/dist/chunk-O6VOR4NH.js +0 -27
- package/dist/chunk-O6VOR4NH.js.map +0 -1
- package/dist/chunk-ODBOHPZU.js +0 -22
- package/dist/chunk-ODBOHPZU.js.map +0 -1
- package/dist/chunk-Q4DBU5RM.js +0 -78
- package/dist/chunk-Q4DBU5RM.js.map +0 -1
- package/dist/chunk-QVUMKG3Z.js.map +0 -1
- package/dist/chunk-RKBCUP5D.js.map +0 -1
- package/dist/chunk-T5EXREMW.js.map +0 -1
- package/dist/chunk-TBVDI3LY.js.map +0 -1
- package/dist/chunk-U277K5GR.js.map +0 -1
- package/dist/chunk-URGHKZPL.js.map +0 -1
- package/dist/chunk-VZFTON37.js +0 -40
- package/dist/chunk-VZFTON37.js.map +0 -1
- package/dist/chunk-WRLWEYHY.js.map +0 -1
- package/dist/chunk-ZVJKHGE5.js.map +0 -1
- package/dist/collection-facade-V63BEBGU.js +0 -41
- package/dist/delegation-7SSGIETH.js +0 -26
- package/dist/derive-IMI3BMDS.js +0 -20
- package/dist/executor-7SY3M6TZ.js +0 -8
- package/dist/executor-SNHW4ELF.js +0 -35
- package/dist/executor-Z3IKK7G3.js +0 -8
- package/dist/export-accessible-O7DIVFUO.js +0 -22
- package/dist/extract-partition-ELZEJKXM.js +0 -35
- package/dist/find-KWB2RYWJ.js +0 -10
- package/dist/issue-5ZHXK4HJ.js +0 -19
- package/dist/liberate-OEOSNNFH.js +0 -25
- package/dist/link-set-KMUBFN2L.js +0 -29
- package/dist/noydb-QDZ4QIKO.js +0 -100
- package/dist/register-PIORIMMR.js +0 -30
- package/dist/registry-BIMICFUH.js +0 -23
- package/dist/registry-JGWLW53D.js +0 -35
- package/dist/registry-SELCBYEQ.js +0 -8
- package/dist/registry-W327UNYH.js +0 -8
- package/dist/request-withdrawal-K3SXXODI.js +0 -28
- package/dist/reveal-UAPBG743.js.map +0 -1
- package/dist/revoke-6AFVXTWF.js +0 -24
- package/dist/signer-TW5MAQJP.js +0 -23
- package/dist/storage-SO2L2Z5J.js +0 -21
- package/dist/vault-diff-C6WUJFNP.js +0 -8
- package/dist/verify-QWO5UKD6.js.map +0 -1
- package/dist/walk-3KEOL7BY.js +0 -20
- package/dist/withdraw-accessible-OZU525ND.js +0 -25
- package/dist/withdraw-accessible-OZU525ND.js.map +0 -1
- /package/dist/{api-H4B7ZQXP.js.map → api-QSEKT4KS.js.map} +0 -0
- /package/dist/{capsule-YQKQZPH7.js.map → capsule-YAITMH77.js.map} +0 -0
- /package/dist/{chunk-PREYKC76.js.map → chunk-24AGG4PP.js.map} +0 -0
- /package/dist/{chunk-ZNVBCKMV.js.map → chunk-2SIREKBR.js.map} +0 -0
- /package/dist/{chunk-UQRKAM2R.js.map → chunk-3M2KK7O7.js.map} +0 -0
- /package/dist/{chunk-P6FATPXQ.js.map → chunk-3ZCVY3T6.js.map} +0 -0
- /package/dist/{chunk-PBEHTFUG.js.map → chunk-4CGWLHPQ.js.map} +0 -0
- /package/dist/{chunk-PFHDQY5L.js.map → chunk-56Z4NOC6.js.map} +0 -0
- /package/dist/{chunk-F7X7MPK4.js.map → chunk-5BGHAVBN.js.map} +0 -0
- /package/dist/{chunk-QHG7GQKM.js.map → chunk-5JNEDW7I.js.map} +0 -0
- /package/dist/{chunk-DYIR6RC3.js.map → chunk-5Y4MO7UQ.js.map} +0 -0
- /package/dist/{chunk-TLIFNRU5.js.map → chunk-63LZLRWG.js.map} +0 -0
- /package/dist/{chunk-GZISWBCJ.js.map → chunk-74W56QPY.js.map} +0 -0
- /package/dist/{chunk-WVQDY3UM.js.map → chunk-AHA7UALU.js.map} +0 -0
- /package/dist/{chunk-S2ORTQGS.js.map → chunk-ANYX2M6P.js.map} +0 -0
- /package/dist/{chunk-6WEPFEMJ.js.map → chunk-ATKYMRBC.js.map} +0 -0
- /package/dist/{chunk-7UHLO4ZN.js.map → chunk-B2HU55QD.js.map} +0 -0
- /package/dist/{chunk-Y22JWHCP.js.map → chunk-BEKMLYQ4.js.map} +0 -0
- /package/dist/{chunk-7C7OF26T.js.map → chunk-C2NXAR3D.js.map} +0 -0
- /package/dist/{chunk-6WIFF46H.js.map → chunk-CQLMRCKX.js.map} +0 -0
- /package/dist/{chunk-LMC5L3MM.js.map → chunk-DS2JXSUA.js.map} +0 -0
- /package/dist/{chunk-X6Z2SIRF.js.map → chunk-E2JIE4S3.js.map} +0 -0
- /package/dist/{chunk-EQ6C2ZPT.js.map → chunk-E7Y4J4GL.js.map} +0 -0
- /package/dist/{chunk-LZN6DTFI.js.map → chunk-ECDM6YRX.js.map} +0 -0
- /package/dist/{chunk-2T2TGRWE.js.map → chunk-EM56MHN5.js.map} +0 -0
- /package/dist/{chunk-NK4LGBGQ.js.map → chunk-EQXOJH6O.js.map} +0 -0
- /package/dist/{chunk-OK44MD3C.js.map → chunk-ET3U2C3A.js.map} +0 -0
- /package/dist/{chunk-RF5WDM25.js.map → chunk-EU4G7PQH.js.map} +0 -0
- /package/dist/{chunk-K5JNK63R.js.map → chunk-EUCUYK5E.js.map} +0 -0
- /package/dist/{chunk-2ODEFG6K.js.map → chunk-EWSIJDWO.js.map} +0 -0
- /package/dist/{chunk-LJ744WXU.js.map → chunk-F2FD4LSB.js.map} +0 -0
- /package/dist/{chunk-L4UL4IAR.js.map → chunk-F7ENMZYJ.js.map} +0 -0
- /package/dist/{chunk-KBIS64X4.js.map → chunk-FIIVYQOW.js.map} +0 -0
- /package/dist/{chunk-BQJ5ORU5.js.map → chunk-FQEUJGBV.js.map} +0 -0
- /package/dist/{chunk-UORWAG7K.js.map → chunk-FY4FFNKK.js.map} +0 -0
- /package/dist/{chunk-MMWX5OT5.js.map → chunk-GDCYZGPB.js.map} +0 -0
- /package/dist/{chunk-7ONMS7QI.js.map → chunk-H6Q7GKLI.js.map} +0 -0
- /package/dist/{chunk-654RE5YC.js.map → chunk-HDAPQF6Q.js.map} +0 -0
- /package/dist/{chunk-5SMCBPJ2.js.map → chunk-HRLMUZLI.js.map} +0 -0
- /package/dist/{chunk-R4GLRJ55.js.map → chunk-HRNQYGLQ.js.map} +0 -0
- /package/dist/{chunk-NHEKQWFI.js.map → chunk-J4L4AS2W.js.map} +0 -0
- /package/dist/{chunk-UMV5GBTJ.js.map → chunk-JPSOFWJR.js.map} +0 -0
- /package/dist/{chunk-A52BK5AY.js.map → chunk-JRCO67NG.js.map} +0 -0
- /package/dist/{chunk-FVKQ5QUC.js.map → chunk-JW3I3NNZ.js.map} +0 -0
- /package/dist/{chunk-BNYDOF2Q.js.map → chunk-JZMPSQBH.js.map} +0 -0
- /package/dist/{chunk-ZK2WT532.js.map → chunk-K5TVSOPQ.js.map} +0 -0
- /package/dist/{chunk-2IASHJPS.js.map → chunk-K75SL74I.js.map} +0 -0
- /package/dist/{chunk-O3NGOHXQ.js.map → chunk-KA4AAUST.js.map} +0 -0
- /package/dist/{chunk-QQLXKDGC.js.map → chunk-KUGUML7H.js.map} +0 -0
- /package/dist/{chunk-AMSSAOOB.js.map → chunk-L4J5NC2Q.js.map} +0 -0
- /package/dist/{chunk-AYOQZJDB.js.map → chunk-LIX4QPMM.js.map} +0 -0
- /package/dist/{chunk-WIUH6EJ7.js.map → chunk-LWQFGR34.js.map} +0 -0
- /package/dist/{chunk-QNOWNCZS.js.map → chunk-MMSSHMHW.js.map} +0 -0
- /package/dist/{chunk-ND6S2DKC.js.map → chunk-N5S2BCW3.js.map} +0 -0
- /package/dist/{chunk-X5RGG3ZW.js.map → chunk-NIZH2TYZ.js.map} +0 -0
- /package/dist/{chunk-SXPLIRQH.js.map → chunk-NLDBQHDV.js.map} +0 -0
- /package/dist/{chunk-AI35LNWQ.js.map → chunk-NQQ4MOPC.js.map} +0 -0
- /package/dist/{chunk-B6EWMGFX.js.map → chunk-NUBI6PYH.js.map} +0 -0
- /package/dist/{chunk-ID4ZBC3X.js.map → chunk-NYEXUZDW.js.map} +0 -0
- /package/dist/{chunk-PWAMX5KU.js.map → chunk-OOLF5FU2.js.map} +0 -0
- /package/dist/{chunk-WQUIJPN4.js.map → chunk-OQA7UF2Q.js.map} +0 -0
- /package/dist/{chunk-7JRLCP2J.js.map → chunk-ORJPICJI.js.map} +0 -0
- /package/dist/{chunk-IF2M43G4.js.map → chunk-PBRD75JF.js.map} +0 -0
- /package/dist/{chunk-BSEPI3HD.js.map → chunk-PR36DD2X.js.map} +0 -0
- /package/dist/{chunk-52ZFNK46.js.map → chunk-PV4HIC4E.js.map} +0 -0
- /package/dist/{chunk-TU6ZJTYT.js.map → chunk-PZNK4HTV.js.map} +0 -0
- /package/dist/{chunk-LUQBG637.js.map → chunk-QBLPLNPE.js.map} +0 -0
- /package/dist/{chunk-UADW5NOU.js.map → chunk-QZXUISRF.js.map} +0 -0
- /package/dist/{chunk-BMAXBTYH.js.map → chunk-RBXYO7MD.js.map} +0 -0
- /package/dist/{chunk-PZN76MMV.js.map → chunk-RIACRFWA.js.map} +0 -0
- /package/dist/{chunk-ICHHNI5E.js.map → chunk-RL6RNDJQ.js.map} +0 -0
- /package/dist/{chunk-4WLI37WK.js.map → chunk-SJ2P7UXD.js.map} +0 -0
- /package/dist/{chunk-2QH3I7QC.js.map → chunk-SWXS4LV3.js.map} +0 -0
- /package/dist/{chunk-4KYKRYRT.js.map → chunk-TOTCZFRF.js.map} +0 -0
- /package/dist/{chunk-CSAN22QG.js.map → chunk-TT4D52EK.js.map} +0 -0
- /package/dist/{chunk-VLRY2UH4.js.map → chunk-U7CMJY5P.js.map} +0 -0
- /package/dist/{chunk-PU5ZEV65.js.map → chunk-UZVHSYIF.js.map} +0 -0
- /package/dist/{chunk-XQGKS4OW.js.map → chunk-VKZ3TDET.js.map} +0 -0
- /package/dist/{chunk-ZOFNZLAA.js.map → chunk-VLZPUG5A.js.map} +0 -0
- /package/dist/{chunk-OR3OHKU6.js.map → chunk-VSN5FLMI.js.map} +0 -0
- /package/dist/{chunk-SVXFCCSX.js.map → chunk-WHK4JVKF.js.map} +0 -0
- /package/dist/{chunk-YVA6UPRN.js.map → chunk-X4LDBALX.js.map} +0 -0
- /package/dist/{chunk-35CNOVQE.js.map → chunk-X67E7NIJ.js.map} +0 -0
- /package/dist/{chunk-IPF5ORDI.js.map → chunk-XMARKBUC.js.map} +0 -0
- /package/dist/{chunk-B3B6HV5S.js.map → chunk-XMBBTETD.js.map} +0 -0
- /package/dist/{chunk-FUHUGKDN.js.map → chunk-XROQP6IQ.js.map} +0 -0
- /package/dist/{chunk-DL4GCSTS.js.map → chunk-Y2RYUWSQ.js.map} +0 -0
- /package/dist/{chunk-7IV7GVOS.js.map → chunk-YCTSQV7K.js.map} +0 -0
- /package/dist/{chunk-IFUYLIEY.js.map → chunk-YF7P2DG7.js.map} +0 -0
- /package/dist/{chunk-PIO6NW7O.js.map → chunk-ZG7DBIVX.js.map} +0 -0
- /package/dist/{chunk-NUZ7ROUZ.js.map → chunk-ZGJ775X7.js.map} +0 -0
- /package/dist/{chunk-6BEBWHNL.js.map → chunk-ZQQLOEWN.js.map} +0 -0
- /package/dist/{classified-marker-7HXDMYHI.js.map → classified-marker-HKMRC7SC.js.map} +0 -0
- /package/dist/{collection-facade-V63BEBGU.js.map → collection-facade-PPKNUR2J.js.map} +0 -0
- /package/dist/{computed-LZLSYOPG.js.map → computed-UCYVPMZA.js.map} +0 -0
- /package/dist/{delegation-7SSGIETH.js.map → delegation-SNALWRMO.js.map} +0 -0
- /package/dist/{derive-IMI3BMDS.js.map → derive-4GNU4E4I.js.map} +0 -0
- /package/dist/{dispatch-KOPDDPEQ.js.map → dispatch-V5WLDTVX.js.map} +0 -0
- /package/dist/{executor-7SY3M6TZ.js.map → executor-7QN22OKI.js.map} +0 -0
- /package/dist/{executor-SNHW4ELF.js.map → executor-BJZJNVBB.js.map} +0 -0
- /package/dist/{executor-Z3IKK7G3.js.map → executor-JEAAEJUM.js.map} +0 -0
- /package/dist/{export-accessible-O7DIVFUO.js.map → export-accessible-TVO2KQPG.js.map} +0 -0
- /package/dist/{extract-partition-ELZEJKXM.js.map → extract-partition-43CLDRN4.js.map} +0 -0
- /package/dist/{find-KWB2RYWJ.js.map → issue-EIHEDAXM.js.map} +0 -0
- /package/dist/{issue-5ZHXK4HJ.js.map → ledger-BMVUFQ3R.js.map} +0 -0
- /package/dist/{ledger-UFJCB6T5.js.map → liberate-7KHXCLNJ.js.map} +0 -0
- /package/dist/{liberate-OEOSNNFH.js.map → link-set-PC2EJRKL.js.map} +0 -0
- /package/dist/{link-set-KMUBFN2L.js.map → managed-secret-RPRVEYZA.js.map} +0 -0
- /package/dist/{migrate-cek-SPESQAAO.js.map → migrate-cek-DTSCWGEF.js.map} +0 -0
- /package/dist/{managed-secret-H5WYSJ46.js.map → noydb-AYDNOXAX.js.map} +0 -0
- /package/dist/{post-register-2AC2STHC.js.map → post-register-RITSNASO.js.map} +0 -0
- /package/dist/{noydb-QDZ4QIKO.js.map → register-BB34SK7E.js.map} +0 -0
- /package/dist/{register-PIORIMMR.js.map → registry-65L6V5TO.js.map} +0 -0
- /package/dist/{registry-BIMICFUH.js.map → registry-HU62GPWA.js.map} +0 -0
- /package/dist/{registry-JGWLW53D.js.map → registry-SMNK6UM4.js.map} +0 -0
- /package/dist/{registry-SELCBYEQ.js.map → registry-X5VPBKCO.js.map} +0 -0
- /package/dist/{registry-W327UNYH.js.map → request-withdrawal-4SKAH46W.js.map} +0 -0
- /package/dist/{request-withdrawal-K3SXXODI.js.map → revoke-IF5PX2JY.js.map} +0 -0
- /package/dist/{revoke-6AFVXTWF.js.map → signer-5P7IZC2K.js.map} +0 -0
- /package/dist/{signer-TW5MAQJP.js.map → stale-PUCZH5GJ.js.map} +0 -0
- /package/dist/{stale-CROGJBIJ.js.map → storage-5EGY5OYE.js.map} +0 -0
- /package/dist/{storage-SO2L2Z5J.js.map → vault-diff-H7LT5ZBJ.js.map} +0 -0
- /package/dist/{vault-diff-C6WUJFNP.js.map → walk-Z4N7PCZ2.js.map} +0 -0
- /package/dist/{walk-3KEOL7BY.js.map → withdraw-accessible-CRCIQSTL.js.map} +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveStaleOnRead
|
|
3
|
+
} from "./chunk-2SIREKBR.js";
|
|
1
4
|
import {
|
|
2
5
|
isManifestReservedCollection
|
|
3
6
|
} from "./chunk-EPFF7LOX.js";
|
|
@@ -7,28 +10,25 @@ import {
|
|
|
7
10
|
isLinkCollectionName,
|
|
8
11
|
linkCollectionName,
|
|
9
12
|
linkRowKey
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MMSSHMHW.js";
|
|
11
14
|
import {
|
|
12
15
|
hashFields,
|
|
13
16
|
validateSatelliteDeclaration
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
resolveStaleOnRead
|
|
17
|
-
} from "./chunk-ZNVBCKMV.js";
|
|
17
|
+
} from "./chunk-J4L4AS2W.js";
|
|
18
18
|
import {
|
|
19
19
|
loadFence
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-63LZLRWG.js";
|
|
21
21
|
import {
|
|
22
22
|
DELEGATIONS_COLLECTION
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VYBBE7RN.js";
|
|
24
24
|
import {
|
|
25
25
|
buildPersistedIndexCallbacks,
|
|
26
26
|
syncTierSearch
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TT4D52EK.js";
|
|
28
28
|
import {
|
|
29
29
|
isBaseLive,
|
|
30
30
|
liveBaseIdSet
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-E2JIE4S3.js";
|
|
32
32
|
import {
|
|
33
33
|
SchemaUpdateGate
|
|
34
34
|
} from "./chunk-6LJY7X5A.js";
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
NO_TIERS,
|
|
37
37
|
classifySealedShred,
|
|
38
38
|
syncDerivedOutputs
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PR36DD2X.js";
|
|
40
40
|
import {
|
|
41
41
|
NO_PORTABILITY
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HRNQYGLQ.js";
|
|
43
43
|
import {
|
|
44
44
|
NO_CARGO
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YF7P2DG7.js";
|
|
46
46
|
import {
|
|
47
47
|
saveSealedSecret
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-OIBFIWVJ.js";
|
|
49
49
|
import {
|
|
50
50
|
runDrainBarrier
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-OOLF5FU2.js";
|
|
52
52
|
import {
|
|
53
53
|
NO_FORMATS
|
|
54
54
|
} from "./chunk-RWFQVNXR.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
CustodyApi,
|
|
60
60
|
NO_CUSTODY
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NQQ4MOPC.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_POSTURE,
|
|
64
64
|
ViaGraph,
|
|
@@ -72,21 +72,21 @@ import {
|
|
|
72
72
|
resolveComputedEdges,
|
|
73
73
|
resolveDescribeFieldIds,
|
|
74
74
|
resolveVirtualMoneyFields
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-U7CMJY5P.js";
|
|
76
76
|
import {
|
|
77
77
|
findMatchingIdsByPairs
|
|
78
78
|
} from "./chunk-TFMM5DBB.js";
|
|
79
79
|
import {
|
|
80
80
|
encodeVecId
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-PZNK4HTV.js";
|
|
82
82
|
import {
|
|
83
83
|
NO_CLASSIFIED,
|
|
84
84
|
guardClassifiedCompat,
|
|
85
85
|
resolveClassifiedFields
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-NYEXUZDW.js";
|
|
87
87
|
import {
|
|
88
88
|
derivePersistedSchema
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-FY4FFNKK.js";
|
|
90
90
|
import {
|
|
91
91
|
findRollupSpecForIntent,
|
|
92
92
|
forgetDerivedFanout,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
runGraphDispatchWave,
|
|
97
97
|
selfWriteFieldEqual,
|
|
98
98
|
touchFor
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-LWQFGR34.js";
|
|
100
100
|
import {
|
|
101
101
|
buildLookupAltIndex,
|
|
102
102
|
buildLookupSnapshotRows,
|
|
@@ -111,19 +111,19 @@ import {
|
|
|
111
111
|
resolveDictSource,
|
|
112
112
|
resolveLabelFromMap,
|
|
113
113
|
updateReferencingRecords
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RIACRFWA.js";
|
|
115
115
|
import {
|
|
116
116
|
OverlayedCollection
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-UZVHSYIF.js";
|
|
118
118
|
import {
|
|
119
119
|
INDEXED_STORE_POLICY,
|
|
120
120
|
NO_SYNC,
|
|
121
121
|
openRejection,
|
|
122
122
|
sealRejection
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-B2HU55QD.js";
|
|
124
124
|
import {
|
|
125
125
|
NO_ATTESTATION
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-ECDM6YRX.js";
|
|
127
127
|
import {
|
|
128
128
|
NO_COVERAGE
|
|
129
129
|
} from "./chunk-NV4OESHC.js";
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
resolvePeriodKey,
|
|
137
137
|
resolveReopenState,
|
|
138
138
|
samePartition
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-EM56MHN5.js";
|
|
140
140
|
import {
|
|
141
141
|
PERIODS_COLLECTION,
|
|
142
142
|
PERIOD_ARCHIVES_COLLECTION,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
PERIOD_REOPENS_COLLECTION,
|
|
145
145
|
PERIOD_TARGET_PURGES_COLLECTION,
|
|
146
146
|
periodExclusiveUpperBound
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-JRCO67NG.js";
|
|
148
148
|
import {
|
|
149
149
|
NO_SHADOW
|
|
150
150
|
} from "./chunk-SMY5X46Z.js";
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
TxContext,
|
|
156
156
|
bestEffortRevert,
|
|
157
157
|
trackKeyedWrite
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-56Z4NOC6.js";
|
|
159
159
|
import {
|
|
160
160
|
lazy
|
|
161
161
|
} from "./chunk-5D2ALSM5.js";
|
|
@@ -164,26 +164,26 @@ import {
|
|
|
164
164
|
InvertedIndex,
|
|
165
165
|
MemoryIndexStore,
|
|
166
166
|
NO_SEARCH
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-Y2RYUWSQ.js";
|
|
168
168
|
import {
|
|
169
169
|
NO_SEQUENCE,
|
|
170
170
|
SEQUENCE_COLLECTION,
|
|
171
171
|
compileSequenceFormat,
|
|
172
172
|
resolveSequenceKey
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-7KNYLHVX.js";
|
|
174
174
|
import {
|
|
175
175
|
EXPORT_AUDIT_COLLECTION,
|
|
176
176
|
NO_BLOBS,
|
|
177
177
|
createExportBlobsHandle,
|
|
178
178
|
runCompaction
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-K5TVSOPQ.js";
|
|
180
180
|
import {
|
|
181
181
|
LazyQuery,
|
|
182
182
|
NO_INDEXING,
|
|
183
183
|
compositeKey,
|
|
184
184
|
decodeIdxId,
|
|
185
185
|
encodeIdxId
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-EWSIJDWO.js";
|
|
187
187
|
import {
|
|
188
188
|
IMPLICIT_LAZY
|
|
189
189
|
} from "./chunk-66TQOPFM.js";
|
|
@@ -201,41 +201,41 @@ import {
|
|
|
201
201
|
} from "./chunk-GSAK56VF.js";
|
|
202
202
|
import {
|
|
203
203
|
NO_SEALED_RECORD
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-JPSOFWJR.js";
|
|
205
205
|
import {
|
|
206
206
|
normalizeIndexDefs,
|
|
207
207
|
parseFieldIndexSnapshot
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-LIX4QPMM.js";
|
|
209
209
|
import {
|
|
210
210
|
EXPORT_REDACTION_MARKER,
|
|
211
211
|
ViaPipeline,
|
|
212
212
|
exportRedact
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-CQLMRCKX.js";
|
|
214
214
|
import {
|
|
215
215
|
ScanBuilder
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-74W56QPY.js";
|
|
217
217
|
import {
|
|
218
218
|
Query
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-C2NXAR3D.js";
|
|
220
220
|
import {
|
|
221
221
|
NO_REDUCE
|
|
222
222
|
} from "./chunk-3TDUWVWB.js";
|
|
223
223
|
import {
|
|
224
224
|
readPath
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-NLDBQHDV.js";
|
|
226
226
|
import {
|
|
227
227
|
dictCollectionName
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-AHA7UALU.js";
|
|
229
229
|
import {
|
|
230
230
|
NO_I18N,
|
|
231
231
|
getAtPath,
|
|
232
232
|
isDictCollectionName,
|
|
233
233
|
isStaticDictDescriptor
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-3M2KK7O7.js";
|
|
235
235
|
import {
|
|
236
236
|
isViaInstalled,
|
|
237
237
|
viaBinder
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-ZG7DBIVX.js";
|
|
239
239
|
import {
|
|
240
240
|
NO_TEAM,
|
|
241
241
|
describeAllUsersAuth,
|
|
@@ -258,12 +258,15 @@ import {
|
|
|
258
258
|
saveShamirRecoveryEntries,
|
|
259
259
|
updateAuthenticator,
|
|
260
260
|
writeMagicLinkGrant
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-5AVIUJP4.js";
|
|
262
262
|
import {
|
|
263
|
+
assertFieldsSupported,
|
|
263
264
|
assertKeyringOpenAllowed,
|
|
265
|
+
assertPeerKeyringMatches,
|
|
266
|
+
assertServicesSupported,
|
|
264
267
|
buildRecipientKeyringFile,
|
|
265
268
|
changeSecret,
|
|
266
|
-
|
|
269
|
+
createOwnerKeyringOrLoad,
|
|
267
270
|
ensureCollectionDEK,
|
|
268
271
|
hasAccess,
|
|
269
272
|
hasExportCapability,
|
|
@@ -273,15 +276,15 @@ import {
|
|
|
273
276
|
listUsers,
|
|
274
277
|
loadKeyring,
|
|
275
278
|
updateKeyringIdentity
|
|
276
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-UXH4AKH3.js";
|
|
277
280
|
import {
|
|
278
281
|
persistDirectoryConfig,
|
|
279
282
|
readDirectoryConfig
|
|
280
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-ZQQLOEWN.js";
|
|
281
284
|
import {
|
|
282
285
|
NO_BROKER,
|
|
283
286
|
buildCredentialBrokerHandle
|
|
284
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-JW3I3NNZ.js";
|
|
285
288
|
import {
|
|
286
289
|
NO_SESSION
|
|
287
290
|
} from "./chunk-VKQCVU2Z.js";
|
|
@@ -290,16 +293,16 @@ import {
|
|
|
290
293
|
} from "./chunk-4AOERLTV.js";
|
|
291
294
|
import {
|
|
292
295
|
NO_HISTORY
|
|
293
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-F7ENMZYJ.js";
|
|
294
297
|
import {
|
|
295
298
|
sha256Hex
|
|
296
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-5JNEDW7I.js";
|
|
297
300
|
import {
|
|
298
301
|
assertCutoverTierSafe,
|
|
299
302
|
assertTierWritable,
|
|
300
303
|
dekKey,
|
|
301
304
|
liveRecordIsElevated
|
|
302
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-F2FD4LSB.js";
|
|
303
306
|
import {
|
|
304
307
|
NO_VAULT_HEAD
|
|
305
308
|
} from "./chunk-OFD2HD6F.js";
|
|
@@ -311,7 +314,7 @@ import {
|
|
|
311
314
|
readDottedPath,
|
|
312
315
|
rebuildSubjectIndex,
|
|
313
316
|
removeSubjectRef
|
|
314
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-3ZCVY3T6.js";
|
|
315
318
|
import {
|
|
316
319
|
RecordCodec,
|
|
317
320
|
SEALED_CEK_NS,
|
|
@@ -320,6 +323,7 @@ import {
|
|
|
320
323
|
buildRecordAad,
|
|
321
324
|
buildRecordEnvelope,
|
|
322
325
|
buildTombstone,
|
|
326
|
+
capabilities,
|
|
323
327
|
encrypt,
|
|
324
328
|
findByDet,
|
|
325
329
|
hasPerRecordKey,
|
|
@@ -332,13 +336,13 @@ import {
|
|
|
332
336
|
resolveStableCek,
|
|
333
337
|
rewrapBodyToDek,
|
|
334
338
|
verifyRecordIdentity
|
|
335
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-EFINFZIF.js";
|
|
336
340
|
import {
|
|
337
341
|
validateSchemaInput
|
|
338
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-I4S7IZSS.js";
|
|
339
343
|
import {
|
|
340
344
|
SealedHandle
|
|
341
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-CR5UPYIJ.js";
|
|
342
346
|
import {
|
|
343
347
|
AlreadyElevatedError,
|
|
344
348
|
AttestationError,
|
|
@@ -378,7 +382,7 @@ import {
|
|
|
378
382
|
UniqueConstraintError,
|
|
379
383
|
ValidationError,
|
|
380
384
|
isConflictError
|
|
381
|
-
} from "./chunk-
|
|
385
|
+
} from "./chunk-ISIXU45J.js";
|
|
382
386
|
|
|
383
387
|
// src/kernel/merge-authority.ts
|
|
384
388
|
function buildMergeAuthority(keyring) {
|
|
@@ -492,6 +496,96 @@ function resolveStrategies(options) {
|
|
|
492
496
|
return resolved;
|
|
493
497
|
}
|
|
494
498
|
|
|
499
|
+
// src/kernel/store-segment-guard.ts
|
|
500
|
+
function assertName(value, what) {
|
|
501
|
+
if (typeof value !== "string" || value === "" || value === "." || value === ".." || value.includes("/") || value.includes("\\") || value.includes("\0")) {
|
|
502
|
+
throw new ValidationError(
|
|
503
|
+
`store contract: ${what} must be a single segment \u2014 never empty, "." or "..", and carrying no path separator or NUL. Got ${JSON.stringify(value)}.`
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
function assertId(id) {
|
|
508
|
+
if (typeof id !== "string" || id === "") {
|
|
509
|
+
throw new ValidationError(
|
|
510
|
+
`store contract: record id must be a non-empty string. Got ${JSON.stringify(id)}.`
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
for (const part of id.split("/")) {
|
|
514
|
+
if (part === "" || part === "." || part === "..") {
|
|
515
|
+
throw new ValidationError(
|
|
516
|
+
`store contract: record id has an empty, "." or ".." component, which can escape its vault on a path-based store. A slash IS allowed (hub writes "_idx/<field>/<id>"); an empty or dot component is not. Got ${JSON.stringify(id)}.`
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
var POSITIONAL = {
|
|
522
|
+
loadAll: "v",
|
|
523
|
+
list: "vc",
|
|
524
|
+
listSince: "vc",
|
|
525
|
+
listPage: "vc",
|
|
526
|
+
get: "vci",
|
|
527
|
+
put: "vci",
|
|
528
|
+
delete: "vci",
|
|
529
|
+
presignUrl: "vci"
|
|
530
|
+
};
|
|
531
|
+
function checkPositional(kind, args) {
|
|
532
|
+
assertName(args[0], "vault");
|
|
533
|
+
if (kind === "v") return;
|
|
534
|
+
assertName(args[1], "collection");
|
|
535
|
+
if (kind === "vc") return;
|
|
536
|
+
assertId(args[2]);
|
|
537
|
+
}
|
|
538
|
+
function checkSnapshot(args) {
|
|
539
|
+
assertName(args[0], "vault");
|
|
540
|
+
const data = args[1];
|
|
541
|
+
for (const [collection, records] of Object.entries(data ?? {})) {
|
|
542
|
+
assertName(collection, "collection");
|
|
543
|
+
for (const id of Object.keys(records ?? {})) assertId(id);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function checkTx(args) {
|
|
547
|
+
for (const op of args[0] ?? []) {
|
|
548
|
+
assertName(op?.vault, "vault");
|
|
549
|
+
assertName(op?.collection, "collection");
|
|
550
|
+
assertId(op?.id);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function unguardedStore(store) {
|
|
554
|
+
return RAW.get(store) ?? store;
|
|
555
|
+
}
|
|
556
|
+
var RAW = /* @__PURE__ */ new WeakMap();
|
|
557
|
+
function guardStoreSegments(store) {
|
|
558
|
+
const wrapped = /* @__PURE__ */ new WeakMap();
|
|
559
|
+
const proxy = new Proxy(store, {
|
|
560
|
+
// ⚠️ `receiver` is deliberately not taken. Forwarding it would make `this`
|
|
561
|
+
// the PROXY inside every method, which is the `#private`-field failure this
|
|
562
|
+
// wrapper exists to avoid — `Reflect.get(target, prop, target)` and
|
|
563
|
+
// `Reflect.apply(fn, target, …)` both pin the receiver to the real store.
|
|
564
|
+
get(target, prop) {
|
|
565
|
+
const value = Reflect.get(target, prop, target);
|
|
566
|
+
if (typeof value !== "function" || typeof prop !== "string") return value;
|
|
567
|
+
const check = prop === "saveAll" ? checkSnapshot : prop === "tx" ? checkTx : POSITIONAL[prop] !== void 0 ? (args) => checkPositional(POSITIONAL[prop], args) : null;
|
|
568
|
+
if (check === null) {
|
|
569
|
+
const cached2 = wrapped.get(value);
|
|
570
|
+
if (cached2 !== void 0) return cached2;
|
|
571
|
+
const passthrough = (...args) => Reflect.apply(value, target, args);
|
|
572
|
+
wrapped.set(value, passthrough);
|
|
573
|
+
return passthrough;
|
|
574
|
+
}
|
|
575
|
+
const cached = wrapped.get(value);
|
|
576
|
+
if (cached !== void 0) return cached;
|
|
577
|
+
const guarded = async (...args) => {
|
|
578
|
+
check(args);
|
|
579
|
+
return Reflect.apply(value, target, args);
|
|
580
|
+
};
|
|
581
|
+
wrapped.set(value, guarded);
|
|
582
|
+
return guarded;
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
RAW.set(proxy, store);
|
|
586
|
+
return proxy;
|
|
587
|
+
}
|
|
588
|
+
|
|
495
589
|
// src/kernel/secret-mode.ts
|
|
496
590
|
function validateSecretModeOptions(options) {
|
|
497
591
|
const encrypted = options.encrypt !== false;
|
|
@@ -558,7 +652,7 @@ function validateSecretModeOptions(options) {
|
|
|
558
652
|
}
|
|
559
653
|
async function resolveEffectiveSecret(options, store, vault) {
|
|
560
654
|
if (options.secretMode === "managed") {
|
|
561
|
-
const { resolveManagedSecret } = await import("./managed-secret-
|
|
655
|
+
const { resolveManagedSecret } = await import("./managed-secret-RPRVEYZA.js");
|
|
562
656
|
return resolveManagedSecret(store, vault, options.sealingKey);
|
|
563
657
|
}
|
|
564
658
|
return options.secret;
|
|
@@ -576,11 +670,22 @@ function ownerKeyringOptions(options, secret) {
|
|
|
576
670
|
|
|
577
671
|
// src/port/by/default-provider.ts
|
|
578
672
|
async function createDefaultMesh(store) {
|
|
579
|
-
const { StoreMesh } = await import("./store-coordination-provider-
|
|
673
|
+
const { StoreMesh } = await import("./store-coordination-provider-SEQM7SHJ.js");
|
|
580
674
|
return new StoreMesh(store);
|
|
581
675
|
}
|
|
582
676
|
|
|
583
677
|
// src/port/with/collection-registries.ts
|
|
678
|
+
function reconcileDeclarationOnlyOptions(r, collectionName, options) {
|
|
679
|
+
if (options === void 0) return;
|
|
680
|
+
if ((options.schemaUpdate?.length ?? 0) > 0) {
|
|
681
|
+
throw new ValidationError(
|
|
682
|
+
`vault.collection(${JSON.stringify(collectionName)}, { schemaUpdate }): this collection is already open, and schemaUpdate can only take effect at its FIRST acquisition \u2014 its gate is built once, when the collection is constructed, so declaring it here used to be dropped in silence. Pass it on the first vault.collection(${JSON.stringify(collectionName)}, ...) call in this process, or acquire the open collection with vault.collection(${JSON.stringify(collectionName)}) and no options.`
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
if (options.archive !== void 0) {
|
|
686
|
+
r.archiveRegistry.set(collectionName, options.archive);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
584
689
|
function populateCollectionRegistries(r, collectionName, options, effectiveViaFields) {
|
|
585
690
|
if (options?.refs) {
|
|
586
691
|
r.refRegistry.register(collectionName, options.refs);
|
|
@@ -642,16 +747,26 @@ async function resolveExportSource(adapter, vault, opts) {
|
|
|
642
747
|
// every collection's envelopes out of the store before declining to
|
|
643
748
|
// decrypt most of them — the fetch would already have happened, which is
|
|
644
749
|
// precisely the half that makes "scoping" a word rather than a property.
|
|
645
|
-
ids: async (collection) => await adapter.list(vault, collection)
|
|
750
|
+
ids: async (collection) => await adapter.list(vault, collection),
|
|
751
|
+
// One `get` per record, and only when `withEnvelopeMeta` is set — a
|
|
752
|
+
// scoped export that does not ask still reads exactly what core#45b
|
|
753
|
+
// narrowed it to.
|
|
754
|
+
envelope: async (collection, id) => await adapter.get(vault, collection, id)
|
|
646
755
|
};
|
|
647
756
|
}
|
|
648
757
|
const snapshot = await adapter.loadAll(vault);
|
|
649
758
|
return {
|
|
650
759
|
collections: Object.keys(snapshot).sort(),
|
|
651
760
|
scoped: false,
|
|
652
|
-
ids: async (collection) => Object.keys(snapshot[collection] ?? {})
|
|
761
|
+
ids: async (collection) => Object.keys(snapshot[collection] ?? {}),
|
|
762
|
+
// Free: the envelope is already in the snapshot this source was built from.
|
|
763
|
+
envelope: async (collection, id) => snapshot[collection]?.[id] ?? null
|
|
653
764
|
};
|
|
654
765
|
}
|
|
766
|
+
async function readEnvelopeMeta(source, collection, id) {
|
|
767
|
+
const envelope = await source.envelope(collection, id);
|
|
768
|
+
return { version: envelope?._v ?? 0, ts: envelope?._ts ?? "" };
|
|
769
|
+
}
|
|
655
770
|
|
|
656
771
|
// src/kernel/generation-map.ts
|
|
657
772
|
var tick = 0;
|
|
@@ -1752,7 +1867,7 @@ async function commitSequentially(ctx, entries, priors) {
|
|
|
1752
1867
|
}
|
|
1753
1868
|
|
|
1754
1869
|
// src/with-formula/computed/lazy.ts
|
|
1755
|
-
var loadComputed = lazy(() => import("./computed-
|
|
1870
|
+
var loadComputed = lazy(() => import("./computed-UCYVPMZA.js"));
|
|
1756
1871
|
async function loadEvalComputedFields() {
|
|
1757
1872
|
return (await loadComputed()).evalComputedFields;
|
|
1758
1873
|
}
|
|
@@ -2185,6 +2300,12 @@ var Collection = class {
|
|
|
2185
2300
|
this.deterministicFields = cfg.deterministicFields;
|
|
2186
2301
|
this.sensitiveFields = cfg.sensitiveFields;
|
|
2187
2302
|
this.perRecordCek = cfg.perRecordCek;
|
|
2303
|
+
assertFieldsSupported(this.name, {
|
|
2304
|
+
sensitiveFields: cfg.sensitiveFields,
|
|
2305
|
+
deterministicFields: cfg.deterministicFields,
|
|
2306
|
+
perRecordKeys: cfg.perRecordCek === true,
|
|
2307
|
+
classifiedByField: cfg.classified?.byField ?? null
|
|
2308
|
+
}, capabilities());
|
|
2188
2309
|
this.cekCache = cfg.cekCache;
|
|
2189
2310
|
this.provenance = cfg.provenance;
|
|
2190
2311
|
if (this.sensitiveFields.size > 0 && !this.storeCiphertext) {
|
|
@@ -2247,7 +2368,7 @@ var Collection = class {
|
|
|
2247
2368
|
if (policy === "last-writer-wins") {
|
|
2248
2369
|
resolver = async (_id, local, remote) => local._ts >= remote._ts ? local : remote;
|
|
2249
2370
|
} else if (policy === "first-writer-wins") {
|
|
2250
|
-
resolver = async (_id, local, remote) => local._v
|
|
2371
|
+
resolver = async (_id, local, remote) => local._v < remote._v ? local : remote;
|
|
2251
2372
|
} else if (policy === "manual") {
|
|
2252
2373
|
resolver = (id, local, remote) => new Promise((resolvePromise) => {
|
|
2253
2374
|
let settled = false;
|
|
@@ -2561,7 +2682,7 @@ var Collection = class {
|
|
|
2561
2682
|
}
|
|
2562
2683
|
await this.onAccess?.("find", "*");
|
|
2563
2684
|
if (hits.length === 0) return [];
|
|
2564
|
-
const { verifyDigestField } = await import("./
|
|
2685
|
+
const { verifyDigestField } = await import("./capsule-YAITMH77.js");
|
|
2565
2686
|
const policy = {
|
|
2566
2687
|
normalize: spec.verifyNormalize ?? "password",
|
|
2567
2688
|
notLastN: spec.notLastN ?? 0,
|
|
@@ -2773,7 +2894,7 @@ var Collection = class {
|
|
|
2773
2894
|
}
|
|
2774
2895
|
}
|
|
2775
2896
|
if (this.materializedViewSource !== void 0) {
|
|
2776
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
2897
|
+
const { resolveStaleMVOnRead } = await import("./stale-PUCZH5GJ.js");
|
|
2777
2898
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
2778
2899
|
}
|
|
2779
2900
|
let record;
|
|
@@ -3005,7 +3126,8 @@ var Collection = class {
|
|
|
3005
3126
|
if ((envelope._tier ?? 0) > 0) return { admitted: true };
|
|
3006
3127
|
let incoming;
|
|
3007
3128
|
try {
|
|
3008
|
-
|
|
3129
|
+
const raw = await this.codec.decryptRecord({ collection: this.name, id }, envelope, { skipValidation: true });
|
|
3130
|
+
incoming = this.via ? this.via.canonicalizeStored(raw) : raw;
|
|
3009
3131
|
} catch {
|
|
3010
3132
|
return { admitted: true };
|
|
3011
3133
|
}
|
|
@@ -3228,6 +3350,16 @@ var Collection = class {
|
|
|
3228
3350
|
}
|
|
3229
3351
|
await assertTierWritable(this.adapter, this.vault, this.name, id, this.tiers !== null);
|
|
3230
3352
|
if (this.via) record = this.via.ingest(record);
|
|
3353
|
+
const viaWriteCtx = {
|
|
3354
|
+
id,
|
|
3355
|
+
vault: this.vault,
|
|
3356
|
+
prior: async () => await this.resolveDensifyPrior(id) ?? null,
|
|
3357
|
+
emit: (e, p) => this.emitter.emit(e, p)
|
|
3358
|
+
};
|
|
3359
|
+
if (this.via) await this.via.enforceWrite(record, viaWriteCtx);
|
|
3360
|
+
if (this.computed !== void 0) {
|
|
3361
|
+
record = (await loadEvalComputedFields())(record, this.computed, id);
|
|
3362
|
+
}
|
|
3231
3363
|
if (this.subsystemBus?.hasGateHandlers("beforePut")) {
|
|
3232
3364
|
const { env: existingEnv, record: existingRecord } = await this.resolveGatePrior("beforePut", id);
|
|
3233
3365
|
const gateEvent = {
|
|
@@ -3245,16 +3377,6 @@ var Collection = class {
|
|
|
3245
3377
|
};
|
|
3246
3378
|
await this.subsystemBus.dispatchGate("beforePut", gateEvent);
|
|
3247
3379
|
}
|
|
3248
|
-
const viaWriteCtx = {
|
|
3249
|
-
id,
|
|
3250
|
-
vault: this.vault,
|
|
3251
|
-
prior: async () => await this.resolveDensifyPrior(id) ?? null,
|
|
3252
|
-
emit: (e, p) => this.emitter.emit(e, p)
|
|
3253
|
-
};
|
|
3254
|
-
if (this.via) await this.via.enforceWrite(record, viaWriteCtx);
|
|
3255
|
-
if (this.computed !== void 0) {
|
|
3256
|
-
record = (await loadEvalComputedFields())(record, this.computed, id);
|
|
3257
|
-
}
|
|
3258
3380
|
if (this.schema !== void 0) {
|
|
3259
3381
|
record = await validateSchemaInput(this.schema, record, `put(${id})`);
|
|
3260
3382
|
}
|
|
@@ -3394,7 +3516,7 @@ var Collection = class {
|
|
|
3394
3516
|
*/
|
|
3395
3517
|
async _dispatchMaterializedViews(id, record, wave) {
|
|
3396
3518
|
if (this.materializedViewSource === void 0) return;
|
|
3397
|
-
const { dispatchMaterializedViews } = await import("./dispatch-
|
|
3519
|
+
const { dispatchMaterializedViews } = await import("./dispatch-V5WLDTVX.js");
|
|
3398
3520
|
return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
|
|
3399
3521
|
}
|
|
3400
3522
|
/**
|
|
@@ -3560,13 +3682,13 @@ var Collection = class {
|
|
|
3560
3682
|
* dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
|
|
3561
3683
|
async _dispatchDerivations(id, record, version, wave, prior) {
|
|
3562
3684
|
if (this.derivationSource === void 0) return;
|
|
3563
|
-
const { dispatchDerivations } = await import("./dispatch-
|
|
3685
|
+
const { dispatchDerivations } = await import("./dispatch-QW32QBLW.js");
|
|
3564
3686
|
return dispatchDerivations(this.#derivationDispatchCtx(), id, record, version, wave, prior);
|
|
3565
3687
|
}
|
|
3566
3688
|
/** @internal — trigger fan-out for a deleted parent (#1249); see dispatch.ts. */
|
|
3567
3689
|
async _dispatchTriggerDerivationsOnDelete(id, deleted) {
|
|
3568
3690
|
if (this.derivationSource === void 0) return;
|
|
3569
|
-
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-
|
|
3691
|
+
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-QW32QBLW.js");
|
|
3570
3692
|
return dispatchTriggerDerivationsOnDelete(this.#derivationDispatchCtx(), id, deleted);
|
|
3571
3693
|
}
|
|
3572
3694
|
/**
|
|
@@ -3889,7 +4011,7 @@ var Collection = class {
|
|
|
3889
4011
|
*/
|
|
3890
4012
|
async _dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
|
|
3891
4013
|
if (this.derivationSource === void 0) return 0;
|
|
3892
|
-
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-
|
|
4014
|
+
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-QW32QBLW.js");
|
|
3893
4015
|
return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
|
|
3894
4016
|
}
|
|
3895
4017
|
/**
|
|
@@ -3903,7 +4025,7 @@ var Collection = class {
|
|
|
3903
4025
|
*/
|
|
3904
4026
|
async _dispatchMaterializedViewsOnDelete(id) {
|
|
3905
4027
|
if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
|
|
3906
|
-
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-
|
|
4028
|
+
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-V5WLDTVX.js");
|
|
3907
4029
|
return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
|
|
3908
4030
|
}
|
|
3909
4031
|
/**
|
|
@@ -3923,7 +4045,7 @@ var Collection = class {
|
|
|
3923
4045
|
);
|
|
3924
4046
|
}
|
|
3925
4047
|
if (this.materializedViewSource !== void 0) {
|
|
3926
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
4048
|
+
const { resolveStaleMVOnRead } = await import("./stale-PUCZH5GJ.js");
|
|
3927
4049
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3928
4050
|
}
|
|
3929
4051
|
await this.ensureHydrated();
|
|
@@ -3970,7 +4092,7 @@ var Collection = class {
|
|
|
3970
4092
|
);
|
|
3971
4093
|
}
|
|
3972
4094
|
if (this.materializedViewSource !== void 0) {
|
|
3973
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
4095
|
+
const { resolveStaleMVOnRead } = await import("./stale-PUCZH5GJ.js");
|
|
3974
4096
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3975
4097
|
}
|
|
3976
4098
|
await this.ensureHydrated();
|
|
@@ -5150,14 +5272,14 @@ var Collection = class {
|
|
|
5150
5272
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
5151
5273
|
async _ensureClassifiedMarker() {
|
|
5152
5274
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
5153
|
-
const { persistClassifiedMarkerForFields } = await import("./classified-marker-
|
|
5275
|
+
const { persistClassifiedMarkerForFields } = await import("./classified-marker-HKMRC7SC.js");
|
|
5154
5276
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
5155
5277
|
this._markerPersisted = true;
|
|
5156
5278
|
}
|
|
5157
5279
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
5158
5280
|
async _classifiedMarkerDigestOnly() {
|
|
5159
5281
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
5160
|
-
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-
|
|
5282
|
+
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-HKMRC7SC.js");
|
|
5161
5283
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
5162
5284
|
return this._markerDigestOnlyCache;
|
|
5163
5285
|
}
|
|
@@ -6825,7 +6947,7 @@ var VaultLinks = class {
|
|
|
6825
6947
|
// src/with-shape/links/lazy-handle.ts
|
|
6826
6948
|
function makeLazyLinkSetHandle(d) {
|
|
6827
6949
|
let engine = null;
|
|
6828
|
-
const load = () => engine ??= import("./link-set-
|
|
6950
|
+
const load = () => engine ??= import("./link-set-PC2EJRKL.js").then(
|
|
6829
6951
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
6830
6952
|
);
|
|
6831
6953
|
return {
|
|
@@ -7478,7 +7600,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
7478
7600
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
7479
7601
|
const registry = reg;
|
|
7480
7602
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
7481
|
-
void import("./post-register-
|
|
7603
|
+
void import("./post-register-RITSNASO.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
7482
7604
|
});
|
|
7483
7605
|
return reg;
|
|
7484
7606
|
}
|
|
@@ -8438,6 +8560,7 @@ var Vault = class {
|
|
|
8438
8560
|
let coll = this.collectionCache.get(collectionName);
|
|
8439
8561
|
const effectiveViaFields = mergeViaFields({ moneyFields: options?.moneyFields, i18nFields: options?.i18nFields, dictKeyFields: options?.dictKeyFields, lookupFields: options?.lookupFields, viaFields: options?.viaFields });
|
|
8440
8562
|
if (coll) {
|
|
8563
|
+
reconcileDeclarationOnlyOptions(this.#registries(), collectionName, options);
|
|
8441
8564
|
reconcileViaAttach(coll, this.graph, collectionName, this._viaReconcileCtx(), {
|
|
8442
8565
|
effectiveViaFields,
|
|
8443
8566
|
...options?.refs !== void 0 ? { refs: options.refs } : {},
|
|
@@ -8457,7 +8580,7 @@ var Vault = class {
|
|
|
8457
8580
|
const strategies = options.schemaUpdate ?? [];
|
|
8458
8581
|
const work = (async () => {
|
|
8459
8582
|
const dek = await this.getDEK(collectionName);
|
|
8460
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
8583
|
+
const { persistSchemaIfNeeded } = await import("./register-BB34SK7E.js");
|
|
8461
8584
|
const result = await persistSchemaIfNeeded({
|
|
8462
8585
|
store: this.adapter,
|
|
8463
8586
|
vault: this.name,
|
|
@@ -8607,7 +8730,7 @@ var Vault = class {
|
|
|
8607
8730
|
const work = (async () => {
|
|
8608
8731
|
try {
|
|
8609
8732
|
const dek = await this.getDEK(collectionName);
|
|
8610
|
-
await (await import("./register-
|
|
8733
|
+
await (await import("./register-BB34SK7E.js")).persistSchemaIfNeeded({
|
|
8611
8734
|
store: this.adapter,
|
|
8612
8735
|
vault: this.name,
|
|
8613
8736
|
collectionName,
|
|
@@ -8653,7 +8776,7 @@ var Vault = class {
|
|
|
8653
8776
|
* writes (unfenced walk — see `with-shape/satellites/migrate-cek.ts`); resumable.
|
|
8654
8777
|
*/
|
|
8655
8778
|
async migrateSatellitePerRecordKeys(satelliteName) {
|
|
8656
|
-
const { migrateSatelliteCek } = await import("./migrate-cek-
|
|
8779
|
+
const { migrateSatelliteCek } = await import("./migrate-cek-DTSCWGEF.js");
|
|
8657
8780
|
return migrateSatelliteCek(satelliteName, this.collection(satelliteName, { perRecordKeys: true }));
|
|
8658
8781
|
}
|
|
8659
8782
|
/**
|
|
@@ -9303,7 +9426,7 @@ var Vault = class {
|
|
|
9303
9426
|
*/
|
|
9304
9427
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
9305
9428
|
async _loadPodSigner() {
|
|
9306
|
-
const { loadSigner } = await import("./signer-
|
|
9429
|
+
const { loadSigner } = await import("./signer-5P7IZC2K.js");
|
|
9307
9430
|
return loadSigner(this.adapter, this.name, this.getDEK);
|
|
9308
9431
|
}
|
|
9309
9432
|
async writeExportAudit(entry) {
|
|
@@ -9805,7 +9928,7 @@ var Vault = class {
|
|
|
9805
9928
|
async _initGuards(handles) {
|
|
9806
9929
|
if (handles.length === 0) return;
|
|
9807
9930
|
const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9808
|
-
import("./registry-
|
|
9931
|
+
import("./registry-SMNK6UM4.js"),
|
|
9809
9932
|
import("./read-only-facade-BIGO37U3.js")
|
|
9810
9933
|
]);
|
|
9811
9934
|
const registry = new GuardRegistry();
|
|
@@ -9833,7 +9956,7 @@ var Vault = class {
|
|
|
9833
9956
|
async _initDerivations(handles) {
|
|
9834
9957
|
if (handles.length === 0) return;
|
|
9835
9958
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9836
|
-
import("./registry-
|
|
9959
|
+
import("./registry-HU62GPWA.js"),
|
|
9837
9960
|
import("./read-only-facade-BIGO37U3.js")
|
|
9838
9961
|
]);
|
|
9839
9962
|
const registry = new DerivationRegistry();
|
|
@@ -9865,7 +9988,7 @@ var Vault = class {
|
|
|
9865
9988
|
*/
|
|
9866
9989
|
async _initMaterializedViews(handles) {
|
|
9867
9990
|
if (handles.length === 0) return;
|
|
9868
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
9991
|
+
const { MaterializedViewRegistry } = await import("./registry-65L6V5TO.js");
|
|
9869
9992
|
const registry = new MaterializedViewRegistry();
|
|
9870
9993
|
this.materializedViewRegistry = registry;
|
|
9871
9994
|
const db = this;
|
|
@@ -9890,7 +10013,7 @@ var Vault = class {
|
|
|
9890
10013
|
*/
|
|
9891
10014
|
async _initOverlayedViews(handles) {
|
|
9892
10015
|
if (handles.length === 0) return;
|
|
9893
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
10016
|
+
const { OverlayedViewRegistry } = await import("./registry-X5VPBKCO.js");
|
|
9894
10017
|
const registry = new OverlayedViewRegistry();
|
|
9895
10018
|
const mvRegistry = this.materializedViewRegistry;
|
|
9896
10019
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -9953,14 +10076,14 @@ var Vault = class {
|
|
|
9953
10076
|
if (!reg) {
|
|
9954
10077
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
9955
10078
|
}
|
|
9956
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
10079
|
+
const { MaterializedViewExecutor } = await import("./executor-JEAAEJUM.js");
|
|
9957
10080
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
9958
10081
|
getCollection: (n) => this.collection(n),
|
|
9959
10082
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
9960
10083
|
getQueryContext: () => this,
|
|
9961
10084
|
dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
|
|
9962
10085
|
});
|
|
9963
|
-
const { clearMVStaleFully } = await import("./stale-
|
|
10086
|
+
const { clearMVStaleFully } = await import("./stale-PUCZH5GJ.js");
|
|
9964
10087
|
await clearMVStaleFully(this.adapter, this.name, registry, name);
|
|
9965
10088
|
return result;
|
|
9966
10089
|
}
|
|
@@ -9973,7 +10096,7 @@ var Vault = class {
|
|
|
9973
10096
|
if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9974
10097
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
9975
10098
|
if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9976
|
-
const { DerivationExecutor } = await import("./executor-
|
|
10099
|
+
const { DerivationExecutor } = await import("./executor-7QN22OKI.js");
|
|
9977
10100
|
const sourceColl = this.collection(sourceCollection);
|
|
9978
10101
|
const records = await sourceColl.list();
|
|
9979
10102
|
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-BIGO37U3.js")).ReadOnlyVaultFacade(this, "derivation") };
|
|
@@ -10000,7 +10123,7 @@ var Vault = class {
|
|
|
10000
10123
|
if (!outSpec) continue;
|
|
10001
10124
|
const outputColl = this.collection(outSpec.collection);
|
|
10002
10125
|
if (out.kind === "array") {
|
|
10003
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
10126
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-DDONAFJT.js");
|
|
10004
10127
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
10005
10128
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
10006
10129
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -10220,14 +10343,14 @@ var Vault = class {
|
|
|
10220
10343
|
/**
|
|
10221
10344
|
* issue a time-boxed cross-tier delegation. Writes an
|
|
10222
10345
|
* encrypted envelope to the reserved `_delegations` collection that
|
|
10223
|
-
* the target
|
|
10224
|
-
*
|
|
10346
|
+
* the target picks up at their next `refreshDelegations()` call —
|
|
10347
|
+
* explicit, never automatic (core#56).
|
|
10225
10348
|
*
|
|
10226
10349
|
* Caller must hold the tier DEK for the requested tier and
|
|
10227
10350
|
* collection.
|
|
10228
10351
|
*/
|
|
10229
10352
|
async delegate(opts) {
|
|
10230
|
-
const { issueDelegation, DELEGATIONS_COLLECTION: DELEGATIONS_COLLECTION2 } = await import("./delegation-
|
|
10353
|
+
const { issueDelegation, DELEGATIONS_COLLECTION: DELEGATIONS_COLLECTION2 } = await import("./delegation-SNALWRMO.js");
|
|
10231
10354
|
if (!this.keyring.kek) {
|
|
10232
10355
|
throw new ValidationError(
|
|
10233
10356
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
|
|
@@ -10245,7 +10368,7 @@ var Vault = class {
|
|
|
10245
10368
|
* if the id does not exist.
|
|
10246
10369
|
*/
|
|
10247
10370
|
async revokeDelegation(id) {
|
|
10248
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION: DELEGATIONS_COLLECTION2 } = await import("./delegation-
|
|
10371
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION: DELEGATIONS_COLLECTION2 } = await import("./delegation-SNALWRMO.js");
|
|
10249
10372
|
await revokeDelegation(this.adapter, this.name, id);
|
|
10250
10373
|
await this.onDirty?.(DELEGATIONS_COLLECTION2, id, "delete", 1);
|
|
10251
10374
|
}
|
|
@@ -10502,7 +10625,7 @@ var Vault = class {
|
|
|
10502
10625
|
* @see design-history/2026-05-22-schema-dump-design.md
|
|
10503
10626
|
*/
|
|
10504
10627
|
async dumpSchema(opts = {}) {
|
|
10505
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
10628
|
+
const { dumpVaultSchema } = await import("./walk-Z4N7PCZ2.js");
|
|
10506
10629
|
return dumpVaultSchema(this, opts);
|
|
10507
10630
|
}
|
|
10508
10631
|
/**
|
|
@@ -10598,7 +10721,7 @@ var Vault = class {
|
|
|
10598
10721
|
* separate vault instances now.
|
|
10599
10722
|
*/
|
|
10600
10723
|
async getPodHandle() {
|
|
10601
|
-
const { buildPodHandle } = await import("./pod-handle-
|
|
10724
|
+
const { buildPodHandle } = await import("./pod-handle-KBPQRN6Q.js");
|
|
10602
10725
|
return buildPodHandle(this.adapter, this.name);
|
|
10603
10726
|
}
|
|
10604
10727
|
/**
|
|
@@ -10630,7 +10753,7 @@ var Vault = class {
|
|
|
10630
10753
|
* both modes round-trip cleanly.
|
|
10631
10754
|
*/
|
|
10632
10755
|
async dump() {
|
|
10633
|
-
const { dumpVault } = await import("./backup-
|
|
10756
|
+
const { dumpVault } = await import("./backup-BHKVK5SD.js");
|
|
10634
10757
|
return dumpVault(this.backupContext());
|
|
10635
10758
|
}
|
|
10636
10759
|
/**
|
|
@@ -10718,7 +10841,7 @@ var Vault = class {
|
|
|
10718
10841
|
*/
|
|
10719
10842
|
async restoreTo(timestamp, options) {
|
|
10720
10843
|
const iso = timestamp instanceof Date ? timestamp.toISOString() : timestamp;
|
|
10721
|
-
const { restoreTo } = await import("./restore-to-
|
|
10844
|
+
const { restoreTo } = await import("./restore-to-VQHT67OH.js");
|
|
10722
10845
|
const instant = this.at(iso);
|
|
10723
10846
|
return restoreTo({
|
|
10724
10847
|
adapter: this.adapter,
|
|
@@ -10729,7 +10852,7 @@ var Vault = class {
|
|
|
10729
10852
|
}, iso, options);
|
|
10730
10853
|
}
|
|
10731
10854
|
async load(backupJson, options) {
|
|
10732
|
-
const { loadVault } = await import("./backup-
|
|
10855
|
+
const { loadVault } = await import("./backup-BHKVK5SD.js");
|
|
10733
10856
|
return loadVault(this.backupContext(), backupJson, options);
|
|
10734
10857
|
}
|
|
10735
10858
|
/**
|
|
@@ -10761,7 +10884,7 @@ var Vault = class {
|
|
|
10761
10884
|
* way to detect tampering of an in-place vault.
|
|
10762
10885
|
*/
|
|
10763
10886
|
async verifyBackupIntegrity() {
|
|
10764
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
10887
|
+
const { verifyBackupIntegrity } = await import("./backup-BHKVK5SD.js");
|
|
10765
10888
|
return verifyBackupIntegrity(this.backupContext());
|
|
10766
10889
|
}
|
|
10767
10890
|
/**
|
|
@@ -10877,17 +11000,24 @@ var Vault = class {
|
|
|
10877
11000
|
const dictionaries = dictSnapshotCache.get(collectionName);
|
|
10878
11001
|
if (granularity === "collection") {
|
|
10879
11002
|
const records = [];
|
|
11003
|
+
const chunkIds = [];
|
|
11004
|
+
const envelopeMeta = opts.withEnvelopeMeta === true ? [] : void 0;
|
|
10880
11005
|
for (const id of ids) {
|
|
10881
11006
|
const record = await coll.get(id, localeOpts);
|
|
10882
|
-
if (record
|
|
11007
|
+
if (record === null) continue;
|
|
11008
|
+
records.push(exportRedact(coll, record));
|
|
11009
|
+
chunkIds.push(id);
|
|
11010
|
+
if (envelopeMeta !== void 0) envelopeMeta.push(await readEnvelopeMeta(source, collectionName, id));
|
|
10883
11011
|
}
|
|
10884
11012
|
const chunk = {
|
|
10885
11013
|
collection: collectionName,
|
|
10886
11014
|
schema,
|
|
10887
11015
|
refs,
|
|
10888
11016
|
records,
|
|
11017
|
+
ids: chunkIds,
|
|
10889
11018
|
...dictionaries !== void 0 ? { dictionaries } : {},
|
|
10890
|
-
...ledgerHead ? { ledgerHead } : {}
|
|
11019
|
+
...ledgerHead ? { ledgerHead } : {},
|
|
11020
|
+
...envelopeMeta !== void 0 ? { envelopeMeta } : {}
|
|
10891
11021
|
};
|
|
10892
11022
|
yield chunk;
|
|
10893
11023
|
} else {
|
|
@@ -10899,8 +11029,10 @@ var Vault = class {
|
|
|
10899
11029
|
schema,
|
|
10900
11030
|
refs,
|
|
10901
11031
|
records: [exportRedact(coll, record)],
|
|
11032
|
+
ids: [id],
|
|
10902
11033
|
...dictionaries !== void 0 ? { dictionaries } : {},
|
|
10903
|
-
...ledgerHead ? { ledgerHead } : {}
|
|
11034
|
+
...ledgerHead ? { ledgerHead } : {},
|
|
11035
|
+
...opts.withEnvelopeMeta === true ? { envelopeMeta: [await readEnvelopeMeta(source, collectionName, id)] } : {}
|
|
10904
11036
|
};
|
|
10905
11037
|
yield chunk;
|
|
10906
11038
|
}
|
|
@@ -10991,7 +11123,7 @@ var Vault = class {
|
|
|
10991
11123
|
* is the live validator object, not a serialization of it).
|
|
10992
11124
|
*/
|
|
10993
11125
|
async exportJSON(opts = {}) {
|
|
10994
|
-
const { exportVaultJSON } = await import("./backup-
|
|
11126
|
+
const { exportVaultJSON } = await import("./backup-BHKVK5SD.js");
|
|
10995
11127
|
return exportVaultJSON(this.backupContext(), opts);
|
|
10996
11128
|
}
|
|
10997
11129
|
};
|
|
@@ -11878,8 +12010,9 @@ function memoryStore(options = {}) {
|
|
|
11878
12010
|
async put(vault, collection, id, envelope, expectedVersion) {
|
|
11879
12011
|
const c = coll(vault, collection);
|
|
11880
12012
|
const existing = c.get(id);
|
|
11881
|
-
|
|
11882
|
-
|
|
12013
|
+
const current = existing?._v ?? 0;
|
|
12014
|
+
if (expectedVersion !== void 0 && current !== expectedVersion) {
|
|
12015
|
+
throw new ConflictError(current, `Version conflict: expected ${expectedVersion}, found ${current}`);
|
|
11883
12016
|
}
|
|
11884
12017
|
c.set(id, envelope);
|
|
11885
12018
|
},
|
|
@@ -12522,7 +12655,7 @@ var TeamFacade = class {
|
|
|
12522
12655
|
async recoverManagedSecret(vault, options) {
|
|
12523
12656
|
if (this.deps.options.secretMode !== "managed") {
|
|
12524
12657
|
throw new ValidationError(
|
|
12525
|
-
"recoverManagedSecret: this method only applies to vaults opened in managed-secret mode. For standard mode, use db.recoverSecret."
|
|
12658
|
+
"recoverManagedSecret: this method only applies to vaults opened in managed-secret mode. For standard mode, use db.team.recoverSecret."
|
|
12526
12659
|
);
|
|
12527
12660
|
}
|
|
12528
12661
|
const provider = this.deps.options.sealingKey;
|
|
@@ -12537,7 +12670,7 @@ var TeamFacade = class {
|
|
|
12537
12670
|
for (let i = 0; i < randomBytes.length; i++) binary += String.fromCharCode(randomBytes[i]);
|
|
12538
12671
|
const newSecret = btoa(binary);
|
|
12539
12672
|
try {
|
|
12540
|
-
const sealed = await provider.seal(randomBytes);
|
|
12673
|
+
const sealed = await provider.seal(randomBytes, { vault });
|
|
12541
12674
|
await recoverSecret(
|
|
12542
12675
|
this.deps.options.shamirRecovery,
|
|
12543
12676
|
this.deps.options.store,
|
|
@@ -12582,7 +12715,7 @@ var TeamFacade = class {
|
|
|
12582
12715
|
* recovery / TOTP / email-OTP factor proof at the moment of
|
|
12583
12716
|
* recovery, so the issuer affirmatively re-asserts identity.
|
|
12584
12717
|
*
|
|
12585
|
-
* The recipient should call `db.rotateSecret` on first session
|
|
12718
|
+
* The recipient should call `db.team.rotateSecret` on first session
|
|
12586
12719
|
* to choose their own phrase — the temp acts as a single-use
|
|
12587
12720
|
* bridge.
|
|
12588
12721
|
*
|
|
@@ -12592,7 +12725,7 @@ var TeamFacade = class {
|
|
|
12592
12725
|
* secret: 'temporary-correct-horse-battery-staple-printer',
|
|
12593
12726
|
* }, { factors: [{ kind: 'recovery' }] })
|
|
12594
12727
|
* // Bob opens createNoydb({ user: 'bob', secret: tempPhrase })
|
|
12595
|
-
* // and immediately calls db.rotateSecret to set his own.
|
|
12728
|
+
* // and immediately calls db.team.rotateSecret to set his own.
|
|
12596
12729
|
* ```
|
|
12597
12730
|
*
|
|
12598
12731
|
* @throws `NoAccessError` when no keyring exists for the target.
|
|
@@ -13067,7 +13200,7 @@ var Noydb = class {
|
|
|
13067
13200
|
if (!facade) return;
|
|
13068
13201
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role, ...e.origin !== void 0 ? { origin: e.origin } : {} };
|
|
13069
13202
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
13070
|
-
const { GuardExecutor } = await import("./executor-
|
|
13203
|
+
const { GuardExecutor } = await import("./executor-BJZJNVBB.js");
|
|
13071
13204
|
for (const g of guards) {
|
|
13072
13205
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
13073
13206
|
}
|
|
@@ -13190,7 +13323,7 @@ var Noydb = class {
|
|
|
13190
13323
|
}
|
|
13191
13324
|
/** Uncached single-flight body of {@link openVault} — see `vaultOpening`. */
|
|
13192
13325
|
async #openVaultFresh(name, opts) {
|
|
13193
|
-
const keyring = await this._getKeyringInternal(name, { create: opts?.create !== false });
|
|
13326
|
+
const keyring = await this._getKeyringInternal(name, { create: opts?.create !== false, requireManagedRecovery: true });
|
|
13194
13327
|
if (!this.activeTier.has(name)) this.activeTier.set(name, 1);
|
|
13195
13328
|
if (this.options.encrypt !== false && !this.policyCache.has(name)) {
|
|
13196
13329
|
await this.bootstrapPolicy(name);
|
|
@@ -13989,7 +14122,7 @@ var Noydb = class {
|
|
|
13989
14122
|
}
|
|
13990
14123
|
/** The default store this instance was opened with (#948). */
|
|
13991
14124
|
get store() {
|
|
13992
|
-
return this.options.store;
|
|
14125
|
+
return unguardedStore(this.options.store);
|
|
13993
14126
|
}
|
|
13994
14127
|
/**
|
|
13995
14128
|
* Currently-running multi-record transaction, or `null` outside
|
|
@@ -14117,6 +14250,7 @@ var Noydb = class {
|
|
|
14117
14250
|
const t = normalizeSyncTargets(target)[0];
|
|
14118
14251
|
const declared = t.policy ?? this.options.syncPolicy;
|
|
14119
14252
|
const keyring = await this._getKeyringInternal(vault);
|
|
14253
|
+
if (this.options.encrypt !== false) await assertPeerKeyringMatches(this.options.store, t.store, vault, this.options.user);
|
|
14120
14254
|
const engine = this.strategies.sync.buildSyncEngine({
|
|
14121
14255
|
local: this.options.store,
|
|
14122
14256
|
remote: t.store,
|
|
@@ -14626,6 +14760,7 @@ var Noydb = class {
|
|
|
14626
14760
|
}
|
|
14627
14761
|
await this.strategies.sync.bootstrapKeyrings(this.options.store, normalizeSyncTargets(this.options.sync).find((t) => t.role === "sync-peer")?.store, vault);
|
|
14628
14762
|
await assertKeyringOpenAllowed(this.options.store, vault, this.options.user, opts.create);
|
|
14763
|
+
if (opts.requireManagedRecovery === true && this.options.secretMode === "managed" && !this._skipNextManagedRecoveryCheck && !await hasStrongRecoveryEnrolled(this.options.store, vault)) throw new ManagedRecoveryNotEnrolledError(vault);
|
|
14629
14764
|
const effectiveSecret = await resolveEffectiveSecret(this.options, this.options.store, vault);
|
|
14630
14765
|
if (!effectiveSecret) {
|
|
14631
14766
|
throw new ValidationError("A secret (secret) or getKeyring callback is required when encryption is enabled");
|
|
@@ -14635,10 +14770,10 @@ var Noydb = class {
|
|
|
14635
14770
|
keyring = await loadKeyring(this.options.store, vault, { userId: this.options.user, secret: effectiveSecret });
|
|
14636
14771
|
} catch (err) {
|
|
14637
14772
|
if (err instanceof NoAccessError) {
|
|
14638
|
-
keyring = await
|
|
14773
|
+
keyring = await createOwnerKeyringOrLoad(this.options.store, vault, ownerKeyringOptions(this.options, effectiveSecret));
|
|
14639
14774
|
} else if (err instanceof InvalidKeyError && this.options.onInvalidKey === "reset") {
|
|
14640
14775
|
await this.options.store.delete(vault, "_keyring", this.options.user);
|
|
14641
|
-
keyring = await
|
|
14776
|
+
keyring = await createOwnerKeyringOrLoad(this.options.store, vault, ownerKeyringOptions(this.options, effectiveSecret));
|
|
14642
14777
|
} else {
|
|
14643
14778
|
throw err;
|
|
14644
14779
|
}
|
|
@@ -14672,10 +14807,11 @@ var Noydb = class {
|
|
|
14672
14807
|
}
|
|
14673
14808
|
};
|
|
14674
14809
|
async function createNoydb(options) {
|
|
14675
|
-
|
|
14810
|
+
assertServicesSupported(options, capabilities());
|
|
14811
|
+
options = { ...options, store: guardStoreSegments(options.store ?? memoryStore()) };
|
|
14676
14812
|
validateSecretModeOptions(options);
|
|
14677
14813
|
if (!options.mesh) options = { ...options, mesh: await createDefaultMesh(options.store) };
|
|
14678
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
14814
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-QSEKT4KS.js")).createUserApi };
|
|
14679
14815
|
if (!options.policyFactory) {
|
|
14680
14816
|
const policyModule = await import("./policy/index.js");
|
|
14681
14817
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
@@ -14708,4 +14844,4 @@ export {
|
|
|
14708
14844
|
Noydb,
|
|
14709
14845
|
createNoydb
|
|
14710
14846
|
};
|
|
14711
|
-
//# sourceMappingURL=chunk-
|
|
14847
|
+
//# sourceMappingURL=chunk-AIHBYQHF.js.map
|