@lichess-org/types 2.0.146 → 2.0.148
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 +67 -0
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1959,6 +1959,31 @@ export interface paths {
|
|
|
1959
1959
|
patch?: never;
|
|
1960
1960
|
trace?: never;
|
|
1961
1961
|
};
|
|
1962
|
+
"/api/stream/broadcast/group/{broadcastGroupId}.pgn": {
|
|
1963
|
+
parameters: {
|
|
1964
|
+
query?: never;
|
|
1965
|
+
header?: never;
|
|
1966
|
+
path?: never;
|
|
1967
|
+
cookie?: never;
|
|
1968
|
+
};
|
|
1969
|
+
/**
|
|
1970
|
+
* Stream ongoing broadcast rounds of a group as PGN
|
|
1971
|
+
* @description For a given broadcast group ([example](https://lichess.org/broadcast/fide-world-cadets-cup-2026/albQx5zq)),
|
|
1972
|
+
* selects all the ongoing and recently finished rounds, and sends all games of these rounds in PGN format.
|
|
1973
|
+
* Then, it waits for new moves to be played. As soon as it happens, the entire PGN of the game is sent to the stream.
|
|
1974
|
+
* The stream will also send PGNs when games are added to the rounds.
|
|
1975
|
+
* This is the best way to get updates about an ongoing broadcast with multiple concurrent rounds.
|
|
1976
|
+
* To stream a single round, use [this endpoint instead](#tag/broadcasts/GET/api/stream/broadcast/round/{broadcastRoundId}.pgn).
|
|
1977
|
+
*/
|
|
1978
|
+
get: operations["broadcastStreamRoundPgn"];
|
|
1979
|
+
put?: never;
|
|
1980
|
+
post?: never;
|
|
1981
|
+
delete?: never;
|
|
1982
|
+
options?: never;
|
|
1983
|
+
head?: never;
|
|
1984
|
+
patch?: never;
|
|
1985
|
+
trace?: never;
|
|
1986
|
+
};
|
|
1962
1987
|
"/api/broadcast/round/{broadcastRoundId}.pgn": {
|
|
1963
1988
|
parameters: {
|
|
1964
1989
|
query?: never;
|
|
@@ -8963,6 +8988,9 @@ export interface operations {
|
|
|
8963
8988
|
};
|
|
8964
8989
|
content: {
|
|
8965
8990
|
"application/json": {
|
|
8991
|
+
/** @description Number of games where it is my turn to play */
|
|
8992
|
+
nbMyTurn: number;
|
|
8993
|
+
/** @description Games I'm currently playing */
|
|
8966
8994
|
nowPlaying: {
|
|
8967
8995
|
fullId: string;
|
|
8968
8996
|
gameId: string;
|
|
@@ -11940,6 +11968,45 @@ export interface operations {
|
|
|
11940
11968
|
};
|
|
11941
11969
|
};
|
|
11942
11970
|
};
|
|
11971
|
+
broadcastStreamRoundPgn: {
|
|
11972
|
+
parameters: {
|
|
11973
|
+
query?: {
|
|
11974
|
+
/**
|
|
11975
|
+
* @description Include clock comments in the PGN moves, when available.
|
|
11976
|
+
* Example: `2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }`
|
|
11977
|
+
*/
|
|
11978
|
+
clocks?: boolean;
|
|
11979
|
+
/**
|
|
11980
|
+
* @description Include analysis comments in the PGN moves, when available.
|
|
11981
|
+
* Example: `12. Bxf6 { [%eval 0.23] }`
|
|
11982
|
+
*/
|
|
11983
|
+
comments?: boolean;
|
|
11984
|
+
};
|
|
11985
|
+
header?: never;
|
|
11986
|
+
path: {
|
|
11987
|
+
/**
|
|
11988
|
+
* @description The broadcast group ID. It's the last past of the group URL, which can be found on the broadcast page overview section.
|
|
11989
|
+
* [Example](https://lichess.org/broadcast/fide-world-cadets-cup-2026-o12/round-9/FUQFT39K) the group URL is
|
|
11990
|
+
* https://lichess.org/broadcast/fide-world-cadets-cup-2026/albQx5zq and therefore the group ID is `albQx5zq`.
|
|
11991
|
+
*/
|
|
11992
|
+
broadcastGroupId: string;
|
|
11993
|
+
};
|
|
11994
|
+
cookie?: never;
|
|
11995
|
+
};
|
|
11996
|
+
requestBody?: never;
|
|
11997
|
+
responses: {
|
|
11998
|
+
/** @description The PGN representation of the rounds games, then the PGNs of games as they are updated. */
|
|
11999
|
+
200: {
|
|
12000
|
+
headers: {
|
|
12001
|
+
"Access-Control-Allow-Origin"?: string;
|
|
12002
|
+
[name: string]: unknown;
|
|
12003
|
+
};
|
|
12004
|
+
content: {
|
|
12005
|
+
"application/x-chess-pgn": components["schemas"]["StudyPgn"];
|
|
12006
|
+
};
|
|
12007
|
+
};
|
|
12008
|
+
};
|
|
12009
|
+
};
|
|
11943
12010
|
broadcastRoundPgn: {
|
|
11944
12011
|
parameters: {
|
|
11945
12012
|
query?: {
|