@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-commit/history/active.ts"],"sourcesContent":["/**\n * Active history strategy — `withHistory()` returns the real\n * implementation that wires per-record snapshots, the hash-chained\n * audit ledger, JSON-patch deltas, and time-machine reads into the\n * core write/read paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withHistory } from '@noy-db/hub/history'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * historyStrategy: withHistory(),\n * })\n * ```\n *\n * The factory is a thin wrapper that delegates to the existing\n * `history.ts`, `diff.ts`, `ledger/store.ts`, `ledger/patch.ts`, and\n * `time-machine.ts` modules. Splitting the import chain through this\n * file is what lets `tsup` tree-shake the heavy modules out of the\n * default `@noy-db/hub` bundle when no `withHistory()` import is\n * present in the consumer.\n *\n * @public\n */\n\nimport type { HistoryStrategy, BuildLedgerOptions } from './strategy.js'\nimport {\n saveHistory,\n getHistory,\n getVersionEnvelope,\n pruneHistory,\n clearHistory,\n tombstoneHistory,\n rewrapHistory,\n} from './history.js'\nimport { diff as computeDiff } from './diff.js'\nimport { LedgerStore, envelopePayloadHash } from './ledger/store.js'\nimport { computePatch } from './ledger/patch.js'\nimport { VaultInstant } from './time-machine.js'\n\n/**\n * Build the active history strategy. Today the factory takes no\n * options; per-collection retention tuning still flows through\n * `HistoryConfig` on `Vault.collection()` / `vault.openVault()`.\n *\n * Future option slots (kept off the LTS surface for now):\n * - global maxVersions cap\n * - global beforeDate prune cadence\n * - ledger encryption toggle (today inferred from vault.encrypted)\n */\nexport function withHistory(): HistoryStrategy {\n return {\n saveHistory,\n getHistoryEntries: getHistory,\n getVersionEnvelope,\n pruneHistory,\n clearHistory,\n tombstoneHistory,\n rewrapHistory,\n envelopePayloadHash,\n computePatch,\n diff: computeDiff,\n buildLedger(opts: BuildLedgerOptions): LedgerStore {\n return new LedgerStore({\n adapter: opts.adapter,\n vault: opts.vault,\n encrypted: opts.encrypted,\n getDEK: opts.getDEK,\n actor: opts.actor,\n })\n },\n buildVaultInstant(engine, timestamp): VaultInstant {\n return new VaultInstant(engine, timestamp)\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-commit/history/active.ts"],"sourcesContent":["/**\n * Active history strategy — `withHistory()` returns the real\n * implementation that wires per-record snapshots, the hash-chained\n * audit ledger, JSON-patch deltas, and time-machine reads into the\n * core write/read paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withHistory } from '@noy-db/hub/history'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * historyStrategy: withHistory(),\n * })\n * ```\n *\n * The factory is a thin wrapper that delegates to the existing\n * `history.ts`, `diff.ts`, `ledger/store.ts`, `ledger/patch.ts`, and\n * `time-machine.ts` modules. Splitting the import chain through this\n * file is what lets `tsup` tree-shake the heavy modules out of the\n * default `@noy-db/hub` bundle when no `withHistory()` import is\n * present in the consumer.\n *\n * @public\n */\n\nimport type { HistoryStrategy, BuildLedgerOptions } from './strategy.js'\nimport {\n saveHistory,\n historyIdentity,\n getHistory,\n getVersionEnvelope,\n pruneHistory,\n clearHistory,\n tombstoneHistory,\n rewrapHistory,\n} from './history.js'\nimport { diff as computeDiff } from './diff.js'\nimport { LedgerStore, envelopePayloadHash } from './ledger/store.js'\nimport { computePatch } from './ledger/patch.js'\nimport { VaultInstant } from './time-machine.js'\n\n/**\n * Build the active history strategy. Today the factory takes no\n * options; per-collection retention tuning still flows through\n * `HistoryConfig` on `Vault.collection()` / `vault.openVault()`.\n *\n * Future option slots (kept off the LTS surface for now):\n * - global maxVersions cap\n * - global beforeDate prune cadence\n * - ledger encryption toggle (today inferred from vault.encrypted)\n */\nexport function withHistory(): HistoryStrategy {\n return {\n saveHistory,\n historyIdentity,\n getHistoryEntries: getHistory,\n getVersionEnvelope,\n pruneHistory,\n clearHistory,\n tombstoneHistory,\n rewrapHistory,\n envelopePayloadHash,\n computePatch,\n diff: computeDiff,\n buildLedger(opts: BuildLedgerOptions): LedgerStore {\n return new LedgerStore({\n adapter: opts.adapter,\n vault: opts.vault,\n encrypted: opts.encrypted,\n getDEK: opts.getDEK,\n actor: opts.actor,\n })\n },\n buildVaultInstant(engine, timestamp): VaultInstant {\n return new VaultInstant(engine, timestamp)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDO,SAAS,cAA+B;AAC7C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY,MAAuC;AACjD,aAAO,IAAI,YAAY;AAAA,QACrB,SAAS,KAAK;AAAA,QACd,OAAO,KAAK;AAAA,QACZ,WAAW,KAAK;AAAA,QAChB,QAAQ,KAAK;AAAA,QACb,OAAO,KAAK;AAAA,MACd,CAAC;AAAA,IACH;AAAA,IACA,kBAAkB,QAAQ,WAAyB;AACjD,aAAO,IAAI,aAAa,QAAQ,SAAS;AAAA,IAC3C;AAAA,EACF;AACF;","names":[]}
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withLookup
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-PBPYQZDW.js";
|
|
4
4
|
import {
|
|
5
5
|
dictKey,
|
|
6
6
|
staticDict
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-6AL6O4CS.js";
|
|
8
8
|
import {
|
|
9
9
|
DICT_COLLECTION_PREFIX,
|
|
10
10
|
LookupHandle,
|
|
11
11
|
dictCollectionName
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-CFTPERGL.js";
|
|
13
13
|
import {
|
|
14
14
|
NO_I18N,
|
|
15
15
|
applyI18nLocale,
|
|
@@ -26,17 +26,17 @@ import {
|
|
|
26
26
|
resolvePolicy,
|
|
27
27
|
stripI18nFilled,
|
|
28
28
|
validateI18nTextValue
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
29
|
+
} from "../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
|
DictKeyInUseError,
|
|
42
42
|
DictKeyMissingError,
|
package/dist/index.d.ts
CHANGED
|
@@ -306,6 +306,22 @@ export type { SessionToken, CreateSessionResult, CreateSessionOptions, } from '.
|
|
|
306
306
|
export { enableDevUnlock, loadDevUnlock, clearDevUnlock, isDevUnlockActive, } from './with-party/session/dev-unlock.js';
|
|
307
307
|
export type { DevUnlockOptions } from './with-party/session/dev-unlock.js';
|
|
308
308
|
export { isDiscriminant } from './kernel/util/discriminant.js';
|
|
309
|
+
/**
|
|
310
|
+
* Record-identity AAD (#1041) — **public because a raw DEK is no longer enough
|
|
311
|
+
* to read a record.**
|
|
312
|
+
*
|
|
313
|
+
* Every record body is sealed with additional authenticated data derived from
|
|
314
|
+
* `{collection, id, _tier, _by}`, so a holder of a delegated DEK — a magic-link
|
|
315
|
+
* grantee, an `at-*` host, external tooling reading a backup — must be able to
|
|
316
|
+
* reproduce it. Without this export a delegated key opens nothing, which would
|
|
317
|
+
* silently break delegation rather than merely inconvenience it.
|
|
318
|
+
*
|
|
319
|
+
* `recordAadFor(address, envelope)` is the reader's form: it takes the address
|
|
320
|
+
* the envelope was fetched from and reads `_tier`/`_by` off the envelope
|
|
321
|
+
* itself, so callers thread two fields rather than four.
|
|
322
|
+
*/
|
|
323
|
+
export { recordAadFor } from './kernel/enclave/index.js';
|
|
324
|
+
export type { RecordIdentity, RecordRef } from './kernel/enclave/index.js';
|
|
309
325
|
export { bufferToBase64, base64ToBuffer, encryptBytes, decryptBytes } from './kernel/enclave/index.js';
|
|
310
326
|
export { encryptDeterministic, decryptDeterministic } from './kernel/enclave/index.js';
|
|
311
327
|
export { EnclaveNotSupportedError } from './kernel/errors.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
persistSchemaIfNeeded
|
|
3
|
-
} from "./chunk-3OEWD45V.js";
|
|
4
1
|
import {
|
|
5
2
|
LinkEndpointError
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2ION5ZRH.js";
|
|
4
|
+
import {
|
|
5
|
+
persistSchemaIfNeeded
|
|
6
|
+
} from "./chunk-3RZ7QLJ4.js";
|
|
7
7
|
import {
|
|
8
8
|
ComputedFieldError,
|
|
9
9
|
evalComputedFields
|
|
@@ -14,14 +14,17 @@ import {
|
|
|
14
14
|
listWithdrawalRequests,
|
|
15
15
|
rejectWithdrawal,
|
|
16
16
|
requestWithdrawal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OZD3D2DZ.js";
|
|
18
|
+
import {
|
|
19
|
+
applyListProjection
|
|
20
|
+
} from "./chunk-VG2ZSFYD.js";
|
|
18
21
|
import {
|
|
19
22
|
allocate,
|
|
20
23
|
asMoney,
|
|
21
24
|
isMoneyString,
|
|
22
25
|
moneyNumber,
|
|
23
26
|
mulRate
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2NE7ILO7.js";
|
|
25
28
|
import {
|
|
26
29
|
COVER_FIELDS,
|
|
27
30
|
DEFAULT_COVER_SCHEMA,
|
|
@@ -41,33 +44,33 @@ import {
|
|
|
41
44
|
checkGate,
|
|
42
45
|
describeGate,
|
|
43
46
|
mergePolicy
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AA7LM2A3.js";
|
|
45
48
|
import "./chunk-GJW4HX2O.js";
|
|
46
49
|
import {
|
|
47
50
|
UserApi
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6D3CN2JR.js";
|
|
49
52
|
import {
|
|
50
53
|
classified,
|
|
51
54
|
luhnCheck
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3KXIGMZ4.js";
|
|
53
56
|
import {
|
|
54
57
|
decryptExtractedPartition,
|
|
55
58
|
diffVault,
|
|
56
59
|
withCargo
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-U6D5XTI5.js";
|
|
61
|
+
import "./chunk-AMMYIT7F.js";
|
|
59
62
|
import {
|
|
60
63
|
createDeedOwner,
|
|
61
64
|
isDeedVault,
|
|
62
65
|
liberateVault,
|
|
63
66
|
loadDeedMarker
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FRGF56PD.js";
|
|
65
68
|
import {
|
|
66
69
|
withdrawAccessibleData
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-TXDOMADN.js";
|
|
68
71
|
import {
|
|
69
72
|
exportAccessibleData
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BBU3OD3D.js";
|
|
71
74
|
import {
|
|
72
75
|
routeStore,
|
|
73
76
|
withCache,
|
|
@@ -78,9 +81,6 @@ import {
|
|
|
78
81
|
withRetry,
|
|
79
82
|
wrapStore
|
|
80
83
|
} from "./chunk-EIPVYUEP.js";
|
|
81
|
-
import {
|
|
82
|
-
applyListProjection
|
|
83
|
-
} from "./chunk-VG2ZSFYD.js";
|
|
84
84
|
import {
|
|
85
85
|
withDerivation,
|
|
86
86
|
withRollup
|
|
@@ -90,8 +90,8 @@ import "./chunk-YDJXGYYA.js";
|
|
|
90
90
|
import {
|
|
91
91
|
withMaterializedView
|
|
92
92
|
} from "./chunk-K2MR7ROB.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-OCCNYGKG.js";
|
|
94
|
+
import "./chunk-AIZNLHKN.js";
|
|
95
95
|
import "./chunk-C66T4W5P.js";
|
|
96
96
|
import {
|
|
97
97
|
MoneyCurrencyError,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
isMoneyDescriptor,
|
|
102
102
|
money,
|
|
103
103
|
scaleForCurrency
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-EWAGI3EM.js";
|
|
105
105
|
import {
|
|
106
106
|
withOverlayedView
|
|
107
107
|
} from "./chunk-5SK5AFYH.js";
|
|
@@ -110,54 +110,10 @@ import {
|
|
|
110
110
|
PresenceHandle,
|
|
111
111
|
SyncEngine,
|
|
112
112
|
SyncTransaction
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-FOABWV7L.js";
|
|
114
114
|
import {
|
|
115
115
|
isDiscriminant
|
|
116
116
|
} from "./chunk-PY4KJPYU.js";
|
|
117
|
-
import {
|
|
118
|
-
CONSENT_AUDIT_COLLECTION
|
|
119
|
-
} from "./chunk-VUUUIKRG.js";
|
|
120
|
-
import {
|
|
121
|
-
immutableGuard,
|
|
122
|
-
transitionGuard,
|
|
123
|
-
withGuard
|
|
124
|
-
} from "./chunk-QWNYUTI2.js";
|
|
125
|
-
import "./chunk-RWPNRCK2.js";
|
|
126
|
-
import "./chunk-VTTRWLOR.js";
|
|
127
|
-
import "./chunk-JK733I5V.js";
|
|
128
|
-
import {
|
|
129
|
-
CollectionFrame,
|
|
130
|
-
VaultFrame
|
|
131
|
-
} from "./chunk-SGEI3IJK.js";
|
|
132
|
-
import {
|
|
133
|
-
importExternalObjects,
|
|
134
|
-
memoryObjectProjection
|
|
135
|
-
} from "./chunk-4Q6HSHHL.js";
|
|
136
|
-
import {
|
|
137
|
-
BLOB_CHUNKS_COLLECTION,
|
|
138
|
-
BLOB_COLLECTION,
|
|
139
|
-
BLOB_INDEX_COLLECTION,
|
|
140
|
-
BLOB_INTENT_COLLECTION,
|
|
141
|
-
BLOB_SLOTS_PREFIX,
|
|
142
|
-
BLOB_VERSIONS_PREFIX,
|
|
143
|
-
BlobSet,
|
|
144
|
-
DEFAULT_CHUNK_SIZE,
|
|
145
|
-
createIntent,
|
|
146
|
-
deleteIntent,
|
|
147
|
-
detectMagic,
|
|
148
|
-
detectMimeType,
|
|
149
|
-
getIntent,
|
|
150
|
-
isPreCompressed,
|
|
151
|
-
sweepBlobIntents
|
|
152
|
-
} from "./chunk-NY6RQBUN.js";
|
|
153
|
-
import {
|
|
154
|
-
withLazy
|
|
155
|
-
} from "./chunk-THNJ3IKU.js";
|
|
156
|
-
import "./chunk-3JQVA527.js";
|
|
157
|
-
import {
|
|
158
|
-
mergeCrdtStates,
|
|
159
|
-
resolveCrdtSnapshot
|
|
160
|
-
} from "./chunk-4GPE63GU.js";
|
|
161
117
|
import {
|
|
162
118
|
createPodStore,
|
|
163
119
|
followRedirects,
|
|
@@ -165,7 +121,7 @@ import {
|
|
|
165
121
|
signRedirect,
|
|
166
122
|
verifyRedirect,
|
|
167
123
|
wrapPodStore
|
|
168
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-UE72AQDZ.js";
|
|
169
125
|
import {
|
|
170
126
|
Collection,
|
|
171
127
|
ELEVATION_AUDIT_COLLECTION,
|
|
@@ -184,33 +140,40 @@ import {
|
|
|
184
140
|
refArray,
|
|
185
141
|
via,
|
|
186
142
|
withArchive
|
|
187
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-GSRW5MTU.js";
|
|
144
|
+
import {
|
|
145
|
+
LinkIntegrityError,
|
|
146
|
+
isLinkCollectionName
|
|
147
|
+
} from "./chunk-S6CP5FWF.js";
|
|
188
148
|
import "./chunk-PCXAUC65.js";
|
|
189
149
|
import "./chunk-MVG67SMN.js";
|
|
190
150
|
import {
|
|
191
151
|
deriveSchemaManifest,
|
|
192
152
|
loadSchemaManifestEntry
|
|
193
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-EZ3UHHND.js";
|
|
194
154
|
import {
|
|
195
155
|
MANIFEST_COLLECTION,
|
|
196
156
|
isManifestReservedCollection
|
|
197
157
|
} from "./chunk-EPFF7LOX.js";
|
|
198
|
-
import
|
|
199
|
-
LinkIntegrityError,
|
|
200
|
-
isLinkCollectionName
|
|
201
|
-
} from "./chunk-S6CP5FWF.js";
|
|
158
|
+
import "./chunk-JYFJNSTW.js";
|
|
202
159
|
import "./chunk-GYGLAVCX.js";
|
|
203
|
-
import "./chunk-
|
|
204
|
-
import "./chunk-
|
|
160
|
+
import "./chunk-HJRTFXAA.js";
|
|
161
|
+
import "./chunk-KHKKD62N.js";
|
|
162
|
+
import {
|
|
163
|
+
derivePersistedSchema,
|
|
164
|
+
isZodSchema
|
|
165
|
+
} from "./chunk-HNOBRU24.js";
|
|
205
166
|
import "./chunk-6LJY7X5A.js";
|
|
167
|
+
import "./chunk-Y2NBBT6K.js";
|
|
168
|
+
import "./chunk-TQLYMYOK.js";
|
|
206
169
|
import {
|
|
207
170
|
ClassifiedNeverStoredError,
|
|
208
171
|
ClassifiedValidationError,
|
|
209
172
|
isClassifiedFieldSpec,
|
|
210
173
|
isClassifiedGroup,
|
|
211
174
|
resolveClassifiedFields
|
|
212
|
-
} from "./chunk-
|
|
213
|
-
import "./chunk-
|
|
175
|
+
} from "./chunk-6QCXMCLZ.js";
|
|
176
|
+
import "./chunk-NAAPSNCS.js";
|
|
214
177
|
import "./chunk-TQ7IRULX.js";
|
|
215
178
|
import {
|
|
216
179
|
NO_CARGO
|
|
@@ -221,40 +184,55 @@ import {
|
|
|
221
184
|
aesGcmOpen,
|
|
222
185
|
parseRsaOaepTlv,
|
|
223
186
|
sealRsaOaepTlv
|
|
224
|
-
} from "./chunk-
|
|
225
|
-
import "./chunk-KHKKD62N.js";
|
|
226
|
-
import {
|
|
227
|
-
derivePersistedSchema,
|
|
228
|
-
isZodSchema
|
|
229
|
-
} from "./chunk-HNOBRU24.js";
|
|
230
|
-
import "./chunk-Y2NBBT6K.js";
|
|
187
|
+
} from "./chunk-NRNTXBHT.js";
|
|
231
188
|
import {
|
|
232
189
|
SCHEMAS_COLLECTION,
|
|
233
190
|
loadPersistedSchema,
|
|
234
191
|
savePersistedSchema
|
|
235
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-IN5EZWYQ.js";
|
|
193
|
+
import {
|
|
194
|
+
NO_SEQUENCE,
|
|
195
|
+
SequenceStore,
|
|
196
|
+
compileSequenceFormat,
|
|
197
|
+
resolveSequenceKey,
|
|
198
|
+
withSequence
|
|
199
|
+
} from "./chunk-AA2WWTS3.js";
|
|
236
200
|
import {
|
|
237
201
|
CustodyApi,
|
|
238
202
|
NO_CUSTODY,
|
|
239
203
|
withCustody
|
|
240
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-VXVKEWYC.js";
|
|
241
205
|
import "./chunk-YH65A6WM.js";
|
|
242
206
|
import {
|
|
243
207
|
buildLookupSnapshot
|
|
244
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-NFPSC2HL.js";
|
|
245
209
|
import "./chunk-RDPZMUCX.js";
|
|
246
210
|
import {
|
|
247
211
|
INDEXED_STORE_POLICY,
|
|
248
212
|
POD_STORE_POLICY,
|
|
249
213
|
SyncScheduler
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import
|
|
214
|
+
} from "./chunk-T7IR4N2S.js";
|
|
215
|
+
import {
|
|
216
|
+
CONSENT_AUDIT_COLLECTION
|
|
217
|
+
} from "./chunk-A5QQKWCK.js";
|
|
252
218
|
import "./chunk-PEOZ34EM.js";
|
|
253
|
-
import "./chunk-
|
|
219
|
+
import "./chunk-PBRIHUQ5.js";
|
|
254
220
|
import "./chunk-GHVIKOHT.js";
|
|
255
221
|
import {
|
|
256
222
|
PERIODS_COLLECTION
|
|
257
223
|
} from "./chunk-V4M4BZNW.js";
|
|
224
|
+
import {
|
|
225
|
+
immutableGuard,
|
|
226
|
+
transitionGuard,
|
|
227
|
+
withGuard
|
|
228
|
+
} from "./chunk-QWNYUTI2.js";
|
|
229
|
+
import "./chunk-RWPNRCK2.js";
|
|
230
|
+
import "./chunk-VTTRWLOR.js";
|
|
231
|
+
import "./chunk-JK733I5V.js";
|
|
232
|
+
import {
|
|
233
|
+
CollectionFrame,
|
|
234
|
+
VaultFrame
|
|
235
|
+
} from "./chunk-SGEI3IJK.js";
|
|
258
236
|
import "./chunk-SMY5X46Z.js";
|
|
259
237
|
import "./chunk-DZFQVICS.js";
|
|
260
238
|
import {
|
|
@@ -272,7 +250,7 @@ import {
|
|
|
272
250
|
verifyPodHeader,
|
|
273
251
|
verifyRecord,
|
|
274
252
|
writePod
|
|
275
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-TNOQNU3R.js";
|
|
276
254
|
import {
|
|
277
255
|
COVER_RECORD_ID,
|
|
278
256
|
isCover,
|
|
@@ -280,7 +258,7 @@ import {
|
|
|
280
258
|
readCover,
|
|
281
259
|
saveCover,
|
|
282
260
|
validateCoverInput
|
|
283
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-O4QDBAB6.js";
|
|
284
262
|
import {
|
|
285
263
|
TxCollection,
|
|
286
264
|
TxContext,
|
|
@@ -292,17 +270,11 @@ import {
|
|
|
292
270
|
NO_SEARCH,
|
|
293
271
|
tokenize,
|
|
294
272
|
withSearch
|
|
295
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-DFFSCYIW.js";
|
|
296
274
|
import {
|
|
297
275
|
fuseRetrieval
|
|
298
276
|
} from "./chunk-AURFOK3D.js";
|
|
299
|
-
import
|
|
300
|
-
NO_SEQUENCE,
|
|
301
|
-
SequenceStore,
|
|
302
|
-
compileSequenceFormat,
|
|
303
|
-
resolveSequenceKey,
|
|
304
|
-
withSequence
|
|
305
|
-
} from "./chunk-RRMXMJUP.js";
|
|
277
|
+
import "./chunk-QLMUW7OC.js";
|
|
306
278
|
import {
|
|
307
279
|
DEFAULT_CROSS_JOIN_MAX_ROWS,
|
|
308
280
|
Query,
|
|
@@ -314,16 +286,41 @@ import {
|
|
|
314
286
|
DEFAULT_JOIN_MAX_ROWS,
|
|
315
287
|
applyJoins
|
|
316
288
|
} from "./chunk-QI2KXQOM.js";
|
|
317
|
-
import
|
|
289
|
+
import {
|
|
290
|
+
importExternalObjects,
|
|
291
|
+
memoryObjectProjection
|
|
292
|
+
} from "./chunk-4Q6HSHHL.js";
|
|
293
|
+
import {
|
|
294
|
+
BLOB_CHUNKS_COLLECTION,
|
|
295
|
+
BLOB_COLLECTION,
|
|
296
|
+
BLOB_INDEX_COLLECTION,
|
|
297
|
+
BLOB_INTENT_COLLECTION,
|
|
298
|
+
BLOB_SLOTS_PREFIX,
|
|
299
|
+
BLOB_VERSIONS_PREFIX,
|
|
300
|
+
BlobSet,
|
|
301
|
+
DEFAULT_CHUNK_SIZE,
|
|
302
|
+
createIntent,
|
|
303
|
+
deleteIntent,
|
|
304
|
+
detectMagic,
|
|
305
|
+
detectMimeType,
|
|
306
|
+
getIntent,
|
|
307
|
+
isPreCompressed,
|
|
308
|
+
sweepBlobIntents
|
|
309
|
+
} from "./chunk-RAYGDC4A.js";
|
|
310
|
+
import "./chunk-DWO55ZWE.js";
|
|
318
311
|
import "./chunk-RJTGXZT6.js";
|
|
319
312
|
import {
|
|
320
313
|
CollectionIndexes
|
|
321
314
|
} from "./chunk-GQ3BX5EA.js";
|
|
315
|
+
import {
|
|
316
|
+
withLazy
|
|
317
|
+
} from "./chunk-THNJ3IKU.js";
|
|
322
318
|
import {
|
|
323
319
|
Lru,
|
|
324
320
|
estimateRecordBytes,
|
|
325
321
|
parseBytes
|
|
326
322
|
} from "./chunk-NO272T7Q.js";
|
|
323
|
+
import "./chunk-LU6NPJWN.js";
|
|
327
324
|
import "./chunk-XZHEOSQ2.js";
|
|
328
325
|
import "./chunk-YMUFFJCO.js";
|
|
329
326
|
import "./chunk-CADUYBQD.js";
|
|
@@ -332,17 +329,21 @@ import {
|
|
|
332
329
|
evaluateFieldClause,
|
|
333
330
|
readPath
|
|
334
331
|
} from "./chunk-IGJCYUT5.js";
|
|
332
|
+
import {
|
|
333
|
+
mergeCrdtStates,
|
|
334
|
+
resolveCrdtSnapshot
|
|
335
|
+
} from "./chunk-4GPE63GU.js";
|
|
335
336
|
import "./chunk-PVEWA2DU.js";
|
|
336
|
-
import "./chunk-
|
|
337
|
+
import "./chunk-PBPYQZDW.js";
|
|
337
338
|
import {
|
|
338
339
|
dictKey,
|
|
339
340
|
staticDict
|
|
340
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-6AL6O4CS.js";
|
|
341
342
|
import {
|
|
342
343
|
DICT_COLLECTION_PREFIX,
|
|
343
344
|
LookupHandle,
|
|
344
345
|
dictCollectionName
|
|
345
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-CFTPERGL.js";
|
|
346
347
|
import {
|
|
347
348
|
applyI18nLocale,
|
|
348
349
|
enforceScript,
|
|
@@ -357,15 +358,15 @@ import {
|
|
|
357
358
|
resolvePolicy,
|
|
358
359
|
setAtPathInPlace,
|
|
359
360
|
validateI18nTextValue
|
|
360
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-LPAGIMXJ.js";
|
|
361
362
|
import {
|
|
362
363
|
installViaBinder
|
|
363
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-SQSZRCYT.js";
|
|
364
365
|
import {
|
|
365
366
|
MemoryDeviceSealProvider,
|
|
366
367
|
beginEchoUnlock,
|
|
367
368
|
withTeam
|
|
368
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-ZDATYUYG.js";
|
|
369
370
|
import {
|
|
370
371
|
MAGIC_LINK_GRANTS_COLLECTION,
|
|
371
372
|
NO_TEAM,
|
|
@@ -394,13 +395,13 @@ import {
|
|
|
394
395
|
unwrapDeksFromPaperEntry,
|
|
395
396
|
unwrapMagicLinkGrant,
|
|
396
397
|
writeMagicLinkGrant
|
|
397
|
-
} from "./chunk-
|
|
398
|
+
} from "./chunk-BVIGGV6D.js";
|
|
398
399
|
import {
|
|
399
400
|
META_COLLECTION,
|
|
400
401
|
POLICY_RECORD_ID,
|
|
401
402
|
loadVaultPolicy,
|
|
402
403
|
saveVaultPolicy
|
|
403
|
-
} from "./chunk-
|
|
404
|
+
} from "./chunk-DKYEVHZH.js";
|
|
404
405
|
import {
|
|
405
406
|
DEFAULT_ECHO_MIN_WORD_LENGTH,
|
|
406
407
|
DEFAULT_ECHO_PROMPT_MIN_WORDS,
|
|
@@ -423,7 +424,7 @@ import {
|
|
|
423
424
|
validateSecret,
|
|
424
425
|
verifyPrompt,
|
|
425
426
|
verifyTypedEcho
|
|
426
|
-
} from "./chunk-
|
|
427
|
+
} from "./chunk-ZSOTZ2RZ.js";
|
|
427
428
|
import {
|
|
428
429
|
DIRECTORY_RECORD_ID,
|
|
429
430
|
VISIBILITY_RECORD_PREFIX,
|
|
@@ -437,8 +438,8 @@ import {
|
|
|
437
438
|
readUserVisibility,
|
|
438
439
|
saveUserEnvelope,
|
|
439
440
|
visibilityRecordId
|
|
440
|
-
} from "./chunk-
|
|
441
|
-
import "./chunk-
|
|
441
|
+
} from "./chunk-ITXPKEDP.js";
|
|
442
|
+
import "./chunk-DL4GDOWL.js";
|
|
442
443
|
import "./chunk-H545OIWE.js";
|
|
443
444
|
import {
|
|
444
445
|
PolicyEnforcer,
|
|
@@ -463,22 +464,21 @@ import {
|
|
|
463
464
|
import {
|
|
464
465
|
CollectionInstant,
|
|
465
466
|
VaultInstant
|
|
466
|
-
} from "./chunk-
|
|
467
|
+
} from "./chunk-CGQUSSW7.js";
|
|
467
468
|
import {
|
|
468
469
|
diff,
|
|
469
470
|
formatDiff
|
|
470
471
|
} from "./chunk-SVLR4POP.js";
|
|
471
|
-
import "./chunk-
|
|
472
|
+
import "./chunk-UIYZ5SOU.js";
|
|
472
473
|
import {
|
|
473
474
|
LedgerStore,
|
|
474
475
|
applyPatch,
|
|
475
476
|
computePatch
|
|
476
|
-
} from "./chunk-
|
|
477
|
+
} from "./chunk-FDIZHZ3C.js";
|
|
477
478
|
import {
|
|
478
479
|
LEDGER_COLLECTION,
|
|
479
480
|
LEDGER_DELTAS_COLLECTION
|
|
480
481
|
} from "./chunk-I7FD46FF.js";
|
|
481
|
-
import "./chunk-AMKCY454.js";
|
|
482
482
|
import {
|
|
483
483
|
canonicalJson,
|
|
484
484
|
envelopePayloadHash,
|
|
@@ -486,17 +486,20 @@ import {
|
|
|
486
486
|
paddedIndex,
|
|
487
487
|
parseIndex,
|
|
488
488
|
sha256Hex
|
|
489
|
-
} from "./chunk-
|
|
490
|
-
import "./chunk-
|
|
491
|
-
import "./chunk-
|
|
489
|
+
} from "./chunk-FY33DKPH.js";
|
|
490
|
+
import "./chunk-7WD2G6K4.js";
|
|
491
|
+
import "./chunk-HK67PX4J.js";
|
|
492
|
+
import "./chunk-KLVGF2D4.js";
|
|
492
493
|
import {
|
|
494
|
+
buildRecordAad,
|
|
493
495
|
openEnvelopeJson,
|
|
496
|
+
recordAadFor,
|
|
494
497
|
validateSchemaInput,
|
|
495
498
|
validateSchemaOutput
|
|
496
|
-
} from "./chunk-
|
|
499
|
+
} from "./chunk-X3AXSYBL.js";
|
|
497
500
|
import {
|
|
498
501
|
buildRecordEnvelope
|
|
499
|
-
} from "./chunk-
|
|
502
|
+
} from "./chunk-ZVAFJQZB.js";
|
|
500
503
|
import "./chunk-FSZPQCDR.js";
|
|
501
504
|
import "./chunk-HVR74IBG.js";
|
|
502
505
|
import "./chunk-RBTZLXZJ.js";
|
|
@@ -518,7 +521,7 @@ import {
|
|
|
518
521
|
NOYDB_SYNC_VERSION,
|
|
519
522
|
SealedHandle,
|
|
520
523
|
createStore
|
|
521
|
-
} from "./chunk-
|
|
524
|
+
} from "./chunk-3Y4OFWQJ.js";
|
|
522
525
|
import {
|
|
523
526
|
AlreadyElevatedError,
|
|
524
527
|
AmendmentForbiddenError,
|
|
@@ -998,13 +1001,11 @@ async function putCredential(adapter, vault, keyring, credential) {
|
|
|
998
1001
|
requireAdminAccess(keyring);
|
|
999
1002
|
const getDek = await ensureCollectionDEK(adapter, vault, keyring);
|
|
1000
1003
|
const dek = await getDek(SYNC_CREDENTIALS_COLLECTION);
|
|
1001
|
-
const { iv, data } = await encrypt(JSON.stringify(credential), dek);
|
|
1002
1004
|
const existing = await adapter.get(vault, SYNC_CREDENTIALS_COLLECTION, credential.adapterId);
|
|
1003
1005
|
const version = existing ? existing._v + 1 : 1;
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
);
|
|
1006
|
+
const identity = { collection: SYNC_CREDENTIALS_COLLECTION, id: credential.adapterId, version };
|
|
1007
|
+
const { iv, data } = await encrypt(JSON.stringify(credential), dek, buildRecordAad(identity));
|
|
1008
|
+
const envelope = buildRecordEnvelope(identity, { iv, data });
|
|
1008
1009
|
await adapter.put(
|
|
1009
1010
|
vault,
|
|
1010
1011
|
SYNC_CREDENTIALS_COLLECTION,
|
|
@@ -1019,7 +1020,7 @@ async function getCredential(adapter, vault, keyring, adapterId) {
|
|
|
1019
1020
|
const dek = await getDek(SYNC_CREDENTIALS_COLLECTION);
|
|
1020
1021
|
const envelope = await adapter.get(vault, SYNC_CREDENTIALS_COLLECTION, adapterId);
|
|
1021
1022
|
if (!envelope) return null;
|
|
1022
|
-
const plaintext = await openEnvelopeJson(envelope, dek);
|
|
1023
|
+
const plaintext = await openEnvelopeJson({ collection: SYNC_CREDENTIALS_COLLECTION, id: adapterId }, envelope, dek);
|
|
1023
1024
|
return JSON.parse(plaintext);
|
|
1024
1025
|
}
|
|
1025
1026
|
async function deleteCredential(adapter, vault, keyring, adapterId) {
|
|
@@ -1429,6 +1430,7 @@ export {
|
|
|
1429
1430
|
readPodHeader,
|
|
1430
1431
|
readPodRedirect,
|
|
1431
1432
|
readUserVisibility,
|
|
1433
|
+
recordAadFor,
|
|
1432
1434
|
recoverUser,
|
|
1433
1435
|
ref,
|
|
1434
1436
|
refArray,
|