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,145 +1,137 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_ =
5
- z.object({ id: z.number().int(), type: z.literal("User"), name: z.string() });
4
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_ = z.object({
5
+ id: z.number().int(),
6
+ type: z.literal('User'),
7
+ name: z.string(),
8
+ });
6
9
  const Roblox_Web_Responses_Groups_GroupResponseV2 = z.object({
7
10
  id: z.number().int(),
8
11
  name: z.string(),
9
12
  description: z.string(),
10
- owner:
11
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_,
13
+ owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_,
12
14
  memberCount: z.number().int(),
13
15
  created: z.string().datetime({ offset: true }),
14
16
  hasVerifiedBadge: z.boolean(),
15
17
  });
16
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Groups_GroupResponseV2_ =
17
- z.object({ data: z.array(Roblox_Web_Responses_Groups_GroupResponseV2) });
18
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ =
19
- z.object({
20
- id: z.number().int(),
21
- type: z.enum(["User", "Group"]),
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.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
- "VoxelFragment",
112
- "AvatarBackground",
113
- "TextDocument",
114
- ]),
115
- name: z.string(),
116
- });
18
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Groups_GroupResponseV2_ = z.object({
19
+ data: z.array(Roblox_Web_Responses_Groups_GroupResponseV2),
20
+ });
21
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = z.object({
22
+ id: z.number().int(),
23
+ type: z.enum(['User', 'Group']),
24
+ name: z.string(),
25
+ });
26
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = z.object({
27
+ id: z.number().int(),
28
+ type: 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
+ 'VoxelFragment',
113
+ 'AvatarBackground',
114
+ 'TextDocument',
115
+ ]),
116
+ name: z.string(),
117
+ });
117
118
  const Roblox_Groups_Api_Models_Response_GroupExperienceResponse = z.object({
118
119
  id: z.number().int(),
119
120
  name: z.string(),
120
121
  description: z.string(),
121
- creator:
122
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
123
- rootPlace:
124
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
122
+ creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
123
+ rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
125
124
  created: z.string().datetime({ offset: true }),
126
125
  updated: z.string().datetime({ offset: true }),
127
126
  placeVisits: z.number().int(),
128
127
  });
129
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_Models_Response_GroupExperienceResponse_ =
130
- z.object({
131
- previousPageCursor: z.string(),
132
- nextPageCursor: z.string(),
133
- data: z.array(Roblox_Groups_Api_Models_Response_GroupExperienceResponse),
134
- });
128
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_Models_Response_GroupExperienceResponse_ = z.object({
129
+ previousPageCursor: z.string(),
130
+ nextPageCursor: z.string(),
131
+ data: z.array(Roblox_Groups_Api_Models_Response_GroupExperienceResponse),
132
+ });
135
133
  const Roblox_Groups_Api_Models_Response_UserModel = z.object({
136
- buildersClubMembershipType: z.union([
137
- z.literal(0),
138
- z.literal(1),
139
- z.literal(2),
140
- z.literal(3),
141
- z.literal(4),
142
- ]),
134
+ buildersClubMembershipType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
143
135
  hasVerifiedBadge: z.boolean(),
144
136
  userId: z.number().int(),
145
137
  username: z.string(),
@@ -164,20 +156,16 @@ const Roblox_Groups_Api_GroupDetailResponse = z.object({
164
156
  hasVerifiedBadge: z.boolean(),
165
157
  hasSocialModules: z.boolean(),
166
158
  });
167
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupDetailResponse_ =
168
- z.object({
169
- previousPageCursor: z.string(),
170
- nextPageCursor: z.string(),
171
- data: z.array(Roblox_Groups_Api_GroupDetailResponse),
172
- });
173
- const Roblox_Groups_Api_Models_Response_GroupRelationshipsV2Response = z.object(
174
- {
175
- groupId: z.number().int(),
176
- relationshipType: z.enum(["Allies", "Enemies"]),
177
- groupResponses:
178
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupDetailResponse_,
179
- }
180
- );
159
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupDetailResponse_ = z.object({
160
+ previousPageCursor: z.string(),
161
+ nextPageCursor: z.string(),
162
+ data: z.array(Roblox_Groups_Api_GroupDetailResponse),
163
+ });
164
+ const Roblox_Groups_Api_Models_Response_GroupRelationshipsV2Response = z.object({
165
+ groupId: z.number().int(),
166
+ relationshipType: z.enum(['Allies', 'Enemies']),
167
+ groupResponses: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupDetailResponse_,
168
+ });
181
169
  const Roblox_Groups_Api_GroupRoleResponse = z.object({
182
170
  id: z.number().int(),
183
171
  name: z.string(),
@@ -186,23 +174,23 @@ const Roblox_Groups_Api_GroupRoleResponse = z.object({
186
174
  memberCount: z.number().int(),
187
175
  isBase: z.boolean(),
188
176
  color: z.enum([
189
- "Invalid",
190
- "Blue",
191
- "Green",
192
- "Purple",
193
- "Yellow",
194
- "Orange",
195
- "Red",
196
- "Magenta",
197
- "Teal",
198
- "Turquoise",
199
- "Rust",
200
- "Pistachio",
201
- "Midnight",
202
- "Lavender",
203
- "Pink",
204
- "Crimson",
205
- "Plum",
177
+ 'Invalid',
178
+ 'Blue',
179
+ 'Green',
180
+ 'Purple',
181
+ 'Yellow',
182
+ 'Orange',
183
+ 'Red',
184
+ 'Magenta',
185
+ 'Teal',
186
+ 'Turquoise',
187
+ 'Rust',
188
+ 'Pistachio',
189
+ 'Midnight',
190
+ 'Lavender',
191
+ 'Pink',
192
+ 'Crimson',
193
+ 'Plum',
206
194
  ]),
207
195
  });
208
196
  const Roblox_Groups_Api_UserGroupRoleResponse = z.object({
@@ -216,12 +204,11 @@ const Roblox_Groups_Api_GroupWallPostV2Model = z.object({
216
204
  created: z.string().datetime({ offset: true }),
217
205
  updated: z.string().datetime({ offset: true }),
218
206
  });
219
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupWallPostV2Model_ =
220
- z.object({
221
- previousPageCursor: z.string(),
222
- nextPageCursor: z.string(),
223
- data: z.array(Roblox_Groups_Api_GroupWallPostV2Model),
224
- });
207
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupWallPostV2Model_ = z.object({
208
+ previousPageCursor: z.string(),
209
+ nextPageCursor: z.string(),
210
+ data: z.array(Roblox_Groups_Api_GroupWallPostV2Model),
211
+ });
225
212
  const Roblox_Groups_Api_CreateWallPostRequest = z.object({
226
213
  body: z.string(),
227
214
  captchaId: z.string(),
@@ -242,11 +229,11 @@ const Roblox_Web_Responses_Groups_GroupRoleBasicResponse = z.object({
242
229
  });
243
230
  const Roblox_Groups_Api_GroupNotificationPreferenceData = z.object({
244
231
  type: z.enum([
245
- "AnnouncementCreatedNotification",
246
- "ForumPostCreatedNotification",
247
- "ForumCommentCreatedNotification",
248
- "ForumCommentReplyCreatedNotification",
249
- "ForumSubscriberNotification",
232
+ 'AnnouncementCreatedNotification',
233
+ 'ForumPostCreatedNotification',
234
+ 'ForumCommentCreatedNotification',
235
+ 'ForumCommentReplyCreatedNotification',
236
+ 'ForumSubscriberNotification',
250
237
  ]),
251
238
  enabled: z.boolean(),
252
239
  name: z.string(),
@@ -256,12 +243,11 @@ const Roblox_Groups_Api_GroupMembershipResponse = z.object({
256
243
  group: Roblox_Web_Responses_Groups_GroupBasicResponse,
257
244
  role: Roblox_Web_Responses_Groups_GroupRoleBasicResponse,
258
245
  isNotificationsEnabled: z.boolean(),
259
- notificationPreferences: z.array(
260
- Roblox_Groups_Api_GroupNotificationPreferenceData
261
- ),
246
+ notificationPreferences: z.array(Roblox_Groups_Api_GroupNotificationPreferenceData),
247
+ });
248
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupMembershipResponse_ = z.object({
249
+ data: z.array(Roblox_Groups_Api_GroupMembershipResponse),
262
250
  });
263
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupMembershipResponse_ =
264
- z.object({ data: z.array(Roblox_Groups_Api_GroupMembershipResponse) });
265
251
 
266
252
  /**
267
253
  * @api GET https://groups.roblox.com/v2/groups
@@ -270,20 +256,19 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupMembershi
270
256
  * @description If a group comes back as null, it will not be returned in the response.
271
257
  */
272
258
  export const getGroups = endpoint({
273
- method: "GET",
274
- path: "/v2/groups",
275
- baseUrl: "https://groups.roblox.com",
276
- requestFormat: "json",
259
+ method: 'GET',
260
+ path: '/v2/groups',
261
+ baseUrl: 'https://groups.roblox.com',
262
+ requestFormat: 'json',
277
263
  serializationMethod: {
278
264
  groupIds: {
279
- style: "form",
265
+ style: 'form',
280
266
  },
281
267
  },
282
268
  parameters: {
283
269
  groupIds: z.array(z.number()),
284
270
  },
285
- response:
286
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Groups_GroupResponseV2_,
271
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Groups_GroupResponseV2_,
287
272
  errors: [
288
273
  {
289
274
  status: 400,
@@ -302,28 +287,28 @@ export const getGroups = endpoint({
302
287
  * @param sortOrder The order the results are sorted in.
303
288
  */
304
289
  export const getGroupsGroupidExperiences = endpoint({
305
- method: "GET",
306
- path: "/v2/groups/:groupId/experiences",
307
- baseUrl: "https://groups.roblox.com",
308
- requestFormat: "json",
290
+ method: 'GET',
291
+ path: '/v2/groups/:groupId/experiences',
292
+ baseUrl: 'https://groups.roblox.com',
293
+ requestFormat: 'json',
309
294
  serializationMethod: {
310
295
  groupId: {
311
- style: "simple",
296
+ style: 'simple',
312
297
  },
313
298
  accessFilter: {
314
- style: "form",
299
+ style: 'form',
315
300
  explode: true,
316
301
  },
317
302
  limit: {
318
- style: "form",
303
+ style: 'form',
319
304
  explode: true,
320
305
  },
321
306
  cursor: {
322
- style: "form",
307
+ style: 'form',
323
308
  explode: true,
324
309
  },
325
310
  sortOrder: {
326
- style: "form",
311
+ style: 'form',
327
312
  explode: true,
328
313
  },
329
314
  },
@@ -338,10 +323,9 @@ export const getGroupsGroupidExperiences = endpoint({
338
323
  .optional()
339
324
  .default(10),
340
325
  cursor: z.string().optional(),
341
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
326
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
342
327
  },
343
- response:
344
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_Models_Response_GroupExperienceResponse_,
328
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_Models_Response_GroupExperienceResponse_,
345
329
  errors: [
346
330
  {
347
331
  status: 501,
@@ -359,27 +343,27 @@ export const getGroupsGroupidExperiences = endpoint({
359
343
  * @param sortOrder The order the results are sorted in.
360
344
  */
361
345
  export const getGroupsGroupidRelationshipsGrouprelationshiptype = endpoint({
362
- method: "GET",
363
- path: "/v2/groups/:groupId/relationships/:groupRelationshipType",
364
- baseUrl: "https://groups.roblox.com",
365
- requestFormat: "json",
346
+ method: 'GET',
347
+ path: '/v2/groups/:groupId/relationships/:groupRelationshipType',
348
+ baseUrl: 'https://groups.roblox.com',
349
+ requestFormat: 'json',
366
350
  serializationMethod: {
367
351
  groupId: {
368
- style: "simple",
352
+ style: 'simple',
369
353
  },
370
354
  groupRelationshipType: {
371
- style: "simple",
355
+ style: 'simple',
372
356
  },
373
357
  limit: {
374
- style: "form",
358
+ style: 'form',
375
359
  explode: true,
376
360
  },
377
361
  cursor: {
378
- style: "form",
362
+ style: 'form',
379
363
  explode: true,
380
364
  },
381
365
  sortOrder: {
382
- style: "form",
366
+ style: 'form',
383
367
  explode: true,
384
368
  },
385
369
  },
@@ -391,7 +375,7 @@ export const getGroupsGroupidRelationshipsGrouprelationshiptype = endpoint({
391
375
  .optional()
392
376
  .default(10),
393
377
  cursor: z.string().optional(),
394
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
378
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
395
379
  },
396
380
  response: Roblox_Groups_Api_Models_Response_GroupRelationshipsV2Response,
397
381
  errors: [
@@ -412,60 +396,59 @@ export const getGroupsGroupidRelationshipsGrouprelationshiptype = endpoint({
412
396
  * @param cursor The paging cursor for the previous or next page.
413
397
  * @param sortOrder The order the results are sorted in.
414
398
  */
415
- export const getGroupsGroupidRelationshipsGrouprelationshiptypeRequests =
416
- endpoint({
417
- method: "GET",
418
- path: "/v2/groups/:groupId/relationships/:groupRelationshipType/requests",
419
- baseUrl: "https://groups.roblox.com",
420
- requestFormat: "json",
421
- serializationMethod: {
422
- groupId: {
423
- style: "simple",
424
- },
425
- groupRelationshipType: {
426
- style: "simple",
427
- },
428
- limit: {
429
- style: "form",
430
- explode: true,
431
- },
432
- cursor: {
433
- style: "form",
434
- explode: true,
435
- },
436
- sortOrder: {
437
- style: "form",
438
- explode: true,
439
- },
440
- },
441
- parameters: {
442
- groupId: z.number().int(),
443
- groupRelationshipType: z.string(),
444
- limit: z
445
- .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
446
- .optional()
447
- .default(10),
448
- cursor: z.string().optional(),
449
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
450
- },
451
- response: Roblox_Groups_Api_Models_Response_GroupRelationshipsV2Response,
452
- errors: [
453
- {
454
- status: 400,
455
- description: `1: Group is invalid or does not exist.
399
+ export const getGroupsGroupidRelationshipsGrouprelationshiptypeRequests = endpoint({
400
+ method: 'GET',
401
+ path: '/v2/groups/:groupId/relationships/:groupRelationshipType/requests',
402
+ baseUrl: 'https://groups.roblox.com',
403
+ requestFormat: 'json',
404
+ serializationMethod: {
405
+ groupId: {
406
+ style: 'simple',
407
+ },
408
+ groupRelationshipType: {
409
+ style: 'simple',
410
+ },
411
+ limit: {
412
+ style: 'form',
413
+ explode: true,
414
+ },
415
+ cursor: {
416
+ style: 'form',
417
+ explode: true,
418
+ },
419
+ sortOrder: {
420
+ style: 'form',
421
+ explode: true,
422
+ },
423
+ },
424
+ parameters: {
425
+ groupId: z.number().int(),
426
+ groupRelationshipType: z.string(),
427
+ limit: z
428
+ .union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
429
+ .optional()
430
+ .default(10),
431
+ cursor: z.string().optional(),
432
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
433
+ },
434
+ response: Roblox_Groups_Api_Models_Response_GroupRelationshipsV2Response,
435
+ errors: [
436
+ {
437
+ status: 400,
438
+ description: `1: Group is invalid or does not exist.
456
439
  4: Group relationship type or request type is invalid.
457
440
  8: Invalid or missing pagination parameters`,
458
- },
459
- {
460
- status: 401,
461
- description: `0: Authorization has been denied for this request.`,
462
- },
463
- {
464
- status: 403,
465
- description: `5: You don't have permission to manage this group's relationships.`,
466
- },
467
- ],
468
- });
441
+ },
442
+ {
443
+ status: 401,
444
+ description: `0: Authorization has been denied for this request.`,
445
+ },
446
+ {
447
+ status: 403,
448
+ description: `5: You don't have permission to manage this group's relationships.`,
449
+ },
450
+ ],
451
+ });
469
452
  /**
470
453
  * @api GET https://groups.roblox.com/v2/groups/:groupId/wall/posts
471
454
  * @summary Gets a list of group wall posts.
@@ -475,24 +458,24 @@ export const getGroupsGroupidRelationshipsGrouprelationshiptypeRequests =
475
458
  * @param sortOrder Sorted by group wall post Id
476
459
  */
477
460
  export const getGroupsGroupidWallPosts = endpoint({
478
- method: "GET",
479
- path: "/v2/groups/:groupId/wall/posts",
480
- baseUrl: "https://groups.roblox.com",
481
- requestFormat: "json",
461
+ method: 'GET',
462
+ path: '/v2/groups/:groupId/wall/posts',
463
+ baseUrl: 'https://groups.roblox.com',
464
+ requestFormat: 'json',
482
465
  serializationMethod: {
483
466
  groupId: {
484
- style: "simple",
467
+ style: 'simple',
485
468
  },
486
469
  limit: {
487
- style: "form",
470
+ style: 'form',
488
471
  explode: true,
489
472
  },
490
473
  cursor: {
491
- style: "form",
474
+ style: 'form',
492
475
  explode: true,
493
476
  },
494
477
  sortOrder: {
495
- style: "form",
478
+ style: 'form',
496
479
  explode: true,
497
480
  },
498
481
  },
@@ -503,10 +486,9 @@ export const getGroupsGroupidWallPosts = endpoint({
503
486
  .optional()
504
487
  .default(10),
505
488
  cursor: z.string().optional(),
506
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
489
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
507
490
  },
508
- response:
509
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupWallPostV2Model_,
491
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Groups_Api_GroupWallPostV2Model_,
510
492
  errors: [
511
493
  {
512
494
  status: 400,
@@ -525,14 +507,14 @@ export const getGroupsGroupidWallPosts = endpoint({
525
507
  * @param groupId The group id.
526
508
  */
527
509
  export const postGroupsGroupidWallPosts = endpoint({
528
- method: "POST",
529
- path: "/v2/groups/:groupId/wall/posts",
530
- baseUrl: "https://groups.roblox.com",
531
- requestFormat: "json",
510
+ method: 'POST',
511
+ path: '/v2/groups/:groupId/wall/posts',
512
+ baseUrl: 'https://groups.roblox.com',
513
+ requestFormat: 'json',
532
514
  serializationMethod: {
533
515
  body: {},
534
516
  groupId: {
535
- style: "simple",
517
+ style: 'simple',
536
518
  },
537
519
  },
538
520
  parameters: {
@@ -571,24 +553,24 @@ export const postGroupsGroupidWallPosts = endpoint({
571
553
  * @param discoveryType
572
554
  */
573
555
  export const getUsersUseridGroupsRoles = endpoint({
574
- method: "GET",
575
- path: "/v2/users/:userId/groups/roles",
576
- baseUrl: "https://groups.roblox.com",
577
- requestFormat: "json",
556
+ method: 'GET',
557
+ path: '/v2/users/:userId/groups/roles',
558
+ baseUrl: 'https://groups.roblox.com',
559
+ requestFormat: 'json',
578
560
  serializationMethod: {
579
561
  userId: {
580
- style: "simple",
562
+ style: 'simple',
581
563
  },
582
564
  includeLocked: {
583
- style: "form",
565
+ style: 'form',
584
566
  explode: true,
585
567
  },
586
568
  includeNotificationPreferences: {
587
- style: "form",
569
+ style: 'form',
588
570
  explode: true,
589
571
  },
590
572
  discoveryType: {
591
- style: "form",
573
+ style: 'form',
592
574
  explode: true,
593
575
  },
594
576
  },
@@ -598,8 +580,7 @@ export const getUsersUseridGroupsRoles = endpoint({
598
580
  includeNotificationPreferences: z.boolean(),
599
581
  discoveryType: z.union([z.literal(0), z.literal(1)]),
600
582
  },
601
- response:
602
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupMembershipResponse_,
583
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupMembershipResponse_,
603
584
  errors: [
604
585
  {
605
586
  status: 400,