@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.
- package/README.md +13 -7
- package/funcs/accountAccountListOwnedGroups.d.ts +16 -0
- package/funcs/accountAccountListOwnedGroups.d.ts.map +1 -0
- package/funcs/accountAccountListOwnedGroups.js +133 -0
- package/funcs/accountAccountListOwnedGroups.js.map +1 -0
- 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/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.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/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.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 +11 -3
- package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
- package/models/components/v1accountgetsettingsbody.js +4 -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/v1accountlistownedgroupsresponsebody.d.ts +15 -0
- package/models/components/v1accountlistownedgroupsresponsebody.d.ts.map +1 -0
- package/models/components/v1accountlistownedgroupsresponsebody.js +57 -0
- package/models/components/v1accountlistownedgroupsresponsebody.js.map +1 -0
- 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/components/v1ownedgroup.d.ts +17 -0
- package/models/components/v1ownedgroup.d.ts.map +1 -0
- package/models/components/v1ownedgroup.js +57 -0
- package/models/components/v1ownedgroup.js.map +1 -0
- package/models/operations/accountlistownedgroups.d.ts +15 -0
- package/models/operations/accountlistownedgroups.d.ts.map +1 -0
- package/models/operations/accountlistownedgroups.js +59 -0
- package/models/operations/accountlistownedgroups.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.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/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- package/src/funcs/accountAccountListOwnedGroups.ts +185 -0
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +2 -2
- package/src/lib/security.ts +1 -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/index.ts +2 -0
- 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 +18 -5
- package/src/models/components/v1accountleaderboardaccount.ts +8 -5
- package/src/models/components/v1accountlistownedgroupsresponsebody.ts +43 -0
- 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/components/v1ownedgroup.ts +45 -0
- package/src/models/operations/accountlistownedgroups.ts +47 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/locationgetlocations.ts +0 -3
- package/src/models/operations/staffliststaff.ts +0 -3
- package/src/models/operations/statsgetstats.ts +0 -3
- package/src/sdk/account.ts +15 -0
- package/.devcontainer/devcontainer.json +0 -45
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/examples/package-lock.json +0 -610
- package/examples/package.json +0 -18
- 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
|
|
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,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.
|
|
98
|
-
|
|
99
|
-
|
|
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
|
|
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<
|
|
@@ -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
|
|
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<
|
|
@@ -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
|
|
package/src/sdk/account.ts
CHANGED
|
@@ -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
|
-
}
|