rozod 6.2.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/endpoints/accountsettingsv1.d.ts +27 -33
- package/lib/endpoints/accountsettingsv1.js +11 -22
- package/lib/endpoints/adconfigurationv2.d.ts +104 -119
- package/lib/endpoints/adconfigurationv2.js +32 -48
- package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv1.js +25 -24
- package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv2.js +25 -24
- package/lib/endpoints/authv1.d.ts +132 -84
- package/lib/endpoints/authv1.js +118 -64
- package/lib/endpoints/authv2.d.ts +56 -56
- package/lib/endpoints/authv2.js +57 -50
- package/lib/endpoints/authv3.d.ts +11 -11
- package/lib/endpoints/authv3.js +11 -11
- package/lib/endpoints/avatarv1.d.ts +1 -0
- package/lib/endpoints/avatarv1.js +1 -0
- package/lib/endpoints/avatarv2.d.ts +1 -0
- package/lib/endpoints/avatarv2.js +1 -0
- package/lib/endpoints/avatarv3.d.ts +1 -0
- package/lib/endpoints/avatarv3.js +1 -0
- package/lib/endpoints/badgesv1.d.ts +6 -22
- package/lib/endpoints/badgesv1.js +2 -22
- package/lib/endpoints/catalogv1.d.ts +39 -113
- package/lib/endpoints/catalogv1.js +39 -107
- package/lib/endpoints/catalogv2.d.ts +11 -11
- package/lib/endpoints/catalogv2.js +11 -11
- package/lib/endpoints/clientsettingsv2.d.ts +8 -7
- package/lib/endpoints/clientsettingsv2.js +9 -1
- package/lib/endpoints/developv1.d.ts +31 -31
- package/lib/endpoints/developv1.js +26 -26
- package/lib/endpoints/developv2.d.ts +27 -27
- package/lib/endpoints/developv2.js +22 -22
- package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
- package/lib/endpoints/economycreatorstatsv1.js +1 -1
- package/lib/endpoints/followingsv2.d.ts +2 -2
- package/lib/endpoints/followingsv2.js +2 -2
- package/lib/endpoints/friendsv1.d.ts +24 -98
- package/lib/endpoints/friendsv1.js +25 -91
- package/lib/endpoints/gamesv1.d.ts +31 -615
- package/lib/endpoints/gamesv1.js +32 -608
- package/lib/endpoints/gamesv2.d.ts +187 -260
- package/lib/endpoints/gamesv2.js +130 -190
- package/lib/endpoints/groupsv1.d.ts +34 -28
- package/lib/endpoints/groupsv1.js +31 -18
- package/lib/endpoints/groupsv2.d.ts +92 -92
- package/lib/endpoints/groupsv2.js +93 -87
- package/lib/endpoints/inventoryv1.d.ts +9 -21
- package/lib/endpoints/inventoryv1.js +4 -4
- package/lib/endpoints/inventoryv2.d.ts +91 -91
- package/lib/endpoints/inventoryv2.js +86 -86
- package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
- package/lib/endpoints/itemconfigurationv1.js +1 -1
- package/lib/endpoints/thumbnailsv1.d.ts +1 -0
- package/lib/endpoints/thumbnailsv1.js +1 -0
- package/lib/endpoints/tradesv1.d.ts +10 -16
- package/lib/endpoints/tradesv1.js +10 -10
- package/lib/endpoints/twostepverificationv1.d.ts +59 -59
- package/lib/endpoints/twostepverificationv1.js +59 -59
- package/lib/endpoints/usersv1.d.ts +1 -1
- package/lib/endpoints/usersv1.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +29 -3
- package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
- package/lib/opencloud/v1/asset-permissions.js +9 -3
- package/lib/opencloud/v1/assets.d.ts +59 -32
- package/lib/opencloud/v1/assets.js +77 -41
- package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
- package/lib/opencloud/v1/datastores-ordered.js +62 -20
- package/lib/opencloud/v1/datastores.d.ts +99 -42
- package/lib/opencloud/v1/datastores.js +123 -50
- package/lib/opencloud/v1/developer-products.d.ts +29 -11
- package/lib/opencloud/v1/developer-products.js +37 -15
- package/lib/opencloud/v1/game-passes.d.ts +29 -11
- package/lib/opencloud/v1/game-passes.js +37 -15
- package/lib/opencloud/v1/messaging.d.ts +6 -2
- package/lib/opencloud/v1/messaging.js +8 -3
- package/lib/opencloud/v1/open-eval.d.ts +14 -4
- package/lib/opencloud/v1/open-eval.js +18 -6
- package/lib/opencloud/v1/secrets-store.d.ts +46 -26
- package/lib/opencloud/v1/secrets-store.js +56 -31
- package/lib/opencloud/v1/toolbox.d.ts +14 -6
- package/lib/opencloud/v1/toolbox.js +18 -8
- package/lib/opencloud/v1/universes.d.ts +6 -2
- package/lib/opencloud/v1/universes.js +8 -3
- package/lib/opencloud/v2/cloud.d.ts +854 -395
- package/lib/opencloud/v2/cloud.js +967 -395
- package/package.json +1 -1
|
@@ -6,38 +6,39 @@ const __1 = require("..");
|
|
|
6
6
|
const Roblox_Web_Assets_IAssetItemError = zod_1.z.object({
|
|
7
7
|
Code: zod_1.z.number().int(),
|
|
8
8
|
Message: zod_1.z.string(),
|
|
9
|
-
CustomErrorCode: zod_1.z.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
CustomErrorCode: zod_1.z.enum([
|
|
10
|
+
'UnknownError',
|
|
11
|
+
'NoPermissionToAsset',
|
|
12
|
+
'AssetPermissionCheckFailed',
|
|
13
|
+
'NotAuthorizedForAgeRecommendation',
|
|
14
|
+
'AgeRecommendationCheckFailed',
|
|
15
|
+
'InvalidPlaceRequestFromGameServer',
|
|
16
|
+
'BlockedAssetTypeRequestedFromInsertService',
|
|
17
|
+
'BlockedAssetTypeRequestedFromGameServer',
|
|
18
|
+
'AssetTypeMismatch',
|
|
19
|
+
'MissingAssetTypeInRequestHeader',
|
|
20
|
+
'AssetNotTrustedForPlace',
|
|
21
|
+
'NoAuthentication',
|
|
22
|
+
'AssetContentRepresentationBlockedDueToModeration',
|
|
23
|
+
'AssetNotFound',
|
|
24
|
+
'AssetVersionNotFound',
|
|
25
|
+
'AssetContentRepresentationNotFound',
|
|
26
|
+
'BlockedByAgeGeoRestriction',
|
|
27
|
+
'BlockedAssetTypeRequestedFromNonGameServer',
|
|
28
|
+
'AssetPendingReview',
|
|
29
|
+
'NotApprovedForRequestor',
|
|
30
|
+
'NotApprovedByContentCompliance',
|
|
31
|
+
'AssetContentRepresentationGenerating',
|
|
32
32
|
]),
|
|
33
33
|
});
|
|
34
34
|
const Roblox_Web_Assets_AssetContentRepresentationSpecifier = zod_1.z.object({
|
|
35
35
|
format: zod_1.z.string(),
|
|
36
36
|
majorVersion: zod_1.z.string(),
|
|
37
37
|
fidelity: zod_1.z.string(),
|
|
38
|
+
skipGenerationIfNotExist: zod_1.z.boolean(),
|
|
38
39
|
});
|
|
39
40
|
const Roblox_AssetDelivery_Api_AssetMetadata = zod_1.z.object({
|
|
40
|
-
metadataType: zod_1.z.literal(
|
|
41
|
+
metadataType: zod_1.z.literal('UncompressedSize'),
|
|
41
42
|
value: zod_1.z.string(),
|
|
42
43
|
});
|
|
43
44
|
const Roblox_Web_Assets_AssetResponseItemV1 = zod_1.z.object({
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { endpoint } from "..";
|
|
3
3
|
|
|
4
4
|
const Roblox_AssetDelivery_Api_AssetMetadata = z.object({
|
|
5
|
-
metadataType: z.literal(
|
|
5
|
+
metadataType: z.literal("UncompressedSize"),
|
|
6
6
|
value: z.string(),
|
|
7
7
|
});
|
|
8
8
|
const Roblox_Web_Assets_AssetFormatLocation = z.object({
|
|
@@ -13,35 +13,36 @@ const Roblox_Web_Assets_AssetFormatLocation = z.object({
|
|
|
13
13
|
const Roblox_Web_Assets_IAssetItemError = z.object({
|
|
14
14
|
Code: z.number().int(),
|
|
15
15
|
Message: z.string(),
|
|
16
|
-
CustomErrorCode: z.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
CustomErrorCode: z.enum([
|
|
17
|
+
"UnknownError",
|
|
18
|
+
"NoPermissionToAsset",
|
|
19
|
+
"AssetPermissionCheckFailed",
|
|
20
|
+
"NotAuthorizedForAgeRecommendation",
|
|
21
|
+
"AgeRecommendationCheckFailed",
|
|
22
|
+
"InvalidPlaceRequestFromGameServer",
|
|
23
|
+
"BlockedAssetTypeRequestedFromInsertService",
|
|
24
|
+
"BlockedAssetTypeRequestedFromGameServer",
|
|
25
|
+
"AssetTypeMismatch",
|
|
26
|
+
"MissingAssetTypeInRequestHeader",
|
|
27
|
+
"AssetNotTrustedForPlace",
|
|
28
|
+
"NoAuthentication",
|
|
29
|
+
"AssetContentRepresentationBlockedDueToModeration",
|
|
30
|
+
"AssetNotFound",
|
|
31
|
+
"AssetVersionNotFound",
|
|
32
|
+
"AssetContentRepresentationNotFound",
|
|
33
|
+
"BlockedByAgeGeoRestriction",
|
|
34
|
+
"BlockedAssetTypeRequestedFromNonGameServer",
|
|
35
|
+
"AssetPendingReview",
|
|
36
|
+
"NotApprovedForRequestor",
|
|
37
|
+
"NotApprovedByContentCompliance",
|
|
38
|
+
"AssetContentRepresentationGenerating",
|
|
39
39
|
]),
|
|
40
40
|
});
|
|
41
41
|
const Roblox_Web_Assets_AssetContentRepresentationSpecifier = z.object({
|
|
42
42
|
format: z.string(),
|
|
43
43
|
majorVersion: z.string(),
|
|
44
44
|
fidelity: z.string(),
|
|
45
|
+
skipGenerationIfNotExist: z.boolean(),
|
|
45
46
|
});
|
|
46
47
|
const Roblox_Web_Assets_AssetResponseItemV2 = z.object({
|
|
47
48
|
locations: z.array(Roblox_Web_Assets_AssetFormatLocation),
|
|
@@ -4,7 +4,7 @@ exports.getMarassethashMarassethashMarchecksumMarchecksum = exports.postAssetsBa
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_AssetDelivery_Api_AssetMetadata = zod_1.z.object({
|
|
7
|
-
metadataType: zod_1.z.literal(
|
|
7
|
+
metadataType: zod_1.z.literal('UncompressedSize'),
|
|
8
8
|
value: zod_1.z.string(),
|
|
9
9
|
});
|
|
10
10
|
const Roblox_Web_Assets_AssetFormatLocation = zod_1.z.object({
|
|
@@ -15,35 +15,36 @@ const Roblox_Web_Assets_AssetFormatLocation = zod_1.z.object({
|
|
|
15
15
|
const Roblox_Web_Assets_IAssetItemError = zod_1.z.object({
|
|
16
16
|
Code: zod_1.z.number().int(),
|
|
17
17
|
Message: zod_1.z.string(),
|
|
18
|
-
CustomErrorCode: zod_1.z.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
18
|
+
CustomErrorCode: zod_1.z.enum([
|
|
19
|
+
'UnknownError',
|
|
20
|
+
'NoPermissionToAsset',
|
|
21
|
+
'AssetPermissionCheckFailed',
|
|
22
|
+
'NotAuthorizedForAgeRecommendation',
|
|
23
|
+
'AgeRecommendationCheckFailed',
|
|
24
|
+
'InvalidPlaceRequestFromGameServer',
|
|
25
|
+
'BlockedAssetTypeRequestedFromInsertService',
|
|
26
|
+
'BlockedAssetTypeRequestedFromGameServer',
|
|
27
|
+
'AssetTypeMismatch',
|
|
28
|
+
'MissingAssetTypeInRequestHeader',
|
|
29
|
+
'AssetNotTrustedForPlace',
|
|
30
|
+
'NoAuthentication',
|
|
31
|
+
'AssetContentRepresentationBlockedDueToModeration',
|
|
32
|
+
'AssetNotFound',
|
|
33
|
+
'AssetVersionNotFound',
|
|
34
|
+
'AssetContentRepresentationNotFound',
|
|
35
|
+
'BlockedByAgeGeoRestriction',
|
|
36
|
+
'BlockedAssetTypeRequestedFromNonGameServer',
|
|
37
|
+
'AssetPendingReview',
|
|
38
|
+
'NotApprovedForRequestor',
|
|
39
|
+
'NotApprovedByContentCompliance',
|
|
40
|
+
'AssetContentRepresentationGenerating',
|
|
41
41
|
]),
|
|
42
42
|
});
|
|
43
43
|
const Roblox_Web_Assets_AssetContentRepresentationSpecifier = zod_1.z.object({
|
|
44
44
|
format: zod_1.z.string(),
|
|
45
45
|
majorVersion: zod_1.z.string(),
|
|
46
46
|
fidelity: zod_1.z.string(),
|
|
47
|
+
skipGenerationIfNotExist: zod_1.z.boolean(),
|
|
47
48
|
});
|
|
48
49
|
const Roblox_Web_Assets_AssetResponseItemV2 = zod_1.z.object({
|
|
49
50
|
locations: zod_1.z.array(Roblox_Web_Assets_AssetFormatLocation),
|
|
@@ -31,13 +31,13 @@ const Roblox_Authentication_Api_Models_MetadataResponse = z.object({
|
|
|
31
31
|
IsLoginRedirectPageEnabled: z.boolean(),
|
|
32
32
|
});
|
|
33
33
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
|
|
34
|
-
code: z.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
code: z.enum([
|
|
35
|
+
"ValidPassword",
|
|
36
|
+
"WeakPasswordError",
|
|
37
|
+
"PasswordLengthError",
|
|
38
|
+
"PasswordSameAsUsernameError",
|
|
39
|
+
"ForbiddenPasswordError",
|
|
40
|
+
"DumbStringsError",
|
|
41
41
|
]),
|
|
42
42
|
message: z.string(),
|
|
43
43
|
});
|
|
@@ -77,15 +77,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
|
|
|
77
77
|
});
|
|
78
78
|
const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse =
|
|
79
79
|
z.object({
|
|
80
|
-
mediaType: z.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
mediaType: z.enum([
|
|
81
|
+
"Email",
|
|
82
|
+
"SMS",
|
|
83
|
+
"Authenticator",
|
|
84
|
+
"RecoveryCode",
|
|
85
|
+
"SecurityKey",
|
|
86
|
+
"CrossDevice",
|
|
87
|
+
"Password",
|
|
88
|
+
"Passkey",
|
|
89
89
|
]),
|
|
90
90
|
ticket: z.string(),
|
|
91
91
|
});
|
|
@@ -112,17 +112,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
|
|
|
112
112
|
usernames: z.array(z.string()),
|
|
113
113
|
});
|
|
114
114
|
const Roblox_Authentication_Api_Models_UsernameValidationResponse = z.object({
|
|
115
|
-
code: z.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
code: z.enum([
|
|
116
|
+
"ValidUsername",
|
|
117
|
+
"AlreadyInUseError",
|
|
118
|
+
"ModerationError",
|
|
119
|
+
"InvalidLengthError",
|
|
120
|
+
"StartsOrEndsWithUnderscoreError",
|
|
121
|
+
"TooManyUnderscoresError",
|
|
122
|
+
"ContainsSpacesError",
|
|
123
|
+
"InvalidCharactersError",
|
|
124
|
+
"ContainsPiiError",
|
|
125
|
+
"ContainsReservedUsernameError",
|
|
126
126
|
]),
|
|
127
127
|
message: z.string(),
|
|
128
128
|
});
|
|
@@ -159,11 +159,11 @@ const Roblox_Authentication_Api_Models_AccountPinResponse = z.object({
|
|
|
159
159
|
const Roblox_Authentication_Api_Models_Request_ExternalAccessRequest = z.object(
|
|
160
160
|
{
|
|
161
161
|
authenticationProof: z.string(),
|
|
162
|
-
identityProviderPlatformType: z.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
identityProviderPlatformType: z.enum([
|
|
163
|
+
"Undefined",
|
|
164
|
+
"Xbox",
|
|
165
|
+
"Playstation",
|
|
166
|
+
"Web",
|
|
167
167
|
]),
|
|
168
168
|
additionalInfoPayload: z.object({}),
|
|
169
169
|
}
|
|
@@ -194,26 +194,26 @@ const Roblox_Authentication_Api_Models_Response_ExternalIdentityGateway_External
|
|
|
194
194
|
z.object({ success: z.boolean() });
|
|
195
195
|
const Roblox_Authentication_Api_Models_Request_ExternalLoginAndLinkRequest =
|
|
196
196
|
z.object({
|
|
197
|
-
ctype: z.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
197
|
+
ctype: z.enum([
|
|
198
|
+
"Email",
|
|
199
|
+
"Username",
|
|
200
|
+
"PhoneNumber",
|
|
201
|
+
"EmailOtpSessionToken",
|
|
202
|
+
"AuthToken",
|
|
203
|
+
"Passkey",
|
|
204
|
+
"AsUser",
|
|
205
|
+
"TwoStepVerification",
|
|
206
|
+
"XboxLive",
|
|
207
|
+
"PlatformLive",
|
|
208
208
|
]),
|
|
209
209
|
cvalue: z.string(),
|
|
210
210
|
password: z.string(),
|
|
211
211
|
authenticationProof: z.string(),
|
|
212
|
-
IdentityProviderPlatformType: z.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
IdentityProviderPlatformType: z.enum([
|
|
213
|
+
"Undefined",
|
|
214
|
+
"Xbox",
|
|
215
|
+
"Playstation",
|
|
216
|
+
"Web",
|
|
217
217
|
]),
|
|
218
218
|
additionalInfoPayload: z.object({}),
|
|
219
219
|
});
|
|
@@ -224,22 +224,22 @@ const Roblox_Authentication_Api_Models_Request_ExternalSignupRequest = z.object(
|
|
|
224
224
|
birthday: z.string().datetime({ offset: true }),
|
|
225
225
|
locale: z.string(),
|
|
226
226
|
authenticationProof: z.string(),
|
|
227
|
-
IdentityProviderPlatformType: z.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
IdentityProviderPlatformType: z.enum([
|
|
228
|
+
"Undefined",
|
|
229
|
+
"Xbox",
|
|
230
|
+
"Playstation",
|
|
231
|
+
"Web",
|
|
232
232
|
]),
|
|
233
233
|
additionalInfoPayload: z.object({}),
|
|
234
234
|
}
|
|
235
235
|
);
|
|
236
236
|
const Roblox_Authentication_Api_Models_Request_ExternalUnlinkRequest = z.object(
|
|
237
237
|
{
|
|
238
|
-
IdentityProviderPlatformType: z.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
IdentityProviderPlatformType: z.enum([
|
|
239
|
+
"Undefined",
|
|
240
|
+
"Xbox",
|
|
241
|
+
"Playstation",
|
|
242
|
+
"Web",
|
|
243
243
|
]),
|
|
244
244
|
additionalInfoPayload: z.object({}),
|
|
245
245
|
}
|
|
@@ -268,7 +268,7 @@ const Roblox_Authentication_Api_Models_Request_InitializeLoginRequest =
|
|
|
268
268
|
challengeId: z.string().optional(),
|
|
269
269
|
});
|
|
270
270
|
const Roblox_Authentication_Api_Models_LoginMethodModel = z.object({
|
|
271
|
-
method: z.
|
|
271
|
+
method: z.enum(["EmailOtp", "Passkey", "Password"]),
|
|
272
272
|
priority: z.number().int(),
|
|
273
273
|
});
|
|
274
274
|
const Roblox_Authentication_Api_Models_Response_InitializeLoginResponse =
|
|
@@ -283,31 +283,31 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
|
|
|
283
283
|
serverNonce: z.string(),
|
|
284
284
|
});
|
|
285
285
|
const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
|
|
286
|
-
LinkingPlatform: z.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
286
|
+
LinkingPlatform: z.enum([
|
|
287
|
+
"Invalid",
|
|
288
|
+
"Xbox",
|
|
289
|
+
"Qq",
|
|
290
|
+
"WeChat",
|
|
291
|
+
"Facebook",
|
|
292
|
+
"RobloxDeveloper",
|
|
293
|
+
"RobloxGroupCreator",
|
|
294
|
+
"Playstation",
|
|
295
|
+
"ExternalProvider",
|
|
296
|
+
"Example",
|
|
297
297
|
]),
|
|
298
298
|
});
|
|
299
299
|
const Roblox_Authentication_Api_Models_LoginRequest = z.object({
|
|
300
|
-
ctype: z.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
300
|
+
ctype: z.enum([
|
|
301
|
+
"Email",
|
|
302
|
+
"Username",
|
|
303
|
+
"PhoneNumber",
|
|
304
|
+
"EmailOtpSessionToken",
|
|
305
|
+
"AuthToken",
|
|
306
|
+
"Passkey",
|
|
307
|
+
"AsUser",
|
|
308
|
+
"TwoStepVerification",
|
|
309
|
+
"XboxLive",
|
|
310
|
+
"PlatformLive",
|
|
311
311
|
]),
|
|
312
312
|
cvalue: z.string(),
|
|
313
313
|
password: z.string(),
|
|
@@ -331,6 +331,13 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
|
|
|
331
331
|
const Roblox_Authentication_Api_Models_Request_DeletePasskeysRequest = z.object(
|
|
332
332
|
{ credentialNicknames: z.array(z.string()) }
|
|
333
333
|
);
|
|
334
|
+
const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest =
|
|
335
|
+
z.object({
|
|
336
|
+
recoverySession: z.string(),
|
|
337
|
+
passkeySessionId: z.string(),
|
|
338
|
+
passkeyRegistrationResponse: z.string(),
|
|
339
|
+
userId: z.number().int(),
|
|
340
|
+
});
|
|
334
341
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest =
|
|
335
342
|
z.object({ sessionId: z.string(), registrationResponse: z.string() });
|
|
336
343
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyRegistrationRequest =
|
|
@@ -394,7 +401,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
|
|
|
394
401
|
});
|
|
395
402
|
const Roblox_Authentication_Api_Models_Request_OtpSessionModel = z.object({
|
|
396
403
|
otpSessionToken: z.string(),
|
|
397
|
-
otpContactType: z.
|
|
404
|
+
otpContactType: z.enum(["Unset", "Email"]),
|
|
398
405
|
});
|
|
399
406
|
const Roblox_Authentication_Api_Models_Request_AuditContentValue = z.object({
|
|
400
407
|
translationKey: z.string(),
|
|
@@ -409,7 +416,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = z.object({
|
|
|
409
416
|
const Roblox_Authentication_Api_Models_SignupRequest = z.object({
|
|
410
417
|
username: z.string(),
|
|
411
418
|
password: z.string(),
|
|
412
|
-
gender: z.
|
|
419
|
+
gender: z.enum(["Unknown", "Male", "Female"]),
|
|
413
420
|
birthday: z.string().datetime({ offset: true }),
|
|
414
421
|
displayName: z.string(),
|
|
415
422
|
isTosAgreementBoxChecked: z.boolean(),
|
|
@@ -459,7 +466,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = z.object({
|
|
|
459
466
|
password: z.string(),
|
|
460
467
|
});
|
|
461
468
|
const Roblox_Authentication_Api_Models_RecoverUsernameRequest = z.object({
|
|
462
|
-
targetType: z.
|
|
469
|
+
targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
|
|
463
470
|
target: z.string(),
|
|
464
471
|
});
|
|
465
472
|
const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({
|
|
@@ -1096,6 +1103,47 @@ export const postPasskeyDeletecredentialbatch = endpoint({
|
|
|
1096
1103
|
},
|
|
1097
1104
|
],
|
|
1098
1105
|
});
|
|
1106
|
+
/**
|
|
1107
|
+
* @api POST https://auth.roblox.com/v1/passkey/finish-ar-preauth-registration
|
|
1108
|
+
* @summary Finishes account recovery pre-auth passkey registration by validating the recovery session,
|
|
1109
|
+
deactivating the user's password, and completing passkey registration.
|
|
1110
|
+
* @param body The request body containing recovery session and passkey details.
|
|
1111
|
+
*/
|
|
1112
|
+
export const postPasskeyFinishArPreauthRegistration = endpoint({
|
|
1113
|
+
method: "POST",
|
|
1114
|
+
path: "/v1/passkey/finish-ar-preauth-registration",
|
|
1115
|
+
baseUrl: "https://auth.roblox.com",
|
|
1116
|
+
requestFormat: "json",
|
|
1117
|
+
serializationMethod: {
|
|
1118
|
+
body: {},
|
|
1119
|
+
},
|
|
1120
|
+
parameters: {},
|
|
1121
|
+
body: Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest,
|
|
1122
|
+
response: z.object({}),
|
|
1123
|
+
errors: [
|
|
1124
|
+
{
|
|
1125
|
+
status: 400,
|
|
1126
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
status: 401,
|
|
1130
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
status: 403,
|
|
1134
|
+
description: `0: Token Validation Failed
|
|
1135
|
+
1: Reached limit of pass keys registered.`,
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
status: 500,
|
|
1139
|
+
description: `0: An unknown error occurred with the request.`,
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
status: 503,
|
|
1143
|
+
description: `2: Feature disabled.`,
|
|
1144
|
+
},
|
|
1145
|
+
],
|
|
1146
|
+
});
|
|
1099
1147
|
/**
|
|
1100
1148
|
* @api POST https://auth.roblox.com/v1/passkey/finish-preauth-registration
|
|
1101
1149
|
* @param body
|