rozod 6.2.0 → 6.4.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 (87) hide show
  1. package/lib/endpoints/accountsettingsv1.d.ts +27 -33
  2. package/lib/endpoints/accountsettingsv1.js +11 -22
  3. package/lib/endpoints/adconfigurationv2.d.ts +104 -119
  4. package/lib/endpoints/adconfigurationv2.js +32 -48
  5. package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
  6. package/lib/endpoints/assetdeliveryv1.js +25 -24
  7. package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
  8. package/lib/endpoints/assetdeliveryv2.js +25 -24
  9. package/lib/endpoints/authv1.d.ts +132 -84
  10. package/lib/endpoints/authv1.js +118 -64
  11. package/lib/endpoints/authv2.d.ts +56 -56
  12. package/lib/endpoints/authv2.js +57 -50
  13. package/lib/endpoints/authv3.d.ts +11 -11
  14. package/lib/endpoints/authv3.js +11 -11
  15. package/lib/endpoints/avatarv1.d.ts +1 -0
  16. package/lib/endpoints/avatarv1.js +1 -0
  17. package/lib/endpoints/avatarv2.d.ts +1 -0
  18. package/lib/endpoints/avatarv2.js +1 -0
  19. package/lib/endpoints/avatarv3.d.ts +1 -0
  20. package/lib/endpoints/avatarv3.js +1 -0
  21. package/lib/endpoints/badgesv1.d.ts +6 -22
  22. package/lib/endpoints/badgesv1.js +2 -22
  23. package/lib/endpoints/catalogv1.d.ts +39 -113
  24. package/lib/endpoints/catalogv1.js +39 -107
  25. package/lib/endpoints/catalogv2.d.ts +11 -11
  26. package/lib/endpoints/catalogv2.js +11 -11
  27. package/lib/endpoints/clientsettingsv2.d.ts +8 -7
  28. package/lib/endpoints/clientsettingsv2.js +9 -1
  29. package/lib/endpoints/developv1.d.ts +31 -31
  30. package/lib/endpoints/developv1.js +26 -26
  31. package/lib/endpoints/developv2.d.ts +27 -27
  32. package/lib/endpoints/developv2.js +22 -22
  33. package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
  34. package/lib/endpoints/economycreatorstatsv1.js +1 -1
  35. package/lib/endpoints/followingsv2.d.ts +2 -2
  36. package/lib/endpoints/followingsv2.js +2 -2
  37. package/lib/endpoints/friendsv1.d.ts +24 -98
  38. package/lib/endpoints/friendsv1.js +25 -91
  39. package/lib/endpoints/gamesv1.d.ts +31 -615
  40. package/lib/endpoints/gamesv1.js +32 -608
  41. package/lib/endpoints/gamesv2.d.ts +187 -260
  42. package/lib/endpoints/gamesv2.js +130 -190
  43. package/lib/endpoints/groupsv1.d.ts +34 -28
  44. package/lib/endpoints/groupsv1.js +31 -18
  45. package/lib/endpoints/groupsv2.d.ts +92 -92
  46. package/lib/endpoints/groupsv2.js +93 -87
  47. package/lib/endpoints/inventoryv1.d.ts +9 -21
  48. package/lib/endpoints/inventoryv1.js +4 -4
  49. package/lib/endpoints/inventoryv2.d.ts +91 -91
  50. package/lib/endpoints/inventoryv2.js +86 -86
  51. package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
  52. package/lib/endpoints/itemconfigurationv1.js +1 -1
  53. package/lib/endpoints/thumbnailsv1.d.ts +1 -0
  54. package/lib/endpoints/thumbnailsv1.js +1 -0
  55. package/lib/endpoints/tradesv1.d.ts +10 -16
  56. package/lib/endpoints/tradesv1.js +10 -10
  57. package/lib/endpoints/twostepverificationv1.d.ts +59 -59
  58. package/lib/endpoints/twostepverificationv1.js +59 -59
  59. package/lib/endpoints/usersv1.d.ts +1 -1
  60. package/lib/endpoints/usersv1.js +1 -1
  61. package/lib/index.d.ts +1 -0
  62. package/lib/index.js +29 -3
  63. package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
  64. package/lib/opencloud/v1/asset-permissions.js +9 -3
  65. package/lib/opencloud/v1/assets.d.ts +59 -32
  66. package/lib/opencloud/v1/assets.js +77 -41
  67. package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
  68. package/lib/opencloud/v1/datastores-ordered.js +62 -20
  69. package/lib/opencloud/v1/datastores.d.ts +99 -42
  70. package/lib/opencloud/v1/datastores.js +123 -50
  71. package/lib/opencloud/v1/developer-products.d.ts +29 -11
  72. package/lib/opencloud/v1/developer-products.js +37 -15
  73. package/lib/opencloud/v1/game-passes.d.ts +29 -11
  74. package/lib/opencloud/v1/game-passes.js +37 -15
  75. package/lib/opencloud/v1/messaging.d.ts +6 -2
  76. package/lib/opencloud/v1/messaging.js +8 -3
  77. package/lib/opencloud/v1/open-eval.d.ts +14 -4
  78. package/lib/opencloud/v1/open-eval.js +18 -6
  79. package/lib/opencloud/v1/secrets-store.d.ts +46 -26
  80. package/lib/opencloud/v1/secrets-store.js +56 -31
  81. package/lib/opencloud/v1/toolbox.d.ts +14 -6
  82. package/lib/opencloud/v1/toolbox.js +18 -8
  83. package/lib/opencloud/v1/universes.d.ts +6 -2
  84. package/lib/opencloud/v1/universes.js +8 -3
  85. package/lib/opencloud/v2/cloud.d.ts +854 -395
  86. package/lib/opencloud/v2/cloud.js +967 -395
  87. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.patchVipServersIdSubscription = exports.patchVipServersIdPermissions = exports.patchVipServersId = exports.getVipServersId = exports.getVipServerCanInviteUserid = exports.getPrivateServersMyPrivateServers = exports.getPrivateServersEnabledInUniverseUniverseid = exports.getGamesVotes = exports.postGamesVipServersUniverseid = exports.getGamesRecommendationsGameUniverseid = exports.getGamesMultigetPlayabilityStatus = exports.getGamesMultigetPlaceDetails = exports.getGamesGamesProductInfo = exports.getGamesUniverseidVotesUser = exports.getGamesUniverseidVotes = exports.patchGamesUniverseidUserVotes = exports.getGamesUniverseidMedia = exports.getGamesUniverseidFavoritesCount = exports.postGamesUniverseidFavorites = exports.getGamesUniverseidFavorites = exports.getGamesPlaceidServersServertype = exports.getGamesPlaceidPrivateServers = exports.getGames = void 0;
3
+ exports.getPrivateServersEnabledInUniverseUniverseid = exports.getGamesRecommendationsGameUniverseid = exports.getGamesMultigetPlayabilityStatus = exports.getGamesMultigetPlaceDetails = exports.getGamesGamesProductInfo = exports.getGamesUniverseidMedia = exports.getGamesUniverseidFavoritesCount = exports.postGamesUniverseidFavorites = exports.getGamesUniverseidFavorites = exports.getGamesPlaceidServersServertype = exports.getGamesPlaceidPrivateServers = exports.getGames = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
6
  const Roblox_Games_Api_Models_Response_GameCreator = zod_1.z.object({
@@ -111,16 +111,6 @@ const Roblox_Games_Api_Models_Response_GameMediaItem = zod_1.z.object({
111
111
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameMediaItem_ = zod_1.z.object({
112
112
  data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameMediaItem),
113
113
  });
114
- const Roblox_Games_Api_Models_Response_GameVoteResponse = zod_1.z.object({
115
- id: zod_1.z.number().int(),
116
- upVotes: zod_1.z.number().int(),
117
- downVotes: zod_1.z.number().int(),
118
- });
119
- const Roblox_Games_Api_Models_Response_UserGameVoteResponse = zod_1.z.object({
120
- canVote: zod_1.z.boolean(),
121
- userVote: zod_1.z.boolean(),
122
- reasonForNotVoteable: zod_1.z.string(),
123
- });
124
114
  const Roblox_Games_Api_Models_Response_PurchaseData = zod_1.z.object({
125
115
  localizedFiatPrice: zod_1.z.string(),
126
116
  basePriceId: zod_1.z.string(),
@@ -155,33 +145,33 @@ const Roblox_Games_Api_Models_Response_PlaceDetails = zod_1.z.object({
155
145
  fiatPurchaseData: Roblox_Games_Api_Models_Response_PurchaseData,
156
146
  });
157
147
  const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = zod_1.z.object({
158
- playabilityStatus: zod_1.z.union([
159
- zod_1.z.literal(0),
160
- zod_1.z.literal(1),
161
- zod_1.z.literal(2),
162
- zod_1.z.literal(3),
163
- zod_1.z.literal(4),
164
- zod_1.z.literal(5),
165
- zod_1.z.literal(6),
166
- zod_1.z.literal(7),
167
- zod_1.z.literal(8),
168
- zod_1.z.literal(9),
169
- zod_1.z.literal(10),
170
- zod_1.z.literal(11),
171
- zod_1.z.literal(12),
172
- zod_1.z.literal(13),
173
- zod_1.z.literal(14),
174
- zod_1.z.literal(15),
175
- zod_1.z.literal(16),
176
- zod_1.z.literal(17),
177
- zod_1.z.literal(18),
178
- zod_1.z.literal(19),
179
- zod_1.z.literal(20),
180
- zod_1.z.literal(21),
181
- zod_1.z.literal(22),
182
- zod_1.z.literal(23),
183
- zod_1.z.literal(24),
184
- zod_1.z.literal(25),
148
+ playabilityStatus: zod_1.z.enum([
149
+ 'UnplayableOtherReason',
150
+ 'Playable',
151
+ 'GuestProhibited',
152
+ 'GameUnapproved',
153
+ 'IncorrectConfiguration',
154
+ 'UniverseRootPlaceIsPrivate',
155
+ 'InsufficientPermissionFriendsOnly',
156
+ 'InsufficientPermissionGroupOnly',
157
+ 'DeviceRestricted',
158
+ 'UnderReview',
159
+ 'PurchaseRequired',
160
+ 'AccountRestricted',
161
+ 'TemporarilyUnavailable',
162
+ 'PlaceHasNoPublishedVersion',
163
+ 'ComplianceBlocked',
164
+ 'ContextualPlayabilityRegionalAvailability',
165
+ 'ContextualPlayabilityRegionalCompliance',
166
+ 'ContextualPlayabilityAgeRecommendationParentalControls',
167
+ 'ContextualPlayabilityExperienceBlockedParentalControls',
168
+ 'ContextualPlayabilityAgeGated',
169
+ 'ContextualPlayabilityUnverifiedSeventeenPlusUser',
170
+ 'FiatPurchaseRequired',
171
+ 'FiatPurchaseDeviceRestricted',
172
+ 'ContextualPlayabilityUnrated',
173
+ 'ContextualPlayabilityAgeGatedByDescriptor',
174
+ 'ContextualPlayabilityGeneral',
185
175
  ]),
186
176
  isPlayable: zod_1.z.boolean(),
187
177
  universeId: zod_1.z.number().int(),
@@ -213,103 +203,9 @@ const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = zod_1.z.obj
213
203
  games: zod_1.z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
214
204
  nextPaginationKey: zod_1.z.string(),
215
205
  });
216
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_ = zod_1.z.object({
217
- data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameVoteResponse),
218
- });
219
206
  const Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse = zod_1.z.object({
220
207
  privateServersEnabled: zod_1.z.boolean(),
221
208
  });
222
- const Roblox_Games_Api_Models_Response_MyPrivateServersData = zod_1.z.object({
223
- active: zod_1.z.boolean(),
224
- universeId: zod_1.z.number().int(),
225
- placeId: zod_1.z.number().int(),
226
- name: zod_1.z.string(),
227
- ownerId: zod_1.z.number().int(),
228
- ownerName: zod_1.z.string(),
229
- priceInRobux: zod_1.z.number().int(),
230
- privateServerId: zod_1.z.number().int(),
231
- expirationDate: zod_1.z.string().datetime({ offset: true }),
232
- willRenew: zod_1.z.boolean(),
233
- universeName: zod_1.z.string(),
234
- });
235
- const Roblox_Games_Api_Models_Response_MyPrivateServersResponse = zod_1.z.object({
236
- nextPageCursor: zod_1.z.string(),
237
- previousPageCursor: zod_1.z.string(),
238
- data: zod_1.z.array(Roblox_Games_Api_Models_Response_MyPrivateServersData),
239
- });
240
- const Roblox_Games_Api_VipServerCanInviteResponse = zod_1.z.object({
241
- canInvite: zod_1.z.boolean(),
242
- doesOwnerPrivacyRestrictJoins: zod_1.z.boolean(),
243
- inviteResponseType: 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)]),
244
- });
245
- const Roblox_Games_Api_PlaceResponse = zod_1.z.object({
246
- id: zod_1.z.number().int(),
247
- name: zod_1.z.string(),
248
- });
249
- const Roblox_Games_Api_GameResponse = zod_1.z.object({
250
- id: zod_1.z.number().int(),
251
- name: zod_1.z.string(),
252
- rootPlace: Roblox_Games_Api_PlaceResponse,
253
- });
254
- const Roblox_Games_Api_VipServerSubscriptionResponse = zod_1.z.object({
255
- active: zod_1.z.boolean(),
256
- expired: zod_1.z.boolean(),
257
- expirationDate: zod_1.z.string().datetime({ offset: true }),
258
- price: zod_1.z.number().int(),
259
- canRenew: zod_1.z.boolean(),
260
- hasInsufficientFunds: zod_1.z.boolean(),
261
- hasRecurringProfile: zod_1.z.boolean(),
262
- hasPriceChanged: zod_1.z.boolean(),
263
- });
264
- const Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z.object({
265
- id: zod_1.z.number().int(),
266
- name: zod_1.z.string(),
267
- displayName: zod_1.z.string(),
268
- });
269
- const Roblox_Games_Api_VipServerPermissionsResponse = zod_1.z.object({
270
- clanAllowed: zod_1.z.boolean(),
271
- enemyClanId: zod_1.z.number().int(),
272
- friendsAllowed: zod_1.z.boolean(),
273
- users: zod_1.z.array(Roblox_Web_Responses_Users_SkinnyUserResponse),
274
- });
275
- const Roblox_Games_Api_VipServerVoiceSettingsResponse = zod_1.z.object({
276
- enabled: zod_1.z.boolean(),
277
- });
278
- const Roblox_Games_Api_VipServerResponse = zod_1.z.object({
279
- id: zod_1.z.number().int(),
280
- name: zod_1.z.string(),
281
- game: Roblox_Games_Api_GameResponse,
282
- joinCode: zod_1.z.string(),
283
- active: zod_1.z.boolean(),
284
- subscription: Roblox_Games_Api_VipServerSubscriptionResponse,
285
- permissions: Roblox_Games_Api_VipServerPermissionsResponse,
286
- voiceSettings: Roblox_Games_Api_VipServerVoiceSettingsResponse,
287
- link: zod_1.z.string(),
288
- });
289
- const Roblox_Games_Api_VipServerUpdateRequest = zod_1.z.object({
290
- name: zod_1.z.string(),
291
- newJoinCode: zod_1.z.boolean(),
292
- active: zod_1.z.boolean(),
293
- });
294
- const Roblox_Games_Api_CreateVipServersRequest = zod_1.z.object({
295
- name: zod_1.z.string(),
296
- expectedPrice: zod_1.z.number().int(),
297
- isPurchaseConfirmed: zod_1.z.boolean(),
298
- });
299
- const Roblox_Games_Api_Models_Request_SetUserGameVoteRequest = zod_1.z.object({
300
- vote: zod_1.z.boolean(),
301
- });
302
- const Roblox_Games_Api_VipServerUpdatePermissionsRequest = zod_1.z.object({
303
- clanAllowed: zod_1.z.boolean(),
304
- enemyClanId: zod_1.z.number().int(),
305
- friendsAllowed: zod_1.z.boolean(),
306
- usersToAdd: zod_1.z.array(zod_1.z.number()),
307
- usersToRemove: zod_1.z.array(zod_1.z.number()),
308
- });
309
- const Roblox_Games_Api_VipServerUpdateSubscriptionRequest = zod_1.z.object({
310
- active: zod_1.z.boolean(),
311
- price: zod_1.z.number().int(),
312
- });
313
209
  /**
314
210
  * @api GET https://games.roblox.com/v1/games
315
211
  * @summary Gets a list of games' detail
@@ -341,6 +237,10 @@ exports.getGames = (0, __1.endpoint)({
341
237
  description: `8: The universe IDs specified are invalid.
342
238
  9: Too many universe IDs were requested.`,
343
239
  },
240
+ {
241
+ status: 429,
242
+ description: `4: Too many requests have been made.`,
243
+ },
344
244
  ],
345
245
  });
346
246
  /**
@@ -608,142 +508,6 @@ exports.getGamesUniverseidMedia = (0, __1.endpoint)({
608
508
  },
609
509
  ],
610
510
  });
611
- /**
612
- * @api PATCH https://games.roblox.com/v1/games/:universeId/user-votes
613
- * @summary Set the user's vote for a game
614
- * @param body The request body.
615
- * @param universeId The id of the universe.
616
- */
617
- exports.patchGamesUniverseidUserVotes = (0, __1.endpoint)({
618
- method: 'PATCH',
619
- path: '/v1/games/:universeId/user-votes',
620
- baseUrl: 'https://games.roblox.com',
621
- requestFormat: 'json',
622
- serializationMethod: {
623
- body: {},
624
- universeId: {
625
- style: 'simple',
626
- },
627
- },
628
- parameters: {
629
- universeId: zod_1.z.number().int(),
630
- },
631
- body: zod_1.z.object({ vote: zod_1.z.boolean() }),
632
- response: zod_1.z.object({}),
633
- errors: [
634
- {
635
- status: 400,
636
- description: `2: The universe's root place is invalid.
637
- 3: The asset is not voteable.
638
- 4: The requested vote is invalid.`,
639
- },
640
- {
641
- status: 401,
642
- description: `0: Authorization has been denied for this request.`,
643
- },
644
- {
645
- status: 403,
646
- description: `0: Token Validation Failed
647
- 6: The user needs to play the game before vote.
648
- 7: The user needs additional permission to vote.`,
649
- },
650
- {
651
- status: 404,
652
- description: `1: The requested universe does not exist.`,
653
- },
654
- {
655
- status: 429,
656
- description: `5: Too many attempts to vote. Please try again later.
657
- 10: Internal service busy. Please try again later.`,
658
- },
659
- {
660
- status: 500,
661
- description: `0: An unknown error occurred.`,
662
- },
663
- ],
664
- });
665
- /**
666
- * @api GET https://games.roblox.com/v1/games/:universeId/votes
667
- * @summary Get the game vote status
668
- * @param universeId The id of the universe we get vote status from.
669
- */
670
- exports.getGamesUniverseidVotes = (0, __1.endpoint)({
671
- method: 'GET',
672
- path: '/v1/games/:universeId/votes',
673
- baseUrl: 'https://games.roblox.com',
674
- requestFormat: 'json',
675
- serializationMethod: {
676
- universeId: {
677
- style: 'simple',
678
- },
679
- },
680
- parameters: {
681
- universeId: zod_1.z.number().int(),
682
- },
683
- response: Roblox_Games_Api_Models_Response_GameVoteResponse,
684
- errors: [
685
- {
686
- status: 400,
687
- description: `2: The universe's root place is invalid.
688
- 3: The asset is not voteable.`,
689
- },
690
- {
691
- status: 404,
692
- description: `1: The requested universe does not exist.`,
693
- },
694
- {
695
- status: 429,
696
- description: `10: Internal service busy. Please try again later.`,
697
- },
698
- {
699
- status: 500,
700
- description: `0: An unknown error occurred.`,
701
- },
702
- ],
703
- });
704
- /**
705
- * @api GET https://games.roblox.com/v1/games/:universeId/votes/user
706
- * @summary Get the user's vote status for a game
707
- * @param universeId The id of the universe we get user vote status from.
708
- */
709
- exports.getGamesUniverseidVotesUser = (0, __1.endpoint)({
710
- method: 'GET',
711
- path: '/v1/games/:universeId/votes/user',
712
- baseUrl: 'https://games.roblox.com',
713
- requestFormat: 'json',
714
- serializationMethod: {
715
- universeId: {
716
- style: 'simple',
717
- },
718
- },
719
- parameters: {
720
- universeId: zod_1.z.number().int(),
721
- },
722
- response: Roblox_Games_Api_Models_Response_UserGameVoteResponse,
723
- errors: [
724
- {
725
- status: 400,
726
- description: `2: The universe's root place is invalid.
727
- 3: The asset is not voteable.`,
728
- },
729
- {
730
- status: 401,
731
- description: `0: Authorization has been denied for this request.`,
732
- },
733
- {
734
- status: 404,
735
- description: `1: The requested universe does not exist.`,
736
- },
737
- {
738
- status: 429,
739
- description: `10: Internal service busy. Please try again later.`,
740
- },
741
- {
742
- status: 500,
743
- description: `0: An unknown error occurred.`,
744
- },
745
- ],
746
- });
747
511
  /**
748
512
  * @api GET https://games.roblox.com/v1/games/games-product-info
749
513
  * @summary Gets a list of games' product info, used to purchase a game
@@ -874,87 +638,6 @@ exports.getGamesRecommendationsGameUniverseid = (0, __1.endpoint)({
874
638
  },
875
639
  ],
876
640
  });
877
- /**
878
- * @api POST https://games.roblox.com/v1/games/vip-servers/:universeId
879
- * @summary Create VIP server for a game
880
- * @param body The request body.
881
- * @param universeId The id of the universe.
882
- */
883
- exports.postGamesVipServersUniverseid = (0, __1.endpoint)({
884
- method: 'POST',
885
- path: '/v1/games/vip-servers/:universeId',
886
- baseUrl: 'https://games.roblox.com',
887
- requestFormat: 'json',
888
- serializationMethod: {
889
- body: {},
890
- universeId: {
891
- style: 'simple',
892
- },
893
- },
894
- parameters: {
895
- universeId: zod_1.z.number().int(),
896
- },
897
- body: Roblox_Games_Api_CreateVipServersRequest,
898
- response: Roblox_Web_Responses_Games_GameServerResponse,
899
- errors: [
900
- {
901
- status: 400,
902
- description: `15: The price for purchasing this private server has changed. Please refresh the page and try again.`,
903
- },
904
- {
905
- status: 401,
906
- description: `0: Authorization has been denied for this request.`,
907
- },
908
- {
909
- status: 403,
910
- description: `0: Token Validation Failed`,
911
- },
912
- {
913
- status: 404,
914
- description: `4: The universe does not exist.`,
915
- },
916
- {
917
- status: 500,
918
- description: `16: We are having a problem completing your purchase. Please try again in a few minutes.`,
919
- },
920
- ],
921
- });
922
- /**
923
- * @api GET https://games.roblox.com/v1/games/votes
924
- * @summary Gets a list of universe vote status
925
- * @param universeIds A list of universe Ids. Cannot exceed a maximum of 50 IDs.
926
- */
927
- exports.getGamesVotes = (0, __1.endpoint)({
928
- method: 'GET',
929
- path: '/v1/games/votes',
930
- baseUrl: 'https://games.roblox.com',
931
- requestFormat: 'json',
932
- serializationMethod: {
933
- universeIds: {
934
- style: 'form',
935
- },
936
- },
937
- parameters: {
938
- universeIds: zod_1.z.array(zod_1.z.number()),
939
- },
940
- response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_,
941
- errors: [
942
- {
943
- status: 400,
944
- description: `3: The asset is not voteable.
945
- 8: No universe IDs were specified.
946
- 9: Too many universe IDs were requested.`,
947
- },
948
- {
949
- status: 429,
950
- description: `10: Internal service busy. Please try again later.`,
951
- },
952
- {
953
- status: 500,
954
- description: `0: An unknown error occurred.`,
955
- },
956
- ],
957
- });
958
641
  /**
959
642
  * @api GET https://games.roblox.com/v1/private-servers/enabled-in-universe/:universeId
960
643
  * @summary Checks if the private servers are enabled in the specified universe.
@@ -981,262 +664,3 @@ exports.getPrivateServersEnabledInUniverseUniverseid = (0, __1.endpoint)({
981
664
  },
982
665
  ],
983
666
  });
984
- /**
985
- * @api GET https://games.roblox.com/v1/private-servers/my-private-servers
986
- * @summary Get private servers for the authenticated user
987
- * @param privateServersTab Type of private server to fetch
988
- * @param itemsPerPage Number of items per page
989
- * @param cursor Current cursor
990
- */
991
- exports.getPrivateServersMyPrivateServers = (0, __1.endpoint)({
992
- method: 'GET',
993
- path: '/v1/private-servers/my-private-servers',
994
- baseUrl: 'https://games.roblox.com',
995
- requestFormat: 'json',
996
- serializationMethod: {
997
- privateServersTab: {
998
- style: 'form',
999
- explode: true,
1000
- },
1001
- itemsPerPage: {
1002
- style: 'form',
1003
- explode: true,
1004
- },
1005
- cursor: {
1006
- style: 'form',
1007
- explode: true,
1008
- },
1009
- },
1010
- parameters: {
1011
- privateServersTab: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]).optional(),
1012
- itemsPerPage: zod_1.z.number().int().optional().default(25),
1013
- cursor: zod_1.z.string().optional(),
1014
- },
1015
- response: Roblox_Games_Api_Models_Response_MyPrivateServersResponse,
1016
- errors: [
1017
- {
1018
- status: 400,
1019
- description: `39: Invalid cursor provided in the request.`,
1020
- },
1021
- {
1022
- status: 401,
1023
- description: `0: Authorization has been denied for this request.`,
1024
- },
1025
- ],
1026
- });
1027
- /**
1028
- * @api GET https://games.roblox.com/v1/vip-server/can-invite/:userId
1029
- * @summary Determines if a user by id is allowed to receive a VIP Server invite from the authenticated user.
1030
- * @param userId The user id.
1031
- */
1032
- exports.getVipServerCanInviteUserid = (0, __1.endpoint)({
1033
- method: 'GET',
1034
- path: '/v1/vip-server/can-invite/:userId',
1035
- baseUrl: 'https://games.roblox.com',
1036
- requestFormat: 'json',
1037
- serializationMethod: {
1038
- userId: {
1039
- style: 'simple',
1040
- },
1041
- },
1042
- parameters: {
1043
- userId: zod_1.z.number().int(),
1044
- },
1045
- response: Roblox_Games_Api_VipServerCanInviteResponse,
1046
- errors: [
1047
- {
1048
- status: 401,
1049
- description: `0: Authorization has been denied for this request.`,
1050
- },
1051
- {
1052
- status: 404,
1053
- description: `19: The user is does not exist.`,
1054
- },
1055
- ],
1056
- });
1057
- /**
1058
- * @api GET https://games.roblox.com/v1/vip-servers/:id
1059
- * @summary Get necessary data to generate webpage
1060
- * @param id The VIP Server ID
1061
- */
1062
- exports.getVipServersId = (0, __1.endpoint)({
1063
- method: 'GET',
1064
- path: '/v1/vip-servers/:id',
1065
- baseUrl: 'https://games.roblox.com',
1066
- requestFormat: 'json',
1067
- serializationMethod: {
1068
- id: {
1069
- style: 'simple',
1070
- },
1071
- },
1072
- parameters: {
1073
- id: zod_1.z.number().int(),
1074
- },
1075
- response: Roblox_Games_Api_VipServerResponse,
1076
- errors: [
1077
- {
1078
- status: 400,
1079
- description: `8: The creator of this game has disabled private servers for this game.`,
1080
- },
1081
- {
1082
- status: 401,
1083
- description: `0: Authorization has been denied for this request.`,
1084
- },
1085
- {
1086
- status: 403,
1087
- description: `2: You are not the owner of this private server.`,
1088
- },
1089
- {
1090
- status: 404,
1091
- description: `1: The private server is invalid or does not exist.
1092
- 4: The universe does not exist.`,
1093
- },
1094
- ],
1095
- });
1096
- /**
1097
- * @api PATCH https://games.roblox.com/v1/vip-servers/:id
1098
- * @summary Updates vip server
1099
- * @param body The Roblox.Games.Api.VipServerUpdateRequest
1100
- * @param id The VIP Server ID
1101
- */
1102
- exports.patchVipServersId = (0, __1.endpoint)({
1103
- method: 'PATCH',
1104
- path: '/v1/vip-servers/:id',
1105
- baseUrl: 'https://games.roblox.com',
1106
- requestFormat: 'json',
1107
- serializationMethod: {
1108
- body: {},
1109
- id: {
1110
- style: 'simple',
1111
- },
1112
- },
1113
- parameters: {
1114
- id: zod_1.z.number().int(),
1115
- },
1116
- body: Roblox_Games_Api_VipServerUpdateRequest,
1117
- response: Roblox_Games_Api_VipServerResponse,
1118
- errors: [
1119
- {
1120
- status: 400,
1121
- description: `8: The creator of this game has disabled private servers for this game.
1122
- 10: The name of the private server is either empty or too long.`,
1123
- },
1124
- {
1125
- status: 401,
1126
- description: `0: Authorization has been denied for this request.`,
1127
- },
1128
- {
1129
- status: 403,
1130
- description: `0: Token Validation Failed
1131
- 2: You are not the owner of this private server.
1132
- 11: You cannot activate a cancelled private server.
1133
- 12: The game must not be Friends Only to allow private servers.
1134
- 13: Join Link can be generated only for active private servers.`,
1135
- },
1136
- {
1137
- status: 404,
1138
- description: `1: The private server is invalid or does not exist.
1139
- 4: The universe does not exist.`,
1140
- },
1141
- {
1142
- status: 429,
1143
- description: `3: Please wait a few minutes before configuring your private server again.`,
1144
- },
1145
- ],
1146
- });
1147
- /**
1148
- * @api PATCH https://games.roblox.com/v1/vip-servers/:id/permissions
1149
- * @summary Update friend/clan access and allowed friends/clan list
1150
- * @param body The Roblox.Games.Api.VipServerUpdatePermissionsRequest
1151
- * @param id The VIP Server ID
1152
- */
1153
- exports.patchVipServersIdPermissions = (0, __1.endpoint)({
1154
- method: 'PATCH',
1155
- path: '/v1/vip-servers/:id/permissions',
1156
- baseUrl: 'https://games.roblox.com',
1157
- requestFormat: 'json',
1158
- serializationMethod: {
1159
- body: {},
1160
- id: {
1161
- style: 'simple',
1162
- },
1163
- },
1164
- parameters: {
1165
- id: zod_1.z.number().int(),
1166
- },
1167
- body: Roblox_Games_Api_VipServerUpdatePermissionsRequest,
1168
- response: Roblox_Games_Api_VipServerPermissionsResponse,
1169
- errors: [
1170
- {
1171
- status: 400,
1172
- description: `6: You cannot add so many players to the private server's invite list.
1173
- 8: The creator of this game has disabled private servers for this game.
1174
- 12: The game must not be Friends Only to allow private servers.
1175
- 28: You may only add or remove valid players to your private server's invite list.
1176
- 29: You may only add or remove players when your private server is active.`,
1177
- },
1178
- {
1179
- status: 401,
1180
- description: `0: Authorization has been denied for this request.`,
1181
- },
1182
- {
1183
- status: 403,
1184
- description: `0: Token Validation Failed
1185
- 2: You are not the owner of this private server.`,
1186
- },
1187
- {
1188
- status: 404,
1189
- description: `1: The private server is invalid or does not exist.
1190
- 4: The universe does not exist.`,
1191
- },
1192
- ],
1193
- });
1194
- /**
1195
- * @api PATCH https://games.roblox.com/v1/vip-servers/:id/subscription
1196
- * @summary Updates subscription status of a vip server
1197
- * @param body The Roblox.Games.Api.VipServerUpdateSubscriptionRequest
1198
- * @param id The VIP Server ID
1199
- */
1200
- exports.patchVipServersIdSubscription = (0, __1.endpoint)({
1201
- method: 'PATCH',
1202
- path: '/v1/vip-servers/:id/subscription',
1203
- baseUrl: 'https://games.roblox.com',
1204
- requestFormat: 'json',
1205
- serializationMethod: {
1206
- body: {},
1207
- id: {
1208
- style: 'simple',
1209
- },
1210
- },
1211
- parameters: {
1212
- id: zod_1.z.number().int(),
1213
- },
1214
- body: Roblox_Games_Api_VipServerUpdateSubscriptionRequest,
1215
- response: Roblox_Games_Api_VipServerSubscriptionResponse,
1216
- errors: [
1217
- {
1218
- status: 400,
1219
- description: `8: The creator of this game has disabled private servers for this game.
1220
- 32: You do not have enough funds available to renew the subscription for this private server.`,
1221
- },
1222
- {
1223
- status: 401,
1224
- description: `0: Authorization has been denied for this request.`,
1225
- },
1226
- {
1227
- status: 403,
1228
- description: `0: Token Validation Failed
1229
- 2: You are not the owner of this private server.
1230
- 21: You may not configure a cancelled private server. Please renew your subscription before configuring.`,
1231
- },
1232
- {
1233
- status: 404,
1234
- description: `1: The private server is invalid or does not exist.
1235
- 4: The universe does not exist.`,
1236
- },
1237
- {
1238
- status: 429,
1239
- description: `3: Please wait a few minutes before configuring your private server again.`,
1240
- },
1241
- ],
1242
- });