mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
47 lines
1.1 KiB
TypeScript
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 type 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: Array<Attachment>;
|
|
mentions: Array<Mention>;
|
|
tags: Array<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 type StatusTag = {
|
|
name: string;
|
|
url: string;
|
|
};
|