@cutls/megalodon
Version:
Mastodon, Pleroma, Misskey API client for node.js and browser
50 lines (49 loc) • 1.17 kB
TypeScript
import { Emoji } from './emoji.js'
import { Note } from './note.js'
import { Field } from './field.js'
export type UserDetail = {
id: string
name: string | null
username: string
host: string | null
avatarUrl: string | null
avatarBlurhash: string | null
avatarColor: string | null
isAdmin?: boolean
isModerator?: boolean
isBot?: boolean
isCat?: boolean
isIndexable?: boolean
speakAsCat?: boolean
emojis: Array<Emoji>
url: string | null
uri: string | null
movedToUri: string | null
createdAt: string
updatedAt: string | null
bannerUrl: string | null
bannerBlurhash: string | null
bannerColor: string | null
isLocked: boolean
isSilenced: boolean
isSuspended: boolean
description: string | null
lang: string | null
fields: Array<Field>
followersCount: number
followingCount: number
notesCount: number
pinnedNoteIds: Array<string>
pinnedNotes: Array<Note>
isFollowing?: boolean
isFollowed?: boolean
hasPendingFollowRequestFromYou?: boolean
hasPendintFollowRequestToYou?: boolean
isBlocking?: boolean
isBlocked?: boolean
isMuted?: boolean
isRenoteMuted?: boolean
}
export type UserDetailMe = UserDetail & {
alwaysMarkNsfw: boolean
}