rozod 6.8.0 → 6.9.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.
- package/lib/endpoints/accountinformationv1.d.ts +92 -95
- package/lib/endpoints/accountsettingsv1.d.ts +88 -110
- package/lib/endpoints/adconfigurationv2.d.ts +108 -215
- package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
- package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
- package/lib/endpoints/authv1.d.ts +479 -521
- package/lib/endpoints/authv2.d.ts +209 -221
- package/lib/endpoints/authv3.d.ts +32 -35
- package/lib/endpoints/avatarv1.d.ts +112 -117
- package/lib/endpoints/avatarv2.d.ts +71 -76
- package/lib/endpoints/avatarv3.d.ts +27 -33
- package/lib/endpoints/badgesv1.d.ts +92 -99
- package/lib/endpoints/catalogv1.d.ts +207 -233
- package/lib/endpoints/catalogv2.d.ts +81 -119
- package/lib/endpoints/clientsettingsv1.d.ts +33 -35
- package/lib/endpoints/clientsettingsv2.d.ts +62 -68
- package/lib/endpoints/contactsv1.d.ts +18 -20
- package/lib/endpoints/developv1.d.ts +230 -293
- package/lib/endpoints/developv2.d.ts +84 -137
- package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
- package/lib/endpoints/economyv1.d.ts +6 -6
- package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
- package/lib/endpoints/followingsv1.d.ts +33 -34
- package/lib/endpoints/followingsv2.d.ts +9 -9
- package/lib/endpoints/friendsv1.d.ts +200 -237
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamesv1.d.ts +181 -143
- package/lib/endpoints/gamesv2.d.ts +161 -169
- package/lib/endpoints/groupsv1.d.ts +938 -988
- package/lib/endpoints/groupsv2.d.ts +259 -278
- package/lib/endpoints/inventoryv1.d.ts +91 -122
- package/lib/endpoints/inventoryv2.d.ts +163 -180
- package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
- package/lib/endpoints/localev1.d.ts +47 -48
- package/lib/endpoints/localizationtablesv1.d.ts +315 -353
- package/lib/endpoints/matchmakingv1.d.ts +184 -190
- package/lib/endpoints/notificationsv2.d.ts +144 -158
- package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
- package/lib/endpoints/presencev1.d.ts +7 -12
- package/lib/endpoints/privatemessagesv1.d.ts +56 -64
- package/lib/endpoints/publishv1.d.ts +32 -32
- package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
- package/lib/endpoints/thumbnailsv1.d.ts +325 -326
- package/lib/endpoints/thumbnailsv1.js +24 -24
- package/lib/endpoints/tradesv1.d.ts +92 -104
- package/lib/endpoints/tradesv2.d.ts +81 -84
- package/lib/endpoints/translationrolesv1.d.ts +46 -51
- package/lib/endpoints/twostepverificationv1.d.ts +233 -237
- package/lib/endpoints/usersv1.d.ts +110 -114
- package/lib/index.d.ts +56 -1
- package/lib/index.js +159 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_Web_Responses_Badges_BadgeAwardStatisticsResponse = z.object({
|
|
5
5
|
pastDayAwardedCount: z.number().int(),
|
|
@@ -36,26 +36,24 @@ const Roblox_Badges_Api_BadgeMetadataResponse = z.object({
|
|
|
36
36
|
maxBadgeNameLength: z.number().int(),
|
|
37
37
|
maxBadgeDescriptionLength: z.number().int(),
|
|
38
38
|
});
|
|
39
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_BadgeResponse_ =
|
|
40
|
-
z.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
39
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_BadgeResponse_ = z.object({
|
|
40
|
+
previousPageCursor: z.string(),
|
|
41
|
+
nextPageCursor: z.string(),
|
|
42
|
+
data: z.array(Roblox_Badges_Api_BadgeResponse),
|
|
43
|
+
});
|
|
45
44
|
const universeId_badges_body = z.object({
|
|
46
45
|
name: z.string(),
|
|
47
46
|
description: z.string(),
|
|
48
|
-
paymentSourceType: z.enum([
|
|
47
|
+
paymentSourceType: z.enum(['User', 'Group']),
|
|
49
48
|
files: z.instanceof(File),
|
|
50
49
|
expectedCost: z.number().int(),
|
|
51
50
|
isActive: z.boolean(),
|
|
52
51
|
});
|
|
53
|
-
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_ =
|
|
54
|
-
z.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
52
|
+
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_ = z.object({
|
|
53
|
+
id: z.number().int(),
|
|
54
|
+
type: z.literal('Place'),
|
|
55
|
+
name: z.string(),
|
|
56
|
+
});
|
|
59
57
|
const Roblox_Web_Responses_Badges_BadgeResponseV2 = z.object({
|
|
60
58
|
id: z.number().int(),
|
|
61
59
|
name: z.string(),
|
|
@@ -65,8 +63,7 @@ const Roblox_Web_Responses_Badges_BadgeResponseV2 = z.object({
|
|
|
65
63
|
enabled: z.boolean(),
|
|
66
64
|
iconImageId: z.number().int(),
|
|
67
65
|
displayIconImageId: z.number().int(),
|
|
68
|
-
awarder:
|
|
69
|
-
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_,
|
|
66
|
+
awarder: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_,
|
|
70
67
|
statistics: Roblox_Web_Responses_Badges_BadgeAwardStatisticsResponse,
|
|
71
68
|
created: z.string().datetime({ offset: true }),
|
|
72
69
|
updated: z.string().datetime({ offset: true }),
|
|
@@ -86,24 +83,23 @@ const Roblox_Badges_Api_GetBadgesByUserResponse = z.object({
|
|
|
86
83
|
enabled: z.boolean(),
|
|
87
84
|
iconImageId: z.number().int(),
|
|
88
85
|
displayIconImageId: z.number().int(),
|
|
89
|
-
awarder:
|
|
90
|
-
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_,
|
|
86
|
+
awarder: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_,
|
|
91
87
|
statistics: Roblox_Web_Responses_Badges_BadgeAwardStatisticsResponse,
|
|
92
88
|
created: z.string().datetime({ offset: true }),
|
|
93
89
|
updated: z.string().datetime({ offset: true }),
|
|
94
90
|
});
|
|
95
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_GetBadgesByUserResponse_ =
|
|
96
|
-
z.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
91
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_GetBadgesByUserResponse_ = z.object({
|
|
92
|
+
previousPageCursor: z.string(),
|
|
93
|
+
nextPageCursor: z.string(),
|
|
94
|
+
data: z.array(Roblox_Badges_Api_GetBadgesByUserResponse),
|
|
95
|
+
});
|
|
101
96
|
const Roblox_Badges_Api_BadgeAwardResponse = z.object({
|
|
102
97
|
badgeId: z.number().int(),
|
|
103
98
|
awardedDate: z.string().datetime({ offset: true }),
|
|
104
99
|
});
|
|
105
|
-
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Badges_Api_BadgeAwardResponse_ =
|
|
106
|
-
|
|
100
|
+
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Badges_Api_BadgeAwardResponse_ = z.object({
|
|
101
|
+
data: z.array(Roblox_Badges_Api_BadgeAwardResponse),
|
|
102
|
+
});
|
|
107
103
|
const badgeId_icon_body = z.object({ Files: z.instanceof(File) });
|
|
108
104
|
const Roblox_Badges_Api_IconUploadResponse = z.object({
|
|
109
105
|
targetId: z.number().int(),
|
|
@@ -115,13 +111,13 @@ const Roblox_Badges_Api_IconUploadResponse = z.object({
|
|
|
115
111
|
* @param badgeId The badge Id.
|
|
116
112
|
*/
|
|
117
113
|
export const getBadgesBadgeid = endpoint({
|
|
118
|
-
method:
|
|
119
|
-
path:
|
|
120
|
-
baseUrl:
|
|
121
|
-
requestFormat:
|
|
114
|
+
method: 'GET',
|
|
115
|
+
path: '/v1/badges/:badgeId',
|
|
116
|
+
baseUrl: 'https://badges.roblox.com',
|
|
117
|
+
requestFormat: 'json',
|
|
122
118
|
serializationMethod: {
|
|
123
119
|
badgeId: {
|
|
124
|
-
style:
|
|
120
|
+
style: 'simple',
|
|
125
121
|
},
|
|
126
122
|
},
|
|
127
123
|
parameters: {
|
|
@@ -143,14 +139,14 @@ export const getBadgesBadgeid = endpoint({
|
|
|
143
139
|
* @param badgeId The badge Id.
|
|
144
140
|
*/
|
|
145
141
|
export const patchBadgesBadgeid = endpoint({
|
|
146
|
-
method:
|
|
147
|
-
path:
|
|
148
|
-
baseUrl:
|
|
149
|
-
requestFormat:
|
|
142
|
+
method: 'PATCH',
|
|
143
|
+
path: '/v1/badges/:badgeId',
|
|
144
|
+
baseUrl: 'https://badges.roblox.com',
|
|
145
|
+
requestFormat: 'json',
|
|
150
146
|
serializationMethod: {
|
|
151
147
|
body: {},
|
|
152
148
|
badgeId: {
|
|
153
|
-
style:
|
|
149
|
+
style: 'simple',
|
|
154
150
|
},
|
|
155
151
|
},
|
|
156
152
|
parameters: {
|
|
@@ -188,14 +184,14 @@ export const patchBadgesBadgeid = endpoint({
|
|
|
188
184
|
* @param badgeId The badge Id.
|
|
189
185
|
*/
|
|
190
186
|
export const postBadgesBadgeidIcon = endpoint({
|
|
191
|
-
method:
|
|
192
|
-
path:
|
|
193
|
-
baseUrl:
|
|
194
|
-
requestFormat:
|
|
187
|
+
method: 'POST',
|
|
188
|
+
path: '/v1/badges/:badgeId/icon',
|
|
189
|
+
baseUrl: 'https://badges.roblox.com',
|
|
190
|
+
requestFormat: 'form-data',
|
|
195
191
|
serializationMethod: {
|
|
196
192
|
body: {},
|
|
197
193
|
badgeId: {
|
|
198
|
-
style:
|
|
194
|
+
style: 'simple',
|
|
199
195
|
},
|
|
200
196
|
},
|
|
201
197
|
parameters: {
|
|
@@ -233,10 +229,10 @@ export const postBadgesBadgeidIcon = endpoint({
|
|
|
233
229
|
* @summary Gets metadata about the badges system.
|
|
234
230
|
*/
|
|
235
231
|
export const getBadgesMetadata = endpoint({
|
|
236
|
-
method:
|
|
237
|
-
path:
|
|
238
|
-
baseUrl:
|
|
239
|
-
requestFormat:
|
|
232
|
+
method: 'GET',
|
|
233
|
+
path: '/v1/badges/metadata',
|
|
234
|
+
baseUrl: 'https://badges.roblox.com',
|
|
235
|
+
requestFormat: 'json',
|
|
240
236
|
response: Roblox_Badges_Api_BadgeMetadataResponse,
|
|
241
237
|
errors: [],
|
|
242
238
|
});
|
|
@@ -250,43 +246,42 @@ export const getBadgesMetadata = endpoint({
|
|
|
250
246
|
* @param sortOrder The order the results are sorted in.
|
|
251
247
|
*/
|
|
252
248
|
export const getUniversesUniverseidBadges = endpoint({
|
|
253
|
-
method:
|
|
254
|
-
path:
|
|
255
|
-
baseUrl:
|
|
256
|
-
requestFormat:
|
|
249
|
+
method: 'GET',
|
|
250
|
+
path: '/v1/universes/:universeId/badges',
|
|
251
|
+
baseUrl: 'https://badges.roblox.com',
|
|
252
|
+
requestFormat: 'json',
|
|
257
253
|
serializationMethod: {
|
|
258
254
|
universeId: {
|
|
259
|
-
style:
|
|
255
|
+
style: 'simple',
|
|
260
256
|
},
|
|
261
257
|
sortBy: {
|
|
262
|
-
style:
|
|
258
|
+
style: 'form',
|
|
263
259
|
explode: true,
|
|
264
260
|
},
|
|
265
261
|
limit: {
|
|
266
|
-
style:
|
|
262
|
+
style: 'form',
|
|
267
263
|
explode: true,
|
|
268
264
|
},
|
|
269
265
|
cursor: {
|
|
270
|
-
style:
|
|
266
|
+
style: 'form',
|
|
271
267
|
explode: true,
|
|
272
268
|
},
|
|
273
269
|
sortOrder: {
|
|
274
|
-
style:
|
|
270
|
+
style: 'form',
|
|
275
271
|
explode: true,
|
|
276
272
|
},
|
|
277
273
|
},
|
|
278
274
|
parameters: {
|
|
279
275
|
universeId: z.number().int(),
|
|
280
|
-
sortBy: z.enum([
|
|
276
|
+
sortBy: z.enum(['Rank', 'DateCreated']).optional(),
|
|
281
277
|
limit: z
|
|
282
278
|
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
283
279
|
.optional()
|
|
284
280
|
.default(10),
|
|
285
281
|
cursor: z.string().optional(),
|
|
286
|
-
sortOrder: z.enum([
|
|
282
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
287
283
|
},
|
|
288
|
-
response:
|
|
289
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_BadgeResponse_,
|
|
284
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_BadgeResponse_,
|
|
290
285
|
errors: [
|
|
291
286
|
{
|
|
292
287
|
status: 400,
|
|
@@ -305,14 +300,14 @@ export const getUniversesUniverseidBadges = endpoint({
|
|
|
305
300
|
* @param universeId The ID of the universe to create the badge for.
|
|
306
301
|
*/
|
|
307
302
|
export const postUniversesUniverseidBadges = endpoint({
|
|
308
|
-
method:
|
|
309
|
-
path:
|
|
310
|
-
baseUrl:
|
|
311
|
-
requestFormat:
|
|
303
|
+
method: 'POST',
|
|
304
|
+
path: '/v1/universes/:universeId/badges',
|
|
305
|
+
baseUrl: 'https://badges.roblox.com',
|
|
306
|
+
requestFormat: 'form-data',
|
|
312
307
|
serializationMethod: {
|
|
313
308
|
body: {},
|
|
314
309
|
universeId: {
|
|
315
|
-
style:
|
|
310
|
+
style: 'simple',
|
|
316
311
|
},
|
|
317
312
|
},
|
|
318
313
|
parameters: {
|
|
@@ -356,13 +351,13 @@ export const postUniversesUniverseidBadges = endpoint({
|
|
|
356
351
|
* @param universeId The universe Id.
|
|
357
352
|
*/
|
|
358
353
|
export const getUniversesUniverseidFreeBadgesQuota = endpoint({
|
|
359
|
-
method:
|
|
360
|
-
path:
|
|
361
|
-
baseUrl:
|
|
362
|
-
requestFormat:
|
|
354
|
+
method: 'GET',
|
|
355
|
+
path: '/v1/universes/:universeId/free-badges-quota',
|
|
356
|
+
baseUrl: 'https://badges.roblox.com',
|
|
357
|
+
requestFormat: 'json',
|
|
363
358
|
serializationMethod: {
|
|
364
359
|
universeId: {
|
|
365
|
-
style:
|
|
360
|
+
style: 'simple',
|
|
366
361
|
},
|
|
367
362
|
},
|
|
368
363
|
parameters: {
|
|
@@ -382,13 +377,13 @@ export const getUniversesUniverseidFreeBadgesQuota = endpoint({
|
|
|
382
377
|
* @param badgeId The badge Id.
|
|
383
378
|
*/
|
|
384
379
|
export const deleteUserBadgesBadgeid = endpoint({
|
|
385
|
-
method:
|
|
386
|
-
path:
|
|
387
|
-
baseUrl:
|
|
388
|
-
requestFormat:
|
|
380
|
+
method: 'DELETE',
|
|
381
|
+
path: '/v1/user/badges/:badgeId',
|
|
382
|
+
baseUrl: 'https://badges.roblox.com',
|
|
383
|
+
requestFormat: 'json',
|
|
389
384
|
serializationMethod: {
|
|
390
385
|
badgeId: {
|
|
391
|
-
style:
|
|
386
|
+
style: 'simple',
|
|
392
387
|
},
|
|
393
388
|
},
|
|
394
389
|
parameters: {
|
|
@@ -419,24 +414,24 @@ export const deleteUserBadgesBadgeid = endpoint({
|
|
|
419
414
|
* @param sortOrder The order the results are sorted in.
|
|
420
415
|
*/
|
|
421
416
|
export const getUsersUseridBadges = endpoint({
|
|
422
|
-
method:
|
|
423
|
-
path:
|
|
424
|
-
baseUrl:
|
|
425
|
-
requestFormat:
|
|
417
|
+
method: 'GET',
|
|
418
|
+
path: '/v1/users/:userId/badges',
|
|
419
|
+
baseUrl: 'https://badges.roblox.com',
|
|
420
|
+
requestFormat: 'json',
|
|
426
421
|
serializationMethod: {
|
|
427
422
|
userId: {
|
|
428
|
-
style:
|
|
423
|
+
style: 'simple',
|
|
429
424
|
},
|
|
430
425
|
limit: {
|
|
431
|
-
style:
|
|
426
|
+
style: 'form',
|
|
432
427
|
explode: true,
|
|
433
428
|
},
|
|
434
429
|
cursor: {
|
|
435
|
-
style:
|
|
430
|
+
style: 'form',
|
|
436
431
|
explode: true,
|
|
437
432
|
},
|
|
438
433
|
sortOrder: {
|
|
439
|
-
style:
|
|
434
|
+
style: 'form',
|
|
440
435
|
explode: true,
|
|
441
436
|
},
|
|
442
437
|
},
|
|
@@ -447,10 +442,9 @@ export const getUsersUseridBadges = endpoint({
|
|
|
447
442
|
.optional()
|
|
448
443
|
.default(10),
|
|
449
444
|
cursor: z.string().optional(),
|
|
450
|
-
sortOrder: z.enum([
|
|
445
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
451
446
|
},
|
|
452
|
-
response:
|
|
453
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_GetBadgesByUserResponse_,
|
|
447
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_GetBadgesByUserResponse_,
|
|
454
448
|
errors: [
|
|
455
449
|
{
|
|
456
450
|
status: 404,
|
|
@@ -465,16 +459,16 @@ export const getUsersUseridBadges = endpoint({
|
|
|
465
459
|
* @param badgeId Badge id.
|
|
466
460
|
*/
|
|
467
461
|
export const getUsersUseridBadgesBadgeidAwardedDate = endpoint({
|
|
468
|
-
method:
|
|
469
|
-
path:
|
|
470
|
-
baseUrl:
|
|
471
|
-
requestFormat:
|
|
462
|
+
method: 'GET',
|
|
463
|
+
path: '/v1/users/:userId/badges/:badgeId/awarded-date',
|
|
464
|
+
baseUrl: 'https://badges.roblox.com',
|
|
465
|
+
requestFormat: 'json',
|
|
472
466
|
serializationMethod: {
|
|
473
467
|
userId: {
|
|
474
|
-
style:
|
|
468
|
+
style: 'simple',
|
|
475
469
|
},
|
|
476
470
|
badgeId: {
|
|
477
|
-
style:
|
|
471
|
+
style: 'simple',
|
|
478
472
|
},
|
|
479
473
|
},
|
|
480
474
|
parameters: {
|
|
@@ -496,24 +490,23 @@ export const getUsersUseridBadgesBadgeidAwardedDate = endpoint({
|
|
|
496
490
|
* @param badgeIds The CSV of badge Ids.
|
|
497
491
|
*/
|
|
498
492
|
export const getUsersUseridBadgesAwardedDates = endpoint({
|
|
499
|
-
method:
|
|
500
|
-
path:
|
|
501
|
-
baseUrl:
|
|
502
|
-
requestFormat:
|
|
493
|
+
method: 'GET',
|
|
494
|
+
path: '/v1/users/:userId/badges/awarded-dates',
|
|
495
|
+
baseUrl: 'https://badges.roblox.com',
|
|
496
|
+
requestFormat: 'json',
|
|
503
497
|
serializationMethod: {
|
|
504
498
|
userId: {
|
|
505
|
-
style:
|
|
499
|
+
style: 'simple',
|
|
506
500
|
},
|
|
507
501
|
badgeIds: {
|
|
508
|
-
style:
|
|
502
|
+
style: 'form',
|
|
509
503
|
},
|
|
510
504
|
},
|
|
511
505
|
parameters: {
|
|
512
506
|
userId: z.number().int(),
|
|
513
507
|
badgeIds: z.array(z.number()),
|
|
514
508
|
},
|
|
515
|
-
response:
|
|
516
|
-
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Badges_Api_BadgeAwardResponse_,
|
|
509
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Badges_Api_BadgeAwardResponse_,
|
|
517
510
|
errors: [
|
|
518
511
|
{
|
|
519
512
|
status: 400,
|