rozod 2.0.0 → 2.0.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 (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +55 -15
  2. package/lib/endpoints/accountinformationv1.js +193 -128
  3. package/lib/endpoints/accountsettingsv1.d.ts +60 -6
  4. package/lib/endpoints/accountsettingsv1.js +204 -118
  5. package/lib/endpoints/assetdeliveryv1.d.ts +431 -0
  6. package/lib/endpoints/assetdeliveryv1.js +442 -10
  7. package/lib/endpoints/assetdeliveryv2.d.ts +431 -0
  8. package/lib/endpoints/assetdeliveryv2.js +443 -12
  9. package/lib/endpoints/authv1.d.ts +162 -36
  10. package/lib/endpoints/authv1.js +399 -201
  11. package/lib/endpoints/authv2.d.ts +108 -0
  12. package/lib/endpoints/authv2.js +353 -160
  13. package/lib/endpoints/authv3.d.ts +6 -0
  14. package/lib/endpoints/authv3.js +16 -8
  15. package/lib/endpoints/avatarv1.d.ts +94 -0
  16. package/lib/endpoints/avatarv1.js +239 -111
  17. package/lib/endpoints/avatarv2.d.ts +26 -0
  18. package/lib/endpoints/avatarv2.js +109 -59
  19. package/lib/endpoints/avatarv3.d.ts +20 -0
  20. package/lib/endpoints/avatarv3.js +83 -41
  21. package/lib/endpoints/badgesv1.d.ts +80 -3
  22. package/lib/endpoints/badgesv1.js +137 -51
  23. package/lib/endpoints/catalogv1.d.ts +183 -25
  24. package/lib/endpoints/catalogv1.js +307 -131
  25. package/lib/endpoints/chatv2.d.ts +105 -0
  26. package/lib/endpoints/chatv2.js +219 -114
  27. package/lib/endpoints/developv1.d.ts +411 -36
  28. package/lib/endpoints/developv1.js +707 -254
  29. package/lib/endpoints/developv2.d.ts +46 -0
  30. package/lib/endpoints/developv2.js +108 -36
  31. package/lib/endpoints/economyv1.js +7 -7
  32. package/lib/endpoints/friendsv1.d.ts +147 -0
  33. package/lib/endpoints/friendsv1.js +309 -114
  34. package/lib/endpoints/gamejoinv1.d.ts +2321 -0
  35. package/lib/endpoints/gamejoinv1.js +416 -0
  36. package/lib/endpoints/gamesv1.d.ts +319 -14
  37. package/lib/endpoints/gamesv1.js +531 -188
  38. package/lib/endpoints/gamesv2.d.ts +89 -0
  39. package/lib/endpoints/gamesv2.js +108 -19
  40. package/lib/endpoints/groupsv1.d.ts +602 -94
  41. package/lib/endpoints/groupsv1.js +1131 -456
  42. package/lib/endpoints/groupsv2.d.ts +33 -0
  43. package/lib/endpoints/groupsv2.js +74 -37
  44. package/lib/endpoints/inventoryv1.d.ts +108 -9
  45. package/lib/endpoints/inventoryv1.js +166 -45
  46. package/lib/endpoints/inventoryv2.d.ts +62 -1
  47. package/lib/endpoints/inventoryv2.js +91 -26
  48. package/lib/endpoints/presencev1.d.ts +14 -5
  49. package/lib/endpoints/presencev1.js +30 -21
  50. package/lib/endpoints/privatemessagesv1.d.ts +39 -0
  51. package/lib/endpoints/privatemessagesv1.js +90 -51
  52. package/lib/endpoints/thumbnailsv1.d.ts +309 -21
  53. package/lib/endpoints/thumbnailsv1.js +410 -63
  54. package/lib/endpoints/tradesv1.d.ts +51 -0
  55. package/lib/endpoints/tradesv1.js +148 -59
  56. package/lib/endpoints/translationsv1.d.ts +33 -0
  57. package/lib/endpoints/translationsv1.js +49 -14
  58. package/lib/endpoints/usersv1.d.ts +67 -0
  59. package/lib/endpoints/usersv1.js +138 -58
  60. package/lib/index.d.ts +4 -0
  61. package/lib/index.js +151 -240
  62. package/package.json +6 -3
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getXboxLiveConsecutiveLoginDays = exports.getUsersUseridRobloxBadges = exports.getUsersUseridPromotionChannels = exports.postStarCodeAffiliates = exports.getStarCodeAffiliates = exports.deleteStarCodeAffiliates = exports.postPromotionChannels = exports.getPromotionChannels = exports.postPhoneVerify = exports.postPhoneResend = exports.postPhoneDelete = exports.postPhone = exports.getPhone = exports.getMetadata = exports.postGender = exports.getGender = exports.postEmailVerify = exports.postDescription = exports.getDescription = exports.postBirthdate = exports.getBirthdate = void 0;
4
- var zod_1 = require("zod");
5
- var Roblox_AccountInformation_Api_Models_BirthdateResponse = zod_1.z.object({
3
+ exports.getXboxLiveConsecutiveLoginDays = exports.getUsersUseridRobloxBadges = exports.getUsersUseridPromotionChannels = exports.deleteStarCodeAffiliates = exports.postStarCodeAffiliates = exports.getStarCodeAffiliates = exports.postPromotionChannels = exports.getPromotionChannels = exports.postPhoneVerify = exports.postPhoneResend = exports.postPhoneDelete = exports.postPhone = exports.getPhone = exports.getMetadata = exports.postGender = exports.getGender = exports.postEmailVerify = exports.postDescription = exports.getDescription = exports.postBirthdate = exports.getBirthdate = void 0;
4
+ const zod_1 = require("zod");
5
+ const Roblox_AccountInformation_Api_Models_BirthdateResponse = zod_1.z.object({
6
6
  birthMonth: zod_1.z.number().int(),
7
7
  birthDay: zod_1.z.number().int(),
8
8
  birthYear: zod_1.z.number().int(),
9
9
  });
10
- var Roblox_AccountInformation_Api_Models_BirthdateRequest = zod_1.z.object({
10
+ const Roblox_AccountInformation_Api_Models_BirthdateRequest = zod_1.z.object({
11
11
  birthMonth: zod_1.z.number().int(),
12
12
  birthDay: zod_1.z.number().int(),
13
13
  birthYear: zod_1.z.number().int(),
14
14
  password: zod_1.z.string(),
15
15
  });
16
- var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
17
- var Roblox_AccountInformation_Api_Models_DescriptionResponse = zod_1.z.object({
16
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
17
+ const Roblox_AccountInformation_Api_Models_DescriptionResponse = zod_1.z.object({
18
18
  description: zod_1.z.string(),
19
19
  });
20
- var Roblox_AccountInformation_Api_Models_DescriptionRequest = zod_1.z.object({
20
+ const Roblox_AccountInformation_Api_Models_DescriptionRequest = zod_1.z.object({
21
21
  description: zod_1.z.string(),
22
22
  });
23
- var Roblox_AccountInformation_Api_Models_GenderResponse = zod_1.z.object({
23
+ const Roblox_AccountInformation_Api_Models_GenderResponse = zod_1.z.object({
24
24
  gender: zod_1.z.number().int(),
25
25
  });
26
- var Roblox_AccountInformation_Api_Models_GenderRequest = zod_1.z.object({
26
+ const Roblox_AccountInformation_Api_Models_GenderRequest = zod_1.z.object({
27
27
  gender: zod_1.z.string(),
28
28
  });
29
- var Roblox_AccountInformation_Api_Models_MetadataResponse = zod_1.z.object({
29
+ const Roblox_AccountInformation_Api_Models_MetadataResponse = zod_1.z.object({
30
30
  isAllowedNotificationsEndpointDisabled: zod_1.z.boolean(),
31
31
  isAccountSettingsPolicyEnabled: zod_1.z.boolean(),
32
32
  isPhoneNumberEnabled: zod_1.z.boolean(),
@@ -38,7 +38,7 @@ var Roblox_AccountInformation_Api_Models_MetadataResponse = zod_1.z.object({
38
38
  shouldDisplaySessionManagement: zod_1.z.boolean(),
39
39
  shouldUseSecurityReactUI: zod_1.z.boolean(),
40
40
  });
41
- var Roblox_AccountInformation_Api_Models_PhoneResponse = zod_1.z.object({
41
+ const Roblox_AccountInformation_Api_Models_PhoneResponse = zod_1.z.object({
42
42
  countryCode: zod_1.z.string(),
43
43
  prefix: zod_1.z.string(),
44
44
  phone: zod_1.z.string(),
@@ -46,13 +46,13 @@ var Roblox_AccountInformation_Api_Models_PhoneResponse = zod_1.z.object({
46
46
  verificationCodeLength: zod_1.z.number().int(),
47
47
  canBypassPasswordForPhoneUpdate: zod_1.z.boolean(),
48
48
  });
49
- var Roblox_AccountInformation_Api_Models_PhoneRequest = zod_1.z.object({
49
+ const Roblox_AccountInformation_Api_Models_PhoneRequest = zod_1.z.object({
50
50
  countryCode: zod_1.z.string(),
51
51
  prefix: zod_1.z.string(),
52
52
  phone: zod_1.z.string(),
53
53
  password: zod_1.z.string(),
54
54
  });
55
- var Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = zod_1.z.object({
55
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = zod_1.z.object({
56
56
  promotionChannelsVisibilityPrivacy: zod_1.z.string(),
57
57
  facebook: zod_1.z.string(),
58
58
  twitter: zod_1.z.string(),
@@ -60,7 +60,7 @@ var Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = zod_1.z.obj
60
60
  twitch: zod_1.z.string(),
61
61
  guilded: zod_1.z.string(),
62
62
  });
63
- var Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = zod_1.z.object({
63
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = zod_1.z.object({
64
64
  facebook: zod_1.z.string(),
65
65
  twitter: zod_1.z.string(),
66
66
  youtube: zod_1.z.string(),
@@ -68,60 +68,60 @@ var Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = zod_1.z.obje
68
68
  guilded: zod_1.z.string(),
69
69
  promotionChannelsVisibilityPrivacy: zod_1.z.string(),
70
70
  });
71
- var Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = zod_1.z.object({
71
+ const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = zod_1.z.object({
72
72
  userId: zod_1.z.number().int(),
73
73
  name: zod_1.z.string(),
74
74
  code: zod_1.z.string(),
75
75
  });
76
- var Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = zod_1.z.object({
76
+ const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = zod_1.z.object({
77
77
  code: zod_1.z.string(),
78
78
  });
79
- var Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = zod_1.z.object({
79
+ const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = zod_1.z.object({
80
80
  facebook: zod_1.z.string(),
81
81
  twitter: zod_1.z.string(),
82
82
  youtube: zod_1.z.string(),
83
83
  twitch: zod_1.z.string(),
84
84
  guilded: zod_1.z.string(),
85
85
  });
86
- var Roblox_AccountInformation_Api_RobloxBadgeResponse = zod_1.z.object({
86
+ const Roblox_AccountInformation_Api_RobloxBadgeResponse = zod_1.z.object({
87
87
  id: zod_1.z.number().int(),
88
88
  name: zod_1.z.string(),
89
89
  description: zod_1.z.string(),
90
90
  imageUrl: zod_1.z.string(),
91
91
  });
92
- var Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = zod_1.z.object({ count: zod_1.z.number().int() });
93
- var Roblox_AccountInformation_Api_Models_VerifyEmailRequest = zod_1.z.object({
92
+ const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = zod_1.z.object({ count: zod_1.z.number().int() });
93
+ const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = zod_1.z.object({
94
94
  ticket: zod_1.z.string(),
95
95
  });
96
- var Roblox_AccountInformation_Api_Models_VerifyEmailResponse = zod_1.z.object({
96
+ const Roblox_AccountInformation_Api_Models_VerifyEmailResponse = zod_1.z.object({
97
97
  verifiedUserHatAssetId: zod_1.z.number().int(),
98
98
  });
99
- var Roblox_AccountInformation_Api_Models_EmptyRequest = zod_1.z.object({});
100
- var Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = zod_1.z.object({
99
+ const Roblox_AccountInformation_Api_Models_EmptyRequest = zod_1.z.object({});
100
+ const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = zod_1.z.object({
101
101
  code: zod_1.z.string(),
102
102
  });
103
- var schemas = {
104
- Roblox_AccountInformation_Api_Models_BirthdateResponse: Roblox_AccountInformation_Api_Models_BirthdateResponse,
105
- Roblox_AccountInformation_Api_Models_BirthdateRequest: Roblox_AccountInformation_Api_Models_BirthdateRequest,
106
- Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
107
- Roblox_AccountInformation_Api_Models_DescriptionResponse: Roblox_AccountInformation_Api_Models_DescriptionResponse,
108
- Roblox_AccountInformation_Api_Models_DescriptionRequest: Roblox_AccountInformation_Api_Models_DescriptionRequest,
109
- Roblox_AccountInformation_Api_Models_GenderResponse: Roblox_AccountInformation_Api_Models_GenderResponse,
110
- Roblox_AccountInformation_Api_Models_GenderRequest: Roblox_AccountInformation_Api_Models_GenderRequest,
111
- Roblox_AccountInformation_Api_Models_MetadataResponse: Roblox_AccountInformation_Api_Models_MetadataResponse,
112
- Roblox_AccountInformation_Api_Models_PhoneResponse: Roblox_AccountInformation_Api_Models_PhoneResponse,
113
- Roblox_AccountInformation_Api_Models_PhoneRequest: Roblox_AccountInformation_Api_Models_PhoneRequest,
114
- Roblox_AccountInformation_Api_Models_PromotionChannelsResponse: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
115
- Roblox_AccountInformation_Api_Models_PromotionChannelsRequest: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
116
- Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
117
- Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest: Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest,
118
- Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
119
- Roblox_AccountInformation_Api_RobloxBadgeResponse: Roblox_AccountInformation_Api_RobloxBadgeResponse,
120
- Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse: Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse,
121
- Roblox_AccountInformation_Api_Models_VerifyEmailRequest: Roblox_AccountInformation_Api_Models_VerifyEmailRequest,
122
- Roblox_AccountInformation_Api_Models_VerifyEmailResponse: Roblox_AccountInformation_Api_Models_VerifyEmailResponse,
123
- Roblox_AccountInformation_Api_Models_EmptyRequest: Roblox_AccountInformation_Api_Models_EmptyRequest,
124
- Roblox_AccountInformation_Api_Models_VerifyPhoneRequest: Roblox_AccountInformation_Api_Models_VerifyPhoneRequest,
103
+ const schemas = {
104
+ Roblox_AccountInformation_Api_Models_BirthdateResponse,
105
+ Roblox_AccountInformation_Api_Models_BirthdateRequest,
106
+ Roblox_Web_WebAPI_ApiEmptyResponseModel,
107
+ Roblox_AccountInformation_Api_Models_DescriptionResponse,
108
+ Roblox_AccountInformation_Api_Models_DescriptionRequest,
109
+ Roblox_AccountInformation_Api_Models_GenderResponse,
110
+ Roblox_AccountInformation_Api_Models_GenderRequest,
111
+ Roblox_AccountInformation_Api_Models_MetadataResponse,
112
+ Roblox_AccountInformation_Api_Models_PhoneResponse,
113
+ Roblox_AccountInformation_Api_Models_PhoneRequest,
114
+ Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
115
+ Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
116
+ Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
117
+ Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest,
118
+ Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
119
+ Roblox_AccountInformation_Api_RobloxBadgeResponse,
120
+ Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse,
121
+ Roblox_AccountInformation_Api_Models_VerifyEmailRequest,
122
+ Roblox_AccountInformation_Api_Models_VerifyEmailResponse,
123
+ Roblox_AccountInformation_Api_Models_EmptyRequest,
124
+ Roblox_AccountInformation_Api_Models_VerifyPhoneRequest,
125
125
  };
126
126
  /**
127
127
  * @api get https://accountinformation.roblox.com/v1/birthdate
@@ -135,12 +135,12 @@ exports.getBirthdate = {
135
135
  errors: [
136
136
  {
137
137
  status: 400,
138
- description: "1: User not found.",
138
+ description: `1: User not found.`,
139
139
  schema: zod_1.z.void(),
140
140
  },
141
141
  {
142
142
  status: 401,
143
- description: "0: Authorization has been denied for this request.",
143
+ description: `0: Authorization has been denied for this request.`,
144
144
  schema: zod_1.z.void(),
145
145
  },
146
146
  ],
@@ -154,6 +154,9 @@ exports.postBirthdate = {
154
154
  path: '/v1/birthdate',
155
155
  baseUrl: 'https://accountinformation.roblox.com',
156
156
  requestFormat: 'json',
157
+ serializationMethod: {
158
+ body: {},
159
+ },
157
160
  parameters: {
158
161
  body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
159
162
  },
@@ -161,22 +164,27 @@ exports.postBirthdate = {
161
164
  errors: [
162
165
  {
163
166
  status: 400,
164
- description: "1: User not found.\n4: The birthdate provided is invalid.\n8: Password is incorrect.",
167
+ description: `1: User not found.
168
+ 4: The birthdate provided is invalid.
169
+ 8: Password is incorrect.`,
165
170
  schema: zod_1.z.void(),
166
171
  },
167
172
  {
168
173
  status: 401,
169
- description: "0: Authorization has been denied for this request.",
174
+ description: `0: Authorization has been denied for this request.`,
170
175
  schema: zod_1.z.void(),
171
176
  },
172
177
  {
173
178
  status: 403,
174
- description: "0: Token Validation Failed\n2: PIN is locked.\n5: Invalid birthdate change.",
179
+ description: `0: Token Validation Failed
180
+ 2: PIN is locked.
181
+ 5: Invalid birthdate change.`,
175
182
  schema: zod_1.z.void(),
176
183
  },
177
184
  {
178
185
  status: 500,
179
- description: "0: An unknown error occured.\n5: Invalid birthdate change.",
186
+ description: `0: An unknown error occured.
187
+ 5: Invalid birthdate change.`,
180
188
  schema: zod_1.z.void(),
181
189
  },
182
190
  ],
@@ -193,12 +201,12 @@ exports.getDescription = {
193
201
  errors: [
194
202
  {
195
203
  status: 400,
196
- description: "1: User not found.",
204
+ description: `1: User not found.`,
197
205
  schema: zod_1.z.void(),
198
206
  },
199
207
  {
200
208
  status: 401,
201
- description: "0: Authorization has been denied for this request.",
209
+ description: `0: Authorization has been denied for this request.`,
202
210
  schema: zod_1.z.void(),
203
211
  },
204
212
  ],
@@ -212,6 +220,9 @@ exports.postDescription = {
212
220
  path: '/v1/description',
213
221
  baseUrl: 'https://accountinformation.roblox.com',
214
222
  requestFormat: 'json',
223
+ serializationMethod: {
224
+ body: {},
225
+ },
215
226
  parameters: {
216
227
  body: zod_1.z.object({ description: zod_1.z.string() }),
217
228
  },
@@ -219,27 +230,28 @@ exports.postDescription = {
219
230
  errors: [
220
231
  {
221
232
  status: 400,
222
- description: "1: User not found.",
233
+ description: `1: User not found.`,
223
234
  schema: zod_1.z.void(),
224
235
  },
225
236
  {
226
237
  status: 401,
227
- description: "0: Authorization has been denied for this request.",
238
+ description: `0: Authorization has been denied for this request.`,
228
239
  schema: zod_1.z.void(),
229
240
  },
230
241
  {
231
242
  status: 403,
232
- description: "0: Token Validation Failed\n2: PIN is locked.",
243
+ description: `0: Token Validation Failed
244
+ 2: PIN is locked.`,
233
245
  schema: zod_1.z.void(),
234
246
  },
235
247
  {
236
248
  status: 500,
237
- description: "0: An unknown error occured.",
249
+ description: `0: An unknown error occured.`,
238
250
  schema: zod_1.z.void(),
239
251
  },
240
252
  {
241
253
  status: 503,
242
- description: "3: This feature is currently disabled. Please try again later.",
254
+ description: `3: This feature is currently disabled. Please try again later.`,
243
255
  schema: zod_1.z.void(),
244
256
  },
245
257
  ],
@@ -253,6 +265,9 @@ exports.postEmailVerify = {
253
265
  path: '/v1/email/verify',
254
266
  baseUrl: 'https://accountinformation.roblox.com',
255
267
  requestFormat: 'json',
268
+ serializationMethod: {
269
+ body: {},
270
+ },
256
271
  parameters: {
257
272
  body: zod_1.z.object({ ticket: zod_1.z.string() }),
258
273
  },
@@ -260,7 +275,7 @@ exports.postEmailVerify = {
260
275
  errors: [
261
276
  {
262
277
  status: 403,
263
- description: "0: Token Validation Failed",
278
+ description: `0: Token Validation Failed`,
264
279
  schema: zod_1.z.void(),
265
280
  },
266
281
  ],
@@ -277,12 +292,12 @@ exports.getGender = {
277
292
  errors: [
278
293
  {
279
294
  status: 400,
280
- description: "1: User not found.",
295
+ description: `1: User not found.`,
281
296
  schema: zod_1.z.void(),
282
297
  },
283
298
  {
284
299
  status: 401,
285
- description: "0: Authorization has been denied for this request.",
300
+ description: `0: Authorization has been denied for this request.`,
286
301
  schema: zod_1.z.void(),
287
302
  },
288
303
  ],
@@ -296,6 +311,9 @@ exports.postGender = {
296
311
  path: '/v1/gender',
297
312
  baseUrl: 'https://accountinformation.roblox.com',
298
313
  requestFormat: 'json',
314
+ serializationMethod: {
315
+ body: {},
316
+ },
299
317
  parameters: {
300
318
  body: zod_1.z.object({ gender: zod_1.z.string() }),
301
319
  },
@@ -303,22 +321,24 @@ exports.postGender = {
303
321
  errors: [
304
322
  {
305
323
  status: 400,
306
- description: "1: User not found.\n6: The gender provided is invalid.",
324
+ description: `1: User not found.
325
+ 6: The gender provided is invalid.`,
307
326
  schema: zod_1.z.void(),
308
327
  },
309
328
  {
310
329
  status: 401,
311
- description: "0: Authorization has been denied for this request.",
330
+ description: `0: Authorization has been denied for this request.`,
312
331
  schema: zod_1.z.void(),
313
332
  },
314
333
  {
315
334
  status: 403,
316
- description: "0: Token Validation Failed\n2: PIN is locked.",
335
+ description: `0: Token Validation Failed
336
+ 2: PIN is locked.`,
317
337
  schema: zod_1.z.void(),
318
338
  },
319
339
  {
320
340
  status: 500,
321
- description: "0: An unknown error occured.",
341
+ description: `0: An unknown error occured.`,
322
342
  schema: zod_1.z.void(),
323
343
  },
324
344
  ],
@@ -346,12 +366,12 @@ exports.getPhone = {
346
366
  errors: [
347
367
  {
348
368
  status: 401,
349
- description: "0: Authorization has been denied for this request.",
369
+ description: `0: Authorization has been denied for this request.`,
350
370
  schema: zod_1.z.void(),
351
371
  },
352
372
  {
353
373
  status: 500,
354
- description: "0: An unknown error occured.",
374
+ description: `0: An unknown error occured.`,
355
375
  schema: zod_1.z.void(),
356
376
  },
357
377
  ],
@@ -365,6 +385,9 @@ exports.postPhone = {
365
385
  path: '/v1/phone',
366
386
  baseUrl: 'https://accountinformation.roblox.com',
367
387
  requestFormat: 'json',
388
+ serializationMethod: {
389
+ body: {},
390
+ },
368
391
  parameters: {
369
392
  body: Roblox_AccountInformation_Api_Models_PhoneRequest,
370
393
  },
@@ -372,32 +395,37 @@ exports.postPhone = {
372
395
  errors: [
373
396
  {
374
397
  status: 400,
375
- description: "2: Invalid Phone Number\n3: Phone Number Already Associated\n8: Invalid Phone Number Type",
398
+ description: `2: Invalid Phone Number
399
+ 3: Phone Number Already Associated
400
+ 8: Invalid Phone Number Type`,
376
401
  schema: zod_1.z.void(),
377
402
  },
378
403
  {
379
404
  status: 401,
380
- description: "0: Authorization has been denied for this request.",
405
+ description: `0: Authorization has been denied for this request.`,
381
406
  schema: zod_1.z.void(),
382
407
  },
383
408
  {
384
409
  status: 403,
385
- description: "0: Token Validation Failed\n4: Account Pin Locked\n5: Incorrect Password\n10: ",
410
+ description: `0: Token Validation Failed
411
+ 4: Account Pin Locked
412
+ 5: Incorrect Password
413
+ 10: `,
386
414
  schema: zod_1.z.void(),
387
415
  },
388
416
  {
389
417
  status: 429,
390
- description: "6: Flooded",
418
+ description: `6: Flooded`,
391
419
  schema: zod_1.z.void(),
392
420
  },
393
421
  {
394
422
  status: 500,
395
- description: "0: An unknown error occured.",
423
+ description: `0: An unknown error occured.`,
396
424
  schema: zod_1.z.void(),
397
425
  },
398
426
  {
399
427
  status: 503,
400
- description: "1: This feature is currently disabled. Please try again later.",
428
+ description: `1: This feature is currently disabled. Please try again later.`,
401
429
  schema: zod_1.z.void(),
402
430
  },
403
431
  ],
@@ -411,6 +439,9 @@ exports.postPhoneDelete = {
411
439
  path: '/v1/phone/delete',
412
440
  baseUrl: 'https://accountinformation.roblox.com',
413
441
  requestFormat: 'json',
442
+ serializationMethod: {
443
+ body: {},
444
+ },
414
445
  parameters: {
415
446
  body: Roblox_AccountInformation_Api_Models_PhoneRequest,
416
447
  },
@@ -418,27 +449,29 @@ exports.postPhoneDelete = {
418
449
  errors: [
419
450
  {
420
451
  status: 401,
421
- description: "0: Authorization has been denied for this request.",
452
+ description: `0: Authorization has been denied for this request.`,
422
453
  schema: zod_1.z.void(),
423
454
  },
424
455
  {
425
456
  status: 403,
426
- description: "0: Token Validation Failed\n4: Account Pin Locked\n5: Incorrect Password",
457
+ description: `0: Token Validation Failed
458
+ 4: Account Pin Locked
459
+ 5: Incorrect Password`,
427
460
  schema: zod_1.z.void(),
428
461
  },
429
462
  {
430
463
  status: 429,
431
- description: "6: Flooded",
464
+ description: `6: Flooded`,
432
465
  schema: zod_1.z.void(),
433
466
  },
434
467
  {
435
468
  status: 500,
436
- description: "0: An unknown error occured.",
469
+ description: `0: An unknown error occured.`,
437
470
  schema: zod_1.z.void(),
438
471
  },
439
472
  {
440
473
  status: 503,
441
- description: "1: This feature is currently disabled. Please try again later.",
474
+ description: `1: This feature is currently disabled. Please try again later.`,
442
475
  schema: zod_1.z.void(),
443
476
  },
444
477
  ],
@@ -452,6 +485,9 @@ exports.postPhoneResend = {
452
485
  path: '/v1/phone/resend',
453
486
  baseUrl: 'https://accountinformation.roblox.com',
454
487
  requestFormat: 'json',
488
+ serializationMethod: {
489
+ body: {},
490
+ },
455
491
  parameters: {
456
492
  body: zod_1.z.object({}),
457
493
  },
@@ -459,27 +495,27 @@ exports.postPhoneResend = {
459
495
  errors: [
460
496
  {
461
497
  status: 401,
462
- description: "0: Authorization has been denied for this request.",
498
+ description: `0: Authorization has been denied for this request.`,
463
499
  schema: zod_1.z.void(),
464
500
  },
465
501
  {
466
502
  status: 403,
467
- description: "0: Token Validation Failed",
503
+ description: `0: Token Validation Failed`,
468
504
  schema: zod_1.z.void(),
469
505
  },
470
506
  {
471
507
  status: 429,
472
- description: "6: Flooded",
508
+ description: `6: Flooded`,
473
509
  schema: zod_1.z.void(),
474
510
  },
475
511
  {
476
512
  status: 500,
477
- description: "0: An unknown error occured.",
513
+ description: `0: An unknown error occured.`,
478
514
  schema: zod_1.z.void(),
479
515
  },
480
516
  {
481
517
  status: 503,
482
- description: "1: This feature is currently disabled. Please try again later.",
518
+ description: `1: This feature is currently disabled. Please try again later.`,
483
519
  schema: zod_1.z.void(),
484
520
  },
485
521
  ],
@@ -493,6 +529,9 @@ exports.postPhoneVerify = {
493
529
  path: '/v1/phone/verify',
494
530
  baseUrl: 'https://accountinformation.roblox.com',
495
531
  requestFormat: 'json',
532
+ serializationMethod: {
533
+ body: {},
534
+ },
496
535
  parameters: {
497
536
  body: zod_1.z.object({ code: zod_1.z.string() }),
498
537
  },
@@ -500,32 +539,34 @@ exports.postPhoneVerify = {
500
539
  errors: [
501
540
  {
502
541
  status: 400,
503
- description: "2: Invalid Phone Number\n3: Phone Number Already Associated\n7: Invalid Code",
542
+ description: `2: Invalid Phone Number
543
+ 3: Phone Number Already Associated
544
+ 7: Invalid Code`,
504
545
  schema: zod_1.z.void(),
505
546
  },
506
547
  {
507
548
  status: 401,
508
- description: "0: Authorization has been denied for this request.",
549
+ description: `0: Authorization has been denied for this request.`,
509
550
  schema: zod_1.z.void(),
510
551
  },
511
552
  {
512
553
  status: 403,
513
- description: "0: Token Validation Failed",
554
+ description: `0: Token Validation Failed`,
514
555
  schema: zod_1.z.void(),
515
556
  },
516
557
  {
517
558
  status: 429,
518
- description: "6: Flooded",
559
+ description: `6: Flooded`,
519
560
  schema: zod_1.z.void(),
520
561
  },
521
562
  {
522
563
  status: 500,
523
- description: "0: An unknown error occured.",
564
+ description: `0: An unknown error occured.`,
524
565
  schema: zod_1.z.void(),
525
566
  },
526
567
  {
527
568
  status: 503,
528
- description: "1: This feature is currently disabled. Please try again later.",
569
+ description: `1: This feature is currently disabled. Please try again later.`,
529
570
  schema: zod_1.z.void(),
530
571
  },
531
572
  ],
@@ -542,12 +583,12 @@ exports.getPromotionChannels = {
542
583
  errors: [
543
584
  {
544
585
  status: 400,
545
- description: "1: User not found.",
586
+ description: `1: User not found.`,
546
587
  schema: zod_1.z.void(),
547
588
  },
548
589
  {
549
590
  status: 401,
550
- description: "0: Authorization has been denied for this request.",
591
+ description: `0: Authorization has been denied for this request.`,
551
592
  schema: zod_1.z.void(),
552
593
  },
553
594
  ],
@@ -561,6 +602,9 @@ exports.postPromotionChannels = {
561
602
  path: '/v1/promotion-channels',
562
603
  baseUrl: 'https://accountinformation.roblox.com',
563
604
  requestFormat: 'json',
605
+ serializationMethod: {
606
+ body: {},
607
+ },
564
608
  parameters: {
565
609
  body: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
566
610
  },
@@ -568,102 +612,112 @@ exports.postPromotionChannels = {
568
612
  errors: [
569
613
  {
570
614
  status: 400,
571
- description: "2: The request was empty.\n11: The Facebook profile url is invalid.\n12: The Twitter handle is invalid.\n13: The YouTube url is invalid.\n14: The Twitch profile url is invalid.\n15: The Guilded profile url is invalid.",
615
+ description: `2: The request was empty.
616
+ 11: The Facebook profile url is invalid.
617
+ 12: The Twitter handle is invalid.
618
+ 13: The YouTube url is invalid.
619
+ 14: The Twitch profile url is invalid.
620
+ 15: The Guilded profile url is invalid.`,
572
621
  schema: zod_1.z.void(),
573
622
  },
574
623
  {
575
624
  status: 401,
576
- description: "0: Authorization has been denied for this request.",
625
+ description: `0: Authorization has been denied for this request.`,
577
626
  schema: zod_1.z.void(),
578
627
  },
579
628
  {
580
629
  status: 403,
581
- description: "0: Token Validation Failed\n3: PIN is locked.\n4: Only users who are over twelve years of age may edit social network channels.",
630
+ description: `0: Token Validation Failed
631
+ 3: PIN is locked.
632
+ 4: Only users who are over twelve years of age may edit social network channels.`,
582
633
  schema: zod_1.z.void(),
583
634
  },
584
635
  ],
585
636
  };
586
637
  /**
587
- * @api delete https://accountinformation.roblox.com/v1/star-code-affiliates
638
+ * @api get https://accountinformation.roblox.com/v1/star-code-affiliates
588
639
  */
589
- exports.deleteStarCodeAffiliates = {
590
- method: 'delete',
640
+ exports.getStarCodeAffiliates = {
641
+ method: 'get',
591
642
  path: '/v1/star-code-affiliates',
592
643
  baseUrl: 'https://accountinformation.roblox.com',
593
644
  requestFormat: 'json',
594
- response: zod_1.z.object({}),
645
+ response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
595
646
  errors: [
596
647
  {
597
648
  status: 401,
598
- description: "0: Authorization has been denied for this request.",
599
- schema: zod_1.z.void(),
600
- },
601
- {
602
- status: 403,
603
- description: "0: Token Validation Failed",
649
+ description: `0: Authorization has been denied for this request.`,
604
650
  schema: zod_1.z.void(),
605
651
  },
606
652
  {
607
653
  status: 500,
608
- description: "0: An unknown error occured.",
654
+ description: `0: An unknown error occured.`,
609
655
  schema: zod_1.z.void(),
610
656
  },
611
657
  ],
612
658
  };
613
659
  /**
614
- * @api get https://accountinformation.roblox.com/v1/star-code-affiliates
660
+ * @api post https://accountinformation.roblox.com/v1/star-code-affiliates
661
+ * @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
615
662
  */
616
- exports.getStarCodeAffiliates = {
617
- method: 'get',
663
+ exports.postStarCodeAffiliates = {
664
+ method: 'post',
618
665
  path: '/v1/star-code-affiliates',
619
666
  baseUrl: 'https://accountinformation.roblox.com',
620
667
  requestFormat: 'json',
668
+ serializationMethod: {
669
+ body: {},
670
+ },
671
+ parameters: {
672
+ body: zod_1.z.object({ code: zod_1.z.string() }),
673
+ },
621
674
  response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
622
675
  errors: [
676
+ {
677
+ status: 400,
678
+ description: `1: The code was invalid.`,
679
+ schema: zod_1.z.void(),
680
+ },
623
681
  {
624
682
  status: 401,
625
- description: "0: Authorization has been denied for this request.",
683
+ description: `0: Authorization has been denied for this request.`,
684
+ schema: zod_1.z.void(),
685
+ },
686
+ {
687
+ status: 403,
688
+ description: `0: Token Validation Failed`,
626
689
  schema: zod_1.z.void(),
627
690
  },
628
691
  {
629
692
  status: 500,
630
- description: "0: An unknown error occured.",
693
+ description: `0: An unknown error occured.`,
631
694
  schema: zod_1.z.void(),
632
695
  },
633
696
  ],
634
697
  };
635
698
  /**
636
- * @api post https://accountinformation.roblox.com/v1/star-code-affiliates
637
- * @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
699
+ * @api delete https://accountinformation.roblox.com/v1/star-code-affiliates
638
700
  */
639
- exports.postStarCodeAffiliates = {
640
- method: 'post',
701
+ exports.deleteStarCodeAffiliates = {
702
+ method: 'delete',
641
703
  path: '/v1/star-code-affiliates',
642
704
  baseUrl: 'https://accountinformation.roblox.com',
643
705
  requestFormat: 'json',
644
- parameters: {
645
- body: zod_1.z.object({ code: zod_1.z.string() }),
646
- },
647
- response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
706
+ response: zod_1.z.object({}),
648
707
  errors: [
649
- {
650
- status: 400,
651
- description: "1: The code was invalid.",
652
- schema: zod_1.z.void(),
653
- },
654
708
  {
655
709
  status: 401,
656
- description: "0: Authorization has been denied for this request.",
710
+ description: `0: Authorization has been denied for this request.`,
657
711
  schema: zod_1.z.void(),
658
712
  },
659
713
  {
660
714
  status: 403,
661
- description: "0: Token Validation Failed",
715
+ description: `0: Token Validation Failed`,
662
716
  schema: zod_1.z.void(),
663
717
  },
664
718
  {
665
719
  status: 500,
666
- description: "0: An unknown error occured.",
720
+ description: `0: An unknown error occured.`,
667
721
  schema: zod_1.z.void(),
668
722
  },
669
723
  ],
@@ -677,6 +731,11 @@ exports.getUsersUseridPromotionChannels = {
677
731
  path: '/v1/users/:userId/promotion-channels',
678
732
  baseUrl: 'https://accountinformation.roblox.com',
679
733
  requestFormat: 'json',
734
+ serializationMethod: {
735
+ userId: {
736
+ style: 'simple',
737
+ },
738
+ },
680
739
  parameters: {
681
740
  userId: zod_1.z.number().int(),
682
741
  },
@@ -684,7 +743,7 @@ exports.getUsersUseridPromotionChannels = {
684
743
  errors: [
685
744
  {
686
745
  status: 400,
687
- description: "1: User not found.",
746
+ description: `1: User not found.`,
688
747
  schema: zod_1.z.void(),
689
748
  },
690
749
  ],
@@ -698,6 +757,11 @@ exports.getUsersUseridRobloxBadges = {
698
757
  path: '/v1/users/:userId/roblox-badges',
699
758
  baseUrl: 'https://accountinformation.roblox.com',
700
759
  requestFormat: 'json',
760
+ serializationMethod: {
761
+ userId: {
762
+ style: 'simple',
763
+ },
764
+ },
701
765
  parameters: {
702
766
  userId: zod_1.z.number().int(),
703
767
  },
@@ -716,7 +780,8 @@ exports.getXboxLiveConsecutiveLoginDays = {
716
780
  errors: [
717
781
  {
718
782
  status: 401,
719
- description: "0: Authorization has been denied for this request.\n7: The account is not connected to an Xbox Live account",
783
+ description: `0: Authorization has been denied for this request.
784
+ 7: The account is not connected to an Xbox Live account`,
720
785
  schema: zod_1.z.void(),
721
786
  },
722
787
  ],