@lichess-org/types 2.0.96 → 2.0.98
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 +189 -53
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -4619,8 +4619,14 @@ export interface components {
|
|
|
4619
4619
|
themes: string[];
|
|
4620
4620
|
};
|
|
4621
4621
|
};
|
|
4622
|
+
PuzzleGlicko: {
|
|
4623
|
+
rating?: number;
|
|
4624
|
+
deviation?: number;
|
|
4625
|
+
provisional?: boolean;
|
|
4626
|
+
};
|
|
4622
4627
|
PuzzleBatchSelect: {
|
|
4623
4628
|
puzzles?: components["schemas"]["PuzzleAndGame"][];
|
|
4629
|
+
glicko?: components["schemas"]["PuzzleGlicko"];
|
|
4624
4630
|
};
|
|
4625
4631
|
PuzzleBatchSolveRequest: {
|
|
4626
4632
|
solutions?: {
|
|
@@ -4631,7 +4637,12 @@ export interface components {
|
|
|
4631
4637
|
};
|
|
4632
4638
|
PuzzleBatchSolveResponse: {
|
|
4633
4639
|
puzzles?: components["schemas"]["PuzzleAndGame"][];
|
|
4634
|
-
|
|
4640
|
+
glicko?: components["schemas"]["PuzzleGlicko"];
|
|
4641
|
+
rounds?: {
|
|
4642
|
+
id?: string;
|
|
4643
|
+
win?: boolean;
|
|
4644
|
+
ratingDiff?: number;
|
|
4645
|
+
}[];
|
|
4635
4646
|
};
|
|
4636
4647
|
PuzzleActivity: {
|
|
4637
4648
|
date: number;
|
|
@@ -7622,7 +7633,13 @@ export interface components {
|
|
|
7622
7633
|
};
|
|
7623
7634
|
};
|
|
7624
7635
|
responses: never;
|
|
7625
|
-
parameters:
|
|
7636
|
+
parameters: {
|
|
7637
|
+
/**
|
|
7638
|
+
* @description Only update the provided fields, leaving others unchanged
|
|
7639
|
+
* @example true
|
|
7640
|
+
*/
|
|
7641
|
+
PatchQuery: boolean;
|
|
7642
|
+
};
|
|
7626
7643
|
requestBodies: never;
|
|
7627
7644
|
headers: never;
|
|
7628
7645
|
pathItems: never;
|
|
@@ -10619,52 +10636,111 @@ export interface operations {
|
|
|
10619
10636
|
* "puzzles": [
|
|
10620
10637
|
* {
|
|
10621
10638
|
* "game": {
|
|
10622
|
-
* "id": "
|
|
10639
|
+
* "id": "nevXElAg",
|
|
10640
|
+
* "perf": {
|
|
10641
|
+
* "key": "rapid",
|
|
10642
|
+
* "name": "Rapid"
|
|
10643
|
+
* },
|
|
10644
|
+
* "rated": true,
|
|
10645
|
+
* "players": [
|
|
10646
|
+
* {
|
|
10647
|
+
* "name": "Mary",
|
|
10648
|
+
* "flair": "people.person-gesturing-no-medium-skin-tone",
|
|
10649
|
+
* "patron": true,
|
|
10650
|
+
* "patronColor": 1,
|
|
10651
|
+
* "id": "mary",
|
|
10652
|
+
* "color": "white",
|
|
10653
|
+
* "rating": 1735
|
|
10654
|
+
* },
|
|
10655
|
+
* {
|
|
10656
|
+
* "name": "Benjamin",
|
|
10657
|
+
* "patron": true,
|
|
10658
|
+
* "patronColor": 1,
|
|
10659
|
+
* "id": "benjamin",
|
|
10660
|
+
* "color": "black",
|
|
10661
|
+
* "rating": 1913
|
|
10662
|
+
* }
|
|
10663
|
+
* ],
|
|
10664
|
+
* "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",
|
|
10665
|
+
* "clock": "7+3"
|
|
10666
|
+
* },
|
|
10667
|
+
* "puzzle": {
|
|
10668
|
+
* "id": "EOkIT",
|
|
10669
|
+
* "rating": 1477,
|
|
10670
|
+
* "plays": 25406,
|
|
10671
|
+
* "solution": [
|
|
10672
|
+
* "g7g5",
|
|
10673
|
+
* "f4f3",
|
|
10674
|
+
* "d6c7"
|
|
10675
|
+
* ],
|
|
10676
|
+
* "themes": [
|
|
10677
|
+
* "endgame",
|
|
10678
|
+
* "short",
|
|
10679
|
+
* "crushing",
|
|
10680
|
+
* "rookEndgame"
|
|
10681
|
+
* ],
|
|
10682
|
+
* "initialPly": 90
|
|
10683
|
+
* }
|
|
10684
|
+
* },
|
|
10685
|
+
* {
|
|
10686
|
+
* "game": {
|
|
10687
|
+
* "id": "2McRXjBF",
|
|
10623
10688
|
* "perf": {
|
|
10624
|
-
* "key": "
|
|
10625
|
-
* "name": "
|
|
10689
|
+
* "key": "rapid",
|
|
10690
|
+
* "name": "Rapid"
|
|
10626
10691
|
* },
|
|
10627
10692
|
* "rated": true,
|
|
10628
10693
|
* "players": [
|
|
10629
10694
|
* {
|
|
10630
|
-
* "name": "
|
|
10631
|
-
* "
|
|
10695
|
+
* "name": "Monica",
|
|
10696
|
+
* "flair": "people.man-climbing-medium-light-skin-tone",
|
|
10697
|
+
* "patron": true,
|
|
10698
|
+
* "patronColor": 1,
|
|
10699
|
+
* "id": "monica",
|
|
10632
10700
|
* "color": "white",
|
|
10633
10701
|
* "rating": 2009
|
|
10634
10702
|
* },
|
|
10635
10703
|
* {
|
|
10636
|
-
* "name": "
|
|
10637
|
-
* "
|
|
10704
|
+
* "name": "Adriana",
|
|
10705
|
+
* "flair": "objects.control-knobs",
|
|
10706
|
+
* "id": "adriana",
|
|
10638
10707
|
* "color": "black",
|
|
10639
|
-
* "rating":
|
|
10708
|
+
* "rating": 2160
|
|
10640
10709
|
* }
|
|
10641
10710
|
* ],
|
|
10642
|
-
* "pgn": "
|
|
10643
|
-
* "clock": "
|
|
10711
|
+
* "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",
|
|
10712
|
+
* "clock": "10+0"
|
|
10644
10713
|
* },
|
|
10645
10714
|
* "puzzle": {
|
|
10646
|
-
* "id": "
|
|
10647
|
-
* "rating":
|
|
10648
|
-
* "plays":
|
|
10715
|
+
* "id": "4FvlW",
|
|
10716
|
+
* "rating": 1455,
|
|
10717
|
+
* "plays": 24948,
|
|
10649
10718
|
* "solution": [
|
|
10650
|
-
* "
|
|
10651
|
-
* "
|
|
10652
|
-
* "
|
|
10653
|
-
* "
|
|
10654
|
-
* "
|
|
10719
|
+
* "d6e7",
|
|
10720
|
+
* "e3d2",
|
|
10721
|
+
* "e7f8",
|
|
10722
|
+
* "g8h7",
|
|
10723
|
+
* "g7g8q",
|
|
10724
|
+
* "h7g8",
|
|
10725
|
+
* "f8g8"
|
|
10655
10726
|
* ],
|
|
10656
10727
|
* "themes": [
|
|
10728
|
+
* "veryLong",
|
|
10657
10729
|
* "endgame",
|
|
10658
|
-
* "
|
|
10659
|
-
* "
|
|
10660
|
-
* "
|
|
10661
|
-
* "
|
|
10662
|
-
* "sacrifice"
|
|
10730
|
+
* "advancedPawn",
|
|
10731
|
+
* "crushing",
|
|
10732
|
+
* "promotion",
|
|
10733
|
+
* "bishopEndgame"
|
|
10663
10734
|
* ],
|
|
10664
|
-
* "initialPly":
|
|
10735
|
+
* "initialPly": 113
|
|
10665
10736
|
* }
|
|
10666
10737
|
* }
|
|
10667
|
-
* ]
|
|
10738
|
+
* ],
|
|
10739
|
+
* "glicko": {
|
|
10740
|
+
* "rating": 1651,
|
|
10741
|
+
* "deviation": 117.45,
|
|
10742
|
+
* "provisional": true
|
|
10743
|
+
* }
|
|
10668
10744
|
* } */
|
|
10669
10745
|
"application/json": components["schemas"]["PuzzleBatchSelect"];
|
|
10670
10746
|
};
|
|
@@ -10709,51 +10785,105 @@ export interface operations {
|
|
|
10709
10785
|
* "puzzles": [
|
|
10710
10786
|
* {
|
|
10711
10787
|
* "game": {
|
|
10712
|
-
* "id": "
|
|
10788
|
+
* "id": "5LAUdzaW",
|
|
10713
10789
|
* "perf": {
|
|
10714
|
-
* "key": "
|
|
10715
|
-
* "name": "
|
|
10790
|
+
* "key": "rapid",
|
|
10791
|
+
* "name": "Rapid"
|
|
10716
10792
|
* },
|
|
10717
10793
|
* "rated": true,
|
|
10718
10794
|
* "players": [
|
|
10719
10795
|
* {
|
|
10720
|
-
* "name": "
|
|
10721
|
-
* "
|
|
10796
|
+
* "name": "Luis",
|
|
10797
|
+
* "flair": "people.woman-office-worker-medium-light-skin-tone",
|
|
10798
|
+
* "id": "luis",
|
|
10722
10799
|
* "color": "white",
|
|
10723
|
-
* "rating":
|
|
10800
|
+
* "rating": 1913
|
|
10724
10801
|
* },
|
|
10725
10802
|
* {
|
|
10726
|
-
* "name": "
|
|
10727
|
-
* "id": "
|
|
10803
|
+
* "name": "Aleksandr",
|
|
10804
|
+
* "id": "aleksandr",
|
|
10728
10805
|
* "color": "black",
|
|
10729
|
-
* "rating":
|
|
10806
|
+
* "rating": 1916
|
|
10730
10807
|
* }
|
|
10731
10808
|
* ],
|
|
10732
|
-
* "pgn": "e4 c5
|
|
10733
|
-
* "clock": "
|
|
10809
|
+
* "pgn": "e4 c5 d4 cxd4 c3 dxc3 Nxc3 e6 Nf3 Ne7 Bf4 Nbc6",
|
|
10810
|
+
* "clock": "10+0"
|
|
10734
10811
|
* },
|
|
10735
10812
|
* "puzzle": {
|
|
10736
|
-
* "id": "
|
|
10737
|
-
* "rating":
|
|
10738
|
-
* "plays":
|
|
10813
|
+
* "id": "3WB9V",
|
|
10814
|
+
* "rating": 1726,
|
|
10815
|
+
* "plays": 11775,
|
|
10739
10816
|
* "solution": [
|
|
10740
|
-
* "
|
|
10741
|
-
* "
|
|
10742
|
-
* "
|
|
10743
|
-
* "f6e6",
|
|
10744
|
-
* "e4c5"
|
|
10817
|
+
* "c3b5",
|
|
10818
|
+
* "e7d5",
|
|
10819
|
+
* "e4d5"
|
|
10745
10820
|
* ],
|
|
10746
10821
|
* "themes": [
|
|
10747
|
-
* "
|
|
10822
|
+
* "opening",
|
|
10748
10823
|
* "advantage",
|
|
10749
|
-
* "
|
|
10824
|
+
* "short"
|
|
10825
|
+
* ],
|
|
10826
|
+
* "initialPly": 11
|
|
10827
|
+
* }
|
|
10828
|
+
* },
|
|
10829
|
+
* {
|
|
10830
|
+
* "game": {
|
|
10831
|
+
* "id": "UdS7n09e",
|
|
10832
|
+
* "perf": {
|
|
10833
|
+
* "key": "classical",
|
|
10834
|
+
* "name": "Classical"
|
|
10835
|
+
* },
|
|
10836
|
+
* "rated": true,
|
|
10837
|
+
* "players": [
|
|
10838
|
+
* {
|
|
10839
|
+
* "name": "Ekaterina",
|
|
10840
|
+
* "title": "WGM",
|
|
10841
|
+
* "id": "ekaterina",
|
|
10842
|
+
* "color": "white",
|
|
10843
|
+
* "rating": 1729
|
|
10844
|
+
* },
|
|
10845
|
+
* {
|
|
10846
|
+
* "name": "Elena",
|
|
10847
|
+
* "title": "WGM",
|
|
10848
|
+
* "flair": "people.man-with-veil-medium-dark-skin-tone",
|
|
10849
|
+
* "id": "elena",
|
|
10850
|
+
* "color": "black",
|
|
10851
|
+
* "rating": 1708
|
|
10852
|
+
* }
|
|
10853
|
+
* ],
|
|
10854
|
+
* "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",
|
|
10855
|
+
* "clock": "30+30"
|
|
10856
|
+
* },
|
|
10857
|
+
* "puzzle": {
|
|
10858
|
+
* "id": "6f8Qu",
|
|
10859
|
+
* "rating": 1700,
|
|
10860
|
+
* "plays": 5438,
|
|
10861
|
+
* "solution": [
|
|
10862
|
+
* "g4e3",
|
|
10863
|
+
* "c3d5",
|
|
10864
|
+
* "e3d5"
|
|
10865
|
+
* ],
|
|
10866
|
+
* "themes": [
|
|
10867
|
+
* "middlegame",
|
|
10750
10868
|
* "fork",
|
|
10751
|
-
* "
|
|
10752
|
-
* "
|
|
10869
|
+
* "short",
|
|
10870
|
+
* "crushing"
|
|
10753
10871
|
* ],
|
|
10754
|
-
* "initialPly":
|
|
10872
|
+
* "initialPly": 38
|
|
10755
10873
|
* }
|
|
10756
10874
|
* }
|
|
10875
|
+
* ],
|
|
10876
|
+
* "glicko": {
|
|
10877
|
+
* "rating": 1670.49,
|
|
10878
|
+
* "deviation": 112.71,
|
|
10879
|
+
* "provisional": true
|
|
10880
|
+
* },
|
|
10881
|
+
* "rounds": [
|
|
10882
|
+
* {
|
|
10883
|
+
* "id": "EOkIT",
|
|
10884
|
+
* "win": true,
|
|
10885
|
+
* "ratingDiff": 19
|
|
10886
|
+
* }
|
|
10757
10887
|
* ]
|
|
10758
10888
|
* } */
|
|
10759
10889
|
"application/json": components["schemas"]["PuzzleBatchSolveResponse"];
|
|
@@ -32497,7 +32627,13 @@ export interface operations {
|
|
|
32497
32627
|
};
|
|
32498
32628
|
broadcastRoundUpdate: {
|
|
32499
32629
|
parameters: {
|
|
32500
|
-
query?:
|
|
32630
|
+
query?: {
|
|
32631
|
+
/**
|
|
32632
|
+
* @description Only update the provided fields, leaving others unchanged
|
|
32633
|
+
* @example true
|
|
32634
|
+
*/
|
|
32635
|
+
patch?: components["parameters"]["PatchQuery"];
|
|
32636
|
+
};
|
|
32501
32637
|
header?: never;
|
|
32502
32638
|
path: {
|
|
32503
32639
|
/** @description The broadcast round ID */
|
|
@@ -35915,7 +36051,7 @@ export interface operations {
|
|
|
35915
36051
|
"application/json": {
|
|
35916
36052
|
id: string;
|
|
35917
36053
|
};
|
|
35918
|
-
"application/x-ndjson":
|
|
36054
|
+
"application/x-ndjson": "";
|
|
35919
36055
|
};
|
|
35920
36056
|
};
|
|
35921
36057
|
/** @description The creation of the seek failed. */
|