29 lines
529 B
TypeScript
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;
|
|
}
|