@noy-db/hub 0.2.0-pre.24 → 0.2.0-pre.26
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 +5 -5
- 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 +5 -5
- package/dist/bundle/index.cjs +4 -207
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +6 -6
- package/dist/bundle/index.d.ts +6 -6
- package/dist/bundle/index.js +10 -26
- package/dist/bundle/index.js.map +1 -1
- package/dist/{chunk-ZBENTRFS.js → chunk-2KA3PDUR.js} +2 -2
- package/dist/{chunk-OWAMTSAI.js → chunk-2RHBFCWQ.js} +5 -5
- package/dist/{chunk-GEWIFM4J.js → chunk-3BANVNDH.js} +2 -2
- package/dist/{chunk-QOXZM3L2.js → chunk-56ENKU46.js} +49 -62
- package/dist/{chunk-QOXZM3L2.js.map → chunk-56ENKU46.js.map} +1 -1
- package/dist/{chunk-WQ3KAGOV.js → chunk-7JSP3E67.js} +2 -2
- package/dist/{chunk-RNQPDV75.js → chunk-ANLOD6IS.js} +4 -4
- package/dist/{chunk-77WF53XY.js → chunk-C7UIT5XY.js} +4 -4
- package/dist/{chunk-4BB4T3O7.js → chunk-DDOYOMAD.js} +2 -12
- package/dist/chunk-DDOYOMAD.js.map +1 -0
- package/dist/{chunk-R5ZECURV.js → chunk-E5TJAQS7.js} +2 -2
- package/dist/{chunk-BCMHJYVT.js → chunk-EJJTUDNI.js} +3 -3
- package/dist/{chunk-JKM2AVVH.js → chunk-EW3H5Y7N.js} +2 -2
- package/dist/{chunk-AONK5GCC.js → chunk-EYZJULEN.js} +3 -3
- package/dist/{chunk-HHJ5DZCZ.js → chunk-FCIZXX56.js} +3 -3
- package/dist/{chunk-G4GW5VOS.js → chunk-FJ3C3ELF.js} +2 -2
- package/dist/{chunk-TQMQZOMX.js → chunk-FO5WEDKF.js} +2 -2
- package/dist/{chunk-7ZCTUI26.js → chunk-FUDVHE2U.js} +2 -2
- package/dist/{chunk-4HEGG5NJ.js → chunk-GHXOVGTX.js} +4 -4
- package/dist/{chunk-UAK2AMO2.js → chunk-GPZHHTJU.js} +3 -3
- package/dist/{chunk-U6LTLN7O.js → chunk-H4XFA2LM.js} +3 -3
- package/dist/{chunk-P7OL22JP.js → chunk-HUXDQIVU.js} +2 -2
- package/dist/{chunk-TOMSCJRV.js → chunk-J73KU4AE.js} +2 -2
- package/dist/{chunk-7X4EF35A.js → chunk-JJKXJAH2.js} +4 -4
- package/dist/{chunk-HD4QCT2O.js → chunk-KD253AI5.js} +2 -2
- package/dist/{chunk-SGM7CK7R.js → chunk-KJ37E3R5.js} +4 -4
- package/dist/{chunk-LMWVNF6X.js → chunk-KNJ7MK4B.js} +2 -2
- package/dist/{chunk-AO3QSMCU.js → chunk-LX4CPLU6.js} +2 -2
- package/dist/{chunk-4TCMCCC3.js → chunk-N4EXCKWP.js} +3 -5
- package/dist/{chunk-JRMOSIH4.js → chunk-OCRDV3NU.js} +4 -4
- package/dist/{chunk-DCICHSRS.js → chunk-OMBPGXCL.js} +2 -2
- package/dist/{chunk-3XJU3OHE.js → chunk-PS6PSEZL.js} +5 -5
- package/dist/{chunk-ZDITTESU.js → chunk-Q7P4WHTL.js} +2 -2
- package/dist/{chunk-OKV7S356.js → chunk-QYQRAOEF.js} +3 -3
- package/dist/{chunk-IEIADIPM.js → chunk-RHVYFAVQ.js} +2 -2
- package/dist/{chunk-R43KS34V.js → chunk-RZOGD7IF.js} +10 -177
- package/dist/chunk-RZOGD7IF.js.map +1 -0
- package/dist/{chunk-IHAISFXP.js → chunk-SKYBEGHB.js} +2 -2
- package/dist/{chunk-SOQE5DUV.js → chunk-TESFHBOW.js} +3 -3
- package/dist/{chunk-35U5YNRR.js → chunk-TSUICI5N.js} +2 -2
- package/dist/{chunk-B5CSNGSE.js → chunk-UNBX2HMA.js} +3 -3
- package/dist/{chunk-C472BRJ4.js → chunk-VGAN5RLD.js} +3 -3
- package/dist/{chunk-5A2FVGHT.js → chunk-VJNV2GRF.js} +5 -5
- package/dist/{chunk-5GZC2ZM3.js → chunk-VUUQYWF5.js} +2 -2
- package/dist/{chunk-P5A4E53B.js → chunk-WVYL6HM7.js} +2 -2
- package/dist/{chunk-DCA2BDHA.js → chunk-Y5CTT6K5.js} +3 -3
- package/dist/{chunk-XC32SZPW.js → chunk-YP2AYE5W.js} +2 -2
- package/dist/{chunk-RFEXGW3L.js → chunk-YRQPI67X.js} +2 -2
- package/dist/{chunk-CCNRFAL3.js → chunk-YYTM4U4J.js} +2 -2
- package/dist/{chunk-FG6IQ3ZL.js → chunk-ZCBJIDT4.js} +2 -2
- package/dist/{chunk-XQO4TAJS.js → chunk-ZW2YSN6G.js} +4 -4
- 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-2LU6XUFF.js → crypto-YBKBNPVM.js} +3 -3
- package/dist/{multi-bundle-6s5nKAZX.d.ts → decrypt-partition-C71vhnND.d.cts} +2 -103
- package/dist/{multi-bundle-WhYiJEgV.d.cts → decrypt-partition-CyyJUWLR.d.ts} +2 -103
- package/dist/{delegation-6ABSJGXV.js → delegation-4JSMM6BB.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-DURe4IvF.d.cts → dev-unlock-BdrE0kbS.d.cts} +1 -1
- package/dist/{dev-unlock-BlhRHr6p.d.ts → dev-unlock-ByBkl99-.d.ts} +1 -1
- package/dist/{errors-B2tUcRPg.d.ts → errors-Dwk2k1xY.d.cts} +1 -6
- package/dist/{errors-B2tUcRPg.d.cts → errors-Dwk2k1xY.d.ts} +1 -6
- package/dist/executor-3SVNESQ3.js +8 -0
- package/dist/executor-BIW4FT5R.js +12 -0
- package/dist/executor-VEZUBJNQ.js +8 -0
- package/dist/forget/index.js +3 -3
- 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 +3 -3
- package/dist/{hash-CqRZfDZH.d.cts → hash-BUkDp_8Q.d.cts} +1 -1
- package/dist/{hash-cF4iWaBV.d.ts → hash-CZxVv8RH.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 +4 -4
- 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 +5 -5
- package/dist/{index-da0M3NnR.d.cts → index-CBUhOmrM.d.cts} +4 -4
- package/dist/{index-B8MoIS7B.d.ts → index-DFhKV-6A.d.ts} +4 -4
- package/dist/{index-BthnP2MA.d.cts → index-DoxKSsMj.d.cts} +2 -2
- package/dist/{index-BLff_E35.d.ts → index-LaexBi3v.d.ts} +2 -2
- package/dist/index.cjs +5 -190
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +46 -54
- 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-LEBPVF3Y.js +12 -0
- package/dist/kernel/index.cjs +1 -1
- package/dist/kernel/index.cjs.map +1 -1
- package/dist/kernel/index.d.cts +5 -5
- package/dist/kernel/index.d.ts +5 -5
- package/dist/kernel/index.js +5 -5
- package/dist/{ledger-VOS2X3WJ.js → ledger-FLRTSOYH.js} +4 -4
- 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-CCrP-iXJ.d.cts → mime-magic-BAhLjkHw.d.cts} +1 -1
- package/dist/{mime-magic-BswIvWkR.d.ts → mime-magic-C1UbcBxP.d.ts} +1 -1
- package/dist/noydb-6FA46A4M.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 +4 -4
- package/dist/{public-envelope-IJJMWSTJ.js → public-envelope-DBKJEBBF.js} +3 -3
- 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-CMEVTOCN.js +8 -0
- package/dist/{registry-JGEVJ6YC.js → registry-OUZ3VBZA.js} +3 -3
- package/dist/registry-XUBRO5JJ.js +8 -0
- package/dist/{revoke-WUY4AYRJ.js → revoke-P5D3UTRX.js} +5 -5
- 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-UJF3CFDC.js → signer-NEQPCHMW.js} +4 -4
- 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 +3 -3
- package/dist/{stale-PW6VBGSP.js → stale-KKCHF2VB.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-BWmgRPA2.d.cts → strategy-D1zjEV3n.d.cts} +1 -1
- package/dist/{strategy-D47TC5X6.d.ts → strategy-YQ1qJWyq.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 +3 -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 +7 -7
- package/dist/{transition-guard-CQH5263l.d.ts → transition-guard-BSLdikC_.d.ts} +1 -1
- package/dist/{transition-guard-C3NxfVKk.d.cts → transition-guard-DPs6al8h.d.cts} +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-COQ6qJZh.d.cts → types-BCYvhKzr.d.cts} +7 -13
- package/dist/{types-BGRX6sPT.d.ts → types-CCq0WHh9.d.ts} +7 -13
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-materialized-view-D4U-KrBH.d.cts → with-materialized-view-CTHe6uh9.d.cts} +1 -1
- package/dist/{with-materialized-view-Cj-6fuav.d.ts → with-materialized-view-DiD41wQp.d.ts} +1 -1
- package/dist/{with-overlayed-view-COp_7EEy.d.ts → with-overlayed-view-DlbsJMhF.d.ts} +1 -1
- package/dist/{with-overlayed-view-BKjdUPRx.d.cts → with-overlayed-view-Dlz5hcM8.d.cts} +1 -1
- package/dist/{with-rollup-C-Bok_o2.d.cts → with-rollup-BBWdrCvu.d.cts} +1 -1
- package/dist/{with-rollup-B1_ZjG02.d.ts → with-rollup-mT4_CWaU.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-4BB4T3O7.js.map +0 -1
- package/dist/chunk-R43KS34V.js.map +0 -1
- package/dist/executor-JKMSEB34.js +0 -8
- package/dist/executor-UYXSQB4D.js +0 -12
- package/dist/executor-VJSCTBWY.js +0 -8
- package/dist/issue-KLRMW5DH.js +0 -12
- package/dist/noydb-2PI2ZBX6.js +0 -38
- package/dist/registry-GAIFVWXF.js +0 -8
- package/dist/registry-J77ZUQ7G.js +0 -8
- /package/dist/{chunk-ZBENTRFS.js.map → chunk-2KA3PDUR.js.map} +0 -0
- /package/dist/{chunk-OWAMTSAI.js.map → chunk-2RHBFCWQ.js.map} +0 -0
- /package/dist/{chunk-GEWIFM4J.js.map → chunk-3BANVNDH.js.map} +0 -0
- /package/dist/{chunk-WQ3KAGOV.js.map → chunk-7JSP3E67.js.map} +0 -0
- /package/dist/{chunk-RNQPDV75.js.map → chunk-ANLOD6IS.js.map} +0 -0
- /package/dist/{chunk-77WF53XY.js.map → chunk-C7UIT5XY.js.map} +0 -0
- /package/dist/{chunk-R5ZECURV.js.map → chunk-E5TJAQS7.js.map} +0 -0
- /package/dist/{chunk-BCMHJYVT.js.map → chunk-EJJTUDNI.js.map} +0 -0
- /package/dist/{chunk-JKM2AVVH.js.map → chunk-EW3H5Y7N.js.map} +0 -0
- /package/dist/{chunk-AONK5GCC.js.map → chunk-EYZJULEN.js.map} +0 -0
- /package/dist/{chunk-HHJ5DZCZ.js.map → chunk-FCIZXX56.js.map} +0 -0
- /package/dist/{chunk-G4GW5VOS.js.map → chunk-FJ3C3ELF.js.map} +0 -0
- /package/dist/{chunk-TQMQZOMX.js.map → chunk-FO5WEDKF.js.map} +0 -0
- /package/dist/{chunk-7ZCTUI26.js.map → chunk-FUDVHE2U.js.map} +0 -0
- /package/dist/{chunk-4HEGG5NJ.js.map → chunk-GHXOVGTX.js.map} +0 -0
- /package/dist/{chunk-UAK2AMO2.js.map → chunk-GPZHHTJU.js.map} +0 -0
- /package/dist/{chunk-U6LTLN7O.js.map → chunk-H4XFA2LM.js.map} +0 -0
- /package/dist/{chunk-P7OL22JP.js.map → chunk-HUXDQIVU.js.map} +0 -0
- /package/dist/{chunk-TOMSCJRV.js.map → chunk-J73KU4AE.js.map} +0 -0
- /package/dist/{chunk-7X4EF35A.js.map → chunk-JJKXJAH2.js.map} +0 -0
- /package/dist/{chunk-HD4QCT2O.js.map → chunk-KD253AI5.js.map} +0 -0
- /package/dist/{chunk-SGM7CK7R.js.map → chunk-KJ37E3R5.js.map} +0 -0
- /package/dist/{chunk-LMWVNF6X.js.map → chunk-KNJ7MK4B.js.map} +0 -0
- /package/dist/{chunk-AO3QSMCU.js.map → chunk-LX4CPLU6.js.map} +0 -0
- /package/dist/{chunk-4TCMCCC3.js.map → chunk-N4EXCKWP.js.map} +0 -0
- /package/dist/{chunk-JRMOSIH4.js.map → chunk-OCRDV3NU.js.map} +0 -0
- /package/dist/{chunk-DCICHSRS.js.map → chunk-OMBPGXCL.js.map} +0 -0
- /package/dist/{chunk-3XJU3OHE.js.map → chunk-PS6PSEZL.js.map} +0 -0
- /package/dist/{chunk-ZDITTESU.js.map → chunk-Q7P4WHTL.js.map} +0 -0
- /package/dist/{chunk-OKV7S356.js.map → chunk-QYQRAOEF.js.map} +0 -0
- /package/dist/{chunk-IEIADIPM.js.map → chunk-RHVYFAVQ.js.map} +0 -0
- /package/dist/{chunk-IHAISFXP.js.map → chunk-SKYBEGHB.js.map} +0 -0
- /package/dist/{chunk-SOQE5DUV.js.map → chunk-TESFHBOW.js.map} +0 -0
- /package/dist/{chunk-35U5YNRR.js.map → chunk-TSUICI5N.js.map} +0 -0
- /package/dist/{chunk-B5CSNGSE.js.map → chunk-UNBX2HMA.js.map} +0 -0
- /package/dist/{chunk-C472BRJ4.js.map → chunk-VGAN5RLD.js.map} +0 -0
- /package/dist/{chunk-5A2FVGHT.js.map → chunk-VJNV2GRF.js.map} +0 -0
- /package/dist/{chunk-5GZC2ZM3.js.map → chunk-VUUQYWF5.js.map} +0 -0
- /package/dist/{chunk-P5A4E53B.js.map → chunk-WVYL6HM7.js.map} +0 -0
- /package/dist/{chunk-DCA2BDHA.js.map → chunk-Y5CTT6K5.js.map} +0 -0
- /package/dist/{chunk-XC32SZPW.js.map → chunk-YP2AYE5W.js.map} +0 -0
- /package/dist/{chunk-RFEXGW3L.js.map → chunk-YRQPI67X.js.map} +0 -0
- /package/dist/{chunk-CCNRFAL3.js.map → chunk-YYTM4U4J.js.map} +0 -0
- /package/dist/{chunk-FG6IQ3ZL.js.map → chunk-ZCBJIDT4.js.map} +0 -0
- /package/dist/{chunk-XQO4TAJS.js.map → chunk-ZW2YSN6G.js.map} +0 -0
- /package/dist/{crypto-2LU6XUFF.js.map → crypto-YBKBNPVM.js.map} +0 -0
- /package/dist/{delegation-6ABSJGXV.js.map → delegation-4JSMM6BB.js.map} +0 -0
- /package/dist/{executor-JKMSEB34.js.map → executor-3SVNESQ3.js.map} +0 -0
- /package/dist/{executor-UYXSQB4D.js.map → executor-BIW4FT5R.js.map} +0 -0
- /package/dist/{executor-VJSCTBWY.js.map → executor-VEZUBJNQ.js.map} +0 -0
- /package/dist/{issue-KLRMW5DH.js.map → issue-LEBPVF3Y.js.map} +0 -0
- /package/dist/{ledger-VOS2X3WJ.js.map → ledger-FLRTSOYH.js.map} +0 -0
- /package/dist/{noydb-2PI2ZBX6.js.map → noydb-6FA46A4M.js.map} +0 -0
- /package/dist/{public-envelope-IJJMWSTJ.js.map → public-envelope-DBKJEBBF.js.map} +0 -0
- /package/dist/{registry-GAIFVWXF.js.map → registry-CMEVTOCN.js.map} +0 -0
- /package/dist/{registry-J77ZUQ7G.js.map → registry-OUZ3VBZA.js.map} +0 -0
- /package/dist/{registry-JGEVJ6YC.js.map → registry-XUBRO5JJ.js.map} +0 -0
- /package/dist/{revoke-WUY4AYRJ.js.map → revoke-P5D3UTRX.js.map} +0 -0
- /package/dist/{signer-UJF3CFDC.js.map → signer-NEQPCHMW.js.map} +0 -0
- /package/dist/{stale-PW6VBGSP.js.map → stale-KKCHF2VB.js.map} +0 -0
package/dist/i18n/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-
|
|
2
|
-
import { I as I18nStrategy } from '../types-
|
|
3
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-
|
|
4
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-
|
|
1
|
+
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-D1zjEV3n.cjs';
|
|
2
|
+
import { I as I18nStrategy } from '../types-BCYvhKzr.cjs';
|
|
3
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-BCYvhKzr.cjs';
|
|
4
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-Dwk2k1xY.cjs';
|
|
5
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
6
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
7
7
|
import '../strategy-BSxFXGzb.cjs';
|
|
8
8
|
import '../index-BMmajblo.cjs';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-DoxKSsMj.cjs';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-
|
|
2
|
-
import { I as I18nStrategy } from '../types-
|
|
3
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-
|
|
4
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-
|
|
1
|
+
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-YQ1qJWyq.js';
|
|
2
|
+
import { I as I18nStrategy } from '../types-CCq0WHh9.js';
|
|
3
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-CCq0WHh9.js';
|
|
4
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-Dwk2k1xY.js';
|
|
5
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
6
6
|
import '../predicate-BmhBSPCH.js';
|
|
7
7
|
import '../strategy-BSxFXGzb.js';
|
|
8
8
|
import '../index-BMmajblo.js';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-LaexBi3v.js';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/i18n/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isDictKeyDescriptor,
|
|
8
8
|
isStaticDictDescriptor,
|
|
9
9
|
staticDict
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-JJKXJAH2.js";
|
|
11
11
|
import {
|
|
12
12
|
applyI18nLocale,
|
|
13
13
|
enforceScript,
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
resolvePolicy,
|
|
20
20
|
setAtPathInPlace,
|
|
21
21
|
validateI18nTextValue
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-KD253AI5.js";
|
|
23
|
+
import "../chunk-UNBX2HMA.js";
|
|
24
24
|
import "../chunk-PDVP3C2I.js";
|
|
25
25
|
import "../chunk-LR7CODVN.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-7JSP3E67.js";
|
|
27
27
|
import {
|
|
28
28
|
DictKeyInUseError,
|
|
29
29
|
DictKeyMissingError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
StaticDictReadonlyError,
|
|
35
35
|
TranslatorNotConfiguredError,
|
|
36
36
|
UnknownDictCodeError
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-DDOYOMAD.js";
|
|
38
38
|
|
|
39
39
|
// src/i18n/active.ts
|
|
40
40
|
function withI18n() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './predicate-BmhBSPCH.cjs';
|
|
2
|
-
import './strategy-
|
|
2
|
+
import './strategy-D1zjEV3n.cjs';
|
|
3
3
|
import './ulid-DRH25k3y.cjs';
|
|
4
|
-
import './errors-
|
|
5
|
-
import './types-
|
|
6
|
-
import './index-
|
|
4
|
+
import './errors-Dwk2k1xY.cjs';
|
|
5
|
+
import './types-BCYvhKzr.cjs';
|
|
6
|
+
import './index-DoxKSsMj.cjs';
|
|
7
7
|
|
|
8
8
|
interface EncryptResult {
|
|
9
9
|
iv: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './predicate-BmhBSPCH.js';
|
|
2
|
-
import './strategy-
|
|
2
|
+
import './strategy-YQ1qJWyq.js';
|
|
3
3
|
import './ulid-DRH25k3y.js';
|
|
4
|
-
import './errors-
|
|
5
|
-
import './types-
|
|
6
|
-
import './index-
|
|
4
|
+
import './errors-Dwk2k1xY.js';
|
|
5
|
+
import './types-CCq0WHh9.js';
|
|
6
|
+
import './index-LaexBi3v.js';
|
|
7
7
|
|
|
8
8
|
interface EncryptResult {
|
|
9
9
|
iv: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BmhBSPCH.cjs';
|
|
2
|
-
import { N as NoydbError } from './errors-
|
|
3
|
-
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-
|
|
2
|
+
import { N as NoydbError } from './errors-Dwk2k1xY.cjs';
|
|
3
|
+
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-D1zjEV3n.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BmhBSPCH.js';
|
|
2
|
-
import { N as NoydbError } from './errors-
|
|
3
|
-
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-
|
|
2
|
+
import { N as NoydbError } from './errors-Dwk2k1xY.js';
|
|
3
|
+
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-YQ1qJWyq.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Foreign-key references — the soft-FK mechanism.
|
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var init_types = __esm({
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
// src/errors.ts
|
|
49
|
-
var NoydbError, DebugPlaintextError, DebugReservedFieldError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, ReadOnlyAtInstantError, ReadOnlyFrameError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, PeriodClosedError, RecordLockedError, FieldFrozenError, IllegalTransitionError, InvariantError, AmendmentForbiddenError, DirectoryDisabledError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, NetworkError, NotFoundError, ValidationError, SchemaValidationError, SchemaUpdateError, NonAdditiveSchemaChangeError, SchemaLockedError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, ScriptViolationError, StaticDictReadonlyError, UnknownDictCodeError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, TransferSealError, AttestationError, SessionExpiredError, SessionNotFoundError, SessionPolicyError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, FilenameSanitizationError, PathEscapeError, DerivationCycleError, DerivationDepthError, DerivationOutputUnknownError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, SnapshotNotFoundError, UnknownShardError, ShardProvisioningError, DataResidencyError, VaultTemplateNotFoundError,
|
|
49
|
+
var NoydbError, DebugPlaintextError, DebugReservedFieldError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, ReadOnlyAtInstantError, ReadOnlyFrameError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, ReservedVaultNameError, PeriodClosedError, RecordLockedError, FieldFrozenError, IllegalTransitionError, InvariantError, AmendmentForbiddenError, DirectoryDisabledError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, NetworkError, NotFoundError, ValidationError, SchemaValidationError, SchemaUpdateError, NonAdditiveSchemaChangeError, SchemaLockedError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, ScriptViolationError, StaticDictReadonlyError, UnknownDictCodeError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, TransferSealError, AttestationError, SessionExpiredError, SessionNotFoundError, SessionPolicyError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, FilenameSanitizationError, PathEscapeError, DerivationCycleError, DerivationDepthError, DerivationOutputUnknownError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, MaterializedViewConfigError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, SnapshotNotFoundError, UnknownShardError, ShardProvisioningError, DataResidencyError, VaultTemplateNotFoundError, ForgetStrategyNotConfiguredError, SealedRecordExpiredError, SealedRecordMismatchError, RecordCekNotFoundError;
|
|
50
50
|
var init_errors = __esm({
|
|
51
51
|
"src/errors.ts"() {
|
|
52
52
|
"use strict";
|
|
@@ -1076,21 +1076,12 @@ Resolutions:
|
|
|
1076
1076
|
constructor(templateName) {
|
|
1077
1077
|
super(
|
|
1078
1078
|
"VAULT_TEMPLATE_NOT_FOUND",
|
|
1079
|
-
`No vault template registered under "${templateName}". Register
|
|
1079
|
+
`No vault template registered under "${templateName}". Register the template before opening the vault group.`
|
|
1080
1080
|
);
|
|
1081
1081
|
this.name = "VaultTemplateNotFoundError";
|
|
1082
1082
|
this.templateName = templateName;
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
1085
|
-
FederationMovedError = class extends NoydbError {
|
|
1086
|
-
constructor(api) {
|
|
1087
|
-
super(
|
|
1088
|
-
"FEDERATION_MOVED",
|
|
1089
|
-
`${api} has moved to @klum-db/lobby. Install @klum-db/lobby, then: import { createLobby } from '@klum-db/lobby'; const lobby = createLobby(db); await lobby.${api}(...)`
|
|
1090
|
-
);
|
|
1091
|
-
this.name = "FederationMovedError";
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
1085
|
ForgetStrategyNotConfiguredError = class extends NoydbError {
|
|
1095
1086
|
constructor(message = 'vault.forget() requires a forget strategy. Pass `forgetStrategy: withForgetCascade({ subjects: { <collection>: <subjectField> } })` from "@noy-db/hub/forget" to createNoydb().') {
|
|
1096
1087
|
super("FORGET_NOT_CONFIGURED", message);
|
|
@@ -24289,25 +24280,13 @@ var init_noydb = __esm({
|
|
|
24289
24280
|
return results;
|
|
24290
24281
|
}
|
|
24291
24282
|
/**
|
|
24292
|
-
* @internal True once `close()` has been called. Read by
|
|
24293
|
-
*
|
|
24294
|
-
* `closed` field
|
|
24283
|
+
* @internal True once `close()` has been called. Read by outward
|
|
24284
|
+
* orchestration frameworks whose entry points can't see the private
|
|
24285
|
+
* `closed` field.
|
|
24295
24286
|
*/
|
|
24296
24287
|
get isClosed() {
|
|
24297
24288
|
return this.closed;
|
|
24298
24289
|
}
|
|
24299
|
-
/** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).withVaultTemplate(...)`. */
|
|
24300
|
-
withVaultTemplate() {
|
|
24301
|
-
throw new FederationMovedError("withVaultTemplate");
|
|
24302
|
-
}
|
|
24303
|
-
/** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).openVaultGroup(...)`. */
|
|
24304
|
-
async openVaultGroup() {
|
|
24305
|
-
throw new FederationMovedError("openVaultGroup");
|
|
24306
|
-
}
|
|
24307
|
-
/** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).openStateManagementVault()`. */
|
|
24308
|
-
async openStateManagementVault() {
|
|
24309
|
-
throw new FederationMovedError("openStateManagementVault");
|
|
24310
|
-
}
|
|
24311
24290
|
/**
|
|
24312
24291
|
* @internal — true when an encrypted shard vault is provisioned
|
|
24313
24292
|
* (its keyring exists in the store).
|
|
@@ -25838,7 +25817,6 @@ __export(src_exports, {
|
|
|
25838
25817
|
ElevatedHandle: () => ElevatedHandle,
|
|
25839
25818
|
ElevationExpiredError: () => ElevationExpiredError,
|
|
25840
25819
|
ExportCapabilityError: () => ExportCapabilityError,
|
|
25841
|
-
FederationMovedError: () => FederationMovedError,
|
|
25842
25820
|
FieldFrozenError: () => FieldFrozenError,
|
|
25843
25821
|
FilenameSanitizationError: () => FilenameSanitizationError,
|
|
25844
25822
|
ForgetStrategyNotConfiguredError: () => ForgetStrategyNotConfiguredError,
|
|
@@ -26120,10 +26098,8 @@ __export(src_exports, {
|
|
|
26120
26098
|
putCredential: () => putCredential,
|
|
26121
26099
|
readDirectoryConfig: () => readDirectoryConfig,
|
|
26122
26100
|
readMagicLinkGrantRecord: () => readMagicLinkGrantRecord,
|
|
26123
|
-
readMultiVaultBundleCompartment: () => readMultiVaultBundleCompartment,
|
|
26124
26101
|
readNoydbBundle: () => readNoydbBundle,
|
|
26125
26102
|
readNoydbBundleHeader: () => readNoydbBundleHeader,
|
|
26126
|
-
readNoydbBundleManifest: () => readNoydbBundleManifest,
|
|
26127
26103
|
readNoydbBundlePublicEnvelope: () => readNoydbBundlePublicEnvelope,
|
|
26128
26104
|
readPath: () => readPath,
|
|
26129
26105
|
readPlaintextRecord: () => readPlaintextRecord,
|
|
@@ -26192,7 +26168,6 @@ __export(src_exports, {
|
|
|
26192
26168
|
wrapBundleStore: () => wrapBundleStore,
|
|
26193
26169
|
wrapStore: () => wrapStore,
|
|
26194
26170
|
writeMagicLinkGrant: () => writeMagicLinkGrant,
|
|
26195
|
-
writeMultiVaultBundle: () => writeMultiVaultBundle,
|
|
26196
26171
|
writeNoydbBundle: () => writeNoydbBundle
|
|
26197
26172
|
});
|
|
26198
26173
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -28715,162 +28690,6 @@ init_unlock_state();
|
|
|
28715
28690
|
init_rotate_recover();
|
|
28716
28691
|
init_public_envelope();
|
|
28717
28692
|
init_bundle();
|
|
28718
|
-
|
|
28719
|
-
// src/bundle/multi-bundle.ts
|
|
28720
|
-
init_crypto();
|
|
28721
|
-
init_ulid();
|
|
28722
|
-
init_format();
|
|
28723
|
-
init_bundle();
|
|
28724
|
-
var NOYDB_MULTI_BUNDLE_MAGIC = new Uint8Array([78, 68, 66, 77]);
|
|
28725
|
-
var NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
|
|
28726
|
-
var NOYDB_MULTI_BUNDLE_VERSION = 1;
|
|
28727
|
-
function encodeMultiBundle(manifest, inner) {
|
|
28728
|
-
validateManifest(manifest);
|
|
28729
|
-
if (manifest.compartments.length !== inner.length) {
|
|
28730
|
-
throw new Error(`multi-bundle: manifest has ${manifest.compartments.length} compartments but ${inner.length} inner bundles were provided.`);
|
|
28731
|
-
}
|
|
28732
|
-
for (let i = 0; i < inner.length; i++) {
|
|
28733
|
-
if (manifest.compartments[i].innerBytes !== inner[i].length) {
|
|
28734
|
-
throw new Error(`multi-bundle: compartment ${i} declares innerBytes ${manifest.compartments[i].innerBytes} but ${inner[i].length} bytes were provided.`);
|
|
28735
|
-
}
|
|
28736
|
-
}
|
|
28737
|
-
const manifestBytes = new TextEncoder().encode(JSON.stringify(manifest));
|
|
28738
|
-
const bodyLen = inner.reduce((n, b) => n + b.length, 0);
|
|
28739
|
-
const out = new Uint8Array(NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestBytes.length + bodyLen);
|
|
28740
|
-
out.set(NOYDB_MULTI_BUNDLE_MAGIC, 0);
|
|
28741
|
-
out[4] = NOYDB_MULTI_BUNDLE_VERSION;
|
|
28742
|
-
out[5] = 0;
|
|
28743
|
-
writeUint32BE(out, 6, manifestBytes.length);
|
|
28744
|
-
out.set(manifestBytes, NOYDB_MULTI_BUNDLE_PREFIX_BYTES);
|
|
28745
|
-
let off = NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestBytes.length;
|
|
28746
|
-
for (const b of inner) {
|
|
28747
|
-
out.set(b, off);
|
|
28748
|
-
off += b.length;
|
|
28749
|
-
}
|
|
28750
|
-
return out;
|
|
28751
|
-
}
|
|
28752
|
-
function hasMultiMagic(bytes) {
|
|
28753
|
-
if (bytes.length < NOYDB_MULTI_BUNDLE_MAGIC.length) return false;
|
|
28754
|
-
for (let i = 0; i < NOYDB_MULTI_BUNDLE_MAGIC.length; i++) if (bytes[i] !== NOYDB_MULTI_BUNDLE_MAGIC[i]) return false;
|
|
28755
|
-
return true;
|
|
28756
|
-
}
|
|
28757
|
-
function validateManifest(parsed) {
|
|
28758
|
-
if (parsed === null || typeof parsed !== "object") throw new Error("multi-bundle manifest must be a JSON object.");
|
|
28759
|
-
const m = parsed;
|
|
28760
|
-
if (m["multiFormatVersion"] !== NOYDB_MULTI_BUNDLE_VERSION) throw new Error(`multi-bundle manifest.multiFormatVersion must be ${NOYDB_MULTI_BUNDLE_VERSION}, got ${String(m["multiFormatVersion"])}.`);
|
|
28761
|
-
if (typeof m["handle"] !== "string" || m["handle"].length === 0) throw new Error("multi-bundle manifest.handle must be a non-empty string.");
|
|
28762
|
-
if (!Array.isArray(m["compartments"])) throw new Error("multi-bundle manifest.compartments must be an array.");
|
|
28763
|
-
const seenHandles = /* @__PURE__ */ new Set();
|
|
28764
|
-
for (const c of m["compartments"]) {
|
|
28765
|
-
if (c === null || typeof c !== "object") throw new Error("multi-bundle compartment must be an object.");
|
|
28766
|
-
const e = c;
|
|
28767
|
-
if (typeof e["handle"] !== "string" || e["handle"].length === 0) throw new Error("multi-bundle compartment.handle must be a non-empty string.");
|
|
28768
|
-
if (seenHandles.has(e["handle"])) {
|
|
28769
|
-
throw new Error(`multi-bundle manifest has a duplicate compartment handle "${e["handle"]}".`);
|
|
28770
|
-
}
|
|
28771
|
-
seenHandles.add(e["handle"]);
|
|
28772
|
-
if (typeof e["innerBytes"] !== "number" || !Number.isInteger(e["innerBytes"]) || e["innerBytes"] < 0) throw new Error("multi-bundle compartment.innerBytes must be a non-negative integer.");
|
|
28773
|
-
if (typeof e["innerSha256"] !== "string" || !/^[0-9a-f]{64}$/.test(e["innerSha256"])) throw new Error("multi-bundle compartment.innerSha256 must be 64-char lowercase hex.");
|
|
28774
|
-
}
|
|
28775
|
-
}
|
|
28776
|
-
function decodeMultiBundle(bytes) {
|
|
28777
|
-
if (!hasMultiMagic(bytes)) throw new Error("not a NOYDB multi-bundle: missing NDBM magic.");
|
|
28778
|
-
if (bytes.length < NOYDB_MULTI_BUNDLE_PREFIX_BYTES) throw new Error("multi-bundle truncated: shorter than the fixed prefix.");
|
|
28779
|
-
if (bytes[4] !== NOYDB_MULTI_BUNDLE_VERSION) throw new Error(`unsupported multi-bundle version ${String(bytes[4])}.`);
|
|
28780
|
-
const manifestLen = readUint32BE(bytes, 6);
|
|
28781
|
-
const manifestEnd = NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestLen;
|
|
28782
|
-
if (manifestEnd > bytes.length) throw new Error("multi-bundle truncated: manifest length overruns the buffer.");
|
|
28783
|
-
const manifestJson = new TextDecoder("utf-8", { fatal: true }).decode(bytes.subarray(NOYDB_MULTI_BUNDLE_PREFIX_BYTES, manifestEnd));
|
|
28784
|
-
let parsed;
|
|
28785
|
-
try {
|
|
28786
|
-
parsed = JSON.parse(manifestJson);
|
|
28787
|
-
} catch (err) {
|
|
28788
|
-
throw new Error(`multi-bundle manifest is not valid JSON: ${err.message}`);
|
|
28789
|
-
}
|
|
28790
|
-
validateManifest(parsed);
|
|
28791
|
-
const inner = [];
|
|
28792
|
-
let off = manifestEnd;
|
|
28793
|
-
for (const c of parsed.compartments) {
|
|
28794
|
-
const end = off + c.innerBytes;
|
|
28795
|
-
if (end > bytes.length) throw new Error(`multi-bundle truncated: compartment "${c.handle}" innerBytes overruns the buffer.`);
|
|
28796
|
-
inner.push(bytes.subarray(off, end));
|
|
28797
|
-
off = end;
|
|
28798
|
-
}
|
|
28799
|
-
if (off !== bytes.length) {
|
|
28800
|
-
throw new Error(`multi-bundle: ${bytes.length - off} trailing byte(s) after the last compartment \u2014 buffer may be corrupt.`);
|
|
28801
|
-
}
|
|
28802
|
-
return { manifest: parsed, inner };
|
|
28803
|
-
}
|
|
28804
|
-
async function writeMultiVaultBundle(compartments, opts = {}) {
|
|
28805
|
-
if (compartments.length === 0) throw new Error("writeMultiVaultBundle: at least one compartment is required.");
|
|
28806
|
-
const inner = [];
|
|
28807
|
-
const entries = [];
|
|
28808
|
-
for (const c of compartments) {
|
|
28809
|
-
const innerBytes = await writeNoydbBundle(c.vault, c.bundleOptions ?? {});
|
|
28810
|
-
const header = readNoydbBundleHeader(innerBytes);
|
|
28811
|
-
const entry = {
|
|
28812
|
-
handle: header.handle,
|
|
28813
|
-
exportedAt: c.exportedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
28814
|
-
innerBytes: innerBytes.length,
|
|
28815
|
-
innerSha256: await sha256Hex(innerBytes)
|
|
28816
|
-
};
|
|
28817
|
-
if (c.roleTag !== void 0) entry.roleTag = c.roleTag;
|
|
28818
|
-
if (c.disclose?.name !== void 0 && c.disclose.name !== false) {
|
|
28819
|
-
entry.name = c.disclose.name === true ? c.vault.name : c.disclose.name;
|
|
28820
|
-
}
|
|
28821
|
-
if (c.disclose?.collections === true) {
|
|
28822
|
-
const names = await c.vault.collections();
|
|
28823
|
-
entry.collections = await Promise.all(
|
|
28824
|
-
names.map(async (n) => ({ name: n, count: await c.vault.collection(n).count() }))
|
|
28825
|
-
);
|
|
28826
|
-
}
|
|
28827
|
-
if (c.disclose?.publicEnvelope === true) {
|
|
28828
|
-
const env = readNoydbBundlePublicEnvelope(innerBytes);
|
|
28829
|
-
if (env !== void 0) entry.publicEnvelope = env;
|
|
28830
|
-
}
|
|
28831
|
-
const fence = await c.vault.schemaFenceState();
|
|
28832
|
-
entry.schemaVersion = fence.currentSchemaVersion;
|
|
28833
|
-
inner.push(innerBytes);
|
|
28834
|
-
entries.push(entry);
|
|
28835
|
-
}
|
|
28836
|
-
const manifest = {
|
|
28837
|
-
multiFormatVersion: NOYDB_MULTI_BUNDLE_VERSION,
|
|
28838
|
-
handle: opts.handle ?? generateULID(),
|
|
28839
|
-
compartments: entries
|
|
28840
|
-
};
|
|
28841
|
-
return encodeMultiBundle(manifest, inner);
|
|
28842
|
-
}
|
|
28843
|
-
async function readNoydbBundleManifest(bytes) {
|
|
28844
|
-
if (hasMultiMagic(bytes)) return [...decodeMultiBundle(bytes).manifest.compartments];
|
|
28845
|
-
if (hasNoydbBundleMagic(bytes)) {
|
|
28846
|
-
const header = readNoydbBundleHeader(bytes);
|
|
28847
|
-
const env = readNoydbBundlePublicEnvelope(bytes);
|
|
28848
|
-
const entry = {
|
|
28849
|
-
handle: header.handle,
|
|
28850
|
-
innerBytes: bytes.length,
|
|
28851
|
-
innerSha256: await sha256Hex(bytes)
|
|
28852
|
-
};
|
|
28853
|
-
if (env !== void 0) entry.publicEnvelope = env;
|
|
28854
|
-
return [entry];
|
|
28855
|
-
}
|
|
28856
|
-
throw new Error("readNoydbBundleManifest: not a NOYDB bundle (no NDB1 or NDBM magic).");
|
|
28857
|
-
}
|
|
28858
|
-
function readMultiVaultBundleCompartment(bytes, selector) {
|
|
28859
|
-
if (typeof selector === "number" && !Number.isInteger(selector)) {
|
|
28860
|
-
throw new Error(`readMultiVaultBundleCompartment: numeric selector must be an integer, got ${selector}.`);
|
|
28861
|
-
}
|
|
28862
|
-
if (hasNoydbBundleMagic(bytes) && !hasMultiMagic(bytes)) {
|
|
28863
|
-
const header = readNoydbBundleHeader(bytes);
|
|
28864
|
-
if (selector === 0 || selector === header.handle) return bytes;
|
|
28865
|
-
throw new Error(`readMultiVaultBundleCompartment: single v1 bundle has only compartment "${header.handle}".`);
|
|
28866
|
-
}
|
|
28867
|
-
const { manifest, inner } = decodeMultiBundle(bytes);
|
|
28868
|
-
const idx = typeof selector === "number" ? selector : manifest.compartments.findIndex((c) => c.handle === selector);
|
|
28869
|
-
if (idx < 0 || idx >= inner.length) throw new Error(`readMultiVaultBundleCompartment: no compartment ${typeof selector === "number" ? `at index ${selector}` : `"${selector}"`}.`);
|
|
28870
|
-
return inner[idx];
|
|
28871
|
-
}
|
|
28872
|
-
|
|
28873
|
-
// src/index.ts
|
|
28874
28693
|
init_user_envelope();
|
|
28875
28694
|
init_api();
|
|
28876
28695
|
init_custody();
|
|
@@ -30844,7 +30663,6 @@ init_search();
|
|
|
30844
30663
|
ElevatedHandle,
|
|
30845
30664
|
ElevationExpiredError,
|
|
30846
30665
|
ExportCapabilityError,
|
|
30847
|
-
FederationMovedError,
|
|
30848
30666
|
FieldFrozenError,
|
|
30849
30667
|
FilenameSanitizationError,
|
|
30850
30668
|
ForgetStrategyNotConfiguredError,
|
|
@@ -31126,10 +30944,8 @@ init_search();
|
|
|
31126
30944
|
putCredential,
|
|
31127
30945
|
readDirectoryConfig,
|
|
31128
30946
|
readMagicLinkGrantRecord,
|
|
31129
|
-
readMultiVaultBundleCompartment,
|
|
31130
30947
|
readNoydbBundle,
|
|
31131
30948
|
readNoydbBundleHeader,
|
|
31132
|
-
readNoydbBundleManifest,
|
|
31133
30949
|
readNoydbBundlePublicEnvelope,
|
|
31134
30950
|
readPath,
|
|
31135
30951
|
readPlaintextRecord,
|
|
@@ -31198,7 +31014,6 @@ init_search();
|
|
|
31198
31014
|
wrapBundleStore,
|
|
31199
31015
|
wrapStore,
|
|
31200
31016
|
writeMagicLinkGrant,
|
|
31201
|
-
writeMultiVaultBundle,
|
|
31202
31017
|
writeNoydbBundle
|
|
31203
31018
|
});
|
|
31204
31019
|
//# sourceMappingURL=index.cjs.map
|