@lichess-org/types 2.0.69 → 2.0.71

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 +19 -4
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -713,7 +713,7 @@ export interface paths {
713
713
  * @description Stream positions and moves of any ongoing game, in [ndjson](#section/Introduction/Streaming-with-ND-JSON).
714
714
  * A description of the game is sent as a first message.
715
715
  * Then a message is sent each time a move is played.
716
- * Finally a description of the game is sent when it finishes, and the stream is closed.
716
+ * Finally, a description of the game is sent when it finishes, and the stream is closed.
717
717
  * Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
718
718
  * No more than 8 game streams can be opened at the same time from the same IP address.
719
719
  *
@@ -2503,7 +2503,7 @@ export interface paths {
2503
2503
  * Stream incoming events
2504
2504
  * @description Stream the events reaching a lichess user in real time as [ndjson](#section/Introduction/Streaming-with-ND-JSON).
2505
2505
  *
2506
- * An empty line is sent every 6 seconds for keep alive purposes.
2506
+ * An empty line is sent every 7 seconds for keep alive purposes.
2507
2507
  *
2508
2508
  * Each non-empty line is a JSON object containing a `type` field. Possible values are:
2509
2509
  * - `gameStart` Start of a game
@@ -2514,6 +2514,8 @@ export interface paths {
2514
2514
  *
2515
2515
  * When the stream opens, all current challenges and games are sent.
2516
2516
  *
2517
+ * Only one global event stream can be active at a time. When the stream opens, the previous one with the same access token is closed.
2518
+ *
2517
2519
  */
2518
2520
  get: operations["apiStreamEvent"];
2519
2521
  put?: never;
@@ -5865,8 +5867,9 @@ export interface components {
5865
5867
  url: string;
5866
5868
  };
5867
5869
  BroadcastGroupTour: {
5868
- name?: string;
5869
- id?: string;
5870
+ name: string;
5871
+ id: string;
5872
+ live?: boolean;
5870
5873
  };
5871
5874
  BroadcastGroup: {
5872
5875
  name?: string;
@@ -12866,6 +12869,18 @@ export interface operations {
12866
12869
  "application/x-ndjson": components["schemas"]["MoveStream"];
12867
12870
  };
12868
12871
  };
12872
+ /** @description Too many streams opened at the same time from this IP. */
12873
+ 429: {
12874
+ headers: {
12875
+ [name: string]: unknown;
12876
+ };
12877
+ content: {
12878
+ "application/json": {
12879
+ /** @example Please only run 8 request(s) at a time */
12880
+ error?: string;
12881
+ };
12882
+ };
12883
+ };
12869
12884
  };
12870
12885
  };
12871
12886
  gameImport: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.69",
3
+ "version": "2.0.71",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",