@lichess-org/types 2.0.97 → 2.0.99
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 +193 -69
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -4010,6 +4010,12 @@ export interface components {
|
|
|
4010
4010
|
| "WNM"
|
|
4011
4011
|
| "LM"
|
|
4012
4012
|
| "BOT";
|
|
4013
|
+
/**
|
|
4014
|
+
* @deprecated
|
|
4015
|
+
* @description Use patronColor value instead to determine if player is a patron.
|
|
4016
|
+
*
|
|
4017
|
+
*/
|
|
4018
|
+
Patron: boolean;
|
|
4013
4019
|
/** @description Players can choose a color for their Patron wings.
|
|
4014
4020
|
* See [here for the color mappings](https://github.com/lichess-org/lila/blob/master/ui/lib/css/abstract/_patron-colors.scss).
|
|
4015
4021
|
*
|
|
@@ -4026,7 +4032,8 @@ export interface components {
|
|
|
4026
4032
|
};
|
|
4027
4033
|
};
|
|
4028
4034
|
title?: components["schemas"]["Title"];
|
|
4029
|
-
patron?:
|
|
4035
|
+
patron?: components["schemas"]["Patron"];
|
|
4036
|
+
patronColor?: components["schemas"]["PatronColor"];
|
|
4030
4037
|
online?: boolean;
|
|
4031
4038
|
};
|
|
4032
4039
|
PerfTop10: components["schemas"]["TopUser"][];
|
|
@@ -4126,6 +4133,7 @@ export interface components {
|
|
|
4126
4133
|
PlayTime: {
|
|
4127
4134
|
total: number;
|
|
4128
4135
|
tv: number;
|
|
4136
|
+
human?: number;
|
|
4129
4137
|
};
|
|
4130
4138
|
User: {
|
|
4131
4139
|
/** @example georges */
|
|
@@ -4157,8 +4165,7 @@ export interface components {
|
|
|
4157
4165
|
*/
|
|
4158
4166
|
seenAt?: number;
|
|
4159
4167
|
playTime?: components["schemas"]["PlayTime"];
|
|
4160
|
-
|
|
4161
|
-
patron?: boolean;
|
|
4168
|
+
patron?: components["schemas"]["Patron"];
|
|
4162
4169
|
patronColor?: components["schemas"]["PatronColor"];
|
|
4163
4170
|
/** @example true */
|
|
4164
4171
|
verified?: boolean;
|
|
@@ -4300,8 +4307,7 @@ export interface components {
|
|
|
4300
4307
|
name: string;
|
|
4301
4308
|
flair?: components["schemas"]["Flair"];
|
|
4302
4309
|
title?: components["schemas"]["Title"];
|
|
4303
|
-
|
|
4304
|
-
patron?: boolean;
|
|
4310
|
+
patron?: components["schemas"]["Patron"];
|
|
4305
4311
|
patronColor?: components["schemas"]["PatronColor"];
|
|
4306
4312
|
};
|
|
4307
4313
|
PerfStat: {
|
|
@@ -4602,8 +4608,7 @@ export interface components {
|
|
|
4602
4608
|
flair?: components["schemas"]["Flair"];
|
|
4603
4609
|
id: string;
|
|
4604
4610
|
name: string;
|
|
4605
|
-
|
|
4606
|
-
patron?: boolean;
|
|
4611
|
+
patron?: components["schemas"]["Patron"];
|
|
4607
4612
|
patronColor?: components["schemas"]["PatronColor"];
|
|
4608
4613
|
rating: number;
|
|
4609
4614
|
title?: components["schemas"]["Title"];
|
|
@@ -4619,8 +4624,14 @@ export interface components {
|
|
|
4619
4624
|
themes: string[];
|
|
4620
4625
|
};
|
|
4621
4626
|
};
|
|
4627
|
+
PuzzleGlicko: {
|
|
4628
|
+
rating?: number;
|
|
4629
|
+
deviation?: number;
|
|
4630
|
+
provisional?: boolean;
|
|
4631
|
+
};
|
|
4622
4632
|
PuzzleBatchSelect: {
|
|
4623
4633
|
puzzles?: components["schemas"]["PuzzleAndGame"][];
|
|
4634
|
+
glicko?: components["schemas"]["PuzzleGlicko"];
|
|
4624
4635
|
};
|
|
4625
4636
|
PuzzleBatchSolveRequest: {
|
|
4626
4637
|
solutions?: {
|
|
@@ -4631,7 +4642,12 @@ export interface components {
|
|
|
4631
4642
|
};
|
|
4632
4643
|
PuzzleBatchSolveResponse: {
|
|
4633
4644
|
puzzles?: components["schemas"]["PuzzleAndGame"][];
|
|
4634
|
-
|
|
4645
|
+
glicko?: components["schemas"]["PuzzleGlicko"];
|
|
4646
|
+
rounds?: {
|
|
4647
|
+
id?: string;
|
|
4648
|
+
win?: boolean;
|
|
4649
|
+
ratingDiff?: number;
|
|
4650
|
+
}[];
|
|
4635
4651
|
};
|
|
4636
4652
|
PuzzleActivity: {
|
|
4637
4653
|
date: number;
|
|
@@ -4714,8 +4730,7 @@ export interface components {
|
|
|
4714
4730
|
id?: string;
|
|
4715
4731
|
/** @description User's flair icon */
|
|
4716
4732
|
flair?: string;
|
|
4717
|
-
|
|
4718
|
-
patron?: boolean;
|
|
4733
|
+
patron?: components["schemas"]["Patron"];
|
|
4719
4734
|
patronColor?: components["schemas"]["PatronColor"];
|
|
4720
4735
|
}[];
|
|
4721
4736
|
/** @description List of puzzles in the race */
|
|
@@ -5186,8 +5201,7 @@ export interface components {
|
|
|
5186
5201
|
name: string;
|
|
5187
5202
|
title?: components["schemas"]["Title"];
|
|
5188
5203
|
flair?: components["schemas"]["Flair"];
|
|
5189
|
-
|
|
5190
|
-
patron?: boolean;
|
|
5204
|
+
patron?: components["schemas"]["Patron"];
|
|
5191
5205
|
patronColor?: components["schemas"]["PatronColor"];
|
|
5192
5206
|
};
|
|
5193
5207
|
};
|
|
@@ -5799,8 +5813,7 @@ export interface components {
|
|
|
5799
5813
|
players?: {
|
|
5800
5814
|
name?: string;
|
|
5801
5815
|
title?: components["schemas"]["Title"];
|
|
5802
|
-
|
|
5803
|
-
patron?: boolean;
|
|
5816
|
+
patron?: components["schemas"]["Patron"];
|
|
5804
5817
|
patronColor?: components["schemas"]["PatronColor"];
|
|
5805
5818
|
flair?: components["schemas"]["Flair"];
|
|
5806
5819
|
rank?: number;
|
|
@@ -5837,8 +5850,7 @@ export interface components {
|
|
|
5837
5850
|
podium?: {
|
|
5838
5851
|
name?: string;
|
|
5839
5852
|
title?: components["schemas"]["Title"];
|
|
5840
|
-
|
|
5841
|
-
patron?: boolean;
|
|
5853
|
+
patron?: components["schemas"]["Patron"];
|
|
5842
5854
|
patronColor?: components["schemas"]["PatronColor"];
|
|
5843
5855
|
flair?: components["schemas"]["Flair"];
|
|
5844
5856
|
rank?: number;
|
|
@@ -6750,8 +6762,7 @@ export interface components {
|
|
|
6750
6762
|
rating?: number;
|
|
6751
6763
|
title?: components["schemas"]["Title"];
|
|
6752
6764
|
flair?: components["schemas"]["Flair"];
|
|
6753
|
-
|
|
6754
|
-
patron?: boolean;
|
|
6765
|
+
patron?: components["schemas"]["Patron"];
|
|
6755
6766
|
patronColor?: components["schemas"]["PatronColor"];
|
|
6756
6767
|
provisional?: boolean;
|
|
6757
6768
|
online?: boolean;
|
|
@@ -7699,8 +7710,7 @@ export interface operations {
|
|
|
7699
7710
|
online?: boolean;
|
|
7700
7711
|
playing?: boolean;
|
|
7701
7712
|
streaming?: boolean;
|
|
7702
|
-
|
|
7703
|
-
patron?: boolean;
|
|
7713
|
+
patron?: components["schemas"]["Patron"];
|
|
7704
7714
|
patronColor?: components["schemas"]["PatronColor"];
|
|
7705
7715
|
}[];
|
|
7706
7716
|
};
|
|
@@ -10625,52 +10635,111 @@ export interface operations {
|
|
|
10625
10635
|
* "puzzles": [
|
|
10626
10636
|
* {
|
|
10627
10637
|
* "game": {
|
|
10628
|
-
* "id": "
|
|
10638
|
+
* "id": "nevXElAg",
|
|
10629
10639
|
* "perf": {
|
|
10630
|
-
* "key": "
|
|
10631
|
-
* "name": "
|
|
10640
|
+
* "key": "rapid",
|
|
10641
|
+
* "name": "Rapid"
|
|
10632
10642
|
* },
|
|
10633
10643
|
* "rated": true,
|
|
10634
10644
|
* "players": [
|
|
10635
10645
|
* {
|
|
10636
|
-
* "name": "
|
|
10637
|
-
* "
|
|
10646
|
+
* "name": "Mary",
|
|
10647
|
+
* "flair": "people.person-gesturing-no-medium-skin-tone",
|
|
10648
|
+
* "patron": true,
|
|
10649
|
+
* "patronColor": 1,
|
|
10650
|
+
* "id": "mary",
|
|
10651
|
+
* "color": "white",
|
|
10652
|
+
* "rating": 1735
|
|
10653
|
+
* },
|
|
10654
|
+
* {
|
|
10655
|
+
* "name": "Benjamin",
|
|
10656
|
+
* "patron": true,
|
|
10657
|
+
* "patronColor": 1,
|
|
10658
|
+
* "id": "benjamin",
|
|
10659
|
+
* "color": "black",
|
|
10660
|
+
* "rating": 1913
|
|
10661
|
+
* }
|
|
10662
|
+
* ],
|
|
10663
|
+
* "pgn": "e4 e5 Nf3 Nc6 c4 Bc5 Nc3 d6 h3 Nf6 d3 Be6 Bg5 h6 Be3 Qd7 Bxc5 dxc5 Nb5 O-O Nc3 Rad8 a3 Rfe8 Be2 a6 Bf1 Qd6 Qc2 Nd4 Nxd4 cxd4 Ne2 Nxe4 dxe4 d3 Qd2 dxe2 Qxd6 exf1=Q+ Rxf1 Rxd6 c5 Rd4 f3 Red8 Rf2 Bb3 Ke2 Rd2+ Ke1 Rd1+ Rxd1 Rxd1+ Ke2 Rd4 Ke3 Kf8 f4 Rc4 fxe5 Rxc5 Kd4 Rc6 g4 Rc4+ Kd3 Ke7 Rf3 Rc6 Kd4 f6 exf6+ Rxf6 Rxb3 b6 e5 Rc6 Kd5 Rc5+ Ke4 Ke6 Kd4 Rxe5 Rc3 Rd5+ Ke4 Kd6 Rxc7 Re5+ Kf4",
|
|
10664
|
+
* "clock": "7+3"
|
|
10665
|
+
* },
|
|
10666
|
+
* "puzzle": {
|
|
10667
|
+
* "id": "EOkIT",
|
|
10668
|
+
* "rating": 1477,
|
|
10669
|
+
* "plays": 25406,
|
|
10670
|
+
* "solution": [
|
|
10671
|
+
* "g7g5",
|
|
10672
|
+
* "f4f3",
|
|
10673
|
+
* "d6c7"
|
|
10674
|
+
* ],
|
|
10675
|
+
* "themes": [
|
|
10676
|
+
* "endgame",
|
|
10677
|
+
* "short",
|
|
10678
|
+
* "crushing",
|
|
10679
|
+
* "rookEndgame"
|
|
10680
|
+
* ],
|
|
10681
|
+
* "initialPly": 90
|
|
10682
|
+
* }
|
|
10683
|
+
* },
|
|
10684
|
+
* {
|
|
10685
|
+
* "game": {
|
|
10686
|
+
* "id": "2McRXjBF",
|
|
10687
|
+
* "perf": {
|
|
10688
|
+
* "key": "rapid",
|
|
10689
|
+
* "name": "Rapid"
|
|
10690
|
+
* },
|
|
10691
|
+
* "rated": true,
|
|
10692
|
+
* "players": [
|
|
10693
|
+
* {
|
|
10694
|
+
* "name": "Monica",
|
|
10695
|
+
* "flair": "people.man-climbing-medium-light-skin-tone",
|
|
10696
|
+
* "patron": true,
|
|
10697
|
+
* "patronColor": 1,
|
|
10698
|
+
* "id": "monica",
|
|
10638
10699
|
* "color": "white",
|
|
10639
10700
|
* "rating": 2009
|
|
10640
10701
|
* },
|
|
10641
10702
|
* {
|
|
10642
|
-
* "name": "
|
|
10643
|
-
* "
|
|
10703
|
+
* "name": "Adriana",
|
|
10704
|
+
* "flair": "objects.control-knobs",
|
|
10705
|
+
* "id": "adriana",
|
|
10644
10706
|
* "color": "black",
|
|
10645
|
-
* "rating":
|
|
10707
|
+
* "rating": 2160
|
|
10646
10708
|
* }
|
|
10647
10709
|
* ],
|
|
10648
|
-
* "pgn": "
|
|
10649
|
-
* "clock": "
|
|
10710
|
+
* "pgn": "d4 Nf6 Bf4 g6 e3 Bg7 Nf3 d6 Nbd2 Nh5 Bg3 Nxg3 hxg3 Nd7 Bd3 e5 c3 Qe7 Qc2 f5 e4 fxe4 Bxe4 Nf6 dxe5 Nxe4 exd6 Nxd6+ Kf1 Bf5 Qa4+ Qd7 Re1+ Kd8 Qb3 c6 Kg1 Kc7 Nc4 Nxc4 Qxc4 h6 Kh2 Rae8 Rd1 Qe6 Qa4 Kb8 Nd4 Bxd4 Rxd4 Qe5 Rhd1 Qc7 b4 Re7 b5 c5 b6 Qxb6 Rd6 Qc7 Qf4 Bc8 Qf6 Rhh7 Qf8 h5 Qf4 h4 gxh4 Rd7 g3 Rxd6 Rxd6 Rd7 Rxd7 Qxf4 Rxb7+ Kxb7 gxf4 Bf5 Kg3 Kc6 Kf3 Kd5 Ke3 Kc4 Kd2 Bb1 Kc1 Bxa2 Kb2 Bb3 f5 Ba4 fxg6 Be8 g7 Bf7 h5 Kd5 h6 Bg8 Kb3 Ke4+ Ka4 Kf3 Kb5 c4 Kc5 Kxf2 Kd6 Ke3",
|
|
10711
|
+
* "clock": "10+0"
|
|
10650
10712
|
* },
|
|
10651
10713
|
* "puzzle": {
|
|
10652
|
-
* "id": "
|
|
10653
|
-
* "rating":
|
|
10654
|
-
* "plays":
|
|
10714
|
+
* "id": "4FvlW",
|
|
10715
|
+
* "rating": 1455,
|
|
10716
|
+
* "plays": 24948,
|
|
10655
10717
|
* "solution": [
|
|
10656
|
-
* "
|
|
10657
|
-
* "
|
|
10658
|
-
* "
|
|
10659
|
-
* "
|
|
10660
|
-
* "
|
|
10718
|
+
* "d6e7",
|
|
10719
|
+
* "e3d2",
|
|
10720
|
+
* "e7f8",
|
|
10721
|
+
* "g8h7",
|
|
10722
|
+
* "g7g8q",
|
|
10723
|
+
* "h7g8",
|
|
10724
|
+
* "f8g8"
|
|
10661
10725
|
* ],
|
|
10662
10726
|
* "themes": [
|
|
10727
|
+
* "veryLong",
|
|
10663
10728
|
* "endgame",
|
|
10664
|
-
* "
|
|
10665
|
-
* "
|
|
10666
|
-
* "
|
|
10667
|
-
* "
|
|
10668
|
-
* "sacrifice"
|
|
10729
|
+
* "advancedPawn",
|
|
10730
|
+
* "crushing",
|
|
10731
|
+
* "promotion",
|
|
10732
|
+
* "bishopEndgame"
|
|
10669
10733
|
* ],
|
|
10670
|
-
* "initialPly":
|
|
10734
|
+
* "initialPly": 113
|
|
10671
10735
|
* }
|
|
10672
10736
|
* }
|
|
10673
|
-
* ]
|
|
10737
|
+
* ],
|
|
10738
|
+
* "glicko": {
|
|
10739
|
+
* "rating": 1651,
|
|
10740
|
+
* "deviation": 117.45,
|
|
10741
|
+
* "provisional": true
|
|
10742
|
+
* }
|
|
10674
10743
|
* } */
|
|
10675
10744
|
"application/json": components["schemas"]["PuzzleBatchSelect"];
|
|
10676
10745
|
};
|
|
@@ -10715,51 +10784,105 @@ export interface operations {
|
|
|
10715
10784
|
* "puzzles": [
|
|
10716
10785
|
* {
|
|
10717
10786
|
* "game": {
|
|
10718
|
-
* "id": "
|
|
10787
|
+
* "id": "5LAUdzaW",
|
|
10719
10788
|
* "perf": {
|
|
10720
|
-
* "key": "
|
|
10721
|
-
* "name": "
|
|
10789
|
+
* "key": "rapid",
|
|
10790
|
+
* "name": "Rapid"
|
|
10722
10791
|
* },
|
|
10723
10792
|
* "rated": true,
|
|
10724
10793
|
* "players": [
|
|
10725
10794
|
* {
|
|
10726
|
-
* "name": "
|
|
10727
|
-
* "
|
|
10795
|
+
* "name": "Luis",
|
|
10796
|
+
* "flair": "people.woman-office-worker-medium-light-skin-tone",
|
|
10797
|
+
* "id": "luis",
|
|
10728
10798
|
* "color": "white",
|
|
10729
|
-
* "rating":
|
|
10799
|
+
* "rating": 1913
|
|
10730
10800
|
* },
|
|
10731
10801
|
* {
|
|
10732
|
-
* "name": "
|
|
10733
|
-
* "id": "
|
|
10802
|
+
* "name": "Aleksandr",
|
|
10803
|
+
* "id": "aleksandr",
|
|
10734
10804
|
* "color": "black",
|
|
10735
|
-
* "rating":
|
|
10805
|
+
* "rating": 1916
|
|
10736
10806
|
* }
|
|
10737
10807
|
* ],
|
|
10738
|
-
* "pgn": "e4 c5
|
|
10739
|
-
* "clock": "
|
|
10808
|
+
* "pgn": "e4 c5 d4 cxd4 c3 dxc3 Nxc3 e6 Nf3 Ne7 Bf4 Nbc6",
|
|
10809
|
+
* "clock": "10+0"
|
|
10740
10810
|
* },
|
|
10741
10811
|
* "puzzle": {
|
|
10742
|
-
* "id": "
|
|
10743
|
-
* "rating":
|
|
10744
|
-
* "plays":
|
|
10812
|
+
* "id": "3WB9V",
|
|
10813
|
+
* "rating": 1726,
|
|
10814
|
+
* "plays": 11775,
|
|
10745
10815
|
* "solution": [
|
|
10746
|
-
* "
|
|
10747
|
-
* "
|
|
10748
|
-
* "
|
|
10749
|
-
* "f6e6",
|
|
10750
|
-
* "e4c5"
|
|
10816
|
+
* "c3b5",
|
|
10817
|
+
* "e7d5",
|
|
10818
|
+
* "e4d5"
|
|
10751
10819
|
* ],
|
|
10752
10820
|
* "themes": [
|
|
10753
|
-
* "
|
|
10821
|
+
* "opening",
|
|
10754
10822
|
* "advantage",
|
|
10755
|
-
* "
|
|
10823
|
+
* "short"
|
|
10824
|
+
* ],
|
|
10825
|
+
* "initialPly": 11
|
|
10826
|
+
* }
|
|
10827
|
+
* },
|
|
10828
|
+
* {
|
|
10829
|
+
* "game": {
|
|
10830
|
+
* "id": "UdS7n09e",
|
|
10831
|
+
* "perf": {
|
|
10832
|
+
* "key": "classical",
|
|
10833
|
+
* "name": "Classical"
|
|
10834
|
+
* },
|
|
10835
|
+
* "rated": true,
|
|
10836
|
+
* "players": [
|
|
10837
|
+
* {
|
|
10838
|
+
* "name": "Ekaterina",
|
|
10839
|
+
* "title": "WGM",
|
|
10840
|
+
* "id": "ekaterina",
|
|
10841
|
+
* "color": "white",
|
|
10842
|
+
* "rating": 1729
|
|
10843
|
+
* },
|
|
10844
|
+
* {
|
|
10845
|
+
* "name": "Elena",
|
|
10846
|
+
* "title": "WGM",
|
|
10847
|
+
* "flair": "people.man-with-veil-medium-dark-skin-tone",
|
|
10848
|
+
* "id": "elena",
|
|
10849
|
+
* "color": "black",
|
|
10850
|
+
* "rating": 1708
|
|
10851
|
+
* }
|
|
10852
|
+
* ],
|
|
10853
|
+
* "pgn": "d4 d5 c4 e6 Nc3 f5 Bf4 c6 e3 Nf6 Bd3 Bd6 Bg3 O-O Qc2 h6 Nf3 Bc7 O-O Nbd7 Rac1 Ne4 Bxe4 fxe4 Bxc7 Qxc7 Nd2 Nf6 cxd5 exd5 f3 exf3 Rxf3 Ng4 Rxf8+ Kxf8 Rf1+ Kg8 g3",
|
|
10854
|
+
* "clock": "30+30"
|
|
10855
|
+
* },
|
|
10856
|
+
* "puzzle": {
|
|
10857
|
+
* "id": "6f8Qu",
|
|
10858
|
+
* "rating": 1700,
|
|
10859
|
+
* "plays": 5438,
|
|
10860
|
+
* "solution": [
|
|
10861
|
+
* "g4e3",
|
|
10862
|
+
* "c3d5",
|
|
10863
|
+
* "e3d5"
|
|
10864
|
+
* ],
|
|
10865
|
+
* "themes": [
|
|
10866
|
+
* "middlegame",
|
|
10756
10867
|
* "fork",
|
|
10757
|
-
* "
|
|
10758
|
-
* "
|
|
10868
|
+
* "short",
|
|
10869
|
+
* "crushing"
|
|
10759
10870
|
* ],
|
|
10760
|
-
* "initialPly":
|
|
10871
|
+
* "initialPly": 38
|
|
10761
10872
|
* }
|
|
10762
10873
|
* }
|
|
10874
|
+
* ],
|
|
10875
|
+
* "glicko": {
|
|
10876
|
+
* "rating": 1670.49,
|
|
10877
|
+
* "deviation": 112.71,
|
|
10878
|
+
* "provisional": true
|
|
10879
|
+
* },
|
|
10880
|
+
* "rounds": [
|
|
10881
|
+
* {
|
|
10882
|
+
* "id": "EOkIT",
|
|
10883
|
+
* "win": true,
|
|
10884
|
+
* "ratingDiff": 19
|
|
10885
|
+
* }
|
|
10763
10886
|
* ]
|
|
10764
10887
|
* } */
|
|
10765
10888
|
"application/json": components["schemas"]["PuzzleBatchSolveResponse"];
|
|
@@ -19925,6 +20048,7 @@ export interface operations {
|
|
|
19925
20048
|
title?: components["schemas"]["Title"];
|
|
19926
20049
|
team?: string;
|
|
19927
20050
|
flair?: components["schemas"]["Flair"];
|
|
20051
|
+
patronColor?: components["schemas"]["PatronColor"];
|
|
19928
20052
|
sheet?: components["schemas"]["ArenaSheet"];
|
|
19929
20053
|
};
|
|
19930
20054
|
};
|