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
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.postValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsEmail = exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = 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.postPasskeyStartregistration = exports.postPasskeyStartauthentication = exports.postPasskeyStartPreauthRegistration = exports.postPasskeyStartAuthenticationByUser = exports.postPasskeyListcredentials = exports.postPasskeyFinishregistration = exports.postPasskeyFinishPreauthRegistration = 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 = void 0;
4
- exports.postXboxTranslate = exports.getXboxGetLoginConsecutiveDays = exports.postXboxDisconnect = exports.getXboxConnection = exports.postValidatorsUsername = exports.getValidatorsUsername = void 0;
3
+ exports.getValidatorsRecommendedusernamefromdisplayname = exports.getValidatorsEmail = exports.postUsernamesValidate = exports.getUsernamesValidate = exports.postUsernamesRecover = exports.getUsernames = 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.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 = void 0;
4
+ exports.postXboxTranslate = exports.getXboxGetLoginConsecutiveDays = exports.postXboxDisconnect = exports.getXboxConnection = exports.postValidatorsUsername = exports.getValidatorsUsername = exports.postValidatorsRecommendedusernamefromdisplayname = void 0;
5
5
  const zod_1 = require("zod");
6
6
  const __1 = require("..");
7
7
  const Roblox_Authentication_Api_Models_AccountPinStatusResponse = zod_1.z.object({
@@ -33,7 +33,14 @@ const Roblox_Authentication_Api_Models_MetadataResponse = zod_1.z.object({
33
33
  IsLoginRedirectPageEnabled: zod_1.z.boolean(),
34
34
  });
35
35
  const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
36
- code: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]),
36
+ code: zod_1.z.enum([
37
+ 'ValidPassword',
38
+ 'WeakPasswordError',
39
+ 'PasswordLengthError',
40
+ 'PasswordSameAsUsernameError',
41
+ 'ForbiddenPasswordError',
42
+ 'DumbStringsError',
43
+ ]),
37
44
  message: zod_1.z.string(),
38
45
  });
39
46
  const Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
@@ -71,15 +78,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
71
78
  displayName: zod_1.z.string(),
72
79
  });
73
80
  const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
74
- mediaType: zod_1.z.union([
75
- zod_1.z.literal(0),
76
- zod_1.z.literal(1),
77
- zod_1.z.literal(2),
78
- zod_1.z.literal(3),
79
- zod_1.z.literal(4),
80
- zod_1.z.literal(5),
81
- zod_1.z.literal(6),
82
- zod_1.z.literal(7),
81
+ mediaType: zod_1.z.enum([
82
+ 'Email',
83
+ 'SMS',
84
+ 'Authenticator',
85
+ 'RecoveryCode',
86
+ 'SecurityKey',
87
+ 'CrossDevice',
88
+ 'Password',
89
+ 'Passkey',
83
90
  ]),
84
91
  ticket: zod_1.z.string(),
85
92
  });
@@ -105,17 +112,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
105
112
  usernames: zod_1.z.array(zod_1.z.string()),
106
113
  });
107
114
  const Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
108
- code: zod_1.z.union([
109
- zod_1.z.literal(0),
110
- zod_1.z.literal(1),
111
- zod_1.z.literal(2),
112
- zod_1.z.literal(3),
113
- zod_1.z.literal(4),
114
- zod_1.z.literal(5),
115
- zod_1.z.literal(6),
116
- zod_1.z.literal(7),
117
- zod_1.z.literal(10),
118
- zod_1.z.literal(12),
115
+ code: zod_1.z.enum([
116
+ 'ValidUsername',
117
+ 'AlreadyInUseError',
118
+ 'ModerationError',
119
+ 'InvalidLengthError',
120
+ 'StartsOrEndsWithUnderscoreError',
121
+ 'TooManyUnderscoresError',
122
+ 'ContainsSpacesError',
123
+ 'InvalidCharactersError',
124
+ 'ContainsPiiError',
125
+ 'ContainsReservedUsernameError',
119
126
  ]),
120
127
  message: zod_1.z.string(),
121
128
  });
@@ -149,7 +156,7 @@ const Roblox_Authentication_Api_Models_AccountPinResponse = zod_1.z.object({
149
156
  });
150
157
  const Roblox_Authentication_Api_Models_Request_ExternalAccessRequest = zod_1.z.object({
151
158
  authenticationProof: zod_1.z.string(),
152
- identityProviderPlatformType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
159
+ identityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
153
160
  additionalInfoPayload: zod_1.z.object({}),
154
161
  });
155
162
  const Roblox_Authentication_Api_Models_Response_ExternalIdentityGateway_ExternalIdentityAccessResponse = zod_1.z.object({
@@ -177,22 +184,22 @@ const Roblox_Authentication_Api_Models_Response_ExternalIdentityGateway_External
177
184
  success: zod_1.z.boolean(),
178
185
  });
179
186
  const Roblox_Authentication_Api_Models_Request_ExternalLoginAndLinkRequest = zod_1.z.object({
180
- ctype: zod_1.z.union([
181
- zod_1.z.literal(0),
182
- zod_1.z.literal(1),
183
- zod_1.z.literal(2),
184
- zod_1.z.literal(3),
185
- zod_1.z.literal(4),
186
- zod_1.z.literal(5),
187
- zod_1.z.literal(6),
188
- zod_1.z.literal(7),
189
- zod_1.z.literal(8),
190
- zod_1.z.literal(9),
187
+ ctype: zod_1.z.enum([
188
+ 'Email',
189
+ 'Username',
190
+ 'PhoneNumber',
191
+ 'EmailOtpSessionToken',
192
+ 'AuthToken',
193
+ 'Passkey',
194
+ 'AsUser',
195
+ 'TwoStepVerification',
196
+ 'XboxLive',
197
+ 'PlatformLive',
191
198
  ]),
192
199
  cvalue: zod_1.z.string(),
193
200
  password: zod_1.z.string(),
194
201
  authenticationProof: zod_1.z.string(),
195
- IdentityProviderPlatformType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
202
+ IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
196
203
  additionalInfoPayload: zod_1.z.object({}),
197
204
  });
198
205
  const Roblox_Authentication_Api_Models_Request_ExternalSignupRequest = zod_1.z.object({
@@ -201,11 +208,11 @@ const Roblox_Authentication_Api_Models_Request_ExternalSignupRequest = zod_1.z.o
201
208
  birthday: zod_1.z.string().datetime({ offset: true }),
202
209
  locale: zod_1.z.string(),
203
210
  authenticationProof: zod_1.z.string(),
204
- IdentityProviderPlatformType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
211
+ IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
205
212
  additionalInfoPayload: zod_1.z.object({}),
206
213
  });
207
214
  const Roblox_Authentication_Api_Models_Request_ExternalUnlinkRequest = zod_1.z.object({
208
- IdentityProviderPlatformType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
215
+ IdentityProviderPlatformType: zod_1.z.enum(['Undefined', 'Xbox', 'Playstation', 'Web']),
209
216
  additionalInfoPayload: zod_1.z.object({}),
210
217
  });
211
218
  const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest = zod_1.z.object({
@@ -233,7 +240,7 @@ const Roblox_Authentication_Api_Models_Request_InitializeLoginRequest = zod_1.z.
233
240
  challengeId: zod_1.z.string().optional(),
234
241
  });
235
242
  const Roblox_Authentication_Api_Models_LoginMethodModel = zod_1.z.object({
236
- method: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
243
+ method: zod_1.z.enum(['EmailOtp', 'Passkey', 'Password']),
237
244
  priority: zod_1.z.number().int(),
238
245
  });
239
246
  const Roblox_Authentication_Api_Models_Response_InitializeLoginResponse = zod_1.z.object({
@@ -246,31 +253,31 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
246
253
  serverNonce: zod_1.z.string(),
247
254
  });
248
255
  const Roblox_Authentication_Api_Models_AccountLinkParameters = zod_1.z.object({
249
- LinkingPlatform: zod_1.z.union([
250
- zod_1.z.literal(0),
251
- zod_1.z.literal(1),
252
- zod_1.z.literal(2),
253
- zod_1.z.literal(3),
254
- zod_1.z.literal(4),
255
- zod_1.z.literal(5),
256
- zod_1.z.literal(6),
257
- zod_1.z.literal(7),
258
- zod_1.z.literal(8),
259
- zod_1.z.literal(999),
256
+ LinkingPlatform: zod_1.z.enum([
257
+ 'Invalid',
258
+ 'Xbox',
259
+ 'Qq',
260
+ 'WeChat',
261
+ 'Facebook',
262
+ 'RobloxDeveloper',
263
+ 'RobloxGroupCreator',
264
+ 'Playstation',
265
+ 'ExternalProvider',
266
+ 'Example',
260
267
  ]),
261
268
  });
262
269
  const Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
263
- ctype: zod_1.z.union([
264
- zod_1.z.literal(0),
265
- zod_1.z.literal(1),
266
- zod_1.z.literal(2),
267
- zod_1.z.literal(3),
268
- zod_1.z.literal(4),
269
- zod_1.z.literal(5),
270
- zod_1.z.literal(6),
271
- zod_1.z.literal(7),
272
- zod_1.z.literal(8),
273
- zod_1.z.literal(9),
270
+ ctype: zod_1.z.enum([
271
+ 'Email',
272
+ 'Username',
273
+ 'PhoneNumber',
274
+ 'EmailOtpSessionToken',
275
+ 'AuthToken',
276
+ 'Passkey',
277
+ 'AsUser',
278
+ 'TwoStepVerification',
279
+ 'XboxLive',
280
+ 'PlatformLive',
274
281
  ]),
275
282
  cvalue: zod_1.z.string(),
276
283
  password: zod_1.z.string(),
@@ -291,6 +298,12 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
291
298
  const Roblox_Authentication_Api_Models_Request_DeletePasskeysRequest = zod_1.z.object({
292
299
  credentialNicknames: zod_1.z.array(zod_1.z.string()),
293
300
  });
301
+ const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest = zod_1.z.object({
302
+ recoverySession: zod_1.z.string(),
303
+ passkeySessionId: zod_1.z.string(),
304
+ passkeyRegistrationResponse: zod_1.z.string(),
305
+ userId: zod_1.z.number().int(),
306
+ });
294
307
  const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest = zod_1.z.object({
295
308
  sessionId: zod_1.z.string(),
296
309
  registrationResponse: zod_1.z.string(),
@@ -361,7 +374,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
361
374
  });
362
375
  const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
363
376
  otpSessionToken: zod_1.z.string(),
364
- otpContactType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
377
+ otpContactType: zod_1.z.enum(['Unset', 'Email']),
365
378
  });
366
379
  const Roblox_Authentication_Api_Models_Request_AuditContentValue = zod_1.z.object({
367
380
  translationKey: zod_1.z.string(),
@@ -376,7 +389,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = zod_1.z.obje
376
389
  const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
377
390
  username: zod_1.z.string(),
378
391
  password: zod_1.z.string(),
379
- gender: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
392
+ gender: zod_1.z.enum(['Unknown', 'Male', 'Female']),
380
393
  birthday: zod_1.z.string().datetime({ offset: true }),
381
394
  displayName: zod_1.z.string(),
382
395
  isTosAgreementBoxChecked: zod_1.z.boolean(),
@@ -422,7 +435,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
422
435
  password: zod_1.z.string(),
423
436
  });
424
437
  const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
425
- targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
438
+ targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
426
439
  target: zod_1.z.string(),
427
440
  });
428
441
  const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({
@@ -1057,6 +1070,47 @@ exports.postPasskeyDeletecredentialbatch = (0, __1.endpoint)({
1057
1070
  },
1058
1071
  ],
1059
1072
  });
1073
+ /**
1074
+ * @api POST https://auth.roblox.com/v1/passkey/finish-ar-preauth-registration
1075
+ * @summary Finishes account recovery pre-auth passkey registration by validating the recovery session,
1076
+ deactivating the user's password, and completing passkey registration.
1077
+ * @param body The request body containing recovery session and passkey details.
1078
+ */
1079
+ exports.postPasskeyFinishArPreauthRegistration = (0, __1.endpoint)({
1080
+ method: 'POST',
1081
+ path: '/v1/passkey/finish-ar-preauth-registration',
1082
+ baseUrl: 'https://auth.roblox.com',
1083
+ requestFormat: 'json',
1084
+ serializationMethod: {
1085
+ body: {},
1086
+ },
1087
+ parameters: {},
1088
+ body: Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistrationRequest,
1089
+ response: zod_1.z.object({}),
1090
+ errors: [
1091
+ {
1092
+ status: 400,
1093
+ description: `0: An unknown error occurred with the request.`,
1094
+ },
1095
+ {
1096
+ status: 401,
1097
+ description: `0: An unknown error occurred with the request.`,
1098
+ },
1099
+ {
1100
+ status: 403,
1101
+ description: `0: Token Validation Failed
1102
+ 1: Reached limit of pass keys registered.`,
1103
+ },
1104
+ {
1105
+ status: 500,
1106
+ description: `0: An unknown error occurred with the request.`,
1107
+ },
1108
+ {
1109
+ status: 503,
1110
+ description: `2: Feature disabled.`,
1111
+ },
1112
+ ],
1113
+ });
1060
1114
  /**
1061
1115
  * @api POST https://auth.roblox.com/v1/passkey/finish-preauth-registration
1062
1116
  * @param body
@@ -36,7 +36,7 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
36
36
  serverNonce: z.string(),
37
37
  });
38
38
  const Roblox_Authentication_Api_Models_PasswordResetModel = z.object({
39
- targetType: z.union([z.literal(0), z.literal(1), z.literal(2)]),
39
+ targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
40
40
  ticket: z.string(),
41
41
  userId: z.number().int(),
42
42
  password: z.string(),
@@ -57,15 +57,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
57
57
  });
58
58
  const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse =
59
59
  z.object({
60
- mediaType: z.union([
61
- z.literal(0),
62
- z.literal(1),
63
- z.literal(2),
64
- z.literal(3),
65
- z.literal(4),
66
- z.literal(5),
67
- z.literal(6),
68
- z.literal(7),
60
+ mediaType: z.enum([
61
+ "Email",
62
+ "SMS",
63
+ "Authenticator",
64
+ "RecoveryCode",
65
+ "SecurityKey",
66
+ "CrossDevice",
67
+ "Password",
68
+ "Passkey",
69
69
  ]),
70
70
  ticket: z.string(),
71
71
  });
@@ -82,13 +82,13 @@ const Roblox_Authentication_Api_Models_LoginResponse = z.object({
82
82
  shouldAutoLoginFromRecovery: z.boolean(),
83
83
  });
84
84
  const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
85
- code: z.union([
86
- z.literal(0),
87
- z.literal(1),
88
- z.literal(2),
89
- z.literal(3),
90
- z.literal(4),
91
- z.literal(5),
85
+ code: z.enum([
86
+ "ValidPassword",
87
+ "WeakPasswordError",
88
+ "PasswordLengthError",
89
+ "PasswordSameAsUsernameError",
90
+ "ForbiddenPasswordError",
91
+ "DumbStringsError",
92
92
  ]),
93
93
  message: z.string(),
94
94
  });
@@ -125,17 +125,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = z.object({
125
125
  usernames: z.array(z.string()),
126
126
  });
127
127
  const Roblox_Authentication_Api_Models_UsernameValidationResponse = z.object({
128
- code: z.union([
129
- z.literal(0),
130
- z.literal(1),
131
- z.literal(2),
132
- z.literal(3),
133
- z.literal(4),
134
- z.literal(5),
135
- z.literal(6),
136
- z.literal(7),
137
- z.literal(10),
138
- z.literal(12),
128
+ code: z.enum([
129
+ "ValidUsername",
130
+ "AlreadyInUseError",
131
+ "ModerationError",
132
+ "InvalidLengthError",
133
+ "StartsOrEndsWithUnderscoreError",
134
+ "TooManyUnderscoresError",
135
+ "ContainsSpacesError",
136
+ "InvalidCharactersError",
137
+ "ContainsPiiError",
138
+ "ContainsReservedUsernameError",
139
139
  ]),
140
140
  message: z.string(),
141
141
  });
@@ -148,31 +148,31 @@ const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest
148
148
  z.object({ loginTicket: z.string(), resultToken: z.string() });
149
149
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
150
150
  const Roblox_Authentication_Api_Models_AccountLinkParameters = z.object({
151
- LinkingPlatform: z.union([
152
- z.literal(0),
153
- z.literal(1),
154
- z.literal(2),
155
- z.literal(3),
156
- z.literal(4),
157
- z.literal(5),
158
- z.literal(6),
159
- z.literal(7),
160
- z.literal(8),
161
- z.literal(999),
151
+ LinkingPlatform: z.enum([
152
+ "Invalid",
153
+ "Xbox",
154
+ "Qq",
155
+ "WeChat",
156
+ "Facebook",
157
+ "RobloxDeveloper",
158
+ "RobloxGroupCreator",
159
+ "Playstation",
160
+ "ExternalProvider",
161
+ "Example",
162
162
  ]),
163
163
  });
164
164
  const Roblox_Authentication_Api_Models_LoginRequest = z.object({
165
- ctype: z.union([
166
- z.literal(0),
167
- z.literal(1),
168
- z.literal(2),
169
- z.literal(3),
170
- z.literal(4),
171
- z.literal(5),
172
- z.literal(6),
173
- z.literal(7),
174
- z.literal(8),
175
- z.literal(9),
165
+ ctype: z.enum([
166
+ "Email",
167
+ "Username",
168
+ "PhoneNumber",
169
+ "EmailOtpSessionToken",
170
+ "AuthToken",
171
+ "Passkey",
172
+ "AsUser",
173
+ "TwoStepVerification",
174
+ "XboxLive",
175
+ "PlatformLive",
176
176
  ]),
177
177
  cvalue: z.string(),
178
178
  password: z.string(),
@@ -194,7 +194,7 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
194
194
  Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
195
195
  });
196
196
  const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
197
- targetType: z.union([z.literal(0), z.literal(1), z.literal(2)]),
197
+ targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
198
198
  target: z.string(),
199
199
  captchaId: z.string(),
200
200
  captchaToken: z.string(),
@@ -203,11 +203,11 @@ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = z.object({
203
203
  });
204
204
  const Roblox_Authentication_Api_Models_SendResetPasswordResponse = z.object({
205
205
  nonce: z.string(),
206
- transmissionType: z.union([z.literal(0), z.literal(1)]),
206
+ transmissionType: z.enum(["Sms", "Email"]),
207
207
  });
208
208
  const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest =
209
209
  z.object({
210
- targetType: z.union([z.literal(0), z.literal(1), z.literal(2)]),
210
+ targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
211
211
  nonce: z.string(),
212
212
  code: z.string(),
213
213
  });
@@ -236,7 +236,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
236
236
  });
237
237
  const Roblox_Authentication_Api_Models_Request_OtpSessionModel = z.object({
238
238
  otpSessionToken: z.string(),
239
- otpContactType: z.union([z.literal(1), z.literal(2)]),
239
+ otpContactType: z.enum(["Unset", "Email"]),
240
240
  });
241
241
  const Roblox_Authentication_Api_Models_Request_AuditContentValue = z.object({
242
242
  translationKey: z.string(),
@@ -251,7 +251,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = z.object({
251
251
  const Roblox_Authentication_Api_Models_SignupRequest = z.object({
252
252
  username: z.string(),
253
253
  password: z.string(),
254
- gender: z.union([z.literal(1), z.literal(2), z.literal(3)]),
254
+ gender: z.enum(["Unknown", "Male", "Female"]),
255
255
  birthday: z.string().datetime({ offset: true }),
256
256
  displayName: z.string(),
257
257
  isTosAgreementBoxChecked: z.boolean(),
@@ -299,7 +299,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = z.object({
299
299
  password: z.string(),
300
300
  });
301
301
  const Roblox_Authentication_Api_Models_RecoverUsernameRequest = z.object({
302
- targetType: z.union([z.literal(0), z.literal(1), z.literal(2)]),
302
+ targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
303
303
  target: z.string(),
304
304
  });
305
305
  const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({
@@ -37,7 +37,7 @@ const Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel =
37
37
  serverNonce: zod_1.z.string(),
38
38
  });
39
39
  const Roblox_Authentication_Api_Models_PasswordResetModel = zod_1.z.object({
40
- targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
40
+ targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
41
41
  ticket: zod_1.z.string(),
42
42
  userId: zod_1.z.number().int(),
43
43
  password: zod_1.z.string(),
@@ -56,15 +56,15 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
56
56
  displayName: zod_1.z.string(),
57
57
  });
58
58
  const Roblox_Authentication_Api_Models_TwoStepVerificationSentResponse = zod_1.z.object({
59
- mediaType: zod_1.z.union([
60
- zod_1.z.literal(0),
61
- zod_1.z.literal(1),
62
- zod_1.z.literal(2),
63
- zod_1.z.literal(3),
64
- zod_1.z.literal(4),
65
- zod_1.z.literal(5),
66
- zod_1.z.literal(6),
67
- zod_1.z.literal(7),
59
+ mediaType: zod_1.z.enum([
60
+ 'Email',
61
+ 'SMS',
62
+ 'Authenticator',
63
+ 'RecoveryCode',
64
+ 'SecurityKey',
65
+ 'CrossDevice',
66
+ 'Password',
67
+ 'Passkey',
68
68
  ]),
69
69
  ticket: zod_1.z.string(),
70
70
  });
@@ -80,7 +80,14 @@ const Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
80
80
  shouldAutoLoginFromRecovery: zod_1.z.boolean(),
81
81
  });
82
82
  const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
83
- code: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]),
83
+ code: zod_1.z.enum([
84
+ 'ValidPassword',
85
+ 'WeakPasswordError',
86
+ 'PasswordLengthError',
87
+ 'PasswordSameAsUsernameError',
88
+ 'ForbiddenPasswordError',
89
+ 'DumbStringsError',
90
+ ]),
84
91
  message: zod_1.z.string(),
85
92
  });
86
93
  const Roblox_Authentication_Api_Models_PasswordValidationModel = zod_1.z.object({
@@ -116,17 +123,17 @@ const Roblox_Authentication_Api_Models_UsernamesResponse = zod_1.z.object({
116
123
  usernames: zod_1.z.array(zod_1.z.string()),
117
124
  });
118
125
  const Roblox_Authentication_Api_Models_UsernameValidationResponse = zod_1.z.object({
119
- code: zod_1.z.union([
120
- zod_1.z.literal(0),
121
- zod_1.z.literal(1),
122
- zod_1.z.literal(2),
123
- zod_1.z.literal(3),
124
- zod_1.z.literal(4),
125
- zod_1.z.literal(5),
126
- zod_1.z.literal(6),
127
- zod_1.z.literal(7),
128
- zod_1.z.literal(10),
129
- zod_1.z.literal(12),
126
+ code: zod_1.z.enum([
127
+ 'ValidUsername',
128
+ 'AlreadyInUseError',
129
+ 'ModerationError',
130
+ 'InvalidLengthError',
131
+ 'StartsOrEndsWithUnderscoreError',
132
+ 'TooManyUnderscoresError',
133
+ 'ContainsSpacesError',
134
+ 'InvalidCharactersError',
135
+ 'ContainsPiiError',
136
+ 'ContainsReservedUsernameError',
130
137
  ]),
131
138
  message: zod_1.z.string(),
132
139
  });
@@ -141,31 +148,31 @@ const Roblox_Authentication_Api_Models_Request_IdentityVerificationLoginRequest
141
148
  });
142
149
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
143
150
  const Roblox_Authentication_Api_Models_AccountLinkParameters = zod_1.z.object({
144
- LinkingPlatform: zod_1.z.union([
145
- zod_1.z.literal(0),
146
- zod_1.z.literal(1),
147
- zod_1.z.literal(2),
148
- zod_1.z.literal(3),
149
- zod_1.z.literal(4),
150
- zod_1.z.literal(5),
151
- zod_1.z.literal(6),
152
- zod_1.z.literal(7),
153
- zod_1.z.literal(8),
154
- zod_1.z.literal(999),
151
+ LinkingPlatform: zod_1.z.enum([
152
+ 'Invalid',
153
+ 'Xbox',
154
+ 'Qq',
155
+ 'WeChat',
156
+ 'Facebook',
157
+ 'RobloxDeveloper',
158
+ 'RobloxGroupCreator',
159
+ 'Playstation',
160
+ 'ExternalProvider',
161
+ 'Example',
155
162
  ]),
156
163
  });
157
164
  const Roblox_Authentication_Api_Models_LoginRequest = zod_1.z.object({
158
- ctype: zod_1.z.union([
159
- zod_1.z.literal(0),
160
- zod_1.z.literal(1),
161
- zod_1.z.literal(2),
162
- zod_1.z.literal(3),
163
- zod_1.z.literal(4),
164
- zod_1.z.literal(5),
165
- zod_1.z.literal(6),
166
- zod_1.z.literal(7),
167
- zod_1.z.literal(8),
168
- zod_1.z.literal(9),
165
+ ctype: zod_1.z.enum([
166
+ 'Email',
167
+ 'Username',
168
+ 'PhoneNumber',
169
+ 'EmailOtpSessionToken',
170
+ 'AuthToken',
171
+ 'Passkey',
172
+ 'AsUser',
173
+ 'TwoStepVerification',
174
+ 'XboxLive',
175
+ 'PlatformLive',
169
176
  ]),
170
177
  cvalue: zod_1.z.string(),
171
178
  password: zod_1.z.string(),
@@ -184,7 +191,7 @@ const Roblox_Authentication_Api_Models_Request_LogoutFromAllSessionsAndReauthent
184
191
  SecureAuthenticationIntent: Roblox_Authentication_Api_Models_Request_SecureAuthenticationIntentModel,
185
192
  });
186
193
  const Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object({
187
- targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
194
+ targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
188
195
  target: zod_1.z.string(),
189
196
  captchaId: zod_1.z.string(),
190
197
  captchaToken: zod_1.z.string(),
@@ -193,10 +200,10 @@ const Roblox_Authentication_Api_Models_SendResetPasswordRequest = zod_1.z.object
193
200
  });
194
201
  const Roblox_Authentication_Api_Models_SendResetPasswordResponse = zod_1.z.object({
195
202
  nonce: zod_1.z.string(),
196
- transmissionType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
203
+ transmissionType: zod_1.z.enum(['Sms', 'Email']),
197
204
  });
198
205
  const Roblox_Authentication_Api_Models_PasswordResetVerificationRequest = zod_1.z.object({
199
- targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
206
+ targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
200
207
  nonce: zod_1.z.string(),
201
208
  code: zod_1.z.string(),
202
209
  });
@@ -222,7 +229,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = zod_1.z.object({
222
229
  });
223
230
  const Roblox_Authentication_Api_Models_Request_OtpSessionModel = zod_1.z.object({
224
231
  otpSessionToken: zod_1.z.string(),
225
- otpContactType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
232
+ otpContactType: zod_1.z.enum(['Unset', 'Email']),
226
233
  });
227
234
  const Roblox_Authentication_Api_Models_Request_AuditContentValue = zod_1.z.object({
228
235
  translationKey: zod_1.z.string(),
@@ -237,7 +244,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = zod_1.z.obje
237
244
  const Roblox_Authentication_Api_Models_SignupRequest = zod_1.z.object({
238
245
  username: zod_1.z.string(),
239
246
  password: zod_1.z.string(),
240
- gender: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
247
+ gender: zod_1.z.enum(['Unknown', 'Male', 'Female']),
241
248
  birthday: zod_1.z.string().datetime({ offset: true }),
242
249
  displayName: zod_1.z.string(),
243
250
  isTosAgreementBoxChecked: zod_1.z.boolean(),
@@ -282,7 +289,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = zod_1.z.object({
282
289
  password: zod_1.z.string(),
283
290
  });
284
291
  const Roblox_Authentication_Api_Models_RecoverUsernameRequest = zod_1.z.object({
285
- targetType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
292
+ targetType: zod_1.z.enum(['Email', 'PhoneNumber', 'RecoverySessionID']),
286
293
  target: zod_1.z.string(),
287
294
  });
288
295
  const Roblox_Authentication_Api_Models_RecoverUsernameResponse = zod_1.z.object({