@steamsets/client-ts 0.5.0 → 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 (203) hide show
  1. package/README.md +63 -9
  2. package/docs/sdks/account/README.md +225 -76
  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 +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/accountAccountV1GetInfo.d.ts +14 -0
  14. package/funcs/accountAccountV1GetInfo.d.ts.map +1 -0
  15. package/funcs/accountAccountV1GetInfo.js +96 -0
  16. package/funcs/accountAccountV1GetInfo.js.map +1 -0
  17. package/funcs/accountAccountV1GetStaff.d.ts +13 -0
  18. package/funcs/accountAccountV1GetStaff.d.ts.map +1 -0
  19. package/funcs/accountAccountV1GetStaff.js +86 -0
  20. package/funcs/accountAccountV1GetStaff.js.map +1 -0
  21. package/funcs/accountAccountV1SessionCreate.js +1 -1
  22. package/funcs/accountAccountV1SessionLogin.js +2 -2
  23. package/funcs/accountAccountV1SessionLogin.js.map +1 -1
  24. package/funcs/dataAccountV1GetApps.d.ts +13 -0
  25. package/funcs/dataAccountV1GetApps.d.ts.map +1 -0
  26. package/funcs/dataAccountV1GetApps.js +105 -0
  27. package/funcs/dataAccountV1GetApps.js.map +1 -0
  28. package/funcs/dataAccountV1GetBadges.d.ts +13 -0
  29. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -0
  30. package/funcs/dataAccountV1GetBadges.js +105 -0
  31. package/funcs/dataAccountV1GetBadges.js.map +1 -0
  32. package/funcs/dataAccountV1GetInfo.d.ts +14 -0
  33. package/funcs/dataAccountV1GetInfo.d.ts.map +1 -0
  34. package/funcs/dataAccountV1GetInfo.js +96 -0
  35. package/funcs/dataAccountV1GetInfo.js.map +1 -0
  36. package/funcs/dataAccountV1GetStaff.d.ts +13 -0
  37. package/funcs/dataAccountV1GetStaff.d.ts.map +1 -0
  38. package/funcs/dataAccountV1GetStaff.js +86 -0
  39. package/funcs/dataAccountV1GetStaff.js.map +1 -0
  40. package/funcs/locationLocation.d.ts +16 -0
  41. package/funcs/locationLocation.d.ts.map +1 -0
  42. package/funcs/locationLocation.js +87 -0
  43. package/funcs/locationLocation.js.map +1 -0
  44. package/funcs/publicAccountV1GetApps.d.ts +13 -0
  45. package/funcs/publicAccountV1GetApps.d.ts.map +1 -0
  46. package/funcs/publicAccountV1GetApps.js +105 -0
  47. package/funcs/publicAccountV1GetApps.js.map +1 -0
  48. package/funcs/publicAccountV1GetBadges.d.ts +13 -0
  49. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -0
  50. package/funcs/publicAccountV1GetBadges.js +105 -0
  51. package/funcs/publicAccountV1GetBadges.js.map +1 -0
  52. package/funcs/publicAccountV1GetInfo.d.ts +14 -0
  53. package/funcs/publicAccountV1GetInfo.d.ts.map +1 -0
  54. package/funcs/publicAccountV1GetInfo.js +96 -0
  55. package/funcs/publicAccountV1GetInfo.js.map +1 -0
  56. package/funcs/sessionAccountV1SessionCreate.js +1 -1
  57. package/funcs/sessionAccountV1SessionLogin.js +2 -2
  58. package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
  59. package/lib/config.d.ts +3 -3
  60. package/lib/config.js +3 -3
  61. package/lib/security.d.ts +6 -1
  62. package/lib/security.d.ts.map +1 -1
  63. package/lib/security.js +5 -0
  64. package/lib/security.js.map +1 -1
  65. package/models/components/accountinfobody.d.ts +379 -0
  66. package/models/components/accountinfobody.d.ts.map +1 -0
  67. package/models/components/accountinfobody.js +254 -0
  68. package/models/components/accountinfobody.js.map +1 -0
  69. package/models/components/bestleaderboardrank.d.ts +110 -0
  70. package/models/components/bestleaderboardrank.d.ts.map +1 -0
  71. package/models/components/bestleaderboardrank.js +89 -0
  72. package/models/components/bestleaderboardrank.js.map +1 -0
  73. package/models/components/city.d.ts +28 -0
  74. package/models/components/city.d.ts.map +1 -0
  75. package/models/components/city.js +50 -0
  76. package/models/components/city.js.map +1 -0
  77. package/models/components/country.d.ts +43 -0
  78. package/models/components/country.d.ts.map +1 -0
  79. package/models/components/country.js +55 -0
  80. package/models/components/country.js.map +1 -0
  81. package/models/components/index.d.ts +9 -0
  82. package/models/components/index.d.ts.map +1 -1
  83. package/models/components/index.js +9 -0
  84. package/models/components/index.js.map +1 -1
  85. package/models/components/leaderboardaccount.d.ts +196 -0
  86. package/models/components/leaderboardaccount.d.ts.map +1 -0
  87. package/models/components/leaderboardaccount.js +128 -0
  88. package/models/components/leaderboardaccount.js.map +1 -0
  89. package/models/components/leaderboardbadgeinfo.d.ts +33 -0
  90. package/models/components/leaderboardbadgeinfo.d.ts.map +1 -0
  91. package/models/components/leaderboardbadgeinfo.js +55 -0
  92. package/models/components/leaderboardbadgeinfo.js.map +1 -0
  93. package/models/components/location.d.ts +38 -0
  94. package/models/components/location.d.ts.map +1 -0
  95. package/models/components/location.js +54 -0
  96. package/models/components/location.js.map +1 -0
  97. package/models/components/region.d.ts +38 -0
  98. package/models/components/region.d.ts.map +1 -0
  99. package/models/components/region.js +53 -0
  100. package/models/components/region.js.map +1 -0
  101. package/models/components/role.d.ts +2 -2
  102. package/models/components/role.d.ts.map +1 -1
  103. package/models/components/role.js +4 -17
  104. package/models/components/role.js.map +1 -1
  105. package/models/components/state.d.ts +43 -0
  106. package/models/components/state.d.ts.map +1 -0
  107. package/models/components/state.js +55 -0
  108. package/models/components/state.js.map +1 -0
  109. package/models/errors/errormodel.d.ts +5 -5
  110. package/models/errors/errormodel.d.ts.map +1 -1
  111. package/models/errors/errormodel.js +4 -2
  112. package/models/errors/errormodel.js.map +1 -1
  113. package/models/operations/accountv1getapps.d.ts +2 -0
  114. package/models/operations/accountv1getapps.d.ts.map +1 -1
  115. package/models/operations/accountv1getapps.js +4 -0
  116. package/models/operations/accountv1getapps.js.map +1 -1
  117. package/models/operations/accountv1getbadges.d.ts +2 -0
  118. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  119. package/models/operations/accountv1getbadges.js +4 -0
  120. package/models/operations/accountv1getbadges.js.map +1 -1
  121. package/models/operations/accountv1getinfo.d.ts +31 -0
  122. package/models/operations/accountv1getinfo.d.ts.map +1 -0
  123. package/models/operations/accountv1getinfo.js +68 -0
  124. package/models/operations/accountv1getinfo.js.map +1 -0
  125. package/models/operations/accountv1getstaff.d.ts +31 -0
  126. package/models/operations/accountv1getstaff.d.ts.map +1 -0
  127. package/models/operations/accountv1getstaff.js +72 -0
  128. package/models/operations/accountv1getstaff.js.map +1 -0
  129. package/models/operations/index.d.ts +3 -0
  130. package/models/operations/index.d.ts.map +1 -1
  131. package/models/operations/index.js +3 -0
  132. package/models/operations/index.js.map +1 -1
  133. package/models/operations/location.d.ts +31 -0
  134. package/models/operations/location.d.ts.map +1 -0
  135. package/models/operations/location.js +68 -0
  136. package/models/operations/location.js.map +1 -0
  137. package/package.json +1 -1
  138. package/sdk/account.d.ts +12 -4
  139. package/sdk/account.d.ts.map +1 -1
  140. package/sdk/account.js +20 -6
  141. package/sdk/account.js.map +1 -1
  142. package/sdk/data.d.ts +22 -0
  143. package/sdk/data.d.ts.map +1 -0
  144. package/sdk/data.js +40 -0
  145. package/sdk/data.js.map +1 -0
  146. package/sdk/location.d.ts +12 -0
  147. package/sdk/location.d.ts.map +1 -0
  148. package/sdk/location.js +22 -0
  149. package/sdk/location.js.map +1 -0
  150. package/sdk/public.d.ts +18 -0
  151. package/sdk/public.d.ts.map +1 -0
  152. package/sdk/public.js +33 -0
  153. package/sdk/public.js.map +1 -0
  154. package/sdk/sdk.d.ts +11 -2
  155. package/sdk/sdk.d.ts.map +1 -1
  156. package/sdk/sdk.js +17 -2
  157. package/sdk/sdk.js.map +1 -1
  158. package/sdk/session.d.ts +4 -4
  159. package/sdk/session.d.ts.map +1 -1
  160. package/sdk/session.js +6 -6
  161. package/sdk/session.js.map +1 -1
  162. package/src/funcs/accountAccountV1GetApps.ts +4 -0
  163. package/src/funcs/accountAccountV1GetBadges.ts +4 -0
  164. package/src/funcs/accountAccountV1GetInfo.ts +130 -0
  165. package/src/funcs/accountAccountV1GetStaff.ts +113 -0
  166. package/src/funcs/accountAccountV1SessionCreate.ts +1 -1
  167. package/src/funcs/accountAccountV1SessionLogin.ts +2 -2
  168. package/src/funcs/dataAccountV1GetApps.ts +139 -0
  169. package/src/funcs/dataAccountV1GetBadges.ts +139 -0
  170. package/src/funcs/dataAccountV1GetInfo.ts +130 -0
  171. package/src/funcs/dataAccountV1GetStaff.ts +113 -0
  172. package/src/funcs/locationLocation.ts +114 -0
  173. package/src/funcs/publicAccountV1GetApps.ts +139 -0
  174. package/src/funcs/publicAccountV1GetBadges.ts +139 -0
  175. package/src/funcs/publicAccountV1GetInfo.ts +130 -0
  176. package/src/funcs/sessionAccountV1SessionCreate.ts +1 -1
  177. package/src/funcs/sessionAccountV1SessionLogin.ts +2 -2
  178. package/src/lib/config.ts +3 -3
  179. package/src/lib/security.ts +12 -1
  180. package/src/models/components/accountinfobody.ts +532 -0
  181. package/src/models/components/bestleaderboardrank.ts +102 -0
  182. package/src/models/components/city.ts +40 -0
  183. package/src/models/components/country.ts +55 -0
  184. package/src/models/components/index.ts +9 -0
  185. package/src/models/components/leaderboardaccount.ts +301 -0
  186. package/src/models/components/leaderboardbadgeinfo.ts +58 -0
  187. package/src/models/components/location.ts +55 -0
  188. package/src/models/components/region.ts +53 -0
  189. package/src/models/components/role.ts +14 -27
  190. package/src/models/components/state.ts +55 -0
  191. package/src/models/errors/errormodel.ts +8 -6
  192. package/src/models/operations/accountv1getapps.ts +6 -0
  193. package/src/models/operations/accountv1getbadges.ts +6 -0
  194. package/src/models/operations/accountv1getinfo.ts +68 -0
  195. package/src/models/operations/accountv1getstaff.ts +72 -0
  196. package/src/models/operations/index.ts +3 -0
  197. package/src/models/operations/location.ts +64 -0
  198. package/src/sdk/account.ts +31 -10
  199. package/src/sdk/data.ts +53 -0
  200. package/src/sdk/location.ts +20 -0
  201. package/src/sdk/public.ts +43 -0
  202. package/src/sdk/sdk.ts +21 -3
  203. package/src/sdk/session.ts +10 -10
@@ -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,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
+ }
@@ -8,6 +8,8 @@ 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";
11
13
  export * from "./accountv1sessioncreate.js";
12
14
  export * from "./accountv1sessiondelete.js";
13
15
  export * from "./accountv1sessionget.js";
@@ -21,3 +23,4 @@ export * from "./accountv1settingsupdateimage.js";
21
23
  export * from "./accountv1settingsuploadimages.js";
22
24
  export * from "./accountv1settingsverfyemail.js";
23
25
  export * from "./liveness.js";
26
+ 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
+ }
@@ -8,6 +8,8 @@ import { accountAccountV1ConnectionUpdateConnection } from "../funcs/accountAcco
8
8
  import { accountAccountV1ConnectionVerifyConnection } from "../funcs/accountAccountV1ConnectionVerifyConnection.js";
9
9
  import { accountAccountV1GetApps } from "../funcs/accountAccountV1GetApps.js";
10
10
  import { accountAccountV1GetBadges } from "../funcs/accountAccountV1GetBadges.js";
11
+ import { accountAccountV1GetInfo } from "../funcs/accountAccountV1GetInfo.js";
12
+ import { accountAccountV1GetStaff } from "../funcs/accountAccountV1GetStaff.js";
11
13
  import { accountAccountV1SessionCreate } from "../funcs/accountAccountV1SessionCreate.js";
12
14
  import { accountAccountV1SessionDelete } from "../funcs/accountAccountV1SessionDelete.js";
13
15
  import { accountAccountV1SessionGet } from "../funcs/accountAccountV1SessionGet.js";
@@ -36,6 +38,16 @@ export class Account extends ClientSDK {
36
38
  return unwrapAsync(accountAccountV1ConnectionConnect(this, request, options));
37
39
  }
38
40
 
41
+ /**
42
+ * Create a new session for non logged in users
43
+ */
44
+ async accountV1SessionCreate(
45
+ request: operations.AccountV1SessionCreateRequest,
46
+ options?: RequestOptions
47
+ ): Promise<operations.AccountV1SessionCreateResponse> {
48
+ return unwrapAsync(accountAccountV1SessionCreate(this, request, options));
49
+ }
50
+
39
51
  /**
40
52
  * Remove a connection
41
53
  */
@@ -95,6 +107,16 @@ export class Account extends ClientSDK {
95
107
  return unwrapAsync(accountAccountV1GetBadges(this, request, options));
96
108
  }
97
109
 
110
+ /**
111
+ * Get Account Info
112
+ */
113
+ async accountV1GetInfo(
114
+ request: components.AccountSearch,
115
+ options?: RequestOptions
116
+ ): Promise<operations.AccountV1GetInfoResponse> {
117
+ return unwrapAsync(accountAccountV1GetInfo(this, request, options));
118
+ }
119
+
98
120
  /**
99
121
  * Gets all session data
100
122
  */
@@ -113,6 +135,15 @@ export class Account extends ClientSDK {
113
135
  return unwrapAsync(accountAccountV1SettingsGet(this, options));
114
136
  }
115
137
 
138
+ /**
139
+ * Get Staff Members and their info
140
+ */
141
+ async accountV1GetStaff(
142
+ options?: RequestOptions
143
+ ): Promise<operations.AccountV1GetStaffResponse> {
144
+ return unwrapAsync(accountAccountV1GetStaff(this, options));
145
+ }
146
+
116
147
  /**
117
148
  * Logs a user in and creates a new session
118
149
  */
@@ -192,14 +223,4 @@ export class Account extends ClientSDK {
192
223
  ): Promise<operations.AccountV1SettingsVerfyEmailResponse> {
193
224
  return unwrapAsync(accountAccountV1SettingsVerfyEmail(this, request, options));
194
225
  }
195
-
196
- /**
197
- * Create a new session for non logged in users
198
- */
199
- async accountV1SessionCreate(
200
- request: operations.AccountV1SessionCreateRequest,
201
- options?: RequestOptions
202
- ): Promise<operations.AccountV1SessionCreateResponse> {
203
- return unwrapAsync(accountAccountV1SessionCreate(this, request, options));
204
- }
205
226
  }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { dataAccountV1GetApps } from "../funcs/dataAccountV1GetApps.js";
6
+ import { dataAccountV1GetBadges } from "../funcs/dataAccountV1GetBadges.js";
7
+ import { dataAccountV1GetInfo } from "../funcs/dataAccountV1GetInfo.js";
8
+ import { dataAccountV1GetStaff } from "../funcs/dataAccountV1GetStaff.js";
9
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
+ import * as components from "../models/components/index.js";
11
+ import * as operations from "../models/operations/index.js";
12
+ import { unwrapAsync } from "../types/fp.js";
13
+
14
+ export class Data extends ClientSDK {
15
+ /**
16
+ * Get Account Apps
17
+ */
18
+ async accountV1GetApps(
19
+ request: operations.AccountV1GetAppsRequest,
20
+ options?: RequestOptions
21
+ ): Promise<operations.AccountV1GetAppsResponse> {
22
+ return unwrapAsync(dataAccountV1GetApps(this, request, options));
23
+ }
24
+
25
+ /**
26
+ * Get Account Badges
27
+ */
28
+ async accountV1GetBadges(
29
+ request: operations.AccountV1GetBadgesRequest,
30
+ options?: RequestOptions
31
+ ): Promise<operations.AccountV1GetBadgesResponse> {
32
+ return unwrapAsync(dataAccountV1GetBadges(this, request, options));
33
+ }
34
+
35
+ /**
36
+ * Get Account Info
37
+ */
38
+ async accountV1GetInfo(
39
+ request: components.AccountSearch,
40
+ options?: RequestOptions
41
+ ): Promise<operations.AccountV1GetInfoResponse> {
42
+ return unwrapAsync(dataAccountV1GetInfo(this, request, options));
43
+ }
44
+
45
+ /**
46
+ * Get Staff Members and their info
47
+ */
48
+ async accountV1GetStaff(
49
+ options?: RequestOptions
50
+ ): Promise<operations.AccountV1GetStaffResponse> {
51
+ return unwrapAsync(dataAccountV1GetStaff(this, options));
52
+ }
53
+ }
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { locationLocation } from "../funcs/locationLocation.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Location extends ClientSDK {
11
+ /**
12
+ * Location List
13
+ *
14
+ * @remarks
15
+ * Get all of our available locations
16
+ */
17
+ async location(options?: RequestOptions): Promise<operations.LocationResponse> {
18
+ return unwrapAsync(locationLocation(this, options));
19
+ }
20
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { publicAccountV1GetApps } from "../funcs/publicAccountV1GetApps.js";
6
+ import { publicAccountV1GetBadges } from "../funcs/publicAccountV1GetBadges.js";
7
+ import { publicAccountV1GetInfo } from "../funcs/publicAccountV1GetInfo.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as components from "../models/components/index.js";
10
+ import * as operations from "../models/operations/index.js";
11
+ import { unwrapAsync } from "../types/fp.js";
12
+
13
+ export class Public extends ClientSDK {
14
+ /**
15
+ * Get Account Apps
16
+ */
17
+ async accountV1GetApps(
18
+ request: operations.AccountV1GetAppsRequest,
19
+ options?: RequestOptions
20
+ ): Promise<operations.AccountV1GetAppsResponse> {
21
+ return unwrapAsync(publicAccountV1GetApps(this, request, options));
22
+ }
23
+
24
+ /**
25
+ * Get Account Badges
26
+ */
27
+ async accountV1GetBadges(
28
+ request: operations.AccountV1GetBadgesRequest,
29
+ options?: RequestOptions
30
+ ): Promise<operations.AccountV1GetBadgesResponse> {
31
+ return unwrapAsync(publicAccountV1GetBadges(this, request, options));
32
+ }
33
+
34
+ /**
35
+ * Get Account Info
36
+ */
37
+ async accountV1GetInfo(
38
+ request: components.AccountSearch,
39
+ options?: RequestOptions
40
+ ): Promise<operations.AccountV1GetInfoResponse> {
41
+ return unwrapAsync(publicAccountV1GetInfo(this, request, options));
42
+ }
43
+ }
package/src/sdk/sdk.ts CHANGED
@@ -5,7 +5,10 @@
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { Account } from "./account.js";
7
7
  import { Connection } from "./connection.js";
8
+ import { Data } from "./data.js";
8
9
  import { Liveness } from "./liveness.js";
10
+ import { Location } from "./location.js";
11
+ import { Public } from "./public.js";
9
12
  import { Session } from "./session.js";
10
13
  import { Settings } from "./settings.js";
11
14
 
@@ -20,18 +23,33 @@ export class SteamSets extends ClientSDK {
20
23
  return (this._connection ??= new Connection(this.options$));
21
24
  }
22
25
 
26
+ private _session?: Session;
27
+ get session(): Session {
28
+ return (this._session ??= new Session(this.options$));
29
+ }
30
+
23
31
  private _settings?: Settings;
24
32
  get settings(): Settings {
25
33
  return (this._settings ??= new Settings(this.options$));
26
34
  }
27
35
 
28
- private _session?: Session;
29
- get session(): Session {
30
- return (this._session ??= new Session(this.options$));
36
+ private _data?: Data;
37
+ get data(): Data {
38
+ return (this._data ??= new Data(this.options$));
39
+ }
40
+
41
+ private _public?: Public;
42
+ get public(): Public {
43
+ return (this._public ??= new Public(this.options$));
31
44
  }
32
45
 
33
46
  private _liveness?: Liveness;
34
47
  get liveness(): Liveness {
35
48
  return (this._liveness ??= new Liveness(this.options$));
36
49
  }
50
+
51
+ private _location?: Location;
52
+ get location(): Location {
53
+ return (this._location ??= new Location(this.options$));
54
+ }
37
55
  }
@@ -12,6 +12,16 @@ import * as operations from "../models/operations/index.js";
12
12
  import { unwrapAsync } from "../types/fp.js";
13
13
 
14
14
  export class Session extends ClientSDK {
15
+ /**
16
+ * Create a new session for non logged in users
17
+ */
18
+ async accountV1SessionCreate(
19
+ request: operations.AccountV1SessionCreateRequest,
20
+ options?: RequestOptions
21
+ ): Promise<operations.AccountV1SessionCreateResponse> {
22
+ return unwrapAsync(sessionAccountV1SessionCreate(this, request, options));
23
+ }
24
+
15
25
  /**
16
26
  * Deletes a session, can also be used to logout
17
27
  */
@@ -40,14 +50,4 @@ export class Session extends ClientSDK {
40
50
  ): Promise<operations.AccountV1SessionLoginResponse> {
41
51
  return unwrapAsync(sessionAccountV1SessionLogin(this, request, options));
42
52
  }
43
-
44
- /**
45
- * Create a new session for non logged in users
46
- */
47
- async accountV1SessionCreate(
48
- request: operations.AccountV1SessionCreateRequest,
49
- options?: RequestOptions
50
- ): Promise<operations.AccountV1SessionCreateResponse> {
51
- return unwrapAsync(sessionAccountV1SessionCreate(this, request, options));
52
- }
53
53
  }