rozod 4.8.0 → 4.8.2

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 (64) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +218 -203
  2. package/lib/endpoints/accountinformationv1.js +72 -75
  3. package/lib/endpoints/accountsettingsv1.d.ts +311 -271
  4. package/lib/endpoints/accountsettingsv1.js +89 -104
  5. package/lib/endpoints/assetdeliveryv1.d.ts +268 -267
  6. package/lib/endpoints/assetdeliveryv1.js +8 -16
  7. package/lib/endpoints/assetdeliveryv2.d.ts +283 -279
  8. package/lib/endpoints/assetdeliveryv2.js +14 -21
  9. package/lib/endpoints/authv1.d.ts +671 -653
  10. package/lib/endpoints/authv1.js +169 -209
  11. package/lib/endpoints/authv2.d.ts +383 -537
  12. package/lib/endpoints/authv2.js +97 -144
  13. package/lib/endpoints/authv3.d.ts +21 -24
  14. package/lib/endpoints/authv3.js +6 -12
  15. package/lib/endpoints/avatarv1.d.ts +417 -426
  16. package/lib/endpoints/avatarv1.js +100 -126
  17. package/lib/endpoints/avatarv2.d.ts +161 -169
  18. package/lib/endpoints/avatarv2.js +59 -69
  19. package/lib/endpoints/avatarv3.d.ts +104 -108
  20. package/lib/endpoints/avatarv3.js +41 -45
  21. package/lib/endpoints/badgesv1.d.ts +172 -153
  22. package/lib/endpoints/badgesv1.js +35 -49
  23. package/lib/endpoints/catalogv1.d.ts +417 -433
  24. package/lib/endpoints/catalogv1.js +57 -93
  25. package/lib/endpoints/chatv2.d.ts +337 -326
  26. package/lib/endpoints/chatv2.js +100 -120
  27. package/lib/endpoints/developv1.d.ts +394 -496
  28. package/lib/endpoints/developv1.js +90 -110
  29. package/lib/endpoints/developv2.d.ts +201 -190
  30. package/lib/endpoints/developv2.js +24 -41
  31. package/lib/endpoints/economyv1.d.ts +10 -8
  32. package/lib/endpoints/economyv1.js +4 -2
  33. package/lib/endpoints/friendsv1.d.ts +376 -350
  34. package/lib/endpoints/friendsv1.js +79 -107
  35. package/lib/endpoints/gamejoinv1.d.ts +208 -203
  36. package/lib/endpoints/gamejoinv1.js +31 -51
  37. package/lib/endpoints/gamesv1.d.ts +578 -609
  38. package/lib/endpoints/gamesv1.js +137 -182
  39. package/lib/endpoints/gamesv2.d.ts +91 -91
  40. package/lib/endpoints/gamesv2.js +12 -24
  41. package/lib/endpoints/groupsv1.d.ts +1134 -1182
  42. package/lib/endpoints/groupsv1.js +222 -296
  43. package/lib/endpoints/groupsv2.d.ts +107 -115
  44. package/lib/endpoints/groupsv2.js +34 -48
  45. package/lib/endpoints/inventoryv1.d.ts +128 -128
  46. package/lib/endpoints/inventoryv1.js +25 -35
  47. package/lib/endpoints/inventoryv2.d.ts +162 -164
  48. package/lib/endpoints/inventoryv2.js +17 -33
  49. package/lib/endpoints/itemconfigurationv1.d.ts +131 -133
  50. package/lib/endpoints/itemconfigurationv1.js +37 -48
  51. package/lib/endpoints/presencev1.d.ts +54 -54
  52. package/lib/endpoints/presencev1.js +18 -24
  53. package/lib/endpoints/privatemessagesv1.d.ts +124 -132
  54. package/lib/endpoints/privatemessagesv1.js +33 -50
  55. package/lib/endpoints/thumbnailsv1.d.ts +370 -321
  56. package/lib/endpoints/thumbnailsv1.js +15 -29
  57. package/lib/endpoints/tradesv1.d.ts +175 -167
  58. package/lib/endpoints/tradesv1.js +35 -45
  59. package/lib/endpoints/translationsv1.d.ts +29 -26
  60. package/lib/endpoints/translationsv1.js +7 -4
  61. package/lib/endpoints/usersv1.d.ts +196 -192
  62. package/lib/endpoints/usersv1.js +70 -70
  63. package/lib/index.d.ts +3 -12
  64. package/package.json +1 -1
@@ -1,121 +1,118 @@
1
- import { z } from 'zod';
2
- import { endpoint } from '..';
1
+ import { z } from "zod";
2
+ import { endpoint } from "..";
3
3
 
4
- const Roblox_AccountInformation_Api_Models_BirthdateResponse = z
5
- .object({
6
- birthMonth: z.number().int(),
7
- birthDay: z.number().int(),
8
- birthYear: z.number().int(),
9
- })
10
- .passthrough();
11
- const Roblox_AccountInformation_Api_Models_BirthdateRequest = z
12
- .object({
13
- birthMonth: z.number().int(),
14
- birthDay: z.number().int(),
15
- birthYear: z.number().int(),
16
- password: z.string(),
17
- })
18
- .passthrough();
19
- const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({}).passthrough();
20
- const Roblox_AccountInformation_Api_Models_DescriptionResponse = z.object({ description: z.string() }).passthrough();
21
- const Roblox_AccountInformation_Api_Models_DescriptionRequest = z.object({ description: z.string() }).passthrough();
22
- const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({ gender: z.number().int() }).passthrough();
23
- const Roblox_AccountInformation_Api_Models_GenderRequest = z.object({ gender: z.string() }).passthrough();
24
- const Roblox_AccountInformation_Api_Models_MetadataResponse = z
25
- .object({
26
- isAllowedNotificationsEndpointDisabled: z.boolean(),
27
- isAccountSettingsPolicyEnabled: z.boolean(),
28
- isPhoneNumberEnabled: z.boolean(),
29
- MaxUserDescriptionLength: z.number().int(),
30
- isUserDescriptionEnabled: z.boolean(),
31
- isUserBlockEndpointsUpdated: z.boolean(),
32
- isPasswordRequiredForAgingDown: z.boolean(),
33
- shouldUsePersonaForIdVerification: z.boolean(),
34
- shouldDisplaySessionManagement: z.boolean(),
35
- })
36
- .passthrough();
37
- const Roblox_AccountInformation_Api_Models_PhoneResponse = z
38
- .object({
39
- countryCode: z.string(),
40
- prefix: z.string(),
41
- phone: z.string(),
42
- isVerified: z.boolean(),
43
- verificationCodeLength: z.number().int(),
44
- canBypassPasswordForPhoneUpdate: z.boolean(),
45
- })
46
- .passthrough();
47
- const Roblox_AccountInformation_Api_Models_PhoneRequest = z
48
- .object({
49
- countryCode: z.string(),
50
- prefix: z.string(),
51
- phone: z.string(),
52
- password: z.string(),
53
- verificationChannel: z.string(),
54
- })
55
- .passthrough();
56
- const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse = z
57
- .object({ verificationChannel: z.string(), data: z.string() })
58
- .passthrough();
59
- const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z
60
- .object({
4
+ const Roblox_AccountInformation_Api_Models_BirthdateResponse = z.object({
5
+ birthMonth: z.number().int(),
6
+ birthDay: z.number().int(),
7
+ birthYear: z.number().int(),
8
+ });
9
+ const Roblox_AccountInformation_Api_Models_BirthdateRequest = z.object({
10
+ birthMonth: z.number().int(),
11
+ birthDay: z.number().int(),
12
+ birthYear: z.number().int(),
13
+ password: z.string(),
14
+ });
15
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
16
+ const Roblox_AccountInformation_Api_Models_DescriptionResponse = z.object({
17
+ description: z.string(),
18
+ });
19
+ const Roblox_AccountInformation_Api_Models_DescriptionRequest = z.object({
20
+ description: z.string(),
21
+ });
22
+ const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({
23
+ gender: z.number().int(),
24
+ });
25
+ const Roblox_AccountInformation_Api_Models_GenderRequest = z.object({
26
+ gender: z.string(),
27
+ });
28
+ const Roblox_AccountInformation_Api_Models_MetadataResponse = z.object({
29
+ isAllowedNotificationsEndpointDisabled: z.boolean(),
30
+ isAccountSettingsPolicyEnabled: z.boolean(),
31
+ isPhoneNumberEnabled: z.boolean(),
32
+ MaxUserDescriptionLength: z.number().int(),
33
+ isUserDescriptionEnabled: z.boolean(),
34
+ isUserBlockEndpointsUpdated: z.boolean(),
35
+ isPasswordRequiredForAgingDown: z.boolean(),
36
+ shouldUsePersonaForIdVerification: z.boolean(),
37
+ shouldDisplaySessionManagement: z.boolean(),
38
+ });
39
+ const Roblox_AccountInformation_Api_Models_PhoneResponse = z.object({
40
+ countryCode: z.string(),
41
+ prefix: z.string(),
42
+ phone: z.string(),
43
+ isVerified: z.boolean(),
44
+ verificationCodeLength: z.number().int(),
45
+ canBypassPasswordForPhoneUpdate: z.boolean(),
46
+ });
47
+ const Roblox_AccountInformation_Api_Models_PhoneRequest = z.object({
48
+ countryCode: z.string(),
49
+ prefix: z.string(),
50
+ phone: z.string(),
51
+ password: z.string(),
52
+ verificationChannel: z.string(),
53
+ });
54
+ const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse =
55
+ z.object({ verificationChannel: z.string(), data: z.string() });
56
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z.object(
57
+ {
61
58
  promotionChannelsVisibilityPrivacy: z.string(),
62
59
  facebook: z.string(),
63
60
  twitter: z.string(),
64
61
  youtube: z.string(),
65
62
  twitch: z.string(),
66
63
  guilded: z.string(),
67
- })
68
- .passthrough();
69
- const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z
70
- .object({
71
- facebook: z.string(),
72
- twitter: z.string(),
73
- youtube: z.string(),
74
- twitch: z.string(),
75
- guilded: z.string(),
76
- promotionChannelsVisibilityPrivacy: z.string(),
77
- })
78
- .passthrough();
79
- const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z
80
- .object({ userId: z.number().int(), name: z.string(), code: z.string() })
81
- .passthrough();
82
- const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = z.object({ code: z.string() }).passthrough();
83
- const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = z
84
- .object({
64
+ }
65
+ );
66
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z.object({
67
+ facebook: z.string(),
68
+ twitter: z.string(),
69
+ youtube: z.string(),
70
+ twitch: z.string(),
71
+ guilded: z.string(),
72
+ promotionChannelsVisibilityPrivacy: z.string(),
73
+ });
74
+ const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z.object(
75
+ { userId: z.number().int(), name: z.string(), code: z.string() }
76
+ );
77
+ const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = z.object({
78
+ code: z.string(),
79
+ });
80
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
81
+ z.object({
85
82
  facebook: z.string(),
86
83
  twitter: z.string(),
87
84
  youtube: z.string(),
88
85
  twitch: z.string(),
89
86
  guilded: z.string(),
90
- })
91
- .passthrough();
92
- const Roblox_AccountInformation_Api_RobloxBadgeResponse = z
93
- .object({
94
- id: z.number().int(),
95
- name: z.string(),
96
- description: z.string(),
97
- imageUrl: z.string(),
98
- })
99
- .passthrough();
100
- const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = z
101
- .object({ count: z.number().int() })
102
- .passthrough();
103
- const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = z.object({ ticket: z.string() }).passthrough();
104
- const Roblox_AccountInformation_Api_Models_VerifyEmailResponse = z
105
- .object({ verifiedUserHatAssetId: z.number().int() })
106
- .passthrough();
107
- const Roblox_AccountInformation_Api_Models_EmptyRequest = z.object({}).passthrough();
108
- const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({ code: z.string() }).passthrough();
87
+ });
88
+ const Roblox_AccountInformation_Api_RobloxBadgeResponse = z.object({
89
+ id: z.number().int(),
90
+ name: z.string(),
91
+ description: z.string(),
92
+ imageUrl: z.string(),
93
+ });
94
+ const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse =
95
+ z.object({ count: z.number().int() });
96
+ const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = z.object({
97
+ ticket: z.string(),
98
+ });
99
+ const Roblox_AccountInformation_Api_Models_VerifyEmailResponse = z.object({
100
+ verifiedUserHatAssetId: z.number().int(),
101
+ });
102
+ const Roblox_AccountInformation_Api_Models_EmptyRequest = z.object({});
103
+ const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({
104
+ code: z.string(),
105
+ });
109
106
 
110
107
  /**
111
108
  * @api GET https://accountinformation.roblox.com/v1/birthdate
112
109
  * @summary Get the user's birthdate
113
110
  */
114
111
  export const getBirthdate = endpoint({
115
- method: 'get' as const,
116
- path: '/v1/birthdate',
117
- baseUrl: 'https://accountinformation.roblox.com',
118
- requestFormat: 'json' as const,
112
+ method: "get" as const,
113
+ path: "/v1/birthdate",
114
+ baseUrl: "https://accountinformation.roblox.com",
115
+ requestFormat: "json" as const,
119
116
  response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
120
117
  errors: [
121
118
  {
@@ -134,16 +131,16 @@ export const getBirthdate = endpoint({
134
131
  * @param body The Roblox.AccountInformation.Api.Models.BirthdateRequest
135
132
  */
136
133
  export const postBirthdate = endpoint({
137
- method: 'post' as const,
138
- path: '/v1/birthdate',
139
- baseUrl: 'https://accountinformation.roblox.com',
140
- requestFormat: 'json' as const,
134
+ method: "post" as const,
135
+ path: "/v1/birthdate",
136
+ baseUrl: "https://accountinformation.roblox.com",
137
+ requestFormat: "json" as const,
141
138
  serializationMethod: {
142
139
  body: {},
143
140
  },
144
141
  parameters: {},
145
142
  body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
146
- response: z.object({}).passthrough(),
143
+ response: z.object({}),
147
144
  errors: [
148
145
  {
149
146
  status: 400,
@@ -173,11 +170,11 @@ export const postBirthdate = endpoint({
173
170
  * @summary Get the user's description
174
171
  */
175
172
  export const getDescription = endpoint({
176
- method: 'get' as const,
177
- path: '/v1/description',
178
- baseUrl: 'https://accountinformation.roblox.com',
179
- requestFormat: 'json' as const,
180
- response: z.object({ description: z.string() }).passthrough(),
173
+ method: "get" as const,
174
+ path: "/v1/description",
175
+ baseUrl: "https://accountinformation.roblox.com",
176
+ requestFormat: "json" as const,
177
+ response: z.object({ description: z.string() }),
181
178
  errors: [
182
179
  {
183
180
  status: 400,
@@ -195,16 +192,16 @@ export const getDescription = endpoint({
195
192
  * @param body The Roblox.AccountInformation.Api.Models.DescriptionRequest
196
193
  */
197
194
  export const postDescription = endpoint({
198
- method: 'post' as const,
199
- path: '/v1/description',
200
- baseUrl: 'https://accountinformation.roblox.com',
201
- requestFormat: 'json' as const,
195
+ method: "post" as const,
196
+ path: "/v1/description",
197
+ baseUrl: "https://accountinformation.roblox.com",
198
+ requestFormat: "json" as const,
202
199
  serializationMethod: {
203
200
  body: {},
204
201
  },
205
202
  parameters: {},
206
- body: z.object({ description: z.string() }).passthrough(),
207
- response: z.object({ description: z.string() }).passthrough(),
203
+ body: z.object({ description: z.string() }),
204
+ response: z.object({ description: z.string() }),
208
205
  errors: [
209
206
  {
210
207
  status: 400,
@@ -235,16 +232,16 @@ export const postDescription = endpoint({
235
232
  * @param body Roblox.AccountInformation.Api.Models.VerifyEmailRequest
236
233
  */
237
234
  export const postEmailVerify = endpoint({
238
- method: 'post' as const,
239
- path: '/v1/email/verify',
240
- baseUrl: 'https://accountinformation.roblox.com',
241
- requestFormat: 'json' as const,
235
+ method: "post" as const,
236
+ path: "/v1/email/verify",
237
+ baseUrl: "https://accountinformation.roblox.com",
238
+ requestFormat: "json" as const,
242
239
  serializationMethod: {
243
240
  body: {},
244
241
  },
245
242
  parameters: {},
246
- body: z.object({ ticket: z.string() }).passthrough(),
247
- response: z.object({ verifiedUserHatAssetId: z.number().int() }).passthrough(),
243
+ body: z.object({ ticket: z.string() }),
244
+ response: z.object({ verifiedUserHatAssetId: z.number().int() }),
248
245
  errors: [
249
246
  {
250
247
  status: 403,
@@ -257,11 +254,11 @@ export const postEmailVerify = endpoint({
257
254
  * @summary Get the user's gender
258
255
  */
259
256
  export const getGender = endpoint({
260
- method: 'get' as const,
261
- path: '/v1/gender',
262
- baseUrl: 'https://accountinformation.roblox.com',
263
- requestFormat: 'json' as const,
264
- response: z.object({ gender: z.number().int() }).passthrough(),
257
+ method: "get" as const,
258
+ path: "/v1/gender",
259
+ baseUrl: "https://accountinformation.roblox.com",
260
+ requestFormat: "json" as const,
261
+ response: z.object({ gender: z.number().int() }),
265
262
  errors: [
266
263
  {
267
264
  status: 400,
@@ -279,16 +276,16 @@ export const getGender = endpoint({
279
276
  * @param body The Roblox.AccountInformation.Api.Models.GenderRequest
280
277
  */
281
278
  export const postGender = endpoint({
282
- method: 'post' as const,
283
- path: '/v1/gender',
284
- baseUrl: 'https://accountinformation.roblox.com',
285
- requestFormat: 'json' as const,
279
+ method: "post" as const,
280
+ path: "/v1/gender",
281
+ baseUrl: "https://accountinformation.roblox.com",
282
+ requestFormat: "json" as const,
286
283
  serializationMethod: {
287
284
  body: {},
288
285
  },
289
286
  parameters: {},
290
- body: z.object({ gender: z.string() }).passthrough(),
291
- response: z.object({}).passthrough(),
287
+ body: z.object({ gender: z.string() }),
288
+ response: z.object({}),
292
289
  errors: [
293
290
  {
294
291
  status: 400,
@@ -315,10 +312,10 @@ export const postGender = endpoint({
315
312
  * @summary Get the metadata
316
313
  */
317
314
  export const getMetadata = endpoint({
318
- method: 'get' as const,
319
- path: '/v1/metadata',
320
- baseUrl: 'https://accountinformation.roblox.com',
321
- requestFormat: 'json' as const,
315
+ method: "get" as const,
316
+ path: "/v1/metadata",
317
+ baseUrl: "https://accountinformation.roblox.com",
318
+ requestFormat: "json" as const,
322
319
  response: Roblox_AccountInformation_Api_Models_MetadataResponse,
323
320
  errors: [],
324
321
  });
@@ -327,10 +324,10 @@ export const getMetadata = endpoint({
327
324
  * @summary Get Verified Phone Number
328
325
  */
329
326
  export const getPhone = endpoint({
330
- method: 'get' as const,
331
- path: '/v1/phone',
332
- baseUrl: 'https://accountinformation.roblox.com',
333
- requestFormat: 'json' as const,
327
+ method: "get" as const,
328
+ path: "/v1/phone",
329
+ baseUrl: "https://accountinformation.roblox.com",
330
+ requestFormat: "json" as const,
334
331
  response: Roblox_AccountInformation_Api_Models_PhoneResponse,
335
332
  errors: [
336
333
  {
@@ -349,16 +346,17 @@ export const getPhone = endpoint({
349
346
  * @param body Roblox.AccountInformation.Api.Models.PhoneRequest
350
347
  */
351
348
  export const postPhone = endpoint({
352
- method: 'post' as const,
353
- path: '/v1/phone',
354
- baseUrl: 'https://accountinformation.roblox.com',
355
- requestFormat: 'json' as const,
349
+ method: "post" as const,
350
+ path: "/v1/phone",
351
+ baseUrl: "https://accountinformation.roblox.com",
352
+ requestFormat: "json" as const,
356
353
  serializationMethod: {
357
354
  body: {},
358
355
  },
359
356
  parameters: {},
360
357
  body: Roblox_AccountInformation_Api_Models_PhoneRequest,
361
- response: Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
358
+ response:
359
+ Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
362
360
  errors: [
363
361
  {
364
362
  status: 400,
@@ -397,16 +395,16 @@ export const postPhone = endpoint({
397
395
  * @param body Roblox.AccountInformation.Api.Models.PhoneRequest
398
396
  */
399
397
  export const postPhoneDelete = endpoint({
400
- method: 'post' as const,
401
- path: '/v1/phone/delete',
402
- baseUrl: 'https://accountinformation.roblox.com',
403
- requestFormat: 'json' as const,
398
+ method: "post" as const,
399
+ path: "/v1/phone/delete",
400
+ baseUrl: "https://accountinformation.roblox.com",
401
+ requestFormat: "json" as const,
404
402
  serializationMethod: {
405
403
  body: {},
406
404
  },
407
405
  parameters: {},
408
406
  body: Roblox_AccountInformation_Api_Models_PhoneRequest,
409
- response: z.object({}).passthrough(),
407
+ response: z.object({}),
410
408
  errors: [
411
409
  {
412
410
  status: 401,
@@ -438,16 +436,16 @@ export const postPhoneDelete = endpoint({
438
436
  * @param body Roblox.AccountInformation.Api.Models.PhoneRequest
439
437
  */
440
438
  export const postPhoneResend = endpoint({
441
- method: 'post' as const,
442
- path: '/v1/phone/resend',
443
- baseUrl: 'https://accountinformation.roblox.com',
444
- requestFormat: 'json' as const,
439
+ method: "post" as const,
440
+ path: "/v1/phone/resend",
441
+ baseUrl: "https://accountinformation.roblox.com",
442
+ requestFormat: "json" as const,
445
443
  serializationMethod: {
446
444
  body: {},
447
445
  },
448
446
  parameters: {},
449
- body: z.object({}).passthrough().optional(),
450
- response: z.object({}).passthrough(),
447
+ body: z.object({}).optional(),
448
+ response: z.object({}),
451
449
  errors: [
452
450
  {
453
451
  status: 401,
@@ -477,16 +475,16 @@ export const postPhoneResend = endpoint({
477
475
  * @param body Roblox.AccountInformation.Api.Models.VerifyPhoneRequest
478
476
  */
479
477
  export const postPhoneVerify = endpoint({
480
- method: 'post' as const,
481
- path: '/v1/phone/verify',
482
- baseUrl: 'https://accountinformation.roblox.com',
483
- requestFormat: 'json' as const,
478
+ method: "post" as const,
479
+ path: "/v1/phone/verify",
480
+ baseUrl: "https://accountinformation.roblox.com",
481
+ requestFormat: "json" as const,
484
482
  serializationMethod: {
485
483
  body: {},
486
484
  },
487
485
  parameters: {},
488
- body: z.object({ code: z.string() }).passthrough(),
489
- response: z.object({}).passthrough(),
486
+ body: z.object({ code: z.string() }),
487
+ response: z.object({}),
490
488
  errors: [
491
489
  {
492
490
  status: 400,
@@ -519,12 +517,22 @@ export const postPhoneVerify = endpoint({
519
517
  /**
520
518
  * @api GET https://accountinformation.roblox.com/v1/promotion-channels
521
519
  * @summary Get the user's promotion channels
520
+ * @param alwaysReturnUrls Whether all promotion channel links should be returned as full URLs.
522
521
  */
523
522
  export const getPromotionChannels = endpoint({
524
- method: 'get' as const,
525
- path: '/v1/promotion-channels',
526
- baseUrl: 'https://accountinformation.roblox.com',
527
- requestFormat: 'json' as const,
523
+ method: "get" as const,
524
+ path: "/v1/promotion-channels",
525
+ baseUrl: "https://accountinformation.roblox.com",
526
+ requestFormat: "json" as const,
527
+ serializationMethod: {
528
+ alwaysReturnUrls: {
529
+ style: "form",
530
+ explode: true,
531
+ },
532
+ },
533
+ parameters: {
534
+ alwaysReturnUrls: z.boolean().optional(),
535
+ },
528
536
  response: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
529
537
  errors: [
530
538
  {
@@ -543,16 +551,16 @@ export const getPromotionChannels = endpoint({
543
551
  * @param body The Roblox.AccountInformation.Api.Models.PromotionChannelsRequest
544
552
  */
545
553
  export const postPromotionChannels = endpoint({
546
- method: 'post' as const,
547
- path: '/v1/promotion-channels',
548
- baseUrl: 'https://accountinformation.roblox.com',
549
- requestFormat: 'json' as const,
554
+ method: "post" as const,
555
+ path: "/v1/promotion-channels",
556
+ baseUrl: "https://accountinformation.roblox.com",
557
+ requestFormat: "json" as const,
550
558
  serializationMethod: {
551
559
  body: {},
552
560
  },
553
561
  parameters: {},
554
562
  body: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
555
- response: z.object({}).passthrough(),
563
+ response: z.object({}),
556
564
  errors: [
557
565
  {
558
566
  status: 400,
@@ -580,10 +588,10 @@ export const postPromotionChannels = endpoint({
580
588
  * @summary Gets a star code affiliate supporter for the authenticated user
581
589
  */
582
590
  export const getStarCodeAffiliates = endpoint({
583
- method: 'get' as const,
584
- path: '/v1/star-code-affiliates',
585
- baseUrl: 'https://accountinformation.roblox.com',
586
- requestFormat: 'json' as const,
591
+ method: "get" as const,
592
+ path: "/v1/star-code-affiliates",
593
+ baseUrl: "https://accountinformation.roblox.com",
594
+ requestFormat: "json" as const,
587
595
  response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
588
596
  errors: [
589
597
  {
@@ -602,15 +610,15 @@ export const getStarCodeAffiliates = endpoint({
602
610
  * @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
603
611
  */
604
612
  export const postStarCodeAffiliates = endpoint({
605
- method: 'post' as const,
606
- path: '/v1/star-code-affiliates',
607
- baseUrl: 'https://accountinformation.roblox.com',
608
- requestFormat: 'json' as const,
613
+ method: "post" as const,
614
+ path: "/v1/star-code-affiliates",
615
+ baseUrl: "https://accountinformation.roblox.com",
616
+ requestFormat: "json" as const,
609
617
  serializationMethod: {
610
618
  body: {},
611
619
  },
612
620
  parameters: {},
613
- body: z.object({ code: z.string() }).passthrough(),
621
+ body: z.object({ code: z.string() }),
614
622
  response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
615
623
  errors: [
616
624
  {
@@ -636,11 +644,11 @@ export const postStarCodeAffiliates = endpoint({
636
644
  * @summary Removes the star code affiliate supporter for the authenticated user
637
645
  */
638
646
  export const deleteStarCodeAffiliates = endpoint({
639
- method: 'delete' as const,
640
- path: '/v1/star-code-affiliates',
641
- baseUrl: 'https://accountinformation.roblox.com',
642
- requestFormat: 'json' as const,
643
- response: z.object({}).passthrough(),
647
+ method: "delete" as const,
648
+ path: "/v1/star-code-affiliates",
649
+ baseUrl: "https://accountinformation.roblox.com",
650
+ requestFormat: "json" as const,
651
+ response: z.object({}),
644
652
  errors: [
645
653
  {
646
654
  status: 401,
@@ -659,22 +667,29 @@ export const deleteStarCodeAffiliates = endpoint({
659
667
  /**
660
668
  * @api GET https://accountinformation.roblox.com/v1/users/:userId/promotion-channels
661
669
  * @summary Get promotion channels for a given user ID
662
- * @param userId
670
+ * @param userId The ID of the user to fetch the promotion channels for.
671
+ * @param alwaysReturnUrls Whether all promotion channel links should be returned as full URLs.
663
672
  */
664
673
  export const getUsersUseridPromotionChannels = endpoint({
665
- method: 'get' as const,
666
- path: '/v1/users/:userId/promotion-channels',
667
- baseUrl: 'https://accountinformation.roblox.com',
668
- requestFormat: 'json' as const,
674
+ method: "get" as const,
675
+ path: "/v1/users/:userId/promotion-channels",
676
+ baseUrl: "https://accountinformation.roblox.com",
677
+ requestFormat: "json" as const,
669
678
  serializationMethod: {
670
679
  userId: {
671
- style: 'simple',
680
+ style: "simple",
681
+ },
682
+ alwaysReturnUrls: {
683
+ style: "form",
684
+ explode: true,
672
685
  },
673
686
  },
674
687
  parameters: {
675
688
  userId: z.number().int(),
689
+ alwaysReturnUrls: z.boolean().optional(),
676
690
  },
677
- response: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
691
+ response:
692
+ Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
678
693
  errors: [
679
694
  {
680
695
  status: 400,
@@ -688,13 +703,13 @@ export const getUsersUseridPromotionChannels = endpoint({
688
703
  * @param userId
689
704
  */
690
705
  export const getUsersUseridRobloxBadges = endpoint({
691
- method: 'get' as const,
692
- path: '/v1/users/:userId/roblox-badges',
693
- baseUrl: 'https://accountinformation.roblox.com',
694
- requestFormat: 'json' as const,
706
+ method: "get" as const,
707
+ path: "/v1/users/:userId/roblox-badges",
708
+ baseUrl: "https://accountinformation.roblox.com",
709
+ requestFormat: "json" as const,
695
710
  serializationMethod: {
696
711
  userId: {
697
- style: 'simple',
712
+ style: "simple",
698
713
  },
699
714
  },
700
715
  parameters: {
@@ -708,11 +723,11 @@ export const getUsersUseridRobloxBadges = endpoint({
708
723
  * @summary Returns number of consecutive login days for xbox users
709
724
  */
710
725
  export const getXboxLiveConsecutiveLoginDays = endpoint({
711
- method: 'get' as const,
712
- path: '/v1/xbox-live/consecutive-login-days',
713
- baseUrl: 'https://accountinformation.roblox.com',
714
- requestFormat: 'json' as const,
715
- response: z.object({ count: z.number().int() }).passthrough(),
726
+ method: "get" as const,
727
+ path: "/v1/xbox-live/consecutive-login-days",
728
+ baseUrl: "https://accountinformation.roblox.com",
729
+ requestFormat: "json" as const,
730
+ response: z.object({ count: z.number().int() }),
716
731
  errors: [
717
732
  {
718
733
  status: 401,