@steamsets/client-ts 0.13.7 → 0.14.0

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 (334) hide show
  1. package/FUNCTIONS.md +107 -0
  2. package/README.md +33 -19
  3. package/RUNTIMES.md +22 -0
  4. package/docs/sdks/account/README.md +93 -12
  5. package/docs/sdks/images/README.md +332 -0
  6. package/docs/sdks/settings/README.md +0 -256
  7. package/docs/sdks/steamsets/README.md +3 -1
  8. package/funcs/accountAccountV1GetBadgeBookmarks.js +3 -3
  9. package/funcs/accountAccountV1GetBadgeBookmarks.js.map +1 -1
  10. package/funcs/accountAccountV1ImagesGet.d.ts +10 -0
  11. package/funcs/accountAccountV1ImagesGet.d.ts.map +1 -0
  12. package/funcs/accountAccountV1ImagesGet.js +98 -0
  13. package/funcs/accountAccountV1ImagesGet.js.map +1 -0
  14. package/funcs/{settingsUploadImages.d.ts → accountAccountV1ImagesUpdate.d.ts} +2 -2
  15. package/funcs/accountAccountV1ImagesUpdate.d.ts.map +1 -0
  16. package/funcs/{accountUpdateImage.js → accountAccountV1ImagesUpdate.js} +9 -9
  17. package/funcs/accountAccountV1ImagesUpdate.js.map +1 -0
  18. package/funcs/accountDeleteImages.d.ts +1 -1
  19. package/funcs/accountDeleteImages.d.ts.map +1 -1
  20. package/funcs/accountDeleteImages.js +7 -5
  21. package/funcs/accountDeleteImages.js.map +1 -1
  22. package/funcs/accountGetApps.js +3 -3
  23. package/funcs/accountGetApps.js.map +1 -1
  24. package/funcs/accountGetBadges.js +3 -3
  25. package/funcs/accountGetBadges.js.map +1 -1
  26. package/funcs/accountGetDataPoints.js +3 -3
  27. package/funcs/accountGetDataPoints.js.map +1 -1
  28. package/funcs/accountGetFriends.js +3 -3
  29. package/funcs/accountGetFriends.js.map +1 -1
  30. package/funcs/accountGetInfo.js +3 -3
  31. package/funcs/accountGetInfo.js.map +1 -1
  32. package/funcs/accountGetLeaderboardHistory.js +3 -3
  33. package/funcs/accountGetLeaderboardHistory.js.map +1 -1
  34. package/funcs/accountGetStaff.js +3 -3
  35. package/funcs/accountGetStaff.js.map +1 -1
  36. package/funcs/accountSendEmailVerification.js +3 -3
  37. package/funcs/accountSendEmailVerification.js.map +1 -1
  38. package/funcs/accountUploadImages.d.ts +1 -1
  39. package/funcs/accountUploadImages.d.ts.map +1 -1
  40. package/funcs/accountUploadImages.js +7 -5
  41. package/funcs/accountUploadImages.js.map +1 -1
  42. package/funcs/accountVerifyEmail.js +3 -3
  43. package/funcs/accountVerifyEmail.js.map +1 -1
  44. package/funcs/accountsQueue.js +3 -3
  45. package/funcs/accountsQueue.js.map +1 -1
  46. package/funcs/adminAdminV1GetEvents.js +3 -3
  47. package/funcs/adminAdminV1GetEvents.js.map +1 -1
  48. package/funcs/adminAdminV1UpdateEvent.js +3 -3
  49. package/funcs/adminAdminV1UpdateEvent.js.map +1 -1
  50. package/funcs/adminAdminV1UpdateResources.js +3 -3
  51. package/funcs/adminAdminV1UpdateResources.js.map +1 -1
  52. package/funcs/adminAdminV1UpdateRoles.js +3 -3
  53. package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
  54. package/funcs/adminGetAccount.js +3 -3
  55. package/funcs/adminGetAccount.js.map +1 -1
  56. package/funcs/badgeAccountV1BookmarkBadge.js +3 -3
  57. package/funcs/badgeAccountV1BookmarkBadge.js.map +1 -1
  58. package/funcs/badgeAccountV1GetBadgeBookmarks.js +3 -3
  59. package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +1 -1
  60. package/funcs/badgeGetTags.js +3 -3
  61. package/funcs/badgeGetTags.js.map +1 -1
  62. package/funcs/badgesTag.js +3 -3
  63. package/funcs/badgesTag.js.map +1 -1
  64. package/funcs/connectionDelete.js +3 -3
  65. package/funcs/connectionDelete.js.map +1 -1
  66. package/funcs/connectionUpdate.js +3 -3
  67. package/funcs/connectionUpdate.js.map +1 -1
  68. package/funcs/connectionVerify.js +3 -3
  69. package/funcs/connectionVerify.js.map +1 -1
  70. package/funcs/connectionsConnect.js +3 -3
  71. package/funcs/connectionsConnect.js.map +1 -1
  72. package/funcs/dataGetApps.js +3 -3
  73. package/funcs/dataGetApps.js.map +1 -1
  74. package/funcs/dataGetBadges.js +3 -3
  75. package/funcs/dataGetBadges.js.map +1 -1
  76. package/funcs/dataGetDataPoints.js +3 -3
  77. package/funcs/dataGetDataPoints.js.map +1 -1
  78. package/funcs/dataGetFriends.js +3 -3
  79. package/funcs/dataGetFriends.js.map +1 -1
  80. package/funcs/dataGetInfo.js +3 -3
  81. package/funcs/dataGetInfo.js.map +1 -1
  82. package/funcs/dataGetLeaderboardHistory.js +3 -3
  83. package/funcs/dataGetLeaderboardHistory.js.map +1 -1
  84. package/funcs/dataGetStaff.js +3 -3
  85. package/funcs/dataGetStaff.js.map +1 -1
  86. package/funcs/developerCreateDeveloperApp.js +3 -3
  87. package/funcs/developerCreateDeveloperApp.js.map +1 -1
  88. package/funcs/developerDeleteDeveloperApp.js +3 -3
  89. package/funcs/developerDeleteDeveloperApp.js.map +1 -1
  90. package/funcs/developerUpdateApp.js +3 -3
  91. package/funcs/developerUpdateApp.js.map +1 -1
  92. package/funcs/imagesAccountV1ImagesGet.d.ts +10 -0
  93. package/funcs/imagesAccountV1ImagesGet.d.ts.map +1 -0
  94. package/funcs/imagesAccountV1ImagesGet.js +98 -0
  95. package/funcs/imagesAccountV1ImagesGet.js.map +1 -0
  96. package/funcs/{settingsDeleteImages.d.ts → imagesAccountV1ImagesUpdate.d.ts} +2 -2
  97. package/funcs/imagesAccountV1ImagesUpdate.d.ts.map +1 -0
  98. package/funcs/{settingsUpdateImage.js → imagesAccountV1ImagesUpdate.js} +9 -9
  99. package/funcs/imagesAccountV1ImagesUpdate.js.map +1 -0
  100. package/funcs/{accountUpdateImage.d.ts → imagesDeleteImages.d.ts} +2 -2
  101. package/funcs/{accountUpdateImage.d.ts.map → imagesDeleteImages.d.ts.map} +1 -1
  102. package/funcs/{settingsDeleteImages.js → imagesDeleteImages.js} +10 -8
  103. package/funcs/imagesDeleteImages.js.map +1 -0
  104. package/funcs/{settingsUpdateImage.d.ts → imagesUploadImages.d.ts} +2 -2
  105. package/funcs/imagesUploadImages.d.ts.map +1 -0
  106. package/funcs/{settingsUploadImages.js → imagesUploadImages.js} +10 -8
  107. package/funcs/imagesUploadImages.js.map +1 -0
  108. package/funcs/leaderboardGetAccount.js +3 -3
  109. package/funcs/leaderboardGetAccount.js.map +1 -1
  110. package/funcs/leaderboardGetBadges.js +3 -3
  111. package/funcs/leaderboardGetBadges.js.map +1 -1
  112. package/funcs/leaderboardGetGroup.js +3 -3
  113. package/funcs/leaderboardGetGroup.js.map +1 -1
  114. package/funcs/livenessCheck.js +3 -3
  115. package/funcs/livenessCheck.js.map +1 -1
  116. package/funcs/locationsGet.js +3 -3
  117. package/funcs/locationsGet.js.map +1 -1
  118. package/funcs/metaAccountV1GetEmbed.js +3 -3
  119. package/funcs/metaAccountV1GetEmbed.js.map +1 -1
  120. package/funcs/metaAccountV1GetMeta.js +3 -3
  121. package/funcs/metaAccountV1GetMeta.js.map +1 -1
  122. package/funcs/publicGetApps.js +3 -3
  123. package/funcs/publicGetApps.js.map +1 -1
  124. package/funcs/publicGetBadges.js +3 -3
  125. package/funcs/publicGetBadges.js.map +1 -1
  126. package/funcs/publicGetDataPoints.js +3 -3
  127. package/funcs/publicGetDataPoints.js.map +1 -1
  128. package/funcs/publicGetFriends.js +3 -3
  129. package/funcs/publicGetFriends.js.map +1 -1
  130. package/funcs/publicGetInfo.js +3 -3
  131. package/funcs/publicGetInfo.js.map +1 -1
  132. package/funcs/publicGetLeaderboardHistory.js +3 -3
  133. package/funcs/publicGetLeaderboardHistory.js.map +1 -1
  134. package/funcs/sessionCreate.js +3 -3
  135. package/funcs/sessionCreate.js.map +1 -1
  136. package/funcs/sessionLogin.js +3 -3
  137. package/funcs/sessionLogin.js.map +1 -1
  138. package/funcs/sessionsDelete.js +3 -3
  139. package/funcs/sessionsDelete.js.map +1 -1
  140. package/funcs/sessionsGet.js +3 -3
  141. package/funcs/sessionsGet.js.map +1 -1
  142. package/funcs/settingsGet.js +3 -3
  143. package/funcs/settingsGet.js.map +1 -1
  144. package/funcs/settingsSendEmailVerification.js +3 -3
  145. package/funcs/settingsSendEmailVerification.js.map +1 -1
  146. package/funcs/settingsUpdate.js +3 -3
  147. package/funcs/settingsUpdate.js.map +1 -1
  148. package/funcs/settingsVerifyEmail.js +3 -3
  149. package/funcs/settingsVerifyEmail.js.map +1 -1
  150. package/hooks/hooks.d.ts.map +1 -1
  151. package/hooks/hooks.js +18 -0
  152. package/hooks/hooks.js.map +1 -1
  153. package/hooks/types.d.ts +1 -0
  154. package/hooks/types.d.ts.map +1 -1
  155. package/lib/config.d.ts +3 -3
  156. package/lib/config.js +3 -3
  157. package/lib/primitives.d.ts +2 -0
  158. package/lib/primitives.d.ts.map +1 -1
  159. package/lib/primitives.js +53 -0
  160. package/lib/primitives.js.map +1 -1
  161. package/models/components/index.d.ts +2 -1
  162. package/models/components/index.d.ts.map +1 -1
  163. package/models/components/index.js +2 -1
  164. package/models/components/index.js.map +1 -1
  165. package/models/components/v1getimagesresponsebody.d.ts +38 -0
  166. package/models/components/v1getimagesresponsebody.d.ts.map +1 -0
  167. package/models/components/v1getimagesresponsebody.js +71 -0
  168. package/models/components/v1getimagesresponsebody.js.map +1 -0
  169. package/models/components/v1getsettingsbody.d.ts +2 -6
  170. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  171. package/models/components/v1getsettingsbody.js +0 -3
  172. package/models/components/v1getsettingsbody.js.map +1 -1
  173. package/models/components/v1updateimage.d.ts +37 -0
  174. package/models/components/v1updateimage.d.ts.map +1 -0
  175. package/models/components/v1updateimage.js +61 -0
  176. package/models/components/v1updateimage.js.map +1 -0
  177. package/models/components/v1updateimagerequestbody.d.ts +4 -8
  178. package/models/components/v1updateimagerequestbody.d.ts.map +1 -1
  179. package/models/components/v1updateimagerequestbody.js +3 -4
  180. package/models/components/v1updateimagerequestbody.js.map +1 -1
  181. package/models/components/v1updateimageresponsebody.d.ts +0 -5
  182. package/models/components/v1updateimageresponsebody.d.ts.map +1 -1
  183. package/models/components/v1updateimageresponsebody.js +0 -2
  184. package/models/components/v1updateimageresponsebody.js.map +1 -1
  185. package/models/components/v1updatesettingsrequestbody.d.ts +0 -6
  186. package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
  187. package/models/components/v1updatesettingsrequestbody.js +0 -3
  188. package/models/components/v1updatesettingsrequestbody.js.map +1 -1
  189. package/models/operations/accountv1imagesdelete.d.ts +35 -0
  190. package/models/operations/accountv1imagesdelete.d.ts.map +1 -0
  191. package/models/operations/{accountv1settingsdeleteimages.js → accountv1imagesdelete.js} +17 -17
  192. package/models/operations/accountv1imagesdelete.js.map +1 -0
  193. package/models/operations/accountv1imagesget.d.ts +35 -0
  194. package/models/operations/accountv1imagesget.d.ts.map +1 -0
  195. package/models/operations/accountv1imagesget.js +75 -0
  196. package/models/operations/accountv1imagesget.js.map +1 -0
  197. package/models/operations/accountv1imagesupdate.d.ts +35 -0
  198. package/models/operations/accountv1imagesupdate.d.ts.map +1 -0
  199. package/models/operations/{accountv1settingsupdateimage.js → accountv1imagesupdate.js} +17 -17
  200. package/models/operations/accountv1imagesupdate.js.map +1 -0
  201. package/models/operations/accountv1imagesupload.d.ts +35 -0
  202. package/models/operations/accountv1imagesupload.d.ts.map +1 -0
  203. package/models/operations/{accountv1settingsuploadimages.js → accountv1imagesupload.js} +17 -17
  204. package/models/operations/accountv1imagesupload.js.map +1 -0
  205. package/models/operations/index.d.ts +4 -3
  206. package/models/operations/index.d.ts.map +1 -1
  207. package/models/operations/index.js +4 -3
  208. package/models/operations/index.js.map +1 -1
  209. package/package.json +1 -1
  210. package/sdk/account.d.ts +4 -3
  211. package/sdk/account.d.ts.map +1 -1
  212. package/sdk/account.js +7 -3
  213. package/sdk/account.js.map +1 -1
  214. package/sdk/images.d.ts +10 -0
  215. package/sdk/images.d.ts.map +1 -0
  216. package/sdk/images.js +28 -0
  217. package/sdk/images.js.map +1 -0
  218. package/sdk/sdk.d.ts +5 -2
  219. package/sdk/sdk.d.ts.map +1 -1
  220. package/sdk/sdk.js +7 -2
  221. package/sdk/sdk.js.map +1 -1
  222. package/sdk/settings.d.ts +0 -3
  223. package/sdk/settings.d.ts.map +1 -1
  224. package/sdk/settings.js +0 -12
  225. package/sdk/settings.js.map +1 -1
  226. package/src/funcs/accountAccountV1GetBadgeBookmarks.ts +3 -3
  227. package/src/funcs/accountAccountV1ImagesGet.ts +124 -0
  228. package/src/funcs/{accountUpdateImage.ts → accountAccountV1ImagesUpdate.ts} +9 -9
  229. package/src/funcs/accountDeleteImages.ts +9 -11
  230. package/src/funcs/accountGetApps.ts +3 -3
  231. package/src/funcs/accountGetBadges.ts +3 -3
  232. package/src/funcs/accountGetDataPoints.ts +3 -3
  233. package/src/funcs/accountGetFriends.ts +3 -3
  234. package/src/funcs/accountGetInfo.ts +3 -3
  235. package/src/funcs/accountGetLeaderboardHistory.ts +3 -3
  236. package/src/funcs/accountGetStaff.ts +3 -3
  237. package/src/funcs/accountSendEmailVerification.ts +3 -3
  238. package/src/funcs/accountUploadImages.ts +9 -11
  239. package/src/funcs/accountVerifyEmail.ts +3 -3
  240. package/src/funcs/accountsQueue.ts +3 -3
  241. package/src/funcs/adminAdminV1GetEvents.ts +3 -3
  242. package/src/funcs/adminAdminV1UpdateEvent.ts +3 -3
  243. package/src/funcs/adminAdminV1UpdateResources.ts +3 -3
  244. package/src/funcs/adminAdminV1UpdateRoles.ts +3 -3
  245. package/src/funcs/adminGetAccount.ts +3 -3
  246. package/src/funcs/badgeAccountV1BookmarkBadge.ts +3 -3
  247. package/src/funcs/badgeAccountV1GetBadgeBookmarks.ts +3 -3
  248. package/src/funcs/badgeGetTags.ts +3 -3
  249. package/src/funcs/badgesTag.ts +3 -3
  250. package/src/funcs/connectionDelete.ts +3 -3
  251. package/src/funcs/connectionUpdate.ts +3 -3
  252. package/src/funcs/connectionVerify.ts +3 -3
  253. package/src/funcs/connectionsConnect.ts +3 -3
  254. package/src/funcs/dataGetApps.ts +3 -3
  255. package/src/funcs/dataGetBadges.ts +3 -3
  256. package/src/funcs/dataGetDataPoints.ts +3 -3
  257. package/src/funcs/dataGetFriends.ts +3 -3
  258. package/src/funcs/dataGetInfo.ts +3 -3
  259. package/src/funcs/dataGetLeaderboardHistory.ts +3 -3
  260. package/src/funcs/dataGetStaff.ts +3 -3
  261. package/src/funcs/developerCreateDeveloperApp.ts +3 -3
  262. package/src/funcs/developerDeleteDeveloperApp.ts +3 -3
  263. package/src/funcs/developerUpdateApp.ts +3 -3
  264. package/src/funcs/imagesAccountV1ImagesGet.ts +124 -0
  265. package/src/funcs/{settingsUpdateImage.ts → imagesAccountV1ImagesUpdate.ts} +9 -9
  266. package/src/funcs/{settingsDeleteImages.ts → imagesDeleteImages.ts} +10 -12
  267. package/src/funcs/{settingsUploadImages.ts → imagesUploadImages.ts} +10 -12
  268. package/src/funcs/leaderboardGetAccount.ts +3 -3
  269. package/src/funcs/leaderboardGetBadges.ts +3 -3
  270. package/src/funcs/leaderboardGetGroup.ts +3 -3
  271. package/src/funcs/livenessCheck.ts +3 -3
  272. package/src/funcs/locationsGet.ts +3 -3
  273. package/src/funcs/metaAccountV1GetEmbed.ts +3 -3
  274. package/src/funcs/metaAccountV1GetMeta.ts +3 -3
  275. package/src/funcs/publicGetApps.ts +3 -3
  276. package/src/funcs/publicGetBadges.ts +3 -3
  277. package/src/funcs/publicGetDataPoints.ts +3 -3
  278. package/src/funcs/publicGetFriends.ts +3 -3
  279. package/src/funcs/publicGetInfo.ts +3 -3
  280. package/src/funcs/publicGetLeaderboardHistory.ts +3 -3
  281. package/src/funcs/sessionCreate.ts +3 -3
  282. package/src/funcs/sessionLogin.ts +3 -3
  283. package/src/funcs/sessionsDelete.ts +3 -3
  284. package/src/funcs/sessionsGet.ts +3 -3
  285. package/src/funcs/settingsGet.ts +3 -3
  286. package/src/funcs/settingsSendEmailVerification.ts +3 -3
  287. package/src/funcs/settingsUpdate.ts +3 -3
  288. package/src/funcs/settingsVerifyEmail.ts +3 -3
  289. package/src/hooks/hooks.ts +20 -0
  290. package/src/hooks/types.ts +7 -0
  291. package/src/lib/config.ts +3 -3
  292. package/src/lib/primitives.ts +62 -0
  293. package/src/models/components/index.ts +2 -1
  294. package/src/models/components/v1getimagesresponsebody.ts +91 -0
  295. package/src/models/components/v1getsettingsbody.ts +2 -13
  296. package/src/models/components/v1updateimage.ts +72 -0
  297. package/src/models/components/v1updateimagerequestbody.ts +11 -12
  298. package/src/models/components/v1updateimageresponsebody.ts +0 -7
  299. package/src/models/components/v1updatesettingsrequestbody.ts +0 -13
  300. package/src/models/operations/{accountv1settingsdeleteimages.ts → accountv1imagesdelete.ts} +22 -25
  301. package/src/models/operations/accountv1imagesget.ts +89 -0
  302. package/src/models/operations/{accountv1settingsupdateimage.ts → accountv1imagesupdate.ts} +22 -25
  303. package/src/models/operations/{accountv1settingsuploadimages.ts → accountv1imagesupload.ts} +22 -25
  304. package/src/models/operations/index.ts +4 -3
  305. package/src/sdk/account.ts +16 -6
  306. package/src/sdk/images.ts +56 -0
  307. package/src/sdk/sdk.ts +9 -3
  308. package/src/sdk/settings.ts +0 -36
  309. package/src/types/operations.ts +11 -5
  310. package/types/operations.d.ts +5 -3
  311. package/types/operations.d.ts.map +1 -1
  312. package/types/operations.js +3 -0
  313. package/types/operations.js.map +1 -1
  314. package/funcs/accountUpdateImage.js.map +0 -1
  315. package/funcs/settingsDeleteImages.d.ts.map +0 -1
  316. package/funcs/settingsDeleteImages.js.map +0 -1
  317. package/funcs/settingsUpdateImage.d.ts.map +0 -1
  318. package/funcs/settingsUpdateImage.js.map +0 -1
  319. package/funcs/settingsUploadImages.d.ts.map +0 -1
  320. package/funcs/settingsUploadImages.js.map +0 -1
  321. package/models/components/emailnotification.d.ts +0 -66
  322. package/models/components/emailnotification.d.ts.map +0 -1
  323. package/models/components/emailnotification.js +0 -82
  324. package/models/components/emailnotification.js.map +0 -1
  325. package/models/operations/accountv1settingsdeleteimages.d.ts +0 -35
  326. package/models/operations/accountv1settingsdeleteimages.d.ts.map +0 -1
  327. package/models/operations/accountv1settingsdeleteimages.js.map +0 -1
  328. package/models/operations/accountv1settingsupdateimage.d.ts +0 -35
  329. package/models/operations/accountv1settingsupdateimage.d.ts.map +0 -1
  330. package/models/operations/accountv1settingsupdateimage.js.map +0 -1
  331. package/models/operations/accountv1settingsuploadimages.d.ts +0 -35
  332. package/models/operations/accountv1settingsuploadimages.d.ts.map +0 -1
  333. package/models/operations/accountv1settingsuploadimages.js.map +0 -1
  334. package/src/models/components/emailnotification.ts +0 -109
@@ -29,7 +29,7 @@ export async function accountUploadImages(
29
29
  options?: RequestOptions,
30
30
  ): Promise<
31
31
  Result<
32
- operations.AccountV1SettingsUploadImagesResponse,
32
+ operations.AccountV1ImagesUploadResponse,
33
33
  | errors.ErrorModel
34
34
  | SDKError
35
35
  | SDKValidationError
@@ -63,7 +63,7 @@ export async function accountUploadImages(
63
63
  const requestSecurity = resolveGlobalSecurity(securityInput);
64
64
 
65
65
  const context = {
66
- operationID: "account.v1.settings.upload-images",
66
+ operationID: "account.v1.images.upload",
67
67
  oAuth2Scopes: [],
68
68
 
69
69
  resolvedSecurity: requestSecurity,
@@ -75,14 +75,14 @@ export async function accountUploadImages(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -115,7 +115,7 @@ export async function accountUploadImages(
115
115
  };
116
116
 
117
117
  const [result] = await M.match<
118
- operations.AccountV1SettingsUploadImagesResponse,
118
+ operations.AccountV1ImagesUploadResponse,
119
119
  | errors.ErrorModel
120
120
  | SDKError
121
121
  | SDKValidationError
@@ -125,11 +125,9 @@ export async function accountUploadImages(
125
125
  | RequestTimeoutError
126
126
  | ConnectionError
127
127
  >(
128
- M.json(
129
- 200,
130
- operations.AccountV1SettingsUploadImagesResponse$inboundSchema,
131
- { key: "V1UploadImagesResponseBody" },
132
- ),
128
+ M.json(200, operations.AccountV1ImagesUploadResponse$inboundSchema, {
129
+ key: "V1UploadImagesResponseBody",
130
+ }),
133
131
  M.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
134
132
  ctype: "application/problem+json",
135
133
  }),
@@ -75,14 +75,14 @@ export async function accountVerifyEmail(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function accountsQueue(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -59,14 +59,14 @@ export async function adminAdminV1GetEvents(
59
59
  strategy: "backoff",
60
60
  backoff: {
61
61
  initialInterval: 500,
62
- maxInterval: 60000,
62
+ maxInterval: 5000,
63
63
  exponent: 1.5,
64
- maxElapsedTime: 3600000,
64
+ maxElapsedTime: 60000,
65
65
  },
66
66
  retryConnectionErrors: true,
67
67
  }
68
68
  || { strategy: "none" },
69
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
69
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
70
70
  };
71
71
 
72
72
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function adminAdminV1UpdateEvent(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function adminAdminV1UpdateResources(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function adminAdminV1UpdateRoles(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function adminGetAccount(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function badgeAccountV1BookmarkBadge(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -62,14 +62,14 @@ export async function badgeAccountV1GetBadgeBookmarks(
62
62
  strategy: "backoff",
63
63
  backoff: {
64
64
  initialInterval: 500,
65
- maxInterval: 60000,
65
+ maxInterval: 5000,
66
66
  exponent: 1.5,
67
- maxElapsedTime: 3600000,
67
+ maxElapsedTime: 60000,
68
68
  },
69
69
  retryConnectionErrors: true,
70
70
  }
71
71
  || { strategy: "none" },
72
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
72
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
73
73
  };
74
74
 
75
75
  const requestRes = client._createRequest(context, {
@@ -62,14 +62,14 @@ export async function badgeGetTags(
62
62
  strategy: "backoff",
63
63
  backoff: {
64
64
  initialInterval: 500,
65
- maxInterval: 60000,
65
+ maxInterval: 5000,
66
66
  exponent: 1.5,
67
- maxElapsedTime: 3600000,
67
+ maxElapsedTime: 60000,
68
68
  },
69
69
  retryConnectionErrors: true,
70
70
  }
71
71
  || { strategy: "none" },
72
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
72
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
73
73
  };
74
74
 
75
75
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function badgesTag(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function connectionDelete(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function connectionUpdate(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function connectionVerify(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function connectionsConnect(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetApps(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetBadges(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetDataPoints(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetFriends(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetInfo(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -75,14 +75,14 @@ export async function dataGetLeaderboardHistory(
75
75
  strategy: "backoff",
76
76
  backoff: {
77
77
  initialInterval: 500,
78
- maxInterval: 60000,
78
+ maxInterval: 5000,
79
79
  exponent: 1.5,
80
- maxElapsedTime: 3600000,
80
+ maxElapsedTime: 60000,
81
81
  },
82
82
  retryConnectionErrors: true,
83
83
  }
84
84
  || { strategy: "none" },
85
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
85
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
86
86
  };
87
87
 
88
88
  const requestRes = client._createRequest(context, {
@@ -59,14 +59,14 @@ export async function dataGetStaff(
59
59
  strategy: "backoff",
60
60
  backoff: {
61
61
  initialInterval: 500,
62
- maxInterval: 60000,
62
+ maxInterval: 5000,
63
63
  exponent: 1.5,
64
- maxElapsedTime: 3600000,
64
+ maxElapsedTime: 60000,
65
65
  },
66
66
  retryConnectionErrors: true,
67
67
  }
68
68
  || { strategy: "none" },
69
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
69
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
70
70
  };
71
71
 
72
72
  const requestRes = client._createRequest(context, {
@@ -76,14 +76,14 @@ export async function developerCreateDeveloperApp(
76
76
  strategy: "backoff",
77
77
  backoff: {
78
78
  initialInterval: 500,
79
- maxInterval: 60000,
79
+ maxInterval: 5000,
80
80
  exponent: 1.5,
81
- maxElapsedTime: 3600000,
81
+ maxElapsedTime: 60000,
82
82
  },
83
83
  retryConnectionErrors: true,
84
84
  }
85
85
  || { strategy: "none" },
86
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
86
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
87
87
  };
88
88
 
89
89
  const requestRes = client._createRequest(context, {
@@ -78,14 +78,14 @@ export async function developerDeleteDeveloperApp(
78
78
  strategy: "backoff",
79
79
  backoff: {
80
80
  initialInterval: 500,
81
- maxInterval: 60000,
81
+ maxInterval: 5000,
82
82
  exponent: 1.5,
83
- maxElapsedTime: 3600000,
83
+ maxElapsedTime: 60000,
84
84
  },
85
85
  retryConnectionErrors: true,
86
86
  }
87
87
  || { strategy: "none" },
88
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
88
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
89
89
  };
90
90
 
91
91
  const requestRes = client._createRequest(context, {
@@ -78,14 +78,14 @@ export async function developerUpdateApp(
78
78
  strategy: "backoff",
79
79
  backoff: {
80
80
  initialInterval: 500,
81
- maxInterval: 60000,
81
+ maxInterval: 5000,
82
82
  exponent: 1.5,
83
- maxElapsedTime: 3600000,
83
+ maxElapsedTime: 60000,
84
84
  },
85
85
  retryConnectionErrors: true,
86
86
  }
87
87
  || { strategy: "none" },
88
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
88
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
89
89
  };
90
90
 
91
91
  const requestRes = client._createRequest(context, {
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { RequestOptions } from "../lib/sdks.js";
8
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
+ import { pathToFunc } from "../lib/url.js";
10
+ import {
11
+ ConnectionError,
12
+ InvalidRequestError,
13
+ RequestAbortedError,
14
+ RequestTimeoutError,
15
+ UnexpectedClientError,
16
+ } from "../models/errors/httpclienterrors.js";
17
+ import * as errors from "../models/errors/index.js";
18
+ import { SDKError } from "../models/errors/sdkerror.js";
19
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
20
+ import * as operations from "../models/operations/index.js";
21
+ import { Result } from "../types/fp.js";
22
+
23
+ export async function imagesAccountV1ImagesGet(
24
+ client: SteamSetsCore,
25
+ options?: RequestOptions,
26
+ ): Promise<
27
+ Result<
28
+ operations.AccountV1ImagesGetResponse,
29
+ | errors.ErrorModel
30
+ | SDKError
31
+ | SDKValidationError
32
+ | UnexpectedClientError
33
+ | InvalidRequestError
34
+ | RequestAbortedError
35
+ | RequestTimeoutError
36
+ | ConnectionError
37
+ >
38
+ > {
39
+ const path = pathToFunc("/account.v1.AccountService/GetImages")();
40
+
41
+ const headers = new Headers({
42
+ Accept: "application/json",
43
+ });
44
+
45
+ const secConfig = await extractSecurity(client._options.token);
46
+ const securityInput = secConfig == null ? {} : { token: secConfig };
47
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48
+
49
+ const context = {
50
+ operationID: "account.v1.images.get",
51
+ oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
55
+ securitySource: client._options.token,
56
+ retryConfig: options?.retries
57
+ || client._options.retryConfig
58
+ || {
59
+ strategy: "backoff",
60
+ backoff: {
61
+ initialInterval: 500,
62
+ maxInterval: 5000,
63
+ exponent: 1.5,
64
+ maxElapsedTime: 60000,
65
+ },
66
+ retryConnectionErrors: true,
67
+ }
68
+ || { strategy: "none" },
69
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
70
+ };
71
+
72
+ const requestRes = client._createRequest(context, {
73
+ security: requestSecurity,
74
+ method: "POST",
75
+ path: path,
76
+ headers: headers,
77
+ uaHeader: "x-speakeasy-user-agent",
78
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
79
+ }, options);
80
+ if (!requestRes.ok) {
81
+ return requestRes;
82
+ }
83
+ const req = requestRes.value;
84
+
85
+ const doResult = await client._do(req, {
86
+ context,
87
+ errorCodes: ["4XX", "500", "5XX"],
88
+ retryConfig: context.retryConfig,
89
+ retryCodes: context.retryCodes,
90
+ });
91
+ if (!doResult.ok) {
92
+ return doResult;
93
+ }
94
+ const response = doResult.value;
95
+
96
+ const responseFields = {
97
+ HttpMeta: { Response: response, Request: req },
98
+ };
99
+
100
+ const [result] = await M.match<
101
+ operations.AccountV1ImagesGetResponse,
102
+ | errors.ErrorModel
103
+ | SDKError
104
+ | SDKValidationError
105
+ | UnexpectedClientError
106
+ | InvalidRequestError
107
+ | RequestAbortedError
108
+ | RequestTimeoutError
109
+ | ConnectionError
110
+ >(
111
+ M.json(200, operations.AccountV1ImagesGetResponse$inboundSchema, {
112
+ key: "V1GetImagesResponseBody",
113
+ }),
114
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
115
+ ctype: "application/problem+json",
116
+ }),
117
+ M.fail(["4XX", "5XX"]),
118
+ )(response, req, { extraFields: responseFields });
119
+ if (!result.ok) {
120
+ return result;
121
+ }
122
+
123
+ return result;
124
+ }