@steamsets/client-ts 0.27.7 → 0.27.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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/accountsearch.d.ts +6 -6
- package/models/components/accountsearch.d.ts.map +1 -1
- package/models/components/accountsearch.js +6 -6
- package/models/components/accountsearch.js.map +1 -1
- package/models/components/chosenrole.d.ts +3 -0
- package/models/components/chosenrole.d.ts.map +1 -1
- package/models/components/chosenrole.js +1 -0
- package/models/components/chosenrole.js.map +1 -1
- package/models/components/idsearch.d.ts +37 -0
- package/models/components/{idstruct.d.ts.map → idsearch.d.ts.map} +1 -1
- package/models/components/{idstruct.js → idsearch.js} +17 -17
- package/models/components/{idstruct.js.map → idsearch.js.map} +1 -1
- package/models/components/index.d.ts +2 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -4
- package/models/components/index.js.map +1 -1
- package/models/components/role.d.ts +12 -0
- package/models/components/role.d.ts.map +1 -1
- package/models/components/role.js +3 -0
- package/models/components/role.js.map +1 -1
- package/models/components/v1accountlistappsrequestbody.d.ts +6 -6
- package/models/components/v1accountlistappsrequestbody.js +6 -6
- package/models/components/v1accountlistbadgesrequestbody.d.ts +6 -6
- package/models/components/v1accountlistbadgesrequestbody.js +6 -6
- package/models/components/v1accountqueueupdaterequestbody.d.ts +6 -6
- package/models/components/v1accountqueueupdaterequestbody.js +6 -6
- package/models/components/v1adminupdateresourcesrequestbody.d.ts +6 -6
- package/models/components/v1adminupdateresourcesrequestbody.js +6 -6
- package/models/components/v1adminupdaterolesrequestbody.d.ts +9 -6
- package/models/components/v1adminupdaterolesrequestbody.d.ts.map +1 -1
- package/models/components/v1adminupdaterolesrequestbody.js +7 -6
- package/models/components/v1adminupdaterolesrequestbody.js.map +1 -1
- package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts +6 -6
- package/models/components/v1leaderboardpreviewaccountrankrequestbody.js +6 -6
- package/models/components/{accountsearchvanitystruct.d.ts → vanitysearch.d.ts} +14 -14
- package/models/components/vanitysearch.d.ts.map +1 -0
- package/models/components/{accountsearchvanitystruct.js → vanitysearch.js} +17 -17
- package/models/components/vanitysearch.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountsearch.ts +18 -18
- package/src/models/components/chosenrole.ts +1 -0
- package/src/models/components/{idstruct.ts → idsearch.ts} +20 -20
- package/src/models/components/index.ts +2 -4
- package/src/models/components/role.ts +8 -0
- package/src/models/components/v1accountlistappsrequestbody.ts +18 -18
- package/src/models/components/v1accountlistbadgesrequestbody.ts +18 -18
- package/src/models/components/v1accountqueueupdaterequestbody.ts +18 -18
- package/src/models/components/v1adminupdateresourcesrequestbody.ts +18 -18
- package/src/models/components/v1adminupdaterolesrequestbody.ts +19 -18
- package/src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts +18 -18
- package/src/models/components/{accountsearchvanitystruct.ts → vanitysearch.ts} +20 -24
- package/models/components/accountsearchidstruct.d.ts +0 -37
- package/models/components/accountsearchidstruct.d.ts.map +0 -1
- package/models/components/accountsearchidstruct.js +0 -71
- package/models/components/accountsearchidstruct.js.map +0 -1
- package/models/components/accountsearchvanitystruct.d.ts.map +0 -1
- package/models/components/accountsearchvanitystruct.js.map +0 -1
- package/models/components/idstruct.d.ts +0 -37
- package/models/components/vanitystruct.d.ts +0 -69
- package/models/components/vanitystruct.d.ts.map +0 -1
- package/models/components/vanitystruct.js +0 -93
- package/models/components/vanitystruct.js.map +0 -1
- package/src/models/components/accountsearchidstruct.ts +0 -76
- package/src/models/components/vanitystruct.ts +0 -106
|
@@ -7,7 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type IDSearch = {
|
|
11
11
|
/**
|
|
12
12
|
* Account ID to search for
|
|
13
13
|
*/
|
|
@@ -19,8 +19,8 @@ export type IDStruct = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
22
|
-
export const
|
|
23
|
-
|
|
22
|
+
export const IDSearch$inboundSchema: z.ZodType<
|
|
23
|
+
IDSearch,
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
@@ -29,16 +29,16 @@ export const IDStruct$inboundSchema: z.ZodType<
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
32
|
-
export type
|
|
32
|
+
export type IDSearch$Outbound = {
|
|
33
33
|
accountId?: number | undefined;
|
|
34
34
|
steamId64?: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
|
|
38
|
+
export const IDSearch$outboundSchema: z.ZodType<
|
|
39
|
+
IDSearch$Outbound,
|
|
40
40
|
z.ZodTypeDef,
|
|
41
|
-
|
|
41
|
+
IDSearch
|
|
42
42
|
> = z.object({
|
|
43
43
|
accountId: z.number().int().optional(),
|
|
44
44
|
steamId64: z.string().optional(),
|
|
@@ -48,25 +48,25 @@ export const IDStruct$outboundSchema: z.ZodType<
|
|
|
48
48
|
* @internal
|
|
49
49
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
50
|
*/
|
|
51
|
-
export namespace
|
|
52
|
-
/** @deprecated use `
|
|
53
|
-
export const inboundSchema =
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
export const outboundSchema =
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
export type Outbound =
|
|
51
|
+
export namespace IDSearch$ {
|
|
52
|
+
/** @deprecated use `IDSearch$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = IDSearch$inboundSchema;
|
|
54
|
+
/** @deprecated use `IDSearch$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = IDSearch$outboundSchema;
|
|
56
|
+
/** @deprecated use `IDSearch$Outbound` instead. */
|
|
57
|
+
export type Outbound = IDSearch$Outbound;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return JSON.stringify(
|
|
60
|
+
export function idSearchToJSON(idSearch: IDSearch): string {
|
|
61
|
+
return JSON.stringify(IDSearch$outboundSchema.parse(idSearch));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function idSearchFromJSON(
|
|
65
65
|
jsonString: string,
|
|
66
|
-
): SafeParseResult<
|
|
66
|
+
): SafeParseResult<IDSearch, SDKValidationError> {
|
|
67
67
|
return safeParse(
|
|
68
68
|
jsonString,
|
|
69
|
-
(x) =>
|
|
70
|
-
`Failed to parse '
|
|
69
|
+
(x) => IDSearch$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'IDSearch' from JSON`,
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
export * from "./accountbadgeinfo.js";
|
|
6
6
|
export * from "./accountleaderboardhistory.js";
|
|
7
7
|
export * from "./accountsearch.js";
|
|
8
|
-
export * from "./accountsearchidstruct.js";
|
|
9
|
-
export * from "./accountsearchvanitystruct.js";
|
|
10
8
|
export * from "./badge.js";
|
|
11
9
|
export * from "./badgesuggesttags.js";
|
|
12
10
|
export * from "./badgevaluefilter.js";
|
|
@@ -23,7 +21,7 @@ export * from "./errordetail.js";
|
|
|
23
21
|
export * from "./errormodel.js";
|
|
24
22
|
export * from "./historyvalue.js";
|
|
25
23
|
export * from "./httpmetadata.js";
|
|
26
|
-
export * from "./
|
|
24
|
+
export * from "./idsearch.js";
|
|
27
25
|
export * from "./image.js";
|
|
28
26
|
export * from "./leaderboardaccount.js";
|
|
29
27
|
export * from "./leaderboardcity.js";
|
|
@@ -161,5 +159,5 @@ export * from "./v1livenessresponsebody.js";
|
|
|
161
159
|
export * from "./v1searchrequest.js";
|
|
162
160
|
export * from "./v1stats.js";
|
|
163
161
|
export * from "./v1vanityanalytics.js";
|
|
164
|
-
export * from "./
|
|
162
|
+
export * from "./vanitysearch.js";
|
|
165
163
|
export * from "./vectors.js";
|
|
@@ -27,10 +27,15 @@ export const RoleRole = {
|
|
|
27
27
|
Translator: "translator",
|
|
28
28
|
Top100: "top_100",
|
|
29
29
|
BadgeScout: "badge_scout",
|
|
30
|
+
NitroBooster: "nitro_booster",
|
|
30
31
|
} as const;
|
|
31
32
|
export type RoleRole = ClosedEnum<typeof RoleRole>;
|
|
32
33
|
|
|
33
34
|
export type Role = {
|
|
35
|
+
/**
|
|
36
|
+
* Extra data associated with the role
|
|
37
|
+
*/
|
|
38
|
+
extras: { [k: string]: any } | null;
|
|
34
39
|
/**
|
|
35
40
|
* The higher the more presedence it has
|
|
36
41
|
*/
|
|
@@ -60,12 +65,14 @@ export namespace RoleRole$ {
|
|
|
60
65
|
/** @internal */
|
|
61
66
|
export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
|
|
62
67
|
.object({
|
|
68
|
+
extras: z.nullable(z.record(z.any())),
|
|
63
69
|
rating: z.number().int(),
|
|
64
70
|
role: RoleRole$inboundSchema,
|
|
65
71
|
});
|
|
66
72
|
|
|
67
73
|
/** @internal */
|
|
68
74
|
export type Role$Outbound = {
|
|
75
|
+
extras: { [k: string]: any } | null;
|
|
69
76
|
rating: number;
|
|
70
77
|
role: string;
|
|
71
78
|
};
|
|
@@ -73,6 +80,7 @@ export type Role$Outbound = {
|
|
|
73
80
|
/** @internal */
|
|
74
81
|
export const Role$outboundSchema: z.ZodType<Role$Outbound, z.ZodTypeDef, Role> =
|
|
75
82
|
z.object({
|
|
83
|
+
extras: z.nullable(z.record(z.any())),
|
|
76
84
|
rating: z.number().int(),
|
|
77
85
|
role: RoleRole$outboundSchema,
|
|
78
86
|
});
|
|
@@ -7,11 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
IDSearch,
|
|
11
|
+
IDSearch$inboundSchema,
|
|
12
|
+
IDSearch$Outbound,
|
|
13
|
+
IDSearch$outboundSchema,
|
|
14
|
+
} from "./idsearch.js";
|
|
15
15
|
import {
|
|
16
16
|
V1AppFilters,
|
|
17
17
|
V1AppFilters$inboundSchema,
|
|
@@ -25,19 +25,19 @@ import {
|
|
|
25
25
|
V1AppOrder$outboundSchema,
|
|
26
26
|
} from "./v1apporder.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} from "./
|
|
28
|
+
VanitySearch,
|
|
29
|
+
VanitySearch$inboundSchema,
|
|
30
|
+
VanitySearch$Outbound,
|
|
31
|
+
VanitySearch$outboundSchema,
|
|
32
|
+
} from "./vanitysearch.js";
|
|
33
33
|
|
|
34
34
|
export type V1AccountListAppsRequestBody = {
|
|
35
35
|
filters?: V1AppFilters | undefined;
|
|
36
|
-
id?:
|
|
36
|
+
id?: IDSearch | undefined;
|
|
37
37
|
order?: V1AppOrder | null | undefined;
|
|
38
38
|
page?: number | undefined;
|
|
39
39
|
search?: string | null | undefined;
|
|
40
|
-
vanity?:
|
|
40
|
+
vanity?: VanitySearch | undefined;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
@@ -47,21 +47,21 @@ export const V1AccountListAppsRequestBody$inboundSchema: z.ZodType<
|
|
|
47
47
|
unknown
|
|
48
48
|
> = z.object({
|
|
49
49
|
filters: V1AppFilters$inboundSchema.optional(),
|
|
50
|
-
id:
|
|
50
|
+
id: IDSearch$inboundSchema.optional(),
|
|
51
51
|
order: z.nullable(V1AppOrder$inboundSchema).optional(),
|
|
52
52
|
page: z.number().int().default(1),
|
|
53
53
|
search: z.nullable(z.string()).optional(),
|
|
54
|
-
vanity:
|
|
54
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
58
58
|
export type V1AccountListAppsRequestBody$Outbound = {
|
|
59
59
|
filters?: V1AppFilters$Outbound | undefined;
|
|
60
|
-
id?:
|
|
60
|
+
id?: IDSearch$Outbound | undefined;
|
|
61
61
|
order?: V1AppOrder$Outbound | null | undefined;
|
|
62
62
|
page: number;
|
|
63
63
|
search?: string | null | undefined;
|
|
64
|
-
vanity?:
|
|
64
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/** @internal */
|
|
@@ -71,11 +71,11 @@ export const V1AccountListAppsRequestBody$outboundSchema: z.ZodType<
|
|
|
71
71
|
V1AccountListAppsRequestBody
|
|
72
72
|
> = z.object({
|
|
73
73
|
filters: V1AppFilters$outboundSchema.optional(),
|
|
74
|
-
id:
|
|
74
|
+
id: IDSearch$outboundSchema.optional(),
|
|
75
75
|
order: z.nullable(V1AppOrder$outboundSchema).optional(),
|
|
76
76
|
page: z.number().int().default(1),
|
|
77
77
|
search: z.nullable(z.string()).optional(),
|
|
78
|
-
vanity:
|
|
78
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
BadgeValueFilter$outboundSchema,
|
|
15
15
|
} from "./badgevaluefilter.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
IDSearch,
|
|
18
|
+
IDSearch$inboundSchema,
|
|
19
|
+
IDSearch$Outbound,
|
|
20
|
+
IDSearch$outboundSchema,
|
|
21
|
+
} from "./idsearch.js";
|
|
22
22
|
import {
|
|
23
23
|
V1BadgeFilters,
|
|
24
24
|
V1BadgeFilters$inboundSchema,
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
V1BadgeOrder$outboundSchema,
|
|
33
33
|
} from "./v1badgeorder.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
35
|
+
VanitySearch,
|
|
36
|
+
VanitySearch$inboundSchema,
|
|
37
|
+
VanitySearch$Outbound,
|
|
38
|
+
VanitySearch$outboundSchema,
|
|
39
|
+
} from "./vanitysearch.js";
|
|
40
40
|
|
|
41
41
|
export const V1AccountListBadgesRequestBodyFilter = {
|
|
42
42
|
Foil: "foil",
|
|
@@ -53,7 +53,7 @@ export type V1AccountListBadgesRequestBody = {
|
|
|
53
53
|
*/
|
|
54
54
|
filter?: Array<V1AccountListBadgesRequestBodyFilter> | null | undefined;
|
|
55
55
|
filters?: V1BadgeFilters | undefined;
|
|
56
|
-
id?:
|
|
56
|
+
id?: IDSearch | undefined;
|
|
57
57
|
order?: V1BadgeOrder | null | undefined;
|
|
58
58
|
page?: number | undefined;
|
|
59
59
|
search?: string | null | undefined;
|
|
@@ -61,7 +61,7 @@ export type V1AccountListBadgesRequestBody = {
|
|
|
61
61
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
62
|
*/
|
|
63
63
|
valueFilter?: Array<BadgeValueFilter> | null | undefined;
|
|
64
|
-
vanity?:
|
|
64
|
+
vanity?: VanitySearch | undefined;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/** @internal */
|
|
@@ -98,24 +98,24 @@ export const V1AccountListBadgesRequestBody$inboundSchema: z.ZodType<
|
|
|
98
98
|
z.array(V1AccountListBadgesRequestBodyFilter$inboundSchema),
|
|
99
99
|
).optional(),
|
|
100
100
|
filters: V1BadgeFilters$inboundSchema.optional(),
|
|
101
|
-
id:
|
|
101
|
+
id: IDSearch$inboundSchema.optional(),
|
|
102
102
|
order: z.nullable(V1BadgeOrder$inboundSchema).optional(),
|
|
103
103
|
page: z.number().int().default(1),
|
|
104
104
|
search: z.nullable(z.string()).optional(),
|
|
105
105
|
valueFilter: z.nullable(z.array(BadgeValueFilter$inboundSchema)).optional(),
|
|
106
|
-
vanity:
|
|
106
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
/** @internal */
|
|
110
110
|
export type V1AccountListBadgesRequestBody$Outbound = {
|
|
111
111
|
filter?: Array<string> | null | undefined;
|
|
112
112
|
filters?: V1BadgeFilters$Outbound | undefined;
|
|
113
|
-
id?:
|
|
113
|
+
id?: IDSearch$Outbound | undefined;
|
|
114
114
|
order?: V1BadgeOrder$Outbound | null | undefined;
|
|
115
115
|
page: number;
|
|
116
116
|
search?: string | null | undefined;
|
|
117
117
|
valueFilter?: Array<BadgeValueFilter$Outbound> | null | undefined;
|
|
118
|
-
vanity?:
|
|
118
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/** @internal */
|
|
@@ -128,12 +128,12 @@ export const V1AccountListBadgesRequestBody$outboundSchema: z.ZodType<
|
|
|
128
128
|
z.array(V1AccountListBadgesRequestBodyFilter$outboundSchema),
|
|
129
129
|
).optional(),
|
|
130
130
|
filters: V1BadgeFilters$outboundSchema.optional(),
|
|
131
|
-
id:
|
|
131
|
+
id: IDSearch$outboundSchema.optional(),
|
|
132
132
|
order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
|
|
133
133
|
page: z.number().int().default(1),
|
|
134
134
|
search: z.nullable(z.string()).optional(),
|
|
135
135
|
valueFilter: z.nullable(z.array(BadgeValueFilter$outboundSchema)).optional(),
|
|
136
|
-
vanity:
|
|
136
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
137
137
|
});
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -7,25 +7,25 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
IDSearch,
|
|
11
|
+
IDSearch$inboundSchema,
|
|
12
|
+
IDSearch$Outbound,
|
|
13
|
+
IDSearch$outboundSchema,
|
|
14
|
+
} from "./idsearch.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
16
|
+
VanitySearch,
|
|
17
|
+
VanitySearch$inboundSchema,
|
|
18
|
+
VanitySearch$Outbound,
|
|
19
|
+
VanitySearch$outboundSchema,
|
|
20
|
+
} from "./vanitysearch.js";
|
|
21
21
|
|
|
22
22
|
export type V1AccountQueueUpdateRequestBody = {
|
|
23
23
|
/**
|
|
24
24
|
* Force the queue to process this account, staff only
|
|
25
25
|
*/
|
|
26
26
|
force?: boolean | undefined;
|
|
27
|
-
id?:
|
|
28
|
-
vanity?:
|
|
27
|
+
id?: IDSearch | undefined;
|
|
28
|
+
vanity?: VanitySearch | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
@@ -35,15 +35,15 @@ export const V1AccountQueueUpdateRequestBody$inboundSchema: z.ZodType<
|
|
|
35
35
|
unknown
|
|
36
36
|
> = z.object({
|
|
37
37
|
force: z.boolean().default(false),
|
|
38
|
-
id:
|
|
39
|
-
vanity:
|
|
38
|
+
id: IDSearch$inboundSchema.optional(),
|
|
39
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type V1AccountQueueUpdateRequestBody$Outbound = {
|
|
44
44
|
force: boolean;
|
|
45
|
-
id?:
|
|
46
|
-
vanity?:
|
|
45
|
+
id?: IDSearch$Outbound | undefined;
|
|
46
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
/** @internal */
|
|
@@ -53,8 +53,8 @@ export const V1AccountQueueUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
53
53
|
V1AccountQueueUpdateRequestBody
|
|
54
54
|
> = z.object({
|
|
55
55
|
force: z.boolean().default(false),
|
|
56
|
-
id:
|
|
57
|
-
vanity:
|
|
56
|
+
id: IDSearch$outboundSchema.optional(),
|
|
57
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -7,11 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
IDSearch,
|
|
11
|
+
IDSearch$inboundSchema,
|
|
12
|
+
IDSearch$Outbound,
|
|
13
|
+
IDSearch$outboundSchema,
|
|
14
|
+
} from "./idsearch.js";
|
|
15
15
|
import {
|
|
16
16
|
Resource,
|
|
17
17
|
Resource$inboundSchema,
|
|
@@ -19,19 +19,19 @@ import {
|
|
|
19
19
|
Resource$outboundSchema,
|
|
20
20
|
} from "./resource.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
22
|
+
VanitySearch,
|
|
23
|
+
VanitySearch$inboundSchema,
|
|
24
|
+
VanitySearch$Outbound,
|
|
25
|
+
VanitySearch$outboundSchema,
|
|
26
|
+
} from "./vanitysearch.js";
|
|
27
27
|
|
|
28
28
|
export type V1AdminUpdateResourcesRequestBody = {
|
|
29
|
-
id?:
|
|
29
|
+
id?: IDSearch | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* The resources to add for this account
|
|
32
32
|
*/
|
|
33
33
|
resources: Array<Resource> | null;
|
|
34
|
-
vanity?:
|
|
34
|
+
vanity?: VanitySearch | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -40,16 +40,16 @@ export const V1AdminUpdateResourcesRequestBody$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
id:
|
|
43
|
+
id: IDSearch$inboundSchema.optional(),
|
|
44
44
|
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
45
|
-
vanity:
|
|
45
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type V1AdminUpdateResourcesRequestBody$Outbound = {
|
|
50
|
-
id?:
|
|
50
|
+
id?: IDSearch$Outbound | undefined;
|
|
51
51
|
resources: Array<Resource$Outbound> | null;
|
|
52
|
-
vanity?:
|
|
52
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/** @internal */
|
|
@@ -58,9 +58,9 @@ export const V1AdminUpdateResourcesRequestBody$outboundSchema: z.ZodType<
|
|
|
58
58
|
z.ZodTypeDef,
|
|
59
59
|
V1AdminUpdateResourcesRequestBody
|
|
60
60
|
> = z.object({
|
|
61
|
-
id:
|
|
61
|
+
id: IDSearch$outboundSchema.optional(),
|
|
62
62
|
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
63
|
-
vanity:
|
|
63
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -8,17 +8,17 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
IDSearch,
|
|
12
|
+
IDSearch$inboundSchema,
|
|
13
|
+
IDSearch$Outbound,
|
|
14
|
+
IDSearch$outboundSchema,
|
|
15
|
+
} from "./idsearch.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
VanitySearch,
|
|
18
|
+
VanitySearch$inboundSchema,
|
|
19
|
+
VanitySearch$Outbound,
|
|
20
|
+
VanitySearch$outboundSchema,
|
|
21
|
+
} from "./vanitysearch.js";
|
|
22
22
|
|
|
23
23
|
export const Roles = {
|
|
24
24
|
User: "user",
|
|
@@ -39,13 +39,14 @@ export const Roles = {
|
|
|
39
39
|
Translator: "translator",
|
|
40
40
|
Top100: "top_100",
|
|
41
41
|
BadgeScout: "badge_scout",
|
|
42
|
+
NitroBooster: "nitro_booster",
|
|
42
43
|
} as const;
|
|
43
44
|
export type Roles = ClosedEnum<typeof Roles>;
|
|
44
45
|
|
|
45
46
|
export type V1AdminUpdateRolesRequestBody = {
|
|
46
|
-
id?:
|
|
47
|
+
id?: IDSearch | undefined;
|
|
47
48
|
roles: Array<Roles> | null;
|
|
48
|
-
vanity?:
|
|
49
|
+
vanity?: VanitySearch | undefined;
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
/** @internal */
|
|
@@ -74,16 +75,16 @@ export const V1AdminUpdateRolesRequestBody$inboundSchema: z.ZodType<
|
|
|
74
75
|
z.ZodTypeDef,
|
|
75
76
|
unknown
|
|
76
77
|
> = z.object({
|
|
77
|
-
id:
|
|
78
|
+
id: IDSearch$inboundSchema.optional(),
|
|
78
79
|
roles: z.nullable(z.array(Roles$inboundSchema)),
|
|
79
|
-
vanity:
|
|
80
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
80
81
|
});
|
|
81
82
|
|
|
82
83
|
/** @internal */
|
|
83
84
|
export type V1AdminUpdateRolesRequestBody$Outbound = {
|
|
84
|
-
id?:
|
|
85
|
+
id?: IDSearch$Outbound | undefined;
|
|
85
86
|
roles: Array<string> | null;
|
|
86
|
-
vanity?:
|
|
87
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
/** @internal */
|
|
@@ -92,9 +93,9 @@ export const V1AdminUpdateRolesRequestBody$outboundSchema: z.ZodType<
|
|
|
92
93
|
z.ZodTypeDef,
|
|
93
94
|
V1AdminUpdateRolesRequestBody
|
|
94
95
|
> = z.object({
|
|
95
|
-
id:
|
|
96
|
+
id: IDSearch$outboundSchema.optional(),
|
|
96
97
|
roles: z.nullable(z.array(Roles$outboundSchema)),
|
|
97
|
-
vanity:
|
|
98
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
98
99
|
});
|
|
99
100
|
|
|
100
101
|
/**
|
|
@@ -8,17 +8,17 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
IDSearch,
|
|
12
|
+
IDSearch$inboundSchema,
|
|
13
|
+
IDSearch$Outbound,
|
|
14
|
+
IDSearch$outboundSchema,
|
|
15
|
+
} from "./idsearch.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
VanitySearch,
|
|
18
|
+
VanitySearch$inboundSchema,
|
|
19
|
+
VanitySearch$Outbound,
|
|
20
|
+
VanitySearch$outboundSchema,
|
|
21
|
+
} from "./vanitysearch.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* The leaderboard to get
|
|
@@ -48,7 +48,7 @@ export type V1LeaderboardPreviewAccountRankRequestBodyLeaderboard = ClosedEnum<
|
|
|
48
48
|
>;
|
|
49
49
|
|
|
50
50
|
export type V1LeaderboardPreviewAccountRankRequestBody = {
|
|
51
|
-
id?:
|
|
51
|
+
id?: IDSearch | undefined;
|
|
52
52
|
/**
|
|
53
53
|
* The leaderboard to get
|
|
54
54
|
*/
|
|
@@ -57,7 +57,7 @@ export type V1LeaderboardPreviewAccountRankRequestBody = {
|
|
|
57
57
|
* What their leaderboard score would be, will use their current rank if not set
|
|
58
58
|
*/
|
|
59
59
|
value?: number | null | undefined;
|
|
60
|
-
vanity?:
|
|
60
|
+
vanity?: VanitySearch | undefined;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
@@ -89,19 +89,19 @@ export namespace V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ {
|
|
|
89
89
|
export const V1LeaderboardPreviewAccountRankRequestBody$inboundSchema:
|
|
90
90
|
z.ZodType<V1LeaderboardPreviewAccountRankRequestBody, z.ZodTypeDef, unknown> =
|
|
91
91
|
z.object({
|
|
92
|
-
id:
|
|
92
|
+
id: IDSearch$inboundSchema.optional(),
|
|
93
93
|
leaderboard:
|
|
94
94
|
V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema,
|
|
95
95
|
value: z.nullable(z.number().int()).optional(),
|
|
96
|
-
vanity:
|
|
96
|
+
vanity: VanitySearch$inboundSchema.optional(),
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
/** @internal */
|
|
100
100
|
export type V1LeaderboardPreviewAccountRankRequestBody$Outbound = {
|
|
101
|
-
id?:
|
|
101
|
+
id?: IDSearch$Outbound | undefined;
|
|
102
102
|
leaderboard: string;
|
|
103
103
|
value?: number | null | undefined;
|
|
104
|
-
vanity?:
|
|
104
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/** @internal */
|
|
@@ -111,11 +111,11 @@ export const V1LeaderboardPreviewAccountRankRequestBody$outboundSchema:
|
|
|
111
111
|
z.ZodTypeDef,
|
|
112
112
|
V1LeaderboardPreviewAccountRankRequestBody
|
|
113
113
|
> = z.object({
|
|
114
|
-
id:
|
|
114
|
+
id: IDSearch$outboundSchema.optional(),
|
|
115
115
|
leaderboard:
|
|
116
116
|
V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema,
|
|
117
117
|
value: z.nullable(z.number().int()).optional(),
|
|
118
|
-
vanity:
|
|
118
|
+
vanity: VanitySearch$outboundSchema.optional(),
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
/**
|