speedruncom.js 1.1.1 → 1.2.2

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.
@@ -0,0 +1,37 @@
1
+ import { AxiosInstance } from 'axios';
2
+ interface config {
3
+ PHPSESSID?: string;
4
+ userAgent?: string;
5
+ }
6
+ export default class Client {
7
+ /**
8
+ * `AxiosInstance` used on instance-called methods (called with `POST`).
9
+ */
10
+ axiosClient: AxiosInstance;
11
+ /**
12
+ * `AxiosInstance` used on Client-called methods (called with `GET`).
13
+ */
14
+ static axiosClient: AxiosInstance;
15
+ private username;
16
+ private password;
17
+ private headers;
18
+ constructor(config?: config);
19
+ config(config: config): void;
20
+ request<T>(endpoint: string, params?: object): Promise<T>;
21
+ static request<T>(endpoint: string, params?: object): Promise<T>;
22
+ /**
23
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise.
24
+ * If the account has two factor authentication, you have to use `setToken` with the token sent to the account's email address.
25
+ */
26
+ login(username: string, password: string): Promise<unknown>;
27
+ /**
28
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise, with the token that `login()` sent to the account's email address.
29
+ * @param token The 5-digit code sent to your email after a successful `login()`.
30
+ */
31
+ setToken(token: string): Promise<unknown>;
32
+ /**
33
+ * Attempts to remove the PHPSESSID cookie if using a browser, otherwise removes your Client's authentication.
34
+ */
35
+ logout(): Promise<unknown>;
36
+ }
37
+ export {};
@@ -0,0 +1,102 @@
1
+ import axios from 'axios';
2
+ const BASE_USER_AGENT = 'speedruncom.js';
3
+ const BASE_URL = 'https://www.speedrun.com/api/v2/';
4
+ const HEADERS = {
5
+ 'Accept-Language': 'en',
6
+ 'Accept': 'application/json'
7
+ };
8
+ const isBrowser = typeof window !== 'undefined';
9
+ const objectToBase64 = (obj) => {
10
+ const jsonString = JSON.stringify(obj).replace(/\s+/g, '');
11
+ return Buffer.from(jsonString).toString('base64');
12
+ };
13
+ class APIError extends Error {
14
+ constructor(message, status) {
15
+ super(message);
16
+ this.message = message;
17
+ this.status = status;
18
+ }
19
+ }
20
+ class Client {
21
+ constructor(config) {
22
+ /**
23
+ * `AxiosInstance` used on instance-called methods (called with `POST`).
24
+ */
25
+ this.axiosClient = axios.create({
26
+ baseURL: BASE_URL,
27
+ method: 'POST',
28
+ withCredentials: true,
29
+ headers: HEADERS
30
+ });
31
+ this.headers = this.axiosClient.defaults.headers.common;
32
+ if (config)
33
+ this.config(config);
34
+ this.axiosClient.interceptors.response.use((response) => response, (error) => {
35
+ const data = error.response.data;
36
+ throw new APIError(data.error || 'Unknown error', error.response.status);
37
+ });
38
+ }
39
+ config(config) {
40
+ if (!isBrowser)
41
+ this.headers['User-Agent'] = BASE_USER_AGENT + (config.userAgent ? `/${config.userAgent}` : '');
42
+ if (config.PHPSESSID) {
43
+ if (isBrowser) {
44
+ console.error('You cannot use a PHPSESSID to authenticate in a browser environment.');
45
+ }
46
+ else {
47
+ this.headers['Cookie'] = `PHPSESSID=${config.PHPSESSID}`;
48
+ }
49
+ }
50
+ }
51
+ async request(endpoint, params = {}) {
52
+ const response = await this.axiosClient.post(endpoint, params);
53
+ const cookie = response.headers['set-cookie'];
54
+ if (cookie && !isBrowser)
55
+ this.headers['Cookie'] = cookie[0].split(';')[0];
56
+ return response.data;
57
+ }
58
+ static async request(endpoint, params = {}) {
59
+ return (await this.axiosClient.get(`${endpoint}?_r=${objectToBase64(params)}`)).data;
60
+ }
61
+ //Built-in endpoints for auth
62
+ /**
63
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise.
64
+ * If the account has two factor authentication, you have to use `setToken` with the token sent to the account's email address.
65
+ */
66
+ async login(username, password) {
67
+ this.username = username;
68
+ this.password = password;
69
+ return await this.request('PutAuthLogin', {
70
+ name: username,
71
+ password
72
+ });
73
+ }
74
+ /**
75
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise, with the token that `login()` sent to the account's email address.
76
+ * @param token The 5-digit code sent to your email after a successful `login()`.
77
+ */
78
+ async setToken(token) {
79
+ return await this.request('PutAuthLogin', {
80
+ name: this.username,
81
+ password: this.password,
82
+ token
83
+ });
84
+ }
85
+ /**
86
+ * Attempts to remove the PHPSESSID cookie if using a browser, otherwise removes your Client's authentication.
87
+ */
88
+ async logout() {
89
+ if (isBrowser)
90
+ return await this.request('PutAuthLogout');
91
+ delete this.headers['Cookie'];
92
+ }
93
+ }
94
+ /**
95
+ * `AxiosInstance` used on Client-called methods (called with `GET`).
96
+ */
97
+ Client.axiosClient = axios.create({
98
+ baseURL: BASE_URL,
99
+ method: 'GET',
100
+ headers: HEADERS
101
+ });
102
+ export default Client;
@@ -0,0 +1,227 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import * as GetEndpoints from './endpoints/endpoints.get.js';
3
+ import * as PostEndpoints from './endpoints/endpoints.post.js';
4
+ import * as Responses from './responses.js';
5
+ interface config {
6
+ PHPSESSID?: string;
7
+ userAgent?: string;
8
+ }
9
+ export default class Client {
10
+ /**
11
+ * `AxiosInstance` used on instance-called methods (called with `POST`).
12
+ */
13
+ axiosClient: AxiosInstance;
14
+ /**
15
+ * `AxiosInstance` used on Client-called methods (called with `GET`).
16
+ */
17
+ static axiosClient: AxiosInstance;
18
+ private username;
19
+ private password;
20
+ private headers;
21
+ constructor(config?: config);
22
+ config(config: config): void;
23
+ request<T>(endpoint: string, params?: object): Promise<T>;
24
+ static request<T>(endpoint: string, params?: object): Promise<T>;
25
+ /**
26
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise.
27
+ * If the account has two factor authentication, you have to use `setToken` with the token sent to the account's email address.
28
+ */
29
+ login(username: string, password: string): Promise<unknown>;
30
+ /**
31
+ * Attempts to authorize your cookies if using a browser, or authorizes this Client if otherwise, with the token that `login()` sent to the account's email address.
32
+ * @param token The 5-digit code sent to your email after a successful `login()`.
33
+ */
34
+ setToken(token: string): Promise<unknown>;
35
+ /**
36
+ * Attempts to remove the PHPSESSID cookie if using a browser, otherwise removes your Client's authentication.
37
+ */
38
+ logout(): Promise<unknown>;
39
+ GetGameLeaderboard2(params?: GetEndpoints.GetGameLeaderboard2): Promise<Readonly<Responses.GetGameLeaderboard2>>;
40
+ static GetGameLeaderboard2(params?: GetEndpoints.GetGameLeaderboard2): Promise<Readonly<Responses.GetGameLeaderboard2>>;
41
+ GetGameLeaderboard(params?: GetEndpoints.GetGameLeaderboard): Promise<Readonly<Responses.GetGameLeaderboard>>;
42
+ static GetGameLeaderboard(params?: GetEndpoints.GetGameLeaderboard): Promise<Readonly<Responses.GetGameLeaderboard>>;
43
+ GetGameData(params: GetEndpoints.GetGameData): Promise<Readonly<Responses.GetGameData>>;
44
+ static GetGameData(params: GetEndpoints.GetGameData): Promise<Readonly<Responses.GetGameData>>;
45
+ GetGameSummary(params: GetEndpoints.GetGameSummary): Promise<Readonly<Responses.GetGameSummary>>;
46
+ static GetGameSummary(params: GetEndpoints.GetGameSummary): Promise<Readonly<Responses.GetGameSummary>>;
47
+ GetGameRecordHistory(params: GetEndpoints.GetGameRecordHistory): Promise<Readonly<Responses.GetGameRecordHistory>>;
48
+ static GetGameRecordHistory(params: GetEndpoints.GetGameRecordHistory): Promise<Readonly<Responses.GetGameRecordHistory>>;
49
+ GetSearch(params: GetEndpoints.GetSearch): Promise<Readonly<Responses.GetSearch>>;
50
+ static GetSearch(params: GetEndpoints.GetSearch): Promise<Readonly<Responses.GetSearch>>;
51
+ GetLatestLeaderboard(params: GetEndpoints.GetLatestLeaderboard): Promise<Readonly<Responses.GetLatestLeaderboard>>;
52
+ static GetLatestLeaderboard(params: GetEndpoints.GetLatestLeaderboard): Promise<Readonly<Responses.GetLatestLeaderboard>>;
53
+ GetRun(params?: GetEndpoints.GetRun): Promise<Readonly<Responses.GetRun>>;
54
+ static GetRun(params?: GetEndpoints.GetRun): Promise<Readonly<Responses.GetRun>>;
55
+ GetUserSummary(params?: GetEndpoints.GetUserSummary): Promise<Readonly<Responses.GetUserSummary>>;
56
+ static GetUserSummary(params?: GetEndpoints.GetUserSummary): Promise<Readonly<Responses.GetUserSummary>>;
57
+ GetUserComments(params?: GetEndpoints.GetUserComments): Promise<Readonly<Responses.GetUserComments>>;
58
+ static GetUserComments(params?: GetEndpoints.GetUserComments): Promise<Readonly<Responses.GetUserComments>>;
59
+ GetUserThreads(params?: GetEndpoints.GetUserThreads): Promise<Readonly<Responses.GetUserThreads>>;
60
+ static GetUserThreads(params?: GetEndpoints.GetUserThreads): Promise<Readonly<Responses.GetUserThreads>>;
61
+ GetUserPopoverData(params?: GetEndpoints.GetUserPopoverData): Promise<Readonly<Responses.GetUserPopoverData>>;
62
+ static GetUserPopoverData(params?: GetEndpoints.GetUserPopoverData): Promise<Readonly<Responses.GetUserPopoverData>>;
63
+ GetTitleList(): Promise<Readonly<Responses.GetTitleList>>;
64
+ static GetTitleList(): Promise<Readonly<Responses.GetTitleList>>;
65
+ GetTitle(params?: GetEndpoints.GetTitle): Promise<Readonly<Responses.GetTitle>>;
66
+ static GetTitle(params?: GetEndpoints.GetTitle): Promise<Readonly<Responses.GetTitle>>;
67
+ GetArticleList(params: GetEndpoints.GetArticleList): Promise<Readonly<Responses.GetArticleList>>;
68
+ static GetArticleList(params: GetEndpoints.GetArticleList): Promise<Readonly<Responses.GetArticleList>>;
69
+ GetArticle(params: GetEndpoints.GetArticle): Promise<Readonly<Responses.GetArticle>>;
70
+ static GetArticle(params: GetEndpoints.GetArticle): Promise<Readonly<Responses.GetArticle>>;
71
+ GetGameList(params: GetEndpoints.GetGameList): Promise<Readonly<Responses.GetGameList>>;
72
+ static GetGameList(params: GetEndpoints.GetGameList): Promise<Readonly<Responses.GetGameList>>;
73
+ GetPlatformList(): Promise<Readonly<Responses.GetPlatformList>>;
74
+ static GetPlatformList(): Promise<Readonly<Responses.GetPlatformList>>;
75
+ GetHomeSummary(): Promise<Readonly<Responses.GetHomeSummary>>;
76
+ static GetHomeSummary(): Promise<Readonly<Responses.GetHomeSummary>>;
77
+ GetSeriesList(params: GetEndpoints.GetSeriesList): Promise<Readonly<Responses.GetSeriesList>>;
78
+ static GetSeriesList(params: GetEndpoints.GetSeriesList): Promise<Readonly<Responses.GetSeriesList>>;
79
+ GetSeriesSummary(params?: GetEndpoints.GetSeriesSummary): Promise<Readonly<Responses.GetSeriesSummary>>;
80
+ static GetSeriesSummary(params?: GetEndpoints.GetSeriesSummary): Promise<Readonly<Responses.GetSeriesSummary>>;
81
+ GetGameLevelSummary(params: GetEndpoints.GetGameLevelSummary): Promise<Readonly<Responses.GetGameLevelSummary>>;
82
+ static GetGameLevelSummary(params: GetEndpoints.GetGameLevelSummary): Promise<Readonly<Responses.GetGameLevelSummary>>;
83
+ GetGameRandom(): Promise<Readonly<Responses.GetGameRandom>>;
84
+ static GetGameRandom(): Promise<Readonly<Responses.GetGameRandom>>;
85
+ GetGuideList(params?: GetEndpoints.GetGuideList): Promise<Readonly<Responses.GetGuideList>>;
86
+ static GetGuideList(params?: GetEndpoints.GetGuideList): Promise<Readonly<Responses.GetGuideList>>;
87
+ GetGuide(params?: GetEndpoints.GetGuide): Promise<Readonly<Responses.GetGuide>>;
88
+ static GetGuide(params?: GetEndpoints.GetGuide): Promise<Readonly<Responses.GetGuide>>;
89
+ GetNewsList(params?: GetEndpoints.GetNewsList): Promise<Readonly<Responses.GetNewsList>>;
90
+ static GetNewsList(params?: GetEndpoints.GetNewsList): Promise<Readonly<Responses.GetNewsList>>;
91
+ GetNews(params?: GetEndpoints.GetNews): Promise<Readonly<Responses.GetNews>>;
92
+ static GetNews(params?: GetEndpoints.GetNews): Promise<Readonly<Responses.GetNews>>;
93
+ GetResourceList(params?: GetEndpoints.GetResourceList): Promise<Readonly<Responses.GetResourceList>>;
94
+ static GetResourceList(params?: GetEndpoints.GetResourceList): Promise<Readonly<Responses.GetResourceList>>;
95
+ GetStreamList(params: GetEndpoints.GetStreamList): Promise<Readonly<Responses.GetStreamList>>;
96
+ static GetStreamList(params: GetEndpoints.GetStreamList): Promise<Readonly<Responses.GetStreamList>>;
97
+ GetThreadList(params?: GetEndpoints.GetThreadList): Promise<Readonly<Responses.GetThreadList>>;
98
+ static GetThreadList(params?: GetEndpoints.GetThreadList): Promise<Readonly<Responses.GetThreadList>>;
99
+ GetThreadStateByCommentId(params?: GetEndpoints.GetThreadStateByCommentId): Promise<Readonly<Responses.GetThreadStateByCommentId>>;
100
+ static GetThreadStateByCommentId(params?: GetEndpoints.GetThreadStateByCommentId): Promise<Readonly<Responses.GetThreadStateByCommentId>>;
101
+ GetChallenge(params?: GetEndpoints.GetChallenge): Promise<Readonly<Responses.GetChallenge>>;
102
+ static GetChallenge(params?: GetEndpoints.GetChallenge): Promise<Readonly<Responses.GetChallenge>>;
103
+ GetChallengeLeaderboard(params?: GetEndpoints.GetChallengeLeaderboard): Promise<Readonly<Responses.GetChallengeLeaderboard>>;
104
+ static GetChallengeLeaderboard(params?: GetEndpoints.GetChallengeLeaderboard): Promise<Readonly<Responses.GetChallengeLeaderboard>>;
105
+ GetChallengeGlobalRankingList(): Promise<Readonly<Responses.GetChallengeGlobalRankingList>>;
106
+ static GetChallengeGlobalRankingList(): Promise<Readonly<Responses.GetChallengeGlobalRankingList>>;
107
+ GetChallengeRun(params?: GetEndpoints.GetChallengeRun): Promise<Readonly<Responses.GetChallengeRun>>;
108
+ static GetChallengeRun(params?: GetEndpoints.GetChallengeRun): Promise<Readonly<Responses.GetChallengeRun>>;
109
+ GetUserLeaderboard(params?: GetEndpoints.GetUserLeaderboard): Promise<Readonly<Responses.GetUserLeaderboard>>;
110
+ static GetUserLeaderboard(params?: GetEndpoints.GetUserLeaderboard): Promise<Readonly<Responses.GetUserLeaderboard>>;
111
+ GetUserModeration(params?: GetEndpoints.GetUserModeration): Promise<Readonly<Responses.GetUserModeration>>;
112
+ static GetUserModeration(params?: GetEndpoints.GetUserModeration): Promise<Readonly<Responses.GetUserModeration>>;
113
+ GetCommentList(params?: GetEndpoints.GetCommentList): Promise<Readonly<Responses.GetCommentList>>;
114
+ static GetCommentList(params?: GetEndpoints.GetCommentList): Promise<Readonly<Responses.GetCommentList>>;
115
+ GetThread(params?: GetEndpoints.GetThread): Promise<Readonly<Responses.GetThread>>;
116
+ static GetThread(params?: GetEndpoints.GetThread): Promise<Readonly<Responses.GetThread>>;
117
+ GetStaticData(): Promise<Readonly<Responses.GetStaticData>>;
118
+ static GetStaticData(): Promise<Readonly<Responses.GetStaticData>>;
119
+ GetForumList(): Promise<Readonly<Responses.GetForumList>>;
120
+ static GetForumList(): Promise<Readonly<Responses.GetForumList>>;
121
+ PutAuthLogin(params?: PostEndpoints.PutAuthLogin): Promise<Readonly<Responses.PutAuthLogin>>;
122
+ GetSession(): Promise<Readonly<Responses.GetSession>>;
123
+ PutSessionPing(): Promise<void>;
124
+ GetAuditLogList(params: PostEndpoints.GetAuditLogList): Promise<Readonly<Responses.GetAuditLogList>>;
125
+ GetGameSettings(params?: PostEndpoints.GetGameSettings): Promise<Readonly<Responses.GetGameSettings>>;
126
+ PutGameSettings(params?: PostEndpoints.PutGameSettings): Promise<void>;
127
+ PutCategory(params?: PostEndpoints.PutCategory): Promise<void>;
128
+ PutCategoryUpdate(params?: PostEndpoints.PutCategoryUpdate): Promise<void>;
129
+ PutCategoryArchive(params?: PostEndpoints.PutCategoryArchive): Promise<void>;
130
+ PutCategoryRestore(params?: PostEndpoints.PutCategoryRestore): Promise<void>;
131
+ PutCategoryOrder(params?: PostEndpoints.PutCategoryOrder): Promise<void>;
132
+ PutLevel(params?: PostEndpoints.PutLevel): Promise<void>;
133
+ PutLevelUpdate(params?: PostEndpoints.PutLevelUpdate): Promise<void>;
134
+ PutLevelArchive(params?: PostEndpoints.PutLevelArchive): Promise<void>;
135
+ PutLevelRestore(params?: PostEndpoints.PutLevelRestore): Promise<void>;
136
+ PutLevelOrder(params?: PostEndpoints.PutLevelOrder): Promise<void>;
137
+ PutVariable(params?: PostEndpoints.PutVariable): Promise<void>;
138
+ PutVariableUpdate(params?: PostEndpoints.PutVariableUpdate): Promise<void>;
139
+ PutVariableArchive(params?: PostEndpoints.PutVariableArchive): Promise<void>;
140
+ PutVariableRestore(params?: PostEndpoints.PutVariableRestore): Promise<void>;
141
+ PutVariableOrder(params?: PostEndpoints.PutVariableOrder): Promise<void>;
142
+ PutVariableApplyDefault(params?: PostEndpoints.PutVariableApplyDefault): Promise<void>;
143
+ PutNews(params?: PostEndpoints.PutNews): Promise<void>;
144
+ PutNewsUpdate(params?: PostEndpoints.PutNewsUpdate): Promise<void>;
145
+ PutNewsDelete(params?: PostEndpoints.PutNewsDelete): Promise<void>;
146
+ PutGuide(params?: PostEndpoints.PutGuide): Promise<void>;
147
+ PutGuideUpdate(params?: PostEndpoints.PutGuideUpdate): Promise<void>;
148
+ PutGuideDelete(params?: PostEndpoints.PutGuideDelete): Promise<void>;
149
+ PutResource(params?: PostEndpoints.PutResource): Promise<void>;
150
+ PutResourceUpdate(params?: PostEndpoints.PutResourceUpdate): Promise<void>;
151
+ PutResourceDelete(params?: PostEndpoints.PutResourceDelete): Promise<void>;
152
+ GetModerationGames(): Promise<Readonly<Responses.GetModerationGames>>;
153
+ GetModerationRuns(params?: PostEndpoints.GetModerationRuns): Promise<Readonly<Responses.GetModerationRuns>>;
154
+ PutRunAssignee(params?: PostEndpoints.PutRunAssignee): Promise<void>;
155
+ PutRunDelete(params?: PostEndpoints.PutRunDelete): Promise<void>;
156
+ PutRunVerification(params?: PostEndpoints.PutRunVerification): Promise<void>;
157
+ PutRunVideoState(params?: PostEndpoints.PutRunVideoState): Promise<void>;
158
+ GetRunSettings(params?: PostEndpoints.GetRunSettings): Promise<Readonly<Responses.GetRunSettings>>;
159
+ PutRunSettings(params?: PostEndpoints.PutRunSettings): Promise<Readonly<Responses.PutRunSettings>>;
160
+ GetConversations(): Promise<Readonly<Responses.GetConversations>>;
161
+ GetConversationMessages(params?: PostEndpoints.GetConversationMessages): Promise<Readonly<Responses.GetConversationMessages>>;
162
+ PutConversation(params?: PostEndpoints.PutConversation): Promise<Readonly<Responses.PutConversation>>;
163
+ PutConversationMessage(params?: PostEndpoints.PutConversationMessage): Promise<Readonly<Responses.PutConversationMessage>>;
164
+ PutConversationLeave(params?: PostEndpoints.PutConversationLeave): Promise<void>;
165
+ PutConversationReport(params?: PostEndpoints.PutConversationReport): Promise<void>;
166
+ GetNotifications(): Promise<Readonly<Responses.GetNotifications>>;
167
+ PutNotificationsRead(): Promise<void>;
168
+ PutGameFollower(params?: PostEndpoints.PutGameFollower): Promise<void>;
169
+ PutGameFollowerDelete(params?: PostEndpoints.PutGameFollowerDelete): Promise<void>;
170
+ PutUserFollower(params?: PostEndpoints.PutUserFollower): Promise<void>;
171
+ PutUserFollowerDelete(params?: PostEndpoints.PutUserFollowerDelete): Promise<void>;
172
+ GetUserSettings(params?: PostEndpoints.GetUserSettings): Promise<Readonly<Responses.GetUserSettings>>;
173
+ PutUserSettings(params?: PostEndpoints.PutUserSettings): Promise<Readonly<Responses.PutUserSettings>>;
174
+ PutUserUpdateFeaturedRun(params?: PostEndpoints.PutUserUpdateFeaturedRun): Promise<void>;
175
+ PutUserUpdateGameOrdering(params?: PostEndpoints.PutUserUpdateGameOrdering): Promise<void>;
176
+ GetUserApiKey(params?: PostEndpoints.GetUserApiKey): Promise<Readonly<Responses.GetUserApiKey>>;
177
+ GetUserFollowers(params?: PostEndpoints.GetUserFollowers): Promise<Readonly<Responses.GetUserFollowers>>;
178
+ GetUserFollowingGames(params?: PostEndpoints.GetUserFollowingGames): Promise<Readonly<Responses.GetUserFollowingGames>>;
179
+ GetUserFollowingUsers(params?: PostEndpoints.GetUserFollowingUsers): Promise<Readonly<Responses.GetUserFollowingUsers>>;
180
+ GetUserGameBoostData(params?: PostEndpoints.GetUserGameBoostData): Promise<Readonly<Responses.GetUserGameBoostData>>;
181
+ GetUserDataExport(params?: PostEndpoints.GetUserDataExport): Promise<Readonly<Responses.GetUserDataExport>>;
182
+ PutGameFollowerOrder(params?: PostEndpoints.PutGameFollowerOrder): Promise<void>;
183
+ PutArticleSubmission(params?: PostEndpoints.PutArticleSubmission): Promise<void>;
184
+ GetCommentable(params?: PostEndpoints.GetCommentable): Promise<Readonly<Responses.GetCommentable>>;
185
+ PutComment(params?: PostEndpoints.PutComment): Promise<void>;
186
+ PutLike(params?: PostEndpoints.PutLike): Promise<Readonly<Responses.PutLike>>;
187
+ PutCommentableSettings(params?: PostEndpoints.PutCommentableSettings): Promise<void>;
188
+ GetThreadReadStatus(params?: PostEndpoints.GetThreadReadStatus): Promise<Readonly<Responses.GetThreadReadStatus>>;
189
+ PutThreadRead(params?: PostEndpoints.PutThreadRead): Promise<void>;
190
+ GetForumReadStatus(params?: PostEndpoints.GetForumReadStatus): Promise<Readonly<Responses.GetForumReadStatus>>;
191
+ GetThemeSettings(params: PostEndpoints.GetThemeSettings): Promise<Readonly<Responses.GetThemeSettings>>;
192
+ PutThemeSettings(params?: PostEndpoints.PutThemeSettings): Promise<void>;
193
+ GetUserSupporterData(params?: PostEndpoints.GetUserSupporterData): Promise<Readonly<Responses.GetUserSupporterData>>;
194
+ PutUserSupporterNewSubscription(params: PostEndpoints.PutUserSupporterNewSubscription): Promise<Readonly<Responses.PutUserSupporterNewSubscription>>;
195
+ PutGameBoostGrant(params?: PostEndpoints.PutGameBoostGrant): Promise<void>;
196
+ PutAdvertiseContact(params?: PostEndpoints.PutAdvertiseContact): Promise<void>;
197
+ GetTickets(params?: PostEndpoints.GetTickets): Promise<Readonly<Responses.GetTickets>>;
198
+ GetSeriesSettings(params?: PostEndpoints.GetSeriesSettings): Promise<Readonly<Responses.GetSeriesSettings>>;
199
+ GetUserBlocks(): Promise<Readonly<Responses.GetUserBlocks>>;
200
+ PutUserBlock(params?: PostEndpoints.PutUserBlock): Promise<void>;
201
+ PutGame(params?: PostEndpoints.PutGame): Promise<Readonly<Responses.PutGame>>;
202
+ PutGameModerator(): Promise<void>;
203
+ PutGameModeratorDelete(params?: PostEndpoints.PutGameModeratorDelete): Promise<void>;
204
+ PutSeriesGame(params?: PostEndpoints.PutSeriesGame): Promise<void>;
205
+ PutSeriesGameDelete(params?: PostEndpoints.PutSeriesGameDelete): Promise<void>;
206
+ PutSeriesModerator(): Promise<void>;
207
+ PutSeriesModeratorUpdate(): Promise<void>;
208
+ PutSeriesModeratorDelete(): Promise<void>;
209
+ PutSeriesSettings(params?: PostEndpoints.PutSeriesSettings): Promise<void>;
210
+ PutTicket(params?: PostEndpoints.PutTicket): Promise<Readonly<Responses.PutTicket>>;
211
+ PutTicketNote(params?: PostEndpoints.PutTicketNote): Promise<void>;
212
+ PutUserSocialConnection(params?: PostEndpoints.PutUserSocialConnection): Promise<void>;
213
+ PutUserSocialConnectionDelete(params?: PostEndpoints.PutUserSocialConnectionDelete): Promise<void>;
214
+ PutUserSocialConnectionSsoExchange(params?: PostEndpoints.PutUserSocialConnectionSsoExchange): Promise<void>;
215
+ PutUserUpdatePassword(params?: PostEndpoints.PutUserUpdatePassword): Promise<void>;
216
+ PutUserUpdateEmail(params?: PostEndpoints.PutUserUpdateEmail): Promise<Readonly<Responses.PutUserUpdateEmail>>;
217
+ PutUserUpdateName(params?: PostEndpoints.PutUserUpdateName): Promise<Readonly<Responses.PutUserUpdateName>>;
218
+ PutUserDelete(params?: PostEndpoints.PutUserDelete): Promise<void>;
219
+ PutCommentUpdate(params?: PostEndpoints.PutCommentUpdate): Promise<void>;
220
+ PutCommentDelete(params?: PostEndpoints.PutCommentDelete): Promise<void>;
221
+ PutCommentRestore(params?: PostEndpoints.PutCommentRestore): Promise<void>;
222
+ PutThread(params?: PostEndpoints.PutThread): Promise<Readonly<Responses.PutThread>>;
223
+ PutThreadLocked(params?: PostEndpoints.PutThreadLocked): Promise<void>;
224
+ PutThreadSticky(params?: PostEndpoints.PutThreadSticky): Promise<void>;
225
+ PutThreadDelete(params?: PostEndpoints.PutThreadDelete): Promise<void>;
226
+ }
227
+ export {};