@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
package/src/sdk/account.ts
CHANGED
|
@@ -8,6 +8,10 @@ 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 { accountAccountV1GetFriends } from "../funcs/accountAccountV1GetFriends.js";
|
|
12
|
+
import { accountAccountV1GetInfo } from "../funcs/accountAccountV1GetInfo.js";
|
|
13
|
+
import { accountAccountV1GetLeaderboardHistory } from "../funcs/accountAccountV1GetLeaderboardHistory.js";
|
|
14
|
+
import { accountAccountV1GetStaff } from "../funcs/accountAccountV1GetStaff.js";
|
|
11
15
|
import { accountAccountV1SessionCreate } from "../funcs/accountAccountV1SessionCreate.js";
|
|
12
16
|
import { accountAccountV1SessionDelete } from "../funcs/accountAccountV1SessionDelete.js";
|
|
13
17
|
import { accountAccountV1SessionGet } from "../funcs/accountAccountV1SessionGet.js";
|
|
@@ -36,6 +40,16 @@ export class Account extends ClientSDK {
|
|
|
36
40
|
return unwrapAsync(accountAccountV1ConnectionConnect(this, request, options));
|
|
37
41
|
}
|
|
38
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Create a new session for non logged in users
|
|
45
|
+
*/
|
|
46
|
+
async accountV1SessionCreate(
|
|
47
|
+
request: operations.AccountV1SessionCreateRequest,
|
|
48
|
+
options?: RequestOptions
|
|
49
|
+
): Promise<operations.AccountV1SessionCreateResponse> {
|
|
50
|
+
return unwrapAsync(accountAccountV1SessionCreate(this, request, options));
|
|
51
|
+
}
|
|
52
|
+
|
|
39
53
|
/**
|
|
40
54
|
* Remove a connection
|
|
41
55
|
*/
|
|
@@ -95,6 +109,36 @@ export class Account extends ClientSDK {
|
|
|
95
109
|
return unwrapAsync(accountAccountV1GetBadges(this, request, options));
|
|
96
110
|
}
|
|
97
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Get Account Friends
|
|
114
|
+
*/
|
|
115
|
+
async accountV1GetFriends(
|
|
116
|
+
request: operations.AccountV1GetFriendsRequest,
|
|
117
|
+
options?: RequestOptions
|
|
118
|
+
): Promise<operations.AccountV1GetFriendsResponse> {
|
|
119
|
+
return unwrapAsync(accountAccountV1GetFriends(this, request, options));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Get Account Info
|
|
124
|
+
*/
|
|
125
|
+
async accountV1GetInfo(
|
|
126
|
+
request: components.AccountSearch,
|
|
127
|
+
options?: RequestOptions
|
|
128
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
129
|
+
return unwrapAsync(accountAccountV1GetInfo(this, request, options));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get Account Leaderboard History
|
|
134
|
+
*/
|
|
135
|
+
async accountV1GetLeaderboardHistory(
|
|
136
|
+
request: operations.AccountV1GetLeaderboardHistoryRequest,
|
|
137
|
+
options?: RequestOptions
|
|
138
|
+
): Promise<operations.AccountV1GetLeaderboardHistoryResponse> {
|
|
139
|
+
return unwrapAsync(accountAccountV1GetLeaderboardHistory(this, request, options));
|
|
140
|
+
}
|
|
141
|
+
|
|
98
142
|
/**
|
|
99
143
|
* Gets all session data
|
|
100
144
|
*/
|
|
@@ -113,6 +157,15 @@ export class Account extends ClientSDK {
|
|
|
113
157
|
return unwrapAsync(accountAccountV1SettingsGet(this, options));
|
|
114
158
|
}
|
|
115
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Get Staff Members and their info
|
|
162
|
+
*/
|
|
163
|
+
async accountV1GetStaff(
|
|
164
|
+
options?: RequestOptions
|
|
165
|
+
): Promise<operations.AccountV1GetStaffResponse> {
|
|
166
|
+
return unwrapAsync(accountAccountV1GetStaff(this, options));
|
|
167
|
+
}
|
|
168
|
+
|
|
116
169
|
/**
|
|
117
170
|
* Logs a user in and creates a new session
|
|
118
171
|
*/
|
|
@@ -192,14 +245,4 @@ export class Account extends ClientSDK {
|
|
|
192
245
|
): Promise<operations.AccountV1SettingsVerfyEmailResponse> {
|
|
193
246
|
return unwrapAsync(accountAccountV1SettingsVerfyEmail(this, request, options));
|
|
194
247
|
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Create a new session for non logged in users
|
|
198
|
-
*/
|
|
199
|
-
async accountV1SessionCreate(
|
|
200
|
-
request: operations.AccountV1SessionCreateRequest,
|
|
201
|
-
options?: RequestOptions
|
|
202
|
-
): Promise<operations.AccountV1SessionCreateResponse> {
|
|
203
|
-
return unwrapAsync(accountAccountV1SessionCreate(this, request, options));
|
|
204
|
-
}
|
|
205
248
|
}
|
package/src/sdk/data.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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 { dataAccountV1GetFriends } from "../funcs/dataAccountV1GetFriends.js";
|
|
8
|
+
import { dataAccountV1GetInfo } from "../funcs/dataAccountV1GetInfo.js";
|
|
9
|
+
import { dataAccountV1GetLeaderboardHistory } from "../funcs/dataAccountV1GetLeaderboardHistory.js";
|
|
10
|
+
import { dataAccountV1GetStaff } from "../funcs/dataAccountV1GetStaff.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import * as operations from "../models/operations/index.js";
|
|
14
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
15
|
+
|
|
16
|
+
export class Data extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* Get Account Apps
|
|
19
|
+
*/
|
|
20
|
+
async accountV1GetApps(
|
|
21
|
+
request: operations.AccountV1GetAppsRequest,
|
|
22
|
+
options?: RequestOptions
|
|
23
|
+
): Promise<operations.AccountV1GetAppsResponse> {
|
|
24
|
+
return unwrapAsync(dataAccountV1GetApps(this, request, options));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get Account Badges
|
|
29
|
+
*/
|
|
30
|
+
async accountV1GetBadges(
|
|
31
|
+
request: operations.AccountV1GetBadgesRequest,
|
|
32
|
+
options?: RequestOptions
|
|
33
|
+
): Promise<operations.AccountV1GetBadgesResponse> {
|
|
34
|
+
return unwrapAsync(dataAccountV1GetBadges(this, request, options));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get Account Friends
|
|
39
|
+
*/
|
|
40
|
+
async accountV1GetFriends(
|
|
41
|
+
request: operations.AccountV1GetFriendsRequest,
|
|
42
|
+
options?: RequestOptions
|
|
43
|
+
): Promise<operations.AccountV1GetFriendsResponse> {
|
|
44
|
+
return unwrapAsync(dataAccountV1GetFriends(this, request, options));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get Account Info
|
|
49
|
+
*/
|
|
50
|
+
async accountV1GetInfo(
|
|
51
|
+
request: components.AccountSearch,
|
|
52
|
+
options?: RequestOptions
|
|
53
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
54
|
+
return unwrapAsync(dataAccountV1GetInfo(this, request, options));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Get Account Leaderboard History
|
|
59
|
+
*/
|
|
60
|
+
async accountV1GetLeaderboardHistory(
|
|
61
|
+
request: operations.AccountV1GetLeaderboardHistoryRequest,
|
|
62
|
+
options?: RequestOptions
|
|
63
|
+
): Promise<operations.AccountV1GetLeaderboardHistoryResponse> {
|
|
64
|
+
return unwrapAsync(dataAccountV1GetLeaderboardHistory(this, request, options));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get Staff Members and their info
|
|
69
|
+
*/
|
|
70
|
+
async accountV1GetStaff(
|
|
71
|
+
options?: RequestOptions
|
|
72
|
+
): Promise<operations.AccountV1GetStaffResponse> {
|
|
73
|
+
return unwrapAsync(dataAccountV1GetStaff(this, options));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -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,65 @@
|
|
|
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 { publicAccountV1GetFriends } from "../funcs/publicAccountV1GetFriends.js";
|
|
8
|
+
import { publicAccountV1GetInfo } from "../funcs/publicAccountV1GetInfo.js";
|
|
9
|
+
import { publicAccountV1GetLeaderboardHistory } from "../funcs/publicAccountV1GetLeaderboardHistory.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class Public extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* Get Account Apps
|
|
18
|
+
*/
|
|
19
|
+
async accountV1GetApps(
|
|
20
|
+
request: operations.AccountV1GetAppsRequest,
|
|
21
|
+
options?: RequestOptions
|
|
22
|
+
): Promise<operations.AccountV1GetAppsResponse> {
|
|
23
|
+
return unwrapAsync(publicAccountV1GetApps(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get Account Badges
|
|
28
|
+
*/
|
|
29
|
+
async accountV1GetBadges(
|
|
30
|
+
request: operations.AccountV1GetBadgesRequest,
|
|
31
|
+
options?: RequestOptions
|
|
32
|
+
): Promise<operations.AccountV1GetBadgesResponse> {
|
|
33
|
+
return unwrapAsync(publicAccountV1GetBadges(this, request, options));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get Account Friends
|
|
38
|
+
*/
|
|
39
|
+
async accountV1GetFriends(
|
|
40
|
+
request: operations.AccountV1GetFriendsRequest,
|
|
41
|
+
options?: RequestOptions
|
|
42
|
+
): Promise<operations.AccountV1GetFriendsResponse> {
|
|
43
|
+
return unwrapAsync(publicAccountV1GetFriends(this, request, options));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get Account Info
|
|
48
|
+
*/
|
|
49
|
+
async accountV1GetInfo(
|
|
50
|
+
request: components.AccountSearch,
|
|
51
|
+
options?: RequestOptions
|
|
52
|
+
): Promise<operations.AccountV1GetInfoResponse> {
|
|
53
|
+
return unwrapAsync(publicAccountV1GetInfo(this, request, options));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get Account Leaderboard History
|
|
58
|
+
*/
|
|
59
|
+
async accountV1GetLeaderboardHistory(
|
|
60
|
+
request: operations.AccountV1GetLeaderboardHistoryRequest,
|
|
61
|
+
options?: RequestOptions
|
|
62
|
+
): Promise<operations.AccountV1GetLeaderboardHistoryResponse> {
|
|
63
|
+
return unwrapAsync(publicAccountV1GetLeaderboardHistory(this, request, options));
|
|
64
|
+
}
|
|
65
|
+
}
|
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
|
@@ -12,6 +12,16 @@ import * as operations from "../models/operations/index.js";
|
|
|
12
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
13
|
|
|
14
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
|
+
|
|
15
25
|
/**
|
|
16
26
|
* Deletes a session, can also be used to logout
|
|
17
27
|
*/
|
|
@@ -40,14 +50,4 @@ export class Session extends ClientSDK {
|
|
|
40
50
|
): Promise<operations.AccountV1SessionLoginResponse> {
|
|
41
51
|
return unwrapAsync(sessionAccountV1SessionLogin(this, request, options));
|
|
42
52
|
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Create a new session for non logged in users
|
|
46
|
-
*/
|
|
47
|
-
async accountV1SessionCreate(
|
|
48
|
-
request: operations.AccountV1SessionCreateRequest,
|
|
49
|
-
options?: RequestOptions
|
|
50
|
-
): Promise<operations.AccountV1SessionCreateResponse> {
|
|
51
|
-
return unwrapAsync(sessionAccountV1SessionCreate(this, request, options));
|
|
52
|
-
}
|
|
53
53
|
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type V1App = {
|
|
3
|
-
/**
|
|
4
|
-
* The Steam App ID
|
|
5
|
-
*/
|
|
6
|
-
id: number;
|
|
7
|
-
/**
|
|
8
|
-
* The App's image URL
|
|
9
|
-
*/
|
|
10
|
-
image: string;
|
|
11
|
-
/**
|
|
12
|
-
* The App's name
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* The Account's playtime in the App
|
|
17
|
-
*/
|
|
18
|
-
playtime: number;
|
|
19
|
-
/**
|
|
20
|
-
* How much the app costs
|
|
21
|
-
*/
|
|
22
|
-
price: number;
|
|
23
|
-
/**
|
|
24
|
-
* The App's short name
|
|
25
|
-
*/
|
|
26
|
-
shortName: string;
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const V1App$inboundSchema: z.ZodType<V1App, z.ZodTypeDef, unknown>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
export type V1App$Outbound = {
|
|
32
|
-
id: number;
|
|
33
|
-
image: string;
|
|
34
|
-
name: string;
|
|
35
|
-
playtime: number;
|
|
36
|
-
price: number;
|
|
37
|
-
shortName: string;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const V1App$outboundSchema: z.ZodType<V1App$Outbound, z.ZodTypeDef, V1App>;
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export declare namespace V1App$ {
|
|
46
|
-
/** @deprecated use `V1App$inboundSchema` instead. */
|
|
47
|
-
const inboundSchema: z.ZodType<V1App, z.ZodTypeDef, unknown>;
|
|
48
|
-
/** @deprecated use `V1App$outboundSchema` instead. */
|
|
49
|
-
const outboundSchema: z.ZodType<V1App$Outbound, z.ZodTypeDef, V1App>;
|
|
50
|
-
/** @deprecated use `V1App$Outbound` instead. */
|
|
51
|
-
type Outbound = V1App$Outbound;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=v1app.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1app.d.ts","sourceRoot":"","sources":["../../src/models/components/v1app.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,KAAK,GAAG;IAChB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAOtE,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,UAAU,EAAE,KAAK,CAO9E,CAAC;AAEH;;;GAGG;AACH,yBAAiB,MAAM,CAAC;IACpB,qDAAqD;IAC9C,MAAM,aAAa,yCAAsB,CAAC;IACjD,sDAAsD;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1app.js","sourceRoot":"","sources":["../../src/models/components/v1app.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AA6BzB,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC,CAAC,MAAM,CAAC;IACjF,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,oBAAoB,GAAmD,CAAC,CAAC,MAAM,CAAC;IACzF,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACnB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AAGvD,CAAC,EAPgB,MAAM,sBAAN,MAAM,QAOtB"}
|