summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/schema/federation-instance.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
commit5de8930058c28be983ea38b04acec528e7c79577 (patch)
tree741487a20234ba1c5200d9a2a442e4503a38483e /packages/backend/src/models/schema/federation-instance.ts
parent:art: (diff)
downloadsharkey-5de8930058c28be983ea38b04acec528e7c79577.tar.gz
sharkey-5de8930058c28be983ea38b04acec528e7c79577.tar.bz2
sharkey-5de8930058c28be983ea38b04acec528e7c79577.zip
refactor: rename schema to json-schema
Diffstat (limited to 'packages/backend/src/models/schema/federation-instance.ts')
-rw-r--r--packages/backend/src/models/schema/federation-instance.ts97
1 files changed, 0 insertions, 97 deletions
diff --git a/packages/backend/src/models/schema/federation-instance.ts b/packages/backend/src/models/schema/federation-instance.ts
deleted file mode 100644
index 42d93dfac9..0000000000
--- a/packages/backend/src/models/schema/federation-instance.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-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,
- },
- 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,
- },
- 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',
- },
- },
-} as const;