@lichess-org/types 2.0.42 → 2.0.44
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 -233
- 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;
|
|
@@ -5404,19 +5404,18 @@ export interface components {
|
|
|
5404
5404
|
*/
|
|
5405
5405
|
ArenaStatus: 10 | 20 | 30;
|
|
5406
5406
|
ArenaPerf: {
|
|
5407
|
-
|
|
5408
|
-
key?: string;
|
|
5407
|
+
key: components["schemas"]["PerfType"];
|
|
5409
5408
|
/** @example Blitz */
|
|
5410
|
-
name
|
|
5409
|
+
name: string;
|
|
5411
5410
|
/** @example 1 */
|
|
5412
|
-
position
|
|
5411
|
+
position: number;
|
|
5413
5412
|
/** @example ) */
|
|
5414
5413
|
icon?: string;
|
|
5415
5414
|
};
|
|
5416
5415
|
ArenaRatingObj: {
|
|
5417
5416
|
perf?: components["schemas"]["PerfType"];
|
|
5418
5417
|
/** @example 1700 */
|
|
5419
|
-
rating
|
|
5418
|
+
rating: number;
|
|
5420
5419
|
};
|
|
5421
5420
|
ArenaPosition:
|
|
5422
5421
|
| {
|
|
@@ -5438,58 +5437,23 @@ export interface components {
|
|
|
5438
5437
|
/** @example rnbq1bnr/ppppkppp/8/4p3/4P3/8/PPPPKPPP/RNBQ1BNR w - - 2 3 */
|
|
5439
5438
|
fen?: string;
|
|
5440
5439
|
};
|
|
5441
|
-
/** @example {
|
|
5442
|
-
* "id": "XhfVxYPG",
|
|
5443
|
-
* "createdBy": "lichess",
|
|
5444
|
-
* "system": "arena",
|
|
5445
|
-
* "minutes": 27,
|
|
5446
|
-
* "clock": {
|
|
5447
|
-
* "limit": 60,
|
|
5448
|
-
* "increment": 0
|
|
5449
|
-
* },
|
|
5450
|
-
* "rated": true,
|
|
5451
|
-
* "fullName": "Hourly Bullet Arena",
|
|
5452
|
-
* "nbPlayers": 4,
|
|
5453
|
-
* "variant": {
|
|
5454
|
-
* "key": "standard",
|
|
5455
|
-
* "short": "Std",
|
|
5456
|
-
* "name": "Standard"
|
|
5457
|
-
* },
|
|
5458
|
-
* "startsAt": 1716930043067,
|
|
5459
|
-
* "finishesAt": 1716931663067,
|
|
5460
|
-
* "status": 10,
|
|
5461
|
-
* "perf": {
|
|
5462
|
-
* "key": "bullet",
|
|
5463
|
-
* "name": "Bullet",
|
|
5464
|
-
* "position": 0,
|
|
5465
|
-
* "icon": "T"
|
|
5466
|
-
* },
|
|
5467
|
-
* "secondsToStart": 871,
|
|
5468
|
-
* "minRatedGames": {
|
|
5469
|
-
* "nb": 20
|
|
5470
|
-
* },
|
|
5471
|
-
* "schedule": {
|
|
5472
|
-
* "freq": "hourly",
|
|
5473
|
-
* "speed": "bullet"
|
|
5474
|
-
* }
|
|
5475
|
-
* } */
|
|
5476
5440
|
ArenaTournament: {
|
|
5477
|
-
id
|
|
5478
|
-
createdBy
|
|
5441
|
+
id: string;
|
|
5442
|
+
createdBy: string;
|
|
5479
5443
|
/** @constant */
|
|
5480
|
-
system
|
|
5481
|
-
minutes
|
|
5482
|
-
clock
|
|
5483
|
-
rated
|
|
5484
|
-
fullName
|
|
5485
|
-
nbPlayers
|
|
5486
|
-
variant
|
|
5444
|
+
system: "arena";
|
|
5445
|
+
minutes: number;
|
|
5446
|
+
clock: components["schemas"]["Clock"];
|
|
5447
|
+
rated: boolean;
|
|
5448
|
+
fullName: string;
|
|
5449
|
+
nbPlayers: number;
|
|
5450
|
+
variant: components["schemas"]["Variant"];
|
|
5487
5451
|
/** Format: int64 */
|
|
5488
|
-
startsAt
|
|
5452
|
+
startsAt: number;
|
|
5489
5453
|
/** Format: int64 */
|
|
5490
|
-
finishesAt
|
|
5491
|
-
status
|
|
5492
|
-
perf
|
|
5454
|
+
finishesAt: number;
|
|
5455
|
+
status: components["schemas"]["ArenaStatus"];
|
|
5456
|
+
perf: components["schemas"]["ArenaPerf"];
|
|
5493
5457
|
secondsToStart?: number;
|
|
5494
5458
|
hasMaxRating?: boolean;
|
|
5495
5459
|
maxRating?: components["schemas"]["ArenaRatingObj"];
|
|
@@ -5511,11 +5475,7 @@ export interface components {
|
|
|
5511
5475
|
teams?: string[];
|
|
5512
5476
|
nbLeaders?: number;
|
|
5513
5477
|
};
|
|
5514
|
-
winner?:
|
|
5515
|
-
id?: string;
|
|
5516
|
-
name?: string;
|
|
5517
|
-
title?: components["schemas"]["Title"];
|
|
5518
|
-
};
|
|
5478
|
+
winner?: components["schemas"]["LightUser"];
|
|
5519
5479
|
};
|
|
5520
5480
|
ArenaTournaments: {
|
|
5521
5481
|
created?: components["schemas"]["ArenaTournament"][];
|
|
@@ -5556,7 +5516,7 @@ export interface components {
|
|
|
5556
5516
|
system?: string;
|
|
5557
5517
|
secondsToStart?: number;
|
|
5558
5518
|
secondsToFinish?: number;
|
|
5559
|
-
isFinished
|
|
5519
|
+
isFinished?: boolean;
|
|
5560
5520
|
isRecentlyFinished?: boolean;
|
|
5561
5521
|
pairingsClosed?: boolean;
|
|
5562
5522
|
/** Format: int64 */
|
|
@@ -5568,6 +5528,11 @@ export interface components {
|
|
|
5568
5528
|
text?: string;
|
|
5569
5529
|
author?: string;
|
|
5570
5530
|
};
|
|
5531
|
+
greatPlayer?: {
|
|
5532
|
+
name?: string;
|
|
5533
|
+
/** Format: uri */
|
|
5534
|
+
url?: string;
|
|
5535
|
+
};
|
|
5571
5536
|
/** @description List of usernames allowed to join the tournament */
|
|
5572
5537
|
allowList?: string[];
|
|
5573
5538
|
hasMaxRating?: boolean;
|
|
@@ -5650,7 +5615,7 @@ export interface components {
|
|
|
5650
5615
|
};
|
|
5651
5616
|
performance?: number;
|
|
5652
5617
|
}[];
|
|
5653
|
-
stats
|
|
5618
|
+
stats?: {
|
|
5654
5619
|
games: number;
|
|
5655
5620
|
moves: number;
|
|
5656
5621
|
whiteWins: number;
|
|
@@ -5659,6 +5624,7 @@ export interface components {
|
|
|
5659
5624
|
berserks: number;
|
|
5660
5625
|
averageRating: number;
|
|
5661
5626
|
};
|
|
5627
|
+
myUsername?: string;
|
|
5662
5628
|
};
|
|
5663
5629
|
/** @example {
|
|
5664
5630
|
* "error": "This request is invalid because [...]"
|
|
@@ -6054,7 +6020,7 @@ export interface components {
|
|
|
6054
6020
|
/** @example 2138 */
|
|
6055
6021
|
performance?: number;
|
|
6056
6022
|
/** @example FM */
|
|
6057
|
-
title?:
|
|
6023
|
+
title?: components["schemas"]["Title"];
|
|
6058
6024
|
/** @example 3408230 */
|
|
6059
6025
|
fideId?: number;
|
|
6060
6026
|
/** @example CHI */
|
|
@@ -6206,7 +6172,7 @@ export interface components {
|
|
|
6206
6172
|
fen?: string;
|
|
6207
6173
|
players?: {
|
|
6208
6174
|
name?: string;
|
|
6209
|
-
title?:
|
|
6175
|
+
title?: components["schemas"]["Title"];
|
|
6210
6176
|
rating?: number;
|
|
6211
6177
|
clock?: number;
|
|
6212
6178
|
fed?: string;
|
|
@@ -6306,7 +6272,6 @@ export interface components {
|
|
|
6306
6272
|
};
|
|
6307
6273
|
/**
|
|
6308
6274
|
* @description The current state of the arena tournament
|
|
6309
|
-
* @example created
|
|
6310
6275
|
* @enum {string}
|
|
6311
6276
|
*/
|
|
6312
6277
|
ArenaStatusName: "created" | "started" | "finished";
|
|
@@ -6351,6 +6316,12 @@ export interface components {
|
|
|
6351
6316
|
*/
|
|
6352
6317
|
date?: number;
|
|
6353
6318
|
};
|
|
6319
|
+
GameCompat: {
|
|
6320
|
+
/** @description Compatible with Bot API */
|
|
6321
|
+
bot?: boolean;
|
|
6322
|
+
/** @description Compatible with Board API */
|
|
6323
|
+
board?: boolean;
|
|
6324
|
+
};
|
|
6354
6325
|
/** @example {
|
|
6355
6326
|
* "fullId": "9NaCTu2vz1c4",
|
|
6356
6327
|
* "gameId": "9NaCTu2v",
|
|
@@ -6411,10 +6382,7 @@ export interface components {
|
|
|
6411
6382
|
};
|
|
6412
6383
|
isMyTurn?: boolean;
|
|
6413
6384
|
secondsLeft?: number;
|
|
6414
|
-
compat?:
|
|
6415
|
-
bot?: boolean;
|
|
6416
|
-
board?: boolean;
|
|
6417
|
-
};
|
|
6385
|
+
compat?: components["schemas"]["GameCompat"];
|
|
6418
6386
|
id?: string;
|
|
6419
6387
|
};
|
|
6420
6388
|
GameStartEvent: {
|
|
@@ -6435,28 +6403,33 @@ export interface components {
|
|
|
6435
6403
|
| "declined"
|
|
6436
6404
|
| "accepted";
|
|
6437
6405
|
ChallengeUser: {
|
|
6406
|
+
id: string;
|
|
6407
|
+
name: string;
|
|
6438
6408
|
rating?: number;
|
|
6409
|
+
title?: components["schemas"]["Title"] | null;
|
|
6410
|
+
flair?: components["schemas"]["Flair"];
|
|
6411
|
+
patron?: boolean;
|
|
6439
6412
|
provisional?: boolean;
|
|
6440
6413
|
online?: boolean;
|
|
6441
6414
|
lag?: number;
|
|
6442
|
-
}
|
|
6415
|
+
};
|
|
6443
6416
|
TimeControl:
|
|
6444
6417
|
| {
|
|
6445
|
-
/** @
|
|
6446
|
-
type?:
|
|
6418
|
+
/** @constant */
|
|
6419
|
+
type?: "clock";
|
|
6447
6420
|
limit?: number;
|
|
6448
6421
|
increment?: number;
|
|
6449
6422
|
/** @example 5+2 */
|
|
6450
6423
|
show?: string;
|
|
6451
6424
|
}
|
|
6452
6425
|
| {
|
|
6453
|
-
/** @
|
|
6454
|
-
type?:
|
|
6426
|
+
/** @constant */
|
|
6427
|
+
type?: "correspondence";
|
|
6455
6428
|
daysPerTurn?: number;
|
|
6456
6429
|
}
|
|
6457
6430
|
| {
|
|
6458
|
-
/** @
|
|
6459
|
-
type?:
|
|
6431
|
+
/** @constant */
|
|
6432
|
+
type?: "unlimited";
|
|
6460
6433
|
};
|
|
6461
6434
|
/** @example {
|
|
6462
6435
|
* "id": "H9fIRZUk",
|
|
@@ -6528,10 +6501,7 @@ export interface components {
|
|
|
6528
6501
|
/** @constant */
|
|
6529
6502
|
type?: "challenge";
|
|
6530
6503
|
challenge?: components["schemas"]["ChallengeJson"];
|
|
6531
|
-
compat?:
|
|
6532
|
-
bot?: boolean;
|
|
6533
|
-
board?: boolean;
|
|
6534
|
-
};
|
|
6504
|
+
compat?: components["schemas"]["GameCompat"];
|
|
6535
6505
|
};
|
|
6536
6506
|
ChallengeCanceledEvent: {
|
|
6537
6507
|
/** @constant */
|
|
@@ -6612,7 +6582,7 @@ export interface components {
|
|
|
6612
6582
|
aiLevel?: number;
|
|
6613
6583
|
id?: string;
|
|
6614
6584
|
name?: string;
|
|
6615
|
-
title?:
|
|
6585
|
+
title?: components["schemas"]["Title"] | null;
|
|
6616
6586
|
rating?: number;
|
|
6617
6587
|
provisional?: boolean;
|
|
6618
6588
|
};
|
|
@@ -6746,7 +6716,7 @@ export interface components {
|
|
|
6746
6716
|
* "gone": true,
|
|
6747
6717
|
* "claimWinInSeconds": 8
|
|
6748
6718
|
* } */
|
|
6749
|
-
|
|
6719
|
+
OpponentGoneEvent: {
|
|
6750
6720
|
/** @constant */
|
|
6751
6721
|
type: "opponentGone";
|
|
6752
6722
|
gone: boolean;
|
|
@@ -6772,36 +6742,10 @@ export interface components {
|
|
|
6772
6742
|
* "user": "thibault"
|
|
6773
6743
|
* }
|
|
6774
6744
|
* ] */
|
|
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
|
-
* } */
|
|
6745
|
+
GameChat: {
|
|
6746
|
+
text?: string;
|
|
6747
|
+
user?: string;
|
|
6748
|
+
}[];
|
|
6805
6749
|
ChallengeOpenJson: {
|
|
6806
6750
|
id: string;
|
|
6807
6751
|
/** Format: uri */
|
|
@@ -6913,45 +6857,22 @@ export interface components {
|
|
|
6913
6857
|
| "racingkings"
|
|
6914
6858
|
| "3check";
|
|
6915
6859
|
ExternalEngine: {
|
|
6916
|
-
/**
|
|
6917
|
-
* @description Unique engine registration ID.
|
|
6918
|
-
* @example eei_aTKImBJOnv6j
|
|
6919
|
-
*/
|
|
6860
|
+
/** @description Unique engine registration ID. */
|
|
6920
6861
|
id: string;
|
|
6921
|
-
/**
|
|
6922
|
-
* @description Display name of the engine.
|
|
6923
|
-
* @example Stockfish 15
|
|
6924
|
-
*/
|
|
6862
|
+
/** @description Display name of the engine. */
|
|
6925
6863
|
name: string;
|
|
6926
|
-
/**
|
|
6927
|
-
* @description A secret token that can be used to
|
|
6864
|
+
/** @description A secret token that can be used to
|
|
6928
6865
|
* [*request* analysis](#tag/External-engine/operation/apiExternalEngineAnalyse)
|
|
6929
6866
|
* from this external engine.
|
|
6930
|
-
*
|
|
6931
|
-
* @example ees_mdF2hK0hlKGSPeC6
|
|
6932
|
-
*/
|
|
6867
|
+
* */
|
|
6933
6868
|
clientSecret: string;
|
|
6934
|
-
/**
|
|
6935
|
-
* @description The user this engine has been registered for.
|
|
6936
|
-
* @example thibault
|
|
6937
|
-
*/
|
|
6869
|
+
/** @description The user this engine has been registered for. */
|
|
6938
6870
|
userId: string;
|
|
6939
|
-
/**
|
|
6940
|
-
* @description Maximum number of available threads.
|
|
6941
|
-
* @example 8
|
|
6942
|
-
*/
|
|
6871
|
+
/** @description Maximum number of available threads. */
|
|
6943
6872
|
maxThreads: number;
|
|
6944
|
-
/**
|
|
6945
|
-
* @description Maximum available hash table size, in MiB.
|
|
6946
|
-
* @example 2048
|
|
6947
|
-
*/
|
|
6873
|
+
/** @description Maximum available hash table size, in MiB. */
|
|
6948
6874
|
maxHash: number;
|
|
6949
|
-
/**
|
|
6950
|
-
* @description List of supported chess variants.
|
|
6951
|
-
* @example [
|
|
6952
|
-
* "chess"
|
|
6953
|
-
* ]
|
|
6954
|
-
*/
|
|
6875
|
+
/** @description List of supported chess variants. */
|
|
6955
6876
|
variants: components["schemas"]["UciVariant"][];
|
|
6956
6877
|
/** @description Arbitrary data that the engine provider can use for identification
|
|
6957
6878
|
* or bookkeeping.
|
|
@@ -6959,7 +6880,7 @@ export interface components {
|
|
|
6959
6880
|
* Users can read this information, but updating it requires knowing
|
|
6960
6881
|
* or changing the `providerSecret`.
|
|
6961
6882
|
* */
|
|
6962
|
-
providerData?: string;
|
|
6883
|
+
providerData?: string | null;
|
|
6963
6884
|
};
|
|
6964
6885
|
ExternalEngineRegistration: {
|
|
6965
6886
|
/**
|
|
@@ -7004,50 +6925,36 @@ export interface components {
|
|
|
7004
6925
|
* */
|
|
7005
6926
|
providerData?: string;
|
|
7006
6927
|
};
|
|
7007
|
-
|
|
7008
|
-
/**
|
|
7009
|
-
* @description Arbitary string that identifies the analysis session.
|
|
6928
|
+
ExternalEngineWorkCommon: {
|
|
6929
|
+
/** @description Arbitary string that identifies the analysis session.
|
|
7010
6930
|
* Providers may wish to clear the hash table between sessions.
|
|
7011
|
-
*
|
|
7012
|
-
* @example abcd1234
|
|
7013
|
-
*/
|
|
6931
|
+
* */
|
|
7014
6932
|
sessionId: string;
|
|
7015
|
-
/**
|
|
7016
|
-
* @description Number of threads to use for analysis.
|
|
7017
|
-
* @example 4
|
|
7018
|
-
*/
|
|
6933
|
+
/** @description Number of threads to use for analysis. */
|
|
7019
6934
|
threads: number;
|
|
7020
|
-
/**
|
|
7021
|
-
* @description Hash table size to use for analysis, in MiB.
|
|
7022
|
-
* @example 128
|
|
7023
|
-
*/
|
|
6935
|
+
/** @description Hash table size to use for analysis, in MiB. */
|
|
7024
6936
|
hash: number;
|
|
7025
|
-
/**
|
|
7026
|
-
* @description Requested number of principal variations.
|
|
7027
|
-
* @example 1
|
|
7028
|
-
*/
|
|
6937
|
+
/** @description Requested number of principal variations. */
|
|
7029
6938
|
multiPv: number;
|
|
7030
6939
|
variant: components["schemas"]["UciVariant"];
|
|
7031
|
-
/**
|
|
7032
|
-
* @description Initial position of the game.
|
|
7033
|
-
* @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
7034
|
-
*/
|
|
6940
|
+
/** @description Initial position of the game. */
|
|
7035
6941
|
initialFen: string;
|
|
7036
|
-
/**
|
|
7037
|
-
* @description List of moves played from the initial position, in UCI notation.
|
|
7038
|
-
* @example [
|
|
7039
|
-
* "e2e4",
|
|
7040
|
-
* "g8f6"
|
|
7041
|
-
* ]
|
|
7042
|
-
*/
|
|
6942
|
+
/** @description List of moves played from the initial position, in UCI notation. */
|
|
7043
6943
|
moves: string[];
|
|
7044
|
-
/** @description Amount of time to analyse the position, in milliseconds. */
|
|
7045
|
-
movetime?: number;
|
|
7046
|
-
/** @description Analysis target depth */
|
|
7047
|
-
depth?: number;
|
|
7048
|
-
/** @description Number of nodes to analyse in the position */
|
|
7049
|
-
nodes?: number;
|
|
7050
6944
|
};
|
|
6945
|
+
ExternalEngineWork:
|
|
6946
|
+
| ({
|
|
6947
|
+
/** @description Amount of time to analyse the position, in milliseconds. */
|
|
6948
|
+
movetime: number;
|
|
6949
|
+
} & components["schemas"]["ExternalEngineWorkCommon"])
|
|
6950
|
+
| ({
|
|
6951
|
+
/** @description Analysis target depth */
|
|
6952
|
+
depth: number;
|
|
6953
|
+
} & components["schemas"]["ExternalEngineWorkCommon"])
|
|
6954
|
+
| ({
|
|
6955
|
+
/** @description Number of nodes to analyse in the position */
|
|
6956
|
+
nodes: number;
|
|
6957
|
+
} & components["schemas"]["ExternalEngineWorkCommon"]);
|
|
7051
6958
|
/** @example {
|
|
7052
6959
|
* "error": "invalid_grant",
|
|
7053
6960
|
* "error_description": "hash of code_verifier does not match code_challenge"
|
|
@@ -7449,7 +7356,7 @@ export interface operations {
|
|
|
7449
7356
|
id: string;
|
|
7450
7357
|
name: string;
|
|
7451
7358
|
flair?: components["schemas"]["Flair"];
|
|
7452
|
-
title?:
|
|
7359
|
+
title?: components["schemas"]["Title"];
|
|
7453
7360
|
online?: boolean;
|
|
7454
7361
|
playing?: boolean;
|
|
7455
7362
|
streaming?: boolean;
|
|
@@ -9504,7 +9411,7 @@ export interface operations {
|
|
|
9504
9411
|
username: string;
|
|
9505
9412
|
performance: number;
|
|
9506
9413
|
title?: components["schemas"]["Title"];
|
|
9507
|
-
team
|
|
9414
|
+
team?: string;
|
|
9508
9415
|
flair?: components["schemas"]["Flair"];
|
|
9509
9416
|
sheet?: components["schemas"]["ArenaSheet"];
|
|
9510
9417
|
};
|
|
@@ -11959,7 +11866,7 @@ export interface operations {
|
|
|
11959
11866
|
| components["schemas"]["GameFullEvent"]
|
|
11960
11867
|
| components["schemas"]["GameStateEvent"]
|
|
11961
11868
|
| components["schemas"]["ChatLineEvent"]
|
|
11962
|
-
| components["schemas"]["
|
|
11869
|
+
| components["schemas"]["OpponentGoneEvent"];
|
|
11963
11870
|
};
|
|
11964
11871
|
};
|
|
11965
11872
|
/** @description The game was not found. */
|
|
@@ -12344,7 +12251,7 @@ export interface operations {
|
|
|
12344
12251
|
| components["schemas"]["GameFullEvent"]
|
|
12345
12252
|
| components["schemas"]["GameStateEvent"]
|
|
12346
12253
|
| components["schemas"]["ChatLineEvent"]
|
|
12347
|
-
| components["schemas"]["
|
|
12254
|
+
| components["schemas"]["OpponentGoneEvent"];
|
|
12348
12255
|
};
|
|
12349
12256
|
};
|
|
12350
12257
|
/** @description The bot game was not found. */
|
|
@@ -12889,7 +12796,7 @@ export interface operations {
|
|
|
12889
12796
|
content: {
|
|
12890
12797
|
"application/x-www-form-urlencoded": {
|
|
12891
12798
|
/** @description AI strength */
|
|
12892
|
-
level
|
|
12799
|
+
level: number;
|
|
12893
12800
|
/**
|
|
12894
12801
|
* @description Clock initial time in seconds. If empty, a correspondence game is created.
|
|
12895
12802
|
* @example 300
|
|
@@ -12924,7 +12831,39 @@ export interface operations {
|
|
|
12924
12831
|
[name: string]: unknown;
|
|
12925
12832
|
};
|
|
12926
12833
|
content: {
|
|
12927
|
-
"application/json":
|
|
12834
|
+
"application/json": {
|
|
12835
|
+
id?: string;
|
|
12836
|
+
variant?: components["schemas"]["Variant"];
|
|
12837
|
+
speed?: components["schemas"]["Speed"];
|
|
12838
|
+
perf?: components["schemas"]["PerfType"];
|
|
12839
|
+
rated?: boolean;
|
|
12840
|
+
fen?: string;
|
|
12841
|
+
turns?: number;
|
|
12842
|
+
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
|
+
};
|
|
12861
|
+
/** Format: int64 */
|
|
12862
|
+
createdAt?: number;
|
|
12863
|
+
/** @enum {string} */
|
|
12864
|
+
player?: "white" | "black";
|
|
12865
|
+
fullId?: string;
|
|
12866
|
+
};
|
|
12928
12867
|
};
|
|
12929
12868
|
};
|
|
12930
12869
|
/** @description The creation of a game with Lichess AI failed. */
|
|
@@ -13331,7 +13270,7 @@ export interface operations {
|
|
|
13331
13270
|
path: {
|
|
13332
13271
|
gameId: string;
|
|
13333
13272
|
/** @description How many seconds to give */
|
|
13334
|
-
seconds:
|
|
13273
|
+
seconds: number;
|
|
13335
13274
|
};
|
|
13336
13275
|
cookie?: never;
|
|
13337
13276
|
};
|
|
@@ -13641,46 +13580,21 @@ export interface operations {
|
|
|
13641
13580
|
};
|
|
13642
13581
|
content: {
|
|
13643
13582
|
"application/x-ndjson": {
|
|
13644
|
-
/**
|
|
13645
|
-
* @description Number of milliseconds the search has been going on
|
|
13646
|
-
* @example 6880
|
|
13647
|
-
*/
|
|
13583
|
+
/** @description Number of milliseconds the search has been going on */
|
|
13648
13584
|
time: number;
|
|
13649
|
-
/**
|
|
13650
|
-
* @description Current search depth
|
|
13651
|
-
* @example 25
|
|
13652
|
-
*/
|
|
13585
|
+
/** @description Current search depth */
|
|
13653
13586
|
depth: number;
|
|
13654
|
-
/**
|
|
13655
|
-
* @description Number of nodes visited so far
|
|
13656
|
-
* @example 7230340
|
|
13657
|
-
*/
|
|
13587
|
+
/** @description Number of nodes visited so far */
|
|
13658
13588
|
nodes: number;
|
|
13659
13589
|
/** @description Information about up to 5 pvs, with the primary pv at index 0. */
|
|
13660
13590
|
pvs: {
|
|
13661
|
-
/**
|
|
13662
|
-
* @description Current search depth of the pv
|
|
13663
|
-
* @example 25
|
|
13664
|
-
*/
|
|
13591
|
+
/** @description Current search depth of the pv */
|
|
13665
13592
|
depth: number;
|
|
13666
|
-
/**
|
|
13667
|
-
* @description Evaluation in centi-pawns, from White's point of view
|
|
13668
|
-
* @example 40
|
|
13669
|
-
*/
|
|
13593
|
+
/** @description Evaluation in centi-pawns, from White's point of view */
|
|
13670
13594
|
cp?: number;
|
|
13671
13595
|
/** @description Evaluation in signed moves to mate, from White's point of view */
|
|
13672
13596
|
mate?: number;
|
|
13673
|
-
/**
|
|
13674
|
-
* @description Variation in UCI notation
|
|
13675
|
-
* @example [
|
|
13676
|
-
* "e2e4",
|
|
13677
|
-
* "c7c6",
|
|
13678
|
-
* "g1f3",
|
|
13679
|
-
* "d7d5",
|
|
13680
|
-
* "d2d3",
|
|
13681
|
-
* "d5e4"
|
|
13682
|
-
* ]
|
|
13683
|
-
*/
|
|
13597
|
+
/** @description Variation in UCI notation */
|
|
13684
13598
|
moves: string[];
|
|
13685
13599
|
}[];
|
|
13686
13600
|
};
|