diff --git a/specs/lichess-api.yaml b/specs/lichess-api.yaml index 9425597..c2dfe36 100644 --- a/specs/lichess-api.yaml +++ b/specs/lichess-api.yaml @@ -1,6 +1,6 @@ openapi: "3.1.0" info: - version: 2.0.135 + version: 2.0.136 title: Lichess.org API reference contact: name: "Lichess.org API" diff --git a/specs/tags/studies/api-study-studyId-import-pgn.yaml b/specs/tags/studies/api-study-studyId-import-pgn.yaml index 621ce3d..1b01424 100644 --- a/specs/tags/studies/api-study-studyId-import-pgn.yaml +++ b/specs/tags/studies/api-study-studyId-import-pgn.yaml @@ -45,6 +45,18 @@ post: default: white variant: $ref: "../../schemas/VariantKey.yaml" + mode: + type: string + description: | + Analysis mode. + If not specified, Normal analysis. + * practice - Practise with Computer + * conceal - Hide next moves + * gamebook - Interactive lesson + enum: + - practice + - conceal + - gamebook required: - pgn responses: diff --git a/src/client/index.ts b/src/client/index.ts index d3bb6f2..cb6b6ee 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -1902,6 +1902,7 @@ export class Lichess { name?: string; orientation?: "white" | "black"; variant?: schemas.VariantKey; + mode?: "practice" | "conceal" | "gamebook"; }; }, ) {