@lichess-org/types 2.0.14 → 2.0.15
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 +44 -28
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -5144,7 +5144,10 @@ export interface components {
|
|
|
5144
5144
|
name?: string;
|
|
5145
5145
|
/** @example rnbqkbnr/ppp2ppp/3p4/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - */
|
|
5146
5146
|
fen?: string;
|
|
5147
|
-
/**
|
|
5147
|
+
/**
|
|
5148
|
+
* Format: uri
|
|
5149
|
+
* @example https://lichess.org/opening/Philidor_Defense
|
|
5150
|
+
*/
|
|
5148
5151
|
url?: string;
|
|
5149
5152
|
}
|
|
5150
5153
|
| {
|
|
@@ -5720,11 +5723,13 @@ export interface components {
|
|
|
5720
5723
|
};
|
|
5721
5724
|
/** @description Used to designate featured tournaments on Lichess */
|
|
5722
5725
|
tier?: number;
|
|
5726
|
+
/** Format: uri */
|
|
5723
5727
|
image?: string;
|
|
5724
5728
|
/** @description Full tournament description in markdown format, or in HTML if the html=1 query parameter is set. */
|
|
5725
5729
|
description?: string;
|
|
5726
5730
|
leaderboard?: boolean;
|
|
5727
5731
|
teamTable?: boolean;
|
|
5732
|
+
/** Format: uri */
|
|
5728
5733
|
url: string;
|
|
5729
5734
|
};
|
|
5730
5735
|
BroadcastGroupTour: {
|
|
@@ -5747,6 +5752,7 @@ export interface components {
|
|
|
5747
5752
|
/** @description The start date/time is unknown and the round will start automatically when the previous round completes */
|
|
5748
5753
|
startsAfterPrevious?: boolean;
|
|
5749
5754
|
finished?: boolean;
|
|
5755
|
+
/** Format: uri */
|
|
5750
5756
|
url: string;
|
|
5751
5757
|
/** Format: int64 */
|
|
5752
5758
|
delay?: number;
|
|
@@ -5927,32 +5933,6 @@ export interface components {
|
|
|
5927
5933
|
* Example: `Round 1`
|
|
5928
5934
|
* */
|
|
5929
5935
|
name: string;
|
|
5930
|
-
/** @description URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
|
|
5931
|
-
*
|
|
5932
|
-
* Example:
|
|
5933
|
-
* ```txt
|
|
5934
|
-
* https://myserver.org/myevent/round-10/games.pgn
|
|
5935
|
-
* ```
|
|
5936
|
-
*
|
|
5937
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5938
|
-
* */
|
|
5939
|
-
syncUrl?: string;
|
|
5940
|
-
/** @description URLs that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
|
|
5941
|
-
*
|
|
5942
|
-
* Example:
|
|
5943
|
-
* ```txt
|
|
5944
|
-
* https://myserver.org/myevent/round-10/game-1.pgn
|
|
5945
|
-
* https://myserver.org/myevent/round-10/game-2.pgn
|
|
5946
|
-
* ```
|
|
5947
|
-
*
|
|
5948
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5949
|
-
* */
|
|
5950
|
-
syncUrls?: string;
|
|
5951
|
-
/** @description Lichess game IDs - Up to 64 Lichess game IDs, separated by spaces.
|
|
5952
|
-
*
|
|
5953
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5954
|
-
* */
|
|
5955
|
-
syncIds?: string;
|
|
5956
5936
|
/** @description Filter games by round number
|
|
5957
5937
|
*
|
|
5958
5938
|
* Optional, only keep games from the source that match a round number.
|
|
@@ -6004,7 +5984,41 @@ export interface components {
|
|
|
6004
5984
|
/** @description (Only for Admins) Waiting time for each poll.
|
|
6005
5985
|
* */
|
|
6006
5986
|
period?: number;
|
|
6007
|
-
}
|
|
5987
|
+
} & (
|
|
5988
|
+
| Record<string, never>
|
|
5989
|
+
| {
|
|
5990
|
+
/**
|
|
5991
|
+
* Format: uri
|
|
5992
|
+
* @description URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
|
|
5993
|
+
*
|
|
5994
|
+
* Example:
|
|
5995
|
+
* ```txt
|
|
5996
|
+
* https://myserver.org/myevent/round-10/games.pgn
|
|
5997
|
+
* ```
|
|
5998
|
+
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
5999
|
+
*
|
|
6000
|
+
*/
|
|
6001
|
+
syncUrl?: string;
|
|
6002
|
+
}
|
|
6003
|
+
| {
|
|
6004
|
+
/** @description URLs that Lichess will poll to get updates about the games, separated by newlines. They must be publicly accessible from the Internet.
|
|
6005
|
+
*
|
|
6006
|
+
* Example:
|
|
6007
|
+
* ```txt
|
|
6008
|
+
* https://myserver.org/myevent/round-10/game-1.pgn
|
|
6009
|
+
* https://myserver.org/myevent/round-10/game-2.pgn
|
|
6010
|
+
* ```
|
|
6011
|
+
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
6012
|
+
* */
|
|
6013
|
+
syncUrls?: string;
|
|
6014
|
+
}
|
|
6015
|
+
| {
|
|
6016
|
+
/** @description Lichess game IDs - Up to 64 Lichess game IDs, separated by spaces.
|
|
6017
|
+
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
6018
|
+
* */
|
|
6019
|
+
syncIds?: string;
|
|
6020
|
+
}
|
|
6021
|
+
);
|
|
6008
6022
|
BroadcastRoundStudyInfo: {
|
|
6009
6023
|
/** @description Whether the currently authenticated user has permission to update the study */
|
|
6010
6024
|
writeable?: boolean;
|
|
@@ -6500,6 +6514,7 @@ export interface components {
|
|
|
6500
6514
|
* } */
|
|
6501
6515
|
ChallengeJson: {
|
|
6502
6516
|
id: string;
|
|
6517
|
+
/** Format: uri */
|
|
6503
6518
|
url: string;
|
|
6504
6519
|
/** @enum {string} */
|
|
6505
6520
|
status: "created" | "offline" | "canceled" | "declined" | "accepted";
|
|
@@ -6833,6 +6848,7 @@ export interface components {
|
|
|
6833
6848
|
* } */
|
|
6834
6849
|
ChallengeOpenJson: {
|
|
6835
6850
|
id: string;
|
|
6851
|
+
/** Format: uri */
|
|
6836
6852
|
url: string;
|
|
6837
6853
|
/** @enum {string} */
|
|
6838
6854
|
status: "created" | "offline" | "canceled" | "declined" | "accepted";
|