@steamsets/client-ts 0.11.15 → 0.11.17

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 (117) hide show
  1. package/README.md +0 -4
  2. package/docs/sdks/account/README.md +2 -82
  3. package/docs/sdks/leaderboard/README.md +2 -80
  4. package/docs/sdks/public/README.md +0 -2
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/models/components/accountinfobody.d.ts +12 -9
  8. package/models/components/accountinfobody.d.ts.map +1 -1
  9. package/models/components/accountinfobody.js +12 -9
  10. package/models/components/accountinfobody.js.map +1 -1
  11. package/models/components/index.d.ts +4 -3
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +4 -3
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/leaderboardaccount.d.ts +12 -9
  16. package/models/components/leaderboardaccount.d.ts.map +1 -1
  17. package/models/components/leaderboardaccount.js +12 -9
  18. package/models/components/leaderboardaccount.js.map +1 -1
  19. package/models/components/leaderboardcity.d.ts +33 -0
  20. package/models/components/leaderboardcity.d.ts.map +1 -0
  21. package/models/components/{location.js → leaderboardcity.js} +11 -13
  22. package/models/components/leaderboardcity.js.map +1 -0
  23. package/models/components/leaderboardcountry.d.ts +38 -0
  24. package/models/components/leaderboardcountry.d.ts.map +1 -0
  25. package/models/components/leaderboardcountry.js +54 -0
  26. package/models/components/leaderboardcountry.js.map +1 -0
  27. package/models/components/leaderboardregion.d.ts +33 -0
  28. package/models/components/leaderboardregion.d.ts.map +1 -0
  29. package/models/components/leaderboardregion.js +52 -0
  30. package/models/components/leaderboardregion.js.map +1 -0
  31. package/models/components/leaderboardstate.d.ts +33 -0
  32. package/models/components/leaderboardstate.d.ts.map +1 -0
  33. package/models/components/leaderboardstate.js +52 -0
  34. package/models/components/leaderboardstate.js.map +1 -0
  35. package/models/components/v1accountfriend.d.ts +12 -9
  36. package/models/components/v1accountfriend.d.ts.map +1 -1
  37. package/models/components/v1accountfriend.js +12 -9
  38. package/models/components/v1accountfriend.js.map +1 -1
  39. package/models/components/v1accountleaderboardaccount.d.ts +12 -9
  40. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  41. package/models/components/v1accountleaderboardaccount.js +12 -9
  42. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  43. package/models/components/v1accountleaderboardrequestbody.d.ts +5 -0
  44. package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
  45. package/models/components/v1accountleaderboardrequestbody.js +2 -0
  46. package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
  47. package/models/components/v1accountleaderboardresponsebody.d.ts +2 -0
  48. package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
  49. package/models/components/v1accountleaderboardresponsebody.js +2 -0
  50. package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
  51. package/models/components/v1accountqueuerequestbody.d.ts +0 -5
  52. package/models/components/v1accountqueuerequestbody.d.ts.map +1 -1
  53. package/models/components/v1accountqueuerequestbody.js +0 -2
  54. package/models/components/v1accountqueuerequestbody.js.map +1 -1
  55. package/models/operations/index.d.ts +0 -1
  56. package/models/operations/index.d.ts.map +1 -1
  57. package/models/operations/index.js +0 -1
  58. package/models/operations/index.js.map +1 -1
  59. package/package.json +1 -1
  60. package/sdk/account.d.ts +0 -4
  61. package/sdk/account.d.ts.map +1 -1
  62. package/sdk/account.js +0 -7
  63. package/sdk/account.js.map +1 -1
  64. package/sdk/leaderboard.d.ts +0 -4
  65. package/sdk/leaderboard.d.ts.map +1 -1
  66. package/sdk/leaderboard.js +0 -7
  67. package/sdk/leaderboard.js.map +1 -1
  68. package/sdk/sdk.d.ts +2 -2
  69. package/sdk/sdk.d.ts.map +1 -1
  70. package/sdk/sdk.js +4 -4
  71. package/sdk/sdk.js.map +1 -1
  72. package/src/lib/config.ts +2 -2
  73. package/src/models/components/accountinfobody.ts +39 -21
  74. package/src/models/components/index.ts +4 -3
  75. package/src/models/components/leaderboardaccount.ts +39 -21
  76. package/src/models/components/leaderboardcity.ts +55 -0
  77. package/src/models/components/leaderboardcountry.ts +62 -0
  78. package/src/models/components/leaderboardregion.ts +55 -0
  79. package/src/models/components/leaderboardstate.ts +55 -0
  80. package/src/models/components/v1accountfriend.ts +39 -21
  81. package/src/models/components/v1accountleaderboardaccount.ts +39 -21
  82. package/src/models/components/v1accountleaderboardrequestbody.ts +7 -0
  83. package/src/models/components/v1accountleaderboardresponsebody.ts +4 -0
  84. package/src/models/components/v1accountqueuerequestbody.ts +0 -7
  85. package/src/models/operations/index.ts +0 -1
  86. package/src/sdk/account.ts +0 -15
  87. package/src/sdk/leaderboard.ts +0 -15
  88. package/src/sdk/sdk.ts +5 -5
  89. package/funcs/accountAccountV1LeaderboardPreview.d.ts +0 -14
  90. package/funcs/accountAccountV1LeaderboardPreview.d.ts.map +0 -1
  91. package/funcs/accountAccountV1LeaderboardPreview.js +0 -98
  92. package/funcs/accountAccountV1LeaderboardPreview.js.map +0 -1
  93. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts +0 -14
  94. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts.map +0 -1
  95. package/funcs/leaderboardAccountV1LeaderboardPreview.js +0 -98
  96. package/funcs/leaderboardAccountV1LeaderboardPreview.js.map +0 -1
  97. package/models/components/location.d.ts +0 -38
  98. package/models/components/location.d.ts.map +0 -1
  99. package/models/components/location.js.map +0 -1
  100. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts +0 -110
  101. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts.map +0 -1
  102. package/models/components/v1accountleaderboardpreviewrequestbody.js +0 -90
  103. package/models/components/v1accountleaderboardpreviewrequestbody.js.map +0 -1
  104. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts +0 -38
  105. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts.map +0 -1
  106. package/models/components/v1accountleaderboardpreviewresponsebody.js +0 -63
  107. package/models/components/v1accountleaderboardpreviewresponsebody.js.map +0 -1
  108. package/models/operations/accountv1leaderboardpreview.d.ts +0 -31
  109. package/models/operations/accountv1leaderboardpreview.d.ts.map +0 -1
  110. package/models/operations/accountv1leaderboardpreview.js +0 -66
  111. package/models/operations/accountv1leaderboardpreview.js.map +0 -1
  112. package/src/funcs/accountAccountV1LeaderboardPreview.ts +0 -130
  113. package/src/funcs/leaderboardAccountV1LeaderboardPreview.ts +0 -130
  114. package/src/models/components/location.ts +0 -62
  115. package/src/models/components/v1accountleaderboardpreviewrequestbody.ts +0 -110
  116. package/src/models/components/v1accountleaderboardpreviewresponsebody.ts +0 -73
  117. package/src/models/operations/accountv1leaderboardpreview.ts +0 -74
@@ -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(),
@@ -61,6 +61,10 @@ export type V1AccountLeaderboardRequestBody = {
61
61
  * The end index
62
62
  */
63
63
  end?: number | null | undefined;
64
+ /**
65
+ * The rank to go to
66
+ */
67
+ goToLeaderboardRank?: number | null | undefined;
64
68
  /**
65
69
  * The leaderboard to get
66
70
  */
@@ -107,6 +111,7 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
107
111
  app: z.nullable(V1AccountLeaderboardAppSearch$inboundSchema).optional(),
108
112
  badge: z.nullable(V1AccountLeaderboardBadgeSearch$inboundSchema).optional(),
109
113
  end: z.nullable(z.number().int()).optional(),
114
+ goToLeaderboardRank: z.nullable(z.number().int()).optional(),
110
115
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
111
116
  location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema)).optional(),
112
117
  start: z.nullable(z.number().int()).optional(),
@@ -117,6 +122,7 @@ export type V1AccountLeaderboardRequestBody$Outbound = {
117
122
  app?: V1AccountLeaderboardAppSearch$Outbound | null | undefined;
118
123
  badge?: V1AccountLeaderboardBadgeSearch$Outbound | null | undefined;
119
124
  end?: number | null | undefined;
125
+ goToLeaderboardRank?: number | null | undefined;
120
126
  leaderboard: string;
121
127
  location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
122
128
  start?: number | null | undefined;
@@ -131,6 +137,7 @@ export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
131
137
  app: z.nullable(V1AccountLeaderboardAppSearch$outboundSchema).optional(),
132
138
  badge: z.nullable(V1AccountLeaderboardBadgeSearch$outboundSchema).optional(),
133
139
  end: z.nullable(z.number().int()).optional(),
140
+ goToLeaderboardRank: z.nullable(z.number().int()).optional(),
134
141
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
135
142
  location: z.nullable(z.array(V1LeaderboardLocation$outboundSchema))
136
143
  .optional(),
@@ -38,6 +38,7 @@ export type V1AccountLeaderboardResponseBody = {
38
38
  app?: V1LeaderboardAppInfo | null | undefined;
39
39
  badgeInfo?: V1LeaderboardBadgeInfo | null | undefined;
40
40
  location?: Array<V1LeaderboardLocationInfo> | null | undefined;
41
+ ownAccount?: V1AccountLeaderboardAccount | undefined;
41
42
  };
42
43
 
43
44
  /** @internal */
@@ -52,6 +53,7 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
52
53
  badgeInfo: z.nullable(V1LeaderboardBadgeInfo$inboundSchema).optional(),
53
54
  location: z.nullable(z.array(V1LeaderboardLocationInfo$inboundSchema))
54
55
  .optional(),
56
+ ownAccount: V1AccountLeaderboardAccount$inboundSchema.optional(),
55
57
  }).transform((v) => {
56
58
  return remap$(v, {
57
59
  "$schema": "dollarSchema",
@@ -65,6 +67,7 @@ export type V1AccountLeaderboardResponseBody$Outbound = {
65
67
  app?: V1LeaderboardAppInfo$Outbound | null | undefined;
66
68
  badgeInfo?: V1LeaderboardBadgeInfo$Outbound | null | undefined;
67
69
  location?: Array<V1LeaderboardLocationInfo$Outbound> | null | undefined;
70
+ ownAccount?: V1AccountLeaderboardAccount$Outbound | undefined;
68
71
  };
69
72
 
70
73
  /** @internal */
@@ -79,6 +82,7 @@ export const V1AccountLeaderboardResponseBody$outboundSchema: z.ZodType<
79
82
  badgeInfo: z.nullable(V1LeaderboardBadgeInfo$outboundSchema).optional(),
80
83
  location: z.nullable(z.array(V1LeaderboardLocationInfo$outboundSchema))
81
84
  .optional(),
85
+ ownAccount: V1AccountLeaderboardAccount$outboundSchema.optional(),
82
86
  }).transform((v) => {
83
87
  return remap$(v, {
84
88
  dollarSchema: "$schema",
@@ -22,10 +22,6 @@ export type V1AccountQueueRequestBody = {
22
22
  */
23
23
  force: boolean;
24
24
  id?: IDStruct | undefined;
25
- /**
26
- * The steam id of the account if it doesn't exist in the database
27
- */
28
- steamId?: string | null | undefined;
29
25
  vanity?: VanityStruct | undefined;
30
26
  };
31
27
 
@@ -37,7 +33,6 @@ export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
37
33
  > = z.object({
38
34
  force: z.boolean(),
39
35
  id: IDStruct$inboundSchema.optional(),
40
- steamId: z.nullable(z.string()).optional(),
41
36
  vanity: VanityStruct$inboundSchema.optional(),
42
37
  });
43
38
 
@@ -45,7 +40,6 @@ export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
45
40
  export type V1AccountQueueRequestBody$Outbound = {
46
41
  force: boolean;
47
42
  id?: IDStruct$Outbound | undefined;
48
- steamId?: string | null | undefined;
49
43
  vanity?: VanityStruct$Outbound | undefined;
50
44
  };
51
45
 
@@ -57,7 +51,6 @@ export const V1AccountQueueRequestBody$outboundSchema: z.ZodType<
57
51
  > = z.object({
58
52
  force: z.boolean(),
59
53
  id: IDStruct$outboundSchema.optional(),
60
- steamId: z.nullable(z.string()).optional(),
61
54
  vanity: VanityStruct$outboundSchema.optional(),
62
55
  });
63
56
 
@@ -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";
@@ -13,7 +13,6 @@ import { accountAccountV1GetFriends } from "../funcs/accountAccountV1GetFriends.
13
13
  import { accountAccountV1GetInfo } from "../funcs/accountAccountV1GetInfo.js";
14
14
  import { accountAccountV1GetLeaderboardHistory } from "../funcs/accountAccountV1GetLeaderboardHistory.js";
15
15
  import { accountAccountV1GetStaff } from "../funcs/accountAccountV1GetStaff.js";
16
- import { accountAccountV1LeaderboardPreview } from "../funcs/accountAccountV1LeaderboardPreview.js";
17
16
  import { accountAccountV1Queue } from "../funcs/accountAccountV1Queue.js";
18
17
  import { accountAccountV1SessionCreate } from "../funcs/accountAccountV1SessionCreate.js";
19
18
  import { accountAccountV1SessionDelete } from "../funcs/accountAccountV1SessionDelete.js";
@@ -188,20 +187,6 @@ export class Account extends ClientSDK {
188
187
  ));
189
188
  }
190
189
 
191
- /**
192
- * Preview what a given score would result in
193
- */
194
- async accountV1LeaderboardPreview(
195
- request: components.V1AccountLeaderboardPreviewRequestBody,
196
- options?: RequestOptions,
197
- ): Promise<operations.AccountV1LeaderboardPreviewResponse> {
198
- return unwrapAsync(accountAccountV1LeaderboardPreview(
199
- this,
200
- request,
201
- options,
202
- ));
203
- }
204
-
205
190
  /**
206
191
  * Gets all session data
207
192
  */
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { leaderboardAccountV1LeaderboardPreview } from "../funcs/leaderboardAccountV1LeaderboardPreview.js";
6
5
  import { leaderboardLeaderboardV1GetAccount } from "../funcs/leaderboardLeaderboardV1GetAccount.js";
7
6
  import { leaderboardLeaderboardV1GetBadges } from "../funcs/leaderboardLeaderboardV1GetBadges.js";
8
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -11,20 +10,6 @@ import * as operations from "../models/operations/index.js";
11
10
  import { unwrapAsync } from "../types/fp.js";
12
11
 
13
12
  export class Leaderboard extends ClientSDK {
14
- /**
15
- * Preview what a given score would result in
16
- */
17
- async accountV1LeaderboardPreview(
18
- request: components.V1AccountLeaderboardPreviewRequestBody,
19
- options?: RequestOptions,
20
- ): Promise<operations.AccountV1LeaderboardPreviewResponse> {
21
- return unwrapAsync(leaderboardAccountV1LeaderboardPreview(
22
- this,
23
- request,
24
- options,
25
- ));
26
- }
27
-
28
13
  /**
29
14
  * Get a leaderboard for accounts
30
15
  */
package/src/sdk/sdk.ts CHANGED
@@ -52,11 +52,6 @@ export class SteamSets extends ClientSDK {
52
52
  return (this._public ??= new Public(this._options));
53
53
  }
54
54
 
55
- private _leaderboard?: Leaderboard;
56
- get leaderboard(): Leaderboard {
57
- return (this._leaderboard ??= new Leaderboard(this._options));
58
- }
59
-
60
55
  private _app?: App;
61
56
  get app(): App {
62
57
  return (this._app ??= new App(this._options));
@@ -67,6 +62,11 @@ export class SteamSets extends ClientSDK {
67
62
  return (this._badge ??= new Badge(this._options));
68
63
  }
69
64
 
65
+ private _leaderboard?: Leaderboard;
66
+ get leaderboard(): Leaderboard {
67
+ return (this._leaderboard ??= new Leaderboard(this._options));
68
+ }
69
+
70
70
  private _liveness?: Liveness;
71
71
  get liveness(): Liveness {
72
72
  return (this._liveness ??= new Liveness(this._options));
@@ -1,14 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Preview what a given score would result in
12
- */
13
- export declare function accountAccountV1LeaderboardPreview(client: SteamSetsCore, request: components.V1AccountLeaderboardPreviewRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1LeaderboardPreviewResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=accountAccountV1LeaderboardPreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountAccountV1LeaderboardPreview.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1LeaderboardPreview.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.accountAccountV1LeaderboardPreview = accountAccountV1LeaderboardPreview;
30
- const encodings_js_1 = require("../lib/encodings.js");
31
- const M = __importStar(require("../lib/matchers.js"));
32
- const schemas_js_1 = require("../lib/schemas.js");
33
- const security_js_1 = require("../lib/security.js");
34
- const url_js_1 = require("../lib/url.js");
35
- const components = __importStar(require("../models/components/index.js"));
36
- const errors = __importStar(require("../models/errors/index.js"));
37
- const operations = __importStar(require("../models/operations/index.js"));
38
- /**
39
- * Preview what a given score would result in
40
- */
41
- async function accountAccountV1LeaderboardPreview(client, request, options) {
42
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1AccountLeaderboardPreviewRequestBody$outboundSchema.parse(value), "Input validation failed");
43
- if (!parsed.ok) {
44
- return parsed;
45
- }
46
- const payload = parsed.value;
47
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
48
- const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetLeaderboardPreview")();
49
- const headers = new Headers({
50
- "Content-Type": "application/json",
51
- Accept: "application/json",
52
- });
53
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
54
- const securityInput = secConfig == null ? {} : { token: secConfig };
55
- const context = {
56
- operationID: "account.v1.leaderboardPreview",
57
- oAuth2Scopes: [],
58
- securitySource: client._options.token,
59
- };
60
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
61
- const requestRes = client._createRequest(context, {
62
- security: requestSecurity,
63
- method: "POST",
64
- path: path,
65
- headers: headers,
66
- body: body,
67
- uaHeader: "x-speakeasy-user-agent",
68
- timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
69
- }, options);
70
- if (!requestRes.ok) {
71
- return requestRes;
72
- }
73
- const req = requestRes.value;
74
- const doResult = await client._do(req, {
75
- context,
76
- errorCodes: ["404", "422", "4XX", "500", "5XX"],
77
- retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
78
- || client._options.retryConfig,
79
- retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
80
- });
81
- if (!doResult.ok) {
82
- return doResult;
83
- }
84
- const response = doResult.value;
85
- const responseFields = {
86
- HttpMeta: { Response: response, Request: req },
87
- };
88
- const [result] = await M.match(M.json(200, operations.AccountV1LeaderboardPreviewResponse$inboundSchema, {
89
- key: "V1AccountLeaderboardPreviewResponseBody",
90
- }), M.jsonErr([404, 422, 500], errors.ErrorModel$inboundSchema, {
91
- ctype: "application/problem+json",
92
- }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
93
- if (!result.ok) {
94
- return result;
95
- }
96
- return result;
97
- }
98
- //# sourceMappingURL=accountAccountV1LeaderboardPreview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountAccountV1LeaderboardPreview.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1LeaderboardPreview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;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,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,iDAAiD,EAAE;QACxE,GAAG,EAAE,yCAAyC;KAC/C,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC1D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,14 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Preview what a given score would result in
12
- */
13
- export declare function leaderboardAccountV1LeaderboardPreview(client: SteamSetsCore, request: components.V1AccountLeaderboardPreviewRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1LeaderboardPreviewResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=leaderboardAccountV1LeaderboardPreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardAccountV1LeaderboardPreview.d.ts","sourceRoot":"","sources":["../src/funcs/leaderboardAccountV1LeaderboardPreview.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,sCAAsC,CAC1D,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}