@steamsets/client-ts 0.5.0 → 0.5.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 (203) hide show
  1. package/README.md +63 -9
  2. package/docs/sdks/account/README.md +225 -76
  3. package/docs/sdks/data/README.md +315 -0
  4. package/docs/sdks/location/README.md +80 -0
  5. package/docs/sdks/public/README.md +241 -0
  6. package/docs/sdks/session/README.md +62 -62
  7. package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
  8. package/funcs/accountAccountV1GetApps.js +4 -0
  9. package/funcs/accountAccountV1GetApps.js.map +1 -1
  10. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
  11. package/funcs/accountAccountV1GetBadges.js +4 -0
  12. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  13. package/funcs/accountAccountV1GetInfo.d.ts +14 -0
  14. package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
  15. package/funcs/accountAccountV1GetInfo.js +96 -0
  16. package/funcs/accountAccountV1GetInfo.js.map +1 -0
  17. package/funcs/accountAccountV1GetStaff.d.ts +13 -0
  18. package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
  19. package/funcs/accountAccountV1GetStaff.js +86 -0
  20. package/funcs/accountAccountV1GetStaff.js.map +1 -0
  21. package/funcs/accountAccountV1SessionCreate.js +1 -1
  22. package/funcs/accountAccountV1SessionLogin.js +2 -2
  23. package/funcs/accountAccountV1SessionLogin.js.map +1 -1
  24. package/funcs/dataAccountV1GetApps.d.ts +13 -0
  25. package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
  26. package/funcs/dataAccountV1GetApps.js +105 -0
  27. package/funcs/dataAccountV1GetApps.js.map +1 -0
  28. package/funcs/dataAccountV1GetBadges.d.ts +13 -0
  29. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
  30. package/funcs/dataAccountV1GetBadges.js +105 -0
  31. package/funcs/dataAccountV1GetBadges.js.map +1 -0
  32. package/funcs/dataAccountV1GetInfo.d.ts +14 -0
  33. package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
  34. package/funcs/dataAccountV1GetInfo.js +96 -0
  35. package/funcs/dataAccountV1GetInfo.js.map +1 -0
  36. package/funcs/dataAccountV1GetStaff.d.ts +13 -0
  37. package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
  38. package/funcs/dataAccountV1GetStaff.js +86 -0
  39. package/funcs/dataAccountV1GetStaff.js.map +1 -0
  40. package/funcs/locationLocation.d.ts +16 -0
  41. package/funcs/locationLocation.d.ts.map +1 -0
  42. package/funcs/locationLocation.js +87 -0
  43. package/funcs/locationLocation.js.map +1 -0
  44. package/funcs/publicAccountV1GetApps.d.ts +13 -0
  45. package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
  46. package/funcs/publicAccountV1GetApps.js +105 -0
  47. package/funcs/publicAccountV1GetApps.js.map +1 -0
  48. package/funcs/publicAccountV1GetBadges.d.ts +13 -0
  49. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
  50. package/funcs/publicAccountV1GetBadges.js +105 -0
  51. package/funcs/publicAccountV1GetBadges.js.map +1 -0
  52. package/funcs/publicAccountV1GetInfo.d.ts +14 -0
  53. package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
  54. package/funcs/publicAccountV1GetInfo.js +96 -0
  55. package/funcs/publicAccountV1GetInfo.js.map +1 -0
  56. package/funcs/sessionAccountV1SessionCreate.js +1 -1
  57. package/funcs/sessionAccountV1SessionLogin.js +2 -2
  58. package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
  59. package/lib/config.d.ts +3 -3
  60. package/lib/config.js +3 -3
  61. package/lib/security.d.ts +6 -1
  62. package/lib/security.d.ts.map +1 -1
  63. package/lib/security.js +5 -0
  64. package/lib/security.js.map +1 -1
  65. package/models/components/accountinfobody.d.ts +379 -0
  66. package/models/components/accountinfobody.d.ts.map +1 -0
  67. package/models/components/accountinfobody.js +254 -0
  68. package/models/components/accountinfobody.js.map +1 -0
  69. package/models/components/bestleaderboardrank.d.ts +110 -0
  70. package/models/components/bestleaderboardrank.d.ts.map +1 -0
  71. package/models/components/bestleaderboardrank.js +89 -0
  72. package/models/components/bestleaderboardrank.js.map +1 -0
  73. package/models/components/city.d.ts +28 -0
  74. package/models/components/city.d.ts.map +1 -0
  75. package/models/components/city.js +50 -0
  76. package/models/components/city.js.map +1 -0
  77. package/models/components/country.d.ts +43 -0
  78. package/models/components/country.d.ts.map +1 -0
  79. package/models/components/country.js +55 -0
  80. package/models/components/country.js.map +1 -0
  81. package/models/components/index.d.ts +9 -0
  82. package/models/components/index.d.ts.map +1 -1
  83. package/models/components/index.js +9 -0
  84. package/models/components/index.js.map +1 -1
  85. package/models/components/leaderboardaccount.d.ts +196 -0
  86. package/models/components/leaderboardaccount.d.ts.map +1 -0
  87. package/models/components/leaderboardaccount.js +128 -0
  88. package/models/components/leaderboardaccount.js.map +1 -0
  89. package/models/components/leaderboardbadgeinfo.d.ts +33 -0
  90. package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
  91. package/models/components/leaderboardbadgeinfo.js +55 -0
  92. package/models/components/leaderboardbadgeinfo.js.map +1 -0
  93. package/models/components/location.d.ts +38 -0
  94. package/models/components/location.d.ts.map +1 -0
  95. package/models/components/location.js +54 -0
  96. package/models/components/location.js.map +1 -0
  97. package/models/components/region.d.ts +38 -0
  98. package/models/components/region.d.ts.map +1 -0
  99. package/models/components/region.js +53 -0
  100. package/models/components/region.js.map +1 -0
  101. package/models/components/role.d.ts +2 -2
  102. package/models/components/role.d.ts.map +1 -1
  103. package/models/components/role.js +4 -17
  104. package/models/components/role.js.map +1 -1
  105. package/models/components/state.d.ts +43 -0
  106. package/models/components/state.d.ts.map +1 -0
  107. package/models/components/state.js +55 -0
  108. package/models/components/state.js.map +1 -0
  109. package/models/errors/errormodel.d.ts +5 -5
  110. package/models/errors/errormodel.d.ts.map +1 -1
  111. package/models/errors/errormodel.js +4 -2
  112. package/models/errors/errormodel.js.map +1 -1
  113. package/models/operations/accountv1getapps.d.ts +2 -0
  114. package/models/operations/accountv1getapps.d.ts.map +1 -1
  115. package/models/operations/accountv1getapps.js +4 -0
  116. package/models/operations/accountv1getapps.js.map +1 -1
  117. package/models/operations/accountv1getbadges.d.ts +2 -0
  118. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  119. package/models/operations/accountv1getbadges.js +4 -0
  120. package/models/operations/accountv1getbadges.js.map +1 -1
  121. package/models/operations/accountv1getinfo.d.ts +31 -0
  122. package/models/operations/accountv1getinfo.d.ts.map +1 -0
  123. package/models/operations/accountv1getinfo.js +68 -0
  124. package/models/operations/accountv1getinfo.js.map +1 -0
  125. package/models/operations/accountv1getstaff.d.ts +31 -0
  126. package/models/operations/accountv1getstaff.d.ts.map +1 -0
  127. package/models/operations/accountv1getstaff.js +72 -0
  128. package/models/operations/accountv1getstaff.js.map +1 -0
  129. package/models/operations/index.d.ts +3 -0
  130. package/models/operations/index.d.ts.map +1 -1
  131. package/models/operations/index.js +3 -0
  132. package/models/operations/index.js.map +1 -1
  133. package/models/operations/location.d.ts +31 -0
  134. package/models/operations/location.d.ts.map +1 -0
  135. package/models/operations/location.js +68 -0
  136. package/models/operations/location.js.map +1 -0
  137. package/package.json +1 -1
  138. package/sdk/account.d.ts +12 -4
  139. package/sdk/account.d.ts.map +1 -1
  140. package/sdk/account.js +20 -6
  141. package/sdk/account.js.map +1 -1
  142. package/sdk/data.d.ts +22 -0
  143. package/sdk/data.d.ts.map +1 -0
  144. package/sdk/data.js +40 -0
  145. package/sdk/data.js.map +1 -0
  146. package/sdk/location.d.ts +12 -0
  147. package/sdk/location.d.ts.map +1 -0
  148. package/sdk/location.js +22 -0
  149. package/sdk/location.js.map +1 -0
  150. package/sdk/public.d.ts +18 -0
  151. package/sdk/public.d.ts.map +1 -0
  152. package/sdk/public.js +33 -0
  153. package/sdk/public.js.map +1 -0
  154. package/sdk/sdk.d.ts +11 -2
  155. package/sdk/sdk.d.ts.map +1 -1
  156. package/sdk/sdk.js +17 -2
  157. package/sdk/sdk.js.map +1 -1
  158. package/sdk/session.d.ts +4 -4
  159. package/sdk/session.d.ts.map +1 -1
  160. package/sdk/session.js +6 -6
  161. package/sdk/session.js.map +1 -1
  162. package/src/funcs/accountAccountV1GetApps.ts +4 -0
  163. package/src/funcs/accountAccountV1GetBadges.ts +4 -0
  164. package/src/funcs/accountAccountV1GetInfo.ts +130 -0
  165. package/src/funcs/accountAccountV1GetStaff.ts +113 -0
  166. package/src/funcs/accountAccountV1SessionCreate.ts +1 -1
  167. package/src/funcs/accountAccountV1SessionLogin.ts +2 -2
  168. package/src/funcs/dataAccountV1GetApps.ts +139 -0
  169. package/src/funcs/dataAccountV1GetBadges.ts +139 -0
  170. package/src/funcs/dataAccountV1GetInfo.ts +130 -0
  171. package/src/funcs/dataAccountV1GetStaff.ts +113 -0
  172. package/src/funcs/locationLocation.ts +114 -0
  173. package/src/funcs/publicAccountV1GetApps.ts +139 -0
  174. package/src/funcs/publicAccountV1GetBadges.ts +139 -0
  175. package/src/funcs/publicAccountV1GetInfo.ts +130 -0
  176. package/src/funcs/sessionAccountV1SessionCreate.ts +1 -1
  177. package/src/funcs/sessionAccountV1SessionLogin.ts +2 -2
  178. package/src/lib/config.ts +3 -3
  179. package/src/lib/security.ts +12 -1
  180. package/src/models/components/accountinfobody.ts +532 -0
  181. package/src/models/components/bestleaderboardrank.ts +102 -0
  182. package/src/models/components/city.ts +40 -0
  183. package/src/models/components/country.ts +55 -0
  184. package/src/models/components/index.ts +9 -0
  185. package/src/models/components/leaderboardaccount.ts +301 -0
  186. package/src/models/components/leaderboardbadgeinfo.ts +58 -0
  187. package/src/models/components/location.ts +55 -0
  188. package/src/models/components/region.ts +53 -0
  189. package/src/models/components/role.ts +14 -27
  190. package/src/models/components/state.ts +55 -0
  191. package/src/models/errors/errormodel.ts +8 -6
  192. package/src/models/operations/accountv1getapps.ts +6 -0
  193. package/src/models/operations/accountv1getbadges.ts +6 -0
  194. package/src/models/operations/accountv1getinfo.ts +68 -0
  195. package/src/models/operations/accountv1getstaff.ts +72 -0
  196. package/src/models/operations/index.ts +3 -0
  197. package/src/models/operations/location.ts +64 -0
  198. package/src/sdk/account.ts +31 -10
  199. package/src/sdk/data.ts +53 -0
  200. package/src/sdk/location.ts +20 -0
  201. package/src/sdk/public.ts +43 -0
  202. package/src/sdk/sdk.ts +21 -3
  203. package/src/sdk/session.ts +10 -10
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { State, State$inboundSchema, State$Outbound, State$outboundSchema } from "./state.js";
6
+ import * as z from "zod";
7
+
8
+ export type Country = {
9
+ /**
10
+ * The code of the country
11
+ */
12
+ code: string;
13
+ /**
14
+ * The name of the country
15
+ */
16
+ name: string;
17
+ /**
18
+ * The states of the country
19
+ */
20
+ states: { [k: string]: State };
21
+ };
22
+
23
+ /** @internal */
24
+ export const Country$inboundSchema: z.ZodType<Country, z.ZodTypeDef, unknown> = z.object({
25
+ code: z.string(),
26
+ name: z.string(),
27
+ states: z.record(State$inboundSchema),
28
+ });
29
+
30
+ /** @internal */
31
+ export type Country$Outbound = {
32
+ code: string;
33
+ name: string;
34
+ states: { [k: string]: State$Outbound };
35
+ };
36
+
37
+ /** @internal */
38
+ export const Country$outboundSchema: z.ZodType<Country$Outbound, z.ZodTypeDef, Country> = z.object({
39
+ code: z.string(),
40
+ name: z.string(),
41
+ states: z.record(State$outboundSchema),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace Country$ {
49
+ /** @deprecated use `Country$inboundSchema` instead. */
50
+ export const inboundSchema = Country$inboundSchema;
51
+ /** @deprecated use `Country$outboundSchema` instead. */
52
+ export const outboundSchema = Country$outboundSchema;
53
+ /** @deprecated use `Country$Outbound` instead. */
54
+ export type Outbound = Country$Outbound;
55
+ }
@@ -2,20 +2,29 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ export * from "./accountinfobody.js";
5
6
  export * from "./accountsearch.js";
6
7
  export * from "./accountsearchidstruct.js";
7
8
  export * from "./accountsearchvanitystruct.js";
9
+ export * from "./bestleaderboardrank.js";
10
+ export * from "./city.js";
8
11
  export * from "./connection.js";
12
+ export * from "./country.js";
9
13
  export * from "./emailnotification.js";
10
14
  export * from "./errordetail.js";
11
15
  export * from "./httpmetadata.js";
12
16
  export * from "./image.js";
13
17
  export * from "./item.js";
18
+ export * from "./leaderboardaccount.js";
19
+ export * from "./leaderboardbadgeinfo.js";
20
+ export * from "./location.js";
14
21
  export * from "./loginrequestbody.js";
22
+ export * from "./region.js";
15
23
  export * from "./resource.js";
16
24
  export * from "./role.js";
17
25
  export * from "./security.js";
18
26
  export * from "./session.js";
27
+ export * from "./state.js";
19
28
  export * from "./v1accountsappsresponsebody.js";
20
29
  export * from "./v1app.js";
21
30
  export * from "./v1badge.js";
@@ -0,0 +1,301 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ LeaderboardBadgeInfo,
7
+ LeaderboardBadgeInfo$inboundSchema,
8
+ LeaderboardBadgeInfo$Outbound,
9
+ LeaderboardBadgeInfo$outboundSchema,
10
+ } from "./leaderboardbadgeinfo.js";
11
+ import {
12
+ Location,
13
+ Location$inboundSchema,
14
+ Location$Outbound,
15
+ Location$outboundSchema,
16
+ } from "./location.js";
17
+ import { Role, Role$inboundSchema, Role$Outbound, Role$outboundSchema } from "./role.js";
18
+ import * as z from "zod";
19
+
20
+ export type LeaderboardAccount = {
21
+ /**
22
+ * The cost of an app
23
+ */
24
+ appCost: number;
25
+ /**
26
+ * The playtime of the account, incase of an app leaderboard
27
+ */
28
+ appPlaytime?: number | null | undefined;
29
+ /**
30
+ * The number of apps the account has
31
+ */
32
+ apps: number;
33
+ /**
34
+ * The avatar hash of the account
35
+ */
36
+ avatar: string;
37
+ /**
38
+ * The average playtime of the account
39
+ */
40
+ averagePlaytime: number;
41
+ /**
42
+ * The number of awards the account has
43
+ */
44
+ awardsGiven: number;
45
+ /**
46
+ * The number of awards the account has
47
+ */
48
+ awardsReceived: number;
49
+ badgeInfo?: LeaderboardBadgeInfo | undefined;
50
+ /**
51
+ * The number of badges the account has
52
+ */
53
+ badges: number;
54
+ /**
55
+ * The number of bans
56
+ */
57
+ bans: number;
58
+ city?: Location | undefined;
59
+ country?: Location | undefined;
60
+ /**
61
+ * The time the account was created
62
+ */
63
+ createdAt: Date;
64
+ /**
65
+ * The economy ban of the account
66
+ */
67
+ economyBan: string;
68
+ /**
69
+ * The cost of a foil badge
70
+ */
71
+ foilBadgeCost: number;
72
+ /**
73
+ * The number of foil badges the account has
74
+ */
75
+ foilBadges: number;
76
+ /**
77
+ * The number of friends the account has
78
+ */
79
+ friends: number;
80
+ /**
81
+ * The number of game bans
82
+ */
83
+ gameBans: number;
84
+ /**
85
+ * Whether the account is hidden in the leaderboards
86
+ */
87
+ hidden: boolean;
88
+ /**
89
+ * The level of the account
90
+ */
91
+ level: number;
92
+ /**
93
+ * The number of limited apps the account has
94
+ */
95
+ limitedApps: number;
96
+ /**
97
+ * The name of the account
98
+ */
99
+ name: string;
100
+ /**
101
+ * The cost of a normal badge
102
+ */
103
+ normalBadgeCost: number;
104
+ /**
105
+ * The number of normal badges the account has
106
+ */
107
+ normalBadges: number;
108
+ /**
109
+ * The playtime of the account
110
+ */
111
+ playtime: number;
112
+ /**
113
+ * The number of points the account has
114
+ */
115
+ pointsGiven: number;
116
+ /**
117
+ * The number of points the account has
118
+ */
119
+ pointsReceived: number;
120
+ /**
121
+ * The privacy of the account
122
+ */
123
+ privacy: string;
124
+ region?: Location | undefined;
125
+ /**
126
+ * The roles of the account
127
+ */
128
+ roles: Array<Role> | null;
129
+ state?: Location | undefined;
130
+ /**
131
+ * The steam id
132
+ */
133
+ steamId: string;
134
+ /**
135
+ * The steam sets score
136
+ */
137
+ steamSetsScore: number;
138
+ /**
139
+ * The vanity of the account
140
+ */
141
+ steamSetsVanity: string;
142
+ /**
143
+ * The vanity of the account
144
+ */
145
+ steamVanity: string;
146
+ /**
147
+ * The number of vac bans
148
+ */
149
+ vacBans: number;
150
+ /**
151
+ * The number of xp the account has
152
+ */
153
+ xp: number;
154
+ };
155
+
156
+ /** @internal */
157
+ export const LeaderboardAccount$inboundSchema: z.ZodType<
158
+ LeaderboardAccount,
159
+ z.ZodTypeDef,
160
+ unknown
161
+ > = z.object({
162
+ appCost: z.number().int(),
163
+ appPlaytime: z.nullable(z.number().int()).optional(),
164
+ apps: z.number().int(),
165
+ avatar: z.string(),
166
+ averagePlaytime: z.number().int(),
167
+ awardsGiven: z.number().int(),
168
+ awardsReceived: z.number().int(),
169
+ badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
170
+ badges: z.number().int(),
171
+ bans: z.number().int(),
172
+ city: Location$inboundSchema.optional(),
173
+ country: Location$inboundSchema.optional(),
174
+ createdAt: z
175
+ .string()
176
+ .datetime({ offset: true })
177
+ .transform((v) => new Date(v)),
178
+ economyBan: z.string(),
179
+ foilBadgeCost: z.number().int(),
180
+ foilBadges: z.number().int(),
181
+ friends: z.number().int(),
182
+ gameBans: z.number().int(),
183
+ hidden: z.boolean(),
184
+ level: z.number().int(),
185
+ limitedApps: z.number().int(),
186
+ name: z.string(),
187
+ normalBadgeCost: z.number().int(),
188
+ normalBadges: z.number().int(),
189
+ playtime: z.number().int(),
190
+ pointsGiven: z.number().int(),
191
+ pointsReceived: z.number().int(),
192
+ privacy: z.string(),
193
+ region: Location$inboundSchema.optional(),
194
+ roles: z.nullable(z.array(Role$inboundSchema)),
195
+ state: Location$inboundSchema.optional(),
196
+ steamId: z.string(),
197
+ steamSetsScore: z.number().int(),
198
+ steamSetsVanity: z.string(),
199
+ steamVanity: z.string(),
200
+ vacBans: z.number().int(),
201
+ xp: z.number().int(),
202
+ });
203
+
204
+ /** @internal */
205
+ export type LeaderboardAccount$Outbound = {
206
+ appCost: number;
207
+ appPlaytime?: number | null | undefined;
208
+ apps: number;
209
+ avatar: string;
210
+ averagePlaytime: number;
211
+ awardsGiven: number;
212
+ awardsReceived: number;
213
+ badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
214
+ badges: number;
215
+ bans: number;
216
+ city?: Location$Outbound | undefined;
217
+ country?: Location$Outbound | undefined;
218
+ createdAt: string;
219
+ economyBan: string;
220
+ foilBadgeCost: number;
221
+ foilBadges: number;
222
+ friends: number;
223
+ gameBans: number;
224
+ hidden: boolean;
225
+ level: number;
226
+ limitedApps: number;
227
+ name: string;
228
+ normalBadgeCost: number;
229
+ normalBadges: number;
230
+ playtime: number;
231
+ pointsGiven: number;
232
+ pointsReceived: number;
233
+ privacy: string;
234
+ region?: Location$Outbound | undefined;
235
+ roles: Array<Role$Outbound> | null;
236
+ state?: Location$Outbound | undefined;
237
+ steamId: string;
238
+ steamSetsScore: number;
239
+ steamSetsVanity: string;
240
+ steamVanity: string;
241
+ vacBans: number;
242
+ xp: number;
243
+ };
244
+
245
+ /** @internal */
246
+ export const LeaderboardAccount$outboundSchema: z.ZodType<
247
+ LeaderboardAccount$Outbound,
248
+ z.ZodTypeDef,
249
+ LeaderboardAccount
250
+ > = z.object({
251
+ appCost: z.number().int(),
252
+ appPlaytime: z.nullable(z.number().int()).optional(),
253
+ apps: z.number().int(),
254
+ avatar: z.string(),
255
+ averagePlaytime: z.number().int(),
256
+ awardsGiven: z.number().int(),
257
+ awardsReceived: z.number().int(),
258
+ badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
259
+ badges: z.number().int(),
260
+ bans: z.number().int(),
261
+ city: Location$outboundSchema.optional(),
262
+ country: Location$outboundSchema.optional(),
263
+ createdAt: z.date().transform((v) => v.toISOString()),
264
+ economyBan: z.string(),
265
+ foilBadgeCost: z.number().int(),
266
+ foilBadges: z.number().int(),
267
+ friends: z.number().int(),
268
+ gameBans: z.number().int(),
269
+ hidden: z.boolean(),
270
+ level: z.number().int(),
271
+ limitedApps: z.number().int(),
272
+ name: z.string(),
273
+ normalBadgeCost: z.number().int(),
274
+ normalBadges: z.number().int(),
275
+ playtime: z.number().int(),
276
+ pointsGiven: z.number().int(),
277
+ pointsReceived: z.number().int(),
278
+ privacy: z.string(),
279
+ region: Location$outboundSchema.optional(),
280
+ roles: z.nullable(z.array(Role$outboundSchema)),
281
+ state: Location$outboundSchema.optional(),
282
+ steamId: z.string(),
283
+ steamSetsScore: z.number().int(),
284
+ steamSetsVanity: z.string(),
285
+ steamVanity: z.string(),
286
+ vacBans: z.number().int(),
287
+ xp: z.number().int(),
288
+ });
289
+
290
+ /**
291
+ * @internal
292
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
293
+ */
294
+ export namespace LeaderboardAccount$ {
295
+ /** @deprecated use `LeaderboardAccount$inboundSchema` instead. */
296
+ export const inboundSchema = LeaderboardAccount$inboundSchema;
297
+ /** @deprecated use `LeaderboardAccount$outboundSchema` instead. */
298
+ export const outboundSchema = LeaderboardAccount$outboundSchema;
299
+ /** @deprecated use `LeaderboardAccount$Outbound` instead. */
300
+ export type Outbound = LeaderboardAccount$Outbound;
301
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardBadgeInfo = {
8
+ /**
9
+ * The time the badge was completed
10
+ */
11
+ completionTime: Date;
12
+ /**
13
+ * The level of the badge
14
+ */
15
+ level: number;
16
+ };
17
+
18
+ /** @internal */
19
+ export const LeaderboardBadgeInfo$inboundSchema: z.ZodType<
20
+ LeaderboardBadgeInfo,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ completionTime: z
25
+ .string()
26
+ .datetime({ offset: true })
27
+ .transform((v) => new Date(v)),
28
+ level: z.number().int(),
29
+ });
30
+
31
+ /** @internal */
32
+ export type LeaderboardBadgeInfo$Outbound = {
33
+ completionTime: string;
34
+ level: number;
35
+ };
36
+
37
+ /** @internal */
38
+ export const LeaderboardBadgeInfo$outboundSchema: z.ZodType<
39
+ LeaderboardBadgeInfo$Outbound,
40
+ z.ZodTypeDef,
41
+ LeaderboardBadgeInfo
42
+ > = z.object({
43
+ completionTime: z.date().transform((v) => v.toISOString()),
44
+ level: z.number().int(),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace LeaderboardBadgeInfo$ {
52
+ /** @deprecated use `LeaderboardBadgeInfo$inboundSchema` instead. */
53
+ export const inboundSchema = LeaderboardBadgeInfo$inboundSchema;
54
+ /** @deprecated use `LeaderboardBadgeInfo$outboundSchema` instead. */
55
+ export const outboundSchema = LeaderboardBadgeInfo$outboundSchema;
56
+ /** @deprecated use `LeaderboardBadgeInfo$Outbound` instead. */
57
+ export type Outbound = LeaderboardBadgeInfo$Outbound;
58
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type Location = {
8
+ /**
9
+ * The code of the location
10
+ */
11
+ code?: string | null | undefined;
12
+ /**
13
+ * The id of the location
14
+ */
15
+ id: number;
16
+ /**
17
+ * The name of the location
18
+ */
19
+ name: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const Location$inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown> = z.object({
24
+ code: z.nullable(z.string()).optional(),
25
+ id: z.number().int(),
26
+ name: z.string(),
27
+ });
28
+
29
+ /** @internal */
30
+ export type Location$Outbound = {
31
+ code?: string | null | undefined;
32
+ id: number;
33
+ name: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const Location$outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location> =
38
+ z.object({
39
+ code: z.nullable(z.string()).optional(),
40
+ id: z.number().int(),
41
+ name: z.string(),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace Location$ {
49
+ /** @deprecated use `Location$inboundSchema` instead. */
50
+ export const inboundSchema = Location$inboundSchema;
51
+ /** @deprecated use `Location$outboundSchema` instead. */
52
+ export const outboundSchema = Location$outboundSchema;
53
+ /** @deprecated use `Location$Outbound` instead. */
54
+ export type Outbound = Location$Outbound;
55
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ Country,
7
+ Country$inboundSchema,
8
+ Country$Outbound,
9
+ Country$outboundSchema,
10
+ } from "./country.js";
11
+ import * as z from "zod";
12
+
13
+ export type Region = {
14
+ /**
15
+ * The countries of the region
16
+ */
17
+ countries: { [k: string]: Country };
18
+ /**
19
+ * The name of the region
20
+ */
21
+ name: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const Region$inboundSchema: z.ZodType<Region, z.ZodTypeDef, unknown> = z.object({
26
+ countries: z.record(Country$inboundSchema),
27
+ name: z.string(),
28
+ });
29
+
30
+ /** @internal */
31
+ export type Region$Outbound = {
32
+ countries: { [k: string]: Country$Outbound };
33
+ name: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const Region$outboundSchema: z.ZodType<Region$Outbound, z.ZodTypeDef, Region> = z.object({
38
+ countries: z.record(Country$outboundSchema),
39
+ name: z.string(),
40
+ });
41
+
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ export namespace Region$ {
47
+ /** @deprecated use `Region$inboundSchema` instead. */
48
+ export const inboundSchema = Region$inboundSchema;
49
+ /** @deprecated use `Region$outboundSchema` instead. */
50
+ export const outboundSchema = Region$outboundSchema;
51
+ /** @deprecated use `Region$Outbound` instead. */
52
+ export type Outbound = Region$Outbound;
53
+ }
@@ -2,14 +2,13 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
5
  import * as z from "zod";
7
6
 
8
7
  export type Role = {
9
8
  /**
10
9
  * The role color
11
10
  */
12
- color: string;
11
+ colorr: string;
13
12
  /**
14
13
  * The role icon
15
14
  */
@@ -22,40 +21,28 @@ export type Role = {
22
21
  };
23
22
 
24
23
  /** @internal */
25
- export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
26
- .object({
27
- Color: z.string(),
28
- icon: z.string(),
29
- name: z.string(),
30
- role: z.string(),
31
- })
32
- .transform((v) => {
33
- return remap$(v, {
34
- Color: "color",
35
- });
36
- });
24
+ export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z.object({
25
+ colorr: z.string(),
26
+ icon: z.string(),
27
+ name: z.string(),
28
+ role: z.string(),
29
+ });
37
30
 
38
31
  /** @internal */
39
32
  export type Role$Outbound = {
40
- Color: string;
33
+ colorr: string;
41
34
  icon: string;
42
35
  name: string;
43
36
  role: string;
44
37
  };
45
38
 
46
39
  /** @internal */
47
- export const Role$outboundSchema: z.ZodType<Role$Outbound, z.ZodTypeDef, Role> = z
48
- .object({
49
- color: z.string(),
50
- icon: z.string(),
51
- name: z.string(),
52
- role: z.string(),
53
- })
54
- .transform((v) => {
55
- return remap$(v, {
56
- color: "Color",
57
- });
58
- });
40
+ export const Role$outboundSchema: z.ZodType<Role$Outbound, z.ZodTypeDef, Role> = z.object({
41
+ colorr: z.string(),
42
+ icon: z.string(),
43
+ name: z.string(),
44
+ role: z.string(),
45
+ });
59
46
 
60
47
  /**
61
48
  * @internal
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { City, City$inboundSchema, City$Outbound, City$outboundSchema } from "./city.js";
6
+ import * as z from "zod";
7
+
8
+ export type State = {
9
+ /**
10
+ * The cities of the state
11
+ */
12
+ cities: { [k: string]: City };
13
+ /**
14
+ * The code of the state
15
+ */
16
+ code: string;
17
+ /**
18
+ * The name of the state
19
+ */
20
+ name: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export const State$inboundSchema: z.ZodType<State, z.ZodTypeDef, unknown> = z.object({
25
+ cities: z.record(City$inboundSchema),
26
+ code: z.string(),
27
+ name: z.string(),
28
+ });
29
+
30
+ /** @internal */
31
+ export type State$Outbound = {
32
+ cities: { [k: string]: City$Outbound };
33
+ code: string;
34
+ name: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const State$outboundSchema: z.ZodType<State$Outbound, z.ZodTypeDef, State> = z.object({
39
+ cities: z.record(City$outboundSchema),
40
+ code: z.string(),
41
+ name: z.string(),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace State$ {
49
+ /** @deprecated use `State$inboundSchema` instead. */
50
+ export const inboundSchema = State$inboundSchema;
51
+ /** @deprecated use `State$outboundSchema` instead. */
52
+ export const outboundSchema = State$outboundSchema;
53
+ /** @deprecated use `State$Outbound` instead. */
54
+ export type Outbound = State$Outbound;
55
+ }