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.
Files changed (98) hide show
  1. package/README.md +34 -0
  2. package/lib/endpoints/accountinformationv1.d.ts +111 -114
  3. package/lib/endpoints/accountinformationv1.js +1 -5
  4. package/lib/endpoints/accountsettingsv1.d.ts +114 -76
  5. package/lib/endpoints/accountsettingsv1.js +22 -1
  6. package/lib/endpoints/adconfigurationv2.d.ts +204 -98
  7. package/lib/endpoints/assetdeliveryv1.d.ts +208 -202
  8. package/lib/endpoints/assetdeliveryv1.js +5 -0
  9. package/lib/endpoints/assetdeliveryv2.d.ts +154 -148
  10. package/lib/endpoints/assetdeliveryv2.js +5 -0
  11. package/lib/endpoints/authv1.d.ts +545 -406
  12. package/lib/endpoints/authv1.js +53 -2
  13. package/lib/endpoints/authv2.d.ts +222 -158
  14. package/lib/endpoints/authv2.js +4 -0
  15. package/lib/endpoints/authv3.d.ts +25 -22
  16. package/lib/endpoints/avatarv1.d.ts +161 -83
  17. package/lib/endpoints/avatarv1.js +79 -3
  18. package/lib/endpoints/avatarv2.d.ts +111 -51
  19. package/lib/endpoints/avatarv2.js +58 -3
  20. package/lib/endpoints/avatarv3.d.ts +48 -22
  21. package/lib/endpoints/avatarv3.js +24 -1
  22. package/lib/endpoints/badgesv1.d.ts +94 -111
  23. package/lib/endpoints/badgesv1.js +0 -20
  24. package/lib/endpoints/catalogv1.d.ts +216 -250
  25. package/lib/endpoints/catalogv1.js +13 -75
  26. package/lib/endpoints/catalogv2.d.ts +73 -40
  27. package/lib/endpoints/catalogv2.js +6 -1
  28. package/lib/endpoints/clientsettingsv1.d.ts +35 -33
  29. package/lib/endpoints/clientsettingsv2.d.ts +71 -57
  30. package/lib/endpoints/clientsettingsv2.js +1 -0
  31. package/lib/endpoints/contactsv1.d.ts +26 -25
  32. package/lib/endpoints/developv1.d.ts +277 -189
  33. package/lib/endpoints/developv1.js +3 -0
  34. package/lib/endpoints/developv2.d.ts +101 -62
  35. package/lib/endpoints/economycreatorstatsv1.d.ts +11 -11
  36. package/lib/endpoints/economyv1.d.ts +6 -6
  37. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  38. package/lib/endpoints/followingsv1.d.ts +34 -33
  39. package/lib/endpoints/followingsv2.d.ts +7 -7
  40. package/lib/endpoints/friendsv1.d.ts +253 -283
  41. package/lib/endpoints/friendsv1.js +1 -68
  42. package/lib/endpoints/gameinternationalizationv1.d.ts +1575 -1444
  43. package/lib/endpoints/gameinternationalizationv2.d.ts +64 -62
  44. package/lib/endpoints/gamesv1.d.ts +180 -229
  45. package/lib/endpoints/gamesv1.js +4 -0
  46. package/lib/endpoints/gamesv2.d.ts +178 -161
  47. package/lib/endpoints/groupsv1.d.ts +921 -878
  48. package/lib/endpoints/groupsv1.js +3 -2
  49. package/lib/endpoints/groupsv2.d.ts +184 -164
  50. package/lib/endpoints/inventoryv1.d.ts +133 -90
  51. package/lib/endpoints/inventoryv2.d.ts +77 -63
  52. package/lib/endpoints/itemconfigurationv1.d.ts +64 -145
  53. package/lib/endpoints/itemconfigurationv1.js +1 -89
  54. package/lib/endpoints/localev1.d.ts +43 -42
  55. package/lib/endpoints/localizationtablesv1.d.ts +353 -315
  56. package/lib/endpoints/localizationtablesv1.js +1 -1
  57. package/lib/endpoints/matchmakingv1.d.ts +190 -184
  58. package/lib/endpoints/notificationsv2.d.ts +158 -144
  59. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  60. package/lib/endpoints/presencev1.d.ts +12 -7
  61. package/lib/endpoints/privatemessagesv1.d.ts +64 -56
  62. package/lib/endpoints/publishv1.d.ts +32 -32
  63. package/lib/endpoints/thumbnailsresizerv1.d.ts +53 -52
  64. package/lib/endpoints/thumbnailsv1.d.ts +362 -292
  65. package/lib/endpoints/thumbnailsv1.js +1 -0
  66. package/lib/endpoints/tradesv1.d.ts +262 -70
  67. package/lib/endpoints/tradesv2.d.ts +157 -72
  68. package/lib/endpoints/translationrolesv1.d.ts +51 -46
  69. package/lib/endpoints/twostepverificationv1.d.ts +186 -180
  70. package/lib/endpoints/twostepverificationv1.js +2 -0
  71. package/lib/endpoints/usersv1.d.ts +113 -109
  72. package/lib/index.d.ts +128 -0
  73. package/lib/index.js +328 -15
  74. package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
  75. package/lib/opencloud/v1/asset-permissions.js +9 -3
  76. package/lib/opencloud/v1/assets.d.ts +59 -32
  77. package/lib/opencloud/v1/assets.js +77 -41
  78. package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
  79. package/lib/opencloud/v1/datastores-ordered.js +62 -20
  80. package/lib/opencloud/v1/datastores.d.ts +99 -42
  81. package/lib/opencloud/v1/datastores.js +123 -50
  82. package/lib/opencloud/v1/developer-products.d.ts +29 -11
  83. package/lib/opencloud/v1/developer-products.js +37 -15
  84. package/lib/opencloud/v1/game-passes.d.ts +29 -11
  85. package/lib/opencloud/v1/game-passes.js +37 -15
  86. package/lib/opencloud/v1/messaging.d.ts +6 -2
  87. package/lib/opencloud/v1/messaging.js +8 -3
  88. package/lib/opencloud/v1/open-eval.d.ts +14 -4
  89. package/lib/opencloud/v1/open-eval.js +18 -6
  90. package/lib/opencloud/v1/secrets-store.d.ts +46 -26
  91. package/lib/opencloud/v1/secrets-store.js +56 -31
  92. package/lib/opencloud/v1/toolbox.d.ts +14 -6
  93. package/lib/opencloud/v1/toolbox.js +18 -8
  94. package/lib/opencloud/v1/universes.d.ts +6 -2
  95. package/lib/opencloud/v1/universes.js +8 -3
  96. package/lib/opencloud/v2/cloud.d.ts +854 -395
  97. package/lib/opencloud/v2/cloud.js +967 -395
  98. 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 'zod';
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 = 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
- guilded: z.string(),
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
- name: z.string(),
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 = z.object({
77
- facebook: z.string(),
78
- twitter: z.string(),
79
- youtube: z.string(),
80
- twitch: z.string(),
81
- guilded: z.string(),
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: 'GET',
106
- path: '/v1/birthdate',
107
- baseUrl: 'https://accountinformation.roblox.com',
108
- requestFormat: 'json',
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: 'GET',
127
- path: '/v1/description',
128
- baseUrl: 'https://accountinformation.roblox.com',
129
- requestFormat: 'json',
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: 'POST',
149
- path: '/v1/description',
150
- baseUrl: 'https://accountinformation.roblox.com',
151
- requestFormat: 'json',
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: 'POST',
188
- path: '/v1/email/verify',
189
- baseUrl: 'https://accountinformation.roblox.com',
190
- requestFormat: 'json',
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: 'GET',
210
- path: '/v1/gender',
211
- baseUrl: 'https://accountinformation.roblox.com',
212
- requestFormat: 'json',
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: 'POST',
232
- path: '/v1/gender',
233
- baseUrl: 'https://accountinformation.roblox.com',
234
- requestFormat: 'json',
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: 'GET',
267
- path: '/v1/metadata',
268
- baseUrl: 'https://accountinformation.roblox.com',
269
- requestFormat: 'json',
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: 'GET',
279
- path: '/v1/phone',
280
- baseUrl: 'https://accountinformation.roblox.com',
281
- requestFormat: 'json',
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: 'POST',
301
- path: '/v1/phone',
302
- baseUrl: 'https://accountinformation.roblox.com',
303
- requestFormat: 'json',
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: Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
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: 'POST',
348
- path: '/v1/phone/delete',
349
- baseUrl: 'https://accountinformation.roblox.com',
350
- requestFormat: 'json',
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: 'POST',
388
- path: '/v1/phone/resend',
389
- baseUrl: 'https://accountinformation.roblox.com',
390
- requestFormat: 'json',
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: 'POST',
427
- path: '/v1/phone/verify',
428
- baseUrl: 'https://accountinformation.roblox.com',
429
- requestFormat: 'json',
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: 'GET',
474
- path: '/v1/promotion-channels',
475
- baseUrl: 'https://accountinformation.roblox.com',
476
- requestFormat: 'json',
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: 'form',
476
+ style: "form",
480
477
  explode: true,
481
478
  },
482
479
  filterLink: {
483
- style: 'form',
480
+ style: "form",
484
481
  explode: true,
485
482
  },
486
483
  onlyShortenTwitter: {
487
- style: 'form',
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: 'POST',
515
- path: '/v1/promotion-channels',
516
- baseUrl: 'https://accountinformation.roblox.com',
517
- requestFormat: 'json',
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: 'GET',
551
- path: '/v1/star-code-affiliates',
552
- baseUrl: 'https://accountinformation.roblox.com',
553
- requestFormat: 'json',
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: 'POST',
573
- path: '/v1/star-code-affiliates',
574
- baseUrl: 'https://accountinformation.roblox.com',
575
- requestFormat: 'json',
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: 'DELETE',
607
- path: '/v1/star-code-affiliates',
608
- baseUrl: 'https://accountinformation.roblox.com',
609
- requestFormat: 'json',
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: 'GET',
635
- path: '/v1/users/:userId/promotion-channels',
636
- baseUrl: 'https://accountinformation.roblox.com',
637
- requestFormat: 'json',
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: 'simple',
636
+ style: "simple",
641
637
  },
642
638
  alwaysReturnUrls: {
643
- style: 'form',
639
+ style: "form",
644
640
  explode: true,
645
641
  },
646
642
  filterLink: {
647
- style: 'form',
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: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
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: 'GET',
671
- path: '/v1/users/:userId/roblox-badges',
672
- baseUrl: 'https://accountinformation.roblox.com',
673
- requestFormat: 'json',
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: 'simple',
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,