@noy-db/hub 0.4.0-pre.0 → 0.4.0-pre.10
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-YPUEKIJC.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 +58 -29
- 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-IPLXE36W.js → chunk-3V3XR4S4.js} +4 -13
- package/dist/{walk-IPLXE36W.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-ZXEZCY6F.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-IK43HLDQ.js → chunk-7YVBQJ7K.js} +13 -355
- package/dist/chunk-7YVBQJ7K.js.map +1 -0
- package/dist/{chunk-VRBTNCM4.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-554KLAAN.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-WOM2HTML.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-U6JMEH2P.js → chunk-CXQW2NWO.js} +145 -3
- package/dist/chunk-CXQW2NWO.js.map +1 -0
- package/dist/{chunk-EO43ANYJ.js → chunk-DABACXEF.js} +3 -3
- package/dist/{chunk-CJ5KKU6X.js → chunk-DMH3VZU5.js} +4 -4
- package/dist/chunk-DSDXAKIP.js +50 -0
- package/dist/chunk-DSDXAKIP.js.map +1 -0
- package/dist/{chunk-WZSHL6DQ.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-Z4PD65VQ.js → chunk-EE7UHLKH.js} +4 -4
- package/dist/chunk-EIPVYUEP.js +654 -0
- package/dist/chunk-EIPVYUEP.js.map +1 -0
- package/dist/{chunk-RNG4VRP4.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-RFI7GGFO.js → chunk-FQZ6XTQ7.js} +17 -20
- package/dist/chunk-FQZ6XTQ7.js.map +1 -0
- package/dist/{chunk-MT62YSPZ.js → chunk-FRMPM7WG.js} +4 -4
- package/dist/{chunk-W4TCUGQR.js → chunk-G2JUIDFA.js} +13 -9
- package/dist/{chunk-W4TCUGQR.js.map → chunk-G2JUIDFA.js.map} +1 -1
- package/dist/{chunk-T3GY65MA.js → chunk-G6WWZNJP.js} +13 -13
- package/dist/chunk-G6WWZNJP.js.map +1 -0
- package/dist/chunk-GJW4HX2O.js +1 -0
- package/dist/{chunk-KS6SAVCZ.js → chunk-GU3IP74F.js} +6 -6
- package/dist/{chunk-UHNGNKLV.js → chunk-GWWOGNBK.js} +308 -18
- package/dist/chunk-GWWOGNBK.js.map +1 -0
- package/dist/{chunk-5PFOMHTB.js → chunk-H2GPHUZD.js} +12 -13
- package/dist/chunk-H2GPHUZD.js.map +1 -0
- package/dist/{chunk-H2KSZMIX.js → chunk-HMU5P6RL.js} +5 -5
- package/dist/chunk-HMU5P6RL.js.map +1 -0
- package/dist/{chunk-JFCV5QIK.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-LVGTA624.js → chunk-IPUG56GJ.js} +15 -5
- package/dist/{chunk-LVGTA624.js.map → chunk-IPUG56GJ.js.map} +1 -1
- package/dist/{chunk-SMIRGMS7.js → chunk-IXNCZTWA.js} +2 -2
- package/dist/{chunk-WQIYTNJV.js → chunk-IXTSNGYY.js} +3 -3
- package/dist/{chunk-WHXXI3W5.js → chunk-IYZISPGD.js} +7 -5
- package/dist/chunk-IYZISPGD.js.map +1 -0
- package/dist/{chunk-HQBM64EE.js → chunk-JDOMW53O.js} +145 -16
- package/dist/chunk-JDOMW53O.js.map +1 -0
- package/dist/{chunk-NCCBLYEB.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-DSBQODMZ.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-FXZDAV62.js → chunk-LNPUSMZL.js} +29 -31
- package/dist/chunk-LNPUSMZL.js.map +1 -0
- package/dist/{chunk-XJMBYYQK.js → chunk-LNZKOUJR.js} +2 -2
- package/dist/{chunk-R3BLCFD2.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-WG4QBZDN.js → chunk-N4BBNYIB.js} +11 -9
- package/dist/chunk-N4BBNYIB.js.map +1 -0
- package/dist/{chunk-PK6JIDQ4.js → chunk-NFIBXF4V.js} +1084 -1583
- package/dist/chunk-NFIBXF4V.js.map +1 -0
- package/dist/{chunk-VKCADNMR.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-NM5UYF6Q.js +24 -0
- 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-GDG5VVYG.js → chunk-NZ24MX4J.js} +8 -46
- package/dist/chunk-NZ24MX4J.js.map +1 -0
- package/dist/{chunk-IFJTPAQQ.js → chunk-OLEPKFTW.js} +4 -4
- package/dist/chunk-OLEPKFTW.js.map +1 -0
- package/dist/{chunk-THVIPWRF.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-VCTXU4AT.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-YZQOGE2L.js → chunk-QDIH2744.js} +2 -2
- package/dist/{chunk-6HY2X62D.js → chunk-QJNCB5SK.js} +2 -2
- package/dist/{chunk-IAO54J4R.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-XUW3PXHU.js → chunk-TUXQSFHZ.js} +4 -16
- package/dist/{chunk-XUW3PXHU.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-XTHCN77N.js → chunk-UDHBXYGG.js} +29 -19
- 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-A4FXFAKF.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-XDIAFPUM.js → chunk-WLXMTYGO.js} +2 -2
- package/dist/{chunk-RJ6K6K5M.js → chunk-X3F5YJG2.js} +2 -2
- package/dist/{chunk-WKGF2TJR.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-CZTLE22N.js → chunk-Y2NJBNX3.js} +8 -8
- package/dist/{chunk-CZTLE22N.js.map → chunk-Y2NJBNX3.js.map} +1 -1
- package/dist/{chunk-YTGDPCPW.js → chunk-Y6B6HVKC.js} +2 -2
- package/dist/chunk-YMUFFJCO.js +23 -0
- package/dist/chunk-YMUFFJCO.js.map +1 -0
- package/dist/{chunk-SV6EAJEP.js → chunk-YWWQM7KP.js} +5 -14
- package/dist/chunk-YWWQM7KP.js.map +1 -0
- package/dist/{chunk-UDSR4X4L.js → chunk-YZJSJOUI.js} +239 -16
- 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-QWMASIT7.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-66VGI6JV.js → dead-filter-FL3WIUZS.js} +2 -2
- package/dist/{chunk-OCVM6KDH.js → delegation-QXZ4MPPH.js} +12 -6
- package/dist/{chunk-OCVM6KDH.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-TKPN2G2U.js → enclave-SPEEDYZ4.js} +13 -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-B5LVUMQX.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 +4 -4
- package/dist/history/index.js +16 -12
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +16 -14
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +42 -42
- package/dist/index.js +332 -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 +4 -4
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +8 -0
- 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 +187 -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-PTK7XZYT.js → ledger-6XBEVWYP.js} +11 -11
- package/dist/liberate-CYUOS4NC.js +24 -0
- package/dist/{link-set-SLJHDNRB.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 +21 -17
- package/dist/pod/index.js +26 -12
- package/dist/{policy-YDLCOX4P.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-2YHSADFI.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-HWO4YMTJ.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-3ZMF5EQA.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/share-link/index.d.ts +19 -0
- package/dist/share-link/index.js +201 -0
- package/dist/share-link/index.js.map +1 -0
- package/dist/share-link/share-link.d.ts +123 -0
- 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-VZL4OGUB.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-FKX3F6TQ.js → store-coordination-provider-EWRZL7XF.js} +3 -3
- package/dist/sync/index.js +15 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +33 -47
- 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/periods.d.ts +1 -16
- package/dist/with-audit/periods/vault-facade.d.ts +6 -0
- package/dist/with-audit/periods/window.d.ts +16 -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 +15 -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} +17 -4
- package/dist/{with-party/sync → with-sync}/index.d.ts +4 -2
- package/dist/with-sync/period-scope.d.ts +78 -0
- 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/dist/withdraw-accessible-A2PWF5MZ.js.map +1 -0
- package/package.json +49 -36
- package/dist/aggregate/index.js.map +0 -1
- package/dist/api-3A3S4SHH.js +0 -20
- package/dist/as/index.js +0 -30
- package/dist/at/index.js +0 -1
- package/dist/bundle/index.js +0 -153
- package/dist/bundle/index.js.map +0 -1
- package/dist/by/index.js +0 -11
- package/dist/chunk-554KLAAN.js.map +0 -1
- package/dist/chunk-5PFOMHTB.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-A5BDDEXK.js.map +0 -1
- package/dist/chunk-ANATMTOA.js +0 -205
- package/dist/chunk-ANATMTOA.js.map +0 -1
- package/dist/chunk-BOKIKJJB.js.map +0 -1
- package/dist/chunk-CHFZDSE4.js +0 -1
- package/dist/chunk-DDHM2TLX.js.map +0 -1
- package/dist/chunk-DSBQODMZ.js.map +0 -1
- package/dist/chunk-EWPOHMN2.js +0 -255
- package/dist/chunk-EWPOHMN2.js.map +0 -1
- package/dist/chunk-FXZDAV62.js.map +0 -1
- package/dist/chunk-GDG5VVYG.js.map +0 -1
- package/dist/chunk-GWKAVKHI.js.map +0 -1
- package/dist/chunk-H2KSZMIX.js.map +0 -1
- package/dist/chunk-HOONYZY2.js.map +0 -1
- package/dist/chunk-HQBM64EE.js.map +0 -1
- package/dist/chunk-IAO54J4R.js.map +0 -1
- package/dist/chunk-IFJTPAQQ.js.map +0 -1
- package/dist/chunk-IK43HLDQ.js.map +0 -1
- package/dist/chunk-ISMV2QVG.js.map +0 -1
- package/dist/chunk-JBBSYJHP.js.map +0 -1
- package/dist/chunk-JFCV5QIK.js.map +0 -1
- package/dist/chunk-JRBNCUNT.js.map +0 -1
- package/dist/chunk-LB7FD65R.js +0 -163
- package/dist/chunk-LB7FD65R.js.map +0 -1
- package/dist/chunk-ONTBCHCP.js.map +0 -1
- package/dist/chunk-PK6JIDQ4.js.map +0 -1
- package/dist/chunk-RDXW3OBQ.js.map +0 -1
- package/dist/chunk-RFI7GGFO.js.map +0 -1
- package/dist/chunk-S3BFKGET.js.map +0 -1
- package/dist/chunk-SV6EAJEP.js.map +0 -1
- package/dist/chunk-T36RFODW.js.map +0 -1
- package/dist/chunk-T3GY65MA.js.map +0 -1
- package/dist/chunk-TAGR72IR.js.map +0 -1
- package/dist/chunk-TIGPQDYP.js +0 -14
- package/dist/chunk-TIGPQDYP.js.map +0 -1
- package/dist/chunk-U6JMEH2P.js.map +0 -1
- package/dist/chunk-UDSR4X4L.js.map +0 -1
- package/dist/chunk-UHNGNKLV.js.map +0 -1
- package/dist/chunk-VCBHAE4R.js.map +0 -1
- package/dist/chunk-VCTXU4AT.js.map +0 -1
- package/dist/chunk-VEALDPHW.js.map +0 -1
- package/dist/chunk-VKCADNMR.js.map +0 -1
- package/dist/chunk-VQNJ7UZL.js.map +0 -1
- package/dist/chunk-W2OG6JOL.js.map +0 -1
- package/dist/chunk-WG4QBZDN.js.map +0 -1
- package/dist/chunk-WHXXI3W5.js.map +0 -1
- package/dist/chunk-WKGF2TJR.js.map +0 -1
- package/dist/chunk-WNGGJWF7.js.map +0 -1
- package/dist/chunk-XTHCN77N.js.map +0 -1
- package/dist/chunk-YCH5GBN6.js +0 -99
- package/dist/chunk-YCH5GBN6.js.map +0 -1
- package/dist/chunk-YMUGBZN2.js.map +0 -1
- package/dist/collection-facade-KMBWNCYP.js +0 -44
- package/dist/cover-QJRXINN5.js +0 -52
- package/dist/delegation-SU6CV3W7.js +0 -25
- package/dist/derive-6RWU4EOA.js +0 -21
- package/dist/executor-KGNLJD6M.js +0 -9
- package/dist/executor-UX4FASYZ.js +0 -26
- package/dist/executor-XGIS6CR7.js +0 -9
- package/dist/export-accessible-LKW3QV22.js +0 -23
- package/dist/extract-partition-UP2ARO75.js +0 -38
- package/dist/find-YS6XWB46.js +0 -11
- package/dist/in/index.js +0 -1
- package/dist/issue-3ACYX7LO.js +0 -19
- package/dist/legacy/bundle.d.ts +0 -30
- package/dist/liberate-MQQXBUCY.js +0 -24
- package/dist/noydb-ANIW5FLE.js +0 -69
- 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-PAM3ASRZ.js +0 -23
- package/dist/registry-4S2U2TR4.js +0 -19
- package/dist/registry-NPOWJHC4.js +0 -9
- package/dist/registry-VZ3CCI2R.js +0 -18
- package/dist/request-withdrawal-DI3H5WUI.js +0 -31
- package/dist/revoke-R5CZSVUT.js +0 -24
- package/dist/seed-3ZMF5EQA.js.map +0 -1
- package/dist/signer-MBVHW4WE.js +0 -25
- package/dist/storage-3MEJUENZ.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-TZDATQVR.js +0 -28
- /package/dist/{api-3A3S4SHH.js.map → api-ZDKTWNBB.js.map} +0 -0
- /package/dist/{backup-YPUEKIJC.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-ZXEZCY6F.js.map → chunk-63FE525P.js.map} +0 -0
- /package/dist/{chunk-JVBO4SZL.js.map → chunk-6UBZ6I5Z.js.map} +0 -0
- /package/dist/{chunk-VRBTNCM4.js.map → chunk-ABS7FMMD.js.map} +0 -0
- /package/dist/{chunk-M75ZZHSR.js.map → chunk-BLBAQRBM.js.map} +0 -0
- /package/dist/{chunk-WOM2HTML.js.map → chunk-CI32CAFS.js.map} +0 -0
- /package/dist/{chunk-EO43ANYJ.js.map → chunk-DABACXEF.js.map} +0 -0
- /package/dist/{chunk-CJ5KKU6X.js.map → chunk-DMH3VZU5.js.map} +0 -0
- /package/dist/{chunk-WZSHL6DQ.js.map → chunk-DZ2JXHWK.js.map} +0 -0
- /package/dist/{chunk-Z4PD65VQ.js.map → chunk-EE7UHLKH.js.map} +0 -0
- /package/dist/{chunk-RNG4VRP4.js.map → chunk-EKRSCRNM.js.map} +0 -0
- /package/dist/{chunk-MT62YSPZ.js.map → chunk-FRMPM7WG.js.map} +0 -0
- /package/dist/{as/index.js.map → chunk-GJW4HX2O.js.map} +0 -0
- /package/dist/{chunk-KS6SAVCZ.js.map → chunk-GU3IP74F.js.map} +0 -0
- /package/dist/{chunk-SMIRGMS7.js.map → chunk-IXNCZTWA.js.map} +0 -0
- /package/dist/{chunk-WQIYTNJV.js.map → chunk-IXTSNGYY.js.map} +0 -0
- /package/dist/{chunk-NCCBLYEB.js.map → chunk-JJZGIE4U.js.map} +0 -0
- /package/dist/{chunk-DRWBEDYO.js.map → chunk-JYJFGD2H.js.map} +0 -0
- /package/dist/{chunk-XJMBYYQK.js.map → chunk-LNZKOUJR.js.map} +0 -0
- /package/dist/{chunk-R3BLCFD2.js.map → chunk-MBKVNOJS.js.map} +0 -0
- /package/dist/{chunk-N6WF5PKC.js.map → chunk-NFZGZ4AK.js.map} +0 -0
- /package/dist/{chunk-THVIPWRF.js.map → chunk-PEATRIYJ.js.map} +0 -0
- /package/dist/{chunk-YZQOGE2L.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-A4FXFAKF.js.map → chunk-W3L64Y3J.js.map} +0 -0
- /package/dist/{chunk-XDIAFPUM.js.map → chunk-WLXMTYGO.js.map} +0 -0
- /package/dist/{chunk-RJ6K6K5M.js.map → chunk-X3F5YJG2.js.map} +0 -0
- /package/dist/{chunk-YTGDPCPW.js.map → chunk-Y6B6HVKC.js.map} +0 -0
- /package/dist/{classified-marker-QWMASIT7.js.map → classified-marker-7PKJBFCG.js.map} +0 -0
- /package/dist/{at/index.js.map → collection-facade-6I5K5IOD.js.map} +0 -0
- /package/dist/{by/index.js.map → computed-AB45PS4V.js.map} +0 -0
- /package/dist/{in → cover}/index.js.map +0 -0
- /package/dist/{on → custody}/index.js.map +0 -0
- /package/dist/{dead-filter-66VGI6JV.js.map → dead-filter-FL3WIUZS.js.map} +0 -0
- /package/dist/{chunk-CHFZDSE4.js.map → derive-VGS7FKE3.js.map} +0 -0
- /package/dist/{ui → directory}/index.js.map +0 -0
- /package/dist/{collection-facade-KMBWNCYP.js.map → enclave-SPEEDYZ4.js.map} +0 -0
- /package/dist/{computed-DSMPXG2Y.js.map → executor-IEBLTBCW.js.map} +0 -0
- /package/dist/{cover-QJRXINN5.js.map → executor-OTF556PL.js.map} +0 -0
- /package/dist/{delegation-SU6CV3W7.js.map → executor-RM7XWQDU.js.map} +0 -0
- /package/dist/{derive-6RWU4EOA.js.map → export-accessible-P42BQ4PB.js.map} +0 -0
- /package/dist/{enclave-TKPN2G2U.js.map → extract-partition-TCYXRWBN.js.map} +0 -0
- /package/dist/{fanout-sidecar-B5LVUMQX.js.map → fanout-sidecar-SSMRSC2L.js.map} +0 -0
- /package/dist/{executor-KGNLJD6M.js.map → find-OZMTRIK3.js.map} +0 -0
- /package/dist/{with → introspection}/index.js.map +0 -0
- /package/dist/{executor-UX4FASYZ.js.map → issue-FCKN5O6C.js.map} +0 -0
- /package/dist/{executor-XGIS6CR7.js.map → ledger-6XBEVWYP.js.map} +0 -0
- /package/dist/{export-accessible-LKW3QV22.js.map → liberate-CYUOS4NC.js.map} +0 -0
- /package/dist/{extract-partition-UP2ARO75.js.map → link-set-NK6L2A5S.js.map} +0 -0
- /package/dist/{find-YS6XWB46.js.map → money/index.js.map} +0 -0
- /package/dist/{issue-3ACYX7LO.js.map → noydb-FZZIMLCI.js.map} +0 -0
- /package/dist/{ledger-PTK7XZYT.js.map → policy/index.js.map} +0 -0
- /package/dist/{post-register-2YHSADFI.js.map → post-register-VFIYISUK.js.map} +0 -0
- /package/dist/{liberate-MQQXBUCY.js.map → register-UKU2J6MN.js.map} +0 -0
- /package/dist/{link-set-SLJHDNRB.js.map → registry-2VCWVHZS.js.map} +0 -0
- /package/dist/{noydb-ANIW5FLE.js.map → registry-7Y5WF7GS.js.map} +0 -0
- /package/dist/{policy-YDLCOX4P.js.map → registry-BWD2ED52.js.map} +0 -0
- /package/dist/{register-PAM3ASRZ.js.map → registry-DTWRJLSF.js.map} +0 -0
- /package/dist/{registry-4S2U2TR4.js.map → request-withdrawal-JYDZ5XY2.js.map} +0 -0
- /package/dist/{reveal-HWO4YMTJ.js.map → reveal-CL2BCW6A.js.map} +0 -0
- /package/dist/{registry-NPOWJHC4.js.map → revoke-2TSAD2T4.js.map} +0 -0
- /package/dist/{registry-VW6P6A3J.js.map → schema-update/index.js.map} +0 -0
- /package/dist/{registry-VZ3CCI2R.js.map → search/index.js.map} +0 -0
- /package/dist/{request-withdrawal-DI3H5WUI.js.map → sequence/index.js.map} +0 -0
- /package/dist/{revoke-R5CZSVUT.js.map → signer-K7Z2EOMG.js.map} +0 -0
- /package/dist/{signer-MBVHW4WE.js.map → stale-A4J26OIC.js.map} +0 -0
- /package/dist/{stale-VZL4OGUB.js.map → storage-YVHZUISN.js.map} +0 -0
- /package/dist/{storage-3MEJUENZ.js.map → store/index.js.map} +0 -0
- /package/dist/{store-coordination-provider-FKX3F6TQ.js.map → store-coordination-provider-EWRZL7XF.js.map} +0 -0
- /package/dist/{verify-26Y5GNMK.js.map → verify-7XWHJWUN.js.map} +0 -0
- /package/dist/{withdraw-accessible-TZDATQVR.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
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
blindedEqual,
|
|
3
3
|
evaluateKofN,
|
|
4
4
|
openVdigPayload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-35NMVJ7I.js";
|
|
6
6
|
import {
|
|
7
7
|
dualReadSealedSlot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NFZGZ4AK.js";
|
|
9
9
|
import {
|
|
10
10
|
VDIG_ITERATIONS,
|
|
11
11
|
normalizeForVerify,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
base64ToBuffer,
|
|
16
16
|
generateSalt
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AKKRXT23.js";
|
|
18
18
|
import {
|
|
19
19
|
ClassifiedConfigError,
|
|
20
20
|
ClassifiedVerifyError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QZWTRENR.js";
|
|
22
22
|
import "./chunk-PZ5AY32C.js";
|
|
23
23
|
|
|
24
24
|
// src/kernel/enclave/classify/verify.ts
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
verifyDigestField,
|
|
138
138
|
verifyTextField
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=verify-
|
|
140
|
+
//# sourceMappingURL=verify-7XWHJWUN.js.map
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Active blob strategy factory. Calling `blobs()` returns a
|
|
3
|
-
* `
|
|
3
|
+
* `BlobsStrategy` whose `openSlot` constructs a real `BlobSet` bound
|
|
4
4
|
* to the caller's record. The returned strategy is passed into
|
|
5
|
-
* `createNoydb({
|
|
5
|
+
* `createNoydb({ blobsStrategy: blobs() })` to light up the
|
|
6
6
|
* `collection.blob(id)` path.
|
|
7
7
|
*
|
|
8
8
|
* This module is only reachable through the `@noy-db/hub/blobs`
|
|
9
9
|
* subpath — a consumer that never imports the subpath ships none of
|
|
10
10
|
* this (ESM tree-shaking + hub's `"sideEffects": false`).
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { BlobsStrategy } from '../../port/with/blob-strategy.js';
|
|
13
|
+
import type { BlobPinStore } from '../../with-shape/blobs/blob-pinning.js';
|
|
14
|
+
/** Options for {@link withBlobs} (#808). */
|
|
15
|
+
export interface WithBlobsOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Device-local backend for the offline-pin registry + external side-cache
|
|
18
|
+
* (`collection.blob(id).pin()`, the `cacheBudget` LRU stamps). Default:
|
|
19
|
+
* in-memory — pins then last one app session. Supply a durable,
|
|
20
|
+
* DEVICE-LOCAL store (IndexedDB-backed on the web; it must never sync) to
|
|
21
|
+
* keep pins across restarts. See `BlobPinStore`'s doc for the posture.
|
|
22
|
+
*/
|
|
23
|
+
readonly pinStore?: BlobPinStore;
|
|
24
|
+
}
|
|
13
25
|
/**
|
|
14
|
-
* Build a default `
|
|
26
|
+
* Build a default `BlobsStrategy` ready to pass into `createNoydb`.
|
|
15
27
|
*
|
|
16
28
|
* Named `withBlobs` (plugin-pattern canonical) rather than `blobs` to
|
|
17
29
|
* avoid shadowing the very common local idiom
|
|
18
30
|
* `const blobs = invoices.blob(id)` in user code.
|
|
19
31
|
*
|
|
32
|
+
* One `withBlobs()` instance owns one device-local pin registry + KPI
|
|
33
|
+
* counter set (#808) — treat it as "this device's" blob service.
|
|
34
|
+
*
|
|
20
35
|
* @example
|
|
21
36
|
* ```ts
|
|
22
37
|
* import { createNoydb } from '@noy-db/hub'
|
|
@@ -24,11 +39,12 @@ import type { BlobStrategy } from '../../port/with/blob-strategy.js';
|
|
|
24
39
|
*
|
|
25
40
|
* const db = await createNoydb({
|
|
26
41
|
* store, user, secret,
|
|
27
|
-
*
|
|
42
|
+
* blobsStrategy: withBlobs(),
|
|
28
43
|
* })
|
|
29
44
|
*
|
|
30
45
|
* // Now live — delegates to BlobSet.
|
|
31
|
-
* await db.
|
|
46
|
+
* const vault = await db.openVault('acme')
|
|
47
|
+
* await vault.collection('invoices').blob('inv-1').put('receipt.pdf', bytes)
|
|
32
48
|
* ```
|
|
33
49
|
*/
|
|
34
|
-
export declare function withBlobs():
|
|
50
|
+
export declare function withBlobs(options?: WithBlobsOptions): BlobsStrategy;
|
|
@@ -45,7 +45,7 @@ import type { BlobFieldsConfig } from '../../with-shape/blobs/blob-compaction.js
|
|
|
45
45
|
* DELIBERATELY left unwired by `compileViaBindings` (#629 Task 10, resolved
|
|
46
46
|
* within parity-first — see task-10-report.md "blob purge" section):
|
|
47
47
|
* `per-blob-cek.test.ts`/`forget.test.ts` prove blob-shred-on-forget is
|
|
48
|
-
* gated SOLELY on the vault's `
|
|
48
|
+
* gated SOLELY on the vault's `blobsStrategy` being configured, never on a
|
|
49
49
|
* given collection's OWN `blobFields` declaration (`.blob(id)` is callable,
|
|
50
50
|
* and IS exercised by those tests, on collections with no `blobFields` at
|
|
51
51
|
* all). Routing it exclusively through this binding would silently stop
|
package/dist/via/blob/index.d.ts
CHANGED
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
* code should prefer this subpath so the import boundary is explicit.
|
|
20
20
|
*/
|
|
21
21
|
export { withBlobs } from './active.js';
|
|
22
|
-
export type {
|
|
22
|
+
export type { WithBlobsOptions } from './active.js';
|
|
23
|
+
export type { BlobsStrategy, BlobsStrategyOpenArgs } from '../../port/with/blob-strategy.js';
|
|
24
|
+
export { memoryBlobPinStore, blobPinKey } from '../../with-shape/blobs/blob-pinning.js';
|
|
25
|
+
export type { BlobPinStore, BlobPinEntry, BlobCacheStats } from '../../with-shape/blobs/blob-pinning.js';
|
|
26
|
+
export { BlobOfflineError } from '../../kernel/errors.js';
|
|
23
27
|
export { memoryObjectProjection } from '../../with-shape/blobs/object-projection.js';
|
|
24
28
|
export type { ObjectProjection, ObjectMeta, ObjectListEntry, PutObjectOptions, ObjectUrlOptions, PutUrlOptions, } from '../../with-shape/blobs/object-projection.js';
|
|
25
29
|
export { importExternalObjects } from '../../with-shape/blobs/import-external.js';
|
|
@@ -32,3 +36,5 @@ export { runCompaction, BLOB_EVICTION_AUDIT_COLLECTION } from '../../with-shape/
|
|
|
32
36
|
export type { BlobFieldsConfig, BlobFieldPolicy, BlobEvictionEntry, CompactRunOptions, CompactionResult, CompactionContext, } from '../../with-shape/blobs/blob-compaction.js';
|
|
33
37
|
export { createExportBlobsHandle, ExportBlobsAbortedError, EXPORT_AUDIT_COLLECTION, } from '../../with-shape/blobs/export-blobs.js';
|
|
34
38
|
export type { ExportBlobsOptions, ExportedBlob, ExportBlobsHandle, ExportBlobsAuditEntry, } from '../../with-shape/blobs/export-blobs.js';
|
|
39
|
+
/** The un-opted-in stub for this service — exported so callers can compare against it (#844). */
|
|
40
|
+
export { NO_BLOBS } from '../../port/with/blob-strategy.js';
|
package/dist/via/i18n/core.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export interface I18nTextOptions {
|
|
|
110
110
|
* the lenient `'substitute'`). The `mv` layer fires for materialized views
|
|
111
111
|
* that declare `{ i18nLocale, i18nFields }` — UNION (group-key i18n fields
|
|
112
112
|
* resolve before the unified-row bucketing) and query-form (resolved in
|
|
113
|
-
* `
|
|
113
|
+
* `GroupedReduction.run` before `groupAndReduce`); grouping a raw i18n field
|
|
114
114
|
* without a locale throws. The `join` layer resolves a joined right-side i18n
|
|
115
115
|
* field to the query locale (`toArray({ locale })` or the vault default; raw
|
|
116
116
|
* when locale-less). The `export` layer fires for
|
package/dist/via/i18n/index.d.ts
CHANGED
|
@@ -19,3 +19,5 @@ export type { ScriptWarning } from './script.js';
|
|
|
19
19
|
export { withI18n } from './active.js';
|
|
20
20
|
export type { I18nStrategy } from './strategy.js';
|
|
21
21
|
export { ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, TranslatorNotConfiguredError, ScriptViolationError, StaticDictReadonlyError, UnknownDictCodeError, } from '../../kernel/errors.js';
|
|
22
|
+
/** The un-opted-in stub for this service — exported so callers can compare against it (#844). */
|
|
23
|
+
export { NO_I18N } from '../../port/with/i18n-strategy.js';
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* exactly like the generic reducers they replace.
|
|
23
23
|
*/
|
|
24
24
|
import type { MoneyDescriptor } from './descriptor.js';
|
|
25
|
-
import type {
|
|
25
|
+
import type { ReduceSpec } from '../../with-lookup/reduce/reduction.js';
|
|
26
26
|
export type FxRates = Record<string, number | string>;
|
|
27
27
|
/**
|
|
28
28
|
* Rewrite any `sum` / `min` / `max` reducer over a declared money field
|
|
@@ -30,4 +30,4 @@ export type FxRates = Record<string, number | string>;
|
|
|
30
30
|
* reducers over non-money fields) pass through unchanged. Returns a new
|
|
31
31
|
* spec; the input is not mutated.
|
|
32
32
|
*/
|
|
33
|
-
export declare function wrapMoneyReducers(spec:
|
|
33
|
+
export declare function wrapMoneyReducers(spec: ReduceSpec, moneyFields: Record<string, MoneyDescriptor>): ReduceSpec;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dumpVaultSchema
|
|
3
|
+
} from "./chunk-3V3XR4S4.js";
|
|
4
|
+
import "./chunk-VYYM3MEN.js";
|
|
5
|
+
import "./chunk-6ZNSB3H6.js";
|
|
6
|
+
import "./chunk-Y2NBBT6K.js";
|
|
7
|
+
import "./chunk-DMH3VZU5.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
|
+
dumpVaultSchema
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=walk-P5D6CF4V.js.map
|
|
@@ -12,3 +12,5 @@ export { withConsent } from './active.js';
|
|
|
12
12
|
export type { ConsentStrategy } from './strategy.js';
|
|
13
13
|
export { CONSENT_AUDIT_COLLECTION, writeConsentEntry, loadConsentEntries, } from './consent.js';
|
|
14
14
|
export type { ConsentContext, ConsentOp, ConsentAuditEntry, ConsentAuditFilter, } from './consent.js';
|
|
15
|
+
/** The un-opted-in stub for this service — exported so callers can compare against it (#844). */
|
|
16
|
+
export { NO_CONSENT } from './strategy.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `
|
|
2
|
+
* `withForget` — the active factory for GDPR right-to-erasure via
|
|
3
3
|
* per-record CEK crypto-shred. Mirrors the canonical
|
|
4
4
|
* `strategy.ts` (type + `NO_FORGET` sentinel) / `active.ts` (factory) split
|
|
5
5
|
* used by the other services.
|
|
@@ -22,10 +22,10 @@ import type { SubjectDeclaration, ForgetStrategy } from './strategy.js';
|
|
|
22
22
|
* ```ts
|
|
23
23
|
* createNoydb({
|
|
24
24
|
* secret, user,
|
|
25
|
-
* forgetStrategy:
|
|
25
|
+
* forgetStrategy: withForget({ subjects: { invoices: 'buyerId' } }),
|
|
26
26
|
* })
|
|
27
27
|
* const result = await vault.forget('buyer-123')
|
|
28
28
|
* // → { subject, recordsShredded, historyVersionsShredded, collections, … }
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export declare function
|
|
31
|
+
export declare function withForget(opts: SubjectDeclaration): ForgetStrategy;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `@noy-db/hub/forget` — GDPR right-to-erasure via per-record CEK crypto-shred.
|
|
3
|
-
* Import `
|
|
3
|
+
* Import `withForget` and pass it to `createNoydb`:
|
|
4
4
|
*
|
|
5
5
|
* ```ts
|
|
6
6
|
* import { createNoydb } from '@noy-db/hub'
|
|
7
|
-
* import {
|
|
7
|
+
* import { withForget } from '@noy-db/hub/forget'
|
|
8
8
|
*
|
|
9
9
|
* const db = createNoydb({
|
|
10
10
|
* secret, user,
|
|
11
11
|
* historyStrategy: withHistory(), // ledger for the erasure proof
|
|
12
|
-
* forgetStrategy:
|
|
12
|
+
* forgetStrategy: withForget({ subjects: { invoices: 'buyerId' } }),
|
|
13
13
|
* })
|
|
14
|
-
* const
|
|
14
|
+
* const vault = await db.openVault('main')
|
|
15
|
+
* const result = await vault.forget('buyer-123')
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* The erasure flow (`vault.forget`), the subject-index maintenance hooks, and
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
*
|
|
22
23
|
* @module
|
|
23
24
|
*/
|
|
24
|
-
export {
|
|
25
|
+
export { withForget } from './active.js';
|
|
25
26
|
export { NO_FORGET } from './strategy.js';
|
|
26
27
|
export type { SubjectDeclaration, ForgetStrategy, ForgetResult, ScopedPurgeResidueNotice, } from './strategy.js';
|
|
27
28
|
export type { SubjectRef } from './subject-index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `
|
|
2
|
+
* `withForget` — declaration surface for GDPR right-to-erasure via
|
|
3
3
|
* per-record CEK crypto-shred.
|
|
4
4
|
*
|
|
5
5
|
* This file holds only the *declaration* shape and the disabled sentinel.
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import type { LedgerEntry } from '../../with-commit/history/ledger/entry.js';
|
|
20
20
|
/**
|
|
21
|
-
* User-supplied declaration passed to {@link
|
|
21
|
+
* User-supplied declaration passed to {@link withForget}. Maps a
|
|
22
22
|
* collection name to the record field (dotted path supported, e.g.
|
|
23
23
|
* `'billing.buyerId'`) that identifies the data subject for erasure.
|
|
24
24
|
*
|
|
25
25
|
* ```ts
|
|
26
|
-
*
|
|
26
|
+
* withForget({ subjects: { invoices: 'buyerId', contacts: 'id' } })
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
export interface SubjectDeclaration {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GuardSpec, GuardContext, GuardChange } from './types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Pure functions that execute the work declared by a `
|
|
3
|
+
* Pure functions that execute the work declared by a `GuardSpec`.
|
|
4
4
|
* Stateless — `GuardRegistry` decides when to call these.
|
|
5
5
|
*
|
|
6
6
|
* @internal
|
|
@@ -17,10 +17,10 @@ export declare const GuardExecutor: {
|
|
|
17
17
|
* `existing[field]` vs `incoming[field]` would always look like a
|
|
18
18
|
* change even when the computed result is unchanged.
|
|
19
19
|
*/
|
|
20
|
-
checkFrozenFields<T extends Record<string, unknown>>(guard:
|
|
20
|
+
checkFrozenFields<T extends Record<string, unknown>>(guard: GuardSpec<T>, id: string, existing: T | null, incoming: T, skipFields?: ReadonlySet<string>): Promise<void>;
|
|
21
21
|
/**
|
|
22
22
|
* Run a single guard's invariant over its slice of the change-set.
|
|
23
23
|
* Any throw is converted to `InvariantError` unless it already is one.
|
|
24
24
|
*/
|
|
25
|
-
runInvariant<T extends Record<string, unknown>>(guard:
|
|
25
|
+
runInvariant<T extends Record<string, unknown>>(guard: GuardSpec<T>, changes: ReadonlyArray<GuardChange<T>>, ctx: GuardContext<T>): Promise<void>;
|
|
26
26
|
};
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* ledgered by the guard amendment mechanism). `appendOnly: true` is
|
|
26
26
|
* shorthand for `after: () => true` — immutable from creation.
|
|
27
27
|
*/
|
|
28
|
-
import type {
|
|
28
|
+
import type { GuardStrategy, GuardContext, GuardChange } from './types.js';
|
|
29
29
|
export interface ImmutableGuardConfig<T extends Record<string, unknown>> {
|
|
30
30
|
/** The collection to make WORM. */
|
|
31
31
|
collection: string;
|
|
@@ -42,7 +42,7 @@ export interface ImmutableGuardConfig<T extends Record<string, unknown>> {
|
|
|
42
42
|
amendmentRoles?: ReadonlyArray<'admin' | 'owner'>;
|
|
43
43
|
/**
|
|
44
44
|
* Optional set-level invariant run over the amendment change-set after
|
|
45
|
-
* the writes execute. Signature matches `
|
|
45
|
+
* the writes execute. Signature matches `GuardSpec.amendment.invariant`
|
|
46
46
|
* exactly: it receives every {before, after} pair touching this
|
|
47
47
|
* collection in the amendment plus the guard context; throwing reverts
|
|
48
48
|
* the whole amendment and surfaces as `InvariantError`.
|
|
@@ -60,4 +60,4 @@ export interface ImmutableGuardConfig<T extends Record<string, unknown>> {
|
|
|
60
60
|
* Build an immutability guard. Pass the returned handle to
|
|
61
61
|
* `createNoydb({ guardStrategies: [...] })`.
|
|
62
62
|
*/
|
|
63
|
-
export declare function immutableGuard<T extends Record<string, unknown>>(config: ImmutableGuardConfig<T>):
|
|
63
|
+
export declare function immutableGuard<T extends Record<string, unknown>>(config: ImmutableGuardConfig<T>): GuardStrategy<T>;
|
|
@@ -6,5 +6,5 @@ export type { TransitionGuardConfig } from './transition-guard.js';
|
|
|
6
6
|
export { GuardRegistry } from './registry.js';
|
|
7
7
|
export { GuardExecutor } from './executor.js';
|
|
8
8
|
export { ReadOnlyVaultFacade } from './read-only-facade.js';
|
|
9
|
-
export type {
|
|
9
|
+
export type { GuardSpec, GuardStrategy, GuardContext, GuardChange, } from './types.js';
|
|
10
10
|
export { RecordLockedError, FieldFrozenError, IllegalTransitionError, InvariantError, AmendmentForbiddenError, } from '../../kernel/errors.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GuardSpec, GuardContext, GuardChange } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Per-record metadata attached to every entry in an amendment's
|
|
4
4
|
* change-set. Carried in a parallel map alongside `_amendmentChanges`
|
|
@@ -20,14 +20,14 @@ export interface AmendmentChangeMeta {
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
type AnyGuard =
|
|
23
|
+
type AnyGuard = GuardSpec<Record<string, unknown>>;
|
|
24
24
|
type AnyChange = GuardChange<Record<string, unknown>>;
|
|
25
25
|
export declare class GuardRegistry {
|
|
26
26
|
private readonly _byCollection;
|
|
27
27
|
private _amendmentChanges;
|
|
28
28
|
private _amendmentMeta;
|
|
29
29
|
/** Register a guard. Multiple guards per collection are allowed. */
|
|
30
|
-
register<T extends Record<string, unknown>>(spec:
|
|
30
|
+
register<T extends Record<string, unknown>>(spec: GuardSpec<T>): void;
|
|
31
31
|
/** All guards registered against `collection` in registration order. */
|
|
32
32
|
guardsFor(collection: string): ReadonlyArray<AnyGuard>;
|
|
33
33
|
/** Per-collection guard counts, for introspection. */
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
*
|
|
43
43
|
* The status graph is caller-supplied data — no UI, no domain logic.
|
|
44
44
|
*/
|
|
45
|
-
import type {
|
|
45
|
+
import type { GuardStrategy, GuardContext, GuardChange } from './types.js';
|
|
46
46
|
export interface TransitionGuardConfig<T extends Record<string, unknown>> {
|
|
47
47
|
/** The collection whose state field is governed. */
|
|
48
48
|
collection: string;
|
|
@@ -68,7 +68,7 @@ export interface TransitionGuardConfig<T extends Record<string, unknown>> {
|
|
|
68
68
|
amendmentRoles?: ReadonlyArray<'admin' | 'owner'>;
|
|
69
69
|
/**
|
|
70
70
|
* Optional set-level invariant run over the amendment change-set after
|
|
71
|
-
* the writes execute. Signature matches `
|
|
71
|
+
* the writes execute. Signature matches `GuardSpec.amendment.invariant`
|
|
72
72
|
* exactly. When omitted the amendment is unconditionally allowed (the
|
|
73
73
|
* amendment itself is the sanctioned, ledgered override) — the
|
|
74
74
|
* backward-compatible default. Mirrors {@link immutableGuard}.
|
|
@@ -79,4 +79,4 @@ export interface TransitionGuardConfig<T extends Record<string, unknown>> {
|
|
|
79
79
|
* Build a state-machine transition guard. Pass the returned handle to
|
|
80
80
|
* `createNoydb({ guardStrategies: [...] })`.
|
|
81
81
|
*/
|
|
82
|
-
export declare function transitionGuard<T extends Record<string, unknown>>(config: TransitionGuardConfig<T>):
|
|
82
|
+
export declare function transitionGuard<T extends Record<string, unknown>>(config: TransitionGuardConfig<T>): GuardStrategy<T>;
|
|
@@ -36,16 +36,16 @@ export interface GuardChange<T> {
|
|
|
36
36
|
after: T;
|
|
37
37
|
}
|
|
38
38
|
/** @internal — output of {@link withGuard}. */
|
|
39
|
-
export interface
|
|
39
|
+
export interface GuardStrategy<T extends Record<string, unknown>> {
|
|
40
40
|
readonly __noydb_strategy: 'guard';
|
|
41
|
-
readonly spec:
|
|
41
|
+
readonly spec: GuardSpec<T>;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Existential erasure of `
|
|
44
|
+
* Existential erasure of `GuardStrategy<T>` — used as the
|
|
45
45
|
* element type of `ReadonlyArray<>` fields where the per-handle T
|
|
46
46
|
* differs (e.g. `guardStrategies: [invoiceGuard, disbursementGuard]`).
|
|
47
47
|
*
|
|
48
|
-
* Background: `
|
|
48
|
+
* Background: `GuardStrategy<T>` is INVARIANT in T because T
|
|
49
49
|
* appears in callback positions on the spec (`check(incoming: T, ctx)`,
|
|
50
50
|
* `invariant(changes: ReadonlyArray<GuardChange<T>>, ctx)`). So
|
|
51
51
|
* `Handle<Invoice>` is not assignable to `Handle<Record<string, unknown>>`.
|
|
@@ -55,9 +55,9 @@ export interface GuardStrategyHandle<T extends Record<string, unknown>> {
|
|
|
55
55
|
* interface that ERASES T from both the discriminant and the spec.
|
|
56
56
|
*
|
|
57
57
|
* Consumers continue to construct typed handles via `withGuard<T>(...)`
|
|
58
|
-
* which returns `
|
|
59
|
-
* `Handle<Disbursement>` structurally assign to `
|
|
60
|
-
* so an array of them is `
|
|
58
|
+
* which returns `GuardStrategy<T>`. Both `Handle<Invoice>` and
|
|
59
|
+
* `Handle<Disbursement>` structurally assign to `GuardStrategyAny`,
|
|
60
|
+
* so an array of them is `GuardStrategyAny[]`.
|
|
61
61
|
*
|
|
62
62
|
* Internal code that needs T re-narrows via the runtime discriminant
|
|
63
63
|
* (`__noydb_strategy === 'guard'`) plus per-handle type information
|
|
@@ -69,12 +69,12 @@ export interface GuardStrategyHandle<T extends Record<string, unknown>> {
|
|
|
69
69
|
*
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
|
-
export interface
|
|
72
|
+
export interface GuardStrategyAny {
|
|
73
73
|
readonly __noydb_strategy: 'guard';
|
|
74
|
-
readonly spec:
|
|
74
|
+
readonly spec: GuardSpec<any>;
|
|
75
75
|
}
|
|
76
76
|
/** Public registration shape. See `withGuard()`. */
|
|
77
|
-
export interface
|
|
77
|
+
export interface GuardSpec<T extends Record<string, unknown>> {
|
|
78
78
|
collection: string;
|
|
79
79
|
/**
|
|
80
80
|
* Fires on `Collection.put` (insert + update). The `incoming` argument
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GuardSpec, GuardStrategy } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Register a guard for a collection. Guards run on every `put()` /
|
|
4
4
|
* `delete()` for the named collection (after permissions, before
|
|
@@ -12,4 +12,4 @@ import type { GuardStrategy, GuardStrategyHandle } from './types.js';
|
|
|
12
12
|
*
|
|
13
13
|
* @see docs/superpowers/specs/2026-05-18-guards-design.md
|
|
14
14
|
*/
|
|
15
|
-
export declare function withGuard<T extends Record<string, unknown>>(strategy:
|
|
15
|
+
export declare function withGuard<T extends Record<string, unknown>>(strategy: GuardSpec<T>): GuardStrategy<T>;
|
|
@@ -16,3 +16,5 @@ export { withPeriods } from './active.js';
|
|
|
16
16
|
export type { PeriodsStrategy } from './strategy.js';
|
|
17
17
|
export { PERIODS_COLLECTION, PERIOD_FREEZES_COLLECTION, PERIOD_ARCHIVES_COLLECTION, PERIOD_TARGET_PURGES_COLLECTION, periodExclusiveUpperBound, loadPeriods, chainAnchor, assertTsWritable, validatePeriodName, appendPeriodLedgerEntry, } from './periods.js';
|
|
18
18
|
export type { PeriodRecord, PeriodFreezeRecord, PeriodArchiveRecord, PeriodTargetPurgeRecord, TargetPurgeCount, ClosePeriodOptions, OpenPeriodOptions, CarryForwardContext, ReadOnlyCollection, } from './periods.js';
|
|
19
|
+
/** The un-opted-in stub for this service — exported so callers can compare against it (#844). */
|
|
20
|
+
export { NO_PERIODS } from './strategy.js';
|
|
@@ -146,14 +146,7 @@
|
|
|
146
146
|
*/
|
|
147
147
|
import type { NoydbStore, EncryptedEnvelope } from '../../kernel/types.js';
|
|
148
148
|
import type { LedgerStore } from '../../with-commit/history/ledger/index.js';
|
|
149
|
-
|
|
150
|
-
export declare const PERIODS_COLLECTION = "_periods";
|
|
151
|
-
/** Sibling of {@link PERIODS_COLLECTION} holding freeze companions (#604). */
|
|
152
|
-
export declare const PERIOD_FREEZES_COLLECTION = "_period_freezes";
|
|
153
|
-
/** Sibling of {@link PERIODS_COLLECTION} holding archive companions (#613). */
|
|
154
|
-
export declare const PERIOD_ARCHIVES_COLLECTION = "_period_archives";
|
|
155
|
-
/** Sibling of {@link PERIODS_COLLECTION} holding target-purge companions (#615). */
|
|
156
|
-
export declare const PERIOD_TARGET_PURGES_COLLECTION = "_period_target_purges";
|
|
149
|
+
export { PERIODS_COLLECTION, PERIOD_FREEZES_COLLECTION, PERIOD_ARCHIVES_COLLECTION, PERIOD_TARGET_PURGES_COLLECTION, periodExclusiveUpperBound, } from './window.js';
|
|
157
150
|
/**
|
|
158
151
|
* Companion record recording that a closed period was frozen (its delete
|
|
159
152
|
* markers physically purged). Stored in {@link PERIOD_FREEZES_COLLECTION},
|
|
@@ -196,14 +189,6 @@ export interface PeriodTargetPurgeRecord {
|
|
|
196
189
|
readonly purgedBy: string;
|
|
197
190
|
readonly targets: readonly TargetPurgeCount[];
|
|
198
191
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Exclusive upper bound for a period's delete-marker purge window (#604).
|
|
201
|
-
* Markers carry no business date (empty body), only write-time `_ts`, so freeze
|
|
202
|
-
* purges markers with `_ts < bound`, `bound` being the instant just after the
|
|
203
|
-
* period's inclusive `endDate`: a date-only `endDate` seals through end-of-day
|
|
204
|
-
* → next midnight; a full-timestamp `endDate` seals through that instant → +1ms.
|
|
205
|
-
*/
|
|
206
|
-
export declare function periodExclusiveUpperBound(endDate: string): string;
|
|
207
192
|
/**
|
|
208
193
|
* Stored record for one closed or opened accounting period. One entry
|
|
209
194
|
* per period, keyed by `name` in the reserved `_periods` collection.
|
|
@@ -28,6 +28,12 @@ export interface VaultPeriodsDeps {
|
|
|
28
28
|
archiveRecords(before: string): Promise<number>;
|
|
29
29
|
/** #615: sweep delete markers off the vault's push-only sync targets. Bound to `vault._purgePeriodTargets`. */
|
|
30
30
|
purgeTargets(before: string): Promise<readonly TargetPurgeCount[]>;
|
|
31
|
+
/**
|
|
32
|
+
* #822: mark a reserved-collection write dirty so the sync engine pushes
|
|
33
|
+
* it. Bound to the vault's `onDirty` when sync is configured, `undefined`
|
|
34
|
+
* otherwise. Only `_periods` uses it — see `writeReserved`.
|
|
35
|
+
*/
|
|
36
|
+
onDirty?: ((collection: string, id: string, action: 'put', version: number) => Promise<void>) | undefined;
|
|
31
37
|
}
|
|
32
38
|
export declare class VaultPeriods {
|
|
33
39
|
private readonly deps;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The reserved collection name holding closed-period metadata. */
|
|
2
|
+
export declare const PERIODS_COLLECTION = "_periods";
|
|
3
|
+
/** Sibling of {@link PERIODS_COLLECTION} holding freeze companions (#604). */
|
|
4
|
+
export declare const PERIOD_FREEZES_COLLECTION = "_period_freezes";
|
|
5
|
+
/** Sibling of {@link PERIODS_COLLECTION} holding archive companions (#613). */
|
|
6
|
+
export declare const PERIOD_ARCHIVES_COLLECTION = "_period_archives";
|
|
7
|
+
/** Sibling of {@link PERIODS_COLLECTION} holding target-purge companions (#615). */
|
|
8
|
+
export declare const PERIOD_TARGET_PURGES_COLLECTION = "_period_target_purges";
|
|
9
|
+
/**
|
|
10
|
+
* Exclusive upper bound for a period's delete-marker purge window (#604).
|
|
11
|
+
* Markers carry no business date (empty body), only write-time `_ts`, so freeze
|
|
12
|
+
* purges markers with `_ts < bound`, `bound` being the instant just after the
|
|
13
|
+
* period's inclusive `endDate`: a date-only `endDate` seals through end-of-day
|
|
14
|
+
* → next midnight; a full-timestamp `endDate` seals through that instant → +1ms.
|
|
15
|
+
*/
|
|
16
|
+
export declare function periodExclusiveUpperBound(endDate: string): string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Reuses the existing bundle machinery: the access boundary is the caller's DEK
|
|
8
8
|
* set (operator/client → `keyring.permissions`; owner/admin/viewer → all), so a
|
|
9
9
|
* record outside the caller's keys can never enter the bundle. Re-keying to a
|
|
10
|
-
* new owner reuses `writePod`'s `
|
|
10
|
+
* new owner reuses `writePod`'s `exportSecret` shorthand.
|
|
11
11
|
*/
|
|
12
12
|
import type { Vault } from '../../kernel/vault.js';
|
|
13
13
|
import type { UnlockedKeyring } from '../../with-party/team/keyring.js';
|
|
@@ -22,16 +22,16 @@ export declare function resolveAccessibleCollections(keyring: UnlockedKeyring, s
|
|
|
22
22
|
} | undefined, writableOnly?: boolean): string[] | undefined;
|
|
23
23
|
/** Produce a (optionally re-keyed, scoped) `.noydb` bundle — no audit. */
|
|
24
24
|
export declare function buildAccessibleBundle(vault: Vault, collections: string[] | undefined, reKey: {
|
|
25
|
-
|
|
25
|
+
secret: string;
|
|
26
26
|
} | undefined, compression?: 'auto' | 'brotli' | 'gzip' | 'none'): Promise<Uint8Array>;
|
|
27
27
|
export interface ExportAccessibleOptions {
|
|
28
28
|
/**
|
|
29
29
|
* Re-key the bundle so it is independently openable by a new owner with this
|
|
30
|
-
*
|
|
30
|
+
* secret (the receiving firm / the client themselves). Omit to inherit
|
|
31
31
|
* the source keyring (personal backup).
|
|
32
32
|
*/
|
|
33
33
|
readonly reKey?: {
|
|
34
|
-
readonly
|
|
34
|
+
readonly secret: string;
|
|
35
35
|
};
|
|
36
36
|
/** Narrow the export to a subset of the caller's accessible collections. */
|
|
37
37
|
readonly scope?: {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Requests live in the reserved `_user_withdrawal_requests` namespace. The
|
|
16
16
|
* record body is plaintext metadata (collection names + disposition + legal
|
|
17
17
|
* basis — none secret in this trust model; the owner sees the data anyway) and
|
|
18
|
-
* carries NO
|
|
18
|
+
* carries NO secret: the re-key secret is supplied by the approver at
|
|
19
19
|
* approval time and conveyed to the requester out-of-band, so no secret is
|
|
20
20
|
* stored at rest.
|
|
21
21
|
*/
|
|
@@ -66,9 +66,9 @@ export declare function listWithdrawalRequests(vault: Vault, opts?: {
|
|
|
66
66
|
status?: WithdrawalRequestStatus;
|
|
67
67
|
}): Promise<WithdrawalRequest[]>;
|
|
68
68
|
export interface ApproveWithdrawalOptions {
|
|
69
|
-
/** Re-key the handed-back bundle to a
|
|
69
|
+
/** Re-key the handed-back bundle to a secret the requester will use. */
|
|
70
70
|
readonly reKey?: {
|
|
71
|
-
readonly
|
|
71
|
+
readonly secret: string;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
@@ -29,9 +29,9 @@ export interface FrozenSnapshotRef {
|
|
|
29
29
|
export interface WithdrawAccessibleOptions {
|
|
30
30
|
/** Legal/contractual basis recorded in the audit (e.g. 'gdpr-art-17'). */
|
|
31
31
|
readonly legalBasis: string;
|
|
32
|
-
/** Re-key the exported bundle to a new owner
|
|
32
|
+
/** Re-key the exported bundle to a new owner secret. */
|
|
33
33
|
readonly reKey?: {
|
|
34
|
-
readonly
|
|
34
|
+
readonly secret: string;
|
|
35
35
|
};
|
|
36
36
|
/** Source disposition. Default 'delete'. */
|
|
37
37
|
readonly disposition?: 'delete' | 'freeze';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
15
|
import type { SealingContext } from '../../kernel/enclave/index.js';
|
|
16
|
-
import type { RecipientSealer } from '../../with-party/team/managed-
|
|
16
|
+
import type { RecipientSealer } from '../../with-party/team/managed-secret.js';
|
|
17
17
|
export interface SealedRecordStrategy {
|
|
18
18
|
sealRecordToHost(ctx: SealingContext, collection: string, id: string, hostSealer: RecipientSealer, opts: {
|
|
19
19
|
expiresAt: string;
|
|
@@ -392,3 +392,4 @@ export declare function demote<T>(ctx: TiersContext<T>, id: string, toTier: numb
|
|
|
392
392
|
export declare function classifySealedShred<T>(ctx: TiersContext<T>, live: EncryptedEnvelope): Promise<{
|
|
393
393
|
readonly slots: readonly SealedShredSlot[];
|
|
394
394
|
}>;
|
|
395
|
+
export type { SealedShredSlot } from '../../kernel/enclave/index.js';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type EnclaveKey } from '../kernel/enclave/index.js';
|
|
11
11
|
import type { NoydbStore } from '../kernel/types.js';
|
|
12
|
-
import type { SealingKeyProvider } from '../with-party/team/managed-
|
|
12
|
+
import type { SealingKeyProvider } from '../with-party/team/managed-secret.js';
|
|
13
13
|
import type { ShamirRecoveryProvider } from '../with-party/team/shamir-recovery-provider.js';
|
|
14
14
|
import type { RecoveryEnrollmentInput } from '../with-party/team/rotate-recover.js';
|
|
15
15
|
import type { TransferSealPayload } from '../with-pod/bundle.js';
|
|
@@ -35,14 +35,14 @@ export interface CreateOwnerResult {
|
|
|
35
35
|
readonly vaultName: string;
|
|
36
36
|
readonly userId: string;
|
|
37
37
|
}
|
|
38
|
-
/** Standard-mode owner: recipient supplies the
|
|
38
|
+
/** Standard-mode owner: recipient supplies the secret. */
|
|
39
39
|
export interface CreateOwnerStandardOptions {
|
|
40
40
|
readonly userId: string;
|
|
41
|
-
readonly
|
|
41
|
+
readonly secret: string;
|
|
42
42
|
readonly transferKey: Uint8Array;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Managed-mode owner: the
|
|
45
|
+
* Managed-mode owner: the secret is minted + sealed under
|
|
46
46
|
* a `SealingKeyProvider` (e.g. an `at-*` OS keychain) so the partition
|
|
47
47
|
* auto-unlocks on the recipient's device. Managed mode mandates a strong
|
|
48
48
|
* (Shamir) recovery profile at creation, which needs the
|
|
@@ -50,7 +50,7 @@ export interface CreateOwnerStandardOptions {
|
|
|
50
50
|
*/
|
|
51
51
|
export interface CreateOwnerManagedOptions {
|
|
52
52
|
readonly userId: string;
|
|
53
|
-
readonly
|
|
53
|
+
readonly secretMode: 'managed';
|
|
54
54
|
readonly sealingKey: SealingKeyProvider;
|
|
55
55
|
readonly recovery: ReadonlyArray<RecoveryEnrollmentInput>;
|
|
56
56
|
readonly shamirRecovery: ShamirRecoveryProvider;
|
|
@@ -61,8 +61,8 @@ export type CreateOwnerOptions = CreateOwnerStandardOptions | CreateOwnerManaged
|
|
|
61
61
|
* Mint the first owner keyring on an adopted-but-unowned partition,
|
|
62
62
|
* then destroy the transfer seal.
|
|
63
63
|
*
|
|
64
|
-
* Standard mode: the recipient supplies a
|
|
65
|
-
*
|
|
64
|
+
* Standard mode: the recipient supplies a secret. Managed mode: the
|
|
65
|
+
* secret is minted + sealed under a `SealingKeyProvider` and a strong
|
|
66
66
|
* (Shamir) recovery profile is enrolled — orchestrated via the existing
|
|
67
67
|
* `openVaultAndEnrollRecovery` ceremony.
|
|
68
68
|
*
|