@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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldFrozenError,
|
|
3
3
|
InvariantError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7O3Y4PPD.js";
|
|
5
5
|
|
|
6
6
|
// src/with-audit/guards/executor.ts
|
|
7
7
|
var GuardExecutor = {
|
|
@@ -77,4 +77,4 @@ function deepEqual(a, b) {
|
|
|
77
77
|
export {
|
|
78
78
|
GuardExecutor
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-4OZNXTO4.js.map
|
|
@@ -201,7 +201,7 @@ var engineCtx = (ctx) => ({
|
|
|
201
201
|
function withClassified() {
|
|
202
202
|
return {
|
|
203
203
|
async reveal(ctx, id, field) {
|
|
204
|
-
const { revealSealedField } = await import("./reveal-
|
|
204
|
+
const { revealSealedField } = await import("./reveal-DDQBDWPM.js");
|
|
205
205
|
const value = await revealSealedField({
|
|
206
206
|
collection: ctx.collection,
|
|
207
207
|
encrypted: ctx.encrypted,
|
|
@@ -213,26 +213,26 @@ function withClassified() {
|
|
|
213
213
|
return value;
|
|
214
214
|
},
|
|
215
215
|
async verify(ctx, id, field, candidate) {
|
|
216
|
-
const { verifyDigestField } = await import("./verify-
|
|
216
|
+
const { verifyDigestField } = await import("./verify-JBXCAGDL.js");
|
|
217
217
|
const verdict = await verifyDigestField(engineCtx(ctx), id, field, candidate, policyOf(ctx.spec));
|
|
218
218
|
await ctx.onAccess?.("verify", id);
|
|
219
219
|
return verdict;
|
|
220
220
|
},
|
|
221
221
|
async verifyText(ctx, id, field, candidate) {
|
|
222
|
-
const { verifyTextField } = await import("./verify-
|
|
222
|
+
const { verifyTextField } = await import("./verify-JBXCAGDL.js");
|
|
223
223
|
const verdict = await verifyTextField(engineCtx(ctx), id, field, candidate, ctx.spec.verifyNormalize ?? "password");
|
|
224
224
|
await ctx.onAccess?.("verify", id);
|
|
225
225
|
return verdict;
|
|
226
226
|
},
|
|
227
227
|
async matchGroup(ctx, id, answers, opts) {
|
|
228
|
-
const { matchGroupFields } = await import("./verify-
|
|
228
|
+
const { matchGroupFields } = await import("./verify-JBXCAGDL.js");
|
|
229
229
|
const members = (ctx.groupMembers ?? []).map((m) => ({ field: m.field, policy: policyOf(m.spec) }));
|
|
230
230
|
const result = await matchGroupFields(engineCtx(ctx), id, answers, members, opts);
|
|
231
231
|
await ctx.onAccess?.("verify", id);
|
|
232
232
|
return result;
|
|
233
233
|
},
|
|
234
234
|
async computeTarget(ctx, field, candidate, costByte) {
|
|
235
|
-
const { computeBidxTarget } = await import("./find-
|
|
235
|
+
const { computeBidxTarget } = await import("./find-LC7P63MX.js");
|
|
236
236
|
const dek = await ctx.getDEK();
|
|
237
237
|
return computeBidxTarget(candidate, policyOf(ctx.spec).normalize, dek, ctx.collection, field, costByte);
|
|
238
238
|
}
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
classified,
|
|
245
245
|
withClassified
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-5FUULQ6F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SealedRecordNotEnabledError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7O3Y4PPD.js";
|
|
4
4
|
|
|
5
5
|
// src/with-audit/sealed-record/strategy.ts
|
|
6
6
|
var NO_SEALED_RECORD = {
|
|
@@ -18,4 +18,4 @@ var NO_SEALED_RECORD = {
|
|
|
18
18
|
export {
|
|
19
19
|
NO_SEALED_RECORD
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-6YXCPL4T.js.map
|
|
@@ -1,7 +1,381 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonSchemaToFields
|
|
3
|
+
} from "./chunk-VYYM3MEN.js";
|
|
4
|
+
import {
|
|
5
|
+
derivePersistedSchema,
|
|
6
|
+
isZod4Schema
|
|
7
|
+
} from "./chunk-URHRIAV6.js";
|
|
8
|
+
import {
|
|
9
|
+
loadPersistedSchema
|
|
10
|
+
} from "./chunk-WWNYSV7S.js";
|
|
11
|
+
import {
|
|
12
|
+
isStaticDictDescriptor
|
|
13
|
+
} from "./chunk-TRGTKX5E.js";
|
|
1
14
|
import {
|
|
2
15
|
DerivationCycleError,
|
|
3
16
|
MaterializedViewCycleError
|
|
4
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7O3Y4PPD.js";
|
|
18
|
+
|
|
19
|
+
// src/with-shape/introspection/field-meta.ts
|
|
20
|
+
var FieldMetaUnknownFieldError = class extends Error {
|
|
21
|
+
constructor(collection, key) {
|
|
22
|
+
super(`fieldMeta for collection "${collection}" references unknown field "${key}". Declare it in the schema/config or remove the fieldMeta entry.`);
|
|
23
|
+
this.collection = collection;
|
|
24
|
+
this.key = key;
|
|
25
|
+
this.name = "FieldMetaUnknownFieldError";
|
|
26
|
+
}
|
|
27
|
+
collection;
|
|
28
|
+
key;
|
|
29
|
+
};
|
|
30
|
+
function validateFieldMetaKeys(collection, fieldMeta, knownFields) {
|
|
31
|
+
for (const key of Object.keys(fieldMeta)) {
|
|
32
|
+
if (!knownFields.has(key)) throw new FieldMetaUnknownFieldError(collection, key);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function humanizeFieldKey(key) {
|
|
36
|
+
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(" ");
|
|
37
|
+
}
|
|
38
|
+
function resolveFieldMeta(key, inputs) {
|
|
39
|
+
const { channel, zodMeta, inferred } = inputs;
|
|
40
|
+
const pick = (k) => channel?.[k] ?? zodMeta?.[k] ?? inferred?.[k];
|
|
41
|
+
const description = pick("description");
|
|
42
|
+
const semanticType = pick("semanticType");
|
|
43
|
+
const unit = pick("unit");
|
|
44
|
+
const sensitivity = pick("sensitivity");
|
|
45
|
+
const aggregate = pick("aggregate");
|
|
46
|
+
const aliases = pick("aliases");
|
|
47
|
+
const displayFor = pick("displayFor");
|
|
48
|
+
const widget = pick("widget");
|
|
49
|
+
const group = pick("group");
|
|
50
|
+
const order = pick("order");
|
|
51
|
+
return {
|
|
52
|
+
label: pick("label") ?? humanizeFieldKey(key),
|
|
53
|
+
...description !== void 0 ? { description } : {},
|
|
54
|
+
...semanticType !== void 0 ? { semanticType } : {},
|
|
55
|
+
...unit !== void 0 ? { unit } : {},
|
|
56
|
+
...sensitivity !== void 0 ? { sensitivity } : {},
|
|
57
|
+
...aggregate !== void 0 ? { aggregate } : {},
|
|
58
|
+
...aliases !== void 0 ? { aliases } : {},
|
|
59
|
+
...displayFor !== void 0 ? { displayFor } : {},
|
|
60
|
+
...widget !== void 0 ? { widget } : {},
|
|
61
|
+
...group !== void 0 ? { group } : {},
|
|
62
|
+
...order !== void 0 ? { order } : {}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// src/with-shape/introspection/describe.ts
|
|
67
|
+
var ZOD_META_KEYS = /* @__PURE__ */ new Set([
|
|
68
|
+
"label",
|
|
69
|
+
"description",
|
|
70
|
+
"unit",
|
|
71
|
+
"semanticType",
|
|
72
|
+
"sensitivity",
|
|
73
|
+
"aggregate",
|
|
74
|
+
"aliases",
|
|
75
|
+
"displayFor",
|
|
76
|
+
"group",
|
|
77
|
+
"order"
|
|
78
|
+
]);
|
|
79
|
+
function schemaFieldKeys(schema) {
|
|
80
|
+
let s = schema;
|
|
81
|
+
for (let depth = 0; depth < 10; depth++) {
|
|
82
|
+
if (s === null || typeof s !== "object") return void 0;
|
|
83
|
+
const shape = s.shape;
|
|
84
|
+
if (shape !== null && typeof shape === "object") {
|
|
85
|
+
const keys = Object.keys(shape);
|
|
86
|
+
return keys.length > 0 ? keys : void 0;
|
|
87
|
+
}
|
|
88
|
+
const def = s._def;
|
|
89
|
+
if (def?.schema !== void 0 && def.effect?.type === "refinement") {
|
|
90
|
+
s = def.schema;
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
return void 0;
|
|
94
|
+
}
|
|
95
|
+
return void 0;
|
|
96
|
+
}
|
|
97
|
+
async function deriveZodFields(schema) {
|
|
98
|
+
const envelope = await derivePersistedSchema(schema);
|
|
99
|
+
if (!envelope.jsonSchema) return {};
|
|
100
|
+
const isZod4 = isZod4Schema(schema);
|
|
101
|
+
const jsonSchema = envelope.jsonSchema;
|
|
102
|
+
const fieldDescriptors = jsonSchemaToFields(jsonSchema, "live-validator");
|
|
103
|
+
const propertiesRaw = jsonSchema["properties"];
|
|
104
|
+
const result = {};
|
|
105
|
+
for (const [key, descriptor] of Object.entries(fieldDescriptors)) {
|
|
106
|
+
let meta;
|
|
107
|
+
if (isZod4 && propertiesRaw) {
|
|
108
|
+
const prop = propertiesRaw[key];
|
|
109
|
+
if (prop) {
|
|
110
|
+
const extracted = {};
|
|
111
|
+
let hasAny = false;
|
|
112
|
+
for (const mk of ZOD_META_KEYS) {
|
|
113
|
+
if (mk in prop) {
|
|
114
|
+
extracted[mk] = prop[mk];
|
|
115
|
+
hasAny = true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (hasAny) meta = extracted;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
result[key] = {
|
|
122
|
+
type: descriptor.type,
|
|
123
|
+
optional: descriptor.optional === true,
|
|
124
|
+
...descriptor.constraints !== void 0 ? { constraints: descriptor.constraints } : {},
|
|
125
|
+
...meta !== void 0 ? { meta } : {}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
async function resolveDescribeFieldIds(store, vaultName, collectionName, getDEK) {
|
|
131
|
+
let dek;
|
|
132
|
+
try {
|
|
133
|
+
dek = await getDEK(collectionName);
|
|
134
|
+
} catch {
|
|
135
|
+
return {};
|
|
136
|
+
}
|
|
137
|
+
const persisted = await loadPersistedSchema(store, vaultName, collectionName, dek);
|
|
138
|
+
return persisted?.fieldIds !== void 0 ? { fieldIds: persisted.fieldIds } : {};
|
|
139
|
+
}
|
|
140
|
+
function deriveWidget(opts) {
|
|
141
|
+
if (opts.resolvedWidget !== void 0) return opts.resolvedWidget;
|
|
142
|
+
switch (opts.semanticType) {
|
|
143
|
+
case "date":
|
|
144
|
+
case "datetime":
|
|
145
|
+
return "date";
|
|
146
|
+
case "currency":
|
|
147
|
+
return "money";
|
|
148
|
+
case "entity":
|
|
149
|
+
return "ref-select";
|
|
150
|
+
case "url":
|
|
151
|
+
return "url";
|
|
152
|
+
case "email":
|
|
153
|
+
return "email";
|
|
154
|
+
case "percent":
|
|
155
|
+
return "number";
|
|
156
|
+
}
|
|
157
|
+
if (opts.dict !== void 0 || opts.lookup !== void 0) return "select";
|
|
158
|
+
if (opts.blob !== void 0) return "file";
|
|
159
|
+
if (opts.type === "boolean") return "checkbox";
|
|
160
|
+
if (opts.type === "number") return "number";
|
|
161
|
+
return "text";
|
|
162
|
+
}
|
|
163
|
+
function buildDescription(input) {
|
|
164
|
+
const { collection, fieldMeta, moneyFields, dictKeyFields, lookupFields, computed, refs, zodFields, schema, dictLabels, meta, i18nFields, classified, taint, fieldIds } = input;
|
|
165
|
+
const lookupFragments = input.viaFragments?.["lookup"]?.lookupFields;
|
|
166
|
+
const blobFragments = input.viaFragments?.["blob"]?.blobFields;
|
|
167
|
+
const validatorKeys = zodFields !== void 0 && Object.keys(zodFields).length > 0 ? Object.keys(zodFields) : schemaFieldKeys(schema);
|
|
168
|
+
const canEnumerateFields = validatorKeys !== void 0;
|
|
169
|
+
if (canEnumerateFields && fieldMeta !== void 0) {
|
|
170
|
+
const knownFields = /* @__PURE__ */ new Set([
|
|
171
|
+
...Object.keys(moneyFields ?? {}),
|
|
172
|
+
...Object.keys(dictKeyFields ?? {}),
|
|
173
|
+
...Object.keys(refs),
|
|
174
|
+
...Object.keys(computed ?? {}),
|
|
175
|
+
...validatorKeys ?? [],
|
|
176
|
+
...Object.keys(i18nFields ?? {}),
|
|
177
|
+
...Object.keys(lookupFields ?? {}),
|
|
178
|
+
...Object.keys(blobFragments ?? {}),
|
|
179
|
+
...Object.keys(classified ?? {})
|
|
180
|
+
]);
|
|
181
|
+
validateFieldMetaKeys(collection, fieldMeta, knownFields);
|
|
182
|
+
}
|
|
183
|
+
const allKeys = /* @__PURE__ */ new Set([
|
|
184
|
+
...Object.keys(moneyFields ?? {}),
|
|
185
|
+
...Object.keys(dictKeyFields ?? {}),
|
|
186
|
+
...Object.keys(lookupFields ?? {}),
|
|
187
|
+
...Object.keys(refs),
|
|
188
|
+
...Object.keys(computed ?? {}),
|
|
189
|
+
...Object.keys(fieldMeta ?? {}),
|
|
190
|
+
...Object.keys(zodFields ?? {}),
|
|
191
|
+
...Object.keys(i18nFields ?? {}),
|
|
192
|
+
...Object.keys(classified ?? {}),
|
|
193
|
+
...Object.keys(blobFragments ?? {})
|
|
194
|
+
]);
|
|
195
|
+
const fields = [];
|
|
196
|
+
for (const key of [...allKeys].sort()) {
|
|
197
|
+
const zod = zodFields?.[key];
|
|
198
|
+
const money = moneyFields?.[key];
|
|
199
|
+
const dict = dictKeyFields?.[key];
|
|
200
|
+
const lookupDesc = lookupFields?.[key];
|
|
201
|
+
const refDesc = refs[key];
|
|
202
|
+
const isComputed = computed !== void 0 && key in computed;
|
|
203
|
+
const i18nDesc = i18nFields?.[key];
|
|
204
|
+
const cls = classified?.[key];
|
|
205
|
+
const blobFragmentEntry = blobFragments?.[key];
|
|
206
|
+
const taintPosture = taint?.postures.get(key);
|
|
207
|
+
let type = zod?.type ?? "unknown";
|
|
208
|
+
const inferred = {};
|
|
209
|
+
let moneyBlock;
|
|
210
|
+
let dictBlock;
|
|
211
|
+
let refBlock;
|
|
212
|
+
let lookupBlock;
|
|
213
|
+
let blobBlock;
|
|
214
|
+
if (money) {
|
|
215
|
+
type = "number";
|
|
216
|
+
inferred.semanticType = "currency";
|
|
217
|
+
inferred.aggregate = "sum";
|
|
218
|
+
const currency = money.soleCurrency();
|
|
219
|
+
const scale = currency !== void 0 ? money.scaleFor(currency) : void 0;
|
|
220
|
+
moneyBlock = {
|
|
221
|
+
mode: money.mode,
|
|
222
|
+
...currency !== void 0 ? { currency } : {},
|
|
223
|
+
...scale !== void 0 ? { scale } : {},
|
|
224
|
+
...money.rounding !== void 0 ? { rounding: money.rounding } : {}
|
|
225
|
+
};
|
|
226
|
+
} else if (refDesc) {
|
|
227
|
+
type = refDesc.isArray ? "array" : "string";
|
|
228
|
+
inferred.semanticType = "entity";
|
|
229
|
+
refBlock = {
|
|
230
|
+
target: refDesc.target,
|
|
231
|
+
mode: refDesc.mode,
|
|
232
|
+
...refDesc.isArray ? { isArray: true } : {}
|
|
233
|
+
};
|
|
234
|
+
} else if (dict) {
|
|
235
|
+
type = "enum";
|
|
236
|
+
if (isStaticDictDescriptor(dict)) {
|
|
237
|
+
const displayLocale = dict.displayLocale;
|
|
238
|
+
const values = dict.keys.map((k) => {
|
|
239
|
+
const localeMap = dict.table[k];
|
|
240
|
+
const label = displayLocale !== void 0 ? localeMap?.[displayLocale] ?? void 0 : void 0;
|
|
241
|
+
return label !== void 0 ? { value: k, label } : { value: k };
|
|
242
|
+
});
|
|
243
|
+
dictBlock = { name: dict.name, static: true, values };
|
|
244
|
+
} else {
|
|
245
|
+
const labelMap = dictLabels?.[dict.name];
|
|
246
|
+
const labelMapHasEntries = labelMap !== void 0 && Object.keys(labelMap).length > 0;
|
|
247
|
+
if (labelMapHasEntries) {
|
|
248
|
+
const values = Object.entries(labelMap).map(([value, label]) => ({ value, label }));
|
|
249
|
+
dictBlock = { name: dict.name, static: false, values };
|
|
250
|
+
} else if (dict.keys !== void 0) {
|
|
251
|
+
const values = dict.keys.map((k) => {
|
|
252
|
+
const label = dict.labels?.[k];
|
|
253
|
+
return label !== void 0 ? { value: k, label } : { value: k };
|
|
254
|
+
});
|
|
255
|
+
dictBlock = { name: dict.name, static: false, values };
|
|
256
|
+
} else {
|
|
257
|
+
dictBlock = { name: dict.name, static: false };
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
} else if (lookupDesc) {
|
|
261
|
+
type = "enum";
|
|
262
|
+
const lookupLabelMap = dictLabels?.[lookupDesc.dimension];
|
|
263
|
+
const lookupLabelMapHasEntries = lookupLabelMap !== void 0 && Object.keys(lookupLabelMap).length > 0;
|
|
264
|
+
if (lookupDesc.table !== void 0) {
|
|
265
|
+
const displayLocale = lookupDesc.displayLocale;
|
|
266
|
+
const table = lookupDesc.table;
|
|
267
|
+
const values = (lookupDesc.keys ?? Object.keys(table)).map((k) => {
|
|
268
|
+
const localeMap = table[k];
|
|
269
|
+
const label = displayLocale !== void 0 ? localeMap?.[displayLocale] ?? void 0 : void 0;
|
|
270
|
+
return label !== void 0 ? { value: k, label } : { value: k };
|
|
271
|
+
});
|
|
272
|
+
dictBlock = { name: lookupDesc.dimension, static: true, values };
|
|
273
|
+
} else if (lookupLabelMapHasEntries) {
|
|
274
|
+
const values = Object.entries(lookupLabelMap).map(([value, label]) => ({ value, label }));
|
|
275
|
+
dictBlock = { name: lookupDesc.dimension, static: false, values };
|
|
276
|
+
} else if (lookupDesc.keys !== void 0) {
|
|
277
|
+
const values = lookupDesc.keys.map((k) => {
|
|
278
|
+
const label = lookupDesc.labels?.[k];
|
|
279
|
+
return label !== void 0 ? { value: k, label } : { value: k };
|
|
280
|
+
});
|
|
281
|
+
dictBlock = { name: lookupDesc.dimension, static: false, values };
|
|
282
|
+
} else {
|
|
283
|
+
dictBlock = { name: lookupDesc.dimension, static: false };
|
|
284
|
+
}
|
|
285
|
+
} else if (i18nDesc) {
|
|
286
|
+
type = "string";
|
|
287
|
+
} else if (isComputed) {
|
|
288
|
+
} else if (blobFragmentEntry !== void 0) {
|
|
289
|
+
type = "blob";
|
|
290
|
+
blobBlock = { ...blobFragmentEntry, queryable: "none" };
|
|
291
|
+
}
|
|
292
|
+
const lookupFragmentEntry = lookupFragments?.[key];
|
|
293
|
+
if (lookupFragmentEntry !== void 0) {
|
|
294
|
+
lookupBlock = {
|
|
295
|
+
...lookupFragmentEntry.dimension !== void 0 ? { dimension: lookupFragmentEntry.dimension } : {},
|
|
296
|
+
backing: lookupFragmentEntry.backing,
|
|
297
|
+
vocabulary: lookupFragmentEntry.vocabulary,
|
|
298
|
+
key: lookupFragmentEntry.key,
|
|
299
|
+
onDelete: lookupFragmentEntry.onDelete,
|
|
300
|
+
...lookupFragmentEntry.altKeys !== void 0 ? { altKeys: lookupFragmentEntry.altKeys } : {},
|
|
301
|
+
...lookupFragmentEntry.present !== void 0 ? { present: lookupFragmentEntry.present } : {},
|
|
302
|
+
...lookupFragmentEntry.sortBy !== void 0 ? { sortBy: lookupFragmentEntry.sortBy } : {},
|
|
303
|
+
...lookupFragmentEntry.keys !== void 0 ? { keys: lookupFragmentEntry.keys } : {}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
if (cls !== void 0) inferred.sensitivity = cls.sensitivity;
|
|
307
|
+
const channelEntry = fieldMeta?.[key];
|
|
308
|
+
const zodMeta = zod?.meta;
|
|
309
|
+
const resolved = resolveFieldMeta(key, {
|
|
310
|
+
...channelEntry !== void 0 ? { channel: channelEntry } : {},
|
|
311
|
+
...zodMeta !== void 0 ? { zodMeta } : {},
|
|
312
|
+
inferred
|
|
313
|
+
});
|
|
314
|
+
let i18nBlock;
|
|
315
|
+
if (i18nDesc !== void 0) {
|
|
316
|
+
const locales = i18nDesc.options.languages;
|
|
317
|
+
const densify = i18nDesc.options.densifyOnWrite;
|
|
318
|
+
i18nBlock = {
|
|
319
|
+
...locales !== void 0 ? { locales } : {},
|
|
320
|
+
...densify !== void 0 ? { densify } : {}
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
const widget = deriveWidget({
|
|
324
|
+
type,
|
|
325
|
+
...resolved.semanticType !== void 0 ? { semanticType: resolved.semanticType } : {},
|
|
326
|
+
...dictBlock !== void 0 ? { dict: dictBlock } : {},
|
|
327
|
+
...lookupBlock !== void 0 ? { lookup: lookupBlock } : {},
|
|
328
|
+
...blobBlock !== void 0 ? { blob: blobBlock } : {},
|
|
329
|
+
...resolved.widget !== void 0 ? { resolvedWidget: resolved.widget } : {}
|
|
330
|
+
});
|
|
331
|
+
const editable = !isComputed && key !== "id" && blobBlock === void 0;
|
|
332
|
+
const field = {
|
|
333
|
+
key,
|
|
334
|
+
...fieldIds?.[key] !== void 0 ? { id: fieldIds[key] } : {},
|
|
335
|
+
type,
|
|
336
|
+
optional: zod?.optional ?? false,
|
|
337
|
+
...zod?.constraints !== void 0 ? { constraints: zod.constraints } : {},
|
|
338
|
+
label: resolved.label,
|
|
339
|
+
...resolved.description !== void 0 ? { description: resolved.description } : {},
|
|
340
|
+
...resolved.group !== void 0 ? { group: resolved.group } : {},
|
|
341
|
+
...resolved.order !== void 0 ? { order: resolved.order } : {},
|
|
342
|
+
...resolved.semanticType !== void 0 ? { semanticType: resolved.semanticType } : {},
|
|
343
|
+
...resolved.unit !== void 0 ? { unit: resolved.unit } : {},
|
|
344
|
+
...resolved.sensitivity !== void 0 ? { sensitivity: resolved.sensitivity } : {},
|
|
345
|
+
...resolved.aggregate !== void 0 ? { aggregate: resolved.aggregate } : {},
|
|
346
|
+
...resolved.aliases !== void 0 ? { aliases: resolved.aliases } : {},
|
|
347
|
+
...resolved.displayFor !== void 0 ? { displayFor: resolved.displayFor } : {},
|
|
348
|
+
...refBlock !== void 0 ? { ref: refBlock } : {},
|
|
349
|
+
...moneyBlock !== void 0 ? { money: moneyBlock } : {},
|
|
350
|
+
...dictBlock !== void 0 ? { dict: dictBlock } : {},
|
|
351
|
+
...lookupBlock !== void 0 ? { lookup: lookupBlock } : {},
|
|
352
|
+
...blobBlock !== void 0 ? { blob: blobBlock } : {},
|
|
353
|
+
...isComputed ? { computed: true } : {},
|
|
354
|
+
...i18nBlock !== void 0 ? { i18n: i18nBlock } : {},
|
|
355
|
+
widget,
|
|
356
|
+
editable,
|
|
357
|
+
...cls !== void 0 ? {
|
|
358
|
+
classified: {
|
|
359
|
+
preset: cls.preset,
|
|
360
|
+
storage: cls.storage,
|
|
361
|
+
list: cls.list.kind === "omit" ? "omit" : cls.list.kind === "mask" ? { mask: cls.list.pattern } : { rider: cls.list.rider },
|
|
362
|
+
...cls.equatable === true ? { equatable: true } : {}
|
|
363
|
+
}
|
|
364
|
+
} : {},
|
|
365
|
+
...taintPosture !== void 0 ? { taint: { posture: taintPosture, forcedBy: taint?.provenance?.get(key) ?? [] } } : {}
|
|
366
|
+
};
|
|
367
|
+
fields.push(field);
|
|
368
|
+
}
|
|
369
|
+
const collectionMeta = {
|
|
370
|
+
...meta,
|
|
371
|
+
label: meta?.label ?? humanizeFieldKey(collection)
|
|
372
|
+
};
|
|
373
|
+
return {
|
|
374
|
+
collection,
|
|
375
|
+
fields,
|
|
376
|
+
meta: collectionMeta
|
|
377
|
+
};
|
|
378
|
+
}
|
|
5
379
|
|
|
6
380
|
// src/kernel/via/graph.ts
|
|
7
381
|
var DEFAULT_POSTURE = { encryptedAtRest: "envelope", queryable: "full", exportable: true, forgettable: false };
|
|
@@ -338,7 +712,11 @@ var ViaGraph = class {
|
|
|
338
712
|
};
|
|
339
713
|
|
|
340
714
|
export {
|
|
715
|
+
schemaFieldKeys,
|
|
716
|
+
deriveZodFields,
|
|
717
|
+
resolveDescribeFieldIds,
|
|
718
|
+
buildDescription,
|
|
341
719
|
DEFAULT_POSTURE,
|
|
342
720
|
ViaGraph
|
|
343
721
|
};
|
|
344
|
-
//# sourceMappingURL=chunk-
|
|
722
|
+
//# sourceMappingURL=chunk-7BE7ZDVQ.js.map
|