From 46f9bcc8dca43b903f3a2e36d2421d7787ab0a3f Mon Sep 17 00:00:00 2001 From: Marie Date: Sat, 14 Sep 2024 00:18:16 +0200 Subject: [PATCH] chore: make features in meta not optional on detailed Why did Misskey set the optional boolean on features between 2024.6 and 2024.8 considering it will always have values when called via detailed --- packages/backend/src/models/json-schema/meta.ts | 2 +- packages/misskey-js/etc/misskey-js.api.md | 4 ++-- packages/misskey-js/src/autogen/types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/models/json-schema/meta.ts b/packages/backend/src/models/json-schema/meta.ts index 2ae33c5a8c..352fd2adfa 100644 --- a/packages/backend/src/models/json-schema/meta.ts +++ b/packages/backend/src/models/json-schema/meta.ts @@ -278,7 +278,7 @@ export const packedMetaDetailedOnlySchema = { properties: { features: { type: 'object', - optional: true, nullable: false, + optional: false, nullable: false, properties: { registration: { type: 'boolean', diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index 8e1f1014da..fb944b48d2 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -3356,8 +3356,8 @@ type UsersUpdateMemoRequest = operations['users___update-memo']['requestBody'][' // Warnings were encountered during analysis: // // src/entities.ts:49:2 - (ae-forgotten-export) The symbol "ModerationLogPayloads" needs to be exported by the entry point index.d.ts -// src/streaming.types.ts:236:4 - (ae-forgotten-export) The symbol "ReversiUpdateKey" needs to be exported by the entry point index.d.ts -// src/streaming.types.ts:246:4 - (ae-forgotten-export) The symbol "ReversiUpdateSettings" needs to be exported by the entry point index.d.ts +// src/streaming.types.ts:240:4 - (ae-forgotten-export) The symbol "ReversiUpdateKey" needs to be exported by the entry point index.d.ts +// src/streaming.types.ts:250:4 - (ae-forgotten-export) The symbol "ReversiUpdateSettings" needs to be exported by the entry point index.d.ts // (No @packageDocumentation comment for this package) diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index e687dc2b0e..004d45fa64 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -5118,7 +5118,7 @@ export type components = { noteSearchableScope: 'local' | 'global'; }; MetaDetailedOnly: { - features?: { + features: { registration: boolean; emailRequiredForSignup: boolean; localTimeline: boolean;