@lichess-org/types 2.0.81 → 2.0.82

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 +6 -0
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -10223,6 +10223,8 @@ export interface operations {
10223
10223
  angle?: string;
10224
10224
  /** @description The desired puzzle difficulty, relative to the authenticated user puzzle rating, or 1500 if anonymous. */
10225
10225
  difficulty?: "easiest" | "easier" | "normal" | "harder" | "hardest";
10226
+ /** @description The color to play. Better left empty to automatically get 50% white. */
10227
+ color?: "white" | "black";
10226
10228
  };
10227
10229
  header?: never;
10228
10230
  path?: never;
@@ -10297,6 +10299,10 @@ export interface operations {
10297
10299
  /** @description How many puzzles to fetch. Just set it to `1` if you only need one puzzle.
10298
10300
  * */
10299
10301
  nb?: number;
10302
+ /** @description The color to play. Better left empty to automatically get 50% white.
10303
+ * Currently only works when `nb=1`.
10304
+ * */
10305
+ color?: "white" | "black";
10300
10306
  };
10301
10307
  header?: never;
10302
10308
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.81",
3
+ "version": "2.0.82",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",