rozod 6.7.0 → 6.8.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/LICENSE +1 -1
- package/README.md +75 -451
- package/lib/endpoints/accountinformationv1.d.ts +50 -87
- package/lib/endpoints/accountinformationv1.js +46 -90
- package/lib/endpoints/assetdeliveryv1.d.ts +39 -0
- package/lib/endpoints/assetdeliveryv1.js +39 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +27 -0
- package/lib/endpoints/assetdeliveryv2.js +27 -0
- package/lib/endpoints/authv1.d.ts +71 -3
- package/lib/endpoints/authv1.js +70 -4
- package/lib/endpoints/authv2.d.ts +22 -1
- package/lib/endpoints/authv2.js +23 -2
- 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/badgesv1.d.ts +4 -0
- package/lib/endpoints/badgesv1.js +4 -0
- package/lib/endpoints/catalogv1.d.ts +25 -3
- package/lib/endpoints/catalogv1.js +21 -3
- package/lib/endpoints/catalogv2.d.ts +294 -50
- package/lib/endpoints/catalogv2.js +256 -24
- 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 +36 -1
- package/lib/endpoints/developv1.js +12 -3
- package/lib/endpoints/developv2.d.ts +32 -3
- package/lib/endpoints/developv2.js +16 -5
- package/lib/endpoints/friendsv1.d.ts +222 -314
- package/lib/endpoints/friendsv1.js +213 -313
- package/lib/endpoints/gameinternationalizationv1.d.ts +59 -0
- package/lib/endpoints/gameinternationalizationv1.js +57 -1
- package/lib/endpoints/gamesv1.d.ts +79 -0
- package/lib/endpoints/gamesv1.js +70 -97
- package/lib/endpoints/gamesv2.d.ts +12 -0
- package/lib/endpoints/gamesv2.js +10 -0
- package/lib/endpoints/groupsv1.d.ts +49 -4
- package/lib/endpoints/groupsv1.js +55 -7
- package/lib/endpoints/groupsv2.d.ts +2 -0
- package/lib/endpoints/groupsv2.js +2 -0
- package/lib/endpoints/inventoryv1.d.ts +3 -1
- package/lib/endpoints/inventoryv1.js +3 -1
- package/lib/endpoints/inventoryv2.d.ts +70 -0
- package/lib/endpoints/inventoryv2.js +68 -1
- package/lib/endpoints/localev1.d.ts +27 -0
- package/lib/endpoints/localev1.js +28 -1
- package/lib/endpoints/publishv1.d.ts +3 -6
- package/lib/endpoints/publishv1.js +3 -6
- package/lib/endpoints/thumbnailsv1.d.ts +44 -87
- package/lib/endpoints/thumbnailsv1.js +25 -0
- package/lib/index.d.ts +96 -3
- package/lib/index.js +114 -1
- package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
- package/lib/opencloud/v1/assets.d.ts +9 -9
- package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
- package/lib/opencloud/v1/datastores.d.ts +8 -8
- package/lib/opencloud/v1/developer-products.d.ts +4 -4
- package/lib/opencloud/v1/game-passes.d.ts +4 -4
- package/lib/opencloud/v1/messaging.d.ts +1 -1
- package/lib/opencloud/v1/open-eval.d.ts +2 -2
- package/lib/opencloud/v1/secrets-store.d.ts +5 -5
- package/lib/opencloud/v1/toolbox.d.ts +2 -2
- package/lib/opencloud/v1/universes.d.ts +1 -1
- package/lib/opencloud/v2/cloud.d.ts +197 -87
- package/lib/opencloud/v2/cloud.js +68 -15
- package/package.json +108 -108
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.getUsersUseridGroupsRoles = exports.getUsersUseridGroupsPrimaryRole = exports.getUsersUseridFriendsGroupsRoles = exports.deleteUserGroupsPrimary = exports.postUserGroupsPrimary = exports.getUserGroupsPending = exports.getRoles = exports.getGroupsSearchMetadata = exports.getGroupsSearchLookup = exports.getGroupsSearch = exports.postGroupsPolicies = exports.getGroupsMetadata = exports.patchGroupsIcon = exports.postGroupsCreate = exports.getGroupsConfigurationMetadata = exports.deleteGroupsGroupidWallUsersUseridPosts = exports.postGroupsGroupidWallSubscribe = exports.deleteGroupsGroupidWallPostsPostid = exports.postGroupsGroupidWallPosts = exports.getGroupsGroupidWallPosts = exports.getGroupsGroupidUsersUseridPermissions = exports.patchGroupsGroupidUsersUserid = exports.deleteGroupsGroupidUsersUserid = exports.postGroupsGroupidUsers = exports.getGroupsGroupidUsers = exports.patchGroupsGroupidStatus = exports.patchGroupsGroupidSocialLinksSociallinkid = exports.deleteGroupsGroupidSocialLinksSociallinkid = exports.postGroupsGroupidSocialLinks = exports.getGroupsGroupidSocialLinks = exports.patchGroupsGroupidSettings = exports.getGroupsGroupidSettings = exports.postGroupsGroupidRolesetsCreate = exports.patchGroupsGroupidRolesetsRolesetid = void 0;
|
|
3
|
+
exports.getGroupsGroupidRolesPermissions = exports.getGroupsGroupidRolesGuestPermissions = exports.getGroupsGroupidRolesRolesetidUsers = exports.patchGroupsGroupidRolesRolesetidPermissions = exports.getGroupsGroupidRolesRolesetidPermissions = exports.getGroupsGroupidRoles = exports.deleteGroupsGroupidRelationshipsGrouprelationshiptypeRequestsRelatedgroupid = exports.postGroupsGroupidRelationshipsGrouprelationshiptypeRequestsRelatedgroupid = exports.deleteGroupsGroupidRelationshipsGrouprelationshiptypeRequests = exports.postGroupsGroupidRelationshipsGrouprelationshiptypeRequests = exports.getGroupsGroupidRelationshipsGrouprelationshiptypeRequests = exports.deleteGroupsGroupidRelationshipsGrouprelationshiptypeRelatedgroupid = exports.postGroupsGroupidRelationshipsGrouprelationshiptypeRelatedgroupid = exports.getGroupsGroupidRelationshipsGrouprelationshiptype = exports.postGroupsGroupidPayoutsRecurring = exports.postGroupsGroupidPayouts = exports.getGroupsGroupidPayouts = exports.getGroupsGroupidPayoutRestriction = exports.patchGroupsGroupidNotificationPreference = exports.getGroupsGroupidNameHistory = exports.patchGroupsGroupidName = exports.getGroupsGroupidMembership = exports.deleteGroupsGroupidJoinRequestsUsersUserid = exports.postGroupsGroupidJoinRequestsUsersUserid = exports.getGroupsGroupidJoinRequestsUsersUserid = exports.deleteGroupsGroupidJoinRequests = exports.postGroupsGroupidJoinRequests = exports.getGroupsGroupidJoinRequests = exports.getGroupsGroupidFeaturesStatus = exports.patchGroupsGroupidFeatures = exports.getGroupsGroupidFeatures = exports.getGroupsGroupidEmotes = exports.patchGroupsGroupidDescription = exports.getGroupsGroupidConfiguration = exports.getGroupsGroupidCommunityFeatureFreezes = exports.postGroupsGroupidClaimOwnership = exports.postGroupsGroupidChangeOwner = exports.patchGroupsGroupidBlockedKeywordsKeywordid = exports.deleteGroupsGroupidBlockedKeywordsKeywordid = exports.postGroupsGroupidBlockedKeywords = exports.getGroupsGroupidBlockedKeywords = exports.deleteGroupsGroupidBansUserid = exports.postGroupsGroupidBansUserid = exports.getGroupsGroupidBansUserid = exports.getGroupsGroupidBans = exports.getGroupsGroupidAuditLog = exports.getGroupsGroupid = exports.deleteFeaturedContentEvent = exports.postFeaturedContentEvent = exports.getFeaturedContentEvent = void 0;
|
|
4
|
+
exports.getUsersUseridGroupsRoles = exports.getUsersUseridGroupsPrimaryRole = exports.getUsersUseridFriendsGroupsRoles = exports.deleteUserGroupsPrimary = exports.postUserGroupsPrimary = exports.getUserGroupsPending = exports.getRoles = exports.getGroupsSearchMetadata = exports.getGroupsSearchLookup = exports.getGroupsSearch = exports.postGroupsPolicies = exports.getGroupsMetadata = exports.patchGroupsIcon = exports.postGroupsCreate = exports.getGroupsConfigurationMetadata = exports.deleteGroupsGroupidWallUsersUseridPosts = exports.postGroupsGroupidWallSubscribe = exports.deleteGroupsGroupidWallPostsPostid = exports.postGroupsGroupidWallPosts = exports.getGroupsGroupidWallPosts = exports.getGroupsGroupidUsersUseridPermissions = exports.patchGroupsGroupidUsersUserid = exports.deleteGroupsGroupidUsersUserid = exports.postGroupsGroupidUsers = exports.getGroupsGroupidUsers = exports.patchGroupsGroupidStatus = exports.patchGroupsGroupidSocialLinksSociallinkid = exports.deleteGroupsGroupidSocialLinksSociallinkid = exports.postGroupsGroupidSocialLinks = exports.getGroupsGroupidSocialLinks = exports.patchGroupsGroupidSettings = exports.getGroupsGroupidSettings = exports.postGroupsGroupidRolesetsCreate = exports.patchGroupsGroupidRolesetsRolesetid = exports.deleteGroupsGroupidRolesetsRolesetid = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const __1 = require("..");
|
|
7
7
|
const Roblox_Groups_Client_GroupFeaturedContentResponse = zod_1.z.object({
|
|
@@ -111,6 +111,13 @@ const Roblox_Groups_Client_CreateBlockedKeywordsResponse = zod_1.z.object({
|
|
|
111
111
|
hadModeratedKeywords: zod_1.z.boolean(),
|
|
112
112
|
hadDuplicateKeywords: zod_1.z.boolean(),
|
|
113
113
|
});
|
|
114
|
+
const Roblox_Groups_Api_CommunityFeatureFreezeStatus = zod_1.z.object({
|
|
115
|
+
feature: zod_1.z.string(),
|
|
116
|
+
isDisabled: zod_1.z.boolean(),
|
|
117
|
+
});
|
|
118
|
+
const Roblox_Groups_Api_GetCommunityFeatureFreezesResponse = zod_1.z.object({
|
|
119
|
+
features: zod_1.z.array(Roblox_Groups_Api_CommunityFeatureFreezeStatus),
|
|
120
|
+
});
|
|
114
121
|
const Roblox_Groups_Api_GroupConfigurationDetailsResponse = zod_1.z.object({
|
|
115
122
|
groupId: zod_1.z.number().int(),
|
|
116
123
|
emblemId: zod_1.z.number().int(),
|
|
@@ -129,7 +136,14 @@ const Roblox_Groups_Client_GetGroupEmoteSetsResponse = zod_1.z.object({
|
|
|
129
136
|
emoteSets: zod_1.z.array(Roblox_Groups_Client_EmoteSetModel),
|
|
130
137
|
});
|
|
131
138
|
const Roblox_Groups_Api_GroupFeatureResponse = zod_1.z.object({
|
|
132
|
-
feature: zod_1.z.enum([
|
|
139
|
+
feature: zod_1.z.enum([
|
|
140
|
+
'Payouts',
|
|
141
|
+
'ContentUpload',
|
|
142
|
+
'GroupOwnershipTransfer',
|
|
143
|
+
'GameOwnershipTransfer',
|
|
144
|
+
'ForumRead',
|
|
145
|
+
'ForumWrite',
|
|
146
|
+
]),
|
|
133
147
|
isFeatureBlocked: zod_1.z.boolean(),
|
|
134
148
|
expiration: zod_1.z.string().datetime({ offset: true }),
|
|
135
149
|
});
|
|
@@ -246,6 +260,7 @@ const Roblox_Groups_Api_GroupMembershipMetadataResponse = zod_1.z.object({
|
|
|
246
260
|
notificationPreferences: zod_1.z.array(Roblox_Groups_Api_GroupNotificationPreferenceData),
|
|
247
261
|
isBannedFromGroup: zod_1.z.boolean(),
|
|
248
262
|
canViewMemberList: zod_1.z.boolean(),
|
|
263
|
+
isOwner: zod_1.z.boolean(),
|
|
249
264
|
});
|
|
250
265
|
const Roblox_Groups_Api_Models_Response_GroupNameHistoryResponseItem = zod_1.z.object({
|
|
251
266
|
name: zod_1.z.string(),
|
|
@@ -272,10 +287,15 @@ const Roblox_Groups_Api_PayoutRecipientRequest = zod_1.z.object({
|
|
|
272
287
|
recipientType: zod_1.z.enum(['User', 'Group']),
|
|
273
288
|
amount: zod_1.z.number().int(),
|
|
274
289
|
});
|
|
290
|
+
const Roblox_Groups_Api_WatermarkContributionRequest = zod_1.z.object({
|
|
291
|
+
balanceKey: zod_1.z.enum(['Standard', 'O18Boosted']),
|
|
292
|
+
amount: zod_1.z.number().int(),
|
|
293
|
+
});
|
|
275
294
|
const Roblox_Groups_Api_PayoutRequest = zod_1.z.object({
|
|
276
295
|
PayoutType: zod_1.z.enum(['FixedAmount', 'Percentage']),
|
|
277
296
|
Recipients: zod_1.z.array(Roblox_Groups_Api_PayoutRecipientRequest),
|
|
278
297
|
IdempotencyKey: zod_1.z.string(),
|
|
298
|
+
WatermarkContributions: zod_1.z.array(Roblox_Groups_Api_WatermarkContributionRequest),
|
|
279
299
|
});
|
|
280
300
|
const Roblox_Groups_Api_OneTimePayoutResponse = zod_1.z.object({
|
|
281
301
|
status: zod_1.z.enum(['NotHeld', 'Held']),
|
|
@@ -328,6 +348,7 @@ const Roblox_Groups_Api_GroupSettingsResponse = zod_1.z.object({
|
|
|
328
348
|
]),
|
|
329
349
|
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
350
|
isMemberListVisibleToPublic: zod_1.z.boolean(),
|
|
351
|
+
isAutoAssignRoleDisabled: zod_1.z.boolean(),
|
|
331
352
|
});
|
|
332
353
|
const Roblox_Groups_Api_UpdateGroupSettingsRequest = zod_1.z.object({
|
|
333
354
|
isApprovalRequired: zod_1.z.boolean(),
|
|
@@ -852,6 +873,8 @@ exports.getGroupsGroupidAuditLog = (0, __1.endpoint)({
|
|
|
852
873
|
'UpdateGroupCoverPhoto',
|
|
853
874
|
'AssignRole',
|
|
854
875
|
'UnassignRole',
|
|
876
|
+
'PublishAnnouncement',
|
|
877
|
+
'DeleteAnnouncement',
|
|
855
878
|
])
|
|
856
879
|
.optional(),
|
|
857
880
|
userId: zod_1.z.number().int().optional(),
|
|
@@ -1388,6 +1411,27 @@ exports.postGroupsGroupidClaimOwnership = (0, __1.endpoint)({
|
|
|
1388
1411
|
},
|
|
1389
1412
|
],
|
|
1390
1413
|
});
|
|
1414
|
+
/**
|
|
1415
|
+
* @api GET https://groups.roblox.com/v1/groups/:groupId/community-feature-freezes
|
|
1416
|
+
* @summary Gets the freeze status of the community features for a group.
|
|
1417
|
+
* @param groupId
|
|
1418
|
+
*/
|
|
1419
|
+
exports.getGroupsGroupidCommunityFeatureFreezes = (0, __1.endpoint)({
|
|
1420
|
+
method: 'GET',
|
|
1421
|
+
path: '/v1/groups/:groupId/community-feature-freezes',
|
|
1422
|
+
baseUrl: 'https://groups.roblox.com',
|
|
1423
|
+
requestFormat: 'json',
|
|
1424
|
+
serializationMethod: {
|
|
1425
|
+
groupId: {
|
|
1426
|
+
style: 'simple',
|
|
1427
|
+
},
|
|
1428
|
+
},
|
|
1429
|
+
parameters: {
|
|
1430
|
+
groupId: zod_1.z.number().int(),
|
|
1431
|
+
},
|
|
1432
|
+
response: Roblox_Groups_Api_GetCommunityFeatureFreezesResponse,
|
|
1433
|
+
errors: [],
|
|
1434
|
+
});
|
|
1391
1435
|
/**
|
|
1392
1436
|
* @api GET https://groups.roblox.com/v1/groups/:groupId/configuration
|
|
1393
1437
|
* @summary Gets group configuration information
|
|
@@ -1639,7 +1683,8 @@ exports.getGroupsGroupidJoinRequests = (0, __1.endpoint)({
|
|
|
1639
1683
|
errors: [
|
|
1640
1684
|
{
|
|
1641
1685
|
status: 400,
|
|
1642
|
-
description: `1: The group is invalid or does not exist
|
|
1686
|
+
description: `1: The group is invalid or does not exist.
|
|
1687
|
+
36: The pagination cursor is invalid.`,
|
|
1643
1688
|
},
|
|
1644
1689
|
{
|
|
1645
1690
|
status: 401,
|
|
@@ -2152,7 +2197,8 @@ exports.postGroupsGroupidPayouts = (0, __1.endpoint)({
|
|
|
2152
2197
|
description: `0: Token Validation Failed
|
|
2153
2198
|
23: Insufficient permissions to complete the request.
|
|
2154
2199
|
28: Group has paid out too recently. Please wait and try again.
|
|
2155
|
-
35: 2-Step Verification is required to make further transactions. Go to Settings > Security to complete 2-Step Verification
|
|
2200
|
+
35: 2-Step Verification is required to make further transactions. Go to Settings > Security to complete 2-Step Verification.
|
|
2201
|
+
52: Group has paid out to this recipient too many times recently. Please try again later.`,
|
|
2156
2202
|
},
|
|
2157
2203
|
{
|
|
2158
2204
|
status: 503,
|
|
@@ -2738,7 +2784,8 @@ exports.getGroupsGroupidRolesRolesetidUsers = (0, __1.endpoint)({
|
|
|
2738
2784
|
errors: [
|
|
2739
2785
|
{
|
|
2740
2786
|
status: 400,
|
|
2741
|
-
description: `1: The group is invalid or does not exist
|
|
2787
|
+
description: `1: The group is invalid or does not exist.
|
|
2788
|
+
36: The pagination cursor is invalid.`,
|
|
2742
2789
|
},
|
|
2743
2790
|
{
|
|
2744
2791
|
status: 403,
|
|
@@ -3298,7 +3345,8 @@ exports.getGroupsGroupidUsers = (0, __1.endpoint)({
|
|
|
3298
3345
|
errors: [
|
|
3299
3346
|
{
|
|
3300
3347
|
status: 400,
|
|
3301
|
-
description: `1: The group is invalid or does not exist
|
|
3348
|
+
description: `1: The group is invalid or does not exist.
|
|
3349
|
+
36: The pagination cursor is invalid.`,
|
|
3302
3350
|
},
|
|
3303
3351
|
{
|
|
3304
3352
|
status: 403,
|
|
@@ -62,7 +62,7 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItem
|
|
|
62
62
|
const Roblox_Inventory_Api_Models_CreatorModel = z.object({
|
|
63
63
|
id: z.number().int(),
|
|
64
64
|
name: z.string(),
|
|
65
|
-
type: z.enum(["User", "Group"]),
|
|
65
|
+
type: z.enum(["User", "Group", "Experience"]),
|
|
66
66
|
});
|
|
67
67
|
const Roblox_Inventory_Api_Models_PlaceModel = z.object({
|
|
68
68
|
universeId: z.number().int(),
|
|
@@ -310,6 +310,8 @@ export const getUsersUseridAssetsCollectibles = endpoint({
|
|
|
310
310
|
z.literal(88),
|
|
311
311
|
z.literal(89),
|
|
312
312
|
z.literal(90),
|
|
313
|
+
z.literal(91),
|
|
314
|
+
z.literal(92),
|
|
313
315
|
])
|
|
314
316
|
.optional(),
|
|
315
317
|
limit: z
|
|
@@ -56,7 +56,7 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_IItem
|
|
|
56
56
|
const Roblox_Inventory_Api_Models_CreatorModel = zod_1.z.object({
|
|
57
57
|
id: zod_1.z.number().int(),
|
|
58
58
|
name: zod_1.z.string(),
|
|
59
|
-
type: zod_1.z.enum(['User', 'Group']),
|
|
59
|
+
type: zod_1.z.enum(['User', 'Group', 'Experience']),
|
|
60
60
|
});
|
|
61
61
|
const Roblox_Inventory_Api_Models_PlaceModel = zod_1.z.object({
|
|
62
62
|
universeId: zod_1.z.number().int(),
|
|
@@ -302,6 +302,8 @@ exports.getUsersUseridAssetsCollectibles = (0, __1.endpoint)({
|
|
|
302
302
|
zod_1.z.literal(88),
|
|
303
303
|
zod_1.z.literal(89),
|
|
304
304
|
zod_1.z.literal(90),
|
|
305
|
+
zod_1.z.literal(91),
|
|
306
|
+
zod_1.z.literal(92),
|
|
305
307
|
])
|
|
306
308
|
.optional(),
|
|
307
309
|
limit: zod_1.z
|
|
@@ -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(),
|
|
@@ -109,6 +121,8 @@ const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = z.object({
|
|
|
109
121
|
"FaceMakeup",
|
|
110
122
|
"LipMakeup",
|
|
111
123
|
"EyeMakeup",
|
|
124
|
+
"VoxelFragment",
|
|
125
|
+
"AvatarBackground",
|
|
112
126
|
]),
|
|
113
127
|
created: z.string().datetime({ offset: true }),
|
|
114
128
|
});
|
|
@@ -201,6 +215,62 @@ export const getAssetsAssetidOwners = endpoint({
|
|
|
201
215
|
},
|
|
202
216
|
],
|
|
203
217
|
});
|
|
218
|
+
/**
|
|
219
|
+
* @api GET https://inventory.roblox.com/v2/collectible-items/:collectibleItemId/owners
|
|
220
|
+
* @summary Gets a list of owners of a collectible item.
|
|
221
|
+
* @param collectibleItemId The collectible item ID.
|
|
222
|
+
* @param limit The number of results per request.
|
|
223
|
+
* @param cursor The paging cursor for the previous or next page.
|
|
224
|
+
* @param sortOrder The order the results are sorted in.
|
|
225
|
+
*/
|
|
226
|
+
export const getCollectibleItemsCollectibleitemidOwners = endpoint({
|
|
227
|
+
method: "GET",
|
|
228
|
+
path: "/v2/collectible-items/:collectibleItemId/owners",
|
|
229
|
+
baseUrl: "https://inventory.roblox.com",
|
|
230
|
+
requestFormat: "json",
|
|
231
|
+
serializationMethod: {
|
|
232
|
+
collectibleItemId: {
|
|
233
|
+
style: "simple",
|
|
234
|
+
},
|
|
235
|
+
limit: {
|
|
236
|
+
style: "form",
|
|
237
|
+
explode: true,
|
|
238
|
+
},
|
|
239
|
+
cursor: {
|
|
240
|
+
style: "form",
|
|
241
|
+
explode: true,
|
|
242
|
+
},
|
|
243
|
+
sortOrder: {
|
|
244
|
+
style: "form",
|
|
245
|
+
explode: true,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
parameters: {
|
|
249
|
+
collectibleItemId: z.string(),
|
|
250
|
+
limit: z.number().int().optional().default(10),
|
|
251
|
+
cursor: z.string().optional(),
|
|
252
|
+
sortOrder: z
|
|
253
|
+
.union([z.literal(1), z.literal(2)])
|
|
254
|
+
.optional()
|
|
255
|
+
.default(1),
|
|
256
|
+
},
|
|
257
|
+
response:
|
|
258
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
259
|
+
errors: [
|
|
260
|
+
{
|
|
261
|
+
status: 400,
|
|
262
|
+
description: `1: The collectible item id is invalid.`,
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
status: 401,
|
|
266
|
+
description: `0: Authorization has been denied for this request.`,
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
status: 403,
|
|
270
|
+
description: `2: You do not have permission to view the owners of this item.`,
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
});
|
|
204
274
|
/**
|
|
205
275
|
* @api DELETE https://inventory.roblox.com/v2/inventory/asset/:assetId
|
|
206
276
|
* @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(),
|
|
@@ -108,6 +118,8 @@ const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = zod_1.z.object({
|
|
|
108
118
|
'FaceMakeup',
|
|
109
119
|
'LipMakeup',
|
|
110
120
|
'EyeMakeup',
|
|
121
|
+
'VoxelFragment',
|
|
122
|
+
'AvatarBackground',
|
|
111
123
|
]),
|
|
112
124
|
created: zod_1.z.string().datetime({ offset: true }),
|
|
113
125
|
});
|
|
@@ -190,6 +202,61 @@ exports.getAssetsAssetidOwners = (0, __1.endpoint)({
|
|
|
190
202
|
},
|
|
191
203
|
],
|
|
192
204
|
});
|
|
205
|
+
/**
|
|
206
|
+
* @api GET https://inventory.roblox.com/v2/collectible-items/:collectibleItemId/owners
|
|
207
|
+
* @summary Gets a list of owners of a collectible item.
|
|
208
|
+
* @param collectibleItemId The collectible item ID.
|
|
209
|
+
* @param limit The number of results per request.
|
|
210
|
+
* @param cursor The paging cursor for the previous or next page.
|
|
211
|
+
* @param sortOrder The order the results are sorted in.
|
|
212
|
+
*/
|
|
213
|
+
exports.getCollectibleItemsCollectibleitemidOwners = (0, __1.endpoint)({
|
|
214
|
+
method: 'GET',
|
|
215
|
+
path: '/v2/collectible-items/:collectibleItemId/owners',
|
|
216
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
217
|
+
requestFormat: 'json',
|
|
218
|
+
serializationMethod: {
|
|
219
|
+
collectibleItemId: {
|
|
220
|
+
style: 'simple',
|
|
221
|
+
},
|
|
222
|
+
limit: {
|
|
223
|
+
style: 'form',
|
|
224
|
+
explode: true,
|
|
225
|
+
},
|
|
226
|
+
cursor: {
|
|
227
|
+
style: 'form',
|
|
228
|
+
explode: true,
|
|
229
|
+
},
|
|
230
|
+
sortOrder: {
|
|
231
|
+
style: 'form',
|
|
232
|
+
explode: true,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
parameters: {
|
|
236
|
+
collectibleItemId: zod_1.z.string(),
|
|
237
|
+
limit: zod_1.z.number().int().optional().default(10),
|
|
238
|
+
cursor: zod_1.z.string().optional(),
|
|
239
|
+
sortOrder: zod_1.z
|
|
240
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2)])
|
|
241
|
+
.optional()
|
|
242
|
+
.default(1),
|
|
243
|
+
},
|
|
244
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
|
|
245
|
+
errors: [
|
|
246
|
+
{
|
|
247
|
+
status: 400,
|
|
248
|
+
description: `1: The collectible item id is invalid.`,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
status: 401,
|
|
252
|
+
description: `0: Authorization has been denied for this request.`,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
status: 403,
|
|
256
|
+
description: `2: You do not have permission to view the owners of this item.`,
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
});
|
|
193
260
|
/**
|
|
194
261
|
* @api DELETE https://inventory.roblox.com/v2/inventory/asset/:assetId
|
|
195
262
|
* @summary Give up an asset owned by the authenticated user.
|
|
@@ -233,6 +233,33 @@ export const getLocalesSupportedLocalesForCreators = endpoint({
|
|
|
233
233
|
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Locale_Api_SupportedLocaleLocus_,
|
|
234
234
|
errors: [],
|
|
235
235
|
});
|
|
236
|
+
/**
|
|
237
|
+
* @api GET https://locale.roblox.com/v1/locales/supported-locales-for-feature
|
|
238
|
+
* @summary Get list of Supported locales for a specific feature.
|
|
239
|
+
* @param featureName
|
|
240
|
+
*/
|
|
241
|
+
export const getLocalesSupportedLocalesForFeature = endpoint({
|
|
242
|
+
method: "GET",
|
|
243
|
+
path: "/v1/locales/supported-locales-for-feature",
|
|
244
|
+
baseUrl: "https://locale.roblox.com",
|
|
245
|
+
requestFormat: "json",
|
|
246
|
+
serializationMethod: {
|
|
247
|
+
featureName: {
|
|
248
|
+
style: "form",
|
|
249
|
+
explode: true,
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
parameters: {
|
|
253
|
+
featureName: z.string(),
|
|
254
|
+
},
|
|
255
|
+
response: Roblox_Locale_Api_SupportedLocalesResponse,
|
|
256
|
+
errors: [
|
|
257
|
+
{
|
|
258
|
+
status: 500,
|
|
259
|
+
description: `Internal server error`,
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
});
|
|
236
263
|
/**
|
|
237
264
|
* @api GET https://locale.roblox.com/v1/locales/user-locale
|
|
238
265
|
* @summary Gets user locale. If user is absent returns, locale from http request object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLocalesUserLocalizationLocusSupportedLocales = exports.getLocalesUserLocale = exports.getLocalesSupportedLocalesForCreators = exports.getLocalesSupportedLocales = exports.postLocalesSetUserSupportedLocale = exports.postLocalesSetShowRobloxTranslations = exports.getLocales = exports.getCountryRegions = void 0;
|
|
3
|
+
exports.getLocalesUserLocalizationLocusSupportedLocales = exports.getLocalesUserLocale = exports.getLocalesSupportedLocalesForFeature = exports.getLocalesSupportedLocalesForCreators = exports.getLocalesSupportedLocales = exports.postLocalesSetUserSupportedLocale = exports.postLocalesSetShowRobloxTranslations = exports.getLocales = exports.getCountryRegions = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Locale_Api_CountryRegion = zod_1.z.object({
|
|
@@ -233,6 +233,33 @@ exports.getLocalesSupportedLocalesForCreators = (0, __1.endpoint)({
|
|
|
233
233
|
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Locale_Api_SupportedLocaleLocus_,
|
|
234
234
|
errors: [],
|
|
235
235
|
});
|
|
236
|
+
/**
|
|
237
|
+
* @api GET https://locale.roblox.com/v1/locales/supported-locales-for-feature
|
|
238
|
+
* @summary Get list of Supported locales for a specific feature.
|
|
239
|
+
* @param featureName
|
|
240
|
+
*/
|
|
241
|
+
exports.getLocalesSupportedLocalesForFeature = (0, __1.endpoint)({
|
|
242
|
+
method: 'GET',
|
|
243
|
+
path: '/v1/locales/supported-locales-for-feature',
|
|
244
|
+
baseUrl: 'https://locale.roblox.com',
|
|
245
|
+
requestFormat: 'json',
|
|
246
|
+
serializationMethod: {
|
|
247
|
+
featureName: {
|
|
248
|
+
style: 'form',
|
|
249
|
+
explode: true,
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
parameters: {
|
|
253
|
+
featureName: zod_1.z.string(),
|
|
254
|
+
},
|
|
255
|
+
response: Roblox_Locale_Api_SupportedLocalesResponse,
|
|
256
|
+
errors: [
|
|
257
|
+
{
|
|
258
|
+
status: 500,
|
|
259
|
+
description: `Internal server error`,
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
});
|
|
236
263
|
/**
|
|
237
264
|
* @api GET https://locale.roblox.com/v1/locales/user-locale
|
|
238
265
|
* @summary Gets user locale. If user is absent returns, locale from http request object.
|
|
@@ -114,6 +114,7 @@ export const postAudio = endpoint({
|
|
|
114
114
|
description: `3: The request did not contain a file to be uploaded.
|
|
115
115
|
4: The file in the request is too large.
|
|
116
116
|
5: The duration of the audio file is too long.
|
|
117
|
+
7: Failed to parse the file.
|
|
117
118
|
8: The file type is not supported.
|
|
118
119
|
9: The file is corrupted
|
|
119
120
|
11: Missing permissions to spend group funds.
|
|
@@ -138,8 +139,7 @@ export const postAudio = endpoint({
|
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
status: 500,
|
|
141
|
-
description: `
|
|
142
|
-
19: Asset creation was unavailable. Please try again.`,
|
|
142
|
+
description: `19: Asset creation was unavailable. Please try again.`,
|
|
143
143
|
},
|
|
144
144
|
],
|
|
145
145
|
});
|
|
@@ -165,6 +165,7 @@ export const postAudioVerify = endpoint({
|
|
|
165
165
|
description: `3: The request did not contain a file to be uploaded.
|
|
166
166
|
4: The file in the request is too large.
|
|
167
167
|
5: The duration of the audio file is too long.
|
|
168
|
+
7: Failed to parse the file.
|
|
168
169
|
8: The file type is not supported.
|
|
169
170
|
9: The file is corrupted
|
|
170
171
|
18: Too many requests. Try again later.`,
|
|
@@ -178,10 +179,6 @@ export const postAudioVerify = endpoint({
|
|
|
178
179
|
status: 403,
|
|
179
180
|
description: `0: Token Validation Failed`,
|
|
180
181
|
},
|
|
181
|
-
{
|
|
182
|
-
status: 500,
|
|
183
|
-
description: `7: Failed to parse the file.`,
|
|
184
|
-
},
|
|
185
182
|
],
|
|
186
183
|
});
|
|
187
184
|
/**
|
|
@@ -115,6 +115,7 @@ exports.postAudio = (0, __1.endpoint)({
|
|
|
115
115
|
description: `3: The request did not contain a file to be uploaded.
|
|
116
116
|
4: The file in the request is too large.
|
|
117
117
|
5: The duration of the audio file is too long.
|
|
118
|
+
7: Failed to parse the file.
|
|
118
119
|
8: The file type is not supported.
|
|
119
120
|
9: The file is corrupted
|
|
120
121
|
11: Missing permissions to spend group funds.
|
|
@@ -139,8 +140,7 @@ exports.postAudio = (0, __1.endpoint)({
|
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
status: 500,
|
|
142
|
-
description: `
|
|
143
|
-
19: Asset creation was unavailable. Please try again.`,
|
|
143
|
+
description: `19: Asset creation was unavailable. Please try again.`,
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
});
|
|
@@ -166,6 +166,7 @@ exports.postAudioVerify = (0, __1.endpoint)({
|
|
|
166
166
|
description: `3: The request did not contain a file to be uploaded.
|
|
167
167
|
4: The file in the request is too large.
|
|
168
168
|
5: The duration of the audio file is too long.
|
|
169
|
+
7: Failed to parse the file.
|
|
169
170
|
8: The file type is not supported.
|
|
170
171
|
9: The file is corrupted
|
|
171
172
|
18: Too many requests. Try again later.`,
|
|
@@ -179,10 +180,6 @@ exports.postAudioVerify = (0, __1.endpoint)({
|
|
|
179
180
|
status: 403,
|
|
180
181
|
description: `0: Token Validation Failed`,
|
|
181
182
|
},
|
|
182
|
-
{
|
|
183
|
-
status: 500,
|
|
184
|
-
description: `7: Failed to parse the file.`,
|
|
185
|
-
},
|
|
186
183
|
],
|
|
187
184
|
});
|
|
188
185
|
/**
|