@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
@@ -7,7 +7,7 @@ import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
9
  /**
10
- * Bad Request
10
+ * Unprocessable Entity
11
11
  */
12
12
  export type ErrorModelData = {
13
13
  /**
@@ -37,11 +37,11 @@ export type ErrorModelData = {
37
37
  /**
38
38
  * A URI reference to human-readable documentation for the error.
39
39
  */
40
- type: string;
40
+ type?: string;
41
41
  };
42
42
 
43
43
  /**
44
- * Bad Request
44
+ * Unprocessable Entity
45
45
  */
46
46
  export class ErrorModel extends Error {
47
47
  /**
@@ -71,7 +71,7 @@ export class ErrorModel extends Error {
71
71
  /**
72
72
  * A URI reference to human-readable documentation for the error.
73
73
  */
74
- type: string;
74
+ type?: string;
75
75
 
76
76
  /** The original data that was passed to this error instance. */
77
77
  data$: ErrorModelData;
@@ -102,7 +102,9 @@ export class ErrorModel extends Error {
102
102
  if (err.title != null) {
103
103
  this.title = err.title;
104
104
  }
105
- this.type = err.type;
105
+ if (err.type != null) {
106
+ this.type = err.type;
107
+ }
106
108
 
107
109
  this.name = "ErrorModel";
108
110
  }
@@ -135,7 +137,7 @@ export type ErrorModel$Outbound = {
135
137
  instance?: string | undefined;
136
138
  status?: number | undefined;
137
139
  title?: string | undefined;
138
- type: string;
140
+ type?: string;
139
141
  };
140
142
 
141
143
  /** @internal */
@@ -8,6 +8,7 @@ import * as z from "zod";
8
8
 
9
9
  export type AccountV1GetAppsRequest = {
10
10
  xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
11
12
  accountSearch: components.AccountSearch;
12
13
  };
13
14
 
@@ -27,11 +28,13 @@ export const AccountV1GetAppsRequest$inboundSchema: z.ZodType<
27
28
  > = z
28
29
  .object({
29
30
  "X-Forwarded-For": z.string().optional(),
31
+ "User-Agent": z.string().optional(),
30
32
  AccountSearch: components.AccountSearch$inboundSchema,
31
33
  })
32
34
  .transform((v) => {
33
35
  return remap$(v, {
34
36
  "X-Forwarded-For": "xForwardedFor",
37
+ "User-Agent": "userAgent",
35
38
  AccountSearch: "accountSearch",
36
39
  });
37
40
  });
@@ -39,6 +42,7 @@ export const AccountV1GetAppsRequest$inboundSchema: z.ZodType<
39
42
  /** @internal */
40
43
  export type AccountV1GetAppsRequest$Outbound = {
41
44
  "X-Forwarded-For"?: string | undefined;
45
+ "User-Agent"?: string | undefined;
42
46
  AccountSearch: components.AccountSearch$Outbound;
43
47
  };
44
48
 
@@ -50,11 +54,13 @@ export const AccountV1GetAppsRequest$outboundSchema: z.ZodType<
50
54
  > = z
51
55
  .object({
52
56
  xForwardedFor: z.string().optional(),
57
+ userAgent: z.string().optional(),
53
58
  accountSearch: components.AccountSearch$outboundSchema,
54
59
  })
55
60
  .transform((v) => {
56
61
  return remap$(v, {
57
62
  xForwardedFor: "X-Forwarded-For",
63
+ userAgent: "User-Agent",
58
64
  accountSearch: "AccountSearch",
59
65
  });
60
66
  });
@@ -8,6 +8,7 @@ import * as z from "zod";
8
8
 
9
9
  export type AccountV1GetBadgesRequest = {
10
10
  xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
11
12
  accountSearch: components.AccountSearch;
12
13
  };
13
14
 
@@ -27,11 +28,13 @@ export const AccountV1GetBadgesRequest$inboundSchema: z.ZodType<
27
28
  > = z
28
29
  .object({
29
30
  "X-Forwarded-For": z.string().optional(),
31
+ "User-Agent": z.string().optional(),
30
32
  AccountSearch: components.AccountSearch$inboundSchema,
31
33
  })
32
34
  .transform((v) => {
33
35
  return remap$(v, {
34
36
  "X-Forwarded-For": "xForwardedFor",
37
+ "User-Agent": "userAgent",
35
38
  AccountSearch: "accountSearch",
36
39
  });
37
40
  });
@@ -39,6 +42,7 @@ export const AccountV1GetBadgesRequest$inboundSchema: z.ZodType<
39
42
  /** @internal */
40
43
  export type AccountV1GetBadgesRequest$Outbound = {
41
44
  "X-Forwarded-For"?: string | undefined;
45
+ "User-Agent"?: string | undefined;
42
46
  AccountSearch: components.AccountSearch$Outbound;
43
47
  };
44
48
 
@@ -50,11 +54,13 @@ export const AccountV1GetBadgesRequest$outboundSchema: z.ZodType<
50
54
  > = z
51
55
  .object({
52
56
  xForwardedFor: z.string().optional(),
57
+ userAgent: z.string().optional(),
53
58
  accountSearch: components.AccountSearch$outboundSchema,
54
59
  })
55
60
  .transform((v) => {
56
61
  return remap$(v, {
57
62
  xForwardedFor: "X-Forwarded-For",
63
+ userAgent: "User-Agent",
58
64
  accountSearch: "AccountSearch",
59
65
  });
60
66
  });
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type AccountV1GetFriendsRequest = {
10
+ xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
12
+ accountSearch: components.AccountSearch;
13
+ };
14
+
15
+ export type AccountV1GetFriendsResponse = {
16
+ httpMeta: components.HTTPMetadata;
17
+ /**
18
+ * OK
19
+ */
20
+ v1AccountFriendsResponseBody?: components.V1AccountFriendsResponseBody | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const AccountV1GetFriendsRequest$inboundSchema: z.ZodType<
25
+ AccountV1GetFriendsRequest,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z
29
+ .object({
30
+ "X-Forwarded-For": z.string().optional(),
31
+ "User-Agent": z.string().optional(),
32
+ AccountSearch: components.AccountSearch$inboundSchema,
33
+ })
34
+ .transform((v) => {
35
+ return remap$(v, {
36
+ "X-Forwarded-For": "xForwardedFor",
37
+ "User-Agent": "userAgent",
38
+ AccountSearch: "accountSearch",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type AccountV1GetFriendsRequest$Outbound = {
44
+ "X-Forwarded-For"?: string | undefined;
45
+ "User-Agent"?: string | undefined;
46
+ AccountSearch: components.AccountSearch$Outbound;
47
+ };
48
+
49
+ /** @internal */
50
+ export const AccountV1GetFriendsRequest$outboundSchema: z.ZodType<
51
+ AccountV1GetFriendsRequest$Outbound,
52
+ z.ZodTypeDef,
53
+ AccountV1GetFriendsRequest
54
+ > = z
55
+ .object({
56
+ xForwardedFor: z.string().optional(),
57
+ userAgent: z.string().optional(),
58
+ accountSearch: components.AccountSearch$outboundSchema,
59
+ })
60
+ .transform((v) => {
61
+ return remap$(v, {
62
+ xForwardedFor: "X-Forwarded-For",
63
+ userAgent: "User-Agent",
64
+ accountSearch: "AccountSearch",
65
+ });
66
+ });
67
+
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export namespace AccountV1GetFriendsRequest$ {
73
+ /** @deprecated use `AccountV1GetFriendsRequest$inboundSchema` instead. */
74
+ export const inboundSchema = AccountV1GetFriendsRequest$inboundSchema;
75
+ /** @deprecated use `AccountV1GetFriendsRequest$outboundSchema` instead. */
76
+ export const outboundSchema = AccountV1GetFriendsRequest$outboundSchema;
77
+ /** @deprecated use `AccountV1GetFriendsRequest$Outbound` instead. */
78
+ export type Outbound = AccountV1GetFriendsRequest$Outbound;
79
+ }
80
+
81
+ /** @internal */
82
+ export const AccountV1GetFriendsResponse$inboundSchema: z.ZodType<
83
+ AccountV1GetFriendsResponse,
84
+ z.ZodTypeDef,
85
+ unknown
86
+ > = z
87
+ .object({
88
+ HttpMeta: components.HTTPMetadata$inboundSchema,
89
+ V1AccountFriendsResponseBody:
90
+ components.V1AccountFriendsResponseBody$inboundSchema.optional(),
91
+ })
92
+ .transform((v) => {
93
+ return remap$(v, {
94
+ HttpMeta: "httpMeta",
95
+ V1AccountFriendsResponseBody: "v1AccountFriendsResponseBody",
96
+ });
97
+ });
98
+
99
+ /** @internal */
100
+ export type AccountV1GetFriendsResponse$Outbound = {
101
+ HttpMeta: components.HTTPMetadata$Outbound;
102
+ V1AccountFriendsResponseBody?: components.V1AccountFriendsResponseBody$Outbound | undefined;
103
+ };
104
+
105
+ /** @internal */
106
+ export const AccountV1GetFriendsResponse$outboundSchema: z.ZodType<
107
+ AccountV1GetFriendsResponse$Outbound,
108
+ z.ZodTypeDef,
109
+ AccountV1GetFriendsResponse
110
+ > = z
111
+ .object({
112
+ httpMeta: components.HTTPMetadata$outboundSchema,
113
+ v1AccountFriendsResponseBody:
114
+ components.V1AccountFriendsResponseBody$outboundSchema.optional(),
115
+ })
116
+ .transform((v) => {
117
+ return remap$(v, {
118
+ httpMeta: "HttpMeta",
119
+ v1AccountFriendsResponseBody: "V1AccountFriendsResponseBody",
120
+ });
121
+ });
122
+
123
+ /**
124
+ * @internal
125
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
126
+ */
127
+ export namespace AccountV1GetFriendsResponse$ {
128
+ /** @deprecated use `AccountV1GetFriendsResponse$inboundSchema` instead. */
129
+ export const inboundSchema = AccountV1GetFriendsResponse$inboundSchema;
130
+ /** @deprecated use `AccountV1GetFriendsResponse$outboundSchema` instead. */
131
+ export const outboundSchema = AccountV1GetFriendsResponse$outboundSchema;
132
+ /** @deprecated use `AccountV1GetFriendsResponse$Outbound` instead. */
133
+ export type Outbound = AccountV1GetFriendsResponse$Outbound;
134
+ }
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type AccountV1GetInfoResponse = {
10
+ httpMeta: components.HTTPMetadata;
11
+ /**
12
+ * OK
13
+ */
14
+ accountInfoBody?: components.AccountInfoBody | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const AccountV1GetInfoResponse$inboundSchema: z.ZodType<
19
+ AccountV1GetInfoResponse,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z
23
+ .object({
24
+ HttpMeta: components.HTTPMetadata$inboundSchema,
25
+ AccountInfoBody: components.AccountInfoBody$inboundSchema.optional(),
26
+ })
27
+ .transform((v) => {
28
+ return remap$(v, {
29
+ HttpMeta: "httpMeta",
30
+ AccountInfoBody: "accountInfoBody",
31
+ });
32
+ });
33
+
34
+ /** @internal */
35
+ export type AccountV1GetInfoResponse$Outbound = {
36
+ HttpMeta: components.HTTPMetadata$Outbound;
37
+ AccountInfoBody?: components.AccountInfoBody$Outbound | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const AccountV1GetInfoResponse$outboundSchema: z.ZodType<
42
+ AccountV1GetInfoResponse$Outbound,
43
+ z.ZodTypeDef,
44
+ AccountV1GetInfoResponse
45
+ > = z
46
+ .object({
47
+ httpMeta: components.HTTPMetadata$outboundSchema,
48
+ accountInfoBody: components.AccountInfoBody$outboundSchema.optional(),
49
+ })
50
+ .transform((v) => {
51
+ return remap$(v, {
52
+ httpMeta: "HttpMeta",
53
+ accountInfoBody: "AccountInfoBody",
54
+ });
55
+ });
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace AccountV1GetInfoResponse$ {
62
+ /** @deprecated use `AccountV1GetInfoResponse$inboundSchema` instead. */
63
+ export const inboundSchema = AccountV1GetInfoResponse$inboundSchema;
64
+ /** @deprecated use `AccountV1GetInfoResponse$outboundSchema` instead. */
65
+ export const outboundSchema = AccountV1GetInfoResponse$outboundSchema;
66
+ /** @deprecated use `AccountV1GetInfoResponse$Outbound` instead. */
67
+ export type Outbound = AccountV1GetInfoResponse$Outbound;
68
+ }
@@ -0,0 +1,138 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type AccountV1GetLeaderboardHistoryRequest = {
10
+ xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
12
+ accountSearch: components.AccountSearch;
13
+ };
14
+
15
+ export type AccountV1GetLeaderboardHistoryResponse = {
16
+ httpMeta: components.HTTPMetadata;
17
+ /**
18
+ * OK
19
+ */
20
+ v1AccountLeaderboardHistoryResponseBody?:
21
+ | components.V1AccountLeaderboardHistoryResponseBody
22
+ | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const AccountV1GetLeaderboardHistoryRequest$inboundSchema: z.ZodType<
27
+ AccountV1GetLeaderboardHistoryRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z
31
+ .object({
32
+ "X-Forwarded-For": z.string().optional(),
33
+ "User-Agent": z.string().optional(),
34
+ AccountSearch: components.AccountSearch$inboundSchema,
35
+ })
36
+ .transform((v) => {
37
+ return remap$(v, {
38
+ "X-Forwarded-For": "xForwardedFor",
39
+ "User-Agent": "userAgent",
40
+ AccountSearch: "accountSearch",
41
+ });
42
+ });
43
+
44
+ /** @internal */
45
+ export type AccountV1GetLeaderboardHistoryRequest$Outbound = {
46
+ "X-Forwarded-For"?: string | undefined;
47
+ "User-Agent"?: string | undefined;
48
+ AccountSearch: components.AccountSearch$Outbound;
49
+ };
50
+
51
+ /** @internal */
52
+ export const AccountV1GetLeaderboardHistoryRequest$outboundSchema: z.ZodType<
53
+ AccountV1GetLeaderboardHistoryRequest$Outbound,
54
+ z.ZodTypeDef,
55
+ AccountV1GetLeaderboardHistoryRequest
56
+ > = z
57
+ .object({
58
+ xForwardedFor: z.string().optional(),
59
+ userAgent: z.string().optional(),
60
+ accountSearch: components.AccountSearch$outboundSchema,
61
+ })
62
+ .transform((v) => {
63
+ return remap$(v, {
64
+ xForwardedFor: "X-Forwarded-For",
65
+ userAgent: "User-Agent",
66
+ accountSearch: "AccountSearch",
67
+ });
68
+ });
69
+
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export namespace AccountV1GetLeaderboardHistoryRequest$ {
75
+ /** @deprecated use `AccountV1GetLeaderboardHistoryRequest$inboundSchema` instead. */
76
+ export const inboundSchema = AccountV1GetLeaderboardHistoryRequest$inboundSchema;
77
+ /** @deprecated use `AccountV1GetLeaderboardHistoryRequest$outboundSchema` instead. */
78
+ export const outboundSchema = AccountV1GetLeaderboardHistoryRequest$outboundSchema;
79
+ /** @deprecated use `AccountV1GetLeaderboardHistoryRequest$Outbound` instead. */
80
+ export type Outbound = AccountV1GetLeaderboardHistoryRequest$Outbound;
81
+ }
82
+
83
+ /** @internal */
84
+ export const AccountV1GetLeaderboardHistoryResponse$inboundSchema: z.ZodType<
85
+ AccountV1GetLeaderboardHistoryResponse,
86
+ z.ZodTypeDef,
87
+ unknown
88
+ > = z
89
+ .object({
90
+ HttpMeta: components.HTTPMetadata$inboundSchema,
91
+ V1AccountLeaderboardHistoryResponseBody:
92
+ components.V1AccountLeaderboardHistoryResponseBody$inboundSchema.optional(),
93
+ })
94
+ .transform((v) => {
95
+ return remap$(v, {
96
+ HttpMeta: "httpMeta",
97
+ V1AccountLeaderboardHistoryResponseBody: "v1AccountLeaderboardHistoryResponseBody",
98
+ });
99
+ });
100
+
101
+ /** @internal */
102
+ export type AccountV1GetLeaderboardHistoryResponse$Outbound = {
103
+ HttpMeta: components.HTTPMetadata$Outbound;
104
+ V1AccountLeaderboardHistoryResponseBody?:
105
+ | components.V1AccountLeaderboardHistoryResponseBody$Outbound
106
+ | undefined;
107
+ };
108
+
109
+ /** @internal */
110
+ export const AccountV1GetLeaderboardHistoryResponse$outboundSchema: z.ZodType<
111
+ AccountV1GetLeaderboardHistoryResponse$Outbound,
112
+ z.ZodTypeDef,
113
+ AccountV1GetLeaderboardHistoryResponse
114
+ > = z
115
+ .object({
116
+ httpMeta: components.HTTPMetadata$outboundSchema,
117
+ v1AccountLeaderboardHistoryResponseBody:
118
+ components.V1AccountLeaderboardHistoryResponseBody$outboundSchema.optional(),
119
+ })
120
+ .transform((v) => {
121
+ return remap$(v, {
122
+ httpMeta: "HttpMeta",
123
+ v1AccountLeaderboardHistoryResponseBody: "V1AccountLeaderboardHistoryResponseBody",
124
+ });
125
+ });
126
+
127
+ /**
128
+ * @internal
129
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
130
+ */
131
+ export namespace AccountV1GetLeaderboardHistoryResponse$ {
132
+ /** @deprecated use `AccountV1GetLeaderboardHistoryResponse$inboundSchema` instead. */
133
+ export const inboundSchema = AccountV1GetLeaderboardHistoryResponse$inboundSchema;
134
+ /** @deprecated use `AccountV1GetLeaderboardHistoryResponse$outboundSchema` instead. */
135
+ export const outboundSchema = AccountV1GetLeaderboardHistoryResponse$outboundSchema;
136
+ /** @deprecated use `AccountV1GetLeaderboardHistoryResponse$Outbound` instead. */
137
+ export type Outbound = AccountV1GetLeaderboardHistoryResponse$Outbound;
138
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type AccountV1GetStaffResponse = {
10
+ httpMeta: components.HTTPMetadata;
11
+ /**
12
+ * OK
13
+ */
14
+ leaderboardAccounts?: Array<components.LeaderboardAccount> | null | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const AccountV1GetStaffResponse$inboundSchema: z.ZodType<
19
+ AccountV1GetStaffResponse,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z
23
+ .object({
24
+ HttpMeta: components.HTTPMetadata$inboundSchema,
25
+ LeaderboardAccounts: z
26
+ .nullable(z.array(components.LeaderboardAccount$inboundSchema))
27
+ .optional(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ HttpMeta: "httpMeta",
32
+ LeaderboardAccounts: "leaderboardAccounts",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type AccountV1GetStaffResponse$Outbound = {
38
+ HttpMeta: components.HTTPMetadata$Outbound;
39
+ LeaderboardAccounts?: Array<components.LeaderboardAccount$Outbound> | null | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const AccountV1GetStaffResponse$outboundSchema: z.ZodType<
44
+ AccountV1GetStaffResponse$Outbound,
45
+ z.ZodTypeDef,
46
+ AccountV1GetStaffResponse
47
+ > = z
48
+ .object({
49
+ httpMeta: components.HTTPMetadata$outboundSchema,
50
+ leaderboardAccounts: z
51
+ .nullable(z.array(components.LeaderboardAccount$outboundSchema))
52
+ .optional(),
53
+ })
54
+ .transform((v) => {
55
+ return remap$(v, {
56
+ httpMeta: "HttpMeta",
57
+ leaderboardAccounts: "LeaderboardAccounts",
58
+ });
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace AccountV1GetStaffResponse$ {
66
+ /** @deprecated use `AccountV1GetStaffResponse$inboundSchema` instead. */
67
+ export const inboundSchema = AccountV1GetStaffResponse$inboundSchema;
68
+ /** @deprecated use `AccountV1GetStaffResponse$outboundSchema` instead. */
69
+ export const outboundSchema = AccountV1GetStaffResponse$outboundSchema;
70
+ /** @deprecated use `AccountV1GetStaffResponse$Outbound` instead. */
71
+ export type Outbound = AccountV1GetStaffResponse$Outbound;
72
+ }
@@ -8,6 +8,10 @@ export * from "./accountv1connectionupdateconnection.js";
8
8
  export * from "./accountv1connectionverifyconnection.js";
9
9
  export * from "./accountv1getapps.js";
10
10
  export * from "./accountv1getbadges.js";
11
+ export * from "./accountv1getfriends.js";
12
+ export * from "./accountv1getinfo.js";
13
+ export * from "./accountv1getleaderboardhistory.js";
14
+ export * from "./accountv1getstaff.js";
11
15
  export * from "./accountv1sessioncreate.js";
12
16
  export * from "./accountv1sessiondelete.js";
13
17
  export * from "./accountv1sessionget.js";
@@ -21,3 +25,4 @@ export * from "./accountv1settingsupdateimage.js";
21
25
  export * from "./accountv1settingsuploadimages.js";
22
26
  export * from "./accountv1settingsverfyemail.js";
23
27
  export * from "./liveness.js";
28
+ export * from "./location.js";
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type LocationResponse = {
10
+ httpMeta: components.HTTPMetadata;
11
+ /**
12
+ * OK
13
+ */
14
+ regions?: Array<components.Region> | null | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export const LocationResponse$inboundSchema: z.ZodType<LocationResponse, z.ZodTypeDef, unknown> = z
19
+ .object({
20
+ HttpMeta: components.HTTPMetadata$inboundSchema,
21
+ Regions: z.nullable(z.array(components.Region$inboundSchema)).optional(),
22
+ })
23
+ .transform((v) => {
24
+ return remap$(v, {
25
+ HttpMeta: "httpMeta",
26
+ Regions: "regions",
27
+ });
28
+ });
29
+
30
+ /** @internal */
31
+ export type LocationResponse$Outbound = {
32
+ HttpMeta: components.HTTPMetadata$Outbound;
33
+ Regions?: Array<components.Region$Outbound> | null | undefined;
34
+ };
35
+
36
+ /** @internal */
37
+ export const LocationResponse$outboundSchema: z.ZodType<
38
+ LocationResponse$Outbound,
39
+ z.ZodTypeDef,
40
+ LocationResponse
41
+ > = z
42
+ .object({
43
+ httpMeta: components.HTTPMetadata$outboundSchema,
44
+ regions: z.nullable(z.array(components.Region$outboundSchema)).optional(),
45
+ })
46
+ .transform((v) => {
47
+ return remap$(v, {
48
+ httpMeta: "HttpMeta",
49
+ regions: "Regions",
50
+ });
51
+ });
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace LocationResponse$ {
58
+ /** @deprecated use `LocationResponse$inboundSchema` instead. */
59
+ export const inboundSchema = LocationResponse$inboundSchema;
60
+ /** @deprecated use `LocationResponse$outboundSchema` instead. */
61
+ export const outboundSchema = LocationResponse$outboundSchema;
62
+ /** @deprecated use `LocationResponse$Outbound` instead. */
63
+ export type Outbound = LocationResponse$Outbound;
64
+ }