puyoskey/packages/megalodon/src/entities/report.ts
2023-09-24 01:44:53 +02:00

18 lines
462 B
TypeScript

/// <reference path="account.ts" />
namespace Entity {
export type Report = {
id: string
action_taken: boolean
action_taken_at: string | null
status_ids: Array<string> | null
rule_ids: Array<string> | null
// These parameters don't exist in Pleroma
category: Category | null
comment: string | null
forwarded: boolean | null
target_account?: Account | null
}
export type Category = 'spam' | 'violation' | 'other'
}