@lichess-org/types 2.0.93 → 2.0.95

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 +27 -26
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -1681,6 +1681,8 @@ export interface paths {
1681
1681
  * @description Get all incoming, ongoing, and finished official broadcasts.
1682
1682
  * The broadcasts are sorted by created date, most recent first.
1683
1683
  *
1684
+ * If you are authenticated as the user whose broadcasts you are requesting, you will also see your private and unlisted broadcasts.
1685
+ *
1684
1686
  */
1685
1687
  get: operations["broadcastsByUser"];
1686
1688
  put?: never;
@@ -4718,7 +4720,7 @@ export interface components {
4718
4720
  puzzles: {
4719
4721
  /** @description Puzzle ID */
4720
4722
  id: string;
4721
- /** @description FEN position of the puzzle */
4723
+ /** @description X-FEN position of the puzzle */
4722
4724
  fen: string;
4723
4725
  /** @description Solution moves sequence */
4724
4726
  line: string;
@@ -5569,7 +5571,7 @@ export interface components {
5569
5571
  /**
5570
5572
  * @description The type of message.
5571
5573
  * A summary of the game is sent as the first message and when the featured game changes.
5572
- * Subsequent messages are just the FEN, last move, and clocks.
5574
+ * Subsequent messages are just the X-FEN, last move, and clocks.
5573
5575
  *
5574
5576
  * @constant
5575
5577
  */
@@ -5589,7 +5591,7 @@ export interface components {
5589
5591
  /** @description The player's remaining time in seconds */
5590
5592
  seconds: number;
5591
5593
  }[];
5592
- /** @description The FEN of the current position */
5594
+ /** @description The X-FEN of the current position */
5593
5595
  fen: string;
5594
5596
  };
5595
5597
  };
@@ -5598,7 +5600,7 @@ export interface components {
5598
5600
  /**
5599
5601
  * @description The type of message.
5600
5602
  * A summary of the game is sent as the first message and when the featured game changes.
5601
- * Subsequent messages are just the FEN, last move, and clocks.
5603
+ * Subsequent messages are just the X-FEN, last move, and clocks.
5602
5604
  *
5603
5605
  * @constant
5604
5606
  */
@@ -5608,7 +5610,7 @@ export interface components {
5608
5610
  * @description The data of the message
5609
5611
  */
5610
5612
  d: {
5611
- /** @description The FEN of the current position */
5613
+ /** @description The X-FEN of the current position */
5612
5614
  fen: string;
5613
5615
  /** @description The last move in UCI format (King to rook for Chess960-compatible
5614
5616
  * castling notation)
@@ -5713,7 +5715,7 @@ export interface components {
5713
5715
  finished: components["schemas"]["ArenaTournament"][];
5714
5716
  };
5715
5717
  /**
5716
- * @description Custom initial position (in FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.
5718
+ * @description Custom initial position (in X-FEN). Variant must be standard, fromPosition, or chess960 (if a valid 960 starting position), and the game cannot be rated.
5717
5719
  * @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
5718
5720
  */
5719
5721
  FromPositionFEN: string;
@@ -5882,7 +5884,7 @@ export interface components {
5882
5884
  player: components["schemas"]["ArenaTournamentPlayer"];
5883
5885
  };
5884
5886
  /**
5885
- * @description Custom initial position (in FEN). Variant must be standard and the game cannot be rated.
5887
+ * @description Custom initial position (in X-FEN). Variant must be standard and the game cannot be rated.
5886
5888
  * @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
5887
5889
  */
5888
5890
  SwissFromPositionFEN: string;
@@ -6114,6 +6116,7 @@ export interface components {
6114
6116
  };
6115
6117
  BroadcastTop: {
6116
6118
  active?: components["schemas"]["BroadcastWithLastRound"][];
6119
+ /** @deprecated */
6117
6120
  upcoming?: components["schemas"]["BroadcastWithLastRound"][];
6118
6121
  past?: {
6119
6122
  /** @example 4 */
@@ -13378,7 +13381,7 @@ export interface operations {
13378
13381
  * Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
13379
13382
  * */
13380
13383
  literate?: boolean;
13381
- /** @description Include the FEN notation of the last position of the game.
13384
+ /** @description Include the X-FEN notation of the last position of the game.
13382
13385
  * The response type must be set to `application/x-ndjson` by the request `Accept` header.
13383
13386
  * */
13384
13387
  lastFen?: boolean;
@@ -14146,7 +14149,7 @@ export interface operations {
14146
14149
  * Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
14147
14150
  * */
14148
14151
  literate?: boolean;
14149
- /** @description Include the FEN notation of the last position of the game.
14152
+ /** @description Include the X-FEN notation of the last position of the game.
14150
14153
  * The response type must be set to `application/x-ndjson` by the request `Accept` header.
14151
14154
  * */
14152
14155
  lastFen?: boolean;
@@ -30716,7 +30719,7 @@ export interface operations {
30716
30719
  /**
30717
30720
  * @description Clock initial time in seconds
30718
30721
  * @example 300
30719
- * @enum {number}
30722
+ * @enum {integer}
30720
30723
  */
30721
30724
  "clock.limit":
30722
30725
  | 0
@@ -30828,8 +30831,9 @@ export interface operations {
30828
30831
  * - 30 = All Lichess players
30829
30832
  *
30830
30833
  * @default 20
30834
+ * @enum {integer}
30831
30835
  */
30832
- chatFor?: number;
30836
+ chatFor?: 0 | 10 | 20 | 30;
30833
30837
  /**
30834
30838
  * @description Minimum rating to join. Leave empty to let everyone join the tournament.
30835
30839
  * @enum {integer}
@@ -30956,7 +30960,7 @@ export interface operations {
30956
30960
  /**
30957
30961
  * @description Clock initial time in seconds
30958
30962
  * @example 300
30959
- * @enum {number}
30963
+ * @enum {integer}
30960
30964
  */
30961
30965
  "clock.limit":
30962
30966
  | 0
@@ -31061,8 +31065,9 @@ export interface operations {
31061
31065
  * - 30 = All Lichess players
31062
31066
  *
31063
31067
  * @default 20
31068
+ * @enum {integer}
31064
31069
  */
31065
- chatFor?: number;
31070
+ chatFor?: 0 | 10 | 20 | 30;
31066
31071
  /**
31067
31072
  * @description Minimum rating to join. Leave empty to let everyone join the tournament.
31068
31073
  * @enum {integer}
@@ -35877,12 +35882,8 @@ export interface operations {
35877
35882
  * @example 15
35878
35883
  */
35879
35884
  increment: number;
35880
- /**
35881
- * @description The color to play. Better left empty to automatically get 50% white.
35882
- * @default random
35883
- * @enum {string}
35884
- */
35885
- color?: "random" | "white" | "black";
35885
+ /** @description The color to play. Better left empty to automatically get 50% white. */
35886
+ color?: components["schemas"]["ChallengeColor"];
35886
35887
  }
35887
35888
  | {
35888
35889
  /**
@@ -37730,7 +37731,7 @@ export interface operations {
37730
37731
  parameters: {
37731
37732
  query: {
37732
37733
  /**
37733
- * @description FEN of the position
37734
+ * @description X-FEN of the position
37734
37735
  * @example r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 3 3
37735
37736
  */
37736
37737
  fen: string;
@@ -38287,7 +38288,7 @@ export interface operations {
38287
38288
  parameters: {
38288
38289
  query?: {
38289
38290
  /**
38290
- * @description FEN of the root position
38291
+ * @description X-FEN of the root position
38291
38292
  * @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
38292
38293
  */
38293
38294
  fen?: string;
@@ -38607,7 +38608,7 @@ export interface operations {
38607
38608
  /** @description Variant */
38608
38609
  variant?: components["schemas"]["VariantKey"];
38609
38610
  /**
38610
- * @description FEN or EPD of the root position
38611
+ * @description X-FEN or EPD of the root position
38611
38612
  * @example rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2
38612
38613
  */
38613
38614
  fen?: string;
@@ -38981,7 +38982,7 @@ export interface operations {
38981
38982
  /** @description Variant */
38982
38983
  variant?: components["schemas"]["VariantKey"];
38983
38984
  /**
38984
- * @description FEN of the root position
38985
+ * @description X-FEN of the root position
38985
38986
  * @example rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
38986
38987
  */
38987
38988
  fen?: string;
@@ -39187,7 +39188,7 @@ export interface operations {
39187
39188
  tablebaseStandard: {
39188
39189
  parameters: {
39189
39190
  query: {
39190
- /** @description FEN of the position. Underscores allowed. */
39191
+ /** @description X-FEN of the position. Underscores allowed. */
39191
39192
  fen: string;
39192
39193
  /** @description When to query the tablebase for `dtc` values. The current default
39193
39194
  * is `never`. It is eventually going to be `auxiliary`, i.e., only when
@@ -39375,7 +39376,7 @@ export interface operations {
39375
39376
  tablebaseAtomic: {
39376
39377
  parameters: {
39377
39378
  query: {
39378
- /** @description FEN of the position. Underscores allowed. */
39379
+ /** @description X-FEN of the position. Underscores allowed. */
39379
39380
  fen: string;
39380
39381
  };
39381
39382
  header?: never;
@@ -40070,7 +40071,7 @@ export interface operations {
40070
40071
  antichessAtomic: {
40071
40072
  parameters: {
40072
40073
  query: {
40073
- /** @description FEN of the position. Underscores allowed. */
40074
+ /** @description X-FEN of the position. Underscores allowed. */
40074
40075
  fen: string;
40075
40076
  };
40076
40077
  header?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.93",
3
+ "version": "2.0.95",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",