Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / hooks / GetPublicKeysForInbox.ts
blobdf0ad928c7ac74f3ac55075fd236b707e13e35d1
1 import type { ApiKeysConfig } from '../EncryptionPreferences';
3 export type GetPublicKeysForInbox = ({
4     email,
5     lifetime,
6     internalKeysOnly,
7     includeInternalKeysWithE2EEDisabledForMail,
8 }: {
9     email: string;
10     lifetime?: number;
11     internalKeysOnly?: boolean;
12     /**
13      * Whether to return internal keys which cannot be used for email encryption, as the owner has disabled E2EE.
14      * These keys may still be used for e.g. calendar sharing or message verification.
15      **/
16     includeInternalKeysWithE2EEDisabledForMail?: boolean;
17 }) => Promise<ApiKeysConfig>;