@lichess-org/types 2.0.171 → 2.0.173
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 +25 -14
- package/package.json +3 -4
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;
|
|
@@ -9313,7 +9324,7 @@ export interface operations {
|
|
|
9313
9324
|
description?: string;
|
|
9314
9325
|
/**
|
|
9315
9326
|
* @description Make the tournament private, and restrict access with a password.
|
|
9316
|
-
* You can also [generate user-specific entry codes](https://github.com/lichess-org/api/tree/master/example/tournament-entry-code)
|
|
9327
|
+
* You can also [generate user-specific entry codes](https://github.com/lichess-org/api-demo/tree/master/example/tournament-entry-code)
|
|
9317
9328
|
* based on this password.
|
|
9318
9329
|
*/
|
|
9319
9330
|
password?: string;
|
|
@@ -9690,7 +9701,7 @@ export interface operations {
|
|
|
9690
9701
|
"application/x-www-form-urlencoded": {
|
|
9691
9702
|
/**
|
|
9692
9703
|
* @description The tournament password, if one is required.
|
|
9693
|
-
* Can also be a [user-specific entry code](https://github.com/lichess-org/api/tree/master/example/tournament-entry-code)
|
|
9704
|
+
* Can also be a [user-specific entry code](https://github.com/lichess-org/api-demo/tree/master/example/tournament-entry-code)
|
|
9694
9705
|
* generated and shared by the organizer.
|
|
9695
9706
|
*/
|
|
9696
9707
|
password?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.173",
|
|
4
4
|
"description": "Lichess.org API types",
|
|
5
5
|
"homepage": "https://github.com/lichess-org/api",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"openapi-typescript": "^7.13.0",
|
|
18
|
-
"prettier": "^3.9.
|
|
18
|
+
"prettier": "^3.9.8",
|
|
19
19
|
"typescript": "^6.0.3"
|
|
20
|
-
}
|
|
21
|
-
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800"
|
|
20
|
+
}
|
|
22
21
|
}
|