@steamsets/client-ts 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +75 -9
  2. package/docs/sdks/account/README.md +383 -76
  3. package/docs/sdks/data/README.md +473 -0
  4. package/docs/sdks/location/README.md +80 -0
  5. package/docs/sdks/public/README.md +399 -0
  6. package/docs/sdks/session/README.md +62 -62
  7. package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
  8. package/funcs/accountAccountV1GetApps.js +4 -0
  9. package/funcs/accountAccountV1GetApps.js.map +1 -1
  10. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
  11. package/funcs/accountAccountV1GetBadges.js +4 -0
  12. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  13. package/funcs/accountAccountV1GetFriends.d.ts +13 -0
  14. package/funcs/accountAccountV1GetFriends.d.ts.map +1 -0
  15. package/funcs/accountAccountV1GetFriends.js +105 -0
  16. package/funcs/accountAccountV1GetFriends.js.map +1 -0
  17. package/funcs/accountAccountV1GetInfo.d.ts +14 -0
  18. package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
  19. package/funcs/accountAccountV1GetInfo.js +96 -0
  20. package/funcs/accountAccountV1GetInfo.js.map +1 -0
  21. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +13 -0
  22. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  23. package/funcs/accountAccountV1GetLeaderboardHistory.js +105 -0
  24. package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -0
  25. package/funcs/accountAccountV1GetStaff.d.ts +13 -0
  26. package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
  27. package/funcs/accountAccountV1GetStaff.js +86 -0
  28. package/funcs/accountAccountV1GetStaff.js.map +1 -0
  29. package/funcs/accountAccountV1SessionCreate.js +1 -1
  30. package/funcs/accountAccountV1SessionLogin.js +2 -2
  31. package/funcs/accountAccountV1SessionLogin.js.map +1 -1
  32. package/funcs/dataAccountV1GetApps.d.ts +13 -0
  33. package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
  34. package/funcs/dataAccountV1GetApps.js +105 -0
  35. package/funcs/dataAccountV1GetApps.js.map +1 -0
  36. package/funcs/dataAccountV1GetBadges.d.ts +13 -0
  37. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
  38. package/funcs/dataAccountV1GetBadges.js +105 -0
  39. package/funcs/dataAccountV1GetBadges.js.map +1 -0
  40. package/funcs/dataAccountV1GetFriends.d.ts +13 -0
  41. package/funcs/dataAccountV1GetFriends.d.ts.map +1 -0
  42. package/funcs/dataAccountV1GetFriends.js +105 -0
  43. package/funcs/dataAccountV1GetFriends.js.map +1 -0
  44. package/funcs/dataAccountV1GetInfo.d.ts +14 -0
  45. package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
  46. package/funcs/dataAccountV1GetInfo.js +96 -0
  47. package/funcs/dataAccountV1GetInfo.js.map +1 -0
  48. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +13 -0
  49. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  50. package/funcs/dataAccountV1GetLeaderboardHistory.js +105 -0
  51. package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -0
  52. package/funcs/dataAccountV1GetStaff.d.ts +13 -0
  53. package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
  54. package/funcs/dataAccountV1GetStaff.js +86 -0
  55. package/funcs/dataAccountV1GetStaff.js.map +1 -0
  56. package/funcs/locationLocation.d.ts +16 -0
  57. package/funcs/locationLocation.d.ts.map +1 -0
  58. package/funcs/locationLocation.js +87 -0
  59. package/funcs/locationLocation.js.map +1 -0
  60. package/funcs/publicAccountV1GetApps.d.ts +13 -0
  61. package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
  62. package/funcs/publicAccountV1GetApps.js +105 -0
  63. package/funcs/publicAccountV1GetApps.js.map +1 -0
  64. package/funcs/publicAccountV1GetBadges.d.ts +13 -0
  65. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
  66. package/funcs/publicAccountV1GetBadges.js +105 -0
  67. package/funcs/publicAccountV1GetBadges.js.map +1 -0
  68. package/funcs/publicAccountV1GetFriends.d.ts +13 -0
  69. package/funcs/publicAccountV1GetFriends.d.ts.map +1 -0
  70. package/funcs/publicAccountV1GetFriends.js +105 -0
  71. package/funcs/publicAccountV1GetFriends.js.map +1 -0
  72. package/funcs/publicAccountV1GetInfo.d.ts +14 -0
  73. package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
  74. package/funcs/publicAccountV1GetInfo.js +96 -0
  75. package/funcs/publicAccountV1GetInfo.js.map +1 -0
  76. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +13 -0
  77. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  78. package/funcs/publicAccountV1GetLeaderboardHistory.js +105 -0
  79. package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -0
  80. package/funcs/sessionAccountV1SessionCreate.js +1 -1
  81. package/funcs/sessionAccountV1SessionLogin.js +2 -2
  82. package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
  83. package/lib/config.d.ts +3 -3
  84. package/lib/config.js +3 -3
  85. package/lib/security.d.ts +6 -1
  86. package/lib/security.d.ts.map +1 -1
  87. package/lib/security.js +5 -0
  88. package/lib/security.js.map +1 -1
  89. package/models/components/accountinfobody.d.ts +379 -0
  90. package/models/components/accountinfobody.d.ts.map +1 -0
  91. package/models/components/accountinfobody.js +254 -0
  92. package/models/components/accountinfobody.js.map +1 -0
  93. package/models/components/accountleaderboardhistory.d.ts +96 -0
  94. package/models/components/accountleaderboardhistory.d.ts.map +1 -0
  95. package/models/components/accountleaderboardhistory.js +91 -0
  96. package/models/components/accountleaderboardhistory.js.map +1 -0
  97. package/models/components/bestleaderboardrank.d.ts +110 -0
  98. package/models/components/bestleaderboardrank.d.ts.map +1 -0
  99. package/models/components/bestleaderboardrank.js +89 -0
  100. package/models/components/bestleaderboardrank.js.map +1 -0
  101. package/models/components/city.d.ts +28 -0
  102. package/models/components/city.d.ts.map +1 -0
  103. package/models/components/city.js +50 -0
  104. package/models/components/city.js.map +1 -0
  105. package/models/components/country.d.ts +43 -0
  106. package/models/components/country.d.ts.map +1 -0
  107. package/models/components/country.js +55 -0
  108. package/models/components/country.js.map +1 -0
  109. package/models/components/index.d.ts +14 -1
  110. package/models/components/index.d.ts.map +1 -1
  111. package/models/components/index.js +14 -1
  112. package/models/components/index.js.map +1 -1
  113. package/models/components/leaderboardaccount.d.ts +196 -0
  114. package/models/components/leaderboardaccount.d.ts.map +1 -0
  115. package/models/components/leaderboardaccount.js +128 -0
  116. package/models/components/leaderboardaccount.js.map +1 -0
  117. package/models/components/leaderboardbadgeinfo.d.ts +33 -0
  118. package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
  119. package/models/components/leaderboardbadgeinfo.js +55 -0
  120. package/models/components/leaderboardbadgeinfo.js.map +1 -0
  121. package/models/components/location.d.ts +38 -0
  122. package/models/components/location.d.ts.map +1 -0
  123. package/models/components/location.js +54 -0
  124. package/models/components/location.js.map +1 -0
  125. package/models/components/region.d.ts +38 -0
  126. package/models/components/region.d.ts.map +1 -0
  127. package/models/components/region.js +53 -0
  128. package/models/components/region.js.map +1 -0
  129. package/models/components/role.d.ts +2 -2
  130. package/models/components/role.d.ts.map +1 -1
  131. package/models/components/role.js +4 -17
  132. package/models/components/role.js.map +1 -1
  133. package/models/components/state.d.ts +43 -0
  134. package/models/components/state.d.ts.map +1 -0
  135. package/models/components/state.js +55 -0
  136. package/models/components/state.js.map +1 -0
  137. package/models/components/v1accountapp.d.ts +53 -0
  138. package/models/components/v1accountapp.d.ts.map +1 -0
  139. package/models/components/{v1app.js → v1accountapp.js} +11 -11
  140. package/models/components/v1accountapp.js.map +1 -0
  141. package/models/components/v1accountfriend.d.ts +198 -0
  142. package/models/components/v1accountfriend.d.ts.map +1 -0
  143. package/models/components/v1accountfriend.js +133 -0
  144. package/models/components/v1accountfriend.js.map +1 -0
  145. package/models/components/v1accountfriendsresponsebody.d.ts +31 -0
  146. package/models/components/v1accountfriendsresponsebody.d.ts.map +1 -0
  147. package/models/components/v1accountfriendsresponsebody.js +66 -0
  148. package/models/components/v1accountfriendsresponsebody.js.map +1 -0
  149. package/models/components/v1accountleaderboardhistoryresponsebody.d.ts +31 -0
  150. package/models/components/v1accountleaderboardhistoryresponsebody.d.ts.map +1 -0
  151. package/models/components/v1accountleaderboardhistoryresponsebody.js +66 -0
  152. package/models/components/v1accountleaderboardhistoryresponsebody.js.map +1 -0
  153. package/models/components/v1accountsappsresponsebody.d.ts +3 -3
  154. package/models/components/v1accountsappsresponsebody.d.ts.map +1 -1
  155. package/models/components/v1accountsappsresponsebody.js +3 -3
  156. package/models/components/v1accountsappsresponsebody.js.map +1 -1
  157. package/models/errors/errormodel.d.ts +5 -5
  158. package/models/errors/errormodel.d.ts.map +1 -1
  159. package/models/errors/errormodel.js +4 -2
  160. package/models/errors/errormodel.js.map +1 -1
  161. package/models/operations/accountv1getapps.d.ts +2 -0
  162. package/models/operations/accountv1getapps.d.ts.map +1 -1
  163. package/models/operations/accountv1getapps.js +4 -0
  164. package/models/operations/accountv1getapps.js.map +1 -1
  165. package/models/operations/accountv1getbadges.d.ts +2 -0
  166. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  167. package/models/operations/accountv1getbadges.js +4 -0
  168. package/models/operations/accountv1getbadges.js.map +1 -1
  169. package/models/operations/accountv1getfriends.d.ts +58 -0
  170. package/models/operations/accountv1getfriends.d.ts.map +1 -0
  171. package/models/operations/accountv1getfriends.js +107 -0
  172. package/models/operations/accountv1getfriends.js.map +1 -0
  173. package/models/operations/accountv1getinfo.d.ts +31 -0
  174. package/models/operations/accountv1getinfo.d.ts.map +1 -0
  175. package/models/operations/accountv1getinfo.js +68 -0
  176. package/models/operations/accountv1getinfo.js.map +1 -0
  177. package/models/operations/accountv1getleaderboardhistory.d.ts +58 -0
  178. package/models/operations/accountv1getleaderboardhistory.d.ts.map +1 -0
  179. package/models/operations/accountv1getleaderboardhistory.js +107 -0
  180. package/models/operations/accountv1getleaderboardhistory.js.map +1 -0
  181. package/models/operations/accountv1getstaff.d.ts +31 -0
  182. package/models/operations/accountv1getstaff.d.ts.map +1 -0
  183. package/models/operations/accountv1getstaff.js +72 -0
  184. package/models/operations/accountv1getstaff.js.map +1 -0
  185. package/models/operations/index.d.ts +5 -0
  186. package/models/operations/index.d.ts.map +1 -1
  187. package/models/operations/index.js +5 -0
  188. package/models/operations/index.js.map +1 -1
  189. package/models/operations/location.d.ts +31 -0
  190. package/models/operations/location.d.ts.map +1 -0
  191. package/models/operations/location.js +68 -0
  192. package/models/operations/location.js.map +1 -0
  193. package/package.json +1 -1
  194. package/sdk/account.d.ts +20 -4
  195. package/sdk/account.d.ts.map +1 -1
  196. package/sdk/account.js +34 -6
  197. package/sdk/account.js.map +1 -1
  198. package/sdk/data.d.ts +30 -0
  199. package/sdk/data.d.ts.map +1 -0
  200. package/sdk/data.js +54 -0
  201. package/sdk/data.js.map +1 -0
  202. package/sdk/location.d.ts +12 -0
  203. package/sdk/location.d.ts.map +1 -0
  204. package/sdk/location.js +22 -0
  205. package/sdk/location.js.map +1 -0
  206. package/sdk/public.d.ts +26 -0
  207. package/sdk/public.d.ts.map +1 -0
  208. package/sdk/public.js +47 -0
  209. package/sdk/public.js.map +1 -0
  210. package/sdk/sdk.d.ts +11 -2
  211. package/sdk/sdk.d.ts.map +1 -1
  212. package/sdk/sdk.js +17 -2
  213. package/sdk/sdk.js.map +1 -1
  214. package/sdk/session.d.ts +4 -4
  215. package/sdk/session.d.ts.map +1 -1
  216. package/sdk/session.js +6 -6
  217. package/sdk/session.js.map +1 -1
  218. package/src/funcs/accountAccountV1GetApps.ts +4 -0
  219. package/src/funcs/accountAccountV1GetBadges.ts +4 -0
  220. package/src/funcs/accountAccountV1GetFriends.ts +139 -0
  221. package/src/funcs/accountAccountV1GetInfo.ts +130 -0
  222. package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
  223. package/src/funcs/accountAccountV1GetStaff.ts +113 -0
  224. package/src/funcs/accountAccountV1SessionCreate.ts +1 -1
  225. package/src/funcs/accountAccountV1SessionLogin.ts +2 -2
  226. package/src/funcs/dataAccountV1GetApps.ts +139 -0
  227. package/src/funcs/dataAccountV1GetBadges.ts +139 -0
  228. package/src/funcs/dataAccountV1GetFriends.ts +139 -0
  229. package/src/funcs/dataAccountV1GetInfo.ts +130 -0
  230. package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
  231. package/src/funcs/dataAccountV1GetStaff.ts +113 -0
  232. package/src/funcs/locationLocation.ts +114 -0
  233. package/src/funcs/publicAccountV1GetApps.ts +139 -0
  234. package/src/funcs/publicAccountV1GetBadges.ts +139 -0
  235. package/src/funcs/publicAccountV1GetFriends.ts +139 -0
  236. package/src/funcs/publicAccountV1GetInfo.ts +130 -0
  237. package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
  238. package/src/funcs/sessionAccountV1SessionCreate.ts +1 -1
  239. package/src/funcs/sessionAccountV1SessionLogin.ts +2 -2
  240. package/src/lib/config.ts +3 -3
  241. package/src/lib/security.ts +12 -1
  242. package/src/models/components/accountinfobody.ts +532 -0
  243. package/src/models/components/accountleaderboardhistory.ts +103 -0
  244. package/src/models/components/bestleaderboardrank.ts +102 -0
  245. package/src/models/components/city.ts +40 -0
  246. package/src/models/components/country.ts +55 -0
  247. package/src/models/components/index.ts +14 -1
  248. package/src/models/components/leaderboardaccount.ts +301 -0
  249. package/src/models/components/leaderboardbadgeinfo.ts +58 -0
  250. package/src/models/components/location.ts +55 -0
  251. package/src/models/components/region.ts +53 -0
  252. package/src/models/components/role.ts +14 -27
  253. package/src/models/components/state.ts +55 -0
  254. package/src/models/components/{v1app.ts → v1accountapp.ts} +15 -11
  255. package/src/models/components/v1accountfriend.ts +307 -0
  256. package/src/models/components/v1accountfriendsresponsebody.ts +71 -0
  257. package/src/models/components/v1accountleaderboardhistoryresponsebody.ts +71 -0
  258. package/src/models/components/v1accountsappsresponsebody.ts +10 -5
  259. package/src/models/errors/errormodel.ts +8 -6
  260. package/src/models/operations/accountv1getapps.ts +6 -0
  261. package/src/models/operations/accountv1getbadges.ts +6 -0
  262. package/src/models/operations/accountv1getfriends.ts +134 -0
  263. package/src/models/operations/accountv1getinfo.ts +68 -0
  264. package/src/models/operations/accountv1getleaderboardhistory.ts +138 -0
  265. package/src/models/operations/accountv1getstaff.ts +72 -0
  266. package/src/models/operations/index.ts +5 -0
  267. package/src/models/operations/location.ts +64 -0
  268. package/src/sdk/account.ts +53 -10
  269. package/src/sdk/data.ts +75 -0
  270. package/src/sdk/location.ts +20 -0
  271. package/src/sdk/public.ts +65 -0
  272. package/src/sdk/sdk.ts +21 -3
  273. package/src/sdk/session.ts +10 -10
  274. package/models/components/v1app.d.ts +0 -53
  275. package/models/components/v1app.d.ts.map +0 -1
  276. package/models/components/v1app.js.map +0 -1
@@ -0,0 +1,399 @@
1
+ # Public
2
+ (*public*)
3
+
4
+ ## Overview
5
+
6
+ This API can be accessed by anyone with an API Key
7
+
8
+ ### Available Operations
9
+
10
+ * [accountV1GetApps](#accountv1getapps) - Get Account Apps
11
+ * [accountV1GetBadges](#accountv1getbadges) - Get Account Badges
12
+ * [accountV1GetFriends](#accountv1getfriends) - Get Account Friends
13
+ * [accountV1GetInfo](#accountv1getinfo) - Get Account Info
14
+ * [accountV1GetLeaderboardHistory](#accountv1getleaderboardhistory) - Get Account Leaderboard History
15
+
16
+ ## accountV1GetApps
17
+
18
+ Get Account Apps
19
+
20
+ ### Example Usage
21
+
22
+ ```typescript
23
+ import { SteamSets } from "@steamsets/client-ts";
24
+
25
+ const steamSets = new SteamSets({
26
+ session: "<YOUR_BEARER_TOKEN_HERE>",
27
+ });
28
+
29
+ async function run() {
30
+ const result = await steamSets.public.accountV1GetApps({
31
+ accountSearch: {},
32
+ });
33
+
34
+ // Handle the result
35
+ console.log(result)
36
+ }
37
+
38
+ run();
39
+ ```
40
+
41
+ ### Standalone function
42
+
43
+ The standalone function version of this method:
44
+
45
+ ```typescript
46
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
47
+ import { publicAccountV1GetApps } from "@steamsets/client-ts/funcs/publicAccountV1GetApps.js";
48
+
49
+ // Use `SteamSetsCore` for best tree-shaking performance.
50
+ // You can create one instance of it to use across an application.
51
+ const steamSets = new SteamSetsCore({
52
+ session: "<YOUR_BEARER_TOKEN_HERE>",
53
+ });
54
+
55
+ async function run() {
56
+ const res = await publicAccountV1GetApps(steamSets, {
57
+ accountSearch: {},
58
+ });
59
+
60
+ if (!res.ok) {
61
+ throw res.error;
62
+ }
63
+
64
+ const { value: result } = res;
65
+
66
+ // Handle the result
67
+ console.log(result)
68
+ }
69
+
70
+ run();
71
+ ```
72
+
73
+ ### Parameters
74
+
75
+ | Parameter | Type | Required | Description |
76
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
77
+ | `request` | [operations.AccountV1GetAppsRequest](../../models/operations/accountv1getappsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
78
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
79
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
80
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
81
+
82
+ ### Response
83
+
84
+ **Promise\<[operations.AccountV1GetAppsResponse](../../models/operations/accountv1getappsresponse.md)\>**
85
+
86
+ ### Errors
87
+
88
+ | Error Object | Status Code | Content Type |
89
+ | ------------------------ | ------------------------ | ------------------------ |
90
+ | errors.ErrorModel | 400,422,500 | application/problem+json |
91
+ | errors.SDKError | 4xx-5xx | */* |
92
+
93
+
94
+ ## accountV1GetBadges
95
+
96
+ Get Account Badges
97
+
98
+ ### Example Usage
99
+
100
+ ```typescript
101
+ import { SteamSets } from "@steamsets/client-ts";
102
+
103
+ const steamSets = new SteamSets({
104
+ session: "<YOUR_BEARER_TOKEN_HERE>",
105
+ });
106
+
107
+ async function run() {
108
+ const result = await steamSets.public.accountV1GetBadges({
109
+ accountSearch: {},
110
+ });
111
+
112
+ // Handle the result
113
+ console.log(result)
114
+ }
115
+
116
+ run();
117
+ ```
118
+
119
+ ### Standalone function
120
+
121
+ The standalone function version of this method:
122
+
123
+ ```typescript
124
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
125
+ import { publicAccountV1GetBadges } from "@steamsets/client-ts/funcs/publicAccountV1GetBadges.js";
126
+
127
+ // Use `SteamSetsCore` for best tree-shaking performance.
128
+ // You can create one instance of it to use across an application.
129
+ const steamSets = new SteamSetsCore({
130
+ session: "<YOUR_BEARER_TOKEN_HERE>",
131
+ });
132
+
133
+ async function run() {
134
+ const res = await publicAccountV1GetBadges(steamSets, {
135
+ accountSearch: {},
136
+ });
137
+
138
+ if (!res.ok) {
139
+ throw res.error;
140
+ }
141
+
142
+ const { value: result } = res;
143
+
144
+ // Handle the result
145
+ console.log(result)
146
+ }
147
+
148
+ run();
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ | Parameter | Type | Required | Description |
154
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
155
+ | `request` | [operations.AccountV1GetBadgesRequest](../../models/operations/accountv1getbadgesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
156
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
157
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
158
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
159
+
160
+ ### Response
161
+
162
+ **Promise\<[operations.AccountV1GetBadgesResponse](../../models/operations/accountv1getbadgesresponse.md)\>**
163
+
164
+ ### Errors
165
+
166
+ | Error Object | Status Code | Content Type |
167
+ | ------------------------ | ------------------------ | ------------------------ |
168
+ | errors.ErrorModel | 400,422,500 | application/problem+json |
169
+ | errors.SDKError | 4xx-5xx | */* |
170
+
171
+
172
+ ## accountV1GetFriends
173
+
174
+ Get Account Friends
175
+
176
+ ### Example Usage
177
+
178
+ ```typescript
179
+ import { SteamSets } from "@steamsets/client-ts";
180
+
181
+ const steamSets = new SteamSets({
182
+ session: "<YOUR_BEARER_TOKEN_HERE>",
183
+ });
184
+
185
+ async function run() {
186
+ const result = await steamSets.public.accountV1GetFriends({
187
+ accountSearch: {},
188
+ });
189
+
190
+ // Handle the result
191
+ console.log(result)
192
+ }
193
+
194
+ run();
195
+ ```
196
+
197
+ ### Standalone function
198
+
199
+ The standalone function version of this method:
200
+
201
+ ```typescript
202
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
203
+ import { publicAccountV1GetFriends } from "@steamsets/client-ts/funcs/publicAccountV1GetFriends.js";
204
+
205
+ // Use `SteamSetsCore` for best tree-shaking performance.
206
+ // You can create one instance of it to use across an application.
207
+ const steamSets = new SteamSetsCore({
208
+ session: "<YOUR_BEARER_TOKEN_HERE>",
209
+ });
210
+
211
+ async function run() {
212
+ const res = await publicAccountV1GetFriends(steamSets, {
213
+ accountSearch: {},
214
+ });
215
+
216
+ if (!res.ok) {
217
+ throw res.error;
218
+ }
219
+
220
+ const { value: result } = res;
221
+
222
+ // Handle the result
223
+ console.log(result)
224
+ }
225
+
226
+ run();
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+ | Parameter | Type | Required | Description |
232
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
233
+ | `request` | [operations.AccountV1GetFriendsRequest](../../models/operations/accountv1getfriendsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
234
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
235
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
236
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
237
+
238
+ ### Response
239
+
240
+ **Promise\<[operations.AccountV1GetFriendsResponse](../../models/operations/accountv1getfriendsresponse.md)\>**
241
+
242
+ ### Errors
243
+
244
+ | Error Object | Status Code | Content Type |
245
+ | ------------------------ | ------------------------ | ------------------------ |
246
+ | errors.ErrorModel | 400,422,500 | application/problem+json |
247
+ | errors.SDKError | 4xx-5xx | */* |
248
+
249
+
250
+ ## accountV1GetInfo
251
+
252
+ Get Account Info
253
+
254
+ ### Example Usage
255
+
256
+ ```typescript
257
+ import { SteamSets } from "@steamsets/client-ts";
258
+
259
+ const steamSets = new SteamSets({
260
+ session: "<YOUR_BEARER_TOKEN_HERE>",
261
+ });
262
+
263
+ async function run() {
264
+ const result = await steamSets.public.accountV1GetInfo({});
265
+
266
+ // Handle the result
267
+ console.log(result)
268
+ }
269
+
270
+ run();
271
+ ```
272
+
273
+ ### Standalone function
274
+
275
+ The standalone function version of this method:
276
+
277
+ ```typescript
278
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
279
+ import { publicAccountV1GetInfo } from "@steamsets/client-ts/funcs/publicAccountV1GetInfo.js";
280
+
281
+ // Use `SteamSetsCore` for best tree-shaking performance.
282
+ // You can create one instance of it to use across an application.
283
+ const steamSets = new SteamSetsCore({
284
+ session: "<YOUR_BEARER_TOKEN_HERE>",
285
+ });
286
+
287
+ async function run() {
288
+ const res = await publicAccountV1GetInfo(steamSets, {});
289
+
290
+ if (!res.ok) {
291
+ throw res.error;
292
+ }
293
+
294
+ const { value: result } = res;
295
+
296
+ // Handle the result
297
+ console.log(result)
298
+ }
299
+
300
+ run();
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+ | Parameter | Type | Required | Description |
306
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
307
+ | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
308
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
309
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
310
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
311
+
312
+ ### Response
313
+
314
+ **Promise\<[operations.AccountV1GetInfoResponse](../../models/operations/accountv1getinforesponse.md)\>**
315
+
316
+ ### Errors
317
+
318
+ | Error Object | Status Code | Content Type |
319
+ | ------------------------ | ------------------------ | ------------------------ |
320
+ | errors.ErrorModel | 404,422,429,500 | application/problem+json |
321
+ | errors.SDKError | 4xx-5xx | */* |
322
+
323
+
324
+ ## accountV1GetLeaderboardHistory
325
+
326
+ Get Account Leaderboard History
327
+
328
+ ### Example Usage
329
+
330
+ ```typescript
331
+ import { SteamSets } from "@steamsets/client-ts";
332
+
333
+ const steamSets = new SteamSets({
334
+ session: "<YOUR_BEARER_TOKEN_HERE>",
335
+ });
336
+
337
+ async function run() {
338
+ const result = await steamSets.public.accountV1GetLeaderboardHistory({
339
+ accountSearch: {},
340
+ });
341
+
342
+ // Handle the result
343
+ console.log(result)
344
+ }
345
+
346
+ run();
347
+ ```
348
+
349
+ ### Standalone function
350
+
351
+ The standalone function version of this method:
352
+
353
+ ```typescript
354
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
355
+ import { publicAccountV1GetLeaderboardHistory } from "@steamsets/client-ts/funcs/publicAccountV1GetLeaderboardHistory.js";
356
+
357
+ // Use `SteamSetsCore` for best tree-shaking performance.
358
+ // You can create one instance of it to use across an application.
359
+ const steamSets = new SteamSetsCore({
360
+ session: "<YOUR_BEARER_TOKEN_HERE>",
361
+ });
362
+
363
+ async function run() {
364
+ const res = await publicAccountV1GetLeaderboardHistory(steamSets, {
365
+ accountSearch: {},
366
+ });
367
+
368
+ if (!res.ok) {
369
+ throw res.error;
370
+ }
371
+
372
+ const { value: result } = res;
373
+
374
+ // Handle the result
375
+ console.log(result)
376
+ }
377
+
378
+ run();
379
+ ```
380
+
381
+ ### Parameters
382
+
383
+ | Parameter | Type | Required | Description |
384
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
385
+ | `request` | [operations.AccountV1GetLeaderboardHistoryRequest](../../models/operations/accountv1getleaderboardhistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
386
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
387
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
388
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
389
+
390
+ ### Response
391
+
392
+ **Promise\<[operations.AccountV1GetLeaderboardHistoryResponse](../../models/operations/accountv1getleaderboardhistoryresponse.md)\>**
393
+
394
+ ### Errors
395
+
396
+ | Error Object | Status Code | Content Type |
397
+ | ------------------------ | ------------------------ | ------------------------ |
398
+ | errors.ErrorModel | 400,422,500 | application/problem+json |
399
+ | errors.SDKError | 4xx-5xx | */* |