2023-09-26 04:25:01 -05:00
|
|
|
import type { ApiCustomEmojiJSON } from './custom_emoji';
|
|
|
|
|
|
|
|
export interface ApiAccountFieldJSON {
|
|
|
|
name: string;
|
|
|
|
value: string;
|
|
|
|
verified_at: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ApiAccountRoleJSON {
|
|
|
|
color: string;
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// See app/serializers/rest/account_serializer.rb
|
|
|
|
export interface ApiAccountJSON {
|
|
|
|
acct: string;
|
|
|
|
avatar: string;
|
|
|
|
avatar_static: string;
|
|
|
|
bot: boolean;
|
|
|
|
created_at: string;
|
|
|
|
discoverable: boolean;
|
2023-11-15 05:13:53 -06:00
|
|
|
indexable: boolean;
|
2023-09-26 04:25:01 -05:00
|
|
|
display_name: string;
|
|
|
|
emojis: ApiCustomEmojiJSON[];
|
|
|
|
fields: ApiAccountFieldJSON[];
|
|
|
|
followers_count: number;
|
|
|
|
following_count: number;
|
|
|
|
group: boolean;
|
|
|
|
header: string;
|
|
|
|
header_static: string;
|
|
|
|
id: string;
|
|
|
|
last_status_at: string;
|
|
|
|
locked: boolean;
|
2023-11-03 10:00:03 -05:00
|
|
|
noindex?: boolean;
|
2023-09-26 04:25:01 -05:00
|
|
|
note: string;
|
2023-11-03 10:00:03 -05:00
|
|
|
roles?: ApiAccountJSON[];
|
2023-09-26 04:25:01 -05:00
|
|
|
statuses_count: number;
|
|
|
|
uri: string;
|
|
|
|
url: string;
|
|
|
|
username: string;
|
|
|
|
moved?: ApiAccountJSON;
|
|
|
|
suspended?: boolean;
|
|
|
|
limited?: boolean;
|
|
|
|
memorial?: boolean;
|
|
|
|
}
|