@noy-db/hub 0.6.0-pre.12 → 0.6.0-pre.13
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-FYF5WE2E.js +20 -0
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-AWHG6ODK.js → backup-JNCS4OMI.js} +15 -14
- package/dist/backup-JNCS4OMI.js.map +1 -0
- package/dist/blobs/index.js +13 -13
- package/dist/broker/index.js +12 -12
- package/dist/{bundle-handle-G4R37BQV.js → bundle-handle-RJZXOFXE.js} +2 -2
- package/dist/cargo/index.js +29 -29
- package/dist/{chunk-NJDQ4YSV.js → chunk-2BBXXSAD.js} +4 -4
- package/dist/{chunk-PK3URBVU.js → chunk-2KHT6EP3.js} +3 -3
- package/dist/{chunk-6HFM7EIT.js → chunk-2KX6MT3D.js} +2 -2
- package/dist/{chunk-AHLJSVRL.js → chunk-37M5QBAS.js} +2 -2
- package/dist/{chunk-TJCRCCPT.js → chunk-3EFQV2XQ.js} +4 -4
- package/dist/{chunk-747LRSOO.js → chunk-3IJK5FRG.js} +2 -2
- package/dist/{chunk-7MT56F4U.js → chunk-45UIDGPY.js} +3 -3
- package/dist/{chunk-XJIGOFN6.js → chunk-4R4N5PRM.js} +4 -4
- package/dist/{chunk-Z7SMBVNM.js → chunk-4TLFWYZG.js} +3 -3
- package/dist/{chunk-4HDYQL3J.js → chunk-4TRAQICY.js} +2 -2
- package/dist/{chunk-JIUVJ4M7.js → chunk-4WXISHDI.js} +2 -2
- package/dist/{chunk-SYFEJFIO.js → chunk-65NL6YZM.js} +8 -5
- package/dist/chunk-65NL6YZM.js.map +1 -0
- package/dist/{chunk-OF3L2SD6.js → chunk-6FXQZ3T7.js} +2 -2
- package/dist/{chunk-UHXCLPGC.js → chunk-7DK6CYXO.js} +2 -2
- package/dist/{chunk-NSRITINN.js → chunk-7GWC6RI5.js} +1 -1
- package/dist/chunk-7GWC6RI5.js.map +1 -0
- package/dist/{chunk-K525AZ5C.js → chunk-A5AB7EZU.js} +3 -3
- package/dist/{chunk-CEJWMBXO.js → chunk-A7BP42KY.js} +2 -2
- package/dist/{chunk-FDX7OWWI.js → chunk-ALBA4CET.js} +2 -2
- package/dist/{chunk-YAWK6AWF.js → chunk-ALDFGMO7.js} +2 -2
- package/dist/{chunk-ZSKB5BDK.js → chunk-AS53PYO6.js} +78 -78
- package/dist/{chunk-ZSKB5BDK.js.map → chunk-AS53PYO6.js.map} +1 -1
- package/dist/{chunk-3FSX6LDG.js → chunk-C5N3ZWGJ.js} +2 -2
- package/dist/{chunk-44JENXEG.js → chunk-C6RYZ4ZD.js} +2 -2
- package/dist/{chunk-7BEHYALK.js → chunk-CFM6GBNF.js} +7 -7
- package/dist/{chunk-7BEHYALK.js.map → chunk-CFM6GBNF.js.map} +1 -1
- package/dist/{chunk-VA3PPYTQ.js → chunk-CM7MGRP3.js} +6 -6
- package/dist/{chunk-HNGSV2YC.js → chunk-CT35TQV7.js} +1 -3
- package/dist/chunk-CT35TQV7.js.map +1 -0
- package/dist/{chunk-AR2JDFAE.js → chunk-CUEWN4FX.js} +2 -2
- package/dist/{chunk-DMQCLZ4Z.js → chunk-DKJXAZWF.js} +2 -2
- package/dist/{chunk-P2Y2F6EB.js → chunk-DMRDPZQ7.js} +4 -4
- package/dist/{chunk-G4VQSGXL.js → chunk-EPUDMBVL.js} +5 -5
- package/dist/{chunk-7G6VDWXB.js → chunk-EWTAUGAK.js} +3 -3
- package/dist/{chunk-4X5Z5SRV.js → chunk-EZYLQKHP.js} +35 -8
- package/dist/chunk-EZYLQKHP.js.map +1 -0
- package/dist/{chunk-35EBKWQU.js → chunk-FWZ7WYAH.js} +3 -3
- package/dist/{chunk-SPA5WX3T.js → chunk-GAELDPIH.js} +6 -12
- package/dist/chunk-GAELDPIH.js.map +1 -0
- package/dist/{chunk-7HF4J7Z5.js → chunk-GGM3JCEG.js} +2 -2
- package/dist/{chunk-OI7ZJUYT.js → chunk-GNMGX4FY.js} +8 -8
- package/dist/{chunk-NT432TE6.js → chunk-H3BDH7DA.js} +3 -3
- package/dist/{chunk-5GMMIDJX.js → chunk-H6UFT22R.js} +4 -4
- package/dist/{chunk-Z45YRGFO.js → chunk-HRQF23XS.js} +2 -2
- package/dist/{chunk-7F4DBNSP.js → chunk-IHKRTVJQ.js} +3 -3
- package/dist/{chunk-7TSYBD3E.js → chunk-IONRKUH4.js} +2 -2
- package/dist/{chunk-W3TVWF6N.js → chunk-IQVVUZ6Z.js} +2 -2
- package/dist/{chunk-GV2EFYNV.js → chunk-J5LO2H42.js} +4 -4
- package/dist/{chunk-WLYIROCJ.js → chunk-J6EBSGIR.js} +2 -2
- package/dist/{chunk-55LKVALY.js → chunk-JN64WH3U.js} +1 -3
- package/dist/chunk-JN64WH3U.js.map +1 -0
- package/dist/{chunk-RXYYFSBB.js → chunk-JTZRLD47.js} +3 -3
- package/dist/{chunk-B2P7M2D2.js → chunk-KMLMEIWV.js} +7 -11
- package/dist/chunk-KMLMEIWV.js.map +1 -0
- package/dist/{chunk-OXCU7G5I.js → chunk-KOM2GMTW.js} +10 -10
- package/dist/{chunk-UAHHWR4P.js → chunk-KYIXANXU.js} +7 -7
- package/dist/{chunk-E2TN45ZD.js → chunk-LOLK4EAT.js} +5 -5
- package/dist/{chunk-HVQGCKY4.js → chunk-LQEHLFFF.js} +2 -2
- package/dist/{chunk-H4YQSDOI.js → chunk-LQFNJRMI.js} +2 -2
- package/dist/{chunk-2APC6HS6.js → chunk-LVLXWIBF.js} +2 -2
- package/dist/{chunk-YY3PEDBR.js → chunk-LZHDIO64.js} +7 -7
- package/dist/{chunk-DG27IUVI.js → chunk-M3VRXAVD.js} +2 -2
- package/dist/{chunk-UFM3WVIF.js → chunk-M3XBZPLU.js} +6 -6
- package/dist/{chunk-PGWXE5CR.js → chunk-M44ZBLL3.js} +6 -6
- package/dist/{chunk-FNSMZQS4.js → chunk-MLMDO4OQ.js} +2 -2
- package/dist/{chunk-XXVIHJZY.js → chunk-MRDQ6HJS.js} +4 -4
- package/dist/{chunk-QS2PUZC7.js → chunk-MSCXCF4T.js} +6 -6
- package/dist/{chunk-UANGJ2YB.js → chunk-MUE2CQX2.js} +11 -10
- package/dist/{chunk-UANGJ2YB.js.map → chunk-MUE2CQX2.js.map} +1 -1
- package/dist/{chunk-VJFMXYKP.js → chunk-MVWO6KXU.js} +2 -2
- package/dist/{chunk-DEFCPAXD.js → chunk-NW3PSKAN.js} +2 -2
- package/dist/{chunk-CCZJJ4I2.js → chunk-OERLXUF5.js} +4 -4
- package/dist/{chunk-25FGCLYS.js → chunk-OFGLLNQW.js} +6 -6
- package/dist/{chunk-LRNODVQX.js → chunk-OGQSJJWF.js} +9 -9
- package/dist/{chunk-DIICZPWS.js → chunk-OOOU3F5Y.js} +5 -5
- package/dist/{chunk-HPLWFNG4.js → chunk-P7A2FX5Y.js} +2 -2
- package/dist/{chunk-KUDZVJKQ.js → chunk-PLJ622XY.js} +2 -2
- package/dist/{chunk-SV4BNALS.js → chunk-PRN65IDE.js} +5 -5
- package/dist/{chunk-VBCDVWRU.js → chunk-PV76W4KB.js} +7 -7
- package/dist/{chunk-RTAMLDWP.js → chunk-Q4AU3NJE.js} +2 -2
- package/dist/{chunk-T227WEHE.js → chunk-QLFLX5VA.js} +6 -6
- package/dist/{chunk-L2UHRVB4.js → chunk-QNGRTWGM.js} +5 -5
- package/dist/{chunk-P2PLXMHO.js → chunk-R6V4M2JO.js} +15 -12
- package/dist/chunk-R6V4M2JO.js.map +1 -0
- package/dist/{chunk-EBEKSNKS.js → chunk-S7UTUFPU.js} +11 -11
- package/dist/chunk-S7UTUFPU.js.map +1 -0
- package/dist/{chunk-RSHNUOSJ.js → chunk-SX2ZKKZS.js} +6 -6
- package/dist/{chunk-K6TQEDVJ.js → chunk-SX4HK6FU.js} +7 -7
- package/dist/{chunk-FUHKW252.js → chunk-TAFRRVFR.js} +2 -2
- package/dist/{chunk-JRCYZEHU.js → chunk-TEOL6VAV.js} +2 -2
- package/dist/{chunk-5XFTL73S.js → chunk-TJGB5I4J.js} +3 -3
- package/dist/{chunk-MSWYQLMQ.js → chunk-V3WLQXDF.js} +2 -2
- package/dist/{chunk-VMCCGUQB.js → chunk-VDQZKDED.js} +2 -2
- package/dist/{chunk-BGQ63MCT.js → chunk-VFBJMTLJ.js} +3 -3
- package/dist/{chunk-VCETL77O.js → chunk-WJD5VF2N.js} +14 -6
- package/dist/chunk-WJD5VF2N.js.map +1 -0
- package/dist/{chunk-N35NC4JH.js → chunk-WX5ABQSL.js} +2 -2
- package/dist/{chunk-FAXZQ5UF.js → chunk-Y2FDCDLY.js} +2 -2
- package/dist/{chunk-7VPWXVKU.js → chunk-Y6C67PJX.js} +5 -5
- package/dist/{chunk-Y3H4WOP3.js → chunk-YKDAFWWS.js} +5 -5
- package/dist/{chunk-HXGUIPQB.js → chunk-YRMA7CJH.js} +3 -3
- package/dist/{chunk-AZQVFXJF.js → chunk-YRTS5MWY.js} +3 -3
- package/dist/{chunk-HNHCQ556.js → chunk-YVGJLRXN.js} +2 -2
- package/dist/{chunk-6OC6YASM.js → chunk-YZC4DWJQ.js} +2 -2
- package/dist/{chunk-CCZ5DEJ7.js → chunk-Z7PW63ZC.js} +2 -2
- package/dist/{chunk-OUST5WDV.js → chunk-ZFO26ZZR.js} +5 -5
- package/dist/{chunk-4UVDI4XE.js → chunk-ZG7MXW5J.js} +3 -3
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-EHRSGBM7.js → classified-marker-IYWA7L6U.js} +3 -3
- package/dist/collection-facade-FLXXGAPR.js +45 -0
- package/dist/{computed-6G5M3UPH.js → computed-B3BJQSU5.js} +3 -3
- package/dist/consent/index.js +9 -9
- package/dist/cover/index.js +3 -3
- package/dist/custody/index.js +11 -11
- package/dist/{dead-filter-ANPRM2LD.js → dead-filter-QV7ORQS3.js} +2 -2
- package/dist/debug/index.js +1 -1
- package/dist/{delegation-6NUQCURX.js → delegation-UPE5PUKB.js} +13 -11
- package/dist/delegation-UPE5PUKB.js.map +1 -0
- package/dist/derivations/index.js +12 -12
- package/dist/derive-R7ALNQRH.js +22 -0
- package/dist/directory/index.js +10 -10
- package/dist/{dispatch-EO2QHEXK.js → dispatch-BW2W2LXV.js} +18 -18
- package/dist/{dispatch-UGU775MV.js → dispatch-OBZS537P.js} +5 -5
- package/dist/{enclave-3Z7VTJAW.js → enclave-LXFVDJLO.js} +11 -9
- package/dist/executor-4WZG7D46.js +9 -0
- package/dist/executor-5RWPUTGR.js +29 -0
- package/dist/executor-VOD4C6ZA.js +9 -0
- package/dist/export-accessible-TCVU6B72.js +23 -0
- package/dist/extract-partition-UNUQF5MD.js +38 -0
- package/dist/{fanout-sidecar-3Q6BWNSS.js → fanout-sidecar-BD4ZSPER.js} +9 -9
- package/dist/find-QJPVK6CY.js +11 -0
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +12 -12
- package/dist/i18n/index.js +14 -14
- package/dist/index.d.ts +8 -8
- package/dist/index.js +91 -105
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/introspection/index.js +11 -11
- package/dist/issue-QYCCTU4S.js +19 -0
- package/dist/kernel/enclave/crypto.d.ts +24 -4
- package/dist/kernel/enclave/index.d.ts +2 -0
- package/dist/kernel/enclave/record-aad.d.ts +59 -0
- package/dist/kernel/errors.d.ts +0 -4
- package/dist/kernel/sync-policy.d.ts +0 -2
- package/dist/kernel/types.d.ts +2 -5
- package/dist/{ledger-ZO5OKKGR.js → ledger-6EMFGJRU.js} +11 -11
- package/dist/liberate-ZJDLMKOW.js +24 -0
- package/dist/{link-set-ZZYDZPL4.js → link-set-GUKFJQGW.js} +11 -11
- package/dist/{managed-secret-6FITSKDO.js → managed-secret-T6X4VHB2.js} +3 -3
- package/dist/materialized-views/index.js +20 -20
- package/dist/money/index.js +4 -4
- package/dist/noydb-IP2QPER4.js +83 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.js +55 -67
- package/dist/policy/index.js +4 -4
- package/dist/port/to/index.d.ts +2 -2
- package/dist/port/with/service-bus.d.ts +0 -4
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-577X4FAU.js → post-register-XKYJDDZL.js} +6 -6
- package/dist/query/index.js +3 -3
- package/dist/reduce/index.js +4 -4
- package/dist/register-GFYFTV74.js +32 -0
- package/dist/registry-BY7Z54RJ.js +9 -0
- package/dist/registry-D6NSZUVQ.js +9 -0
- package/dist/registry-KQPWMFIP.js +19 -0
- package/dist/registry-P7RU4TPR.js +18 -0
- package/dist/request-withdrawal-6RA6PGWD.js +31 -0
- package/dist/{reveal-PCQYK4NO.js → reveal-IN2ZBB5U.js} +6 -6
- package/dist/revoke-ETYVUNHE.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +12 -12
- package/dist/search/index.js +4 -4
- package/dist/{seed-BVO6SSKH.js → seed-D623RNG3.js} +11 -11
- package/dist/sequence/index.js +9 -9
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-FLW4HHWM.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/{stale-3FW6U4OU.js → stale-O3CZVYMO.js} +10 -10
- package/dist/storage-7GVHLKVJ.js +23 -0
- package/dist/{store-coordination-provider-3QGSXG3P.js → store-coordination-provider-RKBDHHN4.js} +3 -3
- package/dist/sync/index.js +11 -11
- package/dist/team/index.js +14 -14
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -3
- package/dist/to/index.js.map +1 -1
- package/dist/transactions/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/{verify-RO5RTZOJ.js → verify-GB7SBYC3.js} +5 -5
- package/dist/walk-77FSILOU.js +21 -0
- package/dist/with-pod/bundle.d.ts +3 -11
- package/dist/with-pod/format.d.ts +0 -2
- package/dist/with-pod/index.d.ts +6 -6
- package/dist/with-pod/pod-store.d.ts +0 -8
- package/dist/withdraw-accessible-XMWJWDZP.js +28 -0
- package/package.json +3 -3
- package/dist/api-XDMGLURJ.js +0 -20
- package/dist/backup-AWHG6ODK.js.map +0 -1
- package/dist/chunk-4X5Z5SRV.js.map +0 -1
- package/dist/chunk-55LKVALY.js.map +0 -1
- package/dist/chunk-B2P7M2D2.js.map +0 -1
- package/dist/chunk-EBEKSNKS.js.map +0 -1
- package/dist/chunk-HNGSV2YC.js.map +0 -1
- package/dist/chunk-NSRITINN.js.map +0 -1
- package/dist/chunk-P2PLXMHO.js.map +0 -1
- package/dist/chunk-SPA5WX3T.js.map +0 -1
- package/dist/chunk-SYFEJFIO.js.map +0 -1
- package/dist/chunk-VCETL77O.js.map +0 -1
- package/dist/collection-facade-5UJW6QRB.js +0 -45
- package/dist/delegation-6NUQCURX.js.map +0 -1
- package/dist/derive-5PFJNNNU.js +0 -22
- package/dist/executor-AB4BCJO4.js +0 -29
- package/dist/executor-CYJQLKKI.js +0 -9
- package/dist/executor-S4QIKEHW.js +0 -9
- package/dist/export-accessible-JXCJGHCF.js +0 -23
- package/dist/extract-partition-2WDL4FJ5.js +0 -38
- package/dist/find-RBBYKXI7.js +0 -11
- package/dist/issue-EABYJWX5.js +0 -19
- package/dist/liberate-S3JR4TQT.js +0 -24
- package/dist/noydb-SPEVD5JA.js +0 -83
- package/dist/register-OXUXXIWT.js +0 -32
- package/dist/registry-CZVINVQH.js +0 -9
- package/dist/registry-IKUR2MXD.js +0 -9
- package/dist/registry-L3CO5ZAY.js +0 -18
- package/dist/registry-QFIVGS2W.js +0 -19
- package/dist/request-withdrawal-UV42CNR5.js +0 -31
- package/dist/revoke-26DFO36Z.js +0 -24
- package/dist/signer-DDO7QEID.js +0 -25
- package/dist/storage-M7L2EK3F.js +0 -23
- package/dist/walk-OFXQN5US.js +0 -21
- package/dist/withdraw-accessible-7XKYVTMP.js +0 -28
- /package/dist/{api-XDMGLURJ.js.map → api-FYF5WE2E.js.map} +0 -0
- /package/dist/{bundle-handle-G4R37BQV.js.map → bundle-handle-RJZXOFXE.js.map} +0 -0
- /package/dist/{chunk-NJDQ4YSV.js.map → chunk-2BBXXSAD.js.map} +0 -0
- /package/dist/{chunk-PK3URBVU.js.map → chunk-2KHT6EP3.js.map} +0 -0
- /package/dist/{chunk-6HFM7EIT.js.map → chunk-2KX6MT3D.js.map} +0 -0
- /package/dist/{chunk-AHLJSVRL.js.map → chunk-37M5QBAS.js.map} +0 -0
- /package/dist/{chunk-TJCRCCPT.js.map → chunk-3EFQV2XQ.js.map} +0 -0
- /package/dist/{chunk-747LRSOO.js.map → chunk-3IJK5FRG.js.map} +0 -0
- /package/dist/{chunk-7MT56F4U.js.map → chunk-45UIDGPY.js.map} +0 -0
- /package/dist/{chunk-XJIGOFN6.js.map → chunk-4R4N5PRM.js.map} +0 -0
- /package/dist/{chunk-Z7SMBVNM.js.map → chunk-4TLFWYZG.js.map} +0 -0
- /package/dist/{chunk-4HDYQL3J.js.map → chunk-4TRAQICY.js.map} +0 -0
- /package/dist/{chunk-JIUVJ4M7.js.map → chunk-4WXISHDI.js.map} +0 -0
- /package/dist/{chunk-OF3L2SD6.js.map → chunk-6FXQZ3T7.js.map} +0 -0
- /package/dist/{chunk-UHXCLPGC.js.map → chunk-7DK6CYXO.js.map} +0 -0
- /package/dist/{chunk-K525AZ5C.js.map → chunk-A5AB7EZU.js.map} +0 -0
- /package/dist/{chunk-CEJWMBXO.js.map → chunk-A7BP42KY.js.map} +0 -0
- /package/dist/{chunk-FDX7OWWI.js.map → chunk-ALBA4CET.js.map} +0 -0
- /package/dist/{chunk-YAWK6AWF.js.map → chunk-ALDFGMO7.js.map} +0 -0
- /package/dist/{chunk-3FSX6LDG.js.map → chunk-C5N3ZWGJ.js.map} +0 -0
- /package/dist/{chunk-44JENXEG.js.map → chunk-C6RYZ4ZD.js.map} +0 -0
- /package/dist/{chunk-VA3PPYTQ.js.map → chunk-CM7MGRP3.js.map} +0 -0
- /package/dist/{chunk-AR2JDFAE.js.map → chunk-CUEWN4FX.js.map} +0 -0
- /package/dist/{chunk-DMQCLZ4Z.js.map → chunk-DKJXAZWF.js.map} +0 -0
- /package/dist/{chunk-P2Y2F6EB.js.map → chunk-DMRDPZQ7.js.map} +0 -0
- /package/dist/{chunk-G4VQSGXL.js.map → chunk-EPUDMBVL.js.map} +0 -0
- /package/dist/{chunk-7G6VDWXB.js.map → chunk-EWTAUGAK.js.map} +0 -0
- /package/dist/{chunk-35EBKWQU.js.map → chunk-FWZ7WYAH.js.map} +0 -0
- /package/dist/{chunk-7HF4J7Z5.js.map → chunk-GGM3JCEG.js.map} +0 -0
- /package/dist/{chunk-OI7ZJUYT.js.map → chunk-GNMGX4FY.js.map} +0 -0
- /package/dist/{chunk-NT432TE6.js.map → chunk-H3BDH7DA.js.map} +0 -0
- /package/dist/{chunk-5GMMIDJX.js.map → chunk-H6UFT22R.js.map} +0 -0
- /package/dist/{chunk-Z45YRGFO.js.map → chunk-HRQF23XS.js.map} +0 -0
- /package/dist/{chunk-7F4DBNSP.js.map → chunk-IHKRTVJQ.js.map} +0 -0
- /package/dist/{chunk-7TSYBD3E.js.map → chunk-IONRKUH4.js.map} +0 -0
- /package/dist/{chunk-W3TVWF6N.js.map → chunk-IQVVUZ6Z.js.map} +0 -0
- /package/dist/{chunk-GV2EFYNV.js.map → chunk-J5LO2H42.js.map} +0 -0
- /package/dist/{chunk-WLYIROCJ.js.map → chunk-J6EBSGIR.js.map} +0 -0
- /package/dist/{chunk-RXYYFSBB.js.map → chunk-JTZRLD47.js.map} +0 -0
- /package/dist/{chunk-OXCU7G5I.js.map → chunk-KOM2GMTW.js.map} +0 -0
- /package/dist/{chunk-UAHHWR4P.js.map → chunk-KYIXANXU.js.map} +0 -0
- /package/dist/{chunk-E2TN45ZD.js.map → chunk-LOLK4EAT.js.map} +0 -0
- /package/dist/{chunk-HVQGCKY4.js.map → chunk-LQEHLFFF.js.map} +0 -0
- /package/dist/{chunk-H4YQSDOI.js.map → chunk-LQFNJRMI.js.map} +0 -0
- /package/dist/{chunk-2APC6HS6.js.map → chunk-LVLXWIBF.js.map} +0 -0
- /package/dist/{chunk-YY3PEDBR.js.map → chunk-LZHDIO64.js.map} +0 -0
- /package/dist/{chunk-DG27IUVI.js.map → chunk-M3VRXAVD.js.map} +0 -0
- /package/dist/{chunk-UFM3WVIF.js.map → chunk-M3XBZPLU.js.map} +0 -0
- /package/dist/{chunk-PGWXE5CR.js.map → chunk-M44ZBLL3.js.map} +0 -0
- /package/dist/{chunk-FNSMZQS4.js.map → chunk-MLMDO4OQ.js.map} +0 -0
- /package/dist/{chunk-XXVIHJZY.js.map → chunk-MRDQ6HJS.js.map} +0 -0
- /package/dist/{chunk-QS2PUZC7.js.map → chunk-MSCXCF4T.js.map} +0 -0
- /package/dist/{chunk-VJFMXYKP.js.map → chunk-MVWO6KXU.js.map} +0 -0
- /package/dist/{chunk-DEFCPAXD.js.map → chunk-NW3PSKAN.js.map} +0 -0
- /package/dist/{chunk-CCZJJ4I2.js.map → chunk-OERLXUF5.js.map} +0 -0
- /package/dist/{chunk-25FGCLYS.js.map → chunk-OFGLLNQW.js.map} +0 -0
- /package/dist/{chunk-LRNODVQX.js.map → chunk-OGQSJJWF.js.map} +0 -0
- /package/dist/{chunk-DIICZPWS.js.map → chunk-OOOU3F5Y.js.map} +0 -0
- /package/dist/{chunk-HPLWFNG4.js.map → chunk-P7A2FX5Y.js.map} +0 -0
- /package/dist/{chunk-KUDZVJKQ.js.map → chunk-PLJ622XY.js.map} +0 -0
- /package/dist/{chunk-SV4BNALS.js.map → chunk-PRN65IDE.js.map} +0 -0
- /package/dist/{chunk-VBCDVWRU.js.map → chunk-PV76W4KB.js.map} +0 -0
- /package/dist/{chunk-RTAMLDWP.js.map → chunk-Q4AU3NJE.js.map} +0 -0
- /package/dist/{chunk-T227WEHE.js.map → chunk-QLFLX5VA.js.map} +0 -0
- /package/dist/{chunk-L2UHRVB4.js.map → chunk-QNGRTWGM.js.map} +0 -0
- /package/dist/{chunk-RSHNUOSJ.js.map → chunk-SX2ZKKZS.js.map} +0 -0
- /package/dist/{chunk-K6TQEDVJ.js.map → chunk-SX4HK6FU.js.map} +0 -0
- /package/dist/{chunk-FUHKW252.js.map → chunk-TAFRRVFR.js.map} +0 -0
- /package/dist/{chunk-JRCYZEHU.js.map → chunk-TEOL6VAV.js.map} +0 -0
- /package/dist/{chunk-5XFTL73S.js.map → chunk-TJGB5I4J.js.map} +0 -0
- /package/dist/{chunk-MSWYQLMQ.js.map → chunk-V3WLQXDF.js.map} +0 -0
- /package/dist/{chunk-VMCCGUQB.js.map → chunk-VDQZKDED.js.map} +0 -0
- /package/dist/{chunk-BGQ63MCT.js.map → chunk-VFBJMTLJ.js.map} +0 -0
- /package/dist/{chunk-N35NC4JH.js.map → chunk-WX5ABQSL.js.map} +0 -0
- /package/dist/{chunk-FAXZQ5UF.js.map → chunk-Y2FDCDLY.js.map} +0 -0
- /package/dist/{chunk-7VPWXVKU.js.map → chunk-Y6C67PJX.js.map} +0 -0
- /package/dist/{chunk-Y3H4WOP3.js.map → chunk-YKDAFWWS.js.map} +0 -0
- /package/dist/{chunk-HXGUIPQB.js.map → chunk-YRMA7CJH.js.map} +0 -0
- /package/dist/{chunk-AZQVFXJF.js.map → chunk-YRTS5MWY.js.map} +0 -0
- /package/dist/{chunk-HNHCQ556.js.map → chunk-YVGJLRXN.js.map} +0 -0
- /package/dist/{chunk-6OC6YASM.js.map → chunk-YZC4DWJQ.js.map} +0 -0
- /package/dist/{chunk-CCZ5DEJ7.js.map → chunk-Z7PW63ZC.js.map} +0 -0
- /package/dist/{chunk-OUST5WDV.js.map → chunk-ZFO26ZZR.js.map} +0 -0
- /package/dist/{chunk-4UVDI4XE.js.map → chunk-ZG7MXW5J.js.map} +0 -0
- /package/dist/{classified-marker-EHRSGBM7.js.map → classified-marker-IYWA7L6U.js.map} +0 -0
- /package/dist/{collection-facade-5UJW6QRB.js.map → collection-facade-FLXXGAPR.js.map} +0 -0
- /package/dist/{computed-6G5M3UPH.js.map → computed-B3BJQSU5.js.map} +0 -0
- /package/dist/{dead-filter-ANPRM2LD.js.map → dead-filter-QV7ORQS3.js.map} +0 -0
- /package/dist/{derive-5PFJNNNU.js.map → derive-R7ALNQRH.js.map} +0 -0
- /package/dist/{dispatch-EO2QHEXK.js.map → dispatch-BW2W2LXV.js.map} +0 -0
- /package/dist/{dispatch-UGU775MV.js.map → dispatch-OBZS537P.js.map} +0 -0
- /package/dist/{enclave-3Z7VTJAW.js.map → enclave-LXFVDJLO.js.map} +0 -0
- /package/dist/{executor-AB4BCJO4.js.map → executor-4WZG7D46.js.map} +0 -0
- /package/dist/{executor-CYJQLKKI.js.map → executor-5RWPUTGR.js.map} +0 -0
- /package/dist/{executor-S4QIKEHW.js.map → executor-VOD4C6ZA.js.map} +0 -0
- /package/dist/{export-accessible-JXCJGHCF.js.map → export-accessible-TCVU6B72.js.map} +0 -0
- /package/dist/{extract-partition-2WDL4FJ5.js.map → extract-partition-UNUQF5MD.js.map} +0 -0
- /package/dist/{fanout-sidecar-3Q6BWNSS.js.map → fanout-sidecar-BD4ZSPER.js.map} +0 -0
- /package/dist/{find-RBBYKXI7.js.map → find-QJPVK6CY.js.map} +0 -0
- /package/dist/{issue-EABYJWX5.js.map → issue-QYCCTU4S.js.map} +0 -0
- /package/dist/{ledger-ZO5OKKGR.js.map → ledger-6EMFGJRU.js.map} +0 -0
- /package/dist/{liberate-S3JR4TQT.js.map → liberate-ZJDLMKOW.js.map} +0 -0
- /package/dist/{link-set-ZZYDZPL4.js.map → link-set-GUKFJQGW.js.map} +0 -0
- /package/dist/{managed-secret-6FITSKDO.js.map → managed-secret-T6X4VHB2.js.map} +0 -0
- /package/dist/{noydb-SPEVD5JA.js.map → noydb-IP2QPER4.js.map} +0 -0
- /package/dist/{post-register-577X4FAU.js.map → post-register-XKYJDDZL.js.map} +0 -0
- /package/dist/{register-OXUXXIWT.js.map → register-GFYFTV74.js.map} +0 -0
- /package/dist/{registry-CZVINVQH.js.map → registry-BY7Z54RJ.js.map} +0 -0
- /package/dist/{registry-IKUR2MXD.js.map → registry-D6NSZUVQ.js.map} +0 -0
- /package/dist/{registry-L3CO5ZAY.js.map → registry-KQPWMFIP.js.map} +0 -0
- /package/dist/{registry-QFIVGS2W.js.map → registry-P7RU4TPR.js.map} +0 -0
- /package/dist/{request-withdrawal-UV42CNR5.js.map → request-withdrawal-6RA6PGWD.js.map} +0 -0
- /package/dist/{reveal-PCQYK4NO.js.map → reveal-IN2ZBB5U.js.map} +0 -0
- /package/dist/{revoke-26DFO36Z.js.map → revoke-ETYVUNHE.js.map} +0 -0
- /package/dist/{seed-BVO6SSKH.js.map → seed-D623RNG3.js.map} +0 -0
- /package/dist/{signer-DDO7QEID.js.map → signer-FLW4HHWM.js.map} +0 -0
- /package/dist/{stale-3FW6U4OU.js.map → stale-O3CZVYMO.js.map} +0 -0
- /package/dist/{storage-M7L2EK3F.js.map → storage-7GVHLKVJ.js.map} +0 -0
- /package/dist/{store-coordination-provider-3QGSXG3P.js.map → store-coordination-provider-RKBDHHN4.js.map} +0 -0
- /package/dist/{verify-RO5RTZOJ.js.map → verify-GB7SBYC3.js.map} +0 -0
- /package/dist/{walk-OFXQN5US.js.map → walk-77FSILOU.js.map} +0 -0
- /package/dist/{withdraw-accessible-7XKYVTMP.js.map → withdraw-accessible-XMWJWDZP.js.map} +0 -0
package/dist/team/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
MemoryDeviceSealProvider,
|
|
3
3
|
beginEchoUnlock,
|
|
4
4
|
withTeam
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-45UIDGPY.js";
|
|
6
6
|
import {
|
|
7
7
|
NO_TEAM,
|
|
8
8
|
burnPaperRecoveryEntry,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
unwrapMagicLinkGrant,
|
|
32
32
|
updateAuthenticator,
|
|
33
33
|
writeMagicLinkGrant
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-S7UTUFPU.js";
|
|
35
|
+
import "../chunk-NW3PSKAN.js";
|
|
36
36
|
import {
|
|
37
37
|
buildEchoBlock,
|
|
38
38
|
buildRecipientKeyringFile,
|
|
@@ -53,20 +53,20 @@ import {
|
|
|
53
53
|
updateKeyringIdentity,
|
|
54
54
|
verifyPrompt,
|
|
55
55
|
verifyTypedEcho
|
|
56
|
-
} from "../chunk-
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
56
|
+
} from "../chunk-CFM6GBNF.js";
|
|
57
|
+
import "../chunk-EPUDMBVL.js";
|
|
58
|
+
import "../chunk-37M5QBAS.js";
|
|
59
|
+
import "../chunk-EZYLQKHP.js";
|
|
60
|
+
import "../chunk-LVLXWIBF.js";
|
|
61
|
+
import "../chunk-YRMA7CJH.js";
|
|
62
|
+
import "../chunk-CUEWN4FX.js";
|
|
63
|
+
import "../chunk-3IJK5FRG.js";
|
|
64
64
|
import "../chunk-LP7BEXCT.js";
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-WJD5VF2N.js";
|
|
66
|
+
import "../chunk-7GWC6RI5.js";
|
|
67
67
|
import {
|
|
68
68
|
TeamNotEnabledError
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-CT35TQV7.js";
|
|
70
70
|
import "../chunk-PZ5AY32C.js";
|
|
71
71
|
export {
|
|
72
72
|
MemoryDeviceSealProvider,
|
package/dist/tiers/index.js
CHANGED
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
putAtTier,
|
|
12
12
|
syncDerivedOutputs,
|
|
13
13
|
withTiers
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-PV76W4KB.js";
|
|
15
|
+
import "../chunk-37M5QBAS.js";
|
|
16
|
+
import "../chunk-EZYLQKHP.js";
|
|
17
|
+
import "../chunk-LVLXWIBF.js";
|
|
18
|
+
import "../chunk-YRMA7CJH.js";
|
|
19
|
+
import "../chunk-CUEWN4FX.js";
|
|
20
|
+
import "../chunk-3IJK5FRG.js";
|
|
21
21
|
import "../chunk-LP7BEXCT.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-WJD5VF2N.js";
|
|
23
|
+
import "../chunk-7GWC6RI5.js";
|
|
24
24
|
import {
|
|
25
25
|
TiersNotEnabledError
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-CT35TQV7.js";
|
|
27
27
|
import "../chunk-PZ5AY32C.js";
|
|
28
28
|
export {
|
|
29
29
|
NO_TIERS,
|
package/dist/to/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BundleVersionConflictError,
|
|
3
2
|
ConflictError,
|
|
4
3
|
DuplicateStoreKindError,
|
|
5
4
|
NetworkError,
|
|
6
5
|
PodVersionConflictError,
|
|
7
6
|
StoreCapabilityError,
|
|
8
7
|
UnknownStoreKindError
|
|
9
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-CT35TQV7.js";
|
|
10
9
|
import "../chunk-PZ5AY32C.js";
|
|
11
10
|
|
|
12
11
|
// src/port/to/locator.ts
|
|
@@ -38,7 +37,6 @@ function createStoreLocator() {
|
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
export {
|
|
41
|
-
BundleVersionConflictError,
|
|
42
40
|
ConflictError,
|
|
43
41
|
DuplicateStoreKindError,
|
|
44
42
|
NetworkError,
|
package/dist/to/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/port/to/locator.ts"],"sourcesContent":["/**\n * The Locator seam (#945 Task 1): a serializable, CREDENTIALLESS store\n * descriptor plus a factory registry that reconstructs a `NoydbStore` from\n * data.\n *\n * A `StoreDescriptor` is the pod-portable \"what store and where\" — kind,\n * broad topology class, and a kind-specific serializable address/options\n * bag. It is deliberately dumb data: no field on it is ever typed as a\n * function, a `StoreCredentialSource`, or a `StoreCredentials` value, so a\n * descriptor can be written into a pod / manifest / sync payload without an\n * audit for leaked secrets. Anything that must resolve device-side or\n * user-side — a short-lived credential, a device-local directory override,\n * a mounted drive handle — travels out-of-band via `resolve()`'s `opts`,\n * never through the descriptor itself.\n *\n * This module is pure TypeScript: no imports beyond the kernel's own types\n * and errors, no Node built-ins, no crypto. It adds zero runtime\n * dependencies to `@noy-db/hub/to`.\n */\nimport type { NoydbStore, NoydbPodStore, StoreCredentialSource } from '../../kernel/types.js'\nimport { DuplicateStoreKindError, UnknownStoreKindError } from '../../kernel/errors.js'\n\n/**\n * The broad topology bucket a store descriptor's kind falls into —\n * used by callers/UI to group or filter descriptors without knowing every\n * concrete `kind` string.\n */\nexport type StoreClass = 'local' | 'browser' | 'lan' | 'cloud'\n\n/**\n * A serializable, CREDENTIALLESS description of a store instance: enough\n * data to reconstruct a `NoydbStore` via a registered `StoreFactory`, and\n * safe to persist or transmit as-is.\n *\n * CREDENTIALLESS BY CONSTRUCTION: no field here may be typed as a function,\n * a `StoreCredentialSource`, or a `StoreCredentials` value. Credentials\n * NEVER ride the descriptor — they are supplied separately (as a\n * `StoreCredentialSource`) to `StoreLocator.resolve()` at resolve time.\n */\nexport interface StoreDescriptor {\n /** The registered factory key (e.g. `'file'`, `'aws-s3'`, `'webdav'`). */\n readonly kind: string\n /** The broad topology bucket this kind falls into. */\n readonly class: StoreClass\n /** Kind-specific serializable location (e.g. `{ dir }`, `{ bucket, region }`). */\n readonly address: unknown\n /** Kind-specific serializable tuning options. */\n readonly options?: unknown\n}\n\n/**\n * A kind-specific, device-local supplement to a `StoreDescriptor` — a\n * directory override, a mount point, a drive handle — that is resolved\n * device-side and never carried inside a pod alongside the descriptor.\n */\nexport type StoreBinding = unknown\n\n/**\n * Either store shape a factory may produce: the 6-method KV `NoydbStore`, or\n * the whole-vault `NoydbPodStore` implemented by `to-drive` / `to-icloud`.\n *\n * The two are DISJOINT, not sub/supertypes — a pod store has none of the six\n * KV methods — which is why moving between them needs a double cast and why\n * `isPodStore()` exists to narrow instead.\n */\nexport type AnyNoydbStore = NoydbStore | NoydbPodStore\n\n/**\n * Narrow an `AnyNoydbStore` to the pod shape. Discriminates on the\n * `kind: 'bundle'` tag `NoydbPodStore` carries for exactly this purpose; a\n * `NoydbStore` has no `kind` field at all.\n *\n * Use this at a `resolve()` boundary instead of casting — a store resolved\n * from a descriptor read out of a pod is only known to be one of the two\n * shapes at runtime.\n */\nexport function isPodStore(store: AnyNoydbStore): store is NoydbPodStore {\n return (store as NoydbPodStore).kind === 'bundle'\n}\n\n/**\n * Reconstructs a live store from a `StoreDescriptor`. Registered against a\n * `StoreLocator` under the descriptor's `kind`.\n *\n * The type parameter says WHICH shape this factory builds. It defaults to\n * `NoydbStore`, so a bare `StoreFactory` means exactly what it always has;\n * a pod-store factory declares `StoreFactory<NoydbPodStore>` and registers\n * without a cast (#988).\n */\nexport type StoreFactory<S extends AnyNoydbStore = NoydbStore> = (\n descriptor: StoreDescriptor,\n opts: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n) => S | Promise<S>\n\n/** A registry of `StoreFactory`s, keyed by `StoreDescriptor.kind`. */\nexport interface StoreLocator {\n /**\n * Register a factory for `kind`. Throws if `kind` is already registered.\n *\n * Accepts a factory building EITHER store shape — `S` is inferred from the\n * factory's own return type, so a `NoydbPodStore` factory needs no cast.\n */\n register<S extends AnyNoydbStore>(kind: string, factory: StoreFactory<S>): void\n /**\n * Resolve `descriptor` to a live store via its kind's registered factory.\n *\n * Returns `NoydbStore`. If the `kind` was registered with a pod-store\n * factory, the resolved value is really a `NoydbPodStore`: this signature\n * is the seam's remaining unsoundness, kept because widening it to\n * `AnyNoydbStore` would break every existing caller. Where the descriptor's\n * kind is not statically known, prefer `resolveAny()` and `isPodStore()`.\n */\n resolve(\n descriptor: StoreDescriptor,\n opts?: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n ): NoydbStore | Promise<NoydbStore>\n /**\n * As `resolve()`, but typed honestly: the registry is keyed by a runtime\n * `kind` string, so which of the two shapes comes back is not knowable\n * statically. Narrow the result with `isPodStore()`.\n */\n resolveAny(\n descriptor: StoreDescriptor,\n opts?: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n ): AnyNoydbStore | Promise<AnyNoydbStore>\n}\n\n/**\n * Creates a fresh, empty `StoreLocator`.\n *\n * DUPLICATE REGISTRATION: `register()` throws if `kind` is already\n * registered, rather than silently overwriting it (last-wins). A\n * composition root that registers the same kind twice is almost always a\n * mistake — a copy-pasted setup block, two satellite packages fighting\n * over the same kind string — and last-wins would hide it behind whichever\n * registration happened to run last. This mirrors the\n * `DuplicateBehaviorNameError` philosophy (#947): fail loudly at the\n * mistake's source instead of silently at some unrelated `resolve()` call\n * later.\n */\nexport function createStoreLocator(): StoreLocator {\n const factories = new Map<string, StoreFactory<AnyNoydbStore>>()\n\n function lookup(kind: string): StoreFactory<AnyNoydbStore> {\n const factory = factories.get(kind)\n if (!factory) {\n throw new UnknownStoreKindError(kind, [...factories.keys()].sort())\n }\n return factory\n }\n\n return {\n register(kind, factory) {\n if (factories.has(kind)) {\n throw new DuplicateStoreKindError(kind)\n }\n factories.set(kind, factory)\n },\n resolve(descriptor, opts = {}) {\n // The one place the seam's `resolve(): NoydbStore` signature is paid\n // for. A pod-store `kind` really returns a `NoydbPodStore`; the registry\n // is keyed by a runtime string so nothing here can prove otherwise.\n // Concentrated in the module that owns the invariant rather than\n // duplicated as `as unknown as StoreFactory` in every pod-store package\n // (#988). `resolveAny()` is the honest signature over the same call.\n return lookup(descriptor.kind)(descriptor, opts) as NoydbStore | Promise<NoydbStore>\n },\n resolveAny(descriptor, opts = {}) {\n return lookup(descriptor.kind)(descriptor, opts)\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/port/to/locator.ts"],"sourcesContent":["/**\n * The Locator seam (#945 Task 1): a serializable, CREDENTIALLESS store\n * descriptor plus a factory registry that reconstructs a `NoydbStore` from\n * data.\n *\n * A `StoreDescriptor` is the pod-portable \"what store and where\" — kind,\n * broad topology class, and a kind-specific serializable address/options\n * bag. It is deliberately dumb data: no field on it is ever typed as a\n * function, a `StoreCredentialSource`, or a `StoreCredentials` value, so a\n * descriptor can be written into a pod / manifest / sync payload without an\n * audit for leaked secrets. Anything that must resolve device-side or\n * user-side — a short-lived credential, a device-local directory override,\n * a mounted drive handle — travels out-of-band via `resolve()`'s `opts`,\n * never through the descriptor itself.\n *\n * This module is pure TypeScript: no imports beyond the kernel's own types\n * and errors, no Node built-ins, no crypto. It adds zero runtime\n * dependencies to `@noy-db/hub/to`.\n */\nimport type { NoydbStore, NoydbPodStore, StoreCredentialSource } from '../../kernel/types.js'\nimport { DuplicateStoreKindError, UnknownStoreKindError } from '../../kernel/errors.js'\n\n/**\n * The broad topology bucket a store descriptor's kind falls into —\n * used by callers/UI to group or filter descriptors without knowing every\n * concrete `kind` string.\n */\nexport type StoreClass = 'local' | 'browser' | 'lan' | 'cloud'\n\n/**\n * A serializable, CREDENTIALLESS description of a store instance: enough\n * data to reconstruct a `NoydbStore` via a registered `StoreFactory`, and\n * safe to persist or transmit as-is.\n *\n * CREDENTIALLESS BY CONSTRUCTION: no field here may be typed as a function,\n * a `StoreCredentialSource`, or a `StoreCredentials` value. Credentials\n * NEVER ride the descriptor — they are supplied separately (as a\n * `StoreCredentialSource`) to `StoreLocator.resolve()` at resolve time.\n */\nexport interface StoreDescriptor {\n /** The registered factory key (e.g. `'file'`, `'aws-s3'`, `'webdav'`). */\n readonly kind: string\n /** The broad topology bucket this kind falls into. */\n readonly class: StoreClass\n /** Kind-specific serializable location (e.g. `{ dir }`, `{ bucket, region }`). */\n readonly address: unknown\n /** Kind-specific serializable tuning options. */\n readonly options?: unknown\n}\n\n/**\n * A kind-specific, device-local supplement to a `StoreDescriptor` — a\n * directory override, a mount point, a drive handle — that is resolved\n * device-side and never carried inside a pod alongside the descriptor.\n */\nexport type StoreBinding = unknown\n\n/**\n * Either store shape a factory may produce: the 6-method KV `NoydbStore`, or\n * the whole-vault `NoydbPodStore` implemented by `to-drive` / `to-icloud`.\n *\n * The two are DISJOINT, not sub/supertypes — a pod store has none of the six\n * KV methods — which is why moving between them needs a double cast and why\n * `isPodStore()` exists to narrow instead.\n */\nexport type AnyNoydbStore = NoydbStore | NoydbPodStore\n\n/**\n * Narrow an `AnyNoydbStore` to the pod shape. Discriminates on the\n * `kind: 'bundle'` tag `NoydbPodStore` carries for exactly this purpose; a\n * `NoydbStore` has no `kind` field at all.\n *\n * Use this at a `resolve()` boundary instead of casting — a store resolved\n * from a descriptor read out of a pod is only known to be one of the two\n * shapes at runtime.\n */\nexport function isPodStore(store: AnyNoydbStore): store is NoydbPodStore {\n return (store as NoydbPodStore).kind === 'bundle'\n}\n\n/**\n * Reconstructs a live store from a `StoreDescriptor`. Registered against a\n * `StoreLocator` under the descriptor's `kind`.\n *\n * The type parameter says WHICH shape this factory builds. It defaults to\n * `NoydbStore`, so a bare `StoreFactory` means exactly what it always has;\n * a pod-store factory declares `StoreFactory<NoydbPodStore>` and registers\n * without a cast (#988).\n */\nexport type StoreFactory<S extends AnyNoydbStore = NoydbStore> = (\n descriptor: StoreDescriptor,\n opts: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n) => S | Promise<S>\n\n/** A registry of `StoreFactory`s, keyed by `StoreDescriptor.kind`. */\nexport interface StoreLocator {\n /**\n * Register a factory for `kind`. Throws if `kind` is already registered.\n *\n * Accepts a factory building EITHER store shape — `S` is inferred from the\n * factory's own return type, so a `NoydbPodStore` factory needs no cast.\n */\n register<S extends AnyNoydbStore>(kind: string, factory: StoreFactory<S>): void\n /**\n * Resolve `descriptor` to a live store via its kind's registered factory.\n *\n * Returns `NoydbStore`. If the `kind` was registered with a pod-store\n * factory, the resolved value is really a `NoydbPodStore`: this signature\n * is the seam's remaining unsoundness, kept because widening it to\n * `AnyNoydbStore` would break every existing caller. Where the descriptor's\n * kind is not statically known, prefer `resolveAny()` and `isPodStore()`.\n */\n resolve(\n descriptor: StoreDescriptor,\n opts?: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n ): NoydbStore | Promise<NoydbStore>\n /**\n * As `resolve()`, but typed honestly: the registry is keyed by a runtime\n * `kind` string, so which of the two shapes comes back is not knowable\n * statically. Narrow the result with `isPodStore()`.\n */\n resolveAny(\n descriptor: StoreDescriptor,\n opts?: { binding?: StoreBinding; credentials?: StoreCredentialSource },\n ): AnyNoydbStore | Promise<AnyNoydbStore>\n}\n\n/**\n * Creates a fresh, empty `StoreLocator`.\n *\n * DUPLICATE REGISTRATION: `register()` throws if `kind` is already\n * registered, rather than silently overwriting it (last-wins). A\n * composition root that registers the same kind twice is almost always a\n * mistake — a copy-pasted setup block, two satellite packages fighting\n * over the same kind string — and last-wins would hide it behind whichever\n * registration happened to run last. This mirrors the\n * `DuplicateBehaviorNameError` philosophy (#947): fail loudly at the\n * mistake's source instead of silently at some unrelated `resolve()` call\n * later.\n */\nexport function createStoreLocator(): StoreLocator {\n const factories = new Map<string, StoreFactory<AnyNoydbStore>>()\n\n function lookup(kind: string): StoreFactory<AnyNoydbStore> {\n const factory = factories.get(kind)\n if (!factory) {\n throw new UnknownStoreKindError(kind, [...factories.keys()].sort())\n }\n return factory\n }\n\n return {\n register(kind, factory) {\n if (factories.has(kind)) {\n throw new DuplicateStoreKindError(kind)\n }\n factories.set(kind, factory)\n },\n resolve(descriptor, opts = {}) {\n // The one place the seam's `resolve(): NoydbStore` signature is paid\n // for. A pod-store `kind` really returns a `NoydbPodStore`; the registry\n // is keyed by a runtime string so nothing here can prove otherwise.\n // Concentrated in the module that owns the invariant rather than\n // duplicated as `as unknown as StoreFactory` in every pod-store package\n // (#988). `resolveAny()` is the honest signature over the same call.\n return lookup(descriptor.kind)(descriptor, opts) as NoydbStore | Promise<NoydbStore>\n },\n resolveAny(descriptor, opts = {}) {\n return lookup(descriptor.kind)(descriptor, opts)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;AA4EO,SAAS,WAAW,OAA8C;AACvE,SAAQ,MAAwB,SAAS;AAC3C;AA8DO,SAAS,qBAAmC;AACjD,QAAM,YAAY,oBAAI,IAAyC;AAE/D,WAAS,OAAO,MAA2C;AACzD,UAAM,UAAU,UAAU,IAAI,IAAI;AAClC,QAAI,CAAC,SAAS;AACZ,YAAM,IAAI,sBAAsB,MAAM,CAAC,GAAG,UAAU,KAAK,CAAC,EAAE,KAAK,CAAC;AAAA,IACpE;AACA,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL,SAAS,MAAM,SAAS;AACtB,UAAI,UAAU,IAAI,IAAI,GAAG;AACvB,cAAM,IAAI,wBAAwB,IAAI;AAAA,MACxC;AACA,gBAAU,IAAI,MAAM,OAAO;AAAA,IAC7B;AAAA,IACA,QAAQ,YAAY,OAAO,CAAC,GAAG;AAO7B,aAAO,OAAO,WAAW,IAAI,EAAE,YAAY,IAAI;AAAA,IACjD;AAAA,IACA,WAAW,YAAY,OAAO,CAAC,GAAG;AAChC,aAAO,OAAO,WAAW,IAAI,EAAE,YAAY,IAAI;AAAA,IACjD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
TxContext,
|
|
4
4
|
TxVault,
|
|
5
5
|
runTransaction
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FWZ7WYAH.js";
|
|
7
7
|
import {
|
|
8
8
|
lazy
|
|
9
9
|
} from "../chunk-5D2ALSM5.js";
|
|
10
10
|
import "../chunk-ZJADGNYF.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-CT35TQV7.js";
|
|
12
12
|
import "../chunk-PZ5AY32C.js";
|
|
13
13
|
|
|
14
14
|
// src/with-commit/tx/dry-run.ts
|
|
15
|
-
var loadGuardExecutor = lazy(() => import("../executor-
|
|
15
|
+
var loadGuardExecutor = lazy(() => import("../executor-VOD4C6ZA.js"));
|
|
16
16
|
var SEP = " ";
|
|
17
17
|
var keyOf = (op) => `${op.vaultName}${SEP}${op.collectionName}${SEP}${op.id}`;
|
|
18
18
|
async function runDryRun(db, fn) {
|
package/dist/util/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
blindedEqual,
|
|
3
3
|
evaluateKofN,
|
|
4
4
|
openVdigPayload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YRMA7CJH.js";
|
|
6
6
|
import {
|
|
7
7
|
dualReadSealedSlot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CUEWN4FX.js";
|
|
9
9
|
import {
|
|
10
10
|
VDIG_ITERATIONS,
|
|
11
11
|
normalizeForVerify,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
base64ToBuffer,
|
|
16
16
|
generateSalt
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WJD5VF2N.js";
|
|
18
18
|
import {
|
|
19
19
|
ClassifiedConfigError,
|
|
20
20
|
ClassifiedVerifyError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CT35TQV7.js";
|
|
22
22
|
import "./chunk-PZ5AY32C.js";
|
|
23
23
|
|
|
24
24
|
// src/kernel/enclave/classify/verify.ts
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
verifyDigestField,
|
|
138
138
|
verifyTextField
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=verify-
|
|
140
|
+
//# sourceMappingURL=verify-GB7SBYC3.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dumpVaultSchema
|
|
3
|
+
} from "./chunk-A5AB7EZU.js";
|
|
4
|
+
import "./chunk-KHKKD62N.js";
|
|
5
|
+
import "./chunk-HRQF23XS.js";
|
|
6
|
+
import "./chunk-Y2NBBT6K.js";
|
|
7
|
+
import "./chunk-DMRDPZQ7.js";
|
|
8
|
+
import "./chunk-EZYLQKHP.js";
|
|
9
|
+
import "./chunk-LVLXWIBF.js";
|
|
10
|
+
import "./chunk-YRMA7CJH.js";
|
|
11
|
+
import "./chunk-CUEWN4FX.js";
|
|
12
|
+
import "./chunk-3IJK5FRG.js";
|
|
13
|
+
import "./chunk-LP7BEXCT.js";
|
|
14
|
+
import "./chunk-WJD5VF2N.js";
|
|
15
|
+
import "./chunk-7GWC6RI5.js";
|
|
16
|
+
import "./chunk-CT35TQV7.js";
|
|
17
|
+
import "./chunk-PZ5AY32C.js";
|
|
18
|
+
export {
|
|
19
|
+
dumpVaultSchema
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=walk-77FSILOU.js.map
|
|
@@ -266,8 +266,6 @@ export interface WritePodOptions {
|
|
|
266
266
|
*/
|
|
267
267
|
readonly redirect?: Redirect;
|
|
268
268
|
}
|
|
269
|
-
/** @deprecated Use `WritePodOptions`. */
|
|
270
|
-
export type WriteNoydbBundleOptions = WritePodOptions;
|
|
271
269
|
/**
|
|
272
270
|
* Every key `writePod` reads, in declaration order (#991).
|
|
273
271
|
*
|
|
@@ -289,7 +287,7 @@ export declare const WRITE_POD_OPTION_KEYS: readonly ["compression", "collection
|
|
|
289
287
|
* actually restore a vault. Splitting the layers keeps the
|
|
290
288
|
* bundle module free of crypto concerns — see file-level docs.
|
|
291
289
|
*/
|
|
292
|
-
export interface
|
|
290
|
+
export interface PodReadResult {
|
|
293
291
|
readonly header: NoydbPodHeader;
|
|
294
292
|
readonly dumpJson: string;
|
|
295
293
|
/**
|
|
@@ -317,7 +315,7 @@ export interface NoydbBundleReadResult {
|
|
|
317
315
|
* auto-unlock paths. Without these the reader behaves exactly as before
|
|
318
316
|
* (header parsed; body returned as `dumpJson`).
|
|
319
317
|
*/
|
|
320
|
-
export interface
|
|
318
|
+
export interface ReadPodOptions {
|
|
321
319
|
/**
|
|
322
320
|
* Recipient-side sealing providers used to unseal entries from
|
|
323
321
|
* `sealedSecrets`. The reader picks the one whose `.id`
|
|
@@ -413,8 +411,6 @@ export declare function assembleBundleContainer(opts: {
|
|
|
413
411
|
signer?: DocSigner;
|
|
414
412
|
}): Promise<Uint8Array>;
|
|
415
413
|
export declare function writePod(vault: Vault, opts?: WritePodOptions): Promise<Uint8Array>;
|
|
416
|
-
/** @deprecated Use `writePod`. */
|
|
417
|
-
export declare const writeNoydbBundle: typeof writePod;
|
|
418
414
|
/**
|
|
419
415
|
* Read just the bundle header — no body decompression, no
|
|
420
416
|
* integrity verification. Intended for cloud-listing UIs that want
|
|
@@ -430,8 +426,6 @@ export declare const writeNoydbBundle: typeof writePod;
|
|
|
430
426
|
* range requests against bundles that may carry icons.
|
|
431
427
|
*/
|
|
432
428
|
export declare function readPodHeader(bytes: Uint8Array): NoydbPodHeader;
|
|
433
|
-
/** @deprecated Use `readPodHeader`. */
|
|
434
|
-
export declare const readNoydbBundleHeader: typeof readPodHeader;
|
|
435
429
|
/**
|
|
436
430
|
* Outcome of {@link verifyPodHeader}.
|
|
437
431
|
*
|
|
@@ -522,6 +516,4 @@ export declare function readPodRedirect(bytes: Uint8Array): Redirect | undefined
|
|
|
522
516
|
* free of crypto concerns and lets the same code feed format
|
|
523
517
|
* inspectors that never decrypt anything.
|
|
524
518
|
*/
|
|
525
|
-
export declare function readPod(bytes: Uint8Array, opts?:
|
|
526
|
-
/** @deprecated Use `readPod`. */
|
|
527
|
-
export declare const readNoydbBundle: typeof readPod;
|
|
519
|
+
export declare function readPod(bytes: Uint8Array, opts?: ReadPodOptions): Promise<PodReadResult>;
|
|
@@ -249,8 +249,6 @@ export interface NoydbPodHeader {
|
|
|
249
249
|
* family (see `unlockMethods` doc comment on `NoydbPodHeader`).
|
|
250
250
|
*/
|
|
251
251
|
export type UnlockMethod = 'password' | 'webauthn' | 'oidc' | 'totp' | 'email-otp' | 'magic-link' | 'pin' | 'recovery' | 'shamir';
|
|
252
|
-
/** @deprecated Use `NoydbPodHeader`. */
|
|
253
|
-
export type NoydbBundleHeader = NoydbPodHeader;
|
|
254
252
|
/**
|
|
255
253
|
* Validate a parsed bundle header. Throws on any deviation from
|
|
256
254
|
* the minimum-disclosure schema:
|
package/dist/with-pod/index.d.ts
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
* omit this subpath and save ~805 LOC of format code + Brotli/gzip
|
|
12
12
|
* wiring.
|
|
13
13
|
*/
|
|
14
|
-
export { writePod, readPod, readPodHeader, readPodCover,
|
|
14
|
+
export { writePod, readPod, readPodHeader, readPodCover, resetBrotliSupportCache, } from './bundle.js';
|
|
15
15
|
export type { Cover } from '../with-party/directory/cover/types.js';
|
|
16
|
-
export type { WritePodOptions,
|
|
16
|
+
export type { WritePodOptions, ReadPodOptions, PodReadResult, } from './bundle.js';
|
|
17
17
|
export { verifyPodHeader } from './bundle.js';
|
|
18
18
|
export type { PodVerifyResult } from './bundle.js';
|
|
19
19
|
export { signRecord, verifyRecord, signedBytes, POD_SIG_ALG } from './signature.js';
|
|
20
20
|
export { NOYDB_BUNDLE_MAGIC, NOYDB_BUNDLE_PREFIX_BYTES, NOYDB_BUNDLE_FORMAT_VERSION, FLAG_COMPRESSED, FLAG_HAS_INTEGRITY_HASH, COMPRESSION_NONE, COMPRESSION_GZIP, COMPRESSION_BROTLI, validateBundleHeader, encodeBundleHeader, hasNoydbBundleMagic, } from './format.js';
|
|
21
|
-
export type { CompressionAlgo, NoydbPodHeader,
|
|
21
|
+
export type { CompressionAlgo, NoydbPodHeader, UnlockMethod, } from './format.js';
|
|
22
22
|
export { generateULID, isULID } from './ulid.js';
|
|
23
|
-
export { wrapPodStore, createPodStore
|
|
24
|
-
export type { WrappedPodNoydbStore, WrapPodStoreOptions,
|
|
25
|
-
export { BundleIntegrityError, BundleSealMismatchError, PodVersionConflictError,
|
|
23
|
+
export { wrapPodStore, createPodStore } from './pod-store.js';
|
|
24
|
+
export type { WrappedPodNoydbStore, WrapPodStoreOptions, } from './pod-store.js';
|
|
25
|
+
export { BundleIntegrityError, BundleSealMismatchError, PodVersionConflictError, BackupLedgerError, BackupCorruptedError, } from '../kernel/errors.js';
|
|
26
26
|
export { readPodRedirect } from './bundle.js';
|
|
27
27
|
export { signRedirect, verifyRedirect, followRedirects } from './redirect.js';
|
|
28
28
|
export type { Redirect, RedirectHop, FollowRedirectsResult } from './redirect.js';
|
|
@@ -44,11 +44,3 @@ export declare function wrapPodStore(bundle: NoydbPodStore, options?: WrapPodSto
|
|
|
44
44
|
* analogous to `createStore` for KV stores.
|
|
45
45
|
*/
|
|
46
46
|
export declare function createPodStore<TOptions>(factory: (options: TOptions) => NoydbPodStore): (options: TOptions) => NoydbPodStore;
|
|
47
|
-
/** @deprecated Use wrapPodStore. */
|
|
48
|
-
export declare const wrapBundleStore: typeof wrapPodStore;
|
|
49
|
-
/** @deprecated Use createPodStore. */
|
|
50
|
-
export declare const createBundleStore: typeof createPodStore;
|
|
51
|
-
/** @deprecated Use WrappedPodNoydbStore. */
|
|
52
|
-
export type WrappedBundleNoydbStore = WrappedPodNoydbStore;
|
|
53
|
-
/** @deprecated Use WrapPodStoreOptions. */
|
|
54
|
-
export type WrapBundleStoreOptions = WrapPodStoreOptions;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FROZEN_SNAPSHOTS_COLLECTION,
|
|
3
|
+
freezeAndDeleteClosure,
|
|
4
|
+
freezeSnapshotOnly,
|
|
5
|
+
randomId,
|
|
6
|
+
withdrawAccessibleData
|
|
7
|
+
} from "./chunk-ZFO26ZZR.js";
|
|
8
|
+
import "./chunk-C6RYZ4ZD.js";
|
|
9
|
+
import "./chunk-GAELDPIH.js";
|
|
10
|
+
import "./chunk-4TLFWYZG.js";
|
|
11
|
+
import "./chunk-EZYLQKHP.js";
|
|
12
|
+
import "./chunk-LVLXWIBF.js";
|
|
13
|
+
import "./chunk-YRMA7CJH.js";
|
|
14
|
+
import "./chunk-CUEWN4FX.js";
|
|
15
|
+
import "./chunk-3IJK5FRG.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-WJD5VF2N.js";
|
|
18
|
+
import "./chunk-7GWC6RI5.js";
|
|
19
|
+
import "./chunk-CT35TQV7.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-XMWJWDZP.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/hub",
|
|
3
|
-
"version": "0.6.0-pre.
|
|
3
|
+
"version": "0.6.0-pre.13",
|
|
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>",
|
|
@@ -210,14 +210,14 @@
|
|
|
210
210
|
"node": ">=22.0.0"
|
|
211
211
|
},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"@noy-db/attestation": "0.6.0-pre.
|
|
213
|
+
"@noy-db/attestation": "0.6.0-pre.13"
|
|
214
214
|
},
|
|
215
215
|
"devDependencies": {
|
|
216
216
|
"@types/node": "^22.0.0",
|
|
217
217
|
"esbuild": "^0.25.0",
|
|
218
218
|
"zod": "^4.0.0",
|
|
219
219
|
"zod-to-json-schema": "^3.25.2",
|
|
220
|
-
"@noy-db/on-shamir": "0.6.0-pre.
|
|
220
|
+
"@noy-db/on-shamir": "0.6.0-pre.13"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {
|
|
223
223
|
"zod-to-json-schema": "^3.25.0"
|
package/dist/api-XDMGLURJ.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UserApi,
|
|
3
|
-
createUserApi
|
|
4
|
-
} from "./chunk-PK3URBVU.js";
|
|
5
|
-
import "./chunk-G4VQSGXL.js";
|
|
6
|
-
import "./chunk-4X5Z5SRV.js";
|
|
7
|
-
import "./chunk-2APC6HS6.js";
|
|
8
|
-
import "./chunk-HXGUIPQB.js";
|
|
9
|
-
import "./chunk-AR2JDFAE.js";
|
|
10
|
-
import "./chunk-747LRSOO.js";
|
|
11
|
-
import "./chunk-LP7BEXCT.js";
|
|
12
|
-
import "./chunk-VCETL77O.js";
|
|
13
|
-
import "./chunk-NSRITINN.js";
|
|
14
|
-
import "./chunk-HNGSV2YC.js";
|
|
15
|
-
import "./chunk-PZ5AY32C.js";
|
|
16
|
-
export {
|
|
17
|
-
UserApi,
|
|
18
|
-
createUserApi
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=api-XDMGLURJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-pod/backup.ts"],"sourcesContent":["/**\n * Vault backup / restore / integrity.\n *\n * Holds `dump()` (verifiable encrypted JSON backup, including the blob\n * collections so blob \"covers\" travel in the bundle), `load()` (restore +\n * post-load integrity gate), `verifyBackupIntegrity()` (chain + data-envelope\n * cross-check), and `exportJSON()` (plaintext per-collection export, built on\n * the vault's `exportStream`). Behaviour is byte-identical to the inline\n * `Vault` methods these functions replaced — every dependency the moving code\n * touched on `this.*` arrives via {@link BackupContext}. `Vault` keeps the\n * public methods as thin delegators.\n *\n * Internal — reached through `vault.dump()` / `vault.load()` / etc.\n */\nimport { NOYDB_BACKUP_VERSION } from '../kernel/types.js'\nimport { BackupLedgerError, BackupCorruptedError } from '../kernel/errors.js'\nimport { LEDGER_COLLECTION, LEDGER_DELTAS_COLLECTION } from '../with-commit/history/ledger/constants.js'\nimport { SCHEMAS_COLLECTION } from '../with-shape/persisted-schemas/storage.js'\nimport { SEQUENCE_COLLECTION } from '../with-commit/sequence/index.js'\nimport { MANIFEST_COLLECTION } from '../with-shape/manifest/reserved-collections.js'\n// #1025 — imported from the dependency-light `window.ts`, not `periods.ts`: that\n// module exists precisely so a consumer can name the period collections without\n// dragging the ledger hash-chain machinery (`sha256Hex`/`canonicalJson`) into a\n// bundle that opted out of the periods service. Same reason the sync engine's\n// period-scoped pull imports it.\nimport {\n PERIODS_COLLECTION,\n PERIOD_FREEZES_COLLECTION,\n PERIOD_ARCHIVES_COLLECTION,\n PERIOD_TARGET_PURGES_COLLECTION,\n PERIOD_REOPENS_COLLECTION,\n} from '../with-audit/periods/window.js'\nimport type {\n NoydbStore,\n EncryptedEnvelope,\n VaultBackup,\n VaultSnapshot,\n ExportStreamOptions,\n ExportChunk,\n} from '../kernel/types.js'\nimport type { LedgerStore } from '../with-commit/history/ledger/store.js'\n\n/** Everything the moving backup methods touched on the vault's `this.*`. */\nexport interface BackupContext {\n /** The ciphertext store. */\n readonly adapter: NoydbStore\n /** Vault namespace name. */\n readonly vault: string\n /** The invoking keyring's user id (read fresh per call). */\n userId(): string\n /** The vault's ledger store, or null when history is off. */\n getLedgerOrNull(): LedgerStore | null\n /** Recompute an envelope's `payloadHash` (bound `historyStrategy.envelopePayloadHash`). */\n envelopePayloadHash(envelope: EncryptedEnvelope): Promise<string>\n /**\n * Refresh the in-memory keyring from the freshly-loaded keyring file and\n * rebuild the DEK resolver. No-op when the vault has no `reloadKeyring`\n * callback (plaintext vaults / test constructions).\n */\n reloadKeyringAndRebuildDEK(): Promise<void>\n /** Clear the vault's collection cache (post-load). */\n clearCollectionCache(): void\n /** Reset the ledger store so the next `ledger()` rebuilds its head cache. */\n resetLedgerStore(): void\n /** The vault's decrypt+ACL export stream (used by `exportJSON`). */\n exportStream(opts: ExportStreamOptions): AsyncIterableIterator<ExportChunk>\n}\n\n/** Result of {@link verifyBackupIntegrity}. */\nexport type VerifyBackupResult =\n | { readonly ok: true; readonly head: string; readonly length: number }\n | {\n readonly ok: false\n readonly kind: 'chain'\n readonly divergedAt: number\n readonly message: string\n }\n | {\n readonly ok: false\n readonly kind: 'data'\n readonly collection: string\n readonly id: string\n readonly message: string\n }\n\n/**\n * Dump vault as a verifiable encrypted JSON backup string.\n *\n * backups embed the current ledger head and the full `_ledger` +\n * `_ledger_deltas` internal collections so the receiver can run\n * `verifyBackupIntegrity()` after `load()` and detect any tampering between\n * dump and restore. Backups produced without a ledger skip the integrity check\n * with a warning — both modes round-trip cleanly.\n */\nexport async function dumpVault(ctx: BackupContext): Promise<string> {\n const snapshot = await ctx.adapter.loadAll(ctx.vault)\n\n // Load keyrings (separate path because loadAll filters them out\n // along with all other underscore-prefixed internal collections).\n const keyringIds = await ctx.adapter.list(ctx.vault, '_keyring')\n const keyrings: Record<string, unknown> = {}\n for (const keyringId of keyringIds) {\n const envelope = await ctx.adapter.get(ctx.vault, '_keyring', keyringId)\n if (envelope) {\n keyrings[keyringId] = JSON.parse(envelope._data)\n }\n }\n\n // Load the ledger entries + deltas so the receiver can replay\n // the chain after restore. Without this, `load()` would have an\n // empty ledger and `verifyBackupIntegrity()` would have nothing\n // to compare against.\n //\n // Also enumerate the blob collections so blob content (\"covers\")\n // travels in the bundle (the blob DEK already travels in `_keyring`).\n // Literals are inlined (not imported from blobs/blob-set.ts) to keep\n // the blob runtime out of this kernel hot path — they mirror\n // BLOB_INDEX/CHUNKS/EVICTION_AUDIT_COLLECTION and SLOTS/VERSIONS_PREFIX.\n // The collect-loop skips empty ids, so this no-ops without blobs.\n const internalSnapshot: VaultSnapshot = {}\n const internalNames = [\n LEDGER_COLLECTION, LEDGER_DELTAS_COLLECTION, SCHEMAS_COLLECTION, SEQUENCE_COLLECTION,\n MANIFEST_COLLECTION, // #941: the pod's manifest-set record(s) travel in the bundle too\n // #1025: the accounting-period close state + its companions. The bundle is\n // the backup/restore path, so without these a restore discarded the\n // hash-chained evidence that a month was ever closed — the artifact\n // `closePeriod` exists to produce — and dropped the write gate with it, so\n // the restored vault silently accepted back-dated writes into a sealed\n // month. The companions matter as much as the close: a bounded reopen\n // window (`reopenPeriod({ until })`) is state a restore must not lose.\n PERIODS_COLLECTION,\n PERIOD_REOPENS_COLLECTION,\n PERIOD_FREEZES_COLLECTION,\n PERIOD_ARCHIVES_COLLECTION,\n PERIOD_TARGET_PURGES_COLLECTION,\n '_history', // full-snapshot version history — so history()/getVersion()/diff() survive the bundle\n '_blob_index', '_blob_chunks', '_blob_eviction_audit',\n // #753 spec §7 Q3: `_blob_intent` markers travel too — restoring mid-op\n // state (a blob row without its marker) would reproduce the ambiguity\n // the journal exists to prevent. Note: `_mv_stale` does NOT travel\n // today (a pre-existing, separate gap) — observed here, tracked on\n // #761, not fixed in this pass.\n '_blob_intent',\n // #769: `_blob_slots_<c>` envelopes travel verbatim (raw ciphertext,\n // same DEK, same vault) — including any `SlotRecord.pendingRelease`\n // resume breadcrumb they carry. This is INTENTIONALLY the opposite of\n // `extract-partition`'s `reKeyBlobs`, which STRIPS `pendingRelease`:\n // a full-vault backup restores into the SAME vault it was taken from,\n // so a breadcrumb taken mid-rehome (together with its `_blob_intent`\n // marker, carried above) is resumable on restore — carry-and-resume is\n // correct here. A partition extraction crosses vaults: the breadcrumb's\n // old eTag may not exist in the destination, so it must be stripped\n // there instead. Asymmetry: backup = same-vault-resumable = carry;\n // partition = cross-vault = strip-breadcrumb-carry-marker.\n ...Object.keys(snapshot).flatMap((c) => [`_blob_slots_${c}`, `_blob_versions_${c}`]),\n ]\n for (const internalName of internalNames) {\n const ids = await ctx.adapter.list(ctx.vault, internalName)\n if (ids.length === 0) continue\n const records: Record<string, EncryptedEnvelope> = {}\n for (const id of ids) {\n const envelope = await ctx.adapter.get(ctx.vault, internalName, id)\n if (envelope) records[id] = envelope\n }\n internalSnapshot[internalName] = records\n }\n\n // Embed the ledger head if there's a chain. An empty ledger\n // (fresh vault) leaves `ledgerHead` undefined, which\n // load() treats the same as a legacy backup (no integrity\n // check, console warning). If history is not opted in,\n // `getLedgerOrNull` returns null and we skip embedding entirely\n // — the backup is still valid, just without the integrity head.\n const ledgerForHead = ctx.getLedgerOrNull()\n const head = ledgerForHead ? await ledgerForHead.head() : null\n const backup: VaultBackup = {\n _noydb_backup: NOYDB_BACKUP_VERSION,\n _compartment: ctx.vault,\n _exported_at: new Date().toISOString(),\n _exported_by: ctx.userId(),\n keyrings: keyrings as VaultBackup['keyrings'],\n collections: snapshot,\n ...(Object.keys(internalSnapshot).length > 0\n ? { _internal: internalSnapshot }\n : {}),\n ...(head\n ? {\n ledgerHead: {\n hash: head.hash,\n index: head.entry.index,\n ts: head.entry.ts,\n },\n }\n : {}),\n }\n\n return JSON.stringify(backup)\n}\n\n/**\n * Restore a vault from a verifiable backup. After loading, runs\n * `verifyBackupIntegrity()` to confirm the hash chain, the embedded head, and\n * every data envelope's payload hash. Legacy backups (no `ledgerHead`) load\n * with a console warning and skip the integrity check.\n */\nexport async function loadVault(ctx: BackupContext, backupJson: string): Promise<void> {\n const backup = JSON.parse(backupJson) as VaultBackup\n\n // 1. Restore data collections.\n await ctx.adapter.saveAll(ctx.vault, backup.collections)\n\n // 2. Restore keyrings.\n for (const [userId, keyringFile] of Object.entries(backup.keyrings)) {\n const envelope = {\n _noydb: 1 as const,\n _v: 1,\n _ts: new Date().toISOString(),\n _iv: '',\n _data: JSON.stringify(keyringFile),\n }\n await ctx.adapter.put(ctx.vault, '_keyring', userId, envelope)\n }\n\n // 3. Restore internal collections (`_ledger`, `_ledger_deltas`).\n // Required so verifyBackupIntegrity has the chain to walk.\n if (backup._internal) {\n for (const [internalName, records] of Object.entries(backup._internal)) {\n for (const [id, envelope] of Object.entries(records)) {\n await ctx.adapter.put(ctx.vault, internalName, id, envelope)\n }\n }\n }\n\n // 4. Refresh the in-memory keyring from the freshly-loaded\n // keyring file. Without this, the Vault's getDEK\n // closure still holds the OLD session's DEKs, and every\n // decrypt of a loaded ledger entry / data envelope fails\n // with TamperedError because the DEK doesn't match the\n // ciphertext that was encrypted with the SOURCE user's DEK.\n // Skipped for plaintext vaults and for tests that\n // construct Vault without a reloadKeyring callback.\n await ctx.reloadKeyringAndRebuildDEK()\n\n // 5. Clear collection cache + reset the ledger store so the\n // next ledger() call rebuilds its head cache from the\n // freshly-loaded entries.\n ctx.clearCollectionCache()\n ctx.resetLedgerStore()\n\n // 5. Run the verification gate. Legacy backups (no ledgerHead)\n // skip this with a one-line warning so existing consumers can\n // still read them while migrating.\n if (!backup.ledgerHead) {\n console.warn(\n `[noy-db] Loaded a legacy backup with no ledgerHead — ` +\n `verifiable-backup integrity check skipped. ` +\n `Re-export with a ledger-aware build to get tamper detection.`,\n )\n return\n }\n\n const result = await verifyBackupIntegrity(ctx)\n if (!result.ok) {\n // Surface the most specific error class we can. The result\n // shape carries enough info for callers to inspect.\n if (result.kind === 'data') {\n throw new BackupCorruptedError(\n result.collection,\n result.id,\n result.message,\n )\n }\n throw new BackupLedgerError(result.message, result.divergedAt)\n }\n\n // 6. Cross-check: the freshly-verified head must match the\n // value embedded at dump time. A mismatch means someone\n // truncated or extended the chain after dump.\n if (result.head !== backup.ledgerHead.hash) {\n throw new BackupLedgerError(\n `Backup ledger head mismatch: embedded \"${backup.ledgerHead.hash}\" ` +\n `but reconstructed \"${result.head}\".`,\n )\n }\n}\n\n/**\n * End-to-end backup integrity check: `ledger.verify()` (hash chain) plus a data\n * envelope cross-check (every current record's `_data` hash must match the\n * latest `put` entry's `payloadHash`). Returns a discriminated union so callers\n * can distinguish chain vs data failures.\n */\nexport async function verifyBackupIntegrity(ctx: BackupContext): Promise<VerifyBackupResult> {\n // Step 1: chain verification. Without the history strategy there\n // is no ledger; an unaudited backup verifies trivially as `ok`\n // because there's nothing to diverge from.\n const ledgerForVerify = ctx.getLedgerOrNull()\n if (!ledgerForVerify) {\n return { ok: true, head: '', length: 0 }\n }\n const chainResult = await ledgerForVerify.verify()\n if (!chainResult.ok) {\n return {\n ok: false,\n kind: 'chain',\n divergedAt: chainResult.divergedAt,\n message:\n `Ledger chain diverged at index ${chainResult.divergedAt}: ` +\n `expected prevHash \"${chainResult.expected}\" but found \"${chainResult.actual}\".`,\n }\n }\n\n // Step 2: data envelope cross-check. Walk every entry in the\n // ledger and, for the LATEST `put` per (collection, id), recompute\n // the data envelope's payloadHash and compare. Earlier puts of the\n // same id are skipped because the data collection only holds the\n // current version — historical envelopes live in the deltas\n // collection (which is itself protected by the chain).\n // Reuse the ledger we already resolved in step 1.\n const allEntries = await ledgerForVerify.loadAllEntries()\n\n // Find the latest non-delete entry per (collection, id). Walk\n // the entries in reverse so we hit the latest first; mark each\n // (collection, id) as seen and skip subsequent entries.\n const seen = new Set<string>()\n const latest = new Map<\n string,\n { collection: string; id: string; expectedHash: string }\n >()\n for (let i = allEntries.length - 1; i >= 0; i--) {\n const entry = allEntries[i]\n if (!entry) continue\n // Amendment entries are multi-record audit entries whose\n // `collection` and `id` are empty strings — building a `\"/\"`\n // key here would mark that synthetic slot as seen and falsely\n // trip the data check on a record that never existed. Skip\n // them BEFORE the key/seen bookkeeping so they neither\n // tombstone real entries nor enter the latest map.\n if (entry.op === 'amendment' || entry.op === 'lifecycle') continue\n const key = `${entry.collection}/${entry.id}`\n if (seen.has(key)) continue\n seen.add(key)\n // For deletes the data collection should NOT have the record,\n // so we skip — there's nothing to cross-check. Marking the key\n // as seen above ensures any earlier `put` of the same id is\n // also skipped (the record was subsequently deleted).\n if (entry.op === 'delete') continue\n latest.set(key, {\n collection: entry.collection,\n id: entry.id,\n expectedHash: entry.payloadHash,\n })\n }\n\n for (const { collection, id, expectedHash } of latest.values()) {\n const envelope = await ctx.adapter.get(ctx.vault, collection, id)\n if (!envelope) {\n return {\n ok: false,\n kind: 'data',\n collection,\n id,\n message:\n `Ledger expects data record \"${collection}/${id}\" to exist, ` +\n `but the adapter has no envelope for it.`,\n }\n }\n const actualHash = await ctx.envelopePayloadHash(envelope)\n if (actualHash !== expectedHash) {\n return {\n ok: false,\n kind: 'data',\n collection,\n id,\n message:\n `Data envelope \"${collection}/${id}\" has been tampered with: ` +\n `expected payloadHash \"${expectedHash}\", got \"${actualHash}\".`,\n }\n }\n }\n\n return {\n ok: true,\n head: chainResult.head,\n length: chainResult.length,\n }\n}\n\n/**\n * Plaintext per-collection export, built on the vault's `exportStream`. Forces\n * collection granularity (record-by-record output makes no sense in a single\n * string) and merges dictionary snapshots across collections.\n */\nexport async function exportVaultJSON(ctx: BackupContext, opts: ExportStreamOptions = {}): Promise<string> {\n // Force per-collection granularity regardless of caller setting:\n // record-by-record output doesn't make sense in a single string.\n const collections: Record<\n string,\n {\n schema: null\n refs: Record<string, { target: string; mode: 'strict' | 'warn' | 'cascade' }>\n records: unknown[]\n }\n > = {}\n let ledgerHead: ExportChunk['ledgerHead'] | undefined\n // Merged dictionary snapshot across all collections.\n // Only populated when `resolveLabels` is not set.\n const allDictionaries: Record<\n string, // collection name\n Record<string, Record<string, Record<string, string>>>\n > = {}\n\n for await (const chunk of ctx.exportStream({\n granularity: 'collection',\n withLedgerHead: opts.withLedgerHead === true,\n // Thread the export locale so records are read at the\n // `export` layer (i18nText collapsed + dictKey/staticDict labels resolved).\n ...(opts.resolveLabels !== undefined ? { resolveLabels: opts.resolveLabels } : {}),\n })) {\n collections[chunk.collection] = {\n schema: null, // Standard Schema validators are not JSON-serializable\n refs: chunk.refs,\n records: chunk.records,\n }\n if (chunk.ledgerHead) ledgerHead = chunk.ledgerHead\n // Collect dictionary snapshots unless resolveLabels is set\n if (!opts.resolveLabels && chunk.dictionaries) {\n allDictionaries[chunk.collection] = chunk.dictionaries\n }\n }\n\n const hasDictionaries = Object.keys(allDictionaries).length > 0\n return JSON.stringify({\n _noydb_export: 1,\n _compartment: ctx.vault,\n _exported_at: new Date().toISOString(),\n _exported_by: ctx.userId(),\n collections,\n ...(hasDictionaries ? { _dictionaries: allDictionaries } : {}),\n ...(ledgerHead ? { ledgerH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