@steamsets/client-ts 0.12.5 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/README.md +0 -7
  2. package/funcs/accountDeleteImages.d.ts.map +1 -1
  3. package/funcs/accountDeleteImages.js +12 -2
  4. package/funcs/accountDeleteImages.js.map +1 -1
  5. package/funcs/accountGetApps.d.ts.map +1 -1
  6. package/funcs/accountGetApps.js +12 -2
  7. package/funcs/accountGetApps.js.map +1 -1
  8. package/funcs/accountGetBadges.d.ts.map +1 -1
  9. package/funcs/accountGetBadges.js +12 -2
  10. package/funcs/accountGetBadges.js.map +1 -1
  11. package/funcs/accountGetDataPoints.d.ts.map +1 -1
  12. package/funcs/accountGetDataPoints.js +12 -2
  13. package/funcs/accountGetDataPoints.js.map +1 -1
  14. package/funcs/accountGetFriends.d.ts.map +1 -1
  15. package/funcs/accountGetFriends.js +12 -2
  16. package/funcs/accountGetFriends.js.map +1 -1
  17. package/funcs/accountGetInfo.d.ts.map +1 -1
  18. package/funcs/accountGetInfo.js +12 -2
  19. package/funcs/accountGetInfo.js.map +1 -1
  20. package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
  21. package/funcs/accountGetLeaderboardHistory.js +12 -2
  22. package/funcs/accountGetLeaderboardHistory.js.map +1 -1
  23. package/funcs/accountGetStaff.d.ts.map +1 -1
  24. package/funcs/accountGetStaff.js +12 -2
  25. package/funcs/accountGetStaff.js.map +1 -1
  26. package/funcs/accountSendEmailVerification.d.ts.map +1 -1
  27. package/funcs/accountSendEmailVerification.js +12 -2
  28. package/funcs/accountSendEmailVerification.js.map +1 -1
  29. package/funcs/accountUpdateImage.d.ts.map +1 -1
  30. package/funcs/accountUpdateImage.js +12 -2
  31. package/funcs/accountUpdateImage.js.map +1 -1
  32. package/funcs/accountUploadImages.d.ts.map +1 -1
  33. package/funcs/accountUploadImages.js +12 -2
  34. package/funcs/accountUploadImages.js.map +1 -1
  35. package/funcs/accountV1GetEmbed.d.ts.map +1 -1
  36. package/funcs/accountV1GetEmbed.js +12 -2
  37. package/funcs/accountV1GetEmbed.js.map +1 -1
  38. package/funcs/accountV1GetMeta.d.ts.map +1 -1
  39. package/funcs/accountV1GetMeta.js +12 -2
  40. package/funcs/accountV1GetMeta.js.map +1 -1
  41. package/funcs/accountVerifyEmail.d.ts.map +1 -1
  42. package/funcs/accountVerifyEmail.js +12 -2
  43. package/funcs/accountVerifyEmail.js.map +1 -1
  44. package/funcs/accountsQueue.d.ts.map +1 -1
  45. package/funcs/accountsQueue.js +12 -2
  46. package/funcs/accountsQueue.js.map +1 -1
  47. package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -1
  48. package/funcs/adminAdminV1UpdateResources.js +12 -2
  49. package/funcs/adminAdminV1UpdateResources.js.map +1 -1
  50. package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -1
  51. package/funcs/adminAdminV1UpdateRoles.js +12 -2
  52. package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
  53. package/funcs/adminGetAccount.d.ts.map +1 -1
  54. package/funcs/adminGetAccount.js +12 -2
  55. package/funcs/adminGetAccount.js.map +1 -1
  56. package/funcs/badgeGetTags.d.ts.map +1 -1
  57. package/funcs/badgeGetTags.js +12 -2
  58. package/funcs/badgeGetTags.js.map +1 -1
  59. package/funcs/badgesTag.d.ts.map +1 -1
  60. package/funcs/badgesTag.js +12 -2
  61. package/funcs/badgesTag.js.map +1 -1
  62. package/funcs/connectionDelete.d.ts.map +1 -1
  63. package/funcs/connectionDelete.js +12 -2
  64. package/funcs/connectionDelete.js.map +1 -1
  65. package/funcs/connectionUpdate.d.ts.map +1 -1
  66. package/funcs/connectionUpdate.js +12 -2
  67. package/funcs/connectionUpdate.js.map +1 -1
  68. package/funcs/connectionVerify.d.ts.map +1 -1
  69. package/funcs/connectionVerify.js +12 -2
  70. package/funcs/connectionVerify.js.map +1 -1
  71. package/funcs/connectionsConnect.d.ts.map +1 -1
  72. package/funcs/connectionsConnect.js +12 -2
  73. package/funcs/connectionsConnect.js.map +1 -1
  74. package/funcs/dataGetApps.d.ts.map +1 -1
  75. package/funcs/dataGetApps.js +12 -2
  76. package/funcs/dataGetApps.js.map +1 -1
  77. package/funcs/dataGetBadges.d.ts.map +1 -1
  78. package/funcs/dataGetBadges.js +12 -2
  79. package/funcs/dataGetBadges.js.map +1 -1
  80. package/funcs/dataGetDataPoints.d.ts.map +1 -1
  81. package/funcs/dataGetDataPoints.js +12 -2
  82. package/funcs/dataGetDataPoints.js.map +1 -1
  83. package/funcs/dataGetFriends.d.ts.map +1 -1
  84. package/funcs/dataGetFriends.js +12 -2
  85. package/funcs/dataGetFriends.js.map +1 -1
  86. package/funcs/dataGetInfo.d.ts.map +1 -1
  87. package/funcs/dataGetInfo.js +12 -2
  88. package/funcs/dataGetInfo.js.map +1 -1
  89. package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
  90. package/funcs/dataGetLeaderboardHistory.js +12 -2
  91. package/funcs/dataGetLeaderboardHistory.js.map +1 -1
  92. package/funcs/dataGetStaff.d.ts.map +1 -1
  93. package/funcs/dataGetStaff.js +12 -2
  94. package/funcs/dataGetStaff.js.map +1 -1
  95. package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
  96. package/funcs/developerCreateDeveloperApp.js +12 -2
  97. package/funcs/developerCreateDeveloperApp.js.map +1 -1
  98. package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
  99. package/funcs/developerDeleteDeveloperApp.js +12 -2
  100. package/funcs/developerDeleteDeveloperApp.js.map +1 -1
  101. package/funcs/developerUpdateApp.d.ts.map +1 -1
  102. package/funcs/developerUpdateApp.js +12 -2
  103. package/funcs/developerUpdateApp.js.map +1 -1
  104. package/funcs/leaderboardGetAccount.d.ts.map +1 -1
  105. package/funcs/leaderboardGetAccount.js +12 -2
  106. package/funcs/leaderboardGetAccount.js.map +1 -1
  107. package/funcs/leaderboardGetBadges.d.ts.map +1 -1
  108. package/funcs/leaderboardGetBadges.js +12 -2
  109. package/funcs/leaderboardGetBadges.js.map +1 -1
  110. package/funcs/leaderboardGetGroup.d.ts.map +1 -1
  111. package/funcs/leaderboardGetGroup.js +12 -2
  112. package/funcs/leaderboardGetGroup.js.map +1 -1
  113. package/funcs/livenessCheck.d.ts.map +1 -1
  114. package/funcs/livenessCheck.js +12 -2
  115. package/funcs/livenessCheck.js.map +1 -1
  116. package/funcs/locationsGet.d.ts.map +1 -1
  117. package/funcs/locationsGet.js +12 -2
  118. package/funcs/locationsGet.js.map +1 -1
  119. package/funcs/publicGetApps.d.ts.map +1 -1
  120. package/funcs/publicGetApps.js +12 -2
  121. package/funcs/publicGetApps.js.map +1 -1
  122. package/funcs/publicGetBadges.d.ts.map +1 -1
  123. package/funcs/publicGetBadges.js +12 -2
  124. package/funcs/publicGetBadges.js.map +1 -1
  125. package/funcs/publicGetDataPoints.d.ts.map +1 -1
  126. package/funcs/publicGetDataPoints.js +12 -2
  127. package/funcs/publicGetDataPoints.js.map +1 -1
  128. package/funcs/publicGetFriends.d.ts.map +1 -1
  129. package/funcs/publicGetFriends.js +12 -2
  130. package/funcs/publicGetFriends.js.map +1 -1
  131. package/funcs/publicGetInfo.d.ts.map +1 -1
  132. package/funcs/publicGetInfo.js +12 -2
  133. package/funcs/publicGetInfo.js.map +1 -1
  134. package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
  135. package/funcs/publicGetLeaderboardHistory.js +12 -2
  136. package/funcs/publicGetLeaderboardHistory.js.map +1 -1
  137. package/funcs/sessionCreate.d.ts.map +1 -1
  138. package/funcs/sessionCreate.js +12 -2
  139. package/funcs/sessionCreate.js.map +1 -1
  140. package/funcs/sessionLogin.d.ts.map +1 -1
  141. package/funcs/sessionLogin.js +12 -2
  142. package/funcs/sessionLogin.js.map +1 -1
  143. package/funcs/sessionsDelete.d.ts.map +1 -1
  144. package/funcs/sessionsDelete.js +12 -2
  145. package/funcs/sessionsDelete.js.map +1 -1
  146. package/funcs/sessionsGet.d.ts.map +1 -1
  147. package/funcs/sessionsGet.js +12 -2
  148. package/funcs/sessionsGet.js.map +1 -1
  149. package/funcs/settingsDeleteImages.d.ts.map +1 -1
  150. package/funcs/settingsDeleteImages.js +12 -2
  151. package/funcs/settingsDeleteImages.js.map +1 -1
  152. package/funcs/settingsGet.d.ts.map +1 -1
  153. package/funcs/settingsGet.js +12 -2
  154. package/funcs/settingsGet.js.map +1 -1
  155. package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
  156. package/funcs/settingsSendEmailVerification.js +12 -2
  157. package/funcs/settingsSendEmailVerification.js.map +1 -1
  158. package/funcs/settingsUpdate.d.ts.map +1 -1
  159. package/funcs/settingsUpdate.js +12 -2
  160. package/funcs/settingsUpdate.js.map +1 -1
  161. package/funcs/settingsUpdateImage.d.ts.map +1 -1
  162. package/funcs/settingsUpdateImage.js +12 -2
  163. package/funcs/settingsUpdateImage.js.map +1 -1
  164. package/funcs/settingsUploadImages.d.ts.map +1 -1
  165. package/funcs/settingsUploadImages.js +12 -2
  166. package/funcs/settingsUploadImages.js.map +1 -1
  167. package/funcs/settingsVerifyEmail.d.ts.map +1 -1
  168. package/funcs/settingsVerifyEmail.js +12 -2
  169. package/funcs/settingsVerifyEmail.js.map +1 -1
  170. package/lib/config.d.ts +3 -3
  171. package/lib/config.js +3 -3
  172. package/lib/config.js.map +1 -1
  173. package/models/components/index.d.ts +0 -5
  174. package/models/components/index.d.ts.map +1 -1
  175. package/models/components/index.js +0 -5
  176. package/models/components/index.js.map +1 -1
  177. package/models/operations/index.d.ts +0 -2
  178. package/models/operations/index.d.ts.map +1 -1
  179. package/models/operations/index.js +0 -2
  180. package/models/operations/index.js.map +1 -1
  181. package/package.json +1 -1
  182. package/sdk/sdk.d.ts +0 -3
  183. package/sdk/sdk.d.ts.map +1 -1
  184. package/sdk/sdk.js +0 -5
  185. package/sdk/sdk.js.map +1 -1
  186. package/src/funcs/accountDeleteImages.ts +12 -2
  187. package/src/funcs/accountGetApps.ts +12 -2
  188. package/src/funcs/accountGetBadges.ts +12 -2
  189. package/src/funcs/accountGetDataPoints.ts +12 -2
  190. package/src/funcs/accountGetFriends.ts +12 -2
  191. package/src/funcs/accountGetInfo.ts +12 -2
  192. package/src/funcs/accountGetLeaderboardHistory.ts +12 -2
  193. package/src/funcs/accountGetStaff.ts +12 -2
  194. package/src/funcs/accountSendEmailVerification.ts +12 -2
  195. package/src/funcs/accountUpdateImage.ts +12 -2
  196. package/src/funcs/accountUploadImages.ts +12 -2
  197. package/src/funcs/accountV1GetEmbed.ts +12 -2
  198. package/src/funcs/accountV1GetMeta.ts +12 -2
  199. package/src/funcs/accountVerifyEmail.ts +12 -2
  200. package/src/funcs/accountsQueue.ts +12 -2
  201. package/src/funcs/adminAdminV1UpdateResources.ts +12 -2
  202. package/src/funcs/adminAdminV1UpdateRoles.ts +12 -2
  203. package/src/funcs/adminGetAccount.ts +12 -2
  204. package/src/funcs/badgeGetTags.ts +12 -2
  205. package/src/funcs/badgesTag.ts +12 -2
  206. package/src/funcs/connectionDelete.ts +12 -2
  207. package/src/funcs/connectionUpdate.ts +12 -2
  208. package/src/funcs/connectionVerify.ts +12 -2
  209. package/src/funcs/connectionsConnect.ts +12 -2
  210. package/src/funcs/dataGetApps.ts +12 -2
  211. package/src/funcs/dataGetBadges.ts +12 -2
  212. package/src/funcs/dataGetDataPoints.ts +12 -2
  213. package/src/funcs/dataGetFriends.ts +12 -2
  214. package/src/funcs/dataGetInfo.ts +12 -2
  215. package/src/funcs/dataGetLeaderboardHistory.ts +12 -2
  216. package/src/funcs/dataGetStaff.ts +12 -2
  217. package/src/funcs/developerCreateDeveloperApp.ts +12 -2
  218. package/src/funcs/developerDeleteDeveloperApp.ts +12 -2
  219. package/src/funcs/developerUpdateApp.ts +12 -2
  220. package/src/funcs/leaderboardGetAccount.ts +12 -2
  221. package/src/funcs/leaderboardGetBadges.ts +12 -2
  222. package/src/funcs/leaderboardGetGroup.ts +12 -2
  223. package/src/funcs/livenessCheck.ts +12 -2
  224. package/src/funcs/locationsGet.ts +12 -2
  225. package/src/funcs/publicGetApps.ts +12 -2
  226. package/src/funcs/publicGetBadges.ts +12 -2
  227. package/src/funcs/publicGetDataPoints.ts +12 -2
  228. package/src/funcs/publicGetFriends.ts +12 -2
  229. package/src/funcs/publicGetInfo.ts +12 -2
  230. package/src/funcs/publicGetLeaderboardHistory.ts +12 -2
  231. package/src/funcs/sessionCreate.ts +12 -2
  232. package/src/funcs/sessionLogin.ts +12 -2
  233. package/src/funcs/sessionsDelete.ts +12 -2
  234. package/src/funcs/sessionsGet.ts +12 -2
  235. package/src/funcs/settingsDeleteImages.ts +12 -2
  236. package/src/funcs/settingsGet.ts +12 -2
  237. package/src/funcs/settingsSendEmailVerification.ts +12 -2
  238. package/src/funcs/settingsUpdate.ts +12 -2
  239. package/src/funcs/settingsUpdateImage.ts +12 -2
  240. package/src/funcs/settingsUploadImages.ts +12 -2
  241. package/src/funcs/settingsVerifyEmail.ts +12 -2
  242. package/src/lib/config.ts +3 -3
  243. package/src/models/components/index.ts +0 -5
  244. package/src/models/operations/index.ts +0 -2
  245. package/src/sdk/sdk.ts +0 -6
  246. package/docs/sdks/apps/README.md +0 -159
  247. package/funcs/appsGet.d.ts +0 -11
  248. package/funcs/appsGet.d.ts.map +0 -1
  249. package/funcs/appsGet.js +0 -95
  250. package/funcs/appsGet.js.map +0 -1
  251. package/funcs/appsQueue.d.ts +0 -11
  252. package/funcs/appsQueue.d.ts.map +0 -1
  253. package/funcs/appsQueue.js +0 -93
  254. package/funcs/appsQueue.js.map +0 -1
  255. package/models/components/appsearch.d.ts +0 -28
  256. package/models/components/appsearch.d.ts.map +0 -1
  257. package/models/components/appsearch.js +0 -50
  258. package/models/components/appsearch.js.map +0 -1
  259. package/models/components/v1appdetail.d.ts +0 -154
  260. package/models/components/v1appdetail.d.ts.map +0 -1
  261. package/models/components/v1appdetail.js +0 -106
  262. package/models/components/v1appdetail.js.map +0 -1
  263. package/models/components/v1appitem.d.ts +0 -39
  264. package/models/components/v1appitem.d.ts.map +0 -1
  265. package/models/components/v1appitem.js +0 -64
  266. package/models/components/v1appitem.js.map +0 -1
  267. package/models/components/v1apprequestbody.d.ts +0 -28
  268. package/models/components/v1apprequestbody.d.ts.map +0 -1
  269. package/models/components/v1apprequestbody.js +0 -50
  270. package/models/components/v1apprequestbody.js.map +0 -1
  271. package/models/components/v1appresponsebody.d.ts +0 -43
  272. package/models/components/v1appresponsebody.d.ts.map +0 -1
  273. package/models/components/v1appresponsebody.js +0 -68
  274. package/models/components/v1appresponsebody.js.map +0 -1
  275. package/models/operations/appv1get.d.ts +0 -31
  276. package/models/operations/appv1get.d.ts.map +0 -1
  277. package/models/operations/appv1get.js +0 -64
  278. package/models/operations/appv1get.js.map +0 -1
  279. package/models/operations/appv1queue.d.ts +0 -32
  280. package/models/operations/appv1queue.d.ts.map +0 -1
  281. package/models/operations/appv1queue.js +0 -64
  282. package/models/operations/appv1queue.js.map +0 -1
  283. package/sdk/apps.d.ts +0 -8
  284. package/sdk/apps.d.ts.map +0 -1
  285. package/sdk/apps.js +0 -20
  286. package/sdk/apps.js.map +0 -1
  287. package/src/funcs/appsGet.ts +0 -124
  288. package/src/funcs/appsQueue.ts +0 -122
  289. package/src/models/components/appsearch.ts +0 -48
  290. package/src/models/components/v1appdetail.ts +0 -156
  291. package/src/models/components/v1appitem.ts +0 -73
  292. package/src/models/components/v1apprequestbody.ts +0 -48
  293. package/src/models/components/v1appresponsebody.ts +0 -93
  294. package/src/models/operations/appv1get.ts +0 -64
  295. package/src/models/operations/appv1queue.ts +0 -61
  296. package/src/sdk/apps.ts +0 -34
package/sdk/apps.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as components from "../models/components/index.js";
3
- import * as operations from "../models/operations/index.js";
4
- export declare class Apps extends ClientSDK {
5
- get(request: components.V1AppRequestBody, options?: RequestOptions): Promise<operations.AppV1GetResponse>;
6
- queue(request: components.AppSearch, options?: RequestOptions): Promise<operations.AppV1QueueResponse>;
7
- }
8
- //# sourceMappingURL=apps.d.ts.map
package/sdk/apps.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../src/sdk/apps.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IAC3B,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQjC,KAAK,CACT,OAAO,EAAE,UAAU,CAAC,SAAS,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAO1C"}
package/sdk/apps.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Apps = void 0;
7
- const appsGet_js_1 = require("../funcs/appsGet.js");
8
- const appsQueue_js_1 = require("../funcs/appsQueue.js");
9
- const sdks_js_1 = require("../lib/sdks.js");
10
- const fp_js_1 = require("../types/fp.js");
11
- class Apps extends sdks_js_1.ClientSDK {
12
- async get(request, options) {
13
- return (0, fp_js_1.unwrapAsync)((0, appsGet_js_1.appsGet)(this, request, options));
14
- }
15
- async queue(request, options) {
16
- return (0, fp_js_1.unwrapAsync)((0, appsQueue_js_1.appsQueue)(this, request, options));
17
- }
18
- }
19
- exports.Apps = Apps;
20
- //# sourceMappingURL=apps.js.map
package/sdk/apps.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.js","sourceRoot":"","sources":["../src/sdk/apps.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oDAA8C;AAC9C,wDAAkD;AAClD,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC,KAAK,CAAC,GAAG,CACP,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oBAAO,EACxB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK,CACT,OAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,oBAsBC"}
@@ -1,124 +0,0 @@
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 appsGet(
27
- client: SteamSetsCore,
28
- request: components.V1AppRequestBody,
29
- options?: RequestOptions,
30
- ): Promise<
31
- Result<
32
- operations.AppV1GetResponse,
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.V1AppRequestBody$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("/app.v1.AppService/GetApp")();
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: "app.v1.get",
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: ["404", "422", "4XX", "500", "5XX"],
87
- retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
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.AppV1GetResponse,
102
- | errors.ErrorModel
103
- | SDKError
104
- | SDKValidationError
105
- | UnexpectedClientError
106
- | InvalidRequestError
107
- | RequestAbortedError
108
- | RequestTimeoutError
109
- | ConnectionError
110
- >(
111
- M.json(200, operations.AppV1GetResponse$inboundSchema, {
112
- key: "V1AppResponseBody",
113
- }),
114
- M.jsonErr([404, 422, 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
- }
@@ -1,122 +0,0 @@
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 appsQueue(
27
- client: SteamSetsCore,
28
- request: components.AppSearch,
29
- options?: RequestOptions,
30
- ): Promise<
31
- Result<
32
- operations.AppV1QueueResponse,
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.AppSearch$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("/app.v1.AppService/Queue")();
55
-
56
- const headers = new Headers({
57
- "Content-Type": "application/json",
58
- Accept: "application/problem+json",
59
- });
60
-
61
- const secConfig = await extractSecurity(client._options.token);
62
- const securityInput = secConfig == null ? {} : { token: secConfig };
63
- const context = {
64
- operationID: "app.v1.queue",
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: ["400", "422", "429", "4XX", "500", "5XX"],
87
- retryConfig: options?.retries
88
- || client._options.retryConfig,
89
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
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.AppV1QueueResponse,
102
- | errors.ErrorModel
103
- | SDKError
104
- | SDKValidationError
105
- | UnexpectedClientError
106
- | InvalidRequestError
107
- | RequestAbortedError
108
- | RequestTimeoutError
109
- | ConnectionError
110
- >(
111
- M.nil(204, operations.AppV1QueueResponse$inboundSchema, { hdrs: true }),
112
- M.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
113
- ctype: "application/problem+json",
114
- }),
115
- M.fail(["4XX", "5XX"]),
116
- )(response, req, { extraFields: responseFields });
117
- if (!result.ok) {
118
- return result;
119
- }
120
-
121
- return result;
122
- }
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type AppSearch = {
8
- /**
9
- * The app id to search for
10
- */
11
- id: number;
12
- };
13
-
14
- /** @internal */
15
- export const AppSearch$inboundSchema: z.ZodType<
16
- AppSearch,
17
- z.ZodTypeDef,
18
- unknown
19
- > = z.object({
20
- id: z.number().int(),
21
- });
22
-
23
- /** @internal */
24
- export type AppSearch$Outbound = {
25
- id: number;
26
- };
27
-
28
- /** @internal */
29
- export const AppSearch$outboundSchema: z.ZodType<
30
- AppSearch$Outbound,
31
- z.ZodTypeDef,
32
- AppSearch
33
- > = z.object({
34
- id: z.number().int(),
35
- });
36
-
37
- /**
38
- * @internal
39
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
- */
41
- export namespace AppSearch$ {
42
- /** @deprecated use `AppSearch$inboundSchema` instead. */
43
- export const inboundSchema = AppSearch$inboundSchema;
44
- /** @deprecated use `AppSearch$outboundSchema` instead. */
45
- export const outboundSchema = AppSearch$outboundSchema;
46
- /** @deprecated use `AppSearch$Outbound` instead. */
47
- export type Outbound = AppSearch$Outbound;
48
- }
@@ -1,156 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * The app type
10
- */
11
- export const V1AppDetailType = {
12
- Invalid: "invalid",
13
- Game: "game",
14
- Application: "application",
15
- Tool: "tool",
16
- Demo: "demo",
17
- Deprecated: "deprecated",
18
- Dlc: "dlc",
19
- Guide: "guide",
20
- Driver: "driver",
21
- Config: "config",
22
- Hardware: "hardware",
23
- Franchise: "franchise",
24
- Video: "video",
25
- Plugin: "plugin",
26
- Music: "music",
27
- Series: "series",
28
- Comic: "comic",
29
- Beta: "beta",
30
- Shortcut: "shortcut",
31
- DepotOnly: "depot_only",
32
- } as const;
33
- /**
34
- * The app type
35
- */
36
- export type V1AppDetailType = ClosedEnum<typeof V1AppDetailType>;
37
-
38
- export type V1AppDetail = {
39
- /**
40
- * The app id
41
- */
42
- appId: number;
43
- /**
44
- * The app image hash
45
- */
46
- image: string;
47
- /**
48
- * Whether the app is an event
49
- */
50
- isEvent: boolean;
51
- /**
52
- * Whether the app is a sale
53
- */
54
- isSale: boolean;
55
- /**
56
- * The apps id on itad
57
- */
58
- itadId: string;
59
- /**
60
- * The app name
61
- */
62
- name: string;
63
- /**
64
- * The app price
65
- */
66
- price: number;
67
- /**
68
- * The app short name
69
- */
70
- shortName: string;
71
- /**
72
- * The app type
73
- */
74
- type: V1AppDetailType;
75
- };
76
-
77
- /** @internal */
78
- export const V1AppDetailType$inboundSchema: z.ZodNativeEnum<
79
- typeof V1AppDetailType
80
- > = z.nativeEnum(V1AppDetailType);
81
-
82
- /** @internal */
83
- export const V1AppDetailType$outboundSchema: z.ZodNativeEnum<
84
- typeof V1AppDetailType
85
- > = V1AppDetailType$inboundSchema;
86
-
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export namespace V1AppDetailType$ {
92
- /** @deprecated use `V1AppDetailType$inboundSchema` instead. */
93
- export const inboundSchema = V1AppDetailType$inboundSchema;
94
- /** @deprecated use `V1AppDetailType$outboundSchema` instead. */
95
- export const outboundSchema = V1AppDetailType$outboundSchema;
96
- }
97
-
98
- /** @internal */
99
- export const V1AppDetail$inboundSchema: z.ZodType<
100
- V1AppDetail,
101
- z.ZodTypeDef,
102
- unknown
103
- > = z.object({
104
- appId: z.number().int(),
105
- image: z.string(),
106
- isEvent: z.boolean(),
107
- isSale: z.boolean(),
108
- itadId: z.string(),
109
- name: z.string(),
110
- price: z.number().int(),
111
- shortName: z.string(),
112
- type: V1AppDetailType$inboundSchema,
113
- });
114
-
115
- /** @internal */
116
- export type V1AppDetail$Outbound = {
117
- appId: number;
118
- image: string;
119
- isEvent: boolean;
120
- isSale: boolean;
121
- itadId: string;
122
- name: string;
123
- price: number;
124
- shortName: string;
125
- type: string;
126
- };
127
-
128
- /** @internal */
129
- export const V1AppDetail$outboundSchema: z.ZodType<
130
- V1AppDetail$Outbound,
131
- z.ZodTypeDef,
132
- V1AppDetail
133
- > = z.object({
134
- appId: z.number().int(),
135
- image: z.string(),
136
- isEvent: z.boolean(),
137
- isSale: z.boolean(),
138
- itadId: z.string(),
139
- name: z.string(),
140
- price: z.number().int(),
141
- shortName: z.string(),
142
- type: V1AppDetailType$outboundSchema,
143
- });
144
-
145
- /**
146
- * @internal
147
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
- */
149
- export namespace V1AppDetail$ {
150
- /** @deprecated use `V1AppDetail$inboundSchema` instead. */
151
- export const inboundSchema = V1AppDetail$inboundSchema;
152
- /** @deprecated use `V1AppDetail$outboundSchema` instead. */
153
- export const outboundSchema = V1AppDetail$outboundSchema;
154
- /** @deprecated use `V1AppDetail$Outbound` instead. */
155
- export type Outbound = V1AppDetail$Outbound;
156
- }
@@ -1,73 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type V1AppItem = {
8
- cost: number;
9
- description: string;
10
- largeImage: string;
11
- name: string;
12
- publicId: string;
13
- smallImage: string;
14
- title: string;
15
- type: string;
16
- };
17
-
18
- /** @internal */
19
- export const V1AppItem$inboundSchema: z.ZodType<
20
- V1AppItem,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- cost: z.number().int(),
25
- description: z.string(),
26
- largeImage: z.string(),
27
- name: z.string(),
28
- publicId: z.string(),
29
- smallImage: z.string(),
30
- title: z.string(),
31
- type: z.string(),
32
- });
33
-
34
- /** @internal */
35
- export type V1AppItem$Outbound = {
36
- cost: number;
37
- description: string;
38
- largeImage: string;
39
- name: string;
40
- publicId: string;
41
- smallImage: string;
42
- title: string;
43
- type: string;
44
- };
45
-
46
- /** @internal */
47
- export const V1AppItem$outboundSchema: z.ZodType<
48
- V1AppItem$Outbound,
49
- z.ZodTypeDef,
50
- V1AppItem
51
- > = z.object({
52
- cost: z.number().int(),
53
- description: z.string(),
54
- largeImage: z.string(),
55
- name: z.string(),
56
- publicId: z.string(),
57
- smallImage: z.string(),
58
- title: z.string(),
59
- type: z.string(),
60
- });
61
-
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export namespace V1AppItem$ {
67
- /** @deprecated use `V1AppItem$inboundSchema` instead. */
68
- export const inboundSchema = V1AppItem$inboundSchema;
69
- /** @deprecated use `V1AppItem$outboundSchema` instead. */
70
- export const outboundSchema = V1AppItem$outboundSchema;
71
- /** @deprecated use `V1AppItem$Outbound` instead. */
72
- export type Outbound = V1AppItem$Outbound;
73
- }
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type V1AppRequestBody = {
8
- /**
9
- * The app id
10
- */
11
- appId: number;
12
- };
13
-
14
- /** @internal */
15
- export const V1AppRequestBody$inboundSchema: z.ZodType<
16
- V1AppRequestBody,
17
- z.ZodTypeDef,
18
- unknown
19
- > = z.object({
20
- appId: z.number().int(),
21
- });
22
-
23
- /** @internal */
24
- export type V1AppRequestBody$Outbound = {
25
- appId: number;
26
- };
27
-
28
- /** @internal */
29
- export const V1AppRequestBody$outboundSchema: z.ZodType<
30
- V1AppRequestBody$Outbound,
31
- z.ZodTypeDef,
32
- V1AppRequestBody
33
- > = z.object({
34
- appId: z.number().int(),
35
- });
36
-
37
- /**
38
- * @internal
39
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
- */
41
- export namespace V1AppRequestBody$ {
42
- /** @deprecated use `V1AppRequestBody$inboundSchema` instead. */
43
- export const inboundSchema = V1AppRequestBody$inboundSchema;
44
- /** @deprecated use `V1AppRequestBody$outboundSchema` instead. */
45
- export const outboundSchema = V1AppRequestBody$outboundSchema;
46
- /** @deprecated use `V1AppRequestBody$Outbound` instead. */
47
- export type Outbound = V1AppRequestBody$Outbound;
48
- }
@@ -1,93 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- V1AppBadge,
9
- V1AppBadge$inboundSchema,
10
- V1AppBadge$Outbound,
11
- V1AppBadge$outboundSchema,
12
- } from "./v1appbadge.js";
13
- import {
14
- V1AppDetail,
15
- V1AppDetail$inboundSchema,
16
- V1AppDetail$Outbound,
17
- V1AppDetail$outboundSchema,
18
- } from "./v1appdetail.js";
19
- import {
20
- V1AppItem,
21
- V1AppItem$inboundSchema,
22
- V1AppItem$Outbound,
23
- V1AppItem$outboundSchema,
24
- } from "./v1appitem.js";
25
-
26
- export type V1AppResponseBody = {
27
- /**
28
- * A URL to the JSON Schema for this object.
29
- */
30
- dollarSchema?: string | undefined;
31
- /**
32
- * The badges
33
- */
34
- badges: Array<V1AppBadge> | null;
35
- detail: V1AppDetail;
36
- /**
37
- * The items
38
- */
39
- items: Array<V1AppItem> | null;
40
- };
41
-
42
- /** @internal */
43
- export const V1AppResponseBody$inboundSchema: z.ZodType<
44
- V1AppResponseBody,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- $schema: z.string().optional(),
49
- badges: z.nullable(z.array(V1AppBadge$inboundSchema)),
50
- detail: V1AppDetail$inboundSchema,
51
- items: z.nullable(z.array(V1AppItem$inboundSchema)),
52
- }).transform((v) => {
53
- return remap$(v, {
54
- "$schema": "dollarSchema",
55
- });
56
- });
57
-
58
- /** @internal */
59
- export type V1AppResponseBody$Outbound = {
60
- $schema?: string | undefined;
61
- badges: Array<V1AppBadge$Outbound> | null;
62
- detail: V1AppDetail$Outbound;
63
- items: Array<V1AppItem$Outbound> | null;
64
- };
65
-
66
- /** @internal */
67
- export const V1AppResponseBody$outboundSchema: z.ZodType<
68
- V1AppResponseBody$Outbound,
69
- z.ZodTypeDef,
70
- V1AppResponseBody
71
- > = z.object({
72
- dollarSchema: z.string().optional(),
73
- badges: z.nullable(z.array(V1AppBadge$outboundSchema)),
74
- detail: V1AppDetail$outboundSchema,
75
- items: z.nullable(z.array(V1AppItem$outboundSchema)),
76
- }).transform((v) => {
77
- return remap$(v, {
78
- dollarSchema: "$schema",
79
- });
80
- });
81
-
82
- /**
83
- * @internal
84
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
- */
86
- export namespace V1AppResponseBody$ {
87
- /** @deprecated use `V1AppResponseBody$inboundSchema` instead. */
88
- export const inboundSchema = V1AppResponseBody$inboundSchema;
89
- /** @deprecated use `V1AppResponseBody$outboundSchema` instead. */
90
- export const outboundSchema = V1AppResponseBody$outboundSchema;
91
- /** @deprecated use `V1AppResponseBody$Outbound` instead. */
92
- export type Outbound = V1AppResponseBody$Outbound;
93
- }