@lichess-org/types 2.0.72 → 2.0.73

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 +22 -16
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -35561,27 +35561,33 @@ export interface operations {
35561
35561
  /** @description Parameters of the challenge */
35562
35562
  requestBody?: {
35563
35563
  content: {
35564
- "application/x-www-form-urlencoded": {
35564
+ "application/x-www-form-urlencoded": (
35565
+ | {
35566
+ /**
35567
+ * @description Clock initial time in seconds. If empty, a correspondence game is created. Valid values are 0, 15, 30, 45, 60, 90, and any multiple of 60 up to 10800 (3 hours).
35568
+ * @example 300
35569
+ */
35570
+ "clock.limit": number;
35571
+ /**
35572
+ * @description Clock increment in seconds. If empty, a correspondence game is created.
35573
+ * @example 1
35574
+ */
35575
+ "clock.increment": number;
35576
+ }
35577
+ | {
35578
+ /**
35579
+ * @description Days per move, for correspondence games. Clock settings must be omitted.
35580
+ * @enum {integer}
35581
+ */
35582
+ days: 1 | 2 | 3 | 5 | 7 | 10 | 14;
35583
+ }
35584
+ | Record<string, never>
35585
+ ) & {
35565
35586
  /**
35566
35587
  * @description Game is rated and impacts players ratings
35567
35588
  * @default false
35568
35589
  */
35569
35590
  rated?: boolean;
35570
- /**
35571
- * @description Clock initial time in seconds. If empty, a correspondence game is created. Valid values are 0, 15, 30, 45, 60, 90, and any multiple of 60 up to 10800 (3 hours).
35572
- * @example 300
35573
- */
35574
- "clock.limit"?: number;
35575
- /**
35576
- * @description Clock increment in seconds. If empty, a correspondence game is created.
35577
- * @example 1
35578
- */
35579
- "clock.increment"?: number;
35580
- /**
35581
- * @description Days per move, for correspondence games. Clock settings must be omitted.
35582
- * @enum {integer}
35583
- */
35584
- days?: 1 | 2 | 3 | 5 | 7 | 10 | 14;
35585
35591
  /**
35586
35592
  * @description Which color you get to play
35587
35593
  * @default random
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.72",
3
+ "version": "2.0.73",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",