@lichess-org/types 2.0.100 → 2.0.102

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 +8 -2
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -3541,7 +3541,7 @@ export interface paths {
3541
3541
  /**
3542
3542
  * Get cloud evaluation of a position.
3543
3543
  * @description Get the cached evaluation of a position, if available.
3544
- * Opening positions have more chances of being available. There are about 15 million positions in the database.
3544
+ * Opening positions have more chances of being available. There are about 320 million positions in the database.
3545
3545
  * Up to 5 variations may be available. Variants are supported.
3546
3546
  * Use this endpoint to fetch a few positions here and there.
3547
3547
  * If you want to download a lot of positions, [get the full list](https://database.lichess.org/#evals) from our exported database.
@@ -8522,7 +8522,13 @@ export interface operations {
8522
8522
  /** @description Sort order of the games. */
8523
8523
  sort?: "dateAsc" | "dateDesc";
8524
8524
  };
8525
- header?: never;
8525
+ header?: {
8526
+ /** @description Specify the desired response format.
8527
+ * Use `application/x-chess-pgn` to get the games in PGN format.
8528
+ * Use `application/x-ndjson` to get the games in ndjson format.
8529
+ * */
8530
+ Accept?: "application/x-chess-pgn" | "application/x-ndjson";
8531
+ };
8526
8532
  path: {
8527
8533
  /** @description The user name. */
8528
8534
  username: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.100",
3
+ "version": "2.0.102",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",