@lichess-org/types 2.0.52 → 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.
- package/lichess-api.d.ts +15 -6
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -6136,6 +6136,8 @@ export interface components {
|
|
|
6136
6136
|
clock?: number;
|
|
6137
6137
|
}[];
|
|
6138
6138
|
lastMove?: string;
|
|
6139
|
+
/** @enum {string} */
|
|
6140
|
+
check?: "+" | "#";
|
|
6139
6141
|
thinkTime?: number;
|
|
6140
6142
|
/**
|
|
6141
6143
|
* @description The result of the game
|
|
@@ -6291,11 +6293,18 @@ export interface components {
|
|
|
6291
6293
|
id: components["schemas"]["GameStatusId"];
|
|
6292
6294
|
name: components["schemas"]["GameStatusName"];
|
|
6293
6295
|
};
|
|
6294
|
-
GameEventOpponent:
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
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
|
+
};
|
|
6299
6308
|
GameCompat: {
|
|
6300
6309
|
/** @description Compatible with Bot API */
|
|
6301
6310
|
bot?: boolean;
|
|
@@ -13676,7 +13685,7 @@ export interface operations {
|
|
|
13676
13685
|
userId?: string;
|
|
13677
13686
|
/** @description Comma-separated list of scopes. Empty string if the token has no scopes. */
|
|
13678
13687
|
scopes?: string;
|
|
13679
|
-
/** @description Unix-
|
|
13688
|
+
/** @description Unix-timestamp in milliseconds or null if the token never expires. */
|
|
13680
13689
|
expires?: number | null;
|
|
13681
13690
|
} | null;
|
|
13682
13691
|
};
|