@steamsets/client-ts 0.11.27 → 0.11.29
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 +5 -0
- 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/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/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/v1accountleaderboardresponsebody.d.ts +2 -2
- package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
- package/models/components/v1accountleaderboardresponsebody.js +2 -2
- package/models/components/v1accountleaderboardresponsebody.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/components/v1groupleaderboardgroup.d.ts +2 -2
- package/models/components/v1groupleaderboardgroup.d.ts.map +1 -1
- package/models/components/v1groupleaderboardgroup.js +2 -2
- package/models/components/v1groupleaderboardgroup.js.map +1 -1
- 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/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- 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/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/v1accountleaderboardresponsebody.ts +4 -4
- 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/components/v1groupleaderboardgroup.ts +4 -4
- 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/sdk.ts +6 -0
|
@@ -83,7 +83,7 @@ export async function publicAccountV1GetInfo(
|
|
|
83
83
|
|
|
84
84
|
const doResult = await client._do(req, {
|
|
85
85
|
context,
|
|
86
|
-
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
86
|
+
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
87
87
|
retryConfig: options?.retries
|
|
88
88
|
|| client._options.retryConfig,
|
|
89
89
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
@@ -111,7 +111,7 @@ export async function publicAccountV1GetInfo(
|
|
|
111
111
|
M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
|
|
112
112
|
key: "AccountInfoBody",
|
|
113
113
|
}),
|
|
114
|
-
M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
114
|
+
M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
115
115
|
ctype: "application/problem+json",
|
|
116
116
|
}),
|
|
117
117
|
M.fail(["4XX", "5XX"]),
|
|
@@ -83,7 +83,7 @@ export async function publicAccountV1GetLeaderboardHistory(
|
|
|
83
83
|
|
|
84
84
|
const doResult = await client._do(req, {
|
|
85
85
|
context,
|
|
86
|
-
errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
|
|
86
|
+
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
87
|
retryConfig: options?.retries
|
|
88
88
|
|| client._options.retryConfig,
|
|
89
89
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
@@ -113,7 +113,7 @@ export async function publicAccountV1GetLeaderboardHistory(
|
|
|
113
113
|
operations.AccountV1GetLeaderboardHistoryResponse$inboundSchema,
|
|
114
114
|
{ key: "V1AccountLeaderboardHistoryResponseBody" },
|
|
115
115
|
),
|
|
116
|
-
M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
116
|
+
M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
117
117
|
ctype: "application/problem+json",
|
|
118
118
|
}),
|
|
119
119
|
M.fail(["4XX", "5XX"]),
|
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.29",
|
|
59
59
|
genVersion: "2.438.15",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.11.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.29 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";
|
|
@@ -38,7 +38,7 @@ export type V1AccountLeaderboardResponseBody = {
|
|
|
38
38
|
app?: V1LeaderboardAppInfo | null | undefined;
|
|
39
39
|
badgeInfo?: V1LeaderboardBadgeInfo | null | undefined;
|
|
40
40
|
location?: Array<V1LeaderboardLocationInfo> | null | undefined;
|
|
41
|
-
ownAccount?: V1AccountLeaderboardAccount | undefined;
|
|
41
|
+
ownAccount?: V1AccountLeaderboardAccount | null | undefined;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
@@ -53,7 +53,7 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
|
|
|
53
53
|
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$inboundSchema).optional(),
|
|
54
54
|
location: z.nullable(z.array(V1LeaderboardLocationInfo$inboundSchema))
|
|
55
55
|
.optional(),
|
|
56
|
-
ownAccount: V1AccountLeaderboardAccount$inboundSchema.optional(),
|
|
56
|
+
ownAccount: z.nullable(V1AccountLeaderboardAccount$inboundSchema).optional(),
|
|
57
57
|
}).transform((v) => {
|
|
58
58
|
return remap$(v, {
|
|
59
59
|
"$schema": "dollarSchema",
|
|
@@ -67,7 +67,7 @@ export type V1AccountLeaderboardResponseBody$Outbound = {
|
|
|
67
67
|
app?: V1LeaderboardAppInfo$Outbound | null | undefined;
|
|
68
68
|
badgeInfo?: V1LeaderboardBadgeInfo$Outbound | null | undefined;
|
|
69
69
|
location?: Array<V1LeaderboardLocationInfo$Outbound> | null | undefined;
|
|
70
|
-
ownAccount?: V1AccountLeaderboardAccount$Outbound | undefined;
|
|
70
|
+
ownAccount?: V1AccountLeaderboardAccount$Outbound | null | undefined;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
/** @internal */
|
|
@@ -82,7 +82,7 @@ export const V1AccountLeaderboardResponseBody$outboundSchema: z.ZodType<
|
|
|
82
82
|
badgeInfo: z.nullable(V1LeaderboardBadgeInfo$outboundSchema).optional(),
|
|
83
83
|
location: z.nullable(z.array(V1LeaderboardLocationInfo$outboundSchema))
|
|
84
84
|
.optional(),
|
|
85
|
-
ownAccount: V1AccountLeaderboardAccount$outboundSchema.optional(),
|
|
85
|
+
ownAccount: z.nullable(V1AccountLeaderboardAccount$outboundSchema).optional(),
|
|
86
86
|
}).transform((v) => {
|
|
87
87
|
return remap$(v, {
|
|
88
88
|
dollarSchema: "$schema",
|
|
@@ -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
|
+
}
|
|
@@ -48,7 +48,7 @@ export type V1GroupLeaderboardGroup = {
|
|
|
48
48
|
* The name of the group
|
|
49
49
|
*/
|
|
50
50
|
name: string;
|
|
51
|
-
owner: LeaderboardAccount;
|
|
51
|
+
owner: LeaderboardAccount | null;
|
|
52
52
|
/**
|
|
53
53
|
* The privacy of the group
|
|
54
54
|
*/
|
|
@@ -99,7 +99,7 @@ export const V1GroupLeaderboardGroup$inboundSchema: z.ZodType<
|
|
|
99
99
|
id: z.number().int(),
|
|
100
100
|
members: z.number().int(),
|
|
101
101
|
name: z.string(),
|
|
102
|
-
owner: LeaderboardAccount$inboundSchema,
|
|
102
|
+
owner: z.nullable(LeaderboardAccount$inboundSchema),
|
|
103
103
|
privacy: V1GroupLeaderboardGroupPrivacy$inboundSchema,
|
|
104
104
|
rank: z.number().int(),
|
|
105
105
|
tag: z.string(),
|
|
@@ -113,7 +113,7 @@ export type V1GroupLeaderboardGroup$Outbound = {
|
|
|
113
113
|
id: number;
|
|
114
114
|
members: number;
|
|
115
115
|
name: string;
|
|
116
|
-
owner: LeaderboardAccount$Outbound;
|
|
116
|
+
owner: LeaderboardAccount$Outbound | null;
|
|
117
117
|
privacy: string;
|
|
118
118
|
rank: number;
|
|
119
119
|
tag: string;
|
|
@@ -131,7 +131,7 @@ export const V1GroupLeaderboardGroup$outboundSchema: z.ZodType<
|
|
|
131
131
|
id: z.number().int(),
|
|
132
132
|
members: z.number().int(),
|
|
133
133
|
name: z.string(),
|
|
134
|
-
owner: LeaderboardAccount$outboundSchema,
|
|
134
|
+
owner: z.nullable(LeaderboardAccount$outboundSchema),
|
|
135
135
|
privacy: V1GroupLeaderboardGroupPrivacy$outboundSchema,
|
|
136
136
|
rank: z.number().int(),
|
|
137
137
|
tag: z.string(),
|
|
@@ -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/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));
|