@lichess-org/types 2.0.31 → 2.0.33
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 +11 -46
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -4895,9 +4895,6 @@ export interface components {
|
|
|
4895
4895
|
moveEvent?: number;
|
|
4896
4896
|
rookCastle?: number;
|
|
4897
4897
|
};
|
|
4898
|
-
/** @example {
|
|
4899
|
-
* "ok": true
|
|
4900
|
-
* } */
|
|
4901
4898
|
Ok: {
|
|
4902
4899
|
ok?: boolean;
|
|
4903
4900
|
};
|
|
@@ -5358,6 +5355,7 @@ export interface components {
|
|
|
5358
5355
|
/** Format: int64 */
|
|
5359
5356
|
lastMoveAt: number;
|
|
5360
5357
|
status: components["schemas"]["GameStatus"];
|
|
5358
|
+
source?: string;
|
|
5361
5359
|
players: {
|
|
5362
5360
|
white: components["schemas"]["GameUser"];
|
|
5363
5361
|
black: components["schemas"]["GameUser"];
|
|
@@ -5886,45 +5884,6 @@ export interface components {
|
|
|
5886
5884
|
* @enum {string}
|
|
5887
5885
|
*/
|
|
5888
5886
|
SwissStatus: "created" | "started" | "finished";
|
|
5889
|
-
/** @example {
|
|
5890
|
-
* "clock": {
|
|
5891
|
-
* "increment": 0,
|
|
5892
|
-
* "limit": 600
|
|
5893
|
-
* },
|
|
5894
|
-
* "createdBy": "lichess",
|
|
5895
|
-
* "id": "SuwsOIhE",
|
|
5896
|
-
* "name": "Rapid",
|
|
5897
|
-
* "nbOngoing": 0,
|
|
5898
|
-
* "nbPlayers": 37,
|
|
5899
|
-
* "nbRounds": 7,
|
|
5900
|
-
* "rated": true,
|
|
5901
|
-
* "round": 7,
|
|
5902
|
-
* "startsAt": "2024-06-11T02:00:00Z",
|
|
5903
|
-
* "stats": {
|
|
5904
|
-
* "absences": 133,
|
|
5905
|
-
* "averageRating": 1896,
|
|
5906
|
-
* "blackWins": 44,
|
|
5907
|
-
* "byes": 5,
|
|
5908
|
-
* "draws": 6,
|
|
5909
|
-
* "games": 53,
|
|
5910
|
-
* "whiteWins": 56
|
|
5911
|
-
* },
|
|
5912
|
-
* "status": "finished",
|
|
5913
|
-
* "variant": "standard",
|
|
5914
|
-
* "verdicts": {
|
|
5915
|
-
* "accepted": true,
|
|
5916
|
-
* "list": [
|
|
5917
|
-
* {
|
|
5918
|
-
* "condition": "≥ 8 Rapid rated games",
|
|
5919
|
-
* "verdict": "ok"
|
|
5920
|
-
* },
|
|
5921
|
-
* {
|
|
5922
|
-
* "condition": "Play your games",
|
|
5923
|
-
* "verdict": "ok"
|
|
5924
|
-
* }
|
|
5925
|
-
* ]
|
|
5926
|
-
* }
|
|
5927
|
-
* } */
|
|
5928
5887
|
SwissTournament: {
|
|
5929
5888
|
id: string;
|
|
5930
5889
|
createdBy: string;
|
|
@@ -5940,7 +5899,7 @@ export interface components {
|
|
|
5940
5899
|
nbPlayers: number;
|
|
5941
5900
|
nbOngoing: number;
|
|
5942
5901
|
status: components["schemas"]["SwissStatus"];
|
|
5943
|
-
stats
|
|
5902
|
+
stats?: {
|
|
5944
5903
|
games: number;
|
|
5945
5904
|
whiteWins: number;
|
|
5946
5905
|
blackWins: number;
|
|
@@ -5951,6 +5910,12 @@ export interface components {
|
|
|
5951
5910
|
};
|
|
5952
5911
|
rated: boolean;
|
|
5953
5912
|
verdicts: components["schemas"]["Verdicts"];
|
|
5913
|
+
nextRound?: {
|
|
5914
|
+
/** Format: date-time */
|
|
5915
|
+
at?: string;
|
|
5916
|
+
/** @description The number of seconds until the next round starts. */
|
|
5917
|
+
in?: number;
|
|
5918
|
+
};
|
|
5954
5919
|
};
|
|
5955
5920
|
/** @example {
|
|
5956
5921
|
* "error": "This user cannot edit this swiss"
|
|
@@ -6124,6 +6089,7 @@ export interface components {
|
|
|
6124
6089
|
};
|
|
6125
6090
|
BroadcastTop: {
|
|
6126
6091
|
active?: components["schemas"]["BroadcastWithLastRound"][];
|
|
6092
|
+
upcoming?: components["schemas"]["BroadcastWithLastRound"][];
|
|
6127
6093
|
past?: {
|
|
6128
6094
|
/** @example 4 */
|
|
6129
6095
|
currentPage?: number;
|
|
@@ -6138,7 +6104,6 @@ export interface components {
|
|
|
6138
6104
|
};
|
|
6139
6105
|
BroadcastByUser: {
|
|
6140
6106
|
tour: components["schemas"]["BroadcastTour"];
|
|
6141
|
-
round: components["schemas"]["BroadcastRoundInfo"];
|
|
6142
6107
|
};
|
|
6143
6108
|
BroadcastForm: {
|
|
6144
6109
|
/** @description Name of the broadcast tournament.
|
|
@@ -10802,7 +10767,7 @@ export interface operations {
|
|
|
10802
10767
|
[name: string]: unknown;
|
|
10803
10768
|
};
|
|
10804
10769
|
content: {
|
|
10805
|
-
"application/
|
|
10770
|
+
"application/x-ndjson": components["schemas"]["SwissTournament"];
|
|
10806
10771
|
};
|
|
10807
10772
|
};
|
|
10808
10773
|
};
|
|
@@ -14478,7 +14443,7 @@ export interface operations {
|
|
|
14478
14443
|
[name: string]: unknown;
|
|
14479
14444
|
};
|
|
14480
14445
|
content: {
|
|
14481
|
-
"application/
|
|
14446
|
+
"application/x-ndjson": components["schemas"]["OpeningExplorerPlayer"];
|
|
14482
14447
|
};
|
|
14483
14448
|
};
|
|
14484
14449
|
};
|