@steamsets/client-ts 0.11.21 → 0.11.23
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountbadgeinfo.d.ts +38 -0
- package/models/components/accountbadgeinfo.d.ts.map +1 -0
- package/models/components/{leaderboardaccountbadgeinfo.js → accountbadgeinfo.js} +11 -11
- package/models/components/accountbadgeinfo.js.map +1 -0
- package/models/components/index.d.ts +1 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -5
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountdatapointsresponsebody.d.ts +5 -6
- package/models/components/v1accountdatapointsresponsebody.d.ts.map +1 -1
- package/models/components/v1accountdatapointsresponsebody.js +5 -6
- package/models/components/v1accountdatapointsresponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +3 -3
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +3 -3
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1appbadge.d.ts +25 -7
- package/models/components/v1appbadge.d.ts.map +1 -1
- package/models/components/v1appbadge.js +19 -7
- package/models/components/v1appbadge.js.map +1 -1
- package/models/components/v1badgesresponsebody.d.ts +3 -3
- package/models/components/v1badgesresponsebody.d.ts.map +1 -1
- package/models/components/v1badgesresponsebody.js +3 -3
- package/models/components/v1badgesresponsebody.js.map +1 -1
- package/models/components/v1connectresponsebody.d.ts +5 -0
- package/models/components/v1connectresponsebody.d.ts.map +1 -1
- package/models/components/v1connectresponsebody.js +4 -0
- package/models/components/v1connectresponsebody.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/{leaderboardaccountbadgeinfo.ts → accountbadgeinfo.ts} +14 -14
- package/src/models/components/index.ts +1 -5
- package/src/models/components/v1accountdatapointsresponsebody.ts +14 -20
- package/src/models/components/v1accountleaderboardaccount.ts +9 -9
- package/src/models/components/v1appbadge.ts +47 -17
- package/src/models/components/v1badgesresponsebody.ts +9 -9
- package/src/models/components/v1connectresponsebody.ts +9 -0
- package/models/components/leaderboardaccountbadgeinfo.d.ts +0 -38
- package/models/components/leaderboardaccountbadgeinfo.d.ts.map +0 -1
- package/models/components/leaderboardaccountbadgeinfo.js.map +0 -1
- package/models/components/v1accountappbadge.d.ts +0 -55
- package/models/components/v1accountappbadge.d.ts.map +0 -1
- package/models/components/v1accountappbadge.js +0 -80
- package/models/components/v1accountappbadge.js.map +0 -1
- package/models/components/v1accountbadgecompletion.d.ts +0 -29
- package/models/components/v1accountbadgecompletion.d.ts.map +0 -1
- package/models/components/v1accountbadgecompletion.js +0 -54
- package/models/components/v1accountbadgecompletion.js.map +0 -1
- package/models/components/v1accountbadgemostxpdatapoint.d.ts +0 -83
- package/models/components/v1accountbadgemostxpdatapoint.d.ts.map +0 -1
- package/models/components/v1accountbadgemostxpdatapoint.js +0 -72
- package/models/components/v1accountbadgemostxpdatapoint.js.map +0 -1
- package/models/components/v1accountbadgescarcitydatapoint.d.ts +0 -83
- package/models/components/v1accountbadgescarcitydatapoint.d.ts.map +0 -1
- package/models/components/v1accountbadgescarcitydatapoint.js +0 -72
- package/models/components/v1accountbadgescarcitydatapoint.js.map +0 -1
- package/src/models/components/v1accountappbadge.ts +0 -107
- package/src/models/components/v1accountbadgecompletion.ts +0 -55
- package/src/models/components/v1accountbadgemostxpdatapoint.ts +0 -127
- package/src/models/components/v1accountbadgescarcitydatapoint.ts +0 -127
|
@@ -33,18 +33,22 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
33
33
|
exports.V1ConnectResponseBody$inboundSchema = z.object({
|
|
34
34
|
$schema: z.string().optional(),
|
|
35
35
|
code: z.string().optional(),
|
|
36
|
+
public_id: z.string().optional(),
|
|
36
37
|
}).transform((v) => {
|
|
37
38
|
return (0, primitives_js_1.remap)(v, {
|
|
38
39
|
"$schema": "dollarSchema",
|
|
40
|
+
"public_id": "publicId",
|
|
39
41
|
});
|
|
40
42
|
});
|
|
41
43
|
/** @internal */
|
|
42
44
|
exports.V1ConnectResponseBody$outboundSchema = z.object({
|
|
43
45
|
dollarSchema: z.string().optional(),
|
|
44
46
|
code: z.string().optional(),
|
|
47
|
+
publicId: z.string().optional(),
|
|
45
48
|
}).transform((v) => {
|
|
46
49
|
return (0, primitives_js_1.remap)(v, {
|
|
47
50
|
dollarSchema: "$schema",
|
|
51
|
+
publicId: "public_id",
|
|
48
52
|
});
|
|
49
53
|
});
|
|
50
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1connectresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1connectresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;
|
|
1
|
+
{"version":3,"file":"v1connectresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1connectresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAiB1D,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;QACvB,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
package/package.json
CHANGED
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.23",
|
|
59
59
|
genVersion: "2.438.15",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.11.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.23 2.438.15 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type AccountBadgeInfo = {
|
|
8
8
|
/**
|
|
9
9
|
* The time the badge was completed
|
|
10
10
|
*/
|
|
@@ -20,8 +20,8 @@ export type LeaderboardAccountBadgeInfo = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
23
|
-
export const
|
|
24
|
-
|
|
23
|
+
export const AccountBadgeInfo$inboundSchema: z.ZodType<
|
|
24
|
+
AccountBadgeInfo,
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
@@ -33,17 +33,17 @@ export const LeaderboardAccountBadgeInfo$inboundSchema: z.ZodType<
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
|
-
export type
|
|
36
|
+
export type AccountBadgeInfo$Outbound = {
|
|
37
37
|
completionTime: string;
|
|
38
38
|
level: number;
|
|
39
39
|
xp: number;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export const
|
|
44
|
-
|
|
43
|
+
export const AccountBadgeInfo$outboundSchema: z.ZodType<
|
|
44
|
+
AccountBadgeInfo$Outbound,
|
|
45
45
|
z.ZodTypeDef,
|
|
46
|
-
|
|
46
|
+
AccountBadgeInfo
|
|
47
47
|
> = z.object({
|
|
48
48
|
completionTime: z.date().transform(v => v.toISOString()),
|
|
49
49
|
level: z.number().int(),
|
|
@@ -54,11 +54,11 @@ export const LeaderboardAccountBadgeInfo$outboundSchema: z.ZodType<
|
|
|
54
54
|
* @internal
|
|
55
55
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
56
|
*/
|
|
57
|
-
export namespace
|
|
58
|
-
/** @deprecated use `
|
|
59
|
-
export const inboundSchema =
|
|
60
|
-
/** @deprecated use `
|
|
61
|
-
export const outboundSchema =
|
|
62
|
-
/** @deprecated use `
|
|
63
|
-
export type Outbound =
|
|
57
|
+
export namespace AccountBadgeInfo$ {
|
|
58
|
+
/** @deprecated use `AccountBadgeInfo$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = AccountBadgeInfo$inboundSchema;
|
|
60
|
+
/** @deprecated use `AccountBadgeInfo$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = AccountBadgeInfo$outboundSchema;
|
|
62
|
+
/** @deprecated use `AccountBadgeInfo$Outbound` instead. */
|
|
63
|
+
export type Outbound = AccountBadgeInfo$Outbound;
|
|
64
64
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accountbadgeinfo.js";
|
|
5
6
|
export * from "./accountinfobody.js";
|
|
6
7
|
export * from "./accountleaderboardhistory.js";
|
|
7
8
|
export * from "./accountsearch.js";
|
|
@@ -21,7 +22,6 @@ export * from "./httpmetadata.js";
|
|
|
21
22
|
export * from "./idstruct.js";
|
|
22
23
|
export * from "./image.js";
|
|
23
24
|
export * from "./leaderboardaccount.js";
|
|
24
|
-
export * from "./leaderboardaccountbadgeinfo.js";
|
|
25
25
|
export * from "./leaderboardcity.js";
|
|
26
26
|
export * from "./leaderboardcountry.js";
|
|
27
27
|
export * from "./leaderboardregion.js";
|
|
@@ -35,10 +35,6 @@ export * from "./session.js";
|
|
|
35
35
|
export * from "./setdesigntag.js";
|
|
36
36
|
export * from "./state.js";
|
|
37
37
|
export * from "./v1accountapp.js";
|
|
38
|
-
export * from "./v1accountappbadge.js";
|
|
39
|
-
export * from "./v1accountbadgecompletion.js";
|
|
40
|
-
export * from "./v1accountbadgemostxpdatapoint.js";
|
|
41
|
-
export * from "./v1accountbadgescarcitydatapoint.js";
|
|
42
38
|
export * from "./v1accountdatapointsresponsebody.js";
|
|
43
39
|
export * from "./v1accountdeveloperappdeleterequestbody.js";
|
|
44
40
|
export * from "./v1accountdeveloperappdeleteresponsebody.js";
|
|
@@ -4,33 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
V1AccountBadgeMostXpDataPoint,
|
|
9
|
-
V1AccountBadgeMostXpDataPoint$inboundSchema,
|
|
10
|
-
V1AccountBadgeMostXpDataPoint$Outbound,
|
|
11
|
-
V1AccountBadgeMostXpDataPoint$outboundSchema,
|
|
12
|
-
} from "./v1accountbadgemostxpdatapoint.js";
|
|
13
|
-
import {
|
|
14
|
-
V1AccountBadgeScarcityDataPoint,
|
|
15
|
-
V1AccountBadgeScarcityDataPoint$inboundSchema,
|
|
16
|
-
V1AccountBadgeScarcityDataPoint$Outbound,
|
|
17
|
-
V1AccountBadgeScarcityDataPoint$outboundSchema,
|
|
18
|
-
} from "./v1accountbadgescarcitydatapoint.js";
|
|
19
7
|
import {
|
|
20
8
|
V1AccountPlaytimeDataPoint,
|
|
21
9
|
V1AccountPlaytimeDataPoint$inboundSchema,
|
|
22
10
|
V1AccountPlaytimeDataPoint$Outbound,
|
|
23
11
|
V1AccountPlaytimeDataPoint$outboundSchema,
|
|
24
12
|
} from "./v1accountplaytimedatapoint.js";
|
|
13
|
+
import {
|
|
14
|
+
V1AppBadge,
|
|
15
|
+
V1AppBadge$inboundSchema,
|
|
16
|
+
V1AppBadge$Outbound,
|
|
17
|
+
V1AppBadge$outboundSchema,
|
|
18
|
+
} from "./v1appbadge.js";
|
|
25
19
|
|
|
26
20
|
export type V1AccountDataPointsResponseBody = {
|
|
27
21
|
/**
|
|
28
22
|
* A URL to the JSON Schema for this object.
|
|
29
23
|
*/
|
|
30
24
|
dollarSchema?: string | undefined;
|
|
31
|
-
mostXp: Array<
|
|
25
|
+
mostXp: Array<V1AppBadge> | null;
|
|
32
26
|
playtime: Array<V1AccountPlaytimeDataPoint> | null;
|
|
33
|
-
scarcity: Array<
|
|
27
|
+
scarcity: Array<V1AppBadge> | null;
|
|
34
28
|
xp: { [k: string]: { [k: string]: number } };
|
|
35
29
|
};
|
|
36
30
|
|
|
@@ -41,9 +35,9 @@ export const V1AccountDataPointsResponseBody$inboundSchema: z.ZodType<
|
|
|
41
35
|
unknown
|
|
42
36
|
> = z.object({
|
|
43
37
|
$schema: z.string().optional(),
|
|
44
|
-
mostXp: z.nullable(z.array(
|
|
38
|
+
mostXp: z.nullable(z.array(V1AppBadge$inboundSchema)),
|
|
45
39
|
playtime: z.nullable(z.array(V1AccountPlaytimeDataPoint$inboundSchema)),
|
|
46
|
-
scarcity: z.nullable(z.array(
|
|
40
|
+
scarcity: z.nullable(z.array(V1AppBadge$inboundSchema)),
|
|
47
41
|
xp: z.record(z.record(z.number().int())),
|
|
48
42
|
}).transform((v) => {
|
|
49
43
|
return remap$(v, {
|
|
@@ -54,9 +48,9 @@ export const V1AccountDataPointsResponseBody$inboundSchema: z.ZodType<
|
|
|
54
48
|
/** @internal */
|
|
55
49
|
export type V1AccountDataPointsResponseBody$Outbound = {
|
|
56
50
|
$schema?: string | undefined;
|
|
57
|
-
mostXp: Array<
|
|
51
|
+
mostXp: Array<V1AppBadge$Outbound> | null;
|
|
58
52
|
playtime: Array<V1AccountPlaytimeDataPoint$Outbound> | null;
|
|
59
|
-
scarcity: Array<
|
|
53
|
+
scarcity: Array<V1AppBadge$Outbound> | null;
|
|
60
54
|
xp: { [k: string]: { [k: string]: number } };
|
|
61
55
|
};
|
|
62
56
|
|
|
@@ -67,9 +61,9 @@ export const V1AccountDataPointsResponseBody$outboundSchema: z.ZodType<
|
|
|
67
61
|
V1AccountDataPointsResponseBody
|
|
68
62
|
> = z.object({
|
|
69
63
|
dollarSchema: z.string().optional(),
|
|
70
|
-
mostXp: z.nullable(z.array(
|
|
64
|
+
mostXp: z.nullable(z.array(V1AppBadge$outboundSchema)),
|
|
71
65
|
playtime: z.nullable(z.array(V1AccountPlaytimeDataPoint$outboundSchema)),
|
|
72
|
-
scarcity: z.nullable(z.array(
|
|
66
|
+
scarcity: z.nullable(z.array(V1AppBadge$outboundSchema)),
|
|
73
67
|
xp: z.record(z.record(z.number().int())),
|
|
74
68
|
}).transform((v) => {
|
|
75
69
|
return remap$(v, {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
7
|
+
AccountBadgeInfo,
|
|
8
|
+
AccountBadgeInfo$inboundSchema,
|
|
9
|
+
AccountBadgeInfo$Outbound,
|
|
10
|
+
AccountBadgeInfo$outboundSchema,
|
|
11
|
+
} from "./accountbadgeinfo.js";
|
|
12
12
|
import {
|
|
13
13
|
LeaderboardCity,
|
|
14
14
|
LeaderboardCity$inboundSchema,
|
|
@@ -69,7 +69,7 @@ export type V1AccountLeaderboardAccount = {
|
|
|
69
69
|
* The number of awards the account has
|
|
70
70
|
*/
|
|
71
71
|
awardsReceived: number;
|
|
72
|
-
badgeInfo?:
|
|
72
|
+
badgeInfo?: AccountBadgeInfo | null | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The number of badges the account has
|
|
75
75
|
*/
|
|
@@ -193,7 +193,7 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
193
193
|
averagePlaytime: z.number().int(),
|
|
194
194
|
awardsGiven: z.number().int(),
|
|
195
195
|
awardsReceived: z.number().int(),
|
|
196
|
-
badgeInfo: z.nullable(
|
|
196
|
+
badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
|
|
197
197
|
badges: z.number().int(),
|
|
198
198
|
bans: z.number().int(),
|
|
199
199
|
city: z.nullable(LeaderboardCity$inboundSchema).optional(),
|
|
@@ -235,7 +235,7 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
235
235
|
averagePlaytime: number;
|
|
236
236
|
awardsGiven: number;
|
|
237
237
|
awardsReceived: number;
|
|
238
|
-
badgeInfo?:
|
|
238
|
+
badgeInfo?: AccountBadgeInfo$Outbound | null | undefined;
|
|
239
239
|
badges: number;
|
|
240
240
|
bans: number;
|
|
241
241
|
city?: LeaderboardCity$Outbound | null | undefined;
|
|
@@ -281,7 +281,7 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
281
281
|
averagePlaytime: z.number().int(),
|
|
282
282
|
awardsGiven: z.number().int(),
|
|
283
283
|
awardsReceived: z.number().int(),
|
|
284
|
-
badgeInfo: z.nullable(
|
|
284
|
+
badgeInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
|
|
285
285
|
badges: z.number().int(),
|
|
286
286
|
bans: z.number().int(),
|
|
287
287
|
city: z.nullable(LeaderboardCity$outboundSchema).optional(),
|
|
@@ -4,26 +4,38 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
7
|
+
AccountBadgeInfo,
|
|
8
|
+
AccountBadgeInfo$inboundSchema,
|
|
9
|
+
AccountBadgeInfo$Outbound,
|
|
10
|
+
AccountBadgeInfo$outboundSchema,
|
|
11
|
+
} from "./accountbadgeinfo.js";
|
|
12
12
|
|
|
13
13
|
export type V1AppBadge = {
|
|
14
|
-
|
|
14
|
+
accountInfo?: AccountBadgeInfo | null | undefined;
|
|
15
|
+
appId: number;
|
|
16
|
+
appImage: string;
|
|
17
|
+
appName: string;
|
|
18
|
+
appShortName: string;
|
|
15
19
|
badgeImage: string;
|
|
20
|
+
/**
|
|
21
|
+
* The level this badge starts at
|
|
22
|
+
*/
|
|
23
|
+
baseLevel: number;
|
|
24
|
+
/**
|
|
25
|
+
* The XP the badge gives per level
|
|
26
|
+
*/
|
|
27
|
+
baseXp: number;
|
|
16
28
|
firstCompletion: Date | null;
|
|
17
29
|
highestLevel: number;
|
|
30
|
+
isEvent: boolean;
|
|
18
31
|
isFoil: boolean;
|
|
32
|
+
isSale: boolean;
|
|
19
33
|
lastCompletion: Date | null;
|
|
20
|
-
level: number;
|
|
21
34
|
name: string;
|
|
22
35
|
price: number;
|
|
23
36
|
publicId: string;
|
|
24
37
|
scarcity: number;
|
|
25
38
|
steamId: number;
|
|
26
|
-
xp: number;
|
|
27
39
|
};
|
|
28
40
|
|
|
29
41
|
/** @internal */
|
|
@@ -32,40 +44,52 @@ export const V1AppBadge$inboundSchema: z.ZodType<
|
|
|
32
44
|
z.ZodTypeDef,
|
|
33
45
|
unknown
|
|
34
46
|
> = z.object({
|
|
35
|
-
|
|
47
|
+
accountInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
|
|
48
|
+
appId: z.number().int(),
|
|
49
|
+
appImage: z.string(),
|
|
50
|
+
appName: z.string(),
|
|
51
|
+
appShortName: z.string(),
|
|
36
52
|
badgeImage: z.string(),
|
|
53
|
+
baseLevel: z.number().int(),
|
|
54
|
+
baseXp: z.number().int(),
|
|
37
55
|
firstCompletion: z.nullable(
|
|
38
56
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
57
|
),
|
|
40
58
|
highestLevel: z.number().int(),
|
|
59
|
+
isEvent: z.boolean(),
|
|
41
60
|
isFoil: z.boolean(),
|
|
61
|
+
isSale: z.boolean(),
|
|
42
62
|
lastCompletion: z.nullable(
|
|
43
63
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
44
64
|
),
|
|
45
|
-
level: z.number().int(),
|
|
46
65
|
name: z.string(),
|
|
47
66
|
price: z.number().int(),
|
|
48
67
|
publicId: z.string(),
|
|
49
68
|
scarcity: z.number().int(),
|
|
50
69
|
steamId: z.number().int(),
|
|
51
|
-
xp: z.number().int(),
|
|
52
70
|
});
|
|
53
71
|
|
|
54
72
|
/** @internal */
|
|
55
73
|
export type V1AppBadge$Outbound = {
|
|
56
|
-
|
|
74
|
+
accountInfo?: AccountBadgeInfo$Outbound | null | undefined;
|
|
75
|
+
appId: number;
|
|
76
|
+
appImage: string;
|
|
77
|
+
appName: string;
|
|
78
|
+
appShortName: string;
|
|
57
79
|
badgeImage: string;
|
|
80
|
+
baseLevel: number;
|
|
81
|
+
baseXp: number;
|
|
58
82
|
firstCompletion: string | null;
|
|
59
83
|
highestLevel: number;
|
|
84
|
+
isEvent: boolean;
|
|
60
85
|
isFoil: boolean;
|
|
86
|
+
isSale: boolean;
|
|
61
87
|
lastCompletion: string | null;
|
|
62
|
-
level: number;
|
|
63
88
|
name: string;
|
|
64
89
|
price: number;
|
|
65
90
|
publicId: string;
|
|
66
91
|
scarcity: number;
|
|
67
92
|
steamId: number;
|
|
68
|
-
xp: number;
|
|
69
93
|
};
|
|
70
94
|
|
|
71
95
|
/** @internal */
|
|
@@ -74,19 +98,25 @@ export const V1AppBadge$outboundSchema: z.ZodType<
|
|
|
74
98
|
z.ZodTypeDef,
|
|
75
99
|
V1AppBadge
|
|
76
100
|
> = z.object({
|
|
77
|
-
|
|
101
|
+
accountInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
|
|
102
|
+
appId: z.number().int(),
|
|
103
|
+
appImage: z.string(),
|
|
104
|
+
appName: z.string(),
|
|
105
|
+
appShortName: z.string(),
|
|
78
106
|
badgeImage: z.string(),
|
|
107
|
+
baseLevel: z.number().int(),
|
|
108
|
+
baseXp: z.number().int(),
|
|
79
109
|
firstCompletion: z.nullable(z.date().transform(v => v.toISOString())),
|
|
80
110
|
highestLevel: z.number().int(),
|
|
111
|
+
isEvent: z.boolean(),
|
|
81
112
|
isFoil: z.boolean(),
|
|
113
|
+
isSale: z.boolean(),
|
|
82
114
|
lastCompletion: z.nullable(z.date().transform(v => v.toISOString())),
|
|
83
|
-
level: z.number().int(),
|
|
84
115
|
name: z.string(),
|
|
85
116
|
price: z.number().int(),
|
|
86
117
|
publicId: z.string(),
|
|
87
118
|
scarcity: z.number().int(),
|
|
88
119
|
steamId: z.number().int(),
|
|
89
|
-
xp: z.number().int(),
|
|
90
120
|
});
|
|
91
121
|
|
|
92
122
|
/**
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
8
|
+
V1AppBadge,
|
|
9
|
+
V1AppBadge$inboundSchema,
|
|
10
|
+
V1AppBadge$Outbound,
|
|
11
|
+
V1AppBadge$outboundSchema,
|
|
12
|
+
} from "./v1appbadge.js";
|
|
13
13
|
|
|
14
14
|
export type V1BadgesResponseBody = {
|
|
15
15
|
/**
|
|
16
16
|
* A URL to the JSON Schema for this object.
|
|
17
17
|
*/
|
|
18
18
|
dollarSchema?: string | undefined;
|
|
19
|
-
badges: Array<
|
|
19
|
+
badges: Array<V1AppBadge> | null;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
@@ -26,7 +26,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
|
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
28
28
|
$schema: z.string().optional(),
|
|
29
|
-
badges: z.nullable(z.array(
|
|
29
|
+
badges: z.nullable(z.array(V1AppBadge$inboundSchema)),
|
|
30
30
|
}).transform((v) => {
|
|
31
31
|
return remap$(v, {
|
|
32
32
|
"$schema": "dollarSchema",
|
|
@@ -36,7 +36,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export type V1BadgesResponseBody$Outbound = {
|
|
38
38
|
$schema?: string | undefined;
|
|
39
|
-
badges: Array<
|
|
39
|
+
badges: Array<V1AppBadge$Outbound> | null;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
@@ -46,7 +46,7 @@ export const V1BadgesResponseBody$outboundSchema: z.ZodType<
|
|
|
46
46
|
V1BadgesResponseBody
|
|
47
47
|
> = z.object({
|
|
48
48
|
dollarSchema: z.string().optional(),
|
|
49
|
-
badges: z.nullable(z.array(
|
|
49
|
+
badges: z.nullable(z.array(V1AppBadge$outboundSchema)),
|
|
50
50
|
}).transform((v) => {
|
|
51
51
|
return remap$(v, {
|
|
52
52
|
dollarSchema: "$schema",
|
|
@@ -14,6 +14,10 @@ export type V1ConnectResponseBody = {
|
|
|
14
14
|
* Code that has to be used to verify domain connections
|
|
15
15
|
*/
|
|
16
16
|
code?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Public ID of the connection only for domain connections
|
|
19
|
+
*/
|
|
20
|
+
publicId?: string | undefined;
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
/** @internal */
|
|
@@ -24,9 +28,11 @@ export const V1ConnectResponseBody$inboundSchema: z.ZodType<
|
|
|
24
28
|
> = z.object({
|
|
25
29
|
$schema: z.string().optional(),
|
|
26
30
|
code: z.string().optional(),
|
|
31
|
+
public_id: z.string().optional(),
|
|
27
32
|
}).transform((v) => {
|
|
28
33
|
return remap$(v, {
|
|
29
34
|
"$schema": "dollarSchema",
|
|
35
|
+
"public_id": "publicId",
|
|
30
36
|
});
|
|
31
37
|
});
|
|
32
38
|
|
|
@@ -34,6 +40,7 @@ export const V1ConnectResponseBody$inboundSchema: z.ZodType<
|
|
|
34
40
|
export type V1ConnectResponseBody$Outbound = {
|
|
35
41
|
$schema?: string | undefined;
|
|
36
42
|
code?: string | undefined;
|
|
43
|
+
public_id?: string | undefined;
|
|
37
44
|
};
|
|
38
45
|
|
|
39
46
|
/** @internal */
|
|
@@ -44,9 +51,11 @@ export const V1ConnectResponseBody$outboundSchema: z.ZodType<
|
|
|
44
51
|
> = z.object({
|
|
45
52
|
dollarSchema: z.string().optional(),
|
|
46
53
|
code: z.string().optional(),
|
|
54
|
+
publicId: z.string().optional(),
|
|
47
55
|
}).transform((v) => {
|
|
48
56
|
return remap$(v, {
|
|
49
57
|
dollarSchema: "$schema",
|
|
58
|
+
publicId: "public_id",
|
|
50
59
|
});
|
|
51
60
|
});
|
|
52
61
|
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type LeaderboardAccountBadgeInfo = {
|
|
3
|
-
/**
|
|
4
|
-
* The time the badge was completed
|
|
5
|
-
*/
|
|
6
|
-
completionTime: Date;
|
|
7
|
-
/**
|
|
8
|
-
* The level of the badge
|
|
9
|
-
*/
|
|
10
|
-
level: number;
|
|
11
|
-
/**
|
|
12
|
-
* The xp of the badge
|
|
13
|
-
*/
|
|
14
|
-
xp: number;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const LeaderboardAccountBadgeInfo$inboundSchema: z.ZodType<LeaderboardAccountBadgeInfo, z.ZodTypeDef, unknown>;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export type LeaderboardAccountBadgeInfo$Outbound = {
|
|
20
|
-
completionTime: string;
|
|
21
|
-
level: number;
|
|
22
|
-
xp: number;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const LeaderboardAccountBadgeInfo$outboundSchema: z.ZodType<LeaderboardAccountBadgeInfo$Outbound, z.ZodTypeDef, LeaderboardAccountBadgeInfo>;
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export declare namespace LeaderboardAccountBadgeInfo$ {
|
|
31
|
-
/** @deprecated use `LeaderboardAccountBadgeInfo$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<LeaderboardAccountBadgeInfo, z.ZodTypeDef, unknown>;
|
|
33
|
-
/** @deprecated use `LeaderboardAccountBadgeInfo$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<LeaderboardAccountBadgeInfo$Outbound, z.ZodTypeDef, LeaderboardAccountBadgeInfo>;
|
|
35
|
-
/** @deprecated use `LeaderboardAccountBadgeInfo$Outbound` instead. */
|
|
36
|
-
type Outbound = LeaderboardAccountBadgeInfo$Outbound;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=leaderboardaccountbadgeinfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leaderboardaccountbadgeinfo.d.ts","sourceRoot":"","sources":["../../src/models/components/leaderboardaccountbadgeinfo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAK3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leaderboardaccountbadgeinfo.js","sourceRoot":"","sources":["../../src/models/components/leaderboardaccountbadgeinfo.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAiBzB,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAClE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type V1AccountAppBadge = {
|
|
3
|
-
appId: number;
|
|
4
|
-
appImage: string;
|
|
5
|
-
appName: string;
|
|
6
|
-
appShortName: string;
|
|
7
|
-
badgeImage: string;
|
|
8
|
-
completedAt: Date;
|
|
9
|
-
isEvent: boolean;
|
|
10
|
-
isFoil: boolean;
|
|
11
|
-
isSale: boolean;
|
|
12
|
-
level: number;
|
|
13
|
-
name: string;
|
|
14
|
-
price: number;
|
|
15
|
-
publicId: string;
|
|
16
|
-
scarcity: number;
|
|
17
|
-
steamId: number;
|
|
18
|
-
xp: number;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const V1AccountAppBadge$inboundSchema: z.ZodType<V1AccountAppBadge, z.ZodTypeDef, unknown>;
|
|
22
|
-
/** @internal */
|
|
23
|
-
export type V1AccountAppBadge$Outbound = {
|
|
24
|
-
appId: number;
|
|
25
|
-
appImage: string;
|
|
26
|
-
appName: string;
|
|
27
|
-
appShortName: string;
|
|
28
|
-
badgeImage: string;
|
|
29
|
-
completedAt: string;
|
|
30
|
-
isEvent: boolean;
|
|
31
|
-
isFoil: boolean;
|
|
32
|
-
isSale: boolean;
|
|
33
|
-
level: number;
|
|
34
|
-
name: string;
|
|
35
|
-
price: number;
|
|
36
|
-
publicId: string;
|
|
37
|
-
scarcity: number;
|
|
38
|
-
steamId: number;
|
|
39
|
-
xp: number;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const V1AccountAppBadge$outboundSchema: z.ZodType<V1AccountAppBadge$Outbound, z.ZodTypeDef, V1AccountAppBadge>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace V1AccountAppBadge$ {
|
|
48
|
-
/** @deprecated use `V1AccountAppBadge$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<V1AccountAppBadge, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @deprecated use `V1AccountAppBadge$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<V1AccountAppBadge$Outbound, z.ZodTypeDef, V1AccountAppBadge>;
|
|
52
|
-
/** @deprecated use `V1AccountAppBadge$Outbound` instead. */
|
|
53
|
-
type Outbound = V1AccountAppBadge$Outbound;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=v1accountappbadge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1accountappbadge.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountappbadge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAoBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAkBjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
|