@lichess-org/types 2.0.81 → 2.0.83

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 +13 -7
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -5557,22 +5557,22 @@ export interface components {
5557
5557
  ArenaPosition:
5558
5558
  | {
5559
5559
  /** @example C41 */
5560
- eco?: string;
5560
+ eco: string;
5561
5561
  /** @example Philidor Defense */
5562
- name?: string;
5562
+ name: string;
5563
5563
  /** @example rnbqkbnr/ppp2ppp/3p4/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - */
5564
- fen?: string;
5564
+ fen: string;
5565
5565
  /**
5566
5566
  * Format: uri
5567
5567
  * @example https://lichess.org/opening/Philidor_Defense
5568
5568
  */
5569
- url?: string;
5569
+ url: string;
5570
5570
  }
5571
5571
  | {
5572
5572
  /** @constant */
5573
- name?: "Custom position";
5573
+ name: "Custom position";
5574
5574
  /** @example rnbq1bnr/ppppkppp/8/4p3/4P3/8/PPPPKPPP/RNBQ1BNR w - - 2 3 */
5575
- fen?: string;
5575
+ fen: string;
5576
5576
  };
5577
5577
  ArenaTournament: {
5578
5578
  id: string;
@@ -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: {
@@ -37642,7 +37648,7 @@ export interface operations {
37642
37648
  content: {
37643
37649
  "application/json": {
37644
37650
  /** @example Dee3uwieZei9ahpaici9bee2yahsai0K */
37645
- providerSecret?: string;
37651
+ providerSecret: string;
37646
37652
  };
37647
37653
  };
37648
37654
  };
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.83",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",