@steamsets/client-ts 0.14.27 → 0.14.29
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 +6 -0
- package/docs/sdks/account/README.md +77 -12
- package/docs/sdks/data/README.md +4 -12
- package/docs/sdks/external/README.md +4 -12
- package/docs/sdks/internal/README.md +73 -0
- package/docs/sdks/settings/README.md +73 -0
- package/funcs/accountAccountV1SettingsUpdateRole.d.ts +11 -0
- package/funcs/accountAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/accountAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/accountAccountV1SettingsUpdateRole.js.map +1 -0
- package/funcs/internalAccountV1SettingsUpdateRole.d.ts +11 -0
- package/funcs/internalAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/internalAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/internalAccountV1SettingsUpdateRole.js.map +1 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.d.ts +11 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +0 -5
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +0 -2
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +0 -5
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +0 -2
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +5 -5
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +2 -2
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +0 -5
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +0 -2
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1updaterolerequestbody.d.ts +76 -0
- package/models/components/v1updaterolerequestbody.d.ts.map +1 -0
- package/models/components/v1updaterolerequestbody.js +85 -0
- package/models/components/v1updaterolerequestbody.js.map +1 -0
- package/models/components/v1updatesettingsrequestbody.d.ts +0 -49
- package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1updatesettingsrequestbody.js +1 -29
- package/models/components/v1updatesettingsrequestbody.js.map +1 -1
- package/models/operations/accountv1settingsupdaterole.d.ts +36 -0
- package/models/operations/accountv1settingsupdaterole.d.ts.map +1 -0
- package/models/operations/accountv1settingsupdaterole.js +73 -0
- package/models/operations/accountv1settingsupdaterole.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.js.map +1 -1
- package/sdk/internal.d.ts +1 -0
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +4 -0
- package/sdk/internal.js.map +1 -1
- package/sdk/settings.d.ts +1 -0
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +4 -0
- package/sdk/settings.js.map +1 -1
- package/src/funcs/accountAccountV1SettingsUpdateRole.ts +149 -0
- package/src/funcs/internalAccountV1SettingsUpdateRole.ts +149 -0
- package/src/funcs/settingsAccountV1SettingsUpdateRole.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/leaderboardaccount.ts +0 -7
- package/src/models/components/v1accountfriend.ts +0 -7
- package/src/models/components/v1accountinforesponsebody.ts +9 -7
- package/src/models/components/v1accountleaderboardaccount.ts +0 -7
- package/src/models/components/v1updaterolerequestbody.ts +109 -0
- package/src/models/components/v1updatesettingsrequestbody.ts +0 -47
- package/src/models/operations/accountv1settingsupdaterole.ts +87 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +12 -0
- package/src/sdk/internal.ts +12 -0
- package/src/sdk/settings.ts +12 -0
|
@@ -66,10 +66,6 @@ export type LeaderboardAccount = {
|
|
|
66
66
|
* The avatar hash of the account
|
|
67
67
|
*/
|
|
68
68
|
avatar: string;
|
|
69
|
-
/**
|
|
70
|
-
* The average playtime of the account
|
|
71
|
-
*/
|
|
72
|
-
averagePlaytime: number;
|
|
73
69
|
/**
|
|
74
70
|
* The number of awards the account has
|
|
75
71
|
*/
|
|
@@ -210,7 +206,6 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
210
206
|
appCost: z.number().int(),
|
|
211
207
|
apps: z.number().int(),
|
|
212
208
|
avatar: z.string(),
|
|
213
|
-
averagePlaytime: z.number().int(),
|
|
214
209
|
awardsGiven: z.number().int(),
|
|
215
210
|
awardsReceived: z.number().int(),
|
|
216
211
|
badges: z.number().int(),
|
|
@@ -248,7 +243,6 @@ export type LeaderboardAccount$Outbound = {
|
|
|
248
243
|
appCost: number;
|
|
249
244
|
apps: number;
|
|
250
245
|
avatar: string;
|
|
251
|
-
averagePlaytime: number;
|
|
252
246
|
awardsGiven: number;
|
|
253
247
|
awardsReceived: number;
|
|
254
248
|
badges: number;
|
|
@@ -290,7 +284,6 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
290
284
|
appCost: z.number().int(),
|
|
291
285
|
apps: z.number().int(),
|
|
292
286
|
avatar: z.string(),
|
|
293
|
-
averagePlaytime: z.number().int(),
|
|
294
287
|
awardsGiven: z.number().int(),
|
|
295
288
|
awardsReceived: z.number().int(),
|
|
296
289
|
badges: z.number().int(),
|
|
@@ -64,10 +64,6 @@ export type V1AccountFriend = {
|
|
|
64
64
|
* The avatar hash of the account
|
|
65
65
|
*/
|
|
66
66
|
avatar: string;
|
|
67
|
-
/**
|
|
68
|
-
* The average playtime of the account
|
|
69
|
-
*/
|
|
70
|
-
averagePlaytime: number;
|
|
71
67
|
/**
|
|
72
68
|
* The number of awards the account has
|
|
73
69
|
*/
|
|
@@ -207,7 +203,6 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
207
203
|
appCost: z.number().int(),
|
|
208
204
|
apps: z.number().int(),
|
|
209
205
|
avatar: z.string(),
|
|
210
|
-
averagePlaytime: z.number().int(),
|
|
211
206
|
awardsGiven: z.number().int(),
|
|
212
207
|
awardsReceived: z.number().int(),
|
|
213
208
|
badges: z.number().int(),
|
|
@@ -248,7 +243,6 @@ export type V1AccountFriend$Outbound = {
|
|
|
248
243
|
appCost: number;
|
|
249
244
|
apps: number;
|
|
250
245
|
avatar: string;
|
|
251
|
-
averagePlaytime: number;
|
|
252
246
|
awardsGiven: number;
|
|
253
247
|
awardsReceived: number;
|
|
254
248
|
badges: number;
|
|
@@ -291,7 +285,6 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
291
285
|
appCost: z.number().int(),
|
|
292
286
|
apps: z.number().int(),
|
|
293
287
|
avatar: z.string(),
|
|
294
|
-
averagePlaytime: z.number().int(),
|
|
295
288
|
awardsGiven: z.number().int(),
|
|
296
289
|
awardsReceived: z.number().int(),
|
|
297
290
|
badges: z.number().int(),
|
|
@@ -141,10 +141,6 @@ export type V1AccountInfoResponseBody = {
|
|
|
141
141
|
* The avatar frame of the account
|
|
142
142
|
*/
|
|
143
143
|
avatarFrame: string;
|
|
144
|
-
/**
|
|
145
|
-
* The average playtime of the account
|
|
146
|
-
*/
|
|
147
|
-
averagePlaytime: number;
|
|
148
144
|
/**
|
|
149
145
|
* The number of awards the account has
|
|
150
146
|
*/
|
|
@@ -236,6 +232,10 @@ export type V1AccountInfoResponseBody = {
|
|
|
236
232
|
* The name of the account
|
|
237
233
|
*/
|
|
238
234
|
name: string;
|
|
235
|
+
/**
|
|
236
|
+
* The time the account is allowed to be refreshed
|
|
237
|
+
*/
|
|
238
|
+
nextAllowedTime: Date;
|
|
239
239
|
/**
|
|
240
240
|
* The cost of a normal badge
|
|
241
241
|
*/
|
|
@@ -400,7 +400,6 @@ export const V1AccountInfoResponseBody$inboundSchema: z.ZodType<
|
|
|
400
400
|
apps: z.number().int(),
|
|
401
401
|
avatar: z.string(),
|
|
402
402
|
avatarFrame: z.string(),
|
|
403
|
-
averagePlaytime: z.number().int(),
|
|
404
403
|
awardsGiven: z.number().int(),
|
|
405
404
|
awardsReceived: z.number().int(),
|
|
406
405
|
background: z.string(),
|
|
@@ -430,6 +429,9 @@ export const V1AccountInfoResponseBody$inboundSchema: z.ZodType<
|
|
|
430
429
|
level: z.number().int(),
|
|
431
430
|
miniBackground: z.string(),
|
|
432
431
|
name: z.string(),
|
|
432
|
+
nextAllowedTime: z.string().datetime({ offset: true }).transform(v =>
|
|
433
|
+
new Date(v)
|
|
434
|
+
),
|
|
433
435
|
normalBadgeCost: z.number().int(),
|
|
434
436
|
normalBadges: z.number().int(),
|
|
435
437
|
playtime: z.number().int(),
|
|
@@ -466,7 +468,6 @@ export type V1AccountInfoResponseBody$Outbound = {
|
|
|
466
468
|
apps: number;
|
|
467
469
|
avatar: string;
|
|
468
470
|
avatarFrame: string;
|
|
469
|
-
averagePlaytime: number;
|
|
470
471
|
awardsGiven: number;
|
|
471
472
|
awardsReceived: number;
|
|
472
473
|
background: string;
|
|
@@ -492,6 +493,7 @@ export type V1AccountInfoResponseBody$Outbound = {
|
|
|
492
493
|
level: number;
|
|
493
494
|
miniBackground: string;
|
|
494
495
|
name: string;
|
|
496
|
+
nextAllowedTime: string;
|
|
495
497
|
normalBadgeCost: number;
|
|
496
498
|
normalBadges: number;
|
|
497
499
|
playtime: number;
|
|
@@ -526,7 +528,6 @@ export const V1AccountInfoResponseBody$outboundSchema: z.ZodType<
|
|
|
526
528
|
apps: z.number().int(),
|
|
527
529
|
avatar: z.string(),
|
|
528
530
|
avatarFrame: z.string(),
|
|
529
|
-
averagePlaytime: z.number().int(),
|
|
530
531
|
awardsGiven: z.number().int(),
|
|
531
532
|
awardsReceived: z.number().int(),
|
|
532
533
|
background: z.string(),
|
|
@@ -552,6 +553,7 @@ export const V1AccountInfoResponseBody$outboundSchema: z.ZodType<
|
|
|
552
553
|
level: z.number().int(),
|
|
553
554
|
miniBackground: z.string(),
|
|
554
555
|
name: z.string(),
|
|
556
|
+
nextAllowedTime: z.date().transform(v => v.toISOString()),
|
|
555
557
|
normalBadgeCost: z.number().int(),
|
|
556
558
|
normalBadges: z.number().int(),
|
|
557
559
|
playtime: z.number().int(),
|
|
@@ -76,10 +76,6 @@ export type V1AccountLeaderboardAccount = {
|
|
|
76
76
|
* The avatar hash of the account
|
|
77
77
|
*/
|
|
78
78
|
avatar: string;
|
|
79
|
-
/**
|
|
80
|
-
* The average playtime of the account
|
|
81
|
-
*/
|
|
82
|
-
averagePlaytime: number;
|
|
83
79
|
/**
|
|
84
80
|
* The number of awards the account has
|
|
85
81
|
*/
|
|
@@ -227,7 +223,6 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
227
223
|
appPlaytime: z.nullable(z.number().int()),
|
|
228
224
|
apps: z.number().int(),
|
|
229
225
|
avatar: z.string(),
|
|
230
|
-
averagePlaytime: z.number().int(),
|
|
231
226
|
awardsGiven: z.number().int(),
|
|
232
227
|
awardsReceived: z.number().int(),
|
|
233
228
|
badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
|
|
@@ -268,7 +263,6 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
268
263
|
appPlaytime: number | null;
|
|
269
264
|
apps: number;
|
|
270
265
|
avatar: string;
|
|
271
|
-
averagePlaytime: number;
|
|
272
266
|
awardsGiven: number;
|
|
273
267
|
awardsReceived: number;
|
|
274
268
|
badgeInfo?: AccountBadgeInfo$Outbound | null | undefined;
|
|
@@ -313,7 +307,6 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
313
307
|
appPlaytime: z.nullable(z.number().int()),
|
|
314
308
|
apps: z.number().int(),
|
|
315
309
|
avatar: z.string(),
|
|
316
|
-
averagePlaytime: z.number().int(),
|
|
317
310
|
awardsGiven: z.number().int(),
|
|
318
311
|
awardsReceived: z.number().int(),
|
|
319
312
|
badgeInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The role the account should have between one of the 6 donation roles
|
|
13
|
+
*/
|
|
14
|
+
export const V1UpdateRoleRequestBodyRole = {
|
|
15
|
+
Amber: "amber",
|
|
16
|
+
Amethyst: "amethyst",
|
|
17
|
+
Emerald: "emerald",
|
|
18
|
+
Sapphire: "sapphire",
|
|
19
|
+
Ruby: "ruby",
|
|
20
|
+
Diamond: "diamond",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* The role the account should have between one of the 6 donation roles
|
|
24
|
+
*/
|
|
25
|
+
export type V1UpdateRoleRequestBodyRole = ClosedEnum<
|
|
26
|
+
typeof V1UpdateRoleRequestBodyRole
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type V1UpdateRoleRequestBody = {
|
|
30
|
+
/**
|
|
31
|
+
* The role the account should have between one of the 6 donation roles
|
|
32
|
+
*/
|
|
33
|
+
role?: V1UpdateRoleRequestBodyRole | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const V1UpdateRoleRequestBodyRole$inboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof V1UpdateRoleRequestBodyRole
|
|
39
|
+
> = z.nativeEnum(V1UpdateRoleRequestBodyRole);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const V1UpdateRoleRequestBodyRole$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof V1UpdateRoleRequestBodyRole
|
|
44
|
+
> = V1UpdateRoleRequestBodyRole$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 V1UpdateRoleRequestBodyRole$ {
|
|
51
|
+
/** @deprecated use `V1UpdateRoleRequestBodyRole$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = V1UpdateRoleRequestBodyRole$inboundSchema;
|
|
53
|
+
/** @deprecated use `V1UpdateRoleRequestBodyRole$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = V1UpdateRoleRequestBodyRole$outboundSchema;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const V1UpdateRoleRequestBody$inboundSchema: z.ZodType<
|
|
59
|
+
V1UpdateRoleRequestBody,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
role: V1UpdateRoleRequestBodyRole$inboundSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type V1UpdateRoleRequestBody$Outbound = {
|
|
68
|
+
role?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const V1UpdateRoleRequestBody$outboundSchema: z.ZodType<
|
|
73
|
+
V1UpdateRoleRequestBody$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
V1UpdateRoleRequestBody
|
|
76
|
+
> = z.object({
|
|
77
|
+
role: V1UpdateRoleRequestBodyRole$outboundSchema.optional(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace V1UpdateRoleRequestBody$ {
|
|
85
|
+
/** @deprecated use `V1UpdateRoleRequestBody$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = V1UpdateRoleRequestBody$inboundSchema;
|
|
87
|
+
/** @deprecated use `V1UpdateRoleRequestBody$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = V1UpdateRoleRequestBody$outboundSchema;
|
|
89
|
+
/** @deprecated use `V1UpdateRoleRequestBody$Outbound` instead. */
|
|
90
|
+
export type Outbound = V1UpdateRoleRequestBody$Outbound;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function v1UpdateRoleRequestBodyToJSON(
|
|
94
|
+
v1UpdateRoleRequestBody: V1UpdateRoleRequestBody,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
V1UpdateRoleRequestBody$outboundSchema.parse(v1UpdateRoleRequestBody),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function v1UpdateRoleRequestBodyFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<V1UpdateRoleRequestBody, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => V1UpdateRoleRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'V1UpdateRoleRequestBody' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -4,28 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
|
-
/**
|
|
12
|
-
* The role the account should have between one of the 6 donation roles
|
|
13
|
-
*/
|
|
14
|
-
export const V1UpdateSettingsRequestBodyRole = {
|
|
15
|
-
Amber: "amber",
|
|
16
|
-
Amethyst: "amethyst",
|
|
17
|
-
Emerald: "emerald",
|
|
18
|
-
Sapphire: "sapphire",
|
|
19
|
-
Ruby: "ruby",
|
|
20
|
-
Diamond: "diamond",
|
|
21
|
-
} as const;
|
|
22
|
-
/**
|
|
23
|
-
* The role the account should have between one of the 6 donation roles
|
|
24
|
-
*/
|
|
25
|
-
export type V1UpdateSettingsRequestBodyRole = ClosedEnum<
|
|
26
|
-
typeof V1UpdateSettingsRequestBodyRole
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
10
|
export type V1UpdateSettingsRequestBody = {
|
|
30
11
|
/**
|
|
31
12
|
* The email the account should use, only if the account is private
|
|
@@ -39,37 +20,12 @@ export type V1UpdateSettingsRequestBody = {
|
|
|
39
20
|
* The language the account should use, only if the account is private
|
|
40
21
|
*/
|
|
41
22
|
language: string;
|
|
42
|
-
/**
|
|
43
|
-
* The role the account should have between one of the 6 donation roles
|
|
44
|
-
*/
|
|
45
|
-
role?: V1UpdateSettingsRequestBodyRole | null | undefined;
|
|
46
23
|
/**
|
|
47
24
|
* The vanity the account should use
|
|
48
25
|
*/
|
|
49
26
|
vanity: string | null;
|
|
50
27
|
};
|
|
51
28
|
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const V1UpdateSettingsRequestBodyRole$inboundSchema: z.ZodNativeEnum<
|
|
54
|
-
typeof V1UpdateSettingsRequestBodyRole
|
|
55
|
-
> = z.nativeEnum(V1UpdateSettingsRequestBodyRole);
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const V1UpdateSettingsRequestBodyRole$outboundSchema: z.ZodNativeEnum<
|
|
59
|
-
typeof V1UpdateSettingsRequestBodyRole
|
|
60
|
-
> = V1UpdateSettingsRequestBodyRole$inboundSchema;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
-
*/
|
|
66
|
-
export namespace V1UpdateSettingsRequestBodyRole$ {
|
|
67
|
-
/** @deprecated use `V1UpdateSettingsRequestBodyRole$inboundSchema` instead. */
|
|
68
|
-
export const inboundSchema = V1UpdateSettingsRequestBodyRole$inboundSchema;
|
|
69
|
-
/** @deprecated use `V1UpdateSettingsRequestBodyRole$outboundSchema` instead. */
|
|
70
|
-
export const outboundSchema = V1UpdateSettingsRequestBodyRole$outboundSchema;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
29
|
/** @internal */
|
|
74
30
|
export const V1UpdateSettingsRequestBody$inboundSchema: z.ZodType<
|
|
75
31
|
V1UpdateSettingsRequestBody,
|
|
@@ -79,7 +35,6 @@ export const V1UpdateSettingsRequestBody$inboundSchema: z.ZodType<
|
|
|
79
35
|
email: z.nullable(z.string()),
|
|
80
36
|
hidden: z.boolean(),
|
|
81
37
|
language: z.string(),
|
|
82
|
-
role: z.nullable(V1UpdateSettingsRequestBodyRole$inboundSchema).optional(),
|
|
83
38
|
vanity: z.nullable(z.string()),
|
|
84
39
|
});
|
|
85
40
|
|
|
@@ -88,7 +43,6 @@ export type V1UpdateSettingsRequestBody$Outbound = {
|
|
|
88
43
|
email: string | null;
|
|
89
44
|
hidden: boolean;
|
|
90
45
|
language: string;
|
|
91
|
-
role?: string | null | undefined;
|
|
92
46
|
vanity: string | null;
|
|
93
47
|
};
|
|
94
48
|
|
|
@@ -101,7 +55,6 @@ export const V1UpdateSettingsRequestBody$outboundSchema: z.ZodType<
|
|
|
101
55
|
email: z.nullable(z.string()),
|
|
102
56
|
hidden: z.boolean(),
|
|
103
57
|
language: z.string(),
|
|
104
|
-
role: z.nullable(V1UpdateSettingsRequestBodyRole$outboundSchema).optional(),
|
|
105
58
|
vanity: z.nullable(z.string()),
|
|
106
59
|
});
|
|
107
60
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type AccountV1SettingsUpdateRoleResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
headers: { [k: string]: Array<string> };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AccountV1SettingsUpdateRoleResponse$inboundSchema: z.ZodType<
|
|
19
|
+
AccountV1SettingsUpdateRoleResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
24
|
+
Headers: z.record(z.array(z.string())),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"HttpMeta": "httpMeta",
|
|
28
|
+
"Headers": "headers",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AccountV1SettingsUpdateRoleResponse$Outbound = {
|
|
34
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
35
|
+
Headers: { [k: string]: Array<string> };
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const AccountV1SettingsUpdateRoleResponse$outboundSchema: z.ZodType<
|
|
40
|
+
AccountV1SettingsUpdateRoleResponse$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
AccountV1SettingsUpdateRoleResponse
|
|
43
|
+
> = z.object({
|
|
44
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
45
|
+
headers: z.record(z.array(z.string())),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
httpMeta: "HttpMeta",
|
|
49
|
+
headers: "Headers",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace AccountV1SettingsUpdateRoleResponse$ {
|
|
58
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema =
|
|
60
|
+
AccountV1SettingsUpdateRoleResponse$inboundSchema;
|
|
61
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
AccountV1SettingsUpdateRoleResponse$outboundSchema;
|
|
64
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$Outbound` instead. */
|
|
65
|
+
export type Outbound = AccountV1SettingsUpdateRoleResponse$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function accountV1SettingsUpdateRoleResponseToJSON(
|
|
69
|
+
accountV1SettingsUpdateRoleResponse: AccountV1SettingsUpdateRoleResponse,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
AccountV1SettingsUpdateRoleResponse$outboundSchema.parse(
|
|
73
|
+
accountV1SettingsUpdateRoleResponse,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function accountV1SettingsUpdateRoleResponseFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<AccountV1SettingsUpdateRoleResponse, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) =>
|
|
84
|
+
AccountV1SettingsUpdateRoleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AccountV1SettingsUpdateRoleResponse' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -32,6 +32,7 @@ export * from "./accountv1settingsdeveloperappupdate.js";
|
|
|
32
32
|
export * from "./accountv1settingsget.js";
|
|
33
33
|
export * from "./accountv1settingssendemailverification.js";
|
|
34
34
|
export * from "./accountv1settingsupdate.js";
|
|
35
|
+
export * from "./accountv1settingsupdaterole.js";
|
|
35
36
|
export * from "./accountv1settingsverfyemail.js";
|
|
36
37
|
export * from "./adminv1getaccount.js";
|
|
37
38
|
export * from "./adminv1getevents.js";
|
package/src/sdk/account.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { accountAccountV1GetBadgeBookmarks } from "../funcs/accountAccountV1GetB
|
|
|
7
7
|
import { accountAccountV1GetOwnedBadges } from "../funcs/accountAccountV1GetOwnedBadges.js";
|
|
8
8
|
import { accountAccountV1ImagesGet } from "../funcs/accountAccountV1ImagesGet.js";
|
|
9
9
|
import { accountAccountV1ImagesUpdate } from "../funcs/accountAccountV1ImagesUpdate.js";
|
|
10
|
+
import { accountAccountV1SettingsUpdateRole } from "../funcs/accountAccountV1SettingsUpdateRole.js";
|
|
10
11
|
import { accountAdminV1UpdateResources } from "../funcs/accountAdminV1UpdateResources.js";
|
|
11
12
|
import { accountAdminV1UpdateRoles } from "../funcs/accountAdminV1UpdateRoles.js";
|
|
12
13
|
import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
|
|
@@ -209,6 +210,17 @@ export class Account extends ClientSDK {
|
|
|
209
210
|
));
|
|
210
211
|
}
|
|
211
212
|
|
|
213
|
+
async accountV1SettingsUpdateRole(
|
|
214
|
+
request: components.V1UpdateRoleRequestBody,
|
|
215
|
+
options?: RequestOptions,
|
|
216
|
+
): Promise<operations.AccountV1SettingsUpdateRoleResponse> {
|
|
217
|
+
return unwrapAsync(accountAccountV1SettingsUpdateRole(
|
|
218
|
+
this,
|
|
219
|
+
request,
|
|
220
|
+
options,
|
|
221
|
+
));
|
|
222
|
+
}
|
|
223
|
+
|
|
212
224
|
async uploadImages(
|
|
213
225
|
request: components.V1UploadImagesRequestBody,
|
|
214
226
|
options?: RequestOptions,
|
package/src/sdk/internal.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { internalAccountV1GetBadgeBookmarks } from "../funcs/internalAccountV1Ge
|
|
|
8
8
|
import { internalAccountV1GetOwnedBadges } from "../funcs/internalAccountV1GetOwnedBadges.js";
|
|
9
9
|
import { internalAccountV1ImagesGet } from "../funcs/internalAccountV1ImagesGet.js";
|
|
10
10
|
import { internalAccountV1ImagesUpdate } from "../funcs/internalAccountV1ImagesUpdate.js";
|
|
11
|
+
import { internalAccountV1SettingsUpdateRole } from "../funcs/internalAccountV1SettingsUpdateRole.js";
|
|
11
12
|
import { internalAdminV1GetEvents } from "../funcs/internalAdminV1GetEvents.js";
|
|
12
13
|
import { internalAdminV1UpdateEvent } from "../funcs/internalAdminV1UpdateEvent.js";
|
|
13
14
|
import { internalAdminV1UpdateResources } from "../funcs/internalAdminV1UpdateResources.js";
|
|
@@ -154,6 +155,17 @@ export class Internal extends ClientSDK {
|
|
|
154
155
|
));
|
|
155
156
|
}
|
|
156
157
|
|
|
158
|
+
async accountV1SettingsUpdateRole(
|
|
159
|
+
request: components.V1UpdateRoleRequestBody,
|
|
160
|
+
options?: RequestOptions,
|
|
161
|
+
): Promise<operations.AccountV1SettingsUpdateRoleResponse> {
|
|
162
|
+
return unwrapAsync(internalAccountV1SettingsUpdateRole(
|
|
163
|
+
this,
|
|
164
|
+
request,
|
|
165
|
+
options,
|
|
166
|
+
));
|
|
167
|
+
}
|
|
168
|
+
|
|
157
169
|
async uploadImages(
|
|
158
170
|
request: components.V1UploadImagesRequestBody,
|
|
159
171
|
options?: RequestOptions,
|
package/src/sdk/settings.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { settingsAccountV1SettingsUpdateRole } from "../funcs/settingsAccountV1SettingsUpdateRole.js";
|
|
5
6
|
import { settingsGet } from "../funcs/settingsGet.js";
|
|
6
7
|
import { settingsSendEmailVerification } from "../funcs/settingsSendEmailVerification.js";
|
|
7
8
|
import { settingsUpdate } from "../funcs/settingsUpdate.js";
|
|
@@ -32,6 +33,17 @@ export class Settings extends ClientSDK {
|
|
|
32
33
|
));
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
async accountV1SettingsUpdateRole(
|
|
37
|
+
request: components.V1UpdateRoleRequestBody,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<operations.AccountV1SettingsUpdateRoleResponse> {
|
|
40
|
+
return unwrapAsync(settingsAccountV1SettingsUpdateRole(
|
|
41
|
+
this,
|
|
42
|
+
request,
|
|
43
|
+
options,
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
async update(
|
|
36
48
|
request: operations.AccountV1SettingsUpdateRequest,
|
|
37
49
|
options?: RequestOptions,
|