@noy-db/hub 0.4.0-pre.3 → 0.4.0-pre.5
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/README.md +2 -2
- package/dist/aggregate/index.js +4 -4
- package/dist/api-22ES33N3.js +20 -0
- package/dist/as/index.js +11 -11
- package/dist/attestation/index.js +20 -20
- package/dist/{backup-JL2GOTYQ.js → backup-YCHAC575.js} +11 -11
- package/dist/blobs/index.js +12 -12
- package/dist/broker/index.js +12 -12
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.js +29 -29
- package/dist/{chunk-2RMDVWGB.js → chunk-2CRZOVDI.js} +2 -2
- package/dist/{chunk-T7S4V52L.js → chunk-2PDBYF2O.js} +4 -4
- package/dist/{chunk-WJDYZP3U.js → chunk-3LJYHE7S.js} +36 -36
- package/dist/chunk-3LJYHE7S.js.map +1 -0
- package/dist/{chunk-CCT4WZI6.js → chunk-3OWYOECI.js} +5 -5
- package/dist/chunk-3OWYOECI.js.map +1 -0
- package/dist/{chunk-L4OA7G5T.js → chunk-522MBPE5.js} +2 -2
- package/dist/{chunk-ZJGZDOQO.js → chunk-5ATANZSW.js} +6 -6
- package/dist/{chunk-M25ZIEB2.js → chunk-5HSSTOOG.js} +2 -2
- package/dist/{chunk-LLVW4V7R.js → chunk-5WLDZZ6S.js} +3 -3
- package/dist/{chunk-7B4GPCX7.js → chunk-6RPWILRH.js} +5 -5
- package/dist/{chunk-IGM563N5.js → chunk-6SYOHUHM.js} +6 -6
- package/dist/chunk-6SYOHUHM.js.map +1 -0
- package/dist/{chunk-HGVFJL63.js → chunk-7BIJS6II.js} +15 -5
- package/dist/{chunk-HGVFJL63.js.map → chunk-7BIJS6II.js.map} +1 -1
- package/dist/{chunk-KR5EGWI4.js → chunk-7ICV4ASA.js} +5 -5
- package/dist/{chunk-J3VW4J4E.js → chunk-7LP7FFJ2.js} +2 -2
- package/dist/chunk-7LP7FFJ2.js.map +1 -0
- package/dist/{chunk-5P5AAXYA.js → chunk-7U6AB7DZ.js} +7 -7
- package/dist/chunk-7U6AB7DZ.js.map +1 -0
- package/dist/{chunk-KMONEHDJ.js → chunk-AFAPBZAA.js} +2 -2
- package/dist/{chunk-GBEXTC6Z.js → chunk-BAAUFCJK.js} +3 -3
- package/dist/chunk-BAAUFCJK.js.map +1 -0
- package/dist/{chunk-CGPO3ZYB.js → chunk-BY5YBSXA.js} +2 -2
- package/dist/{chunk-3O62PVDW.js → chunk-CJVEAVYH.js} +5 -5
- package/dist/chunk-CJVEAVYH.js.map +1 -0
- package/dist/{chunk-3XVOLB75.js → chunk-CKUYQO2P.js} +3 -3
- package/dist/{chunk-2JZ763FV.js → chunk-D4LAJ737.js} +2 -2
- package/dist/{chunk-OOTTXUNV.js → chunk-DYZ5CCVM.js} +2 -2
- package/dist/{chunk-LUH2MPEF.js → chunk-EEZCB74X.js} +808 -1175
- package/dist/chunk-EEZCB74X.js.map +1 -0
- package/dist/{chunk-N4FZ6ITM.js → chunk-EGU4PWQW.js} +2 -2
- package/dist/{chunk-JKWNG3TM.js → chunk-FHHYCBBP.js} +2 -2
- package/dist/{chunk-UBF7HTOR.js → chunk-FIP7KI2P.js} +40 -40
- package/dist/chunk-FIP7KI2P.js.map +1 -0
- package/dist/{chunk-N4A3DCBT.js → chunk-FTCGEUOY.js} +8 -8
- package/dist/{chunk-5BB3N4KU.js → chunk-G4MFQXYX.js} +2 -2
- package/dist/{chunk-PEY6ZTCF.js → chunk-GEEJPID6.js} +9 -9
- package/dist/{chunk-PEY6ZTCF.js.map → chunk-GEEJPID6.js.map} +1 -1
- package/dist/{chunk-KVHWEPT2.js → chunk-GHEMAVTN.js} +2 -2
- package/dist/{chunk-OVFCAS7U.js → chunk-GP54LU5N.js} +9 -9
- package/dist/{chunk-XW7NWO4A.js → chunk-GTNRMJYH.js} +2 -2
- package/dist/{chunk-J6U4BOKP.js → chunk-HAPY7WFP.js} +12 -12
- package/dist/{chunk-GU5AYA2Q.js → chunk-HQKRZIX6.js} +5 -5
- package/dist/{chunk-OWE4BNTM.js → chunk-I2XEBEEF.js} +4 -4
- package/dist/{chunk-WEC3JGBA.js → chunk-IGLU4ME7.js} +3 -3
- package/dist/{chunk-BZK6JEX4.js → chunk-ILM6X6CP.js} +5 -5
- package/dist/{chunk-2KL6NDD4.js → chunk-J5TEU77Q.js} +4 -4
- package/dist/{chunk-UEO5CHOP.js → chunk-JAMDDLIM.js} +13 -13
- package/dist/chunk-JAMDDLIM.js.map +1 -0
- package/dist/{chunk-V7RGFJ3Z.js → chunk-JIHH26WQ.js} +6 -6
- package/dist/{chunk-XGVDLQJE.js → chunk-JN3SGXJE.js} +3 -3
- package/dist/{chunk-XULHFSHO.js → chunk-K4BWPNJO.js} +5 -5
- package/dist/chunk-K4BWPNJO.js.map +1 -0
- package/dist/{chunk-BZEPJJOK.js → chunk-K7BADAOS.js} +4 -4
- package/dist/{chunk-OWLPX2GI.js → chunk-KJTIAECI.js} +17 -17
- package/dist/chunk-KJTIAECI.js.map +1 -0
- package/dist/{chunk-SN75YVM5.js → chunk-L2CAWCQL.js} +18 -18
- package/dist/{chunk-SN75YVM5.js.map → chunk-L2CAWCQL.js.map} +1 -1
- package/dist/{chunk-MSO2C3KG.js → chunk-LC7DSMHR.js} +2 -2
- package/dist/{chunk-JA5B3SLH.js → chunk-M6QA2KK2.js} +2 -2
- package/dist/{chunk-IUIVDVXM.js → chunk-MUPZ6IZX.js} +2 -2
- package/dist/{chunk-QAFWRGVD.js → chunk-OGVE4IJW.js} +7 -7
- package/dist/{chunk-BCOKZC4B.js → chunk-OHV6T5JB.js} +19 -19
- package/dist/chunk-OHV6T5JB.js.map +1 -0
- package/dist/{chunk-25ZDB25Z.js → chunk-OMSKGLYA.js} +3 -3
- package/dist/chunk-OMSKGLYA.js.map +1 -0
- package/dist/{chunk-2U7Y7BNJ.js → chunk-ONB627HU.js} +2 -2
- package/dist/{chunk-GYB2QK5H.js → chunk-OWLZONGX.js} +2 -2
- package/dist/{chunk-YHPUDB7Q.js → chunk-OWOT7CFC.js} +2 -2
- package/dist/{chunk-VEX6G3YL.js → chunk-P4NUJVWL.js} +2 -2
- package/dist/{chunk-NM4LVUXH.js → chunk-PTT2NB46.js} +2 -2
- package/dist/{chunk-2ITLQZV5.js → chunk-PWWWMRT7.js} +2 -2
- package/dist/{chunk-GS3Q2KOZ.js → chunk-QBOQI6PG.js} +2 -2
- package/dist/{chunk-JIMEB4C6.js → chunk-QMMOMBH6.js} +4 -4
- package/dist/{chunk-QDNVHA2F.js → chunk-QMZ5A6FQ.js} +2 -2
- package/dist/{chunk-FLHOTGOO.js → chunk-QVGEVZ5F.js} +3 -3
- package/dist/{chunk-AFBJHD55.js → chunk-QZJEYZ4I.js} +5 -5
- package/dist/{chunk-V3YB7RGR.js → chunk-R2N37AA6.js} +3 -3
- package/dist/{chunk-JLHKBAFY.js → chunk-RWW3I3PO.js} +3 -3
- package/dist/{chunk-IGAIOGCN.js → chunk-S4YERMGJ.js} +4 -4
- package/dist/{chunk-OGFPMCSP.js → chunk-SBOHNJUD.js} +2 -2
- package/dist/{chunk-QXPOEAKR.js → chunk-SC4JLMZI.js} +2 -2
- package/dist/{chunk-EDC6MLXV.js → chunk-SEU6QHH4.js} +2 -2
- package/dist/{chunk-F4COUZLL.js → chunk-TMR64XPL.js} +2 -2
- package/dist/{chunk-DEQ2JTBR.js → chunk-TNATF3HB.js} +3 -3
- package/dist/{chunk-GZ2GKOF6.js → chunk-TNJVDG2B.js} +3 -3
- package/dist/{chunk-5OZCCLNC.js → chunk-TSNRZSRC.js} +2 -2
- package/dist/{chunk-QCUH2G77.js → chunk-UTEATWHO.js} +6 -6
- package/dist/{chunk-JA5O7UEZ.js → chunk-UVBHM7AK.js} +6 -6
- package/dist/chunk-UVBHM7AK.js.map +1 -0
- package/dist/{chunk-HKR25MGX.js → chunk-V5JUAW4M.js} +10 -10
- package/dist/chunk-V5JUAW4M.js.map +1 -0
- package/dist/{chunk-YGBIBOCR.js → chunk-VEGQYPCP.js} +7 -7
- package/dist/{chunk-25G7U6RD.js → chunk-WQN5SM7P.js} +2 -2
- package/dist/{chunk-NOT7XA7Q.js → chunk-X3MWEFPT.js} +5 -5
- package/dist/chunk-XUFAFHQM.js +78 -0
- package/dist/chunk-XUFAFHQM.js.map +1 -0
- package/dist/{chunk-MEKAMERX.js → chunk-YCAJDK4O.js} +29 -29
- package/dist/chunk-YCAJDK4O.js.map +1 -0
- package/dist/{chunk-BVZGNMVM.js → chunk-YFFEF6HR.js} +3 -3
- package/dist/{chunk-H4SMS4O2.js → chunk-YJ3TREAC.js} +2 -2
- package/dist/{chunk-5SZ24DL5.js → chunk-YQQPNXNO.js} +6 -6
- package/dist/{chunk-5BHNQNBI.js → chunk-YTW6ZIPD.js} +1 -1
- package/dist/chunk-YTW6ZIPD.js.map +1 -0
- package/dist/{chunk-EW4HFWGJ.js → chunk-YWZEDG7F.js} +6 -6
- package/dist/{chunk-2VUISNGP.js → chunk-YXIVUWDU.js} +5 -5
- package/dist/{chunk-YG2EG6CB.js → chunk-YXZNGHID.js} +4 -4
- package/dist/{chunk-QYJIOWKN.js → chunk-YZN6NRTR.js} +9 -9
- package/dist/{chunk-IZX3WZBF.js → chunk-YZNKFYDC.js} +4 -4
- package/dist/{chunk-E2R5NRZD.js → chunk-Z4D3YGAB.js} +2 -2
- package/dist/{chunk-STR7WBOB.js → chunk-ZUDAK436.js} +2 -2
- package/dist/{chunk-ITI3SJRB.js → chunk-ZX5FNWH7.js} +2 -2
- package/dist/classified/index.js +5 -5
- package/dist/{classified-marker-7S5IEP6Q.js → classified-marker-52P3D72W.js} +3 -3
- package/dist/collection-facade-XKCFHSLR.js +44 -0
- package/dist/{computed-WZNKRLCY.js → computed-33DRJDOC.js} +3 -3
- package/dist/consent/index.js +9 -9
- package/dist/{cover-B5MY43CK.js → cover-5BSNJREH.js} +4 -4
- package/dist/{dead-filter-KRRD57MR.js → dead-filter-JXVCKS6W.js} +2 -2
- package/dist/delegation-WWZPEDK2.js +25 -0
- package/dist/derivations/index.js +12 -12
- package/dist/derive-CWWFEQ4N.js +21 -0
- package/dist/dispatch-PKQQFDBT.js +193 -0
- package/dist/dispatch-PKQQFDBT.js.map +1 -0
- package/dist/dispatch-SMXUO7W5.js +72 -0
- package/dist/dispatch-SMXUO7W5.js.map +1 -0
- package/dist/{enclave-YFKA3GJT.js → enclave-I5H3GINP.js} +11 -11
- package/dist/executor-FCJEH3FU.js +9 -0
- package/dist/executor-OHET7TF7.js +9 -0
- package/dist/executor-SHYLIBOM.js +26 -0
- package/dist/export-accessible-FBL6TDSK.js +23 -0
- package/dist/extract-partition-ZYIRYMTI.js +38 -0
- package/dist/{fanout-sidecar-HJV3A7PM.js → fanout-sidecar-WWXVHHUH.js} +9 -9
- package/dist/find-LEBUXVL7.js +11 -0
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.js +3 -3
- package/dist/history/index.js +12 -12
- package/dist/i18n/index.js +14 -14
- package/dist/index.d.ts +13 -9
- package/dist/index.js +119 -118
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-F76PAGIR.js +19 -0
- package/dist/kernel/collection-config.d.ts +11 -69
- package/dist/kernel/collection.d.ts +10 -22
- package/dist/kernel/enclave/crypto.d.ts +8 -8
- package/dist/kernel/enclave/index.d.ts +2 -2
- package/dist/kernel/errors.d.ts +20 -20
- package/dist/kernel/noydb.d.ts +43 -103
- package/dist/kernel/types.d.ts +82 -41
- package/dist/kernel/validation.d.ts +33 -33
- package/dist/kernel/vault.d.ts +31 -215
- package/dist/kernel/via/dispatch.d.ts +7 -0
- package/dist/{ledger-SW6QQOAV.js → ledger-M2BKCNVS.js} +11 -11
- package/dist/liberate-ZP7UB57K.js +24 -0
- package/dist/{link-set-GNGGCFI4.js → link-set-ZU4E5J5S.js} +11 -11
- package/dist/materialized-views/index.js +19 -19
- package/dist/noydb-BNDGEK5X.js +71 -0
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +13 -13
- package/dist/pod/index.js +11 -11
- package/dist/{policy-EAXSJNOT.js → policy-IY2YEA3A.js} +5 -5
- package/dist/port/at/index.d.ts +4 -4
- package/dist/port/with/archive-strategy.d.ts +31 -0
- package/dist/port/with/collection-options.d.ts +171 -0
- package/dist/port/with/strategies.d.ts +134 -0
- package/dist/port/with/team-strategy.d.ts +1 -1
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-A7HCFBP5.js → post-register-XIAHB6KF.js} +6 -6
- package/dist/query/index.js +6 -6
- package/dist/register-HB4TQZSV.js +23 -0
- package/dist/registry-6BMBFEXT.js +19 -0
- package/dist/registry-7CZWF3EQ.js +9 -0
- package/dist/registry-JOFO7RAH.js +18 -0
- package/dist/request-withdrawal-UN3TRHWI.js +31 -0
- package/dist/{reveal-PB3YG544.js → reveal-VWXRV2XU.js} +6 -6
- package/dist/revoke-OLO2OVR7.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.js +12 -12
- package/dist/{seed-EKF4DIBB.js → seed-CDBFOTIK.js} +12 -12
- package/dist/seed-CDBFOTIK.js.map +1 -0
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-MGGKPYAN.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/{stale-4UNPHWOU.js → stale-NBROTA66.js} +10 -10
- package/dist/storage-3R37QZLA.js +23 -0
- package/dist/{store-coordination-provider-3AELCZ4Y.js → store-coordination-provider-P3IU5JHD.js} +3 -3
- package/dist/sync/index.js +10 -10
- package/dist/team/index.js +20 -20
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.js +1 -1
- package/dist/tx/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/{verify-MXN66IIH.js → verify-5X37OXRY.js} +5 -5
- package/dist/{walk-H4YE52S2.js → walk-E3OVLBFR.js} +11 -11
- package/dist/with/index.js +11 -11
- package/dist/with-audit/portability/export-accessible.d.ts +4 -4
- package/dist/with-audit/portability/request-withdrawal.d.ts +3 -3
- package/dist/with-audit/portability/withdraw-accessible.d.ts +2 -2
- package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
- package/dist/with-cargo/adopt-partition.d.ts +7 -7
- package/dist/with-cargo/index.d.ts +1 -1
- package/dist/with-commit/history/time-machine.d.ts +2 -2
- package/dist/with-formula/derivations/dispatch.d.ts +98 -0
- package/dist/with-formula/materialized-views/dispatch.d.ts +75 -0
- package/dist/with-party/custody/liberate.d.ts +3 -3
- package/dist/with-party/session/dev-unlock.d.ts +2 -2
- package/dist/with-party/session/session.d.ts +2 -2
- package/dist/with-party/team/deed.d.ts +8 -8
- package/dist/with-party/team/index.d.ts +2 -2
- package/dist/with-party/team/keyring.d.ts +19 -19
- package/dist/with-party/team/{managed-passphrase.d.ts → managed-secret.d.ts} +27 -27
- package/dist/with-party/team/noydb-facade.d.ts +41 -41
- package/dist/with-party/team/peer-recover.d.ts +13 -13
- package/dist/with-party/team/recovery.d.ts +5 -5
- package/dist/with-party/team/rotate-recover.d.ts +30 -30
- package/dist/with-pod/bundle.d.ts +30 -30
- package/dist/with-pod/format.d.ts +2 -2
- package/dist/withdraw-accessible-Q2EMATCU.js +28 -0
- package/package.json +3 -3
- package/dist/api-UPAT2O3M.js +0 -20
- package/dist/chunk-25ZDB25Z.js.map +0 -1
- package/dist/chunk-3O62PVDW.js.map +0 -1
- package/dist/chunk-5BHNQNBI.js.map +0 -1
- package/dist/chunk-5P5AAXYA.js.map +0 -1
- package/dist/chunk-BCOKZC4B.js.map +0 -1
- package/dist/chunk-CCT4WZI6.js.map +0 -1
- package/dist/chunk-GBEXTC6Z.js.map +0 -1
- package/dist/chunk-HKR25MGX.js.map +0 -1
- package/dist/chunk-IGM563N5.js.map +0 -1
- package/dist/chunk-J3VW4J4E.js.map +0 -1
- package/dist/chunk-JA5O7UEZ.js.map +0 -1
- package/dist/chunk-LUH2MPEF.js.map +0 -1
- package/dist/chunk-MEKAMERX.js.map +0 -1
- package/dist/chunk-OWLPX2GI.js.map +0 -1
- package/dist/chunk-UBF7HTOR.js.map +0 -1
- package/dist/chunk-UEO5CHOP.js.map +0 -1
- package/dist/chunk-WJDYZP3U.js.map +0 -1
- package/dist/chunk-XULHFSHO.js.map +0 -1
- package/dist/collection-facade-ENLTJZBT.js +0 -44
- package/dist/delegation-UT76AQIG.js +0 -25
- package/dist/derive-SGRCCKVP.js +0 -21
- package/dist/executor-TEZYRDN3.js +0 -9
- package/dist/executor-WQQRU6DO.js +0 -9
- package/dist/executor-YORMIBWV.js +0 -26
- package/dist/export-accessible-HXMKW5LJ.js +0 -23
- package/dist/extract-partition-QGQ2R42J.js +0 -38
- package/dist/find-VV6PBIHK.js +0 -11
- package/dist/issue-7JJ4Z7E2.js +0 -19
- package/dist/liberate-FK7JI2QX.js +0 -24
- package/dist/noydb-KUX2TJMX.js +0 -70
- package/dist/register-YBMRLZLO.js +0 -23
- package/dist/registry-3LXKNXWI.js +0 -9
- package/dist/registry-4V4YQCXJ.js +0 -19
- package/dist/registry-ZULMLCJK.js +0 -18
- package/dist/request-withdrawal-SEVUEUDG.js +0 -31
- package/dist/revoke-5QULL5GT.js +0 -24
- package/dist/seed-EKF4DIBB.js.map +0 -1
- package/dist/signer-ZMH35FT4.js +0 -25
- package/dist/storage-QOZKQMID.js +0 -23
- package/dist/withdraw-accessible-HPOVNG2G.js +0 -28
- /package/dist/{api-UPAT2O3M.js.map → api-22ES33N3.js.map} +0 -0
- /package/dist/{backup-JL2GOTYQ.js.map → backup-YCHAC575.js.map} +0 -0
- /package/dist/{chunk-2RMDVWGB.js.map → chunk-2CRZOVDI.js.map} +0 -0
- /package/dist/{chunk-T7S4V52L.js.map → chunk-2PDBYF2O.js.map} +0 -0
- /package/dist/{chunk-L4OA7G5T.js.map → chunk-522MBPE5.js.map} +0 -0
- /package/dist/{chunk-ZJGZDOQO.js.map → chunk-5ATANZSW.js.map} +0 -0
- /package/dist/{chunk-M25ZIEB2.js.map → chunk-5HSSTOOG.js.map} +0 -0
- /package/dist/{chunk-LLVW4V7R.js.map → chunk-5WLDZZ6S.js.map} +0 -0
- /package/dist/{chunk-7B4GPCX7.js.map → chunk-6RPWILRH.js.map} +0 -0
- /package/dist/{chunk-KR5EGWI4.js.map → chunk-7ICV4ASA.js.map} +0 -0
- /package/dist/{chunk-KMONEHDJ.js.map → chunk-AFAPBZAA.js.map} +0 -0
- /package/dist/{chunk-CGPO3ZYB.js.map → chunk-BY5YBSXA.js.map} +0 -0
- /package/dist/{chunk-3XVOLB75.js.map → chunk-CKUYQO2P.js.map} +0 -0
- /package/dist/{chunk-2JZ763FV.js.map → chunk-D4LAJ737.js.map} +0 -0
- /package/dist/{chunk-OOTTXUNV.js.map → chunk-DYZ5CCVM.js.map} +0 -0
- /package/dist/{chunk-N4FZ6ITM.js.map → chunk-EGU4PWQW.js.map} +0 -0
- /package/dist/{chunk-JKWNG3TM.js.map → chunk-FHHYCBBP.js.map} +0 -0
- /package/dist/{chunk-N4A3DCBT.js.map → chunk-FTCGEUOY.js.map} +0 -0
- /package/dist/{chunk-5BB3N4KU.js.map → chunk-G4MFQXYX.js.map} +0 -0
- /package/dist/{chunk-KVHWEPT2.js.map → chunk-GHEMAVTN.js.map} +0 -0
- /package/dist/{chunk-OVFCAS7U.js.map → chunk-GP54LU5N.js.map} +0 -0
- /package/dist/{chunk-XW7NWO4A.js.map → chunk-GTNRMJYH.js.map} +0 -0
- /package/dist/{chunk-J6U4BOKP.js.map → chunk-HAPY7WFP.js.map} +0 -0
- /package/dist/{chunk-GU5AYA2Q.js.map → chunk-HQKRZIX6.js.map} +0 -0
- /package/dist/{chunk-OWE4BNTM.js.map → chunk-I2XEBEEF.js.map} +0 -0
- /package/dist/{chunk-WEC3JGBA.js.map → chunk-IGLU4ME7.js.map} +0 -0
- /package/dist/{chunk-BZK6JEX4.js.map → chunk-ILM6X6CP.js.map} +0 -0
- /package/dist/{chunk-2KL6NDD4.js.map → chunk-J5TEU77Q.js.map} +0 -0
- /package/dist/{chunk-V7RGFJ3Z.js.map → chunk-JIHH26WQ.js.map} +0 -0
- /package/dist/{chunk-XGVDLQJE.js.map → chunk-JN3SGXJE.js.map} +0 -0
- /package/dist/{chunk-BZEPJJOK.js.map → chunk-K7BADAOS.js.map} +0 -0
- /package/dist/{chunk-MSO2C3KG.js.map → chunk-LC7DSMHR.js.map} +0 -0
- /package/dist/{chunk-JA5B3SLH.js.map → chunk-M6QA2KK2.js.map} +0 -0
- /package/dist/{chunk-IUIVDVXM.js.map → chunk-MUPZ6IZX.js.map} +0 -0
- /package/dist/{chunk-QAFWRGVD.js.map → chunk-OGVE4IJW.js.map} +0 -0
- /package/dist/{chunk-2U7Y7BNJ.js.map → chunk-ONB627HU.js.map} +0 -0
- /package/dist/{chunk-GYB2QK5H.js.map → chunk-OWLZONGX.js.map} +0 -0
- /package/dist/{chunk-YHPUDB7Q.js.map → chunk-OWOT7CFC.js.map} +0 -0
- /package/dist/{chunk-VEX6G3YL.js.map → chunk-P4NUJVWL.js.map} +0 -0
- /package/dist/{chunk-NM4LVUXH.js.map → chunk-PTT2NB46.js.map} +0 -0
- /package/dist/{chunk-2ITLQZV5.js.map → chunk-PWWWMRT7.js.map} +0 -0
- /package/dist/{chunk-GS3Q2KOZ.js.map → chunk-QBOQI6PG.js.map} +0 -0
- /package/dist/{chunk-JIMEB4C6.js.map → chunk-QMMOMBH6.js.map} +0 -0
- /package/dist/{chunk-QDNVHA2F.js.map → chunk-QMZ5A6FQ.js.map} +0 -0
- /package/dist/{chunk-FLHOTGOO.js.map → chunk-QVGEVZ5F.js.map} +0 -0
- /package/dist/{chunk-AFBJHD55.js.map → chunk-QZJEYZ4I.js.map} +0 -0
- /package/dist/{chunk-V3YB7RGR.js.map → chunk-R2N37AA6.js.map} +0 -0
- /package/dist/{chunk-JLHKBAFY.js.map → chunk-RWW3I3PO.js.map} +0 -0
- /package/dist/{chunk-IGAIOGCN.js.map → chunk-S4YERMGJ.js.map} +0 -0
- /package/dist/{chunk-OGFPMCSP.js.map → chunk-SBOHNJUD.js.map} +0 -0
- /package/dist/{chunk-QXPOEAKR.js.map → chunk-SC4JLMZI.js.map} +0 -0
- /package/dist/{chunk-EDC6MLXV.js.map → chunk-SEU6QHH4.js.map} +0 -0
- /package/dist/{chunk-F4COUZLL.js.map → chunk-TMR64XPL.js.map} +0 -0
- /package/dist/{chunk-DEQ2JTBR.js.map → chunk-TNATF3HB.js.map} +0 -0
- /package/dist/{chunk-GZ2GKOF6.js.map → chunk-TNJVDG2B.js.map} +0 -0
- /package/dist/{chunk-5OZCCLNC.js.map → chunk-TSNRZSRC.js.map} +0 -0
- /package/dist/{chunk-QCUH2G77.js.map → chunk-UTEATWHO.js.map} +0 -0
- /package/dist/{chunk-YGBIBOCR.js.map → chunk-VEGQYPCP.js.map} +0 -0
- /package/dist/{chunk-25G7U6RD.js.map → chunk-WQN5SM7P.js.map} +0 -0
- /package/dist/{chunk-NOT7XA7Q.js.map → chunk-X3MWEFPT.js.map} +0 -0
- /package/dist/{chunk-BVZGNMVM.js.map → chunk-YFFEF6HR.js.map} +0 -0
- /package/dist/{chunk-H4SMS4O2.js.map → chunk-YJ3TREAC.js.map} +0 -0
- /package/dist/{chunk-5SZ24DL5.js.map → chunk-YQQPNXNO.js.map} +0 -0
- /package/dist/{chunk-EW4HFWGJ.js.map → chunk-YWZEDG7F.js.map} +0 -0
- /package/dist/{chunk-2VUISNGP.js.map → chunk-YXIVUWDU.js.map} +0 -0
- /package/dist/{chunk-YG2EG6CB.js.map → chunk-YXZNGHID.js.map} +0 -0
- /package/dist/{chunk-QYJIOWKN.js.map → chunk-YZN6NRTR.js.map} +0 -0
- /package/dist/{chunk-IZX3WZBF.js.map → chunk-YZNKFYDC.js.map} +0 -0
- /package/dist/{chunk-E2R5NRZD.js.map → chunk-Z4D3YGAB.js.map} +0 -0
- /package/dist/{chunk-STR7WBOB.js.map → chunk-ZUDAK436.js.map} +0 -0
- /package/dist/{chunk-ITI3SJRB.js.map → chunk-ZX5FNWH7.js.map} +0 -0
- /package/dist/{classified-marker-7S5IEP6Q.js.map → classified-marker-52P3D72W.js.map} +0 -0
- /package/dist/{collection-facade-ENLTJZBT.js.map → collection-facade-XKCFHSLR.js.map} +0 -0
- /package/dist/{computed-WZNKRLCY.js.map → computed-33DRJDOC.js.map} +0 -0
- /package/dist/{cover-B5MY43CK.js.map → cover-5BSNJREH.js.map} +0 -0
- /package/dist/{dead-filter-KRRD57MR.js.map → dead-filter-JXVCKS6W.js.map} +0 -0
- /package/dist/{delegation-UT76AQIG.js.map → delegation-WWZPEDK2.js.map} +0 -0
- /package/dist/{derive-SGRCCKVP.js.map → derive-CWWFEQ4N.js.map} +0 -0
- /package/dist/{enclave-YFKA3GJT.js.map → enclave-I5H3GINP.js.map} +0 -0
- /package/dist/{executor-TEZYRDN3.js.map → executor-FCJEH3FU.js.map} +0 -0
- /package/dist/{executor-WQQRU6DO.js.map → executor-OHET7TF7.js.map} +0 -0
- /package/dist/{executor-YORMIBWV.js.map → executor-SHYLIBOM.js.map} +0 -0
- /package/dist/{export-accessible-HXMKW5LJ.js.map → export-accessible-FBL6TDSK.js.map} +0 -0
- /package/dist/{extract-partition-QGQ2R42J.js.map → extract-partition-ZYIRYMTI.js.map} +0 -0
- /package/dist/{fanout-sidecar-HJV3A7PM.js.map → fanout-sidecar-WWXVHHUH.js.map} +0 -0
- /package/dist/{find-VV6PBIHK.js.map → find-LEBUXVL7.js.map} +0 -0
- /package/dist/{issue-7JJ4Z7E2.js.map → issue-F76PAGIR.js.map} +0 -0
- /package/dist/{ledger-SW6QQOAV.js.map → ledger-M2BKCNVS.js.map} +0 -0
- /package/dist/{liberate-FK7JI2QX.js.map → liberate-ZP7UB57K.js.map} +0 -0
- /package/dist/{link-set-GNGGCFI4.js.map → link-set-ZU4E5J5S.js.map} +0 -0
- /package/dist/{noydb-KUX2TJMX.js.map → noydb-BNDGEK5X.js.map} +0 -0
- /package/dist/{policy-EAXSJNOT.js.map → policy-IY2YEA3A.js.map} +0 -0
- /package/dist/{post-register-A7HCFBP5.js.map → post-register-XIAHB6KF.js.map} +0 -0
- /package/dist/{register-YBMRLZLO.js.map → register-HB4TQZSV.js.map} +0 -0
- /package/dist/{registry-3LXKNXWI.js.map → registry-6BMBFEXT.js.map} +0 -0
- /package/dist/{registry-4V4YQCXJ.js.map → registry-7CZWF3EQ.js.map} +0 -0
- /package/dist/{registry-ZULMLCJK.js.map → registry-JOFO7RAH.js.map} +0 -0
- /package/dist/{request-withdrawal-SEVUEUDG.js.map → request-withdrawal-UN3TRHWI.js.map} +0 -0
- /package/dist/{reveal-PB3YG544.js.map → reveal-VWXRV2XU.js.map} +0 -0
- /package/dist/{revoke-5QULL5GT.js.map → revoke-OLO2OVR7.js.map} +0 -0
- /package/dist/{signer-ZMH35FT4.js.map → signer-MGGKPYAN.js.map} +0 -0
- /package/dist/{stale-4UNPHWOU.js.map → stale-NBROTA66.js.map} +0 -0
- /package/dist/{storage-QOZKQMID.js.map → storage-3R37QZLA.js.map} +0 -0
- /package/dist/{store-coordination-provider-3AELCZ4Y.js.map → store-coordination-provider-P3IU5JHD.js.map} +0 -0
- /package/dist/{verify-MXN66IIH.js.map → verify-5X37OXRY.js.map} +0 -0
- /package/dist/{walk-H4YE52S2.js.map → walk-E3OVLBFR.js.map} +0 -0
- /package/dist/{withdraw-accessible-HPOVNG2G.js.map → withdraw-accessible-Q2EMATCU.js.map} +0 -0
package/dist/indexing/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
decodeIdxId,
|
|
8
8
|
encodeIdxId,
|
|
9
9
|
isIdxId
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BY5YBSXA.js";
|
|
11
11
|
import {
|
|
12
12
|
CollectionIndexes
|
|
13
13
|
} from "../chunk-KPZS5QAQ.js";
|
|
14
14
|
import "../chunk-IGJCYUT5.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-6SYOHUHM.js";
|
|
16
16
|
import "../chunk-PZ5AY32C.js";
|
|
17
17
|
|
|
18
18
|
// src/with-lookup/indexing/active.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
issueAttestationCore
|
|
3
|
+
} from "./chunk-YXIVUWDU.js";
|
|
4
|
+
import "./chunk-QZJEYZ4I.js";
|
|
5
|
+
import "./chunk-ZJADGNYF.js";
|
|
6
|
+
import "./chunk-GEEJPID6.js";
|
|
7
|
+
import "./chunk-SC4JLMZI.js";
|
|
8
|
+
import "./chunk-5WLDZZ6S.js";
|
|
9
|
+
import "./chunk-5HSSTOOG.js";
|
|
10
|
+
import "./chunk-G4MFQXYX.js";
|
|
11
|
+
import "./chunk-LP7BEXCT.js";
|
|
12
|
+
import "./chunk-7U6AB7DZ.js";
|
|
13
|
+
import "./chunk-YTW6ZIPD.js";
|
|
14
|
+
import "./chunk-6SYOHUHM.js";
|
|
15
|
+
import "./chunk-PZ5AY32C.js";
|
|
16
|
+
export {
|
|
17
|
+
issueAttestationCore
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=issue-F76PAGIR.js.map
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* signature can't be exposed via a method without breaking `Collection<T>`
|
|
18
18
|
* assignability to `Collection<unknown>`).
|
|
19
19
|
*/
|
|
20
|
+
import type { StrategyBag } from '../port/with/strategies.js';
|
|
20
21
|
import type { NoydbStore, ConflictPolicy, CollectionConflictResolver, HistoryConfig, TierMode, CrossTierAccessEvent, VdigFieldPolicy } from './types.js';
|
|
21
22
|
import type { EnclaveKey } from './enclave/index.js';
|
|
22
23
|
import type { UnlockedKeyring } from '../with-party/team/keyring.js';
|
|
@@ -29,24 +30,15 @@ import type { SchemaFenceController } from '../with-shape/schema-update/fence-co
|
|
|
29
30
|
import type { StandardSchemaV1 } from './schema.js';
|
|
30
31
|
import type { LedgerStore } from '../with-commit/history/ledger/index.js';
|
|
31
32
|
import type { CrdtMode } from '../with-commit/crdt/crdt.js';
|
|
32
|
-
import type { CrdtStrategy } from './types.js';
|
|
33
|
-
import { type HistoryStrategy } from '../with-commit/history/strategy.js';
|
|
34
|
-
import { type I18nStrategy } from '../port/with/i18n-strategy.js';
|
|
35
|
-
import { type SyncStrategy } from '../with-party/team/sync-strategy.js';
|
|
36
|
-
import { type BlobStrategy } from '../port/with/blob-strategy.js';
|
|
37
|
-
import { type AggregateStrategy } from '../with-lookup/aggregate/strategy.js';
|
|
38
|
-
import { type TiersStrategy } from '../with-audit/tiers/strategy.js';
|
|
39
|
-
import { type SearchStrategy } from '../with-lookup/search/strategy.js';
|
|
40
33
|
import type { ObjectProjection } from '../with-shape/blobs/object-projection.js';
|
|
41
34
|
import type { BlobFieldsConfig } from '../with-shape/blobs/blob-compaction.js';
|
|
42
|
-
import type { IndexStrategy } from '../with-lookup/indexing/strategy.js';
|
|
43
35
|
import type { IndexDef } from '../with-lookup/indexing/eager-indexes.js';
|
|
44
36
|
import type { I18nTextDescriptor, DictKeyDescriptor, StaticDictDescriptor, DictionaryHandle } from '../port/with/i18n-strategy.js';
|
|
45
37
|
import type { LookupDescriptor, MaterializedBacking } from '../port/with/lookup-strategy.js';
|
|
46
38
|
import type { ComputedFields, ComputedFn, ComputedFieldEntry } from '../with-formula/computed/index.js';
|
|
47
39
|
import type { RollupDeleteIntent } from './via/dispatch.js';
|
|
48
40
|
import '../port/with/computed-strategy.js';
|
|
49
|
-
import { type ClassifiedEntry, type ResolvedClassified, type ClassifiedGuardCtx, type
|
|
41
|
+
import { type ClassifiedEntry, type ResolvedClassified, type ClassifiedGuardCtx, type ClassifiedViaConfig } from '../port/with/classified-strategy.js';
|
|
50
42
|
import type { FieldRef, Grain } from './via/graph.js';
|
|
51
43
|
import type { FieldMeta } from '../with-shape/introspection/field-meta.js';
|
|
52
44
|
import type { CollectionMeta } from '../with-shape/introspection/meta.js';
|
|
@@ -60,7 +52,6 @@ import type { TxContext } from '../with-commit/tx/transaction.js';
|
|
|
60
52
|
import type { MaterializedViewRegistry } from '../with-formula/materialized-views/registry.js';
|
|
61
53
|
import type { MVQueryContext } from '../with-formula/materialized-views/types.js';
|
|
62
54
|
import type { Collection, OnDirtyCallback, CacheOptions } from './collection.js';
|
|
63
|
-
import type { LazyStrategy } from '../port/with/lazy-strategy.js';
|
|
64
55
|
import { ViaPipeline } from './via/pipeline.js';
|
|
65
56
|
import { type ViaBinding, type ViaDescriptor } from './via/index.js';
|
|
66
57
|
import { type ViaFieldSpec } from './via/compose.js';
|
|
@@ -74,6 +65,14 @@ export interface CollectionOpts<T> {
|
|
|
74
65
|
name: string;
|
|
75
66
|
keyring: UnlockedKeyring;
|
|
76
67
|
encrypted: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Every opt-in service, resolved once by `createNoydb` (#838). Replaces the
|
|
70
|
+
* eleven optional `*Strategy` fields this interface used to declare, each of
|
|
71
|
+
* which re-applied a `?? NO_*` default that had already been applied
|
|
72
|
+
* upstream. Each entry is a tree-shake seam: an un-opted-in service holds
|
|
73
|
+
* its `NO_*` stub, so the real machinery never reaches the bundle.
|
|
74
|
+
*/
|
|
75
|
+
strategies: StrategyBag;
|
|
77
76
|
/**
|
|
78
77
|
* Opt-in: keep the working set encrypted in RAM, decrypting on read (future phase).
|
|
79
78
|
* Default false — the working set is plaintext.
|
|
@@ -113,13 +112,6 @@ export interface CollectionOpts<T> {
|
|
|
113
112
|
* back to an unconditional store read on re-create.
|
|
114
113
|
*/
|
|
115
114
|
tabCoordinated?: (() => boolean) | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* tree-shake seam. When omitted, `collection.blob(id)` throws
|
|
118
|
-
* with a pointer at the `@noy-db/hub/blobs` subpath. When set (via
|
|
119
|
-
* `createNoydb({ blobStrategy: blobs() })`), blob storage is live.
|
|
120
|
-
* `@internal` by virtue of `BlobStrategy` being `@internal`.
|
|
121
|
-
*/
|
|
122
|
-
blobStrategy?: BlobStrategy | undefined;
|
|
123
115
|
objectStore?: ObjectProjection | undefined;
|
|
124
116
|
blobFields?: BlobFieldsConfig | undefined;
|
|
125
117
|
/**
|
|
@@ -132,26 +124,6 @@ export interface CollectionOpts<T> {
|
|
|
132
124
|
* decryptable at rest under the flat `_blob` DEK (documented residue).
|
|
133
125
|
*/
|
|
134
126
|
blobTierPolicy?: 'isolate' | 'dedup' | undefined;
|
|
135
|
-
aggregateStrategy?: AggregateStrategy | undefined;
|
|
136
|
-
crdtStrategy?: CrdtStrategy | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* tree-shake seam — strategy for optional history/ledger/
|
|
139
|
-
* time-machine. When omitted, history snapshots and ledger appends
|
|
140
|
-
* become silent no-ops (data still writes); the read APIs
|
|
141
|
-
* (`history`, `getVersion`, `revert`, `diff`, `clearHistory`,
|
|
142
|
-
* `pruneRecordHistory`) throw with a pointer at `@noy-db/hub/history`.
|
|
143
|
-
*/
|
|
144
|
-
historyStrategy?: HistoryStrategy | undefined;
|
|
145
|
-
i18nStrategy?: I18nStrategy | undefined;
|
|
146
|
-
syncStrategy?: SyncStrategy | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* tree-shake seam. When omitted, indexing is off for this
|
|
149
|
-
* collection — every `.lazyQuery()` call throws, `.rebuildIndexes()`
|
|
150
|
-
* is a no-op, and `indexes: [...]` declarations are ignored. Enable
|
|
151
|
-
* by passing `withIndexing()` from `@noy-db/hub/indexing` at
|
|
152
|
-
* `createNoydb` time.
|
|
153
|
-
*/
|
|
154
|
-
indexStrategy?: IndexStrategy | undefined;
|
|
155
127
|
indexes?: IndexDef[] | undefined;
|
|
156
128
|
/**
|
|
157
129
|
* Auto-reconcile behavior for persisted-index drift on lazy-mode
|
|
@@ -183,12 +155,6 @@ export interface CollectionOpts<T> {
|
|
|
183
155
|
* unbounded lazy cache defeats the purpose.
|
|
184
156
|
*/
|
|
185
157
|
cache?: CacheOptions | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Lazy service seam (#267) — supplies the bounded-LRU working-set cache
|
|
188
|
-
* when `prefetch: false`. Omitted → the deprecated IMPLICIT_LAZY
|
|
189
|
-
* back-compat default (identical behavior + one-time warn).
|
|
190
|
-
*/
|
|
191
|
-
lazyStrategy?: LazyStrategy | undefined;
|
|
192
158
|
/**
|
|
193
159
|
* Optional Standard Schema v1 validator (Zod, Valibot, ArkType,
|
|
194
160
|
* Effect Schema, etc.). When set, every `put()` is validated before
|
|
@@ -274,8 +240,6 @@ export interface CollectionOpts<T> {
|
|
|
274
240
|
* `undefined` when no forget strategy declares this collection (no-op).
|
|
275
241
|
*/
|
|
276
242
|
addSubjectRef?: ((id: string, record: unknown) => Promise<void>) | undefined;
|
|
277
|
-
/** — tree-shake seam for `collection.reveal()`. Defaults to `NO_CLASSIFIED`. */
|
|
278
|
-
classifiedStrategy?: ClassifiedStrategy | undefined;
|
|
279
243
|
/**
|
|
280
244
|
* async callback that resolves a dict key to its label
|
|
281
245
|
* for a given locale. Provided by the Vault.
|
|
@@ -433,20 +397,6 @@ export interface CollectionOpts<T> {
|
|
|
433
397
|
* throw). Tier 0 is implicit and always available.
|
|
434
398
|
*/
|
|
435
399
|
tiers?: readonly number[] | undefined;
|
|
436
|
-
/**
|
|
437
|
-
* tree-shake seam — strategy for the collection-level tier operations
|
|
438
|
-
* (`putAtTier`/`getAtTier`/`listAtTier`/`elevate`/`demote`). When omitted,
|
|
439
|
-
* every tier operation throws `TiersNotEnabledError`. Enable by passing
|
|
440
|
-
* `withTiers()` from `@noy-db/hub/tiers` at `createNoydb` time.
|
|
441
|
-
*/
|
|
442
|
-
tiersStrategy?: TiersStrategy | undefined;
|
|
443
|
-
/**
|
|
444
|
-
* Search / retrieval capability strategy. When omitted, a collection's
|
|
445
|
-
* `search`/`retrieve`/`similarTo`/`warmIndex`/`flushIndex` methods and the
|
|
446
|
-
* embedding write-hook throw `SearchNotEnabledError`. Enable by passing
|
|
447
|
-
* `withSearch()` from `@noy-db/hub` at `createNoydb` time.
|
|
448
|
-
*/
|
|
449
|
-
searchStrategy?: SearchStrategy | undefined;
|
|
450
400
|
/**
|
|
451
401
|
* what a lower-tier caller sees for above-tier
|
|
452
402
|
* records. Default `'invisibility'`.
|
|
@@ -702,14 +652,9 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
|
|
|
702
652
|
writeHooks: WriteHookRegistry | undefined;
|
|
703
653
|
subsystemBus: ServiceBus | undefined;
|
|
704
654
|
activeTxId: (() => string | null) | undefined;
|
|
705
|
-
|
|
655
|
+
strategies: StrategyBag;
|
|
706
656
|
objectStore: ObjectProjection | undefined;
|
|
707
657
|
blobFields: BlobFieldsConfig | undefined;
|
|
708
|
-
aggregateStrategy: AggregateStrategy;
|
|
709
|
-
crdtStrategy: CrdtStrategy;
|
|
710
|
-
historyStrategy: HistoryStrategy;
|
|
711
|
-
i18nStrategy: I18nStrategy;
|
|
712
|
-
syncStrategy: SyncStrategy;
|
|
713
658
|
reconcileOnOpen: "auto" | "off" | "dry-run";
|
|
714
659
|
getDEK: (collectionName: string) => Promise<EnclaveKey>;
|
|
715
660
|
onDirty: OnDirtyCallback | undefined;
|
|
@@ -742,7 +687,6 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
|
|
|
742
687
|
moneyFields: Record<string, ViaDescriptor> | undefined;
|
|
743
688
|
classified: ResolvedClassified | undefined;
|
|
744
689
|
classifiedGuardCtx: ClassifiedGuardCtx;
|
|
745
|
-
classifiedStrategy: ClassifiedStrategy;
|
|
746
690
|
computed: ComputedFields | undefined;
|
|
747
691
|
computedEdges: readonly GraphEdge[];
|
|
748
692
|
viaDepsEdges: readonly GraphEdge[];
|
|
@@ -794,8 +738,6 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
|
|
|
794
738
|
collectDelete(collection: string, id: string, intents: readonly RollupDeleteIntent[]): void;
|
|
795
739
|
} | undefined;
|
|
796
740
|
tiers: Set<number> | null;
|
|
797
|
-
tiersStrategy: TiersStrategy;
|
|
798
|
-
searchStrategy: SearchStrategy;
|
|
799
741
|
tierMode: TierMode;
|
|
800
742
|
blobTierPolicy: "isolate" | "dedup";
|
|
801
743
|
onCrossTierAccess: ((event: CrossTierAccessEvent) => void) | undefined;
|
|
@@ -96,24 +96,19 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
|
|
|
96
96
|
/** True when the caller explicitly provided a `historyConfig` option (vs. inheriting the vault default). */
|
|
97
97
|
private readonly historyConfigExplicit;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* reaches the bundle
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
* Every opt-in service, resolved once by `createNoydb` (#838) and shared by
|
|
100
|
+
* reference with the owning `Vault` and `Noydb`.
|
|
101
|
+
*
|
|
102
|
+
* Each entry is a tree-shake seam. An un-opted-in service resolves to its
|
|
103
|
+
* `NO_*` stub — a tiny module that throws with an actionable message —
|
|
104
|
+
* so, for example, none of the BlobSet / chunk / MIME-magic machinery
|
|
105
|
+
* reaches the bundle unless the consumer imports `@noy-db/hub/blobs` and
|
|
106
|
+
* passes `blobStrategy: blobs()` to `createNoydb`.
|
|
107
|
+
*/
|
|
108
|
+
private readonly strategies;
|
|
108
109
|
private readonly objectStore;
|
|
109
110
|
private readonly blobFields;
|
|
110
111
|
private readonly blobTierPolicy;
|
|
111
|
-
private readonly aggregateStrategy;
|
|
112
|
-
private readonly crdtStrategy;
|
|
113
|
-
private readonly tiersStrategy;
|
|
114
|
-
private readonly searchStrategy;
|
|
115
|
-
private readonly historyStrategy;
|
|
116
|
-
private readonly syncStrategy;
|
|
117
112
|
private readonly cache;
|
|
118
113
|
private hydrated;
|
|
119
114
|
/**
|
|
@@ -275,12 +270,6 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
|
|
|
275
270
|
/** C-A/R10 memoization: marker declared-set lookup (undefined=unresolved) + classified-handle persist-once flag. */
|
|
276
271
|
private _markerDigestOnlyCache;
|
|
277
272
|
private _markerPersisted;
|
|
278
|
-
/**
|
|
279
|
-
* Tree-shake seam for `reveal()` — defaults to `NO_CLASSIFIED`, which
|
|
280
|
-
* throws `ClassifiedNotEnabledError`. Set via the `classifiedStrategy`
|
|
281
|
-
* `createNoydb()` option (opt in with `withClassified()`).
|
|
282
|
-
*/
|
|
283
|
-
private readonly classifiedStrategy;
|
|
284
273
|
/** Async callback provided by the Vault to open a dynamic dictionary handle (for label-map pre-computation in the search index). Only used in `resolveDictLabelMaps()`; static dicts bypass this entirely. Mutable, assign-once — see {@link _reconcileReadState} (#671 item 1). */
|
|
285
274
|
private getDictionary;
|
|
286
275
|
/**
|
|
@@ -676,7 +665,6 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
|
|
|
676
665
|
* right back out, defeating C6.
|
|
677
666
|
*/
|
|
678
667
|
private _toCacheableRecord;
|
|
679
|
-
/** @internal Untracked put body — call {@link put}, not this. */
|
|
680
668
|
private _putInternal;
|
|
681
669
|
/**
|
|
682
670
|
* Fire registered MV strategies whose dependency set includes this
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* ## Key lifecycle
|
|
23
23
|
*
|
|
24
24
|
* ```
|
|
25
|
-
*
|
|
25
|
+
* secret + salt
|
|
26
26
|
* └─► deriveKey() → KEK (CryptoKey, extractable: false)
|
|
27
27
|
* └─► wrapKey() → wrapped DEK bytes [stored in keyring]
|
|
28
28
|
* └─► unwrapKey() → DEK (CryptoKey) [memory only during session]
|
|
@@ -46,26 +46,26 @@
|
|
|
46
46
|
* between barrel functions (`encrypt`/`decrypt`/`wrapKey`/`unwrapKey`/…).
|
|
47
47
|
*/
|
|
48
48
|
export type EnclaveKey = CryptoKey;
|
|
49
|
-
/** Derive a KEK from a
|
|
50
|
-
export declare function deriveKey(
|
|
49
|
+
/** Derive a KEK from a secret and salt using PBKDF2-SHA256. */
|
|
50
|
+
export declare function deriveKey(secret: string, salt: Uint8Array): Promise<CryptoKey>;
|
|
51
51
|
/**
|
|
52
|
-
* Which AES algorithm/usage a {@link
|
|
52
|
+
* Which AES algorithm/usage a {@link deriveSecretKey} result is for:
|
|
53
53
|
* `'aes-kw'` mints a key-wrapping key (`wrapKey`/`unwrapKey`, e.g. for
|
|
54
54
|
* KEK derivation); `'aes-gcm'` mints a direct encrypt/decrypt key (e.g.
|
|
55
55
|
* for the wrap-DEKs primitive in `with-party/team/wrapped-deks.ts`).
|
|
56
56
|
*/
|
|
57
|
-
export type
|
|
57
|
+
export type SecretKeyUsage = 'aes-kw' | 'aes-gcm';
|
|
58
58
|
/**
|
|
59
|
-
* Derive a non-extractable AES key from a
|
|
59
|
+
* Derive a non-extractable AES key from a secret/credential and salt
|
|
60
60
|
* via PBKDF2-SHA256, generalizing {@link deriveKey}'s AES-KW derivation to
|
|
61
61
|
* also cover AES-GCM-usage keys. Callers pin their own `iterations` and
|
|
62
62
|
* `keyUsage` so an existing call site's exact parameters (and thus its
|
|
63
63
|
* derived-key bytes) are preserved verbatim when migrated onto this
|
|
64
64
|
* shared primitive — this is call-site consolidation, not a KDF change.
|
|
65
65
|
*/
|
|
66
|
-
export declare function
|
|
66
|
+
export declare function deriveSecretKey(secret: string, salt: Uint8Array, params: {
|
|
67
67
|
iterations: number;
|
|
68
|
-
keyUsage:
|
|
68
|
+
keyUsage: SecretKeyUsage;
|
|
69
69
|
}): Promise<CryptoKey>;
|
|
70
70
|
/** Generate a random AES-256-GCM data encryption key. */
|
|
71
71
|
export declare function generateDEK(): Promise<CryptoKey>;
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
*/
|
|
57
57
|
export type { EnclaveKey, EncryptResult } from './crypto.js';
|
|
58
58
|
export { encrypt, decrypt, encryptBytes, decryptBytes, encryptBytesWithAAD, decryptBytesWithAAD, encryptDeterministic, decryptDeterministic, sha256Hex, hmacSha256Hex, } from './crypto.js';
|
|
59
|
-
export { deriveKey,
|
|
60
|
-
export type {
|
|
59
|
+
export { deriveKey, deriveSecretKey, generateDEK, generateSalt, generateIV, wrapKey, unwrapKey, bufferToBase64, base64ToBuffer, derivePresenceKey, deriveDeterministicKey, deriveSealedFieldKey, deriveSealedFieldKeyFromCek, wrapCek, unwrapCek, importCek, } from './crypto.js';
|
|
60
|
+
export type { SecretKeyUsage } from './crypto.js';
|
|
61
61
|
export { resolveStableCek, rewrapBodyToDek, rewrapEnvelope, applyRewrappedBody, isRewrappedUnder } from './record-keys/lifecycle.js';
|
|
62
62
|
export type { RewrappedBody } from './record-keys/lifecycle.js';
|
|
63
63
|
export { RecordCodec } from './record-keys/record-codec.js';
|
package/dist/kernel/errors.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* ├─ Crypto errors
|
|
11
11
|
* │ ├─ DecryptionError — AES-GCM tag failure
|
|
12
12
|
* │ ├─ TamperedError — ciphertext modified after write
|
|
13
|
-
* │ └─ InvalidKeyError — wrong
|
|
13
|
+
* │ └─ InvalidKeyError — wrong secret / corrupt keyring
|
|
14
14
|
* ├─ Access errors
|
|
15
15
|
* │ ├─ NoAccessError — no DEK for this collection
|
|
16
16
|
* │ ├─ ReadOnlyError — ro permission, write attempted
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
* import { NoydbError, InvalidKeyError, ConflictError } from '@noy-db/hub'
|
|
79
79
|
*
|
|
80
80
|
* try {
|
|
81
|
-
* await vault.unlock(
|
|
81
|
+
* await vault.unlock(secret)
|
|
82
82
|
* } catch (e) {
|
|
83
|
-
* if (e instanceof InvalidKeyError) {
|
|
83
|
+
* if (e instanceof InvalidKeyError) { showBadSecretUI(); return }
|
|
84
84
|
* if (e instanceof NoydbError) { logToSentry(e.code, e); return }
|
|
85
85
|
* throw e // unexpected — re-throw
|
|
86
86
|
* }
|
|
@@ -125,8 +125,8 @@ export declare class DebugReservedFieldError extends NoydbError {
|
|
|
125
125
|
/**
|
|
126
126
|
* Thrown when AES-GCM decryption fails.
|
|
127
127
|
*
|
|
128
|
-
* The most common cause is a wrong
|
|
129
|
-
* A `DecryptionError` at the wrong
|
|
128
|
+
* The most common cause is a wrong secret or a corrupted ciphertext.
|
|
129
|
+
* A `DecryptionError` at the wrong secret level is caught internally
|
|
130
130
|
* and re-thrown as `InvalidKeyError` — so in practice this surfaces for
|
|
131
131
|
* per-record corruption rather than authentication failures.
|
|
132
132
|
*/
|
|
@@ -146,12 +146,12 @@ export declare class TamperedError extends NoydbError {
|
|
|
146
146
|
constructor(message?: string);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* Thrown when key unwrapping fails, typically because the
|
|
149
|
+
* Thrown when key unwrapping fails, typically because the secret is wrong
|
|
150
150
|
* or the keyring file is corrupted.
|
|
151
151
|
*
|
|
152
152
|
* NOYDB uses AES-KW (RFC 3394) to wrap DEKs with the KEK. If AES-KW
|
|
153
153
|
* unwrapping fails, it means either the KEK was derived from the wrong
|
|
154
|
-
*
|
|
154
|
+
* secret (PBKDF2 with 600K iterations) or the keyring bytes are
|
|
155
155
|
* corrupted. This is the error shown to the user on a failed unlock attempt.
|
|
156
156
|
*/
|
|
157
157
|
export declare class InvalidKeyError extends NoydbError {
|
|
@@ -160,7 +160,7 @@ export declare class InvalidKeyError extends NoydbError {
|
|
|
160
160
|
/**
|
|
161
161
|
* Thrown when a keyring's wrapped-DEK set unwraps partially — at least
|
|
162
162
|
* one DEK succeeds (proving the KEK is correct) but at least one fails.
|
|
163
|
-
* The
|
|
163
|
+
* The secret is right; the failed entries are corrupted.
|
|
164
164
|
*
|
|
165
165
|
* This is distinct from {@link InvalidKeyError} so that
|
|
166
166
|
* `NoydbOptions.onInvalidKey: 'reset'` does NOT fire — resetting on
|
|
@@ -273,7 +273,7 @@ export declare class ExportCapabilityError extends NoydbError {
|
|
|
273
273
|
* Thrown when a keyring file's `expires_at` cutoff has passed.
|
|
274
274
|
* Surfaced by `loadKeyring` before any DEK unwrap is attempted —
|
|
275
275
|
* past the cutoff the slot refuses to open even with the right
|
|
276
|
-
*
|
|
276
|
+
* secret. Distinct from PBKDF2 / unwrap errors so consumer code
|
|
277
277
|
* can show a precise "this bundle slot has expired" message instead
|
|
278
278
|
* of the generic decryption-failure UX.
|
|
279
279
|
*
|
|
@@ -948,14 +948,14 @@ export declare class BundleIntegrityError extends NoydbError {
|
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
950
|
* Thrown by `readPod` when the bundle carries
|
|
951
|
-
* sealed per-user
|
|
951
|
+
* sealed per-user secrets but no supplied `SealingKeyProvider`
|
|
952
952
|
* has a `.id` (= `pid`) matching the sealed entry's `pid`.
|
|
953
953
|
*
|
|
954
954
|
* Carries the failing pid + the user id so the recipient can
|
|
955
955
|
* surface an actionable prompt:
|
|
956
956
|
*
|
|
957
957
|
* ```
|
|
958
|
-
* BundleSealMismatchError: bundle carries sealed
|
|
958
|
+
* BundleSealMismatchError: bundle carries sealed secret for user "alice"
|
|
959
959
|
* under provider "macos-keychain:com.acme.app/alice@acme.example",
|
|
960
960
|
* but no registered provider matches that pid.
|
|
961
961
|
* ```
|
|
@@ -1290,7 +1290,7 @@ export declare class CustodyNotEnabledError extends NoydbError {
|
|
|
1290
1290
|
* (#267 keyring-grant → team split): enable multi-user grant/revoke/rotate
|
|
1291
1291
|
* with `teamStrategy: withTeam()` from "@noy-db/hub/team" in createNoydb().
|
|
1292
1292
|
* Single-user primitives (owner keyring, unlock, `listUsers`, `updateUser`,
|
|
1293
|
-
*
|
|
1293
|
+
* secret rotate/recover) stay ungated.
|
|
1294
1294
|
*/
|
|
1295
1295
|
export declare class TeamNotEnabledError extends NoydbError {
|
|
1296
1296
|
constructor(message?: string);
|
|
@@ -1386,7 +1386,7 @@ export declare class SessionNotFoundError extends NoydbError {
|
|
|
1386
1386
|
*
|
|
1387
1387
|
* The `operation` field names the specific operation that was blocked
|
|
1388
1388
|
* (e.g. `'export'`, `'grant'`, `'rotate'`) so the caller can surface
|
|
1389
|
-
* a targeted prompt ("Please re-enter your
|
|
1389
|
+
* a targeted prompt ("Please re-enter your secret to export data").
|
|
1390
1390
|
*/
|
|
1391
1391
|
export declare class SessionPolicyError extends NoydbError {
|
|
1392
1392
|
readonly operation: string;
|
|
@@ -1825,7 +1825,7 @@ export declare class PolicyDeniedError extends NoydbError {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
/**
|
|
1827
1827
|
* Raised by `createNoydb({ ... })` when the developer omits a recovery
|
|
1828
|
-
* profile and `recover-
|
|
1828
|
+
* profile and `recover-secret` is not explicitly disabled. Vaults
|
|
1829
1829
|
* MUST have at least one recovery path enrolled before being
|
|
1830
1830
|
* production-ready (paper, shamir, multi-channel, or admin-mediated).
|
|
1831
1831
|
*
|
|
@@ -1835,10 +1835,10 @@ export declare class RecoveryNotEnrolledError extends NoydbError {
|
|
|
1835
1835
|
constructor(message?: string);
|
|
1836
1836
|
}
|
|
1837
1837
|
/**
|
|
1838
|
-
* Raised by `openVault` when a managed-
|
|
1838
|
+
* Raised by `openVault` when a managed-secret-mode vault has no
|
|
1839
1839
|
* STRONG recovery profile enrolled.
|
|
1840
1840
|
*
|
|
1841
|
-
* Managed mode means the user never types a
|
|
1841
|
+
* Managed mode means the user never types a secret — the unlock
|
|
1842
1842
|
* material lives in a `SealingKeyProvider` (`at-*` package). If that
|
|
1843
1843
|
* provider's key is lost AND no strong recovery is enrolled, the
|
|
1844
1844
|
* vault is irrecoverable. To prevent that footgun, managed-mode vaults
|
|
@@ -1846,11 +1846,11 @@ export declare class RecoveryNotEnrolledError extends NoydbError {
|
|
|
1846
1846
|
* multi-channel / admin-mediated when those ship).
|
|
1847
1847
|
*
|
|
1848
1848
|
* Paper recovery alone is NOT strong under managed mode: the user has
|
|
1849
|
-
* no memorized
|
|
1849
|
+
* no memorized secret to fall back on, so losing the paper sheet =
|
|
1850
1850
|
* losing every record permanently.
|
|
1851
1851
|
*
|
|
1852
|
-
* Bootstrap with `db.openVaultAndEnrollRecovery(vault, { recovery: [{ profile: "shamir", k, n }] })`
|
|
1853
|
-
* to atomically create-and-enroll, or call `db.enrollRecovery(vault, { profile: "shamir", ... })`
|
|
1852
|
+
* Bootstrap with `db.team.openVaultAndEnrollRecovery(vault, { recovery: [{ profile: "shamir", k, n }] })`
|
|
1853
|
+
* to atomically create-and-enroll, or call `db.team.enrollRecovery(vault, { profile: "shamir", ... })`
|
|
1854
1854
|
* separately before re-attempting `openVault`.
|
|
1855
1855
|
*/
|
|
1856
1856
|
export declare class ManagedRecoveryNotEnrolledError extends NoydbError {
|
|
@@ -1858,7 +1858,7 @@ export declare class ManagedRecoveryNotEnrolledError extends NoydbError {
|
|
|
1858
1858
|
constructor(vault: string);
|
|
1859
1859
|
}
|
|
1860
1860
|
/**
|
|
1861
|
-
* Raised by `db.
|
|
1861
|
+
* Raised by `db.recoverSecret` / `db.enrollRecovery` /
|
|
1862
1862
|
* `db.rotateRecovery` when the developer requests a recovery profile
|
|
1863
1863
|
* not yet wired in this hub release.
|
|
1864
1864
|
*
|