diff --git a/packages/misskey-js/src/autogen/apiClientJSDoc.ts b/packages/misskey-js/src/autogen/apiClientJSDoc.ts index 224b2c06a8..f4616fde61 100644 --- a/packages/misskey-js/src/autogen/apiClientJSDoc.ts +++ b/packages/misskey-js/src/autogen/apiClientJSDoc.ts @@ -870,9 +870,9 @@ declare module '../api.js' { /** * No description provided. * - * **Credential required**: *Yes* / **Permission**: *read:admin:roles* + * **Credential required**: *Yes* / **Permission**: *write:admin:restart-migration* */ - request( + request( endpoint: E, params: P, credential?: string | null, diff --git a/packages/misskey-js/src/autogen/endpoint.ts b/packages/misskey-js/src/autogen/endpoint.ts index a8c4bceecb..4edef14e18 100644 --- a/packages/misskey-js/src/autogen/endpoint.ts +++ b/packages/misskey-js/src/autogen/endpoint.ts @@ -100,6 +100,8 @@ import type { AdminResetPasswordRequest, AdminResetPasswordResponse, AdminResolveAbuseUserReportRequest, + AdminRestartMigrationRequest, + AdminRestartMigrationResponse, AdminRolesAnnotateConditionRequest, AdminRolesAnnotateConditionResponse, AdminRolesAssignRequest, @@ -750,6 +752,7 @@ export type Endpoints = { 'admin/relays/remove': { req: AdminRelaysRemoveRequest; res: EmptyResponse }; 'admin/reset-password': { req: AdminResetPasswordRequest; res: AdminResetPasswordResponse }; 'admin/resolve-abuse-user-report': { req: AdminResolveAbuseUserReportRequest; res: EmptyResponse }; + 'admin/restart-migration': { req: AdminRestartMigrationRequest; res: AdminRestartMigrationResponse }; 'admin/roles/annotate-condition': { req: AdminRolesAnnotateConditionRequest; res: AdminRolesAnnotateConditionResponse }; 'admin/roles/assign': { req: AdminRolesAssignRequest; res: EmptyResponse }; 'admin/roles/clone': { req: AdminRolesCloneRequest; res: AdminRolesCloneResponse }; diff --git a/packages/misskey-js/src/autogen/entities.ts b/packages/misskey-js/src/autogen/entities.ts index 0049c5c090..2d70299c6d 100644 --- a/packages/misskey-js/src/autogen/entities.ts +++ b/packages/misskey-js/src/autogen/entities.ts @@ -103,6 +103,8 @@ export type AdminRelaysRemoveRequest = operations['admin___relays___remove']['re export type AdminResetPasswordRequest = operations['admin___reset-password']['requestBody']['content']['application/json']; export type AdminResetPasswordResponse = operations['admin___reset-password']['responses']['200']['content']['application/json']; export type AdminResolveAbuseUserReportRequest = operations['admin___resolve-abuse-user-report']['requestBody']['content']['application/json']; +export type AdminRestartMigrationRequest = operations['admin___restart-migration']['requestBody']['content']['application/json']; +export type AdminRestartMigrationResponse = operations['admin___restart-migration']['responses']['200']['content']['application/json']; export type AdminRolesAnnotateConditionRequest = operations['admin___roles___annotate-condition']['requestBody']['content']['application/json']; export type AdminRolesAnnotateConditionResponse = operations['admin___roles___annotate-condition']['responses']['200']['content']['application/json']; export type AdminRolesAssignRequest = operations['admin___roles___assign']['requestBody']['content']['application/json']; diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 739e7d9c2f..fa0c29877d 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -1724,6 +1724,28 @@ export type paths = { patch?: never; trace?: never; }; + '/admin/restart-migration': { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * admin/restart-migration + * @description No description provided. + * + * **Credential required**: *Yes* / **Permission**: *write:admin:restart-migration* + */ + post: operations['admin___restart-migration']; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; '/admin/roles/annotate-condition': { parameters: { query?: never; @@ -10130,9 +10152,10 @@ export type components = { url: string | null; /** Format: uri */ uri: string | null; - /** Format: uri */ + /** Format: id */ movedTo: string | null; - alsoKnownAs: string[] | null; + /** Format: uri */ + movedToUri: string | null; /** Format: url */ bannerUrl: string | null; bannerBlurhash: string | null; @@ -10390,6 +10413,13 @@ export type components = { defaultCWPriority: 'default' | 'parent' | 'defaultParent' | 'parentDefault'; /** @enum {string} */ allowUnsignedFetch: 'never' | 'always' | 'essential' | 'staff'; + alsoKnownAs: string[] | null; + skAlsoKnownAs: { + /** Format: uri */ + uri: string; + /** Format: id */ + id: string | null; + }[] | null; }; UserDetailedNotMe: components['schemas']['UserLite'] & components['schemas']['UserDetailedNotMeOnly']; MeDetailed: components['schemas']['UserLite'] & components['schemas']['UserDetailedNotMeOnly'] & components['schemas']['MeDetailedOnly']; @@ -17753,6 +17783,78 @@ export interface operations { }; }; }; + 'admin___restart-migration': { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + 'application/json': { + /** Format: misskey:id */ + userId: string; + }; + }; + }; + responses: { + /** @description OK (with results) */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': unknown; + }; + }; + /** @description Client error */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Authentication error */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Forbidden error */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description I'm Ai */ + 418: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['Error']; + }; + }; + /** @description Internal server error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['Error']; + }; + }; + }; + }; 'admin___roles___annotate-condition': { parameters: { query?: never; @@ -19030,6 +19132,17 @@ export interface operations { remoteFollowers: number; }; signupReason: string | null; + movedAt?: string | null; + movedTo?: { + /** Format: uri */ + uri: string; + user?: components['schemas']['UserDetailed'] | null; + } | null; + alsoKnownAs?: { + /** Format: uri */ + uri: string; + user?: components['schemas']['UserDetailed'] | null; + }[] | null; }; }; };