@noy-db/hub 0.2.0-pre.21 → 0.2.0-pre.24
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.map +1 -1
- package/dist/aggregate/index.d.cts +3 -3
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +5 -5
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +4 -4
- package/dist/attestation/index.d.ts +4 -4
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +6 -6
- package/dist/blobs/index.d.ts +6 -6
- package/dist/blobs/index.js +6 -6
- package/dist/bundle/index.cjs +21173 -21341
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +15 -6
- package/dist/bundle/index.d.ts +15 -6
- package/dist/bundle/index.js +58 -193
- package/dist/bundle/index.js.map +1 -1
- package/dist/{chunk-CQYEDODS.js → chunk-35U5YNRR.js} +3 -3
- package/dist/{chunk-NV4IHBZS.js → chunk-3XJU3OHE.js} +5 -5
- package/dist/{chunk-OTWT6BAJ.js → chunk-4BB4T3O7.js} +12 -2
- package/dist/chunk-4BB4T3O7.js.map +1 -0
- package/dist/{chunk-IVZWHIEK.js → chunk-4HEGG5NJ.js} +5 -5
- package/dist/{chunk-WE2BUQD2.js → chunk-4TCMCCC3.js} +5 -3
- package/dist/{chunk-5YTXYPES.js → chunk-5A2FVGHT.js} +5 -5
- package/dist/{chunk-NSXNXLYM.js → chunk-5GZC2ZM3.js} +2 -2
- package/dist/{chunk-JYNH4FIM.js → chunk-77WF53XY.js} +4 -4
- package/dist/{chunk-O5XKZCUD.js → chunk-7X4EF35A.js} +5 -5
- package/dist/{chunk-SQKAECUL.js → chunk-7ZCTUI26.js} +2 -2
- package/dist/{chunk-J6RGRZOY.js → chunk-AO3QSMCU.js} +2 -2
- package/dist/{chunk-JDCPRJVS.js → chunk-AONK5GCC.js} +4 -4
- package/dist/{chunk-FRRJIUSI.js → chunk-B5CSNGSE.js} +17 -9
- package/dist/chunk-B5CSNGSE.js.map +1 -0
- package/dist/{chunk-IY24WS2P.js → chunk-BCMHJYVT.js} +4 -4
- package/dist/{chunk-IY24WS2P.js.map → chunk-BCMHJYVT.js.map} +1 -1
- package/dist/{chunk-TYMDCIQM.js → chunk-C472BRJ4.js} +4 -4
- package/dist/{chunk-MBXKRHSS.js → chunk-CCNRFAL3.js} +2 -2
- package/dist/{chunk-BZW5IL43.js → chunk-DCA2BDHA.js} +4 -4
- package/dist/{chunk-JBBWALNI.js → chunk-DCICHSRS.js} +2 -2
- package/dist/{chunk-2XA2ZML4.js → chunk-FG6IQ3ZL.js} +3 -3
- package/dist/{chunk-C2RJVZZL.js → chunk-G4GW5VOS.js} +2 -2
- package/dist/{chunk-U2XSUCDF.js → chunk-GEWIFM4J.js} +2 -2
- package/dist/{chunk-TNH5SLCD.js → chunk-HD4QCT2O.js} +2 -2
- package/dist/{chunk-I3IYTUUI.js → chunk-HHJ5DZCZ.js} +3 -3
- package/dist/{chunk-6QAZ5O6X.js → chunk-IEIADIPM.js} +2 -2
- package/dist/{chunk-YPIOFSN3.js → chunk-IHAISFXP.js} +2 -2
- package/dist/{chunk-GJTKMME7.js → chunk-JKM2AVVH.js} +2 -2
- package/dist/{chunk-EYK72OTL.js → chunk-JRMOSIH4.js} +5 -5
- package/dist/chunk-JRMOSIH4.js.map +1 -0
- package/dist/{chunk-S45MDEEF.js → chunk-LMWVNF6X.js} +2 -2
- package/dist/{chunk-TA6HPKWQ.js → chunk-LR7CODVN.js} +1 -1
- package/dist/chunk-LR7CODVN.js.map +1 -0
- package/dist/{chunk-TAMRU7A2.js → chunk-OKV7S356.js} +4 -4
- package/dist/{chunk-HYJMAV53.js → chunk-OWAMTSAI.js} +93 -93
- package/dist/chunk-OWAMTSAI.js.map +1 -0
- package/dist/{chunk-IW4L4X65.js → chunk-P5A4E53B.js} +2 -2
- package/dist/{chunk-JOK73NDT.js → chunk-P7OL22JP.js} +3 -3
- package/dist/{chunk-7PH4OPBZ.js → chunk-QOXZM3L2.js} +762 -134
- package/dist/chunk-QOXZM3L2.js.map +1 -0
- package/dist/chunk-R43KS34V.js +399 -0
- package/dist/chunk-R43KS34V.js.map +1 -0
- package/dist/{chunk-TGIJTNM3.js → chunk-R5ZECURV.js} +2 -2
- package/dist/{chunk-KOAJ3TZM.js → chunk-RFEXGW3L.js} +2 -2
- package/dist/{chunk-F5ILTHMU.js → chunk-RNQPDV75.js} +5 -5
- package/dist/{chunk-WWVJXBOT.js → chunk-SGM7CK7R.js} +5 -5
- package/dist/{chunk-7MRT7EPB.js → chunk-SOQE5DUV.js} +3 -3
- package/dist/{chunk-F5GWNSE2.js → chunk-TOMSCJRV.js} +3 -3
- package/dist/{chunk-F5GWNSE2.js.map → chunk-TOMSCJRV.js.map} +1 -1
- package/dist/{chunk-ZONKSLF2.js → chunk-TQMQZOMX.js} +2 -2
- package/dist/{chunk-3HNKR65T.js → chunk-U6LTLN7O.js} +3 -3
- package/dist/{chunk-UU6M64HI.js → chunk-UAK2AMO2.js} +4 -4
- package/dist/{chunk-37VGJM3T.js → chunk-WQ3KAGOV.js} +2 -2
- package/dist/{chunk-C6W5KVDV.js → chunk-XC32SZPW.js} +35 -35
- package/dist/chunk-XC32SZPW.js.map +1 -0
- package/dist/{chunk-AI4USDRI.js → chunk-XQO4TAJS.js} +4 -4
- package/dist/{chunk-SQOK5UM6.js → chunk-ZBENTRFS.js} +2 -2
- package/dist/{chunk-6QE4DUYC.js → chunk-ZDITTESU.js} +2 -2
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-456N7UVX.js → crypto-2LU6XUFF.js} +3 -3
- package/dist/{delegation-DP4COTXB.js → delegation-6ABSJGXV.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +6 -6
- package/dist/derivations/index.d.ts +6 -6
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-CpKSkl2c.d.ts → dev-unlock-BlhRHr6p.d.ts} +1 -1
- package/dist/{dev-unlock-CY0HIZA0.d.cts → dev-unlock-DURe4IvF.d.cts} +1 -1
- package/dist/{errors-Dkc_fi-S.d.cts → errors-B2tUcRPg.d.cts} +19 -5
- package/dist/{errors-Dkc_fi-S.d.ts → errors-B2tUcRPg.d.ts} +19 -5
- package/dist/executor-JKMSEB34.js +8 -0
- package/dist/executor-UYXSQB4D.js +12 -0
- package/dist/executor-VJSCTBWY.js +8 -0
- package/dist/{fanout-sidecar-YXNAEZ33.js → fanout-sidecar-ZQT4Y7PF.js} +2 -2
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +6 -6
- package/dist/guards/index.d.ts +6 -6
- package/dist/guards/index.js +6 -6
- package/dist/{hash-BSd0-_L8.d.cts → hash-CqRZfDZH.d.cts} +1 -1
- package/dist/{hash-BnBQx39y.d.ts → hash-cF4iWaBV.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +6 -6
- package/dist/history/index.d.ts +6 -6
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +5 -5
- package/dist/i18n/index.d.ts +5 -5
- package/dist/i18n/index.js +6 -6
- package/dist/index-B8MoIS7B.d.ts +70 -0
- package/dist/{index-Bm9hIY7t.d.ts → index-BLff_E35.d.ts} +2 -2
- package/dist/{index-tZqVB9g5.d.cts → index-BthnP2MA.d.cts} +2 -2
- package/dist/index-da0M3NnR.d.cts +70 -0
- package/dist/index.cjs +25861 -25119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -80
- package/dist/index.d.ts +135 -80
- package/dist/index.js +93 -52
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +4 -4
- package/dist/issue-KLRMW5DH.js +12 -0
- package/dist/kernel/index.cjs +657 -0
- package/dist/kernel/index.cjs.map +1 -0
- package/dist/kernel/index.d.cts +11 -0
- package/dist/kernel/index.d.ts +11 -0
- package/dist/kernel/index.js +40 -0
- package/dist/{ledger-I7JUYP4L.js → ledger-VOS2X3WJ.js} +5 -5
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +6 -6
- package/dist/materialized-views/index.d.ts +6 -6
- package/dist/materialized-views/index.js +8 -8
- package/dist/{mime-magic-CjSyakO4.d.ts → mime-magic-BswIvWkR.d.ts} +1 -1
- package/dist/{mime-magic-BnJCGJzB.d.cts → mime-magic-CCrP-iXJ.d.cts} +1 -1
- package/dist/{ulid-B2L_aqVA.d.ts → multi-bundle-6s5nKAZX.d.ts} +114 -58
- package/dist/{ulid-LaxfH2tK.d.cts → multi-bundle-WhYiJEgV.d.cts} +114 -58
- package/dist/noydb-2PI2ZBX6.js +38 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +6 -6
- package/dist/overlay-views/index.d.ts +6 -6
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +5 -5
- package/dist/periods/index.d.ts +5 -5
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-5XRTUNKF.js → public-envelope-IJJMWSTJ.js} +4 -4
- 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 +7 -7
- package/dist/registry-GAIFVWXF.js +8 -0
- package/dist/registry-J77ZUQ7G.js +8 -0
- package/dist/{registry-NWHOLD5M.js → registry-JGEVJ6YC.js} +3 -3
- package/dist/{revoke-5IEK22KT.js → revoke-WUY4AYRJ.js} +6 -6
- package/dist/sealed-record/index.cjs.map +1 -1
- package/dist/sealed-record/index.d.cts +1 -1
- package/dist/sealed-record/index.d.ts +1 -1
- package/dist/sealed-record/index.js +2 -2
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +6 -6
- package/dist/session/index.d.ts +6 -6
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +5 -5
- package/dist/shadow/index.d.ts +5 -5
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-I6YARZQA.js → signer-UJF3CFDC.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +5 -5
- package/dist/snapshots/index.d.ts +5 -5
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-CPESGAPL.js → stale-PW6VBGSP.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +5 -5
- package/dist/store/index.d.ts +5 -5
- package/dist/store/index.js +2 -2
- package/dist/{strategy-WtB-jXYv.d.cts → strategy-BWmgRPA2.d.cts} +1 -1
- package/dist/{strategy-54eIwox5.d.ts → strategy-D47TC5X6.d.ts} +1 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +4 -4
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs +10 -3
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +5 -5
- package/dist/team/index.d.ts +5 -5
- package/dist/team/index.js +8 -8
- package/dist/{transition-guard-Dmpqzg-_.d.cts → transition-guard-C3NxfVKk.d.cts} +1 -1
- package/dist/{transition-guard-D4bfIAiW.d.ts → transition-guard-CQH5263l.d.ts} +1 -1
- package/dist/tx/index.cjs +1 -1
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +5 -5
- package/dist/tx/index.d.ts +5 -5
- package/dist/tx/index.js +3 -3
- package/dist/{types-DLfWFr6U.d.ts → types-BGRX6sPT.d.ts} +546 -580
- package/dist/{types-DyOI6XZ_.d.cts → types-COQ6qJZh.d.cts} +546 -580
- package/dist/ulid-DRH25k3y.d.cts +66 -0
- package/dist/ulid-DRH25k3y.d.ts +66 -0
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-materialized-view-DNULSxoP.d.ts → with-materialized-view-Cj-6fuav.d.ts} +1 -1
- package/dist/{with-materialized-view-CeZYGJVf.d.cts → with-materialized-view-D4U-KrBH.d.cts} +1 -1
- package/dist/{with-overlayed-view-kdcPGHih.d.cts → with-overlayed-view-BKjdUPRx.d.cts} +1 -1
- package/dist/{with-overlayed-view-C9joG7UZ.d.ts → with-overlayed-view-COp_7EEy.d.ts} +1 -1
- package/dist/{with-rollup-DJDbrxjf.d.ts → with-rollup-B1_ZjG02.d.ts} +1 -1
- package/dist/{with-rollup-s58XAeWO.d.cts → with-rollup-C-Bok_o2.d.cts} +1 -1
- package/package.json +13 -3
- package/dist/chunk-7PH4OPBZ.js.map +0 -1
- package/dist/chunk-C6W5KVDV.js.map +0 -1
- package/dist/chunk-EYK72OTL.js.map +0 -1
- package/dist/chunk-FRRJIUSI.js.map +0 -1
- package/dist/chunk-HYJMAV53.js.map +0 -1
- package/dist/chunk-JTI57WRT.js +0 -164
- package/dist/chunk-JTI57WRT.js.map +0 -1
- package/dist/chunk-OTWT6BAJ.js.map +0 -1
- package/dist/chunk-TA6HPKWQ.js.map +0 -1
- package/dist/chunk-ZC7J6ZYV.js +0 -7
- package/dist/chunk-ZC7J6ZYV.js.map +0 -1
- package/dist/executor-4IEW4KG5.js +0 -8
- package/dist/executor-KYJCJCIN.js +0 -12
- package/dist/executor-W7VIBOBZ.js +0 -8
- package/dist/issue-JXC6T2QR.js +0 -12
- package/dist/noydb-ZZCRF6TE.js +0 -38
- package/dist/registry-ATRHOG5B.js +0 -8
- package/dist/registry-LEHB26TY.js +0 -8
- package/dist/state-vault-JR3CFGNP.js +0 -14
- package/dist/vault-group-BB246VIM.js +0 -804
- package/dist/vault-group-BB246VIM.js.map +0 -1
- /package/dist/{chunk-CQYEDODS.js.map → chunk-35U5YNRR.js.map} +0 -0
- /package/dist/{chunk-NV4IHBZS.js.map → chunk-3XJU3OHE.js.map} +0 -0
- /package/dist/{chunk-IVZWHIEK.js.map → chunk-4HEGG5NJ.js.map} +0 -0
- /package/dist/{chunk-WE2BUQD2.js.map → chunk-4TCMCCC3.js.map} +0 -0
- /package/dist/{chunk-5YTXYPES.js.map → chunk-5A2FVGHT.js.map} +0 -0
- /package/dist/{chunk-NSXNXLYM.js.map → chunk-5GZC2ZM3.js.map} +0 -0
- /package/dist/{chunk-JYNH4FIM.js.map → chunk-77WF53XY.js.map} +0 -0
- /package/dist/{chunk-O5XKZCUD.js.map → chunk-7X4EF35A.js.map} +0 -0
- /package/dist/{chunk-SQKAECUL.js.map → chunk-7ZCTUI26.js.map} +0 -0
- /package/dist/{chunk-J6RGRZOY.js.map → chunk-AO3QSMCU.js.map} +0 -0
- /package/dist/{chunk-JDCPRJVS.js.map → chunk-AONK5GCC.js.map} +0 -0
- /package/dist/{chunk-TYMDCIQM.js.map → chunk-C472BRJ4.js.map} +0 -0
- /package/dist/{chunk-MBXKRHSS.js.map → chunk-CCNRFAL3.js.map} +0 -0
- /package/dist/{chunk-BZW5IL43.js.map → chunk-DCA2BDHA.js.map} +0 -0
- /package/dist/{chunk-JBBWALNI.js.map → chunk-DCICHSRS.js.map} +0 -0
- /package/dist/{chunk-2XA2ZML4.js.map → chunk-FG6IQ3ZL.js.map} +0 -0
- /package/dist/{chunk-C2RJVZZL.js.map → chunk-G4GW5VOS.js.map} +0 -0
- /package/dist/{chunk-U2XSUCDF.js.map → chunk-GEWIFM4J.js.map} +0 -0
- /package/dist/{chunk-TNH5SLCD.js.map → chunk-HD4QCT2O.js.map} +0 -0
- /package/dist/{chunk-I3IYTUUI.js.map → chunk-HHJ5DZCZ.js.map} +0 -0
- /package/dist/{chunk-6QAZ5O6X.js.map → chunk-IEIADIPM.js.map} +0 -0
- /package/dist/{chunk-YPIOFSN3.js.map → chunk-IHAISFXP.js.map} +0 -0
- /package/dist/{chunk-GJTKMME7.js.map → chunk-JKM2AVVH.js.map} +0 -0
- /package/dist/{chunk-S45MDEEF.js.map → chunk-LMWVNF6X.js.map} +0 -0
- /package/dist/{chunk-TAMRU7A2.js.map → chunk-OKV7S356.js.map} +0 -0
- /package/dist/{chunk-IW4L4X65.js.map → chunk-P5A4E53B.js.map} +0 -0
- /package/dist/{chunk-JOK73NDT.js.map → chunk-P7OL22JP.js.map} +0 -0
- /package/dist/{chunk-TGIJTNM3.js.map → chunk-R5ZECURV.js.map} +0 -0
- /package/dist/{chunk-KOAJ3TZM.js.map → chunk-RFEXGW3L.js.map} +0 -0
- /package/dist/{chunk-F5ILTHMU.js.map → chunk-RNQPDV75.js.map} +0 -0
- /package/dist/{chunk-WWVJXBOT.js.map → chunk-SGM7CK7R.js.map} +0 -0
- /package/dist/{chunk-7MRT7EPB.js.map → chunk-SOQE5DUV.js.map} +0 -0
- /package/dist/{chunk-ZONKSLF2.js.map → chunk-TQMQZOMX.js.map} +0 -0
- /package/dist/{chunk-3HNKR65T.js.map → chunk-U6LTLN7O.js.map} +0 -0
- /package/dist/{chunk-UU6M64HI.js.map → chunk-UAK2AMO2.js.map} +0 -0
- /package/dist/{chunk-37VGJM3T.js.map → chunk-WQ3KAGOV.js.map} +0 -0
- /package/dist/{chunk-AI4USDRI.js.map → chunk-XQO4TAJS.js.map} +0 -0
- /package/dist/{chunk-SQOK5UM6.js.map → chunk-ZBENTRFS.js.map} +0 -0
- /package/dist/{chunk-6QE4DUYC.js.map → chunk-ZDITTESU.js.map} +0 -0
- /package/dist/{crypto-456N7UVX.js.map → crypto-2LU6XUFF.js.map} +0 -0
- /package/dist/{delegation-DP4COTXB.js.map → delegation-6ABSJGXV.js.map} +0 -0
- /package/dist/{executor-4IEW4KG5.js.map → executor-JKMSEB34.js.map} +0 -0
- /package/dist/{executor-KYJCJCIN.js.map → executor-UYXSQB4D.js.map} +0 -0
- /package/dist/{executor-W7VIBOBZ.js.map → executor-VJSCTBWY.js.map} +0 -0
- /package/dist/{fanout-sidecar-YXNAEZ33.js.map → fanout-sidecar-ZQT4Y7PF.js.map} +0 -0
- /package/dist/{issue-JXC6T2QR.js.map → issue-KLRMW5DH.js.map} +0 -0
- /package/dist/{ledger-I7JUYP4L.js.map → kernel/index.js.map} +0 -0
- /package/dist/{noydb-ZZCRF6TE.js.map → ledger-VOS2X3WJ.js.map} +0 -0
- /package/dist/{public-envelope-5XRTUNKF.js.map → noydb-2PI2ZBX6.js.map} +0 -0
- /package/dist/{registry-ATRHOG5B.js.map → public-envelope-IJJMWSTJ.js.map} +0 -0
- /package/dist/{registry-LEHB26TY.js.map → registry-GAIFVWXF.js.map} +0 -0
- /package/dist/{registry-NWHOLD5M.js.map → registry-J77ZUQ7G.js.map} +0 -0
- /package/dist/{revoke-5IEK22KT.js.map → registry-JGEVJ6YC.js.map} +0 -0
- /package/dist/{signer-I6YARZQA.js.map → revoke-WUY4AYRJ.js.map} +0 -0
- /package/dist/{stale-CPESGAPL.js.map → signer-UJF3CFDC.js.map} +0 -0
- /package/dist/{state-vault-JR3CFGNP.js.map → stale-PW6VBGSP.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { w as withMaterializedView } from '../with-materialized-view-
|
|
2
|
-
import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-
|
|
3
|
-
export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-
|
|
4
|
-
import { Q as Query } from '../index-
|
|
5
|
-
export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-
|
|
1
|
+
export { w as withMaterializedView } from '../with-materialized-view-D4U-KrBH.cjs';
|
|
2
|
+
import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-COQ6qJZh.cjs';
|
|
3
|
+
export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-COQ6qJZh.cjs';
|
|
4
|
+
import { Q as Query } from '../index-BthnP2MA.cjs';
|
|
5
|
+
export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-B2tUcRPg.cjs';
|
|
6
6
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
7
7
|
import '../predicate-BmhBSPCH.cjs';
|
|
8
|
-
import '../strategy-
|
|
8
|
+
import '../strategy-BWmgRPA2.cjs';
|
|
9
9
|
import '../strategy-BSxFXGzb.cjs';
|
|
10
10
|
import '../index-BMmajblo.cjs';
|
|
11
11
|
import '@noy-db/attestation';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { w as withMaterializedView } from '../with-materialized-view-
|
|
2
|
-
import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-
|
|
3
|
-
export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-
|
|
4
|
-
import { Q as Query } from '../index-
|
|
5
|
-
export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-
|
|
1
|
+
export { w as withMaterializedView } from '../with-materialized-view-Cj-6fuav.js';
|
|
2
|
+
import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-BGRX6sPT.js';
|
|
3
|
+
export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-BGRX6sPT.js';
|
|
4
|
+
import { Q as Query } from '../index-BLff_E35.js';
|
|
5
|
+
export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-B2tUcRPg.js';
|
|
6
6
|
import '../lazy-builder-ChSqcF5t.js';
|
|
7
7
|
import '../predicate-BmhBSPCH.js';
|
|
8
|
-
import '../strategy-
|
|
8
|
+
import '../strategy-D47TC5X6.js';
|
|
9
9
|
import '../strategy-BSxFXGzb.js';
|
|
10
10
|
import '../index-BMmajblo.js';
|
|
11
11
|
import '@noy-db/attestation';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withMaterializedView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZDITTESU.js";
|
|
4
4
|
import {
|
|
5
5
|
MaterializedViewExecutor
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5A2FVGHT.js";
|
|
7
7
|
import {
|
|
8
8
|
MaterializedViewRegistry,
|
|
9
9
|
analyzeDependencies,
|
|
10
10
|
canonicalizeQueryPlan,
|
|
11
11
|
computeQueryHash,
|
|
12
12
|
summarizeQueryPlan
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-RFEXGW3L.js";
|
|
14
14
|
import {
|
|
15
15
|
clearMVStale,
|
|
16
16
|
isMVStale,
|
|
17
17
|
markMVStale,
|
|
18
18
|
resolveStaleMVOnRead
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-P5A4E53B.js";
|
|
20
|
+
import "../chunk-77WF53XY.js";
|
|
21
|
+
import "../chunk-GEWIFM4J.js";
|
|
22
|
+
import "../chunk-HD4QCT2O.js";
|
|
23
23
|
import {
|
|
24
24
|
MaterializedViewConfigError,
|
|
25
25
|
MaterializedViewCycleError,
|
|
26
26
|
MaterializedViewSourceUnknownError,
|
|
27
27
|
MaterializedViewTooLargeError
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-4BB4T3O7.js";
|
|
29
29
|
export {
|
|
30
30
|
MaterializedViewConfigError,
|
|
31
31
|
MaterializedViewCycleError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bg as PublicEnvelope, bh as BundleRecipient, bd as SealingKeyProvider, bi as RecipientSealer, bj as RecipientHint, bc as Vault } from './types-BGRX6sPT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -535,69 +535,125 @@ declare function readNoydbBundlePublicEnvelope(bytes: Uint8Array, opts?: {
|
|
|
535
535
|
*/
|
|
536
536
|
declare function readNoydbBundle(bytes: Uint8Array, opts?: ReadNoydbBundleOptions): Promise<NoydbBundleReadResult>;
|
|
537
537
|
|
|
538
|
+
/** One decrypted record from an extracted-partition compartment. */
|
|
539
|
+
interface DecryptedRecord {
|
|
540
|
+
readonly id: string;
|
|
541
|
+
readonly record: Record<string, unknown>;
|
|
542
|
+
/** Source envelope write timestamp (ISO) — for last-write-wins merges. */
|
|
543
|
+
readonly ts: string;
|
|
544
|
+
/** Source envelope version. */
|
|
545
|
+
readonly version: number;
|
|
546
|
+
/** Provenance source id (FR-5). Present only when the source collection had provenance:true and a source was supplied on put. */
|
|
547
|
+
readonly source?: string;
|
|
548
|
+
/** ISO-8601 timestamp the provenance source was recorded (FR-5). */
|
|
549
|
+
readonly sourceTs?: string;
|
|
550
|
+
}
|
|
538
551
|
/**
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
* timestamp randomness
|
|
552
|
-
* ```
|
|
553
|
-
*
|
|
554
|
-
* The first 10 chars encode a millisecond Unix timestamp (so ULIDs
|
|
555
|
-
* sort lexicographically by creation time), and the remaining 16
|
|
556
|
-
* chars are random. Crockford base32 omits I/L/O/U to avoid
|
|
557
|
-
* ambiguity in handwriting and URLs.
|
|
558
|
-
*
|
|
559
|
-
* **Why hand-roll instead of pulling in `ulid`?** The package adds
|
|
560
|
-
* a dep, the implementation is ~30 lines, and the bundle module
|
|
561
|
-
* is the only consumer. Adding `ulid` would also drag in its own
|
|
562
|
-
* crypto polyfill that we don't need on Node 18+ or modern
|
|
563
|
-
* browsers.
|
|
552
|
+
* Decrypt every record of an extracted-partition bundle to plaintext,
|
|
553
|
+
* grouped by collection. Throws if the bundle isn't an
|
|
554
|
+
* extracted-partition or the transfer key is wrong.
|
|
555
|
+
*/
|
|
556
|
+
declare function decryptExtractedPartition(bundleBytes: Uint8Array, transferKey: Uint8Array): Promise<Record<string, DecryptedRecord[]>>;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Multi-compartment `.noydb` bundle (`NDBM`). A thin outer container
|
|
560
|
+
* that embeds N standard single-vault `.noydb` bundles plus an
|
|
561
|
+
* unencrypted, owner-curated **manifest**. The v1 single-vault format
|
|
562
|
+
* is untouched; each compartment is a complete v1 bundle, produced by
|
|
563
|
+
* `writeNoydbBundle` and read by `readNoydbBundle`.
|
|
564
564
|
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
* - Pro: lexicographic sortability lets bundle adapters list
|
|
568
|
-
* newest-first without an extra index.
|
|
569
|
-
* - Con: a casual observer can read the bundle's creation time
|
|
570
|
-
* from the handle. They cannot read it from any OTHER field
|
|
571
|
-
* (the header explicitly forbids `_exported_at`), and a
|
|
572
|
-
* creation timestamp is the same kind of metadata that
|
|
573
|
-
* filesystem mtime would already expose for a downloaded
|
|
574
|
-
* bundle. The leak is therefore equivalent to what's already
|
|
575
|
-
* visible from the file's mtime — not a new exposure.
|
|
565
|
+
* Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
|
|
566
|
+
* · manifest JSON · concat(inner v1 bundles, in manifest order).
|
|
576
567
|
*
|
|
577
|
-
*
|
|
578
|
-
* format could specify "use the random portion only" without a
|
|
579
|
-
* format break — `validateBundleHeader` only checks the regex
|
|
580
|
-
* shape, not the encoded timestamp.
|
|
568
|
+
* @packageDocumentation
|
|
581
569
|
*/
|
|
570
|
+
|
|
571
|
+
/** Magic bytes 'NDBM' — NOYDB Multi-compartment bundle. */
|
|
572
|
+
declare const NOYDB_MULTI_BUNDLE_MAGIC: Uint8Array<ArrayBuffer>;
|
|
573
|
+
/** Fixed prefix: magic(4) + version(1) + reserved(1) + manifestLen(4). */
|
|
574
|
+
declare const NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
|
|
575
|
+
/** Current multi-bundle layout version. */
|
|
576
|
+
declare const NOYDB_MULTI_BUNDLE_VERSION = 1;
|
|
577
|
+
/** One compartment's entry in the pre-decrypt manifest. */
|
|
578
|
+
interface CompartmentManifest {
|
|
579
|
+
/** The inner v1 bundle's stable ULID handle. */
|
|
580
|
+
readonly handle: string;
|
|
581
|
+
/** Owner-curated classification (e.g. 'shard', 'pool'). Opt-in. */
|
|
582
|
+
readonly roleTag?: string;
|
|
583
|
+
/** ISO export timestamp. Always set by the writer; absent for a v1 bundle read as a 1-entry manifest. */
|
|
584
|
+
readonly exportedAt?: string;
|
|
585
|
+
/** Compartment (vault) name. Opt-in disclosure. */
|
|
586
|
+
readonly name?: string;
|
|
587
|
+
/** Collection names + record counts. Opt-in disclosure. */
|
|
588
|
+
readonly collections?: readonly {
|
|
589
|
+
readonly name: string;
|
|
590
|
+
readonly count: number;
|
|
591
|
+
}[];
|
|
592
|
+
/** Inner bundle's owner-curated public envelope, surfaced. Opt-in. */
|
|
593
|
+
readonly publicEnvelope?: PublicEnvelope;
|
|
594
|
+
/** Byte length of the inner v1 bundle (drives framing). */
|
|
595
|
+
readonly innerBytes: number;
|
|
596
|
+
/** SHA-256 (lowercase hex) of the inner v1 bundle bytes — pre-decrypt integrity. */
|
|
597
|
+
readonly innerSha256: string;
|
|
598
|
+
/** Source vault's schema fence version at extract time (FR-8). Opt-in; absent on older bundles. */
|
|
599
|
+
readonly schemaVersion?: number;
|
|
600
|
+
}
|
|
601
|
+
/** The unencrypted manifest of a multi-compartment bundle. */
|
|
602
|
+
interface MultiBundleManifest {
|
|
603
|
+
readonly multiFormatVersion: number;
|
|
604
|
+
/** Opaque ULID for the outer container. */
|
|
605
|
+
readonly handle: string;
|
|
606
|
+
readonly compartments: readonly CompartmentManifest[];
|
|
607
|
+
}
|
|
608
|
+
/** Assemble the `NDBM` container from a manifest + inner bundle bytes (in manifest order). */
|
|
609
|
+
declare function encodeMultiBundle(manifest: MultiBundleManifest, inner: readonly Uint8Array[]): Uint8Array;
|
|
610
|
+
/** Parse the `NDBM` container into its manifest + raw inner bundle byte slices. */
|
|
611
|
+
declare function decodeMultiBundle(bytes: Uint8Array): {
|
|
612
|
+
manifest: MultiBundleManifest;
|
|
613
|
+
inner: Uint8Array[];
|
|
614
|
+
};
|
|
615
|
+
/** Per-compartment input to {@link writeMultiVaultBundle}. */
|
|
616
|
+
interface MultiVaultCompartmentInput {
|
|
617
|
+
readonly vault: Vault;
|
|
618
|
+
/** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
|
|
619
|
+
readonly roleTag?: string;
|
|
620
|
+
/** ISO timestamp for the manifest; defaults to now. */
|
|
621
|
+
readonly exportedAt?: string;
|
|
622
|
+
/** Opt-in pre-decrypt disclosure for this compartment. */
|
|
623
|
+
readonly disclose?: {
|
|
624
|
+
/** `true` → use `vault.name`; a string → that explicit name. */
|
|
625
|
+
readonly name?: boolean | string;
|
|
626
|
+
/** `true` → include collection names + record counts. */
|
|
627
|
+
readonly collections?: boolean;
|
|
628
|
+
/** `true` → surface the inner bundle's public envelope into the manifest. */
|
|
629
|
+
readonly publicEnvelope?: boolean;
|
|
630
|
+
};
|
|
631
|
+
/** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
|
|
632
|
+
readonly bundleOptions?: WriteNoydbBundleOptions;
|
|
633
|
+
}
|
|
634
|
+
/** Write N vaults into one `NDBM` multi-compartment bundle. */
|
|
635
|
+
declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
|
|
636
|
+
readonly handle?: string;
|
|
637
|
+
}): Promise<Uint8Array>;
|
|
582
638
|
/**
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
*
|
|
587
|
-
* Returns a 26-character string. Calling twice in the same
|
|
588
|
-
* millisecond produces two distinct ULIDs (the random portion
|
|
589
|
-
* differs); ULIDs from the same millisecond are NOT guaranteed
|
|
590
|
-
* to be monotonically ordered relative to each other, only
|
|
591
|
-
* relative to ULIDs from a different millisecond. The bundle
|
|
592
|
-
* format never relies on intra-millisecond ordering.
|
|
639
|
+
* Read the pre-decrypt manifest of a bundle WITHOUT decrypting any
|
|
640
|
+
* compartment. Accepts a multi-compartment `NDBM` bundle (returns its
|
|
641
|
+
* N entries) OR a single v1 `NDB1` bundle (returns a 1-entry manifest,
|
|
642
|
+
* for uniform handling). Throws on anything else.
|
|
593
643
|
*/
|
|
594
|
-
declare function
|
|
644
|
+
declare function readNoydbBundleManifest(bytes: Uint8Array): Promise<CompartmentManifest[]>;
|
|
595
645
|
/**
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
646
|
+
* Extract one compartment's inner v1 `.noydb` bundle bytes, ready to
|
|
647
|
+
* pass to `readNoydbBundle`. `selector` is a compartment `handle` or a
|
|
648
|
+
* zero-based index. For a single v1 bundle, the bundle itself is the
|
|
649
|
+
* only compartment.
|
|
650
|
+
*
|
|
651
|
+
* Does NOT verify the manifest `innerSha256` — it returns the raw
|
|
652
|
+
* slice. Integrity is enforced downstream: `readNoydbBundle` verifies
|
|
653
|
+
* the inner bundle's own `bodySha256`. Callers wanting an early,
|
|
654
|
+
* pre-decrypt check can hash the returned bytes against the
|
|
655
|
+
* compartment's `innerSha256`.
|
|
600
656
|
*/
|
|
601
|
-
declare function
|
|
657
|
+
declare function readMultiVaultBundleCompartment(bytes: Uint8Array, selector: string | number): Uint8Array;
|
|
602
658
|
|
|
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
|
|
659
|
+
export { type AutoCredential as A, hasNoydbBundleMagic as B, COMPRESSION_BROTLI as C, type DecryptedRecord as D, readNoydbBundlePublicEnvelope as E, FLAG_COMPRESSED as F, type MultiBundleManifest as M, 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 CompartmentManifest as c, type CompressionAlgo as d, FLAG_HAS_INTEGRITY_HASH as e, type MultiVaultCompartmentInput as f, NOYDB_BUNDLE_MAGIC as g, NOYDB_BUNDLE_PREFIX_BYTES as h, NOYDB_MULTI_BUNDLE_MAGIC as i, NOYDB_MULTI_BUNDLE_PREFIX_BYTES as j, NOYDB_MULTI_BUNDLE_VERSION as k, type NoydbBundleHeader as l, type NoydbBundleReadResult as m, decodeMultiBundle as n, decryptExtractedPartition as o, encodeBundleHeader as p, encodeMultiBundle as q, readMultiVaultBundleCompartment as r, readNoydbBundle as s, readNoydbBundleHeader as t, readNoydbBundleManifest as u, resetBrotliSupportCache as v, validateBundleHeader as w, writeMultiVaultBundle as x, writeNoydbBundle as y, type AutoCredentialKind as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bg as PublicEnvelope, bh as BundleRecipient, bd as SealingKeyProvider, bi as RecipientSealer, bj as RecipientHint, bc as Vault } from './types-COQ6qJZh.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `.noydb` container format — byte layout, header schema, validators.
|
|
@@ -535,69 +535,125 @@ declare function readNoydbBundlePublicEnvelope(bytes: Uint8Array, opts?: {
|
|
|
535
535
|
*/
|
|
536
536
|
declare function readNoydbBundle(bytes: Uint8Array, opts?: ReadNoydbBundleOptions): Promise<NoydbBundleReadResult>;
|
|
537
537
|
|
|
538
|
+
/** One decrypted record from an extracted-partition compartment. */
|
|
539
|
+
interface DecryptedRecord {
|
|
540
|
+
readonly id: string;
|
|
541
|
+
readonly record: Record<string, unknown>;
|
|
542
|
+
/** Source envelope write timestamp (ISO) — for last-write-wins merges. */
|
|
543
|
+
readonly ts: string;
|
|
544
|
+
/** Source envelope version. */
|
|
545
|
+
readonly version: number;
|
|
546
|
+
/** Provenance source id (FR-5). Present only when the source collection had provenance:true and a source was supplied on put. */
|
|
547
|
+
readonly source?: string;
|
|
548
|
+
/** ISO-8601 timestamp the provenance source was recorded (FR-5). */
|
|
549
|
+
readonly sourceTs?: string;
|
|
550
|
+
}
|
|
538
551
|
/**
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
* timestamp randomness
|
|
552
|
-
* ```
|
|
553
|
-
*
|
|
554
|
-
* The first 10 chars encode a millisecond Unix timestamp (so ULIDs
|
|
555
|
-
* sort lexicographically by creation time), and the remaining 16
|
|
556
|
-
* chars are random. Crockford base32 omits I/L/O/U to avoid
|
|
557
|
-
* ambiguity in handwriting and URLs.
|
|
558
|
-
*
|
|
559
|
-
* **Why hand-roll instead of pulling in `ulid`?** The package adds
|
|
560
|
-
* a dep, the implementation is ~30 lines, and the bundle module
|
|
561
|
-
* is the only consumer. Adding `ulid` would also drag in its own
|
|
562
|
-
* crypto polyfill that we don't need on Node 18+ or modern
|
|
563
|
-
* browsers.
|
|
552
|
+
* Decrypt every record of an extracted-partition bundle to plaintext,
|
|
553
|
+
* grouped by collection. Throws if the bundle isn't an
|
|
554
|
+
* extracted-partition or the transfer key is wrong.
|
|
555
|
+
*/
|
|
556
|
+
declare function decryptExtractedPartition(bundleBytes: Uint8Array, transferKey: Uint8Array): Promise<Record<string, DecryptedRecord[]>>;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Multi-compartment `.noydb` bundle (`NDBM`). A thin outer container
|
|
560
|
+
* that embeds N standard single-vault `.noydb` bundles plus an
|
|
561
|
+
* unencrypted, owner-curated **manifest**. The v1 single-vault format
|
|
562
|
+
* is untouched; each compartment is a complete v1 bundle, produced by
|
|
563
|
+
* `writeNoydbBundle` and read by `readNoydbBundle`.
|
|
564
564
|
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
* - Pro: lexicographic sortability lets bundle adapters list
|
|
568
|
-
* newest-first without an extra index.
|
|
569
|
-
* - Con: a casual observer can read the bundle's creation time
|
|
570
|
-
* from the handle. They cannot read it from any OTHER field
|
|
571
|
-
* (the header explicitly forbids `_exported_at`), and a
|
|
572
|
-
* creation timestamp is the same kind of metadata that
|
|
573
|
-
* filesystem mtime would already expose for a downloaded
|
|
574
|
-
* bundle. The leak is therefore equivalent to what's already
|
|
575
|
-
* visible from the file's mtime — not a new exposure.
|
|
565
|
+
* Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
|
|
566
|
+
* · manifest JSON · concat(inner v1 bundles, in manifest order).
|
|
576
567
|
*
|
|
577
|
-
*
|
|
578
|
-
* format could specify "use the random portion only" without a
|
|
579
|
-
* format break — `validateBundleHeader` only checks the regex
|
|
580
|
-
* shape, not the encoded timestamp.
|
|
568
|
+
* @packageDocumentation
|
|
581
569
|
*/
|
|
570
|
+
|
|
571
|
+
/** Magic bytes 'NDBM' — NOYDB Multi-compartment bundle. */
|
|
572
|
+
declare const NOYDB_MULTI_BUNDLE_MAGIC: Uint8Array<ArrayBuffer>;
|
|
573
|
+
/** Fixed prefix: magic(4) + version(1) + reserved(1) + manifestLen(4). */
|
|
574
|
+
declare const NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
|
|
575
|
+
/** Current multi-bundle layout version. */
|
|
576
|
+
declare const NOYDB_MULTI_BUNDLE_VERSION = 1;
|
|
577
|
+
/** One compartment's entry in the pre-decrypt manifest. */
|
|
578
|
+
interface CompartmentManifest {
|
|
579
|
+
/** The inner v1 bundle's stable ULID handle. */
|
|
580
|
+
readonly handle: string;
|
|
581
|
+
/** Owner-curated classification (e.g. 'shard', 'pool'). Opt-in. */
|
|
582
|
+
readonly roleTag?: string;
|
|
583
|
+
/** ISO export timestamp. Always set by the writer; absent for a v1 bundle read as a 1-entry manifest. */
|
|
584
|
+
readonly exportedAt?: string;
|
|
585
|
+
/** Compartment (vault) name. Opt-in disclosure. */
|
|
586
|
+
readonly name?: string;
|
|
587
|
+
/** Collection names + record counts. Opt-in disclosure. */
|
|
588
|
+
readonly collections?: readonly {
|
|
589
|
+
readonly name: string;
|
|
590
|
+
readonly count: number;
|
|
591
|
+
}[];
|
|
592
|
+
/** Inner bundle's owner-curated public envelope, surfaced. Opt-in. */
|
|
593
|
+
readonly publicEnvelope?: PublicEnvelope;
|
|
594
|
+
/** Byte length of the inner v1 bundle (drives framing). */
|
|
595
|
+
readonly innerBytes: number;
|
|
596
|
+
/** SHA-256 (lowercase hex) of the inner v1 bundle bytes — pre-decrypt integrity. */
|
|
597
|
+
readonly innerSha256: string;
|
|
598
|
+
/** Source vault's schema fence version at extract time (FR-8). Opt-in; absent on older bundles. */
|
|
599
|
+
readonly schemaVersion?: number;
|
|
600
|
+
}
|
|
601
|
+
/** The unencrypted manifest of a multi-compartment bundle. */
|
|
602
|
+
interface MultiBundleManifest {
|
|
603
|
+
readonly multiFormatVersion: number;
|
|
604
|
+
/** Opaque ULID for the outer container. */
|
|
605
|
+
readonly handle: string;
|
|
606
|
+
readonly compartments: readonly CompartmentManifest[];
|
|
607
|
+
}
|
|
608
|
+
/** Assemble the `NDBM` container from a manifest + inner bundle bytes (in manifest order). */
|
|
609
|
+
declare function encodeMultiBundle(manifest: MultiBundleManifest, inner: readonly Uint8Array[]): Uint8Array;
|
|
610
|
+
/** Parse the `NDBM` container into its manifest + raw inner bundle byte slices. */
|
|
611
|
+
declare function decodeMultiBundle(bytes: Uint8Array): {
|
|
612
|
+
manifest: MultiBundleManifest;
|
|
613
|
+
inner: Uint8Array[];
|
|
614
|
+
};
|
|
615
|
+
/** Per-compartment input to {@link writeMultiVaultBundle}. */
|
|
616
|
+
interface MultiVaultCompartmentInput {
|
|
617
|
+
readonly vault: Vault;
|
|
618
|
+
/** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
|
|
619
|
+
readonly roleTag?: string;
|
|
620
|
+
/** ISO timestamp for the manifest; defaults to now. */
|
|
621
|
+
readonly exportedAt?: string;
|
|
622
|
+
/** Opt-in pre-decrypt disclosure for this compartment. */
|
|
623
|
+
readonly disclose?: {
|
|
624
|
+
/** `true` → use `vault.name`; a string → that explicit name. */
|
|
625
|
+
readonly name?: boolean | string;
|
|
626
|
+
/** `true` → include collection names + record counts. */
|
|
627
|
+
readonly collections?: boolean;
|
|
628
|
+
/** `true` → surface the inner bundle's public envelope into the manifest. */
|
|
629
|
+
readonly publicEnvelope?: boolean;
|
|
630
|
+
};
|
|
631
|
+
/** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
|
|
632
|
+
readonly bundleOptions?: WriteNoydbBundleOptions;
|
|
633
|
+
}
|
|
634
|
+
/** Write N vaults into one `NDBM` multi-compartment bundle. */
|
|
635
|
+
declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
|
|
636
|
+
readonly handle?: string;
|
|
637
|
+
}): Promise<Uint8Array>;
|
|
582
638
|
/**
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
*
|
|
587
|
-
* Returns a 26-character string. Calling twice in the same
|
|
588
|
-
* millisecond produces two distinct ULIDs (the random portion
|
|
589
|
-
* differs); ULIDs from the same millisecond are NOT guaranteed
|
|
590
|
-
* to be monotonically ordered relative to each other, only
|
|
591
|
-
* relative to ULIDs from a different millisecond. The bundle
|
|
592
|
-
* format never relies on intra-millisecond ordering.
|
|
639
|
+
* Read the pre-decrypt manifest of a bundle WITHOUT decrypting any
|
|
640
|
+
* compartment. Accepts a multi-compartment `NDBM` bundle (returns its
|
|
641
|
+
* N entries) OR a single v1 `NDB1` bundle (returns a 1-entry manifest,
|
|
642
|
+
* for uniform handling). Throws on anything else.
|
|
593
643
|
*/
|
|
594
|
-
declare function
|
|
644
|
+
declare function readNoydbBundleManifest(bytes: Uint8Array): Promise<CompartmentManifest[]>;
|
|
595
645
|
/**
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
646
|
+
* Extract one compartment's inner v1 `.noydb` bundle bytes, ready to
|
|
647
|
+
* pass to `readNoydbBundle`. `selector` is a compartment `handle` or a
|
|
648
|
+
* zero-based index. For a single v1 bundle, the bundle itself is the
|
|
649
|
+
* only compartment.
|
|
650
|
+
*
|
|
651
|
+
* Does NOT verify the manifest `innerSha256` — it returns the raw
|
|
652
|
+
* slice. Integrity is enforced downstream: `readNoydbBundle` verifies
|
|
653
|
+
* the inner bundle's own `bodySha256`. Callers wanting an early,
|
|
654
|
+
* pre-decrypt check can hash the returned bytes against the
|
|
655
|
+
* compartment's `innerSha256`.
|
|
600
656
|
*/
|
|
601
|
-
declare function
|
|
657
|
+
declare function readMultiVaultBundleCompartment(bytes: Uint8Array, selector: string | number): Uint8Array;
|
|
602
658
|
|
|
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
|
|
659
|
+
export { type AutoCredential as A, hasNoydbBundleMagic as B, COMPRESSION_BROTLI as C, type DecryptedRecord as D, readNoydbBundlePublicEnvelope as E, FLAG_COMPRESSED as F, type MultiBundleManifest as M, 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 CompartmentManifest as c, type CompressionAlgo as d, FLAG_HAS_INTEGRITY_HASH as e, type MultiVaultCompartmentInput as f, NOYDB_BUNDLE_MAGIC as g, NOYDB_BUNDLE_PREFIX_BYTES as h, NOYDB_MULTI_BUNDLE_MAGIC as i, NOYDB_MULTI_BUNDLE_PREFIX_BYTES as j, NOYDB_MULTI_BUNDLE_VERSION as k, type NoydbBundleHeader as l, type NoydbBundleReadResult as m, decodeMultiBundle as n, decryptExtractedPartition as o, encodeBundleHeader as p, encodeMultiBundle as q, readMultiVaultBundleCompartment as r, readNoydbBundle as s, readNoydbBundleHeader as t, readNoydbBundleManifest as u, resetBrotliSupportCache as v, validateBundleHeader as w, writeMultiVaultBundle as x, writeNoydbBundle as y, type AutoCredentialKind as z };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Noydb,
|
|
3
|
+
createNoydb
|
|
4
|
+
} from "./chunk-QOXZM3L2.js";
|
|
5
|
+
import "./chunk-EMIGCR7X.js";
|
|
6
|
+
import "./chunk-BCMHJYVT.js";
|
|
7
|
+
import "./chunk-CCNRFAL3.js";
|
|
8
|
+
import "./chunk-3XJU3OHE.js";
|
|
9
|
+
import "./chunk-FG6IQ3ZL.js";
|
|
10
|
+
import "./chunk-U6LTLN7O.js";
|
|
11
|
+
import "./chunk-JKM2AVVH.js";
|
|
12
|
+
import "./chunk-TQMQZOMX.js";
|
|
13
|
+
import "./chunk-77WF53XY.js";
|
|
14
|
+
import "./chunk-GEWIFM4J.js";
|
|
15
|
+
import "./chunk-XC32SZPW.js";
|
|
16
|
+
import "./chunk-4TCMCCC3.js";
|
|
17
|
+
import "./chunk-P7OL22JP.js";
|
|
18
|
+
import "./chunk-DCA2BDHA.js";
|
|
19
|
+
import "./chunk-HHJ5DZCZ.js";
|
|
20
|
+
import "./chunk-UF3BUNQZ.js";
|
|
21
|
+
import "./chunk-7X4EF35A.js";
|
|
22
|
+
import "./chunk-HD4QCT2O.js";
|
|
23
|
+
import "./chunk-OWAMTSAI.js";
|
|
24
|
+
import "./chunk-TOMSCJRV.js";
|
|
25
|
+
import "./chunk-B5CSNGSE.js";
|
|
26
|
+
import "./chunk-2QR2PQTT.js";
|
|
27
|
+
import "./chunk-FZU343FL.js";
|
|
28
|
+
import "./chunk-AONK5GCC.js";
|
|
29
|
+
import "./chunk-PDVP3C2I.js";
|
|
30
|
+
import "./chunk-35U5YNRR.js";
|
|
31
|
+
import "./chunk-LR7CODVN.js";
|
|
32
|
+
import "./chunk-WQ3KAGOV.js";
|
|
33
|
+
import "./chunk-4BB4T3O7.js";
|
|
34
|
+
export {
|
|
35
|
+
Noydb,
|
|
36
|
+
createNoydb
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=noydb-2PI2ZBX6.js.map
|