@lichess-org/types 2.0.10 → 2.0.12
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 +64 -27
- package/package.json +4 -4
package/lichess-api.d.ts
CHANGED
|
@@ -3998,6 +3998,9 @@ export interface components {
|
|
|
3998
3998
|
| "racingKings"
|
|
3999
3999
|
| "threeCheck";
|
|
4000
4000
|
/** @example {
|
|
4001
|
+
* "user": {
|
|
4002
|
+
* "name": "thibault"
|
|
4003
|
+
* },
|
|
4001
4004
|
* "perf": {
|
|
4002
4005
|
* "glicko": {
|
|
4003
4006
|
* "rating": 1672.42,
|
|
@@ -4024,10 +4027,11 @@ export interface components {
|
|
|
4024
4027
|
* "at": "2016-06-28T13:54:39.656Z",
|
|
4025
4028
|
* "gameId": "rNM4J1GJ"
|
|
4026
4029
|
* },
|
|
4030
|
+
* "id": "thibault/1",
|
|
4027
4031
|
* "bestWins": {
|
|
4028
4032
|
* "results": [
|
|
4029
4033
|
* {
|
|
4030
|
-
* "
|
|
4034
|
+
* "opRating": 2238,
|
|
4031
4035
|
* "opId": {
|
|
4032
4036
|
* "id": "hyperdragon84",
|
|
4033
4037
|
* "name": "HyperDragon84"
|
|
@@ -4036,7 +4040,7 @@ export interface components {
|
|
|
4036
4040
|
* "gameId": "DGB53z9w"
|
|
4037
4041
|
* },
|
|
4038
4042
|
* {
|
|
4039
|
-
* "
|
|
4043
|
+
* "opRating": 2089,
|
|
4040
4044
|
* "opId": {
|
|
4041
4045
|
* "id": "osipov",
|
|
4042
4046
|
* "name": "osipov"
|
|
@@ -4045,7 +4049,7 @@ export interface components {
|
|
|
4045
4049
|
* "gameId": "gurRhuMi"
|
|
4046
4050
|
* },
|
|
4047
4051
|
* {
|
|
4048
|
-
* "
|
|
4052
|
+
* "opRating": 2071,
|
|
4049
4053
|
* "opId": {
|
|
4050
4054
|
* "id": "spark50",
|
|
4051
4055
|
* "name": "Spark50"
|
|
@@ -4054,7 +4058,7 @@ export interface components {
|
|
|
4054
4058
|
* "gameId": "a93Dk1mv"
|
|
4055
4059
|
* },
|
|
4056
4060
|
* {
|
|
4057
|
-
* "
|
|
4061
|
+
* "opRating": 2045,
|
|
4058
4062
|
* "opId": {
|
|
4059
4063
|
* "id": "yasha43",
|
|
4060
4064
|
* "name": "Yasha43"
|
|
@@ -4063,7 +4067,7 @@ export interface components {
|
|
|
4063
4067
|
* "gameId": "j3jZnGTr"
|
|
4064
4068
|
* },
|
|
4065
4069
|
* {
|
|
4066
|
-
* "
|
|
4070
|
+
* "opRating": 2034,
|
|
4067
4071
|
* "opId": {
|
|
4068
4072
|
* "id": "midedu",
|
|
4069
4073
|
* "name": "midedu"
|
|
@@ -4076,7 +4080,7 @@ export interface components {
|
|
|
4076
4080
|
* "worstLosses": {
|
|
4077
4081
|
* "results": [
|
|
4078
4082
|
* {
|
|
4079
|
-
* "
|
|
4083
|
+
* "opRating": 1186,
|
|
4080
4084
|
* "opId": {
|
|
4081
4085
|
* "id": "happy0",
|
|
4082
4086
|
* "name": "Happy0"
|
|
@@ -4085,7 +4089,7 @@ export interface components {
|
|
|
4085
4089
|
* "gameId": "Q01bbiN4"
|
|
4086
4090
|
* },
|
|
4087
4091
|
* {
|
|
4088
|
-
* "
|
|
4092
|
+
* "opRating": 1197,
|
|
4089
4093
|
* "opId": {
|
|
4090
4094
|
* "id": "kazmankiller86",
|
|
4091
4095
|
* "name": "KazmanKiller86"
|
|
@@ -4094,7 +4098,7 @@ export interface components {
|
|
|
4094
4098
|
* "gameId": "Aivqh9Sp"
|
|
4095
4099
|
* },
|
|
4096
4100
|
* {
|
|
4097
|
-
* "
|
|
4101
|
+
* "opRating": 1201,
|
|
4098
4102
|
* "opId": {
|
|
4099
4103
|
* "id": "artem555",
|
|
4100
4104
|
* "name": "artem555"
|
|
@@ -4103,7 +4107,7 @@ export interface components {
|
|
|
4103
4107
|
* "gameId": "tiRAbhnX"
|
|
4104
4108
|
* },
|
|
4105
4109
|
* {
|
|
4106
|
-
* "
|
|
4110
|
+
* "opRating": 1265,
|
|
4107
4111
|
* "opId": {
|
|
4108
4112
|
* "id": "arcenuu",
|
|
4109
4113
|
* "name": "Arcenuu"
|
|
@@ -4112,7 +4116,7 @@ export interface components {
|
|
|
4112
4116
|
* "gameId": "A68wUOoh"
|
|
4113
4117
|
* },
|
|
4114
4118
|
* {
|
|
4115
|
-
* "
|
|
4119
|
+
* "opRating": 1283,
|
|
4116
4120
|
* "opId": {
|
|
4117
4121
|
* "id": "amritalib76",
|
|
4118
4122
|
* "name": "Amritalib76"
|
|
@@ -4176,6 +4180,11 @@ export interface components {
|
|
|
4176
4180
|
* }
|
|
4177
4181
|
* }
|
|
4178
4182
|
* },
|
|
4183
|
+
* "userId": {
|
|
4184
|
+
* "id": "thibault",
|
|
4185
|
+
* "name": "thibault",
|
|
4186
|
+
* "title": null
|
|
4187
|
+
* },
|
|
4179
4188
|
* "playStreak": {
|
|
4180
4189
|
* "nb": {
|
|
4181
4190
|
* "cur": {
|
|
@@ -4778,7 +4787,6 @@ export interface components {
|
|
|
4778
4787
|
* [ECO "C62"]
|
|
4779
4788
|
* [Opening "Ruy Lopez: Steinitz Defense"]
|
|
4780
4789
|
* [Termination "Normal"]
|
|
4781
|
-
* [Event "U1700 SuperBlitz Arena"]
|
|
4782
4790
|
*
|
|
4783
4791
|
* 1. e4 { [%clk 0:03:00] } e5 { [%clk 0:03:00] } 2. Nf3 { [%clk 0:02:59] } Nc6 { [%clk 0:02:58] } 3. Bb5 { [%clk 0:02:57] } d6 { [%clk 0:02:55] } 4. h3 { [%clk 0:02:54] } Nf6 { [%clk 0:02:52] } 5. Bxc6+ { [%clk 0:02:52] } bxc6 { [%clk 0:02:49] } 6. d3 { [%clk 0:02:51] } Be7 { [%clk 0:02:46] } 7. O-O { [%clk 0:02:47] } O-O { [%clk 0:02:45] } 8. b3 { [%clk 0:02:45] } d5 { [%clk 0:02:45] } 9. exd5 { [%clk 0:02:33] } cxd5 { [%clk 0:02:40] } 10. Nxe5 { [%clk 0:02:31] } Qd6 { [%clk 0:02:38] } 1-0
|
|
4784
4792
|
* */
|
|
@@ -5752,7 +5760,7 @@ export interface components {
|
|
|
5752
5760
|
round: components["schemas"]["BroadcastRoundInfo"];
|
|
5753
5761
|
};
|
|
5754
5762
|
BroadcastForm: {
|
|
5755
|
-
/** @description Name of the broadcast tournament.
|
|
5763
|
+
/** @description Name of the broadcast tournament.
|
|
5756
5764
|
*
|
|
5757
5765
|
* Example: `Sinquefield Cup`
|
|
5758
5766
|
* */
|
|
@@ -5761,21 +5769,48 @@ export interface components {
|
|
|
5761
5769
|
* Example: `"8-player round-robin" or "5-round Swiss"`
|
|
5762
5770
|
* */
|
|
5763
5771
|
"info.format"?: string;
|
|
5772
|
+
/** @description Tournament Location
|
|
5773
|
+
* */
|
|
5774
|
+
"info.location"?: string;
|
|
5764
5775
|
/** @description Time control.
|
|
5765
5776
|
* Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
|
|
5766
5777
|
* */
|
|
5767
5778
|
"info.tc"?: string;
|
|
5779
|
+
/**
|
|
5780
|
+
* @description FIDE rating category. Which FIDE ratings to use
|
|
5781
|
+
*
|
|
5782
|
+
* @enum {string}
|
|
5783
|
+
*/
|
|
5784
|
+
"info.fideTc"?: "standard" | "rapid" | "blitz";
|
|
5768
5785
|
/** @description Mention up to 4 of the best players participating.
|
|
5769
5786
|
* */
|
|
5770
5787
|
"info.players"?: string;
|
|
5771
|
-
/** @description
|
|
5788
|
+
/** @description Official Website. External website URL
|
|
5772
5789
|
* */
|
|
5773
|
-
|
|
5774
|
-
/** @description
|
|
5790
|
+
"info.website"?: string;
|
|
5791
|
+
/** @description Official Standings. External website URL, e.g. chess-results.com, info64.org
|
|
5775
5792
|
* */
|
|
5776
|
-
|
|
5777
|
-
/** @description
|
|
5793
|
+
"info.standings"?: string;
|
|
5794
|
+
/** @description Optional long description of the broadcast. Markdown is supported.
|
|
5778
5795
|
* */
|
|
5796
|
+
markdown?: string;
|
|
5797
|
+
/**
|
|
5798
|
+
* @description Show players scores based on game results
|
|
5799
|
+
*
|
|
5800
|
+
* @default true
|
|
5801
|
+
*/
|
|
5802
|
+
showScores?: boolean;
|
|
5803
|
+
/**
|
|
5804
|
+
* @description Show player's rating diffs
|
|
5805
|
+
*
|
|
5806
|
+
* @default true
|
|
5807
|
+
*/
|
|
5808
|
+
showRatingDiffs?: boolean;
|
|
5809
|
+
/**
|
|
5810
|
+
* @description Show a team leaderboard. Requires WhiteTeam and BlackTeam PGN tags.
|
|
5811
|
+
*
|
|
5812
|
+
* @default false
|
|
5813
|
+
*/
|
|
5779
5814
|
teamTable?: boolean;
|
|
5780
5815
|
/** @description Optional replace player names, ratings and titles.
|
|
5781
5816
|
*
|
|
@@ -5828,14 +5863,17 @@ export interface components {
|
|
|
5828
5863
|
* By default the PGN tags WhiteTeam and BlackTeam are used.
|
|
5829
5864
|
* */
|
|
5830
5865
|
teams?: string;
|
|
5831
|
-
/**
|
|
5866
|
+
/**
|
|
5867
|
+
* @description Optional, for Lichess admins only, used to feature on /broadcast.
|
|
5832
5868
|
*
|
|
5833
5869
|
* * `3` for Official: normal tier
|
|
5834
5870
|
* * `4` for Official: high tier
|
|
5835
5871
|
* * `5` for Official: best tier
|
|
5836
5872
|
* * `-1` for Private
|
|
5837
|
-
*
|
|
5838
|
-
|
|
5873
|
+
*
|
|
5874
|
+
* @enum {integer}
|
|
5875
|
+
*/
|
|
5876
|
+
tier?: 3 | 4 | 5 | -1;
|
|
5839
5877
|
};
|
|
5840
5878
|
BroadcastLeaderboardEntry: {
|
|
5841
5879
|
/** @example Hernandez Riera, Jose */
|
|
@@ -5854,28 +5892,33 @@ export interface components {
|
|
|
5854
5892
|
fed?: string;
|
|
5855
5893
|
};
|
|
5856
5894
|
BroadcastRoundForm: {
|
|
5857
|
-
/** @description Name of the broadcast round.
|
|
5895
|
+
/** @description Name of the broadcast round.
|
|
5858
5896
|
* Example: `Round 1`
|
|
5859
5897
|
* */
|
|
5860
5898
|
name: string;
|
|
5861
5899
|
/** @description URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
|
|
5900
|
+
*
|
|
5862
5901
|
* Example:
|
|
5863
5902
|
* ```txt
|
|
5864
5903
|
* https://myserver.org/myevent/round-10/games.pgn
|
|
5865
5904
|
* ```
|
|
5905
|
+
*
|
|
5866
5906
|
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5867
5907
|
* */
|
|
5868
5908
|
syncUrl?: string;
|
|
5869
5909
|
/** @description URLs that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
|
|
5910
|
+
*
|
|
5870
5911
|
* Example:
|
|
5871
5912
|
* ```txt
|
|
5872
5913
|
* https://myserver.org/myevent/round-10/game-1.pgn
|
|
5873
5914
|
* https://myserver.org/myevent/round-10/game-2.pgn
|
|
5874
5915
|
* ```
|
|
5916
|
+
*
|
|
5875
5917
|
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5876
5918
|
* */
|
|
5877
5919
|
syncUrls?: string;
|
|
5878
5920
|
/** @description Lichess game IDs - Up to 64 Lichess game IDs, separated by spaces.
|
|
5921
|
+
*
|
|
5879
5922
|
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5880
5923
|
* */
|
|
5881
5924
|
syncIds?: string;
|
|
@@ -11391,12 +11434,6 @@ export interface operations {
|
|
|
11391
11434
|
*/
|
|
11392
11435
|
days?: 1 | 2 | 3 | 5 | 7 | 10 | 14;
|
|
11393
11436
|
variant?: components["schemas"]["VariantKey"];
|
|
11394
|
-
/**
|
|
11395
|
-
* @description The color to play. Better left empty to automatically get 50% white.
|
|
11396
|
-
* @default random
|
|
11397
|
-
* @enum {string}
|
|
11398
|
-
*/
|
|
11399
|
-
color?: "random" | "white" | "black";
|
|
11400
11437
|
/** @description The rating range of potential opponents. Better left empty.
|
|
11401
11438
|
* Example: 1500-1800
|
|
11402
11439
|
* */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
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.
|
|
14
|
+
"openapi-typescript": "^7.4.1",
|
|
15
15
|
"prettier": "^3.3.3",
|
|
16
|
-
"typescript": "^5.
|
|
16
|
+
"typescript": "^5.6.2"
|
|
17
17
|
},
|
|
18
|
-
"packageManager": "pnpm@9.
|
|
18
|
+
"packageManager": "pnpm@9.12.0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
|
|
19
19
|
}
|