wip
This commit is contained in:
@@ -1635,6 +1635,11 @@ declare namespace entities {
|
||||
ReversiSurrenderRequest,
|
||||
ReversiVerifyRequest,
|
||||
ReversiVerifyResponse,
|
||||
MahjongCreateRoomResponse,
|
||||
MahjongJoinRoomRequest,
|
||||
MahjongJoinRoomResponse,
|
||||
MahjongShowRoomRequest,
|
||||
MahjongShowRoomResponse,
|
||||
Error_2 as Error,
|
||||
UserLite,
|
||||
UserDetailedNotMeOnly,
|
||||
@@ -1673,7 +1678,8 @@ declare namespace entities {
|
||||
RoleLite,
|
||||
Role,
|
||||
ReversiGameLite,
|
||||
ReversiGameDetailed
|
||||
ReversiGameDetailed,
|
||||
MahjongRoomDetailed
|
||||
}
|
||||
}
|
||||
export { entities }
|
||||
@@ -2169,6 +2175,24 @@ type IWebhooksShowResponse = operations['i/webhooks/show']['responses']['200']['
|
||||
// @public (undocumented)
|
||||
type IWebhooksUpdateRequest = operations['i/webhooks/update']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type MahjongCreateRoomResponse = operations['mahjong/create-room']['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 MeDetailed = components['schemas']['MeDetailed'];
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.6
|
||||
* generatedAt: 2024-01-24T07:32:10.455Z
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-26T05:23:04.911Z
|
||||
*/
|
||||
|
||||
import type { SwitchCaseResponseType } from '../api.js';
|
||||
@@ -4084,5 +4084,38 @@ declare module '../api.js' {
|
||||
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**: *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>>;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.6
|
||||
* generatedAt: 2024-01-24T07:32:10.453Z
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-26T05:23:04.909Z
|
||||
*/
|
||||
|
||||
import type {
|
||||
@@ -556,6 +556,11 @@ import type {
|
||||
ReversiSurrenderRequest,
|
||||
ReversiVerifyRequest,
|
||||
ReversiVerifyResponse,
|
||||
MahjongCreateRoomResponse,
|
||||
MahjongJoinRoomRequest,
|
||||
MahjongJoinRoomResponse,
|
||||
MahjongShowRoomRequest,
|
||||
MahjongShowRoomResponse,
|
||||
} from './entities.js';
|
||||
|
||||
export type Endpoints = {
|
||||
@@ -926,4 +931,7 @@ export type Endpoints = {
|
||||
'reversi/show-game': { req: ReversiShowGameRequest; res: ReversiShowGameResponse };
|
||||
'reversi/surrender': { req: ReversiSurrenderRequest; res: EmptyResponse };
|
||||
'reversi/verify': { req: ReversiVerifyRequest; res: ReversiVerifyResponse };
|
||||
'mahjong/create-room': { req: EmptyRequest; res: MahjongCreateRoomResponse };
|
||||
'mahjong/join-room': { req: MahjongJoinRoomRequest; res: MahjongJoinRoomResponse };
|
||||
'mahjong/show-room': { req: MahjongShowRoomRequest; res: MahjongShowRoomResponse };
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.6
|
||||
* generatedAt: 2024-01-24T07:32:10.452Z
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-26T05:23:04.908Z
|
||||
*/
|
||||
|
||||
import { operations } from './types.js';
|
||||
@@ -558,3 +558,8 @@ export type ReversiShowGameResponse = operations['reversi/show-game']['responses
|
||||
export type ReversiSurrenderRequest = operations['reversi/surrender']['requestBody']['content']['application/json'];
|
||||
export type ReversiVerifyRequest = operations['reversi/verify']['requestBody']['content']['application/json'];
|
||||
export type ReversiVerifyResponse = operations['reversi/verify']['responses']['200']['content']['application/json'];
|
||||
export type MahjongCreateRoomResponse = operations['mahjong/create-room']['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'];
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2024.2.0-beta.6
|
||||
* generatedAt: 2024-01-24T07:32:10.450Z
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-26T05:23:04.907Z
|
||||
*/
|
||||
|
||||
import { components } from './types.js';
|
||||
@@ -43,3 +43,4 @@ export type RoleLite = components['schemas']['RoleLite'];
|
||||
export type Role = components['schemas']['Role'];
|
||||
export type ReversiGameLite = components['schemas']['ReversiGameLite'];
|
||||
export type ReversiGameDetailed = components['schemas']['ReversiGameDetailed'];
|
||||
export type MahjongRoomDetailed = components['schemas']['MahjongRoomDetailed'];
|
||||
|
@@ -2,8 +2,8 @@
|
||||
/* eslint @typescript-eslint/no-explicit-any: 0 */
|
||||
|
||||
/*
|
||||
* version: 2024.2.0-beta.6
|
||||
* generatedAt: 2024-01-24T07:32:10.370Z
|
||||
* version: 2024.2.0-beta.7
|
||||
* generatedAt: 2024-01-26T05:23:04.825Z
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -3535,6 +3535,33 @@ export type paths = {
|
||||
*/
|
||||
post: operations['reversi/verify'];
|
||||
};
|
||||
'/mahjong/create-room': {
|
||||
/**
|
||||
* mahjong/create-room
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *write:account*
|
||||
*/
|
||||
post: operations['mahjong/create-room'];
|
||||
};
|
||||
'/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'];
|
||||
};
|
||||
};
|
||||
|
||||
export type webhooks = Record<string, never>;
|
||||
@@ -4537,6 +4564,38 @@ export type components = {
|
||||
logs: unknown[][];
|
||||
map: string[];
|
||||
};
|
||||
MahjongRoomDetailed: {
|
||||
/** Format: id */
|
||||
id: string;
|
||||
/** Format: date-time */
|
||||
createdAt: string;
|
||||
/** Format: date-time */
|
||||
startedAt: string | null;
|
||||
/** Format: date-time */
|
||||
endedAt: string | null;
|
||||
isStarted: boolean;
|
||||
isEnded: boolean;
|
||||
/** Format: id */
|
||||
user1Id: string;
|
||||
/** Format: id */
|
||||
user2Id: string;
|
||||
/** Format: id */
|
||||
user3Id: string;
|
||||
/** Format: id */
|
||||
user4Id: string;
|
||||
user1: components['schemas']['User'];
|
||||
user2: components['schemas']['User'];
|
||||
user3: components['schemas']['User'];
|
||||
user4: components['schemas']['User'];
|
||||
user1Ai: boolean;
|
||||
user2Ai: boolean;
|
||||
user3Ai: boolean;
|
||||
user4Ai: boolean;
|
||||
user1Ready: boolean;
|
||||
user2Ready: boolean;
|
||||
user3Ready: boolean;
|
||||
user4Ready: boolean;
|
||||
};
|
||||
};
|
||||
responses: never;
|
||||
parameters: never;
|
||||
@@ -26057,5 +26116,159 @@ export type operations = {
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* 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/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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user