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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
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.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
z.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
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
|
-
|
|
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
|
|
127
|
-
z.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
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
|
|
146
|
-
z.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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:
|
|
160
|
-
path:
|
|
161
|
-
baseUrl:
|
|
162
|
-
requestFormat:
|
|
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:
|
|
156
|
+
style: 'simple',
|
|
166
157
|
},
|
|
167
158
|
fetchAllExperienceRelatedMedia: {
|
|
168
|
-
style:
|
|
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/
|
|
191
|
-
* @summary Gets
|
|
192
|
-
* @param
|
|
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
|
|
260
|
-
method:
|
|
261
|
-
path:
|
|
262
|
-
baseUrl:
|
|
263
|
-
requestFormat:
|
|
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
|
-
|
|
266
|
-
style:
|
|
194
|
+
userId: {
|
|
195
|
+
style: 'simple',
|
|
267
196
|
},
|
|
268
197
|
accessFilter: {
|
|
269
|
-
style:
|
|
198
|
+
style: 'form',
|
|
270
199
|
explode: true,
|
|
271
200
|
},
|
|
272
201
|
limit: {
|
|
273
|
-
style:
|
|
202
|
+
style: 'form',
|
|
274
203
|
explode: true,
|
|
275
204
|
},
|
|
276
205
|
cursor: {
|
|
277
|
-
style:
|
|
206
|
+
style: 'form',
|
|
278
207
|
explode: true,
|
|
279
208
|
},
|
|
280
209
|
sortOrder: {
|
|
281
|
-
style:
|
|
210
|
+
style: 'form',
|
|
282
211
|
explode: true,
|
|
283
212
|
},
|
|
284
213
|
},
|
|
285
214
|
parameters: {
|
|
286
|
-
|
|
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(
|
|
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([
|
|
225
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Desc'),
|
|
297
226
|
},
|
|
298
|
-
response:
|
|
299
|
-
|
|
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/
|
|
313
|
-
* @summary Gets
|
|
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
|
|
321
|
-
method:
|
|
322
|
-
path:
|
|
323
|
-
baseUrl:
|
|
324
|
-
requestFormat:
|
|
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:
|
|
246
|
+
style: 'simple',
|
|
328
247
|
},
|
|
329
248
|
accessFilter: {
|
|
330
|
-
style:
|
|
249
|
+
style: 'form',
|
|
331
250
|
explode: true,
|
|
332
251
|
},
|
|
333
252
|
limit: {
|
|
334
|
-
style:
|
|
253
|
+
style: 'form',
|
|
335
254
|
explode: true,
|
|
336
255
|
},
|
|
337
256
|
cursor: {
|
|
338
|
-
style:
|
|
257
|
+
style: 'form',
|
|
339
258
|
explode: true,
|
|
340
259
|
},
|
|
341
260
|
sortOrder: {
|
|
342
|
-
style:
|
|
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)
|
|
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([
|
|
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/
|
|
365
|
-
* @summary Gets games created by the specified
|
|
366
|
-
* @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.
|
|
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
|
|
373
|
-
method:
|
|
374
|
-
path:
|
|
375
|
-
baseUrl:
|
|
376
|
-
requestFormat:
|
|
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
|
-
|
|
379
|
-
style:
|
|
297
|
+
groupId: {
|
|
298
|
+
style: 'simple',
|
|
380
299
|
},
|
|
381
300
|
accessFilter: {
|
|
382
|
-
style:
|
|
301
|
+
style: 'form',
|
|
383
302
|
explode: true,
|
|
384
303
|
},
|
|
385
304
|
limit: {
|
|
386
|
-
style:
|
|
305
|
+
style: 'form',
|
|
387
306
|
explode: true,
|
|
388
307
|
},
|
|
389
308
|
cursor: {
|
|
390
|
-
style:
|
|
309
|
+
style: 'form',
|
|
391
310
|
explode: true,
|
|
392
311
|
},
|
|
393
312
|
sortOrder: {
|
|
394
|
-
style:
|
|
313
|
+
style: 'form',
|
|
395
314
|
explode: true,
|
|
396
315
|
},
|
|
397
316
|
},
|
|
398
317
|
parameters: {
|
|
399
|
-
|
|
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(
|
|
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([
|
|
328
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
410
329
|
},
|
|
411
|
-
response:
|
|
412
|
-
|
|
413
|
-
|
|
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
|
});
|