rozod 1.0.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 +551 -0
- package/lib/endpoints/accountinformationv1.js +652 -0
- package/lib/endpoints/accountsettingsv1.d.ts +548 -0
- package/lib/endpoints/accountsettingsv1.js +712 -0
- package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
- package/lib/endpoints/assetdeliveryv1.js +268 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
- package/lib/endpoints/assetdeliveryv2.js +271 -0
- package/lib/endpoints/authv1.d.ts +1328 -0
- package/lib/endpoints/authv1.js +1168 -0
- package/lib/endpoints/authv2.d.ts +1239 -0
- package/lib/endpoints/authv2.js +1057 -0
- package/lib/endpoints/authv3.d.ts +35 -0
- package/lib/endpoints/authv3.js +41 -0
- package/lib/endpoints/avatarv1.d.ts +1841 -0
- package/lib/endpoints/avatarv1.js +726 -0
- package/lib/endpoints/avatarv2.d.ts +1077 -0
- package/lib/endpoints/avatarv2.js +316 -0
- package/lib/endpoints/avatarv3.d.ts +656 -0
- package/lib/endpoints/avatarv3.js +219 -0
- package/lib/endpoints/badgesv1.d.ts +641 -0
- package/lib/endpoints/badgesv1.js +345 -0
- package/lib/endpoints/catalogv1.d.ts +1715 -0
- package/lib/endpoints/catalogv1.js +792 -0
- package/lib/endpoints/chatv2.d.ts +2179 -0
- package/lib/endpoints/chatv2.js +721 -0
- package/lib/endpoints/developv1.d.ts +2097 -0
- package/lib/endpoints/developv1.js +1537 -0
- package/lib/endpoints/developv2.d.ts +619 -0
- package/lib/endpoints/developv2.js +316 -0
- package/lib/endpoints/economyv1.d.ts +20 -0
- package/lib/endpoints/economyv1.js +28 -0
- package/lib/endpoints/friendsv1.d.ts +1093 -0
- package/lib/endpoints/friendsv1.js +818 -0
- package/lib/endpoints/gamesv1.d.ts +2749 -0
- package/lib/endpoints/gamesv1.js +1294 -0
- package/lib/endpoints/gamesv2.d.ts +582 -0
- package/lib/endpoints/gamesv2.js +258 -0
- package/lib/endpoints/groupsv1.d.ts +5528 -0
- package/lib/endpoints/groupsv1.js +2434 -0
- package/lib/endpoints/groupsv2.d.ts +530 -0
- package/lib/endpoints/groupsv2.js +201 -0
- package/lib/endpoints/inventoryv1.d.ts +436 -0
- package/lib/endpoints/inventoryv1.js +434 -0
- package/lib/endpoints/inventoryv2.d.ts +256 -0
- package/lib/endpoints/inventoryv2.js +241 -0
- package/lib/endpoints/presencev1.d.ts +134 -0
- package/lib/endpoints/presencev1.js +93 -0
- package/lib/endpoints/privatemessagesv1.d.ts +620 -0
- package/lib/endpoints/privatemessagesv1.js +338 -0
- package/lib/endpoints/thumbnailsv1.d.ts +897 -0
- package/lib/endpoints/thumbnailsv1.js +560 -0
- package/lib/endpoints/tradesv1.d.ts +473 -0
- package/lib/endpoints/tradesv1.js +403 -0
- package/lib/endpoints/translationsv1.d.ts +80 -0
- package/lib/endpoints/translationsv1.js +122 -0
- package/lib/endpoints/usersv1.d.ts +391 -0
- package/lib/endpoints/usersv1.js +344 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +293 -0
- package/package.json +39 -0
- package/readme.md +99 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getV2userAssetIdUserAssetId = exports.getV2marAssetHashMarAssetHashmarCheckSumMarCheckSum = exports.getV2assetVersionIdAssetVersionId = exports.postV2assetsbatch = exports.getV2assetIdAssetIdversionVersion = exports.getV2assetIdAssetId = exports.getV2assetHashHash = exports.getV2asset = exports.getV2aliasAlias = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Web_Assets_AssetFormatLocation = zod_1.z.object({ assetFormat: zod_1.z.string(), location: zod_1.z.string() }).partial();
|
|
6
|
+
var Roblox_Web_Assets_IAssetItemError = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
Code: zod_1.z.number().int(),
|
|
9
|
+
Message: zod_1.z.string(),
|
|
10
|
+
CustomErrorCode: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
|
|
11
|
+
})
|
|
12
|
+
.partial();
|
|
13
|
+
var Roblox_Web_Assets_IAssetResponseItemV2 = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
Locations: zod_1.z.array(Roblox_Web_Assets_AssetFormatLocation),
|
|
16
|
+
Errors: zod_1.z.array(Roblox_Web_Assets_IAssetItemError),
|
|
17
|
+
RequestId: zod_1.z.string(),
|
|
18
|
+
IsHashDynamic: zod_1.z.boolean(),
|
|
19
|
+
IsCopyrightProtected: zod_1.z.boolean(),
|
|
20
|
+
IsArchived: zod_1.z.boolean(),
|
|
21
|
+
AssetTypeId: zod_1.z.number().int(),
|
|
22
|
+
})
|
|
23
|
+
.partial();
|
|
24
|
+
var Roblox_Web_Assets_IAssetResponseItem = zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
Location: zod_1.z.string(),
|
|
27
|
+
Errors: zod_1.z.array(Roblox_Web_Assets_IAssetItemError),
|
|
28
|
+
RequestId: zod_1.z.string(),
|
|
29
|
+
IsHashDynamic: zod_1.z.boolean(),
|
|
30
|
+
IsCopyrightProtected: zod_1.z.boolean(),
|
|
31
|
+
IsArchived: zod_1.z.boolean(),
|
|
32
|
+
})
|
|
33
|
+
.partial();
|
|
34
|
+
var Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z
|
|
35
|
+
.object({
|
|
36
|
+
assetName: zod_1.z.string(),
|
|
37
|
+
assetType: zod_1.z.string(),
|
|
38
|
+
clientInsert: zod_1.z.boolean(),
|
|
39
|
+
placeId: zod_1.z.number().int(),
|
|
40
|
+
requestId: zod_1.z.string(),
|
|
41
|
+
scriptInsert: zod_1.z.boolean(),
|
|
42
|
+
serverPlaceId: zod_1.z.number().int(),
|
|
43
|
+
universeId: zod_1.z.number().int(),
|
|
44
|
+
accept: zod_1.z.string(),
|
|
45
|
+
encoding: zod_1.z.string(),
|
|
46
|
+
hash: zod_1.z.string(),
|
|
47
|
+
userAssetId: zod_1.z.number().int(),
|
|
48
|
+
assetId: zod_1.z.number().int(),
|
|
49
|
+
version: zod_1.z.number().int(),
|
|
50
|
+
assetVersionId: zod_1.z.number().int(),
|
|
51
|
+
modulePlaceId: zod_1.z.number().int(),
|
|
52
|
+
assetFormat: zod_1.z.string(),
|
|
53
|
+
'roblox-assetFormat': zod_1.z.string(),
|
|
54
|
+
})
|
|
55
|
+
.partial();
|
|
56
|
+
var schemas = {
|
|
57
|
+
Roblox_Web_Assets_AssetFormatLocation: Roblox_Web_Assets_AssetFormatLocation,
|
|
58
|
+
Roblox_Web_Assets_IAssetItemError: Roblox_Web_Assets_IAssetItemError,
|
|
59
|
+
Roblox_Web_Assets_IAssetResponseItemV2: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
60
|
+
Roblox_Web_Assets_IAssetResponseItem: Roblox_Web_Assets_IAssetResponseItem,
|
|
61
|
+
Roblox_Web_Assets_BatchAssetRequestItem: Roblox_Web_Assets_BatchAssetRequestItem,
|
|
62
|
+
};
|
|
63
|
+
exports.getV2aliasAlias = {
|
|
64
|
+
method: 'get',
|
|
65
|
+
path: '/v2/alias/:alias',
|
|
66
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
67
|
+
requestFormat: 'json',
|
|
68
|
+
parameters: {
|
|
69
|
+
alias: zod_1.z.string().regex(/^[0-9]+\\/),
|
|
70
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
71
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
72
|
+
AssetType: zod_1.z.string(),
|
|
73
|
+
Accept: zod_1.z.string(),
|
|
74
|
+
AssetFormat: zod_1.z.string(),
|
|
75
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
76
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
77
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
78
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
79
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
80
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
81
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
82
|
+
},
|
|
83
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
84
|
+
errors: [],
|
|
85
|
+
};
|
|
86
|
+
exports.getV2asset = {
|
|
87
|
+
method: 'get',
|
|
88
|
+
path: '/v2/asset',
|
|
89
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
90
|
+
requestFormat: 'json',
|
|
91
|
+
parameters: {
|
|
92
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
93
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
94
|
+
AssetType: zod_1.z.string(),
|
|
95
|
+
Accept: zod_1.z.string(),
|
|
96
|
+
AssetFormat: zod_1.z.string(),
|
|
97
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
98
|
+
id: zod_1.z.number().int().optional(),
|
|
99
|
+
userAssetId: zod_1.z.number().int().optional(),
|
|
100
|
+
assetVersionId: zod_1.z.number().int().optional(),
|
|
101
|
+
version: zod_1.z.number().int().optional(),
|
|
102
|
+
universeId: zod_1.z.number().int().optional(),
|
|
103
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
104
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
105
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
106
|
+
serverplaceid: zod_1.z.string().optional(),
|
|
107
|
+
assetName: zod_1.z.string().optional(),
|
|
108
|
+
hash: zod_1.z.string().optional(),
|
|
109
|
+
marAssetHash: zod_1.z.string().optional(),
|
|
110
|
+
marCheckSum: zod_1.z.string().optional(),
|
|
111
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
112
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
113
|
+
permissionContext: zod_1.z.string().optional(),
|
|
114
|
+
},
|
|
115
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
116
|
+
errors: [],
|
|
117
|
+
};
|
|
118
|
+
exports.getV2assetHashHash = {
|
|
119
|
+
method: 'get',
|
|
120
|
+
path: '/v2/assetHash/:hash',
|
|
121
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
122
|
+
requestFormat: 'json',
|
|
123
|
+
parameters: {
|
|
124
|
+
hash: zod_1.z.string(),
|
|
125
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
126
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
127
|
+
AssetType: zod_1.z.string(),
|
|
128
|
+
Accept: zod_1.z.string(),
|
|
129
|
+
AssetFormat: zod_1.z.string(),
|
|
130
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
131
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
132
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
133
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
134
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
135
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
136
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
137
|
+
},
|
|
138
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
139
|
+
errors: [],
|
|
140
|
+
};
|
|
141
|
+
exports.getV2assetIdAssetId = {
|
|
142
|
+
method: 'get',
|
|
143
|
+
path: '/v2/assetId/:assetId',
|
|
144
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
145
|
+
requestFormat: 'json',
|
|
146
|
+
parameters: {
|
|
147
|
+
assetId: zod_1.z.number().int(),
|
|
148
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
149
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
150
|
+
AssetType: zod_1.z.string(),
|
|
151
|
+
Accept: zod_1.z.string(),
|
|
152
|
+
AssetFormat: zod_1.z.string(),
|
|
153
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
154
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
155
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
156
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
157
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
158
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
159
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
160
|
+
},
|
|
161
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
162
|
+
errors: [],
|
|
163
|
+
};
|
|
164
|
+
exports.getV2assetIdAssetIdversionVersion = {
|
|
165
|
+
method: 'get',
|
|
166
|
+
path: '/v2/assetId/:assetId/version/:version',
|
|
167
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
168
|
+
requestFormat: 'json',
|
|
169
|
+
parameters: {
|
|
170
|
+
assetId: zod_1.z.number().int(),
|
|
171
|
+
version: zod_1.z.number().int(),
|
|
172
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
173
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
174
|
+
AssetType: zod_1.z.string(),
|
|
175
|
+
Accept: zod_1.z.string(),
|
|
176
|
+
AssetFormat: zod_1.z.string(),
|
|
177
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
178
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
179
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
180
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
181
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
182
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
183
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
184
|
+
},
|
|
185
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
186
|
+
errors: [],
|
|
187
|
+
};
|
|
188
|
+
exports.postV2assetsbatch = {
|
|
189
|
+
method: 'post',
|
|
190
|
+
path: '/v2/assets/batch',
|
|
191
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
192
|
+
requestFormat: 'json',
|
|
193
|
+
parameters: {
|
|
194
|
+
body: zod_1.z.array(Roblox_Web_Assets_BatchAssetRequestItem),
|
|
195
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
196
|
+
Accept: zod_1.z.string(),
|
|
197
|
+
'Roblox-Browser-Asset-Request': zod_1.z.string(),
|
|
198
|
+
},
|
|
199
|
+
response: zod_1.z.array(Roblox_Web_Assets_IAssetResponseItemV2),
|
|
200
|
+
errors: [],
|
|
201
|
+
};
|
|
202
|
+
exports.getV2assetVersionIdAssetVersionId = {
|
|
203
|
+
method: 'get',
|
|
204
|
+
path: '/v2/assetVersionId/:assetVersionId',
|
|
205
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
206
|
+
requestFormat: 'json',
|
|
207
|
+
parameters: {
|
|
208
|
+
assetVersionId: zod_1.z.number().int(),
|
|
209
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
210
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
211
|
+
AssetType: zod_1.z.string(),
|
|
212
|
+
Accept: zod_1.z.string(),
|
|
213
|
+
AssetFormat: zod_1.z.string(),
|
|
214
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
215
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
216
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
217
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
218
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
219
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
220
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
221
|
+
},
|
|
222
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
223
|
+
errors: [],
|
|
224
|
+
};
|
|
225
|
+
exports.getV2marAssetHashMarAssetHashmarCheckSumMarCheckSum = {
|
|
226
|
+
method: 'get',
|
|
227
|
+
path: '/v2/marAssetHash/:marAssetHash/marCheckSum/:marCheckSum',
|
|
228
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
229
|
+
requestFormat: 'json',
|
|
230
|
+
parameters: {
|
|
231
|
+
marAssetHash: zod_1.z.string(),
|
|
232
|
+
marCheckSum: zod_1.z.string(),
|
|
233
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
234
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
235
|
+
AssetType: zod_1.z.string(),
|
|
236
|
+
Accept: zod_1.z.string(),
|
|
237
|
+
AssetFormat: zod_1.z.string(),
|
|
238
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
239
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
240
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
241
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
242
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
243
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
244
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
245
|
+
},
|
|
246
|
+
response: Roblox_Web_Assets_IAssetResponseItem,
|
|
247
|
+
errors: [],
|
|
248
|
+
};
|
|
249
|
+
exports.getV2userAssetIdUserAssetId = {
|
|
250
|
+
method: 'get',
|
|
251
|
+
path: '/v2/userAssetId/:userAssetId',
|
|
252
|
+
baseUrl: 'https://assetdelivery.roblox.com',
|
|
253
|
+
requestFormat: 'json',
|
|
254
|
+
parameters: {
|
|
255
|
+
userAssetId: zod_1.z.number().int(),
|
|
256
|
+
'Accept-Encoding': zod_1.z.string(),
|
|
257
|
+
'Roblox-Place-Id': zod_1.z.number().int(),
|
|
258
|
+
AssetType: zod_1.z.string(),
|
|
259
|
+
Accept: zod_1.z.string(),
|
|
260
|
+
AssetFormat: zod_1.z.string(),
|
|
261
|
+
'Roblox-AssetFormat': zod_1.z.string(),
|
|
262
|
+
skipSigningScripts: zod_1.z.boolean().optional(),
|
|
263
|
+
clientInsert: zod_1.z.number().int().optional(),
|
|
264
|
+
scriptinsert: zod_1.z.number().int().optional(),
|
|
265
|
+
modulePlaceId: zod_1.z.number().int().optional(),
|
|
266
|
+
serverplaceid: zod_1.z.number().int().optional(),
|
|
267
|
+
expectedAssetType: zod_1.z.string().optional(),
|
|
268
|
+
},
|
|
269
|
+
response: Roblox_Web_Assets_IAssetResponseItemV2,
|
|
270
|
+
errors: [],
|
|
271
|
+
};
|