rozod 6.1.1 → 6.3.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/README.md +34 -0
- package/lib/endpoints/accountinformationv1.d.ts +111 -114
- package/lib/endpoints/accountinformationv1.js +1 -5
- package/lib/endpoints/accountsettingsv1.d.ts +114 -76
- package/lib/endpoints/accountsettingsv1.js +22 -1
- package/lib/endpoints/adconfigurationv2.d.ts +204 -98
- package/lib/endpoints/assetdeliveryv1.d.ts +208 -202
- package/lib/endpoints/assetdeliveryv1.js +5 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +154 -148
- package/lib/endpoints/assetdeliveryv2.js +5 -0
- package/lib/endpoints/authv1.d.ts +545 -406
- package/lib/endpoints/authv1.js +53 -2
- package/lib/endpoints/authv2.d.ts +222 -158
- package/lib/endpoints/authv2.js +4 -0
- package/lib/endpoints/authv3.d.ts +25 -22
- package/lib/endpoints/avatarv1.d.ts +161 -83
- package/lib/endpoints/avatarv1.js +79 -3
- package/lib/endpoints/avatarv2.d.ts +111 -51
- package/lib/endpoints/avatarv2.js +58 -3
- package/lib/endpoints/avatarv3.d.ts +48 -22
- package/lib/endpoints/avatarv3.js +24 -1
- package/lib/endpoints/badgesv1.d.ts +94 -111
- package/lib/endpoints/badgesv1.js +0 -20
- package/lib/endpoints/catalogv1.d.ts +216 -250
- package/lib/endpoints/catalogv1.js +13 -75
- package/lib/endpoints/catalogv2.d.ts +73 -40
- package/lib/endpoints/catalogv2.js +6 -1
- package/lib/endpoints/clientsettingsv1.d.ts +35 -33
- package/lib/endpoints/clientsettingsv2.d.ts +71 -57
- package/lib/endpoints/clientsettingsv2.js +1 -0
- package/lib/endpoints/contactsv1.d.ts +26 -25
- package/lib/endpoints/developv1.d.ts +277 -189
- package/lib/endpoints/developv1.js +3 -0
- package/lib/endpoints/developv2.d.ts +101 -62
- package/lib/endpoints/economycreatorstatsv1.d.ts +11 -11
- package/lib/endpoints/economyv1.d.ts +6 -6
- package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
- package/lib/endpoints/followingsv1.d.ts +34 -33
- package/lib/endpoints/followingsv2.d.ts +7 -7
- package/lib/endpoints/friendsv1.d.ts +253 -283
- package/lib/endpoints/friendsv1.js +1 -68
- package/lib/endpoints/gameinternationalizationv1.d.ts +1575 -1444
- package/lib/endpoints/gameinternationalizationv2.d.ts +64 -62
- package/lib/endpoints/gamesv1.d.ts +180 -229
- package/lib/endpoints/gamesv1.js +4 -0
- package/lib/endpoints/gamesv2.d.ts +178 -161
- package/lib/endpoints/groupsv1.d.ts +921 -878
- package/lib/endpoints/groupsv1.js +3 -2
- package/lib/endpoints/groupsv2.d.ts +184 -164
- package/lib/endpoints/inventoryv1.d.ts +133 -90
- package/lib/endpoints/inventoryv2.d.ts +77 -63
- package/lib/endpoints/itemconfigurationv1.d.ts +64 -145
- package/lib/endpoints/itemconfigurationv1.js +1 -89
- package/lib/endpoints/localev1.d.ts +43 -42
- package/lib/endpoints/localizationtablesv1.d.ts +353 -315
- package/lib/endpoints/localizationtablesv1.js +1 -1
- package/lib/endpoints/matchmakingv1.d.ts +190 -184
- package/lib/endpoints/notificationsv2.d.ts +158 -144
- package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
- package/lib/endpoints/presencev1.d.ts +12 -7
- package/lib/endpoints/privatemessagesv1.d.ts +64 -56
- package/lib/endpoints/publishv1.d.ts +32 -32
- package/lib/endpoints/thumbnailsresizerv1.d.ts +53 -52
- package/lib/endpoints/thumbnailsv1.d.ts +362 -292
- package/lib/endpoints/thumbnailsv1.js +1 -0
- package/lib/endpoints/tradesv1.d.ts +262 -70
- package/lib/endpoints/tradesv2.d.ts +157 -72
- package/lib/endpoints/translationrolesv1.d.ts +51 -46
- package/lib/endpoints/twostepverificationv1.d.ts +186 -180
- package/lib/endpoints/twostepverificationv1.js +2 -0
- package/lib/endpoints/usersv1.d.ts +113 -109
- package/lib/index.d.ts +128 -0
- package/lib/index.js +328 -15
- package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
- package/lib/opencloud/v1/asset-permissions.js +9 -3
- package/lib/opencloud/v1/assets.d.ts +59 -32
- package/lib/opencloud/v1/assets.js +77 -41
- package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
- package/lib/opencloud/v1/datastores-ordered.js +62 -20
- package/lib/opencloud/v1/datastores.d.ts +99 -42
- package/lib/opencloud/v1/datastores.js +123 -50
- package/lib/opencloud/v1/developer-products.d.ts +29 -11
- package/lib/opencloud/v1/developer-products.js +37 -15
- package/lib/opencloud/v1/game-passes.d.ts +29 -11
- package/lib/opencloud/v1/game-passes.js +37 -15
- package/lib/opencloud/v1/messaging.d.ts +6 -2
- package/lib/opencloud/v1/messaging.js +8 -3
- package/lib/opencloud/v1/open-eval.d.ts +14 -4
- package/lib/opencloud/v1/open-eval.js +18 -6
- package/lib/opencloud/v1/secrets-store.d.ts +46 -26
- package/lib/opencloud/v1/secrets-store.js +56 -31
- package/lib/opencloud/v1/toolbox.d.ts +14 -6
- package/lib/opencloud/v1/toolbox.js +18 -8
- package/lib/opencloud/v1/universes.d.ts +6 -2
- package/lib/opencloud/v1/universes.js +8 -3
- package/lib/opencloud/v2/cloud.d.ts +854 -395
- package/lib/opencloud/v2/cloud.js +967 -395
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -335,6 +335,40 @@ RoZod automatically handles advanced Roblox security requirements:
|
|
|
335
335
|
- **✅ Hardware-Backed Authentication** - Full HBA signature support
|
|
336
336
|
- **✅ Challenge Handling** - Captchas, 2FA, and other authentication challenges
|
|
337
337
|
- **✅ Cookie Security** - Secure cookie parsing and validation
|
|
338
|
+
- **✅ Cookie Rotation** - Automatic handling of Roblox's cookie rotation
|
|
339
|
+
|
|
340
|
+
### Cookie Rotation Handling
|
|
341
|
+
|
|
342
|
+
Roblox is gradually implementing `.ROBLOSECURITY` cookie rotation for improved security. RoZod automatically detects when cookies are rotated and can notify you to persist the new values:
|
|
343
|
+
|
|
344
|
+
```ts
|
|
345
|
+
import { configureServer, refreshCookie, getCookies } from 'rozod';
|
|
346
|
+
|
|
347
|
+
configureServer({
|
|
348
|
+
cookies: process.env.ROBLOX_COOKIE,
|
|
349
|
+
onCookieRefresh: async ({ oldCookie, newCookie, poolIndex }) => {
|
|
350
|
+
// Roblox rotated the cookie - persist the new value
|
|
351
|
+
await db.updateCookie(poolIndex, newCookie);
|
|
352
|
+
console.log('Cookie rotated and saved!');
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
The internal cookie pool updates automatically, so the callback is only needed if you want to persist cookies across restarts.
|
|
358
|
+
|
|
359
|
+
You can also proactively refresh cookies before they expire:
|
|
360
|
+
|
|
361
|
+
```ts
|
|
362
|
+
// Refresh on a schedule or before important operations
|
|
363
|
+
const result = await refreshCookie(0);
|
|
364
|
+
if (result.success) {
|
|
365
|
+
await db.updateCookie(0, result.newCookie);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// Utility functions
|
|
369
|
+
const allCookies = getCookies(); // Get current cookie values
|
|
370
|
+
updateCookie(0, 'new_value'); // Manually update a cookie
|
|
371
|
+
```
|
|
338
372
|
|
|
339
373
|
### Challenge Handling
|
|
340
374
|
|
|
@@ -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,41 +45,37 @@ 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
|
-
verificationChannel: z.string(),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
});
|
|
48
|
+
const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse =
|
|
49
|
+
z.object({ verificationChannel: z.string(), data: z.string() });
|
|
50
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z.object(
|
|
51
|
+
{
|
|
52
|
+
promotionChannelsVisibilityPrivacy: z.string(),
|
|
53
|
+
facebook: z.string(),
|
|
54
|
+
twitter: z.string(),
|
|
55
|
+
youtube: z.string(),
|
|
56
|
+
twitch: z.string(),
|
|
57
|
+
}
|
|
58
|
+
);
|
|
60
59
|
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z.object({
|
|
61
60
|
facebook: z.string(),
|
|
62
61
|
twitter: z.string(),
|
|
63
62
|
youtube: z.string(),
|
|
64
63
|
twitch: z.string(),
|
|
65
|
-
guilded: z.string(),
|
|
66
64
|
promotionChannelsVisibilityPrivacy: z.string(),
|
|
67
65
|
});
|
|
68
|
-
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z.object(
|
|
69
|
-
userId: z.number().int(),
|
|
70
|
-
|
|
71
|
-
code: z.string(),
|
|
72
|
-
});
|
|
66
|
+
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z.object(
|
|
67
|
+
{ userId: z.number().int(), name: z.string(), code: z.string() }
|
|
68
|
+
);
|
|
73
69
|
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = z.object({
|
|
74
70
|
code: z.string(),
|
|
75
71
|
});
|
|
76
|
-
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
72
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
|
|
73
|
+
z.object({
|
|
74
|
+
facebook: z.string(),
|
|
75
|
+
twitter: z.string(),
|
|
76
|
+
youtube: z.string(),
|
|
77
|
+
twitch: z.string(),
|
|
78
|
+
});
|
|
83
79
|
const Roblox_AccountInformation_Api_RobloxBadgeResponse = z.object({
|
|
84
80
|
id: z.number().int(),
|
|
85
81
|
name: z.string(),
|
|
@@ -102,10 +98,10 @@ const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({
|
|
|
102
98
|
* @summary Get the user's birthdate
|
|
103
99
|
*/
|
|
104
100
|
export const getBirthdate = endpoint({
|
|
105
|
-
method:
|
|
106
|
-
path:
|
|
107
|
-
baseUrl:
|
|
108
|
-
requestFormat:
|
|
101
|
+
method: "GET",
|
|
102
|
+
path: "/v1/birthdate",
|
|
103
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
104
|
+
requestFormat: "json",
|
|
109
105
|
response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
|
|
110
106
|
errors: [
|
|
111
107
|
{
|
|
@@ -123,10 +119,10 @@ export const getBirthdate = endpoint({
|
|
|
123
119
|
* @summary Get the user's description
|
|
124
120
|
*/
|
|
125
121
|
export const getDescription = endpoint({
|
|
126
|
-
method:
|
|
127
|
-
path:
|
|
128
|
-
baseUrl:
|
|
129
|
-
requestFormat:
|
|
122
|
+
method: "GET",
|
|
123
|
+
path: "/v1/description",
|
|
124
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
125
|
+
requestFormat: "json",
|
|
130
126
|
response: z.object({ description: z.string() }),
|
|
131
127
|
errors: [
|
|
132
128
|
{
|
|
@@ -145,10 +141,10 @@ export const getDescription = endpoint({
|
|
|
145
141
|
* @param body The Roblox.AccountInformation.Api.Models.DescriptionRequest
|
|
146
142
|
*/
|
|
147
143
|
export const postDescription = endpoint({
|
|
148
|
-
method:
|
|
149
|
-
path:
|
|
150
|
-
baseUrl:
|
|
151
|
-
requestFormat:
|
|
144
|
+
method: "POST",
|
|
145
|
+
path: "/v1/description",
|
|
146
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
147
|
+
requestFormat: "json",
|
|
152
148
|
serializationMethod: {
|
|
153
149
|
body: {},
|
|
154
150
|
},
|
|
@@ -184,10 +180,10 @@ export const postDescription = endpoint({
|
|
|
184
180
|
* @param body Roblox.AccountInformation.Api.Models.VerifyEmailRequest
|
|
185
181
|
*/
|
|
186
182
|
export const postEmailVerify = endpoint({
|
|
187
|
-
method:
|
|
188
|
-
path:
|
|
189
|
-
baseUrl:
|
|
190
|
-
requestFormat:
|
|
183
|
+
method: "POST",
|
|
184
|
+
path: "/v1/email/verify",
|
|
185
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
186
|
+
requestFormat: "json",
|
|
191
187
|
serializationMethod: {
|
|
192
188
|
body: {},
|
|
193
189
|
},
|
|
@@ -206,10 +202,10 @@ export const postEmailVerify = endpoint({
|
|
|
206
202
|
* @summary Get the user's gender
|
|
207
203
|
*/
|
|
208
204
|
export const getGender = endpoint({
|
|
209
|
-
method:
|
|
210
|
-
path:
|
|
211
|
-
baseUrl:
|
|
212
|
-
requestFormat:
|
|
205
|
+
method: "GET",
|
|
206
|
+
path: "/v1/gender",
|
|
207
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
208
|
+
requestFormat: "json",
|
|
213
209
|
response: z.object({ gender: z.number().int() }),
|
|
214
210
|
errors: [
|
|
215
211
|
{
|
|
@@ -228,10 +224,10 @@ export const getGender = endpoint({
|
|
|
228
224
|
* @param body The Roblox.AccountInformation.Api.Models.GenderRequest
|
|
229
225
|
*/
|
|
230
226
|
export const postGender = endpoint({
|
|
231
|
-
method:
|
|
232
|
-
path:
|
|
233
|
-
baseUrl:
|
|
234
|
-
requestFormat:
|
|
227
|
+
method: "POST",
|
|
228
|
+
path: "/v1/gender",
|
|
229
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
230
|
+
requestFormat: "json",
|
|
235
231
|
serializationMethod: {
|
|
236
232
|
body: {},
|
|
237
233
|
},
|
|
@@ -263,10 +259,10 @@ export const postGender = endpoint({
|
|
|
263
259
|
* @summary Get the metadata
|
|
264
260
|
*/
|
|
265
261
|
export const getMetadata = endpoint({
|
|
266
|
-
method:
|
|
267
|
-
path:
|
|
268
|
-
baseUrl:
|
|
269
|
-
requestFormat:
|
|
262
|
+
method: "GET",
|
|
263
|
+
path: "/v1/metadata",
|
|
264
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
265
|
+
requestFormat: "json",
|
|
270
266
|
response: Roblox_AccountInformation_Api_Models_MetadataResponse,
|
|
271
267
|
errors: [],
|
|
272
268
|
});
|
|
@@ -275,10 +271,10 @@ export const getMetadata = endpoint({
|
|
|
275
271
|
* @summary Get Verified Phone Number
|
|
276
272
|
*/
|
|
277
273
|
export const getPhone = endpoint({
|
|
278
|
-
method:
|
|
279
|
-
path:
|
|
280
|
-
baseUrl:
|
|
281
|
-
requestFormat:
|
|
274
|
+
method: "GET",
|
|
275
|
+
path: "/v1/phone",
|
|
276
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
277
|
+
requestFormat: "json",
|
|
282
278
|
response: Roblox_AccountInformation_Api_Models_PhoneResponse,
|
|
283
279
|
errors: [
|
|
284
280
|
{
|
|
@@ -297,16 +293,17 @@ export const getPhone = endpoint({
|
|
|
297
293
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
298
294
|
*/
|
|
299
295
|
export const postPhone = endpoint({
|
|
300
|
-
method:
|
|
301
|
-
path:
|
|
302
|
-
baseUrl:
|
|
303
|
-
requestFormat:
|
|
296
|
+
method: "POST",
|
|
297
|
+
path: "/v1/phone",
|
|
298
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
299
|
+
requestFormat: "json",
|
|
304
300
|
serializationMethod: {
|
|
305
301
|
body: {},
|
|
306
302
|
},
|
|
307
303
|
parameters: {},
|
|
308
304
|
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
309
|
-
response:
|
|
305
|
+
response:
|
|
306
|
+
Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
310
307
|
errors: [
|
|
311
308
|
{
|
|
312
309
|
status: 400,
|
|
@@ -344,10 +341,10 @@ export const postPhone = endpoint({
|
|
|
344
341
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
345
342
|
*/
|
|
346
343
|
export const postPhoneDelete = endpoint({
|
|
347
|
-
method:
|
|
348
|
-
path:
|
|
349
|
-
baseUrl:
|
|
350
|
-
requestFormat:
|
|
344
|
+
method: "POST",
|
|
345
|
+
path: "/v1/phone/delete",
|
|
346
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
347
|
+
requestFormat: "json",
|
|
351
348
|
serializationMethod: {
|
|
352
349
|
body: {},
|
|
353
350
|
},
|
|
@@ -384,10 +381,10 @@ export const postPhoneDelete = endpoint({
|
|
|
384
381
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
385
382
|
*/
|
|
386
383
|
export const postPhoneResend = endpoint({
|
|
387
|
-
method:
|
|
388
|
-
path:
|
|
389
|
-
baseUrl:
|
|
390
|
-
requestFormat:
|
|
384
|
+
method: "POST",
|
|
385
|
+
path: "/v1/phone/resend",
|
|
386
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
387
|
+
requestFormat: "json",
|
|
391
388
|
serializationMethod: {
|
|
392
389
|
body: {},
|
|
393
390
|
},
|
|
@@ -423,10 +420,10 @@ export const postPhoneResend = endpoint({
|
|
|
423
420
|
* @param body Roblox.AccountInformation.Api.Models.VerifyPhoneRequest
|
|
424
421
|
*/
|
|
425
422
|
export const postPhoneVerify = endpoint({
|
|
426
|
-
method:
|
|
427
|
-
path:
|
|
428
|
-
baseUrl:
|
|
429
|
-
requestFormat:
|
|
423
|
+
method: "POST",
|
|
424
|
+
path: "/v1/phone/verify",
|
|
425
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
426
|
+
requestFormat: "json",
|
|
430
427
|
serializationMethod: {
|
|
431
428
|
body: {},
|
|
432
429
|
},
|
|
@@ -470,21 +467,21 @@ export const postPhoneVerify = endpoint({
|
|
|
470
467
|
* @param onlyShortenTwitter Whether all promotion channels links except for Twitter should be returned as full URLs. If false, all promotion channels will be shortened.
|
|
471
468
|
*/
|
|
472
469
|
export const getPromotionChannels = endpoint({
|
|
473
|
-
method:
|
|
474
|
-
path:
|
|
475
|
-
baseUrl:
|
|
476
|
-
requestFormat:
|
|
470
|
+
method: "GET",
|
|
471
|
+
path: "/v1/promotion-channels",
|
|
472
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
473
|
+
requestFormat: "json",
|
|
477
474
|
serializationMethod: {
|
|
478
475
|
alwaysReturnUrls: {
|
|
479
|
-
style:
|
|
476
|
+
style: "form",
|
|
480
477
|
explode: true,
|
|
481
478
|
},
|
|
482
479
|
filterLink: {
|
|
483
|
-
style:
|
|
480
|
+
style: "form",
|
|
484
481
|
explode: true,
|
|
485
482
|
},
|
|
486
483
|
onlyShortenTwitter: {
|
|
487
|
-
style:
|
|
484
|
+
style: "form",
|
|
488
485
|
explode: true,
|
|
489
486
|
},
|
|
490
487
|
},
|
|
@@ -511,10 +508,10 @@ export const getPromotionChannels = endpoint({
|
|
|
511
508
|
* @param body The Roblox.AccountInformation.Api.Models.PromotionChannelsRequest
|
|
512
509
|
*/
|
|
513
510
|
export const postPromotionChannels = endpoint({
|
|
514
|
-
method:
|
|
515
|
-
path:
|
|
516
|
-
baseUrl:
|
|
517
|
-
requestFormat:
|
|
511
|
+
method: "POST",
|
|
512
|
+
path: "/v1/promotion-channels",
|
|
513
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
514
|
+
requestFormat: "json",
|
|
518
515
|
serializationMethod: {
|
|
519
516
|
body: {},
|
|
520
517
|
},
|
|
@@ -528,8 +525,7 @@ export const postPromotionChannels = endpoint({
|
|
|
528
525
|
11: The Facebook profile url is invalid.
|
|
529
526
|
12: The Twitter handle is invalid.
|
|
530
527
|
13: The YouTube url is invalid.
|
|
531
|
-
14: The Twitch profile url is invalid
|
|
532
|
-
15: The Guilded profile url is invalid.`,
|
|
528
|
+
14: The Twitch profile url is invalid.`,
|
|
533
529
|
},
|
|
534
530
|
{
|
|
535
531
|
status: 401,
|
|
@@ -547,10 +543,10 @@ export const postPromotionChannels = endpoint({
|
|
|
547
543
|
* @summary Gets a star code affiliate supporter for the authenticated user
|
|
548
544
|
*/
|
|
549
545
|
export const getStarCodeAffiliates = endpoint({
|
|
550
|
-
method:
|
|
551
|
-
path:
|
|
552
|
-
baseUrl:
|
|
553
|
-
requestFormat:
|
|
546
|
+
method: "GET",
|
|
547
|
+
path: "/v1/star-code-affiliates",
|
|
548
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
549
|
+
requestFormat: "json",
|
|
554
550
|
response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
555
551
|
errors: [
|
|
556
552
|
{
|
|
@@ -569,10 +565,10 @@ export const getStarCodeAffiliates = endpoint({
|
|
|
569
565
|
* @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
|
|
570
566
|
*/
|
|
571
567
|
export const postStarCodeAffiliates = endpoint({
|
|
572
|
-
method:
|
|
573
|
-
path:
|
|
574
|
-
baseUrl:
|
|
575
|
-
requestFormat:
|
|
568
|
+
method: "POST",
|
|
569
|
+
path: "/v1/star-code-affiliates",
|
|
570
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
571
|
+
requestFormat: "json",
|
|
576
572
|
serializationMethod: {
|
|
577
573
|
body: {},
|
|
578
574
|
},
|
|
@@ -603,10 +599,10 @@ export const postStarCodeAffiliates = endpoint({
|
|
|
603
599
|
* @summary Removes the star code affiliate supporter for the authenticated user
|
|
604
600
|
*/
|
|
605
601
|
export const deleteStarCodeAffiliates = endpoint({
|
|
606
|
-
method:
|
|
607
|
-
path:
|
|
608
|
-
baseUrl:
|
|
609
|
-
requestFormat:
|
|
602
|
+
method: "DELETE",
|
|
603
|
+
path: "/v1/star-code-affiliates",
|
|
604
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
605
|
+
requestFormat: "json",
|
|
610
606
|
response: z.object({}),
|
|
611
607
|
errors: [
|
|
612
608
|
{
|
|
@@ -631,20 +627,20 @@ export const deleteStarCodeAffiliates = endpoint({
|
|
|
631
627
|
* @param filterLink Whether all promotion channel links should be filtered.
|
|
632
628
|
*/
|
|
633
629
|
export const getUsersUseridPromotionChannels = endpoint({
|
|
634
|
-
method:
|
|
635
|
-
path:
|
|
636
|
-
baseUrl:
|
|
637
|
-
requestFormat:
|
|
630
|
+
method: "GET",
|
|
631
|
+
path: "/v1/users/:userId/promotion-channels",
|
|
632
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
633
|
+
requestFormat: "json",
|
|
638
634
|
serializationMethod: {
|
|
639
635
|
userId: {
|
|
640
|
-
style:
|
|
636
|
+
style: "simple",
|
|
641
637
|
},
|
|
642
638
|
alwaysReturnUrls: {
|
|
643
|
-
style:
|
|
639
|
+
style: "form",
|
|
644
640
|
explode: true,
|
|
645
641
|
},
|
|
646
642
|
filterLink: {
|
|
647
|
-
style:
|
|
643
|
+
style: "form",
|
|
648
644
|
explode: true,
|
|
649
645
|
},
|
|
650
646
|
},
|
|
@@ -653,7 +649,8 @@ export const getUsersUseridPromotionChannels = endpoint({
|
|
|
653
649
|
alwaysReturnUrls: z.boolean().optional(),
|
|
654
650
|
filterLink: z.boolean().optional(),
|
|
655
651
|
},
|
|
656
|
-
response:
|
|
652
|
+
response:
|
|
653
|
+
Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
657
654
|
errors: [
|
|
658
655
|
{
|
|
659
656
|
status: 400,
|
|
@@ -667,13 +664,13 @@ export const getUsersUseridPromotionChannels = endpoint({
|
|
|
667
664
|
* @param userId
|
|
668
665
|
*/
|
|
669
666
|
export const getUsersUseridRobloxBadges = endpoint({
|
|
670
|
-
method:
|
|
671
|
-
path:
|
|
672
|
-
baseUrl:
|
|
673
|
-
requestFormat:
|
|
667
|
+
method: "GET",
|
|
668
|
+
path: "/v1/users/:userId/roblox-badges",
|
|
669
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
670
|
+
requestFormat: "json",
|
|
674
671
|
serializationMethod: {
|
|
675
672
|
userId: {
|
|
676
|
-
style:
|
|
673
|
+
style: "simple",
|
|
677
674
|
},
|
|
678
675
|
},
|
|
679
676
|
parameters: {
|
|
@@ -57,14 +57,12 @@ const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = zod_1.z.o
|
|
|
57
57
|
twitter: zod_1.z.string(),
|
|
58
58
|
youtube: zod_1.z.string(),
|
|
59
59
|
twitch: zod_1.z.string(),
|
|
60
|
-
guilded: zod_1.z.string(),
|
|
61
60
|
});
|
|
62
61
|
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = zod_1.z.object({
|
|
63
62
|
facebook: zod_1.z.string(),
|
|
64
63
|
twitter: zod_1.z.string(),
|
|
65
64
|
youtube: zod_1.z.string(),
|
|
66
65
|
twitch: zod_1.z.string(),
|
|
67
|
-
guilded: zod_1.z.string(),
|
|
68
66
|
promotionChannelsVisibilityPrivacy: zod_1.z.string(),
|
|
69
67
|
});
|
|
70
68
|
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = zod_1.z.object({
|
|
@@ -80,7 +78,6 @@ const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = z
|
|
|
80
78
|
twitter: zod_1.z.string(),
|
|
81
79
|
youtube: zod_1.z.string(),
|
|
82
80
|
twitch: zod_1.z.string(),
|
|
83
|
-
guilded: zod_1.z.string(),
|
|
84
81
|
});
|
|
85
82
|
const Roblox_AccountInformation_Api_RobloxBadgeResponse = zod_1.z.object({
|
|
86
83
|
id: zod_1.z.number().int(),
|
|
@@ -529,8 +526,7 @@ exports.postPromotionChannels = (0, __1.endpoint)({
|
|
|
529
526
|
11: The Facebook profile url is invalid.
|
|
530
527
|
12: The Twitter handle is invalid.
|
|
531
528
|
13: The YouTube url is invalid.
|
|
532
|
-
14: The Twitch profile url is invalid
|
|
533
|
-
15: The Guilded profile url is invalid.`,
|
|
529
|
+
14: The Twitch profile url is invalid.`,
|
|
534
530
|
},
|
|
535
531
|
{
|
|
536
532
|
status: 401,
|