@noy-db/hub 0.4.0-pre.5 → 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 +20 -20
- package/dist/{backup-YCHAC575.js → backup-PTSVXDDW.js} +13 -13
- package/dist/blobs/index.js +15 -12
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -12
- package/dist/cargo/index.js +36 -36
- package/dist/{chunk-5WLDZZ6S.js → chunk-35NMVJ7I.js} +3 -3
- package/dist/{chunk-TNATF3HB.js → chunk-3HUYRN24.js} +4 -4
- package/dist/chunk-3HUYRN24.js.map +1 -0
- package/dist/{chunk-TNJVDG2B.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-QMZ5A6FQ.js → chunk-56IIVAEO.js} +2 -2
- package/dist/chunk-5D2ALSM5.js +19 -0
- package/dist/chunk-5D2ALSM5.js.map +1 -0
- package/dist/{chunk-FHHYCBBP.js → chunk-5DRROK5W.js} +2 -2
- package/dist/{chunk-GTNRMJYH.js → chunk-5GQEU4DN.js} +2 -2
- package/dist/{chunk-YQQPNXNO.js → chunk-6L3DKWRY.js} +6 -6
- package/dist/chunk-6LJY7X5A.js +18 -0
- package/dist/chunk-6LJY7X5A.js.map +1 -0
- package/dist/{chunk-M6QA2KK2.js → chunk-6M2I3DKF.js} +2 -2
- package/dist/{chunk-FTCGEUOY.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-AFHQATY4.js +47 -0
- package/dist/chunk-AFHQATY4.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-QBOQI6PG.js → chunk-BN4HRYAZ.js} +2 -2
- package/dist/{chunk-QVGEVZ5F.js → chunk-BQ6DHN4I.js} +3 -3
- package/dist/{chunk-GP54LU5N.js → chunk-BYFXLDVV.js} +9 -9
- package/dist/{chunk-FIP7KI2P.js → chunk-C25JXSOR.js} +337 -21
- package/dist/chunk-C25JXSOR.js.map +1 -0
- package/dist/chunk-CADUYBQD.js +151 -0
- package/dist/chunk-CADUYBQD.js.map +1 -0
- package/dist/{chunk-HAPY7WFP.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-YXIVUWDU.js → chunk-DGBIHDVK.js} +5 -5
- package/dist/chunk-DSDXAKIP.js +50 -0
- package/dist/chunk-DSDXAKIP.js.map +1 -0
- package/dist/{chunk-QZJEYZ4I.js → chunk-DZAF24PG.js} +5 -5
- package/dist/chunk-DZFQVICS.js +23 -0
- 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-X3MWEFPT.js → chunk-EBKCYQ2D.js} +14 -14
- package/dist/chunk-EBKCYQ2D.js.map +1 -0
- package/dist/chunk-EP5L47XV.js +22 -0
- package/dist/chunk-EP5L47XV.js.map +1 -0
- package/dist/{chunk-TMR64XPL.js → chunk-EZNTORXE.js} +2 -2
- package/dist/{chunk-JAMDDLIM.js → chunk-FMNU7IUG.js} +3 -3
- package/dist/{chunk-YXZNGHID.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-YZN6NRTR.js → chunk-FRMW23UK.js} +13 -11
- package/dist/chunk-FRMW23UK.js.map +1 -0
- package/dist/chunk-GJW4HX2O.js +1 -0
- package/dist/{chunk-7BIJS6II.js → chunk-GP3UWP22.js} +4 -4
- package/dist/{chunk-YTW6ZIPD.js → chunk-GZACYEOB.js} +1 -1
- package/dist/chunk-GZACYEOB.js.map +1 -0
- package/dist/{chunk-JIHH26WQ.js → chunk-HFUAFR6B.js} +6 -6
- package/dist/{chunk-J5TEU77Q.js → chunk-IF6WNGAK.js} +59 -4
- 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-CKUYQO2P.js → chunk-IMRB2C4O.js} +7 -5
- package/dist/chunk-IMRB2C4O.js.map +1 -0
- package/dist/{chunk-RWW3I3PO.js → chunk-ISRKW4YN.js} +3 -3
- package/dist/{chunk-P4NUJVWL.js → chunk-IXNCZTWA.js} +2 -2
- package/dist/{chunk-YFFEF6HR.js → chunk-JIDLU57U.js} +3 -3
- package/dist/{chunk-PTT2NB46.js → chunk-JYJFGD2H.js} +2 -2
- package/dist/{chunk-3OWYOECI.js → chunk-JYV4JJV2.js} +5 -5
- package/dist/{chunk-OGVE4IJW.js → chunk-KBPU5M2E.js} +7 -7
- package/dist/{chunk-I2XEBEEF.js → chunk-KFRPNHWR.js} +4 -4
- package/dist/chunk-KFRPNHWR.js.map +1 -0
- package/dist/{chunk-3LJYHE7S.js → chunk-KPXM4WO6.js} +64 -57
- package/dist/chunk-KPXM4WO6.js.map +1 -0
- package/dist/{chunk-QMMOMBH6.js → chunk-KRCBZYTZ.js} +26 -177
- package/dist/chunk-KRCBZYTZ.js.map +1 -0
- package/dist/{chunk-UTEATWHO.js → chunk-KW42W6SV.js} +6 -6
- package/dist/{chunk-BY5YBSXA.js → chunk-L3YYLT4E.js} +15 -2
- package/dist/chunk-L3YYLT4E.js.map +1 -0
- package/dist/{chunk-UVBHM7AK.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-DYZ5CCVM.js → chunk-MXUT7FTE.js} +2 -2
- package/dist/chunk-MXUT7FTE.js.map +1 -0
- package/dist/{chunk-7ICV4ASA.js → chunk-N5PLUFH2.js} +27 -5
- package/dist/chunk-N5PLUFH2.js.map +1 -0
- package/dist/{chunk-K7BADAOS.js → chunk-NEX7JCMO.js} +4 -4
- package/dist/{chunk-5HSSTOOG.js → chunk-NFZGZ4AK.js} +2 -2
- package/dist/{chunk-XUFAFHQM.js → chunk-NJ4DYYO5.js} +7 -4
- package/dist/chunk-NJ4DYYO5.js.map +1 -0
- package/dist/{chunk-VEGQYPCP.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-S4YERMGJ.js → chunk-OBPVWOSQ.js} +4 -4
- package/dist/{chunk-OHV6T5JB.js → chunk-OLIWCCFM.js} +2 -5
- package/dist/{chunk-2CRZOVDI.js → chunk-OLSARBZU.js} +2 -2
- package/dist/chunk-PEOZ34EM.js +13 -0
- package/dist/chunk-PEOZ34EM.js.map +1 -0
- package/dist/{chunk-KJTIAECI.js → chunk-PT4XLP6I.js} +171 -12
- package/dist/chunk-PT4XLP6I.js.map +1 -0
- 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-PVEWA2DU.js +23 -0
- package/dist/chunk-PVEWA2DU.js.map +1 -0
- 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-GEEJPID6.js → chunk-RZPOZPZU.js} +8 -8
- package/dist/chunk-SGDPRCC4.js +1075 -0
- package/dist/chunk-SGDPRCC4.js.map +1 -0
- package/dist/{chunk-YCAJDK4O.js → chunk-SGQ4N5FS.js} +5 -5
- package/dist/{chunk-522MBPE5.js → chunk-SHEEBRZ4.js} +2 -2
- package/dist/{chunk-YWZEDG7F.js → chunk-SHYIA73K.js} +6 -6
- package/dist/{chunk-L2CAWCQL.js → chunk-SKM35Y4Q.js} +17 -26
- package/dist/chunk-SKM35Y4Q.js.map +1 -0
- package/dist/chunk-SMY5X46Z.js +14 -0
- package/dist/chunk-SMY5X46Z.js.map +1 -0
- package/dist/{chunk-K4BWPNJO.js → chunk-TE6LH6J2.js} +5 -5
- package/dist/{chunk-AFAPBZAA.js → chunk-TG634KCO.js} +11 -2
- package/dist/chunk-TG634KCO.js.map +1 -0
- package/dist/{chunk-V5JUAW4M.js → chunk-TIVK6PRK.js} +9 -10
- package/dist/chunk-TIVK6PRK.js.map +1 -0
- package/dist/{chunk-JN3SGXJE.js → chunk-UADPR6F4.js} +3 -3
- package/dist/{chunk-JN3SGXJE.js.map → chunk-UADPR6F4.js.map} +1 -1
- 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-SC4JLMZI.js → chunk-VH6SOCXH.js} +2 -2
- package/dist/chunk-VKQCVU2Z.js +21 -0
- package/dist/chunk-VKQCVU2Z.js.map +1 -0
- package/dist/chunk-VSRSQ2CR.js +654 -0
- package/dist/chunk-VSRSQ2CR.js.map +1 -0
- package/dist/{chunk-WQN5SM7P.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-HQKRZIX6.js → chunk-WBKZUO5V.js} +26 -43
- package/dist/chunk-WBKZUO5V.js.map +1 -0
- package/dist/{chunk-OMSKGLYA.js → chunk-WO4T4OD5.js} +2 -2
- package/dist/{chunk-6RPWILRH.js → chunk-WZ3NCMK6.js} +6 -5
- package/dist/{chunk-BAAUFCJK.js → chunk-X4MVWPHV.js} +3 -3
- package/dist/{chunk-R2N37AA6.js → chunk-XIDQKFZF.js} +3 -3
- package/dist/{chunk-EEZCB74X.js → chunk-XOBHRD2M.js} +575 -651
- package/dist/chunk-XOBHRD2M.js.map +1 -0
- package/dist/chunk-XZHEOSQ2.js +16 -0
- package/dist/chunk-XZHEOSQ2.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-5ATANZSW.js → chunk-Y6VZQGGH.js} +6 -6
- package/dist/chunk-YMUFFJCO.js +23 -0
- package/dist/chunk-YMUFFJCO.js.map +1 -0
- package/dist/{chunk-YZNKFYDC.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-E3OVLBFR.js → chunk-ZWBKDKXC.js} +4 -13
- package/dist/{walk-E3OVLBFR.js.map → chunk-ZWBKDKXC.js.map} +1 -1
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-52P3D72W.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 +13 -9
- package/dist/consent/index.js.map +1 -1
- package/dist/{cover-5BSNJREH.js → cover/index.js} +7 -6
- package/dist/crdt/index.js +4 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/custody/index.js +26 -0
- package/dist/{dead-filter-JXVCKS6W.js → dead-filter-6DYY7S64.js} +2 -2
- package/dist/{chunk-ILM6X6CP.js → delegation-ONOZVPIP.js} +12 -6
- package/dist/{chunk-ILM6X6CP.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-PKQQFDBT.js → dispatch-7T45NN7C.js} +19 -18
- package/dist/{dispatch-PKQQFDBT.js.map → dispatch-7T45NN7C.js.map} +1 -1
- package/dist/{dispatch-SMXUO7W5.js → dispatch-RPTLK7LJ.js} +5 -5
- package/dist/{enclave-I5H3GINP.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-WWXVHHUH.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 +16 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +16 -14
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +18 -24
- package/dist/index.js +212 -2045
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +4 -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/lazy.d.ts +30 -0
- package/dist/kernel/noydb.d.ts +22 -11
- package/dist/kernel/query/builder.d.ts +10 -10
- package/dist/kernel/query/index.d.ts +0 -6
- package/dist/kernel/query/scan-builder.d.ts +4 -4
- package/dist/kernel/types.d.ts +25 -25
- package/dist/kernel/vault.d.ts +10 -10
- package/dist/{ledger-M2BKCNVS.js → ledger-XY6NP3J2.js} +11 -11
- package/dist/liberate-LXOJ2EMB.js +24 -0
- package/dist/{link-set-ZU4E5J5S.js → link-set-POQB7BU5.js} +11 -11
- package/dist/materialized-views/index.js +22 -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 +15 -13
- package/dist/pod/index.js +11 -12
- package/dist/{policy-IY2YEA3A.js → policy/index.js} +6 -6
- package/dist/port/with/blob-strategy.d.ts +15 -5
- package/dist/port/with/collection-registries.d.ts +62 -0
- package/dist/port/with/strategies.d.ts +11 -11
- package/dist/port/with/team-strategy.d.ts +2 -1
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-XIAHB6KF.js → post-register-URQANI3B.js} +6 -6
- package/dist/query/index.js +6 -46
- package/dist/{aggregate → reduce}/index.js +24 -17
- package/dist/reduce/index.js.map +1 -0
- 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-VWXRV2XU.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/sealed-record/index.js +12 -12
- package/dist/search/index.js +36 -0
- package/dist/{seed-CDBFOTIK.js → seed-F7YYQTRC.js} +11 -11
- package/dist/sequence/index.js +30 -0
- package/dist/session/index.js +13 -9
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +6 -2
- package/dist/shadow/index.js.map +1 -1
- package/dist/signer-WMZKCNKC.js +25 -0
- package/dist/snapshots/index.js +14 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-NBROTA66.js → stale-JOE7GBAE.js} +11 -10
- package/dist/storage-B3WBKXKT.js +23 -0
- package/dist/store/index.js +22 -0
- package/dist/{store-coordination-provider-P3IU5JHD.js → store-coordination-provider-5LX2UFU2.js} +3 -3
- package/dist/sync/index.js +14 -10
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +36 -29
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/{tx → transactions}/index.js +7 -3
- package/dist/transactions/index.js.map +1 -0
- 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 +4 -2
- package/dist/via/i18n/core.d.ts +1 -1
- package/dist/via/i18n/index.d.ts +2 -0
- package/dist/via/money/money-reducer.d.ts +2 -2
- package/dist/walk-6OHAWGBS.js +21 -0
- package/dist/with-audit/consent/index.d.ts +2 -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-audit/periods/index.d.ts +2 -0
- package/dist/with-cargo/floor.d.ts +3 -3
- package/dist/with-commit/crdt/index.d.ts +2 -0
- package/dist/with-commit/history/index.d.ts +2 -0
- 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/shadow/index.d.ts +2 -0
- package/dist/with-fork/snapshots/active.d.ts +2 -2
- package/dist/with-fork/snapshots/index.d.ts +3 -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 +11 -11
- 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 +3 -1
- package/dist/with-lookup/indexing/strategy.d.ts +3 -3
- package/dist/with-lookup/{aggregate → reduce}/active.d.ts +8 -8
- package/dist/with-lookup/{aggregate → reduce}/groupby.d.ts +21 -21
- package/dist/with-lookup/reduce/index.d.ts +34 -0
- package/dist/with-lookup/{aggregate → reduce}/reducers.d.ts +10 -10
- package/dist/with-lookup/{aggregate/aggregation.d.ts → reduce/reduction.d.ts} +21 -21
- package/dist/with-lookup/{aggregate → reduce}/strategy.d.ts +15 -15
- 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/session/index.d.ts +2 -0
- package/dist/with-party/sync/index.d.ts +2 -0
- package/dist/with-party/team/index.d.ts +2 -0
- package/dist/with-party/team/keyring.d.ts +68 -20
- package/dist/with-party/team/noydb-facade.d.ts +2 -1
- 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 +42 -30
- package/dist/aggregate/index.js.map +0 -1
- package/dist/api-22ES33N3.js +0 -20
- package/dist/as/index.js +0 -30
- package/dist/at/index.js +0 -1
- package/dist/by/index.js +0 -11
- package/dist/chunk-2PDBYF2O.js.map +0 -1
- package/dist/chunk-2YELV6TV.js +0 -1
- package/dist/chunk-3LJYHE7S.js.map +0 -1
- package/dist/chunk-6SYOHUHM.js.map +0 -1
- package/dist/chunk-7ICV4ASA.js.map +0 -1
- package/dist/chunk-AFAPBZAA.js.map +0 -1
- package/dist/chunk-BY5YBSXA.js.map +0 -1
- package/dist/chunk-CJVEAVYH.js +0 -205
- package/dist/chunk-CJVEAVYH.js.map +0 -1
- package/dist/chunk-CKUYQO2P.js.map +0 -1
- package/dist/chunk-D4LAJ737.js.map +0 -1
- package/dist/chunk-DYZ5CCVM.js.map +0 -1
- package/dist/chunk-EEZCB74X.js.map +0 -1
- package/dist/chunk-EGU4PWQW.js.map +0 -1
- package/dist/chunk-FIP7KI2P.js.map +0 -1
- package/dist/chunk-GHEMAVTN.js.map +0 -1
- package/dist/chunk-HAPY7WFP.js.map +0 -1
- package/dist/chunk-HQKRZIX6.js.map +0 -1
- package/dist/chunk-I2XEBEEF.js.map +0 -1
- package/dist/chunk-IGLU4ME7.js +0 -255
- package/dist/chunk-IGLU4ME7.js.map +0 -1
- package/dist/chunk-J5TEU77Q.js.map +0 -1
- package/dist/chunk-KJTIAECI.js.map +0 -1
- package/dist/chunk-L2CAWCQL.js.map +0 -1
- package/dist/chunk-LB7FD65R.js +0 -163
- package/dist/chunk-LB7FD65R.js.map +0 -1
- package/dist/chunk-PWWWMRT7.js.map +0 -1
- package/dist/chunk-QMMOMBH6.js.map +0 -1
- package/dist/chunk-SEU6QHH4.js.map +0 -1
- package/dist/chunk-TNATF3HB.js.map +0 -1
- package/dist/chunk-TSNRZSRC.js.map +0 -1
- package/dist/chunk-V5JUAW4M.js.map +0 -1
- package/dist/chunk-VEGQYPCP.js.map +0 -1
- package/dist/chunk-X3MWEFPT.js.map +0 -1
- package/dist/chunk-XUFAFHQM.js.map +0 -1
- package/dist/chunk-YJ3TREAC.js.map +0 -1
- package/dist/chunk-YMUGBZN2.js.map +0 -1
- package/dist/chunk-YTW6ZIPD.js.map +0 -1
- package/dist/chunk-YXZNGHID.js.map +0 -1
- package/dist/chunk-YZN6NRTR.js.map +0 -1
- package/dist/chunk-ZX5FNWH7.js.map +0 -1
- package/dist/collection-facade-XKCFHSLR.js +0 -44
- package/dist/delegation-WWZPEDK2.js +0 -25
- package/dist/derive-CWWFEQ4N.js +0 -21
- package/dist/executor-FCJEH3FU.js +0 -9
- package/dist/executor-OHET7TF7.js +0 -9
- package/dist/executor-SHYLIBOM.js +0 -26
- package/dist/export-accessible-FBL6TDSK.js +0 -23
- package/dist/extract-partition-ZYIRYMTI.js +0 -38
- package/dist/find-LEBUXVL7.js +0 -11
- package/dist/in/index.js +0 -1
- package/dist/issue-F76PAGIR.js +0 -19
- package/dist/liberate-ZP7UB57K.js +0 -24
- package/dist/noydb-BNDGEK5X.js +0 -71
- package/dist/on/index.js +0 -17
- package/dist/port/as/index.d.ts +0 -26
- package/dist/port/at/index.d.ts +0 -18
- package/dist/port/in/index.d.ts +0 -21
- package/dist/port/on/index.d.ts +0 -27
- package/dist/port/ui/index.d.ts +0 -21
- package/dist/port/with/index.d.ts +0 -18
- package/dist/register-HB4TQZSV.js +0 -23
- package/dist/registry-6BMBFEXT.js +0 -19
- package/dist/registry-7CZWF3EQ.js +0 -9
- package/dist/registry-JOFO7RAH.js +0 -18
- package/dist/request-withdrawal-UN3TRHWI.js +0 -31
- package/dist/revoke-OLO2OVR7.js +0 -24
- package/dist/signer-MGGKPYAN.js +0 -25
- package/dist/storage-3R37QZLA.js +0 -23
- package/dist/tx/index.js.map +0 -1
- package/dist/ui/index.js +0 -1
- package/dist/with/index.js +0 -31
- package/dist/with-lookup/aggregate/index.d.ts +0 -23
- package/dist/withdraw-accessible-Q2EMATCU.js +0 -28
- /package/dist/{api-22ES33N3.js.map → api-3NKVNZPM.js.map} +0 -0
- /package/dist/{backup-YCHAC575.js.map → backup-PTSVXDDW.js.map} +0 -0
- /package/dist/{chunk-5WLDZZ6S.js.map → chunk-35NMVJ7I.js.map} +0 -0
- /package/dist/{chunk-TNJVDG2B.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-QMZ5A6FQ.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-YQQPNXNO.js.map → chunk-6L3DKWRY.js.map} +0 -0
- /package/dist/{chunk-M6QA2KK2.js.map → chunk-6M2I3DKF.js.map} +0 -0
- /package/dist/{chunk-FTCGEUOY.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-QBOQI6PG.js.map → chunk-BN4HRYAZ.js.map} +0 -0
- /package/dist/{chunk-QVGEVZ5F.js.map → chunk-BQ6DHN4I.js.map} +0 -0
- /package/dist/{chunk-GP54LU5N.js.map → chunk-BYFXLDVV.js.map} +0 -0
- /package/dist/{chunk-QRHEAZ2Q.js.map → chunk-CUZLNGD5.js.map} +0 -0
- /package/dist/{chunk-YXIVUWDU.js.map → chunk-DGBIHDVK.js.map} +0 -0
- /package/dist/{chunk-QZJEYZ4I.js.map → chunk-DZAF24PG.js.map} +0 -0
- /package/dist/{chunk-TMR64XPL.js.map → chunk-EZNTORXE.js.map} +0 -0
- /package/dist/{chunk-JAMDDLIM.js.map → chunk-FMNU7IUG.js.map} +0 -0
- /package/dist/{as/index.js.map → chunk-GJW4HX2O.js.map} +0 -0
- /package/dist/{chunk-7BIJS6II.js.map → chunk-GP3UWP22.js.map} +0 -0
- /package/dist/{chunk-JIHH26WQ.js.map → chunk-HFUAFR6B.js.map} +0 -0
- /package/dist/{chunk-RWW3I3PO.js.map → chunk-ISRKW4YN.js.map} +0 -0
- /package/dist/{chunk-P4NUJVWL.js.map → chunk-IXNCZTWA.js.map} +0 -0
- /package/dist/{chunk-YFFEF6HR.js.map → chunk-JIDLU57U.js.map} +0 -0
- /package/dist/{chunk-PTT2NB46.js.map → chunk-JYJFGD2H.js.map} +0 -0
- /package/dist/{chunk-3OWYOECI.js.map → chunk-JYV4JJV2.js.map} +0 -0
- /package/dist/{chunk-OGVE4IJW.js.map → chunk-KBPU5M2E.js.map} +0 -0
- /package/dist/{chunk-UTEATWHO.js.map → chunk-KW42W6SV.js.map} +0 -0
- /package/dist/{chunk-UVBHM7AK.js.map → chunk-MANUDU7I.js.map} +0 -0
- /package/dist/{chunk-K7BADAOS.js.map → chunk-NEX7JCMO.js.map} +0 -0
- /package/dist/{chunk-5HSSTOOG.js.map → chunk-NFZGZ4AK.js.map} +0 -0
- /package/dist/{chunk-S4YERMGJ.js.map → chunk-OBPVWOSQ.js.map} +0 -0
- /package/dist/{chunk-OHV6T5JB.js.map → chunk-OLIWCCFM.js.map} +0 -0
- /package/dist/{chunk-2CRZOVDI.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-GEEJPID6.js.map → chunk-RZPOZPZU.js.map} +0 -0
- /package/dist/{chunk-YCAJDK4O.js.map → chunk-SGQ4N5FS.js.map} +0 -0
- /package/dist/{chunk-522MBPE5.js.map → chunk-SHEEBRZ4.js.map} +0 -0
- /package/dist/{chunk-YWZEDG7F.js.map → chunk-SHYIA73K.js.map} +0 -0
- /package/dist/{chunk-K4BWPNJO.js.map → chunk-TE6LH6J2.js.map} +0 -0
- /package/dist/{chunk-SBOHNJUD.js.map → chunk-V6UQZA2H.js.map} +0 -0
- /package/dist/{chunk-SC4JLMZI.js.map → chunk-VH6SOCXH.js.map} +0 -0
- /package/dist/{chunk-WQN5SM7P.js.map → chunk-W3G5REIU.js.map} +0 -0
- /package/dist/{chunk-OMSKGLYA.js.map → chunk-WO4T4OD5.js.map} +0 -0
- /package/dist/{chunk-6RPWILRH.js.map → chunk-WZ3NCMK6.js.map} +0 -0
- /package/dist/{chunk-BAAUFCJK.js.map → chunk-X4MVWPHV.js.map} +0 -0
- /package/dist/{chunk-R2N37AA6.js.map → chunk-XIDQKFZF.js.map} +0 -0
- /package/dist/{chunk-OWOT7CFC.js.map → chunk-Y6B6HVKC.js.map} +0 -0
- /package/dist/{chunk-5ATANZSW.js.map → chunk-Y6VZQGGH.js.map} +0 -0
- /package/dist/{chunk-YZNKFYDC.js.map → chunk-ZFUFAHZ3.js.map} +0 -0
- /package/dist/{classified-marker-52P3D72W.js.map → classified-marker-EOOSMWFC.js.map} +0 -0
- /package/dist/{at/index.js.map → collection-facade-TTRF5NFJ.js.map} +0 -0
- /package/dist/{by/index.js.map → computed-AB45PS4V.js.map} +0 -0
- /package/dist/{in → cover}/index.js.map +0 -0
- /package/dist/{on → custody}/index.js.map +0 -0
- /package/dist/{dead-filter-JXVCKS6W.js.map → dead-filter-6DYY7S64.js.map} +0 -0
- /package/dist/{chunk-2YELV6TV.js.map → derive-IGGVSUPH.js.map} +0 -0
- /package/dist/{ui → directory}/index.js.map +0 -0
- /package/dist/{dispatch-SMXUO7W5.js.map → dispatch-RPTLK7LJ.js.map} +0 -0
- /package/dist/{collection-facade-XKCFHSLR.js.map → enclave-CLJVSDFG.js.map} +0 -0
- /package/dist/{computed-33DRJDOC.js.map → executor-IEBLTBCW.js.map} +0 -0
- /package/dist/{cover-5BSNJREH.js.map → executor-RM7XWQDU.js.map} +0 -0
- /package/dist/{delegation-WWZPEDK2.js.map → executor-XZYM4KHT.js.map} +0 -0
- /package/dist/{derive-CWWFEQ4N.js.map → export-accessible-24XCCD3A.js.map} +0 -0
- /package/dist/{enclave-I5H3GINP.js.map → extract-partition-H2TPEEOF.js.map} +0 -0
- /package/dist/{fanout-sidecar-WWXVHHUH.js.map → fanout-sidecar-TV7CXAJ6.js.map} +0 -0
- /package/dist/{executor-FCJEH3FU.js.map → find-OZMTRIK3.js.map} +0 -0
- /package/dist/{with → introspection}/index.js.map +0 -0
- /package/dist/{executor-OHET7TF7.js.map → issue-55HJE7JF.js.map} +0 -0
- /package/dist/{executor-SHYLIBOM.js.map → ledger-XY6NP3J2.js.map} +0 -0
- /package/dist/{export-accessible-FBL6TDSK.js.map → liberate-LXOJ2EMB.js.map} +0 -0
- /package/dist/{extract-partition-ZYIRYMTI.js.map → link-set-POQB7BU5.js.map} +0 -0
- /package/dist/{find-LEBUXVL7.js.map → money/index.js.map} +0 -0
- /package/dist/{issue-F76PAGIR.js.map → noydb-KXS35UJS.js.map} +0 -0
- /package/dist/{ledger-M2BKCNVS.js.map → policy/index.js.map} +0 -0
- /package/dist/{post-register-XIAHB6KF.js.map → post-register-URQANI3B.js.map} +0 -0
- /package/dist/{liberate-ZP7UB57K.js.map → register-5W6CG4RM.js.map} +0 -0
- /package/dist/{link-set-ZU4E5J5S.js.map → registry-7Y5WF7GS.js.map} +0 -0
- /package/dist/{noydb-BNDGEK5X.js.map → registry-BWD2ED52.js.map} +0 -0
- /package/dist/{policy-IY2YEA3A.js.map → registry-MCSGBZXI.js.map} +0 -0
- /package/dist/{register-HB4TQZSV.js.map → registry-UJFP3NWF.js.map} +0 -0
- /package/dist/{registry-6BMBFEXT.js.map → request-withdrawal-IWYDM4SO.js.map} +0 -0
- /package/dist/{reveal-VWXRV2XU.js.map → reveal-BXZGWIOP.js.map} +0 -0
- /package/dist/{registry-7CZWF3EQ.js.map → revoke-TINYPHYY.js.map} +0 -0
- /package/dist/{registry-JOFO7RAH.js.map → schema-update/index.js.map} +0 -0
- /package/dist/{registry-VW6P6A3J.js.map → search/index.js.map} +0 -0
- /package/dist/{seed-CDBFOTIK.js.map → seed-F7YYQTRC.js.map} +0 -0
- /package/dist/{request-withdrawal-UN3TRHWI.js.map → sequence/index.js.map} +0 -0
- /package/dist/{revoke-OLO2OVR7.js.map → signer-WMZKCNKC.js.map} +0 -0
- /package/dist/{signer-MGGKPYAN.js.map → stale-JOE7GBAE.js.map} +0 -0
- /package/dist/{stale-NBROTA66.js.map → storage-B3WBKXKT.js.map} +0 -0
- /package/dist/{storage-3R37QZLA.js.map → store/index.js.map} +0 -0
- /package/dist/{store-coordination-provider-P3IU5JHD.js.map → store-coordination-provider-5LX2UFU2.js.map} +0 -0
- /package/dist/{verify-5X37OXRY.js.map → verify-7XWHJWUN.js.map} +0 -0
- /package/dist/{withdraw-accessible-Q2EMATCU.js.map → walk-6OHAWGBS.js.map} +0 -0
- /package/dist/with-lookup/{aggregate → reduce}/canonical-key.d.ts +0 -0
package/dist/indexing/index.js
CHANGED
|
@@ -2,17 +2,18 @@ import {
|
|
|
2
2
|
COMPOSITE_DELIMITER,
|
|
3
3
|
IDX_PREFIX,
|
|
4
4
|
LazyQuery,
|
|
5
|
+
NO_INDEXING,
|
|
5
6
|
PersistedCollectionIndex,
|
|
6
7
|
compositeKey,
|
|
7
8
|
decodeIdxId,
|
|
8
9
|
encodeIdxId,
|
|
9
10
|
isIdxId
|
|
10
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-L3YYLT4E.js";
|
|
11
12
|
import {
|
|
12
13
|
CollectionIndexes
|
|
13
14
|
} from "../chunk-KPZS5QAQ.js";
|
|
14
15
|
import "../chunk-IGJCYUT5.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-QZWTRENR.js";
|
|
16
17
|
import "../chunk-PZ5AY32C.js";
|
|
17
18
|
|
|
18
19
|
// src/with-lookup/indexing/active.ts
|
|
@@ -68,6 +69,7 @@ export {
|
|
|
68
69
|
CollectionIndexes,
|
|
69
70
|
IDX_PREFIX,
|
|
70
71
|
LazyQuery,
|
|
72
|
+
NO_INDEXING,
|
|
71
73
|
PersistedCollectionIndex,
|
|
72
74
|
compositeKey,
|
|
73
75
|
decodeIdxId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-lookup/indexing/active.ts"],"sourcesContent":["/**\n * Active indexing strategy factory. Calling `withIndexing()` returns\n * an `
|
|
1
|
+
{"version":3,"sources":["../../src/with-lookup/indexing/active.ts"],"sourcesContent":["/**\n * Active indexing strategy factory. Calling `withIndexing()` returns\n * an `IndexingStrategy` whose `createState` constructs a real\n * `CollectionIndexes` (eager) or `PersistedCollectionIndex` (lazy)\n * per Collection, depending on the collection's `prefetch` mode and\n * its declared `IndexDef[]`.\n *\n * This module is only reachable through the `@noy-db/hub/indexing`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { CollectionIndexes } from './eager-indexes.js'\nimport type { IndexDef } from './eager-indexes.js'\nimport { PersistedCollectionIndex } from './persisted-indexes.js'\nimport type { IndexingStrategy, IndexState } from './strategy.js'\n\n/**\n * Build the default indexing strategy. Pass into\n * `createNoydb({ indexingStrategy: withIndexing() })` to light up the\n * eager-mode `==/in` fast-path on `.query()` and the full lazy-mode\n * `.lazyQuery()` + rebuild / reconcile / auto-reconcile surface.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withIndexing } from '@noy-db/hub/indexing'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * indexingStrategy: withIndexing(),\n * })\n * ```\n */\nexport function withIndexing(): IndexingStrategy {\n return {\n createState({ defs, lazy }) {\n if (lazy) {\n const persisted = new PersistedCollectionIndex()\n declareAll(persisted, defs)\n return makeLazyState(persisted)\n }\n const eager = new CollectionIndexes()\n for (const def of defs) {\n if (typeof def === 'string') {\n eager.declare(def)\n } else if (Array.isArray(def)) {\n for (const f of def as readonly string[]) eager.declare(f)\n } else {\n for (const f of (def as { fields: readonly string[] }).fields) eager.declare(f)\n }\n }\n return makeEagerState(eager)\n },\n }\n}\n\nfunction declareAll(persisted: PersistedCollectionIndex, defs: readonly IndexDef[]): void {\n for (const def of defs) {\n if (typeof def === 'string') {\n persisted.declare(def)\n } else {\n const fields = Array.isArray(def) ? (def as readonly string[]) : (def as { fields: readonly string[] }).fields\n // #698: decompose a composite into its component single-field indexes\n // (like the eager branch above), so a composite-only declaration still\n // provides the single-field driver the #696 Via-covered fall-through\n // and single-field queries need. The composite mirror is kept for the\n // multi-field fast path.\n for (const f of fields) persisted.declare(f)\n persisted.declareComposite(fields)\n }\n }\n}\n\nfunction makeEagerState(eager: CollectionIndexes): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => eager,\n getPersistedIndexes: () => null,\n }\n}\n\nfunction makeLazyState(persisted: PersistedCollectionIndex): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => null,\n getPersistedIndexes: () => persisted,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkCO,SAAS,eAAiC;AAC/C,SAAO;AAAA,IACL,YAAY,EAAE,MAAM,KAAK,GAAG;AAC1B,UAAI,MAAM;AACR,cAAM,YAAY,IAAI,yBAAyB;AAC/C,mBAAW,WAAW,IAAI;AAC1B,eAAO,cAAc,SAAS;AAAA,MAChC;AACA,YAAM,QAAQ,IAAI,kBAAkB;AACpC,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAM,QAAQ,GAAG;AAAA,QACnB,WAAW,MAAM,QAAQ,GAAG,GAAG;AAC7B,qBAAW,KAAK,IAA0B,OAAM,QAAQ,CAAC;AAAA,QAC3D,OAAO;AACL,qBAAW,KAAM,IAAsC,OAAQ,OAAM,QAAQ,CAAC;AAAA,QAChF;AAAA,MACF;AACA,aAAO,eAAe,KAAK;AAAA,IAC7B;AAAA,EACF;AACF;AAEA,SAAS,WAAW,WAAqC,MAAiC;AACxF,aAAW,OAAO,MAAM;AACtB,QAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAU,QAAQ,GAAG;AAAA,IACvB,OAAO;AACL,YAAM,SAAS,MAAM,QAAQ,GAAG,IAAK,MAA6B,IAAsC;AAMxG,iBAAW,KAAK,OAAQ,WAAU,QAAQ,CAAC;AAC3C,gBAAU,iBAAiB,MAAM;AAAA,IACnC;AAAA,EACF;AACF;AAEA,SAAS,eAAe,OAAsC;AAC5D,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;AAEA,SAAS,cAAc,WAAiD;AACtE,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dumpVaultSchema
|
|
3
|
+
} from "../chunk-ZWBKDKXC.js";
|
|
4
|
+
import {
|
|
5
|
+
applyListProjection
|
|
6
|
+
} from "../chunk-VG2ZSFYD.js";
|
|
7
|
+
import {
|
|
8
|
+
jsonSchemaToFields
|
|
9
|
+
} from "../chunk-VYYM3MEN.js";
|
|
10
|
+
import "../chunk-6ZNSB3H6.js";
|
|
11
|
+
import "../chunk-Y2NBBT6K.js";
|
|
12
|
+
import "../chunk-OBPVWOSQ.js";
|
|
13
|
+
import "../chunk-RZPOZPZU.js";
|
|
14
|
+
import "../chunk-VH6SOCXH.js";
|
|
15
|
+
import "../chunk-35NMVJ7I.js";
|
|
16
|
+
import "../chunk-NFZGZ4AK.js";
|
|
17
|
+
import "../chunk-QJNCB5SK.js";
|
|
18
|
+
import "../chunk-LP7BEXCT.js";
|
|
19
|
+
import "../chunk-AKKRXT23.js";
|
|
20
|
+
import "../chunk-GZACYEOB.js";
|
|
21
|
+
import "../chunk-QZWTRENR.js";
|
|
22
|
+
import "../chunk-PZ5AY32C.js";
|
|
23
|
+
export {
|
|
24
|
+
applyListProjection,
|
|
25
|
+
dumpVaultSchema,
|
|
26
|
+
jsonSchemaToFields
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
issueAttestationCore
|
|
3
|
+
} from "./chunk-DGBIHDVK.js";
|
|
4
|
+
import "./chunk-DZAF24PG.js";
|
|
5
|
+
import "./chunk-ZJADGNYF.js";
|
|
6
|
+
import "./chunk-RZPOZPZU.js";
|
|
7
|
+
import "./chunk-VH6SOCXH.js";
|
|
8
|
+
import "./chunk-35NMVJ7I.js";
|
|
9
|
+
import "./chunk-NFZGZ4AK.js";
|
|
10
|
+
import "./chunk-QJNCB5SK.js";
|
|
11
|
+
import "./chunk-LP7BEXCT.js";
|
|
12
|
+
import "./chunk-AKKRXT23.js";
|
|
13
|
+
import "./chunk-GZACYEOB.js";
|
|
14
|
+
import "./chunk-QZWTRENR.js";
|
|
15
|
+
import "./chunk-PZ5AY32C.js";
|
|
16
|
+
export {
|
|
17
|
+
issueAttestationCore
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=issue-55HJE7JF.js.map
|
|
@@ -228,7 +228,7 @@ export interface CollectionOpts<T> {
|
|
|
228
228
|
classifiedFields?: Record<string, ClassifiedEntry> | undefined;
|
|
229
229
|
/**
|
|
230
230
|
* The forget-cascade subject key for this collection (from
|
|
231
|
-
* `
|
|
231
|
+
* `withForget({ subjects })`), plumbed by the Vault. Consumed by the
|
|
232
232
|
* classified refusal matrix (R4: a digest-only field cannot be the subject key).
|
|
233
233
|
*/
|
|
234
234
|
subjectKeyField?: string | undefined;
|
|
@@ -103,7 +103,7 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
|
|
|
103
103
|
* `NO_*` stub — a tiny module that throws with an actionable message —
|
|
104
104
|
* so, for example, none of the BlobSet / chunk / MIME-magic machinery
|
|
105
105
|
* reaches the bundle unless the consumer imports `@noy-db/hub/blobs` and
|
|
106
|
-
* passes `
|
|
106
|
+
* passes `blobsStrategy: blobs()` to `createNoydb`.
|
|
107
107
|
*/
|
|
108
108
|
private readonly strategies;
|
|
109
109
|
private readonly objectStore;
|
|
@@ -141,7 +141,7 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
|
|
|
141
141
|
private readonly lru;
|
|
142
142
|
/**
|
|
143
143
|
* tree-shake seam — per-Collection indexing state. Owned by the
|
|
144
|
-
* `
|
|
144
|
+
* `IndexingStrategy` passed through from `createNoydb({ indexingStrategy })`.
|
|
145
145
|
* Defaults to a disabled state (both accessors return null) so the
|
|
146
146
|
* `CollectionIndexes` / `PersistedCollectionIndex` / `LazyQuery`
|
|
147
147
|
* classes never reach the bundle when indexing is unused.
|
package/dist/kernel/errors.d.ts
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* └─ Computed field errors
|
|
63
63
|
* └─ ComputedFieldError — computed function threw during a write
|
|
64
64
|
* └─ Erasure errors
|
|
65
|
-
* └─ ForgetStrategyNotConfiguredError — vault.forget() with no
|
|
65
|
+
* └─ ForgetStrategyNotConfiguredError — vault.forget() with no withForget
|
|
66
66
|
* ├─ Sealed-record errors (record-scoped CEK sealing)
|
|
67
67
|
* │ ├─ SealedRecordExpiredError — sealed CEK binding past expiresAt
|
|
68
68
|
* │ ├─ SealedRecordMismatchError — CEK sealed for record A used on record B
|
|
@@ -1718,7 +1718,7 @@ export declare class VaultTemplateNotFoundError extends NoydbError {
|
|
|
1718
1718
|
* record index to know which records belong to a data subject; without
|
|
1719
1719
|
* one there is nothing to erase and a silent no-op would be a dangerous
|
|
1720
1720
|
* false "erased" signal. Configure with
|
|
1721
|
-
* `forgetStrategy:
|
|
1721
|
+
* `forgetStrategy: withForget({ subjects: { invoices: 'buyerId' } })`.
|
|
1722
1722
|
*/
|
|
1723
1723
|
export declare class ForgetStrategyNotConfiguredError extends NoydbError {
|
|
1724
1724
|
constructor(message?: string);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memoized module loader for the S4 lazy-import seam (#846c).
|
|
3
|
+
*
|
|
4
|
+
* The spine and the services reach optional machinery through a dynamic
|
|
5
|
+
* `import()` — that is what keeps a service out of the floor bundle for
|
|
6
|
+
* consumers who never opt into it, and `check-architecture`'s `port-layering`
|
|
7
|
+
* rule requires it for any spine→service edge. The pattern stays; this only
|
|
8
|
+
* removes the ceremony that grew around it.
|
|
9
|
+
*
|
|
10
|
+
* Call sites had each re-invented the same shape: a `let mod = null` cache
|
|
11
|
+
* declared *inside* the function (so it cached for one invocation and no
|
|
12
|
+
* longer), plus in several places an `as { … }` cast, because destructuring a
|
|
13
|
+
* dynamic import inline gave up the module's type.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* const loadExecutor = lazy(() => import('./executor.js'))
|
|
17
|
+
* // …
|
|
18
|
+
* const { DerivationExecutor } = await loadExecutor()
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Note this is about clarity, not speed: the ES module system already caches a
|
|
22
|
+
* resolved module, so the win is one named binding per module instead of a
|
|
23
|
+
* hand-rolled cache and a cast at every call site.
|
|
24
|
+
*
|
|
25
|
+
* Concurrent first calls share a single in-flight promise rather than each
|
|
26
|
+
* starting their own `import()`.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function lazy<T>(load: () => Promise<T>): () => Promise<T>;
|
package/dist/kernel/noydb.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RotateResult } from '../with-party/team/keyring.js';
|
|
1
2
|
import type { NoydbOptions, NoydbEventMap, GrantOptions, RevokeOptions, UpdateUserOptions, UserInfo, PushResult, PullResult, PushOptions, PullOptions, SyncStatus, NoydbStore, AccessibleVault, ListAccessibleVaultsOptions, QueryAcrossOptions, QueryAcrossResult, TranslatorAuditEntry, WriteConflict, UserApiFactory, ActiveTier, FactorProofBundle, GateName, VaultPolicy } from './types.js';
|
|
2
3
|
import type { SecretPolicy } from './validation.js';
|
|
3
4
|
import { type CoordinationProvider } from '../port/by/default-provider.js';
|
|
@@ -264,23 +265,33 @@ export declare class Noydb {
|
|
|
264
265
|
/**
|
|
265
266
|
* Rotate the DEKs for the given collections in a vault.
|
|
266
267
|
*
|
|
267
|
-
* Generates fresh DEKs
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* key-rotation policy.
|
|
268
|
+
* Generates fresh DEKs and re-encrypts every record in each collection.
|
|
269
|
+
* The old DEKs become unreachable — useful as a defense-in-depth measure
|
|
270
|
+
* after a suspected key leak, or as the scheduled half of a key-rotation
|
|
271
|
+
* policy.
|
|
272
272
|
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
273
|
+
* ## Other members LOSE access to the rotated collections (#854)
|
|
274
|
+
*
|
|
275
|
+
* A member's DEKs are wrapped under that member's KEK, and a KEK derives
|
|
276
|
+
* only from that member's secret. The caller cannot derive anyone else's
|
|
277
|
+
* KEK, so re-wrapping a fresh DEK for them is impossible — that is the
|
|
278
|
+
* zero-knowledge property working as designed. Rotation therefore DROPS
|
|
279
|
+
* the rotated collections from every other member's keyring.
|
|
280
|
+
*
|
|
281
|
+
* The returned {@link RotateResult.needsRegrant} names each (member,
|
|
282
|
+
* collection) pair that was dropped. Re-run `grant()` for those pairs, or
|
|
283
|
+
* they stay locked out.
|
|
284
|
+
*
|
|
285
|
+
* Unlike `revoke({ rotateKeys: true })`, this call does not REMOVE any
|
|
286
|
+
* user from the vault — they keep membership and their other collections.
|
|
287
|
+
* This is the "just rotate" path; "revoke and rotate" lives in `revoke()`.
|
|
277
288
|
*
|
|
278
289
|
* Exposed on Noydb (rather than only on the lower-level keyring
|
|
279
290
|
* module) so CLI and admin tooling can trigger rotation without
|
|
280
291
|
* reaching into internals. See `noy-db rotate` for the CLI wrapper.
|
|
281
292
|
* Opt-in (#267): throws {@link TeamNotEnabledError} without `withTeam()`.
|
|
282
293
|
*/
|
|
283
|
-
rotate(vault: string, collections: string[]): Promise<
|
|
294
|
+
rotate(vault: string, collections: string[]): Promise<RotateResult>;
|
|
284
295
|
/** List all users with access to a vault. */
|
|
285
296
|
listUsers(vault: string): Promise<UserInfo[]>;
|
|
286
297
|
/**
|
|
@@ -757,7 +768,7 @@ export declare class Noydb {
|
|
|
757
768
|
private _getKeyringInternal;
|
|
758
769
|
/**
|
|
759
770
|
* Take an on-demand checkpoint of the given vault.
|
|
760
|
-
* Requires `
|
|
771
|
+
* Requires `snapshotsStrategy: withSnapshots({ store })` in `createNoydb`.
|
|
761
772
|
* @throws ValidationError when the vault is not open
|
|
762
773
|
*/
|
|
763
774
|
snapshot(vault: string, opts?: {
|
|
@@ -9,10 +9,10 @@ import type { Clause, Operator } from './predicate.js';
|
|
|
9
9
|
import type { CollectionIndexes } from '../../with-lookup/indexing/eager-indexes.js';
|
|
10
10
|
import type { JoinContext, JoinLeg, JoinStrategy } from './join.js';
|
|
11
11
|
import type { LiveQuery } from './live.js';
|
|
12
|
-
import type {
|
|
13
|
-
import type { ReducerBuilder } from '../../with-lookup/
|
|
14
|
-
import type { GroupedQuery, GroupedQueryN } from '../../with-lookup/
|
|
15
|
-
import { type
|
|
12
|
+
import type { ReduceSpec, ReduceResult, Reduction } from '../../with-lookup/reduce/reduction.js';
|
|
13
|
+
import type { ReducerBuilder } from '../../with-lookup/reduce/reducers.js';
|
|
14
|
+
import type { GroupedQuery, GroupedQueryN } from '../../with-lookup/reduce/groupby.js';
|
|
15
|
+
import { type ReduceStrategy } from '../../with-lookup/reduce/strategy.js';
|
|
16
16
|
import type { ViaPipeline } from '../via/pipeline.js';
|
|
17
17
|
export interface OrderBy {
|
|
18
18
|
readonly field: string;
|
|
@@ -114,9 +114,9 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
|
|
|
114
114
|
private readonly source;
|
|
115
115
|
private readonly plan;
|
|
116
116
|
private readonly joinContext;
|
|
117
|
-
private readonly
|
|
117
|
+
private readonly reduceStrategy;
|
|
118
118
|
private readonly predicates;
|
|
119
|
-
constructor(source: QuerySource<T>, plan?: QueryPlan, joinContext?: JoinContext,
|
|
119
|
+
constructor(source: QuerySource<T>, plan?: QueryPlan, joinContext?: JoinContext, reduceStrategy?: ReduceStrategy, predicates?: ReadonlyMap<string, DeclaredPredicate>);
|
|
120
120
|
/**
|
|
121
121
|
* @internal — accessor for the materialized-view dependency
|
|
122
122
|
* analyzer. Not part of the public API; consumers should use the
|
|
@@ -353,9 +353,9 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
|
|
|
353
353
|
* .run()
|
|
354
354
|
* ```
|
|
355
355
|
*
|
|
356
|
-
* Returns an `
|
|
356
|
+
* Returns an `Reduction<R>` wrapper with two terminals:
|
|
357
357
|
* - `.run(): R` — synchronous one-shot reduction
|
|
358
|
-
* - `.live():
|
|
358
|
+
* - `.live(): LiveReduction<R>` — reactive primitive that
|
|
359
359
|
* re-runs the reduction whenever the source notifies of a
|
|
360
360
|
* change. Always call `live.stop()` when finished.
|
|
361
361
|
*
|
|
@@ -391,8 +391,8 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
|
|
|
391
391
|
* aggregates over a collection with sensitive fields.
|
|
392
392
|
*
|
|
393
393
|
*/
|
|
394
|
-
aggregate<Spec extends
|
|
395
|
-
aggregate<Spec extends
|
|
394
|
+
aggregate<Spec extends ReduceSpec>(spec: Spec): Reduction<ReduceResult<Spec>>;
|
|
395
|
+
aggregate<Spec extends ReduceSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Reduction<ReduceResult<Spec>>;
|
|
396
396
|
/**
|
|
397
397
|
* Partition matching records into buckets keyed by a field, then
|
|
398
398
|
* terminate with `.aggregate(spec)` to compute per-bucket
|
|
@@ -20,12 +20,6 @@ export { applyJoins, DEFAULT_JOIN_MAX_ROWS, resetJoinWarnings } from './join.js'
|
|
|
20
20
|
export type { JoinLeg, JoinContext, JoinableSource, JoinStrategy } from './join.js';
|
|
21
21
|
export { buildLiveQuery } from './live.js';
|
|
22
22
|
export type { LiveQuery, LiveUpstream } from './live.js';
|
|
23
|
-
export { count, sum, avg, min, max, moneySum, moneyMin, moneyMax, reducerBuilder } from '../../with-lookup/aggregate/reducers.js';
|
|
24
|
-
export type { Reducer, ReducerOptions, ReducerBuilder } from '../../with-lookup/aggregate/reducers.js';
|
|
25
|
-
export { Aggregation, reduceRecords, buildLiveAggregation } from '../../with-lookup/aggregate/aggregation.js';
|
|
26
|
-
export type { AggregateSpec, AggregateResult, AggregationUpstream, LiveAggregation, } from '../../with-lookup/aggregate/aggregation.js';
|
|
27
|
-
export { GroupedQuery, GroupedQueryN, GroupedAggregation, groupAndReduce, resetGroupByWarnings, GROUPBY_WARN_CARDINALITY, GROUPBY_MAX_CARDINALITY, } from '../../with-lookup/aggregate/groupby.js';
|
|
28
|
-
export type { GroupedRow, GroupedRowN } from '../../with-lookup/aggregate/groupby.js';
|
|
29
23
|
export { ScanBuilder } from './scan-builder.js';
|
|
30
24
|
export type { ScanPageProvider } from './scan-builder.js';
|
|
31
25
|
export { GroupCardinalityError, IndexRequiredError, IndexWriteFailureError, JoinTooLargeError, DanglingReferenceError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, FieldNotQueryableError, } from '../errors.js';
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
* - `scan().join(...)` — tracked under (streaming join)
|
|
59
59
|
*/
|
|
60
60
|
import type { QueryField } from '../types.js';
|
|
61
|
-
import type { ReducerBuilder } from '../../with-lookup/
|
|
61
|
+
import type { ReducerBuilder } from '../../with-lookup/reduce/reducers.js';
|
|
62
62
|
import type { Clause, Operator } from './predicate.js';
|
|
63
|
-
import type {
|
|
63
|
+
import type { ReduceSpec, ReduceResult } from '../../with-lookup/reduce/reduction.js';
|
|
64
64
|
import type { JoinContext, JoinLeg } from './join.js';
|
|
65
65
|
import type { ViaPipeline } from '../via/pipeline.js';
|
|
66
66
|
/**
|
|
@@ -321,8 +321,8 @@ export declare class ScanBuilder<T, S extends keyof T = never, M extends keyof T
|
|
|
321
321
|
* method has never run and must not start running as a side effect of
|
|
322
322
|
* this gate).
|
|
323
323
|
*/
|
|
324
|
-
aggregate<Spec extends
|
|
325
|
-
aggregate<Spec extends
|
|
324
|
+
aggregate<Spec extends ReduceSpec>(spec: Spec): Promise<ReduceResult<Spec>>;
|
|
325
|
+
aggregate<Spec extends ReduceSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Promise<ReduceResult<Spec>>;
|
|
326
326
|
/**
|
|
327
327
|
* Evaluate the clause list against a single record. Linear in
|
|
328
328
|
* the clause count; short-circuits on first false. Clauses on a
|
package/dist/kernel/types.d.ts
CHANGED
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
import type { StandardSchemaV1 } from './schema.js';
|
|
26
26
|
import type { DeferredNumberingConfig } from '../with-commit/numbering/descriptor.js';
|
|
27
27
|
import type { SyncPolicy } from './sync-policy.js';
|
|
28
|
-
import type {
|
|
28
|
+
import type { BlobsStrategy } from '../port/with/blob-strategy.js';
|
|
29
29
|
import type { ArchiveStrategy } from '../with-fork/archive/index.js';
|
|
30
|
-
import type {
|
|
31
|
-
import type {
|
|
30
|
+
import type { IndexingStrategy } from '../with-lookup/indexing/strategy.js';
|
|
31
|
+
import type { ReduceStrategy } from '../with-lookup/reduce/strategy.js';
|
|
32
32
|
import type { ConsentStrategy } from '../with-audit/consent/strategy.js';
|
|
33
33
|
import type { PeriodsStrategy } from '../with-audit/periods/strategy.js';
|
|
34
34
|
import type { ShadowStrategy } from '../with-fork/shadow/strategy.js';
|
|
35
|
-
import type {
|
|
35
|
+
import type { TransactionsStrategy } from '../with-commit/tx/strategy.js';
|
|
36
36
|
import type { HistoryStrategy } from '../with-commit/history/strategy.js';
|
|
37
37
|
import type { ForgetStrategy } from '../with-audit/forget/strategy.js';
|
|
38
|
-
import type {
|
|
38
|
+
import type { SnapshotsStrategy } from '../with-fork/snapshots/strategy.js';
|
|
39
39
|
import type { DerivationSkippedFrozen } from './via/dispatch.js';
|
|
40
40
|
import type { AttestationStrategy } from '../with-audit/attestation/strategy.js';
|
|
41
41
|
import type { ClassifiedStrategy } from '../port/with/classified-strategy.js';
|
|
@@ -52,13 +52,13 @@ import type { CargoStrategy } from '../with-cargo/strategy.js';
|
|
|
52
52
|
import type { Layer, I18nStrategy } from '../port/with/i18n-strategy.js';
|
|
53
53
|
import type { SessionStrategy } from '../with-party/session/strategy.js';
|
|
54
54
|
import type { SyncStrategy } from '../with-party/team/sync-strategy.js';
|
|
55
|
-
import type {
|
|
56
|
-
import type {
|
|
55
|
+
import type { GuardStrategyAny } from '../with-audit/guards/types.js';
|
|
56
|
+
import type { DerivationStrategy } from '../with-formula/derivations/types.js';
|
|
57
57
|
import type { UnlockedKeyring } from '../with-party/team/keyring.js';
|
|
58
58
|
import type { SecretPolicy } from './validation.js';
|
|
59
59
|
import type { CoverSchema } from '../with-party/directory/cover/types.js';
|
|
60
|
-
import type {
|
|
61
|
-
import type {
|
|
60
|
+
import type { MaterializedViewStrategy } from '../with-formula/materialized-views/types.js';
|
|
61
|
+
import type { OverlayedViewStrategy } from '../with-formula/overlay-views/types.js';
|
|
62
62
|
import type { SealingKeyProvider, RecipientHint } from '../with-party/team/managed-secret.js';
|
|
63
63
|
import type { ShamirRecoveryProvider } from '../with-party/team/shamir-recovery-provider.js';
|
|
64
64
|
import type { ObjectProjection } from '../with-shape/blobs/object-projection.js';
|
|
@@ -2173,12 +2173,12 @@ export interface NoydbOptions {
|
|
|
2173
2173
|
* from `@noy-db/hub/blobs` to enable `collection.blob(id)` storage.
|
|
2174
2174
|
* When omitted, hub's blob machinery stays out of the bundle (ESM
|
|
2175
2175
|
* tree-shaking) and `collection.blob(id)` throws with a pointer at
|
|
2176
|
-
* the subpath. `
|
|
2176
|
+
* the subpath. `BlobsStrategy` is `@internal` — users only construct
|
|
2177
2177
|
* it via the subpath factory.
|
|
2178
2178
|
*
|
|
2179
2179
|
* @internal
|
|
2180
2180
|
*/
|
|
2181
|
-
readonly
|
|
2181
|
+
readonly blobsStrategy?: BlobsStrategy;
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Cold-storage archival target. `withArchive({ store })` designates a
|
|
2184
2184
|
* second store that holds archived record envelopes. Enables
|
|
@@ -2192,24 +2192,24 @@ export interface NoydbOptions {
|
|
|
2192
2192
|
* and auto-reconcile. When omitted, indexing code never reaches the
|
|
2193
2193
|
* bundle; `.lazyQuery()` throws with a pointer at the subpath, and
|
|
2194
2194
|
* eager-mode collections fall back to linear scans regardless of
|
|
2195
|
-
* `indexes: [...]` declarations. `
|
|
2195
|
+
* `indexes: [...]` declarations. `IndexingStrategy` is `@internal` —
|
|
2196
2196
|
* users only construct it via the subpath factory.
|
|
2197
2197
|
*
|
|
2198
2198
|
* @internal
|
|
2199
2199
|
*/
|
|
2200
|
-
readonly
|
|
2200
|
+
readonly indexingStrategy?: IndexingStrategy;
|
|
2201
2201
|
/**
|
|
2202
2202
|
* tree-shake seam — optional aggregate strategy. Pass
|
|
2203
|
-
* `
|
|
2203
|
+
* `withReduce()` from `@noy-db/hub/reduce` to enable
|
|
2204
2204
|
* `.aggregate()` and `.groupBy()` on Query. When omitted, those
|
|
2205
2205
|
* methods throw with a pointer at the subpath; the ~886 LOC of
|
|
2206
|
-
*
|
|
2206
|
+
* Reduction + GroupedQuery machinery never reaches the bundle.
|
|
2207
2207
|
* Streaming `scan().aggregate()` works independently of this
|
|
2208
|
-
* strategy — it doesn't use the `
|
|
2208
|
+
* strategy — it doesn't use the `Reduction` class.
|
|
2209
2209
|
*
|
|
2210
2210
|
* @internal
|
|
2211
2211
|
*/
|
|
2212
|
-
readonly
|
|
2212
|
+
readonly reduceStrategy?: ReduceStrategy;
|
|
2213
2213
|
/**
|
|
2214
2214
|
* tree-shake seam — optional CRDT strategy. Required when
|
|
2215
2215
|
* any collection is declared with `crdt: 'lww-map' | 'rga' | 'yjs'`;
|
|
@@ -2262,12 +2262,12 @@ export interface NoydbOptions {
|
|
|
2262
2262
|
readonly shadowStrategy?: ShadowStrategy;
|
|
2263
2263
|
/**
|
|
2264
2264
|
* tree-shake seam — optional multi-record transactions. Pass
|
|
2265
|
-
* `withTransactions()` from `@noy-db/hub/
|
|
2265
|
+
* `withTransactions()` from `@noy-db/hub/transactions` to enable
|
|
2266
2266
|
* `db.transaction(fn)`. Without it, calling the method throws.
|
|
2267
2267
|
*
|
|
2268
2268
|
* @internal
|
|
2269
2269
|
*/
|
|
2270
|
-
readonly
|
|
2270
|
+
readonly transactionsStrategy?: TransactionsStrategy;
|
|
2271
2271
|
/**
|
|
2272
2272
|
* tree-shake seam — optional history + ledger + time-machine.
|
|
2273
2273
|
* Pass `withHistory()` from `@noy-db/hub/history` to enable
|
|
@@ -2282,7 +2282,7 @@ export interface NoydbOptions {
|
|
|
2282
2282
|
*/
|
|
2283
2283
|
readonly historyStrategy?: HistoryStrategy;
|
|
2284
2284
|
/**
|
|
2285
|
-
* GDPR right-to-erasure. Pass `
|
|
2285
|
+
* GDPR right-to-erasure. Pass `withForget({ subjects })`
|
|
2286
2286
|
* from `@noy-db/hub/forget` to declare which collections carry erasable
|
|
2287
2287
|
* subject data and the record field naming the data subject. Enables
|
|
2288
2288
|
* `vault.forget(subjectId)` crypto-shred (rewrite-to-tombstone of the live
|
|
@@ -2337,7 +2337,7 @@ export interface NoydbOptions {
|
|
|
2337
2337
|
* `db.snapshot()`, `db.listSnapshots()`, and `db.restoreSnapshot()`.
|
|
2338
2338
|
* When omitted, all three methods throw with a pointer at the subpath.
|
|
2339
2339
|
*/
|
|
2340
|
-
readonly
|
|
2340
|
+
readonly snapshotsStrategy?: SnapshotsStrategy;
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Tree-shake seam — optional attestation capability. Pass
|
|
2343
2343
|
* `withAttestation()` from `@noy-db/hub/attestation` to enable
|
|
@@ -2449,7 +2449,7 @@ export interface NoydbOptions {
|
|
|
2449
2449
|
* Multiple guards per collection are allowed; they are dispatched
|
|
2450
2450
|
* in registration order on `collection.put()`.
|
|
2451
2451
|
*/
|
|
2452
|
-
readonly guardStrategies?: ReadonlyArray<
|
|
2452
|
+
readonly guardStrategies?: ReadonlyArray<GuardStrategyAny>;
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Deferred-numbering series declared via `withDeferredNumbering(...)`.
|
|
2455
2455
|
* `vault.sequence(series).next({ for })` then assigns gap-free serials at a
|
|
@@ -2463,7 +2463,7 @@ export interface NoydbOptions {
|
|
|
2463
2463
|
* validates the derivation graph for cycles on `openVault`; a cyclic
|
|
2464
2464
|
* graph throws `DerivationCycleError`.
|
|
2465
2465
|
*/
|
|
2466
|
-
readonly derivationStrategies?: ReadonlyArray<
|
|
2466
|
+
readonly derivationStrategies?: ReadonlyArray<DerivationStrategy>;
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Optional materialized-view strategies.
|
|
2469
2469
|
* Each handle returned by `withMaterializedView()` from
|
|
@@ -2471,7 +2471,7 @@ export interface NoydbOptions {
|
|
|
2471
2471
|
* detection across the MV + derivation graphs at `openVault`; a
|
|
2472
2472
|
* cyclic graph throws `MaterializedViewCycleError`.
|
|
2473
2473
|
*/
|
|
2474
|
-
readonly materializedViewStrategies?: ReadonlyArray<
|
|
2474
|
+
readonly materializedViewStrategies?: ReadonlyArray<MaterializedViewStrategy>;
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Optional overlay strategies. Each handle returned by
|
|
2477
2477
|
* `withOverlayedView()` from `@noy-db/hub/overlay-views`. The vault
|
|
@@ -2479,7 +2479,7 @@ export interface NoydbOptions {
|
|
|
2479
2479
|
* availability at `openVault`; a clash throws one of the
|
|
2480
2480
|
* `Overlay*Error` family.
|
|
2481
2481
|
*/
|
|
2482
|
-
readonly overlayedViewStrategies?: ReadonlyArray<
|
|
2482
|
+
readonly overlayedViewStrategies?: ReadonlyArray<OverlayedViewStrategy>;
|
|
2483
2483
|
/** Optional remote store(s) for sync. Accepts a single store, a SyncTarget, or an array. */
|
|
2484
2484
|
readonly sync?: NoydbStore | SyncTarget | SyncTarget[];
|
|
2485
2485
|
/** User identifier. */
|
package/dist/kernel/vault.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type { JoinableSource } from './query/index.js';
|
|
|
8
8
|
import type { OnDirtyCallback } from './collection.js';
|
|
9
9
|
import type { UnlockedKeyring, BundleRecipient } from '../with-party/team/keyring.js';
|
|
10
10
|
import type { MaterializedViewRegistry } from '../with-formula/materialized-views/registry.js';
|
|
11
|
-
import type {
|
|
11
|
+
import type { MaterializedViewStrategy } from '../with-formula/materialized-views/types.js';
|
|
12
12
|
import type { OverlayedViewRegistry } from '../with-formula/overlay-views/registry.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type { OverlayedViewStrategy } from '../with-formula/overlay-views/types.js';
|
|
14
14
|
import type { Cover } from '../with-party/directory/cover/types.js';
|
|
15
15
|
import type { ExportFormat, KeyringFile } from './types.js';
|
|
16
16
|
import { ElevatedHandle } from '../with-commit/tx/elevated-handle.js';
|
|
@@ -35,10 +35,10 @@ import { type LinkSpec, type LinkSetHandle } from '../with-shape/links/names.js'
|
|
|
35
35
|
import { ViaGraph } from './via/graph.js';
|
|
36
36
|
import { type RollupDeleteIntent } from './via/dispatch.js';
|
|
37
37
|
import type { GuardRegistry } from '../with-audit/guards/registry.js';
|
|
38
|
-
import type {
|
|
38
|
+
import type { GuardStrategyAny } from '../with-audit/guards/types.js';
|
|
39
39
|
import type { ReadOnlyVaultFacade } from '../with-audit/guards/read-only-facade.js';
|
|
40
40
|
import type { DerivationRegistry } from '../with-formula/derivations/registry.js';
|
|
41
|
-
import type {
|
|
41
|
+
import type { DerivationStrategy } from '../with-formula/derivations/types.js';
|
|
42
42
|
import type { JoinedHandle } from '../with-shape/satellites/types.js';
|
|
43
43
|
import { type PeriodRecord, type ClosePeriodOptions, type OpenPeriodOptions } from '../with-audit/periods/index.js';
|
|
44
44
|
import { type EnclaveKey } from './enclave/index.js';
|
|
@@ -280,7 +280,7 @@ export declare class Vault {
|
|
|
280
280
|
*/
|
|
281
281
|
strategies: StrategyBag;
|
|
282
282
|
objectStore?: ObjectProjection | undefined;
|
|
283
|
-
guardStrategies?: ReadonlyArray<
|
|
283
|
+
guardStrategies?: ReadonlyArray<GuardStrategyAny> | undefined;
|
|
284
284
|
numberingConfigs?: ReadonlyArray<DeferredNumberingConfig> | undefined;
|
|
285
285
|
/** Vault-level descriptive metadata — set once at construction (first-wins). */
|
|
286
286
|
meta?: VaultMeta | undefined;
|
|
@@ -838,7 +838,7 @@ export declare class Vault {
|
|
|
838
838
|
* stay decryptable; migrate, then re-forget) and `blobResidueCollections` (blob attachments, keyed
|
|
839
839
|
* off a separate `_blob` DEK, out of scope here).
|
|
840
840
|
*
|
|
841
|
-
* @throws ForgetStrategyNotConfiguredError when no `
|
|
841
|
+
* @throws ForgetStrategyNotConfiguredError when no `withForget` was set.
|
|
842
842
|
*/
|
|
843
843
|
forget(subjectId: string): Promise<ForgetResult>;
|
|
844
844
|
/**
|
|
@@ -918,7 +918,7 @@ export declare class Vault {
|
|
|
918
918
|
* accessor `_getReadOnlyFacade()` (called from the tx amendment
|
|
919
919
|
* runner) stays synchronous.
|
|
920
920
|
*/
|
|
921
|
-
_initGuards(handles: ReadonlyArray<
|
|
921
|
+
_initGuards(handles: ReadonlyArray<GuardStrategyAny>): Promise<void>;
|
|
922
922
|
/**
|
|
923
923
|
* @internal — The gate handler in Noydb.#registerGuardGate calls into
|
|
924
924
|
* this. Returns `null` for vaults that never registered any guard
|
|
@@ -934,7 +934,7 @@ export declare class Vault {
|
|
|
934
934
|
* bundle for consumers that don't use derivations. Throws
|
|
935
935
|
* `DerivationCycleError` if a cycle is detected after registration.
|
|
936
936
|
*/
|
|
937
|
-
_initDerivations(handles: ReadonlyArray<
|
|
937
|
+
_initDerivations(handles: ReadonlyArray<DerivationStrategy>): Promise<void>;
|
|
938
938
|
/**
|
|
939
939
|
* @internal — consumed by `Collection.put` at write-time. Returns
|
|
940
940
|
* `null` for vaults that never registered any derivation strategy.
|
|
@@ -949,7 +949,7 @@ export declare class Vault {
|
|
|
949
949
|
* the MV service out of the floor bundle (mirrors the derivation lazy-import pattern).
|
|
950
950
|
* Throws `MaterializedViewCycleError` if a cycle is detected.
|
|
951
951
|
*/
|
|
952
|
-
_initMaterializedViews(handles: ReadonlyArray<
|
|
952
|
+
_initMaterializedViews(handles: ReadonlyArray<MaterializedViewStrategy>): Promise<void>;
|
|
953
953
|
/**
|
|
954
954
|
* @internal — consumed by `Collection.put` at write-time. Returns
|
|
955
955
|
* `null` for vaults that never registered any MV strategy.
|
|
@@ -961,7 +961,7 @@ export declare class Vault {
|
|
|
961
961
|
* validates against the MV registry for name/base/overlay collisions.
|
|
962
962
|
* Throws on validation failure.
|
|
963
963
|
*/
|
|
964
|
-
_initOverlayedViews(handles: ReadonlyArray<
|
|
964
|
+
_initOverlayedViews(handles: ReadonlyArray<OverlayedViewStrategy>): Promise<void>;
|
|
965
965
|
/**
|
|
966
966
|
* @internal — consumed by `Vault.collection()`. Returns `null` for
|
|
967
967
|
* vaults with no overlays registered.
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
LedgerStore,
|
|
4
4
|
applyPatch,
|
|
5
5
|
computePatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y6VZQGGH.js";
|
|
7
7
|
import {
|
|
8
8
|
LEDGER_COLLECTION,
|
|
9
9
|
LEDGER_DELTAS_COLLECTION
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
paddedIndex,
|
|
16
16
|
parseIndex,
|
|
17
17
|
sha256Hex
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-ISRKW4YN.js";
|
|
19
|
+
import "./chunk-RZPOZPZU.js";
|
|
20
|
+
import "./chunk-VH6SOCXH.js";
|
|
21
|
+
import "./chunk-35NMVJ7I.js";
|
|
22
|
+
import "./chunk-NFZGZ4AK.js";
|
|
23
|
+
import "./chunk-QJNCB5SK.js";
|
|
24
24
|
import "./chunk-LP7BEXCT.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AKKRXT23.js";
|
|
26
|
+
import "./chunk-GZACYEOB.js";
|
|
27
|
+
import "./chunk-QZWTRENR.js";
|
|
28
28
|
import "./chunk-PZ5AY32C.js";
|
|
29
29
|
export {
|
|
30
30
|
LEDGER_COLLECTION,
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
parseIndex,
|
|
40
40
|
sha256Hex
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=ledger-
|
|
42
|
+
//# sourceMappingURL=ledger-XY6NP3J2.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
liberateVault
|
|
3
|
+
} from "./chunk-TIVK6PRK.js";
|
|
4
|
+
import "./chunk-OLIWCCFM.js";
|
|
5
|
+
import "./chunk-TE6LH6J2.js";
|
|
6
|
+
import "./chunk-WO4T4OD5.js";
|
|
7
|
+
import "./chunk-SGQ4N5FS.js";
|
|
8
|
+
import "./chunk-JIDLU57U.js";
|
|
9
|
+
import "./chunk-KPXM4WO6.js";
|
|
10
|
+
import "./chunk-WZ3NCMK6.js";
|
|
11
|
+
import "./chunk-RZPOZPZU.js";
|
|
12
|
+
import "./chunk-VH6SOCXH.js";
|
|
13
|
+
import "./chunk-35NMVJ7I.js";
|
|
14
|
+
import "./chunk-NFZGZ4AK.js";
|
|
15
|
+
import "./chunk-QJNCB5SK.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-AKKRXT23.js";
|
|
18
|
+
import "./chunk-GZACYEOB.js";
|
|
19
|
+
import "./chunk-QZWTRENR.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
liberateVault
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=liberate-LXOJ2EMB.js.map
|