@steamsets/client-ts 0.33.6 → 0.33.7
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 +2 -0
- package/funcs/accountCompareBadges.d.ts +16 -0
- package/funcs/accountCompareBadges.d.ts.map +1 -0
- package/funcs/accountCompareBadges.js +134 -0
- package/funcs/accountCompareBadges.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/comparedtuple.d.ts +23 -0
- package/models/components/comparedtuple.d.ts.map +1 -0
- package/models/components/comparedtuple.js +63 -0
- package/models/components/comparedtuple.js.map +1 -0
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/order.d.ts +32 -0
- package/models/components/order.d.ts.map +1 -0
- package/models/components/order.js +66 -0
- package/models/components/order.js.map +1 -0
- package/models/components/rangefilter.d.ts +23 -0
- package/models/components/rangefilter.d.ts.map +1 -0
- package/models/components/rangefilter.js +56 -0
- package/models/components/rangefilter.js.map +1 -0
- package/models/components/resolvedaccount.d.ts +13 -0
- package/models/components/resolvedaccount.d.ts.map +1 -0
- package/models/components/resolvedaccount.js +53 -0
- package/models/components/resolvedaccount.js.map +1 -0
- package/models/components/tupleaccount.d.ts +13 -0
- package/models/components/tupleaccount.d.ts.map +1 -0
- package/models/components/tupleaccount.js +54 -0
- package/models/components/tupleaccount.js.map +1 -0
- package/models/components/v1accountcomparebadgesrequestbody.d.ts +74 -0
- package/models/components/v1accountcomparebadgesrequestbody.d.ts.map +1 -0
- package/models/components/v1accountcomparebadgesrequestbody.js +94 -0
- package/models/components/v1accountcomparebadgesrequestbody.js.map +1 -0
- package/models/components/v1accountcomparebadgesresponsebody.d.ts +25 -0
- package/models/components/v1accountcomparebadgesresponsebody.d.ts.map +1 -0
- package/models/components/v1accountcomparebadgesresponsebody.js +61 -0
- package/models/components/v1accountcomparebadgesresponsebody.js.map +1 -0
- package/models/components/v1accountlistbadgesrequestbody.d.ts +4 -4
- package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.js +4 -5
- package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
- package/models/components/v1apporder.d.ts +8 -8
- package/models/components/v1apporder.d.ts.map +1 -1
- package/models/components/v1apporder.js +7 -8
- package/models/components/v1apporder.js.map +1 -1
- package/models/operations/comparebadges.d.ts +15 -0
- package/models/operations/comparebadges.d.ts.map +1 -0
- package/models/operations/comparebadges.js +59 -0
- package/models/operations/comparebadges.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- package/src/funcs/accountCompareBadges.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/comparedtuple.ts +56 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/order.ts +53 -0
- package/src/models/components/rangefilter.ts +44 -0
- package/src/models/components/resolvedaccount.ts +37 -0
- package/src/models/components/tupleaccount.ts +38 -0
- package/src/models/components/v1accountcomparebadgesrequestbody.ts +128 -0
- package/src/models/components/v1accountcomparebadgesresponsebody.ts +59 -0
- package/src/models/components/v1accountlistbadgesrequestbody.ts +12 -6
- package/src/models/components/v1apporder.ts +13 -11
- package/src/models/operations/comparebadges.ts +46 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +15 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 TupleAccount = {
|
|
11
|
+
completedAt?: Date | undefined;
|
|
12
|
+
level: number;
|
|
13
|
+
steamId: string;
|
|
14
|
+
xp: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const TupleAccount$inboundSchema: z.ZodType<
|
|
19
|
+
TupleAccount,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
completedAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
24
|
+
.optional(),
|
|
25
|
+
level: z.number().int(),
|
|
26
|
+
steamId: z.string(),
|
|
27
|
+
xp: z.number().int(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function tupleAccountFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<TupleAccount, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => TupleAccount$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'TupleAccount' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
AccountSearch,
|
|
9
|
+
AccountSearch$Outbound,
|
|
10
|
+
AccountSearch$outboundSchema,
|
|
11
|
+
} from "./accountsearch.js";
|
|
12
|
+
import { Order, Order$Outbound, Order$outboundSchema } from "./order.js";
|
|
13
|
+
import {
|
|
14
|
+
RangeFilter,
|
|
15
|
+
RangeFilter$Outbound,
|
|
16
|
+
RangeFilter$outboundSchema,
|
|
17
|
+
} from "./rangefilter.js";
|
|
18
|
+
|
|
19
|
+
export const Filter = {
|
|
20
|
+
All: "all",
|
|
21
|
+
Normal: "normal",
|
|
22
|
+
Foil: "foil",
|
|
23
|
+
} as const;
|
|
24
|
+
export type Filter = ClosedEnum<typeof Filter>;
|
|
25
|
+
|
|
26
|
+
export const Ignore = {
|
|
27
|
+
Event: "event",
|
|
28
|
+
Sale: "sale",
|
|
29
|
+
Steam: "steam",
|
|
30
|
+
Infinite: "infinite",
|
|
31
|
+
} as const;
|
|
32
|
+
export type Ignore = ClosedEnum<typeof Ignore>;
|
|
33
|
+
|
|
34
|
+
export const Match = {
|
|
35
|
+
Tuple: "tuple",
|
|
36
|
+
TupleLevel: "tupleLevel",
|
|
37
|
+
TupleMinLevel: "tupleMinLevel",
|
|
38
|
+
} as const;
|
|
39
|
+
export type Match = ClosedEnum<typeof Match>;
|
|
40
|
+
|
|
41
|
+
export const Mode = {
|
|
42
|
+
Missing: "missing",
|
|
43
|
+
OwnedByAll: "ownedByAll",
|
|
44
|
+
Unique: "unique",
|
|
45
|
+
} as const;
|
|
46
|
+
export type Mode = ClosedEnum<typeof Mode>;
|
|
47
|
+
|
|
48
|
+
export type V1AccountCompareBadgesRequestBody = {
|
|
49
|
+
accounts: Array<AccountSearch> | null;
|
|
50
|
+
appIds?: Array<number> | null | undefined;
|
|
51
|
+
appTypes?: Array<string> | null | undefined;
|
|
52
|
+
excludeAppIds?: Array<number> | null | undefined;
|
|
53
|
+
filter?: Filter | undefined;
|
|
54
|
+
ignore?: Array<Ignore> | null | undefined;
|
|
55
|
+
match?: Match | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Only used when match=tupleMinLevel
|
|
58
|
+
*/
|
|
59
|
+
minLevel?: number | undefined;
|
|
60
|
+
mode?: Mode | undefined;
|
|
61
|
+
order?: Order | undefined;
|
|
62
|
+
page?: number | undefined;
|
|
63
|
+
ranges?: Array<RangeFilter> | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const Filter$outboundSchema: z.ZodNativeEnum<typeof Filter> = z
|
|
68
|
+
.nativeEnum(Filter);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const Ignore$outboundSchema: z.ZodNativeEnum<typeof Ignore> = z
|
|
72
|
+
.nativeEnum(Ignore);
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const Match$outboundSchema: z.ZodNativeEnum<typeof Match> = z.nativeEnum(
|
|
76
|
+
Match,
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
|
|
81
|
+
Mode,
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export type V1AccountCompareBadgesRequestBody$Outbound = {
|
|
86
|
+
accounts: Array<AccountSearch$Outbound> | null;
|
|
87
|
+
appIds?: Array<number> | null | undefined;
|
|
88
|
+
appTypes?: Array<string> | null | undefined;
|
|
89
|
+
excludeAppIds?: Array<number> | null | undefined;
|
|
90
|
+
filter: string;
|
|
91
|
+
ignore?: Array<string> | null | undefined;
|
|
92
|
+
match: string;
|
|
93
|
+
minLevel?: number | undefined;
|
|
94
|
+
mode: string;
|
|
95
|
+
order?: Order$Outbound | undefined;
|
|
96
|
+
page: number;
|
|
97
|
+
ranges?: Array<RangeFilter$Outbound> | null | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const V1AccountCompareBadgesRequestBody$outboundSchema: z.ZodType<
|
|
102
|
+
V1AccountCompareBadgesRequestBody$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
V1AccountCompareBadgesRequestBody
|
|
105
|
+
> = z.object({
|
|
106
|
+
accounts: z.nullable(z.array(AccountSearch$outboundSchema)),
|
|
107
|
+
appIds: z.nullable(z.array(z.number().int())).optional(),
|
|
108
|
+
appTypes: z.nullable(z.array(z.string())).optional(),
|
|
109
|
+
excludeAppIds: z.nullable(z.array(z.number().int())).optional(),
|
|
110
|
+
filter: Filter$outboundSchema.default("all"),
|
|
111
|
+
ignore: z.nullable(z.array(Ignore$outboundSchema)).optional(),
|
|
112
|
+
match: Match$outboundSchema.default("tuple"),
|
|
113
|
+
minLevel: z.number().int().optional(),
|
|
114
|
+
mode: Mode$outboundSchema.default("missing"),
|
|
115
|
+
order: Order$outboundSchema.optional(),
|
|
116
|
+
page: z.number().int().default(1),
|
|
117
|
+
ranges: z.nullable(z.array(RangeFilter$outboundSchema)).optional(),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export function v1AccountCompareBadgesRequestBodyToJSON(
|
|
121
|
+
v1AccountCompareBadgesRequestBody: V1AccountCompareBadgesRequestBody,
|
|
122
|
+
): string {
|
|
123
|
+
return JSON.stringify(
|
|
124
|
+
V1AccountCompareBadgesRequestBody$outboundSchema.parse(
|
|
125
|
+
v1AccountCompareBadgesRequestBody,
|
|
126
|
+
),
|
|
127
|
+
);
|
|
128
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { ComparedTuple, ComparedTuple$inboundSchema } from "./comparedtuple.js";
|
|
11
|
+
import {
|
|
12
|
+
ResolvedAccount,
|
|
13
|
+
ResolvedAccount$inboundSchema,
|
|
14
|
+
} from "./resolvedaccount.js";
|
|
15
|
+
|
|
16
|
+
export type V1AccountCompareBadgesResponseBody = {
|
|
17
|
+
/**
|
|
18
|
+
* A URL to the JSON Schema for this object.
|
|
19
|
+
*/
|
|
20
|
+
dollarSchema?: string | undefined;
|
|
21
|
+
accounts: Array<ResolvedAccount> | null;
|
|
22
|
+
/**
|
|
23
|
+
* The number of pages
|
|
24
|
+
*/
|
|
25
|
+
pages: number;
|
|
26
|
+
/**
|
|
27
|
+
* The total number of hits for all pages
|
|
28
|
+
*/
|
|
29
|
+
totalHits: number;
|
|
30
|
+
tuples: Array<ComparedTuple> | null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const V1AccountCompareBadgesResponseBody$inboundSchema: z.ZodType<
|
|
35
|
+
V1AccountCompareBadgesResponseBody,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
$schema: z.string().optional(),
|
|
40
|
+
accounts: z.nullable(z.array(ResolvedAccount$inboundSchema)),
|
|
41
|
+
pages: z.number().int(),
|
|
42
|
+
totalHits: z.number().int(),
|
|
43
|
+
tuples: z.nullable(z.array(ComparedTuple$inboundSchema)),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"$schema": "dollarSchema",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function v1AccountCompareBadgesResponseBodyFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<V1AccountCompareBadgesResponseBody, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) =>
|
|
56
|
+
V1AccountCompareBadgesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'V1AccountCompareBadgesResponseBody' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -30,18 +30,20 @@ import {
|
|
|
30
30
|
VanitySearch$outboundSchema,
|
|
31
31
|
} from "./vanitysearch.js";
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const V1AccountListBadgesRequestBodyFilter = {
|
|
34
34
|
Foil: "foil",
|
|
35
35
|
Sale: "sale",
|
|
36
36
|
Event: "event",
|
|
37
37
|
} as const;
|
|
38
|
-
export type
|
|
38
|
+
export type V1AccountListBadgesRequestBodyFilter = ClosedEnum<
|
|
39
|
+
typeof V1AccountListBadgesRequestBodyFilter
|
|
40
|
+
>;
|
|
39
41
|
|
|
40
42
|
export type V1AccountListBadgesRequestBody = {
|
|
41
43
|
/**
|
|
42
44
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
43
45
|
*/
|
|
44
|
-
filter?: Array<
|
|
46
|
+
filter?: Array<V1AccountListBadgesRequestBodyFilter> | null | undefined;
|
|
45
47
|
filters?: V1BadgeFilters | undefined;
|
|
46
48
|
id?: IDSearch | undefined;
|
|
47
49
|
order?: V1BadgeOrder | null | undefined;
|
|
@@ -55,8 +57,10 @@ export type V1AccountListBadgesRequestBody = {
|
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
/** @internal */
|
|
58
|
-
export const
|
|
59
|
-
.nativeEnum(
|
|
60
|
+
export const V1AccountListBadgesRequestBodyFilter$outboundSchema:
|
|
61
|
+
z.ZodNativeEnum<typeof V1AccountListBadgesRequestBodyFilter> = z.nativeEnum(
|
|
62
|
+
V1AccountListBadgesRequestBodyFilter,
|
|
63
|
+
);
|
|
60
64
|
|
|
61
65
|
/** @internal */
|
|
62
66
|
export type V1AccountListBadgesRequestBody$Outbound = {
|
|
@@ -76,7 +80,9 @@ export const V1AccountListBadgesRequestBody$outboundSchema: z.ZodType<
|
|
|
76
80
|
z.ZodTypeDef,
|
|
77
81
|
V1AccountListBadgesRequestBody
|
|
78
82
|
> = z.object({
|
|
79
|
-
filter: z.nullable(
|
|
83
|
+
filter: z.nullable(
|
|
84
|
+
z.array(V1AccountListBadgesRequestBodyFilter$outboundSchema),
|
|
85
|
+
).optional(),
|
|
80
86
|
filters: V1BadgeFilters$outboundSchema.optional(),
|
|
81
87
|
id: IDSearch$outboundSchema.optional(),
|
|
82
88
|
order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
|
|
@@ -5,29 +5,31 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const V1AppOrderBy = {
|
|
9
9
|
AppId: "appId",
|
|
10
10
|
Playtime: "playtime",
|
|
11
11
|
} as const;
|
|
12
|
-
export type
|
|
12
|
+
export type V1AppOrderBy = ClosedEnum<typeof V1AppOrderBy>;
|
|
13
13
|
|
|
14
|
-
export const
|
|
14
|
+
export const V1AppOrderDirection = {
|
|
15
15
|
Asc: "asc",
|
|
16
16
|
Desc: "desc",
|
|
17
17
|
} as const;
|
|
18
|
-
export type
|
|
18
|
+
export type V1AppOrderDirection = ClosedEnum<typeof V1AppOrderDirection>;
|
|
19
19
|
|
|
20
20
|
export type V1AppOrder = {
|
|
21
|
-
by:
|
|
22
|
-
direction?:
|
|
21
|
+
by: V1AppOrderBy;
|
|
22
|
+
direction?: V1AppOrderDirection | undefined;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
26
|
-
export const
|
|
26
|
+
export const V1AppOrderBy$outboundSchema: z.ZodNativeEnum<typeof V1AppOrderBy> =
|
|
27
|
+
z.nativeEnum(V1AppOrderBy);
|
|
27
28
|
|
|
28
29
|
/** @internal */
|
|
29
|
-
export const
|
|
30
|
-
|
|
30
|
+
export const V1AppOrderDirection$outboundSchema: z.ZodNativeEnum<
|
|
31
|
+
typeof V1AppOrderDirection
|
|
32
|
+
> = z.nativeEnum(V1AppOrderDirection);
|
|
31
33
|
|
|
32
34
|
/** @internal */
|
|
33
35
|
export type V1AppOrder$Outbound = {
|
|
@@ -41,8 +43,8 @@ export const V1AppOrder$outboundSchema: z.ZodType<
|
|
|
41
43
|
z.ZodTypeDef,
|
|
42
44
|
V1AppOrder
|
|
43
45
|
> = z.object({
|
|
44
|
-
by:
|
|
45
|
-
direction:
|
|
46
|
+
by: V1AppOrderBy$outboundSchema,
|
|
47
|
+
direction: V1AppOrderDirection$outboundSchema.default("desc"),
|
|
46
48
|
});
|
|
47
49
|
|
|
48
50
|
export function v1AppOrderToJSON(v1AppOrder: V1AppOrder): string {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CompareBadgesResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1AccountCompareBadgesResponseBody?:
|
|
18
|
+
| components.V1AccountCompareBadgesResponseBody
|
|
19
|
+
| undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CompareBadgesResponse$inboundSchema: z.ZodType<
|
|
24
|
+
CompareBadgesResponse,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
29
|
+
V1AccountCompareBadgesResponseBody: components
|
|
30
|
+
.V1AccountCompareBadgesResponseBody$inboundSchema.optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
34
|
+
"V1AccountCompareBadgesResponseBody": "v1AccountCompareBadgesResponseBody",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function compareBadgesResponseFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<CompareBadgesResponse, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => CompareBadgesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'CompareBadgesResponse' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -65,6 +65,7 @@ export * from "./cmsreorder.js";
|
|
|
65
65
|
export * from "./cmsupdatedraft.js";
|
|
66
66
|
export * from "./cmsuploadimage.js";
|
|
67
67
|
export * from "./cmsversions.js";
|
|
68
|
+
export * from "./comparebadges.js";
|
|
68
69
|
export * from "./getbucketleaders.js";
|
|
69
70
|
export * from "./getchanges.js";
|
|
70
71
|
export * from "./getviewstats.js";
|
package/src/sdk/account.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { accountAccountGetBadgeHeatmap } from "../funcs/accountAccountGetBadgeHe
|
|
|
7
7
|
import { accountAccountGetTrending } from "../funcs/accountAccountGetTrending.js";
|
|
8
8
|
import { accountAccountListOwnedGroups } from "../funcs/accountAccountListOwnedGroups.js";
|
|
9
9
|
import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
|
|
10
|
+
import { accountCompareBadges } from "../funcs/accountCompareBadges.js";
|
|
10
11
|
import { accountCreateConnection } from "../funcs/accountCreateConnection.js";
|
|
11
12
|
import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
|
|
12
13
|
import { accountDeleteConnection } from "../funcs/accountDeleteConnection.js";
|
|
@@ -65,6 +66,20 @@ export class Account extends ClientSDK {
|
|
|
65
66
|
));
|
|
66
67
|
}
|
|
67
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Compare badge collections between accounts
|
|
71
|
+
*/
|
|
72
|
+
async compareBadges(
|
|
73
|
+
request: components.V1AccountCompareBadgesRequestBody,
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): Promise<operations.CompareBadgesResponse> {
|
|
76
|
+
return unwrapAsync(accountCompareBadges(
|
|
77
|
+
this,
|
|
78
|
+
request,
|
|
79
|
+
options,
|
|
80
|
+
));
|
|
81
|
+
}
|
|
82
|
+
|
|
68
83
|
/**
|
|
69
84
|
* Create OAuth or domain connection
|
|
70
85
|
*/
|