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