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,
7 ExternalUnencrypted = 2,
11 export enum ForwardingState {
19 export interface AddressForwarding {
22 State: ForwardingState;
26 Version: SIEVE_VERSION;
31 interface ForwardingKey {
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;