rozod 6.7.1 → 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/LICENSE +1 -1
- package/README.md +75 -451
- 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 +267 -230
- package/lib/endpoints/assetdeliveryv1.js +38 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +201 -176
- package/lib/endpoints/assetdeliveryv2.js +26 -0
- package/lib/endpoints/authv1.d.ts +480 -517
- package/lib/endpoints/authv1.js +3 -1
- package/lib/endpoints/authv2.d.ts +210 -222
- package/lib/endpoints/authv2.js +1 -1
- 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 +96 -99
- package/lib/endpoints/badgesv1.js +4 -0
- package/lib/endpoints/catalogv1.d.ts +209 -234
- package/lib/endpoints/catalogv1.js +2 -1
- package/lib/endpoints/catalogv2.d.ts +106 -136
- package/lib/endpoints/catalogv2.js +21 -17
- package/lib/endpoints/chatv2.d.ts +778 -778
- 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 +233 -293
- package/lib/endpoints/developv1.js +3 -0
- package/lib/endpoints/developv2.d.ts +87 -138
- package/lib/endpoints/developv2.js +3 -1
- 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 +416 -545
- package/lib/endpoints/friendsv1.js +213 -313
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamejoinv1.d.ts +458 -458
- package/lib/endpoints/gamesv1.d.ts +183 -143
- package/lib/endpoints/gamesv1.js +2 -0
- package/lib/endpoints/gamesv2.d.ts +161 -158
- package/lib/endpoints/gamesv2.js +9 -0
- package/lib/endpoints/groupsv1.d.ts +967 -976
- package/lib/endpoints/groupsv1.js +48 -4
- package/lib/endpoints/groupsv2.d.ts +259 -277
- package/lib/endpoints/groupsv2.js +1 -0
- package/lib/endpoints/inventoryv1.d.ts +93 -122
- package/lib/endpoints/inventoryv1.js +3 -1
- package/lib/endpoints/inventoryv2.d.ts +163 -178
- package/lib/endpoints/inventoryv2.js +2 -0
- 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/metricsv1.d.ts +88 -88
- 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 +317 -361
- package/lib/endpoints/thumbnailsv1.js +25 -0
- 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 +152 -4
- package/lib/index.js +273 -4
- package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
- package/lib/opencloud/v1/assets.d.ts +9 -9
- package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
- package/lib/opencloud/v1/datastores.d.ts +8 -8
- package/lib/opencloud/v1/developer-products.d.ts +4 -4
- package/lib/opencloud/v1/game-passes.d.ts +4 -4
- package/lib/opencloud/v1/messaging.d.ts +1 -1
- package/lib/opencloud/v1/open-eval.d.ts +2 -2
- package/lib/opencloud/v1/secrets-store.d.ts +5 -5
- package/lib/opencloud/v1/toolbox.d.ts +2 -2
- package/lib/opencloud/v1/universes.d.ts +1 -1
- package/lib/opencloud/v2/cloud.d.ts +172 -84
- package/lib/opencloud/v2/cloud.js +25 -9
- package/package.json +2 -2
|
@@ -1,145 +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
|
-
|
|
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',
|
|
124
121
|
]),
|
|
125
122
|
created: z.string().datetime({ offset: true }),
|
|
126
123
|
});
|
|
127
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ =
|
|
128
|
-
z.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
});
|
|
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
|
+
});
|
|
133
129
|
const Roblox_Inventory_Api_Models_UserModel = z.object({
|
|
134
130
|
userId: z.number().int(),
|
|
135
131
|
username: z.string(),
|
|
136
|
-
buildersClubMembershipType: z.enum([
|
|
137
|
-
"None",
|
|
138
|
-
"BC",
|
|
139
|
-
"TBC",
|
|
140
|
-
"OBC",
|
|
141
|
-
"RobloxPremium",
|
|
142
|
-
]),
|
|
132
|
+
buildersClubMembershipType: z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
|
|
143
133
|
});
|
|
144
134
|
const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
|
|
145
135
|
expireAt: z.string().datetime({ offset: true }),
|
|
@@ -153,12 +143,11 @@ const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
|
|
|
153
143
|
created: z.string().datetime({ offset: true }),
|
|
154
144
|
updated: z.string().datetime({ offset: true }),
|
|
155
145
|
});
|
|
156
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ =
|
|
157
|
-
z.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
});
|
|
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
|
+
});
|
|
162
151
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
163
152
|
|
|
164
153
|
/**
|
|
@@ -170,24 +159,24 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
|
170
159
|
* @param sortOrder Sorted by userAssetId
|
|
171
160
|
*/
|
|
172
161
|
export const getAssetsAssetidOwners = endpoint({
|
|
173
|
-
method:
|
|
174
|
-
path:
|
|
175
|
-
baseUrl:
|
|
176
|
-
requestFormat:
|
|
162
|
+
method: 'GET',
|
|
163
|
+
path: '/v2/assets/:assetId/owners',
|
|
164
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
165
|
+
requestFormat: 'json',
|
|
177
166
|
serializationMethod: {
|
|
178
167
|
assetId: {
|
|
179
|
-
style:
|
|
168
|
+
style: 'simple',
|
|
180
169
|
},
|
|
181
170
|
limit: {
|
|
182
|
-
style:
|
|
171
|
+
style: 'form',
|
|
183
172
|
explode: true,
|
|
184
173
|
},
|
|
185
174
|
cursor: {
|
|
186
|
-
style:
|
|
175
|
+
style: 'form',
|
|
187
176
|
explode: true,
|
|
188
177
|
},
|
|
189
178
|
sortOrder: {
|
|
190
|
-
style:
|
|
179
|
+
style: 'form',
|
|
191
180
|
explode: true,
|
|
192
181
|
},
|
|
193
182
|
},
|
|
@@ -198,10 +187,9 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
198
187
|
.optional()
|
|
199
188
|
.default(10),
|
|
200
189
|
cursor: z.string().optional(),
|
|
201
|
-
sortOrder: z.enum([
|
|
190
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
202
191
|
},
|
|
203
|
-
response:
|
|
204
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
192
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
205
193
|
errors: [
|
|
206
194
|
{
|
|
207
195
|
status: 400,
|
|
@@ -222,24 +210,24 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
222
210
|
* @param sortOrder The order the results are sorted in.
|
|
223
211
|
*/
|
|
224
212
|
export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
225
|
-
method:
|
|
226
|
-
path:
|
|
227
|
-
baseUrl:
|
|
228
|
-
requestFormat:
|
|
213
|
+
method: 'GET',
|
|
214
|
+
path: '/v2/collectible-items/:collectibleItemId/owners',
|
|
215
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
216
|
+
requestFormat: 'json',
|
|
229
217
|
serializationMethod: {
|
|
230
218
|
collectibleItemId: {
|
|
231
|
-
style:
|
|
219
|
+
style: 'simple',
|
|
232
220
|
},
|
|
233
221
|
limit: {
|
|
234
|
-
style:
|
|
222
|
+
style: 'form',
|
|
235
223
|
explode: true,
|
|
236
224
|
},
|
|
237
225
|
cursor: {
|
|
238
|
-
style:
|
|
226
|
+
style: 'form',
|
|
239
227
|
explode: true,
|
|
240
228
|
},
|
|
241
229
|
sortOrder: {
|
|
242
|
-
style:
|
|
230
|
+
style: 'form',
|
|
243
231
|
explode: true,
|
|
244
232
|
},
|
|
245
233
|
},
|
|
@@ -252,8 +240,7 @@ export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
|
252
240
|
.optional()
|
|
253
241
|
.default(1),
|
|
254
242
|
},
|
|
255
|
-
response:
|
|
256
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
243
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
257
244
|
errors: [
|
|
258
245
|
{
|
|
259
246
|
status: 400,
|
|
@@ -277,13 +264,13 @@ and will return NotEligibleForDelete.
|
|
|
277
264
|
* @param assetId ID of the asset to delete.
|
|
278
265
|
*/
|
|
279
266
|
export const deleteInventoryAssetAssetid = endpoint({
|
|
280
|
-
method:
|
|
281
|
-
path:
|
|
282
|
-
baseUrl:
|
|
283
|
-
requestFormat:
|
|
267
|
+
method: 'DELETE',
|
|
268
|
+
path: '/v2/inventory/asset/:assetId',
|
|
269
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
270
|
+
requestFormat: 'json',
|
|
284
271
|
serializationMethod: {
|
|
285
272
|
assetId: {
|
|
286
|
-
style:
|
|
273
|
+
style: 'simple',
|
|
287
274
|
},
|
|
288
275
|
},
|
|
289
276
|
parameters: {
|
|
@@ -325,35 +312,35 @@ export const deleteInventoryAssetAssetid = endpoint({
|
|
|
325
312
|
* @description GamePass and Badges not allowed.
|
|
326
313
|
*/
|
|
327
314
|
export const getUsersUseridInventory = endpoint({
|
|
328
|
-
method:
|
|
329
|
-
path:
|
|
330
|
-
baseUrl:
|
|
331
|
-
requestFormat:
|
|
315
|
+
method: 'GET',
|
|
316
|
+
path: '/v2/users/:userId/inventory',
|
|
317
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
318
|
+
requestFormat: 'json',
|
|
332
319
|
serializationMethod: {
|
|
333
320
|
userId: {
|
|
334
|
-
style:
|
|
321
|
+
style: 'simple',
|
|
335
322
|
},
|
|
336
323
|
assetTypes: {
|
|
337
|
-
style:
|
|
324
|
+
style: 'form',
|
|
338
325
|
},
|
|
339
326
|
filterDisapprovedAssets: {
|
|
340
|
-
style:
|
|
327
|
+
style: 'form',
|
|
341
328
|
explode: true,
|
|
342
329
|
},
|
|
343
330
|
showApprovedOnly: {
|
|
344
|
-
style:
|
|
331
|
+
style: 'form',
|
|
345
332
|
explode: true,
|
|
346
333
|
},
|
|
347
334
|
limit: {
|
|
348
|
-
style:
|
|
335
|
+
style: 'form',
|
|
349
336
|
explode: true,
|
|
350
337
|
},
|
|
351
338
|
cursor: {
|
|
352
|
-
style:
|
|
339
|
+
style: 'form',
|
|
353
340
|
explode: true,
|
|
354
341
|
},
|
|
355
342
|
sortOrder: {
|
|
356
|
-
style:
|
|
343
|
+
style: 'form',
|
|
357
344
|
explode: true,
|
|
358
345
|
},
|
|
359
346
|
},
|
|
@@ -367,10 +354,9 @@ export const getUsersUseridInventory = endpoint({
|
|
|
367
354
|
.optional()
|
|
368
355
|
.default(10),
|
|
369
356
|
cursor: z.string().optional(),
|
|
370
|
-
sortOrder: z.enum([
|
|
357
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
371
358
|
},
|
|
372
|
-
response:
|
|
373
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
359
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
374
360
|
errors: [
|
|
375
361
|
{
|
|
376
362
|
status: 400,
|
|
@@ -394,27 +380,27 @@ export const getUsersUseridInventory = endpoint({
|
|
|
394
380
|
* @param sortOrder The order the results are sorted in.
|
|
395
381
|
*/
|
|
396
382
|
export const getUsersUseridInventoryAssettypeid = endpoint({
|
|
397
|
-
method:
|
|
398
|
-
path:
|
|
399
|
-
baseUrl:
|
|
400
|
-
requestFormat:
|
|
383
|
+
method: 'GET',
|
|
384
|
+
path: '/v2/users/:userId/inventory/:assetTypeId',
|
|
385
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
386
|
+
requestFormat: 'json',
|
|
401
387
|
serializationMethod: {
|
|
402
388
|
userId: {
|
|
403
|
-
style:
|
|
389
|
+
style: 'simple',
|
|
404
390
|
},
|
|
405
391
|
assetTypeId: {
|
|
406
|
-
style:
|
|
392
|
+
style: 'simple',
|
|
407
393
|
},
|
|
408
394
|
limit: {
|
|
409
|
-
style:
|
|
395
|
+
style: 'form',
|
|
410
396
|
explode: true,
|
|
411
397
|
},
|
|
412
398
|
cursor: {
|
|
413
|
-
style:
|
|
399
|
+
style: 'form',
|
|
414
400
|
explode: true,
|
|
415
401
|
},
|
|
416
402
|
sortOrder: {
|
|
417
|
-
style:
|
|
403
|
+
style: 'form',
|
|
418
404
|
explode: true,
|
|
419
405
|
},
|
|
420
406
|
},
|
|
@@ -426,10 +412,9 @@ export const getUsersUseridInventoryAssettypeid = endpoint({
|
|
|
426
412
|
.optional()
|
|
427
413
|
.default(10),
|
|
428
414
|
cursor: z.string().optional(),
|
|
429
|
-
sortOrder: z.enum([
|
|
415
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
430
416
|
},
|
|
431
|
-
response:
|
|
432
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
417
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
433
418
|
errors: [
|
|
434
419
|
{
|
|
435
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,
|