Skip to content

Commit 44ab908

Browse files
github-actions[bot]CI
andauthored
ci: update api (#17)
Co-authored-by: CI <ci@rman.dev>
1 parent 1afe9d4 commit 44ab908

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

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.123
3+
version: 2.0.124
44
title: Lichess.org API reference
55
contact:
66
name: "Lichess.org API"

specs/tags/puzzles/api-puzzle-activity.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ get:
2222
schema:
2323
type: integer
2424
minimum: 1356998400070
25+
- in: query
26+
name: since
27+
description: Download entries since this timestamp. Defaults to account creation date.
28+
schema:
29+
type: integer
30+
minimum: 1356998400070
2531
responses:
2632
"200":
2733
description: The puzzle activity of the logged in user.

src/client/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ export class Lichess {
207207
/**
208208
* Get your puzzle activity
209209
*/
210-
async apiPuzzleActivity(params: { max?: number; before?: number }) {
210+
async apiPuzzleActivity(params: {
211+
max?: number;
212+
before?: number;
213+
since?: number;
214+
}) {
211215
const path = "/api/puzzle/activity" as const;
212216
return await this.requestor.get(
213217
{ path, query: params },

0 commit comments

Comments
 (0)