@lichess-org/types 2.0.10 → 2.0.11

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 +56 -21
  2. package/package.json +3 -3
package/lichess-api.d.ts CHANGED
@@ -3998,6 +3998,9 @@ export interface components {
3998
3998
  | "racingKings"
3999
3999
  | "threeCheck";
4000
4000
  /** @example {
4001
+ * "user": {
4002
+ * "name": "thibault"
4003
+ * },
4001
4004
  * "perf": {
4002
4005
  * "glicko": {
4003
4006
  * "rating": 1672.42,
@@ -4024,10 +4027,11 @@ export interface components {
4024
4027
  * "at": "2016-06-28T13:54:39.656Z",
4025
4028
  * "gameId": "rNM4J1GJ"
4026
4029
  * },
4030
+ * "id": "thibault/1",
4027
4031
  * "bestWins": {
4028
4032
  * "results": [
4029
4033
  * {
4030
- * "opInt": 2238,
4034
+ * "opRating": 2238,
4031
4035
  * "opId": {
4032
4036
  * "id": "hyperdragon84",
4033
4037
  * "name": "HyperDragon84"
@@ -4036,7 +4040,7 @@ export interface components {
4036
4040
  * "gameId": "DGB53z9w"
4037
4041
  * },
4038
4042
  * {
4039
- * "opInt": 2089,
4043
+ * "opRating": 2089,
4040
4044
  * "opId": {
4041
4045
  * "id": "osipov",
4042
4046
  * "name": "osipov"
@@ -4045,7 +4049,7 @@ export interface components {
4045
4049
  * "gameId": "gurRhuMi"
4046
4050
  * },
4047
4051
  * {
4048
- * "opInt": 2071,
4052
+ * "opRating": 2071,
4049
4053
  * "opId": {
4050
4054
  * "id": "spark50",
4051
4055
  * "name": "Spark50"
@@ -4054,7 +4058,7 @@ export interface components {
4054
4058
  * "gameId": "a93Dk1mv"
4055
4059
  * },
4056
4060
  * {
4057
- * "opInt": 2045,
4061
+ * "opRating": 2045,
4058
4062
  * "opId": {
4059
4063
  * "id": "yasha43",
4060
4064
  * "name": "Yasha43"
@@ -4063,7 +4067,7 @@ export interface components {
4063
4067
  * "gameId": "j3jZnGTr"
4064
4068
  * },
4065
4069
  * {
4066
- * "opInt": 2034,
4070
+ * "opRating": 2034,
4067
4071
  * "opId": {
4068
4072
  * "id": "midedu",
4069
4073
  * "name": "midedu"
@@ -4076,7 +4080,7 @@ export interface components {
4076
4080
  * "worstLosses": {
4077
4081
  * "results": [
4078
4082
  * {
4079
- * "opInt": 1186,
4083
+ * "opRating": 1186,
4080
4084
  * "opId": {
4081
4085
  * "id": "happy0",
4082
4086
  * "name": "Happy0"
@@ -4085,7 +4089,7 @@ export interface components {
4085
4089
  * "gameId": "Q01bbiN4"
4086
4090
  * },
4087
4091
  * {
4088
- * "opInt": 1197,
4092
+ * "opRating": 1197,
4089
4093
  * "opId": {
4090
4094
  * "id": "kazmankiller86",
4091
4095
  * "name": "KazmanKiller86"
@@ -4094,7 +4098,7 @@ export interface components {
4094
4098
  * "gameId": "Aivqh9Sp"
4095
4099
  * },
4096
4100
  * {
4097
- * "opInt": 1201,
4101
+ * "opRating": 1201,
4098
4102
  * "opId": {
4099
4103
  * "id": "artem555",
4100
4104
  * "name": "artem555"
@@ -4103,7 +4107,7 @@ export interface components {
4103
4107
  * "gameId": "tiRAbhnX"
4104
4108
  * },
4105
4109
  * {
4106
- * "opInt": 1265,
4110
+ * "opRating": 1265,
4107
4111
  * "opId": {
4108
4112
  * "id": "arcenuu",
4109
4113
  * "name": "Arcenuu"
@@ -4112,7 +4116,7 @@ export interface components {
4112
4116
  * "gameId": "A68wUOoh"
4113
4117
  * },
4114
4118
  * {
4115
- * "opInt": 1283,
4119
+ * "opRating": 1283,
4116
4120
  * "opId": {
4117
4121
  * "id": "amritalib76",
4118
4122
  * "name": "Amritalib76"
@@ -4176,6 +4180,11 @@ export interface components {
4176
4180
  * }
4177
4181
  * }
4178
4182
  * },
4183
+ * "userId": {
4184
+ * "id": "thibault",
4185
+ * "name": "thibault",
4186
+ * "title": null
4187
+ * },
4179
4188
  * "playStreak": {
4180
4189
  * "nb": {
4181
4190
  * "cur": {
@@ -5752,7 +5761,7 @@ export interface components {
5752
5761
  round: components["schemas"]["BroadcastRoundInfo"];
5753
5762
  };
5754
5763
  BroadcastForm: {
5755
- /** @description Name of the broadcast tournament. Length must be between 3 and 80 characters.
5764
+ /** @description Name of the broadcast tournament.
5756
5765
  *
5757
5766
  * Example: `Sinquefield Cup`
5758
5767
  * */
@@ -5765,17 +5774,35 @@ export interface components {
5765
5774
  * Example: `"Classical" or "Rapid" or "Rapid & Blitz"`
5766
5775
  * */
5767
5776
  "info.tc"?: string;
5777
+ /**
5778
+ * @description FIDE rating category. Which FIDE ratings to use
5779
+ *
5780
+ * @enum {string}
5781
+ */
5782
+ "info.fideTc"?: "standard" | "rapid" | "blitz";
5768
5783
  /** @description Mention up to 4 of the best players participating.
5769
5784
  * */
5770
5785
  "info.players"?: string;
5771
- /** @description Optional long description of the broadcast. Markdown is supported. Length must be less than 20,000 characters.
5786
+ /** @description Optional long description of the broadcast. Markdown is supported.
5772
5787
  * */
5773
5788
  markdown?: string;
5774
- /** @description Compute and display a simple leaderboard based on game results
5775
- * */
5776
- autoLeaderboard?: boolean;
5777
- /** @description Show a team leaderboard. Requires WhiteTeam and BlackTeam PGN tags.
5778
- * */
5789
+ /**
5790
+ * @description Show players scores based on game results
5791
+ *
5792
+ * @default true
5793
+ */
5794
+ showScores?: boolean;
5795
+ /**
5796
+ * @description Show player's rating diffs
5797
+ *
5798
+ * @default true
5799
+ */
5800
+ showRatingDiffs?: boolean;
5801
+ /**
5802
+ * @description Show a team leaderboard. Requires WhiteTeam and BlackTeam PGN tags.
5803
+ *
5804
+ * @default false
5805
+ */
5779
5806
  teamTable?: boolean;
5780
5807
  /** @description Optional replace player names, ratings and titles.
5781
5808
  *
@@ -5828,14 +5855,17 @@ export interface components {
5828
5855
  * By default the PGN tags WhiteTeam and BlackTeam are used.
5829
5856
  * */
5830
5857
  teams?: string;
5831
- /** @description Optional, for Lichess admins only, used to feature on /broadcast.
5858
+ /**
5859
+ * @description Optional, for Lichess admins only, used to feature on /broadcast.
5832
5860
  *
5833
5861
  * * `3` for Official: normal tier
5834
5862
  * * `4` for Official: high tier
5835
5863
  * * `5` for Official: best tier
5836
5864
  * * `-1` for Private
5837
- * */
5838
- tier?: number;
5865
+ *
5866
+ * @enum {integer}
5867
+ */
5868
+ tier?: 3 | 4 | 5 | -1;
5839
5869
  };
5840
5870
  BroadcastLeaderboardEntry: {
5841
5871
  /** @example Hernandez Riera, Jose */
@@ -5854,28 +5884,33 @@ export interface components {
5854
5884
  fed?: string;
5855
5885
  };
5856
5886
  BroadcastRoundForm: {
5857
- /** @description Name of the broadcast round. Length must be between 3 and 80 characters.
5887
+ /** @description Name of the broadcast round.
5858
5888
  * Example: `Round 1`
5859
5889
  * */
5860
5890
  name: string;
5861
5891
  /** @description URL that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
5892
+ *
5862
5893
  * Example:
5863
5894
  * ```txt
5864
5895
  * https://myserver.org/myevent/round-10/games.pgn
5865
5896
  * ```
5897
+ *
5866
5898
  * Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
5867
5899
  * */
5868
5900
  syncUrl?: string;
5869
5901
  /** @description URLs that Lichess will poll to get updates about the games. It must be publicly accessible from the Internet.
5902
+ *
5870
5903
  * Example:
5871
5904
  * ```txt
5872
5905
  * https://myserver.org/myevent/round-10/game-1.pgn
5873
5906
  * https://myserver.org/myevent/round-10/game-2.pgn
5874
5907
  * ```
5908
+ *
5875
5909
  * Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
5876
5910
  * */
5877
5911
  syncUrls?: string;
5878
5912
  /** @description Lichess game IDs - Up to 64 Lichess game IDs, separated by spaces.
5913
+ *
5879
5914
  * Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
5880
5915
  * */
5881
5916
  syncIds?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",
@@ -11,9 +11,9 @@
11
11
  "gen": "openapi-typescript ../doc/specs/lichess-api.yaml -o lichess-api.d.ts --default-non-nullable=false"
12
12
  },
13
13
  "devDependencies": {
14
- "openapi-typescript": "^7.3.0",
14
+ "openapi-typescript": "^7.4.0",
15
15
  "prettier": "^3.3.3",
16
- "typescript": "^5.5.4"
16
+ "typescript": "^5.6.2"
17
17
  },
18
18
  "packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
19
19
  }