@steamsets/client-ts 0.27.10 → 0.28.1

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 (236) hide show
  1. package/README.md +2 -25
  2. package/docs/sdks/account/README.md +0 -90
  3. package/docs/sdks/badge/README.md +0 -72
  4. package/examples/accountBookmarkBadge.example.ts +1 -1
  5. package/examples/package-lock.json +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/lib/config.js.map +1 -1
  10. package/lib/url.js +1 -1
  11. package/lib/url.js.map +1 -1
  12. package/models/components/badge.d.ts +2 -8
  13. package/models/components/badge.d.ts.map +1 -1
  14. package/models/components/badge.js +2 -8
  15. package/models/components/badge.js.map +1 -1
  16. package/models/components/developerapp.d.ts +12 -2
  17. package/models/components/developerapp.d.ts.map +1 -1
  18. package/models/components/developerapp.js +4 -0
  19. package/models/components/developerapp.js.map +1 -1
  20. package/models/components/index.d.ts +0 -18
  21. package/models/components/index.d.ts.map +1 -1
  22. package/models/components/index.js +0 -18
  23. package/models/components/index.js.map +1 -1
  24. package/models/components/v1accountlistbadgesrequestbody.d.ts +8 -8
  25. package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
  26. package/models/components/v1accountlistbadgesrequestbody.js +14 -13
  27. package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
  28. package/models/components/v1apporder.d.ts +16 -16
  29. package/models/components/v1apporder.d.ts.map +1 -1
  30. package/models/components/v1apporder.js +26 -25
  31. package/models/components/v1apporder.js.map +1 -1
  32. package/models/errors/index.d.ts +1 -0
  33. package/models/errors/index.d.ts.map +1 -1
  34. package/models/errors/index.js +1 -0
  35. package/models/errors/index.js.map +1 -1
  36. package/models/operations/index.d.ts +0 -7
  37. package/models/operations/index.d.ts.map +1 -1
  38. package/models/operations/index.js +0 -7
  39. package/models/operations/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/sdk/account.d.ts +0 -4
  42. package/sdk/account.d.ts.map +1 -1
  43. package/sdk/account.js +0 -7
  44. package/sdk/account.js.map +1 -1
  45. package/sdk/badge.d.ts +0 -4
  46. package/sdk/badge.d.ts.map +1 -1
  47. package/sdk/badge.js +0 -7
  48. package/sdk/badge.js.map +1 -1
  49. package/sdk/sdk.d.ts +2 -8
  50. package/sdk/sdk.d.ts.map +1 -1
  51. package/sdk/sdk.js +3 -11
  52. package/sdk/sdk.js.map +1 -1
  53. package/src/lib/config.ts +3 -3
  54. package/src/lib/url.ts +1 -1
  55. package/src/models/components/badge.ts +4 -16
  56. package/src/models/components/developerapp.ts +16 -2
  57. package/src/models/components/index.ts +0 -18
  58. package/src/models/components/v1accountlistbadgesrequestbody.ts +14 -25
  59. package/src/models/components/v1apporder.ts +26 -30
  60. package/src/models/errors/index.ts +1 -0
  61. package/src/models/operations/index.ts +0 -7
  62. package/src/sdk/account.ts +0 -15
  63. package/src/sdk/badge.ts +0 -15
  64. package/src/sdk/sdk.ts +5 -17
  65. package/docs/sdks/admin/README.md +0 -315
  66. package/docs/sdks/liveness/README.md +0 -99
  67. package/funcs/accountCompareBadges.d.ts +0 -16
  68. package/funcs/accountCompareBadges.d.ts.map +0 -1
  69. package/funcs/accountCompareBadges.js +0 -133
  70. package/funcs/accountCompareBadges.js.map +0 -1
  71. package/funcs/adminGetAccount.d.ts +0 -16
  72. package/funcs/adminGetAccount.d.ts.map +0 -1
  73. package/funcs/adminGetAccount.js +0 -133
  74. package/funcs/adminGetAccount.js.map +0 -1
  75. package/funcs/adminRemoveVanity.d.ts +0 -16
  76. package/funcs/adminRemoveVanity.d.ts.map +0 -1
  77. package/funcs/adminRemoveVanity.js +0 -133
  78. package/funcs/adminRemoveVanity.js.map +0 -1
  79. package/funcs/adminUpdateResources.d.ts +0 -16
  80. package/funcs/adminUpdateResources.d.ts.map +0 -1
  81. package/funcs/adminUpdateResources.js +0 -131
  82. package/funcs/adminUpdateResources.js.map +0 -1
  83. package/funcs/adminUpdateRoles.d.ts +0 -16
  84. package/funcs/adminUpdateRoles.d.ts.map +0 -1
  85. package/funcs/adminUpdateRoles.js +0 -131
  86. package/funcs/adminUpdateRoles.js.map +0 -1
  87. package/funcs/badgeBadgeListAccounts.d.ts +0 -16
  88. package/funcs/badgeBadgeListAccounts.d.ts.map +0 -1
  89. package/funcs/badgeBadgeListAccounts.js +0 -133
  90. package/funcs/badgeBadgeListAccounts.js.map +0 -1
  91. package/funcs/livenessCheck.d.ts +0 -37
  92. package/funcs/livenessCheck.d.ts.map +0 -1
  93. package/funcs/livenessCheck.js +0 -144
  94. package/funcs/livenessCheck.js.map +0 -1
  95. package/models/components/historyvalue.d.ts +0 -37
  96. package/models/components/historyvalue.d.ts.map +0 -1
  97. package/models/components/historyvalue.js +0 -71
  98. package/models/components/historyvalue.js.map +0 -1
  99. package/models/components/v1accountcompare.d.ts +0 -72
  100. package/models/components/v1accountcompare.d.ts.map +0 -1
  101. package/models/components/v1accountcompare.js +0 -94
  102. package/models/components/v1accountcompare.js.map +0 -1
  103. package/models/components/v1accountcomparebadgeorder.d.ts +0 -88
  104. package/models/components/v1accountcomparebadgeorder.d.ts.map +0 -1
  105. package/models/components/v1accountcomparebadgeorder.js +0 -112
  106. package/models/components/v1accountcomparebadgeorder.js.map +0 -1
  107. package/models/components/v1accountcomparebadgesrequestbody.d.ts +0 -99
  108. package/models/components/v1accountcomparebadgesrequestbody.d.ts.map +0 -1
  109. package/models/components/v1accountcomparebadgesrequestbody.js +0 -133
  110. package/models/components/v1accountcomparebadgesrequestbody.js.map +0 -1
  111. package/models/components/v1accountcomparebadgesresponsebody.d.ts +0 -45
  112. package/models/components/v1accountcomparebadgesresponsebody.d.ts.map +0 -1
  113. package/models/components/v1accountcomparebadgesresponsebody.js +0 -85
  114. package/models/components/v1accountcomparebadgesresponsebody.js.map +0 -1
  115. package/models/components/v1accountcomparedappbadge.d.ts +0 -73
  116. package/models/components/v1accountcomparedappbadge.d.ts.map +0 -1
  117. package/models/components/v1accountcomparedappbadge.js +0 -93
  118. package/models/components/v1accountcomparedappbadge.js.map +0 -1
  119. package/models/components/v1accountlocationupdate.d.ts +0 -43
  120. package/models/components/v1accountlocationupdate.d.ts.map +0 -1
  121. package/models/components/v1accountlocationupdate.js +0 -80
  122. package/models/components/v1accountlocationupdate.js.map +0 -1
  123. package/models/components/v1accountnameupdate.d.ts +0 -35
  124. package/models/components/v1accountnameupdate.d.ts.map +0 -1
  125. package/models/components/v1accountnameupdate.js +0 -72
  126. package/models/components/v1accountnameupdate.js.map +0 -1
  127. package/models/components/v1accountvanityupdate.d.ts +0 -35
  128. package/models/components/v1accountvanityupdate.d.ts.map +0 -1
  129. package/models/components/v1accountvanityupdate.js +0 -72
  130. package/models/components/v1accountvanityupdate.js.map +0 -1
  131. package/models/components/v1admingetaccountresponsebody.d.ts +0 -160
  132. package/models/components/v1admingetaccountresponsebody.d.ts.map +0 -1
  133. package/models/components/v1admingetaccountresponsebody.js +0 -143
  134. package/models/components/v1admingetaccountresponsebody.js.map +0 -1
  135. package/models/components/v1adminremovevanityresponsebody.d.ts +0 -32
  136. package/models/components/v1adminremovevanityresponsebody.d.ts.map +0 -1
  137. package/models/components/v1adminremovevanityresponsebody.js +0 -78
  138. package/models/components/v1adminremovevanityresponsebody.js.map +0 -1
  139. package/models/components/v1adminupdateresourcesrequestbody.d.ts +0 -39
  140. package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +0 -1
  141. package/models/components/v1adminupdateresourcesrequestbody.js +0 -76
  142. package/models/components/v1adminupdateresourcesrequestbody.js.map +0 -1
  143. package/models/components/v1adminupdaterolesrequestbody.d.ts +0 -112
  144. package/models/components/v1adminupdaterolesrequestbody.d.ts.map +0 -1
  145. package/models/components/v1adminupdaterolesrequestbody.js +0 -111
  146. package/models/components/v1adminupdaterolesrequestbody.js.map +0 -1
  147. package/models/components/v1badgeaccount.d.ts +0 -229
  148. package/models/components/v1badgeaccount.d.ts.map +0 -1
  149. package/models/components/v1badgeaccount.js +0 -164
  150. package/models/components/v1badgeaccount.js.map +0 -1
  151. package/models/components/v1badgelistaccountsrequestbody.d.ts +0 -32
  152. package/models/components/v1badgelistaccountsrequestbody.d.ts.map +0 -1
  153. package/models/components/v1badgelistaccountsrequestbody.js +0 -72
  154. package/models/components/v1badgelistaccountsrequestbody.js.map +0 -1
  155. package/models/components/v1badgelistaccountsresponsebody.d.ts +0 -40
  156. package/models/components/v1badgelistaccountsresponsebody.d.ts.map +0 -1
  157. package/models/components/v1badgelistaccountsresponsebody.js +0 -86
  158. package/models/components/v1badgelistaccountsresponsebody.js.map +0 -1
  159. package/models/components/v1badgelookup.d.ts +0 -33
  160. package/models/components/v1badgelookup.d.ts.map +0 -1
  161. package/models/components/v1badgelookup.js +0 -73
  162. package/models/components/v1badgelookup.js.map +0 -1
  163. package/models/components/v1livenessresponsebody.d.ts +0 -37
  164. package/models/components/v1livenessresponsebody.d.ts.map +0 -1
  165. package/models/components/v1livenessresponsebody.js +0 -80
  166. package/models/components/v1livenessresponsebody.js.map +0 -1
  167. package/models/operations/accountcomparebadges.d.ts +0 -35
  168. package/models/operations/accountcomparebadges.d.ts.map +0 -1
  169. package/models/operations/accountcomparebadges.js +0 -85
  170. package/models/operations/accountcomparebadges.js.map +0 -1
  171. package/models/operations/admingetaccount.d.ts +0 -35
  172. package/models/operations/admingetaccount.d.ts.map +0 -1
  173. package/models/operations/admingetaccount.js +0 -85
  174. package/models/operations/admingetaccount.js.map +0 -1
  175. package/models/operations/adminremovevanity.d.ts +0 -35
  176. package/models/operations/adminremovevanity.d.ts.map +0 -1
  177. package/models/operations/adminremovevanity.js +0 -85
  178. package/models/operations/adminremovevanity.js.map +0 -1
  179. package/models/operations/adminupdateresources.d.ts +0 -30
  180. package/models/operations/adminupdateresources.d.ts.map +0 -1
  181. package/models/operations/adminupdateresources.js +0 -79
  182. package/models/operations/adminupdateresources.js.map +0 -1
  183. package/models/operations/adminupdateroles.d.ts +0 -30
  184. package/models/operations/adminupdateroles.d.ts.map +0 -1
  185. package/models/operations/adminupdateroles.js +0 -79
  186. package/models/operations/adminupdateroles.js.map +0 -1
  187. package/models/operations/badgelistaccounts.d.ts +0 -35
  188. package/models/operations/badgelistaccounts.d.ts.map +0 -1
  189. package/models/operations/badgelistaccounts.js +0 -85
  190. package/models/operations/badgelistaccounts.js.map +0 -1
  191. package/models/operations/liveness.d.ts +0 -35
  192. package/models/operations/liveness.d.ts.map +0 -1
  193. package/models/operations/liveness.js +0 -85
  194. package/models/operations/liveness.js.map +0 -1
  195. package/sdk/admin.d.ts +0 -22
  196. package/sdk/admin.d.ts.map +0 -1
  197. package/sdk/admin.js +0 -40
  198. package/sdk/admin.js.map +0 -1
  199. package/sdk/liveness.d.ts +0 -31
  200. package/sdk/liveness.d.ts.map +0 -1
  201. package/sdk/liveness.js +0 -41
  202. package/sdk/liveness.js.map +0 -1
  203. package/src/funcs/accountCompareBadges.ts +0 -186
  204. package/src/funcs/adminGetAccount.ts +0 -185
  205. package/src/funcs/adminRemoveVanity.ts +0 -185
  206. package/src/funcs/adminUpdateResources.ts +0 -184
  207. package/src/funcs/adminUpdateRoles.ts +0 -184
  208. package/src/funcs/badgeBadgeListAccounts.ts +0 -186
  209. package/src/funcs/livenessCheck.ts +0 -188
  210. package/src/models/components/historyvalue.ts +0 -72
  211. package/src/models/components/v1accountcompare.ts +0 -104
  212. package/src/models/components/v1accountcomparebadgeorder.ts +0 -121
  213. package/src/models/components/v1accountcomparebadgesrequestbody.ts +0 -169
  214. package/src/models/components/v1accountcomparebadgesresponsebody.ts +0 -106
  215. package/src/models/components/v1accountcomparedappbadge.ts +0 -126
  216. package/src/models/components/v1accountlocationupdate.ts +0 -95
  217. package/src/models/components/v1accountnameupdate.ts +0 -79
  218. package/src/models/components/v1accountvanityupdate.ts +0 -79
  219. package/src/models/components/v1admingetaccountresponsebody.ts +0 -287
  220. package/src/models/components/v1adminremovevanityresponsebody.ts +0 -80
  221. package/src/models/components/v1adminupdateresourcesrequestbody.ts +0 -98
  222. package/src/models/components/v1adminupdaterolesrequestbody.ts +0 -132
  223. package/src/models/components/v1badgeaccount.ts +0 -358
  224. package/src/models/components/v1badgelistaccountsrequestbody.ts +0 -78
  225. package/src/models/components/v1badgelistaccountsresponsebody.ts +0 -104
  226. package/src/models/components/v1badgelookup.ts +0 -70
  227. package/src/models/components/v1livenessresponsebody.ts +0 -85
  228. package/src/models/operations/accountcomparebadges.ts +0 -93
  229. package/src/models/operations/admingetaccount.ts +0 -91
  230. package/src/models/operations/adminremovevanity.ts +0 -91
  231. package/src/models/operations/adminupdateresources.ts +0 -78
  232. package/src/models/operations/adminupdateroles.ts +0 -76
  233. package/src/models/operations/badgelistaccounts.ts +0 -91
  234. package/src/models/operations/liveness.ts +0 -89
  235. package/src/sdk/admin.ts +0 -70
  236. package/src/sdk/liveness.ts +0 -44
@@ -8,61 +8,57 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const V1AppOrderBy = {
11
+ export const By = {
12
12
  AppId: "appId",
13
13
  Playtime: "playtime",
14
14
  } as const;
15
- export type V1AppOrderBy = ClosedEnum<typeof V1AppOrderBy>;
15
+ export type By = ClosedEnum<typeof By>;
16
16
 
17
- export const V1AppOrderDirection = {
17
+ export const Direction = {
18
18
  Asc: "asc",
19
19
  Desc: "desc",
20
20
  } as const;
21
- export type V1AppOrderDirection = ClosedEnum<typeof V1AppOrderDirection>;
21
+ export type Direction = ClosedEnum<typeof Direction>;
22
22
 
23
23
  export type V1AppOrder = {
24
- by: V1AppOrderBy;
25
- direction?: V1AppOrderDirection | undefined;
24
+ by: By;
25
+ direction?: Direction | undefined;
26
26
  };
27
27
 
28
28
  /** @internal */
29
- export const V1AppOrderBy$inboundSchema: z.ZodNativeEnum<typeof V1AppOrderBy> =
30
- z.nativeEnum(V1AppOrderBy);
29
+ export const By$inboundSchema: z.ZodNativeEnum<typeof By> = z.nativeEnum(By);
31
30
 
32
31
  /** @internal */
33
- export const V1AppOrderBy$outboundSchema: z.ZodNativeEnum<typeof V1AppOrderBy> =
34
- V1AppOrderBy$inboundSchema;
32
+ export const By$outboundSchema: z.ZodNativeEnum<typeof By> = By$inboundSchema;
35
33
 
36
34
  /**
37
35
  * @internal
38
36
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
37
  */
40
- export namespace V1AppOrderBy$ {
41
- /** @deprecated use `V1AppOrderBy$inboundSchema` instead. */
42
- export const inboundSchema = V1AppOrderBy$inboundSchema;
43
- /** @deprecated use `V1AppOrderBy$outboundSchema` instead. */
44
- export const outboundSchema = V1AppOrderBy$outboundSchema;
38
+ export namespace By$ {
39
+ /** @deprecated use `By$inboundSchema` instead. */
40
+ export const inboundSchema = By$inboundSchema;
41
+ /** @deprecated use `By$outboundSchema` instead. */
42
+ export const outboundSchema = By$outboundSchema;
45
43
  }
46
44
 
47
45
  /** @internal */
48
- export const V1AppOrderDirection$inboundSchema: z.ZodNativeEnum<
49
- typeof V1AppOrderDirection
50
- > = z.nativeEnum(V1AppOrderDirection);
46
+ export const Direction$inboundSchema: z.ZodNativeEnum<typeof Direction> = z
47
+ .nativeEnum(Direction);
51
48
 
52
49
  /** @internal */
53
- export const V1AppOrderDirection$outboundSchema: z.ZodNativeEnum<
54
- typeof V1AppOrderDirection
55
- > = V1AppOrderDirection$inboundSchema;
50
+ export const Direction$outboundSchema: z.ZodNativeEnum<typeof Direction> =
51
+ Direction$inboundSchema;
56
52
 
57
53
  /**
58
54
  * @internal
59
55
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
56
  */
61
- export namespace V1AppOrderDirection$ {
62
- /** @deprecated use `V1AppOrderDirection$inboundSchema` instead. */
63
- export const inboundSchema = V1AppOrderDirection$inboundSchema;
64
- /** @deprecated use `V1AppOrderDirection$outboundSchema` instead. */
65
- export const outboundSchema = V1AppOrderDirection$outboundSchema;
57
+ export namespace Direction$ {
58
+ /** @deprecated use `Direction$inboundSchema` instead. */
59
+ export const inboundSchema = Direction$inboundSchema;
60
+ /** @deprecated use `Direction$outboundSchema` instead. */
61
+ export const outboundSchema = Direction$outboundSchema;
66
62
  }
67
63
 
68
64
  /** @internal */
@@ -71,8 +67,8 @@ export const V1AppOrder$inboundSchema: z.ZodType<
71
67
  z.ZodTypeDef,
72
68
  unknown
73
69
  > = z.object({
74
- by: V1AppOrderBy$inboundSchema,
75
- direction: V1AppOrderDirection$inboundSchema.default("desc"),
70
+ by: By$inboundSchema,
71
+ direction: Direction$inboundSchema.default("desc"),
76
72
  });
77
73
 
78
74
  /** @internal */
@@ -87,8 +83,8 @@ export const V1AppOrder$outboundSchema: z.ZodType<
87
83
  z.ZodTypeDef,
88
84
  V1AppOrder
89
85
  > = z.object({
90
- by: V1AppOrderBy$outboundSchema,
91
- direction: V1AppOrderDirection$outboundSchema.default("desc"),
86
+ by: By$outboundSchema,
87
+ direction: Direction$outboundSchema.default("desc"),
92
88
  });
93
89
 
94
90
  /**
@@ -7,3 +7,4 @@ export * from "./httpclienterrors.js";
7
7
  export * from "./responsevalidationerror.js";
8
8
  export * from "./sdkerror.js";
9
9
  export * from "./sdkvalidationerror.js";
10
+ export * from "./steamsetserror.js";
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  export * from "./accountbookmarkbadge.js";
6
- export * from "./accountcomparebadges.js";
7
6
  export * from "./accountcreateconnection.js";
8
7
  export * from "./accountcreatedeveloperapp.js";
9
8
  export * from "./accountdeleteconnection.js";
@@ -39,12 +38,7 @@ export * from "./accountupdatevanity.js";
39
38
  export * from "./accountuploadimages.js";
40
39
  export * from "./accountverifyconnection.js";
41
40
  export * from "./accountverifyemail.js";
42
- export * from "./admingetaccount.js";
43
- export * from "./adminremovevanity.js";
44
- export * from "./adminupdateresources.js";
45
- export * from "./adminupdateroles.js";
46
41
  export * from "./applistbadges.js";
47
- export * from "./badgelistaccounts.js";
48
42
  export * from "./badgelistbadgeprices.js";
49
43
  export * from "./badgelisttags.js";
50
44
  export * from "./badgesearchbadges.js";
@@ -57,7 +51,6 @@ export * from "./leaderboardgetgroupsmeta.js";
57
51
  export * from "./leaderboardgetlowestranks.js";
58
52
  export * from "./leaderboardlistbadges.js";
59
53
  export * from "./leaderboardpreviewaccountrank.js";
60
- export * from "./liveness.js";
61
54
  export * from "./locationgetlocations.js";
62
55
  export * from "./staffliststaff.js";
63
56
  export * from "./statsgetstats.js";
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
6
- import { accountCompareBadges } from "../funcs/accountCompareBadges.js";
7
6
  import { accountCreateConnection } from "../funcs/accountCreateConnection.js";
8
7
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
9
8
  import { accountDeleteConnection } from "../funcs/accountDeleteConnection.js";
@@ -59,20 +58,6 @@ export class Account extends ClientSDK {
59
58
  ));
60
59
  }
61
60
 
62
- /**
63
- * Compare badge collections between accounts
64
- */
65
- async compareBadges(
66
- request: components.V1AccountCompareBadgesRequestBody,
67
- options?: RequestOptions,
68
- ): Promise<operations.AccountCompareBadgesResponse> {
69
- return unwrapAsync(accountCompareBadges(
70
- this,
71
- request,
72
- options,
73
- ));
74
- }
75
-
76
61
  /**
77
62
  * Create OAuth or domain connection
78
63
  */
package/src/sdk/badge.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { badgeBadgeListAccounts } from "../funcs/badgeBadgeListAccounts.js";
6
5
  import { badgeSearch } from "../funcs/badgeSearch.js";
7
6
  import { badgeSuggestTags } from "../funcs/badgeSuggestTags.js";
8
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -11,20 +10,6 @@ import * as operations from "../models/operations/index.js";
11
10
  import { unwrapAsync } from "../types/fp.js";
12
11
 
13
12
  export class Badge extends ClientSDK {
14
- /**
15
- * List accounts for badge
16
- */
17
- async badgeListAccounts(
18
- request: components.V1BadgeListAccountsRequestBody,
19
- options?: RequestOptions,
20
- ): Promise<operations.BadgeListAccountsResponse> {
21
- return unwrapAsync(badgeBadgeListAccounts(
22
- this,
23
- request,
24
- options,
25
- ));
26
- }
27
-
28
13
  /**
29
14
  * Search badges
30
15
  */
package/src/sdk/sdk.ts CHANGED
@@ -4,13 +4,11 @@
4
4
 
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { Account } from "./account.js";
7
- import { Admin } from "./admin.js";
8
7
  import { Apps } from "./apps.js";
9
8
  import { Badge } from "./badge.js";
10
9
  import { Badges } from "./badges.js";
11
10
  import { Leaderboard } from "./leaderboard.js";
12
11
  import { Leaderboards } from "./leaderboards.js";
13
- import { Liveness } from "./liveness.js";
14
12
  import { Location } from "./location.js";
15
13
  import { Staff } from "./staff.js";
16
14
  import { Stats } from "./stats.js";
@@ -21,26 +19,21 @@ export class SteamSets extends ClientSDK {
21
19
  return (this._account ??= new Account(this._options));
22
20
  }
23
21
 
24
- private _admin?: Admin;
25
- get admin(): Admin {
26
- return (this._admin ??= new Admin(this._options));
27
- }
28
-
29
22
  private _apps?: Apps;
30
23
  get apps(): Apps {
31
24
  return (this._apps ??= new Apps(this._options));
32
25
  }
33
26
 
34
- private _badge?: Badge;
35
- get badge(): Badge {
36
- return (this._badge ??= new Badge(this._options));
37
- }
38
-
39
27
  private _badges?: Badges;
40
28
  get badges(): Badges {
41
29
  return (this._badges ??= new Badges(this._options));
42
30
  }
43
31
 
32
+ private _badge?: Badge;
33
+ get badge(): Badge {
34
+ return (this._badge ??= new Badge(this._options));
35
+ }
36
+
44
37
  private _leaderboard?: Leaderboard;
45
38
  get leaderboard(): Leaderboard {
46
39
  return (this._leaderboard ??= new Leaderboard(this._options));
@@ -51,11 +44,6 @@ export class SteamSets extends ClientSDK {
51
44
  return (this._leaderboards ??= new Leaderboards(this._options));
52
45
  }
53
46
 
54
- private _liveness?: Liveness;
55
- get liveness(): Liveness {
56
- return (this._liveness ??= new Liveness(this._options));
57
- }
58
-
59
47
  private _location?: Location;
60
48
  get location(): Location {
61
49
  return (this._location ??= new Location(this._options));
@@ -1,315 +0,0 @@
1
- # Admin
2
- (*admin*)
3
-
4
- ## Overview
5
-
6
- Admin related operations, stay away from these.
7
-
8
- ### Available Operations
9
-
10
- * [getAccount](#getaccount) - Get account for admin
11
- * [removeVanity](#removevanity) - Remove vanity URL
12
- * [updateResources](#updateresources) - Update account resources
13
- * [updateRoles](#updateroles) - Update account roles
14
-
15
- ## getAccount
16
-
17
- Get account for admin
18
-
19
- ### Example Usage
20
-
21
- <!-- UsageSnippet language="typescript" operationID="admin.getAccount" method="post" path="/v1/admin.getAccount" -->
22
- ```typescript
23
- import { SteamSets } from "@steamsets/client-ts";
24
-
25
- const steamSets = new SteamSets({
26
- token: "<YOUR_BEARER_TOKEN_HERE>",
27
- });
28
-
29
- async function run() {
30
- const result = await steamSets.admin.getAccount({});
31
-
32
- console.log(result);
33
- }
34
-
35
- run();
36
- ```
37
-
38
- ### Standalone function
39
-
40
- The standalone function version of this method:
41
-
42
- ```typescript
43
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
44
- import { adminGetAccount } from "@steamsets/client-ts/funcs/adminGetAccount.js";
45
-
46
- // Use `SteamSetsCore` for best tree-shaking performance.
47
- // You can create one instance of it to use across an application.
48
- const steamSets = new SteamSetsCore({
49
- token: "<YOUR_BEARER_TOKEN_HERE>",
50
- });
51
-
52
- async function run() {
53
- const res = await adminGetAccount(steamSets, {});
54
- if (res.ok) {
55
- const { value: result } = res;
56
- console.log(result);
57
- } else {
58
- console.log("adminGetAccount failed:", res.error);
59
- }
60
- }
61
-
62
- run();
63
- ```
64
-
65
- ### Parameters
66
-
67
- | Parameter | Type | Required | Description |
68
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
69
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
70
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
71
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
72
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
73
-
74
- ### Response
75
-
76
- **Promise\<[operations.AdminGetAccountResponse](../../models/operations/admingetaccountresponse.md)\>**
77
-
78
- ### Errors
79
-
80
- | Error Type | Status Code | Content Type |
81
- | ------------------------ | ------------------------ | ------------------------ |
82
- | errors.ErrorModel | 400, 401, 403, 404, 422 | application/problem+json |
83
- | errors.ErrorModel | 500 | application/problem+json |
84
- | errors.SDKError | 4XX, 5XX | \*/\* |
85
-
86
- ## removeVanity
87
-
88
- Remove vanity URL
89
-
90
- ### Example Usage
91
-
92
- <!-- UsageSnippet language="typescript" operationID="admin.removeVanity" method="post" path="/v1/admin.removeVanity" -->
93
- ```typescript
94
- import { SteamSets } from "@steamsets/client-ts";
95
-
96
- const steamSets = new SteamSets({
97
- token: "<YOUR_BEARER_TOKEN_HERE>",
98
- });
99
-
100
- async function run() {
101
- const result = await steamSets.admin.removeVanity({});
102
-
103
- console.log(result);
104
- }
105
-
106
- run();
107
- ```
108
-
109
- ### Standalone function
110
-
111
- The standalone function version of this method:
112
-
113
- ```typescript
114
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
115
- import { adminRemoveVanity } from "@steamsets/client-ts/funcs/adminRemoveVanity.js";
116
-
117
- // Use `SteamSetsCore` for best tree-shaking performance.
118
- // You can create one instance of it to use across an application.
119
- const steamSets = new SteamSetsCore({
120
- token: "<YOUR_BEARER_TOKEN_HERE>",
121
- });
122
-
123
- async function run() {
124
- const res = await adminRemoveVanity(steamSets, {});
125
- if (res.ok) {
126
- const { value: result } = res;
127
- console.log(result);
128
- } else {
129
- console.log("adminRemoveVanity failed:", res.error);
130
- }
131
- }
132
-
133
- run();
134
- ```
135
-
136
- ### Parameters
137
-
138
- | Parameter | Type | Required | Description |
139
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
140
- | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
141
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
142
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
143
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
144
-
145
- ### Response
146
-
147
- **Promise\<[operations.AdminRemoveVanityResponse](../../models/operations/adminremovevanityresponse.md)\>**
148
-
149
- ### Errors
150
-
151
- | Error Type | Status Code | Content Type |
152
- | ------------------------ | ------------------------ | ------------------------ |
153
- | errors.ErrorModel | 400, 401, 403, 404, 422 | application/problem+json |
154
- | errors.ErrorModel | 500 | application/problem+json |
155
- | errors.SDKError | 4XX, 5XX | \*/\* |
156
-
157
- ## updateResources
158
-
159
- Update account resources
160
-
161
- ### Example Usage
162
-
163
- <!-- UsageSnippet language="typescript" operationID="admin.updateResources" method="post" path="/v1/admin.updateResources" -->
164
- ```typescript
165
- import { SteamSets } from "@steamsets/client-ts";
166
-
167
- const steamSets = new SteamSets({
168
- token: "<YOUR_BEARER_TOKEN_HERE>",
169
- });
170
-
171
- async function run() {
172
- const result = await steamSets.admin.updateResources({
173
- resources: [
174
- {
175
- resource: "developer_apps",
176
- value: "1",
177
- },
178
- ],
179
- });
180
-
181
- console.log(result);
182
- }
183
-
184
- run();
185
- ```
186
-
187
- ### Standalone function
188
-
189
- The standalone function version of this method:
190
-
191
- ```typescript
192
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
193
- import { adminUpdateResources } from "@steamsets/client-ts/funcs/adminUpdateResources.js";
194
-
195
- // Use `SteamSetsCore` for best tree-shaking performance.
196
- // You can create one instance of it to use across an application.
197
- const steamSets = new SteamSetsCore({
198
- token: "<YOUR_BEARER_TOKEN_HERE>",
199
- });
200
-
201
- async function run() {
202
- const res = await adminUpdateResources(steamSets, {
203
- resources: [
204
- {
205
- resource: "developer_apps",
206
- value: "1",
207
- },
208
- ],
209
- });
210
- if (res.ok) {
211
- const { value: result } = res;
212
- console.log(result);
213
- } else {
214
- console.log("adminUpdateResources failed:", res.error);
215
- }
216
- }
217
-
218
- run();
219
- ```
220
-
221
- ### Parameters
222
-
223
- | Parameter | Type | Required | Description |
224
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
225
- | `request` | [components.V1AdminUpdateResourcesRequestBody](../../models/components/v1adminupdateresourcesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
226
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
227
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
228
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
229
-
230
- ### Response
231
-
232
- **Promise\<[operations.AdminUpdateResourcesResponse](../../models/operations/adminupdateresourcesresponse.md)\>**
233
-
234
- ### Errors
235
-
236
- | Error Type | Status Code | Content Type |
237
- | ------------------------ | ------------------------ | ------------------------ |
238
- | errors.ErrorModel | 400, 401, 403, 404, 422 | application/problem+json |
239
- | errors.ErrorModel | 500 | application/problem+json |
240
- | errors.SDKError | 4XX, 5XX | \*/\* |
241
-
242
- ## updateRoles
243
-
244
- Update account roles
245
-
246
- ### Example Usage
247
-
248
- <!-- UsageSnippet language="typescript" operationID="admin.updateRoles" method="post" path="/v1/admin.updateRoles" -->
249
- ```typescript
250
- import { SteamSets } from "@steamsets/client-ts";
251
-
252
- const steamSets = new SteamSets({
253
- token: "<YOUR_BEARER_TOKEN_HERE>",
254
- });
255
-
256
- async function run() {
257
- const result = await steamSets.admin.updateRoles({
258
- roles: null,
259
- });
260
-
261
- console.log(result);
262
- }
263
-
264
- run();
265
- ```
266
-
267
- ### Standalone function
268
-
269
- The standalone function version of this method:
270
-
271
- ```typescript
272
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
273
- import { adminUpdateRoles } from "@steamsets/client-ts/funcs/adminUpdateRoles.js";
274
-
275
- // Use `SteamSetsCore` for best tree-shaking performance.
276
- // You can create one instance of it to use across an application.
277
- const steamSets = new SteamSetsCore({
278
- token: "<YOUR_BEARER_TOKEN_HERE>",
279
- });
280
-
281
- async function run() {
282
- const res = await adminUpdateRoles(steamSets, {
283
- roles: null,
284
- });
285
- if (res.ok) {
286
- const { value: result } = res;
287
- console.log(result);
288
- } else {
289
- console.log("adminUpdateRoles failed:", res.error);
290
- }
291
- }
292
-
293
- run();
294
- ```
295
-
296
- ### Parameters
297
-
298
- | Parameter | Type | Required | Description |
299
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
300
- | `request` | [components.V1AdminUpdateRolesRequestBody](../../models/components/v1adminupdaterolesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
301
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
302
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
303
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
304
-
305
- ### Response
306
-
307
- **Promise\<[operations.AdminUpdateRolesResponse](../../models/operations/adminupdaterolesresponse.md)\>**
308
-
309
- ### Errors
310
-
311
- | Error Type | Status Code | Content Type |
312
- | ------------------------ | ------------------------ | ------------------------ |
313
- | errors.ErrorModel | 400, 401, 403, 404, 422 | application/problem+json |
314
- | errors.ErrorModel | 500 | application/problem+json |
315
- | errors.SDKError | 4XX, 5XX | \*/\* |