@lichess-org/types 2.0.63 → 2.0.65

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 +107 -1
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -715,7 +715,7 @@ export interface paths {
715
715
  * @description Import a game from PGN. See <https://lichess.org/paste>.
716
716
  * Rate limiting: 200 games per hour for OAuth requests, 100 games per hour for anonymous requests.
717
717
  * To broadcast ongoing games, consider [pushing to a broadcast instead](#operation/broadcastPush).
718
- * To analyse a position or a line, just construct an analysis board URL:
718
+ * To analyse a position or a line, just construct an analysis board URL (most standard tags supported if URL-encoded):
719
719
  * [https://lichess.org/analysis/pgn/e4_e5_Nf3_Nc6_Bc4_Bc5_Bxf7+](https://lichess.org/analysis/pgn/e4_e5_Nf3_Nc6_Bc4_Bc5_Bxf7+)
720
720
  *
721
721
  */
@@ -2730,6 +2730,27 @@ export interface paths {
2730
2730
  patch?: never;
2731
2731
  trace?: never;
2732
2732
  };
2733
+ "/api/board/game/{gameId}/claim-draw": {
2734
+ parameters: {
2735
+ query?: never;
2736
+ header?: never;
2737
+ path?: never;
2738
+ cookie?: never;
2739
+ };
2740
+ get?: never;
2741
+ put?: never;
2742
+ /**
2743
+ * Claim draw of a game
2744
+ * @description Claim draw when the opponent has left the game for a while.
2745
+ *
2746
+ */
2747
+ post: operations["boardGameClaimDraw"];
2748
+ delete?: never;
2749
+ options?: never;
2750
+ head?: never;
2751
+ patch?: never;
2752
+ trace?: never;
2753
+ };
2733
2754
  "/api/board/game/{gameId}/berserk": {
2734
2755
  parameters: {
2735
2756
  query?: never;
@@ -2984,6 +3005,27 @@ export interface paths {
2984
3005
  patch?: never;
2985
3006
  trace?: never;
2986
3007
  };
3008
+ "/api/bot/game/{gameId}/claim-draw": {
3009
+ parameters: {
3010
+ query?: never;
3011
+ header?: never;
3012
+ path?: never;
3013
+ cookie?: never;
3014
+ };
3015
+ get?: never;
3016
+ put?: never;
3017
+ /**
3018
+ * Claim draw of a game
3019
+ * @description Claim draw when the opponent has left the game for a while.
3020
+ *
3021
+ */
3022
+ post: operations["botGameClaimDraw"];
3023
+ delete?: never;
3024
+ options?: never;
3025
+ head?: never;
3026
+ patch?: never;
3027
+ trace?: never;
3028
+ };
2987
3029
  "/api/challenge": {
2988
3030
  parameters: {
2989
3031
  query?: never;
@@ -34664,6 +34706,38 @@ export interface operations {
34664
34706
  };
34665
34707
  };
34666
34708
  };
34709
+ boardGameClaimDraw: {
34710
+ parameters: {
34711
+ query?: never;
34712
+ header?: never;
34713
+ path: {
34714
+ gameId: string;
34715
+ };
34716
+ cookie?: never;
34717
+ };
34718
+ requestBody?: never;
34719
+ responses: {
34720
+ /** @description The draw was successfully claimed. */
34721
+ 200: {
34722
+ headers: {
34723
+ "Access-Control-Allow-Origin"?: string;
34724
+ [name: string]: unknown;
34725
+ };
34726
+ content: {
34727
+ "application/json": components["schemas"]["Ok"];
34728
+ };
34729
+ };
34730
+ /** @description The draw claim has failed. */
34731
+ 400: {
34732
+ headers: {
34733
+ [name: string]: unknown;
34734
+ };
34735
+ content: {
34736
+ "application/json": components["schemas"]["Error"];
34737
+ };
34738
+ };
34739
+ };
34740
+ };
34667
34741
  boardGameBerserk: {
34668
34742
  parameters: {
34669
34743
  query?: never;
@@ -35100,6 +35174,38 @@ export interface operations {
35100
35174
  };
35101
35175
  };
35102
35176
  };
35177
+ botGameClaimDraw: {
35178
+ parameters: {
35179
+ query?: never;
35180
+ header?: never;
35181
+ path: {
35182
+ gameId: string;
35183
+ };
35184
+ cookie?: never;
35185
+ };
35186
+ requestBody?: never;
35187
+ responses: {
35188
+ /** @description The draw was successfully claimed. */
35189
+ 200: {
35190
+ headers: {
35191
+ "Access-Control-Allow-Origin"?: string;
35192
+ [name: string]: unknown;
35193
+ };
35194
+ content: {
35195
+ "application/json": components["schemas"]["Ok"];
35196
+ };
35197
+ };
35198
+ /** @description The draw claim has failed. */
35199
+ 400: {
35200
+ headers: {
35201
+ [name: string]: unknown;
35202
+ };
35203
+ content: {
35204
+ "application/json": components["schemas"]["Error"];
35205
+ };
35206
+ };
35207
+ };
35208
+ };
35103
35209
  challengeList: {
35104
35210
  parameters: {
35105
35211
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",