@steamsets/client-ts 0.14.7 → 0.14.9
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 +0 -7
- package/docs/sdks/badge/README.md +3 -4
- package/docs/sdks/badges/README.md +10 -10
- package/docs/sdks/developer/README.md +4 -4
- package/funcs/accountGetInfo.js +1 -1
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/badgeGetTags.d.ts +1 -2
- package/funcs/badgeGetTags.d.ts.map +1 -1
- package/funcs/badgeGetTags.js +3 -4
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/dataGetInfo.js +1 -1
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/publicGetInfo.js +1 -1
- package/funcs/publicGetInfo.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/badge.d.ts +2 -2
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +2 -2
- package/models/components/badge.js.map +1 -1
- package/models/components/colortag.d.ts +7 -9
- package/models/components/colortag.d.ts.map +1 -1
- package/models/components/colortag.js +7 -30
- package/models/components/colortag.js.map +1 -1
- package/models/components/connection.d.ts +5 -5
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +2 -2
- package/models/components/connection.js.map +1 -1
- package/models/components/designtag.d.ts +3 -3
- package/models/components/designtag.d.ts.map +1 -1
- package/models/components/designtag.js +3 -14
- package/models/components/designtag.js.map +1 -1
- package/models/components/index.d.ts +1 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -3
- package/models/components/index.js.map +1 -1
- package/models/components/setdesigntag.d.ts +2 -2
- package/models/components/setdesigntag.js +2 -2
- package/models/components/setdesigntag.js.map +1 -1
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts +2 -2
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts.map +1 -1
- package/models/components/v1accountdeveloperappdeleterequestbody.js +2 -2
- package/models/components/v1accountdeveloperappdeleterequestbody.js.map +1 -1
- package/models/components/v1accountdeveloperappupdaterequestbody.d.ts +5 -5
- package/models/components/v1accountdeveloperappupdaterequestbody.d.ts.map +1 -1
- package/models/components/v1accountdeveloperappupdaterequestbody.js +2 -2
- package/models/components/v1accountdeveloperappupdaterequestbody.js.map +1 -1
- package/models/components/{accountinfobody.d.ts → v1accountinforesponsebody.d.ts} +53 -14
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -0
- package/models/components/{accountinfobody.js → v1accountinforesponsebody.js} +42 -17
- package/models/components/v1accountinforesponsebody.js.map +1 -0
- package/models/components/v1accountleaderboardbadgesearch.d.ts +2 -2
- package/models/components/v1accountleaderboardbadgesearch.d.ts.map +1 -1
- package/models/components/v1accountleaderboardbadgesearch.js +2 -2
- package/models/components/v1accountleaderboardbadgesearch.js.map +1 -1
- package/models/components/v1appbadge.d.ts +2 -2
- package/models/components/v1appbadge.d.ts.map +1 -1
- package/models/components/v1appbadge.js +2 -2
- package/models/components/v1appbadge.js.map +1 -1
- package/models/components/v1badgetagrequestbody.d.ts +2 -2
- package/models/components/v1badgetagrequestbody.js +2 -2
- package/models/components/v1badgetagrequestbody.js.map +1 -1
- package/models/components/v1connectresponsebody.d.ts +2 -2
- package/models/components/v1connectresponsebody.d.ts.map +1 -1
- package/models/components/v1connectresponsebody.js +2 -2
- package/models/components/v1connectresponsebody.js.map +1 -1
- package/models/components/v1event.d.ts +5 -5
- package/models/components/v1event.d.ts.map +1 -1
- package/models/components/v1event.js +2 -2
- package/models/components/v1event.js.map +1 -1
- package/models/components/v1leaderboardbadge.d.ts +5 -5
- package/models/components/v1leaderboardbadge.d.ts.map +1 -1
- package/models/components/v1leaderboardbadge.js +2 -2
- package/models/components/v1leaderboardbadge.js.map +1 -1
- package/models/operations/accountv1getinfo.d.ts +2 -2
- package/models/operations/accountv1getinfo.d.ts.map +1 -1
- package/models/operations/accountv1getinfo.js +6 -4
- package/models/operations/accountv1getinfo.js.map +1 -1
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +1 -1
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +2 -2
- package/sdk/badge.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountGetInfo.ts +1 -1
- package/src/funcs/badgeGetTags.ts +2 -5
- package/src/funcs/dataGetInfo.ts +1 -1
- package/src/funcs/publicGetInfo.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/badge.ts +4 -4
- package/src/models/components/colortag.ts +14 -39
- package/src/models/components/connection.ts +7 -7
- package/src/models/components/designtag.ts +6 -17
- package/src/models/components/index.ts +1 -3
- package/src/models/components/setdesigntag.ts +4 -4
- package/src/models/components/v1accountdeveloperappdeleterequestbody.ts +4 -4
- package/src/models/components/v1accountdeveloperappupdaterequestbody.ts +7 -7
- package/src/models/components/{accountinfobody.ts → v1accountinforesponsebody.ts} +58 -21
- package/src/models/components/v1accountleaderboardbadgesearch.ts +4 -4
- package/src/models/components/v1appbadge.ts +4 -4
- package/src/models/components/v1badgetagrequestbody.ts +4 -4
- package/src/models/components/v1connectresponsebody.ts +4 -4
- package/src/models/components/v1event.ts +7 -7
- package/src/models/components/v1leaderboardbadge.ts +7 -7
- package/src/models/operations/accountv1getinfo.ts +10 -6
- package/src/models/operations/index.ts +0 -2
- package/src/sdk/badge.ts +0 -2
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/meta/README.md +0 -153
- package/funcs/metaAccountV1GetEmbed.d.ts +0 -11
- package/funcs/metaAccountV1GetEmbed.d.ts.map +0 -1
- package/funcs/metaAccountV1GetEmbed.js +0 -111
- package/funcs/metaAccountV1GetEmbed.js.map +0 -1
- package/funcs/metaAccountV1GetMeta.d.ts +0 -11
- package/funcs/metaAccountV1GetMeta.d.ts.map +0 -1
- package/funcs/metaAccountV1GetMeta.js +0 -110
- package/funcs/metaAccountV1GetMeta.js.map +0 -1
- package/models/components/accountinfobody.d.ts.map +0 -1
- package/models/components/accountinfobody.js.map +0 -1
- package/models/components/v1accountmetaresponsebody.d.ts +0 -32
- package/models/components/v1accountmetaresponsebody.d.ts.map +0 -1
- package/models/components/v1accountmetaresponsebody.js +0 -68
- package/models/components/v1accountmetaresponsebody.js.map +0 -1
- package/models/components/v1badgetagsrequestbody.d.ts +0 -25
- package/models/components/v1badgetagsrequestbody.d.ts.map +0 -1
- package/models/components/v1badgetagsrequestbody.js +0 -55
- package/models/components/v1badgetagsrequestbody.js.map +0 -1
- package/models/operations/accountv1getembed.d.ts +0 -41
- package/models/operations/accountv1getembed.d.ts.map +0 -1
- package/models/operations/accountv1getembed.js +0 -75
- package/models/operations/accountv1getembed.js.map +0 -1
- package/models/operations/accountv1getmeta.d.ts +0 -35
- package/models/operations/accountv1getmeta.d.ts.map +0 -1
- package/models/operations/accountv1getmeta.js +0 -75
- package/models/operations/accountv1getmeta.js.map +0 -1
- package/sdk/meta.d.ts +0 -8
- package/sdk/meta.d.ts.map +0 -1
- package/sdk/meta.js +0 -20
- package/sdk/meta.js.map +0 -1
- package/src/funcs/metaAccountV1GetEmbed.ts +0 -143
- package/src/funcs/metaAccountV1GetMeta.ts +0 -142
- package/src/models/components/v1accountmetaresponsebody.ts +0 -78
- package/src/models/components/v1badgetagsrequestbody.ts +0 -58
- package/src/models/operations/accountv1getembed.ts +0 -89
- package/src/models/operations/accountv1getmeta.ts +0 -89
- package/src/sdk/meta.ts +0 -34
|
@@ -127,7 +127,7 @@ export async function accountGetInfo(
|
|
|
127
127
|
| ConnectionError
|
|
128
128
|
>(
|
|
129
129
|
M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
|
|
130
|
-
key: "
|
|
130
|
+
key: "V1AccountInfoResponseBody",
|
|
131
131
|
}),
|
|
132
132
|
M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
133
133
|
ctype: "application/problem+json",
|
|
@@ -7,7 +7,6 @@ import * as M from "../lib/matchers.js";
|
|
|
7
7
|
import { RequestOptions } from "../lib/sdks.js";
|
|
8
8
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import * as components from "../models/components/index.js";
|
|
11
10
|
import {
|
|
12
11
|
ConnectionError,
|
|
13
12
|
InvalidRequestError,
|
|
@@ -23,7 +22,6 @@ import { Result } from "../types/fp.js";
|
|
|
23
22
|
|
|
24
23
|
export async function badgeGetTags(
|
|
25
24
|
client: SteamSetsCore,
|
|
26
|
-
_request: components.V1BadgeTagsRequestBody,
|
|
27
25
|
options?: RequestOptions,
|
|
28
26
|
): Promise<
|
|
29
27
|
Result<
|
|
@@ -41,7 +39,6 @@ export async function badgeGetTags(
|
|
|
41
39
|
const path = pathToFunc("/badge.v1.BadgeService/GetTags")();
|
|
42
40
|
|
|
43
41
|
const headers = new Headers({
|
|
44
|
-
"Content-Type": "application/json",
|
|
45
42
|
Accept: "application/json",
|
|
46
43
|
});
|
|
47
44
|
|
|
@@ -88,7 +85,7 @@ export async function badgeGetTags(
|
|
|
88
85
|
|
|
89
86
|
const doResult = await client._do(req, {
|
|
90
87
|
context,
|
|
91
|
-
errorCodes: ["403", "404", "
|
|
88
|
+
errorCodes: ["403", "404", "4XX", "500", "5XX"],
|
|
92
89
|
retryConfig: context.retryConfig,
|
|
93
90
|
retryCodes: context.retryCodes,
|
|
94
91
|
});
|
|
@@ -115,7 +112,7 @@ export async function badgeGetTags(
|
|
|
115
112
|
M.json(200, operations.BadgeV1TagsResponse$inboundSchema, {
|
|
116
113
|
key: "V1BadgeTagsResponseBody",
|
|
117
114
|
}),
|
|
118
|
-
M.jsonErr([403, 404,
|
|
115
|
+
M.jsonErr([403, 404, 500], errors.ErrorModel$inboundSchema, {
|
|
119
116
|
ctype: "application/problem+json",
|
|
120
117
|
}),
|
|
121
118
|
M.fail(["4XX", "5XX"]),
|
package/src/funcs/dataGetInfo.ts
CHANGED
|
@@ -127,7 +127,7 @@ export async function dataGetInfo(
|
|
|
127
127
|
| ConnectionError
|
|
128
128
|
>(
|
|
129
129
|
M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
|
|
130
|
-
key: "
|
|
130
|
+
key: "V1AccountInfoResponseBody",
|
|
131
131
|
}),
|
|
132
132
|
M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
133
133
|
ctype: "application/problem+json",
|
|
@@ -127,7 +127,7 @@ export async function publicGetInfo(
|
|
|
127
127
|
| ConnectionError
|
|
128
128
|
>(
|
|
129
129
|
M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
|
|
130
|
-
key: "
|
|
130
|
+
key: "V1AccountInfoResponseBody",
|
|
131
131
|
}),
|
|
132
132
|
M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
133
133
|
ctype: "application/problem+json",
|
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.14.
|
|
58
|
+
sdkVersion: "0.14.9",
|
|
59
59
|
genVersion: "2.484.0",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.14.
|
|
61
|
+
"speakeasy-sdk/typescript 0.14.9 2.484.0 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -11,12 +11,12 @@ export type Badge = {
|
|
|
11
11
|
appId: number;
|
|
12
12
|
appImage: string;
|
|
13
13
|
appName: string;
|
|
14
|
+
badgeId: string;
|
|
14
15
|
bookmarks: number;
|
|
15
16
|
colors: Array<string> | null;
|
|
16
17
|
designs: Array<string> | null;
|
|
17
18
|
firstCompletion: number;
|
|
18
19
|
highestLevel: number;
|
|
19
|
-
id: string;
|
|
20
20
|
image: string;
|
|
21
21
|
isEvent: boolean;
|
|
22
22
|
isFoil: boolean;
|
|
@@ -36,12 +36,12 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
|
|
|
36
36
|
appId: z.number().int(),
|
|
37
37
|
appImage: z.string(),
|
|
38
38
|
appName: z.string(),
|
|
39
|
+
badgeId: z.string(),
|
|
39
40
|
bookmarks: z.number().int(),
|
|
40
41
|
colors: z.nullable(z.array(z.string())),
|
|
41
42
|
designs: z.nullable(z.array(z.string())),
|
|
42
43
|
firstCompletion: z.number().int(),
|
|
43
44
|
highestLevel: z.number().int(),
|
|
44
|
-
id: z.string(),
|
|
45
45
|
image: z.string(),
|
|
46
46
|
isEvent: z.boolean(),
|
|
47
47
|
isFoil: z.boolean(),
|
|
@@ -60,12 +60,12 @@ export type Badge$Outbound = {
|
|
|
60
60
|
appId: number;
|
|
61
61
|
appImage: string;
|
|
62
62
|
appName: string;
|
|
63
|
+
badgeId: string;
|
|
63
64
|
bookmarks: number;
|
|
64
65
|
colors: Array<string> | null;
|
|
65
66
|
designs: Array<string> | null;
|
|
66
67
|
firstCompletion: number;
|
|
67
68
|
highestLevel: number;
|
|
68
|
-
id: string;
|
|
69
69
|
image: string;
|
|
70
70
|
isEvent: boolean;
|
|
71
71
|
isFoil: boolean;
|
|
@@ -88,12 +88,12 @@ export const Badge$outboundSchema: z.ZodType<
|
|
|
88
88
|
appId: z.number().int(),
|
|
89
89
|
appImage: z.string(),
|
|
90
90
|
appName: z.string(),
|
|
91
|
+
badgeId: z.string(),
|
|
91
92
|
bookmarks: z.number().int(),
|
|
92
93
|
colors: z.nullable(z.array(z.string())),
|
|
93
94
|
designs: z.nullable(z.array(z.string())),
|
|
94
95
|
firstCompletion: z.number().int(),
|
|
95
96
|
highestLevel: z.number().int(),
|
|
96
|
-
id: z.string(),
|
|
97
97
|
image: z.string(),
|
|
98
98
|
isEvent: z.boolean(),
|
|
99
99
|
isFoil: z.boolean(),
|
|
@@ -3,18 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
10
|
export type ColorTag = {
|
|
12
|
-
gradient: string | null;
|
|
13
11
|
group: string;
|
|
14
12
|
groupOwner: boolean;
|
|
15
13
|
hex: string | null;
|
|
16
14
|
hsl: string;
|
|
17
|
-
id:
|
|
15
|
+
id: string;
|
|
18
16
|
name: string;
|
|
19
17
|
};
|
|
20
18
|
|
|
@@ -24,34 +22,22 @@ export const ColorTag$inboundSchema: z.ZodType<
|
|
|
24
22
|
z.ZodTypeDef,
|
|
25
23
|
unknown
|
|
26
24
|
> = z.object({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Name: z.string(),
|
|
34
|
-
}).transform((v) => {
|
|
35
|
-
return remap$(v, {
|
|
36
|
-
"Gradient": "gradient",
|
|
37
|
-
"Group": "group",
|
|
38
|
-
"GroupOwner": "groupOwner",
|
|
39
|
-
"Hex": "hex",
|
|
40
|
-
"Hsl": "hsl",
|
|
41
|
-
"ID": "id",
|
|
42
|
-
"Name": "name",
|
|
43
|
-
});
|
|
25
|
+
group: z.string(),
|
|
26
|
+
groupOwner: z.boolean(),
|
|
27
|
+
hex: z.nullable(z.string()),
|
|
28
|
+
hsl: z.string(),
|
|
29
|
+
id: z.string(),
|
|
30
|
+
name: z.string(),
|
|
44
31
|
});
|
|
45
32
|
|
|
46
33
|
/** @internal */
|
|
47
34
|
export type ColorTag$Outbound = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Name: string;
|
|
35
|
+
group: string;
|
|
36
|
+
groupOwner: boolean;
|
|
37
|
+
hex: string | null;
|
|
38
|
+
hsl: string;
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
55
41
|
};
|
|
56
42
|
|
|
57
43
|
/** @internal */
|
|
@@ -60,23 +46,12 @@ export const ColorTag$outboundSchema: z.ZodType<
|
|
|
60
46
|
z.ZodTypeDef,
|
|
61
47
|
ColorTag
|
|
62
48
|
> = z.object({
|
|
63
|
-
gradient: z.nullable(z.string()),
|
|
64
49
|
group: z.string(),
|
|
65
50
|
groupOwner: z.boolean(),
|
|
66
51
|
hex: z.nullable(z.string()),
|
|
67
52
|
hsl: z.string(),
|
|
68
|
-
id: z.
|
|
53
|
+
id: z.string(),
|
|
69
54
|
name: z.string(),
|
|
70
|
-
}).transform((v) => {
|
|
71
|
-
return remap$(v, {
|
|
72
|
-
gradient: "Gradient",
|
|
73
|
-
group: "Group",
|
|
74
|
-
groupOwner: "GroupOwner",
|
|
75
|
-
hex: "Hex",
|
|
76
|
-
hsl: "Hsl",
|
|
77
|
-
id: "ID",
|
|
78
|
-
name: "Name",
|
|
79
|
-
});
|
|
80
55
|
});
|
|
81
56
|
|
|
82
57
|
/**
|
|
@@ -31,6 +31,10 @@ export type Connection = {
|
|
|
31
31
|
* The avatar of the connected user
|
|
32
32
|
*/
|
|
33
33
|
avatar: string;
|
|
34
|
+
/**
|
|
35
|
+
* The public id of the connection
|
|
36
|
+
*/
|
|
37
|
+
connectionId: string;
|
|
34
38
|
/**
|
|
35
39
|
* The external id of the connected user
|
|
36
40
|
*/
|
|
@@ -47,10 +51,6 @@ export type Connection = {
|
|
|
47
51
|
* The provider to connect with
|
|
48
52
|
*/
|
|
49
53
|
provider: ConnectionProvider;
|
|
50
|
-
/**
|
|
51
|
-
* The public id of the connection
|
|
52
|
-
*/
|
|
53
|
-
publicId: string;
|
|
54
54
|
/**
|
|
55
55
|
* Whether the connection has been verified or not
|
|
56
56
|
*/
|
|
@@ -85,22 +85,22 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
85
85
|
unknown
|
|
86
86
|
> = z.object({
|
|
87
87
|
avatar: z.string(),
|
|
88
|
+
connectionId: z.string(),
|
|
88
89
|
externalId: z.string(),
|
|
89
90
|
hide: z.boolean(),
|
|
90
91
|
name: z.string(),
|
|
91
92
|
provider: ConnectionProvider$inboundSchema,
|
|
92
|
-
publicId: z.string(),
|
|
93
93
|
verified: z.boolean(),
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
/** @internal */
|
|
97
97
|
export type Connection$Outbound = {
|
|
98
98
|
avatar: string;
|
|
99
|
+
connectionId: string;
|
|
99
100
|
externalId: string;
|
|
100
101
|
hide: boolean;
|
|
101
102
|
name: string;
|
|
102
103
|
provider: string;
|
|
103
|
-
publicId: string;
|
|
104
104
|
verified: boolean;
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -111,11 +111,11 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
111
111
|
Connection
|
|
112
112
|
> = z.object({
|
|
113
113
|
avatar: z.string(),
|
|
114
|
+
connectionId: z.string(),
|
|
114
115
|
externalId: z.string(),
|
|
115
116
|
hide: z.boolean(),
|
|
116
117
|
name: z.string(),
|
|
117
118
|
provider: ConnectionProvider$outboundSchema,
|
|
118
|
-
publicId: z.string(),
|
|
119
119
|
verified: z.boolean(),
|
|
120
120
|
});
|
|
121
121
|
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
10
|
export type DesignTag = {
|
|
12
|
-
id:
|
|
11
|
+
id: string;
|
|
13
12
|
name: string;
|
|
14
13
|
};
|
|
15
14
|
|
|
@@ -19,19 +18,14 @@ export const DesignTag$inboundSchema: z.ZodType<
|
|
|
19
18
|
z.ZodTypeDef,
|
|
20
19
|
unknown
|
|
21
20
|
> = z.object({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}).transform((v) => {
|
|
25
|
-
return remap$(v, {
|
|
26
|
-
"ID": "id",
|
|
27
|
-
"Name": "name",
|
|
28
|
-
});
|
|
21
|
+
id: z.string(),
|
|
22
|
+
name: z.string(),
|
|
29
23
|
});
|
|
30
24
|
|
|
31
25
|
/** @internal */
|
|
32
26
|
export type DesignTag$Outbound = {
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
35
29
|
};
|
|
36
30
|
|
|
37
31
|
/** @internal */
|
|
@@ -40,13 +34,8 @@ export const DesignTag$outboundSchema: z.ZodType<
|
|
|
40
34
|
z.ZodTypeDef,
|
|
41
35
|
DesignTag
|
|
42
36
|
> = z.object({
|
|
43
|
-
id: z.
|
|
37
|
+
id: z.string(),
|
|
44
38
|
name: z.string(),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return remap$(v, {
|
|
47
|
-
id: "ID",
|
|
48
|
-
name: "Name",
|
|
49
|
-
});
|
|
50
39
|
});
|
|
51
40
|
|
|
52
41
|
/**
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./accountbadgeinfo.js";
|
|
6
|
-
export * from "./accountinfobody.js";
|
|
7
6
|
export * from "./accountleaderboardhistory.js";
|
|
8
7
|
export * from "./accountsearch.js";
|
|
9
8
|
export * from "./accountsearchidstruct.js";
|
|
@@ -46,6 +45,7 @@ export * from "./v1accountdeveloperappupdaterequestbody.js";
|
|
|
46
45
|
export * from "./v1accountdeveloperappupdateresponsebody.js";
|
|
47
46
|
export * from "./v1accountfriend.js";
|
|
48
47
|
export * from "./v1accountfriendsresponsebody.js";
|
|
48
|
+
export * from "./v1accountinforesponsebody.js";
|
|
49
49
|
export * from "./v1accountleaderboardaccount.js";
|
|
50
50
|
export * from "./v1accountleaderboardappsearch.js";
|
|
51
51
|
export * from "./v1accountleaderboardbadgesearch.js";
|
|
@@ -53,7 +53,6 @@ export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
|
53
53
|
export * from "./v1accountleaderboardrequestbody.js";
|
|
54
54
|
export * from "./v1accountleaderboardresponsebody.js";
|
|
55
55
|
export * from "./v1accountlocationupdate.js";
|
|
56
|
-
export * from "./v1accountmetaresponsebody.js";
|
|
57
56
|
export * from "./v1accountnameupdate.js";
|
|
58
57
|
export * from "./v1accountplaytimedatapoint.js";
|
|
59
58
|
export * from "./v1accountqueuerequestbody.js";
|
|
@@ -73,7 +72,6 @@ export * from "./v1badgesearchresponsebody.js";
|
|
|
73
72
|
export * from "./v1badgesrequestbody.js";
|
|
74
73
|
export * from "./v1badgesresponsebody.js";
|
|
75
74
|
export * from "./v1badgetagrequestbody.js";
|
|
76
|
-
export * from "./v1badgetagsrequestbody.js";
|
|
77
75
|
export * from "./v1badgetagsresponsebody.js";
|
|
78
76
|
export * from "./v1connectrequestbody.js";
|
|
79
77
|
export * from "./v1connectresponsebody.js";
|
|
@@ -11,7 +11,7 @@ export type SetDesignTag = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The id of the design/color
|
|
13
13
|
*/
|
|
14
|
-
id?:
|
|
14
|
+
id?: string | null | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The tag to add to the database
|
|
17
17
|
*/
|
|
@@ -24,13 +24,13 @@ export const SetDesignTag$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
id: z.nullable(z.
|
|
27
|
+
id: z.nullable(z.string()).optional(),
|
|
28
28
|
name: z.nullable(z.string()).optional(),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
32
32
|
export type SetDesignTag$Outbound = {
|
|
33
|
-
id?:
|
|
33
|
+
id?: string | null | undefined;
|
|
34
34
|
name?: string | null | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ export const SetDesignTag$outboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
SetDesignTag
|
|
42
42
|
> = z.object({
|
|
43
|
-
id: z.nullable(z.
|
|
43
|
+
id: z.nullable(z.string()).optional(),
|
|
44
44
|
name: z.nullable(z.string()).optional(),
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -11,7 +11,7 @@ export type V1AccountDeveloperAppDeleteRequestBody = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The public id of the developer app
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
developerAppId: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/** @internal */
|
|
@@ -20,12 +20,12 @@ export const V1AccountDeveloperAppDeleteRequestBody$inboundSchema: z.ZodType<
|
|
|
20
20
|
z.ZodTypeDef,
|
|
21
21
|
unknown
|
|
22
22
|
> = z.object({
|
|
23
|
-
|
|
23
|
+
developerAppId: z.string(),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
27
27
|
export type V1AccountDeveloperAppDeleteRequestBody$Outbound = {
|
|
28
|
-
|
|
28
|
+
developerAppId: string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
@@ -34,7 +34,7 @@ export const V1AccountDeveloperAppDeleteRequestBody$outboundSchema: z.ZodType<
|
|
|
34
34
|
z.ZodTypeDef,
|
|
35
35
|
V1AccountDeveloperAppDeleteRequestBody
|
|
36
36
|
> = z.object({
|
|
37
|
-
|
|
37
|
+
developerAppId: z.string(),
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -12,6 +12,10 @@ export type V1AccountDeveloperAppUpdateRequestBody = {
|
|
|
12
12
|
* The new description of the developer app
|
|
13
13
|
*/
|
|
14
14
|
description: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* The public id of the developer app
|
|
17
|
+
*/
|
|
18
|
+
developerAppId: string;
|
|
15
19
|
/**
|
|
16
20
|
* The new icon of the developer app
|
|
17
21
|
*/
|
|
@@ -20,10 +24,6 @@ export type V1AccountDeveloperAppUpdateRequestBody = {
|
|
|
20
24
|
* The new name of the developer app
|
|
21
25
|
*/
|
|
22
26
|
name: string | null;
|
|
23
|
-
/**
|
|
24
|
-
* The public id of the developer app
|
|
25
|
-
*/
|
|
26
|
-
publicId: string;
|
|
27
27
|
/**
|
|
28
28
|
* Whether to re-generate the key
|
|
29
29
|
*/
|
|
@@ -37,18 +37,18 @@ export const V1AccountDeveloperAppUpdateRequestBody$inboundSchema: z.ZodType<
|
|
|
37
37
|
unknown
|
|
38
38
|
> = z.object({
|
|
39
39
|
description: z.nullable(z.string()),
|
|
40
|
+
developerAppId: z.string(),
|
|
40
41
|
icon: z.nullable(z.string()),
|
|
41
42
|
name: z.nullable(z.string()),
|
|
42
|
-
publicId: z.string(),
|
|
43
43
|
regenerate: z.boolean(),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
47
|
export type V1AccountDeveloperAppUpdateRequestBody$Outbound = {
|
|
48
48
|
description: string | null;
|
|
49
|
+
developerAppId: string;
|
|
49
50
|
icon: string | null;
|
|
50
51
|
name: string | null;
|
|
51
|
-
publicId: string;
|
|
52
52
|
regenerate: boolean;
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -59,9 +59,9 @@ export const V1AccountDeveloperAppUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
59
59
|
V1AccountDeveloperAppUpdateRequestBody
|
|
60
60
|
> = z.object({
|
|
61
61
|
description: z.nullable(z.string()),
|
|
62
|
+
developerAppId: z.string(),
|
|
62
63
|
icon: z.nullable(z.string()),
|
|
63
64
|
name: z.nullable(z.string()),
|
|
64
|
-
publicId: z.string(),
|
|
65
65
|
regenerate: z.boolean(),
|
|
66
66
|
});
|
|
67
67
|
|
|
@@ -83,6 +83,16 @@ export const FriendPrivacy = {
|
|
|
83
83
|
*/
|
|
84
84
|
export type FriendPrivacy = ClosedEnum<typeof FriendPrivacy>;
|
|
85
85
|
|
|
86
|
+
export const LastQueueStatus = {
|
|
87
|
+
Undefined: "undefined",
|
|
88
|
+
Pending: "pending",
|
|
89
|
+
InProgress: "in_progress",
|
|
90
|
+
Retrying: "retrying",
|
|
91
|
+
Failed: "failed",
|
|
92
|
+
Completed: "completed",
|
|
93
|
+
} as const;
|
|
94
|
+
export type LastQueueStatus = ClosedEnum<typeof LastQueueStatus>;
|
|
95
|
+
|
|
86
96
|
/**
|
|
87
97
|
* The privacy of the account
|
|
88
98
|
*/
|
|
@@ -96,7 +106,7 @@ export const Privacy = {
|
|
|
96
106
|
*/
|
|
97
107
|
export type Privacy = ClosedEnum<typeof Privacy>;
|
|
98
108
|
|
|
99
|
-
export type
|
|
109
|
+
export type V1AccountInfoResponseBody = {
|
|
100
110
|
/**
|
|
101
111
|
* A URL to the JSON Schema for this object.
|
|
102
112
|
*/
|
|
@@ -211,6 +221,7 @@ export type AccountInfoBody = {
|
|
|
211
221
|
* The Last date the account got a ban on
|
|
212
222
|
*/
|
|
213
223
|
lastBanDate: Date | null;
|
|
224
|
+
lastQueueStatus: LastQueueStatus;
|
|
214
225
|
/**
|
|
215
226
|
* The level of the account
|
|
216
227
|
*/
|
|
@@ -331,6 +342,27 @@ export namespace FriendPrivacy$ {
|
|
|
331
342
|
export const outboundSchema = FriendPrivacy$outboundSchema;
|
|
332
343
|
}
|
|
333
344
|
|
|
345
|
+
/** @internal */
|
|
346
|
+
export const LastQueueStatus$inboundSchema: z.ZodNativeEnum<
|
|
347
|
+
typeof LastQueueStatus
|
|
348
|
+
> = z.nativeEnum(LastQueueStatus);
|
|
349
|
+
|
|
350
|
+
/** @internal */
|
|
351
|
+
export const LastQueueStatus$outboundSchema: z.ZodNativeEnum<
|
|
352
|
+
typeof LastQueueStatus
|
|
353
|
+
> = LastQueueStatus$inboundSchema;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @internal
|
|
357
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
358
|
+
*/
|
|
359
|
+
export namespace LastQueueStatus$ {
|
|
360
|
+
/** @deprecated use `LastQueueStatus$inboundSchema` instead. */
|
|
361
|
+
export const inboundSchema = LastQueueStatus$inboundSchema;
|
|
362
|
+
/** @deprecated use `LastQueueStatus$outboundSchema` instead. */
|
|
363
|
+
export const outboundSchema = LastQueueStatus$outboundSchema;
|
|
364
|
+
}
|
|
365
|
+
|
|
334
366
|
/** @internal */
|
|
335
367
|
export const Privacy$inboundSchema: z.ZodNativeEnum<typeof Privacy> = z
|
|
336
368
|
.nativeEnum(Privacy);
|
|
@@ -351,8 +383,8 @@ export namespace Privacy$ {
|
|
|
351
383
|
}
|
|
352
384
|
|
|
353
385
|
/** @internal */
|
|
354
|
-
export const
|
|
355
|
-
|
|
386
|
+
export const V1AccountInfoResponseBody$inboundSchema: z.ZodType<
|
|
387
|
+
V1AccountInfoResponseBody,
|
|
356
388
|
z.ZodTypeDef,
|
|
357
389
|
unknown
|
|
358
390
|
> = z.object({
|
|
@@ -390,6 +422,7 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
|
|
|
390
422
|
lastBanDate: z.nullable(
|
|
391
423
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
392
424
|
),
|
|
425
|
+
lastQueueStatus: LastQueueStatus$inboundSchema,
|
|
393
426
|
level: z.number().int(),
|
|
394
427
|
miniBackground: z.string(),
|
|
395
428
|
name: z.string(),
|
|
@@ -420,7 +453,7 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
|
|
|
420
453
|
});
|
|
421
454
|
|
|
422
455
|
/** @internal */
|
|
423
|
-
export type
|
|
456
|
+
export type V1AccountInfoResponseBody$Outbound = {
|
|
424
457
|
$schema?: string | undefined;
|
|
425
458
|
accountId: number;
|
|
426
459
|
animatedAvatar: string;
|
|
@@ -451,6 +484,7 @@ export type AccountInfoBody$Outbound = {
|
|
|
451
484
|
gameBans: number;
|
|
452
485
|
images: Array<Image$Outbound> | null;
|
|
453
486
|
lastBanDate: string | null;
|
|
487
|
+
lastQueueStatus: string;
|
|
454
488
|
level: number;
|
|
455
489
|
miniBackground: string;
|
|
456
490
|
name: string;
|
|
@@ -475,10 +509,10 @@ export type AccountInfoBody$Outbound = {
|
|
|
475
509
|
};
|
|
476
510
|
|
|
477
511
|
/** @internal */
|
|
478
|
-
export const
|
|
479
|
-
|
|
512
|
+
export const V1AccountInfoResponseBody$outboundSchema: z.ZodType<
|
|
513
|
+
V1AccountInfoResponseBody$Outbound,
|
|
480
514
|
z.ZodTypeDef,
|
|
481
|
-
|
|
515
|
+
V1AccountInfoResponseBody
|
|
482
516
|
> = z.object({
|
|
483
517
|
dollarSchema: z.string().optional(),
|
|
484
518
|
accountId: z.number().int(),
|
|
@@ -510,6 +544,7 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
|
510
544
|
gameBans: z.number().int(),
|
|
511
545
|
images: z.nullable(z.array(Image$outboundSchema)),
|
|
512
546
|
lastBanDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
547
|
+
lastQueueStatus: LastQueueStatus$outboundSchema,
|
|
513
548
|
level: z.number().int(),
|
|
514
549
|
miniBackground: z.string(),
|
|
515
550
|
name: z.string(),
|
|
@@ -541,27 +576,29 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
|
541
576
|
* @internal
|
|
542
577
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
578
|
*/
|
|
544
|
-
export namespace
|
|
545
|
-
/** @deprecated use `
|
|
546
|
-
export const inboundSchema =
|
|
547
|
-
/** @deprecated use `
|
|
548
|
-
export const outboundSchema =
|
|
549
|
-
/** @deprecated use `
|
|
550
|
-
export type Outbound =
|
|
579
|
+
export namespace V1AccountInfoResponseBody$ {
|
|
580
|
+
/** @deprecated use `V1AccountInfoResponseBody$inboundSchema` instead. */
|
|
581
|
+
export const inboundSchema = V1AccountInfoResponseBody$inboundSchema;
|
|
582
|
+
/** @deprecated use `V1AccountInfoResponseBody$outboundSchema` instead. */
|
|
583
|
+
export const outboundSchema = V1AccountInfoResponseBody$outboundSchema;
|
|
584
|
+
/** @deprecated use `V1AccountInfoResponseBody$Outbound` instead. */
|
|
585
|
+
export type Outbound = V1AccountInfoResponseBody$Outbound;
|
|
551
586
|
}
|
|
552
587
|
|
|
553
|
-
export function
|
|
554
|
-
|
|
588
|
+
export function v1AccountInfoResponseBodyToJSON(
|
|
589
|
+
v1AccountInfoResponseBody: V1AccountInfoResponseBody,
|
|
555
590
|
): string {
|
|
556
|
-
return JSON.stringify(
|
|
591
|
+
return JSON.stringify(
|
|
592
|
+
V1AccountInfoResponseBody$outboundSchema.parse(v1AccountInfoResponseBody),
|
|
593
|
+
);
|
|
557
594
|
}
|
|
558
595
|
|
|
559
|
-
export function
|
|
596
|
+
export function v1AccountInfoResponseBodyFromJSON(
|
|
560
597
|
jsonString: string,
|
|
561
|
-
): SafeParseResult<
|
|
598
|
+
): SafeParseResult<V1AccountInfoResponseBody, SDKValidationError> {
|
|
562
599
|
return safeParse(
|
|
563
600
|
jsonString,
|
|
564
|
-
(x) =>
|
|
565
|
-
`Failed to parse '
|
|
601
|
+
(x) => V1AccountInfoResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
602
|
+
`Failed to parse 'V1AccountInfoResponseBody' from JSON`,
|
|
566
603
|
);
|
|
567
604
|
}
|
|
@@ -11,7 +11,7 @@ export type V1AccountLeaderboardBadgeSearch = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The badge id to get the leaderboard for
|
|
13
13
|
*/
|
|
14
|
-
id
|
|
14
|
+
id: number;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the badge is foil or not
|
|
17
17
|
*/
|
|
@@ -24,13 +24,13 @@ export const V1AccountLeaderboardBadgeSearch$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
id: z.number().int()
|
|
27
|
+
id: z.number().int(),
|
|
28
28
|
isFoil: z.boolean(),
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
32
32
|
export type V1AccountLeaderboardBadgeSearch$Outbound = {
|
|
33
|
-
id
|
|
33
|
+
id: number;
|
|
34
34
|
isFoil: boolean;
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ export const V1AccountLeaderboardBadgeSearch$outboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
V1AccountLeaderboardBadgeSearch
|
|
42
42
|
> = z.object({
|
|
43
|
-
id: z.number().int()
|
|
43
|
+
id: z.number().int(),
|
|
44
44
|
isFoil: z.boolean(),
|
|
45
45
|
});
|
|
46
46
|
|