@lichess-org/types 2.0.27 → 2.0.29
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 +322 -59
- package/package.json +4 -4
package/lichess-api.d.ts
CHANGED
|
@@ -251,6 +251,26 @@ export interface paths {
|
|
|
251
251
|
patch?: never;
|
|
252
252
|
trace?: never;
|
|
253
253
|
};
|
|
254
|
+
"/api/puzzle/replay/{days}/{theme}": {
|
|
255
|
+
parameters: {
|
|
256
|
+
query?: never;
|
|
257
|
+
header?: never;
|
|
258
|
+
path?: never;
|
|
259
|
+
cookie?: never;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Get puzzles to replay
|
|
263
|
+
* @description Gets the puzzle IDs of remaining puzzles to re-attempt in JSON format.
|
|
264
|
+
*/
|
|
265
|
+
get: operations["apiPuzzleReplay"];
|
|
266
|
+
put?: never;
|
|
267
|
+
post?: never;
|
|
268
|
+
delete?: never;
|
|
269
|
+
options?: never;
|
|
270
|
+
head?: never;
|
|
271
|
+
patch?: never;
|
|
272
|
+
trace?: never;
|
|
273
|
+
};
|
|
254
274
|
"/api/puzzle/dashboard/{days}": {
|
|
255
275
|
parameters: {
|
|
256
276
|
query?: never;
|
|
@@ -2434,19 +2454,19 @@ export interface paths {
|
|
|
2434
2454
|
};
|
|
2435
2455
|
/**
|
|
2436
2456
|
* Stream incoming events
|
|
2437
|
-
* @description
|
|
2438
|
-
* Stream the events reaching a lichess user in real time as [ndjson](#section/Introduction/Streaming-with-ND-JSON).
|
|
2457
|
+
* @description Stream the events reaching a lichess user in real time as [ndjson](#section/Introduction/Streaming-with-ND-JSON).
|
|
2439
2458
|
*
|
|
2440
|
-
*
|
|
2459
|
+
* An empty line is sent every 6 seconds for keep alive purposes.
|
|
2441
2460
|
*
|
|
2442
|
-
*
|
|
2443
|
-
*
|
|
2444
|
-
*
|
|
2445
|
-
*
|
|
2446
|
-
*
|
|
2447
|
-
*
|
|
2461
|
+
* Each non-empty line is a JSON object containing a `type` field. Possible values are:
|
|
2462
|
+
* - `gameStart` Start of a game
|
|
2463
|
+
* - `gameFinish` Completion of a game
|
|
2464
|
+
* - `challenge` A player sends you a challenge or you challenge someone
|
|
2465
|
+
* - `challengeCanceled` A player cancels their challenge to you
|
|
2466
|
+
* - `challengeDeclined` The opponent declines your challenge
|
|
2467
|
+
*
|
|
2468
|
+
* When the stream opens, all current challenges and games are sent.
|
|
2448
2469
|
*
|
|
2449
|
-
* When the stream opens, all current challenges and games are sent.
|
|
2450
2470
|
*/
|
|
2451
2471
|
get: operations["apiStreamEvent"];
|
|
2452
2472
|
put?: never;
|
|
@@ -2468,25 +2488,27 @@ export interface paths {
|
|
|
2468
2488
|
put?: never;
|
|
2469
2489
|
/**
|
|
2470
2490
|
* Create a seek
|
|
2471
|
-
* @description
|
|
2472
|
-
*
|
|
2491
|
+
* @description Create a public seek, to start a game with a random player.
|
|
2492
|
+
*
|
|
2493
|
+
* ### Real-time seek
|
|
2473
2494
|
*
|
|
2474
|
-
*
|
|
2495
|
+
* Specify the `time` and `increment` clock values.
|
|
2496
|
+
* The response is streamed but doesn't contain any information.
|
|
2475
2497
|
*
|
|
2476
|
-
*
|
|
2498
|
+
* **Keep the connection open to keep the seek active**.
|
|
2477
2499
|
*
|
|
2478
|
-
*
|
|
2500
|
+
* If the client closes the connection, the seek is canceled. This way, if the client terminates, the user won't be paired in a game they wouldn't play.
|
|
2501
|
+
* When the seek is accepted, or expires, the server closes the connection.
|
|
2479
2502
|
*
|
|
2480
|
-
*
|
|
2481
|
-
*
|
|
2503
|
+
* **Make sure to also have an [Event stream](#operation/apiStreamEvent) open**, to be notified when a game starts.
|
|
2504
|
+
* We recommend opening the [Event stream](#operation/apiStreamEvent) first, then the seek stream. This way,
|
|
2505
|
+
* you won't miss the game event if the seek is accepted immediately.
|
|
2482
2506
|
*
|
|
2483
|
-
*
|
|
2484
|
-
* We recommend opening the [Event stream](#operation/apiStreamEvent) first, then the seek stream. This way,
|
|
2485
|
-
* you won't miss the game event if the seek is accepted immediately.
|
|
2507
|
+
* ### Correspondence seek
|
|
2486
2508
|
*
|
|
2487
|
-
*
|
|
2509
|
+
* Specify the `days` per turn value.
|
|
2510
|
+
* The response is not streamed, it immediately completes with the seek ID. The seek remains active on the server until it is joined by someone.
|
|
2488
2511
|
*
|
|
2489
|
-
* Specify the `days` per turn value. The response is not streamed, it immediately completes with the seek ID. The seek remains active on the server until it is joined by someone.
|
|
2490
2512
|
*/
|
|
2491
2513
|
post: operations["apiBoardSeek"];
|
|
2492
2514
|
delete?: never;
|
|
@@ -2504,7 +2526,7 @@ export interface paths {
|
|
|
2504
2526
|
};
|
|
2505
2527
|
/**
|
|
2506
2528
|
* Stream Board game state
|
|
2507
|
-
* @description
|
|
2529
|
+
* @description Stream the state of a game being played with the Board API, as [ndjson](#section/Introduction/Streaming-with-ND-JSON).
|
|
2508
2530
|
*
|
|
2509
2531
|
* Use this endpoint to get updates about the game in real-time, with a single request.
|
|
2510
2532
|
*
|
|
@@ -2512,14 +2534,12 @@ export interface paths {
|
|
|
2512
2534
|
* - `gameFull` Full game data. All values are immutable, except for the `state` field.
|
|
2513
2535
|
* - `gameState` Current state of the game. Immutable values not included. Sent when a move is played, a draw is offered, or when the game ends.
|
|
2514
2536
|
* - `chatLine` Chat message sent by a user in the `room` "player" or "spectator".
|
|
2515
|
-
*
|
|
2516
2537
|
* - `opponentGone` Whether the opponent has left the game, and how long before you can claim a win or draw.
|
|
2517
2538
|
*
|
|
2518
|
-
*
|
|
2519
2539
|
* The first line is always of type `gameFull`.
|
|
2520
2540
|
*
|
|
2521
|
-
*
|
|
2522
2541
|
* The server closes the stream when the game ends, or if the game has already ended.
|
|
2542
|
+
*
|
|
2523
2543
|
*/
|
|
2524
2544
|
get: operations["boardGameStream"];
|
|
2525
2545
|
put?: never;
|
|
@@ -2767,19 +2787,15 @@ export interface paths {
|
|
|
2767
2787
|
};
|
|
2768
2788
|
/**
|
|
2769
2789
|
* Stream Bot game state
|
|
2770
|
-
* @description
|
|
2771
|
-
*
|
|
2790
|
+
* @description Stream the state of a game being played with the Bot API, as [ndjson](#section/Introduction/Streaming-with-ND-JSON).
|
|
2772
2791
|
* Use this endpoint to get updates about the game in real-time, with a single request.
|
|
2773
|
-
*
|
|
2774
2792
|
* Each line is a JSON object containing a `type` field. Possible values are:
|
|
2775
|
-
*
|
|
2776
|
-
*
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
2779
|
-
* - `opponentGone` Whether the opponent has left the game, and how long before you can claim a win or draw.
|
|
2780
|
-
*
|
|
2781
|
-
*
|
|
2793
|
+
* - `gameFull` Full game data. All values are immutable, except for the `state` field.
|
|
2794
|
+
* - `gameState` Current state of the game. Immutable values not included.
|
|
2795
|
+
* - `chatLine` Chat message sent by a user (or the bot itself) in the `room` "player" or "spectator".
|
|
2796
|
+
* - `opponentGone` Whether the opponent has left the game, and how long before you can claim a win or draw.
|
|
2782
2797
|
* The first line is always of type `gameFull`.
|
|
2798
|
+
*
|
|
2783
2799
|
*/
|
|
2784
2800
|
get: operations["botGameStream"];
|
|
2785
2801
|
put?: never;
|
|
@@ -2926,6 +2942,27 @@ export interface paths {
|
|
|
2926
2942
|
patch?: never;
|
|
2927
2943
|
trace?: never;
|
|
2928
2944
|
};
|
|
2945
|
+
"/api/bot/game/{gameId}/claim-victory": {
|
|
2946
|
+
parameters: {
|
|
2947
|
+
query?: never;
|
|
2948
|
+
header?: never;
|
|
2949
|
+
path?: never;
|
|
2950
|
+
cookie?: never;
|
|
2951
|
+
};
|
|
2952
|
+
get?: never;
|
|
2953
|
+
put?: never;
|
|
2954
|
+
/**
|
|
2955
|
+
* Claim victory of a game
|
|
2956
|
+
* @description Claim victory when the opponent has left the game for a while.
|
|
2957
|
+
*
|
|
2958
|
+
*/
|
|
2959
|
+
post: operations["botGameClaimVictory"];
|
|
2960
|
+
delete?: never;
|
|
2961
|
+
options?: never;
|
|
2962
|
+
head?: never;
|
|
2963
|
+
patch?: never;
|
|
2964
|
+
trace?: never;
|
|
2965
|
+
};
|
|
2929
2966
|
"/api/challenge": {
|
|
2930
2967
|
parameters: {
|
|
2931
2968
|
query?: never;
|
|
@@ -4078,11 +4115,6 @@ export interface components {
|
|
|
4078
4115
|
* @example false
|
|
4079
4116
|
*/
|
|
4080
4117
|
blocking?: boolean;
|
|
4081
|
-
/**
|
|
4082
|
-
* @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
|
|
4083
|
-
* @example false
|
|
4084
|
-
*/
|
|
4085
|
-
followsYou?: boolean;
|
|
4086
4118
|
};
|
|
4087
4119
|
/** @example [
|
|
4088
4120
|
* {
|
|
@@ -4606,6 +4638,35 @@ export interface components {
|
|
|
4606
4638
|
};
|
|
4607
4639
|
win: boolean;
|
|
4608
4640
|
};
|
|
4641
|
+
/** @example {
|
|
4642
|
+
* "replay": {
|
|
4643
|
+
* "days": 30,
|
|
4644
|
+
* "theme": "opening",
|
|
4645
|
+
* "nb": 2,
|
|
4646
|
+
* "remaining": [
|
|
4647
|
+
* "M5KzH",
|
|
4648
|
+
* "prIYT"
|
|
4649
|
+
* ]
|
|
4650
|
+
* },
|
|
4651
|
+
* "angle": {
|
|
4652
|
+
* "key": "opening",
|
|
4653
|
+
* "name": "Opening",
|
|
4654
|
+
* "desc": "A tactic during the first phase of the game."
|
|
4655
|
+
* }
|
|
4656
|
+
* } */
|
|
4657
|
+
PuzzleReplay: {
|
|
4658
|
+
replay: {
|
|
4659
|
+
days: number;
|
|
4660
|
+
theme: string;
|
|
4661
|
+
nb: number;
|
|
4662
|
+
remaining: string[];
|
|
4663
|
+
};
|
|
4664
|
+
angle: {
|
|
4665
|
+
key: string;
|
|
4666
|
+
name: string;
|
|
4667
|
+
desc: string;
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4609
4670
|
PuzzlePerformance: {
|
|
4610
4671
|
firstWins: number;
|
|
4611
4672
|
nb: number;
|
|
@@ -5662,7 +5723,9 @@ export interface components {
|
|
|
5662
5723
|
fullName?: string;
|
|
5663
5724
|
nbPlayers?: number;
|
|
5664
5725
|
variant?: components["schemas"]["Variant"];
|
|
5726
|
+
/** Format: int64 */
|
|
5665
5727
|
startsAt?: number;
|
|
5728
|
+
/** Format: int64 */
|
|
5666
5729
|
finishesAt?: number;
|
|
5667
5730
|
status?: components["schemas"]["ArenaStatus"];
|
|
5668
5731
|
perf?: components["schemas"]["ArenaPerf"];
|
|
@@ -5673,6 +5736,8 @@ export interface components {
|
|
|
5673
5736
|
minRatedGames?: {
|
|
5674
5737
|
nb?: number;
|
|
5675
5738
|
};
|
|
5739
|
+
botsAllowed?: boolean;
|
|
5740
|
+
minAccountAgeInDays?: number;
|
|
5676
5741
|
onlyTitled?: boolean;
|
|
5677
5742
|
teamMember?: string;
|
|
5678
5743
|
private?: boolean;
|
|
@@ -5957,6 +6022,7 @@ export interface components {
|
|
|
5957
6022
|
isFinished: boolean;
|
|
5958
6023
|
isRecentlyFinished?: boolean;
|
|
5959
6024
|
pairingsClosed?: boolean;
|
|
6025
|
+
/** Format: int64 */
|
|
5960
6026
|
startsAt?: string;
|
|
5961
6027
|
nbPlayers: number;
|
|
5962
6028
|
verdicts?: components["schemas"]["Verdicts"];
|
|
@@ -5967,6 +6033,14 @@ export interface components {
|
|
|
5967
6033
|
};
|
|
5968
6034
|
/** @description List of usernames allowed to join the tournament */
|
|
5969
6035
|
allowList?: string[];
|
|
6036
|
+
hasMaxRating?: boolean;
|
|
6037
|
+
maxRating?: components["schemas"]["ArenaRatingObj"];
|
|
6038
|
+
minRating?: components["schemas"]["ArenaRatingObj"];
|
|
6039
|
+
minRatedGames?: {
|
|
6040
|
+
nb?: number;
|
|
6041
|
+
};
|
|
6042
|
+
botsAllowed?: boolean;
|
|
6043
|
+
minAccountAgeInDays?: number;
|
|
5970
6044
|
perf?: {
|
|
5971
6045
|
icon: string;
|
|
5972
6046
|
key: string;
|
|
@@ -6052,6 +6126,12 @@ export interface components {
|
|
|
6052
6126
|
* @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
|
|
6053
6127
|
*/
|
|
6054
6128
|
SwissFromPositionFEN: string;
|
|
6129
|
+
/**
|
|
6130
|
+
* @description The current state of the swiss tournament
|
|
6131
|
+
* @example created
|
|
6132
|
+
* @enum {string}
|
|
6133
|
+
*/
|
|
6134
|
+
SwissStatus: "created" | "started" | "finished";
|
|
6055
6135
|
/** @example {
|
|
6056
6136
|
* "clock": {
|
|
6057
6137
|
* "increment": 0,
|
|
@@ -6105,7 +6185,7 @@ export interface components {
|
|
|
6105
6185
|
nbRounds: number;
|
|
6106
6186
|
nbPlayers: number;
|
|
6107
6187
|
nbOngoing: number;
|
|
6108
|
-
status:
|
|
6188
|
+
status: components["schemas"]["SwissStatus"];
|
|
6109
6189
|
stats: {
|
|
6110
6190
|
games: number;
|
|
6111
6191
|
whiteWins: number;
|
|
@@ -6553,9 +6633,12 @@ export interface components {
|
|
|
6553
6633
|
syncUsers: string;
|
|
6554
6634
|
}
|
|
6555
6635
|
) & {
|
|
6556
|
-
/**
|
|
6636
|
+
/**
|
|
6637
|
+
* Format: int64
|
|
6638
|
+
* @description Timestamp in milliseconds of broadcast round start. Leave empty to manually start the broadcast round.
|
|
6557
6639
|
* Example: `1356998400070`
|
|
6558
|
-
*
|
|
6640
|
+
*
|
|
6641
|
+
*/
|
|
6559
6642
|
startsAt?: number;
|
|
6560
6643
|
/**
|
|
6561
6644
|
* @description The start date is unknown, and the round will start automatically when the previous round completes.
|
|
@@ -6907,6 +6990,12 @@ export interface components {
|
|
|
6907
6990
|
/** @example 13680 */
|
|
6908
6991
|
nbPages?: number;
|
|
6909
6992
|
};
|
|
6993
|
+
/**
|
|
6994
|
+
* @description The current state of the arena tournament
|
|
6995
|
+
* @example created
|
|
6996
|
+
* @enum {string}
|
|
6997
|
+
*/
|
|
6998
|
+
ArenaStatusName: "created" | "started" | "finished";
|
|
6910
6999
|
TeamRequest: {
|
|
6911
7000
|
/** @example coders */
|
|
6912
7001
|
teamId?: string;
|
|
@@ -7266,6 +7355,8 @@ export interface components {
|
|
|
7266
7355
|
* "binc": 10000,
|
|
7267
7356
|
* "wdraw": false,
|
|
7268
7357
|
* "bdraw": false,
|
|
7358
|
+
* "wtakeback": false,
|
|
7359
|
+
* "btakeback": false,
|
|
7269
7360
|
* "status": "started"
|
|
7270
7361
|
* } */
|
|
7271
7362
|
GameStateEvent: {
|
|
@@ -7332,6 +7423,10 @@ export interface components {
|
|
|
7332
7423
|
* "btime": 286000,
|
|
7333
7424
|
* "winc": 0,
|
|
7334
7425
|
* "binc": 0,
|
|
7426
|
+
* "wdraw": false,
|
|
7427
|
+
* "bdraw": false,
|
|
7428
|
+
* "wtakeback": false,
|
|
7429
|
+
* "btakeback": false,
|
|
7335
7430
|
* "status": "started"
|
|
7336
7431
|
* }
|
|
7337
7432
|
* } */
|
|
@@ -8111,17 +8206,21 @@ export interface components {
|
|
|
8111
8206
|
category?:
|
|
8112
8207
|
| "loss"
|
|
8113
8208
|
| "unknown"
|
|
8209
|
+
| "syzygy-loss"
|
|
8114
8210
|
| "maybe-loss"
|
|
8115
8211
|
| "blessed-loss"
|
|
8116
8212
|
| "draw"
|
|
8117
8213
|
| "cursed-win"
|
|
8118
8214
|
| "maybe-win"
|
|
8215
|
+
| "syzygy-win"
|
|
8119
8216
|
| "win";
|
|
8120
8217
|
/** @description DTZ50'' with rounding or null if unknown */
|
|
8121
8218
|
dtz?: null | number;
|
|
8122
8219
|
/** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
|
|
8123
8220
|
* */
|
|
8124
8221
|
precise_dtz?: null | number;
|
|
8222
|
+
/** @description Depth to Conversion (experimental) */
|
|
8223
|
+
dtc?: null | number;
|
|
8125
8224
|
/** @description Depth To Mate (only for Standard positions with not more than 5 pieces) */
|
|
8126
8225
|
dtm?: null | number;
|
|
8127
8226
|
/** @description Depth To Win (only for Antichess positions with not more than 4 pieces) */
|
|
@@ -8136,6 +8235,7 @@ export interface components {
|
|
|
8136
8235
|
/** @example {
|
|
8137
8236
|
* "dtz": 1,
|
|
8138
8237
|
* "precise_dtz": 1,
|
|
8238
|
+
* "dtc": null,
|
|
8139
8239
|
* "dtm": 17,
|
|
8140
8240
|
* "dtw": null,
|
|
8141
8241
|
* "checkmate": false,
|
|
@@ -8150,6 +8250,7 @@ export interface components {
|
|
|
8150
8250
|
* "san": "h8=Q+",
|
|
8151
8251
|
* "dtz": -2,
|
|
8152
8252
|
* "precise_dtz": -2,
|
|
8253
|
+
* "dtc": null,
|
|
8153
8254
|
* "dtm": -16,
|
|
8154
8255
|
* "dtw": null,
|
|
8155
8256
|
* "zeroing": true,
|
|
@@ -8167,22 +8268,28 @@ export interface components {
|
|
|
8167
8268
|
* @description `cursed-win` and `blessed-loss` means the 50-move rule prevents
|
|
8168
8269
|
* the decisive result.
|
|
8169
8270
|
*
|
|
8170
|
-
* `
|
|
8271
|
+
* `syzygy-win` and `syzygy-loss` means exact result is unknown due to
|
|
8171
8272
|
* [DTZ rounding](https://syzygy-tables.info/metrics#dtz), i.e., the
|
|
8172
8273
|
* win or loss could also be prevented by the 50-move rule if
|
|
8173
8274
|
* the user has deviated from the tablebase recommendation since the
|
|
8174
8275
|
* last pawn move or capture.
|
|
8175
8276
|
*
|
|
8277
|
+
* `maybe-win` and `maybe-loss` means the result with regard to the
|
|
8278
|
+
* 50-move rule is unknown because the DTC tablebase does not
|
|
8279
|
+
* guarantee to reach a zeroing move as soon as possible.
|
|
8280
|
+
*
|
|
8176
8281
|
* @enum {string}
|
|
8177
8282
|
*/
|
|
8178
8283
|
category?:
|
|
8179
8284
|
| "win"
|
|
8180
8285
|
| "unknown"
|
|
8286
|
+
| "syzygy-win"
|
|
8181
8287
|
| "maybe-win"
|
|
8182
8288
|
| "cursed-win"
|
|
8183
8289
|
| "draw"
|
|
8184
8290
|
| "blessed-loss"
|
|
8185
8291
|
| "maybe-loss"
|
|
8292
|
+
| "syzygy-loss"
|
|
8186
8293
|
| "loss";
|
|
8187
8294
|
/** @description [DTZ50'' with rounding](https://syzygy-tables.info/metrics#dtz) or null if unknown
|
|
8188
8295
|
* */
|
|
@@ -8190,6 +8297,8 @@ export interface components {
|
|
|
8190
8297
|
/** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
|
|
8191
8298
|
* */
|
|
8192
8299
|
precise_dtz?: null | number;
|
|
8300
|
+
/** @description Depth to Conversion (experimental) */
|
|
8301
|
+
dtc?: null | number;
|
|
8193
8302
|
/** @description Depth To Mate (only for Standard positions with not more than 5 pieces) */
|
|
8194
8303
|
dtm?: null | number;
|
|
8195
8304
|
/** @description Depth To Win (only for Antichess positions with not more than 4 pieces) */
|
|
@@ -8526,6 +8635,44 @@ export interface operations {
|
|
|
8526
8635
|
};
|
|
8527
8636
|
};
|
|
8528
8637
|
};
|
|
8638
|
+
apiPuzzleReplay: {
|
|
8639
|
+
parameters: {
|
|
8640
|
+
query?: never;
|
|
8641
|
+
header?: never;
|
|
8642
|
+
path: {
|
|
8643
|
+
/** @description How many days to look back when aggregating puzzle results. 30 is sensible. */
|
|
8644
|
+
days: number;
|
|
8645
|
+
/** @description The theme or opening to filter puzzles with. */
|
|
8646
|
+
theme: string;
|
|
8647
|
+
};
|
|
8648
|
+
cookie?: never;
|
|
8649
|
+
};
|
|
8650
|
+
requestBody?: never;
|
|
8651
|
+
responses: {
|
|
8652
|
+
/** @description The requested puzzles to replay. */
|
|
8653
|
+
200: {
|
|
8654
|
+
headers: {
|
|
8655
|
+
"Access-Control-Allow-Origin"?: string;
|
|
8656
|
+
[name: string]: unknown;
|
|
8657
|
+
};
|
|
8658
|
+
content: {
|
|
8659
|
+
"application/json": components["schemas"]["PuzzleReplay"];
|
|
8660
|
+
};
|
|
8661
|
+
};
|
|
8662
|
+
/** @description No puzzles to replay were found */
|
|
8663
|
+
404: {
|
|
8664
|
+
headers: {
|
|
8665
|
+
[name: string]: unknown;
|
|
8666
|
+
};
|
|
8667
|
+
content: {
|
|
8668
|
+
"application/json": {
|
|
8669
|
+
/** @example No puzzles to replay */
|
|
8670
|
+
error?: string;
|
|
8671
|
+
};
|
|
8672
|
+
};
|
|
8673
|
+
};
|
|
8674
|
+
};
|
|
8675
|
+
};
|
|
8529
8676
|
apiPuzzleDashboard: {
|
|
8530
8677
|
parameters: {
|
|
8531
8678
|
query?: never;
|
|
@@ -9593,7 +9740,10 @@ export interface operations {
|
|
|
9593
9740
|
* @enum {integer}
|
|
9594
9741
|
*/
|
|
9595
9742
|
waitMinutes?: 1 | 2 | 3 | 5 | 10 | 15 | 20 | 30 | 45 | 60;
|
|
9596
|
-
/**
|
|
9743
|
+
/**
|
|
9744
|
+
* Format: int64
|
|
9745
|
+
* @description Timestamp (in milliseconds) to start the tournament at a given date and time. Overrides the `waitMinutes` setting
|
|
9746
|
+
*/
|
|
9597
9747
|
startDate?: number;
|
|
9598
9748
|
variant?: components["schemas"]["VariantKey"];
|
|
9599
9749
|
/**
|
|
@@ -9699,6 +9849,27 @@ export interface operations {
|
|
|
9699
9849
|
* Example: `thibault,german11,%titled`
|
|
9700
9850
|
* */
|
|
9701
9851
|
"conditions.allowList"?: string;
|
|
9852
|
+
/**
|
|
9853
|
+
* @description Whether bots are allowed to join the tournament.
|
|
9854
|
+
* @default false
|
|
9855
|
+
*/
|
|
9856
|
+
"conditions.bots"?: boolean;
|
|
9857
|
+
/**
|
|
9858
|
+
* @description Minium account age in days required to join.
|
|
9859
|
+
* @enum {integer}
|
|
9860
|
+
*/
|
|
9861
|
+
"conditions.accountAge"?:
|
|
9862
|
+
| 1
|
|
9863
|
+
| 3
|
|
9864
|
+
| 7
|
|
9865
|
+
| 14
|
|
9866
|
+
| 30
|
|
9867
|
+
| 60
|
|
9868
|
+
| 90
|
|
9869
|
+
| 180
|
|
9870
|
+
| 365
|
|
9871
|
+
| 730
|
|
9872
|
+
| 1095;
|
|
9702
9873
|
};
|
|
9703
9874
|
};
|
|
9704
9875
|
};
|
|
@@ -9856,7 +10027,10 @@ export interface operations {
|
|
|
9856
10027
|
* @enum {integer}
|
|
9857
10028
|
*/
|
|
9858
10029
|
waitMinutes?: 1 | 2 | 3 | 5 | 10 | 15 | 20 | 30 | 45 | 60;
|
|
9859
|
-
/**
|
|
10030
|
+
/**
|
|
10031
|
+
* Format: int64
|
|
10032
|
+
* @description Timestamp (in milliseconds) to start the tournament at a given date and time. Overrides the `waitMinutes` setting
|
|
10033
|
+
*/
|
|
9860
10034
|
startDate?: number;
|
|
9861
10035
|
variant?: components["schemas"]["VariantKey"];
|
|
9862
10036
|
/**
|
|
@@ -9949,6 +10123,27 @@ export interface operations {
|
|
|
9949
10123
|
* Example: `thibault,german11,%titled`
|
|
9950
10124
|
* */
|
|
9951
10125
|
"conditions.allowList"?: string;
|
|
10126
|
+
/**
|
|
10127
|
+
* @description Whether bots are allowed to join the tournament.
|
|
10128
|
+
* @default false
|
|
10129
|
+
*/
|
|
10130
|
+
"conditions.bots"?: boolean;
|
|
10131
|
+
/**
|
|
10132
|
+
* @description Minium account age in days required to join.
|
|
10133
|
+
* @enum {integer}
|
|
10134
|
+
*/
|
|
10135
|
+
"conditions.accountAge"?:
|
|
10136
|
+
| 1
|
|
10137
|
+
| 3
|
|
10138
|
+
| 7
|
|
10139
|
+
| 14
|
|
10140
|
+
| 30
|
|
10141
|
+
| 60
|
|
10142
|
+
| 90
|
|
10143
|
+
| 180
|
|
10144
|
+
| 365
|
|
10145
|
+
| 730
|
|
10146
|
+
| 1095;
|
|
9952
10147
|
};
|
|
9953
10148
|
};
|
|
9954
10149
|
};
|
|
@@ -10396,7 +10591,10 @@ export interface operations {
|
|
|
10396
10591
|
"clock.increment": number;
|
|
10397
10592
|
/** @description Maximum number of rounds to play */
|
|
10398
10593
|
nbRounds: number;
|
|
10399
|
-
/**
|
|
10594
|
+
/**
|
|
10595
|
+
* Format: int64
|
|
10596
|
+
* @description Timestamp in milliseconds to start the tournament at a given date and time. By default, it starts 10 minutes after creation.
|
|
10597
|
+
*/
|
|
10400
10598
|
startsAt?: number;
|
|
10401
10599
|
/**
|
|
10402
10600
|
* @description How long to wait between each round, in seconds.
|
|
@@ -10633,7 +10831,10 @@ export interface operations {
|
|
|
10633
10831
|
"clock.increment": number;
|
|
10634
10832
|
/** @description Maximum number of rounds to play */
|
|
10635
10833
|
nbRounds: number;
|
|
10636
|
-
/**
|
|
10834
|
+
/**
|
|
10835
|
+
* Format: int64
|
|
10836
|
+
* @description Timestamp in milliseconds to start the tournament at a given date and time. By default, it starts 10 minutes after creation.
|
|
10837
|
+
*/
|
|
10637
10838
|
startsAt?: number;
|
|
10638
10839
|
/**
|
|
10639
10840
|
* @description How long to wait between each round, in seconds.
|
|
@@ -10800,7 +11001,10 @@ export interface operations {
|
|
|
10800
11001
|
requestBody: {
|
|
10801
11002
|
content: {
|
|
10802
11003
|
"application/x-www-form-urlencoded": {
|
|
10803
|
-
/**
|
|
11004
|
+
/**
|
|
11005
|
+
* Format: int64
|
|
11006
|
+
* @description Timestamp in milliseconds to start the next round at a given date and time.
|
|
11007
|
+
*/
|
|
10804
11008
|
date?: number;
|
|
10805
11009
|
};
|
|
10806
11010
|
};
|
|
@@ -11052,6 +11256,15 @@ export interface operations {
|
|
|
11052
11256
|
query?: {
|
|
11053
11257
|
/** @description How many tournaments to download. */
|
|
11054
11258
|
max?: number;
|
|
11259
|
+
/** @description [Filter] Only swiss tournaments in this current state.
|
|
11260
|
+
* */
|
|
11261
|
+
status?: components["schemas"]["SwissStatus"] & unknown;
|
|
11262
|
+
/** @description [Filter] Only swiss tournaments created by a given user.
|
|
11263
|
+
* */
|
|
11264
|
+
createdBy?: string;
|
|
11265
|
+
/** @description [Filter] Only swiss tournaments with a given name.
|
|
11266
|
+
* */
|
|
11267
|
+
name?: string;
|
|
11055
11268
|
};
|
|
11056
11269
|
header?: never;
|
|
11057
11270
|
path: {
|
|
@@ -11203,13 +11416,13 @@ export interface operations {
|
|
|
11203
11416
|
requestBody: {
|
|
11204
11417
|
content: {
|
|
11205
11418
|
"application/x-www-form-urlencoded": {
|
|
11206
|
-
/** @description Name of the new chapter.
|
|
11207
|
-
* If multiple chapters are created, the names will be infered from the PGN tags.
|
|
11208
|
-
* */
|
|
11209
|
-
name: string;
|
|
11210
11419
|
/** @description PGN to import. Can contain multiple games separated by 2 or more newlines.
|
|
11211
11420
|
* */
|
|
11212
11421
|
pgn: string;
|
|
11422
|
+
/** @description Name of the new chapter.
|
|
11423
|
+
* If not specified, or if multiple chapters are created, the names will be inferred from the PGN tags.
|
|
11424
|
+
* */
|
|
11425
|
+
name?: string;
|
|
11213
11426
|
/**
|
|
11214
11427
|
* @description Default board orientation.
|
|
11215
11428
|
* @default white
|
|
@@ -12026,6 +12239,15 @@ export interface operations {
|
|
|
12026
12239
|
query?: {
|
|
12027
12240
|
/** @description How many tournaments to download. */
|
|
12028
12241
|
max?: number;
|
|
12242
|
+
/** @description [Filter] Only arena tournaments in this current state.
|
|
12243
|
+
* */
|
|
12244
|
+
status?: components["schemas"]["ArenaStatusName"] & unknown;
|
|
12245
|
+
/** @description [Filter] Only arena tournaments created by a given user.
|
|
12246
|
+
* */
|
|
12247
|
+
createdBy?: string;
|
|
12248
|
+
/** @description [Filter] Only arena tournaments with a given name.
|
|
12249
|
+
* */
|
|
12250
|
+
name?: string;
|
|
12029
12251
|
};
|
|
12030
12252
|
header?: never;
|
|
12031
12253
|
path: {
|
|
@@ -13233,6 +13455,38 @@ export interface operations {
|
|
|
13233
13455
|
};
|
|
13234
13456
|
};
|
|
13235
13457
|
};
|
|
13458
|
+
botGameClaimVictory: {
|
|
13459
|
+
parameters: {
|
|
13460
|
+
query?: never;
|
|
13461
|
+
header?: never;
|
|
13462
|
+
path: {
|
|
13463
|
+
gameId: string;
|
|
13464
|
+
};
|
|
13465
|
+
cookie?: never;
|
|
13466
|
+
};
|
|
13467
|
+
requestBody?: never;
|
|
13468
|
+
responses: {
|
|
13469
|
+
/** @description The victory was successfully claimed. */
|
|
13470
|
+
200: {
|
|
13471
|
+
headers: {
|
|
13472
|
+
"Access-Control-Allow-Origin"?: string;
|
|
13473
|
+
[name: string]: unknown;
|
|
13474
|
+
};
|
|
13475
|
+
content: {
|
|
13476
|
+
"application/json": components["schemas"]["Ok"];
|
|
13477
|
+
};
|
|
13478
|
+
};
|
|
13479
|
+
/** @description The victory claim has failed. */
|
|
13480
|
+
400: {
|
|
13481
|
+
headers: {
|
|
13482
|
+
[name: string]: unknown;
|
|
13483
|
+
};
|
|
13484
|
+
content: {
|
|
13485
|
+
"application/json": components["schemas"]["Error"];
|
|
13486
|
+
};
|
|
13487
|
+
};
|
|
13488
|
+
};
|
|
13489
|
+
};
|
|
13236
13490
|
challengeList: {
|
|
13237
13491
|
parameters: {
|
|
13238
13492
|
query?: never;
|
|
@@ -13604,7 +13858,10 @@ export interface operations {
|
|
|
13604
13858
|
* Example: `Username1,Username2`
|
|
13605
13859
|
* */
|
|
13606
13860
|
users?: string;
|
|
13607
|
-
/**
|
|
13861
|
+
/**
|
|
13862
|
+
* Format: int64
|
|
13863
|
+
* @description Timestamp in milliseconds to expire the challenge. Defaults to 24h after creation. Can't be more than 2 weeks after creation.
|
|
13864
|
+
*/
|
|
13608
13865
|
expiresAt?: number;
|
|
13609
13866
|
};
|
|
13610
13867
|
};
|
|
@@ -13709,18 +13966,24 @@ export interface operations {
|
|
|
13709
13966
|
* @enum {integer}
|
|
13710
13967
|
*/
|
|
13711
13968
|
days?: 1 | 2 | 3 | 5 | 7 | 10 | 14;
|
|
13712
|
-
/**
|
|
13969
|
+
/**
|
|
13970
|
+
* Format: int64
|
|
13971
|
+
* @description Date at which the games will be created as a Unix timestamp in milliseconds.
|
|
13713
13972
|
* Up to 7 days in the future.
|
|
13714
13973
|
* Omit, or set to current date and time, to start the games immediately.
|
|
13715
13974
|
* Example: `1612289869919`
|
|
13716
|
-
*
|
|
13975
|
+
*
|
|
13976
|
+
*/
|
|
13717
13977
|
pairAt?: number;
|
|
13718
|
-
/**
|
|
13978
|
+
/**
|
|
13979
|
+
* Format: int64
|
|
13980
|
+
* @description Date at which the clocks will be automatically started as a Unix timestamp in milliseconds.
|
|
13719
13981
|
* Up to 7 days in the future.
|
|
13720
13982
|
* Note that the clocks can start earlier than specified, if players start making moves in the game.
|
|
13721
13983
|
* If omitted, the clocks will not start automatically.
|
|
13722
13984
|
* Example: `1612289869919`
|
|
13723
|
-
*
|
|
13985
|
+
*
|
|
13986
|
+
*/
|
|
13724
13987
|
startClocksAt?: number;
|
|
13725
13988
|
/**
|
|
13726
13989
|
* @description Game is rated and impacts players ratings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "Lichess.org API types",
|
|
5
5
|
"homepage": "https://github.com/lichess-org/api",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"openapi-typescript": "^7.6.1",
|
|
15
|
-
"prettier": "^3.5.
|
|
16
|
-
"typescript": "^5.
|
|
15
|
+
"prettier": "^3.5.3",
|
|
16
|
+
"typescript": "^5.8.3"
|
|
17
17
|
},
|
|
18
|
-
"packageManager": "pnpm@9.
|
|
18
|
+
"packageManager": "pnpm@9.15.6+sha512.139cab068fdf0b751268179ac5f909b5be72afb4a75c513d1905d151befc8977b593d3cf8671ed83d4d6637c5c94b98ffbce108125de4a5a27a31233601a99de"
|
|
19
19
|
}
|