@steamsets/client-ts 0.11.8 → 0.11.9

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 (151) hide show
  1. package/README.md +2 -2
  2. package/docs/sdks/account/README.md +19 -9
  3. package/docs/sdks/data/README.md +3 -1
  4. package/docs/sdks/leaderboard/README.md +16 -8
  5. package/docs/sdks/public/README.md +3 -1
  6. package/funcs/accountAccountV1Queue.d.ts +1 -1
  7. package/funcs/accountAccountV1Queue.d.ts.map +1 -1
  8. package/funcs/accountAccountV1Queue.js +1 -1
  9. package/funcs/accountAccountV1Queue.js.map +1 -1
  10. package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  11. package/funcs/accountAccountV1SettingsSendEmailVerification.js +1 -1
  12. package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
  13. package/funcs/accountLeaderboardV1GetAccount.d.ts +1 -1
  14. package/funcs/accountLeaderboardV1GetAccount.js +1 -1
  15. package/funcs/dataAccountV1Queue.d.ts +1 -1
  16. package/funcs/dataAccountV1Queue.d.ts.map +1 -1
  17. package/funcs/dataAccountV1Queue.js +1 -1
  18. package/funcs/dataAccountV1Queue.js.map +1 -1
  19. package/funcs/leaderboardLeaderboardV1GetAccount.d.ts +1 -1
  20. package/funcs/leaderboardLeaderboardV1GetAccount.js +1 -1
  21. package/funcs/publicAccountV1Queue.d.ts +1 -1
  22. package/funcs/publicAccountV1Queue.d.ts.map +1 -1
  23. package/funcs/publicAccountV1Queue.js +1 -1
  24. package/funcs/publicAccountV1Queue.js.map +1 -1
  25. package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  26. package/funcs/settingsAccountV1SettingsSendEmailVerification.js +1 -1
  27. package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
  28. package/lib/config.d.ts +2 -2
  29. package/lib/config.js +2 -2
  30. package/models/components/idstruct.d.ts +33 -0
  31. package/models/components/idstruct.d.ts.map +1 -0
  32. package/models/components/{leaderboardapp.js → idstruct.js} +17 -11
  33. package/models/components/idstruct.js.map +1 -0
  34. package/models/components/index.d.ts +9 -3
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +9 -3
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/leaderboardaccount.d.ts +0 -8
  39. package/models/components/leaderboardaccount.d.ts.map +1 -1
  40. package/models/components/leaderboardaccount.js +0 -5
  41. package/models/components/leaderboardaccount.js.map +1 -1
  42. package/models/components/leaderboardaccountbadgeinfo.d.ts +38 -0
  43. package/models/components/leaderboardaccountbadgeinfo.d.ts.map +1 -0
  44. package/models/components/{leaderboardbadgeinfo.js → leaderboardaccountbadgeinfo.js} +13 -11
  45. package/models/components/leaderboardaccountbadgeinfo.js.map +1 -0
  46. package/models/components/v1accountfriend.d.ts +0 -8
  47. package/models/components/v1accountfriend.d.ts.map +1 -1
  48. package/models/components/v1accountfriend.js +0 -5
  49. package/models/components/v1accountfriend.js.map +1 -1
  50. package/models/components/v1accountleaderboardaccount.d.ts +3 -8
  51. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  52. package/models/components/v1accountleaderboardaccount.js +3 -5
  53. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  54. package/models/components/v1accountleaderboardappsearch.d.ts +28 -0
  55. package/models/components/v1accountleaderboardappsearch.d.ts.map +1 -0
  56. package/models/components/{v1accountleaderboardbadgeinfo.js → v1accountleaderboardappsearch.js} +15 -11
  57. package/models/components/v1accountleaderboardappsearch.js.map +1 -0
  58. package/models/components/v1accountleaderboardbadgesearch.d.ts +33 -0
  59. package/models/components/v1accountleaderboardbadgesearch.d.ts.map +1 -0
  60. package/models/components/v1accountleaderboardbadgesearch.js +52 -0
  61. package/models/components/v1accountleaderboardbadgesearch.js.map +1 -0
  62. package/models/components/v1accountleaderboardrequestbody.d.ts +6 -15
  63. package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
  64. package/models/components/v1accountleaderboardrequestbody.js +6 -6
  65. package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
  66. package/models/components/v1accountleaderboardresponsebody.d.ts +9 -9
  67. package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
  68. package/models/components/v1accountleaderboardresponsebody.js +10 -9
  69. package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
  70. package/models/components/v1accountqueuerequestbody.d.ts +34 -0
  71. package/models/components/v1accountqueuerequestbody.d.ts.map +1 -0
  72. package/models/components/v1accountqueuerequestbody.js +56 -0
  73. package/models/components/v1accountqueuerequestbody.js.map +1 -0
  74. package/models/components/v1getsettingsbody.d.ts +3 -3
  75. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  76. package/models/components/v1getsettingsbody.js +2 -2
  77. package/models/components/v1getsettingsbody.js.map +1 -1
  78. package/models/components/v1leaderboardappinfo.d.ts +43 -0
  79. package/models/components/v1leaderboardappinfo.d.ts.map +1 -0
  80. package/models/components/v1leaderboardappinfo.js +56 -0
  81. package/models/components/v1leaderboardappinfo.js.map +1 -0
  82. package/models/components/v1leaderboardbadgeinfo.d.ts +58 -0
  83. package/models/components/v1leaderboardbadgeinfo.d.ts.map +1 -0
  84. package/models/components/v1leaderboardbadgeinfo.js +62 -0
  85. package/models/components/v1leaderboardbadgeinfo.js.map +1 -0
  86. package/models/components/v1leaderboardlocationinfo.d.ts +48 -0
  87. package/models/components/v1leaderboardlocationinfo.d.ts.map +1 -0
  88. package/models/components/v1leaderboardlocationinfo.js +58 -0
  89. package/models/components/v1leaderboardlocationinfo.js.map +1 -0
  90. package/models/components/vanitystruct.d.ts +65 -0
  91. package/models/components/vanitystruct.d.ts.map +1 -0
  92. package/models/components/vanitystruct.js +74 -0
  93. package/models/components/vanitystruct.js.map +1 -0
  94. package/models/operations/accountv1settingssendemailverification.d.ts +6 -0
  95. package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -1
  96. package/models/operations/accountv1settingssendemailverification.js +4 -0
  97. package/models/operations/accountv1settingssendemailverification.js.map +1 -1
  98. package/package.json +1 -1
  99. package/sdk/account.d.ts +2 -2
  100. package/sdk/account.d.ts.map +1 -1
  101. package/sdk/account.js +1 -1
  102. package/sdk/account.js.map +1 -1
  103. package/sdk/data.d.ts +1 -1
  104. package/sdk/data.d.ts.map +1 -1
  105. package/sdk/data.js.map +1 -1
  106. package/sdk/leaderboard.d.ts +1 -1
  107. package/sdk/leaderboard.js +1 -1
  108. package/sdk/public.d.ts +1 -1
  109. package/sdk/public.d.ts.map +1 -1
  110. package/sdk/public.js.map +1 -1
  111. package/src/funcs/accountAccountV1Queue.ts +2 -2
  112. package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +1 -0
  113. package/src/funcs/accountLeaderboardV1GetAccount.ts +1 -1
  114. package/src/funcs/dataAccountV1Queue.ts +2 -2
  115. package/src/funcs/leaderboardLeaderboardV1GetAccount.ts +1 -1
  116. package/src/funcs/publicAccountV1Queue.ts +2 -2
  117. package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +1 -0
  118. package/src/lib/config.ts +2 -2
  119. package/src/models/components/idstruct.ts +55 -0
  120. package/src/models/components/index.ts +9 -3
  121. package/src/models/components/leaderboardaccount.ts +0 -17
  122. package/src/models/components/leaderboardaccountbadgeinfo.ts +64 -0
  123. package/src/models/components/v1accountfriend.ts +0 -17
  124. package/src/models/components/v1accountleaderboardaccount.ts +9 -16
  125. package/src/models/components/v1accountleaderboardappsearch.ts +48 -0
  126. package/src/models/components/v1accountleaderboardbadgesearch.ts +55 -0
  127. package/src/models/components/v1accountleaderboardrequestbody.ts +20 -21
  128. package/src/models/components/v1accountleaderboardresponsebody.ts +29 -28
  129. package/src/models/components/v1accountqueuerequestbody.ts +68 -0
  130. package/src/models/components/v1getsettingsbody.ts +7 -5
  131. package/src/models/components/v1leaderboardappinfo.ts +69 -0
  132. package/src/models/components/v1leaderboardbadgeinfo.ts +90 -0
  133. package/src/models/components/v1leaderboardlocationinfo.ts +76 -0
  134. package/src/models/components/vanitystruct.ts +89 -0
  135. package/src/models/operations/accountv1settingssendemailverification.ts +6 -0
  136. package/src/sdk/account.ts +2 -2
  137. package/src/sdk/data.ts +1 -1
  138. package/src/sdk/leaderboard.ts +1 -1
  139. package/src/sdk/public.ts +1 -1
  140. package/models/components/leaderboardapp.d.ts +0 -21
  141. package/models/components/leaderboardapp.d.ts.map +0 -1
  142. package/models/components/leaderboardapp.js.map +0 -1
  143. package/models/components/leaderboardbadgeinfo.d.ts +0 -33
  144. package/models/components/leaderboardbadgeinfo.d.ts.map +0 -1
  145. package/models/components/leaderboardbadgeinfo.js.map +0 -1
  146. package/models/components/v1accountleaderboardbadgeinfo.d.ts +0 -21
  147. package/models/components/v1accountleaderboardbadgeinfo.d.ts.map +0 -1
  148. package/models/components/v1accountleaderboardbadgeinfo.js.map +0 -1
  149. package/src/models/components/leaderboardapp.ts +0 -37
  150. package/src/models/components/leaderboardbadgeinfo.ts +0 -57
  151. package/src/models/components/v1accountleaderboardbadgeinfo.ts +0 -37
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  */
29
29
  export async function accountAccountV1Queue(
30
30
  client: SteamSetsCore,
31
- request: components.AccountSearch,
31
+ request: components.V1AccountQueueRequestBody,
32
32
  options?: RequestOptions,
33
33
  ): Promise<
34
34
  Result<
@@ -45,7 +45,7 @@ export async function accountAccountV1Queue(
45
45
  > {
46
46
  const parsed = safeParse(
47
47
  request,
48
- (value) => components.AccountSearch$outboundSchema.parse(value),
48
+ (value) => components.V1AccountQueueRequestBody$outboundSchema.parse(value),
49
49
  "Input validation failed",
50
50
  );
51
51
  if (!parsed.ok) {
@@ -119,6 +119,7 @@ export async function accountAccountV1SettingsSendEmailVerification(
119
119
  M.nil(
120
120
  204,
121
121
  operations.AccountV1SettingsSendEmailVerificationResponse$inboundSchema,
122
+ { hdrs: true },
122
123
  ),
123
124
  M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
124
125
  ctype: "application/problem+json",
@@ -24,7 +24,7 @@ import * as operations from "../models/operations/index.js";
24
24
  import { Result } from "../types/fp.js";
25
25
 
26
26
  /**
27
- * Get an leaderboard for accounts
27
+ * Get a leaderboard for accounts
28
28
  */
29
29
  export async function accountLeaderboardV1GetAccount(
30
30
  client: SteamSetsCore,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  */
29
29
  export async function dataAccountV1Queue(
30
30
  client: SteamSetsCore,
31
- request: components.AccountSearch,
31
+ request: components.V1AccountQueueRequestBody,
32
32
  options?: RequestOptions,
33
33
  ): Promise<
34
34
  Result<
@@ -45,7 +45,7 @@ export async function dataAccountV1Queue(
45
45
  > {
46
46
  const parsed = safeParse(
47
47
  request,
48
- (value) => components.AccountSearch$outboundSchema.parse(value),
48
+ (value) => components.V1AccountQueueRequestBody$outboundSchema.parse(value),
49
49
  "Input validation failed",
50
50
  );
51
51
  if (!parsed.ok) {
@@ -24,7 +24,7 @@ import * as operations from "../models/operations/index.js";
24
24
  import { Result } from "../types/fp.js";
25
25
 
26
26
  /**
27
- * Get an leaderboard for accounts
27
+ * Get a leaderboard for accounts
28
28
  */
29
29
  export async function leaderboardLeaderboardV1GetAccount(
30
30
  client: SteamSetsCore,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  */
29
29
  export async function publicAccountV1Queue(
30
30
  client: SteamSetsCore,
31
- request: components.AccountSearch,
31
+ request: components.V1AccountQueueRequestBody,
32
32
  options?: RequestOptions,
33
33
  ): Promise<
34
34
  Result<
@@ -45,7 +45,7 @@ export async function publicAccountV1Queue(
45
45
  > {
46
46
  const parsed = safeParse(
47
47
  request,
48
- (value) => components.AccountSearch$outboundSchema.parse(value),
48
+ (value) => components.V1AccountQueueRequestBody$outboundSchema.parse(value),
49
49
  "Input validation failed",
50
50
  );
51
51
  if (!parsed.ok) {
@@ -119,6 +119,7 @@ export async function settingsAccountV1SettingsSendEmailVerification(
119
119
  M.nil(
120
120
  204,
121
121
  operations.AccountV1SettingsSendEmailVerificationResponse$inboundSchema,
122
+ { hdrs: true },
122
123
  ),
123
124
  M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
124
125
  ctype: "application/problem+json",
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.11.8",
58
+ sdkVersion: "0.11.9",
59
59
  genVersion: "2.429.0",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.11.8 2.429.0 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.11.9 2.429.0 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -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 IDStruct = {
8
+ /**
9
+ * Account ID to search for
10
+ */
11
+ accountId?: number | undefined;
12
+ /**
13
+ * SteamID64 to search for
14
+ */
15
+ steamId64?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const IDStruct$inboundSchema: z.ZodType<
20
+ IDStruct,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ accountId: z.number().int().optional(),
25
+ steamId64: z.string().optional(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type IDStruct$Outbound = {
30
+ accountId?: number | undefined;
31
+ steamId64?: string | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const IDStruct$outboundSchema: z.ZodType<
36
+ IDStruct$Outbound,
37
+ z.ZodTypeDef,
38
+ IDStruct
39
+ > = z.object({
40
+ accountId: z.number().int().optional(),
41
+ steamId64: z.string().optional(),
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 IDStruct$ {
49
+ /** @deprecated use `IDStruct$inboundSchema` instead. */
50
+ export const inboundSchema = IDStruct$inboundSchema;
51
+ /** @deprecated use `IDStruct$outboundSchema` instead. */
52
+ export const outboundSchema = IDStruct$outboundSchema;
53
+ /** @deprecated use `IDStruct$Outbound` instead. */
54
+ export type Outbound = IDStruct$Outbound;
55
+ }
@@ -21,10 +21,10 @@ export * from "./developerapp.js";
21
21
  export * from "./emailnotification.js";
22
22
  export * from "./errordetail.js";
23
23
  export * from "./httpmetadata.js";
24
+ export * from "./idstruct.js";
24
25
  export * from "./image.js";
25
26
  export * from "./leaderboardaccount.js";
26
- export * from "./leaderboardapp.js";
27
- export * from "./leaderboardbadgeinfo.js";
27
+ export * from "./leaderboardaccountbadgeinfo.js";
28
28
  export * from "./location.js";
29
29
  export * from "./loginrequestbody.js";
30
30
  export * from "./region.js";
@@ -45,12 +45,14 @@ export * from "./v1accountdeveloperappupdateresponsebody.js";
45
45
  export * from "./v1accountfriend.js";
46
46
  export * from "./v1accountfriendsresponsebody.js";
47
47
  export * from "./v1accountleaderboardaccount.js";
48
- export * from "./v1accountleaderboardbadgeinfo.js";
48
+ export * from "./v1accountleaderboardappsearch.js";
49
+ export * from "./v1accountleaderboardbadgesearch.js";
49
50
  export * from "./v1accountleaderboardhistoryresponsebody.js";
50
51
  export * from "./v1accountleaderboardpreviewrequestbody.js";
51
52
  export * from "./v1accountleaderboardpreviewresponsebody.js";
52
53
  export * from "./v1accountleaderboardrequestbody.js";
53
54
  export * from "./v1accountleaderboardresponsebody.js";
55
+ export * from "./v1accountqueuerequestbody.js";
54
56
  export * from "./v1accountsappsresponsebody.js";
55
57
  export * from "./v1appbadge.js";
56
58
  export * from "./v1appdetail.js";
@@ -75,9 +77,12 @@ export * from "./v1developerappcreaterequestbody.js";
75
77
  export * from "./v1developerappcreateresponsebody.js";
76
78
  export * from "./v1getsessionbody.js";
77
79
  export * from "./v1getsettingsbody.js";
80
+ export * from "./v1leaderboardappinfo.js";
78
81
  export * from "./v1leaderboardbadge.js";
82
+ export * from "./v1leaderboardbadgeinfo.js";
79
83
  export * from "./v1leaderboardbadgeresponsebody.js";
80
84
  export * from "./v1leaderboardlocation.js";
85
+ export * from "./v1leaderboardlocationinfo.js";
81
86
  export * from "./v1livenessresponsebody.js";
82
87
  export * from "./v1loginresponsebody.js";
83
88
  export * from "./v1updateconnectionrequestbody.js";
@@ -92,3 +97,4 @@ export * from "./v1verifyconnectionrequestbody.js";
92
97
  export * from "./v1verifyconnectionresponsebody.js";
93
98
  export * from "./v1verifyemailrequestbody.js";
94
99
  export * from "./v1verifyemailresponsebody.js";
100
+ export * from "./vanitystruct.js";
@@ -3,12 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- LeaderboardBadgeInfo,
8
- LeaderboardBadgeInfo$inboundSchema,
9
- LeaderboardBadgeInfo$Outbound,
10
- LeaderboardBadgeInfo$outboundSchema,
11
- } from "./leaderboardbadgeinfo.js";
12
6
  import {
13
7
  Location,
14
8
  Location$inboundSchema,
@@ -27,10 +21,6 @@ export type LeaderboardAccount = {
27
21
  * The cost of an app
28
22
  */
29
23
  appCost: number;
30
- /**
31
- * The playtime of the account, incase of an app leaderboard
32
- */
33
- appPlaytime?: number | null | undefined;
34
24
  /**
35
25
  * The number of apps the account has
36
26
  */
@@ -51,7 +41,6 @@ export type LeaderboardAccount = {
51
41
  * The number of awards the account has
52
42
  */
53
43
  awardsReceived: number;
54
- badgeInfo?: LeaderboardBadgeInfo | null | undefined;
55
44
  /**
56
45
  * The number of badges the account has
57
46
  */
@@ -165,13 +154,11 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
165
154
  unknown
166
155
  > = z.object({
167
156
  appCost: z.number().int(),
168
- appPlaytime: z.nullable(z.number().int()).optional(),
169
157
  apps: z.number().int(),
170
158
  avatar: z.string(),
171
159
  averagePlaytime: z.number().int(),
172
160
  awardsGiven: z.number().int(),
173
161
  awardsReceived: z.number().int(),
174
- badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
175
162
  badges: z.number().int(),
176
163
  bans: z.number().int(),
177
164
  city: z.nullable(Location$inboundSchema).optional(),
@@ -206,13 +193,11 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
206
193
  /** @internal */
207
194
  export type LeaderboardAccount$Outbound = {
208
195
  appCost: number;
209
- appPlaytime?: number | null | undefined;
210
196
  apps: number;
211
197
  avatar: string;
212
198
  averagePlaytime: number;
213
199
  awardsGiven: number;
214
200
  awardsReceived: number;
215
- badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
216
201
  badges: number;
217
202
  bans: number;
218
203
  city?: Location$Outbound | null | undefined;
@@ -251,13 +236,11 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
251
236
  LeaderboardAccount
252
237
  > = z.object({
253
238
  appCost: z.number().int(),
254
- appPlaytime: z.nullable(z.number().int()).optional(),
255
239
  apps: z.number().int(),
256
240
  avatar: z.string(),
257
241
  averagePlaytime: z.number().int(),
258
242
  awardsGiven: z.number().int(),
259
243
  awardsReceived: z.number().int(),
260
- badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
261
244
  badges: z.number().int(),
262
245
  bans: z.number().int(),
263
246
  city: z.nullable(Location$outboundSchema).optional(),
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardAccountBadgeInfo = {
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
+ * The xp of the badge
18
+ */
19
+ xp: number;
20
+ };
21
+
22
+ /** @internal */
23
+ export const LeaderboardAccountBadgeInfo$inboundSchema: z.ZodType<
24
+ LeaderboardAccountBadgeInfo,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ completionTime: z.string().datetime({ offset: true }).transform(v =>
29
+ new Date(v)
30
+ ),
31
+ level: z.number().int(),
32
+ xp: z.number().int(),
33
+ });
34
+
35
+ /** @internal */
36
+ export type LeaderboardAccountBadgeInfo$Outbound = {
37
+ completionTime: string;
38
+ level: number;
39
+ xp: number;
40
+ };
41
+
42
+ /** @internal */
43
+ export const LeaderboardAccountBadgeInfo$outboundSchema: z.ZodType<
44
+ LeaderboardAccountBadgeInfo$Outbound,
45
+ z.ZodTypeDef,
46
+ LeaderboardAccountBadgeInfo
47
+ > = z.object({
48
+ completionTime: z.date().transform(v => v.toISOString()),
49
+ level: z.number().int(),
50
+ xp: z.number().int(),
51
+ });
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 LeaderboardAccountBadgeInfo$ {
58
+ /** @deprecated use `LeaderboardAccountBadgeInfo$inboundSchema` instead. */
59
+ export const inboundSchema = LeaderboardAccountBadgeInfo$inboundSchema;
60
+ /** @deprecated use `LeaderboardAccountBadgeInfo$outboundSchema` instead. */
61
+ export const outboundSchema = LeaderboardAccountBadgeInfo$outboundSchema;
62
+ /** @deprecated use `LeaderboardAccountBadgeInfo$Outbound` instead. */
63
+ export type Outbound = LeaderboardAccountBadgeInfo$Outbound;
64
+ }
@@ -3,12 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- LeaderboardBadgeInfo,
8
- LeaderboardBadgeInfo$inboundSchema,
9
- LeaderboardBadgeInfo$Outbound,
10
- LeaderboardBadgeInfo$outboundSchema,
11
- } from "./leaderboardbadgeinfo.js";
12
6
  import {
13
7
  Location,
14
8
  Location$inboundSchema,
@@ -27,10 +21,6 @@ export type V1AccountFriend = {
27
21
  * The cost of an app
28
22
  */
29
23
  appCost: number;
30
- /**
31
- * The playtime of the account, incase of an app leaderboard
32
- */
33
- appPlaytime?: number | null | undefined;
34
24
  /**
35
25
  * The number of apps the account has
36
26
  */
@@ -51,7 +41,6 @@ export type V1AccountFriend = {
51
41
  * The number of awards the account has
52
42
  */
53
43
  awardsReceived: number;
54
- badgeInfo?: LeaderboardBadgeInfo | null | undefined;
55
44
  /**
56
45
  * The number of badges the account has
57
46
  */
@@ -166,13 +155,11 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
166
155
  unknown
167
156
  > = z.object({
168
157
  appCost: z.number().int(),
169
- appPlaytime: z.nullable(z.number().int()).optional(),
170
158
  apps: z.number().int(),
171
159
  avatar: z.string(),
172
160
  averagePlaytime: z.number().int(),
173
161
  awardsGiven: z.number().int(),
174
162
  awardsReceived: z.number().int(),
175
- badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
176
163
  badges: z.number().int(),
177
164
  bans: z.number().int(),
178
165
  city: z.nullable(Location$inboundSchema).optional(),
@@ -210,13 +197,11 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
210
197
  /** @internal */
211
198
  export type V1AccountFriend$Outbound = {
212
199
  appCost: number;
213
- appPlaytime?: number | null | undefined;
214
200
  apps: number;
215
201
  avatar: string;
216
202
  averagePlaytime: number;
217
203
  awardsGiven: number;
218
204
  awardsReceived: number;
219
- badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
220
205
  badges: number;
221
206
  bans: number;
222
207
  city?: Location$Outbound | null | undefined;
@@ -256,13 +241,11 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
256
241
  V1AccountFriend
257
242
  > = z.object({
258
243
  appCost: z.number().int(),
259
- appPlaytime: z.nullable(z.number().int()).optional(),
260
244
  apps: z.number().int(),
261
245
  avatar: z.string(),
262
246
  averagePlaytime: z.number().int(),
263
247
  awardsGiven: z.number().int(),
264
248
  awardsReceived: z.number().int(),
265
- badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
266
249
  badges: z.number().int(),
267
250
  bans: z.number().int(),
268
251
  city: z.nullable(Location$outboundSchema).optional(),
@@ -4,11 +4,11 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import {
7
- LeaderboardBadgeInfo,
8
- LeaderboardBadgeInfo$inboundSchema,
9
- LeaderboardBadgeInfo$Outbound,
10
- LeaderboardBadgeInfo$outboundSchema,
11
- } from "./leaderboardbadgeinfo.js";
7
+ LeaderboardAccountBadgeInfo,
8
+ LeaderboardAccountBadgeInfo$inboundSchema,
9
+ LeaderboardAccountBadgeInfo$Outbound,
10
+ LeaderboardAccountBadgeInfo$outboundSchema,
11
+ } from "./leaderboardaccountbadgeinfo.js";
12
12
  import {
13
13
  Location,
14
14
  Location$inboundSchema,
@@ -27,10 +27,6 @@ export type V1AccountLeaderboardAccount = {
27
27
  * The cost of an app
28
28
  */
29
29
  appCost: number;
30
- /**
31
- * The playtime of the account, incase of an app leaderboard
32
- */
33
- appPlaytime?: number | null | undefined;
34
30
  /**
35
31
  * The number of apps the account has
36
32
  */
@@ -51,7 +47,7 @@ export type V1AccountLeaderboardAccount = {
51
47
  * The number of awards the account has
52
48
  */
53
49
  awardsReceived: number;
54
- badgeInfo?: LeaderboardBadgeInfo | null | undefined;
50
+ badgeInfo?: LeaderboardAccountBadgeInfo | null | undefined;
55
51
  /**
56
52
  * The number of badges the account has
57
53
  */
@@ -169,13 +165,12 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
169
165
  unknown
170
166
  > = z.object({
171
167
  appCost: z.number().int(),
172
- appPlaytime: z.nullable(z.number().int()).optional(),
173
168
  apps: z.number().int(),
174
169
  avatar: z.string(),
175
170
  averagePlaytime: z.number().int(),
176
171
  awardsGiven: z.number().int(),
177
172
  awardsReceived: z.number().int(),
178
- badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
173
+ badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$inboundSchema).optional(),
179
174
  badges: z.number().int(),
180
175
  bans: z.number().int(),
181
176
  city: z.nullable(Location$inboundSchema).optional(),
@@ -211,13 +206,12 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
211
206
  /** @internal */
212
207
  export type V1AccountLeaderboardAccount$Outbound = {
213
208
  appCost: number;
214
- appPlaytime?: number | null | undefined;
215
209
  apps: number;
216
210
  avatar: string;
217
211
  averagePlaytime: number;
218
212
  awardsGiven: number;
219
213
  awardsReceived: number;
220
- badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
214
+ badgeInfo?: LeaderboardAccountBadgeInfo$Outbound | null | undefined;
221
215
  badges: number;
222
216
  bans: number;
223
217
  city?: Location$Outbound | null | undefined;
@@ -257,13 +251,12 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
257
251
  V1AccountLeaderboardAccount
258
252
  > = z.object({
259
253
  appCost: z.number().int(),
260
- appPlaytime: z.nullable(z.number().int()).optional(),
261
254
  apps: z.number().int(),
262
255
  avatar: z.string(),
263
256
  averagePlaytime: z.number().int(),
264
257
  awardsGiven: z.number().int(),
265
258
  awardsReceived: z.number().int(),
266
- badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
259
+ badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$outboundSchema).optional(),
267
260
  badges: z.number().int(),
268
261
  bans: z.number().int(),
269
262
  city: z.nullable(Location$outboundSchema).optional(),
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountLeaderboardAppSearch = {
8
+ /**
9
+ * For a given app leaderboard, the app id
10
+ */
11
+ appId?: number | undefined;
12
+ };
13
+
14
+ /** @internal */
15
+ export const V1AccountLeaderboardAppSearch$inboundSchema: z.ZodType<
16
+ V1AccountLeaderboardAppSearch,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ appId: z.number().int().optional(),
21
+ });
22
+
23
+ /** @internal */
24
+ export type V1AccountLeaderboardAppSearch$Outbound = {
25
+ appId?: number | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const V1AccountLeaderboardAppSearch$outboundSchema: z.ZodType<
30
+ V1AccountLeaderboardAppSearch$Outbound,
31
+ z.ZodTypeDef,
32
+ V1AccountLeaderboardAppSearch
33
+ > = z.object({
34
+ appId: z.number().int().optional(),
35
+ });
36
+
37
+ /**
38
+ * @internal
39
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
+ */
41
+ export namespace V1AccountLeaderboardAppSearch$ {
42
+ /** @deprecated use `V1AccountLeaderboardAppSearch$inboundSchema` instead. */
43
+ export const inboundSchema = V1AccountLeaderboardAppSearch$inboundSchema;
44
+ /** @deprecated use `V1AccountLeaderboardAppSearch$outboundSchema` instead. */
45
+ export const outboundSchema = V1AccountLeaderboardAppSearch$outboundSchema;
46
+ /** @deprecated use `V1AccountLeaderboardAppSearch$Outbound` instead. */
47
+ export type Outbound = V1AccountLeaderboardAppSearch$Outbound;
48
+ }
@@ -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 V1AccountLeaderboardBadgeSearch = {
8
+ /**
9
+ * The badge id to get the leaderboard for
10
+ */
11
+ id?: number | undefined;
12
+ /**
13
+ * Whether the badge is foil or not
14
+ */
15
+ isFoil: boolean;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1AccountLeaderboardBadgeSearch$inboundSchema: z.ZodType<
20
+ V1AccountLeaderboardBadgeSearch,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int().optional(),
25
+ isFoil: z.boolean(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1AccountLeaderboardBadgeSearch$Outbound = {
30
+ id?: number | undefined;
31
+ isFoil: boolean;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1AccountLeaderboardBadgeSearch$outboundSchema: z.ZodType<
36
+ V1AccountLeaderboardBadgeSearch$Outbound,
37
+ z.ZodTypeDef,
38
+ V1AccountLeaderboardBadgeSearch
39
+ > = z.object({
40
+ id: z.number().int().optional(),
41
+ isFoil: z.boolean(),
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 V1AccountLeaderboardBadgeSearch$ {
49
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$inboundSchema` instead. */
50
+ export const inboundSchema = V1AccountLeaderboardBadgeSearch$inboundSchema;
51
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$outboundSchema` instead. */
52
+ export const outboundSchema = V1AccountLeaderboardBadgeSearch$outboundSchema;
53
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$Outbound` instead. */
54
+ export type Outbound = V1AccountLeaderboardBadgeSearch$Outbound;
55
+ }
@@ -4,6 +4,18 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ V1AccountLeaderboardAppSearch,
9
+ V1AccountLeaderboardAppSearch$inboundSchema,
10
+ V1AccountLeaderboardAppSearch$Outbound,
11
+ V1AccountLeaderboardAppSearch$outboundSchema,
12
+ } from "./v1accountleaderboardappsearch.js";
13
+ import {
14
+ V1AccountLeaderboardBadgeSearch,
15
+ V1AccountLeaderboardBadgeSearch$inboundSchema,
16
+ V1AccountLeaderboardBadgeSearch$Outbound,
17
+ V1AccountLeaderboardBadgeSearch$outboundSchema,
18
+ } from "./v1accountleaderboardbadgesearch.js";
7
19
  import {
8
20
  V1LeaderboardLocation,
9
21
  V1LeaderboardLocation$inboundSchema,
@@ -43,18 +55,8 @@ export type V1AccountLeaderboardRequestBodyLeaderboard = ClosedEnum<
43
55
  >;
44
56
 
45
57
  export type V1AccountLeaderboardRequestBody = {
46
- /**
47
- * For a given app leaderboard, the app id
48
- */
49
- appId?: number | null | undefined;
50
- /**
51
- * For a given badge leaderboard, the steam badge id
52
- */
53
- badgeId?: string | null | undefined;
54
- /**
55
- * For a given badge leaderboard, whether the badge is foil or not
56
- */
57
- badgeIsFoil?: boolean | null | undefined;
58
+ app?: V1AccountLeaderboardAppSearch | null | undefined;
59
+ badge?: V1AccountLeaderboardBadgeSearch | null | undefined;
58
60
  /**
59
61
  * The end index
60
62
  */
@@ -102,9 +104,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
102
104
  z.ZodTypeDef,
103
105
  unknown
104
106
  > = z.object({
105
- appId: z.nullable(z.number().int()).optional(),
106
- badgeId: z.nullable(z.string()).optional(),
107
- badgeIsFoil: z.nullable(z.boolean()).optional(),
107
+ app: z.nullable(V1AccountLeaderboardAppSearch$inboundSchema).optional(),
108
+ badge: z.nullable(V1AccountLeaderboardBadgeSearch$inboundSchema).optional(),
108
109
  end: z.nullable(z.number().int()).optional(),
109
110
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
110
111
  location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema)).optional(),
@@ -113,9 +114,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
113
114
 
114
115
  /** @internal */
115
116
  export type V1AccountLeaderboardRequestBody$Outbound = {
116
- appId?: number | null | undefined;
117
- badgeId?: string | null | undefined;
118
- badgeIsFoil?: boolean | null | undefined;
117
+ app?: V1AccountLeaderboardAppSearch$Outbound | null | undefined;
118
+ badge?: V1AccountLeaderboardBadgeSearch$Outbound | null | undefined;
119
119
  end?: number | null | undefined;
120
120
  leaderboard: string;
121
121
  location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
@@ -128,9 +128,8 @@ export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
128
128
  z.ZodTypeDef,
129
129
  V1AccountLeaderboardRequestBody
130
130
  > = z.object({
131
- appId: z.nullable(z.number().int()).optional(),
132
- badgeId: z.nullable(z.string()).optional(),
133
- badgeIsFoil: z.nullable(z.boolean()).optional(),
131
+ app: z.nullable(V1AccountLeaderboardAppSearch$outboundSchema).optional(),
132
+ badge: z.nullable(V1AccountLeaderboardBadgeSearch$outboundSchema).optional(),
134
133
  end: z.nullable(z.number().int()).optional(),
135
134
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
136
135
  location: z.nullable(z.array(V1LeaderboardLocation$outboundSchema))