@lichess-org/types 2.0.45 → 2.0.46
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 +106 -161
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -3855,75 +3855,38 @@ export interface components {
|
|
|
3855
3855
|
| "WNM"
|
|
3856
3856
|
| "LM"
|
|
3857
3857
|
| "BOT";
|
|
3858
|
-
|
|
3859
|
-
id
|
|
3860
|
-
username
|
|
3861
|
-
title?: components["schemas"]["Title"];
|
|
3862
|
-
patron?: boolean;
|
|
3863
|
-
online?: boolean;
|
|
3858
|
+
TopUser: {
|
|
3859
|
+
id: string;
|
|
3860
|
+
username: string;
|
|
3864
3861
|
perfs?: {
|
|
3865
3862
|
[key: string]: {
|
|
3866
3863
|
rating: number;
|
|
3867
3864
|
progress: number;
|
|
3868
3865
|
};
|
|
3869
3866
|
};
|
|
3870
|
-
|
|
3867
|
+
title?: components["schemas"]["Title"];
|
|
3868
|
+
patron?: boolean;
|
|
3869
|
+
online?: boolean;
|
|
3870
|
+
};
|
|
3871
|
+
PerfTop10: components["schemas"]["TopUser"][];
|
|
3871
3872
|
Top10s: {
|
|
3872
|
-
bullet
|
|
3873
|
-
blitz
|
|
3874
|
-
rapid
|
|
3875
|
-
classical
|
|
3876
|
-
ultraBullet
|
|
3877
|
-
crazyhouse
|
|
3878
|
-
chess960
|
|
3879
|
-
kingOfTheHill
|
|
3880
|
-
threeCheck
|
|
3881
|
-
antichess
|
|
3882
|
-
atomic
|
|
3883
|
-
horde
|
|
3884
|
-
racingKings
|
|
3873
|
+
bullet: components["schemas"]["PerfTop10"];
|
|
3874
|
+
blitz: components["schemas"]["PerfTop10"];
|
|
3875
|
+
rapid: components["schemas"]["PerfTop10"];
|
|
3876
|
+
classical: components["schemas"]["PerfTop10"];
|
|
3877
|
+
ultraBullet: components["schemas"]["PerfTop10"];
|
|
3878
|
+
crazyhouse: components["schemas"]["PerfTop10"];
|
|
3879
|
+
chess960: components["schemas"]["PerfTop10"];
|
|
3880
|
+
kingOfTheHill: components["schemas"]["PerfTop10"];
|
|
3881
|
+
threeCheck: components["schemas"]["PerfTop10"];
|
|
3882
|
+
antichess: components["schemas"]["PerfTop10"];
|
|
3883
|
+
atomic: components["schemas"]["PerfTop10"];
|
|
3884
|
+
horde: components["schemas"]["PerfTop10"];
|
|
3885
|
+
racingKings: components["schemas"]["PerfTop10"];
|
|
3886
|
+
};
|
|
3887
|
+
Leaderboard: {
|
|
3888
|
+
users: components["schemas"]["TopUser"][];
|
|
3885
3889
|
};
|
|
3886
|
-
/** @example {
|
|
3887
|
-
* "users": [
|
|
3888
|
-
* {
|
|
3889
|
-
* "id": "bahadirozen",
|
|
3890
|
-
* "username": "BahadirOzen",
|
|
3891
|
-
* "perfs": {
|
|
3892
|
-
* "bullet": {
|
|
3893
|
-
* "rating": 3018,
|
|
3894
|
-
* "progress": 18
|
|
3895
|
-
* }
|
|
3896
|
-
* },
|
|
3897
|
-
* "online": true,
|
|
3898
|
-
* "title": "FM"
|
|
3899
|
-
* },
|
|
3900
|
-
* {
|
|
3901
|
-
* "id": "penguingim1",
|
|
3902
|
-
* "username": "penguingim1",
|
|
3903
|
-
* "perfs": {
|
|
3904
|
-
* "bullet": {
|
|
3905
|
-
* "rating": 2983,
|
|
3906
|
-
* "progress": -36
|
|
3907
|
-
* }
|
|
3908
|
-
* },
|
|
3909
|
-
* "title": "GM",
|
|
3910
|
-
* "online": true,
|
|
3911
|
-
* "patron": true
|
|
3912
|
-
* },
|
|
3913
|
-
* {
|
|
3914
|
-
* "id": "night-king96",
|
|
3915
|
-
* "username": "Night-King96",
|
|
3916
|
-
* "perfs": {
|
|
3917
|
-
* "bullet": {
|
|
3918
|
-
* "rating": 2958,
|
|
3919
|
-
* "progress": 35
|
|
3920
|
-
* }
|
|
3921
|
-
* },
|
|
3922
|
-
* "title": "GM"
|
|
3923
|
-
* }
|
|
3924
|
-
* ]
|
|
3925
|
-
* } */
|
|
3926
|
-
Leaderboard: unknown;
|
|
3927
3890
|
Perf: {
|
|
3928
3891
|
games: number;
|
|
3929
3892
|
rating: number;
|
|
@@ -4000,10 +3963,8 @@ export interface components {
|
|
|
4000
3963
|
links?: string;
|
|
4001
3964
|
};
|
|
4002
3965
|
PlayTime: {
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
/** @example 12134 */
|
|
4006
|
-
tv?: number;
|
|
3966
|
+
total: number;
|
|
3967
|
+
tv: number;
|
|
4007
3968
|
};
|
|
4008
3969
|
User: {
|
|
4009
3970
|
/** @example georges */
|
|
@@ -4011,6 +3972,7 @@ export interface components {
|
|
|
4011
3972
|
/** @example Georges */
|
|
4012
3973
|
username: string;
|
|
4013
3974
|
perfs?: components["schemas"]["Perfs"];
|
|
3975
|
+
title?: components["schemas"]["Title"];
|
|
4014
3976
|
flair?: components["schemas"]["Flair"];
|
|
4015
3977
|
/**
|
|
4016
3978
|
* Format: int64
|
|
@@ -4033,47 +3995,49 @@ export interface components {
|
|
|
4033
3995
|
* @example 1522636452014
|
|
4034
3996
|
*/
|
|
4035
3997
|
seenAt?: number;
|
|
3998
|
+
playTime?: components["schemas"]["PlayTime"];
|
|
4036
3999
|
/** @example true */
|
|
4037
4000
|
patron?: boolean;
|
|
4038
4001
|
/** @example true */
|
|
4039
4002
|
verified?: boolean;
|
|
4040
|
-
playTime?: components["schemas"]["PlayTime"];
|
|
4041
|
-
title?: components["schemas"]["Title"];
|
|
4042
4003
|
};
|
|
4043
4004
|
Count: {
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4005
|
+
all: number;
|
|
4006
|
+
rated: number;
|
|
4007
|
+
ai: number;
|
|
4008
|
+
draw: number;
|
|
4009
|
+
drawH: number;
|
|
4010
|
+
loss: number;
|
|
4011
|
+
lossH: number;
|
|
4012
|
+
win: number;
|
|
4013
|
+
winH: number;
|
|
4014
|
+
bookmark: number;
|
|
4015
|
+
playing: number;
|
|
4016
|
+
import: number;
|
|
4017
|
+
me: number;
|
|
4018
|
+
};
|
|
4019
|
+
UserStreamer: {
|
|
4020
|
+
twitch?: {
|
|
4021
|
+
/**
|
|
4022
|
+
* Format: uri
|
|
4023
|
+
* @example https://www.twitch.tv/lichessdotorg
|
|
4024
|
+
*/
|
|
4025
|
+
channel?: string;
|
|
4026
|
+
};
|
|
4027
|
+
youTube?: {
|
|
4028
|
+
/**
|
|
4029
|
+
* Format: uri
|
|
4030
|
+
* @example https://www.youtube.com/c/LichessDotOrg
|
|
4031
|
+
*/
|
|
4032
|
+
channel?: string;
|
|
4033
|
+
};
|
|
4070
4034
|
};
|
|
4071
4035
|
UserExtended: components["schemas"]["User"] & {
|
|
4072
4036
|
/**
|
|
4073
4037
|
* Format: uri
|
|
4074
4038
|
* @example https://lichess.org/@/georges
|
|
4075
4039
|
*/
|
|
4076
|
-
url
|
|
4040
|
+
url: string;
|
|
4077
4041
|
/**
|
|
4078
4042
|
* Format: uri
|
|
4079
4043
|
* @example https://lichess.org/yqfLYJ5E/black
|
|
@@ -4082,22 +4046,7 @@ export interface components {
|
|
|
4082
4046
|
count?: components["schemas"]["Count"];
|
|
4083
4047
|
/** @example false */
|
|
4084
4048
|
streaming?: boolean;
|
|
4085
|
-
streamer?:
|
|
4086
|
-
twitch?: {
|
|
4087
|
-
/**
|
|
4088
|
-
* Format: uri
|
|
4089
|
-
* @example https://www.twitch.tv/lichessdotorg
|
|
4090
|
-
*/
|
|
4091
|
-
channel?: string;
|
|
4092
|
-
};
|
|
4093
|
-
youTube?: {
|
|
4094
|
-
/**
|
|
4095
|
-
* Format: uri
|
|
4096
|
-
* @example https://www.youtube.com/c/LichessDotOrg
|
|
4097
|
-
*/
|
|
4098
|
-
channel?: string;
|
|
4099
|
-
};
|
|
4100
|
-
};
|
|
4049
|
+
streamer?: components["schemas"]["UserStreamer"];
|
|
4101
4050
|
/**
|
|
4102
4051
|
* @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
|
|
4103
4052
|
* @example true
|
|
@@ -4402,6 +4351,8 @@ export interface components {
|
|
|
4402
4351
|
after?: number;
|
|
4403
4352
|
};
|
|
4404
4353
|
};
|
|
4354
|
+
/** @enum {string} */
|
|
4355
|
+
GameColor: "white" | "black";
|
|
4405
4356
|
/**
|
|
4406
4357
|
* @default standard
|
|
4407
4358
|
* @example standard
|
|
@@ -4420,8 +4371,7 @@ export interface components {
|
|
|
4420
4371
|
| "fromPosition";
|
|
4421
4372
|
UserActivityCorrespondenceGame: {
|
|
4422
4373
|
id: string;
|
|
4423
|
-
|
|
4424
|
-
color: "white" | "black";
|
|
4374
|
+
color: components["schemas"]["GameColor"];
|
|
4425
4375
|
url: string;
|
|
4426
4376
|
variant: components["schemas"]["VariantKey"];
|
|
4427
4377
|
/** @constant */
|
|
@@ -5105,8 +5055,8 @@ export interface components {
|
|
|
5105
5055
|
patron?: boolean;
|
|
5106
5056
|
};
|
|
5107
5057
|
GameUser: {
|
|
5108
|
-
user
|
|
5109
|
-
rating
|
|
5058
|
+
user: components["schemas"]["LightUser"];
|
|
5059
|
+
rating: number;
|
|
5110
5060
|
ratingDiff?: number;
|
|
5111
5061
|
name?: string;
|
|
5112
5062
|
provisional?: boolean;
|
|
@@ -5255,8 +5205,8 @@ export interface components {
|
|
|
5255
5205
|
| "pool"
|
|
5256
5206
|
| "swiss";
|
|
5257
5207
|
Variant: {
|
|
5258
|
-
key
|
|
5259
|
-
name
|
|
5208
|
+
key: components["schemas"]["VariantKey"];
|
|
5209
|
+
name: string;
|
|
5260
5210
|
short?: string;
|
|
5261
5211
|
};
|
|
5262
5212
|
/** @example [
|
|
@@ -5617,20 +5567,21 @@ export interface components {
|
|
|
5617
5567
|
/** @description The cause of the error. */
|
|
5618
5568
|
error?: string;
|
|
5619
5569
|
};
|
|
5570
|
+
/** @example {
|
|
5571
|
+
* "games": 10,
|
|
5572
|
+
* "score": 14,
|
|
5573
|
+
* "rank": 30,
|
|
5574
|
+
* "performance": 1935
|
|
5575
|
+
* } */
|
|
5576
|
+
ArenaTournamentPlayer: {
|
|
5577
|
+
games: number;
|
|
5578
|
+
score: number;
|
|
5579
|
+
rank: number;
|
|
5580
|
+
performance?: number;
|
|
5581
|
+
};
|
|
5620
5582
|
ArenaTournamentPlayed: {
|
|
5621
5583
|
tournament?: components["schemas"]["ArenaTournament"];
|
|
5622
|
-
|
|
5623
|
-
* "games": 10,
|
|
5624
|
-
* "score": 14,
|
|
5625
|
-
* "rank": 30,
|
|
5626
|
-
* "performance": 1935
|
|
5627
|
-
* } */
|
|
5628
|
-
player?: {
|
|
5629
|
-
games: number;
|
|
5630
|
-
score: number;
|
|
5631
|
-
rank: number;
|
|
5632
|
-
performance?: number;
|
|
5633
|
-
};
|
|
5584
|
+
player?: components["schemas"]["ArenaTournamentPlayer"];
|
|
5634
5585
|
};
|
|
5635
5586
|
/**
|
|
5636
5587
|
* @description Custom initial position (in FEN). Variant must be standard and the game cannot be rated.
|
|
@@ -5739,19 +5690,19 @@ export interface components {
|
|
|
5739
5690
|
* } */
|
|
5740
5691
|
StudyMetadata: {
|
|
5741
5692
|
/** @description The study ID */
|
|
5742
|
-
id
|
|
5693
|
+
id: string;
|
|
5743
5694
|
/** @description The study name */
|
|
5744
|
-
name
|
|
5695
|
+
name: string;
|
|
5745
5696
|
/**
|
|
5746
5697
|
* Format: int64
|
|
5747
5698
|
* @description The study creation date
|
|
5748
5699
|
*/
|
|
5749
|
-
createdAt
|
|
5700
|
+
createdAt: number;
|
|
5750
5701
|
/**
|
|
5751
5702
|
* Format: int64
|
|
5752
5703
|
* @description The study last update date
|
|
5753
5704
|
*/
|
|
5754
|
-
updatedAt
|
|
5705
|
+
updatedAt: number;
|
|
5755
5706
|
};
|
|
5756
5707
|
BroadcastTour: {
|
|
5757
5708
|
id: string;
|
|
@@ -6241,18 +6192,16 @@ export interface components {
|
|
|
6241
6192
|
};
|
|
6242
6193
|
TeamPaginatorJson: {
|
|
6243
6194
|
/** @example 4 */
|
|
6244
|
-
currentPage
|
|
6195
|
+
currentPage: number;
|
|
6245
6196
|
/** @example 15 */
|
|
6246
|
-
maxPerPage
|
|
6247
|
-
currentPageResults
|
|
6248
|
-
/** @example 205194 */
|
|
6249
|
-
nbResults?: number;
|
|
6197
|
+
maxPerPage: number;
|
|
6198
|
+
currentPageResults: components["schemas"]["Team"][];
|
|
6250
6199
|
/** @example 3 */
|
|
6251
|
-
previousPage
|
|
6200
|
+
previousPage: number | null;
|
|
6252
6201
|
/** @example 5 */
|
|
6253
|
-
nextPage
|
|
6254
|
-
|
|
6255
|
-
nbPages
|
|
6202
|
+
nextPage: number | null;
|
|
6203
|
+
nbResults: number;
|
|
6204
|
+
nbPages: number;
|
|
6256
6205
|
};
|
|
6257
6206
|
/**
|
|
6258
6207
|
* @description The current state of the arena tournament
|
|
@@ -6261,17 +6210,17 @@ export interface components {
|
|
|
6261
6210
|
ArenaStatusName: "created" | "started" | "finished";
|
|
6262
6211
|
TeamRequest: {
|
|
6263
6212
|
/** @example coders */
|
|
6264
|
-
teamId
|
|
6213
|
+
teamId: string;
|
|
6265
6214
|
/** @example thibault */
|
|
6266
|
-
userId
|
|
6215
|
+
userId: string;
|
|
6267
6216
|
/** @example 1514505150384 */
|
|
6268
|
-
date
|
|
6217
|
+
date: number;
|
|
6269
6218
|
/** @example Hello, I would like to join the team! */
|
|
6270
6219
|
message?: string;
|
|
6271
6220
|
};
|
|
6272
6221
|
TeamRequestWithUser: {
|
|
6273
|
-
request
|
|
6274
|
-
user
|
|
6222
|
+
request: components["schemas"]["TeamRequest"];
|
|
6223
|
+
user: components["schemas"]["User"];
|
|
6275
6224
|
};
|
|
6276
6225
|
/** @example {
|
|
6277
6226
|
* "users": {
|
|
@@ -6316,13 +6265,13 @@ export interface components {
|
|
|
6316
6265
|
| 38
|
|
6317
6266
|
| 60;
|
|
6318
6267
|
GameStatus: {
|
|
6319
|
-
id
|
|
6320
|
-
name
|
|
6268
|
+
id: components["schemas"]["GameStatusId"];
|
|
6269
|
+
name: components["schemas"]["GameStatusName"];
|
|
6321
6270
|
};
|
|
6322
6271
|
GameEventOpponent: {
|
|
6323
|
-
id
|
|
6324
|
-
username
|
|
6325
|
-
rating
|
|
6272
|
+
id: string;
|
|
6273
|
+
username: string;
|
|
6274
|
+
rating: number;
|
|
6326
6275
|
};
|
|
6327
6276
|
GameCompat: {
|
|
6328
6277
|
/** @description Compatible with Bot API */
|
|
@@ -6334,8 +6283,7 @@ export interface components {
|
|
|
6334
6283
|
fullId: string;
|
|
6335
6284
|
gameId: string;
|
|
6336
6285
|
fen?: string;
|
|
6337
|
-
|
|
6338
|
-
color?: "white" | "black";
|
|
6286
|
+
color?: components["schemas"]["GameColor"];
|
|
6339
6287
|
lastMove?: string;
|
|
6340
6288
|
source?: components["schemas"]["GameSource"];
|
|
6341
6289
|
status?: components["schemas"]["GameStatus"];
|
|
@@ -6452,8 +6400,7 @@ export interface components {
|
|
|
6452
6400
|
timeControl: components["schemas"]["TimeControl"];
|
|
6453
6401
|
/** @enum {string} */
|
|
6454
6402
|
color: "white" | "black" | "random";
|
|
6455
|
-
|
|
6456
|
-
finalColor?: "white" | "black";
|
|
6403
|
+
finalColor?: components["schemas"]["GameColor"];
|
|
6457
6404
|
perf: {
|
|
6458
6405
|
icon?: string;
|
|
6459
6406
|
name?: string;
|
|
@@ -6464,8 +6411,8 @@ export interface components {
|
|
|
6464
6411
|
};
|
|
6465
6412
|
ChallengeEvent: {
|
|
6466
6413
|
/** @constant */
|
|
6467
|
-
type
|
|
6468
|
-
challenge
|
|
6414
|
+
type: "challenge";
|
|
6415
|
+
challenge: components["schemas"]["ChallengeJson"];
|
|
6469
6416
|
compat?: components["schemas"]["GameCompat"];
|
|
6470
6417
|
};
|
|
6471
6418
|
ChallengeCanceledEvent: {
|
|
@@ -6724,8 +6671,7 @@ export interface components {
|
|
|
6724
6671
|
timeControl: components["schemas"]["TimeControl"];
|
|
6725
6672
|
/** @enum {string} */
|
|
6726
6673
|
color: "white" | "black" | "random";
|
|
6727
|
-
|
|
6728
|
-
finalColor?: "white" | "black";
|
|
6674
|
+
finalColor?: components["schemas"]["GameColor"];
|
|
6729
6675
|
perf: {
|
|
6730
6676
|
icon?: string;
|
|
6731
6677
|
name?: string;
|
|
@@ -12808,8 +12754,7 @@ export interface operations {
|
|
|
12808
12754
|
status?: components["schemas"]["GameStatus"];
|
|
12809
12755
|
/** Format: int64 */
|
|
12810
12756
|
createdAt?: number;
|
|
12811
|
-
|
|
12812
|
-
player?: "white" | "black";
|
|
12757
|
+
player?: components["schemas"]["GameColor"];
|
|
12813
12758
|
fullId?: string;
|
|
12814
12759
|
};
|
|
12815
12760
|
};
|