@steamsets/client-ts 0.11.16 → 0.11.18
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.
- package/README.md +0 -4
- package/docs/sdks/account/README.md +0 -80
- package/docs/sdks/leaderboard/README.md +0 -80
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountinfobody.d.ts +12 -9
- package/models/components/accountinfobody.d.ts.map +1 -1
- package/models/components/accountinfobody.js +12 -9
- package/models/components/accountinfobody.js.map +1 -1
- package/models/components/index.d.ts +4 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -3
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +12 -9
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +12 -9
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/leaderboardcity.d.ts +33 -0
- package/models/components/leaderboardcity.d.ts.map +1 -0
- package/models/components/{location.js → leaderboardcity.js} +11 -13
- package/models/components/leaderboardcity.js.map +1 -0
- package/models/components/leaderboardcountry.d.ts +38 -0
- package/models/components/leaderboardcountry.d.ts.map +1 -0
- package/models/components/leaderboardcountry.js +54 -0
- package/models/components/leaderboardcountry.js.map +1 -0
- package/models/components/leaderboardregion.d.ts +33 -0
- package/models/components/leaderboardregion.d.ts.map +1 -0
- package/models/components/leaderboardregion.js +52 -0
- package/models/components/leaderboardregion.js.map +1 -0
- package/models/components/leaderboardstate.d.ts +33 -0
- package/models/components/leaderboardstate.d.ts.map +1 -0
- package/models/components/leaderboardstate.js +52 -0
- package/models/components/leaderboardstate.js.map +1 -0
- package/models/components/v1accountappbadge.d.ts +4 -0
- package/models/components/v1accountappbadge.d.ts.map +1 -1
- package/models/components/v1accountappbadge.js +4 -0
- package/models/components/v1accountappbadge.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +12 -9
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +12 -9
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +12 -9
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +12 -9
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +0 -4
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +0 -7
- package/sdk/account.js.map +1 -1
- package/sdk/leaderboard.d.ts +0 -4
- package/sdk/leaderboard.d.ts.map +1 -1
- package/sdk/leaderboard.js +0 -7
- package/sdk/leaderboard.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -4
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountinfobody.ts +39 -21
- package/src/models/components/index.ts +4 -3
- package/src/models/components/leaderboardaccount.ts +39 -21
- package/src/models/components/leaderboardcity.ts +55 -0
- package/src/models/components/leaderboardcountry.ts +62 -0
- package/src/models/components/leaderboardregion.ts +55 -0
- package/src/models/components/leaderboardstate.ts +55 -0
- package/src/models/components/v1accountappbadge.ts +8 -0
- package/src/models/components/v1accountfriend.ts +39 -21
- package/src/models/components/v1accountleaderboardaccount.ts +39 -21
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/account.ts +0 -15
- package/src/sdk/leaderboard.ts +0 -15
- package/src/sdk/sdk.ts +5 -5
- package/funcs/accountAccountV1LeaderboardPreview.d.ts +0 -14
- package/funcs/accountAccountV1LeaderboardPreview.d.ts.map +0 -1
- package/funcs/accountAccountV1LeaderboardPreview.js +0 -98
- package/funcs/accountAccountV1LeaderboardPreview.js.map +0 -1
- package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts +0 -14
- package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts.map +0 -1
- package/funcs/leaderboardAccountV1LeaderboardPreview.js +0 -98
- package/funcs/leaderboardAccountV1LeaderboardPreview.js.map +0 -1
- package/models/components/location.d.ts +0 -38
- package/models/components/location.d.ts.map +0 -1
- package/models/components/location.js.map +0 -1
- package/models/components/v1accountleaderboardpreviewrequestbody.d.ts +0 -110
- package/models/components/v1accountleaderboardpreviewrequestbody.d.ts.map +0 -1
- package/models/components/v1accountleaderboardpreviewrequestbody.js +0 -90
- package/models/components/v1accountleaderboardpreviewrequestbody.js.map +0 -1
- package/models/components/v1accountleaderboardpreviewresponsebody.d.ts +0 -38
- package/models/components/v1accountleaderboardpreviewresponsebody.d.ts.map +0 -1
- package/models/components/v1accountleaderboardpreviewresponsebody.js +0 -63
- package/models/components/v1accountleaderboardpreviewresponsebody.js.map +0 -1
- package/models/operations/accountv1leaderboardpreview.d.ts +0 -31
- package/models/operations/accountv1leaderboardpreview.d.ts.map +0 -1
- package/models/operations/accountv1leaderboardpreview.js +0 -66
- package/models/operations/accountv1leaderboardpreview.js.map +0 -1
- package/src/funcs/accountAccountV1LeaderboardPreview.ts +0 -130
- package/src/funcs/leaderboardAccountV1LeaderboardPreview.ts +0 -130
- package/src/models/components/location.ts +0 -62
- package/src/models/components/v1accountleaderboardpreviewrequestbody.ts +0 -110
- package/src/models/components/v1accountleaderboardpreviewresponsebody.ts +0 -73
- package/src/models/operations/accountv1leaderboardpreview.ts +0 -74
|
@@ -22,7 +22,10 @@ export * from "./idstruct.js";
|
|
|
22
22
|
export * from "./image.js";
|
|
23
23
|
export * from "./leaderboardaccount.js";
|
|
24
24
|
export * from "./leaderboardaccountbadgeinfo.js";
|
|
25
|
-
export * from "./
|
|
25
|
+
export * from "./leaderboardcity.js";
|
|
26
|
+
export * from "./leaderboardcountry.js";
|
|
27
|
+
export * from "./leaderboardregion.js";
|
|
28
|
+
export * from "./leaderboardstate.js";
|
|
26
29
|
export * from "./loginrequestbody.js";
|
|
27
30
|
export * from "./region.js";
|
|
28
31
|
export * from "./resource.js";
|
|
@@ -47,8 +50,6 @@ export * from "./v1accountleaderboardaccount.js";
|
|
|
47
50
|
export * from "./v1accountleaderboardappsearch.js";
|
|
48
51
|
export * from "./v1accountleaderboardbadgesearch.js";
|
|
49
52
|
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
50
|
-
export * from "./v1accountleaderboardpreviewrequestbody.js";
|
|
51
|
-
export * from "./v1accountleaderboardpreviewresponsebody.js";
|
|
52
53
|
export * from "./v1accountleaderboardrequestbody.js";
|
|
53
54
|
export * from "./v1accountleaderboardresponsebody.js";
|
|
54
55
|
export * from "./v1accountplaytimedatapoint.js";
|
|
@@ -4,11 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
7
|
+
LeaderboardCity,
|
|
8
|
+
LeaderboardCity$inboundSchema,
|
|
9
|
+
LeaderboardCity$Outbound,
|
|
10
|
+
LeaderboardCity$outboundSchema,
|
|
11
|
+
} from "./leaderboardcity.js";
|
|
12
|
+
import {
|
|
13
|
+
LeaderboardCountry,
|
|
14
|
+
LeaderboardCountry$inboundSchema,
|
|
15
|
+
LeaderboardCountry$Outbound,
|
|
16
|
+
LeaderboardCountry$outboundSchema,
|
|
17
|
+
} from "./leaderboardcountry.js";
|
|
18
|
+
import {
|
|
19
|
+
LeaderboardRegion,
|
|
20
|
+
LeaderboardRegion$inboundSchema,
|
|
21
|
+
LeaderboardRegion$Outbound,
|
|
22
|
+
LeaderboardRegion$outboundSchema,
|
|
23
|
+
} from "./leaderboardregion.js";
|
|
24
|
+
import {
|
|
25
|
+
LeaderboardState,
|
|
26
|
+
LeaderboardState$inboundSchema,
|
|
27
|
+
LeaderboardState$Outbound,
|
|
28
|
+
LeaderboardState$outboundSchema,
|
|
29
|
+
} from "./leaderboardstate.js";
|
|
12
30
|
import {
|
|
13
31
|
Role,
|
|
14
32
|
Role$inboundSchema,
|
|
@@ -49,8 +67,8 @@ export type LeaderboardAccount = {
|
|
|
49
67
|
* The number of bans
|
|
50
68
|
*/
|
|
51
69
|
bans: number;
|
|
52
|
-
city?:
|
|
53
|
-
country?:
|
|
70
|
+
city?: LeaderboardCity | null | undefined;
|
|
71
|
+
country?: LeaderboardCountry | null | undefined;
|
|
54
72
|
/**
|
|
55
73
|
* The time the account was created
|
|
56
74
|
*/
|
|
@@ -115,12 +133,12 @@ export type LeaderboardAccount = {
|
|
|
115
133
|
* The privacy of the account
|
|
116
134
|
*/
|
|
117
135
|
privacy: string;
|
|
118
|
-
region?:
|
|
136
|
+
region?: LeaderboardRegion | null | undefined;
|
|
119
137
|
/**
|
|
120
138
|
* The roles of the account
|
|
121
139
|
*/
|
|
122
140
|
roles: Array<Role> | null;
|
|
123
|
-
state?:
|
|
141
|
+
state?: LeaderboardState | null | undefined;
|
|
124
142
|
/**
|
|
125
143
|
* The steam id
|
|
126
144
|
*/
|
|
@@ -161,8 +179,8 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
161
179
|
awardsReceived: z.number().int(),
|
|
162
180
|
badges: z.number().int(),
|
|
163
181
|
bans: z.number().int(),
|
|
164
|
-
city: z.nullable(
|
|
165
|
-
country: z.nullable(
|
|
182
|
+
city: z.nullable(LeaderboardCity$inboundSchema).optional(),
|
|
183
|
+
country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
|
|
166
184
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
167
185
|
economyBan: z.string(),
|
|
168
186
|
foilBadgeCost: z.number().int(),
|
|
@@ -179,9 +197,9 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
179
197
|
pointsGiven: z.number().int(),
|
|
180
198
|
pointsReceived: z.number().int(),
|
|
181
199
|
privacy: z.string(),
|
|
182
|
-
region: z.nullable(
|
|
200
|
+
region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
|
|
183
201
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
184
|
-
state: z.nullable(
|
|
202
|
+
state: z.nullable(LeaderboardState$inboundSchema).optional(),
|
|
185
203
|
steamId: z.string(),
|
|
186
204
|
steamSetsScore: z.number().int(),
|
|
187
205
|
steamSetsVanity: z.string(),
|
|
@@ -200,8 +218,8 @@ export type LeaderboardAccount$Outbound = {
|
|
|
200
218
|
awardsReceived: number;
|
|
201
219
|
badges: number;
|
|
202
220
|
bans: number;
|
|
203
|
-
city?:
|
|
204
|
-
country?:
|
|
221
|
+
city?: LeaderboardCity$Outbound | null | undefined;
|
|
222
|
+
country?: LeaderboardCountry$Outbound | null | undefined;
|
|
205
223
|
createdAt: string;
|
|
206
224
|
economyBan: string;
|
|
207
225
|
foilBadgeCost: number;
|
|
@@ -218,9 +236,9 @@ export type LeaderboardAccount$Outbound = {
|
|
|
218
236
|
pointsGiven: number;
|
|
219
237
|
pointsReceived: number;
|
|
220
238
|
privacy: string;
|
|
221
|
-
region?:
|
|
239
|
+
region?: LeaderboardRegion$Outbound | null | undefined;
|
|
222
240
|
roles: Array<Role$Outbound> | null;
|
|
223
|
-
state?:
|
|
241
|
+
state?: LeaderboardState$Outbound | null | undefined;
|
|
224
242
|
steamId: string;
|
|
225
243
|
steamSetsScore: number;
|
|
226
244
|
steamSetsVanity: string;
|
|
@@ -243,8 +261,8 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
243
261
|
awardsReceived: z.number().int(),
|
|
244
262
|
badges: z.number().int(),
|
|
245
263
|
bans: z.number().int(),
|
|
246
|
-
city: z.nullable(
|
|
247
|
-
country: z.nullable(
|
|
264
|
+
city: z.nullable(LeaderboardCity$outboundSchema).optional(),
|
|
265
|
+
country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
|
|
248
266
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
249
267
|
economyBan: z.string(),
|
|
250
268
|
foilBadgeCost: z.number().int(),
|
|
@@ -261,9 +279,9 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
261
279
|
pointsGiven: z.number().int(),
|
|
262
280
|
pointsReceived: z.number().int(),
|
|
263
281
|
privacy: z.string(),
|
|
264
|
-
region: z.nullable(
|
|
282
|
+
region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
|
|
265
283
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
266
|
-
state: z.nullable(
|
|
284
|
+
state: z.nullable(LeaderboardState$outboundSchema).optional(),
|
|
267
285
|
steamId: z.string(),
|
|
268
286
|
steamSetsScore: z.number().int(),
|
|
269
287
|
steamSetsVanity: z.string(),
|
|
@@ -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 LeaderboardCity = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the city
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The name of the city
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LeaderboardCity$inboundSchema: z.ZodType<
|
|
20
|
+
LeaderboardCity,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LeaderboardCity$Outbound = {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const LeaderboardCity$outboundSchema: z.ZodType<
|
|
36
|
+
LeaderboardCity$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
LeaderboardCity
|
|
39
|
+
> = z.object({
|
|
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 LeaderboardCity$ {
|
|
49
|
+
/** @deprecated use `LeaderboardCity$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = LeaderboardCity$inboundSchema;
|
|
51
|
+
/** @deprecated use `LeaderboardCity$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = LeaderboardCity$outboundSchema;
|
|
53
|
+
/** @deprecated use `LeaderboardCity$Outbound` instead. */
|
|
54
|
+
export type Outbound = LeaderboardCity$Outbound;
|
|
55
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type LeaderboardCountry = {
|
|
8
|
+
/**
|
|
9
|
+
* The code of the country
|
|
10
|
+
*/
|
|
11
|
+
code?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The id of the country
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the country
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LeaderboardCountry$inboundSchema: z.ZodType<
|
|
24
|
+
LeaderboardCountry,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
code: z.string().optional(),
|
|
29
|
+
id: z.number().int(),
|
|
30
|
+
name: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type LeaderboardCountry$Outbound = {
|
|
35
|
+
code?: string | undefined;
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const LeaderboardCountry$outboundSchema: z.ZodType<
|
|
42
|
+
LeaderboardCountry$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
LeaderboardCountry
|
|
45
|
+
> = z.object({
|
|
46
|
+
code: z.string().optional(),
|
|
47
|
+
id: z.number().int(),
|
|
48
|
+
name: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace LeaderboardCountry$ {
|
|
56
|
+
/** @deprecated use `LeaderboardCountry$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = LeaderboardCountry$inboundSchema;
|
|
58
|
+
/** @deprecated use `LeaderboardCountry$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = LeaderboardCountry$outboundSchema;
|
|
60
|
+
/** @deprecated use `LeaderboardCountry$Outbound` instead. */
|
|
61
|
+
export type Outbound = LeaderboardCountry$Outbound;
|
|
62
|
+
}
|
|
@@ -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 LeaderboardRegion = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the region
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The name of the region
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LeaderboardRegion$inboundSchema: z.ZodType<
|
|
20
|
+
LeaderboardRegion,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LeaderboardRegion$Outbound = {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const LeaderboardRegion$outboundSchema: z.ZodType<
|
|
36
|
+
LeaderboardRegion$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
LeaderboardRegion
|
|
39
|
+
> = z.object({
|
|
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 LeaderboardRegion$ {
|
|
49
|
+
/** @deprecated use `LeaderboardRegion$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = LeaderboardRegion$inboundSchema;
|
|
51
|
+
/** @deprecated use `LeaderboardRegion$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = LeaderboardRegion$outboundSchema;
|
|
53
|
+
/** @deprecated use `LeaderboardRegion$Outbound` instead. */
|
|
54
|
+
export type Outbound = LeaderboardRegion$Outbound;
|
|
55
|
+
}
|
|
@@ -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 LeaderboardState = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the state
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The name of the state
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LeaderboardState$inboundSchema: z.ZodType<
|
|
20
|
+
LeaderboardState,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LeaderboardState$Outbound = {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const LeaderboardState$outboundSchema: z.ZodType<
|
|
36
|
+
LeaderboardState$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
LeaderboardState
|
|
39
|
+
> = z.object({
|
|
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 LeaderboardState$ {
|
|
49
|
+
/** @deprecated use `LeaderboardState$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = LeaderboardState$inboundSchema;
|
|
51
|
+
/** @deprecated use `LeaderboardState$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = LeaderboardState$outboundSchema;
|
|
53
|
+
/** @deprecated use `LeaderboardState$Outbound` instead. */
|
|
54
|
+
export type Outbound = LeaderboardState$Outbound;
|
|
55
|
+
}
|
|
@@ -11,7 +11,9 @@ export type V1AccountAppBadge = {
|
|
|
11
11
|
appShortName: string;
|
|
12
12
|
badgeImage: string;
|
|
13
13
|
completedAt: Date;
|
|
14
|
+
isEvent: boolean;
|
|
14
15
|
isFoil: boolean;
|
|
16
|
+
isSale: boolean;
|
|
15
17
|
level: number;
|
|
16
18
|
name: string;
|
|
17
19
|
price: number;
|
|
@@ -35,7 +37,9 @@ export const V1AccountAppBadge$inboundSchema: z.ZodType<
|
|
|
35
37
|
completedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
36
38
|
new Date(v)
|
|
37
39
|
),
|
|
40
|
+
isEvent: z.boolean(),
|
|
38
41
|
isFoil: z.boolean(),
|
|
42
|
+
isSale: z.boolean(),
|
|
39
43
|
level: z.number().int(),
|
|
40
44
|
name: z.string(),
|
|
41
45
|
price: z.number().int(),
|
|
@@ -53,7 +57,9 @@ export type V1AccountAppBadge$Outbound = {
|
|
|
53
57
|
appShortName: string;
|
|
54
58
|
badgeImage: string;
|
|
55
59
|
completedAt: string;
|
|
60
|
+
isEvent: boolean;
|
|
56
61
|
isFoil: boolean;
|
|
62
|
+
isSale: boolean;
|
|
57
63
|
level: number;
|
|
58
64
|
name: string;
|
|
59
65
|
price: number;
|
|
@@ -75,7 +81,9 @@ export const V1AccountAppBadge$outboundSchema: z.ZodType<
|
|
|
75
81
|
appShortName: z.string(),
|
|
76
82
|
badgeImage: z.string(),
|
|
77
83
|
completedAt: z.date().transform(v => v.toISOString()),
|
|
84
|
+
isEvent: z.boolean(),
|
|
78
85
|
isFoil: z.boolean(),
|
|
86
|
+
isSale: z.boolean(),
|
|
79
87
|
level: z.number().int(),
|
|
80
88
|
name: z.string(),
|
|
81
89
|
price: z.number().int(),
|
|
@@ -4,11 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
7
|
+
LeaderboardCity,
|
|
8
|
+
LeaderboardCity$inboundSchema,
|
|
9
|
+
LeaderboardCity$Outbound,
|
|
10
|
+
LeaderboardCity$outboundSchema,
|
|
11
|
+
} from "./leaderboardcity.js";
|
|
12
|
+
import {
|
|
13
|
+
LeaderboardCountry,
|
|
14
|
+
LeaderboardCountry$inboundSchema,
|
|
15
|
+
LeaderboardCountry$Outbound,
|
|
16
|
+
LeaderboardCountry$outboundSchema,
|
|
17
|
+
} from "./leaderboardcountry.js";
|
|
18
|
+
import {
|
|
19
|
+
LeaderboardRegion,
|
|
20
|
+
LeaderboardRegion$inboundSchema,
|
|
21
|
+
LeaderboardRegion$Outbound,
|
|
22
|
+
LeaderboardRegion$outboundSchema,
|
|
23
|
+
} from "./leaderboardregion.js";
|
|
24
|
+
import {
|
|
25
|
+
LeaderboardState,
|
|
26
|
+
LeaderboardState$inboundSchema,
|
|
27
|
+
LeaderboardState$Outbound,
|
|
28
|
+
LeaderboardState$outboundSchema,
|
|
29
|
+
} from "./leaderboardstate.js";
|
|
12
30
|
import {
|
|
13
31
|
Role,
|
|
14
32
|
Role$inboundSchema,
|
|
@@ -49,8 +67,8 @@ export type V1AccountFriend = {
|
|
|
49
67
|
* The number of bans
|
|
50
68
|
*/
|
|
51
69
|
bans: number;
|
|
52
|
-
city?:
|
|
53
|
-
country?:
|
|
70
|
+
city?: LeaderboardCity | null | undefined;
|
|
71
|
+
country?: LeaderboardCountry | null | undefined;
|
|
54
72
|
/**
|
|
55
73
|
* The time the account was created
|
|
56
74
|
*/
|
|
@@ -116,12 +134,12 @@ export type V1AccountFriend = {
|
|
|
116
134
|
* The privacy of the account
|
|
117
135
|
*/
|
|
118
136
|
privacy: string;
|
|
119
|
-
region?:
|
|
137
|
+
region?: LeaderboardRegion | null | undefined;
|
|
120
138
|
/**
|
|
121
139
|
* The roles of the account
|
|
122
140
|
*/
|
|
123
141
|
roles: Array<Role> | null;
|
|
124
|
-
state?:
|
|
142
|
+
state?: LeaderboardState | null | undefined;
|
|
125
143
|
/**
|
|
126
144
|
* The steam id
|
|
127
145
|
*/
|
|
@@ -162,8 +180,8 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
162
180
|
awardsReceived: z.number().int(),
|
|
163
181
|
badges: z.number().int(),
|
|
164
182
|
bans: z.number().int(),
|
|
165
|
-
city: z.nullable(
|
|
166
|
-
country: z.nullable(
|
|
183
|
+
city: z.nullable(LeaderboardCity$inboundSchema).optional(),
|
|
184
|
+
country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
|
|
167
185
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
168
186
|
economyBan: z.string(),
|
|
169
187
|
foilBadgeCost: z.number().int(),
|
|
@@ -183,9 +201,9 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
183
201
|
pointsGiven: z.number().int(),
|
|
184
202
|
pointsReceived: z.number().int(),
|
|
185
203
|
privacy: z.string(),
|
|
186
|
-
region: z.nullable(
|
|
204
|
+
region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
|
|
187
205
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
188
|
-
state: z.nullable(
|
|
206
|
+
state: z.nullable(LeaderboardState$inboundSchema).optional(),
|
|
189
207
|
steamId: z.string(),
|
|
190
208
|
steamSetsScore: z.number().int(),
|
|
191
209
|
steamSetsVanity: z.string(),
|
|
@@ -204,8 +222,8 @@ export type V1AccountFriend$Outbound = {
|
|
|
204
222
|
awardsReceived: number;
|
|
205
223
|
badges: number;
|
|
206
224
|
bans: number;
|
|
207
|
-
city?:
|
|
208
|
-
country?:
|
|
225
|
+
city?: LeaderboardCity$Outbound | null | undefined;
|
|
226
|
+
country?: LeaderboardCountry$Outbound | null | undefined;
|
|
209
227
|
createdAt: string;
|
|
210
228
|
economyBan: string;
|
|
211
229
|
foilBadgeCost: number;
|
|
@@ -223,9 +241,9 @@ export type V1AccountFriend$Outbound = {
|
|
|
223
241
|
pointsGiven: number;
|
|
224
242
|
pointsReceived: number;
|
|
225
243
|
privacy: string;
|
|
226
|
-
region?:
|
|
244
|
+
region?: LeaderboardRegion$Outbound | null | undefined;
|
|
227
245
|
roles: Array<Role$Outbound> | null;
|
|
228
|
-
state?:
|
|
246
|
+
state?: LeaderboardState$Outbound | null | undefined;
|
|
229
247
|
steamId: string;
|
|
230
248
|
steamSetsScore: number;
|
|
231
249
|
steamSetsVanity: string;
|
|
@@ -248,8 +266,8 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
248
266
|
awardsReceived: z.number().int(),
|
|
249
267
|
badges: z.number().int(),
|
|
250
268
|
bans: z.number().int(),
|
|
251
|
-
city: z.nullable(
|
|
252
|
-
country: z.nullable(
|
|
269
|
+
city: z.nullable(LeaderboardCity$outboundSchema).optional(),
|
|
270
|
+
country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
|
|
253
271
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
254
272
|
economyBan: z.string(),
|
|
255
273
|
foilBadgeCost: z.number().int(),
|
|
@@ -267,9 +285,9 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
267
285
|
pointsGiven: z.number().int(),
|
|
268
286
|
pointsReceived: z.number().int(),
|
|
269
287
|
privacy: z.string(),
|
|
270
|
-
region: z.nullable(
|
|
288
|
+
region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
|
|
271
289
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
272
|
-
state: z.nullable(
|
|
290
|
+
state: z.nullable(LeaderboardState$outboundSchema).optional(),
|
|
273
291
|
steamId: z.string(),
|
|
274
292
|
steamSetsScore: z.number().int(),
|
|
275
293
|
steamSetsVanity: z.string(),
|
|
@@ -10,11 +10,29 @@ import {
|
|
|
10
10
|
LeaderboardAccountBadgeInfo$outboundSchema,
|
|
11
11
|
} from "./leaderboardaccountbadgeinfo.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
LeaderboardCity,
|
|
14
|
+
LeaderboardCity$inboundSchema,
|
|
15
|
+
LeaderboardCity$Outbound,
|
|
16
|
+
LeaderboardCity$outboundSchema,
|
|
17
|
+
} from "./leaderboardcity.js";
|
|
18
|
+
import {
|
|
19
|
+
LeaderboardCountry,
|
|
20
|
+
LeaderboardCountry$inboundSchema,
|
|
21
|
+
LeaderboardCountry$Outbound,
|
|
22
|
+
LeaderboardCountry$outboundSchema,
|
|
23
|
+
} from "./leaderboardcountry.js";
|
|
24
|
+
import {
|
|
25
|
+
LeaderboardRegion,
|
|
26
|
+
LeaderboardRegion$inboundSchema,
|
|
27
|
+
LeaderboardRegion$Outbound,
|
|
28
|
+
LeaderboardRegion$outboundSchema,
|
|
29
|
+
} from "./leaderboardregion.js";
|
|
30
|
+
import {
|
|
31
|
+
LeaderboardState,
|
|
32
|
+
LeaderboardState$inboundSchema,
|
|
33
|
+
LeaderboardState$Outbound,
|
|
34
|
+
LeaderboardState$outboundSchema,
|
|
35
|
+
} from "./leaderboardstate.js";
|
|
18
36
|
import {
|
|
19
37
|
Role,
|
|
20
38
|
Role$inboundSchema,
|
|
@@ -60,8 +78,8 @@ export type V1AccountLeaderboardAccount = {
|
|
|
60
78
|
* The number of bans
|
|
61
79
|
*/
|
|
62
80
|
bans: number;
|
|
63
|
-
city?:
|
|
64
|
-
country?:
|
|
81
|
+
city?: LeaderboardCity | null | undefined;
|
|
82
|
+
country?: LeaderboardCountry | null | undefined;
|
|
65
83
|
/**
|
|
66
84
|
* The time the account was created
|
|
67
85
|
*/
|
|
@@ -130,12 +148,12 @@ export type V1AccountLeaderboardAccount = {
|
|
|
130
148
|
* The rank of the account
|
|
131
149
|
*/
|
|
132
150
|
rank: number;
|
|
133
|
-
region?:
|
|
151
|
+
region?: LeaderboardRegion | null | undefined;
|
|
134
152
|
/**
|
|
135
153
|
* The roles of the account
|
|
136
154
|
*/
|
|
137
155
|
roles: Array<Role> | null;
|
|
138
|
-
state?:
|
|
156
|
+
state?: LeaderboardState | null | undefined;
|
|
139
157
|
/**
|
|
140
158
|
* The steam id
|
|
141
159
|
*/
|
|
@@ -178,8 +196,8 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
178
196
|
badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$inboundSchema).optional(),
|
|
179
197
|
badges: z.number().int(),
|
|
180
198
|
bans: z.number().int(),
|
|
181
|
-
city: z.nullable(
|
|
182
|
-
country: z.nullable(
|
|
199
|
+
city: z.nullable(LeaderboardCity$inboundSchema).optional(),
|
|
200
|
+
country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
|
|
183
201
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
184
202
|
economyBan: z.string(),
|
|
185
203
|
foilBadgeCost: z.number().int(),
|
|
@@ -197,9 +215,9 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
197
215
|
pointsReceived: z.number().int(),
|
|
198
216
|
privacy: z.string(),
|
|
199
217
|
rank: z.number().int(),
|
|
200
|
-
region: z.nullable(
|
|
218
|
+
region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
|
|
201
219
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
202
|
-
state: z.nullable(
|
|
220
|
+
state: z.nullable(LeaderboardState$inboundSchema).optional(),
|
|
203
221
|
steamId: z.string(),
|
|
204
222
|
steamSetsScore: z.number().int(),
|
|
205
223
|
steamSetsVanity: z.string(),
|
|
@@ -220,8 +238,8 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
220
238
|
badgeInfo?: LeaderboardAccountBadgeInfo$Outbound | null | undefined;
|
|
221
239
|
badges: number;
|
|
222
240
|
bans: number;
|
|
223
|
-
city?:
|
|
224
|
-
country?:
|
|
241
|
+
city?: LeaderboardCity$Outbound | null | undefined;
|
|
242
|
+
country?: LeaderboardCountry$Outbound | null | undefined;
|
|
225
243
|
createdAt: string;
|
|
226
244
|
economyBan: string;
|
|
227
245
|
foilBadgeCost: number;
|
|
@@ -239,9 +257,9 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
239
257
|
pointsReceived: number;
|
|
240
258
|
privacy: string;
|
|
241
259
|
rank: number;
|
|
242
|
-
region?:
|
|
260
|
+
region?: LeaderboardRegion$Outbound | null | undefined;
|
|
243
261
|
roles: Array<Role$Outbound> | null;
|
|
244
|
-
state?:
|
|
262
|
+
state?: LeaderboardState$Outbound | null | undefined;
|
|
245
263
|
steamId: string;
|
|
246
264
|
steamSetsScore: number;
|
|
247
265
|
steamSetsVanity: string;
|
|
@@ -266,8 +284,8 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
266
284
|
badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$outboundSchema).optional(),
|
|
267
285
|
badges: z.number().int(),
|
|
268
286
|
bans: z.number().int(),
|
|
269
|
-
city: z.nullable(
|
|
270
|
-
country: z.nullable(
|
|
287
|
+
city: z.nullable(LeaderboardCity$outboundSchema).optional(),
|
|
288
|
+
country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
|
|
271
289
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
272
290
|
economyBan: z.string(),
|
|
273
291
|
foilBadgeCost: z.number().int(),
|
|
@@ -285,9 +303,9 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
285
303
|
pointsReceived: z.number().int(),
|
|
286
304
|
privacy: z.string(),
|
|
287
305
|
rank: z.number().int(),
|
|
288
|
-
region: z.nullable(
|
|
306
|
+
region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
|
|
289
307
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
290
|
-
state: z.nullable(
|
|
308
|
+
state: z.nullable(LeaderboardState$outboundSchema).optional(),
|
|
291
309
|
steamId: z.string(),
|
|
292
310
|
steamSetsScore: z.number().int(),
|
|
293
311
|
steamSetsVanity: z.string(),
|
|
@@ -13,7 +13,6 @@ export * from "./accountv1getfriends.js";
|
|
|
13
13
|
export * from "./accountv1getinfo.js";
|
|
14
14
|
export * from "./accountv1getleaderboardhistory.js";
|
|
15
15
|
export * from "./accountv1getstaff.js";
|
|
16
|
-
export * from "./accountv1leaderboardpreview.js";
|
|
17
16
|
export * from "./accountv1queue.js";
|
|
18
17
|
export * from "./accountv1sessioncreate.js";
|
|
19
18
|
export * from "./accountv1sessiondelete.js";
|