@lichess-org/types 2.0.44 → 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 +147 -254
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -3855,92 +3855,50 @@ 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
|
-
|
|
3929
|
-
|
|
3930
|
-
/** @
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
rd?: number;
|
|
3934
|
-
/** @example -22 */
|
|
3935
|
-
prog?: number;
|
|
3891
|
+
games: number;
|
|
3892
|
+
rating: number;
|
|
3893
|
+
/** @description rating deviation */
|
|
3894
|
+
rd: number;
|
|
3895
|
+
prog: number;
|
|
3936
3896
|
/** @description only appears if a user's perf rating are [provisional](https://lichess.org/faq#provisional) */
|
|
3937
3897
|
prov?: boolean;
|
|
3938
3898
|
};
|
|
3939
3899
|
PuzzleModePerf: {
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
/** @example 61 */
|
|
3943
|
-
score?: number;
|
|
3900
|
+
runs: number;
|
|
3901
|
+
score: number;
|
|
3944
3902
|
};
|
|
3945
3903
|
Perfs: {
|
|
3946
3904
|
chess960?: components["schemas"]["Perf"];
|
|
@@ -4005,10 +3963,8 @@ export interface components {
|
|
|
4005
3963
|
links?: string;
|
|
4006
3964
|
};
|
|
4007
3965
|
PlayTime: {
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
/** @example 12134 */
|
|
4011
|
-
tv?: number;
|
|
3966
|
+
total: number;
|
|
3967
|
+
tv: number;
|
|
4012
3968
|
};
|
|
4013
3969
|
User: {
|
|
4014
3970
|
/** @example georges */
|
|
@@ -4016,6 +3972,7 @@ export interface components {
|
|
|
4016
3972
|
/** @example Georges */
|
|
4017
3973
|
username: string;
|
|
4018
3974
|
perfs?: components["schemas"]["Perfs"];
|
|
3975
|
+
title?: components["schemas"]["Title"];
|
|
4019
3976
|
flair?: components["schemas"]["Flair"];
|
|
4020
3977
|
/**
|
|
4021
3978
|
* Format: int64
|
|
@@ -4038,47 +3995,49 @@ export interface components {
|
|
|
4038
3995
|
* @example 1522636452014
|
|
4039
3996
|
*/
|
|
4040
3997
|
seenAt?: number;
|
|
3998
|
+
playTime?: components["schemas"]["PlayTime"];
|
|
4041
3999
|
/** @example true */
|
|
4042
4000
|
patron?: boolean;
|
|
4043
4001
|
/** @example true */
|
|
4044
4002
|
verified?: boolean;
|
|
4045
|
-
playTime?: components["schemas"]["PlayTime"];
|
|
4046
|
-
title?: components["schemas"]["Title"];
|
|
4047
4003
|
};
|
|
4048
4004
|
Count: {
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
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
|
+
};
|
|
4075
4034
|
};
|
|
4076
4035
|
UserExtended: components["schemas"]["User"] & {
|
|
4077
4036
|
/**
|
|
4078
4037
|
* Format: uri
|
|
4079
4038
|
* @example https://lichess.org/@/georges
|
|
4080
4039
|
*/
|
|
4081
|
-
url
|
|
4040
|
+
url: string;
|
|
4082
4041
|
/**
|
|
4083
4042
|
* Format: uri
|
|
4084
4043
|
* @example https://lichess.org/yqfLYJ5E/black
|
|
@@ -4087,22 +4046,7 @@ export interface components {
|
|
|
4087
4046
|
count?: components["schemas"]["Count"];
|
|
4088
4047
|
/** @example false */
|
|
4089
4048
|
streaming?: boolean;
|
|
4090
|
-
streamer?:
|
|
4091
|
-
twitch?: {
|
|
4092
|
-
/**
|
|
4093
|
-
* Format: uri
|
|
4094
|
-
* @example https://www.twitch.tv/lichessdotorg
|
|
4095
|
-
*/
|
|
4096
|
-
channel?: string;
|
|
4097
|
-
};
|
|
4098
|
-
youTube?: {
|
|
4099
|
-
/**
|
|
4100
|
-
* Format: uri
|
|
4101
|
-
* @example https://www.youtube.com/c/LichessDotOrg
|
|
4102
|
-
*/
|
|
4103
|
-
channel?: string;
|
|
4104
|
-
};
|
|
4105
|
-
};
|
|
4049
|
+
streamer?: components["schemas"]["UserStreamer"];
|
|
4106
4050
|
/**
|
|
4107
4051
|
* @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
|
|
4108
4052
|
* @example true
|
|
@@ -4407,6 +4351,8 @@ export interface components {
|
|
|
4407
4351
|
after?: number;
|
|
4408
4352
|
};
|
|
4409
4353
|
};
|
|
4354
|
+
/** @enum {string} */
|
|
4355
|
+
GameColor: "white" | "black";
|
|
4410
4356
|
/**
|
|
4411
4357
|
* @default standard
|
|
4412
4358
|
* @example standard
|
|
@@ -4425,8 +4371,7 @@ export interface components {
|
|
|
4425
4371
|
| "fromPosition";
|
|
4426
4372
|
UserActivityCorrespondenceGame: {
|
|
4427
4373
|
id: string;
|
|
4428
|
-
|
|
4429
|
-
color: "white" | "black";
|
|
4374
|
+
color: components["schemas"]["GameColor"];
|
|
4430
4375
|
url: string;
|
|
4431
4376
|
variant: components["schemas"]["VariantKey"];
|
|
4432
4377
|
/** @constant */
|
|
@@ -4465,18 +4410,9 @@ export interface components {
|
|
|
4465
4410
|
puzzles?: {
|
|
4466
4411
|
score?: components["schemas"]["UserActivityScore"];
|
|
4467
4412
|
};
|
|
4468
|
-
storm?:
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
};
|
|
4472
|
-
racer?: {
|
|
4473
|
-
runs?: number;
|
|
4474
|
-
score?: number;
|
|
4475
|
-
};
|
|
4476
|
-
streak?: {
|
|
4477
|
-
runs?: number;
|
|
4478
|
-
score?: number;
|
|
4479
|
-
};
|
|
4413
|
+
storm?: components["schemas"]["PuzzleModePerf"];
|
|
4414
|
+
racer?: components["schemas"]["PuzzleModePerf"];
|
|
4415
|
+
streak?: components["schemas"]["PuzzleModePerf"];
|
|
4480
4416
|
tournaments?: {
|
|
4481
4417
|
nb?: number;
|
|
4482
4418
|
best?: {
|
|
@@ -4512,6 +4448,7 @@ export interface components {
|
|
|
4512
4448
|
teams?: {
|
|
4513
4449
|
url: string;
|
|
4514
4450
|
name: string;
|
|
4451
|
+
flair?: components["schemas"]["Flair"];
|
|
4515
4452
|
}[];
|
|
4516
4453
|
posts?: {
|
|
4517
4454
|
topicUrl: string;
|
|
@@ -5095,11 +5032,8 @@ export interface components {
|
|
|
5095
5032
|
| "rapid"
|
|
5096
5033
|
| "classical"
|
|
5097
5034
|
| "correspondence";
|
|
5098
|
-
/**
|
|
5099
|
-
|
|
5100
|
-
* @enum {string}
|
|
5101
|
-
*/
|
|
5102
|
-
GameStatus:
|
|
5035
|
+
/** @enum {string} */
|
|
5036
|
+
GameStatusName:
|
|
5103
5037
|
| "created"
|
|
5104
5038
|
| "started"
|
|
5105
5039
|
| "aborted"
|
|
@@ -5121,8 +5055,8 @@ export interface components {
|
|
|
5121
5055
|
patron?: boolean;
|
|
5122
5056
|
};
|
|
5123
5057
|
GameUser: {
|
|
5124
|
-
user
|
|
5125
|
-
rating
|
|
5058
|
+
user: components["schemas"]["LightUser"];
|
|
5059
|
+
rating: number;
|
|
5126
5060
|
ratingDiff?: number;
|
|
5127
5061
|
name?: string;
|
|
5128
5062
|
provisional?: boolean;
|
|
@@ -5169,7 +5103,7 @@ export interface components {
|
|
|
5169
5103
|
createdAt: number;
|
|
5170
5104
|
/** Format: int64 */
|
|
5171
5105
|
lastMoveAt: number;
|
|
5172
|
-
status: components["schemas"]["
|
|
5106
|
+
status: components["schemas"]["GameStatusName"];
|
|
5173
5107
|
source?: string;
|
|
5174
5108
|
players: {
|
|
5175
5109
|
white: components["schemas"]["GameUser"];
|
|
@@ -5271,8 +5205,8 @@ export interface components {
|
|
|
5271
5205
|
| "pool"
|
|
5272
5206
|
| "swiss";
|
|
5273
5207
|
Variant: {
|
|
5274
|
-
key
|
|
5275
|
-
name
|
|
5208
|
+
key: components["schemas"]["VariantKey"];
|
|
5209
|
+
name: string;
|
|
5276
5210
|
short?: string;
|
|
5277
5211
|
};
|
|
5278
5212
|
/** @example [
|
|
@@ -5633,20 +5567,21 @@ export interface components {
|
|
|
5633
5567
|
/** @description The cause of the error. */
|
|
5634
5568
|
error?: string;
|
|
5635
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
|
+
};
|
|
5636
5582
|
ArenaTournamentPlayed: {
|
|
5637
5583
|
tournament?: components["schemas"]["ArenaTournament"];
|
|
5638
|
-
|
|
5639
|
-
* "games": 10,
|
|
5640
|
-
* "score": 14,
|
|
5641
|
-
* "rank": 30,
|
|
5642
|
-
* "performance": 1935
|
|
5643
|
-
* } */
|
|
5644
|
-
player?: {
|
|
5645
|
-
games: number;
|
|
5646
|
-
score: number;
|
|
5647
|
-
rank: number;
|
|
5648
|
-
performance?: number;
|
|
5649
|
-
};
|
|
5584
|
+
player?: components["schemas"]["ArenaTournamentPlayer"];
|
|
5650
5585
|
};
|
|
5651
5586
|
/**
|
|
5652
5587
|
* @description Custom initial position (in FEN). Variant must be standard and the game cannot be rated.
|
|
@@ -5755,19 +5690,19 @@ export interface components {
|
|
|
5755
5690
|
* } */
|
|
5756
5691
|
StudyMetadata: {
|
|
5757
5692
|
/** @description The study ID */
|
|
5758
|
-
id
|
|
5693
|
+
id: string;
|
|
5759
5694
|
/** @description The study name */
|
|
5760
|
-
name
|
|
5695
|
+
name: string;
|
|
5761
5696
|
/**
|
|
5762
5697
|
* Format: int64
|
|
5763
5698
|
* @description The study creation date
|
|
5764
5699
|
*/
|
|
5765
|
-
createdAt
|
|
5700
|
+
createdAt: number;
|
|
5766
5701
|
/**
|
|
5767
5702
|
* Format: int64
|
|
5768
5703
|
* @description The study last update date
|
|
5769
5704
|
*/
|
|
5770
|
-
updatedAt
|
|
5705
|
+
updatedAt: number;
|
|
5771
5706
|
};
|
|
5772
5707
|
BroadcastTour: {
|
|
5773
5708
|
id: string;
|
|
@@ -6257,18 +6192,16 @@ export interface components {
|
|
|
6257
6192
|
};
|
|
6258
6193
|
TeamPaginatorJson: {
|
|
6259
6194
|
/** @example 4 */
|
|
6260
|
-
currentPage
|
|
6195
|
+
currentPage: number;
|
|
6261
6196
|
/** @example 15 */
|
|
6262
|
-
maxPerPage
|
|
6263
|
-
currentPageResults
|
|
6264
|
-
/** @example 205194 */
|
|
6265
|
-
nbResults?: number;
|
|
6197
|
+
maxPerPage: number;
|
|
6198
|
+
currentPageResults: components["schemas"]["Team"][];
|
|
6266
6199
|
/** @example 3 */
|
|
6267
|
-
previousPage
|
|
6200
|
+
previousPage: number | null;
|
|
6268
6201
|
/** @example 5 */
|
|
6269
|
-
nextPage
|
|
6270
|
-
|
|
6271
|
-
nbPages
|
|
6202
|
+
nextPage: number | null;
|
|
6203
|
+
nbResults: number;
|
|
6204
|
+
nbPages: number;
|
|
6272
6205
|
};
|
|
6273
6206
|
/**
|
|
6274
6207
|
* @description The current state of the arena tournament
|
|
@@ -6277,17 +6210,17 @@ export interface components {
|
|
|
6277
6210
|
ArenaStatusName: "created" | "started" | "finished";
|
|
6278
6211
|
TeamRequest: {
|
|
6279
6212
|
/** @example coders */
|
|
6280
|
-
teamId
|
|
6213
|
+
teamId: string;
|
|
6281
6214
|
/** @example thibault */
|
|
6282
|
-
userId
|
|
6215
|
+
userId: string;
|
|
6283
6216
|
/** @example 1514505150384 */
|
|
6284
|
-
date
|
|
6217
|
+
date: number;
|
|
6285
6218
|
/** @example Hello, I would like to join the team! */
|
|
6286
6219
|
message?: string;
|
|
6287
6220
|
};
|
|
6288
6221
|
TeamRequestWithUser: {
|
|
6289
|
-
request
|
|
6290
|
-
user
|
|
6222
|
+
request: components["schemas"]["TeamRequest"];
|
|
6223
|
+
user: components["schemas"]["User"];
|
|
6291
6224
|
};
|
|
6292
6225
|
/** @example {
|
|
6293
6226
|
* "users": {
|
|
@@ -6316,70 +6249,50 @@ export interface components {
|
|
|
6316
6249
|
*/
|
|
6317
6250
|
date?: number;
|
|
6318
6251
|
};
|
|
6252
|
+
/** @enum {integer} */
|
|
6253
|
+
GameStatusId:
|
|
6254
|
+
| 10
|
|
6255
|
+
| 20
|
|
6256
|
+
| 25
|
|
6257
|
+
| 30
|
|
6258
|
+
| 31
|
|
6259
|
+
| 32
|
|
6260
|
+
| 33
|
|
6261
|
+
| 34
|
|
6262
|
+
| 35
|
|
6263
|
+
| 36
|
|
6264
|
+
| 37
|
|
6265
|
+
| 38
|
|
6266
|
+
| 60;
|
|
6267
|
+
GameStatus: {
|
|
6268
|
+
id: components["schemas"]["GameStatusId"];
|
|
6269
|
+
name: components["schemas"]["GameStatusName"];
|
|
6270
|
+
};
|
|
6271
|
+
GameEventOpponent: {
|
|
6272
|
+
id: string;
|
|
6273
|
+
username: string;
|
|
6274
|
+
rating: number;
|
|
6275
|
+
};
|
|
6319
6276
|
GameCompat: {
|
|
6320
6277
|
/** @description Compatible with Bot API */
|
|
6321
6278
|
bot?: boolean;
|
|
6322
6279
|
/** @description Compatible with Board API */
|
|
6323
6280
|
board?: boolean;
|
|
6324
6281
|
};
|
|
6325
|
-
/** @example {
|
|
6326
|
-
* "fullId": "9NaCTu2vz1c4",
|
|
6327
|
-
* "gameId": "9NaCTu2v",
|
|
6328
|
-
* "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
|
|
6329
|
-
* "color": "white",
|
|
6330
|
-
* "lastMove": "",
|
|
6331
|
-
* "source": "friend",
|
|
6332
|
-
* "status": {
|
|
6333
|
-
* "id": 20,
|
|
6334
|
-
* "name": "started"
|
|
6335
|
-
* },
|
|
6336
|
-
* "variant": {
|
|
6337
|
-
* "key": "standard",
|
|
6338
|
-
* "name": "Standard"
|
|
6339
|
-
* },
|
|
6340
|
-
* "speed": "blitz",
|
|
6341
|
-
* "perf": "blitz",
|
|
6342
|
-
* "rated": false,
|
|
6343
|
-
* "hasMoved": false,
|
|
6344
|
-
* "opponent": {
|
|
6345
|
-
* "id": "mary",
|
|
6346
|
-
* "username": "Mary",
|
|
6347
|
-
* "rating": 1007
|
|
6348
|
-
* },
|
|
6349
|
-
* "isMyTurn": true,
|
|
6350
|
-
* "secondsLeft": 300,
|
|
6351
|
-
* "compat": {
|
|
6352
|
-
* "bot": false,
|
|
6353
|
-
* "board": true
|
|
6354
|
-
* },
|
|
6355
|
-
* "id": "9NaCTu2v"
|
|
6356
|
-
* } */
|
|
6357
6282
|
GameEventInfo: {
|
|
6358
|
-
fullId
|
|
6359
|
-
gameId
|
|
6283
|
+
fullId: string;
|
|
6284
|
+
gameId: string;
|
|
6360
6285
|
fen?: string;
|
|
6361
|
-
|
|
6362
|
-
color?: "white" | "black";
|
|
6286
|
+
color?: components["schemas"]["GameColor"];
|
|
6363
6287
|
lastMove?: string;
|
|
6364
6288
|
source?: components["schemas"]["GameSource"];
|
|
6365
|
-
status?:
|
|
6366
|
-
|
|
6367
|
-
id?: 10 | 20 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 60;
|
|
6368
|
-
name?: components["schemas"]["GameStatus"];
|
|
6369
|
-
};
|
|
6370
|
-
variant?: {
|
|
6371
|
-
key?: string;
|
|
6372
|
-
name?: string;
|
|
6373
|
-
};
|
|
6289
|
+
status?: components["schemas"]["GameStatus"];
|
|
6290
|
+
variant?: components["schemas"]["Variant"];
|
|
6374
6291
|
speed?: components["schemas"]["Speed"];
|
|
6375
6292
|
perf?: string;
|
|
6376
6293
|
rated?: boolean;
|
|
6377
6294
|
hasMoved?: boolean;
|
|
6378
|
-
opponent?:
|
|
6379
|
-
id?: string;
|
|
6380
|
-
username?: string;
|
|
6381
|
-
rating?: number;
|
|
6382
|
-
};
|
|
6295
|
+
opponent?: components["schemas"]["GameEventOpponent"];
|
|
6383
6296
|
isMyTurn?: boolean;
|
|
6384
6297
|
secondsLeft?: number;
|
|
6385
6298
|
compat?: components["schemas"]["GameCompat"];
|
|
@@ -6487,8 +6400,7 @@ export interface components {
|
|
|
6487
6400
|
timeControl: components["schemas"]["TimeControl"];
|
|
6488
6401
|
/** @enum {string} */
|
|
6489
6402
|
color: "white" | "black" | "random";
|
|
6490
|
-
|
|
6491
|
-
finalColor?: "white" | "black";
|
|
6403
|
+
finalColor?: components["schemas"]["GameColor"];
|
|
6492
6404
|
perf: {
|
|
6493
6405
|
icon?: string;
|
|
6494
6406
|
name?: string;
|
|
@@ -6499,8 +6411,8 @@ export interface components {
|
|
|
6499
6411
|
};
|
|
6500
6412
|
ChallengeEvent: {
|
|
6501
6413
|
/** @constant */
|
|
6502
|
-
type
|
|
6503
|
-
challenge
|
|
6414
|
+
type: "challenge";
|
|
6415
|
+
challenge: components["schemas"]["ChallengeJson"];
|
|
6504
6416
|
compat?: components["schemas"]["GameCompat"];
|
|
6505
6417
|
};
|
|
6506
6418
|
ChallengeCanceledEvent: {
|
|
@@ -6612,7 +6524,7 @@ export interface components {
|
|
|
6612
6524
|
winc: number;
|
|
6613
6525
|
/** @description Integer of Black Fisher increment. */
|
|
6614
6526
|
binc: number;
|
|
6615
|
-
status: components["schemas"]["
|
|
6527
|
+
status: components["schemas"]["GameStatusName"];
|
|
6616
6528
|
/** @description Color of the winner, if any */
|
|
6617
6529
|
winner?: string;
|
|
6618
6530
|
/** @description true if white is offering draw, else omitted */
|
|
@@ -6759,8 +6671,7 @@ export interface components {
|
|
|
6759
6671
|
timeControl: components["schemas"]["TimeControl"];
|
|
6760
6672
|
/** @enum {string} */
|
|
6761
6673
|
color: "white" | "black" | "random";
|
|
6762
|
-
|
|
6763
|
-
finalColor?: "white" | "black";
|
|
6674
|
+
finalColor?: components["schemas"]["GameColor"];
|
|
6764
6675
|
perf: {
|
|
6765
6676
|
icon?: string;
|
|
6766
6677
|
name?: string;
|
|
@@ -8306,7 +8217,7 @@ export interface operations {
|
|
|
8306
8217
|
color: "white" | "black";
|
|
8307
8218
|
lastMove: string;
|
|
8308
8219
|
source: components["schemas"]["GameSource"];
|
|
8309
|
-
status?: components["schemas"]["
|
|
8220
|
+
status?: components["schemas"]["GameStatusName"];
|
|
8310
8221
|
variant: components["schemas"]["Variant"];
|
|
8311
8222
|
speed: components["schemas"]["Speed"];
|
|
8312
8223
|
perf: components["schemas"]["PerfType"];
|
|
@@ -12840,28 +12751,10 @@ export interface operations {
|
|
|
12840
12751
|
fen?: string;
|
|
12841
12752
|
turns?: number;
|
|
12842
12753
|
source?: components["schemas"]["GameSource"];
|
|
12843
|
-
status?:
|
|
12844
|
-
/** @enum {integer} */
|
|
12845
|
-
id?:
|
|
12846
|
-
| 10
|
|
12847
|
-
| 20
|
|
12848
|
-
| 25
|
|
12849
|
-
| 30
|
|
12850
|
-
| 31
|
|
12851
|
-
| 32
|
|
12852
|
-
| 33
|
|
12853
|
-
| 34
|
|
12854
|
-
| 35
|
|
12855
|
-
| 36
|
|
12856
|
-
| 37
|
|
12857
|
-
| 38
|
|
12858
|
-
| 60;
|
|
12859
|
-
name?: components["schemas"]["GameStatus"];
|
|
12860
|
-
};
|
|
12754
|
+
status?: components["schemas"]["GameStatus"];
|
|
12861
12755
|
/** Format: int64 */
|
|
12862
12756
|
createdAt?: number;
|
|
12863
|
-
|
|
12864
|
-
player?: "white" | "black";
|
|
12757
|
+
player?: components["schemas"]["GameColor"];
|
|
12865
12758
|
fullId?: string;
|
|
12866
12759
|
};
|
|
12867
12760
|
};
|