@lichess-org/types 2.0.46 → 2.0.48
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 +22 -68
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -5070,6 +5070,15 @@ export interface components {
|
|
|
5070
5070
|
};
|
|
5071
5071
|
team?: string;
|
|
5072
5072
|
};
|
|
5073
|
+
GameUsers: {
|
|
5074
|
+
white: components["schemas"]["GameUser"];
|
|
5075
|
+
black: components["schemas"]["GameUser"];
|
|
5076
|
+
};
|
|
5077
|
+
GameOpening: {
|
|
5078
|
+
eco: string;
|
|
5079
|
+
name: string;
|
|
5080
|
+
ply: number;
|
|
5081
|
+
};
|
|
5073
5082
|
GameMoveAnalysis: {
|
|
5074
5083
|
/** @description Evaluation in centipawns */
|
|
5075
5084
|
eval?: number;
|
|
@@ -5105,18 +5114,10 @@ export interface components {
|
|
|
5105
5114
|
lastMoveAt: number;
|
|
5106
5115
|
status: components["schemas"]["GameStatusName"];
|
|
5107
5116
|
source?: string;
|
|
5108
|
-
players:
|
|
5109
|
-
white: components["schemas"]["GameUser"];
|
|
5110
|
-
black: components["schemas"]["GameUser"];
|
|
5111
|
-
};
|
|
5117
|
+
players: components["schemas"]["GameUsers"];
|
|
5112
5118
|
initialFen?: string;
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
opening?: {
|
|
5116
|
-
eco?: string;
|
|
5117
|
-
name?: string;
|
|
5118
|
-
ply?: number;
|
|
5119
|
-
};
|
|
5119
|
+
winner?: components["schemas"]["GameColor"];
|
|
5120
|
+
opening?: components["schemas"]["GameOpening"];
|
|
5120
5121
|
moves?: string;
|
|
5121
5122
|
pgn?: string;
|
|
5122
5123
|
daysPerTurn?: number;
|
|
@@ -5285,8 +5286,7 @@ export interface components {
|
|
|
5285
5286
|
user: components["schemas"]["LightUser"];
|
|
5286
5287
|
rating: number;
|
|
5287
5288
|
gameId: string;
|
|
5288
|
-
|
|
5289
|
-
color: "white" | "black";
|
|
5289
|
+
color: components["schemas"]["GameColor"];
|
|
5290
5290
|
};
|
|
5291
5291
|
TvFeed: {
|
|
5292
5292
|
/**
|
|
@@ -5333,7 +5333,6 @@ export interface components {
|
|
|
5333
5333
|
/**
|
|
5334
5334
|
* @description 10: created, 20: started, 30: finished
|
|
5335
5335
|
*
|
|
5336
|
-
* @example 30
|
|
5337
5336
|
* @enum {integer}
|
|
5338
5337
|
*/
|
|
5339
5338
|
ArenaStatus: 10 | 20 | 30;
|
|
@@ -5421,12 +5420,13 @@ export interface components {
|
|
|
5421
5420
|
* @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
5422
5421
|
*/
|
|
5423
5422
|
FromPositionFEN: string;
|
|
5423
|
+
Verdict: {
|
|
5424
|
+
condition: string;
|
|
5425
|
+
verdict: string;
|
|
5426
|
+
};
|
|
5424
5427
|
Verdicts: {
|
|
5425
5428
|
accepted: boolean;
|
|
5426
|
-
list:
|
|
5427
|
-
condition: string;
|
|
5428
|
-
verdict: string;
|
|
5429
|
-
}[];
|
|
5429
|
+
list: components["schemas"]["Verdict"][];
|
|
5430
5430
|
};
|
|
5431
5431
|
ArenaSheet: {
|
|
5432
5432
|
scores: string;
|
|
@@ -5590,7 +5590,6 @@ export interface components {
|
|
|
5590
5590
|
SwissFromPositionFEN: string;
|
|
5591
5591
|
/**
|
|
5592
5592
|
* @description The current state of the swiss tournament
|
|
5593
|
-
* @example created
|
|
5594
5593
|
* @enum {string}
|
|
5595
5594
|
*/
|
|
5596
5595
|
SwissStatus: "created" | "started" | "finished";
|
|
@@ -6148,7 +6147,7 @@ export interface components {
|
|
|
6148
6147
|
title?: components["schemas"]["Title"];
|
|
6149
6148
|
federation: string;
|
|
6150
6149
|
year?: number | null;
|
|
6151
|
-
inactive?:
|
|
6150
|
+
inactive?: number;
|
|
6152
6151
|
standard?: number;
|
|
6153
6152
|
rapid?: number;
|
|
6154
6153
|
blitz?: number;
|
|
@@ -6420,51 +6419,6 @@ export interface components {
|
|
|
6420
6419
|
type?: "challengeCanceled";
|
|
6421
6420
|
challenge?: components["schemas"]["ChallengeJson"];
|
|
6422
6421
|
};
|
|
6423
|
-
/** @example {
|
|
6424
|
-
* "id": "H9fIRZUk",
|
|
6425
|
-
* "url": "https://lichess.org/H9fIRZUk",
|
|
6426
|
-
* "status": "created",
|
|
6427
|
-
* "challenger": {
|
|
6428
|
-
* "id": "bot1",
|
|
6429
|
-
* "name": "Bot1",
|
|
6430
|
-
* "rating": 1500,
|
|
6431
|
-
* "title": "BOT",
|
|
6432
|
-
* "provisional": true,
|
|
6433
|
-
* "online": true,
|
|
6434
|
-
* "lag": 4
|
|
6435
|
-
* },
|
|
6436
|
-
* "destUser": {
|
|
6437
|
-
* "id": "bobby",
|
|
6438
|
-
* "name": "Bobby",
|
|
6439
|
-
* "rating": 1635,
|
|
6440
|
-
* "title": "GM",
|
|
6441
|
-
* "provisional": true,
|
|
6442
|
-
* "online": true,
|
|
6443
|
-
* "lag": 4
|
|
6444
|
-
* },
|
|
6445
|
-
* "variant": {
|
|
6446
|
-
* "key": "standard",
|
|
6447
|
-
* "name": "Standard",
|
|
6448
|
-
* "short": "Std"
|
|
6449
|
-
* },
|
|
6450
|
-
* "rated": true,
|
|
6451
|
-
* "speed": "rapid",
|
|
6452
|
-
* "timeControl": {
|
|
6453
|
-
* "type": "clock",
|
|
6454
|
-
* "limit": 600,
|
|
6455
|
-
* "increment": 0,
|
|
6456
|
-
* "show": "10+0"
|
|
6457
|
-
* },
|
|
6458
|
-
* "color": "random",
|
|
6459
|
-
* "finalColor": "black",
|
|
6460
|
-
* "perf": {
|
|
6461
|
-
* "icon": "",
|
|
6462
|
-
* "name": "Rapid"
|
|
6463
|
-
* },
|
|
6464
|
-
* "direction": "out",
|
|
6465
|
-
* "declineReason": "I'm not accepting challenges at the moment.",
|
|
6466
|
-
* "declineReasonKey": "generic"
|
|
6467
|
-
* } */
|
|
6468
6422
|
ChallengeDeclinedJson: {
|
|
6469
6423
|
/** @description Human readable, possibly translated reason why the challenge was declined. */
|
|
6470
6424
|
declineReason: string;
|
|
@@ -6492,8 +6446,8 @@ export interface components {
|
|
|
6492
6446
|
};
|
|
6493
6447
|
GameEventPlayer: {
|
|
6494
6448
|
aiLevel?: number;
|
|
6495
|
-
id
|
|
6496
|
-
name
|
|
6449
|
+
id: string;
|
|
6450
|
+
name: string;
|
|
6497
6451
|
title?: components["schemas"]["Title"] | null;
|
|
6498
6452
|
rating?: number;
|
|
6499
6453
|
provisional?: boolean;
|
|
@@ -10538,7 +10492,7 @@ export interface operations {
|
|
|
10538
10492
|
broadcastsSearch: {
|
|
10539
10493
|
parameters: {
|
|
10540
10494
|
query?: {
|
|
10541
|
-
/** @description Which page to fetch.
|
|
10495
|
+
/** @description Which page to fetch. */
|
|
10542
10496
|
page?: number;
|
|
10543
10497
|
/** @description Search term */
|
|
10544
10498
|
q?: string;
|