@lichess-org/types 2.0.130 → 2.0.131

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 -1
  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;
@@ -11230,7 +11251,50 @@ export interface operations {
11230
11251
  };
11231
11252
  content?: never;
11232
11253
  };
11233
- /** @description The creation of the chapter(s) failed. */
11254
+ /** @description The request body was invalid, such as missing or malformed PGN tag data. */
11255
+ 400: {
11256
+ headers: {
11257
+ [name: string]: unknown;
11258
+ };
11259
+ content: {
11260
+ "application/json": components["schemas"]["Error"];
11261
+ };
11262
+ };
11263
+ };
11264
+ };
11265
+ apiStudyChapterMoves: {
11266
+ parameters: {
11267
+ query?: never;
11268
+ header?: never;
11269
+ path: {
11270
+ /** @description The study ID */
11271
+ studyId: string;
11272
+ /** @description The chapter ID */
11273
+ chapterId: string;
11274
+ };
11275
+ cookie?: never;
11276
+ };
11277
+ requestBody: {
11278
+ content: {
11279
+ "application/x-www-form-urlencoded": {
11280
+ /**
11281
+ * @description PGN text containing the moves that will replace the chapter's existing moves.
11282
+ * Any provided tags are ignored.
11283
+ */
11284
+ pgn: string;
11285
+ };
11286
+ };
11287
+ };
11288
+ responses: {
11289
+ /** @description Moves updated, as the chapter exists and you are allowed to edit it. */
11290
+ 204: {
11291
+ headers: {
11292
+ "Access-Control-Allow-Origin"?: string;
11293
+ [name: string]: unknown;
11294
+ };
11295
+ content?: never;
11296
+ };
11297
+ /** @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
11298
  400: {
11235
11299
  headers: {
11236
11300
  [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.131",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",