rozod 6.8.0 → 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.
Files changed (53) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +92 -95
  2. package/lib/endpoints/accountsettingsv1.d.ts +88 -110
  3. package/lib/endpoints/adconfigurationv2.d.ts +108 -215
  4. package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
  5. package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
  6. package/lib/endpoints/authv1.d.ts +479 -521
  7. package/lib/endpoints/authv2.d.ts +209 -221
  8. package/lib/endpoints/authv3.d.ts +32 -35
  9. package/lib/endpoints/avatarv1.d.ts +112 -117
  10. package/lib/endpoints/avatarv2.d.ts +71 -76
  11. package/lib/endpoints/avatarv3.d.ts +27 -33
  12. package/lib/endpoints/badgesv1.d.ts +92 -99
  13. package/lib/endpoints/catalogv1.d.ts +207 -233
  14. package/lib/endpoints/catalogv2.d.ts +81 -119
  15. package/lib/endpoints/clientsettingsv1.d.ts +33 -35
  16. package/lib/endpoints/clientsettingsv2.d.ts +62 -68
  17. package/lib/endpoints/contactsv1.d.ts +18 -20
  18. package/lib/endpoints/developv1.d.ts +230 -293
  19. package/lib/endpoints/developv2.d.ts +84 -137
  20. package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
  21. package/lib/endpoints/economyv1.d.ts +6 -6
  22. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  23. package/lib/endpoints/followingsv1.d.ts +33 -34
  24. package/lib/endpoints/followingsv2.d.ts +9 -9
  25. package/lib/endpoints/friendsv1.d.ts +200 -237
  26. package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
  27. package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
  28. package/lib/endpoints/gamesv1.d.ts +181 -143
  29. package/lib/endpoints/gamesv2.d.ts +161 -169
  30. package/lib/endpoints/groupsv1.d.ts +938 -988
  31. package/lib/endpoints/groupsv2.d.ts +259 -278
  32. package/lib/endpoints/inventoryv1.d.ts +91 -122
  33. package/lib/endpoints/inventoryv2.d.ts +163 -180
  34. package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
  35. package/lib/endpoints/localev1.d.ts +47 -48
  36. package/lib/endpoints/localizationtablesv1.d.ts +315 -353
  37. package/lib/endpoints/matchmakingv1.d.ts +184 -190
  38. package/lib/endpoints/notificationsv2.d.ts +144 -158
  39. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  40. package/lib/endpoints/presencev1.d.ts +7 -12
  41. package/lib/endpoints/privatemessagesv1.d.ts +56 -64
  42. package/lib/endpoints/publishv1.d.ts +32 -32
  43. package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
  44. package/lib/endpoints/thumbnailsv1.d.ts +325 -326
  45. package/lib/endpoints/thumbnailsv1.js +24 -24
  46. package/lib/endpoints/tradesv1.d.ts +92 -104
  47. package/lib/endpoints/tradesv2.d.ts +81 -84
  48. package/lib/endpoints/translationrolesv1.d.ts +46 -51
  49. package/lib/endpoints/twostepverificationv1.d.ts +233 -237
  50. package/lib/endpoints/usersv1.d.ts +110 -114
  51. package/lib/index.d.ts +56 -1
  52. package/lib/index.js +159 -3
  53. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
4
  const Roblox_Inventory_Api_Models_AssetIdListModel = z.object({
5
5
  assetIds: z.array(z.number()),
@@ -12,21 +12,14 @@ const Roblox_Inventory_Api_Models_CollectibleUserAssetModel = z.object({
12
12
  recentAveragePrice: z.number().int(),
13
13
  originalPrice: z.number().int(),
14
14
  assetStock: z.number().int(),
15
- buildersClubMembershipType: z.enum([
16
- "None",
17
- "BC",
18
- "TBC",
19
- "OBC",
20
- "RobloxPremium",
21
- ]),
15
+ buildersClubMembershipType: z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
22
16
  isOnHold: z.boolean(),
23
17
  });
24
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_CollectibleUserAssetModel_ =
25
- z.object({
26
- previousPageCursor: z.string(),
27
- nextPageCursor: z.string(),
28
- data: z.array(Roblox_Inventory_Api_Models_CollectibleUserAssetModel),
29
- });
18
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_CollectibleUserAssetModel_ = z.object({
19
+ previousPageCursor: z.string(),
20
+ nextPageCursor: z.string(),
21
+ data: z.array(Roblox_Inventory_Api_Models_CollectibleUserAssetModel),
22
+ });
30
23
  const Roblox_Inventory_Api_Models_CanViewInventoryResponse = z.object({
31
24
  canView: z.boolean(),
32
25
  });
@@ -35,7 +28,7 @@ const Roblox_Inventory_Api_Models_AssetsExplorerCategoryItemModel = z.object({
35
28
  displayName: z.string(),
36
29
  filter: z.string(),
37
30
  id: z.number().int(),
38
- type: z.enum(["AssetType", "Bundle", "Outfit", "Set", "Avatar"]),
31
+ type: z.enum(['AssetType', 'Bundle', 'Outfit', 'Set', 'Avatar']),
39
32
  categoryType: z.string(),
40
33
  });
41
34
  const Roblox_Inventory_Api_Models_AssetsExplorerCategoryModel = z.object({
@@ -50,19 +43,18 @@ const Roblox_Inventory_Api_Models_CategoriesModel = z.object({
50
43
  const Roblox_Inventory_Api_Models_IItemModel = z.object({
51
44
  id: z.number().int(),
52
45
  name: z.string(),
53
- type: z.enum(["Asset", "GamePass", "Badge", "Bundle", "Avatar"]),
46
+ type: z.enum(['Asset', 'GamePass', 'Badge', 'Bundle', 'Avatar']),
54
47
  instanceId: z.number().int(),
55
48
  });
56
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItemModel_ =
57
- z.object({
58
- previousPageCursor: z.string(),
59
- nextPageCursor: z.string(),
60
- data: z.array(Roblox_Inventory_Api_Models_IItemModel),
61
- });
49
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItemModel_ = z.object({
50
+ previousPageCursor: z.string(),
51
+ nextPageCursor: z.string(),
52
+ data: z.array(Roblox_Inventory_Api_Models_IItemModel),
53
+ });
62
54
  const Roblox_Inventory_Api_Models_CreatorModel = z.object({
63
55
  id: z.number().int(),
64
56
  name: z.string(),
65
- type: z.enum(["User", "Group", "Experience"]),
57
+ type: z.enum(['User', 'Group', 'Experience']),
66
58
  });
67
59
  const Roblox_Inventory_Api_Models_PlaceModel = z.object({
68
60
  universeId: z.number().int(),
@@ -71,12 +63,11 @@ const Roblox_Inventory_Api_Models_PlaceModel = z.object({
71
63
  creator: Roblox_Inventory_Api_Models_CreatorModel,
72
64
  priceInRobux: z.number().int(),
73
65
  });
74
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_PlaceModel_ =
75
- z.object({
76
- previousPageCursor: z.string(),
77
- nextPageCursor: z.string(),
78
- data: z.array(Roblox_Inventory_Api_Models_PlaceModel),
79
- });
66
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_PlaceModel_ = z.object({
67
+ previousPageCursor: z.string(),
68
+ nextPageCursor: z.string(),
69
+ data: z.array(Roblox_Inventory_Api_Models_PlaceModel),
70
+ });
80
71
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
81
72
 
82
73
  /**
@@ -86,16 +77,16 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
86
77
  * @param itemTargetId ID of the item
87
78
  */
88
79
  export const postCollectionsItemsItemtypeItemtargetid = endpoint({
89
- method: "POST",
90
- path: "/v1/collections/items/:itemType/:itemTargetId",
91
- baseUrl: "https://inventory.roblox.com",
92
- requestFormat: "json",
80
+ method: 'POST',
81
+ path: '/v1/collections/items/:itemType/:itemTargetId',
82
+ baseUrl: 'https://inventory.roblox.com',
83
+ requestFormat: 'json',
93
84
  serializationMethod: {
94
85
  itemType: {
95
- style: "simple",
86
+ style: 'simple',
96
87
  },
97
88
  itemTargetId: {
98
- style: "simple",
89
+ style: 'simple',
99
90
  },
100
91
  },
101
92
  parameters: {
@@ -132,16 +123,16 @@ export const postCollectionsItemsItemtypeItemtargetid = endpoint({
132
123
  * @param itemTargetId ID of the item
133
124
  */
134
125
  export const deleteCollectionsItemsItemtypeItemtargetid = endpoint({
135
- method: "DELETE",
136
- path: "/v1/collections/items/:itemType/:itemTargetId",
137
- baseUrl: "https://inventory.roblox.com",
138
- requestFormat: "json",
126
+ method: 'DELETE',
127
+ path: '/v1/collections/items/:itemType/:itemTargetId',
128
+ baseUrl: 'https://inventory.roblox.com',
129
+ requestFormat: 'json',
139
130
  serializationMethod: {
140
131
  itemType: {
141
- style: "simple",
132
+ style: 'simple',
142
133
  },
143
134
  itemTargetId: {
144
- style: "simple",
135
+ style: 'simple',
145
136
  },
146
137
  },
147
138
  parameters: {
@@ -173,13 +164,13 @@ export const deleteCollectionsItemsItemtypeItemtargetid = endpoint({
173
164
  * @param packageID The asset ID of the package
174
165
  */
175
166
  export const getPackagesPackageidAssets = endpoint({
176
- method: "GET",
177
- path: "/v1/packages/:packageId/assets",
178
- baseUrl: "https://inventory.roblox.com",
179
- requestFormat: "json",
167
+ method: 'GET',
168
+ path: '/v1/packages/:packageId/assets',
169
+ baseUrl: 'https://inventory.roblox.com',
170
+ requestFormat: 'json',
180
171
  serializationMethod: {
181
172
  packageID: {
182
- style: "simple",
173
+ style: 'simple',
183
174
  },
184
175
  },
185
176
  parameters: {
@@ -198,28 +189,28 @@ export const getPackagesPackageidAssets = endpoint({
198
189
  * @param sortOrder Sorted by userAssetId
199
190
  */
200
191
  export const getUsersUseridAssetsCollectibles = endpoint({
201
- method: "GET",
202
- path: "/v1/users/:userId/assets/collectibles",
203
- baseUrl: "https://inventory.roblox.com",
204
- requestFormat: "json",
192
+ method: 'GET',
193
+ path: '/v1/users/:userId/assets/collectibles',
194
+ baseUrl: 'https://inventory.roblox.com',
195
+ requestFormat: 'json',
205
196
  serializationMethod: {
206
197
  userId: {
207
- style: "simple",
198
+ style: 'simple',
208
199
  },
209
200
  assetType: {
210
- style: "form",
201
+ style: 'form',
211
202
  explode: true,
212
203
  },
213
204
  limit: {
214
- style: "form",
205
+ style: 'form',
215
206
  explode: true,
216
207
  },
217
208
  cursor: {
218
- style: "form",
209
+ style: 'form',
219
210
  explode: true,
220
211
  },
221
212
  sortOrder: {
222
- style: "form",
213
+ style: 'form',
223
214
  explode: true,
224
215
  },
225
216
  },
@@ -319,10 +310,9 @@ export const getUsersUseridAssetsCollectibles = endpoint({
319
310
  .optional()
320
311
  .default(10),
321
312
  cursor: z.string().optional(),
322
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
313
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
323
314
  },
324
- response:
325
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_CollectibleUserAssetModel_,
315
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_CollectibleUserAssetModel_,
326
316
  errors: [
327
317
  {
328
318
  status: 400,
@@ -340,13 +330,13 @@ export const getUsersUseridAssetsCollectibles = endpoint({
340
330
  * @param userId The user identifier.
341
331
  */
342
332
  export const getUsersUseridCanViewInventory = endpoint({
343
- method: "GET",
344
- path: "/v1/users/:userId/can-view-inventory",
345
- baseUrl: "https://inventory.roblox.com",
346
- requestFormat: "json",
333
+ method: 'GET',
334
+ path: '/v1/users/:userId/can-view-inventory',
335
+ baseUrl: 'https://inventory.roblox.com',
336
+ requestFormat: 'json',
347
337
  serializationMethod: {
348
338
  userId: {
349
- style: "simple",
339
+ style: 'simple',
350
340
  },
351
341
  },
352
342
  parameters: {
@@ -366,13 +356,13 @@ export const getUsersUseridCanViewInventory = endpoint({
366
356
  * @param userId
367
357
  */
368
358
  export const getUsersUseridCategories = endpoint({
369
- method: "GET",
370
- path: "/v1/users/:userId/categories",
371
- baseUrl: "https://inventory.roblox.com",
372
- requestFormat: "json",
359
+ method: 'GET',
360
+ path: '/v1/users/:userId/categories',
361
+ baseUrl: 'https://inventory.roblox.com',
362
+ requestFormat: 'json',
373
363
  serializationMethod: {
374
364
  userId: {
375
- style: "simple",
365
+ style: 'simple',
376
366
  },
377
367
  },
378
368
  parameters: {
@@ -387,13 +377,13 @@ export const getUsersUseridCategories = endpoint({
387
377
  * @param userId
388
378
  */
389
379
  export const getUsersUseridCategoriesFavorites = endpoint({
390
- method: "GET",
391
- path: "/v1/users/:userId/categories/favorites",
392
- baseUrl: "https://inventory.roblox.com",
393
- requestFormat: "json",
380
+ method: 'GET',
381
+ path: '/v1/users/:userId/categories/favorites',
382
+ baseUrl: 'https://inventory.roblox.com',
383
+ requestFormat: 'json',
394
384
  serializationMethod: {
395
385
  userId: {
396
- style: "simple",
386
+ style: 'simple',
397
387
  },
398
388
  },
399
389
  parameters: {
@@ -411,34 +401,27 @@ Place creators can make requests as if they were the Game Server.
411
401
  * @param itemTargetId ID of the item in question
412
402
  */
413
403
  export const getUsersUseridItemsItemtypeItemtargetid = endpoint({
414
- method: "GET",
415
- path: "/v1/users/:userId/items/:itemType/:itemTargetId",
416
- baseUrl: "https://inventory.roblox.com",
417
- requestFormat: "json",
404
+ method: 'GET',
405
+ path: '/v1/users/:userId/items/:itemType/:itemTargetId',
406
+ baseUrl: 'https://inventory.roblox.com',
407
+ requestFormat: 'json',
418
408
  serializationMethod: {
419
409
  userId: {
420
- style: "simple",
410
+ style: 'simple',
421
411
  },
422
412
  itemType: {
423
- style: "simple",
413
+ style: 'simple',
424
414
  },
425
415
  itemTargetId: {
426
- style: "simple",
416
+ style: 'simple',
427
417
  },
428
418
  },
429
419
  parameters: {
430
420
  userId: z.number().int(),
431
- itemType: z.union([
432
- z.literal(0),
433
- z.literal(1),
434
- z.literal(2),
435
- z.literal(3),
436
- z.literal(4),
437
- ]),
421
+ itemType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
438
422
  itemTargetId: z.number().int(),
439
423
  },
440
- response:
441
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItemModel_,
424
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItemModel_,
442
425
  errors: [
443
426
  {
444
427
  status: 400,
@@ -459,30 +442,24 @@ export const getUsersUseridItemsItemtypeItemtargetid = endpoint({
459
442
  * @param itemTargetId ID of the item in question
460
443
  */
461
444
  export const getUsersUseridItemsItemtypeItemtargetidIsOwned = endpoint({
462
- method: "GET",
463
- path: "/v1/users/:userId/items/:itemType/:itemTargetId/is-owned",
464
- baseUrl: "https://inventory.roblox.com",
465
- requestFormat: "json",
445
+ method: 'GET',
446
+ path: '/v1/users/:userId/items/:itemType/:itemTargetId/is-owned',
447
+ baseUrl: 'https://inventory.roblox.com',
448
+ requestFormat: 'json',
466
449
  serializationMethod: {
467
450
  userId: {
468
- style: "simple",
451
+ style: 'simple',
469
452
  },
470
453
  itemType: {
471
- style: "simple",
454
+ style: 'simple',
472
455
  },
473
456
  itemTargetId: {
474
- style: "simple",
457
+ style: 'simple',
475
458
  },
476
459
  },
477
460
  parameters: {
478
461
  userId: z.number().int(),
479
- itemType: z.union([
480
- z.literal(0),
481
- z.literal(1),
482
- z.literal(2),
483
- z.literal(3),
484
- z.literal(4),
485
- ]),
462
+ itemType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
486
463
  itemTargetId: z.number().int(),
487
464
  },
488
465
  response: z.boolean(),
@@ -507,42 +484,34 @@ export const getUsersUseridItemsItemtypeItemtargetidIsOwned = endpoint({
507
484
  * @param cursor
508
485
  */
509
486
  export const getUsersUseridPlacesInventory = endpoint({
510
- method: "GET",
511
- path: "/v1/users/:userId/places/inventory",
512
- baseUrl: "https://inventory.roblox.com",
513
- requestFormat: "json",
487
+ method: 'GET',
488
+ path: '/v1/users/:userId/places/inventory',
489
+ baseUrl: 'https://inventory.roblox.com',
490
+ requestFormat: 'json',
514
491
  serializationMethod: {
515
492
  userId: {
516
- style: "simple",
493
+ style: 'simple',
517
494
  },
518
495
  placesTab: {
519
- style: "form",
496
+ style: 'form',
520
497
  explode: true,
521
498
  },
522
499
  itemsPerPage: {
523
- style: "form",
500
+ style: 'form',
524
501
  explode: true,
525
502
  },
526
503
  cursor: {
527
- style: "form",
504
+ style: 'form',
528
505
  explode: true,
529
506
  },
530
507
  },
531
508
  parameters: {
532
509
  userId: z.number().int(),
533
- placesTab: z.union([
534
- z.literal(0),
535
- z.literal(1),
536
- z.literal(2),
537
- z.literal(3),
538
- z.literal(4),
539
- z.literal(5),
540
- ]),
510
+ placesTab: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(5)]),
541
511
  itemsPerPage: z.number().int(),
542
512
  cursor: z.number().int(),
543
513
  },
544
- response:
545
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_PlaceModel_,
514
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_PlaceModel_,
546
515
  errors: [
547
516
  {
548
517
  status: 400,