@lichess-org/types 2.0.165 → 2.0.167
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 +19 -11
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -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;
|
|
@@ -5337,6 +5338,11 @@ export interface components {
|
|
|
5337
5338
|
blunder: number;
|
|
5338
5339
|
acpl: number;
|
|
5339
5340
|
accuracy?: number;
|
|
5341
|
+
phases?: {
|
|
5342
|
+
opening?: number;
|
|
5343
|
+
middlegame?: number;
|
|
5344
|
+
endgame?: number;
|
|
5345
|
+
};
|
|
5340
5346
|
};
|
|
5341
5347
|
team?: string;
|
|
5342
5348
|
};
|
|
@@ -5906,6 +5912,7 @@ export interface components {
|
|
|
5906
5912
|
rating?: number;
|
|
5907
5913
|
score?: number;
|
|
5908
5914
|
sheet?: components["schemas"]["ArenaSheet"];
|
|
5915
|
+
realName?: string;
|
|
5909
5916
|
}[];
|
|
5910
5917
|
};
|
|
5911
5918
|
featured?: {
|
|
@@ -6205,9 +6212,7 @@ export interface components {
|
|
|
6205
6212
|
name: string;
|
|
6206
6213
|
slug: string;
|
|
6207
6214
|
/** Format: int64 */
|
|
6208
|
-
createdAt
|
|
6209
|
-
/** @description Whether the round is used for rating calculations */
|
|
6210
|
-
rated?: boolean;
|
|
6215
|
+
createdAt?: number;
|
|
6211
6216
|
ongoing?: boolean;
|
|
6212
6217
|
/** Format: int64 */
|
|
6213
6218
|
startsAt?: number;
|
|
@@ -6215,12 +6220,15 @@ export interface components {
|
|
|
6215
6220
|
startsAfterPrevious?: boolean;
|
|
6216
6221
|
/** Format: int64 */
|
|
6217
6222
|
finishedAt?: number;
|
|
6218
|
-
/**
|
|
6223
|
+
/**
|
|
6224
|
+
* @deprecated
|
|
6225
|
+
* @description Use finishedAt instead
|
|
6226
|
+
*/
|
|
6219
6227
|
finished?: boolean;
|
|
6220
6228
|
/** Format: uri */
|
|
6221
6229
|
url: string;
|
|
6222
|
-
/**
|
|
6223
|
-
|
|
6230
|
+
/** @description Whether the round is used for rating calculations */
|
|
6231
|
+
rated?: boolean;
|
|
6224
6232
|
customScoring?: components["schemas"]["BroadcastCustomScoring"];
|
|
6225
6233
|
};
|
|
6226
6234
|
/** @description Photos of players, when available. The object keys are FIDE IDs */
|
|
@@ -7016,7 +7024,7 @@ export interface components {
|
|
|
7016
7024
|
TimeControl:
|
|
7017
7025
|
| {
|
|
7018
7026
|
/** @constant */
|
|
7019
|
-
type
|
|
7027
|
+
type: "clock";
|
|
7020
7028
|
limit?: number;
|
|
7021
7029
|
increment?: number;
|
|
7022
7030
|
/** @example 5+2 */
|
|
@@ -7024,12 +7032,12 @@ export interface components {
|
|
|
7024
7032
|
}
|
|
7025
7033
|
| {
|
|
7026
7034
|
/** @constant */
|
|
7027
|
-
type
|
|
7035
|
+
type: "correspondence";
|
|
7028
7036
|
daysPerTurn?: number;
|
|
7029
7037
|
}
|
|
7030
7038
|
| {
|
|
7031
7039
|
/** @constant */
|
|
7032
|
-
type
|
|
7040
|
+
type: "unlimited";
|
|
7033
7041
|
};
|
|
7034
7042
|
/** @enum {string} */
|
|
7035
7043
|
ChallengeColor: "white" | "black" | "random";
|