feat(notification): manage push applications

This commit is contained in:
2026-09-10 20:09:06 +08:00
parent 573b0c4bc7
commit 1243ed6c92
7 changed files with 140 additions and 0 deletions
+35
View File
@@ -410,6 +410,41 @@ export interface NotificationDeviceStats {
platform_stats: Partial<Record<NotificationDevice['platform'], number>>
}
export type PushProvider = 'apn' | 'fcm' | 'hms' | 'mipush'
export interface PushApp {
kind: 'push_app'
id: string
app_key: string
provider: PushProvider
platform: 'ios' | 'android'
label: string | null
topic: string | null
settings: Record<string, unknown>
is_active: boolean
credentials_file: string | null
credentials_present: boolean
created_at: string
updated_at: string
}
export interface PushAppPayload {
app_key: string
provider: PushProvider
label?: string | null
topic?: string | null
settings?: Record<string, unknown> | null
credentials_path?: string | null
is_active?: boolean
}
export interface PushAppVerification {
kind: 'push_app_verification'
id: string
checks: Record<string, boolean>
ok: boolean
}
export type ReportStatus = 'open' | 'resolved' | 'dismissed'
export interface ReportUser {