@noy-db/hub 0.8.0-pre.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/dist/api-OS747DS4.js +18 -0
- package/dist/as/index.js +11 -12
- package/dist/as/index.js.map +1 -1
- package/dist/at/index.js +9 -10
- package/dist/attestation/index.js +39 -28
- package/dist/attestation/index.js.map +1 -1
- package/dist/{backup-7TFRVFLH.js → backup-YE2VQ26S.js} +15 -16
- package/dist/backup-YE2VQ26S.js.map +1 -0
- package/dist/blobs/index.js +13 -14
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +12 -13
- package/dist/broker/index.js.map +1 -1
- package/dist/by/index.js +2 -2
- package/dist/capsule/contract.d.ts +159 -0
- package/dist/capsule/contract.js +95 -0
- package/dist/capsule/enclave-aes/bound.d.ts +52 -0
- package/dist/capsule/enclave-aes/capabilities.d.ts +2 -0
- package/dist/capsule/enclave-aes/classify/compare.d.ts +20 -0
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/find.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/reveal.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/verify.d.ts +2 -2
- package/dist/{kernel/enclave → capsule/enclave-aes}/classify/write.d.ts +1 -1
- package/dist/{kernel/enclave → capsule/enclave-aes}/crypto.d.ts +33 -129
- package/dist/capsule/enclave-aes/index.d.ts +113 -0
- package/dist/capsule/enclave-aes/index.js +335 -0
- package/dist/capsule/enclave-aes/index.js.map +1 -0
- package/dist/capsule/enclave-aes/primitives.d.ts +29 -0
- package/dist/capsule/index.d.ts +27 -0
- package/dist/capsule/plumbing/ct-equal.d.ts +11 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/deterministic.d.ts +8 -21
- package/dist/capsule/plumbing/digest.d.ts +122 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/envelope-body.d.ts +44 -48
- package/dist/capsule/plumbing/index.d.ts +100 -0
- package/dist/capsule/plumbing/lifecycle.d.ts +50 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/record-codec.d.ts +55 -20
- package/dist/{kernel/enclave → capsule/plumbing}/record-envelope.d.ts +1 -1
- package/dist/capsule/plumbing/rekey-blob.d.ts +33 -0
- package/dist/capsule/plumbing/rekey.d.ts +44 -0
- package/dist/capsule/plumbing/sealed-slot.d.ts +22 -0
- package/dist/capsule/plumbing/sealed-slots.d.ts +37 -0
- package/dist/capsule/plumbing/sealing.d.ts +29 -0
- package/dist/capsule/plumbing/sign.d.ts +9 -0
- package/dist/{kernel/enclave/record-keys → capsule/plumbing}/tombstone.d.ts +2 -2
- package/dist/capsule-VOLX3QRQ.js +209 -0
- package/dist/cargo/index.js +36 -36
- package/dist/{chunk-DF73H4UN.js → chunk-23D6M6VM.js} +5 -5
- package/dist/chunk-23D6M6VM.js.map +1 -0
- package/dist/{chunk-FH2L2E34.js → chunk-244QBK7Z.js} +4 -4
- package/dist/{chunk-FH2L2E34.js.map → chunk-244QBK7Z.js.map} +1 -1
- package/dist/{chunk-YSK2CU2Q.js → chunk-2AFX33YA.js} +2 -2
- package/dist/{chunk-TKUOEU2F.js → chunk-2GHDLTPE.js} +2 -2
- package/dist/{chunk-GYGLAVCX.js → chunk-2MG3SW7Q.js} +6 -2
- package/dist/chunk-2MG3SW7Q.js.map +1 -0
- package/dist/{chunk-6OWXYZK2.js → chunk-2ODVB6LZ.js} +2 -2
- package/dist/{chunk-X25NWUZB.js → chunk-2PVXF5CS.js} +3 -3
- package/dist/{chunk-IEX7NK2K.js → chunk-2RH777HH.js} +21 -20
- package/dist/{chunk-IEX7NK2K.js.map → chunk-2RH777HH.js.map} +1 -1
- package/dist/{chunk-244VXYPG.js → chunk-37EPTBBR.js} +14 -1
- package/dist/chunk-37EPTBBR.js.map +1 -0
- package/dist/{chunk-NRT6QZQB.js → chunk-3A5DUZ56.js} +6 -6
- package/dist/chunk-3A5DUZ56.js.map +1 -0
- package/dist/{chunk-ORDURZBU.js → chunk-3EWS67C7.js} +2 -2
- package/dist/{chunk-3H5KLDZN.js → chunk-3L2NBKDR.js} +4 -8
- package/dist/chunk-3L2NBKDR.js.map +1 -0
- package/dist/{chunk-ENAG3IY7.js → chunk-3XJQBBZD.js} +26 -28
- package/dist/chunk-3XJQBBZD.js.map +1 -0
- package/dist/{chunk-KJFW62P4.js → chunk-42ALPZ2B.js} +652 -662
- package/dist/chunk-42ALPZ2B.js.map +1 -0
- package/dist/{chunk-FXQBGFOX.js → chunk-4CIQDWRB.js} +8 -8
- package/dist/{chunk-HT2AHGQI.js → chunk-4JPMZTJY.js} +2 -2
- package/dist/{chunk-FQ5VRHIB.js → chunk-4T3SE27M.js} +5 -9
- package/dist/chunk-4T3SE27M.js.map +1 -0
- package/dist/{chunk-MKXXMNJH.js → chunk-4V3Q35WG.js} +2 -2
- package/dist/{chunk-A6IJU4TK.js → chunk-52MGURXO.js} +2 -2
- package/dist/{chunk-IUWCVHQ7.js → chunk-5A4345TG.js} +4 -4
- package/dist/{chunk-IUWCVHQ7.js.map → chunk-5A4345TG.js.map} +1 -1
- package/dist/{chunk-ISZQJBML.js → chunk-5FE75J4S.js} +6 -6
- package/dist/chunk-5FE75J4S.js.map +1 -0
- package/dist/chunk-5KC7QYEC.js +565 -0
- package/dist/chunk-5KC7QYEC.js.map +1 -0
- package/dist/{chunk-NNARWO72.js → chunk-5UMK7GRI.js} +13 -12
- package/dist/chunk-5UMK7GRI.js.map +1 -0
- package/dist/{chunk-HLEK5VAN.js → chunk-5WWDGFOS.js} +2 -2
- package/dist/{chunk-CKNGS5MH.js → chunk-6QVKPHBF.js} +3 -5
- package/dist/chunk-6QVKPHBF.js.map +1 -0
- package/dist/{chunk-PSIV7CJV.js → chunk-747G6CT3.js} +2 -2
- package/dist/chunk-747G6CT3.js.map +1 -0
- package/dist/{chunk-LGRLME4M.js → chunk-7R2Q7CPL.js} +16 -16
- package/dist/chunk-7R2Q7CPL.js.map +1 -0
- package/dist/{chunk-SOIQ4MM4.js → chunk-7XMHMVTS.js} +3 -3
- package/dist/{chunk-BUDAGWL5.js → chunk-A4XMIZT3.js} +6 -6
- package/dist/{chunk-BUDAGWL5.js.map → chunk-A4XMIZT3.js.map} +1 -1
- package/dist/{chunk-4MXI3ODD.js → chunk-AEQGFRU4.js} +3 -3
- package/dist/{chunk-7JE7BDYJ.js → chunk-AL6ML4LA.js} +5 -5
- package/dist/{chunk-ZUVBC32X.js → chunk-AUKKUPVB.js} +2 -2
- package/dist/chunk-BNWA3WG5.js +22 -0
- package/dist/chunk-BNWA3WG5.js.map +1 -0
- package/dist/{chunk-WY2XXTET.js → chunk-BPWYQ25R.js} +4 -4
- package/dist/{chunk-EOVMT6TB.js → chunk-BVCUTXE3.js} +2 -2
- package/dist/{chunk-UPD5NWI5.js → chunk-DHHGL42E.js} +13 -16
- package/dist/chunk-DHHGL42E.js.map +1 -0
- package/dist/{chunk-3JWHAR6E.js → chunk-DIZLQVAA.js} +2 -2
- package/dist/{chunk-QWFHIOD2.js → chunk-DLD5LGDS.js} +11 -12
- package/dist/chunk-DLD5LGDS.js.map +1 -0
- package/dist/{chunk-ZE4CHIED.js → chunk-DQESF6RP.js} +17 -28
- package/dist/chunk-DQESF6RP.js.map +1 -0
- package/dist/{chunk-IT22PWKV.js → chunk-E2N2T5ZO.js} +2 -2
- package/dist/{chunk-3ELRMVJK.js → chunk-EGVJ7TM4.js} +31 -34
- package/dist/chunk-EGVJ7TM4.js.map +1 -0
- package/dist/{chunk-WNJ4AVGE.js → chunk-EJLV62NI.js} +2 -2
- package/dist/{chunk-QBBUZ3I3.js → chunk-EYG2CY2X.js} +11 -11
- package/dist/{enclave-27SMF6GF.js → chunk-EZGV6F47.js} +83 -56
- package/dist/chunk-EZGV6F47.js.map +1 -0
- package/dist/{chunk-LQ4ZHOKP.js → chunk-EZOAKKTB.js} +36 -27
- package/dist/chunk-EZOAKKTB.js.map +1 -0
- package/dist/{chunk-BJ2IXQ5Q.js → chunk-FFJFE4T7.js} +2 -2
- package/dist/{chunk-JCN44NCY.js → chunk-FLPCETP6.js} +2 -2
- package/dist/{chunk-5O7D6ZTW.js → chunk-FOEDQATO.js} +2 -2
- package/dist/{chunk-VNNRUGMM.js → chunk-FVH5QYY2.js} +2 -2
- package/dist/{chunk-ANWPSTZU.js → chunk-G2MVBDFP.js} +23 -26
- package/dist/chunk-G2MVBDFP.js.map +1 -0
- package/dist/chunk-GMKGGY7V.js +234 -0
- package/dist/chunk-GMKGGY7V.js.map +1 -0
- package/dist/{chunk-EIPVYUEP.js → chunk-GQ4MF3CM.js} +3 -3
- package/dist/chunk-GQ4MF3CM.js.map +1 -0
- package/dist/{chunk-PEOZ34EM.js → chunk-GSAK56VF.js} +1 -1
- package/dist/chunk-GSAK56VF.js.map +1 -0
- package/dist/{chunk-QOOUUR4A.js → chunk-GUZET4SG.js} +10 -4
- package/dist/chunk-GUZET4SG.js.map +1 -0
- package/dist/{chunk-4AF3TUMP.js → chunk-GZT3NQRA.js} +2 -2
- package/dist/{chunk-N5DNADLQ.js → chunk-H23XHRTT.js} +19 -34
- package/dist/chunk-H23XHRTT.js.map +1 -0
- package/dist/{chunk-MVZ2TPVP.js → chunk-H427H63K.js} +2 -2
- package/dist/{chunk-6B3VNR4P.js → chunk-H7JBY4P7.js} +23 -32
- package/dist/chunk-H7JBY4P7.js.map +1 -0
- package/dist/{chunk-MLPHLJIQ.js → chunk-HS554XAF.js} +2 -2
- package/dist/{chunk-HK67PX4J.js → chunk-HW7CMKUG.js} +1 -1
- package/dist/chunk-HW7CMKUG.js.map +1 -0
- package/dist/{chunk-S57HTZ6X.js → chunk-IMQKWR46.js} +5 -7
- package/dist/chunk-IMQKWR46.js.map +1 -0
- package/dist/{chunk-FCKWQE2H.js → chunk-IUBMZPHM.js} +7 -7
- package/dist/chunk-IUBMZPHM.js.map +1 -0
- package/dist/{chunk-UD5EVGZ7.js → chunk-IUT3GWP3.js} +49 -13
- package/dist/chunk-IUT3GWP3.js.map +1 -0
- package/dist/{chunk-J6UOHJY5.js → chunk-JDEYF3PJ.js} +4 -8
- package/dist/{chunk-J6UOHJY5.js.map → chunk-JDEYF3PJ.js.map} +1 -1
- package/dist/{chunk-NWHBJQAL.js → chunk-JIBUPZHA.js} +4 -4
- package/dist/chunk-JIBUPZHA.js.map +1 -0
- package/dist/{chunk-TROR3ALR.js → chunk-JOSPH3E5.js} +2 -2
- package/dist/{chunk-F24ZZTHQ.js → chunk-JQYKPKG6.js} +4 -4
- package/dist/{chunk-GF5BZ7D4.js → chunk-JSMTXZR3.js} +8 -12
- package/dist/chunk-JSMTXZR3.js.map +1 -0
- package/dist/chunk-JWWYRR4Q.js +12 -0
- package/dist/chunk-JWWYRR4Q.js.map +1 -0
- package/dist/{chunk-HBPPGWUM.js → chunk-KZXDLBY6.js} +14 -9
- package/dist/chunk-KZXDLBY6.js.map +1 -0
- package/dist/{chunk-7VCXZDA4.js → chunk-LIOVX5TJ.js} +7 -11
- package/dist/chunk-LIOVX5TJ.js.map +1 -0
- package/dist/{chunk-QWGU66MP.js → chunk-LNSVGRHO.js} +5 -7
- package/dist/chunk-LNSVGRHO.js.map +1 -0
- package/dist/{chunk-MDWKM2XC.js → chunk-M5B2W6YY.js} +3 -3
- package/dist/{chunk-F2TDU7MQ.js → chunk-MBMTND6D.js} +2 -2
- package/dist/{chunk-K6W7BVZ6.js → chunk-MILI22XQ.js} +3 -3
- package/dist/{chunk-YNIUIERI.js → chunk-MXKI4ABF.js} +18 -59
- package/dist/chunk-MXKI4ABF.js.map +1 -0
- package/dist/{chunk-T2LBQ5DV.js → chunk-MXOQ5JCG.js} +252 -214
- package/dist/chunk-MXOQ5JCG.js.map +1 -0
- package/dist/{chunk-ZXABPVM6.js → chunk-N7EVQD5S.js} +9 -13
- package/dist/chunk-N7EVQD5S.js.map +1 -0
- package/dist/{chunk-CF5UU4S7.js → chunk-N7UDP5VU.js} +7 -7
- package/dist/{chunk-FQ54DWUQ.js → chunk-NBQ3KK6X.js} +4 -4
- package/dist/{chunk-4I522ERM.js → chunk-NCO25JZO.js} +4 -4
- package/dist/chunk-NH2UOV3B.js +18 -0
- package/dist/chunk-NH2UOV3B.js.map +1 -0
- package/dist/{chunk-SI3V7D4G.js → chunk-O2IMQSNA.js} +2 -2
- package/dist/{chunk-T52GX4SA.js → chunk-O46CHQT7.js} +4 -4
- package/dist/chunk-OIEO4WDL.js +27 -0
- package/dist/chunk-OIEO4WDL.js.map +1 -0
- package/dist/{chunk-GHLTDZRS.js → chunk-OKSTSITU.js} +25 -4
- package/dist/chunk-OKSTSITU.js.map +1 -0
- package/dist/{chunk-TOPYQ6GA.js → chunk-OYW3I5M4.js} +6 -6
- package/dist/{chunk-X4773RBR.js → chunk-PD64727P.js} +2 -2
- package/dist/chunk-PD64727P.js.map +1 -0
- package/dist/{chunk-BP6DARYA.js → chunk-PP3K67AJ.js} +4 -4
- package/dist/chunk-PP3K67AJ.js.map +1 -0
- package/dist/chunk-Q2XRFWOI.js +40 -0
- package/dist/chunk-Q2XRFWOI.js.map +1 -0
- package/dist/{chunk-AOWGXU6D.js → chunk-Q4UHJ5SN.js} +2 -2
- package/dist/{chunk-FW22ZCXT.js → chunk-QBLT6POL.js} +2 -2
- package/dist/chunk-QMWY2FDS.js +157 -0
- package/dist/chunk-QMWY2FDS.js.map +1 -0
- package/dist/{chunk-I3JDRCMW.js → chunk-RB4DOPGZ.js} +10 -10
- package/dist/{chunk-32YV3TJT.js → chunk-SMV2HRDU.js} +2 -2
- package/dist/{chunk-ODVPTDPK.js → chunk-SV2PM2OY.js} +1 -1
- package/dist/chunk-SV2PM2OY.js.map +1 -0
- package/dist/{chunk-Z5HTYMMQ.js → chunk-SYNY3VB5.js} +2 -2
- package/dist/{chunk-SYVZW77S.js → chunk-TEHHROZL.js} +6 -8
- package/dist/chunk-TEHHROZL.js.map +1 -0
- package/dist/{chunk-ZSX4S5XB.js → chunk-TKVUE4JF.js} +9 -9
- package/dist/{chunk-B57AFBY2.js → chunk-TZZBXPZK.js} +2 -2
- package/dist/{chunk-VNPEWFPD.js → chunk-U2FZNEWJ.js} +4 -4
- package/dist/chunk-U2FZNEWJ.js.map +1 -0
- package/dist/{chunk-5FDLC6G7.js → chunk-UA372JHH.js} +3 -3
- package/dist/{chunk-PDCG6PR5.js → chunk-UEFOQH74.js} +2 -2
- package/dist/chunk-UEFOQH74.js.map +1 -0
- package/dist/{chunk-HVSCEIYL.js → chunk-UIYESRD6.js} +9 -11
- package/dist/chunk-UIYESRD6.js.map +1 -0
- package/dist/{chunk-B6SJIBQK.js → chunk-V3RWOOSO.js} +4 -4
- package/dist/{chunk-HBRLNOHL.js → chunk-V7ADQF5O.js} +4 -4
- package/dist/{chunk-L7DOS3TE.js → chunk-VAORSCSU.js} +3 -3
- package/dist/chunk-VAORSCSU.js.map +1 -0
- package/dist/{chunk-M522UYZ2.js → chunk-VFHCKG5M.js} +6 -10
- package/dist/chunk-VFHCKG5M.js.map +1 -0
- package/dist/{chunk-DC5QVPV7.js → chunk-VHBKYN2J.js} +3 -3
- package/dist/chunk-VHBKYN2J.js.map +1 -0
- package/dist/{chunk-WX5ADGTZ.js → chunk-VKI2EB3N.js} +3 -3
- package/dist/chunk-VKI2EB3N.js.map +1 -0
- package/dist/{chunk-MTL7MXGR.js → chunk-VMV5SBE4.js} +16 -17
- package/dist/chunk-VMV5SBE4.js.map +1 -0
- package/dist/{chunk-F7XGHL5O.js → chunk-VQDZYB2B.js} +3 -3
- package/dist/{chunk-BK2HHQGN.js → chunk-VVOLDVIR.js} +2 -2
- package/dist/{chunk-6LMQ5R26.js → chunk-WPOYWFSE.js} +7 -7
- package/dist/{chunk-6LMQ5R26.js.map → chunk-WPOYWFSE.js.map} +1 -1
- package/dist/{chunk-3F7GLNAE.js → chunk-WXE4W2U6.js} +7 -11
- package/dist/chunk-WXE4W2U6.js.map +1 -0
- package/dist/{chunk-6K7DPM7D.js → chunk-XQRFSKYM.js} +2 -2
- package/dist/{chunk-M7NI3IWE.js → chunk-XSPFDUDG.js} +22 -50
- package/dist/chunk-XSPFDUDG.js.map +1 -0
- package/dist/{chunk-ID6Z6E66.js → chunk-Y2RKVFKR.js} +2 -2
- package/dist/{chunk-6LNL42F5.js → chunk-Y3LPTBG7.js} +12 -12
- package/dist/chunk-Y3LPTBG7.js.map +1 -0
- package/dist/{chunk-FN5EBVTQ.js → chunk-YRXFFWG4.js} +2 -2
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-W3USLL5M.js → classified-marker-SIYKUU5L.js} +3 -3
- package/dist/classified-marker-SIYKUU5L.js.map +1 -0
- package/dist/collection-facade-CS7CA2XO.js +47 -0
- package/dist/{computed-TPFBX7U4.js → computed-FAD7SED4.js} +3 -3
- package/dist/consent/index.js +10 -11
- package/dist/consent/index.js.map +1 -1
- package/dist/cover/index.js +9 -10
- package/dist/custody/index.js +12 -13
- package/dist/{dead-filter-U2UYKSZL.js → dead-filter-4F3LWYKH.js} +11 -3
- package/dist/dead-filter-4F3LWYKH.js.map +1 -0
- package/dist/debug/index.js +11 -2
- package/dist/debug/index.js.map +1 -1
- package/dist/{delegation-S3AEPW2T.js → delegation-NANZDG4N.js} +13 -16
- package/dist/delegation-NANZDG4N.js.map +1 -0
- package/dist/derivations/index.js +23 -24
- package/dist/derive-XLOJVXPU.js +20 -0
- package/dist/directory/index.js +10 -11
- package/dist/{dispatch-3CQDJV5Q.js → dispatch-H4HV32AM.js} +5 -5
- package/dist/{dispatch-RH4LHKBH.js → dispatch-JDZNGEB3.js} +21 -22
- package/dist/dispatch-JDZNGEB3.js.map +1 -0
- package/dist/executor-FMPVN6DT.js +35 -0
- package/dist/executor-LBBBRTN5.js +8 -0
- package/dist/executor-OSRZST2U.js +8 -0
- package/dist/export-accessible-RAOJAAU5.js +22 -0
- package/dist/extract-partition-JD5CUSTG.js +37 -0
- package/dist/{fanout-sidecar-OT6RYLOL.js → fanout-sidecar-L7NHPIOC.js} +13 -15
- package/dist/fanout-sidecar-L7NHPIOC.js.map +1 -0
- package/dist/find-JRN4RNQ5.js +10 -0
- package/dist/forget/index.js +9 -10
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +4 -4
- package/dist/history/index.js +13 -14
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +14 -15
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +183 -184
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +5 -5
- package/dist/introspection/index.js +11 -12
- package/dist/issue-YIVBZUTH.js +19 -0
- package/dist/kernel/attestation-types.d.ts +62 -0
- package/dist/kernel/collection-config.d.ts +1 -48
- package/dist/kernel/collection.d.ts +1 -1
- package/dist/kernel/cutover-transform.d.ts +1 -1
- package/dist/kernel/errors.d.ts +30 -2
- package/dist/kernel/merge-authority.d.ts +1 -1
- package/dist/kernel/paths.d.ts +29 -5
- package/dist/kernel/prepared-write.d.ts +1 -1
- package/dist/kernel/secret-mode.d.ts +1 -1
- package/dist/kernel/types.d.ts +42 -5
- package/dist/kernel/vault.d.ts +2 -2
- package/dist/kernel/write-queue.d.ts +17 -0
- package/dist/{ledger-KZPCMVZY.js → ledger-5ZMGE44K.js} +11 -12
- package/dist/liberate-WZSZM2W6.js +24 -0
- package/dist/link-set-MFXC24VK.js +29 -0
- package/dist/{managed-secret-S3MQ6SH6.js → managed-secret-MFTFT22X.js} +10 -11
- package/dist/materialized-views/index.js +26 -27
- package/dist/{migrate-cek-V7GKJZ7O.js → migrate-cek-DZRFFOHW.js} +2 -2
- package/dist/money/index.js +5 -5
- package/dist/noydb-ITIGNKUF.js +96 -0
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -13
- package/dist/pod/index.js +72 -72
- package/dist/{pod-handle-WGDFB4C2.js → pod-handle-A3LET7NO.js} +10 -11
- package/dist/pod-handle-A3LET7NO.js.map +1 -0
- package/dist/policy/index.js +10 -11
- package/dist/port/on/index.d.ts +1 -1
- package/dist/port/to/index.d.ts +1 -1
- package/dist/port/with/blob-strategy.d.ts +1 -1
- package/dist/port/with/classified-strategy.d.ts +1 -1
- package/dist/port/with/collection-options.d.ts +1 -1
- package/dist/port/with/collection-registries.d.ts +1 -1
- package/dist/port/with/lookup-strategy.d.ts +2 -2
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-SLSXIPBV.js → post-register-7ND27CF2.js} +6 -6
- package/dist/post-register-7ND27CF2.js.map +1 -0
- package/dist/query/all/index.js +15 -15
- package/dist/query/index.js +7 -7
- package/dist/query/live/index.js +7 -7
- package/dist/query/reduce/index.js +10 -10
- package/dist/query/relate/index.js +9 -9
- package/dist/reduce/index.js +8 -8
- package/dist/register-DT5HZ2LZ.js +30 -0
- package/dist/registry-BHRZGZHF.js +8 -0
- package/dist/registry-ET6ZFFWA.js +34 -0
- package/dist/registry-HXFGLGTG.js +8 -0
- package/dist/registry-THCPDEOD.js +23 -0
- package/dist/request-withdrawal-AV2MJJKY.js +30 -0
- package/dist/{reveal-4BCKPEC2.js → reveal-B2TLP4JQ.js} +10 -9
- package/dist/reveal-B2TLP4JQ.js.map +1 -0
- package/dist/revoke-6DWIEOCV.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/schema-update/index.js +2 -2
- package/dist/sealed-record/index.js +16 -18
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/search/index.js +4 -4
- package/dist/{seed-4JS2RJ4A.js → seed-XNSE4U3S.js} +15 -18
- package/dist/seed-XNSE4U3S.js.map +1 -0
- package/dist/sequence/index.js +9 -10
- package/dist/session/index.js +9 -10
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.js +2 -2
- package/dist/signer-MHGW3OIL.js +23 -0
- package/dist/snapshots/index.js +11 -11
- package/dist/stale-6GCFMOOR.js +28 -0
- package/dist/storage-BYN5LO6Z.js +21 -0
- package/dist/store/index.js +1 -1
- package/dist/{store-coordination-provider-2O2VUHKW.js → store-coordination-provider-C4BPT5XF.js} +11 -12
- package/dist/store-coordination-provider-C4BPT5XF.js.map +1 -0
- package/dist/sync/index.js +10 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.js +15 -16
- package/dist/tiers/index.js +11 -12
- package/dist/to/index.js +2 -2
- package/dist/transactions/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/vault-head/index.js +11 -14
- package/dist/vault-head/index.js.map +1 -1
- package/dist/{verify-RVT67IMH.js → verify-UKALW7C2.js} +14 -12
- package/dist/verify-UKALW7C2.js.map +1 -0
- package/dist/via/classified/binding.d.ts +2 -2
- package/dist/via/classified/config-drift.d.ts +2 -2
- package/dist/via/classified/errors.d.ts +1 -1
- package/dist/via/lookup/handle.d.ts +4 -4
- package/dist/walk-4VPK7AS4.js +20 -0
- package/dist/with-audit/attestation/index.d.ts +2 -1
- package/dist/with-audit/attestation/issue.d.ts +2 -2
- package/dist/with-audit/attestation/revoke.d.ts +2 -2
- package/dist/with-audit/attestation/scheme.d.ts +7 -0
- package/dist/with-audit/attestation/signer.d.ts +1 -1
- package/dist/with-audit/attestation/strategy.d.ts +2 -2
- package/dist/with-audit/attestation/types.d.ts +10 -0
- package/dist/with-audit/attestation/vault-facade.d.ts +2 -2
- package/dist/with-audit/attestation/verifier.d.ts +6 -0
- package/dist/with-audit/consent/consent.d.ts +1 -1
- package/dist/with-audit/consent/strategy.d.ts +1 -1
- package/dist/with-audit/forget/subject-index.d.ts +1 -1
- package/dist/with-audit/periods/vault-facade.d.ts +1 -1
- package/dist/with-audit/sealed-record/index.d.ts +2 -2
- package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
- package/dist/with-audit/tiers/index.d.ts +2 -2
- package/dist/with-cargo/adopt-partition.d.ts +1 -1
- package/dist/with-cargo/extract-partition.d.ts +1 -1
- package/dist/with-cargo/floor.d.ts +1 -1
- package/dist/with-commit/history/history.d.ts +2 -2
- package/dist/with-commit/history/index.d.ts +1 -1
- package/dist/with-commit/history/ledger/store.d.ts +1 -1
- package/dist/with-commit/history/strategy.d.ts +1 -1
- package/dist/with-commit/history/time-machine.d.ts +1 -1
- package/dist/with-commit/numbering/index.d.ts +1 -1
- package/dist/with-commit/sequence/index.d.ts +1 -1
- package/dist/with-commit/vault-head/head.d.ts +1 -1
- package/dist/with-commit/vault-head/index.d.ts +1 -1
- package/dist/with-commit/vault-head/strategy.d.ts +1 -1
- package/dist/with-commit/vault-head/verify.d.ts +1 -1
- package/dist/with-formula/derivations/dispatch.d.ts +1 -1
- package/dist/with-formula/derivations/fanout-sidecar.d.ts +1 -1
- package/dist/with-lookup/indexing/collection-facade.d.ts +1 -1
- package/dist/with-lookup/search/collection-facade.d.ts +1 -1
- package/dist/with-party/broker/index.d.ts +3 -3
- package/dist/with-party/directory/user-envelope/storage.d.ts +1 -1
- package/dist/with-party/team/delegation.d.ts +1 -1
- package/dist/with-party/team/echo-secret.d.ts +2 -2
- package/dist/with-party/team/index.d.ts +1 -1
- package/dist/with-party/team/keyring.d.ts +1 -1
- package/dist/with-party/team/magic-link-grant.d.ts +1 -1
- package/dist/with-party/team/recovery.d.ts +1 -1
- package/dist/with-party/team/roster-tag.d.ts +1 -1
- package/dist/with-party/team/rotate-recover.d.ts +1 -1
- package/dist/with-party/team/wrapped-deks.d.ts +1 -1
- package/dist/with-pod/index.d.ts +1 -1
- package/dist/with-shape/blobs/blob-compaction.d.ts +1 -1
- package/dist/with-shape/blobs/blob-intent.d.ts +1 -1
- package/dist/with-shape/blobs/blob-set.d.ts +2 -2
- package/dist/with-shape/blobs/legacy-sweep.d.ts +1 -1
- package/dist/with-shape/introspection/describe.d.ts +1 -1
- package/dist/with-shape/introspection/walk.d.ts +1 -1
- package/dist/with-shape/links/lazy-handle.d.ts +1 -1
- package/dist/with-shape/links/link-set.d.ts +1 -1
- package/dist/with-shape/manifest/derive.d.ts +1 -1
- package/dist/with-shape/manifest/storage.d.ts +1 -1
- package/dist/with-shape/persisted-schemas/register.d.ts +1 -1
- package/dist/with-shape/persisted-schemas/storage.d.ts +1 -1
- package/dist/with-shape/satellites/dead-filter.d.ts +1 -1
- package/dist/with-shape/satellites/declare.d.ts +1 -1
- package/dist/with-shape/satellites/marker.d.ts +1 -1
- package/dist/with-shape/satellites/post-register.d.ts +1 -1
- package/dist/with-sync/presence.d.ts +5 -10
- package/dist/withdraw-accessible-HL7GACUE.js +27 -0
- package/dist/withdraw-accessible-HL7GACUE.js.map +1 -0
- package/package.json +14 -5
- package/dist/api-GVYEKSJE.js +0 -19
- package/dist/backup-7TFRVFLH.js.map +0 -1
- package/dist/chunk-244VXYPG.js.map +0 -1
- package/dist/chunk-3ELRMVJK.js.map +0 -1
- package/dist/chunk-3F7GLNAE.js.map +0 -1
- package/dist/chunk-3H5KLDZN.js.map +0 -1
- package/dist/chunk-6B3VNR4P.js.map +0 -1
- package/dist/chunk-6LNL42F5.js.map +0 -1
- package/dist/chunk-6QSQQLSE.js +0 -95
- package/dist/chunk-6QSQQLSE.js.map +0 -1
- package/dist/chunk-7VCXZDA4.js.map +0 -1
- package/dist/chunk-ANWPSTZU.js.map +0 -1
- package/dist/chunk-BP6DARYA.js.map +0 -1
- package/dist/chunk-CKNGS5MH.js.map +0 -1
- package/dist/chunk-DC5QVPV7.js.map +0 -1
- package/dist/chunk-DE4DH2RZ.js +0 -29
- package/dist/chunk-DE4DH2RZ.js.map +0 -1
- package/dist/chunk-DF73H4UN.js.map +0 -1
- package/dist/chunk-EIPVYUEP.js.map +0 -1
- package/dist/chunk-ENAG3IY7.js.map +0 -1
- package/dist/chunk-FCKWQE2H.js.map +0 -1
- package/dist/chunk-FQ5VRHIB.js.map +0 -1
- package/dist/chunk-GF5BZ7D4.js.map +0 -1
- package/dist/chunk-GHLTDZRS.js.map +0 -1
- package/dist/chunk-GYGLAVCX.js.map +0 -1
- package/dist/chunk-HBPPGWUM.js.map +0 -1
- package/dist/chunk-HK67PX4J.js.map +0 -1
- package/dist/chunk-HVSCEIYL.js.map +0 -1
- package/dist/chunk-ISZQJBML.js.map +0 -1
- package/dist/chunk-KJFW62P4.js.map +0 -1
- package/dist/chunk-L7DOS3TE.js.map +0 -1
- package/dist/chunk-LGRLME4M.js.map +0 -1
- package/dist/chunk-LP7BEXCT.js +0 -32
- package/dist/chunk-LP7BEXCT.js.map +0 -1
- package/dist/chunk-LQ4ZHOKP.js.map +0 -1
- package/dist/chunk-M522UYZ2.js.map +0 -1
- package/dist/chunk-M7NI3IWE.js.map +0 -1
- package/dist/chunk-MTL7MXGR.js.map +0 -1
- package/dist/chunk-N5DNADLQ.js.map +0 -1
- package/dist/chunk-NNARWO72.js.map +0 -1
- package/dist/chunk-NRT6QZQB.js.map +0 -1
- package/dist/chunk-NWHBJQAL.js.map +0 -1
- package/dist/chunk-ODVPTDPK.js.map +0 -1
- package/dist/chunk-PDCG6PR5.js.map +0 -1
- package/dist/chunk-PEOZ34EM.js.map +0 -1
- package/dist/chunk-PSIV7CJV.js.map +0 -1
- package/dist/chunk-QOOUUR4A.js.map +0 -1
- package/dist/chunk-QWFHIOD2.js.map +0 -1
- package/dist/chunk-QWGU66MP.js.map +0 -1
- package/dist/chunk-S57HTZ6X.js.map +0 -1
- package/dist/chunk-SEE332EV.js +0 -66
- package/dist/chunk-SEE332EV.js.map +0 -1
- package/dist/chunk-SYVZW77S.js.map +0 -1
- package/dist/chunk-T2LBQ5DV.js.map +0 -1
- package/dist/chunk-UD5EVGZ7.js.map +0 -1
- package/dist/chunk-UPD5NWI5.js.map +0 -1
- package/dist/chunk-UYB234ZR.js +0 -479
- package/dist/chunk-UYB234ZR.js.map +0 -1
- package/dist/chunk-VNPEWFPD.js.map +0 -1
- package/dist/chunk-WX5ADGTZ.js.map +0 -1
- package/dist/chunk-X4773RBR.js.map +0 -1
- package/dist/chunk-YNIUIERI.js.map +0 -1
- package/dist/chunk-ZE4CHIED.js.map +0 -1
- package/dist/chunk-ZXABPVM6.js.map +0 -1
- package/dist/classified-marker-W3USLL5M.js.map +0 -1
- package/dist/collection-facade-QU6IJBN3.js +0 -48
- package/dist/dead-filter-U2UYKSZL.js.map +0 -1
- package/dist/delegation-S3AEPW2T.js.map +0 -1
- package/dist/derive-OX7F6TGG.js +0 -21
- package/dist/dispatch-RH4LHKBH.js.map +0 -1
- package/dist/executor-B6SRO2QS.js +0 -36
- package/dist/executor-BI5CHWRY.js +0 -8
- package/dist/executor-RBKM5W5K.js +0 -8
- package/dist/export-accessible-VMA3YM5V.js +0 -22
- package/dist/extract-partition-NF7PXGPP.js +0 -37
- package/dist/fanout-sidecar-OT6RYLOL.js.map +0 -1
- package/dist/find-LZMP26KF.js +0 -10
- package/dist/issue-IHARXWW5.js +0 -18
- package/dist/kernel/enclave/classify/compare.d.ts +0 -10
- package/dist/kernel/enclave/index.d.ts +0 -87
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +0 -124
- package/dist/kernel/enclave/record-keys/rekey-blob.d.ts +0 -88
- package/dist/kernel/enclave/record-keys/rekey.d.ts +0 -91
- package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +0 -14
- package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +0 -123
- package/dist/kernel/enclave/record-keys/sealing.d.ts +0 -70
- package/dist/liberate-GRLCZMW4.js +0 -24
- package/dist/link-set-JCMJ7ULP.js +0 -30
- package/dist/noydb-SWQJ3MZS.js +0 -97
- package/dist/pod-handle-WGDFB4C2.js.map +0 -1
- package/dist/post-register-SLSXIPBV.js.map +0 -1
- package/dist/register-F3OYE7MJ.js +0 -31
- package/dist/registry-CILQFXFK.js +0 -8
- package/dist/registry-XNNYQVKV.js +0 -8
- package/dist/registry-YCDZV3VW.js +0 -35
- package/dist/registry-ZGYS33TE.js +0 -24
- package/dist/request-withdrawal-Z5NC6TXT.js +0 -30
- package/dist/reveal-4BCKPEC2.js.map +0 -1
- package/dist/revoke-ZL62WC2D.js +0 -23
- package/dist/seed-4JS2RJ4A.js.map +0 -1
- package/dist/signer-MBZZMXTC.js +0 -24
- package/dist/stale-TJ3DYZMQ.js +0 -29
- package/dist/storage-SVMKRGCW.js +0 -22
- package/dist/store-coordination-provider-2O2VUHKW.js.map +0 -1
- package/dist/verify-RVT67IMH.js.map +0 -1
- package/dist/walk-HJ42EISE.js +0 -21
- package/dist/withdraw-accessible-5NZUPAVA.js +0 -27
- /package/dist/{api-GVYEKSJE.js.map → api-OS747DS4.js.map} +0 -0
- /package/dist/{computed-TPFBX7U4.js.map → capsule/contract.js.map} +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/broker/proof.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/bidx.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/digest.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/vdig.d.ts +0 -0
- /package/dist/{kernel/enclave/classify → capsule/plumbing}/kofn.d.ts +0 -0
- /package/dist/{kernel/enclave/classify → capsule/plumbing}/normalize.d.ts +0 -0
- /package/dist/{kernel/enclave → capsule/plumbing}/record-aad.d.ts +0 -0
- /package/dist/{collection-facade-QU6IJBN3.js.map → capsule-VOLX3QRQ.js.map} +0 -0
- /package/dist/{chunk-YSK2CU2Q.js.map → chunk-2AFX33YA.js.map} +0 -0
- /package/dist/{chunk-TKUOEU2F.js.map → chunk-2GHDLTPE.js.map} +0 -0
- /package/dist/{chunk-6OWXYZK2.js.map → chunk-2ODVB6LZ.js.map} +0 -0
- /package/dist/{chunk-X25NWUZB.js.map → chunk-2PVXF5CS.js.map} +0 -0
- /package/dist/{chunk-ORDURZBU.js.map → chunk-3EWS67C7.js.map} +0 -0
- /package/dist/{chunk-FXQBGFOX.js.map → chunk-4CIQDWRB.js.map} +0 -0
- /package/dist/{chunk-HT2AHGQI.js.map → chunk-4JPMZTJY.js.map} +0 -0
- /package/dist/{chunk-MKXXMNJH.js.map → chunk-4V3Q35WG.js.map} +0 -0
- /package/dist/{chunk-A6IJU4TK.js.map → chunk-52MGURXO.js.map} +0 -0
- /package/dist/{chunk-HLEK5VAN.js.map → chunk-5WWDGFOS.js.map} +0 -0
- /package/dist/{chunk-SOIQ4MM4.js.map → chunk-7XMHMVTS.js.map} +0 -0
- /package/dist/{chunk-4MXI3ODD.js.map → chunk-AEQGFRU4.js.map} +0 -0
- /package/dist/{chunk-7JE7BDYJ.js.map → chunk-AL6ML4LA.js.map} +0 -0
- /package/dist/{chunk-ZUVBC32X.js.map → chunk-AUKKUPVB.js.map} +0 -0
- /package/dist/{chunk-WY2XXTET.js.map → chunk-BPWYQ25R.js.map} +0 -0
- /package/dist/{chunk-EOVMT6TB.js.map → chunk-BVCUTXE3.js.map} +0 -0
- /package/dist/{chunk-3JWHAR6E.js.map → chunk-DIZLQVAA.js.map} +0 -0
- /package/dist/{chunk-IT22PWKV.js.map → chunk-E2N2T5ZO.js.map} +0 -0
- /package/dist/{chunk-WNJ4AVGE.js.map → chunk-EJLV62NI.js.map} +0 -0
- /package/dist/{chunk-QBBUZ3I3.js.map → chunk-EYG2CY2X.js.map} +0 -0
- /package/dist/{chunk-BJ2IXQ5Q.js.map → chunk-FFJFE4T7.js.map} +0 -0
- /package/dist/{chunk-JCN44NCY.js.map → chunk-FLPCETP6.js.map} +0 -0
- /package/dist/{chunk-5O7D6ZTW.js.map → chunk-FOEDQATO.js.map} +0 -0
- /package/dist/{chunk-VNNRUGMM.js.map → chunk-FVH5QYY2.js.map} +0 -0
- /package/dist/{chunk-4AF3TUMP.js.map → chunk-GZT3NQRA.js.map} +0 -0
- /package/dist/{chunk-MVZ2TPVP.js.map → chunk-H427H63K.js.map} +0 -0
- /package/dist/{chunk-MLPHLJIQ.js.map → chunk-HS554XAF.js.map} +0 -0
- /package/dist/{chunk-TROR3ALR.js.map → chunk-JOSPH3E5.js.map} +0 -0
- /package/dist/{chunk-F24ZZTHQ.js.map → chunk-JQYKPKG6.js.map} +0 -0
- /package/dist/{chunk-MDWKM2XC.js.map → chunk-M5B2W6YY.js.map} +0 -0
- /package/dist/{chunk-F2TDU7MQ.js.map → chunk-MBMTND6D.js.map} +0 -0
- /package/dist/{chunk-K6W7BVZ6.js.map → chunk-MILI22XQ.js.map} +0 -0
- /package/dist/{chunk-CF5UU4S7.js.map → chunk-N7UDP5VU.js.map} +0 -0
- /package/dist/{chunk-FQ54DWUQ.js.map → chunk-NBQ3KK6X.js.map} +0 -0
- /package/dist/{chunk-4I522ERM.js.map → chunk-NCO25JZO.js.map} +0 -0
- /package/dist/{chunk-SI3V7D4G.js.map → chunk-O2IMQSNA.js.map} +0 -0
- /package/dist/{chunk-T52GX4SA.js.map → chunk-O46CHQT7.js.map} +0 -0
- /package/dist/{chunk-TOPYQ6GA.js.map → chunk-OYW3I5M4.js.map} +0 -0
- /package/dist/{chunk-AOWGXU6D.js.map → chunk-Q4UHJ5SN.js.map} +0 -0
- /package/dist/{chunk-FW22ZCXT.js.map → chunk-QBLT6POL.js.map} +0 -0
- /package/dist/{chunk-I3JDRCMW.js.map → chunk-RB4DOPGZ.js.map} +0 -0
- /package/dist/{chunk-32YV3TJT.js.map → chunk-SMV2HRDU.js.map} +0 -0
- /package/dist/{chunk-Z5HTYMMQ.js.map → chunk-SYNY3VB5.js.map} +0 -0
- /package/dist/{chunk-ZSX4S5XB.js.map → chunk-TKVUE4JF.js.map} +0 -0
- /package/dist/{chunk-B57AFBY2.js.map → chunk-TZZBXPZK.js.map} +0 -0
- /package/dist/{chunk-5FDLC6G7.js.map → chunk-UA372JHH.js.map} +0 -0
- /package/dist/{chunk-B6SJIBQK.js.map → chunk-V3RWOOSO.js.map} +0 -0
- /package/dist/{chunk-HBRLNOHL.js.map → chunk-V7ADQF5O.js.map} +0 -0
- /package/dist/{chunk-F7XGHL5O.js.map → chunk-VQDZYB2B.js.map} +0 -0
- /package/dist/{chunk-BK2HHQGN.js.map → chunk-VVOLDVIR.js.map} +0 -0
- /package/dist/{chunk-6K7DPM7D.js.map → chunk-XQRFSKYM.js.map} +0 -0
- /package/dist/{chunk-ID6Z6E66.js.map → chunk-Y2RKVFKR.js.map} +0 -0
- /package/dist/{chunk-FN5EBVTQ.js.map → chunk-YRXFFWG4.js.map} +0 -0
- /package/dist/{derive-OX7F6TGG.js.map → collection-facade-CS7CA2XO.js.map} +0 -0
- /package/dist/{enclave-27SMF6GF.js.map → computed-FAD7SED4.js.map} +0 -0
- /package/dist/{executor-B6SRO2QS.js.map → derive-XLOJVXPU.js.map} +0 -0
- /package/dist/{dispatch-3CQDJV5Q.js.map → dispatch-H4HV32AM.js.map} +0 -0
- /package/dist/{executor-BI5CHWRY.js.map → executor-FMPVN6DT.js.map} +0 -0
- /package/dist/{executor-RBKM5W5K.js.map → executor-LBBBRTN5.js.map} +0 -0
- /package/dist/{export-accessible-VMA3YM5V.js.map → executor-OSRZST2U.js.map} +0 -0
- /package/dist/{extract-partition-NF7PXGPP.js.map → export-accessible-RAOJAAU5.js.map} +0 -0
- /package/dist/{find-LZMP26KF.js.map → extract-partition-JD5CUSTG.js.map} +0 -0
- /package/dist/{issue-IHARXWW5.js.map → find-JRN4RNQ5.js.map} +0 -0
- /package/dist/{ledger-KZPCMVZY.js.map → issue-YIVBZUTH.js.map} +0 -0
- /package/dist/{liberate-GRLCZMW4.js.map → ledger-5ZMGE44K.js.map} +0 -0
- /package/dist/{link-set-JCMJ7ULP.js.map → liberate-WZSZM2W6.js.map} +0 -0
- /package/dist/{managed-secret-S3MQ6SH6.js.map → link-set-MFXC24VK.js.map} +0 -0
- /package/dist/{noydb-SWQJ3MZS.js.map → managed-secret-MFTFT22X.js.map} +0 -0
- /package/dist/{migrate-cek-V7GKJZ7O.js.map → migrate-cek-DZRFFOHW.js.map} +0 -0
- /package/dist/{register-F3OYE7MJ.js.map → noydb-ITIGNKUF.js.map} +0 -0
- /package/dist/{registry-CILQFXFK.js.map → register-DT5HZ2LZ.js.map} +0 -0
- /package/dist/{registry-XNNYQVKV.js.map → registry-BHRZGZHF.js.map} +0 -0
- /package/dist/{registry-YCDZV3VW.js.map → registry-ET6ZFFWA.js.map} +0 -0
- /package/dist/{registry-ZGYS33TE.js.map → registry-HXFGLGTG.js.map} +0 -0
- /package/dist/{request-withdrawal-Z5NC6TXT.js.map → registry-THCPDEOD.js.map} +0 -0
- /package/dist/{revoke-ZL62WC2D.js.map → request-withdrawal-AV2MJJKY.js.map} +0 -0
- /package/dist/{signer-MBZZMXTC.js.map → revoke-6DWIEOCV.js.map} +0 -0
- /package/dist/{stale-TJ3DYZMQ.js.map → signer-MHGW3OIL.js.map} +0 -0
- /package/dist/{storage-SVMKRGCW.js.map → stale-6GCFMOOR.js.map} +0 -0
- /package/dist/{walk-HJ42EISE.js.map → storage-BYN5LO6Z.js.map} +0 -0
- /package/dist/{withdraw-accessible-5NZUPAVA.js.map → walk-4VPK7AS4.js.map} +0 -0
|
@@ -16,24 +16,33 @@
|
|
|
16
16
|
*
|
|
17
17
|
* Internal service — not exported as a `@noy-db/hub/*` subpath.
|
|
18
18
|
*/
|
|
19
|
-
import { type
|
|
20
|
-
import { type
|
|
21
|
-
import { type
|
|
22
|
-
import {
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
25
|
-
import type { ViaPipeline } from '../../via/pipeline.js';
|
|
19
|
+
import { type EncryptedEnvelope, type CrdtMode, type CrdtStrategy, type VdigFieldPolicy, type SealedHandle } from '../../kernel/types.js';
|
|
20
|
+
import { type RecordIdentity, type RecordRef } from './record-aad.js';
|
|
21
|
+
import { type StandardSchemaV1 } from '../../kernel/schema.js';
|
|
22
|
+
import type { Lru } from '../../kernel/cache/index.js';
|
|
23
|
+
import type { ViaCryptoCtx } from '../../kernel/via/index.js';
|
|
24
|
+
import type { ViaPipeline } from '../../kernel/via/pipeline.js';
|
|
26
25
|
/**
|
|
27
|
-
* One classified per-slot verdict from {@link
|
|
26
|
+
* One classified per-slot verdict from {@link RecordCodecBase.classifySealedShred}.
|
|
28
27
|
* `shreddable` — CEK-only, tombstone makes it undecryptable. `dekResidue` —
|
|
29
28
|
* collection-DEK-keyed, survives in synced/backup copies. The third class is
|
|
30
29
|
* BOTH: a `_bidx` blind-index tag is live-dropped by the tombstone yet retained
|
|
31
30
|
* under the surviving DEK in any pre-forget backup (honest dual accounting).
|
|
32
31
|
*/
|
|
32
|
+
import type { CapsuleKey, CapsulePrimitives } from '../contract.js';
|
|
33
|
+
import type { makeSealedSlots } from './sealed-slots.js';
|
|
33
34
|
export type SealedShredSlot = {
|
|
34
35
|
readonly field: string;
|
|
35
36
|
readonly class: 'shreddable' | 'dekResidue' | 'live-shreddable+dekResidue-in-backups';
|
|
36
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The record codec, bound to a capsule.
|
|
40
|
+
*
|
|
41
|
+
* ⚠️ `RecordCodec` is a CLASS declared inside this factory, so the NAME is no
|
|
42
|
+
* longer a module-level type. Hub names it in ~40 places as a type, which is
|
|
43
|
+
* why `plumbing/index.ts` re-exports an `InstanceType<…>` alias under the same
|
|
44
|
+
* name — the type keeps working unchanged for every existing consumer.
|
|
45
|
+
*/
|
|
37
46
|
/** Everything the moving crypto methods touched on `this.*`, as a flat context. */
|
|
38
47
|
export interface RecordCodecContext<T> {
|
|
39
48
|
/** Collection name — the crypto AAD scope and schema-error context. */
|
|
@@ -75,13 +84,13 @@ export interface RecordCodecContext<T> {
|
|
|
75
84
|
* `_dict_status` collection) so a binding's at-rest hook can address a
|
|
76
85
|
* different collection's DEK without ever holding the resolver itself.
|
|
77
86
|
*/
|
|
78
|
-
getDEK(collection?: string): Promise<
|
|
87
|
+
getDEK(collection?: string): Promise<CapsuleKey>;
|
|
79
88
|
/**
|
|
80
89
|
* The collection's per-record CEK cache (SHARED reference, not a copy).
|
|
81
90
|
* Ownership/lifetime stays on Collection; codec reads+writes it in
|
|
82
91
|
* resolveEnvelopeCek exactly as the inline code did. `null` → no caching.
|
|
83
92
|
*/
|
|
84
|
-
readonly cekCache: Lru<string,
|
|
93
|
+
readonly cekCache: Lru<string, CapsuleKey> | null;
|
|
85
94
|
/**
|
|
86
95
|
* Compiled Via pipeline (money, i18n, …), or undefined for a collection
|
|
87
96
|
* with none declared. `encryptRecord`/`decryptRecord` consult
|
|
@@ -92,7 +101,7 @@ export interface RecordCodecContext<T> {
|
|
|
92
101
|
*
|
|
93
102
|
* Mutable (not `readonly`, #638 Task 3): `Collection.via` can be
|
|
94
103
|
* reassigned post-construction (the taint overlay, `via/graph-wiring.ts#
|
|
95
|
-
* applyTaintOverlay`) — `
|
|
104
|
+
* applyTaintOverlay`) — `RecordCodecBase.setVia` below keeps this in sync so
|
|
96
105
|
* at-rest hooks read the LIVE pipeline, not a stale construction-time
|
|
97
106
|
* snapshot.
|
|
98
107
|
*/
|
|
@@ -110,9 +119,27 @@ export interface RecordCodecContext<T> {
|
|
|
110
119
|
*/
|
|
111
120
|
readonly onDecrypt?: ((id: string) => void) | undefined;
|
|
112
121
|
}
|
|
113
|
-
|
|
122
|
+
/**
|
|
123
|
+
* The codec's capsule-provided surface: the 15 primitives + sealed-slot helpers
|
|
124
|
+
* its methods call.
|
|
125
|
+
*/
|
|
126
|
+
export type CapsuleBinding = CapsulePrimitives & ReturnType<typeof makeSealedSlots>;
|
|
127
|
+
/**
|
|
128
|
+
* ⚠️ MODULE-LEVEL AND GENERIC ON PURPOSE. The obvious shape — declaring the
|
|
129
|
+
* class inside `makeRecordCodec` and exporting `InstanceType<…>` — compiles and
|
|
130
|
+
* silently DROPS `T`: `RecordCodec<Invoice>` degrades to `RecordCodec<unknown>`
|
|
131
|
+
* at the six places hub parameterises it, turning typed records into `unknown`
|
|
132
|
+
* with no error anywhere.
|
|
133
|
+
*
|
|
134
|
+
* The other way to keep `T` would be a hand-written `interface RecordCodec<T>`
|
|
135
|
+
* that the class implements — i.e. a second declaration of 15 signatures that
|
|
136
|
+
* nothing checks against the first. That is exactly the drift #16 was, so it
|
|
137
|
+
* was not done twice. A base class has one declaration and cannot drift.
|
|
138
|
+
*/
|
|
139
|
+
export declare class RecordCodecBase<T> {
|
|
140
|
+
protected readonly caps: CapsuleBinding;
|
|
114
141
|
private readonly ctx;
|
|
115
|
-
constructor(ctx: RecordCodecContext<T>);
|
|
142
|
+
constructor(caps: CapsuleBinding, ctx: RecordCodecContext<T>);
|
|
116
143
|
/**
|
|
117
144
|
* @internal Update the live Via pipeline this codec's at-rest hooks read
|
|
118
145
|
* (#638 Task 3) — called by `via/graph-wiring.ts#applyTaintOverlay` right
|
|
@@ -195,7 +222,7 @@ export declare class RecordCodec<T> {
|
|
|
195
222
|
* the choice must be made before AAD is switched on, not inferred from this
|
|
196
223
|
* migration.
|
|
197
224
|
*/
|
|
198
|
-
encryptJsonString(ref: RecordRef, json: string, version: number, cek?:
|
|
225
|
+
encryptJsonString(ref: RecordRef, json: string, version: number, cek?: CapsuleKey, source?: string, sourceTs?: string): Promise<EncryptedEnvelope>;
|
|
199
226
|
/**
|
|
200
227
|
* `ref` is FIRST and required (#1051). It was previously a trailing optional
|
|
201
228
|
* `id?: string`, which TypeScript cannot promote to required because it sits
|
|
@@ -207,7 +234,7 @@ export declare class RecordCodec<T> {
|
|
|
207
234
|
* compile on the hottest write path. Carries the collection too — see
|
|
208
235
|
* {@link encryptJsonString} for why the codec must not assume its own.
|
|
209
236
|
*/
|
|
210
|
-
encryptRecord(ref: RecordRef, record: T, version: number, cek?:
|
|
237
|
+
encryptRecord(ref: RecordRef, record: T, version: number, cek?: CapsuleKey, source?: string, sourceTs?: string, vdig?: {
|
|
211
238
|
readonly id: string;
|
|
212
239
|
readonly prev: EncryptedEnvelope | null;
|
|
213
240
|
}): Promise<EncryptedEnvelope>;
|
|
@@ -219,7 +246,7 @@ export declare class RecordCodec<T> {
|
|
|
219
246
|
* ({@link decryptJsonString}) and the sealed-field path ({@link decryptRecord}
|
|
220
247
|
* / {@link toCacheRecord}) so both agree on the record's key.
|
|
221
248
|
*/
|
|
222
|
-
resolveEnvelopeCek(envelope: EncryptedEnvelope, id?: string): Promise<
|
|
249
|
+
resolveEnvelopeCek(envelope: EncryptedEnvelope, id?: string): Promise<CapsuleKey | undefined>;
|
|
223
250
|
/**
|
|
224
251
|
* Low-level: decrypt an envelope and return the raw JSON string.
|
|
225
252
|
*
|
|
@@ -262,7 +289,7 @@ export declare class RecordCodec<T> {
|
|
|
262
289
|
* {@link Sealed} handle's `reveal()` — so the on-demand reveal and the eager
|
|
263
290
|
* materialisation always agree byte-for-byte.
|
|
264
291
|
*/
|
|
265
|
-
unsealField(field: string, blob: string, cek?:
|
|
292
|
+
unsealField(field: string, blob: string, cek?: CapsuleKey): Promise<unknown>;
|
|
266
293
|
/**
|
|
267
294
|
* Build the `ViaCryptoCtx` for forget()'s per-ref via-erase fold (#629
|
|
268
295
|
* Task 10) — resolves the live envelope's CEK exactly like
|
|
@@ -291,7 +318,7 @@ export declare class RecordCodec<T> {
|
|
|
291
318
|
* may sit in the working-set cache (or be logged/serialised) without
|
|
292
319
|
* exposing the value, which decrypts only on `reveal()`.
|
|
293
320
|
*/
|
|
294
|
-
makeSealedHandle(field: string, blob: string, cek?:
|
|
321
|
+
makeSealedHandle(field: string, blob: string, cek?: CapsuleKey): SealedHandle<unknown>;
|
|
295
322
|
/**
|
|
296
323
|
* Replace every field the just-written envelope actually sealed with a
|
|
297
324
|
* {@link Sealed} handle, leaving every other field as its plaintext value.
|
|
@@ -333,7 +360,7 @@ export declare class RecordCodec<T> {
|
|
|
333
360
|
* never a tier DEK (tier writes don't seal fields; `_sealed` reaches a
|
|
334
361
|
* tiered envelope only via a tier-0 write later elevated).
|
|
335
362
|
*/
|
|
336
|
-
applySealedSlots(record: T, sealed: Record<string, string>, cek:
|
|
363
|
+
applySealedSlots(record: T, sealed: Record<string, string>, cek: CapsuleKey | undefined, opts?: {
|
|
337
364
|
id?: string;
|
|
338
365
|
sealedAsHandles?: boolean;
|
|
339
366
|
}): Promise<T>;
|
|
@@ -363,7 +390,7 @@ export declare class RecordCodec<T> {
|
|
|
363
390
|
* output-recompute path, not the public per-record read surface schema
|
|
364
391
|
* validation guards.
|
|
365
392
|
*/
|
|
366
|
-
decryptRecordAtDek(ref: RecordRef, envelope: EncryptedEnvelope, dek:
|
|
393
|
+
decryptRecordAtDek(ref: RecordRef, envelope: EncryptedEnvelope, dek: CapsuleKey): Promise<T | null>;
|
|
367
394
|
/**
|
|
368
395
|
* Decrypt an envelope into a record of type `T`.
|
|
369
396
|
*
|
|
@@ -384,3 +411,11 @@ export declare class RecordCodec<T> {
|
|
|
384
411
|
sealedAsHandles?: boolean;
|
|
385
412
|
}): Promise<T | null>;
|
|
386
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* The capsule-bound codec constructor: same shape callers have always used
|
|
416
|
+
* (`new RecordCodec(ctx)`), with the capsule already closed over.
|
|
417
|
+
*/
|
|
418
|
+
export type BoundRecordCodec = (new <T>(ctx: RecordCodecContext<T>) => RecordCodecBase<T>) & Omit<typeof RecordCodecBase, never>;
|
|
419
|
+
export declare function makeRecordCodec(p: CapsulePrimitives, slots: ReturnType<typeof makeSealedSlots>): {
|
|
420
|
+
RecordCodec: BoundRecordCodec;
|
|
421
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EncryptedEnvelope } from '
|
|
1
|
+
import type { EncryptedEnvelope } from '../../kernel/types.js';
|
|
2
2
|
import type { RecordIdentity } from './record-aad.js';
|
|
3
3
|
/** The body an envelope carries, independent of who is writing it. */
|
|
4
4
|
export interface RecordEnvelopeBody {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { NoydbStore } from '../../kernel/types.js';
|
|
2
|
+
/** Blob metadata envelopes, keyed by eTag. owner: with-shape/blobs/blob-set.ts */
|
|
3
|
+
import type { CapsuleKey, CapsulePrimitives } from '../contract.js';
|
|
4
|
+
/**
|
|
5
|
+
* What a rotation did to the blob set.
|
|
6
|
+
*
|
|
7
|
+
* Deliberately NOT on the enclave barrel: no caller outside this module binds
|
|
8
|
+
* it, and that surface is the fork-swap trust boundary, so exporting a type
|
|
9
|
+
* nobody consumes is pure widening.
|
|
10
|
+
*
|
|
11
|
+
* It is a return value rather than a log line because `foreign` and `blobs`
|
|
12
|
+
* are the only way to tell "left alone, correctly" from "left alone, because
|
|
13
|
+
* the caller passed a wrong `otherDeks` set". Both re-key nothing and both
|
|
14
|
+
* return successfully. `rotate-preserves-blobs.test.ts` asserts these counts
|
|
15
|
+
* against a direct call for exactly that reason.
|
|
16
|
+
*/
|
|
17
|
+
export interface BlobRekeyReport {
|
|
18
|
+
/** Index envelopes moved onto the new DEK. */
|
|
19
|
+
readonly blobs: number;
|
|
20
|
+
/** Chunk envelopes re-encrypted under the new DEK. */
|
|
21
|
+
readonly chunks: number;
|
|
22
|
+
/**
|
|
23
|
+
* Index envelopes left alone because they open under a DEK the caller holds
|
|
24
|
+
* for a DIFFERENT slot — an elevated blob, sealed under `_blob#<tier>`. Those
|
|
25
|
+
* are that slot's rotation to do, not this one's.
|
|
26
|
+
*/
|
|
27
|
+
readonly foreign: number;
|
|
28
|
+
/** Index envelopes already under the new DEK — a resumed rotation. */
|
|
29
|
+
readonly alreadyMoved: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function makeRekeyBlob(p: CapsulePrimitives): {
|
|
32
|
+
rekeyBlobSet: (adapter: NoydbStore, vault: string, oldDek: CapsuleKey, newDek: CapsuleKey, otherDeks?: readonly CapsuleKey[]) => Promise<BlobRekeyReport>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { EncryptedEnvelope } from '../../kernel/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Produce the envelope `envelope` becomes once its collection's DEK rotates
|
|
4
|
+
* from `oldDek` to `newDek`.
|
|
5
|
+
*
|
|
6
|
+
* **Every slot is carried forward except `_bidx`.** The previous inline version
|
|
7
|
+
* built a fresh literal holding only `_noydb/_v/_ts/_iv/_data`, silently
|
|
8
|
+
* discarding `_by`, `_tier`, `_cek`, `_sealed`, `_vdig` and `_source`. Losing
|
|
9
|
+
* `_tier` was the worst of those: tier-0 reads treat elevated as missing, so an
|
|
10
|
+
* elevated record did not error after a rotation — it simply disappeared.
|
|
11
|
+
*
|
|
12
|
+
* `_bidx` is dropped deliberately. It is a DEK-rooted equality tag, so a tag
|
|
13
|
+
* carried across a DEK rotation can never be re-derived to match a query again
|
|
14
|
+
* while still leaking the old equality partition. Index coverage regrows
|
|
15
|
+
* per-record on the next `put()` under the new DEK.
|
|
16
|
+
*
|
|
17
|
+
* Two shapes, and picking the wrong one is why this needed a helper:
|
|
18
|
+
*
|
|
19
|
+
* - **per-record CEK** (`_cek` present) — the body is sealed under the CEK and
|
|
20
|
+
* the CEK is wrapped under the collection DEK, so rotation re-wraps the CEK
|
|
21
|
+
* and leaves the body **untouched**. The old inline code instead ran
|
|
22
|
+
* `decrypt(body, oldDek)` on these, which throws: rotation could not complete
|
|
23
|
+
* on a collection containing any CEK record.
|
|
24
|
+
* - **bare** — body sealed directly under the DEK, so decrypt and re-encrypt.
|
|
25
|
+
*
|
|
26
|
+
* Idempotence is the caller's problem, not this function's: it assumes
|
|
27
|
+
* `envelope` is still under `oldDek`. A resumable rotation must know which side
|
|
28
|
+
* of the migration each record is on before calling.
|
|
29
|
+
*/
|
|
30
|
+
import type { CapsuleKey, CapsulePrimitives } from '../contract.js';
|
|
31
|
+
export declare function makeRekey(p: CapsulePrimitives): {
|
|
32
|
+
rekeyEnvelopeToDek: (ref: {
|
|
33
|
+
readonly collection: string;
|
|
34
|
+
readonly id: string;
|
|
35
|
+
}, envelope: EncryptedEnvelope, oldDek: CapsuleKey, newDek: CapsuleKey) => Promise<EncryptedEnvelope>;
|
|
36
|
+
rekeyEnvelopeIfNeeded: (ref: {
|
|
37
|
+
readonly collection: string;
|
|
38
|
+
readonly id: string;
|
|
39
|
+
}, envelope: EncryptedEnvelope, oldDek: CapsuleKey, newDek: CapsuleKey) => Promise<EncryptedEnvelope | null>;
|
|
40
|
+
envelopeOpensUnderAny: (ref: {
|
|
41
|
+
readonly collection: string;
|
|
42
|
+
readonly id: string;
|
|
43
|
+
}, envelope: EncryptedEnvelope, keys: readonly CapsuleKey[]) => Promise<boolean>;
|
|
44
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sealed-slot (`iv:data`) parsing + the CEK/DEK dual-read, factored out so the
|
|
3
|
+
* three callers that decrypt a `_sealed[field]` slot share ONE implementation
|
|
4
|
+
* with no coupling between them:
|
|
5
|
+
*
|
|
6
|
+
* - {@link RecordCodec.unsealField} / `classifySealedShred` (read + classify),
|
|
7
|
+
* - `record-keys/sealing.ts:rotateRecordCek` (re-seal under a new CEK).
|
|
8
|
+
*
|
|
9
|
+
* These are pure helpers over an explicit `(cek, dek)` pair — NOT a context
|
|
10
|
+
* object — so `sealing.ts` (which holds only the DEK) can import them without
|
|
11
|
+
* pulling in the whole codec, avoiding a codec↔sealing dependency cycle.
|
|
12
|
+
*/
|
|
13
|
+
import type { CapsulePrimitives } from '../contract.js';
|
|
14
|
+
/** Parse an `iv:data` sealed slot (split on the FIRST `:`). Cipher-free, so it
|
|
15
|
+
* needs no primitives and stays a plain module-level export. */
|
|
16
|
+
export declare function parseSealedSlot(blob: string): {
|
|
17
|
+
iv: string;
|
|
18
|
+
data: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function makeSealedSlot(p: CapsulePrimitives): {
|
|
21
|
+
dualReadSealedSlot: (blob: string, field: string, collection: string, cek: CryptoKey | undefined, dek: CryptoKey) => Promise<string>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { SealedHandle } from '../../kernel/types.js';
|
|
2
|
+
import type { ViaCryptoCtx } from '../../kernel/via/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Key material for one collection's sealed-field derivation. `cek`, when
|
|
5
|
+
* supplied, is preferred (record-scoped); `getDEK` is the fallback (and,
|
|
6
|
+
* for legacy/no-CEK collections, the only key) — mirrors the dual-read
|
|
7
|
+
* `RecordCodec` has always done.
|
|
8
|
+
*/
|
|
9
|
+
import type { CapsuleKey, CapsulePrimitives } from '../contract.js';
|
|
10
|
+
export interface SealKeyMaterial {
|
|
11
|
+
readonly collection: string;
|
|
12
|
+
readonly cek?: CapsuleKey;
|
|
13
|
+
getDEK(): Promise<CapsuleKey>;
|
|
14
|
+
}
|
|
15
|
+
export interface SealFieldsResult {
|
|
16
|
+
readonly openRecord: Record<string, unknown>;
|
|
17
|
+
readonly sealed: Record<string, string> | undefined;
|
|
18
|
+
}
|
|
19
|
+
/** What {@link makeSealedSlotCapability} needs — a subset of `RecordCodecContext`. */
|
|
20
|
+
export interface SealedSlotCapabilityCtx {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
getDEK(): Promise<CapsuleKey>;
|
|
23
|
+
}
|
|
24
|
+
/** Resolve the DEK for an arbitrary (possibly synthetic, e.g. `_dict_en`) collection name. */
|
|
25
|
+
export type ReservedEnvelopeDekResolver = (collection: string) => Promise<CapsuleKey>;
|
|
26
|
+
export declare function makeSealedSlots(p: CapsulePrimitives, sealedSlot: {
|
|
27
|
+
dualReadSealedSlot: (blob: string, field: string, collection: string, cek: CapsuleKey | undefined, dek: CapsuleKey) => Promise<string>;
|
|
28
|
+
}): {
|
|
29
|
+
sealFields: (record: Record<string, unknown>, sensitiveFields: ReadonlySet<string>, keyMaterial: SealKeyMaterial) => Promise<SealFieldsResult>;
|
|
30
|
+
unsealOneField: (field: string, blob: string, keyMaterial: SealKeyMaterial) => Promise<unknown>;
|
|
31
|
+
makeHandleProducer: (keyMaterial: SealKeyMaterial) => (field: string, blob: string) => SealedHandle<unknown>;
|
|
32
|
+
unsealFields: (record: Record<string, unknown>, sealed: Record<string, string>, keyMaterial: SealKeyMaterial, opts?: {
|
|
33
|
+
asHandles?: boolean;
|
|
34
|
+
}) => Promise<Record<string, unknown>>;
|
|
35
|
+
makeSealedSlotCapability: (ctx: SealedSlotCapabilityCtx, recordId: string, cek?: CapsuleKey) => ViaCryptoCtx["sealedSlots"];
|
|
36
|
+
makeReservedEnvelopes: (dekResolver: ReservedEnvelopeDekResolver, declaredPrefixes: readonly string[]) => ViaCryptoCtx["reservedEnvelopes"];
|
|
37
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type NoydbStore, type RecipientSealer } from '../../kernel/types.js';
|
|
2
|
+
import type { CapsuleKey, CapsulePrimitives } from '../contract.js';
|
|
3
|
+
/** What the grantor functions need from their `Vault`. */
|
|
4
|
+
export interface SealingContext {
|
|
5
|
+
readonly adapter: NoydbStore;
|
|
6
|
+
/** Vault id (the adapter's first coordinate). */
|
|
7
|
+
readonly vault: string;
|
|
8
|
+
/** Resolve the DEK a record's CEK is wrapped under. */
|
|
9
|
+
getDEK(collection: string): Promise<CapsuleKey>;
|
|
10
|
+
/** Actor id stamped on `_by` (empty string → omit). */
|
|
11
|
+
readonly actor: string;
|
|
12
|
+
/** Evict the per-record CEK cache + decrypted-record cache after a rotation. */
|
|
13
|
+
invalidateRecordCaches(collection: string, id: string): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export declare function makeSealing(p: CapsulePrimitives, sealedSlot: {
|
|
16
|
+
dualReadSealedSlot: (blob: string, field: string, collection: string, cek: CapsuleKey | undefined, dek: CapsuleKey) => Promise<string>;
|
|
17
|
+
}): {
|
|
18
|
+
SEALED_CEK_NS: string;
|
|
19
|
+
sealRecordToHost: (ctx: SealingContext, collection: string, id: string, hostSealer: RecipientSealer, opts: {
|
|
20
|
+
expiresAt: string;
|
|
21
|
+
}) => Promise<{
|
|
22
|
+
pid: string;
|
|
23
|
+
envelopeKey: string;
|
|
24
|
+
}>;
|
|
25
|
+
revokeSealedRecord: (ctx: SealingContext, collection: string, id: string, pid: string, opts?: {
|
|
26
|
+
hard?: boolean;
|
|
27
|
+
}) => Promise<void>;
|
|
28
|
+
rotateRecordCek: (ctx: SealingContext, collection: string, id: string) => Promise<void>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function generateSigningKeyPair(): Promise<{
|
|
2
|
+
/** base64url raw (32 bytes) — non-secret, publishable */
|
|
3
|
+
publicKeyB64: string;
|
|
4
|
+
/** base64url pkcs8 — secret, wrap before persisting */
|
|
5
|
+
privateKeyPkcs8B64: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function signBytes(privateKeyPkcs8B64: string, message: Uint8Array): Promise<string>;
|
|
8
|
+
/** Fails closed: any malformed input is `false`, never a throw. */
|
|
9
|
+
export declare function verifyBytes(publicKeyB64: string, sigB64url: string, message: Uint8Array): Promise<boolean>;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* (`_writeTombstone`) and drives `vault.forget()` lives with the collection /
|
|
16
16
|
* vault; it calls into these.
|
|
17
17
|
*/
|
|
18
|
-
import { type EncryptedEnvelope } from '../../types.js';
|
|
19
|
-
import type { RecordRef } from '
|
|
18
|
+
import { type EncryptedEnvelope } from '../../kernel/types.js';
|
|
19
|
+
import type { RecordRef } from './record-aad.js';
|
|
20
20
|
/**
|
|
21
21
|
* Shape-only tombstone recognition for layers that have no per-collection
|
|
22
22
|
* context (the sync engine, #590): a tombstone carries an empty `_data` and
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RecordCodec,
|
|
3
|
+
SEALED_CEK_NS,
|
|
4
|
+
applyRewrappedBody,
|
|
5
|
+
base64ToBuffer,
|
|
6
|
+
bufferToBase64,
|
|
7
|
+
buildDeleteMarker,
|
|
8
|
+
buildRecordAad,
|
|
9
|
+
buildRecordEnvelope,
|
|
10
|
+
buildSealedRecordEnvelope,
|
|
11
|
+
buildTombstone,
|
|
12
|
+
capabilities,
|
|
13
|
+
checkCanary,
|
|
14
|
+
computeBidxTarget,
|
|
15
|
+
computeBrokerProof,
|
|
16
|
+
ctEqualTags,
|
|
17
|
+
decrypt,
|
|
18
|
+
decryptBytes,
|
|
19
|
+
decryptBytesWithAAD,
|
|
20
|
+
decryptDeterministic,
|
|
21
|
+
deriveBlobAddressKey,
|
|
22
|
+
deriveBrokerProofBits,
|
|
23
|
+
deriveBrokerProofKey,
|
|
24
|
+
deriveClassifyIndexKey,
|
|
25
|
+
deriveClassifyIndexSalt,
|
|
26
|
+
deriveDeterministicKey,
|
|
27
|
+
deriveEchoKey,
|
|
28
|
+
deriveKey,
|
|
29
|
+
derivePresenceKey,
|
|
30
|
+
derivePresenceTagKey,
|
|
31
|
+
deriveSealedFieldKey,
|
|
32
|
+
deriveSealedFieldKeyFromCek,
|
|
33
|
+
deriveSecretKey,
|
|
34
|
+
deriveVdigSlotKey,
|
|
35
|
+
encodeEchoParts,
|
|
36
|
+
encrypt,
|
|
37
|
+
encryptBytes,
|
|
38
|
+
encryptBytesWithAAD,
|
|
39
|
+
encryptDeterministic,
|
|
40
|
+
envelopeBodyForHash,
|
|
41
|
+
envelopeBodySize,
|
|
42
|
+
envelopeOpensUnderAny,
|
|
43
|
+
evaluateKofN,
|
|
44
|
+
exportDekSet,
|
|
45
|
+
exportRecipientPublicKeySpki,
|
|
46
|
+
findByDet,
|
|
47
|
+
generateDEK,
|
|
48
|
+
generateEphemeralKey,
|
|
49
|
+
generateIV,
|
|
50
|
+
generateRecipientKeyPair,
|
|
51
|
+
generateRecoverySecret,
|
|
52
|
+
generateSalt,
|
|
53
|
+
generateSigningKeyPair,
|
|
54
|
+
hasPerRecordKey,
|
|
55
|
+
hasSealedBody,
|
|
56
|
+
hkdfAesGcmKey,
|
|
57
|
+
hmacSha256Hex,
|
|
58
|
+
hmacSignHex,
|
|
59
|
+
importCek,
|
|
60
|
+
importDekSet,
|
|
61
|
+
importRecipientPublicKeySpki,
|
|
62
|
+
importTransferKey,
|
|
63
|
+
isDeleteMarker,
|
|
64
|
+
isRewrappedUnder,
|
|
65
|
+
isTombstone,
|
|
66
|
+
isTombstoneShape,
|
|
67
|
+
issueChallenge,
|
|
68
|
+
makeReservedEnvelopes,
|
|
69
|
+
mintBidxTag,
|
|
70
|
+
mintCanary,
|
|
71
|
+
openEnvelopeJson,
|
|
72
|
+
pbkdf2VerifyDigest,
|
|
73
|
+
queryByDet,
|
|
74
|
+
recipientUnwrap,
|
|
75
|
+
recipientWrap,
|
|
76
|
+
recordAadFor,
|
|
77
|
+
rekeyBlobSet,
|
|
78
|
+
rekeyEnvelopeIfNeeded,
|
|
79
|
+
rekeyEnvelopeToDek,
|
|
80
|
+
requireSealedBody,
|
|
81
|
+
resolveStableCek,
|
|
82
|
+
revokeSealedRecord,
|
|
83
|
+
rewrapBodyToDek,
|
|
84
|
+
rewrapEnvelope,
|
|
85
|
+
rotateRecordCek,
|
|
86
|
+
sealRecordToHost,
|
|
87
|
+
sealedBodyArgs,
|
|
88
|
+
sha256Bytes,
|
|
89
|
+
sha256Hex,
|
|
90
|
+
signBytes,
|
|
91
|
+
unwrapCek,
|
|
92
|
+
unwrapKey,
|
|
93
|
+
verifyBrokerProof,
|
|
94
|
+
verifyBytes,
|
|
95
|
+
verifyRecordIdentity,
|
|
96
|
+
wrapCek,
|
|
97
|
+
wrapKey,
|
|
98
|
+
writeEnvelopeBody
|
|
99
|
+
} from "./chunk-EZGV6F47.js";
|
|
100
|
+
import {
|
|
101
|
+
CapsuleNotSupportedError
|
|
102
|
+
} from "./chunk-OIEO4WDL.js";
|
|
103
|
+
import "./chunk-Q2XRFWOI.js";
|
|
104
|
+
import "./chunk-NH2UOV3B.js";
|
|
105
|
+
import "./chunk-42ALPZ2B.js";
|
|
106
|
+
import "./chunk-QMWY2FDS.js";
|
|
107
|
+
import "./chunk-SV2PM2OY.js";
|
|
108
|
+
import "./chunk-37EPTBBR.js";
|
|
109
|
+
export {
|
|
110
|
+
CapsuleNotSupportedError,
|
|
111
|
+
RecordCodec,
|
|
112
|
+
SEALED_CEK_NS,
|
|
113
|
+
applyRewrappedBody,
|
|
114
|
+
base64ToBuffer,
|
|
115
|
+
bufferToBase64,
|
|
116
|
+
buildDeleteMarker,
|
|
117
|
+
buildRecordAad,
|
|
118
|
+
buildRecordEnvelope,
|
|
119
|
+
buildSealedRecordEnvelope,
|
|
120
|
+
buildTombstone,
|
|
121
|
+
capabilities,
|
|
122
|
+
checkCanary,
|
|
123
|
+
computeBidxTarget,
|
|
124
|
+
computeBrokerProof,
|
|
125
|
+
ctEqualTags,
|
|
126
|
+
decrypt,
|
|
127
|
+
decryptBytes,
|
|
128
|
+
decryptBytesWithAAD,
|
|
129
|
+
decryptDeterministic,
|
|
130
|
+
deriveBlobAddressKey,
|
|
131
|
+
deriveBrokerProofBits,
|
|
132
|
+
deriveBrokerProofKey,
|
|
133
|
+
deriveClassifyIndexKey,
|
|
134
|
+
deriveClassifyIndexSalt,
|
|
135
|
+
deriveDeterministicKey,
|
|
136
|
+
deriveEchoKey,
|
|
137
|
+
deriveKey,
|
|
138
|
+
derivePresenceKey,
|
|
139
|
+
derivePresenceTagKey,
|
|
140
|
+
deriveSealedFieldKey,
|
|
141
|
+
deriveSealedFieldKeyFromCek,
|
|
142
|
+
deriveSecretKey,
|
|
143
|
+
deriveVdigSlotKey,
|
|
144
|
+
encodeEchoParts,
|
|
145
|
+
encrypt,
|
|
146
|
+
encryptBytes,
|
|
147
|
+
encryptBytesWithAAD,
|
|
148
|
+
encryptDeterministic,
|
|
149
|
+
envelopeBodyForHash,
|
|
150
|
+
envelopeBodySize,
|
|
151
|
+
envelopeOpensUnderAny,
|
|
152
|
+
evaluateKofN,
|
|
153
|
+
exportDekSet,
|
|
154
|
+
exportRecipientPublicKeySpki,
|
|
155
|
+
findByDet,
|
|
156
|
+
generateDEK,
|
|
157
|
+
generateEphemeralKey,
|
|
158
|
+
generateIV,
|
|
159
|
+
generateRecipientKeyPair,
|
|
160
|
+
generateRecoverySecret,
|
|
161
|
+
generateSalt,
|
|
162
|
+
generateSigningKeyPair,
|
|
163
|
+
hasPerRecordKey,
|
|
164
|
+
hasSealedBody,
|
|
165
|
+
hkdfAesGcmKey,
|
|
166
|
+
hmacSha256Hex,
|
|
167
|
+
hmacSignHex,
|
|
168
|
+
importCek,
|
|
169
|
+
importDekSet,
|
|
170
|
+
importRecipientPublicKeySpki,
|
|
171
|
+
importTransferKey,
|
|
172
|
+
isDeleteMarker,
|
|
173
|
+
isRewrappedUnder,
|
|
174
|
+
isTombstone,
|
|
175
|
+
isTombstoneShape,
|
|
176
|
+
issueChallenge,
|
|
177
|
+
makeReservedEnvelopes,
|
|
178
|
+
mintBidxTag,
|
|
179
|
+
mintCanary,
|
|
180
|
+
openEnvelopeJson,
|
|
181
|
+
pbkdf2VerifyDigest,
|
|
182
|
+
queryByDet,
|
|
183
|
+
recipientUnwrap,
|
|
184
|
+
recipientWrap,
|
|
185
|
+
recordAadFor,
|
|
186
|
+
rekeyBlobSet,
|
|
187
|
+
rekeyEnvelopeIfNeeded,
|
|
188
|
+
rekeyEnvelopeToDek,
|
|
189
|
+
requireSealedBody,
|
|
190
|
+
resolveStableCek,
|
|
191
|
+
revokeSealedRecord,
|
|
192
|
+
rewrapBodyToDek,
|
|
193
|
+
rewrapEnvelope,
|
|
194
|
+
rotateRecordCek,
|
|
195
|
+
sealRecordToHost,
|
|
196
|
+
sealedBodyArgs,
|
|
197
|
+
sha256Bytes,
|
|
198
|
+
sha256Hex,
|
|
199
|
+
signBytes,
|
|
200
|
+
unwrapCek,
|
|
201
|
+
unwrapKey,
|
|
202
|
+
verifyBrokerProof,
|
|
203
|
+
verifyBytes,
|
|
204
|
+
verifyRecordIdentity,
|
|
205
|
+
wrapCek,
|
|
206
|
+
wrapKey,
|
|
207
|
+
writeEnvelopeBody
|
|
208
|
+
};
|
|
209
|
+
//# sourceMappingURL=capsule-VOLX3QRQ.js.map
|