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,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,156 +11,145 @@ 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
|
-
z.
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"TextDocument",
|
|
122
|
-
]),
|
|
123
|
-
name: z.string(),
|
|
124
|
-
});
|
|
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_Games_Api_Models_Response_GameContentMetadataResponseModel = z.object({
|
|
18
|
+
badgePosition: z.string(),
|
|
19
|
+
badgeAnalyticsId: z.string(),
|
|
20
|
+
badgeType: z.string(),
|
|
21
|
+
badgeIcon: z.string(),
|
|
22
|
+
badgeComponentType: z.string(),
|
|
23
|
+
});
|
|
24
|
+
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = z.object({
|
|
25
|
+
id: z.number().int(),
|
|
26
|
+
type: z.enum(['User', 'Group']),
|
|
27
|
+
name: z.string(),
|
|
28
|
+
});
|
|
29
|
+
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = z.object({
|
|
30
|
+
id: z.number().int(),
|
|
31
|
+
type: z.enum([
|
|
32
|
+
'Image',
|
|
33
|
+
'TShirt',
|
|
34
|
+
'Audio',
|
|
35
|
+
'Mesh',
|
|
36
|
+
'Lua',
|
|
37
|
+
'HTML',
|
|
38
|
+
'Text',
|
|
39
|
+
'Hat',
|
|
40
|
+
'Place',
|
|
41
|
+
'Model',
|
|
42
|
+
'Shirt',
|
|
43
|
+
'Pants',
|
|
44
|
+
'Decal',
|
|
45
|
+
'Avatar',
|
|
46
|
+
'Head',
|
|
47
|
+
'Face',
|
|
48
|
+
'Gear',
|
|
49
|
+
'Badge',
|
|
50
|
+
'GroupEmblem',
|
|
51
|
+
'Animation',
|
|
52
|
+
'Arms',
|
|
53
|
+
'Legs',
|
|
54
|
+
'Torso',
|
|
55
|
+
'RightArm',
|
|
56
|
+
'LeftArm',
|
|
57
|
+
'LeftLeg',
|
|
58
|
+
'RightLeg',
|
|
59
|
+
'Package',
|
|
60
|
+
'YouTubeVideo',
|
|
61
|
+
'GamePass',
|
|
62
|
+
'App',
|
|
63
|
+
'Code',
|
|
64
|
+
'Plugin',
|
|
65
|
+
'SolidModel',
|
|
66
|
+
'MeshPart',
|
|
67
|
+
'HairAccessory',
|
|
68
|
+
'FaceAccessory',
|
|
69
|
+
'NeckAccessory',
|
|
70
|
+
'ShoulderAccessory',
|
|
71
|
+
'FrontAccessory',
|
|
72
|
+
'BackAccessory',
|
|
73
|
+
'WaistAccessory',
|
|
74
|
+
'ClimbAnimation',
|
|
75
|
+
'DeathAnimation',
|
|
76
|
+
'FallAnimation',
|
|
77
|
+
'IdleAnimation',
|
|
78
|
+
'JumpAnimation',
|
|
79
|
+
'RunAnimation',
|
|
80
|
+
'SwimAnimation',
|
|
81
|
+
'WalkAnimation',
|
|
82
|
+
'PoseAnimation',
|
|
83
|
+
'LocalizationTableManifest',
|
|
84
|
+
'LocalizationTableTranslation',
|
|
85
|
+
'EmoteAnimation',
|
|
86
|
+
'Video',
|
|
87
|
+
'TexturePack',
|
|
88
|
+
'TShirtAccessory',
|
|
89
|
+
'ShirtAccessory',
|
|
90
|
+
'PantsAccessory',
|
|
91
|
+
'JacketAccessory',
|
|
92
|
+
'SweaterAccessory',
|
|
93
|
+
'ShortsAccessory',
|
|
94
|
+
'LeftShoeAccessory',
|
|
95
|
+
'RightShoeAccessory',
|
|
96
|
+
'DressSkirtAccessory',
|
|
97
|
+
'FontFamily',
|
|
98
|
+
'FontFace',
|
|
99
|
+
'MeshHiddenSurfaceRemoval',
|
|
100
|
+
'EyebrowAccessory',
|
|
101
|
+
'EyelashAccessory',
|
|
102
|
+
'MoodAnimation',
|
|
103
|
+
'DynamicHead',
|
|
104
|
+
'CodeSnippet',
|
|
105
|
+
'AdsVideo',
|
|
106
|
+
'OtaUpdate',
|
|
107
|
+
'Screenshot',
|
|
108
|
+
'RuntimePropertySet',
|
|
109
|
+
'StorePreviewVideo',
|
|
110
|
+
'GamePreviewVideo',
|
|
111
|
+
'CreatorExperienceConfig',
|
|
112
|
+
'FaceMakeup',
|
|
113
|
+
'LipMakeup',
|
|
114
|
+
'EyeMakeup',
|
|
115
|
+
'VoxelFragment',
|
|
116
|
+
'AvatarBackground',
|
|
117
|
+
'TextDocument',
|
|
118
|
+
]),
|
|
119
|
+
name: z.string(),
|
|
120
|
+
});
|
|
125
121
|
const Roblox_Web_Responses_Games_GameFavoriteResponseModel = z.object({
|
|
126
122
|
price: z.number().int(),
|
|
127
|
-
contentMetadata:
|
|
128
|
-
Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
|
|
123
|
+
contentMetadata: Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
|
|
129
124
|
id: z.number().int(),
|
|
130
125
|
name: z.string(),
|
|
131
126
|
description: z.string(),
|
|
132
|
-
creator:
|
|
133
|
-
|
|
134
|
-
rootPlace:
|
|
135
|
-
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
127
|
+
creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
|
|
128
|
+
rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
136
129
|
created: z.string().datetime({ offset: true }),
|
|
137
130
|
updated: z.string().datetime({ offset: true }),
|
|
138
131
|
placeVisits: z.number().int(),
|
|
139
132
|
});
|
|
140
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ =
|
|
141
|
-
z.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
});
|
|
133
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_ = z.object({
|
|
134
|
+
previousPageCursor: z.string(),
|
|
135
|
+
nextPageCursor: z.string(),
|
|
136
|
+
data: z.array(Roblox_Web_Responses_Games_GameFavoriteResponseModel),
|
|
137
|
+
});
|
|
146
138
|
const Roblox_Web_Responses_Games_GameResponseV2 = z.object({
|
|
147
139
|
id: z.number().int(),
|
|
148
140
|
name: z.string(),
|
|
149
141
|
description: z.string(),
|
|
150
|
-
creator:
|
|
151
|
-
|
|
152
|
-
rootPlace:
|
|
153
|
-
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
142
|
+
creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
|
|
143
|
+
rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
154
144
|
created: z.string().datetime({ offset: true }),
|
|
155
145
|
updated: z.string().datetime({ offset: true }),
|
|
156
146
|
placeVisits: z.number().int(),
|
|
157
147
|
});
|
|
158
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ =
|
|
159
|
-
z.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
});
|
|
148
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ = z.object({
|
|
149
|
+
previousPageCursor: z.string(),
|
|
150
|
+
nextPageCursor: z.string(),
|
|
151
|
+
data: z.array(Roblox_Web_Responses_Games_GameResponseV2),
|
|
152
|
+
});
|
|
164
153
|
|
|
165
154
|
/**
|
|
166
155
|
* @api GET https://games.roblox.com/v2/games/:universeId/media
|
|
@@ -169,16 +158,16 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameRe
|
|
|
169
158
|
* @param fetchAllExperienceRelatedMedia to tell if the API query is to fetch all related media for this experience
|
|
170
159
|
*/
|
|
171
160
|
export const getGamesUniverseidMedia = endpoint({
|
|
172
|
-
method:
|
|
173
|
-
path:
|
|
174
|
-
baseUrl:
|
|
175
|
-
requestFormat:
|
|
161
|
+
method: 'GET',
|
|
162
|
+
path: '/v2/games/:universeId/media',
|
|
163
|
+
baseUrl: 'https://games.roblox.com',
|
|
164
|
+
requestFormat: 'json',
|
|
176
165
|
serializationMethod: {
|
|
177
166
|
universeId: {
|
|
178
|
-
style:
|
|
167
|
+
style: 'simple',
|
|
179
168
|
},
|
|
180
169
|
fetchAllExperienceRelatedMedia: {
|
|
181
|
-
style:
|
|
170
|
+
style: 'form',
|
|
182
171
|
explode: true,
|
|
183
172
|
},
|
|
184
173
|
},
|
|
@@ -186,8 +175,7 @@ export const getGamesUniverseidMedia = endpoint({
|
|
|
186
175
|
universeId: z.number().int(),
|
|
187
176
|
fetchAllExperienceRelatedMedia: z.boolean().optional(),
|
|
188
177
|
},
|
|
189
|
-
response:
|
|
190
|
-
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
|
|
178
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
|
|
191
179
|
errors: [
|
|
192
180
|
{
|
|
193
181
|
status: 400,
|
|
@@ -209,28 +197,28 @@ export const getGamesUniverseidMedia = endpoint({
|
|
|
209
197
|
* @param sortOrder The order the results are sorted in.
|
|
210
198
|
*/
|
|
211
199
|
export const getUsersUseridFavoriteGames = endpoint({
|
|
212
|
-
method:
|
|
213
|
-
path:
|
|
214
|
-
baseUrl:
|
|
215
|
-
requestFormat:
|
|
200
|
+
method: 'GET',
|
|
201
|
+
path: '/v2/users/:userId/favorite/games',
|
|
202
|
+
baseUrl: 'https://games.roblox.com',
|
|
203
|
+
requestFormat: 'json',
|
|
216
204
|
serializationMethod: {
|
|
217
205
|
userId: {
|
|
218
|
-
style:
|
|
206
|
+
style: 'simple',
|
|
219
207
|
},
|
|
220
208
|
accessFilter: {
|
|
221
|
-
style:
|
|
209
|
+
style: 'form',
|
|
222
210
|
explode: true,
|
|
223
211
|
},
|
|
224
212
|
limit: {
|
|
225
|
-
style:
|
|
213
|
+
style: 'form',
|
|
226
214
|
explode: true,
|
|
227
215
|
},
|
|
228
216
|
cursor: {
|
|
229
|
-
style:
|
|
217
|
+
style: 'form',
|
|
230
218
|
explode: true,
|
|
231
219
|
},
|
|
232
220
|
sortOrder: {
|
|
233
|
-
style:
|
|
221
|
+
style: 'form',
|
|
234
222
|
explode: true,
|
|
235
223
|
},
|
|
236
224
|
},
|
|
@@ -245,10 +233,9 @@ export const getUsersUseridFavoriteGames = endpoint({
|
|
|
245
233
|
.optional()
|
|
246
234
|
.default(10),
|
|
247
235
|
cursor: z.string().optional(),
|
|
248
|
-
sortOrder: z.enum([
|
|
236
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Desc'),
|
|
249
237
|
},
|
|
250
|
-
response:
|
|
251
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
|
|
238
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameFavoriteResponseModel_,
|
|
252
239
|
errors: [],
|
|
253
240
|
});
|
|
254
241
|
/**
|
|
@@ -261,28 +248,28 @@ export const getUsersUseridFavoriteGames = endpoint({
|
|
|
261
248
|
* @param sortOrder The order the results are sorted in.
|
|
262
249
|
*/
|
|
263
250
|
export const getUsersUseridGames = endpoint({
|
|
264
|
-
method:
|
|
265
|
-
path:
|
|
266
|
-
baseUrl:
|
|
267
|
-
requestFormat:
|
|
251
|
+
method: 'GET',
|
|
252
|
+
path: '/v2/users/:userId/games',
|
|
253
|
+
baseUrl: 'https://games.roblox.com',
|
|
254
|
+
requestFormat: 'json',
|
|
268
255
|
serializationMethod: {
|
|
269
256
|
userId: {
|
|
270
|
-
style:
|
|
257
|
+
style: 'simple',
|
|
271
258
|
},
|
|
272
259
|
accessFilter: {
|
|
273
|
-
style:
|
|
260
|
+
style: 'form',
|
|
274
261
|
explode: true,
|
|
275
262
|
},
|
|
276
263
|
limit: {
|
|
277
|
-
style:
|
|
264
|
+
style: 'form',
|
|
278
265
|
explode: true,
|
|
279
266
|
},
|
|
280
267
|
cursor: {
|
|
281
|
-
style:
|
|
268
|
+
style: 'form',
|
|
282
269
|
explode: true,
|
|
283
270
|
},
|
|
284
271
|
sortOrder: {
|
|
285
|
-
style:
|
|
272
|
+
style: 'form',
|
|
286
273
|
explode: true,
|
|
287
274
|
},
|
|
288
275
|
},
|
|
@@ -297,10 +284,9 @@ export const getUsersUseridGames = endpoint({
|
|
|
297
284
|
.optional()
|
|
298
285
|
.default(10),
|
|
299
286
|
cursor: z.string().optional(),
|
|
300
|
-
sortOrder: z.enum([
|
|
287
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
301
288
|
},
|
|
302
|
-
response:
|
|
303
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
289
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
304
290
|
errors: [],
|
|
305
291
|
});
|
|
306
292
|
|
|
@@ -327,8 +313,14 @@ export const getGroupsGroupidGamesv2 = endpoint({
|
|
|
327
313
|
},
|
|
328
314
|
parameters: {
|
|
329
315
|
groupId: z.number().int(),
|
|
330
|
-
accessFilter: z
|
|
331
|
-
|
|
316
|
+
accessFilter: z
|
|
317
|
+
.union([z.literal(1), z.literal(2), z.literal(4)])
|
|
318
|
+
.optional()
|
|
319
|
+
.default(1),
|
|
320
|
+
limit: z
|
|
321
|
+
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
322
|
+
.optional()
|
|
323
|
+
.default(10),
|
|
332
324
|
cursor: z.string().optional(),
|
|
333
325
|
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
334
326
|
},
|