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,147 +1,135 @@
|
|
|
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_Agents_AgentType_ =
|
|
5
|
-
z.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
});
|
|
4
|
+
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ = z.object({
|
|
5
|
+
id: z.number().int(),
|
|
6
|
+
type: z.enum(['User', 'Group']),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
});
|
|
10
9
|
const Roblox_Inventory_Api_V2_AssetOwnerResponse = z.object({
|
|
11
10
|
id: z.number().int(),
|
|
12
11
|
collectibleItemInstanceId: z.string(),
|
|
13
12
|
serialNumber: z.number().int(),
|
|
14
|
-
owner:
|
|
15
|
-
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
13
|
+
owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
16
14
|
created: z.string().datetime({ offset: true }),
|
|
17
15
|
updated: z.string().datetime({ offset: true }),
|
|
18
16
|
});
|
|
19
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_ =
|
|
20
|
-
z.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
17
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_ = z.object({
|
|
18
|
+
previousPageCursor: z.string(),
|
|
19
|
+
nextPageCursor: z.string(),
|
|
20
|
+
data: z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
|
|
21
|
+
});
|
|
25
22
|
const Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse = z.object({
|
|
26
23
|
collectibleItemInstanceId: z.string(),
|
|
27
24
|
serialNumber: z.number().int(),
|
|
28
|
-
owner:
|
|
29
|
-
|
|
25
|
+
owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
26
|
+
});
|
|
27
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ = z.object({
|
|
28
|
+
previousPageCursor: z.string(),
|
|
29
|
+
nextPageCursor: z.string(),
|
|
30
|
+
data: z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
|
|
30
31
|
});
|
|
31
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ =
|
|
32
|
-
z.object({
|
|
33
|
-
previousPageCursor: z.string(),
|
|
34
|
-
nextPageCursor: z.string(),
|
|
35
|
-
data: z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
|
|
36
|
-
});
|
|
37
32
|
const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = z.object({
|
|
38
33
|
assetId: z.number().int(),
|
|
39
34
|
name: z.string(),
|
|
40
35
|
assetType: z.enum([
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
36
|
+
'Image',
|
|
37
|
+
'TShirt',
|
|
38
|
+
'Audio',
|
|
39
|
+
'Mesh',
|
|
40
|
+
'Lua',
|
|
41
|
+
'HTML',
|
|
42
|
+
'Text',
|
|
43
|
+
'Hat',
|
|
44
|
+
'Place',
|
|
45
|
+
'Model',
|
|
46
|
+
'Shirt',
|
|
47
|
+
'Pants',
|
|
48
|
+
'Decal',
|
|
49
|
+
'Avatar',
|
|
50
|
+
'Head',
|
|
51
|
+
'Face',
|
|
52
|
+
'Gear',
|
|
53
|
+
'Badge',
|
|
54
|
+
'GroupEmblem',
|
|
55
|
+
'Animation',
|
|
56
|
+
'Arms',
|
|
57
|
+
'Legs',
|
|
58
|
+
'Torso',
|
|
59
|
+
'RightArm',
|
|
60
|
+
'LeftArm',
|
|
61
|
+
'LeftLeg',
|
|
62
|
+
'RightLeg',
|
|
63
|
+
'Package',
|
|
64
|
+
'YouTubeVideo',
|
|
65
|
+
'GamePass',
|
|
66
|
+
'App',
|
|
67
|
+
'Code',
|
|
68
|
+
'Plugin',
|
|
69
|
+
'SolidModel',
|
|
70
|
+
'MeshPart',
|
|
71
|
+
'HairAccessory',
|
|
72
|
+
'FaceAccessory',
|
|
73
|
+
'NeckAccessory',
|
|
74
|
+
'ShoulderAccessory',
|
|
75
|
+
'FrontAccessory',
|
|
76
|
+
'BackAccessory',
|
|
77
|
+
'WaistAccessory',
|
|
78
|
+
'ClimbAnimation',
|
|
79
|
+
'DeathAnimation',
|
|
80
|
+
'FallAnimation',
|
|
81
|
+
'IdleAnimation',
|
|
82
|
+
'JumpAnimation',
|
|
83
|
+
'RunAnimation',
|
|
84
|
+
'SwimAnimation',
|
|
85
|
+
'WalkAnimation',
|
|
86
|
+
'PoseAnimation',
|
|
87
|
+
'LocalizationTableManifest',
|
|
88
|
+
'LocalizationTableTranslation',
|
|
89
|
+
'EmoteAnimation',
|
|
90
|
+
'Video',
|
|
91
|
+
'TexturePack',
|
|
92
|
+
'TShirtAccessory',
|
|
93
|
+
'ShirtAccessory',
|
|
94
|
+
'PantsAccessory',
|
|
95
|
+
'JacketAccessory',
|
|
96
|
+
'SweaterAccessory',
|
|
97
|
+
'ShortsAccessory',
|
|
98
|
+
'LeftShoeAccessory',
|
|
99
|
+
'RightShoeAccessory',
|
|
100
|
+
'DressSkirtAccessory',
|
|
101
|
+
'FontFamily',
|
|
102
|
+
'FontFace',
|
|
103
|
+
'MeshHiddenSurfaceRemoval',
|
|
104
|
+
'EyebrowAccessory',
|
|
105
|
+
'EyelashAccessory',
|
|
106
|
+
'MoodAnimation',
|
|
107
|
+
'DynamicHead',
|
|
108
|
+
'CodeSnippet',
|
|
109
|
+
'AdsVideo',
|
|
110
|
+
'OtaUpdate',
|
|
111
|
+
'Screenshot',
|
|
112
|
+
'RuntimePropertySet',
|
|
113
|
+
'StorePreviewVideo',
|
|
114
|
+
'GamePreviewVideo',
|
|
115
|
+
'CreatorExperienceConfig',
|
|
116
|
+
'FaceMakeup',
|
|
117
|
+
'LipMakeup',
|
|
118
|
+
'EyeMakeup',
|
|
119
|
+
'VoxelFragment',
|
|
120
|
+
'AvatarBackground',
|
|
126
121
|
]),
|
|
127
122
|
created: z.string().datetime({ offset: true }),
|
|
128
123
|
});
|
|
129
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ =
|
|
130
|
-
z.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
});
|
|
124
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ = z.object({
|
|
125
|
+
previousPageCursor: z.string(),
|
|
126
|
+
nextPageCursor: z.string(),
|
|
127
|
+
data: z.array(Roblox_Inventory_Api_V2_UserAssetItemModelV2),
|
|
128
|
+
});
|
|
135
129
|
const Roblox_Inventory_Api_Models_UserModel = z.object({
|
|
136
130
|
userId: z.number().int(),
|
|
137
131
|
username: z.string(),
|
|
138
|
-
buildersClubMembershipType: z.enum([
|
|
139
|
-
"None",
|
|
140
|
-
"BC",
|
|
141
|
-
"TBC",
|
|
142
|
-
"OBC",
|
|
143
|
-
"RobloxPremium",
|
|
144
|
-
]),
|
|
132
|
+
buildersClubMembershipType: z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
|
|
145
133
|
});
|
|
146
134
|
const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
|
|
147
135
|
expireAt: z.string().datetime({ offset: true }),
|
|
@@ -155,12 +143,11 @@ const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
|
|
|
155
143
|
created: z.string().datetime({ offset: true }),
|
|
156
144
|
updated: z.string().datetime({ offset: true }),
|
|
157
145
|
});
|
|
158
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ =
|
|
159
|
-
z.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
});
|
|
146
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ = z.object({
|
|
147
|
+
previousPageCursor: z.string(),
|
|
148
|
+
nextPageCursor: z.string(),
|
|
149
|
+
data: z.array(Roblox_Inventory_Api_Models_InventoryItemModel),
|
|
150
|
+
});
|
|
164
151
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
165
152
|
|
|
166
153
|
/**
|
|
@@ -172,24 +159,24 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
|
172
159
|
* @param sortOrder Sorted by userAssetId
|
|
173
160
|
*/
|
|
174
161
|
export const getAssetsAssetidOwners = endpoint({
|
|
175
|
-
method:
|
|
176
|
-
path:
|
|
177
|
-
baseUrl:
|
|
178
|
-
requestFormat:
|
|
162
|
+
method: 'GET',
|
|
163
|
+
path: '/v2/assets/:assetId/owners',
|
|
164
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
165
|
+
requestFormat: 'json',
|
|
179
166
|
serializationMethod: {
|
|
180
167
|
assetId: {
|
|
181
|
-
style:
|
|
168
|
+
style: 'simple',
|
|
182
169
|
},
|
|
183
170
|
limit: {
|
|
184
|
-
style:
|
|
171
|
+
style: 'form',
|
|
185
172
|
explode: true,
|
|
186
173
|
},
|
|
187
174
|
cursor: {
|
|
188
|
-
style:
|
|
175
|
+
style: 'form',
|
|
189
176
|
explode: true,
|
|
190
177
|
},
|
|
191
178
|
sortOrder: {
|
|
192
|
-
style:
|
|
179
|
+
style: 'form',
|
|
193
180
|
explode: true,
|
|
194
181
|
},
|
|
195
182
|
},
|
|
@@ -200,10 +187,9 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
200
187
|
.optional()
|
|
201
188
|
.default(10),
|
|
202
189
|
cursor: z.string().optional(),
|
|
203
|
-
sortOrder: z.enum([
|
|
190
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
204
191
|
},
|
|
205
|
-
response:
|
|
206
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
192
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
207
193
|
errors: [
|
|
208
194
|
{
|
|
209
195
|
status: 400,
|
|
@@ -224,24 +210,24 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
224
210
|
* @param sortOrder The order the results are sorted in.
|
|
225
211
|
*/
|
|
226
212
|
export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
227
|
-
method:
|
|
228
|
-
path:
|
|
229
|
-
baseUrl:
|
|
230
|
-
requestFormat:
|
|
213
|
+
method: 'GET',
|
|
214
|
+
path: '/v2/collectible-items/:collectibleItemId/owners',
|
|
215
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
216
|
+
requestFormat: 'json',
|
|
231
217
|
serializationMethod: {
|
|
232
218
|
collectibleItemId: {
|
|
233
|
-
style:
|
|
219
|
+
style: 'simple',
|
|
234
220
|
},
|
|
235
221
|
limit: {
|
|
236
|
-
style:
|
|
222
|
+
style: 'form',
|
|
237
223
|
explode: true,
|
|
238
224
|
},
|
|
239
225
|
cursor: {
|
|
240
|
-
style:
|
|
226
|
+
style: 'form',
|
|
241
227
|
explode: true,
|
|
242
228
|
},
|
|
243
229
|
sortOrder: {
|
|
244
|
-
style:
|
|
230
|
+
style: 'form',
|
|
245
231
|
explode: true,
|
|
246
232
|
},
|
|
247
233
|
},
|
|
@@ -254,8 +240,7 @@ export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
|
254
240
|
.optional()
|
|
255
241
|
.default(1),
|
|
256
242
|
},
|
|
257
|
-
response:
|
|
258
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
243
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
259
244
|
errors: [
|
|
260
245
|
{
|
|
261
246
|
status: 400,
|
|
@@ -279,13 +264,13 @@ and will return NotEligibleForDelete.
|
|
|
279
264
|
* @param assetId ID of the asset to delete.
|
|
280
265
|
*/
|
|
281
266
|
export const deleteInventoryAssetAssetid = endpoint({
|
|
282
|
-
method:
|
|
283
|
-
path:
|
|
284
|
-
baseUrl:
|
|
285
|
-
requestFormat:
|
|
267
|
+
method: 'DELETE',
|
|
268
|
+
path: '/v2/inventory/asset/:assetId',
|
|
269
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
270
|
+
requestFormat: 'json',
|
|
286
271
|
serializationMethod: {
|
|
287
272
|
assetId: {
|
|
288
|
-
style:
|
|
273
|
+
style: 'simple',
|
|
289
274
|
},
|
|
290
275
|
},
|
|
291
276
|
parameters: {
|
|
@@ -327,35 +312,35 @@ export const deleteInventoryAssetAssetid = endpoint({
|
|
|
327
312
|
* @description GamePass and Badges not allowed.
|
|
328
313
|
*/
|
|
329
314
|
export const getUsersUseridInventory = endpoint({
|
|
330
|
-
method:
|
|
331
|
-
path:
|
|
332
|
-
baseUrl:
|
|
333
|
-
requestFormat:
|
|
315
|
+
method: 'GET',
|
|
316
|
+
path: '/v2/users/:userId/inventory',
|
|
317
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
318
|
+
requestFormat: 'json',
|
|
334
319
|
serializationMethod: {
|
|
335
320
|
userId: {
|
|
336
|
-
style:
|
|
321
|
+
style: 'simple',
|
|
337
322
|
},
|
|
338
323
|
assetTypes: {
|
|
339
|
-
style:
|
|
324
|
+
style: 'form',
|
|
340
325
|
},
|
|
341
326
|
filterDisapprovedAssets: {
|
|
342
|
-
style:
|
|
327
|
+
style: 'form',
|
|
343
328
|
explode: true,
|
|
344
329
|
},
|
|
345
330
|
showApprovedOnly: {
|
|
346
|
-
style:
|
|
331
|
+
style: 'form',
|
|
347
332
|
explode: true,
|
|
348
333
|
},
|
|
349
334
|
limit: {
|
|
350
|
-
style:
|
|
335
|
+
style: 'form',
|
|
351
336
|
explode: true,
|
|
352
337
|
},
|
|
353
338
|
cursor: {
|
|
354
|
-
style:
|
|
339
|
+
style: 'form',
|
|
355
340
|
explode: true,
|
|
356
341
|
},
|
|
357
342
|
sortOrder: {
|
|
358
|
-
style:
|
|
343
|
+
style: 'form',
|
|
359
344
|
explode: true,
|
|
360
345
|
},
|
|
361
346
|
},
|
|
@@ -369,10 +354,9 @@ export const getUsersUseridInventory = endpoint({
|
|
|
369
354
|
.optional()
|
|
370
355
|
.default(10),
|
|
371
356
|
cursor: z.string().optional(),
|
|
372
|
-
sortOrder: z.enum([
|
|
357
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
373
358
|
},
|
|
374
|
-
response:
|
|
375
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
359
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
376
360
|
errors: [
|
|
377
361
|
{
|
|
378
362
|
status: 400,
|
|
@@ -396,27 +380,27 @@ export const getUsersUseridInventory = endpoint({
|
|
|
396
380
|
* @param sortOrder The order the results are sorted in.
|
|
397
381
|
*/
|
|
398
382
|
export const getUsersUseridInventoryAssettypeid = endpoint({
|
|
399
|
-
method:
|
|
400
|
-
path:
|
|
401
|
-
baseUrl:
|
|
402
|
-
requestFormat:
|
|
383
|
+
method: 'GET',
|
|
384
|
+
path: '/v2/users/:userId/inventory/:assetTypeId',
|
|
385
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
386
|
+
requestFormat: 'json',
|
|
403
387
|
serializationMethod: {
|
|
404
388
|
userId: {
|
|
405
|
-
style:
|
|
389
|
+
style: 'simple',
|
|
406
390
|
},
|
|
407
391
|
assetTypeId: {
|
|
408
|
-
style:
|
|
392
|
+
style: 'simple',
|
|
409
393
|
},
|
|
410
394
|
limit: {
|
|
411
|
-
style:
|
|
395
|
+
style: 'form',
|
|
412
396
|
explode: true,
|
|
413
397
|
},
|
|
414
398
|
cursor: {
|
|
415
|
-
style:
|
|
399
|
+
style: 'form',
|
|
416
400
|
explode: true,
|
|
417
401
|
},
|
|
418
402
|
sortOrder: {
|
|
419
|
-
style:
|
|
403
|
+
style: 'form',
|
|
420
404
|
explode: true,
|
|
421
405
|
},
|
|
422
406
|
},
|
|
@@ -428,10 +412,9 @@ export const getUsersUseridInventoryAssettypeid = endpoint({
|
|
|
428
412
|
.optional()
|
|
429
413
|
.default(10),
|
|
430
414
|
cursor: z.string().optional(),
|
|
431
|
-
sortOrder: z.enum([
|
|
415
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
432
416
|
},
|
|
433
|
-
response:
|
|
434
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
417
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
435
418
|
errors: [
|
|
436
419
|
{
|
|
437
420
|
status: 400,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_ItemConfiguration_Api_AssetCreationsResponse = z.object({
|
|
5
5
|
assetId: z.number().int(),
|
|
6
6
|
name: z.string(),
|
|
7
7
|
});
|
|
8
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_ =
|
|
9
|
-
z.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
8
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_ = z.object({
|
|
9
|
+
previousPageCursor: z.string(),
|
|
10
|
+
nextPageCursor: z.string(),
|
|
11
|
+
data: z.array(Roblox_ItemConfiguration_Api_AssetCreationsResponse),
|
|
12
|
+
});
|
|
14
13
|
const Roblox_ItemConfiguration_Api_AssetCreationsDetailsRequest = z.object({
|
|
15
14
|
AssetIds: z.array(z.number()),
|
|
16
15
|
});
|
|
@@ -20,25 +19,21 @@ const Roblox_ItemConfiguration_Api_PriceConfigurationModel = z.object({
|
|
|
20
19
|
premiumPriceInRobux: z.number().int(),
|
|
21
20
|
priceOffset: z.number().int(),
|
|
22
21
|
});
|
|
23
|
-
const Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel = z.object(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
z.enum(["Undefined", "Catalog", "AllUniverses", "MyUniverses"])
|
|
27
|
-
),
|
|
28
|
-
}
|
|
29
|
-
);
|
|
22
|
+
const Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel = z.object({
|
|
23
|
+
saleAvailabilityLocations: z.array(z.enum(['Undefined', 'Catalog', 'AllUniverses', 'MyUniverses'])),
|
|
24
|
+
});
|
|
30
25
|
const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
|
|
31
26
|
assetId: z.number().int(),
|
|
32
27
|
name: z.string(),
|
|
33
28
|
status: z.enum([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
'Unknown',
|
|
30
|
+
'ReviewPending',
|
|
31
|
+
'Moderated',
|
|
32
|
+
'ReviewApproved',
|
|
33
|
+
'OnSale',
|
|
34
|
+
'OffSale',
|
|
35
|
+
'DelayedRelease',
|
|
36
|
+
'Free',
|
|
42
37
|
]),
|
|
43
38
|
description: z.string(),
|
|
44
39
|
creatorType: z.string(),
|
|
@@ -47,8 +42,7 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
|
|
|
47
42
|
priceConfiguration: Roblox_ItemConfiguration_Api_PriceConfigurationModel,
|
|
48
43
|
isArchived: z.boolean(),
|
|
49
44
|
assetType: z.string(),
|
|
50
|
-
releaseConfiguration:
|
|
51
|
-
Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel,
|
|
45
|
+
releaseConfiguration: Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel,
|
|
52
46
|
created: z.string().datetime({ offset: true }),
|
|
53
47
|
updated: z.string().datetime({ offset: true }),
|
|
54
48
|
isDelisted: z.boolean(),
|
|
@@ -61,10 +55,10 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
|
|
|
61
55
|
* @param body
|
|
62
56
|
*/
|
|
63
57
|
export const postCreationsGetAssetDetails = endpoint({
|
|
64
|
-
method:
|
|
65
|
-
path:
|
|
66
|
-
baseUrl:
|
|
67
|
-
requestFormat:
|
|
58
|
+
method: 'POST',
|
|
59
|
+
path: '/v1/creations/get-asset-details',
|
|
60
|
+
baseUrl: 'https://itemconfiguration.roblox.com',
|
|
61
|
+
requestFormat: 'json',
|
|
68
62
|
serializationMethod: {
|
|
69
63
|
body: {},
|
|
70
64
|
},
|
|
@@ -109,29 +103,29 @@ export const postCreationsGetAssetDetails = endpoint({
|
|
|
109
103
|
* @param cursor The paging cursor for the previous or next page.
|
|
110
104
|
*/
|
|
111
105
|
export const getCreationsGetAssets = endpoint({
|
|
112
|
-
method:
|
|
113
|
-
path:
|
|
114
|
-
baseUrl:
|
|
115
|
-
requestFormat:
|
|
106
|
+
method: 'GET',
|
|
107
|
+
path: '/v1/creations/get-assets',
|
|
108
|
+
baseUrl: 'https://itemconfiguration.roblox.com',
|
|
109
|
+
requestFormat: 'json',
|
|
116
110
|
serializationMethod: {
|
|
117
111
|
assetType: {
|
|
118
|
-
style:
|
|
112
|
+
style: 'form',
|
|
119
113
|
explode: true,
|
|
120
114
|
},
|
|
121
115
|
isArchived: {
|
|
122
|
-
style:
|
|
116
|
+
style: 'form',
|
|
123
117
|
explode: true,
|
|
124
118
|
},
|
|
125
119
|
groupId: {
|
|
126
|
-
style:
|
|
120
|
+
style: 'form',
|
|
127
121
|
explode: true,
|
|
128
122
|
},
|
|
129
123
|
limit: {
|
|
130
|
-
style:
|
|
124
|
+
style: 'form',
|
|
131
125
|
explode: true,
|
|
132
126
|
},
|
|
133
127
|
cursor: {
|
|
134
|
-
style:
|
|
128
|
+
style: 'form',
|
|
135
129
|
explode: true,
|
|
136
130
|
},
|
|
137
131
|
},
|
|
@@ -145,8 +139,7 @@ export const getCreationsGetAssets = endpoint({
|
|
|
145
139
|
.default(10),
|
|
146
140
|
cursor: z.string().optional(),
|
|
147
141
|
},
|
|
148
|
-
response:
|
|
149
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_,
|
|
142
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_,
|
|
150
143
|
errors: [
|
|
151
144
|
{
|
|
152
145
|
status: 400,
|