@steamsets/client-ts 0.25.4 → 0.25.5

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 (69) hide show
  1. package/README.md +2 -0
  2. package/docs/sdks/leaderboard/README.md +77 -0
  3. package/funcs/accountCreateConnection.js +1 -1
  4. package/funcs/leaderboardLeaderboardPreviewAccountRank.d.ts +12 -0
  5. package/funcs/leaderboardLeaderboardPreviewAccountRank.d.ts.map +1 -0
  6. package/funcs/leaderboardLeaderboardPreviewAccountRank.js +117 -0
  7. package/funcs/leaderboardLeaderboardPreviewAccountRank.js.map +1 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/models/components/index.d.ts +3 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +3 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/leaderboardcity.d.ts +0 -5
  16. package/models/components/leaderboardcity.d.ts.map +1 -1
  17. package/models/components/leaderboardcity.js +0 -2
  18. package/models/components/leaderboardcity.js.map +1 -1
  19. package/models/components/leaderboardcountry.d.ts +0 -5
  20. package/models/components/leaderboardcountry.d.ts.map +1 -1
  21. package/models/components/leaderboardcountry.js +0 -2
  22. package/models/components/leaderboardcountry.js.map +1 -1
  23. package/models/components/leaderboardregion.d.ts +0 -5
  24. package/models/components/leaderboardregion.d.ts.map +1 -1
  25. package/models/components/leaderboardregion.js +0 -2
  26. package/models/components/leaderboardregion.js.map +1 -1
  27. package/models/components/leaderboardstate.d.ts +0 -5
  28. package/models/components/leaderboardstate.d.ts.map +1 -1
  29. package/models/components/leaderboardstate.js +0 -2
  30. package/models/components/leaderboardstate.js.map +1 -1
  31. package/models/components/previewaccount.d.ts +241 -0
  32. package/models/components/previewaccount.d.ts.map +1 -0
  33. package/models/components/previewaccount.js +157 -0
  34. package/models/components/previewaccount.js.map +1 -0
  35. package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts +113 -0
  36. package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts.map +1 -0
  37. package/models/components/v1leaderboardpreviewaccountrankrequestbody.js +98 -0
  38. package/models/components/v1leaderboardpreviewaccountrankrequestbody.js.map +1 -0
  39. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts +44 -0
  40. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts.map +1 -0
  41. package/models/components/v1leaderboardpreviewaccountrankresponsebody.js +83 -0
  42. package/models/components/v1leaderboardpreviewaccountrankresponsebody.js.map +1 -0
  43. package/models/operations/index.d.ts +1 -0
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +1 -0
  46. package/models/operations/index.js.map +1 -1
  47. package/models/operations/leaderboardpreviewaccountrank.d.ts +35 -0
  48. package/models/operations/leaderboardpreviewaccountrank.d.ts.map +1 -0
  49. package/models/operations/leaderboardpreviewaccountrank.js +75 -0
  50. package/models/operations/leaderboardpreviewaccountrank.js.map +1 -0
  51. package/package.json +1 -1
  52. package/sdk/leaderboard.d.ts +1 -0
  53. package/sdk/leaderboard.d.ts.map +1 -1
  54. package/sdk/leaderboard.js +4 -0
  55. package/sdk/leaderboard.js.map +1 -1
  56. package/src/funcs/accountCreateConnection.ts +1 -1
  57. package/src/funcs/leaderboardLeaderboardPreviewAccountRank.ts +183 -0
  58. package/src/lib/config.ts +3 -3
  59. package/src/models/components/index.ts +3 -0
  60. package/src/models/components/leaderboardcity.ts +0 -7
  61. package/src/models/components/leaderboardcountry.ts +0 -7
  62. package/src/models/components/leaderboardregion.ts +0 -7
  63. package/src/models/components/leaderboardstate.ts +0 -7
  64. package/src/models/components/previewaccount.ts +369 -0
  65. package/src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts +148 -0
  66. package/src/models/components/v1leaderboardpreviewaccountrankresponsebody.ts +122 -0
  67. package/src/models/operations/index.ts +1 -0
  68. package/src/models/operations/leaderboardpreviewaccountrank.ts +98 -0
  69. package/src/sdk/leaderboard.ts +12 -0
@@ -0,0 +1,241 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { LeaderboardCity, LeaderboardCity$Outbound } from "./leaderboardcity.js";
6
+ import { LeaderboardCountry, LeaderboardCountry$Outbound } from "./leaderboardcountry.js";
7
+ import { LeaderboardRegion, LeaderboardRegion$Outbound } from "./leaderboardregion.js";
8
+ import { LeaderboardState, LeaderboardState$Outbound } from "./leaderboardstate.js";
9
+ import { Role, Role$Outbound } from "./role.js";
10
+ /**
11
+ * The privacy of the account
12
+ */
13
+ export declare const PreviewAccountPrivacy: {
14
+ readonly Public: "public";
15
+ readonly Private: "private";
16
+ readonly FriendsOnly: "friends_only";
17
+ };
18
+ /**
19
+ * The privacy of the account
20
+ */
21
+ export type PreviewAccountPrivacy = ClosedEnum<typeof PreviewAccountPrivacy>;
22
+ export type PreviewAccount = {
23
+ /**
24
+ * The cost of an app
25
+ *
26
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
27
+ */
28
+ appCost: number;
29
+ /**
30
+ * The number of apps the account has
31
+ */
32
+ apps: number;
33
+ /**
34
+ * The avatar hash of the account
35
+ */
36
+ avatar: string;
37
+ /**
38
+ * The number of awards the account has
39
+ */
40
+ awardsGiven: number;
41
+ /**
42
+ * The number of awards the account has
43
+ */
44
+ awardsReceived: number;
45
+ /**
46
+ * The number of badges the account has
47
+ */
48
+ badges: number;
49
+ /**
50
+ * The number of bans
51
+ */
52
+ bans: number;
53
+ city?: LeaderboardCity | null | undefined;
54
+ country?: LeaderboardCountry | null | undefined;
55
+ /**
56
+ * The time the account was created
57
+ */
58
+ createdAt: Date;
59
+ /**
60
+ * The difference between the account's score and the user's score
61
+ */
62
+ differenceToUs: number;
63
+ /**
64
+ * The total of donations the account has
65
+ */
66
+ donated: number;
67
+ /**
68
+ * The economy ban of the account
69
+ */
70
+ economyBan: string;
71
+ /**
72
+ * The cost of a foil badge
73
+ *
74
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
75
+ */
76
+ foilBadgeCost: number;
77
+ /**
78
+ * The number of foil badges the account has
79
+ */
80
+ foilBadges: number;
81
+ /**
82
+ * The number of friends the account has
83
+ */
84
+ friends: number;
85
+ /**
86
+ * The number of game bans
87
+ */
88
+ gameBans: number;
89
+ /**
90
+ * The level of the account
91
+ */
92
+ level: number;
93
+ /**
94
+ * The name of the account
95
+ */
96
+ name: string;
97
+ /**
98
+ * The cost of a normal badge
99
+ *
100
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
101
+ */
102
+ normalBadgeCost: number;
103
+ /**
104
+ * The number of normal badges the account has
105
+ */
106
+ normalBadges: number;
107
+ /**
108
+ * The playtime of the account
109
+ */
110
+ playtime: number;
111
+ /**
112
+ * The number of points the account has
113
+ */
114
+ pointsGiven: number;
115
+ /**
116
+ * The number of points the account has
117
+ */
118
+ pointsReceived: number;
119
+ /**
120
+ * The privacy of the account
121
+ */
122
+ privacy: PreviewAccountPrivacy;
123
+ /**
124
+ * The rank of the account
125
+ */
126
+ rank: number;
127
+ region?: LeaderboardRegion | null | undefined;
128
+ /**
129
+ * The roles of the account
130
+ */
131
+ roles: Array<Role> | null;
132
+ /**
133
+ * The score of the account
134
+ */
135
+ score: number;
136
+ state?: LeaderboardState | null | undefined;
137
+ /**
138
+ * The steam id
139
+ */
140
+ steamId: string;
141
+ /**
142
+ * The steam sets score
143
+ */
144
+ steamSetsScore: number;
145
+ /**
146
+ * The vanity of the account
147
+ */
148
+ steamSetsVanity: string;
149
+ /**
150
+ * The vanity of the account
151
+ */
152
+ steamVanity: string;
153
+ /**
154
+ * The number of vac bans
155
+ */
156
+ vacBans: number;
157
+ /**
158
+ * The number of xp the account has
159
+ */
160
+ xp: number;
161
+ };
162
+ /** @internal */
163
+ export declare const PreviewAccountPrivacy$inboundSchema: z.ZodNativeEnum<typeof PreviewAccountPrivacy>;
164
+ /** @internal */
165
+ export declare const PreviewAccountPrivacy$outboundSchema: z.ZodNativeEnum<typeof PreviewAccountPrivacy>;
166
+ /**
167
+ * @internal
168
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
169
+ */
170
+ export declare namespace PreviewAccountPrivacy$ {
171
+ /** @deprecated use `PreviewAccountPrivacy$inboundSchema` instead. */
172
+ const inboundSchema: z.ZodNativeEnum<{
173
+ readonly Public: "public";
174
+ readonly Private: "private";
175
+ readonly FriendsOnly: "friends_only";
176
+ }>;
177
+ /** @deprecated use `PreviewAccountPrivacy$outboundSchema` instead. */
178
+ const outboundSchema: z.ZodNativeEnum<{
179
+ readonly Public: "public";
180
+ readonly Private: "private";
181
+ readonly FriendsOnly: "friends_only";
182
+ }>;
183
+ }
184
+ /** @internal */
185
+ export declare const PreviewAccount$inboundSchema: z.ZodType<PreviewAccount, z.ZodTypeDef, unknown>;
186
+ /** @internal */
187
+ export type PreviewAccount$Outbound = {
188
+ appCost: number;
189
+ apps: number;
190
+ avatar: string;
191
+ awardsGiven: number;
192
+ awardsReceived: number;
193
+ badges: number;
194
+ bans: number;
195
+ city?: LeaderboardCity$Outbound | null | undefined;
196
+ country?: LeaderboardCountry$Outbound | null | undefined;
197
+ createdAt: string;
198
+ differenceToUs: number;
199
+ donated: number;
200
+ economyBan: string;
201
+ foilBadgeCost: number;
202
+ foilBadges: number;
203
+ friends: number;
204
+ gameBans: number;
205
+ level: number;
206
+ name: string;
207
+ normalBadgeCost: number;
208
+ normalBadges: number;
209
+ playtime: number;
210
+ pointsGiven: number;
211
+ pointsReceived: number;
212
+ privacy: string;
213
+ rank: number;
214
+ region?: LeaderboardRegion$Outbound | null | undefined;
215
+ roles: Array<Role$Outbound> | null;
216
+ score: number;
217
+ state?: LeaderboardState$Outbound | null | undefined;
218
+ steamId: string;
219
+ steamSetsScore: number;
220
+ steamSetsVanity: string;
221
+ steamVanity: string;
222
+ vacBans: number;
223
+ xp: number;
224
+ };
225
+ /** @internal */
226
+ export declare const PreviewAccount$outboundSchema: z.ZodType<PreviewAccount$Outbound, z.ZodTypeDef, PreviewAccount>;
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ export declare namespace PreviewAccount$ {
232
+ /** @deprecated use `PreviewAccount$inboundSchema` instead. */
233
+ const inboundSchema: z.ZodType<PreviewAccount, z.ZodTypeDef, unknown>;
234
+ /** @deprecated use `PreviewAccount$outboundSchema` instead. */
235
+ const outboundSchema: z.ZodType<PreviewAccount$Outbound, z.ZodTypeDef, PreviewAccount>;
236
+ /** @deprecated use `PreviewAccount$Outbound` instead. */
237
+ type Outbound = PreviewAccount$Outbound;
238
+ }
239
+ export declare function previewAccountToJSON(previewAccount: PreviewAccount): string;
240
+ export declare function previewAccountFromJSON(jsonString: string): SafeParseResult<PreviewAccount, SDKValidationError>;
241
+ //# sourceMappingURL=previewaccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewaccount.d.ts","sourceRoot":"","sources":["../../src/models/components/previewaccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,IAAI,EAEJ,aAAa,EAEd,MAAM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ACZ,cAAc,CAsCd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -0,0 +1,157 @@
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.PreviewAccount$ = exports.PreviewAccount$outboundSchema = exports.PreviewAccount$inboundSchema = exports.PreviewAccountPrivacy$ = exports.PreviewAccountPrivacy$outboundSchema = exports.PreviewAccountPrivacy$inboundSchema = exports.PreviewAccountPrivacy = void 0;
30
+ exports.previewAccountToJSON = previewAccountToJSON;
31
+ exports.previewAccountFromJSON = previewAccountFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const schemas_js_1 = require("../../lib/schemas.js");
34
+ const leaderboardcity_js_1 = require("./leaderboardcity.js");
35
+ const leaderboardcountry_js_1 = require("./leaderboardcountry.js");
36
+ const leaderboardregion_js_1 = require("./leaderboardregion.js");
37
+ const leaderboardstate_js_1 = require("./leaderboardstate.js");
38
+ const role_js_1 = require("./role.js");
39
+ /**
40
+ * The privacy of the account
41
+ */
42
+ exports.PreviewAccountPrivacy = {
43
+ Public: "public",
44
+ Private: "private",
45
+ FriendsOnly: "friends_only",
46
+ };
47
+ /** @internal */
48
+ exports.PreviewAccountPrivacy$inboundSchema = z.nativeEnum(exports.PreviewAccountPrivacy);
49
+ /** @internal */
50
+ exports.PreviewAccountPrivacy$outboundSchema = exports.PreviewAccountPrivacy$inboundSchema;
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
+ var PreviewAccountPrivacy$;
56
+ (function (PreviewAccountPrivacy$) {
57
+ /** @deprecated use `PreviewAccountPrivacy$inboundSchema` instead. */
58
+ PreviewAccountPrivacy$.inboundSchema = exports.PreviewAccountPrivacy$inboundSchema;
59
+ /** @deprecated use `PreviewAccountPrivacy$outboundSchema` instead. */
60
+ PreviewAccountPrivacy$.outboundSchema = exports.PreviewAccountPrivacy$outboundSchema;
61
+ })(PreviewAccountPrivacy$ || (exports.PreviewAccountPrivacy$ = PreviewAccountPrivacy$ = {}));
62
+ /** @internal */
63
+ exports.PreviewAccount$inboundSchema = z.object({
64
+ appCost: z.number().int(),
65
+ apps: z.number().int(),
66
+ avatar: z.string(),
67
+ awardsGiven: z.number().int(),
68
+ awardsReceived: z.number().int(),
69
+ badges: z.number().int(),
70
+ bans: z.number().int(),
71
+ city: z.nullable(leaderboardcity_js_1.LeaderboardCity$inboundSchema).optional(),
72
+ country: z.nullable(leaderboardcountry_js_1.LeaderboardCountry$inboundSchema).optional(),
73
+ createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
74
+ differenceToUs: z.number().int(),
75
+ donated: z.number().int(),
76
+ economyBan: z.string(),
77
+ foilBadgeCost: z.number().int(),
78
+ foilBadges: z.number().int(),
79
+ friends: z.number().int(),
80
+ gameBans: z.number().int(),
81
+ level: z.number().int(),
82
+ name: z.string(),
83
+ normalBadgeCost: z.number().int(),
84
+ normalBadges: z.number().int(),
85
+ playtime: z.number().int(),
86
+ pointsGiven: z.number().int(),
87
+ pointsReceived: z.number().int(),
88
+ privacy: exports.PreviewAccountPrivacy$inboundSchema,
89
+ rank: z.number().int(),
90
+ region: z.nullable(leaderboardregion_js_1.LeaderboardRegion$inboundSchema).optional(),
91
+ roles: z.nullable(z.array(role_js_1.Role$inboundSchema)),
92
+ score: z.number().int(),
93
+ state: z.nullable(leaderboardstate_js_1.LeaderboardState$inboundSchema).optional(),
94
+ steamId: z.string(),
95
+ steamSetsScore: z.number().int(),
96
+ steamSetsVanity: z.string(),
97
+ steamVanity: z.string(),
98
+ vacBans: z.number().int(),
99
+ xp: z.number().int(),
100
+ });
101
+ /** @internal */
102
+ exports.PreviewAccount$outboundSchema = z.object({
103
+ appCost: z.number().int(),
104
+ apps: z.number().int(),
105
+ avatar: z.string(),
106
+ awardsGiven: z.number().int(),
107
+ awardsReceived: z.number().int(),
108
+ badges: z.number().int(),
109
+ bans: z.number().int(),
110
+ city: z.nullable(leaderboardcity_js_1.LeaderboardCity$outboundSchema).optional(),
111
+ country: z.nullable(leaderboardcountry_js_1.LeaderboardCountry$outboundSchema).optional(),
112
+ createdAt: z.date().transform(v => v.toISOString()),
113
+ differenceToUs: z.number().int(),
114
+ donated: z.number().int(),
115
+ economyBan: z.string(),
116
+ foilBadgeCost: z.number().int(),
117
+ foilBadges: z.number().int(),
118
+ friends: z.number().int(),
119
+ gameBans: z.number().int(),
120
+ level: z.number().int(),
121
+ name: z.string(),
122
+ normalBadgeCost: z.number().int(),
123
+ normalBadges: z.number().int(),
124
+ playtime: z.number().int(),
125
+ pointsGiven: z.number().int(),
126
+ pointsReceived: z.number().int(),
127
+ privacy: exports.PreviewAccountPrivacy$outboundSchema,
128
+ rank: z.number().int(),
129
+ region: z.nullable(leaderboardregion_js_1.LeaderboardRegion$outboundSchema).optional(),
130
+ roles: z.nullable(z.array(role_js_1.Role$outboundSchema)),
131
+ score: z.number().int(),
132
+ state: z.nullable(leaderboardstate_js_1.LeaderboardState$outboundSchema).optional(),
133
+ steamId: z.string(),
134
+ steamSetsScore: z.number().int(),
135
+ steamSetsVanity: z.string(),
136
+ steamVanity: z.string(),
137
+ vacBans: z.number().int(),
138
+ xp: z.number().int(),
139
+ });
140
+ /**
141
+ * @internal
142
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
143
+ */
144
+ var PreviewAccount$;
145
+ (function (PreviewAccount$) {
146
+ /** @deprecated use `PreviewAccount$inboundSchema` instead. */
147
+ PreviewAccount$.inboundSchema = exports.PreviewAccount$inboundSchema;
148
+ /** @deprecated use `PreviewAccount$outboundSchema` instead. */
149
+ PreviewAccount$.outboundSchema = exports.PreviewAccount$outboundSchema;
150
+ })(PreviewAccount$ || (exports.PreviewAccount$ = PreviewAccount$ = {}));
151
+ function previewAccountToJSON(previewAccount) {
152
+ return JSON.stringify(exports.PreviewAccount$outboundSchema.parse(previewAccount));
153
+ }
154
+ function previewAccountFromJSON(jsonString) {
155
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PreviewAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PreviewAccount' from JSON`);
156
+ }
157
+ //# sourceMappingURL=previewaccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewaccount.js","sourceRoot":"","sources":["../../src/models/components/previewaccount.ts"],"names":[],"mappings":";AAA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IAC7D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACzB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,113 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The leaderboard to get
7
+ */
8
+ export declare const V1LeaderboardPreviewAccountRankRequestBodyLeaderboard: {
9
+ readonly Apps: "apps";
10
+ readonly AwardsGiven: "awards_given";
11
+ readonly AwardsReceived: "awards_received";
12
+ readonly Bans: "bans";
13
+ readonly GameBans: "game_bans";
14
+ readonly VacBans: "vac_bans";
15
+ readonly Donations: "donations";
16
+ readonly FoilBadges: "foil_badges";
17
+ readonly NormalBadges: "normal_badges";
18
+ readonly Badges: "badges";
19
+ readonly Playtime: "playtime";
20
+ readonly PointsGiven: "points_given";
21
+ readonly PointsReceived: "points_received";
22
+ readonly SteamSets: "steam_sets";
23
+ readonly Xp: "xp";
24
+ };
25
+ /**
26
+ * The leaderboard to get
27
+ */
28
+ export type V1LeaderboardPreviewAccountRankRequestBodyLeaderboard = ClosedEnum<typeof V1LeaderboardPreviewAccountRankRequestBodyLeaderboard>;
29
+ export type V1LeaderboardPreviewAccountRankRequestBody = {
30
+ /**
31
+ * The leaderboard to get
32
+ */
33
+ leaderboard: V1LeaderboardPreviewAccountRankRequestBodyLeaderboard;
34
+ /**
35
+ * The steamID who wants the preview
36
+ */
37
+ steamID?: string | null | undefined;
38
+ /**
39
+ * What their leaderboard score would be
40
+ */
41
+ value?: number | undefined;
42
+ };
43
+ /** @internal */
44
+ export declare const V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema: z.ZodNativeEnum<typeof V1LeaderboardPreviewAccountRankRequestBodyLeaderboard>;
45
+ /** @internal */
46
+ export declare const V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema: z.ZodNativeEnum<typeof V1LeaderboardPreviewAccountRankRequestBodyLeaderboard>;
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export declare namespace V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ {
52
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema` instead. */
53
+ const inboundSchema: z.ZodNativeEnum<{
54
+ readonly Apps: "apps";
55
+ readonly AwardsGiven: "awards_given";
56
+ readonly AwardsReceived: "awards_received";
57
+ readonly Bans: "bans";
58
+ readonly GameBans: "game_bans";
59
+ readonly VacBans: "vac_bans";
60
+ readonly Donations: "donations";
61
+ readonly FoilBadges: "foil_badges";
62
+ readonly NormalBadges: "normal_badges";
63
+ readonly Badges: "badges";
64
+ readonly Playtime: "playtime";
65
+ readonly PointsGiven: "points_given";
66
+ readonly PointsReceived: "points_received";
67
+ readonly SteamSets: "steam_sets";
68
+ readonly Xp: "xp";
69
+ }>;
70
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema` instead. */
71
+ const outboundSchema: z.ZodNativeEnum<{
72
+ readonly Apps: "apps";
73
+ readonly AwardsGiven: "awards_given";
74
+ readonly AwardsReceived: "awards_received";
75
+ readonly Bans: "bans";
76
+ readonly GameBans: "game_bans";
77
+ readonly VacBans: "vac_bans";
78
+ readonly Donations: "donations";
79
+ readonly FoilBadges: "foil_badges";
80
+ readonly NormalBadges: "normal_badges";
81
+ readonly Badges: "badges";
82
+ readonly Playtime: "playtime";
83
+ readonly PointsGiven: "points_given";
84
+ readonly PointsReceived: "points_received";
85
+ readonly SteamSets: "steam_sets";
86
+ readonly Xp: "xp";
87
+ }>;
88
+ }
89
+ /** @internal */
90
+ export declare const V1LeaderboardPreviewAccountRankRequestBody$inboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody, z.ZodTypeDef, unknown>;
91
+ /** @internal */
92
+ export type V1LeaderboardPreviewAccountRankRequestBody$Outbound = {
93
+ leaderboard: string;
94
+ steamID?: string | null | undefined;
95
+ value?: number | undefined;
96
+ };
97
+ /** @internal */
98
+ export declare const V1LeaderboardPreviewAccountRankRequestBody$outboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody$Outbound, z.ZodTypeDef, V1LeaderboardPreviewAccountRankRequestBody>;
99
+ /**
100
+ * @internal
101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
+ */
103
+ export declare namespace V1LeaderboardPreviewAccountRankRequestBody$ {
104
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBody$inboundSchema` instead. */
105
+ const inboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody, z.ZodTypeDef, unknown>;
106
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBody$outboundSchema` instead. */
107
+ const outboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody$Outbound, z.ZodTypeDef, V1LeaderboardPreviewAccountRankRequestBody>;
108
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBody$Outbound` instead. */
109
+ type Outbound = V1LeaderboardPreviewAccountRankRequestBody$Outbound;
110
+ }
111
+ export declare function v1LeaderboardPreviewAccountRankRequestBodyToJSON(v1LeaderboardPreviewAccountRankRequestBody: V1LeaderboardPreviewAccountRankRequestBody): string;
112
+ export declare function v1LeaderboardPreviewAccountRankRequestBodyFromJSON(jsonString: string): SafeParseResult<V1LeaderboardPreviewAccountRankRequestBody, SDKValidationError>;
113
+ //# sourceMappingURL=v1leaderboardpreviewaccountrankrequestbody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1leaderboardpreviewaccountrankrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;CAgBxD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qDAAqD,GAAG,UAAU,CAC5E,OAAO,qDAAqD,CAC7D,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG;IACvD;;OAEG;IACH,WAAW,EAAE,qDAAqD,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,C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B,CACnB,CASA"}
@@ -0,0 +1,98 @@
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.V1LeaderboardPreviewAccountRankRequestBody$ = exports.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBody$inboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard = void 0;
30
+ exports.v1LeaderboardPreviewAccountRankRequestBodyToJSON = v1LeaderboardPreviewAccountRankRequestBodyToJSON;
31
+ exports.v1LeaderboardPreviewAccountRankRequestBodyFromJSON = v1LeaderboardPreviewAccountRankRequestBodyFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const schemas_js_1 = require("../../lib/schemas.js");
34
+ /**
35
+ * The leaderboard to get
36
+ */
37
+ exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard = {
38
+ Apps: "apps",
39
+ AwardsGiven: "awards_given",
40
+ AwardsReceived: "awards_received",
41
+ Bans: "bans",
42
+ GameBans: "game_bans",
43
+ VacBans: "vac_bans",
44
+ Donations: "donations",
45
+ FoilBadges: "foil_badges",
46
+ NormalBadges: "normal_badges",
47
+ Badges: "badges",
48
+ Playtime: "playtime",
49
+ PointsGiven: "points_given",
50
+ PointsReceived: "points_received",
51
+ SteamSets: "steam_sets",
52
+ Xp: "xp",
53
+ };
54
+ /** @internal */
55
+ exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema = z.nativeEnum(exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard);
56
+ /** @internal */
57
+ exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$;
63
+ (function (V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$) {
64
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema` instead. */
65
+ V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$.inboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema;
66
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema` instead. */
67
+ V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$.outboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema;
68
+ })(V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ || (exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ = V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ = {}));
69
+ /** @internal */
70
+ exports.V1LeaderboardPreviewAccountRankRequestBody$inboundSchema = z.object({
71
+ leaderboard: exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema,
72
+ steamID: z.nullable(z.string()).optional(),
73
+ value: z.number().int().optional(),
74
+ });
75
+ /** @internal */
76
+ exports.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema = z.object({
77
+ leaderboard: exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema,
78
+ steamID: z.nullable(z.string()).optional(),
79
+ value: z.number().int().optional(),
80
+ });
81
+ /**
82
+ * @internal
83
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
+ */
85
+ var V1LeaderboardPreviewAccountRankRequestBody$;
86
+ (function (V1LeaderboardPreviewAccountRankRequestBody$) {
87
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBody$inboundSchema` instead. */
88
+ V1LeaderboardPreviewAccountRankRequestBody$.inboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBody$inboundSchema;
89
+ /** @deprecated use `V1LeaderboardPreviewAccountRankRequestBody$outboundSchema` instead. */
90
+ V1LeaderboardPreviewAccountRankRequestBody$.outboundSchema = exports.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema;
91
+ })(V1LeaderboardPreviewAccountRankRequestBody$ || (exports.V1LeaderboardPreviewAccountRankRequestBody$ = V1LeaderboardPreviewAccountRankRequestBody$ = {}));
92
+ function v1LeaderboardPreviewAccountRankRequestBodyToJSON(v1LeaderboardPreviewAccountRankRequestBody) {
93
+ return JSON.stringify(exports.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema.parse(v1LeaderboardPreviewAccountRankRequestBody));
94
+ }
95
+ function v1LeaderboardPreviewAccountRankRequestBodyFromJSON(jsonString) {
96
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1LeaderboardPreviewAccountRankRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1LeaderboardPreviewAccountRankRequestBody' from JSON`);
97
+ }
98
+ //# sourceMappingURL=v1leaderboardpreviewaccountrankrequestbody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1leaderboardpreviewaccountrankrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHH,4GASC;AAED,gHAcC;AA/ID,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,qDAAqD,GAAG;IACnE,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,YAAY;IACvB,EAAE,EAAE,IAAI;CACA,CAAC;AAuBX,gBAAgB;AACH,QAAA,mEAAmE,GAG1E,CAAC,CAAC,UAAU,CAAC,6DAAqD,CAAC,CAAC;AAE1E,gBAAgB;AACH,QAAA,oEAAoE,GAG3E,2EAAmE,CAAC;AAE1E;;;GAGG;AACH,IAAiB,sDAAsD,CAOtE;AAPD,WAAiB,sDAAsD;IACrE,qGAAqG;IACxF,oEAAa,GACxB,2EAAmE,CAAC;IACtE,sGAAsG;IACzF,qEAAc,GACzB,4EAAoE,CAAC;AACzE,CAAC,EAPgB,sDAAsD,sEAAtD,sDAAsD,QAOtE;AAED,gBAAgB;AACH,QAAA,wDAAwD,GAEjE,CAAC,CAAC,MAAM,CAAC;IACP,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