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
@@ -140,7 +140,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequestV2 = z.object({
140
140
  ]),
141
141
  });
142
142
  const Roblox_Api_Develop_Models_UniverseModerationPolicyStatus = z.object({
143
- region: z.union([z.literal(0), z.literal(1)]),
143
+ region: z.enum(["Unknown", "China"]),
144
144
  status: z.string(),
145
145
  });
146
146
  const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = z.object({
@@ -154,29 +154,29 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = z.object({
154
154
  id: z.number().int(),
155
155
  name: z.string(),
156
156
  description: z.string(),
157
- universeAvatarType: z.union([z.literal(1), z.literal(2), z.literal(3)]),
158
- universeAnimationType: z.union([z.literal(1), z.literal(2)]),
159
- universeCollisionType: z.union([z.literal(1), z.literal(2)]),
160
- universeJointPositioningType: z.union([z.literal(1), z.literal(2)]),
157
+ universeAvatarType: z.enum(["MorphToR6", "PlayerChoice", "MorphToR15"]),
158
+ universeAnimationType: z.enum(["Standard", "PlayerChoice"]),
159
+ universeCollisionType: z.enum(["InnerBox", "OuterBox"]),
160
+ universeJointPositioningType: z.enum(["Standard", "ArtistIntent"]),
161
161
  engineAvatarSettings: z.string(),
162
162
  isArchived: z.boolean(),
163
163
  isFriendsOnly: z.boolean(),
164
- genre: z.union([
165
- z.literal(0),
166
- z.literal(1),
167
- z.literal(2),
168
- z.literal(3),
169
- z.literal(4),
170
- z.literal(5),
171
- z.literal(6),
172
- z.literal(7),
173
- z.literal(8),
174
- z.literal(9),
175
- z.literal(10),
176
- z.literal(11),
177
- z.literal(12),
178
- z.literal(13),
179
- z.literal(14),
164
+ genre: z.enum([
165
+ "All",
166
+ "Tutorial",
167
+ "Scary",
168
+ "TownAndCity",
169
+ "War",
170
+ "Funny",
171
+ "Fantasy",
172
+ "Adventure",
173
+ "SciFi",
174
+ "Pirate",
175
+ "FPS",
176
+ "RPG",
177
+ "Sports",
178
+ "Ninja",
179
+ "WildWest",
180
180
  ]),
181
181
  playableDevices: z.array(
182
182
  z.union([
@@ -199,12 +199,12 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = z.object({
199
199
  Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
200
200
  isForSaleInFiat: z.boolean(),
201
201
  fiatBasePriceId: z.string(),
202
- fiatModerationStatus: z.union([
203
- z.literal(0),
204
- z.literal(1),
205
- z.literal(2),
206
- z.literal(3),
207
- z.literal(4),
202
+ fiatModerationStatus: z.enum([
203
+ "Invalid",
204
+ "NotModerated",
205
+ "Pending",
206
+ "Approved",
207
+ "Rejected",
208
208
  ]),
209
209
  eligibleForTextChatMigration: z.boolean(),
210
210
  });
@@ -121,7 +121,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequestV2 = zod_1.z.object({
121
121
  fiatProductChangeType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
122
122
  });
123
123
  const Roblox_Api_Develop_Models_UniverseModerationPolicyStatus = zod_1.z.object({
124
- region: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
124
+ region: zod_1.z.enum(['Unknown', 'China']),
125
125
  status: zod_1.z.string(),
126
126
  });
127
127
  const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
@@ -133,29 +133,29 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
133
133
  id: zod_1.z.number().int(),
134
134
  name: zod_1.z.string(),
135
135
  description: zod_1.z.string(),
136
- universeAvatarType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
137
- universeAnimationType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
138
- universeCollisionType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
139
- universeJointPositioningType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
136
+ universeAvatarType: zod_1.z.enum(['MorphToR6', 'PlayerChoice', 'MorphToR15']),
137
+ universeAnimationType: zod_1.z.enum(['Standard', 'PlayerChoice']),
138
+ universeCollisionType: zod_1.z.enum(['InnerBox', 'OuterBox']),
139
+ universeJointPositioningType: zod_1.z.enum(['Standard', 'ArtistIntent']),
140
140
  engineAvatarSettings: zod_1.z.string(),
141
141
  isArchived: zod_1.z.boolean(),
142
142
  isFriendsOnly: zod_1.z.boolean(),
143
- genre: zod_1.z.union([
144
- zod_1.z.literal(0),
145
- zod_1.z.literal(1),
146
- zod_1.z.literal(2),
147
- zod_1.z.literal(3),
148
- zod_1.z.literal(4),
149
- zod_1.z.literal(5),
150
- zod_1.z.literal(6),
151
- zod_1.z.literal(7),
152
- zod_1.z.literal(8),
153
- zod_1.z.literal(9),
154
- zod_1.z.literal(10),
155
- zod_1.z.literal(11),
156
- zod_1.z.literal(12),
157
- zod_1.z.literal(13),
158
- zod_1.z.literal(14),
143
+ genre: zod_1.z.enum([
144
+ 'All',
145
+ 'Tutorial',
146
+ 'Scary',
147
+ 'TownAndCity',
148
+ 'War',
149
+ 'Funny',
150
+ 'Fantasy',
151
+ 'Adventure',
152
+ 'SciFi',
153
+ 'Pirate',
154
+ 'FPS',
155
+ 'RPG',
156
+ 'Sports',
157
+ 'Ninja',
158
+ 'WildWest',
159
159
  ]),
160
160
  playableDevices: zod_1.z.array(zod_1.z.union([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)])),
161
161
  isForSale: zod_1.z.boolean(),
@@ -167,7 +167,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
167
167
  permissions: Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
168
168
  isForSaleInFiat: zod_1.z.boolean(),
169
169
  fiatBasePriceId: zod_1.z.string(),
170
- fiatModerationStatus: 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)]),
170
+ fiatModerationStatus: zod_1.z.enum(['Invalid', 'NotModerated', 'Pending', 'Approved', 'Rejected']),
171
171
  eligibleForTextChatMigration: zod_1.z.boolean(),
172
172
  });
173
173
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { endpoint } from "..";
3
3
 
4
4
  const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = z.object({
5
- dataGranularity: z.union([z.literal(0), z.literal(1), z.literal(2)]),
5
+ dataGranularity: z.enum(["Hourly", "Daily", "Monthly"]),
6
6
  data: z.array(z.array(z.number())),
7
7
  });
8
8
 
@@ -4,7 +4,7 @@ exports.getUniversesUniverseidStats = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
6
  const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = zod_1.z.object({
7
- dataGranularity: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
7
+ dataGranularity: zod_1.z.enum(['Hourly', 'Daily', 'Monthly']),
8
8
  data: zod_1.z.array(zod_1.z.array(zod_1.z.number())),
9
9
  });
10
10
  /**
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  import { endpoint } from "..";
3
3
 
4
4
  const Roblox_Followings_Api_Models_FollowsByTypeResponse = z.object({
5
- followerType: z.union([z.literal(0), z.literal(1)]),
5
+ followerType: z.enum(["Invalid", "User"]),
6
6
  followerId: z.number().int(),
7
- sourceType: z.union([z.literal(0), z.literal(1)]),
7
+ sourceType: z.enum(["Invalid", "Universe"]),
8
8
  followedSources: z.string().datetime({ offset: true }),
9
9
  });
10
10
 
@@ -4,9 +4,9 @@ exports.getUsersUseridUniverses = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
6
  const Roblox_Followings_Api_Models_FollowsByTypeResponse = zod_1.z.object({
7
- followerType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
7
+ followerType: zod_1.z.enum(['Invalid', 'User']),
8
8
  followerId: zod_1.z.number().int(),
9
- sourceType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
9
+ sourceType: zod_1.z.enum(['Invalid', 'Universe']),
10
10
  followedSources: zod_1.z.string().datetime({ offset: true }),
11
11
  });
12
12
  /**
@@ -18,17 +18,17 @@ const Roblox_Friends_Api_FriendRequest = z.object({
18
18
  sentAt: z.string().datetime({ offset: true }),
19
19
  senderId: z.number().int(),
20
20
  sourceUniverseId: z.number().int(),
21
- originSourceType: z.union([
22
- z.literal(0),
23
- z.literal(1),
24
- z.literal(2),
25
- z.literal(3),
26
- z.literal(4),
27
- z.literal(5),
28
- z.literal(6),
29
- z.literal(7),
30
- z.literal(8),
31
- z.literal(9),
21
+ originSourceType: z.enum([
22
+ "Unknown",
23
+ "PlayerSearch",
24
+ "QrCode",
25
+ "InGame",
26
+ "UserProfile",
27
+ "QqContactImporter",
28
+ "WeChatContactImporter",
29
+ "ProfileShare",
30
+ "PhoneContactImporter",
31
+ "FriendRecommendations",
32
32
  ]),
33
33
  contactName: z.string(),
34
34
  senderNickname: z.string(),
@@ -112,6 +112,7 @@ const Roblox_Friends_Api_Models_Response_UserPresenceResponseModel = z.object({
112
112
  const Roblox_Friends_Api_Models_Response_UserPresenceResponse = z.object({
113
113
  userPresence: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
114
114
  sortScore: z.number(),
115
+ loggingJoinKey: z.string(),
115
116
  id: z.number().int(),
116
117
  name: z.string(),
117
118
  displayName: z.string(),
@@ -122,7 +123,7 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Respon
122
123
  });
123
124
  const Roblox_Friends_Api_FriendStatusResponse = z.object({
124
125
  id: z.number().int(),
125
- status: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]),
126
+ status: z.enum(["NotFriends", "Friends", "RequestSent", "RequestReceived"]),
126
127
  });
127
128
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ =
128
129
  z.object({ data: z.array(Roblox_Friends_Api_FriendStatusResponse) });
@@ -166,17 +167,17 @@ const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = z.object({
166
167
  challengeId: z.string(),
167
168
  });
168
169
  const Roblox_Friends_Api_FriendshipRequestModel = z.object({
169
- friendshipOriginSourceType: z.union([
170
- z.literal(0),
171
- z.literal(1),
172
- z.literal(2),
173
- z.literal(3),
174
- z.literal(4),
175
- z.literal(5),
176
- z.literal(6),
177
- z.literal(7),
178
- z.literal(8),
179
- z.literal(9),
170
+ friendshipOriginSourceType: z.enum([
171
+ "Unknown",
172
+ "PlayerSearch",
173
+ "QrCode",
174
+ "InGame",
175
+ "UserProfile",
176
+ "QqContactImporter",
177
+ "WeChatContactImporter",
178
+ "ProfileShare",
179
+ "PhoneContactImporter",
180
+ "FriendRecommendations",
180
181
  ]),
181
182
  senderNickname: z.string(),
182
183
  });
@@ -18,17 +18,17 @@ const Roblox_Friends_Api_FriendRequest = zod_1.z.object({
18
18
  sentAt: zod_1.z.string().datetime({ offset: true }),
19
19
  senderId: zod_1.z.number().int(),
20
20
  sourceUniverseId: zod_1.z.number().int(),
21
- originSourceType: zod_1.z.union([
22
- zod_1.z.literal(0),
23
- zod_1.z.literal(1),
24
- zod_1.z.literal(2),
25
- zod_1.z.literal(3),
26
- zod_1.z.literal(4),
27
- zod_1.z.literal(5),
28
- zod_1.z.literal(6),
29
- zod_1.z.literal(7),
30
- zod_1.z.literal(8),
31
- zod_1.z.literal(9),
21
+ originSourceType: zod_1.z.enum([
22
+ 'Unknown',
23
+ 'PlayerSearch',
24
+ 'QrCode',
25
+ 'InGame',
26
+ 'UserProfile',
27
+ 'QqContactImporter',
28
+ 'WeChatContactImporter',
29
+ 'ProfileShare',
30
+ 'PhoneContactImporter',
31
+ 'FriendRecommendations',
32
32
  ]),
33
33
  contactName: zod_1.z.string(),
34
34
  senderNickname: zod_1.z.string(),
@@ -103,6 +103,7 @@ const Roblox_Friends_Api_Models_Response_UserPresenceResponseModel = zod_1.z.obj
103
103
  const Roblox_Friends_Api_Models_Response_UserPresenceResponse = zod_1.z.object({
104
104
  userPresence: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
105
105
  sortScore: zod_1.z.number(),
106
+ loggingJoinKey: zod_1.z.string(),
106
107
  id: zod_1.z.number().int(),
107
108
  name: zod_1.z.string(),
108
109
  displayName: zod_1.z.string(),
@@ -112,7 +113,7 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Respon
112
113
  });
113
114
  const Roblox_Friends_Api_FriendStatusResponse = zod_1.z.object({
114
115
  id: zod_1.z.number().int(),
115
- status: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
116
+ status: zod_1.z.enum(['NotFriends', 'Friends', 'RequestSent', 'RequestReceived']),
116
117
  });
117
118
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ = zod_1.z.object({
118
119
  data: zod_1.z.array(Roblox_Friends_Api_FriendStatusResponse),
@@ -153,17 +154,17 @@ const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = zod_1.z.object({
153
154
  challengeId: zod_1.z.string(),
154
155
  });
155
156
  const Roblox_Friends_Api_FriendshipRequestModel = zod_1.z.object({
156
- friendshipOriginSourceType: zod_1.z.union([
157
- zod_1.z.literal(0),
158
- zod_1.z.literal(1),
159
- zod_1.z.literal(2),
160
- zod_1.z.literal(3),
161
- zod_1.z.literal(4),
162
- zod_1.z.literal(5),
163
- zod_1.z.literal(6),
164
- zod_1.z.literal(7),
165
- zod_1.z.literal(8),
166
- zod_1.z.literal(9),
157
+ friendshipOriginSourceType: zod_1.z.enum([
158
+ 'Unknown',
159
+ 'PlayerSearch',
160
+ 'QrCode',
161
+ 'InGame',
162
+ 'UserProfile',
163
+ 'QqContactImporter',
164
+ 'WeChatContactImporter',
165
+ 'ProfileShare',
166
+ 'PhoneContactImporter',
167
+ 'FriendRecommendations',
167
168
  ]),
168
169
  senderNickname: zod_1.z.string(),
169
170
  });