rozod 6.4.1 → 6.4.2
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.
- package/lib/endpoints/avatarv2.d.ts +22 -0
- package/lib/endpoints/avatarv2.js +24 -1
- package/lib/endpoints/friendsv1.d.ts +42 -0
- package/lib/endpoints/friendsv1.js +37 -1
- package/lib/endpoints/gamesv1.d.ts +333 -0
- package/lib/endpoints/gamesv1.js +368 -1
- package/lib/endpoints/gamesv2.d.ts +188 -141
- package/lib/endpoints/gamesv2.js +41 -1
- package/lib/endpoints/itemconfigurationv1.d.ts +42 -0
- package/lib/endpoints/itemconfigurationv1.js +39 -1
- package/package.json +1 -1
package/lib/endpoints/gamesv1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.postGamesVipServersUniverseid = exports.patchVipServersIdSubscription = exports.patchVipServersIdPermissions = exports.patchVipServersId = exports.getVipServersId = exports.getVipServerCanInviteUserid = exports.getPrivateServersMyPrivateServers = exports.getGamesVotes = exports.getGamesUniverseidVotesUser = exports.getGamesUniverseidVotes = exports.patchGamesUniverseidUserVotes = exports.getGamesUniverseidGamePasses = 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({
|
|
@@ -664,3 +664,370 @@ exports.getPrivateServersEnabledInUniverseUniverseid = (0, __1.endpoint)({
|
|
|
664
664
|
},
|
|
665
665
|
],
|
|
666
666
|
});
|
|
667
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
668
|
+
const Patch_GamePassResponse = zod_1.z.object({
|
|
669
|
+
id: zod_1.z.number().int(),
|
|
670
|
+
name: zod_1.z.string(),
|
|
671
|
+
displayName: zod_1.z.string(),
|
|
672
|
+
productId: zod_1.z.number().int(),
|
|
673
|
+
price: zod_1.z.number().int(),
|
|
674
|
+
sellerName: zod_1.z.string(),
|
|
675
|
+
sellerId: zod_1.z.number().int(),
|
|
676
|
+
isOwned: zod_1.z.boolean(),
|
|
677
|
+
});
|
|
678
|
+
const Patch_ApiPageResponse_GamePassResponse = zod_1.z.object({
|
|
679
|
+
previousPageCursor: zod_1.z.string(),
|
|
680
|
+
nextPageCursor: zod_1.z.string(),
|
|
681
|
+
data: zod_1.z.array(Patch_GamePassResponse),
|
|
682
|
+
});
|
|
683
|
+
const Patch_GameVoteResponse = zod_1.z.object({
|
|
684
|
+
id: zod_1.z.number().int(),
|
|
685
|
+
upVotes: zod_1.z.number().int(),
|
|
686
|
+
downVotes: zod_1.z.number().int(),
|
|
687
|
+
});
|
|
688
|
+
const Patch_UserGameVoteResponse = zod_1.z.object({
|
|
689
|
+
canVote: zod_1.z.boolean(),
|
|
690
|
+
userVote: zod_1.z.boolean(),
|
|
691
|
+
reasonForNotVoteable: zod_1.z.string(),
|
|
692
|
+
});
|
|
693
|
+
const Patch_ApiArrayResponse_GameVoteResponse = zod_1.z.object({
|
|
694
|
+
data: zod_1.z.array(Patch_GameVoteResponse),
|
|
695
|
+
});
|
|
696
|
+
const Patch_MyPrivateServersData = zod_1.z.object({
|
|
697
|
+
active: zod_1.z.boolean(),
|
|
698
|
+
universeId: zod_1.z.number().int(),
|
|
699
|
+
placeId: zod_1.z.number().int(),
|
|
700
|
+
name: zod_1.z.string(),
|
|
701
|
+
ownerId: zod_1.z.number().int(),
|
|
702
|
+
ownerName: zod_1.z.string(),
|
|
703
|
+
priceInRobux: zod_1.z.number().int(),
|
|
704
|
+
privateServerId: zod_1.z.number().int(),
|
|
705
|
+
expirationDate: zod_1.z.string().datetime({ offset: true }),
|
|
706
|
+
willRenew: zod_1.z.boolean(),
|
|
707
|
+
universeName: zod_1.z.string(),
|
|
708
|
+
});
|
|
709
|
+
const Patch_MyPrivateServersResponse = zod_1.z.object({
|
|
710
|
+
nextPageCursor: zod_1.z.string(),
|
|
711
|
+
previousPageCursor: zod_1.z.string(),
|
|
712
|
+
data: zod_1.z.array(Patch_MyPrivateServersData),
|
|
713
|
+
});
|
|
714
|
+
const Patch_VipServerCanInviteResponse = zod_1.z.object({
|
|
715
|
+
canInvite: zod_1.z.boolean(),
|
|
716
|
+
doesOwnerPrivacyRestrictJoins: zod_1.z.boolean(),
|
|
717
|
+
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)]),
|
|
718
|
+
});
|
|
719
|
+
const Patch_PlaceResponse = zod_1.z.object({
|
|
720
|
+
id: zod_1.z.number().int(),
|
|
721
|
+
name: zod_1.z.string(),
|
|
722
|
+
});
|
|
723
|
+
const Patch_GameResponse = zod_1.z.object({
|
|
724
|
+
id: zod_1.z.number().int(),
|
|
725
|
+
name: zod_1.z.string(),
|
|
726
|
+
rootPlace: Patch_PlaceResponse,
|
|
727
|
+
});
|
|
728
|
+
const Patch_VipServerSubscriptionResponse = zod_1.z.object({
|
|
729
|
+
active: zod_1.z.boolean(),
|
|
730
|
+
expired: zod_1.z.boolean(),
|
|
731
|
+
expirationDate: zod_1.z.string().datetime({ offset: true }),
|
|
732
|
+
price: zod_1.z.number().int(),
|
|
733
|
+
canRenew: zod_1.z.boolean(),
|
|
734
|
+
hasInsufficientFunds: zod_1.z.boolean(),
|
|
735
|
+
hasRecurringProfile: zod_1.z.boolean(),
|
|
736
|
+
hasPriceChanged: zod_1.z.boolean(),
|
|
737
|
+
});
|
|
738
|
+
const Patch_SkinnyUserResponse = zod_1.z.object({
|
|
739
|
+
id: zod_1.z.number().int(),
|
|
740
|
+
name: zod_1.z.string(),
|
|
741
|
+
displayName: zod_1.z.string(),
|
|
742
|
+
});
|
|
743
|
+
const Patch_VipServerPermissionsResponse = zod_1.z.object({
|
|
744
|
+
clanAllowed: zod_1.z.boolean(),
|
|
745
|
+
enemyClanId: zod_1.z.number().int(),
|
|
746
|
+
friendsAllowed: zod_1.z.boolean(),
|
|
747
|
+
users: zod_1.z.array(Patch_SkinnyUserResponse),
|
|
748
|
+
});
|
|
749
|
+
const Patch_VipServerVoiceSettingsResponse = zod_1.z.object({
|
|
750
|
+
enabled: zod_1.z.boolean(),
|
|
751
|
+
});
|
|
752
|
+
const Patch_VipServerResponse = zod_1.z.object({
|
|
753
|
+
id: zod_1.z.number().int(),
|
|
754
|
+
name: zod_1.z.string(),
|
|
755
|
+
game: Patch_GameResponse,
|
|
756
|
+
joinCode: zod_1.z.string(),
|
|
757
|
+
active: zod_1.z.boolean(),
|
|
758
|
+
subscription: Patch_VipServerSubscriptionResponse,
|
|
759
|
+
permissions: Patch_VipServerPermissionsResponse,
|
|
760
|
+
voiceSettings: Patch_VipServerVoiceSettingsResponse,
|
|
761
|
+
link: zod_1.z.string(),
|
|
762
|
+
});
|
|
763
|
+
const Patch_VipServerUpdateRequest = zod_1.z.object({
|
|
764
|
+
name: zod_1.z.string(),
|
|
765
|
+
newJoinCode: zod_1.z.boolean(),
|
|
766
|
+
active: zod_1.z.boolean(),
|
|
767
|
+
});
|
|
768
|
+
const Patch_CreateVipServersRequest = zod_1.z.object({
|
|
769
|
+
name: zod_1.z.string(),
|
|
770
|
+
expectedPrice: zod_1.z.number().int(),
|
|
771
|
+
isPurchaseConfirmed: zod_1.z.boolean(),
|
|
772
|
+
});
|
|
773
|
+
const Patch_VipServerUpdatePermissionsRequest = zod_1.z.object({
|
|
774
|
+
clanAllowed: zod_1.z.boolean(),
|
|
775
|
+
enemyClanId: zod_1.z.number().int(),
|
|
776
|
+
friendsAllowed: zod_1.z.boolean(),
|
|
777
|
+
usersToAdd: zod_1.z.array(zod_1.z.number()),
|
|
778
|
+
usersToRemove: zod_1.z.array(zod_1.z.number()),
|
|
779
|
+
});
|
|
780
|
+
const Patch_VipServerUpdateSubscriptionRequest = zod_1.z.object({
|
|
781
|
+
active: zod_1.z.boolean(),
|
|
782
|
+
price: zod_1.z.number().int(),
|
|
783
|
+
});
|
|
784
|
+
exports.getGamesUniverseidGamePasses = (0, __1.endpoint)({
|
|
785
|
+
method: 'GET',
|
|
786
|
+
path: '/v1/games/:universeId/game-passes',
|
|
787
|
+
baseUrl: 'https://games.roblox.com',
|
|
788
|
+
requestFormat: 'json',
|
|
789
|
+
serializationMethod: {
|
|
790
|
+
universeId: { style: 'simple' },
|
|
791
|
+
limit: { style: 'form', explode: true },
|
|
792
|
+
sortOrder: { style: 'form', explode: true },
|
|
793
|
+
cursor: { style: 'form', explode: true },
|
|
794
|
+
},
|
|
795
|
+
parameters: {
|
|
796
|
+
universeId: zod_1.z.number().int(),
|
|
797
|
+
limit: zod_1.z.number().int(),
|
|
798
|
+
sortOrder: zod_1.z
|
|
799
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2)])
|
|
800
|
+
.optional()
|
|
801
|
+
.default(1),
|
|
802
|
+
cursor: zod_1.z.string().optional(),
|
|
803
|
+
},
|
|
804
|
+
response: Patch_ApiPageResponse_GamePassResponse,
|
|
805
|
+
errors: [
|
|
806
|
+
{ status: 400, description: `2: The universe's root place is invalid.` },
|
|
807
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
808
|
+
],
|
|
809
|
+
});
|
|
810
|
+
exports.patchGamesUniverseidUserVotes = (0, __1.endpoint)({
|
|
811
|
+
method: 'PATCH',
|
|
812
|
+
path: '/v1/games/:universeId/user-votes',
|
|
813
|
+
baseUrl: 'https://games.roblox.com',
|
|
814
|
+
requestFormat: 'json',
|
|
815
|
+
serializationMethod: { body: {}, universeId: { style: 'simple' } },
|
|
816
|
+
parameters: { universeId: zod_1.z.number().int() },
|
|
817
|
+
body: zod_1.z.object({ vote: zod_1.z.boolean() }),
|
|
818
|
+
response: zod_1.z.object({}),
|
|
819
|
+
errors: [
|
|
820
|
+
{
|
|
821
|
+
status: 400,
|
|
822
|
+
description: `2: The universe's root place is invalid.\n3: The asset is not voteable.\n4: The requested vote is invalid.`,
|
|
823
|
+
},
|
|
824
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
825
|
+
{
|
|
826
|
+
status: 403,
|
|
827
|
+
description: `0: Token Validation Failed\n6: The user needs to play the game before vote.\n7: The user needs additional permission to vote.`,
|
|
828
|
+
},
|
|
829
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
830
|
+
{
|
|
831
|
+
status: 429,
|
|
832
|
+
description: `5: Too many attempts to vote. Please try again later.\n10: Internal service busy. Please try again later.`,
|
|
833
|
+
},
|
|
834
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
835
|
+
],
|
|
836
|
+
});
|
|
837
|
+
exports.getGamesUniverseidVotes = (0, __1.endpoint)({
|
|
838
|
+
method: 'GET',
|
|
839
|
+
path: '/v1/games/:universeId/votes',
|
|
840
|
+
baseUrl: 'https://games.roblox.com',
|
|
841
|
+
requestFormat: 'json',
|
|
842
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
843
|
+
parameters: { universeId: zod_1.z.number().int() },
|
|
844
|
+
response: Patch_GameVoteResponse,
|
|
845
|
+
errors: [
|
|
846
|
+
{ status: 400, description: `2: The universe's root place is invalid.\n3: The asset is not voteable.` },
|
|
847
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
848
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
849
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
850
|
+
],
|
|
851
|
+
});
|
|
852
|
+
exports.getGamesUniverseidVotesUser = (0, __1.endpoint)({
|
|
853
|
+
method: 'GET',
|
|
854
|
+
path: '/v1/games/:universeId/votes/user',
|
|
855
|
+
baseUrl: 'https://games.roblox.com',
|
|
856
|
+
requestFormat: 'json',
|
|
857
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
858
|
+
parameters: { universeId: zod_1.z.number().int() },
|
|
859
|
+
response: Patch_UserGameVoteResponse,
|
|
860
|
+
errors: [
|
|
861
|
+
{ status: 400, description: `2: The universe's root place is invalid.\n3: The asset is not voteable.` },
|
|
862
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
863
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
864
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
865
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
866
|
+
],
|
|
867
|
+
});
|
|
868
|
+
exports.getGamesVotes = (0, __1.endpoint)({
|
|
869
|
+
method: 'GET',
|
|
870
|
+
path: '/v1/games/votes',
|
|
871
|
+
baseUrl: 'https://games.roblox.com',
|
|
872
|
+
requestFormat: 'json',
|
|
873
|
+
serializationMethod: { universeIds: { style: 'form' } },
|
|
874
|
+
parameters: { universeIds: zod_1.z.array(zod_1.z.number()) },
|
|
875
|
+
response: Patch_ApiArrayResponse_GameVoteResponse,
|
|
876
|
+
errors: [
|
|
877
|
+
{
|
|
878
|
+
status: 400,
|
|
879
|
+
description: `3: The asset is not voteable.\n8: No universe IDs were specified.\n9: Too many universe IDs were requested.`,
|
|
880
|
+
},
|
|
881
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
882
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
883
|
+
],
|
|
884
|
+
});
|
|
885
|
+
exports.getPrivateServersMyPrivateServers = (0, __1.endpoint)({
|
|
886
|
+
method: 'GET',
|
|
887
|
+
path: '/v1/private-servers/my-private-servers',
|
|
888
|
+
baseUrl: 'https://games.roblox.com',
|
|
889
|
+
requestFormat: 'json',
|
|
890
|
+
serializationMethod: {
|
|
891
|
+
privateServersTab: { style: 'form', explode: true },
|
|
892
|
+
itemsPerPage: { style: 'form', explode: true },
|
|
893
|
+
cursor: { style: 'form', explode: true },
|
|
894
|
+
},
|
|
895
|
+
parameters: {
|
|
896
|
+
privateServersTab: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]).optional(),
|
|
897
|
+
itemsPerPage: zod_1.z.number().int().optional().default(25),
|
|
898
|
+
cursor: zod_1.z.string().optional(),
|
|
899
|
+
},
|
|
900
|
+
response: Patch_MyPrivateServersResponse,
|
|
901
|
+
errors: [
|
|
902
|
+
{ status: 400, description: `39: Invalid cursor provided in the request.` },
|
|
903
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
904
|
+
],
|
|
905
|
+
});
|
|
906
|
+
exports.getVipServerCanInviteUserid = (0, __1.endpoint)({
|
|
907
|
+
method: 'GET',
|
|
908
|
+
path: '/v1/vip-server/can-invite/:userId',
|
|
909
|
+
baseUrl: 'https://games.roblox.com',
|
|
910
|
+
requestFormat: 'json',
|
|
911
|
+
serializationMethod: { userId: { style: 'simple' } },
|
|
912
|
+
parameters: { userId: zod_1.z.number().int() },
|
|
913
|
+
response: Patch_VipServerCanInviteResponse,
|
|
914
|
+
errors: [
|
|
915
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
916
|
+
{ status: 404, description: `19: The user is does not exist.` },
|
|
917
|
+
],
|
|
918
|
+
});
|
|
919
|
+
exports.getVipServersId = (0, __1.endpoint)({
|
|
920
|
+
method: 'GET',
|
|
921
|
+
path: '/v1/vip-servers/:id',
|
|
922
|
+
baseUrl: 'https://games.roblox.com',
|
|
923
|
+
requestFormat: 'json',
|
|
924
|
+
serializationMethod: { id: { style: 'simple' } },
|
|
925
|
+
parameters: { id: zod_1.z.number().int() },
|
|
926
|
+
response: Patch_VipServerResponse,
|
|
927
|
+
errors: [
|
|
928
|
+
{ status: 400, description: `8: The creator of this game has disabled private servers for this game.` },
|
|
929
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
930
|
+
{ status: 403, description: `2: You are not the owner of this private server.` },
|
|
931
|
+
{
|
|
932
|
+
status: 404,
|
|
933
|
+
description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.`,
|
|
934
|
+
},
|
|
935
|
+
],
|
|
936
|
+
});
|
|
937
|
+
exports.patchVipServersId = (0, __1.endpoint)({
|
|
938
|
+
method: 'PATCH',
|
|
939
|
+
path: '/v1/vip-servers/:id',
|
|
940
|
+
baseUrl: 'https://games.roblox.com',
|
|
941
|
+
requestFormat: 'json',
|
|
942
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
943
|
+
parameters: { id: zod_1.z.number().int() },
|
|
944
|
+
body: Patch_VipServerUpdateRequest,
|
|
945
|
+
response: Patch_VipServerResponse,
|
|
946
|
+
errors: [
|
|
947
|
+
{
|
|
948
|
+
status: 400,
|
|
949
|
+
description: `8: The creator of this game has disabled private servers for this game.\n10: The name of the private server is either empty or too long.`,
|
|
950
|
+
},
|
|
951
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
952
|
+
{
|
|
953
|
+
status: 403,
|
|
954
|
+
description: `0: Token Validation Failed\n2: You are not the owner of this private server.\n11: You cannot activate a cancelled private server.\n12: The game must not be Friends Only to allow private servers.\n13: Join Link can be generated only for active private servers.`,
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
status: 404,
|
|
958
|
+
description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.`,
|
|
959
|
+
},
|
|
960
|
+
{ status: 429, description: `3: Please wait a few minutes before configuring your private server again.` },
|
|
961
|
+
],
|
|
962
|
+
});
|
|
963
|
+
exports.patchVipServersIdPermissions = (0, __1.endpoint)({
|
|
964
|
+
method: 'PATCH',
|
|
965
|
+
path: '/v1/vip-servers/:id/permissions',
|
|
966
|
+
baseUrl: 'https://games.roblox.com',
|
|
967
|
+
requestFormat: 'json',
|
|
968
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
969
|
+
parameters: { id: zod_1.z.number().int() },
|
|
970
|
+
body: Patch_VipServerUpdatePermissionsRequest,
|
|
971
|
+
response: Patch_VipServerPermissionsResponse,
|
|
972
|
+
errors: [
|
|
973
|
+
{
|
|
974
|
+
status: 400,
|
|
975
|
+
description: `6: You cannot add so many players to the private server's invite list.\n8: The creator of this game has disabled private servers for this game.\n12: The game must not be Friends Only to allow private servers.\n28: You may only add or remove valid players to your private server's invite list.\n29: You may only add or remove players when your private server is active.`,
|
|
976
|
+
},
|
|
977
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
978
|
+
{ status: 403, description: `0: Token Validation Failed\n2: You are not the owner of this private server.` },
|
|
979
|
+
{
|
|
980
|
+
status: 404,
|
|
981
|
+
description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.`,
|
|
982
|
+
},
|
|
983
|
+
],
|
|
984
|
+
});
|
|
985
|
+
exports.patchVipServersIdSubscription = (0, __1.endpoint)({
|
|
986
|
+
method: 'PATCH',
|
|
987
|
+
path: '/v1/vip-servers/:id/subscription',
|
|
988
|
+
baseUrl: 'https://games.roblox.com',
|
|
989
|
+
requestFormat: 'json',
|
|
990
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
991
|
+
parameters: { id: zod_1.z.number().int() },
|
|
992
|
+
body: Patch_VipServerUpdateSubscriptionRequest,
|
|
993
|
+
response: Patch_VipServerSubscriptionResponse,
|
|
994
|
+
errors: [
|
|
995
|
+
{
|
|
996
|
+
status: 400,
|
|
997
|
+
description: `8: The creator of this game has disabled private servers for this game.\n32: You do not have enough funds available to renew the subscription for this private server.`,
|
|
998
|
+
},
|
|
999
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1000
|
+
{
|
|
1001
|
+
status: 403,
|
|
1002
|
+
description: `0: Token Validation Failed\n2: You are not the owner of this private server.\n21: You may not configure a cancelled private server. Please renew your subscription before configuring.`,
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
status: 404,
|
|
1006
|
+
description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.`,
|
|
1007
|
+
},
|
|
1008
|
+
{ status: 429, description: `3: Please wait a few minutes before configuring your private server again.` },
|
|
1009
|
+
],
|
|
1010
|
+
});
|
|
1011
|
+
exports.postGamesVipServersUniverseid = (0, __1.endpoint)({
|
|
1012
|
+
method: 'POST',
|
|
1013
|
+
path: '/v1/games/vip-servers/:universeId',
|
|
1014
|
+
baseUrl: 'https://games.roblox.com',
|
|
1015
|
+
requestFormat: 'json',
|
|
1016
|
+
serializationMethod: { body: {}, universeId: { style: 'simple' } },
|
|
1017
|
+
parameters: { universeId: zod_1.z.number().int() },
|
|
1018
|
+
body: Patch_CreateVipServersRequest,
|
|
1019
|
+
response: Roblox_Web_Responses_Games_GameServerResponse,
|
|
1020
|
+
errors: [
|
|
1021
|
+
{
|
|
1022
|
+
status: 400,
|
|
1023
|
+
description: `15: The price for purchasing this private server has changed. Please refresh the page and try again.`,
|
|
1024
|
+
},
|
|
1025
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1026
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1027
|
+
{ status: 404, description: `4: The universe does not exist.` },
|
|
1028
|
+
{
|
|
1029
|
+
status: 500,
|
|
1030
|
+
description: `16: We are having a problem completing your purchase. Please try again in a few minutes.`,
|
|
1031
|
+
},
|
|
1032
|
+
],
|
|
1033
|
+
});
|