@steamsets/client-ts 0.5.1 → 0.5.3
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 +160 -2
- package/docs/sdks/data/README.md +160 -2
- package/docs/sdks/public/README.md +160 -2
- package/funcs/accountAccountV1GetApps.js +2 -2
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +2 -2
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- 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/dataAccountV1GetApps.js +2 -2
- package/funcs/dataAccountV1GetApps.js.map +1 -1
- package/funcs/dataAccountV1GetBadges.js +2 -2
- package/funcs/dataAccountV1GetBadges.js.map +1 -1
- 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/publicAccountV1GetApps.js +2 -2
- package/funcs/publicAccountV1GetApps.js.map +1 -1
- package/funcs/publicAccountV1GetBadges.js +2 -2
- package/funcs/publicAccountV1GetBadges.js.map +1 -1
- 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 +3 -3
- package/lib/config.js +3 -3
- 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/accountAccountV1GetApps.ts +2 -2
- package/src/funcs/accountAccountV1GetBadges.ts +2 -2
- package/src/funcs/accountAccountV1GetFriends.ts +139 -0
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/dataAccountV1GetApps.ts +2 -2
- package/src/funcs/dataAccountV1GetBadges.ts +2 -2
- package/src/funcs/dataAccountV1GetFriends.ts +139 -0
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/publicAccountV1GetApps.ts +2 -2
- package/src/funcs/publicAccountV1GetBadges.ts +2 -2
- package/src/funcs/publicAccountV1GetFriends.ts +139 -0
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/lib/config.ts +3 -3
- 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,103 @@
|
|
|
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
|
+
export const AccountLeaderboardHistoryLeaderboard = {
|
|
9
|
+
Apps: "apps",
|
|
10
|
+
LimitedApps: "limited_apps",
|
|
11
|
+
AwardsGiven: "awards_given",
|
|
12
|
+
AwardsReceived: "awards_received",
|
|
13
|
+
Bans: "bans",
|
|
14
|
+
GameBans: "game_bans",
|
|
15
|
+
VacBans: "vac_bans",
|
|
16
|
+
FoilBadges: "foil_badges",
|
|
17
|
+
NormalBadges: "normal_badges",
|
|
18
|
+
Badges: "badges",
|
|
19
|
+
Playtime: "playtime",
|
|
20
|
+
PointsGiven: "points_given",
|
|
21
|
+
PointsReceived: "points_received",
|
|
22
|
+
SteamSets: "steam_sets",
|
|
23
|
+
Xp: "xp",
|
|
24
|
+
} as const;
|
|
25
|
+
export type AccountLeaderboardHistoryLeaderboard = ClosedEnum<
|
|
26
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type AccountLeaderboardHistory = {
|
|
30
|
+
date: Date;
|
|
31
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard;
|
|
32
|
+
rank: number;
|
|
33
|
+
score: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const AccountLeaderboardHistoryLeaderboard$inboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
39
|
+
> = z.nativeEnum(AccountLeaderboardHistoryLeaderboard);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const AccountLeaderboardHistoryLeaderboard$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
44
|
+
> = AccountLeaderboardHistoryLeaderboard$inboundSchema;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace AccountLeaderboardHistoryLeaderboard$ {
|
|
51
|
+
/** @deprecated use `AccountLeaderboardHistoryLeaderboard$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = AccountLeaderboardHistoryLeaderboard$inboundSchema;
|
|
53
|
+
/** @deprecated use `AccountLeaderboardHistoryLeaderboard$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = AccountLeaderboardHistoryLeaderboard$outboundSchema;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const AccountLeaderboardHistory$inboundSchema: z.ZodType<
|
|
59
|
+
AccountLeaderboardHistory,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
date: z
|
|
64
|
+
.string()
|
|
65
|
+
.datetime({ offset: true })
|
|
66
|
+
.transform((v) => new Date(v)),
|
|
67
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard$inboundSchema,
|
|
68
|
+
rank: z.number().int(),
|
|
69
|
+
score: z.number().int(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type AccountLeaderboardHistory$Outbound = {
|
|
74
|
+
date: string;
|
|
75
|
+
leaderboard: string;
|
|
76
|
+
rank: number;
|
|
77
|
+
score: number;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AccountLeaderboardHistory$outboundSchema: z.ZodType<
|
|
82
|
+
AccountLeaderboardHistory$Outbound,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
AccountLeaderboardHistory
|
|
85
|
+
> = z.object({
|
|
86
|
+
date: z.date().transform((v) => v.toISOString()),
|
|
87
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard$outboundSchema,
|
|
88
|
+
rank: z.number().int(),
|
|
89
|
+
score: z.number().int(),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
export namespace AccountLeaderboardHistory$ {
|
|
97
|
+
/** @deprecated use `AccountLeaderboardHistory$inboundSchema` instead. */
|
|
98
|
+
export const inboundSchema = AccountLeaderboardHistory$inboundSchema;
|
|
99
|
+
/** @deprecated use `AccountLeaderboardHistory$outboundSchema` instead. */
|
|
100
|
+
export const outboundSchema = AccountLeaderboardHistory$outboundSchema;
|
|
101
|
+
/** @deprecated use `AccountLeaderboardHistory$Outbound` instead. */
|
|
102
|
+
export type Outbound = AccountLeaderboardHistory$Outbound;
|
|
103
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./accountinfobody.js";
|
|
6
|
+
export * from "./accountleaderboardhistory.js";
|
|
6
7
|
export * from "./accountsearch.js";
|
|
7
8
|
export * from "./accountsearchidstruct.js";
|
|
8
9
|
export * from "./accountsearchvanitystruct.js";
|
|
@@ -25,8 +26,11 @@ export * from "./role.js";
|
|
|
25
26
|
export * from "./security.js";
|
|
26
27
|
export * from "./session.js";
|
|
27
28
|
export * from "./state.js";
|
|
29
|
+
export * from "./v1accountapp.js";
|
|
30
|
+
export * from "./v1accountfriend.js";
|
|
31
|
+
export * from "./v1accountfriendsresponsebody.js";
|
|
32
|
+
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
28
33
|
export * from "./v1accountsappsresponsebody.js";
|
|
29
|
-
export * from "./v1app.js";
|
|
30
34
|
export * from "./v1badge.js";
|
|
31
35
|
export * from "./v1badgesresponsebody.js";
|
|
32
36
|
export * from "./v1connectrequestbody.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type V1AccountApp = {
|
|
8
8
|
/**
|
|
9
9
|
* The Steam App ID
|
|
10
10
|
*/
|
|
@@ -32,7 +32,7 @@ export type V1App = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const
|
|
35
|
+
export const V1AccountApp$inboundSchema: z.ZodType<V1AccountApp, z.ZodTypeDef, unknown> = z.object({
|
|
36
36
|
id: z.number().int(),
|
|
37
37
|
image: z.string(),
|
|
38
38
|
name: z.string(),
|
|
@@ -42,7 +42,7 @@ export const V1App$inboundSchema: z.ZodType<V1App, z.ZodTypeDef, unknown> = z.ob
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export type
|
|
45
|
+
export type V1AccountApp$Outbound = {
|
|
46
46
|
id: number;
|
|
47
47
|
image: string;
|
|
48
48
|
name: string;
|
|
@@ -52,7 +52,11 @@ export type V1App$Outbound = {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
55
|
-
export const
|
|
55
|
+
export const V1AccountApp$outboundSchema: z.ZodType<
|
|
56
|
+
V1AccountApp$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
V1AccountApp
|
|
59
|
+
> = z.object({
|
|
56
60
|
id: z.number().int(),
|
|
57
61
|
image: z.string(),
|
|
58
62
|
name: z.string(),
|
|
@@ -65,11 +69,11 @@ export const V1App$outboundSchema: z.ZodType<V1App$Outbound, z.ZodTypeDef, V1App
|
|
|
65
69
|
* @internal
|
|
66
70
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
71
|
*/
|
|
68
|
-
export namespace
|
|
69
|
-
/** @deprecated use `
|
|
70
|
-
export const inboundSchema =
|
|
71
|
-
/** @deprecated use `
|
|
72
|
-
export const outboundSchema =
|
|
73
|
-
/** @deprecated use `
|
|
74
|
-
export type Outbound =
|
|
72
|
+
export namespace V1AccountApp$ {
|
|
73
|
+
/** @deprecated use `V1AccountApp$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = V1AccountApp$inboundSchema;
|
|
75
|
+
/** @deprecated use `V1AccountApp$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = V1AccountApp$outboundSchema;
|
|
77
|
+
/** @deprecated use `V1AccountApp$Outbound` instead. */
|
|
78
|
+
export type Outbound = V1AccountApp$Outbound;
|
|
75
79
|
}
|
|
@@ -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, {
|