Skip to content

Commit 57a714a

Browse files
authored
ci: update api (#32)
1 parent d11b5d0 commit 57a714a

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

specs/lichess-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: "3.1.0"
22
info:
3-
version: 2.0.135
3+
version: 2.0.136
44
title: Lichess.org API reference
55
contact:
66
name: "Lichess.org API"

specs/tags/studies/api-study-studyId-import-pgn.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ post:
4545
default: white
4646
variant:
4747
$ref: "../../schemas/VariantKey.yaml"
48+
mode:
49+
type: string
50+
description: |
51+
Analysis mode.
52+
If not specified, Normal analysis.
53+
* practice - Practise with Computer
54+
* conceal - Hide next moves
55+
* gamebook - Interactive lesson
56+
enum:
57+
- practice
58+
- conceal
59+
- gamebook
4860
required:
4961
- pgn
5062
responses:

src/client/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,7 @@ export class Lichess {
19021902
name?: string;
19031903
orientation?: "white" | "black";
19041904
variant?: schemas.VariantKey;
1905+
mode?: "practice" | "conceal" | "gamebook";
19051906
};
19061907
},
19071908
) {

0 commit comments

Comments
 (0)