@lichess-org/types 2.0.71 → 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.
- package/lichess-api.d.ts +26 -17
- 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
|
|
@@ -35730,7 +35736,10 @@ export interface operations {
|
|
|
35730
35736
|
};
|
|
35731
35737
|
challengeAccept: {
|
|
35732
35738
|
parameters: {
|
|
35733
|
-
query?:
|
|
35739
|
+
query?: {
|
|
35740
|
+
/** @description Accept challenge as this color (only valid if this is an [open challenge](#challenge/open)) */
|
|
35741
|
+
color?: "white" | "black";
|
|
35742
|
+
};
|
|
35734
35743
|
header?: never;
|
|
35735
35744
|
path: {
|
|
35736
35745
|
challengeId: string;
|