rozod 6.3.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 +84 -84
- package/lib/endpoints/authv1.js +69 -62
- 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/badgesv1.d.ts +6 -2
- package/lib/endpoints/badgesv1.js +2 -2
- package/lib/endpoints/catalogv1.d.ts +37 -43
- package/lib/endpoints/catalogv1.js +37 -37
- package/lib/endpoints/catalogv2.d.ts +11 -11
- package/lib/endpoints/catalogv2.js +11 -11
- package/lib/endpoints/clientsettingsv2.d.ts +7 -7
- package/lib/endpoints/clientsettingsv2.js +8 -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 -23
- package/lib/endpoints/friendsv1.js +24 -23
- package/lib/endpoints/gamesv1.d.ts +27 -615
- package/lib/endpoints/gamesv1.js +28 -608
- package/lib/endpoints/gamesv2.d.ts +187 -260
- package/lib/endpoints/gamesv2.js +130 -190
- package/lib/endpoints/groupsv1.d.ts +26 -26
- package/lib/endpoints/groupsv1.js +28 -16
- 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/tradesv1.d.ts +10 -16
- package/lib/endpoints/tradesv1.js +10 -10
- package/lib/endpoints/twostepverificationv1.d.ts +59 -60
- package/lib/endpoints/twostepverificationv1.js +59 -60
- package/lib/endpoints/usersv1.d.ts +1 -1
- package/lib/endpoints/usersv1.js +1 -1
- package/lib/index.js +29 -3
- package/package.json +1 -1
package/lib/endpoints/authv1.js
CHANGED
|
@@ -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(),
|
|
@@ -367,7 +374,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
|
|
|
367
374
|
});
|
|
368
375
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
|
|
369
376
|
otpSessionToken: zod_1.z.string(),
|
|
370
|
-
otpContactType: zod_1.z.
|
|
377
|
+
otpContactType: zod_1.z.enum(['Unset', 'Email']),
|
|
371
378
|
});
|
|
372
379
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = zod_1.z.object({
|
|
373
380
|
translationKey: zod_1.z.string(),
|
|
@@ -382,7 +389,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = zod_1.z.obje
|
|
|
382
389
|
const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
|
|
383
390
|
username: zod_1.z.string(),
|
|
384
391
|
password: zod_1.z.string(),
|
|
385
|
-
gender: zod_1.z.
|
|
392
|
+
gender: zod_1.z.enum(['Unknown', 'Male', 'Female']),
|
|
386
393
|
birthday: zod_1.z.string().datetime({ offset: true }),
|
|
387
394
|
displayName: zod_1.z.string(),
|
|
388
395
|
isTosAgreementBoxChecked: zod_1.z.boolean(),
|
|
@@ -428,7 +435,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
|
|
|
428
435
|
password: zod_1.z.string(),
|
|
429
436
|
});
|
|
430
437
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
|
|
431
|
-
targetType: zod_1.z.
|
|
438
|
+
targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
432
439
|
target: zod_1.z.string(),
|
|
433
440
|
});
|
|
434
441
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
|
|
@@ -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({
|
|
@@ -15,17 +15,17 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
15
15
|
serverNonce: z.string(),
|
|
16
16
|
});
|
|
17
17
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
|
|
18
|
-
LinkingPlatform: z.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
LinkingPlatform: z.enum([
|
|
19
|
+
"Invalid",
|
|
20
|
+
"Xbox",
|
|
21
|
+
"Qq",
|
|
22
|
+
"WeChat",
|
|
23
|
+
"Facebook",
|
|
24
|
+
"RobloxDeveloper",
|
|
25
|
+
"RobloxGroupCreator",
|
|
26
|
+
"Playstation",
|
|
27
|
+
"ExternalProvider",
|
|
28
|
+
"Example",
|
|
29
29
|
]),
|
|
30
30
|
});
|
|
31
31
|
const Roblox_Authentication_Api_TwoStepVerificationLoginRequest = z.object({
|
package/lib/endpoints/authv3.js
CHANGED
|
@@ -16,17 +16,17 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
16
16
|
serverNonce: zod_1.z.string(),
|
|
17
17
|
});
|
|
18
18
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = zod_1.z.object({
|
|
19
|
-
LinkingPlatform: zod_1.z.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
LinkingPlatform: zod_1.z.enum([
|
|
20
|
+
'Invalid',
|
|
21
|
+
'Xbox',
|
|
22
|
+
'Qq',
|
|
23
|
+
'WeChat',
|
|
24
|
+
'Facebook',
|
|
25
|
+
'RobloxDeveloper',
|
|
26
|
+
'RobloxGroupCreator',
|
|
27
|
+
'Playstation',
|
|
28
|
+
'ExternalProvider',
|
|
29
|
+
'Example',
|
|
30
30
|
]),
|
|
31
31
|
});
|
|
32
32
|
const Roblox_Authentication_Api_TwoStepVerificationLoginRequest = zod_1.z.object({
|
|
@@ -45,13 +45,17 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Badges_Api_BadgeResponse_
|
|
|
45
45
|
const universeId_badges_body = z.object({
|
|
46
46
|
name: z.string(),
|
|
47
47
|
description: z.string(),
|
|
48
|
-
paymentSourceType: z.
|
|
48
|
+
paymentSourceType: z.enum(["User", "Group"]),
|
|
49
49
|
files: z.instanceof(File),
|
|
50
50
|
expectedCost: z.number().int(),
|
|
51
51
|
isActive: z.boolean(),
|
|
52
52
|
});
|
|
53
53
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Badges_BadgeAwarderType_ =
|
|
54
|
-
z.object({
|
|
54
|
+
z.object({
|
|
55
|
+
id: z.number().int(),
|
|
56
|
+
type: z.literal("Place"),
|
|
57
|
+
name: z.string(),
|
|
58
|
+
});
|
|
55
59
|
const Roblox_Web_Responses_Badges_BadgeResponseV2 = z.object({
|
|
56
60
|
id: z.number().int(),
|
|
57
61
|
name: z.string(),
|