rozod 6.8.0 → 6.9.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 (53) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +92 -95
  2. package/lib/endpoints/accountsettingsv1.d.ts +88 -110
  3. package/lib/endpoints/adconfigurationv2.d.ts +108 -215
  4. package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
  5. package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
  6. package/lib/endpoints/authv1.d.ts +479 -521
  7. package/lib/endpoints/authv2.d.ts +209 -221
  8. package/lib/endpoints/authv3.d.ts +32 -35
  9. package/lib/endpoints/avatarv1.d.ts +112 -117
  10. package/lib/endpoints/avatarv2.d.ts +71 -76
  11. package/lib/endpoints/avatarv3.d.ts +27 -33
  12. package/lib/endpoints/badgesv1.d.ts +92 -99
  13. package/lib/endpoints/catalogv1.d.ts +207 -233
  14. package/lib/endpoints/catalogv2.d.ts +81 -119
  15. package/lib/endpoints/clientsettingsv1.d.ts +33 -35
  16. package/lib/endpoints/clientsettingsv2.d.ts +62 -68
  17. package/lib/endpoints/contactsv1.d.ts +18 -20
  18. package/lib/endpoints/developv1.d.ts +230 -293
  19. package/lib/endpoints/developv2.d.ts +84 -137
  20. package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
  21. package/lib/endpoints/economyv1.d.ts +6 -6
  22. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  23. package/lib/endpoints/followingsv1.d.ts +33 -34
  24. package/lib/endpoints/followingsv2.d.ts +9 -9
  25. package/lib/endpoints/friendsv1.d.ts +200 -237
  26. package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
  27. package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
  28. package/lib/endpoints/gamesv1.d.ts +181 -143
  29. package/lib/endpoints/gamesv2.d.ts +161 -169
  30. package/lib/endpoints/groupsv1.d.ts +938 -988
  31. package/lib/endpoints/groupsv2.d.ts +259 -278
  32. package/lib/endpoints/inventoryv1.d.ts +91 -122
  33. package/lib/endpoints/inventoryv2.d.ts +163 -180
  34. package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
  35. package/lib/endpoints/localev1.d.ts +47 -48
  36. package/lib/endpoints/localizationtablesv1.d.ts +315 -353
  37. package/lib/endpoints/matchmakingv1.d.ts +184 -190
  38. package/lib/endpoints/notificationsv2.d.ts +144 -158
  39. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  40. package/lib/endpoints/presencev1.d.ts +7 -12
  41. package/lib/endpoints/privatemessagesv1.d.ts +56 -64
  42. package/lib/endpoints/publishv1.d.ts +32 -32
  43. package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
  44. package/lib/endpoints/thumbnailsv1.d.ts +325 -326
  45. package/lib/endpoints/thumbnailsv1.js +24 -24
  46. package/lib/endpoints/tradesv1.d.ts +92 -104
  47. package/lib/endpoints/tradesv2.d.ts +81 -84
  48. package/lib/endpoints/translationrolesv1.d.ts +46 -51
  49. package/lib/endpoints/twostepverificationv1.d.ts +233 -237
  50. package/lib/endpoints/usersv1.d.ts +110 -114
  51. package/lib/index.d.ts +56 -1
  52. package/lib/index.js +159 -3
  53. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
4
  const Roblox_Web_Responses_Games_GameMediaItemResponseV2 = z.object({
5
5
  assetTypeId: z.number().int(),
@@ -11,156 +11,145 @@ const Roblox_Web_Responses_Games_GameMediaItemResponseV2 = z.object({
11
11
  altText: z.string(),
12
12
  videoId: z.string(),
13
13
  });
14
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_ =
15
- z.object({
16
- data: z.array(Roblox_Web_Responses_Games_GameMediaItemResponseV2),
17
- });
18
- const Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel =
19
- z.object({
20
- badgePosition: z.string(),
21
- badgeAnalyticsId: z.string(),
22
- badgeType: z.string(),
23
- badgeIcon: z.string(),
24
- badgeComponentType: z.string(),
25
- });
26
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ =
27
- z.object({
28
- id: z.number().int(),
29
- type: z.enum(["User", "Group"]),
30
- name: z.string(),
31
- });
32
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ =
33
- z.object({
34
- id: z.number().int(),
35
- type: z.enum([
36
- "Image",
37
- "TShirt",
38
- "Audio",
39
- "Mesh",
40
- "Lua",
41
- "HTML",
42
- "Text",
43
- "Hat",
44
- "Place",
45
- "Model",
46
- "Shirt",
47
- "Pants",
48
- "Decal",
49
- "Avatar",
50
- "Head",
51
- "Face",
52
- "Gear",
53
- "Badge",
54
- "GroupEmblem",
55
- "Animation",
56
- "Arms",
57
- "Legs",
58
- "Torso",
59
- "RightArm",
60
- "LeftArm",
61
- "LeftLeg",
62
- "RightLeg",
63
- "Package",
64
- "YouTubeVideo",
65
- "GamePass",
66
- "App",
67
- "Code",
68
- "Plugin",
69
- "SolidModel",
70
- "MeshPart",
71
- "HairAccessory",
72
- "FaceAccessory",
73
- "NeckAccessory",
74
- "ShoulderAccessory",
75
- "FrontAccessory",
76
- "BackAccessory",
77
- "WaistAccessory",
78
- "ClimbAnimation",
79
- "DeathAnimation",
80
- "FallAnimation",
81
- "IdleAnimation",
82
- "JumpAnimation",
83
- "RunAnimation",
84
- "SwimAnimation",
85
- "WalkAnimation",
86
- "PoseAnimation",
87
- "LocalizationTableManifest",
88
- "LocalizationTableTranslation",
89
- "EmoteAnimation",
90
- "Video",
91
- "TexturePack",
92
- "TShirtAccessory",
93
- "ShirtAccessory",
94
- "PantsAccessory",
95
- "JacketAccessory",
96
- "SweaterAccessory",
97
- "ShortsAccessory",
98
- "LeftShoeAccessory",
99
- "RightShoeAccessory",
100
- "DressSkirtAccessory",
101
- "FontFamily",
102
- "FontFace",
103
- "MeshHiddenSurfaceRemoval",
104
- "EyebrowAccessory",
105
- "EyelashAccessory",
106
- "MoodAnimation",
107
- "DynamicHead",
108
- "CodeSnippet",
109
- "AdsVideo",
110
- "OtaUpdate",
111
- "Screenshot",
112
- "RuntimePropertySet",
113
- "StorePreviewVideo",
114
- "GamePreviewVideo",
115
- "CreatorExperienceConfig",
116
- "FaceMakeup",
117
- "LipMakeup",
118
- "EyeMakeup",
119
- "VoxelFragment",
120
- "AvatarBackground",
121
- "TextDocument",
122
- ]),
123
- name: z.string(),
124
- });
14
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_ = z.object({
15
+ data: z.array(Roblox_Web_Responses_Games_GameMediaItemResponseV2),
16
+ });
17
+ const Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel = z.object({
18
+ badgePosition: z.string(),
19
+ badgeAnalyticsId: z.string(),
20
+ badgeType: z.string(),
21
+ badgeIcon: z.string(),
22
+ badgeComponentType: z.string(),
23
+ });
24
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = z.object({
25
+ id: z.number().int(),
26
+ type: z.enum(['User', 'Group']),
27
+ name: z.string(),
28
+ });
29
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = z.object({
30
+ id: z.number().int(),
31
+ type: z.enum([
32
+ 'Image',
33
+ 'TShirt',
34
+ 'Audio',
35
+ 'Mesh',
36
+ 'Lua',
37
+ 'HTML',
38
+ 'Text',
39
+ 'Hat',
40
+ 'Place',
41
+ 'Model',
42
+ 'Shirt',
43
+ 'Pants',
44
+ 'Decal',
45
+ 'Avatar',
46
+ 'Head',
47
+ 'Face',
48
+ 'Gear',
49
+ 'Badge',
50
+ 'GroupEmblem',
51
+ 'Animation',
52
+ 'Arms',
53
+ 'Legs',
54
+ 'Torso',
55
+ 'RightArm',
56
+ 'LeftArm',
57
+ 'LeftLeg',
58
+ 'RightLeg',
59
+ 'Package',
60
+ 'YouTubeVideo',
61
+ 'GamePass',
62
+ 'App',
63
+ 'Code',
64
+ 'Plugin',
65
+ 'SolidModel',
66
+ 'MeshPart',
67
+ 'HairAccessory',
68
+ 'FaceAccessory',
69
+ 'NeckAccessory',
70
+ 'ShoulderAccessory',
71
+ 'FrontAccessory',
72
+ 'BackAccessory',
73
+ 'WaistAccessory',
74
+ 'ClimbAnimation',
75
+ 'DeathAnimation',
76
+ 'FallAnimation',
77
+ 'IdleAnimation',
78
+ 'JumpAnimation',
79
+ 'RunAnimation',
80
+ 'SwimAnimation',
81
+ 'WalkAnimation',
82
+ 'PoseAnimation',
83
+ 'LocalizationTableManifest',
84
+ 'LocalizationTableTranslation',
85
+ 'EmoteAnimation',
86
+ 'Video',
87
+ 'TexturePack',
88
+ 'TShirtAccessory',
89
+ 'ShirtAccessory',
90
+ 'PantsAccessory',
91
+ 'JacketAccessory',
92
+ 'SweaterAccessory',
93
+ 'ShortsAccessory',
94
+ 'LeftShoeAccessory',
95
+ 'RightShoeAccessory',
96
+ 'DressSkirtAccessory',
97
+ 'FontFamily',
98
+ 'FontFace',
99
+ 'MeshHiddenSurfaceRemoval',
100
+ 'EyebrowAccessory',
101
+ 'EyelashAccessory',
102
+ 'MoodAnimation',
103
+ 'DynamicHead',
104
+ 'CodeSnippet',
105
+ 'AdsVideo',
106
+ 'OtaUpdate',
107
+ 'Screenshot',
108
+ 'RuntimePropertySet',
109
+ 'StorePreviewVideo',
110
+ 'GamePreviewVideo',
111
+ 'CreatorExperienceConfig',
112
+ 'FaceMakeup',
113
+ 'LipMakeup',
114
+ 'EyeMakeup',
115
+ 'VoxelFragment',
116
+ 'AvatarBackground',
117
+ 'TextDocument',
118
+ ]),
119
+ name: z.string(),
120
+ });
125
121
  const Roblox_Web_Responses_Games_GameFavoriteResponseModel = z.object({
126
122
  price: z.number().int(),
127
- contentMetadata:
128
- Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
123
+ contentMetadata: Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
129
124
  id: z.number().int(),
130
125
  name: z.string(),
131
126
  description: z.string(),
132
- creator:
133
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
134
- rootPlace:
135
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
127
+ creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
128
+ rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
136
129
  created: z.string().datetime({ offset: true }),
137
130
  updated: z.string().datetime({ offset: true }),
138
131
  placeVisits: z.number().int(),
139
132
  });
140
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ =
141
- z.object({
142
- previousPageCursor: z.string(),
143
- nextPageCursor: z.string(),
144
- data: z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
145
- });
133
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ = z.object({
134
+ previousPageCursor: z.string(),
135
+ nextPageCursor: z.string(),
136
+ data: z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
137
+ });
146
138
  const Roblox_Web_Responses_Games_GameResponseV2 = z.object({
147
139
  id: z.number().int(),
148
140
  name: z.string(),
149
141
  description: z.string(),
150
- creator:
151
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
152
- rootPlace:
153
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
142
+ creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
143
+ rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
154
144
  created: z.string().datetime({ offset: true }),
155
145
  updated: z.string().datetime({ offset: true }),
156
146
  placeVisits: z.number().int(),
157
147
  });
158
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ =
159
- z.object({
160
- previousPageCursor: z.string(),
161
- nextPageCursor: z.string(),
162
- data: z.array(Roblox_Web_Responses_Games_GameResponseV2),
163
- });
148
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ = z.object({
149
+ previousPageCursor: z.string(),
150
+ nextPageCursor: z.string(),
151
+ data: z.array(Roblox_Web_Responses_Games_GameResponseV2),
152
+ });
164
153
 
165
154
  /**
166
155
  * @api GET https://games.roblox.com/v2/games/:universeId/media
@@ -169,16 +158,16 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameRe
169
158
  * @param fetchAllExperienceRelatedMedia to tell if the API query is to fetch all related media for this experience
170
159
  */
171
160
  export const getGamesUniverseidMedia = endpoint({
172
- method: "GET",
173
- path: "/v2/games/:universeId/media",
174
- baseUrl: "https://games.roblox.com",
175
- requestFormat: "json",
161
+ method: 'GET',
162
+ path: '/v2/games/:universeId/media',
163
+ baseUrl: 'https://games.roblox.com',
164
+ requestFormat: 'json',
176
165
  serializationMethod: {
177
166
  universeId: {
178
- style: "simple",
167
+ style: 'simple',
179
168
  },
180
169
  fetchAllExperienceRelatedMedia: {
181
- style: "form",
170
+ style: 'form',
182
171
  explode: true,
183
172
  },
184
173
  },
@@ -186,8 +175,7 @@ export const getGamesUniverseidMedia = endpoint({
186
175
  universeId: z.number().int(),
187
176
  fetchAllExperienceRelatedMedia: z.boolean().optional(),
188
177
  },
189
- response:
190
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
178
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
191
179
  errors: [
192
180
  {
193
181
  status: 400,
@@ -209,28 +197,28 @@ export const getGamesUniverseidMedia = endpoint({
209
197
  * @param sortOrder The order the results are sorted in.
210
198
  */
211
199
  export const getUsersUseridFavoriteGames = endpoint({
212
- method: "GET",
213
- path: "/v2/users/:userId/favorite/games",
214
- baseUrl: "https://games.roblox.com",
215
- requestFormat: "json",
200
+ method: 'GET',
201
+ path: '/v2/users/:userId/favorite/games',
202
+ baseUrl: 'https://games.roblox.com',
203
+ requestFormat: 'json',
216
204
  serializationMethod: {
217
205
  userId: {
218
- style: "simple",
206
+ style: 'simple',
219
207
  },
220
208
  accessFilter: {
221
- style: "form",
209
+ style: 'form',
222
210
  explode: true,
223
211
  },
224
212
  limit: {
225
- style: "form",
213
+ style: 'form',
226
214
  explode: true,
227
215
  },
228
216
  cursor: {
229
- style: "form",
217
+ style: 'form',
230
218
  explode: true,
231
219
  },
232
220
  sortOrder: {
233
- style: "form",
221
+ style: 'form',
234
222
  explode: true,
235
223
  },
236
224
  },
@@ -245,10 +233,9 @@ export const getUsersUseridFavoriteGames = endpoint({
245
233
  .optional()
246
234
  .default(10),
247
235
  cursor: z.string().optional(),
248
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Desc"),
236
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Desc'),
249
237
  },
250
- response:
251
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
238
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
252
239
  errors: [],
253
240
  });
254
241
  /**
@@ -261,28 +248,28 @@ export const getUsersUseridFavoriteGames = endpoint({
261
248
  * @param sortOrder The order the results are sorted in.
262
249
  */
263
250
  export const getUsersUseridGames = endpoint({
264
- method: "GET",
265
- path: "/v2/users/:userId/games",
266
- baseUrl: "https://games.roblox.com",
267
- requestFormat: "json",
251
+ method: 'GET',
252
+ path: '/v2/users/:userId/games',
253
+ baseUrl: 'https://games.roblox.com',
254
+ requestFormat: 'json',
268
255
  serializationMethod: {
269
256
  userId: {
270
- style: "simple",
257
+ style: 'simple',
271
258
  },
272
259
  accessFilter: {
273
- style: "form",
260
+ style: 'form',
274
261
  explode: true,
275
262
  },
276
263
  limit: {
277
- style: "form",
264
+ style: 'form',
278
265
  explode: true,
279
266
  },
280
267
  cursor: {
281
- style: "form",
268
+ style: 'form',
282
269
  explode: true,
283
270
  },
284
271
  sortOrder: {
285
- style: "form",
272
+ style: 'form',
286
273
  explode: true,
287
274
  },
288
275
  },
@@ -297,10 +284,9 @@ export const getUsersUseridGames = endpoint({
297
284
  .optional()
298
285
  .default(10),
299
286
  cursor: z.string().optional(),
300
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
287
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
301
288
  },
302
- response:
303
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
289
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
304
290
  errors: [],
305
291
  });
306
292
 
@@ -327,8 +313,14 @@ export const getGroupsGroupidGamesv2 = endpoint({
327
313
  },
328
314
  parameters: {
329
315
  groupId: z.number().int(),
330
- accessFilter: z.union([z.literal(1), z.literal(2), z.literal(4)]).optional().default(1),
331
- limit: z.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)]).optional().default(10),
316
+ accessFilter: z
317
+ .union([z.literal(1), z.literal(2), z.literal(4)])
318
+ .optional()
319
+ .default(1),
320
+ limit: z
321
+ .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
322
+ .optional()
323
+ .default(10),
332
324
  cursor: z.string().optional(),
333
325
  sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
334
326
  },