rozod 6.2.0 → 6.4.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/accountsettingsv1.d.ts +27 -33
- package/lib/endpoints/accountsettingsv1.js +11 -22
- package/lib/endpoints/adconfigurationv2.d.ts +104 -119
- package/lib/endpoints/adconfigurationv2.js +32 -48
- package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv1.js +25 -24
- package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv2.js +25 -24
- package/lib/endpoints/authv1.d.ts +132 -84
- package/lib/endpoints/authv1.js +118 -64
- package/lib/endpoints/authv2.d.ts +56 -56
- package/lib/endpoints/authv2.js +57 -50
- package/lib/endpoints/authv3.d.ts +11 -11
- package/lib/endpoints/authv3.js +11 -11
- package/lib/endpoints/avatarv1.d.ts +1 -0
- package/lib/endpoints/avatarv1.js +1 -0
- package/lib/endpoints/avatarv2.d.ts +1 -0
- package/lib/endpoints/avatarv2.js +1 -0
- package/lib/endpoints/avatarv3.d.ts +1 -0
- package/lib/endpoints/avatarv3.js +1 -0
- package/lib/endpoints/badgesv1.d.ts +6 -22
- package/lib/endpoints/badgesv1.js +2 -22
- package/lib/endpoints/catalogv1.d.ts +39 -113
- package/lib/endpoints/catalogv1.js +39 -107
- package/lib/endpoints/catalogv2.d.ts +11 -11
- package/lib/endpoints/catalogv2.js +11 -11
- package/lib/endpoints/clientsettingsv2.d.ts +8 -7
- package/lib/endpoints/clientsettingsv2.js +9 -1
- package/lib/endpoints/developv1.d.ts +31 -31
- package/lib/endpoints/developv1.js +26 -26
- package/lib/endpoints/developv2.d.ts +27 -27
- package/lib/endpoints/developv2.js +22 -22
- package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
- package/lib/endpoints/economycreatorstatsv1.js +1 -1
- package/lib/endpoints/followingsv2.d.ts +2 -2
- package/lib/endpoints/followingsv2.js +2 -2
- package/lib/endpoints/friendsv1.d.ts +24 -98
- package/lib/endpoints/friendsv1.js +25 -91
- package/lib/endpoints/gamesv1.d.ts +31 -615
- package/lib/endpoints/gamesv1.js +32 -608
- package/lib/endpoints/gamesv2.d.ts +187 -260
- package/lib/endpoints/gamesv2.js +130 -190
- package/lib/endpoints/groupsv1.d.ts +34 -28
- package/lib/endpoints/groupsv1.js +31 -18
- package/lib/endpoints/groupsv2.d.ts +92 -92
- package/lib/endpoints/groupsv2.js +93 -87
- package/lib/endpoints/inventoryv1.d.ts +9 -21
- package/lib/endpoints/inventoryv1.js +4 -4
- package/lib/endpoints/inventoryv2.d.ts +91 -91
- package/lib/endpoints/inventoryv2.js +86 -86
- package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
- package/lib/endpoints/itemconfigurationv1.js +1 -1
- package/lib/endpoints/thumbnailsv1.d.ts +1 -0
- package/lib/endpoints/thumbnailsv1.js +1 -0
- package/lib/endpoints/tradesv1.d.ts +10 -16
- package/lib/endpoints/tradesv1.js +10 -10
- package/lib/endpoints/twostepverificationv1.d.ts +59 -59
- package/lib/endpoints/twostepverificationv1.js +59 -59
- package/lib/endpoints/usersv1.d.ts +1 -1
- package/lib/endpoints/usersv1.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +29 -3
- package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
- package/lib/opencloud/v1/asset-permissions.js +9 -3
- package/lib/opencloud/v1/assets.d.ts +59 -32
- package/lib/opencloud/v1/assets.js +77 -41
- package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
- package/lib/opencloud/v1/datastores-ordered.js +62 -20
- package/lib/opencloud/v1/datastores.d.ts +99 -42
- package/lib/opencloud/v1/datastores.js +123 -50
- package/lib/opencloud/v1/developer-products.d.ts +29 -11
- package/lib/opencloud/v1/developer-products.js +37 -15
- package/lib/opencloud/v1/game-passes.d.ts +29 -11
- package/lib/opencloud/v1/game-passes.js +37 -15
- package/lib/opencloud/v1/messaging.d.ts +6 -2
- package/lib/opencloud/v1/messaging.js +8 -3
- package/lib/opencloud/v1/open-eval.d.ts +14 -4
- package/lib/opencloud/v1/open-eval.js +18 -6
- package/lib/opencloud/v1/secrets-store.d.ts +46 -26
- package/lib/opencloud/v1/secrets-store.js +56 -31
- package/lib/opencloud/v1/toolbox.d.ts +14 -6
- package/lib/opencloud/v1/toolbox.js +18 -8
- package/lib/opencloud/v1/universes.d.ts +6 -2
- package/lib/opencloud/v1/universes.js +8 -3
- package/lib/opencloud/v2/cloud.d.ts +854 -395
- package/lib/opencloud/v2/cloud.js +967 -395
- package/package.json +1 -1
package/lib/endpoints/authv1.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.postXboxTranslate = exports.getXboxGetLoginConsecutiveDays = exports.postXboxDisconnect = exports.getXboxConnection = exports.postValidatorsUsername = exports.getValidatorsUsername = void 0;
|
|
3
|
+
exports.getValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsEmail = exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = exports.postUsername = exports.postUserPasswordsChange = exports.getSocialConnectedProviders = exports.postSocialProviderDisconnect = exports.postSignupLinked = exports.postSignup = exports.postSessionRefresh = exports.postRevertInvalidateTickets = exports.postRevertAccount = exports.getRevertAccount = exports.getRecoveryMetadata = exports.postPasswordsValidate = exports.getPasswordsValidate = exports.postPasskeyStartregistration = exports.postPasskeyStartauthentication = exports.postPasskeyStartPreauthRegistration = exports.postPasskeyStartAuthenticationByUser = exports.postPasskeyListcredentials = exports.postPasskeyFinishregistration = exports.postPasskeyFinishPreauthRegistration = exports.postPasskeyFinishArPreauthRegistration = exports.postPasskeyDeletecredentialbatch = exports.getMetadata = exports.postLogoutfromallsessionsandreauthenticate = exports.postLogout = exports.postLoginLinked = exports.postLogin = exports.postIdentityInitializeLogin = exports.postIdentityVerificationLogin = exports.postExternalUnlink = exports.postExternalSignup = exports.postExternalLoginandlink = exports.postExternalLogin = exports.postExternalAccess = exports.getExternalIdentityprovideridSsoOauthInit = exports.getExternalIdentityprovideridSsoOauthCallback = exports.getClientAssertion = exports.getAuthMetadata = exports.postAccountPinUnlock = exports.postAccountPinLock = exports.patchAccountPin = exports.deleteAccountPin = exports.postAccountPin = exports.getAccountPin = void 0;
|
|
4
|
+
exports.postXboxTranslate = exports.getXboxGetLoginConsecutiveDays = exports.postXboxDisconnect = exports.getXboxConnection = exports.postValidatorsUsername = exports.getValidatorsUsername = exports.postValidatorsRecommendedusernamefromdisplayname = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const __1 = require("..");
|
|
7
7
|
const Roblox_Authentication_Api_Models_AccountPinStatusResponse = zod_1.z.object({
|
|
@@ -33,7 +33,14 @@ const Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
|
|
|
33
33
|
IsLoginRedirectPageEnabled: zod_1.z.boolean(),
|
|
34
34
|
});
|
|
35
35
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
|
|
36
|
-
code: zod_1.z.
|
|
36
|
+
code: zod_1.z.enum([
|
|
37
|
+
'ValidPassword',
|
|
38
|
+
'WeakPasswordError',
|
|
39
|
+
'PasswordLengthError',
|
|
40
|
+
'PasswordSameAsUsernameError',
|
|
41
|
+
'ForbiddenPasswordError',
|
|
42
|
+
'DumbStringsError',
|
|
43
|
+
]),
|
|
37
44
|
message: zod_1.z.string(),
|
|
38
45
|
});
|
|
39
46
|
const Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
|
|
@@ -71,15 +78,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
|
|
|
71
78
|
displayName: zod_1.z.string(),
|
|
72
79
|
});
|
|
73
80
|
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
|
|
74
|
-
mediaType: zod_1.z.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
mediaType: zod_1.z.enum([
|
|
82
|
+
'Email',
|
|
83
|
+
'SMS',
|
|
84
|
+
'Authenticator',
|
|
85
|
+
'RecoveryCode',
|
|
86
|
+
'SecurityKey',
|
|
87
|
+
'CrossDevice',
|
|
88
|
+
'Password',
|
|
89
|
+
'Passkey',
|
|
83
90
|
]),
|
|
84
91
|
ticket: zod_1.z.string(),
|
|
85
92
|
});
|
|
@@ -105,17 +112,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
|
|
|
105
112
|
usernames: zod_1.z.array(zod_1.z.string()),
|
|
106
113
|
});
|
|
107
114
|
const Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
|
|
108
|
-
code: zod_1.z.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
code: zod_1.z.enum([
|
|
116
|
+
'ValidUsername',
|
|
117
|
+
'AlreadyInUseError',
|
|
118
|
+
'ModerationError',
|
|
119
|
+
'InvalidLengthError',
|
|
120
|
+
'StartsOrEndsWithUnderscoreError',
|
|
121
|
+
'TooManyUnderscoresError',
|
|
122
|
+
'ContainsSpacesError',
|
|
123
|
+
'InvalidCharactersError',
|
|
124
|
+
'ContainsPiiError',
|
|
125
|
+
'ContainsReservedUsernameError',
|
|
119
126
|
]),
|
|
120
127
|
message: zod_1.z.string(),
|
|
121
128
|
});
|
|
@@ -149,7 +156,7 @@ const Roblox_Authentication_Api_Models_AccountPinResponse = zod_1.z.object({
|
|
|
149
156
|
});
|
|
150
157
|
const Roblox_Authentication_Api_Models_Request_ExternalAccessRequest = zod_1.z.object({
|
|
151
158
|
authenticationProof: zod_1.z.string(),
|
|
152
|
-
identityProviderPlatformType: zod_1.z.
|
|
159
|
+
identityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
|
|
153
160
|
additionalInfoPayload: zod_1.z.object({}),
|
|
154
161
|
});
|
|
155
162
|
const Roblox_Authentication_Api_Models_Response_ExternalIdentityGateway_ExternalIdentityAccessResponse = zod_1.z.object({
|
|
@@ -177,22 +184,22 @@ const Roblox_Authentication_Api_Models_Response_ExternalIdentityGateway_External
|
|
|
177
184
|
success: zod_1.z.boolean(),
|
|
178
185
|
});
|
|
179
186
|
const Roblox_Authentication_Api_Models_Request_ExternalLoginAndLinkRequest = zod_1.z.object({
|
|
180
|
-
ctype: zod_1.z.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
ctype: zod_1.z.enum([
|
|
188
|
+
'Email',
|
|
189
|
+
'Username',
|
|
190
|
+
'PhoneNumber',
|
|
191
|
+
'EmailOtpSessionToken',
|
|
192
|
+
'AuthToken',
|
|
193
|
+
'Passkey',
|
|
194
|
+
'AsUser',
|
|
195
|
+
'TwoStepVerification',
|
|
196
|
+
'XboxLive',
|
|
197
|
+
'PlatformLive',
|
|
191
198
|
]),
|
|
192
199
|
cvalue: zod_1.z.string(),
|
|
193
200
|
password: zod_1.z.string(),
|
|
194
201
|
authenticationProof: zod_1.z.string(),
|
|
195
|
-
IdentityProviderPlatformType: zod_1.z.
|
|
202
|
+
IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
|
|
196
203
|
additionalInfoPayload: zod_1.z.object({}),
|
|
197
204
|
});
|
|
198
205
|
const Roblox_Authentication_Api_Models_Request_ExternalSignupRequest = zod_1.z.object({
|
|
@@ -201,11 +208,11 @@ const Roblox_Authentication_Api_Models_Request_ExternalSignupRequest = zod_1.z.o
|
|
|
201
208
|
birthday: zod_1.z.string().datetime({ offset: true }),
|
|
202
209
|
locale: zod_1.z.string(),
|
|
203
210
|
authenticationProof: zod_1.z.string(),
|
|
204
|
-
IdentityProviderPlatformType: zod_1.z.
|
|
211
|
+
IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
|
|
205
212
|
additionalInfoPayload: zod_1.z.object({}),
|
|
206
213
|
});
|
|
207
214
|
const Roblox_Authentication_Api_Models_Request_ExternalUnlinkRequest = zod_1.z.object({
|
|
208
|
-
IdentityProviderPlatformType: zod_1.z.
|
|
215
|
+
IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
|
|
209
216
|
additionalInfoPayload: zod_1.z.object({}),
|
|
210
217
|
});
|
|
211
218
|
const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = zod_1.z.object({
|
|
@@ -233,7 +240,7 @@ const Roblox_Authentication_Api_Models_Request_InitializeLoginRequest = zod_1.z.
|
|
|
233
240
|
challengeId: zod_1.z.string().optional(),
|
|
234
241
|
});
|
|
235
242
|
const Roblox_Authentication_Api_Models_LoginMethodModel = zod_1.z.object({
|
|
236
|
-
method: zod_1.z.
|
|
243
|
+
method: zod_1.z.enum(['EmailOtp', 'Passkey', 'Password']),
|
|
237
244
|
priority: zod_1.z.number().int(),
|
|
238
245
|
});
|
|
239
246
|
const Roblox_Authentication_Api_Models_Response_InitializeLoginResponse = zod_1.z.object({
|
|
@@ -246,31 +253,31 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
246
253
|
serverNonce: zod_1.z.string(),
|
|
247
254
|
});
|
|
248
255
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = zod_1.z.object({
|
|
249
|
-
LinkingPlatform: zod_1.z.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
LinkingPlatform: zod_1.z.enum([
|
|
257
|
+
'Invalid',
|
|
258
|
+
'Xbox',
|
|
259
|
+
'Qq',
|
|
260
|
+
'WeChat',
|
|
261
|
+
'Facebook',
|
|
262
|
+
'RobloxDeveloper',
|
|
263
|
+
'RobloxGroupCreator',
|
|
264
|
+
'Playstation',
|
|
265
|
+
'ExternalProvider',
|
|
266
|
+
'Example',
|
|
260
267
|
]),
|
|
261
268
|
});
|
|
262
269
|
const Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
|
|
263
|
-
ctype: zod_1.z.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
ctype: zod_1.z.enum([
|
|
271
|
+
'Email',
|
|
272
|
+
'Username',
|
|
273
|
+
'PhoneNumber',
|
|
274
|
+
'EmailOtpSessionToken',
|
|
275
|
+
'AuthToken',
|
|
276
|
+
'Passkey',
|
|
277
|
+
'AsUser',
|
|
278
|
+
'TwoStepVerification',
|
|
279
|
+
'XboxLive',
|
|
280
|
+
'PlatformLive',
|
|
274
281
|
]),
|
|
275
282
|
cvalue: zod_1.z.string(),
|
|
276
283
|
password: zod_1.z.string(),
|
|
@@ -291,6 +298,12 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
|
|
|
291
298
|
const Roblox_Authentication_Api_Models_Request_DeletePasskeysRequest = zod_1.z.object({
|
|
292
299
|
credentialNicknames: zod_1.z.array(zod_1.z.string()),
|
|
293
300
|
});
|
|
301
|
+
const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest = zod_1.z.object({
|
|
302
|
+
recoverySession: zod_1.z.string(),
|
|
303
|
+
passkeySessionId: zod_1.z.string(),
|
|
304
|
+
passkeyRegistrationResponse: zod_1.z.string(),
|
|
305
|
+
userId: zod_1.z.number().int(),
|
|
306
|
+
});
|
|
294
307
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest = zod_1.z.object({
|
|
295
308
|
sessionId: zod_1.z.string(),
|
|
296
309
|
registrationResponse: zod_1.z.string(),
|
|
@@ -361,7 +374,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
|
|
|
361
374
|
});
|
|
362
375
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
|
|
363
376
|
otpSessionToken: zod_1.z.string(),
|
|
364
|
-
otpContactType: zod_1.z.
|
|
377
|
+
otpContactType: zod_1.z.enum(['Unset', 'Email']),
|
|
365
378
|
});
|
|
366
379
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = zod_1.z.object({
|
|
367
380
|
translationKey: zod_1.z.string(),
|
|
@@ -376,7 +389,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = zod_1.z.obje
|
|
|
376
389
|
const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
|
|
377
390
|
username: zod_1.z.string(),
|
|
378
391
|
password: zod_1.z.string(),
|
|
379
|
-
gender: zod_1.z.
|
|
392
|
+
gender: zod_1.z.enum(['Unknown', 'Male', 'Female']),
|
|
380
393
|
birthday: zod_1.z.string().datetime({ offset: true }),
|
|
381
394
|
displayName: zod_1.z.string(),
|
|
382
395
|
isTosAgreementBoxChecked: zod_1.z.boolean(),
|
|
@@ -422,7 +435,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
|
|
|
422
435
|
password: zod_1.z.string(),
|
|
423
436
|
});
|
|
424
437
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
|
|
425
|
-
targetType: zod_1.z.
|
|
438
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
426
439
|
target: zod_1.z.string(),
|
|
427
440
|
});
|
|
428
441
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
|
|
@@ -1057,6 +1070,47 @@ exports.postPasskeyDeletecredentialbatch = (0, __1.endpoint)({
|
|
|
1057
1070
|
},
|
|
1058
1071
|
],
|
|
1059
1072
|
});
|
|
1073
|
+
/**
|
|
1074
|
+
* @api POST https://auth.roblox.com/v1/passkey/finish-ar-preauth-registration
|
|
1075
|
+
* @summary Finishes account recovery pre-auth passkey registration by validating the recovery session,
|
|
1076
|
+
deactivating the user's password, and completing passkey registration.
|
|
1077
|
+
* @param body The request body containing recovery session and passkey details.
|
|
1078
|
+
*/
|
|
1079
|
+
exports.postPasskeyFinishArPreauthRegistration = (0, __1.endpoint)({
|
|
1080
|
+
method: 'POST',
|
|
1081
|
+
path: '/v1/passkey/finish-ar-preauth-registration',
|
|
1082
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1083
|
+
requestFormat: 'json',
|
|
1084
|
+
serializationMethod: {
|
|
1085
|
+
body: {},
|
|
1086
|
+
},
|
|
1087
|
+
parameters: {},
|
|
1088
|
+
body: Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest,
|
|
1089
|
+
response: zod_1.z.object({}),
|
|
1090
|
+
errors: [
|
|
1091
|
+
{
|
|
1092
|
+
status: 400,
|
|
1093
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
status: 401,
|
|
1097
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
status: 403,
|
|
1101
|
+
description: `0: Token Validation Failed
|
|
1102
|
+
1: Reached limit of pass keys registered.`,
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
status: 500,
|
|
1106
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
status: 503,
|
|
1110
|
+
description: `2: Feature disabled.`,
|
|
1111
|
+
},
|
|
1112
|
+
],
|
|
1113
|
+
});
|
|
1060
1114
|
/**
|
|
1061
1115
|
* @api POST https://auth.roblox.com/v1/passkey/finish-preauth-registration
|
|
1062
1116
|
* @param body
|
|
@@ -36,7 +36,7 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
36
36
|
serverNonce: z.string(),
|
|
37
37
|
});
|
|
38
38
|
const Roblox_Authentication_Api_Models_PasswordResetModel = z.object({
|
|
39
|
-
targetType: z.
|
|
39
|
+
targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
|
|
40
40
|
ticket: z.string(),
|
|
41
41
|
userId: z.number().int(),
|
|
42
42
|
password: z.string(),
|
|
@@ -57,15 +57,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
|
|
|
57
57
|
});
|
|
58
58
|
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse =
|
|
59
59
|
z.object({
|
|
60
|
-
mediaType: z.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
mediaType: z.enum([
|
|
61
|
+
"Email",
|
|
62
|
+
"SMS",
|
|
63
|
+
"Authenticator",
|
|
64
|
+
"RecoveryCode",
|
|
65
|
+
"SecurityKey",
|
|
66
|
+
"CrossDevice",
|
|
67
|
+
"Password",
|
|
68
|
+
"Passkey",
|
|
69
69
|
]),
|
|
70
70
|
ticket: z.string(),
|
|
71
71
|
});
|
|
@@ -82,13 +82,13 @@ const Roblox_Authentication_Api_Models_LoginResponse = z.object({
|
|
|
82
82
|
shouldAutoLoginFromRecovery: z.boolean(),
|
|
83
83
|
});
|
|
84
84
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
|
|
85
|
-
code: z.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
code: z.enum([
|
|
86
|
+
"ValidPassword",
|
|
87
|
+
"WeakPasswordError",
|
|
88
|
+
"PasswordLengthError",
|
|
89
|
+
"PasswordSameAsUsernameError",
|
|
90
|
+
"ForbiddenPasswordError",
|
|
91
|
+
"DumbStringsError",
|
|
92
92
|
]),
|
|
93
93
|
message: z.string(),
|
|
94
94
|
});
|
|
@@ -125,17 +125,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
|
|
|
125
125
|
usernames: z.array(z.string()),
|
|
126
126
|
});
|
|
127
127
|
const Roblox_Authentication_Api_Models_UsernameValidationResponse = z.object({
|
|
128
|
-
code: z.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
128
|
+
code: z.enum([
|
|
129
|
+
"ValidUsername",
|
|
130
|
+
"AlreadyInUseError",
|
|
131
|
+
"ModerationError",
|
|
132
|
+
"InvalidLengthError",
|
|
133
|
+
"StartsOrEndsWithUnderscoreError",
|
|
134
|
+
"TooManyUnderscoresError",
|
|
135
|
+
"ContainsSpacesError",
|
|
136
|
+
"InvalidCharactersError",
|
|
137
|
+
"ContainsPiiError",
|
|
138
|
+
"ContainsReservedUsernameError",
|
|
139
139
|
]),
|
|
140
140
|
message: z.string(),
|
|
141
141
|
});
|
|
@@ -148,31 +148,31 @@ const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest
|
|
|
148
148
|
z.object({ loginTicket: z.string(), resultToken: z.string() });
|
|
149
149
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
150
150
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
|
|
151
|
-
LinkingPlatform: z.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
LinkingPlatform: z.enum([
|
|
152
|
+
"Invalid",
|
|
153
|
+
"Xbox",
|
|
154
|
+
"Qq",
|
|
155
|
+
"WeChat",
|
|
156
|
+
"Facebook",
|
|
157
|
+
"RobloxDeveloper",
|
|
158
|
+
"RobloxGroupCreator",
|
|
159
|
+
"Playstation",
|
|
160
|
+
"ExternalProvider",
|
|
161
|
+
"Example",
|
|
162
162
|
]),
|
|
163
163
|
});
|
|
164
164
|
const Roblox_Authentication_Api_Models_LoginRequest = z.object({
|
|
165
|
-
ctype: z.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
ctype: z.enum([
|
|
166
|
+
"Email",
|
|
167
|
+
"Username",
|
|
168
|
+
"PhoneNumber",
|
|
169
|
+
"EmailOtpSessionToken",
|
|
170
|
+
"AuthToken",
|
|
171
|
+
"Passkey",
|
|
172
|
+
"AsUser",
|
|
173
|
+
"TwoStepVerification",
|
|
174
|
+
"XboxLive",
|
|
175
|
+
"PlatformLive",
|
|
176
176
|
]),
|
|
177
177
|
cvalue: z.string(),
|
|
178
178
|
password: z.string(),
|
|
@@ -194,7 +194,7 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
|
|
|
194
194
|
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
195
195
|
});
|
|
196
196
|
const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
|
|
197
|
-
targetType: z.
|
|
197
|
+
targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
|
|
198
198
|
target: z.string(),
|
|
199
199
|
captchaId: z.string(),
|
|
200
200
|
captchaToken: z.string(),
|
|
@@ -203,11 +203,11 @@ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
|
|
|
203
203
|
});
|
|
204
204
|
const Roblox_Authentication_Api_Models_SendResetPasswordResponse = z.object({
|
|
205
205
|
nonce: z.string(),
|
|
206
|
-
transmissionType: z.
|
|
206
|
+
transmissionType: z.enum(["Sms", "Email"]),
|
|
207
207
|
});
|
|
208
208
|
const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest =
|
|
209
209
|
z.object({
|
|
210
|
-
targetType: z.
|
|
210
|
+
targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
|
|
211
211
|
nonce: z.string(),
|
|
212
212
|
code: z.string(),
|
|
213
213
|
});
|
|
@@ -236,7 +236,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
|
|
|
236
236
|
});
|
|
237
237
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = z.object({
|
|
238
238
|
otpSessionToken: z.string(),
|
|
239
|
-
otpContactType: z.
|
|
239
|
+
otpContactType: z.enum(["Unset", "Email"]),
|
|
240
240
|
});
|
|
241
241
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = z.object({
|
|
242
242
|
translationKey: z.string(),
|
|
@@ -251,7 +251,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = z.object({
|
|
|
251
251
|
const Roblox_Authentication_Api_Models_SignupRequest = z.object({
|
|
252
252
|
username: z.string(),
|
|
253
253
|
password: z.string(),
|
|
254
|
-
gender: z.
|
|
254
|
+
gender: z.enum(["Unknown", "Male", "Female"]),
|
|
255
255
|
birthday: z.string().datetime({ offset: true }),
|
|
256
256
|
displayName: z.string(),
|
|
257
257
|
isTosAgreementBoxChecked: z.boolean(),
|
|
@@ -299,7 +299,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = z.object({
|
|
|
299
299
|
password: z.string(),
|
|
300
300
|
});
|
|
301
301
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = z.object({
|
|
302
|
-
targetType: z.
|
|
302
|
+
targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
|
|
303
303
|
target: z.string(),
|
|
304
304
|
});
|
|
305
305
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({
|
package/lib/endpoints/authv2.js
CHANGED
|
@@ -37,7 +37,7 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
37
37
|
serverNonce: zod_1.z.string(),
|
|
38
38
|
});
|
|
39
39
|
const Roblox_Authentication_Api_Models_PasswordResetModel = zod_1.z.object({
|
|
40
|
-
targetType: zod_1.z.
|
|
40
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
41
41
|
ticket: zod_1.z.string(),
|
|
42
42
|
userId: zod_1.z.number().int(),
|
|
43
43
|
password: zod_1.z.string(),
|
|
@@ -56,15 +56,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
|
|
|
56
56
|
displayName: zod_1.z.string(),
|
|
57
57
|
});
|
|
58
58
|
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
|
|
59
|
-
mediaType: zod_1.z.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
mediaType: zod_1.z.enum([
|
|
60
|
+
'Email',
|
|
61
|
+
'SMS',
|
|
62
|
+
'Authenticator',
|
|
63
|
+
'RecoveryCode',
|
|
64
|
+
'SecurityKey',
|
|
65
|
+
'CrossDevice',
|
|
66
|
+
'Password',
|
|
67
|
+
'Passkey',
|
|
68
68
|
]),
|
|
69
69
|
ticket: zod_1.z.string(),
|
|
70
70
|
});
|
|
@@ -80,7 +80,14 @@ const Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
|
|
|
80
80
|
shouldAutoLoginFromRecovery: zod_1.z.boolean(),
|
|
81
81
|
});
|
|
82
82
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
|
|
83
|
-
code: zod_1.z.
|
|
83
|
+
code: zod_1.z.enum([
|
|
84
|
+
'ValidPassword',
|
|
85
|
+
'WeakPasswordError',
|
|
86
|
+
'PasswordLengthError',
|
|
87
|
+
'PasswordSameAsUsernameError',
|
|
88
|
+
'ForbiddenPasswordError',
|
|
89
|
+
'DumbStringsError',
|
|
90
|
+
]),
|
|
84
91
|
message: zod_1.z.string(),
|
|
85
92
|
});
|
|
86
93
|
const Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
|
|
@@ -116,17 +123,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
|
|
|
116
123
|
usernames: zod_1.z.array(zod_1.z.string()),
|
|
117
124
|
});
|
|
118
125
|
const Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
|
|
119
|
-
code: zod_1.z.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
code: zod_1.z.enum([
|
|
127
|
+
'ValidUsername',
|
|
128
|
+
'AlreadyInUseError',
|
|
129
|
+
'ModerationError',
|
|
130
|
+
'InvalidLengthError',
|
|
131
|
+
'StartsOrEndsWithUnderscoreError',
|
|
132
|
+
'TooManyUnderscoresError',
|
|
133
|
+
'ContainsSpacesError',
|
|
134
|
+
'InvalidCharactersError',
|
|
135
|
+
'ContainsPiiError',
|
|
136
|
+
'ContainsReservedUsernameError',
|
|
130
137
|
]),
|
|
131
138
|
message: zod_1.z.string(),
|
|
132
139
|
});
|
|
@@ -141,31 +148,31 @@ const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest
|
|
|
141
148
|
});
|
|
142
149
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
|
|
143
150
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = zod_1.z.object({
|
|
144
|
-
LinkingPlatform: zod_1.z.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
LinkingPlatform: zod_1.z.enum([
|
|
152
|
+
'Invalid',
|
|
153
|
+
'Xbox',
|
|
154
|
+
'Qq',
|
|
155
|
+
'WeChat',
|
|
156
|
+
'Facebook',
|
|
157
|
+
'RobloxDeveloper',
|
|
158
|
+
'RobloxGroupCreator',
|
|
159
|
+
'Playstation',
|
|
160
|
+
'ExternalProvider',
|
|
161
|
+
'Example',
|
|
155
162
|
]),
|
|
156
163
|
});
|
|
157
164
|
const Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
|
|
158
|
-
ctype: zod_1.z.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
ctype: zod_1.z.enum([
|
|
166
|
+
'Email',
|
|
167
|
+
'Username',
|
|
168
|
+
'PhoneNumber',
|
|
169
|
+
'EmailOtpSessionToken',
|
|
170
|
+
'AuthToken',
|
|
171
|
+
'Passkey',
|
|
172
|
+
'AsUser',
|
|
173
|
+
'TwoStepVerification',
|
|
174
|
+
'XboxLive',
|
|
175
|
+
'PlatformLive',
|
|
169
176
|
]),
|
|
170
177
|
cvalue: zod_1.z.string(),
|
|
171
178
|
password: zod_1.z.string(),
|
|
@@ -184,7 +191,7 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
|
|
|
184
191
|
SecureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
185
192
|
});
|
|
186
193
|
const Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object({
|
|
187
|
-
targetType: zod_1.z.
|
|
194
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
188
195
|
target: zod_1.z.string(),
|
|
189
196
|
captchaId: zod_1.z.string(),
|
|
190
197
|
captchaToken: zod_1.z.string(),
|
|
@@ -193,10 +200,10 @@ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object
|
|
|
193
200
|
});
|
|
194
201
|
const Roblox_Authentication_Api_Models_SendResetPasswordResponse = zod_1.z.object({
|
|
195
202
|
nonce: zod_1.z.string(),
|
|
196
|
-
transmissionType: zod_1.z.
|
|
203
|
+
transmissionType: zod_1.z.enum(['Sms', 'Email']),
|
|
197
204
|
});
|
|
198
205
|
const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest = zod_1.z.object({
|
|
199
|
-
targetType: zod_1.z.
|
|
206
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
200
207
|
nonce: zod_1.z.string(),
|
|
201
208
|
code: zod_1.z.string(),
|
|
202
209
|
});
|
|
@@ -222,7 +229,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
|
|
|
222
229
|
});
|
|
223
230
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
|
|
224
231
|
otpSessionToken: zod_1.z.string(),
|
|
225
|
-
otpContactType: zod_1.z.
|
|
232
|
+
otpContactType: zod_1.z.enum(['Unset', 'Email']),
|
|
226
233
|
});
|
|
227
234
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = zod_1.z.object({
|
|
228
235
|
translationKey: zod_1.z.string(),
|
|
@@ -237,7 +244,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = zod_1.z.obje
|
|
|
237
244
|
const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
|
|
238
245
|
username: zod_1.z.string(),
|
|
239
246
|
password: zod_1.z.string(),
|
|
240
|
-
gender: zod_1.z.
|
|
247
|
+
gender: zod_1.z.enum(['Unknown', 'Male', 'Female']),
|
|
241
248
|
birthday: zod_1.z.string().datetime({ offset: true }),
|
|
242
249
|
displayName: zod_1.z.string(),
|
|
243
250
|
isTosAgreementBoxChecked: zod_1.z.boolean(),
|
|
@@ -282,7 +289,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
|
|
|
282
289
|
password: zod_1.z.string(),
|
|
283
290
|
});
|
|
284
291
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
|
|
285
|
-
targetType: zod_1.z.
|
|
292
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
286
293
|
target: zod_1.z.string(),
|
|
287
294
|
});
|
|
288
295
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
|