@noy-db/hub 0.2.0-pre.1 → 0.2.0-pre.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aggregate/index.cjs +9 -0
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +4 -4
- package/dist/attestation/index.cjs +305 -0
- package/dist/attestation/index.cjs.map +1 -0
- package/dist/attestation/index.d.cts +52 -0
- package/dist/attestation/index.d.ts +52 -0
- package/dist/attestation/index.js +36 -0
- package/dist/attestation/index.js.map +1 -0
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +7 -6
- package/dist/blobs/index.d.ts +7 -6
- package/dist/blobs/index.js +10 -8
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.cjs +18912 -129
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +175 -6
- package/dist/bundle/index.d.ts +175 -6
- package/dist/bundle/index.js +533 -5
- package/dist/bundle/index.js.map +1 -1
- package/dist/{chunk-6HPZY4ON.js → chunk-26NK23DZ.js} +9 -4
- package/dist/chunk-26NK23DZ.js.map +1 -0
- package/dist/{chunk-XGSOTWYX.js → chunk-2LPPNWF6.js} +3 -3
- package/dist/{chunk-537VFZTR.js → chunk-3DGHRDCX.js} +4 -4
- package/dist/{chunk-HB3Z2GCR.js → chunk-5OEJ6GOT.js} +2 -2
- package/dist/chunk-5OEJ6GOT.js.map +1 -0
- package/dist/{chunk-UA4RI7OT.js → chunk-6MFH4BMK.js} +5 -5
- package/dist/chunk-6MFH4BMK.js.map +1 -0
- package/dist/{chunk-UZXLQCHP.js → chunk-6T2UDBKG.js} +2 -2
- package/dist/chunk-6T2UDBKG.js.map +1 -0
- package/dist/{chunk-23TTQXVO.js → chunk-6YLPHBKR.js} +214 -9
- package/dist/chunk-6YLPHBKR.js.map +1 -0
- package/dist/chunk-73YLDCNF.js +83 -0
- package/dist/chunk-73YLDCNF.js.map +1 -0
- package/dist/chunk-77DWLQRY.js +233 -0
- package/dist/chunk-77DWLQRY.js.map +1 -0
- package/dist/{chunk-Z72JH4KG.js → chunk-7CEGU63S.js} +5 -35
- package/dist/chunk-7CEGU63S.js.map +1 -0
- package/dist/{chunk-PEULZC6M.js → chunk-A3JMGXPG.js} +8 -1
- package/dist/chunk-A3JMGXPG.js.map +1 -0
- package/dist/{chunk-I6MX32UC.js → chunk-BDV7INMP.js} +4 -4
- package/dist/{chunk-MKSA2V7A.js → chunk-C3WE6UJY.js} +2 -2
- package/dist/{chunk-FCXOFQAJ.js → chunk-CH22FZHT.js} +19 -2
- package/dist/chunk-CH22FZHT.js.map +1 -0
- package/dist/{chunk-DYBQG5PQ.js → chunk-CXFOITNS.js} +2 -2
- package/dist/{chunk-5ZGZ6HIZ.js → chunk-CXJG63MA.js} +11 -2
- package/dist/chunk-CXJG63MA.js.map +1 -0
- package/dist/{chunk-EGQYGYIU.js → chunk-DAP2XL7Q.js} +3 -3
- package/dist/chunk-DAP2XL7Q.js.map +1 -0
- package/dist/chunk-EBVBE7UK.js +59 -0
- package/dist/chunk-EBVBE7UK.js.map +1 -0
- package/dist/{chunk-DPMFBCV6.js → chunk-FO3UEG4S.js} +20 -3
- package/dist/chunk-FO3UEG4S.js.map +1 -0
- package/dist/{chunk-SIZWEV2Y.js → chunk-GAUEWM7D.js} +7 -5
- package/dist/chunk-GAUEWM7D.js.map +1 -0
- package/dist/chunk-GKI4SDP7.js +57 -0
- package/dist/chunk-GKI4SDP7.js.map +1 -0
- package/dist/chunk-IMYKDWB4.js +139 -0
- package/dist/chunk-IMYKDWB4.js.map +1 -0
- package/dist/{chunk-5SCJ5UEF.js → chunk-JQ4NEJJ6.js} +3 -3
- package/dist/chunk-LJXYPGRH.js +251 -0
- package/dist/chunk-LJXYPGRH.js.map +1 -0
- package/dist/{chunk-5DWL3JBF.js → chunk-LSTBFLL2.js} +2 -2
- package/dist/chunk-MPOLUAMI.js +10531 -0
- package/dist/chunk-MPOLUAMI.js.map +1 -0
- package/dist/{chunk-ADQ5MQ54.js → chunk-O6EJ6WTI.js} +163 -2
- package/dist/chunk-O6EJ6WTI.js.map +1 -0
- package/dist/chunk-PC3ZZBTO.js +79 -0
- package/dist/chunk-PC3ZZBTO.js.map +1 -0
- package/dist/{chunk-OMLIZL2P.js → chunk-PC6ZEDRL.js} +12 -2
- package/dist/{chunk-OMLIZL2P.js.map → chunk-PC6ZEDRL.js.map} +1 -1
- package/dist/{chunk-34YSDCDP.js → chunk-PVUUIWHY.js} +2 -2
- package/dist/{chunk-PA6R5ZCI.js → chunk-QCXNMCHN.js} +18 -5
- package/dist/chunk-QCXNMCHN.js.map +1 -0
- package/dist/{chunk-DYECX3IX.js → chunk-QSOYKKMD.js} +4 -4
- package/dist/chunk-QSOYKKMD.js.map +1 -0
- package/dist/{chunk-WCA2NROQ.js → chunk-R233SLY3.js} +2 -2
- package/dist/chunk-RC6SU5NO.js +36 -0
- package/dist/chunk-RC6SU5NO.js.map +1 -0
- package/dist/{chunk-P7EQ2S5O.js → chunk-RRNA5GKT.js} +2 -2
- package/dist/{chunk-ZNOEIM6Y.js → chunk-RYIL3PI2.js} +2 -2
- package/dist/{chunk-YS3POABP.js → chunk-SLV4LAKX.js} +1 -1
- package/dist/chunk-SLV4LAKX.js.map +1 -0
- package/dist/chunk-STNPB3UM.js +9 -0
- package/dist/chunk-STNPB3UM.js.map +1 -0
- package/dist/{chunk-7H6DOO3E.js → chunk-TGALXXLV.js} +211 -36
- package/dist/chunk-TGALXXLV.js.map +1 -0
- package/dist/{chunk-MRIBLZL3.js → chunk-TV3YZ35S.js} +5 -1
- package/dist/chunk-TV3YZ35S.js.map +1 -0
- package/dist/{chunk-VMIO4IXG.js → chunk-V2PZC6AW.js} +6 -229
- package/dist/chunk-V2PZC6AW.js.map +1 -0
- package/dist/{chunk-YMYK7US4.js → chunk-WIBHRONM.js} +2 -2
- package/dist/chunk-WIBHRONM.js.map +1 -0
- package/dist/{chunk-KESP7GOK.js → chunk-Y26YV5R3.js} +3 -3
- package/dist/{chunk-MIQHZESA.js → chunk-YM7LFCG7.js} +5 -5
- package/dist/{chunk-MIQHZESA.js.map → chunk-YM7LFCG7.js.map} +1 -1
- package/dist/{chunk-CBAHB2BF.js → chunk-YVZRTCGG.js} +7 -70
- package/dist/chunk-YVZRTCGG.js.map +1 -0
- package/dist/{chunk-4TFSM22V.js → chunk-YW5DBAPG.js} +4 -4
- package/dist/{chunk-2AXFIYHT.js → chunk-Z6FNBOTC.js} +1 -1
- package/dist/chunk-Z6FNBOTC.js.map +1 -0
- package/dist/{chunk-NIOHFJPJ.js → chunk-ZBBW7YQN.js} +218 -119
- package/dist/chunk-ZBBW7YQN.js.map +1 -0
- package/dist/{chunk-RD5LYKD6.js → chunk-ZROPXHJY.js} +2 -2
- package/dist/chunk-ZROPXHJY.js.map +1 -0
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +7 -6
- package/dist/consent/index.d.ts +7 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-A7FRXYHC.js → crypto-2CRLG4F4.js} +3 -3
- package/dist/{delegation-YBA4X4JN.js → delegation-ZTRT2PRV.js} +5 -5
- package/dist/derivations/index.cjs +18 -1
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +10 -9
- package/dist/derivations/index.d.ts +10 -9
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-D9s-loPr.d.ts → dev-unlock-BH6y3Hx0.d.ts} +1 -1
- package/dist/{dev-unlock-DRwVSy2S.d.cts → dev-unlock-H1Xwxc3U.d.cts} +1 -1
- package/dist/discriminant-BN9REW3o.d.cts +60 -0
- package/dist/discriminant-BN9REW3o.d.ts +60 -0
- package/dist/executor-S76VN45G.js +8 -0
- package/dist/executor-UCXLIGLW.js +11 -0
- package/dist/executor-ZCNZJMGR.js +8 -0
- package/dist/{fanout-sidecar-VJ52RIEY.js → fanout-sidecar-F3ZRFU4H.js} +2 -2
- package/dist/fanout-sidecar-F3ZRFU4H.js.map +1 -0
- package/dist/guards/index.cjs +7 -0
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +8 -7
- package/dist/guards/index.d.ts +8 -7
- package/dist/guards/index.js +4 -4
- package/dist/{hash-DXXXusyk.d.ts → hash-D89JdDbj.d.ts} +1 -1
- package/dist/{hash-DtRih9MQ.d.cts → hash-_sDFvtmX.d.cts} +1 -1
- package/dist/history/index.cjs +2 -2
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +8 -7
- package/dist/history/index.d.ts +8 -7
- package/dist/history/index.js +6 -6
- package/dist/i18n/index.cjs +287 -27
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +7 -6
- package/dist/i18n/index.d.ts +7 -6
- package/dist/i18n/index.js +21 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-CmVgTkqk.d.cts → index-B8bjExET.d.cts} +214 -18
- package/dist/{index-CNwA-B6-.d.ts → index-DfUbNad8.d.ts} +214 -18
- package/dist/index.cjs +3343 -447
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -22
- package/dist/index.d.ts +43 -22
- package/dist/index.js +179 -8799
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs +5 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.d.cts +3 -3
- package/dist/indexing/index.d.ts +3 -3
- package/dist/indexing/index.js +4 -4
- package/dist/issue-IVTVSKWW.js +12 -0
- package/dist/{lazy-builder-Rpd-V3jP.d.ts → lazy-builder-Ci5_YG73.d.cts} +2 -2
- package/dist/{lazy-builder-C-rPfWG0.d.cts → lazy-builder-D5GU14TS.d.ts} +2 -2
- package/dist/{ledger-3TXNP47J.js → ledger-NYCGJX2D.js} +6 -6
- package/dist/materialized-views/index.cjs +21 -2
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +23 -20
- package/dist/materialized-views/index.d.ts +23 -20
- package/dist/materialized-views/index.js +12 -12
- package/dist/noydb-SH4RLE47.js +34 -0
- package/dist/overlay-views/index.cjs +11 -1
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +10 -9
- package/dist/overlay-views/index.d.ts +10 -9
- package/dist/overlay-views/index.js +6 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +7 -6
- package/dist/periods/index.d.ts +7 -6
- package/dist/periods/index.js +6 -6
- package/dist/{predicate-Dnu81tsS.d.cts → predicate-Bt5ft-9c.d.cts} +28 -3
- package/dist/{predicate-Dnu81tsS.d.ts → predicate-Bt5ft-9c.d.ts} +28 -3
- package/dist/{public-envelope-PY6NKFLI.js → public-envelope-QOXZEHKH.js} +4 -4
- package/dist/query/index.cjs +255 -6
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +12 -6
- package/dist/registry-DKEXOJVO.js +7 -0
- package/dist/{registry-3L3N3PTG.js → registry-ST2VNFZC.js} +3 -3
- package/dist/registry-UFIK7CSR.js +8 -0
- package/dist/registry-ZGYYSM5I.js +8 -0
- package/dist/registry-ZGYYSM5I.js.map +1 -0
- package/dist/revoke-RT7QYB4G.js +17 -0
- package/dist/revoke-RT7QYB4G.js.map +1 -0
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +8 -7
- package/dist/session/index.d.ts +8 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +7 -6
- package/dist/shadow/index.d.ts +7 -6
- package/dist/shadow/index.js +2 -2
- package/dist/signer-QNU66JF5.js +18 -0
- package/dist/signer-QNU66JF5.js.map +1 -0
- package/dist/snapshots/index.cjs +937 -0
- package/dist/snapshots/index.cjs.map +1 -0
- package/dist/snapshots/index.d.cts +28 -0
- package/dist/snapshots/index.d.ts +28 -0
- package/dist/snapshots/index.js +152 -0
- package/dist/snapshots/index.js.map +1 -0
- package/dist/{stale-HSC5YO2O.js → stale-VKXSXJF4.js} +2 -2
- package/dist/stale-VKXSXJF4.js.map +1 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +7 -6
- package/dist/store/index.d.ts +7 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-DSTrsZ8t.d.cts → strategy-CT2LCKAX.d.cts} +12 -0
- package/dist/{strategy-DSTrsZ8t.d.ts → strategy-CT2LCKAX.d.ts} +12 -0
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +6 -5
- package/dist/sync/index.d.ts +6 -5
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs +1 -1
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +7 -6
- package/dist/team/index.d.ts +7 -6
- package/dist/team/index.js +13 -11
- package/dist/tx/index.cjs +82 -2
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +8 -7
- package/dist/tx/index.d.ts +8 -7
- package/dist/tx/index.js +56 -3
- package/dist/tx/index.js.map +1 -1
- package/dist/{types-DW9RGSSs.d.ts → types-CD8mc8zR.d.ts} +1279 -259
- package/dist/{types-C4lwMKKF.d.cts → types-DiSXn3a4.d.cts} +1279 -259
- package/dist/{index-4agOpzqd.d.ts → ulid-8p83wbR4.d.ts} +64 -46
- package/dist/{index-hdFvZkBP.d.cts → ulid-DQ1hcJvZ.d.cts} +64 -46
- package/dist/util/index.cjs +7 -0
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.d.cts +2 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +5 -1
- package/dist/util/index.js.map +1 -1
- package/dist/{with-derivation-C8LDlV7t.d.cts → with-derivation-CVT7-dUt.d.cts} +1 -1
- package/dist/{with-derivation-g-pGoMzL.d.ts → with-derivation-DWMTpgEH.d.ts} +1 -1
- package/dist/{with-guard-DWOCK4Ca.d.ts → with-guard-BRvt53da.d.ts} +1 -1
- package/dist/{with-guard-jI1x9Z3k.d.cts → with-guard-Dx2zZnTA.d.cts} +1 -1
- package/dist/{with-materialized-view-DaKR-N6J.d.ts → with-materialized-view-BTTU3BNK.d.cts} +2 -2
- package/dist/{with-materialized-view-DcTx4H3j.d.cts → with-materialized-view-X0CoL8-L.d.ts} +2 -2
- package/dist/{with-overlayed-view-N7jYuNOS.d.ts → with-overlayed-view-DQjO_DSG.d.ts} +2 -2
- package/dist/{with-overlayed-view-D-6oWAgM.d.cts → with-overlayed-view-DcacRRsS.d.cts} +2 -2
- package/package.json +27 -4
- package/dist/chunk-23TTQXVO.js.map +0 -1
- package/dist/chunk-2AXFIYHT.js.map +0 -1
- package/dist/chunk-5ZGZ6HIZ.js.map +0 -1
- package/dist/chunk-6HPZY4ON.js.map +0 -1
- package/dist/chunk-7H6DOO3E.js.map +0 -1
- package/dist/chunk-ADQ5MQ54.js.map +0 -1
- package/dist/chunk-CBAHB2BF.js.map +0 -1
- package/dist/chunk-DPMFBCV6.js.map +0 -1
- package/dist/chunk-DYECX3IX.js.map +0 -1
- package/dist/chunk-EGQYGYIU.js.map +0 -1
- package/dist/chunk-FCXOFQAJ.js.map +0 -1
- package/dist/chunk-HB3Z2GCR.js.map +0 -1
- package/dist/chunk-MRIBLZL3.js.map +0 -1
- package/dist/chunk-NIOHFJPJ.js.map +0 -1
- package/dist/chunk-PA6R5ZCI.js.map +0 -1
- package/dist/chunk-PEULZC6M.js.map +0 -1
- package/dist/chunk-RD5LYKD6.js.map +0 -1
- package/dist/chunk-SIZWEV2Y.js.map +0 -1
- package/dist/chunk-UA4RI7OT.js.map +0 -1
- package/dist/chunk-UZXLQCHP.js.map +0 -1
- package/dist/chunk-VMIO4IXG.js.map +0 -1
- package/dist/chunk-YMYK7US4.js.map +0 -1
- package/dist/chunk-YS3POABP.js.map +0 -1
- package/dist/chunk-Z72JH4KG.js.map +0 -1
- package/dist/executor-7E3VFGW7.js +0 -11
- package/dist/executor-CEWX2FQI.js +0 -8
- package/dist/executor-X4SQ3ZLC.js +0 -8
- package/dist/fanout-sidecar-VJ52RIEY.js.map +0 -1
- package/dist/registry-O47PUPSY.js +0 -8
- package/dist/registry-RFGGMVNJ.js +0 -7
- package/dist/registry-WLLMODKN.js +0 -8
- /package/dist/{chunk-XGSOTWYX.js.map → chunk-2LPPNWF6.js.map} +0 -0
- /package/dist/{chunk-537VFZTR.js.map → chunk-3DGHRDCX.js.map} +0 -0
- /package/dist/{chunk-I6MX32UC.js.map → chunk-BDV7INMP.js.map} +0 -0
- /package/dist/{chunk-MKSA2V7A.js.map → chunk-C3WE6UJY.js.map} +0 -0
- /package/dist/{chunk-DYBQG5PQ.js.map → chunk-CXFOITNS.js.map} +0 -0
- /package/dist/{chunk-5SCJ5UEF.js.map → chunk-JQ4NEJJ6.js.map} +0 -0
- /package/dist/{chunk-5DWL3JBF.js.map → chunk-LSTBFLL2.js.map} +0 -0
- /package/dist/{chunk-34YSDCDP.js.map → chunk-PVUUIWHY.js.map} +0 -0
- /package/dist/{chunk-WCA2NROQ.js.map → chunk-R233SLY3.js.map} +0 -0
- /package/dist/{chunk-P7EQ2S5O.js.map → chunk-RRNA5GKT.js.map} +0 -0
- /package/dist/{chunk-ZNOEIM6Y.js.map → chunk-RYIL3PI2.js.map} +0 -0
- /package/dist/{chunk-KESP7GOK.js.map → chunk-Y26YV5R3.js.map} +0 -0
- /package/dist/{chunk-4TFSM22V.js.map → chunk-YW5DBAPG.js.map} +0 -0
- /package/dist/{crypto-A7FRXYHC.js.map → crypto-2CRLG4F4.js.map} +0 -0
- /package/dist/{delegation-YBA4X4JN.js.map → delegation-ZTRT2PRV.js.map} +0 -0
- /package/dist/{executor-7E3VFGW7.js.map → executor-S76VN45G.js.map} +0 -0
- /package/dist/{executor-CEWX2FQI.js.map → executor-UCXLIGLW.js.map} +0 -0
- /package/dist/{executor-X4SQ3ZLC.js.map → executor-ZCNZJMGR.js.map} +0 -0
- /package/dist/{ledger-3TXNP47J.js.map → issue-IVTVSKWW.js.map} +0 -0
- /package/dist/{public-envelope-PY6NKFLI.js.map → ledger-NYCGJX2D.js.map} +0 -0
- /package/dist/{registry-3L3N3PTG.js.map → noydb-SH4RLE47.js.map} +0 -0
- /package/dist/{registry-O47PUPSY.js.map → public-envelope-QOXZEHKH.js.map} +0 -0
- /package/dist/{registry-RFGGMVNJ.js.map → registry-DKEXOJVO.js.map} +0 -0
- /package/dist/{registry-WLLMODKN.js.map → registry-ST2VNFZC.js.map} +0 -0
- /package/dist/{stale-HSC5YO2O.js.map → registry-UFIK7CSR.js.map} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './index-CNwA-B6-.js';
|
|
1
|
+
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-CD8mc8zR.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -125,7 +124,7 @@ interface NoydbBundleHeader {
|
|
|
125
124
|
*/
|
|
126
125
|
readonly publicEnvelope?: PublicEnvelope;
|
|
127
126
|
/**
|
|
128
|
-
* Auto-unlock material indicator
|
|
127
|
+
* Auto-unlock material indicator. When present, the bundle
|
|
129
128
|
* body wraps the dump JSON in a structure carrying per-user
|
|
130
129
|
* passphrases — either plaintext (`'unsealed'`, public-by-design)
|
|
131
130
|
* or sealed under a `SealingKeyProvider` (`'sealed'`, requires
|
|
@@ -137,9 +136,25 @@ interface NoydbBundleHeader {
|
|
|
137
136
|
* (sealed).
|
|
138
137
|
*
|
|
139
138
|
* Absent → the body is a raw `vault.dump()` JSON string (the
|
|
140
|
-
*
|
|
139
|
+
* the legacy shape; back-compatible).
|
|
141
140
|
*/
|
|
142
141
|
readonly autoUnlock?: 'unsealed' | 'sealed';
|
|
142
|
+
/**
|
|
143
|
+
* Bundle's role in the source → destination lifecycle.
|
|
144
|
+
* - omitted / 'snapshot' (default): backup/copy of an existing vault.
|
|
145
|
+
* - 'extracted-partition': re-keyed projection awaiting adoption.
|
|
146
|
+
*/
|
|
147
|
+
readonly bundleKind?: 'snapshot' | 'extracted-partition';
|
|
148
|
+
/**
|
|
149
|
+
* Transfer-seal INDICATOR — metadata only, no payload (the
|
|
150
|
+
* sealed DEKs live in the body). Present iff
|
|
151
|
+
* bundleKind === 'extracted-partition'.
|
|
152
|
+
*/
|
|
153
|
+
readonly transferSeal?: {
|
|
154
|
+
readonly v: 1;
|
|
155
|
+
readonly alg: 'aes-256-gcm-pre-shared';
|
|
156
|
+
readonly sealId: string;
|
|
157
|
+
};
|
|
143
158
|
}
|
|
144
159
|
/**
|
|
145
160
|
* Validate a parsed bundle header. Throws on any deviation from
|
|
@@ -233,7 +248,7 @@ interface AutoCredential {
|
|
|
233
248
|
* - `compression: 'gzip'` — force gzip
|
|
234
249
|
* - `compression: 'none'` — no compression (round-trip testing only)
|
|
235
250
|
*
|
|
236
|
-
* **Slice filtering
|
|
251
|
+
* **Slice filtering:**
|
|
237
252
|
* - `collections` — allowlist of collection names to include. Internal
|
|
238
253
|
* collections (keyrings, ledger) and excluded user collections are
|
|
239
254
|
* dropped from the bundle. Records inside included collections are
|
|
@@ -296,7 +311,7 @@ interface WriteNoydbBundleOptions {
|
|
|
296
311
|
*/
|
|
297
312
|
readonly recipients?: readonly BundleRecipient[];
|
|
298
313
|
/**
|
|
299
|
-
* Auto-unlock — unsealed per-user credentials
|
|
314
|
+
* Auto-unlock — unsealed per-user credentials.
|
|
300
315
|
*
|
|
301
316
|
* Generalises `autoPassphrases` to support any bundleable credential
|
|
302
317
|
* kind (`passphrase` | `password` | `pin`).
|
|
@@ -318,7 +333,7 @@ interface WriteNoydbBundleOptions {
|
|
|
318
333
|
};
|
|
319
334
|
/**
|
|
320
335
|
* Auto-unlock — per-user credentials sealed under a
|
|
321
|
-
* {@link SealingKeyProvider}
|
|
336
|
+
* {@link SealingKeyProvider}.
|
|
322
337
|
*
|
|
323
338
|
* Generalises `sealedPassphrases` to support any bundleable
|
|
324
339
|
* credential kind (`passphrase` | `password` | `pin`).
|
|
@@ -328,9 +343,15 @@ interface WriteNoydbBundleOptions {
|
|
|
328
343
|
* recipient must hold a provider with a matching `pid` (i.e.,
|
|
329
344
|
* `provider.id`) to auto-unseal on import.
|
|
330
345
|
*
|
|
331
|
-
* `mode: 'self-target'`
|
|
332
|
-
*
|
|
333
|
-
*
|
|
346
|
+
* `mode: 'self-target'` — sender and recipient share the same
|
|
347
|
+
* provider identity (same iCloud Keychain entry, same
|
|
348
|
+
* MDM-provisioned bundle id, same KMS account, etc.).
|
|
349
|
+
*
|
|
350
|
+
* `mode: 'recipient-target'` — asymmetric sealing via a
|
|
351
|
+
* {@link RecipientSealer}. Each user entry carries a
|
|
352
|
+
* `credential` and a `hint` (the recipient's public material).
|
|
353
|
+
* The bundle can only be unsealed by the holder of the matching
|
|
354
|
+
* private key.
|
|
334
355
|
*
|
|
335
356
|
* Mutually exclusive with `autoCredentials`, `autoPassphrases`,
|
|
336
357
|
* and `sealedPassphrases`.
|
|
@@ -339,11 +360,18 @@ interface WriteNoydbBundleOptions {
|
|
|
339
360
|
readonly mode: 'self-target';
|
|
340
361
|
readonly provider: SealingKeyProvider;
|
|
341
362
|
readonly perUser: Record<string, AutoCredential>;
|
|
363
|
+
} | {
|
|
364
|
+
readonly mode: 'recipient-target';
|
|
365
|
+
readonly provider: RecipientSealer;
|
|
366
|
+
readonly perUser: Record<string, {
|
|
367
|
+
readonly credential: AutoCredential;
|
|
368
|
+
readonly hint: RecipientHint;
|
|
369
|
+
}>;
|
|
342
370
|
};
|
|
343
371
|
/**
|
|
344
|
-
* @deprecated Use `autoCredentials` instead
|
|
372
|
+
* @deprecated Use `autoCredentials` instead.
|
|
345
373
|
*
|
|
346
|
-
* Auto-unlock — unsealed per-user passphrases
|
|
374
|
+
* Auto-unlock — unsealed per-user passphrases.
|
|
347
375
|
*
|
|
348
376
|
* Public-by-design: anyone holding the bundle bytes can read these
|
|
349
377
|
* plaintext credentials. Use for demo data, sample vaults,
|
|
@@ -361,21 +389,21 @@ interface WriteNoydbBundleOptions {
|
|
|
361
389
|
readonly perUser: Record<string, string>;
|
|
362
390
|
};
|
|
363
391
|
/**
|
|
364
|
-
* @deprecated Use `sealedCredentials` instead
|
|
392
|
+
* @deprecated Use `sealedCredentials` instead.
|
|
365
393
|
*
|
|
366
394
|
* Auto-unlock — per-user passphrases sealed under a
|
|
367
|
-
* {@link SealingKeyProvider} (
|
|
395
|
+
* {@link SealingKeyProvider} (self-target only).
|
|
368
396
|
*
|
|
369
397
|
* The hub seals each user's plaintext passphrase under `provider`
|
|
370
398
|
* and embeds the resulting sealed envelopes in the bundle. The
|
|
371
399
|
* recipient must hold a provider with a matching `pid` (i.e.,
|
|
372
400
|
* `provider.id`) to auto-unseal on import.
|
|
373
401
|
*
|
|
374
|
-
* `mode: 'self-target'` is the only mode
|
|
375
|
-
* recipient share the same provider identity (same iCloud Keychain
|
|
402
|
+
* `mode: 'self-target'` is the only mode for `sealedPassphrases` — sender
|
|
403
|
+
* and recipient share the same provider identity (same iCloud Keychain
|
|
376
404
|
* entry, same MDM-provisioned bundle id, same KMS account, etc.).
|
|
377
|
-
*
|
|
378
|
-
*
|
|
405
|
+
* For recipient-target sealing via the `RecipientSealer` interface,
|
|
406
|
+
* use `sealedCredentials` with `mode: 'recipient-target'` (§11.4).
|
|
379
407
|
*
|
|
380
408
|
* Mutually exclusive with `autoCredentials`, `sealedCredentials`,
|
|
381
409
|
* and `autoPassphrases`.
|
|
@@ -396,7 +424,7 @@ interface NoydbBundleReadResult {
|
|
|
396
424
|
readonly header: NoydbBundleHeader;
|
|
397
425
|
readonly dumpJson: string;
|
|
398
426
|
/**
|
|
399
|
-
* Auto-unlock material
|
|
427
|
+
* Auto-unlock material. Present only when
|
|
400
428
|
* the header's `autoUnlock` flag is set AND the body's wrapped
|
|
401
429
|
* structure survived parsing. Values are typed credentials — either
|
|
402
430
|
* delivered plain (`kind: 'unsealed'`) or unsealed at read time
|
|
@@ -416,9 +444,9 @@ interface NoydbBundleReadResult {
|
|
|
416
444
|
};
|
|
417
445
|
}
|
|
418
446
|
/**
|
|
419
|
-
* Options accepted by {@link readNoydbBundle} for the
|
|
420
|
-
* auto-unlock paths. Without these the reader behaves exactly as
|
|
421
|
-
*
|
|
447
|
+
* Options accepted by {@link readNoydbBundle} for the
|
|
448
|
+
* auto-unlock paths. Without these the reader behaves exactly as before
|
|
449
|
+
* (header parsed; body returned as `dumpJson`).
|
|
422
450
|
*/
|
|
423
451
|
interface ReadNoydbBundleOptions {
|
|
424
452
|
/**
|
|
@@ -440,31 +468,21 @@ interface ReadNoydbBundleOptions {
|
|
|
440
468
|
*/
|
|
441
469
|
readonly attemptUnsealAcrossProviders?: boolean;
|
|
442
470
|
}
|
|
443
|
-
/** Test-only: reset the brotli detection cache between tests. */
|
|
444
|
-
declare function resetBrotliSupportCache(): void;
|
|
445
471
|
/**
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
* via `vault.getBundleHandle()` — same handle on
|
|
451
|
-
* every export from the same vault instance, so cloud
|
|
452
|
-
* adapters can use it as a primary key.
|
|
453
|
-
* 2. `vault.dump()` → JSON string with encrypted records
|
|
454
|
-
* inside.
|
|
455
|
-
* 3. UTF-8 encode the dump string.
|
|
456
|
-
* 4. Compress (brotli if available, gzip fallback by default).
|
|
457
|
-
* 5. Compute SHA-256 of the compressed body for integrity.
|
|
458
|
-
* 6. Build the minimum-disclosure header from format version,
|
|
459
|
-
* handle, body length, body sha.
|
|
460
|
-
* 7. Serialize: magic (4) + flags (1) + algo (1) + headerLen (4)
|
|
461
|
-
* + header JSON (N) + compressed body (M).
|
|
462
|
-
*
|
|
463
|
-
* The output is a single `Uint8Array`. Consumers writing to disk
|
|
464
|
-
* pass it to `fs.writeFile`; consumers uploading to cloud storage
|
|
465
|
-
* pass it as the request body. The `@noy-db/file` adapter wraps
|
|
466
|
-
* this with a `saveBundle(path, vault)` helper.
|
|
472
|
+
* Transfer-seal payload. The destination DEKs, exported to raw
|
|
473
|
+
* bytes and AES-256-GCM-sealed *as a set* under the one-time transfer
|
|
474
|
+
* key. `adoptPartition` unseals this; `createOwnerOnAdoptedPartition`
|
|
475
|
+
* re-wraps the raw DEKs under the recipient's KEK.
|
|
467
476
|
*/
|
|
477
|
+
interface TransferSealPayload {
|
|
478
|
+
readonly v: 1;
|
|
479
|
+
readonly alg: 'aes-256-gcm-pre-shared';
|
|
480
|
+
readonly sealId: string;
|
|
481
|
+
/** base64(AES-256-GCM(transferKey, JSON of { collection: base64(rawDEK) })) — iv ‖ ct ‖ tag. */
|
|
482
|
+
readonly payload: string;
|
|
483
|
+
}
|
|
484
|
+
/** Test-only: reset the brotli detection cache between tests. */
|
|
485
|
+
declare function resetBrotliSupportCache(): void;
|
|
468
486
|
declare function writeNoydbBundle(vault: Vault, opts?: WriteNoydbBundleOptions): Promise<Uint8Array>;
|
|
469
487
|
/**
|
|
470
488
|
* Read just the bundle header — no body decompression, no
|
|
@@ -582,4 +600,4 @@ declare function generateULID(): string;
|
|
|
582
600
|
*/
|
|
583
601
|
declare function isULID(value: string): boolean;
|
|
584
602
|
|
|
585
|
-
export { type AutoCredential as A,
|
|
603
|
+
export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './index-CmVgTkqk.cjs';
|
|
1
|
+
import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-DiSXn3a4.cjs';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -125,7 +124,7 @@ interface NoydbBundleHeader {
|
|
|
125
124
|
*/
|
|
126
125
|
readonly publicEnvelope?: PublicEnvelope;
|
|
127
126
|
/**
|
|
128
|
-
* Auto-unlock material indicator
|
|
127
|
+
* Auto-unlock material indicator. When present, the bundle
|
|
129
128
|
* body wraps the dump JSON in a structure carrying per-user
|
|
130
129
|
* passphrases — either plaintext (`'unsealed'`, public-by-design)
|
|
131
130
|
* or sealed under a `SealingKeyProvider` (`'sealed'`, requires
|
|
@@ -137,9 +136,25 @@ interface NoydbBundleHeader {
|
|
|
137
136
|
* (sealed).
|
|
138
137
|
*
|
|
139
138
|
* Absent → the body is a raw `vault.dump()` JSON string (the
|
|
140
|
-
*
|
|
139
|
+
* the legacy shape; back-compatible).
|
|
141
140
|
*/
|
|
142
141
|
readonly autoUnlock?: 'unsealed' | 'sealed';
|
|
142
|
+
/**
|
|
143
|
+
* Bundle's role in the source → destination lifecycle.
|
|
144
|
+
* - omitted / 'snapshot' (default): backup/copy of an existing vault.
|
|
145
|
+
* - 'extracted-partition': re-keyed projection awaiting adoption.
|
|
146
|
+
*/
|
|
147
|
+
readonly bundleKind?: 'snapshot' | 'extracted-partition';
|
|
148
|
+
/**
|
|
149
|
+
* Transfer-seal INDICATOR — metadata only, no payload (the
|
|
150
|
+
* sealed DEKs live in the body). Present iff
|
|
151
|
+
* bundleKind === 'extracted-partition'.
|
|
152
|
+
*/
|
|
153
|
+
readonly transferSeal?: {
|
|
154
|
+
readonly v: 1;
|
|
155
|
+
readonly alg: 'aes-256-gcm-pre-shared';
|
|
156
|
+
readonly sealId: string;
|
|
157
|
+
};
|
|
143
158
|
}
|
|
144
159
|
/**
|
|
145
160
|
* Validate a parsed bundle header. Throws on any deviation from
|
|
@@ -233,7 +248,7 @@ interface AutoCredential {
|
|
|
233
248
|
* - `compression: 'gzip'` — force gzip
|
|
234
249
|
* - `compression: 'none'` — no compression (round-trip testing only)
|
|
235
250
|
*
|
|
236
|
-
* **Slice filtering
|
|
251
|
+
* **Slice filtering:**
|
|
237
252
|
* - `collections` — allowlist of collection names to include. Internal
|
|
238
253
|
* collections (keyrings, ledger) and excluded user collections are
|
|
239
254
|
* dropped from the bundle. Records inside included collections are
|
|
@@ -296,7 +311,7 @@ interface WriteNoydbBundleOptions {
|
|
|
296
311
|
*/
|
|
297
312
|
readonly recipients?: readonly BundleRecipient[];
|
|
298
313
|
/**
|
|
299
|
-
* Auto-unlock — unsealed per-user credentials
|
|
314
|
+
* Auto-unlock — unsealed per-user credentials.
|
|
300
315
|
*
|
|
301
316
|
* Generalises `autoPassphrases` to support any bundleable credential
|
|
302
317
|
* kind (`passphrase` | `password` | `pin`).
|
|
@@ -318,7 +333,7 @@ interface WriteNoydbBundleOptions {
|
|
|
318
333
|
};
|
|
319
334
|
/**
|
|
320
335
|
* Auto-unlock — per-user credentials sealed under a
|
|
321
|
-
* {@link SealingKeyProvider}
|
|
336
|
+
* {@link SealingKeyProvider}.
|
|
322
337
|
*
|
|
323
338
|
* Generalises `sealedPassphrases` to support any bundleable
|
|
324
339
|
* credential kind (`passphrase` | `password` | `pin`).
|
|
@@ -328,9 +343,15 @@ interface WriteNoydbBundleOptions {
|
|
|
328
343
|
* recipient must hold a provider with a matching `pid` (i.e.,
|
|
329
344
|
* `provider.id`) to auto-unseal on import.
|
|
330
345
|
*
|
|
331
|
-
* `mode: 'self-target'`
|
|
332
|
-
*
|
|
333
|
-
*
|
|
346
|
+
* `mode: 'self-target'` — sender and recipient share the same
|
|
347
|
+
* provider identity (same iCloud Keychain entry, same
|
|
348
|
+
* MDM-provisioned bundle id, same KMS account, etc.).
|
|
349
|
+
*
|
|
350
|
+
* `mode: 'recipient-target'` — asymmetric sealing via a
|
|
351
|
+
* {@link RecipientSealer}. Each user entry carries a
|
|
352
|
+
* `credential` and a `hint` (the recipient's public material).
|
|
353
|
+
* The bundle can only be unsealed by the holder of the matching
|
|
354
|
+
* private key.
|
|
334
355
|
*
|
|
335
356
|
* Mutually exclusive with `autoCredentials`, `autoPassphrases`,
|
|
336
357
|
* and `sealedPassphrases`.
|
|
@@ -339,11 +360,18 @@ interface WriteNoydbBundleOptions {
|
|
|
339
360
|
readonly mode: 'self-target';
|
|
340
361
|
readonly provider: SealingKeyProvider;
|
|
341
362
|
readonly perUser: Record<string, AutoCredential>;
|
|
363
|
+
} | {
|
|
364
|
+
readonly mode: 'recipient-target';
|
|
365
|
+
readonly provider: RecipientSealer;
|
|
366
|
+
readonly perUser: Record<string, {
|
|
367
|
+
readonly credential: AutoCredential;
|
|
368
|
+
readonly hint: RecipientHint;
|
|
369
|
+
}>;
|
|
342
370
|
};
|
|
343
371
|
/**
|
|
344
|
-
* @deprecated Use `autoCredentials` instead
|
|
372
|
+
* @deprecated Use `autoCredentials` instead.
|
|
345
373
|
*
|
|
346
|
-
* Auto-unlock — unsealed per-user passphrases
|
|
374
|
+
* Auto-unlock — unsealed per-user passphrases.
|
|
347
375
|
*
|
|
348
376
|
* Public-by-design: anyone holding the bundle bytes can read these
|
|
349
377
|
* plaintext credentials. Use for demo data, sample vaults,
|
|
@@ -361,21 +389,21 @@ interface WriteNoydbBundleOptions {
|
|
|
361
389
|
readonly perUser: Record<string, string>;
|
|
362
390
|
};
|
|
363
391
|
/**
|
|
364
|
-
* @deprecated Use `sealedCredentials` instead
|
|
392
|
+
* @deprecated Use `sealedCredentials` instead.
|
|
365
393
|
*
|
|
366
394
|
* Auto-unlock — per-user passphrases sealed under a
|
|
367
|
-
* {@link SealingKeyProvider} (
|
|
395
|
+
* {@link SealingKeyProvider} (self-target only).
|
|
368
396
|
*
|
|
369
397
|
* The hub seals each user's plaintext passphrase under `provider`
|
|
370
398
|
* and embeds the resulting sealed envelopes in the bundle. The
|
|
371
399
|
* recipient must hold a provider with a matching `pid` (i.e.,
|
|
372
400
|
* `provider.id`) to auto-unseal on import.
|
|
373
401
|
*
|
|
374
|
-
* `mode: 'self-target'` is the only mode
|
|
375
|
-
* recipient share the same provider identity (same iCloud Keychain
|
|
402
|
+
* `mode: 'self-target'` is the only mode for `sealedPassphrases` — sender
|
|
403
|
+
* and recipient share the same provider identity (same iCloud Keychain
|
|
376
404
|
* entry, same MDM-provisioned bundle id, same KMS account, etc.).
|
|
377
|
-
*
|
|
378
|
-
*
|
|
405
|
+
* For recipient-target sealing via the `RecipientSealer` interface,
|
|
406
|
+
* use `sealedCredentials` with `mode: 'recipient-target'` (§11.4).
|
|
379
407
|
*
|
|
380
408
|
* Mutually exclusive with `autoCredentials`, `sealedCredentials`,
|
|
381
409
|
* and `autoPassphrases`.
|
|
@@ -396,7 +424,7 @@ interface NoydbBundleReadResult {
|
|
|
396
424
|
readonly header: NoydbBundleHeader;
|
|
397
425
|
readonly dumpJson: string;
|
|
398
426
|
/**
|
|
399
|
-
* Auto-unlock material
|
|
427
|
+
* Auto-unlock material. Present only when
|
|
400
428
|
* the header's `autoUnlock` flag is set AND the body's wrapped
|
|
401
429
|
* structure survived parsing. Values are typed credentials — either
|
|
402
430
|
* delivered plain (`kind: 'unsealed'`) or unsealed at read time
|
|
@@ -416,9 +444,9 @@ interface NoydbBundleReadResult {
|
|
|
416
444
|
};
|
|
417
445
|
}
|
|
418
446
|
/**
|
|
419
|
-
* Options accepted by {@link readNoydbBundle} for the
|
|
420
|
-
* auto-unlock paths. Without these the reader behaves exactly as
|
|
421
|
-
*
|
|
447
|
+
* Options accepted by {@link readNoydbBundle} for the
|
|
448
|
+
* auto-unlock paths. Without these the reader behaves exactly as before
|
|
449
|
+
* (header parsed; body returned as `dumpJson`).
|
|
422
450
|
*/
|
|
423
451
|
interface ReadNoydbBundleOptions {
|
|
424
452
|
/**
|
|
@@ -440,31 +468,21 @@ interface ReadNoydbBundleOptions {
|
|
|
440
468
|
*/
|
|
441
469
|
readonly attemptUnsealAcrossProviders?: boolean;
|
|
442
470
|
}
|
|
443
|
-
/** Test-only: reset the brotli detection cache between tests. */
|
|
444
|
-
declare function resetBrotliSupportCache(): void;
|
|
445
471
|
/**
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
* via `vault.getBundleHandle()` — same handle on
|
|
451
|
-
* every export from the same vault instance, so cloud
|
|
452
|
-
* adapters can use it as a primary key.
|
|
453
|
-
* 2. `vault.dump()` → JSON string with encrypted records
|
|
454
|
-
* inside.
|
|
455
|
-
* 3. UTF-8 encode the dump string.
|
|
456
|
-
* 4. Compress (brotli if available, gzip fallback by default).
|
|
457
|
-
* 5. Compute SHA-256 of the compressed body for integrity.
|
|
458
|
-
* 6. Build the minimum-disclosure header from format version,
|
|
459
|
-
* handle, body length, body sha.
|
|
460
|
-
* 7. Serialize: magic (4) + flags (1) + algo (1) + headerLen (4)
|
|
461
|
-
* + header JSON (N) + compressed body (M).
|
|
462
|
-
*
|
|
463
|
-
* The output is a single `Uint8Array`. Consumers writing to disk
|
|
464
|
-
* pass it to `fs.writeFile`; consumers uploading to cloud storage
|
|
465
|
-
* pass it as the request body. The `@noy-db/file` adapter wraps
|
|
466
|
-
* this with a `saveBundle(path, vault)` helper.
|
|
472
|
+
* Transfer-seal payload. The destination DEKs, exported to raw
|
|
473
|
+
* bytes and AES-256-GCM-sealed *as a set* under the one-time transfer
|
|
474
|
+
* key. `adoptPartition` unseals this; `createOwnerOnAdoptedPartition`
|
|
475
|
+
* re-wraps the raw DEKs under the recipient's KEK.
|
|
467
476
|
*/
|
|
477
|
+
interface TransferSealPayload {
|
|
478
|
+
readonly v: 1;
|
|
479
|
+
readonly alg: 'aes-256-gcm-pre-shared';
|
|
480
|
+
readonly sealId: string;
|
|
481
|
+
/** base64(AES-256-GCM(transferKey, JSON of { collection: base64(rawDEK) })) — iv ‖ ct ‖ tag. */
|
|
482
|
+
readonly payload: string;
|
|
483
|
+
}
|
|
484
|
+
/** Test-only: reset the brotli detection cache between tests. */
|
|
485
|
+
declare function resetBrotliSupportCache(): void;
|
|
468
486
|
declare function writeNoydbBundle(vault: Vault, opts?: WriteNoydbBundleOptions): Promise<Uint8Array>;
|
|
469
487
|
/**
|
|
470
488
|
* Read just the bundle header — no body decompression, no
|
|
@@ -582,4 +600,4 @@ declare function generateULID(): string;
|
|
|
582
600
|
*/
|
|
583
601
|
declare function isULID(value: string): boolean;
|
|
584
602
|
|
|
585
|
-
export { type AutoCredential as A,
|
|
603
|
+
export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
|
package/dist/util/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/util/index.ts
|
|
21
21
|
var util_exports = {};
|
|
22
22
|
__export(util_exports, {
|
|
23
|
+
isDiscriminant: () => isDiscriminant,
|
|
23
24
|
sanitizeFilename: () => sanitizeFilename
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(util_exports);
|
|
@@ -223,8 +224,14 @@ function truncateToByteCap(s, max) {
|
|
|
223
224
|
}
|
|
224
225
|
return out;
|
|
225
226
|
}
|
|
227
|
+
|
|
228
|
+
// src/util/discriminant.ts
|
|
229
|
+
function isDiscriminant(record, key, value) {
|
|
230
|
+
return record[key] === value;
|
|
231
|
+
}
|
|
226
232
|
// Annotate the CommonJS export names for ESM import in node:
|
|
227
233
|
0 && (module.exports = {
|
|
234
|
+
isDiscriminant,
|
|
228
235
|
sanitizeFilename
|
|
229
236
|
});
|
|
230
237
|
//# sourceMappingURL=index.cjs.map
|