@noy-db/hub 0.8.0-pre.0 → 0.9.0-pre.0
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 +78 -0
- package/README.md +8 -8
- package/codemods/0.4.0-pre.json +1 -1
- package/codemods/0.8.0-pre.json +1 -1
- package/dist/api-MSJXVYQG.js +18 -0
- package/dist/as/index.js +34 -25
- package/dist/as/index.js.map +1 -1
- package/dist/at/index.js +9 -10
- package/dist/attestation/index.js +39 -28
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-7TFRVFLH.js → backup-7RKNZMQO.js} +15 -16
- package/dist/backup-7RKNZMQO.js.map +1 -0
- package/dist/blobs/index.js +13 -14
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +20 -13
- package/dist/broker/index.js.map +1 -1
- package/dist/by/index.js +2 -2
- package/dist/capsule/contract.d.ts +159 -0
- package/dist/capsule/contract.js +95 -0
- package/dist/capsule/enclave-aes/bound.d.ts +52 -0
- package/dist/{kernel/enclave → capsule/enclave-aes}/broker/proof.d.ts +12 -3
- package/dist/capsule/enclave-aes/capabilities.d.ts +2 -0
- package/dist/capsule/enclave-aes/classify/compare.d.ts +20 -0
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/find.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/reveal.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/verify.d.ts +2 -2
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/write.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/crypto.d.ts +33 -129
- package/dist/capsule/enclave-aes/index.d.ts +113 -0
- package/dist/capsule/enclave-aes/index.js +361 -0
- package/dist/capsule/enclave-aes/index.js.map +1 -0
- package/dist/capsule/enclave-aes/primitives.d.ts +29 -0
- package/dist/capsule/index.d.ts +27 -0
- package/dist/capsule/plumbing/ct-equal.d.ts +11 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/deterministic.d.ts +8 -21
- package/dist/capsule/plumbing/digest.d.ts +122 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/envelope-body.d.ts +44 -48
- package/dist/capsule/plumbing/index.d.ts +100 -0
- package/dist/capsule/plumbing/lifecycle.d.ts +50 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/record-codec.d.ts +62 -20
- package/dist/{kernel/enclave → capsule/plumbing}/record-envelope.d.ts +1 -1
- package/dist/capsule/plumbing/rekey-blob.d.ts +33 -0
- package/dist/capsule/plumbing/rekey.d.ts +44 -0
- package/dist/capsule/plumbing/sealed-slot.d.ts +22 -0
- package/dist/capsule/plumbing/sealed-slots.d.ts +37 -0
- package/dist/capsule/plumbing/sealing.d.ts +29 -0
- package/dist/capsule/plumbing/sign.d.ts +9 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/tombstone.d.ts +2 -2
- package/dist/capsule-57BDK7LG.js +209 -0
- package/dist/cargo/index.js +36 -36
- package/dist/{chunk-BUDAGWL5.js → chunk-226V6XXJ.js} +41 -6
- package/dist/chunk-226V6XXJ.js.map +1 -0
- package/dist/{chunk-QWGU66MP.js → chunk-2A56DSRI.js} +5 -7
- package/dist/chunk-2A56DSRI.js.map +1 -0
- package/dist/chunk-2DX4JCRI.js +1 -0
- package/dist/{chunk-ODVPTDPK.js → chunk-2ELOCEXE.js} +1 -1
- package/dist/chunk-2ELOCEXE.js.map +1 -0
- package/dist/{chunk-CKNGS5MH.js → chunk-2WJKJZSO.js} +3 -5
- package/dist/chunk-2WJKJZSO.js.map +1 -0
- package/dist/{chunk-ZSX4S5XB.js → chunk-2ZFD2UJC.js} +9 -9
- package/dist/{chunk-YSK2CU2Q.js → chunk-3V6LZHUO.js} +3 -3
- package/dist/chunk-3V6LZHUO.js.map +1 -0
- package/dist/{chunk-HT2AHGQI.js → chunk-3Y5JLSXS.js} +2 -2
- package/dist/{chunk-M7NI3IWE.js → chunk-45VHWE4C.js} +67 -60
- package/dist/chunk-45VHWE4C.js.map +1 -0
- package/dist/{chunk-LGNDFRYC.js → chunk-4CFHL5RY.js} +1 -1
- package/dist/chunk-4CFHL5RY.js.map +1 -0
- package/dist/{enclave-27SMF6GF.js → chunk-4J3MNVVX.js} +83 -56
- package/dist/chunk-4J3MNVVX.js.map +1 -0
- package/dist/{chunk-SI3V7D4G.js → chunk-4UIP3QNW.js} +2 -2
- package/dist/{chunk-WNJ4AVGE.js → chunk-55P6OBB7.js} +2 -2
- package/dist/{chunk-6LNL42F5.js → chunk-5HNW4ZTA.js} +12 -15
- package/dist/chunk-5HNW4ZTA.js.map +1 -0
- package/dist/{chunk-SYVZW77S.js → chunk-5LMCVBMY.js} +6 -8
- package/dist/chunk-5LMCVBMY.js.map +1 -0
- package/dist/{chunk-MKXXMNJH.js → chunk-5UUJE4FP.js} +3 -3
- package/dist/chunk-5XONHAFD.js +12 -0
- package/dist/chunk-5XONHAFD.js.map +1 -0
- package/dist/{chunk-X4773RBR.js → chunk-6QLCS7ET.js} +2 -2
- package/dist/chunk-6QLCS7ET.js.map +1 -0
- package/dist/{chunk-FW22ZCXT.js → chunk-6WS35E6X.js} +2 -2
- package/dist/{chunk-FCKWQE2H.js → chunk-6Y5E4SJU.js} +7 -8
- package/dist/chunk-6Y5E4SJU.js.map +1 -0
- package/dist/{chunk-4AF3TUMP.js → chunk-72XBVN4J.js} +8 -2
- package/dist/{chunk-4AF3TUMP.js.map → chunk-72XBVN4J.js.map} +1 -1
- package/dist/{chunk-QBBUZ3I3.js → chunk-7BMOS4JQ.js} +11 -11
- package/dist/chunk-7BMOS4JQ.js.map +1 -0
- package/dist/{chunk-5FDLC6G7.js → chunk-7CT6SX4M.js} +3 -3
- package/dist/chunk-7CT6SX4M.js.map +1 -0
- package/dist/{chunk-LQ4ZHOKP.js → chunk-ABU6A4Z5.js} +36 -27
- package/dist/chunk-ABU6A4Z5.js.map +1 -0
- package/dist/{chunk-WX5ADGTZ.js → chunk-AJFPAHMW.js} +3 -3
- package/dist/chunk-AJFPAHMW.js.map +1 -0
- package/dist/{chunk-ZE4CHIED.js → chunk-APFFJN5T.js} +39 -37
- package/dist/chunk-APFFJN5T.js.map +1 -0
- package/dist/{chunk-6OWXYZK2.js → chunk-B65CC6Z6.js} +2 -2
- package/dist/{chunk-F2TDU7MQ.js → chunk-BJH77UY2.js} +2 -2
- package/dist/{chunk-L7DOS3TE.js → chunk-BMHQHH7Q.js} +3 -3
- package/dist/chunk-BMHQHH7Q.js.map +1 -0
- package/dist/{chunk-BJ2IXQ5Q.js → chunk-BNFNQNEP.js} +2 -2
- package/dist/chunk-BU2ABHFW.js +74 -0
- package/dist/chunk-BU2ABHFW.js.map +1 -0
- package/dist/{chunk-HLEK5VAN.js → chunk-BUE7R3B5.js} +2 -2
- package/dist/{chunk-ISZQJBML.js → chunk-BVF3SXD7.js} +6 -6
- package/dist/chunk-BVF3SXD7.js.map +1 -0
- package/dist/{chunk-M522UYZ2.js → chunk-BYHCKX73.js} +6 -10
- package/dist/chunk-BYHCKX73.js.map +1 -0
- package/dist/{chunk-EOVMT6TB.js → chunk-C53ER7AG.js} +2 -2
- package/dist/{chunk-K6W7BVZ6.js → chunk-CAD7N6HQ.js} +3 -3
- package/dist/chunk-CB4467G3.js +565 -0
- package/dist/chunk-CB4467G3.js.map +1 -0
- package/dist/{chunk-NWHBJQAL.js → chunk-D4V5JJAK.js} +4 -4
- package/dist/chunk-D4V5JJAK.js.map +1 -0
- package/dist/{chunk-QWFHIOD2.js → chunk-D5A3GCZ4.js} +11 -12
- package/dist/chunk-D5A3GCZ4.js.map +1 -0
- package/dist/{chunk-5O7D6ZTW.js → chunk-DHU2AQ6T.js} +2 -2
- package/dist/{chunk-DC5QVPV7.js → chunk-DL6BZKP3.js} +3 -3
- package/dist/chunk-DL6BZKP3.js.map +1 -0
- package/dist/{chunk-FQ54DWUQ.js → chunk-EA4VDI5D.js} +4 -4
- package/dist/chunk-EA4VDI5D.js.map +1 -0
- package/dist/{chunk-IT22PWKV.js → chunk-ECGXA4LT.js} +2 -2
- package/dist/{chunk-BP6DARYA.js → chunk-EMAWOGVH.js} +4 -4
- package/dist/chunk-EMAWOGVH.js.map +1 -0
- package/dist/{chunk-3F7GLNAE.js → chunk-EUD3HQM4.js} +7 -11
- package/dist/chunk-EUD3HQM4.js.map +1 -0
- package/dist/{chunk-T2LBQ5DV.js → chunk-FSQNGPHH.js} +335 -250
- package/dist/chunk-FSQNGPHH.js.map +1 -0
- package/dist/{chunk-7VCXZDA4.js → chunk-FZXRLNJO.js} +7 -11
- package/dist/chunk-FZXRLNJO.js.map +1 -0
- package/dist/{chunk-6LMQ5R26.js → chunk-G46JSSVX.js} +7 -7
- package/dist/{chunk-6LMQ5R26.js.map → chunk-G46JSSVX.js.map} +1 -1
- package/dist/{chunk-GF5BZ7D4.js → chunk-G5EDYVSE.js} +11 -13
- package/dist/chunk-G5EDYVSE.js.map +1 -0
- package/dist/chunk-G66YXUTY.js +60 -0
- package/dist/chunk-G66YXUTY.js.map +1 -0
- package/dist/{chunk-FFWI7UH7.js → chunk-GAGT3YZN.js} +1 -1
- package/dist/chunk-GAGT3YZN.js.map +1 -0
- package/dist/{chunk-4MXI3ODD.js → chunk-GCUMOKTN.js} +3 -3
- package/dist/{chunk-FH2L2E34.js → chunk-GETUTTZU.js} +4 -4
- package/dist/{chunk-FH2L2E34.js.map → chunk-GETUTTZU.js.map} +1 -1
- package/dist/chunk-GMKGGY7V.js +234 -0
- package/dist/chunk-GMKGGY7V.js.map +1 -0
- package/dist/{chunk-B6SJIBQK.js → chunk-GOJQ5DZA.js} +4 -4
- package/dist/{chunk-EIPVYUEP.js → chunk-GQ4MF3CM.js} +3 -3
- package/dist/chunk-GQ4MF3CM.js.map +1 -0
- package/dist/{chunk-PDCG6PR5.js → chunk-GRS2HIV6.js} +2 -2
- package/dist/chunk-GRS2HIV6.js.map +1 -0
- package/dist/{chunk-PEOZ34EM.js → chunk-GSAK56VF.js} +1 -1
- package/dist/chunk-GSAK56VF.js.map +1 -0
- package/dist/{chunk-3H5KLDZN.js → chunk-H3YM66EI.js} +4 -8
- package/dist/chunk-H3YM66EI.js.map +1 -0
- package/dist/{chunk-NRT6QZQB.js → chunk-IVMFIKNA.js} +6 -6
- package/dist/chunk-IVMFIKNA.js.map +1 -0
- package/dist/{chunk-PSIV7CJV.js → chunk-J4KAPKBJ.js} +2 -2
- package/dist/chunk-J4KAPKBJ.js.map +1 -0
- package/dist/{chunk-N5DNADLQ.js → chunk-JA25QG5M.js} +224 -34
- package/dist/chunk-JA25QG5M.js.map +1 -0
- package/dist/{chunk-T7IR4N2S.js → chunk-JBMMWYOH.js} +3 -1
- package/dist/{chunk-T7IR4N2S.js.map → chunk-JBMMWYOH.js.map} +1 -1
- package/dist/{chunk-YNIUIERI.js → chunk-JPSL5GIZ.js} +18 -59
- package/dist/chunk-JPSL5GIZ.js.map +1 -0
- package/dist/{chunk-TKUOEU2F.js → chunk-JSWKVZCR.js} +2 -2
- package/dist/chunk-JZ4EDEIP.js +22 -0
- package/dist/chunk-JZ4EDEIP.js.map +1 -0
- package/dist/{chunk-QOOUUR4A.js → chunk-K673OO6B.js} +10 -4
- package/dist/chunk-K673OO6B.js.map +1 -0
- package/dist/{chunk-NNARWO72.js → chunk-K7RW7FI4.js} +13 -12
- package/dist/chunk-K7RW7FI4.js.map +1 -0
- package/dist/{chunk-ZXABPVM6.js → chunk-L2F3CFCH.js} +9 -13
- package/dist/chunk-L2F3CFCH.js.map +1 -0
- package/dist/{chunk-X25NWUZB.js → chunk-L5A3KR7R.js} +3 -3
- package/dist/{chunk-T52GX4SA.js → chunk-LGGIFKJP.js} +4 -4
- package/dist/{chunk-ID6Z6E66.js → chunk-MQ7YWBQ5.js} +2 -2
- package/dist/{chunk-FXQBGFOX.js → chunk-MRJDLXI3.js} +14 -8
- package/dist/{chunk-FXQBGFOX.js.map → chunk-MRJDLXI3.js.map} +1 -1
- package/dist/chunk-NH2UOV3B.js +18 -0
- package/dist/chunk-NH2UOV3B.js.map +1 -0
- package/dist/{chunk-FN5EBVTQ.js → chunk-NIXRB5BP.js} +2 -2
- package/dist/{chunk-RHVMZSUU.js → chunk-NV4OESHC.js} +1 -1
- package/dist/chunk-NV4OESHC.js.map +1 -0
- package/dist/{chunk-HBRLNOHL.js → chunk-NYJBYVBG.js} +4 -4
- package/dist/{chunk-DF73H4UN.js → chunk-NZULV7LK.js} +5 -5
- package/dist/chunk-NZULV7LK.js.map +1 -0
- package/dist/{chunk-HK67PX4J.js → chunk-OFD2HD6F.js} +1 -1
- package/dist/chunk-OFD2HD6F.js.map +1 -0
- package/dist/{chunk-WY2XXTET.js → chunk-OJU67C23.js} +4 -4
- package/dist/{chunk-WY2XXTET.js.map → chunk-OJU67C23.js.map} +1 -1
- package/dist/{chunk-ZUVBC32X.js → chunk-OK57EATL.js} +2 -2
- package/dist/{chunk-KJFW62P4.js → chunk-OM3SEDI4.js} +652 -662
- package/dist/chunk-OM3SEDI4.js.map +1 -0
- package/dist/{chunk-TOPYQ6GA.js → chunk-PCYPXLEX.js} +6 -6
- package/dist/{chunk-GYGLAVCX.js → chunk-PFCTSXHU.js} +6 -2
- package/dist/chunk-PFCTSXHU.js.map +1 -0
- package/dist/{chunk-VNNRUGMM.js → chunk-PGC35KXE.js} +2 -2
- package/dist/{chunk-4I522ERM.js → chunk-PT2YCQVK.js} +4 -4
- package/dist/{chunk-Z5HTYMMQ.js → chunk-PTJY5R3O.js} +2 -2
- package/dist/chunk-PUBI455O.js +157 -0
- package/dist/chunk-PUBI455O.js.map +1 -0
- package/dist/{chunk-MTL7MXGR.js → chunk-QDHHHI5Q.js} +16 -17
- package/dist/chunk-QDHHHI5Q.js.map +1 -0
- package/dist/{chunk-F24ZZTHQ.js → chunk-QGFEBNHO.js} +4 -4
- package/dist/{chunk-A6IJU4TK.js → chunk-QGSNJD3B.js} +2 -2
- package/dist/chunk-QJNAHPVT.js +91 -0
- package/dist/chunk-QJNAHPVT.js.map +1 -0
- package/dist/{chunk-BK2HHQGN.js → chunk-QSHATAXJ.js} +2 -2
- package/dist/{chunk-ANWPSTZU.js → chunk-QXJXG7DN.js} +57 -30
- package/dist/chunk-QXJXG7DN.js.map +1 -0
- package/dist/{chunk-HBPPGWUM.js → chunk-RDOEOPOI.js} +14 -9
- package/dist/chunk-RDOEOPOI.js.map +1 -0
- package/dist/{chunk-JCN44NCY.js → chunk-RIZTZJX6.js} +2 -2
- package/dist/{chunk-MVZ2TPVP.js → chunk-RNACRT5H.js} +2 -2
- package/dist/chunk-RWFQVNXR.js +24 -0
- package/dist/chunk-RWFQVNXR.js.map +1 -0
- package/dist/{chunk-TROR3ALR.js → chunk-SFCD6OU7.js} +2 -2
- package/dist/{chunk-S57HTZ6X.js → chunk-SNM7LSYG.js} +5 -8
- package/dist/chunk-SNM7LSYG.js.map +1 -0
- package/dist/chunk-SPPOUJLN.js +40 -0
- package/dist/chunk-SPPOUJLN.js.map +1 -0
- package/dist/{chunk-3ELRMVJK.js → chunk-SWXLZ4HX.js} +31 -35
- package/dist/chunk-SWXLZ4HX.js.map +1 -0
- package/dist/{chunk-6B3VNR4P.js → chunk-TFWFPZRU.js} +26 -35
- package/dist/chunk-TFWFPZRU.js.map +1 -0
- package/dist/{chunk-F7XGHL5O.js → chunk-TMIJAR2X.js} +3 -3
- package/dist/{chunk-F7XGHL5O.js.map → chunk-TMIJAR2X.js.map} +1 -1
- package/dist/{chunk-I3JDRCMW.js → chunk-TZYTMZZY.js} +10 -10
- package/dist/{chunk-AOWGXU6D.js → chunk-UAKY6E4N.js} +2 -2
- package/dist/chunk-UHFGK6YA.js +40 -0
- package/dist/chunk-UHFGK6YA.js.map +1 -0
- package/dist/{chunk-3JWHAR6E.js → chunk-UNSQZSZP.js} +2 -2
- package/dist/{chunk-FQ5VRHIB.js → chunk-UOZOWN73.js} +5 -9
- package/dist/chunk-UOZOWN73.js.map +1 -0
- package/dist/{chunk-GHLTDZRS.js → chunk-V55JASXO.js} +25 -4
- package/dist/chunk-V55JASXO.js.map +1 -0
- package/dist/{chunk-244VXYPG.js → chunk-VSUQI5Q6.js} +45 -4
- package/dist/chunk-VSUQI5Q6.js.map +1 -0
- package/dist/{chunk-6K7DPM7D.js → chunk-WFWFXDNS.js} +2 -2
- package/dist/{chunk-CF5UU4S7.js → chunk-WHOKGHJ3.js} +7 -7
- package/dist/{chunk-LGRLME4M.js → chunk-X2RP4TO5.js} +16 -16
- package/dist/chunk-X2RP4TO5.js.map +1 -0
- package/dist/{chunk-VNPEWFPD.js → chunk-XA34THLF.js} +8 -6
- package/dist/chunk-XA34THLF.js.map +1 -0
- package/dist/{chunk-HVSCEIYL.js → chunk-XITHENBI.js} +12 -14
- package/dist/chunk-XITHENBI.js.map +1 -0
- package/dist/{chunk-ENAG3IY7.js → chunk-XKBTJGFP.js} +26 -28
- package/dist/chunk-XKBTJGFP.js.map +1 -0
- package/dist/{chunk-32YV3TJT.js → chunk-XXNWU5QZ.js} +2 -2
- package/dist/{chunk-B57AFBY2.js → chunk-XXQ5XIYY.js} +2 -2
- package/dist/{chunk-ORDURZBU.js → chunk-YFFMPZPY.js} +2 -2
- package/dist/{chunk-MDWKM2XC.js → chunk-YKGJ44Z7.js} +3 -3
- package/dist/{chunk-IUWCVHQ7.js → chunk-YQFBH5ZJ.js} +4 -4
- package/dist/{chunk-IUWCVHQ7.js.map → chunk-YQFBH5ZJ.js.map} +1 -1
- package/dist/{chunk-UPD5NWI5.js → chunk-Z3ZXVB2Y.js} +29 -16
- package/dist/chunk-Z3ZXVB2Y.js.map +1 -0
- package/dist/chunk-ZBUAX4EF.js +27 -0
- package/dist/chunk-ZBUAX4EF.js.map +1 -0
- package/dist/{chunk-MLPHLJIQ.js → chunk-ZHQJAV6D.js} +2 -2
- package/dist/{chunk-UD5EVGZ7.js → chunk-ZMVSKYTJ.js} +56 -96
- package/dist/chunk-ZMVSKYTJ.js.map +1 -0
- package/dist/{chunk-7JE7BDYJ.js → chunk-ZVSKSUGI.js} +5 -5
- package/dist/{chunk-J6UOHJY5.js → chunk-ZWF3EWZA.js} +4 -8
- package/dist/chunk-ZWF3EWZA.js.map +1 -0
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-W3USLL5M.js → classified-marker-KHDOYIJB.js} +3 -3
- package/dist/classified-marker-KHDOYIJB.js.map +1 -0
- package/dist/collection-facade-LZIF7GWD.js +41 -0
- package/dist/{computed-TPFBX7U4.js → computed-XMFTHAXV.js} +3 -3
- package/dist/consent/index.js +10 -11
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +9 -10
- package/dist/coverage/index.js +1 -1
- package/dist/custody/index.js +13 -13
- package/dist/{dead-filter-U2UYKSZL.js → dead-filter-CXV5NS67.js} +11 -3
- package/dist/dead-filter-CXV5NS67.js.map +1 -0
- package/dist/debug/index.js +11 -2
- package/dist/debug/index.js.map +1 -1
- package/dist/{delegation-S3AEPW2T.js → delegation-ONLM4JFI.js} +52 -31
- package/dist/delegation-ONLM4JFI.js.map +1 -0
- package/dist/derivations/index.js +25 -25
- package/dist/derive-3YSIS36W.js +20 -0
- package/dist/directory/index.js +10 -11
- package/dist/{dispatch-RH4LHKBH.js → dispatch-2MQFMEGY.js} +22 -23
- package/dist/dispatch-2MQFMEGY.js.map +1 -0
- package/dist/{dispatch-3CQDJV5Q.js → dispatch-OFDA4WQV.js} +5 -5
- package/dist/executor-E6YDJ7YA.js +8 -0
- package/dist/executor-NJX3YQQ4.js +35 -0
- package/dist/executor-WWM3DD4P.js +8 -0
- package/dist/export-accessible-RLHU5G4W.js +22 -0
- package/dist/extract-partition-QII2EDCS.js +35 -0
- package/dist/{fanout-sidecar-OT6RYLOL.js → fanout-sidecar-BO67PCPO.js} +13 -15
- package/dist/fanout-sidecar-BO67PCPO.js.map +1 -0
- package/dist/find-6M7GYDUZ.js +10 -0
- package/dist/forget/index.js +26 -10
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +13 -14
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +14 -15
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +15 -13
- package/dist/index.js +198 -187
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +6 -6
- package/dist/introspection/index.js +16 -13
- package/dist/issue-LPEEEMPP.js +19 -0
- package/dist/kernel/attestation-types.d.ts +62 -0
- package/dist/kernel/cache/index.d.ts +1 -1
- package/dist/kernel/collection-config.d.ts +1 -48
- package/dist/kernel/collection.d.ts +2 -1
- package/dist/kernel/cutover-transform.d.ts +1 -1
- package/dist/kernel/errors.d.ts +63 -6
- package/dist/kernel/export-scope.d.ts +40 -0
- package/dist/kernel/merge-authority.d.ts +1 -1
- package/dist/kernel/noydb.d.ts +3 -1
- package/dist/kernel/paths.d.ts +29 -5
- package/dist/kernel/prepared-write.d.ts +1 -1
- package/dist/kernel/put-many-atomic.d.ts +1 -1
- package/dist/kernel/query/live/live.d.ts +2 -1
- package/dist/kernel/query/sort-key.d.ts +0 -2
- package/dist/kernel/secret-mode.d.ts +1 -1
- package/dist/kernel/tx-write-gate.d.ts +2 -4
- package/dist/kernel/types.d.ts +135 -11
- package/dist/kernel/validation.d.ts +0 -10
- package/dist/kernel/vault.d.ts +6 -2
- package/dist/kernel/via/reconcile.d.ts +1 -42
- package/dist/kernel/write-queue.d.ts +17 -0
- package/dist/{ledger-KZPCMVZY.js → ledger-MSJGWKGW.js} +11 -12
- package/dist/liberate-LEKDYKTC.js +25 -0
- package/dist/link-set-QXXSPPHL.js +29 -0
- package/dist/{managed-secret-S3MQ6SH6.js → managed-secret-VSK7ANQI.js} +10 -11
- package/dist/materialized-views/index.js +27 -28
- package/dist/{migrate-cek-V7GKJZ7O.js → migrate-cek-GEBFYBDC.js} +2 -2
- package/dist/money/index.js +5 -5
- package/dist/noydb-F2AUF6KL.js +98 -0
- package/dist/on/index.js +25 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -13
- package/dist/pod/index.js +76 -74
- package/dist/{pod-handle-WGDFB4C2.js → pod-handle-YE7CT66T.js} +10 -11
- package/dist/pod-handle-YE7CT66T.js.map +1 -0
- package/dist/policy/index.js +10 -11
- package/dist/port/as/active.d.ts +4 -0
- package/dist/port/as/index.d.ts +1 -0
- package/dist/port/by/index.d.ts +14 -5
- package/dist/port/on/index.d.ts +27 -1
- package/dist/port/to/index.d.ts +1 -1
- package/dist/port/with/blob-strategy.d.ts +1 -1
- package/dist/port/with/broker-strategy.d.ts +14 -0
- package/dist/port/with/classified-strategy.d.ts +1 -1
- package/dist/port/with/collection-options.d.ts +1 -1
- package/dist/port/with/collection-registries.d.ts +1 -1
- package/dist/port/with/coverage-strategy.d.ts +17 -1
- package/dist/port/with/formats-strategy.d.ts +34 -1
- package/dist/port/with/lookup-strategy.d.ts +87 -6
- package/dist/port/with/service-bus.d.ts +2 -1
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-SLSXIPBV.js → post-register-QC5TEAW3.js} +6 -6
- package/dist/post-register-QC5TEAW3.js.map +1 -0
- package/dist/query/all/index.js +16 -16
- package/dist/query/index.js +8 -8
- package/dist/query/live/index.js +7 -7
- package/dist/query/reduce/index.js +10 -10
- package/dist/query/relate/index.js +10 -10
- package/dist/reduce/index.js +8 -8
- package/dist/register-SN72QALV.js +30 -0
- package/dist/registry-253FF7C6.js +35 -0
- package/dist/registry-3AZWQTDT.js +23 -0
- package/dist/registry-7UEBTHWG.js +8 -0
- package/dist/registry-IVJ67NFQ.js +8 -0
- package/dist/request-withdrawal-UKVJZKX2.js +28 -0
- package/dist/{reveal-4BCKPEC2.js → reveal-YQTRNQFH.js} +10 -9
- package/dist/reveal-YQTRNQFH.js.map +1 -0
- package/dist/revoke-G2KXJQA5.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +16 -18
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +4 -4
- package/dist/{seed-4JS2RJ4A.js → seed-JMQTRKRE.js} +125 -34
- package/dist/seed-JMQTRKRE.js.map +1 -0
- package/dist/sequence/index.js +9 -10
- package/dist/session/index.js +9 -10
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +2 -2
- package/dist/signer-IUIYR3CX.js +23 -0
- package/dist/snapshots/index.js +11 -11
- package/dist/stale-SKV33PBU.js +28 -0
- package/dist/storage-NPBYP2SM.js +21 -0
- package/dist/store/index.js +1 -1
- package/dist/{store-coordination-provider-2O2VUHKW.js → store-coordination-provider-Z6HKPOGM.js} +11 -12
- package/dist/store-coordination-provider-Z6HKPOGM.js.map +1 -0
- package/dist/sync/index.js +18 -13
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +18 -17
- package/dist/tiers/index.js +11 -12
- package/dist/to/index.js +2 -2
- package/dist/transactions/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/vault-head/index.js +11 -14
- package/dist/vault-head/index.js.map +1 -1
- package/dist/{verify-RVT67IMH.js → verify-KWQIWLGH.js} +14 -12
- package/dist/verify-KWQIWLGH.js.map +1 -0
- package/dist/via/classified/binding.d.ts +2 -2
- package/dist/via/classified/config-drift.d.ts +2 -2
- package/dist/via/classified/errors.d.ts +1 -1
- package/dist/via/classified/presets.d.ts +29 -0
- package/dist/via/classified/resolve.d.ts +7 -0
- package/dist/via/geo/binding.d.ts +0 -4
- package/dist/via/lookup/handle.d.ts +4 -4
- package/dist/via/lookup/index.d.ts +32 -0
- package/dist/via/money/binding.d.ts +0 -9
- package/dist/walk-F4OLXI5H.js +20 -0
- package/dist/with-audit/attestation/index.d.ts +2 -1
- package/dist/with-audit/attestation/issue.d.ts +2 -2
- package/dist/with-audit/attestation/revoke.d.ts +2 -2
- package/dist/with-audit/attestation/scheme.d.ts +7 -0
- package/dist/with-audit/attestation/signer.d.ts +1 -1
- package/dist/with-audit/attestation/strategy.d.ts +4 -3
- package/dist/with-audit/attestation/types.d.ts +10 -0
- package/dist/with-audit/attestation/vault-facade.d.ts +9 -2
- package/dist/with-audit/attestation/verifier.d.ts +6 -0
- package/dist/with-audit/consent/consent.d.ts +1 -1
- package/dist/with-audit/consent/strategy.d.ts +1 -1
- package/dist/with-audit/forget/completeness.d.ts +66 -0
- package/dist/with-audit/forget/index.d.ts +2 -0
- package/dist/with-audit/forget/strategy.d.ts +65 -0
- package/dist/with-audit/forget/subject-index.d.ts +1 -1
- package/dist/with-audit/periods/periods.d.ts +0 -9
- package/dist/with-audit/periods/reserved-collections.d.ts +7 -0
- package/dist/with-audit/periods/vault-facade.d.ts +1 -1
- package/dist/with-audit/portability/request-withdrawal.d.ts +0 -1
- package/dist/with-audit/portability/withdraw-accessible.d.ts +0 -1
- package/dist/with-audit/sealed-record/index.d.ts +2 -2
- package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
- package/dist/with-audit/tiers/index.d.ts +3 -3
- package/dist/with-audit/tiers/strategy.d.ts +19 -0
- package/dist/with-cargo/adopt-partition.d.ts +1 -1
- package/dist/with-cargo/extract-partition.d.ts +1 -47
- package/dist/with-cargo/floor.d.ts +1 -1
- package/dist/with-commit/history/history.d.ts +2 -2
- package/dist/with-commit/history/index.d.ts +1 -1
- package/dist/with-commit/history/ledger/store.d.ts +1 -1
- package/dist/with-commit/history/strategy.d.ts +1 -1
- package/dist/with-commit/history/time-machine.d.ts +1 -1
- package/dist/with-commit/numbering/index.d.ts +1 -3
- package/dist/with-commit/sequence/index.d.ts +1 -1
- package/dist/with-commit/tx/transaction.d.ts +2 -24
- package/dist/with-commit/vault-head/head.d.ts +1 -1
- package/dist/with-commit/vault-head/index.d.ts +1 -1
- package/dist/with-commit/vault-head/strategy.d.ts +8 -1
- package/dist/with-commit/vault-head/verify.d.ts +1 -1
- package/dist/with-fork/snapshots/noydb-facade.d.ts +7 -0
- package/dist/with-formula/derivations/dispatch.d.ts +1 -1
- package/dist/with-formula/derivations/fanout-sidecar.d.ts +1 -1
- package/dist/with-formula/derivations/trigger-match.d.ts +8 -5
- package/dist/with-formula/materialized-views/emit-memo.d.ts +0 -2
- package/dist/with-lookup/embeddings/index.d.ts +1 -2
- package/dist/with-lookup/indexing/collection-facade.d.ts +2 -16
- package/dist/with-lookup/indexing/eager-indexes.d.ts +2 -1
- package/dist/with-lookup/search/collection-facade.d.ts +1 -13
- package/dist/with-party/broker/index.d.ts +4 -4
- package/dist/with-party/broker/seed.d.ts +25 -10
- package/dist/with-party/directory/user-envelope/storage.d.ts +1 -1
- package/dist/with-party/policy/noydb-facade.d.ts +1 -31
- package/dist/with-party/team/delegation.d.ts +59 -3
- package/dist/with-party/team/echo-secret.d.ts +2 -4
- package/dist/with-party/team/index.d.ts +1 -1
- package/dist/with-party/team/keyring.d.ts +2 -22
- package/dist/with-party/team/magic-link-grant.d.ts +12 -2
- package/dist/with-party/team/noydb-facade.d.ts +5 -0
- package/dist/with-party/team/recovery.d.ts +1 -1
- package/dist/with-party/team/reserved-secret-collections.d.ts +10 -8
- package/dist/with-party/team/roster-tag.d.ts +43 -2
- package/dist/with-party/team/rotate-recover.d.ts +1 -1
- package/dist/with-party/team/tiers.d.ts +36 -5
- package/dist/with-party/team/wrapped-deks.d.ts +1 -1
- package/dist/with-pod/index.d.ts +1 -1
- package/dist/with-shape/blobs/blob-compaction.d.ts +1 -1
- package/dist/with-shape/blobs/blob-intent.d.ts +1 -1
- package/dist/with-shape/blobs/blob-set.d.ts +25 -2
- package/dist/with-shape/blobs/legacy-sweep.d.ts +17 -1
- package/dist/with-shape/introspection/describe.d.ts +2 -3
- package/dist/with-shape/introspection/index.d.ts +1 -0
- package/dist/with-shape/introspection/types.d.ts +2 -1
- package/dist/with-shape/introspection/walk.d.ts +1 -1
- package/dist/with-shape/links/lazy-handle.d.ts +1 -1
- package/dist/with-shape/links/link-set.d.ts +1 -1
- package/dist/with-shape/manifest/derive.d.ts +1 -1
- package/dist/with-shape/manifest/storage.d.ts +1 -1
- package/dist/with-shape/persisted-schemas/register.d.ts +1 -1
- package/dist/with-shape/persisted-schemas/storage.d.ts +1 -1
- package/dist/with-shape/satellites/dead-filter.d.ts +1 -1
- package/dist/with-shape/satellites/declare.d.ts +1 -1
- package/dist/with-shape/satellites/marker.d.ts +1 -1
- package/dist/with-shape/satellites/post-register.d.ts +1 -1
- package/dist/with-shape/schema-update/fence.d.ts +7 -0
- package/dist/with-sync/engine.d.ts +30 -1
- package/dist/with-sync/presence.d.ts +5 -10
- package/dist/with-sync/reserved-mirror.d.ts +89 -0
- package/dist/with-sync/strategy.d.ts +7 -0
- package/dist/with-sync/tab-write-relay.d.ts +0 -10
- package/dist/withdraw-accessible-ZKPLZ66E.js +25 -0
- package/dist/withdraw-accessible-ZKPLZ66E.js.map +1 -0
- package/package.json +14 -5
- package/dist/api-GVYEKSJE.js +0 -19
- package/dist/backup-7TFRVFLH.js.map +0 -1
- package/dist/chunk-244VXYPG.js.map +0 -1
- package/dist/chunk-3ELRMVJK.js.map +0 -1
- package/dist/chunk-3F7GLNAE.js.map +0 -1
- package/dist/chunk-3H5KLDZN.js.map +0 -1
- package/dist/chunk-5FDLC6G7.js.map +0 -1
- package/dist/chunk-6B3VNR4P.js.map +0 -1
- package/dist/chunk-6LNL42F5.js.map +0 -1
- package/dist/chunk-6QSQQLSE.js +0 -95
- package/dist/chunk-6QSQQLSE.js.map +0 -1
- package/dist/chunk-7VCXZDA4.js.map +0 -1
- package/dist/chunk-ANWPSTZU.js.map +0 -1
- package/dist/chunk-BP6DARYA.js.map +0 -1
- package/dist/chunk-BUDAGWL5.js.map +0 -1
- package/dist/chunk-CKNGS5MH.js.map +0 -1
- package/dist/chunk-DC5QVPV7.js.map +0 -1
- package/dist/chunk-DE4DH2RZ.js +0 -29
- package/dist/chunk-DE4DH2RZ.js.map +0 -1
- package/dist/chunk-DF73H4UN.js.map +0 -1
- package/dist/chunk-EIPVYUEP.js.map +0 -1
- package/dist/chunk-ENAG3IY7.js.map +0 -1
- package/dist/chunk-FCKWQE2H.js.map +0 -1
- package/dist/chunk-FFWI7UH7.js.map +0 -1
- package/dist/chunk-FQ54DWUQ.js.map +0 -1
- package/dist/chunk-FQ5VRHIB.js.map +0 -1
- package/dist/chunk-GF5BZ7D4.js.map +0 -1
- package/dist/chunk-GHLTDZRS.js.map +0 -1
- package/dist/chunk-GYGLAVCX.js.map +0 -1
- package/dist/chunk-HBPPGWUM.js.map +0 -1
- package/dist/chunk-HK67PX4J.js.map +0 -1
- package/dist/chunk-HVSCEIYL.js.map +0 -1
- package/dist/chunk-IEX7NK2K.js +0 -125
- package/dist/chunk-IEX7NK2K.js.map +0 -1
- package/dist/chunk-ISZQJBML.js.map +0 -1
- package/dist/chunk-J6UOHJY5.js.map +0 -1
- package/dist/chunk-KJFW62P4.js.map +0 -1
- package/dist/chunk-L7DOS3TE.js.map +0 -1
- package/dist/chunk-LGNDFRYC.js.map +0 -1
- package/dist/chunk-LGRLME4M.js.map +0 -1
- package/dist/chunk-LP7BEXCT.js +0 -32
- package/dist/chunk-LP7BEXCT.js.map +0 -1
- package/dist/chunk-LQ4ZHOKP.js.map +0 -1
- package/dist/chunk-M522UYZ2.js.map +0 -1
- package/dist/chunk-M7NI3IWE.js.map +0 -1
- package/dist/chunk-MTL7MXGR.js.map +0 -1
- package/dist/chunk-N5DNADLQ.js.map +0 -1
- package/dist/chunk-NNARWO72.js.map +0 -1
- package/dist/chunk-NRT6QZQB.js.map +0 -1
- package/dist/chunk-NWHBJQAL.js.map +0 -1
- package/dist/chunk-ODVPTDPK.js.map +0 -1
- package/dist/chunk-PDCG6PR5.js.map +0 -1
- package/dist/chunk-PEOZ34EM.js.map +0 -1
- package/dist/chunk-PSIV7CJV.js.map +0 -1
- package/dist/chunk-QBBUZ3I3.js.map +0 -1
- package/dist/chunk-QOOUUR4A.js.map +0 -1
- package/dist/chunk-QWFHIOD2.js.map +0 -1
- package/dist/chunk-QWGU66MP.js.map +0 -1
- package/dist/chunk-RHVMZSUU.js.map +0 -1
- package/dist/chunk-S57HTZ6X.js.map +0 -1
- package/dist/chunk-SEE332EV.js +0 -66
- package/dist/chunk-SEE332EV.js.map +0 -1
- package/dist/chunk-SOIQ4MM4.js +0 -20
- package/dist/chunk-SOIQ4MM4.js.map +0 -1
- package/dist/chunk-SYVZW77S.js.map +0 -1
- package/dist/chunk-T2LBQ5DV.js.map +0 -1
- package/dist/chunk-UBSFPGVJ.js +0 -1
- package/dist/chunk-UD5EVGZ7.js.map +0 -1
- package/dist/chunk-UPD5NWI5.js.map +0 -1
- package/dist/chunk-UYB234ZR.js +0 -479
- package/dist/chunk-UYB234ZR.js.map +0 -1
- package/dist/chunk-VNPEWFPD.js.map +0 -1
- package/dist/chunk-WX5ADGTZ.js.map +0 -1
- package/dist/chunk-X4773RBR.js.map +0 -1
- package/dist/chunk-YNIUIERI.js.map +0 -1
- package/dist/chunk-YSK2CU2Q.js.map +0 -1
- package/dist/chunk-ZE4CHIED.js.map +0 -1
- package/dist/chunk-ZXABPVM6.js.map +0 -1
- package/dist/classified-marker-W3USLL5M.js.map +0 -1
- package/dist/collection-facade-QU6IJBN3.js +0 -48
- package/dist/dead-filter-U2UYKSZL.js.map +0 -1
- package/dist/delegation-S3AEPW2T.js.map +0 -1
- package/dist/derive-OX7F6TGG.js +0 -21
- package/dist/dispatch-RH4LHKBH.js.map +0 -1
- package/dist/executor-B6SRO2QS.js +0 -36
- package/dist/executor-BI5CHWRY.js +0 -8
- package/dist/executor-RBKM5W5K.js +0 -8
- package/dist/export-accessible-VMA3YM5V.js +0 -22
- package/dist/extract-partition-NF7PXGPP.js +0 -37
- package/dist/fanout-sidecar-OT6RYLOL.js.map +0 -1
- package/dist/find-LZMP26KF.js +0 -10
- package/dist/issue-IHARXWW5.js +0 -18
- package/dist/kernel/enclave/classify/compare.d.ts +0 -10
- package/dist/kernel/enclave/index.d.ts +0 -87
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +0 -124
- package/dist/kernel/enclave/record-keys/rekey-blob.d.ts +0 -88
- package/dist/kernel/enclave/record-keys/rekey.d.ts +0 -91
- package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +0 -14
- package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +0 -123
- package/dist/kernel/enclave/record-keys/sealing.d.ts +0 -70
- package/dist/liberate-GRLCZMW4.js +0 -24
- package/dist/link-set-JCMJ7ULP.js +0 -30
- package/dist/noydb-SWQJ3MZS.js +0 -97
- package/dist/pod-handle-WGDFB4C2.js.map +0 -1
- package/dist/post-register-SLSXIPBV.js.map +0 -1
- package/dist/register-F3OYE7MJ.js +0 -31
- package/dist/registry-CILQFXFK.js +0 -8
- package/dist/registry-XNNYQVKV.js +0 -8
- package/dist/registry-YCDZV3VW.js +0 -35
- package/dist/registry-ZGYS33TE.js +0 -24
- package/dist/request-withdrawal-Z5NC6TXT.js +0 -30
- package/dist/reveal-4BCKPEC2.js.map +0 -1
- package/dist/revoke-ZL62WC2D.js +0 -23
- package/dist/seed-4JS2RJ4A.js.map +0 -1
- package/dist/signer-MBZZMXTC.js +0 -24
- package/dist/stale-TJ3DYZMQ.js +0 -29
- package/dist/storage-SVMKRGCW.js +0 -22
- package/dist/store-coordination-provider-2O2VUHKW.js.map +0 -1
- package/dist/verify-RVT67IMH.js.map +0 -1
- package/dist/walk-HJ42EISE.js +0 -21
- package/dist/withdraw-accessible-5NZUPAVA.js +0 -27
- /package/dist/{api-GVYEKSJE.js.map → api-MSJXVYQG.js.map} +0 -0
- /package/dist/{collection-facade-QU6IJBN3.js.map → capsule/contract.js.map} +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/bidx.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/digest.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/vdig.d.ts +0 -0
- /package/dist/{kernel/enclave/classify → capsule/plumbing}/kofn.d.ts +0 -0
- /package/dist/{kernel/enclave/classify → capsule/plumbing}/normalize.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/plumbing}/record-aad.d.ts +0 -0
- /package/dist/{chunk-UBSFPGVJ.js.map → capsule-57BDK7LG.js.map} +0 -0
- /package/dist/{computed-TPFBX7U4.js.map → chunk-2DX4JCRI.js.map} +0 -0
- /package/dist/{chunk-ZSX4S5XB.js.map → chunk-2ZFD2UJC.js.map} +0 -0
- /package/dist/{chunk-HT2AHGQI.js.map → chunk-3Y5JLSXS.js.map} +0 -0
- /package/dist/{chunk-SI3V7D4G.js.map → chunk-4UIP3QNW.js.map} +0 -0
- /package/dist/{chunk-WNJ4AVGE.js.map → chunk-55P6OBB7.js.map} +0 -0
- /package/dist/{chunk-MKXXMNJH.js.map → chunk-5UUJE4FP.js.map} +0 -0
- /package/dist/{chunk-FW22ZCXT.js.map → chunk-6WS35E6X.js.map} +0 -0
- /package/dist/{chunk-6OWXYZK2.js.map → chunk-B65CC6Z6.js.map} +0 -0
- /package/dist/{chunk-F2TDU7MQ.js.map → chunk-BJH77UY2.js.map} +0 -0
- /package/dist/{chunk-BJ2IXQ5Q.js.map → chunk-BNFNQNEP.js.map} +0 -0
- /package/dist/{chunk-HLEK5VAN.js.map → chunk-BUE7R3B5.js.map} +0 -0
- /package/dist/{chunk-EOVMT6TB.js.map → chunk-C53ER7AG.js.map} +0 -0
- /package/dist/{chunk-K6W7BVZ6.js.map → chunk-CAD7N6HQ.js.map} +0 -0
- /package/dist/{chunk-5O7D6ZTW.js.map → chunk-DHU2AQ6T.js.map} +0 -0
- /package/dist/{chunk-IT22PWKV.js.map → chunk-ECGXA4LT.js.map} +0 -0
- /package/dist/{chunk-4MXI3ODD.js.map → chunk-GCUMOKTN.js.map} +0 -0
- /package/dist/{chunk-B6SJIBQK.js.map → chunk-GOJQ5DZA.js.map} +0 -0
- /package/dist/{chunk-TKUOEU2F.js.map → chunk-JSWKVZCR.js.map} +0 -0
- /package/dist/{chunk-X25NWUZB.js.map → chunk-L5A3KR7R.js.map} +0 -0
- /package/dist/{chunk-T52GX4SA.js.map → chunk-LGGIFKJP.js.map} +0 -0
- /package/dist/{chunk-ID6Z6E66.js.map → chunk-MQ7YWBQ5.js.map} +0 -0
- /package/dist/{chunk-FN5EBVTQ.js.map → chunk-NIXRB5BP.js.map} +0 -0
- /package/dist/{chunk-HBRLNOHL.js.map → chunk-NYJBYVBG.js.map} +0 -0
- /package/dist/{chunk-ZUVBC32X.js.map → chunk-OK57EATL.js.map} +0 -0
- /package/dist/{chunk-TOPYQ6GA.js.map → chunk-PCYPXLEX.js.map} +0 -0
- /package/dist/{chunk-VNNRUGMM.js.map → chunk-PGC35KXE.js.map} +0 -0
- /package/dist/{chunk-4I522ERM.js.map → chunk-PT2YCQVK.js.map} +0 -0
- /package/dist/{chunk-Z5HTYMMQ.js.map → chunk-PTJY5R3O.js.map} +0 -0
- /package/dist/{chunk-F24ZZTHQ.js.map → chunk-QGFEBNHO.js.map} +0 -0
- /package/dist/{chunk-A6IJU4TK.js.map → chunk-QGSNJD3B.js.map} +0 -0
- /package/dist/{chunk-BK2HHQGN.js.map → chunk-QSHATAXJ.js.map} +0 -0
- /package/dist/{chunk-JCN44NCY.js.map → chunk-RIZTZJX6.js.map} +0 -0
- /package/dist/{chunk-MVZ2TPVP.js.map → chunk-RNACRT5H.js.map} +0 -0
- /package/dist/{chunk-TROR3ALR.js.map → chunk-SFCD6OU7.js.map} +0 -0
- /package/dist/{chunk-I3JDRCMW.js.map → chunk-TZYTMZZY.js.map} +0 -0
- /package/dist/{chunk-AOWGXU6D.js.map → chunk-UAKY6E4N.js.map} +0 -0
- /package/dist/{chunk-3JWHAR6E.js.map → chunk-UNSQZSZP.js.map} +0 -0
- /package/dist/{chunk-6K7DPM7D.js.map → chunk-WFWFXDNS.js.map} +0 -0
- /package/dist/{chunk-CF5UU4S7.js.map → chunk-WHOKGHJ3.js.map} +0 -0
- /package/dist/{chunk-32YV3TJT.js.map → chunk-XXNWU5QZ.js.map} +0 -0
- /package/dist/{chunk-B57AFBY2.js.map → chunk-XXQ5XIYY.js.map} +0 -0
- /package/dist/{chunk-ORDURZBU.js.map → chunk-YFFMPZPY.js.map} +0 -0
- /package/dist/{chunk-MDWKM2XC.js.map → chunk-YKGJ44Z7.js.map} +0 -0
- /package/dist/{chunk-MLPHLJIQ.js.map → chunk-ZHQJAV6D.js.map} +0 -0
- /package/dist/{chunk-7JE7BDYJ.js.map → chunk-ZVSKSUGI.js.map} +0 -0
- /package/dist/{derive-OX7F6TGG.js.map → collection-facade-LZIF7GWD.js.map} +0 -0
- /package/dist/{enclave-27SMF6GF.js.map → computed-XMFTHAXV.js.map} +0 -0
- /package/dist/{executor-B6SRO2QS.js.map → derive-3YSIS36W.js.map} +0 -0
- /package/dist/{dispatch-3CQDJV5Q.js.map → dispatch-OFDA4WQV.js.map} +0 -0
- /package/dist/{executor-BI5CHWRY.js.map → executor-E6YDJ7YA.js.map} +0 -0
- /package/dist/{executor-RBKM5W5K.js.map → executor-NJX3YQQ4.js.map} +0 -0
- /package/dist/{export-accessible-VMA3YM5V.js.map → executor-WWM3DD4P.js.map} +0 -0
- /package/dist/{extract-partition-NF7PXGPP.js.map → export-accessible-RLHU5G4W.js.map} +0 -0
- /package/dist/{find-LZMP26KF.js.map → extract-partition-QII2EDCS.js.map} +0 -0
- /package/dist/{issue-IHARXWW5.js.map → find-6M7GYDUZ.js.map} +0 -0
- /package/dist/{ledger-KZPCMVZY.js.map → issue-LPEEEMPP.js.map} +0 -0
- /package/dist/{liberate-GRLCZMW4.js.map → ledger-MSJGWKGW.js.map} +0 -0
- /package/dist/{link-set-JCMJ7ULP.js.map → liberate-LEKDYKTC.js.map} +0 -0
- /package/dist/{managed-secret-S3MQ6SH6.js.map → link-set-QXXSPPHL.js.map} +0 -0
- /package/dist/{noydb-SWQJ3MZS.js.map → managed-secret-VSK7ANQI.js.map} +0 -0
- /package/dist/{migrate-cek-V7GKJZ7O.js.map → migrate-cek-GEBFYBDC.js.map} +0 -0
- /package/dist/{register-F3OYE7MJ.js.map → noydb-F2AUF6KL.js.map} +0 -0
- /package/dist/{registry-CILQFXFK.js.map → register-SN72QALV.js.map} +0 -0
- /package/dist/{registry-XNNYQVKV.js.map → registry-253FF7C6.js.map} +0 -0
- /package/dist/{registry-YCDZV3VW.js.map → registry-3AZWQTDT.js.map} +0 -0
- /package/dist/{registry-ZGYS33TE.js.map → registry-7UEBTHWG.js.map} +0 -0
- /package/dist/{request-withdrawal-Z5NC6TXT.js.map → registry-IVJ67NFQ.js.map} +0 -0
- /package/dist/{revoke-ZL62WC2D.js.map → request-withdrawal-UKVJZKX2.js.map} +0 -0
- /package/dist/{signer-MBZZMXTC.js.map → revoke-G2KXJQA5.js.map} +0 -0
- /package/dist/{stale-TJ3DYZMQ.js.map → signer-IUIYR3CX.js.map} +0 -0
- /package/dist/{storage-SVMKRGCW.js.map → stale-SKV33PBU.js.map} +0 -0
- /package/dist/{walk-HJ42EISE.js.map → storage-NPBYP2SM.js.map} +0 -0
- /package/dist/{withdraw-accessible-5NZUPAVA.js.map → walk-F4OLXI5H.js.map} +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isManifestReservedCollection
|
|
3
|
+
} from "./chunk-EPFF7LOX.js";
|
|
1
4
|
import {
|
|
2
5
|
LinkIntegrityError,
|
|
3
6
|
declareLink,
|
|
4
7
|
isLinkCollectionName,
|
|
5
8
|
linkCollectionName,
|
|
6
9
|
linkRowKey
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UAKY6E4N.js";
|
|
8
11
|
import {
|
|
9
12
|
hashFields,
|
|
10
13
|
validateSatelliteDeclaration
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WFWFXDNS.js";
|
|
12
15
|
import {
|
|
13
16
|
resolveStaleOnRead
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
isManifestReservedCollection
|
|
17
|
-
} from "./chunk-EPFF7LOX.js";
|
|
17
|
+
} from "./chunk-SFCD6OU7.js";
|
|
18
18
|
import {
|
|
19
19
|
loadFence
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BMHQHH7Q.js";
|
|
21
21
|
import {
|
|
22
22
|
buildPersistedIndexCallbacks,
|
|
23
23
|
syncTierSearch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5HNW4ZTA.js";
|
|
25
25
|
import {
|
|
26
26
|
isBaseLive,
|
|
27
27
|
liveBaseIdSet
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PFCTSXHU.js";
|
|
29
29
|
import {
|
|
30
30
|
SchemaUpdateGate
|
|
31
31
|
} from "./chunk-6LJY7X5A.js";
|
|
@@ -33,22 +33,57 @@ import {
|
|
|
33
33
|
NO_TIERS,
|
|
34
34
|
classifySealedShred,
|
|
35
35
|
syncDerivedOutputs
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Z3ZXVB2Y.js";
|
|
37
37
|
import {
|
|
38
38
|
NO_PORTABILITY
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OK57EATL.js";
|
|
40
40
|
import {
|
|
41
41
|
NO_CARGO
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QGSNJD3B.js";
|
|
43
|
+
import {
|
|
44
|
+
saveSealedSecret
|
|
45
|
+
} from "./chunk-XKBTJGFP.js";
|
|
46
|
+
import {
|
|
47
|
+
runDrainBarrier
|
|
48
|
+
} from "./chunk-UNSQZSZP.js";
|
|
49
|
+
import {
|
|
50
|
+
NO_FORMATS
|
|
51
|
+
} from "./chunk-RWFQVNXR.js";
|
|
43
52
|
import {
|
|
44
53
|
fallbackDerivationName
|
|
45
54
|
} from "./chunk-RXLYKVTF.js";
|
|
46
55
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
CustodyApi,
|
|
57
|
+
NO_CUSTODY
|
|
58
|
+
} from "./chunk-GOJQ5DZA.js";
|
|
49
59
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
DEFAULT_POSTURE,
|
|
61
|
+
ViaGraph,
|
|
62
|
+
buildDescription,
|
|
63
|
+
collectKnownFieldNames,
|
|
64
|
+
computedEntryParts,
|
|
65
|
+
deriveZodFields,
|
|
66
|
+
guardReconcileCollisions,
|
|
67
|
+
mergeViaFields,
|
|
68
|
+
resolveCollectionConfig,
|
|
69
|
+
resolveComputedEdges,
|
|
70
|
+
resolveDescribeFieldIds,
|
|
71
|
+
resolveVirtualMoneyFields
|
|
72
|
+
} from "./chunk-ZMVSKYTJ.js";
|
|
73
|
+
import {
|
|
74
|
+
findMatchingIdsByPairs
|
|
75
|
+
} from "./chunk-TFMM5DBB.js";
|
|
76
|
+
import {
|
|
77
|
+
encodeVecId
|
|
78
|
+
} from "./chunk-YKGJ44Z7.js";
|
|
79
|
+
import {
|
|
80
|
+
NO_CLASSIFIED,
|
|
81
|
+
guardClassifiedCompat,
|
|
82
|
+
resolveClassifiedFields
|
|
83
|
+
} from "./chunk-K673OO6B.js";
|
|
84
|
+
import {
|
|
85
|
+
derivePersistedSchema
|
|
86
|
+
} from "./chunk-J4KAPKBJ.js";
|
|
52
87
|
import {
|
|
53
88
|
findRollupSpecForIntent,
|
|
54
89
|
forgetDerivedFanout,
|
|
@@ -58,17 +93,53 @@ import {
|
|
|
58
93
|
runGraphDispatchWave,
|
|
59
94
|
selfWriteFieldEqual,
|
|
60
95
|
touchFor
|
|
61
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-CAD7N6HQ.js";
|
|
97
|
+
import {
|
|
98
|
+
buildLookupAltIndex,
|
|
99
|
+
buildLookupSnapshotRows,
|
|
100
|
+
buildPresentForJoin,
|
|
101
|
+
checkLookupMembership,
|
|
102
|
+
coerceLookupKey,
|
|
103
|
+
collectLookupDictCompat,
|
|
104
|
+
enforceStaticDictOnPut,
|
|
105
|
+
matchesReferencingValue,
|
|
106
|
+
registerLookupRefEdges,
|
|
107
|
+
reservedDictDepsOf,
|
|
108
|
+
resolveDictSource,
|
|
109
|
+
resolveLabelFromMap,
|
|
110
|
+
updateReferencingRecords
|
|
111
|
+
} from "./chunk-GETUTTZU.js";
|
|
62
112
|
import {
|
|
63
113
|
OverlayedCollection
|
|
64
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-ZHQJAV6D.js";
|
|
65
115
|
import {
|
|
66
116
|
INDEXED_STORE_POLICY,
|
|
67
117
|
NO_SYNC
|
|
68
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-JBMMWYOH.js";
|
|
69
119
|
import {
|
|
70
120
|
NO_ATTESTATION
|
|
71
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-6QLCS7ET.js";
|
|
122
|
+
import {
|
|
123
|
+
NO_COVERAGE
|
|
124
|
+
} from "./chunk-NV4OESHC.js";
|
|
125
|
+
import {
|
|
126
|
+
NO_PERIODS,
|
|
127
|
+
isEffectivelyReopened,
|
|
128
|
+
isOrderableBusinessDate,
|
|
129
|
+
malformedBusinessDate,
|
|
130
|
+
purgeMarkersOn,
|
|
131
|
+
resolvePeriodKey,
|
|
132
|
+
resolveReopenState,
|
|
133
|
+
samePartition
|
|
134
|
+
} from "./chunk-IVMFIKNA.js";
|
|
135
|
+
import {
|
|
136
|
+
PERIODS_COLLECTION,
|
|
137
|
+
PERIOD_ARCHIVES_COLLECTION,
|
|
138
|
+
PERIOD_FREEZES_COLLECTION,
|
|
139
|
+
PERIOD_REOPENS_COLLECTION,
|
|
140
|
+
PERIOD_TARGET_PURGES_COLLECTION,
|
|
141
|
+
periodExclusiveUpperBound
|
|
142
|
+
} from "./chunk-6WS35E6X.js";
|
|
72
143
|
import {
|
|
73
144
|
NO_SHADOW
|
|
74
145
|
} from "./chunk-SMY5X46Z.js";
|
|
@@ -79,7 +150,7 @@ import {
|
|
|
79
150
|
TxContext,
|
|
80
151
|
bestEffortRevert,
|
|
81
152
|
trackKeyedWrite
|
|
82
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-7CT6SX4M.js";
|
|
83
154
|
import {
|
|
84
155
|
lazy
|
|
85
156
|
} from "./chunk-5D2ALSM5.js";
|
|
@@ -88,67 +159,26 @@ import {
|
|
|
88
159
|
InvertedIndex,
|
|
89
160
|
MemoryIndexStore,
|
|
90
161
|
NO_SEARCH
|
|
91
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-TZYTMZZY.js";
|
|
92
163
|
import {
|
|
93
164
|
NO_SEQUENCE,
|
|
94
165
|
SEQUENCE_COLLECTION,
|
|
95
166
|
compileSequenceFormat,
|
|
96
167
|
resolveSequenceKey
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import {
|
|
99
|
-
CustodyApi,
|
|
100
|
-
NO_CUSTODY
|
|
101
|
-
} from "./chunk-B6SJIBQK.js";
|
|
102
|
-
import {
|
|
103
|
-
DEFAULT_POSTURE,
|
|
104
|
-
ViaGraph,
|
|
105
|
-
buildDescription,
|
|
106
|
-
collectKnownFieldNames,
|
|
107
|
-
computedEntryParts,
|
|
108
|
-
deriveZodFields,
|
|
109
|
-
guardReconcileCollisions,
|
|
110
|
-
mergeViaFields,
|
|
111
|
-
resolveCollectionConfig,
|
|
112
|
-
resolveComputedEdges,
|
|
113
|
-
resolveDescribeFieldIds,
|
|
114
|
-
resolveVirtualMoneyFields
|
|
115
|
-
} from "./chunk-UD5EVGZ7.js";
|
|
116
|
-
import {
|
|
117
|
-
findMatchingIdsByPairs
|
|
118
|
-
} from "./chunk-TFMM5DBB.js";
|
|
119
|
-
import {
|
|
120
|
-
encodeVecId
|
|
121
|
-
} from "./chunk-MDWKM2XC.js";
|
|
168
|
+
} from "./chunk-BYHCKX73.js";
|
|
122
169
|
import {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
buildPresentForJoin,
|
|
129
|
-
checkLookupMembership,
|
|
130
|
-
coerceLookupKey,
|
|
131
|
-
collectLookupDictCompat,
|
|
132
|
-
enforceStaticDictOnPut,
|
|
133
|
-
matchesReferencingValue,
|
|
134
|
-
registerLookupRefEdges,
|
|
135
|
-
reservedDictDepsOf,
|
|
136
|
-
resolveDictSource,
|
|
137
|
-
resolveLabelFromMap,
|
|
138
|
-
updateReferencingRecords
|
|
139
|
-
} from "./chunk-FH2L2E34.js";
|
|
140
|
-
import {
|
|
141
|
-
NO_CLASSIFIED,
|
|
142
|
-
guardClassifiedCompat,
|
|
143
|
-
resolveClassifiedFields
|
|
144
|
-
} from "./chunk-QOOUUR4A.js";
|
|
170
|
+
EXPORT_AUDIT_COLLECTION,
|
|
171
|
+
NO_BLOBS,
|
|
172
|
+
createExportBlobsHandle,
|
|
173
|
+
runCompaction
|
|
174
|
+
} from "./chunk-G5EDYVSE.js";
|
|
145
175
|
import {
|
|
146
176
|
LazyQuery,
|
|
147
177
|
NO_INDEXING,
|
|
148
178
|
compositeKey,
|
|
149
179
|
decodeIdxId,
|
|
150
180
|
encodeIdxId
|
|
151
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-NYJBYVBG.js";
|
|
152
182
|
import {
|
|
153
183
|
IMPLICIT_LAZY
|
|
154
184
|
} from "./chunk-66TQOPFM.js";
|
|
@@ -163,71 +193,44 @@ import {
|
|
|
163
193
|
} from "./chunk-PVEWA2DU.js";
|
|
164
194
|
import {
|
|
165
195
|
NO_CONSENT
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import {
|
|
168
|
-
NO_COVERAGE
|
|
169
|
-
} from "./chunk-RHVMZSUU.js";
|
|
170
|
-
import {
|
|
171
|
-
NO_PERIODS,
|
|
172
|
-
isEffectivelyReopened,
|
|
173
|
-
isOrderableBusinessDate,
|
|
174
|
-
malformedBusinessDate,
|
|
175
|
-
purgeMarkersOn,
|
|
176
|
-
resolvePeriodKey,
|
|
177
|
-
resolveReopenState,
|
|
178
|
-
samePartition
|
|
179
|
-
} from "./chunk-NRT6QZQB.js";
|
|
180
|
-
import {
|
|
181
|
-
PERIODS_COLLECTION,
|
|
182
|
-
PERIOD_ARCHIVES_COLLECTION,
|
|
183
|
-
PERIOD_FREEZES_COLLECTION,
|
|
184
|
-
PERIOD_REOPENS_COLLECTION,
|
|
185
|
-
PERIOD_TARGET_PURGES_COLLECTION,
|
|
186
|
-
periodExclusiveUpperBound
|
|
187
|
-
} from "./chunk-FW22ZCXT.js";
|
|
196
|
+
} from "./chunk-GSAK56VF.js";
|
|
188
197
|
import {
|
|
189
198
|
NO_SEALED_RECORD
|
|
190
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-GRS2HIV6.js";
|
|
191
200
|
import {
|
|
192
201
|
normalizeIndexDefs,
|
|
193
202
|
parseFieldIndexSnapshot
|
|
194
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-3V6LZHUO.js";
|
|
195
204
|
import {
|
|
196
205
|
EXPORT_REDACTION_MARKER,
|
|
197
206
|
ViaPipeline,
|
|
198
207
|
exportRedact
|
|
199
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-YFFMPZPY.js";
|
|
200
209
|
import {
|
|
201
210
|
ScanBuilder
|
|
202
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-QGFEBNHO.js";
|
|
203
212
|
import {
|
|
204
213
|
Query
|
|
205
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-ZVSKSUGI.js";
|
|
206
215
|
import {
|
|
207
216
|
NO_REDUCE
|
|
208
217
|
} from "./chunk-3TDUWVWB.js";
|
|
209
218
|
import {
|
|
210
219
|
readPath
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import {
|
|
213
|
-
EXPORT_AUDIT_COLLECTION,
|
|
214
|
-
NO_BLOBS,
|
|
215
|
-
createExportBlobsHandle,
|
|
216
|
-
runCompaction
|
|
217
|
-
} from "./chunk-GF5BZ7D4.js";
|
|
220
|
+
} from "./chunk-BUE7R3B5.js";
|
|
218
221
|
import {
|
|
219
222
|
dictCollectionName
|
|
220
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-NZULV7LK.js";
|
|
221
224
|
import {
|
|
222
225
|
NO_I18N,
|
|
223
226
|
getAtPath,
|
|
224
227
|
isDictCollectionName,
|
|
225
228
|
isStaticDictDescriptor
|
|
226
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-V55JASXO.js";
|
|
227
230
|
import {
|
|
228
231
|
isViaInstalled,
|
|
229
232
|
viaBinder
|
|
230
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-PTJY5R3O.js";
|
|
231
234
|
import {
|
|
232
235
|
NO_TEAM,
|
|
233
236
|
describeAllUsersAuth,
|
|
@@ -250,7 +253,7 @@ import {
|
|
|
250
253
|
saveShamirRecoveryEntries,
|
|
251
254
|
updateAuthenticator,
|
|
252
255
|
writeMagicLinkGrant
|
|
253
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-APFFJN5T.js";
|
|
254
257
|
import {
|
|
255
258
|
assertKeyringOpenAllowed,
|
|
256
259
|
buildRecipientKeyringFile,
|
|
@@ -265,15 +268,15 @@ import {
|
|
|
265
268
|
listUsers,
|
|
266
269
|
loadKeyring,
|
|
267
270
|
updateKeyringIdentity
|
|
268
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-45VHWE4C.js";
|
|
269
272
|
import {
|
|
270
273
|
persistDirectoryConfig,
|
|
271
274
|
readDirectoryConfig
|
|
272
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-FZXRLNJO.js";
|
|
273
276
|
import {
|
|
274
277
|
NO_BROKER,
|
|
275
278
|
buildCredentialBrokerHandle
|
|
276
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-72XBVN4J.js";
|
|
277
280
|
import {
|
|
278
281
|
NO_SESSION
|
|
279
282
|
} from "./chunk-VKQCVU2Z.js";
|
|
@@ -282,19 +285,19 @@ import {
|
|
|
282
285
|
} from "./chunk-4AOERLTV.js";
|
|
283
286
|
import {
|
|
284
287
|
NO_HISTORY
|
|
285
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-2A56DSRI.js";
|
|
286
289
|
import {
|
|
287
290
|
sha256Hex
|
|
288
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-2WJKJZSO.js";
|
|
289
292
|
import {
|
|
290
293
|
assertCutoverTierSafe,
|
|
291
294
|
assertTierWritable,
|
|
292
295
|
dekKey,
|
|
293
296
|
liveRecordIsElevated
|
|
294
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-RIZTZJX6.js";
|
|
295
298
|
import {
|
|
296
299
|
NO_VAULT_HEAD
|
|
297
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-OFD2HD6F.js";
|
|
298
301
|
import {
|
|
299
302
|
NO_FORGET,
|
|
300
303
|
addSubjectRef,
|
|
@@ -303,36 +306,34 @@ import {
|
|
|
303
306
|
readDottedPath,
|
|
304
307
|
rebuildSubjectIndex,
|
|
305
308
|
removeSubjectRef
|
|
306
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-ZWF3EWZA.js";
|
|
307
310
|
import {
|
|
308
311
|
RecordCodec,
|
|
309
312
|
SEALED_CEK_NS,
|
|
310
313
|
applyRewrappedBody,
|
|
314
|
+
buildDeleteMarker,
|
|
311
315
|
buildRecordAad,
|
|
316
|
+
buildRecordEnvelope,
|
|
317
|
+
buildTombstone,
|
|
318
|
+
encrypt,
|
|
312
319
|
findByDet,
|
|
313
320
|
hasPerRecordKey,
|
|
314
321
|
hasSealedBody,
|
|
322
|
+
isDeleteMarker,
|
|
323
|
+
isTombstone,
|
|
315
324
|
makeReservedEnvelopes,
|
|
316
325
|
openEnvelopeJson,
|
|
317
326
|
queryByDet,
|
|
318
327
|
resolveStableCek,
|
|
319
328
|
rewrapBodyToDek,
|
|
320
|
-
validateSchemaInput,
|
|
321
329
|
verifyRecordIdentity
|
|
322
|
-
} from "./chunk-
|
|
323
|
-
import {
|
|
324
|
-
buildDeleteMarker,
|
|
325
|
-
buildRecordEnvelope,
|
|
326
|
-
buildTombstone,
|
|
327
|
-
isDeleteMarker,
|
|
328
|
-
isTombstone
|
|
329
|
-
} from "./chunk-SEE332EV.js";
|
|
330
|
+
} from "./chunk-4J3MNVVX.js";
|
|
330
331
|
import {
|
|
331
|
-
|
|
332
|
-
} from "./chunk-
|
|
332
|
+
validateSchemaInput
|
|
333
|
+
} from "./chunk-OM3SEDI4.js";
|
|
333
334
|
import {
|
|
334
335
|
SealedHandle
|
|
335
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-2ELOCEXE.js";
|
|
336
337
|
import {
|
|
337
338
|
AlreadyElevatedError,
|
|
338
339
|
AttestationError,
|
|
@@ -372,7 +373,7 @@ import {
|
|
|
372
373
|
UniqueConstraintError,
|
|
373
374
|
ValidationError,
|
|
374
375
|
isConflictError
|
|
375
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-VSUQI5Q6.js";
|
|
376
377
|
|
|
377
378
|
// src/kernel/merge-authority.ts
|
|
378
379
|
function buildMergeAuthority(keyring) {
|
|
@@ -403,25 +404,6 @@ function buildMergeAuthority(keyring) {
|
|
|
403
404
|
};
|
|
404
405
|
}
|
|
405
406
|
|
|
406
|
-
// src/port/with/formats-strategy.ts
|
|
407
|
-
var FormatsNotEnabledError = class extends Error {
|
|
408
|
-
constructor(op) {
|
|
409
|
-
super(
|
|
410
|
-
`vault.${op}() requires the formats service. Import { withFormats } from "@noy-db/hub/as" and pass formatsStrategy: withFormats() to createNoydb().`
|
|
411
|
-
);
|
|
412
|
-
this.name = "FormatsNotEnabledError";
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
var NO_FORMATS = {
|
|
416
|
-
enabled: false,
|
|
417
|
-
exportWith() {
|
|
418
|
-
throw new FormatsNotEnabledError("export");
|
|
419
|
-
},
|
|
420
|
-
importWith() {
|
|
421
|
-
throw new FormatsNotEnabledError("import");
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
|
|
425
407
|
// src/with-commit/tx/strategy.ts
|
|
426
408
|
var NOT_ENABLED = new Error(
|
|
427
409
|
'Multi-record transactions require the tx strategy. Import `{ withTransactions }` from "@noy-db/hub/transactions" and pass it to `createNoydb({ transactionsStrategy: withTransactions() })`.'
|
|
@@ -553,7 +535,7 @@ function validateSecretModeOptions(options) {
|
|
|
553
535
|
}
|
|
554
536
|
async function resolveEffectiveSecret(options, store, vault) {
|
|
555
537
|
if (options.secretMode === "managed") {
|
|
556
|
-
const { resolveManagedSecret } = await import("./managed-secret-
|
|
538
|
+
const { resolveManagedSecret } = await import("./managed-secret-VSK7ANQI.js");
|
|
557
539
|
return resolveManagedSecret(store, vault, options.sealingKey);
|
|
558
540
|
}
|
|
559
541
|
return options.secret;
|
|
@@ -571,7 +553,7 @@ function ownerKeyringOptions(options, secret) {
|
|
|
571
553
|
|
|
572
554
|
// src/port/by/default-provider.ts
|
|
573
555
|
async function createDefaultMesh(store) {
|
|
574
|
-
const { StoreMesh } = await import("./store-coordination-provider-
|
|
556
|
+
const { StoreMesh } = await import("./store-coordination-provider-Z6HKPOGM.js");
|
|
575
557
|
return new StoreMesh(store);
|
|
576
558
|
}
|
|
577
559
|
|
|
@@ -626,6 +608,28 @@ function populateCollectionRegistries(r, collectionName, options, effectiveViaFi
|
|
|
626
608
|
}
|
|
627
609
|
}
|
|
628
610
|
|
|
611
|
+
// src/kernel/export-scope.ts
|
|
612
|
+
async function resolveExportSource(adapter, vault, opts) {
|
|
613
|
+
const scope = opts.collections ? [...new Set(opts.collections)].filter((n) => !n.startsWith("_")).sort() : null;
|
|
614
|
+
if (scope) {
|
|
615
|
+
return {
|
|
616
|
+
collections: scope,
|
|
617
|
+
scoped: true,
|
|
618
|
+
// One `list` per requested collection. Calling `loadAll` here would pull
|
|
619
|
+
// every collection's envelopes out of the store before declining to
|
|
620
|
+
// decrypt most of them — the fetch would already have happened, which is
|
|
621
|
+
// precisely the half that makes "scoping" a word rather than a property.
|
|
622
|
+
ids: async (collection) => await adapter.list(vault, collection)
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
const snapshot = await adapter.loadAll(vault);
|
|
626
|
+
return {
|
|
627
|
+
collections: Object.keys(snapshot).sort(),
|
|
628
|
+
scoped: false,
|
|
629
|
+
ids: async (collection) => Object.keys(snapshot[collection] ?? {})
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
|
|
629
633
|
// src/kernel/generation-map.ts
|
|
630
634
|
var tick = 0;
|
|
631
635
|
var GenerationMap = class extends Map {
|
|
@@ -1725,7 +1729,7 @@ async function commitSequentially(ctx, entries, priors) {
|
|
|
1725
1729
|
}
|
|
1726
1730
|
|
|
1727
1731
|
// src/with-formula/computed/lazy.ts
|
|
1728
|
-
var loadComputed = lazy(() => import("./computed-
|
|
1732
|
+
var loadComputed = lazy(() => import("./computed-XMFTHAXV.js"));
|
|
1729
1733
|
async function loadEvalComputedFields() {
|
|
1730
1734
|
return (await loadComputed()).evalComputedFields;
|
|
1731
1735
|
}
|
|
@@ -2534,7 +2538,7 @@ var Collection = class {
|
|
|
2534
2538
|
}
|
|
2535
2539
|
await this.onAccess?.("find", "*");
|
|
2536
2540
|
if (hits.length === 0) return [];
|
|
2537
|
-
const { verifyDigestField } = await import("./verify-
|
|
2541
|
+
const { verifyDigestField } = await import("./verify-KWQIWLGH.js");
|
|
2538
2542
|
const policy = {
|
|
2539
2543
|
normalize: spec.verifyNormalize ?? "password",
|
|
2540
2544
|
notLastN: spec.notLastN ?? 0,
|
|
@@ -2746,7 +2750,7 @@ var Collection = class {
|
|
|
2746
2750
|
}
|
|
2747
2751
|
}
|
|
2748
2752
|
if (this.materializedViewSource !== void 0) {
|
|
2749
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
2753
|
+
const { resolveStaleMVOnRead } = await import("./stale-SKV33PBU.js");
|
|
2750
2754
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
2751
2755
|
}
|
|
2752
2756
|
let record;
|
|
@@ -2867,30 +2871,35 @@ var Collection = class {
|
|
|
2867
2871
|
}
|
|
2868
2872
|
/** @internal The body of {@link put}; see the #1420 note there for why it is split. */
|
|
2869
2873
|
async #putGated(id, record, options) {
|
|
2870
|
-
await this.schemaUpdateGate?.assertWritable();
|
|
2871
|
-
await this.schemaFence?.assertWritable(this.name);
|
|
2872
2874
|
const hooksActive = this.#hooksActive();
|
|
2873
2875
|
const busAfterPut = (this.subsystemBus?.hasHandlers("afterPut") ?? false) && !(this.subsystemBus?.dispatching ?? false);
|
|
2874
2876
|
let event;
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2877
|
+
const gated = async (committed) => {
|
|
2878
|
+
await this.schemaUpdateGate?.assertWritable();
|
|
2879
|
+
await this.schemaFence?.assertWritable(this.name);
|
|
2880
|
+
if (hooksActive || busAfterPut) {
|
|
2881
|
+
const prior = await this.#priorForHook(id);
|
|
2882
|
+
event = {
|
|
2883
|
+
op: prior.record === null ? "create" : "update",
|
|
2884
|
+
vault: this.vault,
|
|
2885
|
+
collection: this.name,
|
|
2886
|
+
docId: id,
|
|
2887
|
+
before: prior.record,
|
|
2888
|
+
after: record,
|
|
2889
|
+
userId: this.keyring.userId,
|
|
2890
|
+
timestamp: Date.now(),
|
|
2891
|
+
txId: this.#txIdForHook(),
|
|
2892
|
+
baseVersion: prior.version,
|
|
2893
|
+
version: prior.version + 1
|
|
2894
|
+
};
|
|
2895
|
+
if (hooksActive) await this.writeHooks.runBefore(event);
|
|
2896
|
+
}
|
|
2897
|
+
committed();
|
|
2898
|
+
await this._putInternal(id, record, options);
|
|
2899
|
+
};
|
|
2900
|
+
if (this.writeQueue) await this.writeQueue.trackGated(gated);
|
|
2901
|
+
else await gated(() => {
|
|
2902
|
+
});
|
|
2894
2903
|
if (event) {
|
|
2895
2904
|
if (hooksActive) await this.writeHooks.runAfter(event);
|
|
2896
2905
|
if (busAfterPut) await this.subsystemBus.dispatch("afterPut", event);
|
|
@@ -3283,7 +3292,7 @@ var Collection = class {
|
|
|
3283
3292
|
*/
|
|
3284
3293
|
async dispatchMaterializedViews(id, record, wave) {
|
|
3285
3294
|
if (this.materializedViewSource === void 0) return;
|
|
3286
|
-
const { dispatchMaterializedViews } = await import("./dispatch-
|
|
3295
|
+
const { dispatchMaterializedViews } = await import("./dispatch-OFDA4WQV.js");
|
|
3287
3296
|
return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
|
|
3288
3297
|
}
|
|
3289
3298
|
/**
|
|
@@ -3449,48 +3458,54 @@ var Collection = class {
|
|
|
3449
3458
|
* dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
|
|
3450
3459
|
async dispatchDerivations(id, record, version, wave, prior) {
|
|
3451
3460
|
if (this.derivationSource === void 0) return;
|
|
3452
|
-
const { dispatchDerivations } = await import("./dispatch-
|
|
3461
|
+
const { dispatchDerivations } = await import("./dispatch-2MQFMEGY.js");
|
|
3453
3462
|
return dispatchDerivations(this.#derivationDispatchCtx(), id, record, version, wave, prior);
|
|
3454
3463
|
}
|
|
3455
3464
|
/** @internal — trigger fan-out for a deleted parent (#1249); see dispatch.ts. */
|
|
3456
3465
|
async dispatchTriggerDerivationsOnDelete(id, deleted) {
|
|
3457
3466
|
if (this.derivationSource === void 0) return;
|
|
3458
|
-
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-
|
|
3467
|
+
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-2MQFMEGY.js");
|
|
3459
3468
|
return dispatchTriggerDerivationsOnDelete(this.#derivationDispatchCtx(), id, deleted);
|
|
3460
3469
|
}
|
|
3461
3470
|
/**
|
|
3462
3471
|
* Delete a record by ID. Runs inside the hub's write-queue tracker
|
|
3463
3472
|
* so `hub.writeQueue.pending` reflects this write.
|
|
3473
|
+
* ⚠️ Blobs are released (#1451) but a legacy collection defers the erase — a `null` blob read is NOT proof the bytes are gone; see {@link BlobSet.releaseAll} (noy-db/core#28).
|
|
3464
3474
|
*/
|
|
3465
3475
|
async delete(id) {
|
|
3466
3476
|
return trackKeyedWrite(this.adapter, this.vault, this.name, id, () => this.#deleteGated(id));
|
|
3467
3477
|
}
|
|
3468
3478
|
/** @internal The body of {@link delete}; see the #1420 note on {@link put}. */
|
|
3469
3479
|
async #deleteGated(id) {
|
|
3470
|
-
await this.schemaUpdateGate?.assertWritable();
|
|
3471
|
-
await this.schemaFence?.assertWritable(this.name);
|
|
3472
3480
|
const hooksActive = this.#hooksActive();
|
|
3473
3481
|
const busAfterDelete = (this.subsystemBus?.hasHandlers("afterDelete") ?? false) && !(this.subsystemBus?.dispatching ?? false);
|
|
3474
3482
|
let event;
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3483
|
+
const gated = async (committed) => {
|
|
3484
|
+
await this.schemaUpdateGate?.assertWritable();
|
|
3485
|
+
await this.schemaFence?.assertWritable(this.name);
|
|
3486
|
+
if (hooksActive || busAfterDelete) {
|
|
3487
|
+
const prior = await this.#priorForHook(id);
|
|
3488
|
+
event = {
|
|
3489
|
+
op: "delete",
|
|
3490
|
+
vault: this.vault,
|
|
3491
|
+
collection: this.name,
|
|
3492
|
+
docId: id,
|
|
3493
|
+
before: prior.record,
|
|
3494
|
+
after: null,
|
|
3495
|
+
userId: this.keyring.userId,
|
|
3496
|
+
timestamp: Date.now(),
|
|
3497
|
+
txId: this.#txIdForHook(),
|
|
3498
|
+
baseVersion: prior.version,
|
|
3499
|
+
version: prior.version + 1
|
|
3500
|
+
};
|
|
3501
|
+
if (hooksActive) await this.writeHooks.runBefore(event);
|
|
3502
|
+
}
|
|
3503
|
+
committed();
|
|
3504
|
+
await this._deleteInternal(id);
|
|
3505
|
+
};
|
|
3506
|
+
if (this.writeQueue) await this.writeQueue.trackGated(gated);
|
|
3507
|
+
else await gated(() => {
|
|
3508
|
+
});
|
|
3494
3509
|
if (event) {
|
|
3495
3510
|
if (hooksActive) await this.writeHooks.runAfter(event);
|
|
3496
3511
|
if (busAfterDelete) await this.subsystemBus.dispatch("afterDelete", event);
|
|
@@ -3772,7 +3787,7 @@ var Collection = class {
|
|
|
3772
3787
|
*/
|
|
3773
3788
|
async dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
|
|
3774
3789
|
if (this.derivationSource === void 0) return 0;
|
|
3775
|
-
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-
|
|
3790
|
+
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-2MQFMEGY.js");
|
|
3776
3791
|
return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
|
|
3777
3792
|
}
|
|
3778
3793
|
/**
|
|
@@ -3786,7 +3801,7 @@ var Collection = class {
|
|
|
3786
3801
|
*/
|
|
3787
3802
|
async dispatchMaterializedViewsOnDelete(id) {
|
|
3788
3803
|
if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
|
|
3789
|
-
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-
|
|
3804
|
+
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-OFDA4WQV.js");
|
|
3790
3805
|
return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
|
|
3791
3806
|
}
|
|
3792
3807
|
/**
|
|
@@ -3806,7 +3821,7 @@ var Collection = class {
|
|
|
3806
3821
|
);
|
|
3807
3822
|
}
|
|
3808
3823
|
if (this.materializedViewSource !== void 0) {
|
|
3809
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
3824
|
+
const { resolveStaleMVOnRead } = await import("./stale-SKV33PBU.js");
|
|
3810
3825
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3811
3826
|
}
|
|
3812
3827
|
await this.ensureHydrated();
|
|
@@ -4971,14 +4986,14 @@ var Collection = class {
|
|
|
4971
4986
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
4972
4987
|
async _ensureClassifiedMarker() {
|
|
4973
4988
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
4974
|
-
const { persistClassifiedMarkerForFields } = await import("./classified-marker-
|
|
4989
|
+
const { persistClassifiedMarkerForFields } = await import("./classified-marker-KHDOYIJB.js");
|
|
4975
4990
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
4976
4991
|
this._markerPersisted = true;
|
|
4977
4992
|
}
|
|
4978
4993
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
4979
4994
|
async _classifiedMarkerDigestOnly() {
|
|
4980
4995
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
4981
|
-
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-
|
|
4996
|
+
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-KHDOYIJB.js");
|
|
4982
4997
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
4983
4998
|
return this._markerDigestOnlyCache;
|
|
4984
4999
|
}
|
|
@@ -5432,7 +5447,7 @@ var DeferredNumberingStore = class {
|
|
|
5432
5447
|
async readJson(collection, id) {
|
|
5433
5448
|
const env = await this.adapter.get(this.vault, collection, id);
|
|
5434
5449
|
if (!env) return { env: null, value: null };
|
|
5435
|
-
const json = this.encrypted ? await openEnvelopeJson({ collection, id }, env, await this.dek(collection)) : env._data;
|
|
5450
|
+
const json = this.encrypted ? await openEnvelopeJson({ collection, id }, env, await this.dek(collection)) : env._data ?? "";
|
|
5436
5451
|
return { env, value: JSON.parse(json) };
|
|
5437
5452
|
}
|
|
5438
5453
|
async writeJson(collection, id, value, expectedVersion) {
|
|
@@ -6064,7 +6079,7 @@ var VaultPeriods = class {
|
|
|
6064
6079
|
async readReserved(collection, key) {
|
|
6065
6080
|
const env = await this.deps.adapter.get(this.deps.vault, collection, key);
|
|
6066
6081
|
if (!env) return null;
|
|
6067
|
-
const json = this.deps.encrypted ? await openEnvelopeJson({ collection, id: key }, env, await this.deps.getDEK(collection)) : env._data;
|
|
6082
|
+
const json = this.deps.encrypted ? await openEnvelopeJson({ collection, id: key }, env, await this.deps.getDEK(collection)) : env._data ?? "";
|
|
6068
6083
|
return JSON.parse(json);
|
|
6069
6084
|
}
|
|
6070
6085
|
async decryptPeriodRecord(periodId, envelope) {
|
|
@@ -6073,7 +6088,7 @@ var VaultPeriods = class {
|
|
|
6073
6088
|
const dek = await this.deps.getDEK(PERIODS_COLLECTION);
|
|
6074
6089
|
json = await openEnvelopeJson({ collection: PERIODS_COLLECTION, id: periodId }, envelope, dek);
|
|
6075
6090
|
} else {
|
|
6076
|
-
json = envelope._data;
|
|
6091
|
+
json = envelope._data ?? "";
|
|
6077
6092
|
}
|
|
6078
6093
|
return JSON.parse(json);
|
|
6079
6094
|
}
|
|
@@ -6646,7 +6661,7 @@ var VaultLinks = class {
|
|
|
6646
6661
|
// src/with-shape/links/lazy-handle.ts
|
|
6647
6662
|
function makeLazyLinkSetHandle(d) {
|
|
6648
6663
|
let engine = null;
|
|
6649
|
-
const load = () => engine ??= import("./link-set-
|
|
6664
|
+
const load = () => engine ??= import("./link-set-QXXSPPHL.js").then(
|
|
6650
6665
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
6651
6666
|
);
|
|
6652
6667
|
return {
|
|
@@ -7029,6 +7044,8 @@ function reconcileCollectionReadState(coll, vaultCtx, plan, hadI18n, hadLookup)
|
|
|
7029
7044
|
});
|
|
7030
7045
|
}
|
|
7031
7046
|
function reconcileViaAttach(coll, graph, name, vaultCtx, plan) {
|
|
7047
|
+
const allComputed = { ...plan.computed ?? {}, ...plan.effectiveViaFields.computedFields ?? {} };
|
|
7048
|
+
const hasComputed = Object.keys(allComputed).length > 0;
|
|
7032
7049
|
guardReconcileCollisions(coll._via, {
|
|
7033
7050
|
moneyFields: plan.effectiveViaFields.moneyFields,
|
|
7034
7051
|
i18nFields: plan.effectiveViaFields.i18nFields,
|
|
@@ -7036,12 +7053,12 @@ function reconcileViaAttach(coll, graph, name, vaultCtx, plan) {
|
|
|
7036
7053
|
lookupFields: plan.effectiveViaFields.lookupFields,
|
|
7037
7054
|
classifiedFields: plan.classifiedFields !== void 0 ? resolveClassifiedFields(name, plan.classifiedFields).byField : void 0,
|
|
7038
7055
|
blobFields: plan.blobFields,
|
|
7039
|
-
computed:
|
|
7056
|
+
computed: allComputed
|
|
7040
7057
|
});
|
|
7041
7058
|
if (plan.effectiveViaFields.lookupFields !== void 0 && !hasLookupBinding(coll)) {
|
|
7042
7059
|
refuseUnattachableMatrixLookupFields(vaultCtx, plan.effectiveViaFields.lookupFields);
|
|
7043
7060
|
}
|
|
7044
|
-
const reconcilePlan =
|
|
7061
|
+
const reconcilePlan = hasComputed || plan.classifiedFields ? validateReconcileGraphEdges(graph, name, {
|
|
7045
7062
|
// `moneyFields` here is the MERGED view (`plan.effectiveViaFields.moneyFields`), not the
|
|
7046
7063
|
// raw incoming `moneyFields` option — intentional (controller ruling, #664a review): a
|
|
7047
7064
|
// via()-spelled money field must count in this call's `knownFields` for computed `deps`
|
|
@@ -7050,14 +7067,14 @@ function reconcileViaAttach(coll, graph, name, vaultCtx, plan) {
|
|
|
7050
7067
|
// silently read the RAW option instead — never intentional, just uncovered before now.
|
|
7051
7068
|
moneyFields: plan.effectiveViaFields.moneyFields,
|
|
7052
7069
|
classifiedFields: plan.classifiedFields,
|
|
7053
|
-
computed:
|
|
7070
|
+
computed: allComputed
|
|
7054
7071
|
}) : void 0;
|
|
7055
7072
|
if (plan.refs !== void 0) {
|
|
7056
7073
|
vaultCtx.refRegistry.register(name, plan.refs);
|
|
7057
7074
|
coll._attachDeclaredRefs(vaultCtx.refRegistry.getOutbound(name));
|
|
7058
7075
|
}
|
|
7059
7076
|
if (plan.effectiveViaFields.moneyFields) coll._applyMoneyFields(plan.effectiveViaFields.moneyFields);
|
|
7060
|
-
if (
|
|
7077
|
+
if (hasComputed) coll._applyComputed(allComputed);
|
|
7061
7078
|
if (plan.fieldMeta) coll._applyFieldMeta(plan.fieldMeta);
|
|
7062
7079
|
if (plan.meta) coll._applyMeta(plan.meta);
|
|
7063
7080
|
if (plan.classifiedFields) coll._applyClassifiedFields(plan.classifiedFields);
|
|
@@ -7297,7 +7314,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
7297
7314
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
7298
7315
|
const registry = reg;
|
|
7299
7316
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
7300
|
-
void import("./post-register-
|
|
7317
|
+
void import("./post-register-QC5TEAW3.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
7301
7318
|
});
|
|
7302
7319
|
return reg;
|
|
7303
7320
|
}
|
|
@@ -7487,7 +7504,7 @@ function makeSatelliteProxy(target, spec, registry) {
|
|
|
7487
7504
|
return filterLiveHits(hits, adapter, vaultName, spec.base);
|
|
7488
7505
|
},
|
|
7489
7506
|
// #591 Task 9 review fix: findByDet/queryByDet scan envelopes straight
|
|
7490
|
-
// off the adapter (
|
|
7507
|
+
// off the adapter (capsule/plumbing/deterministic.ts) and
|
|
7491
7508
|
// return BARE records (no id), so a post-filter can't correlate a match
|
|
7492
7509
|
// back to its base row. Instead the scan itself is scoped: re-run the
|
|
7493
7510
|
// same det functions over the collection's own DeterministicContext
|
|
@@ -8274,7 +8291,7 @@ var Vault = class {
|
|
|
8274
8291
|
const strategies = options.schemaUpdate ?? [];
|
|
8275
8292
|
const work = (async () => {
|
|
8276
8293
|
const dek = await this.getDEK(collectionName);
|
|
8277
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
8294
|
+
const { persistSchemaIfNeeded } = await import("./register-SN72QALV.js");
|
|
8278
8295
|
const result = await persistSchemaIfNeeded({
|
|
8279
8296
|
store: this.adapter,
|
|
8280
8297
|
vault: this.name,
|
|
@@ -8424,7 +8441,7 @@ var Vault = class {
|
|
|
8424
8441
|
const work = (async () => {
|
|
8425
8442
|
try {
|
|
8426
8443
|
const dek = await this.getDEK(collectionName);
|
|
8427
|
-
await (await import("./register-
|
|
8444
|
+
await (await import("./register-SN72QALV.js")).persistSchemaIfNeeded({
|
|
8428
8445
|
store: this.adapter,
|
|
8429
8446
|
vault: this.name,
|
|
8430
8447
|
collectionName,
|
|
@@ -8470,7 +8487,7 @@ var Vault = class {
|
|
|
8470
8487
|
* writes (unfenced walk — see `with-shape/satellites/migrate-cek.ts`); resumable.
|
|
8471
8488
|
*/
|
|
8472
8489
|
async migrateSatellitePerRecordKeys(satelliteName) {
|
|
8473
|
-
const { migrateSatelliteCek } = await import("./migrate-cek-
|
|
8490
|
+
const { migrateSatelliteCek } = await import("./migrate-cek-GEBFYBDC.js");
|
|
8474
8491
|
return migrateSatelliteCek(satelliteName, this.collection(satelliteName, { perRecordKeys: true }));
|
|
8475
8492
|
}
|
|
8476
8493
|
/**
|
|
@@ -8773,7 +8790,7 @@ var Vault = class {
|
|
|
8773
8790
|
},
|
|
8774
8791
|
emitter: this.emitter,
|
|
8775
8792
|
buildDeleteMarker,
|
|
8776
|
-
// #647 fix wave 1 — real
|
|
8793
|
+
// #647 fix wave 1 — real capsule/enclave-aes builder; LookupHandle can't import it directly
|
|
8777
8794
|
// #650 Task 4 (#647) — choke-point participation for LOCAL writes: dirty-log tracking + a
|
|
8778
8795
|
// one-shot graph-dispatch wave (local-write's `graphDispatch.collect`-equivalent; Task 5's ref edges give it dependents).
|
|
8779
8796
|
onDirty: this.onDirty,
|
|
@@ -9105,7 +9122,7 @@ var Vault = class {
|
|
|
9105
9122
|
*/
|
|
9106
9123
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
9107
9124
|
async _loadPodSigner() {
|
|
9108
|
-
const { loadSigner } = await import("./signer-
|
|
9125
|
+
const { loadSigner } = await import("./signer-IUIYR3CX.js");
|
|
9109
9126
|
return loadSigner(this.adapter, this.name, this.getDEK);
|
|
9110
9127
|
}
|
|
9111
9128
|
async writeExportAudit(entry) {
|
|
@@ -9137,7 +9154,7 @@ var Vault = class {
|
|
|
9137
9154
|
*/
|
|
9138
9155
|
async _decryptEnvelopeForBundleFilter(env, collectionName, recordId) {
|
|
9139
9156
|
if (!this.encrypted) {
|
|
9140
|
-
return JSON.parse(env._data);
|
|
9157
|
+
return JSON.parse(env._data ?? "");
|
|
9141
9158
|
}
|
|
9142
9159
|
const dek = await this.getDEK(collectionName);
|
|
9143
9160
|
const json = await openEnvelopeJson({ collection: collectionName, id: recordId }, env, dek);
|
|
@@ -9321,6 +9338,8 @@ var Vault = class {
|
|
|
9321
9338
|
const collections = /* @__PURE__ */ new Set();
|
|
9322
9339
|
const unmigratedRecords = [];
|
|
9323
9340
|
const blobResidueCollections = /* @__PURE__ */ new Set();
|
|
9341
|
+
const blobResidueRecords = /* @__PURE__ */ new Set();
|
|
9342
|
+
const blobResidueETags = /* @__PURE__ */ new Set();
|
|
9324
9343
|
let blobsShredded = 0;
|
|
9325
9344
|
let blobsRetainedShared = 0;
|
|
9326
9345
|
let indexPostingsPurged = 0;
|
|
@@ -9383,6 +9402,7 @@ var Vault = class {
|
|
|
9383
9402
|
await coll.blob(ref2.id).mintShredIntent(live?._tier ?? 0);
|
|
9384
9403
|
} catch {
|
|
9385
9404
|
blobResidueCollections.add(ref2.collection);
|
|
9405
|
+
blobResidueRecords.add(`${ref2.collection}:${ref2.id}`);
|
|
9386
9406
|
}
|
|
9387
9407
|
}
|
|
9388
9408
|
let shred;
|
|
@@ -9428,11 +9448,18 @@ var Vault = class {
|
|
|
9428
9448
|
const r = await this.collection(ref2.collection).blob(ref2.id).shredAllForRecord(live?._tier ?? 0);
|
|
9429
9449
|
blobsShredded += r.shredded.length;
|
|
9430
9450
|
blobsRetainedShared += r.retainedShared.length;
|
|
9431
|
-
if (r.residue.length > 0)
|
|
9451
|
+
if (r.residue.length > 0) {
|
|
9452
|
+
blobResidueCollections.add(ref2.collection);
|
|
9453
|
+
blobResidueRecords.add(`${ref2.collection}:${ref2.id}`);
|
|
9454
|
+
for (const e of r.residueETags) blobResidueETags.add(e);
|
|
9455
|
+
}
|
|
9432
9456
|
} else {
|
|
9433
9457
|
try {
|
|
9434
9458
|
const [slotIds, verKeys] = await Promise.all([this.adapter.list(this.name, `_blob_slots_${ref2.collection}`), this.adapter.list(this.name, `_blob_versions_${ref2.collection}`)]);
|
|
9435
|
-
if (slotIds.includes(ref2.id) || verKeys.some((k) => k.startsWith(`${ref2.id}::`)))
|
|
9459
|
+
if (slotIds.includes(ref2.id) || verKeys.some((k) => k.startsWith(`${ref2.id}::`))) {
|
|
9460
|
+
blobResidueCollections.add(ref2.collection);
|
|
9461
|
+
blobResidueRecords.add(`${ref2.collection}:${ref2.id}`);
|
|
9462
|
+
}
|
|
9436
9463
|
} catch {
|
|
9437
9464
|
}
|
|
9438
9465
|
}
|
|
@@ -9481,6 +9508,8 @@ var Vault = class {
|
|
|
9481
9508
|
blobsShredded,
|
|
9482
9509
|
blobsRetainedShared,
|
|
9483
9510
|
blobResidueCollections: [...blobResidueCollections],
|
|
9511
|
+
blobResidueRecords: [...blobResidueRecords],
|
|
9512
|
+
blobResidueETags: [...blobResidueETags],
|
|
9484
9513
|
indexPostingsPurged,
|
|
9485
9514
|
indexResidue,
|
|
9486
9515
|
sealedFieldsShredded,
|
|
@@ -9595,7 +9624,7 @@ var Vault = class {
|
|
|
9595
9624
|
async _initGuards(handles) {
|
|
9596
9625
|
if (handles.length === 0) return;
|
|
9597
9626
|
const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9598
|
-
import("./registry-
|
|
9627
|
+
import("./registry-IVJ67NFQ.js"),
|
|
9599
9628
|
import("./read-only-facade-BIGO37U3.js")
|
|
9600
9629
|
]);
|
|
9601
9630
|
const registry = new GuardRegistry();
|
|
@@ -9623,7 +9652,7 @@ var Vault = class {
|
|
|
9623
9652
|
async _initDerivations(handles) {
|
|
9624
9653
|
if (handles.length === 0) return;
|
|
9625
9654
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9626
|
-
import("./registry-
|
|
9655
|
+
import("./registry-253FF7C6.js"),
|
|
9627
9656
|
import("./read-only-facade-BIGO37U3.js")
|
|
9628
9657
|
]);
|
|
9629
9658
|
const registry = new DerivationRegistry();
|
|
@@ -9655,7 +9684,7 @@ var Vault = class {
|
|
|
9655
9684
|
*/
|
|
9656
9685
|
async _initMaterializedViews(handles) {
|
|
9657
9686
|
if (handles.length === 0) return;
|
|
9658
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
9687
|
+
const { MaterializedViewRegistry } = await import("./registry-3AZWQTDT.js");
|
|
9659
9688
|
const registry = new MaterializedViewRegistry();
|
|
9660
9689
|
this.materializedViewRegistry = registry;
|
|
9661
9690
|
const db = this;
|
|
@@ -9680,7 +9709,7 @@ var Vault = class {
|
|
|
9680
9709
|
*/
|
|
9681
9710
|
async _initOverlayedViews(handles) {
|
|
9682
9711
|
if (handles.length === 0) return;
|
|
9683
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
9712
|
+
const { OverlayedViewRegistry } = await import("./registry-7UEBTHWG.js");
|
|
9684
9713
|
const registry = new OverlayedViewRegistry();
|
|
9685
9714
|
const mvRegistry = this.materializedViewRegistry;
|
|
9686
9715
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -9743,14 +9772,14 @@ var Vault = class {
|
|
|
9743
9772
|
if (!reg) {
|
|
9744
9773
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
9745
9774
|
}
|
|
9746
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
9775
|
+
const { MaterializedViewExecutor } = await import("./executor-NJX3YQQ4.js");
|
|
9747
9776
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
9748
9777
|
getCollection: (n) => this.collection(n),
|
|
9749
9778
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
9750
9779
|
getQueryContext: () => this,
|
|
9751
9780
|
dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
|
|
9752
9781
|
});
|
|
9753
|
-
const { clearMVStaleFully } = await import("./stale-
|
|
9782
|
+
const { clearMVStaleFully } = await import("./stale-SKV33PBU.js");
|
|
9754
9783
|
await clearMVStaleFully(this.adapter, this.name, registry, name);
|
|
9755
9784
|
return result;
|
|
9756
9785
|
}
|
|
@@ -9763,7 +9792,7 @@ var Vault = class {
|
|
|
9763
9792
|
if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9764
9793
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
9765
9794
|
if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9766
|
-
const { DerivationExecutor } = await import("./executor-
|
|
9795
|
+
const { DerivationExecutor } = await import("./executor-E6YDJ7YA.js");
|
|
9767
9796
|
const sourceColl = this.collection(sourceCollection);
|
|
9768
9797
|
const records = await sourceColl.list();
|
|
9769
9798
|
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-BIGO37U3.js")).ReadOnlyVaultFacade(this, "derivation") };
|
|
@@ -9790,7 +9819,7 @@ var Vault = class {
|
|
|
9790
9819
|
if (!outSpec) continue;
|
|
9791
9820
|
const outputColl = this.collection(outSpec.collection);
|
|
9792
9821
|
if (out.kind === "array") {
|
|
9793
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
9822
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-BO67PCPO.js");
|
|
9794
9823
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
9795
9824
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
9796
9825
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -10017,7 +10046,7 @@ var Vault = class {
|
|
|
10017
10046
|
* collection.
|
|
10018
10047
|
*/
|
|
10019
10048
|
async delegate(opts) {
|
|
10020
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
10049
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-ONLM4JFI.js");
|
|
10021
10050
|
if (!this.keyring.kek) {
|
|
10022
10051
|
throw new ValidationError(
|
|
10023
10052
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
|
|
@@ -10034,14 +10063,18 @@ var Vault = class {
|
|
|
10034
10063
|
opts
|
|
10035
10064
|
);
|
|
10036
10065
|
}
|
|
10066
|
+
/** Merge live delegations into the keyring — core#56's read half. Explicit, not automatic; cross-user delegation does not work yet. Both reasons: `with-party/team/delegation.ts`. */
|
|
10067
|
+
async refreshDelegations(now) {
|
|
10068
|
+
return this.strategies.tiers.refreshDelegations({ vault: this.name, adapter: this.adapter, keyring: this.keyring }, now);
|
|
10069
|
+
}
|
|
10037
10070
|
/**
|
|
10038
10071
|
* revoke an issued delegation by id. Safe to call even
|
|
10039
10072
|
* if the id does not exist.
|
|
10040
10073
|
*/
|
|
10041
10074
|
async revokeDelegation(id) {
|
|
10042
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
10075
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-ONLM4JFI.js");
|
|
10043
10076
|
await revokeDelegation(this.adapter, this.name, id);
|
|
10044
|
-
|
|
10077
|
+
await this.onDirty?.(DELEGATIONS_COLLECTION, id, "delete", 1);
|
|
10045
10078
|
}
|
|
10046
10079
|
// ─── Scoped tier elevation ───────────────────────────
|
|
10047
10080
|
/**
|
|
@@ -10296,7 +10329,7 @@ var Vault = class {
|
|
|
10296
10329
|
* @see design-history/2026-05-22-schema-dump-design.md
|
|
10297
10330
|
*/
|
|
10298
10331
|
async dumpSchema(opts = {}) {
|
|
10299
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
10332
|
+
const { dumpVaultSchema } = await import("./walk-F4OLXI5H.js");
|
|
10300
10333
|
return dumpVaultSchema(this, opts);
|
|
10301
10334
|
}
|
|
10302
10335
|
/**
|
|
@@ -10392,7 +10425,7 @@ var Vault = class {
|
|
|
10392
10425
|
* separate vault instances now.
|
|
10393
10426
|
*/
|
|
10394
10427
|
async getPodHandle() {
|
|
10395
|
-
const { buildPodHandle } = await import("./pod-handle-
|
|
10428
|
+
const { buildPodHandle } = await import("./pod-handle-YE7CT66T.js");
|
|
10396
10429
|
return buildPodHandle(this.adapter, this.name);
|
|
10397
10430
|
}
|
|
10398
10431
|
/**
|
|
@@ -10424,7 +10457,7 @@ var Vault = class {
|
|
|
10424
10457
|
* both modes round-trip cleanly.
|
|
10425
10458
|
*/
|
|
10426
10459
|
async dump() {
|
|
10427
|
-
const { dumpVault } = await import("./backup-
|
|
10460
|
+
const { dumpVault } = await import("./backup-7RKNZMQO.js");
|
|
10428
10461
|
return dumpVault(this.backupContext());
|
|
10429
10462
|
}
|
|
10430
10463
|
/**
|
|
@@ -10433,6 +10466,11 @@ var Vault = class {
|
|
|
10433
10466
|
* collection-cache clear, ledger-store reset) that `load()` performs on this
|
|
10434
10467
|
* Vault's private state.
|
|
10435
10468
|
*/
|
|
10469
|
+
/** core#82 — sync pulled a newer copy of THIS user's keyring file: reload it in place, rebuild the DEK resolver, drop cached collections. */
|
|
10470
|
+
async _reloadKeyringAfterSync() {
|
|
10471
|
+
await this.backupContext().reloadKeyringAndRebuildDEK();
|
|
10472
|
+
this.collectionCache.clear();
|
|
10473
|
+
}
|
|
10436
10474
|
backupContext() {
|
|
10437
10475
|
return {
|
|
10438
10476
|
adapter: this.adapter,
|
|
@@ -10476,7 +10514,7 @@ var Vault = class {
|
|
|
10476
10514
|
* — there's no chain to verify against.
|
|
10477
10515
|
*/
|
|
10478
10516
|
async load(backupJson) {
|
|
10479
|
-
const { loadVault } = await import("./backup-
|
|
10517
|
+
const { loadVault } = await import("./backup-7RKNZMQO.js");
|
|
10480
10518
|
return loadVault(this.backupContext(), backupJson);
|
|
10481
10519
|
}
|
|
10482
10520
|
/**
|
|
@@ -10508,7 +10546,7 @@ var Vault = class {
|
|
|
10508
10546
|
* way to detect tampering of an in-place vault.
|
|
10509
10547
|
*/
|
|
10510
10548
|
async verifyBackupIntegrity() {
|
|
10511
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
10549
|
+
const { verifyBackupIntegrity } = await import("./backup-7RKNZMQO.js");
|
|
10512
10550
|
return verifyBackupIntegrity(this.backupContext());
|
|
10513
10551
|
}
|
|
10514
10552
|
/**
|
|
@@ -10589,8 +10627,7 @@ var Vault = class {
|
|
|
10589
10627
|
const granularity = opts.granularity ?? "collection";
|
|
10590
10628
|
const exportLocale = opts.resolveLabels;
|
|
10591
10629
|
const localeOpts = exportLocale !== void 0 ? { locale: exportLocale, _layer: "export" } : void 0;
|
|
10592
|
-
const
|
|
10593
|
-
const collectionNames = Object.keys(snapshot).sort();
|
|
10630
|
+
const source = await resolveExportSource(this.adapter, this.name, opts);
|
|
10594
10631
|
const ledgerHead = opts.withLedgerHead ? await (async () => {
|
|
10595
10632
|
const ledger = this.getLedgerOrNull();
|
|
10596
10633
|
if (!ledger) return void 0;
|
|
@@ -10599,7 +10636,7 @@ var Vault = class {
|
|
|
10599
10636
|
})() : void 0;
|
|
10600
10637
|
const dictSnapshotCache = /* @__PURE__ */ new Map();
|
|
10601
10638
|
if (exportLocale === void 0) {
|
|
10602
|
-
for (const collectionName of
|
|
10639
|
+
for (const collectionName of source.collections) {
|
|
10603
10640
|
const dictFields = this.dictKeyFieldRegistry.get(collectionName);
|
|
10604
10641
|
if (dictFields && Object.keys(dictFields).length > 0) {
|
|
10605
10642
|
const snap = {};
|
|
@@ -10615,12 +10652,13 @@ var Vault = class {
|
|
|
10615
10652
|
}
|
|
10616
10653
|
}
|
|
10617
10654
|
}
|
|
10618
|
-
for (const collectionName of
|
|
10655
|
+
for (const collectionName of source.collections) {
|
|
10619
10656
|
if (!hasAccess(this.keyring, collectionName)) continue;
|
|
10620
10657
|
const coll = this.collection(collectionName);
|
|
10621
10658
|
const schema = coll.getSchema() ?? null;
|
|
10622
10659
|
const refs = this.refRegistry.getOutbound(collectionName);
|
|
10623
|
-
const ids =
|
|
10660
|
+
const ids = await source.ids(collectionName);
|
|
10661
|
+
if (source.scoped && ids.length === 0) continue;
|
|
10624
10662
|
const dictionaries = dictSnapshotCache.get(collectionName);
|
|
10625
10663
|
if (granularity === "collection") {
|
|
10626
10664
|
const records = [];
|
|
@@ -10738,7 +10776,7 @@ var Vault = class {
|
|
|
10738
10776
|
* is the live validator object, not a serialization of it).
|
|
10739
10777
|
*/
|
|
10740
10778
|
async exportJSON(opts = {}) {
|
|
10741
|
-
const { exportVaultJSON } = await import("./backup-
|
|
10779
|
+
const { exportVaultJSON } = await import("./backup-7RKNZMQO.js");
|
|
10742
10780
|
return exportVaultJSON(this.backupContext(), opts);
|
|
10743
10781
|
}
|
|
10744
10782
|
};
|
|
@@ -10826,6 +10864,36 @@ var WriteQueueTracker = class {
|
|
|
10826
10864
|
throw error;
|
|
10827
10865
|
}
|
|
10828
10866
|
}
|
|
10867
|
+
/**
|
|
10868
|
+
* Run a write whose PRE-COMMIT phase may legitimately REFUSE — the schema
|
|
10869
|
+
* gates, and a user `beforeWrite` hook that throws to abort. `fn` calls
|
|
10870
|
+
* `committed()` at the point the store write itself begins.
|
|
10871
|
+
*
|
|
10872
|
+
* Before that point a rejection releases the depth it took but records NO
|
|
10873
|
+
* queue error; after it, a rejection settles as a failure like `track`.
|
|
10874
|
+
*
|
|
10875
|
+
* #11 — why the phase is inside `depth` at all: `pending` is the documented
|
|
10876
|
+
* shutdown guard (see the `writeQueue` getter's `beforeunload` example) and
|
|
10877
|
+
* the schema fence does a fresh store read per write, so leaving the gates
|
|
10878
|
+
* outside made `pending` read `false` during a real round-trip on every
|
|
10879
|
+
* write. The refusal carve-out is what the old outside-the-queue placement
|
|
10880
|
+
* was protecting ("a rejected write never counts toward depth") — it is kept
|
|
10881
|
+
* deliberately, so a refused write cannot reject a concurrent `onFlush()`.
|
|
10882
|
+
*/
|
|
10883
|
+
async trackGated(fn) {
|
|
10884
|
+
this.begin();
|
|
10885
|
+
let refusable = true;
|
|
10886
|
+
try {
|
|
10887
|
+
const value = await fn(() => {
|
|
10888
|
+
refusable = false;
|
|
10889
|
+
});
|
|
10890
|
+
this.settle();
|
|
10891
|
+
return value;
|
|
10892
|
+
} catch (error) {
|
|
10893
|
+
this.settle(refusable ? void 0 : error);
|
|
10894
|
+
throw error;
|
|
10895
|
+
}
|
|
10896
|
+
}
|
|
10829
10897
|
#emitChange() {
|
|
10830
10898
|
for (const handler of this.#changeHandlers) handler();
|
|
10831
10899
|
}
|
|
@@ -12311,6 +12379,7 @@ var TeamFacade = class {
|
|
|
12311
12379
|
await this.deps.checkGate(vault, "peer-recover-user", factors);
|
|
12312
12380
|
const callerKeyring = await this.deps.getKeyringInternal(vault);
|
|
12313
12381
|
await recoverUser(this.deps.options.store, vault, callerKeyring, options);
|
|
12382
|
+
await this.deps.enrolBrokerMember(vault, { userId: options.userId, secret: options.secret });
|
|
12314
12383
|
if (options.userId === this.deps.options.user) {
|
|
12315
12384
|
this.deps.keyringCache.delete(vault);
|
|
12316
12385
|
}
|
|
@@ -12655,6 +12724,7 @@ var Noydb = class {
|
|
|
12655
12724
|
checkGate: (vault, gate, factors) => this.checkGate(vault, gate, factors),
|
|
12656
12725
|
checkPolicyOperation: (vault, op) => this.checkPolicyOperation(vault, op),
|
|
12657
12726
|
getKeyringInternal: (vault, opts) => this._getKeyringInternal(vault, opts),
|
|
12727
|
+
enrolBrokerMember: (vault, member) => this.#enrolBrokerMember(vault, member),
|
|
12658
12728
|
assertRecoveryEnrolled: (vault, policy, opts) => this.assertRecoveryEnrolled(vault, policy, opts),
|
|
12659
12729
|
openVault: (vault, opts) => this.openVault(vault, opts),
|
|
12660
12730
|
setSkipNextManagedRecoveryCheck: (value) => {
|
|
@@ -12765,7 +12835,7 @@ var Noydb = class {
|
|
|
12765
12835
|
if (!facade) return;
|
|
12766
12836
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
|
|
12767
12837
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
12768
|
-
const { GuardExecutor } = await import("./executor-
|
|
12838
|
+
const { GuardExecutor } = await import("./executor-WWM3DD4P.js");
|
|
12769
12839
|
for (const g of guards) {
|
|
12770
12840
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
12771
12841
|
}
|
|
@@ -12983,6 +13053,7 @@ var Noydb = class {
|
|
|
12983
13053
|
engine.setReservedLookupSource({ collections: () => comp._reservedLookupCollectionNames() });
|
|
12984
13054
|
engine.setReservedDictExpander((names) => comp._reservedDictDepsOf(names));
|
|
12985
13055
|
engine.setPeriodPullSource({ periods: () => comp.listPeriods() });
|
|
13056
|
+
engine.setRosterReload({ userId: this.options.user, reload: () => comp._reloadKeyringAfterSync() });
|
|
12986
13057
|
});
|
|
12987
13058
|
await comp._initGuards(this.options.guardStrategies ?? []);
|
|
12988
13059
|
await comp._initDerivations(this.options.derivationStrategies ?? []);
|
|
@@ -13024,7 +13095,12 @@ var Noydb = class {
|
|
|
13024
13095
|
* Opt-in (#267): throws {@link TeamNotEnabledError} without `withTeam()`.
|
|
13025
13096
|
*/
|
|
13026
13097
|
async grant(vault, options, factors) {
|
|
13027
|
-
|
|
13098
|
+
await this.strategies.team.grant(this.team, vault, options, factors);
|
|
13099
|
+
await this.#enrolBrokerMember(vault, { userId: options.userId, secret: options.secret });
|
|
13100
|
+
}
|
|
13101
|
+
/** core#73 — register a (re-)granted or recovered sub-admin member with the broker host; a no-op without a broker. */
|
|
13102
|
+
async #enrolBrokerMember(vault, member) {
|
|
13103
|
+
await this.strategies.broker.enrolMember({ store: this.options.store, vault, keyring: await this._getKeyringInternal(vault) }, member);
|
|
13028
13104
|
}
|
|
13029
13105
|
/**
|
|
13030
13106
|
* Revoke a user's access to a vault.
|
|
@@ -13037,7 +13113,11 @@ var Noydb = class {
|
|
|
13037
13113
|
* Opt-in (#267): throws {@link TeamNotEnabledError} without `withTeam()`.
|
|
13038
13114
|
*/
|
|
13039
13115
|
async revoke(vault, options, factors) {
|
|
13040
|
-
|
|
13116
|
+
await this.strategies.team.revoke(this.team, vault, options, factors);
|
|
13117
|
+
for (const [key, engine] of this.syncEngines) {
|
|
13118
|
+
if (key === vault || key.startsWith(`${vault}::`)) await engine.trackChange("_keyring", options.userId, "delete", 1);
|
|
13119
|
+
}
|
|
13120
|
+
await this.strategies.broker.revokeMember({ store: this.options.store, vault, keyring: await this._getKeyringInternal(vault) }, options.userId);
|
|
13041
13121
|
}
|
|
13042
13122
|
/**
|
|
13043
13123
|
* Grant the FR-6 `custodian` role to a user (owner-only custody API).
|
|
@@ -13439,6 +13519,10 @@ var Noydb = class {
|
|
|
13439
13519
|
if (engine.role !== "sync-peer") return emptyPullResult();
|
|
13440
13520
|
return engine.pull(options);
|
|
13441
13521
|
}
|
|
13522
|
+
/** core#82 — replace every local envelope that fails to authenticate with the primary target's healthy copy; see `SyncEngine.realign`. */
|
|
13523
|
+
async realign(vault) {
|
|
13524
|
+
return this.getSyncEngine(vault).realign();
|
|
13525
|
+
}
|
|
13442
13526
|
/**
|
|
13443
13527
|
* Bidirectional sync: pull then push for all targets.
|
|
13444
13528
|
* `sync-peer` targets do pull+push; `backup`/`archive` targets do push-only.
|
|
@@ -13583,9 +13667,9 @@ var Noydb = class {
|
|
|
13583
13667
|
const targets = [];
|
|
13584
13668
|
for (const [key, engine] of this.syncEngines) {
|
|
13585
13669
|
if (key !== vault && !key.startsWith(`${vault}::`)) continue;
|
|
13586
|
-
const { dirty, lastPush, lastPull } = engine.status();
|
|
13670
|
+
const { dirty, lastPush, lastPull, inFlight } = engine.status();
|
|
13587
13671
|
const { label, role } = engine;
|
|
13588
|
-
targets.push({ label, role, dirty, lastPush, lastPull, caughtUp: dirty === 0 });
|
|
13672
|
+
targets.push({ label, role, dirty, lastPush, lastPull, caughtUp: dirty === 0, ...inFlight ? { inFlight } : {} });
|
|
13589
13673
|
}
|
|
13590
13674
|
return targets;
|
|
13591
13675
|
}
|
|
@@ -14103,6 +14187,7 @@ var Noydb = class {
|
|
|
14103
14187
|
this.keyringCache.set(vault, keyring2);
|
|
14104
14188
|
return keyring2;
|
|
14105
14189
|
}
|
|
14190
|
+
await this.strategies.sync.bootstrapKeyrings(this.options.store, normalizeSyncTargets(this.options.sync).find((t) => t.role === "sync-peer")?.store, vault);
|
|
14106
14191
|
await assertKeyringOpenAllowed(this.options.store, vault, this.options.user, opts.create);
|
|
14107
14192
|
const effectiveSecret = await resolveEffectiveSecret(this.options, this.options.store, vault);
|
|
14108
14193
|
if (!effectiveSecret) {
|
|
@@ -14153,7 +14238,7 @@ async function createNoydb(options) {
|
|
|
14153
14238
|
if (!options.store) options = { ...options, store: memoryStore() };
|
|
14154
14239
|
validateSecretModeOptions(options);
|
|
14155
14240
|
if (!options.mesh) options = { ...options, mesh: await createDefaultMesh(options.store) };
|
|
14156
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
14241
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-MSJXVYQG.js")).createUserApi };
|
|
14157
14242
|
if (!options.policyFactory) {
|
|
14158
14243
|
const policyModule = await import("./policy/index.js");
|
|
14159
14244
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
@@ -14186,4 +14271,4 @@ export {
|
|
|
14186
14271
|
Noydb,
|
|
14187
14272
|
createNoydb
|
|
14188
14273
|
};
|
|
14189
|
-
//# sourceMappingURL=chunk-
|
|
14274
|
+
//# sourceMappingURL=chunk-FSQNGPHH.js.map
|