@lichess-org/types 2.0.97 → 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.
Files changed (2) hide show
  1. package/lichess-api.d.ts +174 -50
  2. 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
- rounds?: unknown[];
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;
@@ -10625,52 +10636,111 @@ export interface operations {
10625
10636
  * "puzzles": [
10626
10637
  * {
10627
10638
  * "game": {
10628
- * "id": "oXmU07Il",
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",
10629
10688
  * "perf": {
10630
- * "key": "blitz",
10631
- * "name": "Blitz"
10689
+ * "key": "rapid",
10690
+ * "name": "Rapid"
10632
10691
  * },
10633
10692
  * "rated": true,
10634
10693
  * "players": [
10635
10694
  * {
10636
- * "name": "paximi",
10637
- * "id": "paximi",
10695
+ * "name": "Monica",
10696
+ * "flair": "people.man-climbing-medium-light-skin-tone",
10697
+ * "patron": true,
10698
+ * "patronColor": 1,
10699
+ * "id": "monica",
10638
10700
  *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kb3 Ke4+ Ka4 Kf3 Kb5 c4 Kc5 Kxf2 Kd6 Ke3",
10712
+ * "clock": "10+0"
10650
10713
  * },
10651
10714
  * "puzzle": {
10652
- * "id": "hFFk9",
10653
- * "rating": 1733,
10654
- * "plays": 469,
10715
+ * "id": "4FvlW",
10716
+ * "rating": 1455,
10717
+ * "plays": 24948,
10655
10718
  * "solution": [
10656
- * "c1c5",
10657
- * "c8c5",
10658
- * "d2e4",
10659
- * "f6e6",
10660
- * "e4c5"
10719
+ * "d6e7",
10720
+ * "e3d2",
10721
+ * "e7f8",
10722
+ * "g8h7",
10723
+ * "g7g8q",
10724
+ * "h7g8",
10725
+ * "f8g8"
10661
10726
  * ],
10662
10727
  * "themes": [
10728
+ * "veryLong",
10663
10729
  * "endgame",
10664
- * "advantage",
10665
- * "attraction",
10666
- * "fork",
10667
- * "long",
10668
- * "sacrifice"
10730
+ * "advancedPawn",
10731
+ * "crushing",
10732
+ * "promotion",
10733
+ * "bishopEndgame"
10669
10734
  * ],
10670
- * "initialPly": 63
10735
+ * "initialPly": 113
10671
10736
  * }
10672
10737
  * }
10673
- * ]
10738
+ * ],
10739
+ * "glicko": {
10740
+ * "rating": 1651,
10741
+ * "deviation": 117.45,
10742
+ * "provisional": true
10743
+ * }
10674
10744
  * } */
10675
10745
  "application/json": components["schemas"]["PuzzleBatchSelect"];
10676
10746
  };
@@ -10715,51 +10785,105 @@ export interface operations {
10715
10785
  * "puzzles": [
10716
10786
  * {
10717
10787
  * "game": {
10718
- * "id": "oXmU07Il",
10788
+ * "id": "5LAUdzaW",
10719
10789
  * "perf": {
10720
- * "key": "blitz",
10721
- * "name": "Blitz"
10790
+ * "key": "rapid",
10791
+ * "name": "Rapid"
10722
10792
  * },
10723
10793
  * "rated": true,
10724
10794
  * "players": [
10725
10795
  * {
10726
- * "name": "paximi",
10727
- * "id": "paximi",
10796
+ * "name": "Luis",
10797
+ * "flair": "people.woman-office-worker-medium-light-skin-tone",
10798
+ * "id": "luis",
10728
10799
  * "color": "white",
10729
- * "rating": 2009
10800
+ * "rating": 1913
10730
10801
  * },
10731
10802
  * {
10732
- * "name": "Patteblomquist",
10733
- * "id": "patteblomquist",
10803
+ * "name": "Aleksandr",
10804
+ * "id": "aleksandr",
10734
10805
  * "color": "black",
10735
- * "rating": 2000
10806
+ * "rating": 1916
10736
10807
  * }
10737
10808
  * ],
10738
- * "pgn": "e4 c5 Nf3 d6 d4 cxd4 Nxd4 Nf6 Nc3 a6 f3 e5 Nb3 Be6 Be3 Be7 Nd5 Nxd5 exd5 Bf5 Bd3 Bxd3 Qxd3 Nd7 Qd2 h5 O-O Rc8 Na5 Qc7 c4 Nc5 b4 Nd7 Rac1 f5 Rfd1 f4 Bf2 h4 c5 h3 Nc4 dxc5 bxc5 Bxc5 Bxc5 Qxc5+ Kh1 hxg2+ Kxg2 Qe7 d6 Qh4 Kh1 Qh3 Qg2 Qxg2+ Kxg2 Kf7 Re1 Kf6 Nd2 Nc5",
10739
- * "clock": "3+2"
10809
+ * "pgn": "e4 c5 d4 cxd4 c3 dxc3 Nxc3 e6 Nf3 Ne7 Bf4 Nbc6",
10810
+ * "clock": "10+0"
10740
10811
  * },
10741
10812
  * "puzzle": {
10742
- * "id": "hFFk9",
10743
- * "rating": 1733,
10744
- * "plays": 469,
10813
+ * "id": "3WB9V",
10814
+ * "rating": 1726,
10815
+ * "plays": 11775,
10745
10816
  * "solution": [
10746
- * "c1c5",
10747
- * "c8c5",
10748
- * "d2e4",
10749
- * "f6e6",
10750
- * "e4c5"
10817
+ * "c3b5",
10818
+ * "e7d5",
10819
+ * "e4d5"
10751
10820
  * ],
10752
10821
  * "themes": [
10753
- * "endgame",
10822
+ * "opening",
10754
10823
  * "advantage",
10755
- * "attraction",
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",
10756
10868
  * "fork",
10757
- * "long",
10758
- * "sacrifice"
10869
+ * "short",
10870
+ * "crushing"
10759
10871
  * ],
10760
- * "initialPly": 63
10872
+ * "initialPly": 38
10761
10873
  * }
10762
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
+ * }
10763
10887
  * ]
10764
10888
  * } */
10765
10889
  "application/json": components["schemas"]["PuzzleBatchSolveResponse"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.97",
3
+ "version": "2.0.98",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",