@lichess-org/types 2.0.48 → 2.0.50

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 +18 -16
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -5766,12 +5766,23 @@ export interface components {
5766
5766
  name?: string;
5767
5767
  tours?: components["schemas"]["BroadcastGroupTour"][];
5768
5768
  };
5769
+ BroadcastCustomPoints: {
5770
+ win: number;
5771
+ draw: number;
5772
+ };
5773
+ /** @description Scoring overrides for wins or draws. */
5774
+ BroadcastCustomScoring: {
5775
+ white: components["schemas"]["BroadcastCustomPoints"];
5776
+ black: components["schemas"]["BroadcastCustomPoints"];
5777
+ };
5769
5778
  BroadcastRoundInfo: {
5770
5779
  id: string;
5771
5780
  name: string;
5772
5781
  slug: string;
5773
5782
  /** Format: int64 */
5774
5783
  createdAt: number;
5784
+ /** @description Whether the round is used for rating calculations */
5785
+ rated: boolean;
5775
5786
  ongoing?: boolean;
5776
5787
  /** Format: int64 */
5777
5788
  startsAt?: number;
@@ -5784,6 +5795,7 @@ export interface components {
5784
5795
  url: string;
5785
5796
  /** Format: int64 */
5786
5797
  delay?: number;
5798
+ customScoring?: components["schemas"]["BroadcastCustomScoring"];
5787
5799
  };
5788
5800
  BroadcastWithRounds: {
5789
5801
  tour: components["schemas"]["BroadcastTour"];
@@ -6087,6 +6099,12 @@ export interface components {
6087
6099
  * @enum {string}
6088
6100
  */
6089
6101
  status?: "new" | "started" | "finished";
6102
+ /**
6103
+ * @description Whether the round is used when calculating players' rating changes.
6104
+ * @default true
6105
+ */
6106
+ rated?: boolean;
6107
+ customScoring?: components["schemas"]["BroadcastCustomScoring"];
6090
6108
  /** @description (Only for Admins) Waiting time for each poll.
6091
6109
  * */
6092
6110
  period?: number;
@@ -7807,10 +7825,6 @@ export interface operations {
7807
7825
  * The response type must be set to `application/x-ndjson` by the request `Accept` header.
7808
7826
  * */
7809
7827
  withBookmarked?: boolean;
7810
- /** @description URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN.
7811
- * Example: <https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt>
7812
- * */
7813
- players?: string;
7814
7828
  };
7815
7829
  header?: never;
7816
7830
  path: {
@@ -7868,10 +7882,6 @@ export interface operations {
7868
7882
  * Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
7869
7883
  * */
7870
7884
  literate?: boolean;
7871
- /** @description URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN.
7872
- * Example: <https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt>
7873
- * */
7874
- players?: string;
7875
7885
  };
7876
7886
  header?: never;
7877
7887
  path: {
@@ -7959,10 +7969,6 @@ export interface operations {
7959
7969
  * The response type must be set to `application/x-ndjson` by the request `Accept` header.
7960
7970
  * */
7961
7971
  withBookmarked?: boolean;
7962
- /** @description URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN.
7963
- * Example: <https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt>
7964
- * */
7965
- players?: string;
7966
7972
  /** @description Sort order of the games. */
7967
7973
  sort?: "dateAsc" | "dateDesc";
7968
7974
  };
@@ -8022,10 +8028,6 @@ export interface operations {
8022
8028
  * Example: `5... g4? { (-0.98 → 0.60) Mistake. Best move was h6. } (5... h6 6. d4 Ne7 7. g3 d5 8. exd5 fxg3 9. hxg3 c6 10. dxc6)`
8023
8029
  * */
8024
8030
  literate?: boolean;
8025
- /** @description URL of a text file containing real names and ratings, to replace Lichess usernames and ratings in the PGN.
8026
- * Example: <https://gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt>
8027
- * */
8028
- players?: string;
8029
8031
  };
8030
8032
  header?: never;
8031
8033
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.48",
3
+ "version": "2.0.50",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",