@lichess-org/types 2.0.143 → 2.0.145

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 +78 -73
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -6011,6 +6011,44 @@ export interface components {
6011
6011
  * @enum {string}
6012
6012
  */
6013
6013
  FideTimeControl: "standard" | "rapid" | "blitz";
6014
+ /** @description Additional display information about the tournament */
6015
+ BroadcastTourInfo: {
6016
+ /**
6017
+ * @description Tournament format.
6018
+ * Example: `"8-player round-robin" or "5-round Swiss"`
6019
+ */
6020
+ format?: string;
6021
+ /**
6022
+ * @description Time control.
6023
+ * Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
6024
+ */
6025
+ tc?: string;
6026
+ fideTC?: components["schemas"]["FideTimeControl"];
6027
+ /**
6028
+ * @description Timezone of the tournament. Example: `America/New_York`.
6029
+ * See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
6030
+ */
6031
+ timeZone?: string;
6032
+ /** @description Tournament location */
6033
+ location?: string;
6034
+ /** @description Mentioning up to 4 of the best players participating. */
6035
+ players?: string;
6036
+ /**
6037
+ * Format: uri
6038
+ * @description Official website. External website URL
6039
+ */
6040
+ website?: string;
6041
+ /**
6042
+ * Format: uri
6043
+ * @description Official standings website. External website URL, e.g. chess-results.com, info64.org
6044
+ */
6045
+ standings?: string;
6046
+ /**
6047
+ * Format: uri
6048
+ * @description External URL to the official tournament regulations.
6049
+ */
6050
+ regulations?: string;
6051
+ };
6014
6052
  BroadcastTour: {
6015
6053
  id: string;
6016
6054
  name: string;
@@ -6025,34 +6063,7 @@ export interface components {
6025
6063
  * ]
6026
6064
  */
6027
6065
  dates?: number[];
6028
- /** @description Additional display information about the tournament */
6029
- info?: {
6030
- /**
6031
- * Format: uri
6032
- * @description Official website. External website URL
6033
- */
6034
- website?: string;
6035
- /** @description Featured players */
6036
- players?: string;
6037
- /** @description Tournament location */
6038
- location?: string;
6039
- /** @description Time control */
6040
- tc?: string;
6041
- /** @description FIDE rating category */
6042
- fideTC?: components["schemas"]["FideTimeControl"];
6043
- /**
6044
- * @description Timezone of the tournament. Example: `America/New_York`.
6045
- * See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
6046
- */
6047
- timeZone?: string;
6048
- /**
6049
- * Format: uri
6050
- * @description Official standings website. External website URL
6051
- */
6052
- standings?: string;
6053
- /** @description Tournament format */
6054
- format?: string;
6055
- };
6066
+ info?: components["schemas"]["BroadcastTourInfo"];
6056
6067
  /** @description Used to designate featured tournaments on Lichess */
6057
6068
  tier?: number;
6058
6069
  /** Format: uri */
@@ -6065,18 +6076,6 @@ export interface components {
6065
6076
  url: string;
6066
6077
  communityOwner?: components["schemas"]["LightUser"];
6067
6078
  };
6068
- BroadcastGroupTour: {
6069
- id: string;
6070
- name: string;
6071
- active: boolean;
6072
- live: boolean;
6073
- };
6074
- BroadcastGroup: {
6075
- id: string;
6076
- slug: string;
6077
- name: string;
6078
- tours: components["schemas"]["BroadcastGroupTour"][];
6079
- };
6080
6079
  BroadcastCustomPoints: number;
6081
6080
  BroadcastCustomPointsPerColor: {
6082
6081
  win: components["schemas"]["BroadcastCustomPoints"];
@@ -6122,7 +6121,7 @@ export interface components {
6122
6121
  };
6123
6122
  BroadcastWithRounds: {
6124
6123
  tour: components["schemas"]["BroadcastTour"];
6125
- group?: components["schemas"]["BroadcastGroup"];
6124
+ group?: string;
6126
6125
  rounds: components["schemas"]["BroadcastRoundInfo"][];
6127
6126
  defaultRoundId?: string;
6128
6127
  photos?: components["schemas"]["BroadcastPhotos"];
@@ -6198,36 +6197,7 @@ export interface components {
6198
6197
  * Example: `Sinquefield Cup`
6199
6198
  */
6200
6199
  name: string;
6201
- /**
6202
- * @description Tournament format.
6203
- * Example: `"8-player round-robin" or "5-round Swiss"`
6204
- */
6205
- "info.format"?: string;
6206
- /** @description Tournament Location */
6207
- "info.location"?: string;
6208
- /**
6209
- * @description Time control.
6210
- * Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
6211
- */
6212
- "info.tc"?: string;
6213
- "info.fideTC"?: components["schemas"]["FideTimeControl"];
6214
- /**
6215
- * @description Timezone of the tournament. Example: `America/New_York`.
6216
- * See [list of possible timezone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more.
6217
- */
6218
- "info.timeZone"?: string;
6219
- /** @description Mention up to 4 of the best players participating. */
6220
- "info.players"?: string;
6221
- /**
6222
- * Format: uri
6223
- * @description Official website. External website URL
6224
- */
6225
- "info.website"?: string;
6226
- /**
6227
- * Format: uri
6228
- * @description Official Standings. External website URL, e.g. chess-results.com, info64.org
6229
- */
6230
- "info.standings"?: string;
6200
+ info?: components["schemas"]["BroadcastTourInfo"];
6231
6201
  /** @description Optional long description of the broadcast. Markdown is supported. */
6232
6202
  markdown?: string;
6233
6203
  /**
@@ -6316,7 +6286,42 @@ export interface components {
6316
6286
  * @enum {integer}
6317
6287
  */
6318
6288
  tier?: 3 | 4 | 5;
6319
- "tiebreaks[]"?: components["schemas"]["BroadcastTiebreakExtendedCode"][];
6289
+ tiebreaks?: components["schemas"]["BroadcastTiebreakExtendedCode"][];
6290
+ /** @description Group this broadcast along with others */
6291
+ grouping?: {
6292
+ info?: {
6293
+ /**
6294
+ * @description Name of the group
6295
+ * @example Chess Olympiad | Open
6296
+ */
6297
+ name?: string;
6298
+ /**
6299
+ * @description A comma separated list of tournament IDs to group together.
6300
+ * @example wYigbpXq,M5YHvpOX,q6ezoCXP
6301
+ */
6302
+ tours?: string;
6303
+ };
6304
+ scoreGroups?: string[];
6305
+ };
6306
+ };
6307
+ BroadcastGroupTour: {
6308
+ id: string;
6309
+ name: string;
6310
+ active: boolean;
6311
+ live: boolean;
6312
+ };
6313
+ BroadcastGroup: {
6314
+ id: string;
6315
+ slug: string;
6316
+ name: string;
6317
+ tours: components["schemas"]["BroadcastGroupTour"][];
6318
+ };
6319
+ BroadcastWithRoundsAndFullGroup: {
6320
+ tour: components["schemas"]["BroadcastTour"];
6321
+ group?: components["schemas"]["BroadcastGroup"];
6322
+ rounds: components["schemas"]["BroadcastRoundInfo"][];
6323
+ defaultRoundId?: string;
6324
+ photos?: components["schemas"]["BroadcastPhotos"];
6320
6325
  };
6321
6326
  BroadcastPlayerWithFed: {
6322
6327
  /** @example Hernandez Riera, Jose */
@@ -11597,7 +11602,7 @@ export interface operations {
11597
11602
  [name: string]: unknown;
11598
11603
  };
11599
11604
  content: {
11600
- "application/json": components["schemas"]["BroadcastWithRounds"];
11605
+ "application/json": components["schemas"]["BroadcastWithRoundsAndFullGroup"];
11601
11606
  };
11602
11607
  };
11603
11608
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.143",
3
+ "version": "2.0.145",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",