@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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault-level registries a collection declaration populates (#841).
|
|
3
|
+
*
|
|
4
|
+
* `Vault.collection()` carried ~70 lines that did nothing but fan a
|
|
5
|
+
* declaration out into ten registries — refs, i18n fields, blob retention,
|
|
6
|
+
* archive policy, attestation schema, the dict/lookup family, and the
|
|
7
|
+
* schema-update names. None of it is orchestration, and all of it obscured
|
|
8
|
+
* the method's actual job.
|
|
9
|
+
*
|
|
10
|
+
* ## Why this is on the port and not in `kernel/`
|
|
11
|
+
*
|
|
12
|
+
* The registry types reach into services — `BlobFieldsConfig`
|
|
13
|
+
* (`with-shape/blobs`) and `ArchivePolicy` (`with-fork/archive`) — and
|
|
14
|
+
* `port-layering` forbids the spine from statically importing a `with-*`
|
|
15
|
+
* module, **including type-only** (the guard scans import statements, not
|
|
16
|
+
* their erasure). Port files may reach services freely, which is why
|
|
17
|
+
* `strategies.ts` and `collection-options.ts` already live here.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
import type { AttestationFieldSchema } from '@noy-db/attestation';
|
|
22
|
+
import type { BlobFieldsConfig } from '../../with-shape/blobs/blob-compaction.js';
|
|
23
|
+
import type { ArchivePolicy } from '../../with-fork/archive/index.js';
|
|
24
|
+
import type { OpenCollectionOptions } from './collection-options.js';
|
|
25
|
+
import { type StaticDictDescriptor } from './i18n-strategy.js';
|
|
26
|
+
import { type LookupDescriptor } from './lookup-strategy.js';
|
|
27
|
+
/** The via-derived field maps a declaration resolves to before registration. */
|
|
28
|
+
export interface EffectiveViaFields {
|
|
29
|
+
readonly i18nFields?: Record<string, unknown> | undefined;
|
|
30
|
+
readonly dictKeyFields?: Record<string, StaticDictDescriptor | {
|
|
31
|
+
name: string;
|
|
32
|
+
}> | undefined;
|
|
33
|
+
readonly lookupFields?: Record<string, LookupDescriptor<string>> | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The ten registries a collection declaration writes into. Passed by
|
|
37
|
+
* reference — these are the Vault's own maps, mutated in place.
|
|
38
|
+
*/
|
|
39
|
+
export interface CollectionRegistries {
|
|
40
|
+
readonly refRegistry: {
|
|
41
|
+
register(collection: string, refs: Record<string, unknown>): void;
|
|
42
|
+
};
|
|
43
|
+
readonly i18nFieldRegistry: Map<string, unknown>;
|
|
44
|
+
readonly blobFieldsRegistry: Map<string, BlobFieldsConfig<unknown>>;
|
|
45
|
+
readonly archiveRegistry: Map<string, ArchivePolicy>;
|
|
46
|
+
readonly attestation: {
|
|
47
|
+
register(collection: string, schema: AttestationFieldSchema): void;
|
|
48
|
+
};
|
|
49
|
+
readonly dictKeyFieldRegistry: Map<string, Record<string, string>>;
|
|
50
|
+
readonly staticDictNames: Set<string>;
|
|
51
|
+
readonly staticByName: Map<string, StaticDictDescriptor>;
|
|
52
|
+
readonly staticDescriptorByField: Map<string, Record<string, StaticDictDescriptor>>;
|
|
53
|
+
readonly reservedLookupCollections: Map<string, string>;
|
|
54
|
+
readonly schemaUpdateNames: Map<string, string[]>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Fan a collection declaration out into the vault's registries.
|
|
58
|
+
*
|
|
59
|
+
* Called once, before the `Collection` is constructed, so the first `put()`
|
|
60
|
+
* already sees its refs through `vault.enforceRefsOnPut`.
|
|
61
|
+
*/
|
|
62
|
+
export declare function populateCollectionRegistries<T>(r: CollectionRegistries, collectionName: string, options: OpenCollectionOptions<T> | undefined, effectiveViaFields: EffectiveViaFields): void;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* @internal
|
|
52
52
|
*/
|
|
53
53
|
import type { NoydbOptions } from '../../kernel/types.js';
|
|
54
|
-
import { type
|
|
54
|
+
import { type ReduceStrategy } from '../../with-lookup/reduce/strategy.js';
|
|
55
55
|
import { type AttestationStrategy } from '../../with-audit/attestation/strategy.js';
|
|
56
56
|
import { type BlobStrategy } from './blob-strategy.js';
|
|
57
57
|
import { type BrokerStrategy } from './broker-strategy.js';
|
|
@@ -86,7 +86,7 @@ import type { ArchiveStrategy } from '../../with-fork/archive/index.js';
|
|
|
86
86
|
* completeness assertion below pins that correspondence.
|
|
87
87
|
*/
|
|
88
88
|
export interface StrategyBag {
|
|
89
|
-
readonly
|
|
89
|
+
readonly reduce: ReduceStrategy;
|
|
90
90
|
readonly archive: ArchiveStrategy;
|
|
91
91
|
readonly attestation: AttestationStrategy;
|
|
92
92
|
readonly blob: BlobStrategy;
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
import type { GrantOptions, RevokeOptions, FactorProofBundle } from '../../kernel/types.js';
|
|
25
|
+
import type { RotateResult } from '../../with-party/team/keyring.js';
|
|
25
26
|
import type { TeamFacade } from '../../with-party/team/noydb-facade.js';
|
|
26
27
|
export interface TeamStrategy {
|
|
27
28
|
grant(team: TeamFacade, vault: string, options: GrantOptions, factors?: FactorProofBundle): Promise<void>;
|
|
28
29
|
revoke(team: TeamFacade, vault: string, options: RevokeOptions, factors?: FactorProofBundle): Promise<void>;
|
|
29
|
-
rotate(team: TeamFacade, vault: string, collections: string[]): Promise<
|
|
30
|
+
rotate(team: TeamFacade, vault: string, collections: string[]): Promise<RotateResult>;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* No-op stub — the floor default. Every multi-user team operation throws
|
|
@@ -10,27 +10,27 @@ import "../chunk-PZ5AY32C.js";
|
|
|
10
10
|
function withPortability() {
|
|
11
11
|
return {
|
|
12
12
|
async exportAccessibleData(vault, opts) {
|
|
13
|
-
const { exportAccessibleData } = await import("../export-accessible-
|
|
13
|
+
const { exportAccessibleData } = await import("../export-accessible-S35YKIBL.js");
|
|
14
14
|
return exportAccessibleData(vault, opts);
|
|
15
15
|
},
|
|
16
16
|
async withdrawAccessibleData(vault, opts) {
|
|
17
|
-
const { withdrawAccessibleData } = await import("../withdraw-accessible-
|
|
17
|
+
const { withdrawAccessibleData } = await import("../withdraw-accessible-GO6KQJVM.js");
|
|
18
18
|
return withdrawAccessibleData(vault, opts);
|
|
19
19
|
},
|
|
20
20
|
async requestWithdrawal(vault, opts) {
|
|
21
|
-
const { requestWithdrawal } = await import("../request-withdrawal-
|
|
21
|
+
const { requestWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
|
|
22
22
|
return requestWithdrawal(vault, opts);
|
|
23
23
|
},
|
|
24
24
|
async listWithdrawalRequests(vault, opts) {
|
|
25
|
-
const { listWithdrawalRequests } = await import("../request-withdrawal-
|
|
25
|
+
const { listWithdrawalRequests } = await import("../request-withdrawal-AAG57QO4.js");
|
|
26
26
|
return listWithdrawalRequests(vault, opts);
|
|
27
27
|
},
|
|
28
28
|
async approveWithdrawal(vault, requestId, opts) {
|
|
29
|
-
const { approveWithdrawal } = await import("../request-withdrawal-
|
|
29
|
+
const { approveWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
|
|
30
30
|
return approveWithdrawal(vault, requestId, opts);
|
|
31
31
|
},
|
|
32
32
|
async rejectWithdrawal(vault, requestId, opts) {
|
|
33
|
-
const { rejectWithdrawal } = await import("../request-withdrawal-
|
|
33
|
+
const { rejectWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
|
|
34
34
|
return rejectWithdrawal(vault, requestId, opts);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -14,7 +14,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
|
|
|
14
14
|
joined: spec.joined,
|
|
15
15
|
epoch: (/* @__PURE__ */ new Date()).toISOString()
|
|
16
16
|
};
|
|
17
|
-
const { loadPersistedSchema } = await import("./storage-
|
|
17
|
+
const { loadPersistedSchema } = await import("./storage-FL7XXZTN.js");
|
|
18
18
|
const persisted = await loadPersistedSchema(store, vaultName, spec.satellite, dek);
|
|
19
19
|
const prior = persisted?.satellite;
|
|
20
20
|
if (prior) {
|
|
@@ -25,7 +25,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
|
|
|
25
25
|
}
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
const { persistSatelliteMarker } = await import("./register-
|
|
28
|
+
const { persistSatelliteMarker } = await import("./register-CEX7R7NE.js");
|
|
29
29
|
await persistSatelliteMarker({ store, vault: vaultName, collectionName: spec.satellite, dek, marker: next });
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
|
|
|
39
39
|
}
|
|
40
40
|
if (baseSchema !== void 0) {
|
|
41
41
|
try {
|
|
42
|
-
const { derivePersistedSchema } = await import("./derive-
|
|
42
|
+
const { derivePersistedSchema } = await import("./derive-5LDJW76F.js");
|
|
43
43
|
const envelope = await derivePersistedSchema(baseSchema);
|
|
44
44
|
const properties = envelope.jsonSchema?.["properties"];
|
|
45
45
|
const baseFields = Object.keys(properties ?? {});
|
|
@@ -57,4 +57,4 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
|
|
|
57
57
|
export {
|
|
58
58
|
postRegister
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=post-register-
|
|
60
|
+
//# sourceMappingURL=post-register-5VHHVFJY.js.map
|
package/dist/query/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ScanBuilder,
|
|
5
5
|
buildLiveQuery,
|
|
6
6
|
executePlan
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-MPPWL64H.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_JOIN_MAX_ROWS,
|
|
10
10
|
applyJoins,
|
|
@@ -13,34 +13,13 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
CollectionIndexes
|
|
15
15
|
} from "../chunk-KPZS5QAQ.js";
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
GROUPBY_MAX_CARDINALITY,
|
|
19
|
-
GROUPBY_WARN_CARDINALITY,
|
|
20
|
-
GroupedAggregation,
|
|
21
|
-
GroupedQuery,
|
|
22
|
-
GroupedQueryN,
|
|
23
|
-
avg,
|
|
24
|
-
buildLiveAggregation,
|
|
25
|
-
count,
|
|
26
|
-
groupAndReduce,
|
|
27
|
-
max,
|
|
28
|
-
min,
|
|
29
|
-
moneyMax,
|
|
30
|
-
moneyMin,
|
|
31
|
-
moneySum,
|
|
32
|
-
reduceRecords,
|
|
33
|
-
reducerBuilder,
|
|
34
|
-
resetGroupByWarnings,
|
|
35
|
-
sum
|
|
36
|
-
} from "../chunk-QMMOMBH6.js";
|
|
16
|
+
import "../chunk-YMUFFJCO.js";
|
|
17
|
+
import "../chunk-CADUYBQD.js";
|
|
37
18
|
import {
|
|
38
19
|
evaluateClause,
|
|
39
20
|
evaluateFieldClause,
|
|
40
21
|
readPath
|
|
41
22
|
} from "../chunk-IGJCYUT5.js";
|
|
42
|
-
import "../chunk-JN3SGXJE.js";
|
|
43
|
-
import "../chunk-ZUDAK436.js";
|
|
44
23
|
import {
|
|
45
24
|
CrossJoinSourceUnknownError,
|
|
46
25
|
CrossJoinTooLargeError,
|
|
@@ -53,7 +32,6 @@ import {
|
|
|
53
32
|
} from "../chunk-6SYOHUHM.js";
|
|
54
33
|
import "../chunk-PZ5AY32C.js";
|
|
55
34
|
export {
|
|
56
|
-
Aggregation,
|
|
57
35
|
CollectionIndexes,
|
|
58
36
|
CrossJoinSourceUnknownError,
|
|
59
37
|
CrossJoinTooLargeError,
|
|
@@ -61,36 +39,18 @@ export {
|
|
|
61
39
|
DEFAULT_JOIN_MAX_ROWS,
|
|
62
40
|
DanglingReferenceError,
|
|
63
41
|
FieldNotQueryableError,
|
|
64
|
-
GROUPBY_MAX_CARDINALITY,
|
|
65
|
-
GROUPBY_WARN_CARDINALITY,
|
|
66
42
|
GroupCardinalityError,
|
|
67
|
-
GroupedAggregation,
|
|
68
|
-
GroupedQuery,
|
|
69
|
-
GroupedQueryN,
|
|
70
43
|
IndexRequiredError,
|
|
71
44
|
IndexWriteFailureError,
|
|
72
45
|
JoinTooLargeError,
|
|
73
46
|
Query,
|
|
74
47
|
ScanBuilder,
|
|
75
48
|
applyJoins,
|
|
76
|
-
avg,
|
|
77
|
-
buildLiveAggregation,
|
|
78
49
|
buildLiveQuery,
|
|
79
|
-
count,
|
|
80
50
|
evaluateClause,
|
|
81
51
|
evaluateFieldClause,
|
|
82
52
|
executePlan,
|
|
83
|
-
groupAndReduce,
|
|
84
|
-
max,
|
|
85
|
-
min,
|
|
86
|
-
moneyMax,
|
|
87
|
-
moneyMin,
|
|
88
|
-
moneySum,
|
|
89
53
|
readPath,
|
|
90
|
-
|
|
91
|
-
reducerBuilder,
|
|
92
|
-
resetGroupByWarnings,
|
|
93
|
-
resetJoinWarnings,
|
|
94
|
-
sum
|
|
54
|
+
resetJoinWarnings
|
|
95
55
|
};
|
|
96
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Aggregation,
|
|
3
2
|
GROUPBY_MAX_CARDINALITY,
|
|
4
3
|
GROUPBY_WARN_CARDINALITY,
|
|
5
|
-
GroupedAggregation,
|
|
6
4
|
GroupedQuery,
|
|
7
5
|
GroupedQueryN,
|
|
6
|
+
GroupedReduction,
|
|
7
|
+
Reduction,
|
|
8
|
+
buildLiveReduction,
|
|
9
|
+
groupAndReduce,
|
|
10
|
+
reduceRecords,
|
|
11
|
+
resetGroupByWarnings
|
|
12
|
+
} from "../chunk-HA7P3BTB.js";
|
|
13
|
+
import "../chunk-XZHEOSQ2.js";
|
|
14
|
+
import {
|
|
15
|
+
NO_REDUCE
|
|
16
|
+
} from "../chunk-YMUFFJCO.js";
|
|
17
|
+
import {
|
|
8
18
|
avg,
|
|
9
|
-
buildLiveAggregation,
|
|
10
19
|
count,
|
|
11
|
-
groupAndReduce,
|
|
12
20
|
max,
|
|
13
21
|
min,
|
|
14
22
|
moneyMax,
|
|
15
23
|
moneyMin,
|
|
16
24
|
moneySum,
|
|
17
|
-
reduceRecords,
|
|
18
25
|
reducerBuilder,
|
|
19
|
-
resetGroupByWarnings,
|
|
20
26
|
sum
|
|
21
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-CADUYBQD.js";
|
|
22
28
|
import "../chunk-IGJCYUT5.js";
|
|
23
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-JOCMXSR2.js";
|
|
24
30
|
import "../chunk-ZUDAK436.js";
|
|
25
31
|
import "../chunk-6SYOHUHM.js";
|
|
26
32
|
import "../chunk-PZ5AY32C.js";
|
|
27
33
|
|
|
28
|
-
// src/with-lookup/
|
|
29
|
-
function
|
|
34
|
+
// src/with-lookup/reduce/active.ts
|
|
35
|
+
function withReduce() {
|
|
30
36
|
return {
|
|
31
37
|
aggregate(executeRecords, spec, upstreams) {
|
|
32
|
-
return new
|
|
38
|
+
return new Reduction(executeRecords, spec, upstreams);
|
|
33
39
|
},
|
|
34
40
|
groupBy(executeRecords, field, upstreams, dictLabelResolver, via) {
|
|
35
41
|
return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, via);
|
|
@@ -45,14 +51,15 @@ function withAggregate() {
|
|
|
45
51
|
};
|
|
46
52
|
}
|
|
47
53
|
export {
|
|
48
|
-
Aggregation,
|
|
49
54
|
GROUPBY_MAX_CARDINALITY,
|
|
50
55
|
GROUPBY_WARN_CARDINALITY,
|
|
51
|
-
GroupedAggregation,
|
|
52
56
|
GroupedQuery,
|
|
53
57
|
GroupedQueryN,
|
|
58
|
+
GroupedReduction,
|
|
59
|
+
NO_REDUCE,
|
|
60
|
+
Reduction,
|
|
54
61
|
avg,
|
|
55
|
-
|
|
62
|
+
buildLiveReduction,
|
|
56
63
|
count,
|
|
57
64
|
groupAndReduce,
|
|
58
65
|
max,
|
|
@@ -64,6 +71,6 @@ export {
|
|
|
64
71
|
reducerBuilder,
|
|
65
72
|
resetGroupByWarnings,
|
|
66
73
|
sum,
|
|
67
|
-
|
|
74
|
+
withReduce
|
|
68
75
|
};
|
|
69
76
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/with-lookup/reduce/active.ts"],"sourcesContent":["/**\n * Active aggregate strategy factory. Calling `withReduce()` returns\n * an `ReduceStrategy` whose methods construct real `Reduction` /\n * `GroupedQuery` instances and run the streaming reducer protocol.\n *\n * This module is only reachable through the `@noy-db/hub/reduce`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { Reduction, reduceRecords } from './reduction.js'\nimport type { ReduceSpec, ReduceResult } from './reduction.js'\nimport { GroupedQuery, GroupedQueryN } from './groupby.js'\nimport type { ReduceStrategy } from './strategy.js'\n\n/**\n * Build the default aggregate strategy. Pass into\n * `createNoydb({ reduceStrategy: withReduce() })` to light up\n * `.aggregate()` and `.groupBy()` on `Query` and `ScanBuilder`.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withReduce, sum, count } from '@noy-db/hub/reduce'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * reduceStrategy: withReduce(),\n * })\n *\n * const totals = invoices.query()\n * .where('status', '==', 'paid')\n * .groupBy('clientId')\n * .aggregate({ amount: sum('amount'), n: count() })\n * .run()\n * ```\n */\nexport function withReduce(): ReduceStrategy {\n return {\n aggregate(executeRecords, spec, upstreams) {\n return new Reduction(executeRecords, spec as unknown as ReduceSpec, upstreams) as unknown as Reduction<ReduceResult<typeof spec>>\n },\n groupBy(executeRecords, field, upstreams, dictLabelResolver, via) {\n return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, via)\n },\n groupByN(executeRecords, fields, upstreams, via) {\n return new GroupedQueryN(executeRecords, fields, upstreams, undefined, via)\n },\n async scanAggregate(iter, spec) {\n const collected: unknown[] = []\n for await (const record of iter) collected.push(record)\n return reduceRecords(collected, spec as unknown as ReduceSpec) as unknown as ReduceResult<typeof spec>\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,aAA6B;AAC3C,SAAO;AAAA,IACL,UAAU,gBAAgB,MAAM,WAAW;AACzC,aAAO,IAAI,UAAU,gBAAgB,MAA+B,SAAS;AAAA,IAC/E;AAAA,IACA,QAAQ,gBAAgB,OAAO,WAAW,mBAAmB,KAAK;AAChE,aAAO,IAAI,aAAa,gBAAgB,OAAO,WAAW,mBAAmB,GAAG;AAAA,IAClF;AAAA,IACA,SAAS,gBAAgB,QAAQ,WAAW,KAAK;AAC/C,aAAO,IAAI,cAAc,gBAAgB,QAAQ,WAAW,QAAW,GAAG;AAAA,IAC5E;AAAA,IACA,MAAM,cAAc,MAAM,MAAM;AAC9B,YAAM,YAAuB,CAAC;AAC9B,uBAAiB,UAAU,KAAM,WAAU,KAAK,MAAM;AACtD,aAAO,cAAc,WAAW,IAA6B;AAAA,IAC/D;AAAA,EACF;AACF;","names":[]}
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
persistClassifiedMarker,
|
|
3
3
|
persistSatelliteMarker,
|
|
4
4
|
persistSchemaIfNeeded
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H5GMROCB.js";
|
|
6
6
|
import "./chunk-SEU6QHH4.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-32467U5J.js";
|
|
8
|
+
import "./chunk-MMVQ3SUO.js";
|
|
9
|
+
import "./chunk-KCZAFDP5.js";
|
|
10
10
|
import "./chunk-5WLDZZ6S.js";
|
|
11
11
|
import "./chunk-5HSSTOOG.js";
|
|
12
12
|
import "./chunk-G4MFQXYX.js";
|
|
13
13
|
import "./chunk-LP7BEXCT.js";
|
|
14
14
|
import "./chunk-7U6AB7DZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DOZFU7OZ.js";
|
|
16
16
|
import "./chunk-6SYOHUHM.js";
|
|
17
17
|
import "./chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
persistSatelliteMarker,
|
|
21
21
|
persistSchemaIfNeeded
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=register-
|
|
23
|
+
//# sourceMappingURL=register-CEX7R7NE.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MaterializedViewRegistry,
|
|
3
3
|
wrapDbWithPredicates
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZGEFBDPR.js";
|
|
5
|
+
import "./chunk-MMVQ3SUO.js";
|
|
6
|
+
import "./chunk-KCZAFDP5.js";
|
|
7
7
|
import "./chunk-5WLDZZ6S.js";
|
|
8
8
|
import "./chunk-5HSSTOOG.js";
|
|
9
9
|
import "./chunk-G4MFQXYX.js";
|
|
10
10
|
import "./chunk-LP7BEXCT.js";
|
|
11
11
|
import "./chunk-7U6AB7DZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DOZFU7OZ.js";
|
|
13
13
|
import "./chunk-6SYOHUHM.js";
|
|
14
14
|
import "./chunk-PZ5AY32C.js";
|
|
15
15
|
export {
|
|
16
16
|
MaterializedViewRegistry,
|
|
17
17
|
wrapDbWithPredicates
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=registry-
|
|
19
|
+
//# sourceMappingURL=registry-DIKMRXUC.js.map
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
DerivationRegistry
|
|
3
3
|
} from "./chunk-2PDBYF2O.js";
|
|
4
4
|
import "./chunk-Z4D3YGAB.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-MMVQ3SUO.js";
|
|
6
|
+
import "./chunk-KCZAFDP5.js";
|
|
7
7
|
import "./chunk-5WLDZZ6S.js";
|
|
8
8
|
import "./chunk-5HSSTOOG.js";
|
|
9
9
|
import "./chunk-G4MFQXYX.js";
|
|
10
10
|
import "./chunk-LP7BEXCT.js";
|
|
11
11
|
import "./chunk-7U6AB7DZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DOZFU7OZ.js";
|
|
13
13
|
import "./chunk-6SYOHUHM.js";
|
|
14
14
|
import "./chunk-PZ5AY32C.js";
|
|
15
15
|
export {
|
|
16
16
|
DerivationRegistry
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=registry-
|
|
18
|
+
//# sourceMappingURL=registry-EWIB5NTI.js.map
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
listWithdrawalRequests,
|
|
6
6
|
rejectWithdrawal,
|
|
7
7
|
requestWithdrawal
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-XY6MNSAF.js";
|
|
9
|
+
import "./chunk-MLCTPWSO.js";
|
|
10
|
+
import "./chunk-WWBC4KLB.js";
|
|
11
|
+
import "./chunk-E7FSBI6I.js";
|
|
12
|
+
import "./chunk-ZHZ4PET5.js";
|
|
13
|
+
import "./chunk-MMVQ3SUO.js";
|
|
14
|
+
import "./chunk-KCZAFDP5.js";
|
|
15
15
|
import "./chunk-5WLDZZ6S.js";
|
|
16
16
|
import "./chunk-5HSSTOOG.js";
|
|
17
17
|
import "./chunk-G4MFQXYX.js";
|
|
18
18
|
import "./chunk-LP7BEXCT.js";
|
|
19
19
|
import "./chunk-7U6AB7DZ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-DOZFU7OZ.js";
|
|
21
21
|
import "./chunk-6SYOHUHM.js";
|
|
22
22
|
import "./chunk-PZ5AY32C.js";
|
|
23
23
|
export {
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
rejectWithdrawal,
|
|
29
29
|
requestWithdrawal
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=request-withdrawal-
|
|
31
|
+
//# sourceMappingURL=request-withdrawal-AAG57QO4.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTombstone
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KCZAFDP5.js";
|
|
4
4
|
import {
|
|
5
5
|
dualReadSealedSlot
|
|
6
6
|
} from "./chunk-5HSSTOOG.js";
|
|
7
7
|
import "./chunk-7U6AB7DZ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DOZFU7OZ.js";
|
|
9
9
|
import {
|
|
10
10
|
ClassifiedRevealError
|
|
11
11
|
} from "./chunk-6SYOHUHM.js";
|
|
@@ -35,4 +35,4 @@ async function revealSealedField(ctx, id, field) {
|
|
|
35
35
|
export {
|
|
36
36
|
revealSealedField
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=reveal-
|
|
38
|
+
//# sourceMappingURL=reveal-7OOT5XPD.js.map
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
publishRevocationListCore,
|
|
4
4
|
revokeDocCore,
|
|
5
5
|
unrevokeDocCore
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-VNJMLOQS.js";
|
|
7
|
+
import "./chunk-JGOKAZNB.js";
|
|
8
|
+
import "./chunk-MMVQ3SUO.js";
|
|
9
|
+
import "./chunk-KCZAFDP5.js";
|
|
10
10
|
import "./chunk-5WLDZZ6S.js";
|
|
11
11
|
import "./chunk-5HSSTOOG.js";
|
|
12
12
|
import "./chunk-G4MFQXYX.js";
|
|
13
13
|
import "./chunk-LP7BEXCT.js";
|
|
14
14
|
import "./chunk-7U6AB7DZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DOZFU7OZ.js";
|
|
16
16
|
import "./chunk-6SYOHUHM.js";
|
|
17
17
|
import "./chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
revokeDocCore,
|
|
22
22
|
unrevokeDocCore
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=revoke-
|
|
24
|
+
//# sourceMappingURL=revoke-U5LCIJMF.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NO_SEALED_RECORD
|
|
3
3
|
} from "../chunk-7LP7FFJ2.js";
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-MMVQ3SUO.js";
|
|
5
|
+
import "../chunk-KCZAFDP5.js";
|
|
6
6
|
import "../chunk-5WLDZZ6S.js";
|
|
7
7
|
import "../chunk-5HSSTOOG.js";
|
|
8
8
|
import "../chunk-G4MFQXYX.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
decrypt,
|
|
13
13
|
importCek
|
|
14
14
|
} from "../chunk-7U6AB7DZ.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-DOZFU7OZ.js";
|
|
16
16
|
import {
|
|
17
17
|
SealedRecordExpiredError,
|
|
18
18
|
SealedRecordMismatchError,
|
|
@@ -24,15 +24,15 @@ import "../chunk-PZ5AY32C.js";
|
|
|
24
24
|
function withSealedRecord() {
|
|
25
25
|
return {
|
|
26
26
|
async sealRecordToHost(ctx, collection, id, hostSealer, opts) {
|
|
27
|
-
const { sealRecordToHost } = await import("../enclave-
|
|
27
|
+
const { sealRecordToHost } = await import("../enclave-ZA7C3H2L.js");
|
|
28
28
|
return sealRecordToHost(ctx, collection, id, hostSealer, opts);
|
|
29
29
|
},
|
|
30
30
|
async revokeSealedRecord(ctx, collection, id, pid, opts) {
|
|
31
|
-
const { revokeSealedRecord } = await import("../enclave-
|
|
31
|
+
const { revokeSealedRecord } = await import("../enclave-ZA7C3H2L.js");
|
|
32
32
|
return revokeSealedRecord(ctx, collection, id, pid, opts);
|
|
33
33
|
},
|
|
34
34
|
async rotateRecordCek(ctx, collection, id) {
|
|
35
|
-
const { rotateRecordCek } = await import("../enclave-
|
|
35
|
+
const { rotateRecordCek } = await import("../enclave-ZA7C3H2L.js");
|
|
36
36
|
return rotateRecordCek(ctx, collection, id);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BROKER_COLLECTION,
|
|
3
3
|
ensureCollectionDEK
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZDFU34XY.js";
|
|
5
|
+
import "./chunk-7IQWHYL2.js";
|
|
6
6
|
import {
|
|
7
7
|
computeBrokerProof,
|
|
8
8
|
deriveBrokerProofBits,
|
|
9
9
|
openEnvelopeJson,
|
|
10
10
|
writeEnvelopeBody
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-MMVQ3SUO.js";
|
|
12
|
+
import "./chunk-KCZAFDP5.js";
|
|
13
13
|
import "./chunk-5WLDZZ6S.js";
|
|
14
14
|
import "./chunk-5HSSTOOG.js";
|
|
15
15
|
import "./chunk-G4MFQXYX.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-7U6AB7DZ.js";
|
|
21
21
|
import {
|
|
22
22
|
NOYDB_FORMAT_VERSION
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DOZFU7OZ.js";
|
|
24
24
|
import {
|
|
25
25
|
BrokerEnrolmentError,
|
|
26
26
|
BrokerProofError,
|
|
@@ -228,4 +228,4 @@ export {
|
|
|
228
228
|
mintStoreCredentials,
|
|
229
229
|
rotateSeed
|
|
230
230
|
};
|
|
231
|
-
//# sourceMappingURL=seed-
|
|
231
|
+
//# sourceMappingURL=seed-GVOI6QP6.js.map
|
package/dist/session/index.js
CHANGED
|
@@ -13,15 +13,18 @@ import {
|
|
|
13
13
|
revokeSession,
|
|
14
14
|
validateSessionPolicy
|
|
15
15
|
} from "../chunk-BAAUFCJK.js";
|
|
16
|
+
import {
|
|
17
|
+
NO_SESSION
|
|
18
|
+
} from "../chunk-VKQCVU2Z.js";
|
|
16
19
|
import "../chunk-ZJADGNYF.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-MMVQ3SUO.js";
|
|
21
|
+
import "../chunk-KCZAFDP5.js";
|
|
19
22
|
import "../chunk-5WLDZZ6S.js";
|
|
20
23
|
import "../chunk-5HSSTOOG.js";
|
|
21
24
|
import "../chunk-G4MFQXYX.js";
|
|
22
25
|
import "../chunk-LP7BEXCT.js";
|
|
23
26
|
import "../chunk-7U6AB7DZ.js";
|
|
24
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-DOZFU7OZ.js";
|
|
25
28
|
import {
|
|
26
29
|
SessionExpiredError,
|
|
27
30
|
SessionNotFoundError,
|
|
@@ -38,6 +41,7 @@ function withSession() {
|
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
export {
|
|
44
|
+
NO_SESSION,
|
|
41
45
|
PolicyEnforcer,
|
|
42
46
|
SessionExpiredError,
|
|
43
47
|
SessionNotFoundError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-party/session/active.ts"],"sourcesContent":["/**\n * Active session strategy — `withSession()` returns the real\n * implementation that wires `SessionPolicy` validation, the\n * `PolicyEnforcer`, and the global session-token registry into the\n * Noydb lifecycle.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withSession } from '@noy-db/hub/session'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * sessionPolicy: { idleTimeoutMs: 15 * 60_000 },\n * sessionStrategy: withSession(),\n * })\n * ```\n *\n * The factory delegates to the existing `session-policy.ts` and\n * `session.ts` modules. Splitting the import chain through this file\n * is what lets tsup tree-shake the ~495 LOC of policy + token code\n * out of the default bundle when no `withSession()` import is\n * present.\n *\n * Note: dev-unlock (`devUnlock`, `cancelDevUnlock`) is a separate\n * named import from `@noy-db/hub` and tree-shakes independently —\n * apps that don't import it never include it.\n *\n * @public\n */\n\nimport type { SessionStrategy } from './strategy.js'\nimport { createEnforcer, validateSessionPolicy } from './session-policy.js'\nimport { revokeAllSessions } from './session.js'\n\nexport function withSession(): SessionStrategy {\n return {\n validateSessionPolicy,\n createEnforcer,\n revokeAllSessions,\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-party/session/active.ts"],"sourcesContent":["/**\n * Active session strategy — `withSession()` returns the real\n * implementation that wires `SessionPolicy` validation, the\n * `PolicyEnforcer`, and the global session-token registry into the\n * Noydb lifecycle.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withSession } from '@noy-db/hub/session'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * sessionPolicy: { idleTimeoutMs: 15 * 60_000 },\n * sessionStrategy: withSession(),\n * })\n * ```\n *\n * The factory delegates to the existing `session-policy.ts` and\n * `session.ts` modules. Splitting the import chain through this file\n * is what lets tsup tree-shake the ~495 LOC of policy + token code\n * out of the default bundle when no `withSession()` import is\n * present.\n *\n * Note: dev-unlock (`devUnlock`, `cancelDevUnlock`) is a separate\n * named import from `@noy-db/hub` and tree-shakes independently —\n * apps that don't import it never include it.\n *\n * @public\n */\n\nimport type { SessionStrategy } from './strategy.js'\nimport { createEnforcer, validateSessionPolicy } from './session-policy.js'\nimport { revokeAllSessions } from './session.js'\n\nexport function withSession(): SessionStrategy {\n return {\n validateSessionPolicy,\n createEnforcer,\n revokeAllSessions,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,cAA+B;AAC7C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
package/dist/shadow/index.js
CHANGED
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
CollectionFrame,
|
|
3
3
|
VaultFrame
|
|
4
4
|
} from "../chunk-ONB627HU.js";
|
|
5
|
+
import {
|
|
6
|
+
NO_SHADOW
|
|
7
|
+
} from "../chunk-SMY5X46Z.js";
|
|
5
8
|
import "../chunk-6SYOHUHM.js";
|
|
6
9
|
import "../chunk-PZ5AY32C.js";
|
|
7
10
|
|
|
@@ -15,6 +18,7 @@ function withShadow() {
|
|
|
15
18
|
}
|
|
16
19
|
export {
|
|
17
20
|
CollectionFrame,
|
|
21
|
+
NO_SHADOW,
|
|
18
22
|
VaultFrame,
|
|
19
23
|
withShadow
|
|
20
24
|
};
|
package/dist/shadow/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-fork/shadow/active.ts"],"sourcesContent":["/**\n * Active shadow strategy — the only place `VaultFrame` is constructed.\n * Only reachable through `@noy-db/hub/shadow`.\n */\n\nimport { VaultFrame } from './vault-frame.js'\nimport type { ShadowStrategy } from './strategy.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport function withShadow(): ShadowStrategy {\n return {\n buildFrame(vault) { return new VaultFrame(vault as Vault) },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-fork/shadow/active.ts"],"sourcesContent":["/**\n * Active shadow strategy — the only place `VaultFrame` is constructed.\n * Only reachable through `@noy-db/hub/shadow`.\n */\n\nimport { VaultFrame } from './vault-frame.js'\nimport type { ShadowStrategy } from './strategy.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport function withShadow(): ShadowStrategy {\n return {\n buildFrame(vault) { return new VaultFrame(vault as Vault) },\n }\n}\n"],"mappings":";;;;;;;;;;;AASO,SAAS,aAA6B;AAC3C,SAAO;AAAA,IACL,WAAW,OAAO;AAAE,aAAO,IAAI,WAAW,KAAc;AAAA,IAAE;AAAA,EAC5D;AACF;","names":[]}
|