rozod 6.8.0 → 6.9.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 +92 -95
- package/lib/endpoints/accountsettingsv1.d.ts +88 -110
- package/lib/endpoints/adconfigurationv2.d.ts +108 -215
- package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
- package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
- package/lib/endpoints/authv1.d.ts +479 -521
- package/lib/endpoints/authv2.d.ts +209 -221
- package/lib/endpoints/authv3.d.ts +32 -35
- package/lib/endpoints/avatarv1.d.ts +112 -117
- package/lib/endpoints/avatarv2.d.ts +71 -76
- package/lib/endpoints/avatarv3.d.ts +27 -33
- package/lib/endpoints/badgesv1.d.ts +92 -99
- package/lib/endpoints/catalogv1.d.ts +207 -233
- package/lib/endpoints/catalogv2.d.ts +81 -119
- package/lib/endpoints/clientsettingsv1.d.ts +33 -35
- package/lib/endpoints/clientsettingsv2.d.ts +62 -68
- package/lib/endpoints/contactsv1.d.ts +18 -20
- package/lib/endpoints/developv1.d.ts +230 -293
- package/lib/endpoints/developv2.d.ts +84 -137
- package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
- package/lib/endpoints/economyv1.d.ts +6 -6
- package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
- package/lib/endpoints/followingsv1.d.ts +33 -34
- package/lib/endpoints/followingsv2.d.ts +9 -9
- package/lib/endpoints/friendsv1.d.ts +200 -237
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamesv1.d.ts +181 -143
- package/lib/endpoints/gamesv2.d.ts +161 -169
- package/lib/endpoints/groupsv1.d.ts +938 -988
- package/lib/endpoints/groupsv2.d.ts +259 -278
- package/lib/endpoints/inventoryv1.d.ts +91 -122
- package/lib/endpoints/inventoryv2.d.ts +163 -180
- package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
- package/lib/endpoints/localev1.d.ts +47 -48
- package/lib/endpoints/localizationtablesv1.d.ts +315 -353
- package/lib/endpoints/matchmakingv1.d.ts +184 -190
- package/lib/endpoints/notificationsv2.d.ts +144 -158
- package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
- package/lib/endpoints/presencev1.d.ts +7 -12
- package/lib/endpoints/privatemessagesv1.d.ts +56 -64
- package/lib/endpoints/publishv1.d.ts +32 -32
- package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
- package/lib/endpoints/thumbnailsv1.d.ts +325 -326
- package/lib/endpoints/thumbnailsv1.js +24 -24
- package/lib/endpoints/tradesv1.d.ts +92 -104
- package/lib/endpoints/tradesv2.d.ts +81 -84
- package/lib/endpoints/translationrolesv1.d.ts +46 -51
- package/lib/endpoints/twostepverificationv1.d.ts +233 -237
- package/lib/endpoints/usersv1.d.ts +110 -114
- package/lib/index.d.ts +56 -1
- package/lib/index.js +159 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_Authentication_Api_Models_AuthMetaDataResponse = z.object({
|
|
5
5
|
cookieLawNoticeTimeout: z.number().int(),
|
|
@@ -25,18 +25,17 @@ const Roblox_Web_Responses_Users_LegacyUserResponse = z.object({
|
|
|
25
25
|
username: z.string(),
|
|
26
26
|
displayName: z.string(),
|
|
27
27
|
});
|
|
28
|
-
const Roblox_Authentication_Api_Models_PasswordResetMetadataResponse = z.object(
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
32
|
-
z.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
28
|
+
const Roblox_Authentication_Api_Models_PasswordResetMetadataResponse = z.object({
|
|
29
|
+
users: z.array(Roblox_Web_Responses_Users_LegacyUserResponse),
|
|
30
|
+
});
|
|
31
|
+
const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel = z.object({
|
|
32
|
+
clientPublicKey: z.string(),
|
|
33
|
+
clientEpochTimestamp: z.number().int(),
|
|
34
|
+
saiSignature: z.string(),
|
|
35
|
+
serverNonce: z.string(),
|
|
36
|
+
});
|
|
38
37
|
const Roblox_Authentication_Api_Models_PasswordResetModel = z.object({
|
|
39
|
-
targetType: z.enum([
|
|
38
|
+
targetType: z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
40
39
|
ticket: z.string(),
|
|
41
40
|
userId: z.number().int(),
|
|
42
41
|
password: z.string(),
|
|
@@ -44,8 +43,7 @@ const Roblox_Authentication_Api_Models_PasswordResetModel = z.object({
|
|
|
44
43
|
twoStepVerificationChallengeId: z.string(),
|
|
45
44
|
twoStepVerificationToken: z.string(),
|
|
46
45
|
accountBlob: z.string(),
|
|
47
|
-
secureAuthenticationIntent:
|
|
48
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
46
|
+
secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
49
47
|
newEmail: z.string(),
|
|
50
48
|
passkeySessionId: z.string(),
|
|
51
49
|
passkeyRegistrationResponse: z.string(),
|
|
@@ -55,24 +53,22 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
|
|
|
55
53
|
name: z.string(),
|
|
56
54
|
displayName: z.string(),
|
|
57
55
|
});
|
|
58
|
-
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse =
|
|
59
|
-
z.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
56
|
+
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = z.object({
|
|
57
|
+
mediaType: z.enum([
|
|
58
|
+
'Email',
|
|
59
|
+
'SMS',
|
|
60
|
+
'Authenticator',
|
|
61
|
+
'RecoveryCode',
|
|
62
|
+
'SecurityKey',
|
|
63
|
+
'CrossDevice',
|
|
64
|
+
'Password',
|
|
65
|
+
'Passkey',
|
|
66
|
+
]),
|
|
67
|
+
ticket: z.string(),
|
|
68
|
+
});
|
|
72
69
|
const Roblox_Authentication_Api_Models_LoginResponse = z.object({
|
|
73
70
|
user: Roblox_Web_Responses_Users_SkinnyUserResponse,
|
|
74
|
-
twoStepVerificationData:
|
|
75
|
-
Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
|
|
71
|
+
twoStepVerificationData: Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse,
|
|
76
72
|
identityVerificationLoginTicket: z.string(),
|
|
77
73
|
isBanned: z.boolean(),
|
|
78
74
|
accountBlob: z.string(),
|
|
@@ -85,12 +81,12 @@ const Roblox_Authentication_Api_Models_LoginResponse = z.object({
|
|
|
85
81
|
});
|
|
86
82
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
|
|
87
83
|
code: z.enum([
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
'ValidPassword',
|
|
85
|
+
'WeakPasswordError',
|
|
86
|
+
'PasswordLengthError',
|
|
87
|
+
'PasswordSameAsUsernameError',
|
|
88
|
+
'ForbiddenPasswordError',
|
|
89
|
+
'DumbStringsError',
|
|
94
90
|
]),
|
|
95
91
|
message: z.string(),
|
|
96
92
|
});
|
|
@@ -132,16 +128,16 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
|
|
|
132
128
|
});
|
|
133
129
|
const Roblox_Authentication_Api_Models_UsernameValidationResponse = z.object({
|
|
134
130
|
code: z.enum([
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
131
|
+
'ValidUsername',
|
|
132
|
+
'AlreadyInUseError',
|
|
133
|
+
'ModerationError',
|
|
134
|
+
'InvalidLengthError',
|
|
135
|
+
'StartsOrEndsWithUnderscoreError',
|
|
136
|
+
'TooManyUnderscoresError',
|
|
137
|
+
'ContainsSpacesError',
|
|
138
|
+
'InvalidCharactersError',
|
|
139
|
+
'ContainsPiiError',
|
|
140
|
+
'ContainsReservedUsernameError',
|
|
145
141
|
]),
|
|
146
142
|
message: z.string(),
|
|
147
143
|
});
|
|
@@ -150,43 +146,44 @@ const Roblox_Authentication_Api_Models_UsernameValidationRequest = z.object({
|
|
|
150
146
|
birthday: z.string().datetime({ offset: true }),
|
|
151
147
|
context: z.union([z.literal(0), z.literal(1), z.literal(2)]),
|
|
152
148
|
});
|
|
153
|
-
const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest =
|
|
154
|
-
|
|
149
|
+
const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = z.object({
|
|
150
|
+
loginTicket: z.string(),
|
|
151
|
+
resultToken: z.string(),
|
|
152
|
+
});
|
|
155
153
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
156
154
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
|
|
157
155
|
LinkingPlatform: z.enum([
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
'Invalid',
|
|
157
|
+
'Xbox',
|
|
158
|
+
'Qq',
|
|
159
|
+
'WeChat',
|
|
160
|
+
'Facebook',
|
|
161
|
+
'RobloxDeveloper',
|
|
162
|
+
'RobloxGroupCreator',
|
|
163
|
+
'Playstation',
|
|
164
|
+
'ExternalProvider',
|
|
165
|
+
'Example',
|
|
168
166
|
]),
|
|
169
167
|
});
|
|
170
168
|
const Roblox_Authentication_Api_Models_LoginRequest = z.object({
|
|
171
169
|
ctype: z.enum([
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
170
|
+
'Email',
|
|
171
|
+
'Username',
|
|
172
|
+
'PhoneNumber',
|
|
173
|
+
'EmailOtpSessionToken',
|
|
174
|
+
'AuthToken',
|
|
175
|
+
'Passkey',
|
|
176
|
+
'AsUser',
|
|
177
|
+
'TwoStepVerification',
|
|
178
|
+
'XboxLive',
|
|
179
|
+
'PlatformLive',
|
|
182
180
|
]),
|
|
183
181
|
cvalue: z.string(),
|
|
184
182
|
password: z.string(),
|
|
185
183
|
userId: z.number().int(),
|
|
186
184
|
securityQuestionSessionId: z.string(),
|
|
187
185
|
securityQuestionRedemptionToken: z.string(),
|
|
188
|
-
secureAuthenticationIntent:
|
|
189
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
186
|
+
secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
190
187
|
accountBlob: z.string(),
|
|
191
188
|
accountLinkParameters: Roblox_Authentication_Api_Models_AccountLinkParameters,
|
|
192
189
|
captchaId: z.string(),
|
|
@@ -194,13 +191,11 @@ const Roblox_Authentication_Api_Models_LoginRequest = z.object({
|
|
|
194
191
|
captchaProvider: z.string(),
|
|
195
192
|
challengeId: z.string(),
|
|
196
193
|
});
|
|
197
|
-
const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthenticateRequest =
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
201
|
-
});
|
|
194
|
+
const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthenticateRequest = z.object({
|
|
195
|
+
SecureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
196
|
+
});
|
|
202
197
|
const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
|
|
203
|
-
targetType: z.enum([
|
|
198
|
+
targetType: z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
204
199
|
target: z.string(),
|
|
205
200
|
captchaId: z.string(),
|
|
206
201
|
captchaToken: z.string(),
|
|
@@ -209,24 +204,20 @@ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
|
|
|
209
204
|
});
|
|
210
205
|
const Roblox_Authentication_Api_Models_SendResetPasswordResponse = z.object({
|
|
211
206
|
nonce: z.string(),
|
|
212
|
-
transmissionType: z.enum([
|
|
213
|
-
});
|
|
214
|
-
const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest =
|
|
215
|
-
z.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
});
|
|
207
|
+
transmissionType: z.enum(['Sms', 'Email']),
|
|
208
|
+
});
|
|
209
|
+
const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest = z.object({
|
|
210
|
+
targetType: z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
211
|
+
nonce: z.string(),
|
|
212
|
+
code: z.string(),
|
|
213
|
+
});
|
|
220
214
|
const Roblox_Authentication_Api_Models_ForgotPasswordUserResponse = z.object({
|
|
221
215
|
user: Roblox_Web_Responses_Users_LegacyUserResponse,
|
|
222
216
|
ticket: z.string(),
|
|
223
217
|
});
|
|
224
|
-
const Roblox_Authentication_Api_Models_PasswordResetVerificationResponse =
|
|
225
|
-
z.
|
|
226
|
-
|
|
227
|
-
Roblox_Authentication_Api_Models_ForgotPasswordUserResponse
|
|
228
|
-
),
|
|
229
|
-
});
|
|
218
|
+
const Roblox_Authentication_Api_Models_PasswordResetVerificationResponse = z.object({
|
|
219
|
+
userTickets: z.array(Roblox_Authentication_Api_Models_ForgotPasswordUserResponse),
|
|
220
|
+
});
|
|
230
221
|
const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
|
|
231
222
|
acquisitionTime: z.string().datetime({ offset: true }),
|
|
232
223
|
acquisitionReferrer: z.string(),
|
|
@@ -242,7 +233,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
|
|
|
242
233
|
});
|
|
243
234
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = z.object({
|
|
244
235
|
otpSessionToken: z.string(),
|
|
245
|
-
otpContactType: z.enum([
|
|
236
|
+
otpContactType: z.enum(['Unset', 'Email']),
|
|
246
237
|
});
|
|
247
238
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = z.object({
|
|
248
239
|
translationKey: z.string(),
|
|
@@ -257,7 +248,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = z.object({
|
|
|
257
248
|
const Roblox_Authentication_Api_Models_SignupRequest = z.object({
|
|
258
249
|
username: z.string(),
|
|
259
250
|
password: z.string(),
|
|
260
|
-
gender: z.enum([
|
|
251
|
+
gender: z.enum(['Unknown', 'Male', 'Female']),
|
|
261
252
|
birthday: z.string().datetime({ offset: true }),
|
|
262
253
|
displayName: z.string(),
|
|
263
254
|
isTosAgreementBoxChecked: z.boolean(),
|
|
@@ -273,16 +264,14 @@ const Roblox_Authentication_Api_Models_SignupRequest = z.object({
|
|
|
273
264
|
referralData: Roblox_Authentication_Api_Models_ReferralDataModel,
|
|
274
265
|
agreementIds: z.array(z.string()),
|
|
275
266
|
identityVerificationResultToken: z.string(),
|
|
276
|
-
secureAuthenticationIntent:
|
|
277
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
267
|
+
secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
278
268
|
otpSession: Roblox_Authentication_Api_Models_Request_OtpSessionModel,
|
|
279
269
|
dataToken: z.string(),
|
|
280
270
|
accountBlob: z.string(),
|
|
281
271
|
passkeySessionId: z.string(),
|
|
282
272
|
passkeyRegistrationResponse: z.string(),
|
|
283
273
|
accountLinkParameters: Roblox_Authentication_Api_Models_AccountLinkParameters,
|
|
284
|
-
auditSystemContent:
|
|
285
|
-
Roblox_Authentication_Api_Models_Request_AuditSystemContent,
|
|
274
|
+
auditSystemContent: Roblox_Authentication_Api_Models_Request_AuditSystemContent,
|
|
286
275
|
captchaId: z.string(),
|
|
287
276
|
captchaToken: z.string(),
|
|
288
277
|
captchaProvider: z.string(),
|
|
@@ -297,15 +286,14 @@ const Roblox_Authentication_Api_Models_SignupResponse = z.object({
|
|
|
297
286
|
const Roblox_Authentication_Api_Models_PasswordChangeModel = z.object({
|
|
298
287
|
currentPassword: z.string(),
|
|
299
288
|
newPassword: z.string(),
|
|
300
|
-
secureAuthenticationIntent:
|
|
301
|
-
Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
289
|
+
secureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
|
|
302
290
|
});
|
|
303
291
|
const Roblox_Authentication_Api_Models_UsernameChangeRequest = z.object({
|
|
304
292
|
username: z.string(),
|
|
305
293
|
password: z.string(),
|
|
306
294
|
});
|
|
307
295
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = z.object({
|
|
308
|
-
targetType: z.enum([
|
|
296
|
+
targetType: z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
|
|
309
297
|
target: z.string(),
|
|
310
298
|
});
|
|
311
299
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({
|
|
@@ -317,10 +305,10 @@ const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({
|
|
|
317
305
|
* @summary Gets Auth meta data
|
|
318
306
|
*/
|
|
319
307
|
export const getAuthMetadata = endpoint({
|
|
320
|
-
method:
|
|
321
|
-
path:
|
|
322
|
-
baseUrl:
|
|
323
|
-
requestFormat:
|
|
308
|
+
method: 'GET',
|
|
309
|
+
path: '/v2/auth/metadata',
|
|
310
|
+
baseUrl: 'https://auth.roblox.com',
|
|
311
|
+
requestFormat: 'json',
|
|
324
312
|
response: z.object({ cookieLawNoticeTimeout: z.number().int() }),
|
|
325
313
|
errors: [],
|
|
326
314
|
});
|
|
@@ -330,10 +318,10 @@ export const getAuthMetadata = endpoint({
|
|
|
330
318
|
* @param body
|
|
331
319
|
*/
|
|
332
320
|
export const postIdentityVerificationLogin = endpoint({
|
|
333
|
-
method:
|
|
334
|
-
path:
|
|
335
|
-
baseUrl:
|
|
336
|
-
requestFormat:
|
|
321
|
+
method: 'POST',
|
|
322
|
+
path: '/v2/identity-verification/login',
|
|
323
|
+
baseUrl: 'https://auth.roblox.com',
|
|
324
|
+
requestFormat: 'json',
|
|
337
325
|
serializationMethod: {
|
|
338
326
|
body: {},
|
|
339
327
|
},
|
|
@@ -357,10 +345,10 @@ export const postIdentityVerificationLogin = endpoint({
|
|
|
357
345
|
* @param body Roblox.Authentication.Api.Models.LoginRequest.
|
|
358
346
|
*/
|
|
359
347
|
export const postLogin = endpoint({
|
|
360
|
-
method:
|
|
361
|
-
path:
|
|
362
|
-
baseUrl:
|
|
363
|
-
requestFormat:
|
|
348
|
+
method: 'POST',
|
|
349
|
+
path: '/v2/login',
|
|
350
|
+
baseUrl: 'https://auth.roblox.com',
|
|
351
|
+
requestFormat: 'json',
|
|
364
352
|
serializationMethod: {
|
|
365
353
|
body: {},
|
|
366
354
|
},
|
|
@@ -406,10 +394,10 @@ authentication on PCGDK
|
|
|
406
394
|
* @param body Roblox.Authentication.Api.Models.LoginRequest
|
|
407
395
|
*/
|
|
408
396
|
export const postLoginLinked = endpoint({
|
|
409
|
-
method:
|
|
410
|
-
path:
|
|
411
|
-
baseUrl:
|
|
412
|
-
requestFormat:
|
|
397
|
+
method: 'POST',
|
|
398
|
+
path: '/v2/login/linked',
|
|
399
|
+
baseUrl: 'https://auth.roblox.com',
|
|
400
|
+
requestFormat: 'json',
|
|
413
401
|
serializationMethod: {
|
|
414
402
|
body: {},
|
|
415
403
|
},
|
|
@@ -453,10 +441,10 @@ export const postLoginLinked = endpoint({
|
|
|
453
441
|
* @summary Destroys the current authentication session.
|
|
454
442
|
*/
|
|
455
443
|
export const postLogout = endpoint({
|
|
456
|
-
method:
|
|
457
|
-
path:
|
|
458
|
-
baseUrl:
|
|
459
|
-
requestFormat:
|
|
444
|
+
method: 'POST',
|
|
445
|
+
path: '/v2/logout',
|
|
446
|
+
baseUrl: 'https://auth.roblox.com',
|
|
447
|
+
requestFormat: 'json',
|
|
460
448
|
response: z.object({}),
|
|
461
449
|
errors: [
|
|
462
450
|
{
|
|
@@ -475,10 +463,10 @@ export const postLogout = endpoint({
|
|
|
475
463
|
* @param body
|
|
476
464
|
*/
|
|
477
465
|
export const postLogoutfromallsessionsandreauthenticate = endpoint({
|
|
478
|
-
method:
|
|
479
|
-
path:
|
|
480
|
-
baseUrl:
|
|
481
|
-
requestFormat:
|
|
466
|
+
method: 'POST',
|
|
467
|
+
path: '/v2/logoutfromallsessionsandreauthenticate',
|
|
468
|
+
baseUrl: 'https://auth.roblox.com',
|
|
469
|
+
requestFormat: 'json',
|
|
482
470
|
serializationMethod: {
|
|
483
471
|
body: {},
|
|
484
472
|
},
|
|
@@ -501,10 +489,10 @@ export const postLogoutfromallsessionsandreauthenticate = endpoint({
|
|
|
501
489
|
* @summary Get the metadata
|
|
502
490
|
*/
|
|
503
491
|
export const getMetadata = endpoint({
|
|
504
|
-
method:
|
|
505
|
-
path:
|
|
506
|
-
baseUrl:
|
|
507
|
-
requestFormat:
|
|
492
|
+
method: 'GET',
|
|
493
|
+
path: '/v2/metadata',
|
|
494
|
+
baseUrl: 'https://auth.roblox.com',
|
|
495
|
+
requestFormat: 'json',
|
|
508
496
|
response: Roblox_Authentication_Api_Models_MetadataResponse,
|
|
509
497
|
errors: [],
|
|
510
498
|
});
|
|
@@ -513,10 +501,10 @@ export const getMetadata = endpoint({
|
|
|
513
501
|
* @summary Returns password status for current user, asynchronously.
|
|
514
502
|
*/
|
|
515
503
|
export const getPasswordsCurrentStatus = endpoint({
|
|
516
|
-
method:
|
|
517
|
-
path:
|
|
518
|
-
baseUrl:
|
|
519
|
-
requestFormat:
|
|
504
|
+
method: 'GET',
|
|
505
|
+
path: '/v2/passwords/current-status',
|
|
506
|
+
baseUrl: 'https://auth.roblox.com',
|
|
507
|
+
requestFormat: 'json',
|
|
520
508
|
response: z.object({ valid: z.boolean() }),
|
|
521
509
|
errors: [
|
|
522
510
|
{
|
|
@@ -532,17 +520,17 @@ export const getPasswordsCurrentStatus = endpoint({
|
|
|
532
520
|
* @param Ticket
|
|
533
521
|
*/
|
|
534
522
|
export const getPasswordsReset = endpoint({
|
|
535
|
-
method:
|
|
536
|
-
path:
|
|
537
|
-
baseUrl:
|
|
538
|
-
requestFormat:
|
|
523
|
+
method: 'GET',
|
|
524
|
+
path: '/v2/passwords/reset',
|
|
525
|
+
baseUrl: 'https://auth.roblox.com',
|
|
526
|
+
requestFormat: 'json',
|
|
539
527
|
serializationMethod: {
|
|
540
528
|
TargetType: {
|
|
541
|
-
style:
|
|
529
|
+
style: 'form',
|
|
542
530
|
explode: true,
|
|
543
531
|
},
|
|
544
532
|
Ticket: {
|
|
545
|
-
style:
|
|
533
|
+
style: 'form',
|
|
546
534
|
explode: true,
|
|
547
535
|
},
|
|
548
536
|
},
|
|
@@ -581,10 +569,10 @@ export const getPasswordsReset = endpoint({
|
|
|
581
569
|
* @description This will log the user out of all sessions and re-authenticate.
|
|
582
570
|
*/
|
|
583
571
|
export const postPasswordsReset = endpoint({
|
|
584
|
-
method:
|
|
585
|
-
path:
|
|
586
|
-
baseUrl:
|
|
587
|
-
requestFormat:
|
|
572
|
+
method: 'POST',
|
|
573
|
+
path: '/v2/passwords/reset',
|
|
574
|
+
baseUrl: 'https://auth.roblox.com',
|
|
575
|
+
requestFormat: 'json',
|
|
588
576
|
serializationMethod: {
|
|
589
577
|
body: {},
|
|
590
578
|
},
|
|
@@ -623,10 +611,10 @@ export const postPasswordsReset = endpoint({
|
|
|
623
611
|
* @description Phone target must be a csv with 3 values: "internationalPrefixNumber,nationalNumber,countryCode"
|
|
624
612
|
*/
|
|
625
613
|
export const postPasswordsResetSend = endpoint({
|
|
626
|
-
method:
|
|
627
|
-
path:
|
|
628
|
-
baseUrl:
|
|
629
|
-
requestFormat:
|
|
614
|
+
method: 'POST',
|
|
615
|
+
path: '/v2/passwords/reset/send',
|
|
616
|
+
baseUrl: 'https://auth.roblox.com',
|
|
617
|
+
requestFormat: 'json',
|
|
630
618
|
serializationMethod: {
|
|
631
619
|
body: {},
|
|
632
620
|
},
|
|
@@ -668,10 +656,10 @@ export const postPasswordsResetSend = endpoint({
|
|
|
668
656
|
* @param body The request model containing the nonce and the solution. Roblox.Authentication.Api.Models.PasswordResetVerificationRequest
|
|
669
657
|
*/
|
|
670
658
|
export const postPasswordsResetVerify = endpoint({
|
|
671
|
-
method:
|
|
672
|
-
path:
|
|
673
|
-
baseUrl:
|
|
674
|
-
requestFormat:
|
|
659
|
+
method: 'POST',
|
|
660
|
+
path: '/v2/passwords/reset/verify',
|
|
661
|
+
baseUrl: 'https://auth.roblox.com',
|
|
662
|
+
requestFormat: 'json',
|
|
675
663
|
serializationMethod: {
|
|
676
664
|
body: {},
|
|
677
665
|
},
|
|
@@ -707,17 +695,17 @@ export const postPasswordsResetVerify = endpoint({
|
|
|
707
695
|
* @param Password
|
|
708
696
|
*/
|
|
709
697
|
export const getPasswordsValidate = endpoint({
|
|
710
|
-
method:
|
|
711
|
-
path:
|
|
712
|
-
baseUrl:
|
|
713
|
-
requestFormat:
|
|
698
|
+
method: 'GET',
|
|
699
|
+
path: '/v2/passwords/validate',
|
|
700
|
+
baseUrl: 'https://auth.roblox.com',
|
|
701
|
+
requestFormat: 'json',
|
|
714
702
|
serializationMethod: {
|
|
715
703
|
Username: {
|
|
716
|
-
style:
|
|
704
|
+
style: 'form',
|
|
717
705
|
explode: true,
|
|
718
706
|
},
|
|
719
707
|
Password: {
|
|
720
|
-
style:
|
|
708
|
+
style: 'form',
|
|
721
709
|
explode: true,
|
|
722
710
|
},
|
|
723
711
|
},
|
|
@@ -739,10 +727,10 @@ export const getPasswordsValidate = endpoint({
|
|
|
739
727
|
* @param body The Roblox.Authentication.Api.Models.PasswordValidationModel.
|
|
740
728
|
*/
|
|
741
729
|
export const postPasswordsValidate = endpoint({
|
|
742
|
-
method:
|
|
743
|
-
path:
|
|
744
|
-
baseUrl:
|
|
745
|
-
requestFormat:
|
|
730
|
+
method: 'POST',
|
|
731
|
+
path: '/v2/passwords/validate',
|
|
732
|
+
baseUrl: 'https://auth.roblox.com',
|
|
733
|
+
requestFormat: 'json',
|
|
746
734
|
serializationMethod: {
|
|
747
735
|
body: {},
|
|
748
736
|
},
|
|
@@ -765,10 +753,10 @@ export const postPasswordsValidate = endpoint({
|
|
|
765
753
|
* @summary Get metadata for forgot endpoints
|
|
766
754
|
*/
|
|
767
755
|
export const getRecoveryMetadata = endpoint({
|
|
768
|
-
method:
|
|
769
|
-
path:
|
|
770
|
-
baseUrl:
|
|
771
|
-
requestFormat:
|
|
756
|
+
method: 'GET',
|
|
757
|
+
path: '/v2/recovery/metadata',
|
|
758
|
+
baseUrl: 'https://auth.roblox.com',
|
|
759
|
+
requestFormat: 'json',
|
|
772
760
|
response: Roblox_Authentication_Api_Models_RecoveryMetadataResponse,
|
|
773
761
|
errors: [
|
|
774
762
|
{
|
|
@@ -783,13 +771,13 @@ export const getRecoveryMetadata = endpoint({
|
|
|
783
771
|
* @param ticket Ticket Guid to revert account.
|
|
784
772
|
*/
|
|
785
773
|
export const getRevertAccount = endpoint({
|
|
786
|
-
method:
|
|
787
|
-
path:
|
|
788
|
-
baseUrl:
|
|
789
|
-
requestFormat:
|
|
774
|
+
method: 'GET',
|
|
775
|
+
path: '/v2/revert/account',
|
|
776
|
+
baseUrl: 'https://auth.roblox.com',
|
|
777
|
+
requestFormat: 'json',
|
|
790
778
|
serializationMethod: {
|
|
791
779
|
ticket: {
|
|
792
|
-
style:
|
|
780
|
+
style: 'form',
|
|
793
781
|
explode: true,
|
|
794
782
|
},
|
|
795
783
|
},
|
|
@@ -818,10 +806,10 @@ export const getRevertAccount = endpoint({
|
|
|
818
806
|
* @param body The Roblox.Authentication.Api.Models.RevertAccountSubmitRequest containing the necessary information to revert account.
|
|
819
807
|
*/
|
|
820
808
|
export const postRevertAccount = endpoint({
|
|
821
|
-
method:
|
|
822
|
-
path:
|
|
823
|
-
baseUrl:
|
|
824
|
-
requestFormat:
|
|
809
|
+
method: 'POST',
|
|
810
|
+
path: '/v2/revert/account',
|
|
811
|
+
baseUrl: 'https://auth.roblox.com',
|
|
812
|
+
requestFormat: 'json',
|
|
825
813
|
serializationMethod: {
|
|
826
814
|
body: {},
|
|
827
815
|
},
|
|
@@ -854,10 +842,10 @@ export const postRevertAccount = endpoint({
|
|
|
854
842
|
This endpoint should be called before enrolling in EPP to ensure old revert links cannot be used.
|
|
855
843
|
*/
|
|
856
844
|
export const postRevertInvalidateTickets = endpoint({
|
|
857
|
-
method:
|
|
858
|
-
path:
|
|
859
|
-
baseUrl:
|
|
860
|
-
requestFormat:
|
|
845
|
+
method: 'POST',
|
|
846
|
+
path: '/v2/revert/invalidate-tickets',
|
|
847
|
+
baseUrl: 'https://auth.roblox.com',
|
|
848
|
+
requestFormat: 'json',
|
|
861
849
|
response: z.object({}),
|
|
862
850
|
errors: [
|
|
863
851
|
{
|
|
@@ -879,10 +867,10 @@ export const postRevertInvalidateTickets = endpoint({
|
|
|
879
867
|
* @summary Logs out user from the current session and create a new one.
|
|
880
868
|
*/
|
|
881
869
|
export const postSessionRefresh = endpoint({
|
|
882
|
-
method:
|
|
883
|
-
path:
|
|
884
|
-
baseUrl:
|
|
885
|
-
requestFormat:
|
|
870
|
+
method: 'POST',
|
|
871
|
+
path: '/v2/session/refresh',
|
|
872
|
+
baseUrl: 'https://auth.roblox.com',
|
|
873
|
+
requestFormat: 'json',
|
|
886
874
|
response: z.object({}),
|
|
887
875
|
errors: [
|
|
888
876
|
{
|
|
@@ -901,10 +889,10 @@ export const postSessionRefresh = endpoint({
|
|
|
901
889
|
* @param body Roblox.Authentication.Api.Models.SignupRequest
|
|
902
890
|
*/
|
|
903
891
|
export const postSignup = endpoint({
|
|
904
|
-
method:
|
|
905
|
-
path:
|
|
906
|
-
baseUrl:
|
|
907
|
-
requestFormat:
|
|
892
|
+
method: 'POST',
|
|
893
|
+
path: '/v2/signup',
|
|
894
|
+
baseUrl: 'https://auth.roblox.com',
|
|
895
|
+
requestFormat: 'json',
|
|
908
896
|
serializationMethod: {
|
|
909
897
|
body: {},
|
|
910
898
|
},
|
|
@@ -957,10 +945,10 @@ authentication on PCGDK
|
|
|
957
945
|
* @param body Roblox.Authentication.Api.Models.SignupRequest
|
|
958
946
|
*/
|
|
959
947
|
export const postSignupLinked = endpoint({
|
|
960
|
-
method:
|
|
961
|
-
path:
|
|
962
|
-
baseUrl:
|
|
963
|
-
requestFormat:
|
|
948
|
+
method: 'POST',
|
|
949
|
+
path: '/v2/signup/linked',
|
|
950
|
+
baseUrl: 'https://auth.roblox.com',
|
|
951
|
+
requestFormat: 'json',
|
|
964
952
|
serializationMethod: {
|
|
965
953
|
body: {},
|
|
966
954
|
},
|
|
@@ -1009,10 +997,10 @@ export const postSignupLinked = endpoint({
|
|
|
1009
997
|
* @description The current password is needed for verification that the password can be changed.
|
|
1010
998
|
*/
|
|
1011
999
|
export const postUserPasswordsChange = endpoint({
|
|
1012
|
-
method:
|
|
1013
|
-
path:
|
|
1014
|
-
baseUrl:
|
|
1015
|
-
requestFormat:
|
|
1000
|
+
method: 'POST',
|
|
1001
|
+
path: '/v2/user/passwords/change',
|
|
1002
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1003
|
+
requestFormat: 'json',
|
|
1016
1004
|
serializationMethod: {
|
|
1017
1005
|
body: {},
|
|
1018
1006
|
},
|
|
@@ -1047,10 +1035,10 @@ export const postUserPasswordsChange = endpoint({
|
|
|
1047
1035
|
* @param body The Roblox.Authentication.Api.Models.UsernameChangeRequest
|
|
1048
1036
|
*/
|
|
1049
1037
|
export const postUsername = endpoint({
|
|
1050
|
-
method:
|
|
1051
|
-
path:
|
|
1052
|
-
baseUrl:
|
|
1053
|
-
requestFormat:
|
|
1038
|
+
method: 'POST',
|
|
1039
|
+
path: '/v2/username',
|
|
1040
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1041
|
+
requestFormat: 'json',
|
|
1054
1042
|
serializationMethod: {
|
|
1055
1043
|
body: {},
|
|
1056
1044
|
},
|
|
@@ -1099,10 +1087,10 @@ export const postUsername = endpoint({
|
|
|
1099
1087
|
* @summary Get the current price for a username change
|
|
1100
1088
|
*/
|
|
1101
1089
|
export const getUsernameChangePrice = endpoint({
|
|
1102
|
-
method:
|
|
1103
|
-
path:
|
|
1104
|
-
baseUrl:
|
|
1105
|
-
requestFormat:
|
|
1090
|
+
method: 'GET',
|
|
1091
|
+
path: '/v2/username/change/price',
|
|
1092
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1093
|
+
requestFormat: 'json',
|
|
1106
1094
|
response: Roblox_Authentication_Api_Models_UsernameChangePriceResponse,
|
|
1107
1095
|
errors: [
|
|
1108
1096
|
{
|
|
@@ -1118,13 +1106,13 @@ export const getUsernameChangePrice = endpoint({
|
|
|
1118
1106
|
* @description This endpoint can be expanded in the future to include other query parameters such as "startsWith"
|
|
1119
1107
|
*/
|
|
1120
1108
|
export const getUsernames = endpoint({
|
|
1121
|
-
method:
|
|
1122
|
-
path:
|
|
1123
|
-
baseUrl:
|
|
1124
|
-
requestFormat:
|
|
1109
|
+
method: 'GET',
|
|
1110
|
+
path: '/v2/usernames',
|
|
1111
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1112
|
+
requestFormat: 'json',
|
|
1125
1113
|
serializationMethod: {
|
|
1126
1114
|
username: {
|
|
1127
|
-
style:
|
|
1115
|
+
style: 'form',
|
|
1128
1116
|
explode: true,
|
|
1129
1117
|
},
|
|
1130
1118
|
},
|
|
@@ -1140,10 +1128,10 @@ export const getUsernames = endpoint({
|
|
|
1140
1128
|
* @param body
|
|
1141
1129
|
*/
|
|
1142
1130
|
export const postUsernamesRecover = endpoint({
|
|
1143
|
-
method:
|
|
1144
|
-
path:
|
|
1145
|
-
baseUrl:
|
|
1146
|
-
requestFormat:
|
|
1131
|
+
method: 'POST',
|
|
1132
|
+
path: '/v2/usernames/recover',
|
|
1133
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1134
|
+
requestFormat: 'json',
|
|
1147
1135
|
serializationMethod: {
|
|
1148
1136
|
body: {},
|
|
1149
1137
|
},
|
|
@@ -1176,21 +1164,21 @@ export const postUsernamesRecover = endpoint({
|
|
|
1176
1164
|
* @param Context
|
|
1177
1165
|
*/
|
|
1178
1166
|
export const getUsernamesValidate = endpoint({
|
|
1179
|
-
method:
|
|
1180
|
-
path:
|
|
1181
|
-
baseUrl:
|
|
1182
|
-
requestFormat:
|
|
1167
|
+
method: 'GET',
|
|
1168
|
+
path: '/v2/usernames/validate',
|
|
1169
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1170
|
+
requestFormat: 'json',
|
|
1183
1171
|
serializationMethod: {
|
|
1184
1172
|
Username: {
|
|
1185
|
-
style:
|
|
1173
|
+
style: 'form',
|
|
1186
1174
|
explode: true,
|
|
1187
1175
|
},
|
|
1188
1176
|
Birthday: {
|
|
1189
|
-
style:
|
|
1177
|
+
style: 'form',
|
|
1190
1178
|
explode: true,
|
|
1191
1179
|
},
|
|
1192
1180
|
Context: {
|
|
1193
|
-
style:
|
|
1181
|
+
style: 'form',
|
|
1194
1182
|
explode: true,
|
|
1195
1183
|
},
|
|
1196
1184
|
},
|
|
@@ -1214,10 +1202,10 @@ export const getUsernamesValidate = endpoint({
|
|
|
1214
1202
|
* @param body The Roblox.Authentication.Api.Models.UsernameValidationRequest.
|
|
1215
1203
|
*/
|
|
1216
1204
|
export const postUsernamesValidate = endpoint({
|
|
1217
|
-
method:
|
|
1218
|
-
path:
|
|
1219
|
-
baseUrl:
|
|
1220
|
-
requestFormat:
|
|
1205
|
+
method: 'POST',
|
|
1206
|
+
path: '/v2/usernames/validate',
|
|
1207
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1208
|
+
requestFormat: 'json',
|
|
1221
1209
|
serializationMethod: {
|
|
1222
1210
|
body: {},
|
|
1223
1211
|
},
|