rozod 1.0.0

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 (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +551 -0
  2. package/lib/endpoints/accountinformationv1.js +652 -0
  3. package/lib/endpoints/accountsettingsv1.d.ts +548 -0
  4. package/lib/endpoints/accountsettingsv1.js +712 -0
  5. package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
  6. package/lib/endpoints/assetdeliveryv1.js +268 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
  8. package/lib/endpoints/assetdeliveryv2.js +271 -0
  9. package/lib/endpoints/authv1.d.ts +1328 -0
  10. package/lib/endpoints/authv1.js +1168 -0
  11. package/lib/endpoints/authv2.d.ts +1239 -0
  12. package/lib/endpoints/authv2.js +1057 -0
  13. package/lib/endpoints/authv3.d.ts +35 -0
  14. package/lib/endpoints/authv3.js +41 -0
  15. package/lib/endpoints/avatarv1.d.ts +1841 -0
  16. package/lib/endpoints/avatarv1.js +726 -0
  17. package/lib/endpoints/avatarv2.d.ts +1077 -0
  18. package/lib/endpoints/avatarv2.js +316 -0
  19. package/lib/endpoints/avatarv3.d.ts +656 -0
  20. package/lib/endpoints/avatarv3.js +219 -0
  21. package/lib/endpoints/badgesv1.d.ts +641 -0
  22. package/lib/endpoints/badgesv1.js +345 -0
  23. package/lib/endpoints/catalogv1.d.ts +1715 -0
  24. package/lib/endpoints/catalogv1.js +792 -0
  25. package/lib/endpoints/chatv2.d.ts +2179 -0
  26. package/lib/endpoints/chatv2.js +721 -0
  27. package/lib/endpoints/developv1.d.ts +2097 -0
  28. package/lib/endpoints/developv1.js +1537 -0
  29. package/lib/endpoints/developv2.d.ts +619 -0
  30. package/lib/endpoints/developv2.js +316 -0
  31. package/lib/endpoints/economyv1.d.ts +20 -0
  32. package/lib/endpoints/economyv1.js +28 -0
  33. package/lib/endpoints/friendsv1.d.ts +1093 -0
  34. package/lib/endpoints/friendsv1.js +818 -0
  35. package/lib/endpoints/gamesv1.d.ts +2749 -0
  36. package/lib/endpoints/gamesv1.js +1294 -0
  37. package/lib/endpoints/gamesv2.d.ts +582 -0
  38. package/lib/endpoints/gamesv2.js +258 -0
  39. package/lib/endpoints/groupsv1.d.ts +5528 -0
  40. package/lib/endpoints/groupsv1.js +2434 -0
  41. package/lib/endpoints/groupsv2.d.ts +530 -0
  42. package/lib/endpoints/groupsv2.js +201 -0
  43. package/lib/endpoints/inventoryv1.d.ts +436 -0
  44. package/lib/endpoints/inventoryv1.js +434 -0
  45. package/lib/endpoints/inventoryv2.d.ts +256 -0
  46. package/lib/endpoints/inventoryv2.js +241 -0
  47. package/lib/endpoints/presencev1.d.ts +134 -0
  48. package/lib/endpoints/presencev1.js +93 -0
  49. package/lib/endpoints/privatemessagesv1.d.ts +620 -0
  50. package/lib/endpoints/privatemessagesv1.js +338 -0
  51. package/lib/endpoints/thumbnailsv1.d.ts +897 -0
  52. package/lib/endpoints/thumbnailsv1.js +560 -0
  53. package/lib/endpoints/tradesv1.d.ts +473 -0
  54. package/lib/endpoints/tradesv1.js +403 -0
  55. package/lib/endpoints/translationsv1.d.ts +80 -0
  56. package/lib/endpoints/translationsv1.js +122 -0
  57. package/lib/endpoints/usersv1.d.ts +391 -0
  58. package/lib/endpoints/usersv1.js +344 -0
  59. package/lib/index.d.ts +85 -0
  60. package/lib/index.js +293 -0
  61. package/package.json +39 -0
  62. package/readme.md +99 -0
@@ -0,0 +1,391 @@
1
+ import { z } from 'zod';
2
+ export declare const getV1displayNamesvalidate: {
3
+ method: "get";
4
+ path: string;
5
+ baseUrl: string;
6
+ requestFormat: "json";
7
+ parameters: {
8
+ displayName: z.ZodString;
9
+ birthdate: z.ZodString;
10
+ };
11
+ response: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
12
+ errors: {
13
+ status: number;
14
+ description: string;
15
+ schema: z.ZodVoid;
16
+ }[];
17
+ };
18
+ export declare const postV1usernamesusers: {
19
+ method: "post";
20
+ path: string;
21
+ baseUrl: string;
22
+ description: string;
23
+ requestFormat: "json";
24
+ parameters: {
25
+ body: z.ZodObject<{
26
+ usernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ excludeBannedUsers: z.ZodOptional<z.ZodBoolean>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ usernames?: string[] | undefined;
30
+ excludeBannedUsers?: boolean | undefined;
31
+ }, {
32
+ usernames?: string[] | undefined;
33
+ excludeBannedUsers?: boolean | undefined;
34
+ }>;
35
+ };
36
+ response: z.ZodObject<{
37
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ requestedUsername: z.ZodOptional<z.ZodString>;
39
+ hasVerifiedBadge: z.ZodOptional<z.ZodBoolean>;
40
+ id: z.ZodOptional<z.ZodNumber>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ displayName: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ requestedUsername?: string | undefined;
45
+ hasVerifiedBadge?: boolean | undefined;
46
+ id?: number | undefined;
47
+ name?: string | undefined;
48
+ displayName?: string | undefined;
49
+ }, {
50
+ requestedUsername?: string | undefined;
51
+ hasVerifiedBadge?: boolean | undefined;
52
+ id?: number | undefined;
53
+ name?: string | undefined;
54
+ displayName?: string | undefined;
55
+ }>, "many">>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ data?: {
58
+ requestedUsername?: string | undefined;
59
+ hasVerifiedBadge?: boolean | undefined;
60
+ id?: number | undefined;
61
+ name?: string | undefined;
62
+ displayName?: string | undefined;
63
+ }[] | undefined;
64
+ }, {
65
+ data?: {
66
+ requestedUsername?: string | undefined;
67
+ hasVerifiedBadge?: boolean | undefined;
68
+ id?: number | undefined;
69
+ name?: string | undefined;
70
+ displayName?: string | undefined;
71
+ }[] | undefined;
72
+ }>;
73
+ errors: {
74
+ status: number;
75
+ description: string;
76
+ schema: z.ZodVoid;
77
+ }[];
78
+ };
79
+ export declare const postV1users: {
80
+ method: "post";
81
+ path: string;
82
+ baseUrl: string;
83
+ description: string;
84
+ requestFormat: "json";
85
+ parameters: {
86
+ body: z.ZodObject<{
87
+ userIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
88
+ excludeBannedUsers: z.ZodOptional<z.ZodBoolean>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ userIds?: number[] | undefined;
91
+ excludeBannedUsers?: boolean | undefined;
92
+ }, {
93
+ userIds?: number[] | undefined;
94
+ excludeBannedUsers?: boolean | undefined;
95
+ }>;
96
+ };
97
+ response: z.ZodObject<{
98
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
+ hasVerifiedBadge: z.ZodOptional<z.ZodBoolean>;
100
+ id: z.ZodOptional<z.ZodNumber>;
101
+ name: z.ZodOptional<z.ZodString>;
102
+ displayName: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ hasVerifiedBadge?: boolean | undefined;
105
+ id?: number | undefined;
106
+ name?: string | undefined;
107
+ displayName?: string | undefined;
108
+ }, {
109
+ hasVerifiedBadge?: boolean | undefined;
110
+ id?: number | undefined;
111
+ name?: string | undefined;
112
+ displayName?: string | undefined;
113
+ }>, "many">>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ data?: {
116
+ hasVerifiedBadge?: boolean | undefined;
117
+ id?: number | undefined;
118
+ name?: string | undefined;
119
+ displayName?: string | undefined;
120
+ }[] | undefined;
121
+ }, {
122
+ data?: {
123
+ hasVerifiedBadge?: boolean | undefined;
124
+ id?: number | undefined;
125
+ name?: string | undefined;
126
+ displayName?: string | undefined;
127
+ }[] | undefined;
128
+ }>;
129
+ errors: {
130
+ status: number;
131
+ description: string;
132
+ schema: z.ZodVoid;
133
+ }[];
134
+ };
135
+ export declare const getV1usersUserId: {
136
+ method: "get";
137
+ path: string;
138
+ baseUrl: string;
139
+ requestFormat: "json";
140
+ parameters: {
141
+ userId: z.ZodNumber;
142
+ };
143
+ response: z.ZodObject<{
144
+ description: z.ZodOptional<z.ZodString>;
145
+ created: z.ZodOptional<z.ZodString>;
146
+ isBanned: z.ZodOptional<z.ZodBoolean>;
147
+ externalAppDisplayName: z.ZodOptional<z.ZodString>;
148
+ hasVerifiedBadge: z.ZodOptional<z.ZodBoolean>;
149
+ id: z.ZodOptional<z.ZodNumber>;
150
+ name: z.ZodOptional<z.ZodString>;
151
+ displayName: z.ZodOptional<z.ZodString>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ description?: string | undefined;
154
+ created?: string | undefined;
155
+ isBanned?: boolean | undefined;
156
+ externalAppDisplayName?: string | undefined;
157
+ hasVerifiedBadge?: boolean | undefined;
158
+ id?: number | undefined;
159
+ name?: string | undefined;
160
+ displayName?: string | undefined;
161
+ }, {
162
+ description?: string | undefined;
163
+ created?: string | undefined;
164
+ isBanned?: boolean | undefined;
165
+ externalAppDisplayName?: string | undefined;
166
+ hasVerifiedBadge?: boolean | undefined;
167
+ id?: number | undefined;
168
+ name?: string | undefined;
169
+ displayName?: string | undefined;
170
+ }>;
171
+ errors: {
172
+ status: number;
173
+ description: string;
174
+ schema: z.ZodVoid;
175
+ }[];
176
+ };
177
+ export declare const patchV1usersUserIddisplayNames: {
178
+ method: "patch";
179
+ path: string;
180
+ baseUrl: string;
181
+ requestFormat: "json";
182
+ parameters: {
183
+ body: z.ZodObject<{
184
+ newDisplayName: z.ZodOptional<z.ZodString>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ newDisplayName?: string | undefined;
187
+ }, {
188
+ newDisplayName?: string | undefined;
189
+ }>;
190
+ userId: z.ZodNumber;
191
+ };
192
+ response: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
193
+ errors: {
194
+ status: number;
195
+ description: string;
196
+ schema: z.ZodVoid;
197
+ }[];
198
+ };
199
+ export declare const getV1usersUserIddisplayNamesvalidate: {
200
+ method: "get";
201
+ path: string;
202
+ baseUrl: string;
203
+ requestFormat: "json";
204
+ parameters: {
205
+ userId: z.ZodNumber;
206
+ displayName: z.ZodString;
207
+ };
208
+ response: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
209
+ errors: {
210
+ status: number;
211
+ description: string;
212
+ schema: z.ZodVoid;
213
+ }[];
214
+ };
215
+ export declare const getV1usersUserIdusernameHistory: {
216
+ method: "get";
217
+ path: string;
218
+ baseUrl: string;
219
+ requestFormat: "json";
220
+ parameters: {
221
+ userId: z.ZodNumber;
222
+ limit: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>>>;
223
+ cursor: z.ZodOptional<z.ZodString>;
224
+ sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Asc", "Desc"]>>>;
225
+ };
226
+ response: z.ZodObject<{
227
+ previousPageCursor: z.ZodOptional<z.ZodString>;
228
+ nextPageCursor: z.ZodOptional<z.ZodString>;
229
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
+ name: z.ZodOptional<z.ZodString>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ name?: string | undefined;
233
+ }, {
234
+ name?: string | undefined;
235
+ }>, "many">>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ previousPageCursor?: string | undefined;
238
+ nextPageCursor?: string | undefined;
239
+ data?: {
240
+ name?: string | undefined;
241
+ }[] | undefined;
242
+ }, {
243
+ previousPageCursor?: string | undefined;
244
+ nextPageCursor?: string | undefined;
245
+ data?: {
246
+ name?: string | undefined;
247
+ }[] | undefined;
248
+ }>;
249
+ errors: {
250
+ status: number;
251
+ description: string;
252
+ schema: z.ZodVoid;
253
+ }[];
254
+ };
255
+ export declare const getV1usersauthenticated: {
256
+ method: "get";
257
+ path: string;
258
+ baseUrl: string;
259
+ requestFormat: "json";
260
+ response: z.ZodObject<{
261
+ id: z.ZodOptional<z.ZodNumber>;
262
+ name: z.ZodOptional<z.ZodString>;
263
+ displayName: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ id?: number | undefined;
266
+ name?: string | undefined;
267
+ displayName?: string | undefined;
268
+ }, {
269
+ id?: number | undefined;
270
+ name?: string | undefined;
271
+ displayName?: string | undefined;
272
+ }>;
273
+ errors: {
274
+ status: number;
275
+ description: string;
276
+ schema: z.ZodVoid;
277
+ }[];
278
+ };
279
+ export declare const getV1usersauthenticatedageBracket: {
280
+ method: "get";
281
+ path: string;
282
+ baseUrl: string;
283
+ requestFormat: "json";
284
+ response: z.ZodObject<{
285
+ ageBracket: z.ZodOptional<z.ZodNumber>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ ageBracket?: number | undefined;
288
+ }, {
289
+ ageBracket?: number | undefined;
290
+ }>;
291
+ errors: {
292
+ status: number;
293
+ description: string;
294
+ schema: z.ZodVoid;
295
+ }[];
296
+ };
297
+ export declare const getV1usersauthenticatedcountryCode: {
298
+ method: "get";
299
+ path: string;
300
+ baseUrl: string;
301
+ requestFormat: "json";
302
+ response: z.ZodObject<{
303
+ countryCode: z.ZodOptional<z.ZodString>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ countryCode?: string | undefined;
306
+ }, {
307
+ countryCode?: string | undefined;
308
+ }>;
309
+ errors: {
310
+ status: number;
311
+ description: string;
312
+ schema: z.ZodVoid;
313
+ }[];
314
+ };
315
+ export declare const getV1usersauthenticatedroles: {
316
+ method: "get";
317
+ path: string;
318
+ baseUrl: string;
319
+ requestFormat: "json";
320
+ response: z.ZodObject<{
321
+ roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ roles?: string[] | undefined;
324
+ }, {
325
+ roles?: string[] | undefined;
326
+ }>;
327
+ errors: {
328
+ status: number;
329
+ description: string;
330
+ schema: z.ZodVoid;
331
+ }[];
332
+ };
333
+ export declare const getV1userssearch: {
334
+ method: "get";
335
+ path: string;
336
+ baseUrl: string;
337
+ requestFormat: "json";
338
+ parameters: {
339
+ keyword: z.ZodString;
340
+ limit: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>>>;
341
+ cursor: z.ZodOptional<z.ZodString>;
342
+ };
343
+ response: z.ZodObject<{
344
+ previousPageCursor: z.ZodOptional<z.ZodString>;
345
+ nextPageCursor: z.ZodOptional<z.ZodString>;
346
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
347
+ previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
348
+ hasVerifiedBadge: z.ZodOptional<z.ZodBoolean>;
349
+ id: z.ZodOptional<z.ZodNumber>;
350
+ name: z.ZodOptional<z.ZodString>;
351
+ displayName: z.ZodOptional<z.ZodString>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ previousUsernames?: string[] | undefined;
354
+ hasVerifiedBadge?: boolean | undefined;
355
+ id?: number | undefined;
356
+ name?: string | undefined;
357
+ displayName?: string | undefined;
358
+ }, {
359
+ previousUsernames?: string[] | undefined;
360
+ hasVerifiedBadge?: boolean | undefined;
361
+ id?: number | undefined;
362
+ name?: string | undefined;
363
+ displayName?: string | undefined;
364
+ }>, "many">>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ previousPageCursor?: string | undefined;
367
+ nextPageCursor?: string | undefined;
368
+ data?: {
369
+ previousUsernames?: string[] | undefined;
370
+ hasVerifiedBadge?: boolean | undefined;
371
+ id?: number | undefined;
372
+ name?: string | undefined;
373
+ displayName?: string | undefined;
374
+ }[] | undefined;
375
+ }, {
376
+ previousPageCursor?: string | undefined;
377
+ nextPageCursor?: string | undefined;
378
+ data?: {
379
+ previousUsernames?: string[] | undefined;
380
+ hasVerifiedBadge?: boolean | undefined;
381
+ id?: number | undefined;
382
+ name?: string | undefined;
383
+ displayName?: string | undefined;
384
+ }[] | undefined;
385
+ }>;
386
+ errors: {
387
+ status: number;
388
+ description: string;
389
+ schema: z.ZodVoid;
390
+ }[];
391
+ };