@noy-db/hub 0.4.0-pre.1 → 0.4.0-pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aggregate/index.js +4 -4
- package/dist/api-UPAT2O3M.js +20 -0
- package/dist/as/index.js +12 -12
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-LU2DTZTI.js → backup-JL2GOTYQ.js} +11 -11
- package/dist/blobs/index.js +27 -15
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -12
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.js +46 -36
- package/dist/{chunk-QDPZWTN2.js → chunk-25G7U6RD.js} +2 -2
- package/dist/{chunk-GQNGCEP5.js → chunk-25ZDB25Z.js} +2 -2
- package/dist/{chunk-5WZXVULX.js → chunk-2ITLQZV5.js} +2 -2
- package/dist/{chunk-WNGGJWF7.js → chunk-2JZ763FV.js} +2 -2
- package/dist/{chunk-2P7EGNKF.js → chunk-2KL6NDD4.js} +90 -3
- package/dist/chunk-2KL6NDD4.js.map +1 -0
- package/dist/{chunk-3U3FBR7O.js → chunk-2RMDVWGB.js} +2 -2
- package/dist/{chunk-VAIS3SOM.js → chunk-2U7Y7BNJ.js} +2 -2
- package/dist/{chunk-MQ6WOPSY.js → chunk-2VUISNGP.js} +5 -5
- package/dist/chunk-2YELV6TV.js +1 -0
- package/dist/{chunk-2MUZ3LY6.js → chunk-3O62PVDW.js} +3 -3
- package/dist/{chunk-LOF2W3JU.js → chunk-4JYYIFHW.js} +12 -12
- package/dist/{chunk-6HY2X62D.js → chunk-5BB3N4KU.js} +2 -2
- package/dist/{chunk-LSASLXGC.js → chunk-5BHNQNBI.js} +1 -1
- package/dist/{chunk-LSASLXGC.js.map → chunk-5BHNQNBI.js.map} +1 -1
- package/dist/{chunk-6NQMXTYC.js → chunk-5OZCCLNC.js} +2 -2
- package/dist/{chunk-HOONYZY2.js → chunk-5P5AAXYA.js} +2 -2
- package/dist/{chunk-T6GU5PPZ.js → chunk-5SZ24DL5.js} +6 -6
- package/dist/{chunk-PK6QCH2C.js → chunk-7B4GPCX7.js} +5 -5
- package/dist/{chunk-O7WJ47EF.js → chunk-A64XXIIB.js} +4 -4
- package/dist/{chunk-G6EQYAL6.js → chunk-AFBJHD55.js} +5 -5
- package/dist/{chunk-LB6OH6K2.js → chunk-BCOKZC4B.js} +2 -2
- package/dist/{chunk-J6Q7UVQE.js → chunk-BVZGNMVM.js} +4 -16
- package/dist/{chunk-J6Q7UVQE.js.map → chunk-BVZGNMVM.js.map} +1 -1
- package/dist/{chunk-IRQY7IR5.js → chunk-BZEPJJOK.js} +4 -4
- package/dist/{chunk-GYYCX5K6.js → chunk-BZK6JEX4.js} +5 -5
- package/dist/{chunk-7CI6CP7Z.js → chunk-CCT4WZI6.js} +5 -5
- package/dist/{chunk-VEALDPHW.js → chunk-CGPO3ZYB.js} +2 -2
- package/dist/{chunk-S3BFKGET.js → chunk-DEQ2JTBR.js} +3 -3
- package/dist/{chunk-3ELCWU56.js → chunk-E2R5NRZD.js} +2 -2
- package/dist/{chunk-BOKIKJJB.js → chunk-EDC6MLXV.js} +2 -2
- package/dist/{chunk-2IALOXZS.js → chunk-F4COUZLL.js} +2 -2
- package/dist/{chunk-JRBNCUNT.js → chunk-FLHOTGOO.js} +3 -3
- package/dist/{chunk-6XE5TMPR.js → chunk-GBEXTC6Z.js} +3 -3
- package/dist/{chunk-N55W7KUL.js → chunk-GS3Q2KOZ.js} +2 -2
- package/dist/{chunk-M75ZZHSR.js → chunk-GYB2QK5H.js} +2 -2
- package/dist/{chunk-6B4DYGWO.js → chunk-GZ2GKOF6.js} +3 -3
- package/dist/{chunk-VCBHAE4R.js → chunk-H4SMS4O2.js} +2 -2
- package/dist/{chunk-MTQPRQHB.js → chunk-HGVFJL63.js} +4 -4
- package/dist/{chunk-3SV2EPMN.js → chunk-HVZT5T22.js} +5 -5
- package/dist/{chunk-F6T6L2UK.js → chunk-IGAIOGCN.js} +4 -4
- package/dist/{chunk-W2OG6JOL.js → chunk-IGM563N5.js} +18 -1
- package/dist/chunk-IGM563N5.js.map +1 -0
- package/dist/{chunk-GWKAVKHI.js → chunk-ITI3SJRB.js} +2 -2
- package/dist/{chunk-DDATL6PU.js → chunk-IU22SQGU.js} +7 -7
- package/dist/{chunk-RTEK4C4I.js → chunk-IUIVDVXM.js} +2 -2
- package/dist/{chunk-UBNCR3YK.js → chunk-IZX3WZBF.js} +4 -4
- package/dist/{chunk-RDXW3OBQ.js → chunk-J3VW4J4E.js} +2 -2
- package/dist/{chunk-BMQWTQZ4.js → chunk-J6U4BOKP.js} +11 -11
- package/dist/{chunk-KUIB4B5Q.js → chunk-JA5B3SLH.js} +2 -2
- package/dist/{chunk-4BRCIYFG.js → chunk-JA5O7UEZ.js} +6 -6
- package/dist/{chunk-6HPG2YNX.js → chunk-JKWNG3TM.js} +2 -2
- package/dist/{chunk-RM2XV574.js → chunk-JLHKBAFY.js} +3 -3
- package/dist/{chunk-ISMV2QVG.js → chunk-KMONEHDJ.js} +2 -2
- package/dist/{chunk-ZEQWCBCM.js → chunk-KR5EGWI4.js} +5 -5
- package/dist/{chunk-JBBSYJHP.js → chunk-KVHWEPT2.js} +2 -2
- package/dist/{chunk-2PCAVW2I.js → chunk-L4OA7G5T.js} +2 -2
- package/dist/{chunk-IY23KFNZ.js → chunk-LLVW4V7R.js} +3 -3
- package/dist/{chunk-N6WF5PKC.js → chunk-M25ZIEB2.js} +2 -2
- package/dist/{chunk-A7JJLVGH.js → chunk-MEKAMERX.js} +5 -7
- package/dist/{chunk-A7JJLVGH.js.map → chunk-MEKAMERX.js.map} +1 -1
- package/dist/{chunk-UC2ETWF3.js → chunk-MSO2C3KG.js} +2 -2
- package/dist/{chunk-ONTBCHCP.js → chunk-N4FZ6ITM.js} +2 -2
- package/dist/{chunk-DRWBEDYO.js → chunk-NM4LVUXH.js} +2 -2
- package/dist/{chunk-HPUWOVR7.js → chunk-NOT7XA7Q.js} +5 -5
- package/dist/{chunk-RA5VTXXG.js → chunk-OGFPMCSP.js} +2 -2
- package/dist/{chunk-KUPKLSX5.js → chunk-OGY4ELVE.js} +3 -3
- package/dist/{chunk-T36RFODW.js → chunk-OOTTXUNV.js} +2 -2
- package/dist/{chunk-A5BDDEXK.js → chunk-OTU5ZI3U.js} +4 -4
- package/dist/{chunk-OF75ACKS.js → chunk-OVFCAS7U.js} +9 -9
- package/dist/{chunk-KWVJAOIN.js → chunk-OWE4BNTM.js} +4 -4
- package/dist/{chunk-DVUZMT2W.js → chunk-PEY6ZTCF.js} +8 -8
- package/dist/{chunk-7O3AYBC7.js → chunk-PWZKD4HW.js} +70 -59
- package/dist/chunk-PWZKD4HW.js.map +1 -0
- package/dist/{chunk-SMGEYW6G.js → chunk-QAFWRGVD.js} +7 -7
- package/dist/{chunk-TOPYT5U5.js → chunk-QCUH2G77.js} +6 -6
- package/dist/{chunk-CBSY2N76.js → chunk-QDNVHA2F.js} +2 -2
- package/dist/{chunk-FH52K7EG.js → chunk-QRHEAZ2Q.js} +2 -6
- package/dist/{chunk-FH52K7EG.js.map → chunk-QRHEAZ2Q.js.map} +1 -1
- package/dist/{chunk-WEYZTLXN.js → chunk-QXPOEAKR.js} +2 -2
- package/dist/{chunk-PT37L5DV.js → chunk-RGL53NXZ.js} +3 -3
- package/dist/{chunk-TAGR72IR.js → chunk-RI3OKC3Y.js} +4 -4
- package/dist/{chunk-UNCOC7QH.js → chunk-S3OYXPSE.js} +9 -9
- package/dist/{chunk-JVBO4SZL.js → chunk-STR7WBOB.js} +2 -2
- package/dist/{chunk-DDHM2TLX.js → chunk-T7S4V52L.js} +4 -4
- package/dist/{chunk-BGK233EA.js → chunk-TYBXP6WE.js} +7 -7
- package/dist/{chunk-RND5ZPNP.js → chunk-UEO5CHOP.js} +3 -3
- package/dist/{chunk-EGCRBCNA.js → chunk-V3YB7RGR.js} +3 -3
- package/dist/{chunk-IM3QVF53.js → chunk-V7RGFJ3Z.js} +6 -6
- package/dist/{chunk-SMIRGMS7.js → chunk-VEX6G3YL.js} +2 -2
- package/dist/{chunk-3PF6CRDT.js → chunk-VZELV7ZJ.js} +115 -120
- package/dist/{chunk-3PF6CRDT.js.map → chunk-VZELV7ZJ.js.map} +1 -1
- package/dist/{chunk-GULTLPFB.js → chunk-XGVDLQJE.js} +3 -3
- package/dist/{chunk-YJV2UZ7H.js → chunk-XULHFSHO.js} +5 -5
- package/dist/{chunk-S6Q37VGE.js → chunk-XW7NWO4A.js} +2 -2
- package/dist/{chunk-JZWWLLVY.js → chunk-Y5E6CH6S.js} +6 -6
- package/dist/{chunk-CCOP5XDW.js → chunk-YG2EG6CB.js} +4 -4
- package/dist/{chunk-5OI6BR4H.js → chunk-YGBIBOCR.js} +307 -17
- package/dist/chunk-YGBIBOCR.js.map +1 -0
- package/dist/{chunk-YTGDPCPW.js → chunk-YHPUDB7Q.js} +2 -2
- package/dist/{chunk-UFEVO57O.js → chunk-ZJGZDOQO.js} +6 -6
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-WQVIJAW2.js → classified-marker-7S5IEP6Q.js} +3 -3
- package/dist/collection-facade-ENLTJZBT.js +44 -0
- package/dist/{computed-DSMPXG2Y.js → computed-WZNKRLCY.js} +3 -3
- package/dist/consent/index.js +9 -9
- package/dist/cover-B5MY43CK.js +36 -0
- package/dist/{dead-filter-2A7IAJ3D.js → dead-filter-KRRD57MR.js} +2 -2
- package/dist/delegation-UT76AQIG.js +25 -0
- package/dist/derivations/index.js +12 -12
- package/dist/derive-SGRCCKVP.js +21 -0
- package/dist/{enclave-7MW6ZGXW.js → enclave-YFKA3GJT.js} +9 -9
- package/dist/executor-TEZYRDN3.js +9 -0
- package/dist/executor-UF7LTX6O.js +26 -0
- package/dist/executor-WQQRU6DO.js +9 -0
- package/dist/export-accessible-HXMKW5LJ.js +23 -0
- package/dist/extract-partition-QGQ2R42J.js +38 -0
- package/dist/{fanout-sidecar-WDYQ77VB.js → fanout-sidecar-HJV3A7PM.js} +9 -9
- package/dist/find-VV6PBIHK.js +11 -0
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.js +6 -6
- package/dist/history/index.js +12 -12
- package/dist/i18n/index.js +14 -14
- package/dist/index.d.ts +1 -4
- package/dist/index.js +173 -192
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-7JJ4Z7E2.js +19 -0
- package/dist/kernel/errors.d.ts +19 -0
- package/dist/kernel/noydb.d.ts +0 -6
- package/dist/kernel/types.d.ts +20 -17
- package/dist/kernel/vault.d.ts +0 -4
- package/dist/{ledger-33BC4TR7.js → ledger-SW6QQOAV.js} +11 -11
- package/dist/liberate-W5MDWYOV.js +24 -0
- package/dist/{link-set-QK22TDEX.js → link-set-GNGGCFI4.js} +11 -11
- package/dist/materialized-views/index.js +19 -19
- package/dist/noydb-U63S3Z7F.js +70 -0
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +13 -13
- package/dist/pod/index.js +27 -12
- package/dist/{policy-NAHB2TUT.js → policy-EAXSJNOT.js} +5 -5
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-JVTMJ6OW.js → post-register-A7HCFBP5.js} +6 -6
- package/dist/query/index.js +6 -6
- package/dist/register-YBMRLZLO.js +23 -0
- package/dist/registry-3LXKNXWI.js +9 -0
- package/dist/registry-4V4YQCXJ.js +19 -0
- package/dist/registry-ZULMLCJK.js +18 -0
- package/dist/request-withdrawal-SEVUEUDG.js +31 -0
- package/dist/{reveal-LGBOM2BO.js → reveal-PB3YG544.js} +6 -6
- package/dist/revoke-5QULL5GT.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.js +12 -12
- package/dist/{seed-PWK45HDF.js → seed-6GTDHL4E.js} +11 -11
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-ZMH35FT4.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/{stale-FJED42DM.js → stale-NB5BGRVU.js} +10 -10
- package/dist/storage-QOZKQMID.js +23 -0
- package/dist/{store-coordination-provider-APODTV4W.js → store-coordination-provider-3AELCZ4Y.js} +3 -3
- package/dist/sync/index.js +10 -10
- package/dist/team/index.js +29 -29
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/tx/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/{verify-26Y5GNMK.js → verify-MXN66IIH.js} +5 -5
- package/dist/via/blob/active.d.ts +27 -1
- package/dist/via/blob/index.d.ts +4 -0
- package/dist/{walk-XS3PKM6I.js → walk-H4YE52S2.js} +11 -11
- package/dist/with/index.js +11 -11
- package/dist/with-audit/periods/vault-facade.d.ts +6 -0
- package/dist/{legacy/kernel.d.ts → with-cargo/floor.d.ts} +1 -1
- package/dist/with-cargo/index.d.ts +6 -1
- package/dist/with-party/directory/cover/index.d.ts +0 -5
- package/dist/with-party/directory/cover/schema.d.ts +0 -6
- package/dist/with-party/directory/cover/storage.d.ts +0 -8
- package/dist/with-party/directory/cover/types.d.ts +0 -21
- package/dist/with-pod/bundle.d.ts +0 -2
- package/dist/with-pod/index.d.ts +2 -1
- package/dist/with-shape/blobs/blob-compaction.d.ts +43 -3
- package/dist/with-shape/blobs/blob-pinning.d.ts +112 -0
- package/dist/with-shape/blobs/blob-set.d.ts +85 -1
- package/dist/withdraw-accessible-HPOVNG2G.js +28 -0
- package/package.json +3 -7
- package/dist/api-IQFZJSQO.js +0 -20
- package/dist/bundle/index.js +0 -105
- package/dist/chunk-2P7EGNKF.js.map +0 -1
- package/dist/chunk-5OI6BR4H.js.map +0 -1
- package/dist/chunk-7O3AYBC7.js.map +0 -1
- package/dist/chunk-CHFZDSE4.js +0 -1
- package/dist/chunk-GVZQ4NAM.js +0 -14
- package/dist/chunk-GVZQ4NAM.js.map +0 -1
- package/dist/chunk-W2OG6JOL.js.map +0 -1
- package/dist/collection-facade-MJXSC3Q6.js +0 -44
- package/dist/cover-B5SJDHR3.js +0 -52
- package/dist/delegation-A5A75KQO.js +0 -25
- package/dist/derive-HJSMH7RA.js +0 -21
- package/dist/executor-AXE4XMLT.js +0 -26
- package/dist/executor-KGNLJD6M.js +0 -9
- package/dist/executor-XGIS6CR7.js +0 -9
- package/dist/export-accessible-VVBJM3MM.js +0 -23
- package/dist/extract-partition-LGGBTQET.js +0 -38
- package/dist/find-YS6XWB46.js +0 -11
- package/dist/issue-LSR5PS6H.js +0 -19
- package/dist/legacy/bundle.d.ts +0 -30
- package/dist/liberate-GBSAYLPJ.js +0 -24
- package/dist/noydb-MTUBMWFE.js +0 -70
- package/dist/register-X462DNDM.js +0 -23
- package/dist/registry-3XMCT7MQ.js +0 -18
- package/dist/registry-KHD2I3M2.js +0 -19
- package/dist/registry-NPOWJHC4.js +0 -9
- package/dist/request-withdrawal-U7K3JTMY.js +0 -31
- package/dist/revoke-OCWDSWRQ.js +0 -24
- package/dist/signer-3YFBLZRN.js +0 -25
- package/dist/storage-W3GURVFU.js +0 -23
- package/dist/withdraw-accessible-Y3B2535F.js +0 -28
- package/dist/withdraw-accessible-Y3B2535F.js.map +0 -1
- /package/dist/{api-IQFZJSQO.js.map → api-UPAT2O3M.js.map} +0 -0
- /package/dist/{backup-LU2DTZTI.js.map → backup-JL2GOTYQ.js.map} +0 -0
- /package/dist/{chunk-QDPZWTN2.js.map → chunk-25G7U6RD.js.map} +0 -0
- /package/dist/{chunk-GQNGCEP5.js.map → chunk-25ZDB25Z.js.map} +0 -0
- /package/dist/{chunk-5WZXVULX.js.map → chunk-2ITLQZV5.js.map} +0 -0
- /package/dist/{chunk-WNGGJWF7.js.map → chunk-2JZ763FV.js.map} +0 -0
- /package/dist/{chunk-3U3FBR7O.js.map → chunk-2RMDVWGB.js.map} +0 -0
- /package/dist/{chunk-VAIS3SOM.js.map → chunk-2U7Y7BNJ.js.map} +0 -0
- /package/dist/{chunk-MQ6WOPSY.js.map → chunk-2VUISNGP.js.map} +0 -0
- /package/dist/{bundle/index.js.map → chunk-2YELV6TV.js.map} +0 -0
- /package/dist/{chunk-2MUZ3LY6.js.map → chunk-3O62PVDW.js.map} +0 -0
- /package/dist/{chunk-LOF2W3JU.js.map → chunk-4JYYIFHW.js.map} +0 -0
- /package/dist/{chunk-6HY2X62D.js.map → chunk-5BB3N4KU.js.map} +0 -0
- /package/dist/{chunk-6NQMXTYC.js.map → chunk-5OZCCLNC.js.map} +0 -0
- /package/dist/{chunk-HOONYZY2.js.map → chunk-5P5AAXYA.js.map} +0 -0
- /package/dist/{chunk-T6GU5PPZ.js.map → chunk-5SZ24DL5.js.map} +0 -0
- /package/dist/{chunk-PK6QCH2C.js.map → chunk-7B4GPCX7.js.map} +0 -0
- /package/dist/{chunk-O7WJ47EF.js.map → chunk-A64XXIIB.js.map} +0 -0
- /package/dist/{chunk-G6EQYAL6.js.map → chunk-AFBJHD55.js.map} +0 -0
- /package/dist/{chunk-LB6OH6K2.js.map → chunk-BCOKZC4B.js.map} +0 -0
- /package/dist/{chunk-IRQY7IR5.js.map → chunk-BZEPJJOK.js.map} +0 -0
- /package/dist/{chunk-GYYCX5K6.js.map → chunk-BZK6JEX4.js.map} +0 -0
- /package/dist/{chunk-7CI6CP7Z.js.map → chunk-CCT4WZI6.js.map} +0 -0
- /package/dist/{chunk-VEALDPHW.js.map → chunk-CGPO3ZYB.js.map} +0 -0
- /package/dist/{chunk-S3BFKGET.js.map → chunk-DEQ2JTBR.js.map} +0 -0
- /package/dist/{chunk-3ELCWU56.js.map → chunk-E2R5NRZD.js.map} +0 -0
- /package/dist/{chunk-BOKIKJJB.js.map → chunk-EDC6MLXV.js.map} +0 -0
- /package/dist/{chunk-2IALOXZS.js.map → chunk-F4COUZLL.js.map} +0 -0
- /package/dist/{chunk-JRBNCUNT.js.map → chunk-FLHOTGOO.js.map} +0 -0
- /package/dist/{chunk-6XE5TMPR.js.map → chunk-GBEXTC6Z.js.map} +0 -0
- /package/dist/{chunk-N55W7KUL.js.map → chunk-GS3Q2KOZ.js.map} +0 -0
- /package/dist/{chunk-M75ZZHSR.js.map → chunk-GYB2QK5H.js.map} +0 -0
- /package/dist/{chunk-6B4DYGWO.js.map → chunk-GZ2GKOF6.js.map} +0 -0
- /package/dist/{chunk-VCBHAE4R.js.map → chunk-H4SMS4O2.js.map} +0 -0
- /package/dist/{chunk-MTQPRQHB.js.map → chunk-HGVFJL63.js.map} +0 -0
- /package/dist/{chunk-3SV2EPMN.js.map → chunk-HVZT5T22.js.map} +0 -0
- /package/dist/{chunk-F6T6L2UK.js.map → chunk-IGAIOGCN.js.map} +0 -0
- /package/dist/{chunk-GWKAVKHI.js.map → chunk-ITI3SJRB.js.map} +0 -0
- /package/dist/{chunk-DDATL6PU.js.map → chunk-IU22SQGU.js.map} +0 -0
- /package/dist/{chunk-RTEK4C4I.js.map → chunk-IUIVDVXM.js.map} +0 -0
- /package/dist/{chunk-UBNCR3YK.js.map → chunk-IZX3WZBF.js.map} +0 -0
- /package/dist/{chunk-RDXW3OBQ.js.map → chunk-J3VW4J4E.js.map} +0 -0
- /package/dist/{chunk-BMQWTQZ4.js.map → chunk-J6U4BOKP.js.map} +0 -0
- /package/dist/{chunk-KUIB4B5Q.js.map → chunk-JA5B3SLH.js.map} +0 -0
- /package/dist/{chunk-4BRCIYFG.js.map → chunk-JA5O7UEZ.js.map} +0 -0
- /package/dist/{chunk-6HPG2YNX.js.map → chunk-JKWNG3TM.js.map} +0 -0
- /package/dist/{chunk-RM2XV574.js.map → chunk-JLHKBAFY.js.map} +0 -0
- /package/dist/{chunk-ISMV2QVG.js.map → chunk-KMONEHDJ.js.map} +0 -0
- /package/dist/{chunk-ZEQWCBCM.js.map → chunk-KR5EGWI4.js.map} +0 -0
- /package/dist/{chunk-JBBSYJHP.js.map → chunk-KVHWEPT2.js.map} +0 -0
- /package/dist/{chunk-2PCAVW2I.js.map → chunk-L4OA7G5T.js.map} +0 -0
- /package/dist/{chunk-IY23KFNZ.js.map → chunk-LLVW4V7R.js.map} +0 -0
- /package/dist/{chunk-N6WF5PKC.js.map → chunk-M25ZIEB2.js.map} +0 -0
- /package/dist/{chunk-UC2ETWF3.js.map → chunk-MSO2C3KG.js.map} +0 -0
- /package/dist/{chunk-ONTBCHCP.js.map → chunk-N4FZ6ITM.js.map} +0 -0
- /package/dist/{chunk-DRWBEDYO.js.map → chunk-NM4LVUXH.js.map} +0 -0
- /package/dist/{chunk-HPUWOVR7.js.map → chunk-NOT7XA7Q.js.map} +0 -0
- /package/dist/{chunk-RA5VTXXG.js.map → chunk-OGFPMCSP.js.map} +0 -0
- /package/dist/{chunk-KUPKLSX5.js.map → chunk-OGY4ELVE.js.map} +0 -0
- /package/dist/{chunk-T36RFODW.js.map → chunk-OOTTXUNV.js.map} +0 -0
- /package/dist/{chunk-A5BDDEXK.js.map → chunk-OTU5ZI3U.js.map} +0 -0
- /package/dist/{chunk-OF75ACKS.js.map → chunk-OVFCAS7U.js.map} +0 -0
- /package/dist/{chunk-KWVJAOIN.js.map → chunk-OWE4BNTM.js.map} +0 -0
- /package/dist/{chunk-DVUZMT2W.js.map → chunk-PEY6ZTCF.js.map} +0 -0
- /package/dist/{chunk-SMGEYW6G.js.map → chunk-QAFWRGVD.js.map} +0 -0
- /package/dist/{chunk-TOPYT5U5.js.map → chunk-QCUH2G77.js.map} +0 -0
- /package/dist/{chunk-CBSY2N76.js.map → chunk-QDNVHA2F.js.map} +0 -0
- /package/dist/{chunk-WEYZTLXN.js.map → chunk-QXPOEAKR.js.map} +0 -0
- /package/dist/{chunk-PT37L5DV.js.map → chunk-RGL53NXZ.js.map} +0 -0
- /package/dist/{chunk-TAGR72IR.js.map → chunk-RI3OKC3Y.js.map} +0 -0
- /package/dist/{chunk-UNCOC7QH.js.map → chunk-S3OYXPSE.js.map} +0 -0
- /package/dist/{chunk-JVBO4SZL.js.map → chunk-STR7WBOB.js.map} +0 -0
- /package/dist/{chunk-DDHM2TLX.js.map → chunk-T7S4V52L.js.map} +0 -0
- /package/dist/{chunk-BGK233EA.js.map → chunk-TYBXP6WE.js.map} +0 -0
- /package/dist/{chunk-RND5ZPNP.js.map → chunk-UEO5CHOP.js.map} +0 -0
- /package/dist/{chunk-EGCRBCNA.js.map → chunk-V3YB7RGR.js.map} +0 -0
- /package/dist/{chunk-IM3QVF53.js.map → chunk-V7RGFJ3Z.js.map} +0 -0
- /package/dist/{chunk-SMIRGMS7.js.map → chunk-VEX6G3YL.js.map} +0 -0
- /package/dist/{chunk-GULTLPFB.js.map → chunk-XGVDLQJE.js.map} +0 -0
- /package/dist/{chunk-YJV2UZ7H.js.map → chunk-XULHFSHO.js.map} +0 -0
- /package/dist/{chunk-S6Q37VGE.js.map → chunk-XW7NWO4A.js.map} +0 -0
- /package/dist/{chunk-JZWWLLVY.js.map → chunk-Y5E6CH6S.js.map} +0 -0
- /package/dist/{chunk-CCOP5XDW.js.map → chunk-YG2EG6CB.js.map} +0 -0
- /package/dist/{chunk-YTGDPCPW.js.map → chunk-YHPUDB7Q.js.map} +0 -0
- /package/dist/{chunk-UFEVO57O.js.map → chunk-ZJGZDOQO.js.map} +0 -0
- /package/dist/{classified-marker-WQVIJAW2.js.map → classified-marker-7S5IEP6Q.js.map} +0 -0
- /package/dist/{chunk-CHFZDSE4.js.map → collection-facade-ENLTJZBT.js.map} +0 -0
- /package/dist/{collection-facade-MJXSC3Q6.js.map → computed-WZNKRLCY.js.map} +0 -0
- /package/dist/{computed-DSMPXG2Y.js.map → cover-B5MY43CK.js.map} +0 -0
- /package/dist/{dead-filter-2A7IAJ3D.js.map → dead-filter-KRRD57MR.js.map} +0 -0
- /package/dist/{cover-B5SJDHR3.js.map → delegation-UT76AQIG.js.map} +0 -0
- /package/dist/{delegation-A5A75KQO.js.map → derive-SGRCCKVP.js.map} +0 -0
- /package/dist/{derive-HJSMH7RA.js.map → enclave-YFKA3GJT.js.map} +0 -0
- /package/dist/{enclave-7MW6ZGXW.js.map → executor-TEZYRDN3.js.map} +0 -0
- /package/dist/{executor-AXE4XMLT.js.map → executor-UF7LTX6O.js.map} +0 -0
- /package/dist/{executor-KGNLJD6M.js.map → executor-WQQRU6DO.js.map} +0 -0
- /package/dist/{executor-XGIS6CR7.js.map → export-accessible-HXMKW5LJ.js.map} +0 -0
- /package/dist/{export-accessible-VVBJM3MM.js.map → extract-partition-QGQ2R42J.js.map} +0 -0
- /package/dist/{fanout-sidecar-WDYQ77VB.js.map → fanout-sidecar-HJV3A7PM.js.map} +0 -0
- /package/dist/{extract-partition-LGGBTQET.js.map → find-VV6PBIHK.js.map} +0 -0
- /package/dist/{find-YS6XWB46.js.map → issue-7JJ4Z7E2.js.map} +0 -0
- /package/dist/{issue-LSR5PS6H.js.map → ledger-SW6QQOAV.js.map} +0 -0
- /package/dist/{ledger-33BC4TR7.js.map → liberate-W5MDWYOV.js.map} +0 -0
- /package/dist/{liberate-GBSAYLPJ.js.map → link-set-GNGGCFI4.js.map} +0 -0
- /package/dist/{link-set-QK22TDEX.js.map → noydb-U63S3Z7F.js.map} +0 -0
- /package/dist/{noydb-MTUBMWFE.js.map → policy-EAXSJNOT.js.map} +0 -0
- /package/dist/{post-register-JVTMJ6OW.js.map → post-register-A7HCFBP5.js.map} +0 -0
- /package/dist/{policy-NAHB2TUT.js.map → register-YBMRLZLO.js.map} +0 -0
- /package/dist/{register-X462DNDM.js.map → registry-3LXKNXWI.js.map} +0 -0
- /package/dist/{registry-3XMCT7MQ.js.map → registry-4V4YQCXJ.js.map} +0 -0
- /package/dist/{registry-KHD2I3M2.js.map → registry-ZULMLCJK.js.map} +0 -0
- /package/dist/{registry-NPOWJHC4.js.map → request-withdrawal-SEVUEUDG.js.map} +0 -0
- /package/dist/{reveal-LGBOM2BO.js.map → reveal-PB3YG544.js.map} +0 -0
- /package/dist/{request-withdrawal-U7K3JTMY.js.map → revoke-5QULL5GT.js.map} +0 -0
- /package/dist/{seed-PWK45HDF.js.map → seed-6GTDHL4E.js.map} +0 -0
- /package/dist/{revoke-OCWDSWRQ.js.map → signer-ZMH35FT4.js.map} +0 -0
- /package/dist/{signer-3YFBLZRN.js.map → stale-NB5BGRVU.js.map} +0 -0
- /package/dist/{stale-FJED42DM.js.map → storage-QOZKQMID.js.map} +0 -0
- /package/dist/{store-coordination-provider-APODTV4W.js.map → store-coordination-provider-3AELCZ4Y.js.map} +0 -0
- /package/dist/{verify-26Y5GNMK.js.map → verify-MXN66IIH.js.map} +0 -0
- /package/dist/{walk-XS3PKM6I.js.map → walk-H4YE52S2.js.map} +0 -0
- /package/dist/{storage-W3GURVFU.js.map → withdraw-accessible-HPOVNG2G.js.map} +0 -0
|
@@ -2,6 +2,7 @@ import type { NoydbStore, BlobObject, SlotInfo, VersionRecord, BlobPutOptions, B
|
|
|
2
2
|
import type { ObjectProjection } from './object-projection.js';
|
|
3
3
|
import type { BlobFieldsConfig } from './blob-compaction.js';
|
|
4
4
|
import { type EnclaveKey } from '../../kernel/enclave/index.js';
|
|
5
|
+
import { type BlobPinCache } from './blob-pinning.js';
|
|
5
6
|
import type { UnlockedKeyring } from '../../with-party/team/keyring.js';
|
|
6
7
|
/**
|
|
7
8
|
* DEK slot name for vault-shared blob data. Calling `getDEK('_blob')`
|
|
@@ -69,6 +70,12 @@ export declare class BlobSet {
|
|
|
69
70
|
private readonly objectStore;
|
|
70
71
|
private readonly blobFields;
|
|
71
72
|
private readonly keyring;
|
|
73
|
+
/**
|
|
74
|
+
* Device-local pin registry + external side-cache + KPI counters (#808).
|
|
75
|
+
* Injected by `withBlobs()` (one shared instance per strategy — per
|
|
76
|
+
* "device"); absent on a direct construction that never threads one.
|
|
77
|
+
*/
|
|
78
|
+
private readonly pinCache;
|
|
72
79
|
/**
|
|
73
80
|
* Set only on the cleared clone `atTier()` returns (#749) — never by
|
|
74
81
|
* `openSlot`/`Collection.blob()`. Its presence is what makes a `BlobSet`
|
|
@@ -91,6 +98,7 @@ export declare class BlobSet {
|
|
|
91
98
|
blobFields?: BlobFieldsConfig;
|
|
92
99
|
keyring?: UnlockedKeyring;
|
|
93
100
|
clearedTier?: number;
|
|
101
|
+
pinCache?: BlobPinCache;
|
|
94
102
|
});
|
|
95
103
|
/**
|
|
96
104
|
* #724 I1 completion: a legacy (non-`perRecordKeys`) blob has no per-blob
|
|
@@ -1136,7 +1144,11 @@ export declare class BlobSet {
|
|
|
1136
1144
|
/**
|
|
1137
1145
|
* Fetch all bytes for the named slot.
|
|
1138
1146
|
* Returns `null` if the slot does not exist.
|
|
1139
|
-
* Throws `
|
|
1147
|
+
* Throws `BlobOfflineError` if the content is not available locally (#808):
|
|
1148
|
+
* an internal blob whose chunk envelopes are absent from the local store, or
|
|
1149
|
+
* an external slot with no local cached copy while the object store is
|
|
1150
|
+
* unreachable. External reads populate the device-local encrypted
|
|
1151
|
+
* side-cache, so a repeat read is served locally (see `pin()`).
|
|
1140
1152
|
*/
|
|
1141
1153
|
get(slotName: string): Promise<Uint8Array | null>;
|
|
1142
1154
|
/**
|
|
@@ -1182,6 +1194,12 @@ export declare class BlobSet {
|
|
|
1182
1194
|
/**
|
|
1183
1195
|
* List all slot entries for this record.
|
|
1184
1196
|
* Returns metadata only — no chunk data is loaded.
|
|
1197
|
+
*
|
|
1198
|
+
* #808: when a pin registry is present (`withBlobs()`), each entry is
|
|
1199
|
+
* annotated with this DEVICE's view — `pinned` / `lastAccessAt` /
|
|
1200
|
+
* `cachedBytes` (see their `SlotInfo` doc comments). The annotations come
|
|
1201
|
+
* from the device-local registry, never the vault store, and are what
|
|
1202
|
+
* `vault.compact()`'s pin exemption + cache-budget LRU pass key off.
|
|
1185
1203
|
*/
|
|
1186
1204
|
list(): Promise<SlotInfo[]>;
|
|
1187
1205
|
/**
|
|
@@ -1189,6 +1207,72 @@ export declare class BlobSet {
|
|
|
1189
1207
|
* Decrements refCount on the blob. Chunks are GC'd by `vault.blobGC()`.
|
|
1190
1208
|
*/
|
|
1191
1209
|
delete(slotName: string): Promise<void>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Pin the named slot for offline availability ON THIS DEVICE.
|
|
1212
|
+
*
|
|
1213
|
+
* - Downloads eagerly (call while online): an internal blob's chunks are
|
|
1214
|
+
* fetched once to prove they are locally readable; an `external` slot's
|
|
1215
|
+
* bytes are fetched from the object store and kept in the device-local
|
|
1216
|
+
* side-cache, **encrypted** under the vault's `_blob` DEK via the same
|
|
1217
|
+
* enclave path as chunk encryption (the object-store copy sits outside
|
|
1218
|
+
* the ZK envelope by design; the local copy does not).
|
|
1219
|
+
* - A pinned slot is EXEMPT from `vault.compact()` eviction — both the
|
|
1220
|
+
* `blobFields` policy pass and the `cacheBudget` LRU pass.
|
|
1221
|
+
* - Pin state is device-local (never synced): it lives in the `withBlobs()`
|
|
1222
|
+
* pin registry, not in the vault store. Each device pins for itself.
|
|
1223
|
+
*
|
|
1224
|
+
* Throws `NotFoundError` for a missing slot and `BlobOfflineError` when the
|
|
1225
|
+
* eager download cannot complete (offline).
|
|
1226
|
+
*/
|
|
1227
|
+
pin(slotName: string): Promise<void>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Unpin the named slot on this device — it returns to the normal lifecycle:
|
|
1230
|
+
* `blobFields` policy eviction applies again, and any local cached copy
|
|
1231
|
+
* (external slots) stays but becomes budget-managed (`cacheBudget` LRU).
|
|
1232
|
+
* A no-op when the slot is not pinned here.
|
|
1233
|
+
*/
|
|
1234
|
+
unpin(slotName: string): Promise<void>;
|
|
1235
|
+
/** Whether the named slot is pinned for offline ON THIS DEVICE (#808). */
|
|
1236
|
+
isPinned(slotName: string): Promise<boolean>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Drop this slot's device-local cached copy (the encrypted external
|
|
1239
|
+
* side-cache) WITHOUT touching the slot, the vault store, or the object
|
|
1240
|
+
* store. Returns the plaintext bytes freed (0 when nothing was cached, the
|
|
1241
|
+
* slot is pinned — pinned copies are exempt — or no registry is present).
|
|
1242
|
+
* The cache-budget pass inside `vault.compact()` is the expected caller;
|
|
1243
|
+
* the LRU access row itself is kept.
|
|
1244
|
+
*/
|
|
1245
|
+
dropLocalCache(slotName: string): Promise<number>;
|
|
1246
|
+
/** This slot's registry key — see {@link blobPinKey}. */
|
|
1247
|
+
private pinKeyFor;
|
|
1248
|
+
/** AAD binding for a cached external copy: the row's own registry key. */
|
|
1249
|
+
private pinCopyAAD;
|
|
1250
|
+
private requirePinCache;
|
|
1251
|
+
/** KPI hit + LRU access stamp for a successful LOCAL read. No-op without a registry. */
|
|
1252
|
+
private recordLocalHit;
|
|
1253
|
+
/**
|
|
1254
|
+
* Read an `external` slot (#808 taxonomy): local encrypted side-cache first
|
|
1255
|
+
* (hit); else the object store (miss + `bytesDownloaded`), auto-caching the
|
|
1256
|
+
* fetched bytes so the NEXT read — and any later offline read — is local.
|
|
1257
|
+
* A network failure with no local copy is the typed `BlobOfflineError`;
|
|
1258
|
+
* a genuinely absent object (fetch succeeded, nothing there) stays `null`.
|
|
1259
|
+
*/
|
|
1260
|
+
private readExternal;
|
|
1261
|
+
/**
|
|
1262
|
+
* Decrypt a cached external copy. `null` (treated as a cache miss → network
|
|
1263
|
+
* refresh) when the vault keys can no longer open it — e.g. the copy was
|
|
1264
|
+
* cached before the owning record moved tiers, so it is sealed under a DEK
|
|
1265
|
+
* this handle no longer resolves. Genuine non-crypto failures propagate.
|
|
1266
|
+
*/
|
|
1267
|
+
private decryptCachedCopy;
|
|
1268
|
+
/**
|
|
1269
|
+
* Write an external slot's bytes into the device-local side-cache —
|
|
1270
|
+
* ENCRYPTED under the vault's `_blob` DEK (owner tier) via the enclave's
|
|
1271
|
+
* AAD-bound path, mirroring chunk encryption; base64 plaintext with
|
|
1272
|
+
* `iv: ''` only on an unencrypted vault (the envelope convention). A
|
|
1273
|
+
* pre-existing pin flag survives the rewrite.
|
|
1274
|
+
*/
|
|
1275
|
+
private cacheExternalCopy;
|
|
1192
1276
|
/**
|
|
1193
1277
|
* Return a native `Response` whose body streams the decrypted,
|
|
1194
1278
|
* decompressed blob bytes with full HTTP metadata headers.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FROZEN_SNAPSHOTS_COLLECTION,
|
|
3
|
+
freezeAndDeleteClosure,
|
|
4
|
+
freezeSnapshotOnly,
|
|
5
|
+
randomId,
|
|
6
|
+
withdrawAccessibleData
|
|
7
|
+
} from "./chunk-XULHFSHO.js";
|
|
8
|
+
import "./chunk-25ZDB25Z.js";
|
|
9
|
+
import "./chunk-MEKAMERX.js";
|
|
10
|
+
import "./chunk-BVZGNMVM.js";
|
|
11
|
+
import "./chunk-PEY6ZTCF.js";
|
|
12
|
+
import "./chunk-QXPOEAKR.js";
|
|
13
|
+
import "./chunk-LLVW4V7R.js";
|
|
14
|
+
import "./chunk-M25ZIEB2.js";
|
|
15
|
+
import "./chunk-5BB3N4KU.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-5P5AAXYA.js";
|
|
18
|
+
import "./chunk-5BHNQNBI.js";
|
|
19
|
+
import "./chunk-IGM563N5.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
FROZEN_SNAPSHOTS_COLLECTION,
|
|
23
|
+
freezeAndDeleteClosure,
|
|
24
|
+
freezeSnapshotOnly,
|
|
25
|
+
randomId,
|
|
26
|
+
withdrawAccessibleData
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=withdraw-accessible-HPOVNG2G.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/hub",
|
|
3
|
-
"version": "0.4.0-pre.
|
|
3
|
+
"version": "0.4.0-pre.2",
|
|
4
4
|
"description": "Zero-knowledge, offline-first, encrypted document store — core library with AES-256-GCM, PBKDF2, multi-user keyring, and sync engine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vLannaAi <vicio@lanna.ai>",
|
|
@@ -72,10 +72,6 @@
|
|
|
72
72
|
"types": "./dist/with-commit/crdt/index.d.ts",
|
|
73
73
|
"default": "./dist/crdt/index.js"
|
|
74
74
|
},
|
|
75
|
-
"./bundle": {
|
|
76
|
-
"types": "./dist/legacy/bundle.d.ts",
|
|
77
|
-
"default": "./dist/bundle/index.js"
|
|
78
|
-
},
|
|
79
75
|
"./consent": {
|
|
80
76
|
"types": "./dist/with-audit/consent/index.d.ts",
|
|
81
77
|
"default": "./dist/consent/index.js"
|
|
@@ -196,14 +192,14 @@
|
|
|
196
192
|
"node": ">=22.0.0"
|
|
197
193
|
},
|
|
198
194
|
"dependencies": {
|
|
199
|
-
"@noy-db/attestation": "0.4.0-pre.
|
|
195
|
+
"@noy-db/attestation": "0.4.0-pre.2"
|
|
200
196
|
},
|
|
201
197
|
"devDependencies": {
|
|
202
198
|
"@types/node": "^22.0.0",
|
|
203
199
|
"esbuild": "^0.25.0",
|
|
204
200
|
"zod": "^4.0.0",
|
|
205
201
|
"zod-to-json-schema": "^3.25.2",
|
|
206
|
-
"@noy-db/on-shamir": "0.4.0-pre.
|
|
202
|
+
"@noy-db/on-shamir": "0.4.0-pre.2"
|
|
207
203
|
},
|
|
208
204
|
"peerDependencies": {
|
|
209
205
|
"zod-to-json-schema": "^3.25.0"
|
package/dist/api-IQFZJSQO.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UserApi,
|
|
3
|
-
createUserApi
|
|
4
|
-
} from "./chunk-6B4DYGWO.js";
|
|
5
|
-
import "./chunk-PK6QCH2C.js";
|
|
6
|
-
import "./chunk-DVUZMT2W.js";
|
|
7
|
-
import "./chunk-WEYZTLXN.js";
|
|
8
|
-
import "./chunk-IY23KFNZ.js";
|
|
9
|
-
import "./chunk-N6WF5PKC.js";
|
|
10
|
-
import "./chunk-6HY2X62D.js";
|
|
11
|
-
import "./chunk-LP7BEXCT.js";
|
|
12
|
-
import "./chunk-HOONYZY2.js";
|
|
13
|
-
import "./chunk-LSASLXGC.js";
|
|
14
|
-
import "./chunk-W2OG6JOL.js";
|
|
15
|
-
import "./chunk-PZ5AY32C.js";
|
|
16
|
-
export {
|
|
17
|
-
UserApi,
|
|
18
|
-
createUserApi
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=api-IQFZJSQO.js.map
|
package/dist/bundle/index.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import "../chunk-CHFZDSE4.js";
|
|
2
|
-
import {
|
|
3
|
-
adoptPartition,
|
|
4
|
-
createOwnerOnAdoptedPartition,
|
|
5
|
-
decryptExtractedPartition,
|
|
6
|
-
describeExtraction,
|
|
7
|
-
unsealDeks
|
|
8
|
-
} from "../chunk-7O3AYBC7.js";
|
|
9
|
-
import {
|
|
10
|
-
extractPartition,
|
|
11
|
-
walkClosure
|
|
12
|
-
} from "../chunk-OF75ACKS.js";
|
|
13
|
-
import "../chunk-LB6OH6K2.js";
|
|
14
|
-
import "../chunk-F6T6L2UK.js";
|
|
15
|
-
import "../chunk-5OI6BR4H.js";
|
|
16
|
-
import "../chunk-YTGDPCPW.js";
|
|
17
|
-
import {
|
|
18
|
-
COMPRESSION_BROTLI,
|
|
19
|
-
COMPRESSION_GZIP,
|
|
20
|
-
COMPRESSION_NONE,
|
|
21
|
-
FLAG_COMPRESSED,
|
|
22
|
-
FLAG_HAS_INTEGRITY_HASH,
|
|
23
|
-
NOYDB_BUNDLE_FORMAT_VERSION,
|
|
24
|
-
NOYDB_BUNDLE_MAGIC,
|
|
25
|
-
NOYDB_BUNDLE_PREFIX_BYTES,
|
|
26
|
-
encodeBundleHeader,
|
|
27
|
-
readNoydbBundle,
|
|
28
|
-
readNoydbBundleHeader,
|
|
29
|
-
readPod,
|
|
30
|
-
readPodHeader,
|
|
31
|
-
resetBrotliSupportCache,
|
|
32
|
-
validateBundleHeader,
|
|
33
|
-
writeNoydbBundle,
|
|
34
|
-
writePod
|
|
35
|
-
} from "../chunk-A7JJLVGH.js";
|
|
36
|
-
import "../chunk-J6Q7UVQE.js";
|
|
37
|
-
import "../chunk-3SV2EPMN.js";
|
|
38
|
-
import "../chunk-PK6QCH2C.js";
|
|
39
|
-
import "../chunk-UC2ETWF3.js";
|
|
40
|
-
import {
|
|
41
|
-
generateULID,
|
|
42
|
-
isULID
|
|
43
|
-
} from "../chunk-ZJADGNYF.js";
|
|
44
|
-
import "../chunk-UFEVO57O.js";
|
|
45
|
-
import "../chunk-I7FD46FF.js";
|
|
46
|
-
import "../chunk-DRWBEDYO.js";
|
|
47
|
-
import "../chunk-RM2XV574.js";
|
|
48
|
-
import "../chunk-DVUZMT2W.js";
|
|
49
|
-
import "../chunk-WEYZTLXN.js";
|
|
50
|
-
import "../chunk-IY23KFNZ.js";
|
|
51
|
-
import "../chunk-N6WF5PKC.js";
|
|
52
|
-
import "../chunk-6HY2X62D.js";
|
|
53
|
-
import "../chunk-LP7BEXCT.js";
|
|
54
|
-
import "../chunk-HOONYZY2.js";
|
|
55
|
-
import "../chunk-LSASLXGC.js";
|
|
56
|
-
import {
|
|
57
|
-
AdoptionStateError,
|
|
58
|
-
BackupCorruptedError,
|
|
59
|
-
BackupLedgerError,
|
|
60
|
-
BundleIntegrityError,
|
|
61
|
-
BundleSealMismatchError,
|
|
62
|
-
BundleVersionConflictError,
|
|
63
|
-
PartitionExtractionError,
|
|
64
|
-
PodVersionConflictError,
|
|
65
|
-
TransferSealError
|
|
66
|
-
} from "../chunk-W2OG6JOL.js";
|
|
67
|
-
import "../chunk-PZ5AY32C.js";
|
|
68
|
-
export {
|
|
69
|
-
AdoptionStateError,
|
|
70
|
-
BackupCorruptedError,
|
|
71
|
-
BackupLedgerError,
|
|
72
|
-
BundleIntegrityError,
|
|
73
|
-
BundleSealMismatchError,
|
|
74
|
-
BundleVersionConflictError,
|
|
75
|
-
COMPRESSION_BROTLI,
|
|
76
|
-
COMPRESSION_GZIP,
|
|
77
|
-
COMPRESSION_NONE,
|
|
78
|
-
FLAG_COMPRESSED,
|
|
79
|
-
FLAG_HAS_INTEGRITY_HASH,
|
|
80
|
-
NOYDB_BUNDLE_FORMAT_VERSION,
|
|
81
|
-
NOYDB_BUNDLE_MAGIC,
|
|
82
|
-
NOYDB_BUNDLE_PREFIX_BYTES,
|
|
83
|
-
PartitionExtractionError,
|
|
84
|
-
PodVersionConflictError,
|
|
85
|
-
TransferSealError,
|
|
86
|
-
adoptPartition,
|
|
87
|
-
createOwnerOnAdoptedPartition,
|
|
88
|
-
decryptExtractedPartition,
|
|
89
|
-
describeExtraction,
|
|
90
|
-
encodeBundleHeader,
|
|
91
|
-
extractPartition,
|
|
92
|
-
generateULID,
|
|
93
|
-
isULID,
|
|
94
|
-
readNoydbBundle,
|
|
95
|
-
readNoydbBundleHeader,
|
|
96
|
-
readPod,
|
|
97
|
-
readPodHeader,
|
|
98
|
-
resetBrotliSupportCache,
|
|
99
|
-
unsealDeks,
|
|
100
|
-
validateBundleHeader,
|
|
101
|
-
walkClosure,
|
|
102
|
-
writeNoydbBundle,
|
|
103
|
-
writePod
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-shape/blobs/export-blobs.ts","../src/with-shape/blobs/blob-compaction.ts"],"sourcesContent":["/**\n * `vault.exportBlobs()` — bulk blob extraction primitive.\n *\n * Async-iterable handle over every blob attached to records in a\n * vault, optionally filtered by collection allowlist and per-record\n * predicate. Emits tuples of `{ blobId, recordRef, bytes, meta }` so\n * the consumer can pipe into any sink (zip stream, S3 multipart, USB\n * copy, cold-storage tape) without pulling the whole export into\n * memory.\n *\n * ## Auth + audit\n *\n * - Capability check runs **once** at handle creation via\n * `Vault.assertCanExport('plaintext', 'blob')`. An operator whose\n * keyring lacks that bit fails before a single byte of ciphertext\n * is decrypted.\n * - Audit entry lands in `_export_audit` at handle creation: the\n * actor, start timestamp, target collections, predicate presence,\n * and batch mechanism. **No content hashes** — per the spec\n * non-correlation invariant.\n *\n * ## Abort + resume\n *\n * - `handle.abort()` flips the internal signal; the next iteration\n * boundary throws `AbortError`. Consumers already in `for await`\n * can catch and exit cleanly.\n * - Restart after a partial failure with `{ afterBlobId }` — the\n * iterator skips tuples up to (and including) that blob id before\n * yielding again. Combined with a blob-count ceiling it supports\n * idempotent batch re-runs.\n *\n * @module\n */\n\nimport type { Collection } from '../../kernel/collection.js'\nimport type { SlotInfo } from '../../kernel/types.js'\n\n// ─── Types ──────────────────────────────────────────────────────────────\n\nexport interface ExportBlobsOptions {\n /**\n * Collection allowlist. Omit to export blobs from every collection\n * the caller has read access to.\n */\n readonly collections?: readonly string[]\n /**\n * Per-record predicate. Called on the decrypted record BEFORE any\n * blob bytes are read for that record — returning false skips the\n * record and all its slots without touching their chunks.\n */\n readonly where?: (record: unknown, context: { collection: string; id: string }) => boolean\n /**\n * Resume after a specific blob id. The iterator skips tuples up to\n * and including this id, then yields. Format of the id is the same\n * as `ExportedBlob.blobId` (the HMAC-keyed eTag).\n */\n readonly afterBlobId?: string\n /**\n * External abort signal. When fired, the next iterator tick throws\n * `ExportBlobsAbortedError`. Honored alongside `handle.abort()`.\n */\n readonly signal?: AbortSignal\n}\n\nexport interface ExportedBlob {\n /** Opaque blob identifier — HMAC-keyed eTag, stable across vaults. */\n readonly blobId: string\n /** Where this blob came from in the vault. */\n readonly recordRef: {\n readonly collection: string\n readonly id: string\n readonly slot: string\n }\n /** Decrypted plaintext bytes. */\n readonly bytes: Uint8Array\n /** Best-effort metadata (from the blob slot record). */\n readonly meta: {\n readonly size: number\n /**\n * User-visible filename stored on the slot. Often equal to the\n * slot name; differs when the caller supplied an explicit\n * `filename` to `BlobSet.put()`.\n */\n readonly filename: string\n readonly mimeType?: string\n readonly createdAt?: string\n }\n}\n\nexport interface ExportBlobsHandle extends AsyncIterable<ExportedBlob> {\n /** Abort the export. Safe to call multiple times. */\n abort(): void\n /** True once `abort()` has fired or the external signal aborted. */\n readonly aborted: boolean\n}\n\nexport class ExportBlobsAbortedError extends Error {\n constructor(reason: string) {\n super(`exportBlobs aborted: ${reason}`)\n this.name = 'ExportBlobsAbortedError'\n }\n}\n\n// ─── Audit ──────────────────────────────────────────────────────────────\n\nexport const EXPORT_AUDIT_COLLECTION = '_export_audit'\n\nexport interface ExportBlobsAuditEntry {\n readonly id: string\n readonly mechanism: 'exportBlobs'\n readonly actor: string\n readonly startedAt: string\n readonly collections: readonly string[] | null\n readonly predicate: boolean\n readonly afterBlobId: string | null\n}\n\n// ─── Implementation ─────────────────────────────────────────────────────\n\n/**\n * Build the handle. Factored out of `Vault.exportBlobs` so the\n * implementation can be unit-tested without going through the\n * compartment lifecycle.\n */\nexport function createExportBlobsHandle(\n actor: string,\n listAccessibleCollections: () => Promise<string[]>,\n getCollection: <T>(name: string) => Collection<T>,\n writeAudit: (entry: ExportBlobsAuditEntry) => Promise<void>,\n options: ExportBlobsOptions,\n): ExportBlobsHandle {\n let aborted = false\n\n const abort = (): void => {\n aborted = true\n }\n\n if (options.signal) {\n if (options.signal.aborted) aborted = true\n options.signal.addEventListener('abort', () => { aborted = true })\n }\n\n function assertLive(): void {\n if (aborted) throw new ExportBlobsAbortedError('aborted by caller')\n }\n\n const allowlist = options.collections ? new Set(options.collections) : null\n\n // Write the audit entry BEFORE the first yield so a blocked\n // iteration still leaves an audit trail that the export started.\n let auditPromise: Promise<void> | null = null\n function writeAuditOnce(): Promise<void> {\n if (!auditPromise) {\n auditPromise = writeAudit({\n id: generateBatchId(),\n mechanism: 'exportBlobs',\n actor,\n startedAt: new Date().toISOString(),\n collections: options.collections ?? null,\n predicate: Boolean(options.where),\n afterBlobId: options.afterBlobId ?? null,\n })\n }\n return auditPromise\n }\n\n async function* generate(): AsyncGenerator<ExportedBlob> {\n await writeAuditOnce()\n assertLive()\n\n // Resolve target collections lazily — also keeps the call async.\n const allCollections = await listAccessibleCollections()\n const targets = allCollections.filter(name => {\n if (name.startsWith('_')) return false\n if (allowlist && !allowlist.has(name)) return false\n return true\n })\n\n let resumeCursorHit = options.afterBlobId === undefined\n\n for (const collectionName of targets) {\n if (aborted) return\n\n const coll = getCollection<Record<string, unknown>>(collectionName)\n const records = await coll.list().catch(() => [])\n for (const record of records) {\n if (aborted) return\n assertLive()\n\n const idField = (record as { id?: unknown }).id\n if (typeof idField !== 'string') continue\n\n if (options.where && !options.where(record, { collection: collectionName, id: idField })) continue\n\n const blobSet = coll.blob(idField)\n const slots = await blobSet.list().catch(() => [] as SlotInfo[])\n for (const slot of slots) {\n if (aborted) return\n\n if (!resumeCursorHit) {\n if (slot.eTag === options.afterBlobId) {\n resumeCursorHit = true\n }\n continue\n }\n\n const bytes = await blobSet.get(slot.name)\n if (!bytes) continue\n\n const item: ExportedBlob = {\n blobId: slot.eTag,\n recordRef: { collection: collectionName, id: idField, slot: slot.name },\n bytes,\n meta: {\n size: slot.size,\n filename: slot.filename,\n ...(slot.mimeType !== undefined && { mimeType: slot.mimeType }),\n ...(slot.uploadedAt !== undefined && { createdAt: slot.uploadedAt }),\n },\n }\n yield item\n }\n }\n }\n }\n\n const handle: ExportBlobsHandle = {\n abort,\n get aborted() { return aborted },\n [Symbol.asyncIterator]: () => generate(),\n }\n return handle\n}\n\n// ─── Helpers ────────────────────────────────────────────────────────────\n\nfunction generateBatchId(): string {\n // 16 bytes of crypto randomness, URL-safe base64, no padding.\n const raw = globalThis.crypto.getRandomValues(new Uint8Array(16))\n let s = ''\n for (const b of raw) s += b.toString(16).padStart(2, '0')\n return `batch-${Date.now().toString(36)}-${s.slice(0, 12)}`\n}\n","/**\n * Blob retention + compaction.\n *\n * Declarative per-collection / per-slot eviction policy. Two\n * triggers:\n *\n * - **`retainDays`** — age-based TTL. A slot uploaded more than N\n * days ago is evicted.\n * - **`evictWhen(record)`** — predicate over the **decrypted**\n * record. Lets consumers express \"the image is safe to drop once\n * the structured invoice has been reviewed and confirmed.\"\n *\n * Either trigger (or both) causes the slot to evict. Eviction removes\n * the slot entry from `_blob_slots_{collection}`, decrements the\n * blob's refCount (so unreferenced chunks can be GC'd by the next\n * sweep), and writes one entry to the `_blob_eviction_audit`\n * collection for tamper-evident record-keeping.\n *\n * The audit entry carries the eTag of the evicted blob (opaque HMAC\n * of plaintext under the vault's `_blob` DEK) — no plaintext leakage,\n * per the SPEC non-correlation invariant. Consumers reconstructing\n * \"what used to be attached\" can look up the audit entry by record\n * id.\n *\n * Compaction is **consumer-scheduled** — noy-db never runs a\n * background daemon. Call `vault.compact()` whenever your workflow\n * allows (cron, manual \"tidy\" button, cold-storage export prep, …).\n *\n * @module\n */\n\nimport type { NoydbStore, EncryptedEnvelope, SlotInfo } from '../../kernel/types.js'\nimport { NOYDB_FORMAT_VERSION } from '../../kernel/types.js'\nimport { encrypt, type EnclaveKey } from '../../kernel/enclave/index.js'\n\n// ─── Config types ───────────────────────────────────────────────────────\n\nexport interface BlobFieldPolicy<T = unknown> {\n /**\n * Via port brand marker — lets a `BlobFieldPolicy` satisfy the kernel's\n * opaque `ViaDescriptor` (#629 Task 7). Optional (the\n * `ClassifiedFieldSpec._viaBrand` precedent): `blobFields` policies are\n * plain object literals with no declaration factory to stamp it, so a\n * mandatory field would break every existing declaration.\n */\n readonly _viaBrand?: 'blob'\n /**\n * Age-based TTL in days. A slot whose `uploadedAt` is older than\n * `now - retainDays × 86400s` evicts on the next `vault.compact()`.\n * Omit to disable age-based eviction.\n */\n readonly retainDays?: number\n /**\n * Predicate evaluated against the decrypted record. When it returns\n * `true`, every matching slot on that record evicts. Omit to\n * disable predicate-based eviction.\n */\n readonly evictWhen?: (record: T) => boolean\n /**\n * **Legal hold.** When this predicate returns `true`, the slot is\n * never evicted — `retainDays`/`evictWhen` are overridden. Use for a\n * litigation / audit hold on a fiscal document: the blob stays until\n * the predicate returns `false` (the hold is released). Fail-closed:\n * if the predicate throws, the slot is treated as held.\n */\n readonly legalHold?: (record: T) => boolean\n /**\n * **Period-bound retention.** Returns the date (Date / ISO string /\n * epoch ms) until which the slot must be retained — typically derived\n * from the record's fiscal period (e.g. period end + 10 years). While\n * `now < retainUntil`, the slot is never evicted, regardless of\n * `retainDays`. Return `null`/`undefined` to impose no floor.\n * Fail-closed: a throwing function holds the slot.\n */\n readonly retainUntil?: (record: T) => Date | string | number | null | undefined\n /**\n * **External projection.** When `true`, this field's bytes are stored in the\n * vault's `ObjectProjection` (`createNoydb({ objectStore })`) as a single raw,\n * **unencrypted** object — servable directly from S3/CDN and processable by\n * native tooling — instead of the encrypted-chunk path. The encrypted slot\n * record remains the catalog (anchoring invariant). Requires an `objectStore`;\n * **outside the zero-knowledge guarantee** — use only for assets meant to\n * leave the vault. See the as-aws-s3 design spec.\n */\n readonly external?: boolean\n /**\n * For an `external` field: make the object world-readable (CDN origin) rather\n * than presigned-only. Default `false` (presigned). Ignored unless `external`.\n */\n readonly public?: boolean\n /**\n * For an `external` field: how to stamp a **backlink** (this record's\n * vault/collection/id/field) onto the object's metadata — the self-describing\n * \"secondary store\" that powers reconcile / DR / import re-pairing.\n * - `'opaque-token'` (default): a random id; preserves the opaque-bucket\n * property (no names leak); the token is also recorded on the slot.\n * - `'encrypted'`: the reference encrypted under the blob DEK (ZK-preserving;\n * falls back to `'opaque-token'` on a plaintext vault).\n * - `'plain'`: the reference in cleartext metadata — **leaks structure** to\n * bucket readers; only for non-sensitive deployments.\n * - `'none'`: no backlink.\n */\n readonly backlink?: 'opaque-token' | 'encrypted' | 'plain' | 'none'\n}\n\nexport type BlobFieldsConfig<T = unknown> = Record<string, BlobFieldPolicy<T>>\n\n// ─── Audit collection ──────────────────────────────────────────────────\n\nexport const BLOB_EVICTION_AUDIT_COLLECTION = '_blob_eviction_audit'\n\nexport interface BlobEvictionEntry {\n readonly id: string\n readonly collection: string\n readonly recordId: string\n readonly slotName: string\n readonly blobHash: string\n readonly reason: 'ttl' | 'predicate' | 'both'\n readonly evictedAt: string\n readonly actor: string\n}\n\n// ─── Compaction result ──────────────────────────────────────────────────\n\nexport interface CompactionResult {\n /** Number of blob slots evicted across all collections. */\n readonly evicted: number\n /** Number of records touched (iterated + policy checked). */\n readonly records: number\n /** Number of collections with `blobFields` configured. */\n readonly collections: number\n /** Number of audit entries written. Equal to `evicted`. */\n readonly auditEntries: number\n /**\n * Number of slots that would have evicted (TTL/predicate triggered)\n * but were retained by a `legalHold` or `retainUntil` floor.\n */\n readonly held: number\n /** Per-collection breakdown for diagnostics. */\n readonly byCollection: Record<string, { records: number; evicted: number }>\n}\n\n// ─── Core ──────────────────────────────────────────────────────────────\n\nexport interface CompactRunOptions {\n /** Override \"now\" for deterministic testing. */\n readonly now?: Date\n /**\n * Stop after this many evictions. Useful for capped batches / cron\n * jobs that need to fit in a time window. `undefined` = unbounded.\n */\n readonly maxEvictions?: number\n /**\n * Dry-run — evaluate policies and return the counts, but do NOT\n * delete slots or write audit entries. Lets a consumer preview\n * what would happen.\n */\n readonly dryRun?: boolean\n}\n\nexport interface CompactionContext {\n readonly adapter: NoydbStore\n readonly vault: string\n readonly actor: string\n readonly encrypted: boolean\n readonly getDEK: (collection: string) => Promise<EnclaveKey>\n /**\n * Resolve a collection's declared `blobFields` config. Returns an\n * empty map for collections without the config — the walk skips\n * those.\n */\n readonly getBlobFields: <T>(collection: string) => BlobFieldsConfig<T> | null\n /** List collection names in the vault. */\n readonly listCollections: () => Promise<string[]>\n /** List record ids in a collection. */\n readonly listRecords: (collection: string) => Promise<string[]>\n /** Decrypt and return the record. Null when absent. */\n readonly getRecord: <T>(collection: string, id: string) => Promise<T | null>\n /** Return the BlobSet-like handle for a record's slots. */\n readonly listSlots: (collection: string, id: string) => Promise<SlotInfo[]>\n /** Delete a slot and decrement its blob's refCount. */\n readonly deleteSlot: (collection: string, id: string, slotName: string) => Promise<void>\n}\n\nexport async function runCompaction(\n ctx: CompactionContext,\n options: CompactRunOptions = {},\n): Promise<CompactionResult> {\n const now = options.now ?? new Date()\n const maxEvictions = options.maxEvictions ?? Infinity\n const dryRun = options.dryRun === true\n\n const allCollections = await ctx.listCollections()\n const byCollection: Record<string, { records: number; evicted: number }> = {}\n let evicted = 0\n let records = 0\n let auditEntries = 0\n let held = 0\n let collectionsWithPolicy = 0\n\n outer: for (const collectionName of allCollections) {\n if (collectionName.startsWith('_')) continue\n const config = ctx.getBlobFields(collectionName)\n if (!config) continue\n const configuredSlots = Object.keys(config)\n if (configuredSlots.length === 0) continue\n collectionsWithPolicy += 1\n byCollection[collectionName] = { records: 0, evicted: 0 }\n\n const ids = await ctx.listRecords(collectionName)\n for (const recordId of ids) {\n if (evicted >= maxEvictions) break outer\n\n const record = await ctx.getRecord(collectionName, recordId).catch(() => null)\n if (record === null) continue\n records += 1\n byCollection[collectionName].records += 1\n\n const slots = await ctx.listSlots(collectionName, recordId).catch(() => [])\n for (const slot of slots) {\n if (evicted >= maxEvictions) break outer\n const policy = config[slot.name]\n if (!policy) continue\n\n const reason = evaluatePolicy(policy, record, slot, now)\n if (!reason) continue\n\n // Retention floor: a legal hold or period-bound retainUntil\n // blocks an otherwise-due eviction. Counted, never evicted.\n if (isHeld(policy, record, now)) {\n held += 1\n continue\n }\n\n if (!dryRun) {\n await ctx.deleteSlot(collectionName, recordId, slot.name)\n await writeAuditEntry(ctx, {\n id: generateEvictionId(collectionName, recordId, slot.name),\n collection: collectionName,\n recordId,\n slotName: slot.name,\n blobHash: slot.eTag,\n reason,\n evictedAt: now.toISOString(),\n actor: ctx.actor,\n })\n auditEntries += 1\n }\n evicted += 1\n byCollection[collectionName].evicted += 1\n }\n }\n }\n\n return {\n evicted,\n records,\n collections: collectionsWithPolicy,\n auditEntries,\n held,\n byCollection,\n }\n}\n\n/**\n * Whether a retention floor (legal hold or period-bound `retainUntil`)\n * currently blocks eviction of this record's slots. Fail-closed: a\n * throwing predicate holds the slot.\n */\nfunction isHeld<T>(policy: BlobFieldPolicy<T>, record: T, now: Date): boolean {\n if (policy.legalHold) {\n try {\n if (policy.legalHold(record)) return true\n } catch {\n return true\n }\n }\n if (policy.retainUntil) {\n try {\n const until = policy.retainUntil(record)\n if (until !== null && until !== undefined) {\n const t = until instanceof Date ? until.getTime() : typeof until === 'number' ? until : Date.parse(String(until))\n if (!Number.isFinite(t)) return true // fail-closed: unparseable retainUntil holds the slot\n if (t > now.getTime()) return true\n }\n } catch {\n return true\n }\n }\n return false\n}\n\nfunction evaluatePolicy<T>(\n policy: BlobFieldPolicy<T>,\n record: T,\n slot: SlotInfo,\n now: Date,\n): 'ttl' | 'predicate' | 'both' | null {\n let ttlTriggered = false\n let predicateTriggered = false\n\n if (policy.retainDays !== undefined && policy.retainDays > 0) {\n const uploadedAt = Date.parse(slot.uploadedAt)\n if (Number.isFinite(uploadedAt)) {\n const ageMs = now.getTime() - uploadedAt\n const limitMs = policy.retainDays * 86_400_000\n if (ageMs > limitMs) ttlTriggered = true\n }\n }\n\n if (policy.evictWhen) {\n try {\n if (policy.evictWhen(record)) predicateTriggered = true\n } catch {\n // Predicate error → do NOT evict. Fail closed.\n }\n }\n\n if (ttlTriggered && predicateTriggered) return 'both'\n if (ttlTriggered) return 'ttl'\n if (predicateTriggered) return 'predicate'\n return null\n}\n\nfunction generateEvictionId(collection: string, recordId: string, slotName: string): string {\n const rand = globalThis.crypto.getRandomValues(new Uint8Array(8))\n let suffix = ''\n for (const b of rand) suffix += b.toString(16).padStart(2, '0')\n return `${collection}__${recordId}__${slotName}__${suffix}`\n}\n\nasync function writeAuditEntry(ctx: CompactionContext, entry: BlobEvictionEntry): Promise<void> {\n const json = JSON.stringify(entry)\n let envelope: EncryptedEnvelope\n if (ctx.encrypted) {\n const dek = await ctx.getDEK(BLOB_EVICTION_AUDIT_COLLECTION)\n const { iv, data } = await encrypt(json, dek)\n envelope = {\n _noydb: NOYDB_FORMAT_VERSION,\n _v: 1,\n _ts: entry.evictedAt,\n _iv: iv,\n _data: data,\n _by: entry.actor,\n }\n } else {\n envelope = {\n _noydb: NOYDB_FORMAT_VERSION,\n _v: 1,\n _ts: entry.evictedAt,\n _iv: '',\n _data: json,\n _by: entry.actor,\n }\n }\n await ctx.adapter.put(ctx.vault, BLOB_EVICTION_AUDIT_COLLECTION, entry.id, envelope)\n}\n"],"mappings":";;;;;;;;AAgGO,IAAM,0BAAN,cAAsC,MAAM;AAAA,EACjD,YAAY,QAAgB;AAC1B,UAAM,wBAAwB,MAAM,EAAE;AACtC,SAAK,OAAO;A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