server/types/mastodon/account.ts

37 lines
897 B
TypeScript
Raw Normal View History

2024-04-14 12:53:21 +02:00
import type { Emoji } from "./emoji";
import type { Field } from "./field";
import type { LysandRole } from "./lysand";
2024-04-14 12:53:21 +02:00
import type { Role } from "./role";
import type { Source } from "./source";
2023-09-11 05:31:08 +02:00
2024-04-14 12:53:21 +02:00
export type Account = {
2024-04-07 07:30:49 +02:00
id: string;
username: string;
acct: string;
display_name: string;
locked: boolean;
discoverable?: boolean;
group: boolean | null;
noindex: boolean | null;
suspended: boolean | null;
limited: boolean | null;
created_at: string;
followers_count: number;
following_count: number;
statuses_count: number;
note: string;
url: string;
avatar: string;
avatar_static: string;
header: string;
header_static: string;
emojis: Emoji[];
2024-04-14 12:53:21 +02:00
moved: Account | null;
fields: Field[];
2024-04-14 12:53:21 +02:00
bot: boolean | null;
source?: Source;
role?: Role;
roles: LysandRole[];
2024-04-07 07:30:49 +02:00
mute_expires_at?: string;
2024-04-14 12:53:21 +02:00
};