@steamsets/client-ts 0.10.3 → 0.11.0
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 +9 -0
- package/docs/sdks/account/README.md +69 -69
- package/docs/sdks/app/README.md +6 -6
- package/docs/sdks/badge/README.md +371 -0
- package/docs/sdks/connection/README.md +12 -12
- package/docs/sdks/data/README.md +24 -24
- package/docs/sdks/leaderboard/README.md +3 -3
- package/docs/sdks/liveness/README.md +3 -3
- package/docs/sdks/location/README.md +3 -3
- package/docs/sdks/public/README.md +21 -21
- package/docs/sdks/session/README.md +12 -12
- package/docs/sdks/settings/README.md +21 -21
- package/funcs/badgeBadgeV1Search.d.ts +14 -0
- package/funcs/badgeBadgeV1Search.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Search.js +97 -0
- package/funcs/badgeBadgeV1Search.js.map +1 -0
- package/funcs/badgeBadgeV1Tag.d.ts +14 -0
- package/funcs/badgeBadgeV1Tag.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Tag.js +99 -0
- package/funcs/badgeBadgeV1Tag.js.map +1 -0
- package/funcs/badgeBadgeV1Tags.d.ts +14 -0
- package/funcs/badgeBadgeV1Tags.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Tags.js +90 -0
- package/funcs/badgeBadgeV1Tags.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/accountinfobody.d.ts +18 -8
- package/models/components/accountinfobody.d.ts.map +1 -1
- package/models/components/accountinfobody.js +12 -8
- package/models/components/accountinfobody.js.map +1 -1
- package/models/components/badgesearch.d.ts +86 -0
- package/models/components/badgesearch.d.ts.map +1 -0
- package/models/components/badgesearch.js +70 -0
- package/models/components/badgesearch.js.map +1 -0
- package/models/components/colortag.d.ts +37 -0
- package/models/components/colortag.d.ts.map +1 -0
- package/models/components/colortag.js +83 -0
- package/models/components/colortag.js.map +1 -0
- package/models/components/designtag.d.ts +27 -0
- package/models/components/designtag.d.ts.map +1 -0
- package/models/components/designtag.js +63 -0
- package/models/components/designtag.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +10 -10
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +10 -10
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/role.d.ts +5 -0
- package/models/components/role.d.ts.map +1 -1
- package/models/components/role.js +2 -0
- package/models/components/role.js.map +1 -1
- package/models/components/setdesigntag.d.ts +33 -0
- package/models/components/setdesigntag.d.ts.map +1 -0
- package/models/components/setdesigntag.js +52 -0
- package/models/components/setdesigntag.js.map +1 -0
- package/models/components/v1accountfriend.d.ts +10 -10
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +10 -10
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +10 -10
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +10 -10
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1badgetagrequestbody.d.ts +39 -0
- package/models/components/v1badgetagrequestbody.d.ts.map +1 -0
- package/models/components/v1badgetagrequestbody.js +55 -0
- package/models/components/v1badgetagrequestbody.js.map +1 -0
- package/models/components/v1badgetagresponsebody.d.ts +28 -0
- package/models/components/v1badgetagresponsebody.d.ts.map +1 -0
- package/models/components/v1badgetagresponsebody.js +59 -0
- package/models/components/v1badgetagresponsebody.js.map +1 -0
- package/models/components/v1badgetagsrequestbody.d.ts +21 -0
- package/models/components/v1badgetagsrequestbody.d.ts.map +1 -0
- package/models/components/v1badgetagsrequestbody.js +46 -0
- package/models/components/v1badgetagsrequestbody.js.map +1 -0
- package/models/components/v1badgetagsresponsebody.d.ts +40 -0
- package/models/components/v1badgetagsresponsebody.d.ts.map +1 -0
- package/models/components/v1badgetagsresponsebody.js +65 -0
- package/models/components/v1badgetagsresponsebody.js.map +1 -0
- package/models/errors/errormodel.d.ts +0 -6
- package/models/errors/errormodel.d.ts.map +1 -1
- package/models/errors/errormodel.js +0 -3
- package/models/errors/errormodel.js.map +1 -1
- package/models/operations/badgev1search.d.ts +26 -0
- package/models/operations/badgev1search.d.ts.map +1 -0
- package/models/operations/badgev1search.js +60 -0
- package/models/operations/badgev1search.js.map +1 -0
- package/models/operations/badgev1tag.d.ts +31 -0
- package/models/operations/badgev1tag.d.ts.map +1 -0
- package/models/operations/badgev1tag.js +66 -0
- package/models/operations/badgev1tag.js.map +1 -0
- package/models/operations/badgev1tags.d.ts +31 -0
- package/models/operations/badgev1tags.d.ts.map +1 -0
- package/models/operations/badgev1tags.js +66 -0
- package/models/operations/badgev1tags.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +18 -0
- package/sdk/badge.d.ts.map +1 -0
- package/sdk/badge.js +33 -0
- package/sdk/badge.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/badgeBadgeV1Search.ts +127 -0
- package/src/funcs/badgeBadgeV1Tag.ts +129 -0
- package/src/funcs/badgeBadgeV1Tags.ts +116 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountinfobody.ts +32 -16
- package/src/models/components/badgesearch.ts +118 -0
- package/src/models/components/colortag.ts +90 -0
- package/src/models/components/designtag.ts +60 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/leaderboardaccount.ts +20 -20
- package/src/models/components/role.ts +7 -0
- package/src/models/components/setdesigntag.ts +55 -0
- package/src/models/components/v1accountfriend.ts +20 -20
- package/src/models/components/v1accountleaderboardaccount.ts +20 -20
- package/src/models/components/v1badgetagrequestbody.ts +68 -0
- package/src/models/components/v1badgetagresponsebody.ts +57 -0
- package/src/models/components/v1badgetagsrequestbody.ts +37 -0
- package/src/models/components/v1badgetagsresponsebody.ts +83 -0
- package/src/models/errors/errormodel.ts +0 -6
- package/src/models/operations/badgev1search.ts +55 -0
- package/src/models/operations/badgev1tag.ts +68 -0
- package/src/models/operations/badgev1tags.ts +68 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/badge.ts +55 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -51,7 +51,7 @@ export type LeaderboardAccount = {
|
|
|
51
51
|
* The number of awards the account has
|
|
52
52
|
*/
|
|
53
53
|
awardsReceived: number;
|
|
54
|
-
badgeInfo?: LeaderboardBadgeInfo | undefined;
|
|
54
|
+
badgeInfo?: LeaderboardBadgeInfo | null | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* The number of badges the account has
|
|
57
57
|
*/
|
|
@@ -60,8 +60,8 @@ export type LeaderboardAccount = {
|
|
|
60
60
|
* The number of bans
|
|
61
61
|
*/
|
|
62
62
|
bans: number;
|
|
63
|
-
city?: Location | undefined;
|
|
64
|
-
country?: Location | undefined;
|
|
63
|
+
city?: Location | null | undefined;
|
|
64
|
+
country?: Location | null | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The time the account was created
|
|
67
67
|
*/
|
|
@@ -126,12 +126,12 @@ export type LeaderboardAccount = {
|
|
|
126
126
|
* The privacy of the account
|
|
127
127
|
*/
|
|
128
128
|
privacy: string;
|
|
129
|
-
region?: Location | undefined;
|
|
129
|
+
region?: Location | null | undefined;
|
|
130
130
|
/**
|
|
131
131
|
* The roles of the account
|
|
132
132
|
*/
|
|
133
133
|
roles: Array<Role> | null;
|
|
134
|
-
state?: Location | undefined;
|
|
134
|
+
state?: Location | null | undefined;
|
|
135
135
|
/**
|
|
136
136
|
* The steam id
|
|
137
137
|
*/
|
|
@@ -171,11 +171,11 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
171
171
|
averagePlaytime: z.number().int(),
|
|
172
172
|
awardsGiven: z.number().int(),
|
|
173
173
|
awardsReceived: z.number().int(),
|
|
174
|
-
badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
|
|
174
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
175
175
|
badges: z.number().int(),
|
|
176
176
|
bans: z.number().int(),
|
|
177
|
-
city: Location$inboundSchema.optional(),
|
|
178
|
-
country: Location$inboundSchema.optional(),
|
|
177
|
+
city: z.nullable(Location$inboundSchema).optional(),
|
|
178
|
+
country: z.nullable(Location$inboundSchema).optional(),
|
|
179
179
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
180
180
|
economyBan: z.string(),
|
|
181
181
|
foilBadgeCost: z.number().int(),
|
|
@@ -192,9 +192,9 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
192
192
|
pointsGiven: z.number().int(),
|
|
193
193
|
pointsReceived: z.number().int(),
|
|
194
194
|
privacy: z.string(),
|
|
195
|
-
region: Location$inboundSchema.optional(),
|
|
195
|
+
region: z.nullable(Location$inboundSchema).optional(),
|
|
196
196
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
197
|
-
state: Location$inboundSchema.optional(),
|
|
197
|
+
state: z.nullable(Location$inboundSchema).optional(),
|
|
198
198
|
steamId: z.string(),
|
|
199
199
|
steamSetsScore: z.number().int(),
|
|
200
200
|
steamSetsVanity: z.string(),
|
|
@@ -212,11 +212,11 @@ export type LeaderboardAccount$Outbound = {
|
|
|
212
212
|
averagePlaytime: number;
|
|
213
213
|
awardsGiven: number;
|
|
214
214
|
awardsReceived: number;
|
|
215
|
-
badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
|
|
215
|
+
badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
216
216
|
badges: number;
|
|
217
217
|
bans: number;
|
|
218
|
-
city?: Location$Outbound | undefined;
|
|
219
|
-
country?: Location$Outbound | undefined;
|
|
218
|
+
city?: Location$Outbound | null | undefined;
|
|
219
|
+
country?: Location$Outbound | null | undefined;
|
|
220
220
|
createdAt: string;
|
|
221
221
|
economyBan: string;
|
|
222
222
|
foilBadgeCost: number;
|
|
@@ -233,9 +233,9 @@ export type LeaderboardAccount$Outbound = {
|
|
|
233
233
|
pointsGiven: number;
|
|
234
234
|
pointsReceived: number;
|
|
235
235
|
privacy: string;
|
|
236
|
-
region?: Location$Outbound | undefined;
|
|
236
|
+
region?: Location$Outbound | null | undefined;
|
|
237
237
|
roles: Array<Role$Outbound> | null;
|
|
238
|
-
state?: Location$Outbound | undefined;
|
|
238
|
+
state?: Location$Outbound | null | undefined;
|
|
239
239
|
steamId: string;
|
|
240
240
|
steamSetsScore: number;
|
|
241
241
|
steamSetsVanity: string;
|
|
@@ -257,11 +257,11 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
257
257
|
averagePlaytime: z.number().int(),
|
|
258
258
|
awardsGiven: z.number().int(),
|
|
259
259
|
awardsReceived: z.number().int(),
|
|
260
|
-
badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
|
|
260
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
261
261
|
badges: z.number().int(),
|
|
262
262
|
bans: z.number().int(),
|
|
263
|
-
city: Location$outboundSchema.optional(),
|
|
264
|
-
country: Location$outboundSchema.optional(),
|
|
263
|
+
city: z.nullable(Location$outboundSchema).optional(),
|
|
264
|
+
country: z.nullable(Location$outboundSchema).optional(),
|
|
265
265
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
266
266
|
economyBan: z.string(),
|
|
267
267
|
foilBadgeCost: z.number().int(),
|
|
@@ -278,9 +278,9 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
278
278
|
pointsGiven: z.number().int(),
|
|
279
279
|
pointsReceived: z.number().int(),
|
|
280
280
|
privacy: z.string(),
|
|
281
|
-
region: Location$outboundSchema.optional(),
|
|
281
|
+
region: z.nullable(Location$outboundSchema).optional(),
|
|
282
282
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
283
|
-
state: Location$outboundSchema.optional(),
|
|
283
|
+
state: z.nullable(Location$outboundSchema).optional(),
|
|
284
284
|
steamId: z.string(),
|
|
285
285
|
steamSetsScore: z.number().int(),
|
|
286
286
|
steamSetsVanity: z.string(),
|
|
@@ -38,6 +38,10 @@ export type Role = {
|
|
|
38
38
|
* The Group name
|
|
39
39
|
*/
|
|
40
40
|
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* The higher the more presedence it has
|
|
43
|
+
*/
|
|
44
|
+
rating: number;
|
|
41
45
|
role: RoleRole;
|
|
42
46
|
};
|
|
43
47
|
|
|
@@ -66,6 +70,7 @@ export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
|
|
|
66
70
|
colorr: z.string(),
|
|
67
71
|
icon: z.string(),
|
|
68
72
|
name: z.string(),
|
|
73
|
+
rating: z.number().int(),
|
|
69
74
|
role: RoleRole$inboundSchema,
|
|
70
75
|
});
|
|
71
76
|
|
|
@@ -74,6 +79,7 @@ export type Role$Outbound = {
|
|
|
74
79
|
colorr: string;
|
|
75
80
|
icon: string;
|
|
76
81
|
name: string;
|
|
82
|
+
rating: number;
|
|
77
83
|
role: string;
|
|
78
84
|
};
|
|
79
85
|
|
|
@@ -83,6 +89,7 @@ export const Role$outboundSchema: z.ZodType<Role$Outbound, z.ZodTypeDef, Role> =
|
|
|
83
89
|
colorr: z.string(),
|
|
84
90
|
icon: z.string(),
|
|
85
91
|
name: z.string(),
|
|
92
|
+
rating: z.number().int(),
|
|
86
93
|
role: RoleRole$outboundSchema,
|
|
87
94
|
});
|
|
88
95
|
|
|
@@ -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 SetDesignTag = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the design/color
|
|
10
|
+
*/
|
|
11
|
+
id?: number | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The tag to add to the database
|
|
14
|
+
*/
|
|
15
|
+
name?: string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const SetDesignTag$inboundSchema: z.ZodType<
|
|
20
|
+
SetDesignTag,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.nullable(z.number().int()).optional(),
|
|
25
|
+
name: z.nullable(z.string()).optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SetDesignTag$Outbound = {
|
|
30
|
+
id?: number | null | undefined;
|
|
31
|
+
name?: string | null | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SetDesignTag$outboundSchema: z.ZodType<
|
|
36
|
+
SetDesignTag$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SetDesignTag
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.nullable(z.number().int()).optional(),
|
|
41
|
+
name: z.nullable(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 SetDesignTag$ {
|
|
49
|
+
/** @deprecated use `SetDesignTag$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = SetDesignTag$inboundSchema;
|
|
51
|
+
/** @deprecated use `SetDesignTag$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = SetDesignTag$outboundSchema;
|
|
53
|
+
/** @deprecated use `SetDesignTag$Outbound` instead. */
|
|
54
|
+
export type Outbound = SetDesignTag$Outbound;
|
|
55
|
+
}
|
|
@@ -51,7 +51,7 @@ export type V1AccountFriend = {
|
|
|
51
51
|
* The number of awards the account has
|
|
52
52
|
*/
|
|
53
53
|
awardsReceived: number;
|
|
54
|
-
badgeInfo?: LeaderboardBadgeInfo | undefined;
|
|
54
|
+
badgeInfo?: LeaderboardBadgeInfo | null | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* The number of badges the account has
|
|
57
57
|
*/
|
|
@@ -60,8 +60,8 @@ export type V1AccountFriend = {
|
|
|
60
60
|
* The number of bans
|
|
61
61
|
*/
|
|
62
62
|
bans: number;
|
|
63
|
-
city?: Location | undefined;
|
|
64
|
-
country?: Location | undefined;
|
|
63
|
+
city?: Location | null | undefined;
|
|
64
|
+
country?: Location | null | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The time the account was created
|
|
67
67
|
*/
|
|
@@ -127,12 +127,12 @@ export type V1AccountFriend = {
|
|
|
127
127
|
* The privacy of the account
|
|
128
128
|
*/
|
|
129
129
|
privacy: string;
|
|
130
|
-
region?: Location | undefined;
|
|
130
|
+
region?: Location | null | undefined;
|
|
131
131
|
/**
|
|
132
132
|
* The roles of the account
|
|
133
133
|
*/
|
|
134
134
|
roles: Array<Role> | null;
|
|
135
|
-
state?: Location | undefined;
|
|
135
|
+
state?: Location | null | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* The steam id
|
|
138
138
|
*/
|
|
@@ -172,11 +172,11 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
172
172
|
averagePlaytime: z.number().int(),
|
|
173
173
|
awardsGiven: z.number().int(),
|
|
174
174
|
awardsReceived: z.number().int(),
|
|
175
|
-
badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
|
|
175
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
176
176
|
badges: z.number().int(),
|
|
177
177
|
bans: z.number().int(),
|
|
178
|
-
city: Location$inboundSchema.optional(),
|
|
179
|
-
country: Location$inboundSchema.optional(),
|
|
178
|
+
city: z.nullable(Location$inboundSchema).optional(),
|
|
179
|
+
country: z.nullable(Location$inboundSchema).optional(),
|
|
180
180
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
181
181
|
economyBan: z.string(),
|
|
182
182
|
foilBadgeCost: z.number().int(),
|
|
@@ -196,9 +196,9 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
196
196
|
pointsGiven: z.number().int(),
|
|
197
197
|
pointsReceived: z.number().int(),
|
|
198
198
|
privacy: z.string(),
|
|
199
|
-
region: Location$inboundSchema.optional(),
|
|
199
|
+
region: z.nullable(Location$inboundSchema).optional(),
|
|
200
200
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
201
|
-
state: Location$inboundSchema.optional(),
|
|
201
|
+
state: z.nullable(Location$inboundSchema).optional(),
|
|
202
202
|
steamId: z.string(),
|
|
203
203
|
steamSetsScore: z.number().int(),
|
|
204
204
|
steamSetsVanity: z.string(),
|
|
@@ -216,11 +216,11 @@ export type V1AccountFriend$Outbound = {
|
|
|
216
216
|
averagePlaytime: number;
|
|
217
217
|
awardsGiven: number;
|
|
218
218
|
awardsReceived: number;
|
|
219
|
-
badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
|
|
219
|
+
badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
220
220
|
badges: number;
|
|
221
221
|
bans: number;
|
|
222
|
-
city?: Location$Outbound | undefined;
|
|
223
|
-
country?: Location$Outbound | undefined;
|
|
222
|
+
city?: Location$Outbound | null | undefined;
|
|
223
|
+
country?: Location$Outbound | null | undefined;
|
|
224
224
|
createdAt: string;
|
|
225
225
|
economyBan: string;
|
|
226
226
|
foilBadgeCost: number;
|
|
@@ -238,9 +238,9 @@ export type V1AccountFriend$Outbound = {
|
|
|
238
238
|
pointsGiven: number;
|
|
239
239
|
pointsReceived: number;
|
|
240
240
|
privacy: string;
|
|
241
|
-
region?: Location$Outbound | undefined;
|
|
241
|
+
region?: Location$Outbound | null | undefined;
|
|
242
242
|
roles: Array<Role$Outbound> | null;
|
|
243
|
-
state?: Location$Outbound | undefined;
|
|
243
|
+
state?: Location$Outbound | null | undefined;
|
|
244
244
|
steamId: string;
|
|
245
245
|
steamSetsScore: number;
|
|
246
246
|
steamSetsVanity: string;
|
|
@@ -262,11 +262,11 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
262
262
|
averagePlaytime: z.number().int(),
|
|
263
263
|
awardsGiven: z.number().int(),
|
|
264
264
|
awardsReceived: z.number().int(),
|
|
265
|
-
badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
|
|
265
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
266
266
|
badges: z.number().int(),
|
|
267
267
|
bans: z.number().int(),
|
|
268
|
-
city: Location$outboundSchema.optional(),
|
|
269
|
-
country: Location$outboundSchema.optional(),
|
|
268
|
+
city: z.nullable(Location$outboundSchema).optional(),
|
|
269
|
+
country: z.nullable(Location$outboundSchema).optional(),
|
|
270
270
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
271
271
|
economyBan: z.string(),
|
|
272
272
|
foilBadgeCost: z.number().int(),
|
|
@@ -284,9 +284,9 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
284
284
|
pointsGiven: z.number().int(),
|
|
285
285
|
pointsReceived: z.number().int(),
|
|
286
286
|
privacy: z.string(),
|
|
287
|
-
region: Location$outboundSchema.optional(),
|
|
287
|
+
region: z.nullable(Location$outboundSchema).optional(),
|
|
288
288
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
289
|
-
state: Location$outboundSchema.optional(),
|
|
289
|
+
state: z.nullable(Location$outboundSchema).optional(),
|
|
290
290
|
steamId: z.string(),
|
|
291
291
|
steamSetsScore: z.number().int(),
|
|
292
292
|
steamSetsVanity: z.string(),
|
|
@@ -51,7 +51,7 @@ export type V1AccountLeaderboardAccount = {
|
|
|
51
51
|
* The number of awards the account has
|
|
52
52
|
*/
|
|
53
53
|
awardsReceived: number;
|
|
54
|
-
badgeInfo?: LeaderboardBadgeInfo | undefined;
|
|
54
|
+
badgeInfo?: LeaderboardBadgeInfo | null | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* The number of badges the account has
|
|
57
57
|
*/
|
|
@@ -60,8 +60,8 @@ export type V1AccountLeaderboardAccount = {
|
|
|
60
60
|
* The number of bans
|
|
61
61
|
*/
|
|
62
62
|
bans: number;
|
|
63
|
-
city?: Location | undefined;
|
|
64
|
-
country?: Location | undefined;
|
|
63
|
+
city?: Location | null | undefined;
|
|
64
|
+
country?: Location | null | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The time the account was created
|
|
67
67
|
*/
|
|
@@ -130,12 +130,12 @@ export type V1AccountLeaderboardAccount = {
|
|
|
130
130
|
* The rank of the account
|
|
131
131
|
*/
|
|
132
132
|
rank: number;
|
|
133
|
-
region?: Location | undefined;
|
|
133
|
+
region?: Location | null | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* The roles of the account
|
|
136
136
|
*/
|
|
137
137
|
roles: Array<Role> | null;
|
|
138
|
-
state?: Location | undefined;
|
|
138
|
+
state?: Location | null | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* The steam id
|
|
141
141
|
*/
|
|
@@ -175,11 +175,11 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
175
175
|
averagePlaytime: z.number().int(),
|
|
176
176
|
awardsGiven: z.number().int(),
|
|
177
177
|
awardsReceived: z.number().int(),
|
|
178
|
-
badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
|
|
178
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
179
179
|
badges: z.number().int(),
|
|
180
180
|
bans: z.number().int(),
|
|
181
|
-
city: Location$inboundSchema.optional(),
|
|
182
|
-
country: Location$inboundSchema.optional(),
|
|
181
|
+
city: z.nullable(Location$inboundSchema).optional(),
|
|
182
|
+
country: z.nullable(Location$inboundSchema).optional(),
|
|
183
183
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
184
184
|
economyBan: z.string(),
|
|
185
185
|
foilBadgeCost: z.number().int(),
|
|
@@ -197,9 +197,9 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
197
197
|
pointsReceived: z.number().int(),
|
|
198
198
|
privacy: z.string(),
|
|
199
199
|
rank: z.number().int(),
|
|
200
|
-
region: Location$inboundSchema.optional(),
|
|
200
|
+
region: z.nullable(Location$inboundSchema).optional(),
|
|
201
201
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
202
|
-
state: Location$inboundSchema.optional(),
|
|
202
|
+
state: z.nullable(Location$inboundSchema).optional(),
|
|
203
203
|
steamId: z.string(),
|
|
204
204
|
steamSetsScore: z.number().int(),
|
|
205
205
|
steamSetsVanity: z.string(),
|
|
@@ -217,11 +217,11 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
217
217
|
averagePlaytime: number;
|
|
218
218
|
awardsGiven: number;
|
|
219
219
|
awardsReceived: number;
|
|
220
|
-
badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
|
|
220
|
+
badgeInfo?: LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
221
221
|
badges: number;
|
|
222
222
|
bans: number;
|
|
223
|
-
city?: Location$Outbound | undefined;
|
|
224
|
-
country?: Location$Outbound | undefined;
|
|
223
|
+
city?: Location$Outbound | null | undefined;
|
|
224
|
+
country?: Location$Outbound | null | undefined;
|
|
225
225
|
createdAt: string;
|
|
226
226
|
economyBan: string;
|
|
227
227
|
foilBadgeCost: number;
|
|
@@ -239,9 +239,9 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
239
239
|
pointsReceived: number;
|
|
240
240
|
privacy: string;
|
|
241
241
|
rank: number;
|
|
242
|
-
region?: Location$Outbound | undefined;
|
|
242
|
+
region?: Location$Outbound | null | undefined;
|
|
243
243
|
roles: Array<Role$Outbound> | null;
|
|
244
|
-
state?: Location$Outbound | undefined;
|
|
244
|
+
state?: Location$Outbound | null | undefined;
|
|
245
245
|
steamId: string;
|
|
246
246
|
steamSetsScore: number;
|
|
247
247
|
steamSetsVanity: string;
|
|
@@ -263,11 +263,11 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
263
263
|
averagePlaytime: z.number().int(),
|
|
264
264
|
awardsGiven: z.number().int(),
|
|
265
265
|
awardsReceived: z.number().int(),
|
|
266
|
-
badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
|
|
266
|
+
badgeInfo: z.nullable(LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
267
267
|
badges: z.number().int(),
|
|
268
268
|
bans: z.number().int(),
|
|
269
|
-
city: Location$outboundSchema.optional(),
|
|
270
|
-
country: Location$outboundSchema.optional(),
|
|
269
|
+
city: z.nullable(Location$outboundSchema).optional(),
|
|
270
|
+
country: z.nullable(Location$outboundSchema).optional(),
|
|
271
271
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
272
272
|
economyBan: z.string(),
|
|
273
273
|
foilBadgeCost: z.number().int(),
|
|
@@ -285,9 +285,9 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
285
285
|
pointsReceived: z.number().int(),
|
|
286
286
|
privacy: z.string(),
|
|
287
287
|
rank: z.number().int(),
|
|
288
|
-
region: Location$outboundSchema.optional(),
|
|
288
|
+
region: z.nullable(Location$outboundSchema).optional(),
|
|
289
289
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
290
|
-
state: Location$outboundSchema.optional(),
|
|
290
|
+
state: z.nullable(Location$outboundSchema).optional(),
|
|
291
291
|
steamId: z.string(),
|
|
292
292
|
steamSetsScore: z.number().int(),
|
|
293
293
|
steamSetsVanity: z.string(),
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
SetDesignTag,
|
|
8
|
+
SetDesignTag$inboundSchema,
|
|
9
|
+
SetDesignTag$Outbound,
|
|
10
|
+
SetDesignTag$outboundSchema,
|
|
11
|
+
} from "./setdesigntag.js";
|
|
12
|
+
|
|
13
|
+
export type V1BadgeTagRequestBody = {
|
|
14
|
+
/**
|
|
15
|
+
* The badge id
|
|
16
|
+
*/
|
|
17
|
+
badgeId: string;
|
|
18
|
+
/**
|
|
19
|
+
* All the colors of the badge
|
|
20
|
+
*/
|
|
21
|
+
colors: Array<number> | null;
|
|
22
|
+
/**
|
|
23
|
+
* All the designs of the badge
|
|
24
|
+
*/
|
|
25
|
+
designs: Array<SetDesignTag> | null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const V1BadgeTagRequestBody$inboundSchema: z.ZodType<
|
|
30
|
+
V1BadgeTagRequestBody,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
badgeId: z.string(),
|
|
35
|
+
colors: z.nullable(z.array(z.number().int())),
|
|
36
|
+
designs: z.nullable(z.array(SetDesignTag$inboundSchema)),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type V1BadgeTagRequestBody$Outbound = {
|
|
41
|
+
badgeId: string;
|
|
42
|
+
colors: Array<number> | null;
|
|
43
|
+
designs: Array<SetDesignTag$Outbound> | null;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const V1BadgeTagRequestBody$outboundSchema: z.ZodType<
|
|
48
|
+
V1BadgeTagRequestBody$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
V1BadgeTagRequestBody
|
|
51
|
+
> = z.object({
|
|
52
|
+
badgeId: z.string(),
|
|
53
|
+
colors: z.nullable(z.array(z.number().int())),
|
|
54
|
+
designs: z.nullable(z.array(SetDesignTag$outboundSchema)),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace V1BadgeTagRequestBody$ {
|
|
62
|
+
/** @deprecated use `V1BadgeTagRequestBody$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = V1BadgeTagRequestBody$inboundSchema;
|
|
64
|
+
/** @deprecated use `V1BadgeTagRequestBody$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = V1BadgeTagRequestBody$outboundSchema;
|
|
66
|
+
/** @deprecated use `V1BadgeTagRequestBody$Outbound` instead. */
|
|
67
|
+
export type Outbound = V1BadgeTagRequestBody$Outbound;
|
|
68
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type V1BadgeTagResponseBody = {
|
|
9
|
+
/**
|
|
10
|
+
* A URL to the JSON Schema for this object.
|
|
11
|
+
*/
|
|
12
|
+
dollarSchema?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const V1BadgeTagResponseBody$inboundSchema: z.ZodType<
|
|
17
|
+
V1BadgeTagResponseBody,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
$schema: z.string().optional(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"$schema": "dollarSchema",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type V1BadgeTagResponseBody$Outbound = {
|
|
30
|
+
$schema?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const V1BadgeTagResponseBody$outboundSchema: z.ZodType<
|
|
35
|
+
V1BadgeTagResponseBody$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
V1BadgeTagResponseBody
|
|
38
|
+
> = z.object({
|
|
39
|
+
dollarSchema: z.string().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
dollarSchema: "$schema",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace V1BadgeTagResponseBody$ {
|
|
51
|
+
/** @deprecated use `V1BadgeTagResponseBody$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = V1BadgeTagResponseBody$inboundSchema;
|
|
53
|
+
/** @deprecated use `V1BadgeTagResponseBody$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = V1BadgeTagResponseBody$outboundSchema;
|
|
55
|
+
/** @deprecated use `V1BadgeTagResponseBody$Outbound` instead. */
|
|
56
|
+
export type Outbound = V1BadgeTagResponseBody$Outbound;
|
|
57
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1BadgeTagsRequestBody = {};
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const V1BadgeTagsRequestBody$inboundSchema: z.ZodType<
|
|
11
|
+
V1BadgeTagsRequestBody,
|
|
12
|
+
z.ZodTypeDef,
|
|
13
|
+
unknown
|
|
14
|
+
> = z.object({});
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type V1BadgeTagsRequestBody$Outbound = {};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const V1BadgeTagsRequestBody$outboundSchema: z.ZodType<
|
|
21
|
+
V1BadgeTagsRequestBody$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
V1BadgeTagsRequestBody
|
|
24
|
+
> = z.object({});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export namespace V1BadgeTagsRequestBody$ {
|
|
31
|
+
/** @deprecated use `V1BadgeTagsRequestBody$inboundSchema` instead. */
|
|
32
|
+
export const inboundSchema = V1BadgeTagsRequestBody$inboundSchema;
|
|
33
|
+
/** @deprecated use `V1BadgeTagsRequestBody$outboundSchema` instead. */
|
|
34
|
+
export const outboundSchema = V1BadgeTagsRequestBody$outboundSchema;
|
|
35
|
+
/** @deprecated use `V1BadgeTagsRequestBody$Outbound` instead. */
|
|
36
|
+
export type Outbound = V1BadgeTagsRequestBody$Outbound;
|
|
37
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
ColorTag,
|
|
9
|
+
ColorTag$inboundSchema,
|
|
10
|
+
ColorTag$Outbound,
|
|
11
|
+
ColorTag$outboundSchema,
|
|
12
|
+
} from "./colortag.js";
|
|
13
|
+
import {
|
|
14
|
+
DesignTag,
|
|
15
|
+
DesignTag$inboundSchema,
|
|
16
|
+
DesignTag$Outbound,
|
|
17
|
+
DesignTag$outboundSchema,
|
|
18
|
+
} from "./designtag.js";
|
|
19
|
+
|
|
20
|
+
export type V1BadgeTagsResponseBody = {
|
|
21
|
+
/**
|
|
22
|
+
* A URL to the JSON Schema for this object.
|
|
23
|
+
*/
|
|
24
|
+
dollarSchema?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The availiable color tags
|
|
27
|
+
*/
|
|
28
|
+
colorTags: Array<ColorTag> | null;
|
|
29
|
+
/**
|
|
30
|
+
* The availiable design tags
|
|
31
|
+
*/
|
|
32
|
+
designTags: Array<DesignTag> | null;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const V1BadgeTagsResponseBody$inboundSchema: z.ZodType<
|
|
37
|
+
V1BadgeTagsResponseBody,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
$schema: z.string().optional(),
|
|
42
|
+
colorTags: z.nullable(z.array(ColorTag$inboundSchema)),
|
|
43
|
+
designTags: z.nullable(z.array(DesignTag$inboundSchema)),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"$schema": "dollarSchema",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type V1BadgeTagsResponseBody$Outbound = {
|
|
52
|
+
$schema?: string | undefined;
|
|
53
|
+
colorTags: Array<ColorTag$Outbound> | null;
|
|
54
|
+
designTags: Array<DesignTag$Outbound> | null;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const V1BadgeTagsResponseBody$outboundSchema: z.ZodType<
|
|
59
|
+
V1BadgeTagsResponseBody$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
V1BadgeTagsResponseBody
|
|
62
|
+
> = z.object({
|
|
63
|
+
dollarSchema: z.string().optional(),
|
|
64
|
+
colorTags: z.nullable(z.array(ColorTag$outboundSchema)),
|
|
65
|
+
designTags: z.nullable(z.array(DesignTag$outboundSchema)),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
dollarSchema: "$schema",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace V1BadgeTagsResponseBody$ {
|
|
77
|
+
/** @deprecated use `V1BadgeTagsResponseBody$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = V1BadgeTagsResponseBody$inboundSchema;
|
|
79
|
+
/** @deprecated use `V1BadgeTagsResponseBody$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = V1BadgeTagsResponseBody$outboundSchema;
|
|
81
|
+
/** @deprecated use `V1BadgeTagsResponseBody$Outbound` instead. */
|
|
82
|
+
export type Outbound = V1BadgeTagsResponseBody$Outbound;
|
|
83
|
+
}
|