@lichess-org/types 2.0.64 → 2.0.66
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 +233 -14
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1100,7 +1100,7 @@ export interface paths {
|
|
|
1100
1100
|
* The stream is throttled, depending on who is making the request:
|
|
1101
1101
|
* - Anonymous request: 20 tournaments per second
|
|
1102
1102
|
* - [OAuth2 authenticated](#section/Introduction/Authentication) request: 30 tournaments per second
|
|
1103
|
-
* - Authenticated, downloading your own tournaments: 50
|
|
1103
|
+
* - Authenticated, downloading your own tournaments: 50 tournaments per second
|
|
1104
1104
|
*
|
|
1105
1105
|
*/
|
|
1106
1106
|
get: operations["apiUserNameTournamentCreated"];
|
|
@@ -1127,7 +1127,7 @@ export interface paths {
|
|
|
1127
1127
|
* The stream is throttled, depending on who is making the request:
|
|
1128
1128
|
* - Anonymous request: 20 tournaments per second
|
|
1129
1129
|
* - [OAuth2 authenticated](#section/Introduction/Authentication) request: 30 tournaments per second
|
|
1130
|
-
* - Authenticated, downloading your own tournaments: 50
|
|
1130
|
+
* - Authenticated, downloading your own tournaments: 50 tournaments per second
|
|
1131
1131
|
*
|
|
1132
1132
|
*/
|
|
1133
1133
|
get: operations["apiUserNameTournamentPlayed"];
|
|
@@ -2730,6 +2730,27 @@ export interface paths {
|
|
|
2730
2730
|
patch?: never;
|
|
2731
2731
|
trace?: never;
|
|
2732
2732
|
};
|
|
2733
|
+
"/api/board/game/{gameId}/claim-draw": {
|
|
2734
|
+
parameters: {
|
|
2735
|
+
query?: never;
|
|
2736
|
+
header?: never;
|
|
2737
|
+
path?: never;
|
|
2738
|
+
cookie?: never;
|
|
2739
|
+
};
|
|
2740
|
+
get?: never;
|
|
2741
|
+
put?: never;
|
|
2742
|
+
/**
|
|
2743
|
+
* Claim draw of a game
|
|
2744
|
+
* @description Claim draw when the opponent has left the game for a while.
|
|
2745
|
+
*
|
|
2746
|
+
*/
|
|
2747
|
+
post: operations["boardGameClaimDraw"];
|
|
2748
|
+
delete?: never;
|
|
2749
|
+
options?: never;
|
|
2750
|
+
head?: never;
|
|
2751
|
+
patch?: never;
|
|
2752
|
+
trace?: never;
|
|
2753
|
+
};
|
|
2733
2754
|
"/api/board/game/{gameId}/berserk": {
|
|
2734
2755
|
parameters: {
|
|
2735
2756
|
query?: never;
|
|
@@ -2984,6 +3005,27 @@ export interface paths {
|
|
|
2984
3005
|
patch?: never;
|
|
2985
3006
|
trace?: never;
|
|
2986
3007
|
};
|
|
3008
|
+
"/api/bot/game/{gameId}/claim-draw": {
|
|
3009
|
+
parameters: {
|
|
3010
|
+
query?: never;
|
|
3011
|
+
header?: never;
|
|
3012
|
+
path?: never;
|
|
3013
|
+
cookie?: never;
|
|
3014
|
+
};
|
|
3015
|
+
get?: never;
|
|
3016
|
+
put?: never;
|
|
3017
|
+
/**
|
|
3018
|
+
* Claim draw of a game
|
|
3019
|
+
* @description Claim draw when the opponent has left the game for a while.
|
|
3020
|
+
*
|
|
3021
|
+
*/
|
|
3022
|
+
post: operations["botGameClaimDraw"];
|
|
3023
|
+
delete?: never;
|
|
3024
|
+
options?: never;
|
|
3025
|
+
head?: never;
|
|
3026
|
+
patch?: never;
|
|
3027
|
+
trace?: never;
|
|
3028
|
+
};
|
|
2987
3029
|
"/api/challenge": {
|
|
2988
3030
|
parameters: {
|
|
2989
3031
|
query?: never;
|
|
@@ -5823,6 +5865,46 @@ export interface components {
|
|
|
5823
5865
|
BroadcastByUser: {
|
|
5824
5866
|
tour: components["schemas"]["BroadcastTour"];
|
|
5825
5867
|
};
|
|
5868
|
+
/**
|
|
5869
|
+
* @description Extended tiebreak code
|
|
5870
|
+
* @enum {string}
|
|
5871
|
+
*/
|
|
5872
|
+
BroadcastTiebreakExtendedCode:
|
|
5873
|
+
| "AOB"
|
|
5874
|
+
| "APPO"
|
|
5875
|
+
| "APRO"
|
|
5876
|
+
| "ARO"
|
|
5877
|
+
| "ARO-C1"
|
|
5878
|
+
| "ARO-C2"
|
|
5879
|
+
| "ARO-M1"
|
|
5880
|
+
| "ARO-M2"
|
|
5881
|
+
| "BH"
|
|
5882
|
+
| "BH-C1"
|
|
5883
|
+
| "BH-C2"
|
|
5884
|
+
| "BH-M1"
|
|
5885
|
+
| "BH-M2"
|
|
5886
|
+
| "BPG"
|
|
5887
|
+
| "BWG"
|
|
5888
|
+
| "DE"
|
|
5889
|
+
| "FB"
|
|
5890
|
+
| "FB-C1"
|
|
5891
|
+
| "FB-C2"
|
|
5892
|
+
| "FB-M1"
|
|
5893
|
+
| "FB-M2"
|
|
5894
|
+
| "KS"
|
|
5895
|
+
| "PS"
|
|
5896
|
+
| "PS-C1"
|
|
5897
|
+
| "PS-C2"
|
|
5898
|
+
| "PS-M1"
|
|
5899
|
+
| "PS-M2"
|
|
5900
|
+
| "PTP"
|
|
5901
|
+
| "SB"
|
|
5902
|
+
| "SB-C1"
|
|
5903
|
+
| "SB-C2"
|
|
5904
|
+
| "SB-M1"
|
|
5905
|
+
| "SB-M2"
|
|
5906
|
+
| "TPR"
|
|
5907
|
+
| "WON";
|
|
5826
5908
|
BroadcastForm: {
|
|
5827
5909
|
/** @description Name of the broadcast tournament.
|
|
5828
5910
|
*
|
|
@@ -5948,6 +6030,14 @@ export interface components {
|
|
|
5948
6030
|
* @enum {integer}
|
|
5949
6031
|
*/
|
|
5950
6032
|
tier?: 3 | 4 | 5 | -1;
|
|
6033
|
+
"tiebreaks[]"?: components["schemas"]["BroadcastTiebreakExtendedCode"][];
|
|
6034
|
+
};
|
|
6035
|
+
BroadcastPlayerTiebreak: {
|
|
6036
|
+
extendedCode?: components["schemas"]["BroadcastTiebreakExtendedCode"];
|
|
6037
|
+
/** @example Buchholz Cut 1 */
|
|
6038
|
+
description?: string;
|
|
6039
|
+
/** @example 45.5 */
|
|
6040
|
+
points?: number;
|
|
5951
6041
|
};
|
|
5952
6042
|
BroadcastPlayerEntry: {
|
|
5953
6043
|
/** @example Hernandez Riera, Jose */
|
|
@@ -5968,6 +6058,9 @@ export interface components {
|
|
|
5968
6058
|
fideId?: number;
|
|
5969
6059
|
/** @example CHI */
|
|
5970
6060
|
fed?: string;
|
|
6061
|
+
tiebreaks?: components["schemas"]["BroadcastPlayerTiebreak"][];
|
|
6062
|
+
/** @example 1 */
|
|
6063
|
+
rank?: number;
|
|
5971
6064
|
};
|
|
5972
6065
|
/** @description Name of the broadcast round.
|
|
5973
6066
|
* Example: `Round 1`
|
|
@@ -30991,20 +31084,82 @@ export interface operations {
|
|
|
30991
31084
|
content: {
|
|
30992
31085
|
/** @example [
|
|
30993
31086
|
* {
|
|
30994
|
-
* "name": "
|
|
30995
|
-
* "
|
|
30996
|
-
*
|
|
30997
|
-
*
|
|
30998
|
-
* "
|
|
30999
|
-
* "played":
|
|
31000
|
-
*
|
|
31001
|
-
*
|
|
31002
|
-
* "
|
|
31003
|
-
* "
|
|
31087
|
+
* "name": "Aravindh, Chithambaram VR.",
|
|
31088
|
+
* "title": "GM",
|
|
31089
|
+
* "rating": 2749,
|
|
31090
|
+
* "fideId": 5072786,
|
|
31091
|
+
* "fed": "IND",
|
|
31092
|
+
* "played": 9,
|
|
31093
|
+
* "score": 2.5,
|
|
31094
|
+
* "ratingDiff": -23,
|
|
31095
|
+
* "performance": 2557,
|
|
31096
|
+
* "tiebreaks": [
|
|
31097
|
+
* {
|
|
31098
|
+
* "extendedCode": "DE",
|
|
31099
|
+
* "description": "Direct encounter",
|
|
31100
|
+
* "points": 0
|
|
31101
|
+
* },
|
|
31102
|
+
* {
|
|
31103
|
+
* "extendedCode": "SB",
|
|
31104
|
+
* "description": "Sonneborn-Berger",
|
|
31105
|
+
* "points": 11.25
|
|
31106
|
+
* },
|
|
31107
|
+
* {
|
|
31108
|
+
* "extendedCode": "WON",
|
|
31109
|
+
* "description": "Number of Wins",
|
|
31110
|
+
* "points": 0
|
|
31111
|
+
* },
|
|
31112
|
+
* {
|
|
31113
|
+
* "extendedCode": "BWG",
|
|
31114
|
+
* "description": "Number of wins with black",
|
|
31115
|
+
* "points": 0
|
|
31116
|
+
* },
|
|
31117
|
+
* {
|
|
31118
|
+
* "extendedCode": "KS",
|
|
31119
|
+
* "description": "Koya system (limit 50% of score)",
|
|
31120
|
+
* "points": 1.5
|
|
31121
|
+
* }
|
|
31122
|
+
* ],
|
|
31123
|
+
* "rank": 10
|
|
31004
31124
|
* },
|
|
31005
31125
|
* {
|
|
31006
|
-
* "name": "
|
|
31007
|
-
* "
|
|
31126
|
+
* "name": "Praggnanandhaa R",
|
|
31127
|
+
* "title": "GM",
|
|
31128
|
+
* "rating": 2758,
|
|
31129
|
+
* "fideId": 25059530,
|
|
31130
|
+
* "fed": "IND",
|
|
31131
|
+
* "played": 9,
|
|
31132
|
+
* "score": 5.5,
|
|
31133
|
+
* "ratingDiff": 6,
|
|
31134
|
+
* "performance": 2802,
|
|
31135
|
+
* "tiebreaks": [
|
|
31136
|
+
* {
|
|
31137
|
+
* "extendedCode": "DE",
|
|
31138
|
+
* "description": "Direct encounter",
|
|
31139
|
+
* "points": 2
|
|
31140
|
+
* },
|
|
31141
|
+
* {
|
|
31142
|
+
* "extendedCode": "SB",
|
|
31143
|
+
* "description": "Sonneborn-Berger",
|
|
31144
|
+
* "points": 25.25
|
|
31145
|
+
* },
|
|
31146
|
+
* {
|
|
31147
|
+
* "extendedCode": "WON",
|
|
31148
|
+
* "description": "Number of Wins",
|
|
31149
|
+
* "points": 4
|
|
31150
|
+
* },
|
|
31151
|
+
* {
|
|
31152
|
+
* "extendedCode": "BWG",
|
|
31153
|
+
* "description": "Number of wins with black",
|
|
31154
|
+
* "points": 1
|
|
31155
|
+
* },
|
|
31156
|
+
* {
|
|
31157
|
+
* "extendedCode": "KS",
|
|
31158
|
+
* "description": "Koya system (limit 50% of score)",
|
|
31159
|
+
* "points": 3.5
|
|
31160
|
+
* }
|
|
31161
|
+
* ],
|
|
31162
|
+
* "rank": 1
|
|
31008
31163
|
* }
|
|
31009
31164
|
* ] */
|
|
31010
31165
|
"application/json": components["schemas"]["BroadcastPlayerEntry"][];
|
|
@@ -34664,6 +34819,38 @@ export interface operations {
|
|
|
34664
34819
|
};
|
|
34665
34820
|
};
|
|
34666
34821
|
};
|
|
34822
|
+
boardGameClaimDraw: {
|
|
34823
|
+
parameters: {
|
|
34824
|
+
query?: never;
|
|
34825
|
+
header?: never;
|
|
34826
|
+
path: {
|
|
34827
|
+
gameId: string;
|
|
34828
|
+
};
|
|
34829
|
+
cookie?: never;
|
|
34830
|
+
};
|
|
34831
|
+
requestBody?: never;
|
|
34832
|
+
responses: {
|
|
34833
|
+
/** @description The draw was successfully claimed. */
|
|
34834
|
+
200: {
|
|
34835
|
+
headers: {
|
|
34836
|
+
"Access-Control-Allow-Origin"?: string;
|
|
34837
|
+
[name: string]: unknown;
|
|
34838
|
+
};
|
|
34839
|
+
content: {
|
|
34840
|
+
"application/json": components["schemas"]["Ok"];
|
|
34841
|
+
};
|
|
34842
|
+
};
|
|
34843
|
+
/** @description The draw claim has failed. */
|
|
34844
|
+
400: {
|
|
34845
|
+
headers: {
|
|
34846
|
+
[name: string]: unknown;
|
|
34847
|
+
};
|
|
34848
|
+
content: {
|
|
34849
|
+
"application/json": components["schemas"]["Error"];
|
|
34850
|
+
};
|
|
34851
|
+
};
|
|
34852
|
+
};
|
|
34853
|
+
};
|
|
34667
34854
|
boardGameBerserk: {
|
|
34668
34855
|
parameters: {
|
|
34669
34856
|
query?: never;
|
|
@@ -35100,6 +35287,38 @@ export interface operations {
|
|
|
35100
35287
|
};
|
|
35101
35288
|
};
|
|
35102
35289
|
};
|
|
35290
|
+
botGameClaimDraw: {
|
|
35291
|
+
parameters: {
|
|
35292
|
+
query?: never;
|
|
35293
|
+
header?: never;
|
|
35294
|
+
path: {
|
|
35295
|
+
gameId: string;
|
|
35296
|
+
};
|
|
35297
|
+
cookie?: never;
|
|
35298
|
+
};
|
|
35299
|
+
requestBody?: never;
|
|
35300
|
+
responses: {
|
|
35301
|
+
/** @description The draw was successfully claimed. */
|
|
35302
|
+
200: {
|
|
35303
|
+
headers: {
|
|
35304
|
+
"Access-Control-Allow-Origin"?: string;
|
|
35305
|
+
[name: string]: unknown;
|
|
35306
|
+
};
|
|
35307
|
+
content: {
|
|
35308
|
+
"application/json": components["schemas"]["Ok"];
|
|
35309
|
+
};
|
|
35310
|
+
};
|
|
35311
|
+
/** @description The draw claim has failed. */
|
|
35312
|
+
400: {
|
|
35313
|
+
headers: {
|
|
35314
|
+
[name: string]: unknown;
|
|
35315
|
+
};
|
|
35316
|
+
content: {
|
|
35317
|
+
"application/json": components["schemas"]["Error"];
|
|
35318
|
+
};
|
|
35319
|
+
};
|
|
35320
|
+
};
|
|
35321
|
+
};
|
|
35103
35322
|
challengeList: {
|
|
35104
35323
|
parameters: {
|
|
35105
35324
|
query?: never;
|