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_AccountInformation_Api_Models_BirthdateResponse = z.object({
|
|
5
5
|
birthMonth: z.number().int(),
|
|
@@ -45,17 +45,17 @@ const Roblox_AccountInformation_Api_Models_PhoneRequest = z.object({
|
|
|
45
45
|
password: z.string(),
|
|
46
46
|
verificationChannel: z.string(),
|
|
47
47
|
});
|
|
48
|
-
const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
48
|
+
const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse = z.object({
|
|
49
|
+
verificationChannel: z.string(),
|
|
50
|
+
data: z.string(),
|
|
51
|
+
});
|
|
52
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z.object({
|
|
53
|
+
promotionChannelsVisibilityPrivacy: z.string(),
|
|
54
|
+
facebook: z.string(),
|
|
55
|
+
twitter: z.string(),
|
|
56
|
+
youtube: z.string(),
|
|
57
|
+
twitch: z.string(),
|
|
58
|
+
});
|
|
59
59
|
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z.object({
|
|
60
60
|
facebook: z.string(),
|
|
61
61
|
twitter: z.string(),
|
|
@@ -63,13 +63,12 @@ const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z.object({
|
|
|
63
63
|
twitch: z.string(),
|
|
64
64
|
promotionChannelsVisibilityPrivacy: z.string(),
|
|
65
65
|
});
|
|
66
|
-
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
|
|
67
|
-
z.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
66
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = z.object({
|
|
67
|
+
facebook: z.string(),
|
|
68
|
+
twitter: z.string(),
|
|
69
|
+
youtube: z.string(),
|
|
70
|
+
twitch: z.string(),
|
|
71
|
+
});
|
|
73
72
|
const Roblox_AccountInformation_Api_RobloxBadgeResponse = z.object({
|
|
74
73
|
id: z.number().int(),
|
|
75
74
|
name: z.string(),
|
|
@@ -92,10 +91,10 @@ const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({
|
|
|
92
91
|
* @summary Get the user's birthdate
|
|
93
92
|
*/
|
|
94
93
|
export const getBirthdate = endpoint({
|
|
95
|
-
method:
|
|
96
|
-
path:
|
|
97
|
-
baseUrl:
|
|
98
|
-
requestFormat:
|
|
94
|
+
method: 'GET',
|
|
95
|
+
path: '/v1/birthdate',
|
|
96
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
97
|
+
requestFormat: 'json',
|
|
99
98
|
response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
|
|
100
99
|
errors: [
|
|
101
100
|
{
|
|
@@ -113,10 +112,10 @@ export const getBirthdate = endpoint({
|
|
|
113
112
|
* @summary Get the user's description
|
|
114
113
|
*/
|
|
115
114
|
export const getDescription = endpoint({
|
|
116
|
-
method:
|
|
117
|
-
path:
|
|
118
|
-
baseUrl:
|
|
119
|
-
requestFormat:
|
|
115
|
+
method: 'GET',
|
|
116
|
+
path: '/v1/description',
|
|
117
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
118
|
+
requestFormat: 'json',
|
|
120
119
|
response: z.object({ description: z.string() }),
|
|
121
120
|
errors: [
|
|
122
121
|
{
|
|
@@ -135,10 +134,10 @@ export const getDescription = endpoint({
|
|
|
135
134
|
* @param body The Roblox.AccountInformation.Api.Models.DescriptionRequest
|
|
136
135
|
*/
|
|
137
136
|
export const postDescription = endpoint({
|
|
138
|
-
method:
|
|
139
|
-
path:
|
|
140
|
-
baseUrl:
|
|
141
|
-
requestFormat:
|
|
137
|
+
method: 'POST',
|
|
138
|
+
path: '/v1/description',
|
|
139
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
140
|
+
requestFormat: 'json',
|
|
142
141
|
serializationMethod: {
|
|
143
142
|
body: {},
|
|
144
143
|
},
|
|
@@ -174,10 +173,10 @@ export const postDescription = endpoint({
|
|
|
174
173
|
* @param body Roblox.AccountInformation.Api.Models.VerifyEmailRequest
|
|
175
174
|
*/
|
|
176
175
|
export const postEmailVerify = endpoint({
|
|
177
|
-
method:
|
|
178
|
-
path:
|
|
179
|
-
baseUrl:
|
|
180
|
-
requestFormat:
|
|
176
|
+
method: 'POST',
|
|
177
|
+
path: '/v1/email/verify',
|
|
178
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
179
|
+
requestFormat: 'json',
|
|
181
180
|
serializationMethod: {
|
|
182
181
|
body: {},
|
|
183
182
|
},
|
|
@@ -196,10 +195,10 @@ export const postEmailVerify = endpoint({
|
|
|
196
195
|
* @summary Get the user's gender
|
|
197
196
|
*/
|
|
198
197
|
export const getGender = endpoint({
|
|
199
|
-
method:
|
|
200
|
-
path:
|
|
201
|
-
baseUrl:
|
|
202
|
-
requestFormat:
|
|
198
|
+
method: 'GET',
|
|
199
|
+
path: '/v1/gender',
|
|
200
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
201
|
+
requestFormat: 'json',
|
|
203
202
|
response: z.object({ gender: z.number().int() }),
|
|
204
203
|
errors: [
|
|
205
204
|
{
|
|
@@ -218,10 +217,10 @@ export const getGender = endpoint({
|
|
|
218
217
|
* @param body The Roblox.AccountInformation.Api.Models.GenderRequest
|
|
219
218
|
*/
|
|
220
219
|
export const postGender = endpoint({
|
|
221
|
-
method:
|
|
222
|
-
path:
|
|
223
|
-
baseUrl:
|
|
224
|
-
requestFormat:
|
|
220
|
+
method: 'POST',
|
|
221
|
+
path: '/v1/gender',
|
|
222
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
223
|
+
requestFormat: 'json',
|
|
225
224
|
serializationMethod: {
|
|
226
225
|
body: {},
|
|
227
226
|
},
|
|
@@ -253,10 +252,10 @@ export const postGender = endpoint({
|
|
|
253
252
|
* @summary Get the metadata
|
|
254
253
|
*/
|
|
255
254
|
export const getMetadata = endpoint({
|
|
256
|
-
method:
|
|
257
|
-
path:
|
|
258
|
-
baseUrl:
|
|
259
|
-
requestFormat:
|
|
255
|
+
method: 'GET',
|
|
256
|
+
path: '/v1/metadata',
|
|
257
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
258
|
+
requestFormat: 'json',
|
|
260
259
|
response: Roblox_AccountInformation_Api_Models_MetadataResponse,
|
|
261
260
|
errors: [],
|
|
262
261
|
});
|
|
@@ -265,10 +264,10 @@ export const getMetadata = endpoint({
|
|
|
265
264
|
* @summary Get Verified Phone Number
|
|
266
265
|
*/
|
|
267
266
|
export const getPhone = endpoint({
|
|
268
|
-
method:
|
|
269
|
-
path:
|
|
270
|
-
baseUrl:
|
|
271
|
-
requestFormat:
|
|
267
|
+
method: 'GET',
|
|
268
|
+
path: '/v1/phone',
|
|
269
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
270
|
+
requestFormat: 'json',
|
|
272
271
|
response: Roblox_AccountInformation_Api_Models_PhoneResponse,
|
|
273
272
|
errors: [
|
|
274
273
|
{
|
|
@@ -287,17 +286,16 @@ export const getPhone = endpoint({
|
|
|
287
286
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
288
287
|
*/
|
|
289
288
|
export const postPhone = endpoint({
|
|
290
|
-
method:
|
|
291
|
-
path:
|
|
292
|
-
baseUrl:
|
|
293
|
-
requestFormat:
|
|
289
|
+
method: 'POST',
|
|
290
|
+
path: '/v1/phone',
|
|
291
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
292
|
+
requestFormat: 'json',
|
|
294
293
|
serializationMethod: {
|
|
295
294
|
body: {},
|
|
296
295
|
},
|
|
297
296
|
parameters: {},
|
|
298
297
|
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
299
|
-
response:
|
|
300
|
-
Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
298
|
+
response: Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
301
299
|
errors: [
|
|
302
300
|
{
|
|
303
301
|
status: 400,
|
|
@@ -335,10 +333,10 @@ export const postPhone = endpoint({
|
|
|
335
333
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
336
334
|
*/
|
|
337
335
|
export const postPhoneDelete = endpoint({
|
|
338
|
-
method:
|
|
339
|
-
path:
|
|
340
|
-
baseUrl:
|
|
341
|
-
requestFormat:
|
|
336
|
+
method: 'POST',
|
|
337
|
+
path: '/v1/phone/delete',
|
|
338
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
339
|
+
requestFormat: 'json',
|
|
342
340
|
serializationMethod: {
|
|
343
341
|
body: {},
|
|
344
342
|
},
|
|
@@ -375,10 +373,10 @@ export const postPhoneDelete = endpoint({
|
|
|
375
373
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
376
374
|
*/
|
|
377
375
|
export const postPhoneResend = endpoint({
|
|
378
|
-
method:
|
|
379
|
-
path:
|
|
380
|
-
baseUrl:
|
|
381
|
-
requestFormat:
|
|
376
|
+
method: 'POST',
|
|
377
|
+
path: '/v1/phone/resend',
|
|
378
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
379
|
+
requestFormat: 'json',
|
|
382
380
|
serializationMethod: {
|
|
383
381
|
body: {},
|
|
384
382
|
},
|
|
@@ -414,10 +412,10 @@ export const postPhoneResend = endpoint({
|
|
|
414
412
|
* @param body Roblox.AccountInformation.Api.Models.VerifyPhoneRequest
|
|
415
413
|
*/
|
|
416
414
|
export const postPhoneVerify = endpoint({
|
|
417
|
-
method:
|
|
418
|
-
path:
|
|
419
|
-
baseUrl:
|
|
420
|
-
requestFormat:
|
|
415
|
+
method: 'POST',
|
|
416
|
+
path: '/v1/phone/verify',
|
|
417
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
418
|
+
requestFormat: 'json',
|
|
421
419
|
serializationMethod: {
|
|
422
420
|
body: {},
|
|
423
421
|
},
|
|
@@ -461,21 +459,21 @@ export const postPhoneVerify = endpoint({
|
|
|
461
459
|
* @param onlyShortenTwitter Whether all promotion channels links except for Twitter should be returned as full URLs. If false, all promotion channels will be shortened.
|
|
462
460
|
*/
|
|
463
461
|
export const getPromotionChannels = endpoint({
|
|
464
|
-
method:
|
|
465
|
-
path:
|
|
466
|
-
baseUrl:
|
|
467
|
-
requestFormat:
|
|
462
|
+
method: 'GET',
|
|
463
|
+
path: '/v1/promotion-channels',
|
|
464
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
465
|
+
requestFormat: 'json',
|
|
468
466
|
serializationMethod: {
|
|
469
467
|
alwaysReturnUrls: {
|
|
470
|
-
style:
|
|
468
|
+
style: 'form',
|
|
471
469
|
explode: true,
|
|
472
470
|
},
|
|
473
471
|
filterLink: {
|
|
474
|
-
style:
|
|
472
|
+
style: 'form',
|
|
475
473
|
explode: true,
|
|
476
474
|
},
|
|
477
475
|
onlyShortenTwitter: {
|
|
478
|
-
style:
|
|
476
|
+
style: 'form',
|
|
479
477
|
explode: true,
|
|
480
478
|
},
|
|
481
479
|
},
|
|
@@ -502,10 +500,10 @@ export const getPromotionChannels = endpoint({
|
|
|
502
500
|
* @param body The Roblox.AccountInformation.Api.Models.PromotionChannelsRequest
|
|
503
501
|
*/
|
|
504
502
|
export const postPromotionChannels = endpoint({
|
|
505
|
-
method:
|
|
506
|
-
path:
|
|
507
|
-
baseUrl:
|
|
508
|
-
requestFormat:
|
|
503
|
+
method: 'POST',
|
|
504
|
+
path: '/v1/promotion-channels',
|
|
505
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
506
|
+
requestFormat: 'json',
|
|
509
507
|
serializationMethod: {
|
|
510
508
|
body: {},
|
|
511
509
|
},
|
|
@@ -540,20 +538,20 @@ export const postPromotionChannels = endpoint({
|
|
|
540
538
|
* @param filterLink Whether all promotion channel links should be filtered.
|
|
541
539
|
*/
|
|
542
540
|
export const getUsersUseridPromotionChannels = endpoint({
|
|
543
|
-
method:
|
|
544
|
-
path:
|
|
545
|
-
baseUrl:
|
|
546
|
-
requestFormat:
|
|
541
|
+
method: 'GET',
|
|
542
|
+
path: '/v1/users/:userId/promotion-channels',
|
|
543
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
544
|
+
requestFormat: 'json',
|
|
547
545
|
serializationMethod: {
|
|
548
546
|
userId: {
|
|
549
|
-
style:
|
|
547
|
+
style: 'simple',
|
|
550
548
|
},
|
|
551
549
|
alwaysReturnUrls: {
|
|
552
|
-
style:
|
|
550
|
+
style: 'form',
|
|
553
551
|
explode: true,
|
|
554
552
|
},
|
|
555
553
|
filterLink: {
|
|
556
|
-
style:
|
|
554
|
+
style: 'form',
|
|
557
555
|
explode: true,
|
|
558
556
|
},
|
|
559
557
|
},
|
|
@@ -562,8 +560,7 @@ export const getUsersUseridPromotionChannels = endpoint({
|
|
|
562
560
|
alwaysReturnUrls: z.boolean().optional(),
|
|
563
561
|
filterLink: z.boolean().optional(),
|
|
564
562
|
},
|
|
565
|
-
response:
|
|
566
|
-
Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
563
|
+
response: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
567
564
|
errors: [
|
|
568
565
|
{
|
|
569
566
|
status: 400,
|
|
@@ -577,13 +574,13 @@ export const getUsersUseridPromotionChannels = endpoint({
|
|
|
577
574
|
* @param userId
|
|
578
575
|
*/
|
|
579
576
|
export const getUsersUseridRobloxBadges = endpoint({
|
|
580
|
-
method:
|
|
581
|
-
path:
|
|
582
|
-
baseUrl:
|
|
583
|
-
requestFormat:
|
|
577
|
+
method: 'GET',
|
|
578
|
+
path: '/v1/users/:userId/roblox-badges',
|
|
579
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
580
|
+
requestFormat: 'json',
|
|
584
581
|
serializationMethod: {
|
|
585
582
|
userId: {
|
|
586
|
-
style:
|
|
583
|
+
style: 'simple',
|
|
587
584
|
},
|
|
588
585
|
},
|
|
589
586
|
parameters: {
|