@steamsets/client-ts 0.14.4 → 0.14.5

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 (235) hide show
  1. package/README.md +1 -1
  2. package/RUNTIMES.md +27 -1
  3. package/docs/sdks/account/README.md +2 -2
  4. package/docs/sdks/admin/README.md +3 -9
  5. package/docs/sdks/data/README.md +2 -2
  6. package/docs/sdks/public/README.md +2 -2
  7. package/funcs/accountAccountV1GetBadgeBookmarks.js +4 -4
  8. package/funcs/accountAccountV1GetBadgeBookmarks.js.map +1 -1
  9. package/funcs/accountAccountV1ImagesGet.js +4 -4
  10. package/funcs/accountAccountV1ImagesGet.js.map +1 -1
  11. package/funcs/accountAccountV1ImagesUpdate.js +4 -4
  12. package/funcs/accountAccountV1ImagesUpdate.js.map +1 -1
  13. package/funcs/accountDeleteImages.js +4 -4
  14. package/funcs/accountDeleteImages.js.map +1 -1
  15. package/funcs/accountGetApps.d.ts +1 -1
  16. package/funcs/accountGetApps.d.ts.map +1 -1
  17. package/funcs/accountGetApps.js +5 -5
  18. package/funcs/accountGetApps.js.map +1 -1
  19. package/funcs/accountGetBadges.d.ts +1 -1
  20. package/funcs/accountGetBadges.d.ts.map +1 -1
  21. package/funcs/accountGetBadges.js +5 -5
  22. package/funcs/accountGetBadges.js.map +1 -1
  23. package/funcs/accountGetDataPoints.js +4 -4
  24. package/funcs/accountGetDataPoints.js.map +1 -1
  25. package/funcs/accountGetFriends.js +4 -4
  26. package/funcs/accountGetFriends.js.map +1 -1
  27. package/funcs/accountGetInfo.js +4 -4
  28. package/funcs/accountGetInfo.js.map +1 -1
  29. package/funcs/accountGetLeaderboardHistory.js +4 -4
  30. package/funcs/accountGetLeaderboardHistory.js.map +1 -1
  31. package/funcs/accountGetStaff.js +4 -4
  32. package/funcs/accountGetStaff.js.map +1 -1
  33. package/funcs/accountSendEmailVerification.js +4 -4
  34. package/funcs/accountSendEmailVerification.js.map +1 -1
  35. package/funcs/accountUploadImages.js +4 -4
  36. package/funcs/accountUploadImages.js.map +1 -1
  37. package/funcs/accountVerifyEmail.js +4 -4
  38. package/funcs/accountVerifyEmail.js.map +1 -1
  39. package/funcs/accountsQueue.js +4 -4
  40. package/funcs/accountsQueue.js.map +1 -1
  41. package/funcs/adminAdminV1GetEvents.js +4 -4
  42. package/funcs/adminAdminV1GetEvents.js.map +1 -1
  43. package/funcs/adminAdminV1UpdateEvent.js +4 -4
  44. package/funcs/adminAdminV1UpdateEvent.js.map +1 -1
  45. package/funcs/adminAdminV1UpdateResources.js +4 -4
  46. package/funcs/adminAdminV1UpdateResources.js.map +1 -1
  47. package/funcs/adminAdminV1UpdateRoles.js +4 -4
  48. package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
  49. package/funcs/adminGetAccount.js +4 -4
  50. package/funcs/adminGetAccount.js.map +1 -1
  51. package/funcs/badgeAccountV1BookmarkBadge.js +4 -4
  52. package/funcs/badgeAccountV1BookmarkBadge.js.map +1 -1
  53. package/funcs/badgeAccountV1GetBadgeBookmarks.js +4 -4
  54. package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +1 -1
  55. package/funcs/badgeBadgeV1Search.js +4 -4
  56. package/funcs/badgeBadgeV1Search.js.map +1 -1
  57. package/funcs/badgeGetTags.js +4 -4
  58. package/funcs/badgeGetTags.js.map +1 -1
  59. package/funcs/badgesTag.js +4 -4
  60. package/funcs/badgesTag.js.map +1 -1
  61. package/funcs/connectionDelete.js +4 -4
  62. package/funcs/connectionDelete.js.map +1 -1
  63. package/funcs/connectionUpdate.js +4 -4
  64. package/funcs/connectionUpdate.js.map +1 -1
  65. package/funcs/connectionVerify.js +4 -4
  66. package/funcs/connectionVerify.js.map +1 -1
  67. package/funcs/connectionsConnect.js +4 -4
  68. package/funcs/connectionsConnect.js.map +1 -1
  69. package/funcs/dataGetApps.d.ts +1 -1
  70. package/funcs/dataGetApps.d.ts.map +1 -1
  71. package/funcs/dataGetApps.js +5 -5
  72. package/funcs/dataGetApps.js.map +1 -1
  73. package/funcs/dataGetBadges.d.ts +1 -1
  74. package/funcs/dataGetBadges.d.ts.map +1 -1
  75. package/funcs/dataGetBadges.js +5 -5
  76. package/funcs/dataGetBadges.js.map +1 -1
  77. package/funcs/dataGetDataPoints.js +4 -4
  78. package/funcs/dataGetDataPoints.js.map +1 -1
  79. package/funcs/dataGetFriends.js +4 -4
  80. package/funcs/dataGetFriends.js.map +1 -1
  81. package/funcs/dataGetInfo.js +4 -4
  82. package/funcs/dataGetInfo.js.map +1 -1
  83. package/funcs/dataGetLeaderboardHistory.js +4 -4
  84. package/funcs/dataGetLeaderboardHistory.js.map +1 -1
  85. package/funcs/dataGetStaff.js +4 -4
  86. package/funcs/dataGetStaff.js.map +1 -1
  87. package/funcs/developerCreateDeveloperApp.js +4 -4
  88. package/funcs/developerCreateDeveloperApp.js.map +1 -1
  89. package/funcs/developerDeleteDeveloperApp.js +4 -4
  90. package/funcs/developerDeleteDeveloperApp.js.map +1 -1
  91. package/funcs/developerUpdateApp.js +4 -4
  92. package/funcs/developerUpdateApp.js.map +1 -1
  93. package/funcs/imagesAccountV1ImagesGet.js +4 -4
  94. package/funcs/imagesAccountV1ImagesGet.js.map +1 -1
  95. package/funcs/imagesAccountV1ImagesUpdate.js +4 -4
  96. package/funcs/imagesAccountV1ImagesUpdate.js.map +1 -1
  97. package/funcs/imagesDeleteImages.js +4 -4
  98. package/funcs/imagesDeleteImages.js.map +1 -1
  99. package/funcs/imagesUploadImages.js +4 -4
  100. package/funcs/imagesUploadImages.js.map +1 -1
  101. package/funcs/leaderboardGetAccount.js +4 -4
  102. package/funcs/leaderboardGetAccount.js.map +1 -1
  103. package/funcs/leaderboardGetBadges.js +4 -4
  104. package/funcs/leaderboardGetBadges.js.map +1 -1
  105. package/funcs/leaderboardGetGroup.js +4 -4
  106. package/funcs/leaderboardGetGroup.js.map +1 -1
  107. package/funcs/livenessCheck.js +4 -4
  108. package/funcs/livenessCheck.js.map +1 -1
  109. package/funcs/locationsGet.js +4 -4
  110. package/funcs/locationsGet.js.map +1 -1
  111. package/funcs/metaAccountV1GetEmbed.js +4 -4
  112. package/funcs/metaAccountV1GetEmbed.js.map +1 -1
  113. package/funcs/metaAccountV1GetMeta.js +4 -4
  114. package/funcs/metaAccountV1GetMeta.js.map +1 -1
  115. package/funcs/publicGetApps.d.ts +1 -1
  116. package/funcs/publicGetApps.d.ts.map +1 -1
  117. package/funcs/publicGetApps.js +5 -5
  118. package/funcs/publicGetApps.js.map +1 -1
  119. package/funcs/publicGetBadges.d.ts +1 -1
  120. package/funcs/publicGetBadges.d.ts.map +1 -1
  121. package/funcs/publicGetBadges.js +5 -5
  122. package/funcs/publicGetBadges.js.map +1 -1
  123. package/funcs/publicGetDataPoints.js +4 -4
  124. package/funcs/publicGetDataPoints.js.map +1 -1
  125. package/funcs/publicGetFriends.js +4 -4
  126. package/funcs/publicGetFriends.js.map +1 -1
  127. package/funcs/publicGetInfo.js +4 -4
  128. package/funcs/publicGetInfo.js.map +1 -1
  129. package/funcs/publicGetLeaderboardHistory.js +4 -4
  130. package/funcs/publicGetLeaderboardHistory.js.map +1 -1
  131. package/funcs/sessionCreate.js +4 -4
  132. package/funcs/sessionCreate.js.map +1 -1
  133. package/funcs/sessionLogin.js +4 -4
  134. package/funcs/sessionLogin.js.map +1 -1
  135. package/funcs/sessionsDelete.js +4 -4
  136. package/funcs/sessionsDelete.js.map +1 -1
  137. package/funcs/sessionsGet.js +4 -4
  138. package/funcs/sessionsGet.js.map +1 -1
  139. package/funcs/settingsGet.js +4 -4
  140. package/funcs/settingsGet.js.map +1 -1
  141. package/funcs/settingsSendEmailVerification.js +4 -4
  142. package/funcs/settingsSendEmailVerification.js.map +1 -1
  143. package/funcs/settingsUpdate.js +4 -4
  144. package/funcs/settingsUpdate.js.map +1 -1
  145. package/funcs/settingsVerifyEmail.js +4 -4
  146. package/funcs/settingsVerifyEmail.js.map +1 -1
  147. package/lib/config.d.ts +4 -4
  148. package/lib/config.js +5 -6
  149. package/lib/config.js.map +1 -1
  150. package/lib/encodings.js +18 -19
  151. package/lib/encodings.js.map +1 -1
  152. package/lib/http.js +1 -2
  153. package/lib/http.js.map +1 -1
  154. package/lib/matchers.js +5 -6
  155. package/lib/matchers.js.map +1 -1
  156. package/lib/primitives.js +1 -1
  157. package/lib/primitives.js.map +1 -1
  158. package/lib/retries.js +3 -4
  159. package/lib/retries.js.map +1 -1
  160. package/lib/sdks.js +15 -16
  161. package/lib/sdks.js.map +1 -1
  162. package/lib/security.js +2 -2
  163. package/lib/security.js.map +1 -1
  164. package/lib/url.js +1 -1
  165. package/lib/url.js.map +1 -1
  166. package/models/components/accountsearchvanitystruct.d.ts +8 -8
  167. package/models/components/accountsearchvanitystruct.d.ts.map +1 -1
  168. package/models/components/accountsearchvanitystruct.js +13 -13
  169. package/models/components/accountsearchvanitystruct.js.map +1 -1
  170. package/models/components/index.d.ts +4 -0
  171. package/models/components/index.d.ts.map +1 -1
  172. package/models/components/index.js +4 -0
  173. package/models/components/index.js.map +1 -1
  174. package/models/components/v1accountsappsrequestbody.d.ts +40 -0
  175. package/models/components/v1accountsappsrequestbody.d.ts.map +1 -0
  176. package/models/components/v1accountsappsrequestbody.js +70 -0
  177. package/models/components/v1accountsappsrequestbody.js.map +1 -0
  178. package/models/components/v1adminupdaterolessrequestbody.d.ts +9 -84
  179. package/models/components/v1adminupdaterolessrequestbody.d.ts.map +1 -1
  180. package/models/components/v1adminupdaterolessrequestbody.js +13 -51
  181. package/models/components/v1adminupdaterolessrequestbody.js.map +1 -1
  182. package/models/components/v1apporder.d.ts +82 -0
  183. package/models/components/v1apporder.d.ts.map +1 -0
  184. package/models/components/v1apporder.js +100 -0
  185. package/models/components/v1apporder.js.map +1 -0
  186. package/models/components/v1badgeorder.d.ts +91 -0
  187. package/models/components/v1badgeorder.d.ts.map +1 -0
  188. package/models/components/v1badgeorder.js +102 -0
  189. package/models/components/v1badgeorder.js.map +1 -0
  190. package/models/components/v1badgesrequestbody.d.ts +71 -0
  191. package/models/components/v1badgesrequestbody.d.ts.map +1 -0
  192. package/models/components/v1badgesrequestbody.js +93 -0
  193. package/models/components/v1badgesrequestbody.js.map +1 -0
  194. package/models/components/v1badgesresponsebody.d.ts +2 -0
  195. package/models/components/v1badgesresponsebody.d.ts.map +1 -1
  196. package/models/components/v1badgesresponsebody.js +2 -0
  197. package/models/components/v1badgesresponsebody.js.map +1 -1
  198. package/models/components/vanitystruct.d.ts +8 -8
  199. package/models/components/vanitystruct.d.ts.map +1 -1
  200. package/models/components/vanitystruct.js +13 -13
  201. package/models/components/vanitystruct.js.map +1 -1
  202. package/models/errors/httpclienterrors.js +2 -2
  203. package/models/errors/httpclienterrors.js.map +1 -1
  204. package/package.json +1 -1
  205. package/sdk/account.d.ts +2 -2
  206. package/sdk/account.d.ts.map +1 -1
  207. package/sdk/account.js.map +1 -1
  208. package/sdk/data.d.ts +2 -2
  209. package/sdk/data.d.ts.map +1 -1
  210. package/sdk/data.js.map +1 -1
  211. package/sdk/public.d.ts +2 -2
  212. package/sdk/public.d.ts.map +1 -1
  213. package/sdk/public.js.map +1 -1
  214. package/sdk/sdk.js +18 -36
  215. package/sdk/sdk.js.map +1 -1
  216. package/src/funcs/accountGetApps.ts +2 -2
  217. package/src/funcs/accountGetBadges.ts +2 -2
  218. package/src/funcs/dataGetApps.ts +2 -2
  219. package/src/funcs/dataGetBadges.ts +2 -2
  220. package/src/funcs/publicGetApps.ts +2 -2
  221. package/src/funcs/publicGetBadges.ts +2 -2
  222. package/src/lib/config.ts +4 -4
  223. package/src/lib/security.ts +1 -1
  224. package/src/models/components/accountsearchvanitystruct.ts +18 -15
  225. package/src/models/components/index.ts +4 -0
  226. package/src/models/components/v1accountsappsrequestbody.ts +100 -0
  227. package/src/models/components/v1adminupdaterolessrequestbody.ts +16 -60
  228. package/src/models/components/v1apporder.ts +115 -0
  229. package/src/models/components/v1badgeorder.ts +124 -0
  230. package/src/models/components/v1badgesrequestbody.ts +131 -0
  231. package/src/models/components/v1badgesresponsebody.ts +4 -0
  232. package/src/models/components/vanitystruct.ts +15 -16
  233. package/src/sdk/account.ts +2 -2
  234. package/src/sdk/data.ts +2 -2
  235. package/src/sdk/public.ts +2 -2
@@ -20,7 +20,7 @@ import {
20
20
  VanityStruct$outboundSchema,
21
21
  } from "./vanitystruct.js";
22
22
 
23
- export const DeletedRoles = {
23
+ export const Roles = {
24
24
  User: "user",
25
25
  Donator: "donator",
26
26
  Staff: "staff",
@@ -40,73 +40,32 @@ export const DeletedRoles = {
40
40
  Top100: "top_100",
41
41
  BadgeScout: "badge_scout",
42
42
  } as const;
43
- export type DeletedRoles = ClosedEnum<typeof DeletedRoles>;
44
-
45
- export const NewRoles = {
46
- User: "user",
47
- Donator: "donator",
48
- Staff: "staff",
49
- Developer: "developer",
50
- Partner: "partner",
51
- Owner: "owner",
52
- Amethyst: "amethyst",
53
- Amber: "amber",
54
- Emerald: "emerald",
55
- Sapphire: "sapphire",
56
- Ruby: "ruby",
57
- Diamond: "diamond",
58
- Contributor: "contributor",
59
- EarlySupporter: "early_supporter",
60
- Beta: "beta",
61
- Translator: "translator",
62
- Top100: "top_100",
63
- BadgeScout: "badge_scout",
64
- } as const;
65
- export type NewRoles = ClosedEnum<typeof NewRoles>;
43
+ export type Roles = ClosedEnum<typeof Roles>;
66
44
 
67
45
  export type V1AdminUpdateRolessRequestBody = {
68
- deletedRoles: Array<DeletedRoles> | null;
69
46
  id?: IDStruct | undefined;
70
- newRoles: Array<NewRoles> | null;
47
+ roles: Array<Roles> | null;
71
48
  vanity?: VanityStruct | undefined;
72
49
  };
73
50
 
74
51
  /** @internal */
75
- export const DeletedRoles$inboundSchema: z.ZodNativeEnum<typeof DeletedRoles> =
76
- z.nativeEnum(DeletedRoles);
77
-
78
- /** @internal */
79
- export const DeletedRoles$outboundSchema: z.ZodNativeEnum<typeof DeletedRoles> =
80
- DeletedRoles$inboundSchema;
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 DeletedRoles$ {
87
- /** @deprecated use `DeletedRoles$inboundSchema` instead. */
88
- export const inboundSchema = DeletedRoles$inboundSchema;
89
- /** @deprecated use `DeletedRoles$outboundSchema` instead. */
90
- export const outboundSchema = DeletedRoles$outboundSchema;
91
- }
92
-
93
- /** @internal */
94
- export const NewRoles$inboundSchema: z.ZodNativeEnum<typeof NewRoles> = z
95
- .nativeEnum(NewRoles);
52
+ export const Roles$inboundSchema: z.ZodNativeEnum<typeof Roles> = z.nativeEnum(
53
+ Roles,
54
+ );
96
55
 
97
56
  /** @internal */
98
- export const NewRoles$outboundSchema: z.ZodNativeEnum<typeof NewRoles> =
99
- NewRoles$inboundSchema;
57
+ export const Roles$outboundSchema: z.ZodNativeEnum<typeof Roles> =
58
+ Roles$inboundSchema;
100
59
 
101
60
  /**
102
61
  * @internal
103
62
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
63
  */
105
- export namespace NewRoles$ {
106
- /** @deprecated use `NewRoles$inboundSchema` instead. */
107
- export const inboundSchema = NewRoles$inboundSchema;
108
- /** @deprecated use `NewRoles$outboundSchema` instead. */
109
- export const outboundSchema = NewRoles$outboundSchema;
64
+ export namespace Roles$ {
65
+ /** @deprecated use `Roles$inboundSchema` instead. */
66
+ export const inboundSchema = Roles$inboundSchema;
67
+ /** @deprecated use `Roles$outboundSchema` instead. */
68
+ export const outboundSchema = Roles$outboundSchema;
110
69
  }
111
70
 
112
71
  /** @internal */
@@ -115,17 +74,15 @@ export const V1AdminUpdateRolessRequestBody$inboundSchema: z.ZodType<
115
74
  z.ZodTypeDef,
116
75
  unknown
117
76
  > = z.object({
118
- deletedRoles: z.nullable(z.array(DeletedRoles$inboundSchema)),
119
77
  id: IDStruct$inboundSchema.optional(),
120
- newRoles: z.nullable(z.array(NewRoles$inboundSchema)),
78
+ roles: z.nullable(z.array(Roles$inboundSchema)),
121
79
  vanity: VanityStruct$inboundSchema.optional(),
122
80
  });
123
81
 
124
82
  /** @internal */
125
83
  export type V1AdminUpdateRolessRequestBody$Outbound = {
126
- deletedRoles: Array<string> | null;
127
84
  id?: IDStruct$Outbound | undefined;
128
- newRoles: Array<string> | null;
85
+ roles: Array<string> | null;
129
86
  vanity?: VanityStruct$Outbound | undefined;
130
87
  };
131
88
 
@@ -135,9 +92,8 @@ export const V1AdminUpdateRolessRequestBody$outboundSchema: z.ZodType<
135
92
  z.ZodTypeDef,
136
93
  V1AdminUpdateRolessRequestBody
137
94
  > = z.object({
138
- deletedRoles: z.nullable(z.array(DeletedRoles$outboundSchema)),
139
95
  id: IDStruct$outboundSchema.optional(),
140
- newRoles: z.nullable(z.array(NewRoles$outboundSchema)),
96
+ roles: z.nullable(z.array(Roles$outboundSchema)),
141
97
  vanity: VanityStruct$outboundSchema.optional(),
142
98
  });
143
99
 
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export const By = {
12
+ AppId: "appId",
13
+ Playtime: "playtime",
14
+ } as const;
15
+ export type By = ClosedEnum<typeof By>;
16
+
17
+ export const Direction = {
18
+ Asc: "asc",
19
+ Desc: "desc",
20
+ } as const;
21
+ export type Direction = ClosedEnum<typeof Direction>;
22
+
23
+ export type V1AppOrder = {
24
+ by: By;
25
+ direction?: Direction | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const By$inboundSchema: z.ZodNativeEnum<typeof By> = z.nativeEnum(By);
30
+
31
+ /** @internal */
32
+ export const By$outboundSchema: z.ZodNativeEnum<typeof By> = By$inboundSchema;
33
+
34
+ /**
35
+ * @internal
36
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
+ */
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;
43
+ }
44
+
45
+ /** @internal */
46
+ export const Direction$inboundSchema: z.ZodNativeEnum<typeof Direction> = z
47
+ .nativeEnum(Direction);
48
+
49
+ /** @internal */
50
+ export const Direction$outboundSchema: z.ZodNativeEnum<typeof Direction> =
51
+ Direction$inboundSchema;
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
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;
62
+ }
63
+
64
+ /** @internal */
65
+ export const V1AppOrder$inboundSchema: z.ZodType<
66
+ V1AppOrder,
67
+ z.ZodTypeDef,
68
+ unknown
69
+ > = z.object({
70
+ by: By$inboundSchema,
71
+ direction: Direction$inboundSchema.default("desc"),
72
+ });
73
+
74
+ /** @internal */
75
+ export type V1AppOrder$Outbound = {
76
+ by: string;
77
+ direction: string;
78
+ };
79
+
80
+ /** @internal */
81
+ export const V1AppOrder$outboundSchema: z.ZodType<
82
+ V1AppOrder$Outbound,
83
+ z.ZodTypeDef,
84
+ V1AppOrder
85
+ > = z.object({
86
+ by: By$outboundSchema,
87
+ direction: Direction$outboundSchema.default("desc"),
88
+ });
89
+
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ export namespace V1AppOrder$ {
95
+ /** @deprecated use `V1AppOrder$inboundSchema` instead. */
96
+ export const inboundSchema = V1AppOrder$inboundSchema;
97
+ /** @deprecated use `V1AppOrder$outboundSchema` instead. */
98
+ export const outboundSchema = V1AppOrder$outboundSchema;
99
+ /** @deprecated use `V1AppOrder$Outbound` instead. */
100
+ export type Outbound = V1AppOrder$Outbound;
101
+ }
102
+
103
+ export function v1AppOrderToJSON(v1AppOrder: V1AppOrder): string {
104
+ return JSON.stringify(V1AppOrder$outboundSchema.parse(v1AppOrder));
105
+ }
106
+
107
+ export function v1AppOrderFromJSON(
108
+ jsonString: string,
109
+ ): SafeParseResult<V1AppOrder, SDKValidationError> {
110
+ return safeParse(
111
+ jsonString,
112
+ (x) => V1AppOrder$inboundSchema.parse(JSON.parse(x)),
113
+ `Failed to parse 'V1AppOrder' from JSON`,
114
+ );
115
+ }
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export const V1BadgeOrderBy = {
12
+ Xp: "xp",
13
+ Level: "level",
14
+ Scarcity: "scarcity",
15
+ Name: "name",
16
+ CompletionTime: "completion_time",
17
+ } as const;
18
+ export type V1BadgeOrderBy = ClosedEnum<typeof V1BadgeOrderBy>;
19
+
20
+ export const V1BadgeOrderDirection = {
21
+ Asc: "asc",
22
+ Desc: "desc",
23
+ } as const;
24
+ export type V1BadgeOrderDirection = ClosedEnum<typeof V1BadgeOrderDirection>;
25
+
26
+ export type V1BadgeOrder = {
27
+ by?: V1BadgeOrderBy | undefined;
28
+ direction?: V1BadgeOrderDirection | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const V1BadgeOrderBy$inboundSchema: z.ZodNativeEnum<
33
+ typeof V1BadgeOrderBy
34
+ > = z.nativeEnum(V1BadgeOrderBy);
35
+
36
+ /** @internal */
37
+ export const V1BadgeOrderBy$outboundSchema: z.ZodNativeEnum<
38
+ typeof V1BadgeOrderBy
39
+ > = V1BadgeOrderBy$inboundSchema;
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace V1BadgeOrderBy$ {
46
+ /** @deprecated use `V1BadgeOrderBy$inboundSchema` instead. */
47
+ export const inboundSchema = V1BadgeOrderBy$inboundSchema;
48
+ /** @deprecated use `V1BadgeOrderBy$outboundSchema` instead. */
49
+ export const outboundSchema = V1BadgeOrderBy$outboundSchema;
50
+ }
51
+
52
+ /** @internal */
53
+ export const V1BadgeOrderDirection$inboundSchema: z.ZodNativeEnum<
54
+ typeof V1BadgeOrderDirection
55
+ > = z.nativeEnum(V1BadgeOrderDirection);
56
+
57
+ /** @internal */
58
+ export const V1BadgeOrderDirection$outboundSchema: z.ZodNativeEnum<
59
+ typeof V1BadgeOrderDirection
60
+ > = V1BadgeOrderDirection$inboundSchema;
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 V1BadgeOrderDirection$ {
67
+ /** @deprecated use `V1BadgeOrderDirection$inboundSchema` instead. */
68
+ export const inboundSchema = V1BadgeOrderDirection$inboundSchema;
69
+ /** @deprecated use `V1BadgeOrderDirection$outboundSchema` instead. */
70
+ export const outboundSchema = V1BadgeOrderDirection$outboundSchema;
71
+ }
72
+
73
+ /** @internal */
74
+ export const V1BadgeOrder$inboundSchema: z.ZodType<
75
+ V1BadgeOrder,
76
+ z.ZodTypeDef,
77
+ unknown
78
+ > = z.object({
79
+ by: V1BadgeOrderBy$inboundSchema.default("xp"),
80
+ direction: V1BadgeOrderDirection$inboundSchema.default("desc"),
81
+ });
82
+
83
+ /** @internal */
84
+ export type V1BadgeOrder$Outbound = {
85
+ by: string;
86
+ direction: string;
87
+ };
88
+
89
+ /** @internal */
90
+ export const V1BadgeOrder$outboundSchema: z.ZodType<
91
+ V1BadgeOrder$Outbound,
92
+ z.ZodTypeDef,
93
+ V1BadgeOrder
94
+ > = z.object({
95
+ by: V1BadgeOrderBy$outboundSchema.default("xp"),
96
+ direction: V1BadgeOrderDirection$outboundSchema.default("desc"),
97
+ });
98
+
99
+ /**
100
+ * @internal
101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
+ */
103
+ export namespace V1BadgeOrder$ {
104
+ /** @deprecated use `V1BadgeOrder$inboundSchema` instead. */
105
+ export const inboundSchema = V1BadgeOrder$inboundSchema;
106
+ /** @deprecated use `V1BadgeOrder$outboundSchema` instead. */
107
+ export const outboundSchema = V1BadgeOrder$outboundSchema;
108
+ /** @deprecated use `V1BadgeOrder$Outbound` instead. */
109
+ export type Outbound = V1BadgeOrder$Outbound;
110
+ }
111
+
112
+ export function v1BadgeOrderToJSON(v1BadgeOrder: V1BadgeOrder): string {
113
+ return JSON.stringify(V1BadgeOrder$outboundSchema.parse(v1BadgeOrder));
114
+ }
115
+
116
+ export function v1BadgeOrderFromJSON(
117
+ jsonString: string,
118
+ ): SafeParseResult<V1BadgeOrder, SDKValidationError> {
119
+ return safeParse(
120
+ jsonString,
121
+ (x) => V1BadgeOrder$inboundSchema.parse(JSON.parse(x)),
122
+ `Failed to parse 'V1BadgeOrder' from JSON`,
123
+ );
124
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ IDStruct,
12
+ IDStruct$inboundSchema,
13
+ IDStruct$Outbound,
14
+ IDStruct$outboundSchema,
15
+ } from "./idstruct.js";
16
+ import {
17
+ V1BadgeOrder,
18
+ V1BadgeOrder$inboundSchema,
19
+ V1BadgeOrder$Outbound,
20
+ V1BadgeOrder$outboundSchema,
21
+ } from "./v1badgeorder.js";
22
+ import {
23
+ VanityStruct,
24
+ VanityStruct$inboundSchema,
25
+ VanityStruct$Outbound,
26
+ VanityStruct$outboundSchema,
27
+ } from "./vanitystruct.js";
28
+
29
+ export const Filter = {
30
+ Foil: "foil",
31
+ Sale: "sale",
32
+ Event: "event",
33
+ } as const;
34
+ export type Filter = ClosedEnum<typeof Filter>;
35
+
36
+ export type V1BadgesRequestBody = {
37
+ filter?: Filter | null | undefined;
38
+ id?: IDStruct | undefined;
39
+ order?: V1BadgeOrder | null | undefined;
40
+ page?: number | undefined;
41
+ search?: string | null | undefined;
42
+ vanity?: VanityStruct | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const Filter$inboundSchema: z.ZodNativeEnum<typeof Filter> = z
47
+ .nativeEnum(Filter);
48
+
49
+ /** @internal */
50
+ export const Filter$outboundSchema: z.ZodNativeEnum<typeof Filter> =
51
+ Filter$inboundSchema;
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace Filter$ {
58
+ /** @deprecated use `Filter$inboundSchema` instead. */
59
+ export const inboundSchema = Filter$inboundSchema;
60
+ /** @deprecated use `Filter$outboundSchema` instead. */
61
+ export const outboundSchema = Filter$outboundSchema;
62
+ }
63
+
64
+ /** @internal */
65
+ export const V1BadgesRequestBody$inboundSchema: z.ZodType<
66
+ V1BadgesRequestBody,
67
+ z.ZodTypeDef,
68
+ unknown
69
+ > = z.object({
70
+ filter: z.nullable(Filter$inboundSchema).optional(),
71
+ id: IDStruct$inboundSchema.optional(),
72
+ order: z.nullable(V1BadgeOrder$inboundSchema).optional(),
73
+ page: z.number().int().default(1),
74
+ search: z.nullable(z.string()).optional(),
75
+ vanity: VanityStruct$inboundSchema.optional(),
76
+ });
77
+
78
+ /** @internal */
79
+ export type V1BadgesRequestBody$Outbound = {
80
+ filter?: string | null | undefined;
81
+ id?: IDStruct$Outbound | undefined;
82
+ order?: V1BadgeOrder$Outbound | null | undefined;
83
+ page: number;
84
+ search?: string | null | undefined;
85
+ vanity?: VanityStruct$Outbound | undefined;
86
+ };
87
+
88
+ /** @internal */
89
+ export const V1BadgesRequestBody$outboundSchema: z.ZodType<
90
+ V1BadgesRequestBody$Outbound,
91
+ z.ZodTypeDef,
92
+ V1BadgesRequestBody
93
+ > = z.object({
94
+ filter: z.nullable(Filter$outboundSchema).optional(),
95
+ id: IDStruct$outboundSchema.optional(),
96
+ order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
97
+ page: z.number().int().default(1),
98
+ search: z.nullable(z.string()).optional(),
99
+ vanity: VanityStruct$outboundSchema.optional(),
100
+ });
101
+
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export namespace V1BadgesRequestBody$ {
107
+ /** @deprecated use `V1BadgesRequestBody$inboundSchema` instead. */
108
+ export const inboundSchema = V1BadgesRequestBody$inboundSchema;
109
+ /** @deprecated use `V1BadgesRequestBody$outboundSchema` instead. */
110
+ export const outboundSchema = V1BadgesRequestBody$outboundSchema;
111
+ /** @deprecated use `V1BadgesRequestBody$Outbound` instead. */
112
+ export type Outbound = V1BadgesRequestBody$Outbound;
113
+ }
114
+
115
+ export function v1BadgesRequestBodyToJSON(
116
+ v1BadgesRequestBody: V1BadgesRequestBody,
117
+ ): string {
118
+ return JSON.stringify(
119
+ V1BadgesRequestBody$outboundSchema.parse(v1BadgesRequestBody),
120
+ );
121
+ }
122
+
123
+ export function v1BadgesRequestBodyFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<V1BadgesRequestBody, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => V1BadgesRequestBody$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'V1BadgesRequestBody' from JSON`,
130
+ );
131
+ }
@@ -20,6 +20,7 @@ export type V1BadgesResponseBody = {
20
20
  */
21
21
  dollarSchema?: string | undefined;
22
22
  badges: Array<V1AppBadge> | null;
23
+ pages: number;
23
24
  };
24
25
 
25
26
  /** @internal */
@@ -30,6 +31,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
30
31
  > = z.object({
31
32
  $schema: z.string().optional(),
32
33
  badges: z.nullable(z.array(V1AppBadge$inboundSchema)),
34
+ pages: z.number().int(),
33
35
  }).transform((v) => {
34
36
  return remap$(v, {
35
37
  "$schema": "dollarSchema",
@@ -40,6 +42,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
40
42
  export type V1BadgesResponseBody$Outbound = {
41
43
  $schema?: string | undefined;
42
44
  badges: Array<V1AppBadge$Outbound> | null;
45
+ pages: number;
43
46
  };
44
47
 
45
48
  /** @internal */
@@ -50,6 +53,7 @@ export const V1BadgesResponseBody$outboundSchema: z.ZodType<
50
53
  > = z.object({
51
54
  dollarSchema: z.string().optional(),
52
55
  badges: z.nullable(z.array(V1AppBadge$outboundSchema)),
56
+ pages: z.number().int(),
53
57
  }).transform((v) => {
54
58
  return remap$(v, {
55
59
  dollarSchema: "$schema",
@@ -11,20 +11,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * Which type of vanity to search for
13
13
  */
14
- export const VanityStructType = {
14
+ export const Type = {
15
15
  Steam: "steam",
16
16
  Internal: "internal",
17
17
  } as const;
18
18
  /**
19
19
  * Which type of vanity to search for
20
20
  */
21
- export type VanityStructType = ClosedEnum<typeof VanityStructType>;
21
+ export type Type = ClosedEnum<typeof Type>;
22
22
 
23
23
  export type VanityStruct = {
24
24
  /**
25
25
  * Which type of vanity to search for
26
26
  */
27
- type: VanityStructType;
27
+ type: Type;
28
28
  /**
29
29
  * Vanity to search for
30
30
  */
@@ -32,24 +32,23 @@ export type VanityStruct = {
32
32
  };
33
33
 
34
34
  /** @internal */
35
- export const VanityStructType$inboundSchema: z.ZodNativeEnum<
36
- typeof VanityStructType
37
- > = z.nativeEnum(VanityStructType);
35
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
36
+ Type,
37
+ );
38
38
 
39
39
  /** @internal */
40
- export const VanityStructType$outboundSchema: z.ZodNativeEnum<
41
- typeof VanityStructType
42
- > = VanityStructType$inboundSchema;
40
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
41
+ Type$inboundSchema;
43
42
 
44
43
  /**
45
44
  * @internal
46
45
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
46
  */
48
- export namespace VanityStructType$ {
49
- /** @deprecated use `VanityStructType$inboundSchema` instead. */
50
- export const inboundSchema = VanityStructType$inboundSchema;
51
- /** @deprecated use `VanityStructType$outboundSchema` instead. */
52
- export const outboundSchema = VanityStructType$outboundSchema;
47
+ export namespace Type$ {
48
+ /** @deprecated use `Type$inboundSchema` instead. */
49
+ export const inboundSchema = Type$inboundSchema;
50
+ /** @deprecated use `Type$outboundSchema` instead. */
51
+ export const outboundSchema = Type$outboundSchema;
53
52
  }
54
53
 
55
54
  /** @internal */
@@ -58,7 +57,7 @@ export const VanityStruct$inboundSchema: z.ZodType<
58
57
  z.ZodTypeDef,
59
58
  unknown
60
59
  > = z.object({
61
- type: VanityStructType$inboundSchema,
60
+ type: Type$inboundSchema,
62
61
  value: z.string(),
63
62
  });
64
63
 
@@ -74,7 +73,7 @@ export const VanityStruct$outboundSchema: z.ZodType<
74
73
  z.ZodTypeDef,
75
74
  VanityStruct
76
75
  > = z.object({
77
- type: VanityStructType$outboundSchema,
76
+ type: Type$outboundSchema,
78
77
  value: z.string(),
79
78
  });
80
79
 
@@ -34,7 +34,7 @@ export class Account extends ClientSDK {
34
34
  }
35
35
 
36
36
  async getApps(
37
- request: components.AccountSearch,
37
+ request: components.V1AccountsAppsRequestBody,
38
38
  options?: RequestOptions,
39
39
  ): Promise<operations.AccountV1GetAppsResponse> {
40
40
  return unwrapAsync(accountGetApps(
@@ -54,7 +54,7 @@ export class Account extends ClientSDK {
54
54
  }
55
55
 
56
56
  async getBadges(
57
- request: components.AccountSearch,
57
+ request: components.V1BadgesRequestBody,
58
58
  options?: RequestOptions,
59
59
  ): Promise<operations.AccountV1GetBadgesResponse> {
60
60
  return unwrapAsync(accountGetBadges(
package/src/sdk/data.ts CHANGED
@@ -16,7 +16,7 @@ import { unwrapAsync } from "../types/fp.js";
16
16
 
17
17
  export class Data extends ClientSDK {
18
18
  async getApps(
19
- request: components.AccountSearch,
19
+ request: components.V1AccountsAppsRequestBody,
20
20
  options?: RequestOptions,
21
21
  ): Promise<operations.AccountV1GetAppsResponse> {
22
22
  return unwrapAsync(dataGetApps(
@@ -27,7 +27,7 @@ export class Data extends ClientSDK {
27
27
  }
28
28
 
29
29
  async getBadges(
30
- request: components.AccountSearch,
30
+ request: components.V1BadgesRequestBody,
31
31
  options?: RequestOptions,
32
32
  ): Promise<operations.AccountV1GetBadgesResponse> {
33
33
  return unwrapAsync(dataGetBadges(
package/src/sdk/public.ts CHANGED
@@ -15,7 +15,7 @@ import { unwrapAsync } from "../types/fp.js";
15
15
 
16
16
  export class Public extends ClientSDK {
17
17
  async getApps(
18
- request: components.AccountSearch,
18
+ request: components.V1AccountsAppsRequestBody,
19
19
  options?: RequestOptions,
20
20
  ): Promise<operations.AccountV1GetAppsResponse> {
21
21
  return unwrapAsync(publicGetApps(
@@ -26,7 +26,7 @@ export class Public extends ClientSDK {
26
26
  }
27
27
 
28
28
  async getBadges(
29
- request: components.AccountSearch,
29
+ request: components.V1BadgesRequestBody,
30
30
  options?: RequestOptions,
31
31
  ): Promise<operations.AccountV1GetBadgesResponse> {
32
32
  return unwrapAsync(publicGetBadges(