@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
@@ -99,7 +99,7 @@ export async function sessionAccountV1SessionLogin(
99
99
 
100
100
  const doResult = await client$.do$(request$, {
101
101
  context,
102
- errorCodes: ["422", "4XX", "500", "5XX"],
102
+ errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
103
103
  retryConfig: options?.retries || client$.options$.retryConfig,
104
104
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
105
  });
@@ -126,7 +126,7 @@ export async function sessionAccountV1SessionLogin(
126
126
  m$.json(200, operations.AccountV1SessionLoginResponse$inboundSchema, {
127
127
  key: "V1LoginResponseBody",
128
128
  }),
129
- m$.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
129
+ m$.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
130
130
  ctype: "application/problem+json",
131
131
  }),
132
132
  m$.fail(["4XX", "5XX"])
package/src/lib/config.ts CHANGED
@@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
52
52
  export const SDK_METADATA = {
53
53
  language: "typescript",
54
54
  openapiDocVersion: "1.0.0",
55
- sdkVersion: "0.5.0",
56
- genVersion: "2.404.3",
57
- userAgent: "speakeasy-sdk/typescript 0.5.0 2.404.3 1.0.0 @steamsets/client-ts",
55
+ sdkVersion: "0.5.2",
56
+ genVersion: "2.407.0",
57
+ userAgent: "speakeasy-sdk/typescript 0.5.2 2.407.0 1.0.0 @steamsets/client-ts",
58
58
  } as const;
@@ -71,13 +71,20 @@ type SecurityInputOAuth2ClientCredentials = {
71
71
  fieldName: string;
72
72
  };
73
73
 
74
+ type SecurityInputCustom = {
75
+ type: "http:custom";
76
+ value: any | null | undefined;
77
+ fieldName: string;
78
+ };
79
+
74
80
  export type SecurityInput =
75
81
  | SecurityInputBasic
76
82
  | SecurityInputBearer
77
83
  | SecurityInputAPIKey
78
84
  | SecurityInputOAuth2
79
85
  | SecurityInputOAuth2ClientCredentials
80
- | SecurityInputOIDC;
86
+ | SecurityInputOIDC
87
+ | SecurityInputCustom;
81
88
 
82
89
  export function resolveSecurity(...options: SecurityInput[][]): SecurityState | null {
83
90
  const state: SecurityState = {
@@ -93,6 +100,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
93
100
  return false;
94
101
  } else if (o.type === "http:basic") {
95
102
  return o.value.username != null || o.value.password != null;
103
+ } else if (o.type === "http:custom") {
104
+ return null;
96
105
  } else if (typeof o.value === "string") {
97
106
  return !!o.value;
98
107
  } else {
@@ -126,6 +135,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
126
135
  case "http:basic":
127
136
  applyBasic(state, spec);
128
137
  break;
138
+ case "http:custom":
139
+ break;
129
140
  case "http:bearer":
130
141
  applyBearer(state, spec);
131
142
  break;
@@ -0,0 +1,532 @@
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 { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ BestLeaderboardRank,
9
+ BestLeaderboardRank$inboundSchema,
10
+ BestLeaderboardRank$Outbound,
11
+ BestLeaderboardRank$outboundSchema,
12
+ } from "./bestleaderboardrank.js";
13
+ import {
14
+ Connection,
15
+ Connection$inboundSchema,
16
+ Connection$Outbound,
17
+ Connection$outboundSchema,
18
+ } from "./connection.js";
19
+ import { Image, Image$inboundSchema, Image$Outbound, Image$outboundSchema } from "./image.js";
20
+ import {
21
+ Location,
22
+ Location$inboundSchema,
23
+ Location$Outbound,
24
+ Location$outboundSchema,
25
+ } from "./location.js";
26
+ import { Role, Role$inboundSchema, Role$Outbound, Role$outboundSchema } from "./role.js";
27
+ import * as z from "zod";
28
+
29
+ /**
30
+ * The privacy of the account
31
+ */
32
+ export const AppPrivacy = {
33
+ Private: "private",
34
+ Public: "public",
35
+ FriendsOnly: "friends_only",
36
+ } as const;
37
+ /**
38
+ * The privacy of the account
39
+ */
40
+ export type AppPrivacy = ClosedEnum<typeof AppPrivacy>;
41
+
42
+ /**
43
+ * The privacy of the account
44
+ */
45
+ export const FriendPrivacy = {
46
+ Private: "private",
47
+ Public: "public",
48
+ FriendsOnly: "friends_only",
49
+ } as const;
50
+ /**
51
+ * The privacy of the account
52
+ */
53
+ export type FriendPrivacy = ClosedEnum<typeof FriendPrivacy>;
54
+
55
+ /**
56
+ * The privacy of the account
57
+ */
58
+ export const Privacy = {
59
+ Private: "private",
60
+ Public: "public",
61
+ FriendsOnly: "friends_only",
62
+ } as const;
63
+ /**
64
+ * The privacy of the account
65
+ */
66
+ export type Privacy = ClosedEnum<typeof Privacy>;
67
+
68
+ export type AccountInfoBody = {
69
+ /**
70
+ * A URL to the JSON Schema for this object.
71
+ */
72
+ dollarSchema?: string | undefined;
73
+ /**
74
+ * The account id
75
+ */
76
+ accountId: number;
77
+ /**
78
+ * The animated avatar of the account
79
+ */
80
+ animatedAvatar: string;
81
+ /**
82
+ * The cost of an app
83
+ */
84
+ appCost: number;
85
+ /**
86
+ * The privacy of the account
87
+ */
88
+ appPrivacy: AppPrivacy;
89
+ /**
90
+ * The number of apps the account has
91
+ */
92
+ apps: number;
93
+ /**
94
+ * The time the apps were updated
95
+ */
96
+ appsUpdatedAt: Date;
97
+ /**
98
+ * The avatar hash of the account
99
+ */
100
+ avatar: string;
101
+ /**
102
+ * The avatar frame of the account
103
+ */
104
+ avatarFrame: string;
105
+ /**
106
+ * The average playtime of the account
107
+ */
108
+ averagePlaytime: number;
109
+ /**
110
+ * The number of awards the account has
111
+ */
112
+ awardsGiven: number;
113
+ /**
114
+ * The number of awards the account has
115
+ */
116
+ awardsReceived: number;
117
+ /**
118
+ * The background of the account
119
+ */
120
+ background: string;
121
+ /**
122
+ * The number of badges the account has
123
+ */
124
+ badges: number;
125
+ /**
126
+ * The time the badges were updated
127
+ */
128
+ badgesUpdatedAt: Date;
129
+ /**
130
+ * The number of bans
131
+ */
132
+ bans: number;
133
+ city?: Location | undefined;
134
+ /**
135
+ * The connections of the account
136
+ */
137
+ connections: Array<Connection> | null;
138
+ country?: Location | undefined;
139
+ /**
140
+ * The time the account was created
141
+ */
142
+ createdAt: Date;
143
+ /**
144
+ * The current best ranks
145
+ */
146
+ currentBestRanks: Array<BestLeaderboardRank> | null;
147
+ /**
148
+ * The current ranks
149
+ */
150
+ currentRanks: Array<BestLeaderboardRank> | null;
151
+ /**
152
+ * The economy ban of the account
153
+ */
154
+ economyBan: string;
155
+ /**
156
+ * The cost of a foil badge
157
+ */
158
+ foilBadgeCost: number;
159
+ /**
160
+ * The number of foil badges the account has
161
+ */
162
+ foilBadges: number;
163
+ /**
164
+ * The privacy of the account
165
+ */
166
+ friendPrivacy: FriendPrivacy;
167
+ /**
168
+ * The number of friends the account has
169
+ */
170
+ friends: number;
171
+ /**
172
+ * The time the friends were updated
173
+ */
174
+ friendsUpdatedAt: Date;
175
+ /**
176
+ * The number of game bans
177
+ */
178
+ gameBans: number;
179
+ /**
180
+ * Whether the account is hidden in the leaderboards
181
+ */
182
+ hidden: boolean;
183
+ /**
184
+ * The images of the account
185
+ */
186
+ images: Array<Image> | null;
187
+ /**
188
+ * The level of the account
189
+ */
190
+ level: number;
191
+ /**
192
+ * The number of limited apps the account has
193
+ */
194
+ limitedApps: number;
195
+ /**
196
+ * The mini background of the account
197
+ */
198
+ miniBackground: string;
199
+ /**
200
+ * The name of the account
201
+ */
202
+ name: string;
203
+ /**
204
+ * The cost of a normal badge
205
+ */
206
+ normalBadgeCost: number;
207
+ /**
208
+ * The number of normal badges the account has
209
+ */
210
+ normalBadges: number;
211
+ /**
212
+ * The playtime of the account
213
+ */
214
+ playtime: number;
215
+ /**
216
+ * The number of points the account has
217
+ */
218
+ pointsGiven: number;
219
+ /**
220
+ * The number of points the account has
221
+ */
222
+ pointsReceived: number;
223
+ /**
224
+ * The privacy of the account
225
+ */
226
+ privacy: Privacy;
227
+ region?: Location | undefined;
228
+ /**
229
+ * The roles of the account
230
+ */
231
+ roles: Array<Role> | null;
232
+ state?: Location | undefined;
233
+ /**
234
+ * The steam id
235
+ */
236
+ steamId: string;
237
+ /**
238
+ * The steam sets score
239
+ */
240
+ steamSetsScore: number;
241
+ /**
242
+ * The vanity of the account
243
+ */
244
+ steamSetsVanity: string;
245
+ /**
246
+ * The vanity of the account
247
+ */
248
+ steamVanity: string;
249
+ /**
250
+ * The theme of the account
251
+ */
252
+ theme: string;
253
+ /**
254
+ * The time the account was updated
255
+ */
256
+ updatedAt: Date;
257
+ /**
258
+ * The number of vac bans
259
+ */
260
+ vacBans: number;
261
+ /**
262
+ * The number of xp the account has
263
+ */
264
+ xp: number;
265
+ };
266
+
267
+ /** @internal */
268
+ export const AppPrivacy$inboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
269
+ z.nativeEnum(AppPrivacy);
270
+
271
+ /** @internal */
272
+ export const AppPrivacy$outboundSchema: z.ZodNativeEnum<typeof AppPrivacy> =
273
+ AppPrivacy$inboundSchema;
274
+
275
+ /**
276
+ * @internal
277
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
278
+ */
279
+ export namespace AppPrivacy$ {
280
+ /** @deprecated use `AppPrivacy$inboundSchema` instead. */
281
+ export const inboundSchema = AppPrivacy$inboundSchema;
282
+ /** @deprecated use `AppPrivacy$outboundSchema` instead. */
283
+ export const outboundSchema = AppPrivacy$outboundSchema;
284
+ }
285
+
286
+ /** @internal */
287
+ export const FriendPrivacy$inboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
288
+ z.nativeEnum(FriendPrivacy);
289
+
290
+ /** @internal */
291
+ export const FriendPrivacy$outboundSchema: z.ZodNativeEnum<typeof FriendPrivacy> =
292
+ FriendPrivacy$inboundSchema;
293
+
294
+ /**
295
+ * @internal
296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
297
+ */
298
+ export namespace FriendPrivacy$ {
299
+ /** @deprecated use `FriendPrivacy$inboundSchema` instead. */
300
+ export const inboundSchema = FriendPrivacy$inboundSchema;
301
+ /** @deprecated use `FriendPrivacy$outboundSchema` instead. */
302
+ export const outboundSchema = FriendPrivacy$outboundSchema;
303
+ }
304
+
305
+ /** @internal */
306
+ export const Privacy$inboundSchema: z.ZodNativeEnum<typeof Privacy> = z.nativeEnum(Privacy);
307
+
308
+ /** @internal */
309
+ export const Privacy$outboundSchema: z.ZodNativeEnum<typeof Privacy> = Privacy$inboundSchema;
310
+
311
+ /**
312
+ * @internal
313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
314
+ */
315
+ export namespace Privacy$ {
316
+ /** @deprecated use `Privacy$inboundSchema` instead. */
317
+ export const inboundSchema = Privacy$inboundSchema;
318
+ /** @deprecated use `Privacy$outboundSchema` instead. */
319
+ export const outboundSchema = Privacy$outboundSchema;
320
+ }
321
+
322
+ /** @internal */
323
+ export const AccountInfoBody$inboundSchema: z.ZodType<AccountInfoBody, z.ZodTypeDef, unknown> = z
324
+ .object({
325
+ $schema: z.string().optional(),
326
+ accountId: z.number().int(),
327
+ animatedAvatar: z.string(),
328
+ appCost: z.number().int(),
329
+ appPrivacy: AppPrivacy$inboundSchema,
330
+ apps: z.number().int(),
331
+ appsUpdatedAt: z
332
+ .string()
333
+ .datetime({ offset: true })
334
+ .transform((v) => new Date(v)),
335
+ avatar: z.string(),
336
+ avatarFrame: z.string(),
337
+ averagePlaytime: z.number().int(),
338
+ awardsGiven: z.number().int(),
339
+ awardsReceived: z.number().int(),
340
+ background: z.string(),
341
+ badges: z.number().int(),
342
+ badgesUpdatedAt: z
343
+ .string()
344
+ .datetime({ offset: true })
345
+ .transform((v) => new Date(v)),
346
+ bans: z.number().int(),
347
+ city: Location$inboundSchema.optional(),
348
+ connections: z.nullable(z.array(Connection$inboundSchema)),
349
+ country: Location$inboundSchema.optional(),
350
+ createdAt: z
351
+ .string()
352
+ .datetime({ offset: true })
353
+ .transform((v) => new Date(v)),
354
+ currentBestRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
355
+ currentRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
356
+ economyBan: z.string(),
357
+ foilBadgeCost: z.number().int(),
358
+ foilBadges: z.number().int(),
359
+ friendPrivacy: FriendPrivacy$inboundSchema,
360
+ friends: z.number().int(),
361
+ friendsUpdatedAt: z
362
+ .string()
363
+ .datetime({ offset: true })
364
+ .transform((v) => new Date(v)),
365
+ gameBans: z.number().int(),
366
+ hidden: z.boolean(),
367
+ images: z.nullable(z.array(Image$inboundSchema)),
368
+ level: z.number().int(),
369
+ limitedApps: z.number().int(),
370
+ miniBackground: z.string(),
371
+ name: z.string(),
372
+ normalBadgeCost: z.number().int(),
373
+ normalBadges: z.number().int(),
374
+ playtime: z.number().int(),
375
+ pointsGiven: z.number().int(),
376
+ pointsReceived: z.number().int(),
377
+ privacy: Privacy$inboundSchema,
378
+ region: Location$inboundSchema.optional(),
379
+ roles: z.nullable(z.array(Role$inboundSchema)),
380
+ state: Location$inboundSchema.optional(),
381
+ steamId: z.string(),
382
+ steamSetsScore: z.number().int(),
383
+ steamSetsVanity: z.string(),
384
+ steamVanity: z.string(),
385
+ theme: z.string(),
386
+ updatedAt: z
387
+ .string()
388
+ .datetime({ offset: true })
389
+ .transform((v) => new Date(v)),
390
+ vacBans: z.number().int(),
391
+ xp: z.number().int(),
392
+ })
393
+ .transform((v) => {
394
+ return remap$(v, {
395
+ $schema: "dollarSchema",
396
+ });
397
+ });
398
+
399
+ /** @internal */
400
+ export type AccountInfoBody$Outbound = {
401
+ $schema?: string | undefined;
402
+ accountId: number;
403
+ animatedAvatar: string;
404
+ appCost: number;
405
+ appPrivacy: string;
406
+ apps: number;
407
+ appsUpdatedAt: string;
408
+ avatar: string;
409
+ avatarFrame: string;
410
+ averagePlaytime: number;
411
+ awardsGiven: number;
412
+ awardsReceived: number;
413
+ background: string;
414
+ badges: number;
415
+ badgesUpdatedAt: string;
416
+ bans: number;
417
+ city?: Location$Outbound | undefined;
418
+ connections: Array<Connection$Outbound> | null;
419
+ country?: Location$Outbound | undefined;
420
+ createdAt: string;
421
+ currentBestRanks: Array<BestLeaderboardRank$Outbound> | null;
422
+ currentRanks: Array<BestLeaderboardRank$Outbound> | null;
423
+ economyBan: string;
424
+ foilBadgeCost: number;
425
+ foilBadges: number;
426
+ friendPrivacy: string;
427
+ friends: number;
428
+ friendsUpdatedAt: string;
429
+ gameBans: number;
430
+ hidden: boolean;
431
+ images: Array<Image$Outbound> | null;
432
+ level: number;
433
+ limitedApps: number;
434
+ miniBackground: string;
435
+ name: string;
436
+ normalBadgeCost: number;
437
+ normalBadges: number;
438
+ playtime: number;
439
+ pointsGiven: number;
440
+ pointsReceived: number;
441
+ privacy: string;
442
+ region?: Location$Outbound | undefined;
443
+ roles: Array<Role$Outbound> | null;
444
+ state?: Location$Outbound | undefined;
445
+ steamId: string;
446
+ steamSetsScore: number;
447
+ steamSetsVanity: string;
448
+ steamVanity: string;
449
+ theme: string;
450
+ updatedAt: string;
451
+ vacBans: number;
452
+ xp: number;
453
+ };
454
+
455
+ /** @internal */
456
+ export const AccountInfoBody$outboundSchema: z.ZodType<
457
+ AccountInfoBody$Outbound,
458
+ z.ZodTypeDef,
459
+ AccountInfoBody
460
+ > = z
461
+ .object({
462
+ dollarSchema: z.string().optional(),
463
+ accountId: z.number().int(),
464
+ animatedAvatar: z.string(),
465
+ appCost: z.number().int(),
466
+ appPrivacy: AppPrivacy$outboundSchema,
467
+ apps: z.number().int(),
468
+ appsUpdatedAt: z.date().transform((v) => v.toISOString()),
469
+ avatar: z.string(),
470
+ avatarFrame: z.string(),
471
+ averagePlaytime: z.number().int(),
472
+ awardsGiven: z.number().int(),
473
+ awardsReceived: z.number().int(),
474
+ background: z.string(),
475
+ badges: z.number().int(),
476
+ badgesUpdatedAt: z.date().transform((v) => v.toISOString()),
477
+ bans: z.number().int(),
478
+ city: Location$outboundSchema.optional(),
479
+ connections: z.nullable(z.array(Connection$outboundSchema)),
480
+ country: Location$outboundSchema.optional(),
481
+ createdAt: z.date().transform((v) => v.toISOString()),
482
+ currentBestRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
483
+ currentRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
484
+ economyBan: z.string(),
485
+ foilBadgeCost: z.number().int(),
486
+ foilBadges: z.number().int(),
487
+ friendPrivacy: FriendPrivacy$outboundSchema,
488
+ friends: z.number().int(),
489
+ friendsUpdatedAt: z.date().transform((v) => v.toISOString()),
490
+ gameBans: z.number().int(),
491
+ hidden: z.boolean(),
492
+ images: z.nullable(z.array(Image$outboundSchema)),
493
+ level: z.number().int(),
494
+ limitedApps: z.number().int(),
495
+ miniBackground: z.string(),
496
+ name: z.string(),
497
+ normalBadgeCost: z.number().int(),
498
+ normalBadges: z.number().int(),
499
+ playtime: z.number().int(),
500
+ pointsGiven: z.number().int(),
501
+ pointsReceived: z.number().int(),
502
+ privacy: Privacy$outboundSchema,
503
+ region: Location$outboundSchema.optional(),
504
+ roles: z.nullable(z.array(Role$outboundSchema)),
505
+ state: Location$outboundSchema.optional(),
506
+ steamId: z.string(),
507
+ steamSetsScore: z.number().int(),
508
+ steamSetsVanity: z.string(),
509
+ steamVanity: z.string(),
510
+ theme: z.string(),
511
+ updatedAt: z.date().transform((v) => v.toISOString()),
512
+ vacBans: z.number().int(),
513
+ xp: z.number().int(),
514
+ })
515
+ .transform((v) => {
516
+ return remap$(v, {
517
+ dollarSchema: "$schema",
518
+ });
519
+ });
520
+
521
+ /**
522
+ * @internal
523
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
524
+ */
525
+ export namespace AccountInfoBody$ {
526
+ /** @deprecated use `AccountInfoBody$inboundSchema` instead. */
527
+ export const inboundSchema = AccountInfoBody$inboundSchema;
528
+ /** @deprecated use `AccountInfoBody$outboundSchema` instead. */
529
+ export const outboundSchema = AccountInfoBody$outboundSchema;
530
+ /** @deprecated use `AccountInfoBody$Outbound` instead. */
531
+ export type Outbound = AccountInfoBody$Outbound;
532
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClosedEnum } from "../../types/enums.js";
6
+ import * as z from "zod";
7
+
8
+ export const AccountLeaderboardHistoryLeaderboard = {
9
+ Apps: "apps",
10
+ LimitedApps: "limited_apps",
11
+ AwardsGiven: "awards_given",
12
+ AwardsReceived: "awards_received",
13
+ Bans: "bans",
14
+ GameBans: "game_bans",
15
+ VacBans: "vac_bans",
16
+ FoilBadges: "foil_badges",
17
+ NormalBadges: "normal_badges",
18
+ Badges: "badges",
19
+ Playtime: "playtime",
20
+ PointsGiven: "points_given",
21
+ PointsReceived: "points_received",
22
+ SteamSets: "steam_sets",
23
+ Xp: "xp",
24
+ } as const;
25
+ export type AccountLeaderboardHistoryLeaderboard = ClosedEnum<
26
+ typeof AccountLeaderboardHistoryLeaderboard
27
+ >;
28
+
29
+ export type AccountLeaderboardHistory = {
30
+ date: Date;
31
+ leaderboard: AccountLeaderboardHistoryLeaderboard;
32
+ rank: number;
33
+ score: number;
34
+ };
35
+
36
+ /** @internal */
37
+ export const AccountLeaderboardHistoryLeaderboard$inboundSchema: z.ZodNativeEnum<
38
+ typeof AccountLeaderboardHistoryLeaderboard
39
+ > = z.nativeEnum(AccountLeaderboardHistoryLeaderboard);
40
+
41
+ /** @internal */
42
+ export const AccountLeaderboardHistoryLeaderboard$outboundSchema: z.ZodNativeEnum<
43
+ typeof AccountLeaderboardHistoryLeaderboard
44
+ > = AccountLeaderboardHistoryLeaderboard$inboundSchema;
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace AccountLeaderboardHistoryLeaderboard$ {
51
+ /** @deprecated use `AccountLeaderboardHistoryLeaderboard$inboundSchema` instead. */
52
+ export const inboundSchema = AccountLeaderboardHistoryLeaderboard$inboundSchema;
53
+ /** @deprecated use `AccountLeaderboardHistoryLeaderboard$outboundSchema` instead. */
54
+ export const outboundSchema = AccountLeaderboardHistoryLeaderboard$outboundSchema;
55
+ }
56
+
57
+ /** @internal */
58
+ export const AccountLeaderboardHistory$inboundSchema: z.ZodType<
59
+ AccountLeaderboardHistory,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ date: z
64
+ .string()
65
+ .datetime({ offset: true })
66
+ .transform((v) => new Date(v)),
67
+ leaderboard: AccountLeaderboardHistoryLeaderboard$inboundSchema,
68
+ rank: z.number().int(),
69
+ score: z.number().int(),
70
+ });
71
+
72
+ /** @internal */
73
+ export type AccountLeaderboardHistory$Outbound = {
74
+ date: string;
75
+ leaderboard: string;
76
+ rank: number;
77
+ score: number;
78
+ };
79
+
80
+ /** @internal */
81
+ export const AccountLeaderboardHistory$outboundSchema: z.ZodType<
82
+ AccountLeaderboardHistory$Outbound,
83
+ z.ZodTypeDef,
84
+ AccountLeaderboardHistory
85
+ > = z.object({
86
+ date: z.date().transform((v) => v.toISOString()),
87
+ leaderboard: AccountLeaderboardHistoryLeaderboard$outboundSchema,
88
+ rank: z.number().int(),
89
+ score: z.number().int(),
90
+ });
91
+
92
+ /**
93
+ * @internal
94
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
+ */
96
+ export namespace AccountLeaderboardHistory$ {
97
+ /** @deprecated use `AccountLeaderboardHistory$inboundSchema` instead. */
98
+ export const inboundSchema = AccountLeaderboardHistory$inboundSchema;
99
+ /** @deprecated use `AccountLeaderboardHistory$outboundSchema` instead. */
100
+ export const outboundSchema = AccountLeaderboardHistory$outboundSchema;
101
+ /** @deprecated use `AccountLeaderboardHistory$Outbound` instead. */
102
+ export type Outbound = AccountLeaderboardHistory$Outbound;
103
+ }