server/types/entities-2/status.ts

47 lines
1.3 KiB
TypeScript
Raw Normal View History

import type { APIAccount } from "./account";
import type { APIApplication } from "./application";
import type { APIAttachment } from "./attachment";
import type { APICard } from "./card";
import type { APIEmoji } from "./emoji";
import type { APIMention } from "./mention";
import type { APIPoll } from "./poll";
2023-09-11 05:31:08 +02:00
2023-09-12 22:48:10 +02:00
export interface APIStatus {
2024-04-07 07:30:49 +02:00
id: string;
uri: string;
url: string;
account: APIAccount;
in_reply_to_id: string | null;
in_reply_to_account_id: string | null;
reblog: APIStatus | null;
content: string;
created_at: string;
emojis: APIEmoji[];
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: APIAttachment[];
mentions: APIMention[];
tags: APIStatusTag[];
card: APICard | null;
poll: APIPoll | null;
application: APIApplication | null;
language: string | null;
pinned: boolean | null;
bookmarked?: boolean;
// These parameters are unique parameters in fedibird.com for quote.
quote_id?: string;
quote?: APIStatus | null;
2023-09-11 05:46:20 +02:00
}
2023-09-11 05:31:08 +02:00
2023-09-12 22:48:10 +02:00
export interface APIStatusTag {
2024-04-07 07:30:49 +02:00
name: string;
url: string;
2023-09-11 05:46:20 +02:00
}