@lichess-org/types 2.0.91 → 2.0.93

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 +371 -294
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -4202,23 +4202,13 @@ export interface components {
4202
4202
  */
4203
4203
  playing?: string;
4204
4204
  count?: components["schemas"]["Count"];
4205
- /** @example false */
4206
4205
  streaming?: boolean;
4207
4206
  streamer?: components["schemas"]["UserStreamer"];
4208
- /**
4209
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4210
- * @example true
4211
- */
4207
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4212
4208
  followable?: boolean;
4213
- /**
4214
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4215
- * @example false
4216
- */
4209
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4217
4210
  following?: boolean;
4218
- /**
4219
- * @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication)
4220
- * @example false
4221
- */
4211
+ /** @description only appears if the request is [authenticated with OAuth2](#section/Introduction/Authentication) */
4222
4212
  blocking?: boolean;
4223
4213
  };
4224
4214
  /** @example {
@@ -4301,232 +4291,171 @@ export interface components {
4301
4291
  | "kingOfTheHill"
4302
4292
  | "racingKings"
4303
4293
  | "threeCheck";
4304
- /** @example {
4305
- * "user": {
4306
- * "name": "thibault"
4307
- * },
4308
- * "perf": {
4309
- * "glicko": {
4310
- * "rating": 1672.42,
4311
- * "deviation": 45.13,
4312
- * "provisional": false
4313
- * },
4314
- * "nb": 5692,
4315
- * "progress": -27
4316
- * },
4317
- * "rank": 98121,
4318
- * "percentile": 69.7,
4319
- * "stat": {
4320
- * "perfType": {
4321
- * "key": "bullet",
4322
- * "name": "Bullet"
4323
- * },
4324
- * "highest": {
4325
- * "int": 1902,
4326
- * "at": "2021-05-31T08:58:53.701Z",
4327
- * "gameId": "YEDqtwig"
4328
- * },
4329
- * "lowest": {
4330
- * "int": 1417,
4331
- * "at": "2016-06-28T13:54:39.656Z",
4332
- * "gameId": "rNM4J1GJ"
4333
- * },
4334
- * "id": "thibault/1",
4335
- * "bestWins": {
4336
- * "results": [
4337
- * {
4338
- * "opRating": 2238,
4339
- * "opId": {
4340
- * "id": "hyperdragon84",
4341
- * "name": "HyperDragon84"
4342
- * },
4343
- * "at": "2019-06-19T17:09:05.187Z",
4344
- * "gameId": "DGB53z9w"
4345
- * },
4346
- * {
4347
- * "opRating": 2089,
4348
- * "opId": {
4349
- * "id": "osipov",
4350
- * "name": "osipov"
4351
- * },
4352
- * "at": "2017-06-18T09:46:05.016Z",
4353
- * "gameId": "gurRhuMi"
4354
- * },
4355
- * {
4356
- * "opRating": 2071,
4357
- * "opId": {
4358
- * "id": "spark50",
4359
- * "name": "Spark50"
4360
- * },
4361
- * "at": "2020-07-04T08:36:12.948Z",
4362
- * "gameId": "a93Dk1mv"
4363
- * },
4364
- * {
4365
- * "opRating": 2045,
4366
- * "opId": {
4367
- * "id": "yasha43",
4368
- * "name": "Yasha43"
4369
- * },
4370
- * "at": "2021-05-17T14:01:41.098Z",
4371
- * "gameId": "j3jZnGTr"
4372
- * },
4373
- * {
4374
- * "opRating": 2034,
4375
- * "opId": {
4376
- * "id": "midedu",
4377
- * "name": "midedu"
4378
- * },
4379
- * "at": "2020-06-27T17:32:47.001Z",
4380
- * "gameId": "OiaMVLQ8"
4381
- * }
4382
- * ]
4383
- * },
4384
- * "worstLosses": {
4385
- * "results": [
4386
- * {
4387
- * "opRating": 1186,
4388
- * "opId": {
4389
- * "id": "happy0",
4390
- * "name": "Happy0"
4391
- * },
4392
- * "at": "2016-07-07T19:48:29.077Z",
4393
- * "gameId": "Q01bbiN4"
4394
- * },
4395
- * {
4396
- * "opRating": 1197,
4397
- * "opId": {
4398
- * "id": "kazmankiller86",
4399
- * "name": "KazmanKiller86"
4400
- * },
4401
- * "at": "2016-10-16T14:21:37.748Z",
4402
- * "gameId": "Aivqh9Sp"
4403
- * },
4404
- * {
4405
- * "opRating": 1201,
4406
- * "opId": {
4407
- * "id": "artem555",
4408
- * "name": "artem555"
4409
- * },
4410
- * "at": "2016-08-28T16:21:30.923Z",
4411
- * "gameId": "tiRAbhnX"
4412
- * },
4413
- * {
4414
- * "opRating": 1265,
4415
- * "opId": {
4416
- * "id": "arcenuu",
4417
- * "name": "Arcenuu"
4418
- * },
4419
- * "at": "2016-12-24T14:28:03.866Z",
4420
- * "gameId": "A68wUOoh"
4421
- * },
4422
- * {
4423
- * "opRating": 1283,
4424
- * "opId": {
4425
- * "id": "amritalib76",
4426
- * "name": "Amritalib76"
4427
- * },
4428
- * "at": "2018-06-26T09:55:39.354Z",
4429
- * "gameId": "sbNVikmo"
4430
- * }
4431
- * ]
4432
- * },
4433
- * "count": {
4434
- * "all": 5858,
4435
- * "rated": 5688,
4436
- * "win": 2789,
4437
- * "loss": 2806,
4438
- * "draw": 263,
4439
- * "tour": 654,
4440
- * "berserk": 1,
4441
- * "opAvg": 1671.44,
4442
- * "seconds": 784886,
4443
- * "disconnects": 0
4444
- * },
4445
- * "resultStreak": {
4446
- * "win": {
4447
- * "cur": {
4448
- * "v": 0
4449
- * },
4450
- * "max": {
4451
- * "v": 11,
4452
- * "from": {
4453
- * "at": "2021-06-14T15:38:50.681Z",
4454
- * "gameId": "wTX2IExo"
4455
- * },
4456
- * "to": {
4457
- * "at": "2021-06-15T18:41:46.970Z",
4458
- * "gameId": "1z4rrjgw"
4459
- * }
4460
- * }
4461
- * },
4462
- * "loss": {
4463
- * "cur": {
4464
- * "v": 3,
4465
- * "from": {
4466
- * "at": "2021-06-29T17:53:23.642Z",
4467
- * "gameId": "pfcnjgik"
4468
- * },
4469
- * "to": {
4470
- * "at": "2021-06-29T18:04:48.358Z",
4471
- * "gameId": "6sPaGL8T"
4472
- * }
4473
- * },
4474
- * "max": {
4475
- * "v": 14,
4476
- * "from": {
4477
- * "at": "2018-06-11T14:43:39.296Z",
4478
- * "gameId": "1fc9dqun"
4479
- * },
4480
- * "to": {
4481
- * "at": "2018-06-11T15:10:30.908Z",
4482
- * "gameId": "Nzy6UgwY"
4483
- * }
4484
- * }
4485
- * }
4486
- * },
4487
- * "userId": {
4488
- * "id": "thibault",
4489
- * "name": "thibault",
4490
- * "title": null
4491
- * },
4492
- * "playStreak": {
4493
- * "nb": {
4494
- * "cur": {
4495
- * "v": 0
4496
- * },
4497
- * "max": {
4498
- * "v": 118,
4499
- * "from": {
4500
- * "at": "2018-06-11T10:32:21.248Z",
4501
- * "gameId": "UAsNnJbN"
4502
- * },
4503
- * "to": {
4504
- * "at": "2018-06-11T15:13:01.193Z",
4505
- * "gameId": "T7fHRaFG"
4506
- * }
4507
- * }
4508
- * },
4509
- * "time": {
4510
- * "cur": {
4511
- * "v": 0
4512
- * },
4513
- * "max": {
4514
- * "v": 12683,
4515
- * "from": {
4516
- * "at": "2018-06-12T14:11:14.021Z",
4517
- * "gameId": "IrZCAW58"
4518
- * },
4519
- * "to": {
4520
- * "at": "2018-06-12T18:02:57.010Z",
4521
- * "gameId": "RNF1mQ68"
4522
- * }
4523
- * }
4524
- * },
4525
- * "lastDate": "2021-06-29T18:04:48.358Z"
4526
- * }
4527
- * }
4528
- * } */
4529
- PerfStat: unknown;
4294
+ LightUser: {
4295
+ id: string;
4296
+ name: string;
4297
+ flair?: components["schemas"]["Flair"];
4298
+ title?: components["schemas"]["Title"];
4299
+ /** @deprecated */
4300
+ patron?: boolean;
4301
+ patronColor?: components["schemas"]["PatronColor"];
4302
+ };
4303
+ PerfStat: {
4304
+ user: {
4305
+ name: string;
4306
+ };
4307
+ perf: {
4308
+ glicko?: {
4309
+ rating?: number;
4310
+ deviation?: number;
4311
+ provisional?: boolean;
4312
+ };
4313
+ nb?: number;
4314
+ progress?: number;
4315
+ };
4316
+ rank: number | null;
4317
+ percentile: number;
4318
+ stat: {
4319
+ highest?: {
4320
+ int: number;
4321
+ /** Format: date-time */
4322
+ at: string;
4323
+ gameId: string;
4324
+ };
4325
+ lowest?: {
4326
+ int: number;
4327
+ /** Format: date-time */
4328
+ at: string;
4329
+ gameId: string;
4330
+ };
4331
+ bestWins: {
4332
+ results: {
4333
+ opRating: number;
4334
+ opId: components["schemas"]["LightUser"];
4335
+ /** Format: date-time */
4336
+ at: string;
4337
+ gameId: string;
4338
+ }[];
4339
+ };
4340
+ worstLosses: {
4341
+ results: {
4342
+ opRating: number;
4343
+ opId: components["schemas"]["LightUser"];
4344
+ /** Format: date-time */
4345
+ at: string;
4346
+ gameId: string;
4347
+ }[];
4348
+ };
4349
+ count: {
4350
+ all: number;
4351
+ rated: number;
4352
+ win: number;
4353
+ loss: number;
4354
+ draw: number;
4355
+ tour: number;
4356
+ berserk: number;
4357
+ opAvg: number;
4358
+ seconds: number;
4359
+ disconnects: number;
4360
+ };
4361
+ resultStreak: {
4362
+ win: {
4363
+ cur: {
4364
+ v: number;
4365
+ from?: {
4366
+ /** Format: date-time */
4367
+ at: string;
4368
+ gameId: string;
4369
+ };
4370
+ to?: {
4371
+ /** Format: date-time */
4372
+ at: string;
4373
+ gameId: string;
4374
+ };
4375
+ };
4376
+ max: {
4377
+ v: number;
4378
+ from?: {
4379
+ /** Format: date-time */
4380
+ at: string;
4381
+ gameId: string;
4382
+ };
4383
+ to?: {
4384
+ /** Format: date-time */
4385
+ at: string;
4386
+ gameId: string;
4387
+ };
4388
+ };
4389
+ };
4390
+ loss: {
4391
+ cur: {
4392
+ v: number;
4393
+ from?: {
4394
+ /** Format: date-time */
4395
+ at: string;
4396
+ gameId: string;
4397
+ };
4398
+ to?: {
4399
+ /** Format: date-time */
4400
+ at: string;
4401
+ gameId: string;
4402
+ };
4403
+ };
4404
+ max: {
4405
+ v: number;
4406
+ from?: {
4407
+ at: string;
4408
+ gameId: string;
4409
+ };
4410
+ to?: {
4411
+ at: string;
4412
+ gameId: string;
4413
+ };
4414
+ };
4415
+ };
4416
+ };
4417
+ playStreak: {
4418
+ nb: {
4419
+ cur: {
4420
+ v: number;
4421
+ };
4422
+ max: {
4423
+ v: number;
4424
+ from?: {
4425
+ /** Format: date-time */
4426
+ at: string;
4427
+ gameId: string;
4428
+ };
4429
+ to?: {
4430
+ /** Format: date-time */
4431
+ at: string;
4432
+ gameId: string;
4433
+ };
4434
+ };
4435
+ };
4436
+ time: {
4437
+ cur: {
4438
+ v: number;
4439
+ };
4440
+ max: {
4441
+ v: number;
4442
+ from?: {
4443
+ /** Format: date-time */
4444
+ at: string;
4445
+ gameId: string;
4446
+ };
4447
+ to?: {
4448
+ /** Format: date-time */
4449
+ at: string;
4450
+ gameId: string;
4451
+ };
4452
+ };
4453
+ };
4454
+ /** Format: date-time */
4455
+ lastDate?: string;
4456
+ };
4457
+ };
4458
+ };
4530
4459
  UserActivityScore: {
4531
4460
  win: number;
4532
4461
  loss: number;
@@ -5305,15 +5234,6 @@ export interface components {
5305
5234
  | "unknownFinish"
5306
5235
  | "insufficientMaterialClaim"
5307
5236
  | "variantEnd";
5308
- LightUser: {
5309
- id: string;
5310
- name: string;
5311
- flair?: components["schemas"]["Flair"];
5312
- title?: components["schemas"]["Title"];
5313
- /** @deprecated */
5314
- patron?: boolean;
5315
- patronColor?: components["schemas"]["PatronColor"];
5316
- };
5317
5237
  GamePlayerUser: {
5318
5238
  user: components["schemas"]["LightUser"];
5319
5239
  rating: number;
@@ -5531,12 +5451,41 @@ export interface components {
5531
5451
  | "simul"
5532
5452
  | "relay"
5533
5453
  | "pool"
5454
+ | "arena"
5534
5455
  | "swiss";
5535
5456
  Variant: {
5536
5457
  key: components["schemas"]["VariantKey"];
5537
5458
  name: string;
5538
5459
  short?: string;
5539
5460
  };
5461
+ GameStatus: {
5462
+ id: components["schemas"]["GameStatusId"];
5463
+ name: components["schemas"]["GameStatusName"];
5464
+ };
5465
+ MoveStreamEntry:
5466
+ | {
5467
+ id: string;
5468
+ variant?: components["schemas"]["Variant"];
5469
+ speed?: components["schemas"]["Speed"];
5470
+ perf?: components["schemas"]["PerfType"];
5471
+ rated?: boolean;
5472
+ initialFen?: string;
5473
+ fen?: string;
5474
+ player?: components["schemas"]["GameColor"];
5475
+ turns?: number;
5476
+ startedAtTurn?: number;
5477
+ source?: components["schemas"]["GameSource"];
5478
+ status?: components["schemas"]["GameStatus"];
5479
+ createdAt?: number;
5480
+ lastMove?: string;
5481
+ players?: components["schemas"]["GamePlayers"];
5482
+ }
5483
+ | {
5484
+ fen: string;
5485
+ lm?: string;
5486
+ wc: number;
5487
+ bc: number;
5488
+ };
5540
5489
  /** @example [
5541
5490
  * {
5542
5491
  * "id": "LuGQwhBb",
@@ -5608,7 +5557,7 @@ export interface components {
5608
5557
  * "bc": 177
5609
5558
  * }
5610
5559
  * ] */
5611
- MoveStream: unknown;
5560
+ MoveStream: components["schemas"]["MoveStreamEntry"][];
5612
5561
  TvGame: {
5613
5562
  user: components["schemas"]["LightUser"];
5614
5563
  rating: number;
@@ -5994,7 +5943,7 @@ export interface components {
5994
5943
  * { This chapter will go over the Dragon Variation, a very common variation used by Black and it is the most aggressive variation in the Sicilian defense. }
5995
5944
  * 1. e4 c5 2. Nf3 { Simple developing move to control the d4 square } { [%csl Gd4,Gc5][%cal Gf3d4,Gc5d4] } 2... d6 { [%cal Gd6e5] } (2... e6 3. d4 cxd4 4. Nxd4 Nf6 5. e5 (5. Nc3 { [%cal Ge4e5] }) 5... Qa5+) 3. d4 { Whites want the exchange of pawns } { [%cal Gc5d4] } 3... cxd4 { [%cal Gf3d4] } 4. Nxd4 { Whites are now ahead in development but blacks still have the two central pawns whereas whites only one. } { [%csl Ge7,Gd6,Ge4] } 4... Nf6 { Blacks are now developing their knight and threatening the e4 pawn } { [%csl Ge4][%cal Gf6e4] } 5. Nc3 { The e4 pawn is now protected by the c3 knight } { [%csl Ge4,Bc3][%cal Rf6e4,Bc3e4] } 5... g6 { This is the DRAGON VARIATION. g6 allows the dark-squared bishop to develop and move to g7, controlling the long dark-squared diagonal } { [%csl Gd4] } 6. Be3 { [%cal Gd1d2,Gf2f3,Ge1c1,Gg2g4,Gh2h4,Gg4g5] } (6. Be2 Bg7 7. O-O Nc6 8. Be3 { [%cal Ge3d4] } (8. f3 Nxe4 { [%cal Gg7d4,Gc6d4] } 9. Nxc6 Qb6+ { [%cal Gb6c6,Gb6g1] } 10. Kh1 Nxc3 { [%cal Gc3d1,Gc3e2] } 11. bxc3 bxc6 { [%cal Gc8a6] }) 8... O-O 9. Nb3 a6 { [%cal Gb7b5,Gb5b4,Ge2c4] }) 6... Bg7 (6... Ng4 { [%cal Gg4e3] } 7. Bb5+ { [%cal Gb5e8,Gb8d7,Gc8d7,Gd1g4] } 7... Nc6 8. Nxc6 bxc6 9. Bxc6+ { [%cal Gc6a8] }) 7. f3 { The key opening moves for White, who attempt to castle queenside , whereas f3 strengthens the pawn structure, connecting e4 to the h2 and g2, while White also plan pushing to g4 and possibly h4. } { [%csl Bf3,Be3][%cal Rg2g4,Rh2h4,Rg4g5] } 7... O-O (7... h5 { Is operating against g4. }) 8. Qd2 { [%csl Gh6,Gg7][%cal Ge1c1,Ga1d1,Re3h6,Rd2h6] } 8... Nc6 { [%csl Gc6,Gh6][%cal Gb8c6,Ge1c1,Ga7a6,Ge3h6] } 9. g4 (9. Bh6 { [%cal Ge3d4] } 9... Bxh6 10. Qxh6 Nxd4) 9... Be6 10. Nxe6 fxe6 { [%cal Gf8f1] } 11. O-O-O Ne5 12. Be2 { [%csl Gf3][%cal Re5f3,Bd1h1,Bg1d1] } 12... Qc7 { [%csl Gc4][%cal Ge5c4,Gc4e3,Gc4d2,Bf8c8,Yc7c3] } 13. h4 Nc4 *
5996
5945
  * */
5997
- StudyPgn: unknown;
5946
+ StudyPgn: string;
5998
5947
  /** @example {
5999
5948
  * "chapters": [
6000
5949
  * {
@@ -6725,10 +6674,6 @@ export interface components {
6725
6674
  */
6726
6675
  date?: number;
6727
6676
  };
6728
- GameStatus: {
6729
- id: components["schemas"]["GameStatusId"];
6730
- name: components["schemas"]["GameStatusName"];
6731
- };
6732
6677
  GameEventOpponent:
6733
6678
  | {
6734
6679
  id: string;
@@ -6768,6 +6713,7 @@ export interface components {
6768
6713
  ratingDiff?: number;
6769
6714
  compat?: components["schemas"]["GameCompat"];
6770
6715
  id?: string;
6716
+ tournamentId?: string;
6771
6717
  };
6772
6718
  GameStartEvent: {
6773
6719
  /** @constant */
@@ -7333,8 +7279,7 @@ export interface components {
7333
7279
  };
7334
7280
  OpeningExplorerMastersGame: {
7335
7281
  id: string;
7336
- /** @enum {string|null} */
7337
- winner: "white" | "black" | null;
7282
+ winner: components["schemas"]["GameColor"] | null;
7338
7283
  white: components["schemas"]["OpeningExplorerGamePlayer"];
7339
7284
  black: components["schemas"]["OpeningExplorerGamePlayer"];
7340
7285
  year: number;
@@ -7361,8 +7306,7 @@ export interface components {
7361
7306
  };
7362
7307
  OpeningExplorerLichessGame: {
7363
7308
  id: string;
7364
- /** @enum {string|null} */
7365
- winner: "white" | "black" | null;
7309
+ winner: components["schemas"]["GameColor"] | null;
7366
7310
  speed?: components["schemas"]["Speed"];
7367
7311
  white: components["schemas"]["OpeningExplorerGamePlayer"];
7368
7312
  black: components["schemas"]["OpeningExplorerGamePlayer"];
@@ -7399,8 +7343,7 @@ export interface components {
7399
7343
  };
7400
7344
  OpeningExplorerPlayerGame: {
7401
7345
  id: string;
7402
- /** @enum {string|null} */
7403
- winner: "white" | "black" | null;
7346
+ winner: components["schemas"]["GameColor"] | null;
7404
7347
  speed: components["schemas"]["Speed"];
7405
7348
  /** @enum {string} */
7406
7349
  mode: "rated" | "casual";
@@ -9892,62 +9835,179 @@ export interface operations {
9892
9835
  content: {
9893
9836
  /** @example {
9894
9837
  * "user": {
9895
- * "name": "Jose"
9838
+ * "name": "thibault"
9896
9839
  * },
9897
9840
  * "perf": {
9898
9841
  * "glicko": {
9899
- * "rating": 980,
9900
- * "deviation": 95.23
9842
+ * "rating": 1785.99,
9843
+ * "deviation": 53.67
9901
9844
  * },
9902
- * "nb": 158,
9903
- * "progress": 10
9845
+ * "nb": 11537,
9846
+ * "progress": 4
9904
9847
  * },
9905
9848
  * "rank": null,
9906
- * "percentile": 20.3,
9849
+ * "percentile": 75.1,
9907
9850
  * "stat": {
9908
- * "id": "jose/2",
9909
- * "userId": {
9910
- * "id": "jose",
9911
- * "name": "Jose",
9912
- * "title": null
9851
+ * "highest": {
9852
+ * "int": 1970,
9853
+ * "at": "2022-02-23T13:44:54.633Z",
9854
+ * "gameId": "Blpjmhnf"
9913
9855
  * },
9914
- * "perfType": {
9915
- * "key": "blitz",
9916
- * "name": "Blitz"
9856
+ * "lowest": {
9857
+ * "int": 1385,
9858
+ * "at": "2015-08-05T10:13:41.326Z",
9859
+ * "gameId": "tgbRykg2"
9917
9860
  * },
9918
9861
  * "bestWins": {
9919
- * "results": []
9862
+ * "results": [
9863
+ * {
9864
+ * "opRating": 2239,
9865
+ * "opId": {
9866
+ * "id": "aqua21",
9867
+ * "name": "aqua21"
9868
+ * },
9869
+ * "at": "2020-02-15T19:13:05.329Z",
9870
+ * "gameId": "UxNJmMXz"
9871
+ * },
9872
+ * {
9873
+ * "opRating": 2163,
9874
+ * "opId": {
9875
+ * "id": "staffan67",
9876
+ * "name": "Staffan67"
9877
+ * },
9878
+ * "at": "2022-12-28T10:54:21.597Z",
9879
+ * "gameId": "9IMlwEv1"
9880
+ * },
9881
+ * {
9882
+ * "opRating": 2120,
9883
+ * "opId": {
9884
+ * "id": "heissenberger",
9885
+ * "name": "Heissenberger"
9886
+ * },
9887
+ * "at": "2021-10-25T08:26:27.155Z",
9888
+ * "gameId": "2buPRuV8"
9889
+ * },
9890
+ * {
9891
+ * "opRating": 2051,
9892
+ * "opId": {
9893
+ * "id": "stas235",
9894
+ * "name": "Stas235"
9895
+ * },
9896
+ * "at": "2021-11-06T18:55:53.728Z",
9897
+ * "gameId": "VLxCVzDY"
9898
+ * },
9899
+ * {
9900
+ * "opRating": 2040,
9901
+ * "opId": {
9902
+ * "id": "harryz-77",
9903
+ * "name": "Harryz-77"
9904
+ * },
9905
+ * "at": "2021-11-03T17:39:40.181Z",
9906
+ * "gameId": "eCgiYDS7"
9907
+ * }
9908
+ * ]
9920
9909
  * },
9921
9910
  * "worstLosses": {
9922
- * "results": []
9911
+ * "results": [
9912
+ * {
9913
+ * "opRating": 995,
9914
+ * "opId": {
9915
+ * "id": "dahupetitjoueur",
9916
+ * "name": "dahupetitjoueur"
9917
+ * },
9918
+ * "at": "2017-04-12T14:31:58.002Z",
9919
+ * "gameId": "7zyddy2c"
9920
+ * },
9921
+ * {
9922
+ * "opRating": 1121,
9923
+ * "opId": {
9924
+ * "id": "tinkugupta1011",
9925
+ * "name": "Tinkugupta1011"
9926
+ * },
9927
+ * "at": "2022-10-22T03:36:35.447Z",
9928
+ * "gameId": "CCyyGKmD"
9929
+ * },
9930
+ * {
9931
+ * "opRating": 1146,
9932
+ * "opId": {
9933
+ * "id": "chemkhihabib",
9934
+ * "name": "chemkhihabib"
9935
+ * },
9936
+ * "at": "2016-06-01T09:31:09.694Z",
9937
+ * "gameId": "XatMm3RO"
9938
+ * },
9939
+ * {
9940
+ * "opRating": 1166,
9941
+ * "opId": {
9942
+ * "id": "bottios",
9943
+ * "name": "Bottios",
9944
+ * "title": "BOT"
9945
+ * },
9946
+ * "at": "2018-12-14T09:22:52.633Z",
9947
+ * "gameId": "3fke4MHX"
9948
+ * },
9949
+ * {
9950
+ * "opRating": 1182,
9951
+ * "opId": {
9952
+ * "id": "skanerterry",
9953
+ * "name": "skanerterry"
9954
+ * },
9955
+ * "at": "2016-06-09T15:32:10.474Z",
9956
+ * "gameId": "n4ViqGlp"
9957
+ * }
9958
+ * ]
9923
9959
  * },
9924
9960
  * "count": {
9925
- * "all": 158,
9926
- * "rated": 120,
9927
- * "win": 69,
9928
- * "loss": 77,
9929
- * "draw": 12,
9930
- * "tour": 85,
9931
- * "berserk": 28,
9932
- * "opAvg": 0.52,
9933
- * "seconds": 47400,
9934
- * "disconnects": 8
9961
+ * "all": 12021,
9962
+ * "rated": 11415,
9963
+ * "win": 5689,
9964
+ * "loss": 5763,
9965
+ * "draw": 569,
9966
+ * "tour": 1587,
9967
+ * "berserk": 49,
9968
+ * "opAvg": 1706.12,
9969
+ * "seconds": 3733379,
9970
+ * "disconnects": 9
9935
9971
  * },
9936
9972
  * "resultStreak": {
9937
9973
  * "win": {
9938
9974
  * "cur": {
9939
- * "v": 0
9975
+ * "v": 2,
9976
+ * "from": {
9977
+ * "at": "2025-09-18T15:31:58.854Z",
9978
+ * "gameId": "gnjoI7dm"
9979
+ * },
9980
+ * "to": {
9981
+ * "at": "2025-10-13T16:31:59.436Z",
9982
+ * "gameId": "7WEM2Hc4"
9983
+ * }
9940
9984
  * },
9941
9985
  * "max": {
9942
- * "v": 4
9986
+ * "v": 11,
9987
+ * "from": {
9988
+ * "at": "2018-10-19T10:02:05.144Z",
9989
+ * "gameId": "ycmyqK6e"
9990
+ * },
9991
+ * "to": {
9992
+ * "at": "2018-10-19T12:25:31.868Z",
9993
+ * "gameId": "3PwQXIBN"
9994
+ * }
9943
9995
  * }
9944
9996
  * },
9945
9997
  * "loss": {
9946
9998
  * "cur": {
9947
- * "v": 1
9999
+ * "v": 0
9948
10000
  * },
9949
10001
  * "max": {
9950
- * "v": 3
10002
+ * "v": 19,
10003
+ * "from": {
10004
+ * "at": "2018-03-09T23:54:54.771Z",
10005
+ * "gameId": "iAJe1M8f"
10006
+ * },
10007
+ * "to": {
10008
+ * "at": "2018-03-16T20:52:03.611Z",
10009
+ * "gameId": "7CZ1SEF5"
10010
+ * }
9951
10011
  * }
9952
10012
  * }
9953
10013
  * },
@@ -9957,17 +10017,34 @@ export interface operations {
9957
10017
  * "v": 0
9958
10018
  * },
9959
10019
  * "max": {
9960
- * "v": 1
10020
+ * "v": 115,
10021
+ * "from": {
10022
+ * "at": "2024-10-18T11:32:12.142Z",
10023
+ * "gameId": "l819pRNp"
10024
+ * },
10025
+ * "to": {
10026
+ * "at": "2024-10-18T20:54:30.256Z",
10027
+ * "gameId": "1HeDeGbe"
10028
+ * }
9961
10029
  * }
9962
10030
  * },
9963
10031
  * "time": {
9964
10032
  * "cur": {
9965
- * "v": 3
10033
+ * "v": 0
9966
10034
  * },
9967
10035
  * "max": {
9968
- * "v": 5
10036
+ * "v": 23231,
10037
+ * "from": {
10038
+ * "at": "2024-10-18T11:32:12.142Z",
10039
+ * "gameId": "l819pRNp"
10040
+ * },
10041
+ * "to": {
10042
+ * "at": "2024-10-18T20:54:30.256Z",
10043
+ * "gameId": "1HeDeGbe"
10044
+ * }
9969
10045
  * }
9970
- * }
10046
+ * },
10047
+ * "lastDate": "2025-10-13T16:31:59.436Z"
9971
10048
  * }
9972
10049
  * }
9973
10050
  * } */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.91",
3
+ "version": "2.0.93",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",