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
@@ -4,7 +4,7 @@ import { endpoint } from "..";
4
4
  const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ =
5
5
  z.object({
6
6
  id: z.number().int(),
7
- type: z.union([z.literal(1), z.literal(2)]),
7
+ type: z.enum(["User", "Group"]),
8
8
  name: z.string(),
9
9
  });
10
10
  const Roblox_Inventory_Api_V2_AssetOwnerResponse = z.object({
@@ -25,90 +25,90 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwne
25
25
  const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = z.object({
26
26
  assetId: z.number().int(),
27
27
  name: z.string(),
28
- assetType: z.union([
29
- z.literal(1),
30
- z.literal(2),
31
- z.literal(3),
32
- z.literal(4),
33
- z.literal(5),
34
- z.literal(6),
35
- z.literal(7),
36
- z.literal(8),
37
- z.literal(9),
38
- z.literal(10),
39
- z.literal(11),
40
- z.literal(12),
41
- z.literal(13),
42
- z.literal(16),
43
- z.literal(17),
44
- z.literal(18),
45
- z.literal(19),
46
- z.literal(21),
47
- z.literal(22),
48
- z.literal(24),
49
- z.literal(25),
50
- z.literal(26),
51
- z.literal(27),
52
- z.literal(28),
53
- z.literal(29),
54
- z.literal(30),
55
- z.literal(31),
56
- z.literal(32),
57
- z.literal(33),
58
- z.literal(34),
59
- z.literal(35),
60
- z.literal(37),
61
- z.literal(38),
62
- z.literal(39),
63
- z.literal(40),
64
- z.literal(41),
65
- z.literal(42),
66
- z.literal(43),
67
- z.literal(44),
68
- z.literal(45),
69
- z.literal(46),
70
- z.literal(47),
71
- z.literal(48),
72
- z.literal(49),
73
- z.literal(50),
74
- z.literal(51),
75
- z.literal(52),
76
- z.literal(53),
77
- z.literal(54),
78
- z.literal(55),
79
- z.literal(56),
80
- z.literal(59),
81
- z.literal(60),
82
- z.literal(61),
83
- z.literal(62),
84
- z.literal(63),
85
- z.literal(64),
86
- z.literal(65),
87
- z.literal(66),
88
- z.literal(67),
89
- z.literal(68),
90
- z.literal(69),
91
- z.literal(70),
92
- z.literal(71),
93
- z.literal(72),
94
- z.literal(73),
95
- z.literal(74),
96
- z.literal(75),
97
- z.literal(76),
98
- z.literal(77),
99
- z.literal(78),
100
- z.literal(79),
101
- z.literal(80),
102
- z.literal(81),
103
- z.literal(82),
104
- z.literal(83),
105
- z.literal(84),
106
- z.literal(85),
107
- z.literal(86),
108
- z.literal(87),
109
- z.literal(88),
110
- z.literal(89),
111
- z.literal(90),
28
+ assetType: z.enum([
29
+ "Image",
30
+ "TShirt",
31
+ "Audio",
32
+ "Mesh",
33
+ "Lua",
34
+ "HTML",
35
+ "Text",
36
+ "Hat",
37
+ "Place",
38
+ "Model",
39
+ "Shirt",
40
+ "Pants",
41
+ "Decal",
42
+ "Avatar",
43
+ "Head",
44
+ "Face",
45
+ "Gear",
46
+ "Badge",
47
+ "GroupEmblem",
48
+ "Animation",
49
+ "Arms",
50
+ "Legs",
51
+ "Torso",
52
+ "RightArm",
53
+ "LeftArm",
54
+ "LeftLeg",
55
+ "RightLeg",
56
+ "Package",
57
+ "YouTubeVideo",
58
+ "GamePass",
59
+ "App",
60
+ "Code",
61
+ "Plugin",
62
+ "SolidModel",
63
+ "MeshPart",
64
+ "HairAccessory",
65
+ "FaceAccessory",
66
+ "NeckAccessory",
67
+ "ShoulderAccessory",
68
+ "FrontAccessory",
69
+ "BackAccessory",
70
+ "WaistAccessory",
71
+ "ClimbAnimation",
72
+ "DeathAnimation",
73
+ "FallAnimation",
74
+ "IdleAnimation",
75
+ "JumpAnimation",
76
+ "RunAnimation",
77
+ "SwimAnimation",
78
+ "WalkAnimation",
79
+ "PoseAnimation",
80
+ "LocalizationTableManifest",
81
+ "LocalizationTableTranslation",
82
+ "EmoteAnimation",
83
+ "Video",
84
+ "TexturePack",
85
+ "TShirtAccessory",
86
+ "ShirtAccessory",
87
+ "PantsAccessory",
88
+ "JacketAccessory",
89
+ "SweaterAccessory",
90
+ "ShortsAccessory",
91
+ "LeftShoeAccessory",
92
+ "RightShoeAccessory",
93
+ "DressSkirtAccessory",
94
+ "FontFamily",
95
+ "FontFace",
96
+ "MeshHiddenSurfaceRemoval",
97
+ "EyebrowAccessory",
98
+ "EyelashAccessory",
99
+ "MoodAnimation",
100
+ "DynamicHead",
101
+ "CodeSnippet",
102
+ "AdsVideo",
103
+ "OtaUpdate",
104
+ "Screenshot",
105
+ "RuntimePropertySet",
106
+ "StorePreviewVideo",
107
+ "GamePreviewVideo",
108
+ "CreatorExperienceConfig",
109
+ "FaceMakeup",
110
+ "LipMakeup",
111
+ "EyeMakeup",
112
112
  ]),
113
113
  created: z.string().datetime({ offset: true }),
114
114
  });
@@ -121,12 +121,12 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAsset
121
121
  const Roblox_Inventory_Api_Models_UserModel = z.object({
122
122
  userId: z.number().int(),
123
123
  username: z.string(),
124
- buildersClubMembershipType: z.union([
125
- z.literal(0),
126
- z.literal(1),
127
- z.literal(2),
128
- z.literal(3),
129
- z.literal(4),
124
+ buildersClubMembershipType: z.enum([
125
+ "None",
126
+ "BC",
127
+ "TBC",
128
+ "OBC",
129
+ "RobloxPremium",
130
130
  ]),
131
131
  });
132
132
  const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
6
  const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ = zod_1.z.object({
7
7
  id: zod_1.z.number().int(),
8
- type: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
8
+ type: zod_1.z.enum(['User', 'Group']),
9
9
  name: zod_1.z.string(),
10
10
  });
11
11
  const Roblox_Inventory_Api_V2_AssetOwnerResponse = zod_1.z.object({
@@ -24,90 +24,90 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwne
24
24
  const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = zod_1.z.object({
25
25
  assetId: zod_1.z.number().int(),
26
26
  name: zod_1.z.string(),
27
- assetType: zod_1.z.union([
28
- zod_1.z.literal(1),
29
- zod_1.z.literal(2),
30
- zod_1.z.literal(3),
31
- zod_1.z.literal(4),
32
- zod_1.z.literal(5),
33
- zod_1.z.literal(6),
34
- zod_1.z.literal(7),
35
- zod_1.z.literal(8),
36
- zod_1.z.literal(9),
37
- zod_1.z.literal(10),
38
- zod_1.z.literal(11),
39
- zod_1.z.literal(12),
40
- zod_1.z.literal(13),
41
- zod_1.z.literal(16),
42
- zod_1.z.literal(17),
43
- zod_1.z.literal(18),
44
- zod_1.z.literal(19),
45
- zod_1.z.literal(21),
46
- zod_1.z.literal(22),
47
- zod_1.z.literal(24),
48
- zod_1.z.literal(25),
49
- zod_1.z.literal(26),
50
- zod_1.z.literal(27),
51
- zod_1.z.literal(28),
52
- zod_1.z.literal(29),
53
- zod_1.z.literal(30),
54
- zod_1.z.literal(31),
55
- zod_1.z.literal(32),
56
- zod_1.z.literal(33),
57
- zod_1.z.literal(34),
58
- zod_1.z.literal(35),
59
- zod_1.z.literal(37),
60
- zod_1.z.literal(38),
61
- zod_1.z.literal(39),
62
- zod_1.z.literal(40),
63
- zod_1.z.literal(41),
64
- zod_1.z.literal(42),
65
- zod_1.z.literal(43),
66
- zod_1.z.literal(44),
67
- zod_1.z.literal(45),
68
- zod_1.z.literal(46),
69
- zod_1.z.literal(47),
70
- zod_1.z.literal(48),
71
- zod_1.z.literal(49),
72
- zod_1.z.literal(50),
73
- zod_1.z.literal(51),
74
- zod_1.z.literal(52),
75
- zod_1.z.literal(53),
76
- zod_1.z.literal(54),
77
- zod_1.z.literal(55),
78
- zod_1.z.literal(56),
79
- zod_1.z.literal(59),
80
- zod_1.z.literal(60),
81
- zod_1.z.literal(61),
82
- zod_1.z.literal(62),
83
- zod_1.z.literal(63),
84
- zod_1.z.literal(64),
85
- zod_1.z.literal(65),
86
- zod_1.z.literal(66),
87
- zod_1.z.literal(67),
88
- zod_1.z.literal(68),
89
- zod_1.z.literal(69),
90
- zod_1.z.literal(70),
91
- zod_1.z.literal(71),
92
- zod_1.z.literal(72),
93
- zod_1.z.literal(73),
94
- zod_1.z.literal(74),
95
- zod_1.z.literal(75),
96
- zod_1.z.literal(76),
97
- zod_1.z.literal(77),
98
- zod_1.z.literal(78),
99
- zod_1.z.literal(79),
100
- zod_1.z.literal(80),
101
- zod_1.z.literal(81),
102
- zod_1.z.literal(82),
103
- zod_1.z.literal(83),
104
- zod_1.z.literal(84),
105
- zod_1.z.literal(85),
106
- zod_1.z.literal(86),
107
- zod_1.z.literal(87),
108
- zod_1.z.literal(88),
109
- zod_1.z.literal(89),
110
- zod_1.z.literal(90),
27
+ assetType: zod_1.z.enum([
28
+ 'Image',
29
+ 'TShirt',
30
+ 'Audio',
31
+ 'Mesh',
32
+ 'Lua',
33
+ 'HTML',
34
+ 'Text',
35
+ 'Hat',
36
+ 'Place',
37
+ 'Model',
38
+ 'Shirt',
39
+ 'Pants',
40
+ 'Decal',
41
+ 'Avatar',
42
+ 'Head',
43
+ 'Face',
44
+ 'Gear',
45
+ 'Badge',
46
+ 'GroupEmblem',
47
+ 'Animation',
48
+ 'Arms',
49
+ 'Legs',
50
+ 'Torso',
51
+ 'RightArm',
52
+ 'LeftArm',
53
+ 'LeftLeg',
54
+ 'RightLeg',
55
+ 'Package',
56
+ 'YouTubeVideo',
57
+ 'GamePass',
58
+ 'App',
59
+ 'Code',
60
+ 'Plugin',
61
+ 'SolidModel',
62
+ 'MeshPart',
63
+ 'HairAccessory',
64
+ 'FaceAccessory',
65
+ 'NeckAccessory',
66
+ 'ShoulderAccessory',
67
+ 'FrontAccessory',
68
+ 'BackAccessory',
69
+ 'WaistAccessory',
70
+ 'ClimbAnimation',
71
+ 'DeathAnimation',
72
+ 'FallAnimation',
73
+ 'IdleAnimation',
74
+ 'JumpAnimation',
75
+ 'RunAnimation',
76
+ 'SwimAnimation',
77
+ 'WalkAnimation',
78
+ 'PoseAnimation',
79
+ 'LocalizationTableManifest',
80
+ 'LocalizationTableTranslation',
81
+ 'EmoteAnimation',
82
+ 'Video',
83
+ 'TexturePack',
84
+ 'TShirtAccessory',
85
+ 'ShirtAccessory',
86
+ 'PantsAccessory',
87
+ 'JacketAccessory',
88
+ 'SweaterAccessory',
89
+ 'ShortsAccessory',
90
+ 'LeftShoeAccessory',
91
+ 'RightShoeAccessory',
92
+ 'DressSkirtAccessory',
93
+ 'FontFamily',
94
+ 'FontFace',
95
+ 'MeshHiddenSurfaceRemoval',
96
+ 'EyebrowAccessory',
97
+ 'EyelashAccessory',
98
+ 'MoodAnimation',
99
+ 'DynamicHead',
100
+ 'CodeSnippet',
101
+ 'AdsVideo',
102
+ 'OtaUpdate',
103
+ 'Screenshot',
104
+ 'RuntimePropertySet',
105
+ 'StorePreviewVideo',
106
+ 'GamePreviewVideo',
107
+ 'CreatorExperienceConfig',
108
+ 'FaceMakeup',
109
+ 'LipMakeup',
110
+ 'EyeMakeup',
111
111
  ]),
112
112
  created: zod_1.z.string().datetime({ offset: true }),
113
113
  });
@@ -119,7 +119,7 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAsset
119
119
  const Roblox_Inventory_Api_Models_UserModel = zod_1.z.object({
120
120
  userId: zod_1.z.number().int(),
121
121
  username: zod_1.z.string(),
122
- buildersClubMembershipType: 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)]),
122
+ buildersClubMembershipType: zod_1.z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
123
123
  });
124
124
  const Roblox_Inventory_Api_Models_InventoryItemModel = zod_1.z.object({
125
125
  expireAt: zod_1.z.string().datetime({ offset: true }),
@@ -66,7 +66,7 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
66
66
  "Free",
67
67
  ]),
68
68
  description: z.string(),
69
- creatorType: z.enum(["Unknown", "User", "Group"]),
69
+ creatorType: z.string(),
70
70
  creatorTargetId: z.number().int(),
71
71
  price: z.number().int(),
72
72
  priceConfiguration: Roblox_ItemConfiguration_Api_PriceConfigurationModel,
@@ -64,7 +64,7 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = zod_1.z.objec
64
64
  'Free',
65
65
  ]),
66
66
  description: zod_1.z.string(),
67
- creatorType: zod_1.z.enum(['Unknown', 'User', 'Group']),
67
+ creatorType: zod_1.z.string(),
68
68
  creatorTargetId: zod_1.z.number().int(),
69
69
  price: zod_1.z.number().int(),
70
70
  priceConfiguration: Roblox_ItemConfiguration_Api_PriceConfigurationModel,
@@ -14,13 +14,7 @@ const Roblox_Trades_Api_UserAssetResponse = z.object({
14
14
  recentAveragePrice: z.number().int(),
15
15
  originalPrice: z.number().int(),
16
16
  assetStock: z.number().int(),
17
- membershipType: z.union([
18
- z.literal(0),
19
- z.literal(1),
20
- z.literal(2),
21
- z.literal(3),
22
- z.literal(4),
23
- ]),
17
+ membershipType: z.enum(["None", "BC", "TBC", "OBC", "RobloxPremium"]),
24
18
  });
25
19
  const Roblox_Trades_Api_TradeOfferResponse = z.object({
26
20
  user: Roblox_Web_Responses_Users_SkinnyUserResponse,
@@ -85,15 +79,15 @@ const Roblox_Trades_Api_TradeMetadata = z.object({
85
79
  });
86
80
  const Roblox_Trades_Api_CanTradeResponse = z.object({
87
81
  canTrade: z.boolean(),
88
- status: z.union([
89
- z.literal(0),
90
- z.literal(1),
91
- z.literal(2),
92
- z.literal(3),
93
- z.literal(4),
94
- z.literal(5),
95
- z.literal(6),
96
- z.literal(7),
82
+ status: z.enum([
83
+ "Unknown",
84
+ "CanTrade",
85
+ "CannotTradeWithSelf",
86
+ "SenderCannotTrade",
87
+ "ReceiverCannotTrade",
88
+ "SenderPrivacyTooStrict",
89
+ "UsersCannotTrade",
90
+ "TradeAccepterNeedsFriction",
97
91
  ]),
98
92
  });
99
93
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
@@ -16,7 +16,7 @@ const Roblox_Trades_Api_UserAssetResponse = zod_1.z.object({
16
16
  recentAveragePrice: zod_1.z.number().int(),
17
17
  originalPrice: zod_1.z.number().int(),
18
18
  assetStock: zod_1.z.number().int(),
19
- membershipType: 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)]),
19
+ membershipType: zod_1.z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
20
20
  });
21
21
  const Roblox_Trades_Api_TradeOfferResponse = zod_1.z.object({
22
22
  user: Roblox_Web_Responses_Users_SkinnyUserResponse,
@@ -80,15 +80,15 @@ const Roblox_Trades_Api_TradeMetadata = zod_1.z.object({
80
80
  });
81
81
  const Roblox_Trades_Api_CanTradeResponse = zod_1.z.object({
82
82
  canTrade: zod_1.z.boolean(),
83
- status: zod_1.z.union([
84
- zod_1.z.literal(0),
85
- zod_1.z.literal(1),
86
- zod_1.z.literal(2),
87
- zod_1.z.literal(3),
88
- zod_1.z.literal(4),
89
- zod_1.z.literal(5),
90
- zod_1.z.literal(6),
91
- zod_1.z.literal(7),
83
+ status: zod_1.z.enum([
84
+ 'Unknown',
85
+ 'CanTrade',
86
+ 'CannotTradeWithSelf',
87
+ 'SenderCannotTrade',
88
+ 'ReceiverCannotTrade',
89
+ 'SenderPrivacyTooStrict',
90
+ 'UsersCannotTrade',
91
+ 'TradeAccepterNeedsFriction',
92
92
  ]),
93
93
  });
94
94
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
@@ -32,18 +32,17 @@ const Roblox_TwoStepVerification_Api_MetadataResponse = z.object({
32
32
  maskedUserEmail: z.string(),
33
33
  isUserU13: z.boolean(),
34
34
  isDelayedUiEnabled: z.boolean(),
35
- is2svRecoveryEnabled: z.boolean(),
36
35
  });
37
36
  const Roblox_TwoStepVerification_Api_UserConfigurationMethod = z.object({
38
- mediaType: z.union([
39
- z.literal(0),
40
- z.literal(1),
41
- z.literal(2),
42
- z.literal(3),
43
- z.literal(4),
44
- z.literal(5),
45
- z.literal(6),
46
- z.literal(7),
37
+ mediaType: z.enum([
38
+ "Email",
39
+ "SMS",
40
+ "Authenticator",
41
+ "RecoveryCode",
42
+ "SecurityKey",
43
+ "CrossDevice",
44
+ "Password",
45
+ "Passkey",
47
46
  ]),
48
47
  enabled: z.boolean(),
49
48
  updated: z.string().datetime({ offset: true }),
@@ -67,16 +66,16 @@ const Roblox_TwoStepVerification_Api_RecoveryCodesStatusResponse = z.object({
67
66
  });
68
67
  const Roblox_TwoStepVerification_Api_VerifyCodeRequest = z.object({
69
68
  challengeId: z.string(),
70
- actionType: z.union([
71
- z.literal(0),
72
- z.literal(1),
73
- z.literal(2),
74
- z.literal(3),
75
- z.literal(4),
76
- z.literal(5),
77
- z.literal(6),
78
- z.literal(7),
79
- z.literal(8),
69
+ actionType: z.enum([
70
+ "Unknown",
71
+ "Login",
72
+ "RobuxSpend",
73
+ "ItemTrade",
74
+ "Resale",
75
+ "PasswordReset",
76
+ "RevertAccount",
77
+ "Generic",
78
+ "GenericWithRecoveryCodes",
80
79
  ]),
81
80
  code: z.string(),
82
81
  });
@@ -85,46 +84,46 @@ const Roblox_TwoStepVerification_Api_VerifyCodeResponse = z.object({
85
84
  });
86
85
  const Roblox_TwoStepVerification_Api_RetractDialogRequest = z.object({
87
86
  challengeId: z.string(),
88
- actionType: z.union([
89
- z.literal(0),
90
- z.literal(1),
91
- z.literal(2),
92
- z.literal(3),
93
- z.literal(4),
94
- z.literal(5),
95
- z.literal(6),
96
- z.literal(7),
97
- z.literal(8),
87
+ actionType: z.enum([
88
+ "Unknown",
89
+ "Login",
90
+ "RobuxSpend",
91
+ "ItemTrade",
92
+ "Resale",
93
+ "PasswordReset",
94
+ "RevertAccount",
95
+ "Generic",
96
+ "GenericWithRecoveryCodes",
98
97
  ]),
99
98
  });
100
99
  const Roblox_TwoStepVerification_Api_RetractDialogResponse = z.object({});
101
100
  const Roblox_TwoStepVerification_Api_RetryApprovalRequest = z.object({
102
101
  challengeId: z.string(),
103
- actionType: z.union([
104
- z.literal(0),
105
- z.literal(1),
106
- z.literal(2),
107
- z.literal(3),
108
- z.literal(4),
109
- z.literal(5),
110
- z.literal(6),
111
- z.literal(7),
112
- z.literal(8),
102
+ actionType: z.enum([
103
+ "Unknown",
104
+ "Login",
105
+ "RobuxSpend",
106
+ "ItemTrade",
107
+ "Resale",
108
+ "PasswordReset",
109
+ "RevertAccount",
110
+ "Generic",
111
+ "GenericWithRecoveryCodes",
113
112
  ]),
114
113
  });
115
114
  const Roblox_TwoStepVerification_Api_RetryApprovalResponse = z.object({});
116
115
  const Roblox_TwoStepVerification_Api_VerifyApprovalRequest = z.object({
117
116
  challengeId: z.string(),
118
- actionType: z.union([
119
- z.literal(0),
120
- z.literal(1),
121
- z.literal(2),
122
- z.literal(3),
123
- z.literal(4),
124
- z.literal(5),
125
- z.literal(6),
126
- z.literal(7),
127
- z.literal(8),
117
+ actionType: z.enum([
118
+ "Unknown",
119
+ "Login",
120
+ "RobuxSpend",
121
+ "ItemTrade",
122
+ "Resale",
123
+ "PasswordReset",
124
+ "RevertAccount",
125
+ "Generic",
126
+ "GenericWithRecoveryCodes",
128
127
  ]),
129
128
  });
130
129
  const Roblox_TwoStepVerification_Api_VerifyApprovalResponse = z.object({
@@ -132,16 +131,16 @@ const Roblox_TwoStepVerification_Api_VerifyApprovalResponse = z.object({
132
131
  });
133
132
  const Roblox_TwoStepVerification_Api_SendCodeRequest = z.object({
134
133
  challengeId: z.string(),
135
- actionType: z.union([
136
- z.literal(0),
137
- z.literal(1),
138
- z.literal(2),
139
- z.literal(3),
140
- z.literal(4),
141
- z.literal(5),
142
- z.literal(6),
143
- z.literal(7),
144
- z.literal(8),
134
+ actionType: z.enum([
135
+ "Unknown",
136
+ "Login",
137
+ "RobuxSpend",
138
+ "ItemTrade",
139
+ "Resale",
140
+ "PasswordReset",
141
+ "RevertAccount",
142
+ "Generic",
143
+ "GenericWithRecoveryCodes",
145
144
  ]),
146
145
  });
147
146
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});