@noy-db/hub 0.7.0-pre.10 → 0.7.0-pre.12
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 +89 -0
- package/README.md +3 -3
- package/dist/api-UE2XQKDN.js +20 -0
- package/dist/as/index.js +11 -10
- package/dist/as/index.js.map +1 -1
- package/dist/at/index.js +6 -6
- package/dist/attestation/index.js +16 -16
- package/dist/{backup-QZQEP5RO.js → backup-R6A4VZRX.js} +12 -12
- package/dist/blobs/index.js +11 -11
- package/dist/broker/index.js +10 -10
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.js +27 -27
- package/dist/{chunk-AHIIBDNH.js → chunk-2Z47NMFK.js} +6 -6
- package/dist/{chunk-2DGBRE4K.js → chunk-4OZNXTO4.js} +2 -2
- package/dist/{chunk-FZWAGG5T.js → chunk-5FUULQ6F.js} +6 -6
- package/dist/{chunk-P7KJME6C.js → chunk-6YXCPL4T.js} +2 -2
- package/dist/{chunk-XJP66QEN.js → chunk-7BE7ZDVQ.js} +380 -2
- package/dist/chunk-7BE7ZDVQ.js.map +1 -0
- package/dist/{chunk-LAI7ENPW.js → chunk-7MG2LHO5.js} +3 -3
- package/dist/{chunk-NUXTUGAD.js → chunk-7NTBVFGD.js} +10 -10
- package/dist/{chunk-SW4TOSJL.js → chunk-7O3Y4PPD.js} +1 -1
- package/dist/chunk-7O3Y4PPD.js.map +1 -0
- package/dist/{chunk-MU74BYOD.js → chunk-ANSIZYEG.js} +3 -3
- package/dist/{chunk-2MQ2D5OZ.js → chunk-B2ZSGYSF.js} +4 -4
- package/dist/{chunk-5W5CEHLA.js → chunk-BBWVXF57.js} +4 -4
- package/dist/{chunk-SWFIXQF5.js → chunk-BERJ4AWW.js} +5 -5
- package/dist/{chunk-Q2OAAREU.js → chunk-BMSOTHIA.js} +5 -5
- package/dist/{chunk-XGXVPCYW.js → chunk-BOWNCWZT.js} +3 -3
- package/dist/{chunk-65ZYRK7O.js → chunk-BUE2D7PX.js} +26 -3
- package/dist/chunk-BUE2D7PX.js.map +1 -0
- package/dist/{chunk-UTFY6W6X.js → chunk-BZ3534YM.js} +2 -2
- package/dist/{chunk-DOPZWTMJ.js → chunk-CIGAQBJR.js} +6 -6
- package/dist/{chunk-3GIA3HJ2.js → chunk-DGOZ4UZD.js} +2 -2
- package/dist/{chunk-7XT7KZTN.js → chunk-DJ3LNNZQ.js} +8 -8
- package/dist/{chunk-IS5LFHV2.js → chunk-DMJZBQ7F.js} +6 -6
- package/dist/{chunk-MENI33ZV.js → chunk-E3EBMC4G.js} +3 -3
- package/dist/{chunk-T66OY2U5.js → chunk-E5OHKSBD.js} +6 -6
- package/dist/{chunk-LUVGSKXE.js → chunk-EVKR67PQ.js} +5 -5
- package/dist/{chunk-Q2ZN5DWZ.js → chunk-FAHMLERK.js} +2 -2
- package/dist/{chunk-FN26SFGH.js → chunk-FYEZC4PX.js} +2 -2
- package/dist/{chunk-OLUTCM23.js → chunk-GHHUF2KL.js} +5 -5
- package/dist/{chunk-DNMTN46H.js → chunk-GY4WYNNG.js} +2 -2
- package/dist/{chunk-OQDHIAR2.js → chunk-H7XCIM3Z.js} +61 -8
- package/dist/chunk-H7XCIM3Z.js.map +1 -0
- package/dist/{chunk-IAHDSFFA.js → chunk-HN4FNA4X.js} +10 -10
- package/dist/{chunk-JRWLUWDM.js → chunk-IPFE6MVM.js} +3 -3
- package/dist/{chunk-PV7XXAXK.js → chunk-JBDFMYKQ.js} +2 -2
- package/dist/{chunk-3SWP2FYA.js → chunk-JJR2JIN4.js} +8 -8
- package/dist/{chunk-IZTU6RKH.js → chunk-JMGDHKQF.js} +2 -2
- package/dist/{chunk-P2RJAVMR.js → chunk-KCUIMITG.js} +3 -3
- package/dist/chunk-KL7AS3HV.js +84 -0
- package/dist/chunk-KL7AS3HV.js.map +1 -0
- package/dist/{chunk-MOQ6OGKS.js → chunk-KLPASWYY.js} +3 -3
- package/dist/{chunk-JILOSL4O.js → chunk-KTDGZPOZ.js} +2 -2
- package/dist/{chunk-ZB2K3FV7.js → chunk-KTFRCC5C.js} +2 -2
- package/dist/{chunk-7PC3DRG7.js → chunk-LHH6H43C.js} +6 -6
- package/dist/{chunk-QOHGWFAW.js → chunk-LWBCUYZW.js} +2 -2
- package/dist/{chunk-NMDMSHBF.js → chunk-MLO75SFJ.js} +2 -2
- package/dist/{chunk-H5GVPOB4.js → chunk-MMOZQTXV.js} +4 -4
- package/dist/{chunk-JFSUYGNE.js → chunk-MVMXZYXT.js} +2 -2
- package/dist/{chunk-FKQCC4C5.js → chunk-NQKIUNW5.js} +2 -2
- package/dist/{chunk-IRHIA3AL.js → chunk-PFBL4M7E.js} +3 -3
- package/dist/{chunk-RCONOOVF.js → chunk-PKJ43CMD.js} +5 -5
- package/dist/{chunk-UL7TLJ54.js → chunk-PQKG5AHH.js} +3 -3
- package/dist/{chunk-MTTPHBIE.js → chunk-Q2PU57HC.js} +2 -2
- package/dist/{chunk-FPN5D4JX.js → chunk-Q4RWFV3G.js} +5 -5
- package/dist/{chunk-FLRLZ4XZ.js → chunk-Q7HZX3IF.js} +2 -2
- package/dist/{chunk-5EC7X5QA.js → chunk-QHW35ZON.js} +4 -4
- package/dist/{chunk-75WNTBZL.js → chunk-QIBVIOXO.js} +3 -3
- package/dist/{chunk-KQIDBIZL.js → chunk-QIZPZMUI.js} +2 -2
- package/dist/{chunk-TQGT5BZE.js → chunk-RDZZHYMV.js} +3 -3
- package/dist/{chunk-HOIWW2LV.js → chunk-RGSTMLVO.js} +3 -3
- package/dist/{chunk-KZTPL7NL.js → chunk-RMF67KCG.js} +2 -2
- package/dist/{chunk-OEJ4R52I.js → chunk-RMS3NEA3.js} +2 -2
- package/dist/{chunk-5NKHCJU5.js → chunk-RTYJRFQO.js} +6 -6
- package/dist/chunk-RXLYKVTF.js +17 -0
- package/dist/chunk-RXLYKVTF.js.map +1 -0
- package/dist/{chunk-XKA6UH5V.js → chunk-SFAWCTEM.js} +2 -2
- package/dist/{chunk-FYT3DXPN.js → chunk-SKGMN35F.js} +2 -2
- package/dist/{chunk-USKHHOIV.js → chunk-SL3JAAKN.js} +2 -2
- package/dist/{chunk-FRIVOR5N.js → chunk-SWVNZQVR.js} +4 -4
- package/dist/chunk-TFMM5DBB.js +20 -0
- package/dist/chunk-TFMM5DBB.js.map +1 -0
- package/dist/{chunk-O3SNM66K.js → chunk-TFR7DSOV.js} +2 -2
- package/dist/{chunk-X6YRP5EC.js → chunk-THX6FEEC.js} +5 -5
- package/dist/{chunk-RPX2H2OL.js → chunk-TO3EQ7HF.js} +3 -3
- package/dist/chunk-TPHAGLUH.js +30 -0
- package/dist/chunk-TPHAGLUH.js.map +1 -0
- package/dist/{chunk-DIVY2CJZ.js → chunk-TRGTKX5E.js} +3 -3
- package/dist/{chunk-JY4U6CYV.js → chunk-TUFM4UZP.js} +2 -2
- package/dist/{chunk-OKCQNMO6.js → chunk-U7VPHXXO.js} +5 -5
- package/dist/{chunk-DZPMKY3J.js → chunk-UGTBXF5U.js} +3 -3
- package/dist/{chunk-VT4DTCK5.js → chunk-URHRIAV6.js} +2 -2
- package/dist/{chunk-YHIAWECL.js → chunk-UXVWEX5L.js} +2 -2
- package/dist/{chunk-PCIBCL26.js → chunk-VGICZPVE.js} +7 -5
- package/dist/{chunk-PCIBCL26.js.map → chunk-VGICZPVE.js.map} +1 -1
- package/dist/{chunk-XJTGBHK6.js → chunk-VNR2SNVJ.js} +6 -6
- package/dist/{chunk-GHADG5QZ.js → chunk-VTFVLCUH.js} +2 -2
- package/dist/{chunk-U3RMWOXY.js → chunk-VXANTWBJ.js} +3 -3
- package/dist/{chunk-KHKKD62N.js → chunk-VYYM3MEN.js} +2 -16
- package/dist/chunk-VYYM3MEN.js.map +1 -0
- package/dist/{chunk-QJLOWGOU.js → chunk-WQF3QABE.js} +5 -5
- package/dist/{chunk-GKOJR53Y.js → chunk-WSJG5L5C.js} +4 -4
- package/dist/{chunk-I5LSKXT6.js → chunk-WWNYSV7S.js} +3 -3
- package/dist/{chunk-357ECVLE.js → chunk-XGDYGUEH.js} +3 -3
- package/dist/{chunk-2E2LT37H.js → chunk-XLMEZIAJ.js} +2 -2
- package/dist/{chunk-KKZPQLDH.js → chunk-XMF3GKUR.js} +125 -465
- package/dist/chunk-XMF3GKUR.js.map +1 -0
- package/dist/{chunk-TAJZ7GXO.js → chunk-XNIQ7DP2.js} +2 -2
- package/dist/{chunk-Z277MC2O.js → chunk-Y4MJQ2UG.js} +4 -4
- package/dist/{chunk-OXZSMX2H.js → chunk-YCXICMOY.js} +5 -5
- package/dist/{chunk-MV2OEK3K.js → chunk-YQWBEJCS.js} +4 -4
- package/dist/{chunk-CWFH36SI.js → chunk-YSRUYAVU.js} +2 -2
- package/dist/{chunk-ZQGRZN5L.js → chunk-YYP7WSEB.js} +2 -2
- package/dist/{chunk-HS3LEVT4.js → chunk-ZG4XLOKB.js} +6 -6
- package/dist/{chunk-4U52PMEL.js → chunk-ZN4FD4PE.js} +4 -4
- package/dist/{chunk-AW4KTQA4.js → chunk-ZORTV6NH.js} +2 -2
- package/dist/{chunk-P22XPNFW.js → chunk-ZR2YMODS.js} +2 -2
- package/dist/classified/index.js +4 -4
- package/dist/{classified-marker-R37XW5PC.js → classified-marker-67HBIJMZ.js} +3 -3
- package/dist/{collection-facade-OPJ3EC4L.js → collection-facade-MGGHQ3HU.js} +15 -15
- package/dist/{computed-HW6IG5UH.js → computed-LSEZYRJS.js} +3 -3
- package/dist/consent/index.js +7 -7
- package/dist/cover/index.js +7 -7
- package/dist/custody/index.js +10 -10
- package/dist/{dead-filter-GRT6RAML.js → dead-filter-M3NZUWBZ.js} +2 -2
- package/dist/debug/index.js +1 -1
- package/dist/{delegation-6QRAYSK6.js → delegation-OLJUWTVA.js} +9 -9
- package/dist/derivations/index.js +24 -13
- package/dist/{derive-AAIXSQIE.js → derive-LY47HG7Q.js} +8 -8
- package/dist/directory/index.js +8 -8
- package/dist/{dispatch-QCF7KPIP.js → dispatch-44J4TL72.js} +5 -5
- package/dist/dispatch-XEBHUGBV.js +250 -0
- package/dist/dispatch-XEBHUGBV.js.map +1 -0
- package/dist/{enclave-OXZY3NOP.js → enclave-4YBQK77G.js} +7 -7
- package/dist/executor-KSPGNVDO.js +29 -0
- package/dist/executor-MZJXBWNM.js +9 -0
- package/dist/executor-TOLPBHOC.js +9 -0
- package/dist/export-accessible-LGV6IAFX.js +23 -0
- package/dist/extract-partition-RYJZIKQZ.js +38 -0
- package/dist/{fanout-sidecar-KGQCUJ7P.js → fanout-sidecar-TSFPXY5C.js} +7 -7
- package/dist/find-LC7P63MX.js +11 -0
- package/dist/forget/index.js +7 -7
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +11 -11
- package/dist/i18n/index.js +12 -12
- package/dist/index.d.ts +8 -4
- package/dist/index.js +96 -96
- package/dist/indexing/index.js +2 -2
- package/dist/introspection/index.js +11 -10
- package/dist/issue-IOXM3RSJ.js +19 -0
- package/dist/kernel/collection.d.ts +11 -6
- package/dist/kernel/errors.d.ts +28 -0
- package/dist/kernel/match-pairs.d.ts +30 -0
- package/dist/{ledger-ZAFULLAF.js → ledger-HXHIOD36.js} +9 -9
- package/dist/liberate-4APIV7FR.js +25 -0
- package/dist/{link-set-LQI2IJX6.js → link-set-6RAHEKZN.js} +9 -9
- package/dist/{managed-secret-7OH7HKXV.js → managed-secret-P3JQ7ZG4.js} +7 -7
- package/dist/materialized-views/index.js +18 -18
- package/dist/{migrate-cek-QHZ75E6E.js → migrate-cek-25KNTS5U.js} +2 -2
- package/dist/money/index.js +4 -4
- package/dist/noydb-JJXPICIC.js +88 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +10 -10
- package/dist/pod/index.js +55 -53
- package/dist/{pod-handle-BLOI4IFY.js → pod-handle-6II7KFBR.js} +7 -7
- package/dist/policy/index.js +7 -7
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-R33EKJQR.js → post-register-BPJ36A6D.js} +6 -6
- package/dist/query/index.js +3 -3
- package/dist/reduce/index.js +4 -4
- package/dist/{register-AYBQNTM3.js → register-AEOOGKNO.js} +13 -13
- package/dist/registry-BZQIVNNO.js +29 -0
- package/dist/registry-I6FP4677.js +19 -0
- package/dist/registry-SHMGHEK4.js +9 -0
- package/dist/registry-SKSOUXNF.js +9 -0
- package/dist/{request-withdrawal-7IKUIAEB.js → request-withdrawal-6HJT4ODF.js} +12 -12
- package/dist/{reveal-PI6ADRQU.js → reveal-DDQBDWPM.js} +4 -4
- package/dist/{revoke-PUJKRYJF.js → revoke-U7U3FMXU.js} +9 -9
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +10 -10
- package/dist/search/index.js +4 -4
- package/dist/{seed-MCCGVPRI.js → seed-3RXT4VGN.js} +10 -10
- package/dist/sequence/index.js +7 -7
- package/dist/session/index.js +7 -7
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-5TA7FUC3.js → signer-7NK7TMWU.js} +8 -8
- package/dist/snapshots/index.js +8 -8
- package/dist/{stale-HZR7745Y.js → stale-KSPG6LFX.js} +8 -8
- package/dist/{storage-J2QHNJCB.js → storage-WP4M7IFO.js} +8 -8
- package/dist/{store-coordination-provider-MYIHSZXT.js → store-coordination-provider-O2VUEMJH.js} +7 -7
- package/dist/sync/index.js +8 -8
- package/dist/team/index.js +12 -12
- package/dist/tiers/index.js +9 -9
- package/dist/to/index.js +1 -1
- package/dist/transactions/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/vault-head/index.js +6 -6
- package/dist/{verify-R6CCBUA3.js → verify-JBXCAGDL.js} +5 -5
- package/dist/walk-P3E6QSNC.js +22 -0
- package/dist/with-formula/derivations/dispatch.d.ts +16 -1
- package/dist/with-formula/derivations/registry.d.ts +15 -0
- package/dist/with-formula/derivations/trigger-match.d.ts +52 -0
- package/dist/with-formula/derivations/types.d.ts +23 -0
- package/dist/with-shape/introspection/behaviors.d.ts +7 -0
- package/dist/with-shape/introspection/describe.d.ts +40 -0
- package/dist/{withdraw-accessible-62VI4W7D.js → withdraw-accessible-6Q7NE4EY.js} +11 -11
- package/package.json +3 -3
- package/dist/api-GJQF7OAJ.js +0 -20
- package/dist/chunk-65ZYRK7O.js.map +0 -1
- package/dist/chunk-J6FXVDKC.js +0 -81
- package/dist/chunk-J6FXVDKC.js.map +0 -1
- package/dist/chunk-KHKKD62N.js.map +0 -1
- package/dist/chunk-KKZPQLDH.js.map +0 -1
- package/dist/chunk-OQDHIAR2.js.map +0 -1
- package/dist/chunk-SW4TOSJL.js.map +0 -1
- package/dist/chunk-XJP66QEN.js.map +0 -1
- package/dist/dispatch-DR3XITEC.js +0 -194
- package/dist/dispatch-DR3XITEC.js.map +0 -1
- package/dist/executor-67NA4KPO.js +0 -29
- package/dist/executor-7JDP7UBK.js +0 -9
- package/dist/executor-CRH5OB4V.js +0 -9
- package/dist/export-accessible-K4GJAU7U.js +0 -23
- package/dist/extract-partition-YJFL5OKK.js +0 -38
- package/dist/find-SVZHMEQI.js +0 -11
- package/dist/issue-64N6OG7U.js +0 -19
- package/dist/liberate-QAUKHU6W.js +0 -25
- package/dist/noydb-ZUS5XAFT.js +0 -86
- package/dist/registry-CQWWOBO4.js +0 -9
- package/dist/registry-JCZ4BNLV.js +0 -18
- package/dist/registry-JFFENZ44.js +0 -9
- package/dist/registry-ZA4HACYR.js +0 -19
- package/dist/walk-3PA4ZOKS.js +0 -21
- /package/dist/{api-GJQF7OAJ.js.map → api-UE2XQKDN.js.map} +0 -0
- /package/dist/{backup-QZQEP5RO.js.map → backup-R6A4VZRX.js.map} +0 -0
- /package/dist/{chunk-AHIIBDNH.js.map → chunk-2Z47NMFK.js.map} +0 -0
- /package/dist/{chunk-2DGBRE4K.js.map → chunk-4OZNXTO4.js.map} +0 -0
- /package/dist/{chunk-FZWAGG5T.js.map → chunk-5FUULQ6F.js.map} +0 -0
- /package/dist/{chunk-P7KJME6C.js.map → chunk-6YXCPL4T.js.map} +0 -0
- /package/dist/{chunk-LAI7ENPW.js.map → chunk-7MG2LHO5.js.map} +0 -0
- /package/dist/{chunk-NUXTUGAD.js.map → chunk-7NTBVFGD.js.map} +0 -0
- /package/dist/{chunk-MU74BYOD.js.map → chunk-ANSIZYEG.js.map} +0 -0
- /package/dist/{chunk-2MQ2D5OZ.js.map → chunk-B2ZSGYSF.js.map} +0 -0
- /package/dist/{chunk-5W5CEHLA.js.map → chunk-BBWVXF57.js.map} +0 -0
- /package/dist/{chunk-SWFIXQF5.js.map → chunk-BERJ4AWW.js.map} +0 -0
- /package/dist/{chunk-Q2OAAREU.js.map → chunk-BMSOTHIA.js.map} +0 -0
- /package/dist/{chunk-XGXVPCYW.js.map → chunk-BOWNCWZT.js.map} +0 -0
- /package/dist/{chunk-UTFY6W6X.js.map → chunk-BZ3534YM.js.map} +0 -0
- /package/dist/{chunk-DOPZWTMJ.js.map → chunk-CIGAQBJR.js.map} +0 -0
- /package/dist/{chunk-3GIA3HJ2.js.map → chunk-DGOZ4UZD.js.map} +0 -0
- /package/dist/{chunk-7XT7KZTN.js.map → chunk-DJ3LNNZQ.js.map} +0 -0
- /package/dist/{chunk-IS5LFHV2.js.map → chunk-DMJZBQ7F.js.map} +0 -0
- /package/dist/{chunk-MENI33ZV.js.map → chunk-E3EBMC4G.js.map} +0 -0
- /package/dist/{chunk-T66OY2U5.js.map → chunk-E5OHKSBD.js.map} +0 -0
- /package/dist/{chunk-LUVGSKXE.js.map → chunk-EVKR67PQ.js.map} +0 -0
- /package/dist/{chunk-Q2ZN5DWZ.js.map → chunk-FAHMLERK.js.map} +0 -0
- /package/dist/{chunk-FN26SFGH.js.map → chunk-FYEZC4PX.js.map} +0 -0
- /package/dist/{chunk-OLUTCM23.js.map → chunk-GHHUF2KL.js.map} +0 -0
- /package/dist/{chunk-DNMTN46H.js.map → chunk-GY4WYNNG.js.map} +0 -0
- /package/dist/{chunk-IAHDSFFA.js.map → chunk-HN4FNA4X.js.map} +0 -0
- /package/dist/{chunk-JRWLUWDM.js.map → chunk-IPFE6MVM.js.map} +0 -0
- /package/dist/{chunk-PV7XXAXK.js.map → chunk-JBDFMYKQ.js.map} +0 -0
- /package/dist/{chunk-3SWP2FYA.js.map → chunk-JJR2JIN4.js.map} +0 -0
- /package/dist/{chunk-IZTU6RKH.js.map → chunk-JMGDHKQF.js.map} +0 -0
- /package/dist/{chunk-P2RJAVMR.js.map → chunk-KCUIMITG.js.map} +0 -0
- /package/dist/{chunk-MOQ6OGKS.js.map → chunk-KLPASWYY.js.map} +0 -0
- /package/dist/{chunk-JILOSL4O.js.map → chunk-KTDGZPOZ.js.map} +0 -0
- /package/dist/{chunk-ZB2K3FV7.js.map → chunk-KTFRCC5C.js.map} +0 -0
- /package/dist/{chunk-7PC3DRG7.js.map → chunk-LHH6H43C.js.map} +0 -0
- /package/dist/{chunk-QOHGWFAW.js.map → chunk-LWBCUYZW.js.map} +0 -0
- /package/dist/{chunk-NMDMSHBF.js.map → chunk-MLO75SFJ.js.map} +0 -0
- /package/dist/{chunk-H5GVPOB4.js.map → chunk-MMOZQTXV.js.map} +0 -0
- /package/dist/{chunk-JFSUYGNE.js.map → chunk-MVMXZYXT.js.map} +0 -0
- /package/dist/{chunk-FKQCC4C5.js.map → chunk-NQKIUNW5.js.map} +0 -0
- /package/dist/{chunk-IRHIA3AL.js.map → chunk-PFBL4M7E.js.map} +0 -0
- /package/dist/{chunk-RCONOOVF.js.map → chunk-PKJ43CMD.js.map} +0 -0
- /package/dist/{chunk-UL7TLJ54.js.map → chunk-PQKG5AHH.js.map} +0 -0
- /package/dist/{chunk-MTTPHBIE.js.map → chunk-Q2PU57HC.js.map} +0 -0
- /package/dist/{chunk-FPN5D4JX.js.map → chunk-Q4RWFV3G.js.map} +0 -0
- /package/dist/{chunk-FLRLZ4XZ.js.map → chunk-Q7HZX3IF.js.map} +0 -0
- /package/dist/{chunk-5EC7X5QA.js.map → chunk-QHW35ZON.js.map} +0 -0
- /package/dist/{chunk-75WNTBZL.js.map → chunk-QIBVIOXO.js.map} +0 -0
- /package/dist/{chunk-KQIDBIZL.js.map → chunk-QIZPZMUI.js.map} +0 -0
- /package/dist/{chunk-TQGT5BZE.js.map → chunk-RDZZHYMV.js.map} +0 -0
- /package/dist/{chunk-HOIWW2LV.js.map → chunk-RGSTMLVO.js.map} +0 -0
- /package/dist/{chunk-KZTPL7NL.js.map → chunk-RMF67KCG.js.map} +0 -0
- /package/dist/{chunk-OEJ4R52I.js.map → chunk-RMS3NEA3.js.map} +0 -0
- /package/dist/{chunk-5NKHCJU5.js.map → chunk-RTYJRFQO.js.map} +0 -0
- /package/dist/{chunk-XKA6UH5V.js.map → chunk-SFAWCTEM.js.map} +0 -0
- /package/dist/{chunk-FYT3DXPN.js.map → chunk-SKGMN35F.js.map} +0 -0
- /package/dist/{chunk-USKHHOIV.js.map → chunk-SL3JAAKN.js.map} +0 -0
- /package/dist/{chunk-FRIVOR5N.js.map → chunk-SWVNZQVR.js.map} +0 -0
- /package/dist/{chunk-O3SNM66K.js.map → chunk-TFR7DSOV.js.map} +0 -0
- /package/dist/{chunk-X6YRP5EC.js.map → chunk-THX6FEEC.js.map} +0 -0
- /package/dist/{chunk-RPX2H2OL.js.map → chunk-TO3EQ7HF.js.map} +0 -0
- /package/dist/{chunk-DIVY2CJZ.js.map → chunk-TRGTKX5E.js.map} +0 -0
- /package/dist/{chunk-JY4U6CYV.js.map → chunk-TUFM4UZP.js.map} +0 -0
- /package/dist/{chunk-OKCQNMO6.js.map → chunk-U7VPHXXO.js.map} +0 -0
- /package/dist/{chunk-DZPMKY3J.js.map → chunk-UGTBXF5U.js.map} +0 -0
- /package/dist/{chunk-VT4DTCK5.js.map → chunk-URHRIAV6.js.map} +0 -0
- /package/dist/{chunk-YHIAWECL.js.map → chunk-UXVWEX5L.js.map} +0 -0
- /package/dist/{chunk-XJTGBHK6.js.map → chunk-VNR2SNVJ.js.map} +0 -0
- /package/dist/{chunk-GHADG5QZ.js.map → chunk-VTFVLCUH.js.map} +0 -0
- /package/dist/{chunk-U3RMWOXY.js.map → chunk-VXANTWBJ.js.map} +0 -0
- /package/dist/{chunk-QJLOWGOU.js.map → chunk-WQF3QABE.js.map} +0 -0
- /package/dist/{chunk-GKOJR53Y.js.map → chunk-WSJG5L5C.js.map} +0 -0
- /package/dist/{chunk-I5LSKXT6.js.map → chunk-WWNYSV7S.js.map} +0 -0
- /package/dist/{chunk-357ECVLE.js.map → chunk-XGDYGUEH.js.map} +0 -0
- /package/dist/{chunk-2E2LT37H.js.map → chunk-XLMEZIAJ.js.map} +0 -0
- /package/dist/{chunk-TAJZ7GXO.js.map → chunk-XNIQ7DP2.js.map} +0 -0
- /package/dist/{chunk-Z277MC2O.js.map → chunk-Y4MJQ2UG.js.map} +0 -0
- /package/dist/{chunk-OXZSMX2H.js.map → chunk-YCXICMOY.js.map} +0 -0
- /package/dist/{chunk-MV2OEK3K.js.map → chunk-YQWBEJCS.js.map} +0 -0
- /package/dist/{chunk-CWFH36SI.js.map → chunk-YSRUYAVU.js.map} +0 -0
- /package/dist/{chunk-ZQGRZN5L.js.map → chunk-YYP7WSEB.js.map} +0 -0
- /package/dist/{chunk-HS3LEVT4.js.map → chunk-ZG4XLOKB.js.map} +0 -0
- /package/dist/{chunk-4U52PMEL.js.map → chunk-ZN4FD4PE.js.map} +0 -0
- /package/dist/{chunk-AW4KTQA4.js.map → chunk-ZORTV6NH.js.map} +0 -0
- /package/dist/{chunk-P22XPNFW.js.map → chunk-ZR2YMODS.js.map} +0 -0
- /package/dist/{classified-marker-R37XW5PC.js.map → classified-marker-67HBIJMZ.js.map} +0 -0
- /package/dist/{collection-facade-OPJ3EC4L.js.map → collection-facade-MGGHQ3HU.js.map} +0 -0
- /package/dist/{computed-HW6IG5UH.js.map → computed-LSEZYRJS.js.map} +0 -0
- /package/dist/{dead-filter-GRT6RAML.js.map → dead-filter-M3NZUWBZ.js.map} +0 -0
- /package/dist/{delegation-6QRAYSK6.js.map → delegation-OLJUWTVA.js.map} +0 -0
- /package/dist/{derive-AAIXSQIE.js.map → derive-LY47HG7Q.js.map} +0 -0
- /package/dist/{dispatch-QCF7KPIP.js.map → dispatch-44J4TL72.js.map} +0 -0
- /package/dist/{enclave-OXZY3NOP.js.map → enclave-4YBQK77G.js.map} +0 -0
- /package/dist/{executor-67NA4KPO.js.map → executor-KSPGNVDO.js.map} +0 -0
- /package/dist/{executor-7JDP7UBK.js.map → executor-MZJXBWNM.js.map} +0 -0
- /package/dist/{executor-CRH5OB4V.js.map → executor-TOLPBHOC.js.map} +0 -0
- /package/dist/{export-accessible-K4GJAU7U.js.map → export-accessible-LGV6IAFX.js.map} +0 -0
- /package/dist/{extract-partition-YJFL5OKK.js.map → extract-partition-RYJZIKQZ.js.map} +0 -0
- /package/dist/{fanout-sidecar-KGQCUJ7P.js.map → fanout-sidecar-TSFPXY5C.js.map} +0 -0
- /package/dist/{find-SVZHMEQI.js.map → find-LC7P63MX.js.map} +0 -0
- /package/dist/{issue-64N6OG7U.js.map → issue-IOXM3RSJ.js.map} +0 -0
- /package/dist/{ledger-ZAFULLAF.js.map → ledger-HXHIOD36.js.map} +0 -0
- /package/dist/{liberate-QAUKHU6W.js.map → liberate-4APIV7FR.js.map} +0 -0
- /package/dist/{link-set-LQI2IJX6.js.map → link-set-6RAHEKZN.js.map} +0 -0
- /package/dist/{managed-secret-7OH7HKXV.js.map → managed-secret-P3JQ7ZG4.js.map} +0 -0
- /package/dist/{migrate-cek-QHZ75E6E.js.map → migrate-cek-25KNTS5U.js.map} +0 -0
- /package/dist/{noydb-ZUS5XAFT.js.map → noydb-JJXPICIC.js.map} +0 -0
- /package/dist/{pod-handle-BLOI4IFY.js.map → pod-handle-6II7KFBR.js.map} +0 -0
- /package/dist/{post-register-R33EKJQR.js.map → post-register-BPJ36A6D.js.map} +0 -0
- /package/dist/{register-AYBQNTM3.js.map → register-AEOOGKNO.js.map} +0 -0
- /package/dist/{registry-CQWWOBO4.js.map → registry-BZQIVNNO.js.map} +0 -0
- /package/dist/{registry-JCZ4BNLV.js.map → registry-I6FP4677.js.map} +0 -0
- /package/dist/{registry-JFFENZ44.js.map → registry-SHMGHEK4.js.map} +0 -0
- /package/dist/{registry-ZA4HACYR.js.map → registry-SKSOUXNF.js.map} +0 -0
- /package/dist/{request-withdrawal-7IKUIAEB.js.map → request-withdrawal-6HJT4ODF.js.map} +0 -0
- /package/dist/{reveal-PI6ADRQU.js.map → reveal-DDQBDWPM.js.map} +0 -0
- /package/dist/{revoke-PUJKRYJF.js.map → revoke-U7U3FMXU.js.map} +0 -0
- /package/dist/{seed-MCCGVPRI.js.map → seed-3RXT4VGN.js.map} +0 -0
- /package/dist/{signer-5TA7FUC3.js.map → signer-7NK7TMWU.js.map} +0 -0
- /package/dist/{stale-HZR7745Y.js.map → stale-KSPG6LFX.js.map} +0 -0
- /package/dist/{storage-J2QHNJCB.js.map → storage-WP4M7IFO.js.map} +0 -0
- /package/dist/{store-coordination-provider-MYIHSZXT.js.map → store-coordination-provider-O2VUEMJH.js.map} +0 -0
- /package/dist/{verify-R6CCBUA3.js.map → verify-JBXCAGDL.js.map} +0 -0
- /package/dist/{walk-3PA4ZOKS.js.map → walk-P3E6QSNC.js.map} +0 -0
- /package/dist/{withdraw-accessible-62VI4W7D.js.map → withdraw-accessible-6Q7NE4EY.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveStaleOnRead
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KL7AS3HV.js";
|
|
4
4
|
import {
|
|
5
5
|
isManifestReservedCollection
|
|
6
6
|
} from "./chunk-EPFF7LOX.js";
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
isLinkCollectionName,
|
|
11
11
|
linkCollectionName,
|
|
12
12
|
linkRowKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QIZPZMUI.js";
|
|
14
14
|
import {
|
|
15
15
|
hashFields,
|
|
16
16
|
validateSatelliteDeclaration
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TUFM4UZP.js";
|
|
18
18
|
import {
|
|
19
19
|
loadFence
|
|
20
20
|
} from "./chunk-GM4IM7TC.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
buildPersistedIndexCallbacks,
|
|
24
24
|
encodeVecId,
|
|
25
25
|
syncTierSearch
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WQF3QABE.js";
|
|
27
27
|
import {
|
|
28
28
|
isBaseLive,
|
|
29
29
|
liveBaseIdSet
|
|
@@ -33,54 +33,55 @@ import {
|
|
|
33
33
|
} from "./chunk-6LJY7X5A.js";
|
|
34
34
|
import {
|
|
35
35
|
NO_ATTESTATION
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Q7HZX3IF.js";
|
|
37
37
|
import {
|
|
38
38
|
NO_CLASSIFIED,
|
|
39
39
|
guardClassifiedCompat,
|
|
40
40
|
resolveClassifiedFields
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KCUIMITG.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_TIERS,
|
|
44
44
|
classifySealedShred,
|
|
45
45
|
syncDerivedOutputs
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-RTYJRFQO.js";
|
|
47
47
|
import {
|
|
48
48
|
NO_PORTABILITY
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BZ3534YM.js";
|
|
50
50
|
import {
|
|
51
51
|
NO_CARGO
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-NQKIUNW5.js";
|
|
53
53
|
import {
|
|
54
54
|
saveSealedSecret
|
|
55
55
|
} from "./chunk-JUBWUJY5.js";
|
|
56
56
|
import {
|
|
57
57
|
runDrainBarrier
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-VTFVLCUH.js";
|
|
59
59
|
import {
|
|
60
|
-
fallbackDerivationName
|
|
61
|
-
|
|
62
|
-
} from "./chunk-KHKKD62N.js";
|
|
63
|
-
import {
|
|
64
|
-
derivePersistedSchema,
|
|
65
|
-
isZod4Schema
|
|
66
|
-
} from "./chunk-VT4DTCK5.js";
|
|
67
|
-
import {
|
|
68
|
-
loadPersistedSchema
|
|
69
|
-
} from "./chunk-I5LSKXT6.js";
|
|
60
|
+
fallbackDerivationName
|
|
61
|
+
} from "./chunk-RXLYKVTF.js";
|
|
70
62
|
import {
|
|
71
63
|
NO_SEQUENCE,
|
|
72
64
|
SEQUENCE_COLLECTION,
|
|
73
65
|
compileSequenceFormat,
|
|
74
66
|
resolveSequenceKey
|
|
75
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MMOZQTXV.js";
|
|
76
68
|
import {
|
|
77
69
|
CustodyApi,
|
|
78
70
|
NO_CUSTODY
|
|
79
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-Y4MJQ2UG.js";
|
|
80
72
|
import {
|
|
81
73
|
DEFAULT_POSTURE,
|
|
82
|
-
ViaGraph
|
|
83
|
-
|
|
74
|
+
ViaGraph,
|
|
75
|
+
buildDescription,
|
|
76
|
+
deriveZodFields,
|
|
77
|
+
resolveDescribeFieldIds
|
|
78
|
+
} from "./chunk-7BE7ZDVQ.js";
|
|
79
|
+
import {
|
|
80
|
+
findMatchingIdsByPairs
|
|
81
|
+
} from "./chunk-TFMM5DBB.js";
|
|
82
|
+
import {
|
|
83
|
+
derivePersistedSchema
|
|
84
|
+
} from "./chunk-URHRIAV6.js";
|
|
84
85
|
import {
|
|
85
86
|
buildLookupAltIndex,
|
|
86
87
|
buildLookupSnapshotRows,
|
|
@@ -104,10 +105,10 @@ import {
|
|
|
104
105
|
selfWriteFieldEqual,
|
|
105
106
|
touchFor,
|
|
106
107
|
updateReferencingRecords
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-SWVNZQVR.js";
|
|
108
109
|
import {
|
|
109
110
|
OverlayedCollection
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-SKGMN35F.js";
|
|
111
112
|
import {
|
|
112
113
|
INDEXED_STORE_POLICY,
|
|
113
114
|
NO_SYNC
|
|
@@ -122,7 +123,7 @@ import {
|
|
|
122
123
|
resolvePeriodKey,
|
|
123
124
|
resolveReopenState,
|
|
124
125
|
samePartition
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-BERJ4AWW.js";
|
|
126
127
|
import {
|
|
127
128
|
PERIODS_COLLECTION,
|
|
128
129
|
PERIOD_ARCHIVES_COLLECTION,
|
|
@@ -130,7 +131,7 @@ import {
|
|
|
130
131
|
PERIOD_REOPENS_COLLECTION,
|
|
131
132
|
PERIOD_TARGET_PURGES_COLLECTION,
|
|
132
133
|
periodExclusiveUpperBound
|
|
133
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-FAHMLERK.js";
|
|
134
135
|
import {
|
|
135
136
|
NO_SHADOW
|
|
136
137
|
} from "./chunk-SMY5X46Z.js";
|
|
@@ -140,7 +141,7 @@ import {
|
|
|
140
141
|
import {
|
|
141
142
|
TxContext,
|
|
142
143
|
bestEffortRevert
|
|
143
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-TO3EQ7HF.js";
|
|
144
145
|
import {
|
|
145
146
|
lazy
|
|
146
147
|
} from "./chunk-5D2ALSM5.js";
|
|
@@ -148,26 +149,26 @@ import {
|
|
|
148
149
|
InvertedIndex,
|
|
149
150
|
MemoryIndexStore,
|
|
150
151
|
NO_SEARCH
|
|
151
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-HN4FNA4X.js";
|
|
152
153
|
import {
|
|
153
154
|
NO_SEALED_RECORD
|
|
154
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-6YXCPL4T.js";
|
|
155
156
|
import {
|
|
156
157
|
Query,
|
|
157
158
|
ScanBuilder
|
|
158
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-7MG2LHO5.js";
|
|
159
160
|
import {
|
|
160
161
|
EXPORT_AUDIT_COLLECTION,
|
|
161
162
|
NO_BLOBS,
|
|
162
163
|
createExportBlobsHandle,
|
|
163
164
|
runCompaction
|
|
164
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-DMJZBQ7F.js";
|
|
165
166
|
import {
|
|
166
167
|
LazyQuery,
|
|
167
168
|
NO_INDEXING,
|
|
168
169
|
decodeIdxId,
|
|
169
170
|
encodeIdxId
|
|
170
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-KTFRCC5C.js";
|
|
171
172
|
import {
|
|
172
173
|
normalizeIndexDefs
|
|
173
174
|
} from "./chunk-I3ISCYT7.js";
|
|
@@ -190,7 +191,7 @@ import {
|
|
|
190
191
|
} from "./chunk-PVEWA2DU.js";
|
|
191
192
|
import {
|
|
192
193
|
dictCollectionName
|
|
193
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-RDZZHYMV.js";
|
|
194
195
|
import {
|
|
195
196
|
NO_I18N,
|
|
196
197
|
getAtPath,
|
|
@@ -198,11 +199,11 @@ import {
|
|
|
198
199
|
isDictKeyDescriptor,
|
|
199
200
|
isI18nTextDescriptor,
|
|
200
201
|
isStaticDictDescriptor
|
|
201
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-TRGTKX5E.js";
|
|
202
203
|
import {
|
|
203
204
|
isViaInstalled,
|
|
204
205
|
viaBinder
|
|
205
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-UXVWEX5L.js";
|
|
206
207
|
import {
|
|
207
208
|
NO_TEAM,
|
|
208
209
|
describeAllUsersAuth,
|
|
@@ -225,7 +226,7 @@ import {
|
|
|
225
226
|
saveShamirRecoveryEntries,
|
|
226
227
|
updateAuthenticator,
|
|
227
228
|
writeMagicLinkGrant
|
|
228
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-LHH6H43C.js";
|
|
229
230
|
import {
|
|
230
231
|
assertKeyringOpenAllowed,
|
|
231
232
|
buildRecipientKeyringFile,
|
|
@@ -240,15 +241,15 @@ import {
|
|
|
240
241
|
listUsers,
|
|
241
242
|
loadKeyring,
|
|
242
243
|
updateKeyringIdentity
|
|
243
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-VNR2SNVJ.js";
|
|
244
245
|
import {
|
|
245
246
|
persistDirectoryConfig,
|
|
246
247
|
readDirectoryConfig
|
|
247
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-YQWBEJCS.js";
|
|
248
249
|
import {
|
|
249
250
|
NO_BROKER,
|
|
250
251
|
buildCredentialBrokerHandle
|
|
251
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-JBDFMYKQ.js";
|
|
252
253
|
import {
|
|
253
254
|
NO_SESSION
|
|
254
255
|
} from "./chunk-VKQCVU2Z.js";
|
|
@@ -257,16 +258,16 @@ import {
|
|
|
257
258
|
} from "./chunk-4AOERLTV.js";
|
|
258
259
|
import {
|
|
259
260
|
NO_HISTORY
|
|
260
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-XNIQ7DP2.js";
|
|
261
262
|
import {
|
|
262
263
|
sha256Hex
|
|
263
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-IPFE6MVM.js";
|
|
264
265
|
import {
|
|
265
266
|
assertCutoverTierSafe,
|
|
266
267
|
assertTierWritable,
|
|
267
268
|
dekKey,
|
|
268
269
|
liveRecordIsElevated
|
|
269
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-JMGDHKQF.js";
|
|
270
271
|
import {
|
|
271
272
|
NO_VAULT_HEAD
|
|
272
273
|
} from "./chunk-HK67PX4J.js";
|
|
@@ -278,7 +279,7 @@ import {
|
|
|
278
279
|
readDottedPath,
|
|
279
280
|
rebuildSubjectIndex,
|
|
280
281
|
removeSubjectRef
|
|
281
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-RGSTMLVO.js";
|
|
282
283
|
import {
|
|
283
284
|
RecordCodec,
|
|
284
285
|
SEALED_CEK_NS,
|
|
@@ -294,7 +295,7 @@ import {
|
|
|
294
295
|
rewrapBodyToDek,
|
|
295
296
|
validateSchemaInput,
|
|
296
297
|
verifyRecordIdentity
|
|
297
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-CIGAQBJR.js";
|
|
298
299
|
import {
|
|
299
300
|
buildDeleteMarker,
|
|
300
301
|
buildRecordEnvelope,
|
|
@@ -304,7 +305,7 @@ import {
|
|
|
304
305
|
} from "./chunk-4RUFYGWG.js";
|
|
305
306
|
import {
|
|
306
307
|
encrypt
|
|
307
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-SL3JAAKN.js";
|
|
308
309
|
import {
|
|
309
310
|
SealedHandle
|
|
310
311
|
} from "./chunk-N4CHCXDL.js";
|
|
@@ -350,7 +351,7 @@ import {
|
|
|
350
351
|
UnsupportedTierCompositionError,
|
|
351
352
|
ValidationError,
|
|
352
353
|
isConflictError
|
|
353
|
-
} from "./chunk-
|
|
354
|
+
} from "./chunk-7O3Y4PPD.js";
|
|
354
355
|
|
|
355
356
|
// src/kernel/merge-authority.ts
|
|
356
357
|
function buildMergeAuthority(keyring) {
|
|
@@ -530,7 +531,7 @@ function validateSecretModeOptions(options) {
|
|
|
530
531
|
}
|
|
531
532
|
async function resolveEffectiveSecret(options, store, vault) {
|
|
532
533
|
if (options.secretMode === "managed") {
|
|
533
|
-
const { resolveManagedSecret } = await import("./managed-secret-
|
|
534
|
+
const { resolveManagedSecret } = await import("./managed-secret-P3JQ7ZG4.js");
|
|
534
535
|
return resolveManagedSecret(store, vault, options.sealingKey);
|
|
535
536
|
}
|
|
536
537
|
return options.secret;
|
|
@@ -548,7 +549,7 @@ function ownerKeyringOptions(options, secret) {
|
|
|
548
549
|
|
|
549
550
|
// src/port/by/default-provider.ts
|
|
550
551
|
async function createDefaultMesh(store) {
|
|
551
|
-
const { StoreMesh } = await import("./store-coordination-provider-
|
|
552
|
+
const { StoreMesh } = await import("./store-coordination-provider-O2VUEMJH.js");
|
|
552
553
|
return new StoreMesh(store);
|
|
553
554
|
}
|
|
554
555
|
|
|
@@ -1575,346 +1576,6 @@ function buildUniqueConstraintSet(collectionName, indexes, mode) {
|
|
|
1575
1576
|
return new UniqueConstraintSet(collectionName, uniqueDefs);
|
|
1576
1577
|
}
|
|
1577
1578
|
|
|
1578
|
-
// src/with-shape/introspection/field-meta.ts
|
|
1579
|
-
var FieldMetaUnknownFieldError = class extends Error {
|
|
1580
|
-
constructor(collection, key) {
|
|
1581
|
-
super(`fieldMeta for collection "${collection}" references unknown field "${key}". Declare it in the schema/config or remove the fieldMeta entry.`);
|
|
1582
|
-
this.collection = collection;
|
|
1583
|
-
this.key = key;
|
|
1584
|
-
this.name = "FieldMetaUnknownFieldError";
|
|
1585
|
-
}
|
|
1586
|
-
collection;
|
|
1587
|
-
key;
|
|
1588
|
-
};
|
|
1589
|
-
function validateFieldMetaKeys(collection, fieldMeta, knownFields) {
|
|
1590
|
-
for (const key of Object.keys(fieldMeta)) {
|
|
1591
|
-
if (!knownFields.has(key)) throw new FieldMetaUnknownFieldError(collection, key);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
function humanizeFieldKey(key) {
|
|
1595
|
-
return key.replace(/[_-]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").trim().split(/\s+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
|
|
1596
|
-
}
|
|
1597
|
-
function resolveFieldMeta(key, inputs) {
|
|
1598
|
-
const { channel, zodMeta, inferred } = inputs;
|
|
1599
|
-
const pick = (k) => channel?.[k] ?? zodMeta?.[k] ?? inferred?.[k];
|
|
1600
|
-
const description = pick("description");
|
|
1601
|
-
const semanticType = pick("semanticType");
|
|
1602
|
-
const unit = pick("unit");
|
|
1603
|
-
const sensitivity = pick("sensitivity");
|
|
1604
|
-
const aggregate = pick("aggregate");
|
|
1605
|
-
const aliases = pick("aliases");
|
|
1606
|
-
const displayFor = pick("displayFor");
|
|
1607
|
-
const widget = pick("widget");
|
|
1608
|
-
const group = pick("group");
|
|
1609
|
-
const order = pick("order");
|
|
1610
|
-
return {
|
|
1611
|
-
label: pick("label") ?? humanizeFieldKey(key),
|
|
1612
|
-
...description !== void 0 ? { description } : {},
|
|
1613
|
-
...semanticType !== void 0 ? { semanticType } : {},
|
|
1614
|
-
...unit !== void 0 ? { unit } : {},
|
|
1615
|
-
...sensitivity !== void 0 ? { sensitivity } : {},
|
|
1616
|
-
...aggregate !== void 0 ? { aggregate } : {},
|
|
1617
|
-
...aliases !== void 0 ? { aliases } : {},
|
|
1618
|
-
...displayFor !== void 0 ? { displayFor } : {},
|
|
1619
|
-
...widget !== void 0 ? { widget } : {},
|
|
1620
|
-
...group !== void 0 ? { group } : {},
|
|
1621
|
-
...order !== void 0 ? { order } : {}
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
// src/with-shape/introspection/describe.ts
|
|
1626
|
-
var ZOD_META_KEYS = /* @__PURE__ */ new Set([
|
|
1627
|
-
"label",
|
|
1628
|
-
"description",
|
|
1629
|
-
"unit",
|
|
1630
|
-
"semanticType",
|
|
1631
|
-
"sensitivity",
|
|
1632
|
-
"aggregate",
|
|
1633
|
-
"aliases",
|
|
1634
|
-
"displayFor",
|
|
1635
|
-
"group",
|
|
1636
|
-
"order"
|
|
1637
|
-
]);
|
|
1638
|
-
async function deriveZodFields(schema) {
|
|
1639
|
-
const envelope = await derivePersistedSchema(schema);
|
|
1640
|
-
if (!envelope.jsonSchema) return {};
|
|
1641
|
-
const isZod4 = isZod4Schema(schema);
|
|
1642
|
-
const jsonSchema = envelope.jsonSchema;
|
|
1643
|
-
const fieldDescriptors = jsonSchemaToFields(jsonSchema, "live-validator");
|
|
1644
|
-
const propertiesRaw = jsonSchema["properties"];
|
|
1645
|
-
const result = {};
|
|
1646
|
-
for (const [key, descriptor] of Object.entries(fieldDescriptors)) {
|
|
1647
|
-
let meta;
|
|
1648
|
-
if (isZod4 && propertiesRaw) {
|
|
1649
|
-
const prop = propertiesRaw[key];
|
|
1650
|
-
if (prop) {
|
|
1651
|
-
const extracted = {};
|
|
1652
|
-
let hasAny = false;
|
|
1653
|
-
for (const mk of ZOD_META_KEYS) {
|
|
1654
|
-
if (mk in prop) {
|
|
1655
|
-
extracted[mk] = prop[mk];
|
|
1656
|
-
hasAny = true;
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
if (hasAny) meta = extracted;
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
result[key] = {
|
|
1663
|
-
type: descriptor.type,
|
|
1664
|
-
optional: descriptor.optional === true,
|
|
1665
|
-
...descriptor.constraints !== void 0 ? { constraints: descriptor.constraints } : {},
|
|
1666
|
-
...meta !== void 0 ? { meta } : {}
|
|
1667
|
-
};
|
|
1668
|
-
}
|
|
1669
|
-
return result;
|
|
1670
|
-
}
|
|
1671
|
-
async function resolveDescribeFieldIds(store, vaultName, collectionName, getDEK) {
|
|
1672
|
-
let dek;
|
|
1673
|
-
try {
|
|
1674
|
-
dek = await getDEK(collectionName);
|
|
1675
|
-
} catch {
|
|
1676
|
-
return {};
|
|
1677
|
-
}
|
|
1678
|
-
const persisted = await loadPersistedSchema(store, vaultName, collectionName, dek);
|
|
1679
|
-
return persisted?.fieldIds !== void 0 ? { fieldIds: persisted.fieldIds } : {};
|
|
1680
|
-
}
|
|
1681
|
-
function deriveWidget(opts) {
|
|
1682
|
-
if (opts.resolvedWidget !== void 0) return opts.resolvedWidget;
|
|
1683
|
-
switch (opts.semanticType) {
|
|
1684
|
-
case "date":
|
|
1685
|
-
case "datetime":
|
|
1686
|
-
return "date";
|
|
1687
|
-
case "currency":
|
|
1688
|
-
return "money";
|
|
1689
|
-
case "entity":
|
|
1690
|
-
return "ref-select";
|
|
1691
|
-
case "url":
|
|
1692
|
-
return "url";
|
|
1693
|
-
case "email":
|
|
1694
|
-
return "email";
|
|
1695
|
-
case "percent":
|
|
1696
|
-
return "number";
|
|
1697
|
-
}
|
|
1698
|
-
if (opts.dict !== void 0 || opts.lookup !== void 0) return "select";
|
|
1699
|
-
if (opts.blob !== void 0) return "file";
|
|
1700
|
-
if (opts.type === "boolean") return "checkbox";
|
|
1701
|
-
if (opts.type === "number") return "number";
|
|
1702
|
-
return "text";
|
|
1703
|
-
}
|
|
1704
|
-
function buildDescription(input) {
|
|
1705
|
-
const { collection, fieldMeta, moneyFields, dictKeyFields, lookupFields, computed, refs, zodFields, dictLabels, meta, i18nFields, classified, taint, fieldIds } = input;
|
|
1706
|
-
const lookupFragments = input.viaFragments?.["lookup"]?.lookupFields;
|
|
1707
|
-
const blobFragments = input.viaFragments?.["blob"]?.blobFields;
|
|
1708
|
-
if (zodFields !== void 0 && Object.keys(zodFields).length > 0 && fieldMeta !== void 0) {
|
|
1709
|
-
const knownFields = /* @__PURE__ */ new Set([
|
|
1710
|
-
...Object.keys(moneyFields ?? {}),
|
|
1711
|
-
...Object.keys(dictKeyFields ?? {}),
|
|
1712
|
-
...Object.keys(refs),
|
|
1713
|
-
...Object.keys(computed ?? {}),
|
|
1714
|
-
...Object.keys(zodFields),
|
|
1715
|
-
...Object.keys(i18nFields ?? {}),
|
|
1716
|
-
...Object.keys(lookupFields ?? {}),
|
|
1717
|
-
...Object.keys(blobFragments ?? {})
|
|
1718
|
-
]);
|
|
1719
|
-
validateFieldMetaKeys(collection, fieldMeta, knownFields);
|
|
1720
|
-
}
|
|
1721
|
-
const allKeys = /* @__PURE__ */ new Set([
|
|
1722
|
-
...Object.keys(moneyFields ?? {}),
|
|
1723
|
-
...Object.keys(dictKeyFields ?? {}),
|
|
1724
|
-
...Object.keys(lookupFields ?? {}),
|
|
1725
|
-
...Object.keys(refs),
|
|
1726
|
-
...Object.keys(computed ?? {}),
|
|
1727
|
-
...Object.keys(fieldMeta ?? {}),
|
|
1728
|
-
...Object.keys(zodFields ?? {}),
|
|
1729
|
-
...Object.keys(i18nFields ?? {}),
|
|
1730
|
-
...Object.keys(classified ?? {}),
|
|
1731
|
-
...Object.keys(blobFragments ?? {})
|
|
1732
|
-
]);
|
|
1733
|
-
const fields = [];
|
|
1734
|
-
for (const key of [...allKeys].sort()) {
|
|
1735
|
-
const zod = zodFields?.[key];
|
|
1736
|
-
const money = moneyFields?.[key];
|
|
1737
|
-
const dict = dictKeyFields?.[key];
|
|
1738
|
-
const lookupDesc = lookupFields?.[key];
|
|
1739
|
-
const refDesc = refs[key];
|
|
1740
|
-
const isComputed = computed !== void 0 && key in computed;
|
|
1741
|
-
const i18nDesc = i18nFields?.[key];
|
|
1742
|
-
const cls = classified?.[key];
|
|
1743
|
-
const blobFragmentEntry = blobFragments?.[key];
|
|
1744
|
-
const taintPosture = taint?.postures.get(key);
|
|
1745
|
-
let type = zod?.type ?? "unknown";
|
|
1746
|
-
const inferred = {};
|
|
1747
|
-
let moneyBlock;
|
|
1748
|
-
let dictBlock;
|
|
1749
|
-
let refBlock;
|
|
1750
|
-
let lookupBlock;
|
|
1751
|
-
let blobBlock;
|
|
1752
|
-
if (money) {
|
|
1753
|
-
type = "number";
|
|
1754
|
-
inferred.semanticType = "currency";
|
|
1755
|
-
inferred.aggregate = "sum";
|
|
1756
|
-
const currency = money.soleCurrency();
|
|
1757
|
-
const scale = currency !== void 0 ? money.scaleFor(currency) : void 0;
|
|
1758
|
-
moneyBlock = {
|
|
1759
|
-
mode: money.mode,
|
|
1760
|
-
...currency !== void 0 ? { currency } : {},
|
|
1761
|
-
...scale !== void 0 ? { scale } : {},
|
|
1762
|
-
...money.rounding !== void 0 ? { rounding: money.rounding } : {}
|
|
1763
|
-
};
|
|
1764
|
-
} else if (refDesc) {
|
|
1765
|
-
type = refDesc.isArray ? "array" : "string";
|
|
1766
|
-
inferred.semanticType = "entity";
|
|
1767
|
-
refBlock = {
|
|
1768
|
-
target: refDesc.target,
|
|
1769
|
-
mode: refDesc.mode,
|
|
1770
|
-
...refDesc.isArray ? { isArray: true } : {}
|
|
1771
|
-
};
|
|
1772
|
-
} else if (dict) {
|
|
1773
|
-
type = "enum";
|
|
1774
|
-
if (isStaticDictDescriptor(dict)) {
|
|
1775
|
-
const displayLocale = dict.displayLocale;
|
|
1776
|
-
const values = dict.keys.map((k) => {
|
|
1777
|
-
const localeMap = dict.table[k];
|
|
1778
|
-
const label = displayLocale !== void 0 ? localeMap?.[displayLocale] ?? void 0 : void 0;
|
|
1779
|
-
return label !== void 0 ? { value: k, label } : { value: k };
|
|
1780
|
-
});
|
|
1781
|
-
dictBlock = { name: dict.name, static: true, values };
|
|
1782
|
-
} else {
|
|
1783
|
-
const labelMap = dictLabels?.[dict.name];
|
|
1784
|
-
const labelMapHasEntries = labelMap !== void 0 && Object.keys(labelMap).length > 0;
|
|
1785
|
-
if (labelMapHasEntries) {
|
|
1786
|
-
const values = Object.entries(labelMap).map(([value, label]) => ({ value, label }));
|
|
1787
|
-
dictBlock = { name: dict.name, static: false, values };
|
|
1788
|
-
} else if (dict.keys !== void 0) {
|
|
1789
|
-
const values = dict.keys.map((k) => {
|
|
1790
|
-
const label = dict.labels?.[k];
|
|
1791
|
-
return label !== void 0 ? { value: k, label } : { value: k };
|
|
1792
|
-
});
|
|
1793
|
-
dictBlock = { name: dict.name, static: false, values };
|
|
1794
|
-
} else {
|
|
1795
|
-
dictBlock = { name: dict.name, static: false };
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
} else if (lookupDesc) {
|
|
1799
|
-
type = "enum";
|
|
1800
|
-
const lookupLabelMap = dictLabels?.[lookupDesc.dimension];
|
|
1801
|
-
const lookupLabelMapHasEntries = lookupLabelMap !== void 0 && Object.keys(lookupLabelMap).length > 0;
|
|
1802
|
-
if (lookupDesc.table !== void 0) {
|
|
1803
|
-
const displayLocale = lookupDesc.displayLocale;
|
|
1804
|
-
const table = lookupDesc.table;
|
|
1805
|
-
const values = (lookupDesc.keys ?? Object.keys(table)).map((k) => {
|
|
1806
|
-
const localeMap = table[k];
|
|
1807
|
-
const label = displayLocale !== void 0 ? localeMap?.[displayLocale] ?? void 0 : void 0;
|
|
1808
|
-
return label !== void 0 ? { value: k, label } : { value: k };
|
|
1809
|
-
});
|
|
1810
|
-
dictBlock = { name: lookupDesc.dimension, static: true, values };
|
|
1811
|
-
} else if (lookupLabelMapHasEntries) {
|
|
1812
|
-
const values = Object.entries(lookupLabelMap).map(([value, label]) => ({ value, label }));
|
|
1813
|
-
dictBlock = { name: lookupDesc.dimension, static: false, values };
|
|
1814
|
-
} else if (lookupDesc.keys !== void 0) {
|
|
1815
|
-
const values = lookupDesc.keys.map((k) => {
|
|
1816
|
-
const label = lookupDesc.labels?.[k];
|
|
1817
|
-
return label !== void 0 ? { value: k, label } : { value: k };
|
|
1818
|
-
});
|
|
1819
|
-
dictBlock = { name: lookupDesc.dimension, static: false, values };
|
|
1820
|
-
} else {
|
|
1821
|
-
dictBlock = { name: lookupDesc.dimension, static: false };
|
|
1822
|
-
}
|
|
1823
|
-
} else if (i18nDesc) {
|
|
1824
|
-
type = "string";
|
|
1825
|
-
} else if (isComputed) {
|
|
1826
|
-
} else if (blobFragmentEntry !== void 0) {
|
|
1827
|
-
type = "blob";
|
|
1828
|
-
blobBlock = { ...blobFragmentEntry, queryable: "none" };
|
|
1829
|
-
}
|
|
1830
|
-
const lookupFragmentEntry = lookupFragments?.[key];
|
|
1831
|
-
if (lookupFragmentEntry !== void 0) {
|
|
1832
|
-
lookupBlock = {
|
|
1833
|
-
...lookupFragmentEntry.dimension !== void 0 ? { dimension: lookupFragmentEntry.dimension } : {},
|
|
1834
|
-
backing: lookupFragmentEntry.backing,
|
|
1835
|
-
vocabulary: lookupFragmentEntry.vocabulary,
|
|
1836
|
-
key: lookupFragmentEntry.key,
|
|
1837
|
-
onDelete: lookupFragmentEntry.onDelete,
|
|
1838
|
-
...lookupFragmentEntry.altKeys !== void 0 ? { altKeys: lookupFragmentEntry.altKeys } : {},
|
|
1839
|
-
...lookupFragmentEntry.present !== void 0 ? { present: lookupFragmentEntry.present } : {},
|
|
1840
|
-
...lookupFragmentEntry.sortBy !== void 0 ? { sortBy: lookupFragmentEntry.sortBy } : {},
|
|
1841
|
-
...lookupFragmentEntry.keys !== void 0 ? { keys: lookupFragmentEntry.keys } : {}
|
|
1842
|
-
};
|
|
1843
|
-
}
|
|
1844
|
-
if (cls !== void 0) inferred.sensitivity = cls.sensitivity;
|
|
1845
|
-
const channelEntry = fieldMeta?.[key];
|
|
1846
|
-
const zodMeta = zod?.meta;
|
|
1847
|
-
const resolved = resolveFieldMeta(key, {
|
|
1848
|
-
...channelEntry !== void 0 ? { channel: channelEntry } : {},
|
|
1849
|
-
...zodMeta !== void 0 ? { zodMeta } : {},
|
|
1850
|
-
inferred
|
|
1851
|
-
});
|
|
1852
|
-
let i18nBlock;
|
|
1853
|
-
if (i18nDesc !== void 0) {
|
|
1854
|
-
const locales = i18nDesc.options.languages;
|
|
1855
|
-
const densify = i18nDesc.options.densifyOnWrite;
|
|
1856
|
-
i18nBlock = {
|
|
1857
|
-
...locales !== void 0 ? { locales } : {},
|
|
1858
|
-
...densify !== void 0 ? { densify } : {}
|
|
1859
|
-
};
|
|
1860
|
-
}
|
|
1861
|
-
const widget = deriveWidget({
|
|
1862
|
-
type,
|
|
1863
|
-
...resolved.semanticType !== void 0 ? { semanticType: resolved.semanticType } : {},
|
|
1864
|
-
...dictBlock !== void 0 ? { dict: dictBlock } : {},
|
|
1865
|
-
...lookupBlock !== void 0 ? { lookup: lookupBlock } : {},
|
|
1866
|
-
...blobBlock !== void 0 ? { blob: blobBlock } : {},
|
|
1867
|
-
...resolved.widget !== void 0 ? { resolvedWidget: resolved.widget } : {}
|
|
1868
|
-
});
|
|
1869
|
-
const editable = !isComputed && key !== "id" && blobBlock === void 0;
|
|
1870
|
-
const field = {
|
|
1871
|
-
key,
|
|
1872
|
-
...fieldIds?.[key] !== void 0 ? { id: fieldIds[key] } : {},
|
|
1873
|
-
type,
|
|
1874
|
-
optional: zod?.optional ?? false,
|
|
1875
|
-
...zod?.constraints !== void 0 ? { constraints: zod.constraints } : {},
|
|
1876
|
-
label: resolved.label,
|
|
1877
|
-
...resolved.description !== void 0 ? { description: resolved.description } : {},
|
|
1878
|
-
...resolved.group !== void 0 ? { group: resolved.group } : {},
|
|
1879
|
-
...resolved.order !== void 0 ? { order: resolved.order } : {},
|
|
1880
|
-
...resolved.semanticType !== void 0 ? { semanticType: resolved.semanticType } : {},
|
|
1881
|
-
...resolved.unit !== void 0 ? { unit: resolved.unit } : {},
|
|
1882
|
-
...resolved.sensitivity !== void 0 ? { sensitivity: resolved.sensitivity } : {},
|
|
1883
|
-
...resolved.aggregate !== void 0 ? { aggregate: resolved.aggregate } : {},
|
|
1884
|
-
...resolved.aliases !== void 0 ? { aliases: resolved.aliases } : {},
|
|
1885
|
-
...resolved.displayFor !== void 0 ? { displayFor: resolved.displayFor } : {},
|
|
1886
|
-
...refBlock !== void 0 ? { ref: refBlock } : {},
|
|
1887
|
-
...moneyBlock !== void 0 ? { money: moneyBlock } : {},
|
|
1888
|
-
...dictBlock !== void 0 ? { dict: dictBlock } : {},
|
|
1889
|
-
...lookupBlock !== void 0 ? { lookup: lookupBlock } : {},
|
|
1890
|
-
...blobBlock !== void 0 ? { blob: blobBlock } : {},
|
|
1891
|
-
...isComputed ? { computed: true } : {},
|
|
1892
|
-
...i18nBlock !== void 0 ? { i18n: i18nBlock } : {},
|
|
1893
|
-
widget,
|
|
1894
|
-
editable,
|
|
1895
|
-
...cls !== void 0 ? {
|
|
1896
|
-
classified: {
|
|
1897
|
-
preset: cls.preset,
|
|
1898
|
-
storage: cls.storage,
|
|
1899
|
-
list: cls.list.kind === "omit" ? "omit" : cls.list.kind === "mask" ? { mask: cls.list.pattern } : { rider: cls.list.rider },
|
|
1900
|
-
...cls.equatable === true ? { equatable: true } : {}
|
|
1901
|
-
}
|
|
1902
|
-
} : {},
|
|
1903
|
-
...taintPosture !== void 0 ? { taint: { posture: taintPosture, forcedBy: taint?.provenance?.get(key) ?? [] } } : {}
|
|
1904
|
-
};
|
|
1905
|
-
fields.push(field);
|
|
1906
|
-
}
|
|
1907
|
-
const collectionMeta = {
|
|
1908
|
-
...meta,
|
|
1909
|
-
label: meta?.label ?? humanizeFieldKey(collection)
|
|
1910
|
-
};
|
|
1911
|
-
return {
|
|
1912
|
-
collection,
|
|
1913
|
-
fields,
|
|
1914
|
-
meta: collectionMeta
|
|
1915
|
-
};
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
1579
|
// src/kernel/put-many-atomic.ts
|
|
1919
1580
|
var toRevertLeg = ({ op, priorEnvelope }) => ({
|
|
1920
1581
|
vaultName: op.vaultName,
|
|
@@ -2482,7 +2143,7 @@ function resolveCollectionConfig(opts) {
|
|
|
2482
2143
|
}
|
|
2483
2144
|
|
|
2484
2145
|
// src/with-formula/computed/lazy.ts
|
|
2485
|
-
var loadComputed = lazy(() => import("./computed-
|
|
2146
|
+
var loadComputed = lazy(() => import("./computed-LSEZYRJS.js"));
|
|
2486
2147
|
async function loadEvalComputedFields() {
|
|
2487
2148
|
return (await loadComputed()).evalComputedFields;
|
|
2488
2149
|
}
|
|
@@ -3093,6 +2754,8 @@ var Collection = class {
|
|
|
3093
2754
|
computed: this.computed,
|
|
3094
2755
|
refs: this._refs,
|
|
3095
2756
|
zodFields: void 0,
|
|
2757
|
+
schema: this.schema,
|
|
2758
|
+
// #1253 — sync fieldMeta key-validation
|
|
3096
2759
|
...this.meta !== void 0 ? { meta: this.meta } : {},
|
|
3097
2760
|
...this.i18nFields !== void 0 ? { i18nFields: this.i18nFields } : {},
|
|
3098
2761
|
...this.classified !== void 0 ? { classified: this.classified.byField } : {},
|
|
@@ -3265,7 +2928,7 @@ var Collection = class {
|
|
|
3265
2928
|
}
|
|
3266
2929
|
await this.onAccess?.("find", "*");
|
|
3267
2930
|
if (hits.length === 0) return [];
|
|
3268
|
-
const { verifyDigestField } = await import("./verify-
|
|
2931
|
+
const { verifyDigestField } = await import("./verify-JBXCAGDL.js");
|
|
3269
2932
|
const policy = {
|
|
3270
2933
|
normalize: spec.verifyNormalize ?? "password",
|
|
3271
2934
|
notLastN: spec.notLastN ?? 0,
|
|
@@ -3477,7 +3140,7 @@ var Collection = class {
|
|
|
3477
3140
|
}
|
|
3478
3141
|
}
|
|
3479
3142
|
if (this.materializedViewSource !== void 0) {
|
|
3480
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
3143
|
+
const { resolveStaleMVOnRead } = await import("./stale-KSPG6LFX.js");
|
|
3481
3144
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
3482
3145
|
}
|
|
3483
3146
|
let record;
|
|
@@ -3829,7 +3492,8 @@ var Collection = class {
|
|
|
3829
3492
|
this.indexes?.upsert(id, indexed, prior ? prior.record : null);
|
|
3830
3493
|
this.uniqueConstraints?.upsert(id, indexed, prior?.record);
|
|
3831
3494
|
}
|
|
3832
|
-
|
|
3495
|
+
const priorForTrigger = prior ? prior.record : null;
|
|
3496
|
+
await this._onRecordMutated(id, "put", "local-write", { record: event, version, prior: priorForTrigger });
|
|
3833
3497
|
}
|
|
3834
3498
|
/**
|
|
3835
3499
|
* The pre-envelope stages both write paths share (#904): permission + tier
|
|
@@ -4008,7 +3672,7 @@ var Collection = class {
|
|
|
4008
3672
|
*/
|
|
4009
3673
|
async dispatchMaterializedViews(id, record, wave) {
|
|
4010
3674
|
if (this.materializedViewSource === void 0) return;
|
|
4011
|
-
const { dispatchMaterializedViews } = await import("./dispatch-
|
|
3675
|
+
const { dispatchMaterializedViews } = await import("./dispatch-44J4TL72.js");
|
|
4012
3676
|
return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
|
|
4013
3677
|
}
|
|
4014
3678
|
/**
|
|
@@ -4067,34 +3731,23 @@ var Collection = class {
|
|
|
4067
3731
|
const record = await this.codec.decryptRecord({ collection: this.name, id }, env, {});
|
|
4068
3732
|
return record === null ? null : { record, version: env._v };
|
|
4069
3733
|
}
|
|
4070
|
-
/**
|
|
4071
|
-
* @internal Ids of records whose top-level `field` equals `value`.
|
|
4072
|
-
* Uses the FK index when the field is indexed (O(matches)); otherwise a
|
|
4073
|
-
* linear scan (O(N) — fine for small child sets; index the FK to scale).
|
|
4074
|
-
*/
|
|
3734
|
+
/** @internal Ids of records whose top-level `field` equals `value` — delegates to the composite scan. */
|
|
4075
3735
|
async _findMatchingIds(field, value) {
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
}
|
|
4091
|
-
const ids = await this.adapter.list(this.vault, this.name);
|
|
4092
|
-
const out = [];
|
|
4093
|
-
for (const rid of ids) {
|
|
4094
|
-
const raw = await this._getStoredRecord(rid);
|
|
4095
|
-
if (raw !== null && matches(raw)) out.push(rid);
|
|
4096
|
-
}
|
|
4097
|
-
return out;
|
|
3736
|
+
if (typeof value !== "string" && typeof value !== "number") return [];
|
|
3737
|
+
return this._findMatchingCompositeIds([{ field, value: String(value) }]);
|
|
3738
|
+
}
|
|
3739
|
+
/** @internal — conjunction fan-out for composite triggerBy (#1249). First indexed pair narrows,
|
|
3740
|
+
* filtered by the OTHER pairs only; zero reads when the index alone decides membership. */
|
|
3741
|
+
async _findMatchingCompositeIds(pairs) {
|
|
3742
|
+
if (!this.lazy) await this.ensureHydrated();
|
|
3743
|
+
const i = pairs.findIndex((p) => this.getIndexes()?.lookupEqual(p.field, p.value));
|
|
3744
|
+
const hit = i < 0 ? null : this.getIndexes().lookupEqual(pairs[i].field, pairs[i].value);
|
|
3745
|
+
const residual = i < 0 ? pairs : pairs.filter((_, j) => j !== i);
|
|
3746
|
+
return findMatchingIdsByPairs(residual, {
|
|
3747
|
+
indexCandidates: hit ? [...hit] : null,
|
|
3748
|
+
listIds: async () => this.lazy ? this.adapter.list(this.vault, this.name) : [...this.cache.keys()],
|
|
3749
|
+
getRecord: async (id) => this.lazy ? await this._getStoredRecord(id) : this.cache.get(id)?.record ?? null
|
|
3750
|
+
});
|
|
4098
3751
|
}
|
|
4099
3752
|
/** @internal — ctx for `putDerivedOutput`'s frozen-period skip+audit (#638 Task 5). */
|
|
4100
3753
|
/** What `with-formula/materialized-views/dispatch.ts` needs from this collection (#842). */
|
|
@@ -4177,18 +3830,22 @@ var Collection = class {
|
|
|
4177
3830
|
if (spec) await this.recomputeRollup(spec, intent.parentId, { collection: this.name, id: "<sync-delete>" }, wave);
|
|
4178
3831
|
}
|
|
4179
3832
|
}
|
|
3833
|
+
/** Extras added onto {@link #derivationDeleteCtx} — shared by `dispatchDerivations` and `dispatchTriggerDerivationsOnDelete` (#1249). */
|
|
3834
|
+
#derivationDispatchCtx() {
|
|
3835
|
+
return { ...this.#derivationDeleteCtx(this.derivationSource), via: this.via, recomputeRollup: this.recomputeRollup.bind(this), dispatchCtx: this.#dispatchCtx.bind(this), trackPut: this.#trackPut.bind(this) };
|
|
3836
|
+
}
|
|
4180
3837
|
/** @internal `wave` (#638 Task 4) — threaded to `recomputeRollup` for the sync/cutover/restore
|
|
4181
3838
|
* dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
|
|
4182
|
-
async dispatchDerivations(id, record, version, wave) {
|
|
3839
|
+
async dispatchDerivations(id, record, version, wave, prior) {
|
|
4183
3840
|
if (this.derivationSource === void 0) return;
|
|
4184
|
-
const { dispatchDerivations } = await import("./dispatch-
|
|
4185
|
-
return dispatchDerivations(
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
3841
|
+
const { dispatchDerivations } = await import("./dispatch-XEBHUGBV.js");
|
|
3842
|
+
return dispatchDerivations(this.#derivationDispatchCtx(), id, record, version, wave, prior);
|
|
3843
|
+
}
|
|
3844
|
+
/** @internal — trigger fan-out for a deleted parent (#1249); see dispatch.ts. */
|
|
3845
|
+
async dispatchTriggerDerivationsOnDelete(id, deleted) {
|
|
3846
|
+
if (this.derivationSource === void 0) return;
|
|
3847
|
+
const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-XEBHUGBV.js");
|
|
3848
|
+
return dispatchTriggerDerivationsOnDelete(this.#derivationDispatchCtx(), id, deleted);
|
|
4192
3849
|
}
|
|
4193
3850
|
/**
|
|
4194
3851
|
* Delete a record by ID. Runs inside the hub's write-queue tracker
|
|
@@ -4426,7 +4083,10 @@ var Collection = class {
|
|
|
4426
4083
|
if (!internal) {
|
|
4427
4084
|
await this.dispatchMaterializedViewsOnDelete(id);
|
|
4428
4085
|
await this.dispatchArrayDerivationsOnDelete(id);
|
|
4429
|
-
if (existing)
|
|
4086
|
+
if (existing) {
|
|
4087
|
+
await this.dispatchRollupsOnDelete(id, existing.record);
|
|
4088
|
+
await this.dispatchTriggerDerivationsOnDelete(id, existing.record);
|
|
4089
|
+
}
|
|
4430
4090
|
}
|
|
4431
4091
|
return true;
|
|
4432
4092
|
}
|
|
@@ -4496,7 +4156,7 @@ var Collection = class {
|
|
|
4496
4156
|
*/
|
|
4497
4157
|
async dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
|
|
4498
4158
|
if (this.derivationSource === void 0) return 0;
|
|
4499
|
-
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-
|
|
4159
|
+
const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-XEBHUGBV.js");
|
|
4500
4160
|
return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
|
|
4501
4161
|
}
|
|
4502
4162
|
/**
|
|
@@ -4510,7 +4170,7 @@ var Collection = class {
|
|
|
4510
4170
|
*/
|
|
4511
4171
|
async dispatchMaterializedViewsOnDelete(id) {
|
|
4512
4172
|
if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
|
|
4513
|
-
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-
|
|
4173
|
+
const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-44J4TL72.js");
|
|
4514
4174
|
return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
|
|
4515
4175
|
}
|
|
4516
4176
|
/**
|
|
@@ -4530,7 +4190,7 @@ var Collection = class {
|
|
|
4530
4190
|
);
|
|
4531
4191
|
}
|
|
4532
4192
|
if (this.materializedViewSource !== void 0) {
|
|
4533
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
4193
|
+
const { resolveStaleMVOnRead } = await import("./stale-KSPG6LFX.js");
|
|
4534
4194
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
|
|
4535
4195
|
}
|
|
4536
4196
|
await this.ensureHydrated();
|
|
@@ -5194,7 +4854,7 @@ var Collection = class {
|
|
|
5194
4854
|
this.emitter.emit("change", { vault: this.vault, collection: this.name, id, action: "put" });
|
|
5195
4855
|
this.searchIndexStore?.markDirty();
|
|
5196
4856
|
await this.onAccess?.("put", id);
|
|
5197
|
-
await this.dispatchDerivations(id, record, version);
|
|
4857
|
+
await this.dispatchDerivations(id, record, version, void 0, ctx.prior);
|
|
5198
4858
|
await this.dispatchMaterializedViews(id, record);
|
|
5199
4859
|
return;
|
|
5200
4860
|
}
|
|
@@ -5640,14 +5300,14 @@ var Collection = class {
|
|
|
5640
5300
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
5641
5301
|
async _ensureClassifiedMarker() {
|
|
5642
5302
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
5643
|
-
const { persistClassifiedMarkerForFields } = await import("./classified-marker-
|
|
5303
|
+
const { persistClassifiedMarkerForFields } = await import("./classified-marker-67HBIJMZ.js");
|
|
5644
5304
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
5645
5305
|
this._markerPersisted = true;
|
|
5646
5306
|
}
|
|
5647
5307
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
5648
5308
|
async _classifiedMarkerDigestOnly() {
|
|
5649
5309
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
5650
|
-
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-
|
|
5310
|
+
const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-67HBIJMZ.js");
|
|
5651
5311
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
5652
5312
|
return this._markerDigestOnlyCache;
|
|
5653
5313
|
}
|
|
@@ -7273,7 +6933,7 @@ var VaultLinks = class {
|
|
|
7273
6933
|
// src/with-shape/links/lazy-handle.ts
|
|
7274
6934
|
function makeLazyLinkSetHandle(d) {
|
|
7275
6935
|
let engine = null;
|
|
7276
|
-
const load = () => engine ??= import("./link-set-
|
|
6936
|
+
const load = () => engine ??= import("./link-set-6RAHEKZN.js").then(
|
|
7277
6937
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
7278
6938
|
);
|
|
7279
6939
|
return {
|
|
@@ -7924,7 +7584,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
7924
7584
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
7925
7585
|
const registry = reg;
|
|
7926
7586
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
7927
|
-
void import("./post-register-
|
|
7587
|
+
void import("./post-register-BPJ36A6D.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
7928
7588
|
});
|
|
7929
7589
|
return reg;
|
|
7930
7590
|
}
|
|
@@ -8899,7 +8559,7 @@ var Vault = class {
|
|
|
8899
8559
|
const strategies = options.schemaUpdate ?? [];
|
|
8900
8560
|
const work = (async () => {
|
|
8901
8561
|
const dek = await this.getDEK(collectionName);
|
|
8902
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
8562
|
+
const { persistSchemaIfNeeded } = await import("./register-AEOOGKNO.js");
|
|
8903
8563
|
const result = await persistSchemaIfNeeded({
|
|
8904
8564
|
store: this.adapter,
|
|
8905
8565
|
vault: this.name,
|
|
@@ -8961,7 +8621,7 @@ var Vault = class {
|
|
|
8961
8621
|
// Vaults without derivations skip this so `Collection.put`'s
|
|
8962
8622
|
// `if (this.derivationSource)` branch no-ops without touching the
|
|
8963
8623
|
// derivation service code.
|
|
8964
|
-
...this.derivationRegistry !== null ? {
|
|
8624
|
+
...this.derivationRegistry !== null ? (this.derivationRegistry.validateFieldsFor(collectionName, options?.schema, Object.keys({ ...options?.fieldMeta, ...options?.moneyFields, ...options?.dictKeyFields, ...options?.refs, ...options?.computed, ...options?.i18nFields, ...options?.lookupFields, ...options?.blobFields, ...options?.classifiedFields })), {
|
|
8965
8625
|
derivationSource: {
|
|
8966
8626
|
registry: () => this.derivationRegistry,
|
|
8967
8627
|
getCollection: (name) => this.collection(name),
|
|
@@ -8971,7 +8631,7 @@ var Vault = class {
|
|
|
8971
8631
|
setActiveTxContext: (ctx) => this.noydb._setActiveTxContext(ctx),
|
|
8972
8632
|
clearActiveTxContext: (ctx) => this.noydb._clearActiveTxContext(ctx)
|
|
8973
8633
|
}
|
|
8974
|
-
} : {},
|
|
8634
|
+
}) : {},
|
|
8975
8635
|
...this.materializedViewRegistry !== null ? {
|
|
8976
8636
|
materializedViewSource: {
|
|
8977
8637
|
registry: () => this.materializedViewRegistry,
|
|
@@ -9049,7 +8709,7 @@ var Vault = class {
|
|
|
9049
8709
|
const work = (async () => {
|
|
9050
8710
|
try {
|
|
9051
8711
|
const dek = await this.getDEK(collectionName);
|
|
9052
|
-
await (await import("./register-
|
|
8712
|
+
await (await import("./register-AEOOGKNO.js")).persistSchemaIfNeeded({
|
|
9053
8713
|
store: this.adapter,
|
|
9054
8714
|
vault: this.name,
|
|
9055
8715
|
collectionName,
|
|
@@ -9095,7 +8755,7 @@ var Vault = class {
|
|
|
9095
8755
|
* writes (unfenced walk — see `with-shape/satellites/migrate-cek.ts`); resumable.
|
|
9096
8756
|
*/
|
|
9097
8757
|
async migrateSatellitePerRecordKeys(satelliteName) {
|
|
9098
|
-
const { migrateSatelliteCek } = await import("./migrate-cek-
|
|
8758
|
+
const { migrateSatelliteCek } = await import("./migrate-cek-25KNTS5U.js");
|
|
9099
8759
|
return migrateSatelliteCek(satelliteName, this.collection(satelliteName, { perRecordKeys: true }));
|
|
9100
8760
|
}
|
|
9101
8761
|
/**
|
|
@@ -9726,7 +9386,7 @@ var Vault = class {
|
|
|
9726
9386
|
*/
|
|
9727
9387
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
9728
9388
|
async _loadPodSigner() {
|
|
9729
|
-
const { loadSigner } = await import("./signer-
|
|
9389
|
+
const { loadSigner } = await import("./signer-7NK7TMWU.js");
|
|
9730
9390
|
return loadSigner(this.adapter, this.name, this.getDEK);
|
|
9731
9391
|
}
|
|
9732
9392
|
async writeExportAudit(entry) {
|
|
@@ -10216,7 +9876,7 @@ var Vault = class {
|
|
|
10216
9876
|
async _initGuards(handles) {
|
|
10217
9877
|
if (handles.length === 0) return;
|
|
10218
9878
|
const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
10219
|
-
import("./registry-
|
|
9879
|
+
import("./registry-SHMGHEK4.js"),
|
|
10220
9880
|
import("./read-only-facade-CHCKSEPD.js")
|
|
10221
9881
|
]);
|
|
10222
9882
|
const registry = new GuardRegistry();
|
|
@@ -10244,7 +9904,7 @@ var Vault = class {
|
|
|
10244
9904
|
async _initDerivations(handles) {
|
|
10245
9905
|
if (handles.length === 0) return;
|
|
10246
9906
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
10247
|
-
import("./registry-
|
|
9907
|
+
import("./registry-BZQIVNNO.js"),
|
|
10248
9908
|
import("./read-only-facade-CHCKSEPD.js")
|
|
10249
9909
|
]);
|
|
10250
9910
|
const registry = new DerivationRegistry();
|
|
@@ -10276,7 +9936,7 @@ var Vault = class {
|
|
|
10276
9936
|
*/
|
|
10277
9937
|
async _initMaterializedViews(handles) {
|
|
10278
9938
|
if (handles.length === 0) return;
|
|
10279
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
9939
|
+
const { MaterializedViewRegistry } = await import("./registry-I6FP4677.js");
|
|
10280
9940
|
const registry = new MaterializedViewRegistry();
|
|
10281
9941
|
this.materializedViewRegistry = registry;
|
|
10282
9942
|
const db = this;
|
|
@@ -10301,7 +9961,7 @@ var Vault = class {
|
|
|
10301
9961
|
*/
|
|
10302
9962
|
async _initOverlayedViews(handles) {
|
|
10303
9963
|
if (handles.length === 0) return;
|
|
10304
|
-
const { OverlayedViewRegistry } = await import("./registry-
|
|
9964
|
+
const { OverlayedViewRegistry } = await import("./registry-SKSOUXNF.js");
|
|
10305
9965
|
const registry = new OverlayedViewRegistry();
|
|
10306
9966
|
const mvRegistry = this.materializedViewRegistry;
|
|
10307
9967
|
const overlayNames = /* @__PURE__ */ new Set();
|
|
@@ -10364,14 +10024,14 @@ var Vault = class {
|
|
|
10364
10024
|
if (!reg) {
|
|
10365
10025
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
10366
10026
|
}
|
|
10367
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
10027
|
+
const { MaterializedViewExecutor } = await import("./executor-KSPGNVDO.js");
|
|
10368
10028
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
10369
10029
|
getCollection: (n) => this.collection(n),
|
|
10370
10030
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
10371
10031
|
getQueryContext: () => this,
|
|
10372
10032
|
dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
|
|
10373
10033
|
});
|
|
10374
|
-
const { clearMVStaleFully } = await import("./stale-
|
|
10034
|
+
const { clearMVStaleFully } = await import("./stale-KSPG6LFX.js");
|
|
10375
10035
|
await clearMVStaleFully(this.adapter, this.name, registry, name);
|
|
10376
10036
|
return result;
|
|
10377
10037
|
}
|
|
@@ -10384,7 +10044,7 @@ var Vault = class {
|
|
|
10384
10044
|
if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
10385
10045
|
const strategies = registry.strategiesForSource(sourceCollection);
|
|
10386
10046
|
if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
|
|
10387
|
-
const { DerivationExecutor } = await import("./executor-
|
|
10047
|
+
const { DerivationExecutor } = await import("./executor-TOLPBHOC.js");
|
|
10388
10048
|
const sourceColl = this.collection(sourceCollection);
|
|
10389
10049
|
const records = await sourceColl.list();
|
|
10390
10050
|
const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-CHCKSEPD.js")).ReadOnlyVaultFacade(this, "derivation") };
|
|
@@ -10411,7 +10071,7 @@ var Vault = class {
|
|
|
10411
10071
|
if (!outSpec) continue;
|
|
10412
10072
|
const outputColl = this.collection(outSpec.collection);
|
|
10413
10073
|
if (out.kind === "array") {
|
|
10414
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
10074
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-TSFPXY5C.js");
|
|
10415
10075
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
10416
10076
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
10417
10077
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -10638,7 +10298,7 @@ var Vault = class {
|
|
|
10638
10298
|
* collection.
|
|
10639
10299
|
*/
|
|
10640
10300
|
async delegate(opts) {
|
|
10641
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
10301
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-OLJUWTVA.js");
|
|
10642
10302
|
if (!this.keyring.kek) {
|
|
10643
10303
|
throw new ValidationError(
|
|
10644
10304
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
|
|
@@ -10660,7 +10320,7 @@ var Vault = class {
|
|
|
10660
10320
|
* if the id does not exist.
|
|
10661
10321
|
*/
|
|
10662
10322
|
async revokeDelegation(id) {
|
|
10663
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
10323
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-OLJUWTVA.js");
|
|
10664
10324
|
await revokeDelegation(this.adapter, this.name, id);
|
|
10665
10325
|
void DELEGATIONS_COLLECTION;
|
|
10666
10326
|
}
|
|
@@ -10913,7 +10573,7 @@ var Vault = class {
|
|
|
10913
10573
|
* @see design-history/2026-05-22-schema-dump-design.md
|
|
10914
10574
|
*/
|
|
10915
10575
|
async dumpSchema(opts = {}) {
|
|
10916
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
10576
|
+
const { dumpVaultSchema } = await import("./walk-P3E6QSNC.js");
|
|
10917
10577
|
return dumpVaultSchema(this, opts);
|
|
10918
10578
|
}
|
|
10919
10579
|
/**
|
|
@@ -11009,7 +10669,7 @@ var Vault = class {
|
|
|
11009
10669
|
* separate vault instances now.
|
|
11010
10670
|
*/
|
|
11011
10671
|
async getPodHandle() {
|
|
11012
|
-
const { buildPodHandle } = await import("./pod-handle-
|
|
10672
|
+
const { buildPodHandle } = await import("./pod-handle-6II7KFBR.js");
|
|
11013
10673
|
return buildPodHandle(this.adapter, this.name);
|
|
11014
10674
|
}
|
|
11015
10675
|
/**
|
|
@@ -11041,7 +10701,7 @@ var Vault = class {
|
|
|
11041
10701
|
* both modes round-trip cleanly.
|
|
11042
10702
|
*/
|
|
11043
10703
|
async dump() {
|
|
11044
|
-
const { dumpVault } = await import("./backup-
|
|
10704
|
+
const { dumpVault } = await import("./backup-R6A4VZRX.js");
|
|
11045
10705
|
return dumpVault(this.backupContext());
|
|
11046
10706
|
}
|
|
11047
10707
|
/**
|
|
@@ -11093,7 +10753,7 @@ var Vault = class {
|
|
|
11093
10753
|
* — there's no chain to verify against.
|
|
11094
10754
|
*/
|
|
11095
10755
|
async load(backupJson) {
|
|
11096
|
-
const { loadVault } = await import("./backup-
|
|
10756
|
+
const { loadVault } = await import("./backup-R6A4VZRX.js");
|
|
11097
10757
|
return loadVault(this.backupContext(), backupJson);
|
|
11098
10758
|
}
|
|
11099
10759
|
/**
|
|
@@ -11125,7 +10785,7 @@ var Vault = class {
|
|
|
11125
10785
|
* way to detect tampering of an in-place vault.
|
|
11126
10786
|
*/
|
|
11127
10787
|
async verifyBackupIntegrity() {
|
|
11128
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
10788
|
+
const { verifyBackupIntegrity } = await import("./backup-R6A4VZRX.js");
|
|
11129
10789
|
return verifyBackupIntegrity(this.backupContext());
|
|
11130
10790
|
}
|
|
11131
10791
|
/**
|
|
@@ -11355,7 +11015,7 @@ var Vault = class {
|
|
|
11355
11015
|
* is the live validator object, not a serialization of it).
|
|
11356
11016
|
*/
|
|
11357
11017
|
async exportJSON(opts = {}) {
|
|
11358
|
-
const { exportVaultJSON } = await import("./backup-
|
|
11018
|
+
const { exportVaultJSON } = await import("./backup-R6A4VZRX.js");
|
|
11359
11019
|
return exportVaultJSON(this.backupContext(), opts);
|
|
11360
11020
|
}
|
|
11361
11021
|
};
|
|
@@ -13283,7 +12943,7 @@ var Noydb = class {
|
|
|
13283
12943
|
if (!facade) return;
|
|
13284
12944
|
const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
|
|
13285
12945
|
await registry.runChecks(e.collection, incoming, ctx);
|
|
13286
|
-
const { GuardExecutor } = await import("./executor-
|
|
12946
|
+
const { GuardExecutor } = await import("./executor-MZJXBWNM.js");
|
|
13287
12947
|
for (const g of guards) {
|
|
13288
12948
|
await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
|
|
13289
12949
|
}
|
|
@@ -14655,7 +14315,7 @@ async function createNoydb(options) {
|
|
|
14655
14315
|
if (!options.store) options = { ...options, store: memoryStore() };
|
|
14656
14316
|
validateSecretModeOptions(options);
|
|
14657
14317
|
if (!options.mesh) options = { ...options, mesh: await createDefaultMesh(options.store) };
|
|
14658
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
14318
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-UE2XQKDN.js")).createUserApi };
|
|
14659
14319
|
if (!options.policyFactory) {
|
|
14660
14320
|
const policyModule = await import("./policy/index.js");
|
|
14661
14321
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
@@ -14690,4 +14350,4 @@ export {
|
|
|
14690
14350
|
Noydb,
|
|
14691
14351
|
createNoydb
|
|
14692
14352
|
};
|
|
14693
|
-
//# sourceMappingURL=chunk-
|
|
14353
|
+
//# sourceMappingURL=chunk-XMF3GKUR.js.map
|