@noy-db/hub 0.6.0-pre.13 → 0.6.0-pre.14
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-6IBOZN6F.js +20 -0
- package/dist/attestation/index.js +19 -19
- package/dist/{backup-JNCS4OMI.js → backup-FNAYQMLF.js} +12 -12
- package/dist/blobs/index.js +13 -13
- package/dist/broker/index.js +12 -12
- package/dist/cargo/index.js +30 -30
- package/dist/{chunk-M3VRXAVD.js → chunk-42IDLU5V.js} +2 -2
- package/dist/{chunk-FWZ7WYAH.js → chunk-4444HN72.js} +4 -4
- package/dist/{chunk-WX5ABQSL.js → chunk-466KGOQB.js} +2 -2
- package/dist/{chunk-ZJADGNYF.js → chunk-4AOERLTV.js} +1 -1
- package/dist/chunk-4AOERLTV.js.map +1 -0
- package/dist/{chunk-GAELDPIH.js → chunk-4LNFXGNW.js} +63 -63
- package/dist/chunk-4LNFXGNW.js.map +1 -0
- package/dist/{chunk-YZC4DWJQ.js → chunk-4NI5PR5S.js} +2 -2
- package/dist/{chunk-ZFO26ZZR.js → chunk-4YUIVHII.js} +5 -5
- package/dist/{chunk-2KX6MT3D.js → chunk-5NKSNW25.js} +2 -2
- package/dist/{chunk-ALBA4CET.js → chunk-5SK5AFYH.js} +2 -2
- package/dist/{chunk-DKJXAZWF.js → chunk-6U7M7AX6.js} +2 -2
- package/dist/{chunk-7GWC6RI5.js → chunk-6ZFTVY3O.js} +1 -1
- package/dist/chunk-6ZFTVY3O.js.map +1 -0
- package/dist/{chunk-MLMDO4OQ.js → chunk-7EIPPOEL.js} +2 -2
- package/dist/{chunk-KOM2GMTW.js → chunk-7J6YERYT.js} +10 -10
- package/dist/{chunk-R6V4M2JO.js → chunk-7VIIEXQ2.js} +12 -12
- package/dist/chunk-7VIIEXQ2.js.map +1 -0
- package/dist/{chunk-YRTS5MWY.js → chunk-A4JJUWSV.js} +3 -3
- package/dist/{chunk-VFBJMTLJ.js → chunk-AFSMT3WI.js} +3 -3
- package/dist/{chunk-C5N3ZWGJ.js → chunk-AMKCY454.js} +2 -2
- package/dist/{chunk-SX4HK6FU.js → chunk-BVYRPAB2.js} +7 -7
- package/dist/{chunk-IHKRTVJQ.js → chunk-C66T4W5P.js} +3 -3
- package/dist/{chunk-M3XBZPLU.js → chunk-C6MI5OCF.js} +6 -6
- package/dist/{chunk-2KHT6EP3.js → chunk-CAJ7QAPC.js} +3 -3
- package/dist/{chunk-DMRDPZQ7.js → chunk-CK6Z5DJQ.js} +4 -4
- package/dist/{chunk-EPUDMBVL.js → chunk-CK7IRIRY.js} +5 -5
- package/dist/{chunk-C6RYZ4ZD.js → chunk-CNA3QRLM.js} +2 -2
- package/dist/chunk-CNA3QRLM.js.map +1 -0
- package/dist/{chunk-KYIXANXU.js → chunk-CWX6YIX5.js} +7 -7
- package/dist/{chunk-TJGB5I4J.js → chunk-D763JZRO.js} +3 -3
- package/dist/{chunk-AS53PYO6.js → chunk-DZWRTWN2.js} +81 -81
- package/dist/{chunk-AS53PYO6.js.map → chunk-DZWRTWN2.js.map} +1 -1
- package/dist/{chunk-OERLXUF5.js → chunk-ESABIXMQ.js} +4 -4
- package/dist/{chunk-H6UFT22R.js → chunk-FMZV43QY.js} +4 -4
- package/dist/{chunk-YRMA7CJH.js → chunk-FSZPQCDR.js} +3 -3
- package/dist/{chunk-65NL6YZM.js → chunk-GBTLOHJM.js} +5 -5
- package/dist/{chunk-4TLFWYZG.js → chunk-GE2AGI67.js} +3 -3
- package/dist/{chunk-Y6C67PJX.js → chunk-GJX6DOGD.js} +5 -5
- package/dist/{chunk-PV76W4KB.js → chunk-GLS7OSZT.js} +7 -7
- package/dist/{chunk-IQVVUZ6Z.js → chunk-H545OIWE.js} +2 -2
- package/dist/{chunk-CM7MGRP3.js → chunk-HJAFOPTN.js} +6 -6
- package/dist/{chunk-HRQF23XS.js → chunk-HNOBRU24.js} +2 -2
- package/dist/{chunk-GNMGX4FY.js → chunk-HVPQ5QIZ.js} +8 -8
- package/dist/{chunk-CUEWN4FX.js → chunk-HVR74IBG.js} +2 -2
- package/dist/{chunk-CT35TQV7.js → chunk-I64WQSN3.js} +7 -7
- package/dist/chunk-I64WQSN3.js.map +1 -0
- package/dist/{chunk-LVLXWIBF.js → chunk-IMYGJ5HU.js} +2 -2
- package/dist/{chunk-OFGLLNQW.js → chunk-IYYGLI2K.js} +6 -6
- package/dist/{chunk-LOLK4EAT.js → chunk-JBMSNYOS.js} +5 -5
- package/dist/{chunk-JTZRLD47.js → chunk-JU3JKOY5.js} +3 -3
- package/dist/{chunk-A7BP42KY.js → chunk-K2MR7ROB.js} +2 -2
- package/dist/{chunk-M44ZBLL3.js → chunk-KCLNKE4W.js} +6 -6
- package/dist/{chunk-OGQSJJWF.js → chunk-KPD6HNQD.js} +12 -12
- package/dist/chunk-KPD6HNQD.js.map +1 -0
- package/dist/{chunk-A5AB7EZU.js → chunk-KTCQKXHW.js} +3 -3
- package/dist/{chunk-GGM3JCEG.js → chunk-LBQIKMBH.js} +2 -2
- package/dist/{chunk-S7UTUFPU.js → chunk-LWOSNMHE.js} +8 -8
- package/dist/{chunk-4TRAQICY.js → chunk-MVG67SMN.js} +2 -2
- package/dist/{chunk-45UIDGPY.js → chunk-N6OJLR2M.js} +3 -3
- package/dist/{chunk-OOOU3F5Y.js → chunk-P2UFDX2F.js} +5 -5
- package/dist/{chunk-LQEHLFFF.js → chunk-PCXAUC65.js} +2 -2
- package/dist/{chunk-V3WLQXDF.js → chunk-PJ5TGJ7U.js} +2 -2
- package/dist/{chunk-Z7PW63ZC.js → chunk-QEYXKICE.js} +2 -2
- package/dist/{chunk-LQFNJRMI.js → chunk-QI2KXQOM.js} +2 -2
- package/dist/{chunk-MUE2CQX2.js → chunk-QJYTGH5V.js} +7 -7
- package/dist/{chunk-Y2FDCDLY.js → chunk-QLMUW7OC.js} +2 -2
- package/dist/{chunk-MRDQ6HJS.js → chunk-QQP5KJMS.js} +4 -4
- package/dist/{chunk-WJD5VF2N.js → chunk-QTDAPDDV.js} +2 -2
- package/dist/{chunk-Q4AU3NJE.js → chunk-QWNYUTI2.js} +2 -2
- package/dist/{chunk-H3BDH7DA.js → chunk-R7E7X4CQ.js} +3 -3
- package/dist/{chunk-3IJK5FRG.js → chunk-RBTZLXZJ.js} +2 -2
- package/dist/{chunk-6FXQZ3T7.js → chunk-RDPZMUCX.js} +2 -2
- package/dist/{chunk-4WXISHDI.js → chunk-RJTGXZT6.js} +2 -2
- package/dist/{chunk-4R4N5PRM.js → chunk-ROFEKKMI.js} +4 -4
- package/dist/{chunk-7DK6CYXO.js → chunk-RVTOCAHQ.js} +2 -2
- package/dist/{chunk-J6EBSGIR.js → chunk-RWPNRCK2.js} +2 -2
- package/dist/{chunk-YVGJLRXN.js → chunk-S6CP5FWF.js} +2 -2
- package/dist/{chunk-LZHDIO64.js → chunk-S77LTWCZ.js} +7 -7
- package/dist/{chunk-TEOL6VAV.js → chunk-SGEI3IJK.js} +2 -2
- package/dist/{chunk-EWTAUGAK.js → chunk-SZZEDEIU.js} +3 -3
- package/dist/{chunk-ZG7MXW5J.js → chunk-T7AEAFEE.js} +4 -4
- package/dist/{chunk-KMLMEIWV.js → chunk-THYGVKZB.js} +7 -7
- package/dist/chunk-THYGVKZB.js.map +1 -0
- package/dist/{chunk-TAFRRVFR.js → chunk-TQ7IRULX.js} +2 -2
- package/dist/{chunk-MVWO6KXU.js → chunk-TQLYMYOK.js} +2 -2
- package/dist/{chunk-MSCXCF4T.js → chunk-UTQLKPBS.js} +6 -6
- package/dist/{chunk-QLFLX5VA.js → chunk-V2BEYLNR.js} +6 -6
- package/dist/{chunk-P7A2FX5Y.js → chunk-V4M4BZNW.js} +2 -2
- package/dist/{chunk-PLJ622XY.js → chunk-VTTRWLOR.js} +2 -2
- package/dist/{chunk-QNGRTWGM.js → chunk-VVMSDWRG.js} +5 -5
- package/dist/{chunk-PRN65IDE.js → chunk-WLZKVY33.js} +6 -6
- package/dist/{chunk-3EFQV2XQ.js → chunk-XHX3NTRP.js} +4 -4
- package/dist/{chunk-CFM6GBNF.js → chunk-Y7MJSOZ7.js} +5 -5
- package/dist/{chunk-CFM6GBNF.js.map → chunk-Y7MJSOZ7.js.map} +1 -1
- package/dist/{chunk-ALDFGMO7.js → chunk-YDJXGYYA.js} +2 -2
- package/dist/{chunk-VDQZKDED.js → chunk-YGJZLOSR.js} +2 -2
- package/dist/{chunk-IONRKUH4.js → chunk-YH65A6WM.js} +2 -2
- package/dist/{chunk-YKDAFWWS.js → chunk-YKEJ5P3H.js} +5 -5
- package/dist/{chunk-J5LO2H42.js → chunk-YODIXNV4.js} +4 -4
- package/dist/{chunk-37M5QBAS.js → chunk-YVOW35HH.js} +2 -2
- package/dist/{chunk-NW3PSKAN.js → chunk-YZ7BRD26.js} +2 -2
- package/dist/{chunk-2BBXXSAD.js → chunk-Z3U2YVNM.js} +4 -4
- package/dist/{chunk-SX2ZKKZS.js → chunk-ZHDMT2MJ.js} +6 -6
- package/dist/{chunk-EZYLQKHP.js → chunk-ZWPUYBNK.js} +8 -8
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-IYWA7L6U.js → classified-marker-3STDEUFT.js} +3 -3
- package/dist/collection-facade-SGTS3TRS.js +45 -0
- package/dist/{computed-B3BJQSU5.js → computed-5E2OM6EN.js} +3 -3
- package/dist/consent/index.js +10 -10
- package/dist/cover/index.js +3 -3
- package/dist/custody/index.js +11 -11
- package/dist/{dead-filter-QV7ORQS3.js → dead-filter-ZNWVGV5U.js} +2 -2
- package/dist/debug/index.js +1 -1
- package/dist/{delegation-UPE5PUKB.js → delegation-LZWFOST7.js} +11 -11
- package/dist/derivations/index.js +12 -12
- package/dist/derive-BWXA2L7D.js +22 -0
- package/dist/directory/index.js +10 -10
- package/dist/{dispatch-BW2W2LXV.js → dispatch-S34AUC43.js} +18 -18
- package/dist/{dispatch-OBZS537P.js → dispatch-TIYW3UDN.js} +5 -5
- package/dist/{enclave-LXFVDJLO.js → enclave-Y6GMYQMS.js} +9 -9
- package/dist/executor-JDMH2IGK.js +29 -0
- package/dist/executor-PCZN2LTY.js +9 -0
- package/dist/executor-WFTHIDT7.js +9 -0
- package/dist/export-accessible-U6GXZZMQ.js +23 -0
- package/dist/extract-partition-IDI6NDUR.js +38 -0
- package/dist/{fanout-sidecar-BD4ZSPER.js → fanout-sidecar-BVFOEJTP.js} +9 -9
- package/dist/find-VBNMB42N.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 +7 -7
- package/dist/index.js +103 -103
- package/dist/indexing/index.js +2 -2
- package/dist/introspection/index.js +11 -11
- package/dist/issue-TEGTAN7N.js +19 -0
- package/dist/kernel/errors.d.ts +6 -6
- package/dist/kernel/types.d.ts +1 -1
- package/dist/kernel/vault.d.ts +4 -4
- package/dist/{ledger-6EMFGJRU.js → ledger-NFLBQASD.js} +11 -11
- package/dist/liberate-SG2PPGAJ.js +24 -0
- package/dist/{link-set-GUKFJQGW.js → link-set-IPS57KDM.js} +11 -11
- package/dist/{managed-secret-T6X4VHB2.js → managed-secret-GFYGPLNI.js} +3 -3
- package/dist/materialized-views/index.js +20 -20
- package/dist/money/index.js +4 -4
- package/dist/noydb-TN2VIJJO.js +83 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.js +71 -71
- package/dist/{bundle-handle-RJZXOFXE.js → pod-handle-I4ZME246.js} +6 -6
- package/dist/pod-handle-I4ZME246.js.map +1 -0
- package/dist/policy/index.js +4 -4
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-XKYJDDZL.js → post-register-JUSV3X4E.js} +6 -6
- package/dist/query/index.js +3 -3
- package/dist/reduce/index.js +4 -4
- package/dist/register-UTMPUAQW.js +32 -0
- package/dist/registry-B2S4UNUI.js +19 -0
- package/dist/registry-E4FM32KD.js +9 -0
- package/dist/registry-HACMULJJ.js +9 -0
- package/dist/registry-NDLBGQLJ.js +18 -0
- package/dist/request-withdrawal-Q5G43PR7.js +31 -0
- package/dist/{reveal-IN2ZBB5U.js → reveal-YJU7GUYJ.js} +6 -6
- package/dist/revoke-NXOUPYS3.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-D623RNG3.js → seed-XXLR4KXU.js} +11 -11
- package/dist/sequence/index.js +9 -9
- package/dist/session/index.js +10 -10
- package/dist/shadow/index.js +2 -2
- package/dist/share-link/index.js +1 -1
- package/dist/signer-FCGAUB6E.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-O3CZVYMO.js → stale-OT5NMBXU.js} +10 -10
- package/dist/storage-EWWIFB43.js +23 -0
- package/dist/{store-coordination-provider-RKBDHHN4.js → store-coordination-provider-PPLVM2I2.js} +3 -3
- package/dist/sync/index.js +10 -10
- package/dist/team/index.js +14 -14
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/transactions/index.js +4 -4
- package/dist/{ulid-PTAIMDG4.js → ulid-VQW6ERQN.js} +2 -2
- package/dist/util/index.js +1 -1
- package/dist/{verify-GB7SBYC3.js → verify-SHJXGZGM.js} +5 -5
- package/dist/walk-4NIT2ZBH.js +21 -0
- package/dist/with-cargo/adopt-partition.d.ts +1 -1
- package/dist/with-cargo/extract-partition.d.ts +1 -1
- package/dist/with-cargo/index.d.ts +1 -1
- package/dist/with-party/team/index.d.ts +1 -1
- package/dist/with-party/team/keyring.d.ts +2 -2
- package/dist/with-pod/format.d.ts +10 -10
- package/dist/with-pod/index.d.ts +7 -7
- package/dist/with-pod/open.d.ts +2 -2
- package/dist/with-pod/{bundle-handle.d.ts → pod-handle.d.ts} +2 -2
- package/dist/with-pod/{bundle.d.ts → pod.d.ts} +8 -8
- package/dist/with-pod/ulid.d.ts +1 -1
- package/dist/withdraw-accessible-LJG66PZQ.js +28 -0
- package/package.json +3 -3
- package/dist/api-FYF5WE2E.js +0 -20
- package/dist/bundle-handle-RJZXOFXE.js.map +0 -1
- package/dist/chunk-7GWC6RI5.js.map +0 -1
- package/dist/chunk-C6RYZ4ZD.js.map +0 -1
- package/dist/chunk-CT35TQV7.js.map +0 -1
- package/dist/chunk-GAELDPIH.js.map +0 -1
- package/dist/chunk-KMLMEIWV.js.map +0 -1
- package/dist/chunk-OGQSJJWF.js.map +0 -1
- package/dist/chunk-R6V4M2JO.js.map +0 -1
- package/dist/chunk-ZJADGNYF.js.map +0 -1
- package/dist/collection-facade-FLXXGAPR.js +0 -45
- package/dist/derive-R7ALNQRH.js +0 -22
- package/dist/executor-4WZG7D46.js +0 -9
- package/dist/executor-5RWPUTGR.js +0 -29
- package/dist/executor-VOD4C6ZA.js +0 -9
- package/dist/export-accessible-TCVU6B72.js +0 -23
- package/dist/extract-partition-UNUQF5MD.js +0 -38
- package/dist/find-QJPVK6CY.js +0 -11
- package/dist/issue-QYCCTU4S.js +0 -19
- package/dist/liberate-ZJDLMKOW.js +0 -24
- package/dist/noydb-IP2QPER4.js +0 -83
- package/dist/register-GFYFTV74.js +0 -32
- package/dist/registry-BY7Z54RJ.js +0 -9
- package/dist/registry-D6NSZUVQ.js +0 -9
- package/dist/registry-KQPWMFIP.js +0 -19
- package/dist/registry-P7RU4TPR.js +0 -18
- package/dist/request-withdrawal-6RA6PGWD.js +0 -31
- package/dist/revoke-ETYVUNHE.js +0 -24
- package/dist/signer-FLW4HHWM.js +0 -25
- package/dist/storage-7GVHLKVJ.js +0 -23
- package/dist/walk-77FSILOU.js +0 -21
- package/dist/withdraw-accessible-XMWJWDZP.js +0 -28
- /package/dist/{api-FYF5WE2E.js.map → api-6IBOZN6F.js.map} +0 -0
- /package/dist/{backup-JNCS4OMI.js.map → backup-FNAYQMLF.js.map} +0 -0
- /package/dist/{chunk-M3VRXAVD.js.map → chunk-42IDLU5V.js.map} +0 -0
- /package/dist/{chunk-FWZ7WYAH.js.map → chunk-4444HN72.js.map} +0 -0
- /package/dist/{chunk-WX5ABQSL.js.map → chunk-466KGOQB.js.map} +0 -0
- /package/dist/{chunk-YZC4DWJQ.js.map → chunk-4NI5PR5S.js.map} +0 -0
- /package/dist/{chunk-ZFO26ZZR.js.map → chunk-4YUIVHII.js.map} +0 -0
- /package/dist/{chunk-2KX6MT3D.js.map → chunk-5NKSNW25.js.map} +0 -0
- /package/dist/{chunk-ALBA4CET.js.map → chunk-5SK5AFYH.js.map} +0 -0
- /package/dist/{chunk-DKJXAZWF.js.map → chunk-6U7M7AX6.js.map} +0 -0
- /package/dist/{chunk-MLMDO4OQ.js.map → chunk-7EIPPOEL.js.map} +0 -0
- /package/dist/{chunk-KOM2GMTW.js.map → chunk-7J6YERYT.js.map} +0 -0
- /package/dist/{chunk-YRTS5MWY.js.map → chunk-A4JJUWSV.js.map} +0 -0
- /package/dist/{chunk-VFBJMTLJ.js.map → chunk-AFSMT3WI.js.map} +0 -0
- /package/dist/{chunk-C5N3ZWGJ.js.map → chunk-AMKCY454.js.map} +0 -0
- /package/dist/{chunk-SX4HK6FU.js.map → chunk-BVYRPAB2.js.map} +0 -0
- /package/dist/{chunk-IHKRTVJQ.js.map → chunk-C66T4W5P.js.map} +0 -0
- /package/dist/{chunk-M3XBZPLU.js.map → chunk-C6MI5OCF.js.map} +0 -0
- /package/dist/{chunk-2KHT6EP3.js.map → chunk-CAJ7QAPC.js.map} +0 -0
- /package/dist/{chunk-DMRDPZQ7.js.map → chunk-CK6Z5DJQ.js.map} +0 -0
- /package/dist/{chunk-EPUDMBVL.js.map → chunk-CK7IRIRY.js.map} +0 -0
- /package/dist/{chunk-KYIXANXU.js.map → chunk-CWX6YIX5.js.map} +0 -0
- /package/dist/{chunk-TJGB5I4J.js.map → chunk-D763JZRO.js.map} +0 -0
- /package/dist/{chunk-OERLXUF5.js.map → chunk-ESABIXMQ.js.map} +0 -0
- /package/dist/{chunk-H6UFT22R.js.map → chunk-FMZV43QY.js.map} +0 -0
- /package/dist/{chunk-YRMA7CJH.js.map → chunk-FSZPQCDR.js.map} +0 -0
- /package/dist/{chunk-65NL6YZM.js.map → chunk-GBTLOHJM.js.map} +0 -0
- /package/dist/{chunk-4TLFWYZG.js.map → chunk-GE2AGI67.js.map} +0 -0
- /package/dist/{chunk-Y6C67PJX.js.map → chunk-GJX6DOGD.js.map} +0 -0
- /package/dist/{chunk-PV76W4KB.js.map → chunk-GLS7OSZT.js.map} +0 -0
- /package/dist/{chunk-IQVVUZ6Z.js.map → chunk-H545OIWE.js.map} +0 -0
- /package/dist/{chunk-CM7MGRP3.js.map → chunk-HJAFOPTN.js.map} +0 -0
- /package/dist/{chunk-HRQF23XS.js.map → chunk-HNOBRU24.js.map} +0 -0
- /package/dist/{chunk-GNMGX4FY.js.map → chunk-HVPQ5QIZ.js.map} +0 -0
- /package/dist/{chunk-CUEWN4FX.js.map → chunk-HVR74IBG.js.map} +0 -0
- /package/dist/{chunk-LVLXWIBF.js.map → chunk-IMYGJ5HU.js.map} +0 -0
- /package/dist/{chunk-OFGLLNQW.js.map → chunk-IYYGLI2K.js.map} +0 -0
- /package/dist/{chunk-LOLK4EAT.js.map → chunk-JBMSNYOS.js.map} +0 -0
- /package/dist/{chunk-JTZRLD47.js.map → chunk-JU3JKOY5.js.map} +0 -0
- /package/dist/{chunk-A7BP42KY.js.map → chunk-K2MR7ROB.js.map} +0 -0
- /package/dist/{chunk-M44ZBLL3.js.map → chunk-KCLNKE4W.js.map} +0 -0
- /package/dist/{chunk-A5AB7EZU.js.map → chunk-KTCQKXHW.js.map} +0 -0
- /package/dist/{chunk-GGM3JCEG.js.map → chunk-LBQIKMBH.js.map} +0 -0
- /package/dist/{chunk-S7UTUFPU.js.map → chunk-LWOSNMHE.js.map} +0 -0
- /package/dist/{chunk-4TRAQICY.js.map → chunk-MVG67SMN.js.map} +0 -0
- /package/dist/{chunk-45UIDGPY.js.map → chunk-N6OJLR2M.js.map} +0 -0
- /package/dist/{chunk-OOOU3F5Y.js.map → chunk-P2UFDX2F.js.map} +0 -0
- /package/dist/{chunk-LQEHLFFF.js.map → chunk-PCXAUC65.js.map} +0 -0
- /package/dist/{chunk-V3WLQXDF.js.map → chunk-PJ5TGJ7U.js.map} +0 -0
- /package/dist/{chunk-Z7PW63ZC.js.map → chunk-QEYXKICE.js.map} +0 -0
- /package/dist/{chunk-LQFNJRMI.js.map → chunk-QI2KXQOM.js.map} +0 -0
- /package/dist/{chunk-MUE2CQX2.js.map → chunk-QJYTGH5V.js.map} +0 -0
- /package/dist/{chunk-Y2FDCDLY.js.map → chunk-QLMUW7OC.js.map} +0 -0
- /package/dist/{chunk-MRDQ6HJS.js.map → chunk-QQP5KJMS.js.map} +0 -0
- /package/dist/{chunk-WJD5VF2N.js.map → chunk-QTDAPDDV.js.map} +0 -0
- /package/dist/{chunk-Q4AU3NJE.js.map → chunk-QWNYUTI2.js.map} +0 -0
- /package/dist/{chunk-H3BDH7DA.js.map → chunk-R7E7X4CQ.js.map} +0 -0
- /package/dist/{chunk-3IJK5FRG.js.map → chunk-RBTZLXZJ.js.map} +0 -0
- /package/dist/{chunk-6FXQZ3T7.js.map → chunk-RDPZMUCX.js.map} +0 -0
- /package/dist/{chunk-4WXISHDI.js.map → chunk-RJTGXZT6.js.map} +0 -0
- /package/dist/{chunk-4R4N5PRM.js.map → chunk-ROFEKKMI.js.map} +0 -0
- /package/dist/{chunk-7DK6CYXO.js.map → chunk-RVTOCAHQ.js.map} +0 -0
- /package/dist/{chunk-J6EBSGIR.js.map → chunk-RWPNRCK2.js.map} +0 -0
- /package/dist/{chunk-YVGJLRXN.js.map → chunk-S6CP5FWF.js.map} +0 -0
- /package/dist/{chunk-LZHDIO64.js.map → chunk-S77LTWCZ.js.map} +0 -0
- /package/dist/{chunk-TEOL6VAV.js.map → chunk-SGEI3IJK.js.map} +0 -0
- /package/dist/{chunk-EWTAUGAK.js.map → chunk-SZZEDEIU.js.map} +0 -0
- /package/dist/{chunk-ZG7MXW5J.js.map → chunk-T7AEAFEE.js.map} +0 -0
- /package/dist/{chunk-TAFRRVFR.js.map → chunk-TQ7IRULX.js.map} +0 -0
- /package/dist/{chunk-MVWO6KXU.js.map → chunk-TQLYMYOK.js.map} +0 -0
- /package/dist/{chunk-MSCXCF4T.js.map → chunk-UTQLKPBS.js.map} +0 -0
- /package/dist/{chunk-QLFLX5VA.js.map → chunk-V2BEYLNR.js.map} +0 -0
- /package/dist/{chunk-P7A2FX5Y.js.map → chunk-V4M4BZNW.js.map} +0 -0
- /package/dist/{chunk-PLJ622XY.js.map → chunk-VTTRWLOR.js.map} +0 -0
- /package/dist/{chunk-QNGRTWGM.js.map → chunk-VVMSDWRG.js.map} +0 -0
- /package/dist/{chunk-PRN65IDE.js.map → chunk-WLZKVY33.js.map} +0 -0
- /package/dist/{chunk-3EFQV2XQ.js.map → chunk-XHX3NTRP.js.map} +0 -0
- /package/dist/{chunk-ALDFGMO7.js.map → chunk-YDJXGYYA.js.map} +0 -0
- /package/dist/{chunk-VDQZKDED.js.map → chunk-YGJZLOSR.js.map} +0 -0
- /package/dist/{chunk-IONRKUH4.js.map → chunk-YH65A6WM.js.map} +0 -0
- /package/dist/{chunk-YKDAFWWS.js.map → chunk-YKEJ5P3H.js.map} +0 -0
- /package/dist/{chunk-J5LO2H42.js.map → chunk-YODIXNV4.js.map} +0 -0
- /package/dist/{chunk-37M5QBAS.js.map → chunk-YVOW35HH.js.map} +0 -0
- /package/dist/{chunk-NW3PSKAN.js.map → chunk-YZ7BRD26.js.map} +0 -0
- /package/dist/{chunk-2BBXXSAD.js.map → chunk-Z3U2YVNM.js.map} +0 -0
- /package/dist/{chunk-SX2ZKKZS.js.map → chunk-ZHDMT2MJ.js.map} +0 -0
- /package/dist/{chunk-EZYLQKHP.js.map → chunk-ZWPUYBNK.js.map} +0 -0
- /package/dist/{classified-marker-IYWA7L6U.js.map → classified-marker-3STDEUFT.js.map} +0 -0
- /package/dist/{collection-facade-FLXXGAPR.js.map → collection-facade-SGTS3TRS.js.map} +0 -0
- /package/dist/{computed-B3BJQSU5.js.map → computed-5E2OM6EN.js.map} +0 -0
- /package/dist/{dead-filter-QV7ORQS3.js.map → dead-filter-ZNWVGV5U.js.map} +0 -0
- /package/dist/{delegation-UPE5PUKB.js.map → delegation-LZWFOST7.js.map} +0 -0
- /package/dist/{derive-R7ALNQRH.js.map → derive-BWXA2L7D.js.map} +0 -0
- /package/dist/{dispatch-BW2W2LXV.js.map → dispatch-S34AUC43.js.map} +0 -0
- /package/dist/{dispatch-OBZS537P.js.map → dispatch-TIYW3UDN.js.map} +0 -0
- /package/dist/{enclave-LXFVDJLO.js.map → enclave-Y6GMYQMS.js.map} +0 -0
- /package/dist/{executor-4WZG7D46.js.map → executor-JDMH2IGK.js.map} +0 -0
- /package/dist/{executor-5RWPUTGR.js.map → executor-PCZN2LTY.js.map} +0 -0
- /package/dist/{executor-VOD4C6ZA.js.map → executor-WFTHIDT7.js.map} +0 -0
- /package/dist/{export-accessible-TCVU6B72.js.map → export-accessible-U6GXZZMQ.js.map} +0 -0
- /package/dist/{extract-partition-UNUQF5MD.js.map → extract-partition-IDI6NDUR.js.map} +0 -0
- /package/dist/{fanout-sidecar-BD4ZSPER.js.map → fanout-sidecar-BVFOEJTP.js.map} +0 -0
- /package/dist/{find-QJPVK6CY.js.map → find-VBNMB42N.js.map} +0 -0
- /package/dist/{issue-QYCCTU4S.js.map → issue-TEGTAN7N.js.map} +0 -0
- /package/dist/{ledger-6EMFGJRU.js.map → ledger-NFLBQASD.js.map} +0 -0
- /package/dist/{liberate-ZJDLMKOW.js.map → liberate-SG2PPGAJ.js.map} +0 -0
- /package/dist/{link-set-GUKFJQGW.js.map → link-set-IPS57KDM.js.map} +0 -0
- /package/dist/{managed-secret-T6X4VHB2.js.map → managed-secret-GFYGPLNI.js.map} +0 -0
- /package/dist/{noydb-IP2QPER4.js.map → noydb-TN2VIJJO.js.map} +0 -0
- /package/dist/{post-register-XKYJDDZL.js.map → post-register-JUSV3X4E.js.map} +0 -0
- /package/dist/{register-GFYFTV74.js.map → register-UTMPUAQW.js.map} +0 -0
- /package/dist/{registry-BY7Z54RJ.js.map → registry-B2S4UNUI.js.map} +0 -0
- /package/dist/{registry-D6NSZUVQ.js.map → registry-E4FM32KD.js.map} +0 -0
- /package/dist/{registry-KQPWMFIP.js.map → registry-HACMULJJ.js.map} +0 -0
- /package/dist/{registry-P7RU4TPR.js.map → registry-NDLBGQLJ.js.map} +0 -0
- /package/dist/{request-withdrawal-6RA6PGWD.js.map → request-withdrawal-Q5G43PR7.js.map} +0 -0
- /package/dist/{reveal-IN2ZBB5U.js.map → reveal-YJU7GUYJ.js.map} +0 -0
- /package/dist/{revoke-ETYVUNHE.js.map → revoke-NXOUPYS3.js.map} +0 -0
- /package/dist/{seed-D623RNG3.js.map → seed-XXLR4KXU.js.map} +0 -0
- /package/dist/{signer-FLW4HHWM.js.map → signer-FCGAUB6E.js.map} +0 -0
- /package/dist/{stale-O3CZVYMO.js.map → stale-OT5NMBXU.js.map} +0 -0
- /package/dist/{storage-7GVHLKVJ.js.map → storage-EWWIFB43.js.map} +0 -0
- /package/dist/{store-coordination-provider-RKBDHHN4.js.map → store-coordination-provider-PPLVM2I2.js.map} +0 -0
- /package/dist/{ulid-PTAIMDG4.js.map → ulid-VQW6ERQN.js.map} +0 -0
- /package/dist/{verify-GB7SBYC3.js.map → verify-SHJXGZGM.js.map} +0 -0
- /package/dist/{walk-77FSILOU.js.map → walk-4NIT2ZBH.js.map} +0 -0
- /package/dist/{withdraw-accessible-XMWJWDZP.js.map → withdraw-accessible-LJG66PZQ.js.map} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pickLocale
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GE2AGI67.js";
|
|
4
4
|
import {
|
|
5
5
|
sha256Hex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QTDAPDDV.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
PodIntegrityError,
|
|
9
|
+
PodSealMismatchError,
|
|
10
10
|
ValidationError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I64WQSN3.js";
|
|
12
12
|
|
|
13
13
|
// src/with-pod/format.ts
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
14
|
+
var NOYDB_POD_MAGIC = new Uint8Array([78, 68, 66, 49]);
|
|
15
|
+
var NOYDB_POD_PREFIX_BYTES = 10;
|
|
16
|
+
var NOYDB_POD_FORMAT_VERSION = 1;
|
|
17
|
+
var NOYDB_POD_FORMAT_VERSION_SIGNED = 2;
|
|
18
18
|
var FLAG_COMPRESSED = 1;
|
|
19
19
|
var FLAG_HAS_INTEGRITY_HASH = 2;
|
|
20
20
|
var COMPRESSION_NONE = 0;
|
|
@@ -63,7 +63,7 @@ var REDIRECT_REASONS = /* @__PURE__ */ new Set([
|
|
|
63
63
|
"tombstone",
|
|
64
64
|
"repoint"
|
|
65
65
|
]);
|
|
66
|
-
function
|
|
66
|
+
function validatePodHeaderFields(parsed) {
|
|
67
67
|
if (parsed === null || typeof parsed !== "object") {
|
|
68
68
|
throw new Error(
|
|
69
69
|
`.noydb bundle header must be a JSON object, got ${parsed === null ? "null" : typeof parsed}`
|
|
@@ -77,9 +77,9 @@ function validateBundleHeader(parsed) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
const h = parsed;
|
|
80
|
-
if (typeof h["formatVersion"] !== "number" || h["formatVersion"] !==
|
|
80
|
+
if (typeof h["formatVersion"] !== "number" || h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION && h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION_SIGNED) {
|
|
81
81
|
throw new Error(
|
|
82
|
-
`.noydb bundle header.formatVersion must be ${
|
|
82
|
+
`.noydb bundle header.formatVersion must be ${NOYDB_POD_FORMAT_VERSION} or ${NOYDB_POD_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}. The reader does not support forward-compat versions; upgrade the reader to handle newer bundles.`
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
if (typeof h["handle"] !== "string" || !/^[0-9A-HJKMNP-TV-Z]{26}$/.test(h["handle"])) {
|
|
@@ -264,14 +264,14 @@ function validateBundleHeader(parsed) {
|
|
|
264
264
|
`.noydb bundle header.sig, .keyId, and .sigAlg must be present together or not at all (got ${sigFieldsPresent} of 3).`
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
if (sigFieldsPresent === 3 && h["formatVersion"] !==
|
|
267
|
+
if (sigFieldsPresent === 3 && h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION_SIGNED) {
|
|
268
268
|
throw new Error(
|
|
269
|
-
`.noydb bundle header with sig/keyId/sigAlg must have formatVersion === ${
|
|
269
|
+
`.noydb bundle header with sig/keyId/sigAlg must have formatVersion === ${NOYDB_POD_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}.`
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function encodePodHeader(header) {
|
|
274
|
+
validatePodHeaderFields(header);
|
|
275
275
|
const json = JSON.stringify({
|
|
276
276
|
formatVersion: header.formatVersion,
|
|
277
277
|
handle: header.handle,
|
|
@@ -297,7 +297,7 @@ function encodeBundleHeader(header) {
|
|
|
297
297
|
});
|
|
298
298
|
return new TextEncoder().encode(json);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function decodePodHeader(bytes) {
|
|
301
301
|
const json = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
302
302
|
let parsed;
|
|
303
303
|
try {
|
|
@@ -307,7 +307,7 @@ function decodeBundleHeader(bytes) {
|
|
|
307
307
|
`.noydb bundle header is not valid JSON: ${err.message}`
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
validatePodHeaderFields(parsed);
|
|
311
311
|
return parsed;
|
|
312
312
|
}
|
|
313
313
|
function readUint32BE(bytes, offset) {
|
|
@@ -319,10 +319,10 @@ function writeUint32BE(bytes, offset, value) {
|
|
|
319
319
|
bytes[offset + 2] = value >>> 8 & 255;
|
|
320
320
|
bytes[offset + 3] = value & 255;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
if (bytes.length <
|
|
324
|
-
for (let i = 0; i <
|
|
325
|
-
if (bytes[i] !==
|
|
322
|
+
function hasNoydbPodMagic(bytes) {
|
|
323
|
+
if (bytes.length < NOYDB_POD_MAGIC.length) return false;
|
|
324
|
+
for (let i = 0; i < NOYDB_POD_MAGIC.length; i++) {
|
|
325
|
+
if (bytes[i] !== NOYDB_POD_MAGIC[i]) return false;
|
|
326
326
|
}
|
|
327
327
|
return true;
|
|
328
328
|
}
|
|
@@ -340,7 +340,7 @@ async function verifyRecord(publicKeyB64, sig, payload) {
|
|
|
340
340
|
return ed25519Verify(publicKeyB64, sig, signedBytes(payload));
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
// src/with-pod/
|
|
343
|
+
// src/with-pod/pod.ts
|
|
344
344
|
var WRITE_POD_OPTION_KEYS = [
|
|
345
345
|
"compression",
|
|
346
346
|
"collections",
|
|
@@ -562,30 +562,30 @@ function parseAutoUnlockBody(bodyString) {
|
|
|
562
562
|
try {
|
|
563
563
|
parsed = JSON.parse(bodyString);
|
|
564
564
|
} catch (err) {
|
|
565
|
-
throw new
|
|
565
|
+
throw new PodIntegrityError(
|
|
566
566
|
"header declared autoUnlock but body could not be parsed as JSON wrapper: " + (err instanceof Error ? err.message : String(err))
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
569
|
if (typeof parsed !== "object" || parsed === null) {
|
|
570
|
-
throw new
|
|
570
|
+
throw new PodIntegrityError("autoUnlock body is not a JSON object");
|
|
571
571
|
}
|
|
572
572
|
const obj = parsed;
|
|
573
573
|
if (obj["_noydb_bundle_body"] !== 1) {
|
|
574
|
-
throw new
|
|
574
|
+
throw new PodIntegrityError(
|
|
575
575
|
"autoUnlock body missing `_noydb_bundle_body: 1` discriminator"
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
578
|
if (typeof obj["dump"] !== "string") {
|
|
579
|
-
throw new
|
|
579
|
+
throw new PodIntegrityError("autoUnlock body must carry a string `dump` field");
|
|
580
580
|
}
|
|
581
581
|
const blob = obj["_autoUnlock"];
|
|
582
582
|
if (typeof blob !== "object" || blob === null) {
|
|
583
|
-
throw new
|
|
583
|
+
throw new PodIntegrityError("autoUnlock body missing `_autoUnlock` blob");
|
|
584
584
|
}
|
|
585
585
|
const blobObj = blob;
|
|
586
586
|
const kind = blobObj["kind"];
|
|
587
587
|
if (kind !== "unsealed" && kind !== "sealed") {
|
|
588
|
-
throw new
|
|
588
|
+
throw new PodIntegrityError(
|
|
589
589
|
`autoUnlock blob has invalid kind ${String(kind)}; expected 'unsealed' or 'sealed'`
|
|
590
590
|
);
|
|
591
591
|
}
|
|
@@ -602,29 +602,29 @@ function parseExtractedPartitionBody(bodyString) {
|
|
|
602
602
|
try {
|
|
603
603
|
parsed = JSON.parse(bodyString);
|
|
604
604
|
} catch (err) {
|
|
605
|
-
throw new
|
|
605
|
+
throw new PodIntegrityError(
|
|
606
606
|
"header declared extracted-partition but body could not be parsed as JSON wrapper: " + (err instanceof Error ? err.message : String(err))
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
609
|
if (typeof parsed !== "object" || parsed === null) {
|
|
610
|
-
throw new
|
|
610
|
+
throw new PodIntegrityError("extracted-partition body is not a JSON object");
|
|
611
611
|
}
|
|
612
612
|
const obj = parsed;
|
|
613
613
|
if (obj["_noydb_bundle_body"] !== 1) {
|
|
614
|
-
throw new
|
|
614
|
+
throw new PodIntegrityError(
|
|
615
615
|
"extracted-partition body missing `_noydb_bundle_body: 1` discriminator"
|
|
616
616
|
);
|
|
617
617
|
}
|
|
618
618
|
if (typeof obj["dump"] !== "string") {
|
|
619
|
-
throw new
|
|
619
|
+
throw new PodIntegrityError("extracted-partition body must carry a string `dump` field");
|
|
620
620
|
}
|
|
621
621
|
const seal = obj["_transferSeal"];
|
|
622
622
|
if (typeof seal !== "object" || seal === null) {
|
|
623
|
-
throw new
|
|
623
|
+
throw new PodIntegrityError("extracted-partition body missing `_transferSeal` blob");
|
|
624
624
|
}
|
|
625
625
|
const s = seal;
|
|
626
626
|
if (s["v"] !== 1 || s["alg"] !== "aes-256-gcm-pre-shared" || typeof s["sealId"] !== "string" || typeof s["payload"] !== "string") {
|
|
627
|
-
throw new
|
|
627
|
+
throw new PodIntegrityError("extracted-partition `_transferSeal` blob is malformed");
|
|
628
628
|
}
|
|
629
629
|
return { dump: obj["dump"], seal };
|
|
630
630
|
}
|
|
@@ -670,7 +670,7 @@ async function resolveAutoUnlock(blob, opts) {
|
|
|
670
670
|
unsealedMap[userId] = { kind: credKind, value: entry.sealed };
|
|
671
671
|
continue;
|
|
672
672
|
}
|
|
673
|
-
throw new
|
|
673
|
+
throw new PodSealMismatchError(userId, entry.pid);
|
|
674
674
|
}
|
|
675
675
|
unsealedMap[userId] = { kind: credKind, value: opened };
|
|
676
676
|
continue;
|
|
@@ -679,7 +679,7 @@ async function resolveAutoUnlock(blob, opts) {
|
|
|
679
679
|
unsealedMap[userId] = { kind: credKind, value: entry.sealed };
|
|
680
680
|
continue;
|
|
681
681
|
}
|
|
682
|
-
throw new
|
|
682
|
+
throw new PodSealMismatchError(userId, entry.pid);
|
|
683
683
|
}
|
|
684
684
|
const plaintextBytes = await provider.unseal(base64ToBytes(entry.sealed));
|
|
685
685
|
unsealedMap[userId] = { kind: credKind, value: decoder.decode(plaintextBytes) };
|
|
@@ -812,7 +812,7 @@ async function applySatelliteLivenessFilter(vault, dumpJson) {
|
|
|
812
812
|
if (!backup.collections || typeof backup.collections !== "object") return dumpJson;
|
|
813
813
|
if (typeof vault._introspectState !== "function") return dumpJson;
|
|
814
814
|
const { adapter, name, getDEK } = vault._introspectState();
|
|
815
|
-
const { liveBaseIdSetsForBundle } = await import("./dead-filter-
|
|
815
|
+
const { liveBaseIdSetsForBundle } = await import("./dead-filter-ZNWVGV5U.js");
|
|
816
816
|
const satLive = await liveBaseIdSetsForBundle(adapter, name, Object.keys(backup.collections), getDEK);
|
|
817
817
|
if (satLive.size === 0) return dumpJson;
|
|
818
818
|
const next = {};
|
|
@@ -864,13 +864,13 @@ async function applyPlaintextFilters(vault, dumpJson, opts) {
|
|
|
864
864
|
backup.collections = next;
|
|
865
865
|
return JSON.stringify(backup);
|
|
866
866
|
}
|
|
867
|
-
async function
|
|
867
|
+
async function assemblePodContainer(opts) {
|
|
868
868
|
const dumpBytes = new TextEncoder().encode(opts.bodyJsonStr);
|
|
869
869
|
const { format, streamFormat } = selectCompression(opts.compression);
|
|
870
870
|
const body = streamFormat === null ? dumpBytes : await pumpThroughStream(dumpBytes, new CompressionStream(streamFormat));
|
|
871
871
|
const bodySha256 = await sha256Hex2(body);
|
|
872
872
|
const header = {
|
|
873
|
-
formatVersion:
|
|
873
|
+
formatVersion: NOYDB_POD_FORMAT_VERSION,
|
|
874
874
|
handle: opts.handle,
|
|
875
875
|
bodyBytes: body.length,
|
|
876
876
|
bodySha256,
|
|
@@ -886,13 +886,13 @@ async function assembleBundleContainer(opts) {
|
|
|
886
886
|
...opts.headerExtras?.redirect !== void 0 ? { redirect: opts.headerExtras.redirect } : {}
|
|
887
887
|
};
|
|
888
888
|
const signed = opts.signer === void 0 ? header : await (async (s) => {
|
|
889
|
-
const toSign = { ...header, formatVersion:
|
|
889
|
+
const toSign = { ...header, formatVersion: NOYDB_POD_FORMAT_VERSION_SIGNED, keyId: s.keyId, sigAlg: "ed25519" };
|
|
890
890
|
const sig = await signRecord(s.privateKeyPkcs8B64, toSign);
|
|
891
891
|
return { ...toSign, sig };
|
|
892
892
|
})(opts.signer);
|
|
893
|
-
const headerBytes =
|
|
894
|
-
const prefix = new Uint8Array(
|
|
895
|
-
prefix.set(
|
|
893
|
+
const headerBytes = encodePodHeader(signed);
|
|
894
|
+
const prefix = new Uint8Array(NOYDB_POD_PREFIX_BYTES);
|
|
895
|
+
prefix.set(NOYDB_POD_MAGIC, 0);
|
|
896
896
|
prefix[4] = (streamFormat === null ? 0 : FLAG_COMPRESSED) | FLAG_HAS_INTEGRITY_HASH;
|
|
897
897
|
prefix[5] = format;
|
|
898
898
|
writeUint32BE(prefix, 6, headerBytes.length);
|
|
@@ -907,7 +907,7 @@ async function writePod(vault, opts = {}) {
|
|
|
907
907
|
}
|
|
908
908
|
const normalizedAutoUnlock = normalizeAutoUnlock(opts);
|
|
909
909
|
const autoUnlockMode = validateAutoUnlockOptions(opts, normalizedAutoUnlock);
|
|
910
|
-
const handle = await vault.
|
|
910
|
+
const handle = await vault.getPodHandle();
|
|
911
911
|
const dumpJson = await vault.dump();
|
|
912
912
|
const satelliteFiltered = await applySatelliteLivenessFilter(vault, dumpJson);
|
|
913
913
|
const rekeyed = await applyRecipientRewrap(vault, satelliteFiltered, opts);
|
|
@@ -916,7 +916,7 @@ async function writePod(vault, opts = {}) {
|
|
|
916
916
|
const bodyJsonStr = normalizedAutoUnlock === null ? filtered : JSON.stringify(await buildAutoUnlockWrapper(filtered, normalizedAutoUnlock));
|
|
917
917
|
const cover = await vault.getCover();
|
|
918
918
|
const signer = opts.sign === false ? void 0 : opts.sign !== void 0 ? opts.sign : await vault._loadPodSigner() ?? void 0;
|
|
919
|
-
return
|
|
919
|
+
return assemblePodContainer({
|
|
920
920
|
handle,
|
|
921
921
|
bodyJsonStr,
|
|
922
922
|
compression: opts.compression,
|
|
@@ -936,14 +936,14 @@ async function writePod(vault, opts = {}) {
|
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
938
|
function parsePrefixAndHeader(bytes) {
|
|
939
|
-
if (!
|
|
939
|
+
if (!hasNoydbPodMagic(bytes)) {
|
|
940
940
|
throw new Error(
|
|
941
941
|
`Not a .noydb bundle: missing 'NDB1' magic prefix. The first 4 bytes are ${[...bytes.slice(0, 4)].map((b) => b.toString(16).padStart(2, "0")).join(" ")}.`
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
|
-
if (bytes.length <
|
|
944
|
+
if (bytes.length < NOYDB_POD_PREFIX_BYTES) {
|
|
945
945
|
throw new Error(
|
|
946
|
-
`Truncated .noydb bundle: file is only ${bytes.length} bytes, which is less than the ${
|
|
946
|
+
`Truncated .noydb bundle: file is only ${bytes.length} bytes, which is less than the ${NOYDB_POD_PREFIX_BYTES}-byte fixed prefix.`
|
|
947
947
|
);
|
|
948
948
|
}
|
|
949
949
|
const flags = bytes[4];
|
|
@@ -954,14 +954,14 @@ function parsePrefixAndHeader(bytes) {
|
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
956
|
const headerLength = readUint32BE(bytes, 6);
|
|
957
|
-
const bodyOffset =
|
|
957
|
+
const bodyOffset = NOYDB_POD_PREFIX_BYTES + headerLength;
|
|
958
958
|
if (bodyOffset > bytes.length) {
|
|
959
959
|
throw new Error(
|
|
960
960
|
`Truncated .noydb bundle: declared header length ${headerLength} would extend past end of file (${bytes.length} bytes).`
|
|
961
961
|
);
|
|
962
962
|
}
|
|
963
|
-
const headerBytes = bytes.slice(
|
|
964
|
-
const header =
|
|
963
|
+
const headerBytes = bytes.slice(NOYDB_POD_PREFIX_BYTES, bodyOffset);
|
|
964
|
+
const header = decodePodHeader(headerBytes);
|
|
965
965
|
return { header, bodyOffset, algo, flags };
|
|
966
966
|
}
|
|
967
967
|
function readPodHeader(bytes) {
|
|
@@ -999,13 +999,13 @@ async function readPod(bytes, opts = {}) {
|
|
|
999
999
|
const { header, bodyOffset, algo } = parsePrefixAndHeader(bytes);
|
|
1000
1000
|
const body = bytes.slice(bodyOffset);
|
|
1001
1001
|
if (body.length !== header.bodyBytes) {
|
|
1002
|
-
throw new
|
|
1002
|
+
throw new PodIntegrityError(
|
|
1003
1003
|
`body length ${body.length} does not match header.bodyBytes ${header.bodyBytes}. The bundle was truncated or padded between write and read.`
|
|
1004
1004
|
);
|
|
1005
1005
|
}
|
|
1006
1006
|
const actualSha = await sha256Hex2(body);
|
|
1007
1007
|
if (actualSha !== header.bodySha256) {
|
|
1008
|
-
throw new
|
|
1008
|
+
throw new PodIntegrityError(
|
|
1009
1009
|
`body sha256 ${actualSha} does not match header.bodySha256 ${header.bodySha256}. The bundle bytes were modified between write and read \u2014 refuse to decompress.`
|
|
1010
1010
|
);
|
|
1011
1011
|
}
|
|
@@ -1017,7 +1017,7 @@ async function readPod(bytes, opts = {}) {
|
|
|
1017
1017
|
try {
|
|
1018
1018
|
dumpBytes = await pumpThroughStream(body, new DecompressionStream(streamFormat));
|
|
1019
1019
|
} catch (err) {
|
|
1020
|
-
throw new
|
|
1020
|
+
throw new PodIntegrityError(
|
|
1021
1021
|
`decompression failed: ${err.message}. The bundle passed the integrity hash but the body is not valid ${streamFormat} data \u2014 likely a producer bug.`
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
@@ -1032,17 +1032,17 @@ async function readPod(bytes, opts = {}) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
1034
|
export {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1035
|
+
NOYDB_POD_MAGIC,
|
|
1036
|
+
NOYDB_POD_PREFIX_BYTES,
|
|
1037
|
+
NOYDB_POD_FORMAT_VERSION,
|
|
1038
1038
|
FLAG_COMPRESSED,
|
|
1039
1039
|
FLAG_HAS_INTEGRITY_HASH,
|
|
1040
1040
|
COMPRESSION_NONE,
|
|
1041
1041
|
COMPRESSION_GZIP,
|
|
1042
1042
|
COMPRESSION_BROTLI,
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
validatePodHeaderFields,
|
|
1044
|
+
encodePodHeader,
|
|
1045
|
+
hasNoydbPodMagic,
|
|
1046
1046
|
POD_SIG_ALG,
|
|
1047
1047
|
signedBytes,
|
|
1048
1048
|
signRecord,
|
|
@@ -1050,7 +1050,7 @@ export {
|
|
|
1050
1050
|
buildExtractedPartitionWrapper,
|
|
1051
1051
|
parseExtractedPartitionBody,
|
|
1052
1052
|
resetBrotliSupportCache,
|
|
1053
|
-
|
|
1053
|
+
assemblePodContainer,
|
|
1054
1054
|
writePod,
|
|
1055
1055
|
readPodHeader,
|
|
1056
1056
|
verifyPodHeader,
|
|
@@ -1058,4 +1058,4 @@ export {
|
|
|
1058
1058
|
readPodRedirect,
|
|
1059
1059
|
readPod
|
|
1060
1060
|
};
|
|
1061
|
-
//# sourceMappingURL=chunk-
|
|
1061
|
+
//# sourceMappingURL=chunk-4LNFXGNW.js.map
|