2019-03-25 21:23:04 +01:00
|
|
|
import { MastodonEmoji } from './Emojis';
|
|
|
|
import { Field } from './Field';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Basic type for an account on Mastodon
|
|
|
|
*/
|
|
|
|
export type Account = {
|
|
|
|
id: string;
|
|
|
|
username: string;
|
|
|
|
acct: string;
|
|
|
|
display_name: string;
|
|
|
|
locked: boolean;
|
|
|
|
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: [MastodonEmoji];
|
|
|
|
moved: Account | null;
|
|
|
|
fields: [Field];
|
|
|
|
bot: boolean | null;
|
2019-03-28 00:24:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type UAccount = {
|
2019-03-28 03:01:55 +01:00
|
|
|
id: string;
|
2019-03-28 00:24:52 +01:00
|
|
|
acct: string;
|
|
|
|
display_name: string;
|
|
|
|
avatar_static: string;
|
2019-03-25 21:23:04 +01:00
|
|
|
}
|