rozod 6.7.0 → 6.8.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/LICENSE +1 -1
- package/README.md +75 -451
- package/lib/endpoints/accountinformationv1.d.ts +50 -87
- package/lib/endpoints/accountinformationv1.js +46 -90
- package/lib/endpoints/assetdeliveryv1.d.ts +39 -0
- package/lib/endpoints/assetdeliveryv1.js +39 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +27 -0
- package/lib/endpoints/assetdeliveryv2.js +27 -0
- package/lib/endpoints/authv1.d.ts +71 -3
- package/lib/endpoints/authv1.js +70 -4
- package/lib/endpoints/authv2.d.ts +22 -1
- package/lib/endpoints/authv2.js +23 -2
- package/lib/endpoints/avatarv1.d.ts +9 -6
- package/lib/endpoints/avatarv1.js +9 -6
- package/lib/endpoints/avatarv2.d.ts +11 -5
- package/lib/endpoints/avatarv2.js +11 -5
- package/lib/endpoints/avatarv3.d.ts +16 -7
- package/lib/endpoints/avatarv3.js +16 -7
- package/lib/endpoints/badgesv1.d.ts +4 -0
- package/lib/endpoints/badgesv1.js +4 -0
- package/lib/endpoints/catalogv1.d.ts +25 -3
- package/lib/endpoints/catalogv1.js +21 -3
- package/lib/endpoints/catalogv2.d.ts +294 -50
- package/lib/endpoints/catalogv2.js +256 -24
- package/lib/endpoints/clientsettingsv2.d.ts +6 -0
- package/lib/endpoints/clientsettingsv2.js +6 -0
- package/lib/endpoints/contactsv1.d.ts +18 -22
- package/lib/endpoints/contactsv1.js +14 -22
- package/lib/endpoints/developv1.d.ts +36 -1
- package/lib/endpoints/developv1.js +12 -3
- package/lib/endpoints/developv2.d.ts +32 -3
- package/lib/endpoints/developv2.js +16 -5
- package/lib/endpoints/friendsv1.d.ts +222 -314
- package/lib/endpoints/friendsv1.js +213 -313
- package/lib/endpoints/gameinternationalizationv1.d.ts +59 -0
- package/lib/endpoints/gameinternationalizationv1.js +57 -1
- package/lib/endpoints/gamesv1.d.ts +79 -0
- package/lib/endpoints/gamesv1.js +70 -97
- package/lib/endpoints/gamesv2.d.ts +12 -0
- package/lib/endpoints/gamesv2.js +10 -0
- package/lib/endpoints/groupsv1.d.ts +49 -4
- package/lib/endpoints/groupsv1.js +55 -7
- package/lib/endpoints/groupsv2.d.ts +2 -0
- package/lib/endpoints/groupsv2.js +2 -0
- package/lib/endpoints/inventoryv1.d.ts +3 -1
- package/lib/endpoints/inventoryv1.js +3 -1
- package/lib/endpoints/inventoryv2.d.ts +70 -0
- package/lib/endpoints/inventoryv2.js +68 -1
- package/lib/endpoints/localev1.d.ts +27 -0
- package/lib/endpoints/localev1.js +28 -1
- package/lib/endpoints/publishv1.d.ts +3 -6
- package/lib/endpoints/publishv1.js +3 -6
- package/lib/endpoints/thumbnailsv1.d.ts +44 -87
- package/lib/endpoints/thumbnailsv1.js +25 -0
- package/lib/index.d.ts +96 -3
- package/lib/index.js +114 -1
- package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
- package/lib/opencloud/v1/assets.d.ts +9 -9
- package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
- package/lib/opencloud/v1/datastores.d.ts +8 -8
- package/lib/opencloud/v1/developer-products.d.ts +4 -4
- package/lib/opencloud/v1/game-passes.d.ts +4 -4
- package/lib/opencloud/v1/messaging.d.ts +1 -1
- package/lib/opencloud/v1/open-eval.d.ts +2 -2
- package/lib/opencloud/v1/secrets-store.d.ts +5 -5
- package/lib/opencloud/v1/toolbox.d.ts +2 -2
- package/lib/opencloud/v1/universes.d.ts +1 -1
- package/lib/opencloud/v2/cloud.d.ts +197 -87
- package/lib/opencloud/v2/cloud.js +68 -15
- package/package.json +108 -108
|
@@ -38,6 +38,8 @@ const Roblox_Web_Assets_IAssetItemError = zod_1.z.object({
|
|
|
38
38
|
'NotApprovedForRequestor',
|
|
39
39
|
'NotApprovedByContentCompliance',
|
|
40
40
|
'AssetContentRepresentationGenerating',
|
|
41
|
+
'AssetArchived',
|
|
42
|
+
'AssetUsageNotAllowed',
|
|
41
43
|
]),
|
|
42
44
|
});
|
|
43
45
|
const Roblox_Web_Assets_AssetContentRepresentationSpecifier = zod_1.z.object({
|
|
@@ -76,6 +78,7 @@ const Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z.object({
|
|
|
76
78
|
'roblox-assetFormat': zod_1.z.string(),
|
|
77
79
|
assetResolutionMode: zod_1.z.string(),
|
|
78
80
|
accessContext: zod_1.z.string(),
|
|
81
|
+
usageContext: zod_1.z.number().int(),
|
|
79
82
|
contentRepresentationPriorityList: zod_1.z.string(),
|
|
80
83
|
doNotFallbackToBaselineRepresentation: zod_1.z.boolean(),
|
|
81
84
|
});
|
|
@@ -95,6 +98,7 @@ const Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z.object({
|
|
|
95
98
|
* @param serverplaceid
|
|
96
99
|
* @param expectedAssetType
|
|
97
100
|
* @param accessContext
|
|
101
|
+
* @param usageContext
|
|
98
102
|
*/
|
|
99
103
|
exports.getAliasAlias = (0, __1.endpoint)({
|
|
100
104
|
method: 'GET',
|
|
@@ -151,6 +155,10 @@ exports.getAliasAlias = (0, __1.endpoint)({
|
|
|
151
155
|
style: 'form',
|
|
152
156
|
explode: true,
|
|
153
157
|
},
|
|
158
|
+
usageContext: {
|
|
159
|
+
style: 'form',
|
|
160
|
+
explode: true,
|
|
161
|
+
},
|
|
154
162
|
},
|
|
155
163
|
parameters: {
|
|
156
164
|
alias: zod_1.z.string().regex(/^[0-9]+\/.+/),
|
|
@@ -167,6 +175,7 @@ exports.getAliasAlias = (0, __1.endpoint)({
|
|
|
167
175
|
serverplaceid: zod_1.z.number().int().optional(),
|
|
168
176
|
expectedAssetType: zod_1.z.string().optional(),
|
|
169
177
|
accessContext: zod_1.z.string().optional(),
|
|
178
|
+
usageContext: zod_1.z.number().int().optional(),
|
|
170
179
|
},
|
|
171
180
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
172
181
|
errors: [],
|
|
@@ -198,6 +207,7 @@ exports.getAliasAlias = (0, __1.endpoint)({
|
|
|
198
207
|
* @param doNotFallbackToBaselineRepresentation
|
|
199
208
|
* @param contentRepresentationPriorityList
|
|
200
209
|
* @param accessContext
|
|
210
|
+
* @param usageContext
|
|
201
211
|
*/
|
|
202
212
|
exports.getAsset = (0, __1.endpoint)({
|
|
203
213
|
method: 'GET',
|
|
@@ -299,6 +309,10 @@ exports.getAsset = (0, __1.endpoint)({
|
|
|
299
309
|
style: 'form',
|
|
300
310
|
explode: true,
|
|
301
311
|
},
|
|
312
|
+
usageContext: {
|
|
313
|
+
style: 'form',
|
|
314
|
+
explode: true,
|
|
315
|
+
},
|
|
302
316
|
},
|
|
303
317
|
parameters: {
|
|
304
318
|
'Accept-Encoding': zod_1.z.string(),
|
|
@@ -326,6 +340,7 @@ exports.getAsset = (0, __1.endpoint)({
|
|
|
326
340
|
doNotFallbackToBaselineRepresentation: zod_1.z.boolean().optional(),
|
|
327
341
|
contentRepresentationPriorityList: zod_1.z.string().optional(),
|
|
328
342
|
accessContext: zod_1.z.string().optional(),
|
|
343
|
+
usageContext: zod_1.z.number().int().optional(),
|
|
329
344
|
},
|
|
330
345
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
331
346
|
errors: [],
|
|
@@ -348,6 +363,7 @@ exports.getAsset = (0, __1.endpoint)({
|
|
|
348
363
|
* @param doNotFallbackToBaselineRepresentation
|
|
349
364
|
* @param contentRepresentationPriorityList
|
|
350
365
|
* @param accessContext
|
|
366
|
+
* @param usageContext
|
|
351
367
|
*/
|
|
352
368
|
exports.getAssetidAssetid = (0, __1.endpoint)({
|
|
353
369
|
method: 'GET',
|
|
@@ -412,6 +428,10 @@ exports.getAssetidAssetid = (0, __1.endpoint)({
|
|
|
412
428
|
style: 'form',
|
|
413
429
|
explode: true,
|
|
414
430
|
},
|
|
431
|
+
usageContext: {
|
|
432
|
+
style: 'form',
|
|
433
|
+
explode: true,
|
|
434
|
+
},
|
|
415
435
|
},
|
|
416
436
|
parameters: {
|
|
417
437
|
assetId: zod_1.z.number().int(),
|
|
@@ -430,6 +450,7 @@ exports.getAssetidAssetid = (0, __1.endpoint)({
|
|
|
430
450
|
doNotFallbackToBaselineRepresentation: zod_1.z.boolean().optional(),
|
|
431
451
|
contentRepresentationPriorityList: zod_1.z.string().optional(),
|
|
432
452
|
accessContext: zod_1.z.string().optional(),
|
|
453
|
+
usageContext: zod_1.z.number().int().optional(),
|
|
433
454
|
},
|
|
434
455
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
435
456
|
errors: [],
|
|
@@ -453,6 +474,7 @@ exports.getAssetidAssetid = (0, __1.endpoint)({
|
|
|
453
474
|
* @param doNotFallbackToBaselineRepresentation
|
|
454
475
|
* @param contentRepresentationPriorityList
|
|
455
476
|
* @param accessContext
|
|
477
|
+
* @param usageContext
|
|
456
478
|
*/
|
|
457
479
|
exports.getAssetidAssetidVersionVersionnumber = (0, __1.endpoint)({
|
|
458
480
|
method: 'GET',
|
|
@@ -520,6 +542,10 @@ exports.getAssetidAssetidVersionVersionnumber = (0, __1.endpoint)({
|
|
|
520
542
|
style: 'form',
|
|
521
543
|
explode: true,
|
|
522
544
|
},
|
|
545
|
+
usageContext: {
|
|
546
|
+
style: 'form',
|
|
547
|
+
explode: true,
|
|
548
|
+
},
|
|
523
549
|
},
|
|
524
550
|
parameters: {
|
|
525
551
|
assetId: zod_1.z.number().int(),
|
|
@@ -539,6 +565,7 @@ exports.getAssetidAssetidVersionVersionnumber = (0, __1.endpoint)({
|
|
|
539
565
|
doNotFallbackToBaselineRepresentation: zod_1.z.boolean().optional(),
|
|
540
566
|
contentRepresentationPriorityList: zod_1.z.string().optional(),
|
|
541
567
|
accessContext: zod_1.z.string().optional(),
|
|
568
|
+
usageContext: zod_1.z.number().int().optional(),
|
|
542
569
|
},
|
|
543
570
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
544
571
|
errors: [],
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { endpoint } from "..";
|
|
3
3
|
|
|
4
|
+
const Roblox_Authentication_Api_Models_AuthMethodsMetadataResponse = z.object({
|
|
5
|
+
isEligibleForALSignup: z.boolean(),
|
|
6
|
+
});
|
|
4
7
|
const Roblox_Authentication_Api_Models_AccountPinStatusResponse = z.object({
|
|
5
8
|
isEnabled: z.boolean(),
|
|
6
9
|
unlockedUntil: z.number(),
|
|
@@ -30,6 +33,8 @@ const Roblox_Authentication_Api_Models_MetadataResponse = z.object({
|
|
|
30
33
|
IsAltBrowserTracker: z.boolean(),
|
|
31
34
|
IsLoginRedirectPageEnabled: z.boolean(),
|
|
32
35
|
});
|
|
36
|
+
const Roblox_Authentication_Api_Models_Response_SilentUpgradeEligibilityResponse =
|
|
37
|
+
z.object({ suEligibility: z.boolean() });
|
|
33
38
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
|
|
34
39
|
code: z.enum([
|
|
35
40
|
"ValidPassword",
|
|
@@ -110,6 +115,10 @@ const Roblox_Authentication_Api_Models_ProviderInfoModel = z.object({
|
|
|
110
115
|
const Roblox_Authentication_Api_Models_SocialProvidersResponse = z.object({
|
|
111
116
|
providers: z.array(Roblox_Authentication_Api_Models_ProviderInfoModel),
|
|
112
117
|
});
|
|
118
|
+
const Roblox_Authentication_Api_Models_UsernameChangePriceResponse = z.object({
|
|
119
|
+
priceInRobux: z.number().int(),
|
|
120
|
+
basePriceInRobux: z.number().int(),
|
|
121
|
+
});
|
|
113
122
|
const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
|
|
114
123
|
usernames: z.array(z.string()),
|
|
115
124
|
});
|
|
@@ -340,14 +349,20 @@ const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistratio
|
|
|
340
349
|
passkeyRegistrationResponse: z.string(),
|
|
341
350
|
userId: z.number().int(),
|
|
342
351
|
isPostRecovery: z.boolean(),
|
|
352
|
+
source: z.string(),
|
|
343
353
|
});
|
|
344
354
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest =
|
|
345
|
-
z.object({
|
|
355
|
+
z.object({
|
|
356
|
+
sessionId: z.string(),
|
|
357
|
+
registrationResponse: z.string(),
|
|
358
|
+
source: z.string(),
|
|
359
|
+
});
|
|
346
360
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyRegistrationRequest =
|
|
347
361
|
z.object({
|
|
348
362
|
sessionId: z.string(),
|
|
349
363
|
credentialNickname: z.string(),
|
|
350
364
|
attestationResponse: z.string(),
|
|
365
|
+
source: z.string(),
|
|
351
366
|
});
|
|
352
367
|
const Roblox_Authentication_Api_Models_Request_ListPasskeysRequest = z.object({
|
|
353
368
|
all: z.boolean(),
|
|
@@ -487,6 +502,18 @@ const Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse = z.object(
|
|
|
487
502
|
{ Users: z.array(Roblox_Authentication_Api_Models_XboxUserModel) }
|
|
488
503
|
);
|
|
489
504
|
|
|
505
|
+
/**
|
|
506
|
+
* @api GET https://auth.roblox.com/v1/account-creation/metadata
|
|
507
|
+
* @summary Get metadata for adding auth methods.
|
|
508
|
+
*/
|
|
509
|
+
export const getAccountCreationMetadata = endpoint({
|
|
510
|
+
method: "GET",
|
|
511
|
+
path: "/v1/account-creation/metadata",
|
|
512
|
+
baseUrl: "https://auth.roblox.com",
|
|
513
|
+
requestFormat: "json",
|
|
514
|
+
response: z.object({ isEligibleForALSignup: z.boolean() }),
|
|
515
|
+
errors: [],
|
|
516
|
+
});
|
|
490
517
|
/**
|
|
491
518
|
* @api GET https://auth.roblox.com/v1/account/pin
|
|
492
519
|
* @summary Gets the account pin status.
|
|
@@ -905,7 +932,8 @@ export const postIdentityInitializeLogin = endpoint({
|
|
|
905
932
|
{
|
|
906
933
|
status: 403,
|
|
907
934
|
description: `0: Token Validation Failed
|
|
908
|
-
2: Invalid user identifier
|
|
935
|
+
2: Invalid user identifier.
|
|
936
|
+
4: No login methods available. Please use account recovery.`,
|
|
909
937
|
},
|
|
910
938
|
{
|
|
911
939
|
status: 500,
|
|
@@ -1383,6 +1411,29 @@ export const postPasskeyStartregistration = endpoint({
|
|
|
1383
1411
|
},
|
|
1384
1412
|
],
|
|
1385
1413
|
});
|
|
1414
|
+
/**
|
|
1415
|
+
* @api GET https://auth.roblox.com/v1/passkey/su-eligibility
|
|
1416
|
+
* @summary Checks whether the authenticated user is eligible for silent passkey upgrade.
|
|
1417
|
+
Route and response are intentionally obfuscated ("su-eligibility" = "silent-upgrade-eligibility").
|
|
1418
|
+
*/
|
|
1419
|
+
export const getPasskeySuEligibility = endpoint({
|
|
1420
|
+
method: "GET",
|
|
1421
|
+
path: "/v1/passkey/su-eligibility",
|
|
1422
|
+
baseUrl: "https://auth.roblox.com",
|
|
1423
|
+
requestFormat: "json",
|
|
1424
|
+
response: z.object({ suEligibility: z.boolean() }),
|
|
1425
|
+
errors: [
|
|
1426
|
+
{
|
|
1427
|
+
status: 401,
|
|
1428
|
+
description: `0: Authorization has been denied for this request.
|
|
1429
|
+
0: An unknown error occurred with the request.`,
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
status: 503,
|
|
1433
|
+
description: `2: Feature disabled.`,
|
|
1434
|
+
},
|
|
1435
|
+
],
|
|
1436
|
+
});
|
|
1386
1437
|
/**
|
|
1387
1438
|
* @api GET https://auth.roblox.com/v1/passwords/validate
|
|
1388
1439
|
* @summary Endpoint for checking if a password is valid.
|
|
@@ -1839,6 +1890,23 @@ export const postUsername = endpoint({
|
|
|
1839
1890
|
},
|
|
1840
1891
|
],
|
|
1841
1892
|
});
|
|
1893
|
+
/**
|
|
1894
|
+
* @api GET https://auth.roblox.com/v1/username/change/price
|
|
1895
|
+
* @summary Get the current price for a username change
|
|
1896
|
+
*/
|
|
1897
|
+
export const getUsernameChangePrice = endpoint({
|
|
1898
|
+
method: "GET",
|
|
1899
|
+
path: "/v1/username/change/price",
|
|
1900
|
+
baseUrl: "https://auth.roblox.com",
|
|
1901
|
+
requestFormat: "json",
|
|
1902
|
+
response: Roblox_Authentication_Api_Models_UsernameChangePriceResponse,
|
|
1903
|
+
errors: [
|
|
1904
|
+
{
|
|
1905
|
+
status: 401,
|
|
1906
|
+
description: `0: Authorization has been denied for this request.`,
|
|
1907
|
+
},
|
|
1908
|
+
],
|
|
1909
|
+
});
|
|
1842
1910
|
/**
|
|
1843
1911
|
* @api GET https://auth.roblox.com/v1/usernames
|
|
1844
1912
|
* @summary Gets a list of existing usernames on Roblox based on the query parameters
|
|
@@ -1857,7 +1925,7 @@ export const getUsernames = endpoint({
|
|
|
1857
1925
|
},
|
|
1858
1926
|
},
|
|
1859
1927
|
parameters: {
|
|
1860
|
-
username: z.string()
|
|
1928
|
+
username: z.string(),
|
|
1861
1929
|
},
|
|
1862
1930
|
response: Roblox_Authentication_Api_Models_UsernamesResponse,
|
|
1863
1931
|
errors: [],
|
package/lib/endpoints/authv1.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
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 = exports.postValidatorsRecommendedusernamefromdisplayname = void 0;
|
|
3
|
+
exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = exports.getUsernameChangePrice = 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.getPasskeySuEligibility = 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 = exports.getAccountCreationMetadata = void 0;
|
|
4
|
+
exports.postXboxTranslate = exports.getXboxGetLoginConsecutiveDays = exports.postXboxDisconnect = exports.getXboxConnection = exports.postValidatorsUsername = exports.getValidatorsUsername = exports.postValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsEmail = exports.postUsernamesValidate = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const __1 = require("..");
|
|
7
|
+
const Roblox_Authentication_Api_Models_AuthMethodsMetadataResponse = zod_1.z.object({
|
|
8
|
+
isEligibleForALSignup: zod_1.z.boolean(),
|
|
9
|
+
});
|
|
7
10
|
const Roblox_Authentication_Api_Models_AccountPinStatusResponse = zod_1.z.object({
|
|
8
11
|
isEnabled: zod_1.z.boolean(),
|
|
9
12
|
unlockedUntil: zod_1.z.number(),
|
|
@@ -32,6 +35,9 @@ const Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
|
|
|
32
35
|
IsAltBrowserTracker: zod_1.z.boolean(),
|
|
33
36
|
IsLoginRedirectPageEnabled: zod_1.z.boolean(),
|
|
34
37
|
});
|
|
38
|
+
const Roblox_Authentication_Api_Models_Response_SilentUpgradeEligibilityResponse = zod_1.z.object({
|
|
39
|
+
suEligibility: zod_1.z.boolean(),
|
|
40
|
+
});
|
|
35
41
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
|
|
36
42
|
code: zod_1.z.enum([
|
|
37
43
|
'ValidPassword',
|
|
@@ -110,6 +116,10 @@ const Roblox_Authentication_Api_Models_ProviderInfoModel = zod_1.z.object({
|
|
|
110
116
|
const Roblox_Authentication_Api_Models_SocialProvidersResponse = zod_1.z.object({
|
|
111
117
|
providers: zod_1.z.array(Roblox_Authentication_Api_Models_ProviderInfoModel),
|
|
112
118
|
});
|
|
119
|
+
const Roblox_Authentication_Api_Models_UsernameChangePriceResponse = zod_1.z.object({
|
|
120
|
+
priceInRobux: zod_1.z.number().int(),
|
|
121
|
+
basePriceInRobux: zod_1.z.number().int(),
|
|
122
|
+
});
|
|
113
123
|
const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
|
|
114
124
|
usernames: zod_1.z.array(zod_1.z.string()),
|
|
115
125
|
});
|
|
@@ -306,15 +316,18 @@ const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistratio
|
|
|
306
316
|
passkeyRegistrationResponse: zod_1.z.string(),
|
|
307
317
|
userId: zod_1.z.number().int(),
|
|
308
318
|
isPostRecovery: zod_1.z.boolean(),
|
|
319
|
+
source: zod_1.z.string(),
|
|
309
320
|
});
|
|
310
321
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest = zod_1.z.object({
|
|
311
322
|
sessionId: zod_1.z.string(),
|
|
312
323
|
registrationResponse: zod_1.z.string(),
|
|
324
|
+
source: zod_1.z.string(),
|
|
313
325
|
});
|
|
314
326
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyRegistrationRequest = zod_1.z.object({
|
|
315
327
|
sessionId: zod_1.z.string(),
|
|
316
328
|
credentialNickname: zod_1.z.string(),
|
|
317
329
|
attestationResponse: zod_1.z.string(),
|
|
330
|
+
source: zod_1.z.string(),
|
|
318
331
|
});
|
|
319
332
|
const Roblox_Authentication_Api_Models_Request_ListPasskeysRequest = zod_1.z.object({
|
|
320
333
|
all: zod_1.z.boolean(),
|
|
@@ -455,6 +468,18 @@ const Roblox_Authentication_Api_Models_XboxUserModel = zod_1.z.object({
|
|
|
455
468
|
const Roblox_Authentication_Api_Models_XboxCollectionsOfUserResponse = zod_1.z.object({
|
|
456
469
|
Users: zod_1.z.array(Roblox_Authentication_Api_Models_XboxUserModel),
|
|
457
470
|
});
|
|
471
|
+
/**
|
|
472
|
+
* @api GET https://auth.roblox.com/v1/account-creation/metadata
|
|
473
|
+
* @summary Get metadata for adding auth methods.
|
|
474
|
+
*/
|
|
475
|
+
exports.getAccountCreationMetadata = (0, __1.endpoint)({
|
|
476
|
+
method: 'GET',
|
|
477
|
+
path: '/v1/account-creation/metadata',
|
|
478
|
+
baseUrl: 'https://auth.roblox.com',
|
|
479
|
+
requestFormat: 'json',
|
|
480
|
+
response: zod_1.z.object({ isEligibleForALSignup: zod_1.z.boolean() }),
|
|
481
|
+
errors: [],
|
|
482
|
+
});
|
|
458
483
|
/**
|
|
459
484
|
* @api GET https://auth.roblox.com/v1/account/pin
|
|
460
485
|
* @summary Gets the account pin status.
|
|
@@ -872,7 +897,8 @@ exports.postIdentityInitializeLogin = (0, __1.endpoint)({
|
|
|
872
897
|
{
|
|
873
898
|
status: 403,
|
|
874
899
|
description: `0: Token Validation Failed
|
|
875
|
-
2: Invalid user identifier
|
|
900
|
+
2: Invalid user identifier.
|
|
901
|
+
4: No login methods available. Please use account recovery.`,
|
|
876
902
|
},
|
|
877
903
|
{
|
|
878
904
|
status: 500,
|
|
@@ -1345,6 +1371,29 @@ exports.postPasskeyStartregistration = (0, __1.endpoint)({
|
|
|
1345
1371
|
},
|
|
1346
1372
|
],
|
|
1347
1373
|
});
|
|
1374
|
+
/**
|
|
1375
|
+
* @api GET https://auth.roblox.com/v1/passkey/su-eligibility
|
|
1376
|
+
* @summary Checks whether the authenticated user is eligible for silent passkey upgrade.
|
|
1377
|
+
Route and response are intentionally obfuscated ("su-eligibility" = "silent-upgrade-eligibility").
|
|
1378
|
+
*/
|
|
1379
|
+
exports.getPasskeySuEligibility = (0, __1.endpoint)({
|
|
1380
|
+
method: 'GET',
|
|
1381
|
+
path: '/v1/passkey/su-eligibility',
|
|
1382
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1383
|
+
requestFormat: 'json',
|
|
1384
|
+
response: zod_1.z.object({ suEligibility: zod_1.z.boolean() }),
|
|
1385
|
+
errors: [
|
|
1386
|
+
{
|
|
1387
|
+
status: 401,
|
|
1388
|
+
description: `0: Authorization has been denied for this request.
|
|
1389
|
+
0: An unknown error occurred with the request.`,
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
status: 503,
|
|
1393
|
+
description: `2: Feature disabled.`,
|
|
1394
|
+
},
|
|
1395
|
+
],
|
|
1396
|
+
});
|
|
1348
1397
|
/**
|
|
1349
1398
|
* @api GET https://auth.roblox.com/v1/passwords/validate
|
|
1350
1399
|
* @summary Endpoint for checking if a password is valid.
|
|
@@ -1801,6 +1850,23 @@ exports.postUsername = (0, __1.endpoint)({
|
|
|
1801
1850
|
},
|
|
1802
1851
|
],
|
|
1803
1852
|
});
|
|
1853
|
+
/**
|
|
1854
|
+
* @api GET https://auth.roblox.com/v1/username/change/price
|
|
1855
|
+
* @summary Get the current price for a username change
|
|
1856
|
+
*/
|
|
1857
|
+
exports.getUsernameChangePrice = (0, __1.endpoint)({
|
|
1858
|
+
method: 'GET',
|
|
1859
|
+
path: '/v1/username/change/price',
|
|
1860
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1861
|
+
requestFormat: 'json',
|
|
1862
|
+
response: Roblox_Authentication_Api_Models_UsernameChangePriceResponse,
|
|
1863
|
+
errors: [
|
|
1864
|
+
{
|
|
1865
|
+
status: 401,
|
|
1866
|
+
description: `0: Authorization has been denied for this request.`,
|
|
1867
|
+
},
|
|
1868
|
+
],
|
|
1869
|
+
});
|
|
1804
1870
|
/**
|
|
1805
1871
|
* @api GET https://auth.roblox.com/v1/usernames
|
|
1806
1872
|
* @summary Gets a list of existing usernames on Roblox based on the query parameters
|
|
@@ -1819,7 +1885,7 @@ exports.getUsernames = (0, __1.endpoint)({
|
|
|
1819
1885
|
},
|
|
1820
1886
|
},
|
|
1821
1887
|
parameters: {
|
|
1822
|
-
username: zod_1.z.string()
|
|
1888
|
+
username: zod_1.z.string(),
|
|
1823
1889
|
},
|
|
1824
1890
|
response: Roblox_Authentication_Api_Models_UsernamesResponse,
|
|
1825
1891
|
errors: [],
|
|
@@ -123,6 +123,10 @@ const Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = z.object({
|
|
|
123
123
|
TwoStepVerificationChallengeId: z.string(),
|
|
124
124
|
TwoStepVerificationToken: z.string(),
|
|
125
125
|
});
|
|
126
|
+
const Roblox_Authentication_Api_Models_UsernameChangePriceResponse = z.object({
|
|
127
|
+
priceInRobux: z.number().int(),
|
|
128
|
+
basePriceInRobux: z.number().int(),
|
|
129
|
+
});
|
|
126
130
|
const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
|
|
127
131
|
usernames: z.array(z.string()),
|
|
128
132
|
});
|
|
@@ -1090,6 +1094,23 @@ export const postUsername = endpoint({
|
|
|
1090
1094
|
},
|
|
1091
1095
|
],
|
|
1092
1096
|
});
|
|
1097
|
+
/**
|
|
1098
|
+
* @api GET https://auth.roblox.com/v2/username/change/price
|
|
1099
|
+
* @summary Get the current price for a username change
|
|
1100
|
+
*/
|
|
1101
|
+
export const getUsernameChangePrice = endpoint({
|
|
1102
|
+
method: "GET",
|
|
1103
|
+
path: "/v2/username/change/price",
|
|
1104
|
+
baseUrl: "https://auth.roblox.com",
|
|
1105
|
+
requestFormat: "json",
|
|
1106
|
+
response: Roblox_Authentication_Api_Models_UsernameChangePriceResponse,
|
|
1107
|
+
errors: [
|
|
1108
|
+
{
|
|
1109
|
+
status: 401,
|
|
1110
|
+
description: `0: Authorization has been denied for this request.`,
|
|
1111
|
+
},
|
|
1112
|
+
],
|
|
1113
|
+
});
|
|
1093
1114
|
/**
|
|
1094
1115
|
* @api GET https://auth.roblox.com/v2/usernames
|
|
1095
1116
|
* @summary Gets a list of existing usernames on Roblox based on the query parameters
|
|
@@ -1108,7 +1129,7 @@ export const getUsernames = endpoint({
|
|
|
1108
1129
|
},
|
|
1109
1130
|
},
|
|
1110
1131
|
parameters: {
|
|
1111
|
-
username: z.string()
|
|
1132
|
+
username: z.string(),
|
|
1112
1133
|
},
|
|
1113
1134
|
response: Roblox_Authentication_Api_Models_UsernamesResponse,
|
|
1114
1135
|
errors: [],
|
package/lib/endpoints/authv2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = exports.postUsername = exports.postUserPasswordsChange = exports.postSignupLinked = exports.postSignup = exports.postSessionRefresh = exports.postRevertInvalidateTickets = exports.postRevertAccount = exports.getRevertAccount = exports.getRecoveryMetadata = exports.postPasswordsValidate = exports.getPasswordsValidate = exports.postPasswordsResetVerify = exports.postPasswordsResetSend = exports.postPasswordsReset = exports.getPasswordsReset = exports.getPasswordsCurrentStatus = exports.getMetadata = exports.postLogoutfromallsessionsandreauthenticate = exports.postLogout = exports.postLoginLinked = exports.postLogin = exports.postIdentityVerificationLogin = exports.getAuthMetadata = void 0;
|
|
3
|
+
exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = exports.getUsernameChangePrice = exports.postUsername = exports.postUserPasswordsChange = exports.postSignupLinked = exports.postSignup = exports.postSessionRefresh = exports.postRevertInvalidateTickets = exports.postRevertAccount = exports.getRevertAccount = exports.getRecoveryMetadata = exports.postPasswordsValidate = exports.getPasswordsValidate = exports.postPasswordsResetVerify = exports.postPasswordsResetSend = exports.postPasswordsReset = exports.getPasswordsReset = exports.getPasswordsCurrentStatus = exports.getMetadata = exports.postLogoutfromallsessionsandreauthenticate = exports.postLogout = exports.postLoginLinked = exports.postLogin = exports.postIdentityVerificationLogin = exports.getAuthMetadata = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Authentication_Api_Models_AuthMetaDataResponse = zod_1.z.object({
|
|
@@ -121,6 +121,10 @@ const Roblox_Authentication_Api_Models_RevertAccountSubmitRequest = zod_1.z.obje
|
|
|
121
121
|
TwoStepVerificationChallengeId: zod_1.z.string(),
|
|
122
122
|
TwoStepVerificationToken: zod_1.z.string(),
|
|
123
123
|
});
|
|
124
|
+
const Roblox_Authentication_Api_Models_UsernameChangePriceResponse = zod_1.z.object({
|
|
125
|
+
priceInRobux: zod_1.z.number().int(),
|
|
126
|
+
basePriceInRobux: zod_1.z.number().int(),
|
|
127
|
+
});
|
|
124
128
|
const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
|
|
125
129
|
usernames: zod_1.z.array(zod_1.z.string()),
|
|
126
130
|
});
|
|
@@ -1079,6 +1083,23 @@ exports.postUsername = (0, __1.endpoint)({
|
|
|
1079
1083
|
},
|
|
1080
1084
|
],
|
|
1081
1085
|
});
|
|
1086
|
+
/**
|
|
1087
|
+
* @api GET https://auth.roblox.com/v2/username/change/price
|
|
1088
|
+
* @summary Get the current price for a username change
|
|
1089
|
+
*/
|
|
1090
|
+
exports.getUsernameChangePrice = (0, __1.endpoint)({
|
|
1091
|
+
method: 'GET',
|
|
1092
|
+
path: '/v2/username/change/price',
|
|
1093
|
+
baseUrl: 'https://auth.roblox.com',
|
|
1094
|
+
requestFormat: 'json',
|
|
1095
|
+
response: Roblox_Authentication_Api_Models_UsernameChangePriceResponse,
|
|
1096
|
+
errors: [
|
|
1097
|
+
{
|
|
1098
|
+
status: 401,
|
|
1099
|
+
description: `0: Authorization has been denied for this request.`,
|
|
1100
|
+
},
|
|
1101
|
+
],
|
|
1102
|
+
});
|
|
1082
1103
|
/**
|
|
1083
1104
|
* @api GET https://auth.roblox.com/v2/usernames
|
|
1084
1105
|
* @summary Gets a list of existing usernames on Roblox based on the query parameters
|
|
@@ -1097,7 +1118,7 @@ exports.getUsernames = (0, __1.endpoint)({
|
|
|
1097
1118
|
},
|
|
1098
1119
|
},
|
|
1099
1120
|
parameters: {
|
|
1100
|
-
username: zod_1.z.string()
|
|
1121
|
+
username: zod_1.z.string(),
|
|
1101
1122
|
},
|
|
1102
1123
|
response: Roblox_Authentication_Api_Models_UsernamesResponse,
|
|
1103
1124
|
errors: [],
|
|
@@ -492,10 +492,6 @@ export const postOutfitsUseroutfitidDelete = endpoint({
|
|
|
492
492
|
},
|
|
493
493
|
response: z.object({ success: z.boolean() }),
|
|
494
494
|
errors: [
|
|
495
|
-
{
|
|
496
|
-
status: 400,
|
|
497
|
-
description: `1: The specified userOutfitId is invalid!`,
|
|
498
|
-
},
|
|
499
495
|
{
|
|
500
496
|
status: 401,
|
|
501
497
|
description: `0: Authorization has been denied for this request.`,
|
|
@@ -505,6 +501,10 @@ export const postOutfitsUseroutfitidDelete = endpoint({
|
|
|
505
501
|
description: `0: Token Validation Failed
|
|
506
502
|
2: You don't have permission to delete this outfit.`,
|
|
507
503
|
},
|
|
504
|
+
{
|
|
505
|
+
status: 404,
|
|
506
|
+
description: `1: The specified userOutfitId is invalid!`,
|
|
507
|
+
},
|
|
508
508
|
{
|
|
509
509
|
status: 500,
|
|
510
510
|
description: `3: An error occurred while deleting the outfit.`,
|
|
@@ -538,13 +538,16 @@ export const getOutfitsUseroutfitidDetails = endpoint({
|
|
|
538
538
|
errors: [
|
|
539
539
|
{
|
|
540
540
|
status: 400,
|
|
541
|
-
description: `
|
|
542
|
-
2: The outfit for the specified userOutfit is invalid.`,
|
|
541
|
+
description: `2: The outfit for the specified userOutfit is invalid.`,
|
|
543
542
|
},
|
|
544
543
|
{
|
|
545
544
|
status: 403,
|
|
546
545
|
description: `3: The requester does not have access to the details for the given user outfit.`,
|
|
547
546
|
},
|
|
547
|
+
{
|
|
548
|
+
status: 404,
|
|
549
|
+
description: `1: The specified userOutfitId is invalid.`,
|
|
550
|
+
},
|
|
548
551
|
],
|
|
549
552
|
});
|
|
550
553
|
/**
|
|
@@ -489,10 +489,6 @@ exports.postOutfitsUseroutfitidDelete = (0, __1.endpoint)({
|
|
|
489
489
|
},
|
|
490
490
|
response: zod_1.z.object({ success: zod_1.z.boolean() }),
|
|
491
491
|
errors: [
|
|
492
|
-
{
|
|
493
|
-
status: 400,
|
|
494
|
-
description: `1: The specified userOutfitId is invalid!`,
|
|
495
|
-
},
|
|
496
492
|
{
|
|
497
493
|
status: 401,
|
|
498
494
|
description: `0: Authorization has been denied for this request.`,
|
|
@@ -502,6 +498,10 @@ exports.postOutfitsUseroutfitidDelete = (0, __1.endpoint)({
|
|
|
502
498
|
description: `0: Token Validation Failed
|
|
503
499
|
2: You don't have permission to delete this outfit.`,
|
|
504
500
|
},
|
|
501
|
+
{
|
|
502
|
+
status: 404,
|
|
503
|
+
description: `1: The specified userOutfitId is invalid!`,
|
|
504
|
+
},
|
|
505
505
|
{
|
|
506
506
|
status: 500,
|
|
507
507
|
description: `3: An error occurred while deleting the outfit.`,
|
|
@@ -535,13 +535,16 @@ exports.getOutfitsUseroutfitidDetails = (0, __1.endpoint)({
|
|
|
535
535
|
errors: [
|
|
536
536
|
{
|
|
537
537
|
status: 400,
|
|
538
|
-
description: `
|
|
539
|
-
2: The outfit for the specified userOutfit is invalid.`,
|
|
538
|
+
description: `2: The outfit for the specified userOutfit is invalid.`,
|
|
540
539
|
},
|
|
541
540
|
{
|
|
542
541
|
status: 403,
|
|
543
542
|
description: `3: The requester does not have access to the details for the given user outfit.`,
|
|
544
543
|
},
|
|
544
|
+
{
|
|
545
|
+
status: 404,
|
|
546
|
+
description: `1: The specified userOutfitId is invalid.`,
|
|
547
|
+
},
|
|
545
548
|
],
|
|
546
549
|
});
|
|
547
550
|
/**
|
|
@@ -403,14 +403,14 @@ export const patchOutfitsUseroutfitid = endpoint({
|
|
|
403
403
|
errors: [
|
|
404
404
|
{
|
|
405
405
|
status: 400,
|
|
406
|
-
description: `
|
|
407
|
-
1: Must provide both assetIds and bodyColors in to update outfit contents.
|
|
408
|
-
3: Body colors must be valid BrickColor IDs
|
|
406
|
+
description: `3: Body colors must be valid BrickColor IDs
|
|
409
407
|
4: Invalid outfit name
|
|
410
408
|
5: Asset is not wearable by you
|
|
411
409
|
8: Invalid Player Avatar Type. Valid types are R6 and R15
|
|
412
410
|
11: Meta does not apply to specified asset type
|
|
413
|
-
12: Meta is required for this specific asset type
|
|
411
|
+
12: Meta is required for this specific asset type
|
|
412
|
+
13: Invalid Outfit Type
|
|
413
|
+
14: Invalid scale`,
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
status: 401,
|
|
@@ -421,6 +421,10 @@ export const patchOutfitsUseroutfitid = endpoint({
|
|
|
421
421
|
description: `0: Token Validation Failed
|
|
422
422
|
2: You don't have permission to update this outfit.`,
|
|
423
423
|
},
|
|
424
|
+
{
|
|
425
|
+
status: 404,
|
|
426
|
+
description: `1: The specified userOutfit does not exist!`,
|
|
427
|
+
},
|
|
424
428
|
{
|
|
425
429
|
status: 500,
|
|
426
430
|
description: `6: An error occurred while trying to update the outfit`,
|
|
@@ -460,7 +464,9 @@ export const postOutfitsCreate = endpoint({
|
|
|
460
464
|
7: Invalid Player Avatar Type. Valid types are R6 and R15
|
|
461
465
|
8: Invalid assetIds
|
|
462
466
|
9: Meta does not apply to specified asset type
|
|
463
|
-
10: Required meta is not provided for the specific asset type
|
|
467
|
+
10: Required meta is not provided for the specific asset type
|
|
468
|
+
12: Outfit type invalid or not permitted
|
|
469
|
+
13: Invalid Scale`,
|
|
464
470
|
},
|
|
465
471
|
{
|
|
466
472
|
status: 401,
|
|
@@ -396,14 +396,14 @@ exports.patchOutfitsUseroutfitid = (0, __1.endpoint)({
|
|
|
396
396
|
errors: [
|
|
397
397
|
{
|
|
398
398
|
status: 400,
|
|
399
|
-
description: `
|
|
400
|
-
1: Must provide both assetIds and bodyColors in to update outfit contents.
|
|
401
|
-
3: Body colors must be valid BrickColor IDs
|
|
399
|
+
description: `3: Body colors must be valid BrickColor IDs
|
|
402
400
|
4: Invalid outfit name
|
|
403
401
|
5: Asset is not wearable by you
|
|
404
402
|
8: Invalid Player Avatar Type. Valid types are R6 and R15
|
|
405
403
|
11: Meta does not apply to specified asset type
|
|
406
|
-
12: Meta is required for this specific asset type
|
|
404
|
+
12: Meta is required for this specific asset type
|
|
405
|
+
13: Invalid Outfit Type
|
|
406
|
+
14: Invalid scale`,
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
409
|
status: 401,
|
|
@@ -414,6 +414,10 @@ exports.patchOutfitsUseroutfitid = (0, __1.endpoint)({
|
|
|
414
414
|
description: `0: Token Validation Failed
|
|
415
415
|
2: You don't have permission to update this outfit.`,
|
|
416
416
|
},
|
|
417
|
+
{
|
|
418
|
+
status: 404,
|
|
419
|
+
description: `1: The specified userOutfit does not exist!`,
|
|
420
|
+
},
|
|
417
421
|
{
|
|
418
422
|
status: 500,
|
|
419
423
|
description: `6: An error occurred while trying to update the outfit`,
|
|
@@ -453,7 +457,9 @@ exports.postOutfitsCreate = (0, __1.endpoint)({
|
|
|
453
457
|
7: Invalid Player Avatar Type. Valid types are R6 and R15
|
|
454
458
|
8: Invalid assetIds
|
|
455
459
|
9: Meta does not apply to specified asset type
|
|
456
|
-
10: Required meta is not provided for the specific asset type
|
|
460
|
+
10: Required meta is not provided for the specific asset type
|
|
461
|
+
12: Outfit type invalid or not permitted
|
|
462
|
+
13: Invalid Scale`,
|
|
457
463
|
},
|
|
458
464
|
{
|
|
459
465
|
status: 401,
|