@lichess-org/types 2.0.17 → 2.0.19

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 +99 -13
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -3834,7 +3834,7 @@ export interface components {
3834
3834
  */
3835
3835
  dsbRating?: number;
3836
3836
  /** @example github.com/ornicar
3837
- * twitter.com/ornicar */
3837
+ * mas.to/@thibault */
3838
3838
  links?: string;
3839
3839
  };
3840
3840
  PlayTime: {
@@ -5710,19 +5710,60 @@ export interface components {
5710
5710
  /** @example {
5711
5711
  * "chapters": [
5712
5712
  * {
5713
- * "id": "WTvnkWAL",
5714
- * "name": "Game 2"
5713
+ * "id": "iBjmYBya",
5714
+ * "name": "test 2",
5715
+ * "players": [
5716
+ * {
5717
+ * "name": "Carlsen, Magnus",
5718
+ * "rating": 2837
5719
+ * },
5720
+ * {
5721
+ * "name": "Chadaev, Nikolay",
5722
+ * "rating": 2580
5723
+ * }
5724
+ * ],
5725
+ * "status": "1-0"
5715
5726
  * }
5716
5727
  * ]
5717
5728
  * } */
5718
- StudyImportPgnChapters: unknown;
5729
+ StudyImportPgnChapters: {
5730
+ chapters?: {
5731
+ /** @description The chapter ID */
5732
+ id?: string;
5733
+ /** @description The chapter name */
5734
+ name?: string;
5735
+ players?: {
5736
+ /** @description The player name */
5737
+ name?: string | null;
5738
+ /** @description The player rating */
5739
+ rating?: number;
5740
+ }[];
5741
+ /** @description The chapter status */
5742
+ status?: string;
5743
+ }[];
5744
+ };
5719
5745
  /** @example {
5720
5746
  * "id": "WTvnkWAL",
5721
5747
  * "name": "Guess the move",
5722
5748
  * "createdAt": 1463756350225,
5723
5749
  * "updatedAt": 1469965025205
5724
5750
  * } */
5725
- StudyMetadata: unknown;
5751
+ StudyMetadata: {
5752
+ /** @description The study ID */
5753
+ id?: string;
5754
+ /** @description The study name */
5755
+ name?: string;
5756
+ /**
5757
+ * Format: int64
5758
+ * @description The study creation date
5759
+ */
5760
+ createdAt?: number;
5761
+ /**
5762
+ * Format: int64
5763
+ * @description The study last update date
5764
+ */
5765
+ updatedAt?: number;
5766
+ };
5726
5767
  BroadcastTour: {
5727
5768
  id: string;
5728
5769
  name: string;
@@ -5797,7 +5838,8 @@ export interface components {
5797
5838
  startsAt?: number;
5798
5839
  /** @description The start date/time is unknown and the round will start automatically when the previous round completes */
5799
5840
  startsAfterPrevious?: boolean;
5800
- finished?: boolean;
5841
+ /** Format: int64 */
5842
+ finishedAt?: number;
5801
5843
  /** Format: uri */
5802
5844
  url: string;
5803
5845
  /** Format: int64 */
@@ -6148,8 +6190,9 @@ export interface components {
6148
6190
  * "name": "Round 1",
6149
6191
  * "slug": "round-1",
6150
6192
  * "createdAt": 1716014105255,
6151
- * "ongoing": true,
6193
+ * "ongoing": false,
6152
6194
  * "startsAt": 1716045300000,
6195
+ * "finishedAt": 1716062100000,
6153
6196
  * "url": "https://lichess.org/broadcast/casablanca-chess-2024/round-1/p9DoebWl"
6154
6197
  * },
6155
6198
  * "tour": {
@@ -6997,6 +7040,38 @@ export interface components {
6997
7040
  * "scheduledAt": 1612203514628
6998
7041
  * } */
6999
7042
  BulkPairing: unknown;
7043
+ /** @example {
7044
+ * "depth": 29,
7045
+ * "fen": "r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R",
7046
+ * "knodes": 106325,
7047
+ * "pvs": [
7048
+ * {
7049
+ * "cp": 41,
7050
+ * "moves": "d1e2 d8e7 a2a4 a7a6 b5c4 d7d6 d2d3 g8f6 c1e3 c6a5"
7051
+ * },
7052
+ * {
7053
+ * "cp": 39,
7054
+ * "moves": "c2c3 a7a6 b5a4 g8f6 d2d3 b7b5 a4b3 h7h6 a2a4 c8b7"
7055
+ * },
7056
+ * {
7057
+ * "cp": 37,
7058
+ * "moves": "d2d3 d8f6 c2c3 a7a6 b5a4 f8c5 d3d4 c5a7 c1e3 g8e7"
7059
+ * }
7060
+ * ]
7061
+ * } */
7062
+ CloudEval: {
7063
+ depth?: number;
7064
+ fen?: string;
7065
+ knodes?: number;
7066
+ pvs?: {
7067
+ /** @description Evaluation in centi-pawns, from White's point of view */
7068
+ cp?: number;
7069
+ /** @description Evaluation in moves to mate, from White's point of view */
7070
+ mate?: number;
7071
+ /** @description Variation in UCI notation */
7072
+ moves?: string;
7073
+ }[];
7074
+ };
7000
7075
  /**
7001
7076
  * @default chess
7002
7077
  * @example chess
@@ -8465,7 +8540,18 @@ export interface operations {
8465
8540
  [name: string]: unknown;
8466
8541
  };
8467
8542
  content: {
8468
- "application/json": unknown;
8543
+ "application/json": {
8544
+ /**
8545
+ * @description The game ID
8546
+ * @example R6iLjwz5
8547
+ */
8548
+ id?: string;
8549
+ /**
8550
+ * Format: uri
8551
+ * @description The game URL
8552
+ */
8553
+ url?: string;
8554
+ };
8469
8555
  };
8470
8556
  };
8471
8557
  };
@@ -10276,7 +10362,7 @@ export interface operations {
10276
10362
  requestBody?: never;
10277
10363
  responses: {
10278
10364
  /** @description The study headers. */
10279
- 200: {
10365
+ 204: {
10280
10366
  headers: {
10281
10367
  "Access-Control-Allow-Origin"?: string;
10282
10368
  "Last-Modified"?: string;
@@ -10402,7 +10488,7 @@ export interface operations {
10402
10488
  [name: string]: unknown;
10403
10489
  };
10404
10490
  content: {
10405
- "application/x-ndjson": components["schemas"]["StudyMetadata"][];
10491
+ "application/x-ndjson": components["schemas"]["StudyMetadata"];
10406
10492
  };
10407
10493
  };
10408
10494
  };
@@ -10484,7 +10570,7 @@ export interface operations {
10484
10570
  [name: string]: unknown;
10485
10571
  };
10486
10572
  content: {
10487
- "application/x-ndjson": components["schemas"]["BroadcastTop"];
10573
+ "application/json": components["schemas"]["BroadcastTop"];
10488
10574
  };
10489
10575
  };
10490
10576
  };
@@ -13076,7 +13162,7 @@ export interface operations {
13076
13162
  query: {
13077
13163
  /**
13078
13164
  * @description FEN of the position
13079
- * @example rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2
13165
+ * @example r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 3 3
13080
13166
  */
13081
13167
  fen: string;
13082
13168
  /** @description Number of variations */
@@ -13097,7 +13183,7 @@ export interface operations {
13097
13183
  [name: string]: unknown;
13098
13184
  };
13099
13185
  content: {
13100
- "application/json": unknown;
13186
+ "application/json": components["schemas"]["CloudEval"];
13101
13187
  };
13102
13188
  };
13103
13189
  /** @description The position was not found in the cloud evaluation database. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.17",
3
+ "version": "2.0.19",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",