@lichess-org/types 2.0.90 → 2.0.92

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.
Files changed (2) hide show
  1. package/lichess-api.d.ts +538 -394
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -3930,6 +3930,7 @@ export interface paths {
3930
3930
  /**
3931
3931
  * Tablebase lookup
3932
3932
  * @description **Endpoint: <https://tablebase.lichess.ovh>**
3933
+ *
3933
3934
  * Example: `curl http://tablebase.lichess.ovh/standard?fen=4k3/6KP/8/8/8/8/7p/8_w_-_-_0_1`
3934
3935
  *
3935
3936
  */
@@ -4161,13 +4162,13 @@ export interface components {
4161
4162
  Count: {
4162
4163
  all: number;
4163
4164
  rated: number;
4164
- ai: number;
4165
+ ai?: number;
4165
4166
  draw: number;
4166
- drawH: number;
4167
+ drawH?: number;
4167
4168
  loss: number;
4168
- lossH: number;
4169
+ lossH?: number;
4169
4170
  win: number;
4170
- winH: number;
4171
+ winH?: number;
4171
4172
  bookmark: number;
4172
4173
  playing: number;
4173
4174
  import: number;
@@ -4201,23 +4202,13 @@ export interface components {
4201
4202
  */
4202
4203
  playing?: string;
4203
4204
  count?: components["schemas"]["Count"];
4204
- /** @example false */
4205
4205
  streaming?: boolean;
4206
4206
  streamer?: components["schemas"]["UserStreamer"];
4207
- /**
4208
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4209
- * @example true
4210
- */
4207
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4211
4208
  followable?: boolean;
4212
- /**
4213
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4214
- * @example false
4215
- */
4209
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4216
4210
  following?: boolean;
4217
- /**
4218
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4219
- * @example false
4220
- */
4211
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4221
4212
  blocking?: boolean;
4222
4213
  };
4223
4214
  /** @example {
@@ -4300,232 +4291,180 @@ export interface components {
4300
4291
  | "kingOfTheHill"
4301
4292
  | "racingKings"
4302
4293
  | "threeCheck";
4303
- /** @example {
4304
- * "user": {
4305
- * "name": "thibault"
4306
- * },
4307
- * "perf": {
4308
- * "glicko": {
4309
- * "rating": 1672.42,
4310
- * "deviation": 45.13,
4311
- * "provisional": false
4312
- * },
4313
- * "nb": 5692,
4314
- * "progress": -27
4315
- * },
4316
- * "rank": 98121,
4317
- * "percentile": 69.7,
4318
- * "stat": {
4319
- * "perfType": {
4320
- * "key": "bullet",
4321
- * "name": "Bullet"
4322
- * },
4323
- * "highest": {
4324
- * "int": 1902,
4325
- * "at": "2021-05-31T08:58:53.701Z",
4326
- * "gameId": "YEDqtwig"
4327
- * },
4328
- * "lowest": {
4329
- * "int": 1417,
4330
- * "at": "2016-06-28T13:54:39.656Z",
4331
- * "gameId": "rNM4J1GJ"
4332
- * },
4333
- * "id": "thibault/1",
4334
- * "bestWins": {
4335
- * "results": [
4336
- * {
4337
- * "opRating": 2238,
4338
- * "opId": {
4339
- * "id": "hyperdragon84",
4340
- * "name": "HyperDragon84"
4341
- * },
4342
- * "at": "2019-06-19T17:09:05.187Z",
4343
- * "gameId": "DGB53z9w"
4344
- * },
4345
- * {
4346
- * "opRating": 2089,
4347
- * "opId": {
4348
- * "id": "osipov",
4349
- * "name": "osipov"
4350
- * },
4351
- * "at": "2017-06-18T09:46:05.016Z",
4352
- * "gameId": "gurRhuMi"
4353
- * },
4354
- * {
4355
- * "opRating": 2071,
4356
- * "opId": {
4357
- * "id": "spark50",
4358
- * "name": "Spark50"
4359
- * },
4360
- * "at": "2020-07-04T08:36:12.948Z",
4361
- * "gameId": "a93Dk1mv"
4362
- * },
4363
- * {
4364
- * "opRating": 2045,
4365
- * "opId": {
4366
- * "id": "yasha43",
4367
- * "name": "Yasha43"
4368
- * },
4369
- * "at": "2021-05-17T14:01:41.098Z",
4370
- * "gameId": "j3jZnGTr"
4371
- * },
4372
- * {
4373
- * "opRating": 2034,
4374
- * "opId": {
4375
- * "id": "midedu",
4376
- * "name": "midedu"
4377
- * },
4378
- * "at": "2020-06-27T17:32:47.001Z",
4379
- * "gameId": "OiaMVLQ8"
4380
- * }
4381
- * ]
4382
- * },
4383
- * "worstLosses": {
4384
- * "results": [
4385
- * {
4386
- * "opRating": 1186,
4387
- * "opId": {
4388
- * "id": "happy0",
4389
- * "name": "Happy0"
4390
- * },
4391
- * "at": "2016-07-07T19:48:29.077Z",
4392
- * "gameId": "Q01bbiN4"
4393
- * },
4394
- * {
4395
- * "opRating": 1197,
4396
- * "opId": {
4397
- * "id": "kazmankiller86",
4398
- * "name": "KazmanKiller86"
4399
- * },
4400
- * "at": "2016-10-16T14:21:37.748Z",
4401
- * "gameId": "Aivqh9Sp"
4402
- * },
4403
- * {
4404
- * "opRating": 1201,
4405
- * "opId": {
4406
- * "id": "artem555",
4407
- * "name": "artem555"
4408
- * },
4409
- * "at": "2016-08-28T16:21:30.923Z",
4410
- * "gameId": "tiRAbhnX"
4411
- * },
4412
- * {
4413
- * "opRating": 1265,
4414
- * "opId": {
4415
- * "id": "arcenuu",
4416
- * "name": "Arcenuu"
4417
- * },
4418
- * "at": "2016-12-24T14:28:03.866Z",
4419
- * "gameId": "A68wUOoh"
4420
- * },
4421
- * {
4422
- * "opRating": 1283,
4423
- * "opId": {
4424
- * "id": "amritalib76",
4425
- * "name": "Amritalib76"
4426
- * },
4427
- * "at": "2018-06-26T09:55:39.354Z",
4428
- * "gameId": "sbNVikmo"
4429
- * }
4430
- * ]
4431
- * },
4432
- * "count": {
4433
- * "all": 5858,
4434
- * "rated": 5688,
4435
- * "win": 2789,
4436
- * "loss": 2806,
4437
- * "draw": 263,
4438
- * "tour": 654,
4439
- * "berserk": 1,
4440
- * "opAvg": 1671.44,
4441
- * "seconds": 784886,
4442
- * "disconnects": 0
4443
- * },
4444
- * "resultStreak": {
4445
- * "win": {
4446
- * "cur": {
4447
- * "v": 0
4448
- * },
4449
- * "max": {
4450
- * "v": 11,
4451
- * "from": {
4452
- * "at": "2021-06-14T15:38:50.681Z",
4453
- * "gameId": "wTX2IExo"
4454
- * },
4455
- * "to": {
4456
- * "at": "2021-06-15T18:41:46.970Z",
4457
- * "gameId": "1z4rrjgw"
4458
- * }
4459
- * }
4460
- * },
4461
- * "loss": {
4462
- * "cur": {
4463
- * "v": 3,
4464
- * "from": {
4465
- * "at": "2021-06-29T17:53:23.642Z",
4466
- * "gameId": "pfcnjgik"
4467
- * },
4468
- * "to": {
4469
- * "at": "2021-06-29T18:04:48.358Z",
4470
- * "gameId": "6sPaGL8T"
4471
- * }
4472
- * },
4473
- * "max": {
4474
- * "v": 14,
4475
- * "from": {
4476
- * "at": "2018-06-11T14:43:39.296Z",
4477
- * "gameId": "1fc9dqun"
4478
- * },
4479
- * "to": {
4480
- * "at": "2018-06-11T15:10:30.908Z",
4481
- * "gameId": "Nzy6UgwY"
4482
- * }
4483
- * }
4484
- * }
4485
- * },
4486
- * "userId": {
4487
- * "id": "thibault",
4488
- * "name": "thibault",
4489
- * "title": null
4490
- * },
4491
- * "playStreak": {
4492
- * "nb": {
4493
- * "cur": {
4494
- * "v": 0
4495
- * },
4496
- * "max": {
4497
- * "v": 118,
4498
- * "from": {
4499
- * "at": "2018-06-11T10:32:21.248Z",
4500
- * "gameId": "UAsNnJbN"
4501
- * },
4502
- * "to": {
4503
- * "at": "2018-06-11T15:13:01.193Z",
4504
- * "gameId": "T7fHRaFG"
4505
- * }
4506
- * }
4507
- * },
4508
- * "time": {
4509
- * "cur": {
4510
- * "v": 0
4511
- * },
4512
- * "max": {
4513
- * "v": 12683,
4514
- * "from": {
4515
- * "at": "2018-06-12T14:11:14.021Z",
4516
- * "gameId": "IrZCAW58"
4517
- * },
4518
- * "to": {
4519
- * "at": "2018-06-12T18:02:57.010Z",
4520
- * "gameId": "RNF1mQ68"
4521
- * }
4522
- * }
4523
- * },
4524
- * "lastDate": "2021-06-29T18:04:48.358Z"
4525
- * }
4526
- * }
4527
- * } */
4528
- PerfStat: unknown;
4294
+ PerfStat: {
4295
+ user: {
4296
+ name: string;
4297
+ };
4298
+ perf: {
4299
+ glicko?: {
4300
+ rating?: number;
4301
+ deviation?: number;
4302
+ provisional?: boolean;
4303
+ };
4304
+ nb?: number;
4305
+ progress?: number;
4306
+ };
4307
+ rank: number | null;
4308
+ percentile: number;
4309
+ stat: {
4310
+ perfType: {
4311
+ key: string;
4312
+ name: string;
4313
+ };
4314
+ highest?: {
4315
+ int: number;
4316
+ /** Format: date-time */
4317
+ at: string;
4318
+ gameId: string;
4319
+ };
4320
+ lowest?: {
4321
+ int: number;
4322
+ /** Format: date-time */
4323
+ at: string;
4324
+ gameId: string;
4325
+ };
4326
+ id: string;
4327
+ bestWins: {
4328
+ results: {
4329
+ opRating: number;
4330
+ opId: {
4331
+ id: string;
4332
+ name: string;
4333
+ title: components["schemas"]["Title"] | null;
4334
+ };
4335
+ /** Format: date-time */
4336
+ at: string;
4337
+ gameId: string;
4338
+ }[];
4339
+ };
4340
+ worstLosses: {
4341
+ results: {
4342
+ opRating: number;
4343
+ opId: {
4344
+ id: string;
4345
+ name: string;
4346
+ title: components["schemas"]["Title"] | null;
4347
+ };
4348
+ /** Format: date-time */
4349
+ at: string;
4350
+ gameId: string;
4351
+ }[];
4352
+ };
4353
+ count: {
4354
+ all: number;
4355
+ rated: number;
4356
+ win: number;
4357
+ loss: number;
4358
+ draw: number;
4359
+ tour: number;
4360
+ berserk: number;
4361
+ opAvg: number;
4362
+ seconds: number;
4363
+ disconnects: number;
4364
+ };
4365
+ resultStreak: {
4366
+ win: {
4367
+ cur: {
4368
+ v: number;
4369
+ from?: {
4370
+ /** Format: date-time */
4371
+ at: string;
4372
+ gameId: string;
4373
+ };
4374
+ to?: {
4375
+ /** Format: date-time */
4376
+ at: string;
4377
+ gameId: string;
4378
+ };
4379
+ };
4380
+ max: {
4381
+ v: number;
4382
+ from?: {
4383
+ /** Format: date-time */
4384
+ at: string;
4385
+ gameId: string;
4386
+ };
4387
+ to?: {
4388
+ /** Format: date-time */
4389
+ at: string;
4390
+ gameId: string;
4391
+ };
4392
+ };
4393
+ };
4394
+ loss: {
4395
+ cur: {
4396
+ v: number;
4397
+ from?: {
4398
+ /** Format: date-time */
4399
+ at: string;
4400
+ gameId: string;
4401
+ };
4402
+ to?: {
4403
+ /** Format: date-time */
4404
+ at: string;
4405
+ gameId: string;
4406
+ };
4407
+ };
4408
+ max: {
4409
+ v: number;
4410
+ from?: {
4411
+ at: string;
4412
+ gameId: string;
4413
+ };
4414
+ to?: {
4415
+ at: string;
4416
+ gameId: string;
4417
+ };
4418
+ };
4419
+ };
4420
+ };
4421
+ userId: {
4422
+ id: string;
4423
+ name: string;
4424
+ title: components["schemas"]["Title"] | null;
4425
+ };
4426
+ playStreak: {
4427
+ nb: {
4428
+ cur: {
4429
+ v: number;
4430
+ };
4431
+ max: {
4432
+ v: number;
4433
+ from?: {
4434
+ /** Format: date-time */
4435
+ at: string;
4436
+ gameId: string;
4437
+ };
4438
+ to?: {
4439
+ /** Format: date-time */
4440
+ at: string;
4441
+ gameId: string;
4442
+ };
4443
+ };
4444
+ };
4445
+ time: {
4446
+ cur: {
4447
+ v: number;
4448
+ };
4449
+ max: {
4450
+ v: number;
4451
+ from?: {
4452
+ /** Format: date-time */
4453
+ at: string;
4454
+ gameId: string;
4455
+ };
4456
+ to?: {
4457
+ /** Format: date-time */
4458
+ at: string;
4459
+ gameId: string;
4460
+ };
4461
+ };
4462
+ };
4463
+ /** Format: date-time */
4464
+ lastDate?: string;
4465
+ };
4466
+ };
4467
+ };
4529
4468
  UserActivityScore: {
4530
4469
  win: number;
4531
4470
  loss: number;
@@ -5530,12 +5469,41 @@ export interface components {
5530
5469
  | "simul"
5531
5470
  | "relay"
5532
5471
  | "pool"
5472
+ | "arena"
5533
5473
  | "swiss";
5534
5474
  Variant: {
5535
5475
  key: components["schemas"]["VariantKey"];
5536
5476
  name: string;
5537
5477
  short?: string;
5538
5478
  };
5479
+ GameStatus: {
5480
+ id: components["schemas"]["GameStatusId"];
5481
+ name: components["schemas"]["GameStatusName"];
5482
+ };
5483
+ MoveStreamEntry:
5484
+ | {
5485
+ id: string;
5486
+ variant?: components["schemas"]["Variant"];
5487
+ speed?: components["schemas"]["Speed"];
5488
+ perf?: components["schemas"]["PerfType"];
5489
+ rated?: boolean;
5490
+ initialFen?: string;
5491
+ fen?: string;
5492
+ player?: components["schemas"]["GameColor"];
5493
+ turns?: number;
5494
+ startedAtTurn?: number;
5495
+ source?: components["schemas"]["GameSource"];
5496
+ status?: components["schemas"]["GameStatus"];
5497
+ createdAt?: number;
5498
+ lastMove?: string;
5499
+ players?: components["schemas"]["GamePlayers"];
5500
+ }
5501
+ | {
5502
+ fen: string;
5503
+ lm?: string;
5504
+ wc: number;
5505
+ bc: number;
5506
+ };
5539
5507
  /** @example [
5540
5508
  * {
5541
5509
  * "id": "LuGQwhBb",
@@ -5607,7 +5575,7 @@ export interface components {
5607
5575
  * "bc": 177
5608
5576
  * }
5609
5577
  * ] */
5610
- MoveStream: unknown;
5578
+ MoveStream: components["schemas"]["MoveStreamEntry"][];
5611
5579
  TvGame: {
5612
5580
  user: components["schemas"]["LightUser"];
5613
5581
  rating: number;
@@ -5993,7 +5961,7 @@ export interface components {
5993
5961
  * { This chapter will go over the Dragon Variation, a very common variation used by Black and it is the most aggressive variation in the Sicilian defense. }
5994
5962
  * 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 *
5995
5963
  * */
5996
- StudyPgn: unknown;
5964
+ StudyPgn: string;
5997
5965
  /** @example {
5998
5966
  * "chapters": [
5999
5967
  * {
@@ -6359,7 +6327,6 @@ export interface components {
6359
6327
  BroadcastPlayerWithFed: {
6360
6328
  /** @example Hernandez Riera, Jose */
6361
6329
  name: string;
6362
- /** @example FM */
6363
6330
  title?: components["schemas"]["Title"];
6364
6331
  /** @example 2149 */
6365
6332
  rating?: number;
@@ -6725,10 +6692,6 @@ export interface components {
6725
6692
  */
6726
6693
  date?: number;
6727
6694
  };
6728
- GameStatus: {
6729
- id: components["schemas"]["GameStatusId"];
6730
- name: components["schemas"]["GameStatusName"];
6731
- };
6732
6695
  GameEventOpponent:
6733
6696
  | {
6734
6697
  id: string;
@@ -6768,6 +6731,7 @@ export interface components {
6768
6731
  ratingDiff?: number;
6769
6732
  compat?: components["schemas"]["GameCompat"];
6770
6733
  id?: string;
6734
+ tournamentId?: string;
6771
6735
  };
6772
6736
  GameStartEvent: {
6773
6737
  /** @constant */
@@ -6876,12 +6840,13 @@ export interface components {
6876
6840
  color: components["schemas"]["ChallengeColor"];
6877
6841
  finalColor?: components["schemas"]["GameColor"];
6878
6842
  perf: {
6879
- icon?: string;
6880
- name?: string;
6843
+ icon: string;
6844
+ name: string;
6881
6845
  };
6882
6846
  /** @enum {string} */
6883
6847
  direction?: "in" | "out";
6884
6848
  initialFen?: string;
6849
+ rematchOf?: string;
6885
6850
  };
6886
6851
  ChallengeEvent: {
6887
6852
  /** @constant */
@@ -6894,7 +6859,7 @@ export interface components {
6894
6859
  type: "challengeCanceled";
6895
6860
  challenge: components["schemas"]["ChallengeJson"];
6896
6861
  };
6897
- ChallengeDeclinedJson: {
6862
+ ChallengeDeclinedJson: components["schemas"]["ChallengeJson"] & {
6898
6863
  /** @description Human readable, possibly translated reason why the challenge was declined. */
6899
6864
  declineReason: string;
6900
6865
  /**
@@ -6913,7 +6878,7 @@ export interface components {
6913
6878
  | "variant"
6914
6879
  | "nobot"
6915
6880
  | "onlybot";
6916
- } & components["schemas"]["ChallengeJson"];
6881
+ };
6917
6882
  ChallengeDeclinedEvent: {
6918
6883
  /** @constant */
6919
6884
  type: "challengeDeclined";
@@ -7332,8 +7297,7 @@ export interface components {
7332
7297
  };
7333
7298
  OpeningExplorerMastersGame: {
7334
7299
  id: string;
7335
- /** @enum {string|null} */
7336
- winner: "white" | "black" | null;
7300
+ winner: components["schemas"]["GameColor"] | null;
7337
7301
  white: components["schemas"]["OpeningExplorerGamePlayer"];
7338
7302
  black: components["schemas"]["OpeningExplorerGamePlayer"];
7339
7303
  year: number;
@@ -7360,8 +7324,7 @@ export interface components {
7360
7324
  };
7361
7325
  OpeningExplorerLichessGame: {
7362
7326
  id: string;
7363
- /** @enum {string|null} */
7364
- winner: "white" | "black" | null;
7327
+ winner: components["schemas"]["GameColor"] | null;
7365
7328
  speed?: components["schemas"]["Speed"];
7366
7329
  white: components["schemas"]["OpeningExplorerGamePlayer"];
7367
7330
  black: components["schemas"]["OpeningExplorerGamePlayer"];
@@ -7398,8 +7361,7 @@ export interface components {
7398
7361
  };
7399
7362
  OpeningExplorerPlayerGame: {
7400
7363
  id: string;
7401
- /** @enum {string|null} */
7402
- winner: "white" | "black" | null;
7364
+ winner: components["schemas"]["GameColor"] | null;
7403
7365
  speed: components["schemas"]["Speed"];
7404
7366
  /** @enum {string} */
7405
7367
  mode: "rated" | "casual";
@@ -7540,13 +7502,13 @@ export interface components {
7540
7502
  uci: string;
7541
7503
  } & components["schemas"]["OpeningExplorerPlayerGame"])[];
7542
7504
  };
7543
- Move: {
7505
+ TablebaseMove: {
7544
7506
  /** @example h7h8q */
7545
- uci?: string;
7507
+ uci: string;
7546
7508
  /** @example h8=Q+ */
7547
- san?: string;
7509
+ san: string;
7548
7510
  /** @enum {string} */
7549
- category?:
7511
+ category:
7550
7512
  | "loss"
7551
7513
  | "unknown"
7552
7514
  | "syzygy-loss"
@@ -7557,18 +7519,13 @@ export interface components {
7557
7519
  | "maybe-win"
7558
7520
  | "syzygy-win"
7559
7521
  | "win";
7560
- /** @description DTZ50'' with rounding or null if unknown */
7561
7522
  dtz?: null | number;
7562
- /** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
7563
- * */
7564
7523
  precise_dtz?: null | number;
7565
- /** @description Depth to Conversion (experimental) */
7566
7524
  dtc?: null | number;
7567
- /** @description Depth To Mate (only for Standard positions with not more than 5 pieces) */
7568
7525
  dtm?: null | number;
7569
- /** @description Depth To Win (only for Antichess positions with not more than 4 pieces) */
7570
7526
  dtw?: null | number;
7571
7527
  zeroing?: boolean;
7528
+ conversion?: boolean;
7572
7529
  checkmate?: boolean;
7573
7530
  stalemate?: boolean;
7574
7531
  variant_win?: boolean;
@@ -7623,7 +7580,7 @@ export interface components {
7623
7580
  *
7624
7581
  * @enum {string}
7625
7582
  */
7626
- category?:
7583
+ category:
7627
7584
  | "win"
7628
7585
  | "unknown"
7629
7586
  | "syzygy-win"
@@ -7634,16 +7591,21 @@ export interface components {
7634
7591
  | "maybe-loss"
7635
7592
  | "syzygy-loss"
7636
7593
  | "loss";
7637
- /** @description [DTZ50'' with rounding](https://syzygy-tables.info/metrics#dtz) or null
7638
- * if unknown
7594
+ /** @description [DTZ50'' with rounding](https://syzygy-tables.info/metrics#dtz) in plies
7595
+ * (for Standard chess positions with not more than 7 pieces and variant
7596
+ * positions not more than 6 pieces)
7639
7597
  * */
7640
7598
  dtz?: null | number;
7641
- /** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
7599
+ /** @description DTZ50'' in plies, only if guaranteed to not be rounded, or absent if unknown
7642
7600
  * */
7643
7601
  precise_dtz?: null | number;
7644
- /** @description Depth to Conversion: Moves to next capture or promotion (available
7645
- * only for Standard *op1* positions with 8 pieces, i.e., positions where
7646
- * there is at least one pair of opposing pawns)
7602
+ /** @description Experimental Depth to Conversion: Moves to next capture, promotion,
7603
+ * or checkmate. Available for:
7604
+ * * Standard chess positions with 8 pieces, more than one pawn of material
7605
+ * value for each side, and at least one pair of opposing pawns,
7606
+ * short *op1*, if query parameter `dtc` is `auxiliary` or `always`.
7607
+ * * Some standard chess positions with up to 7 pieces, if query parameter
7608
+ * `dtc` is `always`. Work in progress.
7647
7609
  * */
7648
7610
  dtc?: null | number;
7649
7611
  /** @description Depth To Mate: Plies to mate (available only for Standard positions
@@ -7662,7 +7624,7 @@ export interface components {
7662
7624
  variant_loss?: boolean;
7663
7625
  insufficient_material?: boolean;
7664
7626
  /** @description Information about legal moves, best first */
7665
- moves?: components["schemas"]["Move"][];
7627
+ moves: components["schemas"]["TablebaseMove"][];
7666
7628
  };
7667
7629
  };
7668
7630
  responses: never;
@@ -9300,126 +9262,155 @@ export interface operations {
9300
9262
  };
9301
9263
  content: {
9302
9264
  /** @example {
9303
- * "id": "mary",
9304
- * "username": "Mary",
9265
+ * "id": "thibault",
9266
+ * "username": "thibault",
9305
9267
  * "perfs": {
9268
+ * "ultraBullet": {
9269
+ * "games": 3,
9270
+ * "rating": 1688,
9271
+ * "rd": 351,
9272
+ * "prog": 0,
9273
+ * "prov": true
9274
+ * },
9306
9275
  * "bullet": {
9307
- * "games": 19,
9308
- * "rating": 1143,
9309
- * "rd": 59,
9310
- * "prog": 5
9276
+ * "games": 7475,
9277
+ * "rating": 1787,
9278
+ * "rd": 82,
9279
+ * "prog": -6
9311
9280
  * },
9312
9281
  * "blitz": {
9313
- * "games": 10,
9314
- * "rating": 939,
9315
- * "rd": 47,
9316
- * "prog": -1
9282
+ * "games": 11537,
9283
+ * "rating": 1785,
9284
+ * "rd": 53,
9285
+ * "prog": 4
9317
9286
  * },
9318
9287
  * "rapid": {
9319
- * "games": 27,
9320
- * "rating": 1042,
9321
- * "rd": 45,
9322
- * "prog": 6
9288
+ * "games": 873,
9289
+ * "rating": 1746,
9290
+ * "rd": 134,
9291
+ * "prog": -71,
9292
+ * "prov": true
9323
9293
  * },
9324
9294
  * "classical": {
9325
- * "games": 7,
9326
- * "rating": 1059,
9327
- * "rd": 45,
9328
- * "prog": -42
9295
+ * "games": 24,
9296
+ * "rating": 1806,
9297
+ * "rd": 247,
9298
+ * "prog": -5,
9299
+ * "prov": true
9329
9300
  * },
9330
9301
  * "correspondence": {
9331
- * "games": 29,
9332
- * "rating": 1104,
9333
- * "rd": 47,
9334
- * "prog": -41
9302
+ * "games": 377,
9303
+ * "rating": 1942,
9304
+ * "rd": 150,
9305
+ * "prog": -12,
9306
+ * "prov": true
9335
9307
  * },
9336
9308
  * "chess960": {
9337
- * "games": 109,
9338
- * "rating": 1147,
9339
- * "rd": 59,
9340
- * "prog": 38
9309
+ * "games": 348,
9310
+ * "rating": 1551,
9311
+ * "rd": 255,
9312
+ * "prog": 61,
9313
+ * "prov": true
9341
9314
  * },
9342
9315
  * "kingOfTheHill": {
9343
- * "games": 900,
9344
- * "rating": 965,
9345
- * "rd": 46,
9346
- * "prog": 18
9316
+ * "games": 94,
9317
+ * "rating": 1744,
9318
+ * "rd": 276,
9319
+ * "prog": 14,
9320
+ * "prov": true
9347
9321
  * },
9348
9322
  * "threeCheck": {
9349
- * "games": 76,
9350
- * "rating": 999,
9351
- * "rd": 94,
9352
- * "prog": 11
9323
+ * "games": 66,
9324
+ * "rating": 1728,
9325
+ * "rd": 248,
9326
+ * "prog": 132,
9327
+ * "prov": true
9353
9328
  * },
9354
9329
  * "antichess": {
9355
- * "games": 109,
9356
- * "rating": 1100,
9357
- * "rd": 63,
9358
- * "prog": 9
9330
+ * "games": 72,
9331
+ * "rating": 1512,
9332
+ * "rd": 273,
9333
+ * "prog": -20,
9334
+ * "prov": true
9359
9335
  * },
9360
9336
  * "atomic": {
9361
- * "games": 5,
9362
- * "rating": 1030,
9363
- * "rd": 111,
9364
- * "prog": -8,
9337
+ * "games": 99,
9338
+ * "rating": 1633,
9339
+ * "rd": 289,
9340
+ * "prog": 18,
9365
9341
  * "prov": true
9366
9342
  * },
9367
9343
  * "horde": {
9368
- * "games": 455,
9369
- * "rating": 1162,
9370
- * "rd": 48,
9371
- * "prog": -38
9344
+ * "games": 46,
9345
+ * "rating": 1592,
9346
+ * "rd": 270,
9347
+ * "prog": -20,
9348
+ * "prov": true
9349
+ * },
9350
+ * "racingKings": {
9351
+ * "games": 13,
9352
+ * "rating": 1552,
9353
+ * "rd": 321,
9354
+ * "prog": -75,
9355
+ * "prov": true
9372
9356
  * },
9373
9357
  * "crazyhouse": {
9374
- * "games": 12,
9375
- * "rating": 950,
9376
- * "rd": 92,
9377
- * "prog": 36
9358
+ * "games": 50,
9359
+ * "rating": 1567,
9360
+ * "rd": 287,
9361
+ * "prog": -34,
9362
+ * "prov": true
9378
9363
  * },
9379
9364
  * "puzzle": {
9380
- * "games": 48,
9381
- * "rating": 1139,
9382
- * "rd": 45,
9383
- * "prog": -27
9365
+ * "games": 5704,
9366
+ * "rating": 1915,
9367
+ * "rd": 74,
9368
+ * "prog": 0
9369
+ * },
9370
+ * "storm": {
9371
+ * "runs": 44,
9372
+ * "score": 33
9373
+ * },
9374
+ * "racer": {
9375
+ * "runs": 82,
9376
+ * "score": 51
9377
+ * },
9378
+ * "streak": {
9379
+ * "runs": 49,
9380
+ * "score": 33
9384
9381
  * }
9385
9382
  * },
9386
- * "createdAt": 1757270375141,
9383
+ * "flair": "nature.seedling",
9384
+ * "patron": true,
9385
+ * "patronColor": 10,
9386
+ * "verified": true,
9387
+ * "createdAt": 1290415680000,
9387
9388
  * "profile": {
9388
- * "flag": "GI",
9389
- * "location": "Mary City",
9390
- * "bio": "⁠\"Assai bene è trascorsa",
9391
- * "fideRating": 1050,
9392
- * "uscfRating": 1027,
9393
- * "ecfRating": 925,
9394
- * "rcfRating": 901,
9395
- * "cfcRating": 862,
9396
- * "dsbRating": 1237,
9397
- * "links": "https://en.wikipedia.org/wiki/Euler\nhttps://en.wikipedia.org/wiki/Socialism\nhttps://en.wikipedia.org/wiki/Nelson_Mandela"
9389
+ * "bio": "I turn coffee into bugs.",
9390
+ * "realName": "Thibault Duplessis",
9391
+ * "links": "github.com/ornicar\r\nmas.to/@thibault"
9398
9392
  * },
9399
- * "seenAt": 1757340447056,
9393
+ * "seenAt": 1761232630967,
9400
9394
  * "playTime": {
9401
- * "total": 15213,
9402
- * "tv": 0
9395
+ * "total": 6437101,
9396
+ * "tv": 17974
9403
9397
  * },
9404
- * "url": "https://lichess.org/@/Mary",
9398
+ * "url": "https://lichess.org/@/thibault",
9399
+ * "playing": "https://lichess.org/2hkdzX2e/black",
9405
9400
  * "count": {
9406
- * "all": 2047,
9407
- * "rated": 1637,
9408
- * "ai": 0,
9409
- * "draw": 113,
9410
- * "drawH": 113,
9411
- * "loss": 976,
9412
- * "lossH": 976,
9413
- * "win": 958,
9414
- * "winH": 958,
9415
- * "bookmark": 0,
9416
- * "playing": 0,
9417
- * "import": 0,
9418
- * "me": 1
9401
+ * "all": 23451,
9402
+ * "rated": 21088,
9403
+ * "draw": 1028,
9404
+ * "loss": 11200,
9405
+ * "win": 11218,
9406
+ * "bookmark": 79,
9407
+ * "playing": 3,
9408
+ * "import": 73,
9409
+ * "me": 0
9419
9410
  * },
9420
9411
  * "streamer": {
9421
9412
  * "twitch": {
9422
- * "channel": "https://www.twitch.tv/lichessdotorg"
9413
+ * "channel": "https://www.twitch.tv/ornicar2"
9423
9414
  * }
9424
9415
  * },
9425
9416
  * "followable": true,
@@ -9862,62 +9853,198 @@ export interface operations {
9862
9853
  content: {
9863
9854
  /** @example {
9864
9855
  * "user": {
9865
- * "name": "Jose"
9856
+ * "name": "thibault"
9866
9857
  * },
9867
9858
  * "perf": {
9868
9859
  * "glicko": {
9869
- * "rating": 980,
9870
- * "deviation": 95.23
9860
+ * "rating": 1785.99,
9861
+ * "deviation": 53.67
9871
9862
  * },
9872
- * "nb": 158,
9873
- * "progress": 10
9863
+ * "nb": 11537,
9864
+ * "progress": 4
9874
9865
  * },
9875
9866
  * "rank": null,
9876
- * "percentile": 20.3,
9867
+ * "percentile": 75.1,
9877
9868
  * "stat": {
9878
- * "id": "jose/2",
9869
+ * "id": "thibault/2",
9879
9870
  * "userId": {
9880
- * "id": "jose",
9881
- * "name": "Jose",
9871
+ * "id": "thibault",
9872
+ * "name": "thibault",
9882
9873
  * "title": null
9883
9874
  * },
9884
9875
  * "perfType": {
9885
9876
  * "key": "blitz",
9886
9877
  * "name": "Blitz"
9887
9878
  * },
9879
+ * "highest": {
9880
+ * "int": 1970,
9881
+ * "at": "2022-02-23T13:44:54.633Z",
9882
+ * "gameId": "Blpjmhnf"
9883
+ * },
9884
+ * "lowest": {
9885
+ * "int": 1385,
9886
+ * "at": "2015-08-05T10:13:41.326Z",
9887
+ * "gameId": "tgbRykg2"
9888
+ * },
9888
9889
  * "bestWins": {
9889
- * "results": []
9890
+ * "results": [
9891
+ * {
9892
+ * "opRating": 2239,
9893
+ * "opId": {
9894
+ * "id": "aqua21",
9895
+ * "name": "aqua21",
9896
+ * "title": null
9897
+ * },
9898
+ * "at": "2020-02-15T19:13:05.329Z",
9899
+ * "gameId": "UxNJmMXz"
9900
+ * },
9901
+ * {
9902
+ * "opRating": 2163,
9903
+ * "opId": {
9904
+ * "id": "staffan67",
9905
+ * "name": "Staffan67",
9906
+ * "title": null
9907
+ * },
9908
+ * "at": "2022-12-28T10:54:21.597Z",
9909
+ * "gameId": "9IMlwEv1"
9910
+ * },
9911
+ * {
9912
+ * "opRating": 2120,
9913
+ * "opId": {
9914
+ * "id": "heissenberger",
9915
+ * "name": "Heissenberger",
9916
+ * "title": null
9917
+ * },
9918
+ * "at": "2021-10-25T08:26:27.155Z",
9919
+ * "gameId": "2buPRuV8"
9920
+ * },
9921
+ * {
9922
+ * "opRating": 2051,
9923
+ * "opId": {
9924
+ * "id": "stas235",
9925
+ * "name": "Stas235",
9926
+ * "title": null
9927
+ * },
9928
+ * "at": "2021-11-06T18:55:53.728Z",
9929
+ * "gameId": "VLxCVzDY"
9930
+ * },
9931
+ * {
9932
+ * "opRating": 2040,
9933
+ * "opId": {
9934
+ * "id": "harryz-77",
9935
+ * "name": "Harryz-77",
9936
+ * "title": null
9937
+ * },
9938
+ * "at": "2021-11-03T17:39:40.181Z",
9939
+ * "gameId": "eCgiYDS7"
9940
+ * }
9941
+ * ]
9890
9942
  * },
9891
9943
  * "worstLosses": {
9892
- * "results": []
9944
+ * "results": [
9945
+ * {
9946
+ * "opRating": 995,
9947
+ * "opId": {
9948
+ * "id": "dahupetitjoueur",
9949
+ * "name": "dahupetitjoueur",
9950
+ * "title": null
9951
+ * },
9952
+ * "at": "2017-04-12T14:31:58.002Z",
9953
+ * "gameId": "7zyddy2c"
9954
+ * },
9955
+ * {
9956
+ * "opRating": 1121,
9957
+ * "opId": {
9958
+ * "id": "tinkugupta1011",
9959
+ * "name": "Tinkugupta1011",
9960
+ * "title": null
9961
+ * },
9962
+ * "at": "2022-10-22T03:36:35.447Z",
9963
+ * "gameId": "CCyyGKmD"
9964
+ * },
9965
+ * {
9966
+ * "opRating": 1146,
9967
+ * "opId": {
9968
+ * "id": "chemkhihabib",
9969
+ * "name": "chemkhihabib",
9970
+ * "title": null
9971
+ * },
9972
+ * "at": "2016-06-01T09:31:09.694Z",
9973
+ * "gameId": "XatMm3RO"
9974
+ * },
9975
+ * {
9976
+ * "opRating": 1166,
9977
+ * "opId": {
9978
+ * "id": "bottios",
9979
+ * "name": "Bottios",
9980
+ * "title": "BOT"
9981
+ * },
9982
+ * "at": "2018-12-14T09:22:52.633Z",
9983
+ * "gameId": "3fke4MHX"
9984
+ * },
9985
+ * {
9986
+ * "opRating": 1182,
9987
+ * "opId": {
9988
+ * "id": "skanerterry",
9989
+ * "name": "skanerterry",
9990
+ * "title": null
9991
+ * },
9992
+ * "at": "2016-06-09T15:32:10.474Z",
9993
+ * "gameId": "n4ViqGlp"
9994
+ * }
9995
+ * ]
9893
9996
  * },
9894
9997
  * "count": {
9895
- * "all": 158,
9896
- * "rated": 120,
9897
- * "win": 69,
9898
- * "loss": 77,
9899
- * "draw": 12,
9900
- * "tour": 85,
9901
- * "berserk": 28,
9902
- * "opAvg": 0.52,
9903
- * "seconds": 47400,
9904
- * "disconnects": 8
9998
+ * "all": 12021,
9999
+ * "rated": 11415,
10000
+ * "win": 5689,
10001
+ * "loss": 5763,
10002
+ * "draw": 569,
10003
+ * "tour": 1587,
10004
+ * "berserk": 49,
10005
+ * "opAvg": 1706.12,
10006
+ * "seconds": 3733379,
10007
+ * "disconnects": 9
9905
10008
  * },
9906
10009
  * "resultStreak": {
9907
10010
  * "win": {
9908
10011
  * "cur": {
9909
- * "v": 0
10012
+ * "v": 2,
10013
+ * "from": {
10014
+ * "at": "2025-09-18T15:31:58.854Z",
10015
+ * "gameId": "gnjoI7dm"
10016
+ * },
10017
+ * "to": {
10018
+ * "at": "2025-10-13T16:31:59.436Z",
10019
+ * "gameId": "7WEM2Hc4"
10020
+ * }
9910
10021
  * },
9911
10022
  * "max": {
9912
- * "v": 4
10023
+ * "v": 11,
10024
+ * "from": {
10025
+ * "at": "2018-10-19T10:02:05.144Z",
10026
+ * "gameId": "ycmyqK6e"
10027
+ * },
10028
+ * "to": {
10029
+ * "at": "2018-10-19T12:25:31.868Z",
10030
+ * "gameId": "3PwQXIBN"
10031
+ * }
9913
10032
  * }
9914
10033
  * },
9915
10034
  * "loss": {
9916
10035
  * "cur": {
9917
- * "v": 1
10036
+ * "v": 0
9918
10037
  * },
9919
10038
  * "max": {
9920
- * "v": 3
10039
+ * "v": 19,
10040
+ * "from": {
10041
+ * "at": "2018-03-09T23:54:54.771Z",
10042
+ * "gameId": "iAJe1M8f"
10043
+ * },
10044
+ * "to": {
10045
+ * "at": "2018-03-16T20:52:03.611Z",
10046
+ * "gameId": "7CZ1SEF5"
10047
+ * }
9921
10048
  * }
9922
10049
  * }
9923
10050
  * },
@@ -9927,17 +10054,34 @@ export interface operations {
9927
10054
  * "v": 0
9928
10055
  * },
9929
10056
  * "max": {
9930
- * "v": 1
10057
+ * "v": 115,
10058
+ * "from": {
10059
+ * "at": "2024-10-18T11:32:12.142Z",
10060
+ * "gameId": "l819pRNp"
10061
+ * },
10062
+ * "to": {
10063
+ * "at": "2024-10-18T20:54:30.256Z",
10064
+ * "gameId": "1HeDeGbe"
10065
+ * }
9931
10066
  * }
9932
10067
  * },
9933
10068
  * "time": {
9934
10069
  * "cur": {
9935
- * "v": 3
10070
+ * "v": 0
9936
10071
  * },
9937
10072
  * "max": {
9938
- * "v": 5
10073
+ * "v": 23231,
10074
+ * "from": {
10075
+ * "at": "2024-10-18T11:32:12.142Z",
10076
+ * "gameId": "l819pRNp"
10077
+ * },
10078
+ * "to": {
10079
+ * "at": "2024-10-18T20:54:30.256Z",
10080
+ * "gameId": "1HeDeGbe"
10081
+ * }
9939
10082
  * }
9940
- * }
10083
+ * },
10084
+ * "lastDate": "2025-10-13T16:31:59.436Z"
9941
10085
  * }
9942
10086
  * }
9943
10087
  * } */
@@ -39082,11 +39226,11 @@ export interface operations {
39082
39226
  query: {
39083
39227
  /** @description FEN of the position. Underscores allowed. */
39084
39228
  fen: string;
39085
- /** @description When to query the op1 tablebase. The current default is *never*.
39086
- * It is eventually going to be *auxiliary*, i.e., only when the position
39087
- * is not covered by one of the other tablebases.
39229
+ /** @description When to query the tablebase for `dtc` values. The current default
39230
+ * is `never`. It is eventually going to be `auxiliary`, i.e., only when
39231
+ * the position is not covered by one of the other tablebases.
39088
39232
  * */
39089
- op1?: "never" | "auxiliary" | "always";
39233
+ dtc?: "never" | "auxiliary" | "always";
39090
39234
  };
39091
39235
  header?: never;
39092
39236
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.90",
3
+ "version": "2.0.92",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",