@steamsets/client-ts 0.19.3 → 0.19.5

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 (285) hide show
  1. package/README.md +6 -82
  2. package/docs/sdks/account/README.md +0 -180
  3. package/docs/sdks/admin/README.md +73 -0
  4. package/docs/sdks/badge/README.md +77 -0
  5. package/docs/sdks/images/README.md +0 -164
  6. package/docs/sdks/leaderboard/README.md +32 -8
  7. package/funcs/{externalGetApps.d.ts → adminAdminV1RemoveVanity.d.ts} +2 -2
  8. package/funcs/{internalAccountV1GetMeta.d.ts.map → adminAdminV1RemoveVanity.d.ts.map} +1 -1
  9. package/funcs/{accountGetAccount.js → adminAdminV1RemoveVanity.js} +7 -7
  10. package/funcs/{internalAccountV1GetMeta.js.map → adminAdminV1RemoveVanity.js.map} +1 -1
  11. package/funcs/{accountGetAccount.d.ts → badgeBadgeV1SearchSuggest.d.ts} +2 -2
  12. package/funcs/{dataGetLeaderboardHistory.d.ts.map → badgeBadgeV1SearchSuggest.d.ts.map} +1 -1
  13. package/funcs/{internalBadgeV1TagsSuggest.js → badgeBadgeV1SearchSuggest.js} +8 -8
  14. package/funcs/{dataGetLeaderboardHistory.js.map → badgeBadgeV1SearchSuggest.js.map} +1 -1
  15. package/funcs/{accountLeaderboardV1GetAccountMeta.d.ts → leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts} +2 -2
  16. package/funcs/{externalGetBadges.d.ts.map → leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts.map} +1 -1
  17. package/funcs/{internalLeaderboardV1GetAccountMeta.js → leaderboardLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  18. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  19. package/jsr.json +1 -1
  20. package/lib/config.d.ts +2 -2
  21. package/lib/config.js +2 -2
  22. package/models/components/index.d.ts +3 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +3 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/v1adminremovevanityresponsebody.d.ts +32 -0
  27. package/models/components/v1adminremovevanityresponsebody.d.ts.map +1 -0
  28. package/models/components/v1adminremovevanityresponsebody.js +68 -0
  29. package/models/components/v1adminremovevanityresponsebody.js.map +1 -0
  30. package/models/components/v1badgesearchsuggestbody.d.ts +37 -0
  31. package/models/components/v1badgesearchsuggestbody.d.ts.map +1 -0
  32. package/models/components/v1badgesearchsuggestbody.js +70 -0
  33. package/models/components/v1badgesearchsuggestbody.js.map +1 -0
  34. package/models/components/v1badgesearchsuggesttrequestbody.d.ts +32 -0
  35. package/models/components/v1badgesearchsuggesttrequestbody.d.ts.map +1 -0
  36. package/models/components/v1badgesearchsuggesttrequestbody.js +59 -0
  37. package/models/components/v1badgesearchsuggesttrequestbody.js.map +1 -0
  38. package/models/operations/adminv1removevanity.d.ts +35 -0
  39. package/models/operations/adminv1removevanity.d.ts.map +1 -0
  40. package/models/operations/adminv1removevanity.js +75 -0
  41. package/models/operations/adminv1removevanity.js.map +1 -0
  42. package/models/operations/badgev1searchsuggest.d.ts +35 -0
  43. package/models/operations/badgev1searchsuggest.d.ts.map +1 -0
  44. package/models/operations/badgev1searchsuggest.js +75 -0
  45. package/models/operations/badgev1searchsuggest.js.map +1 -0
  46. package/models/operations/index.d.ts +3 -1
  47. package/models/operations/index.d.ts.map +1 -1
  48. package/models/operations/index.js +3 -1
  49. package/models/operations/index.js.map +1 -1
  50. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +35 -0
  51. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts.map +1 -0
  52. package/models/operations/{leaderboardv1getaccountmeta.js → leaderboardv1getleaderboardaccountmeta.js} +17 -17
  53. package/models/operations/leaderboardv1getleaderboardaccountmeta.js.map +1 -0
  54. package/package.json +1 -1
  55. package/sdk/account.d.ts +0 -2
  56. package/sdk/account.d.ts.map +1 -1
  57. package/sdk/account.js +0 -8
  58. package/sdk/account.js.map +1 -1
  59. package/sdk/admin.d.ts +1 -0
  60. package/sdk/admin.d.ts.map +1 -1
  61. package/sdk/admin.js +4 -0
  62. package/sdk/admin.js.map +1 -1
  63. package/sdk/badge.d.ts +1 -0
  64. package/sdk/badge.d.ts.map +1 -1
  65. package/sdk/badge.js +4 -0
  66. package/sdk/badge.js.map +1 -1
  67. package/sdk/images.d.ts +0 -2
  68. package/sdk/images.d.ts.map +1 -1
  69. package/sdk/images.js +0 -8
  70. package/sdk/images.js.map +1 -1
  71. package/sdk/leaderboard.d.ts +1 -1
  72. package/sdk/leaderboard.d.ts.map +1 -1
  73. package/sdk/leaderboard.js +3 -3
  74. package/sdk/leaderboard.js.map +1 -1
  75. package/sdk/sdk.d.ts +2 -14
  76. package/sdk/sdk.d.ts.map +1 -1
  77. package/sdk/sdk.js +2 -18
  78. package/sdk/sdk.js.map +1 -1
  79. package/src/funcs/{externalGetInfo.ts → adminAdminV1RemoveVanity.ts} +8 -8
  80. package/src/funcs/{internalBadgeV1TagsSuggest.ts → badgeBadgeV1SearchSuggest.ts} +11 -11
  81. package/src/funcs/{internalLeaderboardV1GetAccountMeta.ts → leaderboardLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  82. package/src/lib/config.ts +2 -2
  83. package/src/models/components/index.ts +3 -0
  84. package/src/models/components/v1adminremovevanityresponsebody.ts +80 -0
  85. package/src/models/components/v1badgesearchsuggestbody.ts +85 -0
  86. package/src/models/components/v1badgesearchsuggesttrequestbody.ts +71 -0
  87. package/src/models/operations/adminv1removevanity.ts +93 -0
  88. package/src/models/operations/badgev1searchsuggest.ts +91 -0
  89. package/src/models/operations/index.ts +3 -1
  90. package/src/models/operations/leaderboardv1getleaderboardaccountmeta.ts +107 -0
  91. package/src/sdk/account.ts +0 -24
  92. package/src/sdk/admin.ts +12 -0
  93. package/src/sdk/badge.ts +12 -0
  94. package/src/sdk/images.ts +0 -24
  95. package/src/sdk/leaderboard.ts +4 -4
  96. package/src/sdk/sdk.ts +3 -27
  97. package/docs/sdks/data/README.md +0 -520
  98. package/docs/sdks/developer/README.md +0 -252
  99. package/docs/sdks/external/README.md +0 -596
  100. package/docs/sdks/internal/README.md +0 -963
  101. package/funcs/accountGetAccount.d.ts.map +0 -1
  102. package/funcs/accountGetAccount.js.map +0 -1
  103. package/funcs/accountLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  104. package/funcs/accountLeaderboardV1GetAccountMeta.js +0 -118
  105. package/funcs/accountLeaderboardV1GetAccountMeta.js.map +0 -1
  106. package/funcs/dataAccountV1GetMeta.d.ts +0 -12
  107. package/funcs/dataAccountV1GetMeta.d.ts.map +0 -1
  108. package/funcs/dataAccountV1GetMeta.js +0 -118
  109. package/funcs/dataAccountV1GetMeta.js.map +0 -1
  110. package/funcs/dataGetApps.d.ts +0 -12
  111. package/funcs/dataGetApps.d.ts.map +0 -1
  112. package/funcs/dataGetApps.js +0 -118
  113. package/funcs/dataGetApps.js.map +0 -1
  114. package/funcs/dataGetBadges.d.ts +0 -12
  115. package/funcs/dataGetBadges.d.ts.map +0 -1
  116. package/funcs/dataGetBadges.js +0 -118
  117. package/funcs/dataGetBadges.js.map +0 -1
  118. package/funcs/dataGetDataPoints.d.ts +0 -12
  119. package/funcs/dataGetDataPoints.d.ts.map +0 -1
  120. package/funcs/dataGetDataPoints.js +0 -118
  121. package/funcs/dataGetDataPoints.js.map +0 -1
  122. package/funcs/dataGetFriends.d.ts +0 -12
  123. package/funcs/dataGetFriends.d.ts.map +0 -1
  124. package/funcs/dataGetFriends.js +0 -118
  125. package/funcs/dataGetFriends.js.map +0 -1
  126. package/funcs/dataGetInfo.d.ts +0 -12
  127. package/funcs/dataGetInfo.d.ts.map +0 -1
  128. package/funcs/dataGetInfo.js +0 -118
  129. package/funcs/dataGetInfo.js.map +0 -1
  130. package/funcs/dataGetLeaderboardHistory.d.ts +0 -12
  131. package/funcs/dataGetLeaderboardHistory.js +0 -116
  132. package/funcs/developerCreateDeveloperApp.d.ts +0 -12
  133. package/funcs/developerCreateDeveloperApp.d.ts.map +0 -1
  134. package/funcs/developerCreateDeveloperApp.js +0 -116
  135. package/funcs/developerCreateDeveloperApp.js.map +0 -1
  136. package/funcs/developerDeleteDeveloperApp.d.ts +0 -12
  137. package/funcs/developerDeleteDeveloperApp.d.ts.map +0 -1
  138. package/funcs/developerDeleteDeveloperApp.js +0 -116
  139. package/funcs/developerDeleteDeveloperApp.js.map +0 -1
  140. package/funcs/developerUpdateApp.d.ts +0 -12
  141. package/funcs/developerUpdateApp.d.ts.map +0 -1
  142. package/funcs/developerUpdateApp.js +0 -116
  143. package/funcs/developerUpdateApp.js.map +0 -1
  144. package/funcs/externalAppV1ListBadges.d.ts +0 -12
  145. package/funcs/externalAppV1ListBadges.d.ts.map +0 -1
  146. package/funcs/externalAppV1ListBadges.js +0 -118
  147. package/funcs/externalAppV1ListBadges.js.map +0 -1
  148. package/funcs/externalGet.d.ts +0 -11
  149. package/funcs/externalGet.d.ts.map +0 -1
  150. package/funcs/externalGet.js +0 -107
  151. package/funcs/externalGet.js.map +0 -1
  152. package/funcs/externalGetApps.d.ts.map +0 -1
  153. package/funcs/externalGetApps.js +0 -118
  154. package/funcs/externalGetApps.js.map +0 -1
  155. package/funcs/externalGetBadges.d.ts +0 -12
  156. package/funcs/externalGetBadges.js +0 -118
  157. package/funcs/externalGetBadges.js.map +0 -1
  158. package/funcs/externalGetDataPoints.d.ts +0 -12
  159. package/funcs/externalGetDataPoints.d.ts.map +0 -1
  160. package/funcs/externalGetDataPoints.js +0 -118
  161. package/funcs/externalGetDataPoints.js.map +0 -1
  162. package/funcs/externalGetFriends.d.ts +0 -12
  163. package/funcs/externalGetFriends.d.ts.map +0 -1
  164. package/funcs/externalGetFriends.js +0 -118
  165. package/funcs/externalGetFriends.js.map +0 -1
  166. package/funcs/externalGetInfo.d.ts +0 -12
  167. package/funcs/externalGetInfo.d.ts.map +0 -1
  168. package/funcs/externalGetInfo.js +0 -118
  169. package/funcs/externalGetInfo.js.map +0 -1
  170. package/funcs/externalGetLeaderboardHistory.d.ts +0 -12
  171. package/funcs/externalGetLeaderboardHistory.d.ts.map +0 -1
  172. package/funcs/externalGetLeaderboardHistory.js +0 -116
  173. package/funcs/externalGetLeaderboardHistory.js.map +0 -1
  174. package/funcs/imagesDeleteImages.d.ts +0 -12
  175. package/funcs/imagesDeleteImages.d.ts.map +0 -1
  176. package/funcs/imagesDeleteImages.js +0 -118
  177. package/funcs/imagesDeleteImages.js.map +0 -1
  178. package/funcs/imagesUploadImages.d.ts +0 -12
  179. package/funcs/imagesUploadImages.d.ts.map +0 -1
  180. package/funcs/imagesUploadImages.js +0 -118
  181. package/funcs/imagesUploadImages.js.map +0 -1
  182. package/funcs/internalAccountV1GetMeta.d.ts +0 -12
  183. package/funcs/internalAccountV1GetMeta.js +0 -118
  184. package/funcs/internalBadgeV1TagsSuggest.d.ts +0 -12
  185. package/funcs/internalBadgeV1TagsSuggest.d.ts.map +0 -1
  186. package/funcs/internalBadgeV1TagsSuggest.js.map +0 -1
  187. package/funcs/internalCheck.d.ts +0 -17
  188. package/funcs/internalCheck.d.ts.map +0 -1
  189. package/funcs/internalCheck.js +0 -111
  190. package/funcs/internalCheck.js.map +0 -1
  191. package/funcs/internalCreateDeveloperApp.d.ts +0 -12
  192. package/funcs/internalCreateDeveloperApp.d.ts.map +0 -1
  193. package/funcs/internalCreateDeveloperApp.js +0 -116
  194. package/funcs/internalCreateDeveloperApp.js.map +0 -1
  195. package/funcs/internalDeleteDeveloperApp.d.ts +0 -12
  196. package/funcs/internalDeleteDeveloperApp.d.ts.map +0 -1
  197. package/funcs/internalDeleteDeveloperApp.js +0 -116
  198. package/funcs/internalDeleteDeveloperApp.js.map +0 -1
  199. package/funcs/internalDeleteImages.d.ts +0 -12
  200. package/funcs/internalDeleteImages.d.ts.map +0 -1
  201. package/funcs/internalDeleteImages.js +0 -118
  202. package/funcs/internalDeleteImages.js.map +0 -1
  203. package/funcs/internalGetAccount.d.ts +0 -12
  204. package/funcs/internalGetAccount.d.ts.map +0 -1
  205. package/funcs/internalGetAccount.js +0 -118
  206. package/funcs/internalGetAccount.js.map +0 -1
  207. package/funcs/internalGetStaff.d.ts +0 -11
  208. package/funcs/internalGetStaff.d.ts.map +0 -1
  209. package/funcs/internalGetStaff.js +0 -107
  210. package/funcs/internalGetStaff.js.map +0 -1
  211. package/funcs/internalGetTags.d.ts +0 -11
  212. package/funcs/internalGetTags.d.ts.map +0 -1
  213. package/funcs/internalGetTags.js +0 -107
  214. package/funcs/internalGetTags.js.map +0 -1
  215. package/funcs/internalLeaderboardV1GetAccountMeta.d.ts +0 -12
  216. package/funcs/internalLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  217. package/funcs/internalLeaderboardV1GetAccountMeta.js.map +0 -1
  218. package/funcs/internalUpdateApp.d.ts +0 -12
  219. package/funcs/internalUpdateApp.d.ts.map +0 -1
  220. package/funcs/internalUpdateApp.js +0 -116
  221. package/funcs/internalUpdateApp.js.map +0 -1
  222. package/funcs/internalUploadImages.d.ts +0 -12
  223. package/funcs/internalUploadImages.d.ts.map +0 -1
  224. package/funcs/internalUploadImages.js +0 -118
  225. package/funcs/internalUploadImages.js.map +0 -1
  226. package/funcs/leaderboardLeaderboardV1GetAccountMeta.d.ts +0 -12
  227. package/funcs/leaderboardLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  228. package/funcs/leaderboardLeaderboardV1GetAccountMeta.js +0 -118
  229. package/funcs/leaderboardLeaderboardV1GetAccountMeta.js.map +0 -1
  230. package/models/operations/leaderboardv1getaccountmeta.d.ts +0 -35
  231. package/models/operations/leaderboardv1getaccountmeta.d.ts.map +0 -1
  232. package/models/operations/leaderboardv1getaccountmeta.js.map +0 -1
  233. package/sdk/data.d.ts +0 -13
  234. package/sdk/data.d.ts.map +0 -1
  235. package/sdk/data.js +0 -40
  236. package/sdk/data.js.map +0 -1
  237. package/sdk/developer.d.ts +0 -9
  238. package/sdk/developer.d.ts.map +0 -1
  239. package/sdk/developer.js +0 -24
  240. package/sdk/developer.js.map +0 -1
  241. package/sdk/external.d.ts +0 -14
  242. package/sdk/external.d.ts.map +0 -1
  243. package/sdk/external.js +0 -44
  244. package/sdk/external.js.map +0 -1
  245. package/sdk/internal.d.ts +0 -24
  246. package/sdk/internal.d.ts.map +0 -1
  247. package/sdk/internal.js +0 -66
  248. package/sdk/internal.js.map +0 -1
  249. package/src/funcs/accountGetAccount.ts +0 -179
  250. package/src/funcs/accountLeaderboardV1GetAccountMeta.ts +0 -184
  251. package/src/funcs/dataAccountV1GetMeta.ts +0 -179
  252. package/src/funcs/dataGetApps.ts +0 -179
  253. package/src/funcs/dataGetBadges.ts +0 -179
  254. package/src/funcs/dataGetDataPoints.ts +0 -179
  255. package/src/funcs/dataGetFriends.ts +0 -179
  256. package/src/funcs/dataGetInfo.ts +0 -179
  257. package/src/funcs/dataGetLeaderboardHistory.ts +0 -181
  258. package/src/funcs/developerCreateDeveloperApp.ts +0 -182
  259. package/src/funcs/developerDeleteDeveloperApp.ts +0 -184
  260. package/src/funcs/developerUpdateApp.ts +0 -184
  261. package/src/funcs/externalAppV1ListBadges.ts +0 -179
  262. package/src/funcs/externalGet.ts +0 -160
  263. package/src/funcs/externalGetApps.ts +0 -179
  264. package/src/funcs/externalGetBadges.ts +0 -179
  265. package/src/funcs/externalGetDataPoints.ts +0 -179
  266. package/src/funcs/externalGetFriends.ts +0 -179
  267. package/src/funcs/externalGetLeaderboardHistory.ts +0 -181
  268. package/src/funcs/imagesDeleteImages.ts +0 -179
  269. package/src/funcs/imagesUploadImages.ts +0 -179
  270. package/src/funcs/internalAccountV1GetMeta.ts +0 -179
  271. package/src/funcs/internalCheck.ts +0 -160
  272. package/src/funcs/internalCreateDeveloperApp.ts +0 -182
  273. package/src/funcs/internalDeleteDeveloperApp.ts +0 -184
  274. package/src/funcs/internalDeleteImages.ts +0 -179
  275. package/src/funcs/internalGetAccount.ts +0 -179
  276. package/src/funcs/internalGetStaff.ts +0 -160
  277. package/src/funcs/internalGetTags.ts +0 -160
  278. package/src/funcs/internalUpdateApp.ts +0 -184
  279. package/src/funcs/internalUploadImages.ts +0 -179
  280. package/src/funcs/leaderboardLeaderboardV1GetAccountMeta.ts +0 -184
  281. package/src/models/operations/leaderboardv1getaccountmeta.ts +0 -98
  282. package/src/sdk/data.ts +0 -94
  283. package/src/sdk/developer.ts +0 -46
  284. package/src/sdk/external.ts +0 -104
  285. package/src/sdk/internal.ts +0 -154
@@ -1,520 +0,0 @@
1
- # Data
2
- (*data*)
3
-
4
- ## Overview
5
-
6
- Data of a Steam Account that can be used to display the profile.
7
-
8
- ### Available Operations
9
-
10
- * [getApps](#getapps)
11
- * [getBadges](#getbadges)
12
- * [getDataPoints](#getdatapoints)
13
- * [getFriends](#getfriends)
14
- * [getInfo](#getinfo)
15
- * [getLeaderboardHistory](#getleaderboardhistory)
16
- * [accountV1GetMeta](#accountv1getmeta)
17
-
18
- ## getApps
19
-
20
- ### Example Usage
21
-
22
- ```typescript
23
- import { SteamSets } from "@steamsets/client-ts";
24
-
25
- const steamSets = new SteamSets({
26
- token: "<YOUR_BEARER_TOKEN_HERE>",
27
- });
28
-
29
- async function run() {
30
- const result = await steamSets.data.getApps({});
31
-
32
- // Handle the result
33
- console.log(result);
34
- }
35
-
36
- run();
37
- ```
38
-
39
- ### Standalone function
40
-
41
- The standalone function version of this method:
42
-
43
- ```typescript
44
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
45
- import { dataGetApps } from "@steamsets/client-ts/funcs/dataGetApps.js";
46
-
47
- // Use `SteamSetsCore` for best tree-shaking performance.
48
- // You can create one instance of it to use across an application.
49
- const steamSets = new SteamSetsCore({
50
- token: "<YOUR_BEARER_TOKEN_HERE>",
51
- });
52
-
53
- async function run() {
54
- const res = await dataGetApps(steamSets, {});
55
-
56
- if (!res.ok) {
57
- throw res.error;
58
- }
59
-
60
- const { value: result } = res;
61
-
62
- // Handle the result
63
- console.log(result);
64
- }
65
-
66
- run();
67
- ```
68
-
69
- ### Parameters
70
-
71
- | Parameter | Type | Required | Description |
72
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
73
- | `request` | [components.V1AccountsAppsRequestBody](../../models/components/v1accountsappsrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
74
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
75
- | `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. |
76
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
77
-
78
- ### Response
79
-
80
- **Promise\<[operations.AccountV1GetAppsResponse](../../models/operations/accountv1getappsresponse.md)\>**
81
-
82
- ### Errors
83
-
84
- | Error Type | Status Code | Content Type |
85
- | ------------------------ | ------------------------ | ------------------------ |
86
- | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
87
- | errors.ErrorModel | 500 | application/problem+json |
88
- | errors.SDKError | 4XX, 5XX | \*/\* |
89
-
90
- ## getBadges
91
-
92
- ### Example Usage
93
-
94
- ```typescript
95
- import { SteamSets } from "@steamsets/client-ts";
96
-
97
- const steamSets = new SteamSets({
98
- token: "<YOUR_BEARER_TOKEN_HERE>",
99
- });
100
-
101
- async function run() {
102
- const result = await steamSets.data.getBadges({});
103
-
104
- // Handle the result
105
- console.log(result);
106
- }
107
-
108
- run();
109
- ```
110
-
111
- ### Standalone function
112
-
113
- The standalone function version of this method:
114
-
115
- ```typescript
116
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
117
- import { dataGetBadges } from "@steamsets/client-ts/funcs/dataGetBadges.js";
118
-
119
- // Use `SteamSetsCore` for best tree-shaking performance.
120
- // You can create one instance of it to use across an application.
121
- const steamSets = new SteamSetsCore({
122
- token: "<YOUR_BEARER_TOKEN_HERE>",
123
- });
124
-
125
- async function run() {
126
- const res = await dataGetBadges(steamSets, {});
127
-
128
- if (!res.ok) {
129
- throw res.error;
130
- }
131
-
132
- const { value: result } = res;
133
-
134
- // Handle the result
135
- console.log(result);
136
- }
137
-
138
- run();
139
- ```
140
-
141
- ### Parameters
142
-
143
- | Parameter | Type | Required | Description |
144
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
145
- | `request` | [components.V1BadgesRequestBody](../../models/components/v1badgesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
146
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
147
- | `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. |
148
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
149
-
150
- ### Response
151
-
152
- **Promise\<[operations.AccountV1GetBadgesResponse](../../models/operations/accountv1getbadgesresponse.md)\>**
153
-
154
- ### Errors
155
-
156
- | Error Type | Status Code | Content Type |
157
- | ------------------------ | ------------------------ | ------------------------ |
158
- | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
159
- | errors.ErrorModel | 500 | application/problem+json |
160
- | errors.SDKError | 4XX, 5XX | \*/\* |
161
-
162
- ## getDataPoints
163
-
164
- ### Example Usage
165
-
166
- ```typescript
167
- import { SteamSets } from "@steamsets/client-ts";
168
-
169
- const steamSets = new SteamSets({
170
- token: "<YOUR_BEARER_TOKEN_HERE>",
171
- });
172
-
173
- async function run() {
174
- const result = await steamSets.data.getDataPoints({});
175
-
176
- // Handle the result
177
- console.log(result);
178
- }
179
-
180
- run();
181
- ```
182
-
183
- ### Standalone function
184
-
185
- The standalone function version of this method:
186
-
187
- ```typescript
188
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
189
- import { dataGetDataPoints } from "@steamsets/client-ts/funcs/dataGetDataPoints.js";
190
-
191
- // Use `SteamSetsCore` for best tree-shaking performance.
192
- // You can create one instance of it to use across an application.
193
- const steamSets = new SteamSetsCore({
194
- token: "<YOUR_BEARER_TOKEN_HERE>",
195
- });
196
-
197
- async function run() {
198
- const res = await dataGetDataPoints(steamSets, {});
199
-
200
- if (!res.ok) {
201
- throw res.error;
202
- }
203
-
204
- const { value: result } = res;
205
-
206
- // Handle the result
207
- console.log(result);
208
- }
209
-
210
- run();
211
- ```
212
-
213
- ### Parameters
214
-
215
- | Parameter | Type | Required | Description |
216
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
217
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
218
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
219
- | `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. |
220
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
221
-
222
- ### Response
223
-
224
- **Promise\<[operations.AccountV1GetDataPointsResponse](../../models/operations/accountv1getdatapointsresponse.md)\>**
225
-
226
- ### Errors
227
-
228
- | Error Type | Status Code | Content Type |
229
- | ------------------------ | ------------------------ | ------------------------ |
230
- | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
231
- | errors.ErrorModel | 500 | application/problem+json |
232
- | errors.SDKError | 4XX, 5XX | \*/\* |
233
-
234
- ## getFriends
235
-
236
- ### Example Usage
237
-
238
- ```typescript
239
- import { SteamSets } from "@steamsets/client-ts";
240
-
241
- const steamSets = new SteamSets({
242
- token: "<YOUR_BEARER_TOKEN_HERE>",
243
- });
244
-
245
- async function run() {
246
- const result = await steamSets.data.getFriends({});
247
-
248
- // Handle the result
249
- console.log(result);
250
- }
251
-
252
- run();
253
- ```
254
-
255
- ### Standalone function
256
-
257
- The standalone function version of this method:
258
-
259
- ```typescript
260
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
261
- import { dataGetFriends } from "@steamsets/client-ts/funcs/dataGetFriends.js";
262
-
263
- // Use `SteamSetsCore` for best tree-shaking performance.
264
- // You can create one instance of it to use across an application.
265
- const steamSets = new SteamSetsCore({
266
- token: "<YOUR_BEARER_TOKEN_HERE>",
267
- });
268
-
269
- async function run() {
270
- const res = await dataGetFriends(steamSets, {});
271
-
272
- if (!res.ok) {
273
- throw res.error;
274
- }
275
-
276
- const { value: result } = res;
277
-
278
- // Handle the result
279
- console.log(result);
280
- }
281
-
282
- run();
283
- ```
284
-
285
- ### Parameters
286
-
287
- | Parameter | Type | Required | Description |
288
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
289
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
290
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
291
- | `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. |
292
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
293
-
294
- ### Response
295
-
296
- **Promise\<[operations.AccountV1GetFriendsResponse](../../models/operations/accountv1getfriendsresponse.md)\>**
297
-
298
- ### Errors
299
-
300
- | Error Type | Status Code | Content Type |
301
- | ------------------------ | ------------------------ | ------------------------ |
302
- | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
303
- | errors.ErrorModel | 500 | application/problem+json |
304
- | errors.SDKError | 4XX, 5XX | \*/\* |
305
-
306
- ## getInfo
307
-
308
- ### Example Usage
309
-
310
- ```typescript
311
- import { SteamSets } from "@steamsets/client-ts";
312
-
313
- const steamSets = new SteamSets({
314
- token: "<YOUR_BEARER_TOKEN_HERE>",
315
- });
316
-
317
- async function run() {
318
- const result = await steamSets.data.getInfo({});
319
-
320
- // Handle the result
321
- console.log(result);
322
- }
323
-
324
- run();
325
- ```
326
-
327
- ### Standalone function
328
-
329
- The standalone function version of this method:
330
-
331
- ```typescript
332
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
333
- import { dataGetInfo } from "@steamsets/client-ts/funcs/dataGetInfo.js";
334
-
335
- // Use `SteamSetsCore` for best tree-shaking performance.
336
- // You can create one instance of it to use across an application.
337
- const steamSets = new SteamSetsCore({
338
- token: "<YOUR_BEARER_TOKEN_HERE>",
339
- });
340
-
341
- async function run() {
342
- const res = await dataGetInfo(steamSets, {});
343
-
344
- if (!res.ok) {
345
- throw res.error;
346
- }
347
-
348
- const { value: result } = res;
349
-
350
- // Handle the result
351
- console.log(result);
352
- }
353
-
354
- run();
355
- ```
356
-
357
- ### Parameters
358
-
359
- | Parameter | Type | Required | Description |
360
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
361
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
362
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
363
- | `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. |
364
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
365
-
366
- ### Response
367
-
368
- **Promise\<[operations.AccountV1GetInfoResponse](../../models/operations/accountv1getinforesponse.md)\>**
369
-
370
- ### Errors
371
-
372
- | Error Type | Status Code | Content Type |
373
- | ------------------------ | ------------------------ | ------------------------ |
374
- | errors.ErrorModel | 403, 404, 422, 429 | application/problem+json |
375
- | errors.ErrorModel | 500 | application/problem+json |
376
- | errors.SDKError | 4XX, 5XX | \*/\* |
377
-
378
- ## getLeaderboardHistory
379
-
380
- ### Example Usage
381
-
382
- ```typescript
383
- import { SteamSets } from "@steamsets/client-ts";
384
-
385
- const steamSets = new SteamSets({
386
- token: "<YOUR_BEARER_TOKEN_HERE>",
387
- });
388
-
389
- async function run() {
390
- const result = await steamSets.data.getLeaderboardHistory({});
391
-
392
- // Handle the result
393
- console.log(result);
394
- }
395
-
396
- run();
397
- ```
398
-
399
- ### Standalone function
400
-
401
- The standalone function version of this method:
402
-
403
- ```typescript
404
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
405
- import { dataGetLeaderboardHistory } from "@steamsets/client-ts/funcs/dataGetLeaderboardHistory.js";
406
-
407
- // Use `SteamSetsCore` for best tree-shaking performance.
408
- // You can create one instance of it to use across an application.
409
- const steamSets = new SteamSetsCore({
410
- token: "<YOUR_BEARER_TOKEN_HERE>",
411
- });
412
-
413
- async function run() {
414
- const res = await dataGetLeaderboardHistory(steamSets, {});
415
-
416
- if (!res.ok) {
417
- throw res.error;
418
- }
419
-
420
- const { value: result } = res;
421
-
422
- // Handle the result
423
- console.log(result);
424
- }
425
-
426
- run();
427
- ```
428
-
429
- ### Parameters
430
-
431
- | Parameter | Type | Required | Description |
432
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
433
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
434
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
435
- | `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. |
436
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
437
-
438
- ### Response
439
-
440
- **Promise\<[operations.AccountV1GetLeaderboardHistoryResponse](../../models/operations/accountv1getleaderboardhistoryresponse.md)\>**
441
-
442
- ### Errors
443
-
444
- | Error Type | Status Code | Content Type |
445
- | ------------------------ | ------------------------ | ------------------------ |
446
- | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
447
- | errors.ErrorModel | 500 | application/problem+json |
448
- | errors.SDKError | 4XX, 5XX | \*/\* |
449
-
450
- ## accountV1GetMeta
451
-
452
- ### Example Usage
453
-
454
- ```typescript
455
- import { SteamSets } from "@steamsets/client-ts";
456
-
457
- const steamSets = new SteamSets({
458
- token: "<YOUR_BEARER_TOKEN_HERE>",
459
- });
460
-
461
- async function run() {
462
- const result = await steamSets.data.accountV1GetMeta({});
463
-
464
- // Handle the result
465
- console.log(result);
466
- }
467
-
468
- run();
469
- ```
470
-
471
- ### Standalone function
472
-
473
- The standalone function version of this method:
474
-
475
- ```typescript
476
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
477
- import { dataAccountV1GetMeta } from "@steamsets/client-ts/funcs/dataAccountV1GetMeta.js";
478
-
479
- // Use `SteamSetsCore` for best tree-shaking performance.
480
- // You can create one instance of it to use across an application.
481
- const steamSets = new SteamSetsCore({
482
- token: "<YOUR_BEARER_TOKEN_HERE>",
483
- });
484
-
485
- async function run() {
486
- const res = await dataAccountV1GetMeta(steamSets, {});
487
-
488
- if (!res.ok) {
489
- throw res.error;
490
- }
491
-
492
- const { value: result } = res;
493
-
494
- // Handle the result
495
- console.log(result);
496
- }
497
-
498
- run();
499
- ```
500
-
501
- ### Parameters
502
-
503
- | Parameter | Type | Required | Description |
504
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
505
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
506
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
507
- | `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. |
508
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
509
-
510
- ### Response
511
-
512
- **Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
513
-
514
- ### Errors
515
-
516
- | Error Type | Status Code | Content Type |
517
- | ------------------------ | ------------------------ | ------------------------ |
518
- | errors.ErrorModel | 404, 422 | application/problem+json |
519
- | errors.ErrorModel | 500 | application/problem+json |
520
- | errors.SDKError | 4XX, 5XX | \*/\* |