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