@lichess-org/types 2.0.65 → 2.0.67

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 +138 -16
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -1100,7 +1100,7 @@ export interface paths {
1100
1100
  * The stream is throttled, depending on who is making the request:
1101
1101
  * - Anonymous request: 20 tournaments per second
1102
1102
  * - [OAuth2 authenticated](#section/Introduction/Authentication) request: 30 tournaments per second
1103
- * - Authenticated, downloading your own tournaments: 50 games per second
1103
+ * - Authenticated, downloading your own tournaments: 50 tournaments per second
1104
1104
  *
1105
1105
  */
1106
1106
  get: operations["apiUserNameTournamentCreated"];
@@ -1127,7 +1127,7 @@ export interface paths {
1127
1127
  * The stream is throttled, depending on who is making the request:
1128
1128
  * - Anonymous request: 20 tournaments per second
1129
1129
  * - [OAuth2 authenticated](#section/Introduction/Authentication) request: 30 tournaments per second
1130
- * - Authenticated, downloading your own tournaments: 50 games per second
1130
+ * - Authenticated, downloading your own tournaments: 50 tournaments per second
1131
1131
  *
1132
1132
  */
1133
1133
  get: operations["apiUserNameTournamentPlayed"];
@@ -5865,6 +5865,46 @@ export interface components {
5865
5865
  BroadcastByUser: {
5866
5866
  tour: components["schemas"]["BroadcastTour"];
5867
5867
  };
5868
+ /**
5869
+ * @description Extended tiebreak code
5870
+ * @enum {string}
5871
+ */
5872
+ BroadcastTiebreakExtendedCode:
5873
+ | "AOB"
5874
+ | "APPO"
5875
+ | "APRO"
5876
+ | "ARO"
5877
+ | "ARO-C1"
5878
+ | "ARO-C2"
5879
+ | "ARO-M1"
5880
+ | "ARO-M2"
5881
+ | "BH"
5882
+ | "BH-C1"
5883
+ | "BH-C2"
5884
+ | "BH-M1"
5885
+ | "BH-M2"
5886
+ | "BPG"
5887
+ | "BWG"
5888
+ | "DE"
5889
+ | "FB"
5890
+ | "FB-C1"
5891
+ | "FB-C2"
5892
+ | "FB-M1"
5893
+ | "FB-M2"
5894
+ | "KS"
5895
+ | "PS"
5896
+ | "PS-C1"
5897
+ | "PS-C2"
5898
+ | "PS-M1"
5899
+ | "PS-M2"
5900
+ | "PTP"
5901
+ | "SB"
5902
+ | "SB-C1"
5903
+ | "SB-C2"
5904
+ | "SB-M1"
5905
+ | "SB-M2"
5906
+ | "TPR"
5907
+ | "WON";
5868
5908
  BroadcastForm: {
5869
5909
  /** @description Name of the broadcast tournament.
5870
5910
  *
@@ -5928,6 +5968,16 @@ export interface components {
5928
5968
  * @default false
5929
5969
  */
5930
5970
  teamTable?: boolean;
5971
+ /**
5972
+ * @description Who can view the broadcast.
5973
+ * * `public`: Default. Anyone can view the broadcast
5974
+ * * `unlisted`: Only people with the link can view the broadcast
5975
+ * * `private`: Only the broadcast owner(s) can view the broadcast
5976
+ *
5977
+ * @default public
5978
+ * @enum {string}
5979
+ */
5980
+ visibility?: "public" | "unlisted" | "private";
5931
5981
  /** @description Optional replace player names, ratings and titles.
5932
5982
  *
5933
5983
  * One line per player, formatted as such:
@@ -5985,11 +6035,18 @@ export interface components {
5985
6035
  * * `3` for Official: normal tier
5986
6036
  * * `4` for Official: high tier
5987
6037
  * * `5` for Official: best tier
5988
- * * `-1` for Private
5989
6038
  *
5990
6039
  * @enum {integer}
5991
6040
  */
5992
- tier?: 3 | 4 | 5 | -1;
6041
+ tier?: 3 | 4 | 5;
6042
+ "tiebreaks[]"?: components["schemas"]["BroadcastTiebreakExtendedCode"][];
6043
+ };
6044
+ BroadcastPlayerTiebreak: {
6045
+ extendedCode?: components["schemas"]["BroadcastTiebreakExtendedCode"];
6046
+ /** @example Buchholz Cut 1 */
6047
+ description?: string;
6048
+ /** @example 45.5 */
6049
+ points?: number;
5993
6050
  };
5994
6051
  BroadcastPlayerEntry: {
5995
6052
  /** @example Hernandez Riera, Jose */
@@ -6010,6 +6067,9 @@ export interface components {
6010
6067
  fideId?: number;
6011
6068
  /** @example CHI */
6012
6069
  fed?: string;
6070
+ tiebreaks?: components["schemas"]["BroadcastPlayerTiebreak"][];
6071
+ /** @example 1 */
6072
+ rank?: number;
6013
6073
  };
6014
6074
  /** @description Name of the broadcast round.
6015
6075
  * Example: `Round 1`
@@ -31033,20 +31093,82 @@ export interface operations {
31033
31093
  content: {
31034
31094
  /** @example [
31035
31095
  * {
31036
- * "name": "Player 1",
31037
- * "played": 0
31038
- * },
31039
- * {
31040
- * "name": "Player 2",
31041
- * "played": 0
31042
- * },
31043
- * {
31044
- * "name": "Player 3",
31045
- * "played": 0
31096
+ * "name": "Aravindh, Chithambaram VR.",
31097
+ * "title": "GM",
31098
+ * "rating": 2749,
31099
+ * "fideId": 5072786,
31100
+ * "fed": "IND",
31101
+ * "played": 9,
31102
+ * "score": 2.5,
31103
+ * "ratingDiff": -23,
31104
+ * "performance": 2557,
31105
+ * "tiebreaks": [
31106
+ * {
31107
+ * "extendedCode": "DE",
31108
+ * "description": "Direct encounter",
31109
+ * "points": 0
31110
+ * },
31111
+ * {
31112
+ * "extendedCode": "SB",
31113
+ * "description": "Sonneborn-Berger",
31114
+ * "points": 11.25
31115
+ * },
31116
+ * {
31117
+ * "extendedCode": "WON",
31118
+ * "description": "Number of Wins",
31119
+ * "points": 0
31120
+ * },
31121
+ * {
31122
+ * "extendedCode": "BWG",
31123
+ * "description": "Number of wins with black",
31124
+ * "points": 0
31125
+ * },
31126
+ * {
31127
+ * "extendedCode": "KS",
31128
+ * "description": "Koya system (limit 50% of score)",
31129
+ * "points": 1.5
31130
+ * }
31131
+ * ],
31132
+ * "rank": 10
31046
31133
  * },
31047
31134
  * {
31048
- * "name": "Player 4",
31049
- * "played": 0
31135
+ * "name": "Praggnanandhaa R",
31136
+ * "title": "GM",
31137
+ * "rating": 2758,
31138
+ * "fideId": 25059530,
31139
+ * "fed": "IND",
31140
+ * "played": 9,
31141
+ * "score": 5.5,
31142
+ * "ratingDiff": 6,
31143
+ * "performance": 2802,
31144
+ * "tiebreaks": [
31145
+ * {
31146
+ * "extendedCode": "DE",
31147
+ * "description": "Direct encounter",
31148
+ * "points": 2
31149
+ * },
31150
+ * {
31151
+ * "extendedCode": "SB",
31152
+ * "description": "Sonneborn-Berger",
31153
+ * "points": 25.25
31154
+ * },
31155
+ * {
31156
+ * "extendedCode": "WON",
31157
+ * "description": "Number of Wins",
31158
+ * "points": 4
31159
+ * },
31160
+ * {
31161
+ * "extendedCode": "BWG",
31162
+ * "description": "Number of wins with black",
31163
+ * "points": 1
31164
+ * },
31165
+ * {
31166
+ * "extendedCode": "KS",
31167
+ * "description": "Koya system (limit 50% of score)",
31168
+ * "points": 3.5
31169
+ * }
31170
+ * ],
31171
+ * "rank": 1
31050
31172
  * }
31051
31173
  * ] */
31052
31174
  "application/json": components["schemas"]["BroadcastPlayerEntry"][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.65",
3
+ "version": "2.0.67",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",