@steamsets/client-ts 0.11.28 → 0.11.30
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 +7 -2
- package/docs/sdks/account/README.md +6 -6
- package/docs/sdks/admin/README.md +81 -0
- package/docs/sdks/data/README.md +6 -6
- package/docs/sdks/location/README.md +1 -3
- package/docs/sdks/public/README.md +6 -6
- package/funcs/accountAccountV1GetApps.js +2 -2
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +2 -2
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- package/funcs/accountAccountV1GetDataPoints.js +2 -2
- package/funcs/accountAccountV1GetDataPoints.js.map +1 -1
- package/funcs/accountAccountV1GetFriends.js +2 -2
- package/funcs/accountAccountV1GetFriends.js.map +1 -1
- package/funcs/accountAccountV1GetInfo.js +2 -2
- package/funcs/accountAccountV1GetInfo.js.map +1 -1
- package/funcs/accountAccountV1GetLeaderboardHistory.js +2 -2
- package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -1
- package/funcs/adminAdminV1GetAccount.d.ts +11 -0
- package/funcs/adminAdminV1GetAccount.d.ts.map +1 -0
- package/funcs/adminAdminV1GetAccount.js +95 -0
- package/funcs/adminAdminV1GetAccount.js.map +1 -0
- package/funcs/dataAccountV1GetApps.js +2 -2
- package/funcs/dataAccountV1GetApps.js.map +1 -1
- package/funcs/dataAccountV1GetBadges.js +2 -2
- package/funcs/dataAccountV1GetBadges.js.map +1 -1
- package/funcs/dataAccountV1GetDataPoints.js +2 -2
- package/funcs/dataAccountV1GetDataPoints.js.map +1 -1
- package/funcs/dataAccountV1GetFriends.js +2 -2
- package/funcs/dataAccountV1GetFriends.js.map +1 -1
- package/funcs/dataAccountV1GetInfo.js +2 -2
- package/funcs/dataAccountV1GetInfo.js.map +1 -1
- package/funcs/dataAccountV1GetLeaderboardHistory.js +2 -2
- package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -1
- package/funcs/locationLocation.d.ts +0 -3
- package/funcs/locationLocation.d.ts.map +1 -1
- package/funcs/locationLocation.js +1 -4
- package/funcs/locationLocation.js.map +1 -1
- package/funcs/publicAccountV1GetApps.js +2 -2
- package/funcs/publicAccountV1GetApps.js.map +1 -1
- package/funcs/publicAccountV1GetBadges.js +2 -2
- package/funcs/publicAccountV1GetBadges.js.map +1 -1
- package/funcs/publicAccountV1GetDataPoints.js +2 -2
- package/funcs/publicAccountV1GetDataPoints.js.map +1 -1
- package/funcs/publicAccountV1GetFriends.js +2 -2
- package/funcs/publicAccountV1GetFriends.js.map +1 -1
- package/funcs/publicAccountV1GetInfo.js +2 -2
- package/funcs/publicAccountV1GetInfo.js.map +1 -1
- package/funcs/publicAccountV1GetLeaderboardHistory.js +2 -2
- package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountlocationupdate.d.ts +53 -0
- package/models/components/v1accountlocationupdate.d.ts.map +1 -0
- package/models/components/v1accountlocationupdate.js +60 -0
- package/models/components/v1accountlocationupdate.js.map +1 -0
- package/models/components/v1accountnameupdate.d.ts +33 -0
- package/models/components/v1accountnameupdate.d.ts.map +1 -0
- package/models/components/v1accountnameupdate.js +52 -0
- package/models/components/v1accountnameupdate.js.map +1 -0
- package/models/components/v1admingetaccountresponsebody.d.ts +144 -0
- package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -0
- package/models/components/v1admingetaccountresponsebody.js +118 -0
- package/models/components/v1admingetaccountresponsebody.js.map +1 -0
- package/models/operations/adminv1getaccount.d.ts +31 -0
- package/models/operations/adminv1getaccount.d.ts.map +1 -0
- package/models/operations/adminv1getaccount.js +66 -0
- package/models/operations/adminv1getaccount.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/package.json +1 -1
- package/sdk/admin.d.ts +7 -0
- package/sdk/admin.d.ts.map +1 -0
- package/sdk/admin.js +16 -0
- package/sdk/admin.js.map +1 -0
- package/sdk/location.d.ts +0 -3
- package/sdk/location.d.ts.map +1 -1
- package/sdk/location.js +0 -3
- package/sdk/location.js.map +1 -1
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +9 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountAccountV1GetApps.ts +2 -2
- package/src/funcs/accountAccountV1GetBadges.ts +2 -2
- package/src/funcs/accountAccountV1GetDataPoints.ts +2 -2
- package/src/funcs/accountAccountV1GetFriends.ts +2 -2
- package/src/funcs/accountAccountV1GetInfo.ts +2 -2
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +2 -2
- package/src/funcs/adminAdminV1GetAccount.ts +124 -0
- package/src/funcs/dataAccountV1GetApps.ts +2 -2
- package/src/funcs/dataAccountV1GetBadges.ts +2 -2
- package/src/funcs/dataAccountV1GetDataPoints.ts +2 -2
- package/src/funcs/dataAccountV1GetFriends.ts +2 -2
- package/src/funcs/dataAccountV1GetInfo.ts +2 -2
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +2 -2
- package/src/funcs/locationLocation.ts +1 -4
- package/src/funcs/publicAccountV1GetApps.ts +2 -2
- package/src/funcs/publicAccountV1GetBadges.ts +2 -2
- package/src/funcs/publicAccountV1GetDataPoints.ts +2 -2
- package/src/funcs/publicAccountV1GetFriends.ts +2 -2
- package/src/funcs/publicAccountV1GetInfo.ts +2 -2
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +3 -0
- package/src/models/components/v1accountlocationupdate.ts +83 -0
- package/src/models/components/v1accountnameupdate.ts +55 -0
- package/src/models/components/v1admingetaccountresponsebody.ts +238 -0
- package/src/models/operations/adminv1getaccount.ts +70 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/admin.ts +22 -0
- package/src/sdk/location.ts +0 -3
- package/src/sdk/sdk.ts +11 -5
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.11.
|
|
58
|
+
sdkVersion: "0.11.30",
|
|
59
59
|
genVersion: "2.438.15",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.11.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.30 2.438.15 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -48,9 +48,12 @@ export * from "./v1accountleaderboardbadgesearch.js";
|
|
|
48
48
|
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
49
49
|
export * from "./v1accountleaderboardrequestbody.js";
|
|
50
50
|
export * from "./v1accountleaderboardresponsebody.js";
|
|
51
|
+
export * from "./v1accountlocationupdate.js";
|
|
52
|
+
export * from "./v1accountnameupdate.js";
|
|
51
53
|
export * from "./v1accountplaytimedatapoint.js";
|
|
52
54
|
export * from "./v1accountqueuerequestbody.js";
|
|
53
55
|
export * from "./v1accountsappsresponsebody.js";
|
|
56
|
+
export * from "./v1admingetaccountresponsebody.js";
|
|
54
57
|
export * from "./v1appbadge.js";
|
|
55
58
|
export * from "./v1appdetail.js";
|
|
56
59
|
export * from "./v1appitem.js";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1AccountLocationUpdate = {
|
|
8
|
+
/**
|
|
9
|
+
* The city name of the location
|
|
10
|
+
*/
|
|
11
|
+
city: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* The country code of the location
|
|
14
|
+
*/
|
|
15
|
+
countryCode: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* The country name of the location
|
|
18
|
+
*/
|
|
19
|
+
countryName: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The region name of the location
|
|
22
|
+
*/
|
|
23
|
+
region: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The state name of the location
|
|
26
|
+
*/
|
|
27
|
+
state: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The time the location was updated
|
|
30
|
+
*/
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1AccountLocationUpdate$inboundSchema: z.ZodType<
|
|
36
|
+
V1AccountLocationUpdate,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
city: z.nullable(z.string()),
|
|
41
|
+
countryCode: z.nullable(z.string()),
|
|
42
|
+
countryName: z.nullable(z.string()),
|
|
43
|
+
region: z.nullable(z.string()),
|
|
44
|
+
state: z.nullable(z.string()),
|
|
45
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type V1AccountLocationUpdate$Outbound = {
|
|
50
|
+
city: string | null;
|
|
51
|
+
countryCode: string | null;
|
|
52
|
+
countryName: string | null;
|
|
53
|
+
region: string | null;
|
|
54
|
+
state: string | null;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const V1AccountLocationUpdate$outboundSchema: z.ZodType<
|
|
60
|
+
V1AccountLocationUpdate$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
V1AccountLocationUpdate
|
|
63
|
+
> = z.object({
|
|
64
|
+
city: z.nullable(z.string()),
|
|
65
|
+
countryCode: z.nullable(z.string()),
|
|
66
|
+
countryName: z.nullable(z.string()),
|
|
67
|
+
region: z.nullable(z.string()),
|
|
68
|
+
state: z.nullable(z.string()),
|
|
69
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace V1AccountLocationUpdate$ {
|
|
77
|
+
/** @deprecated use `V1AccountLocationUpdate$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = V1AccountLocationUpdate$inboundSchema;
|
|
79
|
+
/** @deprecated use `V1AccountLocationUpdate$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = V1AccountLocationUpdate$outboundSchema;
|
|
81
|
+
/** @deprecated use `V1AccountLocationUpdate$Outbound` instead. */
|
|
82
|
+
export type Outbound = V1AccountLocationUpdate$Outbound;
|
|
83
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type V1AccountNameUpdate = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the account
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The time the name was updated
|
|
14
|
+
*/
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const V1AccountNameUpdate$inboundSchema: z.ZodType<
|
|
20
|
+
V1AccountNameUpdate,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
name: z.string(),
|
|
25
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type V1AccountNameUpdate$Outbound = {
|
|
30
|
+
name: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1AccountNameUpdate$outboundSchema: z.ZodType<
|
|
36
|
+
V1AccountNameUpdate$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
V1AccountNameUpdate
|
|
39
|
+
> = z.object({
|
|
40
|
+
name: z.string(),
|
|
41
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace V1AccountNameUpdate$ {
|
|
49
|
+
/** @deprecated use `V1AccountNameUpdate$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = V1AccountNameUpdate$inboundSchema;
|
|
51
|
+
/** @deprecated use `V1AccountNameUpdate$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = V1AccountNameUpdate$outboundSchema;
|
|
53
|
+
/** @deprecated use `V1AccountNameUpdate$Outbound` instead. */
|
|
54
|
+
export type Outbound = V1AccountNameUpdate$Outbound;
|
|
55
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
Connection,
|
|
10
|
+
Connection$inboundSchema,
|
|
11
|
+
Connection$Outbound,
|
|
12
|
+
Connection$outboundSchema,
|
|
13
|
+
} from "./connection.js";
|
|
14
|
+
import {
|
|
15
|
+
Resource,
|
|
16
|
+
Resource$inboundSchema,
|
|
17
|
+
Resource$Outbound,
|
|
18
|
+
Resource$outboundSchema,
|
|
19
|
+
} from "./resource.js";
|
|
20
|
+
import {
|
|
21
|
+
Role,
|
|
22
|
+
Role$inboundSchema,
|
|
23
|
+
Role$Outbound,
|
|
24
|
+
Role$outboundSchema,
|
|
25
|
+
} from "./role.js";
|
|
26
|
+
import {
|
|
27
|
+
Session,
|
|
28
|
+
Session$inboundSchema,
|
|
29
|
+
Session$Outbound,
|
|
30
|
+
Session$outboundSchema,
|
|
31
|
+
} from "./session.js";
|
|
32
|
+
import {
|
|
33
|
+
V1AccountLocationUpdate,
|
|
34
|
+
V1AccountLocationUpdate$inboundSchema,
|
|
35
|
+
V1AccountLocationUpdate$Outbound,
|
|
36
|
+
V1AccountLocationUpdate$outboundSchema,
|
|
37
|
+
} from "./v1accountlocationupdate.js";
|
|
38
|
+
import {
|
|
39
|
+
V1AccountNameUpdate,
|
|
40
|
+
V1AccountNameUpdate$inboundSchema,
|
|
41
|
+
V1AccountNameUpdate$Outbound,
|
|
42
|
+
V1AccountNameUpdate$outboundSchema,
|
|
43
|
+
} from "./v1accountnameupdate.js";
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The privacy of the account
|
|
47
|
+
*/
|
|
48
|
+
export const V1AdminGetAccountResponseBodyPrivacy = {
|
|
49
|
+
Private: "private",
|
|
50
|
+
Public: "public",
|
|
51
|
+
FriendsOnly: "friends_only",
|
|
52
|
+
} as const;
|
|
53
|
+
/**
|
|
54
|
+
* The privacy of the account
|
|
55
|
+
*/
|
|
56
|
+
export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<
|
|
57
|
+
typeof V1AdminGetAccountResponseBodyPrivacy
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
export type V1AdminGetAccountResponseBody = {
|
|
61
|
+
/**
|
|
62
|
+
* A URL to the JSON Schema for this object.
|
|
63
|
+
*/
|
|
64
|
+
dollarSchema?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The avatar of the account
|
|
67
|
+
*/
|
|
68
|
+
avatar: string;
|
|
69
|
+
/**
|
|
70
|
+
* The city of the account
|
|
71
|
+
*/
|
|
72
|
+
city: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* The connections the user has
|
|
75
|
+
*/
|
|
76
|
+
connections: Array<Connection> | null;
|
|
77
|
+
/**
|
|
78
|
+
* The country of the account
|
|
79
|
+
*/
|
|
80
|
+
country: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The email of the account
|
|
83
|
+
*/
|
|
84
|
+
email: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The location updates the user has
|
|
87
|
+
*/
|
|
88
|
+
locationUpdates: Array<V1AccountLocationUpdate> | null;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the account
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The name updates the user has
|
|
95
|
+
*/
|
|
96
|
+
nameUpdates: Array<V1AccountNameUpdate> | null;
|
|
97
|
+
/**
|
|
98
|
+
* The privacy of the account
|
|
99
|
+
*/
|
|
100
|
+
privacy: V1AdminGetAccountResponseBodyPrivacy;
|
|
101
|
+
/**
|
|
102
|
+
* The region of the account
|
|
103
|
+
*/
|
|
104
|
+
region: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* The resources the user has (permissions)
|
|
107
|
+
*/
|
|
108
|
+
resources: Array<Resource> | null;
|
|
109
|
+
/**
|
|
110
|
+
* The roles the user has
|
|
111
|
+
*/
|
|
112
|
+
roles: Array<Role> | null;
|
|
113
|
+
/**
|
|
114
|
+
* The sessions the user has
|
|
115
|
+
*/
|
|
116
|
+
sessions: Array<Session> | null;
|
|
117
|
+
/**
|
|
118
|
+
* The state of the account
|
|
119
|
+
*/
|
|
120
|
+
state: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The vanity of the account
|
|
123
|
+
*/
|
|
124
|
+
vanity: string | null;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema:
|
|
129
|
+
z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> = z.nativeEnum(
|
|
130
|
+
V1AdminGetAccountResponseBodyPrivacy,
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const V1AdminGetAccountResponseBodyPrivacy$outboundSchema:
|
|
135
|
+
z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> =
|
|
136
|
+
V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @internal
|
|
140
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
|
+
*/
|
|
142
|
+
export namespace V1AdminGetAccountResponseBodyPrivacy$ {
|
|
143
|
+
/** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$inboundSchema` instead. */
|
|
144
|
+
export const inboundSchema =
|
|
145
|
+
V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
|
|
146
|
+
/** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema =
|
|
148
|
+
V1AdminGetAccountResponseBodyPrivacy$outboundSchema;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<
|
|
153
|
+
V1AdminGetAccountResponseBody,
|
|
154
|
+
z.ZodTypeDef,
|
|
155
|
+
unknown
|
|
156
|
+
> = z.object({
|
|
157
|
+
$schema: z.string().optional(),
|
|
158
|
+
avatar: z.string(),
|
|
159
|
+
city: z.nullable(z.string()),
|
|
160
|
+
connections: z.nullable(z.array(Connection$inboundSchema)),
|
|
161
|
+
country: z.nullable(z.string()),
|
|
162
|
+
email: z.nullable(z.string()),
|
|
163
|
+
locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$inboundSchema)),
|
|
164
|
+
name: z.string(),
|
|
165
|
+
nameUpdates: z.nullable(z.array(V1AccountNameUpdate$inboundSchema)),
|
|
166
|
+
privacy: V1AdminGetAccountResponseBodyPrivacy$inboundSchema,
|
|
167
|
+
region: z.nullable(z.string()),
|
|
168
|
+
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
169
|
+
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
170
|
+
sessions: z.nullable(z.array(Session$inboundSchema)),
|
|
171
|
+
state: z.nullable(z.string()),
|
|
172
|
+
vanity: z.nullable(z.string()),
|
|
173
|
+
}).transform((v) => {
|
|
174
|
+
return remap$(v, {
|
|
175
|
+
"$schema": "dollarSchema",
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export type V1AdminGetAccountResponseBody$Outbound = {
|
|
181
|
+
$schema?: string | undefined;
|
|
182
|
+
avatar: string;
|
|
183
|
+
city: string | null;
|
|
184
|
+
connections: Array<Connection$Outbound> | null;
|
|
185
|
+
country: string | null;
|
|
186
|
+
email: string | null;
|
|
187
|
+
locationUpdates: Array<V1AccountLocationUpdate$Outbound> | null;
|
|
188
|
+
name: string;
|
|
189
|
+
nameUpdates: Array<V1AccountNameUpdate$Outbound> | null;
|
|
190
|
+
privacy: string;
|
|
191
|
+
region: string | null;
|
|
192
|
+
resources: Array<Resource$Outbound> | null;
|
|
193
|
+
roles: Array<Role$Outbound> | null;
|
|
194
|
+
sessions: Array<Session$Outbound> | null;
|
|
195
|
+
state: string | null;
|
|
196
|
+
vanity: string | null;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const V1AdminGetAccountResponseBody$outboundSchema: z.ZodType<
|
|
201
|
+
V1AdminGetAccountResponseBody$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
V1AdminGetAccountResponseBody
|
|
204
|
+
> = z.object({
|
|
205
|
+
dollarSchema: z.string().optional(),
|
|
206
|
+
avatar: z.string(),
|
|
207
|
+
city: z.nullable(z.string()),
|
|
208
|
+
connections: z.nullable(z.array(Connection$outboundSchema)),
|
|
209
|
+
country: z.nullable(z.string()),
|
|
210
|
+
email: z.nullable(z.string()),
|
|
211
|
+
locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$outboundSchema)),
|
|
212
|
+
name: z.string(),
|
|
213
|
+
nameUpdates: z.nullable(z.array(V1AccountNameUpdate$outboundSchema)),
|
|
214
|
+
privacy: V1AdminGetAccountResponseBodyPrivacy$outboundSchema,
|
|
215
|
+
region: z.nullable(z.string()),
|
|
216
|
+
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
217
|
+
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
218
|
+
sessions: z.nullable(z.array(Session$outboundSchema)),
|
|
219
|
+
state: z.nullable(z.string()),
|
|
220
|
+
vanity: z.nullable(z.string()),
|
|
221
|
+
}).transform((v) => {
|
|
222
|
+
return remap$(v, {
|
|
223
|
+
dollarSchema: "$schema",
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
230
|
+
*/
|
|
231
|
+
export namespace V1AdminGetAccountResponseBody$ {
|
|
232
|
+
/** @deprecated use `V1AdminGetAccountResponseBody$inboundSchema` instead. */
|
|
233
|
+
export const inboundSchema = V1AdminGetAccountResponseBody$inboundSchema;
|
|
234
|
+
/** @deprecated use `V1AdminGetAccountResponseBody$outboundSchema` instead. */
|
|
235
|
+
export const outboundSchema = V1AdminGetAccountResponseBody$outboundSchema;
|
|
236
|
+
/** @deprecated use `V1AdminGetAccountResponseBody$Outbound` instead. */
|
|
237
|
+
export type Outbound = V1AdminGetAccountResponseBody$Outbound;
|
|
238
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type AdminV1GetAccountResponse = {
|
|
10
|
+
httpMeta: components.HTTPMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* OK
|
|
13
|
+
*/
|
|
14
|
+
v1AdminGetAccountResponseBody?:
|
|
15
|
+
| components.V1AdminGetAccountResponseBody
|
|
16
|
+
| undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const AdminV1GetAccountResponse$inboundSchema: z.ZodType<
|
|
21
|
+
AdminV1GetAccountResponse,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
26
|
+
V1AdminGetAccountResponseBody: components
|
|
27
|
+
.V1AdminGetAccountResponseBody$inboundSchema.optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"HttpMeta": "httpMeta",
|
|
31
|
+
"V1AdminGetAccountResponseBody": "v1AdminGetAccountResponseBody",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type AdminV1GetAccountResponse$Outbound = {
|
|
37
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
38
|
+
V1AdminGetAccountResponseBody?:
|
|
39
|
+
| components.V1AdminGetAccountResponseBody$Outbound
|
|
40
|
+
| undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const AdminV1GetAccountResponse$outboundSchema: z.ZodType<
|
|
45
|
+
AdminV1GetAccountResponse$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
AdminV1GetAccountResponse
|
|
48
|
+
> = z.object({
|
|
49
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
50
|
+
v1AdminGetAccountResponseBody: components
|
|
51
|
+
.V1AdminGetAccountResponseBody$outboundSchema.optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
httpMeta: "HttpMeta",
|
|
55
|
+
v1AdminGetAccountResponseBody: "V1AdminGetAccountResponseBody",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace AdminV1GetAccountResponse$ {
|
|
64
|
+
/** @deprecated use `AdminV1GetAccountResponse$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = AdminV1GetAccountResponse$inboundSchema;
|
|
66
|
+
/** @deprecated use `AdminV1GetAccountResponse$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = AdminV1GetAccountResponse$outboundSchema;
|
|
68
|
+
/** @deprecated use `AdminV1GetAccountResponse$Outbound` instead. */
|
|
69
|
+
export type Outbound = AdminV1GetAccountResponse$Outbound;
|
|
70
|
+
}
|
|
@@ -28,6 +28,7 @@ export * from "./accountv1settingsupdate.js";
|
|
|
28
28
|
export * from "./accountv1settingsupdateimage.js";
|
|
29
29
|
export * from "./accountv1settingsuploadimages.js";
|
|
30
30
|
export * from "./accountv1settingsverfyemail.js";
|
|
31
|
+
export * from "./adminv1getaccount.js";
|
|
31
32
|
export * from "./appv1get.js";
|
|
32
33
|
export * from "./appv1queue.js";
|
|
33
34
|
export * from "./badgev1tag.js";
|
package/src/sdk/admin.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { adminAdminV1GetAccount } from "../funcs/adminAdminV1GetAccount.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as components from "../models/components/index.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Admin extends ClientSDK {
|
|
12
|
+
async adminV1GetAccount(
|
|
13
|
+
request: components.AccountSearch,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<operations.AdminV1GetAccountResponse> {
|
|
16
|
+
return unwrapAsync(adminAdminV1GetAccount(
|
|
17
|
+
this,
|
|
18
|
+
request,
|
|
19
|
+
options,
|
|
20
|
+
));
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/sdk/location.ts
CHANGED
|
@@ -8,9 +8,6 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
10
|
export class Location extends ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Get all of our available locations
|
|
13
|
-
*/
|
|
14
11
|
async location(
|
|
15
12
|
options?: RequestOptions,
|
|
16
13
|
): Promise<operations.LocationResponse> {
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { Account } from "./account.js";
|
|
7
|
+
import { Admin } from "./admin.js";
|
|
7
8
|
import { App } from "./app.js";
|
|
8
9
|
import { Badge } from "./badge.js";
|
|
9
10
|
import { Connection } from "./connection.js";
|
|
@@ -53,6 +54,11 @@ export class SteamSets extends ClientSDK {
|
|
|
53
54
|
return (this._public ??= new Public(this._options));
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
private _admin?: Admin;
|
|
58
|
+
get admin(): Admin {
|
|
59
|
+
return (this._admin ??= new Admin(this._options));
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
private _app?: App;
|
|
57
63
|
get app(): App {
|
|
58
64
|
return (this._app ??= new App(this._options));
|
|
@@ -73,13 +79,13 @@ export class SteamSets extends ClientSDK {
|
|
|
73
79
|
return (this._group ??= new Group(this._options));
|
|
74
80
|
}
|
|
75
81
|
|
|
76
|
-
private _liveness?: Liveness;
|
|
77
|
-
get liveness(): Liveness {
|
|
78
|
-
return (this._liveness ??= new Liveness(this._options));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
82
|
private _location?: Location;
|
|
82
83
|
get location(): Location {
|
|
83
84
|
return (this._location ??= new Location(this._options));
|
|
84
85
|
}
|
|
86
|
+
|
|
87
|
+
private _liveness?: Liveness;
|
|
88
|
+
get liveness(): Liveness {
|
|
89
|
+
return (this._liveness ??= new Liveness(this._options));
|
|
90
|
+
}
|
|
85
91
|
}
|