@lichess-org/types 2.0.167 → 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 +20 -3
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -5331,7 +5331,6 @@ 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;
@@ -5346,9 +5345,27 @@ export interface components {
5346
5345
  };
5347
5346
  team?: string;
5348
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
+ };
5349
5362
  GamePlayers: {
5350
- white: components["schemas"]["GamePlayerUser"];
5351
- black: components["schemas"]["GamePlayerUser"];
5363
+ white:
5364
+ | components["schemas"]["GamePlayerUser"]
5365
+ | components["schemas"]["GamePlayerAi"];
5366
+ black:
5367
+ | components["schemas"]["GamePlayerUser"]
5368
+ | components["schemas"]["GamePlayerAi"];
5352
5369
  };
5353
5370
  GameOpening: {
5354
5371
  eco: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.167",
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",