@steamsets/client-ts 0.4.1 → 0.5.1
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 +65 -44
- package/docs/sdks/account/README.md +245 -14
- package/docs/sdks/data/README.md +315 -0
- package/docs/sdks/location/README.md +80 -0
- package/docs/sdks/public/README.md +241 -0
- package/docs/sdks/session/README.md +82 -8
- package/funcs/accountAccountV1GetApps.d.ts +1 -2
- package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
- package/funcs/accountAccountV1GetApps.js +10 -3
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts +1 -2
- package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +10 -3
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- 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/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.d.ts +13 -0
- package/funcs/accountAccountV1SessionCreate.d.ts.map +1 -0
- package/funcs/accountAccountV1SessionCreate.js +112 -0
- package/funcs/accountAccountV1SessionCreate.js.map +1 -0
- package/funcs/accountAccountV1SessionLogin.d.ts +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionLogin.js +7 -14
- 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/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/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/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/sessionAccountV1SessionCreate.d.ts +13 -0
- package/funcs/sessionAccountV1SessionCreate.d.ts.map +1 -0
- package/funcs/sessionAccountV1SessionCreate.js +112 -0
- package/funcs/sessionAccountV1SessionCreate.js.map +1 -0
- package/funcs/sessionAccountV1SessionLogin.d.ts +1 -1
- package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +7 -14
- 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/accountsearchvanitystruct.d.ts +4 -4
- package/models/components/accountsearchvanitystruct.d.ts.map +1 -1
- package/models/components/accountsearchvanitystruct.js +4 -4
- package/models/components/accountsearchvanitystruct.js.map +1 -1
- 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 +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -0
- 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/security.d.ts +2 -2
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -2
- package/models/components/security.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/v1createsessionbody.d.ts +33 -0
- package/models/components/v1createsessionbody.d.ts.map +1 -0
- package/models/components/v1createsessionbody.js +65 -0
- package/models/components/v1createsessionbody.js.map +1 -0
- 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 +27 -0
- package/models/operations/accountv1getapps.d.ts.map +1 -1
- package/models/operations/accountv1getapps.js +40 -1
- package/models/operations/accountv1getapps.js.map +1 -1
- package/models/operations/accountv1getbadges.d.ts +27 -0
- package/models/operations/accountv1getbadges.d.ts.map +1 -1
- package/models/operations/accountv1getbadges.js +40 -1
- package/models/operations/accountv1getbadges.js.map +1 -1
- 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/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/accountv1sessioncreate.d.ts +60 -0
- package/models/operations/accountv1sessioncreate.d.ts.map +1 -0
- package/models/operations/accountv1sessioncreate.js +111 -0
- package/models/operations/accountv1sessioncreate.js.map +1 -0
- package/models/operations/accountv1sessionlogin.d.ts +0 -23
- package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
- package/models/operations/accountv1sessionlogin.js +1 -20
- package/models/operations/accountv1sessionlogin.js.map +1 -1
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -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 +15 -3
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +23 -2
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +22 -0
- package/sdk/data.d.ts.map +1 -0
- package/sdk/data.js +40 -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 +18 -0
- package/sdk/public.d.ts.map +1 -0
- package/sdk/public.js +33 -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 +5 -1
- package/sdk/session.d.ts.map +1 -1
- package/sdk/session.js +9 -2
- package/sdk/session.js.map +1 -1
- package/src/funcs/accountAccountV1GetApps.ts +12 -5
- package/src/funcs/accountAccountV1GetBadges.ts +12 -5
- package/src/funcs/accountAccountV1GetInfo.ts +130 -0
- package/src/funcs/accountAccountV1GetStaff.ts +113 -0
- package/src/funcs/accountAccountV1SessionCreate.ts +146 -0
- package/src/funcs/accountAccountV1SessionLogin.ts +7 -15
- package/src/funcs/dataAccountV1GetApps.ts +139 -0
- package/src/funcs/dataAccountV1GetBadges.ts +139 -0
- package/src/funcs/dataAccountV1GetInfo.ts +130 -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/publicAccountV1GetInfo.ts +130 -0
- package/src/funcs/sessionAccountV1SessionCreate.ts +146 -0
- package/src/funcs/sessionAccountV1SessionLogin.ts +7 -15
- 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/accountsearchvanitystruct.ts +8 -8
- 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 +10 -0
- 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/security.ts +4 -4
- package/src/models/components/state.ts +55 -0
- package/src/models/components/v1createsessionbody.ts +68 -0
- package/src/models/errors/errormodel.ts +8 -6
- package/src/models/operations/accountv1getapps.ts +64 -0
- package/src/models/operations/accountv1getbadges.ts +64 -0
- package/src/models/operations/accountv1getinfo.ts +68 -0
- package/src/models/operations/accountv1getstaff.ts +72 -0
- package/src/models/operations/accountv1sessioncreate.ts +138 -0
- package/src/models/operations/accountv1sessionlogin.ts +0 -40
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/location.ts +64 -0
- package/src/sdk/account.ts +35 -4
- package/src/sdk/data.ts +53 -0
- package/src/sdk/location.ts +20 -0
- package/src/sdk/public.ts +43 -0
- package/src/sdk/sdk.ts +21 -3
- package/src/sdk/session.ts +12 -2
|
@@ -0,0 +1,64 @@
|
|
|
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 * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type LocationResponse = {
|
|
10
|
+
httpMeta: components.HTTPMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* OK
|
|
13
|
+
*/
|
|
14
|
+
regions?: Array<components.Region> | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LocationResponse$inboundSchema: z.ZodType<LocationResponse, z.ZodTypeDef, unknown> = z
|
|
19
|
+
.object({
|
|
20
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
21
|
+
Regions: z.nullable(z.array(components.Region$inboundSchema)).optional(),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
HttpMeta: "httpMeta",
|
|
26
|
+
Regions: "regions",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type LocationResponse$Outbound = {
|
|
32
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
33
|
+
Regions?: Array<components.Region$Outbound> | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const LocationResponse$outboundSchema: z.ZodType<
|
|
38
|
+
LocationResponse$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
LocationResponse
|
|
41
|
+
> = z
|
|
42
|
+
.object({
|
|
43
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
44
|
+
regions: z.nullable(z.array(components.Region$outboundSchema)).optional(),
|
|
45
|
+
})
|
|
46
|
+
.transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
httpMeta: "HttpMeta",
|
|
49
|
+
regions: "Regions",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace LocationResponse$ {
|
|
58
|
+
/** @deprecated use `LocationResponse$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = LocationResponse$inboundSchema;
|
|
60
|
+
/** @deprecated use `LocationResponse$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = LocationResponse$outboundSchema;
|
|
62
|
+
/** @deprecated use `LocationResponse$Outbound` instead. */
|
|
63
|
+
export type Outbound = LocationResponse$Outbound;
|
|
64
|
+
}
|
package/src/sdk/account.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { accountAccountV1ConnectionUpdateConnection } from "../funcs/accountAcco
|
|
|
8
8
|
import { accountAccountV1ConnectionVerifyConnection } from "../funcs/accountAccountV1ConnectionVerifyConnection.js";
|
|
9
9
|
import { accountAccountV1GetApps } from "../funcs/accountAccountV1GetApps.js";
|
|
10
10
|
import { accountAccountV1GetBadges } from "../funcs/accountAccountV1GetBadges.js";
|
|
11
|
+
import { accountAccountV1GetInfo } from "../funcs/accountAccountV1GetInfo.js";
|
|
12
|
+
import { accountAccountV1GetStaff } from "../funcs/accountAccountV1GetStaff.js";
|
|
13
|
+
import { accountAccountV1SessionCreate } from "../funcs/accountAccountV1SessionCreate.js";
|
|
11
14
|
import { accountAccountV1SessionDelete } from "../funcs/accountAccountV1SessionDelete.js";
|
|
12
15
|
import { accountAccountV1SessionGet } from "../funcs/accountAccountV1SessionGet.js";
|
|
13
16
|
import { accountAccountV1SessionLogin } from "../funcs/accountAccountV1SessionLogin.js";
|
|
@@ -35,6 +38,16 @@ export class Account extends ClientSDK {
|
|
|
35
38
|
return unwrapAsync(accountAccountV1ConnectionConnect(this, request, options));
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Create a new session for non logged in users
|
|
43
|
+
*/
|
|
44
|
+
async accountV1SessionCreate(
|
|
45
|
+
request: operations.AccountV1SessionCreateRequest,
|
|
46
|
+
options?: RequestOptions
|
|
47
|
+
): Promise<operations.AccountV1SessionCreateResponse> {
|
|
48
|
+
return unwrapAsync(accountAccountV1SessionCreate(this, request, options));
|
|
49
|
+
}
|
|
50
|
+
|
|
38
51
|
/**
|
|
39
52
|
* Remove a connection
|
|
40
53
|
*/
|
|
@@ -78,7 +91,7 @@ export class Account extends ClientSDK {
|
|
|
78
91
|
* Get Account Apps
|
|
79
92
|
*/
|
|
80
93
|
async accountV1GetApps(
|
|
81
|
-
request:
|
|
94
|
+
request: operations.AccountV1GetAppsRequest,
|
|
82
95
|
options?: RequestOptions
|
|
83
96
|
): Promise<operations.AccountV1GetAppsResponse> {
|
|
84
97
|
return unwrapAsync(accountAccountV1GetApps(this, request, options));
|
|
@@ -88,12 +101,22 @@ export class Account extends ClientSDK {
|
|
|
88
101
|
* Get Account Badges
|
|
89
102
|
*/
|
|
90
103
|
async accountV1GetBadges(
|
|
91
|
-
request:
|
|
104
|
+
request: operations.AccountV1GetBadgesRequest,
|
|
92
105
|
options?: RequestOptions
|
|
93
106
|
): Promise<operations.AccountV1GetBadgesResponse> {
|
|
94
107
|
return unwrapAsync(accountAccountV1GetBadges(this, request, options));
|
|
95
108
|
}
|
|
96
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Get Account Info
|
|
112
|
+
*/
|
|
113
|
+
async accountV1GetInfo(
|
|
114
|
+
request: components.AccountSearch,
|
|
115
|
+
options?: RequestOptions
|
|
116
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
117
|
+
return unwrapAsync(accountAccountV1GetInfo(this, request, options));
|
|
118
|
+
}
|
|
119
|
+
|
|
97
120
|
/**
|
|
98
121
|
* Gets all session data
|
|
99
122
|
*/
|
|
@@ -112,15 +135,23 @@ export class Account extends ClientSDK {
|
|
|
112
135
|
return unwrapAsync(accountAccountV1SettingsGet(this, options));
|
|
113
136
|
}
|
|
114
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Get Staff Members and their info
|
|
140
|
+
*/
|
|
141
|
+
async accountV1GetStaff(
|
|
142
|
+
options?: RequestOptions
|
|
143
|
+
): Promise<operations.AccountV1GetStaffResponse> {
|
|
144
|
+
return unwrapAsync(accountAccountV1GetStaff(this, options));
|
|
145
|
+
}
|
|
146
|
+
|
|
115
147
|
/**
|
|
116
148
|
* Logs a user in and creates a new session
|
|
117
149
|
*/
|
|
118
150
|
async accountV1SessionLogin(
|
|
119
151
|
request: operations.AccountV1SessionLoginRequest,
|
|
120
|
-
security: operations.AccountV1SessionLoginSecurity,
|
|
121
152
|
options?: RequestOptions
|
|
122
153
|
): Promise<operations.AccountV1SessionLoginResponse> {
|
|
123
|
-
return unwrapAsync(accountAccountV1SessionLogin(this, request,
|
|
154
|
+
return unwrapAsync(accountAccountV1SessionLogin(this, request, options));
|
|
124
155
|
}
|
|
125
156
|
|
|
126
157
|
/**
|
package/src/sdk/data.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { dataAccountV1GetApps } from "../funcs/dataAccountV1GetApps.js";
|
|
6
|
+
import { dataAccountV1GetBadges } from "../funcs/dataAccountV1GetBadges.js";
|
|
7
|
+
import { dataAccountV1GetInfo } from "../funcs/dataAccountV1GetInfo.js";
|
|
8
|
+
import { dataAccountV1GetStaff } from "../funcs/dataAccountV1GetStaff.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as components from "../models/components/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
|
|
14
|
+
export class Data extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Get Account Apps
|
|
17
|
+
*/
|
|
18
|
+
async accountV1GetApps(
|
|
19
|
+
request: operations.AccountV1GetAppsRequest,
|
|
20
|
+
options?: RequestOptions
|
|
21
|
+
): Promise<operations.AccountV1GetAppsResponse> {
|
|
22
|
+
return unwrapAsync(dataAccountV1GetApps(this, request, options));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get Account Badges
|
|
27
|
+
*/
|
|
28
|
+
async accountV1GetBadges(
|
|
29
|
+
request: operations.AccountV1GetBadgesRequest,
|
|
30
|
+
options?: RequestOptions
|
|
31
|
+
): Promise<operations.AccountV1GetBadgesResponse> {
|
|
32
|
+
return unwrapAsync(dataAccountV1GetBadges(this, request, options));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get Account Info
|
|
37
|
+
*/
|
|
38
|
+
async accountV1GetInfo(
|
|
39
|
+
request: components.AccountSearch,
|
|
40
|
+
options?: RequestOptions
|
|
41
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
42
|
+
return unwrapAsync(dataAccountV1GetInfo(this, request, options));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Get Staff Members and their info
|
|
47
|
+
*/
|
|
48
|
+
async accountV1GetStaff(
|
|
49
|
+
options?: RequestOptions
|
|
50
|
+
): Promise<operations.AccountV1GetStaffResponse> {
|
|
51
|
+
return unwrapAsync(dataAccountV1GetStaff(this, options));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { locationLocation } from "../funcs/locationLocation.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Location extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Location List
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Get all of our available locations
|
|
16
|
+
*/
|
|
17
|
+
async location(options?: RequestOptions): Promise<operations.LocationResponse> {
|
|
18
|
+
return unwrapAsync(locationLocation(this, options));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { publicAccountV1GetApps } from "../funcs/publicAccountV1GetApps.js";
|
|
6
|
+
import { publicAccountV1GetBadges } from "../funcs/publicAccountV1GetBadges.js";
|
|
7
|
+
import { publicAccountV1GetInfo } from "../funcs/publicAccountV1GetInfo.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as components from "../models/components/index.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Public extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Get Account Apps
|
|
16
|
+
*/
|
|
17
|
+
async accountV1GetApps(
|
|
18
|
+
request: operations.AccountV1GetAppsRequest,
|
|
19
|
+
options?: RequestOptions
|
|
20
|
+
): Promise<operations.AccountV1GetAppsResponse> {
|
|
21
|
+
return unwrapAsync(publicAccountV1GetApps(this, request, options));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get Account Badges
|
|
26
|
+
*/
|
|
27
|
+
async accountV1GetBadges(
|
|
28
|
+
request: operations.AccountV1GetBadgesRequest,
|
|
29
|
+
options?: RequestOptions
|
|
30
|
+
): Promise<operations.AccountV1GetBadgesResponse> {
|
|
31
|
+
return unwrapAsync(publicAccountV1GetBadges(this, request, options));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get Account Info
|
|
36
|
+
*/
|
|
37
|
+
async accountV1GetInfo(
|
|
38
|
+
request: components.AccountSearch,
|
|
39
|
+
options?: RequestOptions
|
|
40
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
41
|
+
return unwrapAsync(publicAccountV1GetInfo(this, request, options));
|
|
42
|
+
}
|
|
43
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { Account } from "./account.js";
|
|
7
7
|
import { Connection } from "./connection.js";
|
|
8
|
+
import { Data } from "./data.js";
|
|
8
9
|
import { Liveness } from "./liveness.js";
|
|
10
|
+
import { Location } from "./location.js";
|
|
11
|
+
import { Public } from "./public.js";
|
|
9
12
|
import { Session } from "./session.js";
|
|
10
13
|
import { Settings } from "./settings.js";
|
|
11
14
|
|
|
@@ -20,18 +23,33 @@ export class SteamSets extends ClientSDK {
|
|
|
20
23
|
return (this._connection ??= new Connection(this.options$));
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
private _session?: Session;
|
|
27
|
+
get session(): Session {
|
|
28
|
+
return (this._session ??= new Session(this.options$));
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
private _settings?: Settings;
|
|
24
32
|
get settings(): Settings {
|
|
25
33
|
return (this._settings ??= new Settings(this.options$));
|
|
26
34
|
}
|
|
27
35
|
|
|
28
|
-
private
|
|
29
|
-
get
|
|
30
|
-
return (this.
|
|
36
|
+
private _data?: Data;
|
|
37
|
+
get data(): Data {
|
|
38
|
+
return (this._data ??= new Data(this.options$));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
private _public?: Public;
|
|
42
|
+
get public(): Public {
|
|
43
|
+
return (this._public ??= new Public(this.options$));
|
|
31
44
|
}
|
|
32
45
|
|
|
33
46
|
private _liveness?: Liveness;
|
|
34
47
|
get liveness(): Liveness {
|
|
35
48
|
return (this._liveness ??= new Liveness(this.options$));
|
|
36
49
|
}
|
|
50
|
+
|
|
51
|
+
private _location?: Location;
|
|
52
|
+
get location(): Location {
|
|
53
|
+
return (this._location ??= new Location(this.options$));
|
|
54
|
+
}
|
|
37
55
|
}
|
package/src/sdk/session.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { sessionAccountV1SessionCreate } from "../funcs/sessionAccountV1SessionCreate.js";
|
|
5
6
|
import { sessionAccountV1SessionDelete } from "../funcs/sessionAccountV1SessionDelete.js";
|
|
6
7
|
import { sessionAccountV1SessionGet } from "../funcs/sessionAccountV1SessionGet.js";
|
|
7
8
|
import { sessionAccountV1SessionLogin } from "../funcs/sessionAccountV1SessionLogin.js";
|
|
@@ -11,6 +12,16 @@ import * as operations from "../models/operations/index.js";
|
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
13
|
|
|
13
14
|
export class Session extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Create a new session for non logged in users
|
|
17
|
+
*/
|
|
18
|
+
async accountV1SessionCreate(
|
|
19
|
+
request: operations.AccountV1SessionCreateRequest,
|
|
20
|
+
options?: RequestOptions
|
|
21
|
+
): Promise<operations.AccountV1SessionCreateResponse> {
|
|
22
|
+
return unwrapAsync(sessionAccountV1SessionCreate(this, request, options));
|
|
23
|
+
}
|
|
24
|
+
|
|
14
25
|
/**
|
|
15
26
|
* Deletes a session, can also be used to logout
|
|
16
27
|
*/
|
|
@@ -35,9 +46,8 @@ export class Session extends ClientSDK {
|
|
|
35
46
|
*/
|
|
36
47
|
async accountV1SessionLogin(
|
|
37
48
|
request: operations.AccountV1SessionLoginRequest,
|
|
38
|
-
security: operations.AccountV1SessionLoginSecurity,
|
|
39
49
|
options?: RequestOptions
|
|
40
50
|
): Promise<operations.AccountV1SessionLoginResponse> {
|
|
41
|
-
return unwrapAsync(sessionAccountV1SessionLogin(this, request,
|
|
51
|
+
return unwrapAsync(sessionAccountV1SessionLogin(this, request, options));
|
|
42
52
|
}
|
|
43
53
|
}
|