@lichess-org/types 2.0.32 → 2.0.34
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 +17 -82
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1811,11 +1811,11 @@ export interface paths {
|
|
|
1811
1811
|
cookie?: never;
|
|
1812
1812
|
};
|
|
1813
1813
|
/**
|
|
1814
|
-
* Stream an ongoing broadcast
|
|
1815
|
-
* @description This streaming endpoint first sends all games of a broadcast
|
|
1814
|
+
* Stream an ongoing broadcast round as PGN
|
|
1815
|
+
* @description This streaming endpoint first sends all games of a broadcast round in PGN format.
|
|
1816
1816
|
* 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.
|
|
1817
|
-
* The stream will also send PGNs when games are added to the
|
|
1818
|
-
* This is the best way to get updates about an ongoing
|
|
1817
|
+
* The stream will also send PGNs when games are added to the round.
|
|
1818
|
+
* This is the best way to get updates about an ongoing round. Streaming means no polling,
|
|
1819
1819
|
* and no pollings means no latency, and minimum impact on the server.
|
|
1820
1820
|
*
|
|
1821
1821
|
*/
|
|
@@ -5355,6 +5355,7 @@ export interface components {
|
|
|
5355
5355
|
/** Format: int64 */
|
|
5356
5356
|
lastMoveAt: number;
|
|
5357
5357
|
status: components["schemas"]["GameStatus"];
|
|
5358
|
+
source?: string;
|
|
5358
5359
|
players: {
|
|
5359
5360
|
white: components["schemas"]["GameUser"];
|
|
5360
5361
|
black: components["schemas"]["GameUser"];
|
|
@@ -6385,26 +6386,6 @@ export interface components {
|
|
|
6385
6386
|
/** @description Whether the currently authenticated user has permission to update the study */
|
|
6386
6387
|
writeable?: boolean;
|
|
6387
6388
|
};
|
|
6388
|
-
/** @example {
|
|
6389
|
-
* "round": {
|
|
6390
|
-
* "createdAt": 1717344905926,
|
|
6391
|
-
* "id": "n8JeQIeY",
|
|
6392
|
-
* "name": "round 1",
|
|
6393
|
-
* "slug": "round-1",
|
|
6394
|
-
* "url": "https://lichess.org/broadcast/new-name/round-1/n8JeQIeY"
|
|
6395
|
-
* },
|
|
6396
|
-
* "study": {
|
|
6397
|
-
* "writeable": true
|
|
6398
|
-
* },
|
|
6399
|
-
* "tour": {
|
|
6400
|
-
* "createdAt": 1717342164861,
|
|
6401
|
-
* "description": "test",
|
|
6402
|
-
* "id": "HdRP6fce",
|
|
6403
|
-
* "name": "New Name",
|
|
6404
|
-
* "slug": "new-name",
|
|
6405
|
-
* "url": "https://lichess.org/broadcast/new-name/HdRP6fce"
|
|
6406
|
-
* }
|
|
6407
|
-
* } */
|
|
6408
6389
|
BroadcastRoundNew: {
|
|
6409
6390
|
round: components["schemas"]["BroadcastRoundInfo"];
|
|
6410
6391
|
tour: components["schemas"]["BroadcastTour"];
|
|
@@ -6439,38 +6420,6 @@ export interface components {
|
|
|
6439
6420
|
BroadcastPgnPushTags: {
|
|
6440
6421
|
[key: string]: string;
|
|
6441
6422
|
};
|
|
6442
|
-
/** @example {
|
|
6443
|
-
* "games": [
|
|
6444
|
-
* {
|
|
6445
|
-
* "tags": {
|
|
6446
|
-
* "White": "Rasmus Svane",
|
|
6447
|
-
* "Black": "Rajat Makkar",
|
|
6448
|
-
* "BlackElo": "2453",
|
|
6449
|
-
* "BlackTeam": "France",
|
|
6450
|
-
* "BlackTitle": "FM",
|
|
6451
|
-
* "WhiteTeam": "Germany",
|
|
6452
|
-
* "Result": "1-0",
|
|
6453
|
-
* "WhiteElo": "2632",
|
|
6454
|
-
* "WhiteTitle": "GM"
|
|
6455
|
-
* },
|
|
6456
|
-
* "moves": 2
|
|
6457
|
-
* },
|
|
6458
|
-
* {
|
|
6459
|
-
* "tags": {
|
|
6460
|
-
* "White": "Joseph Girel",
|
|
6461
|
-
* "Black": "Matthias Bluebaum",
|
|
6462
|
-
* "BlackElo": "2658",
|
|
6463
|
-
* "BlackTeam": "Germany",
|
|
6464
|
-
* "BlackTitle": "GM",
|
|
6465
|
-
* "WhiteTeam": "France",
|
|
6466
|
-
* "Result": "0-1",
|
|
6467
|
-
* "WhiteElo": "2484",
|
|
6468
|
-
* "WhiteTitle": "IM"
|
|
6469
|
-
* },
|
|
6470
|
-
* "error": "No move found: Pawn a8"
|
|
6471
|
-
* }
|
|
6472
|
-
* ]
|
|
6473
|
-
* } */
|
|
6474
6423
|
BroadcastPgnPush: {
|
|
6475
6424
|
games: {
|
|
6476
6425
|
tags: components["schemas"]["BroadcastPgnPushTags"];
|
|
@@ -6478,26 +6427,6 @@ export interface components {
|
|
|
6478
6427
|
error?: string;
|
|
6479
6428
|
}[];
|
|
6480
6429
|
};
|
|
6481
|
-
/** @example {
|
|
6482
|
-
* "round": {
|
|
6483
|
-
* "id": "n8JeQIeY",
|
|
6484
|
-
* "name": "round 1",
|
|
6485
|
-
* "slug": "round-1",
|
|
6486
|
-
* "createdAt": 1717344905926,
|
|
6487
|
-
* "url": "https://lichess.org/broadcast/new-name/round-1/n8JeQIeY"
|
|
6488
|
-
* },
|
|
6489
|
-
* "tour": {
|
|
6490
|
-
* "id": "HdRP6fce",
|
|
6491
|
-
* "name": "New Name",
|
|
6492
|
-
* "slug": "new-name",
|
|
6493
|
-
* "description": "test",
|
|
6494
|
-
* "createdAt": 1717342164861,
|
|
6495
|
-
* "url": "https://lichess.org/broadcast/new-name/HdRP6fce"
|
|
6496
|
-
* },
|
|
6497
|
-
* "study": {
|
|
6498
|
-
* "writeable": true
|
|
6499
|
-
* }
|
|
6500
|
-
* } */
|
|
6501
6430
|
BroadcastMyRound: {
|
|
6502
6431
|
round: components["schemas"]["BroadcastRoundInfo"];
|
|
6503
6432
|
tour: components["schemas"]["BroadcastTour"];
|
|
@@ -11337,7 +11266,7 @@ export interface operations {
|
|
|
11337
11266
|
[name: string]: unknown;
|
|
11338
11267
|
};
|
|
11339
11268
|
content: {
|
|
11340
|
-
"application/json": components["schemas"]["
|
|
11269
|
+
"application/json": components["schemas"]["BroadcastRound"];
|
|
11341
11270
|
};
|
|
11342
11271
|
};
|
|
11343
11272
|
/** @description The broadcast round update failed. */
|
|
@@ -11428,7 +11357,7 @@ export interface operations {
|
|
|
11428
11357
|
};
|
|
11429
11358
|
requestBody?: never;
|
|
11430
11359
|
responses: {
|
|
11431
|
-
/** @description The PGN representation of the
|
|
11360
|
+
/** @description The PGN representation of the round games, then the PGNs of games as they are updated. */
|
|
11432
11361
|
200: {
|
|
11433
11362
|
headers: {
|
|
11434
11363
|
"Access-Control-Allow-Origin"?: string;
|
|
@@ -14496,7 +14425,10 @@ export interface operations {
|
|
|
14496
14425
|
};
|
|
14497
14426
|
tablebaseAtomic: {
|
|
14498
14427
|
parameters: {
|
|
14499
|
-
query
|
|
14428
|
+
query: {
|
|
14429
|
+
/** @description FEN of the position. Underscores allowed. */
|
|
14430
|
+
fen: string;
|
|
14431
|
+
};
|
|
14500
14432
|
header?: never;
|
|
14501
14433
|
path?: never;
|
|
14502
14434
|
cookie?: never;
|
|
@@ -14510,14 +14442,17 @@ export interface operations {
|
|
|
14510
14442
|
[name: string]: unknown;
|
|
14511
14443
|
};
|
|
14512
14444
|
content: {
|
|
14513
|
-
"
|
|
14445
|
+
"application/json": components["schemas"]["TablebaseJson"];
|
|
14514
14446
|
};
|
|
14515
14447
|
};
|
|
14516
14448
|
};
|
|
14517
14449
|
};
|
|
14518
14450
|
antichessAtomic: {
|
|
14519
14451
|
parameters: {
|
|
14520
|
-
query
|
|
14452
|
+
query: {
|
|
14453
|
+
/** @description FEN of the position. Underscores allowed. */
|
|
14454
|
+
fen: string;
|
|
14455
|
+
};
|
|
14521
14456
|
header?: never;
|
|
14522
14457
|
path?: never;
|
|
14523
14458
|
cookie?: never;
|
|
@@ -14531,7 +14466,7 @@ export interface operations {
|
|
|
14531
14466
|
[name: string]: unknown;
|
|
14532
14467
|
};
|
|
14533
14468
|
content: {
|
|
14534
|
-
"
|
|
14469
|
+
"application/json": components["schemas"]["TablebaseJson"];
|
|
14535
14470
|
};
|
|
14536
14471
|
};
|
|
14537
14472
|
};
|