@lichess-org/types 2.0.17 → 2.0.18

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 +60 -8
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -3834,7 +3834,7 @@ export interface components {
3834
3834
  */
3835
3835
  dsbRating?: number;
3836
3836
  /** @example github.com/ornicar
3837
- * twitter.com/ornicar */
3837
+ * mas.to/@thibault */
3838
3838
  links?: string;
3839
3839
  };
3840
3840
  PlayTime: {
@@ -5710,19 +5710,60 @@ export interface components {
5710
5710
  /** @example {
5711
5711
  * "chapters": [
5712
5712
  * {
5713
- * "id": "WTvnkWAL",
5714
- * "name": "Game 2"
5713
+ * "id": "iBjmYBya",
5714
+ * "name": "test 2",
5715
+ * "players": [
5716
+ * {
5717
+ * "name": "Carlsen, Magnus",
5718
+ * "rating": 2837
5719
+ * },
5720
+ * {
5721
+ * "name": "Chadaev, Nikolay",
5722
+ * "rating": 2580
5723
+ * }
5724
+ * ],
5725
+ * "status": "1-0"
5715
5726
  * }
5716
5727
  * ]
5717
5728
  * } */
5718
- StudyImportPgnChapters: unknown;
5729
+ StudyImportPgnChapters: {
5730
+ chapters?: {
5731
+ /** @description The chapter ID */
5732
+ id?: string;
5733
+ /** @description The chapter name */
5734
+ name?: string;
5735
+ players?: {
5736
+ /** @description The player name */
5737
+ name?: string | null;
5738
+ /** @description The player rating */
5739
+ rating?: number;
5740
+ }[];
5741
+ /** @description The chapter status */
5742
+ status?: string;
5743
+ }[];
5744
+ };
5719
5745
  /** @example {
5720
5746
  * "id": "WTvnkWAL",
5721
5747
  * "name": "Guess the move",
5722
5748
  * "createdAt": 1463756350225,
5723
5749
  * "updatedAt": 1469965025205
5724
5750
  * } */
5725
- StudyMetadata: unknown;
5751
+ StudyMetadata: {
5752
+ /** @description The study ID */
5753
+ id?: string;
5754
+ /** @description The study name */
5755
+ name?: string;
5756
+ /**
5757
+ * Format: int64
5758
+ * @description The study creation date
5759
+ */
5760
+ createdAt?: number;
5761
+ /**
5762
+ * Format: int64
5763
+ * @description The study last update date
5764
+ */
5765
+ updatedAt?: number;
5766
+ };
5726
5767
  BroadcastTour: {
5727
5768
  id: string;
5728
5769
  name: string;
@@ -8465,7 +8506,18 @@ export interface operations {
8465
8506
  [name: string]: unknown;
8466
8507
  };
8467
8508
  content: {
8468
- "application/json": unknown;
8509
+ "application/json": {
8510
+ /**
8511
+ * @description The game ID
8512
+ * @example R6iLjwz5
8513
+ */
8514
+ id?: string;
8515
+ /**
8516
+ * Format: uri
8517
+ * @description The game URL
8518
+ */
8519
+ url?: string;
8520
+ };
8469
8521
  };
8470
8522
  };
8471
8523
  };
@@ -10402,7 +10454,7 @@ export interface operations {
10402
10454
  [name: string]: unknown;
10403
10455
  };
10404
10456
  content: {
10405
- "application/x-ndjson": components["schemas"]["StudyMetadata"][];
10457
+ "application/x-ndjson": components["schemas"]["StudyMetadata"];
10406
10458
  };
10407
10459
  };
10408
10460
  };
@@ -10484,7 +10536,7 @@ export interface operations {
10484
10536
  [name: string]: unknown;
10485
10537
  };
10486
10538
  content: {
10487
- "application/x-ndjson": components["schemas"]["BroadcastTop"];
10539
+ "application/json": components["schemas"]["BroadcastTop"];
10488
10540
  };
10489
10541
  };
10490
10542
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",