@steamsets/client-ts 0.5.0 → 0.5.2
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 +75 -9
- package/docs/sdks/account/README.md +383 -76
- package/docs/sdks/data/README.md +473 -0
- package/docs/sdks/location/README.md +80 -0
- package/docs/sdks/public/README.md +399 -0
- package/docs/sdks/session/README.md +62 -62
- package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
- package/funcs/accountAccountV1GetApps.js +4 -0
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +4 -0
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- package/funcs/accountAccountV1GetFriends.d.ts +13 -0
- package/funcs/accountAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/accountAccountV1GetFriends.js +105 -0
- package/funcs/accountAccountV1GetFriends.js.map +1 -0
- package/funcs/accountAccountV1GetInfo.d.ts +14 -0
- package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
- package/funcs/accountAccountV1GetInfo.js +96 -0
- package/funcs/accountAccountV1GetInfo.js.map +1 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -0
- package/funcs/accountAccountV1GetStaff.d.ts +13 -0
- package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
- package/funcs/accountAccountV1GetStaff.js +86 -0
- package/funcs/accountAccountV1GetStaff.js.map +1 -0
- package/funcs/accountAccountV1SessionCreate.js +1 -1
- package/funcs/accountAccountV1SessionLogin.js +2 -2
- package/funcs/accountAccountV1SessionLogin.js.map +1 -1
- package/funcs/dataAccountV1GetApps.d.ts +13 -0
- package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
- package/funcs/dataAccountV1GetApps.js +105 -0
- package/funcs/dataAccountV1GetApps.js.map +1 -0
- package/funcs/dataAccountV1GetBadges.d.ts +13 -0
- package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
- package/funcs/dataAccountV1GetBadges.js +105 -0
- package/funcs/dataAccountV1GetBadges.js.map +1 -0
- package/funcs/dataAccountV1GetFriends.d.ts +13 -0
- package/funcs/dataAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/dataAccountV1GetFriends.js +105 -0
- package/funcs/dataAccountV1GetFriends.js.map +1 -0
- package/funcs/dataAccountV1GetInfo.d.ts +14 -0
- package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
- package/funcs/dataAccountV1GetInfo.js +96 -0
- package/funcs/dataAccountV1GetInfo.js.map +1 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -0
- package/funcs/dataAccountV1GetStaff.d.ts +13 -0
- package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
- package/funcs/dataAccountV1GetStaff.js +86 -0
- package/funcs/dataAccountV1GetStaff.js.map +1 -0
- package/funcs/locationLocation.d.ts +16 -0
- package/funcs/locationLocation.d.ts.map +1 -0
- package/funcs/locationLocation.js +87 -0
- package/funcs/locationLocation.js.map +1 -0
- package/funcs/publicAccountV1GetApps.d.ts +13 -0
- package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
- package/funcs/publicAccountV1GetApps.js +105 -0
- package/funcs/publicAccountV1GetApps.js.map +1 -0
- package/funcs/publicAccountV1GetBadges.d.ts +13 -0
- package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
- package/funcs/publicAccountV1GetBadges.js +105 -0
- package/funcs/publicAccountV1GetBadges.js.map +1 -0
- package/funcs/publicAccountV1GetFriends.d.ts +13 -0
- package/funcs/publicAccountV1GetFriends.d.ts.map +1 -0
- package/funcs/publicAccountV1GetFriends.js +105 -0
- package/funcs/publicAccountV1GetFriends.js.map +1 -0
- package/funcs/publicAccountV1GetInfo.d.ts +14 -0
- package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
- package/funcs/publicAccountV1GetInfo.js +96 -0
- package/funcs/publicAccountV1GetInfo.js.map +1 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +13 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.js +105 -0
- package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -0
- package/funcs/sessionAccountV1SessionCreate.js +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +2 -2
- package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +6 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +5 -0
- package/lib/security.js.map +1 -1
- package/models/components/accountinfobody.d.ts +379 -0
- package/models/components/accountinfobody.d.ts.map +1 -0
- package/models/components/accountinfobody.js +254 -0
- package/models/components/accountinfobody.js.map +1 -0
- package/models/components/accountleaderboardhistory.d.ts +96 -0
- package/models/components/accountleaderboardhistory.d.ts.map +1 -0
- package/models/components/accountleaderboardhistory.js +91 -0
- package/models/components/accountleaderboardhistory.js.map +1 -0
- package/models/components/bestleaderboardrank.d.ts +110 -0
- package/models/components/bestleaderboardrank.d.ts.map +1 -0
- package/models/components/bestleaderboardrank.js +89 -0
- package/models/components/bestleaderboardrank.js.map +1 -0
- package/models/components/city.d.ts +28 -0
- package/models/components/city.d.ts.map +1 -0
- package/models/components/city.js +50 -0
- package/models/components/city.js.map +1 -0
- package/models/components/country.d.ts +43 -0
- package/models/components/country.d.ts.map +1 -0
- package/models/components/country.js +55 -0
- package/models/components/country.js.map +1 -0
- package/models/components/index.d.ts +14 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -1
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +196 -0
- package/models/components/leaderboardaccount.d.ts.map +1 -0
- package/models/components/leaderboardaccount.js +128 -0
- package/models/components/leaderboardaccount.js.map +1 -0
- package/models/components/leaderboardbadgeinfo.d.ts +33 -0
- package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
- package/models/components/leaderboardbadgeinfo.js +55 -0
- package/models/components/leaderboardbadgeinfo.js.map +1 -0
- package/models/components/location.d.ts +38 -0
- package/models/components/location.d.ts.map +1 -0
- package/models/components/location.js +54 -0
- package/models/components/location.js.map +1 -0
- package/models/components/region.d.ts +38 -0
- package/models/components/region.d.ts.map +1 -0
- package/models/components/region.js +53 -0
- package/models/components/region.js.map +1 -0
- package/models/components/role.d.ts +2 -2
- package/models/components/role.d.ts.map +1 -1
- package/models/components/role.js +4 -17
- package/models/components/role.js.map +1 -1
- package/models/components/state.d.ts +43 -0
- package/models/components/state.d.ts.map +1 -0
- package/models/components/state.js +55 -0
- package/models/components/state.js.map +1 -0
- package/models/components/v1accountapp.d.ts +53 -0
- package/models/components/v1accountapp.d.ts.map +1 -0
- package/models/components/{v1app.js → v1accountapp.js} +11 -11
- package/models/components/v1accountapp.js.map +1 -0
- package/models/components/v1accountfriend.d.ts +198 -0
- package/models/components/v1accountfriend.d.ts.map +1 -0
- package/models/components/v1accountfriend.js +133 -0
- package/models/components/v1accountfriend.js.map +1 -0
- package/models/components/v1accountfriendsresponsebody.d.ts +31 -0
- package/models/components/v1accountfriendsresponsebody.d.ts.map +1 -0
- package/models/components/v1accountfriendsresponsebody.js +66 -0
- package/models/components/v1accountfriendsresponsebody.js.map +1 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.d.ts +31 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.d.ts.map +1 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.js +66 -0
- package/models/components/v1accountleaderboardhistoryresponsebody.js.map +1 -0
- package/models/components/v1accountsappsresponsebody.d.ts +3 -3
- package/models/components/v1accountsappsresponsebody.d.ts.map +1 -1
- package/models/components/v1accountsappsresponsebody.js +3 -3
- package/models/components/v1accountsappsresponsebody.js.map +1 -1
- package/models/errors/errormodel.d.ts +5 -5
- package/models/errors/errormodel.d.ts.map +1 -1
- package/models/errors/errormodel.js +4 -2
- package/models/errors/errormodel.js.map +1 -1
- package/models/operations/accountv1getapps.d.ts +2 -0
- package/models/operations/accountv1getapps.d.ts.map +1 -1
- package/models/operations/accountv1getapps.js +4 -0
- package/models/operations/accountv1getapps.js.map +1 -1
- package/models/operations/accountv1getbadges.d.ts +2 -0
- package/models/operations/accountv1getbadges.d.ts.map +1 -1
- package/models/operations/accountv1getbadges.js +4 -0
- package/models/operations/accountv1getbadges.js.map +1 -1
- package/models/operations/accountv1getfriends.d.ts +58 -0
- package/models/operations/accountv1getfriends.d.ts.map +1 -0
- package/models/operations/accountv1getfriends.js +107 -0
- package/models/operations/accountv1getfriends.js.map +1 -0
- package/models/operations/accountv1getinfo.d.ts +31 -0
- package/models/operations/accountv1getinfo.d.ts.map +1 -0
- package/models/operations/accountv1getinfo.js +68 -0
- package/models/operations/accountv1getinfo.js.map +1 -0
- package/models/operations/accountv1getleaderboardhistory.d.ts +58 -0
- package/models/operations/accountv1getleaderboardhistory.d.ts.map +1 -0
- package/models/operations/accountv1getleaderboardhistory.js +107 -0
- package/models/operations/accountv1getleaderboardhistory.js.map +1 -0
- package/models/operations/accountv1getstaff.d.ts +31 -0
- package/models/operations/accountv1getstaff.d.ts.map +1 -0
- package/models/operations/accountv1getstaff.js +72 -0
- package/models/operations/accountv1getstaff.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/location.d.ts +31 -0
- package/models/operations/location.d.ts.map +1 -0
- package/models/operations/location.js +68 -0
- package/models/operations/location.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +20 -4
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +34 -6
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +30 -0
- package/sdk/data.d.ts.map +1 -0
- package/sdk/data.js +54 -0
- package/sdk/data.js.map +1 -0
- package/sdk/location.d.ts +12 -0
- package/sdk/location.d.ts.map +1 -0
- package/sdk/location.js +22 -0
- package/sdk/location.js.map +1 -0
- package/sdk/public.d.ts +26 -0
- package/sdk/public.d.ts.map +1 -0
- package/sdk/public.js +47 -0
- package/sdk/public.js.map +1 -0
- package/sdk/sdk.d.ts +11 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +17 -2
- package/sdk/sdk.js.map +1 -1
- package/sdk/session.d.ts +4 -4
- package/sdk/session.d.ts.map +1 -1
- package/sdk/session.js +6 -6
- package/sdk/session.js.map +1 -1
- package/src/funcs/accountAccountV1GetApps.ts +4 -0
- package/src/funcs/accountAccountV1GetBadges.ts +4 -0
- package/src/funcs/accountAccountV1GetFriends.ts +139 -0
- package/src/funcs/accountAccountV1GetInfo.ts +130 -0
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/accountAccountV1GetStaff.ts +113 -0
- package/src/funcs/accountAccountV1SessionCreate.ts +1 -1
- package/src/funcs/accountAccountV1SessionLogin.ts +2 -2
- package/src/funcs/dataAccountV1GetApps.ts +139 -0
- package/src/funcs/dataAccountV1GetBadges.ts +139 -0
- package/src/funcs/dataAccountV1GetFriends.ts +139 -0
- package/src/funcs/dataAccountV1GetInfo.ts +130 -0
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/dataAccountV1GetStaff.ts +113 -0
- package/src/funcs/locationLocation.ts +114 -0
- package/src/funcs/publicAccountV1GetApps.ts +139 -0
- package/src/funcs/publicAccountV1GetBadges.ts +139 -0
- package/src/funcs/publicAccountV1GetFriends.ts +139 -0
- package/src/funcs/publicAccountV1GetInfo.ts +130 -0
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/sessionAccountV1SessionCreate.ts +1 -1
- package/src/funcs/sessionAccountV1SessionLogin.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +12 -1
- package/src/models/components/accountinfobody.ts +532 -0
- package/src/models/components/accountleaderboardhistory.ts +103 -0
- package/src/models/components/bestleaderboardrank.ts +102 -0
- package/src/models/components/city.ts +40 -0
- package/src/models/components/country.ts +55 -0
- package/src/models/components/index.ts +14 -1
- package/src/models/components/leaderboardaccount.ts +301 -0
- package/src/models/components/leaderboardbadgeinfo.ts +58 -0
- package/src/models/components/location.ts +55 -0
- package/src/models/components/region.ts +53 -0
- package/src/models/components/role.ts +14 -27
- package/src/models/components/state.ts +55 -0
- package/src/models/components/{v1app.ts → v1accountapp.ts} +15 -11
- package/src/models/components/v1accountfriend.ts +307 -0
- package/src/models/components/v1accountfriendsresponsebody.ts +71 -0
- package/src/models/components/v1accountleaderboardhistoryresponsebody.ts +71 -0
- package/src/models/components/v1accountsappsresponsebody.ts +10 -5
- package/src/models/errors/errormodel.ts +8 -6
- package/src/models/operations/accountv1getapps.ts +6 -0
- package/src/models/operations/accountv1getbadges.ts +6 -0
- package/src/models/operations/accountv1getfriends.ts +134 -0
- package/src/models/operations/accountv1getinfo.ts +68 -0
- package/src/models/operations/accountv1getleaderboardhistory.ts +138 -0
- package/src/models/operations/accountv1getstaff.ts +72 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/location.ts +64 -0
- package/src/sdk/account.ts +53 -10
- package/src/sdk/data.ts +75 -0
- package/src/sdk/location.ts +20 -0
- package/src/sdk/public.ts +65 -0
- package/src/sdk/sdk.ts +21 -3
- package/src/sdk/session.ts +10 -10
- package/models/components/v1app.d.ts +0 -53
- package/models/components/v1app.d.ts.map +0 -1
- package/models/components/v1app.js.map +0 -1
|
@@ -99,7 +99,7 @@ export async function sessionAccountV1SessionLogin(
|
|
|
99
99
|
|
|
100
100
|
const doResult = await client$.do$(request$, {
|
|
101
101
|
context,
|
|
102
|
-
errorCodes: ["422", "4XX", "500", "5XX"],
|
|
102
|
+
errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
|
|
103
103
|
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
104
104
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
105
105
|
});
|
|
@@ -126,7 +126,7 @@ export async function sessionAccountV1SessionLogin(
|
|
|
126
126
|
m$.json(200, operations.AccountV1SessionLoginResponse$inboundSchema, {
|
|
127
127
|
key: "V1LoginResponseBody",
|
|
128
128
|
}),
|
|
129
|
-
m$.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
|
|
129
|
+
m$.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
130
130
|
ctype: "application/problem+json",
|
|
131
131
|
}),
|
|
132
132
|
m$.fail(["4XX", "5XX"])
|
package/src/lib/config.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
52
52
|
export const SDK_METADATA = {
|
|
53
53
|
language: "typescript",
|
|
54
54
|
openapiDocVersion: "1.0.0",
|
|
55
|
-
sdkVersion: "0.5.
|
|
56
|
-
genVersion: "2.
|
|
57
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
55
|
+
sdkVersion: "0.5.2",
|
|
56
|
+
genVersion: "2.407.0",
|
|
57
|
+
userAgent: "speakeasy-sdk/typescript 0.5.2 2.407.0 1.0.0 @steamsets/client-ts",
|
|
58
58
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -71,13 +71,20 @@ type SecurityInputOAuth2ClientCredentials = {
|
|
|
71
71
|
fieldName: string;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
+
type SecurityInputCustom = {
|
|
75
|
+
type: "http:custom";
|
|
76
|
+
value: any | null | undefined;
|
|
77
|
+
fieldName: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
74
80
|
export type SecurityInput =
|
|
75
81
|
| SecurityInputBasic
|
|
76
82
|
| SecurityInputBearer
|
|
77
83
|
| SecurityInputAPIKey
|
|
78
84
|
| SecurityInputOAuth2
|
|
79
85
|
| SecurityInputOAuth2ClientCredentials
|
|
80
|
-
| SecurityInputOIDC
|
|
86
|
+
| SecurityInputOIDC
|
|
87
|
+
| SecurityInputCustom;
|
|
81
88
|
|
|
82
89
|
export function resolveSecurity(...options: SecurityInput[][]): SecurityState | null {
|
|
83
90
|
const state: SecurityState = {
|
|
@@ -93,6 +100,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
|
|
|
93
100
|
return false;
|
|
94
101
|
} else if (o.type === "http:basic") {
|
|
95
102
|
return o.value.username != null || o.value.password != null;
|
|
103
|
+
} else if (o.type === "http:custom") {
|
|
104
|
+
return null;
|
|
96
105
|
} else if (typeof o.value === "string") {
|
|
97
106
|
return !!o.value;
|
|
98
107
|
} else {
|
|
@@ -126,6 +135,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
|
|
|
126
135
|
case "http:basic":
|
|
127
136
|
applyBasic(state, spec);
|
|
128
137
|
break;
|
|
138
|
+
case "http:custom":
|
|
139
|
+
break;
|
|
129
140
|
case "http:bearer":
|
|
130
141
|
applyBearer(state, spec);
|
|
131
142
|
break;
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
BestLeaderboardRank,
|
|
9
|
+
BestLeaderboardRank$inboundSchema,
|
|
10
|
+
BestLeaderboardRank$Outbound,
|
|
11
|
+
BestLeaderboardRank$outboundSchema,
|
|
12
|
+
} from "./bestleaderboardrank.js";
|
|
13
|
+
import {
|
|
14
|
+
Connection,
|
|
15
|
+
Connection$inboundSchema,
|
|
16
|
+
Connection$Outbound,
|
|
17
|
+
Connection$outboundSchema,
|
|
18
|
+
} from "./connection.js";
|
|
19
|
+
import { Image, Image$inboundSchema, Image$Outbound, Image$outboundSchema } from "./image.js";
|
|
20
|
+
import {
|
|
21
|
+
Location,
|
|
22
|
+
Location$inboundSchema,
|
|
23
|
+
Location$Outbound,
|
|
24
|
+
Location$outboundSchema,
|
|
25
|
+
} from "./location.js";
|
|
26
|
+
import { Role, Role$inboundSchema, Role$Outbound, Role$outboundSchema } from "./role.js";
|
|
27
|
+
import * as z from "zod";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The privacy of the account
|
|
31
|
+
*/
|
|
32
|
+
export const AppPrivacy = {
|
|
33
|
+
Private: "private",
|
|
34
|
+
Public: "public",
|
|
35
|
+
FriendsOnly: "friends_only",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* The privacy of the account
|
|
39
|
+
*/
|
|
40
|
+
export type AppPrivacy = ClosedEnum<typeof AppPrivacy>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The privacy of the account
|
|
44
|
+
*/
|
|
45
|
+
export const FriendPrivacy = {
|
|
46
|
+
Private: "private",
|
|
47
|
+
Public: "public",
|
|
48
|
+
FriendsOnly: "friends_only",
|
|
49
|
+
} as const;
|
|
50
|
+
/**
|
|
51
|
+
* The privacy of the account
|
|
52
|
+
*/
|
|
53
|
+
export type FriendPrivacy = ClosedEnum<typeof FriendPrivacy>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The privacy of the account
|
|
57
|
+
*/
|
|
58
|
+
export const Privacy = {
|
|
59
|
+
Private: "private",
|
|
60
|
+
Public: "public",
|
|
61
|
+
FriendsOnly: "friends_only",
|
|
62
|
+
} as const;
|
|
63
|
+
/**
|
|
64
|
+
* The privacy of the account
|
|
65
|
+
*/
|
|
66
|
+
export type Privacy = ClosedEnum<typeof Privacy>;
|
|
67
|
+
|
|
68
|
+
export type AccountInfoBody = {
|
|
69
|
+
/**
|
|
70
|
+
* A URL to the JSON Schema for this object.
|
|
71
|
+
*/
|
|
72
|
+
dollarSchema?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The account id
|
|
75
|
+
*/
|
|
76
|
+
accountId: number;
|
|
77
|
+
/**
|
|
78
|
+
* The animated avatar of the account
|
|
79
|
+
*/
|
|
80
|
+
animatedAvatar: string;
|
|
81
|
+
/**
|
|
82
|
+
* The cost of an app
|
|
83
|
+
*/
|
|
84
|
+
appCost: number;
|
|
85
|
+
/**
|
|
86
|
+
* The privacy of the account
|
|
87
|
+
*/
|
|
88
|
+
appPrivacy: AppPrivacy;
|
|
89
|
+
/**
|
|
90
|
+
* The number of apps the account has
|
|
91
|
+
*/
|
|
92
|
+
apps: number;
|
|
93
|
+
/**
|
|
94
|
+
* The time the apps were updated
|
|
95
|
+
*/
|
|
96
|
+
appsUpdatedAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* The avatar hash of the account
|
|
99
|
+
*/
|
|
100
|
+
avatar: string;
|
|
101
|
+
/**
|
|
102
|
+
* The avatar frame of the account
|
|
103
|
+
*/
|
|
104
|
+
avatarFrame: string;
|
|
105
|
+
/**
|
|
106
|
+
* The average playtime of the account
|
|
107
|
+
*/
|
|
108
|
+
averagePlaytime: number;
|
|
109
|
+
/**
|
|
110
|
+
* The number of awards the account has
|
|
111
|
+
*/
|
|
112
|
+
awardsGiven: number;
|
|
113
|
+
/**
|
|
114
|
+
* The number of awards the account has
|
|
115
|
+
*/
|
|
116
|
+
awardsReceived: number;
|
|
117
|
+
/**
|
|
118
|
+
* The background of the account
|
|
119
|
+
*/
|
|
120
|
+
background: string;
|
|
121
|
+
/**
|
|
122
|
+
* The number of badges the account has
|
|
123
|
+
*/
|
|
124
|
+
badges: number;
|
|
125
|
+
/**
|
|
126
|
+
* The time the badges were updated
|
|
127
|
+
*/
|
|
128
|
+
badgesUpdatedAt: Date;
|
|
129
|
+
/**
|
|
130
|
+
* The number of bans
|
|
131
|
+
*/
|
|
132
|
+
bans: number;
|
|
133
|
+
city?: Location | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* The connections of the account
|
|
136
|
+
*/
|
|
137
|
+
connections: Array<Connection> | null;
|
|
138
|
+
country?: Location | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* The time the account was created
|
|
141
|
+
*/
|
|
142
|
+
createdAt: Date;
|
|
143
|
+
/**
|
|
144
|
+
* The current best ranks
|
|
145
|
+
*/
|
|
146
|
+
currentBestRanks: Array<BestLeaderboardRank> | null;
|
|
147
|
+
/**
|
|
148
|
+
* The current ranks
|
|
149
|
+
*/
|
|
150
|
+
currentRanks: Array<BestLeaderboardRank> | null;
|
|
151
|
+
/**
|
|
152
|
+
* The economy ban of the account
|
|
153
|
+
*/
|
|
154
|
+
economyBan: string;
|
|
155
|
+
/**
|
|
156
|
+
* The cost of a foil badge
|
|
157
|
+
*/
|
|
158
|
+
foilBadgeCost: number;
|
|
159
|
+
/**
|
|
160
|
+
* The number of foil badges the account has
|
|
161
|
+
*/
|
|
162
|
+
foilBadges: number;
|
|
163
|
+
/**
|
|
164
|
+
* The privacy of the account
|
|
165
|
+
*/
|
|
166
|
+
friendPrivacy: FriendPrivacy;
|
|
167
|
+
/**
|
|
168
|
+
* The number of friends the account has
|
|
169
|
+
*/
|
|
170
|
+
friends: number;
|
|
171
|
+
/**
|
|
172
|
+
* The time the friends were updated
|
|
173
|
+
*/
|
|
174
|
+
friendsUpdatedAt: Date;
|
|
175
|
+
/**
|
|
176
|
+
* The number of game bans
|
|
177
|
+
*/
|
|
178
|
+
gameBans: number;
|
|
179
|
+
/**
|
|
180
|
+
* Whether the account is hidden in the leaderboards
|
|
181
|
+
*/
|
|
182
|
+
hidden: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* The images of the account
|
|
185
|
+
*/
|
|
186
|
+
images: Array<Image> | null;
|
|
187
|
+
/**
|
|
188
|
+
* The level of the account
|
|
189
|
+
*/
|
|
190
|
+
level: number;
|
|
191
|
+
/**
|
|
192
|
+
* The number of limited apps the account has
|
|
193
|
+
*/
|
|
194
|
+
limitedApps: number;
|
|
195
|
+
/**
|
|
196
|
+
* The mini background of the account
|
|
197
|
+
*/
|
|
198
|
+
miniBackground: string;
|
|
199
|
+
/**
|
|
200
|
+
* The name of the account
|
|
201
|
+
*/
|
|
202
|
+
name: string;
|
|
203
|
+
/**
|
|
204
|
+
* The cost of a normal badge
|
|
205
|
+
*/
|
|
206
|
+
normalBadgeCost: number;
|
|
207
|
+
/**
|
|
208
|
+
* The number of normal badges the account has
|
|
209
|
+
*/
|
|
210
|
+
normalBadges: number;
|
|
211
|
+
/**
|
|
212
|
+
* The playtime of the account
|
|
213
|
+
*/
|
|
214
|
+
playtime: number;
|
|
215
|
+
/**
|
|
216
|
+
* The number of points the account has
|
|
217
|
+
*/
|
|
218
|
+
pointsGiven: number;
|
|
219
|
+
/**
|
|
220
|
+
* The number of points the account has
|
|
221
|
+
*/
|
|
222
|
+
pointsReceived: number;
|
|
223
|
+
/**
|
|
224
|
+
* The privacy of the account
|
|
225
|
+
*/
|
|
226
|
+
privacy: Privacy;
|
|
227
|
+
region?: Location | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* The roles of the account
|
|
230
|
+
*/
|
|
231
|
+
roles: Array<Role> | null;
|
|
232
|
+
state?: Location | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* The steam id
|
|
235
|
+
*/
|
|
236
|
+
steamId: string;
|
|
237
|
+
/**
|
|
238
|
+
* The steam sets score
|
|
239
|
+
*/
|
|
240
|
+
steamSetsScore: number;
|
|
241
|
+
/**
|
|
242
|
+
* The vanity of the account
|
|
243
|
+
*/
|
|
244
|
+
steamSetsVanity: string;
|
|
245
|
+
/**
|
|
246
|
+
* The vanity of the account
|
|
247
|
+
*/
|
|
248
|
+
steamVanity: string;
|
|
249
|
+
/**
|
|
250
|
+
* The theme of the account
|
|
251
|
+
*/
|
|
252
|
+
theme: string;
|
|
253
|
+
/**
|
|
254
|
+
* The time the account was updated
|
|
255
|
+
*/
|
|
256
|
+
updatedAt: Date;
|
|
257
|
+
/**
|
|
258
|
+
* The number of vac bans
|
|
259
|
+
*/
|
|
260
|
+
vacBans: number;
|
|
261
|
+
/**
|
|
262
|
+
* The number of xp the account has
|
|
263
|
+
*/
|
|
264
|
+
xp: number;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const AppPrivacy$inboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
|
|
269
|
+
z.nativeEnum(AppPrivacy);
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const AppPrivacy$outboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
|
|
273
|
+
AppPrivacy$inboundSchema;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
278
|
+
*/
|
|
279
|
+
export namespace AppPrivacy$ {
|
|
280
|
+
/** @deprecated use `AppPrivacy$inboundSchema` instead. */
|
|
281
|
+
export const inboundSchema = AppPrivacy$inboundSchema;
|
|
282
|
+
/** @deprecated use `AppPrivacy$outboundSchema` instead. */
|
|
283
|
+
export const outboundSchema = AppPrivacy$outboundSchema;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const FriendPrivacy$inboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
|
|
288
|
+
z.nativeEnum(FriendPrivacy);
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const FriendPrivacy$outboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
|
|
292
|
+
FriendPrivacy$inboundSchema;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
297
|
+
*/
|
|
298
|
+
export namespace FriendPrivacy$ {
|
|
299
|
+
/** @deprecated use `FriendPrivacy$inboundSchema` instead. */
|
|
300
|
+
export const inboundSchema = FriendPrivacy$inboundSchema;
|
|
301
|
+
/** @deprecated use `FriendPrivacy$outboundSchema` instead. */
|
|
302
|
+
export const outboundSchema = FriendPrivacy$outboundSchema;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const Privacy$inboundSchema: z.ZodNativeEnum<typeof Privacy> = z.nativeEnum(Privacy);
|
|
307
|
+
|
|
308
|
+
/** @internal */
|
|
309
|
+
export const Privacy$outboundSchema: z.ZodNativeEnum<typeof Privacy> = Privacy$inboundSchema;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
314
|
+
*/
|
|
315
|
+
export namespace Privacy$ {
|
|
316
|
+
/** @deprecated use `Privacy$inboundSchema` instead. */
|
|
317
|
+
export const inboundSchema = Privacy$inboundSchema;
|
|
318
|
+
/** @deprecated use `Privacy$outboundSchema` instead. */
|
|
319
|
+
export const outboundSchema = Privacy$outboundSchema;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const AccountInfoBody$inboundSchema: z.ZodType<AccountInfoBody, z.ZodTypeDef, unknown> = z
|
|
324
|
+
.object({
|
|
325
|
+
$schema: z.string().optional(),
|
|
326
|
+
accountId: z.number().int(),
|
|
327
|
+
animatedAvatar: z.string(),
|
|
328
|
+
appCost: z.number().int(),
|
|
329
|
+
appPrivacy: AppPrivacy$inboundSchema,
|
|
330
|
+
apps: z.number().int(),
|
|
331
|
+
appsUpdatedAt: z
|
|
332
|
+
.string()
|
|
333
|
+
.datetime({ offset: true })
|
|
334
|
+
.transform((v) => new Date(v)),
|
|
335
|
+
avatar: z.string(),
|
|
336
|
+
avatarFrame: z.string(),
|
|
337
|
+
averagePlaytime: z.number().int(),
|
|
338
|
+
awardsGiven: z.number().int(),
|
|
339
|
+
awardsReceived: z.number().int(),
|
|
340
|
+
background: z.string(),
|
|
341
|
+
badges: z.number().int(),
|
|
342
|
+
badgesUpdatedAt: z
|
|
343
|
+
.string()
|
|
344
|
+
.datetime({ offset: true })
|
|
345
|
+
.transform((v) => new Date(v)),
|
|
346
|
+
bans: z.number().int(),
|
|
347
|
+
city: Location$inboundSchema.optional(),
|
|
348
|
+
connections: z.nullable(z.array(Connection$inboundSchema)),
|
|
349
|
+
country: Location$inboundSchema.optional(),
|
|
350
|
+
createdAt: z
|
|
351
|
+
.string()
|
|
352
|
+
.datetime({ offset: true })
|
|
353
|
+
.transform((v) => new Date(v)),
|
|
354
|
+
currentBestRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
|
|
355
|
+
currentRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
|
|
356
|
+
economyBan: z.string(),
|
|
357
|
+
foilBadgeCost: z.number().int(),
|
|
358
|
+
foilBadges: z.number().int(),
|
|
359
|
+
friendPrivacy: FriendPrivacy$inboundSchema,
|
|
360
|
+
friends: z.number().int(),
|
|
361
|
+
friendsUpdatedAt: z
|
|
362
|
+
.string()
|
|
363
|
+
.datetime({ offset: true })
|
|
364
|
+
.transform((v) => new Date(v)),
|
|
365
|
+
gameBans: z.number().int(),
|
|
366
|
+
hidden: z.boolean(),
|
|
367
|
+
images: z.nullable(z.array(Image$inboundSchema)),
|
|
368
|
+
level: z.number().int(),
|
|
369
|
+
limitedApps: z.number().int(),
|
|
370
|
+
miniBackground: z.string(),
|
|
371
|
+
name: z.string(),
|
|
372
|
+
normalBadgeCost: z.number().int(),
|
|
373
|
+
normalBadges: z.number().int(),
|
|
374
|
+
playtime: z.number().int(),
|
|
375
|
+
pointsGiven: z.number().int(),
|
|
376
|
+
pointsReceived: z.number().int(),
|
|
377
|
+
privacy: Privacy$inboundSchema,
|
|
378
|
+
region: Location$inboundSchema.optional(),
|
|
379
|
+
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
380
|
+
state: Location$inboundSchema.optional(),
|
|
381
|
+
steamId: z.string(),
|
|
382
|
+
steamSetsScore: z.number().int(),
|
|
383
|
+
steamSetsVanity: z.string(),
|
|
384
|
+
steamVanity: z.string(),
|
|
385
|
+
theme: z.string(),
|
|
386
|
+
updatedAt: z
|
|
387
|
+
.string()
|
|
388
|
+
.datetime({ offset: true })
|
|
389
|
+
.transform((v) => new Date(v)),
|
|
390
|
+
vacBans: z.number().int(),
|
|
391
|
+
xp: z.number().int(),
|
|
392
|
+
})
|
|
393
|
+
.transform((v) => {
|
|
394
|
+
return remap$(v, {
|
|
395
|
+
$schema: "dollarSchema",
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export type AccountInfoBody$Outbound = {
|
|
401
|
+
$schema?: string | undefined;
|
|
402
|
+
accountId: number;
|
|
403
|
+
animatedAvatar: string;
|
|
404
|
+
appCost: number;
|
|
405
|
+
appPrivacy: string;
|
|
406
|
+
apps: number;
|
|
407
|
+
appsUpdatedAt: string;
|
|
408
|
+
avatar: string;
|
|
409
|
+
avatarFrame: string;
|
|
410
|
+
averagePlaytime: number;
|
|
411
|
+
awardsGiven: number;
|
|
412
|
+
awardsReceived: number;
|
|
413
|
+
background: string;
|
|
414
|
+
badges: number;
|
|
415
|
+
badgesUpdatedAt: string;
|
|
416
|
+
bans: number;
|
|
417
|
+
city?: Location$Outbound | undefined;
|
|
418
|
+
connections: Array<Connection$Outbound> | null;
|
|
419
|
+
country?: Location$Outbound | undefined;
|
|
420
|
+
createdAt: string;
|
|
421
|
+
currentBestRanks: Array<BestLeaderboardRank$Outbound> | null;
|
|
422
|
+
currentRanks: Array<BestLeaderboardRank$Outbound> | null;
|
|
423
|
+
economyBan: string;
|
|
424
|
+
foilBadgeCost: number;
|
|
425
|
+
foilBadges: number;
|
|
426
|
+
friendPrivacy: string;
|
|
427
|
+
friends: number;
|
|
428
|
+
friendsUpdatedAt: string;
|
|
429
|
+
gameBans: number;
|
|
430
|
+
hidden: boolean;
|
|
431
|
+
images: Array<Image$Outbound> | null;
|
|
432
|
+
level: number;
|
|
433
|
+
limitedApps: number;
|
|
434
|
+
miniBackground: string;
|
|
435
|
+
name: string;
|
|
436
|
+
normalBadgeCost: number;
|
|
437
|
+
normalBadges: number;
|
|
438
|
+
playtime: number;
|
|
439
|
+
pointsGiven: number;
|
|
440
|
+
pointsReceived: number;
|
|
441
|
+
privacy: string;
|
|
442
|
+
region?: Location$Outbound | undefined;
|
|
443
|
+
roles: Array<Role$Outbound> | null;
|
|
444
|
+
state?: Location$Outbound | undefined;
|
|
445
|
+
steamId: string;
|
|
446
|
+
steamSetsScore: number;
|
|
447
|
+
steamSetsVanity: string;
|
|
448
|
+
steamVanity: string;
|
|
449
|
+
theme: string;
|
|
450
|
+
updatedAt: string;
|
|
451
|
+
vacBans: number;
|
|
452
|
+
xp: number;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
457
|
+
AccountInfoBody$Outbound,
|
|
458
|
+
z.ZodTypeDef,
|
|
459
|
+
AccountInfoBody
|
|
460
|
+
> = z
|
|
461
|
+
.object({
|
|
462
|
+
dollarSchema: z.string().optional(),
|
|
463
|
+
accountId: z.number().int(),
|
|
464
|
+
animatedAvatar: z.string(),
|
|
465
|
+
appCost: z.number().int(),
|
|
466
|
+
appPrivacy: AppPrivacy$outboundSchema,
|
|
467
|
+
apps: z.number().int(),
|
|
468
|
+
appsUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
469
|
+
avatar: z.string(),
|
|
470
|
+
avatarFrame: z.string(),
|
|
471
|
+
averagePlaytime: z.number().int(),
|
|
472
|
+
awardsGiven: z.number().int(),
|
|
473
|
+
awardsReceived: z.number().int(),
|
|
474
|
+
background: z.string(),
|
|
475
|
+
badges: z.number().int(),
|
|
476
|
+
badgesUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
477
|
+
bans: z.number().int(),
|
|
478
|
+
city: Location$outboundSchema.optional(),
|
|
479
|
+
connections: z.nullable(z.array(Connection$outboundSchema)),
|
|
480
|
+
country: Location$outboundSchema.optional(),
|
|
481
|
+
createdAt: z.date().transform((v) => v.toISOString()),
|
|
482
|
+
currentBestRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
|
|
483
|
+
currentRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
|
|
484
|
+
economyBan: z.string(),
|
|
485
|
+
foilBadgeCost: z.number().int(),
|
|
486
|
+
foilBadges: z.number().int(),
|
|
487
|
+
friendPrivacy: FriendPrivacy$outboundSchema,
|
|
488
|
+
friends: z.number().int(),
|
|
489
|
+
friendsUpdatedAt: z.date().transform((v) => v.toISOString()),
|
|
490
|
+
gameBans: z.number().int(),
|
|
491
|
+
hidden: z.boolean(),
|
|
492
|
+
images: z.nullable(z.array(Image$outboundSchema)),
|
|
493
|
+
level: z.number().int(),
|
|
494
|
+
limitedApps: z.number().int(),
|
|
495
|
+
miniBackground: z.string(),
|
|
496
|
+
name: z.string(),
|
|
497
|
+
normalBadgeCost: z.number().int(),
|
|
498
|
+
normalBadges: z.number().int(),
|
|
499
|
+
playtime: z.number().int(),
|
|
500
|
+
pointsGiven: z.number().int(),
|
|
501
|
+
pointsReceived: z.number().int(),
|
|
502
|
+
privacy: Privacy$outboundSchema,
|
|
503
|
+
region: Location$outboundSchema.optional(),
|
|
504
|
+
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
505
|
+
state: Location$outboundSchema.optional(),
|
|
506
|
+
steamId: z.string(),
|
|
507
|
+
steamSetsScore: z.number().int(),
|
|
508
|
+
steamSetsVanity: z.string(),
|
|
509
|
+
steamVanity: z.string(),
|
|
510
|
+
theme: z.string(),
|
|
511
|
+
updatedAt: z.date().transform((v) => v.toISOString()),
|
|
512
|
+
vacBans: z.number().int(),
|
|
513
|
+
xp: z.number().int(),
|
|
514
|
+
})
|
|
515
|
+
.transform((v) => {
|
|
516
|
+
return remap$(v, {
|
|
517
|
+
dollarSchema: "$schema",
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @internal
|
|
523
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
524
|
+
*/
|
|
525
|
+
export namespace AccountInfoBody$ {
|
|
526
|
+
/** @deprecated use `AccountInfoBody$inboundSchema` instead. */
|
|
527
|
+
export const inboundSchema = AccountInfoBody$inboundSchema;
|
|
528
|
+
/** @deprecated use `AccountInfoBody$outboundSchema` instead. */
|
|
529
|
+
export const outboundSchema = AccountInfoBody$outboundSchema;
|
|
530
|
+
/** @deprecated use `AccountInfoBody$Outbound` instead. */
|
|
531
|
+
export type Outbound = AccountInfoBody$Outbound;
|
|
532
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export const AccountLeaderboardHistoryLeaderboard = {
|
|
9
|
+
Apps: "apps",
|
|
10
|
+
LimitedApps: "limited_apps",
|
|
11
|
+
AwardsGiven: "awards_given",
|
|
12
|
+
AwardsReceived: "awards_received",
|
|
13
|
+
Bans: "bans",
|
|
14
|
+
GameBans: "game_bans",
|
|
15
|
+
VacBans: "vac_bans",
|
|
16
|
+
FoilBadges: "foil_badges",
|
|
17
|
+
NormalBadges: "normal_badges",
|
|
18
|
+
Badges: "badges",
|
|
19
|
+
Playtime: "playtime",
|
|
20
|
+
PointsGiven: "points_given",
|
|
21
|
+
PointsReceived: "points_received",
|
|
22
|
+
SteamSets: "steam_sets",
|
|
23
|
+
Xp: "xp",
|
|
24
|
+
} as const;
|
|
25
|
+
export type AccountLeaderboardHistoryLeaderboard = ClosedEnum<
|
|
26
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type AccountLeaderboardHistory = {
|
|
30
|
+
date: Date;
|
|
31
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard;
|
|
32
|
+
rank: number;
|
|
33
|
+
score: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const AccountLeaderboardHistoryLeaderboard$inboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
39
|
+
> = z.nativeEnum(AccountLeaderboardHistoryLeaderboard);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const AccountLeaderboardHistoryLeaderboard$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof AccountLeaderboardHistoryLeaderboard
|
|
44
|
+
> = AccountLeaderboardHistoryLeaderboard$inboundSchema;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace AccountLeaderboardHistoryLeaderboard$ {
|
|
51
|
+
/** @deprecated use `AccountLeaderboardHistoryLeaderboard$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = AccountLeaderboardHistoryLeaderboard$inboundSchema;
|
|
53
|
+
/** @deprecated use `AccountLeaderboardHistoryLeaderboard$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = AccountLeaderboardHistoryLeaderboard$outboundSchema;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const AccountLeaderboardHistory$inboundSchema: z.ZodType<
|
|
59
|
+
AccountLeaderboardHistory,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
date: z
|
|
64
|
+
.string()
|
|
65
|
+
.datetime({ offset: true })
|
|
66
|
+
.transform((v) => new Date(v)),
|
|
67
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard$inboundSchema,
|
|
68
|
+
rank: z.number().int(),
|
|
69
|
+
score: z.number().int(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type AccountLeaderboardHistory$Outbound = {
|
|
74
|
+
date: string;
|
|
75
|
+
leaderboard: string;
|
|
76
|
+
rank: number;
|
|
77
|
+
score: number;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AccountLeaderboardHistory$outboundSchema: z.ZodType<
|
|
82
|
+
AccountLeaderboardHistory$Outbound,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
AccountLeaderboardHistory
|
|
85
|
+
> = z.object({
|
|
86
|
+
date: z.date().transform((v) => v.toISOString()),
|
|
87
|
+
leaderboard: AccountLeaderboardHistoryLeaderboard$outboundSchema,
|
|
88
|
+
rank: z.number().int(),
|
|
89
|
+
score: z.number().int(),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
export namespace AccountLeaderboardHistory$ {
|
|
97
|
+
/** @deprecated use `AccountLeaderboardHistory$inboundSchema` instead. */
|
|
98
|
+
export const inboundSchema = AccountLeaderboardHistory$inboundSchema;
|
|
99
|
+
/** @deprecated use `AccountLeaderboardHistory$outboundSchema` instead. */
|
|
100
|
+
export const outboundSchema = AccountLeaderboardHistory$outboundSchema;
|
|
101
|
+
/** @deprecated use `AccountLeaderboardHistory$Outbound` instead. */
|
|
102
|
+
export type Outbound = AccountLeaderboardHistory$Outbound;
|
|
103
|
+
}
|