Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / AddressForwarding.ts
blob956d8421d76e4f0470bbb201705eed5081eb3ff9
1 import type { SIEVE_VERSION, SieveBranch } from '@proton/sieve/src/interface';
3 // bit 0 = unencrypted/encrypted, bit 1: internal/external
4 export enum ForwardingType {
5     InternalUnencrypted = 0,
6     InternalEncrypted = 1,
7     ExternalUnencrypted = 2,
8     ExternalEncrypted = 3,
11 export enum ForwardingState {
12     Pending = 0,
13     Active = 1,
14     Outdated = 2,
15     Paused = 3,
16     Rejected = 4,
19 export interface AddressForwarding {
20     ID: string;
21     CreateTime: number;
22     State: ForwardingState;
23     Type: ForwardingType;
24     Filter: {
25         Tree: SieveBranch[];
26         Version: SIEVE_VERSION;
27         Sieve: string;
28     } | null;
31 interface ForwardingKey {
32     PrivateKey: string;
33     ActivationToken: string;
36 export interface IncomingAddressForwarding extends AddressForwarding {
37     ForwardeeAddressID: string;
38     ForwarderEmail: string;
39     ForwardingKeys?: ForwardingKey[];
42 export interface OutgoingAddressForwarding extends AddressForwarding {
43     ForwarderAddressID: string;
44     ForwardeeEmail: string;