rozod 6.4.1 → 6.5.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.
- package/lib/endpoints/authv1.d.ts +3 -0
- package/lib/endpoints/authv1.js +3 -0
- package/lib/endpoints/authv2.d.ts +2 -0
- package/lib/endpoints/authv2.js +2 -0
- package/lib/endpoints/avatarv2.d.ts +22 -0
- package/lib/endpoints/avatarv2.js +24 -1
- package/lib/endpoints/catalogv1.d.ts +1 -0
- package/lib/endpoints/catalogv1.js +1 -0
- package/lib/endpoints/catalogv2.d.ts +1 -0
- package/lib/endpoints/catalogv2.js +1 -0
- package/lib/endpoints/friendsv1.d.ts +42 -0
- package/lib/endpoints/friendsv1.js +37 -1
- package/lib/endpoints/gameinternationalizationv1.d.ts +40 -0
- package/lib/endpoints/gameinternationalizationv1.js +42 -1
- package/lib/endpoints/gamesv1.d.ts +345 -0
- package/lib/endpoints/gamesv1.js +380 -1
- package/lib/endpoints/gamesv2.d.ts +188 -141
- package/lib/endpoints/gamesv2.js +41 -1
- package/lib/endpoints/groupsv1.d.ts +2 -0
- package/lib/endpoints/groupsv1.js +2 -0
- package/lib/endpoints/groupsv2.d.ts +150 -0
- package/lib/endpoints/groupsv2.js +146 -1
- package/lib/endpoints/itemconfigurationv1.d.ts +42 -0
- package/lib/endpoints/itemconfigurationv1.js +39 -1
- package/lib/endpoints/twostepverificationv1.d.ts +2 -0
- package/lib/endpoints/twostepverificationv1.js +2 -0
- package/lib/index.js +1 -1
- package/lib/opencloud/v1/messaging.d.ts +2 -0
- package/lib/opencloud/v1/messaging.js +2 -0
- package/lib/opencloud/v2/cloud.d.ts +0 -5
- package/lib/opencloud/v2/cloud.js +0 -5
- package/package.json +1 -1
|
@@ -144,6 +144,16 @@ const Roblox_Games_Api_Models_Response_PlaceDetails = z.object({
|
|
|
144
144
|
imageToken: z.string(),
|
|
145
145
|
fiatPurchaseData: Roblox_Games_Api_Models_Response_PurchaseData,
|
|
146
146
|
});
|
|
147
|
+
const Roblox_Games_Api_Models_Response_PlayableUxTreatmentData = z.object({
|
|
148
|
+
titleText: z.string(),
|
|
149
|
+
bodyText: z.string(),
|
|
150
|
+
primaryActionText: z.string(),
|
|
151
|
+
secondaryActionText: z.string(),
|
|
152
|
+
});
|
|
153
|
+
const Roblox_Games_Api_Models_Response_PlayableUxTreatment = z.object({
|
|
154
|
+
treatment: z.string(),
|
|
155
|
+
data: Roblox_Games_Api_Models_Response_PlayableUxTreatmentData,
|
|
156
|
+
});
|
|
147
157
|
const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = z.object({
|
|
148
158
|
playabilityStatus: z.enum([
|
|
149
159
|
"UnplayableOtherReason",
|
|
@@ -176,6 +186,7 @@ const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = z.object({
|
|
|
176
186
|
isPlayable: z.boolean(),
|
|
177
187
|
universeId: z.number().int(),
|
|
178
188
|
unplayableDisplayText: z.string(),
|
|
189
|
+
playableUxTreatment: Roblox_Games_Api_Models_Response_PlayableUxTreatment,
|
|
179
190
|
});
|
|
180
191
|
const Roblox_Games_Api_Models_Response_GameResponseModel = z.object({
|
|
181
192
|
creatorId: z.number().int(),
|
|
@@ -198,6 +209,7 @@ const Roblox_Games_Api_Models_Response_GameResponseModel = z.object({
|
|
|
198
209
|
genre: z.string(),
|
|
199
210
|
minimumAge: z.number().int(),
|
|
200
211
|
ageRecommendationDisplayName: z.string(),
|
|
212
|
+
canonicalUrlPath: z.string(),
|
|
201
213
|
});
|
|
202
214
|
const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = z.object({
|
|
203
215
|
games: z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
@@ -668,3 +680,336 @@ export const getPrivateServersEnabledInUniverseUniverseid = endpoint({
|
|
|
668
680
|
},
|
|
669
681
|
],
|
|
670
682
|
});
|
|
683
|
+
|
|
684
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
685
|
+
|
|
686
|
+
const Patch_GamePassResponse = z.object({
|
|
687
|
+
id: z.number().int(),
|
|
688
|
+
name: z.string(),
|
|
689
|
+
displayName: z.string(),
|
|
690
|
+
productId: z.number().int(),
|
|
691
|
+
price: z.number().int(),
|
|
692
|
+
sellerName: z.string(),
|
|
693
|
+
sellerId: z.number().int(),
|
|
694
|
+
isOwned: z.boolean(),
|
|
695
|
+
});
|
|
696
|
+
const Patch_ApiPageResponse_GamePassResponse = z.object({
|
|
697
|
+
previousPageCursor: z.string(),
|
|
698
|
+
nextPageCursor: z.string(),
|
|
699
|
+
data: z.array(Patch_GamePassResponse),
|
|
700
|
+
});
|
|
701
|
+
const Patch_GameVoteResponse = z.object({
|
|
702
|
+
id: z.number().int(),
|
|
703
|
+
upVotes: z.number().int(),
|
|
704
|
+
downVotes: z.number().int(),
|
|
705
|
+
});
|
|
706
|
+
const Patch_UserGameVoteResponse = z.object({
|
|
707
|
+
canVote: z.boolean(),
|
|
708
|
+
userVote: z.boolean(),
|
|
709
|
+
reasonForNotVoteable: z.string(),
|
|
710
|
+
});
|
|
711
|
+
const Patch_ApiArrayResponse_GameVoteResponse = z.object({
|
|
712
|
+
data: z.array(Patch_GameVoteResponse),
|
|
713
|
+
});
|
|
714
|
+
const Patch_MyPrivateServersData = z.object({
|
|
715
|
+
active: z.boolean(),
|
|
716
|
+
universeId: z.number().int(),
|
|
717
|
+
placeId: z.number().int(),
|
|
718
|
+
name: z.string(),
|
|
719
|
+
ownerId: z.number().int(),
|
|
720
|
+
ownerName: z.string(),
|
|
721
|
+
priceInRobux: z.number().int(),
|
|
722
|
+
privateServerId: z.number().int(),
|
|
723
|
+
expirationDate: z.string().datetime({ offset: true }),
|
|
724
|
+
willRenew: z.boolean(),
|
|
725
|
+
universeName: z.string(),
|
|
726
|
+
});
|
|
727
|
+
const Patch_MyPrivateServersResponse = z.object({
|
|
728
|
+
nextPageCursor: z.string(),
|
|
729
|
+
previousPageCursor: z.string(),
|
|
730
|
+
data: z.array(Patch_MyPrivateServersData),
|
|
731
|
+
});
|
|
732
|
+
const Patch_VipServerCanInviteResponse = z.object({
|
|
733
|
+
canInvite: z.boolean(),
|
|
734
|
+
doesOwnerPrivacyRestrictJoins: z.boolean(),
|
|
735
|
+
inviteResponseType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
|
|
736
|
+
});
|
|
737
|
+
const Patch_PlaceResponse = z.object({
|
|
738
|
+
id: z.number().int(),
|
|
739
|
+
name: z.string(),
|
|
740
|
+
});
|
|
741
|
+
const Patch_GameResponse = z.object({
|
|
742
|
+
id: z.number().int(),
|
|
743
|
+
name: z.string(),
|
|
744
|
+
rootPlace: Patch_PlaceResponse,
|
|
745
|
+
});
|
|
746
|
+
const Patch_VipServerSubscriptionResponse = z.object({
|
|
747
|
+
active: z.boolean(),
|
|
748
|
+
expired: z.boolean(),
|
|
749
|
+
expirationDate: z.string().datetime({ offset: true }),
|
|
750
|
+
price: z.number().int(),
|
|
751
|
+
canRenew: z.boolean(),
|
|
752
|
+
hasInsufficientFunds: z.boolean(),
|
|
753
|
+
hasRecurringProfile: z.boolean(),
|
|
754
|
+
hasPriceChanged: z.boolean(),
|
|
755
|
+
});
|
|
756
|
+
const Patch_SkinnyUserResponse = z.object({
|
|
757
|
+
id: z.number().int(),
|
|
758
|
+
name: z.string(),
|
|
759
|
+
displayName: z.string(),
|
|
760
|
+
});
|
|
761
|
+
const Patch_VipServerPermissionsResponse = z.object({
|
|
762
|
+
clanAllowed: z.boolean(),
|
|
763
|
+
enemyClanId: z.number().int(),
|
|
764
|
+
friendsAllowed: z.boolean(),
|
|
765
|
+
users: z.array(Patch_SkinnyUserResponse),
|
|
766
|
+
});
|
|
767
|
+
const Patch_VipServerVoiceSettingsResponse = z.object({
|
|
768
|
+
enabled: z.boolean(),
|
|
769
|
+
});
|
|
770
|
+
const Patch_VipServerResponse = z.object({
|
|
771
|
+
id: z.number().int(),
|
|
772
|
+
name: z.string(),
|
|
773
|
+
game: Patch_GameResponse,
|
|
774
|
+
joinCode: z.string(),
|
|
775
|
+
active: z.boolean(),
|
|
776
|
+
subscription: Patch_VipServerSubscriptionResponse,
|
|
777
|
+
permissions: Patch_VipServerPermissionsResponse,
|
|
778
|
+
voiceSettings: Patch_VipServerVoiceSettingsResponse,
|
|
779
|
+
link: z.string(),
|
|
780
|
+
});
|
|
781
|
+
const Patch_VipServerUpdateRequest = z.object({
|
|
782
|
+
name: z.string(),
|
|
783
|
+
newJoinCode: z.boolean(),
|
|
784
|
+
active: z.boolean(),
|
|
785
|
+
});
|
|
786
|
+
const Patch_CreateVipServersRequest = z.object({
|
|
787
|
+
name: z.string(),
|
|
788
|
+
expectedPrice: z.number().int(),
|
|
789
|
+
isPurchaseConfirmed: z.boolean(),
|
|
790
|
+
});
|
|
791
|
+
const Patch_VipServerUpdatePermissionsRequest = z.object({
|
|
792
|
+
clanAllowed: z.boolean(),
|
|
793
|
+
enemyClanId: z.number().int(),
|
|
794
|
+
friendsAllowed: z.boolean(),
|
|
795
|
+
usersToAdd: z.array(z.number()),
|
|
796
|
+
usersToRemove: z.array(z.number()),
|
|
797
|
+
});
|
|
798
|
+
const Patch_VipServerUpdateSubscriptionRequest = z.object({
|
|
799
|
+
active: z.boolean(),
|
|
800
|
+
price: z.number().int(),
|
|
801
|
+
});
|
|
802
|
+
|
|
803
|
+
export const getGamesUniverseidGamePasses = endpoint({
|
|
804
|
+
method: 'GET',
|
|
805
|
+
path: '/v1/games/:universeId/game-passes',
|
|
806
|
+
baseUrl: 'https://games.roblox.com',
|
|
807
|
+
requestFormat: 'json',
|
|
808
|
+
serializationMethod: {
|
|
809
|
+
universeId: { style: 'simple' },
|
|
810
|
+
limit: { style: 'form', explode: true },
|
|
811
|
+
sortOrder: { style: 'form', explode: true },
|
|
812
|
+
cursor: { style: 'form', explode: true },
|
|
813
|
+
},
|
|
814
|
+
parameters: {
|
|
815
|
+
universeId: z.number().int(),
|
|
816
|
+
limit: z.number().int(),
|
|
817
|
+
sortOrder: z.union([z.literal(1), z.literal(2)]).optional().default(1),
|
|
818
|
+
cursor: z.string().optional(),
|
|
819
|
+
},
|
|
820
|
+
response: Patch_ApiPageResponse_GamePassResponse,
|
|
821
|
+
errors: [
|
|
822
|
+
{ status: 400, description: `2: The universe's root place is invalid.` },
|
|
823
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
824
|
+
],
|
|
825
|
+
});
|
|
826
|
+
|
|
827
|
+
export const patchGamesUniverseidUserVotes = endpoint({
|
|
828
|
+
method: 'PATCH',
|
|
829
|
+
path: '/v1/games/:universeId/user-votes',
|
|
830
|
+
baseUrl: 'https://games.roblox.com',
|
|
831
|
+
requestFormat: 'json',
|
|
832
|
+
serializationMethod: { body: {}, universeId: { style: 'simple' } },
|
|
833
|
+
parameters: { universeId: z.number().int() },
|
|
834
|
+
body: z.object({ vote: z.boolean() }),
|
|
835
|
+
response: z.object({}),
|
|
836
|
+
errors: [
|
|
837
|
+
{ status: 400, description: `2: The universe's root place is invalid.\n3: The asset is not voteable.\n4: The requested vote is invalid.` },
|
|
838
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
839
|
+
{ status: 403, description: `0: Token Validation Failed\n6: The user needs to play the game before vote.\n7: The user needs additional permission to vote.` },
|
|
840
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
841
|
+
{ status: 429, description: `5: Too many attempts to vote. Please try again later.\n10: Internal service busy. Please try again later.` },
|
|
842
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
843
|
+
],
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
export const getGamesUniverseidVotes = endpoint({
|
|
847
|
+
method: 'GET',
|
|
848
|
+
path: '/v1/games/:universeId/votes',
|
|
849
|
+
baseUrl: 'https://games.roblox.com',
|
|
850
|
+
requestFormat: 'json',
|
|
851
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
852
|
+
parameters: { universeId: z.number().int() },
|
|
853
|
+
response: Patch_GameVoteResponse,
|
|
854
|
+
errors: [
|
|
855
|
+
{ status: 400, description: `2: The universe's root place is invalid.\n3: The asset is not voteable.` },
|
|
856
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
857
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
858
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
859
|
+
],
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
export const getGamesUniverseidVotesUser = endpoint({
|
|
863
|
+
method: 'GET',
|
|
864
|
+
path: '/v1/games/:universeId/votes/user',
|
|
865
|
+
baseUrl: 'https://games.roblox.com',
|
|
866
|
+
requestFormat: 'json',
|
|
867
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
868
|
+
parameters: { universeId: z.number().int() },
|
|
869
|
+
response: Patch_UserGameVoteResponse,
|
|
870
|
+
errors: [
|
|
871
|
+
{ status: 400, description: `2: The universe's root place is invalid.\n3: The asset is not voteable.` },
|
|
872
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
873
|
+
{ status: 404, description: `1: The requested universe does not exist.` },
|
|
874
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
875
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
876
|
+
],
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
export const getGamesVotes = endpoint({
|
|
880
|
+
method: 'GET',
|
|
881
|
+
path: '/v1/games/votes',
|
|
882
|
+
baseUrl: 'https://games.roblox.com',
|
|
883
|
+
requestFormat: 'json',
|
|
884
|
+
serializationMethod: { universeIds: { style: 'form' } },
|
|
885
|
+
parameters: { universeIds: z.array(z.number()) },
|
|
886
|
+
response: Patch_ApiArrayResponse_GameVoteResponse,
|
|
887
|
+
errors: [
|
|
888
|
+
{ status: 400, description: `3: The asset is not voteable.\n8: No universe IDs were specified.\n9: Too many universe IDs were requested.` },
|
|
889
|
+
{ status: 429, description: `10: Internal service busy. Please try again later.` },
|
|
890
|
+
{ status: 500, description: `0: An unknown error occurred.` },
|
|
891
|
+
],
|
|
892
|
+
});
|
|
893
|
+
|
|
894
|
+
export const getPrivateServersMyPrivateServers = endpoint({
|
|
895
|
+
method: 'GET',
|
|
896
|
+
path: '/v1/private-servers/my-private-servers',
|
|
897
|
+
baseUrl: 'https://games.roblox.com',
|
|
898
|
+
requestFormat: 'json',
|
|
899
|
+
serializationMethod: {
|
|
900
|
+
privateServersTab: { style: 'form', explode: true },
|
|
901
|
+
itemsPerPage: { style: 'form', explode: true },
|
|
902
|
+
cursor: { style: 'form', explode: true },
|
|
903
|
+
},
|
|
904
|
+
parameters: {
|
|
905
|
+
privateServersTab: z.union([z.literal(0), z.literal(1)]).optional(),
|
|
906
|
+
itemsPerPage: z.number().int().optional().default(25),
|
|
907
|
+
cursor: z.string().optional(),
|
|
908
|
+
},
|
|
909
|
+
response: Patch_MyPrivateServersResponse,
|
|
910
|
+
errors: [
|
|
911
|
+
{ status: 400, description: `39: Invalid cursor provided in the request.` },
|
|
912
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
913
|
+
],
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
export const getVipServerCanInviteUserid = endpoint({
|
|
917
|
+
method: 'GET',
|
|
918
|
+
path: '/v1/vip-server/can-invite/:userId',
|
|
919
|
+
baseUrl: 'https://games.roblox.com',
|
|
920
|
+
requestFormat: 'json',
|
|
921
|
+
serializationMethod: { userId: { style: 'simple' } },
|
|
922
|
+
parameters: { userId: z.number().int() },
|
|
923
|
+
response: Patch_VipServerCanInviteResponse,
|
|
924
|
+
errors: [
|
|
925
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
926
|
+
{ status: 404, description: `19: The user is does not exist.` },
|
|
927
|
+
],
|
|
928
|
+
});
|
|
929
|
+
|
|
930
|
+
export const getVipServersId = endpoint({
|
|
931
|
+
method: 'GET',
|
|
932
|
+
path: '/v1/vip-servers/:id',
|
|
933
|
+
baseUrl: 'https://games.roblox.com',
|
|
934
|
+
requestFormat: 'json',
|
|
935
|
+
serializationMethod: { id: { style: 'simple' } },
|
|
936
|
+
parameters: { id: z.number().int() },
|
|
937
|
+
response: Patch_VipServerResponse,
|
|
938
|
+
errors: [
|
|
939
|
+
{ status: 400, description: `8: The creator of this game has disabled private servers for this game.` },
|
|
940
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
941
|
+
{ status: 403, description: `2: You are not the owner of this private server.` },
|
|
942
|
+
{ status: 404, description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.` },
|
|
943
|
+
],
|
|
944
|
+
});
|
|
945
|
+
|
|
946
|
+
export const patchVipServersId = endpoint({
|
|
947
|
+
method: 'PATCH',
|
|
948
|
+
path: '/v1/vip-servers/:id',
|
|
949
|
+
baseUrl: 'https://games.roblox.com',
|
|
950
|
+
requestFormat: 'json',
|
|
951
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
952
|
+
parameters: { id: z.number().int() },
|
|
953
|
+
body: Patch_VipServerUpdateRequest,
|
|
954
|
+
response: Patch_VipServerResponse,
|
|
955
|
+
errors: [
|
|
956
|
+
{ status: 400, 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.` },
|
|
957
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
958
|
+
{ status: 403, 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.` },
|
|
959
|
+
{ status: 404, description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.` },
|
|
960
|
+
{ status: 429, description: `3: Please wait a few minutes before configuring your private server again.` },
|
|
961
|
+
],
|
|
962
|
+
});
|
|
963
|
+
|
|
964
|
+
export const patchVipServersIdPermissions = endpoint({
|
|
965
|
+
method: 'PATCH',
|
|
966
|
+
path: '/v1/vip-servers/:id/permissions',
|
|
967
|
+
baseUrl: 'https://games.roblox.com',
|
|
968
|
+
requestFormat: 'json',
|
|
969
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
970
|
+
parameters: { id: z.number().int() },
|
|
971
|
+
body: Patch_VipServerUpdatePermissionsRequest,
|
|
972
|
+
response: Patch_VipServerPermissionsResponse,
|
|
973
|
+
errors: [
|
|
974
|
+
{ status: 400, 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.` },
|
|
975
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
976
|
+
{ status: 403, description: `0: Token Validation Failed\n2: You are not the owner of this private server.` },
|
|
977
|
+
{ status: 404, description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.` },
|
|
978
|
+
],
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
export const patchVipServersIdSubscription = endpoint({
|
|
982
|
+
method: 'PATCH',
|
|
983
|
+
path: '/v1/vip-servers/:id/subscription',
|
|
984
|
+
baseUrl: 'https://games.roblox.com',
|
|
985
|
+
requestFormat: 'json',
|
|
986
|
+
serializationMethod: { body: {}, id: { style: 'simple' } },
|
|
987
|
+
parameters: { id: z.number().int() },
|
|
988
|
+
body: Patch_VipServerUpdateSubscriptionRequest,
|
|
989
|
+
response: Patch_VipServerSubscriptionResponse,
|
|
990
|
+
errors: [
|
|
991
|
+
{ status: 400, 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.` },
|
|
992
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
993
|
+
{ status: 403, 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.` },
|
|
994
|
+
{ status: 404, description: `1: The private server is invalid or does not exist.\n4: The universe does not exist.` },
|
|
995
|
+
{ status: 429, description: `3: Please wait a few minutes before configuring your private server again.` },
|
|
996
|
+
],
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
export const postGamesVipServersUniverseid = endpoint({
|
|
1000
|
+
method: 'POST',
|
|
1001
|
+
path: '/v1/games/vip-servers/:universeId',
|
|
1002
|
+
baseUrl: 'https://games.roblox.com',
|
|
1003
|
+
requestFormat: 'json',
|
|
1004
|
+
serializationMethod: { body: {}, universeId: { style: 'simple' } },
|
|
1005
|
+
parameters: { universeId: z.number().int() },
|
|
1006
|
+
body: Patch_CreateVipServersRequest,
|
|
1007
|
+
response: Roblox_Web_Responses_Games_GameServerResponse,
|
|
1008
|
+
errors: [
|
|
1009
|
+
{ status: 400, description: `15: The price for purchasing this private server has changed. Please refresh the page and try again.` },
|
|
1010
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1011
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1012
|
+
{ status: 404, description: `4: The universe does not exist.` },
|
|
1013
|
+
{ status: 500, description: `16: We are having a problem completing your purchase. Please try again in a few minutes.` },
|
|
1014
|
+
],
|
|
1015
|
+
});
|