rozod 6.7.0 → 6.8.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 (70) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +75 -451
  3. package/lib/endpoints/accountinformationv1.d.ts +50 -87
  4. package/lib/endpoints/accountinformationv1.js +46 -90
  5. package/lib/endpoints/assetdeliveryv1.d.ts +39 -0
  6. package/lib/endpoints/assetdeliveryv1.js +39 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +27 -0
  8. package/lib/endpoints/assetdeliveryv2.js +27 -0
  9. package/lib/endpoints/authv1.d.ts +71 -3
  10. package/lib/endpoints/authv1.js +70 -4
  11. package/lib/endpoints/authv2.d.ts +22 -1
  12. package/lib/endpoints/authv2.js +23 -2
  13. package/lib/endpoints/avatarv1.d.ts +9 -6
  14. package/lib/endpoints/avatarv1.js +9 -6
  15. package/lib/endpoints/avatarv2.d.ts +11 -5
  16. package/lib/endpoints/avatarv2.js +11 -5
  17. package/lib/endpoints/avatarv3.d.ts +16 -7
  18. package/lib/endpoints/avatarv3.js +16 -7
  19. package/lib/endpoints/badgesv1.d.ts +4 -0
  20. package/lib/endpoints/badgesv1.js +4 -0
  21. package/lib/endpoints/catalogv1.d.ts +25 -3
  22. package/lib/endpoints/catalogv1.js +21 -3
  23. package/lib/endpoints/catalogv2.d.ts +294 -50
  24. package/lib/endpoints/catalogv2.js +256 -24
  25. package/lib/endpoints/clientsettingsv2.d.ts +6 -0
  26. package/lib/endpoints/clientsettingsv2.js +6 -0
  27. package/lib/endpoints/contactsv1.d.ts +18 -22
  28. package/lib/endpoints/contactsv1.js +14 -22
  29. package/lib/endpoints/developv1.d.ts +36 -1
  30. package/lib/endpoints/developv1.js +12 -3
  31. package/lib/endpoints/developv2.d.ts +32 -3
  32. package/lib/endpoints/developv2.js +16 -5
  33. package/lib/endpoints/friendsv1.d.ts +222 -314
  34. package/lib/endpoints/friendsv1.js +213 -313
  35. package/lib/endpoints/gameinternationalizationv1.d.ts +59 -0
  36. package/lib/endpoints/gameinternationalizationv1.js +57 -1
  37. package/lib/endpoints/gamesv1.d.ts +79 -0
  38. package/lib/endpoints/gamesv1.js +70 -97
  39. package/lib/endpoints/gamesv2.d.ts +12 -0
  40. package/lib/endpoints/gamesv2.js +10 -0
  41. package/lib/endpoints/groupsv1.d.ts +49 -4
  42. package/lib/endpoints/groupsv1.js +55 -7
  43. package/lib/endpoints/groupsv2.d.ts +2 -0
  44. package/lib/endpoints/groupsv2.js +2 -0
  45. package/lib/endpoints/inventoryv1.d.ts +3 -1
  46. package/lib/endpoints/inventoryv1.js +3 -1
  47. package/lib/endpoints/inventoryv2.d.ts +70 -0
  48. package/lib/endpoints/inventoryv2.js +68 -1
  49. package/lib/endpoints/localev1.d.ts +27 -0
  50. package/lib/endpoints/localev1.js +28 -1
  51. package/lib/endpoints/publishv1.d.ts +3 -6
  52. package/lib/endpoints/publishv1.js +3 -6
  53. package/lib/endpoints/thumbnailsv1.d.ts +44 -87
  54. package/lib/endpoints/thumbnailsv1.js +25 -0
  55. package/lib/index.d.ts +96 -3
  56. package/lib/index.js +114 -1
  57. package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
  58. package/lib/opencloud/v1/assets.d.ts +9 -9
  59. package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
  60. package/lib/opencloud/v1/datastores.d.ts +8 -8
  61. package/lib/opencloud/v1/developer-products.d.ts +4 -4
  62. package/lib/opencloud/v1/game-passes.d.ts +4 -4
  63. package/lib/opencloud/v1/messaging.d.ts +1 -1
  64. package/lib/opencloud/v1/open-eval.d.ts +2 -2
  65. package/lib/opencloud/v1/secrets-store.d.ts +5 -5
  66. package/lib/opencloud/v1/toolbox.d.ts +2 -2
  67. package/lib/opencloud/v1/universes.d.ts +1 -1
  68. package/lib/opencloud/v2/cloud.d.ts +197 -87
  69. package/lib/opencloud/v2/cloud.js +68 -15
  70. package/package.json +108 -108
@@ -1,8 +1,176 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSearchItemsDetails = void 0;
3
+ exports.getSearchItemsDetails = exports.getAssetsAssetidBundles = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
+ const Roblox_Catalog_Api_BundleItemDetailModel = zod_1.z.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
+ supportsHeadShapes: zod_1.z.boolean(),
12
+ assetType: zod_1.z.number().int(),
13
+ });
14
+ const Roblox_Catalog_Api_Discount = zod_1.z.object({
15
+ robuxDiscountAmount: zod_1.z.number().int(),
16
+ robuxDiscountPercentage: zod_1.z.number(),
17
+ discountCampaign: zod_1.z.string(),
18
+ localizedDiscountAttribution: zod_1.z.string(),
19
+ });
20
+ const Roblox_Catalog_Api_DiscountInformation = zod_1.z.object({
21
+ originalPrice: zod_1.z.number().int(),
22
+ totalDiscountPercentage: zod_1.z.number(),
23
+ totalDiscountAmount: zod_1.z.number().int(),
24
+ discounts: zod_1.z.array(Roblox_Catalog_Api_Discount),
25
+ });
26
+ const Roblox_Catalog_Api_TimedOption = zod_1.z.object({
27
+ days: zod_1.z.number().int(),
28
+ price: zod_1.z.number().int(),
29
+ discountInformation: Roblox_Catalog_Api_DiscountInformation,
30
+ selected: zod_1.z.boolean(),
31
+ });
32
+ const Roblox_Catalog_Api_CatalogSearchDetailedResponseItem = zod_1.z.object({
33
+ id: zod_1.z.number().int(),
34
+ itemType: zod_1.z.enum(['Asset', 'Bundle']),
35
+ assetType: zod_1.z.union([
36
+ zod_1.z.literal(1),
37
+ zod_1.z.literal(2),
38
+ zod_1.z.literal(3),
39
+ zod_1.z.literal(4),
40
+ zod_1.z.literal(5),
41
+ zod_1.z.literal(6),
42
+ zod_1.z.literal(7),
43
+ zod_1.z.literal(8),
44
+ zod_1.z.literal(9),
45
+ zod_1.z.literal(10),
46
+ zod_1.z.literal(11),
47
+ zod_1.z.literal(12),
48
+ zod_1.z.literal(13),
49
+ zod_1.z.literal(16),
50
+ zod_1.z.literal(17),
51
+ zod_1.z.literal(18),
52
+ zod_1.z.literal(19),
53
+ zod_1.z.literal(21),
54
+ zod_1.z.literal(22),
55
+ zod_1.z.literal(24),
56
+ zod_1.z.literal(25),
57
+ zod_1.z.literal(26),
58
+ zod_1.z.literal(27),
59
+ zod_1.z.literal(28),
60
+ zod_1.z.literal(29),
61
+ zod_1.z.literal(30),
62
+ zod_1.z.literal(31),
63
+ zod_1.z.literal(32),
64
+ zod_1.z.literal(33),
65
+ zod_1.z.literal(34),
66
+ zod_1.z.literal(35),
67
+ zod_1.z.literal(37),
68
+ zod_1.z.literal(38),
69
+ zod_1.z.literal(39),
70
+ zod_1.z.literal(40),
71
+ zod_1.z.literal(41),
72
+ zod_1.z.literal(42),
73
+ zod_1.z.literal(43),
74
+ zod_1.z.literal(44),
75
+ zod_1.z.literal(45),
76
+ zod_1.z.literal(46),
77
+ zod_1.z.literal(47),
78
+ zod_1.z.literal(48),
79
+ zod_1.z.literal(49),
80
+ zod_1.z.literal(50),
81
+ zod_1.z.literal(51),
82
+ zod_1.z.literal(52),
83
+ zod_1.z.literal(53),
84
+ zod_1.z.literal(54),
85
+ zod_1.z.literal(55),
86
+ zod_1.z.literal(56),
87
+ zod_1.z.literal(59),
88
+ zod_1.z.literal(60),
89
+ zod_1.z.literal(61),
90
+ zod_1.z.literal(62),
91
+ zod_1.z.literal(63),
92
+ zod_1.z.literal(64),
93
+ zod_1.z.literal(65),
94
+ zod_1.z.literal(66),
95
+ zod_1.z.literal(67),
96
+ zod_1.z.literal(68),
97
+ zod_1.z.literal(69),
98
+ zod_1.z.literal(70),
99
+ zod_1.z.literal(71),
100
+ zod_1.z.literal(72),
101
+ zod_1.z.literal(73),
102
+ zod_1.z.literal(74),
103
+ zod_1.z.literal(75),
104
+ zod_1.z.literal(76),
105
+ zod_1.z.literal(77),
106
+ zod_1.z.literal(78),
107
+ zod_1.z.literal(79),
108
+ zod_1.z.literal(80),
109
+ zod_1.z.literal(81),
110
+ zod_1.z.literal(82),
111
+ zod_1.z.literal(83),
112
+ zod_1.z.literal(84),
113
+ zod_1.z.literal(85),
114
+ zod_1.z.literal(86),
115
+ zod_1.z.literal(87),
116
+ zod_1.z.literal(88),
117
+ zod_1.z.literal(89),
118
+ zod_1.z.literal(90),
119
+ zod_1.z.literal(91),
120
+ zod_1.z.literal(92),
121
+ ]),
122
+ 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)]),
123
+ isRecolorable: zod_1.z.boolean(),
124
+ name: zod_1.z.string(),
125
+ description: zod_1.z.string(),
126
+ productId: zod_1.z.number().int(),
127
+ bundledItems: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModel),
128
+ itemStatus: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(7), zod_1.z.literal(8)])),
129
+ itemRestrictions: zod_1.z.array(zod_1.z.union([
130
+ zod_1.z.literal(1),
131
+ zod_1.z.literal(2),
132
+ zod_1.z.literal(3),
133
+ zod_1.z.literal(4),
134
+ zod_1.z.literal(5),
135
+ zod_1.z.literal(6),
136
+ zod_1.z.literal(7),
137
+ zod_1.z.literal(8),
138
+ zod_1.z.literal(9),
139
+ ])),
140
+ creatorHasVerifiedBadge: zod_1.z.boolean(),
141
+ creatorType: zod_1.z.string(),
142
+ creatorTargetId: zod_1.z.number().int(),
143
+ creatorName: zod_1.z.string(),
144
+ price: zod_1.z.number().int(),
145
+ lowestPrice: zod_1.z.number().int(),
146
+ lowestResalePrice: zod_1.z.number().int(),
147
+ priceStatus: zod_1.z.string(),
148
+ unitsAvailableForConsumption: zod_1.z.number().int(),
149
+ favoriteCount: zod_1.z.number().int(),
150
+ offSaleDeadline: zod_1.z.string().datetime({ offset: true }),
151
+ collectibleItemId: zod_1.z.string(),
152
+ totalQuantity: zod_1.z.number().int(),
153
+ saleLocationType: zod_1.z.enum([
154
+ 'NotApplicable',
155
+ 'ShopOnly',
156
+ 'MyExperiencesOnly',
157
+ 'ShopAndMyExperiences',
158
+ 'ExperiencesById',
159
+ 'ShopAndAllExperiences',
160
+ 'ExperiencesDevApiOnly',
161
+ 'ShopAndExperiencesById',
162
+ ]),
163
+ hasResellers: zod_1.z.boolean(),
164
+ isOffSale: zod_1.z.boolean(),
165
+ quantityLimitPerUser: zod_1.z.number().int(),
166
+ supportsHeadShapes: zod_1.z.boolean(),
167
+ timedOptions: zod_1.z.array(Roblox_Catalog_Api_TimedOption),
168
+ });
169
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_ = zod_1.z.object({
170
+ previousPageCursor: zod_1.z.string(),
171
+ nextPageCursor: zod_1.z.string(),
172
+ data: zod_1.z.array(Roblox_Catalog_Api_CatalogSearchDetailedResponseItem),
173
+ });
6
174
  const Roblox_Catalog_Api_ElasticsearchDebugInfo = zod_1.z.object({
7
175
  elasticsearchQuery: zod_1.z.string(),
8
176
  isFromCache: zod_1.z.boolean(),
@@ -25,15 +193,11 @@ const Roblox_Catalog_Api_TaxonomyModel = zod_1.z.object({
25
193
  taxonomyId: zod_1.z.string(),
26
194
  taxonomyName: zod_1.z.string(),
27
195
  });
28
- const Roblox_Catalog_Api_TimedOption = zod_1.z.object({
29
- days: zod_1.z.number().int(),
30
- price: zod_1.z.number().int(),
31
- selected: zod_1.z.boolean(),
32
- });
33
196
  const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = zod_1.z.object({
34
197
  bundledItems: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModelV2),
35
198
  taxonomy: zod_1.z.array(Roblox_Catalog_Api_TaxonomyModel),
36
199
  itemCreatedUtc: zod_1.z.string().datetime({ offset: true }),
200
+ discountInformation: Roblox_Catalog_Api_DiscountInformation,
37
201
  id: zod_1.z.number().int(),
38
202
  itemType: zod_1.z.enum(['Asset', 'Bundle']),
39
203
  assetType: zod_1.z.union([
@@ -121,13 +285,14 @@ const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = zod_1.z.object({
121
285
  zod_1.z.literal(89),
122
286
  zod_1.z.literal(90),
123
287
  zod_1.z.literal(91),
288
+ zod_1.z.literal(92),
124
289
  ]),
125
290
  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)]),
126
291
  isRecolorable: zod_1.z.boolean(),
127
292
  name: zod_1.z.string(),
128
293
  description: zod_1.z.string(),
129
294
  productId: zod_1.z.number().int(),
130
- itemStatus: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(7)])),
295
+ itemStatus: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(7), zod_1.z.literal(8)])),
131
296
  itemRestrictions: zod_1.z.array(zod_1.z.union([
132
297
  zod_1.z.literal(1),
133
298
  zod_1.z.literal(2),
@@ -175,6 +340,68 @@ const Roblox_Catalog_Api_CatalogSearchPageResponse_Roblox_Catalog_Api_CatalogSea
175
340
  nextPageCursor: zod_1.z.string(),
176
341
  data: zod_1.z.array(Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2),
177
342
  });
343
+ /**
344
+ * @api GET https://catalog.roblox.com/v2/assets/:assetId/bundles
345
+ * @summary Lists bundles that contain the given asset (hydrated search-detail shape for marketplace).
346
+ * @param assetId Asset id.
347
+ * @param Roblox-Place-Id Roblox-Place-Id header.
348
+ * @param Roblox-Game-Id Roblox-Game-Id header.
349
+ * @param limit The number of results per request.
350
+ * @param cursor The paging cursor for the previous or next page.
351
+ * @param sortOrder The order the results are sorted in.
352
+ */
353
+ exports.getAssetsAssetidBundles = (0, __1.endpoint)({
354
+ method: 'GET',
355
+ path: '/v2/assets/:assetId/bundles',
356
+ baseUrl: 'https://catalog.roblox.com',
357
+ requestFormat: 'json',
358
+ serializationMethod: {
359
+ assetId: {
360
+ style: 'simple',
361
+ },
362
+ 'Roblox-Place-Id': {
363
+ style: 'simple',
364
+ },
365
+ 'Roblox-Game-Id': {
366
+ style: 'simple',
367
+ },
368
+ limit: {
369
+ style: 'form',
370
+ explode: true,
371
+ },
372
+ cursor: {
373
+ style: 'form',
374
+ explode: true,
375
+ },
376
+ sortOrder: {
377
+ style: 'form',
378
+ explode: true,
379
+ },
380
+ },
381
+ parameters: {
382
+ assetId: zod_1.z.number().int(),
383
+ 'Roblox-Place-Id': zod_1.z.number().int(),
384
+ 'Roblox-Game-Id': zod_1.z.string(),
385
+ limit: zod_1.z
386
+ .union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
387
+ .optional()
388
+ .default(10),
389
+ cursor: zod_1.z.string().optional(),
390
+ sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
391
+ },
392
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Catalog_Api_CatalogSearchDetailedResponseItem_,
393
+ errors: [
394
+ {
395
+ status: 400,
396
+ description: `1: Invalid assetId
397
+ 4: Invalid Cursor.`,
398
+ },
399
+ {
400
+ status: 403,
401
+ description: `7: User is unauthorized.`,
402
+ },
403
+ ],
404
+ });
178
405
  /**
179
406
  * @api GET https://catalog.roblox.com/v2/search/items/details
180
407
  * @summary Search for catalog items.
@@ -283,10 +510,11 @@ exports.getSearchItemsDetails = (0, __1.endpoint)({
283
510
  },
284
511
  },
285
512
  parameters: {
286
- Taxonomy: zod_1.z.string(),
287
- AssetTypeIds: zod_1.z.array(zod_1.z.number()),
288
- BundleTypeIds: zod_1.z.array(zod_1.z.number()),
289
- CategoryFilter: zod_1.z.union([
513
+ Taxonomy: zod_1.z.string().optional(),
514
+ AssetTypeIds: zod_1.z.array(zod_1.z.number()).optional(),
515
+ BundleTypeIds: zod_1.z.array(zod_1.z.number()).optional(),
516
+ CategoryFilter: zod_1.z
517
+ .union([
290
518
  zod_1.z.literal(0),
291
519
  zod_1.z.literal(1),
292
520
  zod_1.z.literal(2),
@@ -294,19 +522,23 @@ exports.getSearchItemsDetails = (0, __1.endpoint)({
294
522
  zod_1.z.literal(4),
295
523
  zod_1.z.literal(5),
296
524
  zod_1.z.literal(6),
297
- ]),
298
- SortAggregation: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]),
299
- SortType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]),
300
- CreatorType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
301
- CreatorTargetId: zod_1.z.number().int(),
302
- CreatorName: zod_1.z.string(),
303
- MaxPrice: zod_1.z.number().int(),
304
- MinPrice: zod_1.z.number().int(),
305
- Keyword: zod_1.z.string(),
306
- IncludeNotForSale: zod_1.z.boolean(),
307
- TriggeredByTopicDiscovery: zod_1.z.boolean(),
308
- SalesTypeFilter: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
309
- Topics: zod_1.z.string(),
525
+ zod_1.z.literal(7),
526
+ ])
527
+ .optional(),
528
+ SortAggregation: zod_1.z
529
+ .union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)])
530
+ .optional(),
531
+ SortType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)]).optional(),
532
+ CreatorType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
533
+ CreatorTargetId: zod_1.z.number().int().optional(),
534
+ CreatorName: zod_1.z.string().optional(),
535
+ MaxPrice: zod_1.z.number().int().optional(),
536
+ MinPrice: zod_1.z.number().int().optional(),
537
+ Keyword: zod_1.z.string().optional(),
538
+ IncludeNotForSale: zod_1.z.boolean().optional(),
539
+ TriggeredByTopicDiscovery: zod_1.z.boolean().optional(),
540
+ SalesTypeFilter: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]).optional(),
541
+ Topics: zod_1.z.string().optional(),
310
542
  limit: zod_1.z
311
543
  .union([zod_1.z.literal(10), zod_1.z.literal(28), zod_1.z.literal(30), zod_1.z.literal(60), zod_1.z.literal(120)])
312
544
  .optional()
@@ -34,6 +34,10 @@ const Roblox_ClientSettings_Api_Models_Response_OtaVersionResponse = z.object({
34
34
  assetsManifest: z.string(),
35
35
  versionV2: z.number().int(),
36
36
  });
37
+ const Roblox_ClientSettings_Api_Models_Response_BetaProgramInfo = z.object({
38
+ name: z.string(),
39
+ id: z.string(),
40
+ });
37
41
  const Roblox_ClientSettings_Api_Models_Response_UserChannelResponse = z.object({
38
42
  channelName: z.string(),
39
43
  channelAssignmentType: z.enum([
@@ -45,6 +49,8 @@ const Roblox_ClientSettings_Api_Models_Response_UserChannelResponse = z.object({
45
49
  "OptedInToBetaProgramWithPublicChannel",
46
50
  ]),
47
51
  token: z.string(),
52
+ program: Roblox_ClientSettings_Api_Models_Response_BetaProgramInfo,
53
+ isFlagOnly: z.boolean(),
48
54
  });
49
55
 
50
56
  /**
@@ -32,6 +32,10 @@ const Roblox_ClientSettings_Api_Models_Response_OtaVersionResponse = zod_1.z.obj
32
32
  assetsManifest: zod_1.z.string(),
33
33
  versionV2: zod_1.z.number().int(),
34
34
  });
35
+ const Roblox_ClientSettings_Api_Models_Response_BetaProgramInfo = zod_1.z.object({
36
+ name: zod_1.z.string(),
37
+ id: zod_1.z.string(),
38
+ });
35
39
  const Roblox_ClientSettings_Api_Models_Response_UserChannelResponse = zod_1.z.object({
36
40
  channelName: zod_1.z.string(),
37
41
  channelAssignmentType: zod_1.z.enum([
@@ -43,6 +47,8 @@ const Roblox_ClientSettings_Api_Models_Response_UserChannelResponse = zod_1.z.ob
43
47
  'OptedInToBetaProgramWithPublicChannel',
44
48
  ]),
45
49
  token: zod_1.z.string(),
50
+ program: Roblox_ClientSettings_Api_Models_Response_BetaProgramInfo,
51
+ isFlagOnly: zod_1.z.boolean(),
46
52
  });
47
53
  /**
48
54
  * @api GET https://clientsettings.roblox.com/v2/android-binaries/:version/channels/:channelName
@@ -1,11 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { endpoint } from "..";
3
3
 
4
- const Roblox_Contacts_Api_Models_Response_ContactsMetadataResponseModel =
5
- z.object({
6
- multiGetContactsMaxSize: z.number().int(),
7
- multiGetContactsCacheTTLinMS: z.number().int(),
8
- });
9
4
  const Roblox_Contacts_Api_Response_ValidateUserTagResponseModel = z.object({
10
5
  status: z.enum(["Success", "Moderated", "TooLong"]),
11
6
  });
@@ -24,23 +19,6 @@ const Roblox_Contacts_Api_Response_SetUserTagResponseModel = z.object({
24
19
  status: z.enum(["Success", "Moderated"]),
25
20
  });
26
21
 
27
- /**
28
- * @api GET https://contacts.roblox.com/v1/contacts/metadata
29
- * @summary Gets contextual information for contacts and usertags
30
- */
31
- export const getContactsMetadata = endpoint({
32
- method: "GET",
33
- path: "/v1/contacts/metadata",
34
- baseUrl: "https://contacts.roblox.com",
35
- requestFormat: "json",
36
- response: Roblox_Contacts_Api_Models_Response_ContactsMetadataResponseModel,
37
- errors: [
38
- {
39
- status: 401,
40
- description: `0: Authorization has been denied for this request.`,
41
- },
42
- ],
43
- });
44
22
  /**
45
23
  * @api POST https://contacts.roblox.com/v1/user/get-tags
46
24
  * @summary Gets the tags for multiple users
@@ -146,3 +124,21 @@ export const getUserTagValidate = endpoint({
146
124
  },
147
125
  ],
148
126
  });
127
+
128
+ // Patched endpoints removed from Roblox API docs
129
+
130
+ const Patch_ContactsMetadataResponseModel = z.object({
131
+ multiGetContactsMaxSize: z.number().int(),
132
+ multiGetContactsCacheTTLinMS: z.number().int(),
133
+ });
134
+
135
+ export const getContactsMetadata = endpoint({
136
+ method: 'GET',
137
+ path: '/v1/contacts/metadata',
138
+ baseUrl: 'https://contacts.roblox.com',
139
+ requestFormat: 'json',
140
+ response: Patch_ContactsMetadataResponseModel,
141
+ errors: [
142
+ { status: 401, description: `0: Authorization has been denied for this request.` },
143
+ ],
144
+ });
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserTagValidate = exports.postUserTag = exports.postUserGetTags = exports.getContactsMetadata = void 0;
3
+ exports.getContactsMetadata = exports.getUserTagValidate = exports.postUserTag = exports.postUserGetTags = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
- const Roblox_Contacts_Api_Models_Response_ContactsMetadataResponseModel = zod_1.z.object({
7
- multiGetContactsMaxSize: zod_1.z.number().int(),
8
- multiGetContactsCacheTTLinMS: zod_1.z.number().int(),
9
- });
10
6
  const Roblox_Contacts_Api_Response_ValidateUserTagResponseModel = zod_1.z.object({
11
7
  status: zod_1.z.enum(['Success', 'Moderated', 'TooLong']),
12
8
  });
@@ -24,23 +20,6 @@ const Roblox_Contacts_Api_Request_SetUserTagRequestModel = zod_1.z.object({
24
20
  const Roblox_Contacts_Api_Response_SetUserTagResponseModel = zod_1.z.object({
25
21
  status: zod_1.z.enum(['Success', 'Moderated']),
26
22
  });
27
- /**
28
- * @api GET https://contacts.roblox.com/v1/contacts/metadata
29
- * @summary Gets contextual information for contacts and usertags
30
- */
31
- exports.getContactsMetadata = (0, __1.endpoint)({
32
- method: 'GET',
33
- path: '/v1/contacts/metadata',
34
- baseUrl: 'https://contacts.roblox.com',
35
- requestFormat: 'json',
36
- response: Roblox_Contacts_Api_Models_Response_ContactsMetadataResponseModel,
37
- errors: [
38
- {
39
- status: 401,
40
- description: `0: Authorization has been denied for this request.`,
41
- },
42
- ],
43
- });
44
23
  /**
45
24
  * @api POST https://contacts.roblox.com/v1/user/get-tags
46
25
  * @summary Gets the tags for multiple users
@@ -146,3 +125,16 @@ exports.getUserTagValidate = (0, __1.endpoint)({
146
125
  },
147
126
  ],
148
127
  });
128
+ // Patched endpoints removed from Roblox API docs
129
+ const Patch_ContactsMetadataResponseModel = zod_1.z.object({
130
+ multiGetContactsMaxSize: zod_1.z.number().int(),
131
+ multiGetContactsCacheTTLinMS: zod_1.z.number().int(),
132
+ });
133
+ exports.getContactsMetadata = (0, __1.endpoint)({
134
+ method: 'GET',
135
+ path: '/v1/contacts/metadata',
136
+ baseUrl: 'https://contacts.roblox.com',
137
+ requestFormat: 'json',
138
+ response: Patch_ContactsMetadataResponseModel,
139
+ errors: [{ status: 401, description: `0: Authorization has been denied for this request.` }],
140
+ });
@@ -27,6 +27,15 @@ const Roblox_Api_Develop_Models_UniverseModel = z.object({
27
27
  creatorName: z.string(),
28
28
  created: z.string().datetime({ offset: true }),
29
29
  updated: z.string().datetime({ offset: true }),
30
+ audiences: z.array(
31
+ z.union([
32
+ z.literal(0),
33
+ z.literal(1),
34
+ z.literal(2),
35
+ z.literal(3),
36
+ z.literal(4),
37
+ ])
38
+ ),
30
39
  });
31
40
  const Roblox_Api_Develop_Models_GameTemplateModel = z.object({
32
41
  gameTemplateType: z.string(),
@@ -66,6 +75,17 @@ const Roblox_Api_Develop_Models_ActivationEligibilityResponse = z.object({
66
75
  remainingPublicPublishCount: z.number().int(),
67
76
  isPublicPublish: z.boolean(),
68
77
  isPublishToExistingUniverse: z.boolean(),
78
+ isUniverseSelect: z.boolean(),
79
+ creatorTier: z.enum(["Invalid", "Blocked", "Private", "Trusted", "Everyone"]),
80
+ allowedAudiences: z.array(
81
+ z.union([
82
+ z.literal(0),
83
+ z.literal(1),
84
+ z.literal(2),
85
+ z.literal(3),
86
+ z.literal(4),
87
+ ])
88
+ ),
69
89
  });
70
90
  const Roblox_Api_Develop_Models_UniverseSettingsResponse = z.object({
71
91
  allowPrivateServers: z.boolean(),
@@ -106,6 +126,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponse = z.object({
106
126
  z.literal(3),
107
127
  z.literal(4),
108
128
  z.literal(5),
129
+ z.literal(6),
109
130
  ])
110
131
  ),
111
132
  isForSale: z.boolean(),
@@ -121,6 +142,17 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponse = z.object({
121
142
  "Approved",
122
143
  "Rejected",
123
144
  ]),
145
+ audiences: z.array(
146
+ z.union([
147
+ z.literal(0),
148
+ z.literal(1),
149
+ z.literal(2),
150
+ z.literal(3),
151
+ z.literal(4),
152
+ ])
153
+ ),
154
+ demoModeEnabled: z.boolean(),
155
+ demoModeLastChangedTime: z.string().datetime({ offset: true }),
124
156
  });
125
157
  const Roblox_Api_Develop_Models_UniverseSettingsRequest = z.object({
126
158
  name: z.string(),
@@ -156,6 +188,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequest = z.object({
156
188
  z.literal(3),
157
189
  z.literal(4),
158
190
  z.literal(5),
191
+ z.literal(6),
159
192
  ])
160
193
  ),
161
194
  isForSale: z.boolean(),
@@ -169,6 +202,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequest = z.object({
169
202
  z.literal(2),
170
203
  z.literal(3),
171
204
  ]),
205
+ demoModeEnabled: z.boolean(),
172
206
  });
173
207
  const Roblox_Api_Develop_Models_PrivateServerDetailsResponse = z.object({
174
208
  isEnabled: z.boolean(),
@@ -711,7 +745,8 @@ export const patchUniversesUniverseidConfiguration = endpoint({
711
745
  21: Invalid device type.
712
746
  22: Invalid asset type.
713
747
  23: Invalid value, the min must be less than or equal to the max
714
- 24: Invalid scale value`,
748
+ 24: Invalid scale value
749
+ 41: You cannot change the private server price again so soon after the previous change. Please try again later.`,
715
750
  },
716
751
  {
717
752
  status: 401,
@@ -28,6 +28,7 @@ const Roblox_Api_Develop_Models_UniverseModel = zod_1.z.object({
28
28
  creatorName: zod_1.z.string(),
29
29
  created: zod_1.z.string().datetime({ offset: true }),
30
30
  updated: zod_1.z.string().datetime({ offset: true }),
31
+ audiences: zod_1.z.array(zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)])),
31
32
  });
32
33
  const Roblox_Api_Develop_Models_GameTemplateModel = zod_1.z.object({
33
34
  gameTemplateType: zod_1.z.string(),
@@ -69,6 +70,9 @@ const Roblox_Api_Develop_Models_ActivationEligibilityResponse = zod_1.z.object({
69
70
  remainingPublicPublishCount: zod_1.z.number().int(),
70
71
  isPublicPublish: zod_1.z.boolean(),
71
72
  isPublishToExistingUniverse: zod_1.z.boolean(),
73
+ isUniverseSelect: zod_1.z.boolean(),
74
+ creatorTier: zod_1.z.enum(['Invalid', 'Blocked', 'Private', 'Trusted', 'Everyone']),
75
+ allowedAudiences: zod_1.z.array(zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)])),
72
76
  });
73
77
  const Roblox_Api_Develop_Models_UniverseSettingsResponse = zod_1.z.object({
74
78
  allowPrivateServers: zod_1.z.boolean(),
@@ -102,7 +106,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponse = zod_1.z.object({
102
106
  'Ninja',
103
107
  'WildWest',
104
108
  ]),
105
- playableDevices: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)])),
109
+ playableDevices: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)])),
106
110
  isForSale: zod_1.z.boolean(),
107
111
  price: zod_1.z.number().int(),
108
112
  isStudioAccessToApisAllowed: zod_1.z.boolean(),
@@ -110,6 +114,9 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponse = zod_1.z.object({
110
114
  isForSaleInFiat: zod_1.z.boolean(),
111
115
  fiatBasePriceId: zod_1.z.string(),
112
116
  fiatModerationStatus: zod_1.z.enum(['Invalid', 'NotModerated', 'Pending', 'Approved', 'Rejected']),
117
+ audiences: zod_1.z.array(zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)])),
118
+ demoModeEnabled: zod_1.z.boolean(),
119
+ demoModeLastChangedTime: zod_1.z.string().datetime({ offset: true }),
113
120
  });
114
121
  const Roblox_Api_Develop_Models_UniverseSettingsRequest = zod_1.z.object({
115
122
  name: zod_1.z.string(),
@@ -138,13 +145,14 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequest = zod_1.z.object({
138
145
  zod_1.z.literal(13),
139
146
  zod_1.z.literal(14),
140
147
  ]),
141
- playableDevices: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)])),
148
+ playableDevices: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)])),
142
149
  isForSale: zod_1.z.boolean(),
143
150
  price: zod_1.z.number().int(),
144
151
  isMeshTextureApiAccessAllowed: zod_1.z.boolean(),
145
152
  isRewardedOnDemandAdsAllowed: zod_1.z.boolean(),
146
153
  fiatBasePriceId: zod_1.z.string(),
147
154
  fiatProductChangeType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
155
+ demoModeEnabled: zod_1.z.boolean(),
148
156
  });
149
157
  const Roblox_Api_Develop_Models_PrivateServerDetailsResponse = zod_1.z.object({
150
158
  isEnabled: zod_1.z.boolean(),
@@ -678,7 +686,8 @@ exports.patchUniversesUniverseidConfiguration = (0, __1.endpoint)({
678
686
  21: Invalid device type.
679
687
  22: Invalid asset type.
680
688
  23: Invalid value, the min must be less than or equal to the max
681
- 24: Invalid scale value`,
689
+ 24: Invalid scale value
690
+ 41: You cannot change the private server price again so soon after the previous change. Please try again later.`,
682
691
  },
683
692
  {
684
693
  status: 401,