@lichess-org/types 2.0.92 → 2.0.94

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 +30 -67
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -1681,6 +1681,8 @@ export interface paths {
1681
1681
  * @description Get all incoming, ongoing, and finished official broadcasts.
1682
1682
  * The broadcasts are sorted by created date, most recent first.
1683
1683
  *
1684
+ * If you are authenticated as the user whose broadcasts you are requesting, you will also see your private and unlisted broadcasts.
1685
+ *
1684
1686
  */
1685
1687
  get: operations["broadcastsByUser"];
1686
1688
  put?: never;
@@ -4291,6 +4293,15 @@ export interface components {
4291
4293
  | "kingOfTheHill"
4292
4294
  | "racingKings"
4293
4295
  | "threeCheck";
4296
+ LightUser: {
4297
+ id: string;
4298
+ name: string;
4299
+ flair?: components["schemas"]["Flair"];
4300
+ title?: components["schemas"]["Title"];
4301
+ /** @deprecated */
4302
+ patron?: boolean;
4303
+ patronColor?: components["schemas"]["PatronColor"];
4304
+ };
4294
4305
  PerfStat: {
4295
4306
  user: {
4296
4307
  name: string;
@@ -4307,10 +4318,6 @@ export interface components {
4307
4318
  rank: number | null;
4308
4319
  percentile: number;
4309
4320
  stat: {
4310
- perfType: {
4311
- key: string;
4312
- name: string;
4313
- };
4314
4321
  highest?: {
4315
4322
  int: number;
4316
4323
  /** Format: date-time */
@@ -4323,15 +4330,10 @@ export interface components {
4323
4330
  at: string;
4324
4331
  gameId: string;
4325
4332
  };
4326
- id: string;
4327
4333
  bestWins: {
4328
4334
  results: {
4329
4335
  opRating: number;
4330
- opId: {
4331
- id: string;
4332
- name: string;
4333
- title: components["schemas"]["Title"] | null;
4334
- };
4336
+ opId: components["schemas"]["LightUser"];
4335
4337
  /** Format: date-time */
4336
4338
  at: string;
4337
4339
  gameId: string;
@@ -4340,11 +4342,7 @@ export interface components {
4340
4342
  worstLosses: {
4341
4343
  results: {
4342
4344
  opRating: number;
4343
- opId: {
4344
- id: string;
4345
- name: string;
4346
- title: components["schemas"]["Title"] | null;
4347
- };
4345
+ opId: components["schemas"]["LightUser"];
4348
4346
  /** Format: date-time */
4349
4347
  at: string;
4350
4348
  gameId: string;
@@ -4418,11 +4416,6 @@ export interface components {
4418
4416
  };
4419
4417
  };
4420
4418
  };
4421
- userId: {
4422
- id: string;
4423
- name: string;
4424
- title: components["schemas"]["Title"] | null;
4425
- };
4426
4419
  playStreak: {
4427
4420
  nb: {
4428
4421
  cur: {
@@ -5243,15 +5236,6 @@ export interface components {
5243
5236
  | "unknownFinish"
5244
5237
  | "insufficientMaterialClaim"
5245
5238
  | "variantEnd";
5246
- LightUser: {
5247
- id: string;
5248
- name: string;
5249
- flair?: components["schemas"]["Flair"];
5250
- title?: components["schemas"]["Title"];
5251
- /** @deprecated */
5252
- patron?: boolean;
5253
- patronColor?: components["schemas"]["PatronColor"];
5254
- };
5255
5239
  GamePlayerUser: {
5256
5240
  user: components["schemas"]["LightUser"];
5257
5241
  rating: number;
@@ -9866,16 +9850,6 @@ export interface operations {
9866
9850
  * "rank": null,
9867
9851
  * "percentile": 75.1,
9868
9852
  * "stat": {
9869
- * "id": "thibault/2",
9870
- * "userId": {
9871
- * "id": "thibault",
9872
- * "name": "thibault",
9873
- * "title": null
9874
- * },
9875
- * "perfType": {
9876
- * "key": "blitz",
9877
- * "name": "Blitz"
9878
- * },
9879
9853
  * "highest": {
9880
9854
  * "int": 1970,
9881
9855
  * "at": "2022-02-23T13:44:54.633Z",
@@ -9892,8 +9866,7 @@ export interface operations {
9892
9866
  * "opRating": 2239,
9893
9867
  * "opId": {
9894
9868
  * "id": "aqua21",
9895
- * "name": "aqua21",
9896
- * "title": null
9869
+ * "name": "aqua21"
9897
9870
  * },
9898
9871
  * "at": "2020-02-15T19:13:05.329Z",
9899
9872
  * "gameId": "UxNJmMXz"
@@ -9902,8 +9875,7 @@ export interface operations {
9902
9875
  * "opRating": 2163,
9903
9876
  * "opId": {
9904
9877
  * "id": "staffan67",
9905
- * "name": "Staffan67",
9906
- * "title": null
9878
+ * "name": "Staffan67"
9907
9879
  * },
9908
9880
  * "at": "2022-12-28T10:54:21.597Z",
9909
9881
  * "gameId": "9IMlwEv1"
@@ -9912,8 +9884,7 @@ export interface operations {
9912
9884
  * "opRating": 2120,
9913
9885
  * "opId": {
9914
9886
  * "id": "heissenberger",
9915
- * "name": "Heissenberger",
9916
- * "title": null
9887
+ * "name": "Heissenberger"
9917
9888
  * },
9918
9889
  * "at": "2021-10-25T08:26:27.155Z",
9919
9890
  * "gameId": "2buPRuV8"
@@ -9922,8 +9893,7 @@ export interface operations {
9922
9893
  * "opRating": 2051,
9923
9894
  * "opId": {
9924
9895
  * "id": "stas235",
9925
- * "name": "Stas235",
9926
- * "title": null
9896
+ * "name": "Stas235"
9927
9897
  * },
9928
9898
  * "at": "2021-11-06T18:55:53.728Z",
9929
9899
  * "gameId": "VLxCVzDY"
@@ -9932,8 +9902,7 @@ export interface operations {
9932
9902
  * "opRating": 2040,
9933
9903
  * "opId": {
9934
9904
  * "id": "harryz-77",
9935
- * "name": "Harryz-77",
9936
- * "title": null
9905
+ * "name": "Harryz-77"
9937
9906
  * },
9938
9907
  * "at": "2021-11-03T17:39:40.181Z",
9939
9908
  * "gameId": "eCgiYDS7"
@@ -9946,8 +9915,7 @@ export interface operations {
9946
9915
  * "opRating": 995,
9947
9916
  * "opId": {
9948
9917
  * "id": "dahupetitjoueur",
9949
- * "name": "dahupetitjoueur",
9950
- * "title": null
9918
+ * "name": "dahupetitjoueur"
9951
9919
  * },
9952
9920
  * "at": "2017-04-12T14:31:58.002Z",
9953
9921
  * "gameId": "7zyddy2c"
@@ -9956,8 +9924,7 @@ export interface operations {
9956
9924
  * "opRating": 1121,
9957
9925
  * "opId": {
9958
9926
  * "id": "tinkugupta1011",
9959
- * "name": "Tinkugupta1011",
9960
- * "title": null
9927
+ * "name": "Tinkugupta1011"
9961
9928
  * },
9962
9929
  * "at": "2022-10-22T03:36:35.447Z",
9963
9930
  * "gameId": "CCyyGKmD"
@@ -9966,8 +9933,7 @@ export interface operations {
9966
9933
  * "opRating": 1146,
9967
9934
  * "opId": {
9968
9935
  * "id": "chemkhihabib",
9969
- * "name": "chemkhihabib",
9970
- * "title": null
9936
+ * "name": "chemkhihabib"
9971
9937
  * },
9972
9938
  * "at": "2016-06-01T09:31:09.694Z",
9973
9939
  * "gameId": "XatMm3RO"
@@ -9986,8 +9952,7 @@ export interface operations {
9986
9952
  * "opRating": 1182,
9987
9953
  * "opId": {
9988
9954
  * "id": "skanerterry",
9989
- * "name": "skanerterry",
9990
- * "title": null
9955
+ * "name": "skanerterry"
9991
9956
  * },
9992
9957
  * "at": "2016-06-09T15:32:10.474Z",
9993
9958
  * "gameId": "n4ViqGlp"
@@ -30753,7 +30718,7 @@ export interface operations {
30753
30718
  /**
30754
30719
  * @description Clock initial time in seconds
30755
30720
  * @example 300
30756
- * @enum {number}
30721
+ * @enum {integer}
30757
30722
  */
30758
30723
  "clock.limit":
30759
30724
  | 0
@@ -30865,8 +30830,9 @@ export interface operations {
30865
30830
  * - 30 = All Lichess players
30866
30831
  *
30867
30832
  * @default 20
30833
+ * @enum {integer}
30868
30834
  */
30869
- chatFor?: number;
30835
+ chatFor?: 0 | 10 | 20 | 30;
30870
30836
  /**
30871
30837
  * @description Minimum rating to join. Leave empty to let everyone join the tournament.
30872
30838
  * @enum {integer}
@@ -30993,7 +30959,7 @@ export interface operations {
30993
30959
  /**
30994
30960
  * @description Clock initial time in seconds
30995
30961
  * @example 300
30996
- * @enum {number}
30962
+ * @enum {integer}
30997
30963
  */
30998
30964
  "clock.limit":
30999
30965
  | 0
@@ -31098,8 +31064,9 @@ export interface operations {
31098
31064
  * - 30 = All Lichess players
31099
31065
  *
31100
31066
  * @default 20
31067
+ * @enum {integer}
31101
31068
  */
31102
- chatFor?: number;
31069
+ chatFor?: 0 | 10 | 20 | 30;
31103
31070
  /**
31104
31071
  * @description Minimum rating to join. Leave empty to let everyone join the tournament.
31105
31072
  * @enum {integer}
@@ -35914,12 +35881,8 @@ export interface operations {
35914
35881
  * @example 15
35915
35882
  */
35916
35883
  increment: number;
35917
- /**
35918
- * @description The color to play. Better left empty to automatically get 50% white.
35919
- * @default random
35920
- * @enum {string}
35921
- */
35922
- color?: "random" | "white" | "black";
35884
+ /** @description The color to play. Better left empty to automatically get 50% white. */
35885
+ color?: components["schemas"]["ChallengeColor"];
35923
35886
  }
35924
35887
  | {
35925
35888
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.92",
3
+ "version": "2.0.94",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",