@noy-db/hub 0.4.0-pre.0 → 0.4.0-pre.10
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/README.md +3 -4
- package/dist/api-ZDKTWNBB.js +20 -0
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-YPUEKIJC.js → backup-2UX7PRM5.js} +13 -13
- package/dist/blobs/index.js +30 -15
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -12
- package/dist/broker/index.js.map +1 -1
- package/dist/cargo/index.js +58 -29
- package/dist/{chunk-IY23KFNZ.js → chunk-35NMVJ7I.js} +3 -3
- package/dist/{chunk-S3BFKGET.js → chunk-3HUYRN24.js} +4 -4
- package/dist/chunk-3HUYRN24.js.map +1 -0
- package/dist/{walk-IPLXE36W.js → chunk-3V3XR4S4.js} +4 -13
- package/dist/{walk-IPLXE36W.js.map → chunk-3V3XR4S4.js.map} +1 -1
- package/dist/{chunk-RTEK4C4I.js → chunk-4JQK3L4V.js} +2 -2
- package/dist/{chunk-3ELCWU56.js → chunk-4ZKNC6A6.js} +2 -2
- package/dist/{chunk-VQNJ7UZL.js → chunk-55LKVALY.js} +106 -10
- package/dist/chunk-55LKVALY.js.map +1 -0
- package/dist/{chunk-VAIS3SOM.js → chunk-55LX6FSX.js} +2 -2
- package/dist/chunk-5D2ALSM5.js +19 -0
- package/dist/chunk-5D2ALSM5.js.map +1 -0
- package/dist/{chunk-6HPG2YNX.js → chunk-5DRROK5W.js} +2 -2
- package/dist/{chunk-S6Q37VGE.js → chunk-5GQEU4DN.js} +2 -2
- package/dist/chunk-5JOFWL4G.js +25 -0
- package/dist/chunk-5JOFWL4G.js.map +1 -0
- package/dist/{chunk-ZXEZCY6F.js → chunk-63FE525P.js} +6 -6
- package/dist/chunk-6LJY7X5A.js +18 -0
- package/dist/chunk-6LJY7X5A.js.map +1 -0
- package/dist/{chunk-JVBO4SZL.js → chunk-6UBZ6I5Z.js} +2 -2
- package/dist/{chunk-BOKIKJJB.js → chunk-6ZNSB3H6.js} +5 -17
- package/dist/chunk-6ZNSB3H6.js.map +1 -0
- package/dist/{chunk-IK43HLDQ.js → chunk-7YVBQJ7K.js} +13 -355
- package/dist/chunk-7YVBQJ7K.js.map +1 -0
- package/dist/{chunk-VRBTNCM4.js → chunk-ABS7FMMD.js} +6 -6
- package/dist/chunk-AFHQATY4.js +47 -0
- package/dist/chunk-AFHQATY4.js.map +1 -0
- package/dist/{chunk-HOONYZY2.js → chunk-AKKRXT23.js} +7 -7
- package/dist/chunk-AKKRXT23.js.map +1 -0
- package/dist/{chunk-DDHM2TLX.js → chunk-AT2JJEKJ.js} +4 -4
- package/dist/chunk-AT2JJEKJ.js.map +1 -0
- package/dist/{chunk-M75ZZHSR.js → chunk-BLBAQRBM.js} +2 -2
- package/dist/{chunk-554KLAAN.js → chunk-BLCWSJLN.js} +88 -81
- package/dist/chunk-BLCWSJLN.js.map +1 -0
- package/dist/chunk-CADUYBQD.js +151 -0
- package/dist/chunk-CADUYBQD.js.map +1 -0
- package/dist/{chunk-WOM2HTML.js → chunk-CI32CAFS.js} +5 -5
- package/dist/{chunk-FH52K7EG.js → chunk-CUZLNGD5.js} +2 -6
- package/dist/{chunk-FH52K7EG.js.map → chunk-CUZLNGD5.js.map} +1 -1
- package/dist/{chunk-U6JMEH2P.js → chunk-CXQW2NWO.js} +145 -3
- package/dist/chunk-CXQW2NWO.js.map +1 -0
- package/dist/{chunk-EO43ANYJ.js → chunk-DABACXEF.js} +3 -3
- package/dist/{chunk-CJ5KKU6X.js → chunk-DMH3VZU5.js} +4 -4
- package/dist/chunk-DSDXAKIP.js +50 -0
- package/dist/chunk-DSDXAKIP.js.map +1 -0
- package/dist/{chunk-WZSHL6DQ.js → chunk-DZ2JXHWK.js} +5 -5
- package/dist/chunk-DZFQVICS.js +23 -0
- package/dist/chunk-DZFQVICS.js.map +1 -0
- package/dist/chunk-E23UGFVC.js +63 -0
- package/dist/chunk-E23UGFVC.js.map +1 -0
- package/dist/{chunk-Z4PD65VQ.js → chunk-EE7UHLKH.js} +4 -4
- package/dist/chunk-EIPVYUEP.js +654 -0
- package/dist/chunk-EIPVYUEP.js.map +1 -0
- package/dist/{chunk-RNG4VRP4.js → chunk-EKRSCRNM.js} +3 -3
- package/dist/{chunk-YMUGBZN2.js → chunk-FQ5CHJR7.js} +1 -1
- package/dist/chunk-FQ5CHJR7.js.map +1 -0
- package/dist/{chunk-RFI7GGFO.js → chunk-FQZ6XTQ7.js} +17 -20
- package/dist/chunk-FQZ6XTQ7.js.map +1 -0
- package/dist/{chunk-MT62YSPZ.js → chunk-FRMPM7WG.js} +4 -4
- package/dist/{chunk-W4TCUGQR.js → chunk-G2JUIDFA.js} +13 -9
- package/dist/{chunk-W4TCUGQR.js.map → chunk-G2JUIDFA.js.map} +1 -1
- package/dist/{chunk-T3GY65MA.js → chunk-G6WWZNJP.js} +13 -13
- package/dist/chunk-G6WWZNJP.js.map +1 -0
- package/dist/chunk-GJW4HX2O.js +1 -0
- package/dist/{chunk-KS6SAVCZ.js → chunk-GU3IP74F.js} +6 -6
- package/dist/{chunk-UHNGNKLV.js → chunk-GWWOGNBK.js} +308 -18
- package/dist/chunk-GWWOGNBK.js.map +1 -0
- package/dist/{chunk-5PFOMHTB.js → chunk-H2GPHUZD.js} +12 -13
- package/dist/chunk-H2GPHUZD.js.map +1 -0
- package/dist/{chunk-H2KSZMIX.js → chunk-HMU5P6RL.js} +5 -5
- package/dist/chunk-HMU5P6RL.js.map +1 -0
- package/dist/{chunk-JFCV5QIK.js → chunk-I5GEJX3R.js} +5 -5
- package/dist/chunk-I5GEJX3R.js.map +1 -0
- package/dist/{chunk-GWKAVKHI.js → chunk-IG6KUWBX.js} +2 -2
- package/dist/chunk-IG6KUWBX.js.map +1 -0
- package/dist/{chunk-LVGTA624.js → chunk-IPUG56GJ.js} +15 -5
- package/dist/{chunk-LVGTA624.js.map → chunk-IPUG56GJ.js.map} +1 -1
- package/dist/{chunk-SMIRGMS7.js → chunk-IXNCZTWA.js} +2 -2
- package/dist/{chunk-WQIYTNJV.js → chunk-IXTSNGYY.js} +3 -3
- package/dist/{chunk-WHXXI3W5.js → chunk-IYZISPGD.js} +7 -5
- package/dist/chunk-IYZISPGD.js.map +1 -0
- package/dist/{chunk-HQBM64EE.js → chunk-JDOMW53O.js} +145 -16
- package/dist/chunk-JDOMW53O.js.map +1 -0
- package/dist/{chunk-NCCBLYEB.js → chunk-JJZGIE4U.js} +6 -5
- package/dist/{chunk-DRWBEDYO.js → chunk-JYJFGD2H.js} +2 -2
- package/dist/{chunk-TAGR72IR.js → chunk-KRCBZYTZ.js} +26 -177
- package/dist/chunk-KRCBZYTZ.js.map +1 -0
- package/dist/{chunk-DSBQODMZ.js → chunk-L2DGWBCT.js} +14 -14
- package/dist/chunk-L2DGWBCT.js.map +1 -0
- package/dist/{chunk-VEALDPHW.js → chunk-L3YYLT4E.js} +15 -2
- package/dist/chunk-L3YYLT4E.js.map +1 -0
- package/dist/{chunk-FXZDAV62.js → chunk-LNPUSMZL.js} +29 -31
- package/dist/chunk-LNPUSMZL.js.map +1 -0
- package/dist/{chunk-XJMBYYQK.js → chunk-LNZKOUJR.js} +2 -2
- package/dist/{chunk-R3BLCFD2.js → chunk-MBKVNOJS.js} +6 -6
- package/dist/chunk-MCHBCNCE.js +367 -0
- package/dist/chunk-MCHBCNCE.js.map +1 -0
- package/dist/{chunk-VCBHAE4R.js → chunk-MHMLXJ3I.js} +2 -2
- package/dist/chunk-MHMLXJ3I.js.map +1 -0
- package/dist/{chunk-WNGGJWF7.js → chunk-MSMJJB4J.js} +2 -2
- package/dist/chunk-MSMJJB4J.js.map +1 -0
- package/dist/{chunk-T36RFODW.js → chunk-MXUT7FTE.js} +2 -2
- package/dist/chunk-MXUT7FTE.js.map +1 -0
- package/dist/{chunk-WG4QBZDN.js → chunk-N4BBNYIB.js} +11 -9
- package/dist/chunk-N4BBNYIB.js.map +1 -0
- package/dist/{chunk-PK6JIDQ4.js → chunk-NFIBXF4V.js} +1084 -1583
- package/dist/chunk-NFIBXF4V.js.map +1 -0
- package/dist/{chunk-VKCADNMR.js → chunk-NFNJLRY7.js} +368 -52
- package/dist/chunk-NFNJLRY7.js.map +1 -0
- package/dist/{chunk-N6WF5PKC.js → chunk-NFZGZ4AK.js} +2 -2
- package/dist/{chunk-JRBNCUNT.js → chunk-NGSJZFGL.js} +21 -4
- package/dist/chunk-NGSJZFGL.js.map +1 -0
- package/dist/chunk-NJ4DYYO5.js +81 -0
- package/dist/chunk-NJ4DYYO5.js.map +1 -0
- package/dist/chunk-NM5UYF6Q.js +24 -0
- package/dist/chunk-NM5UYF6Q.js.map +1 -0
- package/dist/{chunk-JBBSYJHP.js → chunk-NYEFP7DY.js} +4 -4
- package/dist/chunk-NYEFP7DY.js.map +1 -0
- package/dist/{chunk-GDG5VVYG.js → chunk-NZ24MX4J.js} +8 -46
- package/dist/chunk-NZ24MX4J.js.map +1 -0
- package/dist/{chunk-IFJTPAQQ.js → chunk-OLEPKFTW.js} +4 -4
- package/dist/chunk-OLEPKFTW.js.map +1 -0
- package/dist/{chunk-THVIPWRF.js → chunk-PEATRIYJ.js} +9 -9
- package/dist/chunk-PEOZ34EM.js +13 -0
- package/dist/chunk-PEOZ34EM.js.map +1 -0
- package/dist/{chunk-UC2ETWF3.js → chunk-PTHKZWEH.js} +2 -14
- package/dist/{chunk-UC2ETWF3.js.map → chunk-PTHKZWEH.js.map} +1 -1
- package/dist/chunk-PVEWA2DU.js +23 -0
- package/dist/chunk-PVEWA2DU.js.map +1 -0
- package/dist/{chunk-VCTXU4AT.js → chunk-QBAC3GXA.js} +1 -1
- package/dist/chunk-QBAC3GXA.js.map +1 -0
- package/dist/{chunk-RDXW3OBQ.js → chunk-QD46HPZG.js} +2 -2
- package/dist/chunk-QD46HPZG.js.map +1 -0
- package/dist/{chunk-YZQOGE2L.js → chunk-QDIH2744.js} +2 -2
- package/dist/{chunk-6HY2X62D.js → chunk-QJNCB5SK.js} +2 -2
- package/dist/{chunk-IAO54J4R.js → chunk-QX76XVQH.js} +6 -6
- package/dist/chunk-QX76XVQH.js.map +1 -0
- package/dist/{chunk-W2OG6JOL.js → chunk-QZWTRENR.js} +24 -7
- package/dist/chunk-QZWTRENR.js.map +1 -0
- package/dist/{chunk-6NQMXTYC.js → chunk-RO5NM6UI.js} +2 -2
- package/dist/chunk-RO5NM6UI.js.map +1 -0
- package/dist/chunk-SGDPRCC4.js +1075 -0
- package/dist/chunk-SGDPRCC4.js.map +1 -0
- package/dist/{chunk-2PCAVW2I.js → chunk-SHEEBRZ4.js} +2 -2
- package/dist/chunk-SMY5X46Z.js +14 -0
- package/dist/chunk-SMY5X46Z.js.map +1 -0
- package/dist/{chunk-ISMV2QVG.js → chunk-TG634KCO.js} +11 -2
- package/dist/chunk-TG634KCO.js.map +1 -0
- package/dist/{chunk-XUW3PXHU.js → chunk-TUXQSFHZ.js} +4 -16
- package/dist/{chunk-XUW3PXHU.js.map → chunk-TUXQSFHZ.js.map} +1 -1
- package/dist/{chunk-GULTLPFB.js → chunk-UADPR6F4.js} +3 -3
- package/dist/{chunk-GULTLPFB.js.map → chunk-UADPR6F4.js.map} +1 -1
- package/dist/{chunk-XTHCN77N.js → chunk-UDHBXYGG.js} +29 -19
- package/dist/chunk-UDHBXYGG.js.map +1 -0
- package/dist/{chunk-RA5VTXXG.js → chunk-V6UQZA2H.js} +2 -2
- package/dist/chunk-VG2ZSFYD.js +32 -0
- package/dist/chunk-VG2ZSFYD.js.map +1 -0
- package/dist/chunk-VKQCVU2Z.js +21 -0
- package/dist/chunk-VKQCVU2Z.js.map +1 -0
- package/dist/{chunk-QDPZWTN2.js → chunk-W3G5REIU.js} +2 -2
- package/dist/{chunk-A4FXFAKF.js → chunk-W3L64Y3J.js} +2 -2
- package/dist/{chunk-ONTBCHCP.js → chunk-W66AM5IB.js} +2 -2
- package/dist/chunk-W66AM5IB.js.map +1 -0
- package/dist/{chunk-A5BDDEXK.js → chunk-WBKZUO5V.js} +26 -43
- package/dist/chunk-WBKZUO5V.js.map +1 -0
- package/dist/{chunk-XDIAFPUM.js → chunk-WLXMTYGO.js} +2 -2
- package/dist/{chunk-RJ6K6K5M.js → chunk-X3F5YJG2.js} +2 -2
- package/dist/{chunk-WKGF2TJR.js → chunk-X45JYIAY.js} +3 -3
- package/dist/chunk-X45JYIAY.js.map +1 -0
- package/dist/{chunk-6XE5TMPR.js → chunk-X4MVWPHV.js} +3 -3
- package/dist/chunk-X4MVWPHV.js.map +1 -0
- package/dist/chunk-XZHEOSQ2.js +16 -0
- package/dist/chunk-XZHEOSQ2.js.map +1 -0
- package/dist/chunk-Y2NBBT6K.js +18 -0
- package/dist/chunk-Y2NBBT6K.js.map +1 -0
- package/dist/{chunk-CZTLE22N.js → chunk-Y2NJBNX3.js} +8 -8
- package/dist/{chunk-CZTLE22N.js.map → chunk-Y2NJBNX3.js.map} +1 -1
- package/dist/{chunk-YTGDPCPW.js → chunk-Y6B6HVKC.js} +2 -2
- package/dist/chunk-YMUFFJCO.js +23 -0
- package/dist/chunk-YMUFFJCO.js.map +1 -0
- package/dist/{chunk-SV6EAJEP.js → chunk-YWWQM7KP.js} +5 -14
- package/dist/chunk-YWWQM7KP.js.map +1 -0
- package/dist/{chunk-UDSR4X4L.js → chunk-YZJSJOUI.js} +239 -16
- package/dist/chunk-YZJSJOUI.js.map +1 -0
- package/dist/{chunk-5WZXVULX.js → chunk-ZTLOXFPB.js} +2 -2
- package/dist/chunk-ZTLOXFPB.js.map +1 -0
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-QWMASIT7.js → classified-marker-7PKJBFCG.js} +3 -3
- package/dist/collection-facade-6I5K5IOD.js +45 -0
- package/dist/{computed-DSMPXG2Y.js → computed-AB45PS4V.js} +3 -3
- package/dist/consent/index.js +13 -9
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +37 -0
- package/dist/crdt/index.js +4 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/custody/index.js +26 -0
- package/dist/{dead-filter-66VGI6JV.js → dead-filter-FL3WIUZS.js} +2 -2
- package/dist/{chunk-OCVM6KDH.js → delegation-QXZ4MPPH.js} +12 -6
- package/dist/{chunk-OCVM6KDH.js.map → delegation-QXZ4MPPH.js.map} +1 -1
- package/dist/derivations/index.js +12 -12
- package/dist/derive-VGS7FKE3.js +22 -0
- package/dist/directory/index.js +46 -0
- package/dist/dispatch-EGGC7UD7.js +72 -0
- package/dist/dispatch-EGGC7UD7.js.map +1 -0
- package/dist/dispatch-GDSTUTVP.js +194 -0
- package/dist/dispatch-GDSTUTVP.js.map +1 -0
- package/dist/{enclave-TKPN2G2U.js → enclave-SPEEDYZ4.js} +13 -11
- package/dist/executor-IEBLTBCW.js +9 -0
- package/dist/executor-OTF556PL.js +28 -0
- package/dist/executor-RM7XWQDU.js +9 -0
- package/dist/export-accessible-P42BQ4PB.js +23 -0
- package/dist/extract-partition-TCYXRWBN.js +38 -0
- package/dist/{fanout-sidecar-B5LVUMQX.js → fanout-sidecar-SSMRSC2L.js} +9 -9
- package/dist/find-OZMTRIK3.js +11 -0
- package/dist/forget/index.js +11 -11
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +16 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +16 -14
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +42 -42
- package/dist/index.js +332 -2106
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +4 -2
- package/dist/indexing/index.js.map +1 -1
- package/dist/introspection/index.js +28 -0
- package/dist/issue-FCKN5O6C.js +19 -0
- package/dist/kernel/best-effort-revert.d.ts +9 -1
- package/dist/kernel/collection-config.d.ts +12 -70
- package/dist/kernel/collection.d.ts +11 -23
- package/dist/kernel/enclave/crypto.d.ts +8 -8
- package/dist/kernel/enclave/index.d.ts +4 -4
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +8 -0
- package/dist/kernel/errors.d.ts +41 -22
- package/dist/kernel/lazy.d.ts +30 -0
- package/dist/kernel/noydb.d.ts +81 -124
- package/dist/kernel/query/builder.d.ts +10 -10
- package/dist/kernel/query/index.d.ts +0 -6
- package/dist/kernel/query/scan-builder.d.ts +4 -4
- package/dist/kernel/sync-policy.d.ts +76 -4
- package/dist/kernel/types.d.ts +187 -86
- package/dist/kernel/validation.d.ts +33 -33
- package/dist/kernel/vault.d.ts +41 -229
- package/dist/kernel/via/dispatch.d.ts +7 -0
- package/dist/{ledger-PTK7XZYT.js → ledger-6XBEVWYP.js} +11 -11
- package/dist/liberate-CYUOS4NC.js +24 -0
- package/dist/{link-set-SLJHDNRB.js → link-set-NK6L2A5S.js} +11 -11
- package/dist/materialized-views/index.js +22 -19
- package/dist/money/index.js +31 -0
- package/dist/noydb-FZZIMLCI.js +81 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +21 -17
- package/dist/pod/index.js +26 -12
- package/dist/{policy-YDLCOX4P.js → policy/index.js} +6 -6
- package/dist/port/with/archive-strategy.d.ts +31 -0
- package/dist/port/with/blob-strategy.d.ts +15 -5
- package/dist/port/with/collection-options.d.ts +171 -0
- package/dist/port/with/collection-registries.d.ts +62 -0
- package/dist/port/with/strategies.d.ts +134 -0
- package/dist/port/with/team-strategy.d.ts +3 -2
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-2YHSADFI.js → post-register-VFIYISUK.js} +6 -6
- package/dist/query/index.js +6 -46
- package/dist/{aggregate → reduce}/index.js +24 -17
- package/dist/reduce/index.js.map +1 -0
- package/dist/register-UKU2J6MN.js +25 -0
- package/dist/registry-2VCWVHZS.js +19 -0
- package/dist/registry-7Y5WF7GS.js +9 -0
- package/dist/{registry-VW6P6A3J.js → registry-BWD2ED52.js} +2 -2
- package/dist/registry-DTWRJLSF.js +18 -0
- package/dist/request-withdrawal-JYDZ5XY2.js +31 -0
- package/dist/{reveal-HWO4YMTJ.js → reveal-CL2BCW6A.js} +6 -6
- package/dist/revoke-2TSAD2T4.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +26 -0
- package/dist/sealed-record/index.js +12 -12
- package/dist/search/index.js +36 -0
- package/dist/{seed-3ZMF5EQA.js → seed-NUVJEL7T.js} +12 -12
- package/dist/seed-NUVJEL7T.js.map +1 -0
- package/dist/sequence/index.js +30 -0
- package/dist/session/index.js +13 -9
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +6 -2
- package/dist/shadow/index.js.map +1 -1
- package/dist/share-link/index.d.ts +19 -0
- package/dist/share-link/index.js +201 -0
- package/dist/share-link/index.js.map +1 -0
- package/dist/share-link/share-link.d.ts +123 -0
- package/dist/signer-K7Z2EOMG.js +25 -0
- package/dist/snapshots/index.js +14 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-VZL4OGUB.js → stale-A4J26OIC.js} +11 -10
- package/dist/storage-YVHZUISN.js +23 -0
- package/dist/store/index.js +22 -0
- package/dist/{store-coordination-provider-FKX3F6TQ.js → store-coordination-provider-EWRZL7XF.js} +3 -3
- package/dist/sync/index.js +15 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +33 -47
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/{tx → transactions}/index.js +7 -3
- package/dist/transactions/index.js.map +1 -0
- package/dist/util/index.js +1 -1
- package/dist/{verify-26Y5GNMK.js → verify-7XWHJWUN.js} +5 -5
- package/dist/via/blob/active.d.ts +23 -7
- package/dist/via/blob/binding.d.ts +1 -1
- package/dist/via/blob/index.d.ts +7 -1
- package/dist/via/i18n/core.d.ts +1 -1
- package/dist/via/i18n/index.d.ts +2 -0
- package/dist/via/money/money-reducer.d.ts +2 -2
- package/dist/walk-P5D6CF4V.js +21 -0
- package/dist/with-audit/consent/index.d.ts +2 -0
- package/dist/with-audit/forget/active.d.ts +3 -3
- package/dist/with-audit/forget/index.d.ts +6 -5
- package/dist/with-audit/forget/strategy.d.ts +3 -3
- package/dist/with-audit/guards/executor.d.ts +4 -4
- package/dist/with-audit/guards/immutable-guard.d.ts +3 -3
- package/dist/with-audit/guards/index.d.ts +1 -1
- package/dist/with-audit/guards/registry.d.ts +3 -3
- package/dist/with-audit/guards/transition-guard.d.ts +3 -3
- package/dist/with-audit/guards/types.d.ts +10 -10
- package/dist/with-audit/guards/with-guard.d.ts +2 -2
- package/dist/with-audit/periods/index.d.ts +2 -0
- package/dist/with-audit/periods/periods.d.ts +1 -16
- package/dist/with-audit/periods/vault-facade.d.ts +6 -0
- package/dist/with-audit/periods/window.d.ts +16 -0
- package/dist/with-audit/portability/export-accessible.d.ts +4 -4
- package/dist/with-audit/portability/request-withdrawal.d.ts +3 -3
- package/dist/with-audit/portability/withdraw-accessible.d.ts +2 -2
- package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
- package/dist/with-audit/tiers/index.d.ts +1 -0
- package/dist/with-cargo/adopt-partition.d.ts +7 -7
- package/dist/{legacy/kernel.d.ts → with-cargo/floor.d.ts} +4 -4
- package/dist/with-cargo/index.d.ts +15 -2
- package/dist/with-commit/crdt/index.d.ts +2 -0
- package/dist/with-commit/history/index.d.ts +2 -0
- package/dist/with-commit/history/time-machine.d.ts +2 -2
- package/dist/with-commit/numbering/descriptor.d.ts +16 -6
- package/dist/with-commit/tx/active.d.ts +5 -5
- package/dist/with-commit/tx/index.d.ts +2 -2
- package/dist/with-commit/tx/invariants.d.ts +1 -1
- package/dist/with-commit/tx/strategy.d.ts +3 -3
- package/dist/with-fork/shadow/index.d.ts +2 -0
- package/dist/with-fork/snapshots/active.d.ts +2 -2
- package/dist/with-fork/snapshots/index.d.ts +3 -1
- package/dist/with-fork/snapshots/noydb-facade.d.ts +3 -3
- package/dist/with-fork/snapshots/strategy.d.ts +2 -2
- package/dist/with-formula/derivations/dispatch.d.ts +98 -0
- package/dist/with-formula/derivations/executor.d.ts +2 -2
- package/dist/with-formula/derivations/index.d.ts +4 -1
- package/dist/with-formula/derivations/registry.d.ts +3 -3
- package/dist/with-formula/derivations/stale.d.ts +2 -2
- package/dist/with-formula/derivations/types.d.ts +3 -3
- package/dist/with-formula/derivations/with-derivation.d.ts +2 -2
- package/dist/with-formula/derivations/with-rollup.d.ts +15 -8
- package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +3 -3
- package/dist/with-formula/materialized-views/dispatch.d.ts +75 -0
- package/dist/with-formula/materialized-views/index.d.ts +2 -1
- package/dist/with-formula/materialized-views/registry.d.ts +4 -4
- package/dist/with-formula/materialized-views/types.d.ts +11 -11
- package/dist/with-formula/materialized-views/with-materialized-view.d.ts +2 -2
- package/dist/with-formula/overlay-views/index.d.ts +1 -1
- package/dist/with-formula/overlay-views/registry.d.ts +4 -4
- package/dist/with-formula/overlay-views/types.d.ts +3 -3
- package/dist/with-formula/overlay-views/virtual-collection.d.ts +2 -2
- package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +2 -2
- package/dist/with-lookup/indexing/active.d.ts +5 -5
- package/dist/with-lookup/indexing/index.d.ts +3 -1
- package/dist/with-lookup/indexing/strategy.d.ts +3 -3
- package/dist/with-lookup/{aggregate → reduce}/active.d.ts +8 -8
- package/dist/with-lookup/{aggregate → reduce}/groupby.d.ts +21 -21
- package/dist/with-lookup/reduce/index.d.ts +34 -0
- package/dist/with-lookup/{aggregate → reduce}/reducers.d.ts +11 -12
- package/dist/with-lookup/{aggregate/aggregation.d.ts → reduce/reduction.d.ts} +21 -21
- package/dist/with-lookup/{aggregate → reduce}/strategy.d.ts +15 -15
- package/dist/with-lookup/search/build-docs.d.ts +7 -2
- package/dist/with-lookup/search/index.d.ts +1 -1
- package/dist/with-party/broker/index.d.ts +1 -0
- package/dist/with-party/broker/seed.d.ts +1 -1
- package/dist/with-party/custody/liberate.d.ts +3 -3
- package/dist/with-party/directory/cover/index.d.ts +1 -5
- package/dist/with-party/directory/cover/schema.d.ts +0 -6
- package/dist/with-party/directory/cover/storage.d.ts +0 -8
- package/dist/with-party/directory/cover/types.d.ts +0 -21
- package/dist/with-party/directory/index.d.ts +2 -0
- package/dist/with-party/session/dev-unlock.d.ts +2 -2
- package/dist/with-party/session/index.d.ts +2 -0
- package/dist/with-party/session/session.d.ts +2 -2
- package/dist/with-party/team/deed.d.ts +8 -8
- package/dist/with-party/team/index.d.ts +4 -7
- package/dist/with-party/team/keyring.d.ts +83 -35
- package/dist/with-party/team/{managed-passphrase.d.ts → managed-secret.d.ts} +27 -27
- package/dist/with-party/team/noydb-facade.d.ts +43 -42
- package/dist/with-party/team/peer-recover.d.ts +13 -13
- package/dist/with-party/team/recovery.d.ts +5 -5
- package/dist/with-party/team/rotate-recover.d.ts +30 -30
- package/dist/with-pod/bundle.d.ts +30 -32
- package/dist/with-pod/format.d.ts +2 -2
- package/dist/with-pod/index.d.ts +2 -1
- package/dist/with-shape/blobs/blob-compaction.d.ts +43 -3
- package/dist/with-shape/blobs/blob-pinning.d.ts +112 -0
- package/dist/with-shape/blobs/blob-set.d.ts +86 -2
- package/dist/with-shape/introspection/index.d.ts +6 -0
- package/dist/with-shape/schema-update/index.d.ts +1 -0
- package/dist/with-store/index.d.ts +3 -2
- package/dist/with-store/route-store.d.ts +1 -1
- package/dist/{with-party/team/sync-active.d.ts → with-sync/active.d.ts} +1 -1
- package/dist/{with-party/team/sync-credentials.d.ts → with-sync/credentials.d.ts} +3 -3
- package/dist/{with-party/team/sync.d.ts → with-sync/engine.d.ts} +17 -4
- package/dist/{with-party/sync → with-sync}/index.d.ts +4 -2
- package/dist/with-sync/period-scope.d.ts +78 -0
- package/dist/{with-party/team → with-sync}/presence.d.ts +2 -2
- package/dist/{with-party/team/sync-strategy.d.ts → with-sync/strategy.d.ts} +6 -6
- package/dist/{with-party/team/sync-transaction.d.ts → with-sync/transaction.d.ts} +3 -3
- package/dist/withdraw-accessible-A2PWF5MZ.js +28 -0
- package/dist/withdraw-accessible-A2PWF5MZ.js.map +1 -0
- package/package.json +49 -36
- package/dist/aggregate/index.js.map +0 -1
- package/dist/api-3A3S4SHH.js +0 -20
- package/dist/as/index.js +0 -30
- package/dist/at/index.js +0 -1
- package/dist/bundle/index.js +0 -153
- package/dist/bundle/index.js.map +0 -1
- package/dist/by/index.js +0 -11
- package/dist/chunk-554KLAAN.js.map +0 -1
- package/dist/chunk-5PFOMHTB.js.map +0 -1
- package/dist/chunk-5WZXVULX.js.map +0 -1
- package/dist/chunk-6NQMXTYC.js.map +0 -1
- package/dist/chunk-6XE5TMPR.js.map +0 -1
- package/dist/chunk-A5BDDEXK.js.map +0 -1
- package/dist/chunk-ANATMTOA.js +0 -205
- package/dist/chunk-ANATMTOA.js.map +0 -1
- package/dist/chunk-BOKIKJJB.js.map +0 -1
- package/dist/chunk-CHFZDSE4.js +0 -1
- package/dist/chunk-DDHM2TLX.js.map +0 -1
- package/dist/chunk-DSBQODMZ.js.map +0 -1
- package/dist/chunk-EWPOHMN2.js +0 -255
- package/dist/chunk-EWPOHMN2.js.map +0 -1
- package/dist/chunk-FXZDAV62.js.map +0 -1
- package/dist/chunk-GDG5VVYG.js.map +0 -1
- package/dist/chunk-GWKAVKHI.js.map +0 -1
- package/dist/chunk-H2KSZMIX.js.map +0 -1
- package/dist/chunk-HOONYZY2.js.map +0 -1
- package/dist/chunk-HQBM64EE.js.map +0 -1
- package/dist/chunk-IAO54J4R.js.map +0 -1
- package/dist/chunk-IFJTPAQQ.js.map +0 -1
- package/dist/chunk-IK43HLDQ.js.map +0 -1
- package/dist/chunk-ISMV2QVG.js.map +0 -1
- package/dist/chunk-JBBSYJHP.js.map +0 -1
- package/dist/chunk-JFCV5QIK.js.map +0 -1
- package/dist/chunk-JRBNCUNT.js.map +0 -1
- package/dist/chunk-LB7FD65R.js +0 -163
- package/dist/chunk-LB7FD65R.js.map +0 -1
- package/dist/chunk-ONTBCHCP.js.map +0 -1
- package/dist/chunk-PK6JIDQ4.js.map +0 -1
- package/dist/chunk-RDXW3OBQ.js.map +0 -1
- package/dist/chunk-RFI7GGFO.js.map +0 -1
- package/dist/chunk-S3BFKGET.js.map +0 -1
- package/dist/chunk-SV6EAJEP.js.map +0 -1
- package/dist/chunk-T36RFODW.js.map +0 -1
- package/dist/chunk-T3GY65MA.js.map +0 -1
- package/dist/chunk-TAGR72IR.js.map +0 -1
- package/dist/chunk-TIGPQDYP.js +0 -14
- package/dist/chunk-TIGPQDYP.js.map +0 -1
- package/dist/chunk-U6JMEH2P.js.map +0 -1
- package/dist/chunk-UDSR4X4L.js.map +0 -1
- package/dist/chunk-UHNGNKLV.js.map +0 -1
- package/dist/chunk-VCBHAE4R.js.map +0 -1
- package/dist/chunk-VCTXU4AT.js.map +0 -1
- package/dist/chunk-VEALDPHW.js.map +0 -1
- package/dist/chunk-VKCADNMR.js.map +0 -1
- package/dist/chunk-VQNJ7UZL.js.map +0 -1
- package/dist/chunk-W2OG6JOL.js.map +0 -1
- package/dist/chunk-WG4QBZDN.js.map +0 -1
- package/dist/chunk-WHXXI3W5.js.map +0 -1
- package/dist/chunk-WKGF2TJR.js.map +0 -1
- package/dist/chunk-WNGGJWF7.js.map +0 -1
- package/dist/chunk-XTHCN77N.js.map +0 -1
- package/dist/chunk-YCH5GBN6.js +0 -99
- package/dist/chunk-YCH5GBN6.js.map +0 -1
- package/dist/chunk-YMUGBZN2.js.map +0 -1
- package/dist/collection-facade-KMBWNCYP.js +0 -44
- package/dist/cover-QJRXINN5.js +0 -52
- package/dist/delegation-SU6CV3W7.js +0 -25
- package/dist/derive-6RWU4EOA.js +0 -21
- package/dist/executor-KGNLJD6M.js +0 -9
- package/dist/executor-UX4FASYZ.js +0 -26
- package/dist/executor-XGIS6CR7.js +0 -9
- package/dist/export-accessible-LKW3QV22.js +0 -23
- package/dist/extract-partition-UP2ARO75.js +0 -38
- package/dist/find-YS6XWB46.js +0 -11
- package/dist/in/index.js +0 -1
- package/dist/issue-3ACYX7LO.js +0 -19
- package/dist/legacy/bundle.d.ts +0 -30
- package/dist/liberate-MQQXBUCY.js +0 -24
- package/dist/noydb-ANIW5FLE.js +0 -69
- package/dist/on/index.js +0 -17
- package/dist/port/as/index.d.ts +0 -26
- package/dist/port/at/index.d.ts +0 -18
- package/dist/port/in/index.d.ts +0 -21
- package/dist/port/on/index.d.ts +0 -27
- package/dist/port/ui/index.d.ts +0 -21
- package/dist/port/with/index.d.ts +0 -18
- package/dist/register-PAM3ASRZ.js +0 -23
- package/dist/registry-4S2U2TR4.js +0 -19
- package/dist/registry-NPOWJHC4.js +0 -9
- package/dist/registry-VZ3CCI2R.js +0 -18
- package/dist/request-withdrawal-DI3H5WUI.js +0 -31
- package/dist/revoke-R5CZSVUT.js +0 -24
- package/dist/seed-3ZMF5EQA.js.map +0 -1
- package/dist/signer-MBVHW4WE.js +0 -25
- package/dist/storage-3MEJUENZ.js +0 -23
- package/dist/tx/index.js.map +0 -1
- package/dist/ui/index.js +0 -1
- package/dist/with/index.js +0 -31
- package/dist/with-lookup/aggregate/index.d.ts +0 -23
- package/dist/withdraw-accessible-TZDATQVR.js +0 -28
- /package/dist/{api-3A3S4SHH.js.map → api-ZDKTWNBB.js.map} +0 -0
- /package/dist/{backup-YPUEKIJC.js.map → backup-2UX7PRM5.js.map} +0 -0
- /package/dist/{chunk-IY23KFNZ.js.map → chunk-35NMVJ7I.js.map} +0 -0
- /package/dist/{chunk-RTEK4C4I.js.map → chunk-4JQK3L4V.js.map} +0 -0
- /package/dist/{chunk-3ELCWU56.js.map → chunk-4ZKNC6A6.js.map} +0 -0
- /package/dist/{chunk-VAIS3SOM.js.map → chunk-55LX6FSX.js.map} +0 -0
- /package/dist/{chunk-6HPG2YNX.js.map → chunk-5DRROK5W.js.map} +0 -0
- /package/dist/{chunk-S6Q37VGE.js.map → chunk-5GQEU4DN.js.map} +0 -0
- /package/dist/{chunk-ZXEZCY6F.js.map → chunk-63FE525P.js.map} +0 -0
- /package/dist/{chunk-JVBO4SZL.js.map → chunk-6UBZ6I5Z.js.map} +0 -0
- /package/dist/{chunk-VRBTNCM4.js.map → chunk-ABS7FMMD.js.map} +0 -0
- /package/dist/{chunk-M75ZZHSR.js.map → chunk-BLBAQRBM.js.map} +0 -0
- /package/dist/{chunk-WOM2HTML.js.map → chunk-CI32CAFS.js.map} +0 -0
- /package/dist/{chunk-EO43ANYJ.js.map → chunk-DABACXEF.js.map} +0 -0
- /package/dist/{chunk-CJ5KKU6X.js.map → chunk-DMH3VZU5.js.map} +0 -0
- /package/dist/{chunk-WZSHL6DQ.js.map → chunk-DZ2JXHWK.js.map} +0 -0
- /package/dist/{chunk-Z4PD65VQ.js.map → chunk-EE7UHLKH.js.map} +0 -0
- /package/dist/{chunk-RNG4VRP4.js.map → chunk-EKRSCRNM.js.map} +0 -0
- /package/dist/{chunk-MT62YSPZ.js.map → chunk-FRMPM7WG.js.map} +0 -0
- /package/dist/{as/index.js.map → chunk-GJW4HX2O.js.map} +0 -0
- /package/dist/{chunk-KS6SAVCZ.js.map → chunk-GU3IP74F.js.map} +0 -0
- /package/dist/{chunk-SMIRGMS7.js.map → chunk-IXNCZTWA.js.map} +0 -0
- /package/dist/{chunk-WQIYTNJV.js.map → chunk-IXTSNGYY.js.map} +0 -0
- /package/dist/{chunk-NCCBLYEB.js.map → chunk-JJZGIE4U.js.map} +0 -0
- /package/dist/{chunk-DRWBEDYO.js.map → chunk-JYJFGD2H.js.map} +0 -0
- /package/dist/{chunk-XJMBYYQK.js.map → chunk-LNZKOUJR.js.map} +0 -0
- /package/dist/{chunk-R3BLCFD2.js.map → chunk-MBKVNOJS.js.map} +0 -0
- /package/dist/{chunk-N6WF5PKC.js.map → chunk-NFZGZ4AK.js.map} +0 -0
- /package/dist/{chunk-THVIPWRF.js.map → chunk-PEATRIYJ.js.map} +0 -0
- /package/dist/{chunk-YZQOGE2L.js.map → chunk-QDIH2744.js.map} +0 -0
- /package/dist/{chunk-6HY2X62D.js.map → chunk-QJNCB5SK.js.map} +0 -0
- /package/dist/{chunk-2PCAVW2I.js.map → chunk-SHEEBRZ4.js.map} +0 -0
- /package/dist/{chunk-RA5VTXXG.js.map → chunk-V6UQZA2H.js.map} +0 -0
- /package/dist/{chunk-QDPZWTN2.js.map → chunk-W3G5REIU.js.map} +0 -0
- /package/dist/{chunk-A4FXFAKF.js.map → chunk-W3L64Y3J.js.map} +0 -0
- /package/dist/{chunk-XDIAFPUM.js.map → chunk-WLXMTYGO.js.map} +0 -0
- /package/dist/{chunk-RJ6K6K5M.js.map → chunk-X3F5YJG2.js.map} +0 -0
- /package/dist/{chunk-YTGDPCPW.js.map → chunk-Y6B6HVKC.js.map} +0 -0
- /package/dist/{classified-marker-QWMASIT7.js.map → classified-marker-7PKJBFCG.js.map} +0 -0
- /package/dist/{at/index.js.map → collection-facade-6I5K5IOD.js.map} +0 -0
- /package/dist/{by/index.js.map → computed-AB45PS4V.js.map} +0 -0
- /package/dist/{in → cover}/index.js.map +0 -0
- /package/dist/{on → custody}/index.js.map +0 -0
- /package/dist/{dead-filter-66VGI6JV.js.map → dead-filter-FL3WIUZS.js.map} +0 -0
- /package/dist/{chunk-CHFZDSE4.js.map → derive-VGS7FKE3.js.map} +0 -0
- /package/dist/{ui → directory}/index.js.map +0 -0
- /package/dist/{collection-facade-KMBWNCYP.js.map → enclave-SPEEDYZ4.js.map} +0 -0
- /package/dist/{computed-DSMPXG2Y.js.map → executor-IEBLTBCW.js.map} +0 -0
- /package/dist/{cover-QJRXINN5.js.map → executor-OTF556PL.js.map} +0 -0
- /package/dist/{delegation-SU6CV3W7.js.map → executor-RM7XWQDU.js.map} +0 -0
- /package/dist/{derive-6RWU4EOA.js.map → export-accessible-P42BQ4PB.js.map} +0 -0
- /package/dist/{enclave-TKPN2G2U.js.map → extract-partition-TCYXRWBN.js.map} +0 -0
- /package/dist/{fanout-sidecar-B5LVUMQX.js.map → fanout-sidecar-SSMRSC2L.js.map} +0 -0
- /package/dist/{executor-KGNLJD6M.js.map → find-OZMTRIK3.js.map} +0 -0
- /package/dist/{with → introspection}/index.js.map +0 -0
- /package/dist/{executor-UX4FASYZ.js.map → issue-FCKN5O6C.js.map} +0 -0
- /package/dist/{executor-XGIS6CR7.js.map → ledger-6XBEVWYP.js.map} +0 -0
- /package/dist/{export-accessible-LKW3QV22.js.map → liberate-CYUOS4NC.js.map} +0 -0
- /package/dist/{extract-partition-UP2ARO75.js.map → link-set-NK6L2A5S.js.map} +0 -0
- /package/dist/{find-YS6XWB46.js.map → money/index.js.map} +0 -0
- /package/dist/{issue-3ACYX7LO.js.map → noydb-FZZIMLCI.js.map} +0 -0
- /package/dist/{ledger-PTK7XZYT.js.map → policy/index.js.map} +0 -0
- /package/dist/{post-register-2YHSADFI.js.map → post-register-VFIYISUK.js.map} +0 -0
- /package/dist/{liberate-MQQXBUCY.js.map → register-UKU2J6MN.js.map} +0 -0
- /package/dist/{link-set-SLJHDNRB.js.map → registry-2VCWVHZS.js.map} +0 -0
- /package/dist/{noydb-ANIW5FLE.js.map → registry-7Y5WF7GS.js.map} +0 -0
- /package/dist/{policy-YDLCOX4P.js.map → registry-BWD2ED52.js.map} +0 -0
- /package/dist/{register-PAM3ASRZ.js.map → registry-DTWRJLSF.js.map} +0 -0
- /package/dist/{registry-4S2U2TR4.js.map → request-withdrawal-JYDZ5XY2.js.map} +0 -0
- /package/dist/{reveal-HWO4YMTJ.js.map → reveal-CL2BCW6A.js.map} +0 -0
- /package/dist/{registry-NPOWJHC4.js.map → revoke-2TSAD2T4.js.map} +0 -0
- /package/dist/{registry-VW6P6A3J.js.map → schema-update/index.js.map} +0 -0
- /package/dist/{registry-VZ3CCI2R.js.map → search/index.js.map} +0 -0
- /package/dist/{request-withdrawal-DI3H5WUI.js.map → sequence/index.js.map} +0 -0
- /package/dist/{revoke-R5CZSVUT.js.map → signer-K7Z2EOMG.js.map} +0 -0
- /package/dist/{signer-MBVHW4WE.js.map → stale-A4J26OIC.js.map} +0 -0
- /package/dist/{stale-VZL4OGUB.js.map → storage-YVHZUISN.js.map} +0 -0
- /package/dist/{storage-3MEJUENZ.js.map → store/index.js.map} +0 -0
- /package/dist/{store-coordination-provider-FKX3F6TQ.js.map → store-coordination-provider-EWRZL7XF.js.map} +0 -0
- /package/dist/{verify-26Y5GNMK.js.map → verify-7XWHJWUN.js.map} +0 -0
- /package/dist/{withdraw-accessible-TZDATQVR.js.map → walk-P5D6CF4V.js.map} +0 -0
- /package/dist/with-lookup/{aggregate → reduce}/canonical-key.d.ts +0 -0
- /package/dist/{with-party → with-sync}/tab-coordination.d.ts +0 -0
- /package/dist/{with-party → with-sync}/tab-write-relay.d.ts +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
readDirectoryConfig,
|
|
6
6
|
readUserVisibility,
|
|
7
7
|
saveUserEnvelope
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JJZGIE4U.js";
|
|
9
9
|
import {
|
|
10
10
|
base64ToBuffer,
|
|
11
11
|
bufferToBase64,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
generateSalt,
|
|
17
17
|
unwrapKey,
|
|
18
18
|
wrapKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AKKRXT23.js";
|
|
20
20
|
import {
|
|
21
21
|
NOYDB_FORMAT_VERSION,
|
|
22
22
|
NOYDB_KEYRING_VERSION
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QBAC3GXA.js";
|
|
24
24
|
import {
|
|
25
25
|
DirectoryDisabledError,
|
|
26
26
|
InvalidKeyError,
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
PrivilegeEscalationError,
|
|
33
33
|
USER_ENVELOPE_COLLECTION,
|
|
34
34
|
ValidationError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QZWTRENR.js";
|
|
36
36
|
|
|
37
37
|
// src/kernel/validation.ts
|
|
38
|
-
var
|
|
38
|
+
var WeakSecretError = class extends NoydbError {
|
|
39
39
|
reason;
|
|
40
40
|
suggestion;
|
|
41
41
|
constructor(reason, suggestion) {
|
|
42
|
-
super("
|
|
43
|
-
this.name = "
|
|
42
|
+
super("WEAK_SECRET", `Weak secret (${reason}). ${suggestion}`);
|
|
43
|
+
this.name = "WeakSecretError";
|
|
44
44
|
this.reason = reason;
|
|
45
45
|
this.suggestion = suggestion;
|
|
46
46
|
}
|
|
@@ -56,7 +56,7 @@ var SUGGESTIONS = {
|
|
|
56
56
|
"word-too-short": 'Each word must be at least 3 characters. Drop short fillers like "a", "is", "of".',
|
|
57
57
|
"repeated-adjacent": "Avoid repeating the same word twice in a row."
|
|
58
58
|
};
|
|
59
|
-
function
|
|
59
|
+
function validateSecret(s, opts) {
|
|
60
60
|
if (opts?.customValidator) {
|
|
61
61
|
return opts.customValidator(s);
|
|
62
62
|
}
|
|
@@ -94,14 +94,14 @@ function validatePassphrase(s, opts) {
|
|
|
94
94
|
}
|
|
95
95
|
return { ok: true, words: words.length };
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
if (opts?.
|
|
99
|
-
const result =
|
|
97
|
+
function assertStrongSecret(s, opts) {
|
|
98
|
+
if (opts?.allowWeakSecret) return;
|
|
99
|
+
const result = validateSecret(s, opts);
|
|
100
100
|
if (result.ok) return;
|
|
101
|
-
throw new
|
|
101
|
+
throw new WeakSecretError(result.reason, SUGGESTIONS[result.reason]);
|
|
102
102
|
}
|
|
103
|
-
function estimateEntropy(
|
|
104
|
-
const result =
|
|
103
|
+
function estimateEntropy(secret) {
|
|
104
|
+
const result = validateSecret(secret);
|
|
105
105
|
if (!result.ok) return 0;
|
|
106
106
|
return Math.round(result.words * Math.log2(7776));
|
|
107
107
|
}
|
|
@@ -164,8 +164,9 @@ async function verifyKeyringCanary(wrappedCanary, kek) {
|
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
async function loadKeyring(
|
|
168
|
-
const
|
|
167
|
+
async function loadKeyring(store, vault, opts) {
|
|
168
|
+
const { userId, secret } = opts;
|
|
169
|
+
const envelope = await store.get(vault, "_keyring", userId);
|
|
169
170
|
if (!envelope) {
|
|
170
171
|
throw new NoAccessError(`No keyring found for user "${userId}" in vault "${vault}"`);
|
|
171
172
|
}
|
|
@@ -177,7 +178,7 @@ async function loadKeyring(adapter, vault, userId, passphrase) {
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
const salt = base64ToBuffer(keyringFile.salt);
|
|
180
|
-
const kek = await deriveKey(
|
|
181
|
+
const kek = await deriveKey(secret, salt);
|
|
181
182
|
const canaryOk = keyringFile.canary !== void 0 ? await verifyKeyringCanary(keyringFile.canary, kek) : null;
|
|
182
183
|
const deks = /* @__PURE__ */ new Map();
|
|
183
184
|
const failedCollections = [];
|
|
@@ -237,12 +238,13 @@ async function assertKeyringOpenAllowed(store, vault, userId, create) {
|
|
|
237
238
|
);
|
|
238
239
|
}
|
|
239
240
|
}
|
|
240
|
-
async function createOwnerKeyring(
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
async function createOwnerKeyring(store, vault, opts) {
|
|
242
|
+
const { userId, secret } = opts;
|
|
243
|
+
if (opts.validate && !opts.allowWeakSecret) {
|
|
244
|
+
assertStrongSecret(secret, opts);
|
|
243
245
|
}
|
|
244
246
|
const salt = generateSalt();
|
|
245
|
-
const kek = await deriveKey(
|
|
247
|
+
const kek = await deriveKey(secret, salt);
|
|
246
248
|
const userEnvelopeDek = await generateDEK();
|
|
247
249
|
const wrappedUserEnvelopeDek = await wrapKey(userEnvelopeDek, kek);
|
|
248
250
|
const canary = await mintKeyringCanary(kek);
|
|
@@ -258,7 +260,7 @@ async function createOwnerKeyring(adapter, vault, userId, passphrase, passphrase
|
|
|
258
260
|
granted_by: userId,
|
|
259
261
|
canary
|
|
260
262
|
};
|
|
261
|
-
await writeKeyringFile(
|
|
263
|
+
await writeKeyringFile(store, vault, userId, keyringFile);
|
|
262
264
|
return {
|
|
263
265
|
userId,
|
|
264
266
|
displayName: userId,
|
|
@@ -270,10 +272,10 @@ async function createOwnerKeyring(adapter, vault, userId, passphrase, passphrase
|
|
|
270
272
|
authenticators: []
|
|
271
273
|
};
|
|
272
274
|
}
|
|
273
|
-
async function grant(
|
|
275
|
+
async function grant(store, vault, callerKeyring, options) {
|
|
274
276
|
if (!callerKeyring.kek) {
|
|
275
277
|
throw new ValidationError(
|
|
276
|
-
"grant: caller keyring has no KEK \u2014 tier-2 wrap-DEKs and tier-3 PIN-resume sessions cannot grant access to other users. Re-authenticate at tier 1 (
|
|
278
|
+
"grant: caller keyring has no KEK \u2014 tier-2 wrap-DEKs and tier-3 PIN-resume sessions cannot grant access to other users. Re-authenticate at tier 1 (secret) before granting."
|
|
277
279
|
);
|
|
278
280
|
}
|
|
279
281
|
if (!canGrant(callerKeyring.role, options.role)) {
|
|
@@ -281,12 +283,12 @@ async function grant(adapter, vault, callerKeyring, options) {
|
|
|
281
283
|
`Role "${callerKeyring.role}" cannot grant role "${options.role}"`
|
|
282
284
|
);
|
|
283
285
|
}
|
|
284
|
-
if (options.
|
|
285
|
-
|
|
286
|
+
if (options.validateSecret && !options.allowWeakSecret) {
|
|
287
|
+
assertStrongSecret(options.secret);
|
|
286
288
|
}
|
|
287
289
|
const permissions = resolvePermissions(options.role, options.permissions);
|
|
288
290
|
const newSalt = generateSalt();
|
|
289
|
-
const newKek = await deriveKey(options.
|
|
291
|
+
const newKek = await deriveKey(options.secret, newSalt);
|
|
290
292
|
const granteeMayHoldSecrets = options.role === "owner" || options.role === "admin";
|
|
291
293
|
const wrappedDeks = {};
|
|
292
294
|
for (const collName of Object.keys(permissions)) {
|
|
@@ -328,12 +330,12 @@ async function grant(adapter, vault, callerKeyring, options) {
|
|
|
328
330
|
...options.exportCapability !== void 0 && { export_capability: options.exportCapability },
|
|
329
331
|
...options.importCapability !== void 0 && { import_capability: options.importCapability }
|
|
330
332
|
};
|
|
331
|
-
await writeKeyringFile(
|
|
333
|
+
await writeKeyringFile(store, vault, options.userId, keyringFile);
|
|
332
334
|
const userEnvelopeDek = callerKeyring.deks.get(USER_ENVELOPE_COLLECTION);
|
|
333
335
|
if (userEnvelopeDek) {
|
|
334
336
|
const initialPayload = options.initialProfile ?? {};
|
|
335
337
|
await saveUserEnvelope(
|
|
336
|
-
|
|
338
|
+
store,
|
|
337
339
|
vault,
|
|
338
340
|
options.userId,
|
|
339
341
|
initialPayload,
|
|
@@ -341,11 +343,11 @@ async function grant(adapter, vault, callerKeyring, options) {
|
|
|
341
343
|
);
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
|
-
async function findAdminDescendants(
|
|
345
|
-
const allUserIds = await
|
|
346
|
+
async function findAdminDescendants(store, vault, rootUserId) {
|
|
347
|
+
const allUserIds = await store.list(vault, "_keyring");
|
|
346
348
|
const childrenByParent = /* @__PURE__ */ new Map();
|
|
347
349
|
for (const userId of allUserIds) {
|
|
348
|
-
const env = await
|
|
350
|
+
const env = await store.get(vault, "_keyring", userId);
|
|
349
351
|
if (!env) continue;
|
|
350
352
|
const kf = JSON.parse(env._data);
|
|
351
353
|
if (kf.role !== "admin") continue;
|
|
@@ -368,8 +370,8 @@ async function findAdminDescendants(adapter, vault, rootUserId) {
|
|
|
368
370
|
}
|
|
369
371
|
return order;
|
|
370
372
|
}
|
|
371
|
-
async function revoke(
|
|
372
|
-
const targetEnvelope = await
|
|
373
|
+
async function revoke(store, vault, callerKeyring, options) {
|
|
374
|
+
const targetEnvelope = await store.get(vault, "_keyring", options.userId);
|
|
373
375
|
if (!targetEnvelope) {
|
|
374
376
|
throw new NoAccessError(`User "${options.userId}" has no keyring in vault "${vault}"`);
|
|
375
377
|
}
|
|
@@ -383,7 +385,7 @@ async function revoke(adapter, vault, callerKeyring, options) {
|
|
|
383
385
|
const usersToRevoke = [options.userId];
|
|
384
386
|
const affectedCollections = new Set(Object.keys(targetKeyring.deks));
|
|
385
387
|
if (targetKeyring.role === "admin") {
|
|
386
|
-
const descendants = await findAdminDescendants(
|
|
388
|
+
const descendants = await findAdminDescendants(store, vault, options.userId);
|
|
387
389
|
if (descendants.length > 0) {
|
|
388
390
|
if (cascadeMode === "warn") {
|
|
389
391
|
console.warn(
|
|
@@ -391,7 +393,7 @@ async function revoke(adapter, vault, callerKeyring, options) {
|
|
|
391
393
|
);
|
|
392
394
|
} else {
|
|
393
395
|
for (const userId of descendants) {
|
|
394
|
-
const descEnv = await
|
|
396
|
+
const descEnv = await store.get(vault, "_keyring", userId);
|
|
395
397
|
if (!descEnv) continue;
|
|
396
398
|
const descKf = JSON.parse(descEnv._data);
|
|
397
399
|
usersToRevoke.push(userId);
|
|
@@ -401,21 +403,21 @@ async function revoke(adapter, vault, callerKeyring, options) {
|
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
for (const userId of usersToRevoke) {
|
|
404
|
-
await
|
|
405
|
-
await deleteUserEnvelope(
|
|
406
|
-
await deleteUserVisibility(
|
|
406
|
+
await store.delete(vault, "_keyring", userId);
|
|
407
|
+
await deleteUserEnvelope(store, vault, userId);
|
|
408
|
+
await deleteUserVisibility(store, vault, userId);
|
|
407
409
|
}
|
|
408
410
|
if (options.rotateKeys !== false && affectedCollections.size > 0) {
|
|
409
|
-
await rotateKeys(
|
|
411
|
+
await rotateKeys(store, vault, callerKeyring, { collections: [...affectedCollections] });
|
|
410
412
|
}
|
|
411
413
|
}
|
|
412
|
-
async function updateKeyringIdentity(
|
|
414
|
+
async function updateKeyringIdentity(store, vault, callerKeyring, options) {
|
|
413
415
|
if (options.role === void 0 && options.displayName === void 0 && options.permissions === void 0) {
|
|
414
416
|
throw new ValidationError(
|
|
415
417
|
`updateUser: at least one of role / displayName / permissions must be provided (userId: "${options.userId}").`
|
|
416
418
|
);
|
|
417
419
|
}
|
|
418
|
-
const env = await
|
|
420
|
+
const env = await store.get(vault, "_keyring", options.userId);
|
|
419
421
|
if (!env) {
|
|
420
422
|
throw new NoAccessError(
|
|
421
423
|
`updateUser: user "${options.userId}" has no keyring in vault "${vault}".`
|
|
@@ -441,9 +443,10 @@ async function updateKeyringIdentity(adapter, vault, callerKeyring, options) {
|
|
|
441
443
|
},
|
|
442
444
|
...options.permissions !== void 0 && { permissions: options.permissions }
|
|
443
445
|
};
|
|
444
|
-
await writeKeyringFile(
|
|
446
|
+
await writeKeyringFile(store, vault, options.userId, next);
|
|
445
447
|
}
|
|
446
|
-
async function rotateKeys(
|
|
448
|
+
async function rotateKeys(store, vault, callerKeyring, opts) {
|
|
449
|
+
const { collections } = opts;
|
|
447
450
|
if (callerKeyring.role === "custodian") {
|
|
448
451
|
throw new PermissionDeniedError(
|
|
449
452
|
"custodian cannot rotate keys (FR-6: re-key is an owner-only meta-capability; use the Deed owner)"
|
|
@@ -457,9 +460,9 @@ async function rotateKeys(adapter, vault, callerKeyring, collections) {
|
|
|
457
460
|
const oldDek = callerKeyring.deks.get(collName);
|
|
458
461
|
const newDek = newDeks.get(collName);
|
|
459
462
|
if (!oldDek) continue;
|
|
460
|
-
const ids = await
|
|
463
|
+
const ids = await store.list(vault, collName);
|
|
461
464
|
for (const id of ids) {
|
|
462
|
-
const envelope = await
|
|
465
|
+
const envelope = await store.get(vault, collName, id);
|
|
463
466
|
if (!envelope || !envelope._iv) continue;
|
|
464
467
|
const plaintext = await decrypt(envelope._iv, envelope._data, oldDek);
|
|
465
468
|
const { iv, data } = await encrypt(plaintext, newDek);
|
|
@@ -470,25 +473,27 @@ async function rotateKeys(adapter, vault, callerKeyring, collections) {
|
|
|
470
473
|
_iv: iv,
|
|
471
474
|
_data: data
|
|
472
475
|
};
|
|
473
|
-
await
|
|
476
|
+
await store.put(vault, collName, id, newEnvelope);
|
|
474
477
|
}
|
|
475
478
|
}
|
|
476
479
|
for (const [collName, newDek] of newDeks) {
|
|
477
480
|
callerKeyring.deks.set(collName, newDek);
|
|
478
481
|
}
|
|
479
|
-
await persistKeyring(
|
|
480
|
-
const
|
|
482
|
+
await persistKeyring(store, vault, callerKeyring);
|
|
483
|
+
const needsRegrant = [];
|
|
484
|
+
const userIds = await store.list(vault, "_keyring");
|
|
481
485
|
for (const userId of userIds) {
|
|
482
486
|
if (userId === callerKeyring.userId) continue;
|
|
483
|
-
const userEnvelope = await
|
|
487
|
+
const userEnvelope = await store.get(vault, "_keyring", userId);
|
|
484
488
|
if (!userEnvelope) continue;
|
|
485
489
|
const userKeyringFile = JSON.parse(userEnvelope._data);
|
|
486
490
|
const updatedDeks = { ...userKeyringFile.deks };
|
|
487
|
-
for (const collName of collections) {
|
|
488
|
-
delete updatedDeks[collName];
|
|
489
|
-
}
|
|
490
491
|
const updatedPermissions = { ...userKeyringFile.permissions };
|
|
491
492
|
for (const collName of collections) {
|
|
493
|
+
if (collName in updatedDeks || collName in updatedPermissions) {
|
|
494
|
+
needsRegrant.push({ userId, collection: collName });
|
|
495
|
+
}
|
|
496
|
+
delete updatedDeks[collName];
|
|
492
497
|
delete updatedPermissions[collName];
|
|
493
498
|
}
|
|
494
499
|
const updatedKeyring = {
|
|
@@ -496,15 +501,17 @@ async function rotateKeys(adapter, vault, callerKeyring, collections) {
|
|
|
496
501
|
deks: updatedDeks,
|
|
497
502
|
permissions: updatedPermissions
|
|
498
503
|
};
|
|
499
|
-
await writeKeyringFile(
|
|
504
|
+
await writeKeyringFile(store, vault, userId, updatedKeyring);
|
|
500
505
|
}
|
|
506
|
+
return { needsRegrant };
|
|
501
507
|
}
|
|
502
|
-
async function changeSecret(
|
|
503
|
-
|
|
504
|
-
|
|
508
|
+
async function changeSecret(store, vault, keyring, opts) {
|
|
509
|
+
const { newSecret } = opts;
|
|
510
|
+
if (!opts.allowWeakSecret) {
|
|
511
|
+
assertStrongSecret(newSecret, opts);
|
|
505
512
|
}
|
|
506
513
|
const newSalt = generateSalt();
|
|
507
|
-
const newKek = await deriveKey(
|
|
514
|
+
const newKek = await deriveKey(newSecret, newSalt);
|
|
508
515
|
const wrappedDeks = {};
|
|
509
516
|
for (const [collName, dek] of keyring.deks) {
|
|
510
517
|
wrappedDeks[collName] = await wrapKey(dek, newKek);
|
|
@@ -522,7 +529,7 @@ async function changeSecret(adapter, vault, keyring, newPassphrase, passphraseOp
|
|
|
522
529
|
granted_by: keyring.userId,
|
|
523
530
|
canary
|
|
524
531
|
};
|
|
525
|
-
await writeKeyringFile(
|
|
532
|
+
await writeKeyringFile(store, vault, keyring.userId, keyringFile);
|
|
526
533
|
return {
|
|
527
534
|
userId: keyring.userId,
|
|
528
535
|
displayName: keyring.displayName,
|
|
@@ -535,7 +542,7 @@ async function changeSecret(adapter, vault, keyring, newPassphrase, passphraseOp
|
|
|
535
542
|
// Tier-2 slots are NOT preserved through `changeSecret` —
|
|
536
543
|
// each slot wraps the OLD KEK, so the new keyring has no
|
|
537
544
|
// authenticator slots until the user re-enrolls. The higher-level
|
|
538
|
-
// `db.
|
|
545
|
+
// `db.team.rotateSecret()` preserves slots by rewrapping the
|
|
539
546
|
// KEK reference, not the KEK itself.
|
|
540
547
|
authenticators: [],
|
|
541
548
|
...keyring.policy !== void 0 && { policy: keyring.policy }
|
|
@@ -544,13 +551,13 @@ async function changeSecret(adapter, vault, keyring, newPassphrase, passphraseOp
|
|
|
544
551
|
async function buildRecipientKeyringFile(callerKeyring, recipient) {
|
|
545
552
|
if (!callerKeyring.kek) {
|
|
546
553
|
throw new ValidationError(
|
|
547
|
-
"buildRecipientKeyringFile: caller keyring has no KEK \u2014 tier-2 wrap-DEKs and tier-3 PIN-resume sessions cannot create bundle recipients. Re-authenticate at tier 1 (
|
|
554
|
+
"buildRecipientKeyringFile: caller keyring has no KEK \u2014 tier-2 wrap-DEKs and tier-3 PIN-resume sessions cannot create bundle recipients. Re-authenticate at tier 1 (secret) before building a bundle."
|
|
548
555
|
);
|
|
549
556
|
}
|
|
550
557
|
const role = recipient.role ?? "viewer";
|
|
551
558
|
const permissions = resolvePermissions(role, recipient.permissions);
|
|
552
559
|
const newSalt = generateSalt();
|
|
553
|
-
const newKek = await deriveKey(recipient.
|
|
560
|
+
const newKek = await deriveKey(recipient.secret, newSalt);
|
|
554
561
|
const wrappedDeks = {};
|
|
555
562
|
for (const collName of Object.keys(permissions)) {
|
|
556
563
|
const dek = callerKeyring.deks.get(collName);
|
|
@@ -592,11 +599,11 @@ async function buildRecipientKeyringFile(callerKeyring, recipient) {
|
|
|
592
599
|
...recipient.expiresAt !== void 0 ? { expires_at: recipient.expiresAt } : {}
|
|
593
600
|
};
|
|
594
601
|
}
|
|
595
|
-
async function listUsers(
|
|
596
|
-
const userIds = await
|
|
602
|
+
async function listUsers(store, vault) {
|
|
603
|
+
const userIds = await store.list(vault, "_keyring");
|
|
597
604
|
const users = [];
|
|
598
605
|
for (const userId of userIds) {
|
|
599
|
-
const envelope = await
|
|
606
|
+
const envelope = await store.get(vault, "_keyring", userId);
|
|
600
607
|
if (!envelope) continue;
|
|
601
608
|
const kf = JSON.parse(envelope._data);
|
|
602
609
|
users.push({
|
|
@@ -610,9 +617,9 @@ async function listUsers(adapter, vault) {
|
|
|
610
617
|
}
|
|
611
618
|
return users;
|
|
612
619
|
}
|
|
613
|
-
async function listUsersWithEnvelopes(
|
|
620
|
+
async function listUsersWithEnvelopes(store, vault, userEnvelopeDek, callerRole, options = {}) {
|
|
614
621
|
const isPrivileged = callerRole === "owner" || callerRole === "admin";
|
|
615
|
-
const dirConfig = await readDirectoryConfig(
|
|
622
|
+
const dirConfig = await readDirectoryConfig(store, vault);
|
|
616
623
|
if (dirConfig?.enabled === false && !isPrivileged) {
|
|
617
624
|
throw new DirectoryDisabledError(vault);
|
|
618
625
|
}
|
|
@@ -621,15 +628,15 @@ async function listUsersWithEnvelopes(adapter, vault, userEnvelopeDek, callerRol
|
|
|
621
628
|
"Permission denied \u2014 listUsersWithEnvelopes({ includeHidden: true }) requires owner or admin role"
|
|
622
629
|
);
|
|
623
630
|
}
|
|
624
|
-
const users = await listUsers(
|
|
631
|
+
const users = await listUsers(store, vault);
|
|
625
632
|
const out = [];
|
|
626
633
|
for (const user of users) {
|
|
627
634
|
if (!options.includeHidden) {
|
|
628
|
-
const visibility = await readUserVisibility(
|
|
635
|
+
const visibility = await readUserVisibility(store, vault, user.userId);
|
|
629
636
|
if (visibility?.hidden) continue;
|
|
630
637
|
}
|
|
631
638
|
const envelope = await loadUserEnvelope(
|
|
632
|
-
|
|
639
|
+
store,
|
|
633
640
|
vault,
|
|
634
641
|
user.userId,
|
|
635
642
|
userEnvelopeDek
|
|
@@ -638,7 +645,7 @@ async function listUsersWithEnvelopes(adapter, vault, userEnvelopeDek, callerRol
|
|
|
638
645
|
}
|
|
639
646
|
return out;
|
|
640
647
|
}
|
|
641
|
-
async function ensureCollectionDEK(
|
|
648
|
+
async function ensureCollectionDEK(store, vault, keyring) {
|
|
642
649
|
const inFlight = /* @__PURE__ */ new Map();
|
|
643
650
|
return async (collectionName) => {
|
|
644
651
|
const existing = keyring.deks.get(collectionName);
|
|
@@ -648,7 +655,7 @@ async function ensureCollectionDEK(adapter, vault, keyring) {
|
|
|
648
655
|
const promise = (async () => {
|
|
649
656
|
const dek = await generateDEK();
|
|
650
657
|
keyring.deks.set(collectionName, dek);
|
|
651
|
-
await persistKeyring(
|
|
658
|
+
await persistKeyring(store, vault, keyring);
|
|
652
659
|
return dek;
|
|
653
660
|
})();
|
|
654
661
|
inFlight.set(collectionName, promise);
|
|
@@ -669,10 +676,10 @@ function hasAccess(keyring, collectionName) {
|
|
|
669
676
|
return true;
|
|
670
677
|
return collectionName in keyring.permissions;
|
|
671
678
|
}
|
|
672
|
-
async function persistKeyring(
|
|
679
|
+
async function persistKeyring(store, vault, keyring) {
|
|
673
680
|
if (!keyring.kek) {
|
|
674
681
|
throw new ValidationError(
|
|
675
|
-
"persistKeyring: keyring.kek is null \u2014 cannot wrap DEKs without the KEK. This typically means the keyring was opened via tier-3 PIN resume, session restore, or a wrap-DEKs tier-2 unlock. Re-authenticate at tier 1 (
|
|
682
|
+
"persistKeyring: keyring.kek is null \u2014 cannot wrap DEKs without the KEK. This typically means the keyring was opened via tier-3 PIN resume, session restore, or a wrap-DEKs tier-2 unlock. Re-authenticate at tier 1 (secret) before persisting."
|
|
676
683
|
);
|
|
677
684
|
}
|
|
678
685
|
const wrappedDeks = {};
|
|
@@ -696,7 +703,7 @@ async function persistKeyring(adapter, vault, keyring) {
|
|
|
696
703
|
...keyring.authenticators.length > 0 && { authenticators: keyring.authenticators },
|
|
697
704
|
...keyring.policy !== void 0 && { policy: keyring.policy }
|
|
698
705
|
};
|
|
699
|
-
await writeKeyringFile(
|
|
706
|
+
await writeKeyringFile(store, vault, keyring.userId, keyringFile);
|
|
700
707
|
}
|
|
701
708
|
function defaultBundleCapability(role) {
|
|
702
709
|
return role === "owner" || role === "admin";
|
|
@@ -735,7 +742,7 @@ function resolvePermissions(role, explicit) {
|
|
|
735
742
|
if (role === "owner" || role === "admin" || role === "custodian" || role === "viewer") return {};
|
|
736
743
|
return explicit ?? {};
|
|
737
744
|
}
|
|
738
|
-
async function writeKeyringFile(
|
|
745
|
+
async function writeKeyringFile(store, vault, userId, keyringFile) {
|
|
739
746
|
const envelope = {
|
|
740
747
|
_noydb: 1,
|
|
741
748
|
_v: 1,
|
|
@@ -743,13 +750,13 @@ async function writeKeyringFile(adapter, vault, userId, keyringFile) {
|
|
|
743
750
|
_iv: "",
|
|
744
751
|
_data: JSON.stringify(keyringFile)
|
|
745
752
|
};
|
|
746
|
-
await
|
|
753
|
+
await store.put(vault, "_keyring", userId, envelope);
|
|
747
754
|
}
|
|
748
755
|
|
|
749
756
|
export {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
757
|
+
WeakSecretError,
|
|
758
|
+
validateSecret,
|
|
759
|
+
assertStrongSecret,
|
|
753
760
|
estimateEntropy,
|
|
754
761
|
SYNC_CREDENTIALS_COLLECTION,
|
|
755
762
|
BROKER_COLLECTION,
|
|
@@ -775,4 +782,4 @@ export {
|
|
|
775
782
|
hasImportCapability,
|
|
776
783
|
evaluateImportCapability
|
|
777
784
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
785
|
+
//# sourceMappingURL=chunk-BLCWSJLN.js.map
|