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,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = exports.postUsername = exports.postUserPasswordsChange = exports.postTwostepverificationVerify = exports.postTwostepverificationResend = exports.getTwostepverificationMetadata = exports.postSignup = exports.postRevertAccount = exports.getRevertAccount = exports.getRecoveryMetadata = exports.postPasswordsValidate = exports.getPasswordsValidate = exports.postPasswordsResetVerify = exports.postPasswordsResetSend = exports.postPasswordsReset = exports.getPasswordsReset = exports.getPasswordsCurrentStatus = exports.getMetadata = exports.postLogoutfromallsessionsandreauthenticate = exports.postLogout = exports.postLogin = exports.postIdentityVerificationLogin = exports.postCredentialsVerificationSend = exports.postCredentialsVerification = exports.getCredentialsVerification = exports.getAuthMetadata = void 0;
4
- var zod_1 = require("zod");
5
- var Roblox_Authentication_Api_Models_AuthMetaDataResponse = zod_1.z.object({
4
+ const zod_1 = require("zod");
5
+ const Roblox_Authentication_Api_Models_AuthMetaDataResponse = zod_1.z.object({
6
6
  cookieLawNoticeTimeout: zod_1.z.number().int(),
7
7
  });
8
- var Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse = zod_1.z.object({
8
+ const Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse = zod_1.z.object({
9
9
  canSend: zod_1.z.boolean(),
10
10
  });
11
- var Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest = zod_1.z.object({
11
+ const Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest = zod_1.z.object({
12
12
  credentialType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
13
13
  credentialValue: zod_1.z.string(),
14
14
  password: zod_1.z.string(),
15
15
  });
16
- var Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
16
+ const Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
17
17
  isUpdateUsernameEnabled: zod_1.z.boolean(),
18
18
  ftuxAvatarAssetMap: zod_1.z.string(),
19
19
  IsEmailUpsellAtLogoutEnabled: zod_1.z.boolean(),
@@ -24,18 +24,18 @@ var Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
24
24
  IsKoreaIdVerificationEnabled: zod_1.z.boolean(),
25
25
  IsPasswordRequiredForUsernameChange: zod_1.z.boolean(),
26
26
  });
27
- var Roblox_Authentication_Api_Models_PasswordStatusResponse = zod_1.z.object({
27
+ const Roblox_Authentication_Api_Models_PasswordStatusResponse = zod_1.z.object({
28
28
  valid: zod_1.z.boolean(),
29
29
  });
30
- var Roblox_Web_Responses_Users_LegacyUserResponse = zod_1.z.object({
30
+ const Roblox_Web_Responses_Users_LegacyUserResponse = zod_1.z.object({
31
31
  userId: zod_1.z.number().int(),
32
32
  username: zod_1.z.string(),
33
33
  displayName: zod_1.z.string(),
34
34
  });
35
- var Roblox_Authentication_Api_Models_PasswordResetMetadataResponse = zod_1.z.object({
35
+ const Roblox_Authentication_Api_Models_PasswordResetMetadataResponse = zod_1.z.object({
36
36
  users: zod_1.z.array(Roblox_Web_Responses_Users_LegacyUserResponse),
37
37
  });
38
- var Roblox_Authentication_Api_Models_PasswordResetModel = zod_1.z.object({
38
+ const Roblox_Authentication_Api_Models_PasswordResetModel = zod_1.z.object({
39
39
  targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
40
40
  ticket: zod_1.z.string(),
41
41
  userId: zod_1.z.number().int(),
@@ -44,37 +44,37 @@ var Roblox_Authentication_Api_Models_PasswordResetModel = zod_1.z.object({
44
44
  twoStepVerificationChallengeId: zod_1.z.string(),
45
45
  twoStepVerificationToken: zod_1.z.string(),
46
46
  });
47
- var Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
47
+ const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
48
48
  id: zod_1.z.number().int(),
49
49
  name: zod_1.z.string(),
50
50
  displayName: zod_1.z.string(),
51
51
  });
52
- var Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
52
+ const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
53
53
  mediaType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
54
54
  ticket: zod_1.z.string(),
55
55
  });
56
- var Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
56
+ const Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
57
57
  user: Roblox_Web_Responses_Users_SkinnyUserResponse,
58
58
  twoStepVerificationData: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
59
59
  identityVerificationLoginTicket: zod_1.z.string(),
60
60
  isBanned: zod_1.z.boolean(),
61
61
  });
62
- var Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
62
+ const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
63
63
  code: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]),
64
64
  message: zod_1.z.string(),
65
65
  });
66
- var Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
66
+ const Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
67
67
  username: zod_1.z.string(),
68
68
  password: zod_1.z.string(),
69
69
  });
70
- var Roblox_Authentication_Api_Models_RecoveryMetadataResponse = zod_1.z.object({
70
+ const Roblox_Authentication_Api_Models_RecoveryMetadataResponse = zod_1.z.object({
71
71
  isOnPhone: zod_1.z.boolean(),
72
72
  codeLength: zod_1.z.number().int(),
73
73
  isPhoneFeatureEnabledForUsername: zod_1.z.boolean(),
74
74
  isPhoneFeatureEnabledForPassword: zod_1.z.boolean(),
75
75
  isBedev2CaptchaEnabledForPasswordReset: zod_1.z.boolean(),
76
76
  });
77
- var Roblox_Authentication_Api_Models_RevertAccountInfoResponse = zod_1.z.object({
77
+ const Roblox_Authentication_Api_Models_RevertAccountInfoResponse = zod_1.z.object({
78
78
  isTwoStepVerificationEnabled: zod_1.z.boolean(),
79
79
  isEmailVerified: zod_1.z.boolean(),
80
80
  isEmailChanged: zod_1.z.boolean(),
@@ -83,7 +83,7 @@ var Roblox_Authentication_Api_Models_RevertAccountInfoResponse = zod_1.z.object(
83
83
  username: zod_1.z.string(),
84
84
  ticket: zod_1.z.string(),
85
85
  });
86
- var Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = zod_1.z.object({
86
+ const Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = zod_1.z.object({
87
87
  UserId: zod_1.z.number().int(),
88
88
  NewPassword: zod_1.z.string(),
89
89
  NewPasswordRepeated: zod_1.z.string(),
@@ -91,15 +91,15 @@ var Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = zod_1.z.object
91
91
  TwoStepVerificationChallengeId: zod_1.z.string(),
92
92
  TwoStepVerificationToken: zod_1.z.string(),
93
93
  });
94
- var Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse = zod_1.z.object({
94
+ const Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse = zod_1.z.object({
95
95
  codeLength: zod_1.z.number().int(),
96
96
  loadingImageUrl: zod_1.z.string(),
97
97
  supportUrl: zod_1.z.string(),
98
98
  });
99
- var Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
99
+ const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
100
100
  usernames: zod_1.z.array(zod_1.z.string()),
101
101
  });
102
- var Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
102
+ const Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
103
103
  code: zod_1.z.union([
104
104
  zod_1.z.literal(0),
105
105
  zod_1.z.literal(1),
@@ -114,23 +114,23 @@ var Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object
114
114
  ]),
115
115
  message: zod_1.z.string(),
116
116
  });
117
- var Roblox_Authentication_Api_Models_UsernameValidationRequest = zod_1.z.object({
117
+ const Roblox_Authentication_Api_Models_UsernameValidationRequest = zod_1.z.object({
118
118
  username: zod_1.z.string(),
119
119
  birthday: zod_1.z.string().datetime(),
120
120
  context: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
121
121
  });
122
- var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
123
- var Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = zod_1.z.object({
122
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
123
+ const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = zod_1.z.object({
124
124
  loginTicket: zod_1.z.string(),
125
125
  resultToken: zod_1.z.string(),
126
126
  });
127
- var Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel = zod_1.z.object({
127
+ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel = zod_1.z.object({
128
128
  clientPublicKey: zod_1.z.string(),
129
129
  clientEpochTimestamp: zod_1.z.number().int(),
130
130
  saiSignature: zod_1.z.string(),
131
131
  serverNonce: zod_1.z.string(),
132
132
  });
133
- var Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
133
+ const Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
134
134
  ctype: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
135
135
  cvalue: zod_1.z.string(),
136
136
  password: zod_1.z.string(),
@@ -143,7 +143,7 @@ var Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
143
143
  captchaProvider: zod_1.z.string(),
144
144
  challengeId: zod_1.z.string(),
145
145
  });
146
- var Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object({
146
+ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object({
147
147
  targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
148
148
  target: zod_1.z.string(),
149
149
  captchaId: zod_1.z.string(),
@@ -151,23 +151,23 @@ var Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object({
151
151
  captchaProvider: zod_1.z.string(),
152
152
  challengeId: zod_1.z.string(),
153
153
  });
154
- var Roblox_Authentication_Api_Models_SendResetPasswordResponse = zod_1.z.object({
154
+ const Roblox_Authentication_Api_Models_SendResetPasswordResponse = zod_1.z.object({
155
155
  nonce: zod_1.z.string(),
156
156
  transmissionType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
157
157
  });
158
- var Roblox_Authentication_Api_Models_PasswordResetVerificationRequest = zod_1.z.object({
158
+ const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest = zod_1.z.object({
159
159
  targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
160
160
  nonce: zod_1.z.string(),
161
161
  code: zod_1.z.string(),
162
162
  });
163
- var Roblox_Authentication_Api_Models_ForgotPasswordUserResponse = zod_1.z.object({
163
+ const Roblox_Authentication_Api_Models_ForgotPasswordUserResponse = zod_1.z.object({
164
164
  user: Roblox_Web_Responses_Users_LegacyUserResponse,
165
165
  ticket: zod_1.z.string(),
166
166
  });
167
- var Roblox_Authentication_Api_Models_PasswordResetVerificationResponse = zod_1.z.object({
167
+ const Roblox_Authentication_Api_Models_PasswordResetVerificationResponse = zod_1.z.object({
168
168
  userTickets: zod_1.z.array(Roblox_Authentication_Api_Models_ForgotPasswordUserResponse),
169
169
  });
170
- var Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
170
+ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
171
171
  acquisitionTime: zod_1.z.string().datetime(),
172
172
  acquisitionReferrer: zod_1.z.string(),
173
173
  medium: zod_1.z.string(),
@@ -180,11 +180,11 @@ var Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
180
180
  requestSessionId: zod_1.z.string(),
181
181
  offerId: zod_1.z.string(),
182
182
  });
183
- var Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
183
+ const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
184
184
  otpSessionToken: zod_1.z.string(),
185
185
  otpContactType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
186
186
  });
187
- var Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
187
+ const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
188
188
  username: zod_1.z.string(),
189
189
  password: zod_1.z.string(),
190
190
  gender: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
@@ -209,11 +209,11 @@ var Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
209
209
  captchaProvider: zod_1.z.string(),
210
210
  challengeId: zod_1.z.string(),
211
211
  });
212
- var Roblox_Authentication_Api_Models_SignupResponse = zod_1.z.object({
212
+ const Roblox_Authentication_Api_Models_SignupResponse = zod_1.z.object({
213
213
  userId: zod_1.z.number().int(),
214
214
  starterPlaceId: zod_1.z.number().int(),
215
215
  });
216
- var Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest = zod_1.z.object({
216
+ const Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest = zod_1.z.object({
217
217
  username: zod_1.z.string(),
218
218
  ticket: zod_1.z.string(),
219
219
  actionType: zod_1.z.union([
@@ -228,7 +228,7 @@ var Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest = zod_1.z.
228
228
  zod_1.z.literal(8),
229
229
  ]),
230
230
  });
231
- var Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest = zod_1.z.object({
231
+ const Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest = zod_1.z.object({
232
232
  username: zod_1.z.string(),
233
233
  ticket: zod_1.z.string(),
234
234
  code: zod_1.z.string(),
@@ -245,61 +245,61 @@ var Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest = zod_1.z.
245
245
  zod_1.z.literal(8),
246
246
  ]),
247
247
  });
248
- var Roblox_Authentication_Api_Models_PasswordChangeModel = zod_1.z.object({
248
+ const Roblox_Authentication_Api_Models_PasswordChangeModel = zod_1.z.object({
249
249
  currentPassword: zod_1.z.string(),
250
250
  newPassword: zod_1.z.string(),
251
251
  });
252
- var Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
252
+ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
253
253
  username: zod_1.z.string(),
254
254
  password: zod_1.z.string(),
255
255
  });
256
- var Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
256
+ const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
257
257
  targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
258
258
  target: zod_1.z.string(),
259
259
  });
260
- var Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
260
+ const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
261
261
  transmissionType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
262
262
  });
263
- var schemas = {
264
- Roblox_Authentication_Api_Models_AuthMetaDataResponse: Roblox_Authentication_Api_Models_AuthMetaDataResponse,
265
- Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse: Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse,
266
- Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
267
- Roblox_Authentication_Api_Models_MetadataResponse: Roblox_Authentication_Api_Models_MetadataResponse,
268
- Roblox_Authentication_Api_Models_PasswordStatusResponse: Roblox_Authentication_Api_Models_PasswordStatusResponse,
269
- Roblox_Web_Responses_Users_LegacyUserResponse: Roblox_Web_Responses_Users_LegacyUserResponse,
270
- Roblox_Authentication_Api_Models_PasswordResetMetadataResponse: Roblox_Authentication_Api_Models_PasswordResetMetadataResponse,
271
- Roblox_Authentication_Api_Models_PasswordResetModel: Roblox_Authentication_Api_Models_PasswordResetModel,
272
- Roblox_Web_Responses_Users_SkinnyUserResponse: Roblox_Web_Responses_Users_SkinnyUserResponse,
273
- Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
274
- Roblox_Authentication_Api_Models_LoginResponse: Roblox_Authentication_Api_Models_LoginResponse,
275
- Roblox_Authentication_Api_Models_PasswordValidationResponse: Roblox_Authentication_Api_Models_PasswordValidationResponse,
276
- Roblox_Authentication_Api_Models_PasswordValidationModel: Roblox_Authentication_Api_Models_PasswordValidationModel,
277
- Roblox_Authentication_Api_Models_RecoveryMetadataResponse: Roblox_Authentication_Api_Models_RecoveryMetadataResponse,
278
- Roblox_Authentication_Api_Models_RevertAccountInfoResponse: Roblox_Authentication_Api_Models_RevertAccountInfoResponse,
279
- Roblox_Authentication_Api_Models_RevertAccountSubmitRequest: Roblox_Authentication_Api_Models_RevertAccountSubmitRequest,
280
- Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse: Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse,
281
- Roblox_Authentication_Api_Models_UsernamesResponse: Roblox_Authentication_Api_Models_UsernamesResponse,
282
- Roblox_Authentication_Api_Models_UsernameValidationResponse: Roblox_Authentication_Api_Models_UsernameValidationResponse,
283
- Roblox_Authentication_Api_Models_UsernameValidationRequest: Roblox_Authentication_Api_Models_UsernameValidationRequest,
284
- Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
285
- Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest: Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest,
286
- Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
287
- Roblox_Authentication_Api_Models_LoginRequest: Roblox_Authentication_Api_Models_LoginRequest,
288
- Roblox_Authentication_Api_Models_SendResetPasswordRequest: Roblox_Authentication_Api_Models_SendResetPasswordRequest,
289
- Roblox_Authentication_Api_Models_SendResetPasswordResponse: Roblox_Authentication_Api_Models_SendResetPasswordResponse,
290
- Roblox_Authentication_Api_Models_PasswordResetVerificationRequest: Roblox_Authentication_Api_Models_PasswordResetVerificationRequest,
291
- Roblox_Authentication_Api_Models_ForgotPasswordUserResponse: Roblox_Authentication_Api_Models_ForgotPasswordUserResponse,
292
- Roblox_Authentication_Api_Models_PasswordResetVerificationResponse: Roblox_Authentication_Api_Models_PasswordResetVerificationResponse,
293
- Roblox_Authentication_Api_Models_ReferralDataModel: Roblox_Authentication_Api_Models_ReferralDataModel,
294
- Roblox_Authentication_Api_Models_Request_OtpSessionModel: Roblox_Authentication_Api_Models_Request_OtpSessionModel,
295
- Roblox_Authentication_Api_Models_SignupRequest: Roblox_Authentication_Api_Models_SignupRequest,
296
- Roblox_Authentication_Api_Models_SignupResponse: Roblox_Authentication_Api_Models_SignupResponse,
297
- Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest: Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest,
298
- Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest: Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest,
299
- Roblox_Authentication_Api_Models_PasswordChangeModel: Roblox_Authentication_Api_Models_PasswordChangeModel,
300
- Roblox_Authentication_Api_Models_UsernameChangeRequest: Roblox_Authentication_Api_Models_UsernameChangeRequest,
301
- Roblox_Authentication_Api_Models_RecoverUsernameRequest: Roblox_Authentication_Api_Models_RecoverUsernameRequest,
302
- Roblox_Authentication_Api_Models_RecoverUsernameResponse: Roblox_Authentication_Api_Models_RecoverUsernameResponse,
263
+ const schemas = {
264
+ Roblox_Authentication_Api_Models_AuthMetaDataResponse,
265
+ Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse,
266
+ Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
267
+ Roblox_Authentication_Api_Models_MetadataResponse,
268
+ Roblox_Authentication_Api_Models_PasswordStatusResponse,
269
+ Roblox_Web_Responses_Users_LegacyUserResponse,
270
+ Roblox_Authentication_Api_Models_PasswordResetMetadataResponse,
271
+ Roblox_Authentication_Api_Models_PasswordResetModel,
272
+ Roblox_Web_Responses_Users_SkinnyUserResponse,
273
+ Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
274
+ Roblox_Authentication_Api_Models_LoginResponse,
275
+ Roblox_Authentication_Api_Models_PasswordValidationResponse,
276
+ Roblox_Authentication_Api_Models_PasswordValidationModel,
277
+ Roblox_Authentication_Api_Models_RecoveryMetadataResponse,
278
+ Roblox_Authentication_Api_Models_RevertAccountInfoResponse,
279
+ Roblox_Authentication_Api_Models_RevertAccountSubmitRequest,
280
+ Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse,
281
+ Roblox_Authentication_Api_Models_UsernamesResponse,
282
+ Roblox_Authentication_Api_Models_UsernameValidationResponse,
283
+ Roblox_Authentication_Api_Models_UsernameValidationRequest,
284
+ Roblox_Web_WebAPI_ApiEmptyResponseModel,
285
+ Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest,
286
+ Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
287
+ Roblox_Authentication_Api_Models_LoginRequest,
288
+ Roblox_Authentication_Api_Models_SendResetPasswordRequest,
289
+ Roblox_Authentication_Api_Models_SendResetPasswordResponse,
290
+ Roblox_Authentication_Api_Models_PasswordResetVerificationRequest,
291
+ Roblox_Authentication_Api_Models_ForgotPasswordUserResponse,
292
+ Roblox_Authentication_Api_Models_PasswordResetVerificationResponse,
293
+ Roblox_Authentication_Api_Models_ReferralDataModel,
294
+ Roblox_Authentication_Api_Models_Request_OtpSessionModel,
295
+ Roblox_Authentication_Api_Models_SignupRequest,
296
+ Roblox_Authentication_Api_Models_SignupResponse,
297
+ Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest,
298
+ Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest,
299
+ Roblox_Authentication_Api_Models_PasswordChangeModel,
300
+ Roblox_Authentication_Api_Models_UsernameChangeRequest,
301
+ Roblox_Authentication_Api_Models_RecoverUsernameRequest,
302
+ Roblox_Authentication_Api_Models_RecoverUsernameResponse,
303
303
  };
304
304
  /**
305
305
  * @api get https://auth.roblox.com/v2/auth/metadata
@@ -323,6 +323,20 @@ exports.getCredentialsVerification = {
323
323
  path: '/v2/credentials/verification',
324
324
  baseUrl: 'https://auth.roblox.com',
325
325
  requestFormat: 'json',
326
+ serializationMethod: {
327
+ CredentialType: {
328
+ style: 'form',
329
+ explode: true,
330
+ },
331
+ CredentialValue: {
332
+ style: 'form',
333
+ explode: true,
334
+ },
335
+ Password: {
336
+ style: 'form',
337
+ explode: true,
338
+ },
339
+ },
326
340
  parameters: {
327
341
  CredentialType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
328
342
  CredentialValue: zod_1.z.string(),
@@ -332,17 +346,18 @@ exports.getCredentialsVerification = {
332
346
  errors: [
333
347
  {
334
348
  status: 400,
335
- description: "0: An unexpected error occurred.\n1: Credential value and password are required. Please try again.",
349
+ description: `0: An unexpected error occurred.
350
+ 1: Credential value and password are required. Please try again.`,
336
351
  schema: zod_1.z.void(),
337
352
  },
338
353
  {
339
354
  status: 429,
340
- description: "2: Too many attempts. Please wait a bit.",
355
+ description: `2: Too many attempts. Please wait a bit.`,
341
356
  schema: zod_1.z.void(),
342
357
  },
343
358
  {
344
359
  status: 503,
345
- description: "5: Credentials verification operation is unavailable. Please try again later.",
360
+ description: `5: Credentials verification operation is unavailable. Please try again later.`,
346
361
  schema: zod_1.z.void(),
347
362
  },
348
363
  ],
@@ -356,6 +371,9 @@ exports.postCredentialsVerification = {
356
371
  path: '/v2/credentials/verification',
357
372
  baseUrl: 'https://auth.roblox.com',
358
373
  requestFormat: 'json',
374
+ serializationMethod: {
375
+ body: {},
376
+ },
359
377
  parameters: {
360
378
  body: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
361
379
  },
@@ -363,22 +381,23 @@ exports.postCredentialsVerification = {
363
381
  errors: [
364
382
  {
365
383
  status: 400,
366
- description: "0: An unexpected error occurred.\n1: Credential value and password are required. Please try again.",
384
+ description: `0: An unexpected error occurred.
385
+ 1: Credential value and password are required. Please try again.`,
367
386
  schema: zod_1.z.void(),
368
387
  },
369
388
  {
370
389
  status: 403,
371
- description: "0: Token Validation Failed",
390
+ description: `0: Token Validation Failed`,
372
391
  schema: zod_1.z.void(),
373
392
  },
374
393
  {
375
394
  status: 429,
376
- description: "2: Too many attempts. Please wait a bit.",
395
+ description: `2: Too many attempts. Please wait a bit.`,
377
396
  schema: zod_1.z.void(),
378
397
  },
379
398
  {
380
399
  status: 503,
381
- description: "5: Credentials verification operation is unavailable. Please try again later.",
400
+ description: `5: Credentials verification operation is unavailable. Please try again later.`,
382
401
  schema: zod_1.z.void(),
383
402
  },
384
403
  ],
@@ -392,6 +411,9 @@ exports.postCredentialsVerificationSend = {
392
411
  path: '/v2/credentials/verification/send',
393
412
  baseUrl: 'https://auth.roblox.com',
394
413
  requestFormat: 'json',
414
+ serializationMethod: {
415
+ body: {},
416
+ },
395
417
  parameters: {
396
418
  body: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
397
419
  },
@@ -399,22 +421,25 @@ exports.postCredentialsVerificationSend = {
399
421
  errors: [
400
422
  {
401
423
  status: 400,
402
- description: "0: An unexpected error occurred.\n1: Credential value and password are required. Please try again.\n3: Verification with received credential type is not supported.",
424
+ description: `0: An unexpected error occurred.
425
+ 1: Credential value and password are required. Please try again.
426
+ 3: Verification with received credential type is not supported.`,
403
427
  schema: zod_1.z.void(),
404
428
  },
405
429
  {
406
430
  status: 403,
407
- description: "0: Token Validation Failed\n4: Could not send a verification message. Please try again later.",
431
+ description: `0: Token Validation Failed
432
+ 4: Could not send a verification message. Please try again later.`,
408
433
  schema: zod_1.z.void(),
409
434
  },
410
435
  {
411
436
  status: 429,
412
- description: "2: Too many attempts. Please wait a bit.",
437
+ description: `2: Too many attempts. Please wait a bit.`,
413
438
  schema: zod_1.z.void(),
414
439
  },
415
440
  {
416
441
  status: 503,
417
- description: "5: Credentials verification operation is unavailable. Please try again later.",
442
+ description: `5: Credentials verification operation is unavailable. Please try again later.`,
418
443
  schema: zod_1.z.void(),
419
444
  },
420
445
  ],
@@ -428,6 +453,9 @@ exports.postIdentityVerificationLogin = {
428
453
  path: '/v2/identity-verification/login',
429
454
  baseUrl: 'https://auth.roblox.com',
430
455
  requestFormat: 'json',
456
+ serializationMethod: {
457
+ body: {},
458
+ },
431
459
  parameters: {
432
460
  body: Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest,
433
461
  },
@@ -435,7 +463,11 @@ exports.postIdentityVerificationLogin = {
435
463
  errors: [
436
464
  {
437
465
  status: 403,
438
- description: "0: Token Validation Failed\n1: Invalid login ticket.\n2: Invalid result token.\n3: Invalid user.\n4: Authentication failure.",
466
+ description: `0: Token Validation Failed
467
+ 1: Invalid login ticket.
468
+ 2: Invalid result token.
469
+ 3: Invalid user.
470
+ 4: Authentication failure.`,
439
471
  schema: zod_1.z.void(),
440
472
  },
441
473
  ],
@@ -449,6 +481,9 @@ exports.postLogin = {
449
481
  path: '/v2/login',
450
482
  baseUrl: 'https://auth.roblox.com',
451
483
  requestFormat: 'json',
484
+ serializationMethod: {
485
+ body: {},
486
+ },
452
487
  parameters: {
453
488
  body: Roblox_Authentication_Api_Models_LoginRequest,
454
489
  },
@@ -456,22 +491,34 @@ exports.postLogin = {
456
491
  errors: [
457
492
  {
458
493
  status: 400,
459
- description: "0: An unexpected error occurred.\n3: Username and Password are required. Please try again.\n8: Login with received credential type is not supported.",
494
+ description: `0: An unexpected error occurred.
495
+ 3: Username and Password are required. Please try again.
496
+ 8: Login with received credential type is not supported.`,
460
497
  schema: zod_1.z.void(),
461
498
  },
462
499
  {
463
500
  status: 403,
464
- description: "0: Token Validation Failed\n1: Incorrect username or password. Please try again.\n2: You must pass the robot test before logging in.\n4: Account has been locked. Please request a password reset.\n5: Unable to login. Please use Social Network sign on.\n6: Account issue. Please contact Support.\n9: Unable to login with provided credentials. Default login is required.\n10: Received credentials are unverified.\n12: Existing login session found. Please log out first.\n14: The account is unable to log in. Please log in to the LuoBu app.\n15: Too many attempts. Please wait a bit.",
501
+ description: `0: Token Validation Failed
502
+ 1: Incorrect username or password. Please try again.
503
+ 2: You must pass the robot test before logging in.
504
+ 4: Account has been locked. Please request a password reset.
505
+ 5: Unable to login. Please use Social Network sign on.
506
+ 6: Account issue. Please contact Support.
507
+ 9: Unable to login with provided credentials. Default login is required.
508
+ 10: Received credentials are unverified.
509
+ 12: Existing login session found. Please log out first.
510
+ 14: The account is unable to log in. Please log in to the LuoBu app.
511
+ 15: Too many attempts. Please wait a bit.`,
465
512
  schema: zod_1.z.void(),
466
513
  },
467
514
  {
468
515
  status: 429,
469
- description: "7: Too many attempts. Please wait a bit.",
516
+ description: `7: Too many attempts. Please wait a bit.`,
470
517
  schema: zod_1.z.void(),
471
518
  },
472
519
  {
473
520
  status: 503,
474
- description: "11: Service unavailable. Please try again.",
521
+ description: `11: Service unavailable. Please try again.`,
475
522
  schema: zod_1.z.void(),
476
523
  },
477
524
  ],
@@ -488,12 +535,12 @@ exports.postLogout = {
488
535
  errors: [
489
536
  {
490
537
  status: 401,
491
- description: "0: Authorization has been denied for this request.",
538
+ description: `0: Authorization has been denied for this request.`,
492
539
  schema: zod_1.z.void(),
493
540
  },
494
541
  {
495
542
  status: 403,
496
- description: "0: Token Validation Failed",
543
+ description: `0: Token Validation Failed`,
497
544
  schema: zod_1.z.void(),
498
545
  },
499
546
  ],
@@ -510,12 +557,12 @@ exports.postLogoutfromallsessionsandreauthenticate = {
510
557
  errors: [
511
558
  {
512
559
  status: 401,
513
- description: "0: Authorization has been denied for this request.",
560
+ description: `0: Authorization has been denied for this request.`,
514
561
  schema: zod_1.z.void(),
515
562
  },
516
563
  {
517
564
  status: 403,
518
- description: "0: Token Validation Failed",
565
+ description: `0: Token Validation Failed`,
519
566
  schema: zod_1.z.void(),
520
567
  },
521
568
  ],
@@ -543,7 +590,7 @@ exports.getPasswordsCurrentStatus = {
543
590
  errors: [
544
591
  {
545
592
  status: 401,
546
- description: "0: Authorization has been denied for this request.",
593
+ description: `0: Authorization has been denied for this request.`,
547
594
  schema: zod_1.z.void(),
548
595
  },
549
596
  ],
@@ -558,6 +605,16 @@ exports.getPasswordsReset = {
558
605
  path: '/v2/passwords/reset',
559
606
  baseUrl: 'https://auth.roblox.com',
560
607
  requestFormat: 'json',
608
+ serializationMethod: {
609
+ TargetType: {
610
+ style: 'form',
611
+ explode: true,
612
+ },
613
+ Ticket: {
614
+ style: 'form',
615
+ explode: true,
616
+ },
617
+ },
561
618
  parameters: {
562
619
  TargetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
563
620
  Ticket: zod_1.z.string(),
@@ -566,22 +623,26 @@ exports.getPasswordsReset = {
566
623
  errors: [
567
624
  {
568
625
  status: 400,
569
- description: "3: Request was empty.\n9: The target type is invalid.\n11: The password reset ticket is invalid.\n14: The nonce is invalid.",
626
+ description: `3: Request was empty.
627
+ 9: The target type is invalid.
628
+ 11: The password reset ticket is invalid.
629
+ 14: The nonce is invalid.`,
570
630
  schema: zod_1.z.void(),
571
631
  },
572
632
  {
573
633
  status: 403,
574
- description: "11: The password reset ticket is invalid.\n16: The ticket is expired.",
634
+ description: `11: The password reset ticket is invalid.
635
+ 16: The ticket is expired.`,
575
636
  schema: zod_1.z.void(),
576
637
  },
577
638
  {
578
639
  status: 500,
579
- description: "0: Unknown error occured.",
640
+ description: `0: Unknown error occured.`,
580
641
  schema: zod_1.z.void(),
581
642
  },
582
643
  {
583
644
  status: 503,
584
- description: "1: Feature temporarily disabled. Please try again later.",
645
+ description: `1: Feature temporarily disabled. Please try again later.`,
585
646
  schema: zod_1.z.void(),
586
647
  },
587
648
  ],
@@ -594,8 +655,11 @@ exports.postPasswordsReset = {
594
655
  method: 'post',
595
656
  path: '/v2/passwords/reset',
596
657
  baseUrl: 'https://auth.roblox.com',
597
- description: "This will log the user out of all sessions and re-authenticate.",
658
+ description: `This will log the user out of all sessions and re-authenticate.`,
598
659
  requestFormat: 'json',
660
+ serializationMethod: {
661
+ body: {},
662
+ },
599
663
  parameters: {
600
664
  body: Roblox_Authentication_Api_Models_PasswordResetModel,
601
665
  },
@@ -603,22 +667,28 @@ exports.postPasswordsReset = {
603
667
  errors: [
604
668
  {
605
669
  status: 400,
606
- description: "3: Request was empty.\n11: The password reset ticket is invalid.\n12: The user is invalid.\n20: The password is invalid.\n21: Passwords do not match.",
670
+ description: `3: Request was empty.
671
+ 11: The password reset ticket is invalid.
672
+ 12: The user is invalid.
673
+ 20: The password is invalid.
674
+ 21: Passwords do not match.`,
607
675
  schema: zod_1.z.void(),
608
676
  },
609
677
  {
610
678
  status: 403,
611
- description: "0: Token Validation Failed\n16: The ticket is expired.\n17: The nonce is expired.",
679
+ description: `0: Token Validation Failed
680
+ 16: The ticket is expired.
681
+ 17: The nonce is expired.`,
612
682
  schema: zod_1.z.void(),
613
683
  },
614
684
  {
615
685
  status: 500,
616
- description: "0: Unknown error occured.",
686
+ description: `0: Unknown error occured.`,
617
687
  schema: zod_1.z.void(),
618
688
  },
619
689
  {
620
690
  status: 503,
621
- description: "1: Feature temporarily disabled. Please try again later.",
691
+ description: `1: Feature temporarily disabled. Please try again later.`,
622
692
  schema: zod_1.z.void(),
623
693
  },
624
694
  ],
@@ -631,8 +701,11 @@ exports.postPasswordsResetSend = {
631
701
  method: 'post',
632
702
  path: '/v2/passwords/reset/send',
633
703
  baseUrl: 'https://auth.roblox.com',
634
- description: "Phone target must be a csv with 3 values: "internationalPrefixNumber,nationalNumber,countryCode"",
704
+ description: `Phone target must be a csv with 3 values: "internationalPrefixNumber,nationalNumber,countryCode"`,
635
705
  requestFormat: 'json',
706
+ serializationMethod: {
707
+ body: {},
708
+ },
636
709
  parameters: {
637
710
  body: Roblox_Authentication_Api_Models_SendResetPasswordRequest,
638
711
  },
@@ -640,27 +713,33 @@ exports.postPasswordsResetSend = {
640
713
  errors: [
641
714
  {
642
715
  status: 400,
643
- description: "3: Request was empty.\n9: The target type is invalid.\n10: The target is invalid.\n12: The user is invalid.",
716
+ description: `3: Request was empty.
717
+ 9: The target type is invalid.
718
+ 10: The target is invalid.
719
+ 12: The user is invalid.`,
644
720
  schema: zod_1.z.void(),
645
721
  },
646
722
  {
647
723
  status: 403,
648
- description: "0: Token Validation Failed\n18: Captcha is required.\n23: Authenticate with Luobu instead.",
724
+ description: `0: Token Validation Failed
725
+ 18: Captcha is required.
726
+ 23: Authenticate with Luobu instead.`,
649
727
  schema: zod_1.z.void(),
650
728
  },
651
729
  {
652
730
  status: 429,
653
- description: "2: Too many attempts. Please try again later.",
731
+ description: `2: Too many attempts. Please try again later.`,
654
732
  schema: zod_1.z.void(),
655
733
  },
656
734
  {
657
735
  status: 500,
658
- description: "0: Unknown error occured.\n19: Message could not be sent.",
736
+ description: `0: Unknown error occured.
737
+ 19: Message could not be sent.`,
659
738
  schema: zod_1.z.void(),
660
739
  },
661
740
  {
662
741
  status: 503,
663
- description: "1: Feature temporarily disabled. Please try again later.",
742
+ description: `1: Feature temporarily disabled. Please try again later.`,
664
743
  schema: zod_1.z.void(),
665
744
  },
666
745
  ],
@@ -674,6 +753,9 @@ exports.postPasswordsResetVerify = {
674
753
  path: '/v2/passwords/reset/verify',
675
754
  baseUrl: 'https://auth.roblox.com',
676
755
  requestFormat: 'json',
756
+ serializationMethod: {
757
+ body: {},
758
+ },
677
759
  parameters: {
678
760
  body: Roblox_Authentication_Api_Models_PasswordResetVerificationRequest,
679
761
  },
@@ -681,22 +763,25 @@ exports.postPasswordsResetVerify = {
681
763
  errors: [
682
764
  {
683
765
  status: 400,
684
- description: "3: Request was empty.\n9: The target type is invalid.\n14: The nonce is invalid.",
766
+ description: `3: Request was empty.
767
+ 9: The target type is invalid.
768
+ 14: The nonce is invalid.`,
685
769
  schema: zod_1.z.void(),
686
770
  },
687
771
  {
688
772
  status: 403,
689
- description: "0: Token Validation Failed\n13: The code is invalid.",
773
+ description: `0: Token Validation Failed
774
+ 13: The code is invalid.`,
690
775
  schema: zod_1.z.void(),
691
776
  },
692
777
  {
693
778
  status: 500,
694
- description: "0: Unknown error occured.",
779
+ description: `0: Unknown error occured.`,
695
780
  schema: zod_1.z.void(),
696
781
  },
697
782
  {
698
783
  status: 503,
699
- description: "1: Feature temporarily disabled. Please try again later.",
784
+ description: `1: Feature temporarily disabled. Please try again later.`,
700
785
  schema: zod_1.z.void(),
701
786
  },
702
787
  ],
@@ -711,6 +796,16 @@ exports.getPasswordsValidate = {
711
796
  path: '/v2/passwords/validate',
712
797
  baseUrl: 'https://auth.roblox.com',
713
798
  requestFormat: 'json',
799
+ serializationMethod: {
800
+ Username: {
801
+ style: 'form',
802
+ explode: true,
803
+ },
804
+ Password: {
805
+ style: 'form',
806
+ explode: true,
807
+ },
808
+ },
714
809
  parameters: {
715
810
  Username: zod_1.z.string(),
716
811
  Password: zod_1.z.string(),
@@ -719,7 +814,7 @@ exports.getPasswordsValidate = {
719
814
  errors: [
720
815
  {
721
816
  status: 400,
722
- description: "1: Valid Username and Password are required. Please try again.",
817
+ description: `1: Valid Username and Password are required. Please try again.`,
723
818
  schema: zod_1.z.void(),
724
819
  },
725
820
  ],
@@ -733,6 +828,9 @@ exports.postPasswordsValidate = {
733
828
  path: '/v2/passwords/validate',
734
829
  baseUrl: 'https://auth.roblox.com',
735
830
  requestFormat: 'json',
831
+ serializationMethod: {
832
+ body: {},
833
+ },
736
834
  parameters: {
737
835
  body: Roblox_Authentication_Api_Models_PasswordValidationModel,
738
836
  },
@@ -740,12 +838,12 @@ exports.postPasswordsValidate = {
740
838
  errors: [
741
839
  {
742
840
  status: 400,
743
- description: "1: Valid Username and Password are required. Please try again.",
841
+ description: `1: Valid Username and Password are required. Please try again.`,
744
842
  schema: zod_1.z.void(),
745
843
  },
746
844
  {
747
845
  status: 403,
748
- description: "0: Token Validation Failed",
846
+ description: `0: Token Validation Failed`,
749
847
  schema: zod_1.z.void(),
750
848
  },
751
849
  ],
@@ -762,7 +860,7 @@ exports.getRecoveryMetadata = {
762
860
  errors: [
763
861
  {
764
862
  status: 503,
765
- description: "7: The Roblox WeChat API is currently unavailable.",
863
+ description: `7: The Roblox WeChat API is currently unavailable.`,
766
864
  schema: zod_1.z.void(),
767
865
  },
768
866
  ],
@@ -776,6 +874,12 @@ exports.getRevertAccount = {
776
874
  path: '/v2/revert/account',
777
875
  baseUrl: 'https://auth.roblox.com',
778
876
  requestFormat: 'json',
877
+ serializationMethod: {
878
+ ticket: {
879
+ style: 'form',
880
+ explode: true,
881
+ },
882
+ },
779
883
  parameters: {
780
884
  ticket: zod_1.z.string(),
781
885
  },
@@ -783,12 +887,12 @@ exports.getRevertAccount = {
783
887
  errors: [
784
888
  {
785
889
  status: 400,
786
- description: "2: The account revert ticket is not valid",
890
+ description: `2: The account revert ticket is not valid`,
787
891
  schema: zod_1.z.void(),
788
892
  },
789
893
  {
790
894
  status: 503,
791
- description: "1: This feature is disabled",
895
+ description: `1: This feature is disabled`,
792
896
  schema: zod_1.z.void(),
793
897
  },
794
898
  ],
@@ -802,6 +906,9 @@ exports.postRevertAccount = {
802
906
  path: '/v2/revert/account',
803
907
  baseUrl: 'https://auth.roblox.com',
804
908
  requestFormat: 'json',
909
+ serializationMethod: {
910
+ body: {},
911
+ },
805
912
  parameters: {
806
913
  body: Roblox_Authentication_Api_Models_RevertAccountSubmitRequest,
807
914
  },
@@ -809,17 +916,22 @@ exports.postRevertAccount = {
809
916
  errors: [
810
917
  {
811
918
  status: 400,
812
- description: "2: The account revert ticket is not valid\n3: Password is not valid\n4: Passwords do not match\n5: Password cannot be used\n8: The account security ticket is expired.",
919
+ description: `2: The account revert ticket is not valid
920
+ 3: Password is not valid
921
+ 4: Passwords do not match
922
+ 5: Password cannot be used
923
+ 8: The account security ticket is expired.`,
813
924
  schema: zod_1.z.void(),
814
925
  },
815
926
  {
816
927
  status: 403,
817
- description: "0: Token Validation Failed",
928
+ description: `0: Token Validation Failed`,
818
929
  schema: zod_1.z.void(),
819
930
  },
820
931
  {
821
932
  status: 503,
822
- description: "0: Unknown\n1: This feature is disabled",
933
+ description: `0: Unknown
934
+ 1: This feature is disabled`,
823
935
  schema: zod_1.z.void(),
824
936
  },
825
937
  ],
@@ -833,6 +945,9 @@ exports.postSignup = {
833
945
  path: '/v2/signup',
834
946
  baseUrl: 'https://auth.roblox.com',
835
947
  requestFormat: 'json',
948
+ serializationMethod: {
949
+ body: {},
950
+ },
836
951
  parameters: {
837
952
  body: Roblox_Authentication_Api_Models_SignupRequest,
838
953
  },
@@ -840,27 +955,40 @@ exports.postSignup = {
840
955
  errors: [
841
956
  {
842
957
  status: 400,
843
- description: "Bad request\n16: User agreement ids are null.",
958
+ description: `Bad request
959
+ 16: User agreement ids are null.`,
844
960
  schema: zod_1.z.void(),
845
961
  },
846
962
  {
847
963
  status: 403,
848
- description: "0: Token Validation Failed\n2: Captcha Failed.\n4: Invalid Birthday.\n5: Invalid Username.\n6: Username already taken.\n7: Invalid Password.\n8: Password and Username are same.\n9: Password is too simple.\n10: Email is invalid.\n11: Asset is invalid.\n12: Too many attempts. Please wait a bit.\n17: One time Passcode session was not valid",
964
+ description: `0: Token Validation Failed
965
+ 2: Captcha Failed.
966
+ 4: Invalid Birthday.
967
+ 5: Invalid Username.
968
+ 6: Username already taken.
969
+ 7: Invalid Password.
970
+ 8: Password and Username are same.
971
+ 9: Password is too simple.
972
+ 10: Email is invalid.
973
+ 11: Asset is invalid.
974
+ 12: Too many attempts. Please wait a bit.
975
+ 17: One time Passcode session was not valid`,
849
976
  schema: zod_1.z.void(),
850
977
  },
851
978
  {
852
979
  status: 429,
853
- description: "3: Too many attempts. Please wait a bit.",
980
+ description: `3: Too many attempts. Please wait a bit.`,
854
981
  schema: zod_1.z.void(),
855
982
  },
856
983
  {
857
984
  status: 500,
858
- description: "Internal server error\n15: Insert acceptances failed.",
985
+ description: `Internal server error
986
+ 15: Insert acceptances failed.`,
859
987
  schema: zod_1.z.void(),
860
988
  },
861
989
  {
862
990
  status: 503,
863
- description: "Service unavailable",
991
+ description: `Service unavailable`,
864
992
  schema: zod_1.z.void(),
865
993
  },
866
994
  ],
@@ -885,6 +1013,9 @@ exports.postTwostepverificationResend = {
885
1013
  path: '/v2/twostepverification/resend',
886
1014
  baseUrl: 'https://auth.roblox.com',
887
1015
  requestFormat: 'json',
1016
+ serializationMethod: {
1017
+ body: {},
1018
+ },
888
1019
  parameters: {
889
1020
  body: Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest,
890
1021
  },
@@ -892,27 +1023,29 @@ exports.postTwostepverificationResend = {
892
1023
  errors: [
893
1024
  {
894
1025
  status: 400,
895
- description: "1: User is invalid.\n5: Invalid two step verification ticket.\n7: The action is unsupported.",
1026
+ description: `1: User is invalid.
1027
+ 5: Invalid two step verification ticket.
1028
+ 7: The action is unsupported.`,
896
1029
  schema: zod_1.z.void(),
897
1030
  },
898
1031
  {
899
1032
  status: 403,
900
- description: "0: Token Validation Failed",
1033
+ description: `0: Token Validation Failed`,
901
1034
  schema: zod_1.z.void(),
902
1035
  },
903
1036
  {
904
1037
  status: 429,
905
- description: "3: Too many attempts. Please try again later.",
1038
+ description: `3: Too many attempts. Please try again later.`,
906
1039
  schema: zod_1.z.void(),
907
1040
  },
908
1041
  {
909
1042
  status: 500,
910
- description: "4: Account issue. Please contact Support.",
1043
+ description: `4: Account issue. Please contact Support.`,
911
1044
  schema: zod_1.z.void(),
912
1045
  },
913
1046
  {
914
1047
  status: 503,
915
- description: "2: The two step verification feature is not enabled at this time.",
1048
+ description: `2: The two step verification feature is not enabled at this time.`,
916
1049
  schema: zod_1.z.void(),
917
1050
  },
918
1051
  ],
@@ -926,6 +1059,9 @@ exports.postTwostepverificationVerify = {
926
1059
  path: '/v2/twostepverification/verify',
927
1060
  baseUrl: 'https://auth.roblox.com',
928
1061
  requestFormat: 'json',
1062
+ serializationMethod: {
1063
+ body: {},
1064
+ },
929
1065
  parameters: {
930
1066
  body: Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest,
931
1067
  },
@@ -933,22 +1069,25 @@ exports.postTwostepverificationVerify = {
933
1069
  errors: [
934
1070
  {
935
1071
  status: 400,
936
- description: "1: User is invalid.\n5: Invalid two step verification ticket.\n6: The code is invalid.\n7: The action is unsupported.",
1072
+ description: `1: User is invalid.
1073
+ 5: Invalid two step verification ticket.
1074
+ 6: The code is invalid.
1075
+ 7: The action is unsupported.`,
937
1076
  schema: zod_1.z.void(),
938
1077
  },
939
1078
  {
940
1079
  status: 403,
941
- description: "0: Token Validation Failed",
1080
+ description: `0: Token Validation Failed`,
942
1081
  schema: zod_1.z.void(),
943
1082
  },
944
1083
  {
945
1084
  status: 429,
946
- description: "3: Too many attempts. Please try again later.",
1085
+ description: `3: Too many attempts. Please try again later.`,
947
1086
  schema: zod_1.z.void(),
948
1087
  },
949
1088
  {
950
1089
  status: 503,
951
- description: "2: The two step verification feature is not enabled at this time.",
1090
+ description: `2: The two step verification feature is not enabled at this time.`,
952
1091
  schema: zod_1.z.void(),
953
1092
  },
954
1093
  ],
@@ -961,8 +1100,11 @@ exports.postUserPasswordsChange = {
961
1100
  method: 'post',
962
1101
  path: '/v2/user/passwords/change',
963
1102
  baseUrl: 'https://auth.roblox.com',
964
- description: "The current password is needed for verification that the password can be changed.",
1103
+ description: `The current password is needed for verification that the password can be changed.`,
965
1104
  requestFormat: 'json',
1105
+ serializationMethod: {
1106
+ body: {},
1107
+ },
966
1108
  parameters: {
967
1109
  body: Roblox_Authentication_Api_Models_PasswordChangeModel,
968
1110
  },
@@ -970,22 +1112,25 @@ exports.postUserPasswordsChange = {
970
1112
  errors: [
971
1113
  {
972
1114
  status: 400,
973
- description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidCurrentPassword\n OR\n Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidPassword",
1115
+ description: `Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidCurrentPassword
1116
+ OR
1117
+ Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidPassword`,
974
1118
  schema: zod_1.z.void(),
975
1119
  },
976
1120
  {
977
1121
  status: 401,
978
- description: "0: Authorization has been denied for this request.",
1122
+ description: `0: Authorization has been denied for this request.`,
979
1123
  schema: zod_1.z.void(),
980
1124
  },
981
1125
  {
982
1126
  status: 403,
983
- description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.PinLocked\n0: Token Validation Failed",
1127
+ description: `Roblox.Web.Authentication.Passwords.PasswordResponseCodes.PinLocked
1128
+ 0: Token Validation Failed`,
984
1129
  schema: zod_1.z.void(),
985
1130
  },
986
1131
  {
987
1132
  status: 429,
988
- description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.Flooded",
1133
+ description: `Roblox.Web.Authentication.Passwords.PasswordResponseCodes.Flooded`,
989
1134
  schema: zod_1.z.void(),
990
1135
  },
991
1136
  ],
@@ -999,6 +1144,9 @@ exports.postUsername = {
999
1144
  path: '/v2/username',
1000
1145
  baseUrl: 'https://auth.roblox.com',
1001
1146
  requestFormat: 'json',
1147
+ serializationMethod: {
1148
+ body: {},
1149
+ },
1002
1150
  parameters: {
1003
1151
  body: Roblox_Authentication_Api_Models_UsernameChangeRequest,
1004
1152
  },
@@ -1006,27 +1154,41 @@ exports.postUsername = {
1006
1154
  errors: [
1007
1155
  {
1008
1156
  status: 400,
1009
- description: "5: You don't have enough Robux to change your username.\n10: This username is already in use\n11: Username not appropriate for Roblox\n12: Usernames can be 3 to 20 characters long\n13: Usernames can\u2019t start or end with _ and can have at most one _\n14: Only a-z, A-Z, 0-9, and _ are allowed\n15: Username is null\n16: Username might contain private information\n17: This username is not available\n18: Username is same as current",
1157
+ description: `5: You don't have enough Robux to change your username.
1158
+ 10: This username is already in use
1159
+ 11: Username not appropriate for Roblox
1160
+ 12: Usernames can be 3 to 20 characters long
1161
+ 13: Usernames can�t start or end with _ and can have at most one _
1162
+ 14: Only a-z, A-Z, 0-9, and _ are allowed
1163
+ 15: Username is null
1164
+ 16: Username might contain private information
1165
+ 17: This username is not available
1166
+ 18: Username is same as current`,
1010
1167
  schema: zod_1.z.void(),
1011
1168
  },
1012
1169
  {
1013
1170
  status: 401,
1014
- description: "0: Authorization has been denied for this request.",
1171
+ description: `0: Authorization has been denied for this request.`,
1015
1172
  schema: zod_1.z.void(),
1016
1173
  },
1017
1174
  {
1018
1175
  status: 403,
1019
- description: "0: Token Validation Failed\n1: PIN is locked.\n2: A verified email is missing\n3: Your password is incorrect.\n100: Unknown birthday",
1176
+ description: `0: Token Validation Failed
1177
+ 1: PIN is locked.
1178
+ 2: A verified email is missing
1179
+ 3: Your password is incorrect.
1180
+ 100: Unknown birthday`,
1020
1181
  schema: zod_1.z.void(),
1021
1182
  },
1022
1183
  {
1023
1184
  status: 500,
1024
- description: "0: An unknown error occured.\n5: You don't have enough Robux to change your username.",
1185
+ description: `0: An unknown error occured.
1186
+ 5: You don't have enough Robux to change your username.`,
1025
1187
  schema: zod_1.z.void(),
1026
1188
  },
1027
1189
  {
1028
1190
  status: 503,
1029
- description: "4: The feature is currently not available. Please try again later.",
1191
+ description: `4: The feature is currently not available. Please try again later.`,
1030
1192
  schema: zod_1.z.void(),
1031
1193
  },
1032
1194
  ],
@@ -1039,8 +1201,14 @@ exports.getUsernames = {
1039
1201
  method: 'get',
1040
1202
  path: '/v2/usernames',
1041
1203
  baseUrl: 'https://auth.roblox.com',
1042
- description: "This endpoint can be expanded in the future to include other query parameters such as "startsWith"",
1204
+ description: `This endpoint can be expanded in the future to include other query parameters such as "startsWith"`,
1043
1205
  requestFormat: 'json',
1206
+ serializationMethod: {
1207
+ username: {
1208
+ style: 'form',
1209
+ explode: true,
1210
+ },
1211
+ },
1044
1212
  parameters: {
1045
1213
  username: zod_1.z.string().optional(),
1046
1214
  },
@@ -1056,6 +1224,9 @@ exports.postUsernamesRecover = {
1056
1224
  path: '/v2/usernames/recover',
1057
1225
  baseUrl: 'https://auth.roblox.com',
1058
1226
  requestFormat: 'json',
1227
+ serializationMethod: {
1228
+ body: {},
1229
+ },
1059
1230
  parameters: {
1060
1231
  body: Roblox_Authentication_Api_Models_RecoverUsernameRequest,
1061
1232
  },
@@ -1063,17 +1234,20 @@ exports.postUsernamesRecover = {
1063
1234
  errors: [
1064
1235
  {
1065
1236
  status: 400,
1066
- description: "20: Invalid Email\n21: Invalid Phone\n23: No Account Found",
1237
+ description: `20: Invalid Email
1238
+ 21: Invalid Phone
1239
+ 23: No Account Found`,
1067
1240
  schema: zod_1.z.void(),
1068
1241
  },
1069
1242
  {
1070
1243
  status: 403,
1071
- description: "0: Token Validation Failed\n11: Too many attempts. Please wait a bit.",
1244
+ description: `0: Token Validation Failed
1245
+ 11: Too many attempts. Please wait a bit.`,
1072
1246
  schema: zod_1.z.void(),
1073
1247
  },
1074
1248
  {
1075
1249
  status: 500,
1076
- description: "0: An unexpected error occurred.",
1250
+ description: `0: An unexpected error occurred.`,
1077
1251
  schema: zod_1.z.void(),
1078
1252
  },
1079
1253
  ],
@@ -1089,6 +1263,20 @@ exports.getUsernamesValidate = {
1089
1263
  path: '/v2/usernames/validate',
1090
1264
  baseUrl: 'https://auth.roblox.com',
1091
1265
  requestFormat: 'json',
1266
+ serializationMethod: {
1267
+ Username: {
1268
+ style: 'form',
1269
+ explode: true,
1270
+ },
1271
+ Birthday: {
1272
+ style: 'form',
1273
+ explode: true,
1274
+ },
1275
+ Context: {
1276
+ style: 'form',
1277
+ explode: true,
1278
+ },
1279
+ },
1092
1280
  parameters: {
1093
1281
  Username: zod_1.z.string(),
1094
1282
  Birthday: zod_1.z.string().datetime(),
@@ -1098,7 +1286,8 @@ exports.getUsernamesValidate = {
1098
1286
  errors: [
1099
1287
  {
1100
1288
  status: 400,
1101
- description: "1: A valid username is required.\n2: A valid birthday or authenticated user is required.",
1289
+ description: `1: A valid username is required.
1290
+ 2: A valid birthday or authenticated user is required.`,
1102
1291
  schema: zod_1.z.void(),
1103
1292
  },
1104
1293
  ],
@@ -1112,6 +1301,9 @@ exports.postUsernamesValidate = {
1112
1301
  path: '/v2/usernames/validate',
1113
1302
  baseUrl: 'https://auth.roblox.com',
1114
1303
  requestFormat: 'json',
1304
+ serializationMethod: {
1305
+ body: {},
1306
+ },
1115
1307
  parameters: {
1116
1308
  body: Roblox_Authentication_Api_Models_UsernameValidationRequest,
1117
1309
  },
@@ -1119,12 +1311,13 @@ exports.postUsernamesValidate = {
1119
1311
  errors: [
1120
1312
  {
1121
1313
  status: 400,
1122
- description: "1: A valid username is required.\n2: A valid birthday or authenticated user is required.",
1314
+ description: `1: A valid username is required.
1315
+ 2: A valid birthday or authenticated user is required.`,
1123
1316
  schema: zod_1.z.void(),
1124
1317
  },
1125
1318
  {
1126
1319
  status: 403,
1127
- description: "0: Token Validation Failed",
1320
+ description: `0: Token Validation Failed`,
1128
1321
  schema: zod_1.z.void(),
1129
1322
  },
1130
1323
  ],