@lichess-org/types 2.0.53 → 2.0.55
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.
- package/lichess-api.d.ts +13 -6
- 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
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
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;
|
|
@@ -6506,7 +6513,7 @@ export interface components {
|
|
|
6506
6513
|
binc: number;
|
|
6507
6514
|
status: components["schemas"]["GameStatusName"];
|
|
6508
6515
|
/** @description Color of the winner, if any */
|
|
6509
|
-
winner?:
|
|
6516
|
+
winner?: components["schemas"]["GameColor"];
|
|
6510
6517
|
/** @description true if white is offering draw, else omitted */
|
|
6511
6518
|
wdraw?: boolean;
|
|
6512
6519
|
/** @description true if black is offering draw, else omitted */
|