rozod 6.3.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 (54) 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 +84 -84
  10. package/lib/endpoints/authv1.js +69 -62
  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/badgesv1.d.ts +6 -2
  16. package/lib/endpoints/badgesv1.js +2 -2
  17. package/lib/endpoints/catalogv1.d.ts +37 -43
  18. package/lib/endpoints/catalogv1.js +37 -37
  19. package/lib/endpoints/catalogv2.d.ts +11 -11
  20. package/lib/endpoints/catalogv2.js +11 -11
  21. package/lib/endpoints/clientsettingsv2.d.ts +7 -7
  22. package/lib/endpoints/clientsettingsv2.js +8 -1
  23. package/lib/endpoints/developv1.d.ts +31 -31
  24. package/lib/endpoints/developv1.js +26 -26
  25. package/lib/endpoints/developv2.d.ts +27 -27
  26. package/lib/endpoints/developv2.js +22 -22
  27. package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
  28. package/lib/endpoints/economycreatorstatsv1.js +1 -1
  29. package/lib/endpoints/followingsv2.d.ts +2 -2
  30. package/lib/endpoints/followingsv2.js +2 -2
  31. package/lib/endpoints/friendsv1.d.ts +24 -23
  32. package/lib/endpoints/friendsv1.js +24 -23
  33. package/lib/endpoints/gamesv1.d.ts +27 -615
  34. package/lib/endpoints/gamesv1.js +28 -608
  35. package/lib/endpoints/gamesv2.d.ts +187 -260
  36. package/lib/endpoints/gamesv2.js +130 -190
  37. package/lib/endpoints/groupsv1.d.ts +26 -26
  38. package/lib/endpoints/groupsv1.js +28 -16
  39. package/lib/endpoints/groupsv2.d.ts +92 -92
  40. package/lib/endpoints/groupsv2.js +93 -87
  41. package/lib/endpoints/inventoryv1.d.ts +9 -21
  42. package/lib/endpoints/inventoryv1.js +4 -4
  43. package/lib/endpoints/inventoryv2.d.ts +91 -91
  44. package/lib/endpoints/inventoryv2.js +86 -86
  45. package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
  46. package/lib/endpoints/itemconfigurationv1.js +1 -1
  47. package/lib/endpoints/tradesv1.d.ts +10 -16
  48. package/lib/endpoints/tradesv1.js +10 -10
  49. package/lib/endpoints/twostepverificationv1.d.ts +59 -60
  50. package/lib/endpoints/twostepverificationv1.js +59 -60
  51. package/lib/endpoints/usersv1.d.ts +1 -1
  52. package/lib/endpoints/usersv1.js +1 -1
  53. package/lib/index.js +29 -3
  54. 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(),
@@ -401,7 +401,7 @@ const Roblox_Authentication_Api_Models_ReferralDataModel = z.object({
401
401
  });
402
402
  const Roblox_Authentication_Api_Models_Request_OtpSessionModel = z.object({
403
403
  otpSessionToken: z.string(),
404
- otpContactType: z.union([z.literal(1), z.literal(2)]),
404
+ otpContactType: z.enum(["Unset", "Email"]),
405
405
  });
406
406
  const Roblox_Authentication_Api_Models_Request_AuditContentValue = z.object({
407
407
  translationKey: z.string(),
@@ -416,7 +416,7 @@ const Roblox_Authentication_Api_Models_Request_AuditSystemContent = z.object({
416
416
  const Roblox_Authentication_Api_Models_SignupRequest = z.object({
417
417
  username: z.string(),
418
418
  password: z.string(),
419
- gender: z.union([z.literal(1), z.literal(2), z.literal(3)]),
419
+ gender: z.enum(["Unknown", "Male", "Female"]),
420
420
  birthday: z.string().datetime({ offset: true }),
421
421
  displayName: z.string(),
422
422
  isTosAgreementBoxChecked: z.boolean(),
@@ -466,7 +466,7 @@ const Roblox_Authentication_Api_Models_UsernameChangeRequest = z.object({
466
466
  password: z.string(),
467
467
  });
468
468
  const Roblox_Authentication_Api_Models_RecoverUsernameRequest = z.object({
469
- targetType: z.union([z.literal(0), z.literal(1), z.literal(2)]),
469
+ targetType: z.enum(["Email", "PhoneNumber", "RecoverySessionID"]),
470
470
  target: z.string(),
471
471
  });
472
472
  const Roblox_Authentication_Api_Models_RecoverUsernameResponse = z.object({