@lichess-org/types 2.0.127 → 2.0.128
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 +87 -0
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1439,6 +1439,26 @@ export interface paths {
|
|
|
1439
1439
|
patch?: never;
|
|
1440
1440
|
trace?: never;
|
|
1441
1441
|
};
|
|
1442
|
+
"/api/study": {
|
|
1443
|
+
parameters: {
|
|
1444
|
+
query?: never;
|
|
1445
|
+
header?: never;
|
|
1446
|
+
path?: never;
|
|
1447
|
+
cookie?: never;
|
|
1448
|
+
};
|
|
1449
|
+
get?: never;
|
|
1450
|
+
put?: never;
|
|
1451
|
+
/**
|
|
1452
|
+
* Create a new Study
|
|
1453
|
+
* @description Create a [study](https://lichess.org/study), and a new empty chapter within it.
|
|
1454
|
+
*/
|
|
1455
|
+
post: operations["apiStudyPost"];
|
|
1456
|
+
delete?: never;
|
|
1457
|
+
options?: never;
|
|
1458
|
+
head?: never;
|
|
1459
|
+
patch?: never;
|
|
1460
|
+
trace?: never;
|
|
1461
|
+
};
|
|
1442
1462
|
"/api/study/{studyId}/import-pgn": {
|
|
1443
1463
|
parameters: {
|
|
1444
1464
|
query?: never;
|
|
@@ -5852,6 +5872,13 @@ export interface components {
|
|
|
5852
5872
|
* 1. e4 c5 2. Nf3 { Simple developing move to control the d4 square } { [%csl Gd4,Gc5][%cal Gf3d4,Gc5d4] } 2... d6 { [%cal Gd6e5] } (2... e6 3. d4 cxd4 4. Nxd4 Nf6 5. e5 (5. Nc3 { [%cal Ge4e5] }) 5... Qa5+) 3. d4 { Whites want the exchange of pawns } { [%cal Gc5d4] } 3... cxd4 { [%cal Gf3d4] } 4. Nxd4 { Whites are now ahead in development but blacks still have the two central pawns whereas whites only one. } { [%csl Ge7,Gd6,Ge4] } 4... Nf6 { Blacks are now developing their knight and threatening the e4 pawn } { [%csl Ge4][%cal Gf6e4] } 5. Nc3 { The e4 pawn is now protected by the c3 knight } { [%csl Ge4,Bc3][%cal Rf6e4,Bc3e4] } 5... g6 { This is the DRAGON VARIATION. g6 allows the dark-squared bishop to develop and move to g7, controlling the long dark-squared diagonal } { [%csl Gd4] } 6. Be3 { [%cal Gd1d2,Gf2f3,Ge1c1,Gg2g4,Gh2h4,Gg4g5] } (6. Be2 Bg7 7. O-O Nc6 8. Be3 { [%cal Ge3d4] } (8. f3 Nxe4 { [%cal Gg7d4,Gc6d4] } 9. Nxc6 Qb6+ { [%cal Gb6c6,Gb6g1] } 10. Kh1 Nxc3 { [%cal Gc3d1,Gc3e2] } 11. bxc3 bxc6 { [%cal Gc8a6] }) 8... O-O 9. Nb3 a6 { [%cal Gb7b5,Gb5b4,Ge2c4] }) 6... Bg7 (6... Ng4 { [%cal Gg4e3] } 7. Bb5+ { [%cal Gb5e8,Gb8d7,Gc8d7,Gd1g4] } 7... Nc6 8. Nxc6 bxc6 9. Bxc6+ { [%cal Gc6a8] }) 7. f3 { The key opening moves for White, who attempt to castle queenside , whereas f3 strengthens the pawn structure, connecting e4 to the h2 and g2, while White also plan pushing to g4 and possibly h4. } { [%csl Bf3,Be3][%cal Rg2g4,Rh2h4,Rg4g5] } 7... O-O (7... h5 { Is operating against g4. }) 8. Qd2 { [%csl Gh6,Gg7][%cal Ge1c1,Ga1d1,Re3h6,Rd2h6] } 8... Nc6 { [%csl Gc6,Gh6][%cal Gb8c6,Ge1c1,Ga7a6,Ge3h6] } 9. g4 (9. Bh6 { [%cal Ge3d4] } 9... Bxh6 10. Qxh6 Nxd4) 9... Be6 10. Nxe6 fxe6 { [%cal Gf8f1] } 11. O-O-O Ne5 12. Be2 { [%csl Gf3][%cal Re5f3,Bd1h1,Bg1d1] } 12... Qc7 { [%csl Gc4][%cal Ge5c4,Gc4e3,Gc4d2,Bf8c8,Yc7c3] } 13. h4 Nc4 *
|
|
5853
5873
|
*/
|
|
5854
5874
|
StudyPgn: string;
|
|
5875
|
+
/** @enum {string} */
|
|
5876
|
+
StudyUserSelection:
|
|
5877
|
+
| "nobody"
|
|
5878
|
+
| "owner"
|
|
5879
|
+
| "contributor"
|
|
5880
|
+
| "member"
|
|
5881
|
+
| "everyone";
|
|
5855
5882
|
/**
|
|
5856
5883
|
* @example {
|
|
5857
5884
|
* "chapters": [
|
|
@@ -10995,6 +11022,66 @@ export interface operations {
|
|
|
10995
11022
|
};
|
|
10996
11023
|
};
|
|
10997
11024
|
};
|
|
11025
|
+
apiStudyPost: {
|
|
11026
|
+
parameters: {
|
|
11027
|
+
query?: never;
|
|
11028
|
+
header?: never;
|
|
11029
|
+
path?: never;
|
|
11030
|
+
cookie?: never;
|
|
11031
|
+
};
|
|
11032
|
+
/** @description Parameters of the study */
|
|
11033
|
+
requestBody: {
|
|
11034
|
+
content: {
|
|
11035
|
+
"application/x-www-form-urlencoded": {
|
|
11036
|
+
/** @description The study name. */
|
|
11037
|
+
name: string;
|
|
11038
|
+
/**
|
|
11039
|
+
* @description Who can view the study.
|
|
11040
|
+
* * `public`: Default. Anyone can view the study, it appears on public listings
|
|
11041
|
+
* * `unlisted`: Only people with the link can view the study, it doesn't appear on public listings
|
|
11042
|
+
* * `private`: Only the study members can view the study
|
|
11043
|
+
* @default unlisted
|
|
11044
|
+
* @enum {string}
|
|
11045
|
+
*/
|
|
11046
|
+
visibility: "public" | "unlisted" | "private";
|
|
11047
|
+
computer: components["schemas"]["StudyUserSelection"];
|
|
11048
|
+
explorer: components["schemas"]["StudyUserSelection"];
|
|
11049
|
+
cloneable: components["schemas"]["StudyUserSelection"];
|
|
11050
|
+
shareable: components["schemas"]["StudyUserSelection"];
|
|
11051
|
+
chat: components["schemas"]["StudyUserSelection"];
|
|
11052
|
+
/**
|
|
11053
|
+
* @description Keep everyone on the same chapter and position
|
|
11054
|
+
* @default true
|
|
11055
|
+
* @enum {string}
|
|
11056
|
+
*/
|
|
11057
|
+
sticky?: "true" | "false";
|
|
11058
|
+
};
|
|
11059
|
+
};
|
|
11060
|
+
};
|
|
11061
|
+
responses: {
|
|
11062
|
+
/** @description The Study has been successfully created. */
|
|
11063
|
+
200: {
|
|
11064
|
+
headers: {
|
|
11065
|
+
"Access-Control-Allow-Origin"?: string;
|
|
11066
|
+
[name: string]: unknown;
|
|
11067
|
+
};
|
|
11068
|
+
content: {
|
|
11069
|
+
"application/json": {
|
|
11070
|
+
id?: string;
|
|
11071
|
+
};
|
|
11072
|
+
};
|
|
11073
|
+
};
|
|
11074
|
+
/** @description The creation of the Study failed. */
|
|
11075
|
+
400: {
|
|
11076
|
+
headers: {
|
|
11077
|
+
[name: string]: unknown;
|
|
11078
|
+
};
|
|
11079
|
+
content: {
|
|
11080
|
+
"application/json": components["schemas"]["Error"];
|
|
11081
|
+
};
|
|
11082
|
+
};
|
|
11083
|
+
};
|
|
11084
|
+
};
|
|
10998
11085
|
apiStudyImportPGN: {
|
|
10999
11086
|
parameters: {
|
|
11000
11087
|
query?: never;
|