2023-07-27 07:31:52 +02:00
|
|
|
/*
|
2024-02-13 16:59:27 +01:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-01-18 14:27:10 +01:00
|
|
|
export const packedFederationInstanceSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
2023-01-15 21:02:38 +01:00
|
|
|
firstRetrievedAt: {
|
2022-01-18 14:27:10 +01:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
host: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
example: 'misskey.example.com',
|
|
|
|
},
|
|
|
|
usersCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
notesCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
followingCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
followersCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
isNotResponding: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
isSuspended: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2024-05-23 08:55:47 +02:00
|
|
|
suspensionState: {
|
|
|
|
type: 'string',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
enum: ['none', 'manuallySuspended', 'goneSuspended', 'autoSuspendedForNotResponding'],
|
|
|
|
},
|
2022-06-21 10:55:38 +02:00
|
|
|
isBlocked: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
softwareName: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
example: 'misskey',
|
|
|
|
},
|
|
|
|
softwareVersion: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
openRegistrations: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
example: true,
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
maintainerName: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
maintainerEmail: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
isSilenced: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2024-07-30 12:47:45 +02:00
|
|
|
isMediaSilenced: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
iconUrl: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'url',
|
|
|
|
},
|
2022-06-21 07:28:43 +02:00
|
|
|
faviconUrl: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'url',
|
|
|
|
},
|
2022-06-28 05:16:11 +02:00
|
|
|
themeColor: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
infoUpdatedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-11-07 18:30:04 +01:00
|
|
|
latestRequestReceivedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-12-05 22:19:53 +01:00
|
|
|
isNSFW: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
},
|
2024-10-11 16:21:32 +02:00
|
|
|
rejectReports: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
},
|
2024-02-22 12:59:52 +01:00
|
|
|
moderationNote: {
|
|
|
|
type: 'string',
|
|
|
|
optional: true, nullable: true,
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
} as const;
|