fix(misskey-js): update type definitions
This commit is contained in:
parent
0a5b433557
commit
3aebda7161
|
@ -1918,6 +1918,17 @@ declare namespace entities {
|
|||
InviteLimitResponse,
|
||||
InviteListRequest,
|
||||
InviteListResponse,
|
||||
MahjongCancelMatchRequest,
|
||||
MahjongCancelMatchResponse,
|
||||
MahjongCreateRoomResponse,
|
||||
MahjongGamesRequest,
|
||||
MahjongGamesResponse,
|
||||
MahjongJoinRoomRequest,
|
||||
MahjongJoinRoomResponse,
|
||||
MahjongShowRoomRequest,
|
||||
MahjongShowRoomResponse,
|
||||
MahjongVerifyRequest,
|
||||
MahjongVerifyResponse,
|
||||
MetaRequest,
|
||||
MetaResponse,
|
||||
MiauthGenTokenRequest,
|
||||
|
@ -2718,9 +2729,42 @@ type IWebhooksTestRequest = operations['i___webhooks___test']['requestBody']['co
|
|||
// @public (undocumented)
|
||||
type IWebhooksUpdateRequest = operations['i___webhooks___update']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongCancelMatchRequest = operations['mahjong___cancel-match']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongCancelMatchResponse = operations['mahjong___cancel-match']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongCreateRoomResponse = operations['mahjong___create-room']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongGamesRequest = operations['mahjong___games']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongGamesResponse = operations['mahjong___games']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongJoinRoomRequest = operations['mahjong___join-room']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongJoinRoomResponse = operations['mahjong___join-room']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongRoomDetailed = components['schemas']['MahjongRoomDetailed'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongShowRoomRequest = operations['mahjong___show-room']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongShowRoomResponse = operations['mahjong___show-room']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongVerifyRequest = operations['mahjong___verify']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongVerifyResponse = operations['mahjong___verify']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MeDetailed = components['schemas']['MeDetailed'];
|
||||
|
||||
|
|
|
@ -3372,6 +3372,72 @@ declare module '../api.js' {
|
|||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
request<E extends 'mahjong/cancel-match', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
request<E extends 'mahjong/create-room', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
request<E extends 'mahjong/games', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
request<E extends 'mahjong/join-room', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||
*/
|
||||
request<E extends 'mahjong/show-room', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
request<E extends 'mahjong/verify', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
|
|
|
@ -465,6 +465,17 @@ import type {
|
|||
InviteLimitResponse,
|
||||
InviteListRequest,
|
||||
InviteListResponse,
|
||||
MahjongCancelMatchRequest,
|
||||
MahjongCancelMatchResponse,
|
||||
MahjongCreateRoomResponse,
|
||||
MahjongGamesRequest,
|
||||
MahjongGamesResponse,
|
||||
MahjongJoinRoomRequest,
|
||||
MahjongJoinRoomResponse,
|
||||
MahjongShowRoomRequest,
|
||||
MahjongShowRoomResponse,
|
||||
MahjongVerifyRequest,
|
||||
MahjongVerifyResponse,
|
||||
MetaRequest,
|
||||
MetaResponse,
|
||||
MiauthGenTokenRequest,
|
||||
|
@ -939,6 +950,12 @@ export type Endpoints = {
|
|||
'invite/delete': { req: InviteDeleteRequest; res: EmptyResponse };
|
||||
'invite/limit': { req: EmptyRequest; res: InviteLimitResponse };
|
||||
'invite/list': { req: InviteListRequest; res: InviteListResponse };
|
||||
'mahjong/cancel-match': { req: MahjongCancelMatchRequest; res: MahjongCancelMatchResponse };
|
||||
'mahjong/create-room': { req: EmptyRequest; res: MahjongCreateRoomResponse };
|
||||
'mahjong/games': { req: MahjongGamesRequest; res: MahjongGamesResponse };
|
||||
'mahjong/join-room': { req: MahjongJoinRoomRequest; res: MahjongJoinRoomResponse };
|
||||
'mahjong/show-room': { req: MahjongShowRoomRequest; res: MahjongShowRoomResponse };
|
||||
'mahjong/verify': { req: MahjongVerifyRequest; res: MahjongVerifyResponse };
|
||||
'meta': { req: MetaRequest; res: MetaResponse };
|
||||
'miauth/gen-token': { req: MiauthGenTokenRequest; res: MiauthGenTokenResponse };
|
||||
'mute/create': { req: MuteCreateRequest; res: EmptyResponse };
|
||||
|
|
|
@ -468,6 +468,17 @@ export type InviteDeleteRequest = operations['invite___delete']['requestBody']['
|
|||
export type InviteLimitResponse = operations['invite___limit']['responses']['200']['content']['application/json'];
|
||||
export type InviteListRequest = operations['invite___list']['requestBody']['content']['application/json'];
|
||||
export type InviteListResponse = operations['invite___list']['responses']['200']['content']['application/json'];
|
||||
export type MahjongCancelMatchRequest = operations['mahjong___cancel-match']['requestBody']['content']['application/json'];
|
||||
export type MahjongCancelMatchResponse = operations['mahjong___cancel-match']['responses']['200']['content']['application/json'];
|
||||
export type MahjongCreateRoomResponse = operations['mahjong___create-room']['responses']['200']['content']['application/json'];
|
||||
export type MahjongGamesRequest = operations['mahjong___games']['requestBody']['content']['application/json'];
|
||||
export type MahjongGamesResponse = operations['mahjong___games']['responses']['200']['content']['application/json'];
|
||||
export type MahjongJoinRoomRequest = operations['mahjong___join-room']['requestBody']['content']['application/json'];
|
||||
export type MahjongJoinRoomResponse = operations['mahjong___join-room']['responses']['200']['content']['application/json'];
|
||||
export type MahjongShowRoomRequest = operations['mahjong___show-room']['requestBody']['content']['application/json'];
|
||||
export type MahjongShowRoomResponse = operations['mahjong___show-room']['responses']['200']['content']['application/json'];
|
||||
export type MahjongVerifyRequest = operations['mahjong___verify']['requestBody']['content']['application/json'];
|
||||
export type MahjongVerifyResponse = operations['mahjong___verify']['responses']['200']['content']['application/json'];
|
||||
export type MetaRequest = operations['meta']['requestBody']['content']['application/json'];
|
||||
export type MetaResponse = operations['meta']['responses']['200']['content']['application/json'];
|
||||
export type MiauthGenTokenRequest = operations['miauth___gen-token']['requestBody']['content']['application/json'];
|
||||
|
|
|
@ -2917,6 +2917,60 @@ export type paths = {
|
|||
*/
|
||||
post: operations['invite___list'];
|
||||
};
|
||||
'/mahjong/cancel-match': {
|
||||
/**
|
||||
* mahjong/cancel-match
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
post: operations['mahjong___cancel-match'];
|
||||
};
|
||||
'/mahjong/create-room': {
|
||||
/**
|
||||
* mahjong/create-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
post: operations['mahjong___create-room'];
|
||||
};
|
||||
'/mahjong/games': {
|
||||
/**
|
||||
* mahjong/games
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
post: operations['mahjong___games'];
|
||||
};
|
||||
'/mahjong/join-room': {
|
||||
/**
|
||||
* mahjong/join-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
post: operations['mahjong___join-room'];
|
||||
};
|
||||
'/mahjong/show-room': {
|
||||
/**
|
||||
* mahjong/show-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||
*/
|
||||
post: operations['mahjong___show-room'];
|
||||
};
|
||||
'/mahjong/verify': {
|
||||
/**
|
||||
* mahjong/verify
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
post: operations['mahjong___verify'];
|
||||
};
|
||||
'/meta': {
|
||||
/**
|
||||
* meta
|
||||
|
@ -23647,6 +23701,332 @@ export type operations = {
|
|||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/cancel-match
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
'mahjong___cancel-match': {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
userId?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': unknown;
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/create-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
'mahjong___create-room': {
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['MahjongRoomDetailed'];
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/games
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
mahjong___games: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** @default 10 */
|
||||
limit?: number;
|
||||
/** Format: misskey:id */
|
||||
sinceId?: string;
|
||||
/** Format: misskey:id */
|
||||
untilId?: string;
|
||||
/** @default false */
|
||||
my?: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['ReversiGameLite'][];
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/join-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
'mahjong___join-room': {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
roomId: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['MahjongRoomDetailed'];
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/show-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||
*/
|
||||
'mahjong___show-room': {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
roomId: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['MahjongRoomDetailed'];
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* mahjong/verify
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
mahjong___verify: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
gameId: string;
|
||||
crc32: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': {
|
||||
desynced: boolean;
|
||||
game?: components['schemas']['ReversiGameDetailed'] | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* meta
|
||||
* @description No description provided.
|
||||
|
|
Loading…
Reference in New Issue