@steamsets/client-ts 0.14.26 → 0.14.28

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 (271) hide show
  1. package/README.md +83 -17
  2. package/docs/sdks/account/README.md +497 -13
  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 +5 -85
  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 -29
  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/leaderboardaccount.d.ts +0 -5
  167. package/models/components/leaderboardaccount.d.ts.map +1 -1
  168. package/models/components/leaderboardaccount.js +0 -2
  169. package/models/components/leaderboardaccount.js.map +1 -1
  170. package/models/components/v1accountfriend.d.ts +0 -5
  171. package/models/components/v1accountfriend.d.ts.map +1 -1
  172. package/models/components/v1accountfriend.js +0 -2
  173. package/models/components/v1accountfriend.js.map +1 -1
  174. package/models/components/v1accountinforesponsebody.d.ts +0 -5
  175. package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
  176. package/models/components/v1accountinforesponsebody.js +0 -2
  177. package/models/components/v1accountinforesponsebody.js.map +1 -1
  178. package/models/components/v1accountleaderboardaccount.d.ts +0 -5
  179. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  180. package/models/components/v1accountleaderboardaccount.js +0 -2
  181. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  182. package/models/components/v1stats.d.ts +0 -5
  183. package/models/components/v1stats.d.ts.map +1 -1
  184. package/models/components/v1stats.js +0 -2
  185. package/models/components/v1stats.js.map +1 -1
  186. package/package.json +6 -7
  187. package/sdk/account.d.ts +6 -0
  188. package/sdk/account.d.ts.map +1 -1
  189. package/sdk/account.js +24 -0
  190. package/sdk/account.js.map +1 -1
  191. package/sdk/data.d.ts +0 -1
  192. package/sdk/data.d.ts.map +1 -1
  193. package/sdk/data.js +0 -4
  194. package/sdk/data.js.map +1 -1
  195. package/sdk/event.d.ts +8 -0
  196. package/sdk/event.d.ts.map +1 -0
  197. package/sdk/event.js +20 -0
  198. package/sdk/event.js.map +1 -0
  199. package/sdk/{public.d.ts → external.d.ts} +3 -2
  200. package/sdk/external.d.ts.map +1 -0
  201. package/sdk/external.js +40 -0
  202. package/sdk/external.js.map +1 -0
  203. package/sdk/internal.d.ts +34 -0
  204. package/sdk/internal.d.ts.map +1 -0
  205. package/sdk/internal.js +106 -0
  206. package/sdk/internal.js.map +1 -0
  207. package/sdk/sdk.d.ts +11 -5
  208. package/sdk/sdk.d.ts.map +1 -1
  209. package/sdk/sdk.js +14 -6
  210. package/sdk/sdk.js.map +1 -1
  211. package/src/funcs/accountAdminV1UpdateResources.ts +148 -0
  212. package/src/funcs/accountAdminV1UpdateRoles.ts +148 -0
  213. package/src/funcs/accountCreateDeveloperApp.ts +152 -0
  214. package/src/funcs/accountDeleteDeveloperApp.ts +154 -0
  215. package/src/funcs/accountGetAccount.ts +149 -0
  216. package/src/funcs/accountUpdateApp.ts +154 -0
  217. package/src/funcs/eventAdminV1GetEvents.ts +132 -0
  218. package/src/funcs/eventAdminV1UpdateEvent.ts +150 -0
  219. package/src/funcs/{publicGetApps.ts → externalGetApps.ts} +1 -1
  220. package/src/funcs/{publicGetBadges.ts → externalGetBadges.ts} +1 -1
  221. package/src/funcs/{publicGetDataPoints.ts → externalGetDataPoints.ts} +1 -1
  222. package/src/funcs/{publicGetFriends.ts → externalGetFriends.ts} +1 -1
  223. package/src/funcs/{publicGetInfo.ts → externalGetInfo.ts} +1 -1
  224. package/src/funcs/{publicGetLeaderboardHistory.ts → externalGetLeaderboardHistory.ts} +1 -1
  225. package/src/funcs/externalStatsV1StatsGet.ts +132 -0
  226. package/src/funcs/internalAccountV1BookmarkBadge.ts +150 -0
  227. package/src/funcs/internalAccountV1ConnectionReconnect.ts +149 -0
  228. package/src/funcs/internalAccountV1GetBadgeBookmarks.ts +132 -0
  229. package/src/funcs/internalAccountV1GetOwnedBadges.ts +132 -0
  230. package/src/funcs/internalAccountV1ImagesGet.ts +127 -0
  231. package/src/funcs/internalAccountV1ImagesUpdate.ts +149 -0
  232. package/src/funcs/internalAdminV1GetEvents.ts +132 -0
  233. package/src/funcs/internalAdminV1UpdateEvent.ts +150 -0
  234. package/src/funcs/internalAdminV1UpdateResources.ts +148 -0
  235. package/src/funcs/internalAdminV1UpdateRoles.ts +148 -0
  236. package/src/funcs/internalBadgeV1Search.ts +149 -0
  237. package/src/funcs/internalCheck.ts +133 -0
  238. package/src/funcs/internalCreateDeveloperApp.ts +152 -0
  239. package/src/funcs/internalDeleteDeveloperApp.ts +154 -0
  240. package/src/funcs/internalDeleteImages.ts +149 -0
  241. package/src/funcs/internalGetAccount.ts +149 -0
  242. package/src/funcs/{dataGetStaff.ts → internalGetStaff.ts} +1 -1
  243. package/src/funcs/internalGetTags.ts +132 -0
  244. package/src/funcs/internalSendEmailVerification.ts +156 -0
  245. package/src/funcs/internalUpdateApp.ts +154 -0
  246. package/src/funcs/internalUploadImages.ts +149 -0
  247. package/src/funcs/internalVerifyEmail.ts +149 -0
  248. package/src/lib/config.ts +3 -3
  249. package/src/lib/retries.ts +0 -1
  250. package/src/models/components/leaderboardaccount.ts +0 -7
  251. package/src/models/components/v1accountfriend.ts +0 -7
  252. package/src/models/components/v1accountinforesponsebody.ts +0 -7
  253. package/src/models/components/v1accountleaderboardaccount.ts +0 -7
  254. package/src/models/components/v1stats.ts +0 -7
  255. package/src/sdk/account.ts +72 -0
  256. package/src/sdk/data.ts +0 -10
  257. package/src/sdk/event.ts +32 -0
  258. package/src/sdk/{public.ts → external.ts} +23 -13
  259. package/src/sdk/internal.ts +266 -0
  260. package/src/sdk/sdk.ts +21 -9
  261. package/funcs/dataGetStaff.d.ts.map +0 -1
  262. package/funcs/dataGetStaff.js.map +0 -1
  263. package/funcs/publicGetApps.d.ts.map +0 -1
  264. package/funcs/publicGetApps.js.map +0 -1
  265. package/funcs/publicGetInfo.d.ts.map +0 -1
  266. package/funcs/publicGetInfo.js.map +0 -1
  267. package/funcs/publicGetLeaderboardHistory.d.ts.map +0 -1
  268. package/funcs/publicGetLeaderboardHistory.js.map +0 -1
  269. package/sdk/public.d.ts.map +0 -1
  270. package/sdk/public.js +0 -36
  271. package/sdk/public.js.map +0 -1
@@ -0,0 +1,154 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ export async function internalUpdateApp(
28
+ client: SteamSetsCore,
29
+ request: components.V1AccountDeveloperAppUpdateRequestBody,
30
+ options?: RequestOptions,
31
+ ): Promise<
32
+ Result<
33
+ operations.AccountV1SettingsDeveloperAppUpdateResponse,
34
+ | errors.ErrorModel
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const parsed = safeParse(
46
+ request,
47
+ (value) =>
48
+ components.V1AccountDeveloperAppUpdateRequestBody$outboundSchema.parse(
49
+ value,
50
+ ),
51
+ "Input validation failed",
52
+ );
53
+ if (!parsed.ok) {
54
+ return parsed;
55
+ }
56
+ const payload = parsed.value;
57
+ const body = encodeJSON("body", payload, { explode: true });
58
+
59
+ const path = pathToFunc("/account.v1.AccountService/DeveloperAppUpdate")();
60
+
61
+ const headers = new Headers(compactMap({
62
+ "Content-Type": "application/json",
63
+ Accept: "application/json",
64
+ }));
65
+
66
+ const secConfig = await extractSecurity(client._options.token);
67
+ const securityInput = secConfig == null ? {} : { token: secConfig };
68
+ const requestSecurity = resolveGlobalSecurity(securityInput);
69
+
70
+ const context = {
71
+ operationID: "account.v1.settings.developer-app-update",
72
+ oAuth2Scopes: [],
73
+
74
+ resolvedSecurity: requestSecurity,
75
+
76
+ securitySource: client._options.token,
77
+ retryConfig: options?.retries
78
+ || client._options.retryConfig
79
+ || {
80
+ strategy: "backoff",
81
+ backoff: {
82
+ initialInterval: 500,
83
+ maxInterval: 5000,
84
+ exponent: 1.5,
85
+ maxElapsedTime: 60000,
86
+ },
87
+ retryConnectionErrors: true,
88
+ }
89
+ || { strategy: "none" },
90
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
91
+ };
92
+
93
+ const requestRes = client._createRequest(context, {
94
+ security: requestSecurity,
95
+ method: "POST",
96
+ baseURL: options?.serverURL,
97
+ path: path,
98
+ headers: headers,
99
+ body: body,
100
+ uaHeader: "x-speakeasy-user-agent",
101
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
102
+ }, options);
103
+ if (!requestRes.ok) {
104
+ return requestRes;
105
+ }
106
+ const req = requestRes.value;
107
+
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return doResult;
116
+ }
117
+ const response = doResult.value;
118
+
119
+ const responseFields = {
120
+ HttpMeta: { Response: response, Request: req },
121
+ };
122
+
123
+ const [result] = await M.match<
124
+ operations.AccountV1SettingsDeveloperAppUpdateResponse,
125
+ | errors.ErrorModel
126
+ | errors.ErrorModel
127
+ | SDKError
128
+ | SDKValidationError
129
+ | UnexpectedClientError
130
+ | InvalidRequestError
131
+ | RequestAbortedError
132
+ | RequestTimeoutError
133
+ | ConnectionError
134
+ >(
135
+ M.json(
136
+ 200,
137
+ operations.AccountV1SettingsDeveloperAppUpdateResponse$inboundSchema,
138
+ { key: "V1AccountDeveloperAppUpdateResponseBody" },
139
+ ),
140
+ M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
141
+ ctype: "application/problem+json",
142
+ }),
143
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
144
+ ctype: "application/problem+json",
145
+ }),
146
+ M.fail("4XX"),
147
+ M.fail("5XX"),
148
+ )(response, req, { extraFields: responseFields });
149
+ if (!result.ok) {
150
+ return result;
151
+ }
152
+
153
+ return result;
154
+ }
@@ -0,0 +1,149 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ export async function internalUploadImages(
28
+ client: SteamSetsCore,
29
+ request: components.V1UploadImagesRequestBody,
30
+ options?: RequestOptions,
31
+ ): Promise<
32
+ Result<
33
+ operations.AccountV1ImagesUploadResponse,
34
+ | errors.ErrorModel
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const parsed = safeParse(
46
+ request,
47
+ (value) => components.V1UploadImagesRequestBody$outboundSchema.parse(value),
48
+ "Input validation failed",
49
+ );
50
+ if (!parsed.ok) {
51
+ return parsed;
52
+ }
53
+ const payload = parsed.value;
54
+ const body = encodeJSON("body", payload, { explode: true });
55
+
56
+ const path = pathToFunc("/account.v1.AccountService/UploadImages")();
57
+
58
+ const headers = new Headers(compactMap({
59
+ "Content-Type": "application/json",
60
+ Accept: "application/json",
61
+ }));
62
+
63
+ const secConfig = await extractSecurity(client._options.token);
64
+ const securityInput = secConfig == null ? {} : { token: secConfig };
65
+ const requestSecurity = resolveGlobalSecurity(securityInput);
66
+
67
+ const context = {
68
+ operationID: "account.v1.images.upload",
69
+ oAuth2Scopes: [],
70
+
71
+ resolvedSecurity: requestSecurity,
72
+
73
+ securitySource: client._options.token,
74
+ retryConfig: options?.retries
75
+ || client._options.retryConfig
76
+ || {
77
+ strategy: "backoff",
78
+ backoff: {
79
+ initialInterval: 500,
80
+ maxInterval: 5000,
81
+ exponent: 1.5,
82
+ maxElapsedTime: 60000,
83
+ },
84
+ retryConnectionErrors: true,
85
+ }
86
+ || { strategy: "none" },
87
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
88
+ };
89
+
90
+ const requestRes = client._createRequest(context, {
91
+ security: requestSecurity,
92
+ method: "POST",
93
+ baseURL: options?.serverURL,
94
+ path: path,
95
+ headers: headers,
96
+ body: body,
97
+ uaHeader: "x-speakeasy-user-agent",
98
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
99
+ }, options);
100
+ if (!requestRes.ok) {
101
+ return requestRes;
102
+ }
103
+ const req = requestRes.value;
104
+
105
+ const doResult = await client._do(req, {
106
+ context,
107
+ errorCodes: ["422", "4XX", "500", "5XX"],
108
+ retryConfig: context.retryConfig,
109
+ retryCodes: context.retryCodes,
110
+ });
111
+ if (!doResult.ok) {
112
+ return doResult;
113
+ }
114
+ const response = doResult.value;
115
+
116
+ const responseFields = {
117
+ HttpMeta: { Response: response, Request: req },
118
+ };
119
+
120
+ const [result] = await M.match<
121
+ operations.AccountV1ImagesUploadResponse,
122
+ | errors.ErrorModel
123
+ | errors.ErrorModel
124
+ | SDKError
125
+ | SDKValidationError
126
+ | UnexpectedClientError
127
+ | InvalidRequestError
128
+ | RequestAbortedError
129
+ | RequestTimeoutError
130
+ | ConnectionError
131
+ >(
132
+ M.json(200, operations.AccountV1ImagesUploadResponse$inboundSchema, {
133
+ key: "V1UploadImagesResponseBody",
134
+ }),
135
+ M.jsonErr(422, errors.ErrorModel$inboundSchema, {
136
+ ctype: "application/problem+json",
137
+ }),
138
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
139
+ ctype: "application/problem+json",
140
+ }),
141
+ M.fail("4XX"),
142
+ M.fail("5XX"),
143
+ )(response, req, { extraFields: responseFields });
144
+ if (!result.ok) {
145
+ return result;
146
+ }
147
+
148
+ return result;
149
+ }
@@ -0,0 +1,149 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ export async function internalVerifyEmail(
28
+ client: SteamSetsCore,
29
+ request: components.V1VerifyEmailRequestBody,
30
+ options?: RequestOptions,
31
+ ): Promise<
32
+ Result<
33
+ operations.AccountV1SettingsVerfyEmailResponse,
34
+ | errors.ErrorModel
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const parsed = safeParse(
46
+ request,
47
+ (value) => components.V1VerifyEmailRequestBody$outboundSchema.parse(value),
48
+ "Input validation failed",
49
+ );
50
+ if (!parsed.ok) {
51
+ return parsed;
52
+ }
53
+ const payload = parsed.value;
54
+ const body = encodeJSON("body", payload, { explode: true });
55
+
56
+ const path = pathToFunc("/account.v1.AccountService/VerifyEmail")();
57
+
58
+ const headers = new Headers(compactMap({
59
+ "Content-Type": "application/json",
60
+ Accept: "application/problem+json",
61
+ }));
62
+
63
+ const secConfig = await extractSecurity(client._options.token);
64
+ const securityInput = secConfig == null ? {} : { token: secConfig };
65
+ const requestSecurity = resolveGlobalSecurity(securityInput);
66
+
67
+ const context = {
68
+ operationID: "account.v1.settings.verfy-email",
69
+ oAuth2Scopes: [],
70
+
71
+ resolvedSecurity: requestSecurity,
72
+
73
+ securitySource: client._options.token,
74
+ retryConfig: options?.retries
75
+ || client._options.retryConfig
76
+ || {
77
+ strategy: "backoff",
78
+ backoff: {
79
+ initialInterval: 500,
80
+ maxInterval: 5000,
81
+ exponent: 1.5,
82
+ maxElapsedTime: 60000,
83
+ },
84
+ retryConnectionErrors: true,
85
+ }
86
+ || { strategy: "none" },
87
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
88
+ };
89
+
90
+ const requestRes = client._createRequest(context, {
91
+ security: requestSecurity,
92
+ method: "POST",
93
+ baseURL: options?.serverURL,
94
+ path: path,
95
+ headers: headers,
96
+ body: body,
97
+ uaHeader: "x-speakeasy-user-agent",
98
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
99
+ }, options);
100
+ if (!requestRes.ok) {
101
+ return requestRes;
102
+ }
103
+ const req = requestRes.value;
104
+
105
+ const doResult = await client._do(req, {
106
+ context,
107
+ errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
108
+ retryConfig: context.retryConfig,
109
+ retryCodes: context.retryCodes,
110
+ });
111
+ if (!doResult.ok) {
112
+ return doResult;
113
+ }
114
+ const response = doResult.value;
115
+
116
+ const responseFields = {
117
+ HttpMeta: { Response: response, Request: req },
118
+ };
119
+
120
+ const [result] = await M.match<
121
+ operations.AccountV1SettingsVerfyEmailResponse,
122
+ | errors.ErrorModel
123
+ | errors.ErrorModel
124
+ | SDKError
125
+ | SDKValidationError
126
+ | UnexpectedClientError
127
+ | InvalidRequestError
128
+ | RequestAbortedError
129
+ | RequestTimeoutError
130
+ | ConnectionError
131
+ >(
132
+ M.nil(204, operations.AccountV1SettingsVerfyEmailResponse$inboundSchema, {
133
+ hdrs: true,
134
+ }),
135
+ M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
136
+ ctype: "application/problem+json",
137
+ }),
138
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
139
+ ctype: "application/problem+json",
140
+ }),
141
+ M.fail("4XX"),
142
+ M.fail("5XX"),
143
+ )(response, req, { extraFields: responseFields });
144
+ if (!result.ok) {
145
+ return result;
146
+ }
147
+
148
+ return result;
149
+ }
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.14.26",
59
- genVersion: "2.497.0",
58
+ sdkVersion: "0.14.28",
59
+ genVersion: "2.500.5",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.14.26 2.497.0 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.14.28 2.500.5 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -158,7 +158,6 @@ async function retryBackoff(
158
158
  const start = Date.now();
159
159
  let x = 0;
160
160
 
161
- // eslint-disable-next-line no-constant-condition
162
161
  while (true) {
163
162
  try {
164
163
  const res = await fn();
@@ -66,10 +66,6 @@ export type LeaderboardAccount = {
66
66
  * The avatar hash of the account
67
67
  */
68
68
  avatar: string;
69
- /**
70
- * The average playtime of the account
71
- */
72
- averagePlaytime: number;
73
69
  /**
74
70
  * The number of awards the account has
75
71
  */
@@ -210,7 +206,6 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
210
206
  appCost: z.number().int(),
211
207
  apps: z.number().int(),
212
208
  avatar: z.string(),
213
- averagePlaytime: z.number().int(),
214
209
  awardsGiven: z.number().int(),
215
210
  awardsReceived: z.number().int(),
216
211
  badges: z.number().int(),
@@ -248,7 +243,6 @@ export type LeaderboardAccount$Outbound = {
248
243
  appCost: number;
249
244
  apps: number;
250
245
  avatar: string;
251
- averagePlaytime: number;
252
246
  awardsGiven: number;
253
247
  awardsReceived: number;
254
248
  badges: number;
@@ -290,7 +284,6 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
290
284
  appCost: z.number().int(),
291
285
  apps: z.number().int(),
292
286
  avatar: z.string(),
293
- averagePlaytime: z.number().int(),
294
287
  awardsGiven: z.number().int(),
295
288
  awardsReceived: z.number().int(),
296
289
  badges: z.number().int(),
@@ -64,10 +64,6 @@ export type V1AccountFriend = {
64
64
  * The avatar hash of the account
65
65
  */
66
66
  avatar: string;
67
- /**
68
- * The average playtime of the account
69
- */
70
- averagePlaytime: number;
71
67
  /**
72
68
  * The number of awards the account has
73
69
  */
@@ -207,7 +203,6 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
207
203
  appCost: z.number().int(),
208
204
  apps: z.number().int(),
209
205
  avatar: z.string(),
210
- averagePlaytime: z.number().int(),
211
206
  awardsGiven: z.number().int(),
212
207
  awardsReceived: z.number().int(),
213
208
  badges: z.number().int(),
@@ -248,7 +243,6 @@ export type V1AccountFriend$Outbound = {
248
243
  appCost: number;
249
244
  apps: number;
250
245
  avatar: string;
251
- averagePlaytime: number;
252
246
  awardsGiven: number;
253
247
  awardsReceived: number;
254
248
  badges: number;
@@ -291,7 +285,6 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
291
285
  appCost: z.number().int(),
292
286
  apps: z.number().int(),
293
287
  avatar: z.string(),
294
- averagePlaytime: z.number().int(),
295
288
  awardsGiven: z.number().int(),
296
289
  awardsReceived: z.number().int(),
297
290
  badges: z.number().int(),
@@ -141,10 +141,6 @@ export type V1AccountInfoResponseBody = {
141
141
  * The avatar frame of the account
142
142
  */
143
143
  avatarFrame: string;
144
- /**
145
- * The average playtime of the account
146
- */
147
- averagePlaytime: number;
148
144
  /**
149
145
  * The number of awards the account has
150
146
  */
@@ -400,7 +396,6 @@ export const V1AccountInfoResponseBody$inboundSchema: z.ZodType<
400
396
  apps: z.number().int(),
401
397
  avatar: z.string(),
402
398
  avatarFrame: z.string(),
403
- averagePlaytime: z.number().int(),
404
399
  awardsGiven: z.number().int(),
405
400
  awardsReceived: z.number().int(),
406
401
  background: z.string(),
@@ -466,7 +461,6 @@ export type V1AccountInfoResponseBody$Outbound = {
466
461
  apps: number;
467
462
  avatar: string;
468
463
  avatarFrame: string;
469
- averagePlaytime: number;
470
464
  awardsGiven: number;
471
465
  awardsReceived: number;
472
466
  background: string;
@@ -526,7 +520,6 @@ export const V1AccountInfoResponseBody$outboundSchema: z.ZodType<
526
520
  apps: z.number().int(),
527
521
  avatar: z.string(),
528
522
  avatarFrame: z.string(),
529
- averagePlaytime: z.number().int(),
530
523
  awardsGiven: z.number().int(),
531
524
  awardsReceived: z.number().int(),
532
525
  background: z.string(),
@@ -76,10 +76,6 @@ export type V1AccountLeaderboardAccount = {
76
76
  * The avatar hash of the account
77
77
  */
78
78
  avatar: string;
79
- /**
80
- * The average playtime of the account
81
- */
82
- averagePlaytime: number;
83
79
  /**
84
80
  * The number of awards the account has
85
81
  */
@@ -227,7 +223,6 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
227
223
  appPlaytime: z.nullable(z.number().int()),
228
224
  apps: z.number().int(),
229
225
  avatar: z.string(),
230
- averagePlaytime: z.number().int(),
231
226
  awardsGiven: z.number().int(),
232
227
  awardsReceived: z.number().int(),
233
228
  badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
@@ -268,7 +263,6 @@ export type V1AccountLeaderboardAccount$Outbound = {
268
263
  appPlaytime: number | null;
269
264
  apps: number;
270
265
  avatar: string;
271
- averagePlaytime: number;
272
266
  awardsGiven: number;
273
267
  awardsReceived: number;
274
268
  badgeInfo?: AccountBadgeInfo$Outbound | null | undefined;
@@ -313,7 +307,6 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
313
307
  appPlaytime: z.nullable(z.number().int()),
314
308
  apps: z.number().int(),
315
309
  avatar: z.string(),
316
- averagePlaytime: z.number().int(),
317
310
  awardsGiven: z.number().int(),
318
311
  awardsReceived: z.number().int(),
319
312
  badgeInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
@@ -21,10 +21,6 @@ export type V1Stats = {
21
21
  * The total number of accounts updated
22
22
  */
23
23
  accountsUpdated: number;
24
- /**
25
- * The total cost of apps
26
- */
27
- appCost: number;
28
24
  /**
29
25
  * The total playtime of apps
30
26
  */
@@ -105,7 +101,6 @@ export const V1Stats$inboundSchema: z.ZodType<V1Stats, z.ZodTypeDef, unknown> =
105
101
  $schema: z.string().optional(),
106
102
  accountsAdded: z.number().int(),
107
103
  accountsUpdated: z.number().int(),
108
- appCost: z.number().int(),
109
104
  appPlaytime: z.number().int(),
110
105
  apps: z.number().int(),
111
106
  awardsGiven: z.number().int(),
@@ -135,7 +130,6 @@ export type V1Stats$Outbound = {
135
130
  $schema?: string | undefined;
136
131
  accountsAdded: number;
137
132
  accountsUpdated: number;
138
- appCost: number;
139
133
  appPlaytime: number;
140
134
  apps: number;
141
135
  awardsGiven: number;
@@ -165,7 +159,6 @@ export const V1Stats$outboundSchema: z.ZodType<
165
159
  dollarSchema: z.string().optional(),
166
160
  accountsAdded: z.number().int(),
167
161
  accountsUpdated: z.number().int(),
168
- appCost: z.number().int(),
169
162
  appPlaytime: z.number().int(),
170
163
  apps: z.number().int(),
171
164
  awardsGiven: z.number().int(),