@steamsets/client-ts 0.12.4 → 0.12.6

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 (298) hide show
  1. package/README.md +19 -30
  2. package/docs/sdks/admin/README.md +180 -0
  3. package/docs/sdks/steamsets/README.md +148 -1
  4. package/funcs/accountDeleteImages.d.ts.map +1 -1
  5. package/funcs/accountDeleteImages.js +12 -2
  6. package/funcs/accountDeleteImages.js.map +1 -1
  7. package/funcs/accountGetApps.d.ts.map +1 -1
  8. package/funcs/accountGetApps.js +12 -2
  9. package/funcs/accountGetApps.js.map +1 -1
  10. package/funcs/accountGetBadges.d.ts.map +1 -1
  11. package/funcs/accountGetBadges.js +12 -2
  12. package/funcs/accountGetBadges.js.map +1 -1
  13. package/funcs/accountGetDataPoints.d.ts.map +1 -1
  14. package/funcs/accountGetDataPoints.js +12 -2
  15. package/funcs/accountGetDataPoints.js.map +1 -1
  16. package/funcs/accountGetFriends.d.ts.map +1 -1
  17. package/funcs/accountGetFriends.js +12 -2
  18. package/funcs/accountGetFriends.js.map +1 -1
  19. package/funcs/accountGetInfo.d.ts.map +1 -1
  20. package/funcs/accountGetInfo.js +12 -2
  21. package/funcs/accountGetInfo.js.map +1 -1
  22. package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
  23. package/funcs/accountGetLeaderboardHistory.js +12 -2
  24. package/funcs/accountGetLeaderboardHistory.js.map +1 -1
  25. package/funcs/accountGetStaff.d.ts.map +1 -1
  26. package/funcs/accountGetStaff.js +12 -2
  27. package/funcs/accountGetStaff.js.map +1 -1
  28. package/funcs/accountSendEmailVerification.d.ts.map +1 -1
  29. package/funcs/accountSendEmailVerification.js +12 -2
  30. package/funcs/accountSendEmailVerification.js.map +1 -1
  31. package/funcs/accountUpdateImage.d.ts.map +1 -1
  32. package/funcs/accountUpdateImage.js +12 -2
  33. package/funcs/accountUpdateImage.js.map +1 -1
  34. package/funcs/accountUploadImages.d.ts.map +1 -1
  35. package/funcs/accountUploadImages.js +12 -2
  36. package/funcs/accountUploadImages.js.map +1 -1
  37. package/funcs/accountV1GetEmbed.d.ts +11 -0
  38. package/funcs/accountV1GetEmbed.d.ts.map +1 -0
  39. package/funcs/accountV1GetEmbed.js +106 -0
  40. package/funcs/accountV1GetEmbed.js.map +1 -0
  41. package/funcs/accountV1GetMeta.d.ts +11 -0
  42. package/funcs/accountV1GetMeta.d.ts.map +1 -0
  43. package/funcs/accountV1GetMeta.js +105 -0
  44. package/funcs/accountV1GetMeta.js.map +1 -0
  45. package/funcs/accountVerifyEmail.d.ts.map +1 -1
  46. package/funcs/accountVerifyEmail.js +12 -2
  47. package/funcs/accountVerifyEmail.js.map +1 -1
  48. package/funcs/accountsQueue.d.ts.map +1 -1
  49. package/funcs/accountsQueue.js +12 -2
  50. package/funcs/accountsQueue.js.map +1 -1
  51. package/funcs/adminAdminV1UpdateResources.d.ts +11 -0
  52. package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -0
  53. package/funcs/adminAdminV1UpdateResources.js +103 -0
  54. package/funcs/adminAdminV1UpdateResources.js.map +1 -0
  55. package/funcs/adminAdminV1UpdateRoles.d.ts +11 -0
  56. package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -0
  57. package/funcs/adminAdminV1UpdateRoles.js +103 -0
  58. package/funcs/adminAdminV1UpdateRoles.js.map +1 -0
  59. package/funcs/adminGetAccount.d.ts.map +1 -1
  60. package/funcs/adminGetAccount.js +12 -2
  61. package/funcs/adminGetAccount.js.map +1 -1
  62. package/funcs/appsGet.d.ts.map +1 -1
  63. package/funcs/appsGet.js +12 -2
  64. package/funcs/appsGet.js.map +1 -1
  65. package/funcs/appsQueue.d.ts.map +1 -1
  66. package/funcs/appsQueue.js +12 -2
  67. package/funcs/appsQueue.js.map +1 -1
  68. package/funcs/badgeGetTags.d.ts.map +1 -1
  69. package/funcs/badgeGetTags.js +12 -2
  70. package/funcs/badgeGetTags.js.map +1 -1
  71. package/funcs/badgesTag.d.ts.map +1 -1
  72. package/funcs/badgesTag.js +12 -2
  73. package/funcs/badgesTag.js.map +1 -1
  74. package/funcs/connectionDelete.d.ts.map +1 -1
  75. package/funcs/connectionDelete.js +12 -2
  76. package/funcs/connectionDelete.js.map +1 -1
  77. package/funcs/connectionUpdate.d.ts.map +1 -1
  78. package/funcs/connectionUpdate.js +12 -2
  79. package/funcs/connectionUpdate.js.map +1 -1
  80. package/funcs/connectionVerify.d.ts.map +1 -1
  81. package/funcs/connectionVerify.js +12 -2
  82. package/funcs/connectionVerify.js.map +1 -1
  83. package/funcs/connectionsConnect.d.ts.map +1 -1
  84. package/funcs/connectionsConnect.js +12 -2
  85. package/funcs/connectionsConnect.js.map +1 -1
  86. package/funcs/dataGetApps.d.ts.map +1 -1
  87. package/funcs/dataGetApps.js +12 -2
  88. package/funcs/dataGetApps.js.map +1 -1
  89. package/funcs/dataGetBadges.d.ts.map +1 -1
  90. package/funcs/dataGetBadges.js +12 -2
  91. package/funcs/dataGetBadges.js.map +1 -1
  92. package/funcs/dataGetDataPoints.d.ts.map +1 -1
  93. package/funcs/dataGetDataPoints.js +12 -2
  94. package/funcs/dataGetDataPoints.js.map +1 -1
  95. package/funcs/dataGetFriends.d.ts.map +1 -1
  96. package/funcs/dataGetFriends.js +12 -2
  97. package/funcs/dataGetFriends.js.map +1 -1
  98. package/funcs/dataGetInfo.d.ts.map +1 -1
  99. package/funcs/dataGetInfo.js +12 -2
  100. package/funcs/dataGetInfo.js.map +1 -1
  101. package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
  102. package/funcs/dataGetLeaderboardHistory.js +12 -2
  103. package/funcs/dataGetLeaderboardHistory.js.map +1 -1
  104. package/funcs/dataGetStaff.d.ts.map +1 -1
  105. package/funcs/dataGetStaff.js +12 -2
  106. package/funcs/dataGetStaff.js.map +1 -1
  107. package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
  108. package/funcs/developerCreateDeveloperApp.js +12 -2
  109. package/funcs/developerCreateDeveloperApp.js.map +1 -1
  110. package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
  111. package/funcs/developerDeleteDeveloperApp.js +12 -2
  112. package/funcs/developerDeleteDeveloperApp.js.map +1 -1
  113. package/funcs/developerUpdateApp.d.ts.map +1 -1
  114. package/funcs/developerUpdateApp.js +12 -2
  115. package/funcs/developerUpdateApp.js.map +1 -1
  116. package/funcs/leaderboardGetAccount.d.ts.map +1 -1
  117. package/funcs/leaderboardGetAccount.js +12 -2
  118. package/funcs/leaderboardGetAccount.js.map +1 -1
  119. package/funcs/leaderboardGetBadges.d.ts.map +1 -1
  120. package/funcs/leaderboardGetBadges.js +12 -2
  121. package/funcs/leaderboardGetBadges.js.map +1 -1
  122. package/funcs/leaderboardGetGroup.d.ts.map +1 -1
  123. package/funcs/leaderboardGetGroup.js +12 -2
  124. package/funcs/leaderboardGetGroup.js.map +1 -1
  125. package/funcs/livenessCheck.d.ts.map +1 -1
  126. package/funcs/livenessCheck.js +12 -2
  127. package/funcs/livenessCheck.js.map +1 -1
  128. package/funcs/locationsGet.d.ts.map +1 -1
  129. package/funcs/locationsGet.js +12 -2
  130. package/funcs/locationsGet.js.map +1 -1
  131. package/funcs/publicGetApps.d.ts.map +1 -1
  132. package/funcs/publicGetApps.js +12 -2
  133. package/funcs/publicGetApps.js.map +1 -1
  134. package/funcs/publicGetBadges.d.ts.map +1 -1
  135. package/funcs/publicGetBadges.js +12 -2
  136. package/funcs/publicGetBadges.js.map +1 -1
  137. package/funcs/publicGetDataPoints.d.ts.map +1 -1
  138. package/funcs/publicGetDataPoints.js +12 -2
  139. package/funcs/publicGetDataPoints.js.map +1 -1
  140. package/funcs/publicGetFriends.d.ts.map +1 -1
  141. package/funcs/publicGetFriends.js +12 -2
  142. package/funcs/publicGetFriends.js.map +1 -1
  143. package/funcs/publicGetInfo.d.ts.map +1 -1
  144. package/funcs/publicGetInfo.js +12 -2
  145. package/funcs/publicGetInfo.js.map +1 -1
  146. package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
  147. package/funcs/publicGetLeaderboardHistory.js +12 -2
  148. package/funcs/publicGetLeaderboardHistory.js.map +1 -1
  149. package/funcs/sessionCreate.d.ts.map +1 -1
  150. package/funcs/sessionCreate.js +12 -2
  151. package/funcs/sessionCreate.js.map +1 -1
  152. package/funcs/sessionLogin.d.ts.map +1 -1
  153. package/funcs/sessionLogin.js +12 -2
  154. package/funcs/sessionLogin.js.map +1 -1
  155. package/funcs/sessionsDelete.d.ts.map +1 -1
  156. package/funcs/sessionsDelete.js +12 -2
  157. package/funcs/sessionsDelete.js.map +1 -1
  158. package/funcs/sessionsGet.d.ts.map +1 -1
  159. package/funcs/sessionsGet.js +12 -2
  160. package/funcs/sessionsGet.js.map +1 -1
  161. package/funcs/settingsDeleteImages.d.ts.map +1 -1
  162. package/funcs/settingsDeleteImages.js +12 -2
  163. package/funcs/settingsDeleteImages.js.map +1 -1
  164. package/funcs/settingsGet.d.ts.map +1 -1
  165. package/funcs/settingsGet.js +12 -2
  166. package/funcs/settingsGet.js.map +1 -1
  167. package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
  168. package/funcs/settingsSendEmailVerification.js +12 -2
  169. package/funcs/settingsSendEmailVerification.js.map +1 -1
  170. package/funcs/settingsUpdate.d.ts.map +1 -1
  171. package/funcs/settingsUpdate.js +12 -2
  172. package/funcs/settingsUpdate.js.map +1 -1
  173. package/funcs/settingsUpdateImage.d.ts.map +1 -1
  174. package/funcs/settingsUpdateImage.js +12 -2
  175. package/funcs/settingsUpdateImage.js.map +1 -1
  176. package/funcs/settingsUploadImages.d.ts.map +1 -1
  177. package/funcs/settingsUploadImages.js +12 -2
  178. package/funcs/settingsUploadImages.js.map +1 -1
  179. package/funcs/settingsVerifyEmail.d.ts.map +1 -1
  180. package/funcs/settingsVerifyEmail.js +12 -2
  181. package/funcs/settingsVerifyEmail.js.map +1 -1
  182. package/lib/config.d.ts +3 -3
  183. package/lib/config.js +3 -3
  184. package/models/components/index.d.ts +3 -0
  185. package/models/components/index.d.ts.map +1 -1
  186. package/models/components/index.js +3 -0
  187. package/models/components/index.js.map +1 -1
  188. package/models/components/v1accountmetaresponsebody.d.ts +28 -0
  189. package/models/components/v1accountmetaresponsebody.d.ts.map +1 -0
  190. package/models/components/v1accountmetaresponsebody.js +59 -0
  191. package/models/components/v1accountmetaresponsebody.js.map +1 -0
  192. package/models/components/v1adminupdateresourcesrequestbody.d.ts +111 -0
  193. package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -0
  194. package/models/components/v1adminupdateresourcesrequestbody.js +95 -0
  195. package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -0
  196. package/models/components/v1adminupdaterolessrequestbody.d.ts +180 -0
  197. package/models/components/v1adminupdaterolessrequestbody.d.ts.map +1 -0
  198. package/models/components/v1adminupdaterolessrequestbody.js +129 -0
  199. package/models/components/v1adminupdaterolessrequestbody.js.map +1 -0
  200. package/models/operations/accountv1getembed.d.ts +37 -0
  201. package/models/operations/accountv1getembed.d.ts.map +1 -0
  202. package/models/operations/accountv1getembed.js +66 -0
  203. package/models/operations/accountv1getembed.js.map +1 -0
  204. package/models/operations/accountv1getmeta.d.ts +31 -0
  205. package/models/operations/accountv1getmeta.d.ts.map +1 -0
  206. package/models/operations/accountv1getmeta.js +66 -0
  207. package/models/operations/accountv1getmeta.js.map +1 -0
  208. package/models/operations/adminv1updateresources.d.ts +26 -0
  209. package/models/operations/adminv1updateresources.d.ts.map +1 -0
  210. package/models/operations/adminv1updateresources.js +60 -0
  211. package/models/operations/adminv1updateresources.js.map +1 -0
  212. package/models/operations/adminv1updateroles.d.ts +26 -0
  213. package/models/operations/adminv1updateroles.d.ts.map +1 -0
  214. package/models/operations/adminv1updateroles.js +60 -0
  215. package/models/operations/adminv1updateroles.js.map +1 -0
  216. package/models/operations/index.d.ts +4 -0
  217. package/models/operations/index.d.ts.map +1 -1
  218. package/models/operations/index.js +4 -0
  219. package/models/operations/index.js.map +1 -1
  220. package/package.json +1 -1
  221. package/sdk/admin.d.ts +2 -0
  222. package/sdk/admin.d.ts.map +1 -1
  223. package/sdk/admin.js +8 -0
  224. package/sdk/admin.js.map +1 -1
  225. package/sdk/sdk.d.ts +5 -1
  226. package/sdk/sdk.d.ts.map +1 -1
  227. package/sdk/sdk.js +9 -0
  228. package/sdk/sdk.js.map +1 -1
  229. package/src/funcs/accountDeleteImages.ts +12 -2
  230. package/src/funcs/accountGetApps.ts +12 -2
  231. package/src/funcs/accountGetBadges.ts +12 -2
  232. package/src/funcs/accountGetDataPoints.ts +12 -2
  233. package/src/funcs/accountGetFriends.ts +12 -2
  234. package/src/funcs/accountGetInfo.ts +12 -2
  235. package/src/funcs/accountGetLeaderboardHistory.ts +12 -2
  236. package/src/funcs/accountGetStaff.ts +12 -2
  237. package/src/funcs/accountSendEmailVerification.ts +12 -2
  238. package/src/funcs/accountUpdateImage.ts +12 -2
  239. package/src/funcs/accountUploadImages.ts +12 -2
  240. package/src/funcs/accountV1GetEmbed.ts +135 -0
  241. package/src/funcs/accountV1GetMeta.ts +134 -0
  242. package/src/funcs/accountVerifyEmail.ts +12 -2
  243. package/src/funcs/accountsQueue.ts +12 -2
  244. package/src/funcs/adminAdminV1UpdateResources.ts +133 -0
  245. package/src/funcs/adminAdminV1UpdateRoles.ts +133 -0
  246. package/src/funcs/adminGetAccount.ts +12 -2
  247. package/src/funcs/appsGet.ts +12 -2
  248. package/src/funcs/appsQueue.ts +12 -2
  249. package/src/funcs/badgeGetTags.ts +12 -2
  250. package/src/funcs/badgesTag.ts +12 -2
  251. package/src/funcs/connectionDelete.ts +12 -2
  252. package/src/funcs/connectionUpdate.ts +12 -2
  253. package/src/funcs/connectionVerify.ts +12 -2
  254. package/src/funcs/connectionsConnect.ts +12 -2
  255. package/src/funcs/dataGetApps.ts +12 -2
  256. package/src/funcs/dataGetBadges.ts +12 -2
  257. package/src/funcs/dataGetDataPoints.ts +12 -2
  258. package/src/funcs/dataGetFriends.ts +12 -2
  259. package/src/funcs/dataGetInfo.ts +12 -2
  260. package/src/funcs/dataGetLeaderboardHistory.ts +12 -2
  261. package/src/funcs/dataGetStaff.ts +12 -2
  262. package/src/funcs/developerCreateDeveloperApp.ts +12 -2
  263. package/src/funcs/developerDeleteDeveloperApp.ts +12 -2
  264. package/src/funcs/developerUpdateApp.ts +12 -2
  265. package/src/funcs/leaderboardGetAccount.ts +12 -2
  266. package/src/funcs/leaderboardGetBadges.ts +12 -2
  267. package/src/funcs/leaderboardGetGroup.ts +12 -2
  268. package/src/funcs/livenessCheck.ts +12 -2
  269. package/src/funcs/locationsGet.ts +12 -2
  270. package/src/funcs/publicGetApps.ts +12 -2
  271. package/src/funcs/publicGetBadges.ts +12 -2
  272. package/src/funcs/publicGetDataPoints.ts +12 -2
  273. package/src/funcs/publicGetFriends.ts +12 -2
  274. package/src/funcs/publicGetInfo.ts +12 -2
  275. package/src/funcs/publicGetLeaderboardHistory.ts +12 -2
  276. package/src/funcs/sessionCreate.ts +12 -2
  277. package/src/funcs/sessionLogin.ts +12 -2
  278. package/src/funcs/sessionsDelete.ts +12 -2
  279. package/src/funcs/sessionsGet.ts +12 -2
  280. package/src/funcs/settingsDeleteImages.ts +12 -2
  281. package/src/funcs/settingsGet.ts +12 -2
  282. package/src/funcs/settingsSendEmailVerification.ts +12 -2
  283. package/src/funcs/settingsUpdate.ts +12 -2
  284. package/src/funcs/settingsUpdateImage.ts +12 -2
  285. package/src/funcs/settingsUploadImages.ts +12 -2
  286. package/src/funcs/settingsVerifyEmail.ts +12 -2
  287. package/src/lib/config.ts +3 -3
  288. package/src/models/components/index.ts +3 -0
  289. package/src/models/components/v1accountmetaresponsebody.ts +57 -0
  290. package/src/models/components/v1adminupdateresourcesrequestbody.ts +131 -0
  291. package/src/models/components/v1adminupdaterolessrequestbody.ts +152 -0
  292. package/src/models/operations/accountv1getembed.ts +68 -0
  293. package/src/models/operations/accountv1getmeta.ts +68 -0
  294. package/src/models/operations/adminv1updateresources.ts +55 -0
  295. package/src/models/operations/adminv1updateroles.ts +55 -0
  296. package/src/models/operations/index.ts +4 -0
  297. package/src/sdk/admin.ts +24 -0
  298. package/src/sdk/sdk.ts +28 -1
@@ -85,8 +85,18 @@ export async function accountGetDataPoints(
85
85
  context,
86
86
  errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -85,8 +85,18 @@ export async function accountGetFriends(
85
85
  context,
86
86
  errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -85,8 +85,18 @@ export async function accountGetInfo(
85
85
  context,
86
86
  errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -85,8 +85,18 @@ export async function accountGetLeaderboardHistory(
85
85
  context,
86
86
  errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -68,8 +68,18 @@ export async function accountGetStaff(
68
68
  context,
69
69
  errorCodes: ["404", "429", "4XX", "500", "5XX"],
70
70
  retryConfig: options?.retries
71
- || client._options.retryConfig,
72
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
71
+ || client._options.retryConfig
72
+ || {
73
+ strategy: "backoff",
74
+ backoff: {
75
+ initialInterval: 500,
76
+ maxInterval: 60000,
77
+ exponent: 1.5,
78
+ maxElapsedTime: 3600000,
79
+ },
80
+ retryConnectionErrors: true,
81
+ },
82
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
73
83
  });
74
84
  if (!doResult.ok) {
75
85
  return doResult;
@@ -90,8 +90,18 @@ export async function accountSendEmailVerification(
90
90
  context,
91
91
  errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
92
92
  retryConfig: options?.retries
93
- || client._options.retryConfig,
94
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
93
+ || client._options.retryConfig
94
+ || {
95
+ strategy: "backoff",
96
+ backoff: {
97
+ initialInterval: 500,
98
+ maxInterval: 60000,
99
+ exponent: 1.5,
100
+ maxElapsedTime: 3600000,
101
+ },
102
+ retryConnectionErrors: true,
103
+ },
104
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
95
105
  });
96
106
  if (!doResult.ok) {
97
107
  return doResult;
@@ -85,8 +85,18 @@ export async function accountUpdateImage(
85
85
  context,
86
86
  errorCodes: ["404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -85,8 +85,18 @@ export async function accountUploadImages(
85
85
  context,
86
86
  errorCodes: ["422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -0,0 +1,135 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ export async function accountV1GetEmbed(
27
+ client: SteamSetsCore,
28
+ request: components.AccountSearch,
29
+ options?: RequestOptions,
30
+ ): Promise<
31
+ Result<
32
+ operations.AccountV1GetEmbedResponse,
33
+ | errors.ErrorModel
34
+ | SDKError
35
+ | SDKValidationError
36
+ | UnexpectedClientError
37
+ | InvalidRequestError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | ConnectionError
41
+ >
42
+ > {
43
+ const parsed = safeParse(
44
+ request,
45
+ (value) => components.AccountSearch$outboundSchema.parse(value),
46
+ "Input validation failed",
47
+ );
48
+ if (!parsed.ok) {
49
+ return parsed;
50
+ }
51
+ const payload = parsed.value;
52
+ const body = encodeJSON("body", payload, { explode: true });
53
+
54
+ const path = pathToFunc("/account.v1.AccountService/GetEmbed")();
55
+
56
+ const headers = new Headers({
57
+ "Content-Type": "application/json",
58
+ Accept: "application/json",
59
+ });
60
+
61
+ const secConfig = await extractSecurity(client._options.token);
62
+ const securityInput = secConfig == null ? {} : { token: secConfig };
63
+ const context = {
64
+ operationID: "account.v1.getEmbed",
65
+ oAuth2Scopes: [],
66
+ securitySource: client._options.token,
67
+ };
68
+ const requestSecurity = resolveGlobalSecurity(securityInput);
69
+
70
+ const requestRes = client._createRequest(context, {
71
+ security: requestSecurity,
72
+ method: "POST",
73
+ path: path,
74
+ headers: headers,
75
+ body: body,
76
+ uaHeader: "x-speakeasy-user-agent",
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return requestRes;
81
+ }
82
+ const req = requestRes.value;
83
+
84
+ const doResult = await client._do(req, {
85
+ context,
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
+ retryConfig: options?.retries
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
100
+ });
101
+ if (!doResult.ok) {
102
+ return doResult;
103
+ }
104
+ const response = doResult.value;
105
+
106
+ const responseFields = {
107
+ HttpMeta: { Response: response, Request: req },
108
+ };
109
+
110
+ const [result] = await M.match<
111
+ operations.AccountV1GetEmbedResponse,
112
+ | errors.ErrorModel
113
+ | SDKError
114
+ | SDKValidationError
115
+ | UnexpectedClientError
116
+ | InvalidRequestError
117
+ | RequestAbortedError
118
+ | RequestTimeoutError
119
+ | ConnectionError
120
+ >(
121
+ M.json(200, operations.AccountV1GetEmbedResponse$inboundSchema, {
122
+ hdrs: true,
123
+ key: "string",
124
+ }),
125
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
126
+ ctype: "application/problem+json",
127
+ }),
128
+ M.fail(["4XX", "5XX"]),
129
+ )(response, req, { extraFields: responseFields });
130
+ if (!result.ok) {
131
+ return result;
132
+ }
133
+
134
+ return result;
135
+ }
@@ -0,0 +1,134 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ export async function accountV1GetMeta(
27
+ client: SteamSetsCore,
28
+ request: components.AccountSearch,
29
+ options?: RequestOptions,
30
+ ): Promise<
31
+ Result<
32
+ operations.AccountV1GetMetaResponse,
33
+ | errors.ErrorModel
34
+ | SDKError
35
+ | SDKValidationError
36
+ | UnexpectedClientError
37
+ | InvalidRequestError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | ConnectionError
41
+ >
42
+ > {
43
+ const parsed = safeParse(
44
+ request,
45
+ (value) => components.AccountSearch$outboundSchema.parse(value),
46
+ "Input validation failed",
47
+ );
48
+ if (!parsed.ok) {
49
+ return parsed;
50
+ }
51
+ const payload = parsed.value;
52
+ const body = encodeJSON("body", payload, { explode: true });
53
+
54
+ const path = pathToFunc("/account.v1.AccountService/GetMeta")();
55
+
56
+ const headers = new Headers({
57
+ "Content-Type": "application/json",
58
+ Accept: "application/json",
59
+ });
60
+
61
+ const secConfig = await extractSecurity(client._options.token);
62
+ const securityInput = secConfig == null ? {} : { token: secConfig };
63
+ const context = {
64
+ operationID: "account.v1.getMeta",
65
+ oAuth2Scopes: [],
66
+ securitySource: client._options.token,
67
+ };
68
+ const requestSecurity = resolveGlobalSecurity(securityInput);
69
+
70
+ const requestRes = client._createRequest(context, {
71
+ security: requestSecurity,
72
+ method: "POST",
73
+ path: path,
74
+ headers: headers,
75
+ body: body,
76
+ uaHeader: "x-speakeasy-user-agent",
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return requestRes;
81
+ }
82
+ const req = requestRes.value;
83
+
84
+ const doResult = await client._do(req, {
85
+ context,
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
+ retryConfig: options?.retries
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
100
+ });
101
+ if (!doResult.ok) {
102
+ return doResult;
103
+ }
104
+ const response = doResult.value;
105
+
106
+ const responseFields = {
107
+ HttpMeta: { Response: response, Request: req },
108
+ };
109
+
110
+ const [result] = await M.match<
111
+ operations.AccountV1GetMetaResponse,
112
+ | errors.ErrorModel
113
+ | SDKError
114
+ | SDKValidationError
115
+ | UnexpectedClientError
116
+ | InvalidRequestError
117
+ | RequestAbortedError
118
+ | RequestTimeoutError
119
+ | ConnectionError
120
+ >(
121
+ M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
122
+ key: "V1AccountMetaResponseBody",
123
+ }),
124
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
125
+ ctype: "application/problem+json",
126
+ }),
127
+ M.fail(["4XX", "5XX"]),
128
+ )(response, req, { extraFields: responseFields });
129
+ if (!result.ok) {
130
+ return result;
131
+ }
132
+
133
+ return result;
134
+ }
@@ -85,8 +85,18 @@ export async function accountVerifyEmail(
85
85
  context,
86
86
  errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -85,8 +85,18 @@ export async function accountsQueue(
85
85
  context,
86
86
  errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ || client._options.retryConfig
89
+ || {
90
+ strategy: "backoff",
91
+ backoff: {
92
+ initialInterval: 500,
93
+ maxInterval: 60000,
94
+ exponent: 1.5,
95
+ maxElapsedTime: 3600000,
96
+ },
97
+ retryConnectionErrors: true,
98
+ },
99
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
90
100
  });
91
101
  if (!doResult.ok) {
92
102
  return doResult;
@@ -0,0 +1,133 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ export async function adminAdminV1UpdateResources(
27
+ client: SteamSetsCore,
28
+ request: components.V1AdminUpdateResourcesRequestBody,
29
+ options?: RequestOptions,
30
+ ): Promise<
31
+ Result<
32
+ operations.AdminV1UpdateResourcesResponse,
33
+ | errors.ErrorModel
34
+ | SDKError
35
+ | SDKValidationError
36
+ | UnexpectedClientError
37
+ | InvalidRequestError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | ConnectionError
41
+ >
42
+ > {
43
+ const parsed = safeParse(
44
+ request,
45
+ (value) =>
46
+ components.V1AdminUpdateResourcesRequestBody$outboundSchema.parse(value),
47
+ "Input validation failed",
48
+ );
49
+ if (!parsed.ok) {
50
+ return parsed;
51
+ }
52
+ const payload = parsed.value;
53
+ const body = encodeJSON("body", payload, { explode: true });
54
+
55
+ const path = pathToFunc("/admin.v1.AdminService/UpdateResources")();
56
+
57
+ const headers = new Headers({
58
+ "Content-Type": "application/json",
59
+ Accept: "application/problem+json",
60
+ });
61
+
62
+ const secConfig = await extractSecurity(client._options.token);
63
+ const securityInput = secConfig == null ? {} : { token: secConfig };
64
+ const context = {
65
+ operationID: "admin.v1.update-resources",
66
+ oAuth2Scopes: [],
67
+ securitySource: client._options.token,
68
+ };
69
+ const requestSecurity = resolveGlobalSecurity(securityInput);
70
+
71
+ const requestRes = client._createRequest(context, {
72
+ security: requestSecurity,
73
+ method: "POST",
74
+ path: path,
75
+ headers: headers,
76
+ body: body,
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: ["403", "404", "422", "429", "4XX", "500", "5XX"],
88
+ retryConfig: options?.retries
89
+ || client._options.retryConfig
90
+ || {
91
+ strategy: "backoff",
92
+ backoff: {
93
+ initialInterval: 500,
94
+ maxInterval: 60000,
95
+ exponent: 1.5,
96
+ maxElapsedTime: 3600000,
97
+ },
98
+ retryConnectionErrors: true,
99
+ },
100
+ retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
101
+ });
102
+ if (!doResult.ok) {
103
+ return doResult;
104
+ }
105
+ const response = doResult.value;
106
+
107
+ const responseFields = {
108
+ HttpMeta: { Response: response, Request: req },
109
+ };
110
+
111
+ const [result] = await M.match<
112
+ operations.AdminV1UpdateResourcesResponse,
113
+ | errors.ErrorModel
114
+ | SDKError
115
+ | SDKValidationError
116
+ | UnexpectedClientError
117
+ | InvalidRequestError
118
+ | RequestAbortedError
119
+ | RequestTimeoutError
120
+ | ConnectionError
121
+ >(
122
+ M.nil(204, operations.AdminV1UpdateResourcesResponse$inboundSchema),
123
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
124
+ ctype: "application/problem+json",
125
+ }),
126
+ M.fail(["4XX", "5XX"]),
127
+ )(response, req, { extraFields: responseFields });
128
+ if (!result.ok) {
129
+ return result;
130
+ }
131
+
132
+ return result;
133
+ }