summaryrefslogtreecommitdiff
path: root/packages/megalodon/src/entities/status.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/megalodon/src/entities/status.ts')
-rw-r--r--packages/megalodon/src/entities/status.ts72
1 files changed, 38 insertions, 34 deletions
diff --git a/packages/megalodon/src/entities/status.ts b/packages/megalodon/src/entities/status.ts
index f27f728b54..295703e57c 100644
--- a/packages/megalodon/src/entities/status.ts
+++ b/packages/megalodon/src/entities/status.ts
@@ -1,7 +1,6 @@
/// <reference path="account.ts" />
/// <reference path="application.ts" />
/// <reference path="mention.ts" />
-/// <reference path="tag.ts" />
/// <reference path="attachment.ts" />
/// <reference path="emoji.ts" />
/// <reference path="card.ts" />
@@ -9,37 +8,42 @@
/// <reference path="reaction.ts" />
namespace Entity {
- 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;
- plain_content: string | null;
- 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<Tag>;
- card: Card | null;
- poll: Poll | null;
- application: Application | null;
- language: string | null;
- pinned: boolean | null;
- reactions: Array<Reaction>;
- quote: Status | null;
- bookmarked: boolean;
- };
+ 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
+ plain_content: string | null
+ 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
+ emoji_reactions: Array<Reaction>
+ quote: boolean
+ bookmarked: boolean
+ }
+
+ export type StatusTag = {
+ name: string
+ url: string
+ }
}