@steamsets/client-ts 0.22.3 → 0.22.8
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 -4
- package/docs/sdks/account/README.md +10 -10
- package/docs/sdks/leaderboard/README.md +4 -28
- package/funcs/{accountAccountV1SessionLogout.d.ts → accountLogout.d.ts} +2 -2
- package/funcs/accountLogout.d.ts.map +1 -0
- package/funcs/{accountAccountV1SessionLogout.js → accountLogout.js} +3 -3
- package/funcs/accountLogout.js.map +1 -0
- package/funcs/{accountAccountV1SessionRefresh.d.ts → accountRefreshSession.d.ts} +2 -2
- package/funcs/accountRefreshSession.d.ts.map +1 -0
- package/funcs/{accountAccountV1SessionRefresh.js → accountRefreshSession.js} +3 -3
- package/funcs/accountRefreshSession.js.map +1 -0
- package/funcs/leaderboardGetAccount.d.ts +1 -1
- package/funcs/leaderboardGetAccount.d.ts.map +1 -1
- package/funcs/leaderboardGetAccount.js +2 -4
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetAccountMeta.d.ts +1 -1
- package/funcs/leaderboardGetAccountMeta.js +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/models/components/session.d.ts +5 -0
- package/models/components/session.d.ts.map +1 -1
- package/models/components/session.js +2 -0
- package/models/components/session.js.map +1 -1
- package/models/components/v1getsessionbody.d.ts +11 -1
- package/models/components/v1getsessionbody.d.ts.map +1 -1
- package/models/components/v1getsessionbody.js +4 -0
- package/models/components/v1getsessionbody.js.map +1 -1
- package/models/components/v1uploadedimage.d.ts +8 -8
- package/models/components/v1uploadedimage.d.ts.map +1 -1
- package/models/components/v1uploadedimage.js +13 -13
- package/models/components/v1uploadedimage.js.map +1 -1
- package/models/components/vanitystruct.d.ts +8 -8
- package/models/components/vanitystruct.d.ts.map +1 -1
- package/models/components/vanitystruct.js +13 -13
- package/models/components/vanitystruct.js.map +1 -1
- package/models/operations/index.d.ts +2 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/leaderboardv1getaccountleaderboard.d.ts +35 -0
- package/models/operations/leaderboardv1getaccountleaderboard.d.ts.map +1 -0
- package/models/operations/{leaderboardv1getaccount.js → leaderboardv1getaccountleaderboard.js} +17 -17
- package/models/operations/leaderboardv1getaccountleaderboard.js.map +1 -0
- package/models/operations/leaderboardv1getaccountleaderboardmeta.d.ts +35 -0
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.d.ts.map → leaderboardv1getaccountleaderboardmeta.d.ts.map} +1 -1
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.js → leaderboardv1getaccountleaderboardmeta.js} +17 -17
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.js.map → leaderboardv1getaccountleaderboardmeta.js.map} +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +2 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +6 -6
- package/sdk/account.js.map +1 -1
- package/sdk/leaderboard.d.ts +2 -2
- package/sdk/leaderboard.d.ts.map +1 -1
- package/src/funcs/{accountAccountV1SessionLogout.ts → accountLogout.ts} +1 -1
- package/src/funcs/{accountAccountV1SessionRefresh.ts → accountRefreshSession.ts} +1 -1
- package/src/funcs/leaderboardGetAccount.ts +9 -7
- package/src/funcs/leaderboardGetAccountMeta.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +11 -3
- package/src/models/components/session.ts +7 -0
- package/src/models/components/v1getsessionbody.ts +15 -1
- package/src/models/components/v1uploadedimage.ts +16 -15
- package/src/models/components/vanitystruct.ts +15 -16
- package/src/models/operations/index.ts +2 -2
- package/src/models/operations/leaderboardv1getaccountleaderboard.ts +101 -0
- package/src/models/operations/{leaderboardv1getleaderboardaccountmeta.ts → leaderboardv1getaccountleaderboardmeta.ts} +23 -23
- package/src/sdk/account.ts +6 -6
- package/src/sdk/leaderboard.ts +2 -2
- package/funcs/accountAccountV1SessionLogout.d.ts.map +0 -1
- package/funcs/accountAccountV1SessionLogout.js.map +0 -1
- package/funcs/accountAccountV1SessionRefresh.d.ts.map +0 -1
- package/funcs/accountAccountV1SessionRefresh.js.map +0 -1
- package/models/operations/leaderboardv1getaccount.d.ts +0 -35
- package/models/operations/leaderboardv1getaccount.d.ts.map +0 -1
- package/models/operations/leaderboardv1getaccount.js.map +0 -1
- package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +0 -35
- package/src/models/operations/leaderboardv1getaccount.ts +0 -93
package/sdk/account.js
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Account = void 0;
|
|
7
|
-
const accountAccountV1SessionLogout_js_1 = require("../funcs/accountAccountV1SessionLogout.js");
|
|
8
|
-
const accountAccountV1SessionRefresh_js_1 = require("../funcs/accountAccountV1SessionRefresh.js");
|
|
9
7
|
const accountBookmarkBadge_js_1 = require("../funcs/accountBookmarkBadge.js");
|
|
10
8
|
const accountConnect_js_1 = require("../funcs/accountConnect.js");
|
|
11
9
|
const accountCreateDeveloperApp_js_1 = require("../funcs/accountCreateDeveloperApp.js");
|
|
@@ -29,8 +27,10 @@ const accountGetSession_js_1 = require("../funcs/accountGetSession.js");
|
|
|
29
27
|
const accountGetSettings_js_1 = require("../funcs/accountGetSettings.js");
|
|
30
28
|
const accountGetStaff_js_1 = require("../funcs/accountGetStaff.js");
|
|
31
29
|
const accountLogin_js_1 = require("../funcs/accountLogin.js");
|
|
30
|
+
const accountLogout_js_1 = require("../funcs/accountLogout.js");
|
|
32
31
|
const accountQueue_js_1 = require("../funcs/accountQueue.js");
|
|
33
32
|
const accountReconnect_js_1 = require("../funcs/accountReconnect.js");
|
|
33
|
+
const accountRefreshSession_js_1 = require("../funcs/accountRefreshSession.js");
|
|
34
34
|
const accountUpdateImages_js_1 = require("../funcs/accountUpdateImages.js");
|
|
35
35
|
const accountUpdateSettings_js_1 = require("../funcs/accountUpdateSettings.js");
|
|
36
36
|
const accountUploadImages_js_1 = require("../funcs/accountUploadImages.js");
|
|
@@ -123,8 +123,8 @@ class Account extends sdks_js_1.ClientSDK {
|
|
|
123
123
|
async login(request, options) {
|
|
124
124
|
return (0, fp_js_1.unwrapAsync)((0, accountLogin_js_1.accountLogin)(this, request, options));
|
|
125
125
|
}
|
|
126
|
-
async
|
|
127
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
126
|
+
async logout(options) {
|
|
127
|
+
return (0, fp_js_1.unwrapAsync)((0, accountLogout_js_1.accountLogout)(this, options));
|
|
128
128
|
}
|
|
129
129
|
async queue(request, options) {
|
|
130
130
|
return (0, fp_js_1.unwrapAsync)((0, accountQueue_js_1.accountQueue)(this, request, options));
|
|
@@ -132,8 +132,8 @@ class Account extends sdks_js_1.ClientSDK {
|
|
|
132
132
|
async reconnect(request, options) {
|
|
133
133
|
return (0, fp_js_1.unwrapAsync)((0, accountReconnect_js_1.accountReconnect)(this, request, options));
|
|
134
134
|
}
|
|
135
|
-
async
|
|
136
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
135
|
+
async refreshSession(request, options) {
|
|
136
|
+
return (0, fp_js_1.unwrapAsync)((0, accountRefreshSession_js_1.accountRefreshSession)(this, request, options));
|
|
137
137
|
}
|
|
138
138
|
async updateImages(request, options) {
|
|
139
139
|
return (0, fp_js_1.unwrapAsync)((0, accountUpdateImages_js_1.accountUpdateImages)(this, request, options));
|
package/sdk/account.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/sdk/account.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/sdk/account.ts"],"names":[],"mappings":";AAA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,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS,CACb,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA3VD,0BA2VC"}
|
package/sdk/leaderboard.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { Badges } from "./badges.js";
|
|
|
5
5
|
export declare class Leaderboard extends ClientSDK {
|
|
6
6
|
private _badges?;
|
|
7
7
|
get badges(): Badges;
|
|
8
|
-
getAccount(request: components.V1AccountLeaderboardRequestBody, options?: RequestOptions): Promise<operations.
|
|
9
|
-
getAccountMeta(request: components.V1LeaderboardAccountMetaRequestBody, options?: RequestOptions): Promise<operations.
|
|
8
|
+
getAccount(request: components.V1AccountLeaderboardRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetAccountLeaderboardResponse>;
|
|
9
|
+
getAccountMeta(request: components.V1LeaderboardAccountMetaRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetAccountLeaderboardMetaResponse>;
|
|
10
10
|
getGroup(request: components.V1GroupLeaderboardRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetGroupResponse>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=leaderboard.d.ts.map
|
package/sdk/leaderboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAEK,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAEK,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0CAA0C,CAAC;IAQ3D,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8CAA8C,CAAC;IAQ/D,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
|
|
@@ -22,7 +22,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
22
22
|
import { APICall, APIPromise } from "../types/async.js";
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
25
|
-
export function
|
|
25
|
+
export function accountLogout(
|
|
26
26
|
client: SteamSetsCore,
|
|
27
27
|
options?: RequestOptions,
|
|
28
28
|
): APIPromise<
|
|
@@ -24,7 +24,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
24
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
|
-
export function
|
|
27
|
+
export function accountRefreshSession(
|
|
28
28
|
client: SteamSetsCore,
|
|
29
29
|
request: operations.AccountV1SessionRefreshRequest,
|
|
30
30
|
options?: RequestOptions,
|
|
@@ -31,7 +31,7 @@ export function leaderboardGetAccount(
|
|
|
31
31
|
options?: RequestOptions,
|
|
32
32
|
): APIPromise<
|
|
33
33
|
Result<
|
|
34
|
-
operations.
|
|
34
|
+
operations.LeaderboardV1GetAccountLeaderboardResponse,
|
|
35
35
|
| errors.ErrorModel
|
|
36
36
|
| errors.ErrorModel
|
|
37
37
|
| SDKError
|
|
@@ -57,7 +57,7 @@ async function $do(
|
|
|
57
57
|
): Promise<
|
|
58
58
|
[
|
|
59
59
|
Result<
|
|
60
|
-
operations.
|
|
60
|
+
operations.LeaderboardV1GetAccountLeaderboardResponse,
|
|
61
61
|
| errors.ErrorModel
|
|
62
62
|
| errors.ErrorModel
|
|
63
63
|
| SDKError
|
|
@@ -98,7 +98,7 @@ async function $do(
|
|
|
98
98
|
|
|
99
99
|
const context = {
|
|
100
100
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
101
|
-
operationID: "leaderboard.v1.
|
|
101
|
+
operationID: "leaderboard.v1.getAccountLeaderboard",
|
|
102
102
|
oAuth2Scopes: [],
|
|
103
103
|
|
|
104
104
|
resolvedSecurity: requestSecurity,
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const [result] = await M.match<
|
|
154
|
-
operations.
|
|
154
|
+
operations.LeaderboardV1GetAccountLeaderboardResponse,
|
|
155
155
|
| errors.ErrorModel
|
|
156
156
|
| errors.ErrorModel
|
|
157
157
|
| SDKError
|
|
@@ -162,9 +162,11 @@ async function $do(
|
|
|
162
162
|
| RequestTimeoutError
|
|
163
163
|
| ConnectionError
|
|
164
164
|
>(
|
|
165
|
-
M.json(
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
M.json(
|
|
166
|
+
200,
|
|
167
|
+
operations.LeaderboardV1GetAccountLeaderboardResponse$inboundSchema,
|
|
168
|
+
{ key: "V1AccountLeaderboardResponseBody" },
|
|
169
|
+
),
|
|
168
170
|
M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
169
171
|
ctype: "application/problem+json",
|
|
170
172
|
}),
|
|
@@ -31,7 +31,7 @@ export function leaderboardGetAccountMeta(
|
|
|
31
31
|
options?: RequestOptions,
|
|
32
32
|
): APIPromise<
|
|
33
33
|
Result<
|
|
34
|
-
operations.
|
|
34
|
+
operations.LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
35
35
|
| errors.ErrorModel
|
|
36
36
|
| errors.ErrorModel
|
|
37
37
|
| SDKError
|
|
@@ -57,7 +57,7 @@ async function $do(
|
|
|
57
57
|
): Promise<
|
|
58
58
|
[
|
|
59
59
|
Result<
|
|
60
|
-
operations.
|
|
60
|
+
operations.LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
61
61
|
| errors.ErrorModel
|
|
62
62
|
| errors.ErrorModel
|
|
63
63
|
| SDKError
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
|
|
101
101
|
const context = {
|
|
102
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "leaderboard.v1.
|
|
103
|
+
operationID: "leaderboard.v1.getAccountLeaderboardMeta",
|
|
104
104
|
oAuth2Scopes: [],
|
|
105
105
|
|
|
106
106
|
resolvedSecurity: requestSecurity,
|
|
@@ -153,7 +153,7 @@ async function $do(
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
const [result] = await M.match<
|
|
156
|
-
operations.
|
|
156
|
+
operations.LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
157
157
|
| errors.ErrorModel
|
|
158
158
|
| errors.ErrorModel
|
|
159
159
|
| SDKError
|
|
@@ -166,7 +166,7 @@ async function $do(
|
|
|
166
166
|
>(
|
|
167
167
|
M.json(
|
|
168
168
|
200,
|
|
169
|
-
operations.
|
|
169
|
+
operations.LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema,
|
|
170
170
|
{ key: "V1LeaderboardAccountMetaResponseBody" },
|
|
171
171
|
),
|
|
172
172
|
M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.22.
|
|
59
|
-
genVersion: "2.
|
|
58
|
+
sdkVersion: "0.22.8",
|
|
59
|
+
genVersion: "2.558.2",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.22.
|
|
61
|
+
"speakeasy-sdk/typescript 0.22.8 2.558.2 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as components from "../models/components/index.js";
|
|
6
|
+
|
|
6
7
|
type OAuth2PasswordFlow = {
|
|
7
8
|
username: string;
|
|
8
9
|
password?: string | undefined;
|
|
@@ -84,7 +85,9 @@ type SecurityInputOAuth2ClientCredentials = {
|
|
|
84
85
|
value:
|
|
85
86
|
| { clientID?: string | undefined; clientSecret?: string | undefined }
|
|
86
87
|
| null
|
|
88
|
+
| string
|
|
87
89
|
| undefined;
|
|
90
|
+
fieldName?: string;
|
|
88
91
|
};
|
|
89
92
|
|
|
90
93
|
type SecurityInputOAuth2PasswordCredentials = {
|
|
@@ -93,13 +96,13 @@ type SecurityInputOAuth2PasswordCredentials = {
|
|
|
93
96
|
| string
|
|
94
97
|
| null
|
|
95
98
|
| undefined;
|
|
96
|
-
fieldName
|
|
99
|
+
fieldName?: string;
|
|
97
100
|
};
|
|
98
101
|
|
|
99
102
|
type SecurityInputCustom = {
|
|
100
103
|
type: "http:custom";
|
|
101
104
|
value: any | null | undefined;
|
|
102
|
-
fieldName
|
|
105
|
+
fieldName?: string;
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
export type SecurityInput =
|
|
@@ -136,6 +139,9 @@ export function resolveSecurity(
|
|
|
136
139
|
typeof o.value === "string" && !!o.value
|
|
137
140
|
);
|
|
138
141
|
} else if (o.type === "oauth2:client_credentials") {
|
|
142
|
+
if (typeof o.value == "string") {
|
|
143
|
+
return !!o.value;
|
|
144
|
+
}
|
|
139
145
|
return o.value.clientID != null || o.value.clientSecret != null;
|
|
140
146
|
} else if (typeof o.value === "string") {
|
|
141
147
|
return !!o.value;
|
|
@@ -224,7 +230,9 @@ function applyBearer(
|
|
|
224
230
|
value = `Bearer ${value}`;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
|
-
|
|
233
|
+
if (spec.fieldName !== undefined) {
|
|
234
|
+
state.headers[spec.fieldName] = value;
|
|
235
|
+
}
|
|
228
236
|
}
|
|
229
237
|
|
|
230
238
|
export function resolveGlobalSecurity(
|
|
@@ -24,6 +24,10 @@ export type Session = {
|
|
|
24
24
|
* The time the session was last seen
|
|
25
25
|
*/
|
|
26
26
|
lastSeen: Date;
|
|
27
|
+
/**
|
|
28
|
+
* The level of the logged in account on steam
|
|
29
|
+
*/
|
|
30
|
+
level: number;
|
|
27
31
|
/**
|
|
28
32
|
* The session id
|
|
29
33
|
*/
|
|
@@ -45,6 +49,7 @@ export const Session$inboundSchema: z.ZodType<Session, z.ZodTypeDef, unknown> =
|
|
|
45
49
|
),
|
|
46
50
|
ip: z.string(),
|
|
47
51
|
lastSeen: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
|
+
level: z.number().int(),
|
|
48
53
|
sessionId: z.string(),
|
|
49
54
|
userAgent: z.string(),
|
|
50
55
|
});
|
|
@@ -55,6 +60,7 @@ export type Session$Outbound = {
|
|
|
55
60
|
expiresAt: string;
|
|
56
61
|
ip: string;
|
|
57
62
|
lastSeen: string;
|
|
63
|
+
level: number;
|
|
58
64
|
sessionId: string;
|
|
59
65
|
userAgent: string;
|
|
60
66
|
};
|
|
@@ -69,6 +75,7 @@ export const Session$outboundSchema: z.ZodType<
|
|
|
69
75
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
70
76
|
ip: z.string(),
|
|
71
77
|
lastSeen: z.date().transform(v => v.toISOString()),
|
|
78
|
+
level: z.number().int(),
|
|
72
79
|
sessionId: z.string(),
|
|
73
80
|
userAgent: z.string(),
|
|
74
81
|
});
|
|
@@ -40,7 +40,15 @@ export type V1GetSessionBody = {
|
|
|
40
40
|
*/
|
|
41
41
|
avatar: string;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
43
|
+
* The email of the account
|
|
44
|
+
*/
|
|
45
|
+
email?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The level of the account
|
|
48
|
+
*/
|
|
49
|
+
level: number;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the account
|
|
44
52
|
*/
|
|
45
53
|
name: string;
|
|
46
54
|
/**
|
|
@@ -67,6 +75,8 @@ export const V1GetSessionBody$inboundSchema: z.ZodType<
|
|
|
67
75
|
$schema: z.string().optional(),
|
|
68
76
|
accountId: z.number().int(),
|
|
69
77
|
avatar: z.string(),
|
|
78
|
+
email: z.nullable(z.string()).optional(),
|
|
79
|
+
level: z.number().int(),
|
|
70
80
|
name: z.string(),
|
|
71
81
|
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
72
82
|
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
@@ -83,6 +93,8 @@ export type V1GetSessionBody$Outbound = {
|
|
|
83
93
|
$schema?: string | undefined;
|
|
84
94
|
accountId: number;
|
|
85
95
|
avatar: string;
|
|
96
|
+
email?: string | null | undefined;
|
|
97
|
+
level: number;
|
|
86
98
|
name: string;
|
|
87
99
|
resources: Array<Resource$Outbound> | null;
|
|
88
100
|
roles: Array<Role$Outbound> | null;
|
|
@@ -99,6 +111,8 @@ export const V1GetSessionBody$outboundSchema: z.ZodType<
|
|
|
99
111
|
dollarSchema: z.string().optional(),
|
|
100
112
|
accountId: z.number().int(),
|
|
101
113
|
avatar: z.string(),
|
|
114
|
+
email: z.nullable(z.string()).optional(),
|
|
115
|
+
level: z.number().int(),
|
|
102
116
|
name: z.string(),
|
|
103
117
|
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
104
118
|
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* The Image Type
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const V1UploadedImageType = {
|
|
15
15
|
Avatar: "avatar",
|
|
16
16
|
Background: "background",
|
|
17
17
|
MiniBackground: "mini_background",
|
|
@@ -21,7 +21,7 @@ export const Type = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The Image Type
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type V1UploadedImageType = ClosedEnum<typeof V1UploadedImageType>;
|
|
25
25
|
|
|
26
26
|
export type V1UploadedImage = {
|
|
27
27
|
/**
|
|
@@ -31,27 +31,28 @@ export type V1UploadedImage = {
|
|
|
31
31
|
/**
|
|
32
32
|
* The Image Type
|
|
33
33
|
*/
|
|
34
|
-
type:
|
|
34
|
+
type: V1UploadedImageType;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
);
|
|
38
|
+
export const V1UploadedImageType$inboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof V1UploadedImageType
|
|
40
|
+
> = z.nativeEnum(V1UploadedImageType);
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export const
|
|
44
|
-
|
|
43
|
+
export const V1UploadedImageType$outboundSchema: z.ZodNativeEnum<
|
|
44
|
+
typeof V1UploadedImageType
|
|
45
|
+
> = V1UploadedImageType$inboundSchema;
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* @internal
|
|
48
49
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
50
|
*/
|
|
50
|
-
export namespace
|
|
51
|
-
/** @deprecated use `
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
/** @deprecated use `
|
|
54
|
-
export const outboundSchema =
|
|
51
|
+
export namespace V1UploadedImageType$ {
|
|
52
|
+
/** @deprecated use `V1UploadedImageType$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = V1UploadedImageType$inboundSchema;
|
|
54
|
+
/** @deprecated use `V1UploadedImageType$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = V1UploadedImageType$outboundSchema;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/** @internal */
|
|
@@ -61,7 +62,7 @@ export const V1UploadedImage$inboundSchema: z.ZodType<
|
|
|
61
62
|
unknown
|
|
62
63
|
> = z.object({
|
|
63
64
|
data: z.string(),
|
|
64
|
-
type:
|
|
65
|
+
type: V1UploadedImageType$inboundSchema,
|
|
65
66
|
});
|
|
66
67
|
|
|
67
68
|
/** @internal */
|
|
@@ -77,7 +78,7 @@ export const V1UploadedImage$outboundSchema: z.ZodType<
|
|
|
77
78
|
V1UploadedImage
|
|
78
79
|
> = z.object({
|
|
79
80
|
data: z.string(),
|
|
80
|
-
type:
|
|
81
|
+
type: V1UploadedImageType$outboundSchema,
|
|
81
82
|
});
|
|
82
83
|
|
|
83
84
|
/**
|
|
@@ -11,20 +11,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Which type of vanity to search for
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const Type = {
|
|
15
15
|
Steam: "steam",
|
|
16
16
|
Internal: "internal",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Which type of vanity to search for
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
22
22
|
|
|
23
23
|
export type VanityStruct = {
|
|
24
24
|
/**
|
|
25
25
|
* Which type of vanity to search for
|
|
26
26
|
*/
|
|
27
|
-
type:
|
|
27
|
+
type: Type;
|
|
28
28
|
/**
|
|
29
29
|
* Vanity to search for
|
|
30
30
|
*/
|
|
@@ -32,24 +32,23 @@ export type VanityStruct = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
36
|
+
Type,
|
|
37
|
+
);
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
> = VanityStructType$inboundSchema;
|
|
40
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
41
|
+
Type$inboundSchema;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* @internal
|
|
46
45
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
46
|
*/
|
|
48
|
-
export namespace
|
|
49
|
-
/** @deprecated use `
|
|
50
|
-
export const inboundSchema =
|
|
51
|
-
/** @deprecated use `
|
|
52
|
-
export const outboundSchema =
|
|
47
|
+
export namespace Type$ {
|
|
48
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = Type$inboundSchema;
|
|
50
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = Type$outboundSchema;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
/** @internal */
|
|
@@ -58,7 +57,7 @@ export const VanityStruct$inboundSchema: z.ZodType<
|
|
|
58
57
|
z.ZodTypeDef,
|
|
59
58
|
unknown
|
|
60
59
|
> = z.object({
|
|
61
|
-
type:
|
|
60
|
+
type: Type$inboundSchema,
|
|
62
61
|
value: z.string(),
|
|
63
62
|
});
|
|
64
63
|
|
|
@@ -74,7 +73,7 @@ export const VanityStruct$outboundSchema: z.ZodType<
|
|
|
74
73
|
z.ZodTypeDef,
|
|
75
74
|
VanityStruct
|
|
76
75
|
> = z.object({
|
|
77
|
-
type:
|
|
76
|
+
type: Type$outboundSchema,
|
|
78
77
|
value: z.string(),
|
|
79
78
|
});
|
|
80
79
|
|
|
@@ -50,10 +50,10 @@ export * from "./badgev1searchsuggest.js";
|
|
|
50
50
|
export * from "./badgev1tag.js";
|
|
51
51
|
export * from "./badgev1tags.js";
|
|
52
52
|
export * from "./badgev1tagssuggest.js";
|
|
53
|
-
export * from "./
|
|
53
|
+
export * from "./leaderboardv1getaccountleaderboard.js";
|
|
54
|
+
export * from "./leaderboardv1getaccountleaderboardmeta.js";
|
|
54
55
|
export * from "./leaderboardv1getbadges.js";
|
|
55
56
|
export * from "./leaderboardv1getgroup.js";
|
|
56
|
-
export * from "./leaderboardv1getleaderboardaccountmeta.js";
|
|
57
57
|
export * from "./liveness.js";
|
|
58
58
|
export * from "./locationv1locationget.js";
|
|
59
59
|
export * from "./statsv1statsget.js";
|
|
@@ -0,0 +1,101 @@
|
|
|
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 LeaderboardV1GetAccountLeaderboardResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1AccountLeaderboardResponseBody?:
|
|
18
|
+
| components.V1AccountLeaderboardResponseBody
|
|
19
|
+
| undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LeaderboardV1GetAccountLeaderboardResponse$inboundSchema:
|
|
24
|
+
z.ZodType<LeaderboardV1GetAccountLeaderboardResponse, z.ZodTypeDef, unknown> =
|
|
25
|
+
z.object({
|
|
26
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
+
V1AccountLeaderboardResponseBody: components
|
|
28
|
+
.V1AccountLeaderboardResponseBody$inboundSchema.optional(),
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"HttpMeta": "httpMeta",
|
|
32
|
+
"V1AccountLeaderboardResponseBody": "v1AccountLeaderboardResponseBody",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type LeaderboardV1GetAccountLeaderboardResponse$Outbound = {
|
|
38
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
39
|
+
V1AccountLeaderboardResponseBody?:
|
|
40
|
+
| components.V1AccountLeaderboardResponseBody$Outbound
|
|
41
|
+
| undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const LeaderboardV1GetAccountLeaderboardResponse$outboundSchema:
|
|
46
|
+
z.ZodType<
|
|
47
|
+
LeaderboardV1GetAccountLeaderboardResponse$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
LeaderboardV1GetAccountLeaderboardResponse
|
|
50
|
+
> = z.object({
|
|
51
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
52
|
+
v1AccountLeaderboardResponseBody: components
|
|
53
|
+
.V1AccountLeaderboardResponseBody$outboundSchema.optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
httpMeta: "HttpMeta",
|
|
57
|
+
v1AccountLeaderboardResponseBody: "V1AccountLeaderboardResponseBody",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace LeaderboardV1GetAccountLeaderboardResponse$ {
|
|
66
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema =
|
|
68
|
+
LeaderboardV1GetAccountLeaderboardResponse$inboundSchema;
|
|
69
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema =
|
|
71
|
+
LeaderboardV1GetAccountLeaderboardResponse$outboundSchema;
|
|
72
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$Outbound` instead. */
|
|
73
|
+
export type Outbound = LeaderboardV1GetAccountLeaderboardResponse$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function leaderboardV1GetAccountLeaderboardResponseToJSON(
|
|
77
|
+
leaderboardV1GetAccountLeaderboardResponse:
|
|
78
|
+
LeaderboardV1GetAccountLeaderboardResponse,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
LeaderboardV1GetAccountLeaderboardResponse$outboundSchema.parse(
|
|
82
|
+
leaderboardV1GetAccountLeaderboardResponse,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function leaderboardV1GetAccountLeaderboardResponseFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<
|
|
90
|
+
LeaderboardV1GetAccountLeaderboardResponse,
|
|
91
|
+
SDKValidationError
|
|
92
|
+
> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) =>
|
|
96
|
+
LeaderboardV1GetAccountLeaderboardResponse$inboundSchema.parse(
|
|
97
|
+
JSON.parse(x),
|
|
98
|
+
),
|
|
99
|
+
`Failed to parse 'LeaderboardV1GetAccountLeaderboardResponse' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|