@lichess-org/types 2.0.113 → 2.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lichess-api.d.ts +21 -14
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -571,7 +571,7 @@ export interface paths {
|
|
|
571
571
|
* <https://lichess.org/@/german11> for instance has more than 500,000 games.
|
|
572
572
|
* The game stream is throttled, depending on who is making the request:
|
|
573
573
|
* - Anonymous request: 20 games per second
|
|
574
|
-
* - [OAuth2 authenticated](
|
|
574
|
+
* - [OAuth2 authenticated](#description/authentication) request: 30 games per second
|
|
575
575
|
* - Authenticated, downloading your own games: 60 games per second
|
|
576
576
|
*/
|
|
577
577
|
get: operations["apiGamesUser"];
|
|
@@ -647,7 +647,7 @@ export interface paths {
|
|
|
647
647
|
* @description Creates a stream of games from an arbitrary streamId, and a list of game IDs.
|
|
648
648
|
* The stream first outputs the games that already exists, then emits an event each time a game is started or finished.
|
|
649
649
|
* Games are streamed as [ndjson](#description/streaming-with-nd-json).
|
|
650
|
-
* Maximum number of games: 500 for anonymous requests, or 1000 for [OAuth2 authenticated](
|
|
650
|
+
* Maximum number of games: 500 for anonymous requests, or 1000 for [OAuth2 authenticated](#description/authentication) requests.
|
|
651
651
|
* While the stream is open, it is possible to [add new game IDs to watch](#tag/games/POST/api/stream/games/{streamId}/add).
|
|
652
652
|
*/
|
|
653
653
|
post: operations["gamesByIds"];
|
|
@@ -1037,7 +1037,7 @@ export interface paths {
|
|
|
1037
1037
|
* Games are sorted by reverse chronological order (most recent first).
|
|
1038
1038
|
* The game stream is throttled, depending on who is making the request:
|
|
1039
1039
|
* - Anonymous request: 20 games per second
|
|
1040
|
-
* - [OAuth2 authenticated](
|
|
1040
|
+
* - [OAuth2 authenticated](#description/authentication) request: 30 games per second
|
|
1041
1041
|
*/
|
|
1042
1042
|
get: operations["gamesByTournament"];
|
|
1043
1043
|
put?: never;
|
|
@@ -1106,7 +1106,7 @@ export interface paths {
|
|
|
1106
1106
|
* Tournaments are streamed as [ndjson](#description/streaming-with-nd-json).
|
|
1107
1107
|
* The stream is throttled, depending on who is making the request:
|
|
1108
1108
|
* - Anonymous request: 20 tournaments per second
|
|
1109
|
-
* - [OAuth2 authenticated](
|
|
1109
|
+
* - [OAuth2 authenticated](#description/authentication) request: 30 tournaments per second
|
|
1110
1110
|
* - Authenticated, downloading your own tournaments: 50 tournaments per second
|
|
1111
1111
|
*/
|
|
1112
1112
|
get: operations["apiUserNameTournamentCreated"];
|
|
@@ -1132,7 +1132,7 @@ export interface paths {
|
|
|
1132
1132
|
* Tournaments are streamed as [ndjson](#description/streaming-with-nd-json).
|
|
1133
1133
|
* The stream is throttled, depending on who is making the request:
|
|
1134
1134
|
* - Anonymous request: 20 tournaments per second
|
|
1135
|
-
* - [OAuth2 authenticated](
|
|
1135
|
+
* - [OAuth2 authenticated](#description/authentication) request: 30 tournaments per second
|
|
1136
1136
|
* - Authenticated, downloading your own tournaments: 50 tournaments per second
|
|
1137
1137
|
*/
|
|
1138
1138
|
get: operations["apiUserNameTournamentPlayed"];
|
|
@@ -1334,7 +1334,7 @@ export interface paths {
|
|
|
1334
1334
|
* Games are sorted by chronological order.
|
|
1335
1335
|
* The game stream is throttled, depending on who is making the request:
|
|
1336
1336
|
* - Anonymous request: 20 games per second
|
|
1337
|
-
* - [OAuth2 authenticated](
|
|
1337
|
+
* - [OAuth2 authenticated](#description/authentication) request: 30 games per second
|
|
1338
1338
|
*/
|
|
1339
1339
|
get: operations["gamesBySwiss"];
|
|
1340
1340
|
put?: never;
|
|
@@ -1996,7 +1996,7 @@ export interface paths {
|
|
|
1996
1996
|
* @description Get recently created, started, finished, simuls.
|
|
1997
1997
|
* Created and finished simul lists are not exhaustives, only those with
|
|
1998
1998
|
* strong enough host will be listed, the same filter is used to display simuls on https://lichess.org/simul.
|
|
1999
|
-
* When [authenticated with OAuth2](
|
|
1999
|
+
* When [authenticated with OAuth2](#description/authentication), the pending list will be populated with your created, but unstarted simuls.
|
|
2000
2000
|
*/
|
|
2001
2001
|
get: operations["apiSimul"];
|
|
2002
2002
|
put?: never;
|
|
@@ -3169,7 +3169,7 @@ export interface paths {
|
|
|
3169
3169
|
* You can control which color each player gets by giving them these URLs,
|
|
3170
3170
|
* instead of the main challenge URL.
|
|
3171
3171
|
* Open challenges expire after 24h.
|
|
3172
|
-
* If the challenge creation is [authenticated with OAuth2](
|
|
3172
|
+
* If the challenge creation is [authenticated with OAuth2](#description/authentication),
|
|
3173
3173
|
* then you can use the [challenge cancel endpoint](#tag/challenges/POST/api/challenge/{challengeId}/cancel) to cancel it.
|
|
3174
3174
|
* To directly pair 2 known players, use [this endpoint](#tag/bulk-pairings/GET/api/bulk-pairing) instead.
|
|
3175
3175
|
*/
|
|
@@ -4027,12 +4027,13 @@ export interface components {
|
|
|
4027
4027
|
count?: components["schemas"]["Count"];
|
|
4028
4028
|
streaming?: boolean;
|
|
4029
4029
|
streamer?: components["schemas"]["UserStreamer"];
|
|
4030
|
-
/** @description only appears if the request is [authenticated with OAuth2](
|
|
4030
|
+
/** @description only appears if the request is [authenticated with OAuth2](#description/authentication) */
|
|
4031
4031
|
followable?: boolean;
|
|
4032
|
-
/** @description only appears if the request is [authenticated with OAuth2](
|
|
4032
|
+
/** @description only appears if the request is [authenticated with OAuth2](#description/authentication) */
|
|
4033
4033
|
following?: boolean;
|
|
4034
|
-
/** @description only appears if the request is [authenticated with OAuth2](
|
|
4034
|
+
/** @description only appears if the request is [authenticated with OAuth2](#description/authentication) */
|
|
4035
4035
|
blocking?: boolean;
|
|
4036
|
+
fideId?: number;
|
|
4036
4037
|
};
|
|
4037
4038
|
/**
|
|
4038
4039
|
* @example {
|
|
@@ -7679,6 +7680,8 @@ export interface operations {
|
|
|
7679
7680
|
profile?: boolean;
|
|
7680
7681
|
/** @description Include global lichess ranking for each perf */
|
|
7681
7682
|
rank?: boolean;
|
|
7683
|
+
/** @description Include public FIDE ID if any */
|
|
7684
|
+
fideId?: boolean;
|
|
7682
7685
|
};
|
|
7683
7686
|
header?: never;
|
|
7684
7687
|
path: {
|
|
@@ -8399,15 +8402,19 @@ export interface operations {
|
|
|
8399
8402
|
};
|
|
8400
8403
|
requestBody?: never;
|
|
8401
8404
|
responses: {
|
|
8402
|
-
/**
|
|
8405
|
+
/**
|
|
8406
|
+
* @description The ongoing (or last) game of a user.
|
|
8407
|
+
* This may be in either PGN or JSON format, depending on the `Accept` header of your request.
|
|
8408
|
+
*/
|
|
8403
8409
|
200: {
|
|
8404
8410
|
headers: {
|
|
8405
8411
|
"Access-Control-Allow-Origin"?: string;
|
|
8406
8412
|
[name: string]: unknown;
|
|
8407
8413
|
};
|
|
8408
8414
|
content: {
|
|
8409
|
-
"application/
|
|
8410
|
-
|
|
8415
|
+
"application/json":
|
|
8416
|
+
| components["schemas"]["GamePgn"]
|
|
8417
|
+
| components["schemas"]["GameJson"];
|
|
8411
8418
|
};
|
|
8412
8419
|
};
|
|
8413
8420
|
};
|