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