@lichess-org/types 2.0.42 → 2.0.43
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 +81 -70
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -3838,10 +3838,27 @@ export interface components {
|
|
|
3838
3838
|
schemas: {
|
|
3839
3839
|
/** @description See [available flair list and images](https://github.com/lichess-org/lila/tree/master/public/flair) */
|
|
3840
3840
|
Flair: string;
|
|
3841
|
+
/**
|
|
3842
|
+
* @description only appears if the user is a titled player or a bot user
|
|
3843
|
+
* @enum {string}
|
|
3844
|
+
*/
|
|
3845
|
+
Title:
|
|
3846
|
+
| "GM"
|
|
3847
|
+
| "WGM"
|
|
3848
|
+
| "IM"
|
|
3849
|
+
| "WIM"
|
|
3850
|
+
| "FM"
|
|
3851
|
+
| "WFM"
|
|
3852
|
+
| "NM"
|
|
3853
|
+
| "CM"
|
|
3854
|
+
| "WCM"
|
|
3855
|
+
| "WNM"
|
|
3856
|
+
| "LM"
|
|
3857
|
+
| "BOT";
|
|
3841
3858
|
PerfTop10: {
|
|
3842
3859
|
id?: string;
|
|
3843
3860
|
username?: string;
|
|
3844
|
-
title?:
|
|
3861
|
+
title?: components["schemas"]["Title"];
|
|
3845
3862
|
patron?: boolean;
|
|
3846
3863
|
online?: boolean;
|
|
3847
3864
|
perfs?: {
|
|
@@ -3993,23 +4010,6 @@ export interface components {
|
|
|
3993
4010
|
/** @example 12134 */
|
|
3994
4011
|
tv?: number;
|
|
3995
4012
|
};
|
|
3996
|
-
/**
|
|
3997
|
-
* @description only appears if the user is a titled player or a bot user
|
|
3998
|
-
* @enum {string}
|
|
3999
|
-
*/
|
|
4000
|
-
Title:
|
|
4001
|
-
| "GM"
|
|
4002
|
-
| "WGM"
|
|
4003
|
-
| "IM"
|
|
4004
|
-
| "WIM"
|
|
4005
|
-
| "FM"
|
|
4006
|
-
| "WFM"
|
|
4007
|
-
| "NM"
|
|
4008
|
-
| "CM"
|
|
4009
|
-
| "WCM"
|
|
4010
|
-
| "WNM"
|
|
4011
|
-
| "LM"
|
|
4012
|
-
| "BOT";
|
|
4013
4013
|
User: {
|
|
4014
4014
|
/** @example georges */
|
|
4015
4015
|
id: string;
|
|
@@ -6054,7 +6054,7 @@ export interface components {
|
|
|
6054
6054
|
/** @example 2138 */
|
|
6055
6055
|
performance?: number;
|
|
6056
6056
|
/** @example FM */
|
|
6057
|
-
title?:
|
|
6057
|
+
title?: components["schemas"]["Title"];
|
|
6058
6058
|
/** @example 3408230 */
|
|
6059
6059
|
fideId?: number;
|
|
6060
6060
|
/** @example CHI */
|
|
@@ -6206,7 +6206,7 @@ export interface components {
|
|
|
6206
6206
|
fen?: string;
|
|
6207
6207
|
players?: {
|
|
6208
6208
|
name?: string;
|
|
6209
|
-
title?:
|
|
6209
|
+
title?: components["schemas"]["Title"];
|
|
6210
6210
|
rating?: number;
|
|
6211
6211
|
clock?: number;
|
|
6212
6212
|
fed?: string;
|
|
@@ -6351,6 +6351,12 @@ export interface components {
|
|
|
6351
6351
|
*/
|
|
6352
6352
|
date?: number;
|
|
6353
6353
|
};
|
|
6354
|
+
GameCompat: {
|
|
6355
|
+
/** @description Compatible with Bot API */
|
|
6356
|
+
bot?: boolean;
|
|
6357
|
+
/** @description Compatible with Board API */
|
|
6358
|
+
board?: boolean;
|
|
6359
|
+
};
|
|
6354
6360
|
/** @example {
|
|
6355
6361
|
* "fullId": "9NaCTu2vz1c4",
|
|
6356
6362
|
* "gameId": "9NaCTu2v",
|
|
@@ -6411,10 +6417,7 @@ export interface components {
|
|
|
6411
6417
|
};
|
|
6412
6418
|
isMyTurn?: boolean;
|
|
6413
6419
|
secondsLeft?: number;
|
|
6414
|
-
compat?:
|
|
6415
|
-
bot?: boolean;
|
|
6416
|
-
board?: boolean;
|
|
6417
|
-
};
|
|
6420
|
+
compat?: components["schemas"]["GameCompat"];
|
|
6418
6421
|
id?: string;
|
|
6419
6422
|
};
|
|
6420
6423
|
GameStartEvent: {
|
|
@@ -6435,28 +6438,33 @@ export interface components {
|
|
|
6435
6438
|
| "declined"
|
|
6436
6439
|
| "accepted";
|
|
6437
6440
|
ChallengeUser: {
|
|
6441
|
+
id: string;
|
|
6442
|
+
name: string;
|
|
6438
6443
|
rating?: number;
|
|
6444
|
+
title?: components["schemas"]["Title"] | null;
|
|
6445
|
+
flair?: components["schemas"]["Flair"];
|
|
6446
|
+
patron?: boolean;
|
|
6439
6447
|
provisional?: boolean;
|
|
6440
6448
|
online?: boolean;
|
|
6441
6449
|
lag?: number;
|
|
6442
|
-
}
|
|
6450
|
+
};
|
|
6443
6451
|
TimeControl:
|
|
6444
6452
|
| {
|
|
6445
|
-
/** @
|
|
6446
|
-
type?:
|
|
6453
|
+
/** @constant */
|
|
6454
|
+
type?: "clock";
|
|
6447
6455
|
limit?: number;
|
|
6448
6456
|
increment?: number;
|
|
6449
6457
|
/** @example 5+2 */
|
|
6450
6458
|
show?: string;
|
|
6451
6459
|
}
|
|
6452
6460
|
| {
|
|
6453
|
-
/** @
|
|
6454
|
-
type?:
|
|
6461
|
+
/** @constant */
|
|
6462
|
+
type?: "correspondence";
|
|
6455
6463
|
daysPerTurn?: number;
|
|
6456
6464
|
}
|
|
6457
6465
|
| {
|
|
6458
|
-
/** @
|
|
6459
|
-
type?:
|
|
6466
|
+
/** @constant */
|
|
6467
|
+
type?: "unlimited";
|
|
6460
6468
|
};
|
|
6461
6469
|
/** @example {
|
|
6462
6470
|
* "id": "H9fIRZUk",
|
|
@@ -6528,10 +6536,7 @@ export interface components {
|
|
|
6528
6536
|
/** @constant */
|
|
6529
6537
|
type?: "challenge";
|
|
6530
6538
|
challenge?: components["schemas"]["ChallengeJson"];
|
|
6531
|
-
compat?:
|
|
6532
|
-
bot?: boolean;
|
|
6533
|
-
board?: boolean;
|
|
6534
|
-
};
|
|
6539
|
+
compat?: components["schemas"]["GameCompat"];
|
|
6535
6540
|
};
|
|
6536
6541
|
ChallengeCanceledEvent: {
|
|
6537
6542
|
/** @constant */
|
|
@@ -6612,7 +6617,7 @@ export interface components {
|
|
|
6612
6617
|
aiLevel?: number;
|
|
6613
6618
|
id?: string;
|
|
6614
6619
|
name?: string;
|
|
6615
|
-
title?:
|
|
6620
|
+
title?: components["schemas"]["Title"] | null;
|
|
6616
6621
|
rating?: number;
|
|
6617
6622
|
provisional?: boolean;
|
|
6618
6623
|
};
|
|
@@ -6772,36 +6777,10 @@ export interface components {
|
|
|
6772
6777
|
* "user": "thibault"
|
|
6773
6778
|
* }
|
|
6774
6779
|
* ] */
|
|
6775
|
-
GameChat:
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
* "status": "created",
|
|
6780
|
-
* "challenger": null,
|
|
6781
|
-
* "destUser": null,
|
|
6782
|
-
* "variant": {
|
|
6783
|
-
* "key": "standard",
|
|
6784
|
-
* "name": "Standard",
|
|
6785
|
-
* "short": "Std"
|
|
6786
|
-
* },
|
|
6787
|
-
* "rated": false,
|
|
6788
|
-
* "speed": "rapid",
|
|
6789
|
-
* "timeControl": {
|
|
6790
|
-
* "type": "clock",
|
|
6791
|
-
* "limit": 600,
|
|
6792
|
-
* "increment": 5,
|
|
6793
|
-
* "show": "10+5"
|
|
6794
|
-
* },
|
|
6795
|
-
* "color": "random",
|
|
6796
|
-
* "finalColor": "black",
|
|
6797
|
-
* "perf": {
|
|
6798
|
-
* "icon": "",
|
|
6799
|
-
* "name": "Rapid"
|
|
6800
|
-
* },
|
|
6801
|
-
* "open": {},
|
|
6802
|
-
* "urlWhite": "https://lichess.org/3gH5lybT?color=white",
|
|
6803
|
-
* "urlBlack": "https://lichess.org/3gH5lybT?color=black"
|
|
6804
|
-
* } */
|
|
6780
|
+
GameChat: {
|
|
6781
|
+
text?: string;
|
|
6782
|
+
user?: string;
|
|
6783
|
+
}[];
|
|
6805
6784
|
ChallengeOpenJson: {
|
|
6806
6785
|
id: string;
|
|
6807
6786
|
/** Format: uri */
|
|
@@ -7449,7 +7428,7 @@ export interface operations {
|
|
|
7449
7428
|
id: string;
|
|
7450
7429
|
name: string;
|
|
7451
7430
|
flair?: components["schemas"]["Flair"];
|
|
7452
|
-
title?:
|
|
7431
|
+
title?: components["schemas"]["Title"];
|
|
7453
7432
|
online?: boolean;
|
|
7454
7433
|
playing?: boolean;
|
|
7455
7434
|
streaming?: boolean;
|
|
@@ -12889,7 +12868,7 @@ export interface operations {
|
|
|
12889
12868
|
content: {
|
|
12890
12869
|
"application/x-www-form-urlencoded": {
|
|
12891
12870
|
/** @description AI strength */
|
|
12892
|
-
level
|
|
12871
|
+
level: number;
|
|
12893
12872
|
/**
|
|
12894
12873
|
* @description Clock initial time in seconds. If empty, a correspondence game is created.
|
|
12895
12874
|
* @example 300
|
|
@@ -12924,7 +12903,39 @@ export interface operations {
|
|
|
12924
12903
|
[name: string]: unknown;
|
|
12925
12904
|
};
|
|
12926
12905
|
content: {
|
|
12927
|
-
"application/json":
|
|
12906
|
+
"application/json": {
|
|
12907
|
+
id?: string;
|
|
12908
|
+
variant?: components["schemas"]["Variant"];
|
|
12909
|
+
speed?: components["schemas"]["Speed"];
|
|
12910
|
+
perf?: components["schemas"]["PerfType"];
|
|
12911
|
+
rated?: boolean;
|
|
12912
|
+
fen?: string;
|
|
12913
|
+
turns?: number;
|
|
12914
|
+
source?: components["schemas"]["GameSource"];
|
|
12915
|
+
status?: {
|
|
12916
|
+
/** @enum {integer} */
|
|
12917
|
+
id?:
|
|
12918
|
+
| 10
|
|
12919
|
+
| 20
|
|
12920
|
+
| 25
|
|
12921
|
+
| 30
|
|
12922
|
+
| 31
|
|
12923
|
+
| 32
|
|
12924
|
+
| 33
|
|
12925
|
+
| 34
|
|
12926
|
+
| 35
|
|
12927
|
+
| 36
|
|
12928
|
+
| 37
|
|
12929
|
+
| 38
|
|
12930
|
+
| 60;
|
|
12931
|
+
name?: components["schemas"]["GameStatus"];
|
|
12932
|
+
};
|
|
12933
|
+
/** Format: int64 */
|
|
12934
|
+
createdAt?: number;
|
|
12935
|
+
/** @enum {string} */
|
|
12936
|
+
player?: "white" | "black";
|
|
12937
|
+
fullId?: string;
|
|
12938
|
+
};
|
|
12928
12939
|
};
|
|
12929
12940
|
};
|
|
12930
12941
|
/** @description The creation of a game with Lichess AI failed. */
|
|
@@ -13331,7 +13342,7 @@ export interface operations {
|
|
|
13331
13342
|
path: {
|
|
13332
13343
|
gameId: string;
|
|
13333
13344
|
/** @description How many seconds to give */
|
|
13334
|
-
seconds:
|
|
13345
|
+
seconds: number;
|
|
13335
13346
|
};
|
|
13336
13347
|
cookie?: never;
|
|
13337
13348
|
};
|