@lichess-org/types 2.0.18 → 2.0.20
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 +552 -108
- package/package.json +5 -5
package/lichess-api.d.ts
CHANGED
|
@@ -203,6 +203,31 @@ export interface paths {
|
|
|
203
203
|
patch?: never;
|
|
204
204
|
trace?: never;
|
|
205
205
|
};
|
|
206
|
+
"/api/puzzle/next": {
|
|
207
|
+
parameters: {
|
|
208
|
+
query?: never;
|
|
209
|
+
header?: never;
|
|
210
|
+
path?: never;
|
|
211
|
+
cookie?: never;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Get a new puzzle
|
|
215
|
+
* @description Get a random Lichess puzzle in JSON format.
|
|
216
|
+
*
|
|
217
|
+
* If authenticated, only returns puzzles that the user has never seen before.
|
|
218
|
+
*
|
|
219
|
+
* **DO NOT** use this endpoint to enumerate puzzles for mass download. Instead, download the [full public puzzle database](https://database.lichess.org/#puzzles).
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
get: operations["apiPuzzleNext"];
|
|
223
|
+
put?: never;
|
|
224
|
+
post?: never;
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
206
231
|
"/api/puzzle/activity": {
|
|
207
232
|
parameters: {
|
|
208
233
|
query?: never;
|
|
@@ -1579,7 +1604,7 @@ export interface paths {
|
|
|
1579
1604
|
patch?: never;
|
|
1580
1605
|
trace?: never;
|
|
1581
1606
|
};
|
|
1582
|
-
"/broadcast/{broadcastTournamentId}/
|
|
1607
|
+
"/broadcast/{broadcastTournamentId}/players": {
|
|
1583
1608
|
parameters: {
|
|
1584
1609
|
query?: never;
|
|
1585
1610
|
header?: never;
|
|
@@ -1587,11 +1612,11 @@ export interface paths {
|
|
|
1587
1612
|
cookie?: never;
|
|
1588
1613
|
};
|
|
1589
1614
|
/**
|
|
1590
|
-
* Get a broadcast
|
|
1591
|
-
* @description Get the
|
|
1615
|
+
* Get players of a broadcast
|
|
1616
|
+
* @description Get the list of players of a broadcast tournament, if available.
|
|
1592
1617
|
*
|
|
1593
1618
|
*/
|
|
1594
|
-
get: operations["
|
|
1619
|
+
get: operations["broadcastPlayersGet"];
|
|
1595
1620
|
put?: never;
|
|
1596
1621
|
post?: never;
|
|
1597
1622
|
delete?: never;
|
|
@@ -3422,8 +3447,10 @@ export interface paths {
|
|
|
3422
3447
|
* Start the OAuth2 Authorization Code Flow with PKCE by securely
|
|
3423
3448
|
* generating two random strings unique to each authorization
|
|
3424
3449
|
* request:
|
|
3450
|
+
*
|
|
3425
3451
|
* * `code_verifier`
|
|
3426
3452
|
* * `state`
|
|
3453
|
+
*
|
|
3427
3454
|
* Store these in session storage. Make sure not to reveal `code_verifier`
|
|
3428
3455
|
* to eavesdroppers. Do not show it in URLs, do not abuse `state` to store
|
|
3429
3456
|
* it, do not send it over insecure connections. However it is fine if
|
|
@@ -3433,16 +3460,21 @@ export interface paths {
|
|
|
3433
3460
|
* authorization and then be redirected back to the given `redirect_uri`.
|
|
3434
3461
|
* If the authorization failed, the following query string parameters will
|
|
3435
3462
|
* be appended to the redirection:
|
|
3463
|
+
*
|
|
3436
3464
|
* * `error`, in particular with value `access_denied` if the user
|
|
3437
3465
|
* cancelled authorization
|
|
3438
3466
|
* * `error_description` to aid debugging
|
|
3439
3467
|
* * `state`, exactly as passed in the `state` parameter
|
|
3468
|
+
*
|
|
3440
3469
|
* If the authorization succeeded, the following query string parameters
|
|
3441
3470
|
* will be appended to the redirection:
|
|
3471
|
+
*
|
|
3442
3472
|
* * `code`, containing a fresh short-lived authorization code
|
|
3443
3473
|
* * `state`, exactly as passed in the `state` parameter
|
|
3474
|
+
*
|
|
3444
3475
|
* Next, to defend against cross site request forgery, check that the
|
|
3445
3476
|
* returned `state` matches the `state` you originally generated.
|
|
3477
|
+
*
|
|
3446
3478
|
* Finally, continue by using the authorization code to
|
|
3447
3479
|
* [obtain an access token](#operation/apiToken).
|
|
3448
3480
|
*
|
|
@@ -3515,6 +3547,7 @@ export interface paths {
|
|
|
3515
3547
|
/**
|
|
3516
3548
|
* Masters database
|
|
3517
3549
|
* @description **Endpoint: <https://explorer.lichess.ovh/masters>**
|
|
3550
|
+
*
|
|
3518
3551
|
* Example: `curl https://explorer.lichess.ovh/masters?play=d2d4,d7d5,c2c4,c7c6,c4d5`
|
|
3519
3552
|
*
|
|
3520
3553
|
*/
|
|
@@ -3537,7 +3570,9 @@ export interface paths {
|
|
|
3537
3570
|
/**
|
|
3538
3571
|
* Lichess games
|
|
3539
3572
|
* @description **Endpoint: <https://explorer.lichess.ovh/lichess>**
|
|
3573
|
+
*
|
|
3540
3574
|
* Games sampled from all Lichess players.
|
|
3575
|
+
*
|
|
3541
3576
|
* Example: `curl https://explorer.lichess.ovh/lichess?variant=standard&speeds=blitz,rapid,classical&ratings=2200,2500&fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR%20w%20KQkq%20-%200%201`
|
|
3542
3577
|
*
|
|
3543
3578
|
*/
|
|
@@ -3560,13 +3595,17 @@ export interface paths {
|
|
|
3560
3595
|
/**
|
|
3561
3596
|
* Player games
|
|
3562
3597
|
* @description **Endpoint: <https://explorer.lichess.ovh/player>**
|
|
3598
|
+
*
|
|
3563
3599
|
* Games of a Lichess player.
|
|
3600
|
+
*
|
|
3564
3601
|
* Responds with a stream of [newline delimited JSON](#section/Introduction/Streaming-with-ND-JSON). Will start indexing
|
|
3565
3602
|
* on demand, immediately respond with the current results, and stream
|
|
3566
3603
|
* more updates until indexing is complete. The stream is throttled
|
|
3567
3604
|
* and deduplicated. Empty lines may be sent to avoid timeouts.
|
|
3605
|
+
*
|
|
3568
3606
|
* Will index new games at most once per minute, and revisit previously
|
|
3569
3607
|
* ongoing games at most once every day.
|
|
3608
|
+
*
|
|
3570
3609
|
* Example: `curl https://explorer.lichess.ovh/player?player=revoof&color=white&play=d2d4,d7d5&recentGames=1`
|
|
3571
3610
|
*
|
|
3572
3611
|
*/
|
|
@@ -3589,6 +3628,7 @@ export interface paths {
|
|
|
3589
3628
|
/**
|
|
3590
3629
|
* OTB master game
|
|
3591
3630
|
* @description **Endpoint: `https://explorer.lichess.ovh/masters/pgn/{gameId}`**
|
|
3631
|
+
*
|
|
3592
3632
|
* Example: `curl https://explorer.lichess.ovh/masters/pgn/aAbqI4ey`
|
|
3593
3633
|
*
|
|
3594
3634
|
*/
|
|
@@ -4648,6 +4688,142 @@ export interface components {
|
|
|
4648
4688
|
Ok: {
|
|
4649
4689
|
ok?: boolean;
|
|
4650
4690
|
};
|
|
4691
|
+
TimelineEntryFollow: {
|
|
4692
|
+
/** @enum {string} */
|
|
4693
|
+
type: "follow";
|
|
4694
|
+
date: number;
|
|
4695
|
+
data: {
|
|
4696
|
+
u1: string;
|
|
4697
|
+
u2: string;
|
|
4698
|
+
};
|
|
4699
|
+
};
|
|
4700
|
+
TimelineEntryTeamJoin: {
|
|
4701
|
+
/** @enum {string} */
|
|
4702
|
+
type: "team-join";
|
|
4703
|
+
date: number;
|
|
4704
|
+
data: {
|
|
4705
|
+
userId: string;
|
|
4706
|
+
teamId: string;
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
TimelineEntryTeamCreate: {
|
|
4710
|
+
/** @enum {string} */
|
|
4711
|
+
type: "team-create";
|
|
4712
|
+
date: number;
|
|
4713
|
+
data: {
|
|
4714
|
+
userId: string;
|
|
4715
|
+
teamId: string;
|
|
4716
|
+
};
|
|
4717
|
+
};
|
|
4718
|
+
TimelineEntryForumPost: {
|
|
4719
|
+
/** @enum {string} */
|
|
4720
|
+
type: "forum-post";
|
|
4721
|
+
date: number;
|
|
4722
|
+
data: {
|
|
4723
|
+
userId: string;
|
|
4724
|
+
topicId: string;
|
|
4725
|
+
topicName: string;
|
|
4726
|
+
postId: string;
|
|
4727
|
+
};
|
|
4728
|
+
};
|
|
4729
|
+
TimelineEntryBlogPost: {
|
|
4730
|
+
/** @enum {string} */
|
|
4731
|
+
type: "blog-post";
|
|
4732
|
+
date: number;
|
|
4733
|
+
data: {
|
|
4734
|
+
id: string;
|
|
4735
|
+
slug: string;
|
|
4736
|
+
title: string;
|
|
4737
|
+
};
|
|
4738
|
+
};
|
|
4739
|
+
TimelineEntryUblogPost: {
|
|
4740
|
+
/** @enum {string} */
|
|
4741
|
+
type: "ublog-post";
|
|
4742
|
+
date: number;
|
|
4743
|
+
data: {
|
|
4744
|
+
userId: string;
|
|
4745
|
+
id: string;
|
|
4746
|
+
slug: string;
|
|
4747
|
+
title: string;
|
|
4748
|
+
};
|
|
4749
|
+
};
|
|
4750
|
+
TimelineEntryTourJoin: {
|
|
4751
|
+
/** @enum {string} */
|
|
4752
|
+
type: "tour-join";
|
|
4753
|
+
date: number;
|
|
4754
|
+
data: {
|
|
4755
|
+
userId: string;
|
|
4756
|
+
tourId: string;
|
|
4757
|
+
tourName: string;
|
|
4758
|
+
};
|
|
4759
|
+
};
|
|
4760
|
+
TimelineEntryGameEnd: {
|
|
4761
|
+
/** @enum {string} */
|
|
4762
|
+
type: "game-end";
|
|
4763
|
+
date: number;
|
|
4764
|
+
data: {
|
|
4765
|
+
fullId: string;
|
|
4766
|
+
opponent: string;
|
|
4767
|
+
win: boolean;
|
|
4768
|
+
perf: components["schemas"]["PerfType"];
|
|
4769
|
+
};
|
|
4770
|
+
};
|
|
4771
|
+
TimelineEntrySimul: {
|
|
4772
|
+
/** @enum {string} */
|
|
4773
|
+
type: "simul-create" | "simul-join";
|
|
4774
|
+
date: number;
|
|
4775
|
+
data: {
|
|
4776
|
+
userId: string;
|
|
4777
|
+
simulId: string;
|
|
4778
|
+
simulName: string;
|
|
4779
|
+
};
|
|
4780
|
+
};
|
|
4781
|
+
TimelineEntryStudyLike: {
|
|
4782
|
+
/** @enum {string} */
|
|
4783
|
+
type: "study-like";
|
|
4784
|
+
date: number;
|
|
4785
|
+
data: {
|
|
4786
|
+
userId: string;
|
|
4787
|
+
studyId: string;
|
|
4788
|
+
studyName: string;
|
|
4789
|
+
};
|
|
4790
|
+
};
|
|
4791
|
+
TimelineEntryPlanStart: {
|
|
4792
|
+
/** @enum {string} */
|
|
4793
|
+
type: "plan-start";
|
|
4794
|
+
date: number;
|
|
4795
|
+
data: {
|
|
4796
|
+
userId: string;
|
|
4797
|
+
};
|
|
4798
|
+
};
|
|
4799
|
+
TimelineEntryPlanRenew: {
|
|
4800
|
+
/** @enum {string} */
|
|
4801
|
+
type: "plan-renew";
|
|
4802
|
+
date: number;
|
|
4803
|
+
data: {
|
|
4804
|
+
userId: string;
|
|
4805
|
+
months: number;
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
TimelineEntryUblogPostLike: {
|
|
4809
|
+
/** @enum {string} */
|
|
4810
|
+
type: "ublog-post-like";
|
|
4811
|
+
date: number;
|
|
4812
|
+
data: {
|
|
4813
|
+
userId: string;
|
|
4814
|
+
id: string;
|
|
4815
|
+
title: string;
|
|
4816
|
+
};
|
|
4817
|
+
};
|
|
4818
|
+
TimelineEntryStreamStart: {
|
|
4819
|
+
/** @enum {string} */
|
|
4820
|
+
type: "stream-start";
|
|
4821
|
+
date: number;
|
|
4822
|
+
data: {
|
|
4823
|
+
id: string;
|
|
4824
|
+
name?: string;
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4651
4827
|
/** @example {
|
|
4652
4828
|
* "entries": [
|
|
4653
4829
|
* {
|
|
@@ -4776,7 +4952,7 @@ export interface components {
|
|
|
4776
4952
|
* {
|
|
4777
4953
|
* "type": "stream-start",
|
|
4778
4954
|
* "data": {
|
|
4779
|
-
* "
|
|
4955
|
+
* "id": "chess-network",
|
|
4780
4956
|
* "title": "Streamers Battle December !team | lichess.org"
|
|
4781
4957
|
* },
|
|
4782
4958
|
* "date": 1644232201429
|
|
@@ -4797,8 +4973,30 @@ export interface components {
|
|
|
4797
4973
|
* }
|
|
4798
4974
|
* } */
|
|
4799
4975
|
Timeline: {
|
|
4800
|
-
entries
|
|
4801
|
-
|
|
4976
|
+
entries: (
|
|
4977
|
+
| components["schemas"]["TimelineEntryFollow"]
|
|
4978
|
+
| components["schemas"]["TimelineEntryTeamJoin"]
|
|
4979
|
+
| components["schemas"]["TimelineEntryTeamCreate"]
|
|
4980
|
+
| components["schemas"]["TimelineEntryForumPost"]
|
|
4981
|
+
| components["schemas"]["TimelineEntryBlogPost"]
|
|
4982
|
+
| components["schemas"]["TimelineEntryUblogPost"]
|
|
4983
|
+
| components["schemas"]["TimelineEntryTourJoin"]
|
|
4984
|
+
| components["schemas"]["TimelineEntryGameEnd"]
|
|
4985
|
+
| components["schemas"]["TimelineEntrySimul"]
|
|
4986
|
+
| components["schemas"]["TimelineEntryStudyLike"]
|
|
4987
|
+
| components["schemas"]["TimelineEntryPlanStart"]
|
|
4988
|
+
| components["schemas"]["TimelineEntryPlanRenew"]
|
|
4989
|
+
| components["schemas"]["TimelineEntryUblogPostLike"]
|
|
4990
|
+
| components["schemas"]["TimelineEntryStreamStart"]
|
|
4991
|
+
)[];
|
|
4992
|
+
users: {
|
|
4993
|
+
[key: string]: {
|
|
4994
|
+
id: string;
|
|
4995
|
+
name: string;
|
|
4996
|
+
title?: components["schemas"]["Title"];
|
|
4997
|
+
patron?: boolean;
|
|
4998
|
+
};
|
|
4999
|
+
};
|
|
4802
5000
|
};
|
|
4803
5001
|
/** @example [Event "Rated Blitz game"]
|
|
4804
5002
|
* [Site "https://lichess.org/fY44h4OY"]
|
|
@@ -4885,6 +5083,7 @@ export interface components {
|
|
|
4885
5083
|
mistake: number;
|
|
4886
5084
|
blunder: number;
|
|
4887
5085
|
acpl: number;
|
|
5086
|
+
accuracy?: number;
|
|
4888
5087
|
};
|
|
4889
5088
|
team?: string;
|
|
4890
5089
|
};
|
|
@@ -5838,7 +6037,8 @@ export interface components {
|
|
|
5838
6037
|
startsAt?: number;
|
|
5839
6038
|
/** @description The start date/time is unknown and the round will start automatically when the previous round completes */
|
|
5840
6039
|
startsAfterPrevious?: boolean;
|
|
5841
|
-
|
|
6040
|
+
/** Format: int64 */
|
|
6041
|
+
finishedAt?: number;
|
|
5842
6042
|
/** Format: uri */
|
|
5843
6043
|
url: string;
|
|
5844
6044
|
/** Format: int64 */
|
|
@@ -5999,7 +6199,7 @@ export interface components {
|
|
|
5999
6199
|
*/
|
|
6000
6200
|
tier?: 3 | 4 | 5 | -1;
|
|
6001
6201
|
};
|
|
6002
|
-
|
|
6202
|
+
BroadcastPlayerEntry: {
|
|
6003
6203
|
/** @example Hernandez Riera, Jose */
|
|
6004
6204
|
name?: string;
|
|
6005
6205
|
/** @example 2.5 */
|
|
@@ -6008,6 +6208,10 @@ export interface components {
|
|
|
6008
6208
|
played?: number;
|
|
6009
6209
|
/** @example 2149 */
|
|
6010
6210
|
rating?: number;
|
|
6211
|
+
/** @example -5 */
|
|
6212
|
+
ratingDiff?: number;
|
|
6213
|
+
/** @example 2138 */
|
|
6214
|
+
performance?: number;
|
|
6011
6215
|
/** @example FM */
|
|
6012
6216
|
title?: string;
|
|
6013
6217
|
/** @example 3408230 */
|
|
@@ -6189,8 +6393,9 @@ export interface components {
|
|
|
6189
6393
|
* "name": "Round 1",
|
|
6190
6394
|
* "slug": "round-1",
|
|
6191
6395
|
* "createdAt": 1716014105255,
|
|
6192
|
-
* "ongoing":
|
|
6396
|
+
* "ongoing": false,
|
|
6193
6397
|
* "startsAt": 1716045300000,
|
|
6398
|
+
* "finishedAt": 1716062100000,
|
|
6194
6399
|
* "url": "https://lichess.org/broadcast/casablanca-chess-2024/round-1/p9DoebWl"
|
|
6195
6400
|
* },
|
|
6196
6401
|
* "tour": {
|
|
@@ -7038,6 +7243,38 @@ export interface components {
|
|
|
7038
7243
|
* "scheduledAt": 1612203514628
|
|
7039
7244
|
* } */
|
|
7040
7245
|
BulkPairing: unknown;
|
|
7246
|
+
/** @example {
|
|
7247
|
+
* "depth": 29,
|
|
7248
|
+
* "fen": "r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R",
|
|
7249
|
+
* "knodes": 106325,
|
|
7250
|
+
* "pvs": [
|
|
7251
|
+
* {
|
|
7252
|
+
* "cp": 41,
|
|
7253
|
+
* "moves": "d1e2 d8e7 a2a4 a7a6 b5c4 d7d6 d2d3 g8f6 c1e3 c6a5"
|
|
7254
|
+
* },
|
|
7255
|
+
* {
|
|
7256
|
+
* "cp": 39,
|
|
7257
|
+
* "moves": "c2c3 a7a6 b5a4 g8f6 d2d3 b7b5 a4b3 h7h6 a2a4 c8b7"
|
|
7258
|
+
* },
|
|
7259
|
+
* {
|
|
7260
|
+
* "cp": 37,
|
|
7261
|
+
* "moves": "d2d3 d8f6 c2c3 a7a6 b5a4 f8c5 d3d4 c5a7 c1e3 g8e7"
|
|
7262
|
+
* }
|
|
7263
|
+
* ]
|
|
7264
|
+
* } */
|
|
7265
|
+
CloudEval: {
|
|
7266
|
+
depth?: number;
|
|
7267
|
+
fen?: string;
|
|
7268
|
+
knodes?: number;
|
|
7269
|
+
pvs?: {
|
|
7270
|
+
/** @description Evaluation in centi-pawns, from White's point of view */
|
|
7271
|
+
cp?: number;
|
|
7272
|
+
/** @description Evaluation in moves to mate, from White's point of view */
|
|
7273
|
+
mate?: number;
|
|
7274
|
+
/** @description Variation in UCI notation */
|
|
7275
|
+
moves?: string;
|
|
7276
|
+
}[];
|
|
7277
|
+
};
|
|
7041
7278
|
/**
|
|
7042
7279
|
* @default chess
|
|
7043
7280
|
* @example chess
|
|
@@ -7198,23 +7435,41 @@ export interface components {
|
|
|
7198
7435
|
/** @description The reason why the request was rejected. */
|
|
7199
7436
|
error_description?: string;
|
|
7200
7437
|
};
|
|
7438
|
+
OpeningExplorerOpening: {
|
|
7439
|
+
eco: string;
|
|
7440
|
+
name: string;
|
|
7441
|
+
};
|
|
7442
|
+
OpeningExplorerGamePlayer: {
|
|
7443
|
+
name: string;
|
|
7444
|
+
rating: number;
|
|
7445
|
+
};
|
|
7446
|
+
OpeningExplorerMastersGame: {
|
|
7447
|
+
id: string;
|
|
7448
|
+
/** @enum {string|null} */
|
|
7449
|
+
winner: "white" | "black" | null;
|
|
7450
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7451
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7452
|
+
year: number;
|
|
7453
|
+
month?: string;
|
|
7454
|
+
};
|
|
7201
7455
|
/** @example {
|
|
7202
7456
|
* "opening": {
|
|
7203
7457
|
* "eco": "D10",
|
|
7204
7458
|
* "name": "Slav Defense: Exchange Variation"
|
|
7205
7459
|
* },
|
|
7206
|
-
* "white":
|
|
7207
|
-
* "draws":
|
|
7208
|
-
* "black":
|
|
7460
|
+
* "white": 1828,
|
|
7461
|
+
* "draws": 4904,
|
|
7462
|
+
* "black": 1403,
|
|
7209
7463
|
* "moves": [
|
|
7210
7464
|
* {
|
|
7211
7465
|
* "uci": "c6d5",
|
|
7212
7466
|
* "san": "cxd5",
|
|
7213
|
-
* "averageRating":
|
|
7214
|
-
* "white":
|
|
7215
|
-
* "draws":
|
|
7216
|
-
* "black":
|
|
7217
|
-
* "game": null
|
|
7467
|
+
* "averageRating": 2414,
|
|
7468
|
+
* "white": 1828,
|
|
7469
|
+
* "draws": 4904,
|
|
7470
|
+
* "black": 1402,
|
|
7471
|
+
* "game": null,
|
|
7472
|
+
* "opening": null
|
|
7218
7473
|
* },
|
|
7219
7474
|
* {
|
|
7220
7475
|
* "uci": "g8f6",
|
|
@@ -7226,16 +7481,20 @@ export interface components {
|
|
|
7226
7481
|
* "game": {
|
|
7227
7482
|
* "id": "1EErB5jc",
|
|
7228
7483
|
* "winner": "black",
|
|
7229
|
-
* "white": {
|
|
7230
|
-
* "name": "Drozdovskij, Yuri",
|
|
7231
|
-
* "rating": 2509
|
|
7232
|
-
* },
|
|
7233
7484
|
* "black": {
|
|
7234
7485
|
* "name": "Dobrov, Vladimir",
|
|
7235
7486
|
* "rating": 2515
|
|
7236
7487
|
* },
|
|
7488
|
+
* "white": {
|
|
7489
|
+
* "name": "Drozdovskij, Yuri",
|
|
7490
|
+
* "rating": 2509
|
|
7491
|
+
* },
|
|
7237
7492
|
* "year": 2006,
|
|
7238
7493
|
* "month": "2006-01"
|
|
7494
|
+
* },
|
|
7495
|
+
* "opening": {
|
|
7496
|
+
* "eco": "D06",
|
|
7497
|
+
* "name": "Queen's Gambit Declined: Marshall Defense, Tan Gambit"
|
|
7239
7498
|
* }
|
|
7240
7499
|
* }
|
|
7241
7500
|
* ],
|
|
@@ -7244,14 +7503,14 @@ export interface components {
|
|
|
7244
7503
|
* "uci": "c6d5",
|
|
7245
7504
|
* "id": "kN6d9l2i",
|
|
7246
7505
|
* "winner": "black",
|
|
7247
|
-
* "white": {
|
|
7248
|
-
* "name": "Carlsen, M.",
|
|
7249
|
-
* "rating": 2881
|
|
7250
|
-
* },
|
|
7251
7506
|
* "black": {
|
|
7252
7507
|
* "name": "Anand, V.",
|
|
7253
7508
|
* "rating": 2785
|
|
7254
7509
|
* },
|
|
7510
|
+
* "white": {
|
|
7511
|
+
* "name": "Carlsen, M.",
|
|
7512
|
+
* "rating": 2881
|
|
7513
|
+
* },
|
|
7255
7514
|
* "year": 2014,
|
|
7256
7515
|
* "month": "2014-06"
|
|
7257
7516
|
* },
|
|
@@ -7259,59 +7518,211 @@ export interface components {
|
|
|
7259
7518
|
* "uci": "c6d5",
|
|
7260
7519
|
* "id": "qeYPJL2y",
|
|
7261
7520
|
* "winner": "white",
|
|
7521
|
+
* "black": {
|
|
7522
|
+
* "name": "Carlsen, M.",
|
|
7523
|
+
* "rating": 2843
|
|
7524
|
+
* },
|
|
7262
7525
|
* "white": {
|
|
7263
7526
|
* "name": "So, W.",
|
|
7264
7527
|
* "rating": 2778
|
|
7265
7528
|
* },
|
|
7529
|
+
* "year": 2018,
|
|
7530
|
+
* "month": "2018-06"
|
|
7531
|
+
* }
|
|
7532
|
+
* ]
|
|
7533
|
+
* } */
|
|
7534
|
+
OpeningExplorerMasters: {
|
|
7535
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7536
|
+
white: number;
|
|
7537
|
+
draws: number;
|
|
7538
|
+
black: number;
|
|
7539
|
+
moves: {
|
|
7540
|
+
uci: string;
|
|
7541
|
+
san: string;
|
|
7542
|
+
averageRating: number;
|
|
7543
|
+
white: number;
|
|
7544
|
+
draws: number;
|
|
7545
|
+
black: number;
|
|
7546
|
+
game: components["schemas"]["OpeningExplorerMastersGame"] | null;
|
|
7547
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7548
|
+
}[];
|
|
7549
|
+
topGames: ({
|
|
7550
|
+
uci: string;
|
|
7551
|
+
} & components["schemas"]["OpeningExplorerMastersGame"])[];
|
|
7552
|
+
};
|
|
7553
|
+
OpeningExplorerLichessGame: {
|
|
7554
|
+
id: string;
|
|
7555
|
+
/** @enum {string|null} */
|
|
7556
|
+
winner: "white" | "black" | null;
|
|
7557
|
+
speed: components["schemas"]["Speed"];
|
|
7558
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7559
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7560
|
+
year: number;
|
|
7561
|
+
month: string;
|
|
7562
|
+
};
|
|
7563
|
+
/** @example {
|
|
7564
|
+
* "opening": {
|
|
7565
|
+
* "eco": "D10",
|
|
7566
|
+
* "name": "Slav Defense: Exchange Variation"
|
|
7567
|
+
* },
|
|
7568
|
+
* "white": 4164079,
|
|
7569
|
+
* "draws": 405547,
|
|
7570
|
+
* "black": 3668091,
|
|
7571
|
+
* "moves": [
|
|
7572
|
+
* {
|
|
7573
|
+
* "uci": "c6d5",
|
|
7574
|
+
* "san": "cxd5",
|
|
7575
|
+
* "averageRating": 1801,
|
|
7576
|
+
* "white": 3716043,
|
|
7577
|
+
* "draws": 370963,
|
|
7578
|
+
* "black": 3304807,
|
|
7579
|
+
* "game": null,
|
|
7580
|
+
* "opening": null
|
|
7581
|
+
* },
|
|
7582
|
+
* {
|
|
7583
|
+
* "uci": "d8d5",
|
|
7584
|
+
* "san": "Qxd5",
|
|
7585
|
+
* "averageRating": 1658,
|
|
7586
|
+
* "white": 195544,
|
|
7587
|
+
* "draws": 14378,
|
|
7588
|
+
* "black": 140001,
|
|
7589
|
+
* "game": null,
|
|
7590
|
+
* "opening": null
|
|
7591
|
+
* }
|
|
7592
|
+
* ],
|
|
7593
|
+
* "recentGames": [
|
|
7594
|
+
* {
|
|
7595
|
+
* "uci": "c6d5",
|
|
7596
|
+
* "id": "ilsfX0gq",
|
|
7597
|
+
* "winner": "black",
|
|
7598
|
+
* "speed": "blitz",
|
|
7599
|
+
* "mode": "rated",
|
|
7600
|
+
* "black": {
|
|
7601
|
+
* "name": "captan64",
|
|
7602
|
+
* "rating": 2201
|
|
7603
|
+
* },
|
|
7604
|
+
* "white": {
|
|
7605
|
+
* "name": "ElsaPato33",
|
|
7606
|
+
* "rating": 2324
|
|
7607
|
+
* },
|
|
7608
|
+
* "year": 2024,
|
|
7609
|
+
* "month": "2024-10"
|
|
7610
|
+
* }
|
|
7611
|
+
* ],
|
|
7612
|
+
* "topGames": [
|
|
7613
|
+
* {
|
|
7614
|
+
* "uci": "g8f6",
|
|
7615
|
+
* "id": "EqJcFS1j",
|
|
7616
|
+
* "winner": "white",
|
|
7617
|
+
* "speed": "ultraBullet",
|
|
7618
|
+
* "mode": "rated",
|
|
7266
7619
|
* "black": {
|
|
7267
|
-
* "name": "
|
|
7268
|
-
* "rating":
|
|
7620
|
+
* "name": "toivok",
|
|
7621
|
+
* "rating": 2708
|
|
7622
|
+
* },
|
|
7623
|
+
* "white": {
|
|
7624
|
+
* "name": "penguingim1",
|
|
7625
|
+
* "rating": 2969
|
|
7269
7626
|
* },
|
|
7270
7627
|
* "year": 2018,
|
|
7271
|
-
* "month": "2018-
|
|
7628
|
+
* "month": "2018-04"
|
|
7272
7629
|
* }
|
|
7273
7630
|
* ],
|
|
7274
|
-
* "recentGames": [],
|
|
7275
7631
|
* "history": [
|
|
7276
7632
|
* {
|
|
7277
|
-
* "month": "
|
|
7278
|
-
* "
|
|
7279
|
-
* "draws":
|
|
7280
|
-
* "
|
|
7633
|
+
* "month": "2013-01",
|
|
7634
|
+
* "white": 60,
|
|
7635
|
+
* "draws": 2,
|
|
7636
|
+
* "black": 54
|
|
7281
7637
|
* },
|
|
7282
7638
|
* {
|
|
7283
|
-
* "month": "
|
|
7284
|
-
* "
|
|
7285
|
-
* "draws":
|
|
7286
|
-
* "
|
|
7639
|
+
* "month": "2013-02",
|
|
7640
|
+
* "white": 71,
|
|
7641
|
+
* "draws": 8,
|
|
7642
|
+
* "black": 75
|
|
7643
|
+
* },
|
|
7644
|
+
* {
|
|
7645
|
+
* "month": "2013-03",
|
|
7646
|
+
* "white": 83,
|
|
7647
|
+
* "draws": 4,
|
|
7648
|
+
* "black": 72
|
|
7287
7649
|
* }
|
|
7288
7650
|
* ]
|
|
7289
7651
|
* } */
|
|
7290
|
-
|
|
7652
|
+
OpeningExplorerLichess: {
|
|
7653
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7654
|
+
white: number;
|
|
7655
|
+
draws: number;
|
|
7656
|
+
black: number;
|
|
7657
|
+
moves: {
|
|
7658
|
+
uci: string;
|
|
7659
|
+
san: string;
|
|
7660
|
+
averageRating: number;
|
|
7661
|
+
white: number;
|
|
7662
|
+
draws: number;
|
|
7663
|
+
black: number;
|
|
7664
|
+
game: components["schemas"]["OpeningExplorerLichessGame"] | null;
|
|
7665
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7666
|
+
}[];
|
|
7667
|
+
topGames: ({
|
|
7668
|
+
uci: string;
|
|
7669
|
+
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7670
|
+
recentGames: ({
|
|
7671
|
+
uci: string;
|
|
7672
|
+
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7673
|
+
history?: {
|
|
7674
|
+
month: string;
|
|
7675
|
+
white: number;
|
|
7676
|
+
draws: number;
|
|
7677
|
+
black: number;
|
|
7678
|
+
}[];
|
|
7679
|
+
};
|
|
7680
|
+
OpeningExplorerPlayerGame: {
|
|
7681
|
+
id: string;
|
|
7682
|
+
/** @enum {string|null} */
|
|
7683
|
+
winner: "white" | "black" | null;
|
|
7684
|
+
speed: components["schemas"]["Speed"];
|
|
7685
|
+
/** @enum {string} */
|
|
7686
|
+
mode: "rated" | "casual";
|
|
7687
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7688
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7689
|
+
year: number;
|
|
7690
|
+
month: string;
|
|
7691
|
+
};
|
|
7291
7692
|
/** @example {
|
|
7292
|
-
* "
|
|
7693
|
+
* "opening": {
|
|
7694
|
+
* "eco": "D00",
|
|
7695
|
+
* "name": "Queen's Pawn Game"
|
|
7696
|
+
* },
|
|
7697
|
+
* "queuePosition": 25,
|
|
7698
|
+
* "white": 366,
|
|
7293
7699
|
* "draws": 23,
|
|
7294
|
-
* "black":
|
|
7700
|
+
* "black": 279,
|
|
7295
7701
|
* "moves": [
|
|
7296
7702
|
* {
|
|
7297
7703
|
* "uci": "c2c4",
|
|
7298
7704
|
* "san": "c4",
|
|
7299
7705
|
* "averageOpponentRating": 1695,
|
|
7300
7706
|
* "performance": 1744,
|
|
7301
|
-
* "white":
|
|
7707
|
+
* "white": 361,
|
|
7302
7708
|
* "draws": 23,
|
|
7303
|
-
* "black":
|
|
7304
|
-
* "game": null
|
|
7709
|
+
* "black": 272,
|
|
7710
|
+
* "game": null,
|
|
7711
|
+
* "opening": {
|
|
7712
|
+
* "eco": "D06",
|
|
7713
|
+
* "name": "Queen's Gambit"
|
|
7714
|
+
* }
|
|
7305
7715
|
* },
|
|
7306
7716
|
* {
|
|
7307
7717
|
* "uci": "c2c3",
|
|
7308
7718
|
* "san": "c3",
|
|
7309
|
-
* "averageOpponentRating":
|
|
7310
|
-
* "performance":
|
|
7719
|
+
* "averageOpponentRating": 1797,
|
|
7720
|
+
* "performance": 1797,
|
|
7311
7721
|
* "white": 2,
|
|
7312
7722
|
* "draws": 0,
|
|
7313
7723
|
* "black": 2,
|
|
7314
|
-
* "game": null
|
|
7724
|
+
* "game": null,
|
|
7725
|
+
* "opening": null
|
|
7315
7726
|
* },
|
|
7316
7727
|
* {
|
|
7317
7728
|
* "uci": "e2e4",
|
|
@@ -7321,41 +7732,24 @@ export interface components {
|
|
|
7321
7732
|
* "white": 1,
|
|
7322
7733
|
* "draws": 0,
|
|
7323
7734
|
* "black": 2,
|
|
7324
|
-
* "game": null
|
|
7735
|
+
* "game": null,
|
|
7736
|
+
* "opening": {
|
|
7737
|
+
* "eco": "D00",
|
|
7738
|
+
* "name": "Blackmar-Diemer Gambit"
|
|
7739
|
+
* }
|
|
7325
7740
|
* },
|
|
7326
7741
|
* {
|
|
7327
7742
|
* "uci": "g1f3",
|
|
7328
7743
|
* "san": "Nf3",
|
|
7329
|
-
* "averageOpponentRating":
|
|
7744
|
+
* "averageOpponentRating": 1497,
|
|
7330
7745
|
* "performance": 1374,
|
|
7331
7746
|
* "white": 1,
|
|
7332
7747
|
* "draws": 0,
|
|
7333
7748
|
* "black": 2,
|
|
7334
|
-
* "game": null
|
|
7335
|
-
*
|
|
7336
|
-
*
|
|
7337
|
-
*
|
|
7338
|
-
* "san": "h3",
|
|
7339
|
-
* "averageOpponentRating": 1696,
|
|
7340
|
-
* "performance": 2496,
|
|
7341
|
-
* "white": 1,
|
|
7342
|
-
* "draws": 0,
|
|
7343
|
-
* "black": 0,
|
|
7344
|
-
* "game": {
|
|
7345
|
-
* "id": "zyI4GGKv",
|
|
7346
|
-
* "winner": "white",
|
|
7347
|
-
* "speed": "bullet",
|
|
7348
|
-
* "mode": "rated",
|
|
7349
|
-
* "black": {
|
|
7350
|
-
* "name": "gocool99",
|
|
7351
|
-
* "rating": 1696
|
|
7352
|
-
* },
|
|
7353
|
-
* "white": {
|
|
7354
|
-
* "name": "revoof",
|
|
7355
|
-
* "rating": 1702
|
|
7356
|
-
* },
|
|
7357
|
-
* "year": 2020,
|
|
7358
|
-
* "month": "2020-07"
|
|
7749
|
+
* "game": null,
|
|
7750
|
+
* "opening": {
|
|
7751
|
+
* "eco": "D02",
|
|
7752
|
+
* "name": "Queen's Pawn Game: Zukertort Variation"
|
|
7359
7753
|
* }
|
|
7360
7754
|
* },
|
|
7361
7755
|
* {
|
|
@@ -7381,35 +7775,51 @@ export interface components {
|
|
|
7381
7775
|
* },
|
|
7382
7776
|
* "year": 2020,
|
|
7383
7777
|
* "month": "2020-06"
|
|
7384
|
-
* }
|
|
7778
|
+
* },
|
|
7779
|
+
* "opening": null
|
|
7385
7780
|
* }
|
|
7386
7781
|
* ],
|
|
7387
7782
|
* "recentGames": [
|
|
7388
7783
|
* {
|
|
7389
7784
|
* "uci": "c2c4",
|
|
7390
|
-
* "id": "
|
|
7785
|
+
* "id": "ycZbWQZO",
|
|
7391
7786
|
* "winner": "white",
|
|
7392
7787
|
* "speed": "bullet",
|
|
7393
7788
|
* "mode": "rated",
|
|
7394
7789
|
* "black": {
|
|
7395
|
-
* "name": "
|
|
7396
|
-
* "rating":
|
|
7790
|
+
* "name": "Winavesh",
|
|
7791
|
+
* "rating": 1700
|
|
7397
7792
|
* },
|
|
7398
7793
|
* "white": {
|
|
7399
7794
|
* "name": "revoof",
|
|
7400
|
-
* "rating":
|
|
7795
|
+
* "rating": 1700
|
|
7401
7796
|
* },
|
|
7402
|
-
* "year":
|
|
7403
|
-
* "month": "
|
|
7797
|
+
* "year": 2024,
|
|
7798
|
+
* "month": "2024-11"
|
|
7404
7799
|
* }
|
|
7405
|
-
* ]
|
|
7406
|
-
* "opening": {
|
|
7407
|
-
* "eco": "D00",
|
|
7408
|
-
* "name": "Queen's Pawn Game"
|
|
7409
|
-
* },
|
|
7410
|
-
* "queuePosition": 0
|
|
7800
|
+
* ]
|
|
7411
7801
|
* } */
|
|
7412
|
-
|
|
7802
|
+
OpeningExplorerPlayer: {
|
|
7803
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7804
|
+
queuePosition: number;
|
|
7805
|
+
white: number;
|
|
7806
|
+
draws: number;
|
|
7807
|
+
black: number;
|
|
7808
|
+
moves: {
|
|
7809
|
+
uci: string;
|
|
7810
|
+
san: string;
|
|
7811
|
+
averageOpponentRating: number;
|
|
7812
|
+
performance: number;
|
|
7813
|
+
white: number;
|
|
7814
|
+
draws: number;
|
|
7815
|
+
black: number;
|
|
7816
|
+
game: components["schemas"]["OpeningExplorerPlayerGame"] | null;
|
|
7817
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7818
|
+
}[];
|
|
7819
|
+
recentGames: ({
|
|
7820
|
+
uci: string;
|
|
7821
|
+
} & components["schemas"]["OpeningExplorerPlayerGame"])[];
|
|
7822
|
+
};
|
|
7413
7823
|
/** @example [Event "Wch Blitz"]
|
|
7414
7824
|
* [Site "Astana"]
|
|
7415
7825
|
* [Date "2012.07.10"]
|
|
@@ -7792,6 +8202,35 @@ export interface operations {
|
|
|
7792
8202
|
};
|
|
7793
8203
|
};
|
|
7794
8204
|
};
|
|
8205
|
+
apiPuzzleNext: {
|
|
8206
|
+
parameters: {
|
|
8207
|
+
query?: {
|
|
8208
|
+
/** @description The theme or opening to filter puzzles with.
|
|
8209
|
+
*
|
|
8210
|
+
* Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml).
|
|
8211
|
+
* */
|
|
8212
|
+
angle?: string;
|
|
8213
|
+
/** @description The desired puzzle difficulty, relative to the authenticated user puzzle rating, or 1500 if anonymous. */
|
|
8214
|
+
difficulty?: "easiest" | "easier" | "normal" | "harder" | "hardest";
|
|
8215
|
+
};
|
|
8216
|
+
header?: never;
|
|
8217
|
+
path?: never;
|
|
8218
|
+
cookie?: never;
|
|
8219
|
+
};
|
|
8220
|
+
requestBody?: never;
|
|
8221
|
+
responses: {
|
|
8222
|
+
/** @description The requested puzzle. */
|
|
8223
|
+
200: {
|
|
8224
|
+
headers: {
|
|
8225
|
+
"Access-Control-Allow-Origin"?: string;
|
|
8226
|
+
[name: string]: unknown;
|
|
8227
|
+
};
|
|
8228
|
+
content: {
|
|
8229
|
+
"application/json": components["schemas"]["PuzzleAndGame"];
|
|
8230
|
+
};
|
|
8231
|
+
};
|
|
8232
|
+
};
|
|
8233
|
+
};
|
|
7795
8234
|
apiPuzzleActivity: {
|
|
7796
8235
|
parameters: {
|
|
7797
8236
|
query?: {
|
|
@@ -8081,7 +8520,7 @@ export interface operations {
|
|
|
8081
8520
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8082
8521
|
* */
|
|
8083
8522
|
evals?: boolean;
|
|
8084
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8523
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8085
8524
|
* */
|
|
8086
8525
|
accuracy?: boolean;
|
|
8087
8526
|
/** @description Include the opening name.
|
|
@@ -8146,7 +8585,7 @@ export interface operations {
|
|
|
8146
8585
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8147
8586
|
* */
|
|
8148
8587
|
evals?: boolean;
|
|
8149
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8588
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8150
8589
|
* */
|
|
8151
8590
|
accuracy?: boolean;
|
|
8152
8591
|
/** @description Include the opening name.
|
|
@@ -8225,7 +8664,7 @@ export interface operations {
|
|
|
8225
8664
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8226
8665
|
* */
|
|
8227
8666
|
evals?: boolean;
|
|
8228
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8667
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8229
8668
|
* */
|
|
8230
8669
|
accuracy?: boolean;
|
|
8231
8670
|
/** @description Include the opening name.
|
|
@@ -8300,7 +8739,7 @@ export interface operations {
|
|
|
8300
8739
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8301
8740
|
* */
|
|
8302
8741
|
evals?: boolean;
|
|
8303
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8742
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8304
8743
|
* */
|
|
8305
8744
|
accuracy?: boolean;
|
|
8306
8745
|
/** @description Include the opening name.
|
|
@@ -9341,7 +9780,7 @@ export interface operations {
|
|
|
9341
9780
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
9342
9781
|
* */
|
|
9343
9782
|
evals?: boolean;
|
|
9344
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
9783
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
9345
9784
|
* */
|
|
9346
9785
|
accuracy?: boolean;
|
|
9347
9786
|
/** @description Include the opening name.
|
|
@@ -10135,7 +10574,7 @@ export interface operations {
|
|
|
10135
10574
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
10136
10575
|
* */
|
|
10137
10576
|
evals?: boolean;
|
|
10138
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
10577
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
10139
10578
|
* */
|
|
10140
10579
|
accuracy?: boolean;
|
|
10141
10580
|
/** @description Include the opening name.
|
|
@@ -10328,7 +10767,7 @@ export interface operations {
|
|
|
10328
10767
|
requestBody?: never;
|
|
10329
10768
|
responses: {
|
|
10330
10769
|
/** @description The study headers. */
|
|
10331
|
-
|
|
10770
|
+
204: {
|
|
10332
10771
|
headers: {
|
|
10333
10772
|
"Access-Control-Allow-Origin"?: string;
|
|
10334
10773
|
"Last-Modified"?: string;
|
|
@@ -10642,7 +11081,7 @@ export interface operations {
|
|
|
10642
11081
|
};
|
|
10643
11082
|
};
|
|
10644
11083
|
};
|
|
10645
|
-
|
|
11084
|
+
broadcastPlayersGet: {
|
|
10646
11085
|
parameters: {
|
|
10647
11086
|
query?: never;
|
|
10648
11087
|
header?: never;
|
|
@@ -10654,13 +11093,13 @@ export interface operations {
|
|
|
10654
11093
|
};
|
|
10655
11094
|
requestBody?: never;
|
|
10656
11095
|
responses: {
|
|
10657
|
-
/** @description The broadcast
|
|
11096
|
+
/** @description The broadcast players */
|
|
10658
11097
|
200: {
|
|
10659
11098
|
headers: {
|
|
10660
11099
|
[name: string]: unknown;
|
|
10661
11100
|
};
|
|
10662
11101
|
content: {
|
|
10663
|
-
"application/json": components["schemas"]["
|
|
11102
|
+
"application/json": components["schemas"]["BroadcastPlayerEntry"][];
|
|
10664
11103
|
};
|
|
10665
11104
|
};
|
|
10666
11105
|
};
|
|
@@ -12978,7 +13417,7 @@ export interface operations {
|
|
|
12978
13417
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
12979
13418
|
* */
|
|
12980
13419
|
evals?: boolean;
|
|
12981
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
13420
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
12982
13421
|
* */
|
|
12983
13422
|
accuracy?: boolean;
|
|
12984
13423
|
/** @description Include the opening name.
|
|
@@ -13128,7 +13567,7 @@ export interface operations {
|
|
|
13128
13567
|
query: {
|
|
13129
13568
|
/**
|
|
13130
13569
|
* @description FEN of the position
|
|
13131
|
-
* @example
|
|
13570
|
+
* @example r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 3 3
|
|
13132
13571
|
*/
|
|
13133
13572
|
fen: string;
|
|
13134
13573
|
/** @description Number of variations */
|
|
@@ -13149,7 +13588,7 @@ export interface operations {
|
|
|
13149
13588
|
[name: string]: unknown;
|
|
13150
13589
|
};
|
|
13151
13590
|
content: {
|
|
13152
|
-
"application/json":
|
|
13591
|
+
"application/json": components["schemas"]["CloudEval"];
|
|
13153
13592
|
};
|
|
13154
13593
|
};
|
|
13155
13594
|
/** @description The position was not found in the cloud evaluation database. */
|
|
@@ -13619,7 +14058,7 @@ export interface operations {
|
|
|
13619
14058
|
* Required to find an opening name, if `fen` is not an exact match
|
|
13620
14059
|
* for a named position.
|
|
13621
14060
|
*
|
|
13622
|
-
* @example
|
|
14061
|
+
* @example d2d4,d7d5,c2c4,c7c6,c4d5
|
|
13623
14062
|
*/
|
|
13624
14063
|
play?: string;
|
|
13625
14064
|
/** @description Include only games from this year or later */
|
|
@@ -13644,7 +14083,7 @@ export interface operations {
|
|
|
13644
14083
|
[name: string]: unknown;
|
|
13645
14084
|
};
|
|
13646
14085
|
content: {
|
|
13647
|
-
"application/json": components["schemas"]["
|
|
14086
|
+
"application/json": components["schemas"]["OpeningExplorerMasters"];
|
|
13648
14087
|
};
|
|
13649
14088
|
};
|
|
13650
14089
|
};
|
|
@@ -13665,7 +14104,7 @@ export interface operations {
|
|
|
13665
14104
|
* Required to find an opening name, if `fen` is not an exact match
|
|
13666
14105
|
* for a named position.
|
|
13667
14106
|
*
|
|
13668
|
-
* @example
|
|
14107
|
+
* @example d2d4,d7d5,c2c4,c7c6,c4d5
|
|
13669
14108
|
*/
|
|
13670
14109
|
play?: string;
|
|
13671
14110
|
/** @description Comma separated list of game speeds to filter by */
|
|
@@ -13702,19 +14141,24 @@ export interface operations {
|
|
|
13702
14141
|
[name: string]: unknown;
|
|
13703
14142
|
};
|
|
13704
14143
|
content: {
|
|
13705
|
-
"application/json": components["schemas"]["
|
|
14144
|
+
"application/json": components["schemas"]["OpeningExplorerLichess"];
|
|
13706
14145
|
};
|
|
13707
14146
|
};
|
|
13708
14147
|
};
|
|
13709
14148
|
};
|
|
13710
14149
|
openingExplorerPlayer: {
|
|
13711
14150
|
parameters: {
|
|
13712
|
-
query
|
|
14151
|
+
query: {
|
|
13713
14152
|
/**
|
|
13714
14153
|
* @description Username or ID of the player
|
|
13715
14154
|
* @example revoof
|
|
13716
14155
|
*/
|
|
13717
|
-
player
|
|
14156
|
+
player: string;
|
|
14157
|
+
/**
|
|
14158
|
+
* @description Look for games with *player* on the given side
|
|
14159
|
+
* @example white
|
|
14160
|
+
*/
|
|
14161
|
+
color: "white" | "black";
|
|
13718
14162
|
/** @description Variant */
|
|
13719
14163
|
variant?: components["schemas"]["VariantKey"];
|
|
13720
14164
|
/**
|
|
@@ -13757,7 +14201,7 @@ export interface operations {
|
|
|
13757
14201
|
[name: string]: unknown;
|
|
13758
14202
|
};
|
|
13759
14203
|
content: {
|
|
13760
|
-
"application/nd-json": components["schemas"]["
|
|
14204
|
+
"application/nd-json": components["schemas"]["OpeningExplorerPlayer"];
|
|
13761
14205
|
};
|
|
13762
14206
|
};
|
|
13763
14207
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "Lichess.org API types",
|
|
5
5
|
"homepage": "https://github.com/lichess-org/api",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"gen": "openapi-typescript ../doc/specs/lichess-api.yaml -o lichess-api.d.ts --default-non-nullable=false"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"openapi-typescript": "^7.4.
|
|
15
|
-
"prettier": "^3.
|
|
16
|
-
"typescript": "^5.
|
|
14
|
+
"openapi-typescript": "^7.4.4",
|
|
15
|
+
"prettier": "^3.4.2",
|
|
16
|
+
"typescript": "^5.7.2"
|
|
17
17
|
},
|
|
18
|
-
"packageManager": "pnpm@9.
|
|
18
|
+
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
|
|
19
19
|
}
|