@lichess-org/types 2.0.46 → 2.0.47

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 +21 -22
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -5070,6 +5070,15 @@ export interface components {
5070
5070
  };
5071
5071
  team?: string;
5072
5072
  };
5073
+ GameUsers: {
5074
+ white: components["schemas"]["GameUser"];
5075
+ black: components["schemas"]["GameUser"];
5076
+ };
5077
+ GameOpening: {
5078
+ eco: string;
5079
+ name: string;
5080
+ ply: number;
5081
+ };
5073
5082
  GameMoveAnalysis: {
5074
5083
  /** @description Evaluation in centipawns */
5075
5084
  eval?: number;
@@ -5105,18 +5114,10 @@ export interface components {
5105
5114
  lastMoveAt: number;
5106
5115
  status: components["schemas"]["GameStatusName"];
5107
5116
  source?: string;
5108
- players: {
5109
- white: components["schemas"]["GameUser"];
5110
- black: components["schemas"]["GameUser"];
5111
- };
5117
+ players: components["schemas"]["GameUsers"];
5112
5118
  initialFen?: string;
5113
- /** @enum {string} */
5114
- winner?: "white" | "black";
5115
- opening?: {
5116
- eco?: string;
5117
- name?: string;
5118
- ply?: number;
5119
- };
5119
+ winner?: components["schemas"]["GameColor"];
5120
+ opening?: components["schemas"]["GameOpening"];
5120
5121
  moves?: string;
5121
5122
  pgn?: string;
5122
5123
  daysPerTurn?: number;
@@ -5285,8 +5286,7 @@ export interface components {
5285
5286
  user: components["schemas"]["LightUser"];
5286
5287
  rating: number;
5287
5288
  gameId: string;
5288
- /** @enum {string} */
5289
- color: "white" | "black";
5289
+ color: components["schemas"]["GameColor"];
5290
5290
  };
5291
5291
  TvFeed: {
5292
5292
  /**
@@ -5333,7 +5333,6 @@ export interface components {
5333
5333
  /**
5334
5334
  * @description 10: created, 20: started, 30: finished
5335
5335
  *
5336
- * @example 30
5337
5336
  * @enum {integer}
5338
5337
  */
5339
5338
  ArenaStatus: 10 | 20 | 30;
@@ -5421,12 +5420,13 @@ export interface components {
5421
5420
  * @default rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
5422
5421
  */
5423
5422
  FromPositionFEN: string;
5423
+ Verdict: {
5424
+ condition: string;
5425
+ verdict: string;
5426
+ };
5424
5427
  Verdicts: {
5425
5428
  accepted: boolean;
5426
- list: {
5427
- condition: string;
5428
- verdict: string;
5429
- }[];
5429
+ list: components["schemas"]["Verdict"][];
5430
5430
  };
5431
5431
  ArenaSheet: {
5432
5432
  scores: string;
@@ -5590,7 +5590,6 @@ export interface components {
5590
5590
  SwissFromPositionFEN: string;
5591
5591
  /**
5592
5592
  * @description The current state of the swiss tournament
5593
- * @example created
5594
5593
  * @enum {string}
5595
5594
  */
5596
5595
  SwissStatus: "created" | "started" | "finished";
@@ -6148,7 +6147,7 @@ export interface components {
6148
6147
  title?: components["schemas"]["Title"];
6149
6148
  federation: string;
6150
6149
  year?: number | null;
6151
- inactive?: boolean;
6150
+ inactive?: number;
6152
6151
  standard?: number;
6153
6152
  rapid?: number;
6154
6153
  blitz?: number;
@@ -6492,8 +6491,8 @@ export interface components {
6492
6491
  };
6493
6492
  GameEventPlayer: {
6494
6493
  aiLevel?: number;
6495
- id?: string;
6496
- name?: string;
6494
+ id: string;
6495
+ name: string;
6497
6496
  title?: components["schemas"]["Title"] | null;
6498
6497
  rating?: number;
6499
6498
  provisional?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.46",
3
+ "version": "2.0.47",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",