feat: add official account management
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user