@lichess-org/types 2.0.37 → 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.
Files changed (2) hide show
  1. package/lichess-api.d.ts +2 -168
  2. 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 */
@@ -13827,7 +13662,7 @@ export interface operations {
13827
13662
  parameters: {
13828
13663
  query: {
13829
13664
  /** @description Must be `code`. */
13830
- response_type: string;
13665
+ response_type: "code";
13831
13666
  /**
13832
13667
  * @description Arbitrary identifier that uniquely identifies your application.
13833
13668
  * @example example.com
@@ -13836,7 +13671,7 @@ export interface operations {
13836
13671
  /** @description The absolute URL that the user should be redirected to with the authorization result. */
13837
13672
  redirect_uri: string;
13838
13673
  /** @description Must be `S256`. */
13839
- code_challenge_method: string;
13674
+ code_challenge_method: "S256";
13840
13675
  /** @description Compute `BASE64URL(SHA256(code_verifier))`. */
13841
13676
  code_challenge: string;
13842
13677
  /** @description Space separated list of requested OAuth scopes, if any. */
@@ -13958,7 +13793,6 @@ export interface operations {
13958
13793
  /** @description OAuth tokens separated by commas. Up to 1000. */
13959
13794
  requestBody: {
13960
13795
  content: {
13961
- /** @example lip_AvsS88TozFeSMEaoLN5c,lip_badToken */
13962
13796
  "text/plain": string;
13963
13797
  };
13964
13798
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.37",
3
+ "version": "2.0.38",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",