@lichess-org/types 2.0.19 → 2.0.21
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 +516 -107
- 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;
|
|
@@ -799,7 +824,7 @@ export interface paths {
|
|
|
799
824
|
};
|
|
800
825
|
/**
|
|
801
826
|
* Get current tournaments
|
|
802
|
-
* @description Get recently
|
|
827
|
+
* @description Get recently active and finished tournaments.
|
|
803
828
|
* This API is used to display the [Lichess tournament schedule](https://lichess.org/tournament).
|
|
804
829
|
*
|
|
805
830
|
*/
|
|
@@ -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;
|
|
@@ -1711,7 +1736,7 @@ export interface paths {
|
|
|
1711
1736
|
patch?: never;
|
|
1712
1737
|
trace?: never;
|
|
1713
1738
|
};
|
|
1714
|
-
"/broadcast/round/{broadcastRoundId}/push": {
|
|
1739
|
+
"/api/broadcast/round/{broadcastRoundId}/push": {
|
|
1715
1740
|
parameters: {
|
|
1716
1741
|
query?: never;
|
|
1717
1742
|
header?: 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
|
};
|
|
@@ -5857,7 +6056,6 @@ export interface components {
|
|
|
5857
6056
|
};
|
|
5858
6057
|
BroadcastTop: {
|
|
5859
6058
|
active?: components["schemas"]["BroadcastWithLastRound"][];
|
|
5860
|
-
upcoming?: components["schemas"]["BroadcastWithLastRound"][];
|
|
5861
6059
|
past?: {
|
|
5862
6060
|
/** @example 4 */
|
|
5863
6061
|
currentPage?: number;
|
|
@@ -6000,7 +6198,7 @@ export interface components {
|
|
|
6000
6198
|
*/
|
|
6001
6199
|
tier?: 3 | 4 | 5 | -1;
|
|
6002
6200
|
};
|
|
6003
|
-
|
|
6201
|
+
BroadcastPlayerEntry: {
|
|
6004
6202
|
/** @example Hernandez Riera, Jose */
|
|
6005
6203
|
name?: string;
|
|
6006
6204
|
/** @example 2.5 */
|
|
@@ -6009,6 +6207,10 @@ export interface components {
|
|
|
6009
6207
|
played?: number;
|
|
6010
6208
|
/** @example 2149 */
|
|
6011
6209
|
rating?: number;
|
|
6210
|
+
/** @example -5 */
|
|
6211
|
+
ratingDiff?: number;
|
|
6212
|
+
/** @example 2138 */
|
|
6213
|
+
performance?: number;
|
|
6012
6214
|
/** @example FM */
|
|
6013
6215
|
title?: string;
|
|
6014
6216
|
/** @example 3408230 */
|
|
@@ -7232,23 +7434,41 @@ export interface components {
|
|
|
7232
7434
|
/** @description The reason why the request was rejected. */
|
|
7233
7435
|
error_description?: string;
|
|
7234
7436
|
};
|
|
7437
|
+
OpeningExplorerOpening: {
|
|
7438
|
+
eco: string;
|
|
7439
|
+
name: string;
|
|
7440
|
+
};
|
|
7441
|
+
OpeningExplorerGamePlayer: {
|
|
7442
|
+
name: string;
|
|
7443
|
+
rating: number;
|
|
7444
|
+
};
|
|
7445
|
+
OpeningExplorerMastersGame: {
|
|
7446
|
+
id: string;
|
|
7447
|
+
/** @enum {string|null} */
|
|
7448
|
+
winner: "white" | "black" | null;
|
|
7449
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7450
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7451
|
+
year: number;
|
|
7452
|
+
month?: string;
|
|
7453
|
+
};
|
|
7235
7454
|
/** @example {
|
|
7236
7455
|
* "opening": {
|
|
7237
7456
|
* "eco": "D10",
|
|
7238
7457
|
* "name": "Slav Defense: Exchange Variation"
|
|
7239
7458
|
* },
|
|
7240
|
-
* "white":
|
|
7241
|
-
* "draws":
|
|
7242
|
-
* "black":
|
|
7459
|
+
* "white": 1828,
|
|
7460
|
+
* "draws": 4904,
|
|
7461
|
+
* "black": 1403,
|
|
7243
7462
|
* "moves": [
|
|
7244
7463
|
* {
|
|
7245
7464
|
* "uci": "c6d5",
|
|
7246
7465
|
* "san": "cxd5",
|
|
7247
|
-
* "averageRating":
|
|
7248
|
-
* "white":
|
|
7249
|
-
* "draws":
|
|
7250
|
-
* "black":
|
|
7251
|
-
* "game": null
|
|
7466
|
+
* "averageRating": 2414,
|
|
7467
|
+
* "white": 1828,
|
|
7468
|
+
* "draws": 4904,
|
|
7469
|
+
* "black": 1402,
|
|
7470
|
+
* "game": null,
|
|
7471
|
+
* "opening": null
|
|
7252
7472
|
* },
|
|
7253
7473
|
* {
|
|
7254
7474
|
* "uci": "g8f6",
|
|
@@ -7260,16 +7480,20 @@ export interface components {
|
|
|
7260
7480
|
* "game": {
|
|
7261
7481
|
* "id": "1EErB5jc",
|
|
7262
7482
|
* "winner": "black",
|
|
7263
|
-
* "white": {
|
|
7264
|
-
* "name": "Drozdovskij, Yuri",
|
|
7265
|
-
* "rating": 2509
|
|
7266
|
-
* },
|
|
7267
7483
|
* "black": {
|
|
7268
7484
|
* "name": "Dobrov, Vladimir",
|
|
7269
7485
|
* "rating": 2515
|
|
7270
7486
|
* },
|
|
7487
|
+
* "white": {
|
|
7488
|
+
* "name": "Drozdovskij, Yuri",
|
|
7489
|
+
* "rating": 2509
|
|
7490
|
+
* },
|
|
7271
7491
|
* "year": 2006,
|
|
7272
7492
|
* "month": "2006-01"
|
|
7493
|
+
* },
|
|
7494
|
+
* "opening": {
|
|
7495
|
+
* "eco": "D06",
|
|
7496
|
+
* "name": "Queen's Gambit Declined: Marshall Defense, Tan Gambit"
|
|
7273
7497
|
* }
|
|
7274
7498
|
* }
|
|
7275
7499
|
* ],
|
|
@@ -7278,14 +7502,14 @@ export interface components {
|
|
|
7278
7502
|
* "uci": "c6d5",
|
|
7279
7503
|
* "id": "kN6d9l2i",
|
|
7280
7504
|
* "winner": "black",
|
|
7281
|
-
* "white": {
|
|
7282
|
-
* "name": "Carlsen, M.",
|
|
7283
|
-
* "rating": 2881
|
|
7284
|
-
* },
|
|
7285
7505
|
* "black": {
|
|
7286
7506
|
* "name": "Anand, V.",
|
|
7287
7507
|
* "rating": 2785
|
|
7288
7508
|
* },
|
|
7509
|
+
* "white": {
|
|
7510
|
+
* "name": "Carlsen, M.",
|
|
7511
|
+
* "rating": 2881
|
|
7512
|
+
* },
|
|
7289
7513
|
* "year": 2014,
|
|
7290
7514
|
* "month": "2014-06"
|
|
7291
7515
|
* },
|
|
@@ -7293,59 +7517,211 @@ export interface components {
|
|
|
7293
7517
|
* "uci": "c6d5",
|
|
7294
7518
|
* "id": "qeYPJL2y",
|
|
7295
7519
|
* "winner": "white",
|
|
7520
|
+
* "black": {
|
|
7521
|
+
* "name": "Carlsen, M.",
|
|
7522
|
+
* "rating": 2843
|
|
7523
|
+
* },
|
|
7296
7524
|
* "white": {
|
|
7297
7525
|
* "name": "So, W.",
|
|
7298
7526
|
* "rating": 2778
|
|
7299
7527
|
* },
|
|
7528
|
+
* "year": 2018,
|
|
7529
|
+
* "month": "2018-06"
|
|
7530
|
+
* }
|
|
7531
|
+
* ]
|
|
7532
|
+
* } */
|
|
7533
|
+
OpeningExplorerMasters: {
|
|
7534
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7535
|
+
white: number;
|
|
7536
|
+
draws: number;
|
|
7537
|
+
black: number;
|
|
7538
|
+
moves: {
|
|
7539
|
+
uci: string;
|
|
7540
|
+
san: string;
|
|
7541
|
+
averageRating: number;
|
|
7542
|
+
white: number;
|
|
7543
|
+
draws: number;
|
|
7544
|
+
black: number;
|
|
7545
|
+
game: components["schemas"]["OpeningExplorerMastersGame"] | null;
|
|
7546
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7547
|
+
}[];
|
|
7548
|
+
topGames: ({
|
|
7549
|
+
uci: string;
|
|
7550
|
+
} & components["schemas"]["OpeningExplorerMastersGame"])[];
|
|
7551
|
+
};
|
|
7552
|
+
OpeningExplorerLichessGame: {
|
|
7553
|
+
id: string;
|
|
7554
|
+
/** @enum {string|null} */
|
|
7555
|
+
winner: "white" | "black" | null;
|
|
7556
|
+
speed: components["schemas"]["Speed"];
|
|
7557
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7558
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7559
|
+
year: number;
|
|
7560
|
+
month: string;
|
|
7561
|
+
};
|
|
7562
|
+
/** @example {
|
|
7563
|
+
* "opening": {
|
|
7564
|
+
* "eco": "D10",
|
|
7565
|
+
* "name": "Slav Defense: Exchange Variation"
|
|
7566
|
+
* },
|
|
7567
|
+
* "white": 4164079,
|
|
7568
|
+
* "draws": 405547,
|
|
7569
|
+
* "black": 3668091,
|
|
7570
|
+
* "moves": [
|
|
7571
|
+
* {
|
|
7572
|
+
* "uci": "c6d5",
|
|
7573
|
+
* "san": "cxd5",
|
|
7574
|
+
* "averageRating": 1801,
|
|
7575
|
+
* "white": 3716043,
|
|
7576
|
+
* "draws": 370963,
|
|
7577
|
+
* "black": 3304807,
|
|
7578
|
+
* "game": null,
|
|
7579
|
+
* "opening": null
|
|
7580
|
+
* },
|
|
7581
|
+
* {
|
|
7582
|
+
* "uci": "d8d5",
|
|
7583
|
+
* "san": "Qxd5",
|
|
7584
|
+
* "averageRating": 1658,
|
|
7585
|
+
* "white": 195544,
|
|
7586
|
+
* "draws": 14378,
|
|
7587
|
+
* "black": 140001,
|
|
7588
|
+
* "game": null,
|
|
7589
|
+
* "opening": null
|
|
7590
|
+
* }
|
|
7591
|
+
* ],
|
|
7592
|
+
* "recentGames": [
|
|
7593
|
+
* {
|
|
7594
|
+
* "uci": "c6d5",
|
|
7595
|
+
* "id": "ilsfX0gq",
|
|
7596
|
+
* "winner": "black",
|
|
7597
|
+
* "speed": "blitz",
|
|
7598
|
+
* "mode": "rated",
|
|
7599
|
+
* "black": {
|
|
7600
|
+
* "name": "captan64",
|
|
7601
|
+
* "rating": 2201
|
|
7602
|
+
* },
|
|
7603
|
+
* "white": {
|
|
7604
|
+
* "name": "ElsaPato33",
|
|
7605
|
+
* "rating": 2324
|
|
7606
|
+
* },
|
|
7607
|
+
* "year": 2024,
|
|
7608
|
+
* "month": "2024-10"
|
|
7609
|
+
* }
|
|
7610
|
+
* ],
|
|
7611
|
+
* "topGames": [
|
|
7612
|
+
* {
|
|
7613
|
+
* "uci": "g8f6",
|
|
7614
|
+
* "id": "EqJcFS1j",
|
|
7615
|
+
* "winner": "white",
|
|
7616
|
+
* "speed": "ultraBullet",
|
|
7617
|
+
* "mode": "rated",
|
|
7300
7618
|
* "black": {
|
|
7301
|
-
* "name": "
|
|
7302
|
-
* "rating":
|
|
7619
|
+
* "name": "toivok",
|
|
7620
|
+
* "rating": 2708
|
|
7621
|
+
* },
|
|
7622
|
+
* "white": {
|
|
7623
|
+
* "name": "penguingim1",
|
|
7624
|
+
* "rating": 2969
|
|
7303
7625
|
* },
|
|
7304
7626
|
* "year": 2018,
|
|
7305
|
-
* "month": "2018-
|
|
7627
|
+
* "month": "2018-04"
|
|
7306
7628
|
* }
|
|
7307
7629
|
* ],
|
|
7308
|
-
* "recentGames": [],
|
|
7309
7630
|
* "history": [
|
|
7310
7631
|
* {
|
|
7311
|
-
* "month": "
|
|
7312
|
-
* "
|
|
7313
|
-
* "draws":
|
|
7314
|
-
* "
|
|
7632
|
+
* "month": "2013-01",
|
|
7633
|
+
* "white": 60,
|
|
7634
|
+
* "draws": 2,
|
|
7635
|
+
* "black": 54
|
|
7636
|
+
* },
|
|
7637
|
+
* {
|
|
7638
|
+
* "month": "2013-02",
|
|
7639
|
+
* "white": 71,
|
|
7640
|
+
* "draws": 8,
|
|
7641
|
+
* "black": 75
|
|
7315
7642
|
* },
|
|
7316
7643
|
* {
|
|
7317
|
-
* "month": "
|
|
7318
|
-
* "
|
|
7319
|
-
* "draws":
|
|
7320
|
-
* "
|
|
7644
|
+
* "month": "2013-03",
|
|
7645
|
+
* "white": 83,
|
|
7646
|
+
* "draws": 4,
|
|
7647
|
+
* "black": 72
|
|
7321
7648
|
* }
|
|
7322
7649
|
* ]
|
|
7323
7650
|
* } */
|
|
7324
|
-
|
|
7651
|
+
OpeningExplorerLichess: {
|
|
7652
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7653
|
+
white: number;
|
|
7654
|
+
draws: number;
|
|
7655
|
+
black: number;
|
|
7656
|
+
moves: {
|
|
7657
|
+
uci: string;
|
|
7658
|
+
san: string;
|
|
7659
|
+
averageRating: number;
|
|
7660
|
+
white: number;
|
|
7661
|
+
draws: number;
|
|
7662
|
+
black: number;
|
|
7663
|
+
game: components["schemas"]["OpeningExplorerLichessGame"] | null;
|
|
7664
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7665
|
+
}[];
|
|
7666
|
+
topGames: ({
|
|
7667
|
+
uci: string;
|
|
7668
|
+
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7669
|
+
recentGames: ({
|
|
7670
|
+
uci: string;
|
|
7671
|
+
} & components["schemas"]["OpeningExplorerLichessGame"])[];
|
|
7672
|
+
history?: {
|
|
7673
|
+
month: string;
|
|
7674
|
+
white: number;
|
|
7675
|
+
draws: number;
|
|
7676
|
+
black: number;
|
|
7677
|
+
}[];
|
|
7678
|
+
};
|
|
7679
|
+
OpeningExplorerPlayerGame: {
|
|
7680
|
+
id: string;
|
|
7681
|
+
/** @enum {string|null} */
|
|
7682
|
+
winner: "white" | "black" | null;
|
|
7683
|
+
speed: components["schemas"]["Speed"];
|
|
7684
|
+
/** @enum {string} */
|
|
7685
|
+
mode: "rated" | "casual";
|
|
7686
|
+
white: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7687
|
+
black: components["schemas"]["OpeningExplorerGamePlayer"];
|
|
7688
|
+
year: number;
|
|
7689
|
+
month: string;
|
|
7690
|
+
};
|
|
7325
7691
|
/** @example {
|
|
7326
|
-
* "
|
|
7692
|
+
* "opening": {
|
|
7693
|
+
* "eco": "D00",
|
|
7694
|
+
* "name": "Queen's Pawn Game"
|
|
7695
|
+
* },
|
|
7696
|
+
* "queuePosition": 25,
|
|
7697
|
+
* "white": 366,
|
|
7327
7698
|
* "draws": 23,
|
|
7328
|
-
* "black":
|
|
7699
|
+
* "black": 279,
|
|
7329
7700
|
* "moves": [
|
|
7330
7701
|
* {
|
|
7331
7702
|
* "uci": "c2c4",
|
|
7332
7703
|
* "san": "c4",
|
|
7333
7704
|
* "averageOpponentRating": 1695,
|
|
7334
7705
|
* "performance": 1744,
|
|
7335
|
-
* "white":
|
|
7706
|
+
* "white": 361,
|
|
7336
7707
|
* "draws": 23,
|
|
7337
|
-
* "black":
|
|
7338
|
-
* "game": null
|
|
7708
|
+
* "black": 272,
|
|
7709
|
+
* "game": null,
|
|
7710
|
+
* "opening": {
|
|
7711
|
+
* "eco": "D06",
|
|
7712
|
+
* "name": "Queen's Gambit"
|
|
7713
|
+
* }
|
|
7339
7714
|
* },
|
|
7340
7715
|
* {
|
|
7341
7716
|
* "uci": "c2c3",
|
|
7342
7717
|
* "san": "c3",
|
|
7343
|
-
* "averageOpponentRating":
|
|
7344
|
-
* "performance":
|
|
7718
|
+
* "averageOpponentRating": 1797,
|
|
7719
|
+
* "performance": 1797,
|
|
7345
7720
|
* "white": 2,
|
|
7346
7721
|
* "draws": 0,
|
|
7347
7722
|
* "black": 2,
|
|
7348
|
-
* "game": null
|
|
7723
|
+
* "game": null,
|
|
7724
|
+
* "opening": null
|
|
7349
7725
|
* },
|
|
7350
7726
|
* {
|
|
7351
7727
|
* "uci": "e2e4",
|
|
@@ -7355,41 +7731,24 @@ export interface components {
|
|
|
7355
7731
|
* "white": 1,
|
|
7356
7732
|
* "draws": 0,
|
|
7357
7733
|
* "black": 2,
|
|
7358
|
-
* "game": null
|
|
7734
|
+
* "game": null,
|
|
7735
|
+
* "opening": {
|
|
7736
|
+
* "eco": "D00",
|
|
7737
|
+
* "name": "Blackmar-Diemer Gambit"
|
|
7738
|
+
* }
|
|
7359
7739
|
* },
|
|
7360
7740
|
* {
|
|
7361
7741
|
* "uci": "g1f3",
|
|
7362
7742
|
* "san": "Nf3",
|
|
7363
|
-
* "averageOpponentRating":
|
|
7743
|
+
* "averageOpponentRating": 1497,
|
|
7364
7744
|
* "performance": 1374,
|
|
7365
7745
|
* "white": 1,
|
|
7366
7746
|
* "draws": 0,
|
|
7367
7747
|
* "black": 2,
|
|
7368
|
-
* "game": null
|
|
7369
|
-
*
|
|
7370
|
-
*
|
|
7371
|
-
*
|
|
7372
|
-
* "san": "h3",
|
|
7373
|
-
* "averageOpponentRating": 1696,
|
|
7374
|
-
* "performance": 2496,
|
|
7375
|
-
* "white": 1,
|
|
7376
|
-
* "draws": 0,
|
|
7377
|
-
* "black": 0,
|
|
7378
|
-
* "game": {
|
|
7379
|
-
* "id": "zyI4GGKv",
|
|
7380
|
-
* "winner": "white",
|
|
7381
|
-
* "speed": "bullet",
|
|
7382
|
-
* "mode": "rated",
|
|
7383
|
-
* "black": {
|
|
7384
|
-
* "name": "gocool99",
|
|
7385
|
-
* "rating": 1696
|
|
7386
|
-
* },
|
|
7387
|
-
* "white": {
|
|
7388
|
-
* "name": "revoof",
|
|
7389
|
-
* "rating": 1702
|
|
7390
|
-
* },
|
|
7391
|
-
* "year": 2020,
|
|
7392
|
-
* "month": "2020-07"
|
|
7748
|
+
* "game": null,
|
|
7749
|
+
* "opening": {
|
|
7750
|
+
* "eco": "D02",
|
|
7751
|
+
* "name": "Queen's Pawn Game: Zukertort Variation"
|
|
7393
7752
|
* }
|
|
7394
7753
|
* },
|
|
7395
7754
|
* {
|
|
@@ -7415,35 +7774,51 @@ export interface components {
|
|
|
7415
7774
|
* },
|
|
7416
7775
|
* "year": 2020,
|
|
7417
7776
|
* "month": "2020-06"
|
|
7418
|
-
* }
|
|
7777
|
+
* },
|
|
7778
|
+
* "opening": null
|
|
7419
7779
|
* }
|
|
7420
7780
|
* ],
|
|
7421
7781
|
* "recentGames": [
|
|
7422
7782
|
* {
|
|
7423
7783
|
* "uci": "c2c4",
|
|
7424
|
-
* "id": "
|
|
7784
|
+
* "id": "ycZbWQZO",
|
|
7425
7785
|
* "winner": "white",
|
|
7426
7786
|
* "speed": "bullet",
|
|
7427
7787
|
* "mode": "rated",
|
|
7428
7788
|
* "black": {
|
|
7429
|
-
* "name": "
|
|
7430
|
-
* "rating":
|
|
7789
|
+
* "name": "Winavesh",
|
|
7790
|
+
* "rating": 1700
|
|
7431
7791
|
* },
|
|
7432
7792
|
* "white": {
|
|
7433
7793
|
* "name": "revoof",
|
|
7434
|
-
* "rating":
|
|
7794
|
+
* "rating": 1700
|
|
7435
7795
|
* },
|
|
7436
|
-
* "year":
|
|
7437
|
-
* "month": "
|
|
7796
|
+
* "year": 2024,
|
|
7797
|
+
* "month": "2024-11"
|
|
7438
7798
|
* }
|
|
7439
|
-
* ]
|
|
7440
|
-
* "opening": {
|
|
7441
|
-
* "eco": "D00",
|
|
7442
|
-
* "name": "Queen's Pawn Game"
|
|
7443
|
-
* },
|
|
7444
|
-
* "queuePosition": 0
|
|
7799
|
+
* ]
|
|
7445
7800
|
* } */
|
|
7446
|
-
|
|
7801
|
+
OpeningExplorerPlayer: {
|
|
7802
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7803
|
+
queuePosition: number;
|
|
7804
|
+
white: number;
|
|
7805
|
+
draws: number;
|
|
7806
|
+
black: number;
|
|
7807
|
+
moves: {
|
|
7808
|
+
uci: string;
|
|
7809
|
+
san: string;
|
|
7810
|
+
averageOpponentRating: number;
|
|
7811
|
+
performance: number;
|
|
7812
|
+
white: number;
|
|
7813
|
+
draws: number;
|
|
7814
|
+
black: number;
|
|
7815
|
+
game: components["schemas"]["OpeningExplorerPlayerGame"] | null;
|
|
7816
|
+
opening: components["schemas"]["OpeningExplorerOpening"] | null;
|
|
7817
|
+
}[];
|
|
7818
|
+
recentGames: ({
|
|
7819
|
+
uci: string;
|
|
7820
|
+
} & components["schemas"]["OpeningExplorerPlayerGame"])[];
|
|
7821
|
+
};
|
|
7447
7822
|
/** @example [Event "Wch Blitz"]
|
|
7448
7823
|
* [Site "Astana"]
|
|
7449
7824
|
* [Date "2012.07.10"]
|
|
@@ -7826,6 +8201,35 @@ export interface operations {
|
|
|
7826
8201
|
};
|
|
7827
8202
|
};
|
|
7828
8203
|
};
|
|
8204
|
+
apiPuzzleNext: {
|
|
8205
|
+
parameters: {
|
|
8206
|
+
query?: {
|
|
8207
|
+
/** @description The theme or opening to filter puzzles with.
|
|
8208
|
+
*
|
|
8209
|
+
* Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml).
|
|
8210
|
+
* */
|
|
8211
|
+
angle?: string;
|
|
8212
|
+
/** @description The desired puzzle difficulty, relative to the authenticated user puzzle rating, or 1500 if anonymous. */
|
|
8213
|
+
difficulty?: "easiest" | "easier" | "normal" | "harder" | "hardest";
|
|
8214
|
+
};
|
|
8215
|
+
header?: never;
|
|
8216
|
+
path?: never;
|
|
8217
|
+
cookie?: never;
|
|
8218
|
+
};
|
|
8219
|
+
requestBody?: never;
|
|
8220
|
+
responses: {
|
|
8221
|
+
/** @description The requested puzzle. */
|
|
8222
|
+
200: {
|
|
8223
|
+
headers: {
|
|
8224
|
+
"Access-Control-Allow-Origin"?: string;
|
|
8225
|
+
[name: string]: unknown;
|
|
8226
|
+
};
|
|
8227
|
+
content: {
|
|
8228
|
+
"application/json": components["schemas"]["PuzzleAndGame"];
|
|
8229
|
+
};
|
|
8230
|
+
};
|
|
8231
|
+
};
|
|
8232
|
+
};
|
|
7829
8233
|
apiPuzzleActivity: {
|
|
7830
8234
|
parameters: {
|
|
7831
8235
|
query?: {
|
|
@@ -8115,7 +8519,7 @@ export interface operations {
|
|
|
8115
8519
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8116
8520
|
* */
|
|
8117
8521
|
evals?: boolean;
|
|
8118
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8522
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8119
8523
|
* */
|
|
8120
8524
|
accuracy?: boolean;
|
|
8121
8525
|
/** @description Include the opening name.
|
|
@@ -8180,7 +8584,7 @@ export interface operations {
|
|
|
8180
8584
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8181
8585
|
* */
|
|
8182
8586
|
evals?: boolean;
|
|
8183
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8587
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8184
8588
|
* */
|
|
8185
8589
|
accuracy?: boolean;
|
|
8186
8590
|
/** @description Include the opening name.
|
|
@@ -8259,7 +8663,7 @@ export interface operations {
|
|
|
8259
8663
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8260
8664
|
* */
|
|
8261
8665
|
evals?: boolean;
|
|
8262
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8666
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8263
8667
|
* */
|
|
8264
8668
|
accuracy?: boolean;
|
|
8265
8669
|
/** @description Include the opening name.
|
|
@@ -8334,7 +8738,7 @@ export interface operations {
|
|
|
8334
8738
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
8335
8739
|
* */
|
|
8336
8740
|
evals?: boolean;
|
|
8337
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
8741
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
8338
8742
|
* */
|
|
8339
8743
|
accuracy?: boolean;
|
|
8340
8744
|
/** @description Include the opening name.
|
|
@@ -9375,7 +9779,7 @@ export interface operations {
|
|
|
9375
9779
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
9376
9780
|
* */
|
|
9377
9781
|
evals?: boolean;
|
|
9378
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
9782
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
9379
9783
|
* */
|
|
9380
9784
|
accuracy?: boolean;
|
|
9381
9785
|
/** @description Include the opening name.
|
|
@@ -10169,7 +10573,7 @@ export interface operations {
|
|
|
10169
10573
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
10170
10574
|
* */
|
|
10171
10575
|
evals?: boolean;
|
|
10172
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
10576
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
10173
10577
|
* */
|
|
10174
10578
|
accuracy?: boolean;
|
|
10175
10579
|
/** @description Include the opening name.
|
|
@@ -10549,7 +10953,7 @@ export interface operations {
|
|
|
10549
10953
|
broadcastsTop: {
|
|
10550
10954
|
parameters: {
|
|
10551
10955
|
query?: {
|
|
10552
|
-
/** @description Which page to fetch. Only page 1 has "active"
|
|
10956
|
+
/** @description Which page to fetch. Only page 1 has "active" broadcasts. */
|
|
10553
10957
|
page?: number;
|
|
10554
10958
|
/**
|
|
10555
10959
|
* @description Convert the "description" field from markdown to HTML
|
|
@@ -10676,7 +11080,7 @@ export interface operations {
|
|
|
10676
11080
|
};
|
|
10677
11081
|
};
|
|
10678
11082
|
};
|
|
10679
|
-
|
|
11083
|
+
broadcastPlayersGet: {
|
|
10680
11084
|
parameters: {
|
|
10681
11085
|
query?: never;
|
|
10682
11086
|
header?: never;
|
|
@@ -10688,13 +11092,13 @@ export interface operations {
|
|
|
10688
11092
|
};
|
|
10689
11093
|
requestBody?: never;
|
|
10690
11094
|
responses: {
|
|
10691
|
-
/** @description The broadcast
|
|
11095
|
+
/** @description The broadcast players */
|
|
10692
11096
|
200: {
|
|
10693
11097
|
headers: {
|
|
10694
11098
|
[name: string]: unknown;
|
|
10695
11099
|
};
|
|
10696
11100
|
content: {
|
|
10697
|
-
"application/json": components["schemas"]["
|
|
11101
|
+
"application/json": components["schemas"]["BroadcastPlayerEntry"][];
|
|
10698
11102
|
};
|
|
10699
11103
|
};
|
|
10700
11104
|
};
|
|
@@ -13012,7 +13416,7 @@ export interface operations {
|
|
|
13012
13416
|
* Or in an `analysis` JSON field, depending on the response type.
|
|
13013
13417
|
* */
|
|
13014
13418
|
evals?: boolean;
|
|
13015
|
-
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available.
|
|
13419
|
+
/** @description Include [accuracy percent](https://lichess.org/page/accuracy) of each player, when available. Only available in JSON.
|
|
13016
13420
|
* */
|
|
13017
13421
|
accuracy?: boolean;
|
|
13018
13422
|
/** @description Include the opening name.
|
|
@@ -13653,7 +14057,7 @@ export interface operations {
|
|
|
13653
14057
|
* Required to find an opening name, if `fen` is not an exact match
|
|
13654
14058
|
* for a named position.
|
|
13655
14059
|
*
|
|
13656
|
-
* @example
|
|
14060
|
+
* @example d2d4,d7d5,c2c4,c7c6,c4d5
|
|
13657
14061
|
*/
|
|
13658
14062
|
play?: string;
|
|
13659
14063
|
/** @description Include only games from this year or later */
|
|
@@ -13678,7 +14082,7 @@ export interface operations {
|
|
|
13678
14082
|
[name: string]: unknown;
|
|
13679
14083
|
};
|
|
13680
14084
|
content: {
|
|
13681
|
-
"application/json": components["schemas"]["
|
|
14085
|
+
"application/json": components["schemas"]["OpeningExplorerMasters"];
|
|
13682
14086
|
};
|
|
13683
14087
|
};
|
|
13684
14088
|
};
|
|
@@ -13699,7 +14103,7 @@ export interface operations {
|
|
|
13699
14103
|
* Required to find an opening name, if `fen` is not an exact match
|
|
13700
14104
|
* for a named position.
|
|
13701
14105
|
*
|
|
13702
|
-
* @example
|
|
14106
|
+
* @example d2d4,d7d5,c2c4,c7c6,c4d5
|
|
13703
14107
|
*/
|
|
13704
14108
|
play?: string;
|
|
13705
14109
|
/** @description Comma separated list of game speeds to filter by */
|
|
@@ -13736,19 +14140,24 @@ export interface operations {
|
|
|
13736
14140
|
[name: string]: unknown;
|
|
13737
14141
|
};
|
|
13738
14142
|
content: {
|
|
13739
|
-
"application/json": components["schemas"]["
|
|
14143
|
+
"application/json": components["schemas"]["OpeningExplorerLichess"];
|
|
13740
14144
|
};
|
|
13741
14145
|
};
|
|
13742
14146
|
};
|
|
13743
14147
|
};
|
|
13744
14148
|
openingExplorerPlayer: {
|
|
13745
14149
|
parameters: {
|
|
13746
|
-
query
|
|
14150
|
+
query: {
|
|
13747
14151
|
/**
|
|
13748
14152
|
* @description Username or ID of the player
|
|
13749
14153
|
* @example revoof
|
|
13750
14154
|
*/
|
|
13751
|
-
player
|
|
14155
|
+
player: string;
|
|
14156
|
+
/**
|
|
14157
|
+
* @description Look for games with *player* on the given side
|
|
14158
|
+
* @example white
|
|
14159
|
+
*/
|
|
14160
|
+
color: "white" | "black";
|
|
13752
14161
|
/** @description Variant */
|
|
13753
14162
|
variant?: components["schemas"]["VariantKey"];
|
|
13754
14163
|
/**
|
|
@@ -13791,7 +14200,7 @@ export interface operations {
|
|
|
13791
14200
|
[name: string]: unknown;
|
|
13792
14201
|
};
|
|
13793
14202
|
content: {
|
|
13794
|
-
"application/nd-json": components["schemas"]["
|
|
14203
|
+
"application/nd-json": components["schemas"]["OpeningExplorerPlayer"];
|
|
13795
14204
|
};
|
|
13796
14205
|
};
|
|
13797
14206
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
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
|
}
|