2023-09-11 05:31:08 +02:00
|
|
|
import { Emoji } from "./emoji";
|
|
|
|
|
import { StatusTag } from "./status";
|
|
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface Announcement {
|
2023-09-11 05:31:08 +02:00
|
|
|
id: string;
|
|
|
|
|
content: string;
|
|
|
|
|
starts_at: string | null;
|
|
|
|
|
ends_at: string | null;
|
|
|
|
|
published: boolean;
|
|
|
|
|
all_day: boolean;
|
|
|
|
|
published_at: string;
|
|
|
|
|
updated_at: string;
|
|
|
|
|
read: boolean | null;
|
2023-09-11 05:46:20 +02:00
|
|
|
mentions: AnnouncementAccount[];
|
|
|
|
|
statuses: AnnouncementStatus[];
|
|
|
|
|
tags: StatusTag[];
|
|
|
|
|
emojis: Emoji[];
|
|
|
|
|
reactions: AnnouncementReaction[];
|
|
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface AnnouncementAccount {
|
2023-09-11 05:31:08 +02:00
|
|
|
id: string;
|
|
|
|
|
username: string;
|
|
|
|
|
url: string;
|
|
|
|
|
acct: string;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface AnnouncementStatus {
|
2023-09-11 05:31:08 +02:00
|
|
|
id: string;
|
|
|
|
|
url: string;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface AnnouncementReaction {
|
2023-09-11 05:31:08 +02:00
|
|
|
name: string;
|
|
|
|
|
count: number;
|
|
|
|
|
me: boolean | null;
|
|
|
|
|
url: string | null;
|
|
|
|
|
static_url: string | null;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|