rozod 1.0.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/accountinformationv1.d.ts +551 -0
- package/lib/endpoints/accountinformationv1.js +652 -0
- package/lib/endpoints/accountsettingsv1.d.ts +548 -0
- package/lib/endpoints/accountsettingsv1.js +712 -0
- package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
- package/lib/endpoints/assetdeliveryv1.js +268 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
- package/lib/endpoints/assetdeliveryv2.js +271 -0
- package/lib/endpoints/authv1.d.ts +1328 -0
- package/lib/endpoints/authv1.js +1168 -0
- package/lib/endpoints/authv2.d.ts +1239 -0
- package/lib/endpoints/authv2.js +1057 -0
- package/lib/endpoints/authv3.d.ts +35 -0
- package/lib/endpoints/authv3.js +41 -0
- package/lib/endpoints/avatarv1.d.ts +1841 -0
- package/lib/endpoints/avatarv1.js +726 -0
- package/lib/endpoints/avatarv2.d.ts +1077 -0
- package/lib/endpoints/avatarv2.js +316 -0
- package/lib/endpoints/avatarv3.d.ts +656 -0
- package/lib/endpoints/avatarv3.js +219 -0
- package/lib/endpoints/badgesv1.d.ts +641 -0
- package/lib/endpoints/badgesv1.js +345 -0
- package/lib/endpoints/catalogv1.d.ts +1715 -0
- package/lib/endpoints/catalogv1.js +792 -0
- package/lib/endpoints/chatv2.d.ts +2179 -0
- package/lib/endpoints/chatv2.js +721 -0
- package/lib/endpoints/developv1.d.ts +2097 -0
- package/lib/endpoints/developv1.js +1537 -0
- package/lib/endpoints/developv2.d.ts +619 -0
- package/lib/endpoints/developv2.js +316 -0
- package/lib/endpoints/economyv1.d.ts +20 -0
- package/lib/endpoints/economyv1.js +28 -0
- package/lib/endpoints/friendsv1.d.ts +1093 -0
- package/lib/endpoints/friendsv1.js +818 -0
- package/lib/endpoints/gamesv1.d.ts +2749 -0
- package/lib/endpoints/gamesv1.js +1294 -0
- package/lib/endpoints/gamesv2.d.ts +582 -0
- package/lib/endpoints/gamesv2.js +258 -0
- package/lib/endpoints/groupsv1.d.ts +5528 -0
- package/lib/endpoints/groupsv1.js +2434 -0
- package/lib/endpoints/groupsv2.d.ts +530 -0
- package/lib/endpoints/groupsv2.js +201 -0
- package/lib/endpoints/inventoryv1.d.ts +436 -0
- package/lib/endpoints/inventoryv1.js +434 -0
- package/lib/endpoints/inventoryv2.d.ts +256 -0
- package/lib/endpoints/inventoryv2.js +241 -0
- package/lib/endpoints/presencev1.d.ts +134 -0
- package/lib/endpoints/presencev1.js +93 -0
- package/lib/endpoints/privatemessagesv1.d.ts +620 -0
- package/lib/endpoints/privatemessagesv1.js +338 -0
- package/lib/endpoints/thumbnailsv1.d.ts +897 -0
- package/lib/endpoints/thumbnailsv1.js +560 -0
- package/lib/endpoints/tradesv1.d.ts +473 -0
- package/lib/endpoints/tradesv1.js +403 -0
- package/lib/endpoints/translationsv1.d.ts +80 -0
- package/lib/endpoints/translationsv1.js +122 -0
- package/lib/endpoints/usersv1.d.ts +391 -0
- package/lib/endpoints/usersv1.js +344 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +293 -0
- package/package.json +39 -0
- package/readme.md +99 -0
|
@@ -0,0 +1,1294 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patchV1vipServersIdvoicesettings = exports.patchV1vipServersIdsubscription = exports.patchV1vipServersIdpermissions = exports.patchV1vipServersId = exports.getV1vipServersId = exports.getV1vipServercanInviteUserId = exports.getV1privateServersenabledInUniverseUniverseId = exports.getV1privateServers = exports.getV1gamesvotes = exports.postV1gamesvipServersUniverseId = exports.getV1gamessorts = exports.getV1gamesrecommendationsgameUniverseId = exports.getV1gamesrecommendationsalgorithmAlgorithmName = exports.getV1gamesmultigetPlayabilityStatus = exports.getV1gamesmultigetPlaceDetails = exports.getV1gameslistSpotlight = exports.getV1gameslist = exports.getV1gamesgamesProductInfo = exports.getV1gamesgameThumbnails = exports.getV1gamesgameThumbnail = exports.getV1gamesUniverseIdvotesuser = exports.getV1gamesUniverseIdvotes = exports.patchV1gamesUniverseIduserVotes = exports.getV1gamesUniverseIdmedia = exports.getV1gamesUniverseIdgamePasses = exports.getV1gamesUniverseIdfavoritescount = exports.postV1gamesUniverseIdfavorites = exports.getV1gamesUniverseIdfavorites = exports.getV1gamesPlaceIdserversServerType = exports.getV1gamesPlaceIdprivateServers = exports.getV1games = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Games_Api_Models_Response_GameCreator = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
id: zod_1.z.number().int(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
type: zod_1.z.string(),
|
|
10
|
+
isRNVAccount: zod_1.z.boolean(),
|
|
11
|
+
hasVerifiedBadge: zod_1.z.boolean(),
|
|
12
|
+
})
|
|
13
|
+
.partial();
|
|
14
|
+
var Roblox_Games_Api_Models_Response_GameDetailResponse = zod_1.z
|
|
15
|
+
.object({
|
|
16
|
+
id: zod_1.z.number().int(),
|
|
17
|
+
rootPlaceId: zod_1.z.number().int(),
|
|
18
|
+
name: zod_1.z.string(),
|
|
19
|
+
description: zod_1.z.string(),
|
|
20
|
+
sourceName: zod_1.z.string(),
|
|
21
|
+
sourceDescription: zod_1.z.string(),
|
|
22
|
+
creator: Roblox_Games_Api_Models_Response_GameCreator,
|
|
23
|
+
price: zod_1.z.number().int(),
|
|
24
|
+
allowedGearGenres: zod_1.z.array(zod_1.z.string()),
|
|
25
|
+
allowedGearCategories: zod_1.z.array(zod_1.z.string()),
|
|
26
|
+
isGenreEnforced: zod_1.z.boolean(),
|
|
27
|
+
copyingAllowed: zod_1.z.boolean(),
|
|
28
|
+
playing: zod_1.z.number().int(),
|
|
29
|
+
visits: zod_1.z.number().int(),
|
|
30
|
+
maxPlayers: zod_1.z.number().int(),
|
|
31
|
+
created: zod_1.z.string().datetime(),
|
|
32
|
+
updated: zod_1.z.string().datetime(),
|
|
33
|
+
studioAccessToApisAllowed: zod_1.z.boolean(),
|
|
34
|
+
createVipServersAllowed: zod_1.z.boolean(),
|
|
35
|
+
universeAvatarType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
36
|
+
genre: zod_1.z.string(),
|
|
37
|
+
isAllGenre: zod_1.z.boolean(),
|
|
38
|
+
isFavoritedByUser: zod_1.z.boolean(),
|
|
39
|
+
favoritedCount: zod_1.z.number().int(),
|
|
40
|
+
})
|
|
41
|
+
.partial();
|
|
42
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_ = zod_1.z
|
|
43
|
+
.object({
|
|
44
|
+
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameDetailResponse),
|
|
45
|
+
})
|
|
46
|
+
.partial();
|
|
47
|
+
var Roblox_Games_Api_GameServerPlayerResponse = zod_1.z
|
|
48
|
+
.object({
|
|
49
|
+
playerToken: zod_1.z.string(),
|
|
50
|
+
id: zod_1.z.number().int(),
|
|
51
|
+
name: zod_1.z.string(),
|
|
52
|
+
displayName: zod_1.z.string(),
|
|
53
|
+
})
|
|
54
|
+
.partial();
|
|
55
|
+
var Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse = zod_1.z
|
|
56
|
+
.object({
|
|
57
|
+
hasVerifiedBadge: zod_1.z.boolean(),
|
|
58
|
+
id: zod_1.z.number().int(),
|
|
59
|
+
name: zod_1.z.string(),
|
|
60
|
+
displayName: zod_1.z.string(),
|
|
61
|
+
})
|
|
62
|
+
.partial();
|
|
63
|
+
var Roblox_Web_Responses_Games_GameServerResponse = zod_1.z
|
|
64
|
+
.object({
|
|
65
|
+
id: zod_1.z.string().uuid(),
|
|
66
|
+
maxPlayers: zod_1.z.number().int(),
|
|
67
|
+
playing: zod_1.z.number().int(),
|
|
68
|
+
playerTokens: zod_1.z.array(zod_1.z.string()),
|
|
69
|
+
players: zod_1.z.array(Roblox_Games_Api_GameServerPlayerResponse),
|
|
70
|
+
fps: zod_1.z.number(),
|
|
71
|
+
ping: zod_1.z.number().int(),
|
|
72
|
+
name: zod_1.z.string(),
|
|
73
|
+
vipServerId: zod_1.z.number().int(),
|
|
74
|
+
accessCode: zod_1.z.string().uuid(),
|
|
75
|
+
owner: Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse,
|
|
76
|
+
})
|
|
77
|
+
.partial();
|
|
78
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_ = zod_1.z
|
|
79
|
+
.object({
|
|
80
|
+
previousPageCursor: zod_1.z.string(),
|
|
81
|
+
nextPageCursor: zod_1.z.string(),
|
|
82
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
83
|
+
})
|
|
84
|
+
.partial();
|
|
85
|
+
var Roblox_Games_Api_Models_Response_GameFavoriteResponse = zod_1.z.object({ isFavorited: zod_1.z.boolean() }).partial();
|
|
86
|
+
var Roblox_Games_Api_Models_Request_GameFavoritesRequest = zod_1.z.object({ isFavorited: zod_1.z.boolean() }).partial();
|
|
87
|
+
var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
|
|
88
|
+
var Roblox_Games_Api_Models_Response_GameFavoritesCountResponse = zod_1.z
|
|
89
|
+
.object({ favoritesCount: zod_1.z.number().int() })
|
|
90
|
+
.partial();
|
|
91
|
+
var Roblox_Games_Api_Models_Response_GamePassResponse = zod_1.z
|
|
92
|
+
.object({
|
|
93
|
+
id: zod_1.z.number().int(),
|
|
94
|
+
name: zod_1.z.string(),
|
|
95
|
+
displayName: zod_1.z.string(),
|
|
96
|
+
productId: zod_1.z.number().int(),
|
|
97
|
+
price: zod_1.z.number().int(),
|
|
98
|
+
sellerName: zod_1.z.string(),
|
|
99
|
+
sellerId: zod_1.z.number().int(),
|
|
100
|
+
isOwned: zod_1.z.boolean(),
|
|
101
|
+
})
|
|
102
|
+
.partial();
|
|
103
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Games_Api_Models_Response_GamePassResponse_ = zod_1.z
|
|
104
|
+
.object({
|
|
105
|
+
previousPageCursor: zod_1.z.string(),
|
|
106
|
+
nextPageCursor: zod_1.z.string(),
|
|
107
|
+
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GamePassResponse),
|
|
108
|
+
})
|
|
109
|
+
.partial();
|
|
110
|
+
var Roblox_Games_Api_Models_Response_GameMediaItem = zod_1.z
|
|
111
|
+
.object({
|
|
112
|
+
id: zod_1.z.number().int(),
|
|
113
|
+
assetTypeId: zod_1.z.number().int(),
|
|
114
|
+
assetType: zod_1.z.string(),
|
|
115
|
+
imageId: zod_1.z.number().int(),
|
|
116
|
+
videoHash: zod_1.z.string(),
|
|
117
|
+
videoTitle: zod_1.z.string(),
|
|
118
|
+
approved: zod_1.z.boolean(),
|
|
119
|
+
altText: zod_1.z.string(),
|
|
120
|
+
})
|
|
121
|
+
.partial();
|
|
122
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameMediaItem_ = zod_1.z
|
|
123
|
+
.object({ data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameMediaItem) })
|
|
124
|
+
.partial();
|
|
125
|
+
var Roblox_Games_Api_Models_Response_GameVoteResponse = zod_1.z
|
|
126
|
+
.object({
|
|
127
|
+
id: zod_1.z.number().int(),
|
|
128
|
+
upVotes: zod_1.z.number().int(),
|
|
129
|
+
downVotes: zod_1.z.number().int(),
|
|
130
|
+
})
|
|
131
|
+
.partial();
|
|
132
|
+
var Roblox_Games_Api_Models_Response_UserGameVoteResponse = zod_1.z
|
|
133
|
+
.object({
|
|
134
|
+
canVote: zod_1.z.boolean(),
|
|
135
|
+
userVote: zod_1.z.boolean(),
|
|
136
|
+
reasonForNotVoteable: zod_1.z.string(),
|
|
137
|
+
})
|
|
138
|
+
.partial();
|
|
139
|
+
var Roblox_Games_Api_Models_Response_GameProductResponse = zod_1.z
|
|
140
|
+
.object({
|
|
141
|
+
universeId: zod_1.z.number().int(),
|
|
142
|
+
isForSale: zod_1.z.boolean(),
|
|
143
|
+
productId: zod_1.z.number().int(),
|
|
144
|
+
price: zod_1.z.number().int(),
|
|
145
|
+
sellerId: zod_1.z.number().int(),
|
|
146
|
+
})
|
|
147
|
+
.partial();
|
|
148
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameProductResponse_ = zod_1.z
|
|
149
|
+
.object({
|
|
150
|
+
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameProductResponse),
|
|
151
|
+
})
|
|
152
|
+
.partial();
|
|
153
|
+
var Roblox_Games_Api_Models_Response_Thumbnail = zod_1.z
|
|
154
|
+
.object({
|
|
155
|
+
final: zod_1.z.boolean(),
|
|
156
|
+
url: zod_1.z.string(),
|
|
157
|
+
cdnUrl: zod_1.z.string(),
|
|
158
|
+
retryToken: zod_1.z.string(),
|
|
159
|
+
universeId: zod_1.z.number().int(),
|
|
160
|
+
placeId: zod_1.z.number().int(),
|
|
161
|
+
})
|
|
162
|
+
.partial();
|
|
163
|
+
var Roblox_Games_Api_Models_Response_GameResponseModel = zod_1.z
|
|
164
|
+
.object({
|
|
165
|
+
creatorId: zod_1.z.number().int(),
|
|
166
|
+
creatorName: zod_1.z.string(),
|
|
167
|
+
creatorType: zod_1.z.string(),
|
|
168
|
+
creatorHasVerifiedBadge: zod_1.z.boolean(),
|
|
169
|
+
totalUpVotes: zod_1.z.number().int(),
|
|
170
|
+
totalDownVotes: zod_1.z.number().int(),
|
|
171
|
+
universeId: zod_1.z.number().int(),
|
|
172
|
+
name: zod_1.z.string(),
|
|
173
|
+
placeId: zod_1.z.number().int(),
|
|
174
|
+
playerCount: zod_1.z.number().int(),
|
|
175
|
+
imageToken: zod_1.z.string(),
|
|
176
|
+
isSponsored: zod_1.z.boolean(),
|
|
177
|
+
nativeAdData: zod_1.z.string(),
|
|
178
|
+
isShowSponsoredLabel: zod_1.z.boolean(),
|
|
179
|
+
price: zod_1.z.number().int(),
|
|
180
|
+
analyticsIdentifier: zod_1.z.string(),
|
|
181
|
+
gameDescription: zod_1.z.string(),
|
|
182
|
+
genre: zod_1.z.string(),
|
|
183
|
+
})
|
|
184
|
+
.partial();
|
|
185
|
+
var Roblox_Games_Api_Models_Response_ElasticSearchDebugInfoModel = zod_1.z.object({ esQuery: zod_1.z.string() }).partial();
|
|
186
|
+
var Roblox_Games_Api_Models_Response_GamesSearchResponse = zod_1.z
|
|
187
|
+
.object({
|
|
188
|
+
games: zod_1.z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
189
|
+
suggestedKeyword: zod_1.z.string(),
|
|
190
|
+
correctedKeyword: zod_1.z.string(),
|
|
191
|
+
filteredKeyword: zod_1.z.string(),
|
|
192
|
+
hasMoreRows: zod_1.z.boolean(),
|
|
193
|
+
nextPageExclusiveStartId: zod_1.z.number().int(),
|
|
194
|
+
featuredSearchUniverseId: zod_1.z.number().int(),
|
|
195
|
+
emphasis: zod_1.z.boolean(),
|
|
196
|
+
cutOffIndex: zod_1.z.number().int(),
|
|
197
|
+
algorithm: zod_1.z.string(),
|
|
198
|
+
algorithmQueryType: zod_1.z.string(),
|
|
199
|
+
suggestionAlgorithm: zod_1.z.string(),
|
|
200
|
+
relatedGames: zod_1.z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
201
|
+
esDebugInfo: Roblox_Games_Api_Models_Response_ElasticSearchDebugInfoModel,
|
|
202
|
+
})
|
|
203
|
+
.partial();
|
|
204
|
+
var Roblox_Games_Api_Models_Response_SpotlightTypeData = zod_1.z.object({}).partial();
|
|
205
|
+
var Roblox_Games_Api_Models_Response_GameSpotlightResponse = zod_1.z
|
|
206
|
+
.object({
|
|
207
|
+
spotlightType: zod_1.z.string(),
|
|
208
|
+
spotlightActionText: zod_1.z.string(),
|
|
209
|
+
spotlightTypeData: Roblox_Games_Api_Models_Response_SpotlightTypeData,
|
|
210
|
+
gameInfo: Roblox_Games_Api_Models_Response_GameResponseModel,
|
|
211
|
+
})
|
|
212
|
+
.partial();
|
|
213
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameSpotlightResponse_ = zod_1.z
|
|
214
|
+
.object({
|
|
215
|
+
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameSpotlightResponse),
|
|
216
|
+
})
|
|
217
|
+
.partial();
|
|
218
|
+
var Roblox_Games_Api_Models_Response_PlaceDetails = zod_1.z
|
|
219
|
+
.object({
|
|
220
|
+
placeId: zod_1.z.number().int(),
|
|
221
|
+
name: zod_1.z.string(),
|
|
222
|
+
description: zod_1.z.string(),
|
|
223
|
+
sourceName: zod_1.z.string(),
|
|
224
|
+
sourceDescription: zod_1.z.string(),
|
|
225
|
+
url: zod_1.z.string(),
|
|
226
|
+
builder: zod_1.z.string(),
|
|
227
|
+
builderId: zod_1.z.number().int(),
|
|
228
|
+
hasVerifiedBadge: zod_1.z.boolean(),
|
|
229
|
+
isPlayable: zod_1.z.boolean(),
|
|
230
|
+
reasonProhibited: zod_1.z.string(),
|
|
231
|
+
universeId: zod_1.z.number().int(),
|
|
232
|
+
universeRootPlaceId: zod_1.z.number().int(),
|
|
233
|
+
price: zod_1.z.number().int(),
|
|
234
|
+
imageToken: zod_1.z.string(),
|
|
235
|
+
})
|
|
236
|
+
.partial();
|
|
237
|
+
var Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = zod_1.z
|
|
238
|
+
.object({
|
|
239
|
+
playabilityStatus: zod_1.z.union([
|
|
240
|
+
zod_1.z.literal(0),
|
|
241
|
+
zod_1.z.literal(1),
|
|
242
|
+
zod_1.z.literal(2),
|
|
243
|
+
zod_1.z.literal(3),
|
|
244
|
+
zod_1.z.literal(4),
|
|
245
|
+
zod_1.z.literal(5),
|
|
246
|
+
zod_1.z.literal(6),
|
|
247
|
+
zod_1.z.literal(7),
|
|
248
|
+
zod_1.z.literal(8),
|
|
249
|
+
zod_1.z.literal(9),
|
|
250
|
+
zod_1.z.literal(10),
|
|
251
|
+
zod_1.z.literal(11),
|
|
252
|
+
zod_1.z.literal(12),
|
|
253
|
+
zod_1.z.literal(13),
|
|
254
|
+
zod_1.z.literal(14),
|
|
255
|
+
zod_1.z.literal(15),
|
|
256
|
+
zod_1.z.literal(16),
|
|
257
|
+
zod_1.z.literal(17),
|
|
258
|
+
zod_1.z.literal(18),
|
|
259
|
+
zod_1.z.literal(19),
|
|
260
|
+
]),
|
|
261
|
+
isPlayable: zod_1.z.boolean(),
|
|
262
|
+
universeId: zod_1.z.number().int(),
|
|
263
|
+
})
|
|
264
|
+
.partial();
|
|
265
|
+
var Roblox_Games_Api_Models_Response_GameRecommendationsResponse = zod_1.z
|
|
266
|
+
.object({
|
|
267
|
+
games: zod_1.z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
268
|
+
nextPaginationKey: zod_1.z.string(),
|
|
269
|
+
})
|
|
270
|
+
.partial();
|
|
271
|
+
var Roblox_Games_Api_Models_Response_GameSort = zod_1.z
|
|
272
|
+
.object({
|
|
273
|
+
token: zod_1.z.string(),
|
|
274
|
+
name: zod_1.z.string(),
|
|
275
|
+
displayName: zod_1.z.string(),
|
|
276
|
+
gameSetTypeId: zod_1.z.number().int(),
|
|
277
|
+
gameSetTargetId: zod_1.z.number().int(),
|
|
278
|
+
timeOptionsAvailable: zod_1.z.boolean(),
|
|
279
|
+
genreOptionsAvailable: zod_1.z.boolean(),
|
|
280
|
+
numberOfRows: zod_1.z.number().int(),
|
|
281
|
+
numberOfGames: zod_1.z.number().int(),
|
|
282
|
+
isDefaultSort: zod_1.z.boolean(),
|
|
283
|
+
contextUniverseId: zod_1.z.number().int(),
|
|
284
|
+
contextCountryRegionId: zod_1.z.number().int(),
|
|
285
|
+
tokenExpiryInSeconds: zod_1.z.number(),
|
|
286
|
+
})
|
|
287
|
+
.partial();
|
|
288
|
+
var Roblox_Games_Api_Models_Response_TimeFilter = zod_1.z
|
|
289
|
+
.object({
|
|
290
|
+
token: zod_1.z.string(),
|
|
291
|
+
name: zod_1.z.string(),
|
|
292
|
+
tokenExpiryInSeconds: zod_1.z.number(),
|
|
293
|
+
})
|
|
294
|
+
.partial();
|
|
295
|
+
var Roblox_Games_Api_Models_Response_GenreFilter = zod_1.z
|
|
296
|
+
.object({
|
|
297
|
+
token: zod_1.z.string(),
|
|
298
|
+
name: zod_1.z.string(),
|
|
299
|
+
tokenExpiryInSeconds: zod_1.z.number(),
|
|
300
|
+
})
|
|
301
|
+
.partial();
|
|
302
|
+
var Roblox_Games_Api_Models_Response_GameFilter = zod_1.z
|
|
303
|
+
.object({
|
|
304
|
+
token: zod_1.z.string(),
|
|
305
|
+
name: zod_1.z.string(),
|
|
306
|
+
tokenExpiryInSeconds: zod_1.z.number().int(),
|
|
307
|
+
})
|
|
308
|
+
.partial();
|
|
309
|
+
var Roblox_Games_Api_Models_Response_PageContext = zod_1.z
|
|
310
|
+
.object({ pageId: zod_1.z.string().uuid(), isSeeAllPage: zod_1.z.boolean() })
|
|
311
|
+
.partial();
|
|
312
|
+
var Roblox_Games_Api_Models_Response_GameSortsResponse = zod_1.z
|
|
313
|
+
.object({
|
|
314
|
+
sorts: zod_1.z.array(Roblox_Games_Api_Models_Response_GameSort),
|
|
315
|
+
timeFilters: zod_1.z.array(Roblox_Games_Api_Models_Response_TimeFilter),
|
|
316
|
+
genreFilters: zod_1.z.array(Roblox_Games_Api_Models_Response_GenreFilter),
|
|
317
|
+
gameFilters: zod_1.z.array(Roblox_Games_Api_Models_Response_GameFilter),
|
|
318
|
+
pageContext: Roblox_Games_Api_Models_Response_PageContext,
|
|
319
|
+
gameSortStyle: zod_1.z.string(),
|
|
320
|
+
})
|
|
321
|
+
.partial();
|
|
322
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_ = zod_1.z
|
|
323
|
+
.object({
|
|
324
|
+
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameVoteResponse),
|
|
325
|
+
})
|
|
326
|
+
.partial();
|
|
327
|
+
var Roblox_Games_Api_PrivateServersResponse = zod_1.z
|
|
328
|
+
.object({
|
|
329
|
+
privateServerResponses: zod_1.z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
330
|
+
})
|
|
331
|
+
.partial();
|
|
332
|
+
var Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse = zod_1.z
|
|
333
|
+
.object({ privateServersEnabled: zod_1.z.boolean() })
|
|
334
|
+
.partial();
|
|
335
|
+
var Roblox_Games_Api_VipServerCanInviteResponse = zod_1.z.object({ canInvite: zod_1.z.boolean() }).partial();
|
|
336
|
+
var Roblox_Games_Api_PlaceResponse = zod_1.z.object({ id: zod_1.z.number().int(), name: zod_1.z.string() }).partial();
|
|
337
|
+
var Roblox_Games_Api_GameResponse = zod_1.z
|
|
338
|
+
.object({
|
|
339
|
+
id: zod_1.z.number().int(),
|
|
340
|
+
name: zod_1.z.string(),
|
|
341
|
+
rootPlace: Roblox_Games_Api_PlaceResponse,
|
|
342
|
+
})
|
|
343
|
+
.partial();
|
|
344
|
+
var Roblox_Games_Api_VipServerSubscriptionResponse = zod_1.z
|
|
345
|
+
.object({
|
|
346
|
+
active: zod_1.z.boolean(),
|
|
347
|
+
expired: zod_1.z.boolean(),
|
|
348
|
+
expirationDate: zod_1.z.string().datetime(),
|
|
349
|
+
price: zod_1.z.number().int(),
|
|
350
|
+
canRenew: zod_1.z.boolean(),
|
|
351
|
+
hasInsufficientFunds: zod_1.z.boolean(),
|
|
352
|
+
hasRecurringProfile: zod_1.z.boolean(),
|
|
353
|
+
hasPriceChanged: zod_1.z.boolean(),
|
|
354
|
+
})
|
|
355
|
+
.partial();
|
|
356
|
+
var Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z
|
|
357
|
+
.object({ id: zod_1.z.number().int(), name: zod_1.z.string(), displayName: zod_1.z.string() })
|
|
358
|
+
.partial();
|
|
359
|
+
var Roblox_Games_Api_VipServerPermissionsResponse = zod_1.z
|
|
360
|
+
.object({
|
|
361
|
+
clanAllowed: zod_1.z.boolean(),
|
|
362
|
+
enemyClanId: zod_1.z.number().int(),
|
|
363
|
+
friendsAllowed: zod_1.z.boolean(),
|
|
364
|
+
users: zod_1.z.array(Roblox_Web_Responses_Users_SkinnyUserResponse),
|
|
365
|
+
})
|
|
366
|
+
.partial();
|
|
367
|
+
var Roblox_Games_Api_VipServerVoiceSettingsResponse = zod_1.z.object({ enabled: zod_1.z.boolean() }).partial();
|
|
368
|
+
var Roblox_Games_Api_VipServerResponse = zod_1.z
|
|
369
|
+
.object({
|
|
370
|
+
id: zod_1.z.number().int(),
|
|
371
|
+
name: zod_1.z.string(),
|
|
372
|
+
game: Roblox_Games_Api_GameResponse,
|
|
373
|
+
joinCode: zod_1.z.string(),
|
|
374
|
+
active: zod_1.z.boolean(),
|
|
375
|
+
subscription: Roblox_Games_Api_VipServerSubscriptionResponse,
|
|
376
|
+
permissions: Roblox_Games_Api_VipServerPermissionsResponse,
|
|
377
|
+
voiceSettings: Roblox_Games_Api_VipServerVoiceSettingsResponse,
|
|
378
|
+
})
|
|
379
|
+
.partial();
|
|
380
|
+
var Roblox_Games_Api_VipServerUpdateRequest = zod_1.z
|
|
381
|
+
.object({ name: zod_1.z.string(), newJoinCode: zod_1.z.boolean(), active: zod_1.z.boolean() })
|
|
382
|
+
.partial();
|
|
383
|
+
var Roblox_Games_Api_CreateVipServersRequest = zod_1.z
|
|
384
|
+
.object({ name: zod_1.z.string(), expectedPrice: zod_1.z.number().int() })
|
|
385
|
+
.partial();
|
|
386
|
+
var Roblox_Games_Api_Models_Request_SetUserGameVoteRequest = zod_1.z.object({ vote: zod_1.z.boolean() }).partial();
|
|
387
|
+
var Roblox_Games_Api_VipServerUpdatePermissionsRequest = zod_1.z
|
|
388
|
+
.object({
|
|
389
|
+
clanAllowed: zod_1.z.boolean(),
|
|
390
|
+
enemyClanId: zod_1.z.number().int(),
|
|
391
|
+
friendsAllowed: zod_1.z.boolean(),
|
|
392
|
+
usersToAdd: zod_1.z.array(zod_1.z.number()),
|
|
393
|
+
usersToRemove: zod_1.z.array(zod_1.z.number()),
|
|
394
|
+
})
|
|
395
|
+
.partial();
|
|
396
|
+
var Roblox_Games_Api_VipServerUpdateSubscriptionRequest = zod_1.z
|
|
397
|
+
.object({ active: zod_1.z.boolean(), price: zod_1.z.number().int() })
|
|
398
|
+
.partial();
|
|
399
|
+
var Roblox_Games_Api_VipServerUpdateVoiceSettingsRequest = zod_1.z.object({ enabled: zod_1.z.boolean() }).partial();
|
|
400
|
+
var schemas = {
|
|
401
|
+
Roblox_Games_Api_Models_Response_GameCreator: Roblox_Games_Api_Models_Response_GameCreator,
|
|
402
|
+
Roblox_Games_Api_Models_Response_GameDetailResponse: Roblox_Games_Api_Models_Response_GameDetailResponse,
|
|
403
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_,
|
|
404
|
+
Roblox_Games_Api_GameServerPlayerResponse: Roblox_Games_Api_GameServerPlayerResponse,
|
|
405
|
+
Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse: Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse,
|
|
406
|
+
Roblox_Web_Responses_Games_GameServerResponse: Roblox_Web_Responses_Games_GameServerResponse,
|
|
407
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_,
|
|
408
|
+
Roblox_Games_Api_Models_Response_GameFavoriteResponse: Roblox_Games_Api_Models_Response_GameFavoriteResponse,
|
|
409
|
+
Roblox_Games_Api_Models_Request_GameFavoritesRequest: Roblox_Games_Api_Models_Request_GameFavoritesRequest,
|
|
410
|
+
Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
|
|
411
|
+
Roblox_Games_Api_Models_Response_GameFavoritesCountResponse: Roblox_Games_Api_Models_Response_GameFavoritesCountResponse,
|
|
412
|
+
Roblox_Games_Api_Models_Response_GamePassResponse: Roblox_Games_Api_Models_Response_GamePassResponse,
|
|
413
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Games_Api_Models_Response_GamePassResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Games_Api_Models_Response_GamePassResponse_,
|
|
414
|
+
Roblox_Games_Api_Models_Response_GameMediaItem: Roblox_Games_Api_Models_Response_GameMediaItem,
|
|
415
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameMediaItem_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameMediaItem_,
|
|
416
|
+
Roblox_Games_Api_Models_Response_GameVoteResponse: Roblox_Games_Api_Models_Response_GameVoteResponse,
|
|
417
|
+
Roblox_Games_Api_Models_Response_UserGameVoteResponse: Roblox_Games_Api_Models_Response_UserGameVoteResponse,
|
|
418
|
+
Roblox_Games_Api_Models_Response_GameProductResponse: Roblox_Games_Api_Models_Response_GameProductResponse,
|
|
419
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameProductResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameProductResponse_,
|
|
420
|
+
Roblox_Games_Api_Models_Response_Thumbnail: Roblox_Games_Api_Models_Response_Thumbnail,
|
|
421
|
+
Roblox_Games_Api_Models_Response_GameResponseModel: Roblox_Games_Api_Models_Response_GameResponseModel,
|
|
422
|
+
Roblox_Games_Api_Models_Response_ElasticSearchDebugInfoModel: Roblox_Games_Api_Models_Response_ElasticSearchDebugInfoModel,
|
|
423
|
+
Roblox_Games_Api_Models_Response_GamesSearchResponse: Roblox_Games_Api_Models_Response_GamesSearchResponse,
|
|
424
|
+
Roblox_Games_Api_Models_Response_SpotlightTypeData: Roblox_Games_Api_Models_Response_SpotlightTypeData,
|
|
425
|
+
Roblox_Games_Api_Models_Response_GameSpotlightResponse: Roblox_Games_Api_Models_Response_GameSpotlightResponse,
|
|
426
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameSpotlightResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameSpotlightResponse_,
|
|
427
|
+
Roblox_Games_Api_Models_Response_PlaceDetails: Roblox_Games_Api_Models_Response_PlaceDetails,
|
|
428
|
+
Roblox_Games_Api_Models_Response_PlayabilityStatusResponse: Roblox_Games_Api_Models_Response_PlayabilityStatusResponse,
|
|
429
|
+
Roblox_Games_Api_Models_Response_GameRecommendationsResponse: Roblox_Games_Api_Models_Response_GameRecommendationsResponse,
|
|
430
|
+
Roblox_Games_Api_Models_Response_GameSort: Roblox_Games_Api_Models_Response_GameSort,
|
|
431
|
+
Roblox_Games_Api_Models_Response_TimeFilter: Roblox_Games_Api_Models_Response_TimeFilter,
|
|
432
|
+
Roblox_Games_Api_Models_Response_GenreFilter: Roblox_Games_Api_Models_Response_GenreFilter,
|
|
433
|
+
Roblox_Games_Api_Models_Response_GameFilter: Roblox_Games_Api_Models_Response_GameFilter,
|
|
434
|
+
Roblox_Games_Api_Models_Response_PageContext: Roblox_Games_Api_Models_Response_PageContext,
|
|
435
|
+
Roblox_Games_Api_Models_Response_GameSortsResponse: Roblox_Games_Api_Models_Response_GameSortsResponse,
|
|
436
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_,
|
|
437
|
+
Roblox_Games_Api_PrivateServersResponse: Roblox_Games_Api_PrivateServersResponse,
|
|
438
|
+
Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse: Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse,
|
|
439
|
+
Roblox_Games_Api_VipServerCanInviteResponse: Roblox_Games_Api_VipServerCanInviteResponse,
|
|
440
|
+
Roblox_Games_Api_PlaceResponse: Roblox_Games_Api_PlaceResponse,
|
|
441
|
+
Roblox_Games_Api_GameResponse: Roblox_Games_Api_GameResponse,
|
|
442
|
+
Roblox_Games_Api_VipServerSubscriptionResponse: Roblox_Games_Api_VipServerSubscriptionResponse,
|
|
443
|
+
Roblox_Web_Responses_Users_SkinnyUserResponse: Roblox_Web_Responses_Users_SkinnyUserResponse,
|
|
444
|
+
Roblox_Games_Api_VipServerPermissionsResponse: Roblox_Games_Api_VipServerPermissionsResponse,
|
|
445
|
+
Roblox_Games_Api_VipServerVoiceSettingsResponse: Roblox_Games_Api_VipServerVoiceSettingsResponse,
|
|
446
|
+
Roblox_Games_Api_VipServerResponse: Roblox_Games_Api_VipServerResponse,
|
|
447
|
+
Roblox_Games_Api_VipServerUpdateRequest: Roblox_Games_Api_VipServerUpdateRequest,
|
|
448
|
+
Roblox_Games_Api_CreateVipServersRequest: Roblox_Games_Api_CreateVipServersRequest,
|
|
449
|
+
Roblox_Games_Api_Models_Request_SetUserGameVoteRequest: Roblox_Games_Api_Models_Request_SetUserGameVoteRequest,
|
|
450
|
+
Roblox_Games_Api_VipServerUpdatePermissionsRequest: Roblox_Games_Api_VipServerUpdatePermissionsRequest,
|
|
451
|
+
Roblox_Games_Api_VipServerUpdateSubscriptionRequest: Roblox_Games_Api_VipServerUpdateSubscriptionRequest,
|
|
452
|
+
Roblox_Games_Api_VipServerUpdateVoiceSettingsRequest: Roblox_Games_Api_VipServerUpdateVoiceSettingsRequest,
|
|
453
|
+
};
|
|
454
|
+
exports.getV1games = {
|
|
455
|
+
method: 'get',
|
|
456
|
+
path: '/v1/games',
|
|
457
|
+
baseUrl: 'https://games.roblox.com',
|
|
458
|
+
requestFormat: 'json',
|
|
459
|
+
parameters: {
|
|
460
|
+
universeIds: zod_1.z.array(zod_1.z.number()),
|
|
461
|
+
},
|
|
462
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_,
|
|
463
|
+
errors: [
|
|
464
|
+
{
|
|
465
|
+
status: 400,
|
|
466
|
+
description: "8: No universe IDs were specified.\n9: Too many universe IDs were requested.",
|
|
467
|
+
schema: zod_1.z.void(),
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
};
|
|
471
|
+
exports.getV1gamesPlaceIdprivateServers = {
|
|
472
|
+
method: 'get',
|
|
473
|
+
path: '/v1/games/:placeId/private-servers',
|
|
474
|
+
baseUrl: 'https://games.roblox.com',
|
|
475
|
+
requestFormat: 'json',
|
|
476
|
+
parameters: {
|
|
477
|
+
placeId: zod_1.z.number().int(),
|
|
478
|
+
limit: zod_1.z
|
|
479
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
480
|
+
.optional()
|
|
481
|
+
.default(10),
|
|
482
|
+
cursor: zod_1.z.string().optional(),
|
|
483
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
484
|
+
},
|
|
485
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_,
|
|
486
|
+
errors: [
|
|
487
|
+
{
|
|
488
|
+
status: 400,
|
|
489
|
+
description: "1: The place is invalid.\n7: Guest users are not allowed.",
|
|
490
|
+
schema: zod_1.z.void(),
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
status: 404,
|
|
494
|
+
description: "1: The place is invalid.",
|
|
495
|
+
schema: zod_1.z.void(),
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
};
|
|
499
|
+
exports.getV1gamesPlaceIdserversServerType = {
|
|
500
|
+
method: 'get',
|
|
501
|
+
path: '/v1/games/:placeId/servers/:serverType',
|
|
502
|
+
baseUrl: 'https://games.roblox.com',
|
|
503
|
+
requestFormat: 'json',
|
|
504
|
+
parameters: {
|
|
505
|
+
placeId: zod_1.z.number().int(),
|
|
506
|
+
serverType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
|
|
507
|
+
sortOrder: zod_1.z
|
|
508
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2)])
|
|
509
|
+
.optional()
|
|
510
|
+
.default(2),
|
|
511
|
+
excludeFullGames: zod_1.z.boolean().optional(),
|
|
512
|
+
limit: zod_1.z
|
|
513
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
514
|
+
.optional()
|
|
515
|
+
.default(10),
|
|
516
|
+
cursor: zod_1.z.string().optional(),
|
|
517
|
+
},
|
|
518
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_,
|
|
519
|
+
errors: [
|
|
520
|
+
{
|
|
521
|
+
status: 400,
|
|
522
|
+
description: "1: The place is invalid.\n6: The server type is invalid. For fetching private servers, please use https://games.roblox.com/v1/games/{placeId}/private-servers.\n7: Guest users are not allowed.",
|
|
523
|
+
schema: zod_1.z.void(),
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
status: 404,
|
|
527
|
+
description: "1: The place is invalid.",
|
|
528
|
+
schema: zod_1.z.void(),
|
|
529
|
+
},
|
|
530
|
+
],
|
|
531
|
+
};
|
|
532
|
+
exports.getV1gamesUniverseIdfavorites = {
|
|
533
|
+
method: 'get',
|
|
534
|
+
path: '/v1/games/:universeId/favorites',
|
|
535
|
+
baseUrl: 'https://games.roblox.com',
|
|
536
|
+
requestFormat: 'json',
|
|
537
|
+
parameters: {
|
|
538
|
+
universeId: zod_1.z.number().int(),
|
|
539
|
+
},
|
|
540
|
+
response: zod_1.z.object({ isFavorited: zod_1.z.boolean() }).partial(),
|
|
541
|
+
errors: [
|
|
542
|
+
{
|
|
543
|
+
status: 400,
|
|
544
|
+
description: "3: The universe's root place is invalid.",
|
|
545
|
+
schema: zod_1.z.void(),
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
status: 401,
|
|
549
|
+
description: "0: Authorization has been denied for this request.",
|
|
550
|
+
schema: zod_1.z.void(),
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
status: 404,
|
|
554
|
+
description: "2: The requested universe does not exist.",
|
|
555
|
+
schema: zod_1.z.void(),
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
};
|
|
559
|
+
exports.postV1gamesUniverseIdfavorites = {
|
|
560
|
+
method: 'post',
|
|
561
|
+
path: '/v1/games/:universeId/favorites',
|
|
562
|
+
baseUrl: 'https://games.roblox.com',
|
|
563
|
+
requestFormat: 'json',
|
|
564
|
+
parameters: {
|
|
565
|
+
body: zod_1.z.object({ isFavorited: zod_1.z.boolean() }).partial(),
|
|
566
|
+
universeId: zod_1.z.number().int(),
|
|
567
|
+
},
|
|
568
|
+
response: zod_1.z.object({}).partial(),
|
|
569
|
+
errors: [
|
|
570
|
+
{
|
|
571
|
+
status: 400,
|
|
572
|
+
description: "3: The universe's root place is invalid.",
|
|
573
|
+
schema: zod_1.z.void(),
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
status: 401,
|
|
577
|
+
description: "0: Authorization has been denied for this request.",
|
|
578
|
+
schema: zod_1.z.void(),
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
status: 403,
|
|
582
|
+
description: "0: Token Validation Failed\n11: You are not authorized to perform this action.",
|
|
583
|
+
schema: zod_1.z.void(),
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
status: 404,
|
|
587
|
+
description: "2: The requested universe does not exist.",
|
|
588
|
+
schema: zod_1.z.void(),
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
status: 429,
|
|
592
|
+
description: "4: Too many requests have been made.",
|
|
593
|
+
schema: zod_1.z.void(),
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
};
|
|
597
|
+
exports.getV1gamesUniverseIdfavoritescount = {
|
|
598
|
+
method: 'get',
|
|
599
|
+
path: '/v1/games/:universeId/favorites/count',
|
|
600
|
+
baseUrl: 'https://games.roblox.com',
|
|
601
|
+
requestFormat: 'json',
|
|
602
|
+
parameters: {
|
|
603
|
+
universeId: zod_1.z.number().int(),
|
|
604
|
+
},
|
|
605
|
+
response: zod_1.z.object({ favoritesCount: zod_1.z.number().int() }).partial(),
|
|
606
|
+
errors: [
|
|
607
|
+
{
|
|
608
|
+
status: 400,
|
|
609
|
+
description: "3: The universe's root place is invalid.",
|
|
610
|
+
schema: zod_1.z.void(),
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
status: 404,
|
|
614
|
+
description: "2: The requested universe does not exist.",
|
|
615
|
+
schema: zod_1.z.void(),
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
};
|
|
619
|
+
exports.getV1gamesUniverseIdgamePasses = {
|
|
620
|
+
method: 'get',
|
|
621
|
+
path: '/v1/games/:universeId/game-passes',
|
|
622
|
+
baseUrl: 'https://games.roblox.com',
|
|
623
|
+
requestFormat: 'json',
|
|
624
|
+
parameters: {
|
|
625
|
+
universeId: zod_1.z.number().int(),
|
|
626
|
+
limit: zod_1.z
|
|
627
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
628
|
+
.optional()
|
|
629
|
+
.default(10),
|
|
630
|
+
cursor: zod_1.z.string().optional(),
|
|
631
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
632
|
+
},
|
|
633
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Games_Api_Models_Response_GamePassResponse_,
|
|
634
|
+
errors: [
|
|
635
|
+
{
|
|
636
|
+
status: 400,
|
|
637
|
+
description: "2: The universe's root place is invalid.",
|
|
638
|
+
schema: zod_1.z.void(),
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
status: 404,
|
|
642
|
+
description: "1: The requested universe does not exist.",
|
|
643
|
+
schema: zod_1.z.void(),
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
};
|
|
647
|
+
exports.getV1gamesUniverseIdmedia = {
|
|
648
|
+
method: 'get',
|
|
649
|
+
path: '/v1/games/:universeId/media',
|
|
650
|
+
baseUrl: 'https://games.roblox.com',
|
|
651
|
+
requestFormat: 'json',
|
|
652
|
+
parameters: {
|
|
653
|
+
universeId: zod_1.z.number().int(),
|
|
654
|
+
},
|
|
655
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameMediaItem_,
|
|
656
|
+
errors: [
|
|
657
|
+
{
|
|
658
|
+
status: 400,
|
|
659
|
+
description: "3: The universe's root place is invalid.",
|
|
660
|
+
schema: zod_1.z.void(),
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
status: 404,
|
|
664
|
+
description: "2: The requested universe does not exist.",
|
|
665
|
+
schema: zod_1.z.void(),
|
|
666
|
+
},
|
|
667
|
+
],
|
|
668
|
+
};
|
|
669
|
+
exports.patchV1gamesUniverseIduserVotes = {
|
|
670
|
+
method: 'patch',
|
|
671
|
+
path: '/v1/games/:universeId/user-votes',
|
|
672
|
+
baseUrl: 'https://games.roblox.com',
|
|
673
|
+
requestFormat: 'json',
|
|
674
|
+
parameters: {
|
|
675
|
+
body: zod_1.z.object({ vote: zod_1.z.boolean() }).partial(),
|
|
676
|
+
universeId: zod_1.z.number().int(),
|
|
677
|
+
},
|
|
678
|
+
response: zod_1.z.object({}).partial(),
|
|
679
|
+
errors: [
|
|
680
|
+
{
|
|
681
|
+
status: 400,
|
|
682
|
+
description: "2: The universe's root place is invalid.\n3: The asset is not voteable.\n4: The requested vote is invalid.",
|
|
683
|
+
schema: zod_1.z.void(),
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
status: 401,
|
|
687
|
+
description: "0: Authorization has been denied for this request.",
|
|
688
|
+
schema: zod_1.z.void(),
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
status: 403,
|
|
692
|
+
description: "0: Token Validation Failed\n6: The user needs to play the game before vote.\n7: The user needs additional permission to vote.",
|
|
693
|
+
schema: zod_1.z.void(),
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
status: 404,
|
|
697
|
+
description: "1: The requested universe does not exist.",
|
|
698
|
+
schema: zod_1.z.void(),
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
status: 429,
|
|
702
|
+
description: "5: Too many attempts to vote. Please try again later.\n10: Internal service busy. Please try again later.",
|
|
703
|
+
schema: zod_1.z.void(),
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
status: 500,
|
|
707
|
+
description: "0: An unknown error occurred.",
|
|
708
|
+
schema: zod_1.z.void(),
|
|
709
|
+
},
|
|
710
|
+
],
|
|
711
|
+
};
|
|
712
|
+
exports.getV1gamesUniverseIdvotes = {
|
|
713
|
+
method: 'get',
|
|
714
|
+
path: '/v1/games/:universeId/votes',
|
|
715
|
+
baseUrl: 'https://games.roblox.com',
|
|
716
|
+
requestFormat: 'json',
|
|
717
|
+
parameters: {
|
|
718
|
+
universeId: zod_1.z.number().int(),
|
|
719
|
+
},
|
|
720
|
+
response: Roblox_Games_Api_Models_Response_GameVoteResponse,
|
|
721
|
+
errors: [
|
|
722
|
+
{
|
|
723
|
+
status: 400,
|
|
724
|
+
description: "2: The universe's root place is invalid.\n3: The asset is not voteable.",
|
|
725
|
+
schema: zod_1.z.void(),
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
status: 404,
|
|
729
|
+
description: "1: The requested universe does not exist.",
|
|
730
|
+
schema: zod_1.z.void(),
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
status: 429,
|
|
734
|
+
description: "10: Internal service busy. Please try again later.",
|
|
735
|
+
schema: zod_1.z.void(),
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
status: 500,
|
|
739
|
+
description: "0: An unknown error occurred.",
|
|
740
|
+
schema: zod_1.z.void(),
|
|
741
|
+
},
|
|
742
|
+
],
|
|
743
|
+
};
|
|
744
|
+
exports.getV1gamesUniverseIdvotesuser = {
|
|
745
|
+
method: 'get',
|
|
746
|
+
path: '/v1/games/:universeId/votes/user',
|
|
747
|
+
baseUrl: 'https://games.roblox.com',
|
|
748
|
+
requestFormat: 'json',
|
|
749
|
+
parameters: {
|
|
750
|
+
universeId: zod_1.z.number().int(),
|
|
751
|
+
},
|
|
752
|
+
response: Roblox_Games_Api_Models_Response_UserGameVoteResponse,
|
|
753
|
+
errors: [
|
|
754
|
+
{
|
|
755
|
+
status: 400,
|
|
756
|
+
description: "2: The universe's root place is invalid.\n3: The asset is not voteable.",
|
|
757
|
+
schema: zod_1.z.void(),
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
status: 401,
|
|
761
|
+
description: "0: Authorization has been denied for this request.",
|
|
762
|
+
schema: zod_1.z.void(),
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
status: 404,
|
|
766
|
+
description: "1: The requested universe does not exist.",
|
|
767
|
+
schema: zod_1.z.void(),
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
status: 429,
|
|
771
|
+
description: "10: Internal service busy. Please try again later.",
|
|
772
|
+
schema: zod_1.z.void(),
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
status: 500,
|
|
776
|
+
description: "0: An unknown error occurred.",
|
|
777
|
+
schema: zod_1.z.void(),
|
|
778
|
+
},
|
|
779
|
+
],
|
|
780
|
+
};
|
|
781
|
+
exports.getV1gamesgameThumbnail = {
|
|
782
|
+
method: 'get',
|
|
783
|
+
path: '/v1/games/game-thumbnail',
|
|
784
|
+
baseUrl: 'https://games.roblox.com',
|
|
785
|
+
requestFormat: 'json',
|
|
786
|
+
parameters: {
|
|
787
|
+
imageToken: zod_1.z.string(),
|
|
788
|
+
height: zod_1.z.number().int().optional().default(50),
|
|
789
|
+
width: zod_1.z.number().int().optional().default(50),
|
|
790
|
+
},
|
|
791
|
+
response: zod_1.z.void(),
|
|
792
|
+
errors: [
|
|
793
|
+
{
|
|
794
|
+
status: 404,
|
|
795
|
+
description: "10: This endpoint is deprecated",
|
|
796
|
+
schema: zod_1.z.void(),
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
};
|
|
800
|
+
exports.getV1gamesgameThumbnails = {
|
|
801
|
+
method: 'get',
|
|
802
|
+
path: '/v1/games/game-thumbnails',
|
|
803
|
+
baseUrl: 'https://games.roblox.com',
|
|
804
|
+
requestFormat: 'json',
|
|
805
|
+
parameters: {
|
|
806
|
+
imageTokens: zod_1.z.array(zod_1.z.string()),
|
|
807
|
+
height: zod_1.z.number().int().optional().default(50),
|
|
808
|
+
width: zod_1.z.number().int().optional().default(50),
|
|
809
|
+
},
|
|
810
|
+
response: zod_1.z.array(Roblox_Games_Api_Models_Response_Thumbnail),
|
|
811
|
+
errors: [
|
|
812
|
+
{
|
|
813
|
+
status: 404,
|
|
814
|
+
description: "10: This endpoint is deprecated",
|
|
815
|
+
schema: zod_1.z.void(),
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
};
|
|
819
|
+
exports.getV1gamesgamesProductInfo = {
|
|
820
|
+
method: 'get',
|
|
821
|
+
path: '/v1/games/games-product-info',
|
|
822
|
+
baseUrl: 'https://games.roblox.com',
|
|
823
|
+
requestFormat: 'json',
|
|
824
|
+
parameters: {
|
|
825
|
+
universeIds: zod_1.z.array(zod_1.z.number()),
|
|
826
|
+
},
|
|
827
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameProductResponse_,
|
|
828
|
+
errors: [
|
|
829
|
+
{
|
|
830
|
+
status: 400,
|
|
831
|
+
description: "8: No universe IDs were specified.\n9: Too many universe IDs were requested.",
|
|
832
|
+
schema: zod_1.z.void(),
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
};
|
|
836
|
+
exports.getV1gameslist = {
|
|
837
|
+
method: 'get',
|
|
838
|
+
path: '/v1/games/list',
|
|
839
|
+
baseUrl: 'https://games.roblox.com',
|
|
840
|
+
requestFormat: 'json',
|
|
841
|
+
parameters: {
|
|
842
|
+
SortToken: zod_1.z.string(),
|
|
843
|
+
GameFilter: zod_1.z.string(),
|
|
844
|
+
TimeFilter: zod_1.z.string(),
|
|
845
|
+
GenreFilter: zod_1.z.string(),
|
|
846
|
+
ExclusiveStartId: zod_1.z.number().int(),
|
|
847
|
+
SortOrder: zod_1.z.number().int(),
|
|
848
|
+
GameSetTargetId: zod_1.z.number().int(),
|
|
849
|
+
Keyword: zod_1.z.string(),
|
|
850
|
+
StartRows: zod_1.z.number().int(),
|
|
851
|
+
MaxRows: zod_1.z.number().int(),
|
|
852
|
+
ContextCountryRegionId: zod_1.z.number().int(),
|
|
853
|
+
ContextUniverseId: zod_1.z.number().int(),
|
|
854
|
+
'PageContext.PageId': zod_1.z.string().uuid(),
|
|
855
|
+
'PageContext.IsSeeAllPage': zod_1.z.boolean(),
|
|
856
|
+
SortPosition: zod_1.z.number().int(),
|
|
857
|
+
SessionId: zod_1.z.string(),
|
|
858
|
+
},
|
|
859
|
+
response: Roblox_Games_Api_Models_Response_GamesSearchResponse,
|
|
860
|
+
errors: [
|
|
861
|
+
{
|
|
862
|
+
status: 500,
|
|
863
|
+
description: "0: Compliance Context service is unavailable.",
|
|
864
|
+
schema: zod_1.z.void(),
|
|
865
|
+
},
|
|
866
|
+
],
|
|
867
|
+
};
|
|
868
|
+
exports.getV1gameslistSpotlight = {
|
|
869
|
+
method: 'get',
|
|
870
|
+
path: '/v1/games/list-spotlight',
|
|
871
|
+
baseUrl: 'https://games.roblox.com',
|
|
872
|
+
requestFormat: 'json',
|
|
873
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameSpotlightResponse_,
|
|
874
|
+
errors: [
|
|
875
|
+
{
|
|
876
|
+
status: 500,
|
|
877
|
+
description: "0: Compliance Context service is unavailable.",
|
|
878
|
+
schema: zod_1.z.void(),
|
|
879
|
+
},
|
|
880
|
+
],
|
|
881
|
+
};
|
|
882
|
+
exports.getV1gamesmultigetPlaceDetails = {
|
|
883
|
+
method: 'get',
|
|
884
|
+
path: '/v1/games/multiget-place-details',
|
|
885
|
+
baseUrl: 'https://games.roblox.com',
|
|
886
|
+
requestFormat: 'json',
|
|
887
|
+
parameters: {
|
|
888
|
+
placeIds: zod_1.z.array(zod_1.z.number()),
|
|
889
|
+
},
|
|
890
|
+
response: zod_1.z.array(Roblox_Games_Api_Models_Response_PlaceDetails),
|
|
891
|
+
errors: [
|
|
892
|
+
{
|
|
893
|
+
status: 401,
|
|
894
|
+
description: "0: Authorization has been denied for this request.",
|
|
895
|
+
schema: zod_1.z.void(),
|
|
896
|
+
},
|
|
897
|
+
],
|
|
898
|
+
};
|
|
899
|
+
exports.getV1gamesmultigetPlayabilityStatus = {
|
|
900
|
+
method: 'get',
|
|
901
|
+
path: '/v1/games/multiget-playability-status',
|
|
902
|
+
baseUrl: 'https://games.roblox.com',
|
|
903
|
+
requestFormat: 'json',
|
|
904
|
+
parameters: {
|
|
905
|
+
universeIds: zod_1.z.array(zod_1.z.number()),
|
|
906
|
+
},
|
|
907
|
+
response: zod_1.z.array(Roblox_Games_Api_Models_Response_PlayabilityStatusResponse),
|
|
908
|
+
errors: [
|
|
909
|
+
{
|
|
910
|
+
status: 400,
|
|
911
|
+
description: "8: No universe IDs were specified.\n9: Too many universe IDs were requested.",
|
|
912
|
+
schema: zod_1.z.void(),
|
|
913
|
+
},
|
|
914
|
+
],
|
|
915
|
+
};
|
|
916
|
+
exports.getV1gamesrecommendationsalgorithmAlgorithmName = {
|
|
917
|
+
method: 'get',
|
|
918
|
+
path: '/v1/games/recommendations/algorithm/:algorithmName',
|
|
919
|
+
baseUrl: 'https://games.roblox.com',
|
|
920
|
+
requestFormat: 'json',
|
|
921
|
+
parameters: {
|
|
922
|
+
algorithmName: zod_1.z.string(),
|
|
923
|
+
PaginationKey: zod_1.z.string(),
|
|
924
|
+
MaxRows: zod_1.z.number().int(),
|
|
925
|
+
IsTruncatedResultsEnabled: zod_1.z.boolean(),
|
|
926
|
+
},
|
|
927
|
+
response: Roblox_Games_Api_Models_Response_GameRecommendationsResponse,
|
|
928
|
+
errors: [
|
|
929
|
+
{
|
|
930
|
+
status: 400,
|
|
931
|
+
description: "1: The pagination key is invalid.",
|
|
932
|
+
schema: zod_1.z.void(),
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
status: 401,
|
|
936
|
+
description: "0: Authorization has been denied for this request.",
|
|
937
|
+
schema: zod_1.z.void(),
|
|
938
|
+
},
|
|
939
|
+
],
|
|
940
|
+
};
|
|
941
|
+
exports.getV1gamesrecommendationsgameUniverseId = {
|
|
942
|
+
method: 'get',
|
|
943
|
+
path: '/v1/games/recommendations/game/:universeId',
|
|
944
|
+
baseUrl: 'https://games.roblox.com',
|
|
945
|
+
requestFormat: 'json',
|
|
946
|
+
parameters: {
|
|
947
|
+
universeId: zod_1.z.number().int(),
|
|
948
|
+
PaginationKey: zod_1.z.string(),
|
|
949
|
+
MaxRows: zod_1.z.number().int(),
|
|
950
|
+
IsTruncatedResultsEnabled: zod_1.z.boolean(),
|
|
951
|
+
},
|
|
952
|
+
response: Roblox_Games_Api_Models_Response_GameRecommendationsResponse,
|
|
953
|
+
errors: [
|
|
954
|
+
{
|
|
955
|
+
status: 400,
|
|
956
|
+
description: "1: The pagination key is invalid.",
|
|
957
|
+
schema: zod_1.z.void(),
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
status: 404,
|
|
961
|
+
description: "2: The requested universe does not exist.",
|
|
962
|
+
schema: zod_1.z.void(),
|
|
963
|
+
},
|
|
964
|
+
],
|
|
965
|
+
};
|
|
966
|
+
exports.getV1gamessorts = {
|
|
967
|
+
method: 'get',
|
|
968
|
+
path: '/v1/games/sorts',
|
|
969
|
+
baseUrl: 'https://games.roblox.com',
|
|
970
|
+
requestFormat: 'json',
|
|
971
|
+
parameters: {
|
|
972
|
+
GameSortsContext: zod_1.z.union([
|
|
973
|
+
zod_1.z.literal(0),
|
|
974
|
+
zod_1.z.literal(1),
|
|
975
|
+
zod_1.z.literal(2),
|
|
976
|
+
zod_1.z.literal(3),
|
|
977
|
+
zod_1.z.literal(4),
|
|
978
|
+
zod_1.z.literal(6),
|
|
979
|
+
zod_1.z.literal(7),
|
|
980
|
+
]),
|
|
981
|
+
},
|
|
982
|
+
response: Roblox_Games_Api_Models_Response_GameSortsResponse,
|
|
983
|
+
errors: [],
|
|
984
|
+
};
|
|
985
|
+
exports.postV1gamesvipServersUniverseId = {
|
|
986
|
+
method: 'post',
|
|
987
|
+
path: '/v1/games/vip-servers/:universeId',
|
|
988
|
+
baseUrl: 'https://games.roblox.com',
|
|
989
|
+
requestFormat: 'json',
|
|
990
|
+
parameters: {
|
|
991
|
+
body: Roblox_Games_Api_CreateVipServersRequest,
|
|
992
|
+
universeId: zod_1.z.number().int(),
|
|
993
|
+
},
|
|
994
|
+
response: Roblox_Web_Responses_Games_GameServerResponse,
|
|
995
|
+
errors: [
|
|
996
|
+
{
|
|
997
|
+
status: 400,
|
|
998
|
+
description: "15: The price for purchasing this private server has changed. Please refresh the page and try again.",
|
|
999
|
+
schema: zod_1.z.void(),
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
status: 401,
|
|
1003
|
+
description: "0: Authorization has been denied for this request.",
|
|
1004
|
+
schema: zod_1.z.void(),
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
status: 403,
|
|
1008
|
+
description: "0: Token Validation Failed",
|
|
1009
|
+
schema: zod_1.z.void(),
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
status: 404,
|
|
1013
|
+
description: "4: The universe does not exist.",
|
|
1014
|
+
schema: zod_1.z.void(),
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
status: 500,
|
|
1018
|
+
description: "16: We are having a problem completing your purchase. Please try again in a few minutes.",
|
|
1019
|
+
schema: zod_1.z.void(),
|
|
1020
|
+
},
|
|
1021
|
+
],
|
|
1022
|
+
};
|
|
1023
|
+
exports.getV1gamesvotes = {
|
|
1024
|
+
method: 'get',
|
|
1025
|
+
path: '/v1/games/votes',
|
|
1026
|
+
baseUrl: 'https://games.roblox.com',
|
|
1027
|
+
requestFormat: 'json',
|
|
1028
|
+
parameters: {
|
|
1029
|
+
universeIds: zod_1.z.array(zod_1.z.number()),
|
|
1030
|
+
},
|
|
1031
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameVoteResponse_,
|
|
1032
|
+
errors: [
|
|
1033
|
+
{
|
|
1034
|
+
status: 400,
|
|
1035
|
+
description: "3: The asset is not voteable.\n8: No universe IDs were specified.\n9: Too many universe IDs were requested.",
|
|
1036
|
+
schema: zod_1.z.void(),
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
status: 429,
|
|
1040
|
+
description: "10: Internal service busy. Please try again later.",
|
|
1041
|
+
schema: zod_1.z.void(),
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
status: 500,
|
|
1045
|
+
description: "0: An unknown error occurred.",
|
|
1046
|
+
schema: zod_1.z.void(),
|
|
1047
|
+
},
|
|
1048
|
+
],
|
|
1049
|
+
};
|
|
1050
|
+
exports.getV1privateServers = {
|
|
1051
|
+
method: 'get',
|
|
1052
|
+
path: '/v1/private-servers',
|
|
1053
|
+
baseUrl: 'https://games.roblox.com',
|
|
1054
|
+
requestFormat: 'json',
|
|
1055
|
+
parameters: {
|
|
1056
|
+
privateServerIds: zod_1.z.array(zod_1.z.number()),
|
|
1057
|
+
},
|
|
1058
|
+
response: Roblox_Games_Api_PrivateServersResponse,
|
|
1059
|
+
errors: [
|
|
1060
|
+
{
|
|
1061
|
+
status: 400,
|
|
1062
|
+
description: "8: The creator of this game has disabled private servers for this game.\n34: Invalid request, private server ids cannot be null.\n35: Guest users are not allowed.",
|
|
1063
|
+
schema: zod_1.z.void(),
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
status: 401,
|
|
1067
|
+
description: "0: Authorization has been denied for this request.",
|
|
1068
|
+
schema: zod_1.z.void(),
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
status: 403,
|
|
1072
|
+
description: "2: You are not the owner of this private server.",
|
|
1073
|
+
schema: zod_1.z.void(),
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
status: 404,
|
|
1077
|
+
description: "1: The private server is invalid or does not exist.\n4: The universe does not exist.",
|
|
1078
|
+
schema: zod_1.z.void(),
|
|
1079
|
+
},
|
|
1080
|
+
],
|
|
1081
|
+
};
|
|
1082
|
+
exports.getV1privateServersenabledInUniverseUniverseId = {
|
|
1083
|
+
method: 'get',
|
|
1084
|
+
path: '/v1/private-servers/enabled-in-universe/:universeId',
|
|
1085
|
+
baseUrl: 'https://games.roblox.com',
|
|
1086
|
+
requestFormat: 'json',
|
|
1087
|
+
parameters: {
|
|
1088
|
+
universeId: zod_1.z.number().int(),
|
|
1089
|
+
},
|
|
1090
|
+
response: zod_1.z.object({ privateServersEnabled: zod_1.z.boolean() }).partial(),
|
|
1091
|
+
errors: [
|
|
1092
|
+
{
|
|
1093
|
+
status: 400,
|
|
1094
|
+
description: "8: No universe IDs were specified.",
|
|
1095
|
+
schema: zod_1.z.void(),
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
};
|
|
1099
|
+
exports.getV1vipServercanInviteUserId = {
|
|
1100
|
+
method: 'get',
|
|
1101
|
+
path: '/v1/vip-server/can-invite/:userId',
|
|
1102
|
+
baseUrl: 'https://games.roblox.com',
|
|
1103
|
+
requestFormat: 'json',
|
|
1104
|
+
parameters: {
|
|
1105
|
+
userId: zod_1.z.number().int(),
|
|
1106
|
+
},
|
|
1107
|
+
response: zod_1.z.object({ canInvite: zod_1.z.boolean() }).partial(),
|
|
1108
|
+
errors: [
|
|
1109
|
+
{
|
|
1110
|
+
status: 401,
|
|
1111
|
+
description: "0: Authorization has been denied for this request.",
|
|
1112
|
+
schema: zod_1.z.void(),
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
status: 404,
|
|
1116
|
+
description: "19: The user is does not exist.",
|
|
1117
|
+
schema: zod_1.z.void(),
|
|
1118
|
+
},
|
|
1119
|
+
],
|
|
1120
|
+
};
|
|
1121
|
+
exports.getV1vipServersId = {
|
|
1122
|
+
method: 'get',
|
|
1123
|
+
path: '/v1/vip-servers/:id',
|
|
1124
|
+
baseUrl: 'https://games.roblox.com',
|
|
1125
|
+
requestFormat: 'json',
|
|
1126
|
+
parameters: {
|
|
1127
|
+
id: zod_1.z.number().int(),
|
|
1128
|
+
},
|
|
1129
|
+
response: Roblox_Games_Api_VipServerResponse,
|
|
1130
|
+
errors: [
|
|
1131
|
+
{
|
|
1132
|
+
status: 400,
|
|
1133
|
+
description: "8: The creator of this game has disabled private servers for this game.",
|
|
1134
|
+
schema: zod_1.z.void(),
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
status: 401,
|
|
1138
|
+
description: "0: Authorization has been denied for this request.",
|
|
1139
|
+
schema: zod_1.z.void(),
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
status: 403,
|
|
1143
|
+
description: "2: You are not the owner of this private server.",
|
|
1144
|
+
schema: zod_1.z.void(),
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
status: 404,
|
|
1148
|
+
description: "1: The private server is invalid or does not exist.\n4: The universe does not exist.",
|
|
1149
|
+
schema: zod_1.z.void(),
|
|
1150
|
+
},
|
|
1151
|
+
],
|
|
1152
|
+
};
|
|
1153
|
+
exports.patchV1vipServersId = {
|
|
1154
|
+
method: 'patch',
|
|
1155
|
+
path: '/v1/vip-servers/:id',
|
|
1156
|
+
baseUrl: 'https://games.roblox.com',
|
|
1157
|
+
requestFormat: 'json',
|
|
1158
|
+
parameters: {
|
|
1159
|
+
body: Roblox_Games_Api_VipServerUpdateRequest,
|
|
1160
|
+
id: zod_1.z.number().int(),
|
|
1161
|
+
},
|
|
1162
|
+
response: Roblox_Games_Api_VipServerResponse,
|
|
1163
|
+
errors: [
|
|
1164
|
+
{
|
|
1165
|
+
status: 400,
|
|
1166
|
+
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.",
|
|
1167
|
+
schema: zod_1.z.void(),
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
status: 401,
|
|
1171
|
+
description: "0: Authorization has been denied for this request.",
|
|
1172
|
+
schema: zod_1.z.void(),
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
status: 403,
|
|
1176
|
+
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.",
|
|
1177
|
+
schema: zod_1.z.void(),
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
status: 404,
|
|
1181
|
+
description: "1: The private server is invalid or does not exist.\n4: The universe does not exist.",
|
|
1182
|
+
schema: zod_1.z.void(),
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
status: 429,
|
|
1186
|
+
description: "3: Please wait a few minutes before configuring your private server again.",
|
|
1187
|
+
schema: zod_1.z.void(),
|
|
1188
|
+
},
|
|
1189
|
+
],
|
|
1190
|
+
};
|
|
1191
|
+
exports.patchV1vipServersIdpermissions = {
|
|
1192
|
+
method: 'patch',
|
|
1193
|
+
path: '/v1/vip-servers/:id/permissions',
|
|
1194
|
+
baseUrl: 'https://games.roblox.com',
|
|
1195
|
+
requestFormat: 'json',
|
|
1196
|
+
parameters: {
|
|
1197
|
+
body: Roblox_Games_Api_VipServerUpdatePermissionsRequest,
|
|
1198
|
+
id: zod_1.z.number().int(),
|
|
1199
|
+
},
|
|
1200
|
+
response: Roblox_Games_Api_VipServerPermissionsResponse,
|
|
1201
|
+
errors: [
|
|
1202
|
+
{
|
|
1203
|
+
status: 400,
|
|
1204
|
+
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.",
|
|
1205
|
+
schema: zod_1.z.void(),
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
status: 401,
|
|
1209
|
+
description: "0: Authorization has been denied for this request.",
|
|
1210
|
+
schema: zod_1.z.void(),
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
status: 403,
|
|
1214
|
+
description: "0: Token Validation Failed\n2: You are not the owner of this private server.",
|
|
1215
|
+
schema: zod_1.z.void(),
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
status: 404,
|
|
1219
|
+
description: "1: The private server is invalid or does not exist.\n4: The universe does not exist.",
|
|
1220
|
+
schema: zod_1.z.void(),
|
|
1221
|
+
},
|
|
1222
|
+
],
|
|
1223
|
+
};
|
|
1224
|
+
exports.patchV1vipServersIdsubscription = {
|
|
1225
|
+
method: 'patch',
|
|
1226
|
+
path: '/v1/vip-servers/:id/subscription',
|
|
1227
|
+
baseUrl: 'https://games.roblox.com',
|
|
1228
|
+
requestFormat: 'json',
|
|
1229
|
+
parameters: {
|
|
1230
|
+
body: Roblox_Games_Api_VipServerUpdateSubscriptionRequest,
|
|
1231
|
+
id: zod_1.z.number().int(),
|
|
1232
|
+
},
|
|
1233
|
+
response: Roblox_Games_Api_VipServerSubscriptionResponse,
|
|
1234
|
+
errors: [
|
|
1235
|
+
{
|
|
1236
|
+
status: 400,
|
|
1237
|
+
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.",
|
|
1238
|
+
schema: zod_1.z.void(),
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
status: 401,
|
|
1242
|
+
description: "0: Authorization has been denied for this request.",
|
|
1243
|
+
schema: zod_1.z.void(),
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
status: 403,
|
|
1247
|
+
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.",
|
|
1248
|
+
schema: zod_1.z.void(),
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
status: 404,
|
|
1252
|
+
description: "1: The private server is invalid or does not exist.\n4: The universe does not exist.",
|
|
1253
|
+
schema: zod_1.z.void(),
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
status: 429,
|
|
1257
|
+
description: "3: Please wait a few minutes before configuring your private server again.",
|
|
1258
|
+
schema: zod_1.z.void(),
|
|
1259
|
+
},
|
|
1260
|
+
],
|
|
1261
|
+
};
|
|
1262
|
+
exports.patchV1vipServersIdvoicesettings = {
|
|
1263
|
+
method: 'patch',
|
|
1264
|
+
path: '/v1/vip-servers/:id/voicesettings',
|
|
1265
|
+
baseUrl: 'https://games.roblox.com',
|
|
1266
|
+
requestFormat: 'json',
|
|
1267
|
+
parameters: {
|
|
1268
|
+
body: zod_1.z.object({ enabled: zod_1.z.boolean() }).partial(),
|
|
1269
|
+
id: zod_1.z.number().int(),
|
|
1270
|
+
},
|
|
1271
|
+
response: zod_1.z.object({ enabled: zod_1.z.boolean() }).partial(),
|
|
1272
|
+
errors: [
|
|
1273
|
+
{
|
|
1274
|
+
status: 400,
|
|
1275
|
+
description: "8: The creator of this game has disabled private servers for this game.",
|
|
1276
|
+
schema: zod_1.z.void(),
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
status: 401,
|
|
1280
|
+
description: "0: Authorization has been denied for this request.",
|
|
1281
|
+
schema: zod_1.z.void(),
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
status: 403,
|
|
1285
|
+
description: "0: Token Validation Failed\n2: You are not the owner of this private server.\n33: You are not eligible for voice chat.",
|
|
1286
|
+
schema: zod_1.z.void(),
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
status: 404,
|
|
1290
|
+
description: "1: The private server is invalid or does not exist.",
|
|
1291
|
+
schema: zod_1.z.void(),
|
|
1292
|
+
},
|
|
1293
|
+
],
|
|
1294
|
+
};
|