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,792 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getV1usersUserIdbundlesBundleType = exports.getV1usersUserIdbundles = exports.postV1topicgetTopics = exports.getV1subcategories = exports.getV1favoritesusersUserIdfavoritesSubtypeIdbundles = exports.postV1favoritesusersUserIdbundlesBundleIdfavorite = exports.getV1favoritesusersUserIdbundlesBundleIdfavorite = exports.deleteV1favoritesusersUserIdbundlesBundleIdfavorite = exports.postV1favoritesusersUserIdassetsAssetIdfavorite = exports.getV1favoritesusersUserIdassetsAssetIdfavorite = exports.deleteV1favoritesusersUserIdassetsAssetIdfavorite = exports.getV1favoritesbundlesBundleIdcount = exports.getV1favoritesassetsAssetIdcount = exports.getV1categories = exports.postV1catalogitemsdetails = exports.getV1bundlesdetails = exports.postV1bundlesBundleIdunpack = exports.getV1bundlesBundleIdrecommendations = exports.getV1bundlesBundleIddetails = exports.getV1assetsAssetIdbundles = exports.getV1assetToSubcategory = exports.getV1assetToCategory = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_Catalog_Api_BundleItemDetailModel = zod_1.z
6
+ .object({
7
+ owned: zod_1.z.boolean(),
8
+ id: zod_1.z.number().int(),
9
+ name: zod_1.z.string(),
10
+ type: zod_1.z.string(),
11
+ })
12
+ .partial();
13
+ var Roblox_Catalog_Api_BundleCreatorModel = zod_1.z
14
+ .object({
15
+ id: zod_1.z.number().int(),
16
+ name: zod_1.z.string(),
17
+ type: zod_1.z.string(),
18
+ hasVerifiedBadge: zod_1.z.boolean(),
19
+ })
20
+ .partial();
21
+ var Roblox_Catalog_Api_PremiumPricingModel = zod_1.z
22
+ .object({
23
+ premiumDiscountPercentage: zod_1.z.number().int(),
24
+ premiumPriceInRobux: zod_1.z.number().int(),
25
+ })
26
+ .partial();
27
+ var Roblox_Catalog_Api_BundleProductModel = zod_1.z
28
+ .object({
29
+ id: zod_1.z.number().int(),
30
+ type: zod_1.z.string(),
31
+ isPublicDomain: zod_1.z.boolean(),
32
+ isForSale: zod_1.z.boolean(),
33
+ priceInRobux: zod_1.z.number().int(),
34
+ isFree: zod_1.z.boolean(),
35
+ noPriceText: zod_1.z.string(),
36
+ premiumPricing: Roblox_Catalog_Api_PremiumPricingModel,
37
+ })
38
+ .partial();
39
+ var Roblox_Catalog_Api_BundleDetailsModel = zod_1.z
40
+ .object({
41
+ id: zod_1.z.number().int(),
42
+ name: zod_1.z.string(),
43
+ description: zod_1.z.string(),
44
+ bundleType: zod_1.z.string(),
45
+ items: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModel),
46
+ creator: Roblox_Catalog_Api_BundleCreatorModel,
47
+ product: Roblox_Catalog_Api_BundleProductModel,
48
+ itemRestrictions: zod_1.z.array(zod_1.z.union([
49
+ zod_1.z.literal(1),
50
+ zod_1.z.literal(2),
51
+ zod_1.z.literal(3),
52
+ zod_1.z.literal(4),
53
+ zod_1.z.literal(5),
54
+ zod_1.z.literal(6),
55
+ zod_1.z.literal(7),
56
+ zod_1.z.literal(8),
57
+ zod_1.z.literal(9),
58
+ ])),
59
+ })
60
+ .partial();
61
+ var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_BundleDetailsModel_ = zod_1.z
62
+ .object({
63
+ previousPageCursor: zod_1.z.string(),
64
+ nextPageCursor: zod_1.z.string(),
65
+ data: zod_1.z.array(Roblox_Catalog_Api_BundleDetailsModel),
66
+ })
67
+ .partial();
68
+ var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_BundleDetailsModel_ = zod_1.z
69
+ .object({ data: zod_1.z.array(Roblox_Catalog_Api_BundleDetailsModel) })
70
+ .partial();
71
+ var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
72
+ var Roblox_Catalog_Api_AssetFavoriteModel = zod_1.z
73
+ .object({
74
+ assetId: zod_1.z.number().int(),
75
+ userId: zod_1.z.number().int(),
76
+ created: zod_1.z.string().datetime(),
77
+ })
78
+ .partial();
79
+ var Roblox_Catalog_Api_BundleFavoriteModel = zod_1.z
80
+ .object({
81
+ bundleId: zod_1.z.number().int(),
82
+ userId: zod_1.z.number().int(),
83
+ created: zod_1.z.string().datetime(),
84
+ })
85
+ .partial();
86
+ var Roblox_Catalog_Api_FavoriteBundlesResponse = zod_1.z
87
+ .object({
88
+ favorites: zod_1.z.array(Roblox_Catalog_Api_BundleDetailsModel),
89
+ moreFavorites: zod_1.z.boolean(),
90
+ })
91
+ .partial();
92
+ var Roblox_Catalog_Api_OwnedBundleModel = zod_1.z
93
+ .object({
94
+ id: zod_1.z.number().int(),
95
+ name: zod_1.z.string(),
96
+ bundleType: zod_1.z.string(),
97
+ creator: Roblox_Catalog_Api_BundleCreatorModel,
98
+ })
99
+ .partial();
100
+ var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_OwnedBundleModel_ = zod_1.z
101
+ .object({
102
+ previousPageCursor: zod_1.z.string(),
103
+ nextPageCursor: zod_1.z.string(),
104
+ data: zod_1.z.array(Roblox_Catalog_Api_OwnedBundleModel),
105
+ })
106
+ .partial();
107
+ var Roblox_Catalog_Api_MultigetItemDetailsRequestItem = zod_1.z
108
+ .object({
109
+ itemType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
110
+ id: zod_1.z.number().int(),
111
+ })
112
+ .partial();
113
+ var Roblox_Catalog_Api_MultigetItemDetailsRequestModel = zod_1.z
114
+ .object({ items: zod_1.z.array(Roblox_Catalog_Api_MultigetItemDetailsRequestItem) })
115
+ .partial();
116
+ var Roblox_Catalog_Api_CatalogSearchDetailedResponseItem = zod_1.z
117
+ .object({
118
+ id: zod_1.z.number().int(),
119
+ itemType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
120
+ assetType: zod_1.z.union([
121
+ zod_1.z.literal(1),
122
+ zod_1.z.literal(2),
123
+ zod_1.z.literal(3),
124
+ zod_1.z.literal(4),
125
+ zod_1.z.literal(5),
126
+ zod_1.z.literal(6),
127
+ zod_1.z.literal(7),
128
+ zod_1.z.literal(8),
129
+ zod_1.z.literal(9),
130
+ zod_1.z.literal(10),
131
+ zod_1.z.literal(11),
132
+ zod_1.z.literal(12),
133
+ zod_1.z.literal(13),
134
+ zod_1.z.literal(16),
135
+ zod_1.z.literal(17),
136
+ zod_1.z.literal(18),
137
+ zod_1.z.literal(19),
138
+ zod_1.z.literal(21),
139
+ zod_1.z.literal(22),
140
+ zod_1.z.literal(24),
141
+ zod_1.z.literal(25),
142
+ zod_1.z.literal(26),
143
+ zod_1.z.literal(27),
144
+ zod_1.z.literal(28),
145
+ zod_1.z.literal(29),
146
+ zod_1.z.literal(30),
147
+ zod_1.z.literal(31),
148
+ zod_1.z.literal(32),
149
+ zod_1.z.literal(33),
150
+ zod_1.z.literal(34),
151
+ zod_1.z.literal(35),
152
+ zod_1.z.literal(37),
153
+ zod_1.z.literal(38),
154
+ zod_1.z.literal(39),
155
+ zod_1.z.literal(40),
156
+ zod_1.z.literal(41),
157
+ zod_1.z.literal(42),
158
+ zod_1.z.literal(43),
159
+ zod_1.z.literal(44),
160
+ zod_1.z.literal(45),
161
+ zod_1.z.literal(46),
162
+ zod_1.z.literal(47),
163
+ zod_1.z.literal(48),
164
+ zod_1.z.literal(49),
165
+ zod_1.z.literal(50),
166
+ zod_1.z.literal(51),
167
+ zod_1.z.literal(52),
168
+ zod_1.z.literal(53),
169
+ zod_1.z.literal(54),
170
+ zod_1.z.literal(55),
171
+ zod_1.z.literal(56),
172
+ zod_1.z.literal(59),
173
+ zod_1.z.literal(60),
174
+ zod_1.z.literal(61),
175
+ zod_1.z.literal(62),
176
+ zod_1.z.literal(63),
177
+ zod_1.z.literal(64),
178
+ zod_1.z.literal(65),
179
+ zod_1.z.literal(66),
180
+ zod_1.z.literal(67),
181
+ zod_1.z.literal(68),
182
+ zod_1.z.literal(69),
183
+ zod_1.z.literal(70),
184
+ zod_1.z.literal(71),
185
+ zod_1.z.literal(72),
186
+ zod_1.z.literal(73),
187
+ zod_1.z.literal(74),
188
+ zod_1.z.literal(75),
189
+ zod_1.z.literal(76),
190
+ zod_1.z.literal(77),
191
+ zod_1.z.literal(78),
192
+ zod_1.z.literal(79),
193
+ zod_1.z.literal(80),
194
+ ]),
195
+ bundleType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
196
+ name: zod_1.z.string(),
197
+ description: zod_1.z.string(),
198
+ productId: zod_1.z.number().int(),
199
+ genres: zod_1.z.array(zod_1.z.union([
200
+ zod_1.z.literal(0),
201
+ zod_1.z.literal(1),
202
+ zod_1.z.literal(2),
203
+ zod_1.z.literal(3),
204
+ zod_1.z.literal(4),
205
+ zod_1.z.literal(5),
206
+ zod_1.z.literal(6),
207
+ zod_1.z.literal(7),
208
+ zod_1.z.literal(8),
209
+ zod_1.z.literal(9),
210
+ zod_1.z.literal(10),
211
+ zod_1.z.literal(11),
212
+ zod_1.z.literal(12),
213
+ zod_1.z.literal(13),
214
+ zod_1.z.literal(14),
215
+ ])),
216
+ bundledItems: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModel),
217
+ itemStatus: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(7)])),
218
+ itemRestrictions: zod_1.z.array(zod_1.z.union([
219
+ zod_1.z.literal(1),
220
+ zod_1.z.literal(2),
221
+ zod_1.z.literal(3),
222
+ zod_1.z.literal(4),
223
+ zod_1.z.literal(5),
224
+ zod_1.z.literal(6),
225
+ zod_1.z.literal(7),
226
+ zod_1.z.literal(8),
227
+ zod_1.z.literal(9),
228
+ ])),
229
+ creatorHasVerifiedBadge: zod_1.z.boolean(),
230
+ creatorType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
231
+ creatorTargetId: zod_1.z.number().int(),
232
+ creatorName: zod_1.z.string(),
233
+ price: zod_1.z.number().int(),
234
+ premiumPricing: Roblox_Catalog_Api_PremiumPricingModel,
235
+ lowestPrice: zod_1.z.number().int(),
236
+ priceStatus: zod_1.z.string(),
237
+ unitsAvailableForConsumption: zod_1.z.number().int(),
238
+ purchaseCount: zod_1.z.number().int(),
239
+ favoriteCount: zod_1.z.number().int(),
240
+ offSaleDeadline: zod_1.z.string().datetime(),
241
+ collectibleItemId: zod_1.z.string(),
242
+ totalQuantity: zod_1.z.number().int(),
243
+ saleLocationType: zod_1.z.union([
244
+ zod_1.z.literal(0),
245
+ zod_1.z.literal(1),
246
+ zod_1.z.literal(2),
247
+ zod_1.z.literal(3),
248
+ zod_1.z.literal(4),
249
+ zod_1.z.literal(5),
250
+ zod_1.z.literal(6),
251
+ ]),
252
+ hasResellers: zod_1.z.boolean(),
253
+ isOffSale: zod_1.z.boolean(),
254
+ })
255
+ .partial();
256
+ var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_ = zod_1.z
257
+ .object({
258
+ data: zod_1.z.array(Roblox_Catalog_Api_CatalogSearchDetailedResponseItem),
259
+ })
260
+ .partial();
261
+ var Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_AvatarItem = zod_1.z
262
+ .object({
263
+ TargetId: zod_1.z.number().int(),
264
+ ItemType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
265
+ })
266
+ .partial();
267
+ var Roblox_Catalog_Api_Topics_TopicRequestModel = zod_1.z
268
+ .object({
269
+ items: zod_1.z.array(Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_AvatarItem),
270
+ selectTopics: zod_1.z.array(zod_1.z.string()),
271
+ inputQuery: zod_1.z.string(),
272
+ maxResult: zod_1.z.number().int(),
273
+ genderType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
274
+ })
275
+ .partial();
276
+ var Roblox_Catalog_Api_Topics_TopicModel = zod_1.z
277
+ .object({ displayName: zod_1.z.string(), originalTopicName: zod_1.z.string() })
278
+ .partial();
279
+ var Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_Error = zod_1.z
280
+ .object({ Message: zod_1.z.string(), Code: zod_1.z.number().int() })
281
+ .partial();
282
+ var Roblox_Catalog_Api_Topics_TopicResponse = zod_1.z
283
+ .object({
284
+ topics: zod_1.z.array(Roblox_Catalog_Api_Topics_TopicModel),
285
+ error: Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_Error,
286
+ })
287
+ .partial();
288
+ var schemas = {
289
+ Roblox_Catalog_Api_BundleItemDetailModel: Roblox_Catalog_Api_BundleItemDetailModel,
290
+ Roblox_Catalog_Api_BundleCreatorModel: Roblox_Catalog_Api_BundleCreatorModel,
291
+ Roblox_Catalog_Api_PremiumPricingModel: Roblox_Catalog_Api_PremiumPricingModel,
292
+ Roblox_Catalog_Api_BundleProductModel: Roblox_Catalog_Api_BundleProductModel,
293
+ Roblox_Catalog_Api_BundleDetailsModel: Roblox_Catalog_Api_BundleDetailsModel,
294
+ Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_BundleDetailsModel_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_BundleDetailsModel_,
295
+ Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_BundleDetailsModel_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_BundleDetailsModel_,
296
+ Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
297
+ Roblox_Catalog_Api_AssetFavoriteModel: Roblox_Catalog_Api_AssetFavoriteModel,
298
+ Roblox_Catalog_Api_BundleFavoriteModel: Roblox_Catalog_Api_BundleFavoriteModel,
299
+ Roblox_Catalog_Api_FavoriteBundlesResponse: Roblox_Catalog_Api_FavoriteBundlesResponse,
300
+ Roblox_Catalog_Api_OwnedBundleModel: Roblox_Catalog_Api_OwnedBundleModel,
301
+ Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_OwnedBundleModel_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_OwnedBundleModel_,
302
+ Roblox_Catalog_Api_MultigetItemDetailsRequestItem: Roblox_Catalog_Api_MultigetItemDetailsRequestItem,
303
+ Roblox_Catalog_Api_MultigetItemDetailsRequestModel: Roblox_Catalog_Api_MultigetItemDetailsRequestModel,
304
+ Roblox_Catalog_Api_CatalogSearchDetailedResponseItem: Roblox_Catalog_Api_CatalogSearchDetailedResponseItem,
305
+ Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_,
306
+ Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_AvatarItem: Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_AvatarItem,
307
+ Roblox_Catalog_Api_Topics_TopicRequestModel: Roblox_Catalog_Api_Topics_TopicRequestModel,
308
+ Roblox_Catalog_Api_Topics_TopicModel: Roblox_Catalog_Api_Topics_TopicModel,
309
+ Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_Error: Roblox_Marketplacetopicdiscovery_Topicdiscoveryservice_V1Beta1_Error,
310
+ Roblox_Catalog_Api_Topics_TopicResponse: Roblox_Catalog_Api_Topics_TopicResponse,
311
+ };
312
+ exports.getV1assetToCategory = {
313
+ method: 'get',
314
+ path: '/v1/asset-to-category',
315
+ baseUrl: 'https://catalog.roblox.com',
316
+ requestFormat: 'json',
317
+ response: zod_1.z.record(zod_1.z.number()),
318
+ errors: [],
319
+ };
320
+ exports.getV1assetToSubcategory = {
321
+ method: 'get',
322
+ path: '/v1/asset-to-subcategory',
323
+ baseUrl: 'https://catalog.roblox.com',
324
+ requestFormat: 'json',
325
+ response: zod_1.z.record(zod_1.z.number()),
326
+ errors: [],
327
+ };
328
+ exports.getV1assetsAssetIdbundles = {
329
+ method: 'get',
330
+ path: '/v1/assets/:assetId/bundles',
331
+ baseUrl: 'https://catalog.roblox.com',
332
+ requestFormat: 'json',
333
+ parameters: {
334
+ assetId: zod_1.z.number().int(),
335
+ limit: zod_1.z
336
+ .union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
337
+ .optional()
338
+ .default(10),
339
+ cursor: zod_1.z.string().optional(),
340
+ sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
341
+ },
342
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_BundleDetailsModel_,
343
+ errors: [
344
+ {
345
+ status: 400,
346
+ description: "1: Invalid assetId\n4: Invalid Cursor.",
347
+ schema: zod_1.z.void(),
348
+ },
349
+ ],
350
+ };
351
+ exports.getV1bundlesBundleIddetails = {
352
+ method: 'get',
353
+ path: '/v1/bundles/:bundleId/details',
354
+ baseUrl: 'https://catalog.roblox.com',
355
+ requestFormat: 'json',
356
+ parameters: {
357
+ bundleId: zod_1.z.number().int(),
358
+ },
359
+ response: Roblox_Catalog_Api_BundleDetailsModel,
360
+ errors: [
361
+ {
362
+ status: 400,
363
+ description: "1: Invalid bundle",
364
+ schema: zod_1.z.void(),
365
+ },
366
+ ],
367
+ };
368
+ exports.getV1bundlesBundleIdrecommendations = {
369
+ method: 'get',
370
+ path: '/v1/bundles/:bundleId/recommendations',
371
+ baseUrl: 'https://catalog.roblox.com',
372
+ requestFormat: 'json',
373
+ parameters: {
374
+ bundleId: zod_1.z.number().int(),
375
+ numItems: zod_1.z.number().int().optional().default(20),
376
+ },
377
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_BundleDetailsModel_,
378
+ errors: [
379
+ {
380
+ status: 400,
381
+ description: "1: Invalid bundle\n2: Error retrieving bundles\n3: Error getting bundle recommendations\n4: NumItems exceed maximum",
382
+ schema: zod_1.z.void(),
383
+ },
384
+ ],
385
+ };
386
+ exports.postV1bundlesBundleIdunpack = {
387
+ method: 'post',
388
+ path: '/v1/bundles/:bundleId/unpack',
389
+ baseUrl: 'https://catalog.roblox.com',
390
+ requestFormat: 'json',
391
+ parameters: {
392
+ bundleId: zod_1.z.number().int(),
393
+ },
394
+ response: zod_1.z.void(),
395
+ errors: [
396
+ {
397
+ status: 400,
398
+ description: "1: Invalid bundle\n2: Bundle is not owned",
399
+ schema: zod_1.z.void(),
400
+ },
401
+ {
402
+ status: 401,
403
+ description: "0: Authorization has been denied for this request.",
404
+ schema: zod_1.z.void(),
405
+ },
406
+ {
407
+ status: 403,
408
+ description: "0: Token Validation Failed",
409
+ schema: zod_1.z.void(),
410
+ },
411
+ ],
412
+ };
413
+ exports.getV1bundlesdetails = {
414
+ method: 'get',
415
+ path: '/v1/bundles/details',
416
+ baseUrl: 'https://catalog.roblox.com',
417
+ requestFormat: 'json',
418
+ parameters: {
419
+ bundleIds: zod_1.z.array(zod_1.z.number()),
420
+ },
421
+ response: zod_1.z.array(Roblox_Catalog_Api_BundleDetailsModel),
422
+ errors: [
423
+ {
424
+ status: 400,
425
+ description: "2: Invalid collection of bundleIds\n3: Cannot request so many bundles at once.",
426
+ schema: zod_1.z.void(),
427
+ },
428
+ ],
429
+ };
430
+ exports.postV1catalogitemsdetails = {
431
+ method: 'post',
432
+ path: '/v1/catalog/items/details',
433
+ baseUrl: 'https://catalog.roblox.com',
434
+ requestFormat: 'json',
435
+ parameters: {
436
+ body: Roblox_Catalog_Api_MultigetItemDetailsRequestModel,
437
+ },
438
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_,
439
+ errors: [
440
+ {
441
+ status: 400,
442
+ description: "2: Invalid count",
443
+ schema: zod_1.z.void(),
444
+ },
445
+ {
446
+ status: 403,
447
+ description: "0: Token Validation Failed\n7: User is unauthorized.",
448
+ schema: zod_1.z.void(),
449
+ },
450
+ {
451
+ status: 429,
452
+ description: "8: The flood limit has been exceeded.",
453
+ schema: zod_1.z.void(),
454
+ },
455
+ ],
456
+ };
457
+ exports.getV1categories = {
458
+ method: 'get',
459
+ path: '/v1/categories',
460
+ baseUrl: 'https://catalog.roblox.com',
461
+ requestFormat: 'json',
462
+ response: zod_1.z.record(zod_1.z.number()),
463
+ errors: [],
464
+ };
465
+ exports.getV1favoritesassetsAssetIdcount = {
466
+ method: 'get',
467
+ path: '/v1/favorites/assets/:assetId/count',
468
+ baseUrl: 'https://catalog.roblox.com',
469
+ requestFormat: 'json',
470
+ parameters: {
471
+ assetId: zod_1.z.number().int(),
472
+ },
473
+ response: zod_1.z.number(),
474
+ errors: [
475
+ {
476
+ status: 400,
477
+ description: "2: Invalid asset Id.",
478
+ schema: zod_1.z.void(),
479
+ },
480
+ ],
481
+ };
482
+ exports.getV1favoritesbundlesBundleIdcount = {
483
+ method: 'get',
484
+ path: '/v1/favorites/bundles/:bundleId/count',
485
+ baseUrl: 'https://catalog.roblox.com',
486
+ requestFormat: 'json',
487
+ parameters: {
488
+ bundleId: zod_1.z.number().int(),
489
+ },
490
+ response: zod_1.z.number(),
491
+ errors: [
492
+ {
493
+ status: 400,
494
+ description: "2: Invalid bundle Id.",
495
+ schema: zod_1.z.void(),
496
+ },
497
+ ],
498
+ };
499
+ exports.deleteV1favoritesusersUserIdassetsAssetIdfavorite = {
500
+ method: 'delete',
501
+ path: '/v1/favorites/users/:userId/assets/:assetId/favorite',
502
+ baseUrl: 'https://catalog.roblox.com',
503
+ requestFormat: 'json',
504
+ parameters: {
505
+ userId: zod_1.z.number().int(),
506
+ assetId: zod_1.z.number().int(),
507
+ },
508
+ response: zod_1.z.object({}).partial(),
509
+ errors: [
510
+ {
511
+ status: 400,
512
+ description: "1: Invalid user Id.\n2: Invalid asset Id.",
513
+ schema: zod_1.z.void(),
514
+ },
515
+ {
516
+ status: 401,
517
+ description: "0: Authorization has been denied for this request.",
518
+ schema: zod_1.z.void(),
519
+ },
520
+ {
521
+ status: 403,
522
+ description: "0: Token Validation Failed\n6: You are not authorized to perform this action.",
523
+ schema: zod_1.z.void(),
524
+ },
525
+ {
526
+ status: 409,
527
+ description: "4: Asset is already not favorited.",
528
+ schema: zod_1.z.void(),
529
+ },
530
+ {
531
+ status: 429,
532
+ description: "5: This action was floodchecked. Please try again later.",
533
+ schema: zod_1.z.void(),
534
+ },
535
+ ],
536
+ };
537
+ exports.getV1favoritesusersUserIdassetsAssetIdfavorite = {
538
+ method: 'get',
539
+ path: '/v1/favorites/users/:userId/assets/:assetId/favorite',
540
+ baseUrl: 'https://catalog.roblox.com',
541
+ requestFormat: 'json',
542
+ parameters: {
543
+ userId: zod_1.z.number().int(),
544
+ assetId: zod_1.z.number().int(),
545
+ },
546
+ response: Roblox_Catalog_Api_AssetFavoriteModel,
547
+ errors: [
548
+ {
549
+ status: 400,
550
+ description: "1: Invalid user Id.\n2: Invalid asset Id.",
551
+ schema: zod_1.z.void(),
552
+ },
553
+ {
554
+ status: 401,
555
+ description: "0: Authorization has been denied for this request.",
556
+ schema: zod_1.z.void(),
557
+ },
558
+ ],
559
+ };
560
+ exports.postV1favoritesusersUserIdassetsAssetIdfavorite = {
561
+ method: 'post',
562
+ path: '/v1/favorites/users/:userId/assets/:assetId/favorite',
563
+ baseUrl: 'https://catalog.roblox.com',
564
+ requestFormat: 'json',
565
+ parameters: {
566
+ userId: zod_1.z.number().int(),
567
+ assetId: zod_1.z.number().int(),
568
+ },
569
+ response: zod_1.z.object({}).partial(),
570
+ errors: [
571
+ {
572
+ status: 400,
573
+ description: "1: Invalid user Id.\n2: Invalid asset Id.",
574
+ schema: zod_1.z.void(),
575
+ },
576
+ {
577
+ status: 401,
578
+ description: "0: Authorization has been denied for this request.",
579
+ schema: zod_1.z.void(),
580
+ },
581
+ {
582
+ status: 403,
583
+ description: "0: Token Validation Failed\n6: You are not authorized to perform this action.",
584
+ schema: zod_1.z.void(),
585
+ },
586
+ {
587
+ status: 409,
588
+ description: "3: Asset is already favorited.",
589
+ schema: zod_1.z.void(),
590
+ },
591
+ {
592
+ status: 429,
593
+ description: "5: This action was floodchecked. Please try again later.",
594
+ schema: zod_1.z.void(),
595
+ },
596
+ ],
597
+ };
598
+ exports.deleteV1favoritesusersUserIdbundlesBundleIdfavorite = {
599
+ method: 'delete',
600
+ path: '/v1/favorites/users/:userId/bundles/:bundleId/favorite',
601
+ baseUrl: 'https://catalog.roblox.com',
602
+ requestFormat: 'json',
603
+ parameters: {
604
+ userId: zod_1.z.number().int(),
605
+ bundleId: zod_1.z.number().int(),
606
+ },
607
+ response: zod_1.z.object({}).partial(),
608
+ errors: [
609
+ {
610
+ status: 400,
611
+ description: "1: Invalid user Id.\n2: Invalid bundle Id.",
612
+ schema: zod_1.z.void(),
613
+ },
614
+ {
615
+ status: 401,
616
+ description: "0: Authorization has been denied for this request.",
617
+ schema: zod_1.z.void(),
618
+ },
619
+ {
620
+ status: 403,
621
+ description: "0: Token Validation Failed\n6: You are not authorized to perform this action.",
622
+ schema: zod_1.z.void(),
623
+ },
624
+ {
625
+ status: 409,
626
+ description: "4: Bundle is already not favorited.",
627
+ schema: zod_1.z.void(),
628
+ },
629
+ {
630
+ status: 429,
631
+ description: "5: This action was floodchecked. Please try again later.",
632
+ schema: zod_1.z.void(),
633
+ },
634
+ ],
635
+ };
636
+ exports.getV1favoritesusersUserIdbundlesBundleIdfavorite = {
637
+ method: 'get',
638
+ path: '/v1/favorites/users/:userId/bundles/:bundleId/favorite',
639
+ baseUrl: 'https://catalog.roblox.com',
640
+ requestFormat: 'json',
641
+ parameters: {
642
+ userId: zod_1.z.number().int(),
643
+ bundleId: zod_1.z.number().int(),
644
+ },
645
+ response: Roblox_Catalog_Api_BundleFavoriteModel,
646
+ errors: [
647
+ {
648
+ status: 400,
649
+ description: "1: Invalid user Id.\n2: Invalid bundle Id.",
650
+ schema: zod_1.z.void(),
651
+ },
652
+ {
653
+ status: 401,
654
+ description: "0: Authorization has been denied for this request.",
655
+ schema: zod_1.z.void(),
656
+ },
657
+ ],
658
+ };
659
+ exports.postV1favoritesusersUserIdbundlesBundleIdfavorite = {
660
+ method: 'post',
661
+ path: '/v1/favorites/users/:userId/bundles/:bundleId/favorite',
662
+ baseUrl: 'https://catalog.roblox.com',
663
+ requestFormat: 'json',
664
+ parameters: {
665
+ userId: zod_1.z.number().int(),
666
+ bundleId: zod_1.z.number().int(),
667
+ },
668
+ response: zod_1.z.object({}).partial(),
669
+ errors: [
670
+ {
671
+ status: 400,
672
+ description: "1: Invalid user Id.\n2: Invalid bundle Id.",
673
+ schema: zod_1.z.void(),
674
+ },
675
+ {
676
+ status: 401,
677
+ description: "0: Authorization has been denied for this request.",
678
+ schema: zod_1.z.void(),
679
+ },
680
+ {
681
+ status: 403,
682
+ description: "0: Token Validation Failed\n6: You are not authorized to perform this action.",
683
+ schema: zod_1.z.void(),
684
+ },
685
+ {
686
+ status: 409,
687
+ description: "3: Bundle is already favorited.",
688
+ schema: zod_1.z.void(),
689
+ },
690
+ {
691
+ status: 429,
692
+ description: "5: This action was floodchecked. Please try again later.",
693
+ schema: zod_1.z.void(),
694
+ },
695
+ ],
696
+ };
697
+ exports.getV1favoritesusersUserIdfavoritesSubtypeIdbundles = {
698
+ method: 'get',
699
+ path: '/v1/favorites/users/:userId/favorites/:subtypeId/bundles',
700
+ baseUrl: 'https://catalog.roblox.com',
701
+ requestFormat: 'json',
702
+ parameters: {
703
+ userId: zod_1.z.number().int(),
704
+ subtypeId: zod_1.z.number().int(),
705
+ pageNumber: zod_1.z.number().int().optional().default(1),
706
+ itemsPerPage: zod_1.z.number().int().optional().default(24),
707
+ },
708
+ response: Roblox_Catalog_Api_FavoriteBundlesResponse,
709
+ errors: [
710
+ {
711
+ status: 400,
712
+ description: "1: Invalid user Id.",
713
+ schema: zod_1.z.void(),
714
+ },
715
+ {
716
+ status: 401,
717
+ description: "0: Authorization has been denied for this request.",
718
+ schema: zod_1.z.void(),
719
+ },
720
+ {
721
+ status: 403,
722
+ description: "6: You are not authorized to perform this action.\n8: Invalid page number",
723
+ schema: zod_1.z.void(),
724
+ },
725
+ ],
726
+ };
727
+ exports.getV1subcategories = {
728
+ method: 'get',
729
+ path: '/v1/subcategories',
730
+ baseUrl: 'https://catalog.roblox.com',
731
+ requestFormat: 'json',
732
+ response: zod_1.z.record(zod_1.z.number()),
733
+ errors: [],
734
+ };
735
+ exports.postV1topicgetTopics = {
736
+ method: 'post',
737
+ path: '/v1/topic/get-topics',
738
+ baseUrl: 'https://catalog.roblox.com',
739
+ requestFormat: 'json',
740
+ parameters: {
741
+ body: Roblox_Catalog_Api_Topics_TopicRequestModel,
742
+ },
743
+ response: Roblox_Catalog_Api_Topics_TopicResponse,
744
+ errors: [
745
+ {
746
+ status: 403,
747
+ description: "0: Token Validation Failed",
748
+ schema: zod_1.z.void(),
749
+ },
750
+ ],
751
+ };
752
+ exports.getV1usersUserIdbundles = {
753
+ method: 'get',
754
+ path: '/v1/users/:userId/bundles',
755
+ baseUrl: 'https://catalog.roblox.com',
756
+ requestFormat: 'json',
757
+ parameters: {
758
+ userId: zod_1.z.number().int(),
759
+ limit: zod_1.z
760
+ .union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
761
+ .optional()
762
+ .default(10),
763
+ cursor: zod_1.z.string().optional(),
764
+ sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
765
+ },
766
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_OwnedBundleModel_,
767
+ errors: [
768
+ {
769
+ status: 400,
770
+ description: "1: Invalid bundle",
771
+ schema: zod_1.z.void(),
772
+ },
773
+ ],
774
+ };
775
+ exports.getV1usersUserIdbundlesBundleType = {
776
+ method: 'get',
777
+ path: '/v1/users/:userId/bundles/:bundleType',
778
+ baseUrl: 'https://catalog.roblox.com',
779
+ requestFormat: 'json',
780
+ parameters: {
781
+ userId: zod_1.z.number().int(),
782
+ bundleType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
783
+ limit: zod_1.z
784
+ .union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
785
+ .optional()
786
+ .default(10),
787
+ cursor: zod_1.z.string().optional(),
788
+ sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Desc'),
789
+ },
790
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_OwnedBundleModel_,
791
+ errors: [],
792
+ };