@steamsets/client-ts 0.11.16 → 0.11.18

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 (106) hide show
  1. package/README.md +0 -4
  2. package/docs/sdks/account/README.md +0 -80
  3. package/docs/sdks/leaderboard/README.md +0 -80
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/accountinfobody.d.ts +12 -9
  7. package/models/components/accountinfobody.d.ts.map +1 -1
  8. package/models/components/accountinfobody.js +12 -9
  9. package/models/components/accountinfobody.js.map +1 -1
  10. package/models/components/index.d.ts +4 -3
  11. package/models/components/index.d.ts.map +1 -1
  12. package/models/components/index.js +4 -3
  13. package/models/components/index.js.map +1 -1
  14. package/models/components/leaderboardaccount.d.ts +12 -9
  15. package/models/components/leaderboardaccount.d.ts.map +1 -1
  16. package/models/components/leaderboardaccount.js +12 -9
  17. package/models/components/leaderboardaccount.js.map +1 -1
  18. package/models/components/leaderboardcity.d.ts +33 -0
  19. package/models/components/leaderboardcity.d.ts.map +1 -0
  20. package/models/components/{location.js → leaderboardcity.js} +11 -13
  21. package/models/components/leaderboardcity.js.map +1 -0
  22. package/models/components/leaderboardcountry.d.ts +38 -0
  23. package/models/components/leaderboardcountry.d.ts.map +1 -0
  24. package/models/components/leaderboardcountry.js +54 -0
  25. package/models/components/leaderboardcountry.js.map +1 -0
  26. package/models/components/leaderboardregion.d.ts +33 -0
  27. package/models/components/leaderboardregion.d.ts.map +1 -0
  28. package/models/components/leaderboardregion.js +52 -0
  29. package/models/components/leaderboardregion.js.map +1 -0
  30. package/models/components/leaderboardstate.d.ts +33 -0
  31. package/models/components/leaderboardstate.d.ts.map +1 -0
  32. package/models/components/leaderboardstate.js +52 -0
  33. package/models/components/leaderboardstate.js.map +1 -0
  34. package/models/components/v1accountappbadge.d.ts +4 -0
  35. package/models/components/v1accountappbadge.d.ts.map +1 -1
  36. package/models/components/v1accountappbadge.js +4 -0
  37. package/models/components/v1accountappbadge.js.map +1 -1
  38. package/models/components/v1accountfriend.d.ts +12 -9
  39. package/models/components/v1accountfriend.d.ts.map +1 -1
  40. package/models/components/v1accountfriend.js +12 -9
  41. package/models/components/v1accountfriend.js.map +1 -1
  42. package/models/components/v1accountleaderboardaccount.d.ts +12 -9
  43. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  44. package/models/components/v1accountleaderboardaccount.js +12 -9
  45. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  46. package/models/operations/index.d.ts +0 -1
  47. package/models/operations/index.d.ts.map +1 -1
  48. package/models/operations/index.js +0 -1
  49. package/models/operations/index.js.map +1 -1
  50. package/package.json +1 -1
  51. package/sdk/account.d.ts +0 -4
  52. package/sdk/account.d.ts.map +1 -1
  53. package/sdk/account.js +0 -7
  54. package/sdk/account.js.map +1 -1
  55. package/sdk/leaderboard.d.ts +0 -4
  56. package/sdk/leaderboard.d.ts.map +1 -1
  57. package/sdk/leaderboard.js +0 -7
  58. package/sdk/leaderboard.js.map +1 -1
  59. package/sdk/sdk.d.ts +2 -2
  60. package/sdk/sdk.d.ts.map +1 -1
  61. package/sdk/sdk.js +4 -4
  62. package/sdk/sdk.js.map +1 -1
  63. package/src/lib/config.ts +2 -2
  64. package/src/models/components/accountinfobody.ts +39 -21
  65. package/src/models/components/index.ts +4 -3
  66. package/src/models/components/leaderboardaccount.ts +39 -21
  67. package/src/models/components/leaderboardcity.ts +55 -0
  68. package/src/models/components/leaderboardcountry.ts +62 -0
  69. package/src/models/components/leaderboardregion.ts +55 -0
  70. package/src/models/components/leaderboardstate.ts +55 -0
  71. package/src/models/components/v1accountappbadge.ts +8 -0
  72. package/src/models/components/v1accountfriend.ts +39 -21
  73. package/src/models/components/v1accountleaderboardaccount.ts +39 -21
  74. package/src/models/operations/index.ts +0 -1
  75. package/src/sdk/account.ts +0 -15
  76. package/src/sdk/leaderboard.ts +0 -15
  77. package/src/sdk/sdk.ts +5 -5
  78. package/funcs/accountAccountV1LeaderboardPreview.d.ts +0 -14
  79. package/funcs/accountAccountV1LeaderboardPreview.d.ts.map +0 -1
  80. package/funcs/accountAccountV1LeaderboardPreview.js +0 -98
  81. package/funcs/accountAccountV1LeaderboardPreview.js.map +0 -1
  82. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts +0 -14
  83. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts.map +0 -1
  84. package/funcs/leaderboardAccountV1LeaderboardPreview.js +0 -98
  85. package/funcs/leaderboardAccountV1LeaderboardPreview.js.map +0 -1
  86. package/models/components/location.d.ts +0 -38
  87. package/models/components/location.d.ts.map +0 -1
  88. package/models/components/location.js.map +0 -1
  89. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts +0 -110
  90. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts.map +0 -1
  91. package/models/components/v1accountleaderboardpreviewrequestbody.js +0 -90
  92. package/models/components/v1accountleaderboardpreviewrequestbody.js.map +0 -1
  93. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts +0 -38
  94. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts.map +0 -1
  95. package/models/components/v1accountleaderboardpreviewresponsebody.js +0 -63
  96. package/models/components/v1accountleaderboardpreviewresponsebody.js.map +0 -1
  97. package/models/operations/accountv1leaderboardpreview.d.ts +0 -31
  98. package/models/operations/accountv1leaderboardpreview.d.ts.map +0 -1
  99. package/models/operations/accountv1leaderboardpreview.js +0 -66
  100. package/models/operations/accountv1leaderboardpreview.js.map +0 -1
  101. package/src/funcs/accountAccountV1LeaderboardPreview.ts +0 -130
  102. package/src/funcs/leaderboardAccountV1LeaderboardPreview.ts +0 -130
  103. package/src/models/components/location.ts +0 -62
  104. package/src/models/components/v1accountleaderboardpreviewrequestbody.ts +0 -110
  105. package/src/models/components/v1accountleaderboardpreviewresponsebody.ts +0 -73
  106. package/src/models/operations/accountv1leaderboardpreview.ts +0 -74
@@ -22,7 +22,10 @@ export * from "./idstruct.js";
22
22
  export * from "./image.js";
23
23
  export * from "./leaderboardaccount.js";
24
24
  export * from "./leaderboardaccountbadgeinfo.js";
25
- export * from "./location.js";
25
+ export * from "./leaderboardcity.js";
26
+ export * from "./leaderboardcountry.js";
27
+ export * from "./leaderboardregion.js";
28
+ export * from "./leaderboardstate.js";
26
29
  export * from "./loginrequestbody.js";
27
30
  export * from "./region.js";
28
31
  export * from "./resource.js";
@@ -47,8 +50,6 @@ export * from "./v1accountleaderboardaccount.js";
47
50
  export * from "./v1accountleaderboardappsearch.js";
48
51
  export * from "./v1accountleaderboardbadgesearch.js";
49
52
  export * from "./v1accountleaderboardhistoryresponsebody.js";
50
- export * from "./v1accountleaderboardpreviewrequestbody.js";
51
- export * from "./v1accountleaderboardpreviewresponsebody.js";
52
53
  export * from "./v1accountleaderboardrequestbody.js";
53
54
  export * from "./v1accountleaderboardresponsebody.js";
54
55
  export * from "./v1accountplaytimedatapoint.js";
@@ -4,11 +4,29 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import {
7
- Location,
8
- Location$inboundSchema,
9
- Location$Outbound,
10
- Location$outboundSchema,
11
- } from "./location.js";
7
+ LeaderboardCity,
8
+ LeaderboardCity$inboundSchema,
9
+ LeaderboardCity$Outbound,
10
+ LeaderboardCity$outboundSchema,
11
+ } from "./leaderboardcity.js";
12
+ import {
13
+ LeaderboardCountry,
14
+ LeaderboardCountry$inboundSchema,
15
+ LeaderboardCountry$Outbound,
16
+ LeaderboardCountry$outboundSchema,
17
+ } from "./leaderboardcountry.js";
18
+ import {
19
+ LeaderboardRegion,
20
+ LeaderboardRegion$inboundSchema,
21
+ LeaderboardRegion$Outbound,
22
+ LeaderboardRegion$outboundSchema,
23
+ } from "./leaderboardregion.js";
24
+ import {
25
+ LeaderboardState,
26
+ LeaderboardState$inboundSchema,
27
+ LeaderboardState$Outbound,
28
+ LeaderboardState$outboundSchema,
29
+ } from "./leaderboardstate.js";
12
30
  import {
13
31
  Role,
14
32
  Role$inboundSchema,
@@ -49,8 +67,8 @@ export type LeaderboardAccount = {
49
67
  * The number of bans
50
68
  */
51
69
  bans: number;
52
- city?: Location | null | undefined;
53
- country?: Location | null | undefined;
70
+ city?: LeaderboardCity | null | undefined;
71
+ country?: LeaderboardCountry | null | undefined;
54
72
  /**
55
73
  * The time the account was created
56
74
  */
@@ -115,12 +133,12 @@ export type LeaderboardAccount = {
115
133
  * The privacy of the account
116
134
  */
117
135
  privacy: string;
118
- region?: Location | null | undefined;
136
+ region?: LeaderboardRegion | null | undefined;
119
137
  /**
120
138
  * The roles of the account
121
139
  */
122
140
  roles: Array<Role> | null;
123
- state?: Location | null | undefined;
141
+ state?: LeaderboardState | null | undefined;
124
142
  /**
125
143
  * The steam id
126
144
  */
@@ -161,8 +179,8 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
161
179
  awardsReceived: z.number().int(),
162
180
  badges: z.number().int(),
163
181
  bans: z.number().int(),
164
- city: z.nullable(Location$inboundSchema).optional(),
165
- country: z.nullable(Location$inboundSchema).optional(),
182
+ city: z.nullable(LeaderboardCity$inboundSchema).optional(),
183
+ country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
166
184
  createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
167
185
  economyBan: z.string(),
168
186
  foilBadgeCost: z.number().int(),
@@ -179,9 +197,9 @@ export const LeaderboardAccount$inboundSchema: z.ZodType<
179
197
  pointsGiven: z.number().int(),
180
198
  pointsReceived: z.number().int(),
181
199
  privacy: z.string(),
182
- region: z.nullable(Location$inboundSchema).optional(),
200
+ region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
183
201
  roles: z.nullable(z.array(Role$inboundSchema)),
184
- state: z.nullable(Location$inboundSchema).optional(),
202
+ state: z.nullable(LeaderboardState$inboundSchema).optional(),
185
203
  steamId: z.string(),
186
204
  steamSetsScore: z.number().int(),
187
205
  steamSetsVanity: z.string(),
@@ -200,8 +218,8 @@ export type LeaderboardAccount$Outbound = {
200
218
  awardsReceived: number;
201
219
  badges: number;
202
220
  bans: number;
203
- city?: Location$Outbound | null | undefined;
204
- country?: Location$Outbound | null | undefined;
221
+ city?: LeaderboardCity$Outbound | null | undefined;
222
+ country?: LeaderboardCountry$Outbound | null | undefined;
205
223
  createdAt: string;
206
224
  economyBan: string;
207
225
  foilBadgeCost: number;
@@ -218,9 +236,9 @@ export type LeaderboardAccount$Outbound = {
218
236
  pointsGiven: number;
219
237
  pointsReceived: number;
220
238
  privacy: string;
221
- region?: Location$Outbound | null | undefined;
239
+ region?: LeaderboardRegion$Outbound | null | undefined;
222
240
  roles: Array<Role$Outbound> | null;
223
- state?: Location$Outbound | null | undefined;
241
+ state?: LeaderboardState$Outbound | null | undefined;
224
242
  steamId: string;
225
243
  steamSetsScore: number;
226
244
  steamSetsVanity: string;
@@ -243,8 +261,8 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
243
261
  awardsReceived: z.number().int(),
244
262
  badges: z.number().int(),
245
263
  bans: z.number().int(),
246
- city: z.nullable(Location$outboundSchema).optional(),
247
- country: z.nullable(Location$outboundSchema).optional(),
264
+ city: z.nullable(LeaderboardCity$outboundSchema).optional(),
265
+ country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
248
266
  createdAt: z.date().transform(v => v.toISOString()),
249
267
  economyBan: z.string(),
250
268
  foilBadgeCost: z.number().int(),
@@ -261,9 +279,9 @@ export const LeaderboardAccount$outboundSchema: z.ZodType<
261
279
  pointsGiven: z.number().int(),
262
280
  pointsReceived: z.number().int(),
263
281
  privacy: z.string(),
264
- region: z.nullable(Location$outboundSchema).optional(),
282
+ region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
265
283
  roles: z.nullable(z.array(Role$outboundSchema)),
266
- state: z.nullable(Location$outboundSchema).optional(),
284
+ state: z.nullable(LeaderboardState$outboundSchema).optional(),
267
285
  steamId: z.string(),
268
286
  steamSetsScore: z.number().int(),
269
287
  steamSetsVanity: z.string(),
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardCity = {
8
+ /**
9
+ * The id of the city
10
+ */
11
+ id: number;
12
+ /**
13
+ * The name of the city
14
+ */
15
+ name: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const LeaderboardCity$inboundSchema: z.ZodType<
20
+ LeaderboardCity,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int(),
25
+ name: z.string(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type LeaderboardCity$Outbound = {
30
+ id: number;
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const LeaderboardCity$outboundSchema: z.ZodType<
36
+ LeaderboardCity$Outbound,
37
+ z.ZodTypeDef,
38
+ LeaderboardCity
39
+ > = z.object({
40
+ id: z.number().int(),
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 LeaderboardCity$ {
49
+ /** @deprecated use `LeaderboardCity$inboundSchema` instead. */
50
+ export const inboundSchema = LeaderboardCity$inboundSchema;
51
+ /** @deprecated use `LeaderboardCity$outboundSchema` instead. */
52
+ export const outboundSchema = LeaderboardCity$outboundSchema;
53
+ /** @deprecated use `LeaderboardCity$Outbound` instead. */
54
+ export type Outbound = LeaderboardCity$Outbound;
55
+ }
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardCountry = {
8
+ /**
9
+ * The code of the country
10
+ */
11
+ code?: string | undefined;
12
+ /**
13
+ * The id of the country
14
+ */
15
+ id: number;
16
+ /**
17
+ * The name of the country
18
+ */
19
+ name: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const LeaderboardCountry$inboundSchema: z.ZodType<
24
+ LeaderboardCountry,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ code: z.string().optional(),
29
+ id: z.number().int(),
30
+ name: z.string(),
31
+ });
32
+
33
+ /** @internal */
34
+ export type LeaderboardCountry$Outbound = {
35
+ code?: string | undefined;
36
+ id: number;
37
+ name: string;
38
+ };
39
+
40
+ /** @internal */
41
+ export const LeaderboardCountry$outboundSchema: z.ZodType<
42
+ LeaderboardCountry$Outbound,
43
+ z.ZodTypeDef,
44
+ LeaderboardCountry
45
+ > = z.object({
46
+ code: z.string().optional(),
47
+ id: z.number().int(),
48
+ name: z.string(),
49
+ });
50
+
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ export namespace LeaderboardCountry$ {
56
+ /** @deprecated use `LeaderboardCountry$inboundSchema` instead. */
57
+ export const inboundSchema = LeaderboardCountry$inboundSchema;
58
+ /** @deprecated use `LeaderboardCountry$outboundSchema` instead. */
59
+ export const outboundSchema = LeaderboardCountry$outboundSchema;
60
+ /** @deprecated use `LeaderboardCountry$Outbound` instead. */
61
+ export type Outbound = LeaderboardCountry$Outbound;
62
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardRegion = {
8
+ /**
9
+ * The id of the region
10
+ */
11
+ id: number;
12
+ /**
13
+ * The name of the region
14
+ */
15
+ name: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const LeaderboardRegion$inboundSchema: z.ZodType<
20
+ LeaderboardRegion,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int(),
25
+ name: z.string(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type LeaderboardRegion$Outbound = {
30
+ id: number;
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const LeaderboardRegion$outboundSchema: z.ZodType<
36
+ LeaderboardRegion$Outbound,
37
+ z.ZodTypeDef,
38
+ LeaderboardRegion
39
+ > = z.object({
40
+ id: z.number().int(),
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 LeaderboardRegion$ {
49
+ /** @deprecated use `LeaderboardRegion$inboundSchema` instead. */
50
+ export const inboundSchema = LeaderboardRegion$inboundSchema;
51
+ /** @deprecated use `LeaderboardRegion$outboundSchema` instead. */
52
+ export const outboundSchema = LeaderboardRegion$outboundSchema;
53
+ /** @deprecated use `LeaderboardRegion$Outbound` instead. */
54
+ export type Outbound = LeaderboardRegion$Outbound;
55
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type LeaderboardState = {
8
+ /**
9
+ * The id of the state
10
+ */
11
+ id: number;
12
+ /**
13
+ * The name of the state
14
+ */
15
+ name: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const LeaderboardState$inboundSchema: z.ZodType<
20
+ LeaderboardState,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int(),
25
+ name: z.string(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type LeaderboardState$Outbound = {
30
+ id: number;
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const LeaderboardState$outboundSchema: z.ZodType<
36
+ LeaderboardState$Outbound,
37
+ z.ZodTypeDef,
38
+ LeaderboardState
39
+ > = z.object({
40
+ id: z.number().int(),
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 LeaderboardState$ {
49
+ /** @deprecated use `LeaderboardState$inboundSchema` instead. */
50
+ export const inboundSchema = LeaderboardState$inboundSchema;
51
+ /** @deprecated use `LeaderboardState$outboundSchema` instead. */
52
+ export const outboundSchema = LeaderboardState$outboundSchema;
53
+ /** @deprecated use `LeaderboardState$Outbound` instead. */
54
+ export type Outbound = LeaderboardState$Outbound;
55
+ }
@@ -11,7 +11,9 @@ export type V1AccountAppBadge = {
11
11
  appShortName: string;
12
12
  badgeImage: string;
13
13
  completedAt: Date;
14
+ isEvent: boolean;
14
15
  isFoil: boolean;
16
+ isSale: boolean;
15
17
  level: number;
16
18
  name: string;
17
19
  price: number;
@@ -35,7 +37,9 @@ export const V1AccountAppBadge$inboundSchema: z.ZodType<
35
37
  completedAt: z.string().datetime({ offset: true }).transform(v =>
36
38
  new Date(v)
37
39
  ),
40
+ isEvent: z.boolean(),
38
41
  isFoil: z.boolean(),
42
+ isSale: z.boolean(),
39
43
  level: z.number().int(),
40
44
  name: z.string(),
41
45
  price: z.number().int(),
@@ -53,7 +57,9 @@ export type V1AccountAppBadge$Outbound = {
53
57
  appShortName: string;
54
58
  badgeImage: string;
55
59
  completedAt: string;
60
+ isEvent: boolean;
56
61
  isFoil: boolean;
62
+ isSale: boolean;
57
63
  level: number;
58
64
  name: string;
59
65
  price: number;
@@ -75,7 +81,9 @@ export const V1AccountAppBadge$outboundSchema: z.ZodType<
75
81
  appShortName: z.string(),
76
82
  badgeImage: z.string(),
77
83
  completedAt: z.date().transform(v => v.toISOString()),
84
+ isEvent: z.boolean(),
78
85
  isFoil: z.boolean(),
86
+ isSale: z.boolean(),
79
87
  level: z.number().int(),
80
88
  name: z.string(),
81
89
  price: z.number().int(),
@@ -4,11 +4,29 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import {
7
- Location,
8
- Location$inboundSchema,
9
- Location$Outbound,
10
- Location$outboundSchema,
11
- } from "./location.js";
7
+ LeaderboardCity,
8
+ LeaderboardCity$inboundSchema,
9
+ LeaderboardCity$Outbound,
10
+ LeaderboardCity$outboundSchema,
11
+ } from "./leaderboardcity.js";
12
+ import {
13
+ LeaderboardCountry,
14
+ LeaderboardCountry$inboundSchema,
15
+ LeaderboardCountry$Outbound,
16
+ LeaderboardCountry$outboundSchema,
17
+ } from "./leaderboardcountry.js";
18
+ import {
19
+ LeaderboardRegion,
20
+ LeaderboardRegion$inboundSchema,
21
+ LeaderboardRegion$Outbound,
22
+ LeaderboardRegion$outboundSchema,
23
+ } from "./leaderboardregion.js";
24
+ import {
25
+ LeaderboardState,
26
+ LeaderboardState$inboundSchema,
27
+ LeaderboardState$Outbound,
28
+ LeaderboardState$outboundSchema,
29
+ } from "./leaderboardstate.js";
12
30
  import {
13
31
  Role,
14
32
  Role$inboundSchema,
@@ -49,8 +67,8 @@ export type V1AccountFriend = {
49
67
  * The number of bans
50
68
  */
51
69
  bans: number;
52
- city?: Location | null | undefined;
53
- country?: Location | null | undefined;
70
+ city?: LeaderboardCity | null | undefined;
71
+ country?: LeaderboardCountry | null | undefined;
54
72
  /**
55
73
  * The time the account was created
56
74
  */
@@ -116,12 +134,12 @@ export type V1AccountFriend = {
116
134
  * The privacy of the account
117
135
  */
118
136
  privacy: string;
119
- region?: Location | null | undefined;
137
+ region?: LeaderboardRegion | null | undefined;
120
138
  /**
121
139
  * The roles of the account
122
140
  */
123
141
  roles: Array<Role> | null;
124
- state?: Location | null | undefined;
142
+ state?: LeaderboardState | null | undefined;
125
143
  /**
126
144
  * The steam id
127
145
  */
@@ -162,8 +180,8 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
162
180
  awardsReceived: z.number().int(),
163
181
  badges: z.number().int(),
164
182
  bans: z.number().int(),
165
- city: z.nullable(Location$inboundSchema).optional(),
166
- country: z.nullable(Location$inboundSchema).optional(),
183
+ city: z.nullable(LeaderboardCity$inboundSchema).optional(),
184
+ country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
167
185
  createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
168
186
  economyBan: z.string(),
169
187
  foilBadgeCost: z.number().int(),
@@ -183,9 +201,9 @@ export const V1AccountFriend$inboundSchema: z.ZodType<
183
201
  pointsGiven: z.number().int(),
184
202
  pointsReceived: z.number().int(),
185
203
  privacy: z.string(),
186
- region: z.nullable(Location$inboundSchema).optional(),
204
+ region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
187
205
  roles: z.nullable(z.array(Role$inboundSchema)),
188
- state: z.nullable(Location$inboundSchema).optional(),
206
+ state: z.nullable(LeaderboardState$inboundSchema).optional(),
189
207
  steamId: z.string(),
190
208
  steamSetsScore: z.number().int(),
191
209
  steamSetsVanity: z.string(),
@@ -204,8 +222,8 @@ export type V1AccountFriend$Outbound = {
204
222
  awardsReceived: number;
205
223
  badges: number;
206
224
  bans: number;
207
- city?: Location$Outbound | null | undefined;
208
- country?: Location$Outbound | null | undefined;
225
+ city?: LeaderboardCity$Outbound | null | undefined;
226
+ country?: LeaderboardCountry$Outbound | null | undefined;
209
227
  createdAt: string;
210
228
  economyBan: string;
211
229
  foilBadgeCost: number;
@@ -223,9 +241,9 @@ export type V1AccountFriend$Outbound = {
223
241
  pointsGiven: number;
224
242
  pointsReceived: number;
225
243
  privacy: string;
226
- region?: Location$Outbound | null | undefined;
244
+ region?: LeaderboardRegion$Outbound | null | undefined;
227
245
  roles: Array<Role$Outbound> | null;
228
- state?: Location$Outbound | null | undefined;
246
+ state?: LeaderboardState$Outbound | null | undefined;
229
247
  steamId: string;
230
248
  steamSetsScore: number;
231
249
  steamSetsVanity: string;
@@ -248,8 +266,8 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
248
266
  awardsReceived: z.number().int(),
249
267
  badges: z.number().int(),
250
268
  bans: z.number().int(),
251
- city: z.nullable(Location$outboundSchema).optional(),
252
- country: z.nullable(Location$outboundSchema).optional(),
269
+ city: z.nullable(LeaderboardCity$outboundSchema).optional(),
270
+ country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
253
271
  createdAt: z.date().transform(v => v.toISOString()),
254
272
  economyBan: z.string(),
255
273
  foilBadgeCost: z.number().int(),
@@ -267,9 +285,9 @@ export const V1AccountFriend$outboundSchema: z.ZodType<
267
285
  pointsGiven: z.number().int(),
268
286
  pointsReceived: z.number().int(),
269
287
  privacy: z.string(),
270
- region: z.nullable(Location$outboundSchema).optional(),
288
+ region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
271
289
  roles: z.nullable(z.array(Role$outboundSchema)),
272
- state: z.nullable(Location$outboundSchema).optional(),
290
+ state: z.nullable(LeaderboardState$outboundSchema).optional(),
273
291
  steamId: z.string(),
274
292
  steamSetsScore: z.number().int(),
275
293
  steamSetsVanity: z.string(),
@@ -10,11 +10,29 @@ import {
10
10
  LeaderboardAccountBadgeInfo$outboundSchema,
11
11
  } from "./leaderboardaccountbadgeinfo.js";
12
12
  import {
13
- Location,
14
- Location$inboundSchema,
15
- Location$Outbound,
16
- Location$outboundSchema,
17
- } from "./location.js";
13
+ LeaderboardCity,
14
+ LeaderboardCity$inboundSchema,
15
+ LeaderboardCity$Outbound,
16
+ LeaderboardCity$outboundSchema,
17
+ } from "./leaderboardcity.js";
18
+ import {
19
+ LeaderboardCountry,
20
+ LeaderboardCountry$inboundSchema,
21
+ LeaderboardCountry$Outbound,
22
+ LeaderboardCountry$outboundSchema,
23
+ } from "./leaderboardcountry.js";
24
+ import {
25
+ LeaderboardRegion,
26
+ LeaderboardRegion$inboundSchema,
27
+ LeaderboardRegion$Outbound,
28
+ LeaderboardRegion$outboundSchema,
29
+ } from "./leaderboardregion.js";
30
+ import {
31
+ LeaderboardState,
32
+ LeaderboardState$inboundSchema,
33
+ LeaderboardState$Outbound,
34
+ LeaderboardState$outboundSchema,
35
+ } from "./leaderboardstate.js";
18
36
  import {
19
37
  Role,
20
38
  Role$inboundSchema,
@@ -60,8 +78,8 @@ export type V1AccountLeaderboardAccount = {
60
78
  * The number of bans
61
79
  */
62
80
  bans: number;
63
- city?: Location | null | undefined;
64
- country?: Location | null | undefined;
81
+ city?: LeaderboardCity | null | undefined;
82
+ country?: LeaderboardCountry | null | undefined;
65
83
  /**
66
84
  * The time the account was created
67
85
  */
@@ -130,12 +148,12 @@ export type V1AccountLeaderboardAccount = {
130
148
  * The rank of the account
131
149
  */
132
150
  rank: number;
133
- region?: Location | null | undefined;
151
+ region?: LeaderboardRegion | null | undefined;
134
152
  /**
135
153
  * The roles of the account
136
154
  */
137
155
  roles: Array<Role> | null;
138
- state?: Location | null | undefined;
156
+ state?: LeaderboardState | null | undefined;
139
157
  /**
140
158
  * The steam id
141
159
  */
@@ -178,8 +196,8 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
178
196
  badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$inboundSchema).optional(),
179
197
  badges: z.number().int(),
180
198
  bans: z.number().int(),
181
- city: z.nullable(Location$inboundSchema).optional(),
182
- country: z.nullable(Location$inboundSchema).optional(),
199
+ city: z.nullable(LeaderboardCity$inboundSchema).optional(),
200
+ country: z.nullable(LeaderboardCountry$inboundSchema).optional(),
183
201
  createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
184
202
  economyBan: z.string(),
185
203
  foilBadgeCost: z.number().int(),
@@ -197,9 +215,9 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
197
215
  pointsReceived: z.number().int(),
198
216
  privacy: z.string(),
199
217
  rank: z.number().int(),
200
- region: z.nullable(Location$inboundSchema).optional(),
218
+ region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
201
219
  roles: z.nullable(z.array(Role$inboundSchema)),
202
- state: z.nullable(Location$inboundSchema).optional(),
220
+ state: z.nullable(LeaderboardState$inboundSchema).optional(),
203
221
  steamId: z.string(),
204
222
  steamSetsScore: z.number().int(),
205
223
  steamSetsVanity: z.string(),
@@ -220,8 +238,8 @@ export type V1AccountLeaderboardAccount$Outbound = {
220
238
  badgeInfo?: LeaderboardAccountBadgeInfo$Outbound | null | undefined;
221
239
  badges: number;
222
240
  bans: number;
223
- city?: Location$Outbound | null | undefined;
224
- country?: Location$Outbound | null | undefined;
241
+ city?: LeaderboardCity$Outbound | null | undefined;
242
+ country?: LeaderboardCountry$Outbound | null | undefined;
225
243
  createdAt: string;
226
244
  economyBan: string;
227
245
  foilBadgeCost: number;
@@ -239,9 +257,9 @@ export type V1AccountLeaderboardAccount$Outbound = {
239
257
  pointsReceived: number;
240
258
  privacy: string;
241
259
  rank: number;
242
- region?: Location$Outbound | null | undefined;
260
+ region?: LeaderboardRegion$Outbound | null | undefined;
243
261
  roles: Array<Role$Outbound> | null;
244
- state?: Location$Outbound | null | undefined;
262
+ state?: LeaderboardState$Outbound | null | undefined;
245
263
  steamId: string;
246
264
  steamSetsScore: number;
247
265
  steamSetsVanity: string;
@@ -266,8 +284,8 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
266
284
  badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$outboundSchema).optional(),
267
285
  badges: z.number().int(),
268
286
  bans: z.number().int(),
269
- city: z.nullable(Location$outboundSchema).optional(),
270
- country: z.nullable(Location$outboundSchema).optional(),
287
+ city: z.nullable(LeaderboardCity$outboundSchema).optional(),
288
+ country: z.nullable(LeaderboardCountry$outboundSchema).optional(),
271
289
  createdAt: z.date().transform(v => v.toISOString()),
272
290
  economyBan: z.string(),
273
291
  foilBadgeCost: z.number().int(),
@@ -285,9 +303,9 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
285
303
  pointsReceived: z.number().int(),
286
304
  privacy: z.string(),
287
305
  rank: z.number().int(),
288
- region: z.nullable(Location$outboundSchema).optional(),
306
+ region: z.nullable(LeaderboardRegion$outboundSchema).optional(),
289
307
  roles: z.nullable(z.array(Role$outboundSchema)),
290
- state: z.nullable(Location$outboundSchema).optional(),
308
+ state: z.nullable(LeaderboardState$outboundSchema).optional(),
291
309
  steamId: z.string(),
292
310
  steamSetsScore: z.number().int(),
293
311
  steamSetsVanity: z.string(),
@@ -13,7 +13,6 @@ export * from "./accountv1getfriends.js";
13
13
  export * from "./accountv1getinfo.js";
14
14
  export * from "./accountv1getleaderboardhistory.js";
15
15
  export * from "./accountv1getstaff.js";
16
- export * from "./accountv1leaderboardpreview.js";
17
16
  export * from "./accountv1queue.js";
18
17
  export * from "./accountv1sessioncreate.js";
19
18
  export * from "./accountv1sessiondelete.js";