@lichess-org/types 2.0.116 → 2.0.118
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 +135 -28
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1721,6 +1721,26 @@ export interface paths {
|
|
|
1721
1721
|
patch?: never;
|
|
1722
1722
|
trace?: never;
|
|
1723
1723
|
};
|
|
1724
|
+
"/broadcast/{broadcastTournamentId}/teams/standings": {
|
|
1725
|
+
parameters: {
|
|
1726
|
+
query?: never;
|
|
1727
|
+
header?: never;
|
|
1728
|
+
path?: never;
|
|
1729
|
+
cookie?: never;
|
|
1730
|
+
};
|
|
1731
|
+
/**
|
|
1732
|
+
* Get the team leaderboard of a broadcast
|
|
1733
|
+
* @description Get the team leaderboard of a broadcast tournament, if available.
|
|
1734
|
+
*/
|
|
1735
|
+
get: operations["broadcastTeamLeaderboardGet"];
|
|
1736
|
+
put?: never;
|
|
1737
|
+
post?: never;
|
|
1738
|
+
delete?: never;
|
|
1739
|
+
options?: never;
|
|
1740
|
+
head?: never;
|
|
1741
|
+
patch?: never;
|
|
1742
|
+
trace?: never;
|
|
1743
|
+
};
|
|
1724
1744
|
"/broadcast/{broadcastTournamentId}/edit": {
|
|
1725
1745
|
parameters: {
|
|
1726
1746
|
query?: never;
|
|
@@ -5859,6 +5879,11 @@ export interface components {
|
|
|
5859
5879
|
*/
|
|
5860
5880
|
updatedAt: number;
|
|
5861
5881
|
};
|
|
5882
|
+
/**
|
|
5883
|
+
* @description FIDE rating category
|
|
5884
|
+
* @enum {string}
|
|
5885
|
+
*/
|
|
5886
|
+
FideTimeControl: "standard" | "rapid" | "blitz";
|
|
5862
5887
|
BroadcastTour: {
|
|
5863
5888
|
id: string;
|
|
5864
5889
|
name: string;
|
|
@@ -5886,11 +5911,8 @@ export interface components {
|
|
|
5886
5911
|
location?: string;
|
|
5887
5912
|
/** @description Time control */
|
|
5888
5913
|
tc?: string;
|
|
5889
|
-
/**
|
|
5890
|
-
|
|
5891
|
-
* @enum {string}
|
|
5892
|
-
*/
|
|
5893
|
-
fideTc?: "standard" | "rapid" | "blitz";
|
|
5914
|
+
/** @description FIDE rating category */
|
|
5915
|
+
fideTC?: components["schemas"]["FideTimeControl"];
|
|
5894
5916
|
/**
|
|
5895
5917
|
* @description Timezone of the tournament. Example: `America/New_York`.
|
|
5896
5918
|
* See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
|
|
@@ -5910,7 +5932,6 @@ export interface components {
|
|
|
5910
5932
|
image?: string;
|
|
5911
5933
|
/** @description Full tournament description in markdown format, or in HTML if the html=1 query parameter is set. */
|
|
5912
5934
|
description?: string;
|
|
5913
|
-
leaderboard?: boolean;
|
|
5914
5935
|
teamTable?: boolean;
|
|
5915
5936
|
/** Format: uri */
|
|
5916
5937
|
url: string;
|
|
@@ -6061,11 +6082,7 @@ export interface components {
|
|
|
6061
6082
|
* Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
|
|
6062
6083
|
*/
|
|
6063
6084
|
"info.tc"?: string;
|
|
6064
|
-
|
|
6065
|
-
* @description FIDE rating category. Which FIDE ratings to use
|
|
6066
|
-
* @enum {string}
|
|
6067
|
-
*/
|
|
6068
|
-
"info.fideTc"?: "standard" | "rapid" | "blitz";
|
|
6085
|
+
"info.fideTC"?: components["schemas"]["FideTimeControl"];
|
|
6069
6086
|
/**
|
|
6070
6087
|
* @description Timezone of the tournament. Example: `America/New_York`.
|
|
6071
6088
|
* See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
|
|
@@ -6185,6 +6202,11 @@ export interface components {
|
|
|
6185
6202
|
/** @example CHI */
|
|
6186
6203
|
fed?: string;
|
|
6187
6204
|
};
|
|
6205
|
+
StatByFideTC: {
|
|
6206
|
+
standard?: number;
|
|
6207
|
+
rapid?: number;
|
|
6208
|
+
blitz?: number;
|
|
6209
|
+
};
|
|
6188
6210
|
BroadcastPlayerTiebreak: {
|
|
6189
6211
|
extendedCode: components["schemas"]["BroadcastTiebreakExtendedCode"];
|
|
6190
6212
|
/** @example Buchholz Cut 1 */
|
|
@@ -6197,14 +6219,45 @@ export interface components {
|
|
|
6197
6219
|
score?: number;
|
|
6198
6220
|
/** @example 7 */
|
|
6199
6221
|
played?: number;
|
|
6200
|
-
/**
|
|
6222
|
+
/**
|
|
6223
|
+
* @deprecated
|
|
6224
|
+
* @example -5
|
|
6225
|
+
*/
|
|
6201
6226
|
ratingDiff?: number;
|
|
6202
|
-
/**
|
|
6227
|
+
/**
|
|
6228
|
+
* @description Rating differences by FIDE time control.
|
|
6229
|
+
* @example {
|
|
6230
|
+
* "rapid": -5,
|
|
6231
|
+
* "blitz": 10
|
|
6232
|
+
* }
|
|
6233
|
+
*/
|
|
6234
|
+
ratingDiffs?: components["schemas"]["StatByFideTC"];
|
|
6235
|
+
/**
|
|
6236
|
+
* @description Player's ratings at the time of the tournament.
|
|
6237
|
+
* @example {
|
|
6238
|
+
* "rapid": 2500,
|
|
6239
|
+
* "blitz": 2450
|
|
6240
|
+
* }
|
|
6241
|
+
*/
|
|
6242
|
+
ratingsMap?: components["schemas"]["StatByFideTC"];
|
|
6243
|
+
/**
|
|
6244
|
+
* @deprecated
|
|
6245
|
+
* @example 2138
|
|
6246
|
+
*/
|
|
6203
6247
|
performance?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* @description Performance ratings by FIDE time control.
|
|
6250
|
+
* @example {
|
|
6251
|
+
* "standard": 2138
|
|
6252
|
+
* }
|
|
6253
|
+
*/
|
|
6254
|
+
performances?: components["schemas"]["StatByFideTC"];
|
|
6204
6255
|
tiebreaks?: components["schemas"]["BroadcastPlayerTiebreak"][];
|
|
6205
6256
|
/** @example 1 */
|
|
6206
6257
|
rank?: number;
|
|
6207
6258
|
};
|
|
6259
|
+
/** @enum {string} */
|
|
6260
|
+
BroadcastPointStr: "1" | "1/2" | "0";
|
|
6208
6261
|
BroadcastGameEntry: {
|
|
6209
6262
|
/** @description ID of the round */
|
|
6210
6263
|
round: string;
|
|
@@ -6212,25 +6265,45 @@ export interface components {
|
|
|
6212
6265
|
id: string;
|
|
6213
6266
|
opponent: components["schemas"]["BroadcastPlayerWithFed"];
|
|
6214
6267
|
color: components["schemas"]["GameColor"];
|
|
6215
|
-
|
|
6216
|
-
points?: "1" | "1/2" | "0";
|
|
6268
|
+
points?: components["schemas"]["BroadcastPointStr"];
|
|
6217
6269
|
customPoints?: components["schemas"]["BroadcastCustomPoints"];
|
|
6218
6270
|
/** @description The change in rating for the player as a result of this game */
|
|
6219
6271
|
ratingDiff?: number;
|
|
6272
|
+
fideTC?: components["schemas"]["FideTimeControl"];
|
|
6220
6273
|
};
|
|
6221
6274
|
BroadcastPlayerEntryWithFideAndGames: components["schemas"]["BroadcastPlayerEntry"] & {
|
|
6222
6275
|
fide?: {
|
|
6223
6276
|
/** @description Year of birth */
|
|
6224
6277
|
year?: number;
|
|
6225
|
-
ratings
|
|
6226
|
-
|
|
6227
|
-
rapid?: number;
|
|
6228
|
-
blitz?: number;
|
|
6229
|
-
};
|
|
6278
|
+
/** @description Player's current ratings from the latest FIDE rating list. */
|
|
6279
|
+
ratings?: components["schemas"]["StatByFideTC"];
|
|
6230
6280
|
};
|
|
6231
6281
|
/** @description List of games played by the player in the broadcast tournament */
|
|
6232
6282
|
games?: components["schemas"]["BroadcastGameEntry"][];
|
|
6233
6283
|
};
|
|
6284
|
+
BroadcastTeamPOVMatchEntry: {
|
|
6285
|
+
roundId: string;
|
|
6286
|
+
/** @description The name of the opposing team */
|
|
6287
|
+
opponent: string;
|
|
6288
|
+
/** @description Match points scored in this match */
|
|
6289
|
+
mp?: number;
|
|
6290
|
+
/** @description Game points scored in this match */
|
|
6291
|
+
gp?: number;
|
|
6292
|
+
points?: components["schemas"]["BroadcastPointStr"];
|
|
6293
|
+
};
|
|
6294
|
+
BroadcastTeamLeaderboardEntry: {
|
|
6295
|
+
/** @description The name of the team */
|
|
6296
|
+
name: string;
|
|
6297
|
+
/** @description Total match points scored */
|
|
6298
|
+
mp: number;
|
|
6299
|
+
/** @description Total game points scored */
|
|
6300
|
+
gp: number;
|
|
6301
|
+
/** @description The average rating of the team's players */
|
|
6302
|
+
averageRating?: number;
|
|
6303
|
+
matches: components["schemas"]["BroadcastTeamPOVMatchEntry"][];
|
|
6304
|
+
/** @description Players who have played for the team and their overall score */
|
|
6305
|
+
players: components["schemas"]["BroadcastPlayerEntry"][];
|
|
6306
|
+
};
|
|
6234
6307
|
/**
|
|
6235
6308
|
* @description Name of the broadcast round.
|
|
6236
6309
|
* Example: `Round 1`
|
|
@@ -8343,8 +8416,9 @@ export interface operations {
|
|
|
8343
8416
|
[name: string]: unknown;
|
|
8344
8417
|
};
|
|
8345
8418
|
content: {
|
|
8346
|
-
"application/
|
|
8347
|
-
|
|
8419
|
+
"application/json":
|
|
8420
|
+
| components["schemas"]["GamePgn"]
|
|
8421
|
+
| components["schemas"]["GameJson"];
|
|
8348
8422
|
};
|
|
8349
8423
|
};
|
|
8350
8424
|
};
|
|
@@ -8518,8 +8592,9 @@ export interface operations {
|
|
|
8518
8592
|
[name: string]: unknown;
|
|
8519
8593
|
};
|
|
8520
8594
|
content: {
|
|
8521
|
-
"application/
|
|
8522
|
-
|
|
8595
|
+
"application/json":
|
|
8596
|
+
| components["schemas"]["GamePgn"]
|
|
8597
|
+
| components["schemas"]["GameJson"];
|
|
8523
8598
|
};
|
|
8524
8599
|
};
|
|
8525
8600
|
};
|
|
@@ -8589,8 +8664,9 @@ export interface operations {
|
|
|
8589
8664
|
[name: string]: unknown;
|
|
8590
8665
|
};
|
|
8591
8666
|
content: {
|
|
8592
|
-
"application/
|
|
8593
|
-
|
|
8667
|
+
"application/json":
|
|
8668
|
+
| components["schemas"]["GamePgn"]
|
|
8669
|
+
| components["schemas"]["GameJson"];
|
|
8594
8670
|
};
|
|
8595
8671
|
};
|
|
8596
8672
|
};
|
|
@@ -8908,8 +8984,9 @@ export interface operations {
|
|
|
8908
8984
|
[name: string]: unknown;
|
|
8909
8985
|
};
|
|
8910
8986
|
content: {
|
|
8911
|
-
"application/
|
|
8912
|
-
|
|
8987
|
+
"application/json":
|
|
8988
|
+
| components["schemas"]["GamePgn"]
|
|
8989
|
+
| components["schemas"]["GameJson"];
|
|
8913
8990
|
};
|
|
8914
8991
|
};
|
|
8915
8992
|
};
|
|
@@ -11294,6 +11371,36 @@ export interface operations {
|
|
|
11294
11371
|
};
|
|
11295
11372
|
};
|
|
11296
11373
|
};
|
|
11374
|
+
broadcastTeamLeaderboardGet: {
|
|
11375
|
+
parameters: {
|
|
11376
|
+
query?: never;
|
|
11377
|
+
header?: never;
|
|
11378
|
+
path: {
|
|
11379
|
+
/** @description The broadcast tournament ID */
|
|
11380
|
+
broadcastTournamentId: string;
|
|
11381
|
+
};
|
|
11382
|
+
cookie?: never;
|
|
11383
|
+
};
|
|
11384
|
+
requestBody?: never;
|
|
11385
|
+
responses: {
|
|
11386
|
+
/** @description The team leaderboard */
|
|
11387
|
+
200: {
|
|
11388
|
+
headers: {
|
|
11389
|
+
[name: string]: unknown;
|
|
11390
|
+
};
|
|
11391
|
+
content: {
|
|
11392
|
+
"application/json": components["schemas"]["BroadcastTeamLeaderboardEntry"][];
|
|
11393
|
+
};
|
|
11394
|
+
};
|
|
11395
|
+
/** @description Broadcast tournament not found */
|
|
11396
|
+
404: {
|
|
11397
|
+
headers: {
|
|
11398
|
+
[name: string]: unknown;
|
|
11399
|
+
};
|
|
11400
|
+
content?: never;
|
|
11401
|
+
};
|
|
11402
|
+
};
|
|
11403
|
+
};
|
|
11297
11404
|
broadcastTourUpdate: {
|
|
11298
11405
|
parameters: {
|
|
11299
11406
|
query?: never;
|