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,8 +1,8 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_AssetDelivery_Api_AssetMetadata = z.object({
|
|
5
|
-
metadataType: z.literal(
|
|
5
|
+
metadataType: z.literal('UncompressedSize'),
|
|
6
6
|
value: z.string(),
|
|
7
7
|
});
|
|
8
8
|
const Roblox_Web_Assets_AssetFormatLocation = z.object({
|
|
@@ -14,29 +14,30 @@ const Roblox_Web_Assets_IAssetItemError = z.object({
|
|
|
14
14
|
Code: z.number().int(),
|
|
15
15
|
Message: z.string(),
|
|
16
16
|
CustomErrorCode: z.enum([
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
'UnknownError',
|
|
18
|
+
'NoPermissionToAsset',
|
|
19
|
+
'AssetPermissionCheckFailed',
|
|
20
|
+
'NotAuthorizedForAgeRecommendation',
|
|
21
|
+
'AgeRecommendationCheckFailed',
|
|
22
|
+
'InvalidPlaceRequestFromGameServer',
|
|
23
|
+
'BlockedAssetTypeRequestedFromInsertService',
|
|
24
|
+
'BlockedAssetTypeRequestedFromGameServer',
|
|
25
|
+
'AssetTypeMismatch',
|
|
26
|
+
'MissingAssetTypeInRequestHeader',
|
|
27
|
+
'AssetNotTrustedForPlace',
|
|
28
|
+
'NoAuthentication',
|
|
29
|
+
'AssetContentRepresentationBlockedDueToModeration',
|
|
30
|
+
'AssetNotFound',
|
|
31
|
+
'AssetVersionNotFound',
|
|
32
|
+
'AssetContentRepresentationNotFound',
|
|
33
|
+
'BlockedByAgeGeoRestriction',
|
|
34
|
+
'BlockedAssetTypeRequestedFromNonGameServer',
|
|
35
|
+
'AssetPendingReview',
|
|
36
|
+
'NotApprovedForRequestor',
|
|
37
|
+
'NotApprovedByContentCompliance',
|
|
38
|
+
'AssetContentRepresentationGenerating',
|
|
39
|
+
'AssetArchived',
|
|
40
|
+
'AssetUsageNotAllowed',
|
|
40
41
|
]),
|
|
41
42
|
});
|
|
42
43
|
const Roblox_Web_Assets_AssetContentRepresentationSpecifier = z.object({
|
|
@@ -51,8 +52,7 @@ const Roblox_Web_Assets_AssetResponseItemV2 = z.object({
|
|
|
51
52
|
requestId: z.string(),
|
|
52
53
|
isArchived: z.boolean(),
|
|
53
54
|
assetTypeId: z.number().int(),
|
|
54
|
-
contentRepresentationSpecifier:
|
|
55
|
-
Roblox_Web_Assets_AssetContentRepresentationSpecifier,
|
|
55
|
+
contentRepresentationSpecifier: Roblox_Web_Assets_AssetContentRepresentationSpecifier,
|
|
56
56
|
isRecordable: z.boolean(),
|
|
57
57
|
});
|
|
58
58
|
const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
|
|
@@ -73,9 +73,10 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
|
|
|
73
73
|
assetVersionId: z.number().int(),
|
|
74
74
|
modulePlaceId: z.number().int(),
|
|
75
75
|
assetFormat: z.string(),
|
|
76
|
-
|
|
76
|
+
'roblox-assetFormat': z.string(),
|
|
77
77
|
assetResolutionMode: z.string(),
|
|
78
78
|
accessContext: z.string(),
|
|
79
|
+
usageContext: z.number().int(),
|
|
79
80
|
contentRepresentationPriorityList: z.string(),
|
|
80
81
|
doNotFallbackToBaselineRepresentation: z.boolean(),
|
|
81
82
|
});
|
|
@@ -96,71 +97,76 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
|
|
|
96
97
|
* @param serverplaceid
|
|
97
98
|
* @param expectedAssetType
|
|
98
99
|
* @param accessContext
|
|
100
|
+
* @param usageContext
|
|
99
101
|
*/
|
|
100
102
|
export const getAliasAlias = endpoint({
|
|
101
|
-
method:
|
|
102
|
-
path:
|
|
103
|
-
baseUrl:
|
|
104
|
-
requestFormat:
|
|
103
|
+
method: 'GET',
|
|
104
|
+
path: '/v2/alias/:alias',
|
|
105
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
106
|
+
requestFormat: 'json',
|
|
105
107
|
serializationMethod: {
|
|
106
108
|
alias: {
|
|
107
|
-
style:
|
|
109
|
+
style: 'simple',
|
|
108
110
|
},
|
|
109
|
-
|
|
110
|
-
style:
|
|
111
|
+
'Accept-Encoding': {
|
|
112
|
+
style: 'simple',
|
|
111
113
|
},
|
|
112
|
-
|
|
113
|
-
style:
|
|
114
|
+
'Roblox-Place-Id': {
|
|
115
|
+
style: 'simple',
|
|
114
116
|
},
|
|
115
117
|
AssetType: {
|
|
116
|
-
style:
|
|
118
|
+
style: 'simple',
|
|
117
119
|
},
|
|
118
120
|
Accept: {
|
|
119
|
-
style:
|
|
121
|
+
style: 'simple',
|
|
120
122
|
},
|
|
121
123
|
AssetFormat: {
|
|
122
|
-
style:
|
|
124
|
+
style: 'simple',
|
|
123
125
|
},
|
|
124
|
-
|
|
125
|
-
style:
|
|
126
|
+
'Roblox-AssetFormat': {
|
|
127
|
+
style: 'simple',
|
|
126
128
|
},
|
|
127
129
|
skipSigningScripts: {
|
|
128
|
-
style:
|
|
130
|
+
style: 'form',
|
|
129
131
|
explode: true,
|
|
130
132
|
},
|
|
131
133
|
clientInsert: {
|
|
132
|
-
style:
|
|
134
|
+
style: 'form',
|
|
133
135
|
explode: true,
|
|
134
136
|
},
|
|
135
137
|
scriptinsert: {
|
|
136
|
-
style:
|
|
138
|
+
style: 'form',
|
|
137
139
|
explode: true,
|
|
138
140
|
},
|
|
139
141
|
modulePlaceId: {
|
|
140
|
-
style:
|
|
142
|
+
style: 'form',
|
|
141
143
|
explode: true,
|
|
142
144
|
},
|
|
143
145
|
serverplaceid: {
|
|
144
|
-
style:
|
|
146
|
+
style: 'form',
|
|
145
147
|
explode: true,
|
|
146
148
|
},
|
|
147
149
|
expectedAssetType: {
|
|
148
|
-
style:
|
|
150
|
+
style: 'form',
|
|
149
151
|
explode: true,
|
|
150
152
|
},
|
|
151
153
|
accessContext: {
|
|
152
|
-
style:
|
|
154
|
+
style: 'form',
|
|
155
|
+
explode: true,
|
|
156
|
+
},
|
|
157
|
+
usageContext: {
|
|
158
|
+
style: 'form',
|
|
153
159
|
explode: true,
|
|
154
160
|
},
|
|
155
161
|
},
|
|
156
162
|
parameters: {
|
|
157
163
|
alias: z.string().regex(/^[0-9]+\/.+/),
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
'Accept-Encoding': z.string(),
|
|
165
|
+
'Roblox-Place-Id': z.number().int(),
|
|
160
166
|
AssetType: z.string(),
|
|
161
167
|
Accept: z.string(),
|
|
162
168
|
AssetFormat: z.string(),
|
|
163
|
-
|
|
169
|
+
'Roblox-AssetFormat': z.string(),
|
|
164
170
|
skipSigningScripts: z.boolean().optional(),
|
|
165
171
|
clientInsert: z.number().int().optional(),
|
|
166
172
|
scriptinsert: z.number().int().optional(),
|
|
@@ -168,6 +174,7 @@ export const getAliasAlias = endpoint({
|
|
|
168
174
|
serverplaceid: z.number().int().optional(),
|
|
169
175
|
expectedAssetType: z.string().optional(),
|
|
170
176
|
accessContext: z.string().optional(),
|
|
177
|
+
usageContext: z.number().int().optional(),
|
|
171
178
|
},
|
|
172
179
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
173
180
|
errors: [],
|
|
@@ -199,115 +206,120 @@ export const getAliasAlias = endpoint({
|
|
|
199
206
|
* @param doNotFallbackToBaselineRepresentation
|
|
200
207
|
* @param contentRepresentationPriorityList
|
|
201
208
|
* @param accessContext
|
|
209
|
+
* @param usageContext
|
|
202
210
|
*/
|
|
203
211
|
export const getAsset = endpoint({
|
|
204
|
-
method:
|
|
205
|
-
path:
|
|
206
|
-
baseUrl:
|
|
207
|
-
requestFormat:
|
|
212
|
+
method: 'GET',
|
|
213
|
+
path: '/v2/asset',
|
|
214
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
215
|
+
requestFormat: 'json',
|
|
208
216
|
serializationMethod: {
|
|
209
|
-
|
|
210
|
-
style:
|
|
217
|
+
'Accept-Encoding': {
|
|
218
|
+
style: 'simple',
|
|
211
219
|
},
|
|
212
|
-
|
|
213
|
-
style:
|
|
220
|
+
'Roblox-Place-Id': {
|
|
221
|
+
style: 'simple',
|
|
214
222
|
},
|
|
215
223
|
AssetType: {
|
|
216
|
-
style:
|
|
224
|
+
style: 'simple',
|
|
217
225
|
},
|
|
218
226
|
Accept: {
|
|
219
|
-
style:
|
|
227
|
+
style: 'simple',
|
|
220
228
|
},
|
|
221
229
|
AssetFormat: {
|
|
222
|
-
style:
|
|
230
|
+
style: 'simple',
|
|
223
231
|
},
|
|
224
|
-
|
|
225
|
-
style:
|
|
232
|
+
'Roblox-AssetFormat': {
|
|
233
|
+
style: 'simple',
|
|
226
234
|
},
|
|
227
235
|
id: {
|
|
228
|
-
style:
|
|
236
|
+
style: 'form',
|
|
229
237
|
explode: true,
|
|
230
238
|
},
|
|
231
239
|
userAssetId: {
|
|
232
|
-
style:
|
|
240
|
+
style: 'form',
|
|
233
241
|
explode: true,
|
|
234
242
|
},
|
|
235
243
|
assetVersionId: {
|
|
236
|
-
style:
|
|
244
|
+
style: 'form',
|
|
237
245
|
explode: true,
|
|
238
246
|
},
|
|
239
247
|
version: {
|
|
240
|
-
style:
|
|
248
|
+
style: 'form',
|
|
241
249
|
explode: true,
|
|
242
250
|
},
|
|
243
251
|
universeId: {
|
|
244
|
-
style:
|
|
252
|
+
style: 'form',
|
|
245
253
|
explode: true,
|
|
246
254
|
},
|
|
247
255
|
clientInsert: {
|
|
248
|
-
style:
|
|
256
|
+
style: 'form',
|
|
249
257
|
explode: true,
|
|
250
258
|
},
|
|
251
259
|
scriptinsert: {
|
|
252
|
-
style:
|
|
260
|
+
style: 'form',
|
|
253
261
|
explode: true,
|
|
254
262
|
},
|
|
255
263
|
modulePlaceId: {
|
|
256
|
-
style:
|
|
264
|
+
style: 'form',
|
|
257
265
|
explode: true,
|
|
258
266
|
},
|
|
259
267
|
serverplaceid: {
|
|
260
|
-
style:
|
|
268
|
+
style: 'form',
|
|
261
269
|
explode: true,
|
|
262
270
|
},
|
|
263
271
|
assetName: {
|
|
264
|
-
style:
|
|
272
|
+
style: 'form',
|
|
265
273
|
explode: true,
|
|
266
274
|
},
|
|
267
275
|
hash: {
|
|
268
|
-
style:
|
|
276
|
+
style: 'form',
|
|
269
277
|
explode: true,
|
|
270
278
|
},
|
|
271
279
|
marAssetHash: {
|
|
272
|
-
style:
|
|
280
|
+
style: 'form',
|
|
273
281
|
explode: true,
|
|
274
282
|
},
|
|
275
283
|
marCheckSum: {
|
|
276
|
-
style:
|
|
284
|
+
style: 'form',
|
|
277
285
|
explode: true,
|
|
278
286
|
},
|
|
279
287
|
expectedAssetType: {
|
|
280
|
-
style:
|
|
288
|
+
style: 'form',
|
|
281
289
|
explode: true,
|
|
282
290
|
},
|
|
283
291
|
skipSigningScripts: {
|
|
284
|
-
style:
|
|
292
|
+
style: 'form',
|
|
285
293
|
explode: true,
|
|
286
294
|
},
|
|
287
295
|
permissionContext: {
|
|
288
|
-
style:
|
|
296
|
+
style: 'form',
|
|
289
297
|
explode: true,
|
|
290
298
|
},
|
|
291
299
|
doNotFallbackToBaselineRepresentation: {
|
|
292
|
-
style:
|
|
300
|
+
style: 'form',
|
|
293
301
|
explode: true,
|
|
294
302
|
},
|
|
295
303
|
contentRepresentationPriorityList: {
|
|
296
|
-
style:
|
|
304
|
+
style: 'form',
|
|
297
305
|
explode: true,
|
|
298
306
|
},
|
|
299
307
|
accessContext: {
|
|
300
|
-
style:
|
|
308
|
+
style: 'form',
|
|
309
|
+
explode: true,
|
|
310
|
+
},
|
|
311
|
+
usageContext: {
|
|
312
|
+
style: 'form',
|
|
301
313
|
explode: true,
|
|
302
314
|
},
|
|
303
315
|
},
|
|
304
316
|
parameters: {
|
|
305
|
-
|
|
306
|
-
|
|
317
|
+
'Accept-Encoding': z.string(),
|
|
318
|
+
'Roblox-Place-Id': z.number().int(),
|
|
307
319
|
AssetType: z.string(),
|
|
308
320
|
Accept: z.string(),
|
|
309
321
|
AssetFormat: z.string(),
|
|
310
|
-
|
|
322
|
+
'Roblox-AssetFormat': z.string(),
|
|
311
323
|
id: z.number().int().optional(),
|
|
312
324
|
userAssetId: z.number().int().optional(),
|
|
313
325
|
assetVersionId: z.number().int().optional(),
|
|
@@ -327,6 +339,7 @@ export const getAsset = endpoint({
|
|
|
327
339
|
doNotFallbackToBaselineRepresentation: z.boolean().optional(),
|
|
328
340
|
contentRepresentationPriorityList: z.string().optional(),
|
|
329
341
|
accessContext: z.string().optional(),
|
|
342
|
+
usageContext: z.number().int().optional(),
|
|
330
343
|
},
|
|
331
344
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
332
345
|
errors: [],
|
|
@@ -349,79 +362,84 @@ export const getAsset = endpoint({
|
|
|
349
362
|
* @param doNotFallbackToBaselineRepresentation
|
|
350
363
|
* @param contentRepresentationPriorityList
|
|
351
364
|
* @param accessContext
|
|
365
|
+
* @param usageContext
|
|
352
366
|
*/
|
|
353
367
|
export const getAssetidAssetid = endpoint({
|
|
354
|
-
method:
|
|
355
|
-
path:
|
|
356
|
-
baseUrl:
|
|
357
|
-
requestFormat:
|
|
368
|
+
method: 'GET',
|
|
369
|
+
path: '/v2/assetId/:assetId',
|
|
370
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
371
|
+
requestFormat: 'json',
|
|
358
372
|
serializationMethod: {
|
|
359
373
|
assetId: {
|
|
360
|
-
style:
|
|
374
|
+
style: 'simple',
|
|
361
375
|
},
|
|
362
|
-
|
|
363
|
-
style:
|
|
376
|
+
'Accept-Encoding': {
|
|
377
|
+
style: 'simple',
|
|
364
378
|
},
|
|
365
|
-
|
|
366
|
-
style:
|
|
379
|
+
'Roblox-Place-Id': {
|
|
380
|
+
style: 'simple',
|
|
367
381
|
},
|
|
368
382
|
AssetType: {
|
|
369
|
-
style:
|
|
383
|
+
style: 'simple',
|
|
370
384
|
},
|
|
371
385
|
Accept: {
|
|
372
|
-
style:
|
|
386
|
+
style: 'simple',
|
|
373
387
|
},
|
|
374
388
|
AssetFormat: {
|
|
375
|
-
style:
|
|
389
|
+
style: 'simple',
|
|
376
390
|
},
|
|
377
|
-
|
|
378
|
-
style:
|
|
391
|
+
'Roblox-AssetFormat': {
|
|
392
|
+
style: 'simple',
|
|
379
393
|
},
|
|
380
394
|
skipSigningScripts: {
|
|
381
|
-
style:
|
|
395
|
+
style: 'form',
|
|
382
396
|
explode: true,
|
|
383
397
|
},
|
|
384
398
|
clientInsert: {
|
|
385
|
-
style:
|
|
399
|
+
style: 'form',
|
|
386
400
|
explode: true,
|
|
387
401
|
},
|
|
388
402
|
scriptinsert: {
|
|
389
|
-
style:
|
|
403
|
+
style: 'form',
|
|
390
404
|
explode: true,
|
|
391
405
|
},
|
|
392
406
|
modulePlaceId: {
|
|
393
|
-
style:
|
|
407
|
+
style: 'form',
|
|
394
408
|
explode: true,
|
|
395
409
|
},
|
|
396
410
|
serverplaceid: {
|
|
397
|
-
style:
|
|
411
|
+
style: 'form',
|
|
398
412
|
explode: true,
|
|
399
413
|
},
|
|
400
414
|
expectedAssetType: {
|
|
401
|
-
style:
|
|
415
|
+
style: 'form',
|
|
402
416
|
explode: true,
|
|
403
417
|
},
|
|
404
418
|
doNotFallbackToBaselineRepresentation: {
|
|
405
|
-
style:
|
|
419
|
+
style: 'form',
|
|
406
420
|
explode: true,
|
|
407
421
|
},
|
|
408
422
|
contentRepresentationPriorityList: {
|
|
409
|
-
style:
|
|
423
|
+
style: 'form',
|
|
410
424
|
explode: true,
|
|
411
425
|
},
|
|
412
426
|
accessContext: {
|
|
413
|
-
style:
|
|
427
|
+
style: 'form',
|
|
428
|
+
explode: true,
|
|
429
|
+
},
|
|
430
|
+
usageContext: {
|
|
431
|
+
style: 'form',
|
|
414
432
|
explode: true,
|
|
415
433
|
},
|
|
416
434
|
},
|
|
417
435
|
parameters: {
|
|
418
436
|
assetId: z.number().int(),
|
|
419
|
-
|
|
420
|
-
|
|
437
|
+
'Accept-Encoding': z.string(),
|
|
438
|
+
'Roblox-Place-Id': z.number().int(),
|
|
421
439
|
AssetType: z.string(),
|
|
422
440
|
Accept: z.string(),
|
|
423
441
|
AssetFormat: z.string(),
|
|
424
|
-
|
|
442
|
+
'Roblox-AssetFormat': z.string(),
|
|
425
443
|
skipSigningScripts: z.boolean().optional(),
|
|
426
444
|
clientInsert: z.number().int().optional(),
|
|
427
445
|
scriptinsert: z.number().int().optional(),
|
|
@@ -431,6 +449,7 @@ export const getAssetidAssetid = endpoint({
|
|
|
431
449
|
doNotFallbackToBaselineRepresentation: z.boolean().optional(),
|
|
432
450
|
contentRepresentationPriorityList: z.string().optional(),
|
|
433
451
|
accessContext: z.string().optional(),
|
|
452
|
+
usageContext: z.number().int().optional(),
|
|
434
453
|
},
|
|
435
454
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
436
455
|
errors: [],
|
|
@@ -454,83 +473,88 @@ export const getAssetidAssetid = endpoint({
|
|
|
454
473
|
* @param doNotFallbackToBaselineRepresentation
|
|
455
474
|
* @param contentRepresentationPriorityList
|
|
456
475
|
* @param accessContext
|
|
476
|
+
* @param usageContext
|
|
457
477
|
*/
|
|
458
478
|
export const getAssetidAssetidVersionVersionnumber = endpoint({
|
|
459
|
-
method:
|
|
460
|
-
path:
|
|
461
|
-
baseUrl:
|
|
462
|
-
requestFormat:
|
|
479
|
+
method: 'GET',
|
|
480
|
+
path: '/v2/assetId/:assetId/version/:versionNumber',
|
|
481
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
482
|
+
requestFormat: 'json',
|
|
463
483
|
serializationMethod: {
|
|
464
484
|
assetId: {
|
|
465
|
-
style:
|
|
485
|
+
style: 'simple',
|
|
466
486
|
},
|
|
467
487
|
versionNumber: {
|
|
468
|
-
style:
|
|
488
|
+
style: 'simple',
|
|
469
489
|
},
|
|
470
|
-
|
|
471
|
-
style:
|
|
490
|
+
'Accept-Encoding': {
|
|
491
|
+
style: 'simple',
|
|
472
492
|
},
|
|
473
|
-
|
|
474
|
-
style:
|
|
493
|
+
'Roblox-Place-Id': {
|
|
494
|
+
style: 'simple',
|
|
475
495
|
},
|
|
476
496
|
AssetType: {
|
|
477
|
-
style:
|
|
497
|
+
style: 'simple',
|
|
478
498
|
},
|
|
479
499
|
Accept: {
|
|
480
|
-
style:
|
|
500
|
+
style: 'simple',
|
|
481
501
|
},
|
|
482
502
|
AssetFormat: {
|
|
483
|
-
style:
|
|
503
|
+
style: 'simple',
|
|
484
504
|
},
|
|
485
|
-
|
|
486
|
-
style:
|
|
505
|
+
'Roblox-AssetFormat': {
|
|
506
|
+
style: 'simple',
|
|
487
507
|
},
|
|
488
508
|
skipSigningScripts: {
|
|
489
|
-
style:
|
|
509
|
+
style: 'form',
|
|
490
510
|
explode: true,
|
|
491
511
|
},
|
|
492
512
|
clientInsert: {
|
|
493
|
-
style:
|
|
513
|
+
style: 'form',
|
|
494
514
|
explode: true,
|
|
495
515
|
},
|
|
496
516
|
scriptinsert: {
|
|
497
|
-
style:
|
|
517
|
+
style: 'form',
|
|
498
518
|
explode: true,
|
|
499
519
|
},
|
|
500
520
|
modulePlaceId: {
|
|
501
|
-
style:
|
|
521
|
+
style: 'form',
|
|
502
522
|
explode: true,
|
|
503
523
|
},
|
|
504
524
|
serverplaceid: {
|
|
505
|
-
style:
|
|
525
|
+
style: 'form',
|
|
506
526
|
explode: true,
|
|
507
527
|
},
|
|
508
528
|
expectedAssetType: {
|
|
509
|
-
style:
|
|
529
|
+
style: 'form',
|
|
510
530
|
explode: true,
|
|
511
531
|
},
|
|
512
532
|
doNotFallbackToBaselineRepresentation: {
|
|
513
|
-
style:
|
|
533
|
+
style: 'form',
|
|
514
534
|
explode: true,
|
|
515
535
|
},
|
|
516
536
|
contentRepresentationPriorityList: {
|
|
517
|
-
style:
|
|
537
|
+
style: 'form',
|
|
518
538
|
explode: true,
|
|
519
539
|
},
|
|
520
540
|
accessContext: {
|
|
521
|
-
style:
|
|
541
|
+
style: 'form',
|
|
542
|
+
explode: true,
|
|
543
|
+
},
|
|
544
|
+
usageContext: {
|
|
545
|
+
style: 'form',
|
|
522
546
|
explode: true,
|
|
523
547
|
},
|
|
524
548
|
},
|
|
525
549
|
parameters: {
|
|
526
550
|
assetId: z.number().int(),
|
|
527
551
|
versionNumber: z.number().int(),
|
|
528
|
-
|
|
529
|
-
|
|
552
|
+
'Accept-Encoding': z.string(),
|
|
553
|
+
'Roblox-Place-Id': z.number().int(),
|
|
530
554
|
AssetType: z.string(),
|
|
531
555
|
Accept: z.string(),
|
|
532
556
|
AssetFormat: z.string(),
|
|
533
|
-
|
|
557
|
+
'Roblox-AssetFormat': z.string(),
|
|
534
558
|
skipSigningScripts: z.boolean().optional(),
|
|
535
559
|
clientInsert: z.number().int().optional(),
|
|
536
560
|
scriptinsert: z.number().int().optional(),
|
|
@@ -540,6 +564,7 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
|
|
|
540
564
|
doNotFallbackToBaselineRepresentation: z.boolean().optional(),
|
|
541
565
|
contentRepresentationPriorityList: z.string().optional(),
|
|
542
566
|
accessContext: z.string().optional(),
|
|
567
|
+
usageContext: z.number().int().optional(),
|
|
543
568
|
},
|
|
544
569
|
response: Roblox_Web_Assets_AssetResponseItemV2,
|
|
545
570
|
errors: [],
|
|
@@ -552,26 +577,26 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
|
|
|
552
577
|
* @param Roblox-Browser-Asset-Request
|
|
553
578
|
*/
|
|
554
579
|
export const postAssetsBatch = endpoint({
|
|
555
|
-
method:
|
|
556
|
-
path:
|
|
557
|
-
baseUrl:
|
|
558
|
-
requestFormat:
|
|
580
|
+
method: 'POST',
|
|
581
|
+
path: '/v2/assets/batch',
|
|
582
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
583
|
+
requestFormat: 'json',
|
|
559
584
|
serializationMethod: {
|
|
560
585
|
body: {},
|
|
561
|
-
|
|
562
|
-
style:
|
|
586
|
+
'Roblox-Place-Id': {
|
|
587
|
+
style: 'simple',
|
|
563
588
|
},
|
|
564
589
|
Accept: {
|
|
565
|
-
style:
|
|
590
|
+
style: 'simple',
|
|
566
591
|
},
|
|
567
|
-
|
|
568
|
-
style:
|
|
592
|
+
'Roblox-Browser-Asset-Request': {
|
|
593
|
+
style: 'simple',
|
|
569
594
|
},
|
|
570
595
|
},
|
|
571
596
|
parameters: {
|
|
572
|
-
|
|
597
|
+
'Roblox-Place-Id': z.number().int(),
|
|
573
598
|
Accept: z.string(),
|
|
574
|
-
|
|
599
|
+
'Roblox-Browser-Asset-Request': z.string(),
|
|
575
600
|
},
|
|
576
601
|
body: z.array(Roblox_Web_Assets_BatchAssetRequestItem),
|
|
577
602
|
response: z.array(Roblox_Web_Assets_AssetResponseItemV2),
|
|
@@ -595,69 +620,69 @@ export const postAssetsBatch = endpoint({
|
|
|
595
620
|
* @param expectedAssetType
|
|
596
621
|
*/
|
|
597
622
|
export const getMarassethashMarassethashMarchecksumMarchecksum = endpoint({
|
|
598
|
-
method:
|
|
599
|
-
path:
|
|
600
|
-
baseUrl:
|
|
601
|
-
requestFormat:
|
|
623
|
+
method: 'GET',
|
|
624
|
+
path: '/v2/marAssetHash/:marAssetHash/marCheckSum/:marCheckSum',
|
|
625
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
626
|
+
requestFormat: 'json',
|
|
602
627
|
serializationMethod: {
|
|
603
628
|
marAssetHash: {
|
|
604
|
-
style:
|
|
629
|
+
style: 'simple',
|
|
605
630
|
},
|
|
606
631
|
marCheckSum: {
|
|
607
|
-
style:
|
|
632
|
+
style: 'simple',
|
|
608
633
|
},
|
|
609
|
-
|
|
610
|
-
style:
|
|
634
|
+
'Accept-Encoding': {
|
|
635
|
+
style: 'simple',
|
|
611
636
|
},
|
|
612
|
-
|
|
613
|
-
style:
|
|
637
|
+
'Roblox-Place-Id': {
|
|
638
|
+
style: 'simple',
|
|
614
639
|
},
|
|
615
640
|
AssetType: {
|
|
616
|
-
style:
|
|
641
|
+
style: 'simple',
|
|
617
642
|
},
|
|
618
643
|
Accept: {
|
|
619
|
-
style:
|
|
644
|
+
style: 'simple',
|
|
620
645
|
},
|
|
621
646
|
AssetFormat: {
|
|
622
|
-
style:
|
|
647
|
+
style: 'simple',
|
|
623
648
|
},
|
|
624
|
-
|
|
625
|
-
style:
|
|
649
|
+
'Roblox-AssetFormat': {
|
|
650
|
+
style: 'simple',
|
|
626
651
|
},
|
|
627
652
|
skipSigningScripts: {
|
|
628
|
-
style:
|
|
653
|
+
style: 'form',
|
|
629
654
|
explode: true,
|
|
630
655
|
},
|
|
631
656
|
clientInsert: {
|
|
632
|
-
style:
|
|
657
|
+
style: 'form',
|
|
633
658
|
explode: true,
|
|
634
659
|
},
|
|
635
660
|
scriptinsert: {
|
|
636
|
-
style:
|
|
661
|
+
style: 'form',
|
|
637
662
|
explode: true,
|
|
638
663
|
},
|
|
639
664
|
modulePlaceId: {
|
|
640
|
-
style:
|
|
665
|
+
style: 'form',
|
|
641
666
|
explode: true,
|
|
642
667
|
},
|
|
643
668
|
serverplaceid: {
|
|
644
|
-
style:
|
|
669
|
+
style: 'form',
|
|
645
670
|
explode: true,
|
|
646
671
|
},
|
|
647
672
|
expectedAssetType: {
|
|
648
|
-
style:
|
|
673
|
+
style: 'form',
|
|
649
674
|
explode: true,
|
|
650
675
|
},
|
|
651
676
|
},
|
|
652
677
|
parameters: {
|
|
653
678
|
marAssetHash: z.string(),
|
|
654
679
|
marCheckSum: z.string(),
|
|
655
|
-
|
|
656
|
-
|
|
680
|
+
'Accept-Encoding': z.string(),
|
|
681
|
+
'Roblox-Place-Id': z.number().int(),
|
|
657
682
|
AssetType: z.string(),
|
|
658
683
|
Accept: z.string(),
|
|
659
684
|
AssetFormat: z.string(),
|
|
660
|
-
|
|
685
|
+
'Roblox-AssetFormat': z.string(),
|
|
661
686
|
skipSigningScripts: z.boolean().optional(),
|
|
662
687
|
clientInsert: z.number().int().optional(),
|
|
663
688
|
scriptinsert: z.number().int().optional(),
|