@noy-db/hub 0.4.0-pre.5 → 0.4.0-pre.6
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-22ES33N3.js → api-5QVQX4HG.js} +6 -6
- package/dist/attestation/index.js +14 -14
- package/dist/{backup-YCHAC575.js → backup-USYSNCYM.js} +6 -6
- package/dist/blobs/index.js +8 -5
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +6 -6
- package/dist/cargo/index.js +26 -28
- package/dist/{chunk-RWW3I3PO.js → chunk-2BVW754E.js} +2 -2
- package/dist/{chunk-VEGQYPCP.js → chunk-2ZSC454H.js} +3 -3
- package/dist/{chunk-S4YERMGJ.js → chunk-32467U5J.js} +3 -3
- package/dist/{chunk-UVBHM7AK.js → chunk-3GXDB3NQ.js} +4 -4
- package/dist/{chunk-L2CAWCQL.js → chunk-3S2YNMUS.js} +53 -5
- package/dist/chunk-3S2YNMUS.js.map +1 -0
- package/dist/{chunk-HAPY7WFP.js → chunk-3TZUC4WS.js} +9 -9
- package/dist/{chunk-M6QA2KK2.js → chunk-44Y3P5U6.js} +2 -2
- package/dist/{chunk-WQN5SM7P.js → chunk-4B3DL75F.js} +2 -2
- package/dist/{chunk-XUFAFHQM.js → chunk-5ABOFAHN.js} +7 -4
- package/dist/chunk-5ABOFAHN.js.map +1 -0
- package/dist/chunk-5D2ALSM5.js +19 -0
- package/dist/chunk-5D2ALSM5.js.map +1 -0
- package/dist/{chunk-OHV6T5JB.js → chunk-6SSWOUUS.js} +2 -2
- package/dist/{chunk-6RPWILRH.js → chunk-7IQWHYL2.js} +3 -3
- package/dist/chunk-AFHQATY4.js +47 -0
- package/dist/chunk-AFHQATY4.js.map +1 -0
- package/dist/{chunk-I2XEBEEF.js → chunk-AZXEOEQK.js} +3 -3
- package/dist/{chunk-K7BADAOS.js → chunk-C2V7AJO2.js} +3 -3
- package/dist/chunk-CADUYBQD.js +151 -0
- package/dist/chunk-CADUYBQD.js.map +1 -0
- package/dist/{chunk-YTW6ZIPD.js → chunk-DOZFU7OZ.js} +1 -1
- package/dist/chunk-DOZFU7OZ.js.map +1 -0
- package/dist/{chunk-YCAJDK4O.js → chunk-E7FSBI6I.js} +3 -3
- package/dist/chunk-EP5L47XV.js +22 -0
- package/dist/chunk-EP5L47XV.js.map +1 -0
- package/dist/{chunk-YWZEDG7F.js → chunk-EPME33Y4.js} +4 -4
- package/dist/{chunk-EEZCB74X.js → chunk-EWPS35AR.js} +465 -393
- package/dist/chunk-EWPS35AR.js.map +1 -0
- package/dist/{chunk-BY5YBSXA.js → chunk-GQT6J4FJ.js} +14 -1
- package/dist/chunk-GQT6J4FJ.js.map +1 -0
- package/dist/{chunk-YXZNGHID.js → chunk-H5GMROCB.js} +2 -2
- package/dist/{chunk-QMMOMBH6.js → chunk-HA7P3BTB.js} +24 -175
- package/dist/chunk-HA7P3BTB.js.map +1 -0
- package/dist/{chunk-FTCGEUOY.js → chunk-HDF5R2K6.js} +4 -4
- package/dist/{chunk-R2N37AA6.js → chunk-HVPW6PCX.js} +2 -2
- package/dist/{chunk-YXIVUWDU.js → chunk-HXVRRJBD.js} +3 -3
- package/dist/{chunk-5ATANZSW.js → chunk-ICYC5YNI.js} +4 -4
- package/dist/{chunk-7ICV4ASA.js → chunk-IUATR5UE.js} +25 -3
- package/dist/chunk-IUATR5UE.js.map +1 -0
- package/dist/{chunk-QZJEYZ4I.js → chunk-JGOKAZNB.js} +3 -3
- package/dist/{chunk-JN3SGXJE.js → chunk-JOCMXSR2.js} +1 -1
- package/dist/{chunk-JN3SGXJE.js.map → chunk-JOCMXSR2.js.map} +1 -1
- package/dist/{chunk-7BIJS6II.js → chunk-JTIPVW4J.js} +3 -3
- package/dist/{chunk-SC4JLMZI.js → chunk-KCZAFDP5.js} +2 -2
- package/dist/{chunk-GP54LU5N.js → chunk-LG2GUYRX.js} +7 -7
- package/dist/{chunk-J5TEU77Q.js → chunk-LN3MQFUE.js} +54 -2
- package/dist/chunk-LN3MQFUE.js.map +1 -0
- package/dist/{chunk-FIP7KI2P.js → chunk-M4GO4ZJK.js} +205 -15
- package/dist/chunk-M4GO4ZJK.js.map +1 -0
- package/dist/{chunk-QMZ5A6FQ.js → chunk-M7W2KYTL.js} +2 -2
- package/dist/{chunk-K4BWPNJO.js → chunk-MLCTPWSO.js} +3 -3
- package/dist/{chunk-GEEJPID6.js → chunk-MMVQ3SUO.js} +3 -3
- package/dist/{chunk-HQKRZIX6.js → chunk-MPPWL64H.js} +24 -41
- package/dist/chunk-MPPWL64H.js.map +1 -0
- package/dist/{chunk-YZN6NRTR.js → chunk-MQBFT2OT.js} +11 -9
- package/dist/chunk-MQBFT2OT.js.map +1 -0
- package/dist/{chunk-TNJVDG2B.js → chunk-NA374QG7.js} +2 -2
- package/dist/chunk-NIKO2BBZ.js +23 -0
- package/dist/chunk-NIKO2BBZ.js.map +1 -0
- package/dist/chunk-PEOZ34EM.js +13 -0
- package/dist/chunk-PEOZ34EM.js.map +1 -0
- package/dist/chunk-PVEWA2DU.js +23 -0
- package/dist/chunk-PVEWA2DU.js.map +1 -0
- package/dist/{chunk-V5JUAW4M.js → chunk-QVIZDLAR.js} +5 -5
- package/dist/{chunk-DYZ5CCVM.js → chunk-RM5EXCFF.js} +1 -1
- package/dist/{chunk-DYZ5CCVM.js.map → chunk-RM5EXCFF.js.map} +1 -1
- package/dist/chunk-SMY5X46Z.js +14 -0
- package/dist/chunk-SMY5X46Z.js.map +1 -0
- package/dist/{chunk-2CRZOVDI.js → chunk-UNREYBZO.js} +2 -2
- package/dist/{chunk-KJTIAECI.js → chunk-V2R2VWER.js} +168 -9
- package/dist/chunk-V2R2VWER.js.map +1 -0
- package/dist/{chunk-CKUYQO2P.js → chunk-VDTWFN2P.js} +7 -5
- package/dist/chunk-VDTWFN2P.js.map +1 -0
- package/dist/chunk-VKQCVU2Z.js +21 -0
- package/dist/chunk-VKQCVU2Z.js.map +1 -0
- package/dist/{chunk-UTEATWHO.js → chunk-VNJMLOQS.js} +4 -4
- package/dist/{chunk-JAMDDLIM.js → chunk-WCJJQV2D.js} +2 -2
- package/dist/{chunk-OMSKGLYA.js → chunk-WWBC4KLB.js} +2 -2
- package/dist/{chunk-JIHH26WQ.js → chunk-XG7OZDOS.js} +3 -3
- package/dist/{chunk-QBOQI6PG.js → chunk-XONZGK6J.js} +2 -2
- package/dist/{chunk-YQQPNXNO.js → chunk-XSOGLHGY.js} +2 -2
- package/dist/{chunk-3OWYOECI.js → chunk-XY6MNSAF.js} +4 -4
- package/dist/chunk-XZHEOSQ2.js +16 -0
- package/dist/chunk-XZHEOSQ2.js.map +1 -0
- package/dist/{chunk-X3MWEFPT.js → chunk-YGMREQAK.js} +3 -3
- package/dist/chunk-YMUFFJCO.js +23 -0
- package/dist/chunk-YMUFFJCO.js.map +1 -0
- package/dist/{chunk-3LJYHE7S.js → chunk-ZDFU34XY.js} +9 -6
- package/dist/{chunk-3LJYHE7S.js.map → chunk-ZDFU34XY.js.map} +1 -1
- package/dist/{chunk-ILM6X6CP.js → chunk-ZF572E2M.js} +2 -2
- package/dist/{chunk-TNATF3HB.js → chunk-ZGEFBDPR.js} +2 -2
- package/dist/chunk-ZGEFBDPR.js.map +1 -0
- package/dist/{chunk-OGVE4IJW.js → chunk-ZHMUFYZF.js} +4 -4
- package/dist/{chunk-YFFEF6HR.js → chunk-ZHZ4PET5.js} +2 -2
- package/dist/{chunk-YZNKFYDC.js → chunk-ZM72UO3Y.js} +2 -2
- package/dist/classified/index.js +3 -3
- package/dist/{classified-marker-52P3D72W.js → classified-marker-SVDRXLD3.js} +3 -3
- package/dist/{collection-facade-XKCFHSLR.js → collection-facade-S5PPKZD5.js} +9 -9
- package/dist/consent/index.js +8 -4
- package/dist/consent/index.js.map +1 -1
- package/dist/{cover-5BSNJREH.js → cover-ADBCTIKN.js} +3 -3
- package/dist/crdt/index.js +4 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/{dead-filter-JXVCKS6W.js → dead-filter-HKDMTMVY.js} +2 -2
- package/dist/{delegation-WWZPEDK2.js → delegation-EV7LKJPH.js} +5 -5
- package/dist/derivations/index.js +3 -3
- package/dist/{derive-CWWFEQ4N.js → derive-5LDJW76F.js} +4 -4
- package/dist/{dispatch-PKQQFDBT.js → dispatch-SPMYNXNW.js} +12 -11
- package/dist/{dispatch-PKQQFDBT.js.map → dispatch-SPMYNXNW.js.map} +1 -1
- package/dist/{dispatch-SMXUO7W5.js → dispatch-V5MSMQYX.js} +5 -5
- package/dist/{enclave-I5H3GINP.js → enclave-ZA7C3H2L.js} +4 -4
- package/dist/executor-SVHAJZ4A.js +28 -0
- package/dist/{export-accessible-FBL6TDSK.js → export-accessible-S35YKIBL.js} +7 -7
- package/dist/{extract-partition-ZYIRYMTI.js → extract-partition-UVHAM5WZ.js} +10 -10
- package/dist/{fanout-sidecar-WWXVHHUH.js → fanout-sidecar-HRMHC34B.js} +4 -4
- package/dist/forget/index.js +4 -4
- package/dist/history/index.js +10 -6
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +10 -8
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +4 -7
- package/dist/index.js +94 -151
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +3 -1
- package/dist/indexing/index.js.map +1 -1
- package/dist/{issue-F76PAGIR.js → issue-5X3SMCF4.js} +6 -6
- package/dist/kernel/lazy.d.ts +30 -0
- package/dist/kernel/noydb.d.ts +21 -10
- 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 +5 -5
- package/dist/{ledger-M2BKCNVS.js → ledger-K6JBFL3Z.js} +6 -6
- package/dist/liberate-NHTCKBU4.js +24 -0
- package/dist/{link-set-ZU4E5J5S.js → link-set-XVZY2ODC.js} +5 -5
- package/dist/materialized-views/index.js +15 -12
- package/dist/noydb-TI3RFU6M.js +78 -0
- package/dist/periods/index.js +9 -7
- package/dist/pod/index.js +5 -6
- package/dist/{policy-IY2YEA3A.js → policy-QWGJB7P7.js} +4 -4
- package/dist/port/with/collection-registries.d.ts +62 -0
- package/dist/port/with/strategies.d.ts +2 -2
- package/dist/port/with/team-strategy.d.ts +2 -1
- package/dist/portability/index.js +6 -6
- package/dist/{post-register-XIAHB6KF.js → post-register-5VHHVFJY.js} +4 -4
- package/dist/query/index.js +4 -44
- package/dist/{aggregate → reduce}/index.js +22 -15
- package/dist/reduce/index.js.map +1 -0
- package/dist/{register-HB4TQZSV.js → register-CEX7R7NE.js} +6 -6
- package/dist/{registry-6BMBFEXT.js → registry-DIKMRXUC.js} +5 -5
- package/dist/{registry-JOFO7RAH.js → registry-EWIB5NTI.js} +4 -4
- package/dist/{request-withdrawal-UN3TRHWI.js → request-withdrawal-AAG57QO4.js} +9 -9
- package/dist/{reveal-VWXRV2XU.js → reveal-7OOT5XPD.js} +3 -3
- package/dist/{revoke-OLO2OVR7.js → revoke-U5LCIJMF.js} +6 -6
- package/dist/sealed-record/index.js +6 -6
- package/dist/{seed-CDBFOTIK.js → seed-GVOI6QP6.js} +6 -6
- package/dist/session/index.js +7 -3
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +4 -0
- package/dist/shadow/index.js.map +1 -1
- package/dist/{signer-MGGKPYAN.js → signer-NAA2OX7H.js} +5 -5
- package/dist/snapshots/index.js +9 -5
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-NBROTA66.js → stale-BJO2WIN7.js} +6 -5
- package/dist/{storage-3R37QZLA.js → storage-FL7XXZTN.js} +5 -5
- package/dist/{store-coordination-provider-P3IU5JHD.js → store-coordination-provider-DX5HECK3.js} +3 -3
- package/dist/sync/index.js +8 -4
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +15 -17
- package/dist/tiers/index.js +4 -4
- package/dist/tx/index.js +5 -1
- package/dist/tx/index.js.map +1 -1
- package/dist/via/blob/index.d.ts +2 -0
- 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-E3OVLBFR.js → walk-JXMWKKQW.js} +5 -5
- package/dist/with-audit/consent/index.d.ts +2 -0
- 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-fork/shadow/index.d.ts +2 -0
- package/dist/with-fork/snapshots/index.d.ts +2 -0
- package/dist/with-formula/materialized-views/types.d.ts +7 -7
- package/dist/with-lookup/indexing/index.d.ts +2 -0
- 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-party/session/index.d.ts +2 -0
- package/dist/with-party/sync/index.d.ts +2 -0
- package/dist/with-party/team/keyring.d.ts +20 -1
- package/dist/with-party/team/noydb-facade.d.ts +2 -1
- package/dist/{withdraw-accessible-Q2EMATCU.js → withdraw-accessible-GO6KQJVM.js} +8 -8
- package/package.json +6 -34
- package/dist/aggregate/index.js.map +0 -1
- package/dist/as/index.js +0 -30
- package/dist/at/index.js +0 -1
- package/dist/by/index.js +0 -11
- package/dist/chunk-2YELV6TV.js +0 -1
- package/dist/chunk-7ICV4ASA.js.map +0 -1
- package/dist/chunk-AFAPBZAA.js +0 -54
- 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-EEZCB74X.js.map +0 -1
- package/dist/chunk-FIP7KI2P.js.map +0 -1
- package/dist/chunk-HQKRZIX6.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-QMMOMBH6.js.map +0 -1
- package/dist/chunk-TNATF3HB.js.map +0 -1
- package/dist/chunk-XUFAFHQM.js.map +0 -1
- package/dist/chunk-YTW6ZIPD.js.map +0 -1
- package/dist/chunk-YZN6NRTR.js.map +0 -1
- package/dist/executor-SHYLIBOM.js +0 -26
- package/dist/in/index.js +0 -1
- 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/request-withdrawal-UN3TRHWI.js.map +0 -1
- package/dist/revoke-OLO2OVR7.js.map +0 -1
- package/dist/signer-MGGKPYAN.js.map +0 -1
- package/dist/stale-NBROTA66.js.map +0 -1
- package/dist/storage-3R37QZLA.js.map +0 -1
- package/dist/ui/index.js +0 -1
- package/dist/ui/index.js.map +0 -1
- package/dist/with/index.js +0 -31
- package/dist/with/index.js.map +0 -1
- package/dist/with-lookup/aggregate/index.d.ts +0 -23
- package/dist/withdraw-accessible-Q2EMATCU.js.map +0 -1
- /package/dist/{api-22ES33N3.js.map → api-5QVQX4HG.js.map} +0 -0
- /package/dist/{backup-YCHAC575.js.map → backup-USYSNCYM.js.map} +0 -0
- /package/dist/{chunk-RWW3I3PO.js.map → chunk-2BVW754E.js.map} +0 -0
- /package/dist/{chunk-VEGQYPCP.js.map → chunk-2ZSC454H.js.map} +0 -0
- /package/dist/{chunk-S4YERMGJ.js.map → chunk-32467U5J.js.map} +0 -0
- /package/dist/{chunk-UVBHM7AK.js.map → chunk-3GXDB3NQ.js.map} +0 -0
- /package/dist/{chunk-HAPY7WFP.js.map → chunk-3TZUC4WS.js.map} +0 -0
- /package/dist/{chunk-M6QA2KK2.js.map → chunk-44Y3P5U6.js.map} +0 -0
- /package/dist/{chunk-WQN5SM7P.js.map → chunk-4B3DL75F.js.map} +0 -0
- /package/dist/{chunk-OHV6T5JB.js.map → chunk-6SSWOUUS.js.map} +0 -0
- /package/dist/{chunk-6RPWILRH.js.map → chunk-7IQWHYL2.js.map} +0 -0
- /package/dist/{chunk-I2XEBEEF.js.map → chunk-AZXEOEQK.js.map} +0 -0
- /package/dist/{chunk-K7BADAOS.js.map → chunk-C2V7AJO2.js.map} +0 -0
- /package/dist/{chunk-YCAJDK4O.js.map → chunk-E7FSBI6I.js.map} +0 -0
- /package/dist/{chunk-YWZEDG7F.js.map → chunk-EPME33Y4.js.map} +0 -0
- /package/dist/{chunk-YXZNGHID.js.map → chunk-H5GMROCB.js.map} +0 -0
- /package/dist/{chunk-FTCGEUOY.js.map → chunk-HDF5R2K6.js.map} +0 -0
- /package/dist/{chunk-R2N37AA6.js.map → chunk-HVPW6PCX.js.map} +0 -0
- /package/dist/{chunk-YXIVUWDU.js.map → chunk-HXVRRJBD.js.map} +0 -0
- /package/dist/{chunk-5ATANZSW.js.map → chunk-ICYC5YNI.js.map} +0 -0
- /package/dist/{chunk-QZJEYZ4I.js.map → chunk-JGOKAZNB.js.map} +0 -0
- /package/dist/{chunk-7BIJS6II.js.map → chunk-JTIPVW4J.js.map} +0 -0
- /package/dist/{chunk-SC4JLMZI.js.map → chunk-KCZAFDP5.js.map} +0 -0
- /package/dist/{chunk-GP54LU5N.js.map → chunk-LG2GUYRX.js.map} +0 -0
- /package/dist/{chunk-QMZ5A6FQ.js.map → chunk-M7W2KYTL.js.map} +0 -0
- /package/dist/{chunk-K4BWPNJO.js.map → chunk-MLCTPWSO.js.map} +0 -0
- /package/dist/{chunk-GEEJPID6.js.map → chunk-MMVQ3SUO.js.map} +0 -0
- /package/dist/{chunk-TNJVDG2B.js.map → chunk-NA374QG7.js.map} +0 -0
- /package/dist/{chunk-V5JUAW4M.js.map → chunk-QVIZDLAR.js.map} +0 -0
- /package/dist/{chunk-2CRZOVDI.js.map → chunk-UNREYBZO.js.map} +0 -0
- /package/dist/{chunk-UTEATWHO.js.map → chunk-VNJMLOQS.js.map} +0 -0
- /package/dist/{chunk-JAMDDLIM.js.map → chunk-WCJJQV2D.js.map} +0 -0
- /package/dist/{chunk-OMSKGLYA.js.map → chunk-WWBC4KLB.js.map} +0 -0
- /package/dist/{chunk-JIHH26WQ.js.map → chunk-XG7OZDOS.js.map} +0 -0
- /package/dist/{chunk-QBOQI6PG.js.map → chunk-XONZGK6J.js.map} +0 -0
- /package/dist/{chunk-YQQPNXNO.js.map → chunk-XSOGLHGY.js.map} +0 -0
- /package/dist/{chunk-3OWYOECI.js.map → chunk-XY6MNSAF.js.map} +0 -0
- /package/dist/{chunk-X3MWEFPT.js.map → chunk-YGMREQAK.js.map} +0 -0
- /package/dist/{chunk-ILM6X6CP.js.map → chunk-ZF572E2M.js.map} +0 -0
- /package/dist/{chunk-OGVE4IJW.js.map → chunk-ZHMUFYZF.js.map} +0 -0
- /package/dist/{chunk-YFFEF6HR.js.map → chunk-ZHZ4PET5.js.map} +0 -0
- /package/dist/{chunk-YZNKFYDC.js.map → chunk-ZM72UO3Y.js.map} +0 -0
- /package/dist/{classified-marker-52P3D72W.js.map → classified-marker-SVDRXLD3.js.map} +0 -0
- /package/dist/{as/index.js.map → collection-facade-S5PPKZD5.js.map} +0 -0
- /package/dist/{at/index.js.map → cover-ADBCTIKN.js.map} +0 -0
- /package/dist/{dead-filter-JXVCKS6W.js.map → dead-filter-HKDMTMVY.js.map} +0 -0
- /package/dist/{by/index.js.map → delegation-EV7LKJPH.js.map} +0 -0
- /package/dist/{chunk-2YELV6TV.js.map → derive-5LDJW76F.js.map} +0 -0
- /package/dist/{dispatch-SMXUO7W5.js.map → dispatch-V5MSMQYX.js.map} +0 -0
- /package/dist/{collection-facade-XKCFHSLR.js.map → enclave-ZA7C3H2L.js.map} +0 -0
- /package/dist/{cover-5BSNJREH.js.map → executor-SVHAJZ4A.js.map} +0 -0
- /package/dist/{delegation-WWZPEDK2.js.map → export-accessible-S35YKIBL.js.map} +0 -0
- /package/dist/{derive-CWWFEQ4N.js.map → extract-partition-UVHAM5WZ.js.map} +0 -0
- /package/dist/{fanout-sidecar-WWXVHHUH.js.map → fanout-sidecar-HRMHC34B.js.map} +0 -0
- /package/dist/{enclave-I5H3GINP.js.map → issue-5X3SMCF4.js.map} +0 -0
- /package/dist/{executor-SHYLIBOM.js.map → ledger-K6JBFL3Z.js.map} +0 -0
- /package/dist/{export-accessible-FBL6TDSK.js.map → liberate-NHTCKBU4.js.map} +0 -0
- /package/dist/{extract-partition-ZYIRYMTI.js.map → link-set-XVZY2ODC.js.map} +0 -0
- /package/dist/{in/index.js.map → noydb-TI3RFU6M.js.map} +0 -0
- /package/dist/{issue-F76PAGIR.js.map → policy-QWGJB7P7.js.map} +0 -0
- /package/dist/{post-register-XIAHB6KF.js.map → post-register-5VHHVFJY.js.map} +0 -0
- /package/dist/{ledger-M2BKCNVS.js.map → register-CEX7R7NE.js.map} +0 -0
- /package/dist/{liberate-ZP7UB57K.js.map → registry-DIKMRXUC.js.map} +0 -0
- /package/dist/{link-set-ZU4E5J5S.js.map → registry-EWIB5NTI.js.map} +0 -0
- /package/dist/{noydb-BNDGEK5X.js.map → request-withdrawal-AAG57QO4.js.map} +0 -0
- /package/dist/{reveal-VWXRV2XU.js.map → reveal-7OOT5XPD.js.map} +0 -0
- /package/dist/{on/index.js.map → revoke-U5LCIJMF.js.map} +0 -0
- /package/dist/{seed-CDBFOTIK.js.map → seed-GVOI6QP6.js.map} +0 -0
- /package/dist/{policy-IY2YEA3A.js.map → signer-NAA2OX7H.js.map} +0 -0
- /package/dist/{register-HB4TQZSV.js.map → stale-BJO2WIN7.js.map} +0 -0
- /package/dist/{registry-6BMBFEXT.js.map → storage-FL7XXZTN.js.map} +0 -0
- /package/dist/{store-coordination-provider-P3IU5JHD.js.map → store-coordination-provider-DX5HECK3.js.map} +0 -0
- /package/dist/{walk-E3OVLBFR.js.map → walk-JXMWKKQW.js.map} +0 -0
- /package/dist/with-lookup/{aggregate → reduce}/canonical-key.d.ts +0 -0
- /package/dist/{registry-JOFO7RAH.js.map → withdraw-accessible-GO6KQJVM.js.map} +0 -0
package/dist/indexing/index.js
CHANGED
|
@@ -2,12 +2,13 @@ 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-GQT6J4FJ.js";
|
|
11
12
|
import {
|
|
12
13
|
CollectionIndexes
|
|
13
14
|
} from "../chunk-KPZS5QAQ.js";
|
|
@@ -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 `IndexStrategy` 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 { IndexStrategy, IndexState } from './strategy.js'\n\n/**\n * Build the default indexing strategy. Pass into\n * `createNoydb({ indexStrategy: 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 * indexStrategy: withIndexing(),\n * })\n * ```\n */\nexport function withIndexing(): IndexStrategy {\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":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-lookup/indexing/active.ts"],"sourcesContent":["/**\n * Active indexing strategy factory. Calling `withIndexing()` returns\n * an `IndexStrategy` 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 { IndexStrategy, IndexState } from './strategy.js'\n\n/**\n * Build the default indexing strategy. Pass into\n * `createNoydb({ indexStrategy: 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 * indexStrategy: withIndexing(),\n * })\n * ```\n */\nexport function withIndexing(): IndexStrategy {\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,eAA8B;AAC5C,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":[]}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
issueAttestationCore
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HXVRRJBD.js";
|
|
4
|
+
import "./chunk-JGOKAZNB.js";
|
|
5
5
|
import "./chunk-ZJADGNYF.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MMVQ3SUO.js";
|
|
7
|
+
import "./chunk-KCZAFDP5.js";
|
|
8
8
|
import "./chunk-5WLDZZ6S.js";
|
|
9
9
|
import "./chunk-5HSSTOOG.js";
|
|
10
10
|
import "./chunk-G4MFQXYX.js";
|
|
11
11
|
import "./chunk-LP7BEXCT.js";
|
|
12
12
|
import "./chunk-7U6AB7DZ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-DOZFU7OZ.js";
|
|
14
14
|
import "./chunk-6SYOHUHM.js";
|
|
15
15
|
import "./chunk-PZ5AY32C.js";
|
|
16
16
|
export {
|
|
17
17
|
issueAttestationCore
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=issue-
|
|
19
|
+
//# sourceMappingURL=issue-5X3SMCF4.js.map
|
|
@@ -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
|
/**
|
|
@@ -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
|
@@ -28,7 +28,7 @@ import type { SyncPolicy } from './sync-policy.js';
|
|
|
28
28
|
import type { BlobStrategy } from '../port/with/blob-strategy.js';
|
|
29
29
|
import type { ArchiveStrategy } from '../with-fork/archive/index.js';
|
|
30
30
|
import type { IndexStrategy } from '../with-lookup/indexing/strategy.js';
|
|
31
|
-
import type {
|
|
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';
|
|
@@ -2200,16 +2200,16 @@ export interface NoydbOptions {
|
|
|
2200
2200
|
readonly indexStrategy?: IndexStrategy;
|
|
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'`;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
LedgerStore,
|
|
4
4
|
applyPatch,
|
|
5
5
|
computePatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ICYC5YNI.js";
|
|
7
7
|
import {
|
|
8
8
|
LEDGER_COLLECTION,
|
|
9
9
|
LEDGER_DELTAS_COLLECTION
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
paddedIndex,
|
|
16
16
|
parseIndex,
|
|
17
17
|
sha256Hex
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-2BVW754E.js";
|
|
19
|
+
import "./chunk-MMVQ3SUO.js";
|
|
20
|
+
import "./chunk-KCZAFDP5.js";
|
|
21
21
|
import "./chunk-5WLDZZ6S.js";
|
|
22
22
|
import "./chunk-5HSSTOOG.js";
|
|
23
23
|
import "./chunk-G4MFQXYX.js";
|
|
24
24
|
import "./chunk-LP7BEXCT.js";
|
|
25
25
|
import "./chunk-7U6AB7DZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DOZFU7OZ.js";
|
|
27
27
|
import "./chunk-6SYOHUHM.js";
|
|
28
28
|
import "./chunk-PZ5AY32C.js";
|
|
29
29
|
export {
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
parseIndex,
|
|
40
40
|
sha256Hex
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=ledger-
|
|
42
|
+
//# sourceMappingURL=ledger-K6JBFL3Z.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
liberateVault
|
|
3
|
+
} from "./chunk-QVIZDLAR.js";
|
|
4
|
+
import "./chunk-6SSWOUUS.js";
|
|
5
|
+
import "./chunk-MLCTPWSO.js";
|
|
6
|
+
import "./chunk-WWBC4KLB.js";
|
|
7
|
+
import "./chunk-E7FSBI6I.js";
|
|
8
|
+
import "./chunk-ZHZ4PET5.js";
|
|
9
|
+
import "./chunk-ZDFU34XY.js";
|
|
10
|
+
import "./chunk-7IQWHYL2.js";
|
|
11
|
+
import "./chunk-MMVQ3SUO.js";
|
|
12
|
+
import "./chunk-KCZAFDP5.js";
|
|
13
|
+
import "./chunk-5WLDZZ6S.js";
|
|
14
|
+
import "./chunk-5HSSTOOG.js";
|
|
15
|
+
import "./chunk-G4MFQXYX.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-7U6AB7DZ.js";
|
|
18
|
+
import "./chunk-DOZFU7OZ.js";
|
|
19
|
+
import "./chunk-6SYOHUHM.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
liberateVault
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=liberate-NHTCKBU4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinkEndpointError,
|
|
3
3
|
LinkSet
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XG7OZDOS.js";
|
|
5
5
|
import {
|
|
6
6
|
LINK_COLLECTION_PREFIX,
|
|
7
7
|
LinkIntegrityError,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
linkCollectionName,
|
|
10
10
|
linkRowKey
|
|
11
11
|
} from "./chunk-MUPZ6IZX.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MMVQ3SUO.js";
|
|
13
|
+
import "./chunk-KCZAFDP5.js";
|
|
14
14
|
import "./chunk-5WLDZZ6S.js";
|
|
15
15
|
import "./chunk-5HSSTOOG.js";
|
|
16
16
|
import "./chunk-G4MFQXYX.js";
|
|
17
17
|
import "./chunk-LP7BEXCT.js";
|
|
18
18
|
import "./chunk-7U6AB7DZ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DOZFU7OZ.js";
|
|
20
20
|
import "./chunk-6SYOHUHM.js";
|
|
21
21
|
import "./chunk-PZ5AY32C.js";
|
|
22
22
|
export {
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
linkCollectionName,
|
|
29
29
|
linkRowKey
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=link-set-
|
|
31
|
+
//# sourceMappingURL=link-set-XVZY2ODC.js.map
|
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withMaterializedView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RM5EXCFF.js";
|
|
4
4
|
import {
|
|
5
5
|
MaterializedViewExecutor
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-MQBFT2OT.js";
|
|
7
|
+
import "../chunk-JTIPVW4J.js";
|
|
7
8
|
import {
|
|
8
9
|
MaterializedViewRegistry,
|
|
9
10
|
analyzeDependencies,
|
|
10
11
|
canonicalizeQueryPlan,
|
|
11
12
|
computeQueryHash,
|
|
12
13
|
summarizeQueryPlan
|
|
13
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-ZGEFBDPR.js";
|
|
14
15
|
import {
|
|
15
16
|
clearMVStale,
|
|
16
17
|
isMVStale,
|
|
17
18
|
markMVStale,
|
|
18
19
|
resolveStaleMVOnRead
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-VDTWFN2P.js";
|
|
21
|
+
import "../chunk-5D2ALSM5.js";
|
|
21
22
|
import "../chunk-SBOHNJUD.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-HA7P3BTB.js";
|
|
24
|
+
import "../chunk-XZHEOSQ2.js";
|
|
25
|
+
import "../chunk-CADUYBQD.js";
|
|
23
26
|
import "../chunk-IGJCYUT5.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-C2V7AJO2.js";
|
|
28
|
+
import "../chunk-JOCMXSR2.js";
|
|
26
29
|
import "../chunk-ZUDAK436.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-2BVW754E.js";
|
|
31
|
+
import "../chunk-MMVQ3SUO.js";
|
|
32
|
+
import "../chunk-KCZAFDP5.js";
|
|
30
33
|
import "../chunk-5WLDZZ6S.js";
|
|
31
34
|
import "../chunk-5HSSTOOG.js";
|
|
32
35
|
import "../chunk-G4MFQXYX.js";
|
|
33
36
|
import "../chunk-LP7BEXCT.js";
|
|
34
37
|
import "../chunk-7U6AB7DZ.js";
|
|
35
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-DOZFU7OZ.js";
|
|
36
39
|
import {
|
|
37
40
|
MaterializedViewConfigError,
|
|
38
41
|
MaterializedViewCycleError,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Noydb,
|
|
3
|
+
createNoydb
|
|
4
|
+
} from "./chunk-EWPS35AR.js";
|
|
5
|
+
import "./chunk-YGMREQAK.js";
|
|
6
|
+
import "./chunk-M7W2KYTL.js";
|
|
7
|
+
import "./chunk-VYYM3MEN.js";
|
|
8
|
+
import "./chunk-5ABOFAHN.js";
|
|
9
|
+
import "./chunk-MUPZ6IZX.js";
|
|
10
|
+
import "./chunk-522MBPE5.js";
|
|
11
|
+
import "./chunk-44Y3P5U6.js";
|
|
12
|
+
import "./chunk-3TZUC4WS.js";
|
|
13
|
+
import "./chunk-SEU6QHH4.js";
|
|
14
|
+
import "./chunk-3S2YNMUS.js";
|
|
15
|
+
import "./chunk-6SSWOUUS.js";
|
|
16
|
+
import "./chunk-AURFOK3D.js";
|
|
17
|
+
import "./chunk-GYGLAVCX.js";
|
|
18
|
+
import "./chunk-EP5L47XV.js";
|
|
19
|
+
import "./chunk-GTNRMJYH.js";
|
|
20
|
+
import "./chunk-ZM72UO3Y.js";
|
|
21
|
+
import "./chunk-HDF5R2K6.js";
|
|
22
|
+
import "./chunk-OWLZONGX.js";
|
|
23
|
+
import "./chunk-IUATR5UE.js";
|
|
24
|
+
import "./chunk-GHVIKOHT.js";
|
|
25
|
+
import "./chunk-SMY5X46Z.js";
|
|
26
|
+
import "./chunk-NIKO2BBZ.js";
|
|
27
|
+
import "./chunk-QVGEVZ5F.js";
|
|
28
|
+
import "./chunk-Z4D3YGAB.js";
|
|
29
|
+
import "./chunk-JTIPVW4J.js";
|
|
30
|
+
import "./chunk-5D2ALSM5.js";
|
|
31
|
+
import "./chunk-PWWWMRT7.js";
|
|
32
|
+
import "./chunk-MPPWL64H.js";
|
|
33
|
+
import "./chunk-SBOHNJUD.js";
|
|
34
|
+
import "./chunk-LN3MQFUE.js";
|
|
35
|
+
import "./chunk-GQT6J4FJ.js";
|
|
36
|
+
import "./chunk-KPZS5QAQ.js";
|
|
37
|
+
import "./chunk-NO272T7Q.js";
|
|
38
|
+
import "./chunk-XZHEOSQ2.js";
|
|
39
|
+
import "./chunk-YMUFFJCO.js";
|
|
40
|
+
import "./chunk-CADUYBQD.js";
|
|
41
|
+
import "./chunk-IGJCYUT5.js";
|
|
42
|
+
import "./chunk-PVEWA2DU.js";
|
|
43
|
+
import "./chunk-PEOZ34EM.js";
|
|
44
|
+
import "./chunk-4B3DL75F.js";
|
|
45
|
+
import "./chunk-C2V7AJO2.js";
|
|
46
|
+
import "./chunk-JOCMXSR2.js";
|
|
47
|
+
import "./chunk-ZUDAK436.js";
|
|
48
|
+
import "./chunk-M4GO4ZJK.js";
|
|
49
|
+
import "./chunk-ZDFU34XY.js";
|
|
50
|
+
import "./chunk-7IQWHYL2.js";
|
|
51
|
+
import "./chunk-VQNJ7UZL.js";
|
|
52
|
+
import "./chunk-TMR64XPL.js";
|
|
53
|
+
import "./chunk-LC7DSMHR.js";
|
|
54
|
+
import "./chunk-P4NUJVWL.js";
|
|
55
|
+
import "./chunk-VKQCVU2Z.js";
|
|
56
|
+
import "./chunk-ZJADGNYF.js";
|
|
57
|
+
import "./chunk-AFHQATY4.js";
|
|
58
|
+
import "./chunk-ICYC5YNI.js";
|
|
59
|
+
import "./chunk-I7FD46FF.js";
|
|
60
|
+
import "./chunk-PTT2NB46.js";
|
|
61
|
+
import "./chunk-2BVW754E.js";
|
|
62
|
+
import "./chunk-AZXEOEQK.js";
|
|
63
|
+
import "./chunk-7LP7FFJ2.js";
|
|
64
|
+
import "./chunk-MMVQ3SUO.js";
|
|
65
|
+
import "./chunk-KCZAFDP5.js";
|
|
66
|
+
import "./chunk-5WLDZZ6S.js";
|
|
67
|
+
import "./chunk-5HSSTOOG.js";
|
|
68
|
+
import "./chunk-G4MFQXYX.js";
|
|
69
|
+
import "./chunk-LP7BEXCT.js";
|
|
70
|
+
import "./chunk-7U6AB7DZ.js";
|
|
71
|
+
import "./chunk-DOZFU7OZ.js";
|
|
72
|
+
import "./chunk-6SYOHUHM.js";
|
|
73
|
+
import "./chunk-PZ5AY32C.js";
|
|
74
|
+
export {
|
|
75
|
+
Noydb,
|
|
76
|
+
createNoydb
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=noydb-TI3RFU6M.js.map
|
package/dist/periods/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withPeriods
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XONZGK6J.js";
|
|
4
4
|
import {
|
|
5
|
+
NO_PERIODS,
|
|
5
6
|
appendPeriodLedgerEntry,
|
|
6
7
|
assertTsWritable,
|
|
7
8
|
chainAnchor,
|
|
8
9
|
loadPeriods,
|
|
9
10
|
validatePeriodName
|
|
10
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-IUATR5UE.js";
|
|
11
12
|
import "../chunk-GHVIKOHT.js";
|
|
12
13
|
import {
|
|
13
14
|
PERIODS_COLLECTION,
|
|
@@ -16,20 +17,21 @@ import {
|
|
|
16
17
|
PERIOD_TARGET_PURGES_COLLECTION,
|
|
17
18
|
periodExclusiveUpperBound
|
|
18
19
|
} from "../chunk-TMR64XPL.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-ICYC5YNI.js";
|
|
20
21
|
import "../chunk-I7FD46FF.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-2BVW754E.js";
|
|
23
|
+
import "../chunk-MMVQ3SUO.js";
|
|
24
|
+
import "../chunk-KCZAFDP5.js";
|
|
24
25
|
import "../chunk-5WLDZZ6S.js";
|
|
25
26
|
import "../chunk-5HSSTOOG.js";
|
|
26
27
|
import "../chunk-G4MFQXYX.js";
|
|
27
28
|
import "../chunk-LP7BEXCT.js";
|
|
28
29
|
import "../chunk-7U6AB7DZ.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-DOZFU7OZ.js";
|
|
30
31
|
import "../chunk-6SYOHUHM.js";
|
|
31
32
|
import "../chunk-PZ5AY32C.js";
|
|
32
33
|
export {
|
|
34
|
+
NO_PERIODS,
|
|
33
35
|
PERIODS_COLLECTION,
|
|
34
36
|
PERIOD_ARCHIVES_COLLECTION,
|
|
35
37
|
PERIOD_FREEZES_COLLECTION,
|
package/dist/pod/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../chunk-2YELV6TV.js";
|
|
2
1
|
import {
|
|
3
2
|
createBundleStore,
|
|
4
3
|
createPodStore,
|
|
@@ -25,20 +24,20 @@ import {
|
|
|
25
24
|
validateBundleHeader,
|
|
26
25
|
writeNoydbBundle,
|
|
27
26
|
writePod
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-E7FSBI6I.js";
|
|
28
|
+
import "../chunk-ZHZ4PET5.js";
|
|
30
29
|
import {
|
|
31
30
|
generateULID,
|
|
32
31
|
isULID
|
|
33
32
|
} from "../chunk-ZJADGNYF.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-MMVQ3SUO.js";
|
|
34
|
+
import "../chunk-KCZAFDP5.js";
|
|
36
35
|
import "../chunk-5WLDZZ6S.js";
|
|
37
36
|
import "../chunk-5HSSTOOG.js";
|
|
38
37
|
import "../chunk-G4MFQXYX.js";
|
|
39
38
|
import "../chunk-LP7BEXCT.js";
|
|
40
39
|
import "../chunk-7U6AB7DZ.js";
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-DOZFU7OZ.js";
|
|
42
41
|
import {
|
|
43
42
|
BackupCorruptedError,
|
|
44
43
|
BackupLedgerError,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
createNoydbPolicy,
|
|
7
7
|
describeGate,
|
|
8
8
|
mergePolicy
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WCJJQV2D.js";
|
|
10
10
|
import {
|
|
11
11
|
META_COLLECTION,
|
|
12
12
|
POLICY_RECORD_ID,
|
|
13
13
|
loadVaultPolicy,
|
|
14
14
|
saveVaultPolicy
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-M7W2KYTL.js";
|
|
16
|
+
import "./chunk-DOZFU7OZ.js";
|
|
17
17
|
import {
|
|
18
18
|
ManagedRecoveryNotEnrolledError,
|
|
19
19
|
PolicyDeniedError,
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
mergePolicy,
|
|
39
39
|
saveVaultPolicy
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=policy-
|
|
41
|
+
//# sourceMappingURL=policy-QWGJB7P7.js.map
|