@lichess-org/types 2.0.164 → 2.0.166

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 +10 -10
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -59,7 +59,7 @@ export interface paths {
59
59
  * Get one leaderboard
60
60
  * @description Get the leaderboard for a single speed or variant (a.k.a. `perfType`).
61
61
  * There is no leaderboard for correspondence or puzzles.
62
- * See <https://lichess.org/player/top/100/bullet>.
62
+ * See <https://lichess.org/player/top/bullet>.
63
63
  */
64
64
  get: operations["playerTopNbPerfType"];
65
65
  put?: never;
@@ -103,6 +103,9 @@ export interface paths {
103
103
  * There is at most one entry per day.
104
104
  * Format of an entry is `[year, month, day, rating]`.
105
105
  * `month` starts at zero (January).
106
+ *
107
+ * Note: Rating history is generated on demand by [Authenticated OAuth requests](#description/authentication).
108
+ * Unauthenticated requests will return a cached version of the rating history if present, otherwise an empty array.
106
109
  */
107
110
  get: operations["apiUserRatingHistory"];
108
111
  put?: never;
@@ -4811,8 +4814,6 @@ export interface components {
4811
4814
  error: string;
4812
4815
  };
4813
4816
  UserPreferences: {
4814
- dark?: boolean;
4815
- transp?: boolean;
4816
4817
  /** Format: uri */
4817
4818
  bgImg?: string;
4818
4819
  is3d?: boolean;
@@ -6204,10 +6205,6 @@ export interface components {
6204
6205
  id: string;
6205
6206
  name: string;
6206
6207
  slug: string;
6207
- /** Format: int64 */
6208
- createdAt: number;
6209
- /** @description Whether the round is used for rating calculations */
6210
- rated?: boolean;
6211
6208
  ongoing?: boolean;
6212
6209
  /** Format: int64 */
6213
6210
  startsAt?: number;
@@ -6215,12 +6212,15 @@ export interface components {
6215
6212
  startsAfterPrevious?: boolean;
6216
6213
  /** Format: int64 */
6217
6214
  finishedAt?: number;
6218
- /** @deprecated */
6215
+ /**
6216
+ * @deprecated
6217
+ * @description Use finishedAt instead
6218
+ */
6219
6219
  finished?: boolean;
6220
6220
  /** Format: uri */
6221
6221
  url: string;
6222
- /** Format: int64 */
6223
- delay?: number;
6222
+ /** @description Whether the round is used for rating calculations */
6223
+ rated?: boolean;
6224
6224
  customScoring?: components["schemas"]["BroadcastCustomScoring"];
6225
6225
  };
6226
6226
  /** @description Photos of players, when available. The object keys are FIDE IDs */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.164",
3
+ "version": "2.0.166",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",