@lichess-org/types 2.0.130 → 2.0.132

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 +65 -11
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -1533,6 +1533,27 @@ export interface paths {
1533
1533
  patch?: never;
1534
1534
  trace?: never;
1535
1535
  };
1536
+ "/api/study/{studyId}/{chapterId}/moves": {
1537
+ parameters: {
1538
+ query?: never;
1539
+ header?: never;
1540
+ path?: never;
1541
+ cookie?: never;
1542
+ };
1543
+ get?: never;
1544
+ put?: never;
1545
+ /**
1546
+ * Update the moves of a study chapter
1547
+ * @description Replaces the moves tree of a study chapter.
1548
+ * No tags will be modified.
1549
+ */
1550
+ post: operations["apiStudyChapterMoves"];
1551
+ delete?: never;
1552
+ options?: never;
1553
+ head?: never;
1554
+ patch?: never;
1555
+ trace?: never;
1556
+ };
1536
1557
  "/api/study/by/{username}/export.pgn": {
1537
1558
  parameters: {
1538
1559
  query?: never;
@@ -6323,11 +6344,6 @@ export interface components {
6323
6344
  score?: number;
6324
6345
  /** @example 7 */
6325
6346
  played?: number;
6326
- /**
6327
- * @deprecated
6328
- * @example -5
6329
- */
6330
- ratingDiff?: number;
6331
6347
  /**
6332
6348
  * @description Rating differences by FIDE time control.
6333
6349
  * @example {
@@ -6344,11 +6360,6 @@ export interface components {
6344
6360
  * }
6345
6361
  */
6346
6362
  ratingsMap?: components["schemas"]["StatByFideTC"];
6347
- /**
6348
- * @deprecated
6349
- * @example 2138
6350
- */
6351
- performance?: number;
6352
6363
  /**
6353
6364
  * @description Performance ratings by FIDE time control.
6354
6365
  * @example {
@@ -11230,7 +11241,50 @@ export interface operations {
11230
11241
  };
11231
11242
  content?: never;
11232
11243
  };
11233
- /** @description The creation of the chapter(s) failed. */
11244
+ /** @description The request body was invalid, such as missing or malformed PGN tag data. */
11245
+ 400: {
11246
+ headers: {
11247
+ [name: string]: unknown;
11248
+ };
11249
+ content: {
11250
+ "application/json": components["schemas"]["Error"];
11251
+ };
11252
+ };
11253
+ };
11254
+ };
11255
+ apiStudyChapterMoves: {
11256
+ parameters: {
11257
+ query?: never;
11258
+ header?: never;
11259
+ path: {
11260
+ /** @description The study ID */
11261
+ studyId: string;
11262
+ /** @description The chapter ID */
11263
+ chapterId: string;
11264
+ };
11265
+ cookie?: never;
11266
+ };
11267
+ requestBody: {
11268
+ content: {
11269
+ "application/x-www-form-urlencoded": {
11270
+ /**
11271
+ * @description PGN text containing the moves that will replace the chapter's existing moves.
11272
+ * Any provided tags are ignored.
11273
+ */
11274
+ pgn: string;
11275
+ };
11276
+ };
11277
+ };
11278
+ responses: {
11279
+ /** @description Moves updated, as the chapter exists and you are allowed to edit it. */
11280
+ 204: {
11281
+ headers: {
11282
+ "Access-Control-Allow-Origin"?: string;
11283
+ [name: string]: unknown;
11284
+ };
11285
+ content?: never;
11286
+ };
11287
+ /** @description Bad request - might be the provided study/chapter doesn't exist, or you aren't allowed to edit it, or the PGN is invalid. */
11234
11288
  400: {
11235
11289
  headers: {
11236
11290
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.130",
3
+ "version": "2.0.132",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",