steamutils 1.5.4 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/codeStyles/Project.xml +0 -1
- package/.idea/gbrowser_project.xml +11 -0
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.prettierrc.json +3 -3
- package/SteamClient.js +3184 -3184
- package/_steamproto.js +39 -39
- package/axios.js +84 -84
- package/bufferHelpers.js +115 -115
- package/cheerio.js +103 -103
- package/const.js +518 -518
- package/create_proto.js +96 -96
- package/create_remote_file.js +153 -153
- package/full_steamproto.js +39 -39
- package/helpers/protos.js +48 -48
- package/index.js +7930 -7930
- package/package.json +1 -1
- package/protos/csgo/base_gcmessages.proto +553 -553
- package/protos/csgo/base_gcmessages_csgo.proto +547 -547
- package/protos/csgo/c_peer2peer_netmessages.proto +55 -55
- package/protos/csgo/clientmessages.proto +48 -48
- package/protos/csgo/connectionless_netmessages.proto +17 -17
- package/protos/csgo/cs_gameevents.proto +35 -35
- package/protos/csgo/cs_usercmd.proto +34 -34
- package/protos/csgo/cstrike15_usermessages.proto +592 -592
- package/protos/csgo/demo.proto +165 -165
- package/protos/csgo/econ_gcmessages.proto +219 -219
- package/protos/csgo/enums_clientserver.proto +1529 -1529
- package/protos/csgo/fatdemo.proto +125 -125
- package/protos/csgo/gameevents.proto +120 -120
- package/protos/csgo/gcsdk_gcmessages.proto +323 -323
- package/protos/csgo/gcsystemmsgs.proto +243 -243
- package/protos/csgo/netmessages.proto +618 -618
- package/protos/csgo/networkbasetypes.proto +246 -246
- package/protos/csgo/networksystem_protomessages.proto +17 -17
- package/protos/csgo/steamdatagram_messages_auth.proto +65 -65
- package/protos/csgo/steamdatagram_messages_sdr.proto +534 -534
- package/protos/csgo/steammessages_cloud.steamworkssdk.proto +68 -68
- package/protos/csgo/steammessages_gamenetworkingui.proto +61 -61
- package/protos/csgo/steammessages_helprequest.steamworkssdk.proto +22 -22
- package/protos/csgo/steammessages_oauth.steamworkssdk.proto +18 -18
- package/protos/csgo/steammessages_player.steamworkssdk.proto +254 -254
- package/protos/csgo/steammessages_publishedfile.steamworkssdk.proto +233 -233
- package/protos/csgo/steamnetworkingsockets_messages.proto +205 -205
- package/protos/csgo/steamnetworkingsockets_messages_certs.proto +39 -39
- package/protos/csgo/steamnetworkingsockets_messages_udp.proto +75 -75
- package/protos/csgo/te.proto +259 -259
- package/protos/csgo/uifontfile_format.proto +13 -13
- package/protos/csgo/usercmd.proto +39 -39
- package/protos/csgo/usermessages.proto +752 -752
- package/protos/google/protobuf/descriptor.proto +281 -281
- package/protos/steam/clientmetrics.proto +45 -45
- package/protos/steam/content_manifest.proto +62 -62
- package/protos/steam/contenthubs.proto +41 -41
- package/protos/steam/encrypted_app_ticket.proto +10 -10
- package/protos/steam/enums.proto +501 -501
- package/protos/steam/enums_clientserver.proto +1508 -1508
- package/protos/steam/enums_productinfo.proto +14 -14
- package/protos/steam/htmlmessages.proto +1039 -1039
- package/protos/steam/offline_ticket.proto +8 -8
- package/protos/steam/steamdatagram_messages_auth.proto +65 -65
- package/protos/steam/steamdatagram_messages_sdr.proto +533 -533
- package/protos/steam/steammessages_accounthardware.steamclient.proto +167 -167
- package/protos/steam/steammessages_appoverview.proto +204 -204
- package/protos/steam/steammessages_auth.steamclient.proto +375 -375
- package/protos/steam/steammessages_broadcast.steamclient.proto +618 -618
- package/protos/steam/steammessages_chat.steamclient.proto +1070 -1070
- package/protos/steam/steammessages_client_objects.proto +649 -649
- package/protos/steam/steammessages_clientlanp2p.proto +43 -43
- package/protos/steam/steammessages_clientmetrics.steamclient.proto +192 -192
- package/protos/steam/steammessages_clientnotificationtypes.proto +250 -250
- package/protos/steam/steammessages_clientserver.proto +392 -392
- package/protos/steam/steammessages_clientserver_2.proto +771 -771
- package/protos/steam/steammessages_clientserver_appinfo.proto +131 -131
- package/protos/steam/steammessages_clientserver_friends.proto +260 -260
- package/protos/steam/steammessages_clientserver_gameservers.proto +159 -159
- package/protos/steam/steammessages_clientserver_lbs.proto +70 -70
- package/protos/steam/steammessages_clientserver_login.proto +167 -167
- package/protos/steam/steammessages_clientserver_mms.proto +233 -233
- package/protos/steam/steammessages_clientserver_ucm.proto +207 -207
- package/protos/steam/steammessages_clientserver_uds.proto +125 -125
- package/protos/steam/steammessages_clientserver_ufs.proto +45 -45
- package/protos/steam/steammessages_clientserver_userstats.proto +80 -80
- package/protos/steam/steammessages_cloud.steamclient.proto +422 -422
- package/protos/steam/steammessages_contentsystem.steamclient.proto +123 -123
- package/protos/steam/steammessages_credentials.steamclient.proto +96 -96
- package/protos/steam/steammessages_datapublisher.steamclient.proto +102 -102
- package/protos/steam/steammessages_depotbuilder.steamclient.proto +99 -99
- package/protos/steam/steammessages_deviceauth.steamclient.proto +169 -169
- package/protos/steam/steammessages_econ.steamclient.proto +137 -137
- package/protos/steam/steammessages_familygroups.steamclient.proto +441 -441
- package/protos/steam/steammessages_friendmessages.steamclient.proto +141 -141
- package/protos/steam/steammessages_gamenetworking.steamclient.proto +25 -25
- package/protos/steam/steammessages_gamenetworkingui.proto +61 -61
- package/protos/steam/steammessages_gamenotifications.steamclient.proto +131 -131
- package/protos/steam/steammessages_gameservers.steamclient.proto +136 -136
- package/protos/steam/steammessages_hiddevices.proto +157 -157
- package/protos/steam/steammessages_inventory.steamclient.proto +172 -172
- package/protos/steam/steammessages_linkfilter.steamclient.proto +39 -39
- package/protos/steam/steammessages_lobbymatchmaking.steamclient.proto +29 -29
- package/protos/steam/steammessages_market.steamclient.proto +22 -22
- package/protos/steam/steammessages_marketingmessages.steamclient.proto +273 -273
- package/protos/steam/steammessages_offline.steamclient.proto +33 -33
- package/protos/steam/steammessages_parental.steamclient.proto +262 -262
- package/protos/steam/steammessages_parties.steamclient.proto +75 -75
- package/protos/steam/steammessages_partnerapps.steamclient.proto +106 -106
- package/protos/steam/steammessages_player.steamclient.proto +915 -915
- package/protos/steam/steammessages_publishedfile.steamclient.proto +737 -737
- package/protos/steam/steammessages_qms.steamclient.proto +111 -111
- package/protos/steam/steammessages_remoteclient.proto +100 -100
- package/protos/steam/steammessages_remoteclient_discovery.proto +244 -244
- package/protos/steam/steammessages_remoteclient_service.steamclient.proto +31 -31
- package/protos/steam/steammessages_remoteclient_service_messages.proto +217 -217
- package/protos/steam/steammessages_remoteplay.proto +975 -975
- package/protos/steam/steammessages_secrets.steamclient.proto +35 -35
- package/protos/steam/steammessages_shader.steamclient.proto +89 -89
- package/protos/steam/steammessages_site_license.steamclient.proto +103 -103
- package/protos/steam/steammessages_sitelicenseclient.proto +38 -38
- package/protos/steam/steammessages_siteserverui.proto +130 -130
- package/protos/steam/steammessages_steamtv.steamclient.proto +533 -533
- package/protos/steam/steammessages_store.steamclient.proto +404 -404
- package/protos/steam/steammessages_storebrowse.steamclient.proto +457 -457
- package/protos/steam/steammessages_timedtrial.steamclient.proto +40 -40
- package/protos/steam/steammessages_twofactor.steamclient.proto +157 -157
- package/protos/steam/steammessages_unified_test.steamclient.proto +51 -51
- package/protos/steam/steammessages_useraccount.steamclient.proto +211 -211
- package/protos/steam/steammessages_vac.steamclient.proto +37 -37
- package/protos/steam/steammessages_video.steamclient.proto +68 -68
- package/protos/steam/steammessages_virtualcontroller.proto +138 -138
- package/protos/steam/steammessages_workshop.steamclient.proto +19 -19
- package/protos/steam/steamnetworkingsockets_messages.proto +205 -205
- package/protos/steam/steamnetworkingsockets_messages_certs.proto +39 -39
- package/protos/steam/steamnetworkingsockets_messages_udp.proto +75 -75
- package/protos/steam/webuimessages_achievements.proto +29 -29
- package/protos/steam/webuimessages_gamenotes.proto +21 -21
- package/protos/steam/webuimessages_gamescope.proto +57 -57
- package/protos/steam/webuimessages_steamengine.proto +41 -41
- package/protos/steam/webuimessages_steamos.proto +114 -114
- package/protos/steam/webuimessages_storagedevicemanager.proto +110 -110
- package/protos/steam/webuimessages_systemmanager.proto +17 -17
- package/protos/steam/webuimessages_transport.proto +22 -22
- package/protos/steam/webuimessages_transportvalidation.proto +111 -111
- package/protos/webui/common.proto +4024 -4024
- package/protos/webui/service_accountcart.proto +153 -153
- package/protos/webui/service_accountlinking.proto +27 -27
- package/protos/webui/service_accountprivacy.proto +42 -42
- package/protos/webui/service_accountprivateapps.proto +34 -34
- package/protos/webui/service_auction.proto +97 -97
- package/protos/webui/service_authentication.proto +222 -222
- package/protos/webui/service_authenticationsupport.proto +74 -74
- package/protos/webui/service_broadcast.proto +562 -562
- package/protos/webui/service_chat.proto +11 -11
- package/protos/webui/service_chatroom.proto +810 -810
- package/protos/webui/service_chatusability.proto +107 -107
- package/protos/webui/service_checkout.proto +84 -84
- package/protos/webui/service_clan.proto +41 -41
- package/protos/webui/service_clanchatrooms.proto +25 -25
- package/protos/webui/service_clanfaqs.proto +202 -202
- package/protos/webui/service_clientcomm.proto +151 -151
- package/protos/webui/service_clientmetrics.proto +22 -22
- package/protos/webui/service_cloud.proto +222 -222
- package/protos/webui/service_cloudconfigstore.proto +51 -51
- package/protos/webui/service_cloudgaming.proto +30 -30
- package/protos/webui/service_community.proto +365 -365
- package/protos/webui/service_dailydeal.proto +89 -89
- package/protos/webui/service_econ.proto +134 -134
- package/protos/webui/service_embedded.proto +24 -24
- package/protos/webui/service_experimentservice.proto +6 -6
- package/protos/webui/service_familygroups.proto +355 -355
- package/protos/webui/service_fovasvideo.proto +15 -15
- package/protos/webui/service_friendmessages.proto +133 -133
- package/protos/webui/service_friendslist.proto +70 -70
- package/protos/webui/service_gamenotes.proto +15 -15
- package/protos/webui/service_gamerecording.proto +265 -265
- package/protos/webui/service_gamerecordingclip.proto +85 -85
- package/protos/webui/service_gamerecordingdebug.proto +52 -52
- package/protos/webui/service_helprequestlogs.proto +16 -16
- package/protos/webui/service_loyaltyrewards.proto +252 -252
- package/protos/webui/service_marketingmessages.proto +215 -215
- package/protos/webui/service_mobileapp.proto +18 -18
- package/protos/webui/service_mobileauth.proto +24 -24
- package/protos/webui/service_mobiledevice.proto +26 -26
- package/protos/webui/service_mobileperaccount.proto +31 -31
- package/protos/webui/service_news.proto +110 -110
- package/protos/webui/service_parental.proto +258 -258
- package/protos/webui/service_partnermembershipinvite.proto +34 -34
- package/protos/webui/service_partnerstorebrowse.proto +28 -28
- package/protos/webui/service_phone.proto +51 -51
- package/protos/webui/service_physicalgoods.proto +15 -15
- package/protos/webui/service_player.proto +918 -918
- package/protos/webui/service_promotioneventinvites.proto +109 -109
- package/protos/webui/service_promotionplanning.proto +186 -186
- package/protos/webui/service_promotionstats.proto +23 -23
- package/protos/webui/service_publishedfile.proto +714 -714
- package/protos/webui/service_publishing.proto +200 -200
- package/protos/webui/service_quest.proto +127 -127
- package/protos/webui/service_salefeature.proto +373 -373
- package/protos/webui/service_saleitemrewards.proto +54 -54
- package/protos/webui/service_shoppingcart.proto +152 -152
- package/protos/webui/service_steamawards.proto +76 -76
- package/protos/webui/service_steamcharts.proto +75 -75
- package/protos/webui/service_steamengine.proto +36 -36
- package/protos/webui/service_steamlearn.proto +876 -876
- package/protos/webui/service_steamnotification.proto +73 -73
- package/protos/webui/service_steamtv.proto +495 -495
- package/protos/webui/service_steamvrvoicechat.proto +67 -67
- package/protos/webui/service_steamvrwebrtc.proto +48 -48
- package/protos/webui/service_storagedevicemanager.proto +104 -104
- package/protos/webui/service_store.proto +359 -359
- package/protos/webui/service_storeappsimilarity.proto +76 -76
- package/protos/webui/service_storebrowse.proto +103 -103
- package/protos/webui/service_storemarketing.proto +44 -44
- package/protos/webui/service_storequery.proto +103 -103
- package/protos/webui/service_storesales.proto +87 -87
- package/protos/webui/service_storetopsellers.proto +44 -44
- package/protos/webui/service_systemmanager.proto +11 -11
- package/protos/webui/service_test_transporterror.proto +6 -6
- package/protos/webui/service_transportauth.proto +17 -17
- package/protos/webui/service_transportvalidation.proto +69 -69
- package/protos/webui/service_twofactor.proto +170 -170
- package/protos/webui/service_useraccount.proto +142 -142
- package/protos/webui/service_usergameactivity.proto +34 -34
- package/protos/webui/service_usergamenotes.proto +70 -70
- package/protos/webui/service_usernews.proto +68 -68
- package/protos/webui/service_userreviews.proto +97 -97
- package/protos/webui/service_video.proto +50 -50
- package/protos/webui/service_videoclip.proto +62 -62
- package/protos/webui/service_voicechat.proto +139 -139
- package/protos/webui/service_webrtc.proto +52 -52
- package/remote.js +2240 -2240
- package/steamproto.js +146 -146
- package/utils.js +1084 -1050
- package/.idea/deployment.xml +0 -14
package/remote.js
CHANGED
@@ -1,2240 +1,2240 @@
|
|
1
|
-
import axios from "axios";
|
2
|
-
import SteamUser, { ELanguage } from "./index.js";
|
3
|
-
import CookieManager from "./CookieManager.js";
|
4
|
-
|
5
|
-
function getAppURL() {
|
6
|
-
if (!RemoteSteamUser.__appIndex) {
|
7
|
-
RemoteSteamUser.__appIndex = 0;
|
8
|
-
}
|
9
|
-
RemoteSteamUser.__appIndex++;
|
10
|
-
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
11
|
-
RemoteSteamUser.__appIndex = 0;
|
12
|
-
}
|
13
|
-
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
14
|
-
}
|
15
|
-
|
16
|
-
function formatParams(__params, __cookies) {
|
17
|
-
if (__params.length === 1 && __params[0] === undefined) {
|
18
|
-
__params.length = 0;
|
19
|
-
}
|
20
|
-
if (__cookies) {
|
21
|
-
if (!Array.isArray(__cookies)) {
|
22
|
-
__cookies = [__cookies];
|
23
|
-
}
|
24
|
-
__cookies = __cookies.map(function (cookie) {
|
25
|
-
return cookie.toString();
|
26
|
-
});
|
27
|
-
}
|
28
|
-
|
29
|
-
return {
|
30
|
-
__params,
|
31
|
-
__cookies,
|
32
|
-
};
|
33
|
-
}
|
34
|
-
|
35
|
-
const MAX_RETRY = 5;
|
36
|
-
|
37
|
-
async function doRequest(config) {
|
38
|
-
for (let i = 0; i < MAX_RETRY; i++) {
|
39
|
-
let url = getAppURL();
|
40
|
-
url = [url.replace(/\/$/, ""), config.method].join("/");
|
41
|
-
|
42
|
-
try {
|
43
|
-
const response = await axios.post(url, config);
|
44
|
-
|
45
|
-
if (!response || !response.data) {
|
46
|
-
continue;
|
47
|
-
}
|
48
|
-
|
49
|
-
return response.data?.result;
|
50
|
-
} catch (e) {
|
51
|
-
/* empty */
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
export default class RemoteSteamUser {
|
57
|
-
constructor(cookies, refreshCookie, onRefreshCookie) {
|
58
|
-
if (!Array.isArray(cookies)) {
|
59
|
-
cookies = [cookies];
|
60
|
-
}
|
61
|
-
this._refreshCookie = refreshCookie;
|
62
|
-
this._onRefreshCookie = onRefreshCookie;
|
63
|
-
this._cookies = cookies.map(function (cookie) {
|
64
|
-
return new CookieManager(cookie?.cookie || cookie);
|
65
|
-
});
|
66
|
-
const timezoneOffset = `${new Date().getTimezoneOffset() * -1 * 60},0`;
|
67
|
-
for (const cookie of this._cookies) {
|
68
|
-
cookie.setCookie("timezoneOffset", timezoneOffset);
|
69
|
-
|
70
|
-
let { steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, miniprofile, sessionid } = SteamUser.parseCookie(cookie.toString());
|
71
|
-
|
72
|
-
if (!sessionid) {
|
73
|
-
sessionid = SteamUser.generateSessionID();
|
74
|
-
cookie.setCookie("sessionid", sessionid);
|
75
|
-
}
|
76
|
-
|
77
|
-
this._sessionId = sessionid;
|
78
|
-
this._customURL = null;
|
79
|
-
this._steamIdUser = steamId;
|
80
|
-
this._miniProfileUser = miniprofile;
|
81
|
-
this._steamMachineAuth = steamMachineAuth;
|
82
|
-
this._steamLoginSecure = steamLoginSecure;
|
83
|
-
this._steamRememberLogin = steamRememberLogin;
|
84
|
-
}
|
85
|
-
|
86
|
-
this.setSteamLanguage(ELanguage.english);
|
87
|
-
|
88
|
-
if (!this._steamIdUser) {
|
89
|
-
console.error("Invalid cookie. Missing steamId");
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
setSteamLanguage(language) {
|
94
|
-
language = language?.toLowerCase();
|
95
|
-
if (!Object.hasOwn(ELanguage, language)) {
|
96
|
-
return;
|
97
|
-
}
|
98
|
-
this.Steam_Language = language;
|
99
|
-
this._cookies.forEach(function (cookie) {
|
100
|
-
cookie.setCookie("Steam_Language", language);
|
101
|
-
cookie.setCookie("strInventoryLastContext", "730_2");
|
102
|
-
});
|
103
|
-
}
|
104
|
-
getCookies(index = 0) {
|
105
|
-
return this._cookies[index].toString();
|
106
|
-
}
|
107
|
-
getSteamIdUser() {
|
108
|
-
return this._steamIdUser;
|
109
|
-
}
|
110
|
-
getMiniProfileUser() {
|
111
|
-
return this._miniProfileUser;
|
112
|
-
}
|
113
|
-
getSessionid() {
|
114
|
-
return this._sessionId;
|
115
|
-
}
|
116
|
-
getSteamMachineAuth() {
|
117
|
-
return this._steamMachineAuth;
|
118
|
-
}
|
119
|
-
getSteamUserProfileURL(steamId) {
|
120
|
-
return `profiles/${steamId}`;
|
121
|
-
}
|
122
|
-
getMyProfileURL() {
|
123
|
-
if (this._customURL) {
|
124
|
-
return `id/${this._customURL}`;
|
125
|
-
}
|
126
|
-
return "my";
|
127
|
-
}
|
128
|
-
async getUserSummary(steamId) {
|
129
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
130
|
-
const config = {
|
131
|
-
method: "getUserSummary",
|
132
|
-
params: __params,
|
133
|
-
cookies: __cookies,
|
134
|
-
is_static: false,
|
135
|
-
};
|
136
|
-
return await doRequest(config);
|
137
|
-
}
|
138
|
-
async getUserSummaryFromProfile(steamId) {
|
139
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
140
|
-
const config = {
|
141
|
-
method: "getUserSummaryFromProfile",
|
142
|
-
params: __params,
|
143
|
-
cookies: __cookies,
|
144
|
-
is_static: false,
|
145
|
-
};
|
146
|
-
return await doRequest(config);
|
147
|
-
}
|
148
|
-
async getQuickInviteData() {
|
149
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
150
|
-
const config = {
|
151
|
-
method: "getQuickInviteData",
|
152
|
-
params: __params,
|
153
|
-
cookies: __cookies,
|
154
|
-
is_static: false,
|
155
|
-
};
|
156
|
-
return await doRequest(config);
|
157
|
-
}
|
158
|
-
async getQuickInviteLink() {
|
159
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
160
|
-
const config = {
|
161
|
-
method: "getQuickInviteLink",
|
162
|
-
params: __params,
|
163
|
-
cookies: __cookies,
|
164
|
-
is_static: false,
|
165
|
-
};
|
166
|
-
return await doRequest(config);
|
167
|
-
}
|
168
|
-
async getCurrentQuickInviteTokens() {
|
169
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
170
|
-
const config = {
|
171
|
-
method: "getCurrentQuickInviteTokens",
|
172
|
-
params: __params,
|
173
|
-
cookies: __cookies,
|
174
|
-
is_static: false,
|
175
|
-
};
|
176
|
-
return await doRequest(config);
|
177
|
-
}
|
178
|
-
async acceptQuickInviteData(quickInviteData) {
|
179
|
-
const { __params, __cookies } = formatParams([quickInviteData], this._cookies);
|
180
|
-
const config = {
|
181
|
-
method: "acceptQuickInviteData",
|
182
|
-
params: __params,
|
183
|
-
cookies: __cookies,
|
184
|
-
is_static: false,
|
185
|
-
};
|
186
|
-
return await doRequest(config);
|
187
|
-
}
|
188
|
-
async acceptQuickInviteLink(quickInviteLink) {
|
189
|
-
const { __params, __cookies } = formatParams([quickInviteLink], this._cookies);
|
190
|
-
const config = {
|
191
|
-
method: "acceptQuickInviteLink",
|
192
|
-
params: __params,
|
193
|
-
cookies: __cookies,
|
194
|
-
is_static: false,
|
195
|
-
};
|
196
|
-
return await doRequest(config);
|
197
|
-
}
|
198
|
-
async _parseComments(html) {
|
199
|
-
const { __params, __cookies } = formatParams([html], this._cookies);
|
200
|
-
const config = {
|
201
|
-
method: "_parseComments",
|
202
|
-
params: __params,
|
203
|
-
cookies: __cookies,
|
204
|
-
is_static: false,
|
205
|
-
};
|
206
|
-
return await doRequest(config);
|
207
|
-
}
|
208
|
-
async getMyComments() {
|
209
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
210
|
-
const config = {
|
211
|
-
method: "getMyComments",
|
212
|
-
params: __params,
|
213
|
-
cookies: __cookies,
|
214
|
-
is_static: false,
|
215
|
-
};
|
216
|
-
return await doRequest(config);
|
217
|
-
}
|
218
|
-
async getUserComments(steamId) {
|
219
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
220
|
-
const config = {
|
221
|
-
method: "getUserComments",
|
222
|
-
params: __params,
|
223
|
-
cookies: __cookies,
|
224
|
-
is_static: false,
|
225
|
-
};
|
226
|
-
return await doRequest(config);
|
227
|
-
}
|
228
|
-
async getGroupOverview({ groupURL, gid, page, content_only, searchKey }) {
|
229
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, page, content_only, searchKey }], this._cookies);
|
230
|
-
const config = {
|
231
|
-
method: "getGroupOverview",
|
232
|
-
params: __params,
|
233
|
-
cookies: __cookies,
|
234
|
-
is_static: false,
|
235
|
-
};
|
236
|
-
return await doRequest(config);
|
237
|
-
}
|
238
|
-
async getGroupMembers({ groupURL, gid, page, link, content_only, searchKey }) {
|
239
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, page, link, content_only, searchKey }], this._cookies);
|
240
|
-
const config = {
|
241
|
-
method: "getGroupMembers",
|
242
|
-
params: __params,
|
243
|
-
cookies: __cookies,
|
244
|
-
is_static: false,
|
245
|
-
};
|
246
|
-
return await doRequest(config);
|
247
|
-
}
|
248
|
-
async getGroupMembersFull({ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }) {
|
249
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }], this._cookies);
|
250
|
-
const config = {
|
251
|
-
method: "getGroupMembersFull",
|
252
|
-
params: __params,
|
253
|
-
cookies: __cookies,
|
254
|
-
is_static: false,
|
255
|
-
};
|
256
|
-
return await doRequest(config);
|
257
|
-
}
|
258
|
-
async _parseFriendList(result) {
|
259
|
-
const { __params, __cookies } = formatParams([result], this._cookies);
|
260
|
-
const config = {
|
261
|
-
method: "_parseFriendList",
|
262
|
-
params: __params,
|
263
|
-
cookies: __cookies,
|
264
|
-
is_static: false,
|
265
|
-
};
|
266
|
-
return await doRequest(config);
|
267
|
-
}
|
268
|
-
async getFollowingPlayersList(steamId) {
|
269
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
270
|
-
const config = {
|
271
|
-
method: "getFollowingPlayersList",
|
272
|
-
params: __params,
|
273
|
-
cookies: __cookies,
|
274
|
-
is_static: false,
|
275
|
-
};
|
276
|
-
return await doRequest(config);
|
277
|
-
}
|
278
|
-
async getFriendsList(steamId) {
|
279
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
280
|
-
const config = {
|
281
|
-
method: "getFriendsList",
|
282
|
-
params: __params,
|
283
|
-
cookies: __cookies,
|
284
|
-
is_static: false,
|
285
|
-
};
|
286
|
-
return await doRequest(config);
|
287
|
-
}
|
288
|
-
async getMyFriendsIDList() {
|
289
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
290
|
-
const config = {
|
291
|
-
method: "getMyFriendsIDList",
|
292
|
-
params: __params,
|
293
|
-
cookies: __cookies,
|
294
|
-
is_static: false,
|
295
|
-
};
|
296
|
-
return await doRequest(config);
|
297
|
-
}
|
298
|
-
async getPendingFriendList() {
|
299
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
300
|
-
const config = {
|
301
|
-
method: "getPendingFriendList",
|
302
|
-
params: __params,
|
303
|
-
cookies: __cookies,
|
304
|
-
is_static: false,
|
305
|
-
};
|
306
|
-
return await doRequest(config);
|
307
|
-
}
|
308
|
-
async getMatchHistory_initial(matchHistoryType) {
|
309
|
-
const { __params, __cookies } = formatParams([matchHistoryType], this._cookies);
|
310
|
-
const config = {
|
311
|
-
method: "getMatchHistory_initial",
|
312
|
-
params: __params,
|
313
|
-
cookies: __cookies,
|
314
|
-
is_static: false,
|
315
|
-
};
|
316
|
-
return await doRequest(config);
|
317
|
-
}
|
318
|
-
async getClientJsToken(retry) {
|
319
|
-
const { __params, __cookies } = formatParams([retry], this._cookies);
|
320
|
-
const config = {
|
321
|
-
method: "getClientJsToken",
|
322
|
-
params: __params,
|
323
|
-
cookies: __cookies,
|
324
|
-
is_static: false,
|
325
|
-
};
|
326
|
-
return await doRequest(config);
|
327
|
-
}
|
328
|
-
async _getHistoryMatches(matchHistoryType, token) {
|
329
|
-
const { __params, __cookies } = formatParams([matchHistoryType, token], this._cookies);
|
330
|
-
const config = {
|
331
|
-
method: "_getHistoryMatches",
|
332
|
-
params: __params,
|
333
|
-
cookies: __cookies,
|
334
|
-
is_static: false,
|
335
|
-
};
|
336
|
-
return await doRequest(config);
|
337
|
-
}
|
338
|
-
async getFullHistoryMatches({ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
|
339
|
-
const { __params, __cookies } = formatParams([{ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }], this._cookies);
|
340
|
-
const config = {
|
341
|
-
method: "getFullHistoryMatches",
|
342
|
-
params: __params,
|
343
|
-
cookies: __cookies,
|
344
|
-
is_static: false,
|
345
|
-
};
|
346
|
-
return await doRequest(config);
|
347
|
-
}
|
348
|
-
async _getFullHistoryMatches({ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
|
349
|
-
const { __params, __cookies } = formatParams([{ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }], this._cookies);
|
350
|
-
const config = {
|
351
|
-
method: "_getFullHistoryMatches",
|
352
|
-
params: __params,
|
353
|
-
cookies: __cookies,
|
354
|
-
is_static: false,
|
355
|
-
};
|
356
|
-
return await doRequest(config);
|
357
|
-
}
|
358
|
-
async followUser(steamId) {
|
359
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
360
|
-
const config = {
|
361
|
-
method: "followUser",
|
362
|
-
params: __params,
|
363
|
-
cookies: __cookies,
|
364
|
-
is_static: false,
|
365
|
-
};
|
366
|
-
return await doRequest(config);
|
367
|
-
}
|
368
|
-
async unfollowUser(steamId) {
|
369
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
370
|
-
const config = {
|
371
|
-
method: "unfollowUser",
|
372
|
-
params: __params,
|
373
|
-
cookies: __cookies,
|
374
|
-
is_static: false,
|
375
|
-
};
|
376
|
-
return await doRequest(config);
|
377
|
-
}
|
378
|
-
async unfollowUsers(steamIDs) {
|
379
|
-
const { __params, __cookies } = formatParams([steamIDs], this._cookies);
|
380
|
-
const config = {
|
381
|
-
method: "unfollowUsers",
|
382
|
-
params: __params,
|
383
|
-
cookies: __cookies,
|
384
|
-
is_static: false,
|
385
|
-
};
|
386
|
-
return await doRequest(config);
|
387
|
-
}
|
388
|
-
async unfollowAllFollowUsers() {
|
389
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
390
|
-
const config = {
|
391
|
-
method: "unfollowAllFollowUsers",
|
392
|
-
params: __params,
|
393
|
-
cookies: __cookies,
|
394
|
-
is_static: false,
|
395
|
-
};
|
396
|
-
return await doRequest(config);
|
397
|
-
}
|
398
|
-
async blockCommunicationUser(steamId) {
|
399
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
400
|
-
const config = {
|
401
|
-
method: "blockCommunicationUser",
|
402
|
-
params: __params,
|
403
|
-
cookies: __cookies,
|
404
|
-
is_static: false,
|
405
|
-
};
|
406
|
-
return await doRequest(config);
|
407
|
-
}
|
408
|
-
async unblockCommunicationUser(steamId) {
|
409
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
410
|
-
const config = {
|
411
|
-
method: "unblockCommunicationUser",
|
412
|
-
params: __params,
|
413
|
-
cookies: __cookies,
|
414
|
-
is_static: false,
|
415
|
-
};
|
416
|
-
return await doRequest(config);
|
417
|
-
}
|
418
|
-
async addFriendUser(steamId) {
|
419
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
420
|
-
const config = {
|
421
|
-
method: "addFriendUser",
|
422
|
-
params: __params,
|
423
|
-
cookies: __cookies,
|
424
|
-
is_static: false,
|
425
|
-
};
|
426
|
-
return await doRequest(config);
|
427
|
-
}
|
428
|
-
async removeFriend(steamId) {
|
429
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
430
|
-
const config = {
|
431
|
-
method: "removeFriend",
|
432
|
-
params: __params,
|
433
|
-
cookies: __cookies,
|
434
|
-
is_static: false,
|
435
|
-
};
|
436
|
-
return await doRequest(config);
|
437
|
-
}
|
438
|
-
async removeFriends(steamIds) {
|
439
|
-
const { __params, __cookies } = formatParams([steamIds], this._cookies);
|
440
|
-
const config = {
|
441
|
-
method: "removeFriends",
|
442
|
-
params: __params,
|
443
|
-
cookies: __cookies,
|
444
|
-
is_static: false,
|
445
|
-
};
|
446
|
-
return await doRequest(config);
|
447
|
-
}
|
448
|
-
async acceptFriendRequest(steamId) {
|
449
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
450
|
-
const config = {
|
451
|
-
method: "acceptFriendRequest",
|
452
|
-
params: __params,
|
453
|
-
cookies: __cookies,
|
454
|
-
is_static: false,
|
455
|
-
};
|
456
|
-
return await doRequest(config);
|
457
|
-
}
|
458
|
-
async cancelAddFriendUser(steamId) {
|
459
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
460
|
-
const config = {
|
461
|
-
method: "cancelAddFriendUser",
|
462
|
-
params: __params,
|
463
|
-
cookies: __cookies,
|
464
|
-
is_static: false,
|
465
|
-
};
|
466
|
-
return await doRequest(config);
|
467
|
-
}
|
468
|
-
async ignoreFriendRequest(steamId) {
|
469
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
470
|
-
const config = {
|
471
|
-
method: "ignoreFriendRequest",
|
472
|
-
params: __params,
|
473
|
-
cookies: __cookies,
|
474
|
-
is_static: false,
|
475
|
-
};
|
476
|
-
return await doRequest(config);
|
477
|
-
}
|
478
|
-
async setNickname(steamId, nickname) {
|
479
|
-
const { __params, __cookies } = formatParams([steamId, nickname], this._cookies);
|
480
|
-
const config = {
|
481
|
-
method: "setNickname",
|
482
|
-
params: __params,
|
483
|
-
cookies: __cookies,
|
484
|
-
is_static: false,
|
485
|
-
};
|
486
|
-
return await doRequest(config);
|
487
|
-
}
|
488
|
-
async removeNickname(steamId) {
|
489
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
490
|
-
const config = {
|
491
|
-
method: "removeNickname",
|
492
|
-
params: __params,
|
493
|
-
cookies: __cookies,
|
494
|
-
is_static: false,
|
495
|
-
};
|
496
|
-
return await doRequest(config);
|
497
|
-
}
|
498
|
-
async getNameHistory(steamId) {
|
499
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
500
|
-
const config = {
|
501
|
-
method: "getNameHistory",
|
502
|
-
params: __params,
|
503
|
-
cookies: __cookies,
|
504
|
-
is_static: false,
|
505
|
-
};
|
506
|
-
return await doRequest(config);
|
507
|
-
}
|
508
|
-
async clearPreviousAliases() {
|
509
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
510
|
-
const config = {
|
511
|
-
method: "clearPreviousAliases",
|
512
|
-
params: __params,
|
513
|
-
cookies: __cookies,
|
514
|
-
is_static: false,
|
515
|
-
};
|
516
|
-
return await doRequest(config);
|
517
|
-
}
|
518
|
-
async setupProfile() {
|
519
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
520
|
-
const config = {
|
521
|
-
method: "setupProfile",
|
522
|
-
params: __params,
|
523
|
-
cookies: __cookies,
|
524
|
-
is_static: false,
|
525
|
-
};
|
526
|
-
return await doRequest(config);
|
527
|
-
}
|
528
|
-
async editMyProfile({ personaName, realName, customURL, country, summary, hide_profile_awards }) {
|
529
|
-
const { __params, __cookies } = formatParams([{ personaName, realName, customURL, country, summary, hide_profile_awards }], this._cookies);
|
530
|
-
const config = {
|
531
|
-
method: "editMyProfile",
|
532
|
-
params: __params,
|
533
|
-
cookies: __cookies,
|
534
|
-
is_static: false,
|
535
|
-
};
|
536
|
-
return await doRequest(config);
|
537
|
-
}
|
538
|
-
async setPersonaName(name) {
|
539
|
-
const { __params, __cookies } = formatParams([name], this._cookies);
|
540
|
-
const config = {
|
541
|
-
method: "setPersonaName",
|
542
|
-
params: __params,
|
543
|
-
cookies: __cookies,
|
544
|
-
is_static: false,
|
545
|
-
};
|
546
|
-
return await doRequest(config);
|
547
|
-
}
|
548
|
-
async getPrivacySettings() {
|
549
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
550
|
-
const config = {
|
551
|
-
method: "getPrivacySettings",
|
552
|
-
params: __params,
|
553
|
-
cookies: __cookies,
|
554
|
-
is_static: false,
|
555
|
-
};
|
556
|
-
return await doRequest(config);
|
557
|
-
}
|
558
|
-
async updatePrivacySettings(privacySettings) {
|
559
|
-
const { __params, __cookies } = formatParams([privacySettings], this._cookies);
|
560
|
-
const config = {
|
561
|
-
method: "updatePrivacySettings",
|
562
|
-
params: __params,
|
563
|
-
cookies: __cookies,
|
564
|
-
is_static: false,
|
565
|
-
};
|
566
|
-
return await doRequest(config);
|
567
|
-
}
|
568
|
-
async publicPrivacySettings() {
|
569
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
570
|
-
const config = {
|
571
|
-
method: "publicPrivacySettings",
|
572
|
-
params: __params,
|
573
|
-
cookies: __cookies,
|
574
|
-
is_static: false,
|
575
|
-
};
|
576
|
-
return await doRequest(config);
|
577
|
-
}
|
578
|
-
async privatePrivacySettings() {
|
579
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
580
|
-
const config = {
|
581
|
-
method: "privatePrivacySettings",
|
582
|
-
params: __params,
|
583
|
-
cookies: __cookies,
|
584
|
-
is_static: false,
|
585
|
-
};
|
586
|
-
return await doRequest(config);
|
587
|
-
}
|
588
|
-
async postComment(steamId, message) {
|
589
|
-
const { __params, __cookies } = formatParams([steamId, message], this._cookies);
|
590
|
-
const config = {
|
591
|
-
method: "postComment",
|
592
|
-
params: __params,
|
593
|
-
cookies: __cookies,
|
594
|
-
is_static: false,
|
595
|
-
};
|
596
|
-
return await doRequest(config);
|
597
|
-
}
|
598
|
-
async deleteComment(steamId, gidcomment) {
|
599
|
-
const { __params, __cookies } = formatParams([steamId, gidcomment], this._cookies);
|
600
|
-
const config = {
|
601
|
-
method: "deleteComment",
|
602
|
-
params: __params,
|
603
|
-
cookies: __cookies,
|
604
|
-
is_static: false,
|
605
|
-
};
|
606
|
-
return await doRequest(config);
|
607
|
-
}
|
608
|
-
async _formatCommentModel(comment) {
|
609
|
-
const { __params, __cookies } = formatParams([comment], this._cookies);
|
610
|
-
const config = {
|
611
|
-
method: "_formatCommentModel",
|
612
|
-
params: __params,
|
613
|
-
cookies: __cookies,
|
614
|
-
is_static: false,
|
615
|
-
};
|
616
|
-
return await doRequest(config);
|
617
|
-
}
|
618
|
-
async _formatPlayingTime(hrs) {
|
619
|
-
const { __params, __cookies } = formatParams([hrs], this._cookies);
|
620
|
-
const config = {
|
621
|
-
method: "_formatPlayingTime",
|
622
|
-
params: __params,
|
623
|
-
cookies: __cookies,
|
624
|
-
is_static: false,
|
625
|
-
};
|
626
|
-
return await doRequest(config);
|
627
|
-
}
|
628
|
-
async getFriendsThatPlay(appID, sorted) {
|
629
|
-
const { __params, __cookies } = formatParams([appID, sorted], this._cookies);
|
630
|
-
const config = {
|
631
|
-
method: "getFriendsThatPlay",
|
632
|
-
params: __params,
|
633
|
-
cookies: __cookies,
|
634
|
-
is_static: false,
|
635
|
-
};
|
636
|
-
return await doRequest(config);
|
637
|
-
}
|
638
|
-
async getOwnedAppsDetail() {
|
639
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
640
|
-
const config = {
|
641
|
-
method: "getOwnedAppsDetail",
|
642
|
-
params: __params,
|
643
|
-
cookies: __cookies,
|
644
|
-
is_static: false,
|
645
|
-
};
|
646
|
-
return await doRequest(config);
|
647
|
-
}
|
648
|
-
async GetOwnedApps() {
|
649
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
650
|
-
const config = {
|
651
|
-
method: "GetOwnedApps",
|
652
|
-
params: __params,
|
653
|
-
cookies: __cookies,
|
654
|
-
is_static: false,
|
655
|
-
};
|
656
|
-
return await doRequest(config);
|
657
|
-
}
|
658
|
-
async getOwnedAppsID() {
|
659
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
660
|
-
const config = {
|
661
|
-
method: "getOwnedAppsID",
|
662
|
-
params: __params,
|
663
|
-
cookies: __cookies,
|
664
|
-
is_static: false,
|
665
|
-
};
|
666
|
-
return await doRequest(config);
|
667
|
-
}
|
668
|
-
async getDynamicStoreUserData() {
|
669
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
670
|
-
const config = {
|
671
|
-
method: "getDynamicStoreUserData",
|
672
|
-
params: __params,
|
673
|
-
cookies: __cookies,
|
674
|
-
is_static: false,
|
675
|
-
};
|
676
|
-
return await doRequest(config);
|
677
|
-
}
|
678
|
-
async getListGroupInvitable(userSteamID) {
|
679
|
-
const { __params, __cookies } = formatParams([userSteamID], this._cookies);
|
680
|
-
const config = {
|
681
|
-
method: "getListGroupInvitable",
|
682
|
-
params: __params,
|
683
|
-
cookies: __cookies,
|
684
|
-
is_static: false,
|
685
|
-
};
|
686
|
-
return await doRequest(config);
|
687
|
-
}
|
688
|
-
async inviteUserToGroup(userSteamIDs, groupSteamID) {
|
689
|
-
const { __params, __cookies } = formatParams([userSteamIDs, groupSteamID], this._cookies);
|
690
|
-
const config = {
|
691
|
-
method: "inviteUserToGroup",
|
692
|
-
params: __params,
|
693
|
-
cookies: __cookies,
|
694
|
-
is_static: false,
|
695
|
-
};
|
696
|
-
return await doRequest(config);
|
697
|
-
}
|
698
|
-
async inviteAllFriendToGroup(groupSteamID) {
|
699
|
-
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
700
|
-
const config = {
|
701
|
-
method: "inviteAllFriendToGroup",
|
702
|
-
params: __params,
|
703
|
-
cookies: __cookies,
|
704
|
-
is_static: false,
|
705
|
-
};
|
706
|
-
return await doRequest(config);
|
707
|
-
}
|
708
|
-
async _respondToGroupInvite(groupSteamID, accept) {
|
709
|
-
const { __params, __cookies } = formatParams([groupSteamID, accept], this._cookies);
|
710
|
-
const config = {
|
711
|
-
method: "_respondToGroupInvite",
|
712
|
-
params: __params,
|
713
|
-
cookies: __cookies,
|
714
|
-
is_static: false,
|
715
|
-
};
|
716
|
-
return await doRequest(config);
|
717
|
-
}
|
718
|
-
async acceptInviteUserToGroup(groupSteamID) {
|
719
|
-
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
720
|
-
const config = {
|
721
|
-
method: "acceptInviteUserToGroup",
|
722
|
-
params: __params,
|
723
|
-
cookies: __cookies,
|
724
|
-
is_static: false,
|
725
|
-
};
|
726
|
-
return await doRequest(config);
|
727
|
-
}
|
728
|
-
async ignoreInviteUserToGroup(groupSteamID) {
|
729
|
-
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
730
|
-
const config = {
|
731
|
-
method: "ignoreInviteUserToGroup",
|
732
|
-
params: __params,
|
733
|
-
cookies: __cookies,
|
734
|
-
is_static: false,
|
735
|
-
};
|
736
|
-
return await doRequest(config);
|
737
|
-
}
|
738
|
-
async getGroupSteamIdFromVanilaURL(vanilaURL) {
|
739
|
-
const { __params, __cookies } = formatParams([vanilaURL], this._cookies);
|
740
|
-
const config = {
|
741
|
-
method: "getGroupSteamIdFromVanilaURL",
|
742
|
-
params: __params,
|
743
|
-
cookies: __cookies,
|
744
|
-
is_static: false,
|
745
|
-
};
|
746
|
-
return await doRequest(config);
|
747
|
-
}
|
748
|
-
async leaveGroup(groupSteamID) {
|
749
|
-
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
750
|
-
const config = {
|
751
|
-
method: "leaveGroup",
|
752
|
-
params: __params,
|
753
|
-
cookies: __cookies,
|
754
|
-
is_static: false,
|
755
|
-
};
|
756
|
-
return await doRequest(config);
|
757
|
-
}
|
758
|
-
async joinGroup(groupSteamID) {
|
759
|
-
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
760
|
-
const config = {
|
761
|
-
method: "joinGroup",
|
762
|
-
params: __params,
|
763
|
-
cookies: __cookies,
|
764
|
-
is_static: false,
|
765
|
-
};
|
766
|
-
return await doRequest(config);
|
767
|
-
}
|
768
|
-
async getFriendsInCommon(steamId) {
|
769
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
770
|
-
const config = {
|
771
|
-
method: "getFriendsInCommon",
|
772
|
-
params: __params,
|
773
|
-
cookies: __cookies,
|
774
|
-
is_static: false,
|
775
|
-
};
|
776
|
-
return await doRequest(config);
|
777
|
-
}
|
778
|
-
async getFriendsInGroup(groupID) {
|
779
|
-
const { __params, __cookies } = formatParams([groupID], this._cookies);
|
780
|
-
const config = {
|
781
|
-
method: "getFriendsInGroup",
|
782
|
-
params: __params,
|
783
|
-
cookies: __cookies,
|
784
|
-
is_static: false,
|
785
|
-
};
|
786
|
-
return await doRequest(config);
|
787
|
-
}
|
788
|
-
async _parseSteamWebAPIKey($) {
|
789
|
-
const { __params, __cookies } = formatParams([$], this._cookies);
|
790
|
-
const config = {
|
791
|
-
method: "_parseSteamWebAPIKey",
|
792
|
-
params: __params,
|
793
|
-
cookies: __cookies,
|
794
|
-
is_static: false,
|
795
|
-
};
|
796
|
-
return await doRequest(config);
|
797
|
-
}
|
798
|
-
async getSteamWebAPIKey(domain) {
|
799
|
-
const { __params, __cookies } = formatParams([domain], this._cookies);
|
800
|
-
const config = {
|
801
|
-
method: "getSteamWebAPIKey",
|
802
|
-
params: __params,
|
803
|
-
cookies: __cookies,
|
804
|
-
is_static: false,
|
805
|
-
};
|
806
|
-
return await doRequest(config);
|
807
|
-
}
|
808
|
-
async revokeSteamWebAPIKey() {
|
809
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
810
|
-
const config = {
|
811
|
-
method: "revokeSteamWebAPIKey",
|
812
|
-
params: __params,
|
813
|
-
cookies: __cookies,
|
814
|
-
is_static: false,
|
815
|
-
};
|
816
|
-
return await doRequest(config);
|
817
|
-
}
|
818
|
-
async _parsePlayerListFromblotter_daily_rollup_line($, contentEl) {
|
819
|
-
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
820
|
-
const config = {
|
821
|
-
method: "_parsePlayerListFromblotter_daily_rollup_line",
|
822
|
-
params: __params,
|
823
|
-
cookies: __cookies,
|
824
|
-
is_static: false,
|
825
|
-
};
|
826
|
-
return await doRequest(config);
|
827
|
-
}
|
828
|
-
async _parseAppIDFromLink(link) {
|
829
|
-
const { __params, __cookies } = formatParams([link], this._cookies);
|
830
|
-
const config = {
|
831
|
-
method: "_parseAppIDFromLink",
|
832
|
-
params: __params,
|
833
|
-
cookies: __cookies,
|
834
|
-
is_static: false,
|
835
|
-
};
|
836
|
-
return await doRequest(config);
|
837
|
-
}
|
838
|
-
async _parseAppListFromBlotter($, contentEl) {
|
839
|
-
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
840
|
-
const config = {
|
841
|
-
method: "_parseAppListFromBlotter",
|
842
|
-
params: __params,
|
843
|
-
cookies: __cookies,
|
844
|
-
is_static: false,
|
845
|
-
};
|
846
|
-
return await doRequest(config);
|
847
|
-
}
|
848
|
-
async _parseAchievedblotter_daily_rollup_line($, contentEl) {
|
849
|
-
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
850
|
-
const config = {
|
851
|
-
method: "_parseAchievedblotter_daily_rollup_line",
|
852
|
-
params: __params,
|
853
|
-
cookies: __cookies,
|
854
|
-
is_static: false,
|
855
|
-
};
|
856
|
-
return await doRequest(config);
|
857
|
-
}
|
858
|
-
async _parseGroupListFromblotter_daily_rollup_line($, contentEl) {
|
859
|
-
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
860
|
-
const config = {
|
861
|
-
method: "_parseGroupListFromblotter_daily_rollup_line",
|
862
|
-
params: __params,
|
863
|
-
cookies: __cookies,
|
864
|
-
is_static: false,
|
865
|
-
};
|
866
|
-
return await doRequest(config);
|
867
|
-
}
|
868
|
-
async _parseBlotterDailyRollup($, blotterBlockEl) {
|
869
|
-
const { __params, __cookies } = formatParams([$, blotterBlockEl], this._cookies);
|
870
|
-
const config = {
|
871
|
-
method: "_parseBlotterDailyRollup",
|
872
|
-
params: __params,
|
873
|
-
cookies: __cookies,
|
874
|
-
is_static: false,
|
875
|
-
};
|
876
|
-
return await doRequest(config);
|
877
|
-
}
|
878
|
-
async _parseBlotterGamepurchase($, blotterBlockEl) {
|
879
|
-
const { __params, __cookies } = formatParams([$, blotterBlockEl], this._cookies);
|
880
|
-
const config = {
|
881
|
-
method: "_parseBlotterGamepurchase",
|
882
|
-
params: __params,
|
883
|
-
cookies: __cookies,
|
884
|
-
is_static: false,
|
885
|
-
};
|
886
|
-
return await doRequest(config);
|
887
|
-
}
|
888
|
-
async getFriendActivity(start_or_url) {
|
889
|
-
const { __params, __cookies } = formatParams([start_or_url], this._cookies);
|
890
|
-
const config = {
|
891
|
-
method: "getFriendActivity",
|
892
|
-
params: __params,
|
893
|
-
cookies: __cookies,
|
894
|
-
is_static: false,
|
895
|
-
};
|
896
|
-
return await doRequest(config);
|
897
|
-
}
|
898
|
-
async commentUserReceivedNewGame({ steamId, threadId, comment }) {
|
899
|
-
const { __params, __cookies } = formatParams([{ steamId, threadId, comment }], this._cookies);
|
900
|
-
const config = {
|
901
|
-
method: "commentUserReceivedNewGame",
|
902
|
-
params: __params,
|
903
|
-
cookies: __cookies,
|
904
|
-
is_static: false,
|
905
|
-
};
|
906
|
-
return await doRequest(config);
|
907
|
-
}
|
908
|
-
async rateUpUserReceivedNewGame({ steamId, threadId }) {
|
909
|
-
const { __params, __cookies } = formatParams([{ steamId, threadId }], this._cookies);
|
910
|
-
const config = {
|
911
|
-
method: "rateUpUserReceivedNewGame",
|
912
|
-
params: __params,
|
913
|
-
cookies: __cookies,
|
914
|
-
is_static: false,
|
915
|
-
};
|
916
|
-
return await doRequest(config);
|
917
|
-
}
|
918
|
-
async deleteCommendUserReceivedNewGame({ steamId, threadId, commendId }) {
|
919
|
-
const { __params, __cookies } = formatParams([{ steamId, threadId, commendId }], this._cookies);
|
920
|
-
const config = {
|
921
|
-
method: "deleteCommendUserReceivedNewGame",
|
922
|
-
params: __params,
|
923
|
-
cookies: __cookies,
|
924
|
-
is_static: false,
|
925
|
-
};
|
926
|
-
return await doRequest(config);
|
927
|
-
}
|
928
|
-
async getFriendActivityFull({ cbOnActivity, cbOnActivities }) {
|
929
|
-
const { __params, __cookies } = formatParams([{ cbOnActivity, cbOnActivities }], this._cookies);
|
930
|
-
const config = {
|
931
|
-
method: "getFriendActivityFull",
|
932
|
-
params: __params,
|
933
|
-
cookies: __cookies,
|
934
|
-
is_static: false,
|
935
|
-
};
|
936
|
-
return await doRequest(config);
|
937
|
-
}
|
938
|
-
async searchSteamUserByName(text, page) {
|
939
|
-
const { __params, __cookies } = formatParams([text, page], this._cookies);
|
940
|
-
const config = {
|
941
|
-
method: "searchSteamUserByName",
|
942
|
-
params: __params,
|
943
|
-
cookies: __cookies,
|
944
|
-
is_static: false,
|
945
|
-
};
|
946
|
-
return await doRequest(config);
|
947
|
-
}
|
948
|
-
async getMyGroupsList() {
|
949
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
950
|
-
const config = {
|
951
|
-
method: "getMyGroupsList",
|
952
|
-
params: __params,
|
953
|
-
cookies: __cookies,
|
954
|
-
is_static: false,
|
955
|
-
};
|
956
|
-
return await doRequest(config);
|
957
|
-
}
|
958
|
-
async getUserGroupsList(steamId) {
|
959
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
960
|
-
const config = {
|
961
|
-
method: "getUserGroupsList",
|
962
|
-
params: __params,
|
963
|
-
cookies: __cookies,
|
964
|
-
is_static: false,
|
965
|
-
};
|
966
|
-
return await doRequest(config);
|
967
|
-
}
|
968
|
-
async getNotifications() {
|
969
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
970
|
-
const config = {
|
971
|
-
method: "getNotifications",
|
972
|
-
params: __params,
|
973
|
-
cookies: __cookies,
|
974
|
-
is_static: false,
|
975
|
-
};
|
976
|
-
return await doRequest(config);
|
977
|
-
}
|
978
|
-
async addFreeLicense(packageID) {
|
979
|
-
const { __params, __cookies } = formatParams([packageID], this._cookies);
|
980
|
-
const config = {
|
981
|
-
method: "addFreeLicense",
|
982
|
-
params: __params,
|
983
|
-
cookies: __cookies,
|
984
|
-
is_static: false,
|
985
|
-
};
|
986
|
-
return await doRequest(config);
|
987
|
-
}
|
988
|
-
async addSubFreeLicense(subid) {
|
989
|
-
const { __params, __cookies } = formatParams([subid], this._cookies);
|
990
|
-
const config = {
|
991
|
-
method: "addSubFreeLicense",
|
992
|
-
params: __params,
|
993
|
-
cookies: __cookies,
|
994
|
-
is_static: false,
|
995
|
-
};
|
996
|
-
return await doRequest(config);
|
997
|
-
}
|
998
|
-
async getCurrentSteamLogin() {
|
999
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1000
|
-
const config = {
|
1001
|
-
method: "getCurrentSteamLogin",
|
1002
|
-
params: __params,
|
1003
|
-
cookies: __cookies,
|
1004
|
-
is_static: false,
|
1005
|
-
};
|
1006
|
-
return await doRequest(config);
|
1007
|
-
}
|
1008
|
-
async setLanguagePreferences() {
|
1009
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1010
|
-
const config = {
|
1011
|
-
method: "setLanguagePreferences",
|
1012
|
-
params: __params,
|
1013
|
-
cookies: __cookies,
|
1014
|
-
is_static: false,
|
1015
|
-
};
|
1016
|
-
return await doRequest(config);
|
1017
|
-
}
|
1018
|
-
async ChangeLanguage() {
|
1019
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1020
|
-
const config = {
|
1021
|
-
method: "ChangeLanguage",
|
1022
|
-
params: __params,
|
1023
|
-
cookies: __cookies,
|
1024
|
-
is_static: false,
|
1025
|
-
};
|
1026
|
-
return await doRequest(config);
|
1027
|
-
}
|
1028
|
-
async getCompetitiveCooldownLevel() {
|
1029
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1030
|
-
const config = {
|
1031
|
-
method: "getCompetitiveCooldownLevel",
|
1032
|
-
params: __params,
|
1033
|
-
cookies: __cookies,
|
1034
|
-
is_static: false,
|
1035
|
-
};
|
1036
|
-
return await doRequest(config);
|
1037
|
-
}
|
1038
|
-
async getPersonalGameDataAccountInformation() {
|
1039
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1040
|
-
const config = {
|
1041
|
-
method: "getPersonalGameDataAccountInformation",
|
1042
|
-
params: __params,
|
1043
|
-
cookies: __cookies,
|
1044
|
-
is_static: false,
|
1045
|
-
};
|
1046
|
-
return await doRequest(config);
|
1047
|
-
}
|
1048
|
-
async resolveUsers(steamIDs) {
|
1049
|
-
const { __params, __cookies } = formatParams([steamIDs], this._cookies);
|
1050
|
-
const config = {
|
1051
|
-
method: "resolveUsers",
|
1052
|
-
params: __params,
|
1053
|
-
cookies: __cookies,
|
1054
|
-
is_static: false,
|
1055
|
-
};
|
1056
|
-
return await doRequest(config);
|
1057
|
-
}
|
1058
|
-
async testFullLanguage(cb) {
|
1059
|
-
const { __params, __cookies } = formatParams([cb], this._cookies);
|
1060
|
-
const config = {
|
1061
|
-
method: "testFullLanguage",
|
1062
|
-
params: __params,
|
1063
|
-
cookies: __cookies,
|
1064
|
-
is_static: false,
|
1065
|
-
};
|
1066
|
-
return await doRequest(config);
|
1067
|
-
}
|
1068
|
-
async testNotYetSetupTextList(steamId) {
|
1069
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1070
|
-
const config = {
|
1071
|
-
method: "testNotYetSetupTextList",
|
1072
|
-
params: __params,
|
1073
|
-
cookies: __cookies,
|
1074
|
-
is_static: false,
|
1075
|
-
};
|
1076
|
-
return await doRequest(config);
|
1077
|
-
}
|
1078
|
-
async testPrivateText(steamId) {
|
1079
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1080
|
-
const config = {
|
1081
|
-
method: "testPrivateText",
|
1082
|
-
params: __params,
|
1083
|
-
cookies: __cookies,
|
1084
|
-
is_static: false,
|
1085
|
-
};
|
1086
|
-
return await doRequest(config);
|
1087
|
-
}
|
1088
|
-
async testGameBan(steamId) {
|
1089
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1090
|
-
const config = {
|
1091
|
-
method: "testGameBan",
|
1092
|
-
params: __params,
|
1093
|
-
cookies: __cookies,
|
1094
|
-
is_static: false,
|
1095
|
-
};
|
1096
|
-
return await doRequest(config);
|
1097
|
-
}
|
1098
|
-
async getSteamGuardStatus() {
|
1099
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1100
|
-
const config = {
|
1101
|
-
method: "getSteamGuardStatus",
|
1102
|
-
params: __params,
|
1103
|
-
cookies: __cookies,
|
1104
|
-
is_static: false,
|
1105
|
-
};
|
1106
|
-
return await doRequest(config);
|
1107
|
-
}
|
1108
|
-
async turningSteamGuardOff() {
|
1109
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1110
|
-
const config = {
|
1111
|
-
method: "turningSteamGuardOff",
|
1112
|
-
params: __params,
|
1113
|
-
cookies: __cookies,
|
1114
|
-
is_static: false,
|
1115
|
-
};
|
1116
|
-
return await doRequest(config);
|
1117
|
-
}
|
1118
|
-
async turningEmailAuthenticatorCheckOn() {
|
1119
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1120
|
-
const config = {
|
1121
|
-
method: "turningEmailAuthenticatorCheckOn",
|
1122
|
-
params: __params,
|
1123
|
-
cookies: __cookies,
|
1124
|
-
is_static: false,
|
1125
|
-
};
|
1126
|
-
return await doRequest(config);
|
1127
|
-
}
|
1128
|
-
async getPhoneManage() {
|
1129
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1130
|
-
const config = {
|
1131
|
-
method: "getPhoneManage",
|
1132
|
-
params: __params,
|
1133
|
-
cookies: __cookies,
|
1134
|
-
is_static: false,
|
1135
|
-
};
|
1136
|
-
return await doRequest(config);
|
1137
|
-
}
|
1138
|
-
async addPhoneNumber(phone) {
|
1139
|
-
const { __params, __cookies } = formatParams([phone], this._cookies);
|
1140
|
-
const config = {
|
1141
|
-
method: "addPhoneNumber",
|
1142
|
-
params: __params,
|
1143
|
-
cookies: __cookies,
|
1144
|
-
is_static: false,
|
1145
|
-
};
|
1146
|
-
return await doRequest(config);
|
1147
|
-
}
|
1148
|
-
async sendOtpConfirmPhoneForAdd() {
|
1149
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1150
|
-
const config = {
|
1151
|
-
method: "sendOtpConfirmPhoneForAdd",
|
1152
|
-
params: __params,
|
1153
|
-
cookies: __cookies,
|
1154
|
-
is_static: false,
|
1155
|
-
};
|
1156
|
-
return await doRequest(config);
|
1157
|
-
}
|
1158
|
-
async confirmPhoneCodeForAdd(code) {
|
1159
|
-
const { __params, __cookies } = formatParams([code], this._cookies);
|
1160
|
-
const config = {
|
1161
|
-
method: "confirmPhoneCodeForAdd",
|
1162
|
-
params: __params,
|
1163
|
-
cookies: __cookies,
|
1164
|
-
is_static: false,
|
1165
|
-
};
|
1166
|
-
return await doRequest(config);
|
1167
|
-
}
|
1168
|
-
async removePhoneNumber() {
|
1169
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1170
|
-
const config = {
|
1171
|
-
method: "removePhoneNumber",
|
1172
|
-
params: __params,
|
1173
|
-
cookies: __cookies,
|
1174
|
-
is_static: false,
|
1175
|
-
};
|
1176
|
-
return await doRequest(config);
|
1177
|
-
}
|
1178
|
-
async removePhoneNumberConfirmOptCode(params, code) {
|
1179
|
-
const { __params, __cookies } = formatParams([params, code], this._cookies);
|
1180
|
-
const config = {
|
1181
|
-
method: "removePhoneNumberConfirmOptCode",
|
1182
|
-
params: __params,
|
1183
|
-
cookies: __cookies,
|
1184
|
-
is_static: false,
|
1185
|
-
};
|
1186
|
-
return await doRequest(config);
|
1187
|
-
}
|
1188
|
-
async getAccountEmail() {
|
1189
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1190
|
-
const config = {
|
1191
|
-
method: "getAccountEmail",
|
1192
|
-
params: __params,
|
1193
|
-
cookies: __cookies,
|
1194
|
-
is_static: false,
|
1195
|
-
};
|
1196
|
-
return await doRequest(config);
|
1197
|
-
}
|
1198
|
-
async getInventory(appID) {
|
1199
|
-
const { __params, __cookies } = formatParams([appID], this._cookies);
|
1200
|
-
const config = {
|
1201
|
-
method: "getInventory",
|
1202
|
-
params: __params,
|
1203
|
-
cookies: __cookies,
|
1204
|
-
is_static: false,
|
1205
|
-
};
|
1206
|
-
return await doRequest(config);
|
1207
|
-
}
|
1208
|
-
async getInventoryTrading(appID, contextid) {
|
1209
|
-
const { __params, __cookies } = formatParams([appID, contextid], this._cookies);
|
1210
|
-
const config = {
|
1211
|
-
method: "getInventoryTrading",
|
1212
|
-
params: __params,
|
1213
|
-
cookies: __cookies,
|
1214
|
-
is_static: false,
|
1215
|
-
};
|
1216
|
-
return await doRequest(config);
|
1217
|
-
}
|
1218
|
-
async getInventoryTradingPartner(appID, partner, contextid) {
|
1219
|
-
const { __params, __cookies } = formatParams([appID, partner, contextid], this._cookies);
|
1220
|
-
const config = {
|
1221
|
-
method: "getInventoryTradingPartner",
|
1222
|
-
params: __params,
|
1223
|
-
cookies: __cookies,
|
1224
|
-
is_static: false,
|
1225
|
-
};
|
1226
|
-
return await doRequest(config);
|
1227
|
-
}
|
1228
|
-
async getFullInventoryHistory() {
|
1229
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1230
|
-
const config = {
|
1231
|
-
method: "getFullInventoryHistory",
|
1232
|
-
params: __params,
|
1233
|
-
cookies: __cookies,
|
1234
|
-
is_static: false,
|
1235
|
-
};
|
1236
|
-
return await doRequest(config);
|
1237
|
-
}
|
1238
|
-
async getInventoryHistory(cursor) {
|
1239
|
-
const { __params, __cookies } = formatParams([cursor], this._cookies);
|
1240
|
-
const config = {
|
1241
|
-
method: "getInventoryHistory",
|
1242
|
-
params: __params,
|
1243
|
-
cookies: __cookies,
|
1244
|
-
is_static: false,
|
1245
|
-
};
|
1246
|
-
return await doRequest(config);
|
1247
|
-
}
|
1248
|
-
async getTradeURL() {
|
1249
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1250
|
-
const config = {
|
1251
|
-
method: "getTradeURL",
|
1252
|
-
params: __params,
|
1253
|
-
cookies: __cookies,
|
1254
|
-
is_static: false,
|
1255
|
-
};
|
1256
|
-
return await doRequest(config);
|
1257
|
-
}
|
1258
|
-
async sendTradeOffer({ tradeURL, myAssets, theirAssets, tradeoffermessage }) {
|
1259
|
-
const { __params, __cookies } = formatParams([{ tradeURL, myAssets, theirAssets, tradeoffermessage }], this._cookies);
|
1260
|
-
const config = {
|
1261
|
-
method: "sendTradeOffer",
|
1262
|
-
params: __params,
|
1263
|
-
cookies: __cookies,
|
1264
|
-
is_static: false,
|
1265
|
-
};
|
1266
|
-
return await doRequest(config);
|
1267
|
-
}
|
1268
|
-
async acceptTradeOffer(tradeOfferID, partnerSteamId) {
|
1269
|
-
const { __params, __cookies } = formatParams([tradeOfferID, partnerSteamId], this._cookies);
|
1270
|
-
const config = {
|
1271
|
-
method: "acceptTradeOffer",
|
1272
|
-
params: __params,
|
1273
|
-
cookies: __cookies,
|
1274
|
-
is_static: false,
|
1275
|
-
};
|
1276
|
-
return await doRequest(config);
|
1277
|
-
}
|
1278
|
-
async declineTradeOffer(tradeOfferID, partnerSteamId) {
|
1279
|
-
const { __params, __cookies } = formatParams([tradeOfferID, partnerSteamId], this._cookies);
|
1280
|
-
const config = {
|
1281
|
-
method: "declineTradeOffer",
|
1282
|
-
params: __params,
|
1283
|
-
cookies: __cookies,
|
1284
|
-
is_static: false,
|
1285
|
-
};
|
1286
|
-
return await doRequest(config);
|
1287
|
-
}
|
1288
|
-
async getTradeOffer() {
|
1289
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1290
|
-
const config = {
|
1291
|
-
method: "getTradeOffer",
|
1292
|
-
params: __params,
|
1293
|
-
cookies: __cookies,
|
1294
|
-
is_static: false,
|
1295
|
-
};
|
1296
|
-
return await doRequest(config);
|
1297
|
-
}
|
1298
|
-
async uploadAvatar(filePath) {
|
1299
|
-
const { __params, __cookies } = formatParams([filePath], this._cookies);
|
1300
|
-
const config = {
|
1301
|
-
method: "uploadAvatar",
|
1302
|
-
params: __params,
|
1303
|
-
cookies: __cookies,
|
1304
|
-
is_static: false,
|
1305
|
-
};
|
1306
|
-
return await doRequest(config);
|
1307
|
-
}
|
1308
|
-
async selectPreviousAvatar(avatarHash) {
|
1309
|
-
const { __params, __cookies } = formatParams([avatarHash], this._cookies);
|
1310
|
-
const config = {
|
1311
|
-
method: "selectPreviousAvatar",
|
1312
|
-
params: __params,
|
1313
|
-
cookies: __cookies,
|
1314
|
-
is_static: false,
|
1315
|
-
};
|
1316
|
-
return await doRequest(config);
|
1317
|
-
}
|
1318
|
-
async getMiniprofile(steamId) {
|
1319
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1320
|
-
const config = {
|
1321
|
-
method: "getMiniprofile",
|
1322
|
-
params: __params,
|
1323
|
-
cookies: __cookies,
|
1324
|
-
is_static: false,
|
1325
|
-
};
|
1326
|
-
return await doRequest(config);
|
1327
|
-
}
|
1328
|
-
async deauthorizeAllDevices() {
|
1329
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1330
|
-
const config = {
|
1331
|
-
method: "deauthorizeAllDevices",
|
1332
|
-
params: __params,
|
1333
|
-
cookies: __cookies,
|
1334
|
-
is_static: false,
|
1335
|
-
};
|
1336
|
-
return await doRequest(config);
|
1337
|
-
}
|
1338
|
-
async getMarketUnavailable() {
|
1339
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1340
|
-
const config = {
|
1341
|
-
method: "getMarketUnavailable",
|
1342
|
-
params: __params,
|
1343
|
-
cookies: __cookies,
|
1344
|
-
is_static: false,
|
1345
|
-
};
|
1346
|
-
return await doRequest(config);
|
1347
|
-
}
|
1348
|
-
async getAmountSpentOnSteam() {
|
1349
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1350
|
-
const config = {
|
1351
|
-
method: "getAmountSpentOnSteam",
|
1352
|
-
params: __params,
|
1353
|
-
cookies: __cookies,
|
1354
|
-
is_static: false,
|
1355
|
-
};
|
1356
|
-
return await doRequest(config);
|
1357
|
-
}
|
1358
|
-
async sellItem({ appid, contextid, assetid, amount, price }) {
|
1359
|
-
const { __params, __cookies } = formatParams([{ appid, contextid, assetid, amount, price }], this._cookies);
|
1360
|
-
const config = {
|
1361
|
-
method: "sellItem",
|
1362
|
-
params: __params,
|
1363
|
-
cookies: __cookies,
|
1364
|
-
is_static: false,
|
1365
|
-
};
|
1366
|
-
return await doRequest(config);
|
1367
|
-
}
|
1368
|
-
async removeListing(id) {
|
1369
|
-
const { __params, __cookies } = formatParams([id], this._cookies);
|
1370
|
-
const config = {
|
1371
|
-
method: "removeListing",
|
1372
|
-
params: __params,
|
1373
|
-
cookies: __cookies,
|
1374
|
-
is_static: false,
|
1375
|
-
};
|
1376
|
-
return await doRequest(config);
|
1377
|
-
}
|
1378
|
-
async getMyListings() {
|
1379
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1380
|
-
const config = {
|
1381
|
-
method: "getMyListings",
|
1382
|
-
params: __params,
|
1383
|
-
cookies: __cookies,
|
1384
|
-
is_static: false,
|
1385
|
-
};
|
1386
|
-
return await doRequest(config);
|
1387
|
-
}
|
1388
|
-
async getMyMarketHistory({ start, count }) {
|
1389
|
-
const { __params, __cookies } = formatParams([{ start, count }], this._cookies);
|
1390
|
-
const config = {
|
1391
|
-
method: "getMyMarketHistory",
|
1392
|
-
params: __params,
|
1393
|
-
cookies: __cookies,
|
1394
|
-
is_static: false,
|
1395
|
-
};
|
1396
|
-
return await doRequest(config);
|
1397
|
-
}
|
1398
|
-
async getPlayerReports(token) {
|
1399
|
-
const { __params, __cookies } = formatParams([token], this._cookies);
|
1400
|
-
const config = {
|
1401
|
-
method: "getPlayerReports",
|
1402
|
-
params: __params,
|
1403
|
-
cookies: __cookies,
|
1404
|
-
is_static: false,
|
1405
|
-
};
|
1406
|
-
return await doRequest(config);
|
1407
|
-
}
|
1408
|
-
async getAllPlayerReports(onPageCb) {
|
1409
|
-
const { __params, __cookies } = formatParams([onPageCb], this._cookies);
|
1410
|
-
const config = {
|
1411
|
-
method: "getAllPlayerReports",
|
1412
|
-
params: __params,
|
1413
|
-
cookies: __cookies,
|
1414
|
-
is_static: false,
|
1415
|
-
};
|
1416
|
-
return await doRequest(config);
|
1417
|
-
}
|
1418
|
-
async beginFileUpload(filePath) {
|
1419
|
-
const { __params, __cookies } = formatParams([filePath], this._cookies);
|
1420
|
-
const config = {
|
1421
|
-
method: "beginFileUpload",
|
1422
|
-
params: __params,
|
1423
|
-
cookies: __cookies,
|
1424
|
-
is_static: false,
|
1425
|
-
};
|
1426
|
-
return await doRequest(config);
|
1427
|
-
}
|
1428
|
-
async doFileUpload({ filePath, beginFileUploadResult }) {
|
1429
|
-
const { __params, __cookies } = formatParams([{ filePath, beginFileUploadResult }], this._cookies);
|
1430
|
-
const config = {
|
1431
|
-
method: "doFileUpload",
|
1432
|
-
params: __params,
|
1433
|
-
cookies: __cookies,
|
1434
|
-
is_static: false,
|
1435
|
-
};
|
1436
|
-
return await doRequest(config);
|
1437
|
-
}
|
1438
|
-
async commitFileUpload({ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }) {
|
1439
|
-
const { __params, __cookies } = formatParams([{ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }], this._cookies);
|
1440
|
-
const config = {
|
1441
|
-
method: "commitFileUpload",
|
1442
|
-
params: __params,
|
1443
|
-
cookies: __cookies,
|
1444
|
-
is_static: false,
|
1445
|
-
};
|
1446
|
-
return await doRequest(config);
|
1447
|
-
}
|
1448
|
-
async sendImageMessage({ imagePath, friend_steamid }) {
|
1449
|
-
const { __params, __cookies } = formatParams([{ imagePath, friend_steamid }], this._cookies);
|
1450
|
-
const config = {
|
1451
|
-
method: "sendImageMessage",
|
1452
|
-
params: __params,
|
1453
|
-
cookies: __cookies,
|
1454
|
-
is_static: false,
|
1455
|
-
};
|
1456
|
-
return await doRequest(config);
|
1457
|
-
}
|
1458
|
-
async isAlive() {
|
1459
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1460
|
-
const config = {
|
1461
|
-
method: "isAlive",
|
1462
|
-
params: __params,
|
1463
|
-
cookies: __cookies,
|
1464
|
-
is_static: false,
|
1465
|
-
};
|
1466
|
-
return await doRequest(config);
|
1467
|
-
}
|
1468
|
-
async getAccountDetail() {
|
1469
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1470
|
-
const config = {
|
1471
|
-
method: "getAccountDetail",
|
1472
|
-
params: __params,
|
1473
|
-
cookies: __cookies,
|
1474
|
-
is_static: false,
|
1475
|
-
};
|
1476
|
-
return await doRequest(config);
|
1477
|
-
}
|
1478
|
-
async getFriendSince(steamId) {
|
1479
|
-
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1480
|
-
const config = {
|
1481
|
-
method: "getFriendSince",
|
1482
|
-
params: __params,
|
1483
|
-
cookies: __cookies,
|
1484
|
-
is_static: false,
|
1485
|
-
};
|
1486
|
-
return await doRequest(config);
|
1487
|
-
}
|
1488
|
-
async getWalletBalance() {
|
1489
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1490
|
-
const config = {
|
1491
|
-
method: "getWalletBalance",
|
1492
|
-
params: __params,
|
1493
|
-
cookies: __cookies,
|
1494
|
-
is_static: false,
|
1495
|
-
};
|
1496
|
-
return await doRequest(config);
|
1497
|
-
}
|
1498
|
-
async acceptConfirmationForObject(accessToken, identitySecret, objectID) {
|
1499
|
-
const { __params, __cookies } = formatParams([accessToken, identitySecret, objectID], this._cookies);
|
1500
|
-
const config = {
|
1501
|
-
method: "acceptConfirmationForObject",
|
1502
|
-
params: __params,
|
1503
|
-
cookies: __cookies,
|
1504
|
-
is_static: false,
|
1505
|
-
};
|
1506
|
-
return await doRequest(config);
|
1507
|
-
}
|
1508
|
-
async denyConfirmationForObject(accessToken, identitySecret, objectID) {
|
1509
|
-
const { __params, __cookies } = formatParams([accessToken, identitySecret, objectID], this._cookies);
|
1510
|
-
const config = {
|
1511
|
-
method: "denyConfirmationForObject",
|
1512
|
-
params: __params,
|
1513
|
-
cookies: __cookies,
|
1514
|
-
is_static: false,
|
1515
|
-
};
|
1516
|
-
return await doRequest(config);
|
1517
|
-
}
|
1518
|
-
async getConfirmations(accessToken, identitySecret) {
|
1519
|
-
const { __params, __cookies } = formatParams([accessToken, identitySecret], this._cookies);
|
1520
|
-
const config = {
|
1521
|
-
method: "getConfirmations",
|
1522
|
-
params: __params,
|
1523
|
-
cookies: __cookies,
|
1524
|
-
is_static: false,
|
1525
|
-
};
|
1526
|
-
return await doRequest(config);
|
1527
|
-
}
|
1528
|
-
async enableTwoFactor(accessToken) {
|
1529
|
-
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1530
|
-
const config = {
|
1531
|
-
method: "enableTwoFactor",
|
1532
|
-
params: __params,
|
1533
|
-
cookies: __cookies,
|
1534
|
-
is_static: false,
|
1535
|
-
};
|
1536
|
-
return await doRequest(config);
|
1537
|
-
}
|
1538
|
-
async finalizeTwoFactor(accessToken, identitySecret, finalizeTwoFactorCode) {
|
1539
|
-
const { __params, __cookies } = formatParams([accessToken, identitySecret, finalizeTwoFactorCode], this._cookies);
|
1540
|
-
const config = {
|
1541
|
-
method: "finalizeTwoFactor",
|
1542
|
-
params: __params,
|
1543
|
-
cookies: __cookies,
|
1544
|
-
is_static: false,
|
1545
|
-
};
|
1546
|
-
return await doRequest(config);
|
1547
|
-
}
|
1548
|
-
async getHelpRequests() {
|
1549
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1550
|
-
const config = {
|
1551
|
-
method: "getHelpRequests",
|
1552
|
-
params: __params,
|
1553
|
-
cookies: __cookies,
|
1554
|
-
is_static: false,
|
1555
|
-
};
|
1556
|
-
return await doRequest(config);
|
1557
|
-
}
|
1558
|
-
async getHelpRequestDetail(id) {
|
1559
|
-
const { __params, __cookies } = formatParams([id], this._cookies);
|
1560
|
-
const config = {
|
1561
|
-
method: "getHelpRequestDetail",
|
1562
|
-
params: __params,
|
1563
|
-
cookies: __cookies,
|
1564
|
-
is_static: false,
|
1565
|
-
};
|
1566
|
-
return await doRequest(config);
|
1567
|
-
}
|
1568
|
-
async getFriendOwnershipForGifting(accessToken) {
|
1569
|
-
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1570
|
-
const config = {
|
1571
|
-
method: "getFriendOwnershipForGifting",
|
1572
|
-
params: __params,
|
1573
|
-
cookies: __cookies,
|
1574
|
-
is_static: false,
|
1575
|
-
};
|
1576
|
-
return await doRequest(config);
|
1577
|
-
}
|
1578
|
-
async getFriendsList_v1(accessToken) {
|
1579
|
-
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1580
|
-
const config = {
|
1581
|
-
method: "getFriendsList_v1",
|
1582
|
-
params: __params,
|
1583
|
-
cookies: __cookies,
|
1584
|
-
is_static: false,
|
1585
|
-
};
|
1586
|
-
return await doRequest(config);
|
1587
|
-
}
|
1588
|
-
async getPlayerLinkDetails(accessToken, steamIds) {
|
1589
|
-
const { __params, __cookies } = formatParams([accessToken, steamIds], this._cookies);
|
1590
|
-
const config = {
|
1591
|
-
method: "getPlayerLinkDetails",
|
1592
|
-
params: __params,
|
1593
|
-
cookies: __cookies,
|
1594
|
-
is_static: false,
|
1595
|
-
};
|
1596
|
-
return await doRequest(config);
|
1597
|
-
}
|
1598
|
-
async getFriendsGameplayInfo(accessToken, appId) {
|
1599
|
-
const { __params, __cookies } = formatParams([accessToken, appId], this._cookies);
|
1600
|
-
const config = {
|
1601
|
-
method: "getFriendsGameplayInfo",
|
1602
|
-
params: __params,
|
1603
|
-
cookies: __cookies,
|
1604
|
-
is_static: false,
|
1605
|
-
};
|
1606
|
-
return await doRequest(config);
|
1607
|
-
}
|
1608
|
-
async getRecentMessages(accessToken, steamId) {
|
1609
|
-
const { __params, __cookies } = formatParams([accessToken, steamId], this._cookies);
|
1610
|
-
const config = {
|
1611
|
-
method: "getRecentMessages",
|
1612
|
-
params: __params,
|
1613
|
-
cookies: __cookies,
|
1614
|
-
is_static: false,
|
1615
|
-
};
|
1616
|
-
return await doRequest(config);
|
1617
|
-
}
|
1618
|
-
async getPurchaseHistory() {
|
1619
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1620
|
-
const config = {
|
1621
|
-
method: "getPurchaseHistory",
|
1622
|
-
params: __params,
|
1623
|
-
cookies: __cookies,
|
1624
|
-
is_static: false,
|
1625
|
-
};
|
1626
|
-
return await doRequest(config);
|
1627
|
-
}
|
1628
|
-
async getActiveInventories() {
|
1629
|
-
const { __params, __cookies } = formatParams([], this._cookies);
|
1630
|
-
const config = {
|
1631
|
-
method: "getActiveInventories",
|
1632
|
-
params: __params,
|
1633
|
-
cookies: __cookies,
|
1634
|
-
is_static: false,
|
1635
|
-
};
|
1636
|
-
return await doRequest(config);
|
1637
|
-
}
|
1638
|
-
async redeemWalletCode(wallet_code) {
|
1639
|
-
const { __params, __cookies } = formatParams([wallet_code], this._cookies);
|
1640
|
-
const config = {
|
1641
|
-
method: "redeemWalletCode",
|
1642
|
-
params: __params,
|
1643
|
-
cookies: __cookies,
|
1644
|
-
is_static: false,
|
1645
|
-
};
|
1646
|
-
return await doRequest(config);
|
1647
|
-
}
|
1648
|
-
async enumerateTokens(accessToken) {
|
1649
|
-
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1650
|
-
const config = {
|
1651
|
-
method: "enumerateTokens",
|
1652
|
-
params: __params,
|
1653
|
-
cookies: __cookies,
|
1654
|
-
is_static: false,
|
1655
|
-
};
|
1656
|
-
return await doRequest(config);
|
1657
|
-
}
|
1658
|
-
async hasToken(accessToken, tokenId) {
|
1659
|
-
const { __params, __cookies } = formatParams([accessToken, tokenId], this._cookies);
|
1660
|
-
const config = {
|
1661
|
-
method: "hasToken",
|
1662
|
-
params: __params,
|
1663
|
-
cookies: __cookies,
|
1664
|
-
is_static: false,
|
1665
|
-
};
|
1666
|
-
return await doRequest(config);
|
1667
|
-
}
|
1668
|
-
async enumerateTokenLastSeenMs(accessToken, platform_type) {
|
1669
|
-
const { __params, __cookies } = formatParams([accessToken, platform_type], this._cookies);
|
1670
|
-
const config = {
|
1671
|
-
method: "enumerateTokenLastSeenMs",
|
1672
|
-
params: __params,
|
1673
|
-
cookies: __cookies,
|
1674
|
-
is_static: false,
|
1675
|
-
};
|
1676
|
-
return await doRequest(config);
|
1677
|
-
}
|
1678
|
-
async queryRefreshTokenByID(accessToken, tokenId) {
|
1679
|
-
const { __params, __cookies } = formatParams([accessToken, tokenId], this._cookies);
|
1680
|
-
const config = {
|
1681
|
-
method: "queryRefreshTokenByID",
|
1682
|
-
params: __params,
|
1683
|
-
cookies: __cookies,
|
1684
|
-
is_static: false,
|
1685
|
-
};
|
1686
|
-
return await doRequest(config);
|
1687
|
-
}
|
1688
|
-
async revokeAccessToken(accessToken, tokenId, sharedSecret) {
|
1689
|
-
const { __params, __cookies } = formatParams([accessToken, tokenId, sharedSecret], this._cookies);
|
1690
|
-
const config = {
|
1691
|
-
method: "revokeAccessToken",
|
1692
|
-
params: __params,
|
1693
|
-
cookies: __cookies,
|
1694
|
-
is_static: false,
|
1695
|
-
};
|
1696
|
-
return await doRequest(config);
|
1697
|
-
}
|
1698
|
-
async changeEmail(newEmail, getNewEmailOptCodes, accessToken, identitySecret) {
|
1699
|
-
const { __params, __cookies } = formatParams([newEmail, getNewEmailOptCodes, accessToken, identitySecret], this._cookies);
|
1700
|
-
const config = {
|
1701
|
-
method: "changeEmail",
|
1702
|
-
params: __params,
|
1703
|
-
cookies: __cookies,
|
1704
|
-
is_static: false,
|
1705
|
-
};
|
1706
|
-
return await doRequest(config);
|
1707
|
-
}
|
1708
|
-
async sendMessage({ steamId, content, accessToken }) {
|
1709
|
-
const { __params, __cookies } = formatParams([{ steamId, content, accessToken }], this._cookies);
|
1710
|
-
const config = {
|
1711
|
-
method: "sendMessage",
|
1712
|
-
params: __params,
|
1713
|
-
cookies: __cookies,
|
1714
|
-
is_static: false,
|
1715
|
-
};
|
1716
|
-
return await doRequest(config);
|
1717
|
-
}
|
1718
|
-
static async parseCookie(cookies) {
|
1719
|
-
const { __params, __cookies } = formatParams([cookies]);
|
1720
|
-
const config = {
|
1721
|
-
method: "parseCookie",
|
1722
|
-
params: __params,
|
1723
|
-
is_static: true,
|
1724
|
-
};
|
1725
|
-
return await doRequest(config);
|
1726
|
-
}
|
1727
|
-
static async generateCookie({ steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, sessionid, Steam_Language }) {
|
1728
|
-
const { __params, __cookies } = formatParams([{ steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, sessionid, Steam_Language }]);
|
1729
|
-
const config = {
|
1730
|
-
method: "generateCookie",
|
1731
|
-
params: __params,
|
1732
|
-
is_static: true,
|
1733
|
-
};
|
1734
|
-
return await doRequest(config);
|
1735
|
-
}
|
1736
|
-
static async getUserSummary(steamId, parts, cookie) {
|
1737
|
-
const { __params, __cookies } = formatParams([steamId, parts, cookie]);
|
1738
|
-
const config = {
|
1739
|
-
method: "getUserSummary",
|
1740
|
-
params: __params,
|
1741
|
-
is_static: true,
|
1742
|
-
};
|
1743
|
-
return await doRequest(config);
|
1744
|
-
}
|
1745
|
-
static async getUserSummaryFromXML(steamId) {
|
1746
|
-
const { __params, __cookies } = formatParams([steamId]);
|
1747
|
-
const config = {
|
1748
|
-
method: "getUserSummaryFromXML",
|
1749
|
-
params: __params,
|
1750
|
-
is_static: true,
|
1751
|
-
};
|
1752
|
-
return await doRequest(config);
|
1753
|
-
}
|
1754
|
-
static async _parseSummaryFromXML(resultXml) {
|
1755
|
-
const { __params, __cookies } = formatParams([resultXml]);
|
1756
|
-
const config = {
|
1757
|
-
method: "_parseSummaryFromXML",
|
1758
|
-
params: __params,
|
1759
|
-
is_static: true,
|
1760
|
-
};
|
1761
|
-
return await doRequest(config);
|
1762
|
-
}
|
1763
|
-
static async getUserSummaryFromProfile(steamId, cookie) {
|
1764
|
-
const { __params, __cookies } = formatParams([steamId, cookie]);
|
1765
|
-
const config = {
|
1766
|
-
method: "getUserSummaryFromProfile",
|
1767
|
-
params: __params,
|
1768
|
-
is_static: true,
|
1769
|
-
};
|
1770
|
-
return await doRequest(config);
|
1771
|
-
}
|
1772
|
-
static async _formatSummary(summary) {
|
1773
|
-
const { __params, __cookies } = formatParams([summary]);
|
1774
|
-
const config = {
|
1775
|
-
method: "_formatSummary",
|
1776
|
-
params: __params,
|
1777
|
-
is_static: true,
|
1778
|
-
};
|
1779
|
-
return await doRequest(config);
|
1780
|
-
}
|
1781
|
-
static async _parseUserProfile(html) {
|
1782
|
-
const { __params, __cookies } = formatParams([html]);
|
1783
|
-
const config = {
|
1784
|
-
method: "_parseUserProfile",
|
1785
|
-
params: __params,
|
1786
|
-
is_static: true,
|
1787
|
-
};
|
1788
|
-
return await doRequest(config);
|
1789
|
-
}
|
1790
|
-
static async getUsersSummaryByWebApiKey(webApiKey, steamIds) {
|
1791
|
-
const { __params, __cookies } = formatParams([webApiKey, steamIds]);
|
1792
|
-
const config = {
|
1793
|
-
method: "getUsersSummaryByWebApiKey",
|
1794
|
-
params: __params,
|
1795
|
-
is_static: true,
|
1796
|
-
};
|
1797
|
-
return await doRequest(config);
|
1798
|
-
}
|
1799
|
-
static async getUserFriendListByWebApiKey(webApiKey, steamId) {
|
1800
|
-
const { __params, __cookies } = formatParams([webApiKey, steamId]);
|
1801
|
-
const config = {
|
1802
|
-
method: "getUserFriendListByWebApiKey",
|
1803
|
-
params: __params,
|
1804
|
-
is_static: true,
|
1805
|
-
};
|
1806
|
-
return await doRequest(config);
|
1807
|
-
}
|
1808
|
-
static async queryLocations() {
|
1809
|
-
const { __params, __cookies } = formatParams([]);
|
1810
|
-
const config = {
|
1811
|
-
method: "queryLocations",
|
1812
|
-
params: __params,
|
1813
|
-
is_static: true,
|
1814
|
-
};
|
1815
|
-
return await doRequest(config);
|
1816
|
-
}
|
1817
|
-
static async queryAppList(term) {
|
1818
|
-
const { __params, __cookies } = formatParams([term]);
|
1819
|
-
const config = {
|
1820
|
-
method: "queryAppList",
|
1821
|
-
params: __params,
|
1822
|
-
is_static: true,
|
1823
|
-
};
|
1824
|
-
return await doRequest(config);
|
1825
|
-
}
|
1826
|
-
static async suggestAppList(term) {
|
1827
|
-
const { __params, __cookies } = formatParams([term]);
|
1828
|
-
const config = {
|
1829
|
-
method: "suggestAppList",
|
1830
|
-
params: __params,
|
1831
|
-
is_static: true,
|
1832
|
-
};
|
1833
|
-
return await doRequest(config);
|
1834
|
-
}
|
1835
|
-
static async steamID642Miniprofile(steamId) {
|
1836
|
-
const { __params, __cookies } = formatParams([steamId]);
|
1837
|
-
const config = {
|
1838
|
-
method: "steamID642Miniprofile",
|
1839
|
-
params: __params,
|
1840
|
-
is_static: true,
|
1841
|
-
};
|
1842
|
-
return await doRequest(config);
|
1843
|
-
}
|
1844
|
-
static async miniprofile2SteamID64(miniprofile) {
|
1845
|
-
const { __params, __cookies } = formatParams([miniprofile]);
|
1846
|
-
const config = {
|
1847
|
-
method: "miniprofile2SteamID64",
|
1848
|
-
params: __params,
|
1849
|
-
is_static: true,
|
1850
|
-
};
|
1851
|
-
return await doRequest(config);
|
1852
|
-
}
|
1853
|
-
static async groupminiid2SteamID64(miniid) {
|
1854
|
-
const { __params, __cookies } = formatParams([miniid]);
|
1855
|
-
const config = {
|
1856
|
-
method: "groupminiid2SteamID64",
|
1857
|
-
params: __params,
|
1858
|
-
is_static: true,
|
1859
|
-
};
|
1860
|
-
return await doRequest(config);
|
1861
|
-
}
|
1862
|
-
static async getCustomURL_from_ProfileURL(profileURL) {
|
1863
|
-
const { __params, __cookies } = formatParams([profileURL]);
|
1864
|
-
const config = {
|
1865
|
-
method: "getCustomURL_from_ProfileURL",
|
1866
|
-
params: __params,
|
1867
|
-
is_static: true,
|
1868
|
-
};
|
1869
|
-
return await doRequest(config);
|
1870
|
-
}
|
1871
|
-
static async getProfileURL_from_CustomURL(customURL) {
|
1872
|
-
const { __params, __cookies } = formatParams([customURL]);
|
1873
|
-
const config = {
|
1874
|
-
method: "getProfileURL_from_CustomURL",
|
1875
|
-
params: __params,
|
1876
|
-
is_static: true,
|
1877
|
-
};
|
1878
|
-
return await doRequest(config);
|
1879
|
-
}
|
1880
|
-
static async getAppList() {
|
1881
|
-
const { __params, __cookies } = formatParams([]);
|
1882
|
-
const config = {
|
1883
|
-
method: "getAppList",
|
1884
|
-
params: __params,
|
1885
|
-
is_static: true,
|
1886
|
-
};
|
1887
|
-
return await doRequest(config);
|
1888
|
-
}
|
1889
|
-
static async getAppDetail(appIds) {
|
1890
|
-
const { __params, __cookies } = formatParams([appIds]);
|
1891
|
-
const config = {
|
1892
|
-
method: "getAppDetail",
|
1893
|
-
params: __params,
|
1894
|
-
is_static: true,
|
1895
|
-
};
|
1896
|
-
return await doRequest(config);
|
1897
|
-
}
|
1898
|
-
static async getAppVersion(appID) {
|
1899
|
-
const { __params, __cookies } = formatParams([appID]);
|
1900
|
-
const config = {
|
1901
|
-
method: "getAppVersion",
|
1902
|
-
params: __params,
|
1903
|
-
is_static: true,
|
1904
|
-
};
|
1905
|
-
return await doRequest(config);
|
1906
|
-
}
|
1907
|
-
static async generateSessionID() {
|
1908
|
-
const { __params, __cookies } = formatParams([]);
|
1909
|
-
const config = {
|
1910
|
-
method: "generateSessionID",
|
1911
|
-
params: __params,
|
1912
|
-
is_static: true,
|
1913
|
-
};
|
1914
|
-
return await doRequest(config);
|
1915
|
-
}
|
1916
|
-
static async communityLogin({ username, password, emailauth, cookie, steamMachineAuth }) {
|
1917
|
-
const { __params, __cookies } = formatParams([{ username, password, emailauth, cookie, steamMachineAuth }]);
|
1918
|
-
const config = {
|
1919
|
-
method: "communityLogin",
|
1920
|
-
params: __params,
|
1921
|
-
is_static: true,
|
1922
|
-
};
|
1923
|
-
return await doRequest(config);
|
1924
|
-
}
|
1925
|
-
static async getrsakey(username) {
|
1926
|
-
const { __params, __cookies } = formatParams([username]);
|
1927
|
-
const config = {
|
1928
|
-
method: "getrsakey",
|
1929
|
-
params: __params,
|
1930
|
-
is_static: true,
|
1931
|
-
};
|
1932
|
-
return await doRequest(config);
|
1933
|
-
}
|
1934
|
-
static async oAuthLogin(steamguard, access_token) {
|
1935
|
-
const { __params, __cookies } = formatParams([steamguard, access_token]);
|
1936
|
-
const config = {
|
1937
|
-
method: "oAuthLogin",
|
1938
|
-
params: __params,
|
1939
|
-
is_static: true,
|
1940
|
-
};
|
1941
|
-
return await doRequest(config);
|
1942
|
-
}
|
1943
|
-
static async _isPlsLoginFirst(data) {
|
1944
|
-
const { __params, __cookies } = formatParams([data]);
|
1945
|
-
const config = {
|
1946
|
-
method: "_isPlsLoginFirst",
|
1947
|
-
params: __params,
|
1948
|
-
is_static: true,
|
1949
|
-
};
|
1950
|
-
return await doRequest(config);
|
1951
|
-
}
|
1952
|
-
static async _httpRequestXML(link) {
|
1953
|
-
const { __params, __cookies } = formatParams([link]);
|
1954
|
-
const config = {
|
1955
|
-
method: "_httpRequestXML",
|
1956
|
-
params: __params,
|
1957
|
-
is_static: true,
|
1958
|
-
};
|
1959
|
-
return await doRequest(config);
|
1960
|
-
}
|
1961
|
-
static async _formatGroupLink({ link, gid, groupURL, page, content_only, searchKey, pathname }) {
|
1962
|
-
const { __params, __cookies } = formatParams([{ link, gid, groupURL, page, content_only, searchKey, pathname }]);
|
1963
|
-
const config = {
|
1964
|
-
method: "_formatGroupLink",
|
1965
|
-
params: __params,
|
1966
|
-
is_static: true,
|
1967
|
-
};
|
1968
|
-
return await doRequest(config);
|
1969
|
-
}
|
1970
|
-
static async _parseGroupInfo(html) {
|
1971
|
-
const { __params, __cookies } = formatParams([html]);
|
1972
|
-
const config = {
|
1973
|
-
method: "_parseGroupInfo",
|
1974
|
-
params: __params,
|
1975
|
-
is_static: true,
|
1976
|
-
};
|
1977
|
-
return await doRequest(config);
|
1978
|
-
}
|
1979
|
-
static async getGroupOverview({ groupURL, gid, page, cookie, link, content_only, searchKey }) {
|
1980
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, page, cookie, link, content_only, searchKey }]);
|
1981
|
-
const config = {
|
1982
|
-
method: "getGroupOverview",
|
1983
|
-
params: __params,
|
1984
|
-
is_static: true,
|
1985
|
-
};
|
1986
|
-
return await doRequest(config);
|
1987
|
-
}
|
1988
|
-
static async getGroupMembers({ groupURL, gid, page, cookie, link, content_only, searchKey }) {
|
1989
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, page, cookie, link, content_only, searchKey }]);
|
1990
|
-
const config = {
|
1991
|
-
method: "getGroupMembers",
|
1992
|
-
params: __params,
|
1993
|
-
is_static: true,
|
1994
|
-
};
|
1995
|
-
return await doRequest(config);
|
1996
|
-
}
|
1997
|
-
static async getGroupMembersFull({ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }) {
|
1998
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }]);
|
1999
|
-
const config = {
|
2000
|
-
method: "getGroupMembersFull",
|
2001
|
-
params: __params,
|
2002
|
-
is_static: true,
|
2003
|
-
};
|
2004
|
-
return await doRequest(config);
|
2005
|
-
}
|
2006
|
-
static async getGroupInfoXML({ groupURL, gid, page, link }) {
|
2007
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, page, link }]);
|
2008
|
-
const config = {
|
2009
|
-
method: "getGroupInfoXML",
|
2010
|
-
params: __params,
|
2011
|
-
is_static: true,
|
2012
|
-
};
|
2013
|
-
return await doRequest(config);
|
2014
|
-
}
|
2015
|
-
static async getGroupInfoXMLFull({ groupURL, gid, cbOnMembers }) {
|
2016
|
-
const { __params, __cookies } = formatParams([{ groupURL, gid, cbOnMembers }]);
|
2017
|
-
const config = {
|
2018
|
-
method: "getGroupInfoXMLFull",
|
2019
|
-
params: __params,
|
2020
|
-
is_static: true,
|
2021
|
-
};
|
2022
|
-
return await doRequest(config);
|
2023
|
-
}
|
2024
|
-
static async _parsePendingFriendList(html, selector) {
|
2025
|
-
const { __params, __cookies } = formatParams([html, selector]);
|
2026
|
-
const config = {
|
2027
|
-
method: "_parsePendingFriendList",
|
2028
|
-
params: __params,
|
2029
|
-
is_static: true,
|
2030
|
-
};
|
2031
|
-
return await doRequest(config);
|
2032
|
-
}
|
2033
|
-
static async _parseMatchHistory(html) {
|
2034
|
-
const { __params, __cookies } = formatParams([html]);
|
2035
|
-
const config = {
|
2036
|
-
method: "_parseMatchHistory",
|
2037
|
-
params: __params,
|
2038
|
-
is_static: true,
|
2039
|
-
};
|
2040
|
-
return await doRequest(config);
|
2041
|
-
}
|
2042
|
-
static async _formatPrivacySettings2String(privacySettings) {
|
2043
|
-
const { __params, __cookies } = formatParams([privacySettings]);
|
2044
|
-
const config = {
|
2045
|
-
method: "_formatPrivacySettings2String",
|
2046
|
-
params: __params,
|
2047
|
-
is_static: true,
|
2048
|
-
};
|
2049
|
-
return await doRequest(config);
|
2050
|
-
}
|
2051
|
-
static async _formatPrivacySettings2Value(privacySettings) {
|
2052
|
-
const { __params, __cookies } = formatParams([privacySettings]);
|
2053
|
-
const config = {
|
2054
|
-
method: "_formatPrivacySettings2Value",
|
2055
|
-
params: __params,
|
2056
|
-
is_static: true,
|
2057
|
-
};
|
2058
|
-
return await doRequest(config);
|
2059
|
-
}
|
2060
|
-
static async getUserGroupsList(steamId, cookie) {
|
2061
|
-
const { __params, __cookies } = formatParams([steamId, cookie]);
|
2062
|
-
const config = {
|
2063
|
-
method: "getUserGroupsList",
|
2064
|
-
params: __params,
|
2065
|
-
is_static: true,
|
2066
|
-
};
|
2067
|
-
return await doRequest(config);
|
2068
|
-
}
|
2069
|
-
static async _parseUserGroupList(html) {
|
2070
|
-
const { __params, __cookies } = formatParams([html]);
|
2071
|
-
const config = {
|
2072
|
-
method: "_parseUserGroupList",
|
2073
|
-
params: __params,
|
2074
|
-
is_static: true,
|
2075
|
-
};
|
2076
|
-
return await doRequest(config);
|
2077
|
-
}
|
2078
|
-
static async resolveUsers(steamIDs, cookie) {
|
2079
|
-
const { __params, __cookies } = formatParams([steamIDs, cookie]);
|
2080
|
-
const config = {
|
2081
|
-
method: "resolveUsers",
|
2082
|
-
params: __params,
|
2083
|
-
is_static: true,
|
2084
|
-
};
|
2085
|
-
return await doRequest(config);
|
2086
|
-
}
|
2087
|
-
static async GetAvatarURLFromHash(hash, size) {
|
2088
|
-
const { __params, __cookies } = formatParams([hash, size]);
|
2089
|
-
const config = {
|
2090
|
-
method: "GetAvatarURLFromHash",
|
2091
|
-
params: __params,
|
2092
|
-
is_static: true,
|
2093
|
-
};
|
2094
|
-
return await doRequest(config);
|
2095
|
-
}
|
2096
|
-
static async GetAvatarHashFromURL(url) {
|
2097
|
-
const { __params, __cookies } = formatParams([url]);
|
2098
|
-
const config = {
|
2099
|
-
method: "GetAvatarHashFromURL",
|
2100
|
-
params: __params,
|
2101
|
-
is_static: true,
|
2102
|
-
};
|
2103
|
-
return await doRequest(config);
|
2104
|
-
}
|
2105
|
-
static async GetAvatarHashFromMultipleURL(urls) {
|
2106
|
-
const { __params, __cookies } = formatParams([urls]);
|
2107
|
-
const config = {
|
2108
|
-
method: "GetAvatarHashFromMultipleURL",
|
2109
|
-
params: __params,
|
2110
|
-
is_static: true,
|
2111
|
-
};
|
2112
|
-
return await doRequest(config);
|
2113
|
-
}
|
2114
|
-
static async createFriendCode(steamId) {
|
2115
|
-
const { __params, __cookies } = formatParams([steamId]);
|
2116
|
-
const config = {
|
2117
|
-
method: "createFriendCode",
|
2118
|
-
params: __params,
|
2119
|
-
is_static: true,
|
2120
|
-
};
|
2121
|
-
return await doRequest(config);
|
2122
|
-
}
|
2123
|
-
static async parseFriendCode(friendCode) {
|
2124
|
-
const { __params, __cookies } = formatParams([friendCode]);
|
2125
|
-
const config = {
|
2126
|
-
method: "parseFriendCode",
|
2127
|
-
params: __params,
|
2128
|
-
is_static: true,
|
2129
|
-
};
|
2130
|
-
return await doRequest(config);
|
2131
|
-
}
|
2132
|
-
static async _formatString2Int(text) {
|
2133
|
-
const { __params, __cookies } = formatParams([text]);
|
2134
|
-
const config = {
|
2135
|
-
method: "_formatString2Int",
|
2136
|
-
params: __params,
|
2137
|
-
is_static: true,
|
2138
|
-
};
|
2139
|
-
return await doRequest(config);
|
2140
|
-
}
|
2141
|
-
static async confirmEmailForAdd(confirmURL) {
|
2142
|
-
const { __params, __cookies } = formatParams([confirmURL]);
|
2143
|
-
const config = {
|
2144
|
-
method: "confirmEmailForAdd",
|
2145
|
-
params: __params,
|
2146
|
-
is_static: true,
|
2147
|
-
};
|
2148
|
-
return await doRequest(config);
|
2149
|
-
}
|
2150
|
-
static async parseGameBanType(gameBanFull) {
|
2151
|
-
const { __params, __cookies } = formatParams([gameBanFull]);
|
2152
|
-
const config = {
|
2153
|
-
method: "parseGameBanType",
|
2154
|
-
params: __params,
|
2155
|
-
is_static: true,
|
2156
|
-
};
|
2157
|
-
return await doRequest(config);
|
2158
|
-
}
|
2159
|
-
static async getPriceOverview(appID, market_hash_name) {
|
2160
|
-
const { __params, __cookies } = formatParams([appID, market_hash_name]);
|
2161
|
-
const config = {
|
2162
|
-
method: "getPriceOverview",
|
2163
|
-
params: __params,
|
2164
|
-
is_static: true,
|
2165
|
-
};
|
2166
|
-
return await doRequest(config);
|
2167
|
-
}
|
2168
|
-
static async parseTradeURL(tradeURL) {
|
2169
|
-
const { __params, __cookies } = formatParams([tradeURL]);
|
2170
|
-
const config = {
|
2171
|
-
method: "parseTradeURL",
|
2172
|
-
params: __params,
|
2173
|
-
is_static: true,
|
2174
|
-
};
|
2175
|
-
return await doRequest(config);
|
2176
|
-
}
|
2177
|
-
static async isCookieAlive(cookie) {
|
2178
|
-
const { __params, __cookies } = formatParams([cookie]);
|
2179
|
-
const config = {
|
2180
|
-
method: "isCookieAlive",
|
2181
|
-
params: __params,
|
2182
|
-
is_static: true,
|
2183
|
-
};
|
2184
|
-
return await doRequest(config);
|
2185
|
-
}
|
2186
|
-
static async getItemOrdersHistogram(appID, market_hash_name, item_nameid) {
|
2187
|
-
const { __params, __cookies } = formatParams([appID, market_hash_name, item_nameid]);
|
2188
|
-
const config = {
|
2189
|
-
method: "getItemOrdersHistogram",
|
2190
|
-
params: __params,
|
2191
|
-
is_static: true,
|
2192
|
-
};
|
2193
|
-
return await doRequest(config);
|
2194
|
-
}
|
2195
|
-
static async fetchAccessToken(cookie) {
|
2196
|
-
const { __params, __cookies } = formatParams([cookie]);
|
2197
|
-
const config = {
|
2198
|
-
method: "fetchAccessToken",
|
2199
|
-
params: __params,
|
2200
|
-
is_static: true,
|
2201
|
-
};
|
2202
|
-
return await doRequest(config);
|
2203
|
-
}
|
2204
|
-
static async parseWizardPageParams(html) {
|
2205
|
-
const { __params, __cookies } = formatParams([html]);
|
2206
|
-
const config = {
|
2207
|
-
method: "parseWizardPageParams",
|
2208
|
-
params: __params,
|
2209
|
-
is_static: true,
|
2210
|
-
};
|
2211
|
-
return await doRequest(config);
|
2212
|
-
}
|
2213
|
-
static async decodeQRImage(imageURL) {
|
2214
|
-
const { __params, __cookies } = formatParams([imageURL]);
|
2215
|
-
const config = {
|
2216
|
-
method: "decodeQRImage",
|
2217
|
-
params: __params,
|
2218
|
-
is_static: true,
|
2219
|
-
};
|
2220
|
-
return await doRequest(config);
|
2221
|
-
}
|
2222
|
-
static async approveLoginRequest(steamId, url, sharedSecret, accessToken) {
|
2223
|
-
const { __params, __cookies } = formatParams([steamId, url, sharedSecret, accessToken]);
|
2224
|
-
const config = {
|
2225
|
-
method: "approveLoginRequest",
|
2226
|
-
params: __params,
|
2227
|
-
is_static: true,
|
2228
|
-
};
|
2229
|
-
return await doRequest(config);
|
2230
|
-
}
|
2231
|
-
static async getAuthSessionInfo(steamId, url, sharedSecret, accessToken) {
|
2232
|
-
const { __params, __cookies } = formatParams([steamId, url, sharedSecret, accessToken]);
|
2233
|
-
const config = {
|
2234
|
-
method: "getAuthSessionInfo",
|
2235
|
-
params: __params,
|
2236
|
-
is_static: true,
|
2237
|
-
};
|
2238
|
-
return await doRequest(config);
|
2239
|
-
}
|
2240
|
-
}
|
1
|
+
import axios from "axios";
|
2
|
+
import SteamUser, { ELanguage } from "./index.js";
|
3
|
+
import CookieManager from "./CookieManager.js";
|
4
|
+
|
5
|
+
function getAppURL() {
|
6
|
+
if (!RemoteSteamUser.__appIndex) {
|
7
|
+
RemoteSteamUser.__appIndex = 0;
|
8
|
+
}
|
9
|
+
RemoteSteamUser.__appIndex++;
|
10
|
+
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
11
|
+
RemoteSteamUser.__appIndex = 0;
|
12
|
+
}
|
13
|
+
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
14
|
+
}
|
15
|
+
|
16
|
+
function formatParams(__params, __cookies) {
|
17
|
+
if (__params.length === 1 && __params[0] === undefined) {
|
18
|
+
__params.length = 0;
|
19
|
+
}
|
20
|
+
if (__cookies) {
|
21
|
+
if (!Array.isArray(__cookies)) {
|
22
|
+
__cookies = [__cookies];
|
23
|
+
}
|
24
|
+
__cookies = __cookies.map(function (cookie) {
|
25
|
+
return cookie.toString();
|
26
|
+
});
|
27
|
+
}
|
28
|
+
|
29
|
+
return {
|
30
|
+
__params,
|
31
|
+
__cookies,
|
32
|
+
};
|
33
|
+
}
|
34
|
+
|
35
|
+
const MAX_RETRY = 5;
|
36
|
+
|
37
|
+
async function doRequest(config) {
|
38
|
+
for (let i = 0; i < MAX_RETRY; i++) {
|
39
|
+
let url = getAppURL();
|
40
|
+
url = [url.replace(/\/$/, ""), config.method].join("/");
|
41
|
+
|
42
|
+
try {
|
43
|
+
const response = await axios.post(url, config);
|
44
|
+
|
45
|
+
if (!response || !response.data) {
|
46
|
+
continue;
|
47
|
+
}
|
48
|
+
|
49
|
+
return response.data?.result;
|
50
|
+
} catch (e) {
|
51
|
+
/* empty */
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
export default class RemoteSteamUser {
|
57
|
+
constructor(cookies, refreshCookie, onRefreshCookie) {
|
58
|
+
if (!Array.isArray(cookies)) {
|
59
|
+
cookies = [cookies];
|
60
|
+
}
|
61
|
+
this._refreshCookie = refreshCookie;
|
62
|
+
this._onRefreshCookie = onRefreshCookie;
|
63
|
+
this._cookies = cookies.map(function (cookie) {
|
64
|
+
return new CookieManager(cookie?.cookie || cookie);
|
65
|
+
});
|
66
|
+
const timezoneOffset = `${new Date().getTimezoneOffset() * -1 * 60},0`;
|
67
|
+
for (const cookie of this._cookies) {
|
68
|
+
cookie.setCookie("timezoneOffset", timezoneOffset);
|
69
|
+
|
70
|
+
let { steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, miniprofile, sessionid } = SteamUser.parseCookie(cookie.toString());
|
71
|
+
|
72
|
+
if (!sessionid) {
|
73
|
+
sessionid = SteamUser.generateSessionID();
|
74
|
+
cookie.setCookie("sessionid", sessionid);
|
75
|
+
}
|
76
|
+
|
77
|
+
this._sessionId = sessionid;
|
78
|
+
this._customURL = null;
|
79
|
+
this._steamIdUser = steamId;
|
80
|
+
this._miniProfileUser = miniprofile;
|
81
|
+
this._steamMachineAuth = steamMachineAuth;
|
82
|
+
this._steamLoginSecure = steamLoginSecure;
|
83
|
+
this._steamRememberLogin = steamRememberLogin;
|
84
|
+
}
|
85
|
+
|
86
|
+
this.setSteamLanguage(ELanguage.english);
|
87
|
+
|
88
|
+
if (!this._steamIdUser) {
|
89
|
+
console.error("Invalid cookie. Missing steamId");
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
setSteamLanguage(language) {
|
94
|
+
language = language?.toLowerCase();
|
95
|
+
if (!Object.hasOwn(ELanguage, language)) {
|
96
|
+
return;
|
97
|
+
}
|
98
|
+
this.Steam_Language = language;
|
99
|
+
this._cookies.forEach(function (cookie) {
|
100
|
+
cookie.setCookie("Steam_Language", language);
|
101
|
+
cookie.setCookie("strInventoryLastContext", "730_2");
|
102
|
+
});
|
103
|
+
}
|
104
|
+
getCookies(index = 0) {
|
105
|
+
return this._cookies[index].toString();
|
106
|
+
}
|
107
|
+
getSteamIdUser() {
|
108
|
+
return this._steamIdUser;
|
109
|
+
}
|
110
|
+
getMiniProfileUser() {
|
111
|
+
return this._miniProfileUser;
|
112
|
+
}
|
113
|
+
getSessionid() {
|
114
|
+
return this._sessionId;
|
115
|
+
}
|
116
|
+
getSteamMachineAuth() {
|
117
|
+
return this._steamMachineAuth;
|
118
|
+
}
|
119
|
+
getSteamUserProfileURL(steamId) {
|
120
|
+
return `profiles/${steamId}`;
|
121
|
+
}
|
122
|
+
getMyProfileURL() {
|
123
|
+
if (this._customURL) {
|
124
|
+
return `id/${this._customURL}`;
|
125
|
+
}
|
126
|
+
return "my";
|
127
|
+
}
|
128
|
+
async getUserSummary(steamId) {
|
129
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
130
|
+
const config = {
|
131
|
+
method: "getUserSummary",
|
132
|
+
params: __params,
|
133
|
+
cookies: __cookies,
|
134
|
+
is_static: false,
|
135
|
+
};
|
136
|
+
return await doRequest(config);
|
137
|
+
}
|
138
|
+
async getUserSummaryFromProfile(steamId) {
|
139
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
140
|
+
const config = {
|
141
|
+
method: "getUserSummaryFromProfile",
|
142
|
+
params: __params,
|
143
|
+
cookies: __cookies,
|
144
|
+
is_static: false,
|
145
|
+
};
|
146
|
+
return await doRequest(config);
|
147
|
+
}
|
148
|
+
async getQuickInviteData() {
|
149
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
150
|
+
const config = {
|
151
|
+
method: "getQuickInviteData",
|
152
|
+
params: __params,
|
153
|
+
cookies: __cookies,
|
154
|
+
is_static: false,
|
155
|
+
};
|
156
|
+
return await doRequest(config);
|
157
|
+
}
|
158
|
+
async getQuickInviteLink() {
|
159
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
160
|
+
const config = {
|
161
|
+
method: "getQuickInviteLink",
|
162
|
+
params: __params,
|
163
|
+
cookies: __cookies,
|
164
|
+
is_static: false,
|
165
|
+
};
|
166
|
+
return await doRequest(config);
|
167
|
+
}
|
168
|
+
async getCurrentQuickInviteTokens() {
|
169
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
170
|
+
const config = {
|
171
|
+
method: "getCurrentQuickInviteTokens",
|
172
|
+
params: __params,
|
173
|
+
cookies: __cookies,
|
174
|
+
is_static: false,
|
175
|
+
};
|
176
|
+
return await doRequest(config);
|
177
|
+
}
|
178
|
+
async acceptQuickInviteData(quickInviteData) {
|
179
|
+
const { __params, __cookies } = formatParams([quickInviteData], this._cookies);
|
180
|
+
const config = {
|
181
|
+
method: "acceptQuickInviteData",
|
182
|
+
params: __params,
|
183
|
+
cookies: __cookies,
|
184
|
+
is_static: false,
|
185
|
+
};
|
186
|
+
return await doRequest(config);
|
187
|
+
}
|
188
|
+
async acceptQuickInviteLink(quickInviteLink) {
|
189
|
+
const { __params, __cookies } = formatParams([quickInviteLink], this._cookies);
|
190
|
+
const config = {
|
191
|
+
method: "acceptQuickInviteLink",
|
192
|
+
params: __params,
|
193
|
+
cookies: __cookies,
|
194
|
+
is_static: false,
|
195
|
+
};
|
196
|
+
return await doRequest(config);
|
197
|
+
}
|
198
|
+
async _parseComments(html) {
|
199
|
+
const { __params, __cookies } = formatParams([html], this._cookies);
|
200
|
+
const config = {
|
201
|
+
method: "_parseComments",
|
202
|
+
params: __params,
|
203
|
+
cookies: __cookies,
|
204
|
+
is_static: false,
|
205
|
+
};
|
206
|
+
return await doRequest(config);
|
207
|
+
}
|
208
|
+
async getMyComments() {
|
209
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
210
|
+
const config = {
|
211
|
+
method: "getMyComments",
|
212
|
+
params: __params,
|
213
|
+
cookies: __cookies,
|
214
|
+
is_static: false,
|
215
|
+
};
|
216
|
+
return await doRequest(config);
|
217
|
+
}
|
218
|
+
async getUserComments(steamId) {
|
219
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
220
|
+
const config = {
|
221
|
+
method: "getUserComments",
|
222
|
+
params: __params,
|
223
|
+
cookies: __cookies,
|
224
|
+
is_static: false,
|
225
|
+
};
|
226
|
+
return await doRequest(config);
|
227
|
+
}
|
228
|
+
async getGroupOverview({ groupURL, gid, page, content_only, searchKey }) {
|
229
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, page, content_only, searchKey }], this._cookies);
|
230
|
+
const config = {
|
231
|
+
method: "getGroupOverview",
|
232
|
+
params: __params,
|
233
|
+
cookies: __cookies,
|
234
|
+
is_static: false,
|
235
|
+
};
|
236
|
+
return await doRequest(config);
|
237
|
+
}
|
238
|
+
async getGroupMembers({ groupURL, gid, page, link, content_only, searchKey }) {
|
239
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, page, link, content_only, searchKey }], this._cookies);
|
240
|
+
const config = {
|
241
|
+
method: "getGroupMembers",
|
242
|
+
params: __params,
|
243
|
+
cookies: __cookies,
|
244
|
+
is_static: false,
|
245
|
+
};
|
246
|
+
return await doRequest(config);
|
247
|
+
}
|
248
|
+
async getGroupMembersFull({ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }) {
|
249
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }], this._cookies);
|
250
|
+
const config = {
|
251
|
+
method: "getGroupMembersFull",
|
252
|
+
params: __params,
|
253
|
+
cookies: __cookies,
|
254
|
+
is_static: false,
|
255
|
+
};
|
256
|
+
return await doRequest(config);
|
257
|
+
}
|
258
|
+
async _parseFriendList(result) {
|
259
|
+
const { __params, __cookies } = formatParams([result], this._cookies);
|
260
|
+
const config = {
|
261
|
+
method: "_parseFriendList",
|
262
|
+
params: __params,
|
263
|
+
cookies: __cookies,
|
264
|
+
is_static: false,
|
265
|
+
};
|
266
|
+
return await doRequest(config);
|
267
|
+
}
|
268
|
+
async getFollowingPlayersList(steamId) {
|
269
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
270
|
+
const config = {
|
271
|
+
method: "getFollowingPlayersList",
|
272
|
+
params: __params,
|
273
|
+
cookies: __cookies,
|
274
|
+
is_static: false,
|
275
|
+
};
|
276
|
+
return await doRequest(config);
|
277
|
+
}
|
278
|
+
async getFriendsList(steamId) {
|
279
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
280
|
+
const config = {
|
281
|
+
method: "getFriendsList",
|
282
|
+
params: __params,
|
283
|
+
cookies: __cookies,
|
284
|
+
is_static: false,
|
285
|
+
};
|
286
|
+
return await doRequest(config);
|
287
|
+
}
|
288
|
+
async getMyFriendsIDList() {
|
289
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
290
|
+
const config = {
|
291
|
+
method: "getMyFriendsIDList",
|
292
|
+
params: __params,
|
293
|
+
cookies: __cookies,
|
294
|
+
is_static: false,
|
295
|
+
};
|
296
|
+
return await doRequest(config);
|
297
|
+
}
|
298
|
+
async getPendingFriendList() {
|
299
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
300
|
+
const config = {
|
301
|
+
method: "getPendingFriendList",
|
302
|
+
params: __params,
|
303
|
+
cookies: __cookies,
|
304
|
+
is_static: false,
|
305
|
+
};
|
306
|
+
return await doRequest(config);
|
307
|
+
}
|
308
|
+
async getMatchHistory_initial(matchHistoryType) {
|
309
|
+
const { __params, __cookies } = formatParams([matchHistoryType], this._cookies);
|
310
|
+
const config = {
|
311
|
+
method: "getMatchHistory_initial",
|
312
|
+
params: __params,
|
313
|
+
cookies: __cookies,
|
314
|
+
is_static: false,
|
315
|
+
};
|
316
|
+
return await doRequest(config);
|
317
|
+
}
|
318
|
+
async getClientJsToken(retry) {
|
319
|
+
const { __params, __cookies } = formatParams([retry], this._cookies);
|
320
|
+
const config = {
|
321
|
+
method: "getClientJsToken",
|
322
|
+
params: __params,
|
323
|
+
cookies: __cookies,
|
324
|
+
is_static: false,
|
325
|
+
};
|
326
|
+
return await doRequest(config);
|
327
|
+
}
|
328
|
+
async _getHistoryMatches(matchHistoryType, token) {
|
329
|
+
const { __params, __cookies } = formatParams([matchHistoryType, token], this._cookies);
|
330
|
+
const config = {
|
331
|
+
method: "_getHistoryMatches",
|
332
|
+
params: __params,
|
333
|
+
cookies: __cookies,
|
334
|
+
is_static: false,
|
335
|
+
};
|
336
|
+
return await doRequest(config);
|
337
|
+
}
|
338
|
+
async getFullHistoryMatches({ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
|
339
|
+
const { __params, __cookies } = formatParams([{ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }], this._cookies);
|
340
|
+
const config = {
|
341
|
+
method: "getFullHistoryMatches",
|
342
|
+
params: __params,
|
343
|
+
cookies: __cookies,
|
344
|
+
is_static: false,
|
345
|
+
};
|
346
|
+
return await doRequest(config);
|
347
|
+
}
|
348
|
+
async _getFullHistoryMatches({ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }) {
|
349
|
+
const { __params, __cookies } = formatParams([{ matchHistoryType, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop }], this._cookies);
|
350
|
+
const config = {
|
351
|
+
method: "_getFullHistoryMatches",
|
352
|
+
params: __params,
|
353
|
+
cookies: __cookies,
|
354
|
+
is_static: false,
|
355
|
+
};
|
356
|
+
return await doRequest(config);
|
357
|
+
}
|
358
|
+
async followUser(steamId) {
|
359
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
360
|
+
const config = {
|
361
|
+
method: "followUser",
|
362
|
+
params: __params,
|
363
|
+
cookies: __cookies,
|
364
|
+
is_static: false,
|
365
|
+
};
|
366
|
+
return await doRequest(config);
|
367
|
+
}
|
368
|
+
async unfollowUser(steamId) {
|
369
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
370
|
+
const config = {
|
371
|
+
method: "unfollowUser",
|
372
|
+
params: __params,
|
373
|
+
cookies: __cookies,
|
374
|
+
is_static: false,
|
375
|
+
};
|
376
|
+
return await doRequest(config);
|
377
|
+
}
|
378
|
+
async unfollowUsers(steamIDs) {
|
379
|
+
const { __params, __cookies } = formatParams([steamIDs], this._cookies);
|
380
|
+
const config = {
|
381
|
+
method: "unfollowUsers",
|
382
|
+
params: __params,
|
383
|
+
cookies: __cookies,
|
384
|
+
is_static: false,
|
385
|
+
};
|
386
|
+
return await doRequest(config);
|
387
|
+
}
|
388
|
+
async unfollowAllFollowUsers() {
|
389
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
390
|
+
const config = {
|
391
|
+
method: "unfollowAllFollowUsers",
|
392
|
+
params: __params,
|
393
|
+
cookies: __cookies,
|
394
|
+
is_static: false,
|
395
|
+
};
|
396
|
+
return await doRequest(config);
|
397
|
+
}
|
398
|
+
async blockCommunicationUser(steamId) {
|
399
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
400
|
+
const config = {
|
401
|
+
method: "blockCommunicationUser",
|
402
|
+
params: __params,
|
403
|
+
cookies: __cookies,
|
404
|
+
is_static: false,
|
405
|
+
};
|
406
|
+
return await doRequest(config);
|
407
|
+
}
|
408
|
+
async unblockCommunicationUser(steamId) {
|
409
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
410
|
+
const config = {
|
411
|
+
method: "unblockCommunicationUser",
|
412
|
+
params: __params,
|
413
|
+
cookies: __cookies,
|
414
|
+
is_static: false,
|
415
|
+
};
|
416
|
+
return await doRequest(config);
|
417
|
+
}
|
418
|
+
async addFriendUser(steamId) {
|
419
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
420
|
+
const config = {
|
421
|
+
method: "addFriendUser",
|
422
|
+
params: __params,
|
423
|
+
cookies: __cookies,
|
424
|
+
is_static: false,
|
425
|
+
};
|
426
|
+
return await doRequest(config);
|
427
|
+
}
|
428
|
+
async removeFriend(steamId) {
|
429
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
430
|
+
const config = {
|
431
|
+
method: "removeFriend",
|
432
|
+
params: __params,
|
433
|
+
cookies: __cookies,
|
434
|
+
is_static: false,
|
435
|
+
};
|
436
|
+
return await doRequest(config);
|
437
|
+
}
|
438
|
+
async removeFriends(steamIds) {
|
439
|
+
const { __params, __cookies } = formatParams([steamIds], this._cookies);
|
440
|
+
const config = {
|
441
|
+
method: "removeFriends",
|
442
|
+
params: __params,
|
443
|
+
cookies: __cookies,
|
444
|
+
is_static: false,
|
445
|
+
};
|
446
|
+
return await doRequest(config);
|
447
|
+
}
|
448
|
+
async acceptFriendRequest(steamId) {
|
449
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
450
|
+
const config = {
|
451
|
+
method: "acceptFriendRequest",
|
452
|
+
params: __params,
|
453
|
+
cookies: __cookies,
|
454
|
+
is_static: false,
|
455
|
+
};
|
456
|
+
return await doRequest(config);
|
457
|
+
}
|
458
|
+
async cancelAddFriendUser(steamId) {
|
459
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
460
|
+
const config = {
|
461
|
+
method: "cancelAddFriendUser",
|
462
|
+
params: __params,
|
463
|
+
cookies: __cookies,
|
464
|
+
is_static: false,
|
465
|
+
};
|
466
|
+
return await doRequest(config);
|
467
|
+
}
|
468
|
+
async ignoreFriendRequest(steamId) {
|
469
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
470
|
+
const config = {
|
471
|
+
method: "ignoreFriendRequest",
|
472
|
+
params: __params,
|
473
|
+
cookies: __cookies,
|
474
|
+
is_static: false,
|
475
|
+
};
|
476
|
+
return await doRequest(config);
|
477
|
+
}
|
478
|
+
async setNickname(steamId, nickname) {
|
479
|
+
const { __params, __cookies } = formatParams([steamId, nickname], this._cookies);
|
480
|
+
const config = {
|
481
|
+
method: "setNickname",
|
482
|
+
params: __params,
|
483
|
+
cookies: __cookies,
|
484
|
+
is_static: false,
|
485
|
+
};
|
486
|
+
return await doRequest(config);
|
487
|
+
}
|
488
|
+
async removeNickname(steamId) {
|
489
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
490
|
+
const config = {
|
491
|
+
method: "removeNickname",
|
492
|
+
params: __params,
|
493
|
+
cookies: __cookies,
|
494
|
+
is_static: false,
|
495
|
+
};
|
496
|
+
return await doRequest(config);
|
497
|
+
}
|
498
|
+
async getNameHistory(steamId) {
|
499
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
500
|
+
const config = {
|
501
|
+
method: "getNameHistory",
|
502
|
+
params: __params,
|
503
|
+
cookies: __cookies,
|
504
|
+
is_static: false,
|
505
|
+
};
|
506
|
+
return await doRequest(config);
|
507
|
+
}
|
508
|
+
async clearPreviousAliases() {
|
509
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
510
|
+
const config = {
|
511
|
+
method: "clearPreviousAliases",
|
512
|
+
params: __params,
|
513
|
+
cookies: __cookies,
|
514
|
+
is_static: false,
|
515
|
+
};
|
516
|
+
return await doRequest(config);
|
517
|
+
}
|
518
|
+
async setupProfile() {
|
519
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
520
|
+
const config = {
|
521
|
+
method: "setupProfile",
|
522
|
+
params: __params,
|
523
|
+
cookies: __cookies,
|
524
|
+
is_static: false,
|
525
|
+
};
|
526
|
+
return await doRequest(config);
|
527
|
+
}
|
528
|
+
async editMyProfile({ personaName, realName, customURL, country, summary, hide_profile_awards }) {
|
529
|
+
const { __params, __cookies } = formatParams([{ personaName, realName, customURL, country, summary, hide_profile_awards }], this._cookies);
|
530
|
+
const config = {
|
531
|
+
method: "editMyProfile",
|
532
|
+
params: __params,
|
533
|
+
cookies: __cookies,
|
534
|
+
is_static: false,
|
535
|
+
};
|
536
|
+
return await doRequest(config);
|
537
|
+
}
|
538
|
+
async setPersonaName(name) {
|
539
|
+
const { __params, __cookies } = formatParams([name], this._cookies);
|
540
|
+
const config = {
|
541
|
+
method: "setPersonaName",
|
542
|
+
params: __params,
|
543
|
+
cookies: __cookies,
|
544
|
+
is_static: false,
|
545
|
+
};
|
546
|
+
return await doRequest(config);
|
547
|
+
}
|
548
|
+
async getPrivacySettings() {
|
549
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
550
|
+
const config = {
|
551
|
+
method: "getPrivacySettings",
|
552
|
+
params: __params,
|
553
|
+
cookies: __cookies,
|
554
|
+
is_static: false,
|
555
|
+
};
|
556
|
+
return await doRequest(config);
|
557
|
+
}
|
558
|
+
async updatePrivacySettings(privacySettings) {
|
559
|
+
const { __params, __cookies } = formatParams([privacySettings], this._cookies);
|
560
|
+
const config = {
|
561
|
+
method: "updatePrivacySettings",
|
562
|
+
params: __params,
|
563
|
+
cookies: __cookies,
|
564
|
+
is_static: false,
|
565
|
+
};
|
566
|
+
return await doRequest(config);
|
567
|
+
}
|
568
|
+
async publicPrivacySettings() {
|
569
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
570
|
+
const config = {
|
571
|
+
method: "publicPrivacySettings",
|
572
|
+
params: __params,
|
573
|
+
cookies: __cookies,
|
574
|
+
is_static: false,
|
575
|
+
};
|
576
|
+
return await doRequest(config);
|
577
|
+
}
|
578
|
+
async privatePrivacySettings() {
|
579
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
580
|
+
const config = {
|
581
|
+
method: "privatePrivacySettings",
|
582
|
+
params: __params,
|
583
|
+
cookies: __cookies,
|
584
|
+
is_static: false,
|
585
|
+
};
|
586
|
+
return await doRequest(config);
|
587
|
+
}
|
588
|
+
async postComment(steamId, message) {
|
589
|
+
const { __params, __cookies } = formatParams([steamId, message], this._cookies);
|
590
|
+
const config = {
|
591
|
+
method: "postComment",
|
592
|
+
params: __params,
|
593
|
+
cookies: __cookies,
|
594
|
+
is_static: false,
|
595
|
+
};
|
596
|
+
return await doRequest(config);
|
597
|
+
}
|
598
|
+
async deleteComment(steamId, gidcomment) {
|
599
|
+
const { __params, __cookies } = formatParams([steamId, gidcomment], this._cookies);
|
600
|
+
const config = {
|
601
|
+
method: "deleteComment",
|
602
|
+
params: __params,
|
603
|
+
cookies: __cookies,
|
604
|
+
is_static: false,
|
605
|
+
};
|
606
|
+
return await doRequest(config);
|
607
|
+
}
|
608
|
+
async _formatCommentModel(comment) {
|
609
|
+
const { __params, __cookies } = formatParams([comment], this._cookies);
|
610
|
+
const config = {
|
611
|
+
method: "_formatCommentModel",
|
612
|
+
params: __params,
|
613
|
+
cookies: __cookies,
|
614
|
+
is_static: false,
|
615
|
+
};
|
616
|
+
return await doRequest(config);
|
617
|
+
}
|
618
|
+
async _formatPlayingTime(hrs) {
|
619
|
+
const { __params, __cookies } = formatParams([hrs], this._cookies);
|
620
|
+
const config = {
|
621
|
+
method: "_formatPlayingTime",
|
622
|
+
params: __params,
|
623
|
+
cookies: __cookies,
|
624
|
+
is_static: false,
|
625
|
+
};
|
626
|
+
return await doRequest(config);
|
627
|
+
}
|
628
|
+
async getFriendsThatPlay(appID, sorted) {
|
629
|
+
const { __params, __cookies } = formatParams([appID, sorted], this._cookies);
|
630
|
+
const config = {
|
631
|
+
method: "getFriendsThatPlay",
|
632
|
+
params: __params,
|
633
|
+
cookies: __cookies,
|
634
|
+
is_static: false,
|
635
|
+
};
|
636
|
+
return await doRequest(config);
|
637
|
+
}
|
638
|
+
async getOwnedAppsDetail() {
|
639
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
640
|
+
const config = {
|
641
|
+
method: "getOwnedAppsDetail",
|
642
|
+
params: __params,
|
643
|
+
cookies: __cookies,
|
644
|
+
is_static: false,
|
645
|
+
};
|
646
|
+
return await doRequest(config);
|
647
|
+
}
|
648
|
+
async GetOwnedApps() {
|
649
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
650
|
+
const config = {
|
651
|
+
method: "GetOwnedApps",
|
652
|
+
params: __params,
|
653
|
+
cookies: __cookies,
|
654
|
+
is_static: false,
|
655
|
+
};
|
656
|
+
return await doRequest(config);
|
657
|
+
}
|
658
|
+
async getOwnedAppsID() {
|
659
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
660
|
+
const config = {
|
661
|
+
method: "getOwnedAppsID",
|
662
|
+
params: __params,
|
663
|
+
cookies: __cookies,
|
664
|
+
is_static: false,
|
665
|
+
};
|
666
|
+
return await doRequest(config);
|
667
|
+
}
|
668
|
+
async getDynamicStoreUserData() {
|
669
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
670
|
+
const config = {
|
671
|
+
method: "getDynamicStoreUserData",
|
672
|
+
params: __params,
|
673
|
+
cookies: __cookies,
|
674
|
+
is_static: false,
|
675
|
+
};
|
676
|
+
return await doRequest(config);
|
677
|
+
}
|
678
|
+
async getListGroupInvitable(userSteamID) {
|
679
|
+
const { __params, __cookies } = formatParams([userSteamID], this._cookies);
|
680
|
+
const config = {
|
681
|
+
method: "getListGroupInvitable",
|
682
|
+
params: __params,
|
683
|
+
cookies: __cookies,
|
684
|
+
is_static: false,
|
685
|
+
};
|
686
|
+
return await doRequest(config);
|
687
|
+
}
|
688
|
+
async inviteUserToGroup(userSteamIDs, groupSteamID) {
|
689
|
+
const { __params, __cookies } = formatParams([userSteamIDs, groupSteamID], this._cookies);
|
690
|
+
const config = {
|
691
|
+
method: "inviteUserToGroup",
|
692
|
+
params: __params,
|
693
|
+
cookies: __cookies,
|
694
|
+
is_static: false,
|
695
|
+
};
|
696
|
+
return await doRequest(config);
|
697
|
+
}
|
698
|
+
async inviteAllFriendToGroup(groupSteamID) {
|
699
|
+
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
700
|
+
const config = {
|
701
|
+
method: "inviteAllFriendToGroup",
|
702
|
+
params: __params,
|
703
|
+
cookies: __cookies,
|
704
|
+
is_static: false,
|
705
|
+
};
|
706
|
+
return await doRequest(config);
|
707
|
+
}
|
708
|
+
async _respondToGroupInvite(groupSteamID, accept) {
|
709
|
+
const { __params, __cookies } = formatParams([groupSteamID, accept], this._cookies);
|
710
|
+
const config = {
|
711
|
+
method: "_respondToGroupInvite",
|
712
|
+
params: __params,
|
713
|
+
cookies: __cookies,
|
714
|
+
is_static: false,
|
715
|
+
};
|
716
|
+
return await doRequest(config);
|
717
|
+
}
|
718
|
+
async acceptInviteUserToGroup(groupSteamID) {
|
719
|
+
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
720
|
+
const config = {
|
721
|
+
method: "acceptInviteUserToGroup",
|
722
|
+
params: __params,
|
723
|
+
cookies: __cookies,
|
724
|
+
is_static: false,
|
725
|
+
};
|
726
|
+
return await doRequest(config);
|
727
|
+
}
|
728
|
+
async ignoreInviteUserToGroup(groupSteamID) {
|
729
|
+
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
730
|
+
const config = {
|
731
|
+
method: "ignoreInviteUserToGroup",
|
732
|
+
params: __params,
|
733
|
+
cookies: __cookies,
|
734
|
+
is_static: false,
|
735
|
+
};
|
736
|
+
return await doRequest(config);
|
737
|
+
}
|
738
|
+
async getGroupSteamIdFromVanilaURL(vanilaURL) {
|
739
|
+
const { __params, __cookies } = formatParams([vanilaURL], this._cookies);
|
740
|
+
const config = {
|
741
|
+
method: "getGroupSteamIdFromVanilaURL",
|
742
|
+
params: __params,
|
743
|
+
cookies: __cookies,
|
744
|
+
is_static: false,
|
745
|
+
};
|
746
|
+
return await doRequest(config);
|
747
|
+
}
|
748
|
+
async leaveGroup(groupSteamID) {
|
749
|
+
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
750
|
+
const config = {
|
751
|
+
method: "leaveGroup",
|
752
|
+
params: __params,
|
753
|
+
cookies: __cookies,
|
754
|
+
is_static: false,
|
755
|
+
};
|
756
|
+
return await doRequest(config);
|
757
|
+
}
|
758
|
+
async joinGroup(groupSteamID) {
|
759
|
+
const { __params, __cookies } = formatParams([groupSteamID], this._cookies);
|
760
|
+
const config = {
|
761
|
+
method: "joinGroup",
|
762
|
+
params: __params,
|
763
|
+
cookies: __cookies,
|
764
|
+
is_static: false,
|
765
|
+
};
|
766
|
+
return await doRequest(config);
|
767
|
+
}
|
768
|
+
async getFriendsInCommon(steamId) {
|
769
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
770
|
+
const config = {
|
771
|
+
method: "getFriendsInCommon",
|
772
|
+
params: __params,
|
773
|
+
cookies: __cookies,
|
774
|
+
is_static: false,
|
775
|
+
};
|
776
|
+
return await doRequest(config);
|
777
|
+
}
|
778
|
+
async getFriendsInGroup(groupID) {
|
779
|
+
const { __params, __cookies } = formatParams([groupID], this._cookies);
|
780
|
+
const config = {
|
781
|
+
method: "getFriendsInGroup",
|
782
|
+
params: __params,
|
783
|
+
cookies: __cookies,
|
784
|
+
is_static: false,
|
785
|
+
};
|
786
|
+
return await doRequest(config);
|
787
|
+
}
|
788
|
+
async _parseSteamWebAPIKey($) {
|
789
|
+
const { __params, __cookies } = formatParams([$], this._cookies);
|
790
|
+
const config = {
|
791
|
+
method: "_parseSteamWebAPIKey",
|
792
|
+
params: __params,
|
793
|
+
cookies: __cookies,
|
794
|
+
is_static: false,
|
795
|
+
};
|
796
|
+
return await doRequest(config);
|
797
|
+
}
|
798
|
+
async getSteamWebAPIKey(domain) {
|
799
|
+
const { __params, __cookies } = formatParams([domain], this._cookies);
|
800
|
+
const config = {
|
801
|
+
method: "getSteamWebAPIKey",
|
802
|
+
params: __params,
|
803
|
+
cookies: __cookies,
|
804
|
+
is_static: false,
|
805
|
+
};
|
806
|
+
return await doRequest(config);
|
807
|
+
}
|
808
|
+
async revokeSteamWebAPIKey() {
|
809
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
810
|
+
const config = {
|
811
|
+
method: "revokeSteamWebAPIKey",
|
812
|
+
params: __params,
|
813
|
+
cookies: __cookies,
|
814
|
+
is_static: false,
|
815
|
+
};
|
816
|
+
return await doRequest(config);
|
817
|
+
}
|
818
|
+
async _parsePlayerListFromblotter_daily_rollup_line($, contentEl) {
|
819
|
+
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
820
|
+
const config = {
|
821
|
+
method: "_parsePlayerListFromblotter_daily_rollup_line",
|
822
|
+
params: __params,
|
823
|
+
cookies: __cookies,
|
824
|
+
is_static: false,
|
825
|
+
};
|
826
|
+
return await doRequest(config);
|
827
|
+
}
|
828
|
+
async _parseAppIDFromLink(link) {
|
829
|
+
const { __params, __cookies } = formatParams([link], this._cookies);
|
830
|
+
const config = {
|
831
|
+
method: "_parseAppIDFromLink",
|
832
|
+
params: __params,
|
833
|
+
cookies: __cookies,
|
834
|
+
is_static: false,
|
835
|
+
};
|
836
|
+
return await doRequest(config);
|
837
|
+
}
|
838
|
+
async _parseAppListFromBlotter($, contentEl) {
|
839
|
+
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
840
|
+
const config = {
|
841
|
+
method: "_parseAppListFromBlotter",
|
842
|
+
params: __params,
|
843
|
+
cookies: __cookies,
|
844
|
+
is_static: false,
|
845
|
+
};
|
846
|
+
return await doRequest(config);
|
847
|
+
}
|
848
|
+
async _parseAchievedblotter_daily_rollup_line($, contentEl) {
|
849
|
+
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
850
|
+
const config = {
|
851
|
+
method: "_parseAchievedblotter_daily_rollup_line",
|
852
|
+
params: __params,
|
853
|
+
cookies: __cookies,
|
854
|
+
is_static: false,
|
855
|
+
};
|
856
|
+
return await doRequest(config);
|
857
|
+
}
|
858
|
+
async _parseGroupListFromblotter_daily_rollup_line($, contentEl) {
|
859
|
+
const { __params, __cookies } = formatParams([$, contentEl], this._cookies);
|
860
|
+
const config = {
|
861
|
+
method: "_parseGroupListFromblotter_daily_rollup_line",
|
862
|
+
params: __params,
|
863
|
+
cookies: __cookies,
|
864
|
+
is_static: false,
|
865
|
+
};
|
866
|
+
return await doRequest(config);
|
867
|
+
}
|
868
|
+
async _parseBlotterDailyRollup($, blotterBlockEl) {
|
869
|
+
const { __params, __cookies } = formatParams([$, blotterBlockEl], this._cookies);
|
870
|
+
const config = {
|
871
|
+
method: "_parseBlotterDailyRollup",
|
872
|
+
params: __params,
|
873
|
+
cookies: __cookies,
|
874
|
+
is_static: false,
|
875
|
+
};
|
876
|
+
return await doRequest(config);
|
877
|
+
}
|
878
|
+
async _parseBlotterGamepurchase($, blotterBlockEl) {
|
879
|
+
const { __params, __cookies } = formatParams([$, blotterBlockEl], this._cookies);
|
880
|
+
const config = {
|
881
|
+
method: "_parseBlotterGamepurchase",
|
882
|
+
params: __params,
|
883
|
+
cookies: __cookies,
|
884
|
+
is_static: false,
|
885
|
+
};
|
886
|
+
return await doRequest(config);
|
887
|
+
}
|
888
|
+
async getFriendActivity(start_or_url) {
|
889
|
+
const { __params, __cookies } = formatParams([start_or_url], this._cookies);
|
890
|
+
const config = {
|
891
|
+
method: "getFriendActivity",
|
892
|
+
params: __params,
|
893
|
+
cookies: __cookies,
|
894
|
+
is_static: false,
|
895
|
+
};
|
896
|
+
return await doRequest(config);
|
897
|
+
}
|
898
|
+
async commentUserReceivedNewGame({ steamId, threadId, comment }) {
|
899
|
+
const { __params, __cookies } = formatParams([{ steamId, threadId, comment }], this._cookies);
|
900
|
+
const config = {
|
901
|
+
method: "commentUserReceivedNewGame",
|
902
|
+
params: __params,
|
903
|
+
cookies: __cookies,
|
904
|
+
is_static: false,
|
905
|
+
};
|
906
|
+
return await doRequest(config);
|
907
|
+
}
|
908
|
+
async rateUpUserReceivedNewGame({ steamId, threadId }) {
|
909
|
+
const { __params, __cookies } = formatParams([{ steamId, threadId }], this._cookies);
|
910
|
+
const config = {
|
911
|
+
method: "rateUpUserReceivedNewGame",
|
912
|
+
params: __params,
|
913
|
+
cookies: __cookies,
|
914
|
+
is_static: false,
|
915
|
+
};
|
916
|
+
return await doRequest(config);
|
917
|
+
}
|
918
|
+
async deleteCommendUserReceivedNewGame({ steamId, threadId, commendId }) {
|
919
|
+
const { __params, __cookies } = formatParams([{ steamId, threadId, commendId }], this._cookies);
|
920
|
+
const config = {
|
921
|
+
method: "deleteCommendUserReceivedNewGame",
|
922
|
+
params: __params,
|
923
|
+
cookies: __cookies,
|
924
|
+
is_static: false,
|
925
|
+
};
|
926
|
+
return await doRequest(config);
|
927
|
+
}
|
928
|
+
async getFriendActivityFull({ cbOnActivity, cbOnActivities }) {
|
929
|
+
const { __params, __cookies } = formatParams([{ cbOnActivity, cbOnActivities }], this._cookies);
|
930
|
+
const config = {
|
931
|
+
method: "getFriendActivityFull",
|
932
|
+
params: __params,
|
933
|
+
cookies: __cookies,
|
934
|
+
is_static: false,
|
935
|
+
};
|
936
|
+
return await doRequest(config);
|
937
|
+
}
|
938
|
+
async searchSteamUserByName(text, page) {
|
939
|
+
const { __params, __cookies } = formatParams([text, page], this._cookies);
|
940
|
+
const config = {
|
941
|
+
method: "searchSteamUserByName",
|
942
|
+
params: __params,
|
943
|
+
cookies: __cookies,
|
944
|
+
is_static: false,
|
945
|
+
};
|
946
|
+
return await doRequest(config);
|
947
|
+
}
|
948
|
+
async getMyGroupsList() {
|
949
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
950
|
+
const config = {
|
951
|
+
method: "getMyGroupsList",
|
952
|
+
params: __params,
|
953
|
+
cookies: __cookies,
|
954
|
+
is_static: false,
|
955
|
+
};
|
956
|
+
return await doRequest(config);
|
957
|
+
}
|
958
|
+
async getUserGroupsList(steamId) {
|
959
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
960
|
+
const config = {
|
961
|
+
method: "getUserGroupsList",
|
962
|
+
params: __params,
|
963
|
+
cookies: __cookies,
|
964
|
+
is_static: false,
|
965
|
+
};
|
966
|
+
return await doRequest(config);
|
967
|
+
}
|
968
|
+
async getNotifications() {
|
969
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
970
|
+
const config = {
|
971
|
+
method: "getNotifications",
|
972
|
+
params: __params,
|
973
|
+
cookies: __cookies,
|
974
|
+
is_static: false,
|
975
|
+
};
|
976
|
+
return await doRequest(config);
|
977
|
+
}
|
978
|
+
async addFreeLicense(packageID) {
|
979
|
+
const { __params, __cookies } = formatParams([packageID], this._cookies);
|
980
|
+
const config = {
|
981
|
+
method: "addFreeLicense",
|
982
|
+
params: __params,
|
983
|
+
cookies: __cookies,
|
984
|
+
is_static: false,
|
985
|
+
};
|
986
|
+
return await doRequest(config);
|
987
|
+
}
|
988
|
+
async addSubFreeLicense(subid) {
|
989
|
+
const { __params, __cookies } = formatParams([subid], this._cookies);
|
990
|
+
const config = {
|
991
|
+
method: "addSubFreeLicense",
|
992
|
+
params: __params,
|
993
|
+
cookies: __cookies,
|
994
|
+
is_static: false,
|
995
|
+
};
|
996
|
+
return await doRequest(config);
|
997
|
+
}
|
998
|
+
async getCurrentSteamLogin() {
|
999
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1000
|
+
const config = {
|
1001
|
+
method: "getCurrentSteamLogin",
|
1002
|
+
params: __params,
|
1003
|
+
cookies: __cookies,
|
1004
|
+
is_static: false,
|
1005
|
+
};
|
1006
|
+
return await doRequest(config);
|
1007
|
+
}
|
1008
|
+
async setLanguagePreferences() {
|
1009
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1010
|
+
const config = {
|
1011
|
+
method: "setLanguagePreferences",
|
1012
|
+
params: __params,
|
1013
|
+
cookies: __cookies,
|
1014
|
+
is_static: false,
|
1015
|
+
};
|
1016
|
+
return await doRequest(config);
|
1017
|
+
}
|
1018
|
+
async ChangeLanguage() {
|
1019
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1020
|
+
const config = {
|
1021
|
+
method: "ChangeLanguage",
|
1022
|
+
params: __params,
|
1023
|
+
cookies: __cookies,
|
1024
|
+
is_static: false,
|
1025
|
+
};
|
1026
|
+
return await doRequest(config);
|
1027
|
+
}
|
1028
|
+
async getCompetitiveCooldownLevel() {
|
1029
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1030
|
+
const config = {
|
1031
|
+
method: "getCompetitiveCooldownLevel",
|
1032
|
+
params: __params,
|
1033
|
+
cookies: __cookies,
|
1034
|
+
is_static: false,
|
1035
|
+
};
|
1036
|
+
return await doRequest(config);
|
1037
|
+
}
|
1038
|
+
async getPersonalGameDataAccountInformation() {
|
1039
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1040
|
+
const config = {
|
1041
|
+
method: "getPersonalGameDataAccountInformation",
|
1042
|
+
params: __params,
|
1043
|
+
cookies: __cookies,
|
1044
|
+
is_static: false,
|
1045
|
+
};
|
1046
|
+
return await doRequest(config);
|
1047
|
+
}
|
1048
|
+
async resolveUsers(steamIDs) {
|
1049
|
+
const { __params, __cookies } = formatParams([steamIDs], this._cookies);
|
1050
|
+
const config = {
|
1051
|
+
method: "resolveUsers",
|
1052
|
+
params: __params,
|
1053
|
+
cookies: __cookies,
|
1054
|
+
is_static: false,
|
1055
|
+
};
|
1056
|
+
return await doRequest(config);
|
1057
|
+
}
|
1058
|
+
async testFullLanguage(cb) {
|
1059
|
+
const { __params, __cookies } = formatParams([cb], this._cookies);
|
1060
|
+
const config = {
|
1061
|
+
method: "testFullLanguage",
|
1062
|
+
params: __params,
|
1063
|
+
cookies: __cookies,
|
1064
|
+
is_static: false,
|
1065
|
+
};
|
1066
|
+
return await doRequest(config);
|
1067
|
+
}
|
1068
|
+
async testNotYetSetupTextList(steamId) {
|
1069
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1070
|
+
const config = {
|
1071
|
+
method: "testNotYetSetupTextList",
|
1072
|
+
params: __params,
|
1073
|
+
cookies: __cookies,
|
1074
|
+
is_static: false,
|
1075
|
+
};
|
1076
|
+
return await doRequest(config);
|
1077
|
+
}
|
1078
|
+
async testPrivateText(steamId) {
|
1079
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1080
|
+
const config = {
|
1081
|
+
method: "testPrivateText",
|
1082
|
+
params: __params,
|
1083
|
+
cookies: __cookies,
|
1084
|
+
is_static: false,
|
1085
|
+
};
|
1086
|
+
return await doRequest(config);
|
1087
|
+
}
|
1088
|
+
async testGameBan(steamId) {
|
1089
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1090
|
+
const config = {
|
1091
|
+
method: "testGameBan",
|
1092
|
+
params: __params,
|
1093
|
+
cookies: __cookies,
|
1094
|
+
is_static: false,
|
1095
|
+
};
|
1096
|
+
return await doRequest(config);
|
1097
|
+
}
|
1098
|
+
async getSteamGuardStatus() {
|
1099
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1100
|
+
const config = {
|
1101
|
+
method: "getSteamGuardStatus",
|
1102
|
+
params: __params,
|
1103
|
+
cookies: __cookies,
|
1104
|
+
is_static: false,
|
1105
|
+
};
|
1106
|
+
return await doRequest(config);
|
1107
|
+
}
|
1108
|
+
async turningSteamGuardOff() {
|
1109
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1110
|
+
const config = {
|
1111
|
+
method: "turningSteamGuardOff",
|
1112
|
+
params: __params,
|
1113
|
+
cookies: __cookies,
|
1114
|
+
is_static: false,
|
1115
|
+
};
|
1116
|
+
return await doRequest(config);
|
1117
|
+
}
|
1118
|
+
async turningEmailAuthenticatorCheckOn() {
|
1119
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1120
|
+
const config = {
|
1121
|
+
method: "turningEmailAuthenticatorCheckOn",
|
1122
|
+
params: __params,
|
1123
|
+
cookies: __cookies,
|
1124
|
+
is_static: false,
|
1125
|
+
};
|
1126
|
+
return await doRequest(config);
|
1127
|
+
}
|
1128
|
+
async getPhoneManage() {
|
1129
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1130
|
+
const config = {
|
1131
|
+
method: "getPhoneManage",
|
1132
|
+
params: __params,
|
1133
|
+
cookies: __cookies,
|
1134
|
+
is_static: false,
|
1135
|
+
};
|
1136
|
+
return await doRequest(config);
|
1137
|
+
}
|
1138
|
+
async addPhoneNumber(phone) {
|
1139
|
+
const { __params, __cookies } = formatParams([phone], this._cookies);
|
1140
|
+
const config = {
|
1141
|
+
method: "addPhoneNumber",
|
1142
|
+
params: __params,
|
1143
|
+
cookies: __cookies,
|
1144
|
+
is_static: false,
|
1145
|
+
};
|
1146
|
+
return await doRequest(config);
|
1147
|
+
}
|
1148
|
+
async sendOtpConfirmPhoneForAdd() {
|
1149
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1150
|
+
const config = {
|
1151
|
+
method: "sendOtpConfirmPhoneForAdd",
|
1152
|
+
params: __params,
|
1153
|
+
cookies: __cookies,
|
1154
|
+
is_static: false,
|
1155
|
+
};
|
1156
|
+
return await doRequest(config);
|
1157
|
+
}
|
1158
|
+
async confirmPhoneCodeForAdd(code) {
|
1159
|
+
const { __params, __cookies } = formatParams([code], this._cookies);
|
1160
|
+
const config = {
|
1161
|
+
method: "confirmPhoneCodeForAdd",
|
1162
|
+
params: __params,
|
1163
|
+
cookies: __cookies,
|
1164
|
+
is_static: false,
|
1165
|
+
};
|
1166
|
+
return await doRequest(config);
|
1167
|
+
}
|
1168
|
+
async removePhoneNumber() {
|
1169
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1170
|
+
const config = {
|
1171
|
+
method: "removePhoneNumber",
|
1172
|
+
params: __params,
|
1173
|
+
cookies: __cookies,
|
1174
|
+
is_static: false,
|
1175
|
+
};
|
1176
|
+
return await doRequest(config);
|
1177
|
+
}
|
1178
|
+
async removePhoneNumberConfirmOptCode(params, code) {
|
1179
|
+
const { __params, __cookies } = formatParams([params, code], this._cookies);
|
1180
|
+
const config = {
|
1181
|
+
method: "removePhoneNumberConfirmOptCode",
|
1182
|
+
params: __params,
|
1183
|
+
cookies: __cookies,
|
1184
|
+
is_static: false,
|
1185
|
+
};
|
1186
|
+
return await doRequest(config);
|
1187
|
+
}
|
1188
|
+
async getAccountEmail() {
|
1189
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1190
|
+
const config = {
|
1191
|
+
method: "getAccountEmail",
|
1192
|
+
params: __params,
|
1193
|
+
cookies: __cookies,
|
1194
|
+
is_static: false,
|
1195
|
+
};
|
1196
|
+
return await doRequest(config);
|
1197
|
+
}
|
1198
|
+
async getInventory(appID) {
|
1199
|
+
const { __params, __cookies } = formatParams([appID], this._cookies);
|
1200
|
+
const config = {
|
1201
|
+
method: "getInventory",
|
1202
|
+
params: __params,
|
1203
|
+
cookies: __cookies,
|
1204
|
+
is_static: false,
|
1205
|
+
};
|
1206
|
+
return await doRequest(config);
|
1207
|
+
}
|
1208
|
+
async getInventoryTrading(appID, contextid) {
|
1209
|
+
const { __params, __cookies } = formatParams([appID, contextid], this._cookies);
|
1210
|
+
const config = {
|
1211
|
+
method: "getInventoryTrading",
|
1212
|
+
params: __params,
|
1213
|
+
cookies: __cookies,
|
1214
|
+
is_static: false,
|
1215
|
+
};
|
1216
|
+
return await doRequest(config);
|
1217
|
+
}
|
1218
|
+
async getInventoryTradingPartner(appID, partner, contextid) {
|
1219
|
+
const { __params, __cookies } = formatParams([appID, partner, contextid], this._cookies);
|
1220
|
+
const config = {
|
1221
|
+
method: "getInventoryTradingPartner",
|
1222
|
+
params: __params,
|
1223
|
+
cookies: __cookies,
|
1224
|
+
is_static: false,
|
1225
|
+
};
|
1226
|
+
return await doRequest(config);
|
1227
|
+
}
|
1228
|
+
async getFullInventoryHistory() {
|
1229
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1230
|
+
const config = {
|
1231
|
+
method: "getFullInventoryHistory",
|
1232
|
+
params: __params,
|
1233
|
+
cookies: __cookies,
|
1234
|
+
is_static: false,
|
1235
|
+
};
|
1236
|
+
return await doRequest(config);
|
1237
|
+
}
|
1238
|
+
async getInventoryHistory(cursor) {
|
1239
|
+
const { __params, __cookies } = formatParams([cursor], this._cookies);
|
1240
|
+
const config = {
|
1241
|
+
method: "getInventoryHistory",
|
1242
|
+
params: __params,
|
1243
|
+
cookies: __cookies,
|
1244
|
+
is_static: false,
|
1245
|
+
};
|
1246
|
+
return await doRequest(config);
|
1247
|
+
}
|
1248
|
+
async getTradeURL() {
|
1249
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1250
|
+
const config = {
|
1251
|
+
method: "getTradeURL",
|
1252
|
+
params: __params,
|
1253
|
+
cookies: __cookies,
|
1254
|
+
is_static: false,
|
1255
|
+
};
|
1256
|
+
return await doRequest(config);
|
1257
|
+
}
|
1258
|
+
async sendTradeOffer({ tradeURL, myAssets, theirAssets, tradeoffermessage }) {
|
1259
|
+
const { __params, __cookies } = formatParams([{ tradeURL, myAssets, theirAssets, tradeoffermessage }], this._cookies);
|
1260
|
+
const config = {
|
1261
|
+
method: "sendTradeOffer",
|
1262
|
+
params: __params,
|
1263
|
+
cookies: __cookies,
|
1264
|
+
is_static: false,
|
1265
|
+
};
|
1266
|
+
return await doRequest(config);
|
1267
|
+
}
|
1268
|
+
async acceptTradeOffer(tradeOfferID, partnerSteamId) {
|
1269
|
+
const { __params, __cookies } = formatParams([tradeOfferID, partnerSteamId], this._cookies);
|
1270
|
+
const config = {
|
1271
|
+
method: "acceptTradeOffer",
|
1272
|
+
params: __params,
|
1273
|
+
cookies: __cookies,
|
1274
|
+
is_static: false,
|
1275
|
+
};
|
1276
|
+
return await doRequest(config);
|
1277
|
+
}
|
1278
|
+
async declineTradeOffer(tradeOfferID, partnerSteamId) {
|
1279
|
+
const { __params, __cookies } = formatParams([tradeOfferID, partnerSteamId], this._cookies);
|
1280
|
+
const config = {
|
1281
|
+
method: "declineTradeOffer",
|
1282
|
+
params: __params,
|
1283
|
+
cookies: __cookies,
|
1284
|
+
is_static: false,
|
1285
|
+
};
|
1286
|
+
return await doRequest(config);
|
1287
|
+
}
|
1288
|
+
async getTradeOffer() {
|
1289
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1290
|
+
const config = {
|
1291
|
+
method: "getTradeOffer",
|
1292
|
+
params: __params,
|
1293
|
+
cookies: __cookies,
|
1294
|
+
is_static: false,
|
1295
|
+
};
|
1296
|
+
return await doRequest(config);
|
1297
|
+
}
|
1298
|
+
async uploadAvatar(filePath) {
|
1299
|
+
const { __params, __cookies } = formatParams([filePath], this._cookies);
|
1300
|
+
const config = {
|
1301
|
+
method: "uploadAvatar",
|
1302
|
+
params: __params,
|
1303
|
+
cookies: __cookies,
|
1304
|
+
is_static: false,
|
1305
|
+
};
|
1306
|
+
return await doRequest(config);
|
1307
|
+
}
|
1308
|
+
async selectPreviousAvatar(avatarHash) {
|
1309
|
+
const { __params, __cookies } = formatParams([avatarHash], this._cookies);
|
1310
|
+
const config = {
|
1311
|
+
method: "selectPreviousAvatar",
|
1312
|
+
params: __params,
|
1313
|
+
cookies: __cookies,
|
1314
|
+
is_static: false,
|
1315
|
+
};
|
1316
|
+
return await doRequest(config);
|
1317
|
+
}
|
1318
|
+
async getMiniprofile(steamId) {
|
1319
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1320
|
+
const config = {
|
1321
|
+
method: "getMiniprofile",
|
1322
|
+
params: __params,
|
1323
|
+
cookies: __cookies,
|
1324
|
+
is_static: false,
|
1325
|
+
};
|
1326
|
+
return await doRequest(config);
|
1327
|
+
}
|
1328
|
+
async deauthorizeAllDevices() {
|
1329
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1330
|
+
const config = {
|
1331
|
+
method: "deauthorizeAllDevices",
|
1332
|
+
params: __params,
|
1333
|
+
cookies: __cookies,
|
1334
|
+
is_static: false,
|
1335
|
+
};
|
1336
|
+
return await doRequest(config);
|
1337
|
+
}
|
1338
|
+
async getMarketUnavailable() {
|
1339
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1340
|
+
const config = {
|
1341
|
+
method: "getMarketUnavailable",
|
1342
|
+
params: __params,
|
1343
|
+
cookies: __cookies,
|
1344
|
+
is_static: false,
|
1345
|
+
};
|
1346
|
+
return await doRequest(config);
|
1347
|
+
}
|
1348
|
+
async getAmountSpentOnSteam() {
|
1349
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1350
|
+
const config = {
|
1351
|
+
method: "getAmountSpentOnSteam",
|
1352
|
+
params: __params,
|
1353
|
+
cookies: __cookies,
|
1354
|
+
is_static: false,
|
1355
|
+
};
|
1356
|
+
return await doRequest(config);
|
1357
|
+
}
|
1358
|
+
async sellItem({ appid, contextid, assetid, amount, price }) {
|
1359
|
+
const { __params, __cookies } = formatParams([{ appid, contextid, assetid, amount, price }], this._cookies);
|
1360
|
+
const config = {
|
1361
|
+
method: "sellItem",
|
1362
|
+
params: __params,
|
1363
|
+
cookies: __cookies,
|
1364
|
+
is_static: false,
|
1365
|
+
};
|
1366
|
+
return await doRequest(config);
|
1367
|
+
}
|
1368
|
+
async removeListing(id) {
|
1369
|
+
const { __params, __cookies } = formatParams([id], this._cookies);
|
1370
|
+
const config = {
|
1371
|
+
method: "removeListing",
|
1372
|
+
params: __params,
|
1373
|
+
cookies: __cookies,
|
1374
|
+
is_static: false,
|
1375
|
+
};
|
1376
|
+
return await doRequest(config);
|
1377
|
+
}
|
1378
|
+
async getMyListings() {
|
1379
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1380
|
+
const config = {
|
1381
|
+
method: "getMyListings",
|
1382
|
+
params: __params,
|
1383
|
+
cookies: __cookies,
|
1384
|
+
is_static: false,
|
1385
|
+
};
|
1386
|
+
return await doRequest(config);
|
1387
|
+
}
|
1388
|
+
async getMyMarketHistory({ start, count }) {
|
1389
|
+
const { __params, __cookies } = formatParams([{ start, count }], this._cookies);
|
1390
|
+
const config = {
|
1391
|
+
method: "getMyMarketHistory",
|
1392
|
+
params: __params,
|
1393
|
+
cookies: __cookies,
|
1394
|
+
is_static: false,
|
1395
|
+
};
|
1396
|
+
return await doRequest(config);
|
1397
|
+
}
|
1398
|
+
async getPlayerReports(token) {
|
1399
|
+
const { __params, __cookies } = formatParams([token], this._cookies);
|
1400
|
+
const config = {
|
1401
|
+
method: "getPlayerReports",
|
1402
|
+
params: __params,
|
1403
|
+
cookies: __cookies,
|
1404
|
+
is_static: false,
|
1405
|
+
};
|
1406
|
+
return await doRequest(config);
|
1407
|
+
}
|
1408
|
+
async getAllPlayerReports(onPageCb) {
|
1409
|
+
const { __params, __cookies } = formatParams([onPageCb], this._cookies);
|
1410
|
+
const config = {
|
1411
|
+
method: "getAllPlayerReports",
|
1412
|
+
params: __params,
|
1413
|
+
cookies: __cookies,
|
1414
|
+
is_static: false,
|
1415
|
+
};
|
1416
|
+
return await doRequest(config);
|
1417
|
+
}
|
1418
|
+
async beginFileUpload(filePath) {
|
1419
|
+
const { __params, __cookies } = formatParams([filePath], this._cookies);
|
1420
|
+
const config = {
|
1421
|
+
method: "beginFileUpload",
|
1422
|
+
params: __params,
|
1423
|
+
cookies: __cookies,
|
1424
|
+
is_static: false,
|
1425
|
+
};
|
1426
|
+
return await doRequest(config);
|
1427
|
+
}
|
1428
|
+
async doFileUpload({ filePath, beginFileUploadResult }) {
|
1429
|
+
const { __params, __cookies } = formatParams([{ filePath, beginFileUploadResult }], this._cookies);
|
1430
|
+
const config = {
|
1431
|
+
method: "doFileUpload",
|
1432
|
+
params: __params,
|
1433
|
+
cookies: __cookies,
|
1434
|
+
is_static: false,
|
1435
|
+
};
|
1436
|
+
return await doRequest(config);
|
1437
|
+
}
|
1438
|
+
async commitFileUpload({ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }) {
|
1439
|
+
const { __params, __cookies } = formatParams([{ file_name, file_sha, file_image_width, file_image_height, file_type, hmac, timestamp, ugcid, friend_steamid }], this._cookies);
|
1440
|
+
const config = {
|
1441
|
+
method: "commitFileUpload",
|
1442
|
+
params: __params,
|
1443
|
+
cookies: __cookies,
|
1444
|
+
is_static: false,
|
1445
|
+
};
|
1446
|
+
return await doRequest(config);
|
1447
|
+
}
|
1448
|
+
async sendImageMessage({ imagePath, friend_steamid }) {
|
1449
|
+
const { __params, __cookies } = formatParams([{ imagePath, friend_steamid }], this._cookies);
|
1450
|
+
const config = {
|
1451
|
+
method: "sendImageMessage",
|
1452
|
+
params: __params,
|
1453
|
+
cookies: __cookies,
|
1454
|
+
is_static: false,
|
1455
|
+
};
|
1456
|
+
return await doRequest(config);
|
1457
|
+
}
|
1458
|
+
async isAlive() {
|
1459
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1460
|
+
const config = {
|
1461
|
+
method: "isAlive",
|
1462
|
+
params: __params,
|
1463
|
+
cookies: __cookies,
|
1464
|
+
is_static: false,
|
1465
|
+
};
|
1466
|
+
return await doRequest(config);
|
1467
|
+
}
|
1468
|
+
async getAccountDetail() {
|
1469
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1470
|
+
const config = {
|
1471
|
+
method: "getAccountDetail",
|
1472
|
+
params: __params,
|
1473
|
+
cookies: __cookies,
|
1474
|
+
is_static: false,
|
1475
|
+
};
|
1476
|
+
return await doRequest(config);
|
1477
|
+
}
|
1478
|
+
async getFriendSince(steamId) {
|
1479
|
+
const { __params, __cookies } = formatParams([steamId], this._cookies);
|
1480
|
+
const config = {
|
1481
|
+
method: "getFriendSince",
|
1482
|
+
params: __params,
|
1483
|
+
cookies: __cookies,
|
1484
|
+
is_static: false,
|
1485
|
+
};
|
1486
|
+
return await doRequest(config);
|
1487
|
+
}
|
1488
|
+
async getWalletBalance() {
|
1489
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1490
|
+
const config = {
|
1491
|
+
method: "getWalletBalance",
|
1492
|
+
params: __params,
|
1493
|
+
cookies: __cookies,
|
1494
|
+
is_static: false,
|
1495
|
+
};
|
1496
|
+
return await doRequest(config);
|
1497
|
+
}
|
1498
|
+
async acceptConfirmationForObject(accessToken, identitySecret, objectID) {
|
1499
|
+
const { __params, __cookies } = formatParams([accessToken, identitySecret, objectID], this._cookies);
|
1500
|
+
const config = {
|
1501
|
+
method: "acceptConfirmationForObject",
|
1502
|
+
params: __params,
|
1503
|
+
cookies: __cookies,
|
1504
|
+
is_static: false,
|
1505
|
+
};
|
1506
|
+
return await doRequest(config);
|
1507
|
+
}
|
1508
|
+
async denyConfirmationForObject(accessToken, identitySecret, objectID) {
|
1509
|
+
const { __params, __cookies } = formatParams([accessToken, identitySecret, objectID], this._cookies);
|
1510
|
+
const config = {
|
1511
|
+
method: "denyConfirmationForObject",
|
1512
|
+
params: __params,
|
1513
|
+
cookies: __cookies,
|
1514
|
+
is_static: false,
|
1515
|
+
};
|
1516
|
+
return await doRequest(config);
|
1517
|
+
}
|
1518
|
+
async getConfirmations(accessToken, identitySecret) {
|
1519
|
+
const { __params, __cookies } = formatParams([accessToken, identitySecret], this._cookies);
|
1520
|
+
const config = {
|
1521
|
+
method: "getConfirmations",
|
1522
|
+
params: __params,
|
1523
|
+
cookies: __cookies,
|
1524
|
+
is_static: false,
|
1525
|
+
};
|
1526
|
+
return await doRequest(config);
|
1527
|
+
}
|
1528
|
+
async enableTwoFactor(accessToken) {
|
1529
|
+
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1530
|
+
const config = {
|
1531
|
+
method: "enableTwoFactor",
|
1532
|
+
params: __params,
|
1533
|
+
cookies: __cookies,
|
1534
|
+
is_static: false,
|
1535
|
+
};
|
1536
|
+
return await doRequest(config);
|
1537
|
+
}
|
1538
|
+
async finalizeTwoFactor(accessToken, identitySecret, finalizeTwoFactorCode) {
|
1539
|
+
const { __params, __cookies } = formatParams([accessToken, identitySecret, finalizeTwoFactorCode], this._cookies);
|
1540
|
+
const config = {
|
1541
|
+
method: "finalizeTwoFactor",
|
1542
|
+
params: __params,
|
1543
|
+
cookies: __cookies,
|
1544
|
+
is_static: false,
|
1545
|
+
};
|
1546
|
+
return await doRequest(config);
|
1547
|
+
}
|
1548
|
+
async getHelpRequests() {
|
1549
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1550
|
+
const config = {
|
1551
|
+
method: "getHelpRequests",
|
1552
|
+
params: __params,
|
1553
|
+
cookies: __cookies,
|
1554
|
+
is_static: false,
|
1555
|
+
};
|
1556
|
+
return await doRequest(config);
|
1557
|
+
}
|
1558
|
+
async getHelpRequestDetail(id) {
|
1559
|
+
const { __params, __cookies } = formatParams([id], this._cookies);
|
1560
|
+
const config = {
|
1561
|
+
method: "getHelpRequestDetail",
|
1562
|
+
params: __params,
|
1563
|
+
cookies: __cookies,
|
1564
|
+
is_static: false,
|
1565
|
+
};
|
1566
|
+
return await doRequest(config);
|
1567
|
+
}
|
1568
|
+
async getFriendOwnershipForGifting(accessToken) {
|
1569
|
+
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1570
|
+
const config = {
|
1571
|
+
method: "getFriendOwnershipForGifting",
|
1572
|
+
params: __params,
|
1573
|
+
cookies: __cookies,
|
1574
|
+
is_static: false,
|
1575
|
+
};
|
1576
|
+
return await doRequest(config);
|
1577
|
+
}
|
1578
|
+
async getFriendsList_v1(accessToken) {
|
1579
|
+
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1580
|
+
const config = {
|
1581
|
+
method: "getFriendsList_v1",
|
1582
|
+
params: __params,
|
1583
|
+
cookies: __cookies,
|
1584
|
+
is_static: false,
|
1585
|
+
};
|
1586
|
+
return await doRequest(config);
|
1587
|
+
}
|
1588
|
+
async getPlayerLinkDetails(accessToken, steamIds) {
|
1589
|
+
const { __params, __cookies } = formatParams([accessToken, steamIds], this._cookies);
|
1590
|
+
const config = {
|
1591
|
+
method: "getPlayerLinkDetails",
|
1592
|
+
params: __params,
|
1593
|
+
cookies: __cookies,
|
1594
|
+
is_static: false,
|
1595
|
+
};
|
1596
|
+
return await doRequest(config);
|
1597
|
+
}
|
1598
|
+
async getFriendsGameplayInfo(accessToken, appId) {
|
1599
|
+
const { __params, __cookies } = formatParams([accessToken, appId], this._cookies);
|
1600
|
+
const config = {
|
1601
|
+
method: "getFriendsGameplayInfo",
|
1602
|
+
params: __params,
|
1603
|
+
cookies: __cookies,
|
1604
|
+
is_static: false,
|
1605
|
+
};
|
1606
|
+
return await doRequest(config);
|
1607
|
+
}
|
1608
|
+
async getRecentMessages(accessToken, steamId) {
|
1609
|
+
const { __params, __cookies } = formatParams([accessToken, steamId], this._cookies);
|
1610
|
+
const config = {
|
1611
|
+
method: "getRecentMessages",
|
1612
|
+
params: __params,
|
1613
|
+
cookies: __cookies,
|
1614
|
+
is_static: false,
|
1615
|
+
};
|
1616
|
+
return await doRequest(config);
|
1617
|
+
}
|
1618
|
+
async getPurchaseHistory() {
|
1619
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1620
|
+
const config = {
|
1621
|
+
method: "getPurchaseHistory",
|
1622
|
+
params: __params,
|
1623
|
+
cookies: __cookies,
|
1624
|
+
is_static: false,
|
1625
|
+
};
|
1626
|
+
return await doRequest(config);
|
1627
|
+
}
|
1628
|
+
async getActiveInventories() {
|
1629
|
+
const { __params, __cookies } = formatParams([], this._cookies);
|
1630
|
+
const config = {
|
1631
|
+
method: "getActiveInventories",
|
1632
|
+
params: __params,
|
1633
|
+
cookies: __cookies,
|
1634
|
+
is_static: false,
|
1635
|
+
};
|
1636
|
+
return await doRequest(config);
|
1637
|
+
}
|
1638
|
+
async redeemWalletCode(wallet_code) {
|
1639
|
+
const { __params, __cookies } = formatParams([wallet_code], this._cookies);
|
1640
|
+
const config = {
|
1641
|
+
method: "redeemWalletCode",
|
1642
|
+
params: __params,
|
1643
|
+
cookies: __cookies,
|
1644
|
+
is_static: false,
|
1645
|
+
};
|
1646
|
+
return await doRequest(config);
|
1647
|
+
}
|
1648
|
+
async enumerateTokens(accessToken) {
|
1649
|
+
const { __params, __cookies } = formatParams([accessToken], this._cookies);
|
1650
|
+
const config = {
|
1651
|
+
method: "enumerateTokens",
|
1652
|
+
params: __params,
|
1653
|
+
cookies: __cookies,
|
1654
|
+
is_static: false,
|
1655
|
+
};
|
1656
|
+
return await doRequest(config);
|
1657
|
+
}
|
1658
|
+
async hasToken(accessToken, tokenId) {
|
1659
|
+
const { __params, __cookies } = formatParams([accessToken, tokenId], this._cookies);
|
1660
|
+
const config = {
|
1661
|
+
method: "hasToken",
|
1662
|
+
params: __params,
|
1663
|
+
cookies: __cookies,
|
1664
|
+
is_static: false,
|
1665
|
+
};
|
1666
|
+
return await doRequest(config);
|
1667
|
+
}
|
1668
|
+
async enumerateTokenLastSeenMs(accessToken, platform_type) {
|
1669
|
+
const { __params, __cookies } = formatParams([accessToken, platform_type], this._cookies);
|
1670
|
+
const config = {
|
1671
|
+
method: "enumerateTokenLastSeenMs",
|
1672
|
+
params: __params,
|
1673
|
+
cookies: __cookies,
|
1674
|
+
is_static: false,
|
1675
|
+
};
|
1676
|
+
return await doRequest(config);
|
1677
|
+
}
|
1678
|
+
async queryRefreshTokenByID(accessToken, tokenId) {
|
1679
|
+
const { __params, __cookies } = formatParams([accessToken, tokenId], this._cookies);
|
1680
|
+
const config = {
|
1681
|
+
method: "queryRefreshTokenByID",
|
1682
|
+
params: __params,
|
1683
|
+
cookies: __cookies,
|
1684
|
+
is_static: false,
|
1685
|
+
};
|
1686
|
+
return await doRequest(config);
|
1687
|
+
}
|
1688
|
+
async revokeAccessToken(accessToken, tokenId, sharedSecret) {
|
1689
|
+
const { __params, __cookies } = formatParams([accessToken, tokenId, sharedSecret], this._cookies);
|
1690
|
+
const config = {
|
1691
|
+
method: "revokeAccessToken",
|
1692
|
+
params: __params,
|
1693
|
+
cookies: __cookies,
|
1694
|
+
is_static: false,
|
1695
|
+
};
|
1696
|
+
return await doRequest(config);
|
1697
|
+
}
|
1698
|
+
async changeEmail(newEmail, getNewEmailOptCodes, accessToken, identitySecret) {
|
1699
|
+
const { __params, __cookies } = formatParams([newEmail, getNewEmailOptCodes, accessToken, identitySecret], this._cookies);
|
1700
|
+
const config = {
|
1701
|
+
method: "changeEmail",
|
1702
|
+
params: __params,
|
1703
|
+
cookies: __cookies,
|
1704
|
+
is_static: false,
|
1705
|
+
};
|
1706
|
+
return await doRequest(config);
|
1707
|
+
}
|
1708
|
+
async sendMessage({ steamId, content, accessToken }) {
|
1709
|
+
const { __params, __cookies } = formatParams([{ steamId, content, accessToken }], this._cookies);
|
1710
|
+
const config = {
|
1711
|
+
method: "sendMessage",
|
1712
|
+
params: __params,
|
1713
|
+
cookies: __cookies,
|
1714
|
+
is_static: false,
|
1715
|
+
};
|
1716
|
+
return await doRequest(config);
|
1717
|
+
}
|
1718
|
+
static async parseCookie(cookies) {
|
1719
|
+
const { __params, __cookies } = formatParams([cookies]);
|
1720
|
+
const config = {
|
1721
|
+
method: "parseCookie",
|
1722
|
+
params: __params,
|
1723
|
+
is_static: true,
|
1724
|
+
};
|
1725
|
+
return await doRequest(config);
|
1726
|
+
}
|
1727
|
+
static async generateCookie({ steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, sessionid, Steam_Language }) {
|
1728
|
+
const { __params, __cookies } = formatParams([{ steamMachineAuth, steamLoginSecure, steamRememberLogin, steamId, sessionid, Steam_Language }]);
|
1729
|
+
const config = {
|
1730
|
+
method: "generateCookie",
|
1731
|
+
params: __params,
|
1732
|
+
is_static: true,
|
1733
|
+
};
|
1734
|
+
return await doRequest(config);
|
1735
|
+
}
|
1736
|
+
static async getUserSummary(steamId, parts, cookie) {
|
1737
|
+
const { __params, __cookies } = formatParams([steamId, parts, cookie]);
|
1738
|
+
const config = {
|
1739
|
+
method: "getUserSummary",
|
1740
|
+
params: __params,
|
1741
|
+
is_static: true,
|
1742
|
+
};
|
1743
|
+
return await doRequest(config);
|
1744
|
+
}
|
1745
|
+
static async getUserSummaryFromXML(steamId) {
|
1746
|
+
const { __params, __cookies } = formatParams([steamId]);
|
1747
|
+
const config = {
|
1748
|
+
method: "getUserSummaryFromXML",
|
1749
|
+
params: __params,
|
1750
|
+
is_static: true,
|
1751
|
+
};
|
1752
|
+
return await doRequest(config);
|
1753
|
+
}
|
1754
|
+
static async _parseSummaryFromXML(resultXml) {
|
1755
|
+
const { __params, __cookies } = formatParams([resultXml]);
|
1756
|
+
const config = {
|
1757
|
+
method: "_parseSummaryFromXML",
|
1758
|
+
params: __params,
|
1759
|
+
is_static: true,
|
1760
|
+
};
|
1761
|
+
return await doRequest(config);
|
1762
|
+
}
|
1763
|
+
static async getUserSummaryFromProfile(steamId, cookie) {
|
1764
|
+
const { __params, __cookies } = formatParams([steamId, cookie]);
|
1765
|
+
const config = {
|
1766
|
+
method: "getUserSummaryFromProfile",
|
1767
|
+
params: __params,
|
1768
|
+
is_static: true,
|
1769
|
+
};
|
1770
|
+
return await doRequest(config);
|
1771
|
+
}
|
1772
|
+
static async _formatSummary(summary) {
|
1773
|
+
const { __params, __cookies } = formatParams([summary]);
|
1774
|
+
const config = {
|
1775
|
+
method: "_formatSummary",
|
1776
|
+
params: __params,
|
1777
|
+
is_static: true,
|
1778
|
+
};
|
1779
|
+
return await doRequest(config);
|
1780
|
+
}
|
1781
|
+
static async _parseUserProfile(html) {
|
1782
|
+
const { __params, __cookies } = formatParams([html]);
|
1783
|
+
const config = {
|
1784
|
+
method: "_parseUserProfile",
|
1785
|
+
params: __params,
|
1786
|
+
is_static: true,
|
1787
|
+
};
|
1788
|
+
return await doRequest(config);
|
1789
|
+
}
|
1790
|
+
static async getUsersSummaryByWebApiKey(webApiKey, steamIds) {
|
1791
|
+
const { __params, __cookies } = formatParams([webApiKey, steamIds]);
|
1792
|
+
const config = {
|
1793
|
+
method: "getUsersSummaryByWebApiKey",
|
1794
|
+
params: __params,
|
1795
|
+
is_static: true,
|
1796
|
+
};
|
1797
|
+
return await doRequest(config);
|
1798
|
+
}
|
1799
|
+
static async getUserFriendListByWebApiKey(webApiKey, steamId) {
|
1800
|
+
const { __params, __cookies } = formatParams([webApiKey, steamId]);
|
1801
|
+
const config = {
|
1802
|
+
method: "getUserFriendListByWebApiKey",
|
1803
|
+
params: __params,
|
1804
|
+
is_static: true,
|
1805
|
+
};
|
1806
|
+
return await doRequest(config);
|
1807
|
+
}
|
1808
|
+
static async queryLocations() {
|
1809
|
+
const { __params, __cookies } = formatParams([]);
|
1810
|
+
const config = {
|
1811
|
+
method: "queryLocations",
|
1812
|
+
params: __params,
|
1813
|
+
is_static: true,
|
1814
|
+
};
|
1815
|
+
return await doRequest(config);
|
1816
|
+
}
|
1817
|
+
static async queryAppList(term) {
|
1818
|
+
const { __params, __cookies } = formatParams([term]);
|
1819
|
+
const config = {
|
1820
|
+
method: "queryAppList",
|
1821
|
+
params: __params,
|
1822
|
+
is_static: true,
|
1823
|
+
};
|
1824
|
+
return await doRequest(config);
|
1825
|
+
}
|
1826
|
+
static async suggestAppList(term) {
|
1827
|
+
const { __params, __cookies } = formatParams([term]);
|
1828
|
+
const config = {
|
1829
|
+
method: "suggestAppList",
|
1830
|
+
params: __params,
|
1831
|
+
is_static: true,
|
1832
|
+
};
|
1833
|
+
return await doRequest(config);
|
1834
|
+
}
|
1835
|
+
static async steamID642Miniprofile(steamId) {
|
1836
|
+
const { __params, __cookies } = formatParams([steamId]);
|
1837
|
+
const config = {
|
1838
|
+
method: "steamID642Miniprofile",
|
1839
|
+
params: __params,
|
1840
|
+
is_static: true,
|
1841
|
+
};
|
1842
|
+
return await doRequest(config);
|
1843
|
+
}
|
1844
|
+
static async miniprofile2SteamID64(miniprofile) {
|
1845
|
+
const { __params, __cookies } = formatParams([miniprofile]);
|
1846
|
+
const config = {
|
1847
|
+
method: "miniprofile2SteamID64",
|
1848
|
+
params: __params,
|
1849
|
+
is_static: true,
|
1850
|
+
};
|
1851
|
+
return await doRequest(config);
|
1852
|
+
}
|
1853
|
+
static async groupminiid2SteamID64(miniid) {
|
1854
|
+
const { __params, __cookies } = formatParams([miniid]);
|
1855
|
+
const config = {
|
1856
|
+
method: "groupminiid2SteamID64",
|
1857
|
+
params: __params,
|
1858
|
+
is_static: true,
|
1859
|
+
};
|
1860
|
+
return await doRequest(config);
|
1861
|
+
}
|
1862
|
+
static async getCustomURL_from_ProfileURL(profileURL) {
|
1863
|
+
const { __params, __cookies } = formatParams([profileURL]);
|
1864
|
+
const config = {
|
1865
|
+
method: "getCustomURL_from_ProfileURL",
|
1866
|
+
params: __params,
|
1867
|
+
is_static: true,
|
1868
|
+
};
|
1869
|
+
return await doRequest(config);
|
1870
|
+
}
|
1871
|
+
static async getProfileURL_from_CustomURL(customURL) {
|
1872
|
+
const { __params, __cookies } = formatParams([customURL]);
|
1873
|
+
const config = {
|
1874
|
+
method: "getProfileURL_from_CustomURL",
|
1875
|
+
params: __params,
|
1876
|
+
is_static: true,
|
1877
|
+
};
|
1878
|
+
return await doRequest(config);
|
1879
|
+
}
|
1880
|
+
static async getAppList() {
|
1881
|
+
const { __params, __cookies } = formatParams([]);
|
1882
|
+
const config = {
|
1883
|
+
method: "getAppList",
|
1884
|
+
params: __params,
|
1885
|
+
is_static: true,
|
1886
|
+
};
|
1887
|
+
return await doRequest(config);
|
1888
|
+
}
|
1889
|
+
static async getAppDetail(appIds) {
|
1890
|
+
const { __params, __cookies } = formatParams([appIds]);
|
1891
|
+
const config = {
|
1892
|
+
method: "getAppDetail",
|
1893
|
+
params: __params,
|
1894
|
+
is_static: true,
|
1895
|
+
};
|
1896
|
+
return await doRequest(config);
|
1897
|
+
}
|
1898
|
+
static async getAppVersion(appID) {
|
1899
|
+
const { __params, __cookies } = formatParams([appID]);
|
1900
|
+
const config = {
|
1901
|
+
method: "getAppVersion",
|
1902
|
+
params: __params,
|
1903
|
+
is_static: true,
|
1904
|
+
};
|
1905
|
+
return await doRequest(config);
|
1906
|
+
}
|
1907
|
+
static async generateSessionID() {
|
1908
|
+
const { __params, __cookies } = formatParams([]);
|
1909
|
+
const config = {
|
1910
|
+
method: "generateSessionID",
|
1911
|
+
params: __params,
|
1912
|
+
is_static: true,
|
1913
|
+
};
|
1914
|
+
return await doRequest(config);
|
1915
|
+
}
|
1916
|
+
static async communityLogin({ username, password, emailauth, cookie, steamMachineAuth }) {
|
1917
|
+
const { __params, __cookies } = formatParams([{ username, password, emailauth, cookie, steamMachineAuth }]);
|
1918
|
+
const config = {
|
1919
|
+
method: "communityLogin",
|
1920
|
+
params: __params,
|
1921
|
+
is_static: true,
|
1922
|
+
};
|
1923
|
+
return await doRequest(config);
|
1924
|
+
}
|
1925
|
+
static async getrsakey(username) {
|
1926
|
+
const { __params, __cookies } = formatParams([username]);
|
1927
|
+
const config = {
|
1928
|
+
method: "getrsakey",
|
1929
|
+
params: __params,
|
1930
|
+
is_static: true,
|
1931
|
+
};
|
1932
|
+
return await doRequest(config);
|
1933
|
+
}
|
1934
|
+
static async oAuthLogin(steamguard, access_token) {
|
1935
|
+
const { __params, __cookies } = formatParams([steamguard, access_token]);
|
1936
|
+
const config = {
|
1937
|
+
method: "oAuthLogin",
|
1938
|
+
params: __params,
|
1939
|
+
is_static: true,
|
1940
|
+
};
|
1941
|
+
return await doRequest(config);
|
1942
|
+
}
|
1943
|
+
static async _isPlsLoginFirst(data) {
|
1944
|
+
const { __params, __cookies } = formatParams([data]);
|
1945
|
+
const config = {
|
1946
|
+
method: "_isPlsLoginFirst",
|
1947
|
+
params: __params,
|
1948
|
+
is_static: true,
|
1949
|
+
};
|
1950
|
+
return await doRequest(config);
|
1951
|
+
}
|
1952
|
+
static async _httpRequestXML(link) {
|
1953
|
+
const { __params, __cookies } = formatParams([link]);
|
1954
|
+
const config = {
|
1955
|
+
method: "_httpRequestXML",
|
1956
|
+
params: __params,
|
1957
|
+
is_static: true,
|
1958
|
+
};
|
1959
|
+
return await doRequest(config);
|
1960
|
+
}
|
1961
|
+
static async _formatGroupLink({ link, gid, groupURL, page, content_only, searchKey, pathname }) {
|
1962
|
+
const { __params, __cookies } = formatParams([{ link, gid, groupURL, page, content_only, searchKey, pathname }]);
|
1963
|
+
const config = {
|
1964
|
+
method: "_formatGroupLink",
|
1965
|
+
params: __params,
|
1966
|
+
is_static: true,
|
1967
|
+
};
|
1968
|
+
return await doRequest(config);
|
1969
|
+
}
|
1970
|
+
static async _parseGroupInfo(html) {
|
1971
|
+
const { __params, __cookies } = formatParams([html]);
|
1972
|
+
const config = {
|
1973
|
+
method: "_parseGroupInfo",
|
1974
|
+
params: __params,
|
1975
|
+
is_static: true,
|
1976
|
+
};
|
1977
|
+
return await doRequest(config);
|
1978
|
+
}
|
1979
|
+
static async getGroupOverview({ groupURL, gid, page, cookie, link, content_only, searchKey }) {
|
1980
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, page, cookie, link, content_only, searchKey }]);
|
1981
|
+
const config = {
|
1982
|
+
method: "getGroupOverview",
|
1983
|
+
params: __params,
|
1984
|
+
is_static: true,
|
1985
|
+
};
|
1986
|
+
return await doRequest(config);
|
1987
|
+
}
|
1988
|
+
static async getGroupMembers({ groupURL, gid, page, cookie, link, content_only, searchKey }) {
|
1989
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, page, cookie, link, content_only, searchKey }]);
|
1990
|
+
const config = {
|
1991
|
+
method: "getGroupMembers",
|
1992
|
+
params: __params,
|
1993
|
+
is_static: true,
|
1994
|
+
};
|
1995
|
+
return await doRequest(config);
|
1996
|
+
}
|
1997
|
+
static async getGroupMembersFull({ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }) {
|
1998
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, cookie, cbOnMember, cbOnMembers, content_only, searchKey }]);
|
1999
|
+
const config = {
|
2000
|
+
method: "getGroupMembersFull",
|
2001
|
+
params: __params,
|
2002
|
+
is_static: true,
|
2003
|
+
};
|
2004
|
+
return await doRequest(config);
|
2005
|
+
}
|
2006
|
+
static async getGroupInfoXML({ groupURL, gid, page, link }) {
|
2007
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, page, link }]);
|
2008
|
+
const config = {
|
2009
|
+
method: "getGroupInfoXML",
|
2010
|
+
params: __params,
|
2011
|
+
is_static: true,
|
2012
|
+
};
|
2013
|
+
return await doRequest(config);
|
2014
|
+
}
|
2015
|
+
static async getGroupInfoXMLFull({ groupURL, gid, cbOnMembers }) {
|
2016
|
+
const { __params, __cookies } = formatParams([{ groupURL, gid, cbOnMembers }]);
|
2017
|
+
const config = {
|
2018
|
+
method: "getGroupInfoXMLFull",
|
2019
|
+
params: __params,
|
2020
|
+
is_static: true,
|
2021
|
+
};
|
2022
|
+
return await doRequest(config);
|
2023
|
+
}
|
2024
|
+
static async _parsePendingFriendList(html, selector) {
|
2025
|
+
const { __params, __cookies } = formatParams([html, selector]);
|
2026
|
+
const config = {
|
2027
|
+
method: "_parsePendingFriendList",
|
2028
|
+
params: __params,
|
2029
|
+
is_static: true,
|
2030
|
+
};
|
2031
|
+
return await doRequest(config);
|
2032
|
+
}
|
2033
|
+
static async _parseMatchHistory(html) {
|
2034
|
+
const { __params, __cookies } = formatParams([html]);
|
2035
|
+
const config = {
|
2036
|
+
method: "_parseMatchHistory",
|
2037
|
+
params: __params,
|
2038
|
+
is_static: true,
|
2039
|
+
};
|
2040
|
+
return await doRequest(config);
|
2041
|
+
}
|
2042
|
+
static async _formatPrivacySettings2String(privacySettings) {
|
2043
|
+
const { __params, __cookies } = formatParams([privacySettings]);
|
2044
|
+
const config = {
|
2045
|
+
method: "_formatPrivacySettings2String",
|
2046
|
+
params: __params,
|
2047
|
+
is_static: true,
|
2048
|
+
};
|
2049
|
+
return await doRequest(config);
|
2050
|
+
}
|
2051
|
+
static async _formatPrivacySettings2Value(privacySettings) {
|
2052
|
+
const { __params, __cookies } = formatParams([privacySettings]);
|
2053
|
+
const config = {
|
2054
|
+
method: "_formatPrivacySettings2Value",
|
2055
|
+
params: __params,
|
2056
|
+
is_static: true,
|
2057
|
+
};
|
2058
|
+
return await doRequest(config);
|
2059
|
+
}
|
2060
|
+
static async getUserGroupsList(steamId, cookie) {
|
2061
|
+
const { __params, __cookies } = formatParams([steamId, cookie]);
|
2062
|
+
const config = {
|
2063
|
+
method: "getUserGroupsList",
|
2064
|
+
params: __params,
|
2065
|
+
is_static: true,
|
2066
|
+
};
|
2067
|
+
return await doRequest(config);
|
2068
|
+
}
|
2069
|
+
static async _parseUserGroupList(html) {
|
2070
|
+
const { __params, __cookies } = formatParams([html]);
|
2071
|
+
const config = {
|
2072
|
+
method: "_parseUserGroupList",
|
2073
|
+
params: __params,
|
2074
|
+
is_static: true,
|
2075
|
+
};
|
2076
|
+
return await doRequest(config);
|
2077
|
+
}
|
2078
|
+
static async resolveUsers(steamIDs, cookie) {
|
2079
|
+
const { __params, __cookies } = formatParams([steamIDs, cookie]);
|
2080
|
+
const config = {
|
2081
|
+
method: "resolveUsers",
|
2082
|
+
params: __params,
|
2083
|
+
is_static: true,
|
2084
|
+
};
|
2085
|
+
return await doRequest(config);
|
2086
|
+
}
|
2087
|
+
static async GetAvatarURLFromHash(hash, size) {
|
2088
|
+
const { __params, __cookies } = formatParams([hash, size]);
|
2089
|
+
const config = {
|
2090
|
+
method: "GetAvatarURLFromHash",
|
2091
|
+
params: __params,
|
2092
|
+
is_static: true,
|
2093
|
+
};
|
2094
|
+
return await doRequest(config);
|
2095
|
+
}
|
2096
|
+
static async GetAvatarHashFromURL(url) {
|
2097
|
+
const { __params, __cookies } = formatParams([url]);
|
2098
|
+
const config = {
|
2099
|
+
method: "GetAvatarHashFromURL",
|
2100
|
+
params: __params,
|
2101
|
+
is_static: true,
|
2102
|
+
};
|
2103
|
+
return await doRequest(config);
|
2104
|
+
}
|
2105
|
+
static async GetAvatarHashFromMultipleURL(urls) {
|
2106
|
+
const { __params, __cookies } = formatParams([urls]);
|
2107
|
+
const config = {
|
2108
|
+
method: "GetAvatarHashFromMultipleURL",
|
2109
|
+
params: __params,
|
2110
|
+
is_static: true,
|
2111
|
+
};
|
2112
|
+
return await doRequest(config);
|
2113
|
+
}
|
2114
|
+
static async createFriendCode(steamId) {
|
2115
|
+
const { __params, __cookies } = formatParams([steamId]);
|
2116
|
+
const config = {
|
2117
|
+
method: "createFriendCode",
|
2118
|
+
params: __params,
|
2119
|
+
is_static: true,
|
2120
|
+
};
|
2121
|
+
return await doRequest(config);
|
2122
|
+
}
|
2123
|
+
static async parseFriendCode(friendCode) {
|
2124
|
+
const { __params, __cookies } = formatParams([friendCode]);
|
2125
|
+
const config = {
|
2126
|
+
method: "parseFriendCode",
|
2127
|
+
params: __params,
|
2128
|
+
is_static: true,
|
2129
|
+
};
|
2130
|
+
return await doRequest(config);
|
2131
|
+
}
|
2132
|
+
static async _formatString2Int(text) {
|
2133
|
+
const { __params, __cookies } = formatParams([text]);
|
2134
|
+
const config = {
|
2135
|
+
method: "_formatString2Int",
|
2136
|
+
params: __params,
|
2137
|
+
is_static: true,
|
2138
|
+
};
|
2139
|
+
return await doRequest(config);
|
2140
|
+
}
|
2141
|
+
static async confirmEmailForAdd(confirmURL) {
|
2142
|
+
const { __params, __cookies } = formatParams([confirmURL]);
|
2143
|
+
const config = {
|
2144
|
+
method: "confirmEmailForAdd",
|
2145
|
+
params: __params,
|
2146
|
+
is_static: true,
|
2147
|
+
};
|
2148
|
+
return await doRequest(config);
|
2149
|
+
}
|
2150
|
+
static async parseGameBanType(gameBanFull) {
|
2151
|
+
const { __params, __cookies } = formatParams([gameBanFull]);
|
2152
|
+
const config = {
|
2153
|
+
method: "parseGameBanType",
|
2154
|
+
params: __params,
|
2155
|
+
is_static: true,
|
2156
|
+
};
|
2157
|
+
return await doRequest(config);
|
2158
|
+
}
|
2159
|
+
static async getPriceOverview(appID, market_hash_name) {
|
2160
|
+
const { __params, __cookies } = formatParams([appID, market_hash_name]);
|
2161
|
+
const config = {
|
2162
|
+
method: "getPriceOverview",
|
2163
|
+
params: __params,
|
2164
|
+
is_static: true,
|
2165
|
+
};
|
2166
|
+
return await doRequest(config);
|
2167
|
+
}
|
2168
|
+
static async parseTradeURL(tradeURL) {
|
2169
|
+
const { __params, __cookies } = formatParams([tradeURL]);
|
2170
|
+
const config = {
|
2171
|
+
method: "parseTradeURL",
|
2172
|
+
params: __params,
|
2173
|
+
is_static: true,
|
2174
|
+
};
|
2175
|
+
return await doRequest(config);
|
2176
|
+
}
|
2177
|
+
static async isCookieAlive(cookie) {
|
2178
|
+
const { __params, __cookies } = formatParams([cookie]);
|
2179
|
+
const config = {
|
2180
|
+
method: "isCookieAlive",
|
2181
|
+
params: __params,
|
2182
|
+
is_static: true,
|
2183
|
+
};
|
2184
|
+
return await doRequest(config);
|
2185
|
+
}
|
2186
|
+
static async getItemOrdersHistogram(appID, market_hash_name, item_nameid) {
|
2187
|
+
const { __params, __cookies } = formatParams([appID, market_hash_name, item_nameid]);
|
2188
|
+
const config = {
|
2189
|
+
method: "getItemOrdersHistogram",
|
2190
|
+
params: __params,
|
2191
|
+
is_static: true,
|
2192
|
+
};
|
2193
|
+
return await doRequest(config);
|
2194
|
+
}
|
2195
|
+
static async fetchAccessToken(cookie) {
|
2196
|
+
const { __params, __cookies } = formatParams([cookie]);
|
2197
|
+
const config = {
|
2198
|
+
method: "fetchAccessToken",
|
2199
|
+
params: __params,
|
2200
|
+
is_static: true,
|
2201
|
+
};
|
2202
|
+
return await doRequest(config);
|
2203
|
+
}
|
2204
|
+
static async parseWizardPageParams(html) {
|
2205
|
+
const { __params, __cookies } = formatParams([html]);
|
2206
|
+
const config = {
|
2207
|
+
method: "parseWizardPageParams",
|
2208
|
+
params: __params,
|
2209
|
+
is_static: true,
|
2210
|
+
};
|
2211
|
+
return await doRequest(config);
|
2212
|
+
}
|
2213
|
+
static async decodeQRImage(imageURL) {
|
2214
|
+
const { __params, __cookies } = formatParams([imageURL]);
|
2215
|
+
const config = {
|
2216
|
+
method: "decodeQRImage",
|
2217
|
+
params: __params,
|
2218
|
+
is_static: true,
|
2219
|
+
};
|
2220
|
+
return await doRequest(config);
|
2221
|
+
}
|
2222
|
+
static async approveLoginRequest(steamId, url, sharedSecret, accessToken) {
|
2223
|
+
const { __params, __cookies } = formatParams([steamId, url, sharedSecret, accessToken]);
|
2224
|
+
const config = {
|
2225
|
+
method: "approveLoginRequest",
|
2226
|
+
params: __params,
|
2227
|
+
is_static: true,
|
2228
|
+
};
|
2229
|
+
return await doRequest(config);
|
2230
|
+
}
|
2231
|
+
static async getAuthSessionInfo(steamId, url, sharedSecret, accessToken) {
|
2232
|
+
const { __params, __cookies } = formatParams([steamId, url, sharedSecret, accessToken]);
|
2233
|
+
const config = {
|
2234
|
+
method: "getAuthSessionInfo",
|
2235
|
+
params: __params,
|
2236
|
+
is_static: true,
|
2237
|
+
};
|
2238
|
+
return await doRequest(config);
|
2239
|
+
}
|
2240
|
+
}
|