diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2026-01-14 14:45:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-14 14:45:45 +0900 |
| commit | bd81a6c8adb45067bee9582f84855a60a962e92b (patch) | |
| tree | c15ed273fcff360700a280ab4a9ef72837a5f26c /packages/backend/src/models/json-schema | |
| parent | refactor(frontend): MkRadioをMkRadiosに統合 (diff) | |
| download | misskey-bd81a6c8adb45067bee9582f84855a60a962e92b.tar.gz misskey-bd81a6c8adb45067bee9582f84855a60a962e92b.tar.bz2 misskey-bd81a6c8adb45067bee9582f84855a60a962e92b.zip | |
refactor(frontend): anyを除去2 (#17092)
* wip
* fix types
* fix
Diffstat (limited to 'packages/backend/src/models/json-schema')
| -rw-r--r-- | packages/backend/src/models/json-schema/meta.ts | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/packages/backend/src/models/json-schema/meta.ts b/packages/backend/src/models/json-schema/meta.ts index a0e7d490b3..0c3ec141bc 100644 --- a/packages/backend/src/models/json-schema/meta.ts +++ b/packages/backend/src/models/json-schema/meta.ts @@ -72,8 +72,7 @@ export const packedMetaLiteSchema = { optional: false, nullable: true, }, clientOptions: { - type: 'object', - optional: false, nullable: false, + ref: 'MetaClientOptions', }, disableRegistration: { type: 'boolean', @@ -397,3 +396,23 @@ export const packedMetaDetailedSchema = { }, ], } as const; + +export const packedMetaClientOptionsSchema = { + type: 'object', + optional: false, nullable: false, + properties: { + entrancePageStyle: { + type: 'string', + enum: ['classic', 'simple'], + optional: false, nullable: false, + }, + showTimelineForVisitor: { + type: 'boolean', + optional: false, nullable: false, + }, + showActivitiesForVisitor: { + type: 'boolean', + optional: false, nullable: false, + }, + }, +} as const; |