feat: add official account management

This commit is contained in:
2026-09-13 20:32:24 +08:00
parent 3c850528a4
commit 77c5535156
8 changed files with 494 additions and 8 deletions
+32
View File
@@ -445,6 +445,38 @@ export interface PushAppVerification {
ok: boolean
}
export type OfficialAccountType = 'subscription' | 'service' | 'system'
export interface OfficialAccount {
kind: 'official_account'
id: string
owner_uid: string | null
slug: string
name: string
description: string | null
avatar_url: string | null
avatar_path: string | null
verified: boolean
type: OfficialAccountType
auto_reply_config: Record<string, unknown> | null
is_global: boolean
followers_count: number
created_at: string
updated_at: string
}
export interface OfficialAccountPayload {
slug: string
name: string
description?: string | null
avatar_url?: string | null
owner_uid?: string | null
verified?: boolean
type: OfficialAccountType
auto_reply_config?: Record<string, unknown> | null
is_global?: boolean
}
export type ReportStatus = 'open' | 'resolved' | 'dismissed'
export interface ReportUser {