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_Authentication_Api_Models_Request_LogoutV3Request = z.object({
|
|
5
5
|
logoutReason: z.string(),
|
|
@@ -7,41 +7,38 @@ const Roblox_Authentication_Api_Models_Request_LogoutV3Request = z.object({
|
|
|
7
7
|
userId: z.string(),
|
|
8
8
|
});
|
|
9
9
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
10
|
-
const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
11
|
-
z.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
10
|
+
const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel = z.object({
|
|
11
|
+
clientPublicKey: z.string(),
|
|
12
|
+
clientEpochTimestamp: z.number().int(),
|
|
13
|
+
saiSignature: z.string(),
|
|
14
|
+
serverNonce: z.string(),
|
|
15
|
+
});
|
|
17
16
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
|
|
18
17
|
LinkingPlatform: z.enum([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
'Invalid',
|
|
19
|
+
'Xbox',
|
|
20
|
+
'Qq',
|
|
21
|
+
'WeChat',
|
|
22
|
+
'Facebook',
|
|
23
|
+
'RobloxDeveloper',
|
|
24
|
+
'RobloxGroupCreator',
|
|
25
|
+
'Playstation',
|
|
26
|
+
'ExternalProvider',
|
|
27
|
+
'Example',
|
|
29
28
|
]),
|
|
30
29
|
});
|
|
31
30
|
const Roblox_Authentication_Api_TwoStepVerificationLoginRequest = z.object({
|
|
32
31
|
challengeId: z.string(),
|
|
33
32
|
verificationToken: z.string(),
|
|
34
33
|
rememberDevice: z.boolean(),
|
|
35
|
-
secureAuthenticationIntent:
|
|
36
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
34
|
+
secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
37
35
|
accountBlob: z.string(),
|
|
38
36
|
accountLinkParameters: Roblox_Authentication_Api_Models_AccountLinkParameters,
|
|
39
37
|
});
|
|
40
|
-
const Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse =
|
|
41
|
-
z.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
38
|
+
const Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse = z.object({
|
|
39
|
+
identityVerificationLoginTicket: z.string(),
|
|
40
|
+
accountBlob: z.string(),
|
|
41
|
+
});
|
|
45
42
|
|
|
46
43
|
/**
|
|
47
44
|
* @api POST https://auth.roblox.com/v3/logout
|
|
@@ -49,10 +46,10 @@ const Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse =
|
|
|
49
46
|
* @param body The logout request with postBody which includes reason, url, and userIdString.
|
|
50
47
|
*/
|
|
51
48
|
export const postLogout = endpoint({
|
|
52
|
-
method:
|
|
53
|
-
path:
|
|
54
|
-
baseUrl:
|
|
55
|
-
requestFormat:
|
|
49
|
+
method: 'POST',
|
|
50
|
+
path: '/v3/logout',
|
|
51
|
+
baseUrl: 'https://auth.roblox.com',
|
|
52
|
+
requestFormat: 'json',
|
|
56
53
|
serializationMethod: {
|
|
57
54
|
body: {},
|
|
58
55
|
},
|
|
@@ -73,14 +70,14 @@ export const postLogout = endpoint({
|
|
|
73
70
|
* @param userId The user ID to authenticate as.
|
|
74
71
|
*/
|
|
75
72
|
export const postUsersUseridTwoStepVerificationLogin = endpoint({
|
|
76
|
-
method:
|
|
77
|
-
path:
|
|
78
|
-
baseUrl:
|
|
79
|
-
requestFormat:
|
|
73
|
+
method: 'POST',
|
|
74
|
+
path: '/v3/users/:userId/two-step-verification/login',
|
|
75
|
+
baseUrl: 'https://auth.roblox.com',
|
|
76
|
+
requestFormat: 'json',
|
|
80
77
|
serializationMethod: {
|
|
81
78
|
body: {},
|
|
82
79
|
userId: {
|
|
83
|
-
style:
|
|
80
|
+
style: 'simple',
|
|
84
81
|
},
|
|
85
82
|
},
|
|
86
83
|
parameters: {
|
|
@@ -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(),
|
|
@@ -174,12 +174,11 @@ const Roblox_Api_Avatar_Models_AvatarMetadataModel = z.object({
|
|
|
174
174
|
LCEnabledInEditorAndCatalog: z.boolean(),
|
|
175
175
|
isLCCompletelyEnabled: z.boolean(),
|
|
176
176
|
});
|
|
177
|
-
const Roblox_Api_Avatar_Models_UniverseAvatarAssetOverrideResponseModel =
|
|
178
|
-
z.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
177
|
+
const Roblox_Api_Avatar_Models_UniverseAvatarAssetOverrideResponseModel = z.object({
|
|
178
|
+
assetID: z.number().int(),
|
|
179
|
+
assetTypeID: z.number().int(),
|
|
180
|
+
isPlayerChoice: z.boolean(),
|
|
181
|
+
});
|
|
183
182
|
const Roblox_Api_Avatar_Models_GameStartInfoResponse = z.object({
|
|
184
183
|
gameAvatarType: z.string(),
|
|
185
184
|
allowCustomAnimations: z.string(),
|
|
@@ -189,9 +188,7 @@ const Roblox_Api_Avatar_Models_GameStartInfoResponse = z.object({
|
|
|
189
188
|
message: z.string(),
|
|
190
189
|
universeAvatarMinScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
191
190
|
universeAvatarMaxScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
192
|
-
universeAvatarAssetOverrides: z.array(
|
|
193
|
-
Roblox_Api_Avatar_Models_UniverseAvatarAssetOverrideResponseModel
|
|
194
|
-
),
|
|
191
|
+
universeAvatarAssetOverrides: z.array(Roblox_Api_Avatar_Models_UniverseAvatarAssetOverrideResponseModel),
|
|
195
192
|
moderationStatus: z.string(),
|
|
196
193
|
});
|
|
197
194
|
const Roblox_Api_Avatar_Models_OutfitDetailsModel = z.object({
|
|
@@ -215,12 +212,11 @@ const Roblox_Api_Avatar_Models_OutfitModel = z.object({
|
|
|
215
212
|
isEditable: z.boolean(),
|
|
216
213
|
outfitType: z.string(),
|
|
217
214
|
});
|
|
218
|
-
const Roblox_Api_Avatar_Models_AvatarFilteredPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ =
|
|
219
|
-
z.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
});
|
|
215
|
+
const Roblox_Api_Avatar_Models_AvatarFilteredPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ = z.object({
|
|
216
|
+
filteredCount: z.number().int(),
|
|
217
|
+
data: z.array(Roblox_Api_Avatar_Models_OutfitModel),
|
|
218
|
+
total: z.number().int(),
|
|
219
|
+
});
|
|
224
220
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
225
221
|
const Roblox_Api_Avatar_Models_AvatarApiSuccessResponse = z.object({
|
|
226
222
|
success: z.boolean(),
|
|
@@ -235,17 +231,17 @@ const Roblox_Api_Avatar_Models_PlayerAvatarTypeModel = z.object({
|
|
|
235
231
|
* @param Roblox-Place-Id
|
|
236
232
|
*/
|
|
237
233
|
export const getAvatar = endpoint({
|
|
238
|
-
method:
|
|
239
|
-
path:
|
|
240
|
-
baseUrl:
|
|
241
|
-
requestFormat:
|
|
234
|
+
method: 'GET',
|
|
235
|
+
path: '/v1/avatar',
|
|
236
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
237
|
+
requestFormat: 'json',
|
|
242
238
|
serializationMethod: {
|
|
243
|
-
|
|
244
|
-
style:
|
|
239
|
+
'Roblox-Place-Id': {
|
|
240
|
+
style: 'simple',
|
|
245
241
|
},
|
|
246
242
|
},
|
|
247
243
|
parameters: {
|
|
248
|
-
|
|
244
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
249
245
|
},
|
|
250
246
|
response: Roblox_Api_Avatar_Models_AvatarModelV2,
|
|
251
247
|
errors: [
|
|
@@ -265,17 +261,17 @@ Does not include packages because they cannot be worn on your avatar directly.
|
|
|
265
261
|
PlayerAvatarTypes are the types of avatars you can choose between.
|
|
266
262
|
*/
|
|
267
263
|
export const getAvatarRules = endpoint({
|
|
268
|
-
method:
|
|
269
|
-
path:
|
|
270
|
-
baseUrl:
|
|
271
|
-
requestFormat:
|
|
264
|
+
method: 'GET',
|
|
265
|
+
path: '/v1/avatar-rules',
|
|
266
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
267
|
+
requestFormat: 'json',
|
|
272
268
|
serializationMethod: {
|
|
273
|
-
|
|
274
|
-
style:
|
|
269
|
+
'Roblox-Place-Id': {
|
|
270
|
+
style: 'simple',
|
|
275
271
|
},
|
|
276
272
|
},
|
|
277
273
|
parameters: {
|
|
278
|
-
|
|
274
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
279
275
|
},
|
|
280
276
|
response: Roblox_Api_Avatar_Models_AvatarRulesModel,
|
|
281
277
|
errors: [],
|
|
@@ -285,10 +281,10 @@ export const getAvatarRules = endpoint({
|
|
|
285
281
|
* @summary Returns metadata used by the avatar page of the website.
|
|
286
282
|
*/
|
|
287
283
|
export const getAvatarMetadata = endpoint({
|
|
288
|
-
method:
|
|
289
|
-
path:
|
|
290
|
-
baseUrl:
|
|
291
|
-
requestFormat:
|
|
284
|
+
method: 'GET',
|
|
285
|
+
path: '/v1/avatar/metadata',
|
|
286
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
287
|
+
requestFormat: 'json',
|
|
292
288
|
response: Roblox_Api_Avatar_Models_AvatarMetadataModel,
|
|
293
289
|
errors: [],
|
|
294
290
|
});
|
|
@@ -298,17 +294,17 @@ export const getAvatarMetadata = endpoint({
|
|
|
298
294
|
* @param Roblox-Place-Id
|
|
299
295
|
*/
|
|
300
296
|
export const postAvatarRedrawThumbnail = endpoint({
|
|
301
|
-
method:
|
|
302
|
-
path:
|
|
303
|
-
baseUrl:
|
|
304
|
-
requestFormat:
|
|
297
|
+
method: 'POST',
|
|
298
|
+
path: '/v1/avatar/redraw-thumbnail',
|
|
299
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
300
|
+
requestFormat: 'json',
|
|
305
301
|
serializationMethod: {
|
|
306
|
-
|
|
307
|
-
style:
|
|
302
|
+
'Roblox-Place-Id': {
|
|
303
|
+
style: 'simple',
|
|
308
304
|
},
|
|
309
305
|
},
|
|
310
306
|
parameters: {
|
|
311
|
-
|
|
307
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
312
308
|
},
|
|
313
309
|
response: z.object({}),
|
|
314
310
|
errors: [
|
|
@@ -334,18 +330,18 @@ export const postAvatarRedrawThumbnail = endpoint({
|
|
|
334
330
|
* @param Roblox-Place-Id
|
|
335
331
|
*/
|
|
336
332
|
export const postAvatarSetBodyColors = endpoint({
|
|
337
|
-
method:
|
|
338
|
-
path:
|
|
339
|
-
baseUrl:
|
|
340
|
-
requestFormat:
|
|
333
|
+
method: 'POST',
|
|
334
|
+
path: '/v1/avatar/set-body-colors',
|
|
335
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
336
|
+
requestFormat: 'json',
|
|
341
337
|
serializationMethod: {
|
|
342
338
|
body: {},
|
|
343
|
-
|
|
344
|
-
style:
|
|
339
|
+
'Roblox-Place-Id': {
|
|
340
|
+
style: 'simple',
|
|
345
341
|
},
|
|
346
342
|
},
|
|
347
343
|
parameters: {
|
|
348
|
-
|
|
344
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
349
345
|
},
|
|
350
346
|
body: Roblox_Api_Avatar_Models_BodyColorsModel,
|
|
351
347
|
response: z.object({ success: z.boolean() }),
|
|
@@ -368,18 +364,18 @@ export const postAvatarSetBodyColors = endpoint({
|
|
|
368
364
|
* @description This is the avatar type chosen on the Avatar page. Some games can override this and force your character to be R6 or R15.
|
|
369
365
|
*/
|
|
370
366
|
export const postAvatarSetPlayerAvatarType = endpoint({
|
|
371
|
-
method:
|
|
372
|
-
path:
|
|
373
|
-
baseUrl:
|
|
374
|
-
requestFormat:
|
|
367
|
+
method: 'POST',
|
|
368
|
+
path: '/v1/avatar/set-player-avatar-type',
|
|
369
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
370
|
+
requestFormat: 'json',
|
|
375
371
|
serializationMethod: {
|
|
376
372
|
body: {},
|
|
377
|
-
|
|
378
|
-
style:
|
|
373
|
+
'Roblox-Place-Id': {
|
|
374
|
+
style: 'simple',
|
|
379
375
|
},
|
|
380
376
|
},
|
|
381
377
|
parameters: {
|
|
382
|
-
|
|
378
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
383
379
|
},
|
|
384
380
|
body: Roblox_Api_Avatar_Models_PlayerAvatarTypeModel,
|
|
385
381
|
response: z.object({ success: z.boolean() }),
|
|
@@ -406,18 +402,18 @@ export const postAvatarSetPlayerAvatarType = endpoint({
|
|
|
406
402
|
* @param Roblox-Place-Id
|
|
407
403
|
*/
|
|
408
404
|
export const postAvatarSetScales = endpoint({
|
|
409
|
-
method:
|
|
410
|
-
path:
|
|
411
|
-
baseUrl:
|
|
412
|
-
requestFormat:
|
|
405
|
+
method: 'POST',
|
|
406
|
+
path: '/v1/avatar/set-scales',
|
|
407
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
408
|
+
requestFormat: 'json',
|
|
413
409
|
serializationMethod: {
|
|
414
410
|
body: {},
|
|
415
|
-
|
|
416
|
-
style:
|
|
411
|
+
'Roblox-Place-Id': {
|
|
412
|
+
style: 'simple',
|
|
417
413
|
},
|
|
418
414
|
},
|
|
419
415
|
parameters: {
|
|
420
|
-
|
|
416
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
421
417
|
},
|
|
422
418
|
body: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
423
419
|
response: z.object({ success: z.boolean() }),
|
|
@@ -446,22 +442,22 @@ During mixed mode this may return unreliable results.
|
|
|
446
442
|
* @param Roblox-Place-Id
|
|
447
443
|
*/
|
|
448
444
|
export const getGameStartInfo = endpoint({
|
|
449
|
-
method:
|
|
450
|
-
path:
|
|
451
|
-
baseUrl:
|
|
452
|
-
requestFormat:
|
|
445
|
+
method: 'GET',
|
|
446
|
+
path: '/v1/game-start-info',
|
|
447
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
448
|
+
requestFormat: 'json',
|
|
453
449
|
serializationMethod: {
|
|
454
450
|
universeId: {
|
|
455
|
-
style:
|
|
451
|
+
style: 'form',
|
|
456
452
|
explode: true,
|
|
457
453
|
},
|
|
458
|
-
|
|
459
|
-
style:
|
|
454
|
+
'Roblox-Place-Id': {
|
|
455
|
+
style: 'simple',
|
|
460
456
|
},
|
|
461
457
|
},
|
|
462
458
|
parameters: {
|
|
463
459
|
universeId: z.number().int(),
|
|
464
|
-
|
|
460
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
465
461
|
},
|
|
466
462
|
response: Roblox_Api_Avatar_Models_GameStartInfoResponse,
|
|
467
463
|
errors: [],
|
|
@@ -474,21 +470,21 @@ export const getGameStartInfo = endpoint({
|
|
|
474
470
|
* @description You are only allowed to delete outfits you created.
|
|
475
471
|
*/
|
|
476
472
|
export const postOutfitsUseroutfitidDelete = endpoint({
|
|
477
|
-
method:
|
|
478
|
-
path:
|
|
479
|
-
baseUrl:
|
|
480
|
-
requestFormat:
|
|
473
|
+
method: 'POST',
|
|
474
|
+
path: '/v1/outfits/:userOutfitId/delete',
|
|
475
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
476
|
+
requestFormat: 'json',
|
|
481
477
|
serializationMethod: {
|
|
482
478
|
userOutfitId: {
|
|
483
|
-
style:
|
|
479
|
+
style: 'simple',
|
|
484
480
|
},
|
|
485
|
-
|
|
486
|
-
style:
|
|
481
|
+
'Roblox-Place-Id': {
|
|
482
|
+
style: 'simple',
|
|
487
483
|
},
|
|
488
484
|
},
|
|
489
485
|
parameters: {
|
|
490
486
|
userOutfitId: z.number().int(),
|
|
491
|
-
|
|
487
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
492
488
|
},
|
|
493
489
|
response: z.object({ success: z.boolean() }),
|
|
494
490
|
errors: [
|
|
@@ -518,21 +514,21 @@ export const postOutfitsUseroutfitidDelete = endpoint({
|
|
|
518
514
|
* @param Roblox-Place-Id
|
|
519
515
|
*/
|
|
520
516
|
export const getOutfitsUseroutfitidDetails = endpoint({
|
|
521
|
-
method:
|
|
522
|
-
path:
|
|
523
|
-
baseUrl:
|
|
524
|
-
requestFormat:
|
|
517
|
+
method: 'GET',
|
|
518
|
+
path: '/v1/outfits/:userOutfitId/details',
|
|
519
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
520
|
+
requestFormat: 'json',
|
|
525
521
|
serializationMethod: {
|
|
526
522
|
userOutfitId: {
|
|
527
|
-
style:
|
|
523
|
+
style: 'simple',
|
|
528
524
|
},
|
|
529
|
-
|
|
530
|
-
style:
|
|
525
|
+
'Roblox-Place-Id': {
|
|
526
|
+
style: 'simple',
|
|
531
527
|
},
|
|
532
528
|
},
|
|
533
529
|
parameters: {
|
|
534
530
|
userOutfitId: z.number().int(),
|
|
535
|
-
|
|
531
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
536
532
|
},
|
|
537
533
|
response: Roblox_Api_Avatar_Models_OutfitDetailsModel,
|
|
538
534
|
errors: [
|
|
@@ -558,21 +554,21 @@ export const getOutfitsUseroutfitidDetails = endpoint({
|
|
|
558
554
|
* @description Includes assets, bodycolors, and playerAvatarType.
|
|
559
555
|
*/
|
|
560
556
|
export const getUsersUseridAvatar = endpoint({
|
|
561
|
-
method:
|
|
562
|
-
path:
|
|
563
|
-
baseUrl:
|
|
564
|
-
requestFormat:
|
|
557
|
+
method: 'GET',
|
|
558
|
+
path: '/v1/users/:userId/avatar',
|
|
559
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
560
|
+
requestFormat: 'json',
|
|
565
561
|
serializationMethod: {
|
|
566
562
|
userId: {
|
|
567
|
-
style:
|
|
563
|
+
style: 'simple',
|
|
568
564
|
},
|
|
569
|
-
|
|
570
|
-
style:
|
|
565
|
+
'Roblox-Place-Id': {
|
|
566
|
+
style: 'simple',
|
|
571
567
|
},
|
|
572
568
|
},
|
|
573
569
|
parameters: {
|
|
574
570
|
userId: z.number().int(),
|
|
575
|
-
|
|
571
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
576
572
|
},
|
|
577
573
|
response: Roblox_Api_Avatar_Models_AvatarModelV2,
|
|
578
574
|
errors: [
|
|
@@ -590,21 +586,21 @@ export const getUsersUseridAvatar = endpoint({
|
|
|
590
586
|
* @param Roblox-Place-Id
|
|
591
587
|
*/
|
|
592
588
|
export const getUsersUseridCurrentlyWearing = endpoint({
|
|
593
|
-
method:
|
|
594
|
-
path:
|
|
595
|
-
baseUrl:
|
|
596
|
-
requestFormat:
|
|
589
|
+
method: 'GET',
|
|
590
|
+
path: '/v1/users/:userId/currently-wearing',
|
|
591
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
592
|
+
requestFormat: 'json',
|
|
597
593
|
serializationMethod: {
|
|
598
594
|
userId: {
|
|
599
|
-
style:
|
|
595
|
+
style: 'simple',
|
|
600
596
|
},
|
|
601
|
-
|
|
602
|
-
style:
|
|
597
|
+
'Roblox-Place-Id': {
|
|
598
|
+
style: 'simple',
|
|
603
599
|
},
|
|
604
600
|
},
|
|
605
601
|
parameters: {
|
|
606
602
|
userId: z.number().int(),
|
|
607
|
-
|
|
603
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
608
604
|
},
|
|
609
605
|
response: Roblox_Api_Avatar_Models_AssetIdListModel,
|
|
610
606
|
errors: [
|
|
@@ -627,32 +623,32 @@ Gets a list of outfits for the specified user.
|
|
|
627
623
|
* @param Roblox-Place-Id The placeId of the caller, not required to be passed in.
|
|
628
624
|
*/
|
|
629
625
|
export const getUsersUseridOutfits = endpoint({
|
|
630
|
-
method:
|
|
631
|
-
path:
|
|
632
|
-
baseUrl:
|
|
633
|
-
requestFormat:
|
|
626
|
+
method: 'GET',
|
|
627
|
+
path: '/v1/users/:userId/outfits',
|
|
628
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
629
|
+
requestFormat: 'json',
|
|
634
630
|
serializationMethod: {
|
|
635
631
|
userId: {
|
|
636
|
-
style:
|
|
632
|
+
style: 'simple',
|
|
637
633
|
},
|
|
638
634
|
outfitType: {
|
|
639
|
-
style:
|
|
635
|
+
style: 'form',
|
|
640
636
|
explode: true,
|
|
641
637
|
},
|
|
642
638
|
page: {
|
|
643
|
-
style:
|
|
639
|
+
style: 'form',
|
|
644
640
|
explode: true,
|
|
645
641
|
},
|
|
646
642
|
itemsPerPage: {
|
|
647
|
-
style:
|
|
643
|
+
style: 'form',
|
|
648
644
|
explode: true,
|
|
649
645
|
},
|
|
650
646
|
isEditable: {
|
|
651
|
-
style:
|
|
647
|
+
style: 'form',
|
|
652
648
|
explode: true,
|
|
653
649
|
},
|
|
654
|
-
|
|
655
|
-
style:
|
|
650
|
+
'Roblox-Place-Id': {
|
|
651
|
+
style: 'simple',
|
|
656
652
|
},
|
|
657
653
|
},
|
|
658
654
|
parameters: {
|
|
@@ -661,10 +657,9 @@ export const getUsersUseridOutfits = endpoint({
|
|
|
661
657
|
page: z.number().int().optional().default(1),
|
|
662
658
|
itemsPerPage: z.number().int().optional().default(25),
|
|
663
659
|
isEditable: z.boolean().optional(),
|
|
664
|
-
|
|
660
|
+
'Roblox-Place-Id': z.number().int().optional(),
|
|
665
661
|
},
|
|
666
|
-
response:
|
|
667
|
-
Roblox_Api_Avatar_Models_AvatarFilteredPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
|
|
662
|
+
response: Roblox_Api_Avatar_Models_AvatarFilteredPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
|
|
668
663
|
errors: [
|
|
669
664
|
{
|
|
670
665
|
status: 400,
|