@steamsets/client-ts 0.14.7 → 0.14.8
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/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/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/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 +8 -8
- package/models/components/colortag.d.ts.map +1 -1
- package/models/components/colortag.js +8 -29
- 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 +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- 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/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/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/src/funcs/badgeGetTags.ts +2 -5
- package/src/lib/config.ts +2 -2
- package/src/models/components/badge.ts +4 -4
- package/src/models/components/colortag.ts +16 -37
- package/src/models/components/connection.ts +7 -7
- package/src/models/components/designtag.ts +6 -17
- package/src/models/components/index.ts +0 -1
- 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/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/sdk/badge.ts +0 -2
- 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/src/models/components/v1badgetagsrequestbody.ts +0 -58
package/sdk/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAC5B,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQ/C,0BAA0B,CAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAOnD,OAAO,CACX,OAAO,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAC5B,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQ/C,0BAA0B,CAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAOnD,OAAO,CACX,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAOpC,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAO7C"}
|
package/sdk/badge.js
CHANGED
|
@@ -17,8 +17,8 @@ class Badge extends sdks_js_1.ClientSDK {
|
|
|
17
17
|
async accountV1GetBadgeBookmarks(options) {
|
|
18
18
|
return (0, fp_js_1.unwrapAsync)((0, badgeAccountV1GetBadgeBookmarks_js_1.badgeAccountV1GetBadgeBookmarks)(this, options));
|
|
19
19
|
}
|
|
20
|
-
async getTags(
|
|
21
|
-
return (0, fp_js_1.unwrapAsync)((0, badgeGetTags_js_1.badgeGetTags)(this,
|
|
20
|
+
async getTags(options) {
|
|
21
|
+
return (0, fp_js_1.unwrapAsync)((0, badgeGetTags_js_1.badgeGetTags)(this, options));
|
|
22
22
|
}
|
|
23
23
|
async badgeV1Search(request, options) {
|
|
24
24
|
return (0, fp_js_1.unwrapAsync)((0, badgeBadgeV1Search_js_1.badgeBadgeV1Search)(this, request, options));
|
package/sdk/badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4FAAsF;AACtF,oGAA8F;AAC9F,0EAAoE;AACpE,8DAAwD;AACxD,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC,KAAK,CAAC,sBAAsB,CAC1B,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4FAAsF;AACtF,oGAA8F;AAC9F,0EAAoE;AACpE,8DAAwD;AACxD,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC,KAAK,CAAC,sBAAsB,CAC1B,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxCD,sBAwCC"}
|
|
@@ -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/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.8",
|
|
59
59
|
genVersion: "2.484.0",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.14.
|
|
61
|
+
"speakeasy-sdk/typescript 0.14.8 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,7 +3,6 @@
|
|
|
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";
|
|
@@ -14,7 +13,7 @@ export type ColorTag = {
|
|
|
14
13
|
groupOwner: boolean;
|
|
15
14
|
hex: string | null;
|
|
16
15
|
hsl: string;
|
|
17
|
-
id:
|
|
16
|
+
id: string;
|
|
18
17
|
name: string;
|
|
19
18
|
};
|
|
20
19
|
|
|
@@ -24,34 +23,24 @@ export const ColorTag$inboundSchema: z.ZodType<
|
|
|
24
23
|
z.ZodTypeDef,
|
|
25
24
|
unknown
|
|
26
25
|
> = z.object({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
});
|
|
26
|
+
gradient: z.nullable(z.string()),
|
|
27
|
+
group: z.string(),
|
|
28
|
+
groupOwner: z.boolean(),
|
|
29
|
+
hex: z.nullable(z.string()),
|
|
30
|
+
hsl: z.string(),
|
|
31
|
+
id: z.string(),
|
|
32
|
+
name: z.string(),
|
|
44
33
|
});
|
|
45
34
|
|
|
46
35
|
/** @internal */
|
|
47
36
|
export type ColorTag$Outbound = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
gradient: string | null;
|
|
38
|
+
group: string;
|
|
39
|
+
groupOwner: boolean;
|
|
40
|
+
hex: string | null;
|
|
41
|
+
hsl: string;
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
55
44
|
};
|
|
56
45
|
|
|
57
46
|
/** @internal */
|
|
@@ -65,18 +54,8 @@ export const ColorTag$outboundSchema: z.ZodType<
|
|
|
65
54
|
groupOwner: z.boolean(),
|
|
66
55
|
hex: z.nullable(z.string()),
|
|
67
56
|
hsl: z.string(),
|
|
68
|
-
id: z.
|
|
57
|
+
id: z.string(),
|
|
69
58
|
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
59
|
});
|
|
81
60
|
|
|
82
61
|
/**
|
|
@@ -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
|
/**
|
|
@@ -73,7 +73,6 @@ export * from "./v1badgesearchresponsebody.js";
|
|
|
73
73
|
export * from "./v1badgesrequestbody.js";
|
|
74
74
|
export * from "./v1badgesresponsebody.js";
|
|
75
75
|
export * from "./v1badgetagrequestbody.js";
|
|
76
|
-
export * from "./v1badgetagsrequestbody.js";
|
|
77
76
|
export * from "./v1badgetagsresponsebody.js";
|
|
78
77
|
export * from "./v1connectrequestbody.js";
|
|
79
78
|
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
|
|
|
@@ -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
|
|
|
@@ -18,6 +18,7 @@ export type V1AppBadge = {
|
|
|
18
18
|
appId: number;
|
|
19
19
|
appImage: string;
|
|
20
20
|
appName: string;
|
|
21
|
+
badgeId: string;
|
|
21
22
|
badgeImage: string;
|
|
22
23
|
/**
|
|
23
24
|
* The level this badge starts at
|
|
@@ -35,7 +36,6 @@ export type V1AppBadge = {
|
|
|
35
36
|
lastCompletion: Date | null;
|
|
36
37
|
name: string;
|
|
37
38
|
price: number;
|
|
38
|
-
publicId: string;
|
|
39
39
|
scarcity: number;
|
|
40
40
|
steamId: number;
|
|
41
41
|
};
|
|
@@ -50,6 +50,7 @@ export const V1AppBadge$inboundSchema: z.ZodType<
|
|
|
50
50
|
appId: z.number().int(),
|
|
51
51
|
appImage: z.string(),
|
|
52
52
|
appName: z.string(),
|
|
53
|
+
badgeId: z.string(),
|
|
53
54
|
badgeImage: z.string(),
|
|
54
55
|
baseLevel: z.number().int(),
|
|
55
56
|
baseXp: z.number().int(),
|
|
@@ -65,7 +66,6 @@ export const V1AppBadge$inboundSchema: z.ZodType<
|
|
|
65
66
|
),
|
|
66
67
|
name: z.string(),
|
|
67
68
|
price: z.number().int(),
|
|
68
|
-
publicId: z.string(),
|
|
69
69
|
scarcity: z.number().int(),
|
|
70
70
|
steamId: z.number().int(),
|
|
71
71
|
});
|
|
@@ -76,6 +76,7 @@ export type V1AppBadge$Outbound = {
|
|
|
76
76
|
appId: number;
|
|
77
77
|
appImage: string;
|
|
78
78
|
appName: string;
|
|
79
|
+
badgeId: string;
|
|
79
80
|
badgeImage: string;
|
|
80
81
|
baseLevel: number;
|
|
81
82
|
baseXp: number;
|
|
@@ -87,7 +88,6 @@ export type V1AppBadge$Outbound = {
|
|
|
87
88
|
lastCompletion: string | null;
|
|
88
89
|
name: string;
|
|
89
90
|
price: number;
|
|
90
|
-
publicId: string;
|
|
91
91
|
scarcity: number;
|
|
92
92
|
steamId: number;
|
|
93
93
|
};
|
|
@@ -102,6 +102,7 @@ export const V1AppBadge$outboundSchema: z.ZodType<
|
|
|
102
102
|
appId: z.number().int(),
|
|
103
103
|
appImage: z.string(),
|
|
104
104
|
appName: z.string(),
|
|
105
|
+
badgeId: z.string(),
|
|
105
106
|
badgeImage: z.string(),
|
|
106
107
|
baseLevel: z.number().int(),
|
|
107
108
|
baseXp: z.number().int(),
|
|
@@ -113,7 +114,6 @@ export const V1AppBadge$outboundSchema: z.ZodType<
|
|
|
113
114
|
lastCompletion: z.nullable(z.date().transform(v => v.toISOString())),
|
|
114
115
|
name: z.string(),
|
|
115
116
|
price: z.number().int(),
|
|
116
|
-
publicId: z.string(),
|
|
117
117
|
scarcity: z.number().int(),
|
|
118
118
|
steamId: z.number().int(),
|
|
119
119
|
});
|
|
@@ -21,7 +21,7 @@ export type V1BadgeTagRequestBody = {
|
|
|
21
21
|
/**
|
|
22
22
|
* All the colors of the badge
|
|
23
23
|
*/
|
|
24
|
-
colors: Array<
|
|
24
|
+
colors: Array<string> | null;
|
|
25
25
|
/**
|
|
26
26
|
* All the designs of the badge
|
|
27
27
|
*/
|
|
@@ -35,14 +35,14 @@ export const V1BadgeTagRequestBody$inboundSchema: z.ZodType<
|
|
|
35
35
|
unknown
|
|
36
36
|
> = z.object({
|
|
37
37
|
badgeId: z.string(),
|
|
38
|
-
colors: z.nullable(z.array(z.
|
|
38
|
+
colors: z.nullable(z.array(z.string())),
|
|
39
39
|
designs: z.nullable(z.array(SetDesignTag$inboundSchema)),
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
43
|
export type V1BadgeTagRequestBody$Outbound = {
|
|
44
44
|
badgeId: string;
|
|
45
|
-
colors: Array<
|
|
45
|
+
colors: Array<string> | null;
|
|
46
46
|
designs: Array<SetDesignTag$Outbound> | null;
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -53,7 +53,7 @@ export const V1BadgeTagRequestBody$outboundSchema: z.ZodType<
|
|
|
53
53
|
V1BadgeTagRequestBody
|
|
54
54
|
> = z.object({
|
|
55
55
|
badgeId: z.string(),
|
|
56
|
-
colors: z.nullable(z.array(z.
|
|
56
|
+
colors: z.nullable(z.array(z.string())),
|
|
57
57
|
designs: z.nullable(z.array(SetDesignTag$outboundSchema)),
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -20,7 +20,7 @@ export type V1ConnectResponseBody = {
|
|
|
20
20
|
/**
|
|
21
21
|
* Public ID of the connection only for domain connections
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
connectionId?: string | null | undefined;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
@@ -31,7 +31,7 @@ export const V1ConnectResponseBody$inboundSchema: z.ZodType<
|
|
|
31
31
|
> = z.object({
|
|
32
32
|
$schema: z.string().optional(),
|
|
33
33
|
code: z.string(),
|
|
34
|
-
|
|
34
|
+
connectionId: z.nullable(z.string()).optional(),
|
|
35
35
|
}).transform((v) => {
|
|
36
36
|
return remap$(v, {
|
|
37
37
|
"$schema": "dollarSchema",
|
|
@@ -42,7 +42,7 @@ export const V1ConnectResponseBody$inboundSchema: z.ZodType<
|
|
|
42
42
|
export type V1ConnectResponseBody$Outbound = {
|
|
43
43
|
$schema?: string | undefined;
|
|
44
44
|
code: string;
|
|
45
|
-
|
|
45
|
+
connectionId?: string | null | undefined;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
@@ -53,7 +53,7 @@ export const V1ConnectResponseBody$outboundSchema: z.ZodType<
|
|
|
53
53
|
> = z.object({
|
|
54
54
|
dollarSchema: z.string().optional(),
|
|
55
55
|
code: z.string(),
|
|
56
|
-
|
|
56
|
+
connectionId: z.nullable(z.string()).optional(),
|
|
57
57
|
}).transform((v) => {
|
|
58
58
|
return remap$(v, {
|
|
59
59
|
dollarSchema: "$schema",
|