@noy-db/hub 0.6.0-pre.16 → 0.6.0-pre.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-NAY63UIE.js → api-FRFEJ6WR.js} +6 -6
- package/dist/attestation/index.js +12 -12
- package/dist/{backup-M2VND2VS.js → backup-OLBRFYY7.js} +10 -10
- package/dist/{backup-M2VND2VS.js.map → backup-OLBRFYY7.js.map} +1 -1
- package/dist/blobs/index.js +8 -8
- package/dist/broker/index.js +6 -6
- package/dist/cargo/index.js +26 -26
- package/dist/{chunk-4CSG6KBX.js → chunk-2ION5ZRH.js} +17 -14
- package/dist/chunk-2ION5ZRH.js.map +1 -0
- package/dist/{chunk-466KGOQB.js → chunk-2NE7ILO7.js} +2 -2
- package/dist/{chunk-CZV57HHC.js → chunk-3KXIGMZ4.js} +2 -2
- package/dist/{chunk-5CH4DWQA.js → chunk-3ODOWQMV.js} +13 -14
- package/dist/chunk-3ODOWQMV.js.map +1 -0
- package/dist/{chunk-3OEWD45V.js → chunk-3RZ7QLJ4.js} +5 -5
- package/dist/{chunk-SFY6NT7D.js → chunk-3Y4OFWQJ.js} +1 -1
- package/dist/chunk-3Y4OFWQJ.js.map +1 -0
- package/dist/{chunk-FZ2SSI5R.js → chunk-6AL6O4CS.js} +2 -2
- package/dist/{chunk-4XEUSZWN.js → chunk-6D3CN2JR.js} +2 -2
- package/dist/{chunk-6UAVKAG6.js → chunk-6QCXMCLZ.js} +3 -3
- package/dist/{chunk-B4G3JPH5.js → chunk-7EH322GJ.js} +14 -7
- package/dist/chunk-7EH322GJ.js.map +1 -0
- package/dist/{chunk-AMKCY454.js → chunk-7WD2G6K4.js} +7 -2
- package/dist/{chunk-AMKCY454.js.map → chunk-7WD2G6K4.js.map} +1 -1
- package/dist/{chunk-VUUUIKRG.js → chunk-A5QQKWCK.js} +14 -23
- package/dist/chunk-A5QQKWCK.js.map +1 -0
- package/dist/{chunk-RRMXMJUP.js → chunk-AA2WWTS3.js} +9 -7
- package/dist/chunk-AA2WWTS3.js.map +1 -0
- package/dist/{chunk-WMUN7ZUD.js → chunk-AA7LM2A3.js} +2 -2
- package/dist/{chunk-PJGMBELR.js → chunk-AIZNLHKN.js} +4 -4
- package/dist/chunk-AIZNLHKN.js.map +1 -0
- package/dist/{chunk-MKSTUVMJ.js → chunk-AMMYIT7F.js} +35 -31
- package/dist/chunk-AMMYIT7F.js.map +1 -0
- package/dist/{chunk-TWPTRJEU.js → chunk-BBU3OD3D.js} +2 -2
- package/dist/{chunk-OJEDR25M.js → chunk-BVIGGV6D.js} +33 -45
- package/dist/chunk-BVIGGV6D.js.map +1 -0
- package/dist/{chunk-IQGIPRSE.js → chunk-CFTPERGL.js} +14 -11
- package/dist/chunk-CFTPERGL.js.map +1 -0
- package/dist/{chunk-T6CCRXD3.js → chunk-CGQUSSW7.js} +26 -142
- package/dist/chunk-CGQUSSW7.js.map +1 -0
- package/dist/{chunk-4JDTLWUZ.js → chunk-DFFSCYIW.js} +9 -9
- package/dist/{chunk-JZVXGOJE.js → chunk-DKYEVHZH.js} +7 -10
- package/dist/chunk-DKYEVHZH.js.map +1 -0
- package/dist/{chunk-YVOW35HH.js → chunk-DL4GDOWL.js} +4 -6
- package/dist/chunk-DL4GDOWL.js.map +1 -0
- package/dist/{chunk-LGGLPURL.js → chunk-DWO55ZWE.js} +13 -22
- package/dist/chunk-DWO55ZWE.js.map +1 -0
- package/dist/{chunk-MKV2KYRV.js → chunk-ER3BQCCE.js} +2 -2
- package/dist/{chunk-JU3JKOY5.js → chunk-EWAGI3EM.js} +2 -2
- package/dist/{chunk-WMZQCXZ5.js → chunk-EZ3UHHND.js} +13 -15
- package/dist/chunk-EZ3UHHND.js.map +1 -0
- package/dist/{chunk-5TF5DUQ5.js → chunk-FDIZHZ3C.js} +29 -47
- package/dist/chunk-FDIZHZ3C.js.map +1 -0
- package/dist/{chunk-56W3T5O2.js → chunk-FOABWV7L.js} +45 -18
- package/dist/chunk-FOABWV7L.js.map +1 -0
- package/dist/{chunk-H5U4T6JK.js → chunk-FRGF56PD.js} +11 -14
- package/dist/chunk-FRGF56PD.js.map +1 -0
- package/dist/{chunk-53PWELSC.js → chunk-FY33DKPH.js} +2 -2
- package/dist/{chunk-KKRFL5E2.js → chunk-GSRW5MTU.js} +220 -169
- package/dist/chunk-GSRW5MTU.js.map +1 -0
- package/dist/{chunk-4VRZDYRE.js → chunk-HJRTFXAA.js} +7 -10
- package/dist/chunk-HJRTFXAA.js.map +1 -0
- package/dist/chunk-HK67PX4J.js +27 -0
- package/dist/chunk-HK67PX4J.js.map +1 -0
- package/dist/{chunk-A3WHDOWI.js → chunk-IN5EZWYQ.js} +13 -14
- package/dist/chunk-IN5EZWYQ.js.map +1 -0
- package/dist/{chunk-PZLIA5R3.js → chunk-ITXPKEDP.js} +23 -29
- package/dist/chunk-ITXPKEDP.js.map +1 -0
- package/dist/{chunk-343FH4S5.js → chunk-JYFJNSTW.js} +9 -9
- package/dist/chunk-JYFJNSTW.js.map +1 -0
- package/dist/{chunk-35RIRCGW.js → chunk-KLVGF2D4.js} +11 -9
- package/dist/{chunk-35RIRCGW.js.map → chunk-KLVGF2D4.js.map} +1 -1
- package/dist/{chunk-7LLKPODL.js → chunk-LPAGIMXJ.js} +2 -2
- package/dist/{chunk-3JQVA527.js → chunk-LU6NPJWN.js} +3 -3
- package/dist/{chunk-UVFO25FJ.js → chunk-NAAPSNCS.js} +90 -33
- package/dist/chunk-NAAPSNCS.js.map +1 -0
- package/dist/{chunk-OPGKH5RD.js → chunk-NFPSC2HL.js} +3 -3
- package/dist/{chunk-55B3KHZW.js → chunk-NRNTXBHT.js} +7 -10
- package/dist/chunk-NRNTXBHT.js.map +1 -0
- package/dist/{chunk-I5OLA3H6.js → chunk-O4QDBAB6.js} +7 -10
- package/dist/{chunk-I5OLA3H6.js.map → chunk-O4QDBAB6.js.map} +1 -1
- package/dist/{chunk-4DJQU3PH.js → chunk-OCCNYGKG.js} +7 -7
- package/dist/{chunk-76FBDG6M.js → chunk-OZD3D2DZ.js} +10 -13
- package/dist/chunk-OZD3D2DZ.js.map +1 -0
- package/dist/{chunk-YX6J3Z3Z.js → chunk-PBPYQZDW.js} +2 -2
- package/dist/{chunk-TTAND7MR.js → chunk-PBRIHUQ5.js} +5 -5
- package/dist/{chunk-TTAND7MR.js.map → chunk-PBRIHUQ5.js.map} +1 -1
- package/dist/{chunk-NBLLQOMR.js → chunk-Q67P7S2I.js} +14 -15
- package/dist/chunk-Q67P7S2I.js.map +1 -0
- package/dist/{chunk-NY6RQBUN.js → chunk-RAYGDC4A.js} +50 -63
- package/dist/chunk-RAYGDC4A.js.map +1 -0
- package/dist/{chunk-RVTOCAHQ.js → chunk-SQSZRCYT.js} +1 -1
- package/dist/chunk-SQSZRCYT.js.map +1 -0
- package/dist/{chunk-JN64WH3U.js → chunk-T7IR4N2S.js} +1 -1
- package/dist/{chunk-JN64WH3U.js.map → chunk-T7IR4N2S.js.map} +1 -1
- package/dist/{chunk-THUITYH7.js → chunk-TNOQNU3R.js} +5 -4
- package/dist/{chunk-THUITYH7.js.map → chunk-TNOQNU3R.js.map} +1 -1
- package/dist/{chunk-TY6N3PAC.js → chunk-TXDOMADN.js} +9 -6
- package/dist/chunk-TXDOMADN.js.map +1 -0
- package/dist/{chunk-6EF3N2MH.js → chunk-U6D5XTI5.js} +13 -13
- package/dist/{chunk-6EF3N2MH.js.map → chunk-U6D5XTI5.js.map} +1 -1
- package/dist/{chunk-HNX47VTC.js → chunk-UE72AQDZ.js} +6 -6
- package/dist/chunk-UIYZ5SOU.js +190 -0
- package/dist/chunk-UIYZ5SOU.js.map +1 -0
- package/dist/{chunk-IGE6XWKK.js → chunk-VXVKEWYC.js} +3 -3
- package/dist/{chunk-LTVETWDH.js → chunk-X3AXSYBL.js} +217 -123
- package/dist/chunk-X3AXSYBL.js.map +1 -0
- package/dist/{chunk-AD2PJGSS.js → chunk-ZDATYUYG.js} +2 -2
- package/dist/{chunk-LJDW6LQJ.js → chunk-ZSOTZ2RZ.js} +41 -24
- package/dist/chunk-ZSOTZ2RZ.js.map +1 -0
- package/dist/{chunk-6E2JZRBD.js → chunk-ZVAFJQZB.js} +25 -19
- package/dist/chunk-ZVAFJQZB.js.map +1 -0
- package/dist/classified/index.js +4 -4
- package/dist/{classified-marker-L7LXKS6Q.js → classified-marker-GWQTNDSL.js} +3 -3
- package/dist/{collection-facade-KN3UFKZ4.js → collection-facade-56RTPO4G.js} +12 -12
- package/dist/consent/index.js +4 -4
- package/dist/cover/index.js +9 -2
- package/dist/custody/index.js +6 -6
- package/dist/{dead-filter-6HG5FP3I.js → dead-filter-XP7MPHCJ.js} +2 -2
- package/dist/{delegation-7EGBYBRN.js → delegation-Q3HEAVLA.js} +18 -19
- package/dist/delegation-Q3HEAVLA.js.map +1 -0
- package/dist/derivations/index.js +3 -3
- package/dist/{derive-XKAYJ2OA.js → derive-SVDY36ER.js} +4 -4
- package/dist/directory/index.js +5 -5
- package/dist/{dispatch-56T7VPGE.js → dispatch-MG5KNMWG.js} +5 -5
- package/dist/{dispatch-BM5GNCE2.js → dispatch-RVJQ4BOL.js} +11 -11
- package/dist/{enclave-KDLGVX5Z.js → enclave-AOZTWFZK.js} +16 -4
- package/dist/{executor-LFHRV6JH.js → executor-FRUVM36Q.js} +12 -12
- package/dist/{export-accessible-HFBJ4JJY.js → export-accessible-HDDHZYPM.js} +7 -7
- package/dist/{extract-partition-7ZRFN6QP.js → extract-partition-TRADP234.js} +12 -12
- package/dist/{fanout-sidecar-MT2OBMZB.js → fanout-sidecar-NZA6J7QB.js} +13 -22
- package/dist/fanout-sidecar-NZA6J7QB.js.map +1 -0
- package/dist/forget/index.js +4 -4
- package/dist/history/index.js +18 -15
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +9 -9
- package/dist/index.d.ts +16 -0
- package/dist/index.js +129 -127
- package/dist/index.js.map +1 -1
- package/dist/introspection/index.js +5 -5
- package/dist/{issue-LCOOEH45.js → issue-GZQDW5TQ.js} +6 -6
- package/dist/kernel/enclave/index.d.ts +7 -5
- package/dist/kernel/enclave/record-aad.d.ts +79 -7
- package/dist/kernel/enclave/record-envelope.d.ts +54 -7
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +34 -2
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +22 -5
- package/dist/kernel/enclave/record-keys/record-codec.d.ts +47 -14
- package/dist/kernel/enclave/record-keys/rekey.d.ts +68 -0
- package/dist/kernel/enclave/record-keys/tombstone.d.ts +3 -3
- package/dist/kernel/merge-authority.d.ts +25 -0
- package/dist/kernel/tier-visibility.d.ts +15 -0
- package/dist/kernel/types.d.ts +23 -0
- package/dist/kernel/vault.d.ts +1 -1
- package/dist/kernel/via/index.d.ts +11 -2
- package/dist/{ledger-6IHXJHDD.js → ledger-KQAJPEMZ.js} +6 -6
- package/dist/liberate-Z2EXJY2S.js +24 -0
- package/dist/{link-set-XRVHGYWC.js → link-set-XKN5V7VM.js} +5 -5
- package/dist/{managed-secret-IDAOXSSX.js → managed-secret-7WIIVMJ5.js} +11 -3
- package/dist/materialized-views/index.js +14 -14
- package/dist/money/index.js +3 -3
- package/dist/{noydb-M5WII7RP.js → noydb-NPW3C2EX.js} +39 -38
- package/dist/periods/index.js +6 -6
- package/dist/pod/index.js +42 -41
- package/dist/{pod-handle-BYUSBXCT.js → pod-handle-SKDKRPOR.js} +6 -6
- package/dist/{pod-handle-BYUSBXCT.js.map → pod-handle-SKDKRPOR.js.map} +1 -1
- package/dist/policy/index.js +10 -3
- package/dist/port/with/merge-authority.d.ts +52 -0
- package/dist/port/with/strategies.d.ts +2 -0
- package/dist/portability/index.js +6 -6
- package/dist/{post-register-O3YW6CGS.js → post-register-CVS7CCJE.js} +4 -4
- package/dist/reduce/index.js +3 -3
- package/dist/{register-XHOOX37G.js → register-GJ6PW4KP.js} +10 -10
- package/dist/{registry-OFMM4WAC.js → registry-6LUJ5IJW.js} +4 -4
- package/dist/{registry-CYAFB35H.js → registry-KI77RVK7.js} +4 -4
- package/dist/{request-withdrawal-GCE2SLNW.js → request-withdrawal-LICOUGXG.js} +9 -9
- package/dist/{reveal-UHBP5IH3.js → reveal-PWM47FQN.js} +3 -3
- package/dist/{revoke-6KY4VGZY.js → revoke-AWZKZLZB.js} +6 -6
- package/dist/sealed-record/index.js +14 -7
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +3 -3
- package/dist/{seed-DGLQTCIO.js → seed-LNTLU2A3.js} +14 -17
- package/dist/seed-LNTLU2A3.js.map +1 -0
- package/dist/sequence/index.js +4 -4
- package/dist/session/index.js +3 -3
- package/dist/{signer-SLOMB6HS.js → signer-JE6NEURY.js} +5 -5
- package/dist/snapshots/index.js +5 -5
- package/dist/{stale-26ZJLNLG.js → stale-ZWTKUVZX.js} +5 -5
- package/dist/{storage-N3IMFNGS.js → storage-WCZOCA46.js} +5 -5
- package/dist/{store-coordination-provider-RGHCIRWV.js → store-coordination-provider-7H62VO2C.js} +18 -12
- package/dist/store-coordination-provider-7H62VO2C.js.map +1 -0
- package/dist/sync/index.js +5 -5
- package/dist/team/index.js +10 -9
- package/dist/tiers/index.js +6 -5
- package/dist/vault-head/index.js +111 -0
- package/dist/vault-head/index.js.map +1 -0
- package/dist/{walk-B4YFJJ7S.js → walk-HSS3NLQ3.js} +6 -6
- package/dist/with-audit/periods/periods.d.ts +1 -1
- package/dist/with-audit/periods/strategy.d.ts +1 -1
- package/dist/with-audit/sealed-record/index.d.ts +13 -0
- package/dist/with-audit/tiers/index.d.ts +17 -2
- package/dist/with-commit/history/history.d.ts +26 -0
- package/dist/with-commit/history/index.d.ts +2 -1
- package/dist/with-commit/history/ledger/store.d.ts +7 -1
- package/dist/with-commit/history/strategy.d.ts +11 -1
- package/dist/with-commit/vault-head/active.d.ts +2 -0
- package/dist/with-commit/vault-head/head.d.ts +28 -0
- package/dist/with-commit/vault-head/index.d.ts +10 -0
- package/dist/with-commit/vault-head/strategy.d.ts +127 -0
- package/dist/with-commit/vault-head/verify.d.ts +50 -0
- package/dist/with-party/directory/cover/storage.d.ts +0 -8
- package/dist/with-party/directory/storage.d.ts +0 -11
- package/dist/with-party/directory/visibility.d.ts +0 -21
- package/dist/with-party/policy/storage.d.ts +0 -10
- package/dist/with-party/team/keyring.d.ts +5 -0
- package/dist/with-party/team/tiers.d.ts +2 -1
- package/dist/with-sync/engine.d.ts +33 -5
- package/dist/with-sync/strategy.d.ts +3 -0
- package/dist/{withdraw-accessible-OYG7YZUR.js → withdraw-accessible-GHBA4DAA.js} +8 -8
- package/package.json +7 -3
- package/dist/chunk-343FH4S5.js.map +0 -1
- package/dist/chunk-4CSG6KBX.js.map +0 -1
- package/dist/chunk-4VRZDYRE.js.map +0 -1
- package/dist/chunk-55B3KHZW.js.map +0 -1
- package/dist/chunk-56W3T5O2.js.map +0 -1
- package/dist/chunk-5CH4DWQA.js.map +0 -1
- package/dist/chunk-5TF5DUQ5.js.map +0 -1
- package/dist/chunk-6E2JZRBD.js.map +0 -1
- package/dist/chunk-76FBDG6M.js.map +0 -1
- package/dist/chunk-A3WHDOWI.js.map +0 -1
- package/dist/chunk-AFHQATY4.js +0 -47
- package/dist/chunk-AFHQATY4.js.map +0 -1
- package/dist/chunk-B4G3JPH5.js.map +0 -1
- package/dist/chunk-H5U4T6JK.js.map +0 -1
- package/dist/chunk-IQGIPRSE.js.map +0 -1
- package/dist/chunk-JZVXGOJE.js.map +0 -1
- package/dist/chunk-KKRFL5E2.js.map +0 -1
- package/dist/chunk-LGGLPURL.js.map +0 -1
- package/dist/chunk-LJDW6LQJ.js.map +0 -1
- package/dist/chunk-LTVETWDH.js.map +0 -1
- package/dist/chunk-MKSTUVMJ.js.map +0 -1
- package/dist/chunk-NBLLQOMR.js.map +0 -1
- package/dist/chunk-NY6RQBUN.js.map +0 -1
- package/dist/chunk-OJEDR25M.js.map +0 -1
- package/dist/chunk-PJGMBELR.js.map +0 -1
- package/dist/chunk-PZLIA5R3.js.map +0 -1
- package/dist/chunk-RRMXMJUP.js.map +0 -1
- package/dist/chunk-RVTOCAHQ.js.map +0 -1
- package/dist/chunk-SFY6NT7D.js.map +0 -1
- package/dist/chunk-T6CCRXD3.js.map +0 -1
- package/dist/chunk-TY6N3PAC.js.map +0 -1
- package/dist/chunk-UVFO25FJ.js.map +0 -1
- package/dist/chunk-VUUUIKRG.js.map +0 -1
- package/dist/chunk-WMZQCXZ5.js.map +0 -1
- package/dist/chunk-YVOW35HH.js.map +0 -1
- package/dist/delegation-7EGBYBRN.js.map +0 -1
- package/dist/fanout-sidecar-MT2OBMZB.js.map +0 -1
- package/dist/liberate-UEYC4QLJ.js +0 -24
- package/dist/seed-DGLQTCIO.js.map +0 -1
- package/dist/store-coordination-provider-RGHCIRWV.js.map +0 -1
- /package/dist/{api-NAY63UIE.js.map → api-FRFEJ6WR.js.map} +0 -0
- /package/dist/{chunk-466KGOQB.js.map → chunk-2NE7ILO7.js.map} +0 -0
- /package/dist/{chunk-CZV57HHC.js.map → chunk-3KXIGMZ4.js.map} +0 -0
- /package/dist/{chunk-3OEWD45V.js.map → chunk-3RZ7QLJ4.js.map} +0 -0
- /package/dist/{chunk-FZ2SSI5R.js.map → chunk-6AL6O4CS.js.map} +0 -0
- /package/dist/{chunk-4XEUSZWN.js.map → chunk-6D3CN2JR.js.map} +0 -0
- /package/dist/{chunk-6UAVKAG6.js.map → chunk-6QCXMCLZ.js.map} +0 -0
- /package/dist/{chunk-WMUN7ZUD.js.map → chunk-AA7LM2A3.js.map} +0 -0
- /package/dist/{chunk-TWPTRJEU.js.map → chunk-BBU3OD3D.js.map} +0 -0
- /package/dist/{chunk-4JDTLWUZ.js.map → chunk-DFFSCYIW.js.map} +0 -0
- /package/dist/{chunk-MKV2KYRV.js.map → chunk-ER3BQCCE.js.map} +0 -0
- /package/dist/{chunk-JU3JKOY5.js.map → chunk-EWAGI3EM.js.map} +0 -0
- /package/dist/{chunk-53PWELSC.js.map → chunk-FY33DKPH.js.map} +0 -0
- /package/dist/{chunk-7LLKPODL.js.map → chunk-LPAGIMXJ.js.map} +0 -0
- /package/dist/{chunk-3JQVA527.js.map → chunk-LU6NPJWN.js.map} +0 -0
- /package/dist/{chunk-OPGKH5RD.js.map → chunk-NFPSC2HL.js.map} +0 -0
- /package/dist/{chunk-4DJQU3PH.js.map → chunk-OCCNYGKG.js.map} +0 -0
- /package/dist/{chunk-YX6J3Z3Z.js.map → chunk-PBPYQZDW.js.map} +0 -0
- /package/dist/{chunk-HNX47VTC.js.map → chunk-UE72AQDZ.js.map} +0 -0
- /package/dist/{chunk-IGE6XWKK.js.map → chunk-VXVKEWYC.js.map} +0 -0
- /package/dist/{chunk-AD2PJGSS.js.map → chunk-ZDATYUYG.js.map} +0 -0
- /package/dist/{classified-marker-L7LXKS6Q.js.map → classified-marker-GWQTNDSL.js.map} +0 -0
- /package/dist/{collection-facade-KN3UFKZ4.js.map → collection-facade-56RTPO4G.js.map} +0 -0
- /package/dist/{dead-filter-6HG5FP3I.js.map → dead-filter-XP7MPHCJ.js.map} +0 -0
- /package/dist/{derive-XKAYJ2OA.js.map → derive-SVDY36ER.js.map} +0 -0
- /package/dist/{dispatch-56T7VPGE.js.map → dispatch-MG5KNMWG.js.map} +0 -0
- /package/dist/{dispatch-BM5GNCE2.js.map → dispatch-RVJQ4BOL.js.map} +0 -0
- /package/dist/{enclave-KDLGVX5Z.js.map → enclave-AOZTWFZK.js.map} +0 -0
- /package/dist/{executor-LFHRV6JH.js.map → executor-FRUVM36Q.js.map} +0 -0
- /package/dist/{export-accessible-HFBJ4JJY.js.map → export-accessible-HDDHZYPM.js.map} +0 -0
- /package/dist/{extract-partition-7ZRFN6QP.js.map → extract-partition-TRADP234.js.map} +0 -0
- /package/dist/{issue-LCOOEH45.js.map → issue-GZQDW5TQ.js.map} +0 -0
- /package/dist/{ledger-6IHXJHDD.js.map → ledger-KQAJPEMZ.js.map} +0 -0
- /package/dist/{liberate-UEYC4QLJ.js.map → liberate-Z2EXJY2S.js.map} +0 -0
- /package/dist/{link-set-XRVHGYWC.js.map → link-set-XKN5V7VM.js.map} +0 -0
- /package/dist/{managed-secret-IDAOXSSX.js.map → managed-secret-7WIIVMJ5.js.map} +0 -0
- /package/dist/{noydb-M5WII7RP.js.map → noydb-NPW3C2EX.js.map} +0 -0
- /package/dist/{post-register-O3YW6CGS.js.map → post-register-CVS7CCJE.js.map} +0 -0
- /package/dist/{register-XHOOX37G.js.map → register-GJ6PW4KP.js.map} +0 -0
- /package/dist/{registry-CYAFB35H.js.map → registry-6LUJ5IJW.js.map} +0 -0
- /package/dist/{registry-OFMM4WAC.js.map → registry-KI77RVK7.js.map} +0 -0
- /package/dist/{request-withdrawal-GCE2SLNW.js.map → request-withdrawal-LICOUGXG.js.map} +0 -0
- /package/dist/{reveal-UHBP5IH3.js.map → reveal-PWM47FQN.js.map} +0 -0
- /package/dist/{revoke-6KY4VGZY.js.map → revoke-AWZKZLZB.js.map} +0 -0
- /package/dist/{signer-SLOMB6HS.js.map → signer-JE6NEURY.js.map} +0 -0
- /package/dist/{stale-26ZJLNLG.js.map → stale-ZWTKUVZX.js.map} +0 -0
- /package/dist/{storage-N3IMFNGS.js.map → storage-WCZOCA46.js.map} +0 -0
- /package/dist/{walk-B4YFJJ7S.js.map → walk-HSS3NLQ3.js.map} +0 -0
- /package/dist/{withdraw-accessible-OYG7YZUR.js.map → withdraw-accessible-GHBA4DAA.js.map} +0 -0
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* per-function doc for its oracle call site) — this file introduces no new
|
|
14
14
|
* crypto or semantics, only a narrower door onto what already runs.
|
|
15
15
|
*/
|
|
16
|
+
import { type RecordIdentity, type RecordRef } from '../record-aad.js';
|
|
16
17
|
import { type EnclaveKey } from '../crypto.js';
|
|
17
18
|
import type { EncryptedEnvelope } from '../../types.js';
|
|
18
19
|
/**
|
|
@@ -27,7 +28,7 @@ import type { EncryptedEnvelope } from '../../types.js';
|
|
|
27
28
|
* (the collection DEK), decrypt the body under the unwrapped CEK.
|
|
28
29
|
* - `env._cek` absent → legacy path, decrypt the body directly under `key`.
|
|
29
30
|
*/
|
|
30
|
-
export declare function openEnvelopeJson(env: EncryptedEnvelope, key: EnclaveKey, opts?: {
|
|
31
|
+
export declare function openEnvelopeJson(ref: RecordRef, env: EncryptedEnvelope, key: EnclaveKey, opts?: {
|
|
31
32
|
encrypted?: boolean;
|
|
32
33
|
}): Promise<string>;
|
|
33
34
|
/**
|
|
@@ -43,7 +44,7 @@ export declare function openEnvelopeJson(env: EncryptedEnvelope, key: EnclaveKey
|
|
|
43
44
|
* generated here rather than supplied by the caller).
|
|
44
45
|
* - otherwise → legacy path, body encrypted directly under `key`.
|
|
45
46
|
*/
|
|
46
|
-
export declare function writeEnvelopeBody(json: string, key: EnclaveKey, opts?: {
|
|
47
|
+
export declare function writeEnvelopeBody(identity: RecordIdentity, json: string, key: EnclaveKey, opts?: {
|
|
47
48
|
encrypted?: boolean;
|
|
48
49
|
perRecordKey?: boolean;
|
|
49
50
|
}): Promise<Pick<EncryptedEnvelope, '_iv' | '_data' | '_cek'>>;
|
|
@@ -85,3 +86,34 @@ export declare function hasPerRecordKey(env: EncryptedEnvelope): boolean;
|
|
|
85
86
|
* `envelope-body.test.ts`).
|
|
86
87
|
*/
|
|
87
88
|
export declare function envelopeBodyForHash(env: EncryptedEnvelope): string;
|
|
89
|
+
/**
|
|
90
|
+
* Does `env` carry an AEAD-sealed body at all?
|
|
91
|
+
*
|
|
92
|
+
* The one question callers outside the enclave legitimately need to ask about
|
|
93
|
+
* `_iv` — a tombstone and a plaintext-collection record have none, so there is
|
|
94
|
+
* nothing to authenticate and nothing to re-seal. Both {@link
|
|
95
|
+
* verifyRecordIdentity} (which treats them as vacuously authentic) and the
|
|
96
|
+
* merge authority's `advance` (which stamps them without re-sealing) turn on
|
|
97
|
+
* it, and asking it here keeps `_iv` from leaking back out to the callers —
|
|
98
|
+
* which `enclave-body-only` refused, correctly, when `advance` tested it inline.
|
|
99
|
+
*/
|
|
100
|
+
export declare function hasSealedBody(env: Pick<EncryptedEnvelope, '_iv'>): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Does `env` authenticate at the identity `ref` claims, under `key`? (#1042)
|
|
103
|
+
*
|
|
104
|
+
* The merge's fail-closed check, living here because it is envelope surgery:
|
|
105
|
+
* deciding "is there a sealed body at all" reads `_iv`, which
|
|
106
|
+
* `enclave-body-only` reserves to this folder. An earlier draft did that test
|
|
107
|
+
* in `kernel/noydb.ts` and the guard refused it — correctly, since a caller
|
|
108
|
+
* outside the enclave inspecting protected fields is how envelope knowledge
|
|
109
|
+
* leaks back out.
|
|
110
|
+
*
|
|
111
|
+
* Returns a boolean rather than throwing: `applyRemote` must be able to reject
|
|
112
|
+
* one poisoned record without halting an entire sync, and a hostile store
|
|
113
|
+
* would very much like the opposite.
|
|
114
|
+
*
|
|
115
|
+
* **A record with no sealed body is vacuously authentic** — a tombstone carries
|
|
116
|
+
* none, and a plaintext collection has no AEAD to verify. Those are pass-through
|
|
117
|
+
* by construction, not by omission.
|
|
118
|
+
*/
|
|
119
|
+
export declare function verifyRecordIdentity(ref: RecordRef, env: EncryptedEnvelope, key: EnclaveKey): Promise<boolean>;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { type EnclaveKey } from '../crypto.js';
|
|
23
23
|
import type { EncryptedEnvelope } from '../../types.js';
|
|
24
|
+
import { type RecordIdentity } from '../record-aad.js';
|
|
24
25
|
import type { Lru } from '../../cache/index.js';
|
|
25
26
|
/** Dependencies {@link resolveStableCek} needs from its collection. */
|
|
26
27
|
export interface StableCekDeps {
|
|
@@ -46,15 +47,31 @@ export interface RewrappedBody {
|
|
|
46
47
|
readonly cek: EnclaveKey | null;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
|
-
* Move a record body from `fromDek` to `toDek`.
|
|
50
|
+
* Move a record body from `fromDek`/`from` to `toDek`/`to`.
|
|
50
51
|
*
|
|
51
52
|
* - Per-record-key record (`_cek` present): unwrap the CEK under `fromDek`,
|
|
52
53
|
* re-encrypt the body under the SAME CEK, re-wrap the CEK under `toDek`. The
|
|
53
54
|
* body key is unchanged → history-chain identity preserved.
|
|
54
55
|
* - Legacy record (no `_cek`): decrypt under `fromDek`, re-encrypt under `toDek`
|
|
55
|
-
* directly
|
|
56
|
+
* directly.
|
|
57
|
+
*
|
|
58
|
+
* ## Why it takes TWO identities (#1041)
|
|
59
|
+
*
|
|
60
|
+
* A rewrap is the one operation where the identity genuinely **changes**. A
|
|
61
|
+
* tier move rewrites `_tier`; a history snapshot lands at a different
|
|
62
|
+
* `(collection, id)` entirely. Since AAD binds both, the body must be opened
|
|
63
|
+
* under the identity it currently has and re-sealed under the one it is moving
|
|
64
|
+
* to. A single identity would be wrong for one end or the other.
|
|
65
|
+
*
|
|
66
|
+
* ⚠️ **This retires an optimisation, deliberately.** Callers used to compute
|
|
67
|
+
* ONE rewrap and reuse the bytes for both a tier move's live write and its
|
|
68
|
+
* `_history` snapshot (#728). Those now have different destination identities,
|
|
69
|
+
* so they need different AAD and therefore different ciphertext — the same
|
|
70
|
+
* bytes cannot satisfy both. Reusing one rewrap for two destinations is now a
|
|
71
|
+
* silent corruption, not a saving: it produces a record that opens at one
|
|
72
|
+
* address and not the other.
|
|
56
73
|
*/
|
|
57
|
-
export declare function rewrapBodyToDek(envelope: Pick<EncryptedEnvelope, '_iv' | '_data' | '_cek'>, fromDek: EnclaveKey, toDek: EnclaveKey): Promise<RewrappedBody>;
|
|
74
|
+
export declare function rewrapBodyToDek(from: RecordIdentity, to: RecordIdentity, envelope: Pick<EncryptedEnvelope, '_iv' | '_data' | '_cek' | '_tier' | '_by'>, fromDek: EnclaveKey, toDek: EnclaveKey): Promise<RewrappedBody>;
|
|
58
75
|
/**
|
|
59
76
|
* Merge an ALREADY-rewrapped {@link RewrappedBody} into `envelope`, keeping
|
|
60
77
|
* every field but the re-keyed body (`_iv`/`_data`/`_cek`) unchanged.
|
|
@@ -76,7 +93,7 @@ export declare function applyRewrappedBody(envelope: EncryptedEnvelope, body: Re
|
|
|
76
93
|
* envelope, generalized to any envelope shape (history callers don't bump
|
|
77
94
|
* `_v`/`_ts`/`_tier` the way a tier move does).
|
|
78
95
|
*/
|
|
79
|
-
export declare function rewrapEnvelope(envelope: EncryptedEnvelope, fromDek: EnclaveKey, toDek: EnclaveKey): Promise<EncryptedEnvelope>;
|
|
96
|
+
export declare function rewrapEnvelope(identity: RecordIdentity, envelope: EncryptedEnvelope, fromDek: EnclaveKey, toDek: EnclaveKey): Promise<EncryptedEnvelope>;
|
|
80
97
|
/**
|
|
81
98
|
* Is `envelope` ALREADY wrapped under `dek` (a per-record CEK wrapped under
|
|
82
99
|
* `dek`, or — legacy, no `_cek` — the body itself decryptable under `dek`)?
|
|
@@ -104,4 +121,4 @@ export declare function rewrapEnvelope(envelope: EncryptedEnvelope, fromDek: Enc
|
|
|
104
121
|
* those fields themselves, preserving the check-architecture body-access
|
|
105
122
|
* ratchet.
|
|
106
123
|
*/
|
|
107
|
-
export declare function isRewrappedUnder(envelope: Pick<EncryptedEnvelope, '_iv' | '_data' | '_cek'>, dek: EnclaveKey): Promise<boolean>;
|
|
124
|
+
export declare function isRewrappedUnder(identity: RecordIdentity, envelope: Pick<EncryptedEnvelope, '_iv' | '_data' | '_cek'>, dek: EnclaveKey): Promise<boolean>;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { type EnclaveKey } from '../crypto.js';
|
|
20
20
|
import { type EncryptedEnvelope, type CrdtMode, type CrdtStrategy, type VdigFieldPolicy, type SealedHandle } from '../../types.js';
|
|
21
|
+
import { type RecordIdentity, type RecordRef } from '../record-aad.js';
|
|
21
22
|
import { type StandardSchemaV1 } from '../../schema.js';
|
|
22
23
|
import type { Lru } from '../../cache/index.js';
|
|
23
24
|
import type { ViaCryptoCtx } from '../../via/index.js';
|
|
@@ -127,11 +128,9 @@ export declare class RecordCodec<T> {
|
|
|
127
128
|
* parts. Pure, no crypto. Each call stamps its own `_ts` — provenance carries
|
|
128
129
|
* a SEPARATE timestamp (computed by the caller), so the two never share one.
|
|
129
130
|
*/
|
|
130
|
-
static buildEnvelope(p: {
|
|
131
|
-
version: number;
|
|
131
|
+
static buildEnvelope(identity: RecordIdentity, p: {
|
|
132
132
|
iv: string;
|
|
133
133
|
data: string;
|
|
134
|
-
by?: string;
|
|
135
134
|
cek?: string;
|
|
136
135
|
provenance?: {
|
|
137
136
|
source: string;
|
|
@@ -140,10 +139,8 @@ export declare class RecordCodec<T> {
|
|
|
140
139
|
extra?: Partial<Pick<EncryptedEnvelope, '_tier' | '_det' | '_sealed'>>;
|
|
141
140
|
}): EncryptedEnvelope;
|
|
142
141
|
/** Plaintext (`_iv:''`) body envelope — the `!storeCiphertext` shape. */
|
|
143
|
-
static buildPlaintextEnvelope(p: {
|
|
144
|
-
version: number;
|
|
142
|
+
static buildPlaintextEnvelope(identity: RecordIdentity, p: {
|
|
145
143
|
data: string;
|
|
146
|
-
by?: string;
|
|
147
144
|
provenance?: {
|
|
148
145
|
source: string;
|
|
149
146
|
sourceTs: string;
|
|
@@ -157,7 +154,7 @@ export declare class RecordCodec<T> {
|
|
|
157
154
|
* (see {@link encryptRecord}). Rejects `_`-prefixed record fields, which
|
|
158
155
|
* would collide with the reserved metadata namespace.
|
|
159
156
|
*/
|
|
160
|
-
buildDebugEnvelope(record: T, version: number, source?: string, sourceTs?: string): EncryptedEnvelope;
|
|
157
|
+
buildDebugEnvelope(id: string, record: T, version: number, source?: string, sourceTs?: string): EncryptedEnvelope;
|
|
161
158
|
/**
|
|
162
159
|
* Encrypt a JSON body into an envelope.
|
|
163
160
|
*
|
|
@@ -167,11 +164,41 @@ export declare class RecordCodec<T> {
|
|
|
167
164
|
* path encrypts the body directly under the collection DEK — byte-identical
|
|
168
165
|
* to pre-CEK behaviour, so non-adopting collections pay nothing.
|
|
169
166
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
/**
|
|
168
|
+
* `ref` is the identity the envelope is sealed against, and it is **the
|
|
169
|
+
* location the bytes are stored at** — not necessarily this codec's own
|
|
170
|
+
* collection (#1051).
|
|
171
|
+
*
|
|
172
|
+
* That distinction was discovered here rather than assumed. Several callers
|
|
173
|
+
* put the result somewhere else entirely: search's vector sidecar lands in
|
|
174
|
+
* `_vec` under `encodeVecId(name, id)`, the lexical index under `_ft/<name>`,
|
|
175
|
+
* indexing's entries under a synthetic `idxId`. A codec that supplied
|
|
176
|
+
* `this.ctx.name` for those would seal them against a collection they are not
|
|
177
|
+
* in, and once AAD binds identity every one of them would fail to verify.
|
|
178
|
+
*
|
|
179
|
+
* ⚠️ **`_history` is the open case, and it is #1041's to settle.** Snapshots
|
|
180
|
+
* are produced with the LIVE record's identity here and then re-homed by
|
|
181
|
+
* `saveHistory` into `_history/<historyId(collection,id,_v)>`. Both readings
|
|
182
|
+
* are defensible — bind where it lives, or bind what it is a copy of — and
|
|
183
|
+
* the choice must be made before AAD is switched on, not inferred from this
|
|
184
|
+
* migration.
|
|
185
|
+
*/
|
|
186
|
+
encryptJsonString(ref: RecordRef, json: string, version: number, cek?: EnclaveKey, source?: string, sourceTs?: string): Promise<EncryptedEnvelope>;
|
|
187
|
+
/**
|
|
188
|
+
* `ref` is FIRST and required (#1051). It was previously a trailing optional
|
|
189
|
+
* `id?: string`, which TypeScript cannot promote to required because it sits
|
|
190
|
+
* after other optionals — so the migration would have needed an `id ?? ''`
|
|
191
|
+
* fallback. That is exactly the silent default this issue exists to remove:
|
|
192
|
+
* once identity is bound into the AEAD, every record written with an empty id
|
|
193
|
+
* binds to the SAME identity and becomes interchangeable with the others.
|
|
194
|
+
* An object, not a bare string, so a swap with `version`/`source` cannot
|
|
195
|
+
* compile on the hottest write path. Carries the collection too — see
|
|
196
|
+
* {@link encryptJsonString} for why the codec must not assume its own.
|
|
197
|
+
*/
|
|
198
|
+
encryptRecord(ref: RecordRef, record: T, version: number, cek?: EnclaveKey, source?: string, sourceTs?: string, vdig?: {
|
|
172
199
|
readonly id: string;
|
|
173
200
|
readonly prev: EncryptedEnvelope | null;
|
|
174
|
-
}
|
|
201
|
+
}): Promise<EncryptedEnvelope>;
|
|
175
202
|
/**
|
|
176
203
|
* Resolve the per-record CEK for a stored envelope, or `undefined` for a
|
|
177
204
|
* legacy (`_cek`-absent) envelope. Unwraps `_cek` under the collection DEK and
|
|
@@ -195,7 +222,14 @@ export declare class RecordCodec<T> {
|
|
|
195
222
|
* The optional `id` lets reads populate the CEK cache; it is omitted by
|
|
196
223
|
* callers (history, conflict merge) that have only the envelope.
|
|
197
224
|
*/
|
|
198
|
-
|
|
225
|
+
/**
|
|
226
|
+
* `ref` must be the SAME identity the writer sealed against — which is the
|
|
227
|
+
* storage address, not necessarily this codec's own collection. Search's
|
|
228
|
+
* vector sidecar lives in `_vec`, its lexical index in `_ft`; passing
|
|
229
|
+
* `this.ctx.name` for those would recompute the wrong AAD and fail to open a
|
|
230
|
+
* perfectly good record (#1041).
|
|
231
|
+
*/
|
|
232
|
+
decryptJsonString(ref: RecordRef, envelope: EncryptedEnvelope): Promise<string | null>;
|
|
199
233
|
/**
|
|
200
234
|
* Unseal a single `_sealed[field]` slot to its plaintext value: derive the
|
|
201
235
|
* per-field key off the collection DEK, AES-GCM-decrypt the `iv:data` blob,
|
|
@@ -304,7 +338,7 @@ export declare class RecordCodec<T> {
|
|
|
304
338
|
* output-recompute path, not the public per-record read surface schema
|
|
305
339
|
* validation guards.
|
|
306
340
|
*/
|
|
307
|
-
decryptRecordAtDek(envelope: EncryptedEnvelope, dek: EnclaveKey
|
|
341
|
+
decryptRecordAtDek(ref: RecordRef, envelope: EncryptedEnvelope, dek: EnclaveKey): Promise<T | null>;
|
|
308
342
|
/**
|
|
309
343
|
* Decrypt an envelope into a record of type `T`.
|
|
310
344
|
*
|
|
@@ -320,9 +354,8 @@ export declare class RecordCodec<T> {
|
|
|
320
354
|
* that may predate a schema change, so validating it would be a
|
|
321
355
|
* false positive. Every non-history read leaves this flag `false`.
|
|
322
356
|
*/
|
|
323
|
-
decryptRecord(envelope: EncryptedEnvelope, opts?: {
|
|
357
|
+
decryptRecord(ref: RecordRef, envelope: EncryptedEnvelope, opts?: {
|
|
324
358
|
skipValidation?: boolean;
|
|
325
|
-
id?: string;
|
|
326
359
|
sealedAsHandles?: boolean;
|
|
327
360
|
}): Promise<T | null>;
|
|
328
361
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-key one envelope from an old collection DEK to a new one (#1074).
|
|
3
|
+
*
|
|
4
|
+
* Lives in the enclave because it is envelope surgery: it reads and writes the
|
|
5
|
+
* protected body slots (`_iv`/`_data`/`_cek`), which `enclave-body-only`
|
|
6
|
+
* reserves to `kernel/enclave/**`. `rotateKeys` previously did this inline in
|
|
7
|
+
* `with-party/team/keyring.ts` and got it wrong in two ways that the guard
|
|
8
|
+
* would have caught had the code lived here.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import { type EnclaveKey } from '../crypto.js';
|
|
13
|
+
import type { EncryptedEnvelope } from '../../types.js';
|
|
14
|
+
/**
|
|
15
|
+
* Produce the envelope `envelope` becomes once its collection's DEK rotates
|
|
16
|
+
* from `oldDek` to `newDek`.
|
|
17
|
+
*
|
|
18
|
+
* **Every slot is carried forward except `_bidx`.** The previous inline version
|
|
19
|
+
* built a fresh literal holding only `_noydb/_v/_ts/_iv/_data`, silently
|
|
20
|
+
* discarding `_by`, `_tier`, `_cek`, `_sealed`, `_vdig` and `_source`. Losing
|
|
21
|
+
* `_tier` was the worst of those: tier-0 reads treat elevated as missing, so an
|
|
22
|
+
* elevated record did not error after a rotation — it simply disappeared.
|
|
23
|
+
*
|
|
24
|
+
* `_bidx` is dropped deliberately. It is a DEK-rooted equality tag, so a tag
|
|
25
|
+
* carried across a DEK rotation can never be re-derived to match a query again
|
|
26
|
+
* while still leaking the old equality partition. Index coverage regrows
|
|
27
|
+
* per-record on the next `put()` under the new DEK.
|
|
28
|
+
*
|
|
29
|
+
* Two shapes, and picking the wrong one is why this needed a helper:
|
|
30
|
+
*
|
|
31
|
+
* - **per-record CEK** (`_cek` present) — the body is sealed under the CEK and
|
|
32
|
+
* the CEK is wrapped under the collection DEK, so rotation re-wraps the CEK
|
|
33
|
+
* and leaves the body **untouched**. The old inline code instead ran
|
|
34
|
+
* `decrypt(body, oldDek)` on these, which throws: rotation could not complete
|
|
35
|
+
* on a collection containing any CEK record.
|
|
36
|
+
* - **bare** — body sealed directly under the DEK, so decrypt and re-encrypt.
|
|
37
|
+
*
|
|
38
|
+
* Idempotence is the caller's problem, not this function's: it assumes
|
|
39
|
+
* `envelope` is still under `oldDek`. A resumable rotation must know which side
|
|
40
|
+
* of the migration each record is on before calling.
|
|
41
|
+
*/
|
|
42
|
+
export declare function rekeyEnvelopeToDek(ref: {
|
|
43
|
+
readonly collection: string;
|
|
44
|
+
readonly id: string;
|
|
45
|
+
}, envelope: EncryptedEnvelope, oldDek: EnclaveKey, newDek: EnclaveKey): Promise<EncryptedEnvelope>;
|
|
46
|
+
/**
|
|
47
|
+
* Resumable variant: returns the re-keyed envelope, or `null` when `envelope`
|
|
48
|
+
* is **already** under `newDek` and needs no work (#1074 part 2).
|
|
49
|
+
*
|
|
50
|
+
* A rotation interrupted mid-collection leaves records on both sides of the
|
|
51
|
+
* migration. Resuming means re-running the rotation with the *same* new DEK,
|
|
52
|
+
* which requires distinguishing "not yet moved" from "already moved" without
|
|
53
|
+
* the caller touching protected slots.
|
|
54
|
+
*
|
|
55
|
+
* Detection is by trial decryption under `oldDek`. There is no metadata that
|
|
56
|
+
* says which DEK sealed a record — deliberately, since such a marker would be
|
|
57
|
+
* store-writable and therefore a downgrade lever (the same reasoning that
|
|
58
|
+
* keeps the reader from branching on `_noydb`).
|
|
59
|
+
*
|
|
60
|
+
* A record that opens under *neither* key is genuinely damaged and rethrows,
|
|
61
|
+
* rather than being silently skipped: a rotation that quietly walked past
|
|
62
|
+
* unreadable records would convert a loud failure into permanent silent loss,
|
|
63
|
+
* which is the defect this whole issue is about.
|
|
64
|
+
*/
|
|
65
|
+
export declare function rekeyEnvelopeIfNeeded(ref: {
|
|
66
|
+
readonly collection: string;
|
|
67
|
+
readonly id: string;
|
|
68
|
+
}, envelope: EncryptedEnvelope, oldDek: EnclaveKey, newDek: EnclaveKey): Promise<EncryptedEnvelope | null>;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* vault; it calls into these.
|
|
17
17
|
*/
|
|
18
18
|
import { type EncryptedEnvelope } from '../../types.js';
|
|
19
|
-
import type {
|
|
19
|
+
import type { RecordRef } from '../record-aad.js';
|
|
20
20
|
/**
|
|
21
21
|
* Shape-only tombstone recognition for layers that have no per-collection
|
|
22
22
|
* context (the sync engine, #590): a tombstone carries an empty `_data` and
|
|
@@ -46,7 +46,7 @@ export declare function isTombstone(envelope: EncryptedEnvelope, encrypted: bool
|
|
|
46
46
|
* Deliberately omits `_iv`/`_data`/`_cek`/`_det` — that omission *is* the
|
|
47
47
|
* erasure.
|
|
48
48
|
*/
|
|
49
|
-
export declare function buildTombstone(
|
|
49
|
+
export declare function buildTombstone(ref: RecordRef, version: number, actor: string): EncryptedEnvelope;
|
|
50
50
|
/** #589: is this envelope an ordinary-delete marker (version-ordered, reads as absent)? */
|
|
51
51
|
export declare function isDeleteMarker(envelope: EncryptedEnvelope): boolean;
|
|
52
52
|
/**
|
|
@@ -55,4 +55,4 @@ export declare function isDeleteMarker(envelope: EncryptedEnvelope): boolean;
|
|
|
55
55
|
* keeps the displaced `_v` — so it wins convergence over the pre-delete copy and a
|
|
56
56
|
* re-create can still win over it at a higher version.
|
|
57
57
|
*/
|
|
58
|
-
export declare function buildDeleteMarker(
|
|
58
|
+
export declare function buildDeleteMarker(ref: RecordRef, version: number, actor: string): EncryptedEnvelope;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MergeAuthority } from '../port/with/merge-authority.js';
|
|
2
|
+
import type { EnclaveKey } from './enclave/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* ⚠️ **A client cannot verify what it cannot decrypt** — and that boundary is
|
|
5
|
+
* stated here rather than hidden.
|
|
6
|
+
*
|
|
7
|
+
* A record at a tier this caller holds no key for is accepted **unverified**.
|
|
8
|
+
* Rejecting it would break replication of data the peer legitimately holds but
|
|
9
|
+
* this client is not cleared to read, converting a confidentiality boundary
|
|
10
|
+
* into a replication failure. The residue is narrow: envelopes whose key the
|
|
11
|
+
* client lacks are pass-through, exactly as every envelope was before #1042.
|
|
12
|
+
*
|
|
13
|
+
* Closing that residue needs the vault head (#1044), which can detect absence
|
|
14
|
+
* and substitution without holding the key.
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildMergeAuthority(
|
|
17
|
+
/**
|
|
18
|
+
* Just the DEK map, not the whole keyring. `port-layering` refused a type
|
|
19
|
+
* import of `UnlockedKeyring` from `with-party` — correctly, and the narrower
|
|
20
|
+
* shape is better anyway: this needs to look up keys, not to know what a
|
|
21
|
+
* keyring is.
|
|
22
|
+
*/
|
|
23
|
+
keyring: {
|
|
24
|
+
readonly deks: ReadonlyMap<string, EnclaveKey>;
|
|
25
|
+
}): MergeAuthority;
|
|
@@ -52,3 +52,18 @@ export declare function assertTierWritable(adapter: NoydbStore, vault: string, n
|
|
|
52
52
|
* explicit for concurrent writes generally.
|
|
53
53
|
*/
|
|
54
54
|
export declare function assertCutoverTierSafe(adapter: NoydbStore, vault: string, name: string, tiersEnabled: boolean): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* The key a collection's DEK is stored under in `UnlockedKeyring.deks` for a
|
|
57
|
+
* given tier: `collection` at tier 0, `collection#N` above it.
|
|
58
|
+
*
|
|
59
|
+
* Lives in the kernel because the `deks` map is a kernel type and the kernel
|
|
60
|
+
* reads it — `noydb.ts` needs this to resolve the right DEK when verifying a
|
|
61
|
+
* pulled envelope (#1042). `with-party/team/tiers.ts` re-exports it, so every
|
|
62
|
+
* existing importer is unchanged; the definition simply moved to the layer that
|
|
63
|
+
* owns the map rather than one that happens to use it.
|
|
64
|
+
*
|
|
65
|
+
* This move was forced by `port-layering`, and rightly: the alternative was the
|
|
66
|
+
* kernel spine statically importing a `with-*` service, or duplicating the
|
|
67
|
+
* naming convention in two places where it could drift.
|
|
68
|
+
*/
|
|
69
|
+
export declare function dekKey(collection: string, tier: number): string;
|
package/dist/kernel/types.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type { PeriodsStrategy } from '../with-audit/periods/strategy.js';
|
|
|
34
34
|
import type { ShadowStrategy } from '../with-fork/shadow/strategy.js';
|
|
35
35
|
import type { TransactionsStrategy } from '../with-commit/tx/strategy.js';
|
|
36
36
|
import type { HistoryStrategy } from '../with-commit/history/strategy.js';
|
|
37
|
+
import type { VaultHeadStrategy } from '../with-commit/vault-head/strategy.js';
|
|
37
38
|
import type { ForgetStrategy } from '../with-audit/forget/strategy.js';
|
|
38
39
|
import type { SnapshotsStrategy } from '../with-fork/snapshots/strategy.js';
|
|
39
40
|
import type { DerivationSkippedFrozen } from './via/dispatch.js';
|
|
@@ -908,6 +909,21 @@ export interface KeyringFile {
|
|
|
908
909
|
readonly role: Role;
|
|
909
910
|
readonly permissions: Permissions;
|
|
910
911
|
readonly deks: Record<string, string>;
|
|
912
|
+
/**
|
|
913
|
+
* DEKs for a rotation that has STARTED but not committed (#1074).
|
|
914
|
+
*
|
|
915
|
+
* `rotateKeys` persists the new DEK here *before* rewriting any record, so an
|
|
916
|
+
* interruption can never strand records under a key that was only ever in
|
|
917
|
+
* memory. On commit these move into `deks` and this is cleared.
|
|
918
|
+
*
|
|
919
|
+
* Present on disk ⇒ a rotation was interrupted and the collection may hold
|
|
920
|
+
* records on both sides of the migration. Re-running `rotateKeys` resumes
|
|
921
|
+
* with this key rather than minting a fresh one.
|
|
922
|
+
*
|
|
923
|
+
* Optional: absent on every keyring written before this existed, and absent
|
|
924
|
+
* in the normal committed state.
|
|
925
|
+
*/
|
|
926
|
+
readonly pending_deks?: Record<string, string>;
|
|
911
927
|
readonly salt: string;
|
|
912
928
|
readonly created_at: string;
|
|
913
929
|
readonly granted_by: string;
|
|
@@ -2415,6 +2431,13 @@ export interface NoydbOptions {
|
|
|
2415
2431
|
* @internal
|
|
2416
2432
|
*/
|
|
2417
2433
|
readonly historyStrategy?: HistoryStrategy;
|
|
2434
|
+
/**
|
|
2435
|
+
* #1044 — opt in to the vault head, which detects a store that WITHHOLDS.
|
|
2436
|
+
* `withVaultHead()` from `@noy-db/hub/vault-head`. Costs one small write per
|
|
2437
|
+
* commit; on a single-device offline vault it defends against nothing, which
|
|
2438
|
+
* is why it is opt-in while AAD is not.
|
|
2439
|
+
*/
|
|
2440
|
+
readonly vaultHeadStrategy?: VaultHeadStrategy;
|
|
2418
2441
|
/**
|
|
2419
2442
|
* GDPR right-to-erasure. Pass `withForget({ subjects })`
|
|
2420
2443
|
* from `@noy-db/hub/forget` to declare which collections carry erasable
|
package/dist/kernel/vault.d.ts
CHANGED
|
@@ -745,7 +745,7 @@ export declare class Vault {
|
|
|
745
745
|
*
|
|
746
746
|
* @internal
|
|
747
747
|
*/
|
|
748
|
-
_decryptEnvelopeForBundleFilter(env: EncryptedEnvelope, collectionName: string): Promise<unknown>;
|
|
748
|
+
_decryptEnvelopeForBundleFilter(env: EncryptedEnvelope, collectionName: string, recordId: string): Promise<unknown>;
|
|
749
749
|
/**
|
|
750
750
|
* Read-only accessor for the invoking keyring's import capability
|
|
751
751
|
* (issue ). UI affordance — returns false in every default-closed
|
|
@@ -47,8 +47,17 @@ export interface ViaCryptoCtx {
|
|
|
47
47
|
delete(field: string): Promise<void>;
|
|
48
48
|
};
|
|
49
49
|
reservedEnvelopes(prefix: string): {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/**
|
|
51
|
+
* `id` is the record id the envelope will be stored under. Required
|
|
52
|
+
* (#1051) because this function holds the DEK, so it is where record-identity
|
|
53
|
+
* AAD is applied — a caller that cannot name the id cannot be bound.
|
|
54
|
+
*/
|
|
55
|
+
encrypt(identity: {
|
|
56
|
+
readonly collection: string;
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly by?: string;
|
|
59
|
+
}, json: string, v: number): Promise<EncryptedEnvelope>;
|
|
60
|
+
decrypt(collection: string, id: string, env: EncryptedEnvelope): Promise<string>;
|
|
52
61
|
};
|
|
53
62
|
}
|
|
54
63
|
/** Per-call erase context — `forget()`'s per-ref participation door (phase C). */
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
LedgerStore,
|
|
4
4
|
applyPatch,
|
|
5
5
|
computePatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FDIZHZ3C.js";
|
|
7
7
|
import {
|
|
8
8
|
LEDGER_COLLECTION,
|
|
9
9
|
LEDGER_DELTAS_COLLECTION
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
paddedIndex,
|
|
16
16
|
parseIndex,
|
|
17
17
|
sha256Hex
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-FY33DKPH.js";
|
|
19
|
+
import "./chunk-X3AXSYBL.js";
|
|
20
|
+
import "./chunk-ZVAFJQZB.js";
|
|
21
21
|
import "./chunk-FSZPQCDR.js";
|
|
22
22
|
import "./chunk-HVR74IBG.js";
|
|
23
23
|
import "./chunk-RBTZLXZJ.js";
|
|
24
24
|
import "./chunk-LP7BEXCT.js";
|
|
25
25
|
import "./chunk-QTDAPDDV.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
27
27
|
import "./chunk-I64WQSN3.js";
|
|
28
28
|
import "./chunk-PZ5AY32C.js";
|
|
29
29
|
export {
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
parseIndex,
|
|
40
40
|
sha256Hex
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=ledger-
|
|
42
|
+
//# sourceMappingURL=ledger-KQAJPEMZ.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
liberateVault
|
|
3
|
+
} from "./chunk-FRGF56PD.js";
|
|
4
|
+
import "./chunk-TXDOMADN.js";
|
|
5
|
+
import "./chunk-BBU3OD3D.js";
|
|
6
|
+
import "./chunk-NRNTXBHT.js";
|
|
7
|
+
import "./chunk-TNOQNU3R.js";
|
|
8
|
+
import "./chunk-O4QDBAB6.js";
|
|
9
|
+
import "./chunk-ZSOTZ2RZ.js";
|
|
10
|
+
import "./chunk-ITXPKEDP.js";
|
|
11
|
+
import "./chunk-X3AXSYBL.js";
|
|
12
|
+
import "./chunk-ZVAFJQZB.js";
|
|
13
|
+
import "./chunk-FSZPQCDR.js";
|
|
14
|
+
import "./chunk-HVR74IBG.js";
|
|
15
|
+
import "./chunk-RBTZLXZJ.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-QTDAPDDV.js";
|
|
18
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
19
|
+
import "./chunk-I64WQSN3.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
liberateVault
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=liberate-Z2EXJY2S.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinkEndpointError,
|
|
3
3
|
LinkSet
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2ION5ZRH.js";
|
|
5
5
|
import {
|
|
6
6
|
LINK_COLLECTION_PREFIX,
|
|
7
7
|
LinkIntegrityError,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
linkCollectionName,
|
|
10
10
|
linkRowKey
|
|
11
11
|
} from "./chunk-S6CP5FWF.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-X3AXSYBL.js";
|
|
13
|
+
import "./chunk-ZVAFJQZB.js";
|
|
14
14
|
import "./chunk-FSZPQCDR.js";
|
|
15
15
|
import "./chunk-HVR74IBG.js";
|
|
16
16
|
import "./chunk-RBTZLXZJ.js";
|
|
17
17
|
import "./chunk-LP7BEXCT.js";
|
|
18
18
|
import "./chunk-QTDAPDDV.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
20
20
|
import "./chunk-I64WQSN3.js";
|
|
21
21
|
import "./chunk-PZ5AY32C.js";
|
|
22
22
|
export {
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
linkCollectionName,
|
|
29
29
|
linkRowKey
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=link-set-
|
|
31
|
+
//# sourceMappingURL=link-set-XKN5V7VM.js.map
|
|
@@ -9,8 +9,16 @@ import {
|
|
|
9
9
|
resolveManagedSecret,
|
|
10
10
|
saveSealedSecret,
|
|
11
11
|
sealRsaOaepTlv
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-NRNTXBHT.js";
|
|
13
|
+
import "./chunk-X3AXSYBL.js";
|
|
14
|
+
import "./chunk-ZVAFJQZB.js";
|
|
15
|
+
import "./chunk-FSZPQCDR.js";
|
|
16
|
+
import "./chunk-HVR74IBG.js";
|
|
17
|
+
import "./chunk-RBTZLXZJ.js";
|
|
18
|
+
import "./chunk-LP7BEXCT.js";
|
|
19
|
+
import "./chunk-QTDAPDDV.js";
|
|
20
|
+
import "./chunk-3Y4OFWQJ.js";
|
|
21
|
+
import "./chunk-I64WQSN3.js";
|
|
14
22
|
import "./chunk-PZ5AY32C.js";
|
|
15
23
|
export {
|
|
16
24
|
MemoryRecipientSealer,
|
|
@@ -24,4 +32,4 @@ export {
|
|
|
24
32
|
saveSealedSecret,
|
|
25
33
|
sealRsaOaepTlv
|
|
26
34
|
};
|
|
27
|
-
//# sourceMappingURL=managed-secret-
|
|
35
|
+
//# sourceMappingURL=managed-secret-7WIIVMJ5.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withMaterializedView
|
|
3
3
|
} from "../chunk-K2MR7ROB.js";
|
|
4
|
+
import {
|
|
5
|
+
MaterializedViewExecutor
|
|
6
|
+
} from "../chunk-OCCNYGKG.js";
|
|
4
7
|
import {
|
|
5
8
|
clearMVStale,
|
|
6
9
|
isMVStale,
|
|
7
10
|
markMVStale,
|
|
8
11
|
resolveStaleMVOnRead
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import {
|
|
11
|
-
MaterializedViewExecutor
|
|
12
|
-
} from "../chunk-4DJQU3PH.js";
|
|
12
|
+
} from "../chunk-AIZNLHKN.js";
|
|
13
13
|
import {
|
|
14
14
|
MaterializedViewRegistry,
|
|
15
15
|
analyzeDependencies,
|
|
@@ -17,26 +17,26 @@ import {
|
|
|
17
17
|
computeQueryHash,
|
|
18
18
|
summarizeQueryPlan
|
|
19
19
|
} from "../chunk-C66T4W5P.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-OPGKH5RD.js";
|
|
20
|
+
import "../chunk-EWAGI3EM.js";
|
|
21
|
+
import "../chunk-NFPSC2HL.js";
|
|
23
22
|
import "../chunk-5D2ALSM5.js";
|
|
24
23
|
import "../chunk-QI2KXQOM.js";
|
|
24
|
+
import "../chunk-LU6NPJWN.js";
|
|
25
25
|
import "../chunk-XZHEOSQ2.js";
|
|
26
26
|
import "../chunk-CADUYBQD.js";
|
|
27
27
|
import "../chunk-IGJCYUT5.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-CFTPERGL.js";
|
|
29
|
+
import "../chunk-LPAGIMXJ.js";
|
|
30
|
+
import "../chunk-SQSZRCYT.js";
|
|
31
|
+
import "../chunk-FY33DKPH.js";
|
|
32
|
+
import "../chunk-X3AXSYBL.js";
|
|
33
|
+
import "../chunk-ZVAFJQZB.js";
|
|
34
34
|
import "../chunk-FSZPQCDR.js";
|
|
35
35
|
import "../chunk-HVR74IBG.js";
|
|
36
36
|
import "../chunk-RBTZLXZJ.js";
|
|
37
37
|
import "../chunk-LP7BEXCT.js";
|
|
38
38
|
import "../chunk-QTDAPDDV.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-3Y4OFWQJ.js";
|
|
40
40
|
import {
|
|
41
41
|
MaterializedViewConfigError,
|
|
42
42
|
MaterializedViewCycleError,
|
package/dist/money/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isMoneyString,
|
|
5
5
|
moneyNumber,
|
|
6
6
|
mulRate
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2NE7ILO7.js";
|
|
8
8
|
import {
|
|
9
9
|
MoneyCurrencyError,
|
|
10
10
|
MoneyPrecisionError,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
isMoneyDescriptor,
|
|
14
14
|
money,
|
|
15
15
|
scaleForCurrency
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-EWAGI3EM.js";
|
|
17
17
|
import "../chunk-IGJCYUT5.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-SQSZRCYT.js";
|
|
19
19
|
import "../chunk-I64WQSN3.js";
|
|
20
20
|
import "../chunk-PZ5AY32C.js";
|
|
21
21
|
export {
|