rozod 6.4.1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/endpoints/authv1.d.ts +3 -0
- package/lib/endpoints/authv1.js +3 -0
- package/lib/endpoints/authv2.d.ts +2 -0
- package/lib/endpoints/authv2.js +2 -0
- package/lib/endpoints/avatarv2.d.ts +22 -0
- package/lib/endpoints/avatarv2.js +24 -1
- package/lib/endpoints/catalogv1.d.ts +1 -0
- package/lib/endpoints/catalogv1.js +1 -0
- package/lib/endpoints/catalogv2.d.ts +1 -0
- package/lib/endpoints/catalogv2.js +1 -0
- package/lib/endpoints/friendsv1.d.ts +42 -0
- package/lib/endpoints/friendsv1.js +37 -1
- package/lib/endpoints/gameinternationalizationv1.d.ts +40 -0
- package/lib/endpoints/gameinternationalizationv1.js +42 -1
- package/lib/endpoints/gamesv1.d.ts +345 -0
- package/lib/endpoints/gamesv1.js +380 -1
- package/lib/endpoints/gamesv2.d.ts +188 -141
- package/lib/endpoints/gamesv2.js +41 -1
- package/lib/endpoints/groupsv1.d.ts +2 -0
- package/lib/endpoints/groupsv1.js +2 -0
- package/lib/endpoints/groupsv2.d.ts +150 -0
- package/lib/endpoints/groupsv2.js +146 -1
- package/lib/endpoints/itemconfigurationv1.d.ts +42 -0
- package/lib/endpoints/itemconfigurationv1.js +39 -1
- package/lib/endpoints/twostepverificationv1.d.ts +2 -0
- package/lib/endpoints/twostepverificationv1.js +2 -0
- package/lib/index.js +1 -1
- package/lib/opencloud/v1/messaging.d.ts +2 -0
- package/lib/opencloud/v1/messaging.js +2 -0
- package/lib/opencloud/v2/cloud.d.ts +0 -5
- package/lib/opencloud/v2/cloud.js +0 -5
- package/package.json +1 -1
|
@@ -100,6 +100,8 @@ const Roblox_Authentication_Api_Models_LoginResponse = z.object({
|
|
|
100
100
|
recoveryEmail: z.string(),
|
|
101
101
|
passkeyRegistrationSucceeded: z.boolean(),
|
|
102
102
|
shouldAutoLoginFromRecovery: z.boolean(),
|
|
103
|
+
shouldPrompt2svRemoval: z.boolean(),
|
|
104
|
+
shouldPromptPasskeyAddition: z.boolean(),
|
|
103
105
|
});
|
|
104
106
|
const Roblox_Authentication_Api_Models_ProviderInfoModel = z.object({
|
|
105
107
|
provider: z.string(),
|
|
@@ -337,6 +339,7 @@ const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistratio
|
|
|
337
339
|
passkeySessionId: z.string(),
|
|
338
340
|
passkeyRegistrationResponse: z.string(),
|
|
339
341
|
userId: z.number().int(),
|
|
342
|
+
isPostRecovery: z.boolean(),
|
|
340
343
|
});
|
|
341
344
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest =
|
|
342
345
|
z.object({ sessionId: z.string(), registrationResponse: z.string() });
|
package/lib/endpoints/authv1.js
CHANGED
|
@@ -100,6 +100,8 @@ const Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
|
|
|
100
100
|
recoveryEmail: zod_1.z.string(),
|
|
101
101
|
passkeyRegistrationSucceeded: zod_1.z.boolean(),
|
|
102
102
|
shouldAutoLoginFromRecovery: zod_1.z.boolean(),
|
|
103
|
+
shouldPrompt2svRemoval: zod_1.z.boolean(),
|
|
104
|
+
shouldPromptPasskeyAddition: zod_1.z.boolean(),
|
|
103
105
|
});
|
|
104
106
|
const Roblox_Authentication_Api_Models_ProviderInfoModel = zod_1.z.object({
|
|
105
107
|
provider: zod_1.z.string(),
|
|
@@ -303,6 +305,7 @@ const Roblox_Authentication_Api_Models_Request_FinishARPreAuthPasskeyRegistratio
|
|
|
303
305
|
passkeySessionId: zod_1.z.string(),
|
|
304
306
|
passkeyRegistrationResponse: zod_1.z.string(),
|
|
305
307
|
userId: zod_1.z.number().int(),
|
|
308
|
+
isPostRecovery: zod_1.z.boolean(),
|
|
306
309
|
});
|
|
307
310
|
const Roblox_Authentication_Api_Models_Request_FinishPasskeyPreauthRegistrationRequest = zod_1.z.object({
|
|
308
311
|
sessionId: zod_1.z.string(),
|
|
@@ -80,6 +80,8 @@ const Roblox_Authentication_Api_Models_LoginResponse = z.object({
|
|
|
80
80
|
recoveryEmail: z.string(),
|
|
81
81
|
passkeyRegistrationSucceeded: z.boolean(),
|
|
82
82
|
shouldAutoLoginFromRecovery: z.boolean(),
|
|
83
|
+
shouldPrompt2svRemoval: z.boolean(),
|
|
84
|
+
shouldPromptPasskeyAddition: z.boolean(),
|
|
83
85
|
});
|
|
84
86
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = z.object({
|
|
85
87
|
code: z.enum([
|
package/lib/endpoints/authv2.js
CHANGED
|
@@ -78,6 +78,8 @@ const Roblox_Authentication_Api_Models_LoginResponse = zod_1.z.object({
|
|
|
78
78
|
recoveryEmail: zod_1.z.string(),
|
|
79
79
|
passkeyRegistrationSucceeded: zod_1.z.boolean(),
|
|
80
80
|
shouldAutoLoginFromRecovery: zod_1.z.boolean(),
|
|
81
|
+
shouldPrompt2svRemoval: zod_1.z.boolean(),
|
|
82
|
+
shouldPromptPasskeyAddition: zod_1.z.boolean(),
|
|
81
83
|
});
|
|
82
84
|
const Roblox_Authentication_Api_Models_PasswordValidationResponse = zod_1.z.object({
|
|
83
85
|
code: zod_1.z.enum([
|
|
@@ -477,3 +477,25 @@ export const postOutfitsCreate = endpoint({
|
|
|
477
477
|
},
|
|
478
478
|
],
|
|
479
479
|
});
|
|
480
|
+
|
|
481
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
482
|
+
|
|
483
|
+
export const postOutfitsUseroutfitidUpdate = endpoint({
|
|
484
|
+
method: 'POST',
|
|
485
|
+
path: '/v2/outfits/:userOutfitId/update',
|
|
486
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
487
|
+
requestFormat: 'json',
|
|
488
|
+
serializationMethod: {
|
|
489
|
+
body: {},
|
|
490
|
+
userOutfitId: { style: 'simple' },
|
|
491
|
+
},
|
|
492
|
+
parameters: { userOutfitId: z.number().int() },
|
|
493
|
+
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
|
|
494
|
+
response: z.object({}),
|
|
495
|
+
errors: [
|
|
496
|
+
{ status: 400, description: `1: The specified userOutfit does not exist!\n3: Body colors must be valid BrickColor IDs\n4: Invalid outfit name\n5: Asset is not wearable by you\n7: Invalid assetIds\n8: Invalid Player Avatar Type. Valid types are R6 and R15` },
|
|
497
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
498
|
+
{ status: 403, description: `0: Token Validation Failed\n2: You don't have permission to update this outfit.` },
|
|
499
|
+
{ status: 500, description: `6: An error occurred while trying to update the outfit` },
|
|
500
|
+
],
|
|
501
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.postOutfitsCreate = exports.patchOutfitsUseroutfitid = exports.getAvatarUsersUseridOutfits = exports.getAvatarUsersUseridAvatar = exports.postAvatarSetWearingAssets = exports.postAvatarSetBodyColors = exports.getAvatarAvatar = void 0;
|
|
3
|
+
exports.postOutfitsUseroutfitidUpdate = exports.postOutfitsCreate = exports.patchOutfitsUseroutfitid = exports.getAvatarUsersUseridOutfits = exports.getAvatarUsersUseridAvatar = exports.postAvatarSetWearingAssets = exports.postAvatarSetBodyColors = exports.getAvatarAvatar = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Web_Responses_Avatar_ScaleModel = zod_1.z.object({
|
|
@@ -470,3 +470,26 @@ exports.postOutfitsCreate = (0, __1.endpoint)({
|
|
|
470
470
|
},
|
|
471
471
|
],
|
|
472
472
|
});
|
|
473
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
474
|
+
exports.postOutfitsUseroutfitidUpdate = (0, __1.endpoint)({
|
|
475
|
+
method: 'POST',
|
|
476
|
+
path: '/v2/outfits/:userOutfitId/update',
|
|
477
|
+
baseUrl: 'https://avatar.roblox.com',
|
|
478
|
+
requestFormat: 'json',
|
|
479
|
+
serializationMethod: {
|
|
480
|
+
body: {},
|
|
481
|
+
userOutfitId: { style: 'simple' },
|
|
482
|
+
},
|
|
483
|
+
parameters: { userOutfitId: zod_1.z.number().int() },
|
|
484
|
+
body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
|
|
485
|
+
response: zod_1.z.object({}),
|
|
486
|
+
errors: [
|
|
487
|
+
{
|
|
488
|
+
status: 400,
|
|
489
|
+
description: `1: The specified userOutfit does not exist!\n3: Body colors must be valid BrickColor IDs\n4: Invalid outfit name\n5: Asset is not wearable by you\n7: Invalid assetIds\n8: Invalid Player Avatar Type. Valid types are R6 and R15`,
|
|
490
|
+
},
|
|
491
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
492
|
+
{ status: 403, description: `0: Token Validation Failed\n2: You don't have permission to update this outfit.` },
|
|
493
|
+
{ status: 500, description: `6: An error occurred while trying to update the outfit` },
|
|
494
|
+
],
|
|
495
|
+
});
|
|
@@ -313,6 +313,7 @@ const Roblox_Catalog_Api_TaxonomyModel = z.object({
|
|
|
313
313
|
const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = z.object({
|
|
314
314
|
bundledItems: z.array(Roblox_Catalog_Api_BundleItemDetailModelV2),
|
|
315
315
|
taxonomy: z.array(Roblox_Catalog_Api_TaxonomyModel),
|
|
316
|
+
itemCreatedUtc: z.string().datetime({ offset: true }),
|
|
316
317
|
id: z.number().int(),
|
|
317
318
|
itemType: z.enum(["Asset", "Bundle"]),
|
|
318
319
|
assetType: z.union([
|
|
@@ -309,6 +309,7 @@ const Roblox_Catalog_Api_TaxonomyModel = zod_1.z.object({
|
|
|
309
309
|
const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = zod_1.z.object({
|
|
310
310
|
bundledItems: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModelV2),
|
|
311
311
|
taxonomy: zod_1.z.array(Roblox_Catalog_Api_TaxonomyModel),
|
|
312
|
+
itemCreatedUtc: zod_1.z.string().datetime({ offset: true }),
|
|
312
313
|
id: zod_1.z.number().int(),
|
|
313
314
|
itemType: zod_1.z.enum(['Asset', 'Bundle']),
|
|
314
315
|
assetType: zod_1.z.union([
|
|
@@ -31,6 +31,7 @@ const Roblox_Catalog_Api_TimedOption = z.object({
|
|
|
31
31
|
const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = z.object({
|
|
32
32
|
bundledItems: z.array(Roblox_Catalog_Api_BundleItemDetailModelV2),
|
|
33
33
|
taxonomy: z.array(Roblox_Catalog_Api_TaxonomyModel),
|
|
34
|
+
itemCreatedUtc: z.string().datetime({ offset: true }),
|
|
34
35
|
id: z.number().int(),
|
|
35
36
|
itemType: z.enum(["Asset", "Bundle"]),
|
|
36
37
|
assetType: z.union([
|
|
@@ -33,6 +33,7 @@ const Roblox_Catalog_Api_TimedOption = zod_1.z.object({
|
|
|
33
33
|
const Roblox_Catalog_Api_CatalogSearchDetailedResponseItemV2 = zod_1.z.object({
|
|
34
34
|
bundledItems: zod_1.z.array(Roblox_Catalog_Api_BundleItemDetailModelV2),
|
|
35
35
|
taxonomy: zod_1.z.array(Roblox_Catalog_Api_TaxonomyModel),
|
|
36
|
+
itemCreatedUtc: zod_1.z.string().datetime({ offset: true }),
|
|
36
37
|
id: zod_1.z.number().int(),
|
|
37
38
|
itemType: zod_1.z.enum(['Asset', 'Bundle']),
|
|
38
39
|
assetType: zod_1.z.union([
|
|
@@ -1249,3 +1249,45 @@ export const getUsersUseridFriendsStatuses = endpoint({
|
|
|
1249
1249
|
},
|
|
1250
1250
|
],
|
|
1251
1251
|
});
|
|
1252
|
+
|
|
1253
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
1254
|
+
|
|
1255
|
+
const Patch_TrustedFriendStatusResponse = z.object({
|
|
1256
|
+
status: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(5), z.literal(6)]),
|
|
1257
|
+
});
|
|
1258
|
+
const Patch_MultigetAreTrustedFriendsResponse = z.object({
|
|
1259
|
+
trustedFriendsId: z.array(z.number()),
|
|
1260
|
+
});
|
|
1261
|
+
|
|
1262
|
+
export const getMyTrustedFriendsUseridStatus = endpoint({
|
|
1263
|
+
method: 'GET',
|
|
1264
|
+
path: '/v1/my/trusted-friends/:userId/status',
|
|
1265
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1266
|
+
requestFormat: 'json',
|
|
1267
|
+
serializationMethod: { userId: { style: 'simple' } },
|
|
1268
|
+
parameters: { userId: z.number().int() },
|
|
1269
|
+
response: Patch_TrustedFriendStatusResponse,
|
|
1270
|
+
errors: [
|
|
1271
|
+
{ status: 400, description: `1: The target user is invalid or does not exist.` },
|
|
1272
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1273
|
+
],
|
|
1274
|
+
});
|
|
1275
|
+
|
|
1276
|
+
export const getUserUseridMultigetAreTrustedFriends = endpoint({
|
|
1277
|
+
method: 'GET',
|
|
1278
|
+
path: '/v1/user/:userId/multiget-are-trusted-friends',
|
|
1279
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1280
|
+
requestFormat: 'json',
|
|
1281
|
+
serializationMethod: {
|
|
1282
|
+
userId: { style: 'simple' },
|
|
1283
|
+
userIds: { style: 'form' },
|
|
1284
|
+
},
|
|
1285
|
+
parameters: {
|
|
1286
|
+
userId: z.number().int(),
|
|
1287
|
+
userIds: z.array(z.number()),
|
|
1288
|
+
},
|
|
1289
|
+
response: Patch_MultigetAreTrustedFriendsResponse,
|
|
1290
|
+
errors: [
|
|
1291
|
+
{ status: 400, description: `1: The target user is invalid or does not exist.` },
|
|
1292
|
+
],
|
|
1293
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridUnfollow = exports.postUsersTargetuseridRequestFriendship = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyNewFriendRequestsCount = exports.deleteMyNewFriendRequests = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = exports.postContactsTargetcontactidRequestFriendship = void 0;
|
|
3
|
+
exports.getUserUseridMultigetAreTrustedFriends = exports.getMyTrustedFriendsUseridStatus = exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridUnfollow = exports.postUsersTargetuseridRequestFriendship = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyNewFriendRequestsCount = exports.deleteMyNewFriendRequests = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = exports.postContactsTargetcontactidRequestFriendship = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse = zod_1.z.object({
|
|
@@ -1213,3 +1213,39 @@ exports.getUsersUseridFriendsStatuses = (0, __1.endpoint)({
|
|
|
1213
1213
|
},
|
|
1214
1214
|
],
|
|
1215
1215
|
});
|
|
1216
|
+
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
1217
|
+
const Patch_TrustedFriendStatusResponse = zod_1.z.object({
|
|
1218
|
+
status: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
|
|
1219
|
+
});
|
|
1220
|
+
const Patch_MultigetAreTrustedFriendsResponse = zod_1.z.object({
|
|
1221
|
+
trustedFriendsId: zod_1.z.array(zod_1.z.number()),
|
|
1222
|
+
});
|
|
1223
|
+
exports.getMyTrustedFriendsUseridStatus = (0, __1.endpoint)({
|
|
1224
|
+
method: 'GET',
|
|
1225
|
+
path: '/v1/my/trusted-friends/:userId/status',
|
|
1226
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1227
|
+
requestFormat: 'json',
|
|
1228
|
+
serializationMethod: { userId: { style: 'simple' } },
|
|
1229
|
+
parameters: { userId: zod_1.z.number().int() },
|
|
1230
|
+
response: Patch_TrustedFriendStatusResponse,
|
|
1231
|
+
errors: [
|
|
1232
|
+
{ status: 400, description: `1: The target user is invalid or does not exist.` },
|
|
1233
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1234
|
+
],
|
|
1235
|
+
});
|
|
1236
|
+
exports.getUserUseridMultigetAreTrustedFriends = (0, __1.endpoint)({
|
|
1237
|
+
method: 'GET',
|
|
1238
|
+
path: '/v1/user/:userId/multiget-are-trusted-friends',
|
|
1239
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1240
|
+
requestFormat: 'json',
|
|
1241
|
+
serializationMethod: {
|
|
1242
|
+
userId: { style: 'simple' },
|
|
1243
|
+
userIds: { style: 'form' },
|
|
1244
|
+
},
|
|
1245
|
+
parameters: {
|
|
1246
|
+
userId: zod_1.z.number().int(),
|
|
1247
|
+
userIds: zod_1.z.array(zod_1.z.number()),
|
|
1248
|
+
},
|
|
1249
|
+
response: Patch_MultigetAreTrustedFriendsResponse,
|
|
1250
|
+
errors: [{ status: 400, description: `1: The target user is invalid or does not exist.` }],
|
|
1251
|
+
});
|
|
@@ -347,6 +347,8 @@ const Roblox_GameInternationalization_Api_GetUiConfigurationsResponse =
|
|
|
347
347
|
isGamePassEnabled: z.boolean(),
|
|
348
348
|
isDeveloperProductEnabled: z.boolean(),
|
|
349
349
|
});
|
|
350
|
+
const Roblox_GameInternationalization_Api_Models_Response_GetPlayerChoiceUniverseSettingsResponse =
|
|
351
|
+
z.object({ IsPlayerChoiceEnabled: z.boolean() });
|
|
350
352
|
const Roblox_GameLocalization_Client_UserUniverseLocalizationSettingValue =
|
|
351
353
|
z.object({
|
|
352
354
|
settingType: z.enum([
|
|
@@ -3279,6 +3281,44 @@ export const getUiConfigurations = endpoint({
|
|
|
3279
3281
|
},
|
|
3280
3282
|
],
|
|
3281
3283
|
});
|
|
3284
|
+
/**
|
|
3285
|
+
* @api GET https://gameinternationalization.roblox.com/v1/user-localization-settings/player-choice/:universeId
|
|
3286
|
+
* @summary Get user player choice settings for universe.
|
|
3287
|
+
* @param universeId The universe's ID.
|
|
3288
|
+
*/
|
|
3289
|
+
export const getUserLocalizationSettingsPlayerChoiceUniverseid = endpoint({
|
|
3290
|
+
method: "GET",
|
|
3291
|
+
path: "/v1/user-localization-settings/player-choice/:universeId",
|
|
3292
|
+
baseUrl: "https://gameinternationalization.roblox.com",
|
|
3293
|
+
requestFormat: "json",
|
|
3294
|
+
serializationMethod: {
|
|
3295
|
+
universeId: {
|
|
3296
|
+
style: "simple",
|
|
3297
|
+
},
|
|
3298
|
+
},
|
|
3299
|
+
parameters: {
|
|
3300
|
+
universeId: z.number().int(),
|
|
3301
|
+
},
|
|
3302
|
+
response: z.object({ IsPlayerChoiceEnabled: z.boolean() }),
|
|
3303
|
+
errors: [
|
|
3304
|
+
{
|
|
3305
|
+
status: 400,
|
|
3306
|
+
description: `14: Invalid game id`,
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
status: 401,
|
|
3310
|
+
description: `0: Authorization has been denied for this request.`,
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
status: 500,
|
|
3314
|
+
description: `0: An unknown error occurred.`,
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
status: 503,
|
|
3318
|
+
description: `17: Feature is disabled`,
|
|
3319
|
+
},
|
|
3320
|
+
],
|
|
3321
|
+
});
|
|
3282
3322
|
/**
|
|
3283
3323
|
* @api GET https://gameinternationalization.roblox.com/v1/user-localization-settings/universe/:universeId
|
|
3284
3324
|
* @summary Get user localization settings for universe.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSupportedLanguagesGamesGameid = exports.getSourceLanguageGamesGameidLanguageWithLocales = exports.patchSourceLanguageGamesGameid = exports.getSourceLanguageGamesGameid = exports.getNameDescriptionMetadata = exports.postNameDescriptionGamesTranslationHistory = exports.patchNameDescriptionGamesGameid = exports.getNameDescriptionGamesGameid = exports.patchLocalizationtableGametablesGameid = exports.postGameThumbnailsGamesGameidLanguageCodesLanguagecodeImagesOrder = exports.deleteGameThumbnailsGamesGameidLanguageCodesLanguagecodeImagesImageid = exports.postGameThumbnailsGamesGameidLanguageCodesLanguagecodeImage = exports.postGameThumbnailsGamesGameidLanguageCodesLanguagecodeAltText = exports.getGameThumbnailsGamesGameidImages = exports.patchGamePassesGamepassidNameLanguageCodesLanguagecode = exports.patchGamePassesGamepassidNameDescriptionLanguageCodesLanguagecode = exports.deleteGamePassesGamepassidNameDescriptionLanguageCodesLanguagecode = exports.getGamePassesGamepassidNameDescription = exports.deleteGamePassesGamepassidIconsLanguageCodesLanguagecode = exports.postGamePassesGamepassidIconsLanguageCodesLanguagecode = exports.getGamePassesGamepassidIcons = exports.patchGamePassesGamepassidDescriptionLanguageCodesLanguagecode = exports.getGameLocalizationStatusTranslationCountsForLanguageOrLocale = exports.getGameLocalizationStatusGameidTranslationCounts = exports.deleteGameIconGamesGameidLanguageCodesLanguagecode = exports.postGameIconGamesGameidLanguageCodesLanguagecode = exports.getGameIconGamesGameid = exports.patchDeveloperProductsDeveloperproductidNameLanguageCodesLanguagecode = exports.patchDeveloperProductsDeveloperproductidNameDescriptionLanguageCodesLanguagecode = exports.deleteDeveloperProductsDeveloperproductidNameDescriptionLanguageCodesLanguagecode = exports.getDeveloperProductsDeveloperproductidNameDescription = exports.deleteDeveloperProductsDeveloperproductidIconsLanguageCodesLanguagecode = exports.postDeveloperProductsDeveloperproductidIconsLanguageCodesLanguagecode = exports.getDeveloperProductsDeveloperproductidIcons = exports.patchDeveloperProductsDeveloperproductidDescriptionLanguageCodesLanguagecode = exports.patchBadgesBadgeidNameLanguageCodesLanguagecode = exports.patchBadgesBadgeidNameDescriptionLanguageCodesLanguagecode = exports.deleteBadgesBadgeidNameDescriptionLanguageCodesLanguagecode = exports.getBadgesBadgeidNameDescription = exports.deleteBadgesBadgeidIconsLanguageCodesLanguagecode = exports.postBadgesBadgeidIconsLanguageCodesLanguagecode = exports.getBadgesBadgeidIcons = exports.patchBadgesBadgeidDescriptionLanguageCodesLanguagecode = exports.getAutomaticTranslationLanguagesLanguagecodeTargetLanguages = exports.getAutomaticTranslationGamesGameidQuota = exports.getAutomaticTranslationGamesGameidFeatureStatus = exports.getAutolocalizationMetadata = exports.patchAutolocalizationGamesGameidSettings = exports.patchAutolocalizationGamesGameidAutolocalizationtable = exports.postAutolocalizationGamesGameidAutolocalizationtable = void 0;
|
|
4
|
-
exports.postUserLocalizationSettingsUniverseUniverseid = exports.getUserLocalizationSettingsUniverseUniverseid = exports.getUiConfigurations = exports.getTranslationAnalyticsMetadata = exports.postTranslationAnalyticsGamesGameidRequestTranslationAnalyticsReport = exports.getTranslationAnalyticsGamesGameidDownloadTranslationAnalyticsReport = exports.getSupportedLanguagesMetadata = exports.getSupportedLanguagesGamesGameidUniverseDisplayInfoAutomaticTranslationSettings = exports.patchSupportedLanguagesGamesGameidLanguagesLanguagecodeUniverseDisplayInfoAutomaticTranslationSettings = exports.patchSupportedLanguagesGamesGameidLanguagesLanguagecodeAutomaticTranslationStatus = exports.getSupportedLanguagesGamesGameidInExperienceLanguageSelection = exports.getSupportedLanguagesGamesGameidAutomaticTranslationStatus = exports.patchSupportedLanguagesGamesGameid = void 0;
|
|
4
|
+
exports.postUserLocalizationSettingsUniverseUniverseid = exports.getUserLocalizationSettingsUniverseUniverseid = exports.getUserLocalizationSettingsPlayerChoiceUniverseid = exports.getUiConfigurations = exports.getTranslationAnalyticsMetadata = exports.postTranslationAnalyticsGamesGameidRequestTranslationAnalyticsReport = exports.getTranslationAnalyticsGamesGameidDownloadTranslationAnalyticsReport = exports.getSupportedLanguagesMetadata = exports.getSupportedLanguagesGamesGameidUniverseDisplayInfoAutomaticTranslationSettings = exports.patchSupportedLanguagesGamesGameidLanguagesLanguagecodeUniverseDisplayInfoAutomaticTranslationSettings = exports.patchSupportedLanguagesGamesGameidLanguagesLanguagecodeAutomaticTranslationStatus = exports.getSupportedLanguagesGamesGameidInExperienceLanguageSelection = exports.getSupportedLanguagesGamesGameidAutomaticTranslationStatus = exports.patchSupportedLanguagesGamesGameid = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const __1 = require("..");
|
|
7
7
|
const Roblox_GameInternationalization_Api_AutoLocalizationMetadataResponse = zod_1.z.object({
|
|
@@ -273,6 +273,9 @@ const Roblox_GameInternationalization_Api_GetUiConfigurationsResponse = zod_1.z.
|
|
|
273
273
|
isGamePassEnabled: zod_1.z.boolean(),
|
|
274
274
|
isDeveloperProductEnabled: zod_1.z.boolean(),
|
|
275
275
|
});
|
|
276
|
+
const Roblox_GameInternationalization_Api_Models_Response_GetPlayerChoiceUniverseSettingsResponse = zod_1.z.object({
|
|
277
|
+
IsPlayerChoiceEnabled: zod_1.z.boolean(),
|
|
278
|
+
});
|
|
276
279
|
const Roblox_GameLocalization_Client_UserUniverseLocalizationSettingValue = zod_1.z.object({
|
|
277
280
|
settingType: zod_1.z.enum(['LanguageFamily', 'SupportedLocale', 'SourceOrTranslation']),
|
|
278
281
|
settingTargetId: zod_1.z.number().int(),
|
|
@@ -3142,6 +3145,44 @@ exports.getUiConfigurations = (0, __1.endpoint)({
|
|
|
3142
3145
|
},
|
|
3143
3146
|
],
|
|
3144
3147
|
});
|
|
3148
|
+
/**
|
|
3149
|
+
* @api GET https://gameinternationalization.roblox.com/v1/user-localization-settings/player-choice/:universeId
|
|
3150
|
+
* @summary Get user player choice settings for universe.
|
|
3151
|
+
* @param universeId The universe's ID.
|
|
3152
|
+
*/
|
|
3153
|
+
exports.getUserLocalizationSettingsPlayerChoiceUniverseid = (0, __1.endpoint)({
|
|
3154
|
+
method: 'GET',
|
|
3155
|
+
path: '/v1/user-localization-settings/player-choice/:universeId',
|
|
3156
|
+
baseUrl: 'https://gameinternationalization.roblox.com',
|
|
3157
|
+
requestFormat: 'json',
|
|
3158
|
+
serializationMethod: {
|
|
3159
|
+
universeId: {
|
|
3160
|
+
style: 'simple',
|
|
3161
|
+
},
|
|
3162
|
+
},
|
|
3163
|
+
parameters: {
|
|
3164
|
+
universeId: zod_1.z.number().int(),
|
|
3165
|
+
},
|
|
3166
|
+
response: zod_1.z.object({ IsPlayerChoiceEnabled: zod_1.z.boolean() }),
|
|
3167
|
+
errors: [
|
|
3168
|
+
{
|
|
3169
|
+
status: 400,
|
|
3170
|
+
description: `14: Invalid game id`,
|
|
3171
|
+
},
|
|
3172
|
+
{
|
|
3173
|
+
status: 401,
|
|
3174
|
+
description: `0: Authorization has been denied for this request.`,
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
status: 500,
|
|
3178
|
+
description: `0: An unknown error occurred.`,
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
status: 503,
|
|
3182
|
+
description: `17: Feature is disabled`,
|
|
3183
|
+
},
|
|
3184
|
+
],
|
|
3185
|
+
});
|
|
3145
3186
|
/**
|
|
3146
3187
|
* @api GET https://gameinternationalization.roblox.com/v1/user-localization-settings/universe/:universeId
|
|
3147
3188
|
* @summary Get user localization settings for universe.
|