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.
- package/lib/endpoints/accountinformationv1.d.ts +92 -95
- package/lib/endpoints/accountsettingsv1.d.ts +88 -110
- package/lib/endpoints/adconfigurationv2.d.ts +108 -215
- package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
- package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
- package/lib/endpoints/authv1.d.ts +479 -521
- package/lib/endpoints/authv2.d.ts +209 -221
- package/lib/endpoints/authv3.d.ts +32 -35
- package/lib/endpoints/avatarv1.d.ts +112 -117
- package/lib/endpoints/avatarv2.d.ts +71 -76
- package/lib/endpoints/avatarv3.d.ts +27 -33
- package/lib/endpoints/badgesv1.d.ts +92 -99
- package/lib/endpoints/catalogv1.d.ts +207 -233
- package/lib/endpoints/catalogv2.d.ts +81 -119
- package/lib/endpoints/clientsettingsv1.d.ts +33 -35
- package/lib/endpoints/clientsettingsv2.d.ts +62 -68
- package/lib/endpoints/contactsv1.d.ts +18 -20
- package/lib/endpoints/developv1.d.ts +230 -293
- package/lib/endpoints/developv2.d.ts +84 -137
- package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
- package/lib/endpoints/economyv1.d.ts +6 -6
- package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
- package/lib/endpoints/followingsv1.d.ts +33 -34
- package/lib/endpoints/followingsv2.d.ts +9 -9
- package/lib/endpoints/friendsv1.d.ts +200 -237
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamesv1.d.ts +181 -143
- package/lib/endpoints/gamesv2.d.ts +161 -169
- package/lib/endpoints/groupsv1.d.ts +938 -988
- package/lib/endpoints/groupsv2.d.ts +259 -278
- package/lib/endpoints/inventoryv1.d.ts +91 -122
- package/lib/endpoints/inventoryv2.d.ts +163 -180
- package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
- package/lib/endpoints/localev1.d.ts +47 -48
- package/lib/endpoints/localizationtablesv1.d.ts +315 -353
- package/lib/endpoints/matchmakingv1.d.ts +184 -190
- package/lib/endpoints/notificationsv2.d.ts +144 -158
- package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
- package/lib/endpoints/presencev1.d.ts +7 -12
- package/lib/endpoints/privatemessagesv1.d.ts +56 -64
- package/lib/endpoints/publishv1.d.ts +32 -32
- package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
- package/lib/endpoints/thumbnailsv1.d.ts +325 -326
- package/lib/endpoints/thumbnailsv1.js +24 -24
- package/lib/endpoints/tradesv1.d.ts +92 -104
- package/lib/endpoints/tradesv2.d.ts +81 -84
- package/lib/endpoints/translationrolesv1.d.ts +46 -51
- package/lib/endpoints/twostepverificationv1.d.ts +233 -237
- package/lib/endpoints/usersv1.d.ts +110 -114
- package/lib/index.d.ts +56 -1
- package/lib/index.js +159 -3
- package/package.json +2 -2
|
@@ -1,145 +1,137 @@
|
|
|
1
|
-
import { z } from
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ =
|
|
25
|
-
z.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
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.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
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:
|
|
274
|
-
path:
|
|
275
|
-
baseUrl:
|
|
276
|
-
requestFormat:
|
|
259
|
+
method: 'GET',
|
|
260
|
+
path: '/v2/groups',
|
|
261
|
+
baseUrl: 'https://groups.roblox.com',
|
|
262
|
+
requestFormat: 'json',
|
|
277
263
|
serializationMethod: {
|
|
278
264
|
groupIds: {
|
|
279
|
-
style:
|
|
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:
|
|
306
|
-
path:
|
|
307
|
-
baseUrl:
|
|
308
|
-
requestFormat:
|
|
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:
|
|
296
|
+
style: 'simple',
|
|
312
297
|
},
|
|
313
298
|
accessFilter: {
|
|
314
|
-
style:
|
|
299
|
+
style: 'form',
|
|
315
300
|
explode: true,
|
|
316
301
|
},
|
|
317
302
|
limit: {
|
|
318
|
-
style:
|
|
303
|
+
style: 'form',
|
|
319
304
|
explode: true,
|
|
320
305
|
},
|
|
321
306
|
cursor: {
|
|
322
|
-
style:
|
|
307
|
+
style: 'form',
|
|
323
308
|
explode: true,
|
|
324
309
|
},
|
|
325
310
|
sortOrder: {
|
|
326
|
-
style:
|
|
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([
|
|
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:
|
|
363
|
-
path:
|
|
364
|
-
baseUrl:
|
|
365
|
-
requestFormat:
|
|
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:
|
|
352
|
+
style: 'simple',
|
|
369
353
|
},
|
|
370
354
|
groupRelationshipType: {
|
|
371
|
-
style:
|
|
355
|
+
style: 'simple',
|
|
372
356
|
},
|
|
373
357
|
limit: {
|
|
374
|
-
style:
|
|
358
|
+
style: 'form',
|
|
375
359
|
explode: true,
|
|
376
360
|
},
|
|
377
361
|
cursor: {
|
|
378
|
-
style:
|
|
362
|
+
style: 'form',
|
|
379
363
|
explode: true,
|
|
380
364
|
},
|
|
381
365
|
sortOrder: {
|
|
382
|
-
style:
|
|
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([
|
|
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
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
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
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
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:
|
|
479
|
-
path:
|
|
480
|
-
baseUrl:
|
|
481
|
-
requestFormat:
|
|
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:
|
|
467
|
+
style: 'simple',
|
|
485
468
|
},
|
|
486
469
|
limit: {
|
|
487
|
-
style:
|
|
470
|
+
style: 'form',
|
|
488
471
|
explode: true,
|
|
489
472
|
},
|
|
490
473
|
cursor: {
|
|
491
|
-
style:
|
|
474
|
+
style: 'form',
|
|
492
475
|
explode: true,
|
|
493
476
|
},
|
|
494
477
|
sortOrder: {
|
|
495
|
-
style:
|
|
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([
|
|
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:
|
|
529
|
-
path:
|
|
530
|
-
baseUrl:
|
|
531
|
-
requestFormat:
|
|
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:
|
|
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:
|
|
575
|
-
path:
|
|
576
|
-
baseUrl:
|
|
577
|
-
requestFormat:
|
|
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:
|
|
562
|
+
style: 'simple',
|
|
581
563
|
},
|
|
582
564
|
includeLocked: {
|
|
583
|
-
style:
|
|
565
|
+
style: 'form',
|
|
584
566
|
explode: true,
|
|
585
567
|
},
|
|
586
568
|
includeNotificationPreferences: {
|
|
587
|
-
style:
|
|
569
|
+
style: 'form',
|
|
588
570
|
explode: true,
|
|
589
571
|
},
|
|
590
572
|
discoveryType: {
|
|
591
|
-
style:
|
|
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,
|