tutanota/test/tests/api/worker/facades
map 5293be6a4a
Implement spam training data sync and add TutanotaModelV98
We sync the spam training data encrypted through our server to make
sure that all clients for a specific user behave the same when
classifying mails. Additionally, this enables the spam classification
in the webApp. We compress the training data vectors
(see clientSpamTrainingDatum) before uploading to our server using
SparseVectorCompressor.ts. When a user has the ClientSpamClassification
enabled, the spam training data sync will happen for every mail
received.

ClientSpamTrainingDatum are not stored in the CacheStorage.
No entityEvents are emitted for this type.
However, we retrieve creations and updates for ClientSpamTrainingData
through the modifiedClientSpamTrainingDataIndex.

We calculate a threshold per classifier based on the dataset ham to spam
ratio, we also subsample our training data to cap the ham to spam ratio
within a certain limit.

Co-authored-by: jomapp <17314077+jomapp@users.noreply.github.com>
Co-authored-by: das <das@tutao.de>
Co-authored-by: abp <abp@tutao.de>
Co-authored-by: Kinan <104761667+kibibytium@users.noreply.github.com>
Co-authored-by: sug <sug@tutao.de>
Co-authored-by: nif <nif@tutao.de>
Co-authored-by: map <mpfau@users.noreply.github.com>
2025-11-18 13:56:19 +01:00
..
AdminKeyLoaderFacadeTest.ts Fix incorrect imports from @tutao/tutanota-utils 2025-09-30 16:40:14 +02:00
ApplicationTypesFacadeTest.ts Fix incorrect imports from @tutao/tutanota-utils 2025-09-30 16:40:14 +02:00
BlobAccessTokenFacadeTest.ts allow downloading blobs of same file from multiple archives 2025-10-22 09:25:20 +02:00
BlobFacadeTest.ts allow downloading blobs of same file from multiple archives 2025-10-22 09:25:20 +02:00
CalendarFacadeTest.ts Inject type model resolvers 2025-05-27 14:52:44 +02:00
ConfigurationDbTest.ts Add SQLite search on clients where offline storage is available 2025-06-04 10:36:46 +02:00
ContactFacadeTest.ts Move files to new folder structure 2024-07-26 16:42:13 +02:00
GroupManagementFacadeTest.ts Fix incorrect imports from @tutao/tutanota-utils 2025-09-30 16:40:14 +02:00
IdentityKeyCreatorTest.ts check if the identity key pair exists before creation 2025-10-16 14:50:40 +02:00
IdentityKeyTrustDatabaseTest.ts fix race condition when requesting identity keys for the first time 2025-10-15 09:32:32 +02:00
KeyAuthenticationFacadeTest.ts Finalize crypto-primitives integration and use ed25519 from it 2025-08-07 09:51:21 +02:00
KeyCacheTest.ts add constraints for key versions only accepting non-negative integers 2025-02-06 09:26:02 +01:00
KeyLoaderFacadeTest.ts Fix incorrect imports from @tutao/tutanota-utils 2025-09-30 16:40:14 +02:00
KeyRotationFacadeTest.ts do not execute key rotation rollout if argon2 migration is pending 2025-10-15 09:51:15 +02:00
KeyVerificationFacadeTest.ts skip identity key trust database access in temporary sessions 2025-08-07 10:06:00 +02:00
KyberFacadeTest.ts Move files to new folder structure 2024-07-26 16:42:13 +02:00
LoginFacadeTest.ts Replace GroupKeyRotationInfoService calls with Rollout system 2025-08-07 09:59:22 +02:00
MailAddressFacadeTest.ts use a smarter method for rate-limiting email availability 2025-10-30 09:15:44 +01:00
MailExportFacadeTest.ts Round-robin mail details calls when exporting 2025-04-03 10:04:37 +02:00
MailExportTokenFacadeTest.ts Handle mail export throttling 2025-01-27 12:04:17 +01:00
MailFacadeTest.ts Implement spam training data sync and add TutanotaModelV98 2025-11-18 13:56:19 +01:00
OfflineStorageAutosaveFacadeTest.ts Use offline storage for autosaved drafts 2025-10-02 13:17:57 +02:00
PQFacadeTest.ts Rename ECC keys and functions to X25519 2025-04-02 16:12:19 +02:00
PQMessageTest.ts update eslint to v9 2025-01-09 14:55:11 +01:00
PublicEncryptionKeyProviderTest.ts Refactor key verification 2025-08-07 09:59:21 +02:00
PublicIdentityKeyProviderTest.ts skip identity key trust database access in temporary sessions 2025-08-07 10:06:00 +02:00
PublicKeySignatureFacadeTest.ts Sign public encryption keys 2025-08-07 09:59:21 +02:00
RolloutFacadeTest.ts Replace GroupKeyRotationInfoService calls with Rollout system 2025-08-07 09:59:22 +02:00
RsaPqPerformanceTest.ts Rename ECC keys and functions to X25519 2025-04-02 16:12:19 +02:00
UserFacadeTest.ts Use new key derivation for user group key distribution 2025-02-06 09:26:02 +01:00