diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-09-24 01:44:53 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-09-24 01:44:53 +0200 |
| commit | afda15260f4f97ec00b3e7fdf63bd13013daae40 (patch) | |
| tree | 8f7869ddb0fb48f096648d3765f0c25561606b10 /packages/megalodon/src/entities/instance.ts | |
| parent | upd: add new endpoints to Masto API (diff) | |
| download | sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.tar.gz sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.tar.bz2 sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.zip | |
upd: megalodon to v7
Diffstat (limited to 'packages/megalodon/src/entities/instance.ts')
| -rw-r--r-- | packages/megalodon/src/entities/instance.ts | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/packages/megalodon/src/entities/instance.ts b/packages/megalodon/src/entities/instance.ts index 9c0f572db4..8f4808be8f 100644 --- a/packages/megalodon/src/entities/instance.ts +++ b/packages/megalodon/src/entities/instance.ts @@ -3,39 +3,38 @@ /// <reference path="stats.ts" /> namespace Entity { - export type Instance = { - uri: string; - title: string; - description: string; - email: string; - version: string; - thumbnail: string | null; - urls: URLs; - stats: Stats; - languages: Array<string>; - contact_account: Account | null; - max_toot_chars?: number; - registrations?: boolean; - configuration?: { - statuses: { - max_characters: number; - max_media_attachments: number; - characters_reserved_per_url: number; - }; - media_attachments: { - supported_mime_types: Array<string>; - image_size_limit: number; - image_matrix_limit: number; - video_size_limit: number; - video_frame_limit: number; - video_matrix_limit: number; - }; - polls: { - max_options: number; - max_characters_per_option: number; - min_expiration: number; - max_expiration: number; - }; - }; - }; + 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> + } + + export type InstanceRule = { + id: string + text: string + } } |