@noy-db/hub 0.3.0-pre.8 → 0.3.0-pre.9
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 -3
- package/dist/adapter/index.js +1 -1
- package/dist/aggregate/index.d.ts +3 -4
- package/dist/aggregate/index.js +9 -8
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-HV4PDUWF.js +20 -0
- package/dist/as/index.d.ts +4 -5
- package/dist/as/index.js +11 -11
- package/dist/at/index.d.ts +2 -3
- package/dist/attestation/index.d.ts +3 -4
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-WRGNTGJF.js → backup-ODXO7OGA.js} +12 -12
- package/dist/blobs/index.d.ts +4 -5
- package/dist/blobs/index.js +11 -11
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.d.ts +5 -6
- package/dist/bundle/index.js +20 -20
- package/dist/{bundle-DzWtVw7w.d.ts → bundle-DlSxo31R.d.ts} +1 -1
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.d.ts +4 -5
- package/dist/cargo/index.js +23 -22
- package/dist/{chunk-X6VNIRHS.js → chunk-2644KEGW.js} +18 -10
- package/dist/chunk-2644KEGW.js.map +1 -0
- package/dist/{chunk-XW5LZYV4.js → chunk-2HVUKRNE.js} +2 -2
- package/dist/{chunk-VFQOE76I.js → chunk-2KOSJTMU.js} +2 -2
- package/dist/{chunk-2PJB6H3H.js → chunk-2UQ4RMHV.js} +4 -4
- package/dist/{chunk-5GQE5IDB.js → chunk-2XE6LIXT.js} +13 -11
- package/dist/chunk-2XE6LIXT.js.map +1 -0
- package/dist/{chunk-VIWOGJ2O.js → chunk-34RRRIC3.js} +2 -2
- package/dist/{chunk-BASCPHNM.js → chunk-3C5CKXFI.js} +289 -48
- package/dist/chunk-3C5CKXFI.js.map +1 -0
- package/dist/{chunk-LFGJG4XZ.js → chunk-3I4KYWNP.js} +2 -2
- package/dist/{chunk-723XB5NX.js → chunk-42KVY3OC.js} +4 -4
- package/dist/{chunk-56JB2BGI.js → chunk-4C4WBS4V.js} +1739 -920
- package/dist/chunk-4C4WBS4V.js.map +1 -0
- package/dist/{chunk-62APEMF3.js → chunk-4G3IT7J7.js} +7 -7
- package/dist/{chunk-W3JABOVB.js → chunk-4RQ62VSR.js} +2 -2
- package/dist/{chunk-WPNP3NF5.js → chunk-4ZSGSRBI.js} +8 -8
- package/dist/{chunk-C4NOLA5X.js → chunk-5GAX2QOH.js} +2 -2
- package/dist/{chunk-5HRJQSKN.js → chunk-5SAZMBW7.js} +7 -7
- package/dist/{chunk-II6DLDZM.js → chunk-5TZZUL5X.js} +2 -2
- package/dist/{chunk-TUL5YQWF.js → chunk-6CU3FN74.js} +8 -8
- package/dist/chunk-6G2SCQYS.js +29 -0
- package/dist/chunk-6G2SCQYS.js.map +1 -0
- package/dist/{chunk-UWZ7O4NR.js → chunk-6MWUANRF.js} +2 -2
- package/dist/{chunk-U7LV2DUN.js → chunk-6ULCYCMU.js} +2 -2
- package/dist/{chunk-6Z435B6N.js → chunk-7HAPHVRJ.js} +131 -92
- package/dist/chunk-7HAPHVRJ.js.map +1 -0
- package/dist/{chunk-GDOOG5YQ.js → chunk-7IZQTCTR.js} +3 -3
- package/dist/chunk-7ZANJ6JZ.js +265 -0
- package/dist/chunk-7ZANJ6JZ.js.map +1 -0
- package/dist/{chunk-VVLOWY74.js → chunk-A2APWS32.js} +6 -6
- package/dist/chunk-A2APWS32.js.map +1 -0
- package/dist/{chunk-TIAYXOEI.js → chunk-A4MAD6PO.js} +5 -5
- package/dist/chunk-ANDBBA2P.js +36 -0
- package/dist/chunk-ANDBBA2P.js.map +1 -0
- package/dist/{chunk-5HZULLHE.js → chunk-AUR7MRHA.js} +2 -2
- package/dist/{chunk-44DV37ZV.js → chunk-AYGZMQP5.js} +3 -3
- package/dist/chunk-AYGZMQP5.js.map +1 -0
- package/dist/{chunk-P2PEPSPK.js → chunk-CJEMA2Z6.js} +2 -2
- package/dist/{chunk-L6Q5NA22.js → chunk-CTSFKDGA.js} +2 -2
- package/dist/{chunk-OJ64XMPJ.js → chunk-CU62BBRB.js} +32 -1
- package/dist/chunk-CU62BBRB.js.map +1 -0
- package/dist/{chunk-J5YUA6JB.js → chunk-CWCCYH34.js} +2 -2
- package/dist/{chunk-NTPWQH4S.js → chunk-DEYAO3N6.js} +10 -10
- package/dist/{chunk-M3OYTM5Z.js → chunk-DFIBOSOQ.js} +8 -8
- package/dist/{chunk-FZK3JJJK.js → chunk-E5AHO65E.js} +7 -7
- package/dist/{chunk-F3EKFGUS.js → chunk-FC3XK5JT.js} +8 -8
- package/dist/{chunk-XBPUVQDO.js → chunk-FGOGS7CE.js} +10 -12
- package/dist/chunk-FGOGS7CE.js.map +1 -0
- package/dist/{chunk-3KBK5LU4.js → chunk-GX2BYNCT.js} +7 -7
- package/dist/{chunk-YTCCC6NG.js → chunk-GZ2MOPVX.js} +34 -63
- package/dist/chunk-GZ2MOPVX.js.map +1 -0
- package/dist/chunk-H57P2SJB.js +126 -0
- package/dist/chunk-H57P2SJB.js.map +1 -0
- package/dist/{chunk-55LSDABW.js → chunk-HBTT7YQX.js} +2 -2
- package/dist/{chunk-PYIUDUGS.js → chunk-HOCEGVGQ.js} +2 -2
- package/dist/{chunk-5JQMX2EH.js → chunk-ICV32FPK.js} +2 -2
- package/dist/{chunk-PMMV5SQC.js → chunk-IIP5WFVT.js} +138 -92
- package/dist/chunk-IIP5WFVT.js.map +1 -0
- package/dist/{chunk-37JZR7CY.js → chunk-IUKGIB2Q.js} +4 -4
- package/dist/{chunk-OWGAXPRE.js → chunk-IWTYFS3D.js} +2 -2
- package/dist/{chunk-FCOZ7DEC.js → chunk-JC5R7P44.js} +3 -3
- package/dist/{chunk-IARAK3PK.js → chunk-KBBWY46Y.js} +2 -2
- package/dist/{chunk-RNYDHIQL.js → chunk-KBF5GSGX.js} +3 -3
- package/dist/{chunk-6P5AJ2ZS.js → chunk-KCG3BHFG.js} +2 -23
- package/dist/chunk-KCG3BHFG.js.map +1 -0
- package/dist/{chunk-GLVXQU3E.js → chunk-KNXN47MO.js} +3 -3
- package/dist/{chunk-VK6OC22R.js → chunk-KWLD2D75.js} +4 -3
- package/dist/chunk-KWLD2D75.js.map +1 -0
- package/dist/{chunk-J7OH6R4K.js → chunk-KXKLKJW4.js} +6 -6
- package/dist/{chunk-PAJCRV7O.js → chunk-KYC4LIEU.js} +2 -2
- package/dist/{chunk-R4IVPJHN.js → chunk-LEOXZY36.js} +8 -8
- package/dist/{chunk-25G7PUTA.js → chunk-M5I354EE.js} +9 -9
- package/dist/{chunk-26FSVNBL.js → chunk-MK2BSS44.js} +2 -2
- package/dist/{chunk-UMH35AQV.js → chunk-MSVY7ULZ.js} +3 -3
- package/dist/{chunk-5YBUFCFF.js → chunk-NNWK3PSY.js} +9 -9
- package/dist/{chunk-X5QZAJDB.js → chunk-NSZ6J5DF.js} +7 -7
- package/dist/{chunk-I6URUNTD.js → chunk-NUEFXLZU.js} +7 -7
- package/dist/{chunk-PPPZIBKY.js → chunk-NYVQCZ54.js} +5 -5
- package/dist/chunk-NYVQCZ54.js.map +1 -0
- package/dist/{chunk-DCVVCJVB.js → chunk-OQAODTYR.js} +2 -2
- package/dist/{chunk-QYMMMKOO.js → chunk-OV4CMJGR.js} +5 -5
- package/dist/{chunk-V76PHWLE.js → chunk-PEDZFFKW.js} +2 -2
- package/dist/chunk-PF3FQCCF.js +164 -0
- package/dist/chunk-PF3FQCCF.js.map +1 -0
- package/dist/{chunk-BJ2XF2RC.js → chunk-Q2KVKTC2.js} +5 -5
- package/dist/{chunk-RUIMKQTA.js → chunk-QJR3W3MF.js} +1 -1
- package/dist/chunk-QJR3W3MF.js.map +1 -0
- package/dist/{chunk-QABECTNN.js → chunk-QTXQ6RNZ.js} +3 -3
- package/dist/{chunk-P6TZ3IVN.js → chunk-RJ5522XX.js} +12 -12
- package/dist/{chunk-BM6E4MUT.js → chunk-RMUXPHIH.js} +56 -7
- package/dist/chunk-RMUXPHIH.js.map +1 -0
- package/dist/{chunk-CHK5VVMI.js → chunk-S6AQXDN4.js} +2 -2
- package/dist/{chunk-4VDFUBTS.js → chunk-SSFC3IYA.js} +9 -9
- package/dist/chunk-SSFC3IYA.js.map +1 -0
- package/dist/{chunk-MOQ5M46U.js → chunk-SZCHEDML.js} +2 -2
- package/dist/{chunk-UB3XHGFG.js → chunk-TDPEJINP.js} +14 -7
- package/dist/chunk-TDPEJINP.js.map +1 -0
- package/dist/{chunk-REWTMYSF.js → chunk-UNJU345Q.js} +1 -1
- package/dist/chunk-UNJU345Q.js.map +1 -0
- package/dist/chunk-V7RNIND6.js +265 -0
- package/dist/chunk-V7RNIND6.js.map +1 -0
- package/dist/{chunk-FWART3VA.js → chunk-VJ3NQK4K.js} +5 -5
- package/dist/{chunk-3YKBGS3I.js → chunk-WNA6T3MA.js} +8 -8
- package/dist/{chunk-7CZ6YXMO.js → chunk-WVCQ75OK.js} +2 -2
- package/dist/{chunk-BTFTHF6Q.js → chunk-X66MXMR5.js} +2 -2
- package/dist/{chunk-7TAV3BFQ.js → chunk-XHD3L3JO.js} +199 -35
- package/dist/chunk-XHD3L3JO.js.map +1 -0
- package/dist/{chunk-6PALJTC2.js → chunk-XJK2WIYN.js} +3 -3
- package/dist/{chunk-5UOPIPZC.js → chunk-XQ7UYPVN.js} +3 -3
- package/dist/{chunk-HU55NPHZ.js → chunk-Y2OCKFZ3.js} +2 -2
- package/dist/{chunk-TCGVRKOS.js → chunk-YBFOBRTO.js} +3 -3
- package/dist/{chunk-I6JJ6VJS.js → chunk-YLN33ADH.js} +2 -2
- package/dist/{chunk-PVC2FBCQ.js → chunk-Z5YFRMG5.js} +2 -2
- package/dist/{chunk-EU7HDMT3.js → chunk-ZWQFOXBR.js} +2 -2
- package/dist/classified/index.d.ts +4 -5
- package/dist/classified/index.js +5 -3
- package/dist/{config-drift-RFEVGBKR.js → classified-marker-IO5EBW7Q.js} +4 -4
- package/dist/classified-marker-IO5EBW7Q.js.map +1 -0
- package/dist/collection-facade-3RAXG2OU.js +38 -0
- package/dist/{computed-6FOFXQPE.js → computed-R62HGCO4.js} +3 -3
- package/dist/consent/index.d.ts +3 -4
- package/dist/consent/index.js +9 -9
- package/dist/crdt/index.d.ts +3 -4
- package/dist/{dead-filter-RHMNYOXP.js → dead-filter-VNA4M3GP.js} +2 -2
- package/dist/delegation-ZKII5UBI.js +25 -0
- package/dist/derivations/index.d.ts +4 -5
- package/dist/derivations/index.js +12 -11
- package/dist/derive-5D2C3WG4.js +21 -0
- package/dist/describe/index.d.ts +4 -1
- package/dist/{dev-unlock-wgQ7Ci5I.d.ts → dev-unlock-DDTafVO6.d.ts} +1 -1
- package/dist/{enclave-KGEUW2GL.js → enclave-EUBEJGPG.js} +11 -9
- package/dist/executor-IL7SRNUZ.js +23 -0
- package/dist/executor-OUA2Y6YC.js +9 -0
- package/dist/executor-WAEI6PDV.js +9 -0
- package/dist/export-accessible-O55RKAGC.js +23 -0
- package/dist/extract-partition-VBGCBA6Q.js +36 -0
- package/dist/{fanout-sidecar-NBDKKCHT.js → fanout-sidecar-CI5BCMQM.js} +11 -11
- package/dist/find-FISGUWSK.js +11 -0
- package/dist/forget/index.d.ts +2 -2
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.d.ts +4 -5
- package/dist/guards/index.js +4 -4
- package/dist/{hash-CwHnoKyW.d.ts → hash-DBkZfIBW.d.ts} +1 -1
- package/dist/history/index.d.ts +4 -5
- package/dist/history/index.js +11 -11
- package/dist/i18n/index.d.ts +24 -5
- package/dist/i18n/index.js +45 -34
- package/dist/i18n/index.js.map +1 -1
- package/dist/in/index.d.ts +2 -3
- package/dist/{index-CTvUp94-.d.ts → index-CyclmyDr.d.ts} +2 -3
- package/dist/{index-Dn5GzPg_.d.ts → index-DzhNI2vE.d.ts} +7114 -5992
- package/dist/index.d.ts +51 -17
- package/dist/index.js +403 -125
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.d.ts +3 -4
- package/dist/indexing/index.js +4 -4
- package/dist/issue-EQAWIYFQ.js +19 -0
- package/dist/kernel/index.d.ts +3 -4
- package/dist/kernel/index.js +13 -12
- package/dist/lazy/index.d.ts +3 -4
- package/dist/{ledger-3LR3YO2W.js → ledger-AJA2SR3C.js} +11 -11
- package/dist/liberate-SEGR4JLY.js +24 -0
- package/dist/{link-set-NSUIX6BR.js → link-set-YBAC2DQT.js} +11 -11
- package/dist/materialized-views/index.d.ts +14 -5
- package/dist/materialized-views/index.js +17 -15
- package/dist/{mime-magic-CYbFNQ4h.d.ts → mime-magic-CbV1quyp.d.ts} +1 -1
- package/dist/noydb-AMEOU456.js +65 -0
- package/dist/on/index.d.ts +2 -3
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.d.ts +4 -5
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.d.ts +3 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.d.ts +3 -4
- package/dist/pod/index.js +11 -11
- package/dist/{policy-Y7HL2KGA.js → policy-SDGRWVIL.js} +5 -5
- package/dist/portability/index.d.ts +3 -4
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-KOFRTCDD.js → post-register-MROIUA5O.js} +6 -6
- package/dist/{public-envelope-NC7SPNMV.js → public-envelope-J5PLQOW2.js} +4 -4
- package/dist/query/index.d.ts +2 -3
- package/dist/query/index.js +9 -6
- package/dist/{read-only-facade-5ADRJVTM.js → read-only-facade-UCYNRE56.js} +2 -2
- package/dist/register-OVJKW7BS.js +23 -0
- package/dist/registry-5RJSK5AJ.js +9 -0
- package/dist/registry-DQRNTWRL.js +18 -0
- package/dist/registry-LTGLERS7.js +19 -0
- package/dist/request-withdrawal-27O77D2V.js +31 -0
- package/dist/{reveal-5Y777N5Q.js → reveal-LT3I2K4P.js} +6 -6
- package/dist/revoke-4N45G7D2.js +24 -0
- package/dist/satellites/index.d.ts +2 -3
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.d.ts +3 -4
- package/dist/sealed-record/index.js +12 -12
- package/dist/session/index.d.ts +4 -5
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.d.ts +3 -4
- package/dist/shadow/index.js +2 -2
- package/dist/signer-XJCOV7JD.js +25 -0
- package/dist/snapshots/index.d.ts +3 -4
- package/dist/snapshots/index.js +10 -10
- package/dist/{stale-77LP2EEF.js → stale-IYYXEH3U.js} +2 -2
- package/dist/storage-Y44CAPE6.js +23 -0
- package/dist/{store-coordination-provider-NJDDZ264.js → store-coordination-provider-WKGAE2WI.js} +3 -3
- package/dist/{subject-index-O75wKshW.d.ts → subject-index-CyOgGMJL.d.ts} +18 -0
- package/dist/sync/index.d.ts +2 -3
- package/dist/sync/index.js +9 -9
- package/dist/team/index.d.ts +3 -4
- package/dist/team/index.js +15 -15
- package/dist/tiers/index.d.ts +2 -3
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.d.ts +2 -3
- package/dist/to/index.js +1 -1
- package/dist/{transition-guard-D5RLJv8S.d.ts → transition-guard-BOUkzQU4.d.ts} +1 -1
- package/dist/tx/index.d.ts +3 -4
- package/dist/tx/index.js +3 -3
- package/dist/ui/index.d.ts +4 -1
- package/dist/util/index.js +1 -1
- package/dist/{validators-C3lrVF-c.d.ts → validators-B3SalxlJ.d.ts} +1 -1
- package/dist/{vault-diff-_LSIcOMv.d.ts → vault-diff-Dt9NkLzw.d.ts} +1 -1
- package/dist/{verify-CAYGXYNO.js → verify-GH6CWVSW.js} +5 -5
- package/dist/{walk-SMAE4IEI.js → walk-76UCFXYV.js} +11 -11
- package/dist/with/index.d.ts +3 -4
- package/dist/with/index.js +11 -11
- package/dist/{with-materialized-view-Xv1-9Bh0.d.ts → with-materialized-view-BP33v1Z6.d.ts} +1 -1
- package/dist/{with-overlayed-view-CuWhq_-C.d.ts → with-overlayed-view-DntFpOKN.d.ts} +1 -1
- package/dist/{with-rollup-K_iwal4b.d.ts → with-rollup-ClCHO6-4.d.ts} +1 -1
- package/dist/withdraw-accessible-6J2UH3IN.js +28 -0
- package/package.json +3 -3
- package/dist/api-JDWL67WL.js +0 -20
- package/dist/chunk-44DV37ZV.js.map +0 -1
- package/dist/chunk-47C4CI7R.js +0 -108
- package/dist/chunk-47C4CI7R.js.map +0 -1
- package/dist/chunk-4VDFUBTS.js.map +0 -1
- package/dist/chunk-56JB2BGI.js.map +0 -1
- package/dist/chunk-5GQE5IDB.js.map +0 -1
- package/dist/chunk-6P5AJ2ZS.js.map +0 -1
- package/dist/chunk-6Z435B6N.js.map +0 -1
- package/dist/chunk-7KTL4RHZ.js +0 -120
- package/dist/chunk-7KTL4RHZ.js.map +0 -1
- package/dist/chunk-7TAV3BFQ.js.map +0 -1
- package/dist/chunk-BASCPHNM.js.map +0 -1
- package/dist/chunk-BM6E4MUT.js.map +0 -1
- package/dist/chunk-OJ64XMPJ.js.map +0 -1
- package/dist/chunk-PMMV5SQC.js.map +0 -1
- package/dist/chunk-PPPZIBKY.js.map +0 -1
- package/dist/chunk-REWTMYSF.js.map +0 -1
- package/dist/chunk-RUIMKQTA.js.map +0 -1
- package/dist/chunk-UB3XHGFG.js.map +0 -1
- package/dist/chunk-VK6OC22R.js.map +0 -1
- package/dist/chunk-VVLOWY74.js.map +0 -1
- package/dist/chunk-X6VNIRHS.js.map +0 -1
- package/dist/chunk-XBPUVQDO.js.map +0 -1
- package/dist/chunk-YTCCC6NG.js.map +0 -1
- package/dist/collection-facade-EJVIN2BY.js +0 -39
- package/dist/config-drift-RFEVGBKR.js.map +0 -1
- package/dist/delegation-IHXOASHV.js +0 -25
- package/dist/derive-CD3ZVIXK.js +0 -21
- package/dist/describe-C6iHNlqJ.d.ts +0 -162
- package/dist/executor-EUPYHCLU.js +0 -9
- package/dist/executor-KZ4B3PRT.js +0 -9
- package/dist/executor-MHUM2VZK.js +0 -21
- package/dist/export-accessible-Z3NSZZHN.js +0 -23
- package/dist/extract-partition-VSKT35JG.js +0 -36
- package/dist/find-OH4BEULF.js +0 -11
- package/dist/issue-AEOL6RXA.js +0 -19
- package/dist/liberate-XSEPRWEA.js +0 -24
- package/dist/noydb-POVTIVQ6.js +0 -62
- package/dist/register-3D6R2MKN.js +0 -23
- package/dist/registry-AI4E46PD.js +0 -19
- package/dist/registry-HSNQ4NBP.js +0 -9
- package/dist/registry-WIX6QCV5.js +0 -17
- package/dist/request-withdrawal-GU4XS2R5.js +0 -31
- package/dist/revoke-ZFETCLYV.js +0 -24
- package/dist/signer-GAIMQQ2J.js +0 -25
- package/dist/storage-KEXIXLGM.js +0 -23
- package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
- /package/dist/{api-JDWL67WL.js.map → api-HV4PDUWF.js.map} +0 -0
- /package/dist/{backup-WRGNTGJF.js.map → backup-ODXO7OGA.js.map} +0 -0
- /package/dist/{chunk-XW5LZYV4.js.map → chunk-2HVUKRNE.js.map} +0 -0
- /package/dist/{chunk-VFQOE76I.js.map → chunk-2KOSJTMU.js.map} +0 -0
- /package/dist/{chunk-2PJB6H3H.js.map → chunk-2UQ4RMHV.js.map} +0 -0
- /package/dist/{chunk-VIWOGJ2O.js.map → chunk-34RRRIC3.js.map} +0 -0
- /package/dist/{chunk-LFGJG4XZ.js.map → chunk-3I4KYWNP.js.map} +0 -0
- /package/dist/{chunk-723XB5NX.js.map → chunk-42KVY3OC.js.map} +0 -0
- /package/dist/{chunk-62APEMF3.js.map → chunk-4G3IT7J7.js.map} +0 -0
- /package/dist/{chunk-W3JABOVB.js.map → chunk-4RQ62VSR.js.map} +0 -0
- /package/dist/{chunk-WPNP3NF5.js.map → chunk-4ZSGSRBI.js.map} +0 -0
- /package/dist/{chunk-C4NOLA5X.js.map → chunk-5GAX2QOH.js.map} +0 -0
- /package/dist/{chunk-5HRJQSKN.js.map → chunk-5SAZMBW7.js.map} +0 -0
- /package/dist/{chunk-II6DLDZM.js.map → chunk-5TZZUL5X.js.map} +0 -0
- /package/dist/{chunk-TUL5YQWF.js.map → chunk-6CU3FN74.js.map} +0 -0
- /package/dist/{chunk-UWZ7O4NR.js.map → chunk-6MWUANRF.js.map} +0 -0
- /package/dist/{chunk-U7LV2DUN.js.map → chunk-6ULCYCMU.js.map} +0 -0
- /package/dist/{chunk-GDOOG5YQ.js.map → chunk-7IZQTCTR.js.map} +0 -0
- /package/dist/{chunk-TIAYXOEI.js.map → chunk-A4MAD6PO.js.map} +0 -0
- /package/dist/{chunk-5HZULLHE.js.map → chunk-AUR7MRHA.js.map} +0 -0
- /package/dist/{chunk-P2PEPSPK.js.map → chunk-CJEMA2Z6.js.map} +0 -0
- /package/dist/{chunk-L6Q5NA22.js.map → chunk-CTSFKDGA.js.map} +0 -0
- /package/dist/{chunk-J5YUA6JB.js.map → chunk-CWCCYH34.js.map} +0 -0
- /package/dist/{chunk-NTPWQH4S.js.map → chunk-DEYAO3N6.js.map} +0 -0
- /package/dist/{chunk-M3OYTM5Z.js.map → chunk-DFIBOSOQ.js.map} +0 -0
- /package/dist/{chunk-FZK3JJJK.js.map → chunk-E5AHO65E.js.map} +0 -0
- /package/dist/{chunk-F3EKFGUS.js.map → chunk-FC3XK5JT.js.map} +0 -0
- /package/dist/{chunk-3KBK5LU4.js.map → chunk-GX2BYNCT.js.map} +0 -0
- /package/dist/{chunk-55LSDABW.js.map → chunk-HBTT7YQX.js.map} +0 -0
- /package/dist/{chunk-PYIUDUGS.js.map → chunk-HOCEGVGQ.js.map} +0 -0
- /package/dist/{chunk-5JQMX2EH.js.map → chunk-ICV32FPK.js.map} +0 -0
- /package/dist/{chunk-37JZR7CY.js.map → chunk-IUKGIB2Q.js.map} +0 -0
- /package/dist/{chunk-OWGAXPRE.js.map → chunk-IWTYFS3D.js.map} +0 -0
- /package/dist/{chunk-FCOZ7DEC.js.map → chunk-JC5R7P44.js.map} +0 -0
- /package/dist/{chunk-IARAK3PK.js.map → chunk-KBBWY46Y.js.map} +0 -0
- /package/dist/{chunk-RNYDHIQL.js.map → chunk-KBF5GSGX.js.map} +0 -0
- /package/dist/{chunk-GLVXQU3E.js.map → chunk-KNXN47MO.js.map} +0 -0
- /package/dist/{chunk-J7OH6R4K.js.map → chunk-KXKLKJW4.js.map} +0 -0
- /package/dist/{chunk-PAJCRV7O.js.map → chunk-KYC4LIEU.js.map} +0 -0
- /package/dist/{chunk-R4IVPJHN.js.map → chunk-LEOXZY36.js.map} +0 -0
- /package/dist/{chunk-25G7PUTA.js.map → chunk-M5I354EE.js.map} +0 -0
- /package/dist/{chunk-26FSVNBL.js.map → chunk-MK2BSS44.js.map} +0 -0
- /package/dist/{chunk-UMH35AQV.js.map → chunk-MSVY7ULZ.js.map} +0 -0
- /package/dist/{chunk-5YBUFCFF.js.map → chunk-NNWK3PSY.js.map} +0 -0
- /package/dist/{chunk-X5QZAJDB.js.map → chunk-NSZ6J5DF.js.map} +0 -0
- /package/dist/{chunk-I6URUNTD.js.map → chunk-NUEFXLZU.js.map} +0 -0
- /package/dist/{chunk-DCVVCJVB.js.map → chunk-OQAODTYR.js.map} +0 -0
- /package/dist/{chunk-QYMMMKOO.js.map → chunk-OV4CMJGR.js.map} +0 -0
- /package/dist/{chunk-V76PHWLE.js.map → chunk-PEDZFFKW.js.map} +0 -0
- /package/dist/{chunk-BJ2XF2RC.js.map → chunk-Q2KVKTC2.js.map} +0 -0
- /package/dist/{chunk-QABECTNN.js.map → chunk-QTXQ6RNZ.js.map} +0 -0
- /package/dist/{chunk-P6TZ3IVN.js.map → chunk-RJ5522XX.js.map} +0 -0
- /package/dist/{chunk-CHK5VVMI.js.map → chunk-S6AQXDN4.js.map} +0 -0
- /package/dist/{chunk-MOQ5M46U.js.map → chunk-SZCHEDML.js.map} +0 -0
- /package/dist/{chunk-FWART3VA.js.map → chunk-VJ3NQK4K.js.map} +0 -0
- /package/dist/{chunk-3YKBGS3I.js.map → chunk-WNA6T3MA.js.map} +0 -0
- /package/dist/{chunk-7CZ6YXMO.js.map → chunk-WVCQ75OK.js.map} +0 -0
- /package/dist/{chunk-BTFTHF6Q.js.map → chunk-X66MXMR5.js.map} +0 -0
- /package/dist/{chunk-6PALJTC2.js.map → chunk-XJK2WIYN.js.map} +0 -0
- /package/dist/{chunk-5UOPIPZC.js.map → chunk-XQ7UYPVN.js.map} +0 -0
- /package/dist/{chunk-HU55NPHZ.js.map → chunk-Y2OCKFZ3.js.map} +0 -0
- /package/dist/{chunk-TCGVRKOS.js.map → chunk-YBFOBRTO.js.map} +0 -0
- /package/dist/{chunk-I6JJ6VJS.js.map → chunk-YLN33ADH.js.map} +0 -0
- /package/dist/{chunk-PVC2FBCQ.js.map → chunk-Z5YFRMG5.js.map} +0 -0
- /package/dist/{chunk-EU7HDMT3.js.map → chunk-ZWQFOXBR.js.map} +0 -0
- /package/dist/{collection-facade-EJVIN2BY.js.map → collection-facade-3RAXG2OU.js.map} +0 -0
- /package/dist/{computed-6FOFXQPE.js.map → computed-R62HGCO4.js.map} +0 -0
- /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-VNA4M3GP.js.map} +0 -0
- /package/dist/{delegation-IHXOASHV.js.map → delegation-ZKII5UBI.js.map} +0 -0
- /package/dist/{derive-CD3ZVIXK.js.map → derive-5D2C3WG4.js.map} +0 -0
- /package/dist/{enclave-KGEUW2GL.js.map → enclave-EUBEJGPG.js.map} +0 -0
- /package/dist/{executor-EUPYHCLU.js.map → executor-IL7SRNUZ.js.map} +0 -0
- /package/dist/{executor-KZ4B3PRT.js.map → executor-OUA2Y6YC.js.map} +0 -0
- /package/dist/{executor-MHUM2VZK.js.map → executor-WAEI6PDV.js.map} +0 -0
- /package/dist/{export-accessible-Z3NSZZHN.js.map → export-accessible-O55RKAGC.js.map} +0 -0
- /package/dist/{extract-partition-VSKT35JG.js.map → extract-partition-VBGCBA6Q.js.map} +0 -0
- /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-CI5BCMQM.js.map} +0 -0
- /package/dist/{find-OH4BEULF.js.map → find-FISGUWSK.js.map} +0 -0
- /package/dist/{issue-AEOL6RXA.js.map → issue-EQAWIYFQ.js.map} +0 -0
- /package/dist/{ledger-3LR3YO2W.js.map → ledger-AJA2SR3C.js.map} +0 -0
- /package/dist/{liberate-XSEPRWEA.js.map → liberate-SEGR4JLY.js.map} +0 -0
- /package/dist/{link-set-NSUIX6BR.js.map → link-set-YBAC2DQT.js.map} +0 -0
- /package/dist/{noydb-POVTIVQ6.js.map → noydb-AMEOU456.js.map} +0 -0
- /package/dist/{policy-Y7HL2KGA.js.map → policy-SDGRWVIL.js.map} +0 -0
- /package/dist/{post-register-KOFRTCDD.js.map → post-register-MROIUA5O.js.map} +0 -0
- /package/dist/{public-envelope-NC7SPNMV.js.map → public-envelope-J5PLQOW2.js.map} +0 -0
- /package/dist/{read-only-facade-5ADRJVTM.js.map → read-only-facade-UCYNRE56.js.map} +0 -0
- /package/dist/{register-3D6R2MKN.js.map → register-OVJKW7BS.js.map} +0 -0
- /package/dist/{registry-AI4E46PD.js.map → registry-5RJSK5AJ.js.map} +0 -0
- /package/dist/{registry-HSNQ4NBP.js.map → registry-DQRNTWRL.js.map} +0 -0
- /package/dist/{registry-WIX6QCV5.js.map → registry-LTGLERS7.js.map} +0 -0
- /package/dist/{request-withdrawal-GU4XS2R5.js.map → request-withdrawal-27O77D2V.js.map} +0 -0
- /package/dist/{reveal-5Y777N5Q.js.map → reveal-LT3I2K4P.js.map} +0 -0
- /package/dist/{revoke-ZFETCLYV.js.map → revoke-4N45G7D2.js.map} +0 -0
- /package/dist/{signer-GAIMQQ2J.js.map → signer-XJCOV7JD.js.map} +0 -0
- /package/dist/{stale-77LP2EEF.js.map → stale-IYYXEH3U.js.map} +0 -0
- /package/dist/{storage-KEXIXLGM.js.map → storage-Y44CAPE6.js.map} +0 -0
- /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-WKGAE2WI.js.map} +0 -0
- /package/dist/{verify-CAYGXYNO.js.map → verify-GH6CWVSW.js.map} +0 -0
- /package/dist/{walk-SMAE4IEI.js.map → walk-76UCFXYV.js.map} +0 -0
- /package/dist/{withdraw-accessible-Q7BULAN5.js.map → withdraw-accessible-6J2UH3IN.js.map} +0 -0
|
@@ -314,6 +314,24 @@ interface ForgetResult {
|
|
|
314
314
|
readonly sealedResidue: readonly string[];
|
|
315
315
|
/** The single `op:'forget'` ledger entry appended for this erasure. */
|
|
316
316
|
readonly ledgerEntry: LedgerEntry;
|
|
317
|
+
/** #622 — record-grain derived artifacts (MV rows, per-record derived copies) erased
|
|
318
|
+
* because their source subject was forgotten. Overlay outputs are intentionally out of
|
|
319
|
+
* scope here — an overlay is always sourced from an MV, never directly from a subject
|
|
320
|
+
* collection, so the personal-data-bearing MV rows it reads are already erased above. */
|
|
321
|
+
readonly derivedRecordsErased: number;
|
|
322
|
+
/** #622 — aggregate-grain targets (rollups) recomputed without the forgotten contribution. */
|
|
323
|
+
readonly derivedAggregatesRecomputed: number;
|
|
324
|
+
/** #622 — `collection:id` derived writes SKIPPED because the target period is frozen
|
|
325
|
+
* (recompute deferred; the aggregate retains the forgotten contribution — audited). */
|
|
326
|
+
readonly derivedResidueFrozen: readonly string[];
|
|
327
|
+
/** #650 Task 5 (#648) — referencing records tombstoned via a `'ref'` edge's `cascade` policy. */
|
|
328
|
+
readonly lookupReferencesCascaded: number;
|
|
329
|
+
/** #650 Task 5 (#648) — referencing fields cleared via a `'ref'` edge's `nullify` policy. */
|
|
330
|
+
readonly lookupReferencesNullified: number;
|
|
331
|
+
/** #650 Task 5 review (Important fix) — `'ref'` edges whose compare-key could NOT be resolved,
|
|
332
|
+
* even from the LIVE pre-shred backing row — cascade/nullify propagation was SKIPPED for these.
|
|
333
|
+
* Always empty in the ordinary case; non-empty means the skip is reported, never silent. */
|
|
334
|
+
readonly lookupReferencesResidue: readonly string[];
|
|
317
335
|
}
|
|
318
336
|
|
|
319
337
|
/**
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../subject-index-
|
|
3
|
-
import '../describe-C6iHNlqJ.js';
|
|
1
|
+
import { bW as SyncStrategy } from '../index-DzhNI2vE.js';
|
|
2
|
+
import '../subject-index-CyOgGMJL.js';
|
|
4
3
|
import '../index-B9QdHytu.js';
|
|
5
4
|
import '@noy-db/attestation';
|
|
6
5
|
|
package/dist/sync/index.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
PresenceHandle,
|
|
3
3
|
SyncEngine,
|
|
4
4
|
SyncTransaction
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RMUXPHIH.js";
|
|
6
6
|
import "../chunk-VQNJ7UZL.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-VFQOE76I.js";
|
|
7
|
+
import "../chunk-XHD3L3JO.js";
|
|
8
|
+
import "../chunk-Z5YFRMG5.js";
|
|
9
|
+
import "../chunk-XQ7UYPVN.js";
|
|
10
|
+
import "../chunk-6MWUANRF.js";
|
|
11
|
+
import "../chunk-2KOSJTMU.js";
|
|
13
12
|
import "../chunk-LP7BEXCT.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-AUR7MRHA.js";
|
|
14
|
+
import "../chunk-UNJU345Q.js";
|
|
15
|
+
import "../chunk-CU62BBRB.js";
|
|
16
16
|
import "../chunk-PZ5AY32C.js";
|
|
17
17
|
|
|
18
18
|
// src/with-party/team/sync-active.ts
|
package/dist/team/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import '../subject-index-
|
|
4
|
-
import '../describe-C6iHNlqJ.js';
|
|
1
|
+
import { jz as TeamStrategy, c_ as NoydbStore, c8 as UnlockedKeyring } from '../index-DzhNI2vE.js';
|
|
2
|
+
export { e8 as BundleRecipient, fO as EnrollAuthenticatorOptions, fP as EnrollAuthenticatorWrappingDEKsOptions, fQ as EnrollAuthenticatorWrappingKEKOptions, gQ as ListUsersOptions, hm as NO_TEAM, hF as PaperRecoveryEntry, hR as PresenceHandle, ik as RecoverPassphraseInput, il as RecoverPassphraseResult, im as RecoverUserOptions, iq as RecoveryProof, iC as RotatePassphraseInput, j8 as SlotRewrapCeremony, j9 as SlotRewrapContext, ji as SyncEngine, jq as SyncTransaction, jy as TeamNotEnabledError, jN as UpdateAuthenticatorOptions, k6 as WrappedDeksBlob, kh as buildRecipientKeyringFile, ki as burnPaperRecoveryEntry, lC as changeSecret, lD as createOwnerKeyring, ko as deriveMagicLinkContentKey, kt as enrollAuthenticator, lE as ensureCollectionDEK, ky as evaluateExportCapability, kA as evaluateImportCapability, kD as findAuthenticator, lF as grant, kE as hasExportCapability, kF as hasImportCapability, kI as isMagicLinkGrantExpired, kS as listMagicLinkGrants, kT as listUsers, kU as listUsersWithEnvelopes, lG as loadKeyring, kX as loadPaperRecoveryEntries, k$ as magicLinkGrantRecordId, l0 as mintPaperRecoveryEntry, l2 as mintWrappedDeksBlob, lH as persistKeyring, l7 as readMagicLinkGrantRecord, kP as recoverPassphrase, l9 as recoverUser, ld as removeAuthenticator, lI as revoke, lj as revokeMagicLinkGrant, kQ as rotatePassphrase, ll as savePaperRecoveryEntries, lp as unwrapDeksFromBlob, lq as unwrapDeksFromPaperEntry, ls as unwrapMagicLinkGrant, lJ as updateAuthenticator, lK as updateKeyringIdentity, lB as writeMagicLinkGrant } from '../index-DzhNI2vE.js';
|
|
3
|
+
import '../subject-index-CyOgGMJL.js';
|
|
5
4
|
import '../index-B9QdHytu.js';
|
|
6
5
|
import '@noy-db/attestation';
|
|
7
6
|
|
package/dist/team/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
listCredentials,
|
|
6
6
|
putCredential,
|
|
7
7
|
withTeam
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FC3XK5JT.js";
|
|
9
9
|
import {
|
|
10
10
|
NO_TEAM,
|
|
11
11
|
deriveMagicLinkContentKey,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
unwrapMagicLinkGrant,
|
|
24
24
|
updateAuthenticator,
|
|
25
25
|
writeMagicLinkGrant
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-DEYAO3N6.js";
|
|
27
27
|
import {
|
|
28
28
|
burnPaperRecoveryEntry,
|
|
29
29
|
loadPaperRecoveryEntries,
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
savePaperRecoveryEntries,
|
|
33
33
|
unwrapDeksFromBlob,
|
|
34
34
|
unwrapDeksFromPaperEntry
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-VJ3NQK4K.js";
|
|
36
36
|
import {
|
|
37
37
|
PresenceHandle,
|
|
38
38
|
SyncEngine,
|
|
39
39
|
SyncTransaction
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-RMUXPHIH.js";
|
|
41
41
|
import "../chunk-VQNJ7UZL.js";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-MK2BSS44.js";
|
|
43
43
|
import {
|
|
44
44
|
SYNC_CREDENTIALS_COLLECTION,
|
|
45
45
|
buildRecipientKeyringFile,
|
|
@@ -57,19 +57,19 @@ import {
|
|
|
57
57
|
persistKeyring,
|
|
58
58
|
revoke,
|
|
59
59
|
updateKeyringIdentity
|
|
60
|
-
} from "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-VFQOE76I.js";
|
|
60
|
+
} from "../chunk-6CU3FN74.js";
|
|
61
|
+
import "../chunk-E5AHO65E.js";
|
|
62
|
+
import "../chunk-XHD3L3JO.js";
|
|
63
|
+
import "../chunk-Z5YFRMG5.js";
|
|
64
|
+
import "../chunk-XQ7UYPVN.js";
|
|
65
|
+
import "../chunk-6MWUANRF.js";
|
|
66
|
+
import "../chunk-2KOSJTMU.js";
|
|
68
67
|
import "../chunk-LP7BEXCT.js";
|
|
69
|
-
import "../chunk-
|
|
68
|
+
import "../chunk-AUR7MRHA.js";
|
|
69
|
+
import "../chunk-UNJU345Q.js";
|
|
70
70
|
import {
|
|
71
71
|
TeamNotEnabledError
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-CU62BBRB.js";
|
|
73
73
|
import "../chunk-PZ5AY32C.js";
|
|
74
74
|
export {
|
|
75
75
|
NO_TEAM,
|
package/dist/tiers/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../subject-index-
|
|
3
|
-
import '../describe-C6iHNlqJ.js';
|
|
1
|
+
export { lR as NO_TIERS, lS as TiersContext, jD as TiersNotEnabledError, lT as TiersStrategy, lU as assertDeclaredTier, lV as assertTiersEnabled, lW as classifySealedShred, lX as demote, lY as elevate, lZ as getAtTier, l_ as listAtTier, l$ as putAtTier, m0 as withTiers } from '../index-DzhNI2vE.js';
|
|
2
|
+
import '../subject-index-CyOgGMJL.js';
|
|
4
3
|
import '../index-B9QdHytu.js';
|
|
5
4
|
import '@noy-db/attestation';
|
package/dist/tiers/index.js
CHANGED
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
listAtTier,
|
|
10
10
|
putAtTier,
|
|
11
11
|
withTiers
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-VFQOE76I.js";
|
|
12
|
+
} from "../chunk-SSFC3IYA.js";
|
|
13
|
+
import "../chunk-MK2BSS44.js";
|
|
14
|
+
import "../chunk-XHD3L3JO.js";
|
|
15
|
+
import "../chunk-Z5YFRMG5.js";
|
|
16
|
+
import "../chunk-XQ7UYPVN.js";
|
|
17
|
+
import "../chunk-6MWUANRF.js";
|
|
18
|
+
import "../chunk-2KOSJTMU.js";
|
|
20
19
|
import "../chunk-LP7BEXCT.js";
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-AUR7MRHA.js";
|
|
21
|
+
import "../chunk-UNJU345Q.js";
|
|
22
22
|
import {
|
|
23
23
|
TiersNotEnabledError
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-CU62BBRB.js";
|
|
25
25
|
import "../chunk-PZ5AY32C.js";
|
|
26
26
|
export {
|
|
27
27
|
NO_TIERS,
|
package/dist/to/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../subject-index-
|
|
3
|
-
import '../describe-C6iHNlqJ.js';
|
|
1
|
+
export { dx as BundleVersionConflictError, fc as ConflictError, d0 as EncryptedEnvelope, gP as ListPageResult, hn as NetworkError, ht as NoydbBundleStore, bq as NoydbPodStore, c_ as NoydbStore, dB as PodVersionConflictError, jf as StoreCapabilities, jg as StoreCapabilityError, jh as StoreTime, jH as TxOp, jY as VaultSnapshot } from '../index-DzhNI2vE.js';
|
|
2
|
+
import '../subject-index-CyOgGMJL.js';
|
|
4
3
|
import '../index-B9QdHytu.js';
|
|
5
4
|
import '@noy-db/attestation';
|
package/dist/to/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bc as GuardStrategy, bi as GuardStrategyHandle, bd as GuardChange, be as GuardContext } from './index-DzhNI2vE.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a guard for a collection. Guards run on every `put()` /
|
package/dist/tx/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import '../subject-index-
|
|
4
|
-
import '../describe-C6iHNlqJ.js';
|
|
1
|
+
import { jE as TransactionInvariant, lM as TxStrategy } from '../index-DzhNI2vE.js';
|
|
2
|
+
export { lN as AmendmentTxOptions, jG as TxCollection, eb as TxContext, jI as TxVault, lk as runTransaction } from '../index-DzhNI2vE.js';
|
|
3
|
+
import '../subject-index-CyOgGMJL.js';
|
|
5
4
|
import '../index-B9QdHytu.js';
|
|
6
5
|
import '@noy-db/attestation';
|
|
7
6
|
|
package/dist/tx/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
TxContext,
|
|
4
4
|
TxVault,
|
|
5
5
|
runTransaction
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-JC5R7P44.js";
|
|
7
7
|
import "../chunk-ZJADGNYF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-CU62BBRB.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
|
|
11
11
|
// src/with-commit/tx/dry-run.ts
|
|
@@ -44,7 +44,7 @@ async function runDryRun(db, fn) {
|
|
|
44
44
|
const gctx = { existing: before, vault: facade, userId: v.userId, role: v.role };
|
|
45
45
|
try {
|
|
46
46
|
await registry.runChecks(op.collectionName, after, gctx);
|
|
47
|
-
const { GuardExecutor } = await import("../executor-
|
|
47
|
+
const { GuardExecutor } = await import("../executor-OUA2Y6YC.js");
|
|
48
48
|
for (const g of guards) {
|
|
49
49
|
await GuardExecutor.checkFrozenFields(g, op.id, before, after);
|
|
50
50
|
}
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { et as CollectionDescription, f5 as CollectionMeta, fB as DescribeOptions, fC as DescribedField, g3 as FieldMeta, iX as SemanticType } from '../index-DzhNI2vE.js';
|
|
2
|
+
import '../subject-index-CyOgGMJL.js';
|
|
3
|
+
import '../index-B9QdHytu.js';
|
|
4
|
+
import '@noy-db/attestation';
|
package/dist/util/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dV as ClassifiedEntry, dS as ClassifiedFieldSpec, dW as ClassifiedGroup } from './index-DzhNI2vE.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Configuration/write errors for classified fields. @module
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
blindedEqual,
|
|
3
3
|
evaluateKofN,
|
|
4
4
|
openVdigPayload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XQ7UYPVN.js";
|
|
6
6
|
import {
|
|
7
7
|
dualReadSealedSlot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6MWUANRF.js";
|
|
9
9
|
import {
|
|
10
10
|
VDIG_ITERATIONS,
|
|
11
11
|
normalizeForVerify,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
base64ToBuffer,
|
|
16
16
|
generateSalt
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AUR7MRHA.js";
|
|
18
18
|
import {
|
|
19
19
|
ClassifiedConfigError,
|
|
20
20
|
ClassifiedVerifyError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CU62BBRB.js";
|
|
22
22
|
import "./chunk-PZ5AY32C.js";
|
|
23
23
|
|
|
24
24
|
// src/kernel/enclave/classify/verify.ts
|
|
@@ -136,4 +136,4 @@ export {
|
|
|
136
136
|
verifyDigestField,
|
|
137
137
|
verifyTextField
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=verify-
|
|
139
|
+
//# sourceMappingURL=verify-GH6CWVSW.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-TQ3REHVF.js";
|
|
4
4
|
import {
|
|
5
5
|
derivePersistedSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HBTT7YQX.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPersistedSchema
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-VFQOE76I.js";
|
|
9
|
+
} from "./chunk-KXKLKJW4.js";
|
|
10
|
+
import "./chunk-XHD3L3JO.js";
|
|
11
|
+
import "./chunk-Z5YFRMG5.js";
|
|
12
|
+
import "./chunk-XQ7UYPVN.js";
|
|
13
|
+
import "./chunk-6MWUANRF.js";
|
|
14
|
+
import "./chunk-2KOSJTMU.js";
|
|
16
15
|
import "./chunk-LP7BEXCT.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AUR7MRHA.js";
|
|
17
|
+
import "./chunk-UNJU345Q.js";
|
|
18
|
+
import "./chunk-CU62BBRB.js";
|
|
19
19
|
import "./chunk-PZ5AY32C.js";
|
|
20
20
|
|
|
21
21
|
// src/with-shape/introspection/walk.ts
|
|
@@ -238,4 +238,4 @@ function summariseAggregateOp(value) {
|
|
|
238
238
|
export {
|
|
239
239
|
dumpVaultSchema
|
|
240
240
|
};
|
|
241
|
-
//# sourceMappingURL=walk-
|
|
241
|
+
//# sourceMappingURL=walk-76UCFXYV.js.map
|
package/dist/with/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { U as Unsubscribe, W as WriteEvent, a as WriteHook, b as WriteHookRegistry } from '../index-B9QdHytu.js';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import '../subject-index-
|
|
5
|
-
import '../describe-C6iHNlqJ.js';
|
|
2
|
+
import { c8 as UnlockedKeyring, c9 as ExportFormat } from '../index-DzhNI2vE.js';
|
|
3
|
+
export { ca as BusHandler, cb as GateDeleteEvent, cc as GateEventMap, cd as GateHandler, ce as GatePoint, cf as GatePutEvent, cg as LifecycleEventMap, ch as LifecyclePoint, ci as ServiceBus, cj as SubsystemBus } from '../index-DzhNI2vE.js';
|
|
4
|
+
import '../subject-index-CyOgGMJL.js';
|
|
6
5
|
import '@noy-db/attestation';
|
|
7
6
|
|
|
8
7
|
/**
|
package/dist/with/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
assertCanImport,
|
|
7
7
|
canExport,
|
|
8
8
|
canImport
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-VFQOE76I.js";
|
|
9
|
+
} from "../chunk-QTXQ6RNZ.js";
|
|
10
|
+
import "../chunk-6CU3FN74.js";
|
|
11
|
+
import "../chunk-E5AHO65E.js";
|
|
12
|
+
import "../chunk-XHD3L3JO.js";
|
|
13
|
+
import "../chunk-Z5YFRMG5.js";
|
|
14
|
+
import "../chunk-XQ7UYPVN.js";
|
|
15
|
+
import "../chunk-6MWUANRF.js";
|
|
16
|
+
import "../chunk-2KOSJTMU.js";
|
|
18
17
|
import "../chunk-LP7BEXCT.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-AUR7MRHA.js";
|
|
19
|
+
import "../chunk-UNJU345Q.js";
|
|
20
|
+
import "../chunk-CU62BBRB.js";
|
|
21
21
|
import "../chunk-PZ5AY32C.js";
|
|
22
22
|
export {
|
|
23
23
|
ServiceBus,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bK as MaterializedViewStrategy, bL as MaterializedViewStrategyHandle } from './index-DzhNI2vE.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a materialized view: a declared query whose result is
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bM as OverlayedViewStrategy, bV as OverlayedViewStrategyHandle } from './index-DzhNI2vE.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a read-shadow overlay: bind an MV-owned base collection to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bx as DerivationStrategy, bG as DerivationStrategyHandle } from './index-DzhNI2vE.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a deterministic derivation: one source collection → one or
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FROZEN_SNAPSHOTS_COLLECTION,
|
|
3
|
+
freezeAndDeleteClosure,
|
|
4
|
+
freezeSnapshotOnly,
|
|
5
|
+
randomId,
|
|
6
|
+
withdrawAccessibleData
|
|
7
|
+
} from "./chunk-GX2BYNCT.js";
|
|
8
|
+
import "./chunk-OQAODTYR.js";
|
|
9
|
+
import "./chunk-Q2KVKTC2.js";
|
|
10
|
+
import "./chunk-KNXN47MO.js";
|
|
11
|
+
import "./chunk-XHD3L3JO.js";
|
|
12
|
+
import "./chunk-Z5YFRMG5.js";
|
|
13
|
+
import "./chunk-XQ7UYPVN.js";
|
|
14
|
+
import "./chunk-6MWUANRF.js";
|
|
15
|
+
import "./chunk-2KOSJTMU.js";
|
|
16
|
+
import "./chunk-LP7BEXCT.js";
|
|
17
|
+
import "./chunk-AUR7MRHA.js";
|
|
18
|
+
import "./chunk-UNJU345Q.js";
|
|
19
|
+
import "./chunk-CU62BBRB.js";
|
|
20
|
+
import "./chunk-PZ5AY32C.js";
|
|
21
|
+
export {
|
|
22
|
+
FROZEN_SNAPSHOTS_COLLECTION,
|
|
23
|
+
freezeAndDeleteClosure,
|
|
24
|
+
freezeSnapshotOnly,
|
|
25
|
+
randomId,
|
|
26
|
+
withdrawAccessibleData
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=withdraw-accessible-6J2UH3IN.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/hub",
|
|
3
|
-
"version": "0.3.0-pre.
|
|
3
|
+
"version": "0.3.0-pre.9",
|
|
4
4
|
"description": "Zero-knowledge, offline-first, encrypted document store — core library with AES-256-GCM, PBKDF2, multi-user keyring, and sync engine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vLannaAi <vicio@lanna.ai>",
|
|
@@ -200,14 +200,14 @@
|
|
|
200
200
|
"node": ">=22.0.0"
|
|
201
201
|
},
|
|
202
202
|
"dependencies": {
|
|
203
|
-
"@noy-db/attestation": "0.3.0-pre.
|
|
203
|
+
"@noy-db/attestation": "0.3.0-pre.9"
|
|
204
204
|
},
|
|
205
205
|
"devDependencies": {
|
|
206
206
|
"@types/node": "^22.0.0",
|
|
207
207
|
"esbuild": "^0.25.0",
|
|
208
208
|
"zod": "^4.0.0",
|
|
209
209
|
"zod-to-json-schema": "^3.25.2",
|
|
210
|
-
"@noy-db/on-shamir": "0.3.0-pre.
|
|
210
|
+
"@noy-db/on-shamir": "0.3.0-pre.9"
|
|
211
211
|
},
|
|
212
212
|
"peerDependencies": {
|
|
213
213
|
"zod-to-json-schema": "^3.25.0"
|
package/dist/api-JDWL67WL.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UserApi,
|
|
3
|
-
createUserApi
|
|
4
|
-
} from "./chunk-GDOOG5YQ.js";
|
|
5
|
-
import "./chunk-FZK3JJJK.js";
|
|
6
|
-
import "./chunk-7TAV3BFQ.js";
|
|
7
|
-
import "./chunk-PVC2FBCQ.js";
|
|
8
|
-
import "./chunk-5UOPIPZC.js";
|
|
9
|
-
import "./chunk-UWZ7O4NR.js";
|
|
10
|
-
import "./chunk-REWTMYSF.js";
|
|
11
|
-
import "./chunk-VFQOE76I.js";
|
|
12
|
-
import "./chunk-LP7BEXCT.js";
|
|
13
|
-
import "./chunk-5HZULLHE.js";
|
|
14
|
-
import "./chunk-OJ64XMPJ.js";
|
|
15
|
-
import "./chunk-PZ5AY32C.js";
|
|
16
|
-
export {
|
|
17
|
-
UserApi,
|
|
18
|
-
createUserApi
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=api-JDWL67WL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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/**\n * Access operation recorded in an audit entry.\n *\n * Union-widening checklist (I-2) — these three sites widen together or a\n * downstream exhaustive switch breaks at its next in-range minor:\n * 1. `ConsentOp` here (public, re-exported at `index.ts`).\n * 2. `onAccess` op union on `kernel/collection-config.ts`.\n * 3. classified ctx `onAccess` op union on `with-shape/classified/strategy.ts`\n * (the `ClassifiedVerifyCtx` one — the `ClassifiedRevealCtx` one stays `'reveal'`-only).\n */\nexport type ConsentOp = 'get' | 'put' | 'delete' | 'reveal' | 'verify' | 'find'\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;AA+DxC,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":[]}
|
package/dist/chunk-47C4CI7R.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ClassifiedConfigError,
|
|
3
|
-
ClassifiedNotEnabledError
|
|
4
|
-
} from "./chunk-OJ64XMPJ.js";
|
|
5
|
-
|
|
6
|
-
// src/with-shape/classified/descriptor.ts
|
|
7
|
-
function isClassifiedFieldSpec(x) {
|
|
8
|
-
return typeof x === "object" && x !== null && x._noydbClassified === true;
|
|
9
|
-
}
|
|
10
|
-
function isClassifiedGroup(x) {
|
|
11
|
-
return typeof x === "object" && x !== null && x._noydbClassifiedGroup === true;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// src/with-shape/classified/errors.ts
|
|
15
|
-
var ClassifiedNeverStoredError = class extends Error {
|
|
16
|
-
constructor(collection, field) {
|
|
17
|
-
super(`Field "${field}" in collection "${collection}" is classified storage:'never' (e.g. a CVC) and must not be persisted. Validate it at capture and drop it before put().`);
|
|
18
|
-
this.collection = collection;
|
|
19
|
-
this.field = field;
|
|
20
|
-
this.name = "ClassifiedNeverStoredError";
|
|
21
|
-
}
|
|
22
|
-
collection;
|
|
23
|
-
field;
|
|
24
|
-
};
|
|
25
|
-
var ClassifiedValidationError = class extends Error {
|
|
26
|
-
constructor(collection, field, detail) {
|
|
27
|
-
super(`Classified field "${field}" in collection "${collection}" failed validation: ${detail}`);
|
|
28
|
-
this.collection = collection;
|
|
29
|
-
this.field = field;
|
|
30
|
-
this.name = "ClassifiedValidationError";
|
|
31
|
-
}
|
|
32
|
-
collection;
|
|
33
|
-
field;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// src/with-shape/classified/resolve.ts
|
|
37
|
-
function resolveClassifiedFields(collection, config) {
|
|
38
|
-
const byField = {};
|
|
39
|
-
const claim = (field, spec) => {
|
|
40
|
-
if (byField[field] !== void 0) {
|
|
41
|
-
throw new ClassifiedConfigError(
|
|
42
|
-
collection,
|
|
43
|
-
`field "${field}" is claimed twice \u2014 storage forms are mutually exclusive per field (R5): a field is digest-only OR recoverable OR never, exactly one`
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
byField[field] = spec;
|
|
47
|
-
};
|
|
48
|
-
for (const [key, entry] of Object.entries(config)) {
|
|
49
|
-
if (isClassifiedGroup(entry)) {
|
|
50
|
-
for (const [field, spec] of Object.entries(entry.members)) claim(field, spec);
|
|
51
|
-
} else {
|
|
52
|
-
claim(key, entry);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const riderComputed = {};
|
|
56
|
-
for (const [field, spec] of Object.entries(byField)) {
|
|
57
|
-
for (const [name, rider] of Object.entries(spec.riders ?? {})) {
|
|
58
|
-
const companion = `${field}_${name}`;
|
|
59
|
-
if (byField[companion] !== void 0 || riderComputed[companion] !== void 0) {
|
|
60
|
-
throw new ClassifiedConfigError(collection, `rider companion "${companion}" collides with a declared field`);
|
|
61
|
-
}
|
|
62
|
-
riderComputed[companion] = (record) => record[field] === void 0 ? void 0 : rider(record[field]);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return { byField, riderComputed };
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// src/with-shape/classified/write.ts
|
|
69
|
-
function enforceClassifiedWrite(record, byField, collection) {
|
|
70
|
-
for (const [field, spec] of Object.entries(byField)) {
|
|
71
|
-
const value = record[field];
|
|
72
|
-
if (value === void 0) continue;
|
|
73
|
-
if (value === null && spec.storage === "digest-only") continue;
|
|
74
|
-
if (spec.storage === "never") throw new ClassifiedNeverStoredError(collection, field);
|
|
75
|
-
const problem = spec.validate?.(value) ?? null;
|
|
76
|
-
if (problem !== null) throw new ClassifiedValidationError(collection, field, problem);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// src/with-shape/classified/strategy.ts
|
|
81
|
-
var NO_CLASSIFIED = {
|
|
82
|
-
async reveal() {
|
|
83
|
-
throw new ClassifiedNotEnabledError();
|
|
84
|
-
},
|
|
85
|
-
async verify() {
|
|
86
|
-
throw new ClassifiedNotEnabledError();
|
|
87
|
-
},
|
|
88
|
-
async verifyText() {
|
|
89
|
-
throw new ClassifiedNotEnabledError();
|
|
90
|
-
},
|
|
91
|
-
async matchGroup() {
|
|
92
|
-
throw new ClassifiedNotEnabledError();
|
|
93
|
-
},
|
|
94
|
-
async computeTarget() {
|
|
95
|
-
throw new ClassifiedNotEnabledError();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
isClassifiedFieldSpec,
|
|
101
|
-
isClassifiedGroup,
|
|
102
|
-
ClassifiedNeverStoredError,
|
|
103
|
-
ClassifiedValidationError,
|
|
104
|
-
resolveClassifiedFields,
|
|
105
|
-
enforceClassifiedWrite,
|
|
106
|
-
NO_CLASSIFIED
|
|
107
|
-
};
|
|
108
|
-
//# sourceMappingURL=chunk-47C4CI7R.js.map
|