-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
71 lines (70 loc) · 2.57 KB
/
types.ts
File metadata and controls
71 lines (70 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export interface Status {
/** ID of the status in the database. */
id: string;
/** URI of the status used for federation. */
uri: string;
/** The date when this status was created. */
createdAt: string;
/** Timestamp of when the status was last edited. */
editedAt: string | null;
/** The account that authored this status. */
account: any;
/** HTML-encoded status content. */
content: string;
/** Visibility of this status. */
visibility: any;
/** Is this status marked as sensitive content? */
sensitive: boolean;
/** Subject or summary line, below which status content is collapsed until expanded. */
spoilerText: string;
/** Media that is attached to this status. */
mediaAttachments: any[];
/** The application used to post this status. */
application: any;
/** Mentions of users within the status content. */
mentions: any[];
/** Hashtags used within the status content. */
tags: any[];
/** Custom emoji to be used when rendering status content. */
emojis: any[];
/** How many boosts this status has received. */
reblogsCount: number;
/** How many favourites this status has received. */
favouritesCount: number;
/** If the current token has an authorized user: The filter and keywords that matched this status. */
filtered?: any[];
/** How many replies this status has received. */
repliesCount: number;
/** A link to the status's HTML representation. */
url?: string | null;
/** ID of the status being replied. */
inReplyToId?: string | null;
/** ID of the account being replied to. */
inReplyToAccountId?: string | null;
/** The status being reblogged. */
reblog?: Status | null;
/** The poll attached to the status. */
poll?: any | null;
/** Preview card for links included within status content. */
card?: any | null;
/** Primary language of this status. */
language?: string | null;
/**
* Plain-text source of a status. Returned instead of `content` when status is deleted,
* so the user may redraft from the source text without the client having
* to reverse-engineer the original text from the HTML content.
*/
text?: string | null;
/** Have you favourited this status? */
favourited?: boolean | null;
/** Have you boosted this status? */
reblogged?: boolean | null;
/** Have you muted notifications for this status's conversation? */
muted?: boolean | null;
/** Have you bookmarked this status? */
bookmarked?: boolean | null;
/** Have you pinned this status? Only appears if the status is pin-able. */
pinned?: boolean | null;
// Added here custom
children?: Status[];
}