@steamsets/client-ts 0.11.7 → 0.11.9
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 +3 -3
- package/docs/sdks/account/README.md +19 -9
- package/docs/sdks/badge/README.md +2 -2
- package/docs/sdks/data/README.md +3 -1
- package/docs/sdks/leaderboard/README.md +16 -8
- package/docs/sdks/public/README.md +3 -1
- package/funcs/accountAccountV1Queue.d.ts +1 -1
- package/funcs/accountAccountV1Queue.d.ts.map +1 -1
- package/funcs/accountAccountV1Queue.js +1 -1
- package/funcs/accountAccountV1Queue.js.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.js +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/funcs/accountLeaderboardV1GetAccount.d.ts +1 -1
- package/funcs/accountLeaderboardV1GetAccount.js +1 -1
- package/funcs/badgeBadgeV1Tags.d.ts +1 -1
- package/funcs/badgeBadgeV1Tags.js +1 -1
- package/funcs/dataAccountV1Queue.d.ts +1 -1
- package/funcs/dataAccountV1Queue.d.ts.map +1 -1
- package/funcs/dataAccountV1Queue.js +1 -1
- package/funcs/dataAccountV1Queue.js.map +1 -1
- package/funcs/leaderboardLeaderboardV1GetAccount.d.ts +1 -1
- package/funcs/leaderboardLeaderboardV1GetAccount.js +1 -1
- package/funcs/publicAccountV1Queue.d.ts +1 -1
- package/funcs/publicAccountV1Queue.d.ts.map +1 -1
- package/funcs/publicAccountV1Queue.js +1 -1
- package/funcs/publicAccountV1Queue.js.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/idstruct.d.ts +33 -0
- package/models/components/idstruct.d.ts.map +1 -0
- package/models/components/{leaderboardapp.js → idstruct.js} +17 -11
- package/models/components/idstruct.js.map +1 -0
- package/models/components/index.d.ts +9 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -3
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +0 -8
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +0 -5
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/leaderboardaccountbadgeinfo.d.ts +38 -0
- package/models/components/leaderboardaccountbadgeinfo.d.ts.map +1 -0
- package/models/components/{leaderboardbadgeinfo.js → leaderboardaccountbadgeinfo.js} +13 -11
- package/models/components/leaderboardaccountbadgeinfo.js.map +1 -0
- package/models/components/v1accountfriend.d.ts +0 -8
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +0 -5
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +3 -8
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +3 -5
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1accountleaderboardappsearch.d.ts +28 -0
- package/models/components/v1accountleaderboardappsearch.d.ts.map +1 -0
- package/models/components/{v1accountleaderboardbadgeinfo.js → v1accountleaderboardappsearch.js} +15 -11
- package/models/components/v1accountleaderboardappsearch.js.map +1 -0
- package/models/components/v1accountleaderboardbadgesearch.d.ts +33 -0
- package/models/components/v1accountleaderboardbadgesearch.d.ts.map +1 -0
- package/models/components/v1accountleaderboardbadgesearch.js +52 -0
- package/models/components/v1accountleaderboardbadgesearch.js.map +1 -0
- package/models/components/v1accountleaderboardrequestbody.d.ts +6 -15
- package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
- package/models/components/v1accountleaderboardrequestbody.js +6 -6
- package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
- package/models/components/v1accountleaderboardresponsebody.d.ts +9 -9
- package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
- package/models/components/v1accountleaderboardresponsebody.js +10 -9
- package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
- package/models/components/v1accountqueuerequestbody.d.ts +34 -0
- package/models/components/v1accountqueuerequestbody.d.ts.map +1 -0
- package/models/components/v1accountqueuerequestbody.js +56 -0
- package/models/components/v1accountqueuerequestbody.js.map +1 -0
- package/models/components/v1badgetagsresponsebody.d.ts +2 -2
- package/models/components/v1getsettingsbody.d.ts +3 -3
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +2 -2
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/components/v1leaderboardappinfo.d.ts +43 -0
- package/models/components/v1leaderboardappinfo.d.ts.map +1 -0
- package/models/components/v1leaderboardappinfo.js +56 -0
- package/models/components/v1leaderboardappinfo.js.map +1 -0
- package/models/components/v1leaderboardbadgeinfo.d.ts +58 -0
- package/models/components/v1leaderboardbadgeinfo.d.ts.map +1 -0
- package/models/components/v1leaderboardbadgeinfo.js +62 -0
- package/models/components/v1leaderboardbadgeinfo.js.map +1 -0
- package/models/components/v1leaderboardlocationinfo.d.ts +48 -0
- package/models/components/v1leaderboardlocationinfo.d.ts.map +1 -0
- package/models/components/v1leaderboardlocationinfo.js +58 -0
- package/models/components/v1leaderboardlocationinfo.js.map +1 -0
- package/models/components/vanitystruct.d.ts +65 -0
- package/models/components/vanitystruct.d.ts.map +1 -0
- package/models/components/vanitystruct.js +74 -0
- package/models/components/vanitystruct.js.map +1 -0
- package/models/operations/accountv1settingssendemailverification.d.ts +6 -0
- package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -1
- package/models/operations/accountv1settingssendemailverification.js +4 -0
- package/models/operations/accountv1settingssendemailverification.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +2 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +1 -1
- package/sdk/account.js.map +1 -1
- package/sdk/badge.d.ts +1 -1
- package/sdk/badge.js +1 -1
- package/sdk/data.d.ts +1 -1
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js.map +1 -1
- package/sdk/leaderboard.d.ts +1 -1
- package/sdk/leaderboard.js +1 -1
- package/sdk/public.d.ts +1 -1
- package/sdk/public.d.ts.map +1 -1
- package/sdk/public.js.map +1 -1
- package/src/funcs/accountAccountV1Queue.ts +2 -2
- package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +1 -0
- package/src/funcs/accountLeaderboardV1GetAccount.ts +1 -1
- package/src/funcs/badgeBadgeV1Tags.ts +1 -1
- package/src/funcs/dataAccountV1Queue.ts +2 -2
- package/src/funcs/leaderboardLeaderboardV1GetAccount.ts +1 -1
- package/src/funcs/publicAccountV1Queue.ts +2 -2
- package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/idstruct.ts +55 -0
- package/src/models/components/index.ts +9 -3
- package/src/models/components/leaderboardaccount.ts +0 -17
- package/src/models/components/leaderboardaccountbadgeinfo.ts +64 -0
- package/src/models/components/v1accountfriend.ts +0 -17
- package/src/models/components/v1accountleaderboardaccount.ts +9 -16
- package/src/models/components/v1accountleaderboardappsearch.ts +48 -0
- package/src/models/components/v1accountleaderboardbadgesearch.ts +55 -0
- package/src/models/components/v1accountleaderboardrequestbody.ts +20 -21
- package/src/models/components/v1accountleaderboardresponsebody.ts +29 -28
- package/src/models/components/v1accountqueuerequestbody.ts +68 -0
- package/src/models/components/v1badgetagsresponsebody.ts +2 -2
- package/src/models/components/v1getsettingsbody.ts +7 -5
- package/src/models/components/v1leaderboardappinfo.ts +69 -0
- package/src/models/components/v1leaderboardbadgeinfo.ts +90 -0
- package/src/models/components/v1leaderboardlocationinfo.ts +76 -0
- package/src/models/components/vanitystruct.ts +89 -0
- package/src/models/operations/accountv1settingssendemailverification.ts +6 -0
- package/src/sdk/account.ts +2 -2
- package/src/sdk/badge.ts +1 -1
- package/src/sdk/data.ts +1 -1
- package/src/sdk/leaderboard.ts +1 -1
- package/src/sdk/public.ts +1 -1
- package/models/components/leaderboardapp.d.ts +0 -21
- package/models/components/leaderboardapp.d.ts.map +0 -1
- package/models/components/leaderboardapp.js.map +0 -1
- package/models/components/leaderboardbadgeinfo.d.ts +0 -33
- package/models/components/leaderboardbadgeinfo.d.ts.map +0 -1
- package/models/components/leaderboardbadgeinfo.js.map +0 -1
- package/models/components/v1accountleaderboardbadgeinfo.d.ts +0 -21
- package/models/components/v1accountleaderboardbadgeinfo.d.ts.map +0 -1
- package/models/components/v1accountleaderboardbadgeinfo.js.map +0 -1
- package/src/models/components/leaderboardapp.ts +0 -37
- package/src/models/components/leaderboardbadgeinfo.ts +0 -57
- package/src/models/components/v1accountleaderboardbadgeinfo.ts +0 -37
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1AccountLeaderboardBadgeSearch = {
|
|
8
|
+
/**
|
|
9
|
+
* The badge id to get the leaderboard for
|
|
10
|
+
*/
|
|
11
|
+
id?: number | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the badge is foil or not
|
|
14
|
+
*/
|
|
15
|
+
isFoil: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const V1AccountLeaderboardBadgeSearch$inboundSchema: z.ZodType<
|
|
20
|
+
V1AccountLeaderboardBadgeSearch,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int().optional(),
|
|
25
|
+
isFoil: z.boolean(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type V1AccountLeaderboardBadgeSearch$Outbound = {
|
|
30
|
+
id?: number | undefined;
|
|
31
|
+
isFoil: boolean;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1AccountLeaderboardBadgeSearch$outboundSchema: z.ZodType<
|
|
36
|
+
V1AccountLeaderboardBadgeSearch$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
V1AccountLeaderboardBadgeSearch
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.number().int().optional(),
|
|
41
|
+
isFoil: z.boolean(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace V1AccountLeaderboardBadgeSearch$ {
|
|
49
|
+
/** @deprecated use `V1AccountLeaderboardBadgeSearch$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = V1AccountLeaderboardBadgeSearch$inboundSchema;
|
|
51
|
+
/** @deprecated use `V1AccountLeaderboardBadgeSearch$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = V1AccountLeaderboardBadgeSearch$outboundSchema;
|
|
53
|
+
/** @deprecated use `V1AccountLeaderboardBadgeSearch$Outbound` instead. */
|
|
54
|
+
export type Outbound = V1AccountLeaderboardBadgeSearch$Outbound;
|
|
55
|
+
}
|
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
V1AccountLeaderboardAppSearch,
|
|
9
|
+
V1AccountLeaderboardAppSearch$inboundSchema,
|
|
10
|
+
V1AccountLeaderboardAppSearch$Outbound,
|
|
11
|
+
V1AccountLeaderboardAppSearch$outboundSchema,
|
|
12
|
+
} from "./v1accountleaderboardappsearch.js";
|
|
13
|
+
import {
|
|
14
|
+
V1AccountLeaderboardBadgeSearch,
|
|
15
|
+
V1AccountLeaderboardBadgeSearch$inboundSchema,
|
|
16
|
+
V1AccountLeaderboardBadgeSearch$Outbound,
|
|
17
|
+
V1AccountLeaderboardBadgeSearch$outboundSchema,
|
|
18
|
+
} from "./v1accountleaderboardbadgesearch.js";
|
|
7
19
|
import {
|
|
8
20
|
V1LeaderboardLocation,
|
|
9
21
|
V1LeaderboardLocation$inboundSchema,
|
|
@@ -43,18 +55,8 @@ export type V1AccountLeaderboardRequestBodyLeaderboard = ClosedEnum<
|
|
|
43
55
|
>;
|
|
44
56
|
|
|
45
57
|
export type V1AccountLeaderboardRequestBody = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
appId?: number | null | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* For a given badge leaderboard, the steam badge id
|
|
52
|
-
*/
|
|
53
|
-
badgeId?: string | null | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* For a given badge leaderboard, whether the badge is foil or not
|
|
56
|
-
*/
|
|
57
|
-
badgeIsFoil?: boolean | null | undefined;
|
|
58
|
+
app?: V1AccountLeaderboardAppSearch | null | undefined;
|
|
59
|
+
badge?: V1AccountLeaderboardBadgeSearch | null | undefined;
|
|
58
60
|
/**
|
|
59
61
|
* The end index
|
|
60
62
|
*/
|
|
@@ -102,9 +104,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
|
|
|
102
104
|
z.ZodTypeDef,
|
|
103
105
|
unknown
|
|
104
106
|
> = z.object({
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
badgeIsFoil: z.nullable(z.boolean()).optional(),
|
|
107
|
+
app: z.nullable(V1AccountLeaderboardAppSearch$inboundSchema).optional(),
|
|
108
|
+
badge: z.nullable(V1AccountLeaderboardBadgeSearch$inboundSchema).optional(),
|
|
108
109
|
end: z.nullable(z.number().int()).optional(),
|
|
109
110
|
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
|
|
110
111
|
location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema)).optional(),
|
|
@@ -113,9 +114,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
|
|
|
113
114
|
|
|
114
115
|
/** @internal */
|
|
115
116
|
export type V1AccountLeaderboardRequestBody$Outbound = {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
badgeIsFoil?: boolean | null | undefined;
|
|
117
|
+
app?: V1AccountLeaderboardAppSearch$Outbound | null | undefined;
|
|
118
|
+
badge?: V1AccountLeaderboardBadgeSearch$Outbound | null | undefined;
|
|
119
119
|
end?: number | null | undefined;
|
|
120
120
|
leaderboard: string;
|
|
121
121
|
location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
|
|
@@ -128,9 +128,8 @@ export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
|
|
|
128
128
|
z.ZodTypeDef,
|
|
129
129
|
V1AccountLeaderboardRequestBody
|
|
130
130
|
> = z.object({
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
badgeIsFoil: z.nullable(z.boolean()).optional(),
|
|
131
|
+
app: z.nullable(V1AccountLeaderboardAppSearch$outboundSchema).optional(),
|
|
132
|
+
badge: z.nullable(V1AccountLeaderboardBadgeSearch$outboundSchema).optional(),
|
|
134
133
|
end: z.nullable(z.number().int()).optional(),
|
|
135
134
|
leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
|
|
136
135
|
location: z.nullable(z.array(V1LeaderboardLocation$outboundSchema))
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
LeaderboardApp,
|
|
9
|
-
LeaderboardApp$inboundSchema,
|
|
10
|
-
LeaderboardApp$Outbound,
|
|
11
|
-
LeaderboardApp$outboundSchema,
|
|
12
|
-
} from "./leaderboardapp.js";
|
|
13
7
|
import {
|
|
14
8
|
V1AccountLeaderboardAccount,
|
|
15
9
|
V1AccountLeaderboardAccount$inboundSchema,
|
|
@@ -17,17 +11,23 @@ import {
|
|
|
17
11
|
V1AccountLeaderboardAccount$outboundSchema,
|
|
18
12
|
} from "./v1accountleaderboardaccount.js";
|
|
19
13
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
14
|
+
V1LeaderboardAppInfo,
|
|
15
|
+
V1LeaderboardAppInfo$inboundSchema,
|
|
16
|
+
V1LeaderboardAppInfo$Outbound,
|
|
17
|
+
V1LeaderboardAppInfo$outboundSchema,
|
|
18
|
+
} from "./v1leaderboardappinfo.js";
|
|
19
|
+
import {
|
|
20
|
+
V1LeaderboardBadgeInfo,
|
|
21
|
+
V1LeaderboardBadgeInfo$inboundSchema,
|
|
22
|
+
V1LeaderboardBadgeInfo$Outbound,
|
|
23
|
+
V1LeaderboardBadgeInfo$outboundSchema,
|
|
24
|
+
} from "./v1leaderboardbadgeinfo.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
26
|
+
V1LeaderboardLocationInfo,
|
|
27
|
+
V1LeaderboardLocationInfo$inboundSchema,
|
|
28
|
+
V1LeaderboardLocationInfo$Outbound,
|
|
29
|
+
V1LeaderboardLocationInfo$outboundSchema,
|
|
30
|
+
} from "./v1leaderboardlocationinfo.js";
|
|
31
31
|
|
|
32
32
|
export type V1AccountLeaderboardResponseBody = {
|
|
33
33
|
/**
|
|
@@ -35,9 +35,9 @@ export type V1AccountLeaderboardResponseBody = {
|
|
|
35
35
|
*/
|
|
36
36
|
dollarSchema?: string | undefined;
|
|
37
37
|
accounts: Array<V1AccountLeaderboardAccount> | null;
|
|
38
|
-
app?:
|
|
39
|
-
badgeInfo?:
|
|
40
|
-
location?:
|
|
38
|
+
app?: V1LeaderboardAppInfo | null | undefined;
|
|
39
|
+
badgeInfo?: V1LeaderboardBadgeInfo | null | undefined;
|
|
40
|
+
location?: Array<V1LeaderboardLocationInfo> | null | undefined;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
@@ -48,9 +48,10 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
|
|
|
48
48
|
> = z.object({
|
|
49
49
|
$schema: z.string().optional(),
|
|
50
50
|
accounts: z.nullable(z.array(V1AccountLeaderboardAccount$inboundSchema)),
|
|
51
|
-
app: z.nullable(
|
|
52
|
-
badgeInfo: z.nullable(
|
|
53
|
-
location: z.nullable(
|
|
51
|
+
app: z.nullable(V1LeaderboardAppInfo$inboundSchema).optional(),
|
|
52
|
+
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
53
|
+
location: z.nullable(z.array(V1LeaderboardLocationInfo$inboundSchema))
|
|
54
|
+
.optional(),
|
|
54
55
|
}).transform((v) => {
|
|
55
56
|
return remap$(v, {
|
|
56
57
|
"$schema": "dollarSchema",
|
|
@@ -61,9 +62,9 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
|
|
|
61
62
|
export type V1AccountLeaderboardResponseBody$Outbound = {
|
|
62
63
|
$schema?: string | undefined;
|
|
63
64
|
accounts: Array<V1AccountLeaderboardAccount$Outbound> | null;
|
|
64
|
-
app?:
|
|
65
|
-
badgeInfo?:
|
|
66
|
-
location?:
|
|
65
|
+
app?: V1LeaderboardAppInfo$Outbound | null | undefined;
|
|
66
|
+
badgeInfo?: V1LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
67
|
+
location?: Array<V1LeaderboardLocationInfo$Outbound> | null | undefined;
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
/** @internal */
|
|
@@ -74,10 +75,10 @@ export const V1AccountLeaderboardResponseBody$outboundSchema: z.ZodType<
|
|
|
74
75
|
> = z.object({
|
|
75
76
|
dollarSchema: z.string().optional(),
|
|
76
77
|
accounts: z.nullable(z.array(V1AccountLeaderboardAccount$outboundSchema)),
|
|
77
|
-
app: z.nullable(
|
|
78
|
-
badgeInfo: z.nullable(
|
|
78
|
+
app: z.nullable(V1LeaderboardAppInfo$outboundSchema).optional(),
|
|
79
|
+
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
80
|
+
location: z.nullable(z.array(V1LeaderboardLocationInfo$outboundSchema))
|
|
79
81
|
.optional(),
|
|
80
|
-
location: z.nullable(V1LeaderboardLocation$outboundSchema).optional(),
|
|
81
82
|
}).transform((v) => {
|
|
82
83
|
return remap$(v, {
|
|
83
84
|
dollarSchema: "$schema",
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
IDStruct,
|
|
8
|
+
IDStruct$inboundSchema,
|
|
9
|
+
IDStruct$Outbound,
|
|
10
|
+
IDStruct$outboundSchema,
|
|
11
|
+
} from "./idstruct.js";
|
|
12
|
+
import {
|
|
13
|
+
VanityStruct,
|
|
14
|
+
VanityStruct$inboundSchema,
|
|
15
|
+
VanityStruct$Outbound,
|
|
16
|
+
VanityStruct$outboundSchema,
|
|
17
|
+
} from "./vanitystruct.js";
|
|
18
|
+
|
|
19
|
+
export type V1AccountQueueRequestBody = {
|
|
20
|
+
/**
|
|
21
|
+
* Force the queue to process this account, staff only
|
|
22
|
+
*/
|
|
23
|
+
force: boolean;
|
|
24
|
+
id?: IDStruct | undefined;
|
|
25
|
+
vanity?: VanityStruct | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
|
|
30
|
+
V1AccountQueueRequestBody,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
force: z.boolean(),
|
|
35
|
+
id: IDStruct$inboundSchema.optional(),
|
|
36
|
+
vanity: VanityStruct$inboundSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type V1AccountQueueRequestBody$Outbound = {
|
|
41
|
+
force: boolean;
|
|
42
|
+
id?: IDStruct$Outbound | undefined;
|
|
43
|
+
vanity?: VanityStruct$Outbound | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const V1AccountQueueRequestBody$outboundSchema: z.ZodType<
|
|
48
|
+
V1AccountQueueRequestBody$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
V1AccountQueueRequestBody
|
|
51
|
+
> = z.object({
|
|
52
|
+
force: z.boolean(),
|
|
53
|
+
id: IDStruct$outboundSchema.optional(),
|
|
54
|
+
vanity: VanityStruct$outboundSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace V1AccountQueueRequestBody$ {
|
|
62
|
+
/** @deprecated use `V1AccountQueueRequestBody$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = V1AccountQueueRequestBody$inboundSchema;
|
|
64
|
+
/** @deprecated use `V1AccountQueueRequestBody$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = V1AccountQueueRequestBody$outboundSchema;
|
|
66
|
+
/** @deprecated use `V1AccountQueueRequestBody$Outbound` instead. */
|
|
67
|
+
export type Outbound = V1AccountQueueRequestBody$Outbound;
|
|
68
|
+
}
|
|
@@ -23,11 +23,11 @@ export type V1BadgeTagsResponseBody = {
|
|
|
23
23
|
*/
|
|
24
24
|
dollarSchema?: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The available color tags
|
|
27
27
|
*/
|
|
28
28
|
colorTags: Array<ColorTag> | null;
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
30
|
+
* The available design tags
|
|
31
31
|
*/
|
|
32
32
|
designTags: Array<DesignTag> | null;
|
|
33
33
|
};
|
|
@@ -78,9 +78,9 @@ export type V1GetSettingsBody = {
|
|
|
78
78
|
*/
|
|
79
79
|
emailNotifications: Array<EmailNotification> | null;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* The time the email was verified
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
emailVerifiedAt: Date | null;
|
|
84
84
|
/**
|
|
85
85
|
* Whether the account is hidden in the leaderboards
|
|
86
86
|
*/
|
|
@@ -140,7 +140,9 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
|
|
|
140
140
|
developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
|
|
141
141
|
email: z.string(),
|
|
142
142
|
emailNotifications: z.nullable(z.array(EmailNotification$inboundSchema)),
|
|
143
|
-
|
|
143
|
+
emailVerifiedAt: z.nullable(
|
|
144
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
145
|
+
),
|
|
144
146
|
hidden: z.boolean(),
|
|
145
147
|
images: z.nullable(z.array(Image$inboundSchema)),
|
|
146
148
|
language: z.string(),
|
|
@@ -162,7 +164,7 @@ export type V1GetSettingsBody$Outbound = {
|
|
|
162
164
|
developerApps: Array<DeveloperApp$Outbound> | null;
|
|
163
165
|
email: string;
|
|
164
166
|
emailNotifications: Array<EmailNotification$Outbound> | null;
|
|
165
|
-
|
|
167
|
+
emailVerifiedAt: string | null;
|
|
166
168
|
hidden: boolean;
|
|
167
169
|
images: Array<Image$Outbound> | null;
|
|
168
170
|
language: string;
|
|
@@ -184,7 +186,7 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
|
|
|
184
186
|
developerApps: z.nullable(z.array(DeveloperApp$outboundSchema)),
|
|
185
187
|
email: z.string(),
|
|
186
188
|
emailNotifications: z.nullable(z.array(EmailNotification$outboundSchema)),
|
|
187
|
-
|
|
189
|
+
emailVerifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
188
190
|
hidden: z.boolean(),
|
|
189
191
|
images: z.nullable(z.array(Image$outboundSchema)),
|
|
190
192
|
language: z.string(),
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1LeaderboardAppInfo = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the app
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The image of the app
|
|
14
|
+
*/
|
|
15
|
+
image: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the app
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The type of the app
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const V1LeaderboardAppInfo$inboundSchema: z.ZodType<
|
|
28
|
+
V1LeaderboardAppInfo,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
image: z.string(),
|
|
34
|
+
name: z.string(),
|
|
35
|
+
type: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type V1LeaderboardAppInfo$Outbound = {
|
|
40
|
+
id: number;
|
|
41
|
+
image: string;
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const V1LeaderboardAppInfo$outboundSchema: z.ZodType<
|
|
48
|
+
V1LeaderboardAppInfo$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
V1LeaderboardAppInfo
|
|
51
|
+
> = z.object({
|
|
52
|
+
id: z.number().int(),
|
|
53
|
+
image: z.string(),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
type: z.string(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace V1LeaderboardAppInfo$ {
|
|
63
|
+
/** @deprecated use `V1LeaderboardAppInfo$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = V1LeaderboardAppInfo$inboundSchema;
|
|
65
|
+
/** @deprecated use `V1LeaderboardAppInfo$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = V1LeaderboardAppInfo$outboundSchema;
|
|
67
|
+
/** @deprecated use `V1LeaderboardAppInfo$Outbound` instead. */
|
|
68
|
+
export type Outbound = V1LeaderboardAppInfo$Outbound;
|
|
69
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1LeaderboardBadgeInfo = {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the app
|
|
10
|
+
*/
|
|
11
|
+
appId: number;
|
|
12
|
+
/**
|
|
13
|
+
* The image of the app
|
|
14
|
+
*/
|
|
15
|
+
appImage: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the app
|
|
18
|
+
*/
|
|
19
|
+
appName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The image of the badge
|
|
22
|
+
*/
|
|
23
|
+
image: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the badge is foil or not
|
|
26
|
+
*/
|
|
27
|
+
isFoil: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The level of the badge
|
|
30
|
+
*/
|
|
31
|
+
level: number;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the badge
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const V1LeaderboardBadgeInfo$inboundSchema: z.ZodType<
|
|
40
|
+
V1LeaderboardBadgeInfo,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
appId: z.number().int(),
|
|
45
|
+
appImage: z.string(),
|
|
46
|
+
appName: z.string(),
|
|
47
|
+
image: z.string(),
|
|
48
|
+
isFoil: z.boolean(),
|
|
49
|
+
level: z.number().int(),
|
|
50
|
+
name: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type V1LeaderboardBadgeInfo$Outbound = {
|
|
55
|
+
appId: number;
|
|
56
|
+
appImage: string;
|
|
57
|
+
appName: string;
|
|
58
|
+
image: string;
|
|
59
|
+
isFoil: boolean;
|
|
60
|
+
level: number;
|
|
61
|
+
name: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const V1LeaderboardBadgeInfo$outboundSchema: z.ZodType<
|
|
66
|
+
V1LeaderboardBadgeInfo$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
V1LeaderboardBadgeInfo
|
|
69
|
+
> = z.object({
|
|
70
|
+
appId: z.number().int(),
|
|
71
|
+
appImage: z.string(),
|
|
72
|
+
appName: z.string(),
|
|
73
|
+
image: z.string(),
|
|
74
|
+
isFoil: z.boolean(),
|
|
75
|
+
level: z.number().int(),
|
|
76
|
+
name: z.string(),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace V1LeaderboardBadgeInfo$ {
|
|
84
|
+
/** @deprecated use `V1LeaderboardBadgeInfo$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = V1LeaderboardBadgeInfo$inboundSchema;
|
|
86
|
+
/** @deprecated use `V1LeaderboardBadgeInfo$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = V1LeaderboardBadgeInfo$outboundSchema;
|
|
88
|
+
/** @deprecated use `V1LeaderboardBadgeInfo$Outbound` instead. */
|
|
89
|
+
export type Outbound = V1LeaderboardBadgeInfo$Outbound;
|
|
90
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1LeaderboardLocationInfo = {
|
|
8
|
+
/**
|
|
9
|
+
* The city name of the location
|
|
10
|
+
*/
|
|
11
|
+
cityName: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* The country code of the location
|
|
14
|
+
*/
|
|
15
|
+
countryCode: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* The country name of the location
|
|
18
|
+
*/
|
|
19
|
+
countryName: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The region of the location
|
|
22
|
+
*/
|
|
23
|
+
region: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The state name of the location
|
|
26
|
+
*/
|
|
27
|
+
stateName: string | null;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const V1LeaderboardLocationInfo$inboundSchema: z.ZodType<
|
|
32
|
+
V1LeaderboardLocationInfo,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
cityName: z.nullable(z.string()),
|
|
37
|
+
countryCode: z.nullable(z.string()),
|
|
38
|
+
countryName: z.nullable(z.string()),
|
|
39
|
+
region: z.nullable(z.string()),
|
|
40
|
+
stateName: z.nullable(z.string()),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type V1LeaderboardLocationInfo$Outbound = {
|
|
45
|
+
cityName: string | null;
|
|
46
|
+
countryCode: string | null;
|
|
47
|
+
countryName: string | null;
|
|
48
|
+
region: string | null;
|
|
49
|
+
stateName: string | null;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const V1LeaderboardLocationInfo$outboundSchema: z.ZodType<
|
|
54
|
+
V1LeaderboardLocationInfo$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
V1LeaderboardLocationInfo
|
|
57
|
+
> = z.object({
|
|
58
|
+
cityName: z.nullable(z.string()),
|
|
59
|
+
countryCode: z.nullable(z.string()),
|
|
60
|
+
countryName: z.nullable(z.string()),
|
|
61
|
+
region: z.nullable(z.string()),
|
|
62
|
+
stateName: z.nullable(z.string()),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace V1LeaderboardLocationInfo$ {
|
|
70
|
+
/** @deprecated use `V1LeaderboardLocationInfo$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = V1LeaderboardLocationInfo$inboundSchema;
|
|
72
|
+
/** @deprecated use `V1LeaderboardLocationInfo$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema = V1LeaderboardLocationInfo$outboundSchema;
|
|
74
|
+
/** @deprecated use `V1LeaderboardLocationInfo$Outbound` instead. */
|
|
75
|
+
export type Outbound = V1LeaderboardLocationInfo$Outbound;
|
|
76
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Which type of vanity to search for
|
|
10
|
+
*/
|
|
11
|
+
export const VanityStructType = {
|
|
12
|
+
Steam: "steam",
|
|
13
|
+
Internal: "internal",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Which type of vanity to search for
|
|
17
|
+
*/
|
|
18
|
+
export type VanityStructType = ClosedEnum<typeof VanityStructType>;
|
|
19
|
+
|
|
20
|
+
export type VanityStruct = {
|
|
21
|
+
/**
|
|
22
|
+
* Which type of vanity to search for
|
|
23
|
+
*/
|
|
24
|
+
type: VanityStructType;
|
|
25
|
+
/**
|
|
26
|
+
* Vanity to search for
|
|
27
|
+
*/
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const VanityStructType$inboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof VanityStructType
|
|
34
|
+
> = z.nativeEnum(VanityStructType);
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const VanityStructType$outboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof VanityStructType
|
|
39
|
+
> = VanityStructType$inboundSchema;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace VanityStructType$ {
|
|
46
|
+
/** @deprecated use `VanityStructType$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = VanityStructType$inboundSchema;
|
|
48
|
+
/** @deprecated use `VanityStructType$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = VanityStructType$outboundSchema;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const VanityStruct$inboundSchema: z.ZodType<
|
|
54
|
+
VanityStruct,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
type: VanityStructType$inboundSchema,
|
|
59
|
+
value: z.string(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type VanityStruct$Outbound = {
|
|
64
|
+
type: string;
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const VanityStruct$outboundSchema: z.ZodType<
|
|
70
|
+
VanityStruct$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
VanityStruct
|
|
73
|
+
> = z.object({
|
|
74
|
+
type: VanityStructType$outboundSchema,
|
|
75
|
+
value: z.string(),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace VanityStruct$ {
|
|
83
|
+
/** @deprecated use `VanityStruct$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = VanityStruct$inboundSchema;
|
|
85
|
+
/** @deprecated use `VanityStruct$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = VanityStruct$outboundSchema;
|
|
87
|
+
/** @deprecated use `VanityStruct$Outbound` instead. */
|
|
88
|
+
export type Outbound = VanityStruct$Outbound;
|
|
89
|
+
}
|