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