@steamsets/client-ts 0.26.7 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/docs/sdks/badges/README.md +6 -6
- package/funcs/badgesListPrices.d.ts +13 -2
- package/funcs/badgesListPrices.d.ts.map +1 -1
- package/funcs/badgesListPrices.js +21 -20
- package/funcs/badgesListPrices.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/badge.d.ts +8 -0
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +8 -0
- package/models/components/badge.js.map +1 -1
- package/models/components/bestleaderboardrank.d.ts +6 -3
- package/models/components/bestleaderboardrank.d.ts.map +1 -1
- package/models/components/bestleaderboardrank.js +2 -1
- package/models/components/bestleaderboardrank.js.map +1 -1
- package/models/components/errormodel.d.ts +63 -0
- package/models/components/errormodel.d.ts.map +1 -0
- package/models/components/errormodel.js +81 -0
- package/models/components/errormodel.js.map +1 -0
- package/models/components/index.d.ts +7 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -2
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountgetinforesponsebody.d.ts +0 -9
- package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountgetinforesponsebody.js +0 -3
- package/models/components/v1accountgetinforesponsebody.js.map +1 -1
- package/models/components/v1badgeapp.d.ts +37 -0
- package/models/components/v1badgeapp.d.ts.map +1 -0
- package/models/components/v1badgeapp.js +67 -0
- package/models/components/v1badgeapp.js.map +1 -0
- package/models/components/v1badgelevel.d.ts +33 -0
- package/models/components/v1badgelevel.d.ts.map +1 -0
- package/models/components/v1badgelevel.js +63 -0
- package/models/components/v1badgelevel.js.map +1 -0
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts +2 -10
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +1 -1
- package/models/components/v1badgelistbadgepricesrequestbody.js +2 -10
- package/models/components/v1badgelistbadgepricesrequestbody.js.map +1 -1
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts +24 -0
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +1 -1
- package/models/components/v1badgelistbadgepricesresponsebody.js +11 -0
- package/models/components/v1badgelistbadgepricesresponsebody.js.map +1 -1
- package/models/components/v1badgeset.d.ts +61 -0
- package/models/components/v1badgeset.d.ts.map +1 -0
- package/models/components/v1badgeset.js +87 -0
- package/models/components/v1badgeset.js.map +1 -0
- package/models/components/v1badgesetcount.d.ts +31 -0
- package/models/components/v1badgesetcount.d.ts.map +1 -0
- package/models/components/v1badgesetcount.js +61 -0
- package/models/components/v1badgesetcount.js.map +1 -0
- package/models/components/v1badgesetcounts.d.ts +34 -0
- package/models/components/v1badgesetcounts.d.ts.map +1 -0
- package/models/components/v1badgesetcounts.js +64 -0
- package/models/components/v1badgesetcounts.js.map +1 -0
- package/models/components/v1badgetypecount.d.ts +33 -0
- package/models/components/v1badgetypecount.d.ts.map +1 -0
- package/models/components/v1badgetypecount.js +63 -0
- package/models/components/v1badgetypecount.js.map +1 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.d.ts +6 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.d.ts.map +1 -1
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.js +2 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.js.map +1 -1
- package/models/components/v1leaderboardgetaccountsmetarequestbody.d.ts +6 -0
- package/models/components/v1leaderboardgetaccountsmetarequestbody.d.ts.map +1 -1
- package/models/components/v1leaderboardgetaccountsmetarequestbody.js +2 -0
- package/models/components/v1leaderboardgetaccountsmetarequestbody.js.map +1 -1
- package/models/operations/badgelistbadgeprices.d.ts +5 -0
- package/models/operations/badgelistbadgeprices.d.ts.map +1 -1
- package/models/operations/badgelistbadgeprices.js +4 -0
- package/models/operations/badgelistbadgeprices.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badges.d.ts +11 -1
- package/sdk/badges.d.ts.map +1 -1
- package/sdk/badges.js +9 -1
- package/sdk/badges.js.map +1 -1
- package/src/funcs/badgesListPrices.ts +23 -32
- package/src/lib/config.ts +3 -3
- package/src/models/components/badge.ts +16 -0
- package/src/models/components/bestleaderboardrank.ts +2 -1
- package/src/models/components/errormodel.ts +122 -0
- package/src/models/components/index.ts +7 -2
- package/src/models/components/v1accountgetinforesponsebody.ts +0 -3
- package/src/models/components/v1badgeapp.ts +78 -0
- package/src/models/components/v1badgelevel.ts +70 -0
- package/src/models/components/v1badgelistbadgepricesrequestbody.ts +4 -28
- package/src/models/components/v1badgelistbadgepricesresponsebody.ts +43 -0
- package/src/models/components/v1badgeset.ts +126 -0
- package/src/models/components/v1badgesetcount.ts +68 -0
- package/src/models/components/v1badgesetcounts.ts +80 -0
- package/src/models/components/v1badgetypecount.ts +74 -0
- package/src/models/components/v1leaderboardgetaccountleaderboardrequestbody.ts +2 -0
- package/src/models/components/v1leaderboardgetaccountsmetarequestbody.ts +2 -0
- package/src/models/operations/badgelistbadgeprices.ts +9 -0
- package/src/sdk/badges.ts +13 -2
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/components/v1badgelistbadgepricefilters.d.ts +0 -35
- package/models/components/v1badgelistbadgepricefilters.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepricefilters.js +0 -65
- package/models/components/v1badgelistbadgepricefilters.js.map +0 -1
- package/models/components/v1badgelistbadgepriceorder.d.ts +0 -57
- package/models/components/v1badgelistbadgepriceorder.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepriceorder.js +0 -80
- package/models/components/v1badgelistbadgepriceorder.js.map +0 -1
- package/src/models/components/v1badgelistbadgepricefilters.ts +0 -80
- package/src/models/components/v1badgelistbadgepriceorder.ts +0 -102
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1BadgeApp = {
|
|
11
|
+
bgAvg: number;
|
|
12
|
+
boosterPrice: number | null;
|
|
13
|
+
emoteAvg: number;
|
|
14
|
+
image: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const V1BadgeApp$inboundSchema: z.ZodType<
|
|
20
|
+
V1BadgeApp,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
bgAvg: z.number().int(),
|
|
25
|
+
boosterPrice: z.nullable(z.number().int()),
|
|
26
|
+
emoteAvg: z.number().int(),
|
|
27
|
+
image: z.string(),
|
|
28
|
+
name: z.string(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type V1BadgeApp$Outbound = {
|
|
33
|
+
bgAvg: number;
|
|
34
|
+
boosterPrice: number | null;
|
|
35
|
+
emoteAvg: number;
|
|
36
|
+
image: string;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const V1BadgeApp$outboundSchema: z.ZodType<
|
|
42
|
+
V1BadgeApp$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
V1BadgeApp
|
|
45
|
+
> = z.object({
|
|
46
|
+
bgAvg: z.number().int(),
|
|
47
|
+
boosterPrice: z.nullable(z.number().int()),
|
|
48
|
+
emoteAvg: z.number().int(),
|
|
49
|
+
image: z.string(),
|
|
50
|
+
name: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace V1BadgeApp$ {
|
|
58
|
+
/** @deprecated use `V1BadgeApp$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = V1BadgeApp$inboundSchema;
|
|
60
|
+
/** @deprecated use `V1BadgeApp$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = V1BadgeApp$outboundSchema;
|
|
62
|
+
/** @deprecated use `V1BadgeApp$Outbound` instead. */
|
|
63
|
+
export type Outbound = V1BadgeApp$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function v1BadgeAppToJSON(v1BadgeApp: V1BadgeApp): string {
|
|
67
|
+
return JSON.stringify(V1BadgeApp$outboundSchema.parse(v1BadgeApp));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function v1BadgeAppFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<V1BadgeApp, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => V1BadgeApp$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'V1BadgeApp' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1BadgeLevel = {
|
|
11
|
+
image: string;
|
|
12
|
+
name: string;
|
|
13
|
+
scarcity: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const V1BadgeLevel$inboundSchema: z.ZodType<
|
|
18
|
+
V1BadgeLevel,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
image: z.string(),
|
|
23
|
+
name: z.string(),
|
|
24
|
+
scarcity: z.number().int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type V1BadgeLevel$Outbound = {
|
|
29
|
+
image: string;
|
|
30
|
+
name: string;
|
|
31
|
+
scarcity: number;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1BadgeLevel$outboundSchema: z.ZodType<
|
|
36
|
+
V1BadgeLevel$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
V1BadgeLevel
|
|
39
|
+
> = z.object({
|
|
40
|
+
image: z.string(),
|
|
41
|
+
name: z.string(),
|
|
42
|
+
scarcity: z.number().int(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace V1BadgeLevel$ {
|
|
50
|
+
/** @deprecated use `V1BadgeLevel$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = V1BadgeLevel$inboundSchema;
|
|
52
|
+
/** @deprecated use `V1BadgeLevel$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = V1BadgeLevel$outboundSchema;
|
|
54
|
+
/** @deprecated use `V1BadgeLevel$Outbound` instead. */
|
|
55
|
+
export type Outbound = V1BadgeLevel$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function v1BadgeLevelToJSON(v1BadgeLevel: V1BadgeLevel): string {
|
|
59
|
+
return JSON.stringify(V1BadgeLevel$outboundSchema.parse(v1BadgeLevel));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function v1BadgeLevelFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<V1BadgeLevel, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => V1BadgeLevel$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'V1BadgeLevel' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -6,49 +6,25 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
V1BadgeListBadgePriceFilters,
|
|
11
|
-
V1BadgeListBadgePriceFilters$inboundSchema,
|
|
12
|
-
V1BadgeListBadgePriceFilters$Outbound,
|
|
13
|
-
V1BadgeListBadgePriceFilters$outboundSchema,
|
|
14
|
-
} from "./v1badgelistbadgepricefilters.js";
|
|
15
|
-
import {
|
|
16
|
-
V1BadgeListBadgePriceOrder,
|
|
17
|
-
V1BadgeListBadgePriceOrder$inboundSchema,
|
|
18
|
-
V1BadgeListBadgePriceOrder$Outbound,
|
|
19
|
-
V1BadgeListBadgePriceOrder$outboundSchema,
|
|
20
|
-
} from "./v1badgelistbadgepriceorder.js";
|
|
21
9
|
|
|
22
|
-
export type V1BadgeListBadgePricesRequestBody = {
|
|
23
|
-
filters?: V1BadgeListBadgePriceFilters | null | undefined;
|
|
24
|
-
order?: V1BadgeListBadgePriceOrder | null | undefined;
|
|
25
|
-
};
|
|
10
|
+
export type V1BadgeListBadgePricesRequestBody = {};
|
|
26
11
|
|
|
27
12
|
/** @internal */
|
|
28
13
|
export const V1BadgeListBadgePricesRequestBody$inboundSchema: z.ZodType<
|
|
29
14
|
V1BadgeListBadgePricesRequestBody,
|
|
30
15
|
z.ZodTypeDef,
|
|
31
16
|
unknown
|
|
32
|
-
> = z.object({
|
|
33
|
-
filters: z.nullable(V1BadgeListBadgePriceFilters$inboundSchema).optional(),
|
|
34
|
-
order: z.nullable(V1BadgeListBadgePriceOrder$inboundSchema).optional(),
|
|
35
|
-
});
|
|
17
|
+
> = z.object({});
|
|
36
18
|
|
|
37
19
|
/** @internal */
|
|
38
|
-
export type V1BadgeListBadgePricesRequestBody$Outbound = {
|
|
39
|
-
filters?: V1BadgeListBadgePriceFilters$Outbound | null | undefined;
|
|
40
|
-
order?: V1BadgeListBadgePriceOrder$Outbound | null | undefined;
|
|
41
|
-
};
|
|
20
|
+
export type V1BadgeListBadgePricesRequestBody$Outbound = {};
|
|
42
21
|
|
|
43
22
|
/** @internal */
|
|
44
23
|
export const V1BadgeListBadgePricesRequestBody$outboundSchema: z.ZodType<
|
|
45
24
|
V1BadgeListBadgePricesRequestBody$Outbound,
|
|
46
25
|
z.ZodTypeDef,
|
|
47
26
|
V1BadgeListBadgePricesRequestBody
|
|
48
|
-
> = z.object({
|
|
49
|
-
filters: z.nullable(V1BadgeListBadgePriceFilters$outboundSchema).optional(),
|
|
50
|
-
order: z.nullable(V1BadgeListBadgePriceOrder$outboundSchema).optional(),
|
|
51
|
-
});
|
|
27
|
+
> = z.object({});
|
|
52
28
|
|
|
53
29
|
/**
|
|
54
30
|
* @internal
|
|
@@ -7,12 +7,43 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
V1BadgeApp,
|
|
12
|
+
V1BadgeApp$inboundSchema,
|
|
13
|
+
V1BadgeApp$Outbound,
|
|
14
|
+
V1BadgeApp$outboundSchema,
|
|
15
|
+
} from "./v1badgeapp.js";
|
|
16
|
+
import {
|
|
17
|
+
V1BadgeSet,
|
|
18
|
+
V1BadgeSet$inboundSchema,
|
|
19
|
+
V1BadgeSet$Outbound,
|
|
20
|
+
V1BadgeSet$outboundSchema,
|
|
21
|
+
} from "./v1badgeset.js";
|
|
22
|
+
import {
|
|
23
|
+
V1BadgeSetCounts,
|
|
24
|
+
V1BadgeSetCounts$inboundSchema,
|
|
25
|
+
V1BadgeSetCounts$Outbound,
|
|
26
|
+
V1BadgeSetCounts$outboundSchema,
|
|
27
|
+
} from "./v1badgesetcounts.js";
|
|
10
28
|
|
|
11
29
|
export type V1BadgeListBadgePricesResponseBody = {
|
|
12
30
|
/**
|
|
13
31
|
* A URL to the JSON Schema for this object.
|
|
14
32
|
*/
|
|
15
33
|
dollarSchema?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* App information indexed by app ID
|
|
36
|
+
*/
|
|
37
|
+
apps: { [k: string]: V1BadgeApp };
|
|
38
|
+
setCounts: V1BadgeSetCounts;
|
|
39
|
+
/**
|
|
40
|
+
* Badge sets with pricing information
|
|
41
|
+
*/
|
|
42
|
+
sets: Array<V1BadgeSet> | null;
|
|
43
|
+
/**
|
|
44
|
+
* Total number of badge sets
|
|
45
|
+
*/
|
|
46
|
+
total: number;
|
|
16
47
|
};
|
|
17
48
|
|
|
18
49
|
/** @internal */
|
|
@@ -22,6 +53,10 @@ export const V1BadgeListBadgePricesResponseBody$inboundSchema: z.ZodType<
|
|
|
22
53
|
unknown
|
|
23
54
|
> = z.object({
|
|
24
55
|
$schema: z.string().optional(),
|
|
56
|
+
apps: z.record(V1BadgeApp$inboundSchema),
|
|
57
|
+
setCounts: V1BadgeSetCounts$inboundSchema,
|
|
58
|
+
sets: z.nullable(z.array(V1BadgeSet$inboundSchema)),
|
|
59
|
+
total: z.number().int(),
|
|
25
60
|
}).transform((v) => {
|
|
26
61
|
return remap$(v, {
|
|
27
62
|
"$schema": "dollarSchema",
|
|
@@ -31,6 +66,10 @@ export const V1BadgeListBadgePricesResponseBody$inboundSchema: z.ZodType<
|
|
|
31
66
|
/** @internal */
|
|
32
67
|
export type V1BadgeListBadgePricesResponseBody$Outbound = {
|
|
33
68
|
$schema?: string | undefined;
|
|
69
|
+
apps: { [k: string]: V1BadgeApp$Outbound };
|
|
70
|
+
setCounts: V1BadgeSetCounts$Outbound;
|
|
71
|
+
sets: Array<V1BadgeSet$Outbound> | null;
|
|
72
|
+
total: number;
|
|
34
73
|
};
|
|
35
74
|
|
|
36
75
|
/** @internal */
|
|
@@ -40,6 +79,10 @@ export const V1BadgeListBadgePricesResponseBody$outboundSchema: z.ZodType<
|
|
|
40
79
|
V1BadgeListBadgePricesResponseBody
|
|
41
80
|
> = z.object({
|
|
42
81
|
dollarSchema: z.string().optional(),
|
|
82
|
+
apps: z.record(V1BadgeApp$outboundSchema),
|
|
83
|
+
setCounts: V1BadgeSetCounts$outboundSchema,
|
|
84
|
+
sets: z.nullable(z.array(V1BadgeSet$outboundSchema)),
|
|
85
|
+
total: z.number().int(),
|
|
43
86
|
}).transform((v) => {
|
|
44
87
|
return remap$(v, {
|
|
45
88
|
dollarSchema: "$schema",
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
V1BadgeLevel,
|
|
11
|
+
V1BadgeLevel$inboundSchema,
|
|
12
|
+
V1BadgeLevel$Outbound,
|
|
13
|
+
V1BadgeLevel$outboundSchema,
|
|
14
|
+
} from "./v1badgelevel.js";
|
|
15
|
+
import {
|
|
16
|
+
V1BadgeSetCount,
|
|
17
|
+
V1BadgeSetCount$inboundSchema,
|
|
18
|
+
V1BadgeSetCount$Outbound,
|
|
19
|
+
V1BadgeSetCount$outboundSchema,
|
|
20
|
+
} from "./v1badgesetcount.js";
|
|
21
|
+
|
|
22
|
+
export type V1BadgeSet = {
|
|
23
|
+
appId: number;
|
|
24
|
+
avgCardPrc: number;
|
|
25
|
+
badges: { [k: string]: V1BadgeLevel };
|
|
26
|
+
canBuy: boolean;
|
|
27
|
+
cards: number;
|
|
28
|
+
currLevel: number;
|
|
29
|
+
isFoil: boolean;
|
|
30
|
+
issues: Array<string> | null;
|
|
31
|
+
link: string;
|
|
32
|
+
maxPrc: number;
|
|
33
|
+
minPrc: number;
|
|
34
|
+
price: number;
|
|
35
|
+
priceDiff: number;
|
|
36
|
+
setCount: V1BadgeSetCount;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const V1BadgeSet$inboundSchema: z.ZodType<
|
|
41
|
+
V1BadgeSet,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
appId: z.number().int(),
|
|
46
|
+
avgCardPrc: z.number().int(),
|
|
47
|
+
badges: z.record(V1BadgeLevel$inboundSchema),
|
|
48
|
+
canBuy: z.boolean(),
|
|
49
|
+
cards: z.number().int(),
|
|
50
|
+
currLevel: z.number().int(),
|
|
51
|
+
isFoil: z.boolean(),
|
|
52
|
+
issues: z.nullable(z.array(z.string())),
|
|
53
|
+
link: z.string(),
|
|
54
|
+
maxPrc: z.number().int(),
|
|
55
|
+
minPrc: z.number().int(),
|
|
56
|
+
price: z.number().int(),
|
|
57
|
+
priceDiff: z.number().int(),
|
|
58
|
+
setCount: V1BadgeSetCount$inboundSchema,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type V1BadgeSet$Outbound = {
|
|
63
|
+
appId: number;
|
|
64
|
+
avgCardPrc: number;
|
|
65
|
+
badges: { [k: string]: V1BadgeLevel$Outbound };
|
|
66
|
+
canBuy: boolean;
|
|
67
|
+
cards: number;
|
|
68
|
+
currLevel: number;
|
|
69
|
+
isFoil: boolean;
|
|
70
|
+
issues: Array<string> | null;
|
|
71
|
+
link: string;
|
|
72
|
+
maxPrc: number;
|
|
73
|
+
minPrc: number;
|
|
74
|
+
price: number;
|
|
75
|
+
priceDiff: number;
|
|
76
|
+
setCount: V1BadgeSetCount$Outbound;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const V1BadgeSet$outboundSchema: z.ZodType<
|
|
81
|
+
V1BadgeSet$Outbound,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
V1BadgeSet
|
|
84
|
+
> = z.object({
|
|
85
|
+
appId: z.number().int(),
|
|
86
|
+
avgCardPrc: z.number().int(),
|
|
87
|
+
badges: z.record(V1BadgeLevel$outboundSchema),
|
|
88
|
+
canBuy: z.boolean(),
|
|
89
|
+
cards: z.number().int(),
|
|
90
|
+
currLevel: z.number().int(),
|
|
91
|
+
isFoil: z.boolean(),
|
|
92
|
+
issues: z.nullable(z.array(z.string())),
|
|
93
|
+
link: z.string(),
|
|
94
|
+
maxPrc: z.number().int(),
|
|
95
|
+
minPrc: z.number().int(),
|
|
96
|
+
price: z.number().int(),
|
|
97
|
+
priceDiff: z.number().int(),
|
|
98
|
+
setCount: V1BadgeSetCount$outboundSchema,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace V1BadgeSet$ {
|
|
106
|
+
/** @deprecated use `V1BadgeSet$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = V1BadgeSet$inboundSchema;
|
|
108
|
+
/** @deprecated use `V1BadgeSet$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = V1BadgeSet$outboundSchema;
|
|
110
|
+
/** @deprecated use `V1BadgeSet$Outbound` instead. */
|
|
111
|
+
export type Outbound = V1BadgeSet$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function v1BadgeSetToJSON(v1BadgeSet: V1BadgeSet): string {
|
|
115
|
+
return JSON.stringify(V1BadgeSet$outboundSchema.parse(v1BadgeSet));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function v1BadgeSetFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<V1BadgeSet, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => V1BadgeSet$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'V1BadgeSet' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1BadgeSetCount = {
|
|
11
|
+
duplicateSets: number;
|
|
12
|
+
uniqueSets: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const V1BadgeSetCount$inboundSchema: z.ZodType<
|
|
17
|
+
V1BadgeSetCount,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
duplicateSets: z.number().int(),
|
|
22
|
+
uniqueSets: z.number().int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type V1BadgeSetCount$Outbound = {
|
|
27
|
+
duplicateSets: number;
|
|
28
|
+
uniqueSets: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const V1BadgeSetCount$outboundSchema: z.ZodType<
|
|
33
|
+
V1BadgeSetCount$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
V1BadgeSetCount
|
|
36
|
+
> = z.object({
|
|
37
|
+
duplicateSets: z.number().int(),
|
|
38
|
+
uniqueSets: z.number().int(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace V1BadgeSetCount$ {
|
|
46
|
+
/** @deprecated use `V1BadgeSetCount$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = V1BadgeSetCount$inboundSchema;
|
|
48
|
+
/** @deprecated use `V1BadgeSetCount$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = V1BadgeSetCount$outboundSchema;
|
|
50
|
+
/** @deprecated use `V1BadgeSetCount$Outbound` instead. */
|
|
51
|
+
export type Outbound = V1BadgeSetCount$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function v1BadgeSetCountToJSON(
|
|
55
|
+
v1BadgeSetCount: V1BadgeSetCount,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(V1BadgeSetCount$outboundSchema.parse(v1BadgeSetCount));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function v1BadgeSetCountFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<V1BadgeSetCount, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => V1BadgeSetCount$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'V1BadgeSetCount' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
V1BadgeTypeCount,
|
|
11
|
+
V1BadgeTypeCount$inboundSchema,
|
|
12
|
+
V1BadgeTypeCount$Outbound,
|
|
13
|
+
V1BadgeTypeCount$outboundSchema,
|
|
14
|
+
} from "./v1badgetypecount.js";
|
|
15
|
+
|
|
16
|
+
export type V1BadgeSetCounts = {
|
|
17
|
+
duplicate: V1BadgeTypeCount;
|
|
18
|
+
total: V1BadgeTypeCount;
|
|
19
|
+
unique: V1BadgeTypeCount;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const V1BadgeSetCounts$inboundSchema: z.ZodType<
|
|
24
|
+
V1BadgeSetCounts,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
duplicate: V1BadgeTypeCount$inboundSchema,
|
|
29
|
+
total: V1BadgeTypeCount$inboundSchema,
|
|
30
|
+
unique: V1BadgeTypeCount$inboundSchema,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type V1BadgeSetCounts$Outbound = {
|
|
35
|
+
duplicate: V1BadgeTypeCount$Outbound;
|
|
36
|
+
total: V1BadgeTypeCount$Outbound;
|
|
37
|
+
unique: V1BadgeTypeCount$Outbound;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const V1BadgeSetCounts$outboundSchema: z.ZodType<
|
|
42
|
+
V1BadgeSetCounts$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
V1BadgeSetCounts
|
|
45
|
+
> = z.object({
|
|
46
|
+
duplicate: V1BadgeTypeCount$outboundSchema,
|
|
47
|
+
total: V1BadgeTypeCount$outboundSchema,
|
|
48
|
+
unique: V1BadgeTypeCount$outboundSchema,
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace V1BadgeSetCounts$ {
|
|
56
|
+
/** @deprecated use `V1BadgeSetCounts$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = V1BadgeSetCounts$inboundSchema;
|
|
58
|
+
/** @deprecated use `V1BadgeSetCounts$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = V1BadgeSetCounts$outboundSchema;
|
|
60
|
+
/** @deprecated use `V1BadgeSetCounts$Outbound` instead. */
|
|
61
|
+
export type Outbound = V1BadgeSetCounts$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function v1BadgeSetCountsToJSON(
|
|
65
|
+
v1BadgeSetCounts: V1BadgeSetCounts,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
V1BadgeSetCounts$outboundSchema.parse(v1BadgeSetCounts),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function v1BadgeSetCountsFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<V1BadgeSetCounts, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => V1BadgeSetCounts$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'V1BadgeSetCounts' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1BadgeTypeCount = {
|
|
11
|
+
foil: number;
|
|
12
|
+
normal: number;
|
|
13
|
+
total: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const V1BadgeTypeCount$inboundSchema: z.ZodType<
|
|
18
|
+
V1BadgeTypeCount,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
foil: z.number().int(),
|
|
23
|
+
normal: z.number().int(),
|
|
24
|
+
total: z.number().int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type V1BadgeTypeCount$Outbound = {
|
|
29
|
+
foil: number;
|
|
30
|
+
normal: number;
|
|
31
|
+
total: number;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1BadgeTypeCount$outboundSchema: z.ZodType<
|
|
36
|
+
V1BadgeTypeCount$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
V1BadgeTypeCount
|
|
39
|
+
> = z.object({
|
|
40
|
+
foil: z.number().int(),
|
|
41
|
+
normal: z.number().int(),
|
|
42
|
+
total: z.number().int(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace V1BadgeTypeCount$ {
|
|
50
|
+
/** @deprecated use `V1BadgeTypeCount$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = V1BadgeTypeCount$inboundSchema;
|
|
52
|
+
/** @deprecated use `V1BadgeTypeCount$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = V1BadgeTypeCount$outboundSchema;
|
|
54
|
+
/** @deprecated use `V1BadgeTypeCount$Outbound` instead. */
|
|
55
|
+
export type Outbound = V1BadgeTypeCount$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function v1BadgeTypeCountToJSON(
|
|
59
|
+
v1BadgeTypeCount: V1BadgeTypeCount,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
V1BadgeTypeCount$outboundSchema.parse(v1BadgeTypeCount),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function v1BadgeTypeCountFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<V1BadgeTypeCount, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => V1BadgeTypeCount$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'V1BadgeTypeCount' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
export const V1LeaderboardGetAccountLeaderboardRequestBodyLeaderboard = {
|
|
33
33
|
Apps: "apps",
|
|
34
34
|
AppPlaytime: "app_playtime",
|
|
35
|
+
AppValidPlaytime: "app_valid_playtime",
|
|
35
36
|
AwardsGiven: "awards_given",
|
|
36
37
|
AwardsReceived: "awards_received",
|
|
37
38
|
Bans: "bans",
|
|
@@ -42,6 +43,7 @@ export const V1LeaderboardGetAccountLeaderboardRequestBodyLeaderboard = {
|
|
|
42
43
|
NormalBadges: "normal_badges",
|
|
43
44
|
Badges: "badges",
|
|
44
45
|
Playtime: "playtime",
|
|
46
|
+
ValidPlaytime: "valid_playtime",
|
|
45
47
|
PointsGiven: "points_given",
|
|
46
48
|
PointsReceived: "points_received",
|
|
47
49
|
SteamSets: "steam_sets",
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
export const V1LeaderboardGetAccountsMetaRequestBodyLeaderboard = {
|
|
33
33
|
Apps: "apps",
|
|
34
34
|
AppPlaytime: "app_playtime",
|
|
35
|
+
AppValidPlaytime: "app_valid_playtime",
|
|
35
36
|
AwardsGiven: "awards_given",
|
|
36
37
|
AwardsReceived: "awards_received",
|
|
37
38
|
Bans: "bans",
|
|
@@ -42,6 +43,7 @@ export const V1LeaderboardGetAccountsMetaRequestBodyLeaderboard = {
|
|
|
42
43
|
NormalBadges: "normal_badges",
|
|
43
44
|
Badges: "badges",
|
|
44
45
|
Playtime: "playtime",
|
|
46
|
+
ValidPlaytime: "valid_playtime",
|
|
45
47
|
PointsGiven: "points_given",
|
|
46
48
|
PointsReceived: "points_received",
|
|
47
49
|
SteamSets: "steam_sets",
|