@steamsets/client-ts 0.14.11 → 0.14.13
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 +8 -0
- package/docs/sdks/account/README.md +142 -0
- package/docs/sdks/badge/README.md +71 -0
- package/docs/sdks/data/README.md +71 -0
- package/funcs/accountAccountV1GetOwnedBadges.d.ts +10 -0
- package/funcs/accountAccountV1GetOwnedBadges.d.ts.map +1 -0
- package/funcs/accountAccountV1GetOwnedBadges.js +99 -0
- package/funcs/accountAccountV1GetOwnedBadges.js.map +1 -0
- package/funcs/accountStatsV1StatsGet.d.ts +10 -0
- package/funcs/accountStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/accountStatsV1StatsGet.js +99 -0
- package/funcs/accountStatsV1StatsGet.js.map +1 -0
- package/funcs/badgeAccountV1GetOwnedBadges.d.ts +10 -0
- package/funcs/badgeAccountV1GetOwnedBadges.d.ts.map +1 -0
- package/funcs/badgeAccountV1GetOwnedBadges.js +99 -0
- package/funcs/badgeAccountV1GetOwnedBadges.js.map +1 -0
- package/funcs/dataStatsV1StatsGet.d.ts +10 -0
- package/funcs/dataStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/dataStatsV1StatsGet.js +99 -0
- package/funcs/dataStatsV1StatsGet.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountbadgeownedbadge.d.ts +47 -0
- package/models/components/v1accountbadgeownedbadge.d.ts.map +1 -0
- package/models/components/v1accountbadgeownedbadge.js +65 -0
- package/models/components/v1accountbadgeownedbadge.js.map +1 -0
- package/models/components/v1accountbadgeownedbadgesresponsebody.d.ts +35 -0
- package/models/components/v1accountbadgeownedbadgesresponsebody.d.ts.map +1 -0
- package/models/components/v1accountbadgeownedbadgesresponsebody.js +71 -0
- package/models/components/v1accountbadgeownedbadgesresponsebody.js.map +1 -0
- package/models/components/v1stats.d.ts +137 -0
- package/models/components/v1stats.d.ts.map +1 -0
- package/models/components/v1stats.js +110 -0
- package/models/components/v1stats.js.map +1 -0
- package/models/operations/accountv1getownedbadges.d.ts +35 -0
- package/models/operations/accountv1getownedbadges.d.ts.map +1 -0
- package/models/operations/accountv1getownedbadges.js +75 -0
- package/models/operations/accountv1getownedbadges.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/statsv1statsget.d.ts +35 -0
- package/models/operations/statsv1statsget.d.ts.map +1 -0
- package/models/operations/statsv1statsget.js +73 -0
- package/models/operations/statsv1statsget.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +2 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +8 -0
- package/sdk/account.js.map +1 -1
- package/sdk/badge.d.ts +1 -0
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +4 -0
- package/sdk/badge.js.map +1 -1
- package/sdk/data.d.ts +1 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +4 -0
- package/sdk/data.js.map +1 -1
- package/src/funcs/accountAccountV1GetOwnedBadges.ts +125 -0
- package/src/funcs/accountStatsV1StatsGet.ts +125 -0
- package/src/funcs/badgeAccountV1GetOwnedBadges.ts +125 -0
- package/src/funcs/dataStatsV1StatsGet.ts +125 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +3 -0
- package/src/models/components/v1accountbadgeownedbadge.ts +90 -0
- package/src/models/components/v1accountbadgeownedbadgesresponsebody.ts +93 -0
- package/src/models/components/v1stats.ts +218 -0
- package/src/models/operations/accountv1getownedbadges.ts +95 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/statsv1statsget.ts +85 -0
- package/src/sdk/account.ts +20 -0
- package/src/sdk/badge.ts +10 -0
- package/src/sdk/data.ts +10 -0
|
@@ -0,0 +1,90 @@
|
|
|
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 V1AccountBadgeOwnedBadge = {
|
|
11
|
+
/**
|
|
12
|
+
* The app id
|
|
13
|
+
*/
|
|
14
|
+
appId: number;
|
|
15
|
+
/**
|
|
16
|
+
* The badge id
|
|
17
|
+
*/
|
|
18
|
+
badgeId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The level of the badge
|
|
21
|
+
*/
|
|
22
|
+
level: number;
|
|
23
|
+
/**
|
|
24
|
+
* The internal steam id badge id
|
|
25
|
+
*/
|
|
26
|
+
steamId: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const V1AccountBadgeOwnedBadge$inboundSchema: z.ZodType<
|
|
31
|
+
V1AccountBadgeOwnedBadge,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
appId: z.number().int(),
|
|
36
|
+
badgeId: z.string(),
|
|
37
|
+
level: z.number().int(),
|
|
38
|
+
steamId: z.number().int(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type V1AccountBadgeOwnedBadge$Outbound = {
|
|
43
|
+
appId: number;
|
|
44
|
+
badgeId: string;
|
|
45
|
+
level: number;
|
|
46
|
+
steamId: number;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const V1AccountBadgeOwnedBadge$outboundSchema: z.ZodType<
|
|
51
|
+
V1AccountBadgeOwnedBadge$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
V1AccountBadgeOwnedBadge
|
|
54
|
+
> = z.object({
|
|
55
|
+
appId: z.number().int(),
|
|
56
|
+
badgeId: z.string(),
|
|
57
|
+
level: z.number().int(),
|
|
58
|
+
steamId: z.number().int(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace V1AccountBadgeOwnedBadge$ {
|
|
66
|
+
/** @deprecated use `V1AccountBadgeOwnedBadge$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = V1AccountBadgeOwnedBadge$inboundSchema;
|
|
68
|
+
/** @deprecated use `V1AccountBadgeOwnedBadge$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = V1AccountBadgeOwnedBadge$outboundSchema;
|
|
70
|
+
/** @deprecated use `V1AccountBadgeOwnedBadge$Outbound` instead. */
|
|
71
|
+
export type Outbound = V1AccountBadgeOwnedBadge$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function v1AccountBadgeOwnedBadgeToJSON(
|
|
75
|
+
v1AccountBadgeOwnedBadge: V1AccountBadgeOwnedBadge,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
V1AccountBadgeOwnedBadge$outboundSchema.parse(v1AccountBadgeOwnedBadge),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function v1AccountBadgeOwnedBadgeFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<V1AccountBadgeOwnedBadge, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => V1AccountBadgeOwnedBadge$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'V1AccountBadgeOwnedBadge' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 {
|
|
11
|
+
V1AccountBadgeOwnedBadge,
|
|
12
|
+
V1AccountBadgeOwnedBadge$inboundSchema,
|
|
13
|
+
V1AccountBadgeOwnedBadge$Outbound,
|
|
14
|
+
V1AccountBadgeOwnedBadge$outboundSchema,
|
|
15
|
+
} from "./v1accountbadgeownedbadge.js";
|
|
16
|
+
|
|
17
|
+
export type V1AccountBadgeOwnedBadgesResponseBody = {
|
|
18
|
+
/**
|
|
19
|
+
* A URL to the JSON Schema for this object.
|
|
20
|
+
*/
|
|
21
|
+
dollarSchema?: string | undefined;
|
|
22
|
+
ownedBadges: Array<V1AccountBadgeOwnedBadge> | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const V1AccountBadgeOwnedBadgesResponseBody$inboundSchema: z.ZodType<
|
|
27
|
+
V1AccountBadgeOwnedBadgesResponseBody,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
$schema: z.string().optional(),
|
|
32
|
+
ownedBadges: z.nullable(z.array(V1AccountBadgeOwnedBadge$inboundSchema)),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"$schema": "dollarSchema",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type V1AccountBadgeOwnedBadgesResponseBody$Outbound = {
|
|
41
|
+
$schema?: string | undefined;
|
|
42
|
+
ownedBadges: Array<V1AccountBadgeOwnedBadge$Outbound> | null;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const V1AccountBadgeOwnedBadgesResponseBody$outboundSchema: z.ZodType<
|
|
47
|
+
V1AccountBadgeOwnedBadgesResponseBody$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
V1AccountBadgeOwnedBadgesResponseBody
|
|
50
|
+
> = z.object({
|
|
51
|
+
dollarSchema: z.string().optional(),
|
|
52
|
+
ownedBadges: z.nullable(z.array(V1AccountBadgeOwnedBadge$outboundSchema)),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
dollarSchema: "$schema",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace V1AccountBadgeOwnedBadgesResponseBody$ {
|
|
64
|
+
/** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema =
|
|
66
|
+
V1AccountBadgeOwnedBadgesResponseBody$inboundSchema;
|
|
67
|
+
/** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema =
|
|
69
|
+
V1AccountBadgeOwnedBadgesResponseBody$outboundSchema;
|
|
70
|
+
/** @deprecated use `V1AccountBadgeOwnedBadgesResponseBody$Outbound` instead. */
|
|
71
|
+
export type Outbound = V1AccountBadgeOwnedBadgesResponseBody$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function v1AccountBadgeOwnedBadgesResponseBodyToJSON(
|
|
75
|
+
v1AccountBadgeOwnedBadgesResponseBody: V1AccountBadgeOwnedBadgesResponseBody,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
V1AccountBadgeOwnedBadgesResponseBody$outboundSchema.parse(
|
|
79
|
+
v1AccountBadgeOwnedBadgesResponseBody,
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function v1AccountBadgeOwnedBadgesResponseBodyFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<V1AccountBadgeOwnedBadgesResponseBody, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) =>
|
|
90
|
+
V1AccountBadgeOwnedBadgesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'V1AccountBadgeOwnedBadgesResponseBody' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
|
|
11
|
+
export type V1Stats = {
|
|
12
|
+
/**
|
|
13
|
+
* A URL to the JSON Schema for this object.
|
|
14
|
+
*/
|
|
15
|
+
dollarSchema?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The total number of accounts added
|
|
18
|
+
*/
|
|
19
|
+
accountsAdded: number;
|
|
20
|
+
/**
|
|
21
|
+
* The total number of accounts updated
|
|
22
|
+
*/
|
|
23
|
+
accountsUpdated: number;
|
|
24
|
+
/**
|
|
25
|
+
* The total cost of apps
|
|
26
|
+
*/
|
|
27
|
+
appCost: number;
|
|
28
|
+
/**
|
|
29
|
+
* The total playtime of apps
|
|
30
|
+
*/
|
|
31
|
+
appPlaytime: number;
|
|
32
|
+
/**
|
|
33
|
+
* The total number of apps
|
|
34
|
+
*/
|
|
35
|
+
apps: number;
|
|
36
|
+
/**
|
|
37
|
+
* The total awards given
|
|
38
|
+
*/
|
|
39
|
+
awardsGiven: number;
|
|
40
|
+
/**
|
|
41
|
+
* The total awards received
|
|
42
|
+
*/
|
|
43
|
+
awardsReceived: number;
|
|
44
|
+
/**
|
|
45
|
+
* The total number of badges
|
|
46
|
+
*/
|
|
47
|
+
badges: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of bans
|
|
50
|
+
*/
|
|
51
|
+
bans: number;
|
|
52
|
+
/**
|
|
53
|
+
* The total number of foil badges
|
|
54
|
+
*/
|
|
55
|
+
foilBadges: number;
|
|
56
|
+
/**
|
|
57
|
+
* The total number of friends
|
|
58
|
+
*/
|
|
59
|
+
friends: number;
|
|
60
|
+
/**
|
|
61
|
+
* The total number of game bans
|
|
62
|
+
*/
|
|
63
|
+
gameBans: number;
|
|
64
|
+
/**
|
|
65
|
+
* The total level
|
|
66
|
+
*/
|
|
67
|
+
level: number;
|
|
68
|
+
/**
|
|
69
|
+
* The total number of normal badges
|
|
70
|
+
*/
|
|
71
|
+
normalBadges: number;
|
|
72
|
+
/**
|
|
73
|
+
* The total playtime
|
|
74
|
+
*/
|
|
75
|
+
playtime: number;
|
|
76
|
+
/**
|
|
77
|
+
* The total points given
|
|
78
|
+
*/
|
|
79
|
+
pointsGiven: number;
|
|
80
|
+
/**
|
|
81
|
+
* The total points received
|
|
82
|
+
*/
|
|
83
|
+
pointsReceived: number;
|
|
84
|
+
/**
|
|
85
|
+
* The total steam sets score
|
|
86
|
+
*/
|
|
87
|
+
steamSetsScore: number;
|
|
88
|
+
/**
|
|
89
|
+
* The total number of accounts
|
|
90
|
+
*/
|
|
91
|
+
totalAccounts: number;
|
|
92
|
+
/**
|
|
93
|
+
* The total number of vac bans
|
|
94
|
+
*/
|
|
95
|
+
vacBans: number;
|
|
96
|
+
/**
|
|
97
|
+
* The total xp
|
|
98
|
+
*/
|
|
99
|
+
xp: number;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const V1Stats$inboundSchema: z.ZodType<V1Stats, z.ZodTypeDef, unknown> =
|
|
104
|
+
z.object({
|
|
105
|
+
$schema: z.string().optional(),
|
|
106
|
+
accountsAdded: z.number().int(),
|
|
107
|
+
accountsUpdated: z.number().int(),
|
|
108
|
+
appCost: z.number().int(),
|
|
109
|
+
appPlaytime: z.number().int(),
|
|
110
|
+
apps: z.number().int(),
|
|
111
|
+
awardsGiven: z.number().int(),
|
|
112
|
+
awardsReceived: z.number().int(),
|
|
113
|
+
badges: z.number().int(),
|
|
114
|
+
bans: z.number().int(),
|
|
115
|
+
foilBadges: z.number().int(),
|
|
116
|
+
friends: z.number().int(),
|
|
117
|
+
gameBans: z.number().int(),
|
|
118
|
+
level: z.number().int(),
|
|
119
|
+
normalBadges: z.number().int(),
|
|
120
|
+
playtime: z.number().int(),
|
|
121
|
+
pointsGiven: z.number().int(),
|
|
122
|
+
pointsReceived: z.number().int(),
|
|
123
|
+
steamSetsScore: z.number().int(),
|
|
124
|
+
totalAccounts: z.number().int(),
|
|
125
|
+
vacBans: z.number().int(),
|
|
126
|
+
xp: z.number().int(),
|
|
127
|
+
}).transform((v) => {
|
|
128
|
+
return remap$(v, {
|
|
129
|
+
"$schema": "dollarSchema",
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type V1Stats$Outbound = {
|
|
135
|
+
$schema?: string | undefined;
|
|
136
|
+
accountsAdded: number;
|
|
137
|
+
accountsUpdated: number;
|
|
138
|
+
appCost: number;
|
|
139
|
+
appPlaytime: number;
|
|
140
|
+
apps: number;
|
|
141
|
+
awardsGiven: number;
|
|
142
|
+
awardsReceived: number;
|
|
143
|
+
badges: number;
|
|
144
|
+
bans: number;
|
|
145
|
+
foilBadges: number;
|
|
146
|
+
friends: number;
|
|
147
|
+
gameBans: number;
|
|
148
|
+
level: number;
|
|
149
|
+
normalBadges: number;
|
|
150
|
+
playtime: number;
|
|
151
|
+
pointsGiven: number;
|
|
152
|
+
pointsReceived: number;
|
|
153
|
+
steamSetsScore: number;
|
|
154
|
+
totalAccounts: number;
|
|
155
|
+
vacBans: number;
|
|
156
|
+
xp: number;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const V1Stats$outboundSchema: z.ZodType<
|
|
161
|
+
V1Stats$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
V1Stats
|
|
164
|
+
> = z.object({
|
|
165
|
+
dollarSchema: z.string().optional(),
|
|
166
|
+
accountsAdded: z.number().int(),
|
|
167
|
+
accountsUpdated: z.number().int(),
|
|
168
|
+
appCost: z.number().int(),
|
|
169
|
+
appPlaytime: z.number().int(),
|
|
170
|
+
apps: z.number().int(),
|
|
171
|
+
awardsGiven: z.number().int(),
|
|
172
|
+
awardsReceived: z.number().int(),
|
|
173
|
+
badges: z.number().int(),
|
|
174
|
+
bans: z.number().int(),
|
|
175
|
+
foilBadges: z.number().int(),
|
|
176
|
+
friends: z.number().int(),
|
|
177
|
+
gameBans: z.number().int(),
|
|
178
|
+
level: z.number().int(),
|
|
179
|
+
normalBadges: z.number().int(),
|
|
180
|
+
playtime: z.number().int(),
|
|
181
|
+
pointsGiven: z.number().int(),
|
|
182
|
+
pointsReceived: z.number().int(),
|
|
183
|
+
steamSetsScore: z.number().int(),
|
|
184
|
+
totalAccounts: z.number().int(),
|
|
185
|
+
vacBans: z.number().int(),
|
|
186
|
+
xp: z.number().int(),
|
|
187
|
+
}).transform((v) => {
|
|
188
|
+
return remap$(v, {
|
|
189
|
+
dollarSchema: "$schema",
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @internal
|
|
195
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
196
|
+
*/
|
|
197
|
+
export namespace V1Stats$ {
|
|
198
|
+
/** @deprecated use `V1Stats$inboundSchema` instead. */
|
|
199
|
+
export const inboundSchema = V1Stats$inboundSchema;
|
|
200
|
+
/** @deprecated use `V1Stats$outboundSchema` instead. */
|
|
201
|
+
export const outboundSchema = V1Stats$outboundSchema;
|
|
202
|
+
/** @deprecated use `V1Stats$Outbound` instead. */
|
|
203
|
+
export type Outbound = V1Stats$Outbound;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function v1StatsToJSON(v1Stats: V1Stats): string {
|
|
207
|
+
return JSON.stringify(V1Stats$outboundSchema.parse(v1Stats));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function v1StatsFromJSON(
|
|
211
|
+
jsonString: string,
|
|
212
|
+
): SafeParseResult<V1Stats, SDKValidationError> {
|
|
213
|
+
return safeParse(
|
|
214
|
+
jsonString,
|
|
215
|
+
(x) => V1Stats$inboundSchema.parse(JSON.parse(x)),
|
|
216
|
+
`Failed to parse 'V1Stats' from JSON`,
|
|
217
|
+
);
|
|
218
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 AccountV1GetOwnedBadgesResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1AccountBadgeOwnedBadgesResponseBody?:
|
|
18
|
+
| components.V1AccountBadgeOwnedBadgesResponseBody
|
|
19
|
+
| undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AccountV1GetOwnedBadgesResponse$inboundSchema: z.ZodType<
|
|
24
|
+
AccountV1GetOwnedBadgesResponse,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
29
|
+
V1AccountBadgeOwnedBadgesResponseBody: components
|
|
30
|
+
.V1AccountBadgeOwnedBadgesResponseBody$inboundSchema.optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"HttpMeta": "httpMeta",
|
|
34
|
+
"V1AccountBadgeOwnedBadgesResponseBody":
|
|
35
|
+
"v1AccountBadgeOwnedBadgesResponseBody",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AccountV1GetOwnedBadgesResponse$Outbound = {
|
|
41
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
42
|
+
V1AccountBadgeOwnedBadgesResponseBody?:
|
|
43
|
+
| components.V1AccountBadgeOwnedBadgesResponseBody$Outbound
|
|
44
|
+
| undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const AccountV1GetOwnedBadgesResponse$outboundSchema: z.ZodType<
|
|
49
|
+
AccountV1GetOwnedBadgesResponse$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
AccountV1GetOwnedBadgesResponse
|
|
52
|
+
> = z.object({
|
|
53
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
54
|
+
v1AccountBadgeOwnedBadgesResponseBody: components
|
|
55
|
+
.V1AccountBadgeOwnedBadgesResponseBody$outboundSchema.optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
httpMeta: "HttpMeta",
|
|
59
|
+
v1AccountBadgeOwnedBadgesResponseBody:
|
|
60
|
+
"V1AccountBadgeOwnedBadgesResponseBody",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace AccountV1GetOwnedBadgesResponse$ {
|
|
69
|
+
/** @deprecated use `AccountV1GetOwnedBadgesResponse$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = AccountV1GetOwnedBadgesResponse$inboundSchema;
|
|
71
|
+
/** @deprecated use `AccountV1GetOwnedBadgesResponse$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = AccountV1GetOwnedBadgesResponse$outboundSchema;
|
|
73
|
+
/** @deprecated use `AccountV1GetOwnedBadgesResponse$Outbound` instead. */
|
|
74
|
+
export type Outbound = AccountV1GetOwnedBadgesResponse$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function accountV1GetOwnedBadgesResponseToJSON(
|
|
78
|
+
accountV1GetOwnedBadgesResponse: AccountV1GetOwnedBadgesResponse,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
AccountV1GetOwnedBadgesResponse$outboundSchema.parse(
|
|
82
|
+
accountV1GetOwnedBadgesResponse,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function accountV1GetOwnedBadgesResponseFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<AccountV1GetOwnedBadgesResponse, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => AccountV1GetOwnedBadgesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'AccountV1GetOwnedBadgesResponse' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./accountv1getdatapoints.js";
|
|
|
14
14
|
export * from "./accountv1getfriends.js";
|
|
15
15
|
export * from "./accountv1getinfo.js";
|
|
16
16
|
export * from "./accountv1getleaderboardhistory.js";
|
|
17
|
+
export * from "./accountv1getownedbadges.js";
|
|
17
18
|
export * from "./accountv1getstaff.js";
|
|
18
19
|
export * from "./accountv1imagesdelete.js";
|
|
19
20
|
export * from "./accountv1imagesget.js";
|
|
@@ -44,3 +45,4 @@ export * from "./leaderboardv1getbadges.js";
|
|
|
44
45
|
export * from "./leaderboardv1getgroup.js";
|
|
45
46
|
export * from "./liveness.js";
|
|
46
47
|
export * from "./locationv1locationget.js";
|
|
48
|
+
export * from "./statsv1statsget.js";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 StatsV1StatsGetResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1Stats?: components.V1Stats | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const StatsV1StatsGetResponse$inboundSchema: z.ZodType<
|
|
22
|
+
StatsV1StatsGetResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
+
V1Stats: components.V1Stats$inboundSchema.optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"HttpMeta": "httpMeta",
|
|
31
|
+
"V1Stats": "v1Stats",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type StatsV1StatsGetResponse$Outbound = {
|
|
37
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
38
|
+
V1Stats?: components.V1Stats$Outbound | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const StatsV1StatsGetResponse$outboundSchema: z.ZodType<
|
|
43
|
+
StatsV1StatsGetResponse$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
StatsV1StatsGetResponse
|
|
46
|
+
> = z.object({
|
|
47
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
48
|
+
v1Stats: components.V1Stats$outboundSchema.optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
httpMeta: "HttpMeta",
|
|
52
|
+
v1Stats: "V1Stats",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace StatsV1StatsGetResponse$ {
|
|
61
|
+
/** @deprecated use `StatsV1StatsGetResponse$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = StatsV1StatsGetResponse$inboundSchema;
|
|
63
|
+
/** @deprecated use `StatsV1StatsGetResponse$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = StatsV1StatsGetResponse$outboundSchema;
|
|
65
|
+
/** @deprecated use `StatsV1StatsGetResponse$Outbound` instead. */
|
|
66
|
+
export type Outbound = StatsV1StatsGetResponse$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function statsV1StatsGetResponseToJSON(
|
|
70
|
+
statsV1StatsGetResponse: StatsV1StatsGetResponse,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
StatsV1StatsGetResponse$outboundSchema.parse(statsV1StatsGetResponse),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function statsV1StatsGetResponseFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<StatsV1StatsGetResponse, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => StatsV1StatsGetResponse$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'StatsV1StatsGetResponse' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
package/src/sdk/account.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { accountAccountV1GetBadgeBookmarks } from "../funcs/accountAccountV1GetBadgeBookmarks.js";
|
|
6
|
+
import { accountAccountV1GetOwnedBadges } from "../funcs/accountAccountV1GetOwnedBadges.js";
|
|
6
7
|
import { accountAccountV1ImagesGet } from "../funcs/accountAccountV1ImagesGet.js";
|
|
7
8
|
import { accountAccountV1ImagesUpdate } from "../funcs/accountAccountV1ImagesUpdate.js";
|
|
8
9
|
import { accountDeleteImages } from "../funcs/accountDeleteImages.js";
|
|
@@ -14,6 +15,7 @@ import { accountGetInfo } from "../funcs/accountGetInfo.js";
|
|
|
14
15
|
import { accountGetLeaderboardHistory } from "../funcs/accountGetLeaderboardHistory.js";
|
|
15
16
|
import { accountGetStaff } from "../funcs/accountGetStaff.js";
|
|
16
17
|
import { accountSendEmailVerification } from "../funcs/accountSendEmailVerification.js";
|
|
18
|
+
import { accountStatsV1StatsGet } from "../funcs/accountStatsV1StatsGet.js";
|
|
17
19
|
import { accountUploadImages } from "../funcs/accountUploadImages.js";
|
|
18
20
|
import { accountVerifyEmail } from "../funcs/accountVerifyEmail.js";
|
|
19
21
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -117,6 +119,15 @@ export class Account extends ClientSDK {
|
|
|
117
119
|
));
|
|
118
120
|
}
|
|
119
121
|
|
|
122
|
+
async accountV1GetOwnedBadges(
|
|
123
|
+
options?: RequestOptions,
|
|
124
|
+
): Promise<operations.AccountV1GetOwnedBadgesResponse> {
|
|
125
|
+
return unwrapAsync(accountAccountV1GetOwnedBadges(
|
|
126
|
+
this,
|
|
127
|
+
options,
|
|
128
|
+
));
|
|
129
|
+
}
|
|
130
|
+
|
|
120
131
|
async getStaff(
|
|
121
132
|
options?: RequestOptions,
|
|
122
133
|
): Promise<operations.AccountV1GetStaffResponse> {
|
|
@@ -169,4 +180,13 @@ export class Account extends ClientSDK {
|
|
|
169
180
|
options,
|
|
170
181
|
));
|
|
171
182
|
}
|
|
183
|
+
|
|
184
|
+
async statsV1StatsGet(
|
|
185
|
+
options?: RequestOptions,
|
|
186
|
+
): Promise<operations.StatsV1StatsGetResponse> {
|
|
187
|
+
return unwrapAsync(accountStatsV1StatsGet(
|
|
188
|
+
this,
|
|
189
|
+
options,
|
|
190
|
+
));
|
|
191
|
+
}
|
|
172
192
|
}
|
package/src/sdk/badge.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { badgeAccountV1BookmarkBadge } from "../funcs/badgeAccountV1BookmarkBadge.js";
|
|
6
6
|
import { badgeAccountV1GetBadgeBookmarks } from "../funcs/badgeAccountV1GetBadgeBookmarks.js";
|
|
7
|
+
import { badgeAccountV1GetOwnedBadges } from "../funcs/badgeAccountV1GetOwnedBadges.js";
|
|
7
8
|
import { badgeBadgeV1Search } from "../funcs/badgeBadgeV1Search.js";
|
|
8
9
|
import { badgeGetTags } from "../funcs/badgeGetTags.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -32,6 +33,15 @@ export class Badge extends ClientSDK {
|
|
|
32
33
|
));
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
async accountV1GetOwnedBadges(
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<operations.AccountV1GetOwnedBadgesResponse> {
|
|
39
|
+
return unwrapAsync(badgeAccountV1GetOwnedBadges(
|
|
40
|
+
this,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
35
45
|
async getTags(
|
|
36
46
|
options?: RequestOptions,
|
|
37
47
|
): Promise<operations.BadgeV1TagsResponse> {
|
package/src/sdk/data.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { dataGetFriends } from "../funcs/dataGetFriends.js";
|
|
|
9
9
|
import { dataGetInfo } from "../funcs/dataGetInfo.js";
|
|
10
10
|
import { dataGetLeaderboardHistory } from "../funcs/dataGetLeaderboardHistory.js";
|
|
11
11
|
import { dataGetStaff } from "../funcs/dataGetStaff.js";
|
|
12
|
+
import { dataStatsV1StatsGet } from "../funcs/dataStatsV1StatsGet.js";
|
|
12
13
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
13
14
|
import * as components from "../models/components/index.js";
|
|
14
15
|
import * as operations from "../models/operations/index.js";
|
|
@@ -89,4 +90,13 @@ export class Data extends ClientSDK {
|
|
|
89
90
|
options,
|
|
90
91
|
));
|
|
91
92
|
}
|
|
93
|
+
|
|
94
|
+
async statsV1StatsGet(
|
|
95
|
+
options?: RequestOptions,
|
|
96
|
+
): Promise<operations.StatsV1StatsGetResponse> {
|
|
97
|
+
return unwrapAsync(dataStatsV1StatsGet(
|
|
98
|
+
this,
|
|
99
|
+
options,
|
|
100
|
+
));
|
|
101
|
+
}
|
|
92
102
|
}
|