@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.
Files changed (276) hide show
  1. package/README.md +75 -9
  2. package/docs/sdks/account/README.md +383 -76
  3. package/docs/sdks/data/README.md +473 -0
  4. package/docs/sdks/location/README.md +80 -0
  5. package/docs/sdks/public/README.md +399 -0
  6. package/docs/sdks/session/README.md +62 -62
  7. package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
  8. package/funcs/accountAccountV1GetApps.js +4 -0
  9. package/funcs/accountAccountV1GetApps.js.map +1 -1
  10. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
  11. package/funcs/accountAccountV1GetBadges.js +4 -0
  12. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  13. package/funcs/accountAccountV1GetFriends.d.ts +13 -0
  14. package/funcs/accountAccountV1GetFriends.d.ts.map +1 -0
  15. package/funcs/accountAccountV1GetFriends.js +105 -0
  16. package/funcs/accountAccountV1GetFriends.js.map +1 -0
  17. package/funcs/accountAccountV1GetInfo.d.ts +14 -0
  18. package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
  19. package/funcs/accountAccountV1GetInfo.js +96 -0
  20. package/funcs/accountAccountV1GetInfo.js.map +1 -0
  21. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +13 -0
  22. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  23. package/funcs/accountAccountV1GetLeaderboardHistory.js +105 -0
  24. package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -0
  25. package/funcs/accountAccountV1GetStaff.d.ts +13 -0
  26. package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
  27. package/funcs/accountAccountV1GetStaff.js +86 -0
  28. package/funcs/accountAccountV1GetStaff.js.map +1 -0
  29. package/funcs/accountAccountV1SessionCreate.js +1 -1
  30. package/funcs/accountAccountV1SessionLogin.js +2 -2
  31. package/funcs/accountAccountV1SessionLogin.js.map +1 -1
  32. package/funcs/dataAccountV1GetApps.d.ts +13 -0
  33. package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
  34. package/funcs/dataAccountV1GetApps.js +105 -0
  35. package/funcs/dataAccountV1GetApps.js.map +1 -0
  36. package/funcs/dataAccountV1GetBadges.d.ts +13 -0
  37. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
  38. package/funcs/dataAccountV1GetBadges.js +105 -0
  39. package/funcs/dataAccountV1GetBadges.js.map +1 -0
  40. package/funcs/dataAccountV1GetFriends.d.ts +13 -0
  41. package/funcs/dataAccountV1GetFriends.d.ts.map +1 -0
  42. package/funcs/dataAccountV1GetFriends.js +105 -0
  43. package/funcs/dataAccountV1GetFriends.js.map +1 -0
  44. package/funcs/dataAccountV1GetInfo.d.ts +14 -0
  45. package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
  46. package/funcs/dataAccountV1GetInfo.js +96 -0
  47. package/funcs/dataAccountV1GetInfo.js.map +1 -0
  48. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +13 -0
  49. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  50. package/funcs/dataAccountV1GetLeaderboardHistory.js +105 -0
  51. package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -0
  52. package/funcs/dataAccountV1GetStaff.d.ts +13 -0
  53. package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
  54. package/funcs/dataAccountV1GetStaff.js +86 -0
  55. package/funcs/dataAccountV1GetStaff.js.map +1 -0
  56. package/funcs/locationLocation.d.ts +16 -0
  57. package/funcs/locationLocation.d.ts.map +1 -0
  58. package/funcs/locationLocation.js +87 -0
  59. package/funcs/locationLocation.js.map +1 -0
  60. package/funcs/publicAccountV1GetApps.d.ts +13 -0
  61. package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
  62. package/funcs/publicAccountV1GetApps.js +105 -0
  63. package/funcs/publicAccountV1GetApps.js.map +1 -0
  64. package/funcs/publicAccountV1GetBadges.d.ts +13 -0
  65. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
  66. package/funcs/publicAccountV1GetBadges.js +105 -0
  67. package/funcs/publicAccountV1GetBadges.js.map +1 -0
  68. package/funcs/publicAccountV1GetFriends.d.ts +13 -0
  69. package/funcs/publicAccountV1GetFriends.d.ts.map +1 -0
  70. package/funcs/publicAccountV1GetFriends.js +105 -0
  71. package/funcs/publicAccountV1GetFriends.js.map +1 -0
  72. package/funcs/publicAccountV1GetInfo.d.ts +14 -0
  73. package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
  74. package/funcs/publicAccountV1GetInfo.js +96 -0
  75. package/funcs/publicAccountV1GetInfo.js.map +1 -0
  76. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +13 -0
  77. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -0
  78. package/funcs/publicAccountV1GetLeaderboardHistory.js +105 -0
  79. package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -0
  80. package/funcs/sessionAccountV1SessionCreate.js +1 -1
  81. package/funcs/sessionAccountV1SessionLogin.js +2 -2
  82. package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
  83. package/lib/config.d.ts +3 -3
  84. package/lib/config.js +3 -3
  85. package/lib/security.d.ts +6 -1
  86. package/lib/security.d.ts.map +1 -1
  87. package/lib/security.js +5 -0
  88. package/lib/security.js.map +1 -1
  89. package/models/components/accountinfobody.d.ts +379 -0
  90. package/models/components/accountinfobody.d.ts.map +1 -0
  91. package/models/components/accountinfobody.js +254 -0
  92. package/models/components/accountinfobody.js.map +1 -0
  93. package/models/components/accountleaderboardhistory.d.ts +96 -0
  94. package/models/components/accountleaderboardhistory.d.ts.map +1 -0
  95. package/models/components/accountleaderboardhistory.js +91 -0
  96. package/models/components/accountleaderboardhistory.js.map +1 -0
  97. package/models/components/bestleaderboardrank.d.ts +110 -0
  98. package/models/components/bestleaderboardrank.d.ts.map +1 -0
  99. package/models/components/bestleaderboardrank.js +89 -0
  100. package/models/components/bestleaderboardrank.js.map +1 -0
  101. package/models/components/city.d.ts +28 -0
  102. package/models/components/city.d.ts.map +1 -0
  103. package/models/components/city.js +50 -0
  104. package/models/components/city.js.map +1 -0
  105. package/models/components/country.d.ts +43 -0
  106. package/models/components/country.d.ts.map +1 -0
  107. package/models/components/country.js +55 -0
  108. package/models/components/country.js.map +1 -0
  109. package/models/components/index.d.ts +14 -1
  110. package/models/components/index.d.ts.map +1 -1
  111. package/models/components/index.js +14 -1
  112. package/models/components/index.js.map +1 -1
  113. package/models/components/leaderboardaccount.d.ts +196 -0
  114. package/models/components/leaderboardaccount.d.ts.map +1 -0
  115. package/models/components/leaderboardaccount.js +128 -0
  116. package/models/components/leaderboardaccount.js.map +1 -0
  117. package/models/components/leaderboardbadgeinfo.d.ts +33 -0
  118. package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
  119. package/models/components/leaderboardbadgeinfo.js +55 -0
  120. package/models/components/leaderboardbadgeinfo.js.map +1 -0
  121. package/models/components/location.d.ts +38 -0
  122. package/models/components/location.d.ts.map +1 -0
  123. package/models/components/location.js +54 -0
  124. package/models/components/location.js.map +1 -0
  125. package/models/components/region.d.ts +38 -0
  126. package/models/components/region.d.ts.map +1 -0
  127. package/models/components/region.js +53 -0
  128. package/models/components/region.js.map +1 -0
  129. package/models/components/role.d.ts +2 -2
  130. package/models/components/role.d.ts.map +1 -1
  131. package/models/components/role.js +4 -17
  132. package/models/components/role.js.map +1 -1
  133. package/models/components/state.d.ts +43 -0
  134. package/models/components/state.d.ts.map +1 -0
  135. package/models/components/state.js +55 -0
  136. package/models/components/state.js.map +1 -0
  137. package/models/components/v1accountapp.d.ts +53 -0
  138. package/models/components/v1accountapp.d.ts.map +1 -0
  139. package/models/components/{v1app.js → v1accountapp.js} +11 -11
  140. package/models/components/v1accountapp.js.map +1 -0
  141. package/models/components/v1accountfriend.d.ts +198 -0
  142. package/models/components/v1accountfriend.d.ts.map +1 -0
  143. package/models/components/v1accountfriend.js +133 -0
  144. package/models/components/v1accountfriend.js.map +1 -0
  145. package/models/components/v1accountfriendsresponsebody.d.ts +31 -0
  146. package/models/components/v1accountfriendsresponsebody.d.ts.map +1 -0
  147. package/models/components/v1accountfriendsresponsebody.js +66 -0
  148. package/models/components/v1accountfriendsresponsebody.js.map +1 -0
  149. package/models/components/v1accountleaderboardhistoryresponsebody.d.ts +31 -0
  150. package/models/components/v1accountleaderboardhistoryresponsebody.d.ts.map +1 -0
  151. package/models/components/v1accountleaderboardhistoryresponsebody.js +66 -0
  152. package/models/components/v1accountleaderboardhistoryresponsebody.js.map +1 -0
  153. package/models/components/v1accountsappsresponsebody.d.ts +3 -3
  154. package/models/components/v1accountsappsresponsebody.d.ts.map +1 -1
  155. package/models/components/v1accountsappsresponsebody.js +3 -3
  156. package/models/components/v1accountsappsresponsebody.js.map +1 -1
  157. package/models/errors/errormodel.d.ts +5 -5
  158. package/models/errors/errormodel.d.ts.map +1 -1
  159. package/models/errors/errormodel.js +4 -2
  160. package/models/errors/errormodel.js.map +1 -1
  161. package/models/operations/accountv1getapps.d.ts +2 -0
  162. package/models/operations/accountv1getapps.d.ts.map +1 -1
  163. package/models/operations/accountv1getapps.js +4 -0
  164. package/models/operations/accountv1getapps.js.map +1 -1
  165. package/models/operations/accountv1getbadges.d.ts +2 -0
  166. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  167. package/models/operations/accountv1getbadges.js +4 -0
  168. package/models/operations/accountv1getbadges.js.map +1 -1
  169. package/models/operations/accountv1getfriends.d.ts +58 -0
  170. package/models/operations/accountv1getfriends.d.ts.map +1 -0
  171. package/models/operations/accountv1getfriends.js +107 -0
  172. package/models/operations/accountv1getfriends.js.map +1 -0
  173. package/models/operations/accountv1getinfo.d.ts +31 -0
  174. package/models/operations/accountv1getinfo.d.ts.map +1 -0
  175. package/models/operations/accountv1getinfo.js +68 -0
  176. package/models/operations/accountv1getinfo.js.map +1 -0
  177. package/models/operations/accountv1getleaderboardhistory.d.ts +58 -0
  178. package/models/operations/accountv1getleaderboardhistory.d.ts.map +1 -0
  179. package/models/operations/accountv1getleaderboardhistory.js +107 -0
  180. package/models/operations/accountv1getleaderboardhistory.js.map +1 -0
  181. package/models/operations/accountv1getstaff.d.ts +31 -0
  182. package/models/operations/accountv1getstaff.d.ts.map +1 -0
  183. package/models/operations/accountv1getstaff.js +72 -0
  184. package/models/operations/accountv1getstaff.js.map +1 -0
  185. package/models/operations/index.d.ts +5 -0
  186. package/models/operations/index.d.ts.map +1 -1
  187. package/models/operations/index.js +5 -0
  188. package/models/operations/index.js.map +1 -1
  189. package/models/operations/location.d.ts +31 -0
  190. package/models/operations/location.d.ts.map +1 -0
  191. package/models/operations/location.js +68 -0
  192. package/models/operations/location.js.map +1 -0
  193. package/package.json +1 -1
  194. package/sdk/account.d.ts +20 -4
  195. package/sdk/account.d.ts.map +1 -1
  196. package/sdk/account.js +34 -6
  197. package/sdk/account.js.map +1 -1
  198. package/sdk/data.d.ts +30 -0
  199. package/sdk/data.d.ts.map +1 -0
  200. package/sdk/data.js +54 -0
  201. package/sdk/data.js.map +1 -0
  202. package/sdk/location.d.ts +12 -0
  203. package/sdk/location.d.ts.map +1 -0
  204. package/sdk/location.js +22 -0
  205. package/sdk/location.js.map +1 -0
  206. package/sdk/public.d.ts +26 -0
  207. package/sdk/public.d.ts.map +1 -0
  208. package/sdk/public.js +47 -0
  209. package/sdk/public.js.map +1 -0
  210. package/sdk/sdk.d.ts +11 -2
  211. package/sdk/sdk.d.ts.map +1 -1
  212. package/sdk/sdk.js +17 -2
  213. package/sdk/sdk.js.map +1 -1
  214. package/sdk/session.d.ts +4 -4
  215. package/sdk/session.d.ts.map +1 -1
  216. package/sdk/session.js +6 -6
  217. package/sdk/session.js.map +1 -1
  218. package/src/funcs/accountAccountV1GetApps.ts +4 -0
  219. package/src/funcs/accountAccountV1GetBadges.ts +4 -0
  220. package/src/funcs/accountAccountV1GetFriends.ts +139 -0
  221. package/src/funcs/accountAccountV1GetInfo.ts +130 -0
  222. package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +139 -0
  223. package/src/funcs/accountAccountV1GetStaff.ts +113 -0
  224. package/src/funcs/accountAccountV1SessionCreate.ts +1 -1
  225. package/src/funcs/accountAccountV1SessionLogin.ts +2 -2
  226. package/src/funcs/dataAccountV1GetApps.ts +139 -0
  227. package/src/funcs/dataAccountV1GetBadges.ts +139 -0
  228. package/src/funcs/dataAccountV1GetFriends.ts +139 -0
  229. package/src/funcs/dataAccountV1GetInfo.ts +130 -0
  230. package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +139 -0
  231. package/src/funcs/dataAccountV1GetStaff.ts +113 -0
  232. package/src/funcs/locationLocation.ts +114 -0
  233. package/src/funcs/publicAccountV1GetApps.ts +139 -0
  234. package/src/funcs/publicAccountV1GetBadges.ts +139 -0
  235. package/src/funcs/publicAccountV1GetFriends.ts +139 -0
  236. package/src/funcs/publicAccountV1GetInfo.ts +130 -0
  237. package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +139 -0
  238. package/src/funcs/sessionAccountV1SessionCreate.ts +1 -1
  239. package/src/funcs/sessionAccountV1SessionLogin.ts +2 -2
  240. package/src/lib/config.ts +3 -3
  241. package/src/lib/security.ts +12 -1
  242. package/src/models/components/accountinfobody.ts +532 -0
  243. package/src/models/components/accountleaderboardhistory.ts +103 -0
  244. package/src/models/components/bestleaderboardrank.ts +102 -0
  245. package/src/models/components/city.ts +40 -0
  246. package/src/models/components/country.ts +55 -0
  247. package/src/models/components/index.ts +14 -1
  248. package/src/models/components/leaderboardaccount.ts +301 -0
  249. package/src/models/components/leaderboardbadgeinfo.ts +58 -0
  250. package/src/models/components/location.ts +55 -0
  251. package/src/models/components/region.ts +53 -0
  252. package/src/models/components/role.ts +14 -27
  253. package/src/models/components/state.ts +55 -0
  254. package/src/models/components/{v1app.ts → v1accountapp.ts} +15 -11
  255. package/src/models/components/v1accountfriend.ts +307 -0
  256. package/src/models/components/v1accountfriendsresponsebody.ts +71 -0
  257. package/src/models/components/v1accountleaderboardhistoryresponsebody.ts +71 -0
  258. package/src/models/components/v1accountsappsresponsebody.ts +10 -5
  259. package/src/models/errors/errormodel.ts +8 -6
  260. package/src/models/operations/accountv1getapps.ts +6 -0
  261. package/src/models/operations/accountv1getbadges.ts +6 -0
  262. package/src/models/operations/accountv1getfriends.ts +134 -0
  263. package/src/models/operations/accountv1getinfo.ts +68 -0
  264. package/src/models/operations/accountv1getleaderboardhistory.ts +138 -0
  265. package/src/models/operations/accountv1getstaff.ts +72 -0
  266. package/src/models/operations/index.ts +5 -0
  267. package/src/models/operations/location.ts +64 -0
  268. package/src/sdk/account.ts +53 -10
  269. package/src/sdk/data.ts +75 -0
  270. package/src/sdk/location.ts +20 -0
  271. package/src/sdk/public.ts +65 -0
  272. package/src/sdk/sdk.ts +21 -3
  273. package/src/sdk/session.ts +10 -10
  274. package/models/components/v1app.d.ts +0 -53
  275. package/models/components/v1app.d.ts.map +0 -1
  276. package/models/components/v1app.js.map +0 -1
@@ -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
  }
@@ -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 _session?: Session;
29
- get session(): Session {
30
- return (this._session ??= new Session(this.options$));
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
  }
@@ -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"}