@noy-db/hub 0.4.0-pre.6 → 0.4.0-pre.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-3NKVNZPM.js +20 -0
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-USYSNCYM.js → backup-PTSVXDDW.js} +13 -13
- package/dist/blobs/index.js +13 -13
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -12
- package/dist/cargo/index.js +31 -29
- package/dist/{chunk-5WLDZZ6S.js → chunk-35NMVJ7I.js} +3 -3
- package/dist/{chunk-ZGEFBDPR.js → chunk-3HUYRN24.js} +3 -3
- package/dist/chunk-3HUYRN24.js.map +1 -0
- package/dist/{chunk-NA374QG7.js → chunk-3XKESW5E.js} +3 -3
- package/dist/{chunk-MUPZ6IZX.js → chunk-4JQK3L4V.js} +2 -2
- package/dist/{chunk-Z4D3YGAB.js → chunk-4ZKNC6A6.js} +2 -2
- package/dist/{chunk-ONB627HU.js → chunk-55LX6FSX.js} +2 -2
- package/dist/{chunk-M7W2KYTL.js → chunk-56IIVAEO.js} +2 -2
- package/dist/{chunk-FHHYCBBP.js → chunk-5DRROK5W.js} +2 -2
- package/dist/{chunk-GTNRMJYH.js → chunk-5GQEU4DN.js} +2 -2
- package/dist/{chunk-XSOGLHGY.js → chunk-6L3DKWRY.js} +6 -6
- package/dist/chunk-6LJY7X5A.js +18 -0
- package/dist/chunk-6LJY7X5A.js.map +1 -0
- package/dist/{chunk-44Y3P5U6.js → chunk-6M2I3DKF.js} +2 -2
- package/dist/{chunk-HDF5R2K6.js → chunk-6R6Q3MRN.js} +7 -7
- package/dist/{chunk-ZUDAK436.js → chunk-6UBZ6I5Z.js} +2 -2
- package/dist/{chunk-SEU6QHH4.js → chunk-6ZNSB3H6.js} +5 -17
- package/dist/chunk-6ZNSB3H6.js.map +1 -0
- package/dist/{chunk-7U6AB7DZ.js → chunk-AKKRXT23.js} +2 -2
- package/dist/{chunk-2PDBYF2O.js → chunk-AT2JJEKJ.js} +4 -4
- package/dist/chunk-AT2JJEKJ.js.map +1 -0
- package/dist/{chunk-OWLZONGX.js → chunk-BLBAQRBM.js} +2 -2
- package/dist/{chunk-XONZGK6J.js → chunk-BN4HRYAZ.js} +2 -2
- package/dist/{chunk-QVGEVZ5F.js → chunk-BQ6DHN4I.js} +3 -3
- package/dist/{chunk-LG2GUYRX.js → chunk-BYFXLDVV.js} +9 -9
- package/dist/{chunk-M4GO4ZJK.js → chunk-C25JXSOR.js} +137 -11
- package/dist/chunk-C25JXSOR.js.map +1 -0
- package/dist/{chunk-3TZUC4WS.js → chunk-CCDP6EPB.js} +13 -355
- package/dist/chunk-CCDP6EPB.js.map +1 -0
- package/dist/{chunk-QRHEAZ2Q.js → chunk-CUZLNGD5.js} +1 -1
- package/dist/{chunk-HXVRRJBD.js → chunk-DGBIHDVK.js} +5 -5
- package/dist/chunk-DSDXAKIP.js +50 -0
- package/dist/chunk-DSDXAKIP.js.map +1 -0
- package/dist/{chunk-JGOKAZNB.js → chunk-DZAF24PG.js} +5 -5
- package/dist/{chunk-NIKO2BBZ.js → chunk-DZFQVICS.js} +2 -2
- package/dist/chunk-DZFQVICS.js.map +1 -0
- package/dist/chunk-E23UGFVC.js +63 -0
- package/dist/chunk-E23UGFVC.js.map +1 -0
- package/dist/{chunk-YGMREQAK.js → chunk-EBKCYQ2D.js} +14 -14
- package/dist/chunk-EBKCYQ2D.js.map +1 -0
- package/dist/{chunk-TMR64XPL.js → chunk-EZNTORXE.js} +2 -2
- package/dist/{chunk-WCJJQV2D.js → chunk-FMNU7IUG.js} +3 -3
- package/dist/{chunk-H5GMROCB.js → chunk-FO6RNKKW.js} +8 -46
- package/dist/chunk-FO6RNKKW.js.map +1 -0
- package/dist/{chunk-YMUGBZN2.js → chunk-FQ5CHJR7.js} +1 -1
- package/dist/chunk-FQ5CHJR7.js.map +1 -0
- package/dist/{chunk-MQBFT2OT.js → chunk-FRMW23UK.js} +7 -7
- package/dist/chunk-FRMW23UK.js.map +1 -0
- package/dist/chunk-GJW4HX2O.js +1 -0
- package/dist/{chunk-JTIPVW4J.js → chunk-GP3UWP22.js} +4 -4
- package/dist/{chunk-DOZFU7OZ.js → chunk-GZACYEOB.js} +1 -1
- package/dist/chunk-GZACYEOB.js.map +1 -0
- package/dist/{chunk-XG7OZDOS.js → chunk-HFUAFR6B.js} +6 -6
- package/dist/{chunk-LN3MQFUE.js → chunk-IF6WNGAK.js} +9 -6
- package/dist/chunk-IF6WNGAK.js.map +1 -0
- package/dist/{chunk-ZX5FNWH7.js → chunk-IG6KUWBX.js} +2 -2
- package/dist/chunk-IG6KUWBX.js.map +1 -0
- package/dist/{chunk-VDTWFN2P.js → chunk-IMRB2C4O.js} +3 -3
- package/dist/{chunk-2BVW754E.js → chunk-ISRKW4YN.js} +3 -3
- package/dist/{chunk-P4NUJVWL.js → chunk-IXNCZTWA.js} +2 -2
- package/dist/{chunk-ZHZ4PET5.js → chunk-JIDLU57U.js} +3 -3
- package/dist/{chunk-PTT2NB46.js → chunk-JYJFGD2H.js} +2 -2
- package/dist/{chunk-XY6MNSAF.js → chunk-JYV4JJV2.js} +5 -5
- package/dist/{chunk-ZHMUFYZF.js → chunk-KBPU5M2E.js} +7 -7
- package/dist/{chunk-AZXEOEQK.js → chunk-KFRPNHWR.js} +4 -4
- package/dist/chunk-KFRPNHWR.js.map +1 -0
- package/dist/{chunk-ZDFU34XY.js → chunk-KPXM4WO6.js} +58 -54
- package/dist/chunk-KPXM4WO6.js.map +1 -0
- package/dist/{chunk-HA7P3BTB.js → chunk-KRCBZYTZ.js} +4 -4
- package/dist/{chunk-VNJMLOQS.js → chunk-KW42W6SV.js} +6 -6
- package/dist/{chunk-GQT6J4FJ.js → chunk-L3YYLT4E.js} +2 -2
- package/dist/chunk-L3YYLT4E.js.map +1 -0
- package/dist/{chunk-3GXDB3NQ.js → chunk-MANUDU7I.js} +6 -6
- package/dist/{chunk-YJ3TREAC.js → chunk-MHMLXJ3I.js} +2 -2
- package/dist/chunk-MHMLXJ3I.js.map +1 -0
- package/dist/{chunk-D4LAJ737.js → chunk-MSMJJB4J.js} +2 -2
- package/dist/chunk-MSMJJB4J.js.map +1 -0
- package/dist/{chunk-RM5EXCFF.js → chunk-MXUT7FTE.js} +2 -2
- package/dist/chunk-MXUT7FTE.js.map +1 -0
- package/dist/{chunk-IUATR5UE.js → chunk-N5PLUFH2.js} +5 -5
- package/dist/{chunk-C2V7AJO2.js → chunk-NEX7JCMO.js} +4 -4
- package/dist/{chunk-5HSSTOOG.js → chunk-NFZGZ4AK.js} +2 -2
- package/dist/{chunk-5ABOFAHN.js → chunk-NJ4DYYO5.js} +2 -2
- package/dist/chunk-NJ4DYYO5.js.map +1 -0
- package/dist/{chunk-2ZSC454H.js → chunk-NQSO4UAH.js} +8 -8
- package/dist/chunk-NQSO4UAH.js.map +1 -0
- package/dist/{chunk-GHEMAVTN.js → chunk-NYEFP7DY.js} +4 -4
- package/dist/chunk-NYEFP7DY.js.map +1 -0
- package/dist/{chunk-32467U5J.js → chunk-OBPVWOSQ.js} +4 -4
- package/dist/{chunk-6SSWOUUS.js → chunk-OLIWCCFM.js} +2 -5
- package/dist/{chunk-UNREYBZO.js → chunk-OLSARBZU.js} +2 -2
- package/dist/{chunk-V2R2VWER.js → chunk-PT4XLP6I.js} +12 -12
- package/dist/{chunk-V2R2VWER.js.map → chunk-PT4XLP6I.js.map} +1 -1
- package/dist/{chunk-LC7DSMHR.js → chunk-PTHKZWEH.js} +2 -14
- package/dist/{chunk-LC7DSMHR.js.map → chunk-PTHKZWEH.js.map} +1 -1
- package/dist/chunk-QADFHRQM.js +367 -0
- package/dist/chunk-QADFHRQM.js.map +1 -0
- package/dist/{chunk-7LP7FFJ2.js → chunk-QD46HPZG.js} +2 -2
- package/dist/{chunk-G4MFQXYX.js → chunk-QJNCB5SK.js} +2 -2
- package/dist/{chunk-6SYOHUHM.js → chunk-QZWTRENR.js} +2 -2
- package/dist/chunk-QZWTRENR.js.map +1 -0
- package/dist/{chunk-TSNRZSRC.js → chunk-RO5NM6UI.js} +2 -2
- package/dist/chunk-RO5NM6UI.js.map +1 -0
- package/dist/{chunk-MMVQ3SUO.js → chunk-RZPOZPZU.js} +8 -8
- package/dist/chunk-SGDPRCC4.js +1075 -0
- package/dist/chunk-SGDPRCC4.js.map +1 -0
- package/dist/{chunk-E7FSBI6I.js → chunk-SGQ4N5FS.js} +5 -5
- package/dist/{chunk-522MBPE5.js → chunk-SHEEBRZ4.js} +2 -2
- package/dist/{chunk-EPME33Y4.js → chunk-SHYIA73K.js} +6 -6
- package/dist/chunk-SKM35Y4Q.js +77 -0
- package/dist/chunk-SKM35Y4Q.js.map +1 -0
- package/dist/{chunk-MLCTPWSO.js → chunk-TE6LH6J2.js} +5 -5
- package/dist/chunk-TG634KCO.js +63 -0
- package/dist/chunk-TG634KCO.js.map +1 -0
- package/dist/{chunk-QVIZDLAR.js → chunk-TIVK6PRK.js} +9 -10
- package/dist/chunk-TIVK6PRK.js.map +1 -0
- package/dist/{chunk-JOCMXSR2.js → chunk-UADPR6F4.js} +3 -3
- package/dist/{chunk-SBOHNJUD.js → chunk-V6UQZA2H.js} +2 -2
- package/dist/chunk-VG2ZSFYD.js +32 -0
- package/dist/chunk-VG2ZSFYD.js.map +1 -0
- package/dist/{chunk-KCZAFDP5.js → chunk-VH6SOCXH.js} +2 -2
- package/dist/chunk-VSRSQ2CR.js +654 -0
- package/dist/chunk-VSRSQ2CR.js.map +1 -0
- package/dist/{chunk-4B3DL75F.js → chunk-W3G5REIU.js} +2 -2
- package/dist/{chunk-EGU4PWQW.js → chunk-W66AM5IB.js} +2 -2
- package/dist/chunk-W66AM5IB.js.map +1 -0
- package/dist/{chunk-MPPWL64H.js → chunk-WBKZUO5V.js} +3 -3
- package/dist/{chunk-WWBC4KLB.js → chunk-WO4T4OD5.js} +2 -2
- package/dist/{chunk-7IQWHYL2.js → chunk-WZ3NCMK6.js} +6 -5
- package/dist/{chunk-BAAUFCJK.js → chunk-X4MVWPHV.js} +3 -3
- package/dist/{chunk-HVPW6PCX.js → chunk-XIDQKFZF.js} +3 -3
- package/dist/{chunk-EWPS35AR.js → chunk-XOBHRD2M.js} +185 -333
- package/dist/chunk-XOBHRD2M.js.map +1 -0
- package/dist/chunk-Y2NBBT6K.js +18 -0
- package/dist/chunk-Y2NBBT6K.js.map +1 -0
- package/dist/{chunk-OWOT7CFC.js → chunk-Y6B6HVKC.js} +2 -2
- package/dist/{chunk-ICYC5YNI.js → chunk-Y6VZQGGH.js} +6 -6
- package/dist/{chunk-ZM72UO3Y.js → chunk-ZFUFAHZ3.js} +4 -4
- package/dist/{chunk-PWWWMRT7.js → chunk-ZTLOXFPB.js} +2 -2
- package/dist/chunk-ZTLOXFPB.js.map +1 -0
- package/dist/{walk-JXMWKKQW.js → chunk-ZWBKDKXC.js} +4 -13
- package/dist/{walk-JXMWKKQW.js.map → chunk-ZWBKDKXC.js.map} +1 -1
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-SVDRXLD3.js → classified-marker-EOOSMWFC.js} +3 -3
- package/dist/collection-facade-TTRF5NFJ.js +45 -0
- package/dist/{computed-33DRJDOC.js → computed-AB45PS4V.js} +3 -3
- package/dist/consent/index.js +9 -9
- package/dist/{cover-ADBCTIKN.js → cover/index.js} +7 -6
- package/dist/custody/index.js +26 -0
- package/dist/{dead-filter-HKDMTMVY.js → dead-filter-6DYY7S64.js} +2 -2
- package/dist/{chunk-ZF572E2M.js → delegation-ONOZVPIP.js} +12 -6
- package/dist/{chunk-ZF572E2M.js.map → delegation-ONOZVPIP.js.map} +1 -1
- package/dist/derivations/index.js +12 -12
- package/dist/derive-IGGVSUPH.js +22 -0
- package/dist/directory/index.js +46 -0
- package/dist/{dispatch-SPMYNXNW.js → dispatch-7T45NN7C.js} +18 -18
- package/dist/{dispatch-V5MSMQYX.js → dispatch-RPTLK7LJ.js} +5 -5
- package/dist/{enclave-ZA7C3H2L.js → enclave-CLJVSDFG.js} +9 -9
- package/dist/executor-IEBLTBCW.js +9 -0
- package/dist/executor-RM7XWQDU.js +9 -0
- package/dist/executor-XZYM4KHT.js +28 -0
- package/dist/export-accessible-24XCCD3A.js +23 -0
- package/dist/extract-partition-H2TPEEOF.js +38 -0
- package/dist/{fanout-sidecar-HRMHC34B.js → fanout-sidecar-TV7CXAJ6.js} +9 -9
- package/dist/find-OZMTRIK3.js +11 -0
- package/dist/forget/index.js +11 -11
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +12 -12
- package/dist/i18n/index.js +14 -14
- package/dist/index.d.ts +14 -17
- package/dist/index.js +192 -1968
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/indexing/index.js.map +1 -1
- package/dist/introspection/index.js +28 -0
- package/dist/issue-55HJE7JF.js +19 -0
- package/dist/kernel/collection-config.d.ts +1 -1
- package/dist/kernel/collection.d.ts +2 -2
- package/dist/kernel/errors.d.ts +2 -2
- package/dist/kernel/noydb.d.ts +1 -1
- package/dist/kernel/types.d.ts +20 -20
- package/dist/kernel/vault.d.ts +10 -10
- package/dist/{ledger-K6JBFL3Z.js → ledger-XY6NP3J2.js} +11 -11
- package/dist/liberate-LXOJ2EMB.js +24 -0
- package/dist/{link-set-XVZY2ODC.js → link-set-POQB7BU5.js} +11 -11
- package/dist/materialized-views/index.js +19 -19
- package/dist/money/index.js +31 -0
- package/dist/noydb-KXS35UJS.js +82 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +13 -13
- package/dist/pod/index.js +11 -11
- package/dist/{policy-QWGJB7P7.js → policy/index.js} +6 -6
- package/dist/port/with/blob-strategy.d.ts +15 -5
- package/dist/port/with/strategies.d.ts +9 -9
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-5VHHVFJY.js → post-register-URQANI3B.js} +6 -6
- package/dist/query/index.js +3 -3
- package/dist/reduce/index.js +4 -4
- package/dist/register-5W6CG4RM.js +25 -0
- package/dist/registry-7Y5WF7GS.js +9 -0
- package/dist/{registry-VW6P6A3J.js → registry-BWD2ED52.js} +2 -2
- package/dist/registry-MCSGBZXI.js +18 -0
- package/dist/registry-UJFP3NWF.js +19 -0
- package/dist/request-withdrawal-IWYDM4SO.js +31 -0
- package/dist/{reveal-7OOT5XPD.js → reveal-BXZGWIOP.js} +6 -6
- package/dist/revoke-TINYPHYY.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +26 -0
- package/dist/schema-update/index.js.map +1 -0
- package/dist/sealed-record/index.js +12 -12
- package/dist/search/index.js +36 -0
- package/dist/search/index.js.map +1 -0
- package/dist/{seed-GVOI6QP6.js → seed-F7YYQTRC.js} +11 -11
- package/dist/sequence/index.js +30 -0
- package/dist/sequence/index.js.map +1 -0
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-WMZKCNKC.js +25 -0
- package/dist/signer-WMZKCNKC.js.map +1 -0
- package/dist/snapshots/index.js +11 -11
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-BJO2WIN7.js → stale-JOE7GBAE.js} +10 -10
- package/dist/stale-JOE7GBAE.js.map +1 -0
- package/dist/storage-B3WBKXKT.js +23 -0
- package/dist/storage-B3WBKXKT.js.map +1 -0
- package/dist/store/index.js +22 -0
- package/dist/store/index.js.map +1 -0
- package/dist/{store-coordination-provider-DX5HECK3.js → store-coordination-provider-5LX2UFU2.js} +3 -3
- package/dist/sync/index.js +10 -10
- package/dist/team/index.js +29 -20
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/{tx → transactions}/index.js +3 -3
- package/dist/{tx → transactions}/index.js.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{verify-5X37OXRY.js → verify-7XWHJWUN.js} +5 -5
- package/dist/via/blob/active.d.ts +7 -18
- package/dist/via/blob/binding.d.ts +1 -1
- package/dist/via/blob/index.d.ts +2 -2
- package/dist/walk-6OHAWGBS.js +21 -0
- package/dist/walk-6OHAWGBS.js.map +1 -0
- package/dist/with-audit/forget/active.d.ts +3 -3
- package/dist/with-audit/forget/index.d.ts +4 -4
- package/dist/with-audit/forget/strategy.d.ts +3 -3
- package/dist/with-audit/guards/executor.d.ts +4 -4
- package/dist/with-audit/guards/immutable-guard.d.ts +3 -3
- package/dist/with-audit/guards/index.d.ts +1 -1
- package/dist/with-audit/guards/registry.d.ts +3 -3
- package/dist/with-audit/guards/transition-guard.d.ts +3 -3
- package/dist/with-audit/guards/types.d.ts +10 -10
- package/dist/with-audit/guards/with-guard.d.ts +2 -2
- package/dist/with-commit/numbering/descriptor.d.ts +16 -6
- package/dist/with-commit/tx/active.d.ts +5 -5
- package/dist/with-commit/tx/index.d.ts +2 -2
- package/dist/with-commit/tx/invariants.d.ts +1 -1
- package/dist/with-commit/tx/strategy.d.ts +3 -3
- package/dist/with-fork/snapshots/active.d.ts +2 -2
- package/dist/with-fork/snapshots/index.d.ts +1 -1
- package/dist/with-fork/snapshots/noydb-facade.d.ts +3 -3
- package/dist/with-fork/snapshots/strategy.d.ts +2 -2
- package/dist/with-formula/derivations/executor.d.ts +2 -2
- package/dist/with-formula/derivations/index.d.ts +2 -1
- package/dist/with-formula/derivations/registry.d.ts +3 -3
- package/dist/with-formula/derivations/stale.d.ts +2 -2
- package/dist/with-formula/derivations/types.d.ts +3 -3
- package/dist/with-formula/derivations/with-derivation.d.ts +2 -2
- package/dist/with-formula/derivations/with-rollup.d.ts +15 -8
- package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +3 -3
- package/dist/with-formula/materialized-views/index.d.ts +1 -1
- package/dist/with-formula/materialized-views/registry.d.ts +4 -4
- package/dist/with-formula/materialized-views/types.d.ts +4 -4
- package/dist/with-formula/materialized-views/with-materialized-view.d.ts +2 -2
- package/dist/with-formula/overlay-views/index.d.ts +1 -1
- package/dist/with-formula/overlay-views/registry.d.ts +4 -4
- package/dist/with-formula/overlay-views/types.d.ts +3 -3
- package/dist/with-formula/overlay-views/virtual-collection.d.ts +2 -2
- package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +2 -2
- package/dist/with-lookup/indexing/active.d.ts +5 -5
- package/dist/with-lookup/indexing/index.d.ts +1 -1
- package/dist/with-lookup/indexing/strategy.d.ts +3 -3
- package/dist/with-lookup/search/build-docs.d.ts +7 -2
- package/dist/with-lookup/search/index.d.ts +1 -1
- package/dist/with-party/directory/cover/index.d.ts +1 -0
- package/dist/with-party/directory/index.d.ts +2 -0
- package/dist/with-party/team/index.d.ts +2 -0
- package/dist/with-party/team/keyring.d.ts +49 -20
- package/dist/with-party/team/noydb-facade.d.ts +2 -2
- package/dist/with-shape/blobs/blob-set.d.ts +1 -1
- package/dist/with-shape/introspection/index.d.ts +6 -0
- package/dist/with-shape/schema-update/index.d.ts +1 -0
- package/dist/with-store/index.d.ts +3 -2
- package/dist/withdraw-accessible-DEUCOO4F.js +28 -0
- package/dist/withdraw-accessible-DEUCOO4F.js.map +1 -0
- package/package.json +45 -5
- package/dist/api-5QVQX4HG.js +0 -20
- package/dist/chunk-2PDBYF2O.js.map +0 -1
- package/dist/chunk-2ZSC454H.js.map +0 -1
- package/dist/chunk-3S2YNMUS.js +0 -134
- package/dist/chunk-3S2YNMUS.js.map +0 -1
- package/dist/chunk-3TZUC4WS.js.map +0 -1
- package/dist/chunk-5ABOFAHN.js.map +0 -1
- package/dist/chunk-6SYOHUHM.js.map +0 -1
- package/dist/chunk-AZXEOEQK.js.map +0 -1
- package/dist/chunk-D4LAJ737.js.map +0 -1
- package/dist/chunk-DOZFU7OZ.js.map +0 -1
- package/dist/chunk-EGU4PWQW.js.map +0 -1
- package/dist/chunk-EWPS35AR.js.map +0 -1
- package/dist/chunk-GHEMAVTN.js.map +0 -1
- package/dist/chunk-GQT6J4FJ.js.map +0 -1
- package/dist/chunk-H5GMROCB.js.map +0 -1
- package/dist/chunk-LN3MQFUE.js.map +0 -1
- package/dist/chunk-M4GO4ZJK.js.map +0 -1
- package/dist/chunk-MQBFT2OT.js.map +0 -1
- package/dist/chunk-NIKO2BBZ.js.map +0 -1
- package/dist/chunk-PWWWMRT7.js.map +0 -1
- package/dist/chunk-QVIZDLAR.js.map +0 -1
- package/dist/chunk-RM5EXCFF.js.map +0 -1
- package/dist/chunk-SEU6QHH4.js.map +0 -1
- package/dist/chunk-TSNRZSRC.js.map +0 -1
- package/dist/chunk-YGMREQAK.js.map +0 -1
- package/dist/chunk-YJ3TREAC.js.map +0 -1
- package/dist/chunk-YMUGBZN2.js.map +0 -1
- package/dist/chunk-ZDFU34XY.js.map +0 -1
- package/dist/chunk-ZGEFBDPR.js.map +0 -1
- package/dist/chunk-ZX5FNWH7.js.map +0 -1
- package/dist/collection-facade-S5PPKZD5.js +0 -44
- package/dist/delegation-EV7LKJPH.js +0 -25
- package/dist/derive-5LDJW76F.js +0 -21
- package/dist/executor-FCJEH3FU.js +0 -9
- package/dist/executor-OHET7TF7.js +0 -9
- package/dist/executor-SVHAJZ4A.js +0 -28
- package/dist/export-accessible-S35YKIBL.js +0 -23
- package/dist/extract-partition-UVHAM5WZ.js +0 -38
- package/dist/find-LEBUXVL7.js +0 -11
- package/dist/issue-5X3SMCF4.js +0 -19
- package/dist/liberate-NHTCKBU4.js +0 -24
- package/dist/noydb-TI3RFU6M.js +0 -78
- package/dist/register-CEX7R7NE.js +0 -23
- package/dist/registry-7CZWF3EQ.js +0 -9
- package/dist/registry-DIKMRXUC.js +0 -19
- package/dist/registry-EWIB5NTI.js +0 -18
- package/dist/request-withdrawal-AAG57QO4.js +0 -31
- package/dist/revoke-U5LCIJMF.js +0 -24
- package/dist/signer-NAA2OX7H.js +0 -25
- package/dist/storage-FL7XXZTN.js +0 -23
- package/dist/withdraw-accessible-GO6KQJVM.js +0 -28
- /package/dist/{api-5QVQX4HG.js.map → api-3NKVNZPM.js.map} +0 -0
- /package/dist/{backup-USYSNCYM.js.map → backup-PTSVXDDW.js.map} +0 -0
- /package/dist/{chunk-5WLDZZ6S.js.map → chunk-35NMVJ7I.js.map} +0 -0
- /package/dist/{chunk-NA374QG7.js.map → chunk-3XKESW5E.js.map} +0 -0
- /package/dist/{chunk-MUPZ6IZX.js.map → chunk-4JQK3L4V.js.map} +0 -0
- /package/dist/{chunk-Z4D3YGAB.js.map → chunk-4ZKNC6A6.js.map} +0 -0
- /package/dist/{chunk-ONB627HU.js.map → chunk-55LX6FSX.js.map} +0 -0
- /package/dist/{chunk-M7W2KYTL.js.map → chunk-56IIVAEO.js.map} +0 -0
- /package/dist/{chunk-FHHYCBBP.js.map → chunk-5DRROK5W.js.map} +0 -0
- /package/dist/{chunk-GTNRMJYH.js.map → chunk-5GQEU4DN.js.map} +0 -0
- /package/dist/{chunk-XSOGLHGY.js.map → chunk-6L3DKWRY.js.map} +0 -0
- /package/dist/{chunk-44Y3P5U6.js.map → chunk-6M2I3DKF.js.map} +0 -0
- /package/dist/{chunk-HDF5R2K6.js.map → chunk-6R6Q3MRN.js.map} +0 -0
- /package/dist/{chunk-ZUDAK436.js.map → chunk-6UBZ6I5Z.js.map} +0 -0
- /package/dist/{chunk-7U6AB7DZ.js.map → chunk-AKKRXT23.js.map} +0 -0
- /package/dist/{chunk-OWLZONGX.js.map → chunk-BLBAQRBM.js.map} +0 -0
- /package/dist/{chunk-XONZGK6J.js.map → chunk-BN4HRYAZ.js.map} +0 -0
- /package/dist/{chunk-QVGEVZ5F.js.map → chunk-BQ6DHN4I.js.map} +0 -0
- /package/dist/{chunk-LG2GUYRX.js.map → chunk-BYFXLDVV.js.map} +0 -0
- /package/dist/{chunk-QRHEAZ2Q.js.map → chunk-CUZLNGD5.js.map} +0 -0
- /package/dist/{chunk-HXVRRJBD.js.map → chunk-DGBIHDVK.js.map} +0 -0
- /package/dist/{chunk-JGOKAZNB.js.map → chunk-DZAF24PG.js.map} +0 -0
- /package/dist/{chunk-TMR64XPL.js.map → chunk-EZNTORXE.js.map} +0 -0
- /package/dist/{chunk-WCJJQV2D.js.map → chunk-FMNU7IUG.js.map} +0 -0
- /package/dist/{collection-facade-S5PPKZD5.js.map → chunk-GJW4HX2O.js.map} +0 -0
- /package/dist/{chunk-JTIPVW4J.js.map → chunk-GP3UWP22.js.map} +0 -0
- /package/dist/{chunk-XG7OZDOS.js.map → chunk-HFUAFR6B.js.map} +0 -0
- /package/dist/{chunk-VDTWFN2P.js.map → chunk-IMRB2C4O.js.map} +0 -0
- /package/dist/{chunk-2BVW754E.js.map → chunk-ISRKW4YN.js.map} +0 -0
- /package/dist/{chunk-P4NUJVWL.js.map → chunk-IXNCZTWA.js.map} +0 -0
- /package/dist/{chunk-ZHZ4PET5.js.map → chunk-JIDLU57U.js.map} +0 -0
- /package/dist/{chunk-PTT2NB46.js.map → chunk-JYJFGD2H.js.map} +0 -0
- /package/dist/{chunk-XY6MNSAF.js.map → chunk-JYV4JJV2.js.map} +0 -0
- /package/dist/{chunk-ZHMUFYZF.js.map → chunk-KBPU5M2E.js.map} +0 -0
- /package/dist/{chunk-HA7P3BTB.js.map → chunk-KRCBZYTZ.js.map} +0 -0
- /package/dist/{chunk-VNJMLOQS.js.map → chunk-KW42W6SV.js.map} +0 -0
- /package/dist/{chunk-3GXDB3NQ.js.map → chunk-MANUDU7I.js.map} +0 -0
- /package/dist/{chunk-IUATR5UE.js.map → chunk-N5PLUFH2.js.map} +0 -0
- /package/dist/{chunk-C2V7AJO2.js.map → chunk-NEX7JCMO.js.map} +0 -0
- /package/dist/{chunk-5HSSTOOG.js.map → chunk-NFZGZ4AK.js.map} +0 -0
- /package/dist/{chunk-32467U5J.js.map → chunk-OBPVWOSQ.js.map} +0 -0
- /package/dist/{chunk-6SSWOUUS.js.map → chunk-OLIWCCFM.js.map} +0 -0
- /package/dist/{chunk-UNREYBZO.js.map → chunk-OLSARBZU.js.map} +0 -0
- /package/dist/{chunk-7LP7FFJ2.js.map → chunk-QD46HPZG.js.map} +0 -0
- /package/dist/{chunk-G4MFQXYX.js.map → chunk-QJNCB5SK.js.map} +0 -0
- /package/dist/{chunk-MMVQ3SUO.js.map → chunk-RZPOZPZU.js.map} +0 -0
- /package/dist/{chunk-E7FSBI6I.js.map → chunk-SGQ4N5FS.js.map} +0 -0
- /package/dist/{chunk-522MBPE5.js.map → chunk-SHEEBRZ4.js.map} +0 -0
- /package/dist/{chunk-EPME33Y4.js.map → chunk-SHYIA73K.js.map} +0 -0
- /package/dist/{chunk-MLCTPWSO.js.map → chunk-TE6LH6J2.js.map} +0 -0
- /package/dist/{chunk-JOCMXSR2.js.map → chunk-UADPR6F4.js.map} +0 -0
- /package/dist/{chunk-SBOHNJUD.js.map → chunk-V6UQZA2H.js.map} +0 -0
- /package/dist/{chunk-KCZAFDP5.js.map → chunk-VH6SOCXH.js.map} +0 -0
- /package/dist/{chunk-4B3DL75F.js.map → chunk-W3G5REIU.js.map} +0 -0
- /package/dist/{chunk-MPPWL64H.js.map → chunk-WBKZUO5V.js.map} +0 -0
- /package/dist/{chunk-WWBC4KLB.js.map → chunk-WO4T4OD5.js.map} +0 -0
- /package/dist/{chunk-7IQWHYL2.js.map → chunk-WZ3NCMK6.js.map} +0 -0
- /package/dist/{chunk-BAAUFCJK.js.map → chunk-X4MVWPHV.js.map} +0 -0
- /package/dist/{chunk-HVPW6PCX.js.map → chunk-XIDQKFZF.js.map} +0 -0
- /package/dist/{chunk-OWOT7CFC.js.map → chunk-Y6B6HVKC.js.map} +0 -0
- /package/dist/{chunk-ICYC5YNI.js.map → chunk-Y6VZQGGH.js.map} +0 -0
- /package/dist/{chunk-ZM72UO3Y.js.map → chunk-ZFUFAHZ3.js.map} +0 -0
- /package/dist/{classified-marker-SVDRXLD3.js.map → classified-marker-EOOSMWFC.js.map} +0 -0
- /package/dist/{computed-33DRJDOC.js.map → collection-facade-TTRF5NFJ.js.map} +0 -0
- /package/dist/{cover-ADBCTIKN.js.map → computed-AB45PS4V.js.map} +0 -0
- /package/dist/{delegation-EV7LKJPH.js.map → cover/index.js.map} +0 -0
- /package/dist/{derive-5LDJW76F.js.map → custody/index.js.map} +0 -0
- /package/dist/{dead-filter-HKDMTMVY.js.map → dead-filter-6DYY7S64.js.map} +0 -0
- /package/dist/{enclave-ZA7C3H2L.js.map → derive-IGGVSUPH.js.map} +0 -0
- /package/dist/{executor-FCJEH3FU.js.map → directory/index.js.map} +0 -0
- /package/dist/{dispatch-SPMYNXNW.js.map → dispatch-7T45NN7C.js.map} +0 -0
- /package/dist/{dispatch-V5MSMQYX.js.map → dispatch-RPTLK7LJ.js.map} +0 -0
- /package/dist/{executor-OHET7TF7.js.map → enclave-CLJVSDFG.js.map} +0 -0
- /package/dist/{executor-SVHAJZ4A.js.map → executor-IEBLTBCW.js.map} +0 -0
- /package/dist/{export-accessible-S35YKIBL.js.map → executor-RM7XWQDU.js.map} +0 -0
- /package/dist/{extract-partition-UVHAM5WZ.js.map → executor-XZYM4KHT.js.map} +0 -0
- /package/dist/{find-LEBUXVL7.js.map → export-accessible-24XCCD3A.js.map} +0 -0
- /package/dist/{issue-5X3SMCF4.js.map → extract-partition-H2TPEEOF.js.map} +0 -0
- /package/dist/{fanout-sidecar-HRMHC34B.js.map → fanout-sidecar-TV7CXAJ6.js.map} +0 -0
- /package/dist/{ledger-K6JBFL3Z.js.map → find-OZMTRIK3.js.map} +0 -0
- /package/dist/{liberate-NHTCKBU4.js.map → introspection/index.js.map} +0 -0
- /package/dist/{link-set-XVZY2ODC.js.map → issue-55HJE7JF.js.map} +0 -0
- /package/dist/{noydb-TI3RFU6M.js.map → ledger-XY6NP3J2.js.map} +0 -0
- /package/dist/{policy-QWGJB7P7.js.map → liberate-LXOJ2EMB.js.map} +0 -0
- /package/dist/{register-CEX7R7NE.js.map → link-set-POQB7BU5.js.map} +0 -0
- /package/dist/{registry-7CZWF3EQ.js.map → money/index.js.map} +0 -0
- /package/dist/{registry-DIKMRXUC.js.map → noydb-KXS35UJS.js.map} +0 -0
- /package/dist/{registry-EWIB5NTI.js.map → policy/index.js.map} +0 -0
- /package/dist/{post-register-5VHHVFJY.js.map → post-register-URQANI3B.js.map} +0 -0
- /package/dist/{registry-VW6P6A3J.js.map → register-5W6CG4RM.js.map} +0 -0
- /package/dist/{request-withdrawal-AAG57QO4.js.map → registry-7Y5WF7GS.js.map} +0 -0
- /package/dist/{revoke-U5LCIJMF.js.map → registry-BWD2ED52.js.map} +0 -0
- /package/dist/{signer-NAA2OX7H.js.map → registry-MCSGBZXI.js.map} +0 -0
- /package/dist/{stale-BJO2WIN7.js.map → registry-UJFP3NWF.js.map} +0 -0
- /package/dist/{storage-FL7XXZTN.js.map → request-withdrawal-IWYDM4SO.js.map} +0 -0
- /package/dist/{reveal-7OOT5XPD.js.map → reveal-BXZGWIOP.js.map} +0 -0
- /package/dist/{withdraw-accessible-GO6KQJVM.js.map → revoke-TINYPHYY.js.map} +0 -0
- /package/dist/{seed-GVOI6QP6.js.map → seed-F7YYQTRC.js.map} +0 -0
- /package/dist/{store-coordination-provider-DX5HECK3.js.map → store-coordination-provider-5LX2UFU2.js.map} +0 -0
- /package/dist/{verify-5X37OXRY.js.map → verify-7XWHJWUN.js.map} +0 -0
|
@@ -1,95 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NO_SEQUENCE,
|
|
3
|
-
SEQUENCE_COLLECTION,
|
|
4
|
-
compileSequenceFormat,
|
|
5
|
-
resolveSequenceKey
|
|
6
|
-
} from "./chunk-YGMREQAK.js";
|
|
7
|
-
import {
|
|
8
|
-
loadVaultPolicy
|
|
9
|
-
} from "./chunk-M7W2KYTL.js";
|
|
10
|
-
import {
|
|
11
|
-
jsonSchemaToFields
|
|
12
|
-
} from "./chunk-VYYM3MEN.js";
|
|
13
1
|
import {
|
|
14
2
|
resolveStaleOnRead
|
|
15
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJ4DYYO5.js";
|
|
16
4
|
import {
|
|
17
5
|
LinkIntegrityError,
|
|
18
6
|
isLinkCollectionName,
|
|
19
7
|
linkCollectionName,
|
|
20
8
|
linkRowKey
|
|
21
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4JQK3L4V.js";
|
|
22
10
|
import {
|
|
23
11
|
hashFields,
|
|
24
12
|
validateSatelliteDeclaration
|
|
25
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SHEEBRZ4.js";
|
|
26
14
|
import {
|
|
27
15
|
loadFence
|
|
28
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6M2I3DKF.js";
|
|
29
17
|
import {
|
|
30
|
-
InvertedIndex,
|
|
31
|
-
MemoryIndexStore,
|
|
32
|
-
NO_SEARCH,
|
|
33
18
|
VectorSet,
|
|
34
19
|
buildPersistedIndexCallbacks,
|
|
35
20
|
encodeVecId,
|
|
36
21
|
syncTierSearch
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
derivePersistedSchema,
|
|
40
|
-
isZod4Schema
|
|
41
|
-
} from "./chunk-SEU6QHH4.js";
|
|
42
|
-
import {
|
|
43
|
-
CustodyApi,
|
|
44
|
-
NO_CARGO,
|
|
45
|
-
NO_CUSTODY,
|
|
46
|
-
runDrainBarrier
|
|
47
|
-
} from "./chunk-3S2YNMUS.js";
|
|
22
|
+
} from "./chunk-CCDP6EPB.js";
|
|
48
23
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} from "./chunk-6SSWOUUS.js";
|
|
24
|
+
SchemaUpdateGate
|
|
25
|
+
} from "./chunk-6LJY7X5A.js";
|
|
52
26
|
import {
|
|
53
27
|
isBaseLive,
|
|
54
28
|
liveBaseIdSet
|
|
55
29
|
} from "./chunk-GYGLAVCX.js";
|
|
56
|
-
import {
|
|
57
|
-
NO_SYNC
|
|
58
|
-
} from "./chunk-EP5L47XV.js";
|
|
59
|
-
import {
|
|
60
|
-
NO_ATTESTATION
|
|
61
|
-
} from "./chunk-GTNRMJYH.js";
|
|
62
|
-
import {
|
|
63
|
-
NO_CLASSIFIED,
|
|
64
|
-
guardClassifiedCompat,
|
|
65
|
-
resolveClassifiedFields
|
|
66
|
-
} from "./chunk-ZM72UO3Y.js";
|
|
67
30
|
import {
|
|
68
31
|
NO_TIERS,
|
|
69
32
|
classifySealedShred,
|
|
70
33
|
syncDerivedOutputs
|
|
71
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6R6Q3MRN.js";
|
|
72
35
|
import {
|
|
73
36
|
NO_PORTABILITY
|
|
74
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BLBAQRBM.js";
|
|
75
38
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
39
|
+
NO_CARGO,
|
|
40
|
+
runDrainBarrier
|
|
41
|
+
} from "./chunk-TG634KCO.js";
|
|
78
42
|
import {
|
|
79
|
-
|
|
80
|
-
|
|
43
|
+
resolveManagedSecret,
|
|
44
|
+
saveSealedSecret
|
|
45
|
+
} from "./chunk-OLIWCCFM.js";
|
|
81
46
|
import {
|
|
82
|
-
|
|
83
|
-
} from "./chunk-
|
|
47
|
+
jsonSchemaToFields
|
|
48
|
+
} from "./chunk-VYYM3MEN.js";
|
|
84
49
|
import {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
} from "./chunk-QVGEVZ5F.js";
|
|
50
|
+
derivePersistedSchema,
|
|
51
|
+
isZod4Schema
|
|
52
|
+
} from "./chunk-6ZNSB3H6.js";
|
|
89
53
|
import {
|
|
90
54
|
DEFAULT_POSTURE,
|
|
91
55
|
ViaGraph
|
|
92
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4ZKNC6A6.js";
|
|
93
57
|
import {
|
|
94
58
|
buildLookupAltIndex,
|
|
95
59
|
buildLookupSnapshotRows,
|
|
@@ -113,29 +77,69 @@ import {
|
|
|
113
77
|
selfWriteFieldEqual,
|
|
114
78
|
touchFor,
|
|
115
79
|
updateReferencingRecords
|
|
116
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-GP3UWP22.js";
|
|
81
|
+
import {
|
|
82
|
+
OverlayedCollection
|
|
83
|
+
} from "./chunk-ZTLOXFPB.js";
|
|
84
|
+
import {
|
|
85
|
+
NO_SYNC
|
|
86
|
+
} from "./chunk-EP5L47XV.js";
|
|
87
|
+
import {
|
|
88
|
+
NO_ATTESTATION
|
|
89
|
+
} from "./chunk-5GQEU4DN.js";
|
|
90
|
+
import {
|
|
91
|
+
NO_CLASSIFIED,
|
|
92
|
+
guardClassifiedCompat,
|
|
93
|
+
resolveClassifiedFields
|
|
94
|
+
} from "./chunk-ZFUFAHZ3.js";
|
|
95
|
+
import {
|
|
96
|
+
NO_PERIODS
|
|
97
|
+
} from "./chunk-N5PLUFH2.js";
|
|
98
|
+
import {
|
|
99
|
+
NO_SHADOW
|
|
100
|
+
} from "./chunk-SMY5X46Z.js";
|
|
101
|
+
import {
|
|
102
|
+
NO_SNAPSHOTS
|
|
103
|
+
} from "./chunk-DZFQVICS.js";
|
|
104
|
+
import {
|
|
105
|
+
TxContext,
|
|
106
|
+
bestEffortRevert,
|
|
107
|
+
revertExecuted
|
|
108
|
+
} from "./chunk-BQ6DHN4I.js";
|
|
117
109
|
import {
|
|
118
110
|
lazy
|
|
119
111
|
} from "./chunk-5D2ALSM5.js";
|
|
120
112
|
import {
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
InvertedIndex,
|
|
114
|
+
MemoryIndexStore,
|
|
115
|
+
NO_SEARCH
|
|
116
|
+
} from "./chunk-QADFHRQM.js";
|
|
117
|
+
import {
|
|
118
|
+
NO_SEQUENCE,
|
|
119
|
+
SEQUENCE_COLLECTION,
|
|
120
|
+
compileSequenceFormat,
|
|
121
|
+
resolveSequenceKey
|
|
122
|
+
} from "./chunk-EBKCYQ2D.js";
|
|
123
|
+
import {
|
|
124
|
+
CustodyApi,
|
|
125
|
+
NO_CUSTODY
|
|
126
|
+
} from "./chunk-SKM35Y4Q.js";
|
|
123
127
|
import {
|
|
124
128
|
Query,
|
|
125
129
|
ScanBuilder
|
|
126
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-WBKZUO5V.js";
|
|
127
131
|
import {
|
|
128
132
|
EXPORT_AUDIT_COLLECTION,
|
|
129
133
|
NO_BLOBS,
|
|
130
134
|
createExportBlobsHandle,
|
|
131
135
|
runCompaction
|
|
132
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-IF6WNGAK.js";
|
|
133
137
|
import {
|
|
134
138
|
LazyQuery,
|
|
135
139
|
NO_INDEXING,
|
|
136
140
|
decodeIdxId,
|
|
137
141
|
encodeIdxId
|
|
138
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-L3YYLT4E.js";
|
|
139
143
|
import {
|
|
140
144
|
IMPLICIT_LAZY,
|
|
141
145
|
Lru,
|
|
@@ -158,7 +162,7 @@ import {
|
|
|
158
162
|
} from "./chunk-PEOZ34EM.js";
|
|
159
163
|
import {
|
|
160
164
|
dictCollectionName
|
|
161
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-NEX7JCMO.js";
|
|
162
166
|
import {
|
|
163
167
|
NO_I18N,
|
|
164
168
|
getAtPath,
|
|
@@ -166,13 +170,17 @@ import {
|
|
|
166
170
|
isDictKeyDescriptor,
|
|
167
171
|
isI18nTextDescriptor,
|
|
168
172
|
isStaticDictDescriptor
|
|
169
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-UADPR6F4.js";
|
|
170
174
|
import {
|
|
171
175
|
isViaInstalled,
|
|
172
176
|
viaBinder
|
|
173
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-6UBZ6I5Z.js";
|
|
174
178
|
import {
|
|
175
179
|
NO_TEAM,
|
|
180
|
+
describeAllUsersAuth,
|
|
181
|
+
describeAuthConfig,
|
|
182
|
+
describeUserAuth,
|
|
183
|
+
diagramAuthConfig,
|
|
176
184
|
enrollAuthenticator,
|
|
177
185
|
findAuthenticator,
|
|
178
186
|
hasRecoveryEnrolled,
|
|
@@ -189,7 +197,17 @@ import {
|
|
|
189
197
|
saveShamirRecoveryEntries,
|
|
190
198
|
updateAuthenticator,
|
|
191
199
|
writeMagicLinkGrant
|
|
192
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-C25JXSOR.js";
|
|
201
|
+
import {
|
|
202
|
+
INDEXED_STORE_POLICY
|
|
203
|
+
} from "./chunk-VQNJ7UZL.js";
|
|
204
|
+
import {
|
|
205
|
+
PERIODS_COLLECTION,
|
|
206
|
+
PERIOD_ARCHIVES_COLLECTION,
|
|
207
|
+
PERIOD_FREEZES_COLLECTION,
|
|
208
|
+
PERIOD_TARGET_PURGES_COLLECTION,
|
|
209
|
+
periodExclusiveUpperBound
|
|
210
|
+
} from "./chunk-EZNTORXE.js";
|
|
193
211
|
import {
|
|
194
212
|
assertKeyringOpenAllowed,
|
|
195
213
|
buildRecipientKeyringFile,
|
|
@@ -204,25 +222,15 @@ import {
|
|
|
204
222
|
listUsers,
|
|
205
223
|
loadKeyring,
|
|
206
224
|
updateKeyringIdentity
|
|
207
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-KPXM4WO6.js";
|
|
208
226
|
import {
|
|
209
227
|
persistDirectoryConfig,
|
|
210
228
|
readDirectoryConfig
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import {
|
|
213
|
-
INDEXED_STORE_POLICY
|
|
214
|
-
} from "./chunk-VQNJ7UZL.js";
|
|
215
|
-
import {
|
|
216
|
-
PERIODS_COLLECTION,
|
|
217
|
-
PERIOD_ARCHIVES_COLLECTION,
|
|
218
|
-
PERIOD_FREEZES_COLLECTION,
|
|
219
|
-
PERIOD_TARGET_PURGES_COLLECTION,
|
|
220
|
-
periodExclusiveUpperBound
|
|
221
|
-
} from "./chunk-TMR64XPL.js";
|
|
229
|
+
} from "./chunk-WZ3NCMK6.js";
|
|
222
230
|
import {
|
|
223
231
|
NO_BROKER,
|
|
224
232
|
buildCredentialBrokerHandle
|
|
225
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-IXNCZTWA.js";
|
|
226
234
|
import {
|
|
227
235
|
NO_SESSION
|
|
228
236
|
} from "./chunk-VKQCVU2Z.js";
|
|
@@ -236,10 +244,10 @@ import {
|
|
|
236
244
|
assertCutoverTierSafe,
|
|
237
245
|
assertTierWritable,
|
|
238
246
|
liveRecordIsElevated
|
|
239
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-JYJFGD2H.js";
|
|
240
248
|
import {
|
|
241
249
|
sha256Hex
|
|
242
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-ISRKW4YN.js";
|
|
243
251
|
import {
|
|
244
252
|
NO_FORGET,
|
|
245
253
|
addSubjectRef,
|
|
@@ -248,10 +256,10 @@ import {
|
|
|
248
256
|
readDottedPath,
|
|
249
257
|
rebuildSubjectIndex,
|
|
250
258
|
removeSubjectRef
|
|
251
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-KFRPNHWR.js";
|
|
252
260
|
import {
|
|
253
261
|
NO_SEALED_RECORD
|
|
254
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-QD46HPZG.js";
|
|
255
263
|
import {
|
|
256
264
|
RecordCodec,
|
|
257
265
|
SEALED_CEK_NS,
|
|
@@ -262,20 +270,20 @@ import {
|
|
|
262
270
|
queryByDet,
|
|
263
271
|
resolveStableCek,
|
|
264
272
|
validateSchemaInput
|
|
265
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-RZPOZPZU.js";
|
|
266
274
|
import {
|
|
267
275
|
buildDeleteMarker,
|
|
268
276
|
buildTombstone,
|
|
269
277
|
isDeleteMarker,
|
|
270
278
|
isTombstone
|
|
271
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-VH6SOCXH.js";
|
|
272
280
|
import {
|
|
273
281
|
encrypt
|
|
274
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-AKKRXT23.js";
|
|
275
283
|
import {
|
|
276
284
|
NOYDB_FORMAT_VERSION,
|
|
277
285
|
SealedHandle
|
|
278
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-GZACYEOB.js";
|
|
279
287
|
import {
|
|
280
288
|
AlreadyElevatedError,
|
|
281
289
|
AttestationError,
|
|
@@ -316,13 +324,13 @@ import {
|
|
|
316
324
|
UnsupportedIndexOptionError,
|
|
317
325
|
UnsupportedTierCompositionError,
|
|
318
326
|
ValidationError
|
|
319
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-QZWTRENR.js";
|
|
320
328
|
|
|
321
329
|
// src/with-commit/tx/strategy.ts
|
|
322
330
|
var NOT_ENABLED = new Error(
|
|
323
|
-
'Multi-record transactions require the tx strategy. Import `{ withTransactions }` from "@noy-db/hub/
|
|
331
|
+
'Multi-record transactions require the tx strategy. Import `{ withTransactions }` from "@noy-db/hub/transactions" and pass it to `createNoydb({ transactionsStrategy: withTransactions() })`.'
|
|
324
332
|
);
|
|
325
|
-
var
|
|
333
|
+
var NO_TRANSACTIONS = {
|
|
326
334
|
async runTransaction(_db, _fn, _options, _txInvariants) {
|
|
327
335
|
throw NOT_ENABLED;
|
|
328
336
|
},
|
|
@@ -344,7 +352,7 @@ var STRATEGY_DEFAULTS = {
|
|
|
344
352
|
reduce: NO_REDUCE,
|
|
345
353
|
archive: NO_ARCHIVE,
|
|
346
354
|
attestation: NO_ATTESTATION,
|
|
347
|
-
|
|
355
|
+
blobs: NO_BLOBS,
|
|
348
356
|
broker: NO_BROKER,
|
|
349
357
|
cargo: NO_CARGO,
|
|
350
358
|
classified: NO_CLASSIFIED,
|
|
@@ -354,7 +362,7 @@ var STRATEGY_DEFAULTS = {
|
|
|
354
362
|
forget: NO_FORGET,
|
|
355
363
|
history: NO_HISTORY,
|
|
356
364
|
i18n: NO_I18N,
|
|
357
|
-
|
|
365
|
+
indexing: NO_INDEXING,
|
|
358
366
|
lazy: IMPLICIT_LAZY,
|
|
359
367
|
periods: NO_PERIODS,
|
|
360
368
|
portability: NO_PORTABILITY,
|
|
@@ -363,11 +371,11 @@ var STRATEGY_DEFAULTS = {
|
|
|
363
371
|
sequence: NO_SEQUENCE,
|
|
364
372
|
session: NO_SESSION,
|
|
365
373
|
shadow: NO_SHADOW,
|
|
366
|
-
|
|
374
|
+
snapshots: NO_SNAPSHOTS,
|
|
367
375
|
sync: NO_SYNC,
|
|
368
376
|
team: NO_TEAM,
|
|
369
377
|
tiers: NO_TIERS,
|
|
370
|
-
|
|
378
|
+
transactions: NO_TRANSACTIONS
|
|
371
379
|
};
|
|
372
380
|
var STRATEGY_KEYS = Object.keys(STRATEGY_DEFAULTS);
|
|
373
381
|
function resolveStrategies(options) {
|
|
@@ -382,7 +390,7 @@ function resolveStrategies(options) {
|
|
|
382
390
|
|
|
383
391
|
// src/port/by/default-provider.ts
|
|
384
392
|
async function createDefaultCoordinationProvider(store) {
|
|
385
|
-
const { StoreCoordinationProvider } = await import("./store-coordination-provider-
|
|
393
|
+
const { StoreCoordinationProvider } = await import("./store-coordination-provider-5LX2UFU2.js");
|
|
386
394
|
return new StoreCoordinationProvider(store);
|
|
387
395
|
}
|
|
388
396
|
|
|
@@ -930,7 +938,7 @@ async function reconcileIndex(ctx, field, opts = {}) {
|
|
|
930
938
|
const persisted = ctx.persistedIndexes;
|
|
931
939
|
if (!persisted) {
|
|
932
940
|
throw new Error(
|
|
933
|
-
`Collection "${ctx.name}": indexing is disabled on this Noydb instance. Pass \`withIndexing()\` from "@noy-db/hub/indexing" to \`createNoydb({
|
|
941
|
+
`Collection "${ctx.name}": indexing is disabled on this Noydb instance. Pass \`withIndexing()\` from "@noy-db/hub/indexing" to \`createNoydb({ indexingStrategy })\`.`
|
|
934
942
|
);
|
|
935
943
|
}
|
|
936
944
|
if (!persisted.has(field)) {
|
|
@@ -2168,7 +2176,7 @@ function resolveCollectionConfig(opts) {
|
|
|
2168
2176
|
}
|
|
2169
2177
|
|
|
2170
2178
|
// src/with-formula/computed/lazy.ts
|
|
2171
|
-
var loadComputed = lazy(() => import("./computed-
|
|
2179
|
+
var loadComputed = lazy(() => import("./computed-AB45PS4V.js"));
|
|
2172
2180
|
async function loadEvalComputedFields() {
|
|
2173
2181
|
return (await loadComputed()).evalComputedFields;
|
|
2174
2182
|
}
|
|
@@ -2212,7 +2220,7 @@ var Collection = class {
|
|
|
2212
2220
|
* `NO_*` stub — a tiny module that throws with an actionable message —
|
|
2213
2221
|
* so, for example, none of the BlobSet / chunk / MIME-magic machinery
|
|
2214
2222
|
* reaches the bundle unless the consumer imports `@noy-db/hub/blobs` and
|
|
2215
|
-
* passes `
|
|
2223
|
+
* passes `blobsStrategy: blobs()` to `createNoydb`.
|
|
2216
2224
|
*/
|
|
2217
2225
|
strategies;
|
|
2218
2226
|
objectStore;
|
|
@@ -2254,7 +2262,7 @@ var Collection = class {
|
|
|
2254
2262
|
lru;
|
|
2255
2263
|
/**
|
|
2256
2264
|
* tree-shake seam — per-Collection indexing state. Owned by the
|
|
2257
|
-
* `
|
|
2265
|
+
* `IndexingStrategy` passed through from `createNoydb({ indexingStrategy })`.
|
|
2258
2266
|
* Defaults to a disabled state (both accessors return null) so the
|
|
2259
2267
|
* `CollectionIndexes` / `PersistedCollectionIndex` / `LazyQuery`
|
|
2260
2268
|
* classes never reach the bundle when indexing is unused.
|
|
@@ -2694,7 +2702,7 @@ var Collection = class {
|
|
|
2694
2702
|
} else {
|
|
2695
2703
|
this.lru = null;
|
|
2696
2704
|
}
|
|
2697
|
-
const strategy = opts.strategies.
|
|
2705
|
+
const strategy = opts.strategies.indexing;
|
|
2698
2706
|
this.indexState = strategy.createState({
|
|
2699
2707
|
defs: opts.indexes ?? [],
|
|
2700
2708
|
lazy: this.lazy
|
|
@@ -2946,7 +2954,7 @@ var Collection = class {
|
|
|
2946
2954
|
}
|
|
2947
2955
|
await this.onAccess?.("find", "*");
|
|
2948
2956
|
if (hits.length === 0) return [];
|
|
2949
|
-
const { verifyDigestField } = await import("./verify-
|
|
2957
|
+
const { verifyDigestField } = await import("./verify-7XWHJWUN.js");
|
|
2950
2958
|
const policy = {
|
|
2951
2959
|
normalize: spec.verifyNormalize ?? "password",
|
|
2952
2960
|
notLastN: spec.notLastN ?? 0,
|
|
@@ -3152,7 +3160,7 @@ var Collection = class {
|
|
|
3152
3160
|
}
|
|
3153
3161
|
}
|
|
3154
3162
|
if (this.materializedViewSource !== void 0) {
|
|
3155
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
3163
|
+
const { resolveStaleMVOnRead } = await import("./stale-JOE7GBAE.js");
|
|
3156
3164
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3157
3165
|
}
|
|
3158
3166
|
let record;
|
|
@@ -3638,7 +3646,7 @@ var Collection = class {
|
|
|
3638
3646
|
*/
|
|
3639
3647
|
async dispatchMaterializedViews(id, record, wave) {
|
|
3640
3648
|
if (this.materializedViewSource === void 0) return;
|
|
3641
|
-
const { dispatchMaterializedViews } = await import("./dispatch-
|
|
3649
|
+
const { dispatchMaterializedViews } = await import("./dispatch-RPTLK7LJ.js");
|
|
3642
3650
|
return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
|
|
3643
3651
|
}
|
|
3644
3652
|
/**
|
|
@@ -3811,7 +3819,7 @@ var Collection = class {
|
|
|
3811
3819
|
* dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
|
|
3812
3820
|
async dispatchDerivations(id, record, version, wave) {
|
|
3813
3821
|
if (this.derivationSource === void 0) return;
|
|
3814
|
-
const { dispatchDerivations } = await import("./dispatch-
|
|
3822
|
+
const { dispatchDerivations } = await import("./dispatch-7T45NN7C.js");
|
|
3815
3823
|
return dispatchDerivations({
|
|
3816
3824
|
...this.#derivationDeleteCtx(this.derivationSource),
|
|
3817
3825
|
via: this.via,
|
|
@@ -4088,7 +4096,7 @@ var Collection = class {
|
|
|
4088
4096
|
*/
|
|
4089
4097
|
async dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
|
|
4090
4098
|
if (this.derivationSource === void 0) return 0;
|
|
4091
|
-
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-
|
|
4099
|
+
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-7T45NN7C.js");
|
|
4092
4100
|
return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
|
|
4093
4101
|
}
|
|
4094
4102
|
/**
|
|
@@ -4102,7 +4110,7 @@ var Collection = class {
|
|
|
4102
4110
|
*/
|
|
4103
4111
|
async dispatchMaterializedViewsOnDelete(id) {
|
|
4104
4112
|
if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
|
|
4105
|
-
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-
|
|
4113
|
+
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-RPTLK7LJ.js");
|
|
4106
4114
|
return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
|
|
4107
4115
|
}
|
|
4108
4116
|
/**
|
|
@@ -4122,7 +4130,7 @@ var Collection = class {
|
|
|
4122
4130
|
);
|
|
4123
4131
|
}
|
|
4124
4132
|
if (this.materializedViewSource !== void 0) {
|
|
4125
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
4133
|
+
const { resolveStaleMVOnRead } = await import("./stale-JOE7GBAE.js");
|
|
4126
4134
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
4127
4135
|
}
|
|
4128
4136
|
await this.ensureHydrated();
|
|
@@ -5003,7 +5011,7 @@ var Collection = class {
|
|
|
5003
5011
|
* vault-shared `_blob` DEK (enabling cross-collection deduplication).
|
|
5004
5012
|
*/
|
|
5005
5013
|
blob(id) {
|
|
5006
|
-
return this.strategies.
|
|
5014
|
+
return this.strategies.blobs.openSlot({
|
|
5007
5015
|
store: this.adapter,
|
|
5008
5016
|
vault: this.vault,
|
|
5009
5017
|
collection: this.name,
|
|
@@ -5236,7 +5244,7 @@ var Collection = class {
|
|
|
5236
5244
|
const persisted = this.persistedIndexes;
|
|
5237
5245
|
if (!persisted) {
|
|
5238
5246
|
throw new Error(
|
|
5239
|
-
`Collection "${this.name}": lazyQuery() requires indexing to be enabled. Pass \`withIndexing()\` from "@noy-db/hub/indexing" to \`createNoydb({
|
|
5247
|
+
`Collection "${this.name}": lazyQuery() requires indexing to be enabled. Pass \`withIndexing()\` from "@noy-db/hub/indexing" to \`createNoydb({ indexingStrategy: withIndexing() })\`.`
|
|
5240
5248
|
);
|
|
5241
5249
|
}
|
|
5242
5250
|
if (persisted.fields().length === 0) {
|
|
@@ -5275,14 +5283,14 @@ var Collection = class {
|
|
|
5275
5283
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
5276
5284
|
async _ensureClassifiedMarker() {
|
|
5277
5285
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
5278
|
-
const { persistClassifiedMarkerForFields } = await import("./classified-marker-
|
|
5286
|
+
const { persistClassifiedMarkerForFields } = await import("./classified-marker-EOOSMWFC.js");
|
|
5279
5287
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
5280
5288
|
this._markerPersisted = true;
|
|
5281
5289
|
}
|
|
5282
5290
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
5283
5291
|
async _classifiedMarkerDigestOnly() {
|
|
5284
5292
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
5285
|
-
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-
|
|
5293
|
+
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-EOOSMWFC.js");
|
|
5286
5294
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
5287
5295
|
return this._markerDigestOnlyCache;
|
|
5288
5296
|
}
|
|
@@ -5410,7 +5418,7 @@ var Collection = class {
|
|
|
5410
5418
|
},
|
|
5411
5419
|
historyEnabled: this.historyConfig.enabled !== false && this.strategies.history !== NO_HISTORY,
|
|
5412
5420
|
// #728/#737: lets putAtTier skip decrypting `existing` when no real history strategy is wired
|
|
5413
|
-
syncBlobs: (id, fromTier, toTier) => this.strategies.
|
|
5421
|
+
syncBlobs: (id, fromTier, toTier) => this.strategies.blobs !== NO_BLOBS ? this.blob(id).syncTierMove(fromTier, toTier, this.blobTierPolicy) : Promise.resolve(),
|
|
5414
5422
|
// #724 I1: gate on blob storage enabled (not on declared blobFields) so undeclared-field blobs still rehome; #746: syncTierMove mints/resumes the rehome journal marker; self-no-ops on an empty slot map
|
|
5415
5423
|
syncLedger: async (id) => {
|
|
5416
5424
|
await this.ledger?.purgeRecordDeltas(this.name, id);
|
|
@@ -6725,7 +6733,7 @@ var VaultLinks = class {
|
|
|
6725
6733
|
// src/with-shape/links/lazy-handle.ts
|
|
6726
6734
|
function makeLazyLinkSetHandle(d) {
|
|
6727
6735
|
let engine = null;
|
|
6728
|
-
const load = () => engine ??= import("./link-set-
|
|
6736
|
+
const load = () => engine ??= import("./link-set-POQB7BU5.js").then(
|
|
6729
6737
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
6730
6738
|
);
|
|
6731
6739
|
return {
|
|
@@ -7263,7 +7271,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
7263
7271
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
7264
7272
|
const registry = reg;
|
|
7265
7273
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
7266
|
-
void import("./post-register-
|
|
7274
|
+
void import("./post-register-URQANI3B.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
7267
7275
|
});
|
|
7268
7276
|
return reg;
|
|
7269
7277
|
}
|
|
@@ -7594,20 +7602,6 @@ async function migrateSatelliteCek(name, coll) {
|
|
|
7594
7602
|
return { migrated };
|
|
7595
7603
|
}
|
|
7596
7604
|
|
|
7597
|
-
// src/with-shape/schema-update/gate.ts
|
|
7598
|
-
var SchemaUpdateGate = class {
|
|
7599
|
-
#decision;
|
|
7600
|
-
constructor(decision) {
|
|
7601
|
-
this.#decision = decision.catch(() => null);
|
|
7602
|
-
}
|
|
7603
|
-
async assertWritable() {
|
|
7604
|
-
const decision = await this.#decision;
|
|
7605
|
-
if (decision && decision.action === "reject") {
|
|
7606
|
-
throw decision.error;
|
|
7607
|
-
}
|
|
7608
|
-
}
|
|
7609
|
-
};
|
|
7610
|
-
|
|
7611
7605
|
// src/with-shape/schema-update/fence-controller.ts
|
|
7612
7606
|
var SchemaFenceController = class {
|
|
7613
7607
|
#coordination;
|
|
@@ -8233,7 +8227,7 @@ var Vault = class {
|
|
|
8233
8227
|
const strategies = options.schemaUpdate ?? [];
|
|
8234
8228
|
const work = (async () => {
|
|
8235
8229
|
const dek = await this.getDEK(collectionName);
|
|
8236
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
8230
|
+
const { persistSchemaIfNeeded } = await import("./register-5W6CG4RM.js");
|
|
8237
8231
|
const result = await persistSchemaIfNeeded({
|
|
8238
8232
|
store: this.adapter,
|
|
8239
8233
|
vault: this.name,
|
|
@@ -8319,7 +8313,7 @@ var Vault = class {
|
|
|
8319
8313
|
if (subjectKey !== void 0) {
|
|
8320
8314
|
if (options?.perRecordKeys === false) {
|
|
8321
8315
|
console.warn(
|
|
8322
|
-
`[noy-db] Collection "${collectionName}" is declared in
|
|
8316
|
+
`[noy-db] Collection "${collectionName}" is declared in withForget but opened with perRecordKeys: false. Forcing perRecordKeys: true \u2014 GDPR crypto-shred requires per-record CEKs.`
|
|
8323
8317
|
);
|
|
8324
8318
|
}
|
|
8325
8319
|
collOpts.perRecordKeys = true;
|
|
@@ -8382,7 +8376,7 @@ var Vault = class {
|
|
|
8382
8376
|
const work = (async () => {
|
|
8383
8377
|
try {
|
|
8384
8378
|
const dek = await this.getDEK(collectionName);
|
|
8385
|
-
await (await import("./register-
|
|
8379
|
+
await (await import("./register-5W6CG4RM.js")).persistSchemaIfNeeded({
|
|
8386
8380
|
store: this.adapter,
|
|
8387
8381
|
vault: this.name,
|
|
8388
8382
|
collectionName,
|
|
@@ -9252,7 +9246,7 @@ var Vault = class {
|
|
|
9252
9246
|
* stay decryptable; migrate, then re-forget) and `blobResidueCollections` (blob attachments, keyed
|
|
9253
9247
|
* off a separate `_blob` DEK, out of scope here).
|
|
9254
9248
|
*
|
|
9255
|
-
* @throws ForgetStrategyNotConfiguredError when no `
|
|
9249
|
+
* @throws ForgetStrategyNotConfiguredError when no `withForget` was set.
|
|
9256
9250
|
*/
|
|
9257
9251
|
async forget(subjectId) {
|
|
9258
9252
|
if (Object.keys(this.strategies.forget.subjects).length === 0) {
|
|
@@ -9277,7 +9271,7 @@ var Vault = class {
|
|
|
9277
9271
|
const sealedResidue = [];
|
|
9278
9272
|
const indexResidue = [];
|
|
9279
9273
|
const ledgerDeltaResidue = [];
|
|
9280
|
-
const blobsEnabled = this.strategies.
|
|
9274
|
+
const blobsEnabled = this.strategies.blobs !== NO_BLOBS;
|
|
9281
9275
|
const actor = this.keyring.userId;
|
|
9282
9276
|
const fanoutStats = { recordsErased: 0, aggregatesRecomputed: 0, residueFrozen: [], lookupReferencesCascaded: 0, lookupReferencesNullified: 0, lookupReferencesResidue: [], derivedResidueUndecodable: [], derivedResidueDeclined: [] };
|
|
9283
9277
|
const { partitionSealedCekKeys, shouldSkipBlobScan, bumpResidueCount, residueNoticesFromMap } = await import("./purge-scope-FGNNLWHD.js");
|
|
@@ -9541,7 +9535,7 @@ var Vault = class {
|
|
|
9541
9535
|
async _initGuards(handles) {
|
|
9542
9536
|
if (handles.length === 0) return;
|
|
9543
9537
|
const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9544
|
-
import("./registry-
|
|
9538
|
+
import("./registry-BWD2ED52.js"),
|
|
9545
9539
|
import("./read-only-facade-CHCKSEPD.js")
|
|
9546
9540
|
]);
|
|
9547
9541
|
const registry = new GuardRegistry();
|
|
@@ -9569,7 +9563,7 @@ var Vault = class {
|
|
|
9569
9563
|
async _initDerivations(handles) {
|
|
9570
9564
|
if (handles.length === 0) return;
|
|
9571
9565
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
9572
|
-
import("./registry-
|
|
9566
|
+
import("./registry-MCSGBZXI.js"),
|
|
9573
9567
|
import("./read-only-facade-CHCKSEPD.js")
|
|
9574
9568
|
]);
|
|
9575
9569
|
const registry = new DerivationRegistry();
|
|
@@ -9601,7 +9595,7 @@ var Vault = class {
|
|
|
9601
9595
|
*/
|
|
9602
9596
|
async _initMaterializedViews(handles) {
|
|
9603
9597
|
if (handles.length === 0) return;
|
|
9604
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
9598
|
+
const { MaterializedViewRegistry } = await import("./registry-UJFP3NWF.js");
|
|
9605
9599
|
const registry = new MaterializedViewRegistry();
|
|
9606
9600
|
this.materializedViewRegistry = registry;
|
|
9607
9601
|
const db = this;
|
|
@@ -9626,7 +9620,7 @@ var Vault = class {
|
|
|
9626
9620
|
*/
|
|
9627
9621
|
async _initOverlayedViews(handles) {
|
|
9628
9622
|
if (handles.length === 0) return;
|
|
9629
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
9623
|
+
const { OverlayedViewRegistry } = await import("./registry-7Y5WF7GS.js");
|
|
9630
9624
|
const registry = new OverlayedViewRegistry();
|
|
9631
9625
|
const mvRegistry = this.materializedViewRegistry;
|
|
9632
9626
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -9673,14 +9667,14 @@ var Vault = class {
|
|
|
9673
9667
|
if (!reg) {
|
|
9674
9668
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
9675
9669
|
}
|
|
9676
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
9670
|
+
const { MaterializedViewExecutor } = await import("./executor-XZYM4KHT.js");
|
|
9677
9671
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
9678
9672
|
getCollection: (n) => this.collection(n),
|
|
9679
9673
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
9680
9674
|
getQueryContext: () => this,
|
|
9681
9675
|
dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
|
|
9682
9676
|
});
|
|
9683
|
-
const { clearMVStaleFully } = await import("./stale-
|
|
9677
|
+
const { clearMVStaleFully } = await import("./stale-JOE7GBAE.js");
|
|
9684
9678
|
await clearMVStaleFully(this.adapter, this.name, registry, name);
|
|
9685
9679
|
return result;
|
|
9686
9680
|
}
|
|
@@ -9693,7 +9687,7 @@ var Vault = class {
|
|
|
9693
9687
|
if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9694
9688
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
9695
9689
|
if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
9696
|
-
const { DerivationExecutor } = await import("./executor-
|
|
9690
|
+
const { DerivationExecutor } = await import("./executor-IEBLTBCW.js");
|
|
9697
9691
|
const sourceColl = this.collection(sourceCollection);
|
|
9698
9692
|
const records = await sourceColl.list();
|
|
9699
9693
|
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-CHCKSEPD.js")).ReadOnlyVaultFacade(this, "derivation") };
|
|
@@ -9720,7 +9714,7 @@ var Vault = class {
|
|
|
9720
9714
|
if (!outSpec) continue;
|
|
9721
9715
|
const outputColl = this.collection(outSpec.collection);
|
|
9722
9716
|
if (out.kind === "array") {
|
|
9723
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
9717
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-TV7CXAJ6.js");
|
|
9724
9718
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
9725
9719
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
9726
9720
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -9947,7 +9941,7 @@ var Vault = class {
|
|
|
9947
9941
|
* collection.
|
|
9948
9942
|
*/
|
|
9949
9943
|
async delegate(opts) {
|
|
9950
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
9944
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-ONOZVPIP.js");
|
|
9951
9945
|
if (!this.keyring.kek) {
|
|
9952
9946
|
throw new ValidationError(
|
|
9953
9947
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
|
|
@@ -9969,7 +9963,7 @@ var Vault = class {
|
|
|
9969
9963
|
* if the id does not exist.
|
|
9970
9964
|
*/
|
|
9971
9965
|
async revokeDelegation(id) {
|
|
9972
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
9966
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-ONOZVPIP.js");
|
|
9973
9967
|
await revokeDelegation(this.adapter, this.name, id);
|
|
9974
9968
|
void DELEGATIONS_COLLECTION;
|
|
9975
9969
|
}
|
|
@@ -10217,7 +10211,7 @@ var Vault = class {
|
|
|
10217
10211
|
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
10218
10212
|
*/
|
|
10219
10213
|
async dumpSchema(opts = {}) {
|
|
10220
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
10214
|
+
const { dumpVaultSchema } = await import("./walk-6OHAWGBS.js");
|
|
10221
10215
|
return dumpVaultSchema(this, opts);
|
|
10222
10216
|
}
|
|
10223
10217
|
/**
|
|
@@ -10352,7 +10346,7 @@ var Vault = class {
|
|
|
10352
10346
|
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/public-envelope.md
|
|
10353
10347
|
*/
|
|
10354
10348
|
async getCover(opts = {}) {
|
|
10355
|
-
const { readCover } = await import("./cover
|
|
10349
|
+
const { readCover } = await import("./cover/index.js");
|
|
10356
10350
|
return readCover(this.adapter, this.name, opts);
|
|
10357
10351
|
}
|
|
10358
10352
|
/**
|
|
@@ -10367,7 +10361,7 @@ var Vault = class {
|
|
|
10367
10361
|
* both modes round-trip cleanly.
|
|
10368
10362
|
*/
|
|
10369
10363
|
async dump() {
|
|
10370
|
-
const { dumpVault } = await import("./backup-
|
|
10364
|
+
const { dumpVault } = await import("./backup-PTSVXDDW.js");
|
|
10371
10365
|
return dumpVault(this.backupContext());
|
|
10372
10366
|
}
|
|
10373
10367
|
/**
|
|
@@ -10419,7 +10413,7 @@ var Vault = class {
|
|
|
10419
10413
|
* — there's no chain to verify against.
|
|
10420
10414
|
*/
|
|
10421
10415
|
async load(backupJson) {
|
|
10422
|
-
const { loadVault } = await import("./backup-
|
|
10416
|
+
const { loadVault } = await import("./backup-PTSVXDDW.js");
|
|
10423
10417
|
return loadVault(this.backupContext(), backupJson);
|
|
10424
10418
|
}
|
|
10425
10419
|
/**
|
|
@@ -10451,7 +10445,7 @@ var Vault = class {
|
|
|
10451
10445
|
* way to detect tampering of an in-place vault.
|
|
10452
10446
|
*/
|
|
10453
10447
|
async verifyBackupIntegrity() {
|
|
10454
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
10448
|
+
const { verifyBackupIntegrity } = await import("./backup-PTSVXDDW.js");
|
|
10455
10449
|
return verifyBackupIntegrity(this.backupContext());
|
|
10456
10450
|
}
|
|
10457
10451
|
/**
|
|
@@ -10669,7 +10663,7 @@ var Vault = class {
|
|
|
10669
10663
|
* is the live validator object, not a serialization of it).
|
|
10670
10664
|
*/
|
|
10671
10665
|
async exportJSON(opts = {}) {
|
|
10672
|
-
const { exportVaultJSON } = await import("./backup-
|
|
10666
|
+
const { exportVaultJSON } = await import("./backup-PTSVXDDW.js");
|
|
10673
10667
|
return exportVaultJSON(this.backupContext(), opts);
|
|
10674
10668
|
}
|
|
10675
10669
|
};
|
|
@@ -11365,7 +11359,7 @@ var NoydbSnapshots = class {
|
|
|
11365
11359
|
dirtyVaults = /* @__PURE__ */ new Set();
|
|
11366
11360
|
/**
|
|
11367
11361
|
* Take an on-demand checkpoint of the given vault.
|
|
11368
|
-
* Requires `
|
|
11362
|
+
* Requires `snapshotsStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
11369
11363
|
* @throws ValidationError when the vault is not open
|
|
11370
11364
|
*/
|
|
11371
11365
|
async snapshot(vault, opts) {
|
|
@@ -11527,129 +11521,6 @@ function memoryStore() {
|
|
|
11527
11521
|
};
|
|
11528
11522
|
}
|
|
11529
11523
|
|
|
11530
|
-
// src/with-party/auth-introspection/index.ts
|
|
11531
|
-
async function describeAuthConfig(store, vault) {
|
|
11532
|
-
const policy = await loadVaultPolicy(store, vault) ?? defaultPolicySnapshot();
|
|
11533
|
-
const recoveryProfiles = await listRecoveryProfilesEnrolled(store, vault);
|
|
11534
|
-
const lines = [];
|
|
11535
|
-
lines.push(`Vault "${vault}" \u2014 three-tier authentication`);
|
|
11536
|
-
lines.push("");
|
|
11537
|
-
lines.push("Tier 1 \u2014 Secret (master)");
|
|
11538
|
-
lines.push(` Phrase format: ${policy.secret?.minWords ?? 6}+ words, lowercase letters, \u2265${policy.secret?.minWordLength ?? 3} chars/word`);
|
|
11539
|
-
lines.push(" Strength validator: enforced (override available for tests only)");
|
|
11540
|
-
lines.push("");
|
|
11541
|
-
lines.push("Tier 2 \u2014 Authenticate (routine login)");
|
|
11542
|
-
lines.push(" Allowed methods: WebAuthn (passkey), OIDC, Password");
|
|
11543
|
-
lines.push(" Slots per user: unlimited");
|
|
11544
|
-
lines.push("");
|
|
11545
|
-
lines.push("Tier 3 \u2014 Unlock (quick resume)");
|
|
11546
|
-
lines.push(" Method: PIN (per-app configurable)");
|
|
11547
|
-
lines.push("");
|
|
11548
|
-
lines.push(`Recovery profiles enrolled: ${recoveryProfiles.length === 0 ? "none" : recoveryProfiles.join(", ")}`);
|
|
11549
|
-
lines.push("Managed-secret mode: off (post-1.0)");
|
|
11550
|
-
lines.push("");
|
|
11551
|
-
lines.push("Sensitive-action gates:");
|
|
11552
|
-
for (const [gate, gp] of Object.entries(policy.gates)) {
|
|
11553
|
-
lines.push(` ${gate} \u2014 ${describeGatePolicy(gp)}`);
|
|
11554
|
-
}
|
|
11555
|
-
return lines.join("\n");
|
|
11556
|
-
}
|
|
11557
|
-
async function diagramAuthConfig(store, vault) {
|
|
11558
|
-
const policy = await loadVaultPolicy(store, vault) ?? defaultPolicySnapshot();
|
|
11559
|
-
const lines = [];
|
|
11560
|
-
lines.push("flowchart TB");
|
|
11561
|
-
lines.push(` vault["Vault: ${escapeMermaid(vault)}"]`);
|
|
11562
|
-
lines.push(' tier1["Tier 1<br/>Secret"]');
|
|
11563
|
-
lines.push(' tier2["Tier 2<br/>Multi-slot Authenticate"]');
|
|
11564
|
-
lines.push(' tier3["Tier 3<br/>PIN / Quick-resume"]');
|
|
11565
|
-
lines.push(" vault --> tier1");
|
|
11566
|
-
lines.push(" tier1 --> tier2");
|
|
11567
|
-
lines.push(" tier2 --> tier3");
|
|
11568
|
-
for (const [gateName, gp] of Object.entries(policy.gates)) {
|
|
11569
|
-
if (gp.enabled === false) continue;
|
|
11570
|
-
const id = sanitizeId(gateName);
|
|
11571
|
-
const label = `${gateName}<br/>tier \u2265 ${gp.minTier}`;
|
|
11572
|
-
lines.push(` ${id}["${escapeMermaid(label)}"]`);
|
|
11573
|
-
const tierNode = gp.minTier === 1 ? "tier1" : gp.minTier === 2 ? "tier2" : "tier3";
|
|
11574
|
-
lines.push(` ${tierNode} --> ${id}`);
|
|
11575
|
-
}
|
|
11576
|
-
return lines.join("\n");
|
|
11577
|
-
}
|
|
11578
|
-
async function describeUserAuth(store, vault, userId) {
|
|
11579
|
-
const env = await store.get(vault, "_keyring", userId);
|
|
11580
|
-
if (!env) return "";
|
|
11581
|
-
const file = JSON.parse(env._data);
|
|
11582
|
-
const lines = [];
|
|
11583
|
-
lines.push(
|
|
11584
|
-
`User: ${file.user_id} (joined ${file.created_at.slice(0, 10)}, role: ${file.role})`
|
|
11585
|
-
);
|
|
11586
|
-
lines.push("");
|
|
11587
|
-
lines.push("Tier 2 enrollments:");
|
|
11588
|
-
if (!file.authenticators || file.authenticators.length === 0) {
|
|
11589
|
-
lines.push(" (none enrolled)");
|
|
11590
|
-
} else {
|
|
11591
|
-
for (const slot of file.authenticators) {
|
|
11592
|
-
lines.push(` - ${describeSlot(slot)}`);
|
|
11593
|
-
}
|
|
11594
|
-
}
|
|
11595
|
-
return lines.join("\n");
|
|
11596
|
-
}
|
|
11597
|
-
async function describeAllUsersAuth(store, vault) {
|
|
11598
|
-
const ids = await store.list(vault, "_keyring");
|
|
11599
|
-
const results = [];
|
|
11600
|
-
for (const userId of ids) {
|
|
11601
|
-
const description = await describeUserAuth(store, vault, userId);
|
|
11602
|
-
if (description !== "") results.push({ userId, description });
|
|
11603
|
-
}
|
|
11604
|
-
return results;
|
|
11605
|
-
}
|
|
11606
|
-
var SLOT_FIELD_ALLOWLIST = [
|
|
11607
|
-
"id",
|
|
11608
|
-
"method",
|
|
11609
|
-
"enrolled_at",
|
|
11610
|
-
"enrolled_via_tier"
|
|
11611
|
-
];
|
|
11612
|
-
function describeSlot(slot) {
|
|
11613
|
-
const sanitized = {};
|
|
11614
|
-
for (const key of SLOT_FIELD_ALLOWLIST) {
|
|
11615
|
-
if (key in slot) {
|
|
11616
|
-
sanitized[key] = slot[key];
|
|
11617
|
-
}
|
|
11618
|
-
}
|
|
11619
|
-
const date = (sanitized.enrolled_at ?? "").slice(0, 10);
|
|
11620
|
-
return `${sanitized.method ?? "?"} (id=${sanitized.id ?? "?"}, enrolled ${date}, via tier ${sanitized.enrolled_via_tier ?? "?"})`;
|
|
11621
|
-
}
|
|
11622
|
-
function describeGatePolicy(gp) {
|
|
11623
|
-
if (gp.enabled === false) return "disabled";
|
|
11624
|
-
const parts = [];
|
|
11625
|
-
parts.push(`tier ${gp.minTier}`);
|
|
11626
|
-
if (gp.factors && gp.factors.length > 0) {
|
|
11627
|
-
for (const f of gp.factors) {
|
|
11628
|
-
parts.push(`+ ${f.count ?? 1}\xD7 ${f.anyOf.join("|")}`);
|
|
11629
|
-
}
|
|
11630
|
-
}
|
|
11631
|
-
if (gp.warn?.sharedDevice === "block") parts.push("block-on-shared-device");
|
|
11632
|
-
return parts.join(" ");
|
|
11633
|
-
}
|
|
11634
|
-
function defaultPolicySnapshot() {
|
|
11635
|
-
return {
|
|
11636
|
-
secret: { minWords: 6, minWordLength: 3, rejectRepeatedAdjacent: true },
|
|
11637
|
-
gates: {}
|
|
11638
|
-
};
|
|
11639
|
-
}
|
|
11640
|
-
async function listRecoveryProfilesEnrolled(store, vault) {
|
|
11641
|
-
const enrolled = [];
|
|
11642
|
-
const paper = await loadPaperRecoveryEntries(store, vault);
|
|
11643
|
-
if (paper.length > 0) enrolled.push(`paper (${paper.length} codes)`);
|
|
11644
|
-
return enrolled;
|
|
11645
|
-
}
|
|
11646
|
-
function escapeMermaid(s) {
|
|
11647
|
-
return s.replace(/"/g, '\\"').replace(/\n/g, " ");
|
|
11648
|
-
}
|
|
11649
|
-
function sanitizeId(s) {
|
|
11650
|
-
return s.replace(/[^a-zA-Z0-9]/g, "_");
|
|
11651
|
-
}
|
|
11652
|
-
|
|
11653
11524
|
// src/with-party/team/noydb-facade.ts
|
|
11654
11525
|
var TeamFacade = class {
|
|
11655
11526
|
constructor(deps) {
|
|
@@ -11691,7 +11562,7 @@ var TeamFacade = class {
|
|
|
11691
11562
|
async runRotate(engine, vault, collections) {
|
|
11692
11563
|
this.deps.checkPolicyOperation(vault, "rotate");
|
|
11693
11564
|
const keyring = await this.deps.getKeyringInternal(vault);
|
|
11694
|
-
const result = await engine(this.deps.options.store, vault, keyring, collections);
|
|
11565
|
+
const result = await engine(this.deps.options.store, vault, keyring, { collections });
|
|
11695
11566
|
this.deps.keyringCache.set(vault, keyring);
|
|
11696
11567
|
return result;
|
|
11697
11568
|
}
|
|
@@ -12558,7 +12429,7 @@ var Noydb = class {
|
|
|
12558
12429
|
this.policyCheckGate = options.policyCheckGateFn;
|
|
12559
12430
|
this.strategies = resolveStrategies(options);
|
|
12560
12431
|
this.snapshots = new NoydbSnapshots({
|
|
12561
|
-
strategy: this.strategies.
|
|
12432
|
+
strategy: this.strategies.snapshots,
|
|
12562
12433
|
user: options.user,
|
|
12563
12434
|
isClosed: () => this.closed,
|
|
12564
12435
|
getVault: (name) => this.vaultCache.get(name),
|
|
@@ -12606,7 +12477,7 @@ var Noydb = class {
|
|
|
12606
12477
|
get _forgetStrategy() {
|
|
12607
12478
|
return this.strategies.forget;
|
|
12608
12479
|
}
|
|
12609
|
-
// GDPR subject-index maintenance. When `
|
|
12480
|
+
// GDPR subject-index maintenance. When `withForget` declares
|
|
12610
12481
|
// any subject fields, keep the encrypted `_subject_index` in lock-step with
|
|
12611
12482
|
// writes so `vault.forget(subjectId)` can find every record for a subject.
|
|
12612
12483
|
//
|
|
@@ -12681,7 +12552,7 @@ var Noydb = class {
|
|
|
12681
12552
|
if (!facade) return;
|
|
12682
12553
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
|
|
12683
12554
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
12684
|
-
const { GuardExecutor } = await import("./executor-
|
|
12555
|
+
const { GuardExecutor } = await import("./executor-RM7XWQDU.js");
|
|
12685
12556
|
for (const g of guards) {
|
|
12686
12557
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
12687
12558
|
}
|
|
@@ -12872,12 +12743,10 @@ var Noydb = class {
|
|
|
12872
12743
|
// compartments leave it null and load() skips the refresh.
|
|
12873
12744
|
reloadKeyring: this.options.encrypt !== false && this.options.secret ? async () => {
|
|
12874
12745
|
this.keyringCache.delete(name);
|
|
12875
|
-
const refreshed = await loadKeyring(
|
|
12876
|
-
this.options.
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
this.options.secret
|
|
12880
|
-
);
|
|
12746
|
+
const refreshed = await loadKeyring(this.options.store, name, {
|
|
12747
|
+
userId: this.options.user,
|
|
12748
|
+
secret: this.options.secret
|
|
12749
|
+
});
|
|
12881
12750
|
this.keyringCache.set(name, refreshed);
|
|
12882
12751
|
return refreshed;
|
|
12883
12752
|
} : void 0
|
|
@@ -13157,12 +13026,10 @@ var Noydb = class {
|
|
|
13157
13026
|
for (const vault of universe) {
|
|
13158
13027
|
let keyring;
|
|
13159
13028
|
try {
|
|
13160
|
-
keyring = await loadKeyring(
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
this.options.secret
|
|
13165
|
-
);
|
|
13029
|
+
keyring = await loadKeyring(adapter, vault, {
|
|
13030
|
+
userId: this.options.user,
|
|
13031
|
+
secret: this.options.secret
|
|
13032
|
+
});
|
|
13166
13033
|
} catch (err) {
|
|
13167
13034
|
if (err instanceof NoAccessError || err instanceof InvalidKeyError || err instanceof KeyringCorruptError) {
|
|
13168
13035
|
continue;
|
|
@@ -13297,13 +13164,10 @@ var Noydb = class {
|
|
|
13297
13164
|
async changeSecret(vault, newSecret, options) {
|
|
13298
13165
|
this.checkPolicyOperation(vault, "changeSecret");
|
|
13299
13166
|
const keyring = await this._getKeyringInternal(vault);
|
|
13300
|
-
const updated = await changeSecret(
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
newSecret,
|
|
13305
|
-
options
|
|
13306
|
-
);
|
|
13167
|
+
const updated = await changeSecret(this.options.store, vault, keyring, {
|
|
13168
|
+
...options,
|
|
13169
|
+
newSecret
|
|
13170
|
+
});
|
|
13307
13171
|
this.keyringCache.set(vault, updated);
|
|
13308
13172
|
}
|
|
13309
13173
|
// ─── Sync ──────────────────────────────────────────────────────
|
|
@@ -13353,7 +13217,7 @@ var Noydb = class {
|
|
|
13353
13217
|
}
|
|
13354
13218
|
transaction(arg, maybeFn) {
|
|
13355
13219
|
if (typeof arg === "function") {
|
|
13356
|
-
return this.strategies.
|
|
13220
|
+
return this.strategies.transactions.runTransaction(this, arg);
|
|
13357
13221
|
}
|
|
13358
13222
|
if (typeof arg === "object" && arg !== null && arg.dryRun === true) {
|
|
13359
13223
|
if (typeof maybeFn !== "function") {
|
|
@@ -13361,7 +13225,7 @@ var Noydb = class {
|
|
|
13361
13225
|
"db.transaction({ dryRun: true }, fn) requires the callback as the second argument."
|
|
13362
13226
|
);
|
|
13363
13227
|
}
|
|
13364
|
-
return this.strategies.
|
|
13228
|
+
return this.strategies.transactions.runDryRun(this, maybeFn);
|
|
13365
13229
|
}
|
|
13366
13230
|
if (typeof arg === "object" && arg !== null && arg.amendment === true) {
|
|
13367
13231
|
if (typeof maybeFn !== "function") {
|
|
@@ -13369,7 +13233,7 @@ var Noydb = class {
|
|
|
13369
13233
|
"db.transaction({ amendment: true }, fn) requires the callback as the second argument."
|
|
13370
13234
|
);
|
|
13371
13235
|
}
|
|
13372
|
-
return this.strategies.
|
|
13236
|
+
return this.strategies.transactions.runTransaction(this, maybeFn, arg);
|
|
13373
13237
|
}
|
|
13374
13238
|
const vault = arg;
|
|
13375
13239
|
const comp = this.vaultCache.get(vault);
|
|
@@ -13871,7 +13735,7 @@ var Noydb = class {
|
|
|
13871
13735
|
"setCover: the cover feature is not enabled. Pass `cover: true` (or a schema object) to `createNoydb`."
|
|
13872
13736
|
);
|
|
13873
13737
|
}
|
|
13874
|
-
const { loadCover, saveCover, resolveSchema, validateCoverInput, mergeCustom, validateCoverSize } = await import("./cover
|
|
13738
|
+
const { loadCover, saveCover, resolveSchema, validateCoverInput, mergeCustom, validateCoverSize } = await import("./cover/index.js");
|
|
13875
13739
|
const schema = resolveSchema(coverOption);
|
|
13876
13740
|
validateCoverInput(input, schema);
|
|
13877
13741
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13903,7 +13767,7 @@ var Noydb = class {
|
|
|
13903
13767
|
* regardless).
|
|
13904
13768
|
*/
|
|
13905
13769
|
async getCover(vault, opts = {}) {
|
|
13906
|
-
const { readCover } = await import("./cover
|
|
13770
|
+
const { readCover } = await import("./cover/index.js");
|
|
13907
13771
|
return readCover(this.options.store, vault, opts);
|
|
13908
13772
|
}
|
|
13909
13773
|
// ─── Auth introspection ─────────────────────────────────────────
|
|
@@ -13943,33 +13807,25 @@ var Noydb = class {
|
|
|
13943
13807
|
}
|
|
13944
13808
|
let keyring;
|
|
13945
13809
|
try {
|
|
13946
|
-
keyring = await loadKeyring(this.options.store, vault, this.options.user, effectiveSecret);
|
|
13810
|
+
keyring = await loadKeyring(this.options.store, vault, { userId: this.options.user, secret: effectiveSecret });
|
|
13947
13811
|
} catch (err) {
|
|
13948
13812
|
if (err instanceof NoAccessError) {
|
|
13949
|
-
keyring = await createOwnerKeyring(
|
|
13950
|
-
this.options.
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
// 256 bits by construction.
|
|
13959
|
-
validate: this.options.secretMode === "managed" ? false : this.options.validateSecret === true
|
|
13960
|
-
}
|
|
13961
|
-
);
|
|
13813
|
+
keyring = await createOwnerKeyring(this.options.store, vault, {
|
|
13814
|
+
userId: this.options.user,
|
|
13815
|
+
secret: effectiveSecret,
|
|
13816
|
+
// Managed mode generates 256-bit base64 strings that don't satisfy
|
|
13817
|
+
// the human-secret strength rules (no spaces, no "words").
|
|
13818
|
+
// Skip validation in managed mode — the entropy floor is already
|
|
13819
|
+
// 256 bits by construction.
|
|
13820
|
+
validate: this.options.secretMode === "managed" ? false : this.options.validateSecret === true
|
|
13821
|
+
});
|
|
13962
13822
|
} else if (err instanceof InvalidKeyError && this.options.onInvalidKey === "reset") {
|
|
13963
13823
|
await this.options.store.delete(vault, "_keyring", this.options.user);
|
|
13964
|
-
keyring = await createOwnerKeyring(
|
|
13965
|
-
this.options.
|
|
13966
|
-
|
|
13967
|
-
this.options.
|
|
13968
|
-
|
|
13969
|
-
{
|
|
13970
|
-
validate: this.options.secretMode === "managed" ? false : this.options.validateSecret === true
|
|
13971
|
-
}
|
|
13972
|
-
);
|
|
13824
|
+
keyring = await createOwnerKeyring(this.options.store, vault, {
|
|
13825
|
+
userId: this.options.user,
|
|
13826
|
+
secret: effectiveSecret,
|
|
13827
|
+
validate: this.options.secretMode === "managed" ? false : this.options.validateSecret === true
|
|
13828
|
+
});
|
|
13973
13829
|
} else {
|
|
13974
13830
|
throw err;
|
|
13975
13831
|
}
|
|
@@ -13979,7 +13835,7 @@ var Noydb = class {
|
|
|
13979
13835
|
}
|
|
13980
13836
|
/**
|
|
13981
13837
|
* Take an on-demand checkpoint of the given vault.
|
|
13982
|
-
* Requires `
|
|
13838
|
+
* Requires `snapshotsStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
13983
13839
|
* @throws ValidationError when the vault is not open
|
|
13984
13840
|
*/
|
|
13985
13841
|
async snapshot(vault, opts) {
|
|
@@ -14030,9 +13886,9 @@ async function createNoydb(options) {
|
|
|
14030
13886
|
throw new ValidationError("A secret (secret) or getKeyring callback is required when encryption is enabled");
|
|
14031
13887
|
}
|
|
14032
13888
|
if (!options.coordinationStrategy) options = { ...options, coordinationStrategy: await createDefaultCoordinationProvider(options.store) };
|
|
14033
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
13889
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-3NKVNZPM.js")).createUserApi };
|
|
14034
13890
|
if (!options.policyFactory) {
|
|
14035
|
-
const policyModule = await import("./policy
|
|
13891
|
+
const policyModule = await import("./policy/index.js");
|
|
14036
13892
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
14037
13893
|
}
|
|
14038
13894
|
return new Noydb(options);
|
|
@@ -14062,11 +13918,7 @@ export {
|
|
|
14062
13918
|
RefRegistry,
|
|
14063
13919
|
Vault,
|
|
14064
13920
|
QuickUnlockStore,
|
|
14065
|
-
describeAuthConfig,
|
|
14066
|
-
diagramAuthConfig,
|
|
14067
|
-
describeUserAuth,
|
|
14068
|
-
describeAllUsersAuth,
|
|
14069
13921
|
Noydb,
|
|
14070
13922
|
createNoydb
|
|
14071
13923
|
};
|
|
14072
|
-
//# sourceMappingURL=chunk-
|
|
13924
|
+
//# sourceMappingURL=chunk-XOBHRD2M.js.map
|