mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 08:12:43 +00:00
24 lines
623 B
TypeScript
24 lines
623 B
TypeScript
// Types shared between the relay routes and the store. Kept in a leaf module
|
|
// so both server code and admin UIs can import without pulling `node:fs`.
|
|
|
|
export interface SubscriptionRecord {
|
|
fcmToken: string;
|
|
verificationCode: string | null;
|
|
createdAt: number;
|
|
lastPushAt: number | null;
|
|
accountLabel?: string;
|
|
}
|
|
|
|
export interface PushVerification {
|
|
'@type': 'PushVerification';
|
|
pushSubscriptionId: string;
|
|
verificationCode: string;
|
|
}
|
|
|
|
export interface StateChange {
|
|
'@type': 'StateChange';
|
|
changed: Record<string, Record<string, string>>;
|
|
}
|
|
|
|
export type JmapPushBody = PushVerification | StateChange;
|