steamutils 1.4.80 → 1.4.82

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