@steamsets/client-ts 0.31.5 → 0.32.0

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 (123) hide show
  1. package/examples/package-lock.json +3 -3
  2. package/hooks/hooks.d.ts.map +1 -1
  3. package/hooks/hooks.js +0 -2
  4. package/hooks/hooks.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/sdks.js +2 -2
  9. package/lib/sdks.js.map +1 -1
  10. package/models/components/accountleaderboardhistory.d.ts +3 -3
  11. package/models/components/accountleaderboardhistory.d.ts.map +1 -1
  12. package/models/components/accountleaderboardhistory.js +2 -1
  13. package/models/components/accountleaderboardhistory.js.map +1 -1
  14. package/models/components/badge.d.ts +4 -0
  15. package/models/components/badge.d.ts.map +1 -1
  16. package/models/components/badge.js +4 -0
  17. package/models/components/badge.js.map +1 -1
  18. package/models/components/bestleaderboardrank.d.ts +3 -3
  19. package/models/components/bestleaderboardrank.d.ts.map +1 -1
  20. package/models/components/bestleaderboardrank.js +2 -2
  21. package/models/components/bestleaderboardrank.js.map +1 -1
  22. package/models/components/chosenrole.d.ts +3 -3
  23. package/models/components/chosenrole.d.ts.map +1 -1
  24. package/models/components/chosenrole.js +2 -1
  25. package/models/components/chosenrole.js.map +1 -1
  26. package/models/components/connection.d.ts +3 -3
  27. package/models/components/connection.d.ts.map +1 -1
  28. package/models/components/connection.js +2 -1
  29. package/models/components/connection.js.map +1 -1
  30. package/models/components/developerapp.d.ts +3 -3
  31. package/models/components/developerapp.d.ts.map +1 -1
  32. package/models/components/developerapp.js +2 -1
  33. package/models/components/developerapp.js.map +1 -1
  34. package/models/components/developerappanalyticsoutcome.d.ts +3 -3
  35. package/models/components/developerappanalyticsoutcome.d.ts.map +1 -1
  36. package/models/components/developerappanalyticsoutcome.js +2 -2
  37. package/models/components/developerappanalyticsoutcome.js.map +1 -1
  38. package/models/components/image.d.ts +3 -3
  39. package/models/components/image.d.ts.map +1 -1
  40. package/models/components/image.js +2 -2
  41. package/models/components/image.js.map +1 -1
  42. package/models/components/leaderboardaccount.d.ts +3 -3
  43. package/models/components/leaderboardaccount.d.ts.map +1 -1
  44. package/models/components/leaderboardaccount.js +2 -1
  45. package/models/components/leaderboardaccount.js.map +1 -1
  46. package/models/components/previewaccount.d.ts +3 -3
  47. package/models/components/previewaccount.d.ts.map +1 -1
  48. package/models/components/previewaccount.js +2 -1
  49. package/models/components/previewaccount.js.map +1 -1
  50. package/models/components/resource.d.ts +4 -4
  51. package/models/components/resource.d.ts.map +1 -1
  52. package/models/components/resource.js +3 -2
  53. package/models/components/resource.js.map +1 -1
  54. package/models/components/role.d.ts +3 -3
  55. package/models/components/role.d.ts.map +1 -1
  56. package/models/components/role.js +2 -2
  57. package/models/components/role.js.map +1 -1
  58. package/models/components/v1accountfriend.d.ts +3 -3
  59. package/models/components/v1accountfriend.d.ts.map +1 -1
  60. package/models/components/v1accountfriend.js +2 -1
  61. package/models/components/v1accountfriend.js.map +1 -1
  62. package/models/components/v1accountgetinforesponsebody.d.ts +9 -9
  63. package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
  64. package/models/components/v1accountgetinforesponsebody.js +5 -6
  65. package/models/components/v1accountgetinforesponsebody.js.map +1 -1
  66. package/models/components/v1accountgetsettingsbody.d.ts +15 -3
  67. package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
  68. package/models/components/v1accountgetsettingsbody.js +5 -1
  69. package/models/components/v1accountgetsettingsbody.js.map +1 -1
  70. package/models/components/v1accountleaderboardaccount.d.ts +3 -3
  71. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  72. package/models/components/v1accountleaderboardaccount.js +2 -1
  73. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  74. package/models/components/v1accountupdatesettingsrequestbody.d.ts +5 -0
  75. package/models/components/v1accountupdatesettingsrequestbody.d.ts.map +1 -1
  76. package/models/components/v1accountupdatesettingsrequestbody.js +1 -0
  77. package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
  78. package/models/components/v1admingetaccountresponsebody.d.ts +3 -3
  79. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
  80. package/models/components/v1admingetaccountresponsebody.js +2 -1
  81. package/models/components/v1admingetaccountresponsebody.js.map +1 -1
  82. package/models/components/v1groupleaderboardgroup.d.ts +3 -3
  83. package/models/components/v1groupleaderboardgroup.d.ts.map +1 -1
  84. package/models/components/v1groupleaderboardgroup.js +2 -1
  85. package/models/components/v1groupleaderboardgroup.js.map +1 -1
  86. package/models/operations/locationgetlocations.d.ts +0 -3
  87. package/models/operations/locationgetlocations.d.ts.map +1 -1
  88. package/models/operations/locationgetlocations.js +0 -2
  89. package/models/operations/locationgetlocations.js.map +1 -1
  90. package/models/operations/staffliststaff.d.ts +0 -3
  91. package/models/operations/staffliststaff.d.ts.map +1 -1
  92. package/models/operations/staffliststaff.js +0 -2
  93. package/models/operations/staffliststaff.js.map +1 -1
  94. package/models/operations/statsgetstats.d.ts +0 -3
  95. package/models/operations/statsgetstats.d.ts.map +1 -1
  96. package/models/operations/statsgetstats.js +0 -2
  97. package/models/operations/statsgetstats.js.map +1 -1
  98. package/package.json +3 -3
  99. package/src/hooks/hooks.ts +0 -3
  100. package/src/lib/config.ts +3 -3
  101. package/src/lib/sdks.ts +2 -2
  102. package/src/models/components/accountleaderboardhistory.ts +8 -6
  103. package/src/models/components/badge.ts +8 -0
  104. package/src/models/components/bestleaderboardrank.ts +8 -4
  105. package/src/models/components/chosenrole.ts +8 -5
  106. package/src/models/components/connection.ts +8 -5
  107. package/src/models/components/developerapp.ts +8 -7
  108. package/src/models/components/developerappanalyticsoutcome.ts +5 -4
  109. package/src/models/components/image.ts +8 -4
  110. package/src/models/components/leaderboardaccount.ts +8 -5
  111. package/src/models/components/previewaccount.ts +8 -5
  112. package/src/models/components/resource.ts +13 -8
  113. package/src/models/components/role.ts +8 -4
  114. package/src/models/components/v1accountfriend.ts +8 -5
  115. package/src/models/components/v1accountgetinforesponsebody.ts +23 -15
  116. package/src/models/components/v1accountgetsettingsbody.ts +23 -5
  117. package/src/models/components/v1accountleaderboardaccount.ts +8 -5
  118. package/src/models/components/v1accountupdatesettingsrequestbody.ts +6 -0
  119. package/src/models/components/v1admingetaccountresponsebody.ts +8 -6
  120. package/src/models/components/v1groupleaderboardgroup.ts +8 -5
  121. package/src/models/operations/locationgetlocations.ts +0 -3
  122. package/src/models/operations/staffliststaff.ts +0 -3
  123. package/src/models/operations/statsgetstats.ts +0 -3
@@ -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 ChosenRoleRole = {
31
32
  Astral: "astral",
32
33
  Nebula: "nebula",
33
34
  } as const;
34
- export type ChosenRoleRole = ClosedEnum<typeof ChosenRoleRole>;
35
+ export type ChosenRoleRole = OpenEnum<typeof ChosenRoleRole>;
35
36
 
36
37
  export type ChosenRole = {
37
38
  role: ChosenRoleRole;
@@ -42,9 +43,11 @@ export type ChosenRole = {
42
43
  };
43
44
 
44
45
  /** @internal */
45
- export const ChosenRoleRole$inboundSchema: z.ZodNativeEnum<
46
- typeof ChosenRoleRole
47
- > = z.nativeEnum(ChosenRoleRole);
46
+ export const ChosenRoleRole$inboundSchema: z.ZodType<
47
+ ChosenRoleRole,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = openEnums.inboundSchema(ChosenRoleRole);
48
51
 
49
52
  /** @internal */
50
53
  export const ChosenRole$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
 
@@ -24,7 +25,7 @@ export const ConnectionProvider = {
24
25
  /**
25
26
  * The provider to connect with
26
27
  */
27
- export type ConnectionProvider = ClosedEnum<typeof ConnectionProvider>;
28
+ export type ConnectionProvider = OpenEnum<typeof ConnectionProvider>;
28
29
 
29
30
  export type Connection = {
30
31
  /**
@@ -62,9 +63,11 @@ export type Connection = {
62
63
  };
63
64
 
64
65
  /** @internal */
65
- export const ConnectionProvider$inboundSchema: z.ZodNativeEnum<
66
- typeof ConnectionProvider
67
- > = z.nativeEnum(ConnectionProvider);
66
+ export const ConnectionProvider$inboundSchema: z.ZodType<
67
+ ConnectionProvider,
68
+ z.ZodTypeDef,
69
+ unknown
70
+ > = openEnums.inboundSchema(ConnectionProvider);
68
71
 
69
72
  /** @internal */
70
73
  export const Connection$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 {
@@ -23,9 +24,7 @@ export const DeveloperAppEnvironment = {
23
24
  /**
24
25
  * The environment of the developer app
25
26
  */
26
- export type DeveloperAppEnvironment = ClosedEnum<
27
- typeof DeveloperAppEnvironment
28
- >;
27
+ export type DeveloperAppEnvironment = OpenEnum<typeof DeveloperAppEnvironment>;
29
28
 
30
29
  export type DeveloperApp = {
31
30
  analytics?: DeveloperAppAnalytics | undefined;
@@ -62,9 +61,11 @@ export type DeveloperApp = {
62
61
  };
63
62
 
64
63
  /** @internal */
65
- export const DeveloperAppEnvironment$inboundSchema: z.ZodNativeEnum<
66
- typeof DeveloperAppEnvironment
67
- > = z.nativeEnum(DeveloperAppEnvironment);
64
+ export const DeveloperAppEnvironment$inboundSchema: z.ZodType<
65
+ DeveloperAppEnvironment,
66
+ z.ZodTypeDef,
67
+ unknown
68
+ > = openEnums.inboundSchema(DeveloperAppEnvironment);
68
69
 
69
70
  /** @internal */
70
71
  export const DeveloperApp$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
 
@@ -24,7 +25,7 @@ export const Outcome = {
24
25
  /**
25
26
  * The outcome of the verification
26
27
  */
27
- export type Outcome = ClosedEnum<typeof Outcome>;
28
+ export type Outcome = OpenEnum<typeof Outcome>;
28
29
 
29
30
  export type DeveloperAppAnalyticsOutcome = {
30
31
  /**
@@ -38,8 +39,8 @@ export type DeveloperAppAnalyticsOutcome = {
38
39
  };
39
40
 
40
41
  /** @internal */
41
- export const Outcome$inboundSchema: z.ZodNativeEnum<typeof Outcome> = z
42
- .nativeEnum(Outcome);
42
+ export const Outcome$inboundSchema: z.ZodType<Outcome, z.ZodTypeDef, unknown> =
43
+ openEnums.inboundSchema(Outcome);
43
44
 
44
45
  /** @internal */
45
46
  export const DeveloperAppAnalyticsOutcome$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
 
@@ -21,7 +22,7 @@ export const ImageType = {
21
22
  /**
22
23
  * The type of the image
23
24
  */
24
- export type ImageType = ClosedEnum<typeof ImageType>;
25
+ export type ImageType = OpenEnum<typeof ImageType>;
25
26
 
26
27
  export type Image = {
27
28
  /**
@@ -43,8 +44,11 @@ export type Image = {
43
44
  };
44
45
 
45
46
  /** @internal */
46
- export const ImageType$inboundSchema: z.ZodNativeEnum<typeof ImageType> = z
47
- .nativeEnum(ImageType);
47
+ export const ImageType$inboundSchema: z.ZodType<
48
+ ImageType,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = openEnums.inboundSchema(ImageType);
48
52
 
49
53
  /** @internal */
50
54
  export const Image$inboundSchema: z.ZodType<Image, 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 LeaderboardAccountPrivacy = {
36
37
  /**
37
38
  * The privacy of the account
38
39
  */
39
- export type LeaderboardAccountPrivacy = ClosedEnum<
40
+ export type LeaderboardAccountPrivacy = OpenEnum<
40
41
  typeof LeaderboardAccountPrivacy
41
42
  >;
42
43
 
@@ -170,9 +171,11 @@ export type LeaderboardAccount = {
170
171
  };
171
172
 
172
173
  /** @internal */
173
- export const LeaderboardAccountPrivacy$inboundSchema: z.ZodNativeEnum<
174
- typeof LeaderboardAccountPrivacy
175
- > = z.nativeEnum(LeaderboardAccountPrivacy);
174
+ export const LeaderboardAccountPrivacy$inboundSchema: z.ZodType<
175
+ LeaderboardAccountPrivacy,
176
+ z.ZodTypeDef,
177
+ unknown
178
+ > = openEnums.inboundSchema(LeaderboardAccountPrivacy);
176
179
 
177
180
  /** @internal */
178
181
  export const LeaderboardAccount$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 {
@@ -36,7 +37,7 @@ export const PreviewAccountPrivacy = {
36
37
  /**
37
38
  * The privacy of the account
38
39
  */
39
- export type PreviewAccountPrivacy = ClosedEnum<typeof PreviewAccountPrivacy>;
40
+ export type PreviewAccountPrivacy = OpenEnum<typeof PreviewAccountPrivacy>;
40
41
 
41
42
  export type PreviewAccount = {
42
43
  /**
@@ -180,9 +181,11 @@ export type PreviewAccount = {
180
181
  };
181
182
 
182
183
  /** @internal */
183
- export const PreviewAccountPrivacy$inboundSchema: z.ZodNativeEnum<
184
- typeof PreviewAccountPrivacy
185
- > = z.nativeEnum(PreviewAccountPrivacy);
184
+ export const PreviewAccountPrivacy$inboundSchema: z.ZodType<
185
+ PreviewAccountPrivacy,
186
+ z.ZodTypeDef,
187
+ unknown
188
+ > = openEnums.inboundSchema(PreviewAccountPrivacy);
186
189
 
187
190
  /** @internal */
188
191
  export const PreviewAccount$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
 
@@ -24,7 +25,7 @@ export const ResourceResource = {
24
25
  AccountQueues: "account_queues",
25
26
  ShortLinkDomain: "short_link_domain",
26
27
  } as const;
27
- export type ResourceResource = ClosedEnum<typeof ResourceResource>;
28
+ export type ResourceResource = OpenEnum<typeof ResourceResource>;
28
29
 
29
30
  export type Resource = {
30
31
  resource: ResourceResource;
@@ -35,13 +36,17 @@ export type Resource = {
35
36
  };
36
37
 
37
38
  /** @internal */
38
- export const ResourceResource$inboundSchema: z.ZodNativeEnum<
39
- typeof ResourceResource
40
- > = z.nativeEnum(ResourceResource);
39
+ export const ResourceResource$inboundSchema: z.ZodType<
40
+ ResourceResource,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = openEnums.inboundSchema(ResourceResource);
41
44
  /** @internal */
42
- export const ResourceResource$outboundSchema: z.ZodNativeEnum<
43
- typeof ResourceResource
44
- > = ResourceResource$inboundSchema;
45
+ export const ResourceResource$outboundSchema: z.ZodType<
46
+ string,
47
+ z.ZodTypeDef,
48
+ ResourceResource
49
+ > = openEnums.outboundSchema(ResourceResource);
45
50
 
46
51
  /** @internal */
47
52
  export const Resource$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
 
@@ -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,18 @@ export type V1AccountGetSettingsBody = {
48
49
  * The connections the account has
49
50
  */
50
51
  connections: Array<Connection> | null;
52
+ /**
53
+ * The country ID override for the account
54
+ */
55
+ countryOverride?: number | null | undefined;
56
+ /**
57
+ * The code of the override country
58
+ */
59
+ countryOverrideCode?: string | null | undefined;
60
+ /**
61
+ * The name of the override country
62
+ */
63
+ countryOverrideName?: string | null | undefined;
51
64
  /**
52
65
  * The developer apps the account has
53
66
  */
@@ -94,9 +107,11 @@ export type V1AccountGetSettingsBody = {
94
107
  };
95
108
 
96
109
  /** @internal */
97
- export const V1AccountGetSettingsBodyPrivacy$inboundSchema: z.ZodNativeEnum<
98
- typeof V1AccountGetSettingsBodyPrivacy
99
- > = z.nativeEnum(V1AccountGetSettingsBodyPrivacy);
110
+ export const V1AccountGetSettingsBodyPrivacy$inboundSchema: z.ZodType<
111
+ V1AccountGetSettingsBodyPrivacy,
112
+ z.ZodTypeDef,
113
+ unknown
114
+ > = openEnums.inboundSchema(V1AccountGetSettingsBodyPrivacy);
100
115
 
101
116
  /** @internal */
102
117
  export const V1AccountGetSettingsBody$inboundSchema: z.ZodType<
@@ -108,6 +123,9 @@ export const V1AccountGetSettingsBody$inboundSchema: z.ZodType<
108
123
  analytics: DeveloperAppAnalytics$inboundSchema.optional(),
109
124
  chosenRole: z.nullable(ChosenRole$inboundSchema),
110
125
  connections: z.nullable(z.array(Connection$inboundSchema)),
126
+ countryOverride: z.nullable(z.number().int()).optional(),
127
+ countryOverrideCode: z.nullable(z.string()).optional(),
128
+ countryOverrideName: z.nullable(z.string()).optional(),
111
129
  developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
112
130
  email: z.string(),
113
131
  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<
@@ -5,6 +5,10 @@
5
5
  import * as z from "zod/v3";
6
6
 
7
7
  export type V1AccountUpdateSettingsRequestBody = {
8
+ /**
9
+ * The country ID to override the Steam country with, null to clear
10
+ */
11
+ countryOverride?: number | 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?: number | 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.number().int()).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<
@@ -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