server/types/entities/status.ts
Jesse Wierzbinski 636f2ffff8
Fix ESLint
2023-09-10 17:46:20 -10:00

47 lines
1.1 KiB
TypeScript

import { Account } from "./account";
import { Application } from "./application";
import { Attachment } from "./attachment";
import { Card } from "./card";
import { Emoji } from "./emoji";
import { Mention } from "./mention";
import { Poll } from "./poll";
export interface Status {
id: string;
uri: string;
url: string;
account: Account;
in_reply_to_id: string | null;
in_reply_to_account_id: string | null;
reblog: Status | null;
content: string;
created_at: string;
emojis: Emoji[];
replies_count: number;
reblogs_count: number;
favourites_count: number;
reblogged: boolean | null;
favourited: boolean | null;
muted: boolean | null;
sensitive: boolean;
spoiler_text: string;
visibility: "public" | "unlisted" | "private" | "direct";
media_attachments: Attachment[];
mentions: Mention[];
tags: StatusTag[];
card: Card | null;
poll: Poll | null;
application: Application | null;
language: string | null;
pinned: boolean | null;
bookmarked?: boolean;
// These parameters are unique parameters in fedibird.com for quote.
quote_id?: string;
quote?: Status | null;
}
export interface StatusTag {
name: string;
url: string;
}