@noy-db/hub 0.4.0-pre.1 → 0.4.0-pre.11
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/README.md +3 -4
- package/dist/api-ZDKTWNBB.js +20 -0
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-LU2DTZTI.js → backup-2UX7PRM5.js} +13 -13
- package/dist/blobs/index.js +30 -15
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -12
- package/dist/broker/index.js.map +1 -1
- package/dist/cargo/index.js +53 -43
- package/dist/{chunk-YTGDPCPW.js → chunk-2J6UEN2V.js} +42 -18
- package/dist/chunk-2J6UEN2V.js.map +1 -0
- package/dist/{chunk-IY23KFNZ.js → chunk-35NMVJ7I.js} +3 -3
- package/dist/{chunk-S3BFKGET.js → chunk-3HUYRN24.js} +4 -4
- package/dist/chunk-3HUYRN24.js.map +1 -0
- package/dist/{walk-XS3PKM6I.js → chunk-3V3XR4S4.js} +4 -13
- package/dist/{walk-XS3PKM6I.js.map → chunk-3V3XR4S4.js.map} +1 -1
- package/dist/{chunk-RTEK4C4I.js → chunk-4JQK3L4V.js} +2 -2
- package/dist/{chunk-3ELCWU56.js → chunk-4ZKNC6A6.js} +2 -2
- package/dist/{chunk-VQNJ7UZL.js → chunk-55LKVALY.js} +106 -10
- package/dist/chunk-55LKVALY.js.map +1 -0
- package/dist/{chunk-VAIS3SOM.js → chunk-55LX6FSX.js} +2 -2
- package/dist/chunk-5D2ALSM5.js +19 -0
- package/dist/chunk-5D2ALSM5.js.map +1 -0
- package/dist/{chunk-6HPG2YNX.js → chunk-5DRROK5W.js} +2 -2
- package/dist/{chunk-S6Q37VGE.js → chunk-5GQEU4DN.js} +2 -2
- package/dist/chunk-5JOFWL4G.js +25 -0
- package/dist/chunk-5JOFWL4G.js.map +1 -0
- package/dist/{chunk-TOPYT5U5.js → chunk-63FE525P.js} +6 -6
- package/dist/chunk-6LJY7X5A.js +18 -0
- package/dist/chunk-6LJY7X5A.js.map +1 -0
- package/dist/{chunk-JVBO4SZL.js → chunk-6UBZ6I5Z.js} +2 -2
- package/dist/{chunk-BOKIKJJB.js → chunk-6ZNSB3H6.js} +5 -17
- package/dist/chunk-6ZNSB3H6.js.map +1 -0
- package/dist/{chunk-BMQWTQZ4.js → chunk-7YVBQJ7K.js} +13 -355
- package/dist/chunk-7YVBQJ7K.js.map +1 -0
- package/dist/{chunk-UFEVO57O.js → chunk-ABS7FMMD.js} +6 -6
- package/dist/chunk-AFHQATY4.js +47 -0
- package/dist/chunk-AFHQATY4.js.map +1 -0
- package/dist/{chunk-HOONYZY2.js → chunk-AKKRXT23.js} +7 -7
- package/dist/chunk-AKKRXT23.js.map +1 -0
- package/dist/{chunk-DDHM2TLX.js → chunk-AT2JJEKJ.js} +4 -4
- package/dist/chunk-AT2JJEKJ.js.map +1 -0
- package/dist/{chunk-M75ZZHSR.js → chunk-BLBAQRBM.js} +2 -2
- package/dist/{chunk-3SV2EPMN.js → chunk-BLCWSJLN.js} +88 -81
- package/dist/chunk-BLCWSJLN.js.map +1 -0
- package/dist/chunk-CADUYBQD.js +151 -0
- package/dist/chunk-CADUYBQD.js.map +1 -0
- package/dist/{chunk-G6EQYAL6.js → chunk-CI32CAFS.js} +5 -5
- package/dist/{chunk-FH52K7EG.js → chunk-CUZLNGD5.js} +2 -6
- package/dist/{chunk-FH52K7EG.js.map → chunk-CUZLNGD5.js.map} +1 -1
- package/dist/{chunk-2P7EGNKF.js → chunk-CXQW2NWO.js} +145 -3
- package/dist/chunk-CXQW2NWO.js.map +1 -0
- package/dist/{chunk-6B4DYGWO.js → chunk-DABACXEF.js} +3 -3
- package/dist/{chunk-F6T6L2UK.js → chunk-DMH3VZU5.js} +4 -4
- package/dist/chunk-DSDXAKIP.js +50 -0
- package/dist/chunk-DSDXAKIP.js.map +1 -0
- package/dist/{chunk-MQ6WOPSY.js → chunk-DZ2JXHWK.js} +5 -5
- package/dist/chunk-DZFQVICS.js +23 -0
- package/dist/chunk-DZFQVICS.js.map +1 -0
- package/dist/chunk-E23UGFVC.js +63 -0
- package/dist/chunk-E23UGFVC.js.map +1 -0
- package/dist/{chunk-UBNCR3YK.js → chunk-EE7UHLKH.js} +4 -4
- package/dist/chunk-EIPVYUEP.js +654 -0
- package/dist/chunk-EIPVYUEP.js.map +1 -0
- package/dist/{chunk-EGCRBCNA.js → chunk-EKRSCRNM.js} +3 -3
- package/dist/{chunk-YMUGBZN2.js → chunk-FQ5CHJR7.js} +1 -1
- package/dist/chunk-FQ5CHJR7.js.map +1 -0
- package/dist/{chunk-LB6OH6K2.js → chunk-FQZ6XTQ7.js} +17 -20
- package/dist/chunk-FQZ6XTQ7.js.map +1 -0
- package/dist/{chunk-IRQY7IR5.js → chunk-FRMPM7WG.js} +4 -4
- package/dist/{chunk-DVUZMT2W.js → chunk-G2JUIDFA.js} +9 -9
- package/dist/{chunk-DVUZMT2W.js.map → chunk-G2JUIDFA.js.map} +1 -1
- package/dist/{chunk-RND5ZPNP.js → chunk-G6WWZNJP.js} +13 -13
- package/dist/chunk-G6WWZNJP.js.map +1 -0
- package/dist/chunk-GJW4HX2O.js +1 -0
- package/dist/{chunk-T6GU5PPZ.js → chunk-GU3IP74F.js} +6 -6
- package/dist/{chunk-5OI6BR4H.js → chunk-GWWOGNBK.js} +308 -18
- package/dist/chunk-GWWOGNBK.js.map +1 -0
- package/dist/{chunk-UNCOC7QH.js → chunk-H2GPHUZD.js} +12 -13
- package/dist/chunk-H2GPHUZD.js.map +1 -0
- package/dist/{chunk-7CI6CP7Z.js → chunk-HMU5P6RL.js} +5 -5
- package/dist/chunk-HMU5P6RL.js.map +1 -0
- package/dist/{chunk-YJV2UZ7H.js → chunk-I5GEJX3R.js} +5 -5
- package/dist/chunk-I5GEJX3R.js.map +1 -0
- package/dist/{chunk-GWKAVKHI.js → chunk-IG6KUWBX.js} +2 -2
- package/dist/chunk-IG6KUWBX.js.map +1 -0
- package/dist/{chunk-MTQPRQHB.js → chunk-IPUG56GJ.js} +15 -5
- package/dist/{chunk-MTQPRQHB.js.map → chunk-IPUG56GJ.js.map} +1 -1
- package/dist/{chunk-SMIRGMS7.js → chunk-IXNCZTWA.js} +2 -2
- package/dist/{chunk-RM2XV574.js → chunk-IXTSNGYY.js} +3 -3
- package/dist/{chunk-KUPKLSX5.js → chunk-IYZISPGD.js} +7 -5
- package/dist/chunk-IYZISPGD.js.map +1 -0
- package/dist/{chunk-SMGEYW6G.js → chunk-JDOMW53O.js} +26 -16
- package/dist/chunk-JDOMW53O.js.map +1 -0
- package/dist/{chunk-PK6QCH2C.js → chunk-JJZGIE4U.js} +6 -5
- package/dist/{chunk-DRWBEDYO.js → chunk-JYJFGD2H.js} +2 -2
- package/dist/{chunk-TAGR72IR.js → chunk-KRCBZYTZ.js} +26 -177
- package/dist/chunk-KRCBZYTZ.js.map +1 -0
- package/dist/{chunk-HPUWOVR7.js → chunk-L2DGWBCT.js} +14 -14
- package/dist/chunk-L2DGWBCT.js.map +1 -0
- package/dist/{chunk-VEALDPHW.js → chunk-L3YYLT4E.js} +15 -2
- package/dist/chunk-L3YYLT4E.js.map +1 -0
- package/dist/{chunk-A7JJLVGH.js → chunk-LNPUSMZL.js} +29 -31
- package/dist/chunk-LNPUSMZL.js.map +1 -0
- package/dist/{chunk-KUIB4B5Q.js → chunk-LNZKOUJR.js} +2 -2
- package/dist/{chunk-IM3QVF53.js → chunk-MBKVNOJS.js} +6 -6
- package/dist/chunk-MCHBCNCE.js +367 -0
- package/dist/chunk-MCHBCNCE.js.map +1 -0
- package/dist/{chunk-VCBHAE4R.js → chunk-MHMLXJ3I.js} +2 -2
- package/dist/chunk-MHMLXJ3I.js.map +1 -0
- package/dist/{chunk-WNGGJWF7.js → chunk-MSMJJB4J.js} +2 -2
- package/dist/chunk-MSMJJB4J.js.map +1 -0
- package/dist/{chunk-T36RFODW.js → chunk-MXUT7FTE.js} +2 -2
- package/dist/chunk-MXUT7FTE.js.map +1 -0
- package/dist/{chunk-BGK233EA.js → chunk-N4BBNYIB.js} +11 -9
- package/dist/chunk-N4BBNYIB.js.map +1 -0
- package/dist/{chunk-3PF6CRDT.js → chunk-NFIBXF4V.js} +1082 -1583
- package/dist/chunk-NFIBXF4V.js.map +1 -0
- package/dist/{chunk-LOF2W3JU.js → chunk-NFNJLRY7.js} +368 -52
- package/dist/chunk-NFNJLRY7.js.map +1 -0
- package/dist/{chunk-N6WF5PKC.js → chunk-NFZGZ4AK.js} +2 -2
- package/dist/{chunk-JRBNCUNT.js → chunk-NGSJZFGL.js} +21 -4
- package/dist/chunk-NGSJZFGL.js.map +1 -0
- package/dist/chunk-NJ4DYYO5.js +81 -0
- package/dist/chunk-NJ4DYYO5.js.map +1 -0
- package/dist/{chunk-2IALOXZS.js → chunk-NM5UYF6Q.js} +2 -2
- package/dist/chunk-NM5UYF6Q.js.map +1 -0
- package/dist/{chunk-JBBSYJHP.js → chunk-NYEFP7DY.js} +4 -4
- package/dist/chunk-NYEFP7DY.js.map +1 -0
- package/dist/{chunk-CCOP5XDW.js → chunk-NZ24MX4J.js} +8 -46
- package/dist/chunk-NZ24MX4J.js.map +1 -0
- package/dist/{chunk-KWVJAOIN.js → chunk-OLEPKFTW.js} +4 -4
- package/dist/chunk-OLEPKFTW.js.map +1 -0
- package/dist/{chunk-OF75ACKS.js → chunk-PEATRIYJ.js} +9 -9
- package/dist/chunk-PEOZ34EM.js +13 -0
- package/dist/chunk-PEOZ34EM.js.map +1 -0
- package/dist/{chunk-UC2ETWF3.js → chunk-PTHKZWEH.js} +2 -14
- package/dist/{chunk-UC2ETWF3.js.map → chunk-PTHKZWEH.js.map} +1 -1
- package/dist/chunk-PVEWA2DU.js +23 -0
- package/dist/chunk-PVEWA2DU.js.map +1 -0
- package/dist/{chunk-LSASLXGC.js → chunk-QBAC3GXA.js} +1 -1
- package/dist/chunk-QBAC3GXA.js.map +1 -0
- package/dist/{chunk-RDXW3OBQ.js → chunk-QD46HPZG.js} +2 -2
- package/dist/chunk-QD46HPZG.js.map +1 -0
- package/dist/{chunk-N55W7KUL.js → chunk-QDIH2744.js} +2 -2
- package/dist/{chunk-6HY2X62D.js → chunk-QJNCB5SK.js} +2 -2
- package/dist/{chunk-4BRCIYFG.js → chunk-QX76XVQH.js} +6 -6
- package/dist/chunk-QX76XVQH.js.map +1 -0
- package/dist/{chunk-W2OG6JOL.js → chunk-QZWTRENR.js} +24 -7
- package/dist/chunk-QZWTRENR.js.map +1 -0
- package/dist/{chunk-6NQMXTYC.js → chunk-RO5NM6UI.js} +2 -2
- package/dist/chunk-RO5NM6UI.js.map +1 -0
- package/dist/chunk-SGDPRCC4.js +1075 -0
- package/dist/chunk-SGDPRCC4.js.map +1 -0
- package/dist/{chunk-2PCAVW2I.js → chunk-SHEEBRZ4.js} +2 -2
- package/dist/chunk-SMY5X46Z.js +14 -0
- package/dist/chunk-SMY5X46Z.js.map +1 -0
- package/dist/{chunk-ISMV2QVG.js → chunk-TG634KCO.js} +11 -2
- package/dist/chunk-TG634KCO.js.map +1 -0
- package/dist/{chunk-J6Q7UVQE.js → chunk-TUXQSFHZ.js} +4 -16
- package/dist/{chunk-J6Q7UVQE.js.map → chunk-TUXQSFHZ.js.map} +1 -1
- package/dist/{chunk-GULTLPFB.js → chunk-UADPR6F4.js} +3 -3
- package/dist/{chunk-GULTLPFB.js.map → chunk-UADPR6F4.js.map} +1 -1
- package/dist/{chunk-ZEQWCBCM.js → chunk-UDHBXYGG.js} +27 -5
- package/dist/chunk-UDHBXYGG.js.map +1 -0
- package/dist/{chunk-RA5VTXXG.js → chunk-V6UQZA2H.js} +2 -2
- package/dist/chunk-VG2ZSFYD.js +32 -0
- package/dist/chunk-VG2ZSFYD.js.map +1 -0
- package/dist/chunk-VKQCVU2Z.js +21 -0
- package/dist/chunk-VKQCVU2Z.js.map +1 -0
- package/dist/{chunk-QDPZWTN2.js → chunk-W3G5REIU.js} +2 -2
- package/dist/{chunk-WEYZTLXN.js → chunk-W3L64Y3J.js} +2 -2
- package/dist/{chunk-ONTBCHCP.js → chunk-W66AM5IB.js} +2 -2
- package/dist/chunk-W66AM5IB.js.map +1 -0
- package/dist/{chunk-A5BDDEXK.js → chunk-WBKZUO5V.js} +26 -43
- package/dist/chunk-WBKZUO5V.js.map +1 -0
- package/dist/{chunk-CBSY2N76.js → chunk-WLXMTYGO.js} +2 -2
- package/dist/{chunk-3U3FBR7O.js → chunk-X3F5YJG2.js} +2 -2
- package/dist/{chunk-GQNGCEP5.js → chunk-X45JYIAY.js} +3 -3
- package/dist/chunk-X45JYIAY.js.map +1 -0
- package/dist/{chunk-6XE5TMPR.js → chunk-X4MVWPHV.js} +3 -3
- package/dist/chunk-X4MVWPHV.js.map +1 -0
- package/dist/chunk-XZHEOSQ2.js +16 -0
- package/dist/chunk-XZHEOSQ2.js.map +1 -0
- package/dist/chunk-Y2NBBT6K.js +18 -0
- package/dist/chunk-Y2NBBT6K.js.map +1 -0
- package/dist/{chunk-DDATL6PU.js → chunk-Y2NJBNX3.js} +8 -8
- package/dist/{chunk-DDATL6PU.js.map → chunk-Y2NJBNX3.js.map} +1 -1
- package/dist/chunk-YMUFFJCO.js +23 -0
- package/dist/chunk-YMUFFJCO.js.map +1 -0
- package/dist/{chunk-O7WJ47EF.js → chunk-YWWQM7KP.js} +5 -14
- package/dist/chunk-YWWQM7KP.js.map +1 -0
- package/dist/{chunk-7O3AYBC7.js → chunk-YZJSJOUI.js} +235 -65
- package/dist/chunk-YZJSJOUI.js.map +1 -0
- package/dist/{chunk-5WZXVULX.js → chunk-ZTLOXFPB.js} +2 -2
- package/dist/chunk-ZTLOXFPB.js.map +1 -0
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-WQVIJAW2.js → classified-marker-7PKJBFCG.js} +3 -3
- package/dist/collection-facade-6I5K5IOD.js +45 -0
- package/dist/{computed-DSMPXG2Y.js → computed-AB45PS4V.js} +3 -3
- package/dist/consent/index.js +13 -9
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +37 -0
- package/dist/crdt/index.js +4 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/custody/index.js +26 -0
- package/dist/{dead-filter-2A7IAJ3D.js → dead-filter-FL3WIUZS.js} +2 -2
- package/dist/{chunk-GYYCX5K6.js → delegation-QXZ4MPPH.js} +12 -6
- package/dist/{chunk-GYYCX5K6.js.map → delegation-QXZ4MPPH.js.map} +1 -1
- package/dist/derivations/index.js +12 -12
- package/dist/derive-VGS7FKE3.js +22 -0
- package/dist/directory/index.js +46 -0
- package/dist/dispatch-EGGC7UD7.js +72 -0
- package/dist/dispatch-EGGC7UD7.js.map +1 -0
- package/dist/dispatch-GDSTUTVP.js +194 -0
- package/dist/dispatch-GDSTUTVP.js.map +1 -0
- package/dist/{enclave-7MW6ZGXW.js → enclave-SPEEDYZ4.js} +11 -11
- package/dist/executor-IEBLTBCW.js +9 -0
- package/dist/executor-OTF556PL.js +28 -0
- package/dist/executor-RM7XWQDU.js +9 -0
- package/dist/export-accessible-P42BQ4PB.js +23 -0
- package/dist/extract-partition-TCYXRWBN.js +38 -0
- package/dist/{fanout-sidecar-WDYQ77VB.js → fanout-sidecar-SSMRSC2L.js} +9 -9
- package/dist/find-OZMTRIK3.js +11 -0
- package/dist/forget/index.js +11 -11
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +6 -6
- package/dist/history/index.js +16 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +16 -14
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +42 -42
- package/dist/index.js +330 -2106
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +4 -2
- package/dist/indexing/index.js.map +1 -1
- package/dist/introspection/index.js +28 -0
- package/dist/issue-FCKN5O6C.js +19 -0
- package/dist/kernel/best-effort-revert.d.ts +9 -1
- package/dist/kernel/collection-config.d.ts +12 -70
- package/dist/kernel/collection.d.ts +11 -23
- package/dist/kernel/enclave/crypto.d.ts +8 -8
- package/dist/kernel/enclave/index.d.ts +3 -3
- package/dist/kernel/errors.d.ts +41 -22
- package/dist/kernel/lazy.d.ts +30 -0
- package/dist/kernel/noydb.d.ts +81 -124
- 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/sync-policy.d.ts +76 -4
- package/dist/kernel/types.d.ts +146 -86
- package/dist/kernel/validation.d.ts +33 -33
- package/dist/kernel/vault.d.ts +41 -229
- package/dist/kernel/via/dispatch.d.ts +7 -0
- package/dist/{ledger-33BC4TR7.js → ledger-6XBEVWYP.js} +11 -11
- package/dist/liberate-CYUOS4NC.js +24 -0
- package/dist/{link-set-QK22TDEX.js → link-set-NK6L2A5S.js} +11 -11
- package/dist/materialized-views/index.js +22 -19
- package/dist/money/index.js +31 -0
- package/dist/noydb-FZZIMLCI.js +81 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +15 -13
- package/dist/pod/index.js +26 -12
- package/dist/{policy-NAHB2TUT.js → policy/index.js} +6 -6
- package/dist/port/with/archive-strategy.d.ts +31 -0
- package/dist/port/with/blob-strategy.d.ts +15 -5
- package/dist/port/with/collection-options.d.ts +171 -0
- package/dist/port/with/collection-registries.d.ts +62 -0
- package/dist/port/with/strategies.d.ts +134 -0
- package/dist/port/with/team-strategy.d.ts +3 -2
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-JVTMJ6OW.js → post-register-VFIYISUK.js} +6 -6
- package/dist/query/index.js +6 -46
- package/dist/{aggregate → reduce}/index.js +24 -17
- package/dist/reduce/index.js.map +1 -0
- package/dist/register-UKU2J6MN.js +25 -0
- package/dist/registry-2VCWVHZS.js +19 -0
- package/dist/registry-7Y5WF7GS.js +9 -0
- package/dist/{registry-VW6P6A3J.js → registry-BWD2ED52.js} +2 -2
- package/dist/registry-DTWRJLSF.js +18 -0
- package/dist/request-withdrawal-JYDZ5XY2.js +31 -0
- package/dist/{reveal-LGBOM2BO.js → reveal-CL2BCW6A.js} +6 -6
- package/dist/revoke-2TSAD2T4.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +26 -0
- package/dist/sealed-record/index.js +12 -12
- package/dist/search/index.js +36 -0
- package/dist/{seed-PWK45HDF.js → seed-NUVJEL7T.js} +12 -12
- package/dist/seed-NUVJEL7T.js.map +1 -0
- package/dist/sequence/index.js +30 -0
- package/dist/session/index.js +13 -9
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +6 -2
- package/dist/shadow/index.js.map +1 -1
- package/dist/signer-K7Z2EOMG.js +25 -0
- package/dist/snapshots/index.js +14 -10
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-FJED42DM.js → stale-A4J26OIC.js} +11 -10
- package/dist/storage-YVHZUISN.js +23 -0
- package/dist/store/index.js +22 -0
- package/dist/{store-coordination-provider-APODTV4W.js → store-coordination-provider-EWRZL7XF.js} +3 -3
- package/dist/sync/index.js +15 -12
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +33 -48
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/{tx → transactions}/index.js +7 -3
- package/dist/transactions/index.js.map +1 -0
- package/dist/util/index.js +1 -1
- package/dist/{verify-26Y5GNMK.js → verify-7XWHJWUN.js} +5 -5
- package/dist/via/blob/active.d.ts +23 -7
- package/dist/via/blob/binding.d.ts +1 -1
- package/dist/via/blob/index.d.ts +7 -1
- 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-P5D6CF4V.js +21 -0
- package/dist/with-audit/consent/index.d.ts +2 -0
- package/dist/with-audit/forget/active.d.ts +3 -3
- package/dist/with-audit/forget/index.d.ts +6 -5
- package/dist/with-audit/forget/strategy.d.ts +3 -3
- package/dist/with-audit/guards/executor.d.ts +4 -4
- package/dist/with-audit/guards/immutable-guard.d.ts +3 -3
- package/dist/with-audit/guards/index.d.ts +1 -1
- package/dist/with-audit/guards/registry.d.ts +3 -3
- package/dist/with-audit/guards/transition-guard.d.ts +3 -3
- package/dist/with-audit/guards/types.d.ts +10 -10
- package/dist/with-audit/guards/with-guard.d.ts +2 -2
- package/dist/with-audit/periods/index.d.ts +2 -0
- package/dist/with-audit/periods/vault-facade.d.ts +6 -0
- package/dist/with-audit/portability/export-accessible.d.ts +4 -4
- package/dist/with-audit/portability/request-withdrawal.d.ts +3 -3
- package/dist/with-audit/portability/withdraw-accessible.d.ts +2 -2
- package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
- package/dist/with-audit/tiers/index.d.ts +1 -0
- package/dist/with-cargo/adopt-partition.d.ts +7 -7
- package/dist/{legacy/kernel.d.ts → with-cargo/floor.d.ts} +4 -4
- package/dist/with-cargo/index.d.ts +9 -2
- package/dist/with-commit/crdt/index.d.ts +2 -0
- package/dist/with-commit/history/index.d.ts +2 -0
- package/dist/with-commit/history/time-machine.d.ts +2 -2
- package/dist/with-commit/numbering/descriptor.d.ts +16 -6
- package/dist/with-commit/tx/active.d.ts +5 -5
- package/dist/with-commit/tx/index.d.ts +2 -2
- package/dist/with-commit/tx/invariants.d.ts +1 -1
- package/dist/with-commit/tx/strategy.d.ts +3 -3
- package/dist/with-fork/shadow/index.d.ts +2 -0
- package/dist/with-fork/snapshots/active.d.ts +2 -2
- package/dist/with-fork/snapshots/index.d.ts +3 -1
- package/dist/with-fork/snapshots/noydb-facade.d.ts +3 -3
- package/dist/with-fork/snapshots/strategy.d.ts +2 -2
- package/dist/with-formula/derivations/dispatch.d.ts +98 -0
- package/dist/with-formula/derivations/executor.d.ts +2 -2
- package/dist/with-formula/derivations/index.d.ts +4 -1
- package/dist/with-formula/derivations/registry.d.ts +3 -3
- package/dist/with-formula/derivations/stale.d.ts +2 -2
- package/dist/with-formula/derivations/types.d.ts +3 -3
- package/dist/with-formula/derivations/with-derivation.d.ts +2 -2
- package/dist/with-formula/derivations/with-rollup.d.ts +15 -8
- package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +3 -3
- package/dist/with-formula/materialized-views/dispatch.d.ts +75 -0
- package/dist/with-formula/materialized-views/index.d.ts +2 -1
- package/dist/with-formula/materialized-views/registry.d.ts +4 -4
- package/dist/with-formula/materialized-views/types.d.ts +11 -11
- package/dist/with-formula/materialized-views/with-materialized-view.d.ts +2 -2
- package/dist/with-formula/overlay-views/index.d.ts +1 -1
- package/dist/with-formula/overlay-views/registry.d.ts +4 -4
- package/dist/with-formula/overlay-views/types.d.ts +3 -3
- package/dist/with-formula/overlay-views/virtual-collection.d.ts +2 -2
- package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +2 -2
- package/dist/with-lookup/indexing/active.d.ts +5 -5
- package/dist/with-lookup/indexing/index.d.ts +3 -1
- package/dist/with-lookup/indexing/strategy.d.ts +3 -3
- package/dist/with-lookup/{aggregate → reduce}/active.d.ts +8 -8
- package/dist/with-lookup/{aggregate → reduce}/groupby.d.ts +21 -21
- package/dist/with-lookup/reduce/index.d.ts +34 -0
- package/dist/with-lookup/{aggregate → reduce}/reducers.d.ts +11 -12
- package/dist/with-lookup/{aggregate/aggregation.d.ts → reduce/reduction.d.ts} +21 -21
- package/dist/with-lookup/{aggregate → reduce}/strategy.d.ts +15 -15
- package/dist/with-lookup/search/build-docs.d.ts +7 -2
- package/dist/with-lookup/search/index.d.ts +1 -1
- package/dist/with-party/broker/index.d.ts +1 -0
- package/dist/with-party/broker/seed.d.ts +1 -1
- package/dist/with-party/custody/liberate.d.ts +3 -3
- package/dist/with-party/directory/cover/index.d.ts +1 -5
- package/dist/with-party/directory/cover/schema.d.ts +0 -6
- package/dist/with-party/directory/cover/storage.d.ts +0 -8
- package/dist/with-party/directory/cover/types.d.ts +0 -21
- package/dist/with-party/directory/index.d.ts +2 -0
- package/dist/with-party/session/dev-unlock.d.ts +2 -2
- package/dist/with-party/session/index.d.ts +2 -0
- package/dist/with-party/session/session.d.ts +2 -2
- package/dist/with-party/team/deed.d.ts +8 -8
- package/dist/with-party/team/index.d.ts +4 -7
- package/dist/with-party/team/keyring.d.ts +83 -35
- package/dist/with-party/team/{managed-passphrase.d.ts → managed-secret.d.ts} +27 -27
- package/dist/with-party/team/noydb-facade.d.ts +43 -42
- package/dist/with-party/team/peer-recover.d.ts +13 -13
- package/dist/with-party/team/recovery.d.ts +5 -5
- package/dist/with-party/team/rotate-recover.d.ts +30 -30
- package/dist/with-pod/bundle.d.ts +30 -32
- package/dist/with-pod/format.d.ts +2 -2
- package/dist/with-pod/index.d.ts +2 -1
- package/dist/with-shape/blobs/blob-compaction.d.ts +43 -3
- package/dist/with-shape/blobs/blob-pinning.d.ts +112 -0
- package/dist/with-shape/blobs/blob-set.d.ts +86 -2
- package/dist/with-shape/introspection/index.d.ts +6 -0
- package/dist/with-shape/schema-update/index.d.ts +1 -0
- package/dist/with-store/index.d.ts +3 -2
- package/dist/with-store/route-store.d.ts +1 -1
- package/dist/{with-party/team/sync-active.d.ts → with-sync/active.d.ts} +1 -1
- package/dist/{with-party/team/sync-credentials.d.ts → with-sync/credentials.d.ts} +3 -3
- package/dist/{with-party/team/sync.d.ts → with-sync/engine.d.ts} +5 -5
- package/dist/{with-party/sync → with-sync}/index.d.ts +4 -2
- package/dist/{with-party/team/sync-period-scope.d.ts → with-sync/period-scope.d.ts} +2 -2
- package/dist/{with-party/team → with-sync}/presence.d.ts +2 -2
- package/dist/{with-party/team/sync-strategy.d.ts → with-sync/strategy.d.ts} +6 -6
- package/dist/{with-party/team/sync-transaction.d.ts → with-sync/transaction.d.ts} +3 -3
- package/dist/withdraw-accessible-A2PWF5MZ.js +28 -0
- package/package.json +45 -36
- package/dist/aggregate/index.js.map +0 -1
- package/dist/api-IQFZJSQO.js +0 -20
- package/dist/as/index.js +0 -30
- package/dist/at/index.js +0 -1
- package/dist/bundle/index.js +0 -105
- package/dist/by/index.js +0 -11
- package/dist/chunk-2IALOXZS.js.map +0 -1
- package/dist/chunk-2MUZ3LY6.js +0 -205
- package/dist/chunk-2MUZ3LY6.js.map +0 -1
- package/dist/chunk-2P7EGNKF.js.map +0 -1
- package/dist/chunk-3PF6CRDT.js.map +0 -1
- package/dist/chunk-3SV2EPMN.js.map +0 -1
- package/dist/chunk-4BRCIYFG.js.map +0 -1
- package/dist/chunk-5OI6BR4H.js.map +0 -1
- package/dist/chunk-5WZXVULX.js.map +0 -1
- package/dist/chunk-6NQMXTYC.js.map +0 -1
- package/dist/chunk-6XE5TMPR.js.map +0 -1
- package/dist/chunk-7CI6CP7Z.js.map +0 -1
- package/dist/chunk-7O3AYBC7.js.map +0 -1
- package/dist/chunk-A5BDDEXK.js.map +0 -1
- package/dist/chunk-A7JJLVGH.js.map +0 -1
- package/dist/chunk-BGK233EA.js.map +0 -1
- package/dist/chunk-BMQWTQZ4.js.map +0 -1
- package/dist/chunk-BOKIKJJB.js.map +0 -1
- package/dist/chunk-CCOP5XDW.js.map +0 -1
- package/dist/chunk-CHFZDSE4.js +0 -1
- package/dist/chunk-DDHM2TLX.js.map +0 -1
- package/dist/chunk-GQNGCEP5.js.map +0 -1
- package/dist/chunk-GVZQ4NAM.js +0 -14
- package/dist/chunk-GVZQ4NAM.js.map +0 -1
- package/dist/chunk-GWKAVKHI.js.map +0 -1
- package/dist/chunk-HOONYZY2.js.map +0 -1
- package/dist/chunk-HPUWOVR7.js.map +0 -1
- package/dist/chunk-ISMV2QVG.js.map +0 -1
- package/dist/chunk-JBBSYJHP.js.map +0 -1
- package/dist/chunk-JRBNCUNT.js.map +0 -1
- package/dist/chunk-JZWWLLVY.js +0 -99
- package/dist/chunk-JZWWLLVY.js.map +0 -1
- package/dist/chunk-KUPKLSX5.js.map +0 -1
- package/dist/chunk-KWVJAOIN.js.map +0 -1
- package/dist/chunk-LB6OH6K2.js.map +0 -1
- package/dist/chunk-LB7FD65R.js +0 -163
- package/dist/chunk-LB7FD65R.js.map +0 -1
- package/dist/chunk-LOF2W3JU.js.map +0 -1
- package/dist/chunk-LSASLXGC.js.map +0 -1
- package/dist/chunk-O7WJ47EF.js.map +0 -1
- package/dist/chunk-ONTBCHCP.js.map +0 -1
- package/dist/chunk-PT37L5DV.js +0 -255
- package/dist/chunk-PT37L5DV.js.map +0 -1
- package/dist/chunk-RDXW3OBQ.js.map +0 -1
- package/dist/chunk-RND5ZPNP.js.map +0 -1
- package/dist/chunk-S3BFKGET.js.map +0 -1
- package/dist/chunk-SMGEYW6G.js.map +0 -1
- package/dist/chunk-T36RFODW.js.map +0 -1
- package/dist/chunk-TAGR72IR.js.map +0 -1
- package/dist/chunk-UNCOC7QH.js.map +0 -1
- package/dist/chunk-VCBHAE4R.js.map +0 -1
- package/dist/chunk-VEALDPHW.js.map +0 -1
- package/dist/chunk-VQNJ7UZL.js.map +0 -1
- package/dist/chunk-W2OG6JOL.js.map +0 -1
- package/dist/chunk-WNGGJWF7.js.map +0 -1
- package/dist/chunk-YJV2UZ7H.js.map +0 -1
- package/dist/chunk-YMUGBZN2.js.map +0 -1
- package/dist/chunk-YTGDPCPW.js.map +0 -1
- package/dist/chunk-ZEQWCBCM.js.map +0 -1
- package/dist/collection-facade-MJXSC3Q6.js +0 -44
- package/dist/cover-B5SJDHR3.js +0 -52
- package/dist/delegation-A5A75KQO.js +0 -25
- package/dist/derive-HJSMH7RA.js +0 -21
- package/dist/executor-AXE4XMLT.js +0 -26
- package/dist/executor-KGNLJD6M.js +0 -9
- package/dist/executor-XGIS6CR7.js +0 -9
- package/dist/export-accessible-VVBJM3MM.js +0 -23
- package/dist/extract-partition-LGGBTQET.js +0 -38
- package/dist/find-YS6XWB46.js +0 -11
- package/dist/in/index.js +0 -1
- package/dist/issue-LSR5PS6H.js +0 -19
- package/dist/legacy/bundle.d.ts +0 -30
- package/dist/liberate-GBSAYLPJ.js +0 -24
- package/dist/noydb-MTUBMWFE.js +0 -70
- package/dist/on/index.js +0 -17
- package/dist/port/as/index.d.ts +0 -26
- package/dist/port/at/index.d.ts +0 -18
- package/dist/port/in/index.d.ts +0 -21
- package/dist/port/on/index.d.ts +0 -27
- package/dist/port/ui/index.d.ts +0 -21
- package/dist/port/with/index.d.ts +0 -18
- package/dist/register-X462DNDM.js +0 -23
- package/dist/registry-3XMCT7MQ.js +0 -18
- package/dist/registry-KHD2I3M2.js +0 -19
- package/dist/registry-NPOWJHC4.js +0 -9
- package/dist/request-withdrawal-U7K3JTMY.js +0 -31
- package/dist/revoke-OCWDSWRQ.js +0 -24
- package/dist/seed-PWK45HDF.js.map +0 -1
- package/dist/signer-3YFBLZRN.js +0 -25
- package/dist/storage-W3GURVFU.js +0 -23
- package/dist/tx/index.js.map +0 -1
- package/dist/ui/index.js +0 -1
- package/dist/with/index.js +0 -31
- package/dist/with-lookup/aggregate/index.d.ts +0 -23
- package/dist/withdraw-accessible-Y3B2535F.js +0 -28
- /package/dist/{api-IQFZJSQO.js.map → api-ZDKTWNBB.js.map} +0 -0
- /package/dist/{backup-LU2DTZTI.js.map → backup-2UX7PRM5.js.map} +0 -0
- /package/dist/{chunk-IY23KFNZ.js.map → chunk-35NMVJ7I.js.map} +0 -0
- /package/dist/{chunk-RTEK4C4I.js.map → chunk-4JQK3L4V.js.map} +0 -0
- /package/dist/{chunk-3ELCWU56.js.map → chunk-4ZKNC6A6.js.map} +0 -0
- /package/dist/{chunk-VAIS3SOM.js.map → chunk-55LX6FSX.js.map} +0 -0
- /package/dist/{chunk-6HPG2YNX.js.map → chunk-5DRROK5W.js.map} +0 -0
- /package/dist/{chunk-S6Q37VGE.js.map → chunk-5GQEU4DN.js.map} +0 -0
- /package/dist/{chunk-TOPYT5U5.js.map → chunk-63FE525P.js.map} +0 -0
- /package/dist/{chunk-JVBO4SZL.js.map → chunk-6UBZ6I5Z.js.map} +0 -0
- /package/dist/{chunk-UFEVO57O.js.map → chunk-ABS7FMMD.js.map} +0 -0
- /package/dist/{chunk-M75ZZHSR.js.map → chunk-BLBAQRBM.js.map} +0 -0
- /package/dist/{chunk-G6EQYAL6.js.map → chunk-CI32CAFS.js.map} +0 -0
- /package/dist/{chunk-6B4DYGWO.js.map → chunk-DABACXEF.js.map} +0 -0
- /package/dist/{chunk-F6T6L2UK.js.map → chunk-DMH3VZU5.js.map} +0 -0
- /package/dist/{chunk-MQ6WOPSY.js.map → chunk-DZ2JXHWK.js.map} +0 -0
- /package/dist/{chunk-UBNCR3YK.js.map → chunk-EE7UHLKH.js.map} +0 -0
- /package/dist/{chunk-EGCRBCNA.js.map → chunk-EKRSCRNM.js.map} +0 -0
- /package/dist/{chunk-IRQY7IR5.js.map → chunk-FRMPM7WG.js.map} +0 -0
- /package/dist/{as/index.js.map → chunk-GJW4HX2O.js.map} +0 -0
- /package/dist/{chunk-T6GU5PPZ.js.map → chunk-GU3IP74F.js.map} +0 -0
- /package/dist/{chunk-SMIRGMS7.js.map → chunk-IXNCZTWA.js.map} +0 -0
- /package/dist/{chunk-RM2XV574.js.map → chunk-IXTSNGYY.js.map} +0 -0
- /package/dist/{chunk-PK6QCH2C.js.map → chunk-JJZGIE4U.js.map} +0 -0
- /package/dist/{chunk-DRWBEDYO.js.map → chunk-JYJFGD2H.js.map} +0 -0
- /package/dist/{chunk-KUIB4B5Q.js.map → chunk-LNZKOUJR.js.map} +0 -0
- /package/dist/{chunk-IM3QVF53.js.map → chunk-MBKVNOJS.js.map} +0 -0
- /package/dist/{chunk-N6WF5PKC.js.map → chunk-NFZGZ4AK.js.map} +0 -0
- /package/dist/{chunk-OF75ACKS.js.map → chunk-PEATRIYJ.js.map} +0 -0
- /package/dist/{chunk-N55W7KUL.js.map → chunk-QDIH2744.js.map} +0 -0
- /package/dist/{chunk-6HY2X62D.js.map → chunk-QJNCB5SK.js.map} +0 -0
- /package/dist/{chunk-2PCAVW2I.js.map → chunk-SHEEBRZ4.js.map} +0 -0
- /package/dist/{chunk-RA5VTXXG.js.map → chunk-V6UQZA2H.js.map} +0 -0
- /package/dist/{chunk-QDPZWTN2.js.map → chunk-W3G5REIU.js.map} +0 -0
- /package/dist/{chunk-WEYZTLXN.js.map → chunk-W3L64Y3J.js.map} +0 -0
- /package/dist/{chunk-CBSY2N76.js.map → chunk-WLXMTYGO.js.map} +0 -0
- /package/dist/{chunk-3U3FBR7O.js.map → chunk-X3F5YJG2.js.map} +0 -0
- /package/dist/{classified-marker-WQVIJAW2.js.map → classified-marker-7PKJBFCG.js.map} +0 -0
- /package/dist/{at/index.js.map → collection-facade-6I5K5IOD.js.map} +0 -0
- /package/dist/{bundle/index.js.map → computed-AB45PS4V.js.map} +0 -0
- /package/dist/{by → cover}/index.js.map +0 -0
- /package/dist/{in → custody}/index.js.map +0 -0
- /package/dist/{dead-filter-2A7IAJ3D.js.map → dead-filter-FL3WIUZS.js.map} +0 -0
- /package/dist/{chunk-CHFZDSE4.js.map → derive-VGS7FKE3.js.map} +0 -0
- /package/dist/{on → directory}/index.js.map +0 -0
- /package/dist/{collection-facade-MJXSC3Q6.js.map → enclave-SPEEDYZ4.js.map} +0 -0
- /package/dist/{computed-DSMPXG2Y.js.map → executor-IEBLTBCW.js.map} +0 -0
- /package/dist/{cover-B5SJDHR3.js.map → executor-OTF556PL.js.map} +0 -0
- /package/dist/{delegation-A5A75KQO.js.map → executor-RM7XWQDU.js.map} +0 -0
- /package/dist/{derive-HJSMH7RA.js.map → export-accessible-P42BQ4PB.js.map} +0 -0
- /package/dist/{enclave-7MW6ZGXW.js.map → extract-partition-TCYXRWBN.js.map} +0 -0
- /package/dist/{fanout-sidecar-WDYQ77VB.js.map → fanout-sidecar-SSMRSC2L.js.map} +0 -0
- /package/dist/{executor-AXE4XMLT.js.map → find-OZMTRIK3.js.map} +0 -0
- /package/dist/{ui → introspection}/index.js.map +0 -0
- /package/dist/{executor-KGNLJD6M.js.map → issue-FCKN5O6C.js.map} +0 -0
- /package/dist/{executor-XGIS6CR7.js.map → ledger-6XBEVWYP.js.map} +0 -0
- /package/dist/{export-accessible-VVBJM3MM.js.map → liberate-CYUOS4NC.js.map} +0 -0
- /package/dist/{extract-partition-LGGBTQET.js.map → link-set-NK6L2A5S.js.map} +0 -0
- /package/dist/{with → money}/index.js.map +0 -0
- /package/dist/{find-YS6XWB46.js.map → noydb-FZZIMLCI.js.map} +0 -0
- /package/dist/{issue-LSR5PS6H.js.map → policy/index.js.map} +0 -0
- /package/dist/{post-register-JVTMJ6OW.js.map → post-register-VFIYISUK.js.map} +0 -0
- /package/dist/{ledger-33BC4TR7.js.map → register-UKU2J6MN.js.map} +0 -0
- /package/dist/{liberate-GBSAYLPJ.js.map → registry-2VCWVHZS.js.map} +0 -0
- /package/dist/{link-set-QK22TDEX.js.map → registry-7Y5WF7GS.js.map} +0 -0
- /package/dist/{noydb-MTUBMWFE.js.map → registry-BWD2ED52.js.map} +0 -0
- /package/dist/{policy-NAHB2TUT.js.map → registry-DTWRJLSF.js.map} +0 -0
- /package/dist/{register-X462DNDM.js.map → request-withdrawal-JYDZ5XY2.js.map} +0 -0
- /package/dist/{reveal-LGBOM2BO.js.map → reveal-CL2BCW6A.js.map} +0 -0
- /package/dist/{registry-3XMCT7MQ.js.map → revoke-2TSAD2T4.js.map} +0 -0
- /package/dist/{registry-KHD2I3M2.js.map → schema-update/index.js.map} +0 -0
- /package/dist/{registry-NPOWJHC4.js.map → search/index.js.map} +0 -0
- /package/dist/{registry-VW6P6A3J.js.map → sequence/index.js.map} +0 -0
- /package/dist/{request-withdrawal-U7K3JTMY.js.map → signer-K7Z2EOMG.js.map} +0 -0
- /package/dist/{revoke-OCWDSWRQ.js.map → stale-A4J26OIC.js.map} +0 -0
- /package/dist/{signer-3YFBLZRN.js.map → storage-YVHZUISN.js.map} +0 -0
- /package/dist/{stale-FJED42DM.js.map → store/index.js.map} +0 -0
- /package/dist/{store-coordination-provider-APODTV4W.js.map → store-coordination-provider-EWRZL7XF.js.map} +0 -0
- /package/dist/{verify-26Y5GNMK.js.map → verify-7XWHJWUN.js.map} +0 -0
- /package/dist/{storage-W3GURVFU.js.map → walk-P5D6CF4V.js.map} +0 -0
- /package/dist/with-lookup/{aggregate → reduce}/canonical-key.d.ts +0 -0
- /package/dist/{with-party → with-sync}/tab-coordination.d.ts +0 -0
- /package/dist/{with-party → with-sync}/tab-write-relay.d.ts +0 -0
- /package/dist/{withdraw-accessible-Y3B2535F.js.map → withdraw-accessible-A2PWF5MZ.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;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The strategy bag (#838) — one resolved, immutable record of every opt-in
|
|
3
|
+
* service, built once in `createNoydb` and carried by reference down the
|
|
4
|
+
* spine: `Noydb` → `Vault` → `Collection`.
|
|
5
|
+
*
|
|
6
|
+
* ## Why this exists
|
|
7
|
+
*
|
|
8
|
+
* Threading one service through the spine used to cost ~10 mechanical edits
|
|
9
|
+
* with no logic in any of them: a field on `NoydbOptions`, a conditional
|
|
10
|
+
* spread at the `new Vault(` site, a field declaration + constructor
|
|
11
|
+
* parameter + constructor assignment on `Vault`, a forwarding spread into
|
|
12
|
+
* the collection options, a field + `?? NO_*` default in
|
|
13
|
+
* `collection-config.ts`, and a field + assignment on `Collection`. Nothing
|
|
14
|
+
* checked that a new service reached every layer, which is exactly how #834
|
|
15
|
+
* happened — one of three copies of the Vault option block had silently
|
|
16
|
+
* dropped six strategies, and a vault reached that way threw
|
|
17
|
+
* `*NotEnabledError` for services the caller had actually configured.
|
|
18
|
+
*
|
|
19
|
+
* Here the layers hold ONE field. Adding a service is a row in
|
|
20
|
+
* {@link StrategyBag} plus a row in {@link STRATEGY_DEFAULTS} — both in this
|
|
21
|
+
* file, and omitting either is a compile error rather than a bug that only
|
|
22
|
+
* shows up through one construction path.
|
|
23
|
+
*
|
|
24
|
+
* ## Every key always resolves
|
|
25
|
+
*
|
|
26
|
+
* There is no `undefined` in the bag. An un-opted-in service resolves to its
|
|
27
|
+
* `NO_*` stub, which is the tree-shake seam: the stubs are deliberately tiny
|
|
28
|
+
* modules on the `/with` port that the spine may import statically, while the
|
|
29
|
+
* real implementation arrives only when the consumer imports the service's
|
|
30
|
+
* subpath. Holding a stub costs a few hundred bytes; it does not pull the
|
|
31
|
+
* machinery in.
|
|
32
|
+
*
|
|
33
|
+
* Two services needed adjusting to fit that rule, both recorded here because
|
|
34
|
+
* the reasons are not obvious:
|
|
35
|
+
*
|
|
36
|
+
* - `archive` had no stub at all and was held as `ArchiveStrategy |
|
|
37
|
+
* undefined` behind a hand-rolled null gate. {@link NO_ARCHIVE} now stands
|
|
38
|
+
* in and throws on `.store` access — see `port/with/archive-strategy.ts`.
|
|
39
|
+
* - `lazy`'s floor is {@link IMPLICIT_LAZY}, not a no-op: an un-opted-in
|
|
40
|
+
* collection still gets a working LRU, it just warns. So its default row
|
|
41
|
+
* is a real strategy, which is why this table maps keys to defaults rather
|
|
42
|
+
* than assuming a `NO_*` naming convention.
|
|
43
|
+
*
|
|
44
|
+
* `coordinationStrategy` is deliberately NOT in the bag. It is a
|
|
45
|
+
* `CoordinationProvider`, not a service strategy — it has no `with*()`
|
|
46
|
+
* factory, no `NO_*` stub, and is resolved asynchronously from the store
|
|
47
|
+
* (`createDefaultCoordinationProvider`) rather than passed through. The
|
|
48
|
+
* completeness assertion at the bottom of this file excludes it by name so
|
|
49
|
+
* that the exclusion is explicit and survives future edits.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
import type { NoydbOptions } from '../../kernel/types.js';
|
|
54
|
+
import { type ReduceStrategy } from '../../with-lookup/reduce/strategy.js';
|
|
55
|
+
import { type AttestationStrategy } from '../../with-audit/attestation/strategy.js';
|
|
56
|
+
import { type BlobsStrategy } from './blob-strategy.js';
|
|
57
|
+
import { type BrokerStrategy } from './broker-strategy.js';
|
|
58
|
+
import { type CargoStrategy } from '../../with-cargo/strategy.js';
|
|
59
|
+
import { type ClassifiedStrategy } from './classified-strategy.js';
|
|
60
|
+
import { type ConsentStrategy } from '../../with-audit/consent/strategy.js';
|
|
61
|
+
import { type CrdtStrategy } from '../../with-commit/crdt/strategy.js';
|
|
62
|
+
import { type CustodyStrategy } from '../../with-party/custody/strategy.js';
|
|
63
|
+
import { type ForgetStrategy } from '../../with-audit/forget/strategy.js';
|
|
64
|
+
import { type HistoryStrategy } from '../../with-commit/history/strategy.js';
|
|
65
|
+
import { type I18nStrategy } from './i18n-strategy.js';
|
|
66
|
+
import { type IndexingStrategy } from '../../with-lookup/indexing/strategy.js';
|
|
67
|
+
import { type PeriodsStrategy } from '../../with-audit/periods/strategy.js';
|
|
68
|
+
import { type PortabilityStrategy } from '../../with-audit/portability/strategy.js';
|
|
69
|
+
import { type SealedRecordStrategy } from '../../with-audit/sealed-record/strategy.js';
|
|
70
|
+
import { type SearchStrategy } from '../../with-lookup/search/strategy.js';
|
|
71
|
+
import { type SequenceStrategy } from '../../with-commit/sequence/strategy.js';
|
|
72
|
+
import { type SessionStrategy } from '../../with-party/session/strategy.js';
|
|
73
|
+
import { type ShadowStrategy } from '../../with-fork/shadow/strategy.js';
|
|
74
|
+
import { type SnapshotsStrategy } from '../../with-fork/snapshots/strategy.js';
|
|
75
|
+
import { type SyncStrategy } from '../../with-sync/strategy.js';
|
|
76
|
+
import { type TeamStrategy } from './team-strategy.js';
|
|
77
|
+
import { type TiersStrategy } from '../../with-audit/tiers/strategy.js';
|
|
78
|
+
import { type TransactionsStrategy } from '../../with-commit/tx/strategy.js';
|
|
79
|
+
import { type LazyStrategy } from './lazy-strategy.js';
|
|
80
|
+
import type { ArchiveStrategy } from '../../with-fork/archive/index.js';
|
|
81
|
+
/**
|
|
82
|
+
* Every opt-in service, resolved. One field per service, never `undefined`.
|
|
83
|
+
*
|
|
84
|
+
* Keys drop the `Strategy` suffix the `createNoydb` option carries, so
|
|
85
|
+
* `searchStrategy: withSearch()` reads back as `strategies.search`. The
|
|
86
|
+
* completeness assertion below pins that correspondence.
|
|
87
|
+
*/
|
|
88
|
+
export interface StrategyBag {
|
|
89
|
+
readonly reduce: ReduceStrategy;
|
|
90
|
+
readonly archive: ArchiveStrategy;
|
|
91
|
+
readonly attestation: AttestationStrategy;
|
|
92
|
+
readonly blobs: BlobsStrategy;
|
|
93
|
+
readonly broker: BrokerStrategy;
|
|
94
|
+
readonly cargo: CargoStrategy;
|
|
95
|
+
readonly classified: ClassifiedStrategy;
|
|
96
|
+
readonly consent: ConsentStrategy;
|
|
97
|
+
readonly crdt: CrdtStrategy;
|
|
98
|
+
readonly custody: CustodyStrategy;
|
|
99
|
+
readonly forget: ForgetStrategy;
|
|
100
|
+
readonly history: HistoryStrategy;
|
|
101
|
+
readonly i18n: I18nStrategy;
|
|
102
|
+
readonly indexing: IndexingStrategy;
|
|
103
|
+
readonly lazy: LazyStrategy;
|
|
104
|
+
readonly periods: PeriodsStrategy;
|
|
105
|
+
readonly portability: PortabilityStrategy;
|
|
106
|
+
readonly sealedRecord: SealedRecordStrategy;
|
|
107
|
+
readonly search: SearchStrategy;
|
|
108
|
+
readonly sequence: SequenceStrategy;
|
|
109
|
+
readonly session: SessionStrategy;
|
|
110
|
+
readonly shadow: ShadowStrategy;
|
|
111
|
+
readonly snapshots: SnapshotsStrategy;
|
|
112
|
+
readonly sync: SyncStrategy;
|
|
113
|
+
readonly team: TeamStrategy;
|
|
114
|
+
readonly tiers: TiersStrategy;
|
|
115
|
+
readonly transactions: TransactionsStrategy;
|
|
116
|
+
}
|
|
117
|
+
/** The name of every service in the bag. */
|
|
118
|
+
export type StrategyKey = keyof StrategyBag;
|
|
119
|
+
/**
|
|
120
|
+
* The un-opted-in floor: what each service resolves to when the caller passed
|
|
121
|
+
* no `with*()` factory. Annotating this `StrategyBag` is what makes a missing
|
|
122
|
+
* row a compile error.
|
|
123
|
+
*/
|
|
124
|
+
export declare const STRATEGY_DEFAULTS: StrategyBag;
|
|
125
|
+
/**
|
|
126
|
+
* Build the bag from user options. Called ONCE, in `createNoydb` — every
|
|
127
|
+
* layer below shares the resulting reference.
|
|
128
|
+
*
|
|
129
|
+
* The two casts are the price of mapping `blob` ↔ `blobsStrategy` in a loop
|
|
130
|
+
* instead of writing 27 hand-copied lines; the correspondence they assume is
|
|
131
|
+
* proven at compile time by the assertion below, so a typo cannot survive a
|
|
132
|
+
* build.
|
|
133
|
+
*/
|
|
134
|
+
export declare function resolveStrategies(options: NoydbOptions): StrategyBag;
|
|
@@ -16,17 +16,18 @@
|
|
|
16
16
|
* argument from the strategy.
|
|
17
17
|
*
|
|
18
18
|
* Deliberately NOT gated (single-user primitives): owner keyring creation,
|
|
19
|
-
* unlock, `listUsers`, `updateUser`,
|
|
19
|
+
* unlock, `listUsers`, `updateUser`, secret rotate/recover, and the
|
|
20
20
|
* `createDeedOwner` free function (no createNoydb instance to gate against —
|
|
21
21
|
* the same carve-out as `liberateVault`).
|
|
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
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NO_PORTABILITY
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BLBAQRBM.js";
|
|
4
4
|
import {
|
|
5
5
|
PortabilityNotEnabledError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QZWTRENR.js";
|
|
7
7
|
import "../chunk-PZ5AY32C.js";
|
|
8
8
|
|
|
9
9
|
// src/with-audit/portability/active.ts
|
|
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-P42BQ4PB.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-A2PWF5MZ.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-JYDZ5XY2.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-JYDZ5XY2.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-JYDZ5XY2.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-JYDZ5XY2.js");
|
|
34
34
|
return rejectWithdrawal(vault, requestId, opts);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hashFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SHEEBRZ4.js";
|
|
4
4
|
import {
|
|
5
5
|
SatelliteConfigError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QZWTRENR.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
|
|
9
9
|
// src/with-shape/satellites/marker.ts
|
|
@@ -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-YVHZUISN.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-UKU2J6MN.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-VGS7FKE3.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-VFIYISUK.js.map
|
package/dist/query/index.js
CHANGED
|
@@ -4,43 +4,22 @@ import {
|
|
|
4
4
|
ScanBuilder,
|
|
5
5
|
buildLiveQuery,
|
|
6
6
|
executePlan
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-WBKZUO5V.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_JOIN_MAX_ROWS,
|
|
10
10
|
applyJoins,
|
|
11
11
|
resetJoinWarnings
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-V6UQZA2H.js";
|
|
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-TAGR72IR.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-GULTLPFB.js";
|
|
43
|
-
import "../chunk-JVBO4SZL.js";
|
|
44
23
|
import {
|
|
45
24
|
CrossJoinSourceUnknownError,
|
|
46
25
|
CrossJoinTooLargeError,
|
|
@@ -50,10 +29,9 @@ import {
|
|
|
50
29
|
IndexRequiredError,
|
|
51
30
|
IndexWriteFailureError,
|
|
52
31
|
JoinTooLargeError
|
|
53
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-QZWTRENR.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-KRCBZYTZ.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-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-UADPR6F4.js";
|
|
30
|
+
import "../chunk-6UBZ6I5Z.js";
|
|
31
|
+
import "../chunk-QZWTRENR.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":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
persistClassifiedMarker,
|
|
3
|
+
persistSatelliteMarker,
|
|
4
|
+
persistSchemaIfNeeded
|
|
5
|
+
} from "./chunk-NZ24MX4J.js";
|
|
6
|
+
import "./chunk-DSDXAKIP.js";
|
|
7
|
+
import "./chunk-6ZNSB3H6.js";
|
|
8
|
+
import "./chunk-Y2NBBT6K.js";
|
|
9
|
+
import "./chunk-DMH3VZU5.js";
|
|
10
|
+
import "./chunk-G2JUIDFA.js";
|
|
11
|
+
import "./chunk-W3L64Y3J.js";
|
|
12
|
+
import "./chunk-35NMVJ7I.js";
|
|
13
|
+
import "./chunk-NFZGZ4AK.js";
|
|
14
|
+
import "./chunk-QJNCB5SK.js";
|
|
15
|
+
import "./chunk-LP7BEXCT.js";
|
|
16
|
+
import "./chunk-AKKRXT23.js";
|
|
17
|
+
import "./chunk-QBAC3GXA.js";
|
|
18
|
+
import "./chunk-QZWTRENR.js";
|
|
19
|
+
import "./chunk-PZ5AY32C.js";
|
|
20
|
+
export {
|
|
21
|
+
persistClassifiedMarker,
|
|
22
|
+
persistSatelliteMarker,
|
|
23
|
+
persistSchemaIfNeeded
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=register-UKU2J6MN.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaterializedViewRegistry,
|
|
3
|
+
wrapDbWithPredicates
|
|
4
|
+
} from "./chunk-3HUYRN24.js";
|
|
5
|
+
import "./chunk-G2JUIDFA.js";
|
|
6
|
+
import "./chunk-W3L64Y3J.js";
|
|
7
|
+
import "./chunk-35NMVJ7I.js";
|
|
8
|
+
import "./chunk-NFZGZ4AK.js";
|
|
9
|
+
import "./chunk-QJNCB5SK.js";
|
|
10
|
+
import "./chunk-LP7BEXCT.js";
|
|
11
|
+
import "./chunk-AKKRXT23.js";
|
|
12
|
+
import "./chunk-QBAC3GXA.js";
|
|
13
|
+
import "./chunk-QZWTRENR.js";
|
|
14
|
+
import "./chunk-PZ5AY32C.js";
|
|
15
|
+
export {
|
|
16
|
+
MaterializedViewRegistry,
|
|
17
|
+
wrapDbWithPredicates
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=registry-2VCWVHZS.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DerivationRegistry
|
|
3
|
+
} from "./chunk-AT2JJEKJ.js";
|
|
4
|
+
import "./chunk-4ZKNC6A6.js";
|
|
5
|
+
import "./chunk-G2JUIDFA.js";
|
|
6
|
+
import "./chunk-W3L64Y3J.js";
|
|
7
|
+
import "./chunk-35NMVJ7I.js";
|
|
8
|
+
import "./chunk-NFZGZ4AK.js";
|
|
9
|
+
import "./chunk-QJNCB5SK.js";
|
|
10
|
+
import "./chunk-LP7BEXCT.js";
|
|
11
|
+
import "./chunk-AKKRXT23.js";
|
|
12
|
+
import "./chunk-QBAC3GXA.js";
|
|
13
|
+
import "./chunk-QZWTRENR.js";
|
|
14
|
+
import "./chunk-PZ5AY32C.js";
|
|
15
|
+
export {
|
|
16
|
+
DerivationRegistry
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=registry-DTWRJLSF.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WITHDRAWAL_REQUESTS_COLLECTION,
|
|
3
|
+
WithdrawalRequestError,
|
|
4
|
+
approveWithdrawal,
|
|
5
|
+
listWithdrawalRequests,
|
|
6
|
+
rejectWithdrawal,
|
|
7
|
+
requestWithdrawal
|
|
8
|
+
} from "./chunk-HMU5P6RL.js";
|
|
9
|
+
import "./chunk-I5GEJX3R.js";
|
|
10
|
+
import "./chunk-X45JYIAY.js";
|
|
11
|
+
import "./chunk-LNPUSMZL.js";
|
|
12
|
+
import "./chunk-TUXQSFHZ.js";
|
|
13
|
+
import "./chunk-G2JUIDFA.js";
|
|
14
|
+
import "./chunk-W3L64Y3J.js";
|
|
15
|
+
import "./chunk-35NMVJ7I.js";
|
|
16
|
+
import "./chunk-NFZGZ4AK.js";
|
|
17
|
+
import "./chunk-QJNCB5SK.js";
|
|
18
|
+
import "./chunk-LP7BEXCT.js";
|
|
19
|
+
import "./chunk-AKKRXT23.js";
|
|
20
|
+
import "./chunk-QBAC3GXA.js";
|
|
21
|
+
import "./chunk-QZWTRENR.js";
|
|
22
|
+
import "./chunk-PZ5AY32C.js";
|
|
23
|
+
export {
|
|
24
|
+
WITHDRAWAL_REQUESTS_COLLECTION,
|
|
25
|
+
WithdrawalRequestError,
|
|
26
|
+
approveWithdrawal,
|
|
27
|
+
listWithdrawalRequests,
|
|
28
|
+
rejectWithdrawal,
|
|
29
|
+
requestWithdrawal
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=request-withdrawal-JYDZ5XY2.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTombstone
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W3L64Y3J.js";
|
|
4
4
|
import {
|
|
5
5
|
dualReadSealedSlot
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NFZGZ4AK.js";
|
|
7
|
+
import "./chunk-AKKRXT23.js";
|
|
8
|
+
import "./chunk-QBAC3GXA.js";
|
|
9
9
|
import {
|
|
10
10
|
ClassifiedRevealError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QZWTRENR.js";
|
|
12
12
|
import "./chunk-PZ5AY32C.js";
|
|
13
13
|
|
|
14
14
|
// src/kernel/enclave/classify/reveal.ts
|
|
@@ -35,4 +35,4 @@ async function revealSealedField(ctx, id, field) {
|
|
|
35
35
|
export {
|
|
36
36
|
revealSealedField
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=reveal-
|
|
38
|
+
//# sourceMappingURL=reveal-CL2BCW6A.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getRevokedDocIdsCore,
|
|
3
|
+
publishRevocationListCore,
|
|
4
|
+
revokeDocCore,
|
|
5
|
+
unrevokeDocCore
|
|
6
|
+
} from "./chunk-63FE525P.js";
|
|
7
|
+
import "./chunk-CI32CAFS.js";
|
|
8
|
+
import "./chunk-G2JUIDFA.js";
|
|
9
|
+
import "./chunk-W3L64Y3J.js";
|
|
10
|
+
import "./chunk-35NMVJ7I.js";
|
|
11
|
+
import "./chunk-NFZGZ4AK.js";
|
|
12
|
+
import "./chunk-QJNCB5SK.js";
|
|
13
|
+
import "./chunk-LP7BEXCT.js";
|
|
14
|
+
import "./chunk-AKKRXT23.js";
|
|
15
|
+
import "./chunk-QBAC3GXA.js";
|
|
16
|
+
import "./chunk-QZWTRENR.js";
|
|
17
|
+
import "./chunk-PZ5AY32C.js";
|
|
18
|
+
export {
|
|
19
|
+
getRevokedDocIdsCore,
|
|
20
|
+
publishRevocationListCore,
|
|
21
|
+
revokeDocCore,
|
|
22
|
+
unrevokeDocCore
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=revoke-2TSAD2T4.js.map
|