@lichess-org/types 2.0.35 → 2.0.37
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 +7 -242
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -5303,47 +5303,6 @@ export interface components {
|
|
|
5303
5303
|
comment?: string;
|
|
5304
5304
|
};
|
|
5305
5305
|
};
|
|
5306
|
-
/** @example {
|
|
5307
|
-
* "id": "q7ZvsdUF",
|
|
5308
|
-
* "rated": true,
|
|
5309
|
-
* "variant": "standard",
|
|
5310
|
-
* "speed": "blitz",
|
|
5311
|
-
* "perf": "blitz",
|
|
5312
|
-
* "createdAt": 1514505150384,
|
|
5313
|
-
* "lastMoveAt": 1514505592843,
|
|
5314
|
-
* "status": "draw",
|
|
5315
|
-
* "players": {
|
|
5316
|
-
* "white": {
|
|
5317
|
-
* "user": {
|
|
5318
|
-
* "name": "Lance5500",
|
|
5319
|
-
* "title": "LM",
|
|
5320
|
-
* "patron": true,
|
|
5321
|
-
* "id": "lance5500"
|
|
5322
|
-
* },
|
|
5323
|
-
* "rating": 2389,
|
|
5324
|
-
* "ratingDiff": 4
|
|
5325
|
-
* },
|
|
5326
|
-
* "black": {
|
|
5327
|
-
* "user": {
|
|
5328
|
-
* "name": "TryingHard87",
|
|
5329
|
-
* "id": "tryinghard87"
|
|
5330
|
-
* },
|
|
5331
|
-
* "rating": 2498,
|
|
5332
|
-
* "ratingDiff": -4
|
|
5333
|
-
* }
|
|
5334
|
-
* },
|
|
5335
|
-
* "opening": {
|
|
5336
|
-
* "eco": "D31",
|
|
5337
|
-
* "name": "Semi-Slav Defense: Marshall Gambit",
|
|
5338
|
-
* "ply": 7
|
|
5339
|
-
* },
|
|
5340
|
-
* "moves": "d4 d5 c4 c6 Nc3 e6 e4 Nd7 exd5 cxd5 cxd5 exd5 Nxd5 Nb6 Bb5+ Bd7 Qe2+ Ne7 Nxb6 Qxb6 Bxd7+ Kxd7 Nf3 Qa6 Ne5+ Ke8 Qf3 f6 Nd3 Qc6 Qe2 Kf7 O-O Kg8 Bd2 Re8 Rac1 Nf5 Be3 Qe6 Rfe1 g6 b3 Bd6 Qd2 Kf7 Bf4 Qd7 Bxd6 Nxd6 Nc5 Rxe1+ Rxe1 Qc6 f3 Re8 Rxe8 Nxe8 Kf2 Nc7 Qb4 b6 Qc4+ Nd5 Nd3 Qe6 Nb4 Ne7 Qxe6+ Kxe6 Ke3 Kd6 g3 h6 Kd3 h5 Nc2 Kd5 a3 Nc6 Ne3+ Kd6 h4 Nd8 g4 Ne6 Ke4 Ng7 Nc4+ Ke6 d5+ Kd7 a4 g5 gxh5 Nxh5 hxg5 fxg5 Kf5 Nf4 Ne3 Nh3 Kg4 Ng1 Nc4 Kc7 Nd2 Kd6 Kxg5 Kxd5 f4 Nh3+ Kg4 Nf2+ Kf3 Nd3 Ke3 Nc5 Kf3 Ke6 Ke3 Kf5 Kd4 Ne6+ Kc4",
|
|
5341
|
-
* "clock": {
|
|
5342
|
-
* "initial": 300,
|
|
5343
|
-
* "increment": 3,
|
|
5344
|
-
* "totalTime": 420
|
|
5345
|
-
* }
|
|
5346
|
-
* } */
|
|
5347
5306
|
GameJson: {
|
|
5348
5307
|
id: string;
|
|
5349
5308
|
rated: boolean;
|
|
@@ -5533,9 +5492,7 @@ export interface components {
|
|
|
5533
5492
|
* ] */
|
|
5534
5493
|
MoveStream: unknown;
|
|
5535
5494
|
TvGame: {
|
|
5536
|
-
user: components["schemas"]["LightUser"]
|
|
5537
|
-
flair?: components["schemas"]["Flair"];
|
|
5538
|
-
};
|
|
5495
|
+
user: components["schemas"]["LightUser"];
|
|
5539
5496
|
rating: number;
|
|
5540
5497
|
gameId: string;
|
|
5541
5498
|
/** @enum {string} */
|
|
@@ -5560,11 +5517,7 @@ export interface components {
|
|
|
5560
5517
|
players: {
|
|
5561
5518
|
/** @enum {string} */
|
|
5562
5519
|
color: "white" | "black";
|
|
5563
|
-
user:
|
|
5564
|
-
name: string;
|
|
5565
|
-
id: string;
|
|
5566
|
-
title?: string;
|
|
5567
|
-
};
|
|
5520
|
+
user: components["schemas"]["LightUser"];
|
|
5568
5521
|
rating: number;
|
|
5569
5522
|
/** @description The player's remaining time in seconds */
|
|
5570
5523
|
seconds: number;
|
|
@@ -6433,22 +6386,14 @@ export interface components {
|
|
|
6433
6386
|
study: components["schemas"]["BroadcastRoundStudyInfo"];
|
|
6434
6387
|
};
|
|
6435
6388
|
FIDEPlayer: {
|
|
6436
|
-
/** @example 35009192 */
|
|
6437
6389
|
id: number;
|
|
6438
|
-
/** @example Erigaisi Arjun */
|
|
6439
6390
|
name: string;
|
|
6440
6391
|
title?: components["schemas"]["Title"];
|
|
6441
|
-
/** @example IND */
|
|
6442
6392
|
federation: string;
|
|
6443
|
-
/** @example 2003 */
|
|
6444
6393
|
year?: number;
|
|
6445
|
-
/** @example true */
|
|
6446
6394
|
inactive?: boolean;
|
|
6447
|
-
/** @example 2797 */
|
|
6448
6395
|
standard?: number;
|
|
6449
|
-
/** @example 2698 */
|
|
6450
6396
|
rapid?: number;
|
|
6451
|
-
/** @example 2738 */
|
|
6452
6397
|
blitz?: number;
|
|
6453
6398
|
};
|
|
6454
6399
|
Simul: {
|
|
@@ -7228,85 +7173,6 @@ export interface components {
|
|
|
7228
7173
|
year: number;
|
|
7229
7174
|
month?: string;
|
|
7230
7175
|
};
|
|
7231
|
-
/** @example {
|
|
7232
|
-
* "opening": {
|
|
7233
|
-
* "eco": "D10",
|
|
7234
|
-
* "name": "Slav Defense: Exchange Variation"
|
|
7235
|
-
* },
|
|
7236
|
-
* "white": 1828,
|
|
7237
|
-
* "draws": 4904,
|
|
7238
|
-
* "black": 1403,
|
|
7239
|
-
* "moves": [
|
|
7240
|
-
* {
|
|
7241
|
-
* "uci": "c6d5",
|
|
7242
|
-
* "san": "cxd5",
|
|
7243
|
-
* "averageRating": 2414,
|
|
7244
|
-
* "white": 1828,
|
|
7245
|
-
* "draws": 4904,
|
|
7246
|
-
* "black": 1402,
|
|
7247
|
-
* "game": null,
|
|
7248
|
-
* "opening": null
|
|
7249
|
-
* },
|
|
7250
|
-
* {
|
|
7251
|
-
* "uci": "g8f6",
|
|
7252
|
-
* "san": "Nf6",
|
|
7253
|
-
* "averageRating": 2515,
|
|
7254
|
-
* "white": 0,
|
|
7255
|
-
* "draws": 0,
|
|
7256
|
-
* "black": 1,
|
|
7257
|
-
* "game": {
|
|
7258
|
-
* "id": "1EErB5jc",
|
|
7259
|
-
* "winner": "black",
|
|
7260
|
-
* "black": {
|
|
7261
|
-
* "name": "Dobrov, Vladimir",
|
|
7262
|
-
* "rating": 2515
|
|
7263
|
-
* },
|
|
7264
|
-
* "white": {
|
|
7265
|
-
* "name": "Drozdovskij, Yuri",
|
|
7266
|
-
* "rating": 2509
|
|
7267
|
-
* },
|
|
7268
|
-
* "year": 2006,
|
|
7269
|
-
* "month": "2006-01"
|
|
7270
|
-
* },
|
|
7271
|
-
* "opening": {
|
|
7272
|
-
* "eco": "D06",
|
|
7273
|
-
* "name": "Queen's Gambit Declined: Marshall Defense, Tan Gambit"
|
|
7274
|
-
* }
|
|
7275
|
-
* }
|
|
7276
|
-
* ],
|
|
7277
|
-
* "topGames": [
|
|
7278
|
-
* {
|
|
7279
|
-
* "uci": "c6d5",
|
|
7280
|
-
* "id": "kN6d9l2i",
|
|
7281
|
-
* "winner": "black",
|
|
7282
|
-
* "black": {
|
|
7283
|
-
* "name": "Anand, V.",
|
|
7284
|
-
* "rating": 2785
|
|
7285
|
-
* },
|
|
7286
|
-
* "white": {
|
|
7287
|
-
* "name": "Carlsen, M.",
|
|
7288
|
-
* "rating": 2881
|
|
7289
|
-
* },
|
|
7290
|
-
* "year": 2014,
|
|
7291
|
-
* "month": "2014-06"
|
|
7292
|
-
* },
|
|
7293
|
-
* {
|
|
7294
|
-
* "uci": "c6d5",
|
|
7295
|
-
* "id": "qeYPJL2y",
|
|
7296
|
-
* "winner": "white",
|
|
7297
|
-
* "black": {
|
|
7298
|
-
* "name": "Carlsen, M.",
|
|
7299
|
-
* "rating": 2843
|
|
7300
|
-
* },
|
|
7301
|
-
* "white": {
|
|
7302
|
-
* "name": "So, W.",
|
|
7303
|
-
* "rating": 2778
|
|
7304
|
-
* },
|
|
7305
|
-
* "year": 2018,
|
|
7306
|
-
* "month": "2018-06"
|
|
7307
|
-
* }
|
|
7308
|
-
* ]
|
|
7309
|
-
* } */
|
|
7310
7176
|
OpeningExplorerMasters: {
|
|
7311
7177
|
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7312
7178
|
white: number;
|
|
@@ -7330,101 +7196,12 @@ export interface components {
|
|
|
7330
7196
|
id: string;
|
|
7331
7197
|
/** @enum {string|null} */
|
|
7332
7198
|
winner: "white" | "black" | null;
|
|
7333
|
-
speed
|
|
7199
|
+
speed?: components["schemas"]["Speed"];
|
|
7334
7200
|
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7335
7201
|
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7336
7202
|
year: number;
|
|
7337
|
-
month: string;
|
|
7203
|
+
month: string | null;
|
|
7338
7204
|
};
|
|
7339
|
-
/** @example {
|
|
7340
|
-
* "opening": {
|
|
7341
|
-
* "eco": "D10",
|
|
7342
|
-
* "name": "Slav Defense: Exchange Variation"
|
|
7343
|
-
* },
|
|
7344
|
-
* "white": 4164079,
|
|
7345
|
-
* "draws": 405547,
|
|
7346
|
-
* "black": 3668091,
|
|
7347
|
-
* "moves": [
|
|
7348
|
-
* {
|
|
7349
|
-
* "uci": "c6d5",
|
|
7350
|
-
* "san": "cxd5",
|
|
7351
|
-
* "averageRating": 1801,
|
|
7352
|
-
* "white": 3716043,
|
|
7353
|
-
* "draws": 370963,
|
|
7354
|
-
* "black": 3304807,
|
|
7355
|
-
* "game": null,
|
|
7356
|
-
* "opening": null
|
|
7357
|
-
* },
|
|
7358
|
-
* {
|
|
7359
|
-
* "uci": "d8d5",
|
|
7360
|
-
* "san": "Qxd5",
|
|
7361
|
-
* "averageRating": 1658,
|
|
7362
|
-
* "white": 195544,
|
|
7363
|
-
* "draws": 14378,
|
|
7364
|
-
* "black": 140001,
|
|
7365
|
-
* "game": null,
|
|
7366
|
-
* "opening": null
|
|
7367
|
-
* }
|
|
7368
|
-
* ],
|
|
7369
|
-
* "recentGames": [
|
|
7370
|
-
* {
|
|
7371
|
-
* "uci": "c6d5",
|
|
7372
|
-
* "id": "ilsfX0gq",
|
|
7373
|
-
* "winner": "black",
|
|
7374
|
-
* "speed": "blitz",
|
|
7375
|
-
* "mode": "rated",
|
|
7376
|
-
* "black": {
|
|
7377
|
-
* "name": "captan64",
|
|
7378
|
-
* "rating": 2201
|
|
7379
|
-
* },
|
|
7380
|
-
* "white": {
|
|
7381
|
-
* "name": "ElsaPato33",
|
|
7382
|
-
* "rating": 2324
|
|
7383
|
-
* },
|
|
7384
|
-
* "year": 2024,
|
|
7385
|
-
* "month": "2024-10"
|
|
7386
|
-
* }
|
|
7387
|
-
* ],
|
|
7388
|
-
* "topGames": [
|
|
7389
|
-
* {
|
|
7390
|
-
* "uci": "g8f6",
|
|
7391
|
-
* "id": "EqJcFS1j",
|
|
7392
|
-
* "winner": "white",
|
|
7393
|
-
* "speed": "ultraBullet",
|
|
7394
|
-
* "mode": "rated",
|
|
7395
|
-
* "black": {
|
|
7396
|
-
* "name": "toivok",
|
|
7397
|
-
* "rating": 2708
|
|
7398
|
-
* },
|
|
7399
|
-
* "white": {
|
|
7400
|
-
* "name": "penguingim1",
|
|
7401
|
-
* "rating": 2969
|
|
7402
|
-
* },
|
|
7403
|
-
* "year": 2018,
|
|
7404
|
-
* "month": "2018-04"
|
|
7405
|
-
* }
|
|
7406
|
-
* ],
|
|
7407
|
-
* "history": [
|
|
7408
|
-
* {
|
|
7409
|
-
* "month": "2013-01",
|
|
7410
|
-
* "white": 60,
|
|
7411
|
-
* "draws": 2,
|
|
7412
|
-
* "black": 54
|
|
7413
|
-
* },
|
|
7414
|
-
* {
|
|
7415
|
-
* "month": "2013-02",
|
|
7416
|
-
* "white": 71,
|
|
7417
|
-
* "draws": 8,
|
|
7418
|
-
* "black": 75
|
|
7419
|
-
* },
|
|
7420
|
-
* {
|
|
7421
|
-
* "month": "2013-03",
|
|
7422
|
-
* "white": 83,
|
|
7423
|
-
* "draws": 4,
|
|
7424
|
-
* "black": 72
|
|
7425
|
-
* }
|
|
7426
|
-
* ]
|
|
7427
|
-
* } */
|
|
7428
7205
|
OpeningExplorerLichess: {
|
|
7429
7206
|
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7430
7207
|
white: number;
|
|
@@ -7443,7 +7220,7 @@ export interface components {
|
|
|
7443
7220
|
topGames: ({
|
|
7444
7221
|
uci: string;
|
|
7445
7222
|
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7446
|
-
recentGames
|
|
7223
|
+
recentGames?: ({
|
|
7447
7224
|
uci: string;
|
|
7448
7225
|
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7449
7226
|
history?: {
|
|
@@ -7577,6 +7354,7 @@ export interface components {
|
|
|
7577
7354
|
* } */
|
|
7578
7355
|
OpeningExplorerPlayer: {
|
|
7579
7356
|
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7357
|
+
/** @description Waiting for other players to be indexed first */
|
|
7580
7358
|
queuePosition: number;
|
|
7581
7359
|
white: number;
|
|
7582
7360
|
draws: number;
|
|
@@ -7596,19 +7374,6 @@ export interface components {
|
|
|
7596
7374
|
uci: string;
|
|
7597
7375
|
} & components["schemas"]["OpeningExplorerPlayerGame"])[];
|
|
7598
7376
|
};
|
|
7599
|
-
/** @example [Event "Wch Blitz"]
|
|
7600
|
-
* [Site "Astana"]
|
|
7601
|
-
* [Date "2012.07.10"]
|
|
7602
|
-
* [Round "23"]
|
|
7603
|
-
* [White "Carlsen, Magnus"]
|
|
7604
|
-
* [Black "Chadaev, Nikolay"]
|
|
7605
|
-
* [Result "1-0"]
|
|
7606
|
-
* [WhiteElo "2837"]
|
|
7607
|
-
* [BlackElo "2580"]
|
|
7608
|
-
*
|
|
7609
|
-
* 1. e4 e5 2. f4 d5 3. exd5 exf4 4. Nf3 Nf6 5. c4 c6 6. d4 cxd5 7. c5 Nc6 8. Bb5 Be7 9. O-O O-O 10. Bxf4 Bg4 11. Nc3 Ne4 12. Qd3 Bf5 13. Qe3 Bf6 14. Bxc6 bxc6 15. Ne5 Bxe5 16. Bxe5 Bg6 17. Nxe4 Bxe4 18. Qg3 f6 19. Bd6 Re8 20. b4 Bg6 21. a4 a6 22. h4 Qd7 23. h5 Bxh5 24. Rxf6 Qg4 25. Qxg4 Bxg4 26. Rf4 Bh5 27. Raf1 h6 28. Be5 Ra7 29. b5 axb5 30. axb5 cxb5 31. c6 Raa8 32. c7 Kh7 33. Rb1 Be2 34. Rf7 Rg8 35. Re7 Bc4 36. Kh2 Rae8 37. Rd7 Ra8 38. Rb2 Raf8 39. g4 Ra8 40. Rf2 b4 41. Rff7 h5 42. Rxg7+ Rxg7 43. Rxg7+ 1-0
|
|
7610
|
-
* */
|
|
7611
|
-
MasterGamePgn: unknown;
|
|
7612
7377
|
Move: {
|
|
7613
7378
|
/** @example h7h8q */
|
|
7614
7379
|
uci?: string;
|
|
@@ -14397,7 +14162,7 @@ export interface operations {
|
|
|
14397
14162
|
[name: string]: unknown;
|
|
14398
14163
|
};
|
|
14399
14164
|
content: {
|
|
14400
|
-
"application/x-chess-pgn":
|
|
14165
|
+
"application/x-chess-pgn": string;
|
|
14401
14166
|
};
|
|
14402
14167
|
};
|
|
14403
14168
|
};
|