@noy-db/hub 0.7.0-pre.8 → 0.7.0
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/CHANGELOG.md +1379 -0
- package/README.md +7 -6
- package/dist/api-TXFOVOXX.js +19 -0
- package/dist/as/index.js +14 -14
- package/dist/at/index.js +9 -10
- package/dist/attestation/index.js +18 -19
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-SZBDQQSL.js → backup-IJTB4S4M.js} +14 -15
- package/dist/{backup-SZBDQQSL.js.map → backup-IJTB4S4M.js.map} +1 -1
- package/dist/blobs/index.js +13 -14
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -13
- package/dist/broker/index.js.map +1 -1
- package/dist/by/index.js +2 -3
- package/dist/cargo/index.js +33 -34
- package/dist/{chunk-X6TBQKHW.js → chunk-2577DKXB.js} +2 -2
- package/dist/chunk-2C3AQB46.js +1652 -0
- package/dist/chunk-2C3AQB46.js.map +1 -0
- package/dist/{chunk-L3FHEWA3.js → chunk-2N4GY74U.js} +6 -6
- package/dist/{chunk-626TSARM.js → chunk-2Y4IMKA6.js} +4 -4
- package/dist/{chunk-7CWII4BL.js → chunk-3RCJJBNR.js} +10 -10
- package/dist/{chunk-M7UC2QPT.js → chunk-453F654R.js} +2 -2
- package/dist/{chunk-2QNKXGUS.js → chunk-4GVM6QZA.js} +2 -2
- package/dist/{chunk-AB5P32RE.js → chunk-4OZNXTO4.js} +2 -2
- package/dist/{chunk-L3HDEHGM.js → chunk-5VCRVKOZ.js} +4 -4
- package/dist/{chunk-6AQIFBSP.js → chunk-5WDXHNSW.js} +5 -5
- package/dist/chunk-66TQOPFM.js +37 -0
- package/dist/chunk-66TQOPFM.js.map +1 -0
- package/dist/{chunk-BOFRKAUS.js → chunk-6GMZ7HEE.js} +6 -6
- package/dist/{chunk-PRHCMEUK.js → chunk-6GOE5PGN.js} +168 -1328
- package/dist/chunk-6GOE5PGN.js.map +1 -0
- package/dist/{chunk-XBFEKTIY.js → chunk-6I2RQCET.js} +4 -4
- package/dist/{chunk-PUJTKLPL.js → chunk-6X6SEMEE.js} +6 -4
- package/dist/{chunk-PUJTKLPL.js.map → chunk-6X6SEMEE.js.map} +1 -1
- package/dist/{chunk-UCUALOSM.js → chunk-6YXCPL4T.js} +2 -2
- package/dist/{chunk-BYBB4ABD.js → chunk-77K4PG6P.js} +8 -8
- package/dist/{chunk-S2VG3ABP.js → chunk-7MG2LHO5.js} +3 -3
- package/dist/{chunk-GU3LQYW2.js → chunk-7MG7SJT7.js} +1 -1
- package/dist/chunk-7MG7SJT7.js.map +1 -0
- package/dist/{chunk-JBIV4FLR.js → chunk-7O3Y4PPD.js} +5 -1
- package/dist/chunk-7O3Y4PPD.js.map +1 -0
- package/dist/{chunk-EO2KGKEJ.js → chunk-7V4TP3AF.js} +4 -4
- package/dist/{chunk-LFDMKZIP.js → chunk-ANATMFIO.js} +5 -5
- package/dist/{chunk-T3PHCEN4.js → chunk-ANSIZYEG.js} +3 -3
- package/dist/{chunk-ZKRRBRSZ.js → chunk-AO42KJO6.js} +7 -7
- package/dist/{chunk-VFIWDPXZ.js → chunk-BLN54W3L.js} +3 -3
- package/dist/{chunk-ZQ2UUHSL.js → chunk-BM5TWITZ.js} +7 -7
- package/dist/{chunk-WLFABTZ6.js → chunk-BOET4NA4.js} +3 -3
- package/dist/{chunk-FOG7YEJP.js → chunk-BOWNCWZT.js} +3 -3
- package/dist/{chunk-7XODKGTW.js → chunk-BSFNRLK2.js} +5 -5
- package/dist/{chunk-YPSOHDNC.js → chunk-BUE2D7PX.js} +26 -3
- package/dist/chunk-BUE2D7PX.js.map +1 -0
- package/dist/{chunk-J4MN6XIU.js → chunk-BZ3534YM.js} +2 -2
- package/dist/chunk-CARABLSQ.js +176 -0
- package/dist/chunk-CARABLSQ.js.map +1 -0
- package/dist/{chunk-4MZEZ37W.js → chunk-CHJBLCOG.js} +10 -8
- package/dist/{chunk-4MZEZ37W.js.map → chunk-CHJBLCOG.js.map} +1 -1
- package/dist/{chunk-IF56DYJK.js → chunk-CPWQB3N5.js} +7 -7
- package/dist/{chunk-SHILAQH5.js → chunk-DGOZ4UZD.js} +2 -2
- package/dist/{chunk-BWWUXE3L.js → chunk-ELNXJMGB.js} +6 -6
- package/dist/{chunk-44C2URL7.js → chunk-EQEYOJBM.js} +3 -3
- package/dist/{chunk-Y3XWRDAM.js → chunk-EYBQEIUY.js} +3 -3
- package/dist/{chunk-Z7ZXZL6Y.js → chunk-FAHMLERK.js} +2 -2
- package/dist/chunk-FFWI7UH7.js +53 -0
- package/dist/chunk-FFWI7UH7.js.map +1 -0
- package/dist/{chunk-EXDIHWFO.js → chunk-FMZY5Q6L.js} +3 -3
- package/dist/{chunk-H6WXKZL7.js → chunk-FXBIP2WD.js} +6 -6
- package/dist/{chunk-ZTYG36DH.js → chunk-G56KBWFY.js} +67 -22
- package/dist/chunk-G56KBWFY.js.map +1 -0
- package/dist/{chunk-672U6STZ.js → chunk-GPEQUXHL.js} +4 -4
- package/dist/{chunk-Z2PWOSCJ.js → chunk-GY4WYNNG.js} +2 -2
- package/dist/{chunk-RDHUZ674.js → chunk-HDOU6I2Y.js} +80 -8
- package/dist/chunk-HDOU6I2Y.js.map +1 -0
- package/dist/{chunk-OMHHGOG4.js → chunk-J6FXAEUG.js} +15 -13
- package/dist/chunk-J6FXAEUG.js.map +1 -0
- package/dist/{chunk-4A4TYISP.js → chunk-JBDFMYKQ.js} +2 -2
- package/dist/{chunk-POS53FG6.js → chunk-JMGDHKQF.js} +2 -2
- package/dist/{chunk-Q7GEDVHC.js → chunk-K6LHRFBL.js} +7 -7
- package/dist/{chunk-4JDIRUTT.js → chunk-K7NTTA6P.js} +2 -2
- package/dist/{chunk-26W5VETY.js → chunk-KG7TZKZG.js} +5 -5
- package/dist/{chunk-RJ7RIIX6.js → chunk-KJIMGIWO.js} +8 -8
- package/dist/{chunk-F7ZFRPGQ.js → chunk-KTFRCC5C.js} +2 -2
- package/dist/{chunk-HSGEIMJS.js → chunk-KUJDV5QH.js} +5 -5
- package/dist/{chunk-XWNLKG6R.js → chunk-KUX3OB6D.js} +7 -5
- package/dist/{chunk-XWNLKG6R.js.map → chunk-KUX3OB6D.js.map} +1 -1
- package/dist/{chunk-UPJMBMCR.js → chunk-L742JPKZ.js} +6 -6
- package/dist/{chunk-4TZUFNXL.js → chunk-L7CIOOBW.js} +2 -2
- package/dist/{chunk-7LYUJNU3.js → chunk-LWBCUYZW.js} +2 -2
- package/dist/{chunk-JHLJQUXU.js → chunk-MUM7IANK.js} +3 -3
- package/dist/{chunk-2GXEQUEX.js → chunk-MVMXZYXT.js} +2 -2
- package/dist/{chunk-XLPXGN66.js → chunk-NA2NIJZI.js} +8 -8
- package/dist/{chunk-S6YB5ZRP.js → chunk-NKHRDYOR.js} +4 -4
- package/dist/{chunk-XJ3FEKEY.js → chunk-NQKIUNW5.js} +2 -2
- package/dist/{chunk-6NRVFD55.js → chunk-PT43Y56J.js} +6 -6
- package/dist/{chunk-5ACAVJUI.js → chunk-Q2PU57HC.js} +2 -2
- package/dist/{chunk-E6YA6UAP.js → chunk-Q7HZX3IF.js} +2 -2
- package/dist/{chunk-4ZPE6SKS.js → chunk-QIBVIOXO.js} +3 -3
- package/dist/{chunk-WLLUM35R.js → chunk-QIZPZMUI.js} +2 -2
- package/dist/{chunk-P6ASQOZR.js → chunk-REDOOY2Q.js} +3 -3
- package/dist/chunk-REDOOY2Q.js.map +1 -0
- package/dist/{chunk-LKFKXS5K.js → chunk-RMF67KCG.js} +2 -2
- package/dist/{chunk-YCSM3GZU.js → chunk-RMS3NEA3.js} +2 -2
- package/dist/{chunk-4FPEWQKF.js → chunk-RRNRNANG.js} +27 -17
- package/dist/chunk-RRNRNANG.js.map +1 -0
- package/dist/chunk-RTBJ5IOO.js +87 -0
- package/dist/chunk-RTBJ5IOO.js.map +1 -0
- package/dist/chunk-RXLYKVTF.js +17 -0
- package/dist/chunk-RXLYKVTF.js.map +1 -0
- package/dist/{chunk-OPXR4PB2.js → chunk-SFAWCTEM.js} +2 -2
- package/dist/{chunk-3QARDAYW.js → chunk-SKGMN35F.js} +2 -2
- package/dist/{chunk-W5LHQXZU.js → chunk-SL3JAAKN.js} +2 -2
- package/dist/chunk-SMH6SRX7.js +87 -0
- package/dist/chunk-SMH6SRX7.js.map +1 -0
- package/dist/{chunk-JJZIIJSA.js → chunk-SPXXX5E4.js} +12 -82
- package/dist/chunk-SPXXX5E4.js.map +1 -0
- package/dist/{chunk-UALOYGCP.js → chunk-SPYWXKJN.js} +3 -3
- package/dist/{chunk-QU3YUP2X.js → chunk-SZJ3DLZA.js} +2 -2
- package/dist/chunk-TFMM5DBB.js +20 -0
- package/dist/chunk-TFMM5DBB.js.map +1 -0
- package/dist/{chunk-225O5CXQ.js → chunk-TFR7DSOV.js} +2 -2
- package/dist/{chunk-X67FCULK.js → chunk-TRGTKX5E.js} +3 -3
- package/dist/{chunk-JVLSU7S2.js → chunk-TUFM4UZP.js} +2 -2
- package/dist/{chunk-VVAVTSTR.js → chunk-U4FOQDY4.js} +5 -172
- package/dist/chunk-U4FOQDY4.js.map +1 -0
- package/dist/{chunk-HTGRQZFB.js → chunk-UGTBXF5U.js} +3 -3
- package/dist/{chunk-THNJ3IKU.js → chunk-ULUMAZ5S.js} +2 -2
- package/dist/{chunk-XDVVBETV.js → chunk-UXVWEX5L.js} +2 -2
- package/dist/{chunk-FKFIEEY6.js → chunk-UXWB3FPF.js} +10 -10
- package/dist/{chunk-NO272T7Q.js → chunk-V4PXLYWM.js} +2 -31
- package/dist/chunk-V4PXLYWM.js.map +1 -0
- package/dist/{chunk-CBRS2NEK.js → chunk-VTFVLCUH.js} +2 -2
- package/dist/{chunk-TOV6VMHF.js → chunk-VXANTWBJ.js} +3 -3
- package/dist/{chunk-VSLUSXVK.js → chunk-VXGSWL6L.js} +6 -6
- package/dist/{chunk-KHKKD62N.js → chunk-VYYM3MEN.js} +2 -16
- package/dist/chunk-VYYM3MEN.js.map +1 -0
- package/dist/{chunk-HQINBNHM.js → chunk-WEQEYLCS.js} +7 -7
- package/dist/{chunk-U6GCYG2T.js → chunk-X2DLENDQ.js} +3 -3
- package/dist/{chunk-XVU7J43V.js → chunk-XLMEZIAJ.js} +2 -2
- package/dist/{chunk-ILSR22WM.js → chunk-XTXOCYOJ.js} +5 -5
- package/dist/{chunk-KDJGJR7F.js → chunk-YSRUYAVU.js} +2 -2
- package/dist/{chunk-NLKLXXTO.js → chunk-YYP7WSEB.js} +2 -2
- package/dist/{chunk-4G25SDQL.js → chunk-ZN4FD4PE.js} +4 -4
- package/dist/{chunk-XSN63FUS.js → chunk-ZORTV6NH.js} +2 -2
- package/dist/{chunk-S3I7VKID.js → chunk-ZVO4QVPD.js} +5 -5
- package/dist/classified/index.js +5 -6
- package/dist/{classified-marker-KL4YXUXD.js → classified-marker-LI2SF2E4.js} +3 -5
- package/dist/{classified-marker-KL4YXUXD.js.map → classified-marker-LI2SF2E4.js.map} +1 -1
- package/dist/collection-facade-4GRREZ6C.js +45 -0
- package/dist/computed-VPOKQK4N.js +10 -0
- package/dist/consent/index.js +9 -10
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +9 -10
- package/dist/crdt/index.js +0 -1
- package/dist/crdt/index.js.map +1 -1
- package/dist/custody/index.js +12 -13
- package/dist/{dead-filter-ZGRFZKYE.js → dead-filter-TSWZQRR5.js} +2 -3
- package/dist/{dead-filter-ZGRFZKYE.js.map → dead-filter-TSWZQRR5.js.map} +1 -1
- package/dist/debug/index.js +1 -2
- package/dist/debug/index.js.map +1 -1
- package/dist/{delegation-2DO3VI5E.js → delegation-OVIFFPG4.js} +11 -12
- package/dist/{delegation-2DO3VI5E.js.map → delegation-OVIFFPG4.js.map} +1 -1
- package/dist/derivations/index.js +30 -16
- package/dist/derive-6O5SWQKN.js +21 -0
- package/dist/directory/index.js +10 -11
- package/dist/dispatch-S73TK3IY.js +302 -0
- package/dist/dispatch-S73TK3IY.js.map +1 -0
- package/dist/{dispatch-M62IAL2S.js → dispatch-WC6X2M6C.js} +5 -7
- package/dist/{dispatch-M62IAL2S.js.map → dispatch-WC6X2M6C.js.map} +1 -1
- package/dist/{enclave-4P4KH5ZW.js → enclave-KJOTOH7X.js} +9 -10
- package/dist/executor-5NIMLSKZ.js +8 -0
- package/dist/executor-AQVXV5GZ.js +8 -0
- package/dist/executor-PUAO6AKJ.js +29 -0
- package/dist/export-accessible-72EQNBMR.js +22 -0
- package/dist/extract-partition-PUYNU3UF.js +37 -0
- package/dist/{fanout-sidecar-BRQHWTZQ.js → fanout-sidecar-WUFXNYP4.js} +9 -10
- package/dist/{fanout-sidecar-BRQHWTZQ.js.map → fanout-sidecar-WUFXNYP4.js.map} +1 -1
- package/dist/{fence-watcher-ZVSMLKQD.js → fence-watcher-U2PW6JU5.js} +1 -3
- package/dist/{fence-watcher-ZVSMLKQD.js.map → fence-watcher-U2PW6JU5.js.map} +1 -1
- package/dist/find-2ABFCZX4.js +10 -0
- package/dist/forget/index.js +9 -10
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -5
- package/dist/history/index.js +13 -14
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +14 -15
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +20 -4
- package/dist/index.js +122 -115
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -3
- package/dist/indexing/index.js.map +1 -1
- package/dist/introspection/index.js +13 -13
- package/dist/issue-SIDORTSZ.js +18 -0
- package/dist/{json-schema-I22JCYCG.js → json-schema-V3M5MUCM.js} +1 -3
- package/dist/{json-schema-I22JCYCG.js.map → json-schema-V3M5MUCM.js.map} +1 -1
- package/dist/kernel/collection-config.d.ts +34 -0
- package/dist/kernel/collection.d.ts +11 -6
- package/dist/kernel/errors.d.ts +45 -0
- package/dist/kernel/match-pairs.d.ts +30 -0
- package/dist/kernel/types.d.ts +66 -0
- package/dist/lazy/index.js +3 -3
- package/dist/{ledger-4X5ZH43X.js → ledger-F33ZVMTK.js} +11 -12
- package/dist/liberate-LCDPNAG2.js +24 -0
- package/dist/link-set-FKNWAYKS.js +30 -0
- package/dist/{managed-secret-CXALLEUB.js → managed-secret-PQYKSR6T.js} +10 -11
- package/dist/materialized-views/index.js +21 -21
- package/dist/{migrate-cek-LBRKYUZZ.js → migrate-cek-5ENH64AA.js} +2 -3
- package/dist/{migrate-cek-LBRKYUZZ.js.map → migrate-cek-5ENH64AA.js.map} +1 -1
- package/dist/money/index.js +4 -5
- package/dist/noydb-DUXZPKSN.js +90 -0
- package/dist/overlay-views/index.js +4 -5
- package/dist/periods/index.js +12 -13
- package/dist/pod/index.js +64 -60
- package/dist/{pod-handle-DHEYBTJ2.js → pod-handle-Q736KYON.js} +10 -11
- package/dist/{pod-handle-DHEYBTJ2.js.map → pod-handle-Q736KYON.js.map} +1 -1
- package/dist/policy/index.js +10 -11
- package/dist/port/to/index.d.ts +40 -0
- package/dist/portability/index.js +8 -9
- package/dist/portability/index.js.map +1 -1
- package/dist/{post-register-4DXRYGTU.js → post-register-LNE2FE2A.js} +6 -7
- package/dist/{post-register-4DXRYGTU.js.map → post-register-LNE2FE2A.js.map} +1 -1
- package/dist/{purge-scope-FGNNLWHD.js → purge-scope-4HEFPDOW.js} +1 -3
- package/dist/{purge-scope-FGNNLWHD.js.map → purge-scope-4HEFPDOW.js.map} +1 -1
- package/dist/query/index.js +3 -4
- package/dist/{read-only-facade-CHCKSEPD.js → read-only-facade-BIGO37U3.js} +1 -2
- package/dist/reduce/index.js +4 -5
- package/dist/reduce/index.js.map +1 -1
- package/dist/register-I2DZXGAR.js +31 -0
- package/dist/registry-23WF3TGH.js +8 -0
- package/dist/registry-4AYVUNXK.js +8 -0
- package/dist/registry-VSSQPIGF.js +18 -0
- package/dist/registry-YLEWMGAC.js +32 -0
- package/dist/request-withdrawal-KFQHEZ25.js +30 -0
- package/dist/{reveal-X2QMWOVX.js → reveal-67RDQRIN.js} +6 -7
- package/dist/{reveal-X2QMWOVX.js.map → reveal-67RDQRIN.js.map} +1 -1
- package/dist/revoke-DQDZAZZM.js +23 -0
- package/dist/satellites/index.js +1 -2
- package/dist/schema-update/index.js +2 -3
- package/dist/sealed-record/index.js +12 -13
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +4 -5
- package/dist/{seed-IX5NFSH5.js → seed-G42JYN56.js} +12 -13
- package/dist/{seed-IX5NFSH5.js.map → seed-G42JYN56.js.map} +1 -1
- package/dist/sequence/index.js +9 -10
- package/dist/session/index.js +9 -10
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +2 -3
- package/dist/shadow/index.js.map +1 -1
- package/dist/share-link/index.js +0 -1
- package/dist/share-link/index.js.map +1 -1
- package/dist/signer-WAMDZHEN.js +24 -0
- package/dist/snapshots/index.js +10 -11
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-5I36LPVK.js → stale-DDL7WQEZ.js} +10 -11
- package/dist/storage-FLR73HHF.js +22 -0
- package/dist/store/index.js +0 -1
- package/dist/{store-coordination-provider-OLPNRMFO.js → store-coordination-provider-MEQ2MJQG.js} +10 -11
- package/dist/{store-coordination-provider-OLPNRMFO.js.map → store-coordination-provider-MEQ2MJQG.js.map} +1 -1
- package/dist/sync/index.js +10 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +15 -16
- package/dist/tiers/index.js +11 -12
- package/dist/to/index.js +2 -3
- package/dist/to/index.js.map +1 -1
- package/dist/transactions/index.js +3 -4
- package/dist/transactions/index.js.map +1 -1
- package/dist/{ulid-VQW6ERQN.js → ulid-4MKXG325.js} +1 -2
- package/dist/util/index.js +1 -2
- package/dist/util/index.js.map +1 -1
- package/dist/{vault-diff-FE5J35NJ.js → vault-diff-C6WUJFNP.js} +1 -2
- package/dist/vault-head/index.js +8 -9
- package/dist/vault-head/index.js.map +1 -1
- package/dist/{verify-WYOFLSNA.js → verify-KOV2G5D6.js} +5 -6
- package/dist/{verify-WYOFLSNA.js.map → verify-KOV2G5D6.js.map} +1 -1
- package/dist/walk-3UQBRMDV.js +21 -0
- package/dist/with-formula/derivations/dispatch.d.ts +16 -1
- package/dist/with-formula/derivations/registry.d.ts +20 -0
- package/dist/with-formula/derivations/trigger-match.d.ts +104 -0
- package/dist/with-formula/derivations/types.d.ts +61 -0
- package/dist/with-party/team/roster-epoch.d.ts +71 -0
- package/dist/with-party/team/roster-tag.d.ts +1 -1
- package/dist/with-shape/introspection/behaviors.d.ts +7 -0
- package/dist/with-shape/introspection/describe.d.ts +10 -1
- package/dist/with-shape/introspection/field-meta.d.ts +86 -0
- package/dist/withdraw-accessible-EL5GXZBS.js +27 -0
- package/package.json +8 -3
- package/dist/api-OAZLPNVV.js +0 -20
- package/dist/chunk-4FPEWQKF.js.map +0 -1
- package/dist/chunk-5263OEM3.js +0 -344
- package/dist/chunk-5263OEM3.js.map +0 -1
- package/dist/chunk-GU3LQYW2.js.map +0 -1
- package/dist/chunk-JBIV4FLR.js.map +0 -1
- package/dist/chunk-JJZIIJSA.js.map +0 -1
- package/dist/chunk-KHKKD62N.js.map +0 -1
- package/dist/chunk-NO272T7Q.js.map +0 -1
- package/dist/chunk-OMHHGOG4.js.map +0 -1
- package/dist/chunk-P6ASQOZR.js.map +0 -1
- package/dist/chunk-PRHCMEUK.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-RDHUZ674.js.map +0 -1
- package/dist/chunk-VAG47QHV.js +0 -81
- package/dist/chunk-VAG47QHV.js.map +0 -1
- package/dist/chunk-VVAVTSTR.js.map +0 -1
- package/dist/chunk-YPSOHDNC.js.map +0 -1
- package/dist/chunk-ZTYG36DH.js.map +0 -1
- package/dist/collection-facade-6IY2LW6W.js +0 -45
- package/dist/computed-ASBNTLOK.js +0 -11
- package/dist/derive-TCTS7ULE.js +0 -22
- package/dist/dispatch-FNCCONFK.js +0 -194
- package/dist/dispatch-FNCCONFK.js.map +0 -1
- package/dist/executor-AFHQYRAU.js +0 -9
- package/dist/executor-CDIMJVE2.js +0 -29
- package/dist/executor-YYDW6XQI.js +0 -9
- package/dist/export-accessible-WADNWX35.js +0 -23
- package/dist/extract-partition-SHQYQSWE.js +0 -38
- package/dist/find-SZBL2HPB.js +0 -11
- package/dist/issue-2DGG7NKE.js +0 -19
- package/dist/liberate-7NEPRE52.js +0 -25
- package/dist/link-set-WHTYVTOV.js +0 -31
- package/dist/noydb-BQ3ZTN2Z.js +0 -86
- package/dist/register-GLCOH73C.js +0 -32
- package/dist/registry-GWGHZWGP.js +0 -19
- package/dist/registry-IWFMXCHX.js +0 -9
- package/dist/registry-Q3FG3OAX.js +0 -9
- package/dist/registry-T346IZCF.js +0 -18
- package/dist/request-withdrawal-2RERJECX.js +0 -31
- package/dist/revoke-4NRSCPNW.js +0 -24
- package/dist/signer-HJHTGX7X.js +0 -25
- package/dist/storage-ZYYAB3J3.js +0 -23
- package/dist/walk-LTV7LOCN.js +0 -21
- package/dist/withdraw-accessible-V4XCPH7U.js +0 -28
- package/dist/withdraw-accessible-V4XCPH7U.js.map +0 -1
- package/dist/zod-HAJM7LMS.js +0 -14763
- package/dist/zod-HAJM7LMS.js.map +0 -1
- /package/dist/{api-OAZLPNVV.js.map → api-TXFOVOXX.js.map} +0 -0
- /package/dist/{chunk-X6TBQKHW.js.map → chunk-2577DKXB.js.map} +0 -0
- /package/dist/{chunk-L3FHEWA3.js.map → chunk-2N4GY74U.js.map} +0 -0
- /package/dist/{chunk-626TSARM.js.map → chunk-2Y4IMKA6.js.map} +0 -0
- /package/dist/{chunk-7CWII4BL.js.map → chunk-3RCJJBNR.js.map} +0 -0
- /package/dist/{chunk-M7UC2QPT.js.map → chunk-453F654R.js.map} +0 -0
- /package/dist/{chunk-2QNKXGUS.js.map → chunk-4GVM6QZA.js.map} +0 -0
- /package/dist/{chunk-AB5P32RE.js.map → chunk-4OZNXTO4.js.map} +0 -0
- /package/dist/{chunk-L3HDEHGM.js.map → chunk-5VCRVKOZ.js.map} +0 -0
- /package/dist/{chunk-6AQIFBSP.js.map → chunk-5WDXHNSW.js.map} +0 -0
- /package/dist/{chunk-BOFRKAUS.js.map → chunk-6GMZ7HEE.js.map} +0 -0
- /package/dist/{chunk-XBFEKTIY.js.map → chunk-6I2RQCET.js.map} +0 -0
- /package/dist/{chunk-UCUALOSM.js.map → chunk-6YXCPL4T.js.map} +0 -0
- /package/dist/{chunk-BYBB4ABD.js.map → chunk-77K4PG6P.js.map} +0 -0
- /package/dist/{chunk-S2VG3ABP.js.map → chunk-7MG2LHO5.js.map} +0 -0
- /package/dist/{chunk-EO2KGKEJ.js.map → chunk-7V4TP3AF.js.map} +0 -0
- /package/dist/{chunk-LFDMKZIP.js.map → chunk-ANATMFIO.js.map} +0 -0
- /package/dist/{chunk-T3PHCEN4.js.map → chunk-ANSIZYEG.js.map} +0 -0
- /package/dist/{chunk-ZKRRBRSZ.js.map → chunk-AO42KJO6.js.map} +0 -0
- /package/dist/{chunk-VFIWDPXZ.js.map → chunk-BLN54W3L.js.map} +0 -0
- /package/dist/{chunk-ZQ2UUHSL.js.map → chunk-BM5TWITZ.js.map} +0 -0
- /package/dist/{chunk-WLFABTZ6.js.map → chunk-BOET4NA4.js.map} +0 -0
- /package/dist/{chunk-FOG7YEJP.js.map → chunk-BOWNCWZT.js.map} +0 -0
- /package/dist/{chunk-7XODKGTW.js.map → chunk-BSFNRLK2.js.map} +0 -0
- /package/dist/{chunk-J4MN6XIU.js.map → chunk-BZ3534YM.js.map} +0 -0
- /package/dist/{chunk-IF56DYJK.js.map → chunk-CPWQB3N5.js.map} +0 -0
- /package/dist/{chunk-SHILAQH5.js.map → chunk-DGOZ4UZD.js.map} +0 -0
- /package/dist/{chunk-BWWUXE3L.js.map → chunk-ELNXJMGB.js.map} +0 -0
- /package/dist/{chunk-44C2URL7.js.map → chunk-EQEYOJBM.js.map} +0 -0
- /package/dist/{chunk-Y3XWRDAM.js.map → chunk-EYBQEIUY.js.map} +0 -0
- /package/dist/{chunk-Z7ZXZL6Y.js.map → chunk-FAHMLERK.js.map} +0 -0
- /package/dist/{chunk-EXDIHWFO.js.map → chunk-FMZY5Q6L.js.map} +0 -0
- /package/dist/{chunk-H6WXKZL7.js.map → chunk-FXBIP2WD.js.map} +0 -0
- /package/dist/{chunk-672U6STZ.js.map → chunk-GPEQUXHL.js.map} +0 -0
- /package/dist/{chunk-Z2PWOSCJ.js.map → chunk-GY4WYNNG.js.map} +0 -0
- /package/dist/{chunk-4A4TYISP.js.map → chunk-JBDFMYKQ.js.map} +0 -0
- /package/dist/{chunk-POS53FG6.js.map → chunk-JMGDHKQF.js.map} +0 -0
- /package/dist/{chunk-Q7GEDVHC.js.map → chunk-K6LHRFBL.js.map} +0 -0
- /package/dist/{chunk-4JDIRUTT.js.map → chunk-K7NTTA6P.js.map} +0 -0
- /package/dist/{chunk-26W5VETY.js.map → chunk-KG7TZKZG.js.map} +0 -0
- /package/dist/{chunk-RJ7RIIX6.js.map → chunk-KJIMGIWO.js.map} +0 -0
- /package/dist/{chunk-F7ZFRPGQ.js.map → chunk-KTFRCC5C.js.map} +0 -0
- /package/dist/{chunk-HSGEIMJS.js.map → chunk-KUJDV5QH.js.map} +0 -0
- /package/dist/{chunk-UPJMBMCR.js.map → chunk-L742JPKZ.js.map} +0 -0
- /package/dist/{chunk-4TZUFNXL.js.map → chunk-L7CIOOBW.js.map} +0 -0
- /package/dist/{chunk-7LYUJNU3.js.map → chunk-LWBCUYZW.js.map} +0 -0
- /package/dist/{chunk-JHLJQUXU.js.map → chunk-MUM7IANK.js.map} +0 -0
- /package/dist/{chunk-2GXEQUEX.js.map → chunk-MVMXZYXT.js.map} +0 -0
- /package/dist/{chunk-XLPXGN66.js.map → chunk-NA2NIJZI.js.map} +0 -0
- /package/dist/{chunk-S6YB5ZRP.js.map → chunk-NKHRDYOR.js.map} +0 -0
- /package/dist/{chunk-XJ3FEKEY.js.map → chunk-NQKIUNW5.js.map} +0 -0
- /package/dist/{chunk-6NRVFD55.js.map → chunk-PT43Y56J.js.map} +0 -0
- /package/dist/{chunk-5ACAVJUI.js.map → chunk-Q2PU57HC.js.map} +0 -0
- /package/dist/{chunk-E6YA6UAP.js.map → chunk-Q7HZX3IF.js.map} +0 -0
- /package/dist/{chunk-4ZPE6SKS.js.map → chunk-QIBVIOXO.js.map} +0 -0
- /package/dist/{chunk-WLLUM35R.js.map → chunk-QIZPZMUI.js.map} +0 -0
- /package/dist/{chunk-LKFKXS5K.js.map → chunk-RMF67KCG.js.map} +0 -0
- /package/dist/{chunk-YCSM3GZU.js.map → chunk-RMS3NEA3.js.map} +0 -0
- /package/dist/{chunk-OPXR4PB2.js.map → chunk-SFAWCTEM.js.map} +0 -0
- /package/dist/{chunk-3QARDAYW.js.map → chunk-SKGMN35F.js.map} +0 -0
- /package/dist/{chunk-W5LHQXZU.js.map → chunk-SL3JAAKN.js.map} +0 -0
- /package/dist/{chunk-UALOYGCP.js.map → chunk-SPYWXKJN.js.map} +0 -0
- /package/dist/{chunk-QU3YUP2X.js.map → chunk-SZJ3DLZA.js.map} +0 -0
- /package/dist/{chunk-225O5CXQ.js.map → chunk-TFR7DSOV.js.map} +0 -0
- /package/dist/{chunk-X67FCULK.js.map → chunk-TRGTKX5E.js.map} +0 -0
- /package/dist/{chunk-JVLSU7S2.js.map → chunk-TUFM4UZP.js.map} +0 -0
- /package/dist/{chunk-HTGRQZFB.js.map → chunk-UGTBXF5U.js.map} +0 -0
- /package/dist/{chunk-THNJ3IKU.js.map → chunk-ULUMAZ5S.js.map} +0 -0
- /package/dist/{chunk-XDVVBETV.js.map → chunk-UXVWEX5L.js.map} +0 -0
- /package/dist/{chunk-FKFIEEY6.js.map → chunk-UXWB3FPF.js.map} +0 -0
- /package/dist/{chunk-CBRS2NEK.js.map → chunk-VTFVLCUH.js.map} +0 -0
- /package/dist/{chunk-TOV6VMHF.js.map → chunk-VXANTWBJ.js.map} +0 -0
- /package/dist/{chunk-VSLUSXVK.js.map → chunk-VXGSWL6L.js.map} +0 -0
- /package/dist/{chunk-HQINBNHM.js.map → chunk-WEQEYLCS.js.map} +0 -0
- /package/dist/{chunk-U6GCYG2T.js.map → chunk-X2DLENDQ.js.map} +0 -0
- /package/dist/{chunk-XVU7J43V.js.map → chunk-XLMEZIAJ.js.map} +0 -0
- /package/dist/{chunk-ILSR22WM.js.map → chunk-XTXOCYOJ.js.map} +0 -0
- /package/dist/{chunk-KDJGJR7F.js.map → chunk-YSRUYAVU.js.map} +0 -0
- /package/dist/{chunk-NLKLXXTO.js.map → chunk-YYP7WSEB.js.map} +0 -0
- /package/dist/{chunk-4G25SDQL.js.map → chunk-ZN4FD4PE.js.map} +0 -0
- /package/dist/{chunk-XSN63FUS.js.map → chunk-ZORTV6NH.js.map} +0 -0
- /package/dist/{chunk-S3I7VKID.js.map → chunk-ZVO4QVPD.js.map} +0 -0
- /package/dist/{chunk-PZ5AY32C.js.map → collection-facade-4GRREZ6C.js.map} +0 -0
- /package/dist/{collection-facade-6IY2LW6W.js.map → computed-VPOKQK4N.js.map} +0 -0
- /package/dist/{computed-ASBNTLOK.js.map → derive-6O5SWQKN.js.map} +0 -0
- /package/dist/{derive-TCTS7ULE.js.map → enclave-KJOTOH7X.js.map} +0 -0
- /package/dist/{enclave-4P4KH5ZW.js.map → executor-5NIMLSKZ.js.map} +0 -0
- /package/dist/{executor-AFHQYRAU.js.map → executor-AQVXV5GZ.js.map} +0 -0
- /package/dist/{executor-CDIMJVE2.js.map → executor-PUAO6AKJ.js.map} +0 -0
- /package/dist/{executor-YYDW6XQI.js.map → export-accessible-72EQNBMR.js.map} +0 -0
- /package/dist/{export-accessible-WADNWX35.js.map → extract-partition-PUYNU3UF.js.map} +0 -0
- /package/dist/{extract-partition-SHQYQSWE.js.map → find-2ABFCZX4.js.map} +0 -0
- /package/dist/{find-SZBL2HPB.js.map → issue-SIDORTSZ.js.map} +0 -0
- /package/dist/{issue-2DGG7NKE.js.map → ledger-F33ZVMTK.js.map} +0 -0
- /package/dist/{ledger-4X5ZH43X.js.map → liberate-LCDPNAG2.js.map} +0 -0
- /package/dist/{liberate-7NEPRE52.js.map → link-set-FKNWAYKS.js.map} +0 -0
- /package/dist/{link-set-WHTYVTOV.js.map → managed-secret-PQYKSR6T.js.map} +0 -0
- /package/dist/{managed-secret-CXALLEUB.js.map → noydb-DUXZPKSN.js.map} +0 -0
- /package/dist/{noydb-BQ3ZTN2Z.js.map → read-only-facade-BIGO37U3.js.map} +0 -0
- /package/dist/{read-only-facade-CHCKSEPD.js.map → register-I2DZXGAR.js.map} +0 -0
- /package/dist/{register-GLCOH73C.js.map → registry-23WF3TGH.js.map} +0 -0
- /package/dist/{registry-GWGHZWGP.js.map → registry-4AYVUNXK.js.map} +0 -0
- /package/dist/{registry-IWFMXCHX.js.map → registry-VSSQPIGF.js.map} +0 -0
- /package/dist/{registry-Q3FG3OAX.js.map → registry-YLEWMGAC.js.map} +0 -0
- /package/dist/{registry-T346IZCF.js.map → request-withdrawal-KFQHEZ25.js.map} +0 -0
- /package/dist/{request-withdrawal-2RERJECX.js.map → revoke-DQDZAZZM.js.map} +0 -0
- /package/dist/{revoke-4NRSCPNW.js.map → signer-WAMDZHEN.js.map} +0 -0
- /package/dist/{signer-HJHTGX7X.js.map → stale-DDL7WQEZ.js.map} +0 -0
- /package/dist/{stale-5I36LPVK.js.map → storage-FLR73HHF.js.map} +0 -0
- /package/dist/{storage-ZYYAB3J3.js.map → ulid-4MKXG325.js.map} +0 -0
- /package/dist/{ulid-VQW6ERQN.js.map → vault-diff-C6WUJFNP.js.map} +0 -0
- /package/dist/{vault-diff-FE5J35NJ.js.map → walk-3UQBRMDV.js.map} +0 -0
- /package/dist/{walk-LTV7LOCN.js.map → withdraw-accessible-EL5GXZBS.js.map} +0 -0
package/dist/pod/index.js
CHANGED
|
@@ -5,44 +5,48 @@ import {
|
|
|
5
5
|
signRedirect,
|
|
6
6
|
verifyRedirect,
|
|
7
7
|
wrapPodStore
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-VAG47QHV.js";
|
|
8
|
+
} from "../chunk-WEQEYLCS.js";
|
|
9
|
+
import "../chunk-6GOE5PGN.js";
|
|
11
10
|
import {
|
|
12
11
|
deriveSchemaManifest,
|
|
13
12
|
loadSchemaManifestEntry
|
|
14
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-VXGSWL6L.js";
|
|
15
14
|
import {
|
|
16
15
|
MANIFEST_COLLECTION,
|
|
17
16
|
isManifestReservedCollection
|
|
18
17
|
} from "../chunk-EPFF7LOX.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-QIZPZMUI.js";
|
|
19
|
+
import "../chunk-TUFM4UZP.js";
|
|
20
|
+
import "../chunk-SMH6SRX7.js";
|
|
21
|
+
import "../chunk-453F654R.js";
|
|
22
|
+
import "../chunk-SPXXX5E4.js";
|
|
23
23
|
import "../chunk-GYGLAVCX.js";
|
|
24
24
|
import "../chunk-6LJY7X5A.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-Q7HZX3IF.js";
|
|
26
|
+
import "../chunk-KJIMGIWO.js";
|
|
27
|
+
import "../chunk-BZ3534YM.js";
|
|
28
|
+
import "../chunk-NQKIUNW5.js";
|
|
29
|
+
import "../chunk-4GVM6QZA.js";
|
|
30
|
+
import "../chunk-VTFVLCUH.js";
|
|
31
|
+
import "../chunk-RXLYKVTF.js";
|
|
32
|
+
import "../chunk-ZVO4QVPD.js";
|
|
33
|
+
import "../chunk-GPEQUXHL.js";
|
|
34
|
+
import "../chunk-2C3AQB46.js";
|
|
35
|
+
import "../chunk-TFMM5DBB.js";
|
|
36
|
+
import "../chunk-RTBJ5IOO.js";
|
|
37
|
+
import "../chunk-5VCRVKOZ.js";
|
|
38
|
+
import "../chunk-VYYM3MEN.js";
|
|
39
|
+
import "../chunk-REDOOY2Q.js";
|
|
34
40
|
import "../chunk-Y2NBBT6K.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-VVAVTSTR.js";
|
|
40
|
-
import "../chunk-3QARDAYW.js";
|
|
41
|
+
import "../chunk-2Y4IMKA6.js";
|
|
42
|
+
import "../chunk-CARABLSQ.js";
|
|
43
|
+
import "../chunk-U4FOQDY4.js";
|
|
44
|
+
import "../chunk-SKGMN35F.js";
|
|
41
45
|
import "../chunk-T7IR4N2S.js";
|
|
42
46
|
import "../chunk-PEOZ34EM.js";
|
|
43
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-PT43Y56J.js";
|
|
44
48
|
import "../chunk-GHVIKOHT.js";
|
|
45
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-FAHMLERK.js";
|
|
46
50
|
import "../chunk-SMY5X46Z.js";
|
|
47
51
|
import "../chunk-DZFQVICS.js";
|
|
48
52
|
import {
|
|
@@ -68,55 +72,56 @@ import {
|
|
|
68
72
|
verifyPodHeader,
|
|
69
73
|
verifyRecord,
|
|
70
74
|
writePod
|
|
71
|
-
} from "../chunk-
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
75
|
+
} from "../chunk-5WDXHNSW.js";
|
|
76
|
+
import "../chunk-EQEYOJBM.js";
|
|
77
|
+
import "../chunk-BLN54W3L.js";
|
|
74
78
|
import "../chunk-5D2ALSM5.js";
|
|
75
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-UXWB3FPF.js";
|
|
76
80
|
import "../chunk-AURFOK3D.js";
|
|
77
|
-
import "../chunk-
|
|
78
|
-
import "../chunk-
|
|
79
|
-
import "../chunk-
|
|
80
|
-
import "../chunk-
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-6YXCPL4T.js";
|
|
82
|
+
import "../chunk-7MG2LHO5.js";
|
|
83
|
+
import "../chunk-ZORTV6NH.js";
|
|
84
|
+
import "../chunk-AO42KJO6.js";
|
|
85
|
+
import "../chunk-BM5TWITZ.js";
|
|
86
|
+
import "../chunk-KTFRCC5C.js";
|
|
83
87
|
import "../chunk-I3ISCYT7.js";
|
|
84
|
-
import "../chunk-
|
|
88
|
+
import "../chunk-66TQOPFM.js";
|
|
89
|
+
import "../chunk-V4PXLYWM.js";
|
|
85
90
|
import "../chunk-XZHEOSQ2.js";
|
|
86
91
|
import "../chunk-YMUFFJCO.js";
|
|
87
92
|
import "../chunk-ATL3ZVXT.js";
|
|
88
93
|
import "../chunk-NSITFOCJ.js";
|
|
89
94
|
import "../chunk-PVEWA2DU.js";
|
|
90
|
-
import "../chunk-
|
|
91
|
-
import "../chunk-
|
|
92
|
-
import "../chunk-
|
|
93
|
-
import "../chunk-
|
|
94
|
-
import "../chunk-
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-
|
|
97
|
-
import "../chunk-
|
|
98
|
-
import "../chunk-
|
|
99
|
-
import "../chunk-
|
|
95
|
+
import "../chunk-MVMXZYXT.js";
|
|
96
|
+
import "../chunk-6I2RQCET.js";
|
|
97
|
+
import "../chunk-TRGTKX5E.js";
|
|
98
|
+
import "../chunk-UXVWEX5L.js";
|
|
99
|
+
import "../chunk-RRNRNANG.js";
|
|
100
|
+
import "../chunk-2577DKXB.js";
|
|
101
|
+
import "../chunk-G56KBWFY.js";
|
|
102
|
+
import "../chunk-KG7TZKZG.js";
|
|
103
|
+
import "../chunk-UGTBXF5U.js";
|
|
104
|
+
import "../chunk-JBDFMYKQ.js";
|
|
100
105
|
import "../chunk-VKQCVU2Z.js";
|
|
101
106
|
import {
|
|
102
107
|
generateULID,
|
|
103
108
|
isULID
|
|
104
109
|
} from "../chunk-4AOERLTV.js";
|
|
105
|
-
import "../chunk-
|
|
106
|
-
import "../chunk-
|
|
110
|
+
import "../chunk-X2DLENDQ.js";
|
|
111
|
+
import "../chunk-L742JPKZ.js";
|
|
107
112
|
import "../chunk-I7FD46FF.js";
|
|
108
|
-
import "../chunk-
|
|
109
|
-
import "../chunk-
|
|
113
|
+
import "../chunk-BOET4NA4.js";
|
|
114
|
+
import "../chunk-JMGDHKQF.js";
|
|
110
115
|
import "../chunk-HK67PX4J.js";
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
113
|
-
import "../chunk-
|
|
114
|
-
import "../chunk-
|
|
115
|
-
import "../chunk-
|
|
116
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-7V4TP3AF.js";
|
|
117
|
+
import "../chunk-77K4PG6P.js";
|
|
118
|
+
import "../chunk-SZJ3DLZA.js";
|
|
119
|
+
import "../chunk-BOWNCWZT.js";
|
|
120
|
+
import "../chunk-YSRUYAVU.js";
|
|
121
|
+
import "../chunk-RMF67KCG.js";
|
|
117
122
|
import "../chunk-LP7BEXCT.js";
|
|
118
|
-
import "../chunk-
|
|
119
|
-
import "../chunk-
|
|
123
|
+
import "../chunk-SL3JAAKN.js";
|
|
124
|
+
import "../chunk-7MG7SJT7.js";
|
|
120
125
|
import {
|
|
121
126
|
BackupCorruptedError,
|
|
122
127
|
BackupLedgerError,
|
|
@@ -130,8 +135,7 @@ import {
|
|
|
130
135
|
RedirectDepthExceededError,
|
|
131
136
|
RedirectLoopError,
|
|
132
137
|
RedirectUnreachableError
|
|
133
|
-
} from "../chunk-
|
|
134
|
-
import "../chunk-PZ5AY32C.js";
|
|
138
|
+
} from "../chunk-7O3Y4PPD.js";
|
|
135
139
|
export {
|
|
136
140
|
BackupCorruptedError,
|
|
137
141
|
BackupLedgerError,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-77K4PG6P.js";
|
|
2
2
|
import {
|
|
3
3
|
buildRecordEnvelope
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-SZJ3DLZA.js";
|
|
5
|
+
import "./chunk-BOWNCWZT.js";
|
|
6
|
+
import "./chunk-YSRUYAVU.js";
|
|
7
|
+
import "./chunk-RMF67KCG.js";
|
|
8
8
|
import "./chunk-LP7BEXCT.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-PZ5AY32C.js";
|
|
9
|
+
import "./chunk-SL3JAAKN.js";
|
|
10
|
+
import "./chunk-7MG7SJT7.js";
|
|
11
|
+
import "./chunk-7O3Y4PPD.js";
|
|
13
12
|
|
|
14
13
|
// src/with-pod/pod-handle.ts
|
|
15
14
|
async function buildPodHandle(adapter, name) {
|
|
@@ -26,7 +25,7 @@ async function buildPodHandle(adapter, name) {
|
|
|
26
25
|
} catch {
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
const { generateULID } = await import("./ulid-
|
|
28
|
+
const { generateULID } = await import("./ulid-4MKXG325.js");
|
|
30
29
|
const handle = generateULID();
|
|
31
30
|
const envelope = buildRecordEnvelope(
|
|
32
31
|
{ collection: "_meta", id: "handle", version: 1 },
|
|
@@ -38,4 +37,4 @@ async function buildPodHandle(adapter, name) {
|
|
|
38
37
|
export {
|
|
39
38
|
buildPodHandle
|
|
40
39
|
};
|
|
41
|
-
//# sourceMappingURL=pod-handle-
|
|
40
|
+
//# sourceMappingURL=pod-handle-Q736KYON.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-pod/pod-handle.ts"],"sourcesContent":["/**\n * Vault bundle handle — the stable opaque ULID identifying a vault\n * across `.noydb` exports.\n *\n * Behaviour is byte-identical to the inline `Vault.getPodHandle`\n * method this function replaced. `Vault` keeps the public method as\n * a thin delegator.\n *\n * Internal — reached through `vault.getPodHandle()`.\n */\nimport type { NoydbStore, EncryptedEnvelope } from '../kernel/types.js'\nimport { buildRecordEnvelope } from '../kernel/enclave/index.js'\n\n/**\n * Return the stable opaque bundle handle for the given vault adapter,\n * generating and persisting a fresh ULID on first call.\n *\n * See {@link import('../kernel/vault.js').Vault.getPodHandle} for\n * the full rationale and storage-path documentation.\n */\nexport async function buildPodHandle(adapter: NoydbStore, name: string): Promise<string> {\n const existing = await adapter.get(name, '_meta', 'handle')\n if (existing) {\n try {\n const parsed = JSON.parse(existing._data) as unknown\n if (parsed !== null && typeof parsed === 'object' && 'handle' in parsed) {\n const handle = (parsed as { handle: unknown }).handle\n if (typeof handle === 'string' && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle)) {\n return handle\n }\n }\n } catch {\n // Fall through to regenerate — corrupted handle envelope\n // is treated as missing, not as an error. The new handle\n // overwrites the bad one.\n }\n }\n const { generateULID } = await import('./ulid.js')\n const handle = generateULID()\n const envelope: EncryptedEnvelope = buildRecordEnvelope(\n { collection: '_meta', id: 'handle', version: 1 },\n { iv: '', data: JSON.stringify({ handle }) },\n )\n await adapter.put(name, '_meta', 'handle', envelope)\n return handle\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/with-pod/pod-handle.ts"],"sourcesContent":["/**\n * Vault bundle handle — the stable opaque ULID identifying a vault\n * across `.noydb` exports.\n *\n * Behaviour is byte-identical to the inline `Vault.getPodHandle`\n * method this function replaced. `Vault` keeps the public method as\n * a thin delegator.\n *\n * Internal — reached through `vault.getPodHandle()`.\n */\nimport type { NoydbStore, EncryptedEnvelope } from '../kernel/types.js'\nimport { buildRecordEnvelope } from '../kernel/enclave/index.js'\n\n/**\n * Return the stable opaque bundle handle for the given vault adapter,\n * generating and persisting a fresh ULID on first call.\n *\n * See {@link import('../kernel/vault.js').Vault.getPodHandle} for\n * the full rationale and storage-path documentation.\n */\nexport async function buildPodHandle(adapter: NoydbStore, name: string): Promise<string> {\n const existing = await adapter.get(name, '_meta', 'handle')\n if (existing) {\n try {\n const parsed = JSON.parse(existing._data) as unknown\n if (parsed !== null && typeof parsed === 'object' && 'handle' in parsed) {\n const handle = (parsed as { handle: unknown }).handle\n if (typeof handle === 'string' && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle)) {\n return handle\n }\n }\n } catch {\n // Fall through to regenerate — corrupted handle envelope\n // is treated as missing, not as an error. The new handle\n // overwrites the bad one.\n }\n }\n const { generateULID } = await import('./ulid.js')\n const handle = generateULID()\n const envelope: EncryptedEnvelope = buildRecordEnvelope(\n { collection: '_meta', id: 'handle', version: 1 },\n { iv: '', data: JSON.stringify({ handle }) },\n )\n await adapter.put(name, '_meta', 'handle', envelope)\n return handle\n}\n"],"mappings":";;;;;;;;;;;;;AAoBA,eAAsB,eAAe,SAAqB,MAA+B;AACvF,QAAM,WAAW,MAAM,QAAQ,IAAI,MAAM,SAAS,QAAQ;AAC1D,MAAI,UAAU;AACZ,QAAI;AACF,YAAM,SAAS,KAAK,MAAM,SAAS,KAAK;AACxC,UAAI,WAAW,QAAQ,OAAO,WAAW,YAAY,YAAY,QAAQ;AACvE,cAAMA,UAAU,OAA+B;AAC/C,YAAI,OAAOA,YAAW,YAAY,2BAA2B,KAAKA,OAAM,GAAG;AACzE,iBAAOA;AAAA,QACT;AAAA,MACF;AAAA,IACF,QAAQ;AAAA,IAIR;AAAA,EACF;AACA,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO,oBAAW;AACjD,QAAM,SAAS,aAAa;AAC5B,QAAM,WAA8B;AAAA,IAClC,EAAE,YAAY,SAAS,IAAI,UAAU,SAAS,EAAE;AAAA,IAChD,EAAE,IAAI,IAAI,MAAM,KAAK,UAAU,EAAE,OAAO,CAAC,EAAE;AAAA,EAC7C;AACA,QAAM,QAAQ,IAAI,MAAM,SAAS,UAAU,QAAQ;AACnD,SAAO;AACT;","names":["handle"]}
|
package/dist/policy/index.js
CHANGED
|
@@ -6,28 +6,27 @@ import {
|
|
|
6
6
|
createNoydbPolicy,
|
|
7
7
|
describeGate,
|
|
8
8
|
mergePolicy
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-SPYWXKJN.js";
|
|
10
10
|
import {
|
|
11
11
|
META_COLLECTION,
|
|
12
12
|
POLICY_RECORD_ID,
|
|
13
13
|
loadVaultPolicy,
|
|
14
14
|
saveVaultPolicy
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-2577DKXB.js";
|
|
16
|
+
import "../chunk-77K4PG6P.js";
|
|
17
|
+
import "../chunk-SZJ3DLZA.js";
|
|
18
|
+
import "../chunk-BOWNCWZT.js";
|
|
19
|
+
import "../chunk-YSRUYAVU.js";
|
|
20
|
+
import "../chunk-RMF67KCG.js";
|
|
21
21
|
import "../chunk-LP7BEXCT.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-SL3JAAKN.js";
|
|
23
|
+
import "../chunk-7MG7SJT7.js";
|
|
24
24
|
import {
|
|
25
25
|
ManagedRecoveryNotEnrolledError,
|
|
26
26
|
PolicyDeniedError,
|
|
27
27
|
RecoveryNotEnrolledError,
|
|
28
28
|
RecoveryProfileNotImplementedError
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-PZ5AY32C.js";
|
|
29
|
+
} from "../chunk-7O3Y4PPD.js";
|
|
31
30
|
export {
|
|
32
31
|
DEFAULT_FRESHNESS_MS,
|
|
33
32
|
META_COLLECTION,
|
package/dist/port/to/index.d.ts
CHANGED
|
@@ -15,9 +15,49 @@
|
|
|
15
15
|
* Named re-exports only (no `export *`) so the published surface is explicit and
|
|
16
16
|
* tsup's per-entry bundling keeps class identity stable across subpaths.
|
|
17
17
|
*/
|
|
18
|
+
import type { NoydbStore as NoydbStoreType } from '../../kernel/types.js';
|
|
18
19
|
export type { NoydbStore, NoydbPodStore, EncryptedEnvelope, VaultSnapshot, TxOp, StoreCapabilities, StoreCredentials, StoreCredentialSource, StoreTime, ListPageResult, } from '../../kernel/types.js';
|
|
19
20
|
export { ConflictError, NetworkError, StoreCapabilityError, PodVersionConflictError, UnknownStoreKindError, DuplicateStoreKindError, } from '../../kernel/errors.js';
|
|
20
21
|
export { isConflictError } from '../../kernel/errors.js';
|
|
21
22
|
export type { StoreClass, StoreDescriptor, StoreBinding, StoreFactory, StoreLocator, AnyNoydbStore, } from './locator.js';
|
|
22
23
|
export { createStoreLocator, isPodStore } from './locator.js';
|
|
23
24
|
export { NOYDB_ENVELOPE_GENERATION } from '../../kernel/types.js';
|
|
25
|
+
/**
|
|
26
|
+
* A store a RELAY may serve — the 6-method contract minus the two members a
|
|
27
|
+
* relay profile omits **by construction** (#1237).
|
|
28
|
+
*
|
|
29
|
+
* ## Why a type rather than a runtime allowlist
|
|
30
|
+
*
|
|
31
|
+
* `in-rest` types its `store` option as a full {@link NoydbStore} and gates
|
|
32
|
+
* dispatch with an `allow` set. That works, and for `in-rest` it is right — its
|
|
33
|
+
* job is to serve a whole store. But it means a relay profile's exclusions are
|
|
34
|
+
* enforced by *handing the handler an object that carries `saveAll`* and
|
|
35
|
+
* trusting a `Set` not to call it. **That converts structural absence into a
|
|
36
|
+
* runtime allowlist**, which is a downgrade of exactly the property a relay
|
|
37
|
+
* exists to have: a handler typed against this cannot compile a call to
|
|
38
|
+
* `saveAll`, so no mis-set `allow` can talk it into one.
|
|
39
|
+
*
|
|
40
|
+
* ## The two exclusions, and why each
|
|
41
|
+
*
|
|
42
|
+
* - **`saveAll`** — whole-vault replace. A relay that can be asked to overwrite
|
|
43
|
+
* a vault wholesale is a rollback superweapon pointed at its own hosts.
|
|
44
|
+
* - **`listVaults`** — enumeration is an existence leak. Already optional on
|
|
45
|
+
* `NoydbStore`, so omitting it here is a statement of profile rather than a
|
|
46
|
+
* new restriction.
|
|
47
|
+
*
|
|
48
|
+
* ## Scope — deliberately narrow
|
|
49
|
+
*
|
|
50
|
+
* This is a TYPE. It changes nothing about the `NoydbStore` runtime contract,
|
|
51
|
+
* which stays the 6-method interface every backend implements; a full store
|
|
52
|
+
* satisfies this type structurally and needs no changes to be relayed. That
|
|
53
|
+
* boundary is load-bearing: the format-conformance kit's store-observation
|
|
54
|
+
* design (#1211) names a change to the `NoydbStore` contract as the single
|
|
55
|
+
* thing that would invalidate it, so a narrowing that stayed purely in the type
|
|
56
|
+
* layer was a precondition of this work rather than a convenience.
|
|
57
|
+
*
|
|
58
|
+
* It lives here, on the published `/to` seam, rather than inside the relay
|
|
59
|
+
* package because there is already a second consumer: `@doi-db/daemon`
|
|
60
|
+
* implements this profile natively and needs to name the same shape without
|
|
61
|
+
* depending on a relay server it does not run.
|
|
62
|
+
*/
|
|
63
|
+
export type NoydbRelayStore = Omit<NoydbStoreType, 'saveAll' | 'listVaults'>;
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NO_PORTABILITY
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BZ3534YM.js";
|
|
4
4
|
import {
|
|
5
5
|
PortabilityNotEnabledError
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-PZ5AY32C.js";
|
|
6
|
+
} from "../chunk-7O3Y4PPD.js";
|
|
8
7
|
|
|
9
8
|
// src/with-audit/portability/active.ts
|
|
10
9
|
function withPortability() {
|
|
11
10
|
return {
|
|
12
11
|
async exportAccessibleData(vault, opts) {
|
|
13
|
-
const { exportAccessibleData } = await import("../export-accessible-
|
|
12
|
+
const { exportAccessibleData } = await import("../export-accessible-72EQNBMR.js");
|
|
14
13
|
return exportAccessibleData(vault, opts);
|
|
15
14
|
},
|
|
16
15
|
async withdrawAccessibleData(vault, opts) {
|
|
17
|
-
const { withdrawAccessibleData } = await import("../withdraw-accessible-
|
|
16
|
+
const { withdrawAccessibleData } = await import("../withdraw-accessible-EL5GXZBS.js");
|
|
18
17
|
return withdrawAccessibleData(vault, opts);
|
|
19
18
|
},
|
|
20
19
|
async requestWithdrawal(vault, opts) {
|
|
21
|
-
const { requestWithdrawal } = await import("../request-withdrawal-
|
|
20
|
+
const { requestWithdrawal } = await import("../request-withdrawal-KFQHEZ25.js");
|
|
22
21
|
return requestWithdrawal(vault, opts);
|
|
23
22
|
},
|
|
24
23
|
async listWithdrawalRequests(vault, opts) {
|
|
25
|
-
const { listWithdrawalRequests } = await import("../request-withdrawal-
|
|
24
|
+
const { listWithdrawalRequests } = await import("../request-withdrawal-KFQHEZ25.js");
|
|
26
25
|
return listWithdrawalRequests(vault, opts);
|
|
27
26
|
},
|
|
28
27
|
async approveWithdrawal(vault, requestId, opts) {
|
|
29
|
-
const { approveWithdrawal } = await import("../request-withdrawal-
|
|
28
|
+
const { approveWithdrawal } = await import("../request-withdrawal-KFQHEZ25.js");
|
|
30
29
|
return approveWithdrawal(vault, requestId, opts);
|
|
31
30
|
},
|
|
32
31
|
async rejectWithdrawal(vault, requestId, opts) {
|
|
33
|
-
const { rejectWithdrawal } = await import("../request-withdrawal-
|
|
32
|
+
const { rejectWithdrawal } = await import("../request-withdrawal-KFQHEZ25.js");
|
|
34
33
|
return rejectWithdrawal(vault, requestId, opts);
|
|
35
34
|
}
|
|
36
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-audit/portability/active.ts"],"sourcesContent":["/**\n * Enable the portability capability.\n * Pass to `createNoydb({ portabilityStrategy: withPortability() })` to make a\n * vault's `user.exportMyAccessibleData` / `user.unilateralWithdrawal` /\n * `user.requestWithdrawal` / `user.listWithdrawalRequests` /\n * `user.approveWithdrawal` / `user.rejectWithdrawal` methods live. The\n * export/withdraw/request engines are dynamically imported here, so they stay\n * reachable only via opt-in.\n */\nimport type { PortabilityStrategy } from './strategy.js'\n\nexport function withPortability(): PortabilityStrategy {\n return {\n async exportAccessibleData(vault, opts) {\n const { exportAccessibleData } = await import('./export-accessible.js')\n return exportAccessibleData(vault, opts)\n },\n async withdrawAccessibleData(vault, opts) {\n const { withdrawAccessibleData } = await import('./withdraw-accessible.js')\n return withdrawAccessibleData(vault, opts)\n },\n async requestWithdrawal(vault, opts) {\n const { requestWithdrawal } = await import('./request-withdrawal.js')\n return requestWithdrawal(vault, opts)\n },\n async listWithdrawalRequests(vault, opts) {\n const { listWithdrawalRequests } = await import('./request-withdrawal.js')\n return listWithdrawalRequests(vault, opts)\n },\n async approveWithdrawal(vault, requestId, opts) {\n const { approveWithdrawal } = await import('./request-withdrawal.js')\n return approveWithdrawal(vault, requestId, opts)\n },\n async rejectWithdrawal(vault, requestId, opts) {\n const { rejectWithdrawal } = await import('./request-withdrawal.js')\n return rejectWithdrawal(vault, requestId, opts)\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-audit/portability/active.ts"],"sourcesContent":["/**\n * Enable the portability capability.\n * Pass to `createNoydb({ portabilityStrategy: withPortability() })` to make a\n * vault's `user.exportMyAccessibleData` / `user.unilateralWithdrawal` /\n * `user.requestWithdrawal` / `user.listWithdrawalRequests` /\n * `user.approveWithdrawal` / `user.rejectWithdrawal` methods live. The\n * export/withdraw/request engines are dynamically imported here, so they stay\n * reachable only via opt-in.\n */\nimport type { PortabilityStrategy } from './strategy.js'\n\nexport function withPortability(): PortabilityStrategy {\n return {\n async exportAccessibleData(vault, opts) {\n const { exportAccessibleData } = await import('./export-accessible.js')\n return exportAccessibleData(vault, opts)\n },\n async withdrawAccessibleData(vault, opts) {\n const { withdrawAccessibleData } = await import('./withdraw-accessible.js')\n return withdrawAccessibleData(vault, opts)\n },\n async requestWithdrawal(vault, opts) {\n const { requestWithdrawal } = await import('./request-withdrawal.js')\n return requestWithdrawal(vault, opts)\n },\n async listWithdrawalRequests(vault, opts) {\n const { listWithdrawalRequests } = await import('./request-withdrawal.js')\n return listWithdrawalRequests(vault, opts)\n },\n async approveWithdrawal(vault, requestId, opts) {\n const { approveWithdrawal } = await import('./request-withdrawal.js')\n return approveWithdrawal(vault, requestId, opts)\n },\n async rejectWithdrawal(vault, requestId, opts) {\n const { rejectWithdrawal } = await import('./request-withdrawal.js')\n return rejectWithdrawal(vault, requestId, opts)\n },\n }\n}\n"],"mappings":";;;;;;;;AAWO,SAAS,kBAAuC;AACrD,SAAO;AAAA,IACL,MAAM,qBAAqB,OAAO,MAAM;AACtC,YAAM,EAAE,qBAAqB,IAAI,MAAM,OAAO,kCAAwB;AACtE,aAAO,qBAAqB,OAAO,IAAI;AAAA,IACzC;AAAA,IACA,MAAM,uBAAuB,OAAO,MAAM;AACxC,YAAM,EAAE,uBAAuB,IAAI,MAAM,OAAO,oCAA0B;AAC1E,aAAO,uBAAuB,OAAO,IAAI;AAAA,IAC3C;AAAA,IACA,MAAM,kBAAkB,OAAO,MAAM;AACnC,YAAM,EAAE,kBAAkB,IAAI,MAAM,OAAO,mCAAyB;AACpE,aAAO,kBAAkB,OAAO,IAAI;AAAA,IACtC;AAAA,IACA,MAAM,uBAAuB,OAAO,MAAM;AACxC,YAAM,EAAE,uBAAuB,IAAI,MAAM,OAAO,mCAAyB;AACzE,aAAO,uBAAuB,OAAO,IAAI;AAAA,IAC3C;AAAA,IACA,MAAM,kBAAkB,OAAO,WAAW,MAAM;AAC9C,YAAM,EAAE,kBAAkB,IAAI,MAAM,OAAO,mCAAyB;AACpE,aAAO,kBAAkB,OAAO,WAAW,IAAI;AAAA,IACjD;AAAA,IACA,MAAM,iBAAiB,OAAO,WAAW,MAAM;AAC7C,YAAM,EAAE,iBAAiB,IAAI,MAAM,OAAO,mCAAyB;AACnE,aAAO,iBAAiB,OAAO,WAAW,IAAI;AAAA,IAChD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hashFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TUFM4UZP.js";
|
|
4
4
|
import {
|
|
5
5
|
SatelliteConfigError
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-PZ5AY32C.js";
|
|
6
|
+
} from "./chunk-7O3Y4PPD.js";
|
|
8
7
|
|
|
9
8
|
// src/with-shape/satellites/marker.ts
|
|
10
9
|
async function ensureSatelliteMarker(store, vaultName, spec, dek) {
|
|
@@ -14,7 +13,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
|
|
|
14
13
|
joined: spec.joined,
|
|
15
14
|
epoch: (/* @__PURE__ */ new Date()).toISOString()
|
|
16
15
|
};
|
|
17
|
-
const { loadPersistedSchema } = await import("./storage-
|
|
16
|
+
const { loadPersistedSchema } = await import("./storage-FLR73HHF.js");
|
|
18
17
|
const persisted = await loadPersistedSchema(store, vaultName, spec.satellite, dek);
|
|
19
18
|
const prior = persisted?.satellite;
|
|
20
19
|
if (prior) {
|
|
@@ -25,7 +24,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
|
|
|
25
24
|
}
|
|
26
25
|
return;
|
|
27
26
|
}
|
|
28
|
-
const { persistSatelliteMarker } = await import("./register-
|
|
27
|
+
const { persistSatelliteMarker } = await import("./register-I2DZXGAR.js");
|
|
29
28
|
await persistSatelliteMarker({ store, vault: vaultName, collectionName: spec.satellite, dek, marker: next });
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -39,7 +38,7 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
|
|
|
39
38
|
}
|
|
40
39
|
if (baseSchema !== void 0) {
|
|
41
40
|
try {
|
|
42
|
-
const { derivePersistedSchema } = await import("./derive-
|
|
41
|
+
const { derivePersistedSchema } = await import("./derive-6O5SWQKN.js");
|
|
43
42
|
const envelope = await derivePersistedSchema(baseSchema);
|
|
44
43
|
const properties = envelope.jsonSchema?.["properties"];
|
|
45
44
|
const baseFields = Object.keys(properties ?? {});
|
|
@@ -57,4 +56,4 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
|
|
|
57
56
|
export {
|
|
58
57
|
postRegister
|
|
59
58
|
};
|
|
60
|
-
//# sourceMappingURL=post-register-
|
|
59
|
+
//# sourceMappingURL=post-register-LNE2FE2A.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-shape/satellites/marker.ts","../src/with-shape/satellites/post-register.ts"],"sourcesContent":["import type { NoydbStore } from '../../kernel/types.js'\nimport type { EnclaveKey } from '../../kernel/enclave/index.js'\nimport { SatelliteConfigError } from '../../kernel/errors.js'\nimport { hashFields } from './validate.js'\nimport type { PairingMarker, SatelliteSpec } from './types.js'\n\n/**\n * Persist-or-reconcile the pairing marker in `_schemas/<satellite>`.\n * First declaration writes { base, fieldsHash, joined }; later declarations\n * must match exactly or are refused (R-S9). Lazy imports keep the satellite\n * spine tree-shakeable (config-drift.ts pattern).\n */\nexport async function ensureSatelliteMarker(\n store: NoydbStore, vaultName: string, spec: SatelliteSpec, dek: EnclaveKey,\n): Promise<void> {\n // #597: `epoch` only matters the first time this marker is ever persisted —\n // when a `prior` marker already exists below we return without ever using\n // it, so re-declaring a LIVE collection never mints (or compares) a new\n // epoch; the persisted one is carried forward untouched. Stamped here as a\n // timestamp (mirrors `derivedAt` in persisted-schemas/register.ts) rather\n // than a counter, since there's nothing to count from yet.\n const next: PairingMarker = {\n base: spec.base, fieldsHash: hashFields(spec.fields), joined: spec.joined,\n epoch: new Date().toISOString(),\n }\n const { loadPersistedSchema } = await import('../persisted-schemas/storage.js')\n const persisted = await loadPersistedSchema(store, vaultName, spec.satellite, dek)\n const prior = persisted?.satellite\n if (prior) {\n if (prior.base !== next.base || prior.fieldsHash !== next.fieldsHash || (prior.joined ?? null) !== (next.joined ?? null)) {\n throw new SatelliteConfigError(\n `R-S9: satellite \"${spec.satellite}\" re-declared divergently from its persisted pairing marker ` +\n `(persisted base=\"${prior.base}\" fieldsHash=${prior.fieldsHash}; declared base=\"${next.base}\" fieldsHash=${next.fieldsHash}). ` +\n `Evolve the marker deliberately, don't redeclare.`,\n )\n }\n return\n }\n const { persistSatelliteMarker } = await import('../persisted-schemas/register.js')\n await persistSatelliteMarker({ store, vault: vaultName, collectionName: spec.satellite, dek, marker: next })\n}\n","import type { NoydbStore } from '../../kernel/types.js'\nimport type { EnclaveKey } from '../../kernel/enclave/index.js'\nimport type { SatelliteSpec } from './types.js'\nimport type { SatelliteRegistry } from './registry.js'\nimport { ensureSatelliteMarker } from './marker.js'\n\n/** Async post-registration: R-S9 marker reconcile + R-S1/R-S5 derivable-schema cross-check. Failures poison, never throw. */\nexport async function postRegister(\n store: NoydbStore, vaultName: string, spec: SatelliteSpec,\n getDEK: (collectionName: string) => Promise<EnclaveKey>,\n baseSchema: unknown, registry: SatelliteRegistry,\n): Promise<void> {\n try {\n await ensureSatelliteMarker(store, vaultName, spec, await getDEK(spec.satellite))\n } catch (err) {\n registry.poison(spec.satellite, (err as Error).message); return\n }\n if (baseSchema !== undefined) {\n try {\n const { derivePersistedSchema } = await import('../persisted-schemas/derive.js')\n const envelope = await derivePersistedSchema(baseSchema)\n const properties = (envelope.jsonSchema as Record<string, unknown> | null)?.['properties'] as Record<string, unknown> | undefined\n const baseFields: string[] = Object.keys(properties ?? {})\n const overlap = spec.fields.filter(f => baseFields.includes(f))\n if (overlap.length > 0) {\n registry.poison(spec.satellite,\n `R-S1: satellite \"${spec.satellite}\" fields overlap the base schema: ${overlap.join(', ')} — routing must be unambiguous.`)\n }\n } catch { /* non-derivable validator → cross-check unavailable, by design (spec R-S5) */ }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/with-shape/satellites/marker.ts","../src/with-shape/satellites/post-register.ts"],"sourcesContent":["import type { NoydbStore } from '../../kernel/types.js'\nimport type { EnclaveKey } from '../../kernel/enclave/index.js'\nimport { SatelliteConfigError } from '../../kernel/errors.js'\nimport { hashFields } from './validate.js'\nimport type { PairingMarker, SatelliteSpec } from './types.js'\n\n/**\n * Persist-or-reconcile the pairing marker in `_schemas/<satellite>`.\n * First declaration writes { base, fieldsHash, joined }; later declarations\n * must match exactly or are refused (R-S9). Lazy imports keep the satellite\n * spine tree-shakeable (config-drift.ts pattern).\n */\nexport async function ensureSatelliteMarker(\n store: NoydbStore, vaultName: string, spec: SatelliteSpec, dek: EnclaveKey,\n): Promise<void> {\n // #597: `epoch` only matters the first time this marker is ever persisted —\n // when a `prior` marker already exists below we return without ever using\n // it, so re-declaring a LIVE collection never mints (or compares) a new\n // epoch; the persisted one is carried forward untouched. Stamped here as a\n // timestamp (mirrors `derivedAt` in persisted-schemas/register.ts) rather\n // than a counter, since there's nothing to count from yet.\n const next: PairingMarker = {\n base: spec.base, fieldsHash: hashFields(spec.fields), joined: spec.joined,\n epoch: new Date().toISOString(),\n }\n const { loadPersistedSchema } = await import('../persisted-schemas/storage.js')\n const persisted = await loadPersistedSchema(store, vaultName, spec.satellite, dek)\n const prior = persisted?.satellite\n if (prior) {\n if (prior.base !== next.base || prior.fieldsHash !== next.fieldsHash || (prior.joined ?? null) !== (next.joined ?? null)) {\n throw new SatelliteConfigError(\n `R-S9: satellite \"${spec.satellite}\" re-declared divergently from its persisted pairing marker ` +\n `(persisted base=\"${prior.base}\" fieldsHash=${prior.fieldsHash}; declared base=\"${next.base}\" fieldsHash=${next.fieldsHash}). ` +\n `Evolve the marker deliberately, don't redeclare.`,\n )\n }\n return\n }\n const { persistSatelliteMarker } = await import('../persisted-schemas/register.js')\n await persistSatelliteMarker({ store, vault: vaultName, collectionName: spec.satellite, dek, marker: next })\n}\n","import type { NoydbStore } from '../../kernel/types.js'\nimport type { EnclaveKey } from '../../kernel/enclave/index.js'\nimport type { SatelliteSpec } from './types.js'\nimport type { SatelliteRegistry } from './registry.js'\nimport { ensureSatelliteMarker } from './marker.js'\n\n/** Async post-registration: R-S9 marker reconcile + R-S1/R-S5 derivable-schema cross-check. Failures poison, never throw. */\nexport async function postRegister(\n store: NoydbStore, vaultName: string, spec: SatelliteSpec,\n getDEK: (collectionName: string) => Promise<EnclaveKey>,\n baseSchema: unknown, registry: SatelliteRegistry,\n): Promise<void> {\n try {\n await ensureSatelliteMarker(store, vaultName, spec, await getDEK(spec.satellite))\n } catch (err) {\n registry.poison(spec.satellite, (err as Error).message); return\n }\n if (baseSchema !== undefined) {\n try {\n const { derivePersistedSchema } = await import('../persisted-schemas/derive.js')\n const envelope = await derivePersistedSchema(baseSchema)\n const properties = (envelope.jsonSchema as Record<string, unknown> | null)?.['properties'] as Record<string, unknown> | undefined\n const baseFields: string[] = Object.keys(properties ?? {})\n const overlap = spec.fields.filter(f => baseFields.includes(f))\n if (overlap.length > 0) {\n registry.poison(spec.satellite,\n `R-S1: satellite \"${spec.satellite}\" fields overlap the base schema: ${overlap.join(', ')} — routing must be unambiguous.`)\n }\n } catch { /* non-derivable validator → cross-check unavailable, by design (spec R-S5) */ }\n }\n}\n"],"mappings":";;;;;;;;AAYA,eAAsB,sBACpB,OAAmB,WAAmB,MAAqB,KAC5C;AAOf,QAAM,OAAsB;AAAA,IAC1B,MAAM,KAAK;AAAA,IAAM,YAAY,WAAW,KAAK,MAAM;AAAA,IAAG,QAAQ,KAAK;AAAA,IACnE,QAAO,oBAAI,KAAK,GAAE,YAAY;AAAA,EAChC;AACA,QAAM,EAAE,oBAAoB,IAAI,MAAM,OAAO,uBAAiC;AAC9E,QAAM,YAAY,MAAM,oBAAoB,OAAO,WAAW,KAAK,WAAW,GAAG;AACjF,QAAM,QAAQ,WAAW;AACzB,MAAI,OAAO;AACT,QAAI,MAAM,SAAS,KAAK,QAAQ,MAAM,eAAe,KAAK,eAAe,MAAM,UAAU,WAAW,KAAK,UAAU,OAAO;AACxH,YAAM,IAAI;AAAA,QACR,oBAAoB,KAAK,SAAS,gFACd,MAAM,IAAI,gBAAgB,MAAM,UAAU,oBAAoB,KAAK,IAAI,gBAAgB,KAAK,UAAU;AAAA,MAE5H;AAAA,IACF;AACA;AAAA,EACF;AACA,QAAM,EAAE,uBAAuB,IAAI,MAAM,OAAO,wBAAkC;AAClF,QAAM,uBAAuB,EAAE,OAAO,OAAO,WAAW,gBAAgB,KAAK,WAAW,KAAK,QAAQ,KAAK,CAAC;AAC7G;;;ACjCA,eAAsB,aACpB,OAAmB,WAAmB,MACtC,QACA,YAAqB,UACN;AACf,MAAI;AACF,UAAM,sBAAsB,OAAO,WAAW,MAAM,MAAM,OAAO,KAAK,SAAS,CAAC;AAAA,EAClF,SAAS,KAAK;AACZ,aAAS,OAAO,KAAK,WAAY,IAAc,OAAO;AAAG;AAAA,EAC3D;AACA,MAAI,eAAe,QAAW;AAC5B,QAAI;AACF,YAAM,EAAE,sBAAsB,IAAI,MAAM,OAAO,sBAAgC;AAC/E,YAAM,WAAW,MAAM,sBAAsB,UAAU;AACvD,YAAM,aAAc,SAAS,aAAgD,YAAY;AACzF,YAAM,aAAuB,OAAO,KAAK,cAAc,CAAC,CAAC;AACzD,YAAM,UAAU,KAAK,OAAO,OAAO,OAAK,WAAW,SAAS,CAAC,CAAC;AAC9D,UAAI,QAAQ,SAAS,GAAG;AACtB,iBAAS;AAAA,UAAO,KAAK;AAAA,UACnB,oBAAoB,KAAK,SAAS,qCAAqC,QAAQ,KAAK,IAAI,CAAC;AAAA,QAAiC;AAAA,MAC9H;AAAA,IACF,QAAQ;AAAA,IAAiF;AAAA,EAC3F;AACF;","names":[]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "./chunk-PZ5AY32C.js";
|
|
2
|
-
|
|
3
1
|
// src/with-audit/forget/purge-scope.ts
|
|
4
2
|
function partitionSealedCekKeys(keys, prefix, scopedPurge, declared) {
|
|
5
3
|
const matches = keys.filter((key) => key.startsWith(prefix));
|
|
@@ -21,4 +19,4 @@ export {
|
|
|
21
19
|
residueNoticesFromMap,
|
|
22
20
|
shouldSkipBlobScan
|
|
23
21
|
};
|
|
24
|
-
//# sourceMappingURL=purge-scope-
|
|
22
|
+
//# sourceMappingURL=purge-scope-4HEFPDOW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-audit/forget/purge-scope.ts"],"sourcesContent":["/**\n * #633 — scoped-purge partitioning for the opt-in `scopedPurge` forget-strategy\n * knob (`strategy.ts`'s `SubjectDeclaration.scopedPurge`). Pure helpers only —\n * no store I/O, no `Vault`/`Collection` imports — kept out of `kernel/vault.ts`\n * (exact zero-slack `kernel-surface` ceiling) and free of any circular-import\n * risk with the kernel spine.\n *\n * The two `forget()` purge sites (`_sealed_cek` listing, blob shred) stay\n * UNCONDITIONAL by default (byte-identical to pre-#633 behavior); when\n * `scopedPurge` is `true`, each site calls into this module to decide what to\n * purge vs. what to leave in place + report as residue, keyed off a\n * per-collection declaration signal the caller (vault.ts) resolves itself:\n * - sealed-CEK arm: `coll._via?.hasAtRestHooks === true` — the classified\n * via binding's at-rest hooks (the \"richer\" declaration; a bare\n * `sensitive` collection with NO classified binder does not count — it can\n * still call `sealRecordToHost()` ad hoc, which is exactly the\n * under-approximation #633 calls out).\n * - blob arm: `this.blobFieldsRegistry.has(ref.collection)` — a collection\n * can call `.blob(id)` regardless of this declaration (same\n * under-approximation), which is why the default stays unconditional.\n *\n * @module\n */\nimport type { ScopedPurgeResidueReason } from './strategy.js'\n\n/**\n * Partitions an already-fetched vault-wide `_sealed_cek` key listing into\n * keys to purge vs. a skipped count, for ONE ref's `<collection>/<id>/`\n * prefix. No new store call — `keys` is the SAME listing the unconditional\n * path already fetched. Default parity: when `scopedPurge` is false, or\n * `declared` is true, every matching key is returned for purge and\n * `skippedCount` is 0 — byte-identical to the unconditional behavior.\n */\nexport function partitionSealedCekKeys(\n keys: readonly string[],\n prefix: string,\n scopedPurge: boolean,\n declared: boolean,\n): { readonly toPurge: readonly string[]; readonly skippedCount: number } {\n const matches = keys.filter((key) => key.startsWith(prefix))\n if (!scopedPurge || declared) return { toPurge: matches, skippedCount: 0 }\n return { toPurge: [], skippedCount: matches.length }\n}\n\n/**\n * True when the blob arm should skip `ref.collection` entirely — no\n * `.blob(id).shredAllForRecord()` call AND no `_blob_slots_<collection>`\n * residue-detection `list()` call either (the perf win: scoped mode never\n * pays for a per-collection scan on a collection that never declared\n * `blobFields`).\n */\nexport function shouldSkipBlobScan(scopedPurge: boolean, declared: boolean): boolean {\n return scopedPurge && !declared\n}\n\n/** Adds `count` (if positive) to `collection`'s running total in `map` — the\n * per-collection residue accumulator both purge sites share. */\nexport function bumpResidueCount(map: Map<string, number>, collection: string, count: number): void {\n if (count > 0) map.set(collection, (map.get(collection) ?? 0) + count)\n}\n\n/** Flattens an accumulated per-collection count map into `ForgetResult.scopedPurgeResidue` notices\n * tagged with `reason`. Empty map → empty array (the unconditional-default case). */\nexport function residueNoticesFromMap(\n map: ReadonlyMap<string, number>,\n reason: ScopedPurgeResidueReason,\n): { readonly reason: ScopedPurgeResidueReason; readonly collection: string; readonly count: number }[] {\n return [...map].map(([collection, count]) => ({ reason, collection, count }))\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/with-audit/forget/purge-scope.ts"],"sourcesContent":["/**\n * #633 — scoped-purge partitioning for the opt-in `scopedPurge` forget-strategy\n * knob (`strategy.ts`'s `SubjectDeclaration.scopedPurge`). Pure helpers only —\n * no store I/O, no `Vault`/`Collection` imports — kept out of `kernel/vault.ts`\n * (exact zero-slack `kernel-surface` ceiling) and free of any circular-import\n * risk with the kernel spine.\n *\n * The two `forget()` purge sites (`_sealed_cek` listing, blob shred) stay\n * UNCONDITIONAL by default (byte-identical to pre-#633 behavior); when\n * `scopedPurge` is `true`, each site calls into this module to decide what to\n * purge vs. what to leave in place + report as residue, keyed off a\n * per-collection declaration signal the caller (vault.ts) resolves itself:\n * - sealed-CEK arm: `coll._via?.hasAtRestHooks === true` — the classified\n * via binding's at-rest hooks (the \"richer\" declaration; a bare\n * `sensitive` collection with NO classified binder does not count — it can\n * still call `sealRecordToHost()` ad hoc, which is exactly the\n * under-approximation #633 calls out).\n * - blob arm: `this.blobFieldsRegistry.has(ref.collection)` — a collection\n * can call `.blob(id)` regardless of this declaration (same\n * under-approximation), which is why the default stays unconditional.\n *\n * @module\n */\nimport type { ScopedPurgeResidueReason } from './strategy.js'\n\n/**\n * Partitions an already-fetched vault-wide `_sealed_cek` key listing into\n * keys to purge vs. a skipped count, for ONE ref's `<collection>/<id>/`\n * prefix. No new store call — `keys` is the SAME listing the unconditional\n * path already fetched. Default parity: when `scopedPurge` is false, or\n * `declared` is true, every matching key is returned for purge and\n * `skippedCount` is 0 — byte-identical to the unconditional behavior.\n */\nexport function partitionSealedCekKeys(\n keys: readonly string[],\n prefix: string,\n scopedPurge: boolean,\n declared: boolean,\n): { readonly toPurge: readonly string[]; readonly skippedCount: number } {\n const matches = keys.filter((key) => key.startsWith(prefix))\n if (!scopedPurge || declared) return { toPurge: matches, skippedCount: 0 }\n return { toPurge: [], skippedCount: matches.length }\n}\n\n/**\n * True when the blob arm should skip `ref.collection` entirely — no\n * `.blob(id).shredAllForRecord()` call AND no `_blob_slots_<collection>`\n * residue-detection `list()` call either (the perf win: scoped mode never\n * pays for a per-collection scan on a collection that never declared\n * `blobFields`).\n */\nexport function shouldSkipBlobScan(scopedPurge: boolean, declared: boolean): boolean {\n return scopedPurge && !declared\n}\n\n/** Adds `count` (if positive) to `collection`'s running total in `map` — the\n * per-collection residue accumulator both purge sites share. */\nexport function bumpResidueCount(map: Map<string, number>, collection: string, count: number): void {\n if (count > 0) map.set(collection, (map.get(collection) ?? 0) + count)\n}\n\n/** Flattens an accumulated per-collection count map into `ForgetResult.scopedPurgeResidue` notices\n * tagged with `reason`. Empty map → empty array (the unconditional-default case). */\nexport function residueNoticesFromMap(\n map: ReadonlyMap<string, number>,\n reason: ScopedPurgeResidueReason,\n): { readonly reason: ScopedPurgeResidueReason; readonly collection: string; readonly count: number }[] {\n return [...map].map(([collection, count]) => ({ reason, collection, count }))\n}\n"],"mappings":";AAiCO,SAAS,uBACd,MACA,QACA,aACA,UACwE;AACxE,QAAM,UAAU,KAAK,OAAO,CAAC,QAAQ,IAAI,WAAW,MAAM,CAAC;AAC3D,MAAI,CAAC,eAAe,SAAU,QAAO,EAAE,SAAS,SAAS,cAAc,EAAE;AACzE,SAAO,EAAE,SAAS,CAAC,GAAG,cAAc,QAAQ,OAAO;AACrD;AASO,SAAS,mBAAmB,aAAsB,UAA4B;AACnF,SAAO,eAAe,CAAC;AACzB;AAIO,SAAS,iBAAiB,KAA0B,YAAoB,OAAqB;AAClG,MAAI,QAAQ,EAAG,KAAI,IAAI,aAAa,IAAI,IAAI,UAAU,KAAK,KAAK,KAAK;AACvE;AAIO,SAAS,sBACd,KACA,QACsG;AACtG,SAAO,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,CAAC,YAAY,KAAK,OAAO,EAAE,QAAQ,YAAY,MAAM,EAAE;AAC9E;","names":[]}
|
package/dist/query/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
ScanBuilder,
|
|
5
5
|
buildLiveQuery,
|
|
6
6
|
executePlan
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-7MG2LHO5.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_JOIN_MAX_ROWS,
|
|
10
10
|
applyJoins,
|
|
11
11
|
resetJoinWarnings
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-ZORTV6NH.js";
|
|
13
13
|
import {
|
|
14
14
|
CollectionIndexes
|
|
15
15
|
} from "../chunk-I3ISCYT7.js";
|
|
@@ -29,8 +29,7 @@ import {
|
|
|
29
29
|
IndexRequiredError,
|
|
30
30
|
IndexWriteFailureError,
|
|
31
31
|
JoinTooLargeError
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-PZ5AY32C.js";
|
|
32
|
+
} from "../chunk-7O3Y4PPD.js";
|
|
34
33
|
export {
|
|
35
34
|
CollectionIndexes,
|
|
36
35
|
CrossJoinSourceUnknownError,
|
package/dist/reduce/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
groupAndReduce,
|
|
10
10
|
reduceRecords,
|
|
11
11
|
resetGroupByWarnings
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-ZN4FD4PE.js";
|
|
13
13
|
import "../chunk-XZHEOSQ2.js";
|
|
14
14
|
import {
|
|
15
15
|
NO_REDUCE
|
|
@@ -26,10 +26,9 @@ import {
|
|
|
26
26
|
sum
|
|
27
27
|
} from "../chunk-ATL3ZVXT.js";
|
|
28
28
|
import "../chunk-NSITFOCJ.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-PZ5AY32C.js";
|
|
29
|
+
import "../chunk-TRGTKX5E.js";
|
|
30
|
+
import "../chunk-UXVWEX5L.js";
|
|
31
|
+
import "../chunk-7O3Y4PPD.js";
|
|
33
32
|
|
|
34
33
|
// src/with-lookup/reduce/active.ts
|
|
35
34
|
function withReduce() {
|
package/dist/reduce/index.js.map
CHANGED
|
@@ -1 +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":"
|
|
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,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
persistClassifiedMarker,
|
|
3
|
+
persistSatelliteMarker,
|
|
4
|
+
persistSchemaIfNeeded
|
|
5
|
+
} from "./chunk-K6LHRFBL.js";
|
|
6
|
+
import "./chunk-ZVF37PKE.js";
|
|
7
|
+
import "./chunk-VXGSWL6L.js";
|
|
8
|
+
import "./chunk-EPFF7LOX.js";
|
|
9
|
+
import "./chunk-453F654R.js";
|
|
10
|
+
import "./chunk-REDOOY2Q.js";
|
|
11
|
+
import "./chunk-Y2NBBT6K.js";
|
|
12
|
+
import "./chunk-2Y4IMKA6.js";
|
|
13
|
+
import "./chunk-GHVIKOHT.js";
|
|
14
|
+
import "./chunk-L742JPKZ.js";
|
|
15
|
+
import "./chunk-I7FD46FF.js";
|
|
16
|
+
import "./chunk-BOET4NA4.js";
|
|
17
|
+
import "./chunk-77K4PG6P.js";
|
|
18
|
+
import "./chunk-SZJ3DLZA.js";
|
|
19
|
+
import "./chunk-BOWNCWZT.js";
|
|
20
|
+
import "./chunk-YSRUYAVU.js";
|
|
21
|
+
import "./chunk-RMF67KCG.js";
|
|
22
|
+
import "./chunk-LP7BEXCT.js";
|
|
23
|
+
import "./chunk-SL3JAAKN.js";
|
|
24
|
+
import "./chunk-7MG7SJT7.js";
|
|
25
|
+
import "./chunk-7O3Y4PPD.js";
|
|
26
|
+
export {
|
|
27
|
+
persistClassifiedMarker,
|
|
28
|
+
persistSatelliteMarker,
|
|
29
|
+
persistSchemaIfNeeded
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=register-I2DZXGAR.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaterializedViewRegistry,
|
|
3
|
+
wrapDbWithPredicates
|
|
4
|
+
} from "./chunk-QIBVIOXO.js";
|
|
5
|
+
import "./chunk-77K4PG6P.js";
|
|
6
|
+
import "./chunk-SZJ3DLZA.js";
|
|
7
|
+
import "./chunk-BOWNCWZT.js";
|
|
8
|
+
import "./chunk-YSRUYAVU.js";
|
|
9
|
+
import "./chunk-RMF67KCG.js";
|
|
10
|
+
import "./chunk-LP7BEXCT.js";
|
|
11
|
+
import "./chunk-SL3JAAKN.js";
|
|
12
|
+
import "./chunk-7MG7SJT7.js";
|
|
13
|
+
import "./chunk-7O3Y4PPD.js";
|
|
14
|
+
export {
|
|
15
|
+
MaterializedViewRegistry,
|
|
16
|
+
wrapDbWithPredicates
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=registry-VSSQPIGF.js.map
|