@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.
- package/examples/package-lock.json +3 -3
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +0 -2
- package/hooks/hooks.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/accountleaderboardhistory.d.ts +3 -3
- package/models/components/accountleaderboardhistory.d.ts.map +1 -1
- package/models/components/accountleaderboardhistory.js +2 -1
- package/models/components/accountleaderboardhistory.js.map +1 -1
- package/models/components/badge.d.ts +4 -0
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +4 -0
- package/models/components/badge.js.map +1 -1
- package/models/components/bestleaderboardrank.d.ts +3 -3
- package/models/components/bestleaderboardrank.d.ts.map +1 -1
- package/models/components/bestleaderboardrank.js +2 -2
- package/models/components/bestleaderboardrank.js.map +1 -1
- package/models/components/chosenrole.d.ts +3 -3
- package/models/components/chosenrole.d.ts.map +1 -1
- package/models/components/chosenrole.js +2 -1
- package/models/components/chosenrole.js.map +1 -1
- package/models/components/connection.d.ts +3 -3
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +2 -1
- package/models/components/connection.js.map +1 -1
- package/models/components/developerapp.d.ts +3 -3
- package/models/components/developerapp.d.ts.map +1 -1
- package/models/components/developerapp.js +2 -1
- package/models/components/developerapp.js.map +1 -1
- package/models/components/developerappanalyticsoutcome.d.ts +3 -3
- package/models/components/developerappanalyticsoutcome.d.ts.map +1 -1
- package/models/components/developerappanalyticsoutcome.js +2 -2
- package/models/components/developerappanalyticsoutcome.js.map +1 -1
- package/models/components/image.d.ts +3 -3
- package/models/components/image.d.ts.map +1 -1
- package/models/components/image.js +2 -2
- package/models/components/image.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +3 -3
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +2 -1
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/previewaccount.d.ts +3 -3
- package/models/components/previewaccount.d.ts.map +1 -1
- package/models/components/previewaccount.js +2 -1
- package/models/components/previewaccount.js.map +1 -1
- package/models/components/resource.d.ts +4 -4
- package/models/components/resource.d.ts.map +1 -1
- package/models/components/resource.js +3 -2
- package/models/components/resource.js.map +1 -1
- package/models/components/role.d.ts +3 -3
- package/models/components/role.d.ts.map +1 -1
- package/models/components/role.js +2 -2
- package/models/components/role.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +3 -3
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +2 -1
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountgetinforesponsebody.d.ts +9 -9
- package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountgetinforesponsebody.js +5 -6
- package/models/components/v1accountgetinforesponsebody.js.map +1 -1
- package/models/components/v1accountgetsettingsbody.d.ts +15 -3
- package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
- package/models/components/v1accountgetsettingsbody.js +5 -1
- package/models/components/v1accountgetsettingsbody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +3 -3
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +2 -1
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1accountupdatesettingsrequestbody.d.ts +5 -0
- package/models/components/v1accountupdatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1accountupdatesettingsrequestbody.js +1 -0
- package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
- package/models/components/v1admingetaccountresponsebody.d.ts +3 -3
- package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
- package/models/components/v1admingetaccountresponsebody.js +2 -1
- package/models/components/v1admingetaccountresponsebody.js.map +1 -1
- package/models/components/v1groupleaderboardgroup.d.ts +3 -3
- package/models/components/v1groupleaderboardgroup.d.ts.map +1 -1
- package/models/components/v1groupleaderboardgroup.js +2 -1
- package/models/components/v1groupleaderboardgroup.js.map +1 -1
- package/models/operations/locationgetlocations.d.ts +0 -3
- package/models/operations/locationgetlocations.d.ts.map +1 -1
- package/models/operations/locationgetlocations.js +0 -2
- package/models/operations/locationgetlocations.js.map +1 -1
- package/models/operations/staffliststaff.d.ts +0 -3
- package/models/operations/staffliststaff.d.ts.map +1 -1
- package/models/operations/staffliststaff.js +0 -2
- package/models/operations/staffliststaff.js.map +1 -1
- package/models/operations/statsgetstats.d.ts +0 -3
- package/models/operations/statsgetstats.d.ts.map +1 -1
- package/models/operations/statsgetstats.js +0 -2
- package/models/operations/statsgetstats.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/accountleaderboardhistory.ts +8 -6
- package/src/models/components/badge.ts +8 -0
- package/src/models/components/bestleaderboardrank.ts +8 -4
- package/src/models/components/chosenrole.ts +8 -5
- package/src/models/components/connection.ts +8 -5
- package/src/models/components/developerapp.ts +8 -7
- package/src/models/components/developerappanalyticsoutcome.ts +5 -4
- package/src/models/components/image.ts +8 -4
- package/src/models/components/leaderboardaccount.ts +8 -5
- package/src/models/components/previewaccount.ts +8 -5
- package/src/models/components/resource.ts +13 -8
- package/src/models/components/role.ts +8 -4
- package/src/models/components/v1accountfriend.ts +8 -5
- package/src/models/components/v1accountgetinforesponsebody.ts +23 -15
- package/src/models/components/v1accountgetsettingsbody.ts +23 -5
- package/src/models/components/v1accountleaderboardaccount.ts +8 -5
- package/src/models/components/v1accountupdatesettingsrequestbody.ts +6 -0
- package/src/models/components/v1admingetaccountresponsebody.ts +8 -6
- package/src/models/components/v1groupleaderboardgroup.ts +8 -5
- package/src/models/operations/locationgetlocations.ts +0 -3
- package/src/models/operations/staffliststaff.ts +0 -3
- 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
|
|
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 =
|
|
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.
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
42
|
-
.
|
|
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
|
|
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 =
|
|
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.
|
|
47
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
184
|
-
|
|
185
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
39
|
-
|
|
40
|
-
|
|
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.
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
50
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
173
|
-
|
|
174
|
-
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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.
|
|
286
|
-
|
|
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.
|
|
290
|
-
|
|
291
|
-
|
|
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.
|
|
295
|
-
|
|
296
|
-
|
|
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.
|
|
300
|
-
.
|
|
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
|
|
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 =
|
|
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.
|
|
98
|
-
|
|
99
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
187
|
-
|
|
188
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
122
|
-
|
|
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
|
|
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 =
|
|
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.
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|