@steamsets/client-ts 0.5.1 → 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 +12 -0
- package/docs/sdks/account/README.md +158 -0
- package/docs/sdks/data/README.md +158 -0
- package/docs/sdks/public/README.md +158 -0
- 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/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/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/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/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/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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- 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/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/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/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +8 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +14 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +8 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +14 -0
- package/sdk/data.js.map +1 -1
- package/sdk/public.d.ts +8 -0
- package/sdk/public.d.ts.map +1 -1
- package/sdk/public.js +14 -0
- package/sdk/public.js.map +1 -1
- package/src/funcs/accountAccountV1GetFriends.ts +139 -0
- package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/dataAccountV1GetFriends.ts +139 -0
- package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/funcs/publicAccountV1GetFriends.ts +139 -0
- package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountleaderboardhistory.ts +103 -0
- package/src/models/components/index.ts +5 -1
- 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/operations/accountv1getfriends.ts +134 -0
- package/src/models/operations/accountv1getleaderboardhistory.ts +138 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/account.ts +22 -0
- package/src/sdk/data.ts +22 -0
- package/src/sdk/public.ts +22 -0
- 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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
|
7
|
+
import * as m$ from "../lib/matchers.js";
|
|
8
|
+
import * as schemas$ from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import * as errors from "../models/errors/index.js";
|
|
20
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get Account Friends
|
|
27
|
+
*/
|
|
28
|
+
export async function publicAccountV1GetFriends(
|
|
29
|
+
client$: SteamSetsCore,
|
|
30
|
+
request: operations.AccountV1GetFriendsRequest,
|
|
31
|
+
options?: RequestOptions
|
|
32
|
+
): Promise<
|
|
33
|
+
Result<
|
|
34
|
+
operations.AccountV1GetFriendsResponse,
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const input$ = request;
|
|
46
|
+
|
|
47
|
+
const parsed$ = schemas$.safeParse(
|
|
48
|
+
input$,
|
|
49
|
+
(value$) => operations.AccountV1GetFriendsRequest$outboundSchema.parse(value$),
|
|
50
|
+
"Input validation failed"
|
|
51
|
+
);
|
|
52
|
+
if (!parsed$.ok) {
|
|
53
|
+
return parsed$;
|
|
54
|
+
}
|
|
55
|
+
const payload$ = parsed$.value;
|
|
56
|
+
const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
|
|
57
|
+
|
|
58
|
+
const path$ = pathToFunc("/account.v1.AccountService/GetFriends")();
|
|
59
|
+
|
|
60
|
+
const headers$ = new Headers({
|
|
61
|
+
"Content-Type": "application/json",
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
"User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
|
|
64
|
+
explode: false,
|
|
65
|
+
charEncoding: "none",
|
|
66
|
+
}),
|
|
67
|
+
"X-Forwarded-For": encodeSimple$("X-Forwarded-For", payload$["X-Forwarded-For"], {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "none",
|
|
70
|
+
}),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const session$ = await extractSecurity(client$.options$.session);
|
|
74
|
+
const security$ = session$ == null ? {} : { session: session$ };
|
|
75
|
+
const context = {
|
|
76
|
+
operationID: "account.v1.getFriends",
|
|
77
|
+
oAuth2Scopes: [],
|
|
78
|
+
securitySource: client$.options$.session,
|
|
79
|
+
};
|
|
80
|
+
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
81
|
+
|
|
82
|
+
const requestRes = client$.createRequest$(
|
|
83
|
+
context,
|
|
84
|
+
{
|
|
85
|
+
security: securitySettings$,
|
|
86
|
+
method: "POST",
|
|
87
|
+
path: path$,
|
|
88
|
+
headers: headers$,
|
|
89
|
+
body: body$,
|
|
90
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
91
|
+
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
92
|
+
},
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return requestRes;
|
|
97
|
+
}
|
|
98
|
+
const request$ = requestRes.value;
|
|
99
|
+
|
|
100
|
+
const doResult = await client$.do$(request$, {
|
|
101
|
+
context,
|
|
102
|
+
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
103
|
+
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
104
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
105
|
+
});
|
|
106
|
+
if (!doResult.ok) {
|
|
107
|
+
return doResult;
|
|
108
|
+
}
|
|
109
|
+
const response = doResult.value;
|
|
110
|
+
|
|
111
|
+
const responseFields$ = {
|
|
112
|
+
HttpMeta: { Response: response, Request: request$ },
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const [result$] = await m$.match<
|
|
116
|
+
operations.AccountV1GetFriendsResponse,
|
|
117
|
+
| errors.ErrorModel
|
|
118
|
+
| SDKError
|
|
119
|
+
| SDKValidationError
|
|
120
|
+
| UnexpectedClientError
|
|
121
|
+
| InvalidRequestError
|
|
122
|
+
| RequestAbortedError
|
|
123
|
+
| RequestTimeoutError
|
|
124
|
+
| ConnectionError
|
|
125
|
+
>(
|
|
126
|
+
m$.json(200, operations.AccountV1GetFriendsResponse$inboundSchema, {
|
|
127
|
+
key: "V1AccountFriendsResponseBody",
|
|
128
|
+
}),
|
|
129
|
+
m$.jsonErr([400, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
130
|
+
ctype: "application/problem+json",
|
|
131
|
+
}),
|
|
132
|
+
m$.fail(["4XX", "5XX"])
|
|
133
|
+
)(response, request$, { extraFields: responseFields$ });
|
|
134
|
+
if (!result$.ok) {
|
|
135
|
+
return result$;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return result$;
|
|
139
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
|
7
|
+
import * as m$ from "../lib/matchers.js";
|
|
8
|
+
import * as schemas$ from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import * as errors from "../models/errors/index.js";
|
|
20
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get Account Leaderboard History
|
|
27
|
+
*/
|
|
28
|
+
export async function publicAccountV1GetLeaderboardHistory(
|
|
29
|
+
client$: SteamSetsCore,
|
|
30
|
+
request: operations.AccountV1GetLeaderboardHistoryRequest,
|
|
31
|
+
options?: RequestOptions
|
|
32
|
+
): Promise<
|
|
33
|
+
Result<
|
|
34
|
+
operations.AccountV1GetLeaderboardHistoryResponse,
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const input$ = request;
|
|
46
|
+
|
|
47
|
+
const parsed$ = schemas$.safeParse(
|
|
48
|
+
input$,
|
|
49
|
+
(value$) => operations.AccountV1GetLeaderboardHistoryRequest$outboundSchema.parse(value$),
|
|
50
|
+
"Input validation failed"
|
|
51
|
+
);
|
|
52
|
+
if (!parsed$.ok) {
|
|
53
|
+
return parsed$;
|
|
54
|
+
}
|
|
55
|
+
const payload$ = parsed$.value;
|
|
56
|
+
const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
|
|
57
|
+
|
|
58
|
+
const path$ = pathToFunc("/account.v1.AccountService/GetLeaderboardHistory")();
|
|
59
|
+
|
|
60
|
+
const headers$ = new Headers({
|
|
61
|
+
"Content-Type": "application/json",
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
"User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
|
|
64
|
+
explode: false,
|
|
65
|
+
charEncoding: "none",
|
|
66
|
+
}),
|
|
67
|
+
"X-Forwarded-For": encodeSimple$("X-Forwarded-For", payload$["X-Forwarded-For"], {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "none",
|
|
70
|
+
}),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const session$ = await extractSecurity(client$.options$.session);
|
|
74
|
+
const security$ = session$ == null ? {} : { session: session$ };
|
|
75
|
+
const context = {
|
|
76
|
+
operationID: "account.v1.getLeaderboardHistory",
|
|
77
|
+
oAuth2Scopes: [],
|
|
78
|
+
securitySource: client$.options$.session,
|
|
79
|
+
};
|
|
80
|
+
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
81
|
+
|
|
82
|
+
const requestRes = client$.createRequest$(
|
|
83
|
+
context,
|
|
84
|
+
{
|
|
85
|
+
security: securitySettings$,
|
|
86
|
+
method: "POST",
|
|
87
|
+
path: path$,
|
|
88
|
+
headers: headers$,
|
|
89
|
+
body: body$,
|
|
90
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
91
|
+
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
92
|
+
},
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return requestRes;
|
|
97
|
+
}
|
|
98
|
+
const request$ = requestRes.value;
|
|
99
|
+
|
|
100
|
+
const doResult = await client$.do$(request$, {
|
|
101
|
+
context,
|
|
102
|
+
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
103
|
+
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
104
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
105
|
+
});
|
|
106
|
+
if (!doResult.ok) {
|
|
107
|
+
return doResult;
|
|
108
|
+
}
|
|
109
|
+
const response = doResult.value;
|
|
110
|
+
|
|
111
|
+
const responseFields$ = {
|
|
112
|
+
HttpMeta: { Response: response, Request: request$ },
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const [result$] = await m$.match<
|
|
116
|
+
operations.AccountV1GetLeaderboardHistoryResponse,
|
|
117
|
+
| errors.ErrorModel
|
|
118
|
+
| SDKError
|
|
119
|
+
| SDKValidationError
|
|
120
|
+
| UnexpectedClientError
|
|
121
|
+
| InvalidRequestError
|
|
122
|
+
| RequestAbortedError
|
|
123
|
+
| RequestTimeoutError
|
|
124
|
+
| ConnectionError
|
|
125
|
+
>(
|
|
126
|
+
m$.json(200, operations.AccountV1GetLeaderboardHistoryResponse$inboundSchema, {
|
|
127
|
+
key: "V1AccountLeaderboardHistoryResponseBody",
|
|
128
|
+
}),
|
|
129
|
+
m$.jsonErr([400, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
130
|
+
ctype: "application/problem+json",
|
|
131
|
+
}),
|
|
132
|
+
m$.fail(["4XX", "5XX"])
|
|
133
|
+
)(response, request$, { extraFields: responseFields$ });
|
|
134
|
+
if (!result$.ok) {
|
|
135
|
+
return result$;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return result$;
|
|
139
|
+
}
|
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.
|
|
55
|
+
sdkVersion: "0.5.2",
|
|
56
56
|
genVersion: "2.407.0",
|
|
57
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
57
|
+
userAgent: "speakeasy-sdk/typescript 0.5.2 2.407.0 1.0.0 @steamsets/client-ts",
|
|
58
58
|
} as const;
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./accountinfobody.js";
|
|
6
|
+
export * from "./accountleaderboardhistory.js";
|
|
6
7
|
export * from "./accountsearch.js";
|
|
7
8
|
export * from "./accountsearchidstruct.js";
|
|
8
9
|
export * from "./accountsearchvanitystruct.js";
|
|
@@ -25,8 +26,11 @@ export * from "./role.js";
|
|
|
25
26
|
export * from "./security.js";
|
|
26
27
|
export * from "./session.js";
|
|
27
28
|
export * from "./state.js";
|
|
29
|
+
export * from "./v1accountapp.js";
|
|
30
|
+
export * from "./v1accountfriend.js";
|
|
31
|
+
export * from "./v1accountfriendsresponsebody.js";
|
|
32
|
+
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
28
33
|
export * from "./v1accountsappsresponsebody.js";
|
|
29
|
-
export * from "./v1app.js";
|
|
30
34
|
export * from "./v1badge.js";
|
|
31
35
|
export * from "./v1badgesresponsebody.js";
|
|
32
36
|
export * from "./v1connectrequestbody.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type V1AccountApp = {
|
|
8
8
|
/**
|
|
9
9
|
* The Steam App ID
|
|
10
10
|
*/
|
|
@@ -32,7 +32,7 @@ export type V1App = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const
|
|
35
|
+
export const V1AccountApp$inboundSchema: z.ZodType<V1AccountApp, z.ZodTypeDef, unknown> = z.object({
|
|
36
36
|
id: z.number().int(),
|
|
37
37
|
image: z.string(),
|
|
38
38
|
name: z.string(),
|
|
@@ -42,7 +42,7 @@ export const V1App$inboundSchema: z.ZodType<V1App, z.ZodTypeDef, unknown> = z.ob
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export type
|
|
45
|
+
export type V1AccountApp$Outbound = {
|
|
46
46
|
id: number;
|
|
47
47
|
image: string;
|
|
48
48
|
name: string;
|
|
@@ -52,7 +52,11 @@ export type V1App$Outbound = {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
55
|
-
export const
|
|
55
|
+
export const V1AccountApp$outboundSchema: z.ZodType<
|
|
56
|
+
V1AccountApp$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
V1AccountApp
|
|
59
|
+
> = z.object({
|
|
56
60
|
id: z.number().int(),
|
|
57
61
|
image: z.string(),
|
|
58
62
|
name: z.string(),
|
|
@@ -65,11 +69,11 @@ export const V1App$outboundSchema: z.ZodType<V1App$Outbound, z.ZodTypeDef, V1App
|
|
|
65
69
|
* @internal
|
|
66
70
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
71
|
*/
|
|
68
|
-
export namespace
|
|
69
|
-
/** @deprecated use `
|
|
70
|
-
export const inboundSchema =
|
|
71
|
-
/** @deprecated use `
|
|
72
|
-
export const outboundSchema =
|
|
73
|
-
/** @deprecated use `
|
|
74
|
-
export type Outbound =
|
|
72
|
+
export namespace V1AccountApp$ {
|
|
73
|
+
/** @deprecated use `V1AccountApp$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = V1AccountApp$inboundSchema;
|
|
75
|
+
/** @deprecated use `V1AccountApp$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = V1AccountApp$outboundSchema;
|
|
77
|
+
/** @deprecated use `V1AccountApp$Outbound` instead. */
|
|
78
|
+
export type Outbound = V1AccountApp$Outbound;
|
|
75
79
|
}
|