@steamsets/client-ts 0.32.0 → 0.32.2

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 (117) hide show
  1. package/README.md +15 -7
  2. package/funcs/accountAccountListOwnedGroups.d.ts +16 -0
  3. package/funcs/accountAccountListOwnedGroups.d.ts.map +1 -0
  4. package/funcs/accountAccountListOwnedGroups.js +133 -0
  5. package/funcs/accountAccountListOwnedGroups.js.map +1 -0
  6. package/funcs/adminAdminUpdateRoleOverride.d.ts +16 -0
  7. package/funcs/adminAdminUpdateRoleOverride.d.ts.map +1 -0
  8. package/funcs/adminAdminUpdateRoleOverride.js +131 -0
  9. package/funcs/adminAdminUpdateRoleOverride.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/lib/files.d.ts +13 -0
  14. package/lib/files.d.ts.map +1 -1
  15. package/lib/files.js +19 -0
  16. package/lib/files.js.map +1 -1
  17. package/lib/matchers.d.ts.map +1 -1
  18. package/lib/matchers.js +0 -1
  19. package/lib/matchers.js.map +1 -1
  20. package/lib/sdks.d.ts.map +1 -1
  21. package/lib/sdks.js +8 -4
  22. package/lib/sdks.js.map +1 -1
  23. package/lib/security.d.ts.map +1 -1
  24. package/lib/security.js +1 -2
  25. package/lib/security.js.map +1 -1
  26. package/lib/url.d.ts.map +1 -1
  27. package/lib/url.js +4 -2
  28. package/lib/url.js.map +1 -1
  29. package/models/components/index.d.ts +3 -0
  30. package/models/components/index.d.ts.map +1 -1
  31. package/models/components/index.js +3 -0
  32. package/models/components/index.js.map +1 -1
  33. package/models/components/leaderboardaccount.d.ts +21 -0
  34. package/models/components/leaderboardaccount.d.ts.map +1 -1
  35. package/models/components/leaderboardaccount.js +6 -0
  36. package/models/components/leaderboardaccount.js.map +1 -1
  37. package/models/components/previewaccount.d.ts +21 -0
  38. package/models/components/previewaccount.d.ts.map +1 -1
  39. package/models/components/previewaccount.js +6 -0
  40. package/models/components/previewaccount.js.map +1 -1
  41. package/models/components/v1accountfriend.d.ts +21 -0
  42. package/models/components/v1accountfriend.d.ts.map +1 -1
  43. package/models/components/v1accountfriend.js +6 -0
  44. package/models/components/v1accountfriend.js.map +1 -1
  45. package/models/components/v1accountgetsettingsbody.d.ts +0 -4
  46. package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
  47. package/models/components/v1accountgetsettingsbody.js +0 -1
  48. package/models/components/v1accountgetsettingsbody.js.map +1 -1
  49. package/models/components/v1accountleaderboardaccount.d.ts +21 -0
  50. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  51. package/models/components/v1accountleaderboardaccount.js +6 -0
  52. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  53. package/models/components/v1accountlistownedgroupsresponsebody.d.ts +15 -0
  54. package/models/components/v1accountlistownedgroupsresponsebody.d.ts.map +1 -0
  55. package/models/components/v1accountlistownedgroupsresponsebody.js +57 -0
  56. package/models/components/v1accountlistownedgroupsresponsebody.js.map +1 -0
  57. package/models/components/v1accountupdatesettingsrequestbody.d.ts +3 -3
  58. package/models/components/v1accountupdatesettingsrequestbody.js +1 -1
  59. package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
  60. package/models/components/v1adminupdateroleoverriderequestbody.d.ts +43 -0
  61. package/models/components/v1adminupdateroleoverriderequestbody.d.ts.map +1 -0
  62. package/models/components/v1adminupdateroleoverriderequestbody.js +66 -0
  63. package/models/components/v1adminupdateroleoverriderequestbody.js.map +1 -0
  64. package/models/components/v1ownedgroup.d.ts +17 -0
  65. package/models/components/v1ownedgroup.d.ts.map +1 -0
  66. package/models/components/v1ownedgroup.js +57 -0
  67. package/models/components/v1ownedgroup.js.map +1 -0
  68. package/models/operations/accountlistownedgroups.d.ts +15 -0
  69. package/models/operations/accountlistownedgroups.d.ts.map +1 -0
  70. package/models/operations/accountlistownedgroups.js +59 -0
  71. package/models/operations/accountlistownedgroups.js.map +1 -0
  72. package/models/operations/adminupdateroleoverride.d.ts +11 -0
  73. package/models/operations/adminupdateroleoverride.d.ts.map +1 -0
  74. package/models/operations/adminupdateroleoverride.js +56 -0
  75. package/models/operations/adminupdateroleoverride.js.map +1 -0
  76. package/models/operations/index.d.ts +2 -0
  77. package/models/operations/index.d.ts.map +1 -1
  78. package/models/operations/index.js +2 -0
  79. package/models/operations/index.js.map +1 -1
  80. package/package.json +1 -1
  81. package/sdk/account.d.ts +4 -0
  82. package/sdk/account.d.ts.map +1 -1
  83. package/sdk/account.js +7 -0
  84. package/sdk/account.js.map +1 -1
  85. package/sdk/admin.d.ts +4 -0
  86. package/sdk/admin.d.ts.map +1 -1
  87. package/sdk/admin.js +7 -0
  88. package/sdk/admin.js.map +1 -1
  89. package/src/funcs/accountAccountListOwnedGroups.ts +185 -0
  90. package/src/funcs/adminAdminUpdateRoleOverride.ts +186 -0
  91. package/src/lib/config.ts +3 -3
  92. package/src/lib/files.ts +22 -0
  93. package/src/lib/matchers.ts +3 -2
  94. package/src/lib/sdks.ts +7 -5
  95. package/src/lib/security.ts +1 -2
  96. package/src/lib/url.ts +16 -14
  97. package/src/models/components/index.ts +3 -0
  98. package/src/models/components/leaderboardaccount.ts +26 -0
  99. package/src/models/components/previewaccount.ts +26 -0
  100. package/src/models/components/v1accountfriend.ts +26 -0
  101. package/src/models/components/v1accountgetsettingsbody.ts +0 -5
  102. package/src/models/components/v1accountleaderboardaccount.ts +26 -0
  103. package/src/models/components/v1accountlistownedgroupsresponsebody.ts +43 -0
  104. package/src/models/components/v1accountupdatesettingsrequestbody.ts +4 -4
  105. package/src/models/components/v1adminupdateroleoverriderequestbody.ts +79 -0
  106. package/src/models/components/v1ownedgroup.ts +45 -0
  107. package/src/models/operations/accountlistownedgroups.ts +47 -0
  108. package/src/models/operations/adminupdateroleoverride.ts +37 -0
  109. package/src/models/operations/index.ts +2 -0
  110. package/src/sdk/account.ts +15 -0
  111. package/src/sdk/admin.ts +15 -0
  112. package/.devcontainer/devcontainer.json +0 -45
  113. package/_speakeasy/.github/action-inputs-config.json +0 -53
  114. package/_speakeasy/.github/action-security-config.json +0 -88
  115. package/examples/package-lock.json +0 -610
  116. package/examples/package.json +0 -18
  117. package/tsconfig.json +0 -40
package/src/lib/url.ts CHANGED
@@ -13,21 +13,23 @@ export function pathToFunc(
13
13
  const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
- return pathPattern.replace(paramRE, function (_, placeholder) {
17
- if (!hasOwn.call(params, placeholder)) {
18
- throw new Error(`Parameter '${placeholder}' is required`);
19
- }
16
+ return pathPattern
17
+ .replace(paramRE, function (_, placeholder) {
18
+ if (!hasOwn.call(params, placeholder)) {
19
+ throw new Error(`Parameter '${placeholder}' is required`);
20
+ }
20
21
 
21
- const value = params[placeholder];
22
- if (typeof value !== "string" && typeof value !== "number") {
23
- throw new Error(
24
- `Parameter '${placeholder}' must be a string or number`,
25
- );
26
- }
22
+ const value = params[placeholder];
23
+ if (typeof value !== "string" && typeof value !== "number") {
24
+ throw new Error(
25
+ `Parameter '${placeholder}' must be a string or number`,
26
+ );
27
+ }
27
28
 
28
- return options?.charEncoding === "percent"
29
- ? encodeURIComponent(`${value}`)
30
- : `${value}`;
31
- });
29
+ return options?.charEncoding === "percent"
30
+ ? encodeURIComponent(`${value}`)
31
+ : `${value}`;
32
+ })
33
+ .replace(/^\/+/, "");
32
34
  };
33
35
  }
@@ -86,6 +86,7 @@ export * from "./v1accountlistfriendsresponsebody.js";
86
86
  export * from "./v1accountlistimagesresponsebody.js";
87
87
  export * from "./v1accountlistinventorysetsresponsebody.js";
88
88
  export * from "./v1accountlistleaderboardhistoryresponsebody.js";
89
+ export * from "./v1accountlistownedgroupsresponsebody.js";
89
90
  export * from "./v1accountlocationupdate.js";
90
91
  export * from "./v1accountloginresponsebody.js";
91
92
  export * from "./v1accountnameupdate.js";
@@ -115,6 +116,7 @@ export * from "./v1accountverifyemailrequestbody.js";
115
116
  export * from "./v1admingetaccountresponsebody.js";
116
117
  export * from "./v1adminremovevanityresponsebody.js";
117
118
  export * from "./v1adminupdateresourcesrequestbody.js";
119
+ export * from "./v1adminupdateroleoverriderequestbody.js";
118
120
  export * from "./v1adminupdaterolesrequestbody.js";
119
121
  export * from "./v1appbadge.js";
120
122
  export * from "./v1appfilters.js";
@@ -146,6 +148,7 @@ export * from "./v1leaderboardlocation.js";
146
148
  export * from "./v1leaderboardlocationinfo.js";
147
149
  export * from "./v1leaderboardpreviewaccountrankrequestbody.js";
148
150
  export * from "./v1leaderboardpreviewaccountrankresponsebody.js";
151
+ export * from "./v1ownedgroup.js";
149
152
  export * from "./v1searchrequest.js";
150
153
  export * from "./v1stats.js";
151
154
  export * from "./v1vanityanalytics.js";
@@ -8,6 +8,7 @@ import * as openEnums from "../../types/enums.js";
8
8
  import { OpenEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { Image, Image$inboundSchema } from "./image.js";
11
12
  import {
12
13
  LeaderboardCity,
13
14
  LeaderboardCity$inboundSchema,
@@ -42,6 +43,10 @@ export type LeaderboardAccountPrivacy = OpenEnum<
42
43
  >;
43
44
 
44
45
  export type LeaderboardAccount = {
46
+ /**
47
+ * The animated avatar of the account
48
+ */
49
+ animatedAvatar: string;
45
50
  /**
46
51
  * The cost of an app
47
52
  *
@@ -56,6 +61,10 @@ export type LeaderboardAccount = {
56
61
  * The avatar hash of the account
57
62
  */
58
63
  avatar: string;
64
+ /**
65
+ * The avatar frame of the account
66
+ */
67
+ avatarFrame: string;
59
68
  /**
60
69
  * The number of awards the account has
61
70
  */
@@ -64,6 +73,10 @@ export type LeaderboardAccount = {
64
73
  * The number of awards the account has
65
74
  */
66
75
  awardsReceived: number;
76
+ /**
77
+ * The background of the account
78
+ */
79
+ background: string;
67
80
  /**
68
81
  * The number of badges the account has
69
82
  */
@@ -104,10 +117,18 @@ export type LeaderboardAccount = {
104
117
  * The number of game bans
105
118
  */
106
119
  gameBans: number;
120
+ /**
121
+ * The images of the account
122
+ */
123
+ images: Array<Image> | null;
107
124
  /**
108
125
  * The level of the account
109
126
  */
110
127
  level: number;
128
+ /**
129
+ * The mini background of the account
130
+ */
131
+ miniBackground: string;
111
132
  /**
112
133
  * The name of the account
113
134
  */
@@ -183,11 +204,14 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
183
204
  z.ZodTypeDef,
184
205
  unknown
185
206
  > = z.object({
207
+ animatedAvatar: z.string(),
186
208
  appCost: z.number().int(),
187
209
  apps: z.number().int(),
188
210
  avatar: z.string(),
211
+ avatarFrame: z.string(),
189
212
  awardsGiven: z.number().int(),
190
213
  awardsReceived: z.number().int(),
214
+ background: z.string(),
191
215
  badges: z.number().int(),
192
216
  bans: z.number().int(),
193
217
  city: z.nullable(LeaderboardCity$inboundSchema).optional(),
@@ -199,7 +223,9 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
199
223
  foilBadges: z.number().int(),
200
224
  friends: z.number().int(),
201
225
  gameBans: z.number().int(),
226
+ images: z.nullable(z.array(Image$inboundSchema)),
202
227
  level: z.number().int(),
228
+ miniBackground: z.string(),
203
229
  name: z.string(),
204
230
  normalBadgeCost: z.number().int(),
205
231
  normalBadges: z.number().int(),
@@ -8,6 +8,7 @@ import * as openEnums from "../../types/enums.js";
8
8
  import { OpenEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { Image, Image$inboundSchema } from "./image.js";
11
12
  import {
12
13
  LeaderboardCity,
13
14
  LeaderboardCity$inboundSchema,
@@ -40,6 +41,10 @@ export const PreviewAccountPrivacy = {
40
41
  export type PreviewAccountPrivacy = OpenEnum<typeof PreviewAccountPrivacy>;
41
42
 
42
43
  export type PreviewAccount = {
44
+ /**
45
+ * The animated avatar of the account
46
+ */
47
+ animatedAvatar: string;
43
48
  /**
44
49
  * The cost of an app
45
50
  *
@@ -54,6 +59,10 @@ export type PreviewAccount = {
54
59
  * The avatar hash of the account
55
60
  */
56
61
  avatar: string;
62
+ /**
63
+ * The avatar frame of the account
64
+ */
65
+ avatarFrame: string;
57
66
  /**
58
67
  * The number of awards the account has
59
68
  */
@@ -62,6 +71,10 @@ export type PreviewAccount = {
62
71
  * The number of awards the account has
63
72
  */
64
73
  awardsReceived: number;
74
+ /**
75
+ * The background of the account
76
+ */
77
+ background: string;
65
78
  /**
66
79
  * The number of badges the account has
67
80
  */
@@ -106,10 +119,18 @@ export type PreviewAccount = {
106
119
  * The number of game bans
107
120
  */
108
121
  gameBans: number;
122
+ /**
123
+ * The images of the account
124
+ */
125
+ images: Array<Image> | null;
109
126
  /**
110
127
  * The level of the account
111
128
  */
112
129
  level: number;
130
+ /**
131
+ * The mini background of the account
132
+ */
133
+ miniBackground: string;
113
134
  /**
114
135
  * The name of the account
115
136
  */
@@ -193,11 +214,14 @@ export const PreviewAccount$inboundSchema: z.ZodType<
193
214
  z.ZodTypeDef,
194
215
  unknown
195
216
  > = z.object({
217
+ animatedAvatar: z.string(),
196
218
  appCost: z.number().int(),
197
219
  apps: z.number().int(),
198
220
  avatar: z.string(),
221
+ avatarFrame: z.string(),
199
222
  awardsGiven: z.number().int(),
200
223
  awardsReceived: z.number().int(),
224
+ background: z.string(),
201
225
  badges: z.number().int(),
202
226
  bans: z.number().int(),
203
227
  city: z.nullable(LeaderboardCity$inboundSchema).optional(),
@@ -210,7 +234,9 @@ export const PreviewAccount$inboundSchema: z.ZodType<
210
234
  foilBadges: z.number().int(),
211
235
  friends: z.number().int(),
212
236
  gameBans: z.number().int(),
237
+ images: z.nullable(z.array(Image$inboundSchema)),
213
238
  level: z.number().int(),
239
+ miniBackground: z.string(),
214
240
  name: z.string(),
215
241
  normalBadgeCost: z.number().int(),
216
242
  normalBadges: z.number().int(),
@@ -8,6 +8,7 @@ import * as openEnums from "../../types/enums.js";
8
8
  import { OpenEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { Image, Image$inboundSchema } from "./image.js";
11
12
  import {
12
13
  LeaderboardCity,
13
14
  LeaderboardCity$inboundSchema,
@@ -40,6 +41,10 @@ export const V1AccountFriendPrivacy = {
40
41
  export type V1AccountFriendPrivacy = OpenEnum<typeof V1AccountFriendPrivacy>;
41
42
 
42
43
  export type V1AccountFriend = {
44
+ /**
45
+ * The animated avatar of the account
46
+ */
47
+ animatedAvatar: string;
43
48
  /**
44
49
  * The cost of an app
45
50
  *
@@ -54,6 +59,10 @@ export type V1AccountFriend = {
54
59
  * The avatar hash of the account
55
60
  */
56
61
  avatar: string;
62
+ /**
63
+ * The avatar frame of the account
64
+ */
65
+ avatarFrame: string;
57
66
  /**
58
67
  * The number of awards the account has
59
68
  */
@@ -62,6 +71,10 @@ export type V1AccountFriend = {
62
71
  * The number of awards the account has
63
72
  */
64
73
  awardsReceived: number;
74
+ /**
75
+ * The background of the account
76
+ */
77
+ background: string;
65
78
  /**
66
79
  * The number of badges the account has
67
80
  */
@@ -103,10 +116,18 @@ export type V1AccountFriend = {
103
116
  * The number of game bans
104
117
  */
105
118
  gameBans: number;
119
+ /**
120
+ * The images of the account
121
+ */
122
+ images: Array<Image> | null;
106
123
  /**
107
124
  * The level of the account
108
125
  */
109
126
  level: number;
127
+ /**
128
+ * The mini background of the account
129
+ */
130
+ miniBackground: string;
110
131
  /**
111
132
  * The name of the account
112
133
  */
@@ -182,11 +203,14 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
182
203
  z.ZodTypeDef,
183
204
  unknown
184
205
  > = z.object({
206
+ animatedAvatar: z.string(),
185
207
  appCost: z.number().int(),
186
208
  apps: z.number().int(),
187
209
  avatar: z.string(),
210
+ avatarFrame: z.string(),
188
211
  awardsGiven: z.number().int(),
189
212
  awardsReceived: z.number().int(),
213
+ background: z.string(),
190
214
  badges: z.number().int(),
191
215
  bans: z.number().int(),
192
216
  city: z.nullable(LeaderboardCity$inboundSchema).optional(),
@@ -201,7 +225,9 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
201
225
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
202
226
  ),
203
227
  gameBans: z.number().int(),
228
+ images: z.nullable(z.array(Image$inboundSchema)),
204
229
  level: z.number().int(),
230
+ miniBackground: z.string(),
205
231
  name: z.string(),
206
232
  normalBadgeCost: z.number().int(),
207
233
  normalBadges: z.number().int(),
@@ -49,10 +49,6 @@ export type V1AccountGetSettingsBody = {
49
49
  * The connections the account has
50
50
  */
51
51
  connections: Array<Connection> | null;
52
- /**
53
- * The country ID override for the account
54
- */
55
- countryOverride?: number | null | undefined;
56
52
  /**
57
53
  * The code of the override country
58
54
  */
@@ -123,7 +119,6 @@ export const V1AccountGetSettingsBody$inboundSchema: z.ZodType<
123
119
  analytics: DeveloperAppAnalytics$inboundSchema.optional(),
124
120
  chosenRole: z.nullable(ChosenRole$inboundSchema),
125
121
  connections: z.nullable(z.array(Connection$inboundSchema)),
126
- countryOverride: z.nullable(z.number().int()).optional(),
127
122
  countryOverrideCode: z.nullable(z.string()).optional(),
128
123
  countryOverrideName: z.nullable(z.string()).optional(),
129
124
  developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
@@ -12,6 +12,7 @@ import {
12
12
  AccountBadgeInfo,
13
13
  AccountBadgeInfo$inboundSchema,
14
14
  } from "./accountbadgeinfo.js";
15
+ import { Image, Image$inboundSchema } from "./image.js";
15
16
  import {
16
17
  LeaderboardCity,
17
18
  LeaderboardCity$inboundSchema,
@@ -46,6 +47,10 @@ export type V1AccountLeaderboardAccountPrivacy = OpenEnum<
46
47
  >;
47
48
 
48
49
  export type V1AccountLeaderboardAccount = {
50
+ /**
51
+ * The animated avatar of the account
52
+ */
53
+ animatedAvatar: string;
49
54
  /**
50
55
  * The cost of an app
51
56
  *
@@ -64,6 +69,10 @@ export type V1AccountLeaderboardAccount = {
64
69
  * The avatar hash of the account
65
70
  */
66
71
  avatar: string;
72
+ /**
73
+ * The avatar frame of the account
74
+ */
75
+ avatarFrame: string;
67
76
  /**
68
77
  * The number of awards the account has
69
78
  */
@@ -72,6 +81,10 @@ export type V1AccountLeaderboardAccount = {
72
81
  * The number of awards the account has
73
82
  */
74
83
  awardsReceived: number;
84
+ /**
85
+ * The background of the account
86
+ */
87
+ background: string;
75
88
  badgeInfo?: AccountBadgeInfo | null | undefined;
76
89
  /**
77
90
  * The number of badges the account has
@@ -113,10 +126,18 @@ export type V1AccountLeaderboardAccount = {
113
126
  * The number of game bans
114
127
  */
115
128
  gameBans: number;
129
+ /**
130
+ * The images of the account
131
+ */
132
+ images: Array<Image> | null;
116
133
  /**
117
134
  * The level of the account
118
135
  */
119
136
  level: number;
137
+ /**
138
+ * The mini background of the account
139
+ */
140
+ miniBackground: string;
120
141
  /**
121
142
  * The name of the account
122
143
  */
@@ -196,12 +217,15 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
196
217
  z.ZodTypeDef,
197
218
  unknown
198
219
  > = z.object({
220
+ animatedAvatar: z.string(),
199
221
  appCost: z.number().int(),
200
222
  appPlaytime: z.nullable(z.number().int()),
201
223
  apps: z.number().int(),
202
224
  avatar: z.string(),
225
+ avatarFrame: z.string(),
203
226
  awardsGiven: z.number().int(),
204
227
  awardsReceived: z.number().int(),
228
+ background: z.string(),
205
229
  badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
206
230
  badges: z.number().int(),
207
231
  bans: z.number().int(),
@@ -214,7 +238,9 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
214
238
  foilBadges: z.number().int(),
215
239
  friends: z.number().int(),
216
240
  gameBans: z.number().int(),
241
+ images: z.nullable(z.array(Image$inboundSchema)),
217
242
  level: z.number().int(),
243
+ miniBackground: z.string(),
218
244
  name: z.string(),
219
245
  normalBadgeCost: z.number().int(),
220
246
  normalBadges: z.number().int(),
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 { V1OwnedGroup, V1OwnedGroup$inboundSchema } from "./v1ownedgroup.js";
11
+
12
+ export type V1AccountListOwnedGroupsResponseBody = {
13
+ /**
14
+ * A URL to the JSON Schema for this object.
15
+ */
16
+ dollarSchema?: string | undefined;
17
+ groups: Array<V1OwnedGroup> | null;
18
+ };
19
+
20
+ /** @internal */
21
+ export const V1AccountListOwnedGroupsResponseBody$inboundSchema: z.ZodType<
22
+ V1AccountListOwnedGroupsResponseBody,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ $schema: z.string().optional(),
27
+ groups: z.nullable(z.array(V1OwnedGroup$inboundSchema)),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "$schema": "dollarSchema",
31
+ });
32
+ });
33
+
34
+ export function v1AccountListOwnedGroupsResponseBodyFromJSON(
35
+ jsonString: string,
36
+ ): SafeParseResult<V1AccountListOwnedGroupsResponseBody, SDKValidationError> {
37
+ return safeParse(
38
+ jsonString,
39
+ (x) =>
40
+ V1AccountListOwnedGroupsResponseBody$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'V1AccountListOwnedGroupsResponseBody' from JSON`,
42
+ );
43
+ }
@@ -6,9 +6,9 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type V1AccountUpdateSettingsRequestBody = {
8
8
  /**
9
- * The country ID to override the Steam country with, null to clear
9
+ * The country name to override the Steam country with, null to clear
10
10
  */
11
- countryOverride?: number | null | undefined;
11
+ countryOverride?: string | null | undefined;
12
12
  /**
13
13
  * The email the account should use, only if the account is private
14
14
  */
@@ -29,7 +29,7 @@ export type V1AccountUpdateSettingsRequestBody = {
29
29
 
30
30
  /** @internal */
31
31
  export type V1AccountUpdateSettingsRequestBody$Outbound = {
32
- countryOverride?: number | null | undefined;
32
+ countryOverride?: string | null | undefined;
33
33
  email?: string | null | undefined;
34
34
  hidden: boolean;
35
35
  language: string;
@@ -42,7 +42,7 @@ export const V1AccountUpdateSettingsRequestBody$outboundSchema: z.ZodType<
42
42
  z.ZodTypeDef,
43
43
  V1AccountUpdateSettingsRequestBody
44
44
  > = z.object({
45
- countryOverride: z.nullable(z.number().int()).optional(),
45
+ countryOverride: z.nullable(z.string()).optional(),
46
46
  email: z.nullable(z.string()).optional(),
47
47
  hidden: z.boolean(),
48
48
  language: z.string(),
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ IDSearch,
9
+ IDSearch$Outbound,
10
+ IDSearch$outboundSchema,
11
+ } from "./idsearch.js";
12
+ import {
13
+ VanitySearch,
14
+ VanitySearch$Outbound,
15
+ VanitySearch$outboundSchema,
16
+ } from "./vanitysearch.js";
17
+
18
+ /**
19
+ * The tier to set (tier_1, tier_2, tier_3, tier_mythic). Empty to remove override.
20
+ */
21
+ export const Tier = {
22
+ Tier1: "tier_1",
23
+ Tier2: "tier_2",
24
+ Tier3: "tier_3",
25
+ TierMythic: "tier_mythic",
26
+ Unknown: "",
27
+ } as const;
28
+ /**
29
+ * The tier to set (tier_1, tier_2, tier_3, tier_mythic). Empty to remove override.
30
+ */
31
+ export type Tier = ClosedEnum<typeof Tier>;
32
+
33
+ export type V1AdminUpdateRoleOverrideRequestBody = {
34
+ id?: IDSearch | undefined;
35
+ /**
36
+ * Reason for the override (e.g. PayPal donation, crypto donation)
37
+ */
38
+ reason?: string | undefined;
39
+ /**
40
+ * The tier to set (tier_1, tier_2, tier_3, tier_mythic). Empty to remove override.
41
+ */
42
+ tier?: Tier | undefined;
43
+ vanity?: VanitySearch | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const Tier$outboundSchema: z.ZodNativeEnum<typeof Tier> = z.nativeEnum(
48
+ Tier,
49
+ );
50
+
51
+ /** @internal */
52
+ export type V1AdminUpdateRoleOverrideRequestBody$Outbound = {
53
+ id?: IDSearch$Outbound | undefined;
54
+ reason?: string | undefined;
55
+ tier?: string | undefined;
56
+ vanity?: VanitySearch$Outbound | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const V1AdminUpdateRoleOverrideRequestBody$outboundSchema: z.ZodType<
61
+ V1AdminUpdateRoleOverrideRequestBody$Outbound,
62
+ z.ZodTypeDef,
63
+ V1AdminUpdateRoleOverrideRequestBody
64
+ > = z.object({
65
+ id: IDSearch$outboundSchema.optional(),
66
+ reason: z.string().optional(),
67
+ tier: Tier$outboundSchema.optional(),
68
+ vanity: VanitySearch$outboundSchema.optional(),
69
+ });
70
+
71
+ export function v1AdminUpdateRoleOverrideRequestBodyToJSON(
72
+ v1AdminUpdateRoleOverrideRequestBody: V1AdminUpdateRoleOverrideRequestBody,
73
+ ): string {
74
+ return JSON.stringify(
75
+ V1AdminUpdateRoleOverrideRequestBody$outboundSchema.parse(
76
+ v1AdminUpdateRoleOverrideRequestBody,
77
+ ),
78
+ );
79
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 V1OwnedGroup = {
11
+ avatar: string;
12
+ foundedAt: Date;
13
+ id: number;
14
+ members: number;
15
+ name: string;
16
+ privacy: string;
17
+ tag: string;
18
+ vanity: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const V1OwnedGroup$inboundSchema: z.ZodType<
23
+ V1OwnedGroup,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ avatar: z.string(),
28
+ foundedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
29
+ id: z.number().int(),
30
+ members: z.number().int(),
31
+ name: z.string(),
32
+ privacy: z.string(),
33
+ tag: z.string(),
34
+ vanity: z.string(),
35
+ });
36
+
37
+ export function v1OwnedGroupFromJSON(
38
+ jsonString: string,
39
+ ): SafeParseResult<V1OwnedGroup, SDKValidationError> {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) => V1OwnedGroup$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'V1OwnedGroup' from JSON`,
44
+ );
45
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AccountListOwnedGroupsResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountListOwnedGroupsResponseBody?:
18
+ | components.V1AccountListOwnedGroupsResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountListOwnedGroupsResponse$inboundSchema: z.ZodType<
24
+ AccountListOwnedGroupsResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountListOwnedGroupsResponseBody: components
30
+ .V1AccountListOwnedGroupsResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountListOwnedGroupsResponseBody":
35
+ "v1AccountListOwnedGroupsResponseBody",
36
+ });
37
+ });
38
+
39
+ export function accountListOwnedGroupsResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<AccountListOwnedGroupsResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => AccountListOwnedGroupsResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'AccountListOwnedGroupsResponse' from JSON`,
46
+ );
47
+ }