2026-07-17 12:50:06 -07:00
|
|
|
export interface Report {
|
|
|
|
|
id: string;
|
|
|
|
|
communityId: string;
|
|
|
|
|
communityHost: string;
|
|
|
|
|
reporterPubkey: string;
|
|
|
|
|
targetKind: "event" | "pubkey" | "blob";
|
|
|
|
|
target: string;
|
|
|
|
|
channelId?: string;
|
|
|
|
|
reportType: string;
|
|
|
|
|
note?: string;
|
|
|
|
|
status: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-27 12:49:21 -07:00
|
|
|
export interface ReportedMessage {
|
|
|
|
|
authorPubkey: string;
|
|
|
|
|
content: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
deletedAt: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ReportDetail extends Report {
|
|
|
|
|
message: ReportedMessage | null;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-17 12:50:06 -07:00
|
|
|
export interface FeedbackSummary {
|
|
|
|
|
id: string;
|
|
|
|
|
communityId: string;
|
|
|
|
|
communityHost: string;
|
|
|
|
|
submitterPubkey: string;
|
|
|
|
|
category?: string;
|
|
|
|
|
bodySummary: string;
|
|
|
|
|
receivedAt: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface FeedbackDetail {
|
|
|
|
|
id: string;
|
|
|
|
|
communityId: string;
|
|
|
|
|
communityHost: string;
|
|
|
|
|
eventId: string;
|
|
|
|
|
submitterPubkey: string;
|
|
|
|
|
category?: string;
|
|
|
|
|
body: string;
|
|
|
|
|
tags: string[][];
|
|
|
|
|
eventCreatedAt: string;
|
|
|
|
|
receivedAt: string;
|
|
|
|
|
}
|