@lichess-org/types 2.0.171 → 2.0.172
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 +23 -12
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -5250,15 +5250,15 @@ export interface components {
|
|
|
5250
5250
|
| "pool"
|
|
5251
5251
|
| "arena"
|
|
5252
5252
|
| "swiss";
|
|
5253
|
+
GameStatus: {
|
|
5254
|
+
id: components["schemas"]["GameStatusId"];
|
|
5255
|
+
name: components["schemas"]["GameStatusName"];
|
|
5256
|
+
};
|
|
5253
5257
|
Variant: {
|
|
5254
5258
|
key: components["schemas"]["VariantKey"];
|
|
5255
5259
|
name: string;
|
|
5256
5260
|
short?: string;
|
|
5257
5261
|
};
|
|
5258
|
-
GameStatus: {
|
|
5259
|
-
id: components["schemas"]["GameStatusId"];
|
|
5260
|
-
name: components["schemas"]["GameStatusName"];
|
|
5261
|
-
};
|
|
5262
5262
|
MoveStreamEntry:
|
|
5263
5263
|
| {
|
|
5264
5264
|
id: string;
|
|
@@ -8800,19 +8800,30 @@ export interface operations {
|
|
|
8800
8800
|
color: components["schemas"]["GameColor"];
|
|
8801
8801
|
lastMove: string;
|
|
8802
8802
|
source: components["schemas"]["GameSource"];
|
|
8803
|
-
status?: components["schemas"]["
|
|
8803
|
+
status?: components["schemas"]["GameStatus"];
|
|
8804
8804
|
variant: components["schemas"]["Variant"];
|
|
8805
8805
|
speed: components["schemas"]["Speed"];
|
|
8806
8806
|
perf: components["schemas"]["PerfType"];
|
|
8807
8807
|
rated: boolean;
|
|
8808
|
+
rating: number;
|
|
8808
8809
|
hasMoved: boolean;
|
|
8809
|
-
opponent:
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8810
|
+
opponent:
|
|
8811
|
+
| {
|
|
8812
|
+
id: string;
|
|
8813
|
+
username: string;
|
|
8814
|
+
rating?: number;
|
|
8815
|
+
ratingDiff?: number;
|
|
8816
|
+
}
|
|
8817
|
+
| {
|
|
8818
|
+
id: null;
|
|
8819
|
+
username: string;
|
|
8820
|
+
}
|
|
8821
|
+
| {
|
|
8822
|
+
id: null;
|
|
8823
|
+
username: string;
|
|
8824
|
+
/** @description AI level, from 1 to 8. */
|
|
8825
|
+
ai: number;
|
|
8826
|
+
};
|
|
8816
8827
|
isMyTurn: boolean;
|
|
8817
8828
|
secondsLeft: number;
|
|
8818
8829
|
tournamentId?: string;
|