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_AccountSettings_Api_Models_Response_UserAccountCountry = z.object({
|
|
5
5
|
countryName: z.string(),
|
|
@@ -8,23 +8,20 @@ const Roblox_AccountSettings_Api_Models_Response_UserAccountCountry = z.object({
|
|
|
8
8
|
localizedName: z.string(),
|
|
9
9
|
countryId: z.number().int(),
|
|
10
10
|
});
|
|
11
|
-
const Roblox_AccountSettings_Api_Models_Response_AccountCountrySettingsResponse =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
11
|
+
const Roblox_AccountSettings_Api_Models_Response_AccountCountrySettingsResponse = z.object({
|
|
12
|
+
value: Roblox_AccountSettings_Api_Models_Response_UserAccountCountry,
|
|
13
|
+
});
|
|
15
14
|
const Roblox_AccountSettings_Api_UpdateAccountCountryRequest = z.object({
|
|
16
15
|
targetCountryId: z.number().int(),
|
|
17
16
|
});
|
|
18
|
-
const Roblox_AccountSettings_Api_Models_Response_UpdateAccountCountryResponse =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
z.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
IsContentControlsEnabled: z.boolean(),
|
|
27
|
-
});
|
|
17
|
+
const Roblox_AccountSettings_Api_Models_Response_UpdateAccountCountryResponse = z.object({});
|
|
18
|
+
const Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel = z.object({
|
|
19
|
+
IsAccountsRestrictionsSpamBugFixEnabled: z.boolean(),
|
|
20
|
+
MaximumParentalControlsMonthlySpendLimitInUSD: z.number().int(),
|
|
21
|
+
IsParentalMonthlyLimitInUIEnabled: z.boolean(),
|
|
22
|
+
IsParentalNotificationSettingsInUIEnabled: z.boolean(),
|
|
23
|
+
IsContentControlsEnabled: z.boolean(),
|
|
24
|
+
});
|
|
28
25
|
const Roblox_AccountSettings_Api_EmailResponse = z.object({
|
|
29
26
|
emailAddress: z.string(),
|
|
30
27
|
verified: z.boolean(),
|
|
@@ -54,43 +51,25 @@ const Roblox_AccountSettings_Api_TradePrivacyResponse = z.object({
|
|
|
54
51
|
tradePrivacy: z.string(),
|
|
55
52
|
});
|
|
56
53
|
const Roblox_AccountSettings_Api_UpdateTradePrivacyRequest = z.object({
|
|
57
|
-
tradePrivacy: z.enum([
|
|
58
|
-
"Undefined",
|
|
59
|
-
"Disabled",
|
|
60
|
-
"NoOne",
|
|
61
|
-
"Friends",
|
|
62
|
-
"TopFriends",
|
|
63
|
-
"Following",
|
|
64
|
-
"Followers",
|
|
65
|
-
"All",
|
|
66
|
-
]),
|
|
54
|
+
tradePrivacy: z.enum(['Undefined', 'Disabled', 'NoOne', 'Friends', 'TopFriends', 'Following', 'Followers', 'All']),
|
|
67
55
|
});
|
|
68
56
|
const Roblox_AccountSettings_Api_TradePrivacyUpdateResponse = z.object({
|
|
69
|
-
tradePrivacy: z.enum([
|
|
70
|
-
"Undefined",
|
|
71
|
-
"Disabled",
|
|
72
|
-
"NoOne",
|
|
73
|
-
"Friends",
|
|
74
|
-
"TopFriends",
|
|
75
|
-
"Following",
|
|
76
|
-
"Followers",
|
|
77
|
-
"All",
|
|
78
|
-
]),
|
|
57
|
+
tradePrivacy: z.enum(['Undefined', 'Disabled', 'NoOne', 'Friends', 'TopFriends', 'Following', 'Followers', 'All']),
|
|
79
58
|
inventoryPrivacy: z.enum([
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
59
|
+
'NoOne',
|
|
60
|
+
'Friends',
|
|
61
|
+
'FriendsAndFollowing',
|
|
62
|
+
'FriendsFollowingAndFollowers',
|
|
63
|
+
'AllAuthenticatedUsers',
|
|
64
|
+
'AllUsers',
|
|
86
65
|
]),
|
|
87
|
-
privacySettingResponse: z.enum([
|
|
66
|
+
privacySettingResponse: z.enum(['Success', 'Conflict']),
|
|
88
67
|
});
|
|
89
68
|
const Roblox_AccountSettings_Api_TradeValueResponse = z.object({
|
|
90
69
|
tradeValue: z.string(),
|
|
91
70
|
});
|
|
92
71
|
const Roblox_AccountSettings_Api_TradeValueRequest = z.object({
|
|
93
|
-
tradeValue: z.enum([
|
|
72
|
+
tradeValue: z.enum(['Undefined', 'None', 'Low', 'Medium', 'High']),
|
|
94
73
|
});
|
|
95
74
|
const Roblox_AccountSettings_Api_SendVerifyEmailRequest = z.object({
|
|
96
75
|
freeItem: z.boolean(),
|
|
@@ -102,12 +81,11 @@ const Roblox_AccountSettings_Api_SendVerifyEmailRequest = z.object({
|
|
|
102
81
|
* @summary Get a user's current account country setting.
|
|
103
82
|
*/
|
|
104
83
|
export const getAccountSettingsAccountCountry = endpoint({
|
|
105
|
-
method:
|
|
106
|
-
path:
|
|
107
|
-
baseUrl:
|
|
108
|
-
requestFormat:
|
|
109
|
-
response:
|
|
110
|
-
Roblox_AccountSettings_Api_Models_Response_AccountCountrySettingsResponse,
|
|
84
|
+
method: 'GET',
|
|
85
|
+
path: '/v1/account/settings/account-country',
|
|
86
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
87
|
+
requestFormat: 'json',
|
|
88
|
+
response: Roblox_AccountSettings_Api_Models_Response_AccountCountrySettingsResponse,
|
|
111
89
|
errors: [
|
|
112
90
|
{
|
|
113
91
|
status: 401,
|
|
@@ -121,10 +99,10 @@ export const getAccountSettingsAccountCountry = endpoint({
|
|
|
121
99
|
* @param body
|
|
122
100
|
*/
|
|
123
101
|
export const postAccountSettingsAccountCountry = endpoint({
|
|
124
|
-
method:
|
|
125
|
-
path:
|
|
126
|
-
baseUrl:
|
|
127
|
-
requestFormat:
|
|
102
|
+
method: 'POST',
|
|
103
|
+
path: '/v1/account/settings/account-country',
|
|
104
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
105
|
+
requestFormat: 'json',
|
|
128
106
|
serializationMethod: {
|
|
129
107
|
body: {},
|
|
130
108
|
},
|
|
@@ -160,10 +138,10 @@ export const postAccountSettingsAccountCountry = endpoint({
|
|
|
160
138
|
* @summary Returns metadata used by the account settings page
|
|
161
139
|
*/
|
|
162
140
|
export const getAccountSettingsMetadata = endpoint({
|
|
163
|
-
method:
|
|
164
|
-
path:
|
|
165
|
-
baseUrl:
|
|
166
|
-
requestFormat:
|
|
141
|
+
method: 'GET',
|
|
142
|
+
path: '/v1/account/settings/metadata',
|
|
143
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
144
|
+
requestFormat: 'json',
|
|
167
145
|
response: Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel,
|
|
168
146
|
errors: [
|
|
169
147
|
{
|
|
@@ -177,10 +155,10 @@ export const getAccountSettingsMetadata = endpoint({
|
|
|
177
155
|
* @summary Gets the authenticated user's email address and verified status
|
|
178
156
|
*/
|
|
179
157
|
export const getEmail = endpoint({
|
|
180
|
-
method:
|
|
181
|
-
path:
|
|
182
|
-
baseUrl:
|
|
183
|
-
requestFormat:
|
|
158
|
+
method: 'GET',
|
|
159
|
+
path: '/v1/email',
|
|
160
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
161
|
+
requestFormat: 'json',
|
|
184
162
|
response: Roblox_AccountSettings_Api_EmailResponse,
|
|
185
163
|
errors: [
|
|
186
164
|
{
|
|
@@ -195,10 +173,10 @@ export const getEmail = endpoint({
|
|
|
195
173
|
* @param body The request body.
|
|
196
174
|
*/
|
|
197
175
|
export const postEmail = endpoint({
|
|
198
|
-
method:
|
|
199
|
-
path:
|
|
200
|
-
baseUrl:
|
|
201
|
-
requestFormat:
|
|
176
|
+
method: 'POST',
|
|
177
|
+
path: '/v1/email',
|
|
178
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
179
|
+
requestFormat: 'json',
|
|
202
180
|
serializationMethod: {
|
|
203
181
|
body: {},
|
|
204
182
|
},
|
|
@@ -243,10 +221,10 @@ export const postEmail = endpoint({
|
|
|
243
221
|
* @param body The request body.
|
|
244
222
|
*/
|
|
245
223
|
export const patchEmail = endpoint({
|
|
246
|
-
method:
|
|
247
|
-
path:
|
|
248
|
-
baseUrl:
|
|
249
|
-
requestFormat:
|
|
224
|
+
method: 'PATCH',
|
|
225
|
+
path: '/v1/email',
|
|
226
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
227
|
+
requestFormat: 'json',
|
|
250
228
|
serializationMethod: {
|
|
251
229
|
body: {},
|
|
252
230
|
},
|
|
@@ -291,10 +269,10 @@ export const patchEmail = endpoint({
|
|
|
291
269
|
* @param body The request body.
|
|
292
270
|
*/
|
|
293
271
|
export const postEmailVerify = endpoint({
|
|
294
|
-
method:
|
|
295
|
-
path:
|
|
296
|
-
baseUrl:
|
|
297
|
-
requestFormat:
|
|
272
|
+
method: 'POST',
|
|
273
|
+
path: '/v1/email/verify',
|
|
274
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
275
|
+
requestFormat: 'json',
|
|
298
276
|
serializationMethod: {
|
|
299
277
|
body: {},
|
|
300
278
|
},
|
|
@@ -335,10 +313,10 @@ export const postEmailVerify = endpoint({
|
|
|
335
313
|
* @summary Gets the authenticated user's verified email and pending (unverified) email if one exists
|
|
336
314
|
*/
|
|
337
315
|
export const getEmails = endpoint({
|
|
338
|
-
method:
|
|
339
|
-
path:
|
|
340
|
-
baseUrl:
|
|
341
|
-
requestFormat:
|
|
316
|
+
method: 'GET',
|
|
317
|
+
path: '/v1/emails',
|
|
318
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
319
|
+
requestFormat: 'json',
|
|
342
320
|
response: Roblox_AccountSettings_Api_CurrentEmailsResponse,
|
|
343
321
|
errors: [
|
|
344
322
|
{
|
|
@@ -354,16 +332,16 @@ export const getEmails = endpoint({
|
|
|
354
332
|
* @param consumerId The consumer's theme configuration to get. If the consumerType is User always return the AuthenticatedUser's theme type.
|
|
355
333
|
*/
|
|
356
334
|
export const getThemesConsumertypeConsumerid = endpoint({
|
|
357
|
-
method:
|
|
358
|
-
path:
|
|
359
|
-
baseUrl:
|
|
360
|
-
requestFormat:
|
|
335
|
+
method: 'GET',
|
|
336
|
+
path: '/v1/themes/:consumerType/:consumerId',
|
|
337
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
338
|
+
requestFormat: 'json',
|
|
361
339
|
serializationMethod: {
|
|
362
340
|
consumerType: {
|
|
363
|
-
style:
|
|
341
|
+
style: 'simple',
|
|
364
342
|
},
|
|
365
343
|
consumerId: {
|
|
366
|
-
style:
|
|
344
|
+
style: 'simple',
|
|
367
345
|
},
|
|
368
346
|
},
|
|
369
347
|
parameters: {
|
|
@@ -390,17 +368,17 @@ export const getThemesConsumertypeConsumerid = endpoint({
|
|
|
390
368
|
* @param consumerId The consumer's theme configuration to modify. If the consumerType is User always modify the AuthenticatedUser's theme type.
|
|
391
369
|
*/
|
|
392
370
|
export const patchThemesConsumertypeConsumerid = endpoint({
|
|
393
|
-
method:
|
|
394
|
-
path:
|
|
395
|
-
baseUrl:
|
|
396
|
-
requestFormat:
|
|
371
|
+
method: 'PATCH',
|
|
372
|
+
path: '/v1/themes/:consumerType/:consumerId',
|
|
373
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
374
|
+
requestFormat: 'json',
|
|
397
375
|
serializationMethod: {
|
|
398
376
|
body: {},
|
|
399
377
|
consumerType: {
|
|
400
|
-
style:
|
|
378
|
+
style: 'simple',
|
|
401
379
|
},
|
|
402
380
|
consumerId: {
|
|
403
|
-
style:
|
|
381
|
+
style: 'simple',
|
|
404
382
|
},
|
|
405
383
|
},
|
|
406
384
|
parameters: {
|
|
@@ -429,10 +407,10 @@ export const patchThemesConsumertypeConsumerid = endpoint({
|
|
|
429
407
|
* @summary returns all the enabled theme types.
|
|
430
408
|
*/
|
|
431
409
|
export const getThemesTypes = endpoint({
|
|
432
|
-
method:
|
|
433
|
-
path:
|
|
434
|
-
baseUrl:
|
|
435
|
-
requestFormat:
|
|
410
|
+
method: 'GET',
|
|
411
|
+
path: '/v1/themes/types',
|
|
412
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
413
|
+
requestFormat: 'json',
|
|
436
414
|
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_,
|
|
437
415
|
errors: [],
|
|
438
416
|
});
|
|
@@ -441,10 +419,10 @@ export const getThemesTypes = endpoint({
|
|
|
441
419
|
* @summary Get a user's trade privacy setting
|
|
442
420
|
*/
|
|
443
421
|
export const getTradePrivacy = endpoint({
|
|
444
|
-
method:
|
|
445
|
-
path:
|
|
446
|
-
baseUrl:
|
|
447
|
-
requestFormat:
|
|
422
|
+
method: 'GET',
|
|
423
|
+
path: '/v1/trade-privacy',
|
|
424
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
425
|
+
requestFormat: 'json',
|
|
448
426
|
response: z.object({ tradePrivacy: z.string() }),
|
|
449
427
|
errors: [
|
|
450
428
|
{
|
|
@@ -459,10 +437,10 @@ export const getTradePrivacy = endpoint({
|
|
|
459
437
|
* @param body
|
|
460
438
|
*/
|
|
461
439
|
export const postTradePrivacy = endpoint({
|
|
462
|
-
method:
|
|
463
|
-
path:
|
|
464
|
-
baseUrl:
|
|
465
|
-
requestFormat:
|
|
440
|
+
method: 'POST',
|
|
441
|
+
path: '/v1/trade-privacy',
|
|
442
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
443
|
+
requestFormat: 'json',
|
|
466
444
|
serializationMethod: {
|
|
467
445
|
body: {},
|
|
468
446
|
},
|
|
@@ -492,10 +470,10 @@ export const postTradePrivacy = endpoint({
|
|
|
492
470
|
* @summary Get a user's trade quality filter setting
|
|
493
471
|
*/
|
|
494
472
|
export const getTradeValue = endpoint({
|
|
495
|
-
method:
|
|
496
|
-
path:
|
|
497
|
-
baseUrl:
|
|
498
|
-
requestFormat:
|
|
473
|
+
method: 'GET',
|
|
474
|
+
path: '/v1/trade-value',
|
|
475
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
476
|
+
requestFormat: 'json',
|
|
499
477
|
response: z.object({ tradeValue: z.string() }),
|
|
500
478
|
errors: [
|
|
501
479
|
{
|
|
@@ -510,10 +488,10 @@ export const getTradeValue = endpoint({
|
|
|
510
488
|
* @param body
|
|
511
489
|
*/
|
|
512
490
|
export const postTradeValue = endpoint({
|
|
513
|
-
method:
|
|
514
|
-
path:
|
|
515
|
-
baseUrl:
|
|
516
|
-
requestFormat:
|
|
491
|
+
method: 'POST',
|
|
492
|
+
path: '/v1/trade-value',
|
|
493
|
+
baseUrl: 'https://accountsettings.roblox.com',
|
|
494
|
+
requestFormat: 'json',
|
|
517
495
|
serializationMethod: {
|
|
518
496
|
body: {},
|
|
519
497
|
},
|