@lichess-org/types 2.0.53 → 2.0.54

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 +12 -5
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -6293,11 +6293,18 @@ export interface components {
6293
6293
  id: components["schemas"]["GameStatusId"];
6294
6294
  name: components["schemas"]["GameStatusName"];
6295
6295
  };
6296
- GameEventOpponent: {
6297
- id: string;
6298
- username: string;
6299
- rating: number;
6300
- };
6296
+ GameEventOpponent:
6297
+ | {
6298
+ id: string;
6299
+ username: string;
6300
+ rating: number;
6301
+ }
6302
+ | {
6303
+ id: null;
6304
+ username: string;
6305
+ /** @description AI level, from 1 to 8, where 1 is the weakest and 8 is the strongest. */
6306
+ ai: number;
6307
+ };
6301
6308
  GameCompat: {
6302
6309
  /** @description Compatible with Bot API */
6303
6310
  bot?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.53",
3
+ "version": "2.0.54",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",