@steamsets/client-ts 0.31.5 → 0.32.1

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 (172) hide show
  1. package/README.md +13 -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/hooks/hooks.d.ts.map +1 -1
  7. package/hooks/hooks.js +0 -2
  8. package/hooks/hooks.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/matchers.d.ts.map +1 -1
  13. package/lib/matchers.js +0 -1
  14. package/lib/matchers.js.map +1 -1
  15. package/lib/sdks.js +2 -2
  16. package/lib/sdks.js.map +1 -1
  17. package/lib/security.d.ts.map +1 -1
  18. package/lib/security.js +1 -2
  19. package/lib/security.js.map +1 -1
  20. package/models/components/accountleaderboardhistory.d.ts +3 -3
  21. package/models/components/accountleaderboardhistory.d.ts.map +1 -1
  22. package/models/components/accountleaderboardhistory.js +2 -1
  23. package/models/components/accountleaderboardhistory.js.map +1 -1
  24. package/models/components/badge.d.ts +4 -0
  25. package/models/components/badge.d.ts.map +1 -1
  26. package/models/components/badge.js +4 -0
  27. package/models/components/badge.js.map +1 -1
  28. package/models/components/bestleaderboardrank.d.ts +3 -3
  29. package/models/components/bestleaderboardrank.d.ts.map +1 -1
  30. package/models/components/bestleaderboardrank.js +2 -2
  31. package/models/components/bestleaderboardrank.js.map +1 -1
  32. package/models/components/chosenrole.d.ts +3 -3
  33. package/models/components/chosenrole.d.ts.map +1 -1
  34. package/models/components/chosenrole.js +2 -1
  35. package/models/components/chosenrole.js.map +1 -1
  36. package/models/components/connection.d.ts +3 -3
  37. package/models/components/connection.d.ts.map +1 -1
  38. package/models/components/connection.js +2 -1
  39. package/models/components/connection.js.map +1 -1
  40. package/models/components/developerapp.d.ts +3 -3
  41. package/models/components/developerapp.d.ts.map +1 -1
  42. package/models/components/developerapp.js +2 -1
  43. package/models/components/developerapp.js.map +1 -1
  44. package/models/components/developerappanalyticsoutcome.d.ts +3 -3
  45. package/models/components/developerappanalyticsoutcome.d.ts.map +1 -1
  46. package/models/components/developerappanalyticsoutcome.js +2 -2
  47. package/models/components/developerappanalyticsoutcome.js.map +1 -1
  48. package/models/components/image.d.ts +3 -3
  49. package/models/components/image.d.ts.map +1 -1
  50. package/models/components/image.js +2 -2
  51. package/models/components/image.js.map +1 -1
  52. package/models/components/index.d.ts +2 -0
  53. package/models/components/index.d.ts.map +1 -1
  54. package/models/components/index.js +2 -0
  55. package/models/components/index.js.map +1 -1
  56. package/models/components/leaderboardaccount.d.ts +3 -3
  57. package/models/components/leaderboardaccount.d.ts.map +1 -1
  58. package/models/components/leaderboardaccount.js +2 -1
  59. package/models/components/leaderboardaccount.js.map +1 -1
  60. package/models/components/previewaccount.d.ts +3 -3
  61. package/models/components/previewaccount.d.ts.map +1 -1
  62. package/models/components/previewaccount.js +2 -1
  63. package/models/components/previewaccount.js.map +1 -1
  64. package/models/components/resource.d.ts +4 -4
  65. package/models/components/resource.d.ts.map +1 -1
  66. package/models/components/resource.js +3 -2
  67. package/models/components/resource.js.map +1 -1
  68. package/models/components/role.d.ts +3 -3
  69. package/models/components/role.d.ts.map +1 -1
  70. package/models/components/role.js +2 -2
  71. package/models/components/role.js.map +1 -1
  72. package/models/components/v1accountfriend.d.ts +3 -3
  73. package/models/components/v1accountfriend.d.ts.map +1 -1
  74. package/models/components/v1accountfriend.js +2 -1
  75. package/models/components/v1accountfriend.js.map +1 -1
  76. package/models/components/v1accountgetinforesponsebody.d.ts +9 -9
  77. package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
  78. package/models/components/v1accountgetinforesponsebody.js +5 -6
  79. package/models/components/v1accountgetinforesponsebody.js.map +1 -1
  80. package/models/components/v1accountgetsettingsbody.d.ts +11 -3
  81. package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
  82. package/models/components/v1accountgetsettingsbody.js +4 -1
  83. package/models/components/v1accountgetsettingsbody.js.map +1 -1
  84. package/models/components/v1accountleaderboardaccount.d.ts +3 -3
  85. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  86. package/models/components/v1accountleaderboardaccount.js +2 -1
  87. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  88. package/models/components/v1accountlistownedgroupsresponsebody.d.ts +15 -0
  89. package/models/components/v1accountlistownedgroupsresponsebody.d.ts.map +1 -0
  90. package/models/components/v1accountlistownedgroupsresponsebody.js +57 -0
  91. package/models/components/v1accountlistownedgroupsresponsebody.js.map +1 -0
  92. package/models/components/v1accountupdatesettingsrequestbody.d.ts +5 -0
  93. package/models/components/v1accountupdatesettingsrequestbody.d.ts.map +1 -1
  94. package/models/components/v1accountupdatesettingsrequestbody.js +1 -0
  95. package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
  96. package/models/components/v1admingetaccountresponsebody.d.ts +3 -3
  97. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
  98. package/models/components/v1admingetaccountresponsebody.js +2 -1
  99. package/models/components/v1admingetaccountresponsebody.js.map +1 -1
  100. package/models/components/v1groupleaderboardgroup.d.ts +3 -3
  101. package/models/components/v1groupleaderboardgroup.d.ts.map +1 -1
  102. package/models/components/v1groupleaderboardgroup.js +2 -1
  103. package/models/components/v1groupleaderboardgroup.js.map +1 -1
  104. package/models/components/v1ownedgroup.d.ts +17 -0
  105. package/models/components/v1ownedgroup.d.ts.map +1 -0
  106. package/models/components/v1ownedgroup.js +57 -0
  107. package/models/components/v1ownedgroup.js.map +1 -0
  108. package/models/operations/accountlistownedgroups.d.ts +15 -0
  109. package/models/operations/accountlistownedgroups.d.ts.map +1 -0
  110. package/models/operations/accountlistownedgroups.js +59 -0
  111. package/models/operations/accountlistownedgroups.js.map +1 -0
  112. package/models/operations/index.d.ts +1 -0
  113. package/models/operations/index.d.ts.map +1 -1
  114. package/models/operations/index.js +1 -0
  115. package/models/operations/index.js.map +1 -1
  116. package/models/operations/locationgetlocations.d.ts +0 -3
  117. package/models/operations/locationgetlocations.d.ts.map +1 -1
  118. package/models/operations/locationgetlocations.js +0 -2
  119. package/models/operations/locationgetlocations.js.map +1 -1
  120. package/models/operations/staffliststaff.d.ts +0 -3
  121. package/models/operations/staffliststaff.d.ts.map +1 -1
  122. package/models/operations/staffliststaff.js +0 -2
  123. package/models/operations/staffliststaff.js.map +1 -1
  124. package/models/operations/statsgetstats.d.ts +0 -3
  125. package/models/operations/statsgetstats.d.ts.map +1 -1
  126. package/models/operations/statsgetstats.js +0 -2
  127. package/models/operations/statsgetstats.js.map +1 -1
  128. package/package.json +3 -3
  129. package/sdk/account.d.ts +4 -0
  130. package/sdk/account.d.ts.map +1 -1
  131. package/sdk/account.js +7 -0
  132. package/sdk/account.js.map +1 -1
  133. package/src/funcs/accountAccountListOwnedGroups.ts +185 -0
  134. package/src/hooks/hooks.ts +0 -3
  135. package/src/lib/config.ts +3 -3
  136. package/src/lib/matchers.ts +3 -2
  137. package/src/lib/sdks.ts +2 -2
  138. package/src/lib/security.ts +1 -2
  139. package/src/models/components/accountleaderboardhistory.ts +8 -6
  140. package/src/models/components/badge.ts +8 -0
  141. package/src/models/components/bestleaderboardrank.ts +8 -4
  142. package/src/models/components/chosenrole.ts +8 -5
  143. package/src/models/components/connection.ts +8 -5
  144. package/src/models/components/developerapp.ts +8 -7
  145. package/src/models/components/developerappanalyticsoutcome.ts +5 -4
  146. package/src/models/components/image.ts +8 -4
  147. package/src/models/components/index.ts +2 -0
  148. package/src/models/components/leaderboardaccount.ts +8 -5
  149. package/src/models/components/previewaccount.ts +8 -5
  150. package/src/models/components/resource.ts +13 -8
  151. package/src/models/components/role.ts +8 -4
  152. package/src/models/components/v1accountfriend.ts +8 -5
  153. package/src/models/components/v1accountgetinforesponsebody.ts +23 -15
  154. package/src/models/components/v1accountgetsettingsbody.ts +18 -5
  155. package/src/models/components/v1accountleaderboardaccount.ts +8 -5
  156. package/src/models/components/v1accountlistownedgroupsresponsebody.ts +43 -0
  157. package/src/models/components/v1accountupdatesettingsrequestbody.ts +6 -0
  158. package/src/models/components/v1admingetaccountresponsebody.ts +8 -6
  159. package/src/models/components/v1groupleaderboardgroup.ts +8 -5
  160. package/src/models/components/v1ownedgroup.ts +45 -0
  161. package/src/models/operations/accountlistownedgroups.ts +47 -0
  162. package/src/models/operations/index.ts +1 -0
  163. package/src/models/operations/locationgetlocations.ts +0 -3
  164. package/src/models/operations/staffliststaff.ts +0 -3
  165. package/src/models/operations/statsgetstats.ts +0 -3
  166. package/src/sdk/account.ts +15 -0
  167. package/.devcontainer/devcontainer.json +0 -45
  168. package/_speakeasy/.github/action-inputs-config.json +0 -53
  169. package/_speakeasy/.github/action-security-config.json +0 -88
  170. package/examples/package-lock.json +0 -610
  171. package/examples/package.json +0 -18
  172. package/tsconfig.json +0 -40
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -31,7 +32,7 @@ export const RoleRole = {
31
32
  Astral: "astral",
32
33
  Nebula: "nebula",
33
34
  } as const;
34
- export type RoleRole = ClosedEnum<typeof RoleRole>;
35
+ export type RoleRole = OpenEnum<typeof RoleRole>;
35
36
 
36
37
  export type Role = {
37
38
  /**
@@ -46,8 +47,11 @@ export type Role = {
46
47
  };
47
48
 
48
49
  /** @internal */
49
- export const RoleRole$inboundSchema: z.ZodNativeEnum<typeof RoleRole> = z
50
- .nativeEnum(RoleRole);
50
+ export const RoleRole$inboundSchema: z.ZodType<
51
+ RoleRole,
52
+ z.ZodTypeDef,
53
+ unknown
54
+ > = openEnums.inboundSchema(RoleRole);
51
55
 
52
56
  /** @internal */
53
57
  export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -36,7 +37,7 @@ export const V1AccountFriendPrivacy = {
36
37
  /**
37
38
  * The privacy of the account
38
39
  */
39
- export type V1AccountFriendPrivacy = ClosedEnum<typeof V1AccountFriendPrivacy>;
40
+ export type V1AccountFriendPrivacy = OpenEnum<typeof V1AccountFriendPrivacy>;
40
41
 
41
42
  export type V1AccountFriend = {
42
43
  /**
@@ -169,9 +170,11 @@ export type V1AccountFriend = {
169
170
  };
170
171
 
171
172
  /** @internal */
172
- export const V1AccountFriendPrivacy$inboundSchema: z.ZodNativeEnum<
173
- typeof V1AccountFriendPrivacy
174
- > = z.nativeEnum(V1AccountFriendPrivacy);
173
+ export const V1AccountFriendPrivacy$inboundSchema: z.ZodType<
174
+ V1AccountFriendPrivacy,
175
+ z.ZodTypeDef,
176
+ unknown
177
+ > = openEnums.inboundSchema(V1AccountFriendPrivacy);
175
178
 
176
179
  /** @internal */
177
180
  export const V1AccountFriend$inboundSchema: z.ZodType<
@@ -5,7 +5,8 @@
5
5
  import * as z from "zod/v3";
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";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
9
10
  import { Result as SafeParseResult } from "../../types/fp.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
  import {
@@ -43,7 +44,7 @@ export const AppPrivacy = {
43
44
  /**
44
45
  * The privacy of the account
45
46
  */
46
- export type AppPrivacy = ClosedEnum<typeof AppPrivacy>;
47
+ export type AppPrivacy = OpenEnum<typeof AppPrivacy>;
47
48
 
48
49
  /**
49
50
  * The privacy of the account
@@ -56,7 +57,7 @@ export const FriendPrivacy = {
56
57
  /**
57
58
  * The privacy of the account
58
59
  */
59
- export type FriendPrivacy = ClosedEnum<typeof FriendPrivacy>;
60
+ export type FriendPrivacy = OpenEnum<typeof FriendPrivacy>;
60
61
 
61
62
  export const LastQueueStatus = {
62
63
  Undefined: "undefined",
@@ -64,7 +65,7 @@ export const LastQueueStatus = {
64
65
  InProgress: "in_progress",
65
66
  Completed: "completed",
66
67
  } as const;
67
- export type LastQueueStatus = ClosedEnum<typeof LastQueueStatus>;
68
+ export type LastQueueStatus = OpenEnum<typeof LastQueueStatus>;
68
69
 
69
70
  /**
70
71
  * The privacy of the account
@@ -77,7 +78,7 @@ export const Privacy = {
77
78
  /**
78
79
  * The privacy of the account
79
80
  */
80
- export type Privacy = ClosedEnum<typeof Privacy>;
81
+ export type Privacy = OpenEnum<typeof Privacy>;
81
82
 
82
83
  export type V1AccountGetInfoResponseBody = {
83
84
  /**
@@ -282,22 +283,29 @@ export type V1AccountGetInfoResponseBody = {
282
283
  };
283
284
 
284
285
  /** @internal */
285
- export const AppPrivacy$inboundSchema: z.ZodNativeEnum<typeof AppPrivacy> = z
286
- .nativeEnum(AppPrivacy);
286
+ export const AppPrivacy$inboundSchema: z.ZodType<
287
+ AppPrivacy,
288
+ z.ZodTypeDef,
289
+ unknown
290
+ > = openEnums.inboundSchema(AppPrivacy);
287
291
 
288
292
  /** @internal */
289
- export const FriendPrivacy$inboundSchema: z.ZodNativeEnum<
290
- typeof FriendPrivacy
291
- > = z.nativeEnum(FriendPrivacy);
293
+ export const FriendPrivacy$inboundSchema: z.ZodType<
294
+ FriendPrivacy,
295
+ z.ZodTypeDef,
296
+ unknown
297
+ > = openEnums.inboundSchema(FriendPrivacy);
292
298
 
293
299
  /** @internal */
294
- export const LastQueueStatus$inboundSchema: z.ZodNativeEnum<
295
- typeof LastQueueStatus
296
- > = z.nativeEnum(LastQueueStatus);
300
+ export const LastQueueStatus$inboundSchema: z.ZodType<
301
+ LastQueueStatus,
302
+ z.ZodTypeDef,
303
+ unknown
304
+ > = openEnums.inboundSchema(LastQueueStatus);
297
305
 
298
306
  /** @internal */
299
- export const Privacy$inboundSchema: z.ZodNativeEnum<typeof Privacy> = z
300
- .nativeEnum(Privacy);
307
+ export const Privacy$inboundSchema: z.ZodType<Privacy, z.ZodTypeDef, unknown> =
308
+ openEnums.inboundSchema(Privacy);
301
309
 
302
310
  /** @internal */
303
311
  export const V1AccountGetInfoResponseBody$inboundSchema: z.ZodType<
@@ -5,7 +5,8 @@
5
5
  import * as z from "zod/v3";
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";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
9
10
  import { Result as SafeParseResult } from "../../types/fp.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
  import { ChosenRole, ChosenRole$inboundSchema } from "./chosenrole.js";
@@ -33,7 +34,7 @@ export const V1AccountGetSettingsBodyPrivacy = {
33
34
  /**
34
35
  * The privacy of the account
35
36
  */
36
- export type V1AccountGetSettingsBodyPrivacy = ClosedEnum<
37
+ export type V1AccountGetSettingsBodyPrivacy = OpenEnum<
37
38
  typeof V1AccountGetSettingsBodyPrivacy
38
39
  >;
39
40
 
@@ -48,6 +49,14 @@ export type V1AccountGetSettingsBody = {
48
49
  * The connections the account has
49
50
  */
50
51
  connections: Array<Connection> | null;
52
+ /**
53
+ * The code of the override country
54
+ */
55
+ countryOverrideCode?: string | null | undefined;
56
+ /**
57
+ * The name of the override country
58
+ */
59
+ countryOverrideName?: string | null | undefined;
51
60
  /**
52
61
  * The developer apps the account has
53
62
  */
@@ -94,9 +103,11 @@ export type V1AccountGetSettingsBody = {
94
103
  };
95
104
 
96
105
  /** @internal */
97
- export const V1AccountGetSettingsBodyPrivacy$inboundSchema: z.ZodNativeEnum<
98
- typeof V1AccountGetSettingsBodyPrivacy
99
- > = z.nativeEnum(V1AccountGetSettingsBodyPrivacy);
106
+ export const V1AccountGetSettingsBodyPrivacy$inboundSchema: z.ZodType<
107
+ V1AccountGetSettingsBodyPrivacy,
108
+ z.ZodTypeDef,
109
+ unknown
110
+ > = openEnums.inboundSchema(V1AccountGetSettingsBodyPrivacy);
100
111
 
101
112
  /** @internal */
102
113
  export const V1AccountGetSettingsBody$inboundSchema: z.ZodType<
@@ -108,6 +119,8 @@ export const V1AccountGetSettingsBody$inboundSchema: z.ZodType<
108
119
  analytics: DeveloperAppAnalytics$inboundSchema.optional(),
109
120
  chosenRole: z.nullable(ChosenRole$inboundSchema),
110
121
  connections: z.nullable(z.array(Connection$inboundSchema)),
122
+ countryOverrideCode: z.nullable(z.string()).optional(),
123
+ countryOverrideName: z.nullable(z.string()).optional(),
111
124
  developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
112
125
  email: z.string(),
113
126
  emailVerifiedAt: z.nullable(
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -40,7 +41,7 @@ export const V1AccountLeaderboardAccountPrivacy = {
40
41
  /**
41
42
  * The privacy of the account
42
43
  */
43
- export type V1AccountLeaderboardAccountPrivacy = ClosedEnum<
44
+ export type V1AccountLeaderboardAccountPrivacy = OpenEnum<
44
45
  typeof V1AccountLeaderboardAccountPrivacy
45
46
  >;
46
47
 
@@ -183,9 +184,11 @@ export type V1AccountLeaderboardAccount = {
183
184
  };
184
185
 
185
186
  /** @internal */
186
- export const V1AccountLeaderboardAccountPrivacy$inboundSchema: z.ZodNativeEnum<
187
- typeof V1AccountLeaderboardAccountPrivacy
188
- > = z.nativeEnum(V1AccountLeaderboardAccountPrivacy);
187
+ export const V1AccountLeaderboardAccountPrivacy$inboundSchema: z.ZodType<
188
+ V1AccountLeaderboardAccountPrivacy,
189
+ z.ZodTypeDef,
190
+ unknown
191
+ > = openEnums.inboundSchema(V1AccountLeaderboardAccountPrivacy);
189
192
 
190
193
  /** @internal */
191
194
  export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
@@ -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
+ }
@@ -5,6 +5,10 @@
5
5
  import * as z from "zod/v3";
6
6
 
7
7
  export type V1AccountUpdateSettingsRequestBody = {
8
+ /**
9
+ * The country name to override the Steam country with, null to clear
10
+ */
11
+ countryOverride?: string | null | undefined;
8
12
  /**
9
13
  * The email the account should use, only if the account is private
10
14
  */
@@ -25,6 +29,7 @@ export type V1AccountUpdateSettingsRequestBody = {
25
29
 
26
30
  /** @internal */
27
31
  export type V1AccountUpdateSettingsRequestBody$Outbound = {
32
+ countryOverride?: string | null | undefined;
28
33
  email?: string | null | undefined;
29
34
  hidden: boolean;
30
35
  language: string;
@@ -37,6 +42,7 @@ export const V1AccountUpdateSettingsRequestBody$outboundSchema: z.ZodType<
37
42
  z.ZodTypeDef,
38
43
  V1AccountUpdateSettingsRequestBody
39
44
  > = z.object({
45
+ countryOverride: z.nullable(z.string()).optional(),
40
46
  email: z.nullable(z.string()).optional(),
41
47
  hidden: z.boolean(),
42
48
  language: z.string(),
@@ -5,7 +5,8 @@
5
5
  import * as z from "zod/v3";
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";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
9
10
  import { Result as SafeParseResult } from "../../types/fp.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
  import { Connection, Connection$inboundSchema } from "./connection.js";
@@ -37,7 +38,7 @@ export const V1AdminGetAccountResponseBodyPrivacy = {
37
38
  /**
38
39
  * The privacy of the account
39
40
  */
40
- export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<
41
+ export type V1AdminGetAccountResponseBodyPrivacy = OpenEnum<
41
42
  typeof V1AdminGetAccountResponseBodyPrivacy
42
43
  >;
43
44
 
@@ -117,10 +118,11 @@ export type V1AdminGetAccountResponseBody = {
117
118
  };
118
119
 
119
120
  /** @internal */
120
- export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema:
121
- z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> = z.nativeEnum(
122
- V1AdminGetAccountResponseBodyPrivacy,
123
- );
121
+ export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema: z.ZodType<
122
+ V1AdminGetAccountResponseBodyPrivacy,
123
+ z.ZodTypeDef,
124
+ unknown
125
+ > = openEnums.inboundSchema(V1AdminGetAccountResponseBodyPrivacy);
124
126
 
125
127
  /** @internal */
126
128
  export const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -24,7 +25,7 @@ export const V1GroupLeaderboardGroupPrivacy = {
24
25
  /**
25
26
  * The privacy of the group
26
27
  */
27
- export type V1GroupLeaderboardGroupPrivacy = ClosedEnum<
28
+ export type V1GroupLeaderboardGroupPrivacy = OpenEnum<
28
29
  typeof V1GroupLeaderboardGroupPrivacy
29
30
  >;
30
31
 
@@ -69,9 +70,11 @@ export type V1GroupLeaderboardGroup = {
69
70
  };
70
71
 
71
72
  /** @internal */
72
- export const V1GroupLeaderboardGroupPrivacy$inboundSchema: z.ZodNativeEnum<
73
- typeof V1GroupLeaderboardGroupPrivacy
74
- > = z.nativeEnum(V1GroupLeaderboardGroupPrivacy);
73
+ export const V1GroupLeaderboardGroupPrivacy$inboundSchema: z.ZodType<
74
+ V1GroupLeaderboardGroupPrivacy,
75
+ z.ZodTypeDef,
76
+ unknown
77
+ > = openEnums.inboundSchema(V1GroupLeaderboardGroupPrivacy);
75
78
 
76
79
  /** @internal */
77
80
  export const V1GroupLeaderboardGroup$inboundSchema: z.ZodType<
@@ -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
+ }
@@ -23,6 +23,7 @@ export * from "./accountlistimages.js";
23
23
  export * from "./accountlistinventorysets.js";
24
24
  export * from "./accountlistleaderboardhistory.js";
25
25
  export * from "./accountlistownedbadges.js";
26
+ export * from "./accountlistownedgroups.js";
26
27
  export * from "./accountlogin.js";
27
28
  export * from "./accountlogout.js";
28
29
  export * from "./accountqueueupdate.js";
@@ -15,7 +15,6 @@ export type LocationGetLocationsResponse = {
15
15
  * OK
16
16
  */
17
17
  regions?: Array<components.Region> | null | undefined;
18
- headers: { [k: string]: Array<string> };
19
18
  };
20
19
 
21
20
  /** @internal */
@@ -26,12 +25,10 @@ export const LocationGetLocationsResponse$inboundSchema: z.ZodType<
26
25
  > = z.object({
27
26
  HttpMeta: components.HTTPMetadata$inboundSchema,
28
27
  Regions: z.nullable(z.array(components.Region$inboundSchema)).optional(),
29
- Headers: z.record(z.array(z.string())).default({}),
30
28
  }).transform((v) => {
31
29
  return remap$(v, {
32
30
  "HttpMeta": "httpMeta",
33
31
  "Regions": "regions",
34
- "Headers": "headers",
35
32
  });
36
33
  });
37
34
 
@@ -18,7 +18,6 @@ export type StaffListStaffResponse = {
18
18
  | Array<components.LeaderboardAccount | null>
19
19
  | null
20
20
  | undefined;
21
- headers: { [k: string]: Array<string> };
22
21
  };
23
22
 
24
23
  /** @internal */
@@ -31,12 +30,10 @@ export const StaffListStaffResponse$inboundSchema: z.ZodType<
31
30
  LeaderboardAccounts: z.nullable(
32
31
  z.array(z.nullable(components.LeaderboardAccount$inboundSchema)),
33
32
  ).optional(),
34
- Headers: z.record(z.array(z.string())).default({}),
35
33
  }).transform((v) => {
36
34
  return remap$(v, {
37
35
  "HttpMeta": "httpMeta",
38
36
  "LeaderboardAccounts": "leaderboardAccounts",
39
- "Headers": "headers",
40
37
  });
41
38
  });
42
39
 
@@ -15,7 +15,6 @@ export type StatsGetStatsResponse = {
15
15
  * OK
16
16
  */
17
17
  v1Stats?: components.V1Stats | undefined;
18
- headers: { [k: string]: Array<string> };
19
18
  };
20
19
 
21
20
  /** @internal */
@@ -26,12 +25,10 @@ export const StatsGetStatsResponse$inboundSchema: z.ZodType<
26
25
  > = z.object({
27
26
  HttpMeta: components.HTTPMetadata$inboundSchema,
28
27
  V1Stats: components.V1Stats$inboundSchema.optional(),
29
- Headers: z.record(z.array(z.string())).default({}),
30
28
  }).transform((v) => {
31
29
  return remap$(v, {
32
30
  "HttpMeta": "httpMeta",
33
31
  "V1Stats": "v1Stats",
34
- "Headers": "headers",
35
32
  });
36
33
  });
37
34
 
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { accountAccountListOwnedGroups } from "../funcs/accountAccountListOwnedGroups.js";
5
6
  import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
6
7
  import { accountCreateConnection } from "../funcs/accountCreateConnection.js";
7
8
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
@@ -331,6 +332,20 @@ export class Account extends ClientSDK {
331
332
  ));
332
333
  }
333
334
 
335
+ /**
336
+ * List groups owned by account
337
+ */
338
+ async accountListOwnedGroups(
339
+ request: components.AccountSearch,
340
+ options?: RequestOptions,
341
+ ): Promise<operations.AccountListOwnedGroupsResponse> {
342
+ return unwrapAsync(accountAccountListOwnedGroups(
343
+ this,
344
+ request,
345
+ options,
346
+ ));
347
+ }
348
+
334
349
  /**
335
350
  * Login with Steam
336
351
  */
@@ -1,45 +0,0 @@
1
- // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
- // README at: https://github.com/devcontainers/images/tree/main/src/typescript-node
3
- {
4
- "name": "TypeScript",
5
- "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
6
- // Features to add to the dev container. More info: https://containers.dev/features.
7
- // "features": {},
8
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
9
- // "forwardPorts": [],
10
- // Use 'postCreateCommand' to run commands after the container is created.
11
- "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh",
12
- "customizations": {
13
- "vscode": {
14
- "extensions": [
15
- "ms-vscode.vscode-typescript-tslint-plugin",
16
- "esbenp.prettier-vscode",
17
- "github.vscode-pull-request-github"
18
- ],
19
- "settings": {
20
- "files.eol": "\n",
21
- "editor.formatOnSave": true,
22
- "typescript.tsc.autoDetect": "on",
23
- "typescript.updateImportsOnFileMove.enabled": "always",
24
- "typescript.preferences.importModuleSpecifier": "relative",
25
- "[typescript]": {
26
- "editor.codeActionsOnSave": {
27
- "source.organizeImports": true
28
- }
29
- },
30
- "[typescriptreact]": {
31
- "editor.codeActionsOnSave": {
32
- "source.organizeImports": true
33
- }
34
- }
35
- }
36
- },
37
- "codespaces": {
38
- "openFiles": [
39
- ".devcontainer/README.md"
40
- ]
41
- }
42
- }
43
- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
44
- // "remoteUser": "root"
45
- }