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.
- package/lib/endpoints/accountsettingsv1.d.ts +27 -33
- package/lib/endpoints/accountsettingsv1.js +11 -22
- package/lib/endpoints/adconfigurationv2.d.ts +104 -119
- package/lib/endpoints/adconfigurationv2.js +32 -48
- package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv1.js +25 -24
- package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv2.js +25 -24
- package/lib/endpoints/authv1.d.ts +132 -84
- package/lib/endpoints/authv1.js +118 -64
- package/lib/endpoints/authv2.d.ts +56 -56
- package/lib/endpoints/authv2.js +57 -50
- package/lib/endpoints/authv3.d.ts +11 -11
- package/lib/endpoints/authv3.js +11 -11
- package/lib/endpoints/avatarv1.d.ts +1 -0
- package/lib/endpoints/avatarv1.js +1 -0
- package/lib/endpoints/avatarv2.d.ts +1 -0
- package/lib/endpoints/avatarv2.js +1 -0
- package/lib/endpoints/avatarv3.d.ts +1 -0
- package/lib/endpoints/avatarv3.js +1 -0
- package/lib/endpoints/badgesv1.d.ts +6 -22
- package/lib/endpoints/badgesv1.js +2 -22
- package/lib/endpoints/catalogv1.d.ts +39 -113
- package/lib/endpoints/catalogv1.js +39 -107
- package/lib/endpoints/catalogv2.d.ts +11 -11
- package/lib/endpoints/catalogv2.js +11 -11
- package/lib/endpoints/clientsettingsv2.d.ts +8 -7
- package/lib/endpoints/clientsettingsv2.js +9 -1
- package/lib/endpoints/developv1.d.ts +31 -31
- package/lib/endpoints/developv1.js +26 -26
- package/lib/endpoints/developv2.d.ts +27 -27
- package/lib/endpoints/developv2.js +22 -22
- package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
- package/lib/endpoints/economycreatorstatsv1.js +1 -1
- package/lib/endpoints/followingsv2.d.ts +2 -2
- package/lib/endpoints/followingsv2.js +2 -2
- package/lib/endpoints/friendsv1.d.ts +24 -98
- package/lib/endpoints/friendsv1.js +25 -91
- package/lib/endpoints/gamesv1.d.ts +31 -615
- package/lib/endpoints/gamesv1.js +32 -608
- package/lib/endpoints/gamesv2.d.ts +187 -260
- package/lib/endpoints/gamesv2.js +130 -190
- package/lib/endpoints/groupsv1.d.ts +34 -28
- package/lib/endpoints/groupsv1.js +31 -18
- package/lib/endpoints/groupsv2.d.ts +92 -92
- package/lib/endpoints/groupsv2.js +93 -87
- package/lib/endpoints/inventoryv1.d.ts +9 -21
- package/lib/endpoints/inventoryv1.js +4 -4
- package/lib/endpoints/inventoryv2.d.ts +91 -91
- package/lib/endpoints/inventoryv2.js +86 -86
- package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
- package/lib/endpoints/itemconfigurationv1.js +1 -1
- package/lib/endpoints/thumbnailsv1.d.ts +1 -0
- package/lib/endpoints/thumbnailsv1.js +1 -0
- package/lib/endpoints/tradesv1.d.ts +10 -16
- package/lib/endpoints/tradesv1.js +10 -10
- package/lib/endpoints/twostepverificationv1.d.ts +59 -59
- package/lib/endpoints/twostepverificationv1.js +59 -59
- package/lib/endpoints/usersv1.d.ts +1 -1
- package/lib/endpoints/usersv1.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +29 -3
- package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
- package/lib/opencloud/v1/asset-permissions.js +9 -3
- package/lib/opencloud/v1/assets.d.ts +59 -32
- package/lib/opencloud/v1/assets.js +77 -41
- package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
- package/lib/opencloud/v1/datastores-ordered.js +62 -20
- package/lib/opencloud/v1/datastores.d.ts +99 -42
- package/lib/opencloud/v1/datastores.js +123 -50
- package/lib/opencloud/v1/developer-products.d.ts +29 -11
- package/lib/opencloud/v1/developer-products.js +37 -15
- package/lib/opencloud/v1/game-passes.d.ts +29 -11
- package/lib/opencloud/v1/game-passes.js +37 -15
- package/lib/opencloud/v1/messaging.d.ts +6 -2
- package/lib/opencloud/v1/messaging.js +8 -3
- package/lib/opencloud/v1/open-eval.d.ts +14 -4
- package/lib/opencloud/v1/open-eval.js +18 -6
- package/lib/opencloud/v1/secrets-store.d.ts +46 -26
- package/lib/opencloud/v1/secrets-store.js +56 -31
- package/lib/opencloud/v1/toolbox.d.ts +14 -6
- package/lib/opencloud/v1/toolbox.js +18 -8
- package/lib/opencloud/v1/universes.d.ts +6 -2
- package/lib/opencloud/v1/universes.js +8 -3
- package/lib/opencloud/v2/cloud.d.ts +854 -395
- package/lib/opencloud/v2/cloud.js +967 -395
- package/package.json +1 -1
package/lib/endpoints/gamesv2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getGroupsGroupidGames = exports.getUsersUseridGames = exports.getUsersUseridFavoriteGames = exports.getGamesUniverseidMedia = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Web_Responses_Games_GameMediaItemResponseV2 = zod_1.z.object({
|
|
@@ -18,99 +18,100 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameM
|
|
|
18
18
|
});
|
|
19
19
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = zod_1.z.object({
|
|
20
20
|
id: zod_1.z.number().int(),
|
|
21
|
-
type: zod_1.z.
|
|
21
|
+
type: zod_1.z.enum(['User', 'Group']),
|
|
22
22
|
name: zod_1.z.string(),
|
|
23
23
|
});
|
|
24
24
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = zod_1.z.object({
|
|
25
25
|
id: zod_1.z.number().int(),
|
|
26
|
-
type: zod_1.z.
|
|
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
|
-
|
|
26
|
+
type: zod_1.z.enum([
|
|
27
|
+
'Image',
|
|
28
|
+
'TShirt',
|
|
29
|
+
'Audio',
|
|
30
|
+
'Mesh',
|
|
31
|
+
'Lua',
|
|
32
|
+
'HTML',
|
|
33
|
+
'Text',
|
|
34
|
+
'Hat',
|
|
35
|
+
'Place',
|
|
36
|
+
'Model',
|
|
37
|
+
'Shirt',
|
|
38
|
+
'Pants',
|
|
39
|
+
'Decal',
|
|
40
|
+
'Avatar',
|
|
41
|
+
'Head',
|
|
42
|
+
'Face',
|
|
43
|
+
'Gear',
|
|
44
|
+
'Badge',
|
|
45
|
+
'GroupEmblem',
|
|
46
|
+
'Animation',
|
|
47
|
+
'Arms',
|
|
48
|
+
'Legs',
|
|
49
|
+
'Torso',
|
|
50
|
+
'RightArm',
|
|
51
|
+
'LeftArm',
|
|
52
|
+
'LeftLeg',
|
|
53
|
+
'RightLeg',
|
|
54
|
+
'Package',
|
|
55
|
+
'YouTubeVideo',
|
|
56
|
+
'GamePass',
|
|
57
|
+
'App',
|
|
58
|
+
'Code',
|
|
59
|
+
'Plugin',
|
|
60
|
+
'SolidModel',
|
|
61
|
+
'MeshPart',
|
|
62
|
+
'HairAccessory',
|
|
63
|
+
'FaceAccessory',
|
|
64
|
+
'NeckAccessory',
|
|
65
|
+
'ShoulderAccessory',
|
|
66
|
+
'FrontAccessory',
|
|
67
|
+
'BackAccessory',
|
|
68
|
+
'WaistAccessory',
|
|
69
|
+
'ClimbAnimation',
|
|
70
|
+
'DeathAnimation',
|
|
71
|
+
'FallAnimation',
|
|
72
|
+
'IdleAnimation',
|
|
73
|
+
'JumpAnimation',
|
|
74
|
+
'RunAnimation',
|
|
75
|
+
'SwimAnimation',
|
|
76
|
+
'WalkAnimation',
|
|
77
|
+
'PoseAnimation',
|
|
78
|
+
'LocalizationTableManifest',
|
|
79
|
+
'LocalizationTableTranslation',
|
|
80
|
+
'EmoteAnimation',
|
|
81
|
+
'Video',
|
|
82
|
+
'TexturePack',
|
|
83
|
+
'TShirtAccessory',
|
|
84
|
+
'ShirtAccessory',
|
|
85
|
+
'PantsAccessory',
|
|
86
|
+
'JacketAccessory',
|
|
87
|
+
'SweaterAccessory',
|
|
88
|
+
'ShortsAccessory',
|
|
89
|
+
'LeftShoeAccessory',
|
|
90
|
+
'RightShoeAccessory',
|
|
91
|
+
'DressSkirtAccessory',
|
|
92
|
+
'FontFamily',
|
|
93
|
+
'FontFace',
|
|
94
|
+
'MeshHiddenSurfaceRemoval',
|
|
95
|
+
'EyebrowAccessory',
|
|
96
|
+
'EyelashAccessory',
|
|
97
|
+
'MoodAnimation',
|
|
98
|
+
'DynamicHead',
|
|
99
|
+
'CodeSnippet',
|
|
100
|
+
'AdsVideo',
|
|
101
|
+
'OtaUpdate',
|
|
102
|
+
'Screenshot',
|
|
103
|
+
'RuntimePropertySet',
|
|
104
|
+
'StorePreviewVideo',
|
|
105
|
+
'GamePreviewVideo',
|
|
106
|
+
'CreatorExperienceConfig',
|
|
107
|
+
'FaceMakeup',
|
|
108
|
+
'LipMakeup',
|
|
109
|
+
'EyeMakeup',
|
|
110
110
|
]),
|
|
111
111
|
name: zod_1.z.string(),
|
|
112
112
|
});
|
|
113
|
-
const
|
|
113
|
+
const Roblox_Web_Responses_Games_GameFavoriteResponseModel = zod_1.z.object({
|
|
114
|
+
price: zod_1.z.number().int(),
|
|
114
115
|
id: zod_1.z.number().int(),
|
|
115
116
|
name: zod_1.z.string(),
|
|
116
117
|
description: zod_1.z.string(),
|
|
@@ -120,13 +121,12 @@ const Roblox_Web_Responses_Games_GameResponseV2 = zod_1.z.object({
|
|
|
120
121
|
updated: zod_1.z.string().datetime({ offset: true }),
|
|
121
122
|
placeVisits: zod_1.z.number().int(),
|
|
122
123
|
});
|
|
123
|
-
const
|
|
124
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ = zod_1.z.object({
|
|
124
125
|
previousPageCursor: zod_1.z.string(),
|
|
125
126
|
nextPageCursor: zod_1.z.string(),
|
|
126
|
-
data: zod_1.z.array(
|
|
127
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
|
|
127
128
|
});
|
|
128
|
-
const
|
|
129
|
-
price: zod_1.z.number().int(),
|
|
129
|
+
const Roblox_Web_Responses_Games_GameResponseV2 = zod_1.z.object({
|
|
130
130
|
id: zod_1.z.number().int(),
|
|
131
131
|
name: zod_1.z.string(),
|
|
132
132
|
description: zod_1.z.string(),
|
|
@@ -136,10 +136,10 @@ const Roblox_Web_Responses_Games_GameFavoriteResponseModel = zod_1.z.object({
|
|
|
136
136
|
updated: zod_1.z.string().datetime({ offset: true }),
|
|
137
137
|
placeVisits: zod_1.z.number().int(),
|
|
138
138
|
});
|
|
139
|
-
const
|
|
139
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ = zod_1.z.object({
|
|
140
140
|
previousPageCursor: zod_1.z.string(),
|
|
141
141
|
nextPageCursor: zod_1.z.string(),
|
|
142
|
-
data: zod_1.z.array(
|
|
142
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameResponseV2),
|
|
143
143
|
});
|
|
144
144
|
/**
|
|
145
145
|
* @api GET https://games.roblox.com/v2/games/:universeId/media
|
|
@@ -178,81 +178,21 @@ exports.getGamesUniverseidMedia = (0, __1.endpoint)({
|
|
|
178
178
|
],
|
|
179
179
|
});
|
|
180
180
|
/**
|
|
181
|
-
* @api GET https://games.roblox.com/v2/
|
|
182
|
-
* @summary Gets
|
|
183
|
-
* @param
|
|
184
|
-
* @param accessFilter Filtering option via access level.
|
|
185
|
-
* @param limit The number of results per request.
|
|
186
|
-
* @param cursor The paging cursor for the previous or next page.
|
|
187
|
-
* @param sortOrder The order the results are sorted in.
|
|
188
|
-
*/
|
|
189
|
-
exports.getGroupsGroupidGames = (0, __1.endpoint)({
|
|
190
|
-
method: 'GET',
|
|
191
|
-
path: '/v2/groups/:groupId/games',
|
|
192
|
-
baseUrl: 'https://games.roblox.com',
|
|
193
|
-
requestFormat: 'json',
|
|
194
|
-
serializationMethod: {
|
|
195
|
-
groupId: {
|
|
196
|
-
style: 'simple',
|
|
197
|
-
},
|
|
198
|
-
accessFilter: {
|
|
199
|
-
style: 'form',
|
|
200
|
-
explode: true,
|
|
201
|
-
},
|
|
202
|
-
limit: {
|
|
203
|
-
style: 'form',
|
|
204
|
-
explode: true,
|
|
205
|
-
},
|
|
206
|
-
cursor: {
|
|
207
|
-
style: 'form',
|
|
208
|
-
explode: true,
|
|
209
|
-
},
|
|
210
|
-
sortOrder: {
|
|
211
|
-
style: 'form',
|
|
212
|
-
explode: true,
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
parameters: {
|
|
216
|
-
groupId: zod_1.z.number().int(),
|
|
217
|
-
accessFilter: zod_1.z
|
|
218
|
-
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
219
|
-
.optional()
|
|
220
|
-
.default(1),
|
|
221
|
-
limit: zod_1.z
|
|
222
|
-
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
223
|
-
.optional()
|
|
224
|
-
.default(10),
|
|
225
|
-
cursor: zod_1.z.string().optional(),
|
|
226
|
-
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
227
|
-
},
|
|
228
|
-
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
229
|
-
errors: [
|
|
230
|
-
{
|
|
231
|
-
status: 403,
|
|
232
|
-
description: `3: Not authorized.`,
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
status: 500,
|
|
236
|
-
description: `0: Compliance Context service is unavailable.`,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
});
|
|
240
|
-
/**
|
|
241
|
-
* @api GET https://games.roblox.com/v2/groups/:groupId/gamesV2
|
|
242
|
-
* @summary Gets games created by the specified group. This will replace V1 after validation. Note that this can only used for public/all universes.
|
|
243
|
-
* @param groupId The group Id.
|
|
181
|
+
* @api GET https://games.roblox.com/v2/users/:userId/favorite/games
|
|
182
|
+
* @summary Gets users favorite games.
|
|
183
|
+
* @param userId The user Id.
|
|
244
184
|
* @param accessFilter Filtering option via access level.
|
|
245
185
|
* @param limit The number of results per request.
|
|
246
186
|
* @param cursor The paging cursor for the previous or next page.
|
|
247
187
|
* @param sortOrder The order the results are sorted in.
|
|
248
188
|
*/
|
|
249
|
-
exports.
|
|
189
|
+
exports.getUsersUseridFavoriteGames = (0, __1.endpoint)({
|
|
250
190
|
method: 'GET',
|
|
251
|
-
path: '/v2/
|
|
191
|
+
path: '/v2/users/:userId/favorite/games',
|
|
252
192
|
baseUrl: 'https://games.roblox.com',
|
|
253
193
|
requestFormat: 'json',
|
|
254
194
|
serializationMethod: {
|
|
255
|
-
|
|
195
|
+
userId: {
|
|
256
196
|
style: 'simple',
|
|
257
197
|
},
|
|
258
198
|
accessFilter: {
|
|
@@ -273,42 +213,33 @@ exports.getGroupsGroupidGamesv2 = (0, __1.endpoint)({
|
|
|
273
213
|
},
|
|
274
214
|
},
|
|
275
215
|
parameters: {
|
|
276
|
-
|
|
216
|
+
userId: zod_1.z.number().int(),
|
|
277
217
|
accessFilter: zod_1.z
|
|
278
218
|
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
279
219
|
.optional()
|
|
280
|
-
.default(
|
|
220
|
+
.default(2),
|
|
281
221
|
limit: zod_1.z
|
|
282
222
|
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
283
223
|
.optional()
|
|
284
224
|
.default(10),
|
|
285
225
|
cursor: zod_1.z.string().optional(),
|
|
286
|
-
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('
|
|
226
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Desc'),
|
|
287
227
|
},
|
|
288
|
-
response:
|
|
289
|
-
errors: [
|
|
290
|
-
{
|
|
291
|
-
status: 500,
|
|
292
|
-
description: `0: Compliance Context service is unavailable.`,
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
status: 501,
|
|
296
|
-
description: `1: Code path is not Implemented.`,
|
|
297
|
-
},
|
|
298
|
-
],
|
|
228
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
|
|
229
|
+
errors: [],
|
|
299
230
|
});
|
|
300
231
|
/**
|
|
301
|
-
* @api GET https://games.roblox.com/v2/users/:userId/
|
|
302
|
-
* @summary Gets
|
|
232
|
+
* @api GET https://games.roblox.com/v2/users/:userId/games
|
|
233
|
+
* @summary Gets games created by the specified user.
|
|
303
234
|
* @param userId The user Id.
|
|
304
235
|
* @param accessFilter Filtering option via access level.
|
|
305
236
|
* @param limit The number of results per request.
|
|
306
237
|
* @param cursor The paging cursor for the previous or next page.
|
|
307
238
|
* @param sortOrder The order the results are sorted in.
|
|
308
239
|
*/
|
|
309
|
-
exports.
|
|
240
|
+
exports.getUsersUseridGames = (0, __1.endpoint)({
|
|
310
241
|
method: 'GET',
|
|
311
|
-
path: '/v2/users/:userId/
|
|
242
|
+
path: '/v2/users/:userId/games',
|
|
312
243
|
baseUrl: 'https://games.roblox.com',
|
|
313
244
|
requestFormat: 'json',
|
|
314
245
|
serializationMethod: {
|
|
@@ -339,31 +270,31 @@ exports.getUsersUseridFavoriteGames = (0, __1.endpoint)({
|
|
|
339
270
|
.optional()
|
|
340
271
|
.default(2),
|
|
341
272
|
limit: zod_1.z
|
|
342
|
-
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50)
|
|
273
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50)])
|
|
343
274
|
.optional()
|
|
344
275
|
.default(10),
|
|
345
276
|
cursor: zod_1.z.string().optional(),
|
|
346
|
-
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('
|
|
277
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
347
278
|
},
|
|
348
|
-
response:
|
|
279
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
349
280
|
errors: [],
|
|
350
281
|
});
|
|
351
282
|
/**
|
|
352
|
-
* @api GET https://games.roblox.com/v2/
|
|
353
|
-
* @summary Gets games created by the specified
|
|
354
|
-
* @param
|
|
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.
|
|
355
286
|
* @param accessFilter Filtering option via access level.
|
|
356
287
|
* @param limit The number of results per request.
|
|
357
288
|
* @param cursor The paging cursor for the previous or next page.
|
|
358
289
|
* @param sortOrder The order the results are sorted in.
|
|
359
290
|
*/
|
|
360
|
-
exports.
|
|
291
|
+
exports.getGroupsGroupidGames = (0, __1.endpoint)({
|
|
361
292
|
method: 'GET',
|
|
362
|
-
path: '/v2/
|
|
293
|
+
path: '/v2/groups/:groupId/games',
|
|
363
294
|
baseUrl: 'https://games.roblox.com',
|
|
364
295
|
requestFormat: 'json',
|
|
365
296
|
serializationMethod: {
|
|
366
|
-
|
|
297
|
+
groupId: {
|
|
367
298
|
style: 'simple',
|
|
368
299
|
},
|
|
369
300
|
accessFilter: {
|
|
@@ -384,18 +315,27 @@ exports.getUsersUseridGames = (0, __1.endpoint)({
|
|
|
384
315
|
},
|
|
385
316
|
},
|
|
386
317
|
parameters: {
|
|
387
|
-
|
|
318
|
+
groupId: zod_1.z.number().int(),
|
|
388
319
|
accessFilter: zod_1.z
|
|
389
320
|
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
390
321
|
.optional()
|
|
391
|
-
.default(
|
|
322
|
+
.default(1),
|
|
392
323
|
limit: zod_1.z
|
|
393
|
-
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50)])
|
|
324
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
394
325
|
.optional()
|
|
395
326
|
.default(10),
|
|
396
327
|
cursor: zod_1.z.string().optional(),
|
|
397
328
|
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
398
329
|
},
|
|
399
330
|
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
400
|
-
errors: [
|
|
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
|
+
],
|
|
401
341
|
});
|
|
@@ -189,12 +189,12 @@ const Roblox_Groups_Api_GroupChannelPermissionsModel = z.object({
|
|
|
189
189
|
groupForumsPermissions: Roblox_Groups_Api_GroupForumsPermissionsModel,
|
|
190
190
|
});
|
|
191
191
|
const Roblox_Groups_Api_GroupNotificationPreferenceData = z.object({
|
|
192
|
-
type: z.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
type: z.enum([
|
|
193
|
+
"AnnouncementCreatedNotification",
|
|
194
|
+
"ForumPostCreatedNotification",
|
|
195
|
+
"ForumCommentCreatedNotification",
|
|
196
|
+
"ForumCommentReplyCreatedNotification",
|
|
197
|
+
"ForumSubscriberNotification",
|
|
198
198
|
]),
|
|
199
199
|
enabled: z.boolean(),
|
|
200
200
|
name: z.string(),
|
|
@@ -241,17 +241,17 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupPayoutRes
|
|
|
241
241
|
z.object({ data: z.array(Roblox_Groups_Api_GroupPayoutResponse) });
|
|
242
242
|
const Roblox_Groups_Api_PayoutRecipientRequest = z.object({
|
|
243
243
|
recipientId: z.number().int(),
|
|
244
|
-
recipientType: z.
|
|
244
|
+
recipientType: z.enum(["User", "Group"]),
|
|
245
245
|
amount: z.number().int(),
|
|
246
246
|
});
|
|
247
247
|
const Roblox_Groups_Api_PayoutRequest = z.object({
|
|
248
|
-
PayoutType: z.
|
|
248
|
+
PayoutType: z.enum(["FixedAmount", "Percentage"]),
|
|
249
249
|
Recipients: z.array(Roblox_Groups_Api_PayoutRecipientRequest),
|
|
250
250
|
IdempotencyKey: z.string(),
|
|
251
251
|
});
|
|
252
252
|
const Roblox_Groups_Api_GroupRelationshipsResponse = z.object({
|
|
253
253
|
groupId: z.number().int(),
|
|
254
|
-
relationshipType: z.
|
|
254
|
+
relationshipType: z.enum(["Allies", "Enemies"]),
|
|
255
255
|
totalGroupCount: z.number().int(),
|
|
256
256
|
relatedGroups: z.array(Roblox_Groups_Api_GroupDetailResponse),
|
|
257
257
|
nextRowIndex: z.number().int(),
|
|
@@ -327,22 +327,29 @@ const Roblox_Groups_Api_UpdateGroupSettingsRequest = z.object({
|
|
|
327
327
|
});
|
|
328
328
|
const Roblox_Groups_Api_SocialLinkResponse = z.object({
|
|
329
329
|
id: z.number().int(),
|
|
330
|
-
type: z.
|
|
330
|
+
type: z.enum([
|
|
331
|
+
"Facebook",
|
|
332
|
+
"Twitter",
|
|
333
|
+
"YouTube",
|
|
334
|
+
"Twitch",
|
|
335
|
+
"GooglePlus",
|
|
336
|
+
"Discord",
|
|
337
|
+
"RobloxGroup",
|
|
338
|
+
"Amazon",
|
|
339
|
+
"Guilded",
|
|
340
|
+
]),
|
|
341
|
+
url: z.string(),
|
|
342
|
+
title: z.string(),
|
|
343
|
+
});
|
|
344
|
+
const Roblox_Groups_Api_GetSocialLinkResponse = z.object({
|
|
345
|
+
data: z.array(Roblox_Groups_Api_SocialLinkResponse),
|
|
346
|
+
socialLinksVerificationStatus: z.union([
|
|
331
347
|
z.literal(0),
|
|
332
348
|
z.literal(1),
|
|
333
349
|
z.literal(2),
|
|
334
350
|
z.literal(3),
|
|
335
|
-
z.literal(4),
|
|
336
|
-
z.literal(5),
|
|
337
|
-
z.literal(6),
|
|
338
|
-
z.literal(7),
|
|
339
|
-
z.literal(8),
|
|
340
351
|
]),
|
|
341
|
-
url: z.string(),
|
|
342
|
-
title: z.string(),
|
|
343
352
|
});
|
|
344
|
-
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_SocialLinkResponse_ =
|
|
345
|
-
z.object({ data: z.array(Roblox_Groups_Api_SocialLinkResponse) });
|
|
346
353
|
const Roblox_Groups_Api_SocialLinkRequest = z.object({
|
|
347
354
|
type: z.union([
|
|
348
355
|
z.literal(0),
|
|
@@ -515,7 +522,7 @@ const groups_create_body = z.object({
|
|
|
515
522
|
Files: z.instanceof(File),
|
|
516
523
|
});
|
|
517
524
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_ =
|
|
518
|
-
z.object({ id: z.number().int(), type: z.literal(
|
|
525
|
+
z.object({ id: z.number().int(), type: z.literal("User"), name: z.string() });
|
|
519
526
|
const Roblox_Web_Responses_Groups_GroupResponseV2 = z.object({
|
|
520
527
|
id: z.number().int(),
|
|
521
528
|
name: z.string(),
|
|
@@ -555,12 +562,12 @@ const Roblox_Groups_Api_UpdateGroupNameResponse = z.object({
|
|
|
555
562
|
});
|
|
556
563
|
const Roblox_Groups_Api_UpdateGroupNotificationPreferenceRequest = z.object({
|
|
557
564
|
notificationsEnabled: z.boolean(),
|
|
558
|
-
type: z.
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
565
|
+
type: z.enum([
|
|
566
|
+
"AnnouncementCreatedNotification",
|
|
567
|
+
"ForumPostCreatedNotification",
|
|
568
|
+
"ForumCommentCreatedNotification",
|
|
569
|
+
"ForumCommentReplyCreatedNotification",
|
|
570
|
+
"ForumSubscriberNotification",
|
|
564
571
|
]),
|
|
565
572
|
});
|
|
566
573
|
const Roblox_Groups_Api_Models_Request_UpdateRoleSetRequest = z.object({
|
|
@@ -2894,8 +2901,7 @@ export const getGroupsGroupidSocialLinks = endpoint({
|
|
|
2894
2901
|
parameters: {
|
|
2895
2902
|
groupId: z.number().int(),
|
|
2896
2903
|
},
|
|
2897
|
-
response:
|
|
2898
|
-
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_SocialLinkResponse_,
|
|
2904
|
+
response: Roblox_Groups_Api_GetSocialLinkResponse,
|
|
2899
2905
|
errors: [
|
|
2900
2906
|
{
|
|
2901
2907
|
status: 400,
|
|
@@ -181,7 +181,13 @@ const Roblox_Groups_Api_GroupChannelPermissionsModel = zod_1.z.object({
|
|
|
181
181
|
groupForumsPermissions: Roblox_Groups_Api_GroupForumsPermissionsModel,
|
|
182
182
|
});
|
|
183
183
|
const Roblox_Groups_Api_GroupNotificationPreferenceData = zod_1.z.object({
|
|
184
|
-
type: zod_1.z.
|
|
184
|
+
type: zod_1.z.enum([
|
|
185
|
+
'AnnouncementCreatedNotification',
|
|
186
|
+
'ForumPostCreatedNotification',
|
|
187
|
+
'ForumCommentCreatedNotification',
|
|
188
|
+
'ForumCommentReplyCreatedNotification',
|
|
189
|
+
'ForumSubscriberNotification',
|
|
190
|
+
]),
|
|
185
191
|
enabled: zod_1.z.boolean(),
|
|
186
192
|
name: zod_1.z.string(),
|
|
187
193
|
description: zod_1.z.string(),
|
|
@@ -224,17 +230,17 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Groups_Api_GroupPayoutRes
|
|
|
224
230
|
});
|
|
225
231
|
const Roblox_Groups_Api_PayoutRecipientRequest = zod_1.z.object({
|
|
226
232
|
recipientId: zod_1.z.number().int(),
|
|
227
|
-
recipientType: zod_1.z.
|
|
233
|
+
recipientType: zod_1.z.enum(['User', 'Group']),
|
|
228
234
|
amount: zod_1.z.number().int(),
|
|
229
235
|
});
|
|
230
236
|
const Roblox_Groups_Api_PayoutRequest = zod_1.z.object({
|
|
231
|
-
PayoutType: zod_1.z.
|
|
237
|
+
PayoutType: zod_1.z.enum(['FixedAmount', 'Percentage']),
|
|
232
238
|
Recipients: zod_1.z.array(Roblox_Groups_Api_PayoutRecipientRequest),
|
|
233
239
|
IdempotencyKey: zod_1.z.string(),
|
|
234
240
|
});
|
|
235
241
|
const Roblox_Groups_Api_GroupRelationshipsResponse = zod_1.z.object({
|
|
236
242
|
groupId: zod_1.z.number().int(),
|
|
237
|
-
relationshipType: zod_1.z.
|
|
243
|
+
relationshipType: zod_1.z.enum(['Allies', 'Enemies']),
|
|
238
244
|
totalGroupCount: zod_1.z.number().int(),
|
|
239
245
|
relatedGroups: zod_1.z.array(Roblox_Groups_Api_GroupDetailResponse),
|
|
240
246
|
nextRowIndex: zod_1.z.number().int(),
|
|
@@ -300,22 +306,23 @@ const Roblox_Groups_Api_UpdateGroupSettingsRequest = zod_1.z.object({
|
|
|
300
306
|
});
|
|
301
307
|
const Roblox_Groups_Api_SocialLinkResponse = zod_1.z.object({
|
|
302
308
|
id: zod_1.z.number().int(),
|
|
303
|
-
type: zod_1.z.
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
type: zod_1.z.enum([
|
|
310
|
+
'Facebook',
|
|
311
|
+
'Twitter',
|
|
312
|
+
'YouTube',
|
|
313
|
+
'Twitch',
|
|
314
|
+
'GooglePlus',
|
|
315
|
+
'Discord',
|
|
316
|
+
'RobloxGroup',
|
|
317
|
+
'Amazon',
|
|
318
|
+
'Guilded',
|
|
313
319
|
]),
|
|
314
320
|
url: zod_1.z.string(),
|
|
315
321
|
title: zod_1.z.string(),
|
|
316
322
|
});
|
|
317
|
-
const
|
|
323
|
+
const Roblox_Groups_Api_GetSocialLinkResponse = zod_1.z.object({
|
|
318
324
|
data: zod_1.z.array(Roblox_Groups_Api_SocialLinkResponse),
|
|
325
|
+
socialLinksVerificationStatus: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
319
326
|
});
|
|
320
327
|
const Roblox_Groups_Api_SocialLinkRequest = zod_1.z.object({
|
|
321
328
|
type: zod_1.z.union([
|
|
@@ -489,7 +496,7 @@ const groups_create_body = zod_1.z.object({
|
|
|
489
496
|
});
|
|
490
497
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Web_Responses_Groups_GroupOwnerType_ = zod_1.z.object({
|
|
491
498
|
id: zod_1.z.number().int(),
|
|
492
|
-
type: zod_1.z.literal(
|
|
499
|
+
type: zod_1.z.literal('User'),
|
|
493
500
|
name: zod_1.z.string(),
|
|
494
501
|
});
|
|
495
502
|
const Roblox_Web_Responses_Groups_GroupResponseV2 = zod_1.z.object({
|
|
@@ -530,7 +537,13 @@ const Roblox_Groups_Api_UpdateGroupNameResponse = zod_1.z.object({
|
|
|
530
537
|
});
|
|
531
538
|
const Roblox_Groups_Api_UpdateGroupNotificationPreferenceRequest = zod_1.z.object({
|
|
532
539
|
notificationsEnabled: zod_1.z.boolean(),
|
|
533
|
-
type: zod_1.z.
|
|
540
|
+
type: zod_1.z.enum([
|
|
541
|
+
'AnnouncementCreatedNotification',
|
|
542
|
+
'ForumPostCreatedNotification',
|
|
543
|
+
'ForumCommentCreatedNotification',
|
|
544
|
+
'ForumCommentReplyCreatedNotification',
|
|
545
|
+
'ForumSubscriberNotification',
|
|
546
|
+
]),
|
|
534
547
|
});
|
|
535
548
|
const Roblox_Groups_Api_Models_Request_UpdateRoleSetRequest = zod_1.z.object({
|
|
536
549
|
name: zod_1.z.string(),
|
|
@@ -2847,7 +2860,7 @@ exports.getGroupsGroupidSocialLinks = (0, __1.endpoint)({
|
|
|
2847
2860
|
parameters: {
|
|
2848
2861
|
groupId: zod_1.z.number().int(),
|
|
2849
2862
|
},
|
|
2850
|
-
response:
|
|
2863
|
+
response: Roblox_Groups_Api_GetSocialLinkResponse,
|
|
2851
2864
|
errors: [
|
|
2852
2865
|
{
|
|
2853
2866
|
status: 400,
|