@lichess-org/types 2.0.43 → 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 +66 -163
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -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 [...]"
|
|
@@ -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";
|
|
@@ -6751,7 +6716,7 @@ export interface components {
|
|
|
6751
6716
|
* "gone": true,
|
|
6752
6717
|
* "claimWinInSeconds": 8
|
|
6753
6718
|
* } */
|
|
6754
|
-
|
|
6719
|
+
OpponentGoneEvent: {
|
|
6755
6720
|
/** @constant */
|
|
6756
6721
|
type: "opponentGone";
|
|
6757
6722
|
gone: boolean;
|
|
@@ -6892,45 +6857,22 @@ export interface components {
|
|
|
6892
6857
|
| "racingkings"
|
|
6893
6858
|
| "3check";
|
|
6894
6859
|
ExternalEngine: {
|
|
6895
|
-
/**
|
|
6896
|
-
* @description Unique engine registration ID.
|
|
6897
|
-
* @example eei_aTKImBJOnv6j
|
|
6898
|
-
*/
|
|
6860
|
+
/** @description Unique engine registration ID. */
|
|
6899
6861
|
id: string;
|
|
6900
|
-
/**
|
|
6901
|
-
* @description Display name of the engine.
|
|
6902
|
-
* @example Stockfish 15
|
|
6903
|
-
*/
|
|
6862
|
+
/** @description Display name of the engine. */
|
|
6904
6863
|
name: string;
|
|
6905
|
-
/**
|
|
6906
|
-
* @description A secret token that can be used to
|
|
6864
|
+
/** @description A secret token that can be used to
|
|
6907
6865
|
* [*request* analysis](#tag/External-engine/operation/apiExternalEngineAnalyse)
|
|
6908
6866
|
* from this external engine.
|
|
6909
|
-
*
|
|
6910
|
-
* @example ees_mdF2hK0hlKGSPeC6
|
|
6911
|
-
*/
|
|
6867
|
+
* */
|
|
6912
6868
|
clientSecret: string;
|
|
6913
|
-
/**
|
|
6914
|
-
* @description The user this engine has been registered for.
|
|
6915
|
-
* @example thibault
|
|
6916
|
-
*/
|
|
6869
|
+
/** @description The user this engine has been registered for. */
|
|
6917
6870
|
userId: string;
|
|
6918
|
-
/**
|
|
6919
|
-
* @description Maximum number of available threads.
|
|
6920
|
-
* @example 8
|
|
6921
|
-
*/
|
|
6871
|
+
/** @description Maximum number of available threads. */
|
|
6922
6872
|
maxThreads: number;
|
|
6923
|
-
/**
|
|
6924
|
-
* @description Maximum available hash table size, in MiB.
|
|
6925
|
-
* @example 2048
|
|
6926
|
-
*/
|
|
6873
|
+
/** @description Maximum available hash table size, in MiB. */
|
|
6927
6874
|
maxHash: number;
|
|
6928
|
-
/**
|
|
6929
|
-
* @description List of supported chess variants.
|
|
6930
|
-
* @example [
|
|
6931
|
-
* "chess"
|
|
6932
|
-
* ]
|
|
6933
|
-
*/
|
|
6875
|
+
/** @description List of supported chess variants. */
|
|
6934
6876
|
variants: components["schemas"]["UciVariant"][];
|
|
6935
6877
|
/** @description Arbitrary data that the engine provider can use for identification
|
|
6936
6878
|
* or bookkeeping.
|
|
@@ -6938,7 +6880,7 @@ export interface components {
|
|
|
6938
6880
|
* Users can read this information, but updating it requires knowing
|
|
6939
6881
|
* or changing the `providerSecret`.
|
|
6940
6882
|
* */
|
|
6941
|
-
providerData?: string;
|
|
6883
|
+
providerData?: string | null;
|
|
6942
6884
|
};
|
|
6943
6885
|
ExternalEngineRegistration: {
|
|
6944
6886
|
/**
|
|
@@ -6983,50 +6925,36 @@ export interface components {
|
|
|
6983
6925
|
* */
|
|
6984
6926
|
providerData?: string;
|
|
6985
6927
|
};
|
|
6986
|
-
|
|
6987
|
-
/**
|
|
6988
|
-
* @description Arbitary string that identifies the analysis session.
|
|
6928
|
+
ExternalEngineWorkCommon: {
|
|
6929
|
+
/** @description Arbitary string that identifies the analysis session.
|
|
6989
6930
|
* Providers may wish to clear the hash table between sessions.
|
|
6990
|
-
*
|
|
6991
|
-
* @example abcd1234
|
|
6992
|
-
*/
|
|
6931
|
+
* */
|
|
6993
6932
|
sessionId: string;
|
|
6994
|
-
/**
|
|
6995
|
-
* @description Number of threads to use for analysis.
|
|
6996
|
-
* @example 4
|
|
6997
|
-
*/
|
|
6933
|
+
/** @description Number of threads to use for analysis. */
|
|
6998
6934
|
threads: number;
|
|
6999
|
-
/**
|
|
7000
|
-
* @description Hash table size to use for analysis, in MiB.
|
|
7001
|
-
* @example 128
|
|
7002
|
-
*/
|
|
6935
|
+
/** @description Hash table size to use for analysis, in MiB. */
|
|
7003
6936
|
hash: number;
|
|
7004
|
-
/**
|
|
7005
|
-
* @description Requested number of principal variations.
|
|
7006
|
-
* @example 1
|
|
7007
|
-
*/
|
|
6937
|
+
/** @description Requested number of principal variations. */
|
|
7008
6938
|
multiPv: number;
|
|
7009
6939
|
variant: components["schemas"]["UciVariant"];
|
|
7010
|
-
/**
|
|
7011
|
-
* @description Initial position of the game.
|
|
7012
|
-
* @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
7013
|
-
*/
|
|
6940
|
+
/** @description Initial position of the game. */
|
|
7014
6941
|
initialFen: string;
|
|
7015
|
-
/**
|
|
7016
|
-
* @description List of moves played from the initial position, in UCI notation.
|
|
7017
|
-
* @example [
|
|
7018
|
-
* "e2e4",
|
|
7019
|
-
* "g8f6"
|
|
7020
|
-
* ]
|
|
7021
|
-
*/
|
|
6942
|
+
/** @description List of moves played from the initial position, in UCI notation. */
|
|
7022
6943
|
moves: string[];
|
|
7023
|
-
/** @description Amount of time to analyse the position, in milliseconds. */
|
|
7024
|
-
movetime?: number;
|
|
7025
|
-
/** @description Analysis target depth */
|
|
7026
|
-
depth?: number;
|
|
7027
|
-
/** @description Number of nodes to analyse in the position */
|
|
7028
|
-
nodes?: number;
|
|
7029
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"]);
|
|
7030
6958
|
/** @example {
|
|
7031
6959
|
* "error": "invalid_grant",
|
|
7032
6960
|
* "error_description": "hash of code_verifier does not match code_challenge"
|
|
@@ -9483,7 +9411,7 @@ export interface operations {
|
|
|
9483
9411
|
username: string;
|
|
9484
9412
|
performance: number;
|
|
9485
9413
|
title?: components["schemas"]["Title"];
|
|
9486
|
-
team
|
|
9414
|
+
team?: string;
|
|
9487
9415
|
flair?: components["schemas"]["Flair"];
|
|
9488
9416
|
sheet?: components["schemas"]["ArenaSheet"];
|
|
9489
9417
|
};
|
|
@@ -11938,7 +11866,7 @@ export interface operations {
|
|
|
11938
11866
|
| components["schemas"]["GameFullEvent"]
|
|
11939
11867
|
| components["schemas"]["GameStateEvent"]
|
|
11940
11868
|
| components["schemas"]["ChatLineEvent"]
|
|
11941
|
-
| components["schemas"]["
|
|
11869
|
+
| components["schemas"]["OpponentGoneEvent"];
|
|
11942
11870
|
};
|
|
11943
11871
|
};
|
|
11944
11872
|
/** @description The game was not found. */
|
|
@@ -12323,7 +12251,7 @@ export interface operations {
|
|
|
12323
12251
|
| components["schemas"]["GameFullEvent"]
|
|
12324
12252
|
| components["schemas"]["GameStateEvent"]
|
|
12325
12253
|
| components["schemas"]["ChatLineEvent"]
|
|
12326
|
-
| components["schemas"]["
|
|
12254
|
+
| components["schemas"]["OpponentGoneEvent"];
|
|
12327
12255
|
};
|
|
12328
12256
|
};
|
|
12329
12257
|
/** @description The bot game was not found. */
|
|
@@ -13652,46 +13580,21 @@ export interface operations {
|
|
|
13652
13580
|
};
|
|
13653
13581
|
content: {
|
|
13654
13582
|
"application/x-ndjson": {
|
|
13655
|
-
/**
|
|
13656
|
-
* @description Number of milliseconds the search has been going on
|
|
13657
|
-
* @example 6880
|
|
13658
|
-
*/
|
|
13583
|
+
/** @description Number of milliseconds the search has been going on */
|
|
13659
13584
|
time: number;
|
|
13660
|
-
/**
|
|
13661
|
-
* @description Current search depth
|
|
13662
|
-
* @example 25
|
|
13663
|
-
*/
|
|
13585
|
+
/** @description Current search depth */
|
|
13664
13586
|
depth: number;
|
|
13665
|
-
/**
|
|
13666
|
-
* @description Number of nodes visited so far
|
|
13667
|
-
* @example 7230340
|
|
13668
|
-
*/
|
|
13587
|
+
/** @description Number of nodes visited so far */
|
|
13669
13588
|
nodes: number;
|
|
13670
13589
|
/** @description Information about up to 5 pvs, with the primary pv at index 0. */
|
|
13671
13590
|
pvs: {
|
|
13672
|
-
/**
|
|
13673
|
-
* @description Current search depth of the pv
|
|
13674
|
-
* @example 25
|
|
13675
|
-
*/
|
|
13591
|
+
/** @description Current search depth of the pv */
|
|
13676
13592
|
depth: number;
|
|
13677
|
-
/**
|
|
13678
|
-
* @description Evaluation in centi-pawns, from White's point of view
|
|
13679
|
-
* @example 40
|
|
13680
|
-
*/
|
|
13593
|
+
/** @description Evaluation in centi-pawns, from White's point of view */
|
|
13681
13594
|
cp?: number;
|
|
13682
13595
|
/** @description Evaluation in signed moves to mate, from White's point of view */
|
|
13683
13596
|
mate?: number;
|
|
13684
|
-
/**
|
|
13685
|
-
* @description Variation in UCI notation
|
|
13686
|
-
* @example [
|
|
13687
|
-
* "e2e4",
|
|
13688
|
-
* "c7c6",
|
|
13689
|
-
* "g1f3",
|
|
13690
|
-
* "d7d5",
|
|
13691
|
-
* "d2d3",
|
|
13692
|
-
* "d5e4"
|
|
13693
|
-
* ]
|
|
13694
|
-
*/
|
|
13597
|
+
/** @description Variation in UCI notation */
|
|
13695
13598
|
moves: string[];
|
|
13696
13599
|
}[];
|
|
13697
13600
|
};
|