@lichess-org/types 2.0.88 → 2.0.89

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 +17 -17
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -4772,7 +4772,7 @@ export interface components {
4772
4772
  * "error": "Not found."
4773
4773
  * } */
4774
4774
  NotFound: {
4775
- error?: string;
4775
+ error: string;
4776
4776
  };
4777
4777
  UserPreferences: {
4778
4778
  dark?: boolean;
@@ -4911,7 +4911,7 @@ export interface components {
4911
4911
  sayGG?: 0 | 1 | 2;
4912
4912
  };
4913
4913
  Ok: {
4914
- ok?: boolean;
4914
+ ok: boolean;
4915
4915
  };
4916
4916
  TimelineEntryFollow: {
4917
4917
  /** @enum {string} */
@@ -5726,9 +5726,9 @@ export interface components {
5726
5726
  winner?: components["schemas"]["LightUser"];
5727
5727
  };
5728
5728
  ArenaTournaments: {
5729
- created?: components["schemas"]["ArenaTournament"][];
5730
- started?: components["schemas"]["ArenaTournament"][];
5731
- finished?: components["schemas"]["ArenaTournament"][];
5729
+ created: components["schemas"]["ArenaTournament"][];
5730
+ started: components["schemas"]["ArenaTournament"][];
5731
+ finished: components["schemas"]["ArenaTournament"][];
5732
5732
  };
5733
5733
  /**
5734
5734
  * @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.
@@ -5881,7 +5881,7 @@ export interface components {
5881
5881
  * } */
5882
5882
  Error: {
5883
5883
  /** @description The cause of the error. */
5884
- error?: string;
5884
+ error: string;
5885
5885
  };
5886
5886
  /** @example {
5887
5887
  * "games": 10,
@@ -5896,8 +5896,8 @@ export interface components {
5896
5896
  performance?: number;
5897
5897
  };
5898
5898
  ArenaTournamentPlayed: {
5899
- tournament?: components["schemas"]["ArenaTournament"];
5900
- player?: components["schemas"]["ArenaTournamentPlayer"];
5899
+ tournament: components["schemas"]["ArenaTournament"];
5900
+ player: components["schemas"]["ArenaTournamentPlayer"];
5901
5901
  };
5902
5902
  /**
5903
5903
  * @description Custom initial position (in FEN). Variant must be standard and the game cannot be rated.
@@ -6739,13 +6739,13 @@ export interface components {
6739
6739
  };
6740
6740
  GameStartEvent: {
6741
6741
  /** @constant */
6742
- type?: "gameStart";
6743
- game?: components["schemas"]["GameEventInfo"];
6742
+ type: "gameStart";
6743
+ game: components["schemas"]["GameEventInfo"];
6744
6744
  };
6745
6745
  GameFinishEvent: {
6746
6746
  /** @constant */
6747
- type?: "gameFinish";
6748
- game?: components["schemas"]["GameEventInfo"];
6747
+ type: "gameFinish";
6748
+ game: components["schemas"]["GameEventInfo"];
6749
6749
  };
6750
6750
  /** @enum {string} */
6751
6751
  ChallengeStatus:
@@ -6858,8 +6858,8 @@ export interface components {
6858
6858
  };
6859
6859
  ChallengeCanceledEvent: {
6860
6860
  /** @constant */
6861
- type?: "challengeCanceled";
6862
- challenge?: components["schemas"]["ChallengeJson"];
6861
+ type: "challengeCanceled";
6862
+ challenge: components["schemas"]["ChallengeJson"];
6863
6863
  };
6864
6864
  ChallengeDeclinedJson: {
6865
6865
  /** @description Human readable, possibly translated reason why the challenge was declined. */
@@ -6883,8 +6883,8 @@ export interface components {
6883
6883
  } & components["schemas"]["ChallengeJson"];
6884
6884
  ChallengeDeclinedEvent: {
6885
6885
  /** @constant */
6886
- type?: "challengeDeclined";
6887
- challenge?: components["schemas"]["ChallengeDeclinedJson"];
6886
+ type: "challengeDeclined";
6887
+ challenge: components["schemas"]["ChallengeDeclinedJson"];
6888
6888
  };
6889
6889
  GameEventPlayer: {
6890
6890
  aiLevel?: number;
@@ -7284,7 +7284,7 @@ export interface components {
7284
7284
  * } */
7285
7285
  OAuthError: {
7286
7286
  /** @description The cause of the error. */
7287
- error?: string;
7287
+ error: string;
7288
7288
  /** @description The reason why the request was rejected. */
7289
7289
  error_description?: string;
7290
7290
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.88",
3
+ "version": "2.0.89",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",