@lichess-org/types 2.0.36 → 2.0.38
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 +4 -225
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -4505,54 +4505,6 @@ export interface components {
|
|
|
4505
4505
|
};
|
|
4506
4506
|
stream?: boolean;
|
|
4507
4507
|
};
|
|
4508
|
-
/** @example {
|
|
4509
|
-
* "game": {
|
|
4510
|
-
* "clock": "3+0",
|
|
4511
|
-
* "id": "AHGPPS44",
|
|
4512
|
-
* "perf": {
|
|
4513
|
-
* "key": "blitz",
|
|
4514
|
-
* "name": "Blitz"
|
|
4515
|
-
* },
|
|
4516
|
-
* "pgn": "d4 d5 Bf4 Bf5 Nf3 e6 c4 Nf6 Nc3 Bd6 Bg3 Nbd7 e3 O-O c5 Bxg3 hxg3 h6 Bd3 Ne4 Qc2 Ndf6 Nd2 Nxc3 Bxf5 exf5 bxc3 Ne4 Nxe4 fxe4 Rb1 b6 Rh5 bxc5 Rb5 cxd4 cxd4 c6 Qxc6 Rc8 Qxd5 Qf6 Qxe4 Rc1+ Ke2 Qa6 Qd5 Rc2+ Kf3 g6 Rxh6 Qf6+ Ke4",
|
|
4517
|
-
* "players": [
|
|
4518
|
-
* {
|
|
4519
|
-
* "color": "white",
|
|
4520
|
-
* "flair": "travel-places.ambulance",
|
|
4521
|
-
* "id": "ericrosen",
|
|
4522
|
-
* "name": "EricRosen",
|
|
4523
|
-
* "patron": true,
|
|
4524
|
-
* "rating": 2642,
|
|
4525
|
-
* "title": "IM"
|
|
4526
|
-
* },
|
|
4527
|
-
* {
|
|
4528
|
-
* "color": "black",
|
|
4529
|
-
* "id": "anton_volovikov",
|
|
4530
|
-
* "name": "Anton_Volovikov",
|
|
4531
|
-
* "rating": 2619,
|
|
4532
|
-
* "title": "FM"
|
|
4533
|
-
* }
|
|
4534
|
-
* ],
|
|
4535
|
-
* "rated": true
|
|
4536
|
-
* },
|
|
4537
|
-
* "puzzle": {
|
|
4538
|
-
* "id": "PSjmf",
|
|
4539
|
-
* "initialPly": 52,
|
|
4540
|
-
* "plays": 566,
|
|
4541
|
-
* "rating": 2705,
|
|
4542
|
-
* "solution": [
|
|
4543
|
-
* "g8g7",
|
|
4544
|
-
* "d5e5",
|
|
4545
|
-
* "f6e5"
|
|
4546
|
-
* ],
|
|
4547
|
-
* "themes": [
|
|
4548
|
-
* "endgame",
|
|
4549
|
-
* "master",
|
|
4550
|
-
* "short",
|
|
4551
|
-
* "masterVsMaster",
|
|
4552
|
-
* "crushing"
|
|
4553
|
-
* ]
|
|
4554
|
-
* }
|
|
4555
|
-
* } */
|
|
4556
4508
|
PuzzleAndGame: {
|
|
4557
4509
|
game: {
|
|
4558
4510
|
clock: string;
|
|
@@ -4582,31 +4534,6 @@ export interface components {
|
|
|
4582
4534
|
themes: string[];
|
|
4583
4535
|
};
|
|
4584
4536
|
};
|
|
4585
|
-
/** @example {
|
|
4586
|
-
* "date": 1717460624888,
|
|
4587
|
-
* "puzzle": {
|
|
4588
|
-
* "fen": "6k1/3rqpp1/5b1p/p1p1pP1Q/1pB4P/1P1R1PP1/P7/6K1 w - - 1 1",
|
|
4589
|
-
* "id": "BlOLL",
|
|
4590
|
-
* "lastMove": "c7d7",
|
|
4591
|
-
* "plays": 14703,
|
|
4592
|
-
* "rating": 2018,
|
|
4593
|
-
* "solution": [
|
|
4594
|
-
* "h5f7",
|
|
4595
|
-
* "e7f7",
|
|
4596
|
-
* "d3d7",
|
|
4597
|
-
* "f7c4",
|
|
4598
|
-
* "b3c4"
|
|
4599
|
-
* ],
|
|
4600
|
-
* "themes": [
|
|
4601
|
-
* "endgame",
|
|
4602
|
-
* "crushing",
|
|
4603
|
-
* "long",
|
|
4604
|
-
* "sacrifice",
|
|
4605
|
-
* "pin"
|
|
4606
|
-
* ]
|
|
4607
|
-
* },
|
|
4608
|
-
* "win": true
|
|
4609
|
-
* } */
|
|
4610
4537
|
PuzzleActivity: {
|
|
4611
4538
|
date: number;
|
|
4612
4539
|
puzzle: {
|
|
@@ -4620,22 +4547,6 @@ export interface components {
|
|
|
4620
4547
|
};
|
|
4621
4548
|
win: boolean;
|
|
4622
4549
|
};
|
|
4623
|
-
/** @example {
|
|
4624
|
-
* "replay": {
|
|
4625
|
-
* "days": 30,
|
|
4626
|
-
* "theme": "opening",
|
|
4627
|
-
* "nb": 2,
|
|
4628
|
-
* "remaining": [
|
|
4629
|
-
* "M5KzH",
|
|
4630
|
-
* "prIYT"
|
|
4631
|
-
* ]
|
|
4632
|
-
* },
|
|
4633
|
-
* "angle": {
|
|
4634
|
-
* "key": "opening",
|
|
4635
|
-
* "name": "Opening",
|
|
4636
|
-
* "desc": "A tactic during the first phase of the game."
|
|
4637
|
-
* }
|
|
4638
|
-
* } */
|
|
4639
4550
|
PuzzleReplay: {
|
|
4640
4551
|
replay: {
|
|
4641
4552
|
days: number;
|
|
@@ -4656,58 +4567,6 @@ export interface components {
|
|
|
4656
4567
|
puzzleRatingAvg: number;
|
|
4657
4568
|
replayWins: number;
|
|
4658
4569
|
};
|
|
4659
|
-
/** @example {
|
|
4660
|
-
* "days": 30,
|
|
4661
|
-
* "global": {
|
|
4662
|
-
* "firstWins": 1,
|
|
4663
|
-
* "nb": 2,
|
|
4664
|
-
* "performance": 2032,
|
|
4665
|
-
* "puzzleRatingAvg": 2032,
|
|
4666
|
-
* "replayWins": 0
|
|
4667
|
-
* },
|
|
4668
|
-
* "themes": {
|
|
4669
|
-
* "defensiveMove": {
|
|
4670
|
-
* "results": {
|
|
4671
|
-
* "firstWins": 0,
|
|
4672
|
-
* "nb": 1,
|
|
4673
|
-
* "performance": 1547,
|
|
4674
|
-
* "puzzleRatingAvg": 2047,
|
|
4675
|
-
* "replayWins": 0
|
|
4676
|
-
* },
|
|
4677
|
-
* "theme": "Defensive move"
|
|
4678
|
-
* },
|
|
4679
|
-
* "endgame": {
|
|
4680
|
-
* "results": {
|
|
4681
|
-
* "firstWins": 1,
|
|
4682
|
-
* "nb": 2,
|
|
4683
|
-
* "performance": 2032,
|
|
4684
|
-
* "puzzleRatingAvg": 2032,
|
|
4685
|
-
* "replayWins": 0
|
|
4686
|
-
* },
|
|
4687
|
-
* "theme": "Endgame"
|
|
4688
|
-
* },
|
|
4689
|
-
* "pin": {
|
|
4690
|
-
* "results": {
|
|
4691
|
-
* "firstWins": 1,
|
|
4692
|
-
* "nb": 1,
|
|
4693
|
-
* "performance": 2518,
|
|
4694
|
-
* "puzzleRatingAvg": 2018,
|
|
4695
|
-
* "replayWins": 0
|
|
4696
|
-
* },
|
|
4697
|
-
* "theme": "Pin"
|
|
4698
|
-
* },
|
|
4699
|
-
* "sacrifice": {
|
|
4700
|
-
* "results": {
|
|
4701
|
-
* "firstWins": 1,
|
|
4702
|
-
* "nb": 1,
|
|
4703
|
-
* "performance": 2518,
|
|
4704
|
-
* "puzzleRatingAvg": 2018,
|
|
4705
|
-
* "replayWins": 0
|
|
4706
|
-
* },
|
|
4707
|
-
* "theme": "Sacrifice"
|
|
4708
|
-
* }
|
|
4709
|
-
* }
|
|
4710
|
-
* } */
|
|
4711
4570
|
PuzzleDashboard: {
|
|
4712
4571
|
days: number;
|
|
4713
4572
|
global: components["schemas"]["PuzzlePerformance"];
|
|
@@ -4718,26 +4577,6 @@ export interface components {
|
|
|
4718
4577
|
};
|
|
4719
4578
|
};
|
|
4720
4579
|
};
|
|
4721
|
-
/** @example {
|
|
4722
|
-
* "days": [
|
|
4723
|
-
* {
|
|
4724
|
-
* "_id": "2024/6/4",
|
|
4725
|
-
* "combo": 32,
|
|
4726
|
-
* "errors": 5,
|
|
4727
|
-
* "highest": 1590,
|
|
4728
|
-
* "moves": 60,
|
|
4729
|
-
* "runs": 1,
|
|
4730
|
-
* "score": 24,
|
|
4731
|
-
* "time": 174
|
|
4732
|
-
* }
|
|
4733
|
-
* ],
|
|
4734
|
-
* "high": {
|
|
4735
|
-
* "allTime": 24,
|
|
4736
|
-
* "day": 24,
|
|
4737
|
-
* "month": 24,
|
|
4738
|
-
* "week": 24
|
|
4739
|
-
* }
|
|
4740
|
-
* } */
|
|
4741
4580
|
PuzzleStormDashboard: {
|
|
4742
4581
|
days: {
|
|
4743
4582
|
_id: string;
|
|
@@ -4756,10 +4595,6 @@ export interface components {
|
|
|
4756
4595
|
week: number;
|
|
4757
4596
|
};
|
|
4758
4597
|
};
|
|
4759
|
-
/** @example {
|
|
4760
|
-
* "id": "MT4hr",
|
|
4761
|
-
* "url": "https://lichess.org/racer/MT4hr"
|
|
4762
|
-
* } */
|
|
4763
4598
|
PuzzleRacer: {
|
|
4764
4599
|
id: string;
|
|
4765
4600
|
/** Format: uri */
|
|
@@ -5303,47 +5138,6 @@ export interface components {
|
|
|
5303
5138
|
comment?: string;
|
|
5304
5139
|
};
|
|
5305
5140
|
};
|
|
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
5141
|
GameJson: {
|
|
5348
5142
|
id: string;
|
|
5349
5143
|
rated: boolean;
|
|
@@ -5533,9 +5327,7 @@ export interface components {
|
|
|
5533
5327
|
* ] */
|
|
5534
5328
|
MoveStream: unknown;
|
|
5535
5329
|
TvGame: {
|
|
5536
|
-
user: components["schemas"]["LightUser"]
|
|
5537
|
-
flair?: components["schemas"]["Flair"];
|
|
5538
|
-
};
|
|
5330
|
+
user: components["schemas"]["LightUser"];
|
|
5539
5331
|
rating: number;
|
|
5540
5332
|
gameId: string;
|
|
5541
5333
|
/** @enum {string} */
|
|
@@ -5560,11 +5352,7 @@ export interface components {
|
|
|
5560
5352
|
players: {
|
|
5561
5353
|
/** @enum {string} */
|
|
5562
5354
|
color: "white" | "black";
|
|
5563
|
-
user:
|
|
5564
|
-
name: string;
|
|
5565
|
-
id: string;
|
|
5566
|
-
title?: string;
|
|
5567
|
-
};
|
|
5355
|
+
user: components["schemas"]["LightUser"];
|
|
5568
5356
|
rating: number;
|
|
5569
5357
|
/** @description The player's remaining time in seconds */
|
|
5570
5358
|
seconds: number;
|
|
@@ -6433,22 +6221,14 @@ export interface components {
|
|
|
6433
6221
|
study: components["schemas"]["BroadcastRoundStudyInfo"];
|
|
6434
6222
|
};
|
|
6435
6223
|
FIDEPlayer: {
|
|
6436
|
-
/** @example 35009192 */
|
|
6437
6224
|
id: number;
|
|
6438
|
-
/** @example Erigaisi Arjun */
|
|
6439
6225
|
name: string;
|
|
6440
6226
|
title?: components["schemas"]["Title"];
|
|
6441
|
-
/** @example IND */
|
|
6442
6227
|
federation: string;
|
|
6443
|
-
/** @example 2003 */
|
|
6444
6228
|
year?: number;
|
|
6445
|
-
/** @example true */
|
|
6446
6229
|
inactive?: boolean;
|
|
6447
|
-
/** @example 2797 */
|
|
6448
6230
|
standard?: number;
|
|
6449
|
-
/** @example 2698 */
|
|
6450
6231
|
rapid?: number;
|
|
6451
|
-
/** @example 2738 */
|
|
6452
6232
|
blitz?: number;
|
|
6453
6233
|
};
|
|
6454
6234
|
Simul: {
|
|
@@ -13882,7 +13662,7 @@ export interface operations {
|
|
|
13882
13662
|
parameters: {
|
|
13883
13663
|
query: {
|
|
13884
13664
|
/** @description Must be `code`. */
|
|
13885
|
-
response_type:
|
|
13665
|
+
response_type: "code";
|
|
13886
13666
|
/**
|
|
13887
13667
|
* @description Arbitrary identifier that uniquely identifies your application.
|
|
13888
13668
|
* @example example.com
|
|
@@ -13891,7 +13671,7 @@ export interface operations {
|
|
|
13891
13671
|
/** @description The absolute URL that the user should be redirected to with the authorization result. */
|
|
13892
13672
|
redirect_uri: string;
|
|
13893
13673
|
/** @description Must be `S256`. */
|
|
13894
|
-
code_challenge_method:
|
|
13674
|
+
code_challenge_method: "S256";
|
|
13895
13675
|
/** @description Compute `BASE64URL(SHA256(code_verifier))`. */
|
|
13896
13676
|
code_challenge: string;
|
|
13897
13677
|
/** @description Space separated list of requested OAuth scopes, if any. */
|
|
@@ -14013,7 +13793,6 @@ export interface operations {
|
|
|
14013
13793
|
/** @description OAuth tokens separated by commas. Up to 1000. */
|
|
14014
13794
|
requestBody: {
|
|
14015
13795
|
content: {
|
|
14016
|
-
/** @example lip_AvsS88TozFeSMEaoLN5c,lip_badToken */
|
|
14017
13796
|
"text/plain": string;
|
|
14018
13797
|
};
|
|
14019
13798
|
};
|