@steamsets/client-ts 0.14.10 → 0.14.12

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.
Files changed (74) hide show
  1. package/README.md +4 -0
  2. package/docs/sdks/account/README.md +71 -0
  3. package/docs/sdks/admin/README.md +2 -2
  4. package/docs/sdks/badge/README.md +71 -0
  5. package/docs/sdks/settings/README.md +0 -6
  6. package/funcs/accountAccountV1GetOwnedBadges.d.ts +10 -0
  7. package/funcs/accountAccountV1GetOwnedBadges.d.ts.map +1 -0
  8. package/funcs/accountAccountV1GetOwnedBadges.js +99 -0
  9. package/funcs/accountAccountV1GetOwnedBadges.js.map +1 -0
  10. package/funcs/badgeAccountV1GetOwnedBadges.d.ts +10 -0
  11. package/funcs/badgeAccountV1GetOwnedBadges.d.ts.map +1 -0
  12. package/funcs/badgeAccountV1GetOwnedBadges.js +99 -0
  13. package/funcs/badgeAccountV1GetOwnedBadges.js.map +1 -0
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/models/components/index.d.ts +2 -0
  17. package/models/components/index.d.ts.map +1 -1
  18. package/models/components/index.js +2 -0
  19. package/models/components/index.js.map +1 -1
  20. package/models/components/resource.d.ts +3 -18
  21. package/models/components/resource.d.ts.map +1 -1
  22. package/models/components/resource.js +1 -6
  23. package/models/components/resource.js.map +1 -1
  24. package/models/components/v1accountbadgeownedbadge.d.ts +47 -0
  25. package/models/components/v1accountbadgeownedbadge.d.ts.map +1 -0
  26. package/models/components/v1accountbadgeownedbadge.js +65 -0
  27. package/models/components/v1accountbadgeownedbadge.js.map +1 -0
  28. package/models/components/v1accountbadgeownedbadgesresponsebody.d.ts +35 -0
  29. package/models/components/v1accountbadgeownedbadgesresponsebody.d.ts.map +1 -0
  30. package/models/components/v1accountbadgeownedbadgesresponsebody.js +71 -0
  31. package/models/components/v1accountbadgeownedbadgesresponsebody.js.map +1 -0
  32. package/models/components/v1adminupdateresourcesrequestbody.d.ts +3 -18
  33. package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -1
  34. package/models/components/v1adminupdateresourcesrequestbody.js +1 -6
  35. package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -1
  36. package/models/components/v1getsettingsbody.d.ts +0 -47
  37. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  38. package/models/components/v1getsettingsbody.js +1 -29
  39. package/models/components/v1getsettingsbody.js.map +1 -1
  40. package/models/components/v1updatesettingsrequestbody.d.ts +0 -46
  41. package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
  42. package/models/components/v1updatesettingsrequestbody.js +1 -29
  43. package/models/components/v1updatesettingsrequestbody.js.map +1 -1
  44. package/models/operations/accountv1getownedbadges.d.ts +35 -0
  45. package/models/operations/accountv1getownedbadges.d.ts.map +1 -0
  46. package/models/operations/accountv1getownedbadges.js +75 -0
  47. package/models/operations/accountv1getownedbadges.js.map +1 -0
  48. package/models/operations/index.d.ts +1 -0
  49. package/models/operations/index.d.ts.map +1 -1
  50. package/models/operations/index.js +1 -0
  51. package/models/operations/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/sdk/account.d.ts +1 -0
  54. package/sdk/account.d.ts.map +1 -1
  55. package/sdk/account.js +4 -0
  56. package/sdk/account.js.map +1 -1
  57. package/sdk/badge.d.ts +1 -0
  58. package/sdk/badge.d.ts.map +1 -1
  59. package/sdk/badge.js +4 -0
  60. package/sdk/badge.js.map +1 -1
  61. package/src/funcs/accountAccountV1GetOwnedBadges.ts +125 -0
  62. package/src/funcs/badgeAccountV1GetOwnedBadges.ts +125 -0
  63. package/src/lib/config.ts +3 -3
  64. package/src/models/components/index.ts +2 -0
  65. package/src/models/components/resource.ts +1 -6
  66. package/src/models/components/v1accountbadgeownedbadge.ts +90 -0
  67. package/src/models/components/v1accountbadgeownedbadgesresponsebody.ts +93 -0
  68. package/src/models/components/v1adminupdateresourcesrequestbody.ts +1 -6
  69. package/src/models/components/v1getsettingsbody.ts +0 -54
  70. package/src/models/components/v1updatesettingsrequestbody.ts +0 -56
  71. package/src/models/operations/accountv1getownedbadges.ts +95 -0
  72. package/src/models/operations/index.ts +1 -0
  73. package/src/sdk/account.ts +10 -0
  74. package/src/sdk/badge.ts +10 -0
@@ -13,17 +13,12 @@ export const ResourceResource = {
13
13
  AutoRefresh: "auto_refresh",
14
14
  AvatarFrame: "avatar_frame",
15
15
  Background: "background",
16
- BetaAccess: "beta_access",
17
- CustomVanity: "custom_vanity",
18
16
  GoToLeaderboardEntry: "go_to_leaderboard_entry",
19
17
  MaxLeaderboardEntries: "max_leaderboard_entries",
20
18
  MiniBackground: "mini_background",
21
- AccountColors: "account_colors",
22
19
  AccountRefreshRate: "account_refresh_rate",
23
- SiteColor: "site_color",
24
20
  SocialLinks: "social_links",
25
- Theme: "theme",
26
- VanityLength: "vanity_length",
21
+ Vanity: "vanity",
27
22
  DeveloperApps: "developer_apps",
28
23
  AccountQueues: "account_queues",
29
24
  ShortLinkDomain: "short_link_domain",
@@ -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
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type V1AccountBadgeOwnedBadge = {
11
+ /**
12
+ * The app id
13
+ */
14
+ appId: number;
15
+ /**
16
+ * The badge id
17
+ */
18
+ badgeId: string;
19
+ /**
20
+ * The level of the badge
21
+ */
22
+ level: number;
23
+ /**
24
+ * The internal steam id badge id
25
+ */
26
+ steamId: number;
27
+ };
28
+
29
+ /** @internal */
30
+ export const V1AccountBadgeOwnedBadge$inboundSchema: z.ZodType<
31
+ V1AccountBadgeOwnedBadge,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ appId: z.number().int(),
36
+ badgeId: z.string(),
37
+ level: z.number().int(),
38
+ steamId: z.number().int(),
39
+ });
40
+
41
+ /** @internal */
42
+ export type V1AccountBadgeOwnedBadge$Outbound = {
43
+ appId: number;
44
+ badgeId: string;
45
+ level: number;
46
+ steamId: number;
47
+ };
48
+
49
+ /** @internal */
50
+ export const V1AccountBadgeOwnedBadge$outboundSchema: z.ZodType<
51
+ V1AccountBadgeOwnedBadge$Outbound,
52
+ z.ZodTypeDef,
53
+ V1AccountBadgeOwnedBadge
54
+ > = z.object({
55
+ appId: z.number().int(),
56
+ badgeId: z.string(),
57
+ level: z.number().int(),
58
+ steamId: z.number().int(),
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace V1AccountBadgeOwnedBadge$ {
66
+ /** @deprecated use `V1AccountBadgeOwnedBadge$inboundSchema` instead. */
67
+ export const inboundSchema = V1AccountBadgeOwnedBadge$inboundSchema;
68
+ /** @deprecated use `V1AccountBadgeOwnedBadge$outboundSchema` instead. */
69
+ export const outboundSchema = V1AccountBadgeOwnedBadge$outboundSchema;
70
+ /** @deprecated use `V1AccountBadgeOwnedBadge$Outbound` instead. */
71
+ export type Outbound = V1AccountBadgeOwnedBadge$Outbound;
72
+ }
73
+
74
+ export function v1AccountBadgeOwnedBadgeToJSON(
75
+ v1AccountBadgeOwnedBadge: V1AccountBadgeOwnedBadge,
76
+ ): string {
77
+ return JSON.stringify(
78
+ V1AccountBadgeOwnedBadge$outboundSchema.parse(v1AccountBadgeOwnedBadge),
79
+ );
80
+ }
81
+
82
+ export function v1AccountBadgeOwnedBadgeFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<V1AccountBadgeOwnedBadge, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => V1AccountBadgeOwnedBadge$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'V1AccountBadgeOwnedBadge' from JSON`,
89
+ );
90
+ }
@@ -0,0 +1,93 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ V1AccountBadgeOwnedBadge,
12
+ V1AccountBadgeOwnedBadge$inboundSchema,
13
+ V1AccountBadgeOwnedBadge$Outbound,
14
+ V1AccountBadgeOwnedBadge$outboundSchema,
15
+ } from "./v1accountbadgeownedbadge.js";
16
+
17
+ export type V1AccountBadgeOwnedBadgesResponseBody = {
18
+ /**
19
+ * A URL to the JSON Schema for this object.
20
+ */
21
+ dollarSchema?: string | undefined;
22
+ ownedBadges: Array<V1AccountBadgeOwnedBadge> | null;
23
+ };
24
+
25
+ /** @internal */
26
+ export const V1AccountBadgeOwnedBadgesResponseBody$inboundSchema: z.ZodType<
27
+ V1AccountBadgeOwnedBadgesResponseBody,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ $schema: z.string().optional(),
32
+ ownedBadges: z.nullable(z.array(V1AccountBadgeOwnedBadge$inboundSchema)),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "$schema": "dollarSchema",
36
+ });
37
+ });
38
+
39
+ /** @internal */
40
+ export type V1AccountBadgeOwnedBadgesResponseBody$Outbound = {
41
+ $schema?: string | undefined;
42
+ ownedBadges: Array<V1AccountBadgeOwnedBadge$Outbound> | null;
43
+ };
44
+
45
+ /** @internal */
46
+ export const V1AccountBadgeOwnedBadgesResponseBody$outboundSchema: z.ZodType<
47
+ V1AccountBadgeOwnedBadgesResponseBody$Outbound,
48
+ z.ZodTypeDef,
49
+ V1AccountBadgeOwnedBadgesResponseBody
50
+ > = z.object({
51
+ dollarSchema: z.string().optional(),
52
+ ownedBadges: z.nullable(z.array(V1AccountBadgeOwnedBadge$outboundSchema)),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ dollarSchema: "$schema",
56
+ });
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace V1AccountBadgeOwnedBadgesResponseBody$ {
64
+ /** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$inboundSchema` instead. */
65
+ export const inboundSchema =
66
+ V1AccountBadgeOwnedBadgesResponseBody$inboundSchema;
67
+ /** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$outboundSchema` instead. */
68
+ export const outboundSchema =
69
+ V1AccountBadgeOwnedBadgesResponseBody$outboundSchema;
70
+ /** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$Outbound` instead. */
71
+ export type Outbound = V1AccountBadgeOwnedBadgesResponseBody$Outbound;
72
+ }
73
+
74
+ export function v1AccountBadgeOwnedBadgesResponseBodyToJSON(
75
+ v1AccountBadgeOwnedBadgesResponseBody: V1AccountBadgeOwnedBadgesResponseBody,
76
+ ): string {
77
+ return JSON.stringify(
78
+ V1AccountBadgeOwnedBadgesResponseBody$outboundSchema.parse(
79
+ v1AccountBadgeOwnedBadgesResponseBody,
80
+ ),
81
+ );
82
+ }
83
+
84
+ export function v1AccountBadgeOwnedBadgesResponseBodyFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<V1AccountBadgeOwnedBadgesResponseBody, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) =>
90
+ V1AccountBadgeOwnedBadgesResponseBody$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'V1AccountBadgeOwnedBadgesResponseBody' from JSON`,
92
+ );
93
+ }
@@ -31,17 +31,12 @@ export const V1AdminUpdateResourcesRequestBodyResource = {
31
31
  AutoRefresh: "auto_refresh",
32
32
  AvatarFrame: "avatar_frame",
33
33
  Background: "background",
34
- BetaAccess: "beta_access",
35
- CustomVanity: "custom_vanity",
36
34
  GoToLeaderboardEntry: "go_to_leaderboard_entry",
37
35
  MaxLeaderboardEntries: "max_leaderboard_entries",
38
36
  MiniBackground: "mini_background",
39
- AccountColors: "account_colors",
40
37
  AccountRefreshRate: "account_refresh_rate",
41
- SiteColor: "site_color",
42
38
  SocialLinks: "social_links",
43
- Theme: "theme",
44
- VanityLength: "vanity_length",
39
+ Vanity: "vanity",
45
40
  DeveloperApps: "developer_apps",
46
41
  AccountQueues: "account_queues",
47
42
  ShortLinkDomain: "short_link_domain",
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -45,32 +44,12 @@ import {
45
44
  V1VanityAnalytics$outboundSchema,
46
45
  } from "./v1vanityanalytics.js";
47
46
 
48
- /**
49
- * The theme the account is using
50
- */
51
- export const Theme = {
52
- Dark: "dark",
53
- Light: "light",
54
- } as const;
55
- /**
56
- * The theme the account is using
57
- */
58
- export type Theme = ClosedEnum<typeof Theme>;
59
-
60
47
  export type V1GetSettingsBody = {
61
48
  /**
62
49
  * A URL to the JSON Schema for this object.
63
50
  */
64
51
  dollarSchema?: string | undefined;
65
52
  chosenRole: ChosenRole | null;
66
- /**
67
- * The color the account is using
68
- */
69
- color: string;
70
- /**
71
- * The colors the account is using
72
- */
73
- colors: string;
74
53
  /**
75
54
  * The connections the account has
76
55
  */
@@ -105,10 +84,6 @@ export type V1GetSettingsBody = {
105
84
  * The sessions the account has
106
85
  */
107
86
  sessions: Array<Session> | null;
108
- /**
109
- * The theme the account is using
110
- */
111
- theme: Theme;
112
87
  /**
113
88
  * The vanity the account is using
114
89
  */
@@ -116,26 +91,6 @@ export type V1GetSettingsBody = {
116
91
  vanityAnalytics: V1VanityAnalytics | null;
117
92
  };
118
93
 
119
- /** @internal */
120
- export const Theme$inboundSchema: z.ZodNativeEnum<typeof Theme> = z.nativeEnum(
121
- Theme,
122
- );
123
-
124
- /** @internal */
125
- export const Theme$outboundSchema: z.ZodNativeEnum<typeof Theme> =
126
- Theme$inboundSchema;
127
-
128
- /**
129
- * @internal
130
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
131
- */
132
- export namespace Theme$ {
133
- /** @deprecated use `Theme$inboundSchema` instead. */
134
- export const inboundSchema = Theme$inboundSchema;
135
- /** @deprecated use `Theme$outboundSchema` instead. */
136
- export const outboundSchema = Theme$outboundSchema;
137
- }
138
-
139
94
  /** @internal */
140
95
  export const V1GetSettingsBody$inboundSchema: z.ZodType<
141
96
  V1GetSettingsBody,
@@ -144,8 +99,6 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
144
99
  > = z.object({
145
100
  $schema: z.string().optional(),
146
101
  chosenRole: z.nullable(ChosenRole$inboundSchema),
147
- color: z.string(),
148
- colors: z.string(),
149
102
  connections: z.nullable(z.array(Connection$inboundSchema)),
150
103
  developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
151
104
  email: z.string(),
@@ -156,7 +109,6 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
156
109
  images: z.nullable(z.array(Image$inboundSchema)),
157
110
  language: z.string(),
158
111
  sessions: z.nullable(z.array(Session$inboundSchema)),
159
- theme: Theme$inboundSchema,
160
112
  vanity: z.string(),
161
113
  vanityAnalytics: z.nullable(V1VanityAnalytics$inboundSchema),
162
114
  }).transform((v) => {
@@ -169,8 +121,6 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
169
121
  export type V1GetSettingsBody$Outbound = {
170
122
  $schema?: string | undefined;
171
123
  chosenRole: ChosenRole$Outbound | null;
172
- color: string;
173
- colors: string;
174
124
  connections: Array<Connection$Outbound> | null;
175
125
  developerApps: Array<DeveloperApp$Outbound> | null;
176
126
  email: string;
@@ -179,7 +129,6 @@ export type V1GetSettingsBody$Outbound = {
179
129
  images: Array<Image$Outbound> | null;
180
130
  language: string;
181
131
  sessions: Array<Session$Outbound> | null;
182
- theme: string;
183
132
  vanity: string;
184
133
  vanityAnalytics: V1VanityAnalytics$Outbound | null;
185
134
  };
@@ -192,8 +141,6 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
192
141
  > = z.object({
193
142
  dollarSchema: z.string().optional(),
194
143
  chosenRole: z.nullable(ChosenRole$outboundSchema),
195
- color: z.string(),
196
- colors: z.string(),
197
144
  connections: z.nullable(z.array(Connection$outboundSchema)),
198
145
  developerApps: z.nullable(z.array(DeveloperApp$outboundSchema)),
199
146
  email: z.string(),
@@ -202,7 +149,6 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
202
149
  images: z.nullable(z.array(Image$outboundSchema)),
203
150
  language: z.string(),
204
151
  sessions: z.nullable(z.array(Session$outboundSchema)),
205
- theme: Theme$outboundSchema,
206
152
  vanity: z.string(),
207
153
  vanityAnalytics: z.nullable(V1VanityAnalytics$outboundSchema),
208
154
  }).transform((v) => {
@@ -26,29 +26,7 @@ export type V1UpdateSettingsRequestBodyRole = ClosedEnum<
26
26
  typeof V1UpdateSettingsRequestBodyRole
27
27
  >;
28
28
 
29
- /**
30
- * The theme the account should use, only if the account is private
31
- */
32
- export const V1UpdateSettingsRequestBodyTheme = {
33
- Dark: "dark",
34
- Light: "light",
35
- } as const;
36
- /**
37
- * The theme the account should use, only if the account is private
38
- */
39
- export type V1UpdateSettingsRequestBodyTheme = ClosedEnum<
40
- typeof V1UpdateSettingsRequestBodyTheme
41
- >;
42
-
43
29
  export type V1UpdateSettingsRequestBody = {
44
- /**
45
- * The color the account should use, only if the account is private
46
- */
47
- color: string;
48
- /**
49
- * The colors the account should use, only if the account is private
50
- */
51
- colors: string;
52
30
  /**
53
31
  * The email the account should use, only if the account is private
54
32
  */
@@ -65,10 +43,6 @@ export type V1UpdateSettingsRequestBody = {
65
43
  * The role the account should have between one of the 6 donation roles
66
44
  */
67
45
  role?: V1UpdateSettingsRequestBodyRole | null | undefined;
68
- /**
69
- * The theme the account should use, only if the account is private
70
- */
71
- theme: V1UpdateSettingsRequestBodyTheme;
72
46
  /**
73
47
  * The vanity the account should use
74
48
  */
@@ -96,52 +70,25 @@ export namespace V1UpdateSettingsRequestBodyRole$ {
96
70
  export const outboundSchema = V1UpdateSettingsRequestBodyRole$outboundSchema;
97
71
  }
98
72
 
99
- /** @internal */
100
- export const V1UpdateSettingsRequestBodyTheme$inboundSchema: z.ZodNativeEnum<
101
- typeof V1UpdateSettingsRequestBodyTheme
102
- > = z.nativeEnum(V1UpdateSettingsRequestBodyTheme);
103
-
104
- /** @internal */
105
- export const V1UpdateSettingsRequestBodyTheme$outboundSchema: z.ZodNativeEnum<
106
- typeof V1UpdateSettingsRequestBodyTheme
107
- > = V1UpdateSettingsRequestBodyTheme$inboundSchema;
108
-
109
- /**
110
- * @internal
111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
- */
113
- export namespace V1UpdateSettingsRequestBodyTheme$ {
114
- /** @deprecated use `V1UpdateSettingsRequestBodyTheme$inboundSchema` instead. */
115
- export const inboundSchema = V1UpdateSettingsRequestBodyTheme$inboundSchema;
116
- /** @deprecated use `V1UpdateSettingsRequestBodyTheme$outboundSchema` instead. */
117
- export const outboundSchema = V1UpdateSettingsRequestBodyTheme$outboundSchema;
118
- }
119
-
120
73
  /** @internal */
121
74
  export const V1UpdateSettingsRequestBody$inboundSchema: z.ZodType<
122
75
  V1UpdateSettingsRequestBody,
123
76
  z.ZodTypeDef,
124
77
  unknown
125
78
  > = z.object({
126
- color: z.string(),
127
- colors: z.string(),
128
79
  email: z.nullable(z.string()),
129
80
  hidden: z.boolean(),
130
81
  language: z.string(),
131
82
  role: z.nullable(V1UpdateSettingsRequestBodyRole$inboundSchema).optional(),
132
- theme: V1UpdateSettingsRequestBodyTheme$inboundSchema,
133
83
  vanity: z.nullable(z.string()),
134
84
  });
135
85
 
136
86
  /** @internal */
137
87
  export type V1UpdateSettingsRequestBody$Outbound = {
138
- color: string;
139
- colors: string;
140
88
  email: string | null;
141
89
  hidden: boolean;
142
90
  language: string;
143
91
  role?: string | null | undefined;
144
- theme: string;
145
92
  vanity: string | null;
146
93
  };
147
94
 
@@ -151,13 +98,10 @@ export const V1UpdateSettingsRequestBody$outboundSchema: z.ZodType<
151
98
  z.ZodTypeDef,
152
99
  V1UpdateSettingsRequestBody
153
100
  > = z.object({
154
- color: z.string(),
155
- colors: z.string(),
156
101
  email: z.nullable(z.string()),
157
102
  hidden: z.boolean(),
158
103
  language: z.string(),
159
104
  role: z.nullable(V1UpdateSettingsRequestBodyRole$outboundSchema).optional(),
160
- theme: V1UpdateSettingsRequestBodyTheme$outboundSchema,
161
105
  vanity: z.nullable(z.string()),
162
106
  });
163
107
 
@@ -0,0 +1,95 @@
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 AccountV1GetOwnedBadgesResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountBadgeOwnedBadgesResponseBody?:
18
+ | components.V1AccountBadgeOwnedBadgesResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountV1GetOwnedBadgesResponse$inboundSchema: z.ZodType<
24
+ AccountV1GetOwnedBadgesResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountBadgeOwnedBadgesResponseBody: components
30
+ .V1AccountBadgeOwnedBadgesResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountBadgeOwnedBadgesResponseBody":
35
+ "v1AccountBadgeOwnedBadgesResponseBody",
36
+ });
37
+ });
38
+
39
+ /** @internal */
40
+ export type AccountV1GetOwnedBadgesResponse$Outbound = {
41
+ HttpMeta: components.HTTPMetadata$Outbound;
42
+ V1AccountBadgeOwnedBadgesResponseBody?:
43
+ | components.V1AccountBadgeOwnedBadgesResponseBody$Outbound
44
+ | undefined;
45
+ };
46
+
47
+ /** @internal */
48
+ export const AccountV1GetOwnedBadgesResponse$outboundSchema: z.ZodType<
49
+ AccountV1GetOwnedBadgesResponse$Outbound,
50
+ z.ZodTypeDef,
51
+ AccountV1GetOwnedBadgesResponse
52
+ > = z.object({
53
+ httpMeta: components.HTTPMetadata$outboundSchema,
54
+ v1AccountBadgeOwnedBadgesResponseBody: components
55
+ .V1AccountBadgeOwnedBadgesResponseBody$outboundSchema.optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ httpMeta: "HttpMeta",
59
+ v1AccountBadgeOwnedBadgesResponseBody:
60
+ "V1AccountBadgeOwnedBadgesResponseBody",
61
+ });
62
+ });
63
+
64
+ /**
65
+ * @internal
66
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
+ */
68
+ export namespace AccountV1GetOwnedBadgesResponse$ {
69
+ /** @deprecated use `AccountV1GetOwnedBadgesResponse$inboundSchema` instead. */
70
+ export const inboundSchema = AccountV1GetOwnedBadgesResponse$inboundSchema;
71
+ /** @deprecated use `AccountV1GetOwnedBadgesResponse$outboundSchema` instead. */
72
+ export const outboundSchema = AccountV1GetOwnedBadgesResponse$outboundSchema;
73
+ /** @deprecated use `AccountV1GetOwnedBadgesResponse$Outbound` instead. */
74
+ export type Outbound = AccountV1GetOwnedBadgesResponse$Outbound;
75
+ }
76
+
77
+ export function accountV1GetOwnedBadgesResponseToJSON(
78
+ accountV1GetOwnedBadgesResponse: AccountV1GetOwnedBadgesResponse,
79
+ ): string {
80
+ return JSON.stringify(
81
+ AccountV1GetOwnedBadgesResponse$outboundSchema.parse(
82
+ accountV1GetOwnedBadgesResponse,
83
+ ),
84
+ );
85
+ }
86
+
87
+ export function accountV1GetOwnedBadgesResponseFromJSON(
88
+ jsonString: string,
89
+ ): SafeParseResult<AccountV1GetOwnedBadgesResponse, SDKValidationError> {
90
+ return safeParse(
91
+ jsonString,
92
+ (x) => AccountV1GetOwnedBadgesResponse$inboundSchema.parse(JSON.parse(x)),
93
+ `Failed to parse 'AccountV1GetOwnedBadgesResponse' from JSON`,
94
+ );
95
+ }
@@ -14,6 +14,7 @@ export * from "./accountv1getdatapoints.js";
14
14
  export * from "./accountv1getfriends.js";
15
15
  export * from "./accountv1getinfo.js";
16
16
  export * from "./accountv1getleaderboardhistory.js";
17
+ export * from "./accountv1getownedbadges.js";
17
18
  export * from "./accountv1getstaff.js";
18
19
  export * from "./accountv1imagesdelete.js";
19
20
  export * from "./accountv1imagesget.js";
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { accountAccountV1GetBadgeBookmarks } from "../funcs/accountAccountV1GetBadgeBookmarks.js";
6
+ import { accountAccountV1GetOwnedBadges } from "../funcs/accountAccountV1GetOwnedBadges.js";
6
7
  import { accountAccountV1ImagesGet } from "../funcs/accountAccountV1ImagesGet.js";
7
8
  import { accountAccountV1ImagesUpdate } from "../funcs/accountAccountV1ImagesUpdate.js";
8
9
  import { accountDeleteImages } from "../funcs/accountDeleteImages.js";
@@ -117,6 +118,15 @@ export class Account extends ClientSDK {
117
118
  ));
118
119
  }
119
120
 
121
+ async accountV1GetOwnedBadges(
122
+ options?: RequestOptions,
123
+ ): Promise<operations.AccountV1GetOwnedBadgesResponse> {
124
+ return unwrapAsync(accountAccountV1GetOwnedBadges(
125
+ this,
126
+ options,
127
+ ));
128
+ }
129
+
120
130
  async getStaff(
121
131
  options?: RequestOptions,
122
132
  ): Promise<operations.AccountV1GetStaffResponse> {
package/src/sdk/badge.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { badgeAccountV1BookmarkBadge } from "../funcs/badgeAccountV1BookmarkBadge.js";
6
6
  import { badgeAccountV1GetBadgeBookmarks } from "../funcs/badgeAccountV1GetBadgeBookmarks.js";
7
+ import { badgeAccountV1GetOwnedBadges } from "../funcs/badgeAccountV1GetOwnedBadges.js";
7
8
  import { badgeBadgeV1Search } from "../funcs/badgeBadgeV1Search.js";
8
9
  import { badgeGetTags } from "../funcs/badgeGetTags.js";
9
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -32,6 +33,15 @@ export class Badge extends ClientSDK {
32
33
  ));
33
34
  }
34
35
 
36
+ async accountV1GetOwnedBadges(
37
+ options?: RequestOptions,
38
+ ): Promise<operations.AccountV1GetOwnedBadgesResponse> {
39
+ return unwrapAsync(badgeAccountV1GetOwnedBadges(
40
+ this,
41
+ options,
42
+ ));
43
+ }
44
+
35
45
  async getTags(
36
46
  options?: RequestOptions,
37
47
  ): Promise<operations.BadgeV1TagsResponse> {