2024-04-14 12:53:21 +02:00
|
|
|
import type { Account } from "./account";
|
|
|
|
|
import type { Stats } from "./stats";
|
|
|
|
|
import type { URLs } from "./urls";
|
|
|
|
|
|
|
|
|
|
export type Instance = {
|
|
|
|
|
uri: string;
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
email: string;
|
|
|
|
|
version: string;
|
|
|
|
|
thumbnail: string | null;
|
|
|
|
|
urls: URLs | null;
|
|
|
|
|
stats: Stats;
|
2024-06-13 04:26:43 +02:00
|
|
|
languages: string[];
|
2024-04-14 12:53:21 +02:00
|
|
|
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;
|
2024-06-13 04:26:43 +02:00
|
|
|
rules?: InstanceRule[];
|
2024-04-14 12:53:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type InstanceRule = {
|
|
|
|
|
id: string;
|
|
|
|
|
text: string;
|
|
|
|
|
};
|