rozod 6.7.0 → 6.7.1
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 +50 -87
- package/lib/endpoints/accountinformationv1.js +46 -90
- package/lib/endpoints/assetdeliveryv1.d.ts +1 -0
- package/lib/endpoints/assetdeliveryv1.js +1 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +1 -0
- package/lib/endpoints/assetdeliveryv2.js +1 -0
- package/lib/endpoints/authv1.d.ts +64 -1
- package/lib/endpoints/authv1.js +67 -3
- package/lib/endpoints/authv2.d.ts +21 -0
- package/lib/endpoints/authv2.js +22 -1
- package/lib/endpoints/avatarv1.d.ts +9 -6
- package/lib/endpoints/avatarv1.js +9 -6
- package/lib/endpoints/avatarv2.d.ts +11 -5
- package/lib/endpoints/avatarv2.js +11 -5
- package/lib/endpoints/avatarv3.d.ts +16 -7
- package/lib/endpoints/avatarv3.js +16 -7
- package/lib/endpoints/catalogv1.d.ts +23 -2
- package/lib/endpoints/catalogv1.js +19 -2
- package/lib/endpoints/catalogv2.d.ts +242 -6
- package/lib/endpoints/catalogv2.js +235 -7
- package/lib/endpoints/chatv2.d.ts +778 -778
- package/lib/endpoints/clientsettingsv2.d.ts +6 -0
- package/lib/endpoints/clientsettingsv2.js +6 -0
- package/lib/endpoints/contactsv1.d.ts +18 -22
- package/lib/endpoints/contactsv1.js +14 -22
- package/lib/endpoints/developv1.d.ts +33 -1
- package/lib/endpoints/developv1.js +9 -3
- package/lib/endpoints/developv2.d.ts +29 -2
- package/lib/endpoints/developv2.js +13 -4
- package/lib/endpoints/gameinternationalizationv1.d.ts +59 -0
- package/lib/endpoints/gameinternationalizationv1.js +57 -1
- package/lib/endpoints/gamejoinv1.d.ts +458 -458
- package/lib/endpoints/gamesv1.d.ts +77 -0
- package/lib/endpoints/gamesv1.js +68 -97
- package/lib/endpoints/gamesv2.d.ts +1 -0
- package/lib/endpoints/gamesv2.js +1 -0
- package/lib/endpoints/groupsv1.d.ts +7 -3
- package/lib/endpoints/groupsv1.js +7 -3
- package/lib/endpoints/groupsv2.d.ts +1 -0
- package/lib/endpoints/groupsv2.js +1 -0
- package/lib/endpoints/inventoryv2.d.ts +68 -0
- package/lib/endpoints/inventoryv2.js +66 -1
- package/lib/endpoints/localev1.d.ts +27 -0
- package/lib/endpoints/localev1.js +28 -1
- package/lib/endpoints/metricsv1.d.ts +88 -88
- package/lib/endpoints/publishv1.d.ts +3 -6
- package/lib/endpoints/publishv1.js +3 -6
- package/lib/opencloud/v2/cloud.d.ts +27 -5
- package/lib/opencloud/v2/cloud.js +43 -6
- package/package.json +108 -108
|
@@ -46,6 +46,7 @@ const Roblox_Games_Api_Models_Response_GameDetailResponse = z.object({
|
|
|
46
46
|
refundLink: z.string(),
|
|
47
47
|
localizedFiatPrice: z.string(),
|
|
48
48
|
refundPolicy: Roblox_Games_Api_Models_Response_RefundPolicy,
|
|
49
|
+
canonicalUrlPath: z.string(),
|
|
49
50
|
});
|
|
50
51
|
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_ =
|
|
51
52
|
z.object({
|
|
@@ -148,6 +149,13 @@ const Roblox_Games_Api_Models_Response_PlayableUxTreatment = z.object({
|
|
|
148
149
|
treatment: z.string(),
|
|
149
150
|
data: Roblox_Games_Api_Models_Response_PlayableUxTreatmentData,
|
|
150
151
|
});
|
|
152
|
+
const Roblox_Games_Api_Models_Response_UpsellUxTreatmentData = z.object({
|
|
153
|
+
bodyText: z.string(),
|
|
154
|
+
});
|
|
155
|
+
const Roblox_Games_Api_Models_Response_UpsellUxTreatment = z.object({
|
|
156
|
+
treatment: z.string(),
|
|
157
|
+
data: Roblox_Games_Api_Models_Response_UpsellUxTreatmentData,
|
|
158
|
+
});
|
|
151
159
|
const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = z.object({
|
|
152
160
|
playabilityStatus: z.enum([
|
|
153
161
|
"UnplayableOtherReason",
|
|
@@ -176,12 +184,24 @@ const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = z.object({
|
|
|
176
184
|
"ContextualPlayabilityUnrated",
|
|
177
185
|
"ContextualPlayabilityAgeGatedByDescriptor",
|
|
178
186
|
"ContextualPlayabilityGeneral",
|
|
187
|
+
"ContextualPlayabilityAgeCheckRequired",
|
|
188
|
+
"ContextualPlayabilityRequireParentApproval",
|
|
189
|
+
"ContextualPlayabilityCoreGated",
|
|
179
190
|
]),
|
|
180
191
|
isPlayable: z.boolean(),
|
|
181
192
|
universeId: z.number().int(),
|
|
182
193
|
unplayableDisplayText: z.string(),
|
|
183
194
|
playableUxTreatment: Roblox_Games_Api_Models_Response_PlayableUxTreatment,
|
|
195
|
+
upsellUxTreatment: Roblox_Games_Api_Models_Response_UpsellUxTreatment,
|
|
184
196
|
});
|
|
197
|
+
const Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel =
|
|
198
|
+
z.object({
|
|
199
|
+
badgePosition: z.string(),
|
|
200
|
+
badgeAnalyticsId: z.string(),
|
|
201
|
+
badgeType: z.string(),
|
|
202
|
+
badgeIcon: z.string(),
|
|
203
|
+
badgeComponentType: z.string(),
|
|
204
|
+
});
|
|
185
205
|
const Roblox_Games_Api_Models_Response_GameResponseModel = z.object({
|
|
186
206
|
creatorId: z.number().int(),
|
|
187
207
|
creatorName: z.string(),
|
|
@@ -203,6 +223,8 @@ const Roblox_Games_Api_Models_Response_GameResponseModel = z.object({
|
|
|
203
223
|
genre: z.string(),
|
|
204
224
|
minimumAge: z.number().int(),
|
|
205
225
|
ageRecommendationDisplayName: z.string(),
|
|
226
|
+
contentMetadata:
|
|
227
|
+
Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
|
|
206
228
|
canonicalUrlPath: z.string(),
|
|
207
229
|
});
|
|
208
230
|
const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = z.object({
|
|
@@ -214,6 +236,7 @@ const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = z.object({
|
|
|
214
236
|
* @api GET https://games.roblox.com/v1/games
|
|
215
237
|
* @summary Gets a list of games' detail
|
|
216
238
|
* @param universeIds A list of universe Ids. Cannot exceed a maximum of 50 IDs.
|
|
239
|
+
* @param fields Optional comma-separated list of field names to include in the response. When omitted, all fields are returned.
|
|
217
240
|
*/
|
|
218
241
|
export const getGames = endpoint({
|
|
219
242
|
method: "GET",
|
|
@@ -224,9 +247,14 @@ export const getGames = endpoint({
|
|
|
224
247
|
universeIds: {
|
|
225
248
|
style: "form",
|
|
226
249
|
},
|
|
250
|
+
fields: {
|
|
251
|
+
style: "form",
|
|
252
|
+
explode: true,
|
|
253
|
+
},
|
|
227
254
|
},
|
|
228
255
|
parameters: {
|
|
229
256
|
universeIds: z.array(z.number()),
|
|
257
|
+
fields: z.string().optional(),
|
|
230
258
|
},
|
|
231
259
|
response:
|
|
232
260
|
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_,
|
|
@@ -915,3 +943,52 @@ export const postGamesVipServersUniverseid = endpoint({
|
|
|
915
943
|
{ status: 500, description: `16: We are having a problem completing your purchase. Please try again in a few minutes.` },
|
|
916
944
|
],
|
|
917
945
|
});
|
|
946
|
+
|
|
947
|
+
const Patch_GetPrivateServerListResponse = z.object({
|
|
948
|
+
gameJoinRestricted: z.boolean(),
|
|
949
|
+
previousPageCursor: z.string(),
|
|
950
|
+
nextPageCursor: z.string(),
|
|
951
|
+
data: z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
export const getGamesPlaceidPrivateServers = endpoint({
|
|
955
|
+
method: 'GET',
|
|
956
|
+
path: '/v1/games/:placeId/private-servers',
|
|
957
|
+
baseUrl: 'https://games.roblox.com',
|
|
958
|
+
requestFormat: 'json',
|
|
959
|
+
serializationMethod: {
|
|
960
|
+
placeId: { style: 'simple' },
|
|
961
|
+
excludeFriendServers: { style: 'form', explode: true },
|
|
962
|
+
limit: { style: 'form', explode: true },
|
|
963
|
+
cursor: { style: 'form', explode: true },
|
|
964
|
+
sortOrder: { style: 'form', explode: true },
|
|
965
|
+
},
|
|
966
|
+
parameters: {
|
|
967
|
+
placeId: z.number().int(),
|
|
968
|
+
excludeFriendServers: z.boolean().optional(),
|
|
969
|
+
limit: z
|
|
970
|
+
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
971
|
+
.optional()
|
|
972
|
+
.default(10),
|
|
973
|
+
cursor: z.string().optional(),
|
|
974
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
975
|
+
},
|
|
976
|
+
response: Patch_GetPrivateServerListResponse,
|
|
977
|
+
errors: [
|
|
978
|
+
{ status: 400, description: `1: The place is invalid.\n7: Guest users are not allowed.` },
|
|
979
|
+
{ status: 404, description: `1: The place is invalid.` },
|
|
980
|
+
],
|
|
981
|
+
});
|
|
982
|
+
|
|
983
|
+
export const getPrivateServersEnabledInUniverseUniverseid = endpoint({
|
|
984
|
+
method: 'GET',
|
|
985
|
+
path: '/v1/private-servers/enabled-in-universe/:universeId',
|
|
986
|
+
baseUrl: 'https://games.roblox.com',
|
|
987
|
+
requestFormat: 'json',
|
|
988
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
989
|
+
parameters: { universeId: z.number().int() },
|
|
990
|
+
response: z.object({ privateServersEnabled: z.boolean() }),
|
|
991
|
+
errors: [
|
|
992
|
+
{ status: 400, description: `8: The universe IDs specified are invalid.` },
|
|
993
|
+
],
|
|
994
|
+
});
|
package/lib/endpoints/gamesv1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
3
|
+
exports.getPrivateServersEnabledInUniverseUniverseid = exports.getGamesPlaceidPrivateServers = 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.getGamesRecommendationsGameUniverseid = exports.getGamesMultigetPlayabilityStatus = exports.getGamesMultigetPlaceDetails = exports.getGamesGamesProductInfo = exports.getGamesUniverseidMedia = exports.getGamesUniverseidFavoritesCount = exports.postGamesUniverseidFavorites = exports.getGamesUniverseidFavorites = exports.getGamesPlaceidServersServertype = 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({
|
|
@@ -48,6 +48,7 @@ const Roblox_Games_Api_Models_Response_GameDetailResponse = zod_1.z.object({
|
|
|
48
48
|
refundLink: zod_1.z.string(),
|
|
49
49
|
localizedFiatPrice: zod_1.z.string(),
|
|
50
50
|
refundPolicy: Roblox_Games_Api_Models_Response_RefundPolicy,
|
|
51
|
+
canonicalUrlPath: zod_1.z.string(),
|
|
51
52
|
});
|
|
52
53
|
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_ = zod_1.z.object({
|
|
53
54
|
data: zod_1.z.array(Roblox_Games_Api_Models_Response_GameDetailResponse),
|
|
@@ -77,12 +78,6 @@ const Roblox_Web_Responses_Games_GameServerResponse = zod_1.z.object({
|
|
|
77
78
|
accessCode: zod_1.z.string().uuid(),
|
|
78
79
|
owner: Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse,
|
|
79
80
|
});
|
|
80
|
-
const Roblox_Games_Api_Models_Response_GetPrivateServerListResponse = zod_1.z.object({
|
|
81
|
-
gameJoinRestricted: zod_1.z.boolean(),
|
|
82
|
-
previousPageCursor: zod_1.z.string(),
|
|
83
|
-
nextPageCursor: zod_1.z.string(),
|
|
84
|
-
data: zod_1.z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
85
|
-
});
|
|
86
81
|
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_ = zod_1.z.object({
|
|
87
82
|
previousPageCursor: zod_1.z.string(),
|
|
88
83
|
nextPageCursor: zod_1.z.string(),
|
|
@@ -154,6 +149,13 @@ const Roblox_Games_Api_Models_Response_PlayableUxTreatment = zod_1.z.object({
|
|
|
154
149
|
treatment: zod_1.z.string(),
|
|
155
150
|
data: Roblox_Games_Api_Models_Response_PlayableUxTreatmentData,
|
|
156
151
|
});
|
|
152
|
+
const Roblox_Games_Api_Models_Response_UpsellUxTreatmentData = zod_1.z.object({
|
|
153
|
+
bodyText: zod_1.z.string(),
|
|
154
|
+
});
|
|
155
|
+
const Roblox_Games_Api_Models_Response_UpsellUxTreatment = zod_1.z.object({
|
|
156
|
+
treatment: zod_1.z.string(),
|
|
157
|
+
data: Roblox_Games_Api_Models_Response_UpsellUxTreatmentData,
|
|
158
|
+
});
|
|
157
159
|
const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = zod_1.z.object({
|
|
158
160
|
playabilityStatus: zod_1.z.enum([
|
|
159
161
|
'UnplayableOtherReason',
|
|
@@ -182,11 +184,22 @@ const Roblox_Games_Api_Models_Response_PlayabilityStatusResponse = zod_1.z.objec
|
|
|
182
184
|
'ContextualPlayabilityUnrated',
|
|
183
185
|
'ContextualPlayabilityAgeGatedByDescriptor',
|
|
184
186
|
'ContextualPlayabilityGeneral',
|
|
187
|
+
'ContextualPlayabilityAgeCheckRequired',
|
|
188
|
+
'ContextualPlayabilityRequireParentApproval',
|
|
189
|
+
'ContextualPlayabilityCoreGated',
|
|
185
190
|
]),
|
|
186
191
|
isPlayable: zod_1.z.boolean(),
|
|
187
192
|
universeId: zod_1.z.number().int(),
|
|
188
193
|
unplayableDisplayText: zod_1.z.string(),
|
|
189
194
|
playableUxTreatment: Roblox_Games_Api_Models_Response_PlayableUxTreatment,
|
|
195
|
+
upsellUxTreatment: Roblox_Games_Api_Models_Response_UpsellUxTreatment,
|
|
196
|
+
});
|
|
197
|
+
const Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel = zod_1.z.object({
|
|
198
|
+
badgePosition: zod_1.z.string(),
|
|
199
|
+
badgeAnalyticsId: zod_1.z.string(),
|
|
200
|
+
badgeType: zod_1.z.string(),
|
|
201
|
+
badgeIcon: zod_1.z.string(),
|
|
202
|
+
badgeComponentType: zod_1.z.string(),
|
|
190
203
|
});
|
|
191
204
|
const Roblox_Games_Api_Models_Response_GameResponseModel = zod_1.z.object({
|
|
192
205
|
creatorId: zod_1.z.number().int(),
|
|
@@ -209,20 +222,18 @@ const Roblox_Games_Api_Models_Response_GameResponseModel = zod_1.z.object({
|
|
|
209
222
|
genre: zod_1.z.string(),
|
|
210
223
|
minimumAge: zod_1.z.number().int(),
|
|
211
224
|
ageRecommendationDisplayName: zod_1.z.string(),
|
|
225
|
+
contentMetadata: Roblox_Games_Api_Models_Response_GameContentMetadataResponseModel,
|
|
212
226
|
canonicalUrlPath: zod_1.z.string(),
|
|
213
227
|
});
|
|
214
228
|
const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = zod_1.z.object({
|
|
215
229
|
games: zod_1.z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
216
230
|
nextPaginationKey: zod_1.z.string(),
|
|
217
231
|
});
|
|
218
|
-
const Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse = zod_1.z.object({
|
|
219
|
-
privateServersEnabled: zod_1.z.boolean(),
|
|
220
|
-
});
|
|
221
232
|
/**
|
|
222
233
|
* @api GET https://games.roblox.com/v1/games
|
|
223
234
|
* @summary Gets a list of games' detail
|
|
224
235
|
* @param universeIds A list of universe Ids. Cannot exceed a maximum of 50 IDs.
|
|
225
|
-
* @param
|
|
236
|
+
* @param fields Optional comma-separated list of field names to include in the response. When omitted, all fields are returned.
|
|
226
237
|
*/
|
|
227
238
|
exports.getGames = (0, __1.endpoint)({
|
|
228
239
|
method: 'GET',
|
|
@@ -233,14 +244,14 @@ exports.getGames = (0, __1.endpoint)({
|
|
|
233
244
|
universeIds: {
|
|
234
245
|
style: 'form',
|
|
235
246
|
},
|
|
236
|
-
|
|
247
|
+
fields: {
|
|
237
248
|
style: 'form',
|
|
238
249
|
explode: true,
|
|
239
250
|
},
|
|
240
251
|
},
|
|
241
252
|
parameters: {
|
|
242
253
|
universeIds: zod_1.z.array(zod_1.z.number()),
|
|
243
|
-
|
|
254
|
+
fields: zod_1.z.string().optional(),
|
|
244
255
|
},
|
|
245
256
|
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_,
|
|
246
257
|
errors: [
|
|
@@ -255,64 +266,6 @@ exports.getGames = (0, __1.endpoint)({
|
|
|
255
266
|
},
|
|
256
267
|
],
|
|
257
268
|
});
|
|
258
|
-
/**
|
|
259
|
-
* @api GET https://games.roblox.com/v1/games/:placeId/private-servers
|
|
260
|
-
* @summary Get list of private servers user can access for given game id.
|
|
261
|
-
* @param placeId The Id of the place we are geting the private server list for.
|
|
262
|
-
* @param excludeFriendServers
|
|
263
|
-
* @param limit The number of results per request.
|
|
264
|
-
* @param cursor The paging cursor for the previous or next page.
|
|
265
|
-
* @param sortOrder The order the results are sorted in.
|
|
266
|
-
*/
|
|
267
|
-
exports.getGamesPlaceidPrivateServers = (0, __1.endpoint)({
|
|
268
|
-
method: 'GET',
|
|
269
|
-
path: '/v1/games/:placeId/private-servers',
|
|
270
|
-
baseUrl: 'https://games.roblox.com',
|
|
271
|
-
requestFormat: 'json',
|
|
272
|
-
serializationMethod: {
|
|
273
|
-
placeId: {
|
|
274
|
-
style: 'simple',
|
|
275
|
-
},
|
|
276
|
-
excludeFriendServers: {
|
|
277
|
-
style: 'form',
|
|
278
|
-
explode: true,
|
|
279
|
-
},
|
|
280
|
-
limit: {
|
|
281
|
-
style: 'form',
|
|
282
|
-
explode: true,
|
|
283
|
-
},
|
|
284
|
-
cursor: {
|
|
285
|
-
style: 'form',
|
|
286
|
-
explode: true,
|
|
287
|
-
},
|
|
288
|
-
sortOrder: {
|
|
289
|
-
style: 'form',
|
|
290
|
-
explode: true,
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
parameters: {
|
|
294
|
-
placeId: zod_1.z.number().int(),
|
|
295
|
-
excludeFriendServers: zod_1.z.boolean().optional(),
|
|
296
|
-
limit: zod_1.z
|
|
297
|
-
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
298
|
-
.optional()
|
|
299
|
-
.default(10),
|
|
300
|
-
cursor: zod_1.z.string().optional(),
|
|
301
|
-
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
302
|
-
},
|
|
303
|
-
response: Roblox_Games_Api_Models_Response_GetPrivateServerListResponse,
|
|
304
|
-
errors: [
|
|
305
|
-
{
|
|
306
|
-
status: 400,
|
|
307
|
-
description: `1: The place is invalid.
|
|
308
|
-
7: Guest users are not allowed.`,
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
status: 404,
|
|
312
|
-
description: `1: The place is invalid.`,
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
});
|
|
316
269
|
/**
|
|
317
270
|
* @api GET https://games.roblox.com/v1/games/:placeId/servers/:serverType
|
|
318
271
|
* @summary Get the game server list
|
|
@@ -650,32 +603,6 @@ exports.getGamesRecommendationsGameUniverseid = (0, __1.endpoint)({
|
|
|
650
603
|
},
|
|
651
604
|
],
|
|
652
605
|
});
|
|
653
|
-
/**
|
|
654
|
-
* @api GET https://games.roblox.com/v1/private-servers/enabled-in-universe/:universeId
|
|
655
|
-
* @summary Checks if the private servers are enabled in the specified universe.
|
|
656
|
-
* @param universeId
|
|
657
|
-
*/
|
|
658
|
-
exports.getPrivateServersEnabledInUniverseUniverseid = (0, __1.endpoint)({
|
|
659
|
-
method: 'GET',
|
|
660
|
-
path: '/v1/private-servers/enabled-in-universe/:universeId',
|
|
661
|
-
baseUrl: 'https://games.roblox.com',
|
|
662
|
-
requestFormat: 'json',
|
|
663
|
-
serializationMethod: {
|
|
664
|
-
universeId: {
|
|
665
|
-
style: 'simple',
|
|
666
|
-
},
|
|
667
|
-
},
|
|
668
|
-
parameters: {
|
|
669
|
-
universeId: zod_1.z.number().int(),
|
|
670
|
-
},
|
|
671
|
-
response: zod_1.z.object({ privateServersEnabled: zod_1.z.boolean() }),
|
|
672
|
-
errors: [
|
|
673
|
-
{
|
|
674
|
-
status: 400,
|
|
675
|
-
description: `8: The universe IDs specified are invalid.`,
|
|
676
|
-
},
|
|
677
|
-
],
|
|
678
|
-
});
|
|
679
606
|
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
680
607
|
const Patch_GamePassResponse = zod_1.z.object({
|
|
681
608
|
id: zod_1.z.number().int(),
|
|
@@ -1043,3 +970,47 @@ exports.postGamesVipServersUniverseid = (0, __1.endpoint)({
|
|
|
1043
970
|
},
|
|
1044
971
|
],
|
|
1045
972
|
});
|
|
973
|
+
const Patch_GetPrivateServerListResponse = zod_1.z.object({
|
|
974
|
+
gameJoinRestricted: zod_1.z.boolean(),
|
|
975
|
+
previousPageCursor: zod_1.z.string(),
|
|
976
|
+
nextPageCursor: zod_1.z.string(),
|
|
977
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
978
|
+
});
|
|
979
|
+
exports.getGamesPlaceidPrivateServers = (0, __1.endpoint)({
|
|
980
|
+
method: 'GET',
|
|
981
|
+
path: '/v1/games/:placeId/private-servers',
|
|
982
|
+
baseUrl: 'https://games.roblox.com',
|
|
983
|
+
requestFormat: 'json',
|
|
984
|
+
serializationMethod: {
|
|
985
|
+
placeId: { style: 'simple' },
|
|
986
|
+
excludeFriendServers: { style: 'form', explode: true },
|
|
987
|
+
limit: { style: 'form', explode: true },
|
|
988
|
+
cursor: { style: 'form', explode: true },
|
|
989
|
+
sortOrder: { style: 'form', explode: true },
|
|
990
|
+
},
|
|
991
|
+
parameters: {
|
|
992
|
+
placeId: zod_1.z.number().int(),
|
|
993
|
+
excludeFriendServers: zod_1.z.boolean().optional(),
|
|
994
|
+
limit: zod_1.z
|
|
995
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
996
|
+
.optional()
|
|
997
|
+
.default(10),
|
|
998
|
+
cursor: zod_1.z.string().optional(),
|
|
999
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
1000
|
+
},
|
|
1001
|
+
response: Patch_GetPrivateServerListResponse,
|
|
1002
|
+
errors: [
|
|
1003
|
+
{ status: 400, description: `1: The place is invalid.\n7: Guest users are not allowed.` },
|
|
1004
|
+
{ status: 404, description: `1: The place is invalid.` },
|
|
1005
|
+
],
|
|
1006
|
+
});
|
|
1007
|
+
exports.getPrivateServersEnabledInUniverseUniverseid = (0, __1.endpoint)({
|
|
1008
|
+
method: 'GET',
|
|
1009
|
+
path: '/v1/private-servers/enabled-in-universe/:universeId',
|
|
1010
|
+
baseUrl: 'https://games.roblox.com',
|
|
1011
|
+
requestFormat: 'json',
|
|
1012
|
+
serializationMethod: { universeId: { style: 'simple' } },
|
|
1013
|
+
parameters: { universeId: zod_1.z.number().int() },
|
|
1014
|
+
response: zod_1.z.object({ privateServersEnabled: zod_1.z.boolean() }),
|
|
1015
|
+
errors: [{ status: 400, description: `8: The universe IDs specified are invalid.` }],
|
|
1016
|
+
});
|
package/lib/endpoints/gamesv2.js
CHANGED
|
@@ -349,6 +349,7 @@ const Roblox_Groups_Api_GroupSettingsResponse = z.object({
|
|
|
349
349
|
]),
|
|
350
350
|
slowmode: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]),
|
|
351
351
|
isMemberListVisibleToPublic: z.boolean(),
|
|
352
|
+
isAutoAssignRoleDisabled: z.boolean(),
|
|
352
353
|
});
|
|
353
354
|
const Roblox_Groups_Api_UpdateGroupSettingsRequest = z.object({
|
|
354
355
|
isApprovalRequired: z.boolean(),
|
|
@@ -1674,7 +1675,8 @@ export const getGroupsGroupidJoinRequests = endpoint({
|
|
|
1674
1675
|
errors: [
|
|
1675
1676
|
{
|
|
1676
1677
|
status: 400,
|
|
1677
|
-
description: `1: The group is invalid or does not exist
|
|
1678
|
+
description: `1: The group is invalid or does not exist.
|
|
1679
|
+
36: The pagination cursor is invalid.`,
|
|
1678
1680
|
},
|
|
1679
1681
|
{
|
|
1680
1682
|
status: 401,
|
|
@@ -2783,7 +2785,8 @@ export const getGroupsGroupidRolesRolesetidUsers = endpoint({
|
|
|
2783
2785
|
errors: [
|
|
2784
2786
|
{
|
|
2785
2787
|
status: 400,
|
|
2786
|
-
description: `1: The group is invalid or does not exist
|
|
2788
|
+
description: `1: The group is invalid or does not exist.
|
|
2789
|
+
36: The pagination cursor is invalid.`,
|
|
2787
2790
|
},
|
|
2788
2791
|
{
|
|
2789
2792
|
status: 403,
|
|
@@ -3345,7 +3348,8 @@ export const getGroupsGroupidUsers = endpoint({
|
|
|
3345
3348
|
errors: [
|
|
3346
3349
|
{
|
|
3347
3350
|
status: 400,
|
|
3348
|
-
description: `1: The group is invalid or does not exist
|
|
3351
|
+
description: `1: The group is invalid or does not exist.
|
|
3352
|
+
36: The pagination cursor is invalid.`,
|
|
3349
3353
|
},
|
|
3350
3354
|
{
|
|
3351
3355
|
status: 403,
|
|
@@ -328,6 +328,7 @@ const Roblox_Groups_Api_GroupSettingsResponse = zod_1.z.object({
|
|
|
328
328
|
]),
|
|
329
329
|
slowmode: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
330
330
|
isMemberListVisibleToPublic: zod_1.z.boolean(),
|
|
331
|
+
isAutoAssignRoleDisabled: zod_1.z.boolean(),
|
|
331
332
|
});
|
|
332
333
|
const Roblox_Groups_Api_UpdateGroupSettingsRequest = zod_1.z.object({
|
|
333
334
|
isApprovalRequired: zod_1.z.boolean(),
|
|
@@ -1639,7 +1640,8 @@ exports.getGroupsGroupidJoinRequests = (0, __1.endpoint)({
|
|
|
1639
1640
|
errors: [
|
|
1640
1641
|
{
|
|
1641
1642
|
status: 400,
|
|
1642
|
-
description: `1: The group is invalid or does not exist
|
|
1643
|
+
description: `1: The group is invalid or does not exist.
|
|
1644
|
+
36: The pagination cursor is invalid.`,
|
|
1643
1645
|
},
|
|
1644
1646
|
{
|
|
1645
1647
|
status: 401,
|
|
@@ -2738,7 +2740,8 @@ exports.getGroupsGroupidRolesRolesetidUsers = (0, __1.endpoint)({
|
|
|
2738
2740
|
errors: [
|
|
2739
2741
|
{
|
|
2740
2742
|
status: 400,
|
|
2741
|
-
description: `1: The group is invalid or does not exist
|
|
2743
|
+
description: `1: The group is invalid or does not exist.
|
|
2744
|
+
36: The pagination cursor is invalid.`,
|
|
2742
2745
|
},
|
|
2743
2746
|
{
|
|
2744
2747
|
status: 403,
|
|
@@ -3298,7 +3301,8 @@ exports.getGroupsGroupidUsers = (0, __1.endpoint)({
|
|
|
3298
3301
|
errors: [
|
|
3299
3302
|
{
|
|
3300
3303
|
status: 400,
|
|
3301
|
-
description: `1: The group is invalid or does not exist
|
|
3304
|
+
description: `1: The group is invalid or does not exist.
|
|
3305
|
+
36: The pagination cursor is invalid.`,
|
|
3302
3306
|
},
|
|
3303
3307
|
{
|
|
3304
3308
|
status: 403,
|
|
@@ -22,6 +22,18 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwne
|
|
|
22
22
|
nextPageCursor: z.string(),
|
|
23
23
|
data: z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
|
|
24
24
|
});
|
|
25
|
+
const Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse = z.object({
|
|
26
|
+
collectibleItemInstanceId: z.string(),
|
|
27
|
+
serialNumber: z.number().int(),
|
|
28
|
+
owner:
|
|
29
|
+
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
30
|
+
});
|
|
31
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ =
|
|
32
|
+
z.object({
|
|
33
|
+
previousPageCursor: z.string(),
|
|
34
|
+
nextPageCursor: z.string(),
|
|
35
|
+
data: z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
|
|
36
|
+
});
|
|
25
37
|
const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = z.object({
|
|
26
38
|
assetId: z.number().int(),
|
|
27
39
|
name: z.string(),
|
|
@@ -201,6 +213,62 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
201
213
|
},
|
|
202
214
|
],
|
|
203
215
|
});
|
|
216
|
+
/**
|
|
217
|
+
* @api GET https://inventory.roblox.com/v2/collectible-items/:collectibleItemId/owners
|
|
218
|
+
* @summary Gets a list of owners of a collectible item.
|
|
219
|
+
* @param collectibleItemId The collectible item ID.
|
|
220
|
+
* @param limit The number of results per request.
|
|
221
|
+
* @param cursor The paging cursor for the previous or next page.
|
|
222
|
+
* @param sortOrder The order the results are sorted in.
|
|
223
|
+
*/
|
|
224
|
+
export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
225
|
+
method: "GET",
|
|
226
|
+
path: "/v2/collectible-items/:collectibleItemId/owners",
|
|
227
|
+
baseUrl: "https://inventory.roblox.com",
|
|
228
|
+
requestFormat: "json",
|
|
229
|
+
serializationMethod: {
|
|
230
|
+
collectibleItemId: {
|
|
231
|
+
style: "simple",
|
|
232
|
+
},
|
|
233
|
+
limit: {
|
|
234
|
+
style: "form",
|
|
235
|
+
explode: true,
|
|
236
|
+
},
|
|
237
|
+
cursor: {
|
|
238
|
+
style: "form",
|
|
239
|
+
explode: true,
|
|
240
|
+
},
|
|
241
|
+
sortOrder: {
|
|
242
|
+
style: "form",
|
|
243
|
+
explode: true,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
parameters: {
|
|
247
|
+
collectibleItemId: z.string(),
|
|
248
|
+
limit: z.number().int().optional().default(10),
|
|
249
|
+
cursor: z.string().optional(),
|
|
250
|
+
sortOrder: z
|
|
251
|
+
.union([z.literal(1), z.literal(2)])
|
|
252
|
+
.optional()
|
|
253
|
+
.default(1),
|
|
254
|
+
},
|
|
255
|
+
response:
|
|
256
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
257
|
+
errors: [
|
|
258
|
+
{
|
|
259
|
+
status: 400,
|
|
260
|
+
description: `1: The collectible item id is invalid.`,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
status: 401,
|
|
264
|
+
description: `0: Authorization has been denied for this request.`,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
status: 403,
|
|
268
|
+
description: `2: You do not have permission to view the owners of this item.`,
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
});
|
|
204
272
|
/**
|
|
205
273
|
* @api DELETE https://inventory.roblox.com/v2/inventory/asset/:assetId
|
|
206
274
|
* @summary Give up an asset owned by the authenticated user.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUsersUseridInventoryAssettypeid = exports.getUsersUseridInventory = exports.deleteInventoryAssetAssetid = exports.getAssetsAssetidOwners = void 0;
|
|
3
|
+
exports.getUsersUseridInventoryAssettypeid = exports.getUsersUseridInventory = exports.deleteInventoryAssetAssetid = exports.getCollectibleItemsCollectibleitemidOwners = exports.getAssetsAssetidOwners = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ = zod_1.z.object({
|
|
@@ -21,6 +21,16 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwne
|
|
|
21
21
|
nextPageCursor: zod_1.z.string(),
|
|
22
22
|
data: zod_1.z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
|
|
23
23
|
});
|
|
24
|
+
const Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse = zod_1.z.object({
|
|
25
|
+
collectibleItemInstanceId: zod_1.z.string(),
|
|
26
|
+
serialNumber: zod_1.z.number().int(),
|
|
27
|
+
owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
28
|
+
});
|
|
29
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ = zod_1.z.object({
|
|
30
|
+
previousPageCursor: zod_1.z.string(),
|
|
31
|
+
nextPageCursor: zod_1.z.string(),
|
|
32
|
+
data: zod_1.z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
|
|
33
|
+
});
|
|
24
34
|
const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = zod_1.z.object({
|
|
25
35
|
assetId: zod_1.z.number().int(),
|
|
26
36
|
name: zod_1.z.string(),
|
|
@@ -190,6 +200,61 @@ exports.getAssetsAssetidOwners = (0, __1.endpoint)({
|
|
|
190
200
|
},
|
|
191
201
|
],
|
|
192
202
|
});
|
|
203
|
+
/**
|
|
204
|
+
* @api GET https://inventory.roblox.com/v2/collectible-items/:collectibleItemId/owners
|
|
205
|
+
* @summary Gets a list of owners of a collectible item.
|
|
206
|
+
* @param collectibleItemId The collectible item ID.
|
|
207
|
+
* @param limit The number of results per request.
|
|
208
|
+
* @param cursor The paging cursor for the previous or next page.
|
|
209
|
+
* @param sortOrder The order the results are sorted in.
|
|
210
|
+
*/
|
|
211
|
+
exports.getCollectibleItemsCollectibleitemidOwners = (0, __1.endpoint)({
|
|
212
|
+
method: 'GET',
|
|
213
|
+
path: '/v2/collectible-items/:collectibleItemId/owners',
|
|
214
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
215
|
+
requestFormat: 'json',
|
|
216
|
+
serializationMethod: {
|
|
217
|
+
collectibleItemId: {
|
|
218
|
+
style: 'simple',
|
|
219
|
+
},
|
|
220
|
+
limit: {
|
|
221
|
+
style: 'form',
|
|
222
|
+
explode: true,
|
|
223
|
+
},
|
|
224
|
+
cursor: {
|
|
225
|
+
style: 'form',
|
|
226
|
+
explode: true,
|
|
227
|
+
},
|
|
228
|
+
sortOrder: {
|
|
229
|
+
style: 'form',
|
|
230
|
+
explode: true,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
parameters: {
|
|
234
|
+
collectibleItemId: zod_1.z.string(),
|
|
235
|
+
limit: zod_1.z.number().int().optional().default(10),
|
|
236
|
+
cursor: zod_1.z.string().optional(),
|
|
237
|
+
sortOrder: zod_1.z
|
|
238
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2)])
|
|
239
|
+
.optional()
|
|
240
|
+
.default(1),
|
|
241
|
+
},
|
|
242
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
243
|
+
errors: [
|
|
244
|
+
{
|
|
245
|
+
status: 400,
|
|
246
|
+
description: `1: The collectible item id is invalid.`,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
status: 401,
|
|
250
|
+
description: `0: Authorization has been denied for this request.`,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
status: 403,
|
|
254
|
+
description: `2: You do not have permission to view the owners of this item.`,
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
});
|
|
193
258
|
/**
|
|
194
259
|
* @api DELETE https://inventory.roblox.com/v2/inventory/asset/:assetId
|
|
195
260
|
* @summary Give up an asset owned by the authenticated user.
|