@lichess-org/types 2.0.166 → 2.0.168

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 +31 -6
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -5331,19 +5331,41 @@ export interface components {
5331
5331
  ratingDiff?: number;
5332
5332
  name?: string;
5333
5333
  provisional?: boolean;
5334
- aiLevel?: number;
5335
5334
  analysis?: {
5336
5335
  inaccuracy: number;
5337
5336
  mistake: number;
5338
5337
  blunder: number;
5339
5338
  acpl: number;
5340
5339
  accuracy?: number;
5340
+ phases?: {
5341
+ opening?: number;
5342
+ middlegame?: number;
5343
+ endgame?: number;
5344
+ };
5341
5345
  };
5342
5346
  team?: string;
5343
5347
  };
5348
+ /**
5349
+ * @description One side of a game played by the Stockfish AI. AI sides carry the
5350
+ * strength level instead of `user` and `rating`.
5351
+ */
5352
+ GamePlayerAi: {
5353
+ aiLevel: number;
5354
+ analysis?: {
5355
+ inaccuracy: number;
5356
+ mistake: number;
5357
+ blunder: number;
5358
+ acpl: number;
5359
+ accuracy?: number;
5360
+ };
5361
+ };
5344
5362
  GamePlayers: {
5345
- white: components["schemas"]["GamePlayerUser"];
5346
- black: components["schemas"]["GamePlayerUser"];
5363
+ white:
5364
+ | components["schemas"]["GamePlayerUser"]
5365
+ | components["schemas"]["GamePlayerAi"];
5366
+ black:
5367
+ | components["schemas"]["GamePlayerUser"]
5368
+ | components["schemas"]["GamePlayerAi"];
5347
5369
  };
5348
5370
  GameOpening: {
5349
5371
  eco: string;
@@ -5907,6 +5929,7 @@ export interface components {
5907
5929
  rating?: number;
5908
5930
  score?: number;
5909
5931
  sheet?: components["schemas"]["ArenaSheet"];
5932
+ realName?: string;
5910
5933
  }[];
5911
5934
  };
5912
5935
  featured?: {
@@ -6205,6 +6228,8 @@ export interface components {
6205
6228
  id: string;
6206
6229
  name: string;
6207
6230
  slug: string;
6231
+ /** Format: int64 */
6232
+ createdAt?: number;
6208
6233
  ongoing?: boolean;
6209
6234
  /** Format: int64 */
6210
6235
  startsAt?: number;
@@ -7016,7 +7041,7 @@ export interface components {
7016
7041
  TimeControl:
7017
7042
  | {
7018
7043
  /** @constant */
7019
- type?: "clock";
7044
+ type: "clock";
7020
7045
  limit?: number;
7021
7046
  increment?: number;
7022
7047
  /** @example 5+2 */
@@ -7024,12 +7049,12 @@ export interface components {
7024
7049
  }
7025
7050
  | {
7026
7051
  /** @constant */
7027
- type?: "correspondence";
7052
+ type: "correspondence";
7028
7053
  daysPerTurn?: number;
7029
7054
  }
7030
7055
  | {
7031
7056
  /** @constant */
7032
- type?: "unlimited";
7057
+ type: "unlimited";
7033
7058
  };
7034
7059
  /** @enum {string} */
7035
7060
  ChallengeColor: "white" | "black" | "random";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.166",
3
+ "version": "2.0.168",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",