@steamsets/client-ts 0.5.1 → 0.5.2
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 +12 -0
- package/docs/sdks/account/README.md +158 -0
- package/docs/sdks/data/README.md +158 -0
- package/docs/sdks/public/README.md +158 -0
- package/funcs/accountAccountV1GetFriends.d.ts +13 -0
- package/funcs/accountAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/accountAccountV1GetFriends.js +105 -0
- package/funcs/accountAccountV1GetFriends.js.map +1 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -0
- package/funcs/dataAccountV1GetFriends.d.ts +13 -0
- package/funcs/dataAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/dataAccountV1GetFriends.js +105 -0
- package/funcs/dataAccountV1GetFriends.js.map +1 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -0
- package/funcs/publicAccountV1GetFriends.d.ts +13 -0
- package/funcs/publicAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/publicAccountV1GetFriends.js +105 -0
- package/funcs/publicAccountV1GetFriends.js.map +1 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountleaderboardhistory.d.ts +96 -0
- package/models/components/accountleaderboardhistory.d.ts.map +1 -0
- package/models/components/accountleaderboardhistory.js +91 -0
- package/models/components/accountleaderboardhistory.js.map +1 -0
- package/models/components/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountapp.d.ts +53 -0
- package/models/components/v1accountapp.d.ts.map +1 -0
- package/models/components/{v1app.js → v1accountapp.js} +11 -11
- package/models/components/v1accountapp.js.map +1 -0
- package/models/components/v1accountfriend.d.ts +198 -0
- package/models/components/v1accountfriend.d.ts.map +1 -0
- package/models/components/v1accountfriend.js +133 -0
- package/models/components/v1accountfriend.js.map +1 -0
- package/models/components/v1accountfriendsresponsebody.d.ts +31 -0
- package/models/components/v1accountfriendsresponsebody.d.ts.map +1 -0
- package/models/components/v1accountfriendsresponsebody.js +66 -0
- package/models/components/v1accountfriendsresponsebody.js.map +1 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.d.ts +31 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.d.ts.map +1 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.js +66 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.js.map +1 -0
- package/models/components/v1accountsappsresponsebody.d.ts +3 -3
- package/models/components/v1accountsappsresponsebody.d.ts.map +1 -1
- package/models/components/v1accountsappsresponsebody.js +3 -3
- package/models/components/v1accountsappsresponsebody.js.map +1 -1
- package/models/operations/accountv1getfriends.d.ts +58 -0
- package/models/operations/accountv1getfriends.d.ts.map +1 -0
- package/models/operations/accountv1getfriends.js +107 -0
- package/models/operations/accountv1getfriends.js.map +1 -0
- package/models/operations/accountv1getleaderboardhistory.d.ts +58 -0
- package/models/operations/accountv1getleaderboardhistory.d.ts.map +1 -0
- package/models/operations/accountv1getleaderboardhistory.js +107 -0
- package/models/operations/accountv1getleaderboardhistory.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +8 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +14 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +8 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +14 -0
- package/sdk/data.js.map +1 -1
- package/sdk/public.d.ts +8 -0
- package/sdk/public.d.ts.map +1 -1
- package/sdk/public.js +14 -0
- package/sdk/public.js.map +1 -1
- package/src/funcs/accountAccountV1GetFriends.ts +139 -0
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/dataAccountV1GetFriends.ts +139 -0
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/publicAccountV1GetFriends.ts +139 -0
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountleaderboardhistory.ts +103 -0
- package/src/models/components/index.ts +5 -1
- package/src/models/components/{v1app.ts → v1accountapp.ts} +15 -11
- package/src/models/components/v1accountfriend.ts +307 -0
- package/src/models/components/v1accountfriendsresponsebody.ts +71 -0
- package/src/models/components/v1accountleaderboardhistoryresponsebody.ts +71 -0
- package/src/models/components/v1accountsappsresponsebody.ts +10 -5
- package/src/models/operations/accountv1getfriends.ts +134 -0
- package/src/models/operations/accountv1getleaderboardhistory.ts +138 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/account.ts +22 -0
- package/src/sdk/data.ts +22 -0
- package/src/sdk/public.ts +22 -0
- package/models/components/v1app.d.ts +0 -53
- package/models/components/v1app.d.ts.map +0 -1
- package/models/components/v1app.js.map +0 -1
|
@@ -0,0 +1,307 @@
|
|
|
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 V1AccountFriend = {
|
|
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
|
+
friendsSince: Date | null;
|
|
81
|
+
/**
|
|
82
|
+
* The number of game bans
|
|
83
|
+
*/
|
|
84
|
+
gameBans: number;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the account is hidden in the leaderboards
|
|
87
|
+
*/
|
|
88
|
+
hidden: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The level of the account
|
|
91
|
+
*/
|
|
92
|
+
level: number;
|
|
93
|
+
/**
|
|
94
|
+
* The number of limited apps the account has
|
|
95
|
+
*/
|
|
96
|
+
limitedApps: number;
|
|
97
|
+
/**
|
|
98
|
+
* The name of the account
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* The cost of a normal badge
|
|
103
|
+
*/
|
|
104
|
+
normalBadgeCost: number;
|
|
105
|
+
/**
|
|
106
|
+
* The number of normal badges the account has
|
|
107
|
+
*/
|
|
108
|
+
normalBadges: number;
|
|
109
|
+
/**
|
|
110
|
+
* The playtime of the account
|
|
111
|
+
*/
|
|
112
|
+
playtime: number;
|
|
113
|
+
/**
|
|
114
|
+
* The number of points the account has
|
|
115
|
+
*/
|
|
116
|
+
pointsGiven: number;
|
|
117
|
+
/**
|
|
118
|
+
* The number of points the account has
|
|
119
|
+
*/
|
|
120
|
+
pointsReceived: number;
|
|
121
|
+
/**
|
|
122
|
+
* The privacy of the account
|
|
123
|
+
*/
|
|
124
|
+
privacy: string;
|
|
125
|
+
region?: Location | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* The roles of the account
|
|
128
|
+
*/
|
|
129
|
+
roles: Array<Role> | null;
|
|
130
|
+
state?: Location | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* The steam id
|
|
133
|
+
*/
|
|
134
|
+
steamId: string;
|
|
135
|
+
/**
|
|
136
|
+
* The steam sets score
|
|
137
|
+
*/
|
|
138
|
+
steamSetsScore: number;
|
|
139
|
+
/**
|
|
140
|
+
* The vanity of the account
|
|
141
|
+
*/
|
|
142
|
+
steamSetsVanity: string;
|
|
143
|
+
/**
|
|
144
|
+
* The vanity of the account
|
|
145
|
+
*/
|
|
146
|
+
steamVanity: string;
|
|
147
|
+
/**
|
|
148
|
+
* The number of vac bans
|
|
149
|
+
*/
|
|
150
|
+
vacBans: number;
|
|
151
|
+
/**
|
|
152
|
+
* The number of xp the account has
|
|
153
|
+
*/
|
|
154
|
+
xp: number;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const V1AccountFriend$inboundSchema: z.ZodType<V1AccountFriend, z.ZodTypeDef, unknown> =
|
|
159
|
+
z.object({
|
|
160
|
+
appCost: z.number().int(),
|
|
161
|
+
appPlaytime: z.nullable(z.number().int()).optional(),
|
|
162
|
+
apps: z.number().int(),
|
|
163
|
+
avatar: z.string(),
|
|
164
|
+
averagePlaytime: z.number().int(),
|
|
165
|
+
awardsGiven: z.number().int(),
|
|
166
|
+
awardsReceived: z.number().int(),
|
|
167
|
+
badgeInfo: LeaderboardBadgeInfo$inboundSchema.optional(),
|
|
168
|
+
badges: z.number().int(),
|
|
169
|
+
bans: z.number().int(),
|
|
170
|
+
city: Location$inboundSchema.optional(),
|
|
171
|
+
country: Location$inboundSchema.optional(),
|
|
172
|
+
createdAt: z
|
|
173
|
+
.string()
|
|
174
|
+
.datetime({ offset: true })
|
|
175
|
+
.transform((v) => new Date(v)),
|
|
176
|
+
economyBan: z.string(),
|
|
177
|
+
foilBadgeCost: z.number().int(),
|
|
178
|
+
foilBadges: z.number().int(),
|
|
179
|
+
friends: z.number().int(),
|
|
180
|
+
friendsSince: z.nullable(
|
|
181
|
+
z
|
|
182
|
+
.string()
|
|
183
|
+
.datetime({ offset: true })
|
|
184
|
+
.transform((v) => new Date(v))
|
|
185
|
+
),
|
|
186
|
+
gameBans: z.number().int(),
|
|
187
|
+
hidden: z.boolean(),
|
|
188
|
+
level: z.number().int(),
|
|
189
|
+
limitedApps: z.number().int(),
|
|
190
|
+
name: z.string(),
|
|
191
|
+
normalBadgeCost: z.number().int(),
|
|
192
|
+
normalBadges: z.number().int(),
|
|
193
|
+
playtime: z.number().int(),
|
|
194
|
+
pointsGiven: z.number().int(),
|
|
195
|
+
pointsReceived: z.number().int(),
|
|
196
|
+
privacy: z.string(),
|
|
197
|
+
region: Location$inboundSchema.optional(),
|
|
198
|
+
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
199
|
+
state: Location$inboundSchema.optional(),
|
|
200
|
+
steamId: z.string(),
|
|
201
|
+
steamSetsScore: z.number().int(),
|
|
202
|
+
steamSetsVanity: z.string(),
|
|
203
|
+
steamVanity: z.string(),
|
|
204
|
+
vacBans: z.number().int(),
|
|
205
|
+
xp: z.number().int(),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
/** @internal */
|
|
209
|
+
export type V1AccountFriend$Outbound = {
|
|
210
|
+
appCost: number;
|
|
211
|
+
appPlaytime?: number | null | undefined;
|
|
212
|
+
apps: number;
|
|
213
|
+
avatar: string;
|
|
214
|
+
averagePlaytime: number;
|
|
215
|
+
awardsGiven: number;
|
|
216
|
+
awardsReceived: number;
|
|
217
|
+
badgeInfo?: LeaderboardBadgeInfo$Outbound | undefined;
|
|
218
|
+
badges: number;
|
|
219
|
+
bans: number;
|
|
220
|
+
city?: Location$Outbound | undefined;
|
|
221
|
+
country?: Location$Outbound | undefined;
|
|
222
|
+
createdAt: string;
|
|
223
|
+
economyBan: string;
|
|
224
|
+
foilBadgeCost: number;
|
|
225
|
+
foilBadges: number;
|
|
226
|
+
friends: number;
|
|
227
|
+
friendsSince: string | null;
|
|
228
|
+
gameBans: number;
|
|
229
|
+
hidden: boolean;
|
|
230
|
+
level: number;
|
|
231
|
+
limitedApps: number;
|
|
232
|
+
name: string;
|
|
233
|
+
normalBadgeCost: number;
|
|
234
|
+
normalBadges: number;
|
|
235
|
+
playtime: number;
|
|
236
|
+
pointsGiven: number;
|
|
237
|
+
pointsReceived: number;
|
|
238
|
+
privacy: string;
|
|
239
|
+
region?: Location$Outbound | undefined;
|
|
240
|
+
roles: Array<Role$Outbound> | null;
|
|
241
|
+
state?: Location$Outbound | undefined;
|
|
242
|
+
steamId: string;
|
|
243
|
+
steamSetsScore: number;
|
|
244
|
+
steamSetsVanity: string;
|
|
245
|
+
steamVanity: string;
|
|
246
|
+
vacBans: number;
|
|
247
|
+
xp: number;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
252
|
+
V1AccountFriend$Outbound,
|
|
253
|
+
z.ZodTypeDef,
|
|
254
|
+
V1AccountFriend
|
|
255
|
+
> = z.object({
|
|
256
|
+
appCost: z.number().int(),
|
|
257
|
+
appPlaytime: z.nullable(z.number().int()).optional(),
|
|
258
|
+
apps: z.number().int(),
|
|
259
|
+
avatar: z.string(),
|
|
260
|
+
averagePlaytime: z.number().int(),
|
|
261
|
+
awardsGiven: z.number().int(),
|
|
262
|
+
awardsReceived: z.number().int(),
|
|
263
|
+
badgeInfo: LeaderboardBadgeInfo$outboundSchema.optional(),
|
|
264
|
+
badges: z.number().int(),
|
|
265
|
+
bans: z.number().int(),
|
|
266
|
+
city: Location$outboundSchema.optional(),
|
|
267
|
+
country: Location$outboundSchema.optional(),
|
|
268
|
+
createdAt: z.date().transform((v) => v.toISOString()),
|
|
269
|
+
economyBan: z.string(),
|
|
270
|
+
foilBadgeCost: z.number().int(),
|
|
271
|
+
foilBadges: z.number().int(),
|
|
272
|
+
friends: z.number().int(),
|
|
273
|
+
friendsSince: z.nullable(z.date().transform((v) => v.toISOString())),
|
|
274
|
+
gameBans: z.number().int(),
|
|
275
|
+
hidden: z.boolean(),
|
|
276
|
+
level: z.number().int(),
|
|
277
|
+
limitedApps: z.number().int(),
|
|
278
|
+
name: z.string(),
|
|
279
|
+
normalBadgeCost: z.number().int(),
|
|
280
|
+
normalBadges: z.number().int(),
|
|
281
|
+
playtime: z.number().int(),
|
|
282
|
+
pointsGiven: z.number().int(),
|
|
283
|
+
pointsReceived: z.number().int(),
|
|
284
|
+
privacy: z.string(),
|
|
285
|
+
region: Location$outboundSchema.optional(),
|
|
286
|
+
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
287
|
+
state: Location$outboundSchema.optional(),
|
|
288
|
+
steamId: z.string(),
|
|
289
|
+
steamSetsScore: z.number().int(),
|
|
290
|
+
steamSetsVanity: z.string(),
|
|
291
|
+
steamVanity: z.string(),
|
|
292
|
+
vacBans: z.number().int(),
|
|
293
|
+
xp: z.number().int(),
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
299
|
+
*/
|
|
300
|
+
export namespace V1AccountFriend$ {
|
|
301
|
+
/** @deprecated use `V1AccountFriend$inboundSchema` instead. */
|
|
302
|
+
export const inboundSchema = V1AccountFriend$inboundSchema;
|
|
303
|
+
/** @deprecated use `V1AccountFriend$outboundSchema` instead. */
|
|
304
|
+
export const outboundSchema = V1AccountFriend$outboundSchema;
|
|
305
|
+
/** @deprecated use `V1AccountFriend$Outbound` instead. */
|
|
306
|
+
export type Outbound = V1AccountFriend$Outbound;
|
|
307
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 {
|
|
7
|
+
V1AccountFriend,
|
|
8
|
+
V1AccountFriend$inboundSchema,
|
|
9
|
+
V1AccountFriend$Outbound,
|
|
10
|
+
V1AccountFriend$outboundSchema,
|
|
11
|
+
} from "./v1accountfriend.js";
|
|
12
|
+
import * as z from "zod";
|
|
13
|
+
|
|
14
|
+
export type V1AccountFriendsResponseBody = {
|
|
15
|
+
/**
|
|
16
|
+
* A URL to the JSON Schema for this object.
|
|
17
|
+
*/
|
|
18
|
+
dollarSchema?: string | undefined;
|
|
19
|
+
friends: Array<V1AccountFriend> | null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const V1AccountFriendsResponseBody$inboundSchema: z.ZodType<
|
|
24
|
+
V1AccountFriendsResponseBody,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.object({
|
|
29
|
+
$schema: z.string().optional(),
|
|
30
|
+
friends: z.nullable(z.array(V1AccountFriend$inboundSchema)),
|
|
31
|
+
})
|
|
32
|
+
.transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
$schema: "dollarSchema",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type V1AccountFriendsResponseBody$Outbound = {
|
|
40
|
+
$schema?: string | undefined;
|
|
41
|
+
friends: Array<V1AccountFriend$Outbound> | null;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const V1AccountFriendsResponseBody$outboundSchema: z.ZodType<
|
|
46
|
+
V1AccountFriendsResponseBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
V1AccountFriendsResponseBody
|
|
49
|
+
> = z
|
|
50
|
+
.object({
|
|
51
|
+
dollarSchema: z.string().optional(),
|
|
52
|
+
friends: z.nullable(z.array(V1AccountFriend$outboundSchema)),
|
|
53
|
+
})
|
|
54
|
+
.transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
dollarSchema: "$schema",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace V1AccountFriendsResponseBody$ {
|
|
65
|
+
/** @deprecated use `V1AccountFriendsResponseBody$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = V1AccountFriendsResponseBody$inboundSchema;
|
|
67
|
+
/** @deprecated use `V1AccountFriendsResponseBody$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = V1AccountFriendsResponseBody$outboundSchema;
|
|
69
|
+
/** @deprecated use `V1AccountFriendsResponseBody$Outbound` instead. */
|
|
70
|
+
export type Outbound = V1AccountFriendsResponseBody$Outbound;
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 {
|
|
7
|
+
AccountLeaderboardHistory,
|
|
8
|
+
AccountLeaderboardHistory$inboundSchema,
|
|
9
|
+
AccountLeaderboardHistory$Outbound,
|
|
10
|
+
AccountLeaderboardHistory$outboundSchema,
|
|
11
|
+
} from "./accountleaderboardhistory.js";
|
|
12
|
+
import * as z from "zod";
|
|
13
|
+
|
|
14
|
+
export type V1AccountLeaderboardHistoryResponseBody = {
|
|
15
|
+
/**
|
|
16
|
+
* A URL to the JSON Schema for this object.
|
|
17
|
+
*/
|
|
18
|
+
dollarSchema?: string | undefined;
|
|
19
|
+
histories: Array<AccountLeaderboardHistory> | null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const V1AccountLeaderboardHistoryResponseBody$inboundSchema: z.ZodType<
|
|
24
|
+
V1AccountLeaderboardHistoryResponseBody,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.object({
|
|
29
|
+
$schema: z.string().optional(),
|
|
30
|
+
histories: z.nullable(z.array(AccountLeaderboardHistory$inboundSchema)),
|
|
31
|
+
})
|
|
32
|
+
.transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
$schema: "dollarSchema",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type V1AccountLeaderboardHistoryResponseBody$Outbound = {
|
|
40
|
+
$schema?: string | undefined;
|
|
41
|
+
histories: Array<AccountLeaderboardHistory$Outbound> | null;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const V1AccountLeaderboardHistoryResponseBody$outboundSchema: z.ZodType<
|
|
46
|
+
V1AccountLeaderboardHistoryResponseBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
V1AccountLeaderboardHistoryResponseBody
|
|
49
|
+
> = z
|
|
50
|
+
.object({
|
|
51
|
+
dollarSchema: z.string().optional(),
|
|
52
|
+
histories: z.nullable(z.array(AccountLeaderboardHistory$outboundSchema)),
|
|
53
|
+
})
|
|
54
|
+
.transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
dollarSchema: "$schema",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace V1AccountLeaderboardHistoryResponseBody$ {
|
|
65
|
+
/** @deprecated use `V1AccountLeaderboardHistoryResponseBody$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = V1AccountLeaderboardHistoryResponseBody$inboundSchema;
|
|
67
|
+
/** @deprecated use `V1AccountLeaderboardHistoryResponseBody$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = V1AccountLeaderboardHistoryResponseBody$outboundSchema;
|
|
69
|
+
/** @deprecated use `V1AccountLeaderboardHistoryResponseBody$Outbound` instead. */
|
|
70
|
+
export type Outbound = V1AccountLeaderboardHistoryResponseBody$Outbound;
|
|
71
|
+
}
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
V1AccountApp,
|
|
8
|
+
V1AccountApp$inboundSchema,
|
|
9
|
+
V1AccountApp$Outbound,
|
|
10
|
+
V1AccountApp$outboundSchema,
|
|
11
|
+
} from "./v1accountapp.js";
|
|
7
12
|
import * as z from "zod";
|
|
8
13
|
|
|
9
14
|
export type V1AccountsAppsResponseBody = {
|
|
@@ -11,7 +16,7 @@ export type V1AccountsAppsResponseBody = {
|
|
|
11
16
|
* A URL to the JSON Schema for this object.
|
|
12
17
|
*/
|
|
13
18
|
dollarSchema?: string | undefined;
|
|
14
|
-
apps: Array<
|
|
19
|
+
apps: Array<V1AccountApp> | null;
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
/** @internal */
|
|
@@ -22,7 +27,7 @@ export const V1AccountsAppsResponseBody$inboundSchema: z.ZodType<
|
|
|
22
27
|
> = z
|
|
23
28
|
.object({
|
|
24
29
|
$schema: z.string().optional(),
|
|
25
|
-
apps: z.nullable(z.array(
|
|
30
|
+
apps: z.nullable(z.array(V1AccountApp$inboundSchema)),
|
|
26
31
|
})
|
|
27
32
|
.transform((v) => {
|
|
28
33
|
return remap$(v, {
|
|
@@ -33,7 +38,7 @@ export const V1AccountsAppsResponseBody$inboundSchema: z.ZodType<
|
|
|
33
38
|
/** @internal */
|
|
34
39
|
export type V1AccountsAppsResponseBody$Outbound = {
|
|
35
40
|
$schema?: string | undefined;
|
|
36
|
-
apps: Array<
|
|
41
|
+
apps: Array<V1AccountApp$Outbound> | null;
|
|
37
42
|
};
|
|
38
43
|
|
|
39
44
|
/** @internal */
|
|
@@ -44,7 +49,7 @@ export const V1AccountsAppsResponseBody$outboundSchema: z.ZodType<
|
|
|
44
49
|
> = z
|
|
45
50
|
.object({
|
|
46
51
|
dollarSchema: z.string().optional(),
|
|
47
|
-
apps: z.nullable(z.array(
|
|
52
|
+
apps: z.nullable(z.array(V1AccountApp$outboundSchema)),
|
|
48
53
|
})
|
|
49
54
|
.transform((v) => {
|
|
50
55
|
return remap$(v, {
|
|
@@ -0,0 +1,134 @@
|
|
|
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 * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type AccountV1GetFriendsRequest = {
|
|
10
|
+
xForwardedFor?: string | undefined;
|
|
11
|
+
userAgent?: string | undefined;
|
|
12
|
+
accountSearch: components.AccountSearch;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type AccountV1GetFriendsResponse = {
|
|
16
|
+
httpMeta: components.HTTPMetadata;
|
|
17
|
+
/**
|
|
18
|
+
* OK
|
|
19
|
+
*/
|
|
20
|
+
v1AccountFriendsResponseBody?: components.V1AccountFriendsResponseBody | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AccountV1GetFriendsRequest$inboundSchema: z.ZodType<
|
|
25
|
+
AccountV1GetFriendsRequest,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z
|
|
29
|
+
.object({
|
|
30
|
+
"X-Forwarded-For": z.string().optional(),
|
|
31
|
+
"User-Agent": z.string().optional(),
|
|
32
|
+
AccountSearch: components.AccountSearch$inboundSchema,
|
|
33
|
+
})
|
|
34
|
+
.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"X-Forwarded-For": "xForwardedFor",
|
|
37
|
+
"User-Agent": "userAgent",
|
|
38
|
+
AccountSearch: "accountSearch",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type AccountV1GetFriendsRequest$Outbound = {
|
|
44
|
+
"X-Forwarded-For"?: string | undefined;
|
|
45
|
+
"User-Agent"?: string | undefined;
|
|
46
|
+
AccountSearch: components.AccountSearch$Outbound;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const AccountV1GetFriendsRequest$outboundSchema: z.ZodType<
|
|
51
|
+
AccountV1GetFriendsRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
AccountV1GetFriendsRequest
|
|
54
|
+
> = z
|
|
55
|
+
.object({
|
|
56
|
+
xForwardedFor: z.string().optional(),
|
|
57
|
+
userAgent: z.string().optional(),
|
|
58
|
+
accountSearch: components.AccountSearch$outboundSchema,
|
|
59
|
+
})
|
|
60
|
+
.transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
xForwardedFor: "X-Forwarded-For",
|
|
63
|
+
userAgent: "User-Agent",
|
|
64
|
+
accountSearch: "AccountSearch",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace AccountV1GetFriendsRequest$ {
|
|
73
|
+
/** @deprecated use `AccountV1GetFriendsRequest$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = AccountV1GetFriendsRequest$inboundSchema;
|
|
75
|
+
/** @deprecated use `AccountV1GetFriendsRequest$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = AccountV1GetFriendsRequest$outboundSchema;
|
|
77
|
+
/** @deprecated use `AccountV1GetFriendsRequest$Outbound` instead. */
|
|
78
|
+
export type Outbound = AccountV1GetFriendsRequest$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const AccountV1GetFriendsResponse$inboundSchema: z.ZodType<
|
|
83
|
+
AccountV1GetFriendsResponse,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z
|
|
87
|
+
.object({
|
|
88
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
89
|
+
V1AccountFriendsResponseBody:
|
|
90
|
+
components.V1AccountFriendsResponseBody$inboundSchema.optional(),
|
|
91
|
+
})
|
|
92
|
+
.transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
HttpMeta: "httpMeta",
|
|
95
|
+
V1AccountFriendsResponseBody: "v1AccountFriendsResponseBody",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type AccountV1GetFriendsResponse$Outbound = {
|
|
101
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
102
|
+
V1AccountFriendsResponseBody?: components.V1AccountFriendsResponseBody$Outbound | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const AccountV1GetFriendsResponse$outboundSchema: z.ZodType<
|
|
107
|
+
AccountV1GetFriendsResponse$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
AccountV1GetFriendsResponse
|
|
110
|
+
> = z
|
|
111
|
+
.object({
|
|
112
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
113
|
+
v1AccountFriendsResponseBody:
|
|
114
|
+
components.V1AccountFriendsResponseBody$outboundSchema.optional(),
|
|
115
|
+
})
|
|
116
|
+
.transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
httpMeta: "HttpMeta",
|
|
119
|
+
v1AccountFriendsResponseBody: "V1AccountFriendsResponseBody",
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
+
*/
|
|
127
|
+
export namespace AccountV1GetFriendsResponse$ {
|
|
128
|
+
/** @deprecated use `AccountV1GetFriendsResponse$inboundSchema` instead. */
|
|
129
|
+
export const inboundSchema = AccountV1GetFriendsResponse$inboundSchema;
|
|
130
|
+
/** @deprecated use `AccountV1GetFriendsResponse$outboundSchema` instead. */
|
|
131
|
+
export const outboundSchema = AccountV1GetFriendsResponse$outboundSchema;
|
|
132
|
+
/** @deprecated use `AccountV1GetFriendsResponse$Outbound` instead. */
|
|
133
|
+
export type Outbound = AccountV1GetFriendsResponse$Outbound;
|
|
134
|
+
}
|