@steamsets/client-ts 0.13.2 → 0.13.3

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 (302) hide show
  1. package/README.md +15 -15
  2. package/funcs/accountDeleteImages.d.ts.map +1 -1
  3. package/funcs/accountDeleteImages.js +1 -0
  4. package/funcs/accountDeleteImages.js.map +1 -1
  5. package/funcs/accountGetApps.d.ts.map +1 -1
  6. package/funcs/accountGetApps.js +1 -0
  7. package/funcs/accountGetApps.js.map +1 -1
  8. package/funcs/accountGetBadges.d.ts.map +1 -1
  9. package/funcs/accountGetBadges.js +1 -0
  10. package/funcs/accountGetBadges.js.map +1 -1
  11. package/funcs/accountGetDataPoints.d.ts.map +1 -1
  12. package/funcs/accountGetDataPoints.js +1 -0
  13. package/funcs/accountGetDataPoints.js.map +1 -1
  14. package/funcs/accountGetFriends.d.ts.map +1 -1
  15. package/funcs/accountGetFriends.js +1 -0
  16. package/funcs/accountGetFriends.js.map +1 -1
  17. package/funcs/accountGetInfo.d.ts.map +1 -1
  18. package/funcs/accountGetInfo.js +1 -0
  19. package/funcs/accountGetInfo.js.map +1 -1
  20. package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
  21. package/funcs/accountGetLeaderboardHistory.js +1 -0
  22. package/funcs/accountGetLeaderboardHistory.js.map +1 -1
  23. package/funcs/accountGetStaff.d.ts.map +1 -1
  24. package/funcs/accountGetStaff.js +1 -0
  25. package/funcs/accountGetStaff.js.map +1 -1
  26. package/funcs/accountSendEmailVerification.d.ts.map +1 -1
  27. package/funcs/accountSendEmailVerification.js +1 -0
  28. package/funcs/accountSendEmailVerification.js.map +1 -1
  29. package/funcs/accountUpdateImage.d.ts.map +1 -1
  30. package/funcs/accountUpdateImage.js +1 -0
  31. package/funcs/accountUpdateImage.js.map +1 -1
  32. package/funcs/accountUploadImages.d.ts.map +1 -1
  33. package/funcs/accountUploadImages.js +3 -2
  34. package/funcs/accountUploadImages.js.map +1 -1
  35. package/funcs/accountVerifyEmail.d.ts.map +1 -1
  36. package/funcs/accountVerifyEmail.js +1 -0
  37. package/funcs/accountVerifyEmail.js.map +1 -1
  38. package/funcs/accountsQueue.d.ts.map +1 -1
  39. package/funcs/accountsQueue.js +1 -0
  40. package/funcs/accountsQueue.js.map +1 -1
  41. package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -1
  42. package/funcs/adminAdminV1UpdateResources.js +1 -0
  43. package/funcs/adminAdminV1UpdateResources.js.map +1 -1
  44. package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -1
  45. package/funcs/adminAdminV1UpdateRoles.js +1 -0
  46. package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
  47. package/funcs/adminGetAccount.d.ts.map +1 -1
  48. package/funcs/adminGetAccount.js +1 -0
  49. package/funcs/adminGetAccount.js.map +1 -1
  50. package/funcs/badgeGetTags.d.ts.map +1 -1
  51. package/funcs/badgeGetTags.js +1 -0
  52. package/funcs/badgeGetTags.js.map +1 -1
  53. package/funcs/badgesTag.d.ts.map +1 -1
  54. package/funcs/badgesTag.js +1 -0
  55. package/funcs/badgesTag.js.map +1 -1
  56. package/funcs/connectionDelete.d.ts.map +1 -1
  57. package/funcs/connectionDelete.js +1 -0
  58. package/funcs/connectionDelete.js.map +1 -1
  59. package/funcs/connectionUpdate.d.ts.map +1 -1
  60. package/funcs/connectionUpdate.js +1 -0
  61. package/funcs/connectionUpdate.js.map +1 -1
  62. package/funcs/connectionVerify.d.ts.map +1 -1
  63. package/funcs/connectionVerify.js +1 -0
  64. package/funcs/connectionVerify.js.map +1 -1
  65. package/funcs/connectionsConnect.d.ts.map +1 -1
  66. package/funcs/connectionsConnect.js +1 -0
  67. package/funcs/connectionsConnect.js.map +1 -1
  68. package/funcs/dataGetApps.d.ts.map +1 -1
  69. package/funcs/dataGetApps.js +1 -0
  70. package/funcs/dataGetApps.js.map +1 -1
  71. package/funcs/dataGetBadges.d.ts.map +1 -1
  72. package/funcs/dataGetBadges.js +1 -0
  73. package/funcs/dataGetBadges.js.map +1 -1
  74. package/funcs/dataGetDataPoints.d.ts.map +1 -1
  75. package/funcs/dataGetDataPoints.js +1 -0
  76. package/funcs/dataGetDataPoints.js.map +1 -1
  77. package/funcs/dataGetFriends.d.ts.map +1 -1
  78. package/funcs/dataGetFriends.js +1 -0
  79. package/funcs/dataGetFriends.js.map +1 -1
  80. package/funcs/dataGetInfo.d.ts.map +1 -1
  81. package/funcs/dataGetInfo.js +1 -0
  82. package/funcs/dataGetInfo.js.map +1 -1
  83. package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
  84. package/funcs/dataGetLeaderboardHistory.js +1 -0
  85. package/funcs/dataGetLeaderboardHistory.js.map +1 -1
  86. package/funcs/dataGetStaff.d.ts.map +1 -1
  87. package/funcs/dataGetStaff.js +1 -0
  88. package/funcs/dataGetStaff.js.map +1 -1
  89. package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
  90. package/funcs/developerCreateDeveloperApp.js +1 -0
  91. package/funcs/developerCreateDeveloperApp.js.map +1 -1
  92. package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
  93. package/funcs/developerDeleteDeveloperApp.js +1 -0
  94. package/funcs/developerDeleteDeveloperApp.js.map +1 -1
  95. package/funcs/developerUpdateApp.d.ts.map +1 -1
  96. package/funcs/developerUpdateApp.js +1 -0
  97. package/funcs/developerUpdateApp.js.map +1 -1
  98. package/funcs/leaderboardGetAccount.d.ts.map +1 -1
  99. package/funcs/leaderboardGetAccount.js +1 -0
  100. package/funcs/leaderboardGetAccount.js.map +1 -1
  101. package/funcs/leaderboardGetBadges.d.ts.map +1 -1
  102. package/funcs/leaderboardGetBadges.js +1 -0
  103. package/funcs/leaderboardGetBadges.js.map +1 -1
  104. package/funcs/leaderboardGetGroup.d.ts.map +1 -1
  105. package/funcs/leaderboardGetGroup.js +1 -0
  106. package/funcs/leaderboardGetGroup.js.map +1 -1
  107. package/funcs/livenessCheck.d.ts.map +1 -1
  108. package/funcs/livenessCheck.js +1 -0
  109. package/funcs/livenessCheck.js.map +1 -1
  110. package/funcs/locationsGet.d.ts.map +1 -1
  111. package/funcs/locationsGet.js +1 -0
  112. package/funcs/locationsGet.js.map +1 -1
  113. package/funcs/metaAccountV1GetEmbed.d.ts.map +1 -1
  114. package/funcs/metaAccountV1GetEmbed.js +1 -0
  115. package/funcs/metaAccountV1GetEmbed.js.map +1 -1
  116. package/funcs/metaAccountV1GetMeta.d.ts.map +1 -1
  117. package/funcs/metaAccountV1GetMeta.js +1 -0
  118. package/funcs/metaAccountV1GetMeta.js.map +1 -1
  119. package/funcs/publicGetApps.d.ts.map +1 -1
  120. package/funcs/publicGetApps.js +1 -0
  121. package/funcs/publicGetApps.js.map +1 -1
  122. package/funcs/publicGetBadges.d.ts.map +1 -1
  123. package/funcs/publicGetBadges.js +1 -0
  124. package/funcs/publicGetBadges.js.map +1 -1
  125. package/funcs/publicGetDataPoints.d.ts.map +1 -1
  126. package/funcs/publicGetDataPoints.js +1 -0
  127. package/funcs/publicGetDataPoints.js.map +1 -1
  128. package/funcs/publicGetFriends.d.ts.map +1 -1
  129. package/funcs/publicGetFriends.js +1 -0
  130. package/funcs/publicGetFriends.js.map +1 -1
  131. package/funcs/publicGetInfo.d.ts.map +1 -1
  132. package/funcs/publicGetInfo.js +1 -0
  133. package/funcs/publicGetInfo.js.map +1 -1
  134. package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
  135. package/funcs/publicGetLeaderboardHistory.js +1 -0
  136. package/funcs/publicGetLeaderboardHistory.js.map +1 -1
  137. package/funcs/sessionCreate.d.ts.map +1 -1
  138. package/funcs/sessionCreate.js +1 -0
  139. package/funcs/sessionCreate.js.map +1 -1
  140. package/funcs/sessionLogin.d.ts.map +1 -1
  141. package/funcs/sessionLogin.js +1 -0
  142. package/funcs/sessionLogin.js.map +1 -1
  143. package/funcs/sessionsDelete.d.ts.map +1 -1
  144. package/funcs/sessionsDelete.js +1 -0
  145. package/funcs/sessionsDelete.js.map +1 -1
  146. package/funcs/sessionsGet.d.ts.map +1 -1
  147. package/funcs/sessionsGet.js +1 -0
  148. package/funcs/sessionsGet.js.map +1 -1
  149. package/funcs/settingsDeleteImages.d.ts.map +1 -1
  150. package/funcs/settingsDeleteImages.js +1 -0
  151. package/funcs/settingsDeleteImages.js.map +1 -1
  152. package/funcs/settingsGet.d.ts.map +1 -1
  153. package/funcs/settingsGet.js +1 -0
  154. package/funcs/settingsGet.js.map +1 -1
  155. package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
  156. package/funcs/settingsSendEmailVerification.js +1 -0
  157. package/funcs/settingsSendEmailVerification.js.map +1 -1
  158. package/funcs/settingsUpdate.d.ts.map +1 -1
  159. package/funcs/settingsUpdate.js +1 -0
  160. package/funcs/settingsUpdate.js.map +1 -1
  161. package/funcs/settingsUpdateImage.d.ts.map +1 -1
  162. package/funcs/settingsUpdateImage.js +1 -0
  163. package/funcs/settingsUpdateImage.js.map +1 -1
  164. package/funcs/settingsUploadImages.d.ts.map +1 -1
  165. package/funcs/settingsUploadImages.js +3 -2
  166. package/funcs/settingsUploadImages.js.map +1 -1
  167. package/funcs/settingsVerifyEmail.d.ts.map +1 -1
  168. package/funcs/settingsVerifyEmail.js +1 -0
  169. package/funcs/settingsVerifyEmail.js.map +1 -1
  170. package/hooks/types.d.ts +2 -0
  171. package/hooks/types.d.ts.map +1 -1
  172. package/lib/config.d.ts +3 -3
  173. package/lib/config.js +3 -3
  174. package/lib/primitives.d.ts +4 -0
  175. package/lib/primitives.d.ts.map +1 -1
  176. package/lib/primitives.js +12 -0
  177. package/lib/primitives.js.map +1 -1
  178. package/lib/security.d.ts +20 -1
  179. package/lib/security.d.ts.map +1 -1
  180. package/lib/security.js +11 -1
  181. package/lib/security.js.map +1 -1
  182. package/models/components/accountinfobody.d.ts +0 -25
  183. package/models/components/accountinfobody.d.ts.map +1 -1
  184. package/models/components/accountinfobody.js +0 -10
  185. package/models/components/accountinfobody.js.map +1 -1
  186. package/models/components/accountleaderboardhistory.d.ts +0 -3
  187. package/models/components/accountleaderboardhistory.d.ts.map +1 -1
  188. package/models/components/accountleaderboardhistory.js +0 -1
  189. package/models/components/accountleaderboardhistory.js.map +1 -1
  190. package/models/components/bestleaderboardrank.d.ts +0 -3
  191. package/models/components/bestleaderboardrank.d.ts.map +1 -1
  192. package/models/components/bestleaderboardrank.js +0 -1
  193. package/models/components/bestleaderboardrank.js.map +1 -1
  194. package/models/components/image.d.ts +42 -1
  195. package/models/components/image.d.ts.map +1 -1
  196. package/models/components/image.js +29 -3
  197. package/models/components/image.js.map +1 -1
  198. package/models/components/index.d.ts +1 -0
  199. package/models/components/index.d.ts.map +1 -1
  200. package/models/components/index.js +1 -0
  201. package/models/components/index.js.map +1 -1
  202. package/models/components/leaderboardaccount.d.ts +0 -5
  203. package/models/components/leaderboardaccount.d.ts.map +1 -1
  204. package/models/components/leaderboardaccount.js +0 -2
  205. package/models/components/leaderboardaccount.js.map +1 -1
  206. package/models/components/v1accountfriend.d.ts +0 -5
  207. package/models/components/v1accountfriend.d.ts.map +1 -1
  208. package/models/components/v1accountfriend.js +0 -2
  209. package/models/components/v1accountfriend.js.map +1 -1
  210. package/models/components/v1accountleaderboardaccount.d.ts +0 -5
  211. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  212. package/models/components/v1accountleaderboardaccount.js +0 -2
  213. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  214. package/models/components/v1accountleaderboardrequestbody.d.ts +0 -3
  215. package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
  216. package/models/components/v1accountleaderboardrequestbody.js +0 -1
  217. package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
  218. package/models/components/v1accountleaderboardresponsebody.d.ts +5 -0
  219. package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
  220. package/models/components/v1accountleaderboardresponsebody.js +2 -0
  221. package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
  222. package/models/components/v1uploadimagesresponsebody.d.ts +34 -0
  223. package/models/components/v1uploadimagesresponsebody.d.ts.map +1 -0
  224. package/models/components/v1uploadimagesresponsebody.js +62 -0
  225. package/models/components/v1uploadimagesresponsebody.js.map +1 -0
  226. package/models/operations/accountv1settingsuploadimages.d.ts +5 -0
  227. package/models/operations/accountv1settingsuploadimages.d.ts.map +1 -1
  228. package/models/operations/accountv1settingsuploadimages.js +6 -0
  229. package/models/operations/accountv1settingsuploadimages.js.map +1 -1
  230. package/package.json +1 -1
  231. package/src/funcs/accountDeleteImages.ts +3 -0
  232. package/src/funcs/accountGetApps.ts +3 -0
  233. package/src/funcs/accountGetBadges.ts +3 -0
  234. package/src/funcs/accountGetDataPoints.ts +3 -0
  235. package/src/funcs/accountGetFriends.ts +3 -0
  236. package/src/funcs/accountGetInfo.ts +3 -0
  237. package/src/funcs/accountGetLeaderboardHistory.ts +3 -0
  238. package/src/funcs/accountGetStaff.ts +3 -0
  239. package/src/funcs/accountSendEmailVerification.ts +3 -0
  240. package/src/funcs/accountUpdateImage.ts +3 -0
  241. package/src/funcs/accountUploadImages.ts +9 -2
  242. package/src/funcs/accountVerifyEmail.ts +3 -0
  243. package/src/funcs/accountsQueue.ts +3 -0
  244. package/src/funcs/adminAdminV1UpdateResources.ts +3 -0
  245. package/src/funcs/adminAdminV1UpdateRoles.ts +3 -0
  246. package/src/funcs/adminGetAccount.ts +3 -0
  247. package/src/funcs/badgeGetTags.ts +3 -0
  248. package/src/funcs/badgesTag.ts +3 -0
  249. package/src/funcs/connectionDelete.ts +3 -0
  250. package/src/funcs/connectionUpdate.ts +3 -0
  251. package/src/funcs/connectionVerify.ts +3 -0
  252. package/src/funcs/connectionsConnect.ts +3 -0
  253. package/src/funcs/dataGetApps.ts +3 -0
  254. package/src/funcs/dataGetBadges.ts +3 -0
  255. package/src/funcs/dataGetDataPoints.ts +3 -0
  256. package/src/funcs/dataGetFriends.ts +3 -0
  257. package/src/funcs/dataGetInfo.ts +3 -0
  258. package/src/funcs/dataGetLeaderboardHistory.ts +3 -0
  259. package/src/funcs/dataGetStaff.ts +3 -0
  260. package/src/funcs/developerCreateDeveloperApp.ts +3 -0
  261. package/src/funcs/developerDeleteDeveloperApp.ts +3 -0
  262. package/src/funcs/developerUpdateApp.ts +3 -0
  263. package/src/funcs/leaderboardGetAccount.ts +3 -0
  264. package/src/funcs/leaderboardGetBadges.ts +3 -0
  265. package/src/funcs/leaderboardGetGroup.ts +3 -0
  266. package/src/funcs/livenessCheck.ts +3 -0
  267. package/src/funcs/locationsGet.ts +3 -0
  268. package/src/funcs/metaAccountV1GetEmbed.ts +3 -0
  269. package/src/funcs/metaAccountV1GetMeta.ts +3 -0
  270. package/src/funcs/publicGetApps.ts +3 -0
  271. package/src/funcs/publicGetBadges.ts +3 -0
  272. package/src/funcs/publicGetDataPoints.ts +3 -0
  273. package/src/funcs/publicGetFriends.ts +3 -0
  274. package/src/funcs/publicGetInfo.ts +3 -0
  275. package/src/funcs/publicGetLeaderboardHistory.ts +3 -0
  276. package/src/funcs/sessionCreate.ts +3 -0
  277. package/src/funcs/sessionLogin.ts +3 -0
  278. package/src/funcs/sessionsDelete.ts +3 -0
  279. package/src/funcs/sessionsGet.ts +3 -0
  280. package/src/funcs/settingsDeleteImages.ts +3 -0
  281. package/src/funcs/settingsGet.ts +3 -0
  282. package/src/funcs/settingsSendEmailVerification.ts +3 -0
  283. package/src/funcs/settingsUpdate.ts +3 -0
  284. package/src/funcs/settingsUpdateImage.ts +3 -0
  285. package/src/funcs/settingsUploadImages.ts +9 -2
  286. package/src/funcs/settingsVerifyEmail.ts +3 -0
  287. package/src/hooks/types.ts +2 -0
  288. package/src/lib/config.ts +3 -3
  289. package/src/lib/primitives.ts +20 -0
  290. package/src/lib/security.ts +39 -3
  291. package/src/models/components/accountinfobody.ts +0 -43
  292. package/src/models/components/accountleaderboardhistory.ts +0 -1
  293. package/src/models/components/bestleaderboardrank.ts +0 -1
  294. package/src/models/components/image.ts +38 -3
  295. package/src/models/components/index.ts +1 -0
  296. package/src/models/components/leaderboardaccount.ts +0 -7
  297. package/src/models/components/v1accountfriend.ts +0 -7
  298. package/src/models/components/v1accountleaderboardaccount.ts +0 -7
  299. package/src/models/components/v1accountleaderboardrequestbody.ts +0 -1
  300. package/src/models/components/v1accountleaderboardresponsebody.ts +7 -0
  301. package/src/models/components/v1uploadimagesresponsebody.ts +70 -0
  302. package/src/models/operations/accountv1settingsuploadimages.ts +15 -0
@@ -65,6 +65,9 @@ export async function dataGetDataPoints(
65
65
  const context = {
66
66
  operationID: "account.v1.getDataPoints",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function dataGetFriends(
65
65
  const context = {
66
66
  operationID: "account.v1.getFriends",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function dataGetInfo(
65
65
  const context = {
66
66
  operationID: "account.v1.getInfo",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function dataGetLeaderboardHistory(
65
65
  const context = {
66
66
  operationID: "account.v1.getLeaderboardHistory",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -49,6 +49,9 @@ export async function dataGetStaff(
49
49
  const context = {
50
50
  operationID: "account.v1.getStaff",
51
51
  oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
52
55
  securitySource: client._options.token,
53
56
  retryConfig: options?.retries
54
57
  || client._options.retryConfig
@@ -66,6 +66,9 @@ export async function developerCreateDeveloperApp(
66
66
  const context = {
67
67
  operationID: "account.v1.settings.developer-app-create",
68
68
  oAuth2Scopes: [],
69
+
70
+ resolvedSecurity: requestSecurity,
71
+
69
72
  securitySource: client._options.token,
70
73
  retryConfig: options?.retries
71
74
  || client._options.retryConfig
@@ -68,6 +68,9 @@ export async function developerDeleteDeveloperApp(
68
68
  const context = {
69
69
  operationID: "account.v1.settings.developer-app-delete",
70
70
  oAuth2Scopes: [],
71
+
72
+ resolvedSecurity: requestSecurity,
73
+
71
74
  securitySource: client._options.token,
72
75
  retryConfig: options?.retries
73
76
  || client._options.retryConfig
@@ -68,6 +68,9 @@ export async function developerUpdateApp(
68
68
  const context = {
69
69
  operationID: "account.v1.settings.developer-app-update",
70
70
  oAuth2Scopes: [],
71
+
72
+ resolvedSecurity: requestSecurity,
73
+
71
74
  securitySource: client._options.token,
72
75
  retryConfig: options?.retries
73
76
  || client._options.retryConfig
@@ -68,6 +68,9 @@ export async function leaderboardGetAccount(
68
68
  const context = {
69
69
  operationID: "leaderboard.v1.getAccount",
70
70
  oAuth2Scopes: [],
71
+
72
+ resolvedSecurity: requestSecurity,
73
+
71
74
  securitySource: client._options.token,
72
75
  retryConfig: options?.retries
73
76
  || client._options.retryConfig
@@ -49,6 +49,9 @@ export async function leaderboardGetBadges(
49
49
  const context = {
50
50
  operationID: "leaderboard.v1.getBadges",
51
51
  oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
52
55
  securitySource: client._options.token,
53
56
  retryConfig: options?.retries
54
57
  || client._options.retryConfig
@@ -68,6 +68,9 @@ export async function leaderboardGetGroup(
68
68
  const context = {
69
69
  operationID: "leaderboard.v1.getGroup",
70
70
  oAuth2Scopes: [],
71
+
72
+ resolvedSecurity: requestSecurity,
73
+
71
74
  securitySource: client._options.token,
72
75
  retryConfig: options?.retries
73
76
  || client._options.retryConfig
@@ -55,6 +55,9 @@ export async function livenessCheck(
55
55
  const context = {
56
56
  operationID: "liveness",
57
57
  oAuth2Scopes: [],
58
+
59
+ resolvedSecurity: requestSecurity,
60
+
58
61
  securitySource: client._options.token,
59
62
  retryConfig: options?.retries
60
63
  || client._options.retryConfig
@@ -49,6 +49,9 @@ export async function locationsGet(
49
49
  const context = {
50
50
  operationID: "location.v1.location.get",
51
51
  oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
52
55
  securitySource: client._options.token,
53
56
  retryConfig: options?.retries
54
57
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function metaAccountV1GetEmbed(
65
65
  const context = {
66
66
  operationID: "account.v1.getEmbed",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function metaAccountV1GetMeta(
65
65
  const context = {
66
66
  operationID: "account.v1.getMeta",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetApps(
65
65
  const context = {
66
66
  operationID: "account.v1.getApps",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetBadges(
65
65
  const context = {
66
66
  operationID: "account.v1.getBadges",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetDataPoints(
65
65
  const context = {
66
66
  operationID: "account.v1.getDataPoints",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetFriends(
65
65
  const context = {
66
66
  operationID: "account.v1.getFriends",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetInfo(
65
65
  const context = {
66
66
  operationID: "account.v1.getInfo",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function publicGetLeaderboardHistory(
65
65
  const context = {
66
66
  operationID: "account.v1.getLeaderboardHistory",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -81,6 +81,9 @@ export async function sessionCreate(
81
81
  const context = {
82
82
  operationID: "account.v1.session.create",
83
83
  oAuth2Scopes: [],
84
+
85
+ resolvedSecurity: requestSecurity,
86
+
84
87
  securitySource: client._options.token,
85
88
  retryConfig: options?.retries
86
89
  || client._options.retryConfig
@@ -74,6 +74,9 @@ export async function sessionLogin(
74
74
  const context = {
75
75
  operationID: "account.v1.session.login",
76
76
  oAuth2Scopes: [],
77
+
78
+ resolvedSecurity: requestSecurity,
79
+
77
80
  securitySource: client._options.token,
78
81
  retryConfig: options?.retries
79
82
  || client._options.retryConfig
@@ -66,6 +66,9 @@ export async function sessionsDelete(
66
66
  const context = {
67
67
  operationID: "account.v1.session.delete",
68
68
  oAuth2Scopes: [],
69
+
70
+ resolvedSecurity: requestSecurity,
71
+
69
72
  securitySource: client._options.token,
70
73
  retryConfig: options?.retries
71
74
  || client._options.retryConfig
@@ -49,6 +49,9 @@ export async function sessionsGet(
49
49
  const context = {
50
50
  operationID: "account.v1.session.get",
51
51
  oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
52
55
  securitySource: client._options.token,
53
56
  retryConfig: options?.retries
54
57
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function settingsDeleteImages(
65
65
  const context = {
66
66
  operationID: "account.v1.settings.delete-images",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -49,6 +49,9 @@ export async function settingsGet(
49
49
  const context = {
50
50
  operationID: "account.v1.settings.get",
51
51
  oAuth2Scopes: [],
52
+
53
+ resolvedSecurity: requestSecurity,
54
+
52
55
  securitySource: client._options.token,
53
56
  retryConfig: options?.retries
54
57
  || client._options.retryConfig
@@ -70,6 +70,9 @@ export async function settingsSendEmailVerification(
70
70
  const context = {
71
71
  operationID: "account.v1.settings.send-email-verification",
72
72
  oAuth2Scopes: [],
73
+
74
+ resolvedSecurity: requestSecurity,
75
+
73
76
  securitySource: client._options.token,
74
77
  retryConfig: options?.retries
75
78
  || client._options.retryConfig
@@ -72,6 +72,9 @@ export async function settingsUpdate(
72
72
  const context = {
73
73
  operationID: "account.v1.settings.update",
74
74
  oAuth2Scopes: [],
75
+
76
+ resolvedSecurity: requestSecurity,
77
+
75
78
  securitySource: client._options.token,
76
79
  retryConfig: options?.retries
77
80
  || client._options.retryConfig
@@ -65,6 +65,9 @@ export async function settingsUpdateImage(
65
65
  const context = {
66
66
  operationID: "account.v1.settings.update-image",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -55,7 +55,7 @@ export async function settingsUploadImages(
55
55
 
56
56
  const headers = new Headers({
57
57
  "Content-Type": "application/json",
58
- Accept: "application/problem+json",
58
+ Accept: "application/json",
59
59
  });
60
60
 
61
61
  const secConfig = await extractSecurity(client._options.token);
@@ -65,6 +65,9 @@ export async function settingsUploadImages(
65
65
  const context = {
66
66
  operationID: "account.v1.settings.upload-images",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -122,7 +125,11 @@ export async function settingsUploadImages(
122
125
  | RequestTimeoutError
123
126
  | ConnectionError
124
127
  >(
125
- M.nil(204, operations.AccountV1SettingsUploadImagesResponse$inboundSchema),
128
+ M.json(
129
+ 200,
130
+ operations.AccountV1SettingsUploadImagesResponse$inboundSchema,
131
+ { key: "V1UploadImagesResponseBody" },
132
+ ),
126
133
  M.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
127
134
  ctype: "application/problem+json",
128
135
  }),
@@ -65,6 +65,9 @@ export async function settingsVerifyEmail(
65
65
  const context = {
66
66
  operationID: "account.v1.settings.verfy-email",
67
67
  oAuth2Scopes: [],
68
+
69
+ resolvedSecurity: requestSecurity,
70
+
68
71
  securitySource: client._options.token,
69
72
  retryConfig: options?.retries
70
73
  || client._options.retryConfig
@@ -4,12 +4,14 @@
4
4
 
5
5
  import { HTTPClient, RequestInput } from "../lib/http.js";
6
6
  import { RetryConfig } from "../lib/retries.js";
7
+ import { SecurityState } from "../lib/security.js";
7
8
 
8
9
  export type HookContext = {
9
10
  operationID: string;
10
11
  oAuth2Scopes?: string[];
11
12
  securitySource?: any | (() => Promise<any>);
12
13
  retryConfig: RetryConfig;
14
+ resolvedSecurity: SecurityState | null;
13
15
  };
14
16
 
15
17
  export type Awaitable<T> = T | Promise<T>;
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.13.2",
59
- genVersion: "2.452.0",
58
+ sdkVersion: "0.13.3",
59
+ genVersion: "2.457.2",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.13.2 2.452.0 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.13.3 2.457.2 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -2,6 +2,26 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ class InvariantError extends Error {
6
+ constructor(message: string) {
7
+ super(message);
8
+ this.name = "InvariantError";
9
+ }
10
+ }
11
+
12
+ export function invariant(
13
+ condition: unknown,
14
+ message: string,
15
+ ): asserts condition {
16
+ if (!condition) {
17
+ throw new InvariantError(message);
18
+ }
19
+ }
20
+
21
+ export type ExactPartial<T> = {
22
+ [P in keyof T]?: T[P] | undefined;
23
+ };
24
+
5
25
  export type Remap<Inp, Mapping extends { [k in keyof Inp]?: string | null }> = {
6
26
  [k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */
7
27
  ? Mapping[k]
@@ -4,6 +4,14 @@
4
4
 
5
5
  import * as components from "../models/components/index.js";
6
6
 
7
+ type OAuth2PasswordFlow = {
8
+ username: string;
9
+ password?: string | undefined;
10
+ clientID: string;
11
+ clientSecret?: string | undefined;
12
+ tokenURL: string;
13
+ };
14
+
7
15
  export enum SecurityErrorCode {
8
16
  Incomplete = "incomplete",
9
17
  UnrecognisedSecurityType = "unrecognized_security_type",
@@ -37,6 +45,7 @@ export type SecurityState = {
37
45
  headers: Record<string, string>;
38
46
  queryParams: Record<string, string>;
39
47
  cookies: Record<string, string>;
48
+ oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" };
40
49
  };
41
50
 
42
51
  type SecurityInputBasic = {
@@ -73,7 +82,18 @@ type SecurityInputOAuth2 = {
73
82
 
74
83
  type SecurityInputOAuth2ClientCredentials = {
75
84
  type: "oauth2:client_credentials";
76
- value: string | null | undefined;
85
+ value:
86
+ | { clientID?: string | undefined; clientSecret?: string | undefined }
87
+ | null
88
+ | undefined;
89
+ };
90
+
91
+ type SecurityInputOAuth2PasswordCredentials = {
92
+ type: "oauth2:password";
93
+ value:
94
+ | string
95
+ | null
96
+ | undefined;
77
97
  fieldName: string;
78
98
  };
79
99
 
@@ -89,6 +109,7 @@ export type SecurityInput =
89
109
  | SecurityInputAPIKey
90
110
  | SecurityInputOAuth2
91
111
  | SecurityInputOAuth2ClientCredentials
112
+ | SecurityInputOAuth2PasswordCredentials
92
113
  | SecurityInputOIDC
93
114
  | SecurityInputCustom;
94
115
 
@@ -100,6 +121,7 @@ export function resolveSecurity(
100
121
  headers: {},
101
122
  queryParams: {},
102
123
  cookies: {},
124
+ oauth2: { type: "none" },
103
125
  };
104
126
 
105
127
  const option = options.find((opts) => {
@@ -110,6 +132,12 @@ export function resolveSecurity(
110
132
  return o.value.username != null || o.value.password != null;
111
133
  } else if (o.type === "http:custom") {
112
134
  return null;
135
+ } else if (o.type === "oauth2:password") {
136
+ return (
137
+ typeof o.value === "string" && !!o.value
138
+ );
139
+ } else if (o.type === "oauth2:client_credentials") {
140
+ return o.value.clientID != null || o.value.clientSecret != null;
113
141
  } else if (typeof o.value === "string") {
114
142
  return !!o.value;
115
143
  } else {
@@ -152,6 +180,9 @@ export function resolveSecurity(
152
180
  case "oauth2":
153
181
  applyBearer(state, spec);
154
182
  break;
183
+ case "oauth2:password":
184
+ applyBearer(state, spec);
185
+ break;
155
186
  case "oauth2:client_credentials":
156
187
  break;
157
188
  case "openIdConnect":
@@ -179,9 +210,13 @@ function applyBasic(
179
210
 
180
211
  function applyBearer(
181
212
  state: SecurityState,
182
- spec: SecurityInputBearer | SecurityInputOAuth2 | SecurityInputOIDC,
213
+ spec:
214
+ | SecurityInputBearer
215
+ | SecurityInputOAuth2
216
+ | SecurityInputOIDC
217
+ | SecurityInputOAuth2PasswordCredentials,
183
218
  ) {
184
- if (spec.value == null) {
219
+ if (typeof spec.value !== "string" || !spec.value) {
185
220
  return;
186
221
  }
187
222
 
@@ -192,6 +227,7 @@ function applyBearer(
192
227
 
193
228
  state.headers[spec.fieldName] = value;
194
229
  }
230
+
195
231
  export function resolveGlobalSecurity(
196
232
  security: Partial<components.Security> | null | undefined,
197
233
  ): SecurityState | null {