speedruncom.js 1.3.1 → 2.0.1

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.
@@ -1,673 +1,653 @@
1
- //Endpoints that don't give the "Method Not Allowed" error when called with GET.
1
+ //Endpoints that don't give the "Method Not Allowed" error when called with `GET`.
2
2
 
3
- import * as Enums from '../enums.js';
4
- import * as Interfaces from '../interfaces.js';
5
- import { AtLeastOne } from '../types.js';
3
+ import * as Enums from '../enums';
4
+ import * as Interfaces from '../interfaces';
6
5
 
7
- /**
8
- * Gets a leaderboard, with Players included.
9
- *
10
- * `GetGameLeaderboard` can fetch twice as many runs, and also fetches Games, Platforms, Regions, Values, and Variables.
11
- */
12
- export interface GetGameLeaderboard2 {
6
+ export default interface GETEndpoints {
13
7
 
14
8
  /**
15
- * The leaderboard to fetch.
16
- */
17
- params: Interfaces.LeaderboardParams;
18
-
19
- /**
20
- * The maximum amount of `Run`s per page.
9
+ * Gets a leaderboard, with Players included.
21
10
  *
22
- * @max 100
23
- * @default 100
11
+ * `GetGameLeaderboard` can fetch twice as many runs, and also fetches Games, Platforms, Regions, Values, and Variables.
24
12
  */
25
- limit?: number;
13
+ GetGameLeaderboard2: {
26
14
 
27
- /**
28
- * The leaderboard page, in relation to `limit`.
29
- */
30
- page?: number;
31
-
32
- }
15
+ /**
16
+ * The leaderboard to fetch.
17
+ */
18
+ params: Interfaces.LeaderboardParams;
33
19
 
34
- /**
35
- * Gets a leaderboard, with all relevant items included.
36
- *
37
- * `GetGameLeaderboard2` only includes Runs and Players, and has half the maximum `limit`.
38
- */
39
- export interface GetGameLeaderboard {
20
+ /**
21
+ * The maximum amount of `Run`s per page.
22
+ *
23
+ * @max 100
24
+ * @default 100
25
+ */
26
+ limit?: number;
40
27
 
41
- /**
42
- * The leaderboard to fetch.
43
- */
44
- params: Interfaces.LeaderboardParams;
28
+ /**
29
+ * The leaderboard page, in relation to `limit`.
30
+ */
31
+ page?: number;
32
+ };
45
33
 
46
34
  /**
47
- * The limit of Runs per page.
48
- *
49
- * @max 200
50
- * @default 100
35
+ * Gets a specific site article.
51
36
  */
52
- limit?: number;
37
+ GetArticle: {
53
38
 
54
- /**
55
- * The leaderboard page, in relation to `limit`.
56
- */
57
- page?: number;
58
- }
39
+ /**
40
+ * ID of the article to fetch.
41
+ */
42
+ id: string;
43
+ } | {
59
44
 
60
- /**
61
- * Gets mostly leaderboard-related data of a game.
62
- *
63
- * Both parameters function the same. If both are included, `gameId` will override.
64
- */
65
- interface GetGameData_Base {
45
+ /**
46
+ * Slug of the article to fetch.
47
+ */
48
+ slug: string;
49
+ };
66
50
 
67
51
  /**
68
- * ID of the game.
52
+ * Gets a leaderboard, with all relevant items included.
53
+ *
54
+ * `GetGameLeaderboard2` only includes Runs and Players, and has half the maximum `limit`.
55
+ */
56
+ GetGameLeaderboard: {
57
+
58
+ /**
59
+ * The leaderboard to fetch.
60
+ */
61
+ params: Interfaces.LeaderboardParams;
62
+
63
+ /**
64
+ * The limit of Runs per page.
65
+ *
66
+ * @max 200
67
+ * @default 100
68
+ */
69
+ limit?: number;
70
+
71
+ /**
72
+ * The leaderboard page, in relation to `limit`.
73
+ */
74
+ page?: number;
75
+ };
76
+
77
+ /**
78
+ * Gets the world record history of a game leaderboard.
79
+ */
80
+ GetGameRecordHistory: {
81
+
82
+ /**
83
+ * Leaderboard to fetch record history of.
84
+ */
85
+ params?: Interfaces.LeaderboardParams;
86
+
87
+ /**
88
+ * The limit of Runs per page.
89
+ *
90
+ * @max 200
91
+ * @default 100
92
+ */
93
+ limit?: number;
94
+
95
+ /**
96
+ * The leaderboard page, in relation to `limit`.
97
+ */
98
+ page?: number;
99
+ };
100
+
101
+ /**
102
+ * Searches for site items with a query.
103
+ */
104
+ GetSearch: {
105
+
106
+ /**
107
+ * The text you are searching.
108
+ */
109
+ query?: string;
110
+
111
+ /**
112
+ * Useless parameter, there is no affect on what is fetched based on the value.
113
+ */
114
+ favorExactMatches?: boolean;
115
+
116
+ /**
117
+ * Whether or not you are searching for games.
118
+ */
119
+ includeGames?: boolean;
120
+
121
+ /**
122
+ * Whether or not you are searching for news.
123
+ */
124
+ includeNews?: boolean;
125
+
126
+ /**
127
+ * Whether or not you are searching for pages.
128
+ */
129
+ includePages?: boolean;
130
+
131
+ /**
132
+ * Whether or not you are searching for series.
133
+ */
134
+ includeSeries?: boolean;
135
+
136
+ /**
137
+ * Whether or not you are searching for users.
138
+ */
139
+ includeUsers?: boolean;
140
+
141
+ /**
142
+ * Whether or not you are searching for challenges.
143
+ */
144
+ includeChallenges?: boolean;
145
+
146
+ /**
147
+ * The maximum amount of items to fetch in each `[item]List` array.
148
+ *
149
+ * @max 100
150
+ * @default 100
151
+ */
152
+ limit?: number;
153
+
154
+ /**
155
+ * The leaderboard page, in relation to `limit`.
156
+ */
157
+ page?: number;
158
+ };
159
+
160
+ /**
161
+ * Gets non-obsolete latest runs of a game.
162
+ *
163
+ * When `seriesId` and `gameId` are exempted,
69
164
  */
70
- gameId: string;
165
+ GetLatestLeaderboard: {
71
166
 
72
- /**
73
- * Game page URL.
74
- */
75
- gameUrl: string;
76
- }
167
+ /**
168
+ * ID of the game.
169
+ *
170
+ * When exempted, lists in the responses will be empty.
171
+ */
172
+ gameId?: string;
77
173
 
78
- export type GetGameData = AtLeastOne<GetGameData_Base, 'gameId' | 'gameUrl'>;
174
+ /**
175
+ * ID of a series
176
+ */
177
+ seriesId?: string;
79
178
 
80
- /**
81
- * Gets mostly miscellaneous data of a game.
82
- *
83
- * Both parameters function the same. If both are included, `gameId` will override.
84
- */
85
- interface GetGameSummary_Base {
179
+ /**
180
+ * The maximum amount of Runs to fetch.
181
+ *
182
+ * Warning: Obsolete runs are not included, but still count to the limit.
183
+ *
184
+ * If this is `20` and 5 out of the 20 latest runs are obsolete, it will only return the 15 non-obsolete runs.
185
+ *
186
+ * @max Around 99999, however it varies with caching-related factors.
187
+ * @default 25
188
+ */
189
+ limit?: number;
86
190
 
87
- /**
88
- * ID of the game.
89
- */
90
- gameId: string;
191
+ /**
192
+ * The run list page, in relation to `limit`.
193
+ */
194
+ page?: number;
195
+ };
91
196
 
92
197
  /**
93
- * Subpath URL of the game.
198
+ * Gets a single run.
94
199
  */
95
- gameUrl: string;
96
- }
97
-
98
- export type GetGameSummary = AtLeastOne<GetGameSummary_Base, 'gameId' | 'gameUrl'>;
200
+ GetRun: {
99
201
 
100
- /**
101
- * Gets the world record history of a game leaderboard.
102
- */
103
- export interface GetGameRecordHistory {
202
+ /**
203
+ * ID of the run.
204
+ */
205
+ runId: string;
206
+ };
104
207
 
105
208
  /**
106
- * Leaderboard to fetch record history of.
209
+ * Gets non-run related data of a user.
107
210
  */
108
- params?: Interfaces.LeaderboardParams;
211
+ GetUserSummary: {
109
212
 
110
- /**
111
- * The limit of Runs per page.
112
- *
113
- * @max 200
114
- * @default 100
115
- */
116
- limit?: number;
213
+ /**
214
+ * Subpath URL of the user.
215
+ */
216
+ url: string;
217
+ };
117
218
 
118
219
  /**
119
- * The leaderboard page, in relation to `limit`.
220
+ * Gets comments posted by a user.
120
221
  */
121
- page?: number;
122
- }
222
+ GetUserComments: {
123
223
 
124
- /**
125
- * Searches for site items with a query.
126
- */
127
- export interface GetSearch {
224
+ /**
225
+ * ID of the user.
226
+ */
227
+ userId: string;
228
+ };
128
229
 
129
230
  /**
130
- * The text you are searching.
231
+ * Gets threads created by a specific user.
131
232
  */
132
- query?: string;
233
+ GetUserThreads: {
133
234
 
134
- /**
135
- * Useless parameter, there is no affect on what is fetched based on the value.
136
- */
137
- favorExactMatches?: boolean;
138
-
139
- /**
140
- * Whether or not you are searching for games.
141
- */
142
- includeGames?: boolean;
235
+ /**
236
+ * ID of the user.
237
+ */
238
+ userId: string;
239
+ };
143
240
 
144
241
  /**
145
- * Whether or not you are searching for news.
242
+ * Gets data for user popovers (when you hover over a username).
146
243
  */
147
- includeNews?: boolean;
244
+ GetUserPopoverData: {
148
245
 
149
- /**
150
- * Whether or not you are searching for pages.
151
- */
152
- includePages?: boolean;
246
+ /**
247
+ * ID of the user.
248
+ */
249
+ userId: string;
250
+ };
153
251
 
154
252
  /**
155
- * Whether or not you are searching for series.
253
+ * Gets all Titles in the site.
156
254
  */
157
- includeSeries?: boolean;
255
+ GetTitleList: {};
158
256
 
159
257
  /**
160
- * Whether or not you are searching for users.
258
+ * Gets a specific Title.
161
259
  */
162
- includeUsers?: boolean;
260
+ GetTitle: {
163
261
 
164
- /**
165
- * Whether or not you are searching for challenges.
166
- */
167
- includeChallenges?: boolean;
262
+ /**
263
+ * ID of the title.
264
+ */
265
+ titleId: string;
266
+ };
168
267
 
169
268
  /**
170
- * The maximum amount of items to fetch in each `[item]List` array.
171
- *
172
- * @max 100
173
- * @default 100
269
+ * Gets site articles.
174
270
  */
175
- limit?: number;
271
+ GetArticleList: {
176
272
 
177
- /**
178
- * The leaderboard page, in relation to `limit`.
179
- */
180
- page?: number;
181
- }
273
+ /**
274
+ * Whether or not the article is published (verified by admin).
275
+ */
276
+ published?: boolean;
182
277
 
183
- /**
184
- * Gets non-obsolete latest runs of a game.
185
- *
186
- * When `seriesId` and `gameId` are exempted,
187
- */
188
- export interface GetLatestLeaderboard {
278
+ /**
279
+ * Whether or not the article is rejected.
280
+ */
281
+ rejected?: boolean;
189
282
 
190
- /**
191
- * ID of the game.
192
- *
193
- * When exempted, lists in the responses will be empty.
194
- */
195
- gameId?: string;
283
+ /**
284
+ * A query to search for articles.
285
+ */
286
+ search?: string;
196
287
 
197
- /**
198
- * ID of a series
199
- */
200
- seriesId?: string;
288
+ /**
289
+ * Tags an article has.
290
+ */
291
+ tags?: string[];
201
292
 
202
- /**
203
- * The maximum amount of Runs to fetch.
204
- *
205
- * Warning: Obsolete runs are not included, but still count to the limit.
206
- *
207
- * If this is `20` and 5 out of the 20 latest runs are obsolete, it will only return the 15 non-obsolete runs.
208
- *
209
- * @max Around 99999, however it varies with caching-related factors.
210
- * @default 25
211
- */
212
- limit?: number;
293
+ /**
294
+ * The target of an article, either being `news` or a path URL for site information articles.
295
+ */
296
+ target?: string;
213
297
 
214
- /**
215
- * The run list page, in relation to `limit`.
216
- */
217
- page?: number;
218
- }
298
+ /**
299
+ * The maximum amount of Articles to fetch.
300
+ *
301
+ * @max 500
302
+ * @default 500
303
+ */
304
+ limit?: number;
219
305
 
220
- /**
221
- * Gets a single run.
222
- */
223
- export interface GetRun {
306
+ /**
307
+ * The article list page, in relation to `limit`.
308
+ */
309
+ page?: number;
310
+ };
224
311
 
225
312
  /**
226
- * ID of the run.
313
+ * Gets a list of games.
227
314
  */
228
- runId: string;
229
- }
315
+ GetGameList: {
230
316
 
231
- /**
232
- * Gets non-run related data of a user.
233
- */
234
- export interface GetUserSummary {
317
+ /**
318
+ * ID of a series to filter by.
319
+ */
320
+ seriesId?: string;
235
321
 
236
- /**
237
- * Subpath URL of the user.
238
- */
239
- url: string;
240
- }
322
+ /**
323
+ * ID of a platform to filter by.
324
+ */
325
+ platformId?: string;
241
326
 
242
- /**
243
- * Gets comments posted by a user.
244
- */
245
- export interface GetUserComments {
327
+ /**
328
+ * Search query for game names or game subpath URLs.
329
+ */
330
+ search?: string;
246
331
 
247
- /**
248
- * ID of the user.
249
- */
250
- userId: string;
251
- }
252
-
253
- /**
254
- * Gets threads created by a specific user.
255
- */
256
- export interface GetUserThreads {
332
+ /**
333
+ * `GameOrderType` to filter games by.
334
+ */
335
+ orderType?: Enums.GameOrderType;
257
336
 
258
- /**
259
- * ID of the user.
260
- */
261
- userId: string;
262
- }
337
+ /**
338
+ * The maximum amount of Games to fetch.
339
+ *
340
+ * @max 500
341
+ * @default 500
342
+ */
343
+ limit?: number;
263
344
 
264
- /**
265
- * Gets data for user popovers (when you hover over a username).
266
- */
267
- export interface GetUserPopoverData {
345
+ /**
346
+ * The game list page, in relation to `limit`.
347
+ */
348
+ page?: number;
349
+ };
268
350
 
269
351
  /**
270
- * ID of the user.
352
+ * Gets a list of Platforms in the site.
271
353
  */
272
- userId: string;
273
- }
274
-
275
- /**
276
- * Gets all Titles in the site.
277
- */
278
- export interface GetTitleList {}
279
-
280
- /**
281
- * Gets a specific Title.
282
- */
283
- export interface GetTitle {
354
+ GetPlatformList: {};
284
355
 
285
356
  /**
286
- * ID of the title.
357
+ * Gets information for the home page.
287
358
  */
288
- titleId: string;
289
- }
290
-
291
- /**
292
- * Gets site articles.
293
- */
294
- export interface GetArticleList {
359
+ GetHomeSummary: {};
295
360
 
296
361
  /**
297
- * Whether or not the article is published (verified by admin).
362
+ * Gets a list of series on the site.
298
363
  */
299
- published?: boolean;
364
+ GetSeriesList: {
300
365
 
301
- /**
302
- * Whether or not the article is rejected.
303
- */
304
- rejected?: boolean;
366
+ /**
367
+ * A query to search for, of series names or subpath URLs.
368
+ */
369
+ search?: string;
305
370
 
306
- /**
307
- * A query to search for articles.
308
- */
309
- search?: string;
310
-
311
- /**
312
- * Tags an article has.
313
- */
314
- tags?: string[];
371
+ /**
372
+ * `GameOrderType` to filter series by.
373
+ */
374
+ orderType?: Enums.GameOrderType;
315
375
 
316
- /**
317
- * The target of an article, either being `news` or a path URL for site information articles.
318
- */
319
- target?: string;
376
+ /**
377
+ * The maximum amount of Series to fetch.
378
+ *
379
+ * @max 500
380
+ * @default 500
381
+ */
382
+ limit?: number;
320
383
 
321
- /**
322
- * The maximum amount of Articles to fetch.
323
- *
324
- * @max 500
325
- * @default 500
326
- */
327
- limit?: number;
384
+ /**
385
+ * The leaderboard page, in relation to `limit`.
386
+ */
387
+ page?: number;
388
+ };
328
389
 
329
390
  /**
330
- * The article list page, in relation to `limit`.
391
+ * Gets most information pertinent to a series.
331
392
  */
332
- page?: number;
333
- }
393
+ GetSeriesSummary: {
334
394
 
335
- /**
336
- * Gets a specific site article.
337
- */
338
- interface GetArticle_Base {
395
+ /**
396
+ * Subpath URL of the series.
397
+ */
398
+ seriesUrl: string;
399
+ };
339
400
 
340
401
  /**
341
- * ID of the article to fetch.
402
+ * Gets the top 3 runs from all levels under a level category.
342
403
  */
343
- id: string;
404
+ GetGameLevelSummary: {
344
405
 
345
- /**
346
- * Slug of the article to fetch.
347
- */
348
- slug: string;
349
- }
406
+ /**
407
+ * The game leaderboard to fetch level summaries from.
408
+ *
409
+ * When not included, `runList[]` will be empty.
410
+ */
411
+ params?: Interfaces.LeaderboardParams;
350
412
 
351
- export type GetArticle = AtLeastOne<GetArticle_Base>;
413
+ /**
414
+ * The limit of Runs per page.
415
+ *
416
+ * @max Unknown - likely around 99999.
417
+ * @default Unknown - likely around 99999.
418
+ */
419
+ limit?: number;
352
420
 
353
- /**
354
- * Gets a list of games.
355
- */
356
- export interface GetGameList {
421
+ /**
422
+ * The leaderboard page, in relation to `limit`.
423
+ */
424
+ page?: number;
425
+ };
357
426
 
358
427
  /**
359
- * ID of a series to filter by.
428
+ * Gets a random Game.
360
429
  */
361
- seriesId?: string;
430
+ GetGameRandom: {};
362
431
 
363
432
  /**
364
- * ID of a platform to filter by.
433
+ * Gets all guides on a game.
365
434
  */
366
- platformId?: string;
435
+ GetGuideList: {
367
436
 
368
- /**
369
- * Search query for game names or game subpath URLs.
370
- */
371
- search?: string;
437
+ /**
438
+ * ID of the game.
439
+ */
440
+ gameId: string;
441
+ };
372
442
 
373
443
  /**
374
- * `GameOrderType` to filter games by.
444
+ * Get a specific guide.
375
445
  */
376
- orderType?: Enums.GameOrderType;
446
+ GetGuide: {
377
447
 
378
- /**
379
- * The maximum amount of Games to fetch.
380
- *
381
- * @max 500
382
- * @default 500
383
- */
384
- limit?: number;
448
+ /**
449
+ * ID of the guide.
450
+ */
451
+ id: string;
452
+ };
385
453
 
386
454
  /**
387
- * The game list page, in relation to `limit`.
455
+ * Gets news posts in a game.
388
456
  */
389
- page?: number;
390
- }
391
-
392
- /**
393
- * Gets a list of Platforms in the site.
394
- */
457
+ GetNewsList: {
395
458
 
396
- export interface GetPlatformList {}
397
-
398
- /**
399
- * Gets information for the home page.
400
- */
401
- export interface GetHomeSummary {}
402
-
403
- /**
404
- * Gets a list of series on the site.
405
- */
406
- export interface GetSeriesList {
459
+ /**
460
+ * ID of the game.
461
+ */
462
+ gameId: string;
463
+ };
407
464
 
408
465
  /**
409
- * A query to search for, of series names or subpath URLs.
466
+ * Gets a specific game news post.
410
467
  */
411
- search?: string;
412
- orderType?: Enums.GameOrderType;
468
+ GetNews: {
413
469
 
414
- /**
415
- * The maximum amount of Series to fetch.
416
- *
417
- * @max 500
418
- * @default 500
419
- */
420
- limit?: number;
470
+ /**
471
+ * ID of the news post.
472
+ */
473
+ id: string;
474
+ };
421
475
 
422
476
  /**
423
- * The leaderboard page, in relation to `limit`.
477
+ * Gets a single resource.
424
478
  */
425
- page?: number;
426
- }
479
+ GetResource: {
427
480
 
428
- /**
429
- * Gets most information pertinent to a series.
430
- */
431
- export interface GetSeriesSummary {
481
+ /**
482
+ * ID of the resource.
483
+ */
484
+ resourceId: string;
485
+ };
432
486
 
433
487
  /**
434
- * Subpath URL of the series.
488
+ * Get a list of a game's resources.
435
489
  */
436
- seriesUrl: string;
437
- }
490
+ GetResourceList: {
438
491
 
439
- /**
440
- * Gets the top 3 runs from all levels under a level category.
441
- */
442
- export interface GetGameLevelSummary {
492
+ /**
493
+ * ID of the game.
494
+ */
495
+ gameId: string;
496
+ };
443
497
 
444
498
  /**
445
- * The game leaderboard to fetch level summaries from.
499
+ * Gets a list of live streams on twitch that have the `Speedrun` tag.
446
500
  *
447
- * When not included, `runList[]` will be empty.
501
+ * A stream is assigned to a game when the Twitch game is the Game's `GameSettings.twitchName`.
448
502
  */
449
- params?: Interfaces.LeaderboardParams;
503
+ GetStreamList: {
450
504
 
451
- /**
452
- * The limit of Runs per page.
453
- *
454
- * @max Unknown - likely around 99999.
455
- * @default Unknown - likely around 99999.
456
- */
457
- limit?: number;
505
+ /**
506
+ * ID of a series.
507
+ */
508
+ seriesId?: string;
458
509
 
459
- /**
460
- * The leaderboard page, in relation to `limit`.
461
- */
462
- page?: number;
463
- }
464
-
465
- /**
466
- * Gets a random Game.
467
- */
468
- export interface GetGameRandom {}
469
-
470
- /**
471
- * Gets all guides on a game.
472
- */
473
- export interface GetGuideList {
510
+ /**
511
+ * ID of a game.
512
+ */
513
+ gameId?: string;
514
+ };
474
515
 
475
516
  /**
476
- * ID of the game.
517
+ * Get threads on a forum.
477
518
  */
478
- gameId: string;
479
- }
519
+ GetThreadList: {
480
520
 
481
- /**
482
- * Get a specific guide.
483
- */
484
- export interface GetGuide {
521
+ /**
522
+ * ID of the forum.
523
+ */
524
+ forumId: string;
525
+ };
485
526
 
486
527
  /**
487
- * ID of the guide.
528
+ * Gets a comment post's Thread and Forum by `commentId`.
488
529
  */
489
- id: string;
490
- }
530
+ GetThreadStateByCommentId: {
491
531
 
492
- /**
493
- * Gets news posts in a game.
494
- */
495
- export interface GetNewsList {
532
+ /**
533
+ * ID of the comment.
534
+ */
535
+ commentId: string;
536
+ };
496
537
 
497
538
  /**
498
- * ID of the game.
539
+ * Get a specific Challenge.
499
540
  */
500
- gameId: string;
501
- }
541
+ GetChallenge: {
502
542
 
503
- /**
504
- * Gets a specific game news post.
505
- */
506
- export interface GetNews {
507
-
508
- /**
509
- * ID of the news post.
510
- */
511
- id: string;
512
- }
513
-
514
- /**
515
- * Gets a single resource.
516
- */
517
- export interface GetResource {
518
- resourceId: string;
519
- }
520
-
521
- /**
522
- * Get a list of a game's resources.
523
- */
524
- export interface GetResourceList {
525
- gameId: string;
526
- }
527
-
528
- /**
529
- * Gets a list of live streams on twitch that have the `Speedrun` tag.
530
- *
531
- * A stream is assigned to a game when the Twitch game is the Game's `GameSettings.twitchName`.
532
- */
533
- export interface GetStreamList {
534
-
535
- /**
536
- * ID of a series.
537
- */
538
- seriesId?: string;
543
+ /**
544
+ * ID of the challenge.
545
+ */
546
+ id: string;
547
+ };
539
548
 
540
549
  /**
541
- * ID of a game.
550
+ * Get runs from a Challenge board.
542
551
  */
543
- gameId?: string;
544
- }
552
+ GetChallengeLeaderboard: {
545
553
 
546
- /**
547
- * Get threads on a forum.
548
- */
549
- export interface GetThreadList {
554
+ /**
555
+ * ID of the challenge you are getting the leaderboard from.
556
+ */
557
+ challengeId: string;
558
+ };
550
559
 
551
560
  /**
552
- * ID of the forum.
561
+ * Get a sitewide leaderboard for users who have won the most in Challenges.
553
562
  */
554
- forumId: string;
555
- }
556
-
557
- /**
558
- * Gets a comment post's Thread and Forum by `commentId`.
559
- */
560
- export interface GetThreadStateByCommentId {
563
+ GetChallengeGlobalRankingList: {};
561
564
 
562
565
  /**
563
- * ID of the comment.
566
+ * Get a specific Challenge run (not the same as a normal run!)
564
567
  */
565
- commentId: string;
566
- }
568
+ GetChallengeRun: {
567
569
 
568
- /**
569
- * Get a specific Challenge.
570
- */
571
- export interface GetChallenge {
572
- id: string;
573
- }
574
-
575
- /**
576
- * Get runs from a Challenge board.
577
- */
578
- export interface GetChallengeLeaderboard {
570
+ /**
571
+ * ID of the challenge.
572
+ */
573
+ id: string;
574
+ };
579
575
 
580
576
  /**
581
- * ID of the challenge you are getting the leaderboard from.
577
+ * Get a user's runs for display on their profile.
582
578
  */
583
- challengeId: string;
584
- }
585
-
586
- /**
587
- * Get a sitewide leaderboard for users who have won the most in Challenges.
588
- */
589
- export interface GetChallengeGlobalRankingList {}
579
+ GetUserLeaderboard: {
590
580
 
591
- /**
592
- * Get a specific Challenge run (not the same as a normal run!)
593
- */
594
- export interface GetChallengeRun {
581
+ /**
582
+ * ID of the user.
583
+ */
584
+ userId: string;
585
+ };
595
586
 
596
587
  /**
597
- * ID of the challenge.
588
+ * Gets game and series moderation stats for any user.
598
589
  */
599
- id: string;
600
- }
590
+ GetUserModeration: {
601
591
 
602
- /**
603
- * Get a user's runs for display on their profile.
604
- */
605
- export interface GetUserLeaderboard {
592
+ /**
593
+ * ID of the user.
594
+ */
595
+ userId: string;
596
+ };
606
597
 
607
598
  /**
608
- * ID of the user.
599
+ * Get a list of comments on an item, and data of the parent.
609
600
  */
610
- userId: string;
611
- }
601
+ GetCommentList: {
612
602
 
613
- /**
614
- * Gets game and series moderation stats for any user.
615
- */
616
- export interface GetUserModeration {
603
+ /**
604
+ * ID of the parent item to fetch.
605
+ */
606
+ itemId: string;
617
607
 
618
- /**
619
- * ID of the user.
620
- */
621
- userId: string;
622
- }
608
+ /**
609
+ * `ItemType` of the item referenced in `itemId`.
610
+ */
611
+ itemType: Enums.ItemType;
623
612
 
624
- /**
625
- * Get a list of comments on an item, and data of the parent.
626
- */
627
- export interface GetCommentList {
613
+ /**
614
+ * The maximum amount of `Comment`s per page.
615
+ *
616
+ * When this is >= 500 but <= 1000, it will fetch a maximum of 500 `Run`s, but when over 1000 it will return a maximum of 20 runs.
617
+ * @max 500
618
+ * @default 20
619
+ */
620
+ limit?: number;
628
621
 
629
- /**
630
- * ID of the parent item to fetch.
631
- */
632
- itemId: string;
622
+ /**
623
+ * The comment page, in relation to `limit`.
624
+ */
625
+ page?: number;
626
+ };
633
627
 
634
628
  /**
635
- * `ItemType` of the item referenced in `itemId`.
629
+ * Get a specific thread.
636
630
  */
637
- itemType: Enums.ItemType;
631
+ GetThread: {
632
+
633
+ /**
634
+ * ID of the thread.
635
+ */
636
+ id: string;
637
+ };
638
638
 
639
639
  /**
640
- * The maximum amount of `Comment`s per page.
641
- *
642
- * When this is >= 500 but <= 1000, it will fetch a maximum of 500 `Run`s, but when over 1000 it will return a maximum of 20 runs.
643
- * @max 500
644
- * @default 20
640
+ * Get static data for the site.
645
641
  */
646
- limit?: number;
642
+ GetStaticData: {};
647
643
 
648
644
  /**
649
- * The comment page, in relation to `limit`.
645
+ * Get a list of site-wide forums. When logged in, may include forums of followed games.
650
646
  */
651
- page?: number;
652
- }
653
-
654
- /**
655
- * Get a specific thread.
656
- */
657
- export interface GetThread {
647
+ GetForumList: {};
658
648
 
659
649
  /**
660
- * ID of the thread.
650
+ * Gets the latest announcement, if there is one active.
661
651
  */
662
- id: string;
663
- }
664
-
665
- /**
666
- * Get static data for the site.
667
- */
668
- export interface GetStaticData {}
669
-
670
- /**
671
- * Get a list of site-wide forums. When logged in, may include forums of followed games.
672
- */
673
- export interface GetForumList {}
652
+ GetAnnouncementLatest: {};
653
+ }