UNPKG

@cutls/megalodon

Version:

Mastodon, Pleroma, Misskey API client for node.js and browser

45 lines (44 loc) 1.11 kB
import { Account } from './account.js' import { Emoji } from './emoji.js' import { Attachment } from './attachment.js' import { Application } from './application.js' import { Mention } from './mention.js' import { Card } from './card.js' import { Poll } from './poll.js' 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: StatusVisibility 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 quote_id?: string quote?: Status | null } export type StatusTag = { name: string url: string } export type StatusVisibility = 'public' | 'unlisted' | 'private'