@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
package/src/lib/security.ts
CHANGED
|
@@ -71,13 +71,20 @@ type SecurityInputOAuth2ClientCredentials = {
|
|
|
71
71
|
fieldName: string;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
+
type SecurityInputCustom = {
|
|
75
|
+
type: "http:custom";
|
|
76
|
+
value: any | null | undefined;
|
|
77
|
+
fieldName: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
74
80
|
export type SecurityInput =
|
|
75
81
|
| SecurityInputBasic
|
|
76
82
|
| SecurityInputBearer
|
|
77
83
|
| SecurityInputAPIKey
|
|
78
84
|
| SecurityInputOAuth2
|
|
79
85
|
| SecurityInputOAuth2ClientCredentials
|
|
80
|
-
| SecurityInputOIDC
|
|
86
|
+
| SecurityInputOIDC
|
|
87
|
+
| SecurityInputCustom;
|
|
81
88
|
|
|
82
89
|
export function resolveSecurity(...options: SecurityInput[][]): SecurityState | null {
|
|
83
90
|
const state: SecurityState = {
|
|
@@ -93,6 +100,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
|
|
|
93
100
|
return false;
|
|
94
101
|
} else if (o.type === "http:basic") {
|
|
95
102
|
return o.value.username != null || o.value.password != null;
|
|
103
|
+
} else if (o.type === "http:custom") {
|
|
104
|
+
return null;
|
|
96
105
|
} else if (typeof o.value === "string") {
|
|
97
106
|
return !!o.value;
|
|
98
107
|
} else {
|
|
@@ -126,6 +135,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
|
|
|
126
135
|
case "http:basic":
|
|
127
136
|
applyBasic(state, spec);
|
|
128
137
|
break;
|
|
138
|
+
case "http:custom":
|
|
139
|
+
break;
|
|
129
140
|
case "http:bearer":
|
|
130
141
|
applyBearer(state, spec);
|
|
131
142
|
break;
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
BestLeaderboardRank,
|
|
9
|
+
BestLeaderboardRank$inboundSchema,
|
|
10
|
+
BestLeaderboardRank$Outbound,
|
|
11
|
+
BestLeaderboardRank$outboundSchema,
|
|
12
|
+
} from "./bestleaderboardrank.js";
|
|
13
|
+
import {
|
|
14
|
+
Connection,
|
|
15
|
+
Connection$inboundSchema,
|
|
16
|
+
Connection$Outbound,
|
|
17
|
+
Connection$outboundSchema,
|
|
18
|
+
} from "./connection.js";
|
|
19
|
+
import { Image, Image$inboundSchema, Image$Outbound, Image$outboundSchema } from "./image.js";
|
|
20
|
+
import {
|
|
21
|
+
Location,
|
|
22
|
+
Location$inboundSchema,
|
|
23
|
+
Location$Outbound,
|
|
24
|
+
Location$outboundSchema,
|
|
25
|
+
} from "./location.js";
|
|
26
|
+
import { Role, Role$inboundSchema, Role$Outbound, Role$outboundSchema } from "./role.js";
|
|
27
|
+
import * as z from "zod";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The privacy of the account
|
|
31
|
+
*/
|
|
32
|
+
export const AppPrivacy = {
|
|
33
|
+
Private: "private",
|
|
34
|
+
Public: "public",
|
|
35
|
+
FriendsOnly: "friends_only",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* The privacy of the account
|
|
39
|
+
*/
|
|
40
|
+
export type AppPrivacy = ClosedEnum<typeof AppPrivacy>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The privacy of the account
|
|
44
|
+
*/
|
|
45
|
+
export const FriendPrivacy = {
|
|
46
|
+
Private: "private",
|
|
47
|
+
Public: "public",
|
|
48
|
+
FriendsOnly: "friends_only",
|
|
49
|
+
} as const;
|
|
50
|
+
/**
|
|
51
|
+
* The privacy of the account
|
|
52
|
+
*/
|
|
53
|
+
export type FriendPrivacy = ClosedEnum<typeof FriendPrivacy>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The privacy of the account
|
|
57
|
+
*/
|
|
58
|
+
export const Privacy = {
|
|
59
|
+
Private: "private",
|
|
60
|
+
Public: "public",
|
|
61
|
+
FriendsOnly: "friends_only",
|
|
62
|
+
} as const;
|
|
63
|
+
/**
|
|
64
|
+
* The privacy of the account
|
|
65
|
+
*/
|
|
66
|
+
export type Privacy = ClosedEnum<typeof Privacy>;
|
|
67
|
+
|
|
68
|
+
export type AccountInfoBody = {
|
|
69
|
+
/**
|
|
70
|
+
* A URL to the JSON Schema for this object.
|
|
71
|
+
*/
|
|
72
|
+
dollarSchema?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The account id
|
|
75
|
+
*/
|
|
76
|
+
accountId: number;
|
|
77
|
+
/**
|
|
78
|
+
* The animated avatar of the account
|
|
79
|
+
*/
|
|
80
|
+
animatedAvatar: string;
|
|
81
|
+
/**
|
|
82
|
+
* The cost of an app
|
|
83
|
+
*/
|
|
84
|
+
appCost: number;
|
|
85
|
+
/**
|
|
86
|
+
* The privacy of the account
|
|
87
|
+
*/
|
|
88
|
+
appPrivacy: AppPrivacy;
|
|
89
|
+
/**
|
|
90
|
+
* The number of apps the account has
|
|
91
|
+
*/
|
|
92
|
+
apps: number;
|
|
93
|
+
/**
|
|
94
|
+
* The time the apps were updated
|
|
95
|
+
*/
|
|
96
|
+
appsUpdatedAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* The avatar hash of the account
|
|
99
|
+
*/
|
|
100
|
+
avatar: string;
|
|
101
|
+
/**
|
|
102
|
+
* The avatar frame of the account
|
|
103
|
+
*/
|
|
104
|
+
avatarFrame: string;
|
|
105
|
+
/**
|
|
106
|
+
* The average playtime of the account
|
|
107
|
+
*/
|
|
108
|
+
averagePlaytime: number;
|
|
109
|
+
/**
|
|
110
|
+
* The number of awards the account has
|
|
111
|
+
*/
|
|
112
|
+
awardsGiven: number;
|
|
113
|
+
/**
|
|
114
|
+
* The number of awards the account has
|
|
115
|
+
*/
|
|
116
|
+
awardsReceived: number;
|
|
117
|
+
/**
|
|
118
|
+
* The background of the account
|
|
119
|
+
*/
|
|
120
|
+
background: string;
|
|
121
|
+
/**
|
|
122
|
+
* The number of badges the account has
|
|
123
|
+
*/
|
|
124
|
+
badges: number;
|
|
125
|
+
/**
|
|
126
|
+
* The time the badges were updated
|
|
127
|
+
*/
|
|
128
|
+
badgesUpdatedAt: Date;
|
|
129
|
+
/**
|
|
130
|
+
* The number of bans
|
|
131
|
+
*/
|
|
132
|
+
bans: number;
|
|
133
|
+
city?: Location | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* The connections of the account
|
|
136
|
+
*/
|
|
137
|
+
connections: Array<Connection> | null;
|
|
138
|
+
country?: Location | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* The time the account was created
|
|
141
|
+
*/
|
|
142
|
+
createdAt: Date;
|
|
143
|
+
/**
|
|
144
|
+
* The current best ranks
|
|
145
|
+
*/
|
|
146
|
+
currentBestRanks: Array<BestLeaderboardRank> | null;
|
|
147
|
+
/**
|
|
148
|
+
* The current ranks
|
|
149
|
+
*/
|
|
150
|
+
currentRanks: Array<BestLeaderboardRank> | null;
|
|
151
|
+
/**
|
|
152
|
+
* The economy ban of the account
|
|
153
|
+
*/
|
|
154
|
+
economyBan: string;
|
|
155
|
+
/**
|
|
156
|
+
* The cost of a foil badge
|
|
157
|
+
*/
|
|
158
|
+
foilBadgeCost: number;
|
|
159
|
+
/**
|
|
160
|
+
* The number of foil badges the account has
|
|
161
|
+
*/
|
|
162
|
+
foilBadges: number;
|
|
163
|
+
/**
|
|
164
|
+
* The privacy of the account
|
|
165
|
+
*/
|
|
166
|
+
friendPrivacy: FriendPrivacy;
|
|
167
|
+
/**
|
|
168
|
+
* The number of friends the account has
|
|
169
|
+
*/
|
|
170
|
+
friends: number;
|
|
171
|
+
/**
|
|
172
|
+
* The time the friends were updated
|
|
173
|
+
*/
|
|
174
|
+
friendsUpdatedAt: Date;
|
|
175
|
+
/**
|
|
176
|
+
* The number of game bans
|
|
177
|
+
*/
|
|
178
|
+
gameBans: number;
|
|
179
|
+
/**
|
|
180
|
+
* Whether the account is hidden in the leaderboards
|
|
181
|
+
*/
|
|
182
|
+
hidden: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* The images of the account
|
|
185
|
+
*/
|
|
186
|
+
images: Array<Image> | null;
|
|
187
|
+
/**
|
|
188
|
+
* The level of the account
|
|
189
|
+
*/
|
|
190
|
+
level: number;
|
|
191
|
+
/**
|
|
192
|
+
* The number of limited apps the account has
|
|
193
|
+
*/
|
|
194
|
+
limitedApps: number;
|
|
195
|
+
/**
|
|
196
|
+
* The mini background of the account
|
|
197
|
+
*/
|
|
198
|
+
miniBackground: string;
|
|
199
|
+
/**
|
|
200
|
+
* The name of the account
|
|
201
|
+
*/
|
|
202
|
+
name: string;
|
|
203
|
+
/**
|
|
204
|
+
* The cost of a normal badge
|
|
205
|
+
*/
|
|
206
|
+
normalBadgeCost: number;
|
|
207
|
+
/**
|
|
208
|
+
* The number of normal badges the account has
|
|
209
|
+
*/
|
|
210
|
+
normalBadges: number;
|
|
211
|
+
/**
|
|
212
|
+
* The playtime of the account
|
|
213
|
+
*/
|
|
214
|
+
playtime: number;
|
|
215
|
+
/**
|
|
216
|
+
* The number of points the account has
|
|
217
|
+
*/
|
|
218
|
+
pointsGiven: number;
|
|
219
|
+
/**
|
|
220
|
+
* The number of points the account has
|
|
221
|
+
*/
|
|
222
|
+
pointsReceived: number;
|
|
223
|
+
/**
|
|
224
|
+
* The privacy of the account
|
|
225
|
+
*/
|
|
226
|
+
privacy: Privacy;
|
|
227
|
+
region?: Location | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* The roles of the account
|
|
230
|
+
*/
|
|
231
|
+
roles: Array<Role> | null;
|
|
232
|
+
state?: Location | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* The steam id
|
|
235
|
+
*/
|
|
236
|
+
steamId: string;
|
|
237
|
+
/**
|
|
238
|
+
* The steam sets score
|
|
239
|
+
*/
|
|
240
|
+
steamSetsScore: number;
|
|
241
|
+
/**
|
|
242
|
+
* The vanity of the account
|
|
243
|
+
*/
|
|
244
|
+
steamSetsVanity: string;
|
|
245
|
+
/**
|
|
246
|
+
* The vanity of the account
|
|
247
|
+
*/
|
|
248
|
+
steamVanity: string;
|
|
249
|
+
/**
|
|
250
|
+
* The theme of the account
|
|
251
|
+
*/
|
|
252
|
+
theme: string;
|
|
253
|
+
/**
|
|
254
|
+
* The time the account was updated
|
|
255
|
+
*/
|
|
256
|
+
updatedAt: Date;
|
|
257
|
+
/**
|
|
258
|
+
* The number of vac bans
|
|
259
|
+
*/
|
|
260
|
+
vacBans: number;
|
|
261
|
+
/**
|
|
262
|
+
* The number of xp the account has
|
|
263
|
+
*/
|
|
264
|
+
xp: number;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const AppPrivacy$inboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
|
|
269
|
+
z.nativeEnum(AppPrivacy);
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const AppPrivacy$outboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
|
|
273
|
+
AppPrivacy$inboundSchema;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
278
|
+
*/
|
|
279
|
+
export namespace AppPrivacy$ {
|
|
280
|
+
/** @deprecated use `AppPrivacy$inboundSchema` instead. */
|
|
281
|
+
export const inboundSchema = AppPrivacy$inboundSchema;
|
|
282
|
+
/** @deprecated use `AppPrivacy$outboundSchema` instead. */
|
|
283
|
+
export const outboundSchema = AppPrivacy$outboundSchema;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const FriendPrivacy$inboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
|
|
288
|
+
z.nativeEnum(FriendPrivacy);
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const FriendPrivacy$outboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
|
|
292
|
+
FriendPrivacy$inboundSchema;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
297
|
+
*/
|
|
298
|
+
export namespace FriendPrivacy$ {
|
|
299
|
+
/** @deprecated use `FriendPrivacy$inboundSchema` instead. */
|
|
300
|
+
export const inboundSchema = FriendPrivacy$inboundSchema;
|
|
301
|
+
/** @deprecated use `FriendPrivacy$outboundSchema` instead. */
|
|
302
|
+
export const outboundSchema = FriendPrivacy$outboundSchema;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const Privacy$inboundSchema: z.ZodNativeEnum<typeof Privacy> = z.nativeEnum(Privacy);
|
|
307
|
+
|
|
308
|
+
/** @internal */
|
|
309
|
+
export const Privacy$outboundSchema: z.ZodNativeEnum<typeof Privacy> = Privacy$inboundSchema;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
314
|
+
*/
|
|
315
|
+
export namespace Privacy$ {
|
|
316
|
+
/** @deprecated use `Privacy$inboundSchema` instead. */
|
|
317
|
+
export const inboundSchema = Privacy$inboundSchema;
|
|
318
|
+
/** @deprecated use `Privacy$outboundSchema` instead. */
|
|
319
|
+
export const outboundSchema = Privacy$outboundSchema;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const AccountInfoBody$inboundSchema: z.ZodType<AccountInfoBody, z.ZodTypeDef, unknown> = z
|
|
324
|
+
.object({
|
|
325
|
+
$schema: z.string().optional(),
|
|
326
|
+
accountId: z.number().int(),
|
|
327
|
+
animatedAvatar: z.string(),
|
|
328
|
+
appCost: z.number().int(),
|
|
329
|
+
appPrivacy: AppPrivacy$inboundSchema,
|
|
330
|
+
apps: z.number().int(),
|
|
331
|
+
appsUpdatedAt: z
|
|
332
|
+
.string()
|
|
333
|
+
.datetime({ offset: true })
|
|
334
|
+
.transform((v) => new Date(v)),
|
|
335
|
+
avatar: z.string(),
|
|
336
|
+
avatarFrame: z.string(),
|
|
337
|
+
averagePlaytime: z.number().int(),
|
|
338
|
+
awardsGiven: z.number().int(),
|
|
339
|
+
awardsReceived: z.number().int(),
|
|
340
|
+
background: z.string(),
|
|
341
|
+
badges: z.number().int(),
|
|
342
|
+
badgesUpdatedAt: z
|
|
343
|
+
.string()
|
|
344
|
+
.datetime({ offset: true })
|
|
345
|
+
.transform((v) => new Date(v)),
|
|
346
|
+
bans: z.number().int(),
|
|
347
|
+
city: Location$inboundSchema.optional(),
|
|
348
|
+
connections: z.nullable(z.array(Connection$inboundSchema)),
|
|
349
|
+
country: Location$inboundSchema.optional(),
|
|
350
|
+
createdAt: z
|
|
351
|
+
.string()
|
|
352
|
+
.datetime({ offset: true })
|
|
353
|
+
.transform((v) => new Date(v)),
|
|
354
|
+
currentBestRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
|
|
355
|
+
currentRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
|
|
356
|
+
economyBan: z.string(),
|
|
357
|
+
foilBadgeCost: z.number().int(),
|
|
358
|
+
foilBadges: z.number().int(),
|
|
359
|
+
friendPrivacy: FriendPrivacy$inboundSchema,
|
|
360
|
+
friends: z.number().int(),
|
|
361
|
+
friendsUpdatedAt: z
|
|
362
|
+
.string()
|
|
363
|
+
.datetime({ offset: true })
|
|
364
|
+
.transform((v) => new Date(v)),
|
|
365
|
+
gameBans: z.number().int(),
|
|
366
|
+
hidden: z.boolean(),
|
|
367
|
+
images: z.nullable(z.array(Image$inboundSchema)),
|
|
368
|
+
level: z.number().int(),
|
|
369
|
+
limitedApps: z.number().int(),
|
|
370
|
+
miniBackground: z.string(),
|
|
371
|
+
name: z.string(),
|
|
372
|
+
normalBadgeCost: z.number().int(),
|
|
373
|
+
normalBadges: z.number().int(),
|
|
374
|
+
playtime: z.number().int(),
|
|
375
|
+
pointsGiven: z.number().int(),
|
|
376
|
+
pointsReceived: z.number().int(),
|
|
377
|
+
privacy: Privacy$inboundSchema,
|
|
378
|
+
region: Location$inboundSchema.optional(),
|
|
379
|
+
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
380
|
+
state: Location$inboundSchema.optional(),
|
|
381
|
+
steamId: z.string(),
|
|
382
|
+
steamSetsScore: z.number().int(),
|
|
383
|
+
steamSetsVanity: z.string(),
|
|
384
|
+
steamVanity: z.string(),
|
|
385
|
+
theme: z.string(),
|
|
386
|
+
updatedAt: z
|
|
387
|
+
.string()
|
|
388
|
+
.datetime({ offset: true })
|
|
389
|
+
.transform((v) => new Date(v)),
|
|
390
|
+
vacBans: z.number().int(),
|
|
391
|
+
xp: z.number().int(),
|
|
392
|
+
})
|
|
393
|
+
.transform((v) => {
|
|
394
|
+
return remap$(v, {
|
|
395
|
+
$schema: "dollarSchema",
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export type AccountInfoBody$Outbound = {
|
|
401
|
+
$schema?: string | undefined;
|
|
402
|
+
accountId: number;
|
|
403
|
+
animatedAvatar: string;
|
|
404
|
+
appCost: number;
|
|
405
|
+
appPrivacy: string;
|
|
406
|
+
apps: number;
|
|
407
|
+
appsUpdatedAt: string;
|
|
408
|
+
avatar: string;
|
|
409
|
+
avatarFrame: string;
|
|
410
|
+
averagePlaytime: number;
|
|
411
|
+
awardsGiven: number;
|
|
412
|
+
awardsReceived: number;
|
|
413
|
+
background: string;
|
|
414
|
+
badges: number;
|
|
415
|
+
badgesUpdatedAt: string;
|
|
416
|
+
bans: number;
|
|
417
|
+
city?: Location$Outbound | undefined;
|
|
418
|
+
connections: Array<Connection$Outbound> | null;
|
|
419
|
+
country?: Location$Outbound | undefined;
|
|
420
|
+
createdAt: string;
|
|
421
|
+
currentBestRanks: Array<BestLeaderboardRank$Outbound> | null;
|
|
422
|
+
currentRanks: Array<BestLeaderboardRank$Outbound> | null;
|
|
423
|
+
economyBan: string;
|
|
424
|
+
foilBadgeCost: number;
|
|
425
|
+
foilBadges: number;
|
|
426
|
+
friendPrivacy: string;
|
|
427
|
+
friends: number;
|
|
428
|
+
friendsUpdatedAt: string;
|
|
429
|
+
gameBans: number;
|
|
430
|
+
hidden: boolean;
|
|
431
|
+
images: Array<Image$Outbound> | null;
|
|
432
|
+
level: number;
|
|
433
|
+
limitedApps: number;
|
|
434
|
+
miniBackground: string;
|
|
435
|
+
name: string;
|
|
436
|
+
normalBadgeCost: number;
|
|
437
|
+
normalBadges: number;
|
|
438
|
+
playtime: number;
|
|
439
|
+
pointsGiven: number;
|
|
440
|
+
pointsReceived: number;
|
|
441
|
+
privacy: string;
|
|
442
|
+
region?: Location$Outbound | undefined;
|
|
443
|
+
roles: Array<Role$Outbound> | null;
|
|
444
|
+
state?: Location$Outbound | undefined;
|
|
445
|
+
steamId: string;
|
|
446
|
+
steamSetsScore: number;
|
|
447
|
+
steamSetsVanity: string;
|
|
448
|
+
steamVanity: string;
|
|
449
|
+
theme: string;
|
|
450
|
+
updatedAt: string;
|
|
451
|
+
vacBans: number;
|
|
452
|
+
xp: number;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
457
|
+
AccountInfoBody$Outbound,
|
|
458
|
+
z.ZodTypeDef,
|
|
459
|
+
AccountInfoBody
|
|
460
|
+
> = z
|
|
461
|
+
.object({
|
|
462
|
+
dollarSchema: z.string().optional(),
|
|
463
|
+
accountId: z.number().int(),
|
|
464
|
+
animatedAvatar: z.string(),
|
|
465
|
+
appCost: z.number().int(),
|
|
466
|
+
appPrivacy: AppPrivacy$outboundSchema,
|
|
467
|
+
apps: z.number().int(),
|
|
468
|
+
appsUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
469
|
+
avatar: z.string(),
|
|
470
|
+
avatarFrame: z.string(),
|
|
471
|
+
averagePlaytime: z.number().int(),
|
|
472
|
+
awardsGiven: z.number().int(),
|
|
473
|
+
awardsReceived: z.number().int(),
|
|
474
|
+
background: z.string(),
|
|
475
|
+
badges: z.number().int(),
|
|
476
|
+
badgesUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
477
|
+
bans: z.number().int(),
|
|
478
|
+
city: Location$outboundSchema.optional(),
|
|
479
|
+
connections: z.nullable(z.array(Connection$outboundSchema)),
|
|
480
|
+
country: Location$outboundSchema.optional(),
|
|
481
|
+
createdAt: z.date().transform((v) => v.toISOString()),
|
|
482
|
+
currentBestRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
|
|
483
|
+
currentRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
|
|
484
|
+
economyBan: z.string(),
|
|
485
|
+
foilBadgeCost: z.number().int(),
|
|
486
|
+
foilBadges: z.number().int(),
|
|
487
|
+
friendPrivacy: FriendPrivacy$outboundSchema,
|
|
488
|
+
friends: z.number().int(),
|
|
489
|
+
friendsUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
490
|
+
gameBans: z.number().int(),
|
|
491
|
+
hidden: z.boolean(),
|
|
492
|
+
images: z.nullable(z.array(Image$outboundSchema)),
|
|
493
|
+
level: z.number().int(),
|
|
494
|
+
limitedApps: z.number().int(),
|
|
495
|
+
miniBackground: z.string(),
|
|
496
|
+
name: z.string(),
|
|
497
|
+
normalBadgeCost: z.number().int(),
|
|
498
|
+
normalBadges: z.number().int(),
|
|
499
|
+
playtime: z.number().int(),
|
|
500
|
+
pointsGiven: z.number().int(),
|
|
501
|
+
pointsReceived: z.number().int(),
|
|
502
|
+
privacy: Privacy$outboundSchema,
|
|
503
|
+
region: Location$outboundSchema.optional(),
|
|
504
|
+
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
505
|
+
state: Location$outboundSchema.optional(),
|
|
506
|
+
steamId: z.string(),
|
|
507
|
+
steamSetsScore: z.number().int(),
|
|
508
|
+
steamSetsVanity: z.string(),
|
|
509
|
+
steamVanity: z.string(),
|
|
510
|
+
theme: z.string(),
|
|
511
|
+
updatedAt: z.date().transform((v) => v.toISOString()),
|
|
512
|
+
vacBans: z.number().int(),
|
|
513
|
+
xp: z.number().int(),
|
|
514
|
+
})
|
|
515
|
+
.transform((v) => {
|
|
516
|
+
return remap$(v, {
|
|
517
|
+
dollarSchema: "$schema",
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @internal
|
|
523
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
524
|
+
*/
|
|
525
|
+
export namespace AccountInfoBody$ {
|
|
526
|
+
/** @deprecated use `AccountInfoBody$inboundSchema` instead. */
|
|
527
|
+
export const inboundSchema = AccountInfoBody$inboundSchema;
|
|
528
|
+
/** @deprecated use `AccountInfoBody$outboundSchema` instead. */
|
|
529
|
+
export const outboundSchema = AccountInfoBody$outboundSchema;
|
|
530
|
+
/** @deprecated use `AccountInfoBody$Outbound` instead. */
|
|
531
|
+
export type Outbound = AccountInfoBody$Outbound;
|
|
532
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The leaderboard of the best leaderboard
|
|
10
|
+
*/
|
|
11
|
+
export const Leaderboard = {
|
|
12
|
+
Apps: "apps",
|
|
13
|
+
LimitedApps: "limited_apps",
|
|
14
|
+
AppPlaytime: "app_playtime",
|
|
15
|
+
AwardsGiven: "awards_given",
|
|
16
|
+
AwardsReceived: "awards_received",
|
|
17
|
+
Bans: "bans",
|
|
18
|
+
GameBans: "game_bans",
|
|
19
|
+
VacBans: "vac_bans",
|
|
20
|
+
Donations: "donations",
|
|
21
|
+
FoilBadges: "foil_badges",
|
|
22
|
+
NormalBadges: "normal_badges",
|
|
23
|
+
Badges: "badges",
|
|
24
|
+
Playtime: "playtime",
|
|
25
|
+
PointsGiven: "points_given",
|
|
26
|
+
PointsReceived: "points_received",
|
|
27
|
+
SteamSets: "steam_sets",
|
|
28
|
+
Xp: "xp",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* The leaderboard of the best leaderboard
|
|
32
|
+
*/
|
|
33
|
+
export type Leaderboard = ClosedEnum<typeof Leaderboard>;
|
|
34
|
+
|
|
35
|
+
export type BestLeaderboardRank = {
|
|
36
|
+
/**
|
|
37
|
+
* The leaderboard of the best leaderboard
|
|
38
|
+
*/
|
|
39
|
+
leaderboard: Leaderboard;
|
|
40
|
+
/**
|
|
41
|
+
* The ranks in the leaderboard in csv global,regional,country,state,city
|
|
42
|
+
*/
|
|
43
|
+
ranks: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Leaderboard$inboundSchema: z.ZodNativeEnum<typeof Leaderboard> =
|
|
48
|
+
z.nativeEnum(Leaderboard);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const Leaderboard$outboundSchema: z.ZodNativeEnum<typeof Leaderboard> =
|
|
52
|
+
Leaderboard$inboundSchema;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace Leaderboard$ {
|
|
59
|
+
/** @deprecated use `Leaderboard$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = Leaderboard$inboundSchema;
|
|
61
|
+
/** @deprecated use `Leaderboard$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = Leaderboard$outboundSchema;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const BestLeaderboardRank$inboundSchema: z.ZodType<
|
|
67
|
+
BestLeaderboardRank,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
leaderboard: Leaderboard$inboundSchema,
|
|
72
|
+
ranks: z.string(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type BestLeaderboardRank$Outbound = {
|
|
77
|
+
leaderboard: string;
|
|
78
|
+
ranks: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const BestLeaderboardRank$outboundSchema: z.ZodType<
|
|
83
|
+
BestLeaderboardRank$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
BestLeaderboardRank
|
|
86
|
+
> = z.object({
|
|
87
|
+
leaderboard: Leaderboard$outboundSchema,
|
|
88
|
+
ranks: z.string(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
+
*/
|
|
95
|
+
export namespace BestLeaderboardRank$ {
|
|
96
|
+
/** @deprecated use `BestLeaderboardRank$inboundSchema` instead. */
|
|
97
|
+
export const inboundSchema = BestLeaderboardRank$inboundSchema;
|
|
98
|
+
/** @deprecated use `BestLeaderboardRank$outboundSchema` instead. */
|
|
99
|
+
export const outboundSchema = BestLeaderboardRank$outboundSchema;
|
|
100
|
+
/** @deprecated use `BestLeaderboardRank$Outbound` instead. */
|
|
101
|
+
export type Outbound = BestLeaderboardRank$Outbound;
|
|
102
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type City = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the city
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const City$inboundSchema: z.ZodType<City, z.ZodTypeDef, unknown> = z.object({
|
|
16
|
+
name: z.string(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type City$Outbound = {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const City$outboundSchema: z.ZodType<City$Outbound, z.ZodTypeDef, City> = z.object({
|
|
26
|
+
name: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace City$ {
|
|
34
|
+
/** @deprecated use `City$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = City$inboundSchema;
|
|
36
|
+
/** @deprecated use `City$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = City$outboundSchema;
|
|
38
|
+
/** @deprecated use `City$Outbound` instead. */
|
|
39
|
+
export type Outbound = City$Outbound;
|
|
40
|
+
}
|