@lichess-org/types 2.0.176 → 2.0.178

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 +53 -0
  2. package/package.json +2 -2
package/lichess-api.d.ts CHANGED
@@ -820,6 +820,27 @@ export interface paths {
820
820
  patch?: never;
821
821
  trace?: never;
822
822
  };
823
+ "/api/version": {
824
+ parameters: {
825
+ query?: never;
826
+ header?: never;
827
+ path?: never;
828
+ cookie?: never;
829
+ };
830
+ /**
831
+ * Get server version
832
+ * @description Get the date and git commit of the server code currently deployed.
833
+ * Source code: [github.com/lichess-org/lila](https://github.com/lichess-org/lila).
834
+ */
835
+ get: operations["apiVersion"];
836
+ put?: never;
837
+ post?: never;
838
+ delete?: never;
839
+ options?: never;
840
+ head?: never;
841
+ patch?: never;
842
+ trace?: never;
843
+ };
823
844
  "/api/tv/channels": {
824
845
  parameters: {
825
846
  query?: never;
@@ -8286,6 +8307,37 @@ export interface operations {
8286
8307
  };
8287
8308
  };
8288
8309
  };
8310
+ apiVersion: {
8311
+ parameters: {
8312
+ query?: never;
8313
+ header?: never;
8314
+ path?: never;
8315
+ cookie?: never;
8316
+ };
8317
+ requestBody?: never;
8318
+ responses: {
8319
+ /** @description The server version. */
8320
+ 200: {
8321
+ headers: {
8322
+ "Access-Control-Allow-Origin"?: string;
8323
+ [name: string]: unknown;
8324
+ };
8325
+ content: {
8326
+ "application/json": {
8327
+ server: {
8328
+ /**
8329
+ * Format: date-time
8330
+ * @description When the deployed server was built
8331
+ */
8332
+ date: string;
8333
+ /** @description Git commit hash of the deployed lila version */
8334
+ commit: string;
8335
+ };
8336
+ };
8337
+ };
8338
+ };
8339
+ };
8340
+ };
8289
8341
  tvChannels: {
8290
8342
  parameters: {
8291
8343
  query?: never;
@@ -13345,6 +13397,7 @@ export interface operations {
13345
13397
  * `{opponent}` and `{game}` are placeholders that will be replaced with the opponent and the game URLs.
13346
13398
  * You can omit this field to send the default message,
13347
13399
  * but if you set your own message, it must at least contain the `{game}` placeholder.
13400
+ * You can also disable messages entirely, by setting the template to `{noMessage}`. You will then need to notify the players yourself about their games.
13348
13401
  * @default Your game with {opponent} is ready: {game}.
13349
13402
  */
13350
13403
  message?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.176",
3
+ "version": "2.0.178",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "openapi-typescript": "^7.13.0",
18
- "prettier": "^3.9.9",
18
+ "prettier": "^3.9.10",
19
19
  "typescript": "^6.0.3"
20
20
  }
21
21
  }