@lichess-org/types 2.0.94 → 2.0.96
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 +26 -16
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -4012,6 +4012,8 @@ export interface components {
|
|
|
4012
4012
|
| "BOT";
|
|
4013
4013
|
/** @description Players can choose a color for their Patron wings.
|
|
4014
4014
|
* See [here for the color mappings](https://github.com/lichess-org/lila/blob/master/ui/lib/css/abstract/_patron-colors.scss).
|
|
4015
|
+
*
|
|
4016
|
+
* The presence of this field indicates the player is an active Patron.
|
|
4015
4017
|
* */
|
|
4016
4018
|
PatronColor: number;
|
|
4017
4019
|
TopUser: {
|
|
@@ -4720,7 +4722,7 @@ export interface components {
|
|
|
4720
4722
|
puzzles: {
|
|
4721
4723
|
/** @description Puzzle ID */
|
|
4722
4724
|
id: string;
|
|
4723
|
-
/** @description FEN position of the puzzle */
|
|
4725
|
+
/** @description X-FEN position of the puzzle */
|
|
4724
4726
|
fen: string;
|
|
4725
4727
|
/** @description Solution moves sequence */
|
|
4726
4728
|
line: string;
|
|
@@ -5571,7 +5573,7 @@ export interface components {
|
|
|
5571
5573
|
/**
|
|
5572
5574
|
* @description The type of message.
|
|
5573
5575
|
* A summary of the game is sent as the first message and when the featured game changes.
|
|
5574
|
-
* Subsequent messages are just the FEN, last move, and clocks.
|
|
5576
|
+
* Subsequent messages are just the X-FEN, last move, and clocks.
|
|
5575
5577
|
*
|
|
5576
5578
|
* @constant
|
|
5577
5579
|
*/
|
|
@@ -5591,7 +5593,7 @@ export interface components {
|
|
|
5591
5593
|
/** @description The player's remaining time in seconds */
|
|
5592
5594
|
seconds: number;
|
|
5593
5595
|
}[];
|
|
5594
|
-
/** @description The FEN of the current position */
|
|
5596
|
+
/** @description The X-FEN of the current position */
|
|
5595
5597
|
fen: string;
|
|
5596
5598
|
};
|
|
5597
5599
|
};
|
|
@@ -5600,7 +5602,7 @@ export interface components {
|
|
|
5600
5602
|
/**
|
|
5601
5603
|
* @description The type of message.
|
|
5602
5604
|
* A summary of the game is sent as the first message and when the featured game changes.
|
|
5603
|
-
* Subsequent messages are just the FEN, last move, and clocks.
|
|
5605
|
+
* Subsequent messages are just the X-FEN, last move, and clocks.
|
|
5604
5606
|
*
|
|
5605
5607
|
* @constant
|
|
5606
5608
|
*/
|
|
@@ -5610,7 +5612,7 @@ export interface components {
|
|
|
5610
5612
|
* @description The data of the message
|
|
5611
5613
|
*/
|
|
5612
5614
|
d: {
|
|
5613
|
-
/** @description The FEN of the current position */
|
|
5615
|
+
/** @description The X-FEN of the current position */
|
|
5614
5616
|
fen: string;
|
|
5615
5617
|
/** @description The last move in UCI format (King to rook for Chess960-compatible
|
|
5616
5618
|
* castling notation)
|
|
@@ -5715,7 +5717,7 @@ export interface components {
|
|
|
5715
5717
|
finished: components["schemas"]["ArenaTournament"][];
|
|
5716
5718
|
};
|
|
5717
5719
|
/**
|
|
5718
|
-
* @description Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.
|
|
5720
|
+
* @description Custom initial position (in X-FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.
|
|
5719
5721
|
* @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
5720
5722
|
*/
|
|
5721
5723
|
FromPositionFEN: string;
|
|
@@ -5884,7 +5886,7 @@ export interface components {
|
|
|
5884
5886
|
player: components["schemas"]["ArenaTournamentPlayer"];
|
|
5885
5887
|
};
|
|
5886
5888
|
/**
|
|
5887
|
-
* @description Custom initial position (in FEN). Variant must be standard and the game cannot be rated.
|
|
5889
|
+
* @description Custom initial position (in X-FEN). Variant must be standard and the game cannot be rated.
|
|
5888
5890
|
* @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
5889
5891
|
*/
|
|
5890
5892
|
SwissFromPositionFEN: string;
|
|
@@ -6116,6 +6118,7 @@ export interface components {
|
|
|
6116
6118
|
};
|
|
6117
6119
|
BroadcastTop: {
|
|
6118
6120
|
active?: components["schemas"]["BroadcastWithLastRound"][];
|
|
6121
|
+
/** @deprecated */
|
|
6119
6122
|
upcoming?: components["schemas"]["BroadcastWithLastRound"][];
|
|
6120
6123
|
past?: {
|
|
6121
6124
|
/** @example 4 */
|
|
@@ -6469,6 +6472,13 @@ export interface components {
|
|
|
6469
6472
|
syncUsers: string;
|
|
6470
6473
|
}
|
|
6471
6474
|
) & {
|
|
6475
|
+
/**
|
|
6476
|
+
* @description Where the games come from.
|
|
6477
|
+
*
|
|
6478
|
+
* @default push
|
|
6479
|
+
* @enum {string}
|
|
6480
|
+
*/
|
|
6481
|
+
syncSource?: "push" | "url" | "urls" | "ids" | "users";
|
|
6472
6482
|
/**
|
|
6473
6483
|
* Format: int64
|
|
6474
6484
|
* @description Timestamp in milliseconds of broadcast round start. Leave empty to manually start the broadcast round.
|
|
@@ -13380,7 +13390,7 @@ export interface operations {
|
|
|
13380
13390
|
* Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
|
|
13381
13391
|
* */
|
|
13382
13392
|
literate?: boolean;
|
|
13383
|
-
/** @description Include the FEN notation of the last position of the game.
|
|
13393
|
+
/** @description Include the X-FEN notation of the last position of the game.
|
|
13384
13394
|
* The response type must be set to `application/x-ndjson` by the request `Accept` header.
|
|
13385
13395
|
* */
|
|
13386
13396
|
lastFen?: boolean;
|
|
@@ -14148,7 +14158,7 @@ export interface operations {
|
|
|
14148
14158
|
* Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
|
|
14149
14159
|
* */
|
|
14150
14160
|
literate?: boolean;
|
|
14151
|
-
/** @description Include the FEN notation of the last position of the game.
|
|
14161
|
+
/** @description Include the X-FEN notation of the last position of the game.
|
|
14152
14162
|
* The response type must be set to `application/x-ndjson` by the request `Accept` header.
|
|
14153
14163
|
* */
|
|
14154
14164
|
lastFen?: boolean;
|
|
@@ -37730,7 +37740,7 @@ export interface operations {
|
|
|
37730
37740
|
parameters: {
|
|
37731
37741
|
query: {
|
|
37732
37742
|
/**
|
|
37733
|
-
* @description FEN of the position
|
|
37743
|
+
* @description X-FEN of the position
|
|
37734
37744
|
* @example r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 3 3
|
|
37735
37745
|
*/
|
|
37736
37746
|
fen: string;
|
|
@@ -38287,7 +38297,7 @@ export interface operations {
|
|
|
38287
38297
|
parameters: {
|
|
38288
38298
|
query?: {
|
|
38289
38299
|
/**
|
|
38290
|
-
* @description FEN of the root position
|
|
38300
|
+
* @description X-FEN of the root position
|
|
38291
38301
|
* @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
38292
38302
|
*/
|
|
38293
38303
|
fen?: string;
|
|
@@ -38607,7 +38617,7 @@ export interface operations {
|
|
|
38607
38617
|
/** @description Variant */
|
|
38608
38618
|
variant?: components["schemas"]["VariantKey"];
|
|
38609
38619
|
/**
|
|
38610
|
-
* @description FEN or EPD of the root position
|
|
38620
|
+
* @description X-FEN or EPD of the root position
|
|
38611
38621
|
* @example rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2
|
|
38612
38622
|
*/
|
|
38613
38623
|
fen?: string;
|
|
@@ -38981,7 +38991,7 @@ export interface operations {
|
|
|
38981
38991
|
/** @description Variant */
|
|
38982
38992
|
variant?: components["schemas"]["VariantKey"];
|
|
38983
38993
|
/**
|
|
38984
|
-
* @description FEN of the root position
|
|
38994
|
+
* @description X-FEN of the root position
|
|
38985
38995
|
* @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
38986
38996
|
*/
|
|
38987
38997
|
fen?: string;
|
|
@@ -39187,7 +39197,7 @@ export interface operations {
|
|
|
39187
39197
|
tablebaseStandard: {
|
|
39188
39198
|
parameters: {
|
|
39189
39199
|
query: {
|
|
39190
|
-
/** @description FEN of the position. Underscores allowed. */
|
|
39200
|
+
/** @description X-FEN of the position. Underscores allowed. */
|
|
39191
39201
|
fen: string;
|
|
39192
39202
|
/** @description When to query the tablebase for `dtc` values. The current default
|
|
39193
39203
|
* is `never`. It is eventually going to be `auxiliary`, i.e., only when
|
|
@@ -39375,7 +39385,7 @@ export interface operations {
|
|
|
39375
39385
|
tablebaseAtomic: {
|
|
39376
39386
|
parameters: {
|
|
39377
39387
|
query: {
|
|
39378
|
-
/** @description FEN of the position. Underscores allowed. */
|
|
39388
|
+
/** @description X-FEN of the position. Underscores allowed. */
|
|
39379
39389
|
fen: string;
|
|
39380
39390
|
};
|
|
39381
39391
|
header?: never;
|
|
@@ -40070,7 +40080,7 @@ export interface operations {
|
|
|
40070
40080
|
antichessAtomic: {
|
|
40071
40081
|
parameters: {
|
|
40072
40082
|
query: {
|
|
40073
|
-
/** @description FEN of the position. Underscores allowed. */
|
|
40083
|
+
/** @description X-FEN of the position. Underscores allowed. */
|
|
40074
40084
|
fen: string;
|
|
40075
40085
|
};
|
|
40076
40086
|
header?: never;
|