@steamsets/client-ts 0.14.12 → 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 +4 -0
- package/docs/sdks/account/README.md +71 -0
- package/docs/sdks/data/README.md +71 -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/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 +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- 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/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/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 +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.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/accountStatsV1StatsGet.ts +125 -0
- package/src/funcs/dataStatsV1StatsGet.ts +125 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1stats.ts +218 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/statsv1statsget.ts +85 -0
- package/src/sdk/account.ts +10 -0
- package/src/sdk/data.ts +10 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import {
|
|
11
|
+
ConnectionError,
|
|
12
|
+
InvalidRequestError,
|
|
13
|
+
RequestAbortedError,
|
|
14
|
+
RequestTimeoutError,
|
|
15
|
+
UnexpectedClientError,
|
|
16
|
+
} from "../models/errors/httpclienterrors.js";
|
|
17
|
+
import * as errors from "../models/errors/index.js";
|
|
18
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
19
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
+
import * as operations from "../models/operations/index.js";
|
|
21
|
+
import { Result } from "../types/fp.js";
|
|
22
|
+
|
|
23
|
+
export async function dataStatsV1StatsGet(
|
|
24
|
+
client: SteamSetsCore,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): Promise<
|
|
27
|
+
Result<
|
|
28
|
+
operations.StatsV1StatsGetResponse,
|
|
29
|
+
| errors.ErrorModel
|
|
30
|
+
| SDKError
|
|
31
|
+
| SDKValidationError
|
|
32
|
+
| UnexpectedClientError
|
|
33
|
+
| InvalidRequestError
|
|
34
|
+
| RequestAbortedError
|
|
35
|
+
| RequestTimeoutError
|
|
36
|
+
| ConnectionError
|
|
37
|
+
>
|
|
38
|
+
> {
|
|
39
|
+
const path = pathToFunc("/stats.v1.StatsService/GetStats")();
|
|
40
|
+
|
|
41
|
+
const headers = new Headers({
|
|
42
|
+
Accept: "application/json",
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
46
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
47
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48
|
+
|
|
49
|
+
const context = {
|
|
50
|
+
operationID: "stats.v1.stats.get",
|
|
51
|
+
oAuth2Scopes: [],
|
|
52
|
+
|
|
53
|
+
resolvedSecurity: requestSecurity,
|
|
54
|
+
|
|
55
|
+
securitySource: client._options.token,
|
|
56
|
+
retryConfig: options?.retries
|
|
57
|
+
|| client._options.retryConfig
|
|
58
|
+
|| {
|
|
59
|
+
strategy: "backoff",
|
|
60
|
+
backoff: {
|
|
61
|
+
initialInterval: 500,
|
|
62
|
+
maxInterval: 5000,
|
|
63
|
+
exponent: 1.5,
|
|
64
|
+
maxElapsedTime: 60000,
|
|
65
|
+
},
|
|
66
|
+
retryConnectionErrors: true,
|
|
67
|
+
}
|
|
68
|
+
|| { strategy: "none" },
|
|
69
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const requestRes = client._createRequest(context, {
|
|
73
|
+
security: requestSecurity,
|
|
74
|
+
method: "POST",
|
|
75
|
+
baseURL: options?.serverURL,
|
|
76
|
+
path: path,
|
|
77
|
+
headers: headers,
|
|
78
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
79
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
80
|
+
}, options);
|
|
81
|
+
if (!requestRes.ok) {
|
|
82
|
+
return requestRes;
|
|
83
|
+
}
|
|
84
|
+
const req = requestRes.value;
|
|
85
|
+
|
|
86
|
+
const doResult = await client._do(req, {
|
|
87
|
+
context,
|
|
88
|
+
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
89
|
+
retryConfig: context.retryConfig,
|
|
90
|
+
retryCodes: context.retryCodes,
|
|
91
|
+
});
|
|
92
|
+
if (!doResult.ok) {
|
|
93
|
+
return doResult;
|
|
94
|
+
}
|
|
95
|
+
const response = doResult.value;
|
|
96
|
+
|
|
97
|
+
const responseFields = {
|
|
98
|
+
HttpMeta: { Response: response, Request: req },
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const [result] = await M.match<
|
|
102
|
+
operations.StatsV1StatsGetResponse,
|
|
103
|
+
| errors.ErrorModel
|
|
104
|
+
| SDKError
|
|
105
|
+
| SDKValidationError
|
|
106
|
+
| UnexpectedClientError
|
|
107
|
+
| InvalidRequestError
|
|
108
|
+
| RequestAbortedError
|
|
109
|
+
| RequestTimeoutError
|
|
110
|
+
| ConnectionError
|
|
111
|
+
>(
|
|
112
|
+
M.json(200, operations.StatsV1StatsGetResponse$inboundSchema, {
|
|
113
|
+
key: "V1Stats",
|
|
114
|
+
}),
|
|
115
|
+
M.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
116
|
+
ctype: "application/problem+json",
|
|
117
|
+
}),
|
|
118
|
+
M.fail(["4XX", "5XX"]),
|
|
119
|
+
)(response, req, { extraFields: responseFields });
|
|
120
|
+
if (!result.ok) {
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return result;
|
|
125
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.14.
|
|
58
|
+
sdkVersion: "0.14.13",
|
|
59
59
|
genVersion: "2.493.4",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.14.
|
|
61
|
+
"speakeasy-sdk/typescript 0.14.13 2.493.4 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -103,6 +103,7 @@ export * from "./v1leaderboardlocationinfo.js";
|
|
|
103
103
|
export * from "./v1livenessresponsebody.js";
|
|
104
104
|
export * from "./v1loginresponsebody.js";
|
|
105
105
|
export * from "./v1searchrequest.js";
|
|
106
|
+
export * from "./v1stats.js";
|
|
106
107
|
export * from "./v1updateconnectionrequestbody.js";
|
|
107
108
|
export * from "./v1updateconnectionresponsebody.js";
|
|
108
109
|
export * from "./v1updateimage.js";
|
|
@@ -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,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
|
@@ -15,6 +15,7 @@ import { accountGetInfo } from "../funcs/accountGetInfo.js";
|
|
|
15
15
|
import { accountGetLeaderboardHistory } from "../funcs/accountGetLeaderboardHistory.js";
|
|
16
16
|
import { accountGetStaff } from "../funcs/accountGetStaff.js";
|
|
17
17
|
import { accountSendEmailVerification } from "../funcs/accountSendEmailVerification.js";
|
|
18
|
+
import { accountStatsV1StatsGet } from "../funcs/accountStatsV1StatsGet.js";
|
|
18
19
|
import { accountUploadImages } from "../funcs/accountUploadImages.js";
|
|
19
20
|
import { accountVerifyEmail } from "../funcs/accountVerifyEmail.js";
|
|
20
21
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -179,4 +180,13 @@ export class Account extends ClientSDK {
|
|
|
179
180
|
options,
|
|
180
181
|
));
|
|
181
182
|
}
|
|
183
|
+
|
|
184
|
+
async statsV1StatsGet(
|
|
185
|
+
options?: RequestOptions,
|
|
186
|
+
): Promise<operations.StatsV1StatsGetResponse> {
|
|
187
|
+
return unwrapAsync(accountStatsV1StatsGet(
|
|
188
|
+
this,
|
|
189
|
+
options,
|
|
190
|
+
));
|
|
191
|
+
}
|
|
182
192
|
}
|
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
|
}
|