@noy-db/hub 0.3.0-pre.2 → 0.3.0-pre.3
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/dist/adapter/index.d.ts +2 -2
- package/dist/adapter/index.js +1 -1
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +4 -4
- package/dist/api-LORZ2EZU.js +17 -0
- package/dist/as/index.d.ts +4 -4
- package/dist/as/index.js +9 -6
- package/dist/at/index.d.ts +2 -2
- package/dist/attestation/index.d.ts +3 -3
- package/dist/attestation/index.js +18 -15
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-KMJQ66MF.js → backup-NGRJ46SH.js} +9 -6
- package/dist/{backup-KMJQ66MF.js.map → backup-NGRJ46SH.js.map} +1 -1
- package/dist/blobs/index.d.ts +4 -4
- package/dist/blobs/index.js +8 -5
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.d.ts +5 -5
- package/dist/bundle/index.js +18 -15
- package/dist/bundle/index.js.map +1 -1
- package/dist/{bundle-PwBGkhpe.d.ts → bundle-B-P3_Jvb.d.ts} +1 -1
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.d.ts +4 -4
- package/dist/cargo/index.js +20 -17
- package/dist/{chunk-Y22T3KQE.js → chunk-2KSPDSWI.js} +3 -3
- package/dist/{chunk-ITNUCOXM.js → chunk-2N4MUSF3.js} +7 -5
- package/dist/{chunk-ITNUCOXM.js.map → chunk-2N4MUSF3.js.map} +1 -1
- package/dist/{chunk-5N6CZTCY.js → chunk-2ZORB5RW.js} +3 -3
- package/dist/{chunk-FISN7WE4.js → chunk-3UDPDRUC.js} +4 -4
- package/dist/{chunk-TA66UMI4.js → chunk-46YGCU6Z.js} +2 -2
- package/dist/{chunk-IPB7FTQX.js → chunk-4DZGZ7II.js} +8 -6
- package/dist/{chunk-IPB7FTQX.js.map → chunk-4DZGZ7II.js.map} +1 -1
- package/dist/{chunk-SKF73JOP.js → chunk-4NMFWOS2.js} +3 -3
- package/dist/{chunk-IAGBDSCS.js → chunk-4NZCZUGL.js} +2 -2
- package/dist/{chunk-DFEMTNPJ.js → chunk-55HDKLI3.js} +8 -6
- package/dist/{chunk-DFEMTNPJ.js.map → chunk-55HDKLI3.js.map} +1 -1
- package/dist/{chunk-WWGT2MDV.js → chunk-5A6TC3RQ.js} +5 -5
- package/dist/{chunk-5O3AOPDT.js → chunk-5EZAJEES.js} +151 -432
- package/dist/chunk-5EZAJEES.js.map +1 -0
- package/dist/{chunk-62QYRORB.js → chunk-5Z3RNFJC.js} +3 -3
- package/dist/{chunk-M6OST55S.js → chunk-5ZPWVNL3.js} +2 -2
- package/dist/{chunk-PSMV73A5.js → chunk-6CNLU4TO.js} +5 -5
- package/dist/{chunk-QZISFCVG.js → chunk-6DP5HBQD.js} +11 -9
- package/dist/{chunk-QZISFCVG.js.map → chunk-6DP5HBQD.js.map} +1 -1
- package/dist/{chunk-AIWULCUO.js → chunk-6EVZXETK.js} +5 -3
- package/dist/{chunk-AIWULCUO.js.map → chunk-6EVZXETK.js.map} +1 -1
- package/dist/{chunk-GYGWYIOZ.js → chunk-6I2YPLAG.js} +7 -5
- package/dist/{chunk-GYGWYIOZ.js.map → chunk-6I2YPLAG.js.map} +1 -1
- package/dist/{chunk-SRB2XEWB.js → chunk-6OQ7NKMZ.js} +6 -4
- package/dist/{chunk-SRB2XEWB.js.map → chunk-6OQ7NKMZ.js.map} +1 -1
- package/dist/chunk-6RASM2J4.js +25 -0
- package/dist/chunk-6RASM2J4.js.map +1 -0
- package/dist/{chunk-5LUY7UTV.js → chunk-7IP75FP2.js} +2 -2
- package/dist/{chunk-HCIPRAGS.js → chunk-7MHVHGQZ.js} +2 -2
- package/dist/{chunk-PSHOXR6C.js → chunk-ADBMJDBW.js} +370 -83
- package/dist/chunk-ADBMJDBW.js.map +1 -0
- package/dist/{chunk-ZCGAHGUS.js → chunk-AY4P6PHN.js} +2 -2
- package/dist/{chunk-ZYUC53LT.js → chunk-BLZRNHMG.js} +51 -2
- package/dist/{chunk-ZYUC53LT.js.map → chunk-BLZRNHMG.js.map} +1 -1
- package/dist/{chunk-KXGNJJXB.js → chunk-BV7KNFJY.js} +7 -7
- package/dist/{chunk-BG3SPSR4.js → chunk-BYW7EU5L.js} +2 -2
- package/dist/{chunk-NF5JWERG.js → chunk-BZIWKN74.js} +2 -2
- package/dist/chunk-CPAROOKP.js +124 -0
- package/dist/chunk-CPAROOKP.js.map +1 -0
- package/dist/{chunk-AQTBSL7R.js → chunk-CVXLJIAV.js} +5 -5
- package/dist/{chunk-CWPPNPOH.js → chunk-DA34OEZU.js} +2 -2
- package/dist/{chunk-RUEKROOS.js → chunk-DGUR3CC4.js} +2 -2
- package/dist/{chunk-LXQT4WMP.js → chunk-DHIN36UC.js} +8 -6
- package/dist/{chunk-LXQT4WMP.js.map → chunk-DHIN36UC.js.map} +1 -1
- package/dist/{chunk-JNUWZ6D3.js → chunk-E4YJUNPU.js} +7 -5
- package/dist/{chunk-JNUWZ6D3.js.map → chunk-E4YJUNPU.js.map} +1 -1
- package/dist/{chunk-UV5MFVO3.js → chunk-FELHYKIO.js} +2 -2
- package/dist/{chunk-KVOXU4T5.js → chunk-HGQG3VIP.js} +2 -2
- package/dist/{chunk-XXYIOFUB.js → chunk-IIK7W3AN.js} +5 -5
- package/dist/{chunk-IGUYVGGI.js → chunk-IJW6K6UX.js} +3 -3
- package/dist/{chunk-76722EBH.js → chunk-IWVWB7BZ.js} +11 -9
- package/dist/{chunk-76722EBH.js.map → chunk-IWVWB7BZ.js.map} +1 -1
- package/dist/{chunk-QHJW5EXU.js → chunk-JFYIHLU3.js} +2 -2
- package/dist/chunk-L4IRFTIF.js +424 -0
- package/dist/chunk-L4IRFTIF.js.map +1 -0
- package/dist/{chunk-SM3AVUHC.js → chunk-LES2Z7B4.js} +2 -2
- package/dist/{chunk-IUEN57TV.js → chunk-LHYQE3BP.js} +4 -4
- package/dist/{chunk-V7RWQRG7.js → chunk-LKBLAUOB.js} +3 -3
- package/dist/{chunk-UDRIWL7A.js → chunk-MCJAUQGE.js} +3 -3
- package/dist/chunk-MIOLJG2R.js +105 -0
- package/dist/chunk-MIOLJG2R.js.map +1 -0
- package/dist/{chunk-UIU2THRG.js → chunk-N2FP26NH.js} +5 -5
- package/dist/{chunk-DGDI2D4M.js → chunk-NIA5VQ7G.js} +8 -6
- package/dist/{chunk-DGDI2D4M.js.map → chunk-NIA5VQ7G.js.map} +1 -1
- package/dist/{chunk-CMGR4ZEW.js → chunk-NMRKAGHE.js} +2 -2
- package/dist/{chunk-LV7M27WM.js → chunk-NPVICKZE.js} +4 -4
- package/dist/chunk-NTHKOFVL.js +195 -0
- package/dist/chunk-NTHKOFVL.js.map +1 -0
- package/dist/{chunk-IO6GRPT6.js → chunk-O5DNEXQC.js} +2 -2
- package/dist/{chunk-5TDJ56JE.js → chunk-OCDUQUAP.js} +1 -1
- package/dist/chunk-OCDUQUAP.js.map +1 -0
- package/dist/{chunk-UPJNJGGA.js → chunk-OVIVYAQL.js} +10 -8
- package/dist/{chunk-UPJNJGGA.js.map → chunk-OVIVYAQL.js.map} +1 -1
- package/dist/{chunk-I2NOIW44.js → chunk-P6DN5QU7.js} +8 -6
- package/dist/{chunk-I2NOIW44.js.map → chunk-P6DN5QU7.js.map} +1 -1
- package/dist/{chunk-Q7SS3IME.js → chunk-P6UXDALK.js} +3 -3
- package/dist/{chunk-UAG5KWVA.js → chunk-PJDK2PPQ.js} +3 -3
- package/dist/{chunk-AXRXJTE2.js → chunk-PUNJAEY6.js} +5 -5
- package/dist/{chunk-LFLXAY2W.js → chunk-PYWW4KLO.js} +9 -7
- package/dist/{chunk-LFLXAY2W.js.map → chunk-PYWW4KLO.js.map} +1 -1
- package/dist/{chunk-M2YKN37S.js → chunk-QLQS5A7X.js} +2 -2
- package/dist/{chunk-I3TIKTJO.js → chunk-TICO2I2O.js} +2 -2
- package/dist/{chunk-3YFXJ3ZP.js → chunk-U5DWHU3S.js} +2 -2
- package/dist/{chunk-26LGBE4T.js → chunk-U6OM4E67.js} +6 -4
- package/dist/{chunk-26LGBE4T.js.map → chunk-U6OM4E67.js.map} +1 -1
- package/dist/{chunk-TEILUWOI.js → chunk-UP6EMMDI.js} +10 -10
- package/dist/{chunk-SMXWYP24.js → chunk-VBYVKOMJ.js} +3 -3
- package/dist/{chunk-AZAOEIKW.js → chunk-VHEEU4ZO.js} +2 -2
- package/dist/{chunk-MD3Y6J3L.js → chunk-WVIIJPTJ.js} +7 -5
- package/dist/{chunk-MD3Y6J3L.js.map → chunk-WVIIJPTJ.js.map} +1 -1
- package/dist/{chunk-EIZUR2XW.js → chunk-XRE4JOEO.js} +2 -2
- package/dist/{chunk-VFQGRQIH.js → chunk-YDP2SA5K.js} +7 -5
- package/dist/{chunk-VFQGRQIH.js.map → chunk-YDP2SA5K.js.map} +1 -1
- package/dist/{chunk-5R3ERCDH.js → chunk-YN66UOXT.js} +3 -3
- package/dist/{chunk-IELYAOGG.js → chunk-YTIAXSUE.js} +4 -4
- package/dist/{chunk-TJYQIGAP.js → chunk-Z44OY24N.js} +3 -3
- package/dist/{chunk-VCTFO5CO.js → chunk-ZAWD6O46.js} +2 -2
- package/dist/{chunk-PKHL44ER.js → chunk-ZD4D7UM6.js} +2 -2
- package/dist/{chunk-MTMJVJ5W.js → chunk-ZFME46HJ.js} +5 -3
- package/dist/chunk-ZFME46HJ.js.map +1 -0
- package/dist/{chunk-LMTH2RM6.js → chunk-ZNI3RTFV.js} +2 -2
- package/dist/{chunk-WYSO2NIH.js → chunk-ZRDYQZYH.js} +2 -2
- package/dist/classified/index.d.ts +17 -0
- package/dist/classified/index.js +38 -0
- package/dist/collection-facade-XPVRHBGU.js +36 -0
- package/dist/consent/index.d.ts +3 -3
- package/dist/consent/index.js +7 -4
- package/dist/consent/index.js.map +1 -1
- package/dist/crdt/index.d.ts +3 -3
- package/dist/delegation-4HUHUE6T.js +22 -0
- package/dist/derivations/index.d.ts +4 -4
- package/dist/derivations/index.js +9 -6
- package/dist/describe/index.d.ts +1 -1
- package/dist/{describe-Ccd1hS7a.d.ts → describe-0tiXAjoO.d.ts} +10 -0
- package/dist/{dev-unlock-h0K-UZTk.d.ts → dev-unlock-B_s9DUWa.d.ts} +1 -1
- package/dist/{enclave-UL5LW66V.js → enclave-IS7HZSQ7.js} +34 -18
- package/dist/executor-ANFBCOYA.js +9 -0
- package/dist/executor-IKT47SH2.js +9 -0
- package/dist/executor-OIECZXTV.js +18 -0
- package/dist/export-accessible-NZWCFZHL.js +20 -0
- package/dist/extract-partition-52LX6RQH.js +33 -0
- package/dist/{fanout-sidecar-GF3DJ6KR.js → fanout-sidecar-DDKRG2MX.js} +14 -14
- package/dist/fanout-sidecar-DDKRG2MX.js.map +1 -0
- package/dist/forget/index.js +7 -4
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.d.ts +4 -4
- package/dist/guards/index.js +3 -3
- package/dist/{hash-CdSr06sm.d.ts → hash-CWxn7sf6.d.ts} +7 -2
- package/dist/history/index.d.ts +4 -4
- package/dist/history/index.js +9 -6
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +11 -8
- package/dist/i18n/index.js.map +1 -1
- package/dist/in/index.d.ts +2 -2
- package/dist/{index-_6At2_9_.d.ts → index-D05bV0_g.d.ts} +245 -5
- package/dist/{index-CGLLRtFc.d.ts → index-DTMUUwwW.d.ts} +3 -3
- package/dist/index.d.ts +30 -14
- package/dist/index.js +136 -75
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.d.ts +3 -3
- package/dist/indexing/index.js +4 -4
- package/dist/issue-F4SYPJGJ.js +16 -0
- package/dist/kernel/index.d.ts +3 -3
- package/dist/kernel/index.js +10 -7
- package/dist/{ledger-RYI35CDS.js → ledger-YUAJUNFP.js} +9 -6
- package/dist/liberate-6LDETRIW.js +21 -0
- package/dist/materialized-views/index.d.ts +4 -4
- package/dist/materialized-views/index.js +13 -10
- package/dist/{mime-magic-B4RoFj3B.d.ts → mime-magic-Qr_4HjP6.d.ts} +1 -1
- package/dist/noydb-WQNBVJIG.js +54 -0
- package/dist/on/index.d.ts +2 -2
- package/dist/on/index.js +7 -4
- package/dist/overlay-views/index.d.ts +4 -4
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.d.ts +3 -3
- package/dist/periods/index.js +10 -7
- package/dist/pod/index.d.ts +3 -3
- package/dist/pod/index.js +9 -6
- package/dist/{policy-IXK4FVXP.js → policy-LRE6HTO5.js} +5 -5
- package/dist/portability/index.d.ts +3 -3
- package/dist/portability/index.js +8 -8
- package/dist/{public-envelope-JHDQCPSX.js → public-envelope-WVRRUVAJ.js} +4 -4
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +6 -6
- package/dist/registry-6HZ2JSQ7.js +14 -0
- package/dist/registry-GPXZQ7DT.js +9 -0
- package/dist/registry-USYD2ECC.js +16 -0
- package/dist/request-withdrawal-54V4L6CR.js +28 -0
- package/dist/reveal-WSUHXCSS.js +37 -0
- package/dist/reveal-WSUHXCSS.js.map +1 -0
- package/dist/revoke-JV26NTQD.js +21 -0
- package/dist/sealed-record/index.d.ts +3 -3
- package/dist/sealed-record/index.js +10 -7
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/session/index.d.ts +4 -4
- package/dist/session/index.js +7 -4
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.d.ts +3 -3
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-PNKTBVF7.js → signer-AE56T5HE.js} +8 -5
- package/dist/snapshots/index.d.ts +3 -3
- package/dist/snapshots/index.js +8 -5
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-3JWHNDIY.js → stale-LX4BR43V.js} +2 -2
- package/dist/{store-coordination-provider-3I7XWZZK.js → store-coordination-provider-KTRIC6PR.js} +3 -3
- package/dist/sync/index.d.ts +2 -2
- package/dist/sync/index.js +7 -4
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.d.ts +3 -3
- package/dist/team/index.js +13 -10
- package/dist/tiers/index.d.ts +2 -2
- package/dist/tiers/index.js +8 -5
- package/dist/to/index.d.ts +2 -2
- package/dist/to/index.js +1 -1
- package/dist/{transition-guard-DqodPNKw.d.ts → transition-guard-C1Pyz8nH.d.ts} +1 -1
- package/dist/tx/index.d.ts +3 -3
- package/dist/tx/index.js +3 -3
- package/dist/ui/index.d.ts +1 -1
- package/dist/util/index.js +1 -1
- package/dist/validators-Dzn7T-3x.d.ts +62 -0
- package/dist/{vault-diff-BtpiBvic.d.ts → vault-diff-Fn0WeY2w.d.ts} +1 -1
- package/dist/verify-SW6J63Q2.js +135 -0
- package/dist/verify-SW6J63Q2.js.map +1 -0
- package/dist/with/index.d.ts +3 -3
- package/dist/with/index.js +9 -6
- package/dist/{with-materialized-view-DMmWtYfJ.d.ts → with-materialized-view-NKxs6iK5.d.ts} +1 -1
- package/dist/{with-overlayed-view-D_IB2nkM.d.ts → with-overlayed-view-B4fPYHwV.d.ts} +1 -1
- package/dist/{with-rollup-em2wxoHP.d.ts → with-rollup-Bl0sRFEt.d.ts} +1 -1
- package/dist/withdraw-accessible-DGA4V2TP.js +25 -0
- package/dist/withdraw-accessible-DGA4V2TP.js.map +1 -0
- package/package.json +7 -3
- package/dist/api-RW3KP7WU.js +0 -14
- package/dist/chunk-5O3AOPDT.js.map +0 -1
- package/dist/chunk-5TDJ56JE.js.map +0 -1
- package/dist/chunk-MTMJVJ5W.js.map +0 -1
- package/dist/chunk-PSHOXR6C.js.map +0 -1
- package/dist/collection-facade-GQAOGJP2.js +0 -33
- package/dist/delegation-UL5HKLER.js +0 -19
- package/dist/executor-2FWQRLMG.js +0 -15
- package/dist/executor-QZ7BXICW.js +0 -9
- package/dist/executor-Z5ZLJVTV.js +0 -9
- package/dist/export-accessible-KRV5W4GH.js +0 -17
- package/dist/extract-partition-GLKBOXFQ.js +0 -30
- package/dist/fanout-sidecar-GF3DJ6KR.js.map +0 -1
- package/dist/issue-Y6UVIR43.js +0 -13
- package/dist/liberate-CRPZEV7O.js +0 -18
- package/dist/noydb-LDEBLNHY.js +0 -50
- package/dist/registry-45RJNWGU.js +0 -9
- package/dist/registry-5GRV5VXI.js +0 -13
- package/dist/registry-WEUCHBO4.js +0 -11
- package/dist/request-withdrawal-GBPH2FDY.js +0 -25
- package/dist/revoke-TUFRGI6S.js +0 -18
- package/dist/withdraw-accessible-FFS46EOD.js +0 -22
- /package/dist/{api-RW3KP7WU.js.map → api-LORZ2EZU.js.map} +0 -0
- /package/dist/{chunk-Y22T3KQE.js.map → chunk-2KSPDSWI.js.map} +0 -0
- /package/dist/{chunk-5N6CZTCY.js.map → chunk-2ZORB5RW.js.map} +0 -0
- /package/dist/{chunk-FISN7WE4.js.map → chunk-3UDPDRUC.js.map} +0 -0
- /package/dist/{chunk-TA66UMI4.js.map → chunk-46YGCU6Z.js.map} +0 -0
- /package/dist/{chunk-SKF73JOP.js.map → chunk-4NMFWOS2.js.map} +0 -0
- /package/dist/{chunk-IAGBDSCS.js.map → chunk-4NZCZUGL.js.map} +0 -0
- /package/dist/{chunk-WWGT2MDV.js.map → chunk-5A6TC3RQ.js.map} +0 -0
- /package/dist/{chunk-62QYRORB.js.map → chunk-5Z3RNFJC.js.map} +0 -0
- /package/dist/{chunk-M6OST55S.js.map → chunk-5ZPWVNL3.js.map} +0 -0
- /package/dist/{chunk-PSMV73A5.js.map → chunk-6CNLU4TO.js.map} +0 -0
- /package/dist/{chunk-5LUY7UTV.js.map → chunk-7IP75FP2.js.map} +0 -0
- /package/dist/{chunk-HCIPRAGS.js.map → chunk-7MHVHGQZ.js.map} +0 -0
- /package/dist/{chunk-ZCGAHGUS.js.map → chunk-AY4P6PHN.js.map} +0 -0
- /package/dist/{chunk-KXGNJJXB.js.map → chunk-BV7KNFJY.js.map} +0 -0
- /package/dist/{chunk-BG3SPSR4.js.map → chunk-BYW7EU5L.js.map} +0 -0
- /package/dist/{chunk-NF5JWERG.js.map → chunk-BZIWKN74.js.map} +0 -0
- /package/dist/{chunk-AQTBSL7R.js.map → chunk-CVXLJIAV.js.map} +0 -0
- /package/dist/{chunk-CWPPNPOH.js.map → chunk-DA34OEZU.js.map} +0 -0
- /package/dist/{chunk-RUEKROOS.js.map → chunk-DGUR3CC4.js.map} +0 -0
- /package/dist/{chunk-UV5MFVO3.js.map → chunk-FELHYKIO.js.map} +0 -0
- /package/dist/{chunk-KVOXU4T5.js.map → chunk-HGQG3VIP.js.map} +0 -0
- /package/dist/{chunk-XXYIOFUB.js.map → chunk-IIK7W3AN.js.map} +0 -0
- /package/dist/{chunk-IGUYVGGI.js.map → chunk-IJW6K6UX.js.map} +0 -0
- /package/dist/{chunk-QHJW5EXU.js.map → chunk-JFYIHLU3.js.map} +0 -0
- /package/dist/{chunk-SM3AVUHC.js.map → chunk-LES2Z7B4.js.map} +0 -0
- /package/dist/{chunk-IUEN57TV.js.map → chunk-LHYQE3BP.js.map} +0 -0
- /package/dist/{chunk-V7RWQRG7.js.map → chunk-LKBLAUOB.js.map} +0 -0
- /package/dist/{chunk-UDRIWL7A.js.map → chunk-MCJAUQGE.js.map} +0 -0
- /package/dist/{chunk-UIU2THRG.js.map → chunk-N2FP26NH.js.map} +0 -0
- /package/dist/{chunk-CMGR4ZEW.js.map → chunk-NMRKAGHE.js.map} +0 -0
- /package/dist/{chunk-LV7M27WM.js.map → chunk-NPVICKZE.js.map} +0 -0
- /package/dist/{chunk-IO6GRPT6.js.map → chunk-O5DNEXQC.js.map} +0 -0
- /package/dist/{chunk-Q7SS3IME.js.map → chunk-P6UXDALK.js.map} +0 -0
- /package/dist/{chunk-UAG5KWVA.js.map → chunk-PJDK2PPQ.js.map} +0 -0
- /package/dist/{chunk-AXRXJTE2.js.map → chunk-PUNJAEY6.js.map} +0 -0
- /package/dist/{chunk-M2YKN37S.js.map → chunk-QLQS5A7X.js.map} +0 -0
- /package/dist/{chunk-I3TIKTJO.js.map → chunk-TICO2I2O.js.map} +0 -0
- /package/dist/{chunk-3YFXJ3ZP.js.map → chunk-U5DWHU3S.js.map} +0 -0
- /package/dist/{chunk-TEILUWOI.js.map → chunk-UP6EMMDI.js.map} +0 -0
- /package/dist/{chunk-SMXWYP24.js.map → chunk-VBYVKOMJ.js.map} +0 -0
- /package/dist/{chunk-AZAOEIKW.js.map → chunk-VHEEU4ZO.js.map} +0 -0
- /package/dist/{chunk-EIZUR2XW.js.map → chunk-XRE4JOEO.js.map} +0 -0
- /package/dist/{chunk-5R3ERCDH.js.map → chunk-YN66UOXT.js.map} +0 -0
- /package/dist/{chunk-IELYAOGG.js.map → chunk-YTIAXSUE.js.map} +0 -0
- /package/dist/{chunk-TJYQIGAP.js.map → chunk-Z44OY24N.js.map} +0 -0
- /package/dist/{chunk-VCTFO5CO.js.map → chunk-ZAWD6O46.js.map} +0 -0
- /package/dist/{chunk-PKHL44ER.js.map → chunk-ZD4D7UM6.js.map} +0 -0
- /package/dist/{chunk-LMTH2RM6.js.map → chunk-ZNI3RTFV.js.map} +0 -0
- /package/dist/{chunk-WYSO2NIH.js.map → chunk-ZRDYQZYH.js.map} +0 -0
- /package/dist/{collection-facade-GQAOGJP2.js.map → classified/index.js.map} +0 -0
- /package/dist/{delegation-UL5HKLER.js.map → collection-facade-XPVRHBGU.js.map} +0 -0
- /package/dist/{enclave-UL5LW66V.js.map → delegation-4HUHUE6T.js.map} +0 -0
- /package/dist/{executor-2FWQRLMG.js.map → enclave-IS7HZSQ7.js.map} +0 -0
- /package/dist/{executor-QZ7BXICW.js.map → executor-ANFBCOYA.js.map} +0 -0
- /package/dist/{executor-Z5ZLJVTV.js.map → executor-IKT47SH2.js.map} +0 -0
- /package/dist/{export-accessible-KRV5W4GH.js.map → executor-OIECZXTV.js.map} +0 -0
- /package/dist/{extract-partition-GLKBOXFQ.js.map → export-accessible-NZWCFZHL.js.map} +0 -0
- /package/dist/{issue-Y6UVIR43.js.map → extract-partition-52LX6RQH.js.map} +0 -0
- /package/dist/{ledger-RYI35CDS.js.map → issue-F4SYPJGJ.js.map} +0 -0
- /package/dist/{liberate-CRPZEV7O.js.map → ledger-YUAJUNFP.js.map} +0 -0
- /package/dist/{noydb-LDEBLNHY.js.map → liberate-6LDETRIW.js.map} +0 -0
- /package/dist/{policy-IXK4FVXP.js.map → noydb-WQNBVJIG.js.map} +0 -0
- /package/dist/{public-envelope-JHDQCPSX.js.map → policy-LRE6HTO5.js.map} +0 -0
- /package/dist/{registry-45RJNWGU.js.map → public-envelope-WVRRUVAJ.js.map} +0 -0
- /package/dist/{registry-5GRV5VXI.js.map → registry-6HZ2JSQ7.js.map} +0 -0
- /package/dist/{registry-WEUCHBO4.js.map → registry-GPXZQ7DT.js.map} +0 -0
- /package/dist/{request-withdrawal-GBPH2FDY.js.map → registry-USYD2ECC.js.map} +0 -0
- /package/dist/{revoke-TUFRGI6S.js.map → request-withdrawal-54V4L6CR.js.map} +0 -0
- /package/dist/{signer-PNKTBVF7.js.map → revoke-JV26NTQD.js.map} +0 -0
- /package/dist/{stale-3JWHNDIY.js.map → signer-AE56T5HE.js.map} +0 -0
- /package/dist/{withdraw-accessible-FFS46EOD.js.map → stale-LX4BR43V.js.map} +0 -0
- /package/dist/{store-coordination-provider-3I7XWZZK.js.map → store-coordination-provider-KTRIC6PR.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalJson,
|
|
3
3
|
sha256Hex
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6EVZXETK.js";
|
|
5
5
|
import {
|
|
6
6
|
PeriodClosedError,
|
|
7
7
|
ValidationError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BLZRNHMG.js";
|
|
9
9
|
|
|
10
10
|
// src/with-audit/periods/periods.ts
|
|
11
11
|
var PERIODS_COLLECTION = "_periods";
|
|
@@ -56,7 +56,7 @@ function validatePeriodName(name, existing) {
|
|
|
56
56
|
}
|
|
57
57
|
async function appendPeriodLedgerEntry(ledger, actor, envelope, name) {
|
|
58
58
|
if (!ledger) return;
|
|
59
|
-
const { envelopePayloadHash } = await import("./ledger-
|
|
59
|
+
const { envelopePayloadHash } = await import("./ledger-YUAJUNFP.js");
|
|
60
60
|
await ledger.append({
|
|
61
61
|
op: "put",
|
|
62
62
|
collection: PERIODS_COLLECTION,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
validatePeriodName,
|
|
76
76
|
appendPeriodLedgerEntry
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-YTIAXSUE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CargoNotEnabledError,
|
|
3
3
|
CustodyNotEnabledError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BLZRNHMG.js";
|
|
5
5
|
|
|
6
6
|
// src/with-cargo/strategy.ts
|
|
7
7
|
var NO_CARGO = {
|
|
@@ -20,7 +20,7 @@ function withCustody() {
|
|
|
20
20
|
return host._revokeCustodianImpl(vault, options, factors);
|
|
21
21
|
},
|
|
22
22
|
async liberate(vault, opts) {
|
|
23
|
-
const { liberateVault } = await import("./liberate-
|
|
23
|
+
const { liberateVault } = await import("./liberate-6LDETRIW.js");
|
|
24
24
|
return liberateVault(vault, opts);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
NO_CUSTODY,
|
|
80
80
|
CustodyApi
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-Z44OY24N.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
OverlayBaseIsVirtualError,
|
|
3
3
|
OverlayCollectionUnavailableError,
|
|
4
4
|
OverlayNameCollisionError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BLZRNHMG.js";
|
|
6
6
|
|
|
7
7
|
// src/with-formula/overlay-views/registry.ts
|
|
8
8
|
var OverlayedViewRegistry = class {
|
|
@@ -68,4 +68,4 @@ var OverlayedViewRegistry = class {
|
|
|
68
68
|
export {
|
|
69
69
|
OverlayedViewRegistry
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-ZAWD6O46.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DerivationCapExceededError,
|
|
3
3
|
DerivationOutputShapeError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BLZRNHMG.js";
|
|
5
5
|
|
|
6
6
|
// src/with-formula/derivations/executor.ts
|
|
7
7
|
var DerivationExecutor = {
|
|
@@ -121,4 +121,4 @@ var DerivationExecutor = {
|
|
|
121
121
|
export {
|
|
122
122
|
DerivationExecutor
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-ZD4D7UM6.js.map
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
generateULID
|
|
3
3
|
} from "./chunk-ZJADGNYF.js";
|
|
4
4
|
import {
|
|
5
|
-
encrypt,
|
|
6
5
|
openEnvelopeJson
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5EZAJEES.js";
|
|
7
|
+
import {
|
|
8
|
+
encrypt
|
|
9
|
+
} from "./chunk-L4IRFTIF.js";
|
|
8
10
|
|
|
9
11
|
// src/with-audit/consent/consent.ts
|
|
10
12
|
var CONSENT_AUDIT_COLLECTION = "_consent_audit";
|
|
@@ -70,4 +72,4 @@ export {
|
|
|
70
72
|
writeConsentEntry,
|
|
71
73
|
loadConsentEntries
|
|
72
74
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-ZFME46HJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/with-audit/consent/consent.ts"],"sourcesContent":["/**\n * Consent boundaries — per-access audit log.\n *\n * ```ts\n * const audit = await vault.withConsent(\n * { purpose: 'quarterly-review', consentHash: '7f3a...' },\n * async () => {\n * const invoices = await vault.collection<Invoice>('invoices').list()\n * return invoices\n * },\n * )\n *\n * const log = await vault.consentAudit({ since: '2026-01-01T00:00:00Z' })\n * // → entries: { actor, purpose, consentHash, ts, op, collection, id }\n * ```\n *\n * ## Contract\n *\n * Every `get` / `put` / `delete` that happens inside a `withConsent`\n * callback writes one entry to the reserved `_consent_audit`\n * collection. Entries are encrypted with the vault's consent-audit\n * DEK (separate from per-user-collection DEKs so access-log queries\n * don't require unwrapping individual collection keys). Outside a\n * `withConsent` scope, no entries are written — consent is\n * opt-in by design (GDPR Art. 7: *demonstrable*, *specific*\n * consent).\n *\n * ## Why store the hash, not the consent text?\n *\n * The `consentHash` is the sha256 of whatever consent receipt the\n * actor presented (a signed GDPR banner click, a HIPAA authorisation\n * PDF, an API-level `X-Consent-Hash` header). Storing only the hash:\n *\n * 1. Keeps the audit log small and indexable.\n * 2. Preserves zero-knowledge at the adapter — adapters see\n * ciphertext envelopes of `{ actor, purpose, consentHash, ts,\n * op, collection, id }`, never the consent record itself.\n * 3. Lets the regulator verify a presented consent doc matches\n * the logged hash at audit time without the system ever\n * possessing the doc.\n *\n * ## Concurrency\n *\n * The consent context lives on the {@link Vault} instance. Two\n * concurrent `withConsent` calls on the same Vault would stomp each\n * other — documented limitation; adopters needing per-flight scope\n * should use separate Vault instances or an AsyncLocalStorage shim.\n *\n * @module\n */\nimport type { EncryptedEnvelope, NoydbStore } from '../../kernel/types.js'\nimport { encrypt, openEnvelopeJson, type EnclaveKey } from '../../kernel/enclave/index.js'\nimport { generateULID } from '../../with-pod/ulid.js'\n\n/** Reserved collection for consent-audit entries. */\nexport const CONSENT_AUDIT_COLLECTION = '_consent_audit'\n\n/**\n * The consent scope active for a block of work. Set via\n * `vault.withConsent()`; observed by the collection's access hooks.\n */\nexport interface ConsentContext {\n /**\n * What this access is for. Used by the audit query (`consentAudit\n * ({ purpose })`) and carried in the stored entry. Free-form; the\n * regulator or compliance tooling decides the vocabulary.\n */\n readonly purpose: string\n /**\n * Hex-encoded sha256 of whatever consent artefact the actor\n * presented. Stored as-is in each entry.\n */\n readonly consentHash: string\n}\n\n/** Access operation recorded in an audit entry. */\nexport type ConsentOp = 'get' | 'put' | 'delete' | 'reveal' | 'verify'\n\n/** One consent-audit record, as decrypted for the caller. */\nexport interface ConsentAuditEntry {\n /** ULID — stable insertion-order key. */\n readonly id: string\n readonly timestamp: string\n readonly actor: string\n readonly purpose: string\n readonly consentHash: string\n readonly op: ConsentOp\n readonly collection: string\n readonly recordId: string\n}\n\n/** Filter passed to `vault.consentAudit()`. */\nexport interface ConsentAuditFilter {\n /** Only entries at or after this ISO timestamp. */\n readonly since?: string\n /** Only entries at or before this ISO timestamp. */\n readonly until?: string\n /** Match entries targeting this collection. */\n readonly collection?: string\n /** Match entries written by this actor. */\n readonly actor?: string\n /** Match entries with this purpose. */\n readonly purpose?: string\n}\n\n/**\n * Write one audit entry. Called by Vault's onAccess hook when a\n * consent context is active.\n */\nexport async function writeConsentEntry(\n adapter: NoydbStore,\n vault: string,\n encrypted: boolean,\n entry: Omit<ConsentAuditEntry, 'id' | 'timestamp'>,\n getDEK: (collection: string) => Promise<EnclaveKey>,\n): Promise<void> {\n const id = generateULID()\n const full: ConsentAuditEntry = {\n id,\n timestamp: new Date().toISOString(),\n ...entry,\n }\n const envelope = await buildEnvelope(full, encrypted, getDEK)\n await adapter.put(vault, CONSENT_AUDIT_COLLECTION, id, envelope)\n}\n\n/** Load + decrypt + filter all entries. */\nexport async function loadConsentEntries(\n adapter: NoydbStore,\n vault: string,\n encrypted: boolean,\n getDEK: (collection: string) => Promise<EnclaveKey>,\n filter: ConsentAuditFilter = {},\n): Promise<ConsentAuditEntry[]> {\n const ids = await adapter.list(vault, CONSENT_AUDIT_COLLECTION)\n const entries: ConsentAuditEntry[] = []\n\n for (const id of ids.sort()) {\n const envelope = await adapter.get(vault, CONSENT_AUDIT_COLLECTION, id)\n if (!envelope) continue\n const entry = await decryptEntry(envelope, encrypted, getDEK)\n if (!matchesFilter(entry, filter)) continue\n entries.push(entry)\n }\n return entries\n}\n\n// ── internals ──────────────────────────────────────────────────────\n\nasync function buildEnvelope(\n entry: ConsentAuditEntry,\n encrypted: boolean,\n getDEK: (collection: string) => Promise<EnclaveKey>,\n): Promise<EncryptedEnvelope> {\n const json = JSON.stringify(entry)\n if (!encrypted) {\n return {\n _noydb: 1,\n _v: 1,\n _ts: entry.timestamp,\n _iv: '',\n _data: json,\n }\n }\n const dek = await getDEK(CONSENT_AUDIT_COLLECTION)\n const { iv, data } = await encrypt(json, dek)\n return {\n _noydb: 1,\n _v: 1,\n _ts: entry.timestamp,\n _iv: iv,\n _data: data,\n }\n}\n\nasync function decryptEntry(\n envelope: EncryptedEnvelope,\n encrypted: boolean,\n getDEK: (collection: string) => Promise<EnclaveKey>,\n): Promise<ConsentAuditEntry> {\n if (!encrypted) return JSON.parse(envelope._data) as ConsentAuditEntry\n const json = await openEnvelopeJson(envelope, await getDEK(CONSENT_AUDIT_COLLECTION))\n return JSON.parse(json) as ConsentAuditEntry\n}\n\nfunction matchesFilter(entry: ConsentAuditEntry, f: ConsentAuditFilter): boolean {\n if (f.since && entry.timestamp < f.since) return false\n if (f.until && entry.timestamp > f.until) return false\n if (f.collection && entry.collection !== f.collection) return false\n if (f.actor && entry.actor !== f.actor) return false\n if (f.purpose && entry.purpose !== f.purpose) return false\n return true\n}\n"],"mappings":";;;;;;;;;;;AAuDO,IAAM,2BAA2B;AAsDxC,eAAsB,kBACpB,SACA,OACA,WACA,OACA,QACe;AACf,QAAM,KAAK,aAAa;AACxB,QAAM,OAA0B;AAAA,IAC9B;AAAA,IACA,YAAW,oBAAI,KAAK,GAAE,YAAY;AAAA,IAClC,GAAG;AAAA,EACL;AACA,QAAM,WAAW,MAAM,cAAc,MAAM,WAAW,MAAM;AAC5D,QAAM,QAAQ,IAAI,OAAO,0BAA0B,IAAI,QAAQ;AACjE;AAGA,eAAsB,mBACpB,SACA,OACA,WACA,QACA,SAA6B,CAAC,GACA;AAC9B,QAAM,MAAM,MAAM,QAAQ,KAAK,OAAO,wBAAwB;AAC9D,QAAM,UAA+B,CAAC;AAEtC,aAAW,MAAM,IAAI,KAAK,GAAG;AAC3B,UAAM,WAAW,MAAM,QAAQ,IAAI,OAAO,0BAA0B,EAAE;AACtE,QAAI,CAAC,SAAU;AACf,UAAM,QAAQ,MAAM,aAAa,UAAU,WAAW,MAAM;AAC5D,QAAI,CAAC,cAAc,OAAO,MAAM,EAAG;AACnC,YAAQ,KAAK,KAAK;AAAA,EACpB;AACA,SAAO;AACT;AAIA,eAAe,cACb,OACA,WACA,QAC4B;AAC5B,QAAM,OAAO,KAAK,UAAU,KAAK;AACjC,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,MACL,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,KAAK,MAAM;AAAA,MACX,KAAK;AAAA,MACL,OAAO;AAAA,IACT;AAAA,EACF;AACA,QAAM,MAAM,MAAM,OAAO,wBAAwB;AACjD,QAAM,EAAE,IAAI,KAAK,IAAI,MAAM,QAAQ,MAAM,GAAG;AAC5C,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,IAAI;AAAA,IACJ,KAAK,MAAM;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF;AAEA,eAAe,aACb,UACA,WACA,QAC4B;AAC5B,MAAI,CAAC,UAAW,QAAO,KAAK,MAAM,SAAS,KAAK;AAChD,QAAM,OAAO,MAAM,iBAAiB,UAAU,MAAM,OAAO,wBAAwB,CAAC;AACpF,SAAO,KAAK,MAAM,IAAI;AACxB;AAEA,SAAS,cAAc,OAA0B,GAAgC;AAC/E,MAAI,EAAE,SAAS,MAAM,YAAY,EAAE,MAAO,QAAO;AACjD,MAAI,EAAE,SAAS,MAAM,YAAY,EAAE,MAAO,QAAO;AACjD,MAAI,EAAE,cAAc,MAAM,eAAe,EAAE,WAAY,QAAO;AAC9D,MAAI,EAAE,SAAS,MAAM,UAAU,EAAE,MAAO,QAAO;AAC/C,MAAI,EAAE,WAAW,MAAM,YAAY,EAAE,QAAS,QAAO;AACrD,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ValidationError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BLZRNHMG.js";
|
|
4
4
|
|
|
5
5
|
// src/with-formula/derivations/with-derivation.ts
|
|
6
6
|
function withDerivation(spec) {
|
|
@@ -126,4 +126,4 @@ export {
|
|
|
126
126
|
withDerivation,
|
|
127
127
|
withRollup
|
|
128
128
|
};
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
129
|
+
//# sourceMappingURL=chunk-ZNI3RTFV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttestationNotEnabledError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BLZRNHMG.js";
|
|
4
4
|
|
|
5
5
|
// src/with-audit/attestation/strategy.ts
|
|
6
6
|
var NO_ATTESTATION = {
|
|
@@ -27,4 +27,4 @@ var NO_ATTESTATION = {
|
|
|
27
27
|
export {
|
|
28
28
|
NO_ATTESTATION
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-ZRDYQZYH.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { dL as ClassifiedFieldSpec, dM as ClassifiedStrategy } from '../index-D05bV0_g.js';
|
|
2
|
+
export { dN as ClassifiedConfigError, dO as ClassifiedEntry, dP as ClassifiedGroup, dQ as ClassifiedList, dR as ClassifiedRevealCtx, dS as ClassifiedRevealError, dT as ClassifiedRider, dU as ClassifiedRotationError, dV as ClassifiedStorage, dW as ClassifiedVerdict, dX as ClassifiedVerifyCtx, dY as ClassifiedVerifyError, dZ as NO_CLASSIFIED, d_ as isClassifiedFieldSpec, d$ as isClassifiedGroup } from '../index-D05bV0_g.js';
|
|
3
|
+
export { C as ClassifiedNeverStoredError, a as ClassifiedValidationError, R as ResolvedClassified, c as classified, l as luhnCheck, r as resolveClassifiedFields } from '../validators-Dzn7T-3x.js';
|
|
4
|
+
import '../subject-index-O75wKshW.js';
|
|
5
|
+
import '../describe-0tiXAjoO.js';
|
|
6
|
+
import '../index-B9QdHytu.js';
|
|
7
|
+
import '@noy-db/attestation';
|
|
8
|
+
|
|
9
|
+
/** Write-path enforcement: storage:'never' rejection + preset validators.
|
|
10
|
+
* Runs BEFORE riders/computed and BEFORE schema validation. Pure. @module */
|
|
11
|
+
|
|
12
|
+
declare function enforceClassifiedWrite(record: Record<string, unknown>, byField: Record<string, ClassifiedFieldSpec>, collection: string): void;
|
|
13
|
+
|
|
14
|
+
/** Opt-in factory: enables reveal + verify/verifyText/matchGroup (stage 2). */
|
|
15
|
+
declare function withClassified(): ClassifiedStrategy;
|
|
16
|
+
|
|
17
|
+
export { ClassifiedFieldSpec, ClassifiedStrategy, enforceClassifiedWrite, withClassified };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
classified,
|
|
3
|
+
luhnCheck,
|
|
4
|
+
withClassified
|
|
5
|
+
} from "../chunk-NTHKOFVL.js";
|
|
6
|
+
import {
|
|
7
|
+
ClassifiedNeverStoredError,
|
|
8
|
+
ClassifiedValidationError,
|
|
9
|
+
NO_CLASSIFIED,
|
|
10
|
+
enforceClassifiedWrite,
|
|
11
|
+
isClassifiedFieldSpec,
|
|
12
|
+
isClassifiedGroup,
|
|
13
|
+
resolveClassifiedFields
|
|
14
|
+
} from "../chunk-MIOLJG2R.js";
|
|
15
|
+
import {
|
|
16
|
+
ClassifiedConfigError,
|
|
17
|
+
ClassifiedRevealError,
|
|
18
|
+
ClassifiedRotationError,
|
|
19
|
+
ClassifiedVerifyError
|
|
20
|
+
} from "../chunk-BLZRNHMG.js";
|
|
21
|
+
import "../chunk-PZ5AY32C.js";
|
|
22
|
+
export {
|
|
23
|
+
ClassifiedConfigError,
|
|
24
|
+
ClassifiedNeverStoredError,
|
|
25
|
+
ClassifiedRevealError,
|
|
26
|
+
ClassifiedRotationError,
|
|
27
|
+
ClassifiedValidationError,
|
|
28
|
+
ClassifiedVerifyError,
|
|
29
|
+
NO_CLASSIFIED,
|
|
30
|
+
classified,
|
|
31
|
+
enforceClassifiedWrite,
|
|
32
|
+
isClassifiedFieldSpec,
|
|
33
|
+
isClassifiedGroup,
|
|
34
|
+
luhnCheck,
|
|
35
|
+
resolveClassifiedFields,
|
|
36
|
+
withClassified
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildPersistedIndexCallbacks,
|
|
3
|
+
buildRetrievalDocs,
|
|
4
|
+
embedOnWrite,
|
|
5
|
+
flushIndex,
|
|
6
|
+
hasIndexedBlobFields,
|
|
7
|
+
retrieve,
|
|
8
|
+
search,
|
|
9
|
+
similarTo,
|
|
10
|
+
warmIndex
|
|
11
|
+
} from "./chunk-UP6EMMDI.js";
|
|
12
|
+
import "./chunk-AURFOK3D.js";
|
|
13
|
+
import "./chunk-PYWW4KLO.js";
|
|
14
|
+
import "./chunk-5A6TC3RQ.js";
|
|
15
|
+
import "./chunk-2N4MUSF3.js";
|
|
16
|
+
import "./chunk-6EVZXETK.js";
|
|
17
|
+
import "./chunk-5EZAJEES.js";
|
|
18
|
+
import "./chunk-6RASM2J4.js";
|
|
19
|
+
import "./chunk-CPAROOKP.js";
|
|
20
|
+
import "./chunk-L4IRFTIF.js";
|
|
21
|
+
import "./chunk-OCDUQUAP.js";
|
|
22
|
+
import "./chunk-7IP75FP2.js";
|
|
23
|
+
import "./chunk-BLZRNHMG.js";
|
|
24
|
+
import "./chunk-PZ5AY32C.js";
|
|
25
|
+
export {
|
|
26
|
+
buildPersistedIndexCallbacks,
|
|
27
|
+
buildRetrievalDocs,
|
|
28
|
+
embedOnWrite,
|
|
29
|
+
flushIndex,
|
|
30
|
+
hasIndexedBlobFields,
|
|
31
|
+
retrieve,
|
|
32
|
+
search,
|
|
33
|
+
similarTo,
|
|
34
|
+
warmIndex
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=collection-facade-XPVRHBGU.js.map
|
package/dist/consent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bp as ConsentStrategy } from '../index-
|
|
2
|
-
export { bq as CONSENT_AUDIT_COLLECTION, br as ConsentAuditEntry, bs as ConsentAuditFilter, bt as ConsentContext, bu as ConsentOp, bv as loadConsentEntries, bw as writeConsentEntry } from '../index-
|
|
1
|
+
import { bp as ConsentStrategy } from '../index-D05bV0_g.js';
|
|
2
|
+
export { bq as CONSENT_AUDIT_COLLECTION, br as ConsentAuditEntry, bs as ConsentAuditFilter, bt as ConsentContext, bu as ConsentOp, bv as loadConsentEntries, bw as writeConsentEntry } from '../index-D05bV0_g.js';
|
|
3
3
|
import '../subject-index-O75wKshW.js';
|
|
4
|
-
import '../describe-
|
|
4
|
+
import '../describe-0tiXAjoO.js';
|
|
5
5
|
import '../index-B9QdHytu.js';
|
|
6
6
|
import '@noy-db/attestation';
|
|
7
7
|
|
package/dist/consent/index.js
CHANGED
|
@@ -2,11 +2,14 @@ import {
|
|
|
2
2
|
CONSENT_AUDIT_COLLECTION,
|
|
3
3
|
loadConsentEntries,
|
|
4
4
|
writeConsentEntry
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZFME46HJ.js";
|
|
6
6
|
import "../chunk-ZJADGNYF.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-5EZAJEES.js";
|
|
8
|
+
import "../chunk-6RASM2J4.js";
|
|
9
|
+
import "../chunk-CPAROOKP.js";
|
|
10
|
+
import "../chunk-L4IRFTIF.js";
|
|
11
|
+
import "../chunk-OCDUQUAP.js";
|
|
12
|
+
import "../chunk-BLZRNHMG.js";
|
|
10
13
|
import "../chunk-PZ5AY32C.js";
|
|
11
14
|
|
|
12
15
|
// src/with-audit/consent/active.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/with-audit/consent/active.ts"],"sourcesContent":["/**\n * Active consent strategy. Calling `withConsent()` returns a\n * `ConsentStrategy` that delegates to the real\n * `writeConsentEntry` / `loadConsentEntries` functions. Only\n * reachable through the `@noy-db/hub/consent` subpath.\n */\n\nimport { writeConsentEntry, loadConsentEntries } from './consent.js'\nimport type { ConsentStrategy } from './strategy.js'\n\n/**\n * Build the default consent strategy. Pass into\n * `createNoydb({ consentStrategy: withConsent() })` to enable\n * per-operation audit writes into the reserved `_consent_audit`\n * collection.\n */\nexport function withConsent(): ConsentStrategy {\n return {\n write: writeConsentEntry,\n read: loadConsentEntries,\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/with-audit/consent/active.ts"],"sourcesContent":["/**\n * Active consent strategy. Calling `withConsent()` returns a\n * `ConsentStrategy` that delegates to the real\n * `writeConsentEntry` / `loadConsentEntries` functions. Only\n * reachable through the `@noy-db/hub/consent` subpath.\n */\n\nimport { writeConsentEntry, loadConsentEntries } from './consent.js'\nimport type { ConsentStrategy } from './strategy.js'\n\n/**\n * Build the default consent strategy. Pass into\n * `createNoydb({ consentStrategy: withConsent() })` to enable\n * per-operation audit writes into the reserved `_consent_audit`\n * collection.\n */\nexport function withConsent(): ConsentStrategy {\n return {\n write: writeConsentEntry,\n read: loadConsentEntries,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAgBO,SAAS,cAA+B;AAC7C,SAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;","names":[]}
|
package/dist/crdt/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bf as CrdtStrategy } from '../index-
|
|
2
|
-
export { bg as CrdtMode, bh as CrdtState, bi as LwwMapState, bj as RgaState, bk as YjsState, bl as buildLwwMapState, bm as buildRgaState, bn as mergeCrdtStates, bo as resolveCrdtSnapshot } from '../index-
|
|
1
|
+
import { bf as CrdtStrategy } from '../index-D05bV0_g.js';
|
|
2
|
+
export { bg as CrdtMode, bh as CrdtState, bi as LwwMapState, bj as RgaState, bk as YjsState, bl as buildLwwMapState, bm as buildRgaState, bn as mergeCrdtStates, bo as resolveCrdtSnapshot } from '../index-D05bV0_g.js';
|
|
3
3
|
import '../subject-index-O75wKshW.js';
|
|
4
|
-
import '../describe-
|
|
4
|
+
import '../describe-0tiXAjoO.js';
|
|
5
5
|
import '../index-B9QdHytu.js';
|
|
6
6
|
import '@noy-db/attestation';
|
|
7
7
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DELEGATIONS_COLLECTION,
|
|
3
|
+
issueDelegation,
|
|
4
|
+
loadActiveDelegations,
|
|
5
|
+
revokeDelegation
|
|
6
|
+
} from "./chunk-YDP2SA5K.js";
|
|
7
|
+
import "./chunk-O5DNEXQC.js";
|
|
8
|
+
import "./chunk-ZJADGNYF.js";
|
|
9
|
+
import "./chunk-5EZAJEES.js";
|
|
10
|
+
import "./chunk-6RASM2J4.js";
|
|
11
|
+
import "./chunk-CPAROOKP.js";
|
|
12
|
+
import "./chunk-L4IRFTIF.js";
|
|
13
|
+
import "./chunk-OCDUQUAP.js";
|
|
14
|
+
import "./chunk-BLZRNHMG.js";
|
|
15
|
+
import "./chunk-PZ5AY32C.js";
|
|
16
|
+
export {
|
|
17
|
+
DELEGATIONS_COLLECTION,
|
|
18
|
+
issueDelegation,
|
|
19
|
+
loadActiveDelegations,
|
|
20
|
+
revokeDelegation
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=delegation-4HUHUE6T.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { w as withDerivation, a as withRollup } from '../with-rollup-
|
|
2
|
-
import { c2 as DerivationStrategy, c3 as DerivationContext } from '../index-
|
|
3
|
-
export { c4 as ArrayOutputSpec, c5 as DerivationCapExceededError, c6 as DerivationCycleError, c7 as DerivationDepthError, c8 as DerivationOutputShapeError, c9 as DerivationOutputUnknownError, ca as DerivationRegistry, cb as DerivationStrategyHandle, cc as DerivedFromMeta, cd as OutputSpec, ce as RecordOutputSpec } from '../index-
|
|
1
|
+
export { w as withDerivation, a as withRollup } from '../with-rollup-Bl0sRFEt.js';
|
|
2
|
+
import { c2 as DerivationStrategy, c3 as DerivationContext } from '../index-D05bV0_g.js';
|
|
3
|
+
export { c4 as ArrayOutputSpec, c5 as DerivationCapExceededError, c6 as DerivationCycleError, c7 as DerivationDepthError, c8 as DerivationOutputShapeError, c9 as DerivationOutputUnknownError, ca as DerivationRegistry, cb as DerivationStrategyHandle, cc as DerivedFromMeta, cd as OutputSpec, ce as RecordOutputSpec } from '../index-D05bV0_g.js';
|
|
4
4
|
import '../subject-index-O75wKshW.js';
|
|
5
|
-
import '../describe-
|
|
5
|
+
import '../describe-0tiXAjoO.js';
|
|
6
6
|
import '../index-B9QdHytu.js';
|
|
7
7
|
import '@noy-db/attestation';
|
|
8
8
|
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withDerivation,
|
|
3
3
|
withRollup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZNI3RTFV.js";
|
|
5
5
|
import {
|
|
6
6
|
DerivationRegistry
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-P6UXDALK.js";
|
|
8
8
|
import {
|
|
9
9
|
DerivationExecutor
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-ZD4D7UM6.js";
|
|
11
|
+
import "../chunk-5EZAJEES.js";
|
|
12
|
+
import "../chunk-6RASM2J4.js";
|
|
13
|
+
import "../chunk-CPAROOKP.js";
|
|
14
|
+
import "../chunk-L4IRFTIF.js";
|
|
15
|
+
import "../chunk-OCDUQUAP.js";
|
|
13
16
|
import {
|
|
14
17
|
DerivationCapExceededError,
|
|
15
18
|
DerivationCycleError,
|
|
16
19
|
DerivationDepthError,
|
|
17
20
|
DerivationOutputShapeError,
|
|
18
21
|
DerivationOutputUnknownError
|
|
19
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-BLZRNHMG.js";
|
|
20
23
|
import "../chunk-PZ5AY32C.js";
|
|
21
24
|
export {
|
|
22
25
|
DerivationCapExceededError,
|
package/dist/describe/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CollectionDescription, a as CollectionMeta, D as DescribeOptions, b as DescribedField, F as FieldMeta, S as SemanticType } from '../describe-
|
|
1
|
+
export { C as CollectionDescription, a as CollectionMeta, D as DescribeOptions, b as DescribedField, F as FieldMeta, S as SemanticType } from '../describe-0tiXAjoO.js';
|
|
@@ -124,6 +124,16 @@ interface DescribedField {
|
|
|
124
124
|
readonly widget: string;
|
|
125
125
|
/** Whether the field is user-editable. False for computed, id, and provenance-stamped fields. */
|
|
126
126
|
readonly editable: boolean;
|
|
127
|
+
/** Present when the field is classified. Serialized read-projection contract. */
|
|
128
|
+
readonly classified?: {
|
|
129
|
+
readonly preset: string;
|
|
130
|
+
readonly storage: 'recoverable' | 'never' | 'digest-only';
|
|
131
|
+
readonly list: 'omit' | {
|
|
132
|
+
readonly mask: string;
|
|
133
|
+
} | {
|
|
134
|
+
readonly rider: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
127
137
|
}
|
|
128
138
|
interface CollectionDescription {
|
|
129
139
|
readonly collection: string;
|
|
@@ -1,13 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RecordCodec,
|
|
3
3
|
SEALED_CEK_NS,
|
|
4
|
+
envelopeBodyForHash,
|
|
5
|
+
findByDet,
|
|
6
|
+
hasPerRecordKey,
|
|
7
|
+
openEnvelopeJson,
|
|
8
|
+
queryByDet,
|
|
9
|
+
resolveStableCek,
|
|
10
|
+
revokeSealedRecord,
|
|
11
|
+
rewrapBodyToDek,
|
|
12
|
+
rotateRecordCek,
|
|
13
|
+
sealRecordToHost,
|
|
14
|
+
writeEnvelopeBody
|
|
15
|
+
} from "./chunk-5EZAJEES.js";
|
|
16
|
+
import {
|
|
17
|
+
buildTombstone,
|
|
18
|
+
isTombstone
|
|
19
|
+
} from "./chunk-6RASM2J4.js";
|
|
20
|
+
import {
|
|
21
|
+
ctEqualTags,
|
|
22
|
+
deriveVdigSlotKey,
|
|
23
|
+
evaluateKofN,
|
|
24
|
+
pbkdf2VerifyDigest
|
|
25
|
+
} from "./chunk-CPAROOKP.js";
|
|
26
|
+
import {
|
|
4
27
|
base64ToBuffer,
|
|
5
28
|
bufferToBase64,
|
|
6
|
-
buildTombstone,
|
|
7
29
|
decrypt,
|
|
8
30
|
decryptBytes,
|
|
9
31
|
decryptBytesWithAAD,
|
|
10
32
|
decryptDeterministic,
|
|
33
|
+
deriveDeterministicKey,
|
|
11
34
|
deriveKey,
|
|
12
35
|
derivePassphraseKey,
|
|
13
36
|
derivePresenceKey,
|
|
@@ -17,31 +40,19 @@ import {
|
|
|
17
40
|
encryptBytes,
|
|
18
41
|
encryptBytesWithAAD,
|
|
19
42
|
encryptDeterministic,
|
|
20
|
-
envelopeBodyForHash,
|
|
21
|
-
findByDet,
|
|
22
43
|
generateDEK,
|
|
23
44
|
generateIV,
|
|
24
45
|
generateSalt,
|
|
25
|
-
hasPerRecordKey,
|
|
26
46
|
hmacSha256Hex,
|
|
27
47
|
importCek,
|
|
28
|
-
isTombstone,
|
|
29
|
-
openEnvelopeJson,
|
|
30
|
-
queryByDet,
|
|
31
|
-
resolveStableCek,
|
|
32
|
-
revokeSealedRecord,
|
|
33
|
-
rewrapBodyToDek,
|
|
34
|
-
rotateRecordCek,
|
|
35
|
-
sealRecordToHost,
|
|
36
48
|
sha256Hex,
|
|
37
49
|
unwrapCek,
|
|
38
50
|
unwrapKey,
|
|
39
51
|
wrapCek,
|
|
40
|
-
wrapKey
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-ZYUC53LT.js";
|
|
52
|
+
wrapKey
|
|
53
|
+
} from "./chunk-L4IRFTIF.js";
|
|
54
|
+
import "./chunk-OCDUQUAP.js";
|
|
55
|
+
import "./chunk-BLZRNHMG.js";
|
|
45
56
|
import "./chunk-PZ5AY32C.js";
|
|
46
57
|
export {
|
|
47
58
|
RecordCodec,
|
|
@@ -49,20 +60,24 @@ export {
|
|
|
49
60
|
base64ToBuffer,
|
|
50
61
|
bufferToBase64,
|
|
51
62
|
buildTombstone,
|
|
63
|
+
ctEqualTags,
|
|
52
64
|
decrypt,
|
|
53
65
|
decryptBytes,
|
|
54
66
|
decryptBytesWithAAD,
|
|
55
67
|
decryptDeterministic,
|
|
68
|
+
deriveDeterministicKey,
|
|
56
69
|
deriveKey,
|
|
57
70
|
derivePassphraseKey,
|
|
58
71
|
derivePresenceKey,
|
|
59
72
|
deriveSealedFieldKey,
|
|
60
73
|
deriveSealedFieldKeyFromCek,
|
|
74
|
+
deriveVdigSlotKey,
|
|
61
75
|
encrypt,
|
|
62
76
|
encryptBytes,
|
|
63
77
|
encryptBytesWithAAD,
|
|
64
78
|
encryptDeterministic,
|
|
65
79
|
envelopeBodyForHash,
|
|
80
|
+
evaluateKofN,
|
|
66
81
|
findByDet,
|
|
67
82
|
generateDEK,
|
|
68
83
|
generateIV,
|
|
@@ -72,6 +87,7 @@ export {
|
|
|
72
87
|
importCek,
|
|
73
88
|
isTombstone,
|
|
74
89
|
openEnvelopeJson,
|
|
90
|
+
pbkdf2VerifyDigest,
|
|
75
91
|
queryByDet,
|
|
76
92
|
resolveStableCek,
|
|
77
93
|
revokeSealedRecord,
|
|
@@ -85,4 +101,4 @@ export {
|
|
|
85
101
|
wrapKey,
|
|
86
102
|
writeEnvelopeBody
|
|
87
103
|
};
|
|
88
|
-
//# sourceMappingURL=enclave-
|
|
104
|
+
//# sourceMappingURL=enclave-IS7HZSQ7.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaterializedViewExecutor
|
|
3
|
+
} from "./chunk-CVXLJIAV.js";
|
|
4
|
+
import "./chunk-5Z3RNFJC.js";
|
|
5
|
+
import "./chunk-5EZAJEES.js";
|
|
6
|
+
import "./chunk-6RASM2J4.js";
|
|
7
|
+
import "./chunk-CPAROOKP.js";
|
|
8
|
+
import "./chunk-L4IRFTIF.js";
|
|
9
|
+
import "./chunk-OCDUQUAP.js";
|
|
10
|
+
import "./chunk-NPVICKZE.js";
|
|
11
|
+
import "./chunk-QLQS5A7X.js";
|
|
12
|
+
import "./chunk-7IP75FP2.js";
|
|
13
|
+
import "./chunk-BLZRNHMG.js";
|
|
14
|
+
import "./chunk-PZ5AY32C.js";
|
|
15
|
+
export {
|
|
16
|
+
MaterializedViewExecutor
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=executor-OIECZXTV.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildAccessibleBundle,
|
|
3
|
+
exportAccessibleData,
|
|
4
|
+
resolveAccessibleCollections
|
|
5
|
+
} from "./chunk-7MHVHGQZ.js";
|
|
6
|
+
import "./chunk-3UDPDRUC.js";
|
|
7
|
+
import "./chunk-VBYVKOMJ.js";
|
|
8
|
+
import "./chunk-5EZAJEES.js";
|
|
9
|
+
import "./chunk-6RASM2J4.js";
|
|
10
|
+
import "./chunk-CPAROOKP.js";
|
|
11
|
+
import "./chunk-L4IRFTIF.js";
|
|
12
|
+
import "./chunk-OCDUQUAP.js";
|
|
13
|
+
import "./chunk-BLZRNHMG.js";
|
|
14
|
+
import "./chunk-PZ5AY32C.js";
|
|
15
|
+
export {
|
|
16
|
+
buildAccessibleBundle,
|
|
17
|
+
exportAccessibleData,
|
|
18
|
+
resolveAccessibleCollections
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=export-accessible-NZWCFZHL.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
extractPartition,
|
|
3
|
+
extractPartitionCore,
|
|
4
|
+
reKeyBlobs,
|
|
5
|
+
reKeyClosure,
|
|
6
|
+
reKeyLedger,
|
|
7
|
+
reKeySchemas,
|
|
8
|
+
sealDeks
|
|
9
|
+
} from "./chunk-IWVWB7BZ.js";
|
|
10
|
+
import "./chunk-U6OM4E67.js";
|
|
11
|
+
import "./chunk-55HDKLI3.js";
|
|
12
|
+
import "./chunk-3UDPDRUC.js";
|
|
13
|
+
import "./chunk-VBYVKOMJ.js";
|
|
14
|
+
import "./chunk-ZJADGNYF.js";
|
|
15
|
+
import "./chunk-I7FD46FF.js";
|
|
16
|
+
import "./chunk-6EVZXETK.js";
|
|
17
|
+
import "./chunk-5EZAJEES.js";
|
|
18
|
+
import "./chunk-6RASM2J4.js";
|
|
19
|
+
import "./chunk-CPAROOKP.js";
|
|
20
|
+
import "./chunk-L4IRFTIF.js";
|
|
21
|
+
import "./chunk-OCDUQUAP.js";
|
|
22
|
+
import "./chunk-BLZRNHMG.js";
|
|
23
|
+
import "./chunk-PZ5AY32C.js";
|
|
24
|
+
export {
|
|
25
|
+
extractPartition,
|
|
26
|
+
extractPartitionCore,
|
|
27
|
+
reKeyBlobs,
|
|
28
|
+
reKeyClosure,
|
|
29
|
+
reKeyLedger,
|
|
30
|
+
reKeySchemas,
|
|
31
|
+
sealDeks
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=extract-partition-52LX6RQH.js.map
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
encrypt,
|
|
3
2
|
openEnvelopeJson
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5EZAJEES.js";
|
|
4
|
+
import "./chunk-6RASM2J4.js";
|
|
5
|
+
import "./chunk-CPAROOKP.js";
|
|
6
|
+
import {
|
|
7
|
+
encrypt
|
|
8
|
+
} from "./chunk-L4IRFTIF.js";
|
|
5
9
|
import {
|
|
6
10
|
NOYDB_FORMAT_VERSION
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OCDUQUAP.js";
|
|
12
|
+
import "./chunk-BLZRNHMG.js";
|
|
9
13
|
import "./chunk-PZ5AY32C.js";
|
|
10
14
|
|
|
11
15
|
// src/with-formula/derivations/fanout-sidecar.ts
|
|
@@ -16,15 +20,11 @@ function recordId(source, sourceId, outputKey) {
|
|
|
16
20
|
async function loadFanoutSidecar(store, vault, source, sourceId, outputKey, getDEK, encrypted) {
|
|
17
21
|
const envelope = await store.get(vault, "_meta", recordId(source, sourceId, outputKey));
|
|
18
22
|
if (!envelope) return void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return parsed;
|
|
25
|
-
} catch {
|
|
26
|
-
return void 0;
|
|
27
|
-
}
|
|
23
|
+
const json = !encrypted || envelope._iv === "" ? envelope._data : await openEnvelopeJson(envelope, await getDEK(FANOUT_DEK_COLLECTION));
|
|
24
|
+
const parsed = JSON.parse(json);
|
|
25
|
+
if (parsed._noydb_fanout !== 1) return void 0;
|
|
26
|
+
if (!Array.isArray(parsed.keys)) return void 0;
|
|
27
|
+
return parsed;
|
|
28
28
|
}
|
|
29
29
|
async function saveFanoutSidecar(store, vault, payload, getDEK, encrypted) {
|
|
30
30
|
const doc = {
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
loadFanoutSidecar,
|
|
69
69
|
saveFanoutSidecar
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=fanout-sidecar-
|
|
71
|
+
//# sourceMappingURL=fanout-sidecar-DDKRG2MX.js.map
|