From bd9c084a3ae0b37f32d8e84739fa4540f8ccf051 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 3 Jul 2023 04:38:55 +0000 Subject: [PATCH] follow --- packages/misskey-js/src/endpoints.ts | 2 ++ packages/misskey-js/src/schemas/instance-meta.ts | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/misskey-js/src/endpoints.ts b/packages/misskey-js/src/endpoints.ts index 8c750ff92..1f208864a 100644 --- a/packages/misskey-js/src/endpoints.ts +++ b/packages/misskey-js/src/endpoints.ts @@ -1945,6 +1945,8 @@ export const endpoints = { enableActiveEmailValidation: { type: 'boolean' }, enableChartsForRemoteUser: { type: 'boolean' }, enableChartsForFederatedInstances: { type: 'boolean' }, + enableServerMachineStats: { type: 'boolean' }, + enableIdenticonGeneration: { type: 'boolean' }, serverRules: { type: 'array', items: { type: 'string' } }, preservedUsernames: { type: 'array', items: { type: 'string' } }, } as const satisfies Record, diff --git a/packages/misskey-js/src/schemas/instance-meta.ts b/packages/misskey-js/src/schemas/instance-meta.ts index b76bf9f42..77e568731 100644 --- a/packages/misskey-js/src/schemas/instance-meta.ts +++ b/packages/misskey-js/src/schemas/instance-meta.ts @@ -32,9 +32,9 @@ export const InstanceMetaSharedSchema = { default: '/assets/ai.png', }, bannerUrl: { type: ['string', 'null'] }, - serverErrorImageUrl: { type: ['string', 'null'] }, - infoImageUrl: { type: ['string', 'null'] }, - notFoundImageUrl: { type: ['string', 'null'] }, + serverErrorImageUrl: { type: ['string', 'null'] }, + infoImageUrl: { type: ['string', 'null'] }, + notFoundImageUrl: { type: ['string', 'null'] }, iconUrl: { type: ['string', 'null'] }, backgroundImageUrl: { type: ['string', 'null'] }, logoImageUrl: { type: ['string', 'null'] }, @@ -159,6 +159,8 @@ export const InstanceMetaAdminSchema = { enableActiveEmailValidation: { type: 'boolean' }, enableChartsForRemoteUser: { type: 'boolean' }, enableChartsForFederatedInstances: { type: 'boolean' }, + enableServerMachineStats: { type: 'boolean' }, + enableIdenticonGeneration: { type: 'boolean' }, } satisfies Record, required: [ 'cacheRemoteFiles', @@ -202,6 +204,8 @@ export const InstanceMetaAdminSchema = { 'enableActiveEmailValidation', 'enableChartsForRemoteUser', 'enableChartsForFederatedInstances', + 'enableServerMachineStats', + 'enableIdenticonGeneration', ], }, ]