@steamsets/client-ts 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +65 -44
  2. package/docs/sdks/account/README.md +245 -14
  3. package/docs/sdks/data/README.md +315 -0
  4. package/docs/sdks/location/README.md +80 -0
  5. package/docs/sdks/public/README.md +241 -0
  6. package/docs/sdks/session/README.md +82 -8
  7. package/funcs/accountAccountV1GetApps.d.ts +1 -2
  8. package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
  9. package/funcs/accountAccountV1GetApps.js +10 -3
  10. package/funcs/accountAccountV1GetApps.js.map +1 -1
  11. package/funcs/accountAccountV1GetBadges.d.ts +1 -2
  12. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
  13. package/funcs/accountAccountV1GetBadges.js +10 -3
  14. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  15. package/funcs/accountAccountV1GetInfo.d.ts +14 -0
  16. package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
  17. package/funcs/accountAccountV1GetInfo.js +96 -0
  18. package/funcs/accountAccountV1GetInfo.js.map +1 -0
  19. package/funcs/accountAccountV1GetStaff.d.ts +13 -0
  20. package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
  21. package/funcs/accountAccountV1GetStaff.js +86 -0
  22. package/funcs/accountAccountV1GetStaff.js.map +1 -0
  23. package/funcs/accountAccountV1SessionCreate.d.ts +13 -0
  24. package/funcs/accountAccountV1SessionCreate.d.ts.map +1 -0
  25. package/funcs/accountAccountV1SessionCreate.js +112 -0
  26. package/funcs/accountAccountV1SessionCreate.js.map +1 -0
  27. package/funcs/accountAccountV1SessionLogin.d.ts +1 -1
  28. package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -1
  29. package/funcs/accountAccountV1SessionLogin.js +7 -14
  30. package/funcs/accountAccountV1SessionLogin.js.map +1 -1
  31. package/funcs/dataAccountV1GetApps.d.ts +13 -0
  32. package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
  33. package/funcs/dataAccountV1GetApps.js +105 -0
  34. package/funcs/dataAccountV1GetApps.js.map +1 -0
  35. package/funcs/dataAccountV1GetBadges.d.ts +13 -0
  36. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
  37. package/funcs/dataAccountV1GetBadges.js +105 -0
  38. package/funcs/dataAccountV1GetBadges.js.map +1 -0
  39. package/funcs/dataAccountV1GetInfo.d.ts +14 -0
  40. package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
  41. package/funcs/dataAccountV1GetInfo.js +96 -0
  42. package/funcs/dataAccountV1GetInfo.js.map +1 -0
  43. package/funcs/dataAccountV1GetStaff.d.ts +13 -0
  44. package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
  45. package/funcs/dataAccountV1GetStaff.js +86 -0
  46. package/funcs/dataAccountV1GetStaff.js.map +1 -0
  47. package/funcs/locationLocation.d.ts +16 -0
  48. package/funcs/locationLocation.d.ts.map +1 -0
  49. package/funcs/locationLocation.js +87 -0
  50. package/funcs/locationLocation.js.map +1 -0
  51. package/funcs/publicAccountV1GetApps.d.ts +13 -0
  52. package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
  53. package/funcs/publicAccountV1GetApps.js +105 -0
  54. package/funcs/publicAccountV1GetApps.js.map +1 -0
  55. package/funcs/publicAccountV1GetBadges.d.ts +13 -0
  56. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
  57. package/funcs/publicAccountV1GetBadges.js +105 -0
  58. package/funcs/publicAccountV1GetBadges.js.map +1 -0
  59. package/funcs/publicAccountV1GetInfo.d.ts +14 -0
  60. package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
  61. package/funcs/publicAccountV1GetInfo.js +96 -0
  62. package/funcs/publicAccountV1GetInfo.js.map +1 -0
  63. package/funcs/sessionAccountV1SessionCreate.d.ts +13 -0
  64. package/funcs/sessionAccountV1SessionCreate.d.ts.map +1 -0
  65. package/funcs/sessionAccountV1SessionCreate.js +112 -0
  66. package/funcs/sessionAccountV1SessionCreate.js.map +1 -0
  67. package/funcs/sessionAccountV1SessionLogin.d.ts +1 -1
  68. package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -1
  69. package/funcs/sessionAccountV1SessionLogin.js +7 -14
  70. package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
  71. package/lib/config.d.ts +3 -3
  72. package/lib/config.js +3 -3
  73. package/lib/security.d.ts +6 -1
  74. package/lib/security.d.ts.map +1 -1
  75. package/lib/security.js +5 -0
  76. package/lib/security.js.map +1 -1
  77. package/models/components/accountinfobody.d.ts +379 -0
  78. package/models/components/accountinfobody.d.ts.map +1 -0
  79. package/models/components/accountinfobody.js +254 -0
  80. package/models/components/accountinfobody.js.map +1 -0
  81. package/models/components/accountsearchvanitystruct.d.ts +4 -4
  82. package/models/components/accountsearchvanitystruct.d.ts.map +1 -1
  83. package/models/components/accountsearchvanitystruct.js +4 -4
  84. package/models/components/accountsearchvanitystruct.js.map +1 -1
  85. package/models/components/bestleaderboardrank.d.ts +110 -0
  86. package/models/components/bestleaderboardrank.d.ts.map +1 -0
  87. package/models/components/bestleaderboardrank.js +89 -0
  88. package/models/components/bestleaderboardrank.js.map +1 -0
  89. package/models/components/city.d.ts +28 -0
  90. package/models/components/city.d.ts.map +1 -0
  91. package/models/components/city.js +50 -0
  92. package/models/components/city.js.map +1 -0
  93. package/models/components/country.d.ts +43 -0
  94. package/models/components/country.d.ts.map +1 -0
  95. package/models/components/country.js +55 -0
  96. package/models/components/country.js.map +1 -0
  97. package/models/components/index.d.ts +10 -0
  98. package/models/components/index.d.ts.map +1 -1
  99. package/models/components/index.js +10 -0
  100. package/models/components/index.js.map +1 -1
  101. package/models/components/leaderboardaccount.d.ts +196 -0
  102. package/models/components/leaderboardaccount.d.ts.map +1 -0
  103. package/models/components/leaderboardaccount.js +128 -0
  104. package/models/components/leaderboardaccount.js.map +1 -0
  105. package/models/components/leaderboardbadgeinfo.d.ts +33 -0
  106. package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
  107. package/models/components/leaderboardbadgeinfo.js +55 -0
  108. package/models/components/leaderboardbadgeinfo.js.map +1 -0
  109. package/models/components/location.d.ts +38 -0
  110. package/models/components/location.d.ts.map +1 -0
  111. package/models/components/location.js +54 -0
  112. package/models/components/location.js.map +1 -0
  113. package/models/components/region.d.ts +38 -0
  114. package/models/components/region.d.ts.map +1 -0
  115. package/models/components/region.js +53 -0
  116. package/models/components/region.js.map +1 -0
  117. package/models/components/role.d.ts +2 -2
  118. package/models/components/role.d.ts.map +1 -1
  119. package/models/components/role.js +4 -17
  120. package/models/components/role.js.map +1 -1
  121. package/models/components/security.d.ts +2 -2
  122. package/models/components/security.d.ts.map +1 -1
  123. package/models/components/security.js +2 -2
  124. package/models/components/security.js.map +1 -1
  125. package/models/components/state.d.ts +43 -0
  126. package/models/components/state.d.ts.map +1 -0
  127. package/models/components/state.js +55 -0
  128. package/models/components/state.js.map +1 -0
  129. package/models/components/v1createsessionbody.d.ts +33 -0
  130. package/models/components/v1createsessionbody.d.ts.map +1 -0
  131. package/models/components/v1createsessionbody.js +65 -0
  132. package/models/components/v1createsessionbody.js.map +1 -0
  133. package/models/errors/errormodel.d.ts +5 -5
  134. package/models/errors/errormodel.d.ts.map +1 -1
  135. package/models/errors/errormodel.js +4 -2
  136. package/models/errors/errormodel.js.map +1 -1
  137. package/models/operations/accountv1getapps.d.ts +27 -0
  138. package/models/operations/accountv1getapps.d.ts.map +1 -1
  139. package/models/operations/accountv1getapps.js +40 -1
  140. package/models/operations/accountv1getapps.js.map +1 -1
  141. package/models/operations/accountv1getbadges.d.ts +27 -0
  142. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  143. package/models/operations/accountv1getbadges.js +40 -1
  144. package/models/operations/accountv1getbadges.js.map +1 -1
  145. package/models/operations/accountv1getinfo.d.ts +31 -0
  146. package/models/operations/accountv1getinfo.d.ts.map +1 -0
  147. package/models/operations/accountv1getinfo.js +68 -0
  148. package/models/operations/accountv1getinfo.js.map +1 -0
  149. package/models/operations/accountv1getstaff.d.ts +31 -0
  150. package/models/operations/accountv1getstaff.d.ts.map +1 -0
  151. package/models/operations/accountv1getstaff.js +72 -0
  152. package/models/operations/accountv1getstaff.js.map +1 -0
  153. package/models/operations/accountv1sessioncreate.d.ts +60 -0
  154. package/models/operations/accountv1sessioncreate.d.ts.map +1 -0
  155. package/models/operations/accountv1sessioncreate.js +111 -0
  156. package/models/operations/accountv1sessioncreate.js.map +1 -0
  157. package/models/operations/accountv1sessionlogin.d.ts +0 -23
  158. package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
  159. package/models/operations/accountv1sessionlogin.js +1 -20
  160. package/models/operations/accountv1sessionlogin.js.map +1 -1
  161. package/models/operations/index.d.ts +4 -0
  162. package/models/operations/index.d.ts.map +1 -1
  163. package/models/operations/index.js +4 -0
  164. package/models/operations/index.js.map +1 -1
  165. package/models/operations/location.d.ts +31 -0
  166. package/models/operations/location.d.ts.map +1 -0
  167. package/models/operations/location.js +68 -0
  168. package/models/operations/location.js.map +1 -0
  169. package/package.json +1 -1
  170. package/sdk/account.d.ts +15 -3
  171. package/sdk/account.d.ts.map +1 -1
  172. package/sdk/account.js +23 -2
  173. package/sdk/account.js.map +1 -1
  174. package/sdk/data.d.ts +22 -0
  175. package/sdk/data.d.ts.map +1 -0
  176. package/sdk/data.js +40 -0
  177. package/sdk/data.js.map +1 -0
  178. package/sdk/location.d.ts +12 -0
  179. package/sdk/location.d.ts.map +1 -0
  180. package/sdk/location.js +22 -0
  181. package/sdk/location.js.map +1 -0
  182. package/sdk/public.d.ts +18 -0
  183. package/sdk/public.d.ts.map +1 -0
  184. package/sdk/public.js +33 -0
  185. package/sdk/public.js.map +1 -0
  186. package/sdk/sdk.d.ts +11 -2
  187. package/sdk/sdk.d.ts.map +1 -1
  188. package/sdk/sdk.js +17 -2
  189. package/sdk/sdk.js.map +1 -1
  190. package/sdk/session.d.ts +5 -1
  191. package/sdk/session.d.ts.map +1 -1
  192. package/sdk/session.js +9 -2
  193. package/sdk/session.js.map +1 -1
  194. package/src/funcs/accountAccountV1GetApps.ts +12 -5
  195. package/src/funcs/accountAccountV1GetBadges.ts +12 -5
  196. package/src/funcs/accountAccountV1GetInfo.ts +130 -0
  197. package/src/funcs/accountAccountV1GetStaff.ts +113 -0
  198. package/src/funcs/accountAccountV1SessionCreate.ts +146 -0
  199. package/src/funcs/accountAccountV1SessionLogin.ts +7 -15
  200. package/src/funcs/dataAccountV1GetApps.ts +139 -0
  201. package/src/funcs/dataAccountV1GetBadges.ts +139 -0
  202. package/src/funcs/dataAccountV1GetInfo.ts +130 -0
  203. package/src/funcs/dataAccountV1GetStaff.ts +113 -0
  204. package/src/funcs/locationLocation.ts +114 -0
  205. package/src/funcs/publicAccountV1GetApps.ts +139 -0
  206. package/src/funcs/publicAccountV1GetBadges.ts +139 -0
  207. package/src/funcs/publicAccountV1GetInfo.ts +130 -0
  208. package/src/funcs/sessionAccountV1SessionCreate.ts +146 -0
  209. package/src/funcs/sessionAccountV1SessionLogin.ts +7 -15
  210. package/src/lib/config.ts +3 -3
  211. package/src/lib/security.ts +12 -1
  212. package/src/models/components/accountinfobody.ts +532 -0
  213. package/src/models/components/accountsearchvanitystruct.ts +8 -8
  214. package/src/models/components/bestleaderboardrank.ts +102 -0
  215. package/src/models/components/city.ts +40 -0
  216. package/src/models/components/country.ts +55 -0
  217. package/src/models/components/index.ts +10 -0
  218. package/src/models/components/leaderboardaccount.ts +301 -0
  219. package/src/models/components/leaderboardbadgeinfo.ts +58 -0
  220. package/src/models/components/location.ts +55 -0
  221. package/src/models/components/region.ts +53 -0
  222. package/src/models/components/role.ts +14 -27
  223. package/src/models/components/security.ts +4 -4
  224. package/src/models/components/state.ts +55 -0
  225. package/src/models/components/v1createsessionbody.ts +68 -0
  226. package/src/models/errors/errormodel.ts +8 -6
  227. package/src/models/operations/accountv1getapps.ts +64 -0
  228. package/src/models/operations/accountv1getbadges.ts +64 -0
  229. package/src/models/operations/accountv1getinfo.ts +68 -0
  230. package/src/models/operations/accountv1getstaff.ts +72 -0
  231. package/src/models/operations/accountv1sessioncreate.ts +138 -0
  232. package/src/models/operations/accountv1sessionlogin.ts +0 -40
  233. package/src/models/operations/index.ts +4 -0
  234. package/src/models/operations/location.ts +64 -0
  235. package/src/sdk/account.ts +35 -4
  236. package/src/sdk/data.ts +53 -0
  237. package/src/sdk/location.ts +20 -0
  238. package/src/sdk/public.ts +43 -0
  239. package/src/sdk/sdk.ts +21 -3
  240. package/src/sdk/session.ts +12 -2
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { City, City$inboundSchema, City$Outbound, City$outboundSchema } from "./city.js";
6
+ import * as z from "zod";
7
+
8
+ export type State = {
9
+ /**
10
+ * The cities of the state
11
+ */
12
+ cities: { [k: string]: City };
13
+ /**
14
+ * The code of the state
15
+ */
16
+ code: string;
17
+ /**
18
+ * The name of the state
19
+ */
20
+ name: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export const State$inboundSchema: z.ZodType<State, z.ZodTypeDef, unknown> = z.object({
25
+ cities: z.record(City$inboundSchema),
26
+ code: z.string(),
27
+ name: z.string(),
28
+ });
29
+
30
+ /** @internal */
31
+ export type State$Outbound = {
32
+ cities: { [k: string]: City$Outbound };
33
+ code: string;
34
+ name: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const State$outboundSchema: z.ZodType<State$Outbound, z.ZodTypeDef, State> = z.object({
39
+ cities: z.record(City$outboundSchema),
40
+ code: z.string(),
41
+ name: z.string(),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace State$ {
49
+ /** @deprecated use `State$inboundSchema` instead. */
50
+ export const inboundSchema = State$inboundSchema;
51
+ /** @deprecated use `State$outboundSchema` instead. */
52
+ export const outboundSchema = State$outboundSchema;
53
+ /** @deprecated use `State$Outbound` instead. */
54
+ export type Outbound = State$Outbound;
55
+ }
@@ -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 z from "zod";
7
+
8
+ export type V1CreateSessionBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * The session id
15
+ */
16
+ sessionId: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1CreateSessionBody$inboundSchema: z.ZodType<
21
+ V1CreateSessionBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z
25
+ .object({
26
+ $schema: z.string().optional(),
27
+ sessionId: z.string(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ $schema: "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1CreateSessionBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ sessionId: string;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1CreateSessionBody$outboundSchema: z.ZodType<
43
+ V1CreateSessionBody$Outbound,
44
+ z.ZodTypeDef,
45
+ V1CreateSessionBody
46
+ > = z
47
+ .object({
48
+ dollarSchema: z.string().optional(),
49
+ sessionId: z.string(),
50
+ })
51
+ .transform((v) => {
52
+ return remap$(v, {
53
+ dollarSchema: "$schema",
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 V1CreateSessionBody$ {
62
+ /** @deprecated use `V1CreateSessionBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1CreateSessionBody$inboundSchema;
64
+ /** @deprecated use `V1CreateSessionBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1CreateSessionBody$outboundSchema;
66
+ /** @deprecated use `V1CreateSessionBody$Outbound` instead. */
67
+ export type Outbound = V1CreateSessionBody$Outbound;
68
+ }
@@ -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 */
@@ -6,6 +6,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
+ export type AccountV1GetAppsRequest = {
10
+ xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
12
+ accountSearch: components.AccountSearch;
13
+ };
14
+
9
15
  export type AccountV1GetAppsResponse = {
10
16
  httpMeta: components.HTTPMetadata;
11
17
  /**
@@ -14,6 +20,64 @@ export type AccountV1GetAppsResponse = {
14
20
  v1AccountsAppsResponseBody?: components.V1AccountsAppsResponseBody | undefined;
15
21
  };
16
22
 
23
+ /** @internal */
24
+ export const AccountV1GetAppsRequest$inboundSchema: z.ZodType<
25
+ AccountV1GetAppsRequest,
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 AccountV1GetAppsRequest$Outbound = {
44
+ "X-Forwarded-For"?: string | undefined;
45
+ "User-Agent"?: string | undefined;
46
+ AccountSearch: components.AccountSearch$Outbound;
47
+ };
48
+
49
+ /** @internal */
50
+ export const AccountV1GetAppsRequest$outboundSchema: z.ZodType<
51
+ AccountV1GetAppsRequest$Outbound,
52
+ z.ZodTypeDef,
53
+ AccountV1GetAppsRequest
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 AccountV1GetAppsRequest$ {
73
+ /** @deprecated use `AccountV1GetAppsRequest$inboundSchema` instead. */
74
+ export const inboundSchema = AccountV1GetAppsRequest$inboundSchema;
75
+ /** @deprecated use `AccountV1GetAppsRequest$outboundSchema` instead. */
76
+ export const outboundSchema = AccountV1GetAppsRequest$outboundSchema;
77
+ /** @deprecated use `AccountV1GetAppsRequest$Outbound` instead. */
78
+ export type Outbound = AccountV1GetAppsRequest$Outbound;
79
+ }
80
+
17
81
  /** @internal */
18
82
  export const AccountV1GetAppsResponse$inboundSchema: z.ZodType<
19
83
  AccountV1GetAppsResponse,
@@ -6,6 +6,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
+ export type AccountV1GetBadgesRequest = {
10
+ xForwardedFor?: string | undefined;
11
+ userAgent?: string | undefined;
12
+ accountSearch: components.AccountSearch;
13
+ };
14
+
9
15
  export type AccountV1GetBadgesResponse = {
10
16
  httpMeta: components.HTTPMetadata;
11
17
  /**
@@ -14,6 +20,64 @@ export type AccountV1GetBadgesResponse = {
14
20
  v1BadgesResponseBody?: components.V1BadgesResponseBody | undefined;
15
21
  };
16
22
 
23
+ /** @internal */
24
+ export const AccountV1GetBadgesRequest$inboundSchema: z.ZodType<
25
+ AccountV1GetBadgesRequest,
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 AccountV1GetBadgesRequest$Outbound = {
44
+ "X-Forwarded-For"?: string | undefined;
45
+ "User-Agent"?: string | undefined;
46
+ AccountSearch: components.AccountSearch$Outbound;
47
+ };
48
+
49
+ /** @internal */
50
+ export const AccountV1GetBadgesRequest$outboundSchema: z.ZodType<
51
+ AccountV1GetBadgesRequest$Outbound,
52
+ z.ZodTypeDef,
53
+ AccountV1GetBadgesRequest
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 AccountV1GetBadgesRequest$ {
73
+ /** @deprecated use `AccountV1GetBadgesRequest$inboundSchema` instead. */
74
+ export const inboundSchema = AccountV1GetBadgesRequest$inboundSchema;
75
+ /** @deprecated use `AccountV1GetBadgesRequest$outboundSchema` instead. */
76
+ export const outboundSchema = AccountV1GetBadgesRequest$outboundSchema;
77
+ /** @deprecated use `AccountV1GetBadgesRequest$Outbound` instead. */
78
+ export type Outbound = AccountV1GetBadgesRequest$Outbound;
79
+ }
80
+
17
81
  /** @internal */
18
82
  export const AccountV1GetBadgesResponse$inboundSchema: z.ZodType<
19
83
  AccountV1GetBadgesResponse,
@@ -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,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
+ }
@@ -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 AccountV1SessionCreateRequest = {
10
+ userAgent?: string | undefined;
11
+ xForwardedFor?: string | undefined;
12
+ xFingerprint?: string | undefined;
13
+ xSigned?: string | undefined;
14
+ };
15
+
16
+ export type AccountV1SessionCreateResponse = {
17
+ httpMeta: components.HTTPMetadata;
18
+ /**
19
+ * OK
20
+ */
21
+ v1CreateSessionBody?: components.V1CreateSessionBody | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AccountV1SessionCreateRequest$inboundSchema: z.ZodType<
26
+ AccountV1SessionCreateRequest,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z
30
+ .object({
31
+ "User-Agent": z.string().optional(),
32
+ "X-Forwarded-For": z.string().optional(),
33
+ "X-Fingerprint": z.string().optional(),
34
+ "X-Signed": z.string().optional(),
35
+ })
36
+ .transform((v) => {
37
+ return remap$(v, {
38
+ "User-Agent": "userAgent",
39
+ "X-Forwarded-For": "xForwardedFor",
40
+ "X-Fingerprint": "xFingerprint",
41
+ "X-Signed": "xSigned",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type AccountV1SessionCreateRequest$Outbound = {
47
+ "User-Agent"?: string | undefined;
48
+ "X-Forwarded-For"?: string | undefined;
49
+ "X-Fingerprint"?: string | undefined;
50
+ "X-Signed"?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const AccountV1SessionCreateRequest$outboundSchema: z.ZodType<
55
+ AccountV1SessionCreateRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ AccountV1SessionCreateRequest
58
+ > = z
59
+ .object({
60
+ userAgent: z.string().optional(),
61
+ xForwardedFor: z.string().optional(),
62
+ xFingerprint: z.string().optional(),
63
+ xSigned: z.string().optional(),
64
+ })
65
+ .transform((v) => {
66
+ return remap$(v, {
67
+ userAgent: "User-Agent",
68
+ xForwardedFor: "X-Forwarded-For",
69
+ xFingerprint: "X-Fingerprint",
70
+ xSigned: "X-Signed",
71
+ });
72
+ });
73
+
74
+ /**
75
+ * @internal
76
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
+ */
78
+ export namespace AccountV1SessionCreateRequest$ {
79
+ /** @deprecated use `AccountV1SessionCreateRequest$inboundSchema` instead. */
80
+ export const inboundSchema = AccountV1SessionCreateRequest$inboundSchema;
81
+ /** @deprecated use `AccountV1SessionCreateRequest$outboundSchema` instead. */
82
+ export const outboundSchema = AccountV1SessionCreateRequest$outboundSchema;
83
+ /** @deprecated use `AccountV1SessionCreateRequest$Outbound` instead. */
84
+ export type Outbound = AccountV1SessionCreateRequest$Outbound;
85
+ }
86
+
87
+ /** @internal */
88
+ export const AccountV1SessionCreateResponse$inboundSchema: z.ZodType<
89
+ AccountV1SessionCreateResponse,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z
93
+ .object({
94
+ HttpMeta: components.HTTPMetadata$inboundSchema,
95
+ V1CreateSessionBody: components.V1CreateSessionBody$inboundSchema.optional(),
96
+ })
97
+ .transform((v) => {
98
+ return remap$(v, {
99
+ HttpMeta: "httpMeta",
100
+ V1CreateSessionBody: "v1CreateSessionBody",
101
+ });
102
+ });
103
+
104
+ /** @internal */
105
+ export type AccountV1SessionCreateResponse$Outbound = {
106
+ HttpMeta: components.HTTPMetadata$Outbound;
107
+ V1CreateSessionBody?: components.V1CreateSessionBody$Outbound | undefined;
108
+ };
109
+
110
+ /** @internal */
111
+ export const AccountV1SessionCreateResponse$outboundSchema: z.ZodType<
112
+ AccountV1SessionCreateResponse$Outbound,
113
+ z.ZodTypeDef,
114
+ AccountV1SessionCreateResponse
115
+ > = z
116
+ .object({
117
+ httpMeta: components.HTTPMetadata$outboundSchema,
118
+ v1CreateSessionBody: components.V1CreateSessionBody$outboundSchema.optional(),
119
+ })
120
+ .transform((v) => {
121
+ return remap$(v, {
122
+ httpMeta: "HttpMeta",
123
+ v1CreateSessionBody: "V1CreateSessionBody",
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 AccountV1SessionCreateResponse$ {
132
+ /** @deprecated use `AccountV1SessionCreateResponse$inboundSchema` instead. */
133
+ export const inboundSchema = AccountV1SessionCreateResponse$inboundSchema;
134
+ /** @deprecated use `AccountV1SessionCreateResponse$outboundSchema` instead. */
135
+ export const outboundSchema = AccountV1SessionCreateResponse$outboundSchema;
136
+ /** @deprecated use `AccountV1SessionCreateResponse$Outbound` instead. */
137
+ export type Outbound = AccountV1SessionCreateResponse$Outbound;
138
+ }
@@ -6,10 +6,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
- export type AccountV1SessionLoginSecurity = {
10
- anonymous: string;
11
- };
12
-
13
9
  export type AccountV1SessionLoginRequest = {
14
10
  userAgent?: string | undefined;
15
11
  xForwardedFor?: string | undefined;
@@ -24,42 +20,6 @@ export type AccountV1SessionLoginResponse = {
24
20
  v1LoginResponseBody?: components.V1LoginResponseBody | undefined;
25
21
  };
26
22
 
27
- /** @internal */
28
- export const AccountV1SessionLoginSecurity$inboundSchema: z.ZodType<
29
- AccountV1SessionLoginSecurity,
30
- z.ZodTypeDef,
31
- unknown
32
- > = z.object({
33
- anonymous: z.string(),
34
- });
35
-
36
- /** @internal */
37
- export type AccountV1SessionLoginSecurity$Outbound = {
38
- anonymous: string;
39
- };
40
-
41
- /** @internal */
42
- export const AccountV1SessionLoginSecurity$outboundSchema: z.ZodType<
43
- AccountV1SessionLoginSecurity$Outbound,
44
- z.ZodTypeDef,
45
- AccountV1SessionLoginSecurity
46
- > = z.object({
47
- anonymous: z.string(),
48
- });
49
-
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export namespace AccountV1SessionLoginSecurity$ {
55
- /** @deprecated use `AccountV1SessionLoginSecurity$inboundSchema` instead. */
56
- export const inboundSchema = AccountV1SessionLoginSecurity$inboundSchema;
57
- /** @deprecated use `AccountV1SessionLoginSecurity$outboundSchema` instead. */
58
- export const outboundSchema = AccountV1SessionLoginSecurity$outboundSchema;
59
- /** @deprecated use `AccountV1SessionLoginSecurity$Outbound` instead. */
60
- export type Outbound = AccountV1SessionLoginSecurity$Outbound;
61
- }
62
-
63
23
  /** @internal */
64
24
  export const AccountV1SessionLoginRequest$inboundSchema: z.ZodType<
65
25
  AccountV1SessionLoginRequest,
@@ -8,6 +8,9 @@ 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 "./accountv1getinfo.js";
12
+ export * from "./accountv1getstaff.js";
13
+ export * from "./accountv1sessioncreate.js";
11
14
  export * from "./accountv1sessiondelete.js";
12
15
  export * from "./accountv1sessionget.js";
13
16
  export * from "./accountv1sessionlogin.js";
@@ -20,3 +23,4 @@ export * from "./accountv1settingsupdateimage.js";
20
23
  export * from "./accountv1settingsuploadimages.js";
21
24
  export * from "./accountv1settingsverfyemail.js";
22
25
  export * from "./liveness.js";
26
+ export * from "./location.js";