rozod 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +551 -0
  2. package/lib/endpoints/accountinformationv1.js +652 -0
  3. package/lib/endpoints/accountsettingsv1.d.ts +548 -0
  4. package/lib/endpoints/accountsettingsv1.js +712 -0
  5. package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
  6. package/lib/endpoints/assetdeliveryv1.js +268 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
  8. package/lib/endpoints/assetdeliveryv2.js +271 -0
  9. package/lib/endpoints/authv1.d.ts +1328 -0
  10. package/lib/endpoints/authv1.js +1168 -0
  11. package/lib/endpoints/authv2.d.ts +1239 -0
  12. package/lib/endpoints/authv2.js +1057 -0
  13. package/lib/endpoints/authv3.d.ts +35 -0
  14. package/lib/endpoints/authv3.js +41 -0
  15. package/lib/endpoints/avatarv1.d.ts +1841 -0
  16. package/lib/endpoints/avatarv1.js +726 -0
  17. package/lib/endpoints/avatarv2.d.ts +1077 -0
  18. package/lib/endpoints/avatarv2.js +316 -0
  19. package/lib/endpoints/avatarv3.d.ts +656 -0
  20. package/lib/endpoints/avatarv3.js +219 -0
  21. package/lib/endpoints/badgesv1.d.ts +641 -0
  22. package/lib/endpoints/badgesv1.js +345 -0
  23. package/lib/endpoints/catalogv1.d.ts +1715 -0
  24. package/lib/endpoints/catalogv1.js +792 -0
  25. package/lib/endpoints/chatv2.d.ts +2179 -0
  26. package/lib/endpoints/chatv2.js +721 -0
  27. package/lib/endpoints/developv1.d.ts +2097 -0
  28. package/lib/endpoints/developv1.js +1537 -0
  29. package/lib/endpoints/developv2.d.ts +619 -0
  30. package/lib/endpoints/developv2.js +316 -0
  31. package/lib/endpoints/economyv1.d.ts +20 -0
  32. package/lib/endpoints/economyv1.js +28 -0
  33. package/lib/endpoints/friendsv1.d.ts +1093 -0
  34. package/lib/endpoints/friendsv1.js +818 -0
  35. package/lib/endpoints/gamesv1.d.ts +2749 -0
  36. package/lib/endpoints/gamesv1.js +1294 -0
  37. package/lib/endpoints/gamesv2.d.ts +582 -0
  38. package/lib/endpoints/gamesv2.js +258 -0
  39. package/lib/endpoints/groupsv1.d.ts +5528 -0
  40. package/lib/endpoints/groupsv1.js +2434 -0
  41. package/lib/endpoints/groupsv2.d.ts +530 -0
  42. package/lib/endpoints/groupsv2.js +201 -0
  43. package/lib/endpoints/inventoryv1.d.ts +436 -0
  44. package/lib/endpoints/inventoryv1.js +434 -0
  45. package/lib/endpoints/inventoryv2.d.ts +256 -0
  46. package/lib/endpoints/inventoryv2.js +241 -0
  47. package/lib/endpoints/presencev1.d.ts +134 -0
  48. package/lib/endpoints/presencev1.js +93 -0
  49. package/lib/endpoints/privatemessagesv1.d.ts +620 -0
  50. package/lib/endpoints/privatemessagesv1.js +338 -0
  51. package/lib/endpoints/thumbnailsv1.d.ts +897 -0
  52. package/lib/endpoints/thumbnailsv1.js +560 -0
  53. package/lib/endpoints/tradesv1.d.ts +473 -0
  54. package/lib/endpoints/tradesv1.js +403 -0
  55. package/lib/endpoints/translationsv1.d.ts +80 -0
  56. package/lib/endpoints/translationsv1.js +122 -0
  57. package/lib/endpoints/usersv1.d.ts +391 -0
  58. package/lib/endpoints/usersv1.js +344 -0
  59. package/lib/index.d.ts +85 -0
  60. package/lib/index.js +293 -0
  61. package/package.json +39 -0
  62. package/readme.md +99 -0
@@ -0,0 +1,1168 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.postV1xboxtranslate = exports.getV1xboxgetLoginConsecutiveDays = exports.postV1xboxdisconnect = exports.getV1xboxconnection = exports.getV1validatorsusername = exports.getV1validatorsemail = exports.postV1usernamesvalidate = exports.getV1usernamesvalidate = exports.postV1usernamesrecover = exports.getV1usernames = exports.postV1username = exports.postV1userpasswordschange = exports.postV1twostepverificationverify = exports.postV1twostepverificationresend = exports.getV1twostepverificationmetadata = exports.getV1socialconnectedProviders = exports.postV1socialProviderdisconnect = exports.postV1signup = exports.postV1revertaccount = exports.getV1revertaccount = exports.getV1recoverymetadata = exports.postV1passwordsvalidate = exports.getV1passwordsvalidate = exports.getV1metadata = exports.postV1logoutfromallsessionsandreauthenticate = exports.postV1logout = exports.postV1login = exports.postV1identityVerificationlogin = exports.postV1credentialsverificationsend = exports.postV1credentialsverification = exports.getV1credentialsverification = exports.getV1authmetadata = exports.postV1accountpinunlock = exports.postV1accountpinlock = exports.postV1accountpin = exports.patchV1accountpin = exports.getV1accountpin = exports.deleteV1accountpin = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_Authentication_Api_Models_AccountPinRequest = zod_1.z
6
+ .object({ pin: zod_1.z.string(), reauthenticationToken: zod_1.z.string() })
7
+ .partial();
8
+ var Roblox_Web_WebAPI_Models_ApiSuccessResponse = zod_1.z.object({ success: zod_1.z.boolean() }).partial();
9
+ var Roblox_Authentication_Api_Models_AccountPinStatusResponse = zod_1.z
10
+ .object({ isEnabled: zod_1.z.boolean(), unlockedUntil: zod_1.z.number() })
11
+ .partial();
12
+ var Roblox_Authentication_Api_Models_AuthMetaDataResponse = zod_1.z
13
+ .object({ cookieLawNoticeTimeout: zod_1.z.number().int() })
14
+ .partial();
15
+ var Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse = zod_1.z
16
+ .object({ canSend: zod_1.z.boolean() })
17
+ .partial();
18
+ var Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest = zod_1.z
19
+ .object({
20
+ 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)]),
21
+ credentialValue: zod_1.z.string(),
22
+ password: zod_1.z.string(),
23
+ })
24
+ .partial();
25
+ var Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z
26
+ .object({
27
+ isUpdateUsernameEnabled: zod_1.z.boolean(),
28
+ ftuxAvatarAssetMap: zod_1.z.string(),
29
+ IsEmailUpsellAtLogoutEnabled: zod_1.z.boolean(),
30
+ ShouldFetchEmailUpsellIXPValuesAtLogout: zod_1.z.boolean(),
31
+ IsAccountRecoveryPromptEnabled: zod_1.z.boolean(),
32
+ IsContactMethodRequiredAtSignup: zod_1.z.boolean(),
33
+ IsUserAgreementsSignupIntegrationEnabled: zod_1.z.boolean(),
34
+ IsKoreaIdVerificationEnabled: zod_1.z.boolean(),
35
+ IsPasswordRequiredForUsernameChange: zod_1.z.boolean(),
36
+ })
37
+ .partial();
38
+ var Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z
39
+ .object({
40
+ 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)]),
41
+ message: zod_1.z.string(),
42
+ })
43
+ .partial();
44
+ var Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z
45
+ .object({ username: zod_1.z.string(), password: zod_1.z.string() })
46
+ .partial();
47
+ var Roblox_Authentication_Api_Models_RecoveryMetadataResponse = zod_1.z
48
+ .object({
49
+ isOnPhone: zod_1.z.boolean(),
50
+ codeLength: zod_1.z.number().int(),
51
+ isPhoneFeatureEnabledForUsername: zod_1.z.boolean(),
52
+ isPhoneFeatureEnabledForPassword: zod_1.z.boolean(),
53
+ isBedev2CaptchaEnabledForPasswordReset: zod_1.z.boolean(),
54
+ })
55
+ .partial();
56
+ var Roblox_Authentication_Api_Models_RevertAccountInfoResponse = zod_1.z
57
+ .object({
58
+ isTwoStepVerificationEnabled: zod_1.z.boolean(),
59
+ isEmailVerified: zod_1.z.boolean(),
60
+ isEmailChanged: zod_1.z.boolean(),
61
+ isPhoneVerified: zod_1.z.boolean(),
62
+ userId: zod_1.z.number().int(),
63
+ username: zod_1.z.string(),
64
+ ticket: zod_1.z.string(),
65
+ })
66
+ .partial();
67
+ var Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = zod_1.z
68
+ .object({
69
+ UserId: zod_1.z.number().int(),
70
+ NewPassword: zod_1.z.string(),
71
+ NewPasswordRepeated: zod_1.z.string(),
72
+ Ticket: zod_1.z.string(),
73
+ TwoStepVerificationChallengeId: zod_1.z.string(),
74
+ TwoStepVerificationToken: zod_1.z.string(),
75
+ })
76
+ .partial();
77
+ var Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z
78
+ .object({ id: zod_1.z.number().int(), name: zod_1.z.string(), displayName: zod_1.z.string() })
79
+ .partial();
80
+ var Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z
81
+ .object({
82
+ 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)]),
83
+ ticket: zod_1.z.string(),
84
+ })
85
+ .partial();
86
+ var Roblox_Authentication_Api_Models_LoginResponse = zod_1.z
87
+ .object({
88
+ user: Roblox_Web_Responses_Users_SkinnyUserResponse,
89
+ twoStepVerificationData: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
90
+ identityVerificationLoginTicket: zod_1.z.string(),
91
+ isBanned: zod_1.z.boolean(),
92
+ })
93
+ .partial();
94
+ var Roblox_Authentication_Api_Models_ProviderInfoModel = zod_1.z
95
+ .object({ provider: zod_1.z.string(), identifier: zod_1.z.string() })
96
+ .partial();
97
+ var Roblox_Authentication_Api_Models_SocialProvidersResponse = zod_1.z
98
+ .object({
99
+ providers: zod_1.z.array(Roblox_Authentication_Api_Models_ProviderInfoModel),
100
+ })
101
+ .partial();
102
+ var Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse = zod_1.z
103
+ .object({
104
+ codeLength: zod_1.z.number().int(),
105
+ loadingImageUrl: zod_1.z.string(),
106
+ supportUrl: zod_1.z.string(),
107
+ })
108
+ .partial();
109
+ var Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({ usernames: zod_1.z.array(zod_1.z.string()) }).partial();
110
+ var Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z
111
+ .object({
112
+ code: zod_1.z.union([
113
+ zod_1.z.literal(0),
114
+ zod_1.z.literal(1),
115
+ zod_1.z.literal(2),
116
+ zod_1.z.literal(3),
117
+ zod_1.z.literal(4),
118
+ zod_1.z.literal(5),
119
+ zod_1.z.literal(6),
120
+ zod_1.z.literal(7),
121
+ zod_1.z.literal(10),
122
+ zod_1.z.literal(12),
123
+ ]),
124
+ message: zod_1.z.string(),
125
+ })
126
+ .partial();
127
+ var Roblox_Authentication_Api_Models_UsernameValidationRequest = zod_1.z
128
+ .object({
129
+ username: zod_1.z.string(),
130
+ birthday: zod_1.z.string().datetime(),
131
+ context: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
132
+ })
133
+ .partial();
134
+ var Roblox_Authentication_Api_Models_EmailValidationResponse = zod_1.z.object({ isEmailValid: zod_1.z.boolean() }).partial();
135
+ var Roblox_Authentication_Api_Models_RecommendedUsernameResponse = zod_1.z
136
+ .object({
137
+ didGenerateNewUsername: zod_1.z.boolean(),
138
+ suggestedUsernames: zod_1.z.array(zod_1.z.string()),
139
+ })
140
+ .partial();
141
+ var Roblox_Authentication_Api_Models_XboxConnectionModel = zod_1.z
142
+ .object({ hasConnectedXboxAccount: zod_1.z.boolean() })
143
+ .partial();
144
+ var Roblox_Authentication_Api_Models_XboxLoginConsecutiveDaysResponse = zod_1.z
145
+ .object({ count: zod_1.z.number().int() })
146
+ .partial();
147
+ var Roblox_Authentication_Api_Models_AccountPinResponse = zod_1.z.object({ unlockedUntil: zod_1.z.number() }).partial();
148
+ var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
149
+ var Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = zod_1.z
150
+ .object({ loginTicket: zod_1.z.string(), resultToken: zod_1.z.string() })
151
+ .partial();
152
+ var Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel = zod_1.z
153
+ .object({
154
+ clientPublicKey: zod_1.z.string(),
155
+ clientEpochTimestamp: zod_1.z.number().int(),
156
+ saiSignature: zod_1.z.string(),
157
+ serverNonce: zod_1.z.string(),
158
+ })
159
+ .partial();
160
+ var Roblox_Authentication_Api_Models_LoginRequest = zod_1.z
161
+ .object({
162
+ 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)]),
163
+ cvalue: zod_1.z.string(),
164
+ password: zod_1.z.string(),
165
+ userId: zod_1.z.number().int(),
166
+ securityQuestionSessionId: zod_1.z.string(),
167
+ securityQuestionRedemptionToken: zod_1.z.string(),
168
+ secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
169
+ captchaId: zod_1.z.string(),
170
+ captchaToken: zod_1.z.string(),
171
+ captchaProvider: zod_1.z.string(),
172
+ challengeId: zod_1.z.string(),
173
+ })
174
+ .partial();
175
+ var Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z
176
+ .object({
177
+ acquisitionTime: zod_1.z.string().datetime(),
178
+ acquisitionReferrer: zod_1.z.string(),
179
+ medium: zod_1.z.string(),
180
+ source: zod_1.z.string(),
181
+ campaign: zod_1.z.string(),
182
+ adGroup: zod_1.z.string(),
183
+ keyword: zod_1.z.string(),
184
+ matchType: zod_1.z.string(),
185
+ sendInfo: zod_1.z.boolean(),
186
+ requestSessionId: zod_1.z.string(),
187
+ offerId: zod_1.z.string(),
188
+ })
189
+ .partial();
190
+ var Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z
191
+ .object({
192
+ otpSessionToken: zod_1.z.string(),
193
+ otpContactType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
194
+ })
195
+ .partial();
196
+ var Roblox_Authentication_Api_Models_SignupRequest = zod_1.z
197
+ .object({
198
+ username: zod_1.z.string(),
199
+ password: zod_1.z.string(),
200
+ gender: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
201
+ birthday: zod_1.z.string().datetime(),
202
+ isTosAgreementBoxChecked: zod_1.z.boolean(),
203
+ email: zod_1.z.string(),
204
+ locale: zod_1.z.string(),
205
+ assetIds: zod_1.z.array(zod_1.z.number()),
206
+ bodyColorId: zod_1.z.number().int(),
207
+ bodyTypeScale: zod_1.z.number(),
208
+ headScale: zod_1.z.number(),
209
+ heightScale: zod_1.z.number(),
210
+ widthScale: zod_1.z.number(),
211
+ proportionScale: zod_1.z.number(),
212
+ referralData: Roblox_Authentication_Api_Models_ReferralDataModel,
213
+ agreementIds: zod_1.z.array(zod_1.z.string()),
214
+ identityVerificationResultToken: zod_1.z.string(),
215
+ secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
216
+ otpSession: Roblox_Authentication_Api_Models_Request_OtpSessionModel,
217
+ captchaId: zod_1.z.string(),
218
+ captchaToken: zod_1.z.string(),
219
+ captchaProvider: zod_1.z.string(),
220
+ challengeId: zod_1.z.string(),
221
+ })
222
+ .partial();
223
+ var Roblox_Authentication_Api_Models_SignupResponse = zod_1.z
224
+ .object({ userId: zod_1.z.number().int(), starterPlaceId: zod_1.z.number().int() })
225
+ .partial();
226
+ var Roblox_Authentication_Api_Models_SocialAuthenticationDisconnectRequest = zod_1.z
227
+ .object({ Password: zod_1.z.string() })
228
+ .partial();
229
+ var Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest = zod_1.z
230
+ .object({
231
+ username: zod_1.z.string(),
232
+ ticket: zod_1.z.string(),
233
+ actionType: zod_1.z.union([
234
+ zod_1.z.literal(0),
235
+ zod_1.z.literal(1),
236
+ zod_1.z.literal(2),
237
+ zod_1.z.literal(3),
238
+ zod_1.z.literal(4),
239
+ zod_1.z.literal(5),
240
+ zod_1.z.literal(6),
241
+ zod_1.z.literal(7),
242
+ zod_1.z.literal(8),
243
+ ]),
244
+ })
245
+ .partial();
246
+ var Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest = zod_1.z
247
+ .object({
248
+ username: zod_1.z.string(),
249
+ ticket: zod_1.z.string(),
250
+ code: zod_1.z.string(),
251
+ rememberDevice: zod_1.z.boolean(),
252
+ actionType: zod_1.z.union([
253
+ zod_1.z.literal(0),
254
+ zod_1.z.literal(1),
255
+ zod_1.z.literal(2),
256
+ zod_1.z.literal(3),
257
+ zod_1.z.literal(4),
258
+ zod_1.z.literal(5),
259
+ zod_1.z.literal(6),
260
+ zod_1.z.literal(7),
261
+ zod_1.z.literal(8),
262
+ ]),
263
+ })
264
+ .partial();
265
+ var Roblox_Authentication_Api_Models_PasswordChangeModel = zod_1.z
266
+ .object({ currentPassword: zod_1.z.string(), newPassword: zod_1.z.string() })
267
+ .partial();
268
+ var Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z
269
+ .object({ username: zod_1.z.string(), password: zod_1.z.string() })
270
+ .partial();
271
+ var Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z
272
+ .object({
273
+ targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
274
+ target: zod_1.z.string(),
275
+ })
276
+ .partial();
277
+ var Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z
278
+ .object({ transmissionType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]) })
279
+ .partial();
280
+ var Roblox_Authentication_Api_Models_XboxTranslateRequest = zod_1.z.object({ ids: zod_1.z.array(zod_1.z.string()) }).partial();
281
+ var Roblox_Authentication_Api_Models_XboxUserModel = zod_1.z
282
+ .object({ Id: zod_1.z.string(), UserId: zod_1.z.number().int(), Username: zod_1.z.string() })
283
+ .partial();
284
+ var Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse = zod_1.z
285
+ .object({ Users: zod_1.z.array(Roblox_Authentication_Api_Models_XboxUserModel) })
286
+ .partial();
287
+ var schemas = {
288
+ Roblox_Authentication_Api_Models_AccountPinRequest: Roblox_Authentication_Api_Models_AccountPinRequest,
289
+ Roblox_Web_WebAPI_Models_ApiSuccessResponse: Roblox_Web_WebAPI_Models_ApiSuccessResponse,
290
+ Roblox_Authentication_Api_Models_AccountPinStatusResponse: Roblox_Authentication_Api_Models_AccountPinStatusResponse,
291
+ Roblox_Authentication_Api_Models_AuthMetaDataResponse: Roblox_Authentication_Api_Models_AuthMetaDataResponse,
292
+ Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse: Roblox_Authentication_Api_Models_CanSendCredentialsVerificationMessageResponse,
293
+ Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
294
+ Roblox_Authentication_Api_Models_MetadataResponse: Roblox_Authentication_Api_Models_MetadataResponse,
295
+ Roblox_Authentication_Api_Models_PasswordValidationResponse: Roblox_Authentication_Api_Models_PasswordValidationResponse,
296
+ Roblox_Authentication_Api_Models_PasswordValidationModel: Roblox_Authentication_Api_Models_PasswordValidationModel,
297
+ Roblox_Authentication_Api_Models_RecoveryMetadataResponse: Roblox_Authentication_Api_Models_RecoveryMetadataResponse,
298
+ Roblox_Authentication_Api_Models_RevertAccountInfoResponse: Roblox_Authentication_Api_Models_RevertAccountInfoResponse,
299
+ Roblox_Authentication_Api_Models_RevertAccountSubmitRequest: Roblox_Authentication_Api_Models_RevertAccountSubmitRequest,
300
+ Roblox_Web_Responses_Users_SkinnyUserResponse: Roblox_Web_Responses_Users_SkinnyUserResponse,
301
+ Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
302
+ Roblox_Authentication_Api_Models_LoginResponse: Roblox_Authentication_Api_Models_LoginResponse,
303
+ Roblox_Authentication_Api_Models_ProviderInfoModel: Roblox_Authentication_Api_Models_ProviderInfoModel,
304
+ Roblox_Authentication_Api_Models_SocialProvidersResponse: Roblox_Authentication_Api_Models_SocialProvidersResponse,
305
+ Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse: Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse,
306
+ Roblox_Authentication_Api_Models_UsernamesResponse: Roblox_Authentication_Api_Models_UsernamesResponse,
307
+ Roblox_Authentication_Api_Models_UsernameValidationResponse: Roblox_Authentication_Api_Models_UsernameValidationResponse,
308
+ Roblox_Authentication_Api_Models_UsernameValidationRequest: Roblox_Authentication_Api_Models_UsernameValidationRequest,
309
+ Roblox_Authentication_Api_Models_EmailValidationResponse: Roblox_Authentication_Api_Models_EmailValidationResponse,
310
+ Roblox_Authentication_Api_Models_RecommendedUsernameResponse: Roblox_Authentication_Api_Models_RecommendedUsernameResponse,
311
+ Roblox_Authentication_Api_Models_XboxConnectionModel: Roblox_Authentication_Api_Models_XboxConnectionModel,
312
+ Roblox_Authentication_Api_Models_XboxLoginConsecutiveDaysResponse: Roblox_Authentication_Api_Models_XboxLoginConsecutiveDaysResponse,
313
+ Roblox_Authentication_Api_Models_AccountPinResponse: Roblox_Authentication_Api_Models_AccountPinResponse,
314
+ Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
315
+ Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest: Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest,
316
+ Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
317
+ Roblox_Authentication_Api_Models_LoginRequest: Roblox_Authentication_Api_Models_LoginRequest,
318
+ Roblox_Authentication_Api_Models_ReferralDataModel: Roblox_Authentication_Api_Models_ReferralDataModel,
319
+ Roblox_Authentication_Api_Models_Request_OtpSessionModel: Roblox_Authentication_Api_Models_Request_OtpSessionModel,
320
+ Roblox_Authentication_Api_Models_SignupRequest: Roblox_Authentication_Api_Models_SignupRequest,
321
+ Roblox_Authentication_Api_Models_SignupResponse: Roblox_Authentication_Api_Models_SignupResponse,
322
+ Roblox_Authentication_Api_Models_SocialAuthenticationDisconnectRequest: Roblox_Authentication_Api_Models_SocialAuthenticationDisconnectRequest,
323
+ Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest: Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest,
324
+ Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest: Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest,
325
+ Roblox_Authentication_Api_Models_PasswordChangeModel: Roblox_Authentication_Api_Models_PasswordChangeModel,
326
+ Roblox_Authentication_Api_Models_UsernameChangeRequest: Roblox_Authentication_Api_Models_UsernameChangeRequest,
327
+ Roblox_Authentication_Api_Models_RecoverUsernameRequest: Roblox_Authentication_Api_Models_RecoverUsernameRequest,
328
+ Roblox_Authentication_Api_Models_RecoverUsernameResponse: Roblox_Authentication_Api_Models_RecoverUsernameResponse,
329
+ Roblox_Authentication_Api_Models_XboxTranslateRequest: Roblox_Authentication_Api_Models_XboxTranslateRequest,
330
+ Roblox_Authentication_Api_Models_XboxUserModel: Roblox_Authentication_Api_Models_XboxUserModel,
331
+ Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse: Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse,
332
+ };
333
+ exports.deleteV1accountpin = {
334
+ method: 'delete',
335
+ path: '/v1/account/pin',
336
+ baseUrl: 'https://auth.roblox.com',
337
+ requestFormat: 'json',
338
+ parameters: {
339
+ body: Roblox_Authentication_Api_Models_AccountPinRequest,
340
+ },
341
+ response: zod_1.z.object({ success: zod_1.z.boolean() }).partial(),
342
+ errors: [
343
+ {
344
+ status: 401,
345
+ description: "0: Authorization has been denied for this request.",
346
+ schema: zod_1.z.void(),
347
+ },
348
+ {
349
+ status: 403,
350
+ description: "0: Token Validation Failed",
351
+ schema: zod_1.z.void(),
352
+ },
353
+ ],
354
+ };
355
+ exports.getV1accountpin = {
356
+ method: 'get',
357
+ path: '/v1/account/pin',
358
+ baseUrl: 'https://auth.roblox.com',
359
+ requestFormat: 'json',
360
+ response: Roblox_Authentication_Api_Models_AccountPinStatusResponse,
361
+ errors: [
362
+ {
363
+ status: 401,
364
+ description: "0: Authorization has been denied for this request.",
365
+ schema: zod_1.z.void(),
366
+ },
367
+ ],
368
+ };
369
+ exports.patchV1accountpin = {
370
+ method: 'patch',
371
+ path: '/v1/account/pin',
372
+ baseUrl: 'https://auth.roblox.com',
373
+ requestFormat: 'json',
374
+ parameters: {
375
+ body: Roblox_Authentication_Api_Models_AccountPinRequest,
376
+ },
377
+ response: zod_1.z.object({ success: zod_1.z.boolean() }).partial(),
378
+ errors: [
379
+ {
380
+ status: 401,
381
+ description: "0: Authorization has been denied for this request.",
382
+ schema: zod_1.z.void(),
383
+ },
384
+ {
385
+ status: 403,
386
+ description: "0: Token Validation Failed",
387
+ schema: zod_1.z.void(),
388
+ },
389
+ ],
390
+ };
391
+ exports.postV1accountpin = {
392
+ method: 'post',
393
+ path: '/v1/account/pin',
394
+ baseUrl: 'https://auth.roblox.com',
395
+ requestFormat: 'json',
396
+ parameters: {
397
+ body: Roblox_Authentication_Api_Models_AccountPinRequest,
398
+ },
399
+ response: zod_1.z.object({ success: zod_1.z.boolean() }).partial(),
400
+ errors: [
401
+ {
402
+ status: 401,
403
+ description: "0: Authorization has been denied for this request.",
404
+ schema: zod_1.z.void(),
405
+ },
406
+ {
407
+ status: 403,
408
+ description: "0: Token Validation Failed",
409
+ schema: zod_1.z.void(),
410
+ },
411
+ ],
412
+ };
413
+ exports.postV1accountpinlock = {
414
+ method: 'post',
415
+ path: '/v1/account/pin/lock',
416
+ baseUrl: 'https://auth.roblox.com',
417
+ requestFormat: 'json',
418
+ response: zod_1.z.object({ success: zod_1.z.boolean() }).partial(),
419
+ errors: [
420
+ {
421
+ status: 401,
422
+ description: "0: Authorization has been denied for this request.",
423
+ schema: zod_1.z.void(),
424
+ },
425
+ {
426
+ status: 403,
427
+ description: "0: Token Validation Failed",
428
+ schema: zod_1.z.void(),
429
+ },
430
+ ],
431
+ };
432
+ exports.postV1accountpinunlock = {
433
+ method: 'post',
434
+ path: '/v1/account/pin/unlock',
435
+ baseUrl: 'https://auth.roblox.com',
436
+ requestFormat: 'json',
437
+ parameters: {
438
+ body: Roblox_Authentication_Api_Models_AccountPinRequest,
439
+ },
440
+ response: zod_1.z.object({ unlockedUntil: zod_1.z.number() }).partial(),
441
+ errors: [
442
+ {
443
+ status: 401,
444
+ description: "0: Authorization has been denied for this request.",
445
+ schema: zod_1.z.void(),
446
+ },
447
+ {
448
+ status: 403,
449
+ description: "0: Token Validation Failed",
450
+ schema: zod_1.z.void(),
451
+ },
452
+ ],
453
+ };
454
+ exports.getV1authmetadata = {
455
+ method: 'get',
456
+ path: '/v1/auth/metadata',
457
+ baseUrl: 'https://auth.roblox.com',
458
+ requestFormat: 'json',
459
+ response: zod_1.z.object({ cookieLawNoticeTimeout: zod_1.z.number().int() }).partial(),
460
+ errors: [],
461
+ };
462
+ exports.getV1credentialsverification = {
463
+ method: 'get',
464
+ path: '/v1/credentials/verification',
465
+ baseUrl: 'https://auth.roblox.com',
466
+ requestFormat: 'json',
467
+ parameters: {
468
+ 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)]),
469
+ CredentialValue: zod_1.z.string(),
470
+ Password: zod_1.z.string(),
471
+ },
472
+ response: zod_1.z.object({ canSend: zod_1.z.boolean() }).partial(),
473
+ errors: [
474
+ {
475
+ status: 400,
476
+ description: "0: An unexpected error occurred.\n1: Credential value and password are required. Please try again.",
477
+ schema: zod_1.z.void(),
478
+ },
479
+ {
480
+ status: 429,
481
+ description: "2: Too many attempts. Please wait a bit.",
482
+ schema: zod_1.z.void(),
483
+ },
484
+ {
485
+ status: 503,
486
+ description: "5: Credentials verification operation is unavailable. Please try again later.",
487
+ schema: zod_1.z.void(),
488
+ },
489
+ ],
490
+ };
491
+ exports.postV1credentialsverification = {
492
+ method: 'post',
493
+ path: '/v1/credentials/verification',
494
+ baseUrl: 'https://auth.roblox.com',
495
+ requestFormat: 'json',
496
+ parameters: {
497
+ body: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
498
+ },
499
+ response: zod_1.z.object({ canSend: zod_1.z.boolean() }).partial(),
500
+ errors: [
501
+ {
502
+ status: 400,
503
+ description: "0: An unexpected error occurred.\n1: Credential value and password are required. Please try again.",
504
+ schema: zod_1.z.void(),
505
+ },
506
+ {
507
+ status: 403,
508
+ description: "0: Token Validation Failed",
509
+ schema: zod_1.z.void(),
510
+ },
511
+ {
512
+ status: 429,
513
+ description: "2: Too many attempts. Please wait a bit.",
514
+ schema: zod_1.z.void(),
515
+ },
516
+ {
517
+ status: 503,
518
+ description: "5: Credentials verification operation is unavailable. Please try again later.",
519
+ schema: zod_1.z.void(),
520
+ },
521
+ ],
522
+ };
523
+ exports.postV1credentialsverificationsend = {
524
+ method: 'post',
525
+ path: '/v1/credentials/verification/send',
526
+ baseUrl: 'https://auth.roblox.com',
527
+ requestFormat: 'json',
528
+ parameters: {
529
+ body: Roblox_Authentication_Api_Models_SendCredentialsVerificationMessageRequest,
530
+ },
531
+ response: zod_1.z.object({}).partial(),
532
+ errors: [
533
+ {
534
+ status: 400,
535
+ 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.",
536
+ schema: zod_1.z.void(),
537
+ },
538
+ {
539
+ status: 403,
540
+ description: "0: Token Validation Failed\n4: Could not send a verification message. Please try again later.",
541
+ schema: zod_1.z.void(),
542
+ },
543
+ {
544
+ status: 429,
545
+ description: "2: Too many attempts. Please wait a bit.",
546
+ schema: zod_1.z.void(),
547
+ },
548
+ {
549
+ status: 503,
550
+ description: "5: Credentials verification operation is unavailable. Please try again later.",
551
+ schema: zod_1.z.void(),
552
+ },
553
+ ],
554
+ };
555
+ exports.postV1identityVerificationlogin = {
556
+ method: 'post',
557
+ path: '/v1/identity-verification/login',
558
+ baseUrl: 'https://auth.roblox.com',
559
+ requestFormat: 'json',
560
+ parameters: {
561
+ body: Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest,
562
+ },
563
+ response: zod_1.z.object({}).partial(),
564
+ errors: [
565
+ {
566
+ status: 403,
567
+ description: "0: Token Validation Failed\n1: Invalid login ticket.\n2: Invalid result token.\n3: Invalid user.\n4: Authentication failure.",
568
+ schema: zod_1.z.void(),
569
+ },
570
+ ],
571
+ };
572
+ exports.postV1login = {
573
+ method: 'post',
574
+ path: '/v1/login',
575
+ baseUrl: 'https://auth.roblox.com',
576
+ requestFormat: 'json',
577
+ parameters: {
578
+ body: Roblox_Authentication_Api_Models_LoginRequest,
579
+ },
580
+ response: Roblox_Authentication_Api_Models_LoginResponse,
581
+ errors: [
582
+ {
583
+ status: 400,
584
+ description: "0: An unexpected error occurred.\n3: Username and Password are required. Please try again.\n8: Login with received credential type is not supported.",
585
+ schema: zod_1.z.void(),
586
+ },
587
+ {
588
+ status: 403,
589
+ 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.",
590
+ schema: zod_1.z.void(),
591
+ },
592
+ {
593
+ status: 429,
594
+ description: "7: Too many attempts. Please wait a bit.",
595
+ schema: zod_1.z.void(),
596
+ },
597
+ {
598
+ status: 503,
599
+ description: "11: Service unavailable. Please try again.",
600
+ schema: zod_1.z.void(),
601
+ },
602
+ ],
603
+ };
604
+ exports.postV1logout = {
605
+ method: 'post',
606
+ path: '/v1/logout',
607
+ baseUrl: 'https://auth.roblox.com',
608
+ requestFormat: 'json',
609
+ response: zod_1.z.object({}).partial(),
610
+ errors: [
611
+ {
612
+ status: 401,
613
+ description: "0: Authorization has been denied for this request.",
614
+ schema: zod_1.z.void(),
615
+ },
616
+ {
617
+ status: 403,
618
+ description: "0: Token Validation Failed",
619
+ schema: zod_1.z.void(),
620
+ },
621
+ ],
622
+ };
623
+ exports.postV1logoutfromallsessionsandreauthenticate = {
624
+ method: 'post',
625
+ path: '/v1/logoutfromallsessionsandreauthenticate',
626
+ baseUrl: 'https://auth.roblox.com',
627
+ requestFormat: 'json',
628
+ response: zod_1.z.object({}).partial(),
629
+ errors: [
630
+ {
631
+ status: 401,
632
+ description: "0: Authorization has been denied for this request.",
633
+ schema: zod_1.z.void(),
634
+ },
635
+ {
636
+ status: 403,
637
+ description: "0: Token Validation Failed",
638
+ schema: zod_1.z.void(),
639
+ },
640
+ ],
641
+ };
642
+ exports.getV1metadata = {
643
+ method: 'get',
644
+ path: '/v1/metadata',
645
+ baseUrl: 'https://auth.roblox.com',
646
+ requestFormat: 'json',
647
+ response: Roblox_Authentication_Api_Models_MetadataResponse,
648
+ errors: [],
649
+ };
650
+ exports.getV1passwordsvalidate = {
651
+ method: 'get',
652
+ path: '/v1/passwords/validate',
653
+ baseUrl: 'https://auth.roblox.com',
654
+ requestFormat: 'json',
655
+ parameters: {
656
+ Username: zod_1.z.string(),
657
+ Password: zod_1.z.string(),
658
+ },
659
+ response: Roblox_Authentication_Api_Models_PasswordValidationResponse,
660
+ errors: [
661
+ {
662
+ status: 400,
663
+ description: "1: Valid Username and Password are required. Please try again.",
664
+ schema: zod_1.z.void(),
665
+ },
666
+ ],
667
+ };
668
+ exports.postV1passwordsvalidate = {
669
+ method: 'post',
670
+ path: '/v1/passwords/validate',
671
+ baseUrl: 'https://auth.roblox.com',
672
+ requestFormat: 'json',
673
+ parameters: {
674
+ body: Roblox_Authentication_Api_Models_PasswordValidationModel,
675
+ },
676
+ response: Roblox_Authentication_Api_Models_PasswordValidationResponse,
677
+ errors: [
678
+ {
679
+ status: 400,
680
+ description: "1: Valid Username and Password are required. Please try again.",
681
+ schema: zod_1.z.void(),
682
+ },
683
+ {
684
+ status: 403,
685
+ description: "0: Token Validation Failed",
686
+ schema: zod_1.z.void(),
687
+ },
688
+ ],
689
+ };
690
+ exports.getV1recoverymetadata = {
691
+ method: 'get',
692
+ path: '/v1/recovery/metadata',
693
+ baseUrl: 'https://auth.roblox.com',
694
+ requestFormat: 'json',
695
+ response: Roblox_Authentication_Api_Models_RecoveryMetadataResponse,
696
+ errors: [
697
+ {
698
+ status: 503,
699
+ description: "7: The Roblox WeChat API is currently unavailable.",
700
+ schema: zod_1.z.void(),
701
+ },
702
+ ],
703
+ };
704
+ exports.getV1revertaccount = {
705
+ method: 'get',
706
+ path: '/v1/revert/account',
707
+ baseUrl: 'https://auth.roblox.com',
708
+ requestFormat: 'json',
709
+ parameters: {
710
+ ticket: zod_1.z.string(),
711
+ },
712
+ response: Roblox_Authentication_Api_Models_RevertAccountInfoResponse,
713
+ errors: [
714
+ {
715
+ status: 400,
716
+ description: "2: The account revert ticket is not valid",
717
+ schema: zod_1.z.void(),
718
+ },
719
+ {
720
+ status: 503,
721
+ description: "1: This feature is disabled",
722
+ schema: zod_1.z.void(),
723
+ },
724
+ ],
725
+ };
726
+ exports.postV1revertaccount = {
727
+ method: 'post',
728
+ path: '/v1/revert/account',
729
+ baseUrl: 'https://auth.roblox.com',
730
+ requestFormat: 'json',
731
+ parameters: {
732
+ body: Roblox_Authentication_Api_Models_RevertAccountSubmitRequest,
733
+ },
734
+ response: Roblox_Authentication_Api_Models_LoginResponse,
735
+ errors: [
736
+ {
737
+ status: 400,
738
+ 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.",
739
+ schema: zod_1.z.void(),
740
+ },
741
+ {
742
+ status: 403,
743
+ description: "0: Token Validation Failed",
744
+ schema: zod_1.z.void(),
745
+ },
746
+ {
747
+ status: 503,
748
+ description: "0: Unknown\n1: This feature is disabled",
749
+ schema: zod_1.z.void(),
750
+ },
751
+ ],
752
+ };
753
+ exports.postV1signup = {
754
+ method: 'post',
755
+ path: '/v1/signup',
756
+ baseUrl: 'https://auth.roblox.com',
757
+ requestFormat: 'json',
758
+ parameters: {
759
+ body: Roblox_Authentication_Api_Models_SignupRequest,
760
+ },
761
+ response: Roblox_Authentication_Api_Models_SignupResponse,
762
+ errors: [
763
+ {
764
+ status: 400,
765
+ description: "Bad request\n16: User agreement ids are null.",
766
+ schema: zod_1.z.void(),
767
+ },
768
+ {
769
+ status: 403,
770
+ 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",
771
+ schema: zod_1.z.void(),
772
+ },
773
+ {
774
+ status: 429,
775
+ description: "3: Too many attempts. Please wait a bit.",
776
+ schema: zod_1.z.void(),
777
+ },
778
+ {
779
+ status: 500,
780
+ description: "Internal server error\n15: Insert acceptances failed.",
781
+ schema: zod_1.z.void(),
782
+ },
783
+ {
784
+ status: 503,
785
+ description: "Service unavailable",
786
+ schema: zod_1.z.void(),
787
+ },
788
+ ],
789
+ };
790
+ exports.postV1socialProviderdisconnect = {
791
+ method: 'post',
792
+ path: '/v1/social/:provider/disconnect',
793
+ baseUrl: 'https://auth.roblox.com',
794
+ requestFormat: 'json',
795
+ parameters: {
796
+ body: zod_1.z.object({ Password: zod_1.z.string() }).partial(),
797
+ provider: zod_1.z.string(),
798
+ },
799
+ response: zod_1.z.object({}).partial(),
800
+ errors: [
801
+ {
802
+ status: 400,
803
+ description: "Bad request\n2: Unsupported social provider type.",
804
+ schema: zod_1.z.void(),
805
+ },
806
+ {
807
+ status: 401,
808
+ description: "0: Authorization has been denied for this request.",
809
+ schema: zod_1.z.void(),
810
+ },
811
+ {
812
+ status: 403,
813
+ description: "Forbidden\n0: Token Validation Failed\n3: Cannot disconnect the only authentication method. Password on account is required.\n4: The password provided is invalid.",
814
+ schema: zod_1.z.void(),
815
+ },
816
+ {
817
+ status: 500,
818
+ description: "Internal server error",
819
+ schema: zod_1.z.void(),
820
+ },
821
+ ],
822
+ };
823
+ exports.getV1socialconnectedProviders = {
824
+ method: 'get',
825
+ path: '/v1/social/connected-providers',
826
+ baseUrl: 'https://auth.roblox.com',
827
+ requestFormat: 'json',
828
+ response: Roblox_Authentication_Api_Models_SocialProvidersResponse,
829
+ errors: [
830
+ {
831
+ status: 401,
832
+ description: "0: Authorization has been denied for this request.",
833
+ schema: zod_1.z.void(),
834
+ },
835
+ ],
836
+ };
837
+ exports.getV1twostepverificationmetadata = {
838
+ method: 'get',
839
+ path: '/v1/twostepverification/metadata',
840
+ baseUrl: 'https://auth.roblox.com',
841
+ requestFormat: 'json',
842
+ response: Roblox_Authentication_Api_Models_TwoStepVerificationMetadataResponse,
843
+ errors: [],
844
+ };
845
+ exports.postV1twostepverificationresend = {
846
+ method: 'post',
847
+ path: '/v1/twostepverification/resend',
848
+ baseUrl: 'https://auth.roblox.com',
849
+ requestFormat: 'json',
850
+ parameters: {
851
+ body: Roblox_Authentication_Api_Models_TwoStepVerificationTicketRequest,
852
+ },
853
+ response: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
854
+ errors: [
855
+ {
856
+ status: 400,
857
+ description: "1: User is invalid.\n5: Invalid two step verification ticket.\n7: The action is unsupported.",
858
+ schema: zod_1.z.void(),
859
+ },
860
+ {
861
+ status: 403,
862
+ description: "0: Token Validation Failed",
863
+ schema: zod_1.z.void(),
864
+ },
865
+ {
866
+ status: 429,
867
+ description: "3: Too many attempts. Please try again later.",
868
+ schema: zod_1.z.void(),
869
+ },
870
+ {
871
+ status: 500,
872
+ description: "4: Account issue. Please contact Support.",
873
+ schema: zod_1.z.void(),
874
+ },
875
+ {
876
+ status: 503,
877
+ description: "2: The two step verification feature is not enabled at this time.",
878
+ schema: zod_1.z.void(),
879
+ },
880
+ ],
881
+ };
882
+ exports.postV1twostepverificationverify = {
883
+ method: 'post',
884
+ path: '/v1/twostepverification/verify',
885
+ baseUrl: 'https://auth.roblox.com',
886
+ requestFormat: 'json',
887
+ parameters: {
888
+ body: Roblox_Authentication_Api_Models_TwoStepVerificationVerifyRequest,
889
+ },
890
+ response: zod_1.z.object({}).partial(),
891
+ errors: [
892
+ {
893
+ status: 400,
894
+ description: "1: User is invalid.\n5: Invalid two step verification ticket.\n6: The code is invalid.\n7: The action is unsupported.",
895
+ schema: zod_1.z.void(),
896
+ },
897
+ {
898
+ status: 403,
899
+ description: "0: Token Validation Failed",
900
+ schema: zod_1.z.void(),
901
+ },
902
+ {
903
+ status: 429,
904
+ description: "3: Too many attempts. Please try again later.",
905
+ schema: zod_1.z.void(),
906
+ },
907
+ {
908
+ status: 503,
909
+ description: "2: The two step verification feature is not enabled at this time.",
910
+ schema: zod_1.z.void(),
911
+ },
912
+ ],
913
+ };
914
+ exports.postV1userpasswordschange = {
915
+ method: 'post',
916
+ path: '/v1/user/passwords/change',
917
+ baseUrl: 'https://auth.roblox.com',
918
+ description: "The current password is needed for verification that the password can be changed.",
919
+ requestFormat: 'json',
920
+ parameters: {
921
+ body: Roblox_Authentication_Api_Models_PasswordChangeModel,
922
+ },
923
+ response: zod_1.z.object({}).partial(),
924
+ errors: [
925
+ {
926
+ status: 400,
927
+ description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidCurrentPassword\n OR\n Roblox.Web.Authentication.Passwords.PasswordResponseCodes.InvalidPassword",
928
+ schema: zod_1.z.void(),
929
+ },
930
+ {
931
+ status: 401,
932
+ description: "0: Authorization has been denied for this request.",
933
+ schema: zod_1.z.void(),
934
+ },
935
+ {
936
+ status: 403,
937
+ description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.PinLocked\n0: Token Validation Failed",
938
+ schema: zod_1.z.void(),
939
+ },
940
+ {
941
+ status: 429,
942
+ description: "Roblox.Web.Authentication.Passwords.PasswordResponseCodes.Flooded",
943
+ schema: zod_1.z.void(),
944
+ },
945
+ ],
946
+ };
947
+ exports.postV1username = {
948
+ method: 'post',
949
+ path: '/v1/username',
950
+ baseUrl: 'https://auth.roblox.com',
951
+ requestFormat: 'json',
952
+ parameters: {
953
+ body: Roblox_Authentication_Api_Models_UsernameChangeRequest,
954
+ },
955
+ response: zod_1.z.object({}).partial(),
956
+ errors: [
957
+ {
958
+ status: 400,
959
+ 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",
960
+ schema: zod_1.z.void(),
961
+ },
962
+ {
963
+ status: 401,
964
+ description: "0: Authorization has been denied for this request.",
965
+ schema: zod_1.z.void(),
966
+ },
967
+ {
968
+ status: 403,
969
+ description: "0: Token Validation Failed\n1: PIN is locked.\n2: A verified email is missing\n3: Your password is incorrect.\n100: Unknown birthday",
970
+ schema: zod_1.z.void(),
971
+ },
972
+ {
973
+ status: 500,
974
+ description: "0: An unknown error occured.\n5: You don't have enough Robux to change your username.",
975
+ schema: zod_1.z.void(),
976
+ },
977
+ {
978
+ status: 503,
979
+ description: "4: The feature is currently not available. Please try again later.",
980
+ schema: zod_1.z.void(),
981
+ },
982
+ ],
983
+ };
984
+ exports.getV1usernames = {
985
+ method: 'get',
986
+ path: '/v1/usernames',
987
+ baseUrl: 'https://auth.roblox.com',
988
+ description: "This endpoint can be expanded in the future to include other query parameters such as "startsWith"",
989
+ requestFormat: 'json',
990
+ parameters: {
991
+ username: zod_1.z.string().optional(),
992
+ },
993
+ response: Roblox_Authentication_Api_Models_UsernamesResponse,
994
+ errors: [],
995
+ };
996
+ exports.postV1usernamesrecover = {
997
+ method: 'post',
998
+ path: '/v1/usernames/recover',
999
+ baseUrl: 'https://auth.roblox.com',
1000
+ requestFormat: 'json',
1001
+ parameters: {
1002
+ body: Roblox_Authentication_Api_Models_RecoverUsernameRequest,
1003
+ },
1004
+ response: Roblox_Authentication_Api_Models_RecoverUsernameResponse,
1005
+ errors: [
1006
+ {
1007
+ status: 400,
1008
+ description: "20: Invalid Email\n21: Invalid Phone\n23: No Account Found",
1009
+ schema: zod_1.z.void(),
1010
+ },
1011
+ {
1012
+ status: 403,
1013
+ description: "0: Token Validation Failed\n11: Too many attempts. Please wait a bit.",
1014
+ schema: zod_1.z.void(),
1015
+ },
1016
+ {
1017
+ status: 500,
1018
+ description: "0: An unexpected error occurred.",
1019
+ schema: zod_1.z.void(),
1020
+ },
1021
+ ],
1022
+ };
1023
+ exports.getV1usernamesvalidate = {
1024
+ method: 'get',
1025
+ path: '/v1/usernames/validate',
1026
+ baseUrl: 'https://auth.roblox.com',
1027
+ requestFormat: 'json',
1028
+ parameters: {
1029
+ Username: zod_1.z.string(),
1030
+ Birthday: zod_1.z.string().datetime(),
1031
+ Context: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
1032
+ },
1033
+ response: Roblox_Authentication_Api_Models_UsernameValidationResponse,
1034
+ errors: [
1035
+ {
1036
+ status: 400,
1037
+ description: "1: A valid username is required.\n2: A valid birthday or authenticated user is required.",
1038
+ schema: zod_1.z.void(),
1039
+ },
1040
+ ],
1041
+ };
1042
+ exports.postV1usernamesvalidate = {
1043
+ method: 'post',
1044
+ path: '/v1/usernames/validate',
1045
+ baseUrl: 'https://auth.roblox.com',
1046
+ requestFormat: 'json',
1047
+ parameters: {
1048
+ body: Roblox_Authentication_Api_Models_UsernameValidationRequest,
1049
+ },
1050
+ response: Roblox_Authentication_Api_Models_UsernameValidationResponse,
1051
+ errors: [
1052
+ {
1053
+ status: 400,
1054
+ description: "1: A valid username is required.\n2: A valid birthday or authenticated user is required.",
1055
+ schema: zod_1.z.void(),
1056
+ },
1057
+ {
1058
+ status: 403,
1059
+ description: "0: Token Validation Failed",
1060
+ schema: zod_1.z.void(),
1061
+ },
1062
+ ],
1063
+ };
1064
+ exports.getV1validatorsemail = {
1065
+ method: 'get',
1066
+ path: '/v1/validators/email',
1067
+ baseUrl: 'https://auth.roblox.com',
1068
+ requestFormat: 'json',
1069
+ parameters: {
1070
+ Email: zod_1.z.string(),
1071
+ },
1072
+ response: zod_1.z.object({ isEmailValid: zod_1.z.boolean() }).partial(),
1073
+ errors: [],
1074
+ };
1075
+ exports.getV1validatorsusername = {
1076
+ method: 'get',
1077
+ path: '/v1/validators/username',
1078
+ baseUrl: 'https://auth.roblox.com',
1079
+ requestFormat: 'json',
1080
+ parameters: {
1081
+ Username: zod_1.z.string(),
1082
+ BirthDay: zod_1.z.string().datetime(),
1083
+ },
1084
+ response: Roblox_Authentication_Api_Models_RecommendedUsernameResponse,
1085
+ errors: [],
1086
+ };
1087
+ exports.getV1xboxconnection = {
1088
+ method: 'get',
1089
+ path: '/v1/xbox/connection',
1090
+ baseUrl: 'https://auth.roblox.com',
1091
+ requestFormat: 'json',
1092
+ response: zod_1.z.object({ hasConnectedXboxAccount: zod_1.z.boolean() }).partial(),
1093
+ errors: [
1094
+ {
1095
+ status: 401,
1096
+ description: "0: Authorization has been denied for this request.",
1097
+ schema: zod_1.z.void(),
1098
+ },
1099
+ {
1100
+ status: 403,
1101
+ schema: zod_1.z.void(),
1102
+ },
1103
+ ],
1104
+ };
1105
+ exports.postV1xboxdisconnect = {
1106
+ method: 'post',
1107
+ path: '/v1/xbox/disconnect',
1108
+ baseUrl: 'https://auth.roblox.com',
1109
+ requestFormat: 'json',
1110
+ response: zod_1.z.object({ success: zod_1.z.boolean() }).partial(),
1111
+ errors: [
1112
+ {
1113
+ status: 401,
1114
+ description: "0: Authorization has been denied for this request.",
1115
+ schema: zod_1.z.void(),
1116
+ },
1117
+ {
1118
+ status: 403,
1119
+ description: "Forbidden\n0: Token Validation Failed",
1120
+ schema: zod_1.z.void(),
1121
+ },
1122
+ ],
1123
+ };
1124
+ exports.getV1xboxgetLoginConsecutiveDays = {
1125
+ method: 'get',
1126
+ path: '/v1/xbox/get-login-consecutive-days',
1127
+ baseUrl: 'https://auth.roblox.com',
1128
+ requestFormat: 'json',
1129
+ response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
1130
+ errors: [
1131
+ {
1132
+ status: 400,
1133
+ description: "36: Invalid Xbox Live Account",
1134
+ schema: zod_1.z.void(),
1135
+ },
1136
+ {
1137
+ status: 401,
1138
+ description: "0: Authorization has been denied for this request.",
1139
+ schema: zod_1.z.void(),
1140
+ },
1141
+ {
1142
+ status: 403,
1143
+ schema: zod_1.z.void(),
1144
+ },
1145
+ ],
1146
+ };
1147
+ exports.postV1xboxtranslate = {
1148
+ method: 'post',
1149
+ path: '/v1/xbox/translate',
1150
+ baseUrl: 'https://auth.roblox.com',
1151
+ requestFormat: 'json',
1152
+ parameters: {
1153
+ body: Roblox_Authentication_Api_Models_XboxTranslateRequest,
1154
+ },
1155
+ response: Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse,
1156
+ errors: [
1157
+ {
1158
+ status: 401,
1159
+ description: "0: Authorization has been denied for this request.",
1160
+ schema: zod_1.z.void(),
1161
+ },
1162
+ {
1163
+ status: 403,
1164
+ description: "\n0: Token Validation Failed",
1165
+ schema: zod_1.z.void(),
1166
+ },
1167
+ ],
1168
+ };