@lichess-org/types 2.0.33 → 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 +16 -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
|
*/
|
|
@@ -6386,26 +6386,6 @@ export interface components {
|
|
|
6386
6386
|
/** @description Whether the currently authenticated user has permission to update the study */
|
|
6387
6387
|
writeable?: boolean;
|
|
6388
6388
|
};
|
|
6389
|
-
/** @example {
|
|
6390
|
-
* "round": {
|
|
6391
|
-
* "createdAt": 1717344905926,
|
|
6392
|
-
* "id": "n8JeQIeY",
|
|
6393
|
-
* "name": "round 1",
|
|
6394
|
-
* "slug": "round-1",
|
|
6395
|
-
* "url": "https://lichess.org/broadcast/new-name/round-1/n8JeQIeY"
|
|
6396
|
-
* },
|
|
6397
|
-
* "study": {
|
|
6398
|
-
* "writeable": true
|
|
6399
|
-
* },
|
|
6400
|
-
* "tour": {
|
|
6401
|
-
* "createdAt": 1717342164861,
|
|
6402
|
-
* "description": "test",
|
|
6403
|
-
* "id": "HdRP6fce",
|
|
6404
|
-
* "name": "New Name",
|
|
6405
|
-
* "slug": "new-name",
|
|
6406
|
-
* "url": "https://lichess.org/broadcast/new-name/HdRP6fce"
|
|
6407
|
-
* }
|
|
6408
|
-
* } */
|
|
6409
6389
|
BroadcastRoundNew: {
|
|
6410
6390
|
round: components["schemas"]["BroadcastRoundInfo"];
|
|
6411
6391
|
tour: components["schemas"]["BroadcastTour"];
|
|
@@ -6440,38 +6420,6 @@ export interface components {
|
|
|
6440
6420
|
BroadcastPgnPushTags: {
|
|
6441
6421
|
[key: string]: string;
|
|
6442
6422
|
};
|
|
6443
|
-
/** @example {
|
|
6444
|
-
* "games": [
|
|
6445
|
-
* {
|
|
6446
|
-
* "tags": {
|
|
6447
|
-
* "White": "Rasmus Svane",
|
|
6448
|
-
* "Black": "Rajat Makkar",
|
|
6449
|
-
* "BlackElo": "2453",
|
|
6450
|
-
* "BlackTeam": "France",
|
|
6451
|
-
* "BlackTitle": "FM",
|
|
6452
|
-
* "WhiteTeam": "Germany",
|
|
6453
|
-
* "Result": "1-0",
|
|
6454
|
-
* "WhiteElo": "2632",
|
|
6455
|
-
* "WhiteTitle": "GM"
|
|
6456
|
-
* },
|
|
6457
|
-
* "moves": 2
|
|
6458
|
-
* },
|
|
6459
|
-
* {
|
|
6460
|
-
* "tags": {
|
|
6461
|
-
* "White": "Joseph Girel",
|
|
6462
|
-
* "Black": "Matthias Bluebaum",
|
|
6463
|
-
* "BlackElo": "2658",
|
|
6464
|
-
* "BlackTeam": "Germany",
|
|
6465
|
-
* "BlackTitle": "GM",
|
|
6466
|
-
* "WhiteTeam": "France",
|
|
6467
|
-
* "Result": "0-1",
|
|
6468
|
-
* "WhiteElo": "2484",
|
|
6469
|
-
* "WhiteTitle": "IM"
|
|
6470
|
-
* },
|
|
6471
|
-
* "error": "No move found: Pawn a8"
|
|
6472
|
-
* }
|
|
6473
|
-
* ]
|
|
6474
|
-
* } */
|
|
6475
6423
|
BroadcastPgnPush: {
|
|
6476
6424
|
games: {
|
|
6477
6425
|
tags: components["schemas"]["BroadcastPgnPushTags"];
|
|
@@ -6479,26 +6427,6 @@ export interface components {
|
|
|
6479
6427
|
error?: string;
|
|
6480
6428
|
}[];
|
|
6481
6429
|
};
|
|
6482
|
-
/** @example {
|
|
6483
|
-
* "round": {
|
|
6484
|
-
* "id": "n8JeQIeY",
|
|
6485
|
-
* "name": "round 1",
|
|
6486
|
-
* "slug": "round-1",
|
|
6487
|
-
* "createdAt": 1717344905926,
|
|
6488
|
-
* "url": "https://lichess.org/broadcast/new-name/round-1/n8JeQIeY"
|
|
6489
|
-
* },
|
|
6490
|
-
* "tour": {
|
|
6491
|
-
* "id": "HdRP6fce",
|
|
6492
|
-
* "name": "New Name",
|
|
6493
|
-
* "slug": "new-name",
|
|
6494
|
-
* "description": "test",
|
|
6495
|
-
* "createdAt": 1717342164861,
|
|
6496
|
-
* "url": "https://lichess.org/broadcast/new-name/HdRP6fce"
|
|
6497
|
-
* },
|
|
6498
|
-
* "study": {
|
|
6499
|
-
* "writeable": true
|
|
6500
|
-
* }
|
|
6501
|
-
* } */
|
|
6502
6430
|
BroadcastMyRound: {
|
|
6503
6431
|
round: components["schemas"]["BroadcastRoundInfo"];
|
|
6504
6432
|
tour: components["schemas"]["BroadcastTour"];
|
|
@@ -11338,7 +11266,7 @@ export interface operations {
|
|
|
11338
11266
|
[name: string]: unknown;
|
|
11339
11267
|
};
|
|
11340
11268
|
content: {
|
|
11341
|
-
"application/json": components["schemas"]["
|
|
11269
|
+
"application/json": components["schemas"]["BroadcastRound"];
|
|
11342
11270
|
};
|
|
11343
11271
|
};
|
|
11344
11272
|
/** @description The broadcast round update failed. */
|
|
@@ -11429,7 +11357,7 @@ export interface operations {
|
|
|
11429
11357
|
};
|
|
11430
11358
|
requestBody?: never;
|
|
11431
11359
|
responses: {
|
|
11432
|
-
/** @description The PGN representation of the
|
|
11360
|
+
/** @description The PGN representation of the round games, then the PGNs of games as they are updated. */
|
|
11433
11361
|
200: {
|
|
11434
11362
|
headers: {
|
|
11435
11363
|
"Access-Control-Allow-Origin"?: string;
|
|
@@ -14497,7 +14425,10 @@ export interface operations {
|
|
|
14497
14425
|
};
|
|
14498
14426
|
tablebaseAtomic: {
|
|
14499
14427
|
parameters: {
|
|
14500
|
-
query
|
|
14428
|
+
query: {
|
|
14429
|
+
/** @description FEN of the position. Underscores allowed. */
|
|
14430
|
+
fen: string;
|
|
14431
|
+
};
|
|
14501
14432
|
header?: never;
|
|
14502
14433
|
path?: never;
|
|
14503
14434
|
cookie?: never;
|
|
@@ -14511,14 +14442,17 @@ export interface operations {
|
|
|
14511
14442
|
[name: string]: unknown;
|
|
14512
14443
|
};
|
|
14513
14444
|
content: {
|
|
14514
|
-
"
|
|
14445
|
+
"application/json": components["schemas"]["TablebaseJson"];
|
|
14515
14446
|
};
|
|
14516
14447
|
};
|
|
14517
14448
|
};
|
|
14518
14449
|
};
|
|
14519
14450
|
antichessAtomic: {
|
|
14520
14451
|
parameters: {
|
|
14521
|
-
query
|
|
14452
|
+
query: {
|
|
14453
|
+
/** @description FEN of the position. Underscores allowed. */
|
|
14454
|
+
fen: string;
|
|
14455
|
+
};
|
|
14522
14456
|
header?: never;
|
|
14523
14457
|
path?: never;
|
|
14524
14458
|
cookie?: never;
|
|
@@ -14532,7 +14466,7 @@ export interface operations {
|
|
|
14532
14466
|
[name: string]: unknown;
|
|
14533
14467
|
};
|
|
14534
14468
|
content: {
|
|
14535
|
-
"
|
|
14469
|
+
"application/json": components["schemas"]["TablebaseJson"];
|
|
14536
14470
|
};
|
|
14537
14471
|
};
|
|
14538
14472
|
};
|