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.
Files changed (87) hide show
  1. package/lib/endpoints/accountsettingsv1.d.ts +27 -33
  2. package/lib/endpoints/accountsettingsv1.js +11 -22
  3. package/lib/endpoints/adconfigurationv2.d.ts +104 -119
  4. package/lib/endpoints/adconfigurationv2.js +32 -48
  5. package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
  6. package/lib/endpoints/assetdeliveryv1.js +25 -24
  7. package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
  8. package/lib/endpoints/assetdeliveryv2.js +25 -24
  9. package/lib/endpoints/authv1.d.ts +132 -84
  10. package/lib/endpoints/authv1.js +118 -64
  11. package/lib/endpoints/authv2.d.ts +56 -56
  12. package/lib/endpoints/authv2.js +57 -50
  13. package/lib/endpoints/authv3.d.ts +11 -11
  14. package/lib/endpoints/authv3.js +11 -11
  15. package/lib/endpoints/avatarv1.d.ts +1 -0
  16. package/lib/endpoints/avatarv1.js +1 -0
  17. package/lib/endpoints/avatarv2.d.ts +1 -0
  18. package/lib/endpoints/avatarv2.js +1 -0
  19. package/lib/endpoints/avatarv3.d.ts +1 -0
  20. package/lib/endpoints/avatarv3.js +1 -0
  21. package/lib/endpoints/badgesv1.d.ts +6 -22
  22. package/lib/endpoints/badgesv1.js +2 -22
  23. package/lib/endpoints/catalogv1.d.ts +39 -113
  24. package/lib/endpoints/catalogv1.js +39 -107
  25. package/lib/endpoints/catalogv2.d.ts +11 -11
  26. package/lib/endpoints/catalogv2.js +11 -11
  27. package/lib/endpoints/clientsettingsv2.d.ts +8 -7
  28. package/lib/endpoints/clientsettingsv2.js +9 -1
  29. package/lib/endpoints/developv1.d.ts +31 -31
  30. package/lib/endpoints/developv1.js +26 -26
  31. package/lib/endpoints/developv2.d.ts +27 -27
  32. package/lib/endpoints/developv2.js +22 -22
  33. package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
  34. package/lib/endpoints/economycreatorstatsv1.js +1 -1
  35. package/lib/endpoints/followingsv2.d.ts +2 -2
  36. package/lib/endpoints/followingsv2.js +2 -2
  37. package/lib/endpoints/friendsv1.d.ts +24 -98
  38. package/lib/endpoints/friendsv1.js +25 -91
  39. package/lib/endpoints/gamesv1.d.ts +31 -615
  40. package/lib/endpoints/gamesv1.js +32 -608
  41. package/lib/endpoints/gamesv2.d.ts +187 -260
  42. package/lib/endpoints/gamesv2.js +130 -190
  43. package/lib/endpoints/groupsv1.d.ts +34 -28
  44. package/lib/endpoints/groupsv1.js +31 -18
  45. package/lib/endpoints/groupsv2.d.ts +92 -92
  46. package/lib/endpoints/groupsv2.js +93 -87
  47. package/lib/endpoints/inventoryv1.d.ts +9 -21
  48. package/lib/endpoints/inventoryv1.js +4 -4
  49. package/lib/endpoints/inventoryv2.d.ts +91 -91
  50. package/lib/endpoints/inventoryv2.js +86 -86
  51. package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
  52. package/lib/endpoints/itemconfigurationv1.js +1 -1
  53. package/lib/endpoints/thumbnailsv1.d.ts +1 -0
  54. package/lib/endpoints/thumbnailsv1.js +1 -0
  55. package/lib/endpoints/tradesv1.d.ts +10 -16
  56. package/lib/endpoints/tradesv1.js +10 -10
  57. package/lib/endpoints/twostepverificationv1.d.ts +59 -59
  58. package/lib/endpoints/twostepverificationv1.js +59 -59
  59. package/lib/endpoints/usersv1.d.ts +1 -1
  60. package/lib/endpoints/usersv1.js +1 -1
  61. package/lib/index.d.ts +1 -0
  62. package/lib/index.js +29 -3
  63. package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
  64. package/lib/opencloud/v1/asset-permissions.js +9 -3
  65. package/lib/opencloud/v1/assets.d.ts +59 -32
  66. package/lib/opencloud/v1/assets.js +77 -41
  67. package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
  68. package/lib/opencloud/v1/datastores-ordered.js +62 -20
  69. package/lib/opencloud/v1/datastores.d.ts +99 -42
  70. package/lib/opencloud/v1/datastores.js +123 -50
  71. package/lib/opencloud/v1/developer-products.d.ts +29 -11
  72. package/lib/opencloud/v1/developer-products.js +37 -15
  73. package/lib/opencloud/v1/game-passes.d.ts +29 -11
  74. package/lib/opencloud/v1/game-passes.js +37 -15
  75. package/lib/opencloud/v1/messaging.d.ts +6 -2
  76. package/lib/opencloud/v1/messaging.js +8 -3
  77. package/lib/opencloud/v1/open-eval.d.ts +14 -4
  78. package/lib/opencloud/v1/open-eval.js +18 -6
  79. package/lib/opencloud/v1/secrets-store.d.ts +46 -26
  80. package/lib/opencloud/v1/secrets-store.js +56 -31
  81. package/lib/opencloud/v1/toolbox.d.ts +14 -6
  82. package/lib/opencloud/v1/toolbox.js +18 -8
  83. package/lib/opencloud/v1/universes.d.ts +6 -2
  84. package/lib/opencloud/v1/universes.js +8 -3
  85. package/lib/opencloud/v2/cloud.d.ts +854 -395
  86. package/lib/opencloud/v2/cloud.js +967 -395
  87. 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.union([
10
- zod_1.z.literal(0),
11
- zod_1.z.literal(1),
12
- zod_1.z.literal(2),
13
- zod_1.z.literal(3),
14
- zod_1.z.literal(4),
15
- zod_1.z.literal(5),
16
- zod_1.z.literal(6),
17
- zod_1.z.literal(7),
18
- zod_1.z.literal(8),
19
- zod_1.z.literal(9),
20
- zod_1.z.literal(10),
21
- zod_1.z.literal(11),
22
- zod_1.z.literal(12),
23
- zod_1.z.literal(13),
24
- zod_1.z.literal(14),
25
- zod_1.z.literal(15),
26
- zod_1.z.literal(16),
27
- zod_1.z.literal(17),
28
- zod_1.z.literal(18),
29
- zod_1.z.literal(19),
30
- zod_1.z.literal(20),
31
- zod_1.z.literal(21),
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(1),
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(1),
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.union([
17
- z.literal(0),
18
- z.literal(1),
19
- z.literal(2),
20
- z.literal(3),
21
- z.literal(4),
22
- z.literal(5),
23
- z.literal(6),
24
- z.literal(7),
25
- z.literal(8),
26
- z.literal(9),
27
- z.literal(10),
28
- z.literal(11),
29
- z.literal(12),
30
- z.literal(13),
31
- z.literal(14),
32
- z.literal(15),
33
- z.literal(16),
34
- z.literal(17),
35
- z.literal(18),
36
- z.literal(19),
37
- z.literal(20),
38
- z.literal(21),
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(1),
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.union([
19
- zod_1.z.literal(0),
20
- zod_1.z.literal(1),
21
- zod_1.z.literal(2),
22
- zod_1.z.literal(3),
23
- zod_1.z.literal(4),
24
- zod_1.z.literal(5),
25
- zod_1.z.literal(6),
26
- zod_1.z.literal(7),
27
- zod_1.z.literal(8),
28
- zod_1.z.literal(9),
29
- zod_1.z.literal(10),
30
- zod_1.z.literal(11),
31
- zod_1.z.literal(12),
32
- zod_1.z.literal(13),
33
- zod_1.z.literal(14),
34
- zod_1.z.literal(15),
35
- zod_1.z.literal(16),
36
- zod_1.z.literal(17),
37
- zod_1.z.literal(18),
38
- zod_1.z.literal(19),
39
- zod_1.z.literal(20),
40
- zod_1.z.literal(21),
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.union([
35
- z.literal(0),
36
- z.literal(1),
37
- z.literal(2),
38
- z.literal(3),
39
- z.literal(4),
40
- z.literal(5),
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.union([
81
- z.literal(0),
82
- z.literal(1),
83
- z.literal(2),
84
- z.literal(3),
85
- z.literal(4),
86
- z.literal(5),
87
- z.literal(6),
88
- z.literal(7),
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.union([
116
- z.literal(0),
117
- z.literal(1),
118
- z.literal(2),
119
- z.literal(3),
120
- z.literal(4),
121
- z.literal(5),
122
- z.literal(6),
123
- z.literal(7),
124
- z.literal(10),
125
- z.literal(12),
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.union([
163
- z.literal(0),
164
- z.literal(1),
165
- z.literal(2),
166
- z.literal(3),
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.union([
198
- z.literal(0),
199
- z.literal(1),
200
- z.literal(2),
201
- z.literal(3),
202
- z.literal(4),
203
- z.literal(5),
204
- z.literal(6),
205
- z.literal(7),
206
- z.literal(8),
207
- z.literal(9),
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.union([
213
- z.literal(0),
214
- z.literal(1),
215
- z.literal(2),
216
- z.literal(3),
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.union([
228
- z.literal(0),
229
- z.literal(1),
230
- z.literal(2),
231
- z.literal(3),
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.union([
239
- z.literal(0),
240
- z.literal(1),
241
- z.literal(2),
242
- z.literal(3),
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.union([z.literal(0), z.literal(1), z.literal(2)]),
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.union([
287
- z.literal(0),
288
- z.literal(1),
289
- z.literal(2),
290
- z.literal(3),
291
- z.literal(4),
292
- z.literal(5),
293
- z.literal(6),
294
- z.literal(7),
295
- z.literal(8),
296
- z.literal(999),
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.union([
301
- z.literal(0),
302
- z.literal(1),
303
- z.literal(2),
304
- z.literal(3),
305
- z.literal(4),
306
- z.literal(5),
307
- z.literal(6),
308
- z.literal(7),
309
- z.literal(8),
310
- z.literal(9),
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.union([z.literal(1), z.literal(2)]),
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.union([z.literal(1), z.literal(2), z.literal(3)]),
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.union([z.literal(0), z.literal(1), z.literal(2)]),
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