@steamsets/client-ts 0.32.5 → 0.32.7

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 (301) hide show
  1. package/README.md +5 -0
  2. package/funcs/accountAccountFindFriendPath.d.ts.map +1 -1
  3. package/funcs/accountAccountFindFriendPath.js +2 -1
  4. package/funcs/accountAccountFindFriendPath.js.map +1 -1
  5. package/funcs/accountAccountGetBadgeHeatmap.d.ts.map +1 -1
  6. package/funcs/accountAccountGetBadgeHeatmap.js +2 -1
  7. package/funcs/accountAccountGetBadgeHeatmap.js.map +1 -1
  8. package/funcs/accountAccountListOwnedGroups.d.ts.map +1 -1
  9. package/funcs/accountAccountListOwnedGroups.js +2 -1
  10. package/funcs/accountAccountListOwnedGroups.js.map +1 -1
  11. package/funcs/accountBookmarkBadge.d.ts.map +1 -1
  12. package/funcs/accountBookmarkBadge.js +2 -1
  13. package/funcs/accountBookmarkBadge.js.map +1 -1
  14. package/funcs/accountCreateConnection.d.ts.map +1 -1
  15. package/funcs/accountCreateConnection.js +2 -1
  16. package/funcs/accountCreateConnection.js.map +1 -1
  17. package/funcs/accountCreateDeveloperApp.d.ts.map +1 -1
  18. package/funcs/accountCreateDeveloperApp.js +2 -1
  19. package/funcs/accountCreateDeveloperApp.js.map +1 -1
  20. package/funcs/accountDeleteConnection.d.ts.map +1 -1
  21. package/funcs/accountDeleteConnection.js +2 -1
  22. package/funcs/accountDeleteConnection.js.map +1 -1
  23. package/funcs/accountDeleteDeveloperApp.d.ts.map +1 -1
  24. package/funcs/accountDeleteDeveloperApp.js +2 -1
  25. package/funcs/accountDeleteDeveloperApp.js.map +1 -1
  26. package/funcs/accountDeleteImages.d.ts.map +1 -1
  27. package/funcs/accountDeleteImages.js +2 -1
  28. package/funcs/accountDeleteImages.js.map +1 -1
  29. package/funcs/accountDeleteSession.d.ts.map +1 -1
  30. package/funcs/accountDeleteSession.js +2 -1
  31. package/funcs/accountDeleteSession.js.map +1 -1
  32. package/funcs/accountGetBadgeStats.d.ts.map +1 -1
  33. package/funcs/accountGetBadgeStats.js +2 -1
  34. package/funcs/accountGetBadgeStats.js.map +1 -1
  35. package/funcs/accountGetDataPoints.d.ts.map +1 -1
  36. package/funcs/accountGetDataPoints.js +2 -1
  37. package/funcs/accountGetDataPoints.js.map +1 -1
  38. package/funcs/accountGetInfo.d.ts.map +1 -1
  39. package/funcs/accountGetInfo.js +2 -1
  40. package/funcs/accountGetInfo.js.map +1 -1
  41. package/funcs/accountGetMeta.d.ts.map +1 -1
  42. package/funcs/accountGetMeta.js +2 -1
  43. package/funcs/accountGetMeta.js.map +1 -1
  44. package/funcs/accountGetSession.d.ts.map +1 -1
  45. package/funcs/accountGetSession.js +2 -1
  46. package/funcs/accountGetSession.js.map +1 -1
  47. package/funcs/accountGetSettings.d.ts.map +1 -1
  48. package/funcs/accountGetSettings.js +2 -1
  49. package/funcs/accountGetSettings.js.map +1 -1
  50. package/funcs/accountListApps.d.ts.map +1 -1
  51. package/funcs/accountListApps.js +2 -1
  52. package/funcs/accountListApps.js.map +1 -1
  53. package/funcs/accountListBadgeBookmarks.d.ts.map +1 -1
  54. package/funcs/accountListBadgeBookmarks.js +2 -1
  55. package/funcs/accountListBadgeBookmarks.js.map +1 -1
  56. package/funcs/accountListBadges.d.ts.map +1 -1
  57. package/funcs/accountListBadges.js +2 -1
  58. package/funcs/accountListBadges.js.map +1 -1
  59. package/funcs/accountListFriends.d.ts.map +1 -1
  60. package/funcs/accountListFriends.js +2 -1
  61. package/funcs/accountListFriends.js.map +1 -1
  62. package/funcs/accountListImages.d.ts.map +1 -1
  63. package/funcs/accountListImages.js +2 -1
  64. package/funcs/accountListImages.js.map +1 -1
  65. package/funcs/accountListInventorySets.d.ts.map +1 -1
  66. package/funcs/accountListInventorySets.js +2 -1
  67. package/funcs/accountListInventorySets.js.map +1 -1
  68. package/funcs/accountListLeaderboardHistory.d.ts.map +1 -1
  69. package/funcs/accountListLeaderboardHistory.js +2 -1
  70. package/funcs/accountListLeaderboardHistory.js.map +1 -1
  71. package/funcs/accountListOwnedBadges.d.ts.map +1 -1
  72. package/funcs/accountListOwnedBadges.js +2 -1
  73. package/funcs/accountListOwnedBadges.js.map +1 -1
  74. package/funcs/accountLogin.d.ts.map +1 -1
  75. package/funcs/accountLogin.js +2 -1
  76. package/funcs/accountLogin.js.map +1 -1
  77. package/funcs/accountLogout.d.ts.map +1 -1
  78. package/funcs/accountLogout.js +2 -1
  79. package/funcs/accountLogout.js.map +1 -1
  80. package/funcs/accountQueueUpdate.d.ts.map +1 -1
  81. package/funcs/accountQueueUpdate.js +2 -1
  82. package/funcs/accountQueueUpdate.js.map +1 -1
  83. package/funcs/accountReconnectConnection.d.ts.map +1 -1
  84. package/funcs/accountReconnectConnection.js +2 -1
  85. package/funcs/accountReconnectConnection.js.map +1 -1
  86. package/funcs/accountRefreshInventory.d.ts.map +1 -1
  87. package/funcs/accountRefreshInventory.js +2 -1
  88. package/funcs/accountRefreshInventory.js.map +1 -1
  89. package/funcs/accountRefreshSession.d.ts.map +1 -1
  90. package/funcs/accountRefreshSession.js +2 -1
  91. package/funcs/accountRefreshSession.js.map +1 -1
  92. package/funcs/accountSendEmailVerification.d.ts.map +1 -1
  93. package/funcs/accountSendEmailVerification.js +2 -1
  94. package/funcs/accountSendEmailVerification.js.map +1 -1
  95. package/funcs/accountSubscribeEmail.d.ts.map +1 -1
  96. package/funcs/accountSubscribeEmail.js +2 -1
  97. package/funcs/accountSubscribeEmail.js.map +1 -1
  98. package/funcs/accountUpdateConnection.d.ts.map +1 -1
  99. package/funcs/accountUpdateConnection.js +2 -1
  100. package/funcs/accountUpdateConnection.js.map +1 -1
  101. package/funcs/accountUpdateDeveloperApp.d.ts.map +1 -1
  102. package/funcs/accountUpdateDeveloperApp.js +2 -1
  103. package/funcs/accountUpdateDeveloperApp.js.map +1 -1
  104. package/funcs/accountUpdateImages.d.ts.map +1 -1
  105. package/funcs/accountUpdateImages.js +2 -1
  106. package/funcs/accountUpdateImages.js.map +1 -1
  107. package/funcs/accountUpdateRole.d.ts.map +1 -1
  108. package/funcs/accountUpdateRole.js +2 -1
  109. package/funcs/accountUpdateRole.js.map +1 -1
  110. package/funcs/accountUpdateSettings.d.ts.map +1 -1
  111. package/funcs/accountUpdateSettings.js +2 -1
  112. package/funcs/accountUpdateSettings.js.map +1 -1
  113. package/funcs/accountUpdateVanity.d.ts.map +1 -1
  114. package/funcs/accountUpdateVanity.js +2 -1
  115. package/funcs/accountUpdateVanity.js.map +1 -1
  116. package/funcs/accountUploadImages.d.ts.map +1 -1
  117. package/funcs/accountUploadImages.js +2 -1
  118. package/funcs/accountUploadImages.js.map +1 -1
  119. package/funcs/accountVerifyConnection.d.ts.map +1 -1
  120. package/funcs/accountVerifyConnection.js +2 -1
  121. package/funcs/accountVerifyConnection.js.map +1 -1
  122. package/funcs/accountVerifyEmail.d.ts.map +1 -1
  123. package/funcs/accountVerifyEmail.js +2 -1
  124. package/funcs/accountVerifyEmail.js.map +1 -1
  125. package/funcs/adminAdminUpdateRoleOverride.d.ts.map +1 -1
  126. package/funcs/adminAdminUpdateRoleOverride.js +2 -1
  127. package/funcs/adminAdminUpdateRoleOverride.js.map +1 -1
  128. package/funcs/adminGetAccount.d.ts.map +1 -1
  129. package/funcs/adminGetAccount.js +2 -1
  130. package/funcs/adminGetAccount.js.map +1 -1
  131. package/funcs/adminRemoveVanity.d.ts.map +1 -1
  132. package/funcs/adminRemoveVanity.js +2 -1
  133. package/funcs/adminRemoveVanity.js.map +1 -1
  134. package/funcs/adminUpdateResources.d.ts.map +1 -1
  135. package/funcs/adminUpdateResources.js +2 -1
  136. package/funcs/adminUpdateResources.js.map +1 -1
  137. package/funcs/adminUpdateRoles.d.ts.map +1 -1
  138. package/funcs/adminUpdateRoles.js +2 -1
  139. package/funcs/adminUpdateRoles.js.map +1 -1
  140. package/funcs/appsListBadges.d.ts.map +1 -1
  141. package/funcs/appsListBadges.js +2 -1
  142. package/funcs/appsListBadges.js.map +1 -1
  143. package/funcs/badgeSearch.d.ts.map +1 -1
  144. package/funcs/badgeSearch.js +2 -1
  145. package/funcs/badgeSearch.js.map +1 -1
  146. package/funcs/badgeSuggestTags.d.ts.map +1 -1
  147. package/funcs/badgeSuggestTags.js +2 -1
  148. package/funcs/badgeSuggestTags.js.map +1 -1
  149. package/funcs/badgesListTags.d.ts.map +1 -1
  150. package/funcs/badgesListTags.js +2 -1
  151. package/funcs/badgesListTags.js.map +1 -1
  152. package/funcs/badgesTag.d.ts.map +1 -1
  153. package/funcs/badgesTag.js +2 -1
  154. package/funcs/badgesTag.js.map +1 -1
  155. package/funcs/leaderboardGetAccount.d.ts.map +1 -1
  156. package/funcs/leaderboardGetAccount.js +2 -1
  157. package/funcs/leaderboardGetAccount.js.map +1 -1
  158. package/funcs/leaderboardGetAccountsMeta.d.ts.map +1 -1
  159. package/funcs/leaderboardGetAccountsMeta.js +2 -1
  160. package/funcs/leaderboardGetAccountsMeta.js.map +1 -1
  161. package/funcs/leaderboardGetGroup.d.ts.map +1 -1
  162. package/funcs/leaderboardGetGroup.js +2 -1
  163. package/funcs/leaderboardGetGroup.js.map +1 -1
  164. package/funcs/leaderboardGetGroupsMeta.d.ts.map +1 -1
  165. package/funcs/leaderboardGetGroupsMeta.js +2 -1
  166. package/funcs/leaderboardGetGroupsMeta.js.map +1 -1
  167. package/funcs/leaderboardGetLowestRanks.d.ts.map +1 -1
  168. package/funcs/leaderboardGetLowestRanks.js +2 -1
  169. package/funcs/leaderboardGetLowestRanks.js.map +1 -1
  170. package/funcs/leaderboardPreviewAccountRank.d.ts.map +1 -1
  171. package/funcs/leaderboardPreviewAccountRank.js +2 -1
  172. package/funcs/leaderboardPreviewAccountRank.js.map +1 -1
  173. package/funcs/leaderboardsList.d.ts.map +1 -1
  174. package/funcs/leaderboardsList.js +2 -1
  175. package/funcs/leaderboardsList.js.map +1 -1
  176. package/funcs/locationGet.d.ts.map +1 -1
  177. package/funcs/locationGet.js +2 -1
  178. package/funcs/locationGet.js.map +1 -1
  179. package/funcs/staffList.d.ts.map +1 -1
  180. package/funcs/staffList.js +2 -1
  181. package/funcs/staffList.js.map +1 -1
  182. package/funcs/statsGet.d.ts.map +1 -1
  183. package/funcs/statsGet.js +2 -1
  184. package/funcs/statsGet.js.map +1 -1
  185. package/funcs/vanityVanityVerify.d.ts +15 -0
  186. package/funcs/vanityVanityVerify.d.ts.map +1 -0
  187. package/funcs/vanityVanityVerify.js +134 -0
  188. package/funcs/vanityVanityVerify.js.map +1 -0
  189. package/jsr.json +1 -1
  190. package/lib/config.d.ts +3 -3
  191. package/lib/config.js +3 -3
  192. package/lib/config.js.map +1 -1
  193. package/lib/sdks.d.ts +1 -1
  194. package/lib/sdks.d.ts.map +1 -1
  195. package/lib/sdks.js +2 -2
  196. package/lib/sdks.js.map +1 -1
  197. package/models/components/index.d.ts +2 -0
  198. package/models/components/index.d.ts.map +1 -1
  199. package/models/components/index.js +2 -0
  200. package/models/components/index.js.map +1 -1
  201. package/models/components/requestbody.d.ts +15 -0
  202. package/models/components/requestbody.d.ts.map +1 -0
  203. package/models/components/requestbody.js +49 -0
  204. package/models/components/requestbody.js.map +1 -0
  205. package/models/components/responsebody.d.ts +26 -0
  206. package/models/components/responsebody.d.ts.map +1 -0
  207. package/models/components/responsebody.js +59 -0
  208. package/models/components/responsebody.js.map +1 -0
  209. package/models/components/v1accountfindfriendpathrequestbody.d.ts +5 -0
  210. package/models/components/v1accountfindfriendpathrequestbody.d.ts.map +1 -1
  211. package/models/components/v1accountfindfriendpathrequestbody.js +1 -0
  212. package/models/components/v1accountfindfriendpathrequestbody.js.map +1 -1
  213. package/models/operations/index.d.ts +1 -0
  214. package/models/operations/index.d.ts.map +1 -1
  215. package/models/operations/index.js +1 -0
  216. package/models/operations/index.js.map +1 -1
  217. package/models/operations/vanityverify.d.ts +27 -0
  218. package/models/operations/vanityverify.d.ts.map +1 -0
  219. package/models/operations/vanityverify.js +72 -0
  220. package/models/operations/vanityverify.js.map +1 -0
  221. package/package.json +1 -1
  222. package/sdk/sdk.d.ts +3 -0
  223. package/sdk/sdk.d.ts.map +1 -1
  224. package/sdk/sdk.js +4 -0
  225. package/sdk/sdk.js.map +1 -1
  226. package/sdk/vanity.d.ts +9 -0
  227. package/sdk/vanity.d.ts.map +1 -0
  228. package/sdk/vanity.js +19 -0
  229. package/sdk/vanity.js.map +1 -0
  230. package/src/funcs/accountAccountFindFriendPath.ts +3 -1
  231. package/src/funcs/accountAccountGetBadgeHeatmap.ts +3 -1
  232. package/src/funcs/accountAccountListOwnedGroups.ts +3 -1
  233. package/src/funcs/accountBookmarkBadge.ts +3 -1
  234. package/src/funcs/accountCreateConnection.ts +3 -1
  235. package/src/funcs/accountCreateDeveloperApp.ts +3 -1
  236. package/src/funcs/accountDeleteConnection.ts +3 -1
  237. package/src/funcs/accountDeleteDeveloperApp.ts +3 -1
  238. package/src/funcs/accountDeleteImages.ts +3 -1
  239. package/src/funcs/accountDeleteSession.ts +3 -1
  240. package/src/funcs/accountGetBadgeStats.ts +3 -1
  241. package/src/funcs/accountGetDataPoints.ts +3 -1
  242. package/src/funcs/accountGetInfo.ts +3 -1
  243. package/src/funcs/accountGetMeta.ts +3 -1
  244. package/src/funcs/accountGetSession.ts +3 -1
  245. package/src/funcs/accountGetSettings.ts +3 -1
  246. package/src/funcs/accountListApps.ts +3 -1
  247. package/src/funcs/accountListBadgeBookmarks.ts +3 -1
  248. package/src/funcs/accountListBadges.ts +3 -1
  249. package/src/funcs/accountListFriends.ts +3 -1
  250. package/src/funcs/accountListImages.ts +3 -1
  251. package/src/funcs/accountListInventorySets.ts +3 -1
  252. package/src/funcs/accountListLeaderboardHistory.ts +3 -1
  253. package/src/funcs/accountListOwnedBadges.ts +3 -1
  254. package/src/funcs/accountLogin.ts +3 -1
  255. package/src/funcs/accountLogout.ts +3 -1
  256. package/src/funcs/accountQueueUpdate.ts +3 -1
  257. package/src/funcs/accountReconnectConnection.ts +3 -1
  258. package/src/funcs/accountRefreshInventory.ts +3 -1
  259. package/src/funcs/accountRefreshSession.ts +3 -1
  260. package/src/funcs/accountSendEmailVerification.ts +3 -1
  261. package/src/funcs/accountSubscribeEmail.ts +3 -1
  262. package/src/funcs/accountUpdateConnection.ts +3 -1
  263. package/src/funcs/accountUpdateDeveloperApp.ts +3 -1
  264. package/src/funcs/accountUpdateImages.ts +3 -1
  265. package/src/funcs/accountUpdateRole.ts +3 -1
  266. package/src/funcs/accountUpdateSettings.ts +3 -1
  267. package/src/funcs/accountUpdateVanity.ts +3 -1
  268. package/src/funcs/accountUploadImages.ts +3 -1
  269. package/src/funcs/accountVerifyConnection.ts +3 -1
  270. package/src/funcs/accountVerifyEmail.ts +3 -1
  271. package/src/funcs/adminAdminUpdateRoleOverride.ts +3 -1
  272. package/src/funcs/adminGetAccount.ts +3 -1
  273. package/src/funcs/adminRemoveVanity.ts +3 -1
  274. package/src/funcs/adminUpdateResources.ts +3 -1
  275. package/src/funcs/adminUpdateRoles.ts +3 -1
  276. package/src/funcs/appsListBadges.ts +3 -1
  277. package/src/funcs/badgeSearch.ts +3 -1
  278. package/src/funcs/badgeSuggestTags.ts +3 -1
  279. package/src/funcs/badgesListTags.ts +3 -1
  280. package/src/funcs/badgesTag.ts +3 -1
  281. package/src/funcs/leaderboardGetAccount.ts +3 -1
  282. package/src/funcs/leaderboardGetAccountsMeta.ts +3 -1
  283. package/src/funcs/leaderboardGetGroup.ts +3 -1
  284. package/src/funcs/leaderboardGetGroupsMeta.ts +3 -1
  285. package/src/funcs/leaderboardGetLowestRanks.ts +3 -1
  286. package/src/funcs/leaderboardPreviewAccountRank.ts +3 -1
  287. package/src/funcs/leaderboardsList.ts +3 -1
  288. package/src/funcs/locationGet.ts +3 -1
  289. package/src/funcs/staffList.ts +3 -1
  290. package/src/funcs/statsGet.ts +3 -1
  291. package/src/funcs/vanityVanityVerify.ts +191 -0
  292. package/src/lib/config.ts +3 -3
  293. package/src/lib/sdks.ts +3 -4
  294. package/src/models/components/index.ts +2 -0
  295. package/src/models/components/requestbody.ts +30 -0
  296. package/src/models/components/responsebody.ts +56 -0
  297. package/src/models/components/v1accountfindfriendpathrequestbody.ts +6 -0
  298. package/src/models/operations/index.ts +1 -0
  299. package/src/models/operations/vanityverify.ts +77 -0
  300. package/src/sdk/sdk.ts +6 -0
  301. package/src/sdk/vanity.ts +24 -0
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
6
  import { encodeJSON } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -142,7 +143,8 @@ async function $do(
142
143
 
143
144
  const doResult = await client._do(req, {
144
145
  context,
145
- errorCodes: ["400", "401", "422", "4XX", "500", "5XX"],
146
+ isErrorStatusCode: (statusCode: number) =>
147
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
146
148
  retryConfig: context.retryConfig,
147
149
  retryCodes: context.retryCodes,
148
150
  });
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -121,7 +122,8 @@ async function $do(
121
122
 
122
123
  const doResult = await client._do(req, {
123
124
  context,
124
- errorCodes: ["400", "401", "4XX", "500", "5XX"],
125
+ isErrorStatusCode: (statusCode: number) =>
126
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
125
127
  retryConfig: context.retryConfig,
126
128
  retryCodes: context.retryCodes,
127
129
  });
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -121,7 +122,8 @@ async function $do(
121
122
 
122
123
  const doResult = await client._do(req, {
123
124
  context,
124
- errorCodes: ["400", "401", "4XX", "500", "5XX"],
125
+ isErrorStatusCode: (statusCode: number) =>
126
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
125
127
  retryConfig: context.retryConfig,
126
128
  retryCodes: context.retryCodes,
127
129
  });
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -121,7 +122,8 @@ async function $do(
121
122
 
122
123
  const doResult = await client._do(req, {
123
124
  context,
124
- errorCodes: ["400", "401", "4XX", "500", "5XX"],
125
+ isErrorStatusCode: (statusCode: number) =>
126
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
125
127
  retryConfig: context.retryConfig,
126
128
  retryCodes: context.retryCodes,
127
129
  });
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -121,7 +122,8 @@ async function $do(
121
122
 
122
123
  const doResult = await client._do(req, {
123
124
  context,
124
- errorCodes: ["400", "401", "4XX", "500", "5XX"],
125
+ isErrorStatusCode: (statusCode: number) =>
126
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
125
127
  retryConfig: context.retryConfig,
126
128
  retryCodes: context.retryCodes,
127
129
  });
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.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 { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import { SteamSetsError } from "../models/errors/steamsetserror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Live-verify a Steam vanity URL against Steam
31
+ */
32
+ export function vanityVanityVerify(
33
+ client: SteamSetsCore,
34
+ request: operations.VanityVerifyRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ operations.VanityVerifyResponse,
39
+ | errors.ErrorModel
40
+ | SteamSetsError
41
+ | ResponseValidationError
42
+ | ConnectionError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | InvalidRequestError
46
+ | UnexpectedClientError
47
+ | SDKValidationError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client: SteamSetsCore,
59
+ request: operations.VanityVerifyRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ operations.VanityVerifyResponse,
65
+ | errors.ErrorModel
66
+ | SteamSetsError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) => operations.VanityVerifyRequest$outboundSchema.parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
88
+
89
+ const path = pathToFunc("/v1/vanity.verify")();
90
+
91
+ const headers = new Headers(compactMap({
92
+ "Content-Type": "application/json",
93
+ Accept: "application/json",
94
+ "X-Forwarded-For": encodeSimple(
95
+ "X-Forwarded-For",
96
+ payload["X-Forwarded-For"],
97
+ { explode: false, charEncoding: "none" },
98
+ ),
99
+ }));
100
+
101
+ const secConfig = await extractSecurity(client._options.token);
102
+ const securityInput = secConfig == null ? {} : { token: secConfig };
103
+ const requestSecurity = resolveGlobalSecurity(securityInput);
104
+
105
+ const context = {
106
+ options: client._options,
107
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
108
+ operationID: "vanity.verify",
109
+ oAuth2Scopes: null,
110
+
111
+ resolvedSecurity: requestSecurity,
112
+
113
+ securitySource: client._options.token,
114
+ retryConfig: options?.retries
115
+ || client._options.retryConfig
116
+ || {
117
+ strategy: "backoff",
118
+ backoff: {
119
+ initialInterval: 500,
120
+ maxInterval: 5000,
121
+ exponent: 1.5,
122
+ maxElapsedTime: 60000,
123
+ },
124
+ retryConnectionErrors: true,
125
+ }
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "POST",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ body: body,
137
+ uaHeader: "x-speakeasy-user-agent",
138
+ userAgent: client._options.userAgent,
139
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
140
+ }, options);
141
+ if (!requestRes.ok) {
142
+ return [requestRes, { status: "invalid" }];
143
+ }
144
+ const req = requestRes.value;
145
+
146
+ const doResult = await client._do(req, {
147
+ context,
148
+ isErrorStatusCode: (statusCode: number) =>
149
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
150
+ retryConfig: context.retryConfig,
151
+ retryCodes: context.retryCodes,
152
+ });
153
+ if (!doResult.ok) {
154
+ return [doResult, { status: "request-error", request: req }];
155
+ }
156
+ const response = doResult.value;
157
+
158
+ const responseFields = {
159
+ HttpMeta: { Response: response, Request: req },
160
+ };
161
+
162
+ const [result] = await M.match<
163
+ operations.VanityVerifyResponse,
164
+ | errors.ErrorModel
165
+ | SteamSetsError
166
+ | ResponseValidationError
167
+ | ConnectionError
168
+ | RequestAbortedError
169
+ | RequestTimeoutError
170
+ | InvalidRequestError
171
+ | UnexpectedClientError
172
+ | SDKValidationError
173
+ >(
174
+ M.json(200, operations.VanityVerifyResponse$inboundSchema, {
175
+ key: "ResponseBody",
176
+ }),
177
+ M.jsonErr([400, 401, 422, 429], errors.ErrorModel$inboundSchema, {
178
+ ctype: "application/problem+json",
179
+ }),
180
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
181
+ ctype: "application/problem+json",
182
+ }),
183
+ M.fail("4XX"),
184
+ M.fail("5XX"),
185
+ )(response, req, { extraFields: responseFields });
186
+ if (!result.ok) {
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
189
+
190
+ return [result, { status: "complete", request: req, response }];
191
+ }
package/src/lib/config.ts CHANGED
@@ -59,8 +59,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
59
59
  export const SDK_METADATA = {
60
60
  language: "typescript",
61
61
  openapiDocVersion: "1.0.0",
62
- sdkVersion: "0.32.5",
63
- genVersion: "2.879.13",
62
+ sdkVersion: "0.32.7",
63
+ genVersion: "2.881.0",
64
64
  userAgent:
65
- "speakeasy-sdk/typescript 0.32.5 2.879.13 1.0.0 @steamsets/client-ts",
65
+ "speakeasy-sdk/typescript 0.32.7 2.881.0 1.0.0 @steamsets/client-ts",
66
66
  } as const;
package/src/lib/sdks.ts CHANGED
@@ -21,7 +21,6 @@ import {
21
21
  isConnectionError,
22
22
  isTimeoutError,
23
23
  matchContentType,
24
- matchStatusCode,
25
24
  } from "./http.js";
26
25
  import { Logger } from "./logger.js";
27
26
  import { retry, RetryConfig } from "./retries.js";
@@ -230,7 +229,7 @@ export class ClientSDK {
230
229
  request: Request,
231
230
  options: {
232
231
  context: HookContext;
233
- errorCodes: number | string | (number | string)[];
232
+ isErrorStatusCode: (statusCode: number) => boolean;
234
233
  retryConfig: RetryConfig;
235
234
  retryCodes: string[];
236
235
  },
@@ -243,7 +242,7 @@ export class ClientSDK {
243
242
  | UnexpectedClientError
244
243
  >
245
244
  > {
246
- const { context, errorCodes } = options;
245
+ const { context, isErrorStatusCode } = options;
247
246
 
248
247
  return retry(
249
248
  async () => {
@@ -255,7 +254,7 @@ export class ClientSDK {
255
254
  let response = await this.#httpClient.request(req);
256
255
 
257
256
  try {
258
- if (matchStatusCode(response, errorCodes)) {
257
+ if (isErrorStatusCode(response.status)) {
259
258
  const result = await this.#hooks.afterError(
260
259
  context,
261
260
  response,
@@ -39,7 +39,9 @@ export * from "./loginrequestbody.js";
39
39
  export * from "./previewaccount.js";
40
40
  export * from "./range.js";
41
41
  export * from "./region.js";
42
+ export * from "./requestbody.js";
42
43
  export * from "./resource.js";
44
+ export * from "./responsebody.js";
43
45
  export * from "./role.js";
44
46
  export * from "./security.js";
45
47
  export * from "./session.js";
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type RequestBody = {
8
+ /**
9
+ * Steam vanity URL to check
10
+ */
11
+ vanity: string;
12
+ };
13
+
14
+ /** @internal */
15
+ export type RequestBody$Outbound = {
16
+ vanity: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const RequestBody$outboundSchema: z.ZodType<
21
+ RequestBody$Outbound,
22
+ z.ZodTypeDef,
23
+ RequestBody
24
+ > = z.object({
25
+ vanity: z.string(),
26
+ });
27
+
28
+ export function requestBodyToJSON(requestBody: RequestBody): string {
29
+ return JSON.stringify(RequestBody$outboundSchema.parse(requestBody));
30
+ }
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type ResponseBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ /**
17
+ * set when status is "taken"
18
+ */
19
+ accountId?: number | undefined;
20
+ /**
21
+ * "free" or "taken"
22
+ */
23
+ status: string;
24
+ vanity: string;
25
+ /**
26
+ * unix ms of the live check
27
+ */
28
+ verifiedAt: number;
29
+ };
30
+
31
+ /** @internal */
32
+ export const ResponseBody$inboundSchema: z.ZodType<
33
+ ResponseBody,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z.object({
37
+ $schema: z.string().optional(),
38
+ accountId: z.number().int().optional(),
39
+ status: z.string(),
40
+ vanity: z.string(),
41
+ verifiedAt: z.number().int(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "$schema": "dollarSchema",
45
+ });
46
+ });
47
+
48
+ export function responseBodyFromJSON(
49
+ jsonString: string,
50
+ ): SafeParseResult<ResponseBody, SDKValidationError> {
51
+ return safeParse(
52
+ jsonString,
53
+ (x) => ResponseBody$inboundSchema.parse(JSON.parse(x)),
54
+ `Failed to parse 'ResponseBody' from JSON`,
55
+ );
56
+ }
@@ -10,6 +10,10 @@ import {
10
10
  } from "./accountsearch.js";
11
11
 
12
12
  export type V1AccountFindFriendPathRequestBody = {
13
+ /**
14
+ * Accounts to exclude from all paths. From/To are never excluded even if listed.
15
+ */
16
+ exclude?: Array<AccountSearch> | null | undefined;
13
17
  from: AccountSearch;
14
18
  /**
15
19
  * Max number of paths to return (default 10, capped at 50). A direct friendship always returns a single path regardless of this value.
@@ -20,6 +24,7 @@ export type V1AccountFindFriendPathRequestBody = {
20
24
 
21
25
  /** @internal */
22
26
  export type V1AccountFindFriendPathRequestBody$Outbound = {
27
+ exclude?: Array<AccountSearch$Outbound> | null | undefined;
23
28
  from: AccountSearch$Outbound;
24
29
  maxPaths?: number | undefined;
25
30
  to: AccountSearch$Outbound;
@@ -31,6 +36,7 @@ export const V1AccountFindFriendPathRequestBody$outboundSchema: z.ZodType<
31
36
  z.ZodTypeDef,
32
37
  V1AccountFindFriendPathRequestBody
33
38
  > = z.object({
39
+ exclude: z.nullable(z.array(AccountSearch$outboundSchema)).optional(),
34
40
  from: AccountSearch$outboundSchema,
35
41
  maxPaths: z.number().int().optional(),
36
42
  to: AccountSearch$outboundSchema,
@@ -63,3 +63,4 @@ export * from "./leaderboardpreviewaccountrank.js";
63
63
  export * from "./locationgetlocations.js";
64
64
  export * from "./staffliststaff.js";
65
65
  export * from "./statsgetstats.js";
66
+ export * from "./vanityverify.js";
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type VanityVerifyRequest = {
13
+ xForwardedFor?: string | undefined;
14
+ requestBody: components.RequestBody;
15
+ };
16
+
17
+ export type VanityVerifyResponse = {
18
+ httpMeta: components.HTTPMetadata;
19
+ /**
20
+ * OK
21
+ */
22
+ responseBody?: components.ResponseBody | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export type VanityVerifyRequest$Outbound = {
27
+ "X-Forwarded-For"?: string | undefined;
28
+ RequestBody: components.RequestBody$Outbound;
29
+ };
30
+
31
+ /** @internal */
32
+ export const VanityVerifyRequest$outboundSchema: z.ZodType<
33
+ VanityVerifyRequest$Outbound,
34
+ z.ZodTypeDef,
35
+ VanityVerifyRequest
36
+ > = z.object({
37
+ xForwardedFor: z.string().optional(),
38
+ requestBody: components.RequestBody$outboundSchema,
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ xForwardedFor: "X-Forwarded-For",
42
+ requestBody: "RequestBody",
43
+ });
44
+ });
45
+
46
+ export function vanityVerifyRequestToJSON(
47
+ vanityVerifyRequest: VanityVerifyRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ VanityVerifyRequest$outboundSchema.parse(vanityVerifyRequest),
51
+ );
52
+ }
53
+
54
+ /** @internal */
55
+ export const VanityVerifyResponse$inboundSchema: z.ZodType<
56
+ VanityVerifyResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ HttpMeta: components.HTTPMetadata$inboundSchema,
61
+ ResponseBody: components.ResponseBody$inboundSchema.optional(),
62
+ }).transform((v) => {
63
+ return remap$(v, {
64
+ "HttpMeta": "httpMeta",
65
+ "ResponseBody": "responseBody",
66
+ });
67
+ });
68
+
69
+ export function vanityVerifyResponseFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<VanityVerifyResponse, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => VanityVerifyResponse$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'VanityVerifyResponse' from JSON`,
76
+ );
77
+ }
package/src/sdk/sdk.ts CHANGED
@@ -13,6 +13,7 @@ import { Leaderboards } from "./leaderboards.js";
13
13
  import { Location } from "./location.js";
14
14
  import { Staff } from "./staff.js";
15
15
  import { Stats } from "./stats.js";
16
+ import { Vanity } from "./vanity.js";
16
17
 
17
18
  export class SteamSets extends ClientSDK {
18
19
  private _account?: Account;
@@ -64,4 +65,9 @@ export class SteamSets extends ClientSDK {
64
65
  get stats(): Stats {
65
66
  return (this._stats ??= new Stats(this._options));
66
67
  }
68
+
69
+ private _vanity?: Vanity;
70
+ get vanity(): Vanity {
71
+ return (this._vanity ??= new Vanity(this._options));
72
+ }
67
73
  }
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { vanityVanityVerify } from "../funcs/vanityVanityVerify.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Vanity extends ClientSDK {
11
+ /**
12
+ * Live-verify a Steam vanity URL against Steam
13
+ */
14
+ async vanityVerify(
15
+ request: operations.VanityVerifyRequest,
16
+ options?: RequestOptions,
17
+ ): Promise<operations.VanityVerifyResponse> {
18
+ return unwrapAsync(vanityVanityVerify(
19
+ this,
20
+ request,
21
+ options,
22
+ ));
23
+ }
24
+ }