@noy-db/hub 0.2.0-pre.18 → 0.2.0-pre.19
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/aggregate/index.cjs +227 -3
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +3 -3
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +5 -4
- package/dist/aggregate/index.js.map +1 -1
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +5 -5
- package/dist/attestation/index.d.ts +5 -5
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs +4 -10
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +6 -6
- package/dist/blobs/index.d.ts +6 -6
- package/dist/blobs/index.js +6 -6
- package/dist/bundle/index.cjs +520 -46
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +7 -7
- package/dist/bundle/index.d.ts +7 -7
- package/dist/bundle/index.js +10 -10
- package/dist/{chunk-6Q5XRLKG.js → chunk-3FSMVWBN.js} +4 -4
- package/dist/{chunk-647TFNYL.js → chunk-3Q2AOPLT.js} +76 -28
- package/dist/chunk-3Q2AOPLT.js.map +1 -0
- package/dist/{chunk-2U226RDC.js → chunk-4ULLGYPA.js} +3 -3
- package/dist/{chunk-6FHCU3QO.js → chunk-5IGWRMEC.js} +5 -5
- package/dist/{chunk-Y5XVB75E.js → chunk-6KESZO5D.js} +35 -7
- package/dist/chunk-6KESZO5D.js.map +1 -0
- package/dist/{chunk-KQ523X3A.js → chunk-6OSOE6BY.js} +2 -2
- package/dist/{chunk-HWK75CYX.js → chunk-7C6VFNIY.js} +2 -2
- package/dist/{chunk-33DAO2XG.js → chunk-7HD67R6U.js} +2 -2
- package/dist/{chunk-RQFG2YSV.js → chunk-B6E5IRPJ.js} +3 -3
- package/dist/{chunk-YWYW2YNO.js → chunk-CYNTFU2D.js} +2 -2
- package/dist/{chunk-HMFC6M2G.js → chunk-DJF3FXW5.js} +17 -1
- package/dist/{chunk-HMFC6M2G.js.map → chunk-DJF3FXW5.js.map} +1 -1
- package/dist/{chunk-KTZ2MHQK.js → chunk-DY3EOJEN.js} +2 -2
- package/dist/{chunk-PGVEL5IZ.js → chunk-E66DSTJP.js} +3 -3
- package/dist/{chunk-6YEC7LLO.js → chunk-FBLAWK6A.js} +2 -2
- package/dist/{chunk-LQ3GD5LL.js → chunk-FPHRTW2Z.js} +5 -5
- package/dist/{chunk-ZJ67TB4S.js → chunk-G4PYA575.js} +2 -2
- package/dist/{chunk-45643PAU.js → chunk-GKQAU52M.js} +4 -4
- package/dist/{chunk-5KKNBDCT.js → chunk-GYAWXHFO.js} +2 -2
- package/dist/{chunk-KOURQXIU.js → chunk-H42KZXNV.js} +5 -210
- package/dist/chunk-H42KZXNV.js.map +1 -0
- package/dist/{chunk-6XEGHIBA.js → chunk-IBVTH4JR.js} +4 -4
- package/dist/{chunk-AB7JF2KF.js → chunk-IVP5IVON.js} +2 -2
- package/dist/{chunk-T4T5I5L6.js → chunk-KEDJDWWQ.js} +3 -3
- package/dist/{chunk-C2OYWD5S.js → chunk-KNKNOJFS.js} +3 -3
- package/dist/chunk-KNKNOJFS.js.map +1 -0
- package/dist/{chunk-F2IJ2HGD.js → chunk-KYGGXXT6.js} +228 -69
- package/dist/chunk-KYGGXXT6.js.map +1 -0
- package/dist/{chunk-RZWQNMMP.js → chunk-LSIIPKYT.js} +2 -2
- package/dist/{chunk-FQRAYDS4.js → chunk-M3FPNTO2.js} +4 -4
- package/dist/{chunk-DR5I7Q6N.js → chunk-MI36HL5G.js} +4 -4
- package/dist/{chunk-Z3I2WNGF.js → chunk-NN6IISZO.js} +2 -2
- package/dist/{chunk-32XVU2LT.js → chunk-OBMYMKGO.js} +29 -6
- package/dist/{chunk-32XVU2LT.js.map → chunk-OBMYMKGO.js.map} +1 -1
- package/dist/{chunk-QJKZ5WUP.js → chunk-OKOKPYWH.js} +2 -2
- package/dist/{chunk-CMISAJAE.js → chunk-OY7RX2VL.js} +9 -15
- package/dist/chunk-OY7RX2VL.js.map +1 -0
- package/dist/{chunk-Z3BE5BRK.js → chunk-PTGQPWMV.js} +2 -2
- package/dist/{chunk-QPJ7Z4L3.js → chunk-PWFTQHYX.js} +2 -2
- package/dist/{chunk-K3NYRK7U.js → chunk-Q5MCHUXZ.js} +2 -2
- package/dist/{chunk-IQ4GMEYZ.js → chunk-S22UOMHM.js} +6 -6
- package/dist/{chunk-WZCG3EZ6.js → chunk-S3XA7G35.js} +2 -2
- package/dist/{chunk-LGPSCKWZ.js → chunk-SHIUFIPW.js} +1 -1
- package/dist/chunk-SHIUFIPW.js.map +1 -0
- package/dist/{chunk-BUBJYIZ7.js → chunk-U7JNBSS3.js} +3 -3
- package/dist/{chunk-TFAN3NFD.js → chunk-V3VIRTTE.js} +3 -3
- package/dist/{chunk-VVDSDOVV.js → chunk-V5FZWQNN.js} +4 -4
- package/dist/chunk-VEIVAYJ7.js +361 -0
- package/dist/chunk-VEIVAYJ7.js.map +1 -0
- package/dist/{chunk-P57D4KBG.js → chunk-VNUE6FHP.js} +3 -3
- package/dist/{chunk-TPOHMOGX.js → chunk-WFK2EVYU.js} +10 -2
- package/dist/chunk-WFK2EVYU.js.map +1 -0
- package/dist/{chunk-TTS3RWL5.js → chunk-X7FJMKT3.js} +2 -2
- package/dist/{chunk-HZOEBM67.js → chunk-XPH3FWME.js} +7 -2
- package/dist/{chunk-HZOEBM67.js.map → chunk-XPH3FWME.js.map} +1 -1
- package/dist/{chunk-DKMPR76W.js → chunk-Y5J63SMF.js} +5 -5
- package/dist/{chunk-HOO5I3VG.js → chunk-YLRRU72W.js} +2 -2
- package/dist/{chunk-MGB67HKX.js → chunk-YX333DPS.js} +4 -4
- package/dist/{chunk-4UI5T3K7.js → chunk-YZE6C3TQ.js} +3 -3
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +6 -6
- package/dist/consent/index.d.ts +6 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-FNK3XPCS.js → crypto-B46VNH6X.js} +3 -3
- package/dist/{delegation-FMXNUWE6.js → delegation-5HON72PV.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +7 -7
- package/dist/derivations/index.d.ts +7 -7
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-3_2b_vo6.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
- package/dist/{dev-unlock-BMvwPr_E.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
- package/dist/{errors-DUTlAt3Y.d.ts → errors-DL-zTrrF.d.cts} +14 -1
- package/dist/{errors-DUTlAt3Y.d.cts → errors-DL-zTrrF.d.ts} +14 -1
- package/dist/executor-44R5CUS2.js +12 -0
- package/dist/executor-AOACUK7Z.js +8 -0
- package/dist/executor-OKFLQCDW.js +8 -0
- package/dist/{fanout-sidecar-JGHXAJO5.js → fanout-sidecar-DCQWJQ6S.js} +2 -2
- package/dist/forget/index.cjs.map +1 -1
- package/dist/forget/index.d.cts +1 -1
- package/dist/forget/index.d.ts +1 -1
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +7 -7
- package/dist/guards/index.d.ts +7 -7
- package/dist/guards/index.js +3 -3
- package/dist/{hash-BnWnL9bQ.d.cts → hash-BEUBmmI4.d.cts} +1 -1
- package/dist/{hash-BThBJFO1.d.ts → hash-Dtb7FwWd.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +7 -7
- package/dist/history/index.d.ts +7 -7
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs +149 -132
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +6 -6
- package/dist/i18n/index.d.ts +6 -6
- package/dist/i18n/index.js +14 -14
- package/dist/{index-C6lgoUhK.d.cts → index-BM7O48Ur.d.cts} +47 -8
- package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.cts} +14 -0
- package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.ts} +14 -0
- package/dist/{index-DP1JTWHZ.d.ts → index-BelbyUwz.d.ts} +47 -8
- package/dist/index.cjs +799 -465
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.js +56 -52
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +4 -4
- package/dist/issue-EPA2PSWP.js +12 -0
- package/dist/{ledger-GXC2YA3A.js → ledger-LS6GXCBP.js} +5 -5
- package/dist/materialized-views/index.cjs +257 -4
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +7 -7
- package/dist/materialized-views/index.d.ts +7 -7
- package/dist/materialized-views/index.js +8 -7
- package/dist/noydb-BVKFP74P.js +38 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +7 -7
- package/dist/overlay-views/index.d.ts +7 -7
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +6 -6
- package/dist/periods/index.d.ts +6 -6
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-HXOFHY4N.js → public-envelope-AGU6SS4Z.js} +4 -4
- package/dist/query/index.cjs +296 -27
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +7 -6
- package/dist/registry-ERNAMRDE.js +8 -0
- package/dist/registry-EXTHSXQW.js +8 -0
- package/dist/{registry-WVXO6NH5.js → registry-RDPTFXQ7.js} +3 -3
- package/dist/{revoke-7LCWE2AH.js → revoke-IFLXEZA5.js} +6 -6
- package/dist/sealed-record/index.cjs.map +1 -1
- package/dist/sealed-record/index.d.cts +1 -1
- package/dist/sealed-record/index.d.ts +1 -1
- package/dist/sealed-record/index.js +2 -2
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +7 -7
- package/dist/session/index.d.ts +7 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +6 -6
- package/dist/shadow/index.d.ts +6 -6
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-HAVDLGOK.js → signer-UNWOUJAK.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +6 -6
- package/dist/snapshots/index.d.ts +6 -6
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-PGTEGJDI.js → stale-NTEV5SLX.js} +2 -2
- package/dist/{state-vault-QKQKN3H3.js → state-vault-TUTFRTOA.js} +4 -4
- package/dist/store/index.cjs +8 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +13 -6
- package/dist/store/index.d.ts +13 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-Diwh5lzS.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
- package/dist/{strategy-nuyN8K5N.d.cts → strategy-C5ol6NdV.d.cts} +315 -4
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +6 -6
- package/dist/team/index.d.ts +6 -6
- package/dist/team/index.js +8 -8
- package/dist/{transition-guard--t3exQHF.d.cts → transition-guard-B1N82hMf.d.cts} +1 -1
- package/dist/{transition-guard-BlI9Oy5K.d.ts → transition-guard-C__YeF3_.d.ts} +1 -1
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +6 -6
- package/dist/tx/index.d.ts +6 -6
- package/dist/tx/index.js +3 -3
- package/dist/{types-Diqc2caK.d.ts → types-CraiZOyO.d.ts} +134 -292
- package/dist/{types-BpLPqyaO.d.cts → types-D-gr5t0G.d.cts} +134 -292
- package/dist/{ulid-DNiRB4Mx.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
- package/dist/{ulid-B1zNV8r9.d.ts → ulid-FFRRHkVf.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-DPZVFRI5.js → vault-group-27EV7KB4.js} +29 -8
- package/dist/vault-group-27EV7KB4.js.map +1 -0
- package/dist/{with-materialized-view-BdH_A_r6.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
- package/dist/{with-materialized-view-CzAgp_HJ.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
- package/dist/{with-overlayed-view-BJbqQnsR.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
- package/dist/{with-overlayed-view-C40rDPlu.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
- package/dist/{with-rollup-DrlGkxiE.d.ts → with-rollup-_TyBzz3T.d.ts} +1 -1
- package/dist/{with-rollup-Bopu5UDZ.d.cts → with-rollup-aaxOZcIb.d.cts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-647TFNYL.js.map +0 -1
- package/dist/chunk-C2OYWD5S.js.map +0 -1
- package/dist/chunk-CMISAJAE.js.map +0 -1
- package/dist/chunk-F2IJ2HGD.js.map +0 -1
- package/dist/chunk-KOURQXIU.js.map +0 -1
- package/dist/chunk-LGPSCKWZ.js.map +0 -1
- package/dist/chunk-M3H7VSRV.js +0 -139
- package/dist/chunk-M3H7VSRV.js.map +0 -1
- package/dist/chunk-TPOHMOGX.js.map +0 -1
- package/dist/chunk-Y5XVB75E.js.map +0 -1
- package/dist/executor-IZ2NVXCY.js +0 -11
- package/dist/executor-THSEYEJG.js +0 -8
- package/dist/executor-WLFDUTOM.js +0 -8
- package/dist/issue-R2MWQO6K.js +0 -12
- package/dist/noydb-RJL6FQ4B.js +0 -37
- package/dist/registry-3T2RZC5A.js +0 -8
- package/dist/registry-DMS7OKBM.js +0 -8
- package/dist/vault-group-DPZVFRI5.js.map +0 -1
- /package/dist/{chunk-6Q5XRLKG.js.map → chunk-3FSMVWBN.js.map} +0 -0
- /package/dist/{chunk-2U226RDC.js.map → chunk-4ULLGYPA.js.map} +0 -0
- /package/dist/{chunk-6FHCU3QO.js.map → chunk-5IGWRMEC.js.map} +0 -0
- /package/dist/{chunk-KQ523X3A.js.map → chunk-6OSOE6BY.js.map} +0 -0
- /package/dist/{chunk-HWK75CYX.js.map → chunk-7C6VFNIY.js.map} +0 -0
- /package/dist/{chunk-33DAO2XG.js.map → chunk-7HD67R6U.js.map} +0 -0
- /package/dist/{chunk-RQFG2YSV.js.map → chunk-B6E5IRPJ.js.map} +0 -0
- /package/dist/{chunk-YWYW2YNO.js.map → chunk-CYNTFU2D.js.map} +0 -0
- /package/dist/{chunk-KTZ2MHQK.js.map → chunk-DY3EOJEN.js.map} +0 -0
- /package/dist/{chunk-PGVEL5IZ.js.map → chunk-E66DSTJP.js.map} +0 -0
- /package/dist/{chunk-6YEC7LLO.js.map → chunk-FBLAWK6A.js.map} +0 -0
- /package/dist/{chunk-LQ3GD5LL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
- /package/dist/{chunk-ZJ67TB4S.js.map → chunk-G4PYA575.js.map} +0 -0
- /package/dist/{chunk-45643PAU.js.map → chunk-GKQAU52M.js.map} +0 -0
- /package/dist/{chunk-5KKNBDCT.js.map → chunk-GYAWXHFO.js.map} +0 -0
- /package/dist/{chunk-6XEGHIBA.js.map → chunk-IBVTH4JR.js.map} +0 -0
- /package/dist/{chunk-AB7JF2KF.js.map → chunk-IVP5IVON.js.map} +0 -0
- /package/dist/{chunk-T4T5I5L6.js.map → chunk-KEDJDWWQ.js.map} +0 -0
- /package/dist/{chunk-RZWQNMMP.js.map → chunk-LSIIPKYT.js.map} +0 -0
- /package/dist/{chunk-FQRAYDS4.js.map → chunk-M3FPNTO2.js.map} +0 -0
- /package/dist/{chunk-DR5I7Q6N.js.map → chunk-MI36HL5G.js.map} +0 -0
- /package/dist/{chunk-Z3I2WNGF.js.map → chunk-NN6IISZO.js.map} +0 -0
- /package/dist/{chunk-QJKZ5WUP.js.map → chunk-OKOKPYWH.js.map} +0 -0
- /package/dist/{chunk-Z3BE5BRK.js.map → chunk-PTGQPWMV.js.map} +0 -0
- /package/dist/{chunk-QPJ7Z4L3.js.map → chunk-PWFTQHYX.js.map} +0 -0
- /package/dist/{chunk-K3NYRK7U.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
- /package/dist/{chunk-IQ4GMEYZ.js.map → chunk-S22UOMHM.js.map} +0 -0
- /package/dist/{chunk-WZCG3EZ6.js.map → chunk-S3XA7G35.js.map} +0 -0
- /package/dist/{chunk-BUBJYIZ7.js.map → chunk-U7JNBSS3.js.map} +0 -0
- /package/dist/{chunk-TFAN3NFD.js.map → chunk-V3VIRTTE.js.map} +0 -0
- /package/dist/{chunk-VVDSDOVV.js.map → chunk-V5FZWQNN.js.map} +0 -0
- /package/dist/{chunk-P57D4KBG.js.map → chunk-VNUE6FHP.js.map} +0 -0
- /package/dist/{chunk-TTS3RWL5.js.map → chunk-X7FJMKT3.js.map} +0 -0
- /package/dist/{chunk-DKMPR76W.js.map → chunk-Y5J63SMF.js.map} +0 -0
- /package/dist/{chunk-HOO5I3VG.js.map → chunk-YLRRU72W.js.map} +0 -0
- /package/dist/{chunk-MGB67HKX.js.map → chunk-YX333DPS.js.map} +0 -0
- /package/dist/{chunk-4UI5T3K7.js.map → chunk-YZE6C3TQ.js.map} +0 -0
- /package/dist/{crypto-FNK3XPCS.js.map → crypto-B46VNH6X.js.map} +0 -0
- /package/dist/{delegation-FMXNUWE6.js.map → delegation-5HON72PV.js.map} +0 -0
- /package/dist/{executor-IZ2NVXCY.js.map → executor-44R5CUS2.js.map} +0 -0
- /package/dist/{executor-THSEYEJG.js.map → executor-AOACUK7Z.js.map} +0 -0
- /package/dist/{executor-WLFDUTOM.js.map → executor-OKFLQCDW.js.map} +0 -0
- /package/dist/{fanout-sidecar-JGHXAJO5.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
- /package/dist/{issue-R2MWQO6K.js.map → issue-EPA2PSWP.js.map} +0 -0
- /package/dist/{ledger-GXC2YA3A.js.map → ledger-LS6GXCBP.js.map} +0 -0
- /package/dist/{noydb-RJL6FQ4B.js.map → noydb-BVKFP74P.js.map} +0 -0
- /package/dist/{public-envelope-HXOFHY4N.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
- /package/dist/{registry-3T2RZC5A.js.map → registry-ERNAMRDE.js.map} +0 -0
- /package/dist/{registry-DMS7OKBM.js.map → registry-EXTHSXQW.js.map} +0 -0
- /package/dist/{registry-WVXO6NH5.js.map → registry-RDPTFXQ7.js.map} +0 -0
- /package/dist/{revoke-7LCWE2AH.js.map → revoke-IFLXEZA5.js.map} +0 -0
- /package/dist/{signer-HAVDLGOK.js.map → signer-UNWOUJAK.js.map} +0 -0
- /package/dist/{stale-PGTEGJDI.js.map → stale-NTEV5SLX.js.map} +0 -0
- /package/dist/{state-vault-QKQKN3H3.js.map → state-vault-TUTFRTOA.js.map} +0 -0
package/dist/tx/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eH as TransactionInvariant, gg as TxStrategy } from '../types-D-gr5t0G.cjs';
|
|
2
|
+
export { gh as AmendmentTxOptions, eJ as TxCollection, bd as TxContext, eL as TxVault, fT as runTransaction } from '../types-D-gr5t0G.cjs';
|
|
3
3
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
4
4
|
import '../predicate-BmhBSPCH.cjs';
|
|
5
|
-
import '../strategy-
|
|
6
|
-
import '../errors-
|
|
5
|
+
import '../strategy-C5ol6NdV.cjs';
|
|
6
|
+
import '../errors-DL-zTrrF.cjs';
|
|
7
7
|
import '../strategy-BSxFXGzb.cjs';
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../index-BMmajblo.cjs';
|
|
9
|
+
import '../index-BM7O48Ur.cjs';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/tx/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eH as TransactionInvariant, gg as TxStrategy } from '../types-CraiZOyO.js';
|
|
2
|
+
export { gh as AmendmentTxOptions, eJ as TxCollection, bd as TxContext, eL as TxVault, fT as runTransaction } from '../types-CraiZOyO.js';
|
|
3
3
|
import '../lazy-builder-ChSqcF5t.js';
|
|
4
4
|
import '../predicate-BmhBSPCH.js';
|
|
5
|
-
import '../strategy-
|
|
6
|
-
import '../errors-
|
|
5
|
+
import '../strategy-BDxQnnTX.js';
|
|
6
|
+
import '../errors-DL-zTrrF.js';
|
|
7
7
|
import '../strategy-BSxFXGzb.js';
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../index-BMmajblo.js';
|
|
9
|
+
import '../index-BelbyUwz.js';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
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-V3VIRTTE.js";
|
|
7
7
|
import "../chunk-FZU343FL.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-DJF3FXW5.js";
|
|
9
9
|
|
|
10
10
|
// src/tx/dry-run.ts
|
|
11
11
|
var SEP = " ";
|
|
@@ -43,7 +43,7 @@ async function runDryRun(db, fn) {
|
|
|
43
43
|
const gctx = { existing: before, vault: facade, userId: v.userId, role: v.role };
|
|
44
44
|
try {
|
|
45
45
|
await registry.runChecks(op.collectionName, after, gctx);
|
|
46
|
-
const { GuardExecutor } = await import("../executor-
|
|
46
|
+
const { GuardExecutor } = await import("../executor-AOACUK7Z.js");
|
|
47
47
|
for (const g of guards) {
|
|
48
48
|
await GuardExecutor.checkFrozenFields(g, op.id, before, after);
|
|
49
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-ChSqcF5t.js';
|
|
2
|
-
import { L as LiveAggregation,
|
|
2
|
+
import { c as OnMissingPolicy, a as I18nTextDescriptor, L as Layer, u as LiveAggregation, j as AggregateSpec, h as AggregateResult, N as MoneyDescriptor, A as AggregateStrategy } from './strategy-BDxQnnTX.js';
|
|
3
3
|
import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.js';
|
|
4
|
-
import { L as LedgerEntry, F as ForgetStrategy, S as SubjectRef, b as ForgetResult } from './index-
|
|
5
|
-
import { N as NoydbError } from './errors-
|
|
6
|
-
import { L as LiveQuery, Q as Query, c as JoinStrategy, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-
|
|
4
|
+
import { L as LedgerEntry, F as ForgetStrategy, S as SubjectRef, b as ForgetResult } from './index-BMmajblo.js';
|
|
5
|
+
import { N as NoydbError } from './errors-DL-zTrrF.js';
|
|
6
|
+
import { L as LiveQuery, Q as Query, c as JoinStrategy, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-BelbyUwz.js';
|
|
7
7
|
import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-BmhBSPCH.js';
|
|
8
8
|
import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
|
|
9
9
|
|
|
@@ -1607,286 +1607,6 @@ interface PeriodsStrategy {
|
|
|
1607
1607
|
appendPeriodLedgerEntry(ledger: LedgerStore | null, actor: string, envelope: EncryptedEnvelope, periodName: string): Promise<void>;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
/**
|
|
1611
|
-
* Per-layer i18n resolution policy.
|
|
1612
|
-
*
|
|
1613
|
-
* `onMissing` governs what happens when a multilingual field is resolved
|
|
1614
|
-
* to a target locale that is absent. It may be a single scalar policy or
|
|
1615
|
-
* a per-layer map, so a field can be lenient at the app read boundary but
|
|
1616
|
-
* strict inside a materialized view.
|
|
1617
|
-
*
|
|
1618
|
-
* Effective policy for layer `λ`:
|
|
1619
|
-
*
|
|
1620
|
-
* ```
|
|
1621
|
-
* explicit(λ) = typeof onMissing === 'object' ? onMissing[λ] : undefined
|
|
1622
|
-
* scalar = typeof onMissing === 'string' ? onMissing : undefined
|
|
1623
|
-
* policy(λ) = explicit(λ) ?? layerDefault(λ) ?? scalar ?? 'throw'
|
|
1624
|
-
* ```
|
|
1625
|
-
*
|
|
1626
|
-
* - `layerDefault('guard') = 'substitute'` — guards are lenient unless
|
|
1627
|
-
* EXPLICITLY overridden; they never inherit a scalar policy (a guard
|
|
1628
|
-
* reading a display value must not hard-fail on a missing locale).
|
|
1629
|
-
* - every other layer has no default, so it inherits the scalar, else
|
|
1630
|
-
* falls back to `'throw'` (today's behavior — zero breaking change).
|
|
1631
|
-
*
|
|
1632
|
-
* @public
|
|
1633
|
-
*/
|
|
1634
|
-
type OnMissing = 'substitute' | 'null' | 'throw';
|
|
1635
|
-
/**
|
|
1636
|
-
* The contexts in which a multilingual field is resolved. Each can carry
|
|
1637
|
-
* its own `onMissing` policy.
|
|
1638
|
-
*
|
|
1639
|
-
* - `read` — ordinary app reads (`get`/`list`/query projection).
|
|
1640
|
-
* - `guard` — a guard callback reading a value.
|
|
1641
|
-
* - `join` — a joined record expanded onto a row.
|
|
1642
|
-
* - `mv` — materialized-view input.
|
|
1643
|
-
* - `derivation` — derivation input.
|
|
1644
|
-
* - `export` — bundle/public-envelope export.
|
|
1645
|
-
*/
|
|
1646
|
-
type Layer = 'read' | 'guard' | 'join' | 'mv' | 'derivation' | 'export';
|
|
1647
|
-
/** Field-level policy: a single scalar, or a per-layer map. */
|
|
1648
|
-
type OnMissingPolicy = OnMissing | Partial<Record<Layer, OnMissing>>;
|
|
1649
|
-
/**
|
|
1650
|
-
* Resolve the effective `OnMissing` for a layer from a field's declared
|
|
1651
|
-
* policy. See module docs for the resolution rule.
|
|
1652
|
-
*/
|
|
1653
|
-
declare function resolvePolicy(onMissing: OnMissingPolicy | undefined, layer: Layer): OnMissing;
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* i18nText schema type —
|
|
1657
|
-
*
|
|
1658
|
-
* `i18nText({ languages, required })` creates a descriptor for a
|
|
1659
|
-
* multi-language content field whose value is stored as a
|
|
1660
|
-
* `{ [locale]: string }` map (e.g. `{ en: 'Consulting', th: 'ที่ปรึกษา' }`).
|
|
1661
|
-
*
|
|
1662
|
-
* On put, the descriptor validates that required languages are present.
|
|
1663
|
-
* On read (when a `locale` option is passed), the map is collapsed to the
|
|
1664
|
-
* caller's locale string via the fallback chain.
|
|
1665
|
-
*
|
|
1666
|
-
* Design decisions
|
|
1667
|
-
* ────────────────
|
|
1668
|
-
*
|
|
1669
|
-
* **Descriptor pattern (not a Zod type).**
|
|
1670
|
-
* `i18nText()` returns a plain descriptor object used in the collection's
|
|
1671
|
-
* `i18nFields` option — same pattern as `ref()` / `dictKey()`. This keeps
|
|
1672
|
-
* `@noy-db/core` at zero runtime dependencies and avoids Zod v3 field-type
|
|
1673
|
-
* constraints. TypeScript inference is handled via the descriptor's type.
|
|
1674
|
-
*
|
|
1675
|
-
* **Enforcement at the collection boundary.**
|
|
1676
|
-
* The `required` option is checked by `Collection.put()` via the compartment's
|
|
1677
|
-
* registered `i18nFields`. Failed validation throws `MissingTranslationError`
|
|
1678
|
-
* — a distinct class from `SchemaValidationError` so callers can tell
|
|
1679
|
-
* "wrong shape" from "missing translations".
|
|
1680
|
-
*
|
|
1681
|
-
* **Resolution is post-decryption.**
|
|
1682
|
-
* Locale resolution happens AFTER `decryptRecord()`, as a pure in-memory
|
|
1683
|
-
* transform. No additional crypto work is needed. The resolved record is
|
|
1684
|
-
* returned in place of the stored one, with i18nText fields replaced by
|
|
1685
|
-
* their locale-resolved strings.
|
|
1686
|
-
*
|
|
1687
|
-
* **`locale: 'raw'`.**
|
|
1688
|
-
* Passing `{ locale: 'raw' }` skips resolution and returns the full
|
|
1689
|
-
* `{ [locale]: string }` map — useful for bilingual exports, admin UIs,
|
|
1690
|
-
* and any context where all translations must be visible at once.
|
|
1691
|
-
*
|
|
1692
|
-
* **Out of scope.**
|
|
1693
|
-
* Pluralization, RTL rendering, date/number formatting, per-locale CRDT
|
|
1694
|
-
* merging.
|
|
1695
|
-
*/
|
|
1696
|
-
|
|
1697
|
-
/** Flatten an intersection into a single object literal for nicer hovers. */
|
|
1698
|
-
type Prettify<T> = {
|
|
1699
|
-
[K in keyof T]: T[K];
|
|
1700
|
-
} & {};
|
|
1701
|
-
/**
|
|
1702
|
-
* The stored shape of a multilingual field, inferred from its `required`
|
|
1703
|
-
* mode — so the compiler forces you to handle an absent optional locale
|
|
1704
|
-
* (`string | undefined`) instead of silently yielding `undefined`.
|
|
1705
|
-
*
|
|
1706
|
-
* Mirrors `i18nText({ languages, required })`:
|
|
1707
|
-
* - `'all'` (default) — every locale required: `{ th: string; en: string }`
|
|
1708
|
-
* - `'any'` — every locale optional: `{ th?: string; en?: string }`
|
|
1709
|
-
* (the "at least one present" guarantee is runtime-only — not expressible
|
|
1710
|
-
* in TypeScript — so each key is optional)
|
|
1711
|
-
* - `readonly L[]` — listed locales required, the rest optional:
|
|
1712
|
-
* `I18nMap<'th'|'en', ['th']>` → `{ th: string; en?: string }`
|
|
1713
|
-
*
|
|
1714
|
-
* @example
|
|
1715
|
-
* ```ts
|
|
1716
|
-
* type Lang = 'th' | 'en'
|
|
1717
|
-
* interface Contact {
|
|
1718
|
-
* name: I18nMap<Lang, 'any'> // { th?: string; en?: string }
|
|
1719
|
-
* legalName: I18nMap<Lang, ['th']> // { th: string; en?: string }
|
|
1720
|
-
* slug: I18nMap<Lang> // { th: string; en: string }
|
|
1721
|
-
* }
|
|
1722
|
-
* ```
|
|
1723
|
-
*
|
|
1724
|
-
* @public
|
|
1725
|
-
*/
|
|
1726
|
-
type I18nMap<Langs extends string, Required extends 'all' | 'any' | readonly Langs[] = 'all'> = Required extends 'all' ? Record<Langs, string> : Required extends 'any' ? Partial<Record<Langs, string>> : Required extends readonly (infer R extends Langs)[] ? Prettify<Record<R, string> & Partial<Record<Exclude<Langs, R>, string>>> : never;
|
|
1727
|
-
/**
|
|
1728
|
-
* Options for `i18nText()`.
|
|
1729
|
-
*
|
|
1730
|
-
* `languages` declares the full set of supported locales. `required`
|
|
1731
|
-
* controls which must be present on every `put()`.
|
|
1732
|
-
*
|
|
1733
|
-
* `autoTranslate` is the per-field opt-in for the `plaintextTranslator`
|
|
1734
|
-
* hook. When `true` and a `plaintextTranslator` is configured
|
|
1735
|
-
* on `createNoydb()`, missing translations are generated before `put()`.
|
|
1736
|
-
* Default: `false`.
|
|
1737
|
-
*/
|
|
1738
|
-
interface I18nTextOptions {
|
|
1739
|
-
/** All supported locale codes (BCP 47). */
|
|
1740
|
-
readonly languages: readonly string[];
|
|
1741
|
-
/**
|
|
1742
|
-
* Which locales must be present on every `put()`.
|
|
1743
|
-
*
|
|
1744
|
-
* - `'all'` — every declared language must be present.
|
|
1745
|
-
* - `'any'` — at least one declared language must be present.
|
|
1746
|
-
* - `string[]` — listed locales are required; others are optional.
|
|
1747
|
-
*/
|
|
1748
|
-
readonly required: 'all' | 'any' | readonly string[];
|
|
1749
|
-
/**
|
|
1750
|
-
* Per-field opt-in for the `plaintextTranslator` hook.
|
|
1751
|
-
* When `true`, missing required translations are auto-generated
|
|
1752
|
-
* before `put()` if a translator is configured. Default: `false`.
|
|
1753
|
-
*/
|
|
1754
|
-
readonly autoTranslate?: boolean;
|
|
1755
|
-
/**
|
|
1756
|
-
* What to do when this field is resolved to a locale that is absent.
|
|
1757
|
-
* A single policy, or a per-layer map (read/guard/join/mv/derivation/
|
|
1758
|
-
* export). Default `'throw'` — today's behavior, zero breaking change.
|
|
1759
|
-
* See {@link OnMissingPolicy}.
|
|
1760
|
-
*
|
|
1761
|
-
* NOTE (current wiring): the `read` (`get`/`list`), `guard` and
|
|
1762
|
-
* `derivation` layers are enforced — guard / derivation `ctx.vault`
|
|
1763
|
-
* reads resolve under their own layer policy (`guard` defaults to the
|
|
1764
|
-
* lenient `'substitute'`). The `mv`, `join` and `export` layers are NOT
|
|
1765
|
-
* yet wired: mv/join read raw `{locale}` maps in the query/aggregate
|
|
1766
|
-
* pipeline (no resolution call site), so injecting resolution there is a
|
|
1767
|
-
* tracked follow-up (#285 D2/D3). Until then those reads observe the raw
|
|
1768
|
-
* map, not this policy.
|
|
1769
|
-
*/
|
|
1770
|
-
readonly onMissing?: OnMissingPolicy;
|
|
1771
|
-
/**
|
|
1772
|
-
* Ordered preferred-substitute locales used when `onMissing` resolves
|
|
1773
|
-
* to `'substitute'` and the target locale is absent. `'any'` as an
|
|
1774
|
-
* element means "first non-empty value". A caller-supplied `fallback`
|
|
1775
|
-
* at read time takes precedence over this declared list.
|
|
1776
|
-
*/
|
|
1777
|
-
readonly substitute?: readonly string[];
|
|
1778
|
-
/**
|
|
1779
|
-
* Per-locale script enforcement (write-time). `'auto'` infers the
|
|
1780
|
-
* allowed Unicode scripts per locale (asymmetric Latin tolerance); an
|
|
1781
|
-
* object overrides per slot. Absent ⇒ no check. See `./script.ts`.
|
|
1782
|
-
*/
|
|
1783
|
-
readonly script?: 'auto' | Partial<Record<string, readonly string[]>>;
|
|
1784
|
-
/**
|
|
1785
|
-
* What to do when a slot's value contains characters outside its
|
|
1786
|
-
* allowed script set. Default `'reject'`.
|
|
1787
|
-
*/
|
|
1788
|
-
readonly onScriptViolation?: 'reject' | 'filter' | 'warn';
|
|
1789
|
-
}
|
|
1790
|
-
/**
|
|
1791
|
-
* Descriptor returned by `i18nText()`. Attach to the collection's
|
|
1792
|
-
* `i18nFields` option:
|
|
1793
|
-
*
|
|
1794
|
-
* ```ts
|
|
1795
|
-
* const lineItems = company.collection<LineItem>('line-items', {
|
|
1796
|
-
* i18nFields: {
|
|
1797
|
-
* description: i18nText({ languages: ['en', 'th'], required: 'all' }),
|
|
1798
|
-
* },
|
|
1799
|
-
* })
|
|
1800
|
-
* ```
|
|
1801
|
-
*/
|
|
1802
|
-
interface I18nTextDescriptor {
|
|
1803
|
-
readonly _noydbI18nText: true;
|
|
1804
|
-
readonly options: I18nTextOptions;
|
|
1805
|
-
}
|
|
1806
|
-
/**
|
|
1807
|
-
* Create an `I18nTextDescriptor` for a multi-language content field.
|
|
1808
|
-
*
|
|
1809
|
-
* @param options Language list + enforcement mode.
|
|
1810
|
-
*
|
|
1811
|
-
* @example
|
|
1812
|
-
* ```ts
|
|
1813
|
-
* i18nText({ languages: ['en', 'th'], required: 'all' })
|
|
1814
|
-
* i18nText({ languages: ['en', 'th'], required: ['th'], autoTranslate: true })
|
|
1815
|
-
* ```
|
|
1816
|
-
*/
|
|
1817
|
-
declare function i18nText(options: I18nTextOptions): I18nTextDescriptor;
|
|
1818
|
-
/** Runtime predicate for detecting an `I18nTextDescriptor`. */
|
|
1819
|
-
declare function isI18nTextDescriptor(x: unknown): x is I18nTextDescriptor;
|
|
1820
|
-
/**
|
|
1821
|
-
* Validate that a value is a valid `{ [locale]: string }` map and that
|
|
1822
|
-
* all required locales are present. Throws `MissingTranslationError`
|
|
1823
|
-
* when the required constraint is violated.
|
|
1824
|
-
*
|
|
1825
|
-
* Called by `Collection.put()` for each registered `i18nField`.
|
|
1826
|
-
*
|
|
1827
|
-
* @param value The raw field value from the record being put.
|
|
1828
|
-
* @param field The field name (used in the thrown error message).
|
|
1829
|
-
* @param descriptor The `i18nText()` descriptor for this field.
|
|
1830
|
-
*/
|
|
1831
|
-
declare function validateI18nTextValue(value: unknown, field: string, descriptor: I18nTextDescriptor): void;
|
|
1832
|
-
/**
|
|
1833
|
-
* Resolve an i18nText value (`{ [locale]: string }` map) to a string
|
|
1834
|
-
* for the given locale.
|
|
1835
|
-
*
|
|
1836
|
-
* @param value The stored locale map.
|
|
1837
|
-
* @param locale The requested locale code, or `'raw'` to return the map.
|
|
1838
|
-
* @param fallback Single locale or ordered list; use `'any'` as the last
|
|
1839
|
-
* element to fall back to any available translation.
|
|
1840
|
-
* @param field Field name used in `LocaleNotSpecifiedError` messages.
|
|
1841
|
-
* @returns The resolved string, OR the original map when `locale === 'raw'`.
|
|
1842
|
-
*/
|
|
1843
|
-
/** Options for the policy-aware form of {@link resolveI18nText}. */
|
|
1844
|
-
interface ResolveI18nOptions {
|
|
1845
|
-
/** Effective policy for the resolution layer. Default `'throw'`. */
|
|
1846
|
-
readonly policy?: OnMissing;
|
|
1847
|
-
/** Declared substitute chain; applied only under policy `'substitute'`. */
|
|
1848
|
-
readonly substitute?: readonly string[];
|
|
1849
|
-
}
|
|
1850
|
-
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback?: string | readonly string[], field?: string): string | Record<string, string>;
|
|
1851
|
-
declare function resolveI18nText(value: Record<string, string>, locale: string, fallback: string | readonly string[] | undefined, field: string | undefined, opts: ResolveI18nOptions): string | Record<string, string> | null;
|
|
1852
|
-
/**
|
|
1853
|
-
* Return all leaf values at `path`, expanding `[].` array wildcards.
|
|
1854
|
-
*
|
|
1855
|
-
* - `'name'` → `[obj.name]`
|
|
1856
|
-
* - `'address.lineOne'` → `[obj.address.lineOne]`
|
|
1857
|
-
* - `'contacts[].title'` → `[obj.contacts[0].title, obj.contacts[1].title, …]`
|
|
1858
|
-
*
|
|
1859
|
-
* Returns an empty array when the path does not resolve (missing key,
|
|
1860
|
-
* wrong type, etc.). Used by `enforceI18nOnPut` to validate nested fields.
|
|
1861
|
-
*/
|
|
1862
|
-
declare function getAtPath(obj: Record<string, unknown>, path: string): unknown[];
|
|
1863
|
-
/**
|
|
1864
|
-
* Mutate `obj` in-place, setting `value` at the nested `path`.
|
|
1865
|
-
* Supports dot notation (`'address.lineOne'`) but not array wildcards —
|
|
1866
|
-
* auto-translate on `contacts[].title` style paths is not supported.
|
|
1867
|
-
*/
|
|
1868
|
-
declare function setAtPathInPlace(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
1869
|
-
/**
|
|
1870
|
-
* Apply locale resolution to a single record, returning a new copy.
|
|
1871
|
-
*
|
|
1872
|
-
* For each field registered as an `i18nText` descriptor:
|
|
1873
|
-
* - If `locale === 'raw'`, the field value is left as the stored map.
|
|
1874
|
-
* - Otherwise, the field value is replaced with the resolved string.
|
|
1875
|
-
*
|
|
1876
|
-
* Field paths support dot notation (`'address.lineOne'`) and array
|
|
1877
|
-
* wildcards (`'contacts[].title'`). Top-level fields work as before.
|
|
1878
|
-
*
|
|
1879
|
-
* @param record The decrypted record.
|
|
1880
|
-
* @param i18nFields Map of field path → `I18nTextDescriptor`.
|
|
1881
|
-
* @param locale The requested locale (or `'raw'`).
|
|
1882
|
-
* @param fallback Fallback chain (optional).
|
|
1883
|
-
* @param layer Resolution layer (default `'read'`). Each field's
|
|
1884
|
-
* `onMissing` policy is resolved for this layer, so the
|
|
1885
|
-
* same record resolves leniently on a get but strictly
|
|
1886
|
-
* inside an mv/derivation.
|
|
1887
|
-
*/
|
|
1888
|
-
declare function applyI18nLocale(record: Record<string, unknown>, i18nFields: Record<string, I18nTextDescriptor>, locale: string, fallback?: string | readonly string[], layer?: Layer): Record<string, unknown>;
|
|
1889
|
-
|
|
1890
1610
|
type EventHandler<T> = (data: T) => void;
|
|
1891
1611
|
/** Typed event emitter for NOYDB events. */
|
|
1892
1612
|
declare class NoydbEventEmitter {
|
|
@@ -3466,6 +3186,34 @@ interface HistoryStrategy {
|
|
|
3466
3186
|
buildVaultInstant(engine: VaultEngine, timestamp: string): VaultInstant;
|
|
3467
3187
|
}
|
|
3468
3188
|
|
|
3189
|
+
/**
|
|
3190
|
+
* Scan-mode full-text search (#308) — ranks **already-decrypted** records by
|
|
3191
|
+
* BM25 against a tokenized query. Pure client-side: nothing is written to the
|
|
3192
|
+
* store, so this adds **zero** leakage (unlike a store-usable blind index,
|
|
3193
|
+
* which is a separate, gated opt-in — see the #308 design note).
|
|
3194
|
+
*
|
|
3195
|
+
* O(n) over the collection; intended for small/medium collections (the pilot's
|
|
3196
|
+
* scale) where moving the existing userland scan into the DB is the win.
|
|
3197
|
+
*/
|
|
3198
|
+
|
|
3199
|
+
interface SearchOptions {
|
|
3200
|
+
/** Top-N by score (default: all matches). */
|
|
3201
|
+
readonly limit?: number;
|
|
3202
|
+
/** `'any'` (default) = OR of query terms; `'all'` = every term must match. */
|
|
3203
|
+
readonly match?: 'any' | 'all';
|
|
3204
|
+
/** Treat the LAST query term as a prefix (typeahead). */
|
|
3205
|
+
readonly prefix?: boolean;
|
|
3206
|
+
}
|
|
3207
|
+
interface SearchResult<T> {
|
|
3208
|
+
readonly id: string;
|
|
3209
|
+
readonly score: number;
|
|
3210
|
+
readonly record: T;
|
|
3211
|
+
}
|
|
3212
|
+
interface SearchEntry<T> {
|
|
3213
|
+
readonly id: string;
|
|
3214
|
+
readonly record: T;
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3469
3217
|
interface LruOptions {
|
|
3470
3218
|
/** Maximum number of entries before eviction. Required if `maxBytes` is unset. */
|
|
3471
3219
|
maxRecords?: number;
|
|
@@ -3742,6 +3490,16 @@ interface ShardingConfig<T> {
|
|
|
3742
3490
|
readonly vaultTemplate: string;
|
|
3743
3491
|
/** When a write targets an unknown partition key, stamp a shard inline. Default `true`. */
|
|
3744
3492
|
readonly autoCreate?: boolean;
|
|
3493
|
+
/**
|
|
3494
|
+
* Data-residency guard (#271): the geographic region a record's shard must
|
|
3495
|
+
* live in (e.g. `'eu'`). When set, `createShard` resolves the candidate
|
|
3496
|
+
* backend (via `routeStore`'s vault-prefix routing) and throws
|
|
3497
|
+
* `DataResidencyError` if its `capabilities.region` doesn't match — so a
|
|
3498
|
+
* shard never lands on a non-compliant backend. Advisory until a region is
|
|
3499
|
+
* declared on the backing store; pair with `routeStore({ vaultRoutes })`
|
|
3500
|
+
* and a region-encoded partition key (e.g. `eu-acme` → `firm--eu-`).
|
|
3501
|
+
*/
|
|
3502
|
+
readonly regionOf?: (record: T) => string;
|
|
3745
3503
|
}
|
|
3746
3504
|
/** Options for `Noydb.openVaultGroup`. */
|
|
3747
3505
|
interface VaultGroupOptions<T> {
|
|
@@ -5680,8 +5438,12 @@ declare class VaultGroup<T> {
|
|
|
5680
5438
|
* - row + vault present → no-op, return handle
|
|
5681
5439
|
* - row present, vault gone → ShardProvisioningError
|
|
5682
5440
|
* - row absent (vault present or not) → open-or-create, configure, write row
|
|
5441
|
+
*
|
|
5442
|
+
* When `region` is given (the routing `put` passes `sharding.regionOf(record)`),
|
|
5443
|
+
* the candidate backend's `capabilities.region` must match or this throws
|
|
5444
|
+
* `DataResidencyError` BEFORE provisioning (#271 data-residency guard).
|
|
5683
5445
|
*/
|
|
5684
|
-
createShard(partitionKey: string): Promise<Vault>;
|
|
5446
|
+
createShard(partitionKey: string, region?: string): Promise<Vault>;
|
|
5685
5447
|
/**
|
|
5686
5448
|
* Drill down to a single shard's full Collection API. Throws if the shard is unknown.
|
|
5687
5449
|
* Also throws ShardProvisioningError if the registry row exists but the vault has been deleted
|
|
@@ -5719,6 +5481,11 @@ declare class VaultGroup<T> {
|
|
|
5719
5481
|
*
|
|
5720
5482
|
* v1 is explicit-refresh (no write-path push); call `refreshInsights()`
|
|
5721
5483
|
* after a batch of writes, or on a schedule.
|
|
5484
|
+
*
|
|
5485
|
+
* The `target.vault` must NOT be the group itself or one of its shards —
|
|
5486
|
+
* a summary writing back into client-shard data would breach the Insight
|
|
5487
|
+
* Vault's separate-DEK-boundary contract. Such a target throws a
|
|
5488
|
+
* `ValidationError` at registration (#271 Insight-write isolation).
|
|
5722
5489
|
*/
|
|
5723
5490
|
withCrossVaultDerivation<R = Record<string, unknown>, S = Record<string, unknown>>(spec: CrossVaultDerivationSpec<R, S>): void;
|
|
5724
5491
|
/**
|
|
@@ -6132,6 +5899,13 @@ declare class Noydb {
|
|
|
6132
5899
|
* (its keyring exists in the store).
|
|
6133
5900
|
*/
|
|
6134
5901
|
_shardVaultProvisioned(vaultId: string): Promise<boolean>;
|
|
5902
|
+
/**
|
|
5903
|
+
* @internal — the physical backend store a vault id maps to. A
|
|
5904
|
+
* `routeStore` resolves the vault-prefix route via its `resolveBackend`;
|
|
5905
|
+
* a plain store is its own backend. Used by the federation data-residency
|
|
5906
|
+
* guard to read the placement backend's `capabilities.region` (#271).
|
|
5907
|
+
*/
|
|
5908
|
+
_resolveBackend(vaultId: string): NoydbStore;
|
|
6135
5909
|
/**
|
|
6136
5910
|
* Change the current user's passphrase for a vault.
|
|
6137
5911
|
*
|
|
@@ -7461,6 +7235,35 @@ interface MaterializedViewStrategy<TRow extends Record<string, unknown>> {
|
|
|
7461
7235
|
* if declared alone.
|
|
7462
7236
|
*/
|
|
7463
7237
|
moneyFields?: Record<string, MoneyDescriptor>;
|
|
7238
|
+
/**
|
|
7239
|
+
* Compute-time i18n resolution locale (#285, `mv` layer). UNION-mode only.
|
|
7240
|
+
*
|
|
7241
|
+
* An MV that **groups by** an `i18nText` field would otherwise bucket on the
|
|
7242
|
+
* raw `{ locale: string }` map — an unstable object key. Set `i18nLocale`
|
|
7243
|
+
* (with {@link i18nFields} describing those fields) and, before grouping, the
|
|
7244
|
+
* executor resolves each declared i18n group-key field to this locale at the
|
|
7245
|
+
* `mv` layer (`resolvePolicy(onMissing, 'mv')`), so buckets are stable strings.
|
|
7246
|
+
*
|
|
7247
|
+
* This is the **compute** path only: i18n fields *carried through* for display
|
|
7248
|
+
* stay raw — declare them on the OUTPUT collection and they resolve per-reader
|
|
7249
|
+
* at read time (the resolve-at-output model). Without `i18nLocale`, grouping by
|
|
7250
|
+
* a raw i18n field throws `LocaleNotSpecifiedError` (steer: group by a
|
|
7251
|
+
* `dictKey`/`staticDict` code — the stable key — and label at read).
|
|
7252
|
+
*
|
|
7253
|
+
* Query-form MVs do their own `groupBy` inside the `Query`, which carries no
|
|
7254
|
+
* locale yet (the join/query-locale slice, #285 §3) — so `i18nLocale` /
|
|
7255
|
+
* `i18nFields` on a query-form MV throw `MaterializedViewConfigError`.
|
|
7256
|
+
*/
|
|
7257
|
+
i18nLocale?: string;
|
|
7258
|
+
/**
|
|
7259
|
+
* i18n descriptors for UNION-mode compute (#285), keyed by the OUTPUT field
|
|
7260
|
+
* name as it appears in the mapped row (NOT the source field). Mirrors
|
|
7261
|
+
* {@link moneyFields}: the concatenated mapped stream is a plain array with no
|
|
7262
|
+
* collection i18n context, so the descriptor (carrying `onMissing`/`substitute`
|
|
7263
|
+
* /`fallback`) must be declared here for the `mv`-layer resolution that
|
|
7264
|
+
* {@link i18nLocale} drives. Meaningless without `i18nLocale`.
|
|
7265
|
+
*/
|
|
7266
|
+
i18nFields?: Record<string, I18nTextDescriptor>;
|
|
7464
7267
|
/**
|
|
7465
7268
|
* Pure function from a materialized row → stable id used in the
|
|
7466
7269
|
* output collection. Required — explicit always beats default-with-pitfalls
|
|
@@ -11783,6 +11586,19 @@ declare class Collection<T> {
|
|
|
11783
11586
|
* no-transform fast path in {@link list}.
|
|
11784
11587
|
*/
|
|
11785
11588
|
private hasReadTransforms;
|
|
11589
|
+
/**
|
|
11590
|
+
* Scan-mode full-text search over a plain-text `field` (#308). Decrypts the
|
|
11591
|
+
* collection in memory and ranks records by BM25 against the tokenized query.
|
|
11592
|
+
* **Zero added store leakage** — pure client-side scan; nothing searchable is
|
|
11593
|
+
* written to the store. (A store-usable blind index for at-scale search is a
|
|
11594
|
+
* separate, gated opt-in — see the #308 design note.) Eager mode only.
|
|
11595
|
+
*
|
|
11596
|
+
* `opts.match` (`'any'` default | `'all'`), `opts.prefix` (last query term as
|
|
11597
|
+
* a prefix → typeahead), `opts.limit` (top-N). Returns `{ id, score, record }`
|
|
11598
|
+
* ranked by descending score. The default tokenizer is word-boundary based —
|
|
11599
|
+
* see `src/search/tokenize.ts` for the Thai/CJK caveat.
|
|
11600
|
+
*/
|
|
11601
|
+
search(field: string, query: string, opts?: SearchOptions): Promise<SearchResult<T>[]>;
|
|
11786
11602
|
/**
|
|
11787
11603
|
* Put many records in one call. Each item is processed sequentially
|
|
11788
11604
|
* through the normal `put()` path — meaning per-item validation,
|
|
@@ -12212,6 +12028,23 @@ declare class Collection<T> {
|
|
|
12212
12028
|
* surface on `index:write-partial` the same way put does.
|
|
12213
12029
|
*/
|
|
12214
12030
|
private maintainPersistedIndexesOnDelete;
|
|
12031
|
+
/**
|
|
12032
|
+
* @internal — hard-delete this record's persisted `_idx/<field>/<recordId>`
|
|
12033
|
+
* side-cars for the erasure path (#401). `forget()` crypto-shreds the body but
|
|
12034
|
+
* keeps the collection DEK, under which these side-cars are encrypted — so
|
|
12035
|
+
* without this they leave the indexed field VALUES readable after a "forget".
|
|
12036
|
+
*
|
|
12037
|
+
* Content-free: the side-car id is `encodeIdxId(def.key, id)`, so it needs no
|
|
12038
|
+
* body decode (the body is being shredded). Eager mode has no durable side-car
|
|
12039
|
+
* → no-op. The in-memory mirror is left as-is: it is ephemeral (rebuilt from
|
|
12040
|
+
* the now-deleted side-cars on reopen) and live reads skip the tombstone, so a
|
|
12041
|
+
* stale mirror hit cannot surface the erased record. Returns the count deleted
|
|
12042
|
+
* + the `def.key`s whose delete FAILED (residue that still leaks the value).
|
|
12043
|
+
*/
|
|
12044
|
+
_purgePersistedIndexes(id: string): Promise<{
|
|
12045
|
+
purged: number;
|
|
12046
|
+
residue: string[];
|
|
12047
|
+
}>;
|
|
12215
12048
|
/**
|
|
12216
12049
|
* Bulk-load the persisted-index mirror from `_idx/<field>/*` side-cars
|
|
12217
12050
|
* on first lazy-mode query. Idempotent — subsequent calls short-circuit
|
|
@@ -13305,13 +13138,15 @@ interface ExportStreamOptions {
|
|
|
13305
13138
|
*/
|
|
13306
13139
|
readonly withLedgerHead?: boolean;
|
|
13307
13140
|
/**
|
|
13308
|
-
*
|
|
13309
|
-
*
|
|
13310
|
-
*
|
|
13311
|
-
*
|
|
13312
|
-
*
|
|
13141
|
+
* Export locale (BCP 47, e.g. `'th'`). When set, records are read at this
|
|
13142
|
+
* locale through the **`export` layer** (#285): `i18nText` fields collapse to
|
|
13143
|
+
* the locale string (honoring each field's `export`-layer `onMissing` policy)
|
|
13144
|
+
* and `dictKey`/`staticDict` `<field>Label`s are resolved — a single-locale
|
|
13145
|
+
* export. The raw `dictionaries` snapshot is then redundant and omitted. This
|
|
13146
|
+
* applies to BOTH `exportStream()` and `exportJSON()`.
|
|
13313
13147
|
*
|
|
13314
|
-
* Default: `undefined` —
|
|
13148
|
+
* Default: `undefined` — raw `{locale}` maps + the `_dictionaries` snapshot
|
|
13149
|
+
* (a full, all-locale backup; format packages apply their own locale strategy).
|
|
13315
13150
|
*/
|
|
13316
13151
|
readonly resolveLabels?: string;
|
|
13317
13152
|
}
|
|
@@ -14124,6 +13959,13 @@ interface StoreCapabilities {
|
|
|
14124
13959
|
* numbering (use CAS `sequence().next()` or per-series).
|
|
14125
13960
|
*/
|
|
14126
13961
|
serverWriteTime?: boolean;
|
|
13962
|
+
/**
|
|
13963
|
+
* Advisory geographic region this store serves (e.g. `'eu'`, `'us'`).
|
|
13964
|
+
* Purely declarative — no behavior change for stores that omit it. The
|
|
13965
|
+
* federation data-residency guard (#271) compares this against a
|
|
13966
|
+
* `sharding.regionOf(record)` to refuse non-compliant shard placement.
|
|
13967
|
+
*/
|
|
13968
|
+
region?: string;
|
|
14127
13969
|
auth: StoreAuth;
|
|
14128
13970
|
/**
|
|
14129
13971
|
* true — the store implements {@link NoydbStore.tx} and commits
|
|
@@ -14625,4 +14467,4 @@ interface DeleteManyResult {
|
|
|
14625
14467
|
}>;
|
|
14626
14468
|
}
|
|
14627
14469
|
|
|
14628
|
-
export { DEFAULT_CHUNK_SIZE as $, createEnforcer as A, validateSessionPolicy as B, type BlobStrategy as C, DICT_COLLECTION_PREFIX as D, BLOB_CHUNKS_COLLECTION as E, BLOB_COLLECTION as F, BLOB_EVICTION_AUDIT_COLLECTION as G, BLOB_INDEX_COLLECTION as H, type I18nStrategy as I, BLOB_SLOTS_PREFIX as J, BLOB_VERSIONS_PREFIX as K, type Layer as L, type BlobEvictionEntry as M, type BlobFieldPolicy as N, type OnMissing as O, PolicyEnforcer as P, type BlobFieldsConfig as Q, type ResolveI18nOptions as R, type ScriptWarning as S, type BlobObject as T, type BlobPutOptions as U, type BlobResponseOptions as V, BlobSet as W, type BlobStrategyOpenArgs as X, type CompactRunOptions as Y, type CompactionContext as Z, type CompactionResult as _, type DictEntry as a, type Role as a$, EXPORT_AUDIT_COLLECTION as a0, ExportBlobsAbortedError as a1, type ExportBlobsAuditEntry as a2, type ExportBlobsHandle as a3, type ExportBlobsOptions as a4, type ExportedBlob as a5, type SlotInfo as a6, type SlotRecord as a7, type VersionRecord as a8, createExportBlobsHandle as a9, ReadOnlyVaultFacade as aA, type ShadowStrategy as aB, CollectionFrame as aC, VaultFrame as aD, type NoydbBundleStore as aE, type RetentionPolicy as aF, type SnapshotPolicy as aG, type SnapshotStrategy as aH, type SnapshotMeta as aI, type SnapshotMode as aJ, type DerivationStrategy as aK, type DerivationContext as aL, type ArrayOutputSpec as aM, DerivationRegistry as aN, type DerivationStrategyHandle as aO, type DerivedFromMeta as aP, type OutputSpec as aQ, type RecordOutputSpec as aR, type MaterializedViewStrategy as aS, type MaterializedViewStrategyHandle as aT, type OverlayedViewStrategy as aU, Collection as aV, type OverlayFieldMergeMode as aW, type OverlayFieldMergeRule as aX, OverlayedViewRegistry as aY, type OverlayedViewStrategyHandle as aZ, type SyncStrategy as a_, runCompaction as aa, type ConsentStrategy as ab, CONSENT_AUDIT_COLLECTION as ac, type ConsentAuditEntry as ad, type ConsentAuditFilter as ae, type ConsentContext as af, type ConsentOp as ag, loadConsentEntries as ah, writeConsentEntry as ai, type PeriodsStrategy as aj, type CarryForwardContext as ak, type ClosePeriodOptions as al, type OpenPeriodOptions as am, PERIODS_COLLECTION as an, type PeriodRecord as ao, type ReadOnlyCollection as ap, appendPeriodLedgerEntry as aq, assertTsWritable as ar, chainAnchor as as, loadPeriods as at, validatePeriodName as au, type GuardStrategy as av, type GuardChange as aw, type GuardContext as ax, GuardRegistry as ay, type GuardStrategyHandle as az, type DictKeyDescriptor as b, type CollectionStats as b$, type UnlockedKeyring as b0, type HistoryStrategy as b1, type NoydbStore as b2, type HistoryOptions as b3, type EncryptedEnvelope as b4, type PruneOptions as b5, type AppendInput as b6, type ChangeType as b7, CollectionInstant as b8, type DiffEntry as b9, type UserEnvelope as bA, type GateName as bB, type GatePolicy as bC, type VaultPolicy as bD, type ActiveTier as bE, type FactorProof as bF, type SchemaUpdateStrategy as bG, type TransformFn as bH, type PersistedSchemaEnvelope as bI, type UpdateDecision as bJ, type DirectoryConfig as bK, type UserVisibility as bL, type AccessibleVault as bM, type AffectedDocument as bN, type ArchivePolicy as bO, type ArchiveResult as bP, type ArchiveRunOptions as bQ, type ArchiveStrategy as bR, BUNDLE_STORE_POLICY as bS, type BuiltInGateName as bT, type CacheOptions as bU, type CacheStats as bV, type CapturedBlueprint as bW, type ChangeEvent as bX, type CollectionChangeEvent as bY, type CollectionConflictResolver as bZ, type CollectionDescriptor as b_, type JsonPatch as ba, type JsonPatchOp as bb, LedgerStore as bc, type VaultEngine as bd, VaultInstant as be, type VerifyResult as bf, applyPatch as bg, computePatch as bh, diff as bi, formatDiff as bj, type PublicEnvelope as bk, type SealingKeyProvider as bl, type BundleRecipient as bm, type RecipientSealer as bn, type RecipientHint as bo, Vault as bp, type RecoveryEnrollmentInput as bq, type ShamirRecoveryProvider as br, TxContext as bs, type MVQueryContext as bt, type RegisteredMV as bu, MaterializedViewRegistry as bv, type MaterializedFromMeta as bw, type MaterializedViewOutput as bx, type UnionArmJoin as by, type UnionSource as bz, DictionaryHandle as c, LinkEndpointError as c$, ComputedFieldError as c0, type ComputedFields as c1, type ComputedFn as c2, type Conflict as c3, type ConflictPolicy as c4, type ConflictStrategy as c5, type CrossTierAccessEvent as c6, CrossVaultAggregation as c7, type CrossVaultDerivationContext as c8, type CrossVaultDerivationSpec as c9, type FactorKind as cA, type FactorProofBundle as cB, type FactorRequirement as cC, type FanoutQueryOptions as cD, type FanoutResult as cE, type FenceDoc as cF, type FenceState as cG, type FieldChange as cH, type FieldDescriptor as cI, type FieldSource as cJ, type FleetMigrationResult as cK, type FormattedSequenceHandle as cL, type GhostRecord as cM, type GrantOptions as cN, type GuardViolation as cO, type HistoryConfig as cP, type HistoryEntry as cQ, INDEXED_STORE_POLICY as cR, type ImportCapability as cS, type InferOutput as cT, type InternalCollectionStats as cU, type IssueDelegationOptions as cV, type IssueMagicLinkGrantOptions as cW, type KeyringAuthenticator as cX, type KeyringAuthenticatorWrappingDEKs as cY, type KeyringAuthenticatorWrappingKEK as cZ, type KeyringFile as c_, CrossVaultGroupedAggregation as ca, type GroupedRow as cb, type CrossVaultLiveAggregation as cc, type CrossVaultLiveQuery as cd, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as ce, DELEGATIONS_COLLECTION as cf, type DeepPartial as cg, type DeepPartialOrNull as ch, type DeferredNumberingConfig as ci, type DelegationToken as cj, type DeleteManyResult as ck, type DeploymentEvent as cl, type DerivationDescriptor as cm, type DirtyEntry as cn, type DryRunResult as co, type DumpSchemaOptions as cp, ELEVATION_AUDIT_COLLECTION as cq, ElevatedHandle as cr, type EnrollAuthenticatorOptions as cs, type EnrollAuthenticatorWrappingDEKsOptions as ct, type EnrollAuthenticatorWrappingKEKOptions as cu, type EnrollRecoveryResult as cv, type ExportCapability as cw, type ExportChunk as cx, type ExportFormat as cy, type ExportStreamOptions as cz, type DictionaryOptions as d, QuickUnlockStore as d$, LinkIntegrityError as d0, type LinkOnDelete as d1, type LinkRow as d2, type LinkSetHandle as d3, type LinkSpec as d4, type ListAccessibleVaultsOptions as d5, type ListPageResult as d6, type ListUsersOptions as d7, type LiveQueryOptions as d8, type LiveUserEnvelope as d9, type PaperRecoveryEntry as dA, type PassphrasePolicy as dB, type PassphraseValidationResult as dC, type Permission as dD, type Permissions as dE, type PersistedSchemaKind as dF, type PlaintextTranslatorContext as dG, type PlaintextTranslatorFn as dH, PresenceHandle as dI, type PresencePeer as dJ, type PublicEnvelopeField as dK, type PublicEnvelopeSchema as dL, type PublicEnvelopeText as dM, type PullMode as dN, type PullOptions as dO, type PullPolicy as dP, type PullResult as dQ, type PushMode as dR, type PushOptions as dS, type PushPolicy as dT, type PushResult as dU, type PutManyItemOptions as dV, type PutManyOptions as dW, type PutManyResult as dX, type QueryAcrossOptions as dY, type QueryAcrossResult as dZ, type QuickUnlockState as d_, type LocaleReadOptions as da, Lru as db, type LruOptions as dc, type LruStats as dd, MAGIC_LINK_CONTENT_INFO_PREFIX as de, MAGIC_LINK_GRANTS_COLLECTION as df, MAGIC_LINK_KEK_INFO_PREFIX as dg, type MagicLinkGrantPayload as dh, type MagicLinkGrantRecord as di, type MaterializedViewDescriptor as dj, MemoryRecipientSealer as dk, MemorySealingKeyProvider as dl, type MigrationStatusRow as dm, NOYDB_BACKUP_VERSION as dn, NOYDB_FORMAT_VERSION as dp, NOYDB_KEYRING_VERSION as dq, NOYDB_SYNC_VERSION as dr, type NextOptions as ds, Noydb as dt, type NoydbEventMap as du, type NoydbOptions as dv, type Assignment as dw, type OverlayViewDescriptor as dx, PUBLIC_ENVELOPE_FIELDS as dy, type PaperRecoveryDoc as dz, type I18nMap as e, type UpdateAuthenticatorOptions as e$, type ReAuthOperation as e0, type RecoverPassphraseInput as e1, type RecoverPassphraseResult as e2, type RecoverUserOptions as e3, type RecoveryProof as e4, type RefreshInsightsResult as e5, type ResolvedPublicEnvelopeSchema as e6, type RevokeOptions as e7, type RotatePassphraseInput as e8, type RotateRecoveryOptions as e9, type StoreAuthKind as eA, type StoreCapabilities as eB, type StoreTime as eC, SyncEngine as eD, type SyncMetadata as eE, type SyncPolicy as eF, SyncScheduler as eG, type SyncSchedulerStatus as eH, type SyncStatus as eI, type SyncTarget as eJ, type SyncTargetRole as eK, SyncTransaction as eL, type SyncTransactionResult as eM, type TabChannel as eN, type TabCoordinationOptions as eO, type TabLockManager as eP, type TabPresence as eQ, type TabRole as eR, type TierMode as eS, type TransactionInvariant as eT, type TranslatorAuditEntry as eU, TxCollection as eV, type TxOp as eW, TxVault as eX, USER_ENVELOPE_COLLECTION as eY, USER_ENVELOPE_MAX_BYTES as eZ, type Unsubscribe as e_, type RotateRecoveryResult as ea, SEALED_PASSPHRASE_RECORD_ID as eb, type SchemaDelta as ec, type SchemaIntrospection as ed, type SchemaManifestRow as ee, type SealedEnvelope as ef, type SealedPassphrase as eg, type SequenceHandle as eh, type SequenceOptions as ei, SequenceStore as ej, type SessionPolicy as ek, type SetPublicEnvelopeInput as el, type ShamirRecoveryDoc as em, type ShamirRecoveryEntry as en, ShardedCollection as eo, ShardedGroupedQuery as ep, ShardedQuery as eq, type ShardingConfig as er, type SkippedVault as es, type SlotRewrapCeremony as et, type SlotRewrapContext as eu, type StandardSchemaV1 as ev, type StandardSchemaV1Issue as ew, type StandardSchemaV1SyncResult as ex, StateManagementVault as ey, type StoreAuth as ez, type I18nTextDescriptor as f, resolveSchema as f$, type UpdateContext as f0, type UpdateUserOptions as f1, UserApi as f2, type UserEnvelopeCheckGate as f3, UserEnvelopeOversizedError as f4, type UserEnvelopePresented as f5, type UserInfo as f6, type VaultBackup as f7, VaultGroup as f8, type VaultGroupOptions as f9, evaluateImportCapability as fA, findAuthenticator as fB, hasExportCapability as fC, hasImportCapability as fD, hasRecoveryEnrolled as fE, isLinkCollectionName as fF, isMagicLinkGrantExpired as fG, isPublicEnvelope as fH, issueDelegation as fI, recoverPassphrase as fJ, rotatePassphrase as fK, listMagicLinkGrants as fL, listUsers as fM, listUsersWithEnvelopes as fN, loadActiveDelegations as fO, loadPaperRecoveryEntries as fP, loadSealedPassphrase as fQ, loadShamirRecoveryEntries as fR, magicLinkGrantRecordId as fS, mintPaperRecoveryEntry as fT, mintShamirRecoveryEntry as fU, mintWrappedDeksBlob as fV, parseRsaOaepTlv as fW, parseSealedEnvelope as fX, readMagicLinkGrantRecord as fY, recoverUser as fZ, removeAuthenticator as f_, type VaultPolicyOnDisk as fa, type VaultRegistryRow as fb, type VaultSchemaSnapshot as fc, type VaultSnapshot as fd, type VaultTemplate as fe, type WarningRules as ff, WeakPassphraseError as fg, type WeakPassphraseReason as fh, type WithArchiveOptions as fi, type WrappedDeksBlob as fj, type WriteConflict as fk, type WriteEvent as fl, type WriteHook as fm, type WriteQueue as fn, aesGcmOpen as fo, assertStrongPassphrase as fp, buildRecipientKeyringFile as fq, burnPaperRecoveryEntry as fr, compileSequenceFormat as fs, createNoydb as ft, createStore as fu, deriveMagicLinkContentKey as fv, enrollAuthenticator as fw, estimateEntropy as fx, evalComputedFields as fy, evaluateExportCapability as fz, type I18nTextOptions as g, resolveSequenceKey as g0, revokeDelegation as g1, revokeMagicLinkGrant as g2, runTransaction as g3, savePaperRecoveryEntries as g4, saveSealedPassphrase as g5, saveShamirRecoveryEntries as g6, sealRsaOaepTlv as g7, unwrapDeksFromBlob as g8, unwrapDeksFromPaperEntry as g9, unwrapDeksFromShamirEntry as ga, unwrapMagicLinkGrant as gb, validatePassphrase as gc, validatePublicEnvelopeInput as gd, validateSchemaInput as ge, validateSchemaOutput as gf, withArchive as gg, withDeferredNumbering as gh, writeMagicLinkGrant as gi, changeSecret as gj, createOwnerKeyring as gk, ensureCollectionDEK as gl, grant as gm, loadKeyring as gn, persistKeyring as go, revoke as gp, updateAuthenticator as gq, updateKeyringIdentity as gr, type TxStrategy as gs, type AmendmentTxOptions as gt, type OnMissingPolicy as h, type StaticDictDescriptor as i, applyI18nLocale as j, dictCollectionName as k, dictKey as l, enforceScript as m, getAtPath as n, i18nText as o, inferScripts as p, isDictCollectionName as q, isDictKeyDescriptor as r, isI18nTextDescriptor as s, isStaticDictDescriptor as t, resolveI18nText as u, resolvePolicy as v, setAtPathInPlace as w, staticDict as x, validateI18nTextValue as y, type SessionStrategy as z };
|
|
14470
|
+
export { type ConsentAuditFilter as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type SlotInfo as T, type SlotRecord as U, type VersionRecord as V, createExportBlobsHandle as W, runCompaction as X, type ConsentStrategy as Y, CONSENT_AUDIT_COLLECTION as Z, type ConsentAuditEntry as _, type DictEntry as a, VaultInstant as a$, type ConsentContext as a0, type ConsentOp as a1, loadConsentEntries as a2, writeConsentEntry as a3, type PeriodsStrategy as a4, type CarryForwardContext as a5, type ClosePeriodOptions as a6, type OpenPeriodOptions as a7, PERIODS_COLLECTION as a8, type PeriodRecord as a9, type DerivedFromMeta as aA, type OutputSpec as aB, type RecordOutputSpec as aC, type MaterializedViewStrategy as aD, type MaterializedViewStrategyHandle as aE, type OverlayedViewStrategy as aF, Collection as aG, type OverlayFieldMergeMode as aH, type OverlayFieldMergeRule as aI, OverlayedViewRegistry as aJ, type OverlayedViewStrategyHandle as aK, type SyncStrategy as aL, type Role as aM, type UnlockedKeyring as aN, type HistoryStrategy as aO, type NoydbStore as aP, type HistoryOptions as aQ, type EncryptedEnvelope as aR, type PruneOptions as aS, type AppendInput as aT, type ChangeType as aU, CollectionInstant as aV, type DiffEntry as aW, type JsonPatch as aX, type JsonPatchOp as aY, LedgerStore as aZ, type VaultEngine as a_, type ReadOnlyCollection as aa, appendPeriodLedgerEntry as ab, assertTsWritable as ac, chainAnchor as ad, loadPeriods as ae, validatePeriodName as af, type GuardStrategy as ag, type GuardChange as ah, type GuardContext as ai, GuardRegistry as aj, type GuardStrategyHandle as ak, ReadOnlyVaultFacade as al, type ShadowStrategy as am, CollectionFrame as an, VaultFrame as ao, type NoydbBundleStore as ap, type RetentionPolicy as aq, type SnapshotPolicy as ar, type SnapshotStrategy as as, type SnapshotMeta as at, type SnapshotMode as au, type DerivationStrategy as av, type DerivationContext as aw, type ArrayOutputSpec as ax, DerivationRegistry as ay, type DerivationStrategyHandle as az, type DictKeyDescriptor as b, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as b$, type VerifyResult as b0, applyPatch as b1, computePatch as b2, diff as b3, formatDiff as b4, type PublicEnvelope as b5, type SealingKeyProvider as b6, type BundleRecipient as b7, type RecipientSealer as b8, type RecipientHint as b9, type ArchiveResult as bA, type ArchiveRunOptions as bB, type ArchiveStrategy as bC, BUNDLE_STORE_POLICY as bD, type BuiltInGateName as bE, type CacheOptions as bF, type CacheStats as bG, type CapturedBlueprint as bH, type ChangeEvent as bI, type CollectionChangeEvent as bJ, type CollectionConflictResolver as bK, type CollectionDescriptor as bL, type CollectionStats as bM, ComputedFieldError as bN, type ComputedFields as bO, type ComputedFn as bP, type Conflict as bQ, type ConflictPolicy as bR, type ConflictStrategy as bS, type CrossTierAccessEvent as bT, CrossVaultAggregation as bU, type CrossVaultDerivationContext as bV, type CrossVaultDerivationSpec as bW, CrossVaultGroupedAggregation as bX, type GroupedRow as bY, type CrossVaultLiveAggregation as bZ, type CrossVaultLiveQuery as b_, Vault as ba, type RecoveryEnrollmentInput as bb, type ShamirRecoveryProvider as bc, TxContext as bd, type MVQueryContext as be, type RegisteredMV as bf, MaterializedViewRegistry as bg, type MaterializedFromMeta as bh, type MaterializedViewOutput as bi, type UnionArmJoin as bj, type UnionSource as bk, type UserEnvelope as bl, type GateName as bm, type GatePolicy as bn, type VaultPolicy as bo, type ActiveTier as bp, type FactorProof as bq, type SchemaUpdateStrategy as br, type TransformFn as bs, type PersistedSchemaEnvelope as bt, type UpdateDecision as bu, type DirectoryConfig as bv, type UserVisibility as bw, type AccessibleVault as bx, type AffectedDocument as by, type ArchivePolicy as bz, DictionaryHandle as c, MAGIC_LINK_CONTENT_INFO_PREFIX as c$, DELEGATIONS_COLLECTION as c0, type DeepPartial as c1, type DeepPartialOrNull as c2, type DeferredNumberingConfig as c3, type DelegationToken as c4, type DeleteManyResult as c5, type DeploymentEvent as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type HistoryConfig as cA, type HistoryEntry as cB, INDEXED_STORE_POLICY as cC, type ImportCapability as cD, type InferOutput as cE, type InternalCollectionStats as cF, type IssueDelegationOptions as cG, type IssueMagicLinkGrantOptions as cH, type KeyringAuthenticator as cI, type KeyringAuthenticatorWrappingDEKs as cJ, type KeyringAuthenticatorWrappingKEK as cK, type KeyringFile as cL, LinkEndpointError as cM, LinkIntegrityError as cN, type LinkOnDelete as cO, type LinkRow as cP, type LinkSetHandle as cQ, type LinkSpec as cR, type ListAccessibleVaultsOptions as cS, type ListPageResult as cT, type ListUsersOptions as cU, type LiveQueryOptions as cV, type LiveUserEnvelope as cW, type LocaleReadOptions as cX, Lru as cY, type LruOptions as cZ, type LruStats as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EnrollAuthenticatorOptions as cd, type EnrollAuthenticatorWrappingDEKsOptions as ce, type EnrollAuthenticatorWrappingKEKOptions as cf, type EnrollRecoveryResult as cg, type ExportCapability as ch, type ExportChunk as ci, type ExportFormat as cj, type ExportStreamOptions as ck, type FactorKind as cl, type FactorProofBundle as cm, type FactorRequirement as cn, type FanoutQueryOptions as co, type FanoutResult as cp, type FenceDoc as cq, type FenceState as cr, type FieldChange as cs, type FieldDescriptor as ct, type FieldSource as cu, type FleetMigrationResult as cv, type FormattedSequenceHandle as cw, type GhostRecord as cx, type GrantOptions as cy, type GuardViolation as cz, type DictionaryOptions as d, type SchemaManifestRow as d$, MAGIC_LINK_GRANTS_COLLECTION as d0, MAGIC_LINK_KEK_INFO_PREFIX as d1, type MagicLinkGrantPayload as d2, type MagicLinkGrantRecord as d3, type MaterializedViewDescriptor as d4, MemoryRecipientSealer as d5, MemorySealingKeyProvider as d6, type MigrationStatusRow as d7, NOYDB_BACKUP_VERSION as d8, NOYDB_FORMAT_VERSION as d9, type PullPolicy as dA, type PullResult as dB, type PushMode as dC, type PushOptions as dD, type PushPolicy as dE, type PushResult as dF, type PutManyItemOptions as dG, type PutManyOptions as dH, type PutManyResult as dI, type QueryAcrossOptions as dJ, type QueryAcrossResult as dK, type QuickUnlockState as dL, QuickUnlockStore as dM, type ReAuthOperation as dN, type RecoverPassphraseInput as dO, type RecoverPassphraseResult as dP, type RecoverUserOptions as dQ, type RecoveryProof as dR, type RefreshInsightsResult as dS, type ResolvedPublicEnvelopeSchema as dT, type RevokeOptions as dU, type RotatePassphraseInput as dV, type RotateRecoveryOptions as dW, type RotateRecoveryResult as dX, SEALED_PASSPHRASE_RECORD_ID as dY, type SchemaDelta as dZ, type SchemaIntrospection as d_, NOYDB_KEYRING_VERSION as da, NOYDB_SYNC_VERSION as db, type NextOptions as dc, Noydb as dd, type NoydbEventMap as de, type NoydbOptions as df, type Assignment as dg, type OverlayViewDescriptor as dh, PUBLIC_ENVELOPE_FIELDS as di, type PaperRecoveryDoc as dj, type PaperRecoveryEntry as dk, type PassphrasePolicy as dl, type PassphraseValidationResult as dm, type Permission as dn, type Permissions as dp, type PersistedSchemaKind as dq, type PlaintextTranslatorContext as dr, type PlaintextTranslatorFn as ds, PresenceHandle as dt, type PresencePeer as du, type PublicEnvelopeField as dv, type PublicEnvelopeSchema as dw, type PublicEnvelopeText as dx, type PullMode as dy, type PullOptions as dz, type StaticDictDescriptor as e, type VaultRegistryRow as e$, type SealedEnvelope as e0, type SealedPassphrase as e1, type SearchEntry as e2, type SearchOptions as e3, type SearchResult as e4, type SequenceHandle as e5, type SequenceOptions as e6, SequenceStore as e7, type SessionPolicy as e8, type SetPublicEnvelopeInput as e9, type SyncTransactionResult as eA, type TabChannel as eB, type TabCoordinationOptions as eC, type TabLockManager as eD, type TabPresence as eE, type TabRole as eF, type TierMode as eG, type TransactionInvariant as eH, type TranslatorAuditEntry as eI, TxCollection as eJ, type TxOp as eK, TxVault as eL, USER_ENVELOPE_COLLECTION as eM, USER_ENVELOPE_MAX_BYTES as eN, type Unsubscribe as eO, type UpdateAuthenticatorOptions as eP, type UpdateContext as eQ, type UpdateUserOptions as eR, UserApi as eS, type UserEnvelopeCheckGate as eT, UserEnvelopeOversizedError as eU, type UserEnvelopePresented as eV, type UserInfo as eW, type VaultBackup as eX, VaultGroup as eY, type VaultGroupOptions as eZ, type VaultPolicyOnDisk as e_, type ShamirRecoveryDoc as ea, type ShamirRecoveryEntry as eb, ShardedCollection as ec, ShardedGroupedQuery as ed, ShardedQuery as ee, type ShardingConfig as ef, type SkippedVault as eg, type SlotRewrapCeremony as eh, type SlotRewrapContext as ei, type StandardSchemaV1 as ej, type StandardSchemaV1Issue as ek, type StandardSchemaV1SyncResult as el, StateManagementVault as em, type StoreAuth as en, type StoreAuthKind as eo, type StoreCapabilities as ep, type StoreTime as eq, SyncEngine as er, type SyncMetadata as es, type SyncPolicy as et, SyncScheduler as eu, type SyncSchedulerStatus as ev, type SyncStatus as ew, type SyncTarget as ex, type SyncTargetRole as ey, SyncTransaction as ez, dictCollectionName as f, unwrapMagicLinkGrant as f$, type VaultSchemaSnapshot as f0, type VaultSnapshot as f1, type VaultTemplate as f2, type WarningRules as f3, WeakPassphraseError as f4, type WeakPassphraseReason as f5, type WithArchiveOptions as f6, type WrappedDeksBlob as f7, type WriteConflict as f8, type WriteEvent as f9, listUsers as fA, listUsersWithEnvelopes as fB, loadActiveDelegations as fC, loadPaperRecoveryEntries as fD, loadSealedPassphrase as fE, loadShamirRecoveryEntries as fF, magicLinkGrantRecordId as fG, mintPaperRecoveryEntry as fH, mintShamirRecoveryEntry as fI, mintWrappedDeksBlob as fJ, parseRsaOaepTlv as fK, parseSealedEnvelope as fL, readMagicLinkGrantRecord as fM, recoverUser as fN, removeAuthenticator as fO, resolveSchema as fP, resolveSequenceKey as fQ, revokeDelegation as fR, revokeMagicLinkGrant as fS, runTransaction as fT, savePaperRecoveryEntries as fU, saveSealedPassphrase as fV, saveShamirRecoveryEntries as fW, sealRsaOaepTlv as fX, unwrapDeksFromBlob as fY, unwrapDeksFromPaperEntry as fZ, unwrapDeksFromShamirEntry as f_, type WriteHook as fa, type WriteQueue as fb, aesGcmOpen as fc, assertStrongPassphrase as fd, buildRecipientKeyringFile as fe, burnPaperRecoveryEntry as ff, compileSequenceFormat as fg, createNoydb as fh, createStore as fi, deriveMagicLinkContentKey as fj, enrollAuthenticator as fk, estimateEntropy as fl, evalComputedFields as fm, evaluateExportCapability as fn, evaluateImportCapability as fo, findAuthenticator as fp, hasExportCapability as fq, hasImportCapability as fr, hasRecoveryEnrolled as fs, isLinkCollectionName as ft, isMagicLinkGrantExpired as fu, isPublicEnvelope as fv, issueDelegation as fw, recoverPassphrase as fx, rotatePassphrase as fy, listMagicLinkGrants as fz, dictKey as g, validatePassphrase as g0, validatePublicEnvelopeInput as g1, validateSchemaInput as g2, validateSchemaOutput as g3, withArchive as g4, withDeferredNumbering as g5, writeMagicLinkGrant as g6, changeSecret as g7, createOwnerKeyring as g8, ensureCollectionDEK as g9, grant as ga, loadKeyring as gb, persistKeyring as gc, revoke as gd, updateAuthenticator as ge, updateKeyringIdentity as gf, type TxStrategy as gg, type AmendmentTxOptions as gh, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|