@lichess-org/types 2.0.167 → 2.0.169

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 +20 -363
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -495,26 +495,6 @@ export interface paths {
495
495
  patch?: never;
496
496
  trace?: never;
497
497
  };
498
- "/api/timeline": {
499
- parameters: {
500
- query?: never;
501
- header?: never;
502
- path?: never;
503
- cookie?: never;
504
- };
505
- /**
506
- * Get my timeline
507
- * @description Get the timeline events of the logged in user.
508
- */
509
- get: operations["timeline"];
510
- put?: never;
511
- post?: never;
512
- delete?: never;
513
- options?: never;
514
- head?: never;
515
- patch?: never;
516
- trace?: never;
517
- };
518
498
  "/game/export/{gameId}": {
519
499
  parameters: {
520
500
  query?: never;
@@ -4964,320 +4944,6 @@ export interface components {
4964
4944
  Ok: {
4965
4945
  ok: boolean;
4966
4946
  };
4967
- TimelineEntryFollow: {
4968
- /** @enum {string} */
4969
- type: "follow";
4970
- date: number;
4971
- data: {
4972
- u1: string;
4973
- u2: string;
4974
- };
4975
- };
4976
- TimelineEntryTeamJoin: {
4977
- /** @enum {string} */
4978
- type: "team-join";
4979
- date: number;
4980
- data: {
4981
- userId: string;
4982
- teamId: string;
4983
- };
4984
- };
4985
- TimelineEntryTeamCreate: {
4986
- /** @enum {string} */
4987
- type: "team-create";
4988
- date: number;
4989
- data: {
4990
- userId: string;
4991
- teamId: string;
4992
- };
4993
- };
4994
- TimelineEntryForumPost: {
4995
- /** @enum {string} */
4996
- type: "forum-post";
4997
- date: number;
4998
- data: {
4999
- userId: string;
5000
- topicId: string;
5001
- topicName: string;
5002
- postId: string;
5003
- };
5004
- };
5005
- TimelineEntryBlogPost: {
5006
- /** @enum {string} */
5007
- type: "blog-post";
5008
- date: number;
5009
- data: {
5010
- id: string;
5011
- slug: string;
5012
- title: string;
5013
- };
5014
- };
5015
- TimelineEntryUblogPost: {
5016
- /** @enum {string} */
5017
- type: "ublog-post";
5018
- date: number;
5019
- data: {
5020
- userId: string;
5021
- id: string;
5022
- slug: string;
5023
- title: string;
5024
- };
5025
- };
5026
- TimelineEntryTourJoin: {
5027
- /** @enum {string} */
5028
- type: "tour-join";
5029
- date: number;
5030
- data: {
5031
- userId: string;
5032
- tourId: string;
5033
- tourName: string;
5034
- };
5035
- };
5036
- TimelineEntryGameEnd: {
5037
- /** @enum {string} */
5038
- type: "game-end";
5039
- date: number;
5040
- data: {
5041
- fullId: string;
5042
- opponent: string;
5043
- win: boolean;
5044
- perf: components["schemas"]["PerfType"];
5045
- };
5046
- };
5047
- TimelineEntrySimul: {
5048
- /** @enum {string} */
5049
- type: "simul-create" | "simul-join";
5050
- date: number;
5051
- data: {
5052
- userId: string;
5053
- simulId: string;
5054
- simulName: string;
5055
- };
5056
- };
5057
- TimelineEntryStudyLike: {
5058
- /** @enum {string} */
5059
- type: "study-like";
5060
- date: number;
5061
- data: {
5062
- userId: string;
5063
- studyId: string;
5064
- studyName: string;
5065
- };
5066
- };
5067
- TimelineEntryPlanStart: {
5068
- /** @enum {string} */
5069
- type: "plan-start";
5070
- date: number;
5071
- data: {
5072
- userId: string;
5073
- };
5074
- };
5075
- TimelineEntryPlanRenew: {
5076
- /** @enum {string} */
5077
- type: "plan-renew";
5078
- date: number;
5079
- data: {
5080
- userId: string;
5081
- months: number;
5082
- };
5083
- };
5084
- TimelineEntryUblogPostLike: {
5085
- /** @enum {string} */
5086
- type: "ublog-post-like";
5087
- date: number;
5088
- data: {
5089
- userId: string;
5090
- id: string;
5091
- title: string;
5092
- };
5093
- };
5094
- TimelineEntryStreamStart: {
5095
- /** @enum {string} */
5096
- type: "stream-start";
5097
- date: number;
5098
- data: {
5099
- id: string;
5100
- title?: string;
5101
- };
5102
- };
5103
- /**
5104
- * @example {
5105
- * "entries": [
5106
- * {
5107
- * "type": "follow",
5108
- * "data": {
5109
- * "u1": "neio",
5110
- * "u2": "chess-network"
5111
- * },
5112
- * "date": 1644232201429
5113
- * },
5114
- * {
5115
- * "type": "team-join",
5116
- * "data": {
5117
- * "userId": "neio",
5118
- * "teamId": "coders"
5119
- * },
5120
- * "date": 1644232201429
5121
- * },
5122
- * {
5123
- * "type": "team-create",
5124
- * "data": {
5125
- * "userId": "neio",
5126
- * "teamId": "coders"
5127
- * },
5128
- * "date": 1644232201429
5129
- * },
5130
- * {
5131
- * "type": "forum-post",
5132
- * "data": {
5133
- * "userId": "neio",
5134
- * "topicId": "AAAAAAAN",
5135
- * "topicName": "World's Tallest LEGO Tower Completed in City Square",
5136
- * "postId": "AAAAAAAL"
5137
- * },
5138
- * "date": 1644232201429
5139
- * },
5140
- * {
5141
- * "type": "ublog-post",
5142
- * "data": {
5143
- * "userId": "neio",
5144
- * "id": "og5pkt1c",
5145
- * "slug": "gotta-go-fast",
5146
- * "title": "Gotta Go Fast"
5147
- * },
5148
- * "date": 1644232201429
5149
- * },
5150
- * {
5151
- * "type": "tour-join",
5152
- * "data": {
5153
- * "userId": "chess-network",
5154
- * "tourId": "Z24oxqgU",
5155
- * "tourName": "Daily Blitz Arena"
5156
- * },
5157
- * "date": 1644232201429
5158
- * },
5159
- * {
5160
- * "type": "game-end",
5161
- * "data": {
5162
- * "fullId": "iGkAXUdEfLZC",
5163
- * "perf": "correspondence",
5164
- * "opponent": "chess-network",
5165
- * "win": false
5166
- * },
5167
- * "date": 1644232201429
5168
- * },
5169
- * {
5170
- * "type": "simul-create",
5171
- * "data": {
5172
- * "userId": "neio",
5173
- * "simulId": "m3c0Wvu3",
5174
- * "simulName": "RCA 1st Jan simul"
5175
- * },
5176
- * "date": 1644232201429
5177
- * },
5178
- * {
5179
- * "type": "simul-join",
5180
- * "data": {
5181
- * "userId": "chess-network",
5182
- * "simulId": "m3c0Wvu3",
5183
- * "simulName": "RCA 1st Jan simul"
5184
- * },
5185
- * "date": 1644232201429
5186
- * },
5187
- * {
5188
- * "type": "study-like",
5189
- * "data": {
5190
- * "userId": "neio",
5191
- * "studyId": "ma5AvZ7o",
5192
- * "studyName": "Free wins | Danish Gambit"
5193
- * },
5194
- * "date": 1644232201429
5195
- * },
5196
- * {
5197
- * "type": "plan-start",
5198
- * "data": {
5199
- * "userId": "chess-network"
5200
- * },
5201
- * "date": 1644232201429
5202
- * },
5203
- * {
5204
- * "type": "plan-renew",
5205
- * "data": {
5206
- * "userId": "chess-network",
5207
- * "months": 64
5208
- * },
5209
- * "date": 1644232201429
5210
- * },
5211
- * {
5212
- * "type": "blog-post",
5213
- * "data": {
5214
- * "id": "ZUviXRIAACYAVtMm",
5215
- * "slug": "lichess-development-made-easy-with-gitpod",
5216
- * "title": "Lichess Development Made Easy With Gitpod"
5217
- * },
5218
- * "date": 1644232201429
5219
- * },
5220
- * {
5221
- * "type": "ublog-post-like",
5222
- * "data": {
5223
- * "userId": "neio",
5224
- * "id": "ZUviXRIAACYAVtMm",
5225
- * "title": "Lichess Development Made Easy With Gitpod"
5226
- * },
5227
- * "date": 1644232201429
5228
- * },
5229
- * {
5230
- * "type": "stream-start",
5231
- * "data": {
5232
- * "id": "chess-network",
5233
- * "title": "Streamers Battle December !team | lichess.org"
5234
- * },
5235
- * "date": 1644232201429
5236
- * }
5237
- * ],
5238
- * "users": {
5239
- * "neio": {
5240
- * "id": "neio",
5241
- * "name": "Neio",
5242
- * "title": "NM"
5243
- * },
5244
- * "chess-network": {
5245
- * "id": "chess-network",
5246
- * "name": "Chess-Network",
5247
- * "title": "NM",
5248
- * "patron": true
5249
- * }
5250
- * }
5251
- * }
5252
- */
5253
- Timeline: {
5254
- entries: (
5255
- | components["schemas"]["TimelineEntryFollow"]
5256
- | components["schemas"]["TimelineEntryTeamJoin"]
5257
- | components["schemas"]["TimelineEntryTeamCreate"]
5258
- | components["schemas"]["TimelineEntryForumPost"]
5259
- | components["schemas"]["TimelineEntryBlogPost"]
5260
- | components["schemas"]["TimelineEntryUblogPost"]
5261
- | components["schemas"]["TimelineEntryTourJoin"]
5262
- | components["schemas"]["TimelineEntryGameEnd"]
5263
- | components["schemas"]["TimelineEntrySimul"]
5264
- | components["schemas"]["TimelineEntryStudyLike"]
5265
- | components["schemas"]["TimelineEntryPlanStart"]
5266
- | components["schemas"]["TimelineEntryPlanRenew"]
5267
- | components["schemas"]["TimelineEntryUblogPostLike"]
5268
- | components["schemas"]["TimelineEntryStreamStart"]
5269
- )[];
5270
- users: {
5271
- [key: string]: {
5272
- id: string;
5273
- name: string;
5274
- title?: components["schemas"]["Title"];
5275
- flair?: components["schemas"]["Flair"];
5276
- patron?: components["schemas"]["Patron"];
5277
- patronColor?: components["schemas"]["PatronColor"];
5278
- };
5279
- };
5280
- };
5281
4947
  /**
5282
4948
  * @example [Event "Rated Blitz game"]
5283
4949
  * [Site "https://lichess.org/fY44h4OY"]
@@ -5331,7 +4997,6 @@ export interface components {
5331
4997
  ratingDiff?: number;
5332
4998
  name?: string;
5333
4999
  provisional?: boolean;
5334
- aiLevel?: number;
5335
5000
  analysis?: {
5336
5001
  inaccuracy: number;
5337
5002
  mistake: number;
@@ -5346,9 +5011,27 @@ export interface components {
5346
5011
  };
5347
5012
  team?: string;
5348
5013
  };
5014
+ /**
5015
+ * @description One side of a game played by the Stockfish AI. AI sides carry the
5016
+ * strength level instead of `user` and `rating`.
5017
+ */
5018
+ GamePlayerAi: {
5019
+ aiLevel: number;
5020
+ analysis?: {
5021
+ inaccuracy: number;
5022
+ mistake: number;
5023
+ blunder: number;
5024
+ acpl: number;
5025
+ accuracy?: number;
5026
+ };
5027
+ };
5349
5028
  GamePlayers: {
5350
- white: components["schemas"]["GamePlayerUser"];
5351
- black: components["schemas"]["GamePlayerUser"];
5029
+ white:
5030
+ | components["schemas"]["GamePlayerUser"]
5031
+ | components["schemas"]["GamePlayerAi"];
5032
+ black:
5033
+ | components["schemas"]["GamePlayerUser"]
5034
+ | components["schemas"]["GamePlayerAi"];
5352
5035
  };
5353
5036
  GameOpening: {
5354
5037
  eco: string;
@@ -8644,32 +8327,6 @@ export interface operations {
8644
8327
  };
8645
8328
  };
8646
8329
  };
8647
- timeline: {
8648
- parameters: {
8649
- query?: {
8650
- /** @description Show events since this timestamp. */
8651
- since?: number;
8652
- /** @description Max number of events to fetch. */
8653
- nb?: number;
8654
- };
8655
- header?: never;
8656
- path?: never;
8657
- cookie?: never;
8658
- };
8659
- requestBody?: never;
8660
- responses: {
8661
- /** @description The events in the timeline of the logged in user. */
8662
- 200: {
8663
- headers: {
8664
- "Access-Control-Allow-Origin"?: string;
8665
- [name: string]: unknown;
8666
- };
8667
- content: {
8668
- "application/json": components["schemas"]["Timeline"];
8669
- };
8670
- };
8671
- };
8672
- };
8673
8330
  gamePgn: {
8674
8331
  parameters: {
8675
8332
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.167",
3
+ "version": "2.0.169",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",