autogen: api docs & type hints
This commit is contained in:
parent
bfeb2ef2a9
commit
2a7bacc47e
@ -710,6 +710,18 @@ declare module '../api.js' {
|
|||||||
credential?: string | null,
|
credential?: string | null,
|
||||||
): Promise<SwitchCaseResponseType<E, P>>;
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No description provided.
|
||||||
|
*
|
||||||
|
* **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:search*
|
||||||
|
*/
|
||||||
|
request<E extends 'admin/reindex-search', P extends Endpoints[E]['req']>(
|
||||||
|
endpoint: E,
|
||||||
|
params: P,
|
||||||
|
credential?: string | null,
|
||||||
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No description provided.
|
* No description provided.
|
||||||
*
|
*
|
||||||
|
@ -648,6 +648,7 @@ export type Endpoints = {
|
|||||||
'admin/queue/inbox-delayed': { req: EmptyRequest; res: AdminQueueInboxDelayedResponse };
|
'admin/queue/inbox-delayed': { req: EmptyRequest; res: AdminQueueInboxDelayedResponse };
|
||||||
'admin/queue/promote': { req: AdminQueuePromoteRequest; res: EmptyResponse };
|
'admin/queue/promote': { req: AdminQueuePromoteRequest; res: EmptyResponse };
|
||||||
'admin/queue/stats': { req: EmptyRequest; res: AdminQueueStatsResponse };
|
'admin/queue/stats': { req: EmptyRequest; res: AdminQueueStatsResponse };
|
||||||
|
'admin/reindex-search': { req: EmptyRequest; res: EmptyResponse };
|
||||||
'admin/relays/add': { req: AdminRelaysAddRequest; res: AdminRelaysAddResponse };
|
'admin/relays/add': { req: AdminRelaysAddRequest; res: AdminRelaysAddResponse };
|
||||||
'admin/relays/list': { req: EmptyRequest; res: AdminRelaysListResponse };
|
'admin/relays/list': { req: EmptyRequest; res: AdminRelaysListResponse };
|
||||||
'admin/relays/remove': { req: AdminRelaysRemoveRequest; res: EmptyResponse };
|
'admin/relays/remove': { req: AdminRelaysRemoveRequest; res: EmptyResponse };
|
||||||
|
@ -591,6 +591,16 @@ export type paths = {
|
|||||||
*/
|
*/
|
||||||
post: operations['admin___queue___stats'];
|
post: operations['admin___queue___stats'];
|
||||||
};
|
};
|
||||||
|
'/admin/reindex-search': {
|
||||||
|
/**
|
||||||
|
* admin/reindex-search
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:search*
|
||||||
|
*/
|
||||||
|
post: operations['admin___reindex-search'];
|
||||||
|
};
|
||||||
'/admin/relays/add': {
|
'/admin/relays/add': {
|
||||||
/**
|
/**
|
||||||
* admin/relays/add
|
* admin/relays/add
|
||||||
@ -9028,6 +9038,51 @@ export type operations = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* admin/reindex-search
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:search*
|
||||||
|
*/
|
||||||
|
'admin___reindex-search': {
|
||||||
|
responses: {
|
||||||
|
/** @description OK (without any results) */
|
||||||
|
204: {
|
||||||
|
content: never;
|
||||||
|
};
|
||||||
|
/** @description Client error */
|
||||||
|
400: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Authentication error */
|
||||||
|
401: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Forbidden error */
|
||||||
|
403: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description I'm Ai */
|
||||||
|
418: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Internal server error */
|
||||||
|
500: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* admin/relays/add
|
* admin/relays/add
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
|
Loading…
Reference in New Issue
Block a user