regenerate misskey-js
This commit is contained in:
parent
2b6813847f
commit
5dc9eadf04
4 changed files with 122 additions and 4 deletions
|
|
@ -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<E extends 'admin/roles/annotate-condition', P extends Endpoints[E]['req']>(
|
||||
request<E extends 'admin/restart-migration', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue