@lichess-org/types 2.0.117 → 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.
Files changed (2) hide show
  1. package/lichess-api.d.ts +122 -21
  2. 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
- * @description FIDE rating category
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;
@@ -6002,11 +6023,6 @@ export interface components {
6002
6023
  BroadcastByUser: {
6003
6024
  tour: components["schemas"]["BroadcastTour"];
6004
6025
  };
6005
- /**
6006
- * @description FIDE rating category
6007
- * @enum {string}
6008
- */
6009
- FideTimeControl: "standard" | "rapid" | "blitz";
6010
6026
  /**
6011
6027
  * @description Extended tiebreak code
6012
6028
  * @enum {string}
@@ -6066,7 +6082,7 @@ export interface components {
6066
6082
  * Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
6067
6083
  */
6068
6084
  "info.tc"?: string;
6069
- "info.fideTc"?: components["schemas"]["FideTimeControl"];
6085
+ "info.fideTC"?: components["schemas"]["FideTimeControl"];
6070
6086
  /**
6071
6087
  * @description Timezone of the tournament. Example: `America/New_York`.
6072
6088
  * See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
@@ -6186,6 +6202,11 @@ export interface components {
6186
6202
  /** @example CHI */
6187
6203
  fed?: string;
6188
6204
  };
6205
+ StatByFideTC: {
6206
+ standard?: number;
6207
+ rapid?: number;
6208
+ blitz?: number;
6209
+ };
6189
6210
  BroadcastPlayerTiebreak: {
6190
6211
  extendedCode: components["schemas"]["BroadcastTiebreakExtendedCode"];
6191
6212
  /** @example Buchholz Cut 1 */
@@ -6198,14 +6219,45 @@ export interface components {
6198
6219
  score?: number;
6199
6220
  /** @example 7 */
6200
6221
  played?: number;
6201
- /** @example -5 */
6222
+ /**
6223
+ * @deprecated
6224
+ * @example -5
6225
+ */
6202
6226
  ratingDiff?: number;
6203
- /** @example 2138 */
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
+ */
6204
6247
  performance?: number;
6248
+ /**
6249
+ * @description Performance ratings by FIDE time control.
6250
+ * @example {
6251
+ * "standard": 2138
6252
+ * }
6253
+ */
6254
+ performances?: components["schemas"]["StatByFideTC"];
6205
6255
  tiebreaks?: components["schemas"]["BroadcastPlayerTiebreak"][];
6206
6256
  /** @example 1 */
6207
6257
  rank?: number;
6208
6258
  };
6259
+ /** @enum {string} */
6260
+ BroadcastPointStr: "1" | "1/2" | "0";
6209
6261
  BroadcastGameEntry: {
6210
6262
  /** @description ID of the round */
6211
6263
  round: string;
@@ -6213,8 +6265,7 @@ export interface components {
6213
6265
  id: string;
6214
6266
  opponent: components["schemas"]["BroadcastPlayerWithFed"];
6215
6267
  color: components["schemas"]["GameColor"];
6216
- /** @enum {string} */
6217
- points?: "1" | "1/2" | "0";
6268
+ points?: components["schemas"]["BroadcastPointStr"];
6218
6269
  customPoints?: components["schemas"]["BroadcastCustomPoints"];
6219
6270
  /** @description The change in rating for the player as a result of this game */
6220
6271
  ratingDiff?: number;
@@ -6224,15 +6275,35 @@ export interface components {
6224
6275
  fide?: {
6225
6276
  /** @description Year of birth */
6226
6277
  year?: number;
6227
- ratings?: {
6228
- standard?: number;
6229
- rapid?: number;
6230
- blitz?: number;
6231
- };
6278
+ /** @description Player's current ratings from the latest FIDE rating list. */
6279
+ ratings?: components["schemas"]["StatByFideTC"];
6232
6280
  };
6233
6281
  /** @description List of games played by the player in the broadcast tournament */
6234
6282
  games?: components["schemas"]["BroadcastGameEntry"][];
6235
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
+ };
6236
6307
  /**
6237
6308
  * @description Name of the broadcast round.
6238
6309
  * Example: `Round 1`
@@ -11300,6 +11371,36 @@ export interface operations {
11300
11371
  };
11301
11372
  };
11302
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
+ };
11303
11404
  broadcastTourUpdate: {
11304
11405
  parameters: {
11305
11406
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.117",
3
+ "version": "2.0.118",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",