83a9aa4533
* feat(backend): dead instance detection * feat(backend): suspend type detection * feat(frontend): show suspend reason on frontend * feat(backend): resume federation automatically if the server is automatically suspended * docs(changelog): 配信停止まわりの改善 * lint: fix lint errors * Update packages/frontend/src/pages/instance-info.vue * lint: fix lint error * chore: suspendedState => suspensionState --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
120 lines
2.4 KiB
TypeScript
120 lines
2.4 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export const packedFederationInstanceSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
id: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
firstRetrievedAt: {
|
|
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,
|
|
},
|
|
suspensionState: {
|
|
type: 'string',
|
|
nullable: false, optional: false,
|
|
enum: ['none', 'manuallySuspended', 'goneSuspended', 'autoSuspendedForNotResponding'],
|
|
},
|
|
isBlocked: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
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,
|
|
},
|
|
isSilenced: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
iconUrl: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
format: 'url',
|
|
},
|
|
faviconUrl: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
format: 'url',
|
|
},
|
|
themeColor: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
infoUpdatedAt: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
format: 'date-time',
|
|
},
|
|
latestRequestReceivedAt: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
format: 'date-time',
|
|
},
|
|
moderationNote: {
|
|
type: 'string',
|
|
optional: true, nullable: true,
|
|
},
|
|
},
|
|
} as const;
|