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,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,143 +11,134 @@ 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_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ =
19
- z.object({
20
- id: z.number().int(),
21
- type: z.union([z.literal(0), z.literal(1)]),
22
- name: z.string(),
23
- });
24
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ =
25
- z.object({
26
- id: z.number().int(),
27
- type: z.union([
28
- z.literal(1),
29
- z.literal(2),
30
- z.literal(3),
31
- z.literal(4),
32
- z.literal(5),
33
- z.literal(6),
34
- z.literal(7),
35
- z.literal(8),
36
- z.literal(9),
37
- z.literal(10),
38
- z.literal(11),
39
- z.literal(12),
40
- z.literal(13),
41
- z.literal(16),
42
- z.literal(17),
43
- z.literal(18),
44
- z.literal(19),
45
- z.literal(21),
46
- z.literal(22),
47
- z.literal(24),
48
- z.literal(25),
49
- z.literal(26),
50
- z.literal(27),
51
- z.literal(28),
52
- z.literal(29),
53
- z.literal(30),
54
- z.literal(31),
55
- z.literal(32),
56
- z.literal(33),
57
- z.literal(34),
58
- z.literal(35),
59
- z.literal(37),
60
- z.literal(38),
61
- z.literal(39),
62
- z.literal(40),
63
- z.literal(41),
64
- z.literal(42),
65
- z.literal(43),
66
- z.literal(44),
67
- z.literal(45),
68
- z.literal(46),
69
- z.literal(47),
70
- z.literal(48),
71
- z.literal(49),
72
- z.literal(50),
73
- z.literal(51),
74
- z.literal(52),
75
- z.literal(53),
76
- z.literal(54),
77
- z.literal(55),
78
- z.literal(56),
79
- z.literal(59),
80
- z.literal(60),
81
- z.literal(61),
82
- z.literal(62),
83
- z.literal(63),
84
- z.literal(64),
85
- z.literal(65),
86
- z.literal(66),
87
- z.literal(67),
88
- z.literal(68),
89
- z.literal(69),
90
- z.literal(70),
91
- z.literal(71),
92
- z.literal(72),
93
- z.literal(73),
94
- z.literal(74),
95
- z.literal(75),
96
- z.literal(76),
97
- z.literal(77),
98
- z.literal(78),
99
- z.literal(79),
100
- z.literal(80),
101
- z.literal(81),
102
- z.literal(82),
103
- z.literal(83),
104
- z.literal(84),
105
- z.literal(85),
106
- z.literal(86),
107
- z.literal(87),
108
- z.literal(88),
109
- z.literal(89),
110
- z.literal(90),
111
- ]),
112
- name: z.string(),
113
- });
114
- const Roblox_Web_Responses_Games_GameResponseV2 = z.object({
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_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = z.object({
18
+ id: z.number().int(),
19
+ type: z.enum(['User', 'Group']),
20
+ name: z.string(),
21
+ });
22
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = z.object({
23
+ id: z.number().int(),
24
+ type: z.enum([
25
+ 'Image',
26
+ 'TShirt',
27
+ 'Audio',
28
+ 'Mesh',
29
+ 'Lua',
30
+ 'HTML',
31
+ 'Text',
32
+ 'Hat',
33
+ 'Place',
34
+ 'Model',
35
+ 'Shirt',
36
+ 'Pants',
37
+ 'Decal',
38
+ 'Avatar',
39
+ 'Head',
40
+ 'Face',
41
+ 'Gear',
42
+ 'Badge',
43
+ 'GroupEmblem',
44
+ 'Animation',
45
+ 'Arms',
46
+ 'Legs',
47
+ 'Torso',
48
+ 'RightArm',
49
+ 'LeftArm',
50
+ 'LeftLeg',
51
+ 'RightLeg',
52
+ 'Package',
53
+ 'YouTubeVideo',
54
+ 'GamePass',
55
+ 'App',
56
+ 'Code',
57
+ 'Plugin',
58
+ 'SolidModel',
59
+ 'MeshPart',
60
+ 'HairAccessory',
61
+ 'FaceAccessory',
62
+ 'NeckAccessory',
63
+ 'ShoulderAccessory',
64
+ 'FrontAccessory',
65
+ 'BackAccessory',
66
+ 'WaistAccessory',
67
+ 'ClimbAnimation',
68
+ 'DeathAnimation',
69
+ 'FallAnimation',
70
+ 'IdleAnimation',
71
+ 'JumpAnimation',
72
+ 'RunAnimation',
73
+ 'SwimAnimation',
74
+ 'WalkAnimation',
75
+ 'PoseAnimation',
76
+ 'LocalizationTableManifest',
77
+ 'LocalizationTableTranslation',
78
+ 'EmoteAnimation',
79
+ 'Video',
80
+ 'TexturePack',
81
+ 'TShirtAccessory',
82
+ 'ShirtAccessory',
83
+ 'PantsAccessory',
84
+ 'JacketAccessory',
85
+ 'SweaterAccessory',
86
+ 'ShortsAccessory',
87
+ 'LeftShoeAccessory',
88
+ 'RightShoeAccessory',
89
+ 'DressSkirtAccessory',
90
+ 'FontFamily',
91
+ 'FontFace',
92
+ 'MeshHiddenSurfaceRemoval',
93
+ 'EyebrowAccessory',
94
+ 'EyelashAccessory',
95
+ 'MoodAnimation',
96
+ 'DynamicHead',
97
+ 'CodeSnippet',
98
+ 'AdsVideo',
99
+ 'OtaUpdate',
100
+ 'Screenshot',
101
+ 'RuntimePropertySet',
102
+ 'StorePreviewVideo',
103
+ 'GamePreviewVideo',
104
+ 'CreatorExperienceConfig',
105
+ 'FaceMakeup',
106
+ 'LipMakeup',
107
+ 'EyeMakeup',
108
+ ]),
109
+ name: z.string(),
110
+ });
111
+ const Roblox_Web_Responses_Games_GameFavoriteResponseModel = z.object({
112
+ price: z.number().int(),
115
113
  id: z.number().int(),
116
114
  name: z.string(),
117
115
  description: z.string(),
118
- creator:
119
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
120
- rootPlace:
121
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
116
+ creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
117
+ rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
122
118
  created: z.string().datetime({ offset: true }),
123
119
  updated: z.string().datetime({ offset: true }),
124
120
  placeVisits: z.number().int(),
125
121
  });
126
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ =
127
- z.object({
128
- previousPageCursor: z.string(),
129
- nextPageCursor: z.string(),
130
- data: z.array(Roblox_Web_Responses_Games_GameResponseV2),
131
- });
132
- const Roblox_Web_Responses_Games_GameFavoriteResponseModel = z.object({
133
- price: z.number().int(),
122
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ = z.object({
123
+ previousPageCursor: z.string(),
124
+ nextPageCursor: z.string(),
125
+ data: z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
126
+ });
127
+ const Roblox_Web_Responses_Games_GameResponseV2 = z.object({
134
128
  id: z.number().int(),
135
129
  name: z.string(),
136
130
  description: z.string(),
137
- creator:
138
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
139
- rootPlace:
140
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
131
+ creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
132
+ rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
141
133
  created: z.string().datetime({ offset: true }),
142
134
  updated: z.string().datetime({ offset: true }),
143
135
  placeVisits: z.number().int(),
144
136
  });
145
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ =
146
- z.object({
147
- previousPageCursor: z.string(),
148
- nextPageCursor: z.string(),
149
- data: z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
150
- });
137
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ = z.object({
138
+ previousPageCursor: z.string(),
139
+ nextPageCursor: z.string(),
140
+ data: z.array(Roblox_Web_Responses_Games_GameResponseV2),
141
+ });
151
142
 
152
143
  /**
153
144
  * @api GET https://games.roblox.com/v2/games/:universeId/media
@@ -156,16 +147,16 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFa
156
147
  * @param fetchAllExperienceRelatedMedia to tell if the API query is to fetch all related media for this experience
157
148
  */
158
149
  export const getGamesUniverseidMedia = endpoint({
159
- method: "GET",
160
- path: "/v2/games/:universeId/media",
161
- baseUrl: "https://games.roblox.com",
162
- requestFormat: "json",
150
+ method: 'GET',
151
+ path: '/v2/games/:universeId/media',
152
+ baseUrl: 'https://games.roblox.com',
153
+ requestFormat: 'json',
163
154
  serializationMethod: {
164
155
  universeId: {
165
- style: "simple",
156
+ style: 'simple',
166
157
  },
167
158
  fetchAllExperienceRelatedMedia: {
168
- style: "form",
159
+ style: 'form',
169
160
  explode: true,
170
161
  },
171
162
  },
@@ -173,8 +164,7 @@ export const getGamesUniverseidMedia = endpoint({
173
164
  universeId: z.number().int(),
174
165
  fetchAllExperienceRelatedMedia: z.boolean().optional(),
175
166
  },
176
- response:
177
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
167
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
178
168
  errors: [
179
169
  {
180
170
  status: 400,
@@ -187,159 +177,88 @@ export const getGamesUniverseidMedia = endpoint({
187
177
  ],
188
178
  });
189
179
  /**
190
- * @api GET https://games.roblox.com/v2/groups/:groupId/games
191
- * @summary Gets games created by the specified group.
192
- * @param groupId The group Id.
193
- * @param accessFilter Filtering option via access level.
194
- * @param limit The number of results per request.
195
- * @param cursor The paging cursor for the previous or next page.
196
- * @param sortOrder The order the results are sorted in.
197
- */
198
- export const getGroupsGroupidGames = endpoint({
199
- method: "GET",
200
- path: "/v2/groups/:groupId/games",
201
- baseUrl: "https://games.roblox.com",
202
- requestFormat: "json",
203
- serializationMethod: {
204
- groupId: {
205
- style: "simple",
206
- },
207
- accessFilter: {
208
- style: "form",
209
- explode: true,
210
- },
211
- limit: {
212
- style: "form",
213
- explode: true,
214
- },
215
- cursor: {
216
- style: "form",
217
- explode: true,
218
- },
219
- sortOrder: {
220
- style: "form",
221
- explode: true,
222
- },
223
- },
224
- parameters: {
225
- groupId: z.number().int(),
226
- accessFilter: z
227
- .union([z.literal(1), z.literal(2), z.literal(4)])
228
- .optional()
229
- .default(1),
230
- limit: z
231
- .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
232
- .optional()
233
- .default(10),
234
- cursor: z.string().optional(),
235
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
236
- },
237
- response:
238
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
239
- errors: [
240
- {
241
- status: 403,
242
- description: `3: Not authorized.`,
243
- },
244
- {
245
- status: 500,
246
- description: `0: Compliance Context service is unavailable.`,
247
- },
248
- ],
249
- });
250
- /**
251
- * @api GET https://games.roblox.com/v2/groups/:groupId/gamesV2
252
- * @summary Gets games created by the specified group. This will replace V1 after validation. Note that this can only used for public/all universes.
253
- * @param groupId The group Id.
180
+ * @api GET https://games.roblox.com/v2/users/:userId/favorite/games
181
+ * @summary Gets users favorite games.
182
+ * @param userId The user Id.
254
183
  * @param accessFilter Filtering option via access level.
255
184
  * @param limit The number of results per request.
256
185
  * @param cursor The paging cursor for the previous or next page.
257
186
  * @param sortOrder The order the results are sorted in.
258
187
  */
259
- export const getGroupsGroupidGamesv2 = endpoint({
260
- method: "GET",
261
- path: "/v2/groups/:groupId/gamesV2",
262
- baseUrl: "https://games.roblox.com",
263
- requestFormat: "json",
188
+ export const getUsersUseridFavoriteGames = endpoint({
189
+ method: 'GET',
190
+ path: '/v2/users/:userId/favorite/games',
191
+ baseUrl: 'https://games.roblox.com',
192
+ requestFormat: 'json',
264
193
  serializationMethod: {
265
- groupId: {
266
- style: "simple",
194
+ userId: {
195
+ style: 'simple',
267
196
  },
268
197
  accessFilter: {
269
- style: "form",
198
+ style: 'form',
270
199
  explode: true,
271
200
  },
272
201
  limit: {
273
- style: "form",
202
+ style: 'form',
274
203
  explode: true,
275
204
  },
276
205
  cursor: {
277
- style: "form",
206
+ style: 'form',
278
207
  explode: true,
279
208
  },
280
209
  sortOrder: {
281
- style: "form",
210
+ style: 'form',
282
211
  explode: true,
283
212
  },
284
213
  },
285
214
  parameters: {
286
- groupId: z.number().int(),
215
+ userId: z.number().int(),
287
216
  accessFilter: z
288
217
  .union([z.literal(1), z.literal(2), z.literal(4)])
289
218
  .optional()
290
- .default(1),
219
+ .default(2),
291
220
  limit: z
292
221
  .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
293
222
  .optional()
294
223
  .default(10),
295
224
  cursor: z.string().optional(),
296
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
225
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Desc'),
297
226
  },
298
- response:
299
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
300
- errors: [
301
- {
302
- status: 500,
303
- description: `0: Compliance Context service is unavailable.`,
304
- },
305
- {
306
- status: 501,
307
- description: `1: Code path is not Implemented.`,
308
- },
309
- ],
227
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
228
+ errors: [],
310
229
  });
311
230
  /**
312
- * @api GET https://games.roblox.com/v2/users/:userId/favorite/games
313
- * @summary Gets users favorite games.
231
+ * @api GET https://games.roblox.com/v2/users/:userId/games
232
+ * @summary Gets games created by the specified user.
314
233
  * @param userId The user Id.
315
234
  * @param accessFilter Filtering option via access level.
316
235
  * @param limit The number of results per request.
317
236
  * @param cursor The paging cursor for the previous or next page.
318
237
  * @param sortOrder The order the results are sorted in.
319
238
  */
320
- export const getUsersUseridFavoriteGames = endpoint({
321
- method: "GET",
322
- path: "/v2/users/:userId/favorite/games",
323
- baseUrl: "https://games.roblox.com",
324
- requestFormat: "json",
239
+ export const getUsersUseridGames = endpoint({
240
+ method: 'GET',
241
+ path: '/v2/users/:userId/games',
242
+ baseUrl: 'https://games.roblox.com',
243
+ requestFormat: 'json',
325
244
  serializationMethod: {
326
245
  userId: {
327
- style: "simple",
246
+ style: 'simple',
328
247
  },
329
248
  accessFilter: {
330
- style: "form",
249
+ style: 'form',
331
250
  explode: true,
332
251
  },
333
252
  limit: {
334
- style: "form",
253
+ style: 'form',
335
254
  explode: true,
336
255
  },
337
256
  cursor: {
338
- style: "form",
257
+ style: 'form',
339
258
  explode: true,
340
259
  },
341
260
  sortOrder: {
342
- style: "form",
261
+ style: 'form',
343
262
  explode: true,
344
263
  },
345
264
  },
@@ -350,65 +269,73 @@ export const getUsersUseridFavoriteGames = endpoint({
350
269
  .optional()
351
270
  .default(2),
352
271
  limit: z
353
- .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
272
+ .union([z.literal(10), z.literal(25), z.literal(50)])
354
273
  .optional()
355
274
  .default(10),
356
275
  cursor: z.string().optional(),
357
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Desc"),
276
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
358
277
  },
359
- response:
360
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
278
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
361
279
  errors: [],
362
280
  });
281
+
363
282
  /**
364
- * @api GET https://games.roblox.com/v2/users/:userId/games
365
- * @summary Gets games created by the specified user.
366
- * @param userId The user Id.
283
+ * @api GET https://games.roblox.com/v2/groups/:groupId/games
284
+ * @summary Gets games created by the specified group.
285
+ * @param groupId The group Id.
367
286
  * @param accessFilter Filtering option via access level.
368
287
  * @param limit The number of results per request.
369
288
  * @param cursor The paging cursor for the previous or next page.
370
289
  * @param sortOrder The order the results are sorted in.
371
290
  */
372
- export const getUsersUseridGames = endpoint({
373
- method: "GET",
374
- path: "/v2/users/:userId/games",
375
- baseUrl: "https://games.roblox.com",
376
- requestFormat: "json",
291
+ export const getGroupsGroupidGames = endpoint({
292
+ method: 'GET',
293
+ path: '/v2/groups/:groupId/games',
294
+ baseUrl: 'https://games.roblox.com',
295
+ requestFormat: 'json',
377
296
  serializationMethod: {
378
- userId: {
379
- style: "simple",
297
+ groupId: {
298
+ style: 'simple',
380
299
  },
381
300
  accessFilter: {
382
- style: "form",
301
+ style: 'form',
383
302
  explode: true,
384
303
  },
385
304
  limit: {
386
- style: "form",
305
+ style: 'form',
387
306
  explode: true,
388
307
  },
389
308
  cursor: {
390
- style: "form",
309
+ style: 'form',
391
310
  explode: true,
392
311
  },
393
312
  sortOrder: {
394
- style: "form",
313
+ style: 'form',
395
314
  explode: true,
396
315
  },
397
316
  },
398
317
  parameters: {
399
- userId: z.number().int(),
318
+ groupId: z.number().int(),
400
319
  accessFilter: z
401
320
  .union([z.literal(1), z.literal(2), z.literal(4)])
402
321
  .optional()
403
- .default(2),
322
+ .default(1),
404
323
  limit: z
405
- .union([z.literal(10), z.literal(25), z.literal(50)])
324
+ .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
406
325
  .optional()
407
326
  .default(10),
408
327
  cursor: z.string().optional(),
409
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
328
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
410
329
  },
411
- response:
412
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
413
- errors: [],
330
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
331
+ errors: [
332
+ {
333
+ status: 403,
334
+ description: `3: Not authorized.`,
335
+ },
336
+ {
337
+ status: 500,
338
+ description: `0: Compliance Context service is unavailable.`,
339
+ },
340
+ ],
414
341
  });