@lichess-org/types 2.0.90 → 2.0.91

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 +144 -114
  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;
@@ -6359,7 +6360,6 @@ export interface components {
6359
6360
  BroadcastPlayerWithFed: {
6360
6361
  /** @example Hernandez Riera, Jose */
6361
6362
  name: string;
6362
- /** @example FM */
6363
6363
  title?: components["schemas"]["Title"];
6364
6364
  /** @example 2149 */
6365
6365
  rating?: number;
@@ -6876,12 +6876,13 @@ export interface components {
6876
6876
  color: components["schemas"]["ChallengeColor"];
6877
6877
  finalColor?: components["schemas"]["GameColor"];
6878
6878
  perf: {
6879
- icon?: string;
6880
- name?: string;
6879
+ icon: string;
6880
+ name: string;
6881
6881
  };
6882
6882
  /** @enum {string} */
6883
6883
  direction?: "in" | "out";
6884
6884
  initialFen?: string;
6885
+ rematchOf?: string;
6885
6886
  };
6886
6887
  ChallengeEvent: {
6887
6888
  /** @constant */
@@ -6894,7 +6895,7 @@ export interface components {
6894
6895
  type: "challengeCanceled";
6895
6896
  challenge: components["schemas"]["ChallengeJson"];
6896
6897
  };
6897
- ChallengeDeclinedJson: {
6898
+ ChallengeDeclinedJson: components["schemas"]["ChallengeJson"] & {
6898
6899
  /** @description Human readable, possibly translated reason why the challenge was declined. */
6899
6900
  declineReason: string;
6900
6901
  /**
@@ -6913,7 +6914,7 @@ export interface components {
6913
6914
  | "variant"
6914
6915
  | "nobot"
6915
6916
  | "onlybot";
6916
- } & components["schemas"]["ChallengeJson"];
6917
+ };
6917
6918
  ChallengeDeclinedEvent: {
6918
6919
  /** @constant */
6919
6920
  type: "challengeDeclined";
@@ -7540,13 +7541,13 @@ export interface components {
7540
7541
  uci: string;
7541
7542
  } & components["schemas"]["OpeningExplorerPlayerGame"])[];
7542
7543
  };
7543
- Move: {
7544
+ TablebaseMove: {
7544
7545
  /** @example h7h8q */
7545
- uci?: string;
7546
+ uci: string;
7546
7547
  /** @example h8=Q+ */
7547
- san?: string;
7548
+ san: string;
7548
7549
  /** @enum {string} */
7549
- category?:
7550
+ category:
7550
7551
  | "loss"
7551
7552
  | "unknown"
7552
7553
  | "syzygy-loss"
@@ -7557,18 +7558,13 @@ export interface components {
7557
7558
  | "maybe-win"
7558
7559
  | "syzygy-win"
7559
7560
  | "win";
7560
- /** @description DTZ50'' with rounding or null if unknown */
7561
7561
  dtz?: null | number;
7562
- /** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
7563
- * */
7564
7562
  precise_dtz?: null | number;
7565
- /** @description Depth to Conversion (experimental) */
7566
7563
  dtc?: null | number;
7567
- /** @description Depth To Mate (only for Standard positions with not more than 5 pieces) */
7568
7564
  dtm?: null | number;
7569
- /** @description Depth To Win (only for Antichess positions with not more than 4 pieces) */
7570
7565
  dtw?: null | number;
7571
7566
  zeroing?: boolean;
7567
+ conversion?: boolean;
7572
7568
  checkmate?: boolean;
7573
7569
  stalemate?: boolean;
7574
7570
  variant_win?: boolean;
@@ -7623,7 +7619,7 @@ export interface components {
7623
7619
  *
7624
7620
  * @enum {string}
7625
7621
  */
7626
- category?:
7622
+ category:
7627
7623
  | "win"
7628
7624
  | "unknown"
7629
7625
  | "syzygy-win"
@@ -7634,16 +7630,21 @@ export interface components {
7634
7630
  | "maybe-loss"
7635
7631
  | "syzygy-loss"
7636
7632
  | "loss";
7637
- /** @description [DTZ50'' with rounding](https://syzygy-tables.info/metrics#dtz) or null
7638
- * if unknown
7633
+ /** @description [DTZ50'' with rounding](https://syzygy-tables.info/metrics#dtz) in plies
7634
+ * (for Standard chess positions with not more than 7 pieces and variant
7635
+ * positions not more than 6 pieces)
7639
7636
  * */
7640
7637
  dtz?: null | number;
7641
- /** @description DTZ50'' (only if guaranteed to be not rounded) or null if unknown
7638
+ /** @description DTZ50'' in plies, only if guaranteed to not be rounded, or absent if unknown
7642
7639
  * */
7643
7640
  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)
7641
+ /** @description Experimental Depth to Conversion: Moves to next capture, promotion,
7642
+ * or checkmate. Available for:
7643
+ * * Standard chess positions with 8 pieces, more than one pawn of material
7644
+ * value for each side, and at least one pair of opposing pawns,
7645
+ * short *op1*, if query parameter `dtc` is `auxiliary` or `always`.
7646
+ * * Some standard chess positions with up to 7 pieces, if query parameter
7647
+ * `dtc` is `always`. Work in progress.
7647
7648
  * */
7648
7649
  dtc?: null | number;
7649
7650
  /** @description Depth To Mate: Plies to mate (available only for Standard positions
@@ -7662,7 +7663,7 @@ export interface components {
7662
7663
  variant_loss?: boolean;
7663
7664
  insufficient_material?: boolean;
7664
7665
  /** @description Information about legal moves, best first */
7665
- moves?: components["schemas"]["Move"][];
7666
+ moves: components["schemas"]["TablebaseMove"][];
7666
7667
  };
7667
7668
  };
7668
7669
  responses: never;
@@ -9300,126 +9301,155 @@ export interface operations {
9300
9301
  };
9301
9302
  content: {
9302
9303
  /** @example {
9303
- * "id": "mary",
9304
- * "username": "Mary",
9304
+ * "id": "thibault",
9305
+ * "username": "thibault",
9305
9306
  * "perfs": {
9307
+ * "ultraBullet": {
9308
+ * "games": 3,
9309
+ * "rating": 1688,
9310
+ * "rd": 351,
9311
+ * "prog": 0,
9312
+ * "prov": true
9313
+ * },
9306
9314
  * "bullet": {
9307
- * "games": 19,
9308
- * "rating": 1143,
9309
- * "rd": 59,
9310
- * "prog": 5
9315
+ * "games": 7475,
9316
+ * "rating": 1787,
9317
+ * "rd": 82,
9318
+ * "prog": -6
9311
9319
  * },
9312
9320
  * "blitz": {
9313
- * "games": 10,
9314
- * "rating": 939,
9315
- * "rd": 47,
9316
- * "prog": -1
9321
+ * "games": 11537,
9322
+ * "rating": 1785,
9323
+ * "rd": 53,
9324
+ * "prog": 4
9317
9325
  * },
9318
9326
  * "rapid": {
9319
- * "games": 27,
9320
- * "rating": 1042,
9321
- * "rd": 45,
9322
- * "prog": 6
9327
+ * "games": 873,
9328
+ * "rating": 1746,
9329
+ * "rd": 134,
9330
+ * "prog": -71,
9331
+ * "prov": true
9323
9332
  * },
9324
9333
  * "classical": {
9325
- * "games": 7,
9326
- * "rating": 1059,
9327
- * "rd": 45,
9328
- * "prog": -42
9334
+ * "games": 24,
9335
+ * "rating": 1806,
9336
+ * "rd": 247,
9337
+ * "prog": -5,
9338
+ * "prov": true
9329
9339
  * },
9330
9340
  * "correspondence": {
9331
- * "games": 29,
9332
- * "rating": 1104,
9333
- * "rd": 47,
9334
- * "prog": -41
9341
+ * "games": 377,
9342
+ * "rating": 1942,
9343
+ * "rd": 150,
9344
+ * "prog": -12,
9345
+ * "prov": true
9335
9346
  * },
9336
9347
  * "chess960": {
9337
- * "games": 109,
9338
- * "rating": 1147,
9339
- * "rd": 59,
9340
- * "prog": 38
9348
+ * "games": 348,
9349
+ * "rating": 1551,
9350
+ * "rd": 255,
9351
+ * "prog": 61,
9352
+ * "prov": true
9341
9353
  * },
9342
9354
  * "kingOfTheHill": {
9343
- * "games": 900,
9344
- * "rating": 965,
9345
- * "rd": 46,
9346
- * "prog": 18
9355
+ * "games": 94,
9356
+ * "rating": 1744,
9357
+ * "rd": 276,
9358
+ * "prog": 14,
9359
+ * "prov": true
9347
9360
  * },
9348
9361
  * "threeCheck": {
9349
- * "games": 76,
9350
- * "rating": 999,
9351
- * "rd": 94,
9352
- * "prog": 11
9362
+ * "games": 66,
9363
+ * "rating": 1728,
9364
+ * "rd": 248,
9365
+ * "prog": 132,
9366
+ * "prov": true
9353
9367
  * },
9354
9368
  * "antichess": {
9355
- * "games": 109,
9356
- * "rating": 1100,
9357
- * "rd": 63,
9358
- * "prog": 9
9369
+ * "games": 72,
9370
+ * "rating": 1512,
9371
+ * "rd": 273,
9372
+ * "prog": -20,
9373
+ * "prov": true
9359
9374
  * },
9360
9375
  * "atomic": {
9361
- * "games": 5,
9362
- * "rating": 1030,
9363
- * "rd": 111,
9364
- * "prog": -8,
9376
+ * "games": 99,
9377
+ * "rating": 1633,
9378
+ * "rd": 289,
9379
+ * "prog": 18,
9365
9380
  * "prov": true
9366
9381
  * },
9367
9382
  * "horde": {
9368
- * "games": 455,
9369
- * "rating": 1162,
9370
- * "rd": 48,
9371
- * "prog": -38
9383
+ * "games": 46,
9384
+ * "rating": 1592,
9385
+ * "rd": 270,
9386
+ * "prog": -20,
9387
+ * "prov": true
9388
+ * },
9389
+ * "racingKings": {
9390
+ * "games": 13,
9391
+ * "rating": 1552,
9392
+ * "rd": 321,
9393
+ * "prog": -75,
9394
+ * "prov": true
9372
9395
  * },
9373
9396
  * "crazyhouse": {
9374
- * "games": 12,
9375
- * "rating": 950,
9376
- * "rd": 92,
9377
- * "prog": 36
9397
+ * "games": 50,
9398
+ * "rating": 1567,
9399
+ * "rd": 287,
9400
+ * "prog": -34,
9401
+ * "prov": true
9378
9402
  * },
9379
9403
  * "puzzle": {
9380
- * "games": 48,
9381
- * "rating": 1139,
9382
- * "rd": 45,
9383
- * "prog": -27
9404
+ * "games": 5704,
9405
+ * "rating": 1915,
9406
+ * "rd": 74,
9407
+ * "prog": 0
9408
+ * },
9409
+ * "storm": {
9410
+ * "runs": 44,
9411
+ * "score": 33
9412
+ * },
9413
+ * "racer": {
9414
+ * "runs": 82,
9415
+ * "score": 51
9416
+ * },
9417
+ * "streak": {
9418
+ * "runs": 49,
9419
+ * "score": 33
9384
9420
  * }
9385
9421
  * },
9386
- * "createdAt": 1757270375141,
9422
+ * "flair": "nature.seedling",
9423
+ * "patron": true,
9424
+ * "patronColor": 10,
9425
+ * "verified": true,
9426
+ * "createdAt": 1290415680000,
9387
9427
  * "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"
9428
+ * "bio": "I turn coffee into bugs.",
9429
+ * "realName": "Thibault Duplessis",
9430
+ * "links": "github.com/ornicar\r\nmas.to/@thibault"
9398
9431
  * },
9399
- * "seenAt": 1757340447056,
9432
+ * "seenAt": 1761232630967,
9400
9433
  * "playTime": {
9401
- * "total": 15213,
9402
- * "tv": 0
9434
+ * "total": 6437101,
9435
+ * "tv": 17974
9403
9436
  * },
9404
- * "url": "https://lichess.org/@/Mary",
9437
+ * "url": "https://lichess.org/@/thibault",
9438
+ * "playing": "https://lichess.org/2hkdzX2e/black",
9405
9439
  * "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
9440
+ * "all": 23451,
9441
+ * "rated": 21088,
9442
+ * "draw": 1028,
9443
+ * "loss": 11200,
9444
+ * "win": 11218,
9445
+ * "bookmark": 79,
9446
+ * "playing": 3,
9447
+ * "import": 73,
9448
+ * "me": 0
9419
9449
  * },
9420
9450
  * "streamer": {
9421
9451
  * "twitch": {
9422
- * "channel": "https://www.twitch.tv/lichessdotorg"
9452
+ * "channel": "https://www.twitch.tv/ornicar2"
9423
9453
  * }
9424
9454
  * },
9425
9455
  * "followable": true,
@@ -39082,11 +39112,11 @@ export interface operations {
39082
39112
  query: {
39083
39113
  /** @description FEN of the position. Underscores allowed. */
39084
39114
  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.
39115
+ /** @description When to query the tablebase for `dtc` values. The current default
39116
+ * is `never`. It is eventually going to be `auxiliary`, i.e., only when
39117
+ * the position is not covered by one of the other tablebases.
39088
39118
  * */
39089
- op1?: "never" | "auxiliary" | "always";
39119
+ dtc?: "never" | "auxiliary" | "always";
39090
39120
  };
39091
39121
  header?: never;
39092
39122
  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.91",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",