@lichess-org/types 2.0.107 → 2.0.109

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 +26 -4
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -1709,7 +1709,7 @@ export interface paths {
1709
1709
  cookie?: never;
1710
1710
  };
1711
1711
  /**
1712
- * Get a player from a broadcast
1712
+ * Get a player of a broadcast
1713
1713
  * @description Get the details of a specific player and their games from a broadcast tournament.
1714
1714
  */
1715
1715
  get: operations["broadcastPlayerGet"];
@@ -4011,7 +4011,7 @@ export interface components {
4011
4011
  */
4012
4012
  channel?: string;
4013
4013
  };
4014
- youTube?: {
4014
+ youtube?: {
4015
4015
  /**
4016
4016
  * Format: uri
4017
4017
  * @example https://www.youtube.com/c/LichessDotOrg
@@ -5958,11 +5958,23 @@ export interface components {
5958
5958
  delay?: number;
5959
5959
  customScoring?: components["schemas"]["BroadcastCustomScoring"];
5960
5960
  };
5961
+ /** @description Photos of players, when available. The object keys are FIDE IDs */
5962
+ BroadcastPhotos: {
5963
+ [key: string]: {
5964
+ /** @description URL of a small (100x100) thumbnail of the photo */
5965
+ small: string;
5966
+ /** @description URL of a medium (500x500) version of the photo */
5967
+ medium: string;
5968
+ /** @description If set, then you should make it appear next to the photo */
5969
+ credit?: string;
5970
+ };
5971
+ };
5961
5972
  BroadcastWithRounds: {
5962
5973
  tour: components["schemas"]["BroadcastTour"];
5963
5974
  group?: components["schemas"]["BroadcastGroup"];
5964
5975
  rounds: components["schemas"]["BroadcastRoundInfo"][];
5965
5976
  defaultRoundId?: string;
5977
+ photos?: components["schemas"]["BroadcastPhotos"];
5966
5978
  };
5967
5979
  BroadcastWithLastRound: {
5968
5980
  group?: string;
@@ -6410,6 +6422,7 @@ export interface components {
6410
6422
  group?: components["schemas"]["BroadcastGroup"];
6411
6423
  /** @description Indicates if the user making the request is subscribed to the broadcast */
6412
6424
  isSubscribed?: boolean;
6425
+ photos: components["schemas"]["BroadcastPhotos"];
6413
6426
  };
6414
6427
  BroadcastPgnPushTags: {
6415
6428
  [key: string]: string;
@@ -6426,6 +6439,14 @@ export interface components {
6426
6439
  tour: components["schemas"]["BroadcastTour"];
6427
6440
  study: components["schemas"]["BroadcastRoundStudyInfo"];
6428
6441
  };
6442
+ FIDEPlayerPhoto: {
6443
+ /** @description URL of a small (100x100) thumbnail of the photo */
6444
+ small: string;
6445
+ /** @description URL of a medium (500x500) version of the photo */
6446
+ medium: string;
6447
+ /** @description If set, then you should make it appear next to the photo */
6448
+ credit?: string;
6449
+ };
6429
6450
  FIDEPlayer: {
6430
6451
  id: number;
6431
6452
  name: string;
@@ -6436,6 +6457,7 @@ export interface components {
6436
6457
  standard?: number;
6437
6458
  rapid?: number;
6438
6459
  blitz?: number;
6460
+ photo?: components["schemas"]["FIDEPlayerPhoto"];
6439
6461
  };
6440
6462
  Simul: {
6441
6463
  id: string;
@@ -12013,7 +12035,7 @@ export interface operations {
12013
12035
  "application/json": (components["schemas"]["LightUser"] & {
12014
12036
  stream?: {
12015
12037
  /** @enum {string} */
12016
- service?: "twitch" | "youTube";
12038
+ service?: "twitch" | "youtube";
12017
12039
  /** @description The stream title */
12018
12040
  status?: string;
12019
12041
  lang?: string;
@@ -12025,7 +12047,7 @@ export interface operations {
12025
12047
  /** Format: uri */
12026
12048
  twitch?: string;
12027
12049
  /** Format: uri */
12028
- youTube?: string;
12050
+ youtube?: string;
12029
12051
  /** Format: uri */
12030
12052
  image?: string;
12031
12053
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.107",
3
+ "version": "2.0.109",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",