@lichess-org/types 2.0.31 → 2.0.32

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 +10 -46
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -4895,9 +4895,6 @@ export interface components {
4895
4895
  moveEvent?: number;
4896
4896
  rookCastle?: number;
4897
4897
  };
4898
- /** @example {
4899
- * "ok": true
4900
- * } */
4901
4898
  Ok: {
4902
4899
  ok?: boolean;
4903
4900
  };
@@ -5886,45 +5883,6 @@ export interface components {
5886
5883
  * @enum {string}
5887
5884
  */
5888
5885
  SwissStatus: "created" | "started" | "finished";
5889
- /** @example {
5890
- * "clock": {
5891
- * "increment": 0,
5892
- * "limit": 600
5893
- * },
5894
- * "createdBy": "lichess",
5895
- * "id": "SuwsOIhE",
5896
- * "name": "Rapid",
5897
- * "nbOngoing": 0,
5898
- * "nbPlayers": 37,
5899
- * "nbRounds": 7,
5900
- * "rated": true,
5901
- * "round": 7,
5902
- * "startsAt": "2024-06-11T02:00:00Z",
5903
- * "stats": {
5904
- * "absences": 133,
5905
- * "averageRating": 1896,
5906
- * "blackWins": 44,
5907
- * "byes": 5,
5908
- * "draws": 6,
5909
- * "games": 53,
5910
- * "whiteWins": 56
5911
- * },
5912
- * "status": "finished",
5913
- * "variant": "standard",
5914
- * "verdicts": {
5915
- * "accepted": true,
5916
- * "list": [
5917
- * {
5918
- * "condition": "≥ 8 Rapid rated games",
5919
- * "verdict": "ok"
5920
- * },
5921
- * {
5922
- * "condition": "Play your games",
5923
- * "verdict": "ok"
5924
- * }
5925
- * ]
5926
- * }
5927
- * } */
5928
5886
  SwissTournament: {
5929
5887
  id: string;
5930
5888
  createdBy: string;
@@ -5940,7 +5898,7 @@ export interface components {
5940
5898
  nbPlayers: number;
5941
5899
  nbOngoing: number;
5942
5900
  status: components["schemas"]["SwissStatus"];
5943
- stats: {
5901
+ stats?: {
5944
5902
  games: number;
5945
5903
  whiteWins: number;
5946
5904
  blackWins: number;
@@ -5951,6 +5909,12 @@ export interface components {
5951
5909
  };
5952
5910
  rated: boolean;
5953
5911
  verdicts: components["schemas"]["Verdicts"];
5912
+ nextRound?: {
5913
+ /** Format: date-time */
5914
+ at?: string;
5915
+ /** @description The number of seconds until the next round starts. */
5916
+ in?: number;
5917
+ };
5954
5918
  };
5955
5919
  /** @example {
5956
5920
  * "error": "This user cannot edit this swiss"
@@ -6124,6 +6088,7 @@ export interface components {
6124
6088
  };
6125
6089
  BroadcastTop: {
6126
6090
  active?: components["schemas"]["BroadcastWithLastRound"][];
6091
+ upcoming?: components["schemas"]["BroadcastWithLastRound"][];
6127
6092
  past?: {
6128
6093
  /** @example 4 */
6129
6094
  currentPage?: number;
@@ -6138,7 +6103,6 @@ export interface components {
6138
6103
  };
6139
6104
  BroadcastByUser: {
6140
6105
  tour: components["schemas"]["BroadcastTour"];
6141
- round: components["schemas"]["BroadcastRoundInfo"];
6142
6106
  };
6143
6107
  BroadcastForm: {
6144
6108
  /** @description Name of the broadcast tournament.
@@ -10802,7 +10766,7 @@ export interface operations {
10802
10766
  [name: string]: unknown;
10803
10767
  };
10804
10768
  content: {
10805
- "application/nd-json": components["schemas"]["SwissTournament"];
10769
+ "application/x-ndjson": components["schemas"]["SwissTournament"];
10806
10770
  };
10807
10771
  };
10808
10772
  };
@@ -14478,7 +14442,7 @@ export interface operations {
14478
14442
  [name: string]: unknown;
14479
14443
  };
14480
14444
  content: {
14481
- "application/nd-json": components["schemas"]["OpeningExplorerPlayer"];
14445
+ "application/x-ndjson": components["schemas"]["OpeningExplorerPlayer"];
14482
14446
  };
14483
14447
  };
14484
14448
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.31",
3
+ "version": "2.0.32",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",