UNPKG

@cutls/megalodon

Version:

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

44 lines (43 loc) 1.17 kB
import type { Account } from './account.js'; import type { URLs } from './urls.js'; import type { Stats } from './stats.js'; import type { Instance as MastodonInstance } from '../mastodon/entities/instance.js'; export type Instance = { uri: string; title: string; description: string; email: string; version: string; thumbnail: string | null; urls: URLs | null; stats: Stats; languages: Array<string>; registrations: boolean; approval_required: boolean; invites_enabled?: boolean; configuration: { statuses: { max_characters: number; max_media_attachments?: number; characters_reserved_per_url?: number; }; polls?: { max_options: number; max_characters_per_option: number; min_expiration: number; max_expiration: number; }; }; contact_account?: Account; rules?: Array<InstanceRule>; rawData?: MastodonInstance; }; export type InstanceRule = { id: string; text: string; hint?: string; translations?: Record<string, { text: string; hint: string; }>; };