@steamsets/client-ts 0.14.12 → 0.14.14
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 +75 -16
- package/docs/sdks/admin/README.md +2 -2
- package/docs/sdks/data/README.md +71 -0
- package/docs/sdks/images/README.md +4 -16
- package/funcs/accountAccountV1GetBadgeBookmarks.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadgeBookmarks.js +3 -2
- package/funcs/accountAccountV1GetBadgeBookmarks.js.map +1 -1
- package/funcs/accountAccountV1GetOwnedBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetOwnedBadges.js +3 -2
- package/funcs/accountAccountV1GetOwnedBadges.js.map +1 -1
- package/funcs/accountAccountV1ImagesGet.d.ts.map +1 -1
- package/funcs/accountAccountV1ImagesGet.js +3 -2
- package/funcs/accountAccountV1ImagesGet.js.map +1 -1
- package/funcs/accountAccountV1ImagesUpdate.d.ts.map +1 -1
- package/funcs/accountAccountV1ImagesUpdate.js +3 -2
- package/funcs/accountAccountV1ImagesUpdate.js.map +1 -1
- package/funcs/accountDeleteImages.d.ts.map +1 -1
- package/funcs/accountDeleteImages.js +3 -2
- package/funcs/accountDeleteImages.js.map +1 -1
- package/funcs/accountGetApps.d.ts.map +1 -1
- package/funcs/accountGetApps.js +3 -2
- package/funcs/accountGetApps.js.map +1 -1
- package/funcs/accountGetBadges.d.ts.map +1 -1
- package/funcs/accountGetBadges.js +3 -2
- package/funcs/accountGetBadges.js.map +1 -1
- package/funcs/accountGetDataPoints.d.ts.map +1 -1
- package/funcs/accountGetDataPoints.js +3 -2
- package/funcs/accountGetDataPoints.js.map +1 -1
- package/funcs/accountGetFriends.d.ts.map +1 -1
- package/funcs/accountGetFriends.js +3 -2
- package/funcs/accountGetFriends.js.map +1 -1
- package/funcs/accountGetInfo.d.ts.map +1 -1
- package/funcs/accountGetInfo.js +3 -2
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/accountGetLeaderboardHistory.js +3 -2
- package/funcs/accountGetLeaderboardHistory.js.map +1 -1
- package/funcs/accountGetStaff.d.ts.map +1 -1
- package/funcs/accountGetStaff.js +3 -2
- package/funcs/accountGetStaff.js.map +1 -1
- package/funcs/accountSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountSendEmailVerification.js +3 -2
- package/funcs/accountSendEmailVerification.js.map +1 -1
- package/funcs/accountStatsV1StatsGet.d.ts +10 -0
- package/funcs/accountStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/accountStatsV1StatsGet.js +100 -0
- package/funcs/accountStatsV1StatsGet.js.map +1 -0
- package/funcs/accountUploadImages.d.ts.map +1 -1
- package/funcs/accountUploadImages.js +3 -2
- package/funcs/accountUploadImages.js.map +1 -1
- package/funcs/accountVerifyEmail.d.ts.map +1 -1
- package/funcs/accountVerifyEmail.js +3 -2
- package/funcs/accountVerifyEmail.js.map +1 -1
- package/funcs/accountsQueue.d.ts.map +1 -1
- package/funcs/accountsQueue.js +3 -2
- package/funcs/accountsQueue.js.map +1 -1
- package/funcs/adminAdminV1GetEvents.d.ts.map +1 -1
- package/funcs/adminAdminV1GetEvents.js +3 -2
- package/funcs/adminAdminV1GetEvents.js.map +1 -1
- package/funcs/adminAdminV1UpdateEvent.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateEvent.js +3 -2
- package/funcs/adminAdminV1UpdateEvent.js.map +1 -1
- package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateResources.js +3 -2
- package/funcs/adminAdminV1UpdateResources.js.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.js +3 -2
- package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
- package/funcs/adminGetAccount.d.ts.map +1 -1
- package/funcs/adminGetAccount.js +3 -2
- package/funcs/adminGetAccount.js.map +1 -1
- package/funcs/badgeAccountV1BookmarkBadge.d.ts.map +1 -1
- package/funcs/badgeAccountV1BookmarkBadge.js +3 -2
- package/funcs/badgeAccountV1BookmarkBadge.js.map +1 -1
- package/funcs/badgeAccountV1GetBadgeBookmarks.d.ts.map +1 -1
- package/funcs/badgeAccountV1GetBadgeBookmarks.js +3 -2
- package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +1 -1
- package/funcs/badgeAccountV1GetOwnedBadges.d.ts.map +1 -1
- package/funcs/badgeAccountV1GetOwnedBadges.js +3 -2
- package/funcs/badgeAccountV1GetOwnedBadges.js.map +1 -1
- package/funcs/badgeBadgeV1Search.d.ts.map +1 -1
- package/funcs/badgeBadgeV1Search.js +3 -2
- package/funcs/badgeBadgeV1Search.js.map +1 -1
- package/funcs/badgeGetTags.d.ts.map +1 -1
- package/funcs/badgeGetTags.js +3 -2
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/badgesTag.d.ts.map +1 -1
- package/funcs/badgesTag.js +3 -2
- package/funcs/badgesTag.js.map +1 -1
- package/funcs/connectionDelete.d.ts.map +1 -1
- package/funcs/connectionDelete.js +3 -2
- package/funcs/connectionDelete.js.map +1 -1
- package/funcs/connectionUpdate.d.ts.map +1 -1
- package/funcs/connectionUpdate.js +3 -2
- package/funcs/connectionUpdate.js.map +1 -1
- package/funcs/connectionVerify.d.ts.map +1 -1
- package/funcs/connectionVerify.js +3 -2
- package/funcs/connectionVerify.js.map +1 -1
- package/funcs/connectionsConnect.d.ts.map +1 -1
- package/funcs/connectionsConnect.js +3 -2
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/dataGetApps.d.ts.map +1 -1
- package/funcs/dataGetApps.js +3 -2
- package/funcs/dataGetApps.js.map +1 -1
- package/funcs/dataGetBadges.d.ts.map +1 -1
- package/funcs/dataGetBadges.js +3 -2
- package/funcs/dataGetBadges.js.map +1 -1
- package/funcs/dataGetDataPoints.d.ts.map +1 -1
- package/funcs/dataGetDataPoints.js +3 -2
- package/funcs/dataGetDataPoints.js.map +1 -1
- package/funcs/dataGetFriends.d.ts.map +1 -1
- package/funcs/dataGetFriends.js +3 -2
- package/funcs/dataGetFriends.js.map +1 -1
- package/funcs/dataGetInfo.d.ts.map +1 -1
- package/funcs/dataGetInfo.js +3 -2
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/dataGetLeaderboardHistory.js +3 -2
- package/funcs/dataGetLeaderboardHistory.js.map +1 -1
- package/funcs/dataGetStaff.d.ts.map +1 -1
- package/funcs/dataGetStaff.js +3 -2
- package/funcs/dataGetStaff.js.map +1 -1
- package/funcs/dataStatsV1StatsGet.d.ts +10 -0
- package/funcs/dataStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/dataStatsV1StatsGet.js +100 -0
- package/funcs/dataStatsV1StatsGet.js.map +1 -0
- package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
- package/funcs/developerCreateDeveloperApp.js +3 -2
- package/funcs/developerCreateDeveloperApp.js.map +1 -1
- package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
- package/funcs/developerDeleteDeveloperApp.js +3 -2
- package/funcs/developerDeleteDeveloperApp.js.map +1 -1
- package/funcs/developerUpdateApp.d.ts.map +1 -1
- package/funcs/developerUpdateApp.js +3 -2
- package/funcs/developerUpdateApp.js.map +1 -1
- package/funcs/imagesAccountV1ImagesGet.d.ts.map +1 -1
- package/funcs/imagesAccountV1ImagesGet.js +3 -2
- package/funcs/imagesAccountV1ImagesGet.js.map +1 -1
- package/funcs/imagesAccountV1ImagesUpdate.d.ts.map +1 -1
- package/funcs/imagesAccountV1ImagesUpdate.js +3 -2
- package/funcs/imagesAccountV1ImagesUpdate.js.map +1 -1
- package/funcs/imagesDeleteImages.d.ts.map +1 -1
- package/funcs/imagesDeleteImages.js +3 -2
- package/funcs/imagesDeleteImages.js.map +1 -1
- package/funcs/imagesUploadImages.d.ts.map +1 -1
- package/funcs/imagesUploadImages.js +3 -2
- package/funcs/imagesUploadImages.js.map +1 -1
- package/funcs/leaderboardGetAccount.d.ts.map +1 -1
- package/funcs/leaderboardGetAccount.js +3 -2
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetBadges.d.ts.map +1 -1
- package/funcs/leaderboardGetBadges.js +3 -2
- package/funcs/leaderboardGetBadges.js.map +1 -1
- package/funcs/leaderboardGetGroup.d.ts.map +1 -1
- package/funcs/leaderboardGetGroup.js +3 -2
- package/funcs/leaderboardGetGroup.js.map +1 -1
- package/funcs/livenessCheck.d.ts.map +1 -1
- package/funcs/livenessCheck.js +3 -2
- package/funcs/livenessCheck.js.map +1 -1
- package/funcs/locationsGet.d.ts.map +1 -1
- package/funcs/locationsGet.js +3 -2
- package/funcs/locationsGet.js.map +1 -1
- package/funcs/publicGetApps.d.ts.map +1 -1
- package/funcs/publicGetApps.js +3 -2
- package/funcs/publicGetApps.js.map +1 -1
- package/funcs/publicGetBadges.d.ts.map +1 -1
- package/funcs/publicGetBadges.js +3 -2
- package/funcs/publicGetBadges.js.map +1 -1
- package/funcs/publicGetDataPoints.d.ts.map +1 -1
- package/funcs/publicGetDataPoints.js +3 -2
- package/funcs/publicGetDataPoints.js.map +1 -1
- package/funcs/publicGetFriends.d.ts.map +1 -1
- package/funcs/publicGetFriends.js +3 -2
- package/funcs/publicGetFriends.js.map +1 -1
- package/funcs/publicGetInfo.d.ts.map +1 -1
- package/funcs/publicGetInfo.js +3 -2
- package/funcs/publicGetInfo.js.map +1 -1
- package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/publicGetLeaderboardHistory.js +3 -2
- package/funcs/publicGetLeaderboardHistory.js.map +1 -1
- package/funcs/sessionCreate.d.ts.map +1 -1
- package/funcs/sessionCreate.js +3 -2
- package/funcs/sessionCreate.js.map +1 -1
- package/funcs/sessionLogin.d.ts.map +1 -1
- package/funcs/sessionLogin.js +3 -2
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/sessionsDelete.d.ts.map +1 -1
- package/funcs/sessionsDelete.js +3 -2
- package/funcs/sessionsDelete.js.map +1 -1
- package/funcs/sessionsGet.d.ts.map +1 -1
- package/funcs/sessionsGet.js +3 -2
- package/funcs/sessionsGet.js.map +1 -1
- package/funcs/settingsGet.d.ts.map +1 -1
- package/funcs/settingsGet.js +3 -2
- package/funcs/settingsGet.js.map +1 -1
- package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsSendEmailVerification.js +3 -2
- package/funcs/settingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsUpdate.d.ts.map +1 -1
- package/funcs/settingsUpdate.js +3 -2
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsVerifyEmail.d.ts.map +1 -1
- package/funcs/settingsVerifyEmail.js +3 -2
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +73 -47
- package/lib/encodings.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +10 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +4 -1
- package/lib/sdks.js.map +1 -1
- 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/v1accountbadgeownedbadge.d.ts +5 -0
- package/models/components/v1accountbadgeownedbadge.d.ts.map +1 -1
- package/models/components/v1accountbadgeownedbadge.js +2 -0
- package/models/components/v1accountbadgeownedbadge.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/accountAccountV1GetBadgeBookmarks.ts +3 -2
- package/src/funcs/accountAccountV1GetOwnedBadges.ts +3 -2
- package/src/funcs/accountAccountV1ImagesGet.ts +3 -2
- package/src/funcs/accountAccountV1ImagesUpdate.ts +3 -2
- package/src/funcs/accountDeleteImages.ts +3 -2
- package/src/funcs/accountGetApps.ts +3 -2
- package/src/funcs/accountGetBadges.ts +3 -2
- package/src/funcs/accountGetDataPoints.ts +3 -2
- package/src/funcs/accountGetFriends.ts +3 -2
- package/src/funcs/accountGetInfo.ts +3 -2
- package/src/funcs/accountGetLeaderboardHistory.ts +3 -2
- package/src/funcs/accountGetStaff.ts +3 -2
- package/src/funcs/accountSendEmailVerification.ts +3 -2
- package/src/funcs/accountStatsV1StatsGet.ts +126 -0
- package/src/funcs/accountUploadImages.ts +3 -2
- package/src/funcs/accountVerifyEmail.ts +3 -2
- package/src/funcs/accountsQueue.ts +3 -2
- package/src/funcs/adminAdminV1GetEvents.ts +3 -2
- package/src/funcs/adminAdminV1UpdateEvent.ts +3 -2
- package/src/funcs/adminAdminV1UpdateResources.ts +3 -2
- package/src/funcs/adminAdminV1UpdateRoles.ts +3 -2
- package/src/funcs/adminGetAccount.ts +3 -2
- package/src/funcs/badgeAccountV1BookmarkBadge.ts +3 -2
- package/src/funcs/badgeAccountV1GetBadgeBookmarks.ts +3 -2
- package/src/funcs/badgeAccountV1GetOwnedBadges.ts +3 -2
- package/src/funcs/badgeBadgeV1Search.ts +3 -2
- package/src/funcs/badgeGetTags.ts +3 -2
- package/src/funcs/badgesTag.ts +3 -2
- package/src/funcs/connectionDelete.ts +3 -2
- package/src/funcs/connectionUpdate.ts +3 -2
- package/src/funcs/connectionVerify.ts +3 -2
- package/src/funcs/connectionsConnect.ts +3 -2
- package/src/funcs/dataGetApps.ts +3 -2
- package/src/funcs/dataGetBadges.ts +3 -2
- package/src/funcs/dataGetDataPoints.ts +3 -2
- package/src/funcs/dataGetFriends.ts +3 -2
- package/src/funcs/dataGetInfo.ts +3 -2
- package/src/funcs/dataGetLeaderboardHistory.ts +3 -2
- package/src/funcs/dataGetStaff.ts +3 -2
- package/src/funcs/dataStatsV1StatsGet.ts +126 -0
- package/src/funcs/developerCreateDeveloperApp.ts +3 -2
- package/src/funcs/developerDeleteDeveloperApp.ts +3 -2
- package/src/funcs/developerUpdateApp.ts +3 -2
- package/src/funcs/imagesAccountV1ImagesGet.ts +3 -2
- package/src/funcs/imagesAccountV1ImagesUpdate.ts +3 -2
- package/src/funcs/imagesDeleteImages.ts +3 -2
- package/src/funcs/imagesUploadImages.ts +3 -2
- package/src/funcs/leaderboardGetAccount.ts +3 -2
- package/src/funcs/leaderboardGetBadges.ts +3 -2
- package/src/funcs/leaderboardGetGroup.ts +3 -2
- package/src/funcs/livenessCheck.ts +3 -2
- package/src/funcs/locationsGet.ts +3 -2
- package/src/funcs/publicGetApps.ts +3 -2
- package/src/funcs/publicGetBadges.ts +3 -2
- package/src/funcs/publicGetDataPoints.ts +3 -2
- package/src/funcs/publicGetFriends.ts +3 -2
- package/src/funcs/publicGetInfo.ts +3 -2
- package/src/funcs/publicGetLeaderboardHistory.ts +3 -2
- package/src/funcs/sessionCreate.ts +3 -2
- package/src/funcs/sessionLogin.ts +3 -2
- package/src/funcs/sessionsDelete.ts +3 -2
- package/src/funcs/sessionsGet.ts +3 -2
- package/src/funcs/settingsGet.ts +3 -2
- package/src/funcs/settingsSendEmailVerification.ts +3 -2
- package/src/funcs/settingsUpdate.ts +3 -2
- package/src/funcs/settingsVerifyEmail.ts +3 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +95 -61
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +4 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1accountbadgeownedbadge.ts +7 -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
package/src/lib/primitives.ts
CHANGED
|
@@ -120,3 +120,17 @@ export function abortSignalAny(signals: AbortSignal[]): AbortSignal {
|
|
|
120
120
|
|
|
121
121
|
return result;
|
|
122
122
|
}
|
|
123
|
+
|
|
124
|
+
export function compactMap<T>(
|
|
125
|
+
values: Record<string, T | undefined>,
|
|
126
|
+
): Record<string, T> {
|
|
127
|
+
const out: Record<string, T> = {};
|
|
128
|
+
|
|
129
|
+
for (const [k, v] of Object.entries(values)) {
|
|
130
|
+
if (typeof v !== "undefined") {
|
|
131
|
+
out[k] = v;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return out;
|
|
136
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -131,7 +131,10 @@ export class ClientSDK {
|
|
|
131
131
|
|
|
132
132
|
const secQuery: string[] = [];
|
|
133
133
|
for (const [k, v] of Object.entries(security?.queryParams || {})) {
|
|
134
|
-
|
|
134
|
+
const q = encodeForm(k, v, { charEncoding: "percent" });
|
|
135
|
+
if (typeof q !== "undefined") {
|
|
136
|
+
secQuery.push(q);
|
|
137
|
+
}
|
|
135
138
|
}
|
|
136
139
|
if (secQuery.length) {
|
|
137
140
|
finalQuery += `&${secQuery.join("&")}`;
|
|
@@ -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";
|
|
@@ -16,6 +16,10 @@ export type V1AccountBadgeOwnedBadge = {
|
|
|
16
16
|
* The badge id
|
|
17
17
|
*/
|
|
18
18
|
badgeId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the badge is foil or not
|
|
21
|
+
*/
|
|
22
|
+
isFoil: boolean;
|
|
19
23
|
/**
|
|
20
24
|
* The level of the badge
|
|
21
25
|
*/
|
|
@@ -34,6 +38,7 @@ export const V1AccountBadgeOwnedBadge$inboundSchema: z.ZodType<
|
|
|
34
38
|
> = z.object({
|
|
35
39
|
appId: z.number().int(),
|
|
36
40
|
badgeId: z.string(),
|
|
41
|
+
isFoil: z.boolean(),
|
|
37
42
|
level: z.number().int(),
|
|
38
43
|
steamId: z.number().int(),
|
|
39
44
|
});
|
|
@@ -42,6 +47,7 @@ export const V1AccountBadgeOwnedBadge$inboundSchema: z.ZodType<
|
|
|
42
47
|
export type V1AccountBadgeOwnedBadge$Outbound = {
|
|
43
48
|
appId: number;
|
|
44
49
|
badgeId: string;
|
|
50
|
+
isFoil: boolean;
|
|
45
51
|
level: number;
|
|
46
52
|
steamId: number;
|
|
47
53
|
};
|
|
@@ -54,6 +60,7 @@ export const V1AccountBadgeOwnedBadge$outboundSchema: z.ZodType<
|
|
|
54
60
|
> = z.object({
|
|
55
61
|
appId: z.number().int(),
|
|
56
62
|
badgeId: z.string(),
|
|
63
|
+
isFoil: z.boolean(),
|
|
57
64
|
level: z.number().int(),
|
|
58
65
|
steamId: z.number().int(),
|
|
59
66
|
});
|
|
@@ -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
|
}
|