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