@steamsets/client-ts 0.14.26 → 0.14.28
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 +83 -17
- package/docs/sdks/account/README.md +497 -13
- package/docs/sdks/admin/README.md +1 -1
- package/docs/sdks/badge/README.md +2 -0
- package/docs/sdks/data/README.md +5 -85
- package/docs/sdks/developer/README.md +1 -1
- package/docs/sdks/event/README.md +168 -0
- package/docs/sdks/{public → external}/README.md +93 -29
- package/docs/sdks/internal/README.md +1726 -0
- package/docs/sdks/leaderboard/README.md +2 -0
- package/docs/sdks/liveness/README.md +1 -1
- package/docs/sdks/stats/README.md +1 -1
- package/funcs/accountAdminV1UpdateResources.d.ts +11 -0
- package/funcs/accountAdminV1UpdateResources.d.ts.map +1 -0
- package/funcs/accountAdminV1UpdateResources.js +111 -0
- package/funcs/accountAdminV1UpdateResources.js.map +1 -0
- package/funcs/accountAdminV1UpdateRoles.d.ts +11 -0
- package/funcs/accountAdminV1UpdateRoles.d.ts.map +1 -0
- package/funcs/accountAdminV1UpdateRoles.js +111 -0
- package/funcs/accountAdminV1UpdateRoles.js.map +1 -0
- package/funcs/accountCreateDeveloperApp.d.ts +11 -0
- package/funcs/accountCreateDeveloperApp.d.ts.map +1 -0
- package/funcs/accountCreateDeveloperApp.js +111 -0
- package/funcs/accountCreateDeveloperApp.js.map +1 -0
- package/funcs/accountDeleteDeveloperApp.d.ts +11 -0
- package/funcs/accountDeleteDeveloperApp.d.ts.map +1 -0
- package/funcs/accountDeleteDeveloperApp.js +111 -0
- package/funcs/accountDeleteDeveloperApp.js.map +1 -0
- package/funcs/{publicGetBadges.d.ts → accountGetAccount.d.ts} +2 -2
- package/funcs/accountGetAccount.d.ts.map +1 -0
- package/funcs/accountGetAccount.js +113 -0
- package/funcs/accountGetAccount.js.map +1 -0
- package/funcs/accountUpdateApp.d.ts +11 -0
- package/funcs/{publicGetFriends.d.ts.map → accountUpdateApp.d.ts.map} +1 -1
- package/funcs/accountUpdateApp.js +111 -0
- package/funcs/{publicGetFriends.js.map → accountUpdateApp.js.map} +1 -1
- package/funcs/eventAdminV1GetEvents.d.ts +10 -0
- package/funcs/eventAdminV1GetEvents.d.ts.map +1 -0
- package/funcs/eventAdminV1GetEvents.js +102 -0
- package/funcs/eventAdminV1GetEvents.js.map +1 -0
- package/funcs/{publicGetLeaderboardHistory.d.ts → eventAdminV1UpdateEvent.d.ts} +2 -2
- package/funcs/eventAdminV1UpdateEvent.d.ts.map +1 -0
- package/funcs/eventAdminV1UpdateEvent.js +113 -0
- package/funcs/eventAdminV1UpdateEvent.js.map +1 -0
- package/funcs/externalGetApps.d.ts +11 -0
- package/funcs/{publicGetBadges.d.ts.map → externalGetApps.d.ts.map} +1 -1
- package/funcs/{publicGetApps.js → externalGetApps.js} +3 -3
- package/funcs/{publicGetBadges.js.map → externalGetApps.js.map} +1 -1
- package/funcs/{publicGetApps.d.ts → externalGetBadges.d.ts} +2 -2
- package/funcs/externalGetBadges.d.ts.map +1 -0
- package/funcs/{publicGetBadges.js → externalGetBadges.js} +3 -3
- package/funcs/externalGetBadges.js.map +1 -0
- package/funcs/{publicGetDataPoints.d.ts → externalGetDataPoints.d.ts} +2 -2
- package/funcs/externalGetDataPoints.d.ts.map +1 -0
- package/funcs/{publicGetDataPoints.js → externalGetDataPoints.js} +3 -3
- package/funcs/externalGetDataPoints.js.map +1 -0
- package/funcs/externalGetFriends.d.ts +11 -0
- package/funcs/externalGetFriends.d.ts.map +1 -0
- package/funcs/{publicGetFriends.js → externalGetFriends.js} +3 -3
- package/funcs/externalGetFriends.js.map +1 -0
- package/funcs/{publicGetInfo.d.ts → externalGetInfo.d.ts} +2 -2
- package/funcs/externalGetInfo.d.ts.map +1 -0
- package/funcs/{publicGetInfo.js → externalGetInfo.js} +3 -3
- package/funcs/externalGetInfo.js.map +1 -0
- package/funcs/externalGetLeaderboardHistory.d.ts +11 -0
- package/funcs/externalGetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/{publicGetLeaderboardHistory.js → externalGetLeaderboardHistory.js} +3 -3
- package/funcs/externalGetLeaderboardHistory.js.map +1 -0
- package/funcs/externalStatsV1StatsGet.d.ts +10 -0
- package/funcs/externalStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/externalStatsV1StatsGet.js +102 -0
- package/funcs/externalStatsV1StatsGet.js.map +1 -0
- package/funcs/internalAccountV1BookmarkBadge.d.ts +11 -0
- package/funcs/internalAccountV1BookmarkBadge.d.ts.map +1 -0
- package/funcs/internalAccountV1BookmarkBadge.js +113 -0
- package/funcs/internalAccountV1BookmarkBadge.js.map +1 -0
- package/funcs/internalAccountV1ConnectionReconnect.d.ts +11 -0
- package/funcs/internalAccountV1ConnectionReconnect.d.ts.map +1 -0
- package/funcs/internalAccountV1ConnectionReconnect.js +113 -0
- package/funcs/internalAccountV1ConnectionReconnect.js.map +1 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts +10 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts.map +1 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.js +102 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.js.map +1 -0
- package/funcs/internalAccountV1GetOwnedBadges.d.ts +10 -0
- package/funcs/internalAccountV1GetOwnedBadges.d.ts.map +1 -0
- package/funcs/internalAccountV1GetOwnedBadges.js +102 -0
- package/funcs/internalAccountV1GetOwnedBadges.js.map +1 -0
- package/funcs/internalAccountV1ImagesGet.d.ts +10 -0
- package/funcs/internalAccountV1ImagesGet.d.ts.map +1 -0
- package/funcs/internalAccountV1ImagesGet.js +100 -0
- package/funcs/internalAccountV1ImagesGet.js.map +1 -0
- package/funcs/internalAccountV1ImagesUpdate.d.ts +11 -0
- package/funcs/internalAccountV1ImagesUpdate.d.ts.map +1 -0
- package/funcs/internalAccountV1ImagesUpdate.js +113 -0
- package/funcs/internalAccountV1ImagesUpdate.js.map +1 -0
- package/funcs/internalAdminV1GetEvents.d.ts +10 -0
- package/funcs/internalAdminV1GetEvents.d.ts.map +1 -0
- package/funcs/internalAdminV1GetEvents.js +102 -0
- package/funcs/internalAdminV1GetEvents.js.map +1 -0
- package/funcs/internalAdminV1UpdateEvent.d.ts +11 -0
- package/funcs/internalAdminV1UpdateEvent.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateEvent.js +113 -0
- package/funcs/internalAdminV1UpdateEvent.js.map +1 -0
- package/funcs/internalAdminV1UpdateResources.d.ts +11 -0
- package/funcs/internalAdminV1UpdateResources.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateResources.js +111 -0
- package/funcs/internalAdminV1UpdateResources.js.map +1 -0
- package/funcs/internalAdminV1UpdateRoles.d.ts +11 -0
- package/funcs/internalAdminV1UpdateRoles.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateRoles.js +111 -0
- package/funcs/internalAdminV1UpdateRoles.js.map +1 -0
- package/funcs/internalBadgeV1Search.d.ts +11 -0
- package/funcs/internalBadgeV1Search.d.ts.map +1 -0
- package/funcs/internalBadgeV1Search.js +113 -0
- package/funcs/internalBadgeV1Search.js.map +1 -0
- package/funcs/internalCheck.d.ts +16 -0
- package/funcs/internalCheck.d.ts.map +1 -0
- package/funcs/internalCheck.js +106 -0
- package/funcs/internalCheck.js.map +1 -0
- package/funcs/internalCreateDeveloperApp.d.ts +11 -0
- package/funcs/internalCreateDeveloperApp.d.ts.map +1 -0
- package/funcs/internalCreateDeveloperApp.js +111 -0
- package/funcs/internalCreateDeveloperApp.js.map +1 -0
- package/funcs/internalDeleteDeveloperApp.d.ts +11 -0
- package/funcs/internalDeleteDeveloperApp.d.ts.map +1 -0
- package/funcs/internalDeleteDeveloperApp.js +111 -0
- package/funcs/internalDeleteDeveloperApp.js.map +1 -0
- package/funcs/internalDeleteImages.d.ts +11 -0
- package/funcs/internalDeleteImages.d.ts.map +1 -0
- package/funcs/internalDeleteImages.js +113 -0
- package/funcs/internalDeleteImages.js.map +1 -0
- package/funcs/{publicGetFriends.d.ts → internalGetAccount.d.ts} +2 -2
- package/funcs/internalGetAccount.d.ts.map +1 -0
- package/funcs/internalGetAccount.js +113 -0
- package/funcs/internalGetAccount.js.map +1 -0
- package/funcs/internalGetStaff.d.ts +10 -0
- package/funcs/internalGetStaff.d.ts.map +1 -0
- package/funcs/{dataGetStaff.js → internalGetStaff.js} +3 -3
- package/funcs/internalGetStaff.js.map +1 -0
- package/funcs/{dataGetStaff.d.ts → internalGetTags.d.ts} +2 -2
- package/funcs/internalGetTags.d.ts.map +1 -0
- package/funcs/internalGetTags.js +102 -0
- package/funcs/internalGetTags.js.map +1 -0
- package/funcs/internalSendEmailVerification.d.ts +10 -0
- package/funcs/internalSendEmailVerification.d.ts.map +1 -0
- package/funcs/internalSendEmailVerification.js +111 -0
- package/funcs/internalSendEmailVerification.js.map +1 -0
- package/funcs/internalUpdateApp.d.ts +11 -0
- package/funcs/internalUpdateApp.d.ts.map +1 -0
- package/funcs/internalUpdateApp.js +111 -0
- package/funcs/internalUpdateApp.js.map +1 -0
- package/funcs/internalUploadImages.d.ts +11 -0
- package/funcs/internalUploadImages.d.ts.map +1 -0
- package/funcs/internalUploadImages.js +113 -0
- package/funcs/internalUploadImages.js.map +1 -0
- package/funcs/internalVerifyEmail.d.ts +11 -0
- package/funcs/{publicGetDataPoints.d.ts.map → internalVerifyEmail.d.ts.map} +1 -1
- package/funcs/internalVerifyEmail.js +113 -0
- package/funcs/{publicGetDataPoints.js.map → internalVerifyEmail.js.map} +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +0 -5
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +0 -2
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +0 -5
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +0 -2
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +0 -5
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +0 -2
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +0 -5
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +0 -2
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1stats.d.ts +0 -5
- package/models/components/v1stats.d.ts.map +1 -1
- package/models/components/v1stats.js +0 -2
- package/models/components/v1stats.js.map +1 -1
- package/package.json +6 -7
- package/sdk/account.d.ts +6 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +24 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +0 -1
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +0 -4
- package/sdk/data.js.map +1 -1
- package/sdk/event.d.ts +8 -0
- package/sdk/event.d.ts.map +1 -0
- package/sdk/event.js +20 -0
- package/sdk/event.js.map +1 -0
- package/sdk/{public.d.ts → external.d.ts} +3 -2
- package/sdk/external.d.ts.map +1 -0
- package/sdk/external.js +40 -0
- package/sdk/external.js.map +1 -0
- package/sdk/internal.d.ts +34 -0
- package/sdk/internal.d.ts.map +1 -0
- package/sdk/internal.js +106 -0
- package/sdk/internal.js.map +1 -0
- package/sdk/sdk.d.ts +11 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -6
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountAdminV1UpdateResources.ts +148 -0
- package/src/funcs/accountAdminV1UpdateRoles.ts +148 -0
- package/src/funcs/accountCreateDeveloperApp.ts +152 -0
- package/src/funcs/accountDeleteDeveloperApp.ts +154 -0
- package/src/funcs/accountGetAccount.ts +149 -0
- package/src/funcs/accountUpdateApp.ts +154 -0
- package/src/funcs/eventAdminV1GetEvents.ts +132 -0
- package/src/funcs/eventAdminV1UpdateEvent.ts +150 -0
- package/src/funcs/{publicGetApps.ts → externalGetApps.ts} +1 -1
- package/src/funcs/{publicGetBadges.ts → externalGetBadges.ts} +1 -1
- package/src/funcs/{publicGetDataPoints.ts → externalGetDataPoints.ts} +1 -1
- package/src/funcs/{publicGetFriends.ts → externalGetFriends.ts} +1 -1
- package/src/funcs/{publicGetInfo.ts → externalGetInfo.ts} +1 -1
- package/src/funcs/{publicGetLeaderboardHistory.ts → externalGetLeaderboardHistory.ts} +1 -1
- package/src/funcs/externalStatsV1StatsGet.ts +132 -0
- package/src/funcs/internalAccountV1BookmarkBadge.ts +150 -0
- package/src/funcs/internalAccountV1ConnectionReconnect.ts +149 -0
- package/src/funcs/internalAccountV1GetBadgeBookmarks.ts +132 -0
- package/src/funcs/internalAccountV1GetOwnedBadges.ts +132 -0
- package/src/funcs/internalAccountV1ImagesGet.ts +127 -0
- package/src/funcs/internalAccountV1ImagesUpdate.ts +149 -0
- package/src/funcs/internalAdminV1GetEvents.ts +132 -0
- package/src/funcs/internalAdminV1UpdateEvent.ts +150 -0
- package/src/funcs/internalAdminV1UpdateResources.ts +148 -0
- package/src/funcs/internalAdminV1UpdateRoles.ts +148 -0
- package/src/funcs/internalBadgeV1Search.ts +149 -0
- package/src/funcs/internalCheck.ts +133 -0
- package/src/funcs/internalCreateDeveloperApp.ts +152 -0
- package/src/funcs/internalDeleteDeveloperApp.ts +154 -0
- package/src/funcs/internalDeleteImages.ts +149 -0
- package/src/funcs/internalGetAccount.ts +149 -0
- package/src/funcs/{dataGetStaff.ts → internalGetStaff.ts} +1 -1
- package/src/funcs/internalGetTags.ts +132 -0
- package/src/funcs/internalSendEmailVerification.ts +156 -0
- package/src/funcs/internalUpdateApp.ts +154 -0
- package/src/funcs/internalUploadImages.ts +149 -0
- package/src/funcs/internalVerifyEmail.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +0 -1
- package/src/models/components/leaderboardaccount.ts +0 -7
- package/src/models/components/v1accountfriend.ts +0 -7
- package/src/models/components/v1accountinforesponsebody.ts +0 -7
- package/src/models/components/v1accountleaderboardaccount.ts +0 -7
- package/src/models/components/v1stats.ts +0 -7
- package/src/sdk/account.ts +72 -0
- package/src/sdk/data.ts +0 -10
- package/src/sdk/event.ts +32 -0
- package/src/sdk/{public.ts → external.ts} +23 -13
- package/src/sdk/internal.ts +266 -0
- package/src/sdk/sdk.ts +21 -9
- package/funcs/dataGetStaff.d.ts.map +0 -1
- package/funcs/dataGetStaff.js.map +0 -1
- package/funcs/publicGetApps.d.ts.map +0 -1
- package/funcs/publicGetApps.js.map +0 -1
- package/funcs/publicGetInfo.d.ts.map +0 -1
- package/funcs/publicGetInfo.js.map +0 -1
- package/funcs/publicGetLeaderboardHistory.d.ts.map +0 -1
- package/funcs/publicGetLeaderboardHistory.js.map +0 -1
- package/sdk/public.d.ts.map +0 -1
- package/sdk/public.js +0 -36
- package/sdk/public.js.map +0 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function internalUpdateApp(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1AccountDeveloperAppUpdateRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1SettingsDeveloperAppUpdateResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) =>
|
|
48
|
+
components.V1AccountDeveloperAppUpdateRequestBody$outboundSchema.parse(
|
|
49
|
+
value,
|
|
50
|
+
),
|
|
51
|
+
"Input validation failed",
|
|
52
|
+
);
|
|
53
|
+
if (!parsed.ok) {
|
|
54
|
+
return parsed;
|
|
55
|
+
}
|
|
56
|
+
const payload = parsed.value;
|
|
57
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
58
|
+
|
|
59
|
+
const path = pathToFunc("/account.v1.AccountService/DeveloperAppUpdate")();
|
|
60
|
+
|
|
61
|
+
const headers = new Headers(compactMap({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/json",
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
67
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
68
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
|
+
|
|
70
|
+
const context = {
|
|
71
|
+
operationID: "account.v1.settings.developer-app-update",
|
|
72
|
+
oAuth2Scopes: [],
|
|
73
|
+
|
|
74
|
+
resolvedSecurity: requestSecurity,
|
|
75
|
+
|
|
76
|
+
securitySource: client._options.token,
|
|
77
|
+
retryConfig: options?.retries
|
|
78
|
+
|| client._options.retryConfig
|
|
79
|
+
|| {
|
|
80
|
+
strategy: "backoff",
|
|
81
|
+
backoff: {
|
|
82
|
+
initialInterval: 500,
|
|
83
|
+
maxInterval: 5000,
|
|
84
|
+
exponent: 1.5,
|
|
85
|
+
maxElapsedTime: 60000,
|
|
86
|
+
},
|
|
87
|
+
retryConnectionErrors: true,
|
|
88
|
+
}
|
|
89
|
+
|| { strategy: "none" },
|
|
90
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const requestRes = client._createRequest(context, {
|
|
94
|
+
security: requestSecurity,
|
|
95
|
+
method: "POST",
|
|
96
|
+
baseURL: options?.serverURL,
|
|
97
|
+
path: path,
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return requestRes;
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return doResult;
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const [result] = await M.match<
|
|
124
|
+
operations.AccountV1SettingsDeveloperAppUpdateResponse,
|
|
125
|
+
| errors.ErrorModel
|
|
126
|
+
| errors.ErrorModel
|
|
127
|
+
| SDKError
|
|
128
|
+
| SDKValidationError
|
|
129
|
+
| UnexpectedClientError
|
|
130
|
+
| InvalidRequestError
|
|
131
|
+
| RequestAbortedError
|
|
132
|
+
| RequestTimeoutError
|
|
133
|
+
| ConnectionError
|
|
134
|
+
>(
|
|
135
|
+
M.json(
|
|
136
|
+
200,
|
|
137
|
+
operations.AccountV1SettingsDeveloperAppUpdateResponse$inboundSchema,
|
|
138
|
+
{ key: "V1AccountDeveloperAppUpdateResponseBody" },
|
|
139
|
+
),
|
|
140
|
+
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
141
|
+
ctype: "application/problem+json",
|
|
142
|
+
}),
|
|
143
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
144
|
+
ctype: "application/problem+json",
|
|
145
|
+
}),
|
|
146
|
+
M.fail("4XX"),
|
|
147
|
+
M.fail("5XX"),
|
|
148
|
+
)(response, req, { extraFields: responseFields });
|
|
149
|
+
if (!result.ok) {
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function internalUploadImages(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1UploadImagesRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1ImagesUploadResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) => components.V1UploadImagesRequestBody$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
55
|
+
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/UploadImages")();
|
|
57
|
+
|
|
58
|
+
const headers = new Headers(compactMap({
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
64
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
|
|
67
|
+
const context = {
|
|
68
|
+
operationID: "account.v1.images.upload",
|
|
69
|
+
oAuth2Scopes: [],
|
|
70
|
+
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
|
|
73
|
+
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 5000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 60000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "POST",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return requestRes;
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: ["422", "4XX", "500", "5XX"],
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return doResult;
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [result] = await M.match<
|
|
121
|
+
operations.AccountV1ImagesUploadResponse,
|
|
122
|
+
| errors.ErrorModel
|
|
123
|
+
| errors.ErrorModel
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, operations.AccountV1ImagesUploadResponse$inboundSchema, {
|
|
133
|
+
key: "V1UploadImagesResponseBody",
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr(422, errors.ErrorModel$inboundSchema, {
|
|
136
|
+
ctype: "application/problem+json",
|
|
137
|
+
}),
|
|
138
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
139
|
+
ctype: "application/problem+json",
|
|
140
|
+
}),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function internalVerifyEmail(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1VerifyEmailRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1SettingsVerfyEmailResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) => components.V1VerifyEmailRequestBody$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
55
|
+
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/VerifyEmail")();
|
|
57
|
+
|
|
58
|
+
const headers = new Headers(compactMap({
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
Accept: "application/problem+json",
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
64
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
|
|
67
|
+
const context = {
|
|
68
|
+
operationID: "account.v1.settings.verfy-email",
|
|
69
|
+
oAuth2Scopes: [],
|
|
70
|
+
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
|
|
73
|
+
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 5000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 60000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "POST",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return requestRes;
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return doResult;
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [result] = await M.match<
|
|
121
|
+
operations.AccountV1SettingsVerfyEmailResponse,
|
|
122
|
+
| errors.ErrorModel
|
|
123
|
+
| errors.ErrorModel
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.nil(204, operations.AccountV1SettingsVerfyEmailResponse$inboundSchema, {
|
|
133
|
+
hdrs: true,
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
136
|
+
ctype: "application/problem+json",
|
|
137
|
+
}),
|
|
138
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
139
|
+
ctype: "application/problem+json",
|
|
140
|
+
}),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return result;
|
|
149
|
+
}
|
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.
|
|
59
|
-
genVersion: "2.
|
|
58
|
+
sdkVersion: "0.14.28",
|
|
59
|
+
genVersion: "2.500.5",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.14.
|
|
61
|
+
"speakeasy-sdk/typescript 0.14.28 2.500.5 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
package/src/lib/retries.ts
CHANGED
|
@@ -66,10 +66,6 @@ export type LeaderboardAccount = {
|
|
|
66
66
|
* The avatar hash of the account
|
|
67
67
|
*/
|
|
68
68
|
avatar: string;
|
|
69
|
-
/**
|
|
70
|
-
* The average playtime of the account
|
|
71
|
-
*/
|
|
72
|
-
averagePlaytime: number;
|
|
73
69
|
/**
|
|
74
70
|
* The number of awards the account has
|
|
75
71
|
*/
|
|
@@ -210,7 +206,6 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
210
206
|
appCost: z.number().int(),
|
|
211
207
|
apps: z.number().int(),
|
|
212
208
|
avatar: z.string(),
|
|
213
|
-
averagePlaytime: z.number().int(),
|
|
214
209
|
awardsGiven: z.number().int(),
|
|
215
210
|
awardsReceived: z.number().int(),
|
|
216
211
|
badges: z.number().int(),
|
|
@@ -248,7 +243,6 @@ export type LeaderboardAccount$Outbound = {
|
|
|
248
243
|
appCost: number;
|
|
249
244
|
apps: number;
|
|
250
245
|
avatar: string;
|
|
251
|
-
averagePlaytime: number;
|
|
252
246
|
awardsGiven: number;
|
|
253
247
|
awardsReceived: number;
|
|
254
248
|
badges: number;
|
|
@@ -290,7 +284,6 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
290
284
|
appCost: z.number().int(),
|
|
291
285
|
apps: z.number().int(),
|
|
292
286
|
avatar: z.string(),
|
|
293
|
-
averagePlaytime: z.number().int(),
|
|
294
287
|
awardsGiven: z.number().int(),
|
|
295
288
|
awardsReceived: z.number().int(),
|
|
296
289
|
badges: z.number().int(),
|
|
@@ -64,10 +64,6 @@ export type V1AccountFriend = {
|
|
|
64
64
|
* The avatar hash of the account
|
|
65
65
|
*/
|
|
66
66
|
avatar: string;
|
|
67
|
-
/**
|
|
68
|
-
* The average playtime of the account
|
|
69
|
-
*/
|
|
70
|
-
averagePlaytime: number;
|
|
71
67
|
/**
|
|
72
68
|
* The number of awards the account has
|
|
73
69
|
*/
|
|
@@ -207,7 +203,6 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
|
|
|
207
203
|
appCost: z.number().int(),
|
|
208
204
|
apps: z.number().int(),
|
|
209
205
|
avatar: z.string(),
|
|
210
|
-
averagePlaytime: z.number().int(),
|
|
211
206
|
awardsGiven: z.number().int(),
|
|
212
207
|
awardsReceived: z.number().int(),
|
|
213
208
|
badges: z.number().int(),
|
|
@@ -248,7 +243,6 @@ export type V1AccountFriend$Outbound = {
|
|
|
248
243
|
appCost: number;
|
|
249
244
|
apps: number;
|
|
250
245
|
avatar: string;
|
|
251
|
-
averagePlaytime: number;
|
|
252
246
|
awardsGiven: number;
|
|
253
247
|
awardsReceived: number;
|
|
254
248
|
badges: number;
|
|
@@ -291,7 +285,6 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
|
|
|
291
285
|
appCost: z.number().int(),
|
|
292
286
|
apps: z.number().int(),
|
|
293
287
|
avatar: z.string(),
|
|
294
|
-
averagePlaytime: z.number().int(),
|
|
295
288
|
awardsGiven: z.number().int(),
|
|
296
289
|
awardsReceived: z.number().int(),
|
|
297
290
|
badges: z.number().int(),
|
|
@@ -141,10 +141,6 @@ export type V1AccountInfoResponseBody = {
|
|
|
141
141
|
* The avatar frame of the account
|
|
142
142
|
*/
|
|
143
143
|
avatarFrame: string;
|
|
144
|
-
/**
|
|
145
|
-
* The average playtime of the account
|
|
146
|
-
*/
|
|
147
|
-
averagePlaytime: number;
|
|
148
144
|
/**
|
|
149
145
|
* The number of awards the account has
|
|
150
146
|
*/
|
|
@@ -400,7 +396,6 @@ export const V1AccountInfoResponseBody$inboundSchema: z.ZodType<
|
|
|
400
396
|
apps: z.number().int(),
|
|
401
397
|
avatar: z.string(),
|
|
402
398
|
avatarFrame: z.string(),
|
|
403
|
-
averagePlaytime: z.number().int(),
|
|
404
399
|
awardsGiven: z.number().int(),
|
|
405
400
|
awardsReceived: z.number().int(),
|
|
406
401
|
background: z.string(),
|
|
@@ -466,7 +461,6 @@ export type V1AccountInfoResponseBody$Outbound = {
|
|
|
466
461
|
apps: number;
|
|
467
462
|
avatar: string;
|
|
468
463
|
avatarFrame: string;
|
|
469
|
-
averagePlaytime: number;
|
|
470
464
|
awardsGiven: number;
|
|
471
465
|
awardsReceived: number;
|
|
472
466
|
background: string;
|
|
@@ -526,7 +520,6 @@ export const V1AccountInfoResponseBody$outboundSchema: z.ZodType<
|
|
|
526
520
|
apps: z.number().int(),
|
|
527
521
|
avatar: z.string(),
|
|
528
522
|
avatarFrame: z.string(),
|
|
529
|
-
averagePlaytime: z.number().int(),
|
|
530
523
|
awardsGiven: z.number().int(),
|
|
531
524
|
awardsReceived: z.number().int(),
|
|
532
525
|
background: z.string(),
|
|
@@ -76,10 +76,6 @@ export type V1AccountLeaderboardAccount = {
|
|
|
76
76
|
* The avatar hash of the account
|
|
77
77
|
*/
|
|
78
78
|
avatar: string;
|
|
79
|
-
/**
|
|
80
|
-
* The average playtime of the account
|
|
81
|
-
*/
|
|
82
|
-
averagePlaytime: number;
|
|
83
79
|
/**
|
|
84
80
|
* The number of awards the account has
|
|
85
81
|
*/
|
|
@@ -227,7 +223,6 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
|
|
|
227
223
|
appPlaytime: z.nullable(z.number().int()),
|
|
228
224
|
apps: z.number().int(),
|
|
229
225
|
avatar: z.string(),
|
|
230
|
-
averagePlaytime: z.number().int(),
|
|
231
226
|
awardsGiven: z.number().int(),
|
|
232
227
|
awardsReceived: z.number().int(),
|
|
233
228
|
badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
|
|
@@ -268,7 +263,6 @@ export type V1AccountLeaderboardAccount$Outbound = {
|
|
|
268
263
|
appPlaytime: number | null;
|
|
269
264
|
apps: number;
|
|
270
265
|
avatar: string;
|
|
271
|
-
averagePlaytime: number;
|
|
272
266
|
awardsGiven: number;
|
|
273
267
|
awardsReceived: number;
|
|
274
268
|
badgeInfo?: AccountBadgeInfo$Outbound | null | undefined;
|
|
@@ -313,7 +307,6 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
|
|
|
313
307
|
appPlaytime: z.nullable(z.number().int()),
|
|
314
308
|
apps: z.number().int(),
|
|
315
309
|
avatar: z.string(),
|
|
316
|
-
averagePlaytime: z.number().int(),
|
|
317
310
|
awardsGiven: z.number().int(),
|
|
318
311
|
awardsReceived: z.number().int(),
|
|
319
312
|
badgeInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
|
|
@@ -21,10 +21,6 @@ export type V1Stats = {
|
|
|
21
21
|
* The total number of accounts updated
|
|
22
22
|
*/
|
|
23
23
|
accountsUpdated: number;
|
|
24
|
-
/**
|
|
25
|
-
* The total cost of apps
|
|
26
|
-
*/
|
|
27
|
-
appCost: number;
|
|
28
24
|
/**
|
|
29
25
|
* The total playtime of apps
|
|
30
26
|
*/
|
|
@@ -105,7 +101,6 @@ export const V1Stats$inboundSchema: z.ZodType<V1Stats, z.ZodTypeDef, unknown> =
|
|
|
105
101
|
$schema: z.string().optional(),
|
|
106
102
|
accountsAdded: z.number().int(),
|
|
107
103
|
accountsUpdated: z.number().int(),
|
|
108
|
-
appCost: z.number().int(),
|
|
109
104
|
appPlaytime: z.number().int(),
|
|
110
105
|
apps: z.number().int(),
|
|
111
106
|
awardsGiven: z.number().int(),
|
|
@@ -135,7 +130,6 @@ export type V1Stats$Outbound = {
|
|
|
135
130
|
$schema?: string | undefined;
|
|
136
131
|
accountsAdded: number;
|
|
137
132
|
accountsUpdated: number;
|
|
138
|
-
appCost: number;
|
|
139
133
|
appPlaytime: number;
|
|
140
134
|
apps: number;
|
|
141
135
|
awardsGiven: number;
|
|
@@ -165,7 +159,6 @@ export const V1Stats$outboundSchema: z.ZodType<
|
|
|
165
159
|
dollarSchema: z.string().optional(),
|
|
166
160
|
accountsAdded: z.number().int(),
|
|
167
161
|
accountsUpdated: z.number().int(),
|
|
168
|
-
appCost: z.number().int(),
|
|
169
162
|
appPlaytime: z.number().int(),
|
|
170
163
|
apps: z.number().int(),
|
|
171
164
|
awardsGiven: z.number().int(),
|