Files
dmail-api/src/modules/mail-server/interfaces/mailboxes-response.interface.ts
T

29 lines
529 B
TypeScript

export interface MailboxInfo {
id: string;
name: string;
path: string;
specialUse: string | null | false;
modifyIndex: number;
subscribed: boolean;
total?: number;
unseen?: number;
size?: number;
retention?: number;
hidden?: boolean;
encryptMessages?: boolean;
}
export interface MailboxListResponse {
success: true;
results: MailboxInfo[];
}
export interface MailboxCreateResponse {
success: true;
id: string;
}
export interface MailboxDetailsResponse extends MailboxInfo {
success: true;
}