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_Avatar_ScaleModel = z.object({
|
|
5
5
|
height: z.number(),
|
|
@@ -107,11 +107,10 @@ const Roblox_Api_Avatar_Models_OutfitModel = z.object({
|
|
|
107
107
|
isEditable: z.boolean(),
|
|
108
108
|
outfitType: z.string(),
|
|
109
109
|
});
|
|
110
|
-
const Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ =
|
|
111
|
-
z.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
});
|
|
110
|
+
const Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ = z.object({
|
|
111
|
+
data: z.array(Roblox_Api_Avatar_Models_OutfitModel),
|
|
112
|
+
paginationToken: z.string(),
|
|
113
|
+
});
|
|
115
114
|
const Roblox_Platform_Avatar_BodyColorsModelV2 = z.object({
|
|
116
115
|
headColor3: z.string(),
|
|
117
116
|
torsoColor3: z.string(),
|
|
@@ -149,13 +148,7 @@ const Roblox_Api_Avatar_Models_OutfitUpdateModelV2 = z.object({
|
|
|
149
148
|
assets: z.array(Roblox_Api_Avatar_Models_AssetWearModel),
|
|
150
149
|
scale: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
151
150
|
playerAvatarType: z.string(),
|
|
152
|
-
outfitType: z.union([
|
|
153
|
-
z.literal(0),
|
|
154
|
-
z.literal(1),
|
|
155
|
-
z.literal(2),
|
|
156
|
-
z.literal(4),
|
|
157
|
-
z.literal(5),
|
|
158
|
-
]),
|
|
151
|
+
outfitType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(5)]),
|
|
159
152
|
});
|
|
160
153
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
161
154
|
|
|
@@ -166,21 +159,21 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
|
166
159
|
* @param checkAssetAvailability Whether to return assets with availability status.
|
|
167
160
|
*/
|
|
168
161
|
export const getAvatarAvatar = endpoint({
|
|
169
|
-
method:
|
|
170
|
-
path:
|
|
171
|
-
baseUrl:
|
|
172
|
-
requestFormat:
|
|
162
|
+
method: 'GET',
|
|
163
|
+
path: '/v2/avatar/avatar',
|
|
164
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
165
|
+
requestFormat: 'json',
|
|
173
166
|
serializationMethod: {
|
|
174
|
-
|
|
175
|
-
style:
|
|
167
|
+
'Roblox-Place-Id': {
|
|
168
|
+
style: 'simple',
|
|
176
169
|
},
|
|
177
170
|
checkAssetAvailability: {
|
|
178
|
-
style:
|
|
171
|
+
style: 'form',
|
|
179
172
|
explode: true,
|
|
180
173
|
},
|
|
181
174
|
},
|
|
182
175
|
parameters: {
|
|
183
|
-
|
|
176
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
184
177
|
checkAssetAvailability: z.boolean().optional(),
|
|
185
178
|
},
|
|
186
179
|
response: Roblox_Api_Avatar_Models_AvatarModelV3,
|
|
@@ -198,18 +191,18 @@ export const getAvatarAvatar = endpoint({
|
|
|
198
191
|
* @param Roblox-Place-Id
|
|
199
192
|
*/
|
|
200
193
|
export const postAvatarSetBodyColors = endpoint({
|
|
201
|
-
method:
|
|
202
|
-
path:
|
|
203
|
-
baseUrl:
|
|
204
|
-
requestFormat:
|
|
194
|
+
method: 'POST',
|
|
195
|
+
path: '/v2/avatar/set-body-colors',
|
|
196
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
197
|
+
requestFormat: 'json',
|
|
205
198
|
serializationMethod: {
|
|
206
199
|
body: {},
|
|
207
|
-
|
|
208
|
-
style:
|
|
200
|
+
'Roblox-Place-Id': {
|
|
201
|
+
style: 'simple',
|
|
209
202
|
},
|
|
210
203
|
},
|
|
211
204
|
parameters: {
|
|
212
|
-
|
|
205
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
213
206
|
},
|
|
214
207
|
body: Roblox_Platform_Avatar_BodyColorsModelV2,
|
|
215
208
|
response: z.object({ success: z.boolean() }),
|
|
@@ -233,18 +226,18 @@ export const postAvatarSetBodyColors = endpoint({
|
|
|
233
226
|
Any assets being worn before this method is called are automatically removed.
|
|
234
227
|
*/
|
|
235
228
|
export const postAvatarSetWearingAssets = endpoint({
|
|
236
|
-
method:
|
|
237
|
-
path:
|
|
238
|
-
baseUrl:
|
|
239
|
-
requestFormat:
|
|
229
|
+
method: 'POST',
|
|
230
|
+
path: '/v2/avatar/set-wearing-assets',
|
|
231
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
232
|
+
requestFormat: 'json',
|
|
240
233
|
serializationMethod: {
|
|
241
234
|
body: {},
|
|
242
|
-
|
|
243
|
-
style:
|
|
235
|
+
'Roblox-Place-Id': {
|
|
236
|
+
style: 'simple',
|
|
244
237
|
},
|
|
245
238
|
},
|
|
246
239
|
parameters: {
|
|
247
|
-
|
|
240
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
248
241
|
},
|
|
249
242
|
body: Roblox_Api_Avatar_Models_WearRequestModel,
|
|
250
243
|
response: Roblox_Api_Avatar_Models_WearResponseModel,
|
|
@@ -278,25 +271,25 @@ export const postAvatarSetWearingAssets = endpoint({
|
|
|
278
271
|
* @description Includes assets, bodycolors, and playerAvatarType.
|
|
279
272
|
*/
|
|
280
273
|
export const getAvatarUsersUseridAvatar = endpoint({
|
|
281
|
-
method:
|
|
282
|
-
path:
|
|
283
|
-
baseUrl:
|
|
284
|
-
requestFormat:
|
|
274
|
+
method: 'GET',
|
|
275
|
+
path: '/v2/avatar/users/:userId/avatar',
|
|
276
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
277
|
+
requestFormat: 'json',
|
|
285
278
|
serializationMethod: {
|
|
286
279
|
userId: {
|
|
287
|
-
style:
|
|
280
|
+
style: 'simple',
|
|
288
281
|
},
|
|
289
|
-
|
|
290
|
-
style:
|
|
282
|
+
'Roblox-Place-Id': {
|
|
283
|
+
style: 'simple',
|
|
291
284
|
},
|
|
292
285
|
checkAssetAvailability: {
|
|
293
|
-
style:
|
|
286
|
+
style: 'form',
|
|
294
287
|
explode: true,
|
|
295
288
|
},
|
|
296
289
|
},
|
|
297
290
|
parameters: {
|
|
298
291
|
userId: z.number().int(),
|
|
299
|
-
|
|
292
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
300
293
|
checkAssetAvailability: z.boolean().optional(),
|
|
301
294
|
},
|
|
302
295
|
response: Roblox_Api_Avatar_Models_AvatarModelV3,
|
|
@@ -320,36 +313,36 @@ export const getAvatarUsersUseridAvatar = endpoint({
|
|
|
320
313
|
* @param Roblox-Place-Id The placeId of the caller, not required to be passed in.
|
|
321
314
|
*/
|
|
322
315
|
export const getAvatarUsersUseridOutfits = endpoint({
|
|
323
|
-
method:
|
|
324
|
-
path:
|
|
325
|
-
baseUrl:
|
|
326
|
-
requestFormat:
|
|
316
|
+
method: 'GET',
|
|
317
|
+
path: '/v2/avatar/users/:userId/outfits',
|
|
318
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
319
|
+
requestFormat: 'json',
|
|
327
320
|
serializationMethod: {
|
|
328
321
|
userId: {
|
|
329
|
-
style:
|
|
322
|
+
style: 'simple',
|
|
330
323
|
},
|
|
331
324
|
paginationToken: {
|
|
332
|
-
style:
|
|
325
|
+
style: 'form',
|
|
333
326
|
explode: true,
|
|
334
327
|
},
|
|
335
328
|
outfitType: {
|
|
336
|
-
style:
|
|
329
|
+
style: 'form',
|
|
337
330
|
explode: true,
|
|
338
331
|
},
|
|
339
332
|
page: {
|
|
340
|
-
style:
|
|
333
|
+
style: 'form',
|
|
341
334
|
explode: true,
|
|
342
335
|
},
|
|
343
336
|
itemsPerPage: {
|
|
344
|
-
style:
|
|
337
|
+
style: 'form',
|
|
345
338
|
explode: true,
|
|
346
339
|
},
|
|
347
340
|
isEditable: {
|
|
348
|
-
style:
|
|
341
|
+
style: 'form',
|
|
349
342
|
explode: true,
|
|
350
343
|
},
|
|
351
|
-
|
|
352
|
-
style:
|
|
344
|
+
'Roblox-Place-Id': {
|
|
345
|
+
style: 'simple',
|
|
353
346
|
},
|
|
354
347
|
},
|
|
355
348
|
parameters: {
|
|
@@ -359,10 +352,9 @@ export const getAvatarUsersUseridOutfits = endpoint({
|
|
|
359
352
|
page: z.number().int().optional().default(1),
|
|
360
353
|
itemsPerPage: z.number().int().optional().default(25),
|
|
361
354
|
isEditable: z.boolean().optional(),
|
|
362
|
-
|
|
355
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
363
356
|
},
|
|
364
|
-
response:
|
|
365
|
-
Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
|
|
357
|
+
response: Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
|
|
366
358
|
errors: [
|
|
367
359
|
{
|
|
368
360
|
status: 400,
|
|
@@ -381,22 +373,22 @@ export const getAvatarUsersUseridOutfits = endpoint({
|
|
|
381
373
|
Accepts partial updates.
|
|
382
374
|
*/
|
|
383
375
|
export const patchOutfitsUseroutfitid = endpoint({
|
|
384
|
-
method:
|
|
385
|
-
path:
|
|
386
|
-
baseUrl:
|
|
387
|
-
requestFormat:
|
|
376
|
+
method: 'PATCH',
|
|
377
|
+
path: '/v2/outfits/:userOutfitId',
|
|
378
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
379
|
+
requestFormat: 'json',
|
|
388
380
|
serializationMethod: {
|
|
389
381
|
body: {},
|
|
390
382
|
userOutfitId: {
|
|
391
|
-
style:
|
|
383
|
+
style: 'simple',
|
|
392
384
|
},
|
|
393
|
-
|
|
394
|
-
style:
|
|
385
|
+
'Roblox-Place-Id': {
|
|
386
|
+
style: 'simple',
|
|
395
387
|
},
|
|
396
388
|
},
|
|
397
389
|
parameters: {
|
|
398
390
|
userOutfitId: z.number().int(),
|
|
399
|
-
|
|
391
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
400
392
|
},
|
|
401
393
|
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
|
|
402
394
|
response: Roblox_Api_Avatar_Models_OutfitModel,
|
|
@@ -440,18 +432,18 @@ export const patchOutfitsUseroutfitid = endpoint({
|
|
|
440
432
|
The name property of the request is optional as one will be auto-generated when the request has a null name.
|
|
441
433
|
*/
|
|
442
434
|
export const postOutfitsCreate = endpoint({
|
|
443
|
-
method:
|
|
444
|
-
path:
|
|
445
|
-
baseUrl:
|
|
446
|
-
requestFormat:
|
|
435
|
+
method: 'POST',
|
|
436
|
+
path: '/v2/outfits/create',
|
|
437
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
438
|
+
requestFormat: 'json',
|
|
447
439
|
serializationMethod: {
|
|
448
440
|
body: {},
|
|
449
|
-
|
|
450
|
-
style:
|
|
441
|
+
'Roblox-Place-Id': {
|
|
442
|
+
style: 'simple',
|
|
451
443
|
},
|
|
452
444
|
},
|
|
453
445
|
parameters: {
|
|
454
|
-
|
|
446
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
455
447
|
},
|
|
456
448
|
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
|
|
457
449
|
response: z.object({}),
|
|
@@ -499,7 +491,10 @@ export const postOutfitsUseroutfitidUpdate = endpoint({
|
|
|
499
491
|
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
|
|
500
492
|
response: z.object({}),
|
|
501
493
|
errors: [
|
|
502
|
-
{
|
|
494
|
+
{
|
|
495
|
+
status: 400,
|
|
496
|
+
description: `1: The specified userOutfit does not exist!\n3: Body colors must be valid BrickColor IDs\n4: Invalid outfit name\n5: Asset is not wearable by you\n7: Invalid assetIds\n8: Invalid Player Avatar Type. Valid types are R6 and R15`,
|
|
497
|
+
},
|
|
503
498
|
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
504
499
|
{ status: 403, description: `0: Token Validation Failed\n2: You don't have permission to update this outfit.` },
|
|
505
500
|
{ status: 500, description: `6: An error occurred while trying to update the outfit` },
|
|
@@ -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_Api_Avatar_Models_AssetTypeModel = z.object({
|
|
5
5
|
id: z.number().int(),
|
|
@@ -111,13 +111,7 @@ const Roblox_Api_Avatar_Models_OutfitUpdateModelV3 = z.object({
|
|
|
111
111
|
assets: z.array(Roblox_Api_Avatar_Models_AssetWearModel),
|
|
112
112
|
scale: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
113
113
|
playerAvatarType: z.string(),
|
|
114
|
-
outfitType: z.union([
|
|
115
|
-
z.literal(0),
|
|
116
|
-
z.literal(1),
|
|
117
|
-
z.literal(2),
|
|
118
|
-
z.literal(4),
|
|
119
|
-
z.literal(5),
|
|
120
|
-
]),
|
|
114
|
+
outfitType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(5)]),
|
|
121
115
|
});
|
|
122
116
|
const Roblox_Api_Avatar_Models_OutfitModel = z.object({
|
|
123
117
|
id: z.number().int(),
|
|
@@ -136,22 +130,22 @@ const Roblox_Api_Avatar_Models_OutfitModel = z.object({
|
|
|
136
130
|
Accepts partial updates.
|
|
137
131
|
*/
|
|
138
132
|
export const patchOutfitsUseroutfitid = endpoint({
|
|
139
|
-
method:
|
|
140
|
-
path:
|
|
141
|
-
baseUrl:
|
|
142
|
-
requestFormat:
|
|
133
|
+
method: 'PATCH',
|
|
134
|
+
path: '/v3/outfits/:userOutfitId',
|
|
135
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
136
|
+
requestFormat: 'json',
|
|
143
137
|
serializationMethod: {
|
|
144
138
|
body: {},
|
|
145
139
|
userOutfitId: {
|
|
146
|
-
style:
|
|
140
|
+
style: 'simple',
|
|
147
141
|
},
|
|
148
|
-
|
|
149
|
-
style:
|
|
142
|
+
'Roblox-Place-Id': {
|
|
143
|
+
style: 'simple',
|
|
150
144
|
},
|
|
151
145
|
},
|
|
152
146
|
parameters: {
|
|
153
147
|
userOutfitId: z.number().int(),
|
|
154
|
-
|
|
148
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
155
149
|
},
|
|
156
150
|
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV3,
|
|
157
151
|
response: Roblox_Api_Avatar_Models_OutfitModel,
|
|
@@ -194,25 +188,25 @@ export const patchOutfitsUseroutfitid = endpoint({
|
|
|
194
188
|
* @param checkAssetAvailability Whether to return assets with availability status.
|
|
195
189
|
*/
|
|
196
190
|
export const getOutfitsUseroutfitidDetails = endpoint({
|
|
197
|
-
method:
|
|
198
|
-
path:
|
|
199
|
-
baseUrl:
|
|
200
|
-
requestFormat:
|
|
191
|
+
method: 'GET',
|
|
192
|
+
path: '/v3/outfits/:userOutfitId/details',
|
|
193
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
194
|
+
requestFormat: 'json',
|
|
201
195
|
serializationMethod: {
|
|
202
196
|
userOutfitId: {
|
|
203
|
-
style:
|
|
197
|
+
style: 'simple',
|
|
204
198
|
},
|
|
205
|
-
|
|
206
|
-
style:
|
|
199
|
+
'Roblox-Place-Id': {
|
|
200
|
+
style: 'simple',
|
|
207
201
|
},
|
|
208
202
|
checkAssetAvailability: {
|
|
209
|
-
style:
|
|
203
|
+
style: 'form',
|
|
210
204
|
explode: true,
|
|
211
205
|
},
|
|
212
206
|
},
|
|
213
207
|
parameters: {
|
|
214
208
|
userOutfitId: z.number().int(),
|
|
215
|
-
|
|
209
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
216
210
|
checkAssetAvailability: z.boolean().optional(),
|
|
217
211
|
},
|
|
218
212
|
response: Roblox_Api_Avatar_Models_OutfitDetailsModelV2,
|
|
@@ -240,18 +234,18 @@ export const getOutfitsUseroutfitidDetails = endpoint({
|
|
|
240
234
|
The name property of the request is optional as one will be auto-generated when the request has a null name.
|
|
241
235
|
*/
|
|
242
236
|
export const postOutfitsCreate = endpoint({
|
|
243
|
-
method:
|
|
244
|
-
path:
|
|
245
|
-
baseUrl:
|
|
246
|
-
requestFormat:
|
|
237
|
+
method: 'POST',
|
|
238
|
+
path: '/v3/outfits/create',
|
|
239
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
240
|
+
requestFormat: 'json',
|
|
247
241
|
serializationMethod: {
|
|
248
242
|
body: {},
|
|
249
|
-
|
|
250
|
-
style:
|
|
243
|
+
'Roblox-Place-Id': {
|
|
244
|
+
style: 'simple',
|
|
251
245
|
},
|
|
252
246
|
},
|
|
253
247
|
parameters: {
|
|
254
|
-
|
|
248
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
255
249
|
},
|
|
256
250
|
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV3,
|
|
257
251
|
response: Roblox_Api_Avatar_Models_OutfitModel,
|