@steamsets/client-ts 0.14.26 → 0.14.27

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 (251) hide show
  1. package/README.md +83 -17
  2. package/docs/sdks/account/README.md +493 -1
  3. package/docs/sdks/admin/README.md +1 -1
  4. package/docs/sdks/badge/README.md +2 -0
  5. package/docs/sdks/data/README.md +1 -73
  6. package/docs/sdks/developer/README.md +1 -1
  7. package/docs/sdks/event/README.md +168 -0
  8. package/docs/sdks/{public → external}/README.md +93 -21
  9. package/docs/sdks/internal/README.md +1726 -0
  10. package/docs/sdks/leaderboard/README.md +2 -0
  11. package/docs/sdks/liveness/README.md +1 -1
  12. package/docs/sdks/stats/README.md +1 -1
  13. package/funcs/accountAdminV1UpdateResources.d.ts +11 -0
  14. package/funcs/accountAdminV1UpdateResources.d.ts.map +1 -0
  15. package/funcs/accountAdminV1UpdateResources.js +111 -0
  16. package/funcs/accountAdminV1UpdateResources.js.map +1 -0
  17. package/funcs/accountAdminV1UpdateRoles.d.ts +11 -0
  18. package/funcs/accountAdminV1UpdateRoles.d.ts.map +1 -0
  19. package/funcs/accountAdminV1UpdateRoles.js +111 -0
  20. package/funcs/accountAdminV1UpdateRoles.js.map +1 -0
  21. package/funcs/accountCreateDeveloperApp.d.ts +11 -0
  22. package/funcs/accountCreateDeveloperApp.d.ts.map +1 -0
  23. package/funcs/accountCreateDeveloperApp.js +111 -0
  24. package/funcs/accountCreateDeveloperApp.js.map +1 -0
  25. package/funcs/accountDeleteDeveloperApp.d.ts +11 -0
  26. package/funcs/accountDeleteDeveloperApp.d.ts.map +1 -0
  27. package/funcs/accountDeleteDeveloperApp.js +111 -0
  28. package/funcs/accountDeleteDeveloperApp.js.map +1 -0
  29. package/funcs/{publicGetBadges.d.ts → accountGetAccount.d.ts} +2 -2
  30. package/funcs/accountGetAccount.d.ts.map +1 -0
  31. package/funcs/accountGetAccount.js +113 -0
  32. package/funcs/accountGetAccount.js.map +1 -0
  33. package/funcs/accountUpdateApp.d.ts +11 -0
  34. package/funcs/{publicGetFriends.d.ts.map → accountUpdateApp.d.ts.map} +1 -1
  35. package/funcs/accountUpdateApp.js +111 -0
  36. package/funcs/{publicGetFriends.js.map → accountUpdateApp.js.map} +1 -1
  37. package/funcs/eventAdminV1GetEvents.d.ts +10 -0
  38. package/funcs/eventAdminV1GetEvents.d.ts.map +1 -0
  39. package/funcs/eventAdminV1GetEvents.js +102 -0
  40. package/funcs/eventAdminV1GetEvents.js.map +1 -0
  41. package/funcs/{publicGetLeaderboardHistory.d.ts → eventAdminV1UpdateEvent.d.ts} +2 -2
  42. package/funcs/eventAdminV1UpdateEvent.d.ts.map +1 -0
  43. package/funcs/eventAdminV1UpdateEvent.js +113 -0
  44. package/funcs/eventAdminV1UpdateEvent.js.map +1 -0
  45. package/funcs/externalGetApps.d.ts +11 -0
  46. package/funcs/{publicGetBadges.d.ts.map → externalGetApps.d.ts.map} +1 -1
  47. package/funcs/{publicGetApps.js → externalGetApps.js} +3 -3
  48. package/funcs/{publicGetBadges.js.map → externalGetApps.js.map} +1 -1
  49. package/funcs/{publicGetApps.d.ts → externalGetBadges.d.ts} +2 -2
  50. package/funcs/externalGetBadges.d.ts.map +1 -0
  51. package/funcs/{publicGetBadges.js → externalGetBadges.js} +3 -3
  52. package/funcs/externalGetBadges.js.map +1 -0
  53. package/funcs/{publicGetDataPoints.d.ts → externalGetDataPoints.d.ts} +2 -2
  54. package/funcs/externalGetDataPoints.d.ts.map +1 -0
  55. package/funcs/{publicGetDataPoints.js → externalGetDataPoints.js} +3 -3
  56. package/funcs/externalGetDataPoints.js.map +1 -0
  57. package/funcs/externalGetFriends.d.ts +11 -0
  58. package/funcs/externalGetFriends.d.ts.map +1 -0
  59. package/funcs/{publicGetFriends.js → externalGetFriends.js} +3 -3
  60. package/funcs/externalGetFriends.js.map +1 -0
  61. package/funcs/{publicGetInfo.d.ts → externalGetInfo.d.ts} +2 -2
  62. package/funcs/externalGetInfo.d.ts.map +1 -0
  63. package/funcs/{publicGetInfo.js → externalGetInfo.js} +3 -3
  64. package/funcs/externalGetInfo.js.map +1 -0
  65. package/funcs/externalGetLeaderboardHistory.d.ts +11 -0
  66. package/funcs/externalGetLeaderboardHistory.d.ts.map +1 -0
  67. package/funcs/{publicGetLeaderboardHistory.js → externalGetLeaderboardHistory.js} +3 -3
  68. package/funcs/externalGetLeaderboardHistory.js.map +1 -0
  69. package/funcs/externalStatsV1StatsGet.d.ts +10 -0
  70. package/funcs/externalStatsV1StatsGet.d.ts.map +1 -0
  71. package/funcs/externalStatsV1StatsGet.js +102 -0
  72. package/funcs/externalStatsV1StatsGet.js.map +1 -0
  73. package/funcs/internalAccountV1BookmarkBadge.d.ts +11 -0
  74. package/funcs/internalAccountV1BookmarkBadge.d.ts.map +1 -0
  75. package/funcs/internalAccountV1BookmarkBadge.js +113 -0
  76. package/funcs/internalAccountV1BookmarkBadge.js.map +1 -0
  77. package/funcs/internalAccountV1ConnectionReconnect.d.ts +11 -0
  78. package/funcs/internalAccountV1ConnectionReconnect.d.ts.map +1 -0
  79. package/funcs/internalAccountV1ConnectionReconnect.js +113 -0
  80. package/funcs/internalAccountV1ConnectionReconnect.js.map +1 -0
  81. package/funcs/internalAccountV1GetBadgeBookmarks.d.ts +10 -0
  82. package/funcs/internalAccountV1GetBadgeBookmarks.d.ts.map +1 -0
  83. package/funcs/internalAccountV1GetBadgeBookmarks.js +102 -0
  84. package/funcs/internalAccountV1GetBadgeBookmarks.js.map +1 -0
  85. package/funcs/internalAccountV1GetOwnedBadges.d.ts +10 -0
  86. package/funcs/internalAccountV1GetOwnedBadges.d.ts.map +1 -0
  87. package/funcs/internalAccountV1GetOwnedBadges.js +102 -0
  88. package/funcs/internalAccountV1GetOwnedBadges.js.map +1 -0
  89. package/funcs/internalAccountV1ImagesGet.d.ts +10 -0
  90. package/funcs/internalAccountV1ImagesGet.d.ts.map +1 -0
  91. package/funcs/internalAccountV1ImagesGet.js +100 -0
  92. package/funcs/internalAccountV1ImagesGet.js.map +1 -0
  93. package/funcs/internalAccountV1ImagesUpdate.d.ts +11 -0
  94. package/funcs/internalAccountV1ImagesUpdate.d.ts.map +1 -0
  95. package/funcs/internalAccountV1ImagesUpdate.js +113 -0
  96. package/funcs/internalAccountV1ImagesUpdate.js.map +1 -0
  97. package/funcs/internalAdminV1GetEvents.d.ts +10 -0
  98. package/funcs/internalAdminV1GetEvents.d.ts.map +1 -0
  99. package/funcs/internalAdminV1GetEvents.js +102 -0
  100. package/funcs/internalAdminV1GetEvents.js.map +1 -0
  101. package/funcs/internalAdminV1UpdateEvent.d.ts +11 -0
  102. package/funcs/internalAdminV1UpdateEvent.d.ts.map +1 -0
  103. package/funcs/internalAdminV1UpdateEvent.js +113 -0
  104. package/funcs/internalAdminV1UpdateEvent.js.map +1 -0
  105. package/funcs/internalAdminV1UpdateResources.d.ts +11 -0
  106. package/funcs/internalAdminV1UpdateResources.d.ts.map +1 -0
  107. package/funcs/internalAdminV1UpdateResources.js +111 -0
  108. package/funcs/internalAdminV1UpdateResources.js.map +1 -0
  109. package/funcs/internalAdminV1UpdateRoles.d.ts +11 -0
  110. package/funcs/internalAdminV1UpdateRoles.d.ts.map +1 -0
  111. package/funcs/internalAdminV1UpdateRoles.js +111 -0
  112. package/funcs/internalAdminV1UpdateRoles.js.map +1 -0
  113. package/funcs/internalBadgeV1Search.d.ts +11 -0
  114. package/funcs/internalBadgeV1Search.d.ts.map +1 -0
  115. package/funcs/internalBadgeV1Search.js +113 -0
  116. package/funcs/internalBadgeV1Search.js.map +1 -0
  117. package/funcs/internalCheck.d.ts +16 -0
  118. package/funcs/internalCheck.d.ts.map +1 -0
  119. package/funcs/internalCheck.js +106 -0
  120. package/funcs/internalCheck.js.map +1 -0
  121. package/funcs/internalCreateDeveloperApp.d.ts +11 -0
  122. package/funcs/internalCreateDeveloperApp.d.ts.map +1 -0
  123. package/funcs/internalCreateDeveloperApp.js +111 -0
  124. package/funcs/internalCreateDeveloperApp.js.map +1 -0
  125. package/funcs/internalDeleteDeveloperApp.d.ts +11 -0
  126. package/funcs/internalDeleteDeveloperApp.d.ts.map +1 -0
  127. package/funcs/internalDeleteDeveloperApp.js +111 -0
  128. package/funcs/internalDeleteDeveloperApp.js.map +1 -0
  129. package/funcs/internalDeleteImages.d.ts +11 -0
  130. package/funcs/internalDeleteImages.d.ts.map +1 -0
  131. package/funcs/internalDeleteImages.js +113 -0
  132. package/funcs/internalDeleteImages.js.map +1 -0
  133. package/funcs/{publicGetFriends.d.ts → internalGetAccount.d.ts} +2 -2
  134. package/funcs/internalGetAccount.d.ts.map +1 -0
  135. package/funcs/internalGetAccount.js +113 -0
  136. package/funcs/internalGetAccount.js.map +1 -0
  137. package/funcs/internalGetStaff.d.ts +10 -0
  138. package/funcs/internalGetStaff.d.ts.map +1 -0
  139. package/funcs/{dataGetStaff.js → internalGetStaff.js} +3 -3
  140. package/funcs/internalGetStaff.js.map +1 -0
  141. package/funcs/{dataGetStaff.d.ts → internalGetTags.d.ts} +2 -2
  142. package/funcs/internalGetTags.d.ts.map +1 -0
  143. package/funcs/internalGetTags.js +102 -0
  144. package/funcs/internalGetTags.js.map +1 -0
  145. package/funcs/internalSendEmailVerification.d.ts +10 -0
  146. package/funcs/internalSendEmailVerification.d.ts.map +1 -0
  147. package/funcs/internalSendEmailVerification.js +111 -0
  148. package/funcs/internalSendEmailVerification.js.map +1 -0
  149. package/funcs/internalUpdateApp.d.ts +11 -0
  150. package/funcs/internalUpdateApp.d.ts.map +1 -0
  151. package/funcs/internalUpdateApp.js +111 -0
  152. package/funcs/internalUpdateApp.js.map +1 -0
  153. package/funcs/internalUploadImages.d.ts +11 -0
  154. package/funcs/internalUploadImages.d.ts.map +1 -0
  155. package/funcs/internalUploadImages.js +113 -0
  156. package/funcs/internalUploadImages.js.map +1 -0
  157. package/funcs/internalVerifyEmail.d.ts +11 -0
  158. package/funcs/{publicGetDataPoints.d.ts.map → internalVerifyEmail.d.ts.map} +1 -1
  159. package/funcs/internalVerifyEmail.js +113 -0
  160. package/funcs/{publicGetDataPoints.js.map → internalVerifyEmail.js.map} +1 -1
  161. package/jsr.json +1 -1
  162. package/lib/config.d.ts +3 -3
  163. package/lib/config.js +3 -3
  164. package/lib/retries.js +0 -1
  165. package/lib/retries.js.map +1 -1
  166. package/models/components/v1stats.d.ts +0 -5
  167. package/models/components/v1stats.d.ts.map +1 -1
  168. package/models/components/v1stats.js +0 -2
  169. package/models/components/v1stats.js.map +1 -1
  170. package/package.json +6 -7
  171. package/sdk/account.d.ts +6 -0
  172. package/sdk/account.d.ts.map +1 -1
  173. package/sdk/account.js +24 -0
  174. package/sdk/account.js.map +1 -1
  175. package/sdk/data.d.ts +0 -1
  176. package/sdk/data.d.ts.map +1 -1
  177. package/sdk/data.js +0 -4
  178. package/sdk/data.js.map +1 -1
  179. package/sdk/event.d.ts +8 -0
  180. package/sdk/event.d.ts.map +1 -0
  181. package/sdk/event.js +20 -0
  182. package/sdk/event.js.map +1 -0
  183. package/sdk/{public.d.ts → external.d.ts} +3 -2
  184. package/sdk/external.d.ts.map +1 -0
  185. package/sdk/external.js +40 -0
  186. package/sdk/external.js.map +1 -0
  187. package/sdk/internal.d.ts +34 -0
  188. package/sdk/internal.d.ts.map +1 -0
  189. package/sdk/internal.js +106 -0
  190. package/sdk/internal.js.map +1 -0
  191. package/sdk/sdk.d.ts +11 -5
  192. package/sdk/sdk.d.ts.map +1 -1
  193. package/sdk/sdk.js +14 -6
  194. package/sdk/sdk.js.map +1 -1
  195. package/src/funcs/accountAdminV1UpdateResources.ts +148 -0
  196. package/src/funcs/accountAdminV1UpdateRoles.ts +148 -0
  197. package/src/funcs/accountCreateDeveloperApp.ts +152 -0
  198. package/src/funcs/accountDeleteDeveloperApp.ts +154 -0
  199. package/src/funcs/accountGetAccount.ts +149 -0
  200. package/src/funcs/accountUpdateApp.ts +154 -0
  201. package/src/funcs/eventAdminV1GetEvents.ts +132 -0
  202. package/src/funcs/eventAdminV1UpdateEvent.ts +150 -0
  203. package/src/funcs/{publicGetApps.ts → externalGetApps.ts} +1 -1
  204. package/src/funcs/{publicGetBadges.ts → externalGetBadges.ts} +1 -1
  205. package/src/funcs/{publicGetDataPoints.ts → externalGetDataPoints.ts} +1 -1
  206. package/src/funcs/{publicGetFriends.ts → externalGetFriends.ts} +1 -1
  207. package/src/funcs/{publicGetInfo.ts → externalGetInfo.ts} +1 -1
  208. package/src/funcs/{publicGetLeaderboardHistory.ts → externalGetLeaderboardHistory.ts} +1 -1
  209. package/src/funcs/externalStatsV1StatsGet.ts +132 -0
  210. package/src/funcs/internalAccountV1BookmarkBadge.ts +150 -0
  211. package/src/funcs/internalAccountV1ConnectionReconnect.ts +149 -0
  212. package/src/funcs/internalAccountV1GetBadgeBookmarks.ts +132 -0
  213. package/src/funcs/internalAccountV1GetOwnedBadges.ts +132 -0
  214. package/src/funcs/internalAccountV1ImagesGet.ts +127 -0
  215. package/src/funcs/internalAccountV1ImagesUpdate.ts +149 -0
  216. package/src/funcs/internalAdminV1GetEvents.ts +132 -0
  217. package/src/funcs/internalAdminV1UpdateEvent.ts +150 -0
  218. package/src/funcs/internalAdminV1UpdateResources.ts +148 -0
  219. package/src/funcs/internalAdminV1UpdateRoles.ts +148 -0
  220. package/src/funcs/internalBadgeV1Search.ts +149 -0
  221. package/src/funcs/internalCheck.ts +133 -0
  222. package/src/funcs/internalCreateDeveloperApp.ts +152 -0
  223. package/src/funcs/internalDeleteDeveloperApp.ts +154 -0
  224. package/src/funcs/internalDeleteImages.ts +149 -0
  225. package/src/funcs/internalGetAccount.ts +149 -0
  226. package/src/funcs/{dataGetStaff.ts → internalGetStaff.ts} +1 -1
  227. package/src/funcs/internalGetTags.ts +132 -0
  228. package/src/funcs/internalSendEmailVerification.ts +156 -0
  229. package/src/funcs/internalUpdateApp.ts +154 -0
  230. package/src/funcs/internalUploadImages.ts +149 -0
  231. package/src/funcs/internalVerifyEmail.ts +149 -0
  232. package/src/lib/config.ts +3 -3
  233. package/src/lib/retries.ts +0 -1
  234. package/src/models/components/v1stats.ts +0 -7
  235. package/src/sdk/account.ts +72 -0
  236. package/src/sdk/data.ts +0 -10
  237. package/src/sdk/event.ts +32 -0
  238. package/src/sdk/{public.ts → external.ts} +23 -13
  239. package/src/sdk/internal.ts +266 -0
  240. package/src/sdk/sdk.ts +21 -9
  241. package/funcs/dataGetStaff.d.ts.map +0 -1
  242. package/funcs/dataGetStaff.js.map +0 -1
  243. package/funcs/publicGetApps.d.ts.map +0 -1
  244. package/funcs/publicGetApps.js.map +0 -1
  245. package/funcs/publicGetInfo.d.ts.map +0 -1
  246. package/funcs/publicGetInfo.js.map +0 -1
  247. package/funcs/publicGetLeaderboardHistory.d.ts.map +0 -1
  248. package/funcs/publicGetLeaderboardHistory.js.map +0 -1
  249. package/sdk/public.d.ts.map +0 -1
  250. package/sdk/public.js +0 -36
  251. package/sdk/public.js.map +0 -1
@@ -0,0 +1,168 @@
1
+ # Event
2
+ (*event*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [adminV1GetEvents](#adminv1getevents)
9
+ * [adminV1UpdateEvent](#adminv1updateevent)
10
+
11
+ ## adminV1GetEvents
12
+
13
+ ### Example Usage
14
+
15
+ ```typescript
16
+ import { SteamSets } from "@steamsets/client-ts";
17
+
18
+ const steamSets = new SteamSets({
19
+ token: "<YOUR_BEARER_TOKEN_HERE>",
20
+ });
21
+
22
+ async function run() {
23
+ const result = await steamSets.event.adminV1GetEvents();
24
+
25
+ // Handle the result
26
+ console.log(result);
27
+ }
28
+
29
+ run();
30
+ ```
31
+
32
+ ### Standalone function
33
+
34
+ The standalone function version of this method:
35
+
36
+ ```typescript
37
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
38
+ import { eventAdminV1GetEvents } from "@steamsets/client-ts/funcs/eventAdminV1GetEvents.js";
39
+
40
+ // Use `SteamSetsCore` for best tree-shaking performance.
41
+ // You can create one instance of it to use across an application.
42
+ const steamSets = new SteamSetsCore({
43
+ token: "<YOUR_BEARER_TOKEN_HERE>",
44
+ });
45
+
46
+ async function run() {
47
+ const res = await eventAdminV1GetEvents(steamSets);
48
+
49
+ if (!res.ok) {
50
+ throw res.error;
51
+ }
52
+
53
+ const { value: result } = res;
54
+
55
+ // Handle the result
56
+ console.log(result);
57
+ }
58
+
59
+ run();
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Parameter | Type | Required | Description |
65
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
66
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
67
+ | `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. |
68
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
69
+
70
+ ### Response
71
+
72
+ **Promise\<[operations.AdminV1GetEventsResponse](../../models/operations/adminv1geteventsresponse.md)\>**
73
+
74
+ ### Errors
75
+
76
+ | Error Type | Status Code | Content Type |
77
+ | ------------------------ | ------------------------ | ------------------------ |
78
+ | errors.ErrorModel | 403, 404, 429 | application/problem+json |
79
+ | errors.ErrorModel | 500 | application/problem+json |
80
+ | errors.SDKError | 4XX, 5XX | \*/\* |
81
+
82
+ ## adminV1UpdateEvent
83
+
84
+ ### Example Usage
85
+
86
+ ```typescript
87
+ import { SteamSets } from "@steamsets/client-ts";
88
+
89
+ const steamSets = new SteamSets({
90
+ token: "<YOUR_BEARER_TOKEN_HERE>",
91
+ });
92
+
93
+ async function run() {
94
+ const result = await steamSets.event.adminV1UpdateEvent({
95
+ eventId: "evt_123456",
96
+ mappings: [
97
+ {
98
+ appId: 730,
99
+ steamId: 76561198842603730,
100
+ },
101
+ ],
102
+ });
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 { eventAdminV1UpdateEvent } from "@steamsets/client-ts/funcs/eventAdminV1UpdateEvent.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 eventAdminV1UpdateEvent(steamSets, {
127
+ eventId: "evt_123456",
128
+ mappings: [
129
+ {
130
+ appId: 730,
131
+ steamId: 76561198842603730,
132
+ },
133
+ ],
134
+ });
135
+
136
+ if (!res.ok) {
137
+ throw res.error;
138
+ }
139
+
140
+ const { value: result } = res;
141
+
142
+ // Handle the result
143
+ console.log(result);
144
+ }
145
+
146
+ run();
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Parameter | Type | Required | Description |
152
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
153
+ | `request` | [components.V1AdminUpdateEventRequestBody](../../models/components/v1adminupdateeventrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
154
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
155
+ | `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. |
156
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
157
+
158
+ ### Response
159
+
160
+ **Promise\<[operations.AdminV1UpdateEventResponse](../../models/operations/adminv1updateeventresponse.md)\>**
161
+
162
+ ### Errors
163
+
164
+ | Error Type | Status Code | Content Type |
165
+ | ------------------------ | ------------------------ | ------------------------ |
166
+ | errors.ErrorModel | 403, 404, 422, 429 | application/problem+json |
167
+ | errors.ErrorModel | 500 | application/problem+json |
168
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -1,9 +1,9 @@
1
- # Public
2
- (*public*)
1
+ # External
2
+ (*external*)
3
3
 
4
4
  ## Overview
5
5
 
6
- This API can be accessed by anyone with an API Key
6
+ Any requests here may be accessed by anyone with an API Key.
7
7
 
8
8
  ### Available Operations
9
9
 
@@ -13,6 +13,7 @@ This API can be accessed by anyone with an API Key
13
13
  * [getFriends](#getfriends)
14
14
  * [getInfo](#getinfo)
15
15
  * [getLeaderboardHistory](#getleaderboardhistory)
16
+ * [statsV1StatsGet](#statsv1statsget)
16
17
 
17
18
  ## getApps
18
19
 
@@ -26,7 +27,7 @@ const steamSets = new SteamSets({
26
27
  });
27
28
 
28
29
  async function run() {
29
- const result = await steamSets.public.getApps({
30
+ const result = await steamSets.external.getApps({
30
31
  page: 1,
31
32
  });
32
33
 
@@ -43,7 +44,7 @@ The standalone function version of this method:
43
44
 
44
45
  ```typescript
45
46
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
46
- import { publicGetApps } from "@steamsets/client-ts/funcs/publicGetApps.js";
47
+ import { externalGetApps } from "@steamsets/client-ts/funcs/externalGetApps.js";
47
48
 
48
49
  // Use `SteamSetsCore` for best tree-shaking performance.
49
50
  // You can create one instance of it to use across an application.
@@ -52,7 +53,7 @@ const steamSets = new SteamSetsCore({
52
53
  });
53
54
 
54
55
  async function run() {
55
- const res = await publicGetApps(steamSets, {
56
+ const res = await externalGetApps(steamSets, {
56
57
  page: 1,
57
58
  });
58
59
 
@@ -102,7 +103,7 @@ const steamSets = new SteamSets({
102
103
  });
103
104
 
104
105
  async function run() {
105
- const result = await steamSets.public.getBadges({
106
+ const result = await steamSets.external.getBadges({
106
107
  page: 1,
107
108
  });
108
109
 
@@ -119,7 +120,7 @@ The standalone function version of this method:
119
120
 
120
121
  ```typescript
121
122
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
122
- import { publicGetBadges } from "@steamsets/client-ts/funcs/publicGetBadges.js";
123
+ import { externalGetBadges } from "@steamsets/client-ts/funcs/externalGetBadges.js";
123
124
 
124
125
  // Use `SteamSetsCore` for best tree-shaking performance.
125
126
  // You can create one instance of it to use across an application.
@@ -128,7 +129,7 @@ const steamSets = new SteamSetsCore({
128
129
  });
129
130
 
130
131
  async function run() {
131
- const res = await publicGetBadges(steamSets, {
132
+ const res = await externalGetBadges(steamSets, {
132
133
  page: 1,
133
134
  });
134
135
 
@@ -178,7 +179,7 @@ const steamSets = new SteamSets({
178
179
  });
179
180
 
180
181
  async function run() {
181
- const result = await steamSets.public.getDataPoints({});
182
+ const result = await steamSets.external.getDataPoints({});
182
183
 
183
184
  // Handle the result
184
185
  console.log(result);
@@ -193,7 +194,7 @@ The standalone function version of this method:
193
194
 
194
195
  ```typescript
195
196
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
196
- import { publicGetDataPoints } from "@steamsets/client-ts/funcs/publicGetDataPoints.js";
197
+ import { externalGetDataPoints } from "@steamsets/client-ts/funcs/externalGetDataPoints.js";
197
198
 
198
199
  // Use `SteamSetsCore` for best tree-shaking performance.
199
200
  // You can create one instance of it to use across an application.
@@ -202,7 +203,7 @@ const steamSets = new SteamSetsCore({
202
203
  });
203
204
 
204
205
  async function run() {
205
- const res = await publicGetDataPoints(steamSets, {});
206
+ const res = await externalGetDataPoints(steamSets, {});
206
207
 
207
208
  if (!res.ok) {
208
209
  throw res.error;
@@ -250,7 +251,7 @@ const steamSets = new SteamSets({
250
251
  });
251
252
 
252
253
  async function run() {
253
- const result = await steamSets.public.getFriends({});
254
+ const result = await steamSets.external.getFriends({});
254
255
 
255
256
  // Handle the result
256
257
  console.log(result);
@@ -265,7 +266,7 @@ The standalone function version of this method:
265
266
 
266
267
  ```typescript
267
268
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
268
- import { publicGetFriends } from "@steamsets/client-ts/funcs/publicGetFriends.js";
269
+ import { externalGetFriends } from "@steamsets/client-ts/funcs/externalGetFriends.js";
269
270
 
270
271
  // Use `SteamSetsCore` for best tree-shaking performance.
271
272
  // You can create one instance of it to use across an application.
@@ -274,7 +275,7 @@ const steamSets = new SteamSetsCore({
274
275
  });
275
276
 
276
277
  async function run() {
277
- const res = await publicGetFriends(steamSets, {});
278
+ const res = await externalGetFriends(steamSets, {});
278
279
 
279
280
  if (!res.ok) {
280
281
  throw res.error;
@@ -322,7 +323,7 @@ const steamSets = new SteamSets({
322
323
  });
323
324
 
324
325
  async function run() {
325
- const result = await steamSets.public.getInfo({});
326
+ const result = await steamSets.external.getInfo({});
326
327
 
327
328
  // Handle the result
328
329
  console.log(result);
@@ -337,7 +338,7 @@ The standalone function version of this method:
337
338
 
338
339
  ```typescript
339
340
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
340
- import { publicGetInfo } from "@steamsets/client-ts/funcs/publicGetInfo.js";
341
+ import { externalGetInfo } from "@steamsets/client-ts/funcs/externalGetInfo.js";
341
342
 
342
343
  // Use `SteamSetsCore` for best tree-shaking performance.
343
344
  // You can create one instance of it to use across an application.
@@ -346,7 +347,7 @@ const steamSets = new SteamSetsCore({
346
347
  });
347
348
 
348
349
  async function run() {
349
- const res = await publicGetInfo(steamSets, {});
350
+ const res = await externalGetInfo(steamSets, {});
350
351
 
351
352
  if (!res.ok) {
352
353
  throw res.error;
@@ -394,7 +395,7 @@ const steamSets = new SteamSets({
394
395
  });
395
396
 
396
397
  async function run() {
397
- const result = await steamSets.public.getLeaderboardHistory({});
398
+ const result = await steamSets.external.getLeaderboardHistory({});
398
399
 
399
400
  // Handle the result
400
401
  console.log(result);
@@ -409,7 +410,7 @@ The standalone function version of this method:
409
410
 
410
411
  ```typescript
411
412
  import { SteamSetsCore } from "@steamsets/client-ts/core.js";
412
- import { publicGetLeaderboardHistory } from "@steamsets/client-ts/funcs/publicGetLeaderboardHistory.js";
413
+ import { externalGetLeaderboardHistory } from "@steamsets/client-ts/funcs/externalGetLeaderboardHistory.js";
413
414
 
414
415
  // Use `SteamSetsCore` for best tree-shaking performance.
415
416
  // You can create one instance of it to use across an application.
@@ -418,7 +419,7 @@ const steamSets = new SteamSetsCore({
418
419
  });
419
420
 
420
421
  async function run() {
421
- const res = await publicGetLeaderboardHistory(steamSets, {});
422
+ const res = await externalGetLeaderboardHistory(steamSets, {});
422
423
 
423
424
  if (!res.ok) {
424
425
  throw res.error;
@@ -452,4 +453,75 @@ run();
452
453
  | ------------------------ | ------------------------ | ------------------------ |
453
454
  | errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
454
455
  | errors.ErrorModel | 500 | application/problem+json |
456
+ | errors.SDKError | 4XX, 5XX | \*/\* |
457
+
458
+ ## statsV1StatsGet
459
+
460
+ ### Example Usage
461
+
462
+ ```typescript
463
+ import { SteamSets } from "@steamsets/client-ts";
464
+
465
+ const steamSets = new SteamSets({
466
+ token: "<YOUR_BEARER_TOKEN_HERE>",
467
+ });
468
+
469
+ async function run() {
470
+ const result = await steamSets.external.statsV1StatsGet();
471
+
472
+ // Handle the result
473
+ console.log(result);
474
+ }
475
+
476
+ run();
477
+ ```
478
+
479
+ ### Standalone function
480
+
481
+ The standalone function version of this method:
482
+
483
+ ```typescript
484
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
485
+ import { externalStatsV1StatsGet } from "@steamsets/client-ts/funcs/externalStatsV1StatsGet.js";
486
+
487
+ // Use `SteamSetsCore` for best tree-shaking performance.
488
+ // You can create one instance of it to use across an application.
489
+ const steamSets = new SteamSetsCore({
490
+ token: "<YOUR_BEARER_TOKEN_HERE>",
491
+ });
492
+
493
+ async function run() {
494
+ const res = await externalStatsV1StatsGet(steamSets);
495
+
496
+ if (!res.ok) {
497
+ throw res.error;
498
+ }
499
+
500
+ const { value: result } = res;
501
+
502
+ // Handle the result
503
+ console.log(result);
504
+ }
505
+
506
+ run();
507
+ ```
508
+
509
+ ### Parameters
510
+
511
+ | Parameter | Type | Required | Description |
512
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
513
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
514
+ | `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. |
515
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
516
+
517
+ ### Response
518
+
519
+ **Promise\<[operations.StatsV1StatsGetResponse](../../models/operations/statsv1statsgetresponse.md)\>**
520
+
521
+ ### Errors
522
+
523
+ | Error Type | Status Code | Content Type |
524
+ | ------------------------ | ------------------------ | ------------------------ |
525
+ | errors.ErrorModel | 404, 429 | application/problem+json |
526
+ | errors.ErrorModel | 500 | application/problem+json |
455
527
  | errors.SDKError | 4XX, 5XX | \*/\* |