rozod 6.7.1 → 6.9.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 +92 -95
- package/lib/endpoints/accountsettingsv1.d.ts +88 -110
- package/lib/endpoints/adconfigurationv2.d.ts +108 -215
- package/lib/endpoints/assetdeliveryv1.d.ts +267 -230
- package/lib/endpoints/assetdeliveryv1.js +38 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +201 -176
- package/lib/endpoints/assetdeliveryv2.js +26 -0
- package/lib/endpoints/authv1.d.ts +480 -517
- package/lib/endpoints/authv1.js +3 -1
- package/lib/endpoints/authv2.d.ts +210 -222
- package/lib/endpoints/authv2.js +1 -1
- package/lib/endpoints/authv3.d.ts +32 -35
- package/lib/endpoints/avatarv1.d.ts +112 -117
- package/lib/endpoints/avatarv2.d.ts +71 -76
- package/lib/endpoints/avatarv3.d.ts +27 -33
- package/lib/endpoints/badgesv1.d.ts +96 -99
- package/lib/endpoints/badgesv1.js +4 -0
- package/lib/endpoints/catalogv1.d.ts +209 -234
- package/lib/endpoints/catalogv1.js +2 -1
- package/lib/endpoints/catalogv2.d.ts +106 -136
- package/lib/endpoints/catalogv2.js +21 -17
- package/lib/endpoints/chatv2.d.ts +778 -778
- package/lib/endpoints/clientsettingsv1.d.ts +33 -35
- package/lib/endpoints/clientsettingsv2.d.ts +62 -68
- package/lib/endpoints/contactsv1.d.ts +18 -20
- package/lib/endpoints/developv1.d.ts +233 -293
- package/lib/endpoints/developv1.js +3 -0
- package/lib/endpoints/developv2.d.ts +87 -138
- package/lib/endpoints/developv2.js +3 -1
- package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
- package/lib/endpoints/economyv1.d.ts +6 -6
- package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
- package/lib/endpoints/followingsv1.d.ts +33 -34
- package/lib/endpoints/followingsv2.d.ts +9 -9
- package/lib/endpoints/friendsv1.d.ts +416 -545
- package/lib/endpoints/friendsv1.js +213 -313
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamejoinv1.d.ts +458 -458
- package/lib/endpoints/gamesv1.d.ts +183 -143
- package/lib/endpoints/gamesv1.js +2 -0
- package/lib/endpoints/gamesv2.d.ts +161 -158
- package/lib/endpoints/gamesv2.js +9 -0
- package/lib/endpoints/groupsv1.d.ts +967 -976
- package/lib/endpoints/groupsv1.js +48 -4
- package/lib/endpoints/groupsv2.d.ts +259 -277
- package/lib/endpoints/groupsv2.js +1 -0
- package/lib/endpoints/inventoryv1.d.ts +93 -122
- package/lib/endpoints/inventoryv1.js +3 -1
- package/lib/endpoints/inventoryv2.d.ts +163 -178
- package/lib/endpoints/inventoryv2.js +2 -0
- package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
- package/lib/endpoints/localev1.d.ts +47 -48
- package/lib/endpoints/localizationtablesv1.d.ts +315 -353
- package/lib/endpoints/matchmakingv1.d.ts +184 -190
- package/lib/endpoints/metricsv1.d.ts +88 -88
- package/lib/endpoints/notificationsv2.d.ts +144 -158
- package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
- package/lib/endpoints/presencev1.d.ts +7 -12
- package/lib/endpoints/privatemessagesv1.d.ts +56 -64
- package/lib/endpoints/publishv1.d.ts +32 -32
- package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
- package/lib/endpoints/thumbnailsv1.d.ts +317 -361
- package/lib/endpoints/thumbnailsv1.js +25 -0
- package/lib/endpoints/tradesv1.d.ts +92 -104
- package/lib/endpoints/tradesv2.d.ts +81 -84
- package/lib/endpoints/translationrolesv1.d.ts +46 -51
- package/lib/endpoints/twostepverificationv1.d.ts +233 -237
- package/lib/endpoints/usersv1.d.ts +110 -114
- package/lib/index.d.ts +152 -4
- package/lib/index.js +273 -4
- 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 +172 -84
- package/lib/opencloud/v2/cloud.js +25 -9
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridRequestFriendship = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.deleteMyNewFriendRequests = exports.postContactsTargetcontactidRequestFriendship = exports.getUserUseridMultigetAreTrustedFriends = exports.getMyTrustedFriendsUseridStatus = exports.getUsersUseridTrustedFriendsCount = exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfollow = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyTrustedFriendsCount = exports.getMyNewFriendRequestsCount = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = 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({
|
|
@@ -30,6 +30,7 @@ const Roblox_Friends_Api_FriendRequest = zod_1.z.object({
|
|
|
30
30
|
'PhoneContactImporter',
|
|
31
31
|
'FriendRecommendations',
|
|
32
32
|
'UserCommunities',
|
|
33
|
+
'TrustedFriend',
|
|
33
34
|
]),
|
|
34
35
|
contactName: zod_1.z.string(),
|
|
35
36
|
senderNickname: zod_1.z.string(),
|
|
@@ -118,10 +119,6 @@ const Roblox_Friends_Api_FriendStatusResponse = zod_1.z.object({
|
|
|
118
119
|
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ = zod_1.z.object({
|
|
119
120
|
data: zod_1.z.array(Roblox_Friends_Api_FriendStatusResponse),
|
|
120
121
|
});
|
|
121
|
-
const Roblox_Friends_Api_CaptchaStatusResponseModel = zod_1.z.object({
|
|
122
|
-
success: zod_1.z.boolean(),
|
|
123
|
-
isCaptchaRequired: zod_1.z.boolean(),
|
|
124
|
-
});
|
|
125
122
|
const Roblox_Friends_Api_Models_Response_RefreshQrSessionResponse = zod_1.z.object({
|
|
126
123
|
Success: zod_1.z.boolean(),
|
|
127
124
|
});
|
|
@@ -142,79 +139,17 @@ const Roblox_Friends_Api_Models_Response_FollowingExistsResponse = zod_1.z.objec
|
|
|
142
139
|
const Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel = zod_1.z.object({
|
|
143
140
|
followings: zod_1.z.array(Roblox_Friends_Api_Models_Response_FollowingExistsResponse),
|
|
144
141
|
});
|
|
145
|
-
const Roblox_Friends_Api_Models_Response_DeclineAllFriendRequestsResponse = zod_1.z.object({ backgrounded: zod_1.z.boolean() });
|
|
146
|
-
const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
|
|
147
|
-
const Roblox_Friends_Api_Models_Request_FriendingTokenRequestModel = zod_1.z.object({
|
|
148
|
-
friendingToken: zod_1.z.string(),
|
|
149
|
-
});
|
|
150
142
|
const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = zod_1.z.object({
|
|
151
143
|
captchaId: zod_1.z.string(),
|
|
152
144
|
captchaToken: zod_1.z.string(),
|
|
153
145
|
captchaProvider: zod_1.z.string(),
|
|
154
146
|
challengeId: zod_1.z.string(),
|
|
155
147
|
});
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
'PlayerSearch',
|
|
160
|
-
'QrCode',
|
|
161
|
-
'InGame',
|
|
162
|
-
'UserProfile',
|
|
163
|
-
'QqContactImporter',
|
|
164
|
-
'WeChatContactImporter',
|
|
165
|
-
'ProfileShare',
|
|
166
|
-
'PhoneContactImporter',
|
|
167
|
-
'FriendRecommendations',
|
|
168
|
-
'UserCommunities',
|
|
169
|
-
]),
|
|
170
|
-
senderNickname: zod_1.z.string(),
|
|
171
|
-
});
|
|
172
|
-
const Roblox_Friends_Api_Models_Response_ClearNewFriendRequestResponse = zod_1.z.object({ status: zod_1.z.boolean() });
|
|
173
|
-
/**
|
|
174
|
-
* @api POST https://friends.roblox.com/v1/contacts/:targetContactId/request-friendship
|
|
175
|
-
* @summary Send a contact friend request to target user
|
|
176
|
-
* @param targetContactId The target contact Id for friend request
|
|
177
|
-
*/
|
|
178
|
-
exports.postContactsTargetcontactidRequestFriendship = (0, __1.endpoint)({
|
|
179
|
-
method: 'POST',
|
|
180
|
-
path: '/v1/contacts/:targetContactId/request-friendship',
|
|
181
|
-
baseUrl: 'https://friends.roblox.com',
|
|
182
|
-
requestFormat: 'json',
|
|
183
|
-
serializationMethod: {
|
|
184
|
-
targetContactId: {
|
|
185
|
-
style: 'simple',
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
parameters: {
|
|
189
|
-
targetContactId: zod_1.z.string(),
|
|
190
|
-
},
|
|
191
|
-
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
192
|
-
errors: [
|
|
193
|
-
{
|
|
194
|
-
status: 400,
|
|
195
|
-
description: `1: The target user is invalid or does not exist.
|
|
196
|
-
5: The target user is already a friend.
|
|
197
|
-
6: Invalid parameters.
|
|
198
|
-
7: The user cannot be friends with itself.
|
|
199
|
-
31: User with max friends sent friend request.`,
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
status: 401,
|
|
203
|
-
description: `0: Authorization has been denied for this request.`,
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
status: 403,
|
|
207
|
-
description: `0: Token Validation Failed
|
|
208
|
-
2: The user is banned from performing operation.
|
|
209
|
-
3: The user is blocked from performing this action.
|
|
210
|
-
14: The user has not passed the captcha.`,
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
status: 429,
|
|
214
|
-
description: `9: The flood limit has been exceeded.`,
|
|
215
|
-
},
|
|
216
|
-
],
|
|
148
|
+
const Roblox_Friends_Api_CaptchaStatusResponseModel = zod_1.z.object({
|
|
149
|
+
success: zod_1.z.boolean(),
|
|
150
|
+
isCaptchaRequired: zod_1.z.boolean(),
|
|
217
151
|
});
|
|
152
|
+
const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
|
|
218
153
|
/**
|
|
219
154
|
* @api GET https://friends.roblox.com/v1/metadata
|
|
220
155
|
* @param targetUserId
|
|
@@ -360,26 +295,6 @@ exports.getMyFriendsRequests = (0, __1.endpoint)({
|
|
|
360
295
|
},
|
|
361
296
|
],
|
|
362
297
|
});
|
|
363
|
-
/**
|
|
364
|
-
* @api DELETE https://friends.roblox.com/v1/my/new-friend-requests
|
|
365
|
-
*/
|
|
366
|
-
exports.deleteMyNewFriendRequests = (0, __1.endpoint)({
|
|
367
|
-
method: 'DELETE',
|
|
368
|
-
path: '/v1/my/new-friend-requests',
|
|
369
|
-
baseUrl: 'https://friends.roblox.com',
|
|
370
|
-
requestFormat: 'json',
|
|
371
|
-
response: zod_1.z.object({ status: zod_1.z.boolean() }),
|
|
372
|
-
errors: [
|
|
373
|
-
{
|
|
374
|
-
status: 401,
|
|
375
|
-
description: `0: Authorization has been denied for this request.`,
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
status: 403,
|
|
379
|
-
description: `0: Token Validation Failed`,
|
|
380
|
-
},
|
|
381
|
-
],
|
|
382
|
-
});
|
|
383
298
|
/**
|
|
384
299
|
* @api GET https://friends.roblox.com/v1/my/new-friend-requests/count
|
|
385
300
|
*/
|
|
@@ -498,143 +413,6 @@ exports.getUserFriendRequestsCount = (0, __1.endpoint)({
|
|
|
498
413
|
},
|
|
499
414
|
],
|
|
500
415
|
});
|
|
501
|
-
/**
|
|
502
|
-
* @api POST https://friends.roblox.com/v1/user/friend-requests/decline-all
|
|
503
|
-
* @summary Decline all pending friend requests for the authenticated user.
|
|
504
|
-
*/
|
|
505
|
-
exports.postUserFriendRequestsDeclineAll = (0, __1.endpoint)({
|
|
506
|
-
method: 'POST',
|
|
507
|
-
path: '/v1/user/friend-requests/decline-all',
|
|
508
|
-
baseUrl: 'https://friends.roblox.com',
|
|
509
|
-
requestFormat: 'json',
|
|
510
|
-
response: zod_1.z.object({ backgrounded: zod_1.z.boolean() }),
|
|
511
|
-
errors: [
|
|
512
|
-
{
|
|
513
|
-
status: 401,
|
|
514
|
-
description: `0: Authorization has been denied for this request.`,
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
status: 403,
|
|
518
|
-
description: `0: Token Validation Failed`,
|
|
519
|
-
},
|
|
520
|
-
],
|
|
521
|
-
});
|
|
522
|
-
/**
|
|
523
|
-
* @api POST https://friends.roblox.com/v1/users/:requesterUserId/accept-friend-request
|
|
524
|
-
* @summary Accept a friend request.
|
|
525
|
-
* @param requesterUserId The user Id of the requester
|
|
526
|
-
*/
|
|
527
|
-
exports.postUsersRequesteruseridAcceptFriendRequest = (0, __1.endpoint)({
|
|
528
|
-
method: 'POST',
|
|
529
|
-
path: '/v1/users/:requesterUserId/accept-friend-request',
|
|
530
|
-
baseUrl: 'https://friends.roblox.com',
|
|
531
|
-
requestFormat: 'json',
|
|
532
|
-
serializationMethod: {
|
|
533
|
-
requesterUserId: {
|
|
534
|
-
style: 'simple',
|
|
535
|
-
},
|
|
536
|
-
},
|
|
537
|
-
parameters: {
|
|
538
|
-
requesterUserId: zod_1.z.number().int(),
|
|
539
|
-
},
|
|
540
|
-
response: zod_1.z.object({}),
|
|
541
|
-
errors: [
|
|
542
|
-
{
|
|
543
|
-
status: 400,
|
|
544
|
-
description: `1: The target user is invalid or does not exist.
|
|
545
|
-
10: The friend request does not exist.
|
|
546
|
-
11: The current users friends limit has been exceeded.
|
|
547
|
-
12: The target users friends limit has been exceeded.`,
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
status: 401,
|
|
551
|
-
description: `0: Authorization has been denied for this request.`,
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
status: 403,
|
|
555
|
-
description: `0: Token Validation Failed
|
|
556
|
-
3: The user is blocked from performing this action.`,
|
|
557
|
-
},
|
|
558
|
-
],
|
|
559
|
-
});
|
|
560
|
-
/**
|
|
561
|
-
* @api POST https://friends.roblox.com/v1/users/:requesterUserId/decline-friend-request
|
|
562
|
-
* @summary Decline a friend request.
|
|
563
|
-
* @param requesterUserId The user Id of the requester
|
|
564
|
-
*/
|
|
565
|
-
exports.postUsersRequesteruseridDeclineFriendRequest = (0, __1.endpoint)({
|
|
566
|
-
method: 'POST',
|
|
567
|
-
path: '/v1/users/:requesterUserId/decline-friend-request',
|
|
568
|
-
baseUrl: 'https://friends.roblox.com',
|
|
569
|
-
requestFormat: 'json',
|
|
570
|
-
serializationMethod: {
|
|
571
|
-
requesterUserId: {
|
|
572
|
-
style: 'simple',
|
|
573
|
-
},
|
|
574
|
-
},
|
|
575
|
-
parameters: {
|
|
576
|
-
requesterUserId: zod_1.z.number().int(),
|
|
577
|
-
},
|
|
578
|
-
response: zod_1.z.object({}),
|
|
579
|
-
errors: [
|
|
580
|
-
{
|
|
581
|
-
status: 400,
|
|
582
|
-
description: `1: The target user is invalid or does not exist.
|
|
583
|
-
10: The friend request does not exist.`,
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
status: 401,
|
|
587
|
-
description: `0: Authorization has been denied for this request.`,
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
status: 403,
|
|
591
|
-
description: `0: Token Validation Failed`,
|
|
592
|
-
},
|
|
593
|
-
],
|
|
594
|
-
});
|
|
595
|
-
/**
|
|
596
|
-
* @api POST https://friends.roblox.com/v1/users/:senderUserId/accept-friend-request-with-token
|
|
597
|
-
* @summary Accept a friend request with an Off Network Friending token.
|
|
598
|
-
* @param body
|
|
599
|
-
* @param senderUserId The user id of the sender of the off network friend request
|
|
600
|
-
*/
|
|
601
|
-
exports.postUsersSenderuseridAcceptFriendRequestWithToken = (0, __1.endpoint)({
|
|
602
|
-
method: 'POST',
|
|
603
|
-
path: '/v1/users/:senderUserId/accept-friend-request-with-token',
|
|
604
|
-
baseUrl: 'https://friends.roblox.com',
|
|
605
|
-
requestFormat: 'json',
|
|
606
|
-
serializationMethod: {
|
|
607
|
-
body: {},
|
|
608
|
-
senderUserId: {
|
|
609
|
-
style: 'simple',
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
parameters: {
|
|
613
|
-
senderUserId: zod_1.z.number().int(),
|
|
614
|
-
},
|
|
615
|
-
body: zod_1.z.object({ friendingToken: zod_1.z.string() }),
|
|
616
|
-
response: zod_1.z.object({}),
|
|
617
|
-
errors: [
|
|
618
|
-
{
|
|
619
|
-
status: 400,
|
|
620
|
-
description: `1: The target user is invalid or does not exist.
|
|
621
|
-
3: The user is blocked from performing this action.
|
|
622
|
-
5: The target user is already a friend.
|
|
623
|
-
6: Invalid parameters.
|
|
624
|
-
7: The user cannot be friends with itself.
|
|
625
|
-
11: The current users friends limit has been exceeded.
|
|
626
|
-
12: The target users friends limit has been exceeded.`,
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
status: 401,
|
|
630
|
-
description: `0: Authorization has been denied for this request.`,
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
status: 403,
|
|
634
|
-
description: `0: Token Validation Failed`,
|
|
635
|
-
},
|
|
636
|
-
],
|
|
637
|
-
});
|
|
638
416
|
/**
|
|
639
417
|
* @api POST https://friends.roblox.com/v1/users/:targetUserId/follow
|
|
640
418
|
* @summary Creates the following between a user and user with targetUserId
|
|
@@ -847,57 +625,6 @@ exports.getUsersTargetuseridFollowingsCount = (0, __1.endpoint)({
|
|
|
847
625
|
},
|
|
848
626
|
],
|
|
849
627
|
});
|
|
850
|
-
/**
|
|
851
|
-
* @api POST https://friends.roblox.com/v1/users/:targetUserId/request-friendship
|
|
852
|
-
* @summary Send a friend request to target user
|
|
853
|
-
* @param body The source which the friend request originated from
|
|
854
|
-
* @param targetUserId The target user Id for friend request
|
|
855
|
-
*/
|
|
856
|
-
exports.postUsersTargetuseridRequestFriendship = (0, __1.endpoint)({
|
|
857
|
-
method: 'POST',
|
|
858
|
-
path: '/v1/users/:targetUserId/request-friendship',
|
|
859
|
-
baseUrl: 'https://friends.roblox.com',
|
|
860
|
-
requestFormat: 'json',
|
|
861
|
-
serializationMethod: {
|
|
862
|
-
body: {},
|
|
863
|
-
targetUserId: {
|
|
864
|
-
style: 'simple',
|
|
865
|
-
},
|
|
866
|
-
},
|
|
867
|
-
parameters: {
|
|
868
|
-
targetUserId: zod_1.z.number().int(),
|
|
869
|
-
},
|
|
870
|
-
body: Roblox_Friends_Api_FriendshipRequestModel,
|
|
871
|
-
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
872
|
-
errors: [
|
|
873
|
-
{
|
|
874
|
-
status: 400,
|
|
875
|
-
description: `1: The target user is invalid or does not exist.
|
|
876
|
-
5: The target user is already a friend.
|
|
877
|
-
6: Invalid parameters.
|
|
878
|
-
7: The user cannot be friends with itself.
|
|
879
|
-
10: The friend request does not exist.
|
|
880
|
-
13: The users are not in the same game.
|
|
881
|
-
31: User with max friends sent friend request.
|
|
882
|
-
35: Invalid nickname.`,
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
status: 401,
|
|
886
|
-
description: `0: Authorization has been denied for this request.`,
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
status: 403,
|
|
890
|
-
description: `0: Token Validation Failed
|
|
891
|
-
2: The user is banned from performing operation.
|
|
892
|
-
3: The user is blocked from performing this action.
|
|
893
|
-
14: The user has not passed the captcha.`,
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
status: 429,
|
|
897
|
-
description: `9: The flood limit has been exceeded.`,
|
|
898
|
-
},
|
|
899
|
-
],
|
|
900
|
-
});
|
|
901
628
|
/**
|
|
902
629
|
* @api POST https://friends.roblox.com/v1/users/:targetUserId/unfollow
|
|
903
630
|
* @summary Deletes the following between a user and user with targetUserId
|
|
@@ -941,40 +668,6 @@ exports.postUsersTargetuseridUnfollow = (0, __1.endpoint)({
|
|
|
941
668
|
},
|
|
942
669
|
],
|
|
943
670
|
});
|
|
944
|
-
/**
|
|
945
|
-
* @api POST https://friends.roblox.com/v1/users/:targetUserId/unfriend
|
|
946
|
-
* @summary Unfriend a user
|
|
947
|
-
* @param targetUserId The target user id to unfriend
|
|
948
|
-
*/
|
|
949
|
-
exports.postUsersTargetuseridUnfriend = (0, __1.endpoint)({
|
|
950
|
-
method: 'POST',
|
|
951
|
-
path: '/v1/users/:targetUserId/unfriend',
|
|
952
|
-
baseUrl: 'https://friends.roblox.com',
|
|
953
|
-
requestFormat: 'json',
|
|
954
|
-
serializationMethod: {
|
|
955
|
-
targetUserId: {
|
|
956
|
-
style: 'simple',
|
|
957
|
-
},
|
|
958
|
-
},
|
|
959
|
-
parameters: {
|
|
960
|
-
targetUserId: zod_1.z.number().int(),
|
|
961
|
-
},
|
|
962
|
-
response: zod_1.z.object({}),
|
|
963
|
-
errors: [
|
|
964
|
-
{
|
|
965
|
-
status: 400,
|
|
966
|
-
description: `1: The target user is invalid or does not exist.`,
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
status: 401,
|
|
970
|
-
description: `0: Authorization has been denied for this request.`,
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
status: 403,
|
|
974
|
-
description: `0: Token Validation Failed`,
|
|
975
|
-
},
|
|
976
|
-
],
|
|
977
|
-
});
|
|
978
671
|
/**
|
|
979
672
|
* @api GET https://friends.roblox.com/v1/users/:userId/friends
|
|
980
673
|
* @summary Get list of all friends for the specified user.
|
|
@@ -1299,3 +992,210 @@ exports.getUserUseridMultigetAreTrustedFriends = (0, __1.endpoint)({
|
|
|
1299
992
|
response: Patch_MultigetAreTrustedFriendsResponse,
|
|
1300
993
|
errors: [{ status: 400, description: `1: The target user is invalid or does not exist.` }],
|
|
1301
994
|
});
|
|
995
|
+
// Friend-management write endpoints Roblox removed from its published API docs but
|
|
996
|
+
// which remain functional. Not on the official deprecated-endpoints list; the docs
|
|
997
|
+
// only list the older /api/friends/* and api.roblox.com/user/* variants as removed.
|
|
998
|
+
const Patch_FriendshipRequestModel = zod_1.z.object({
|
|
999
|
+
friendshipOriginSourceType: zod_1.z.enum([
|
|
1000
|
+
'Unknown',
|
|
1001
|
+
'PlayerSearch',
|
|
1002
|
+
'QrCode',
|
|
1003
|
+
'InGame',
|
|
1004
|
+
'UserProfile',
|
|
1005
|
+
'QqContactImporter',
|
|
1006
|
+
'WeChatContactImporter',
|
|
1007
|
+
'ProfileShare',
|
|
1008
|
+
'PhoneContactImporter',
|
|
1009
|
+
'FriendRecommendations',
|
|
1010
|
+
'UserCommunities',
|
|
1011
|
+
]),
|
|
1012
|
+
senderNickname: zod_1.z.string(),
|
|
1013
|
+
});
|
|
1014
|
+
exports.postContactsTargetcontactidRequestFriendship = (0, __1.endpoint)({
|
|
1015
|
+
method: 'POST',
|
|
1016
|
+
path: '/v1/contacts/:targetContactId/request-friendship',
|
|
1017
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1018
|
+
requestFormat: 'json',
|
|
1019
|
+
serializationMethod: {
|
|
1020
|
+
targetContactId: { style: 'simple' },
|
|
1021
|
+
},
|
|
1022
|
+
parameters: {
|
|
1023
|
+
targetContactId: zod_1.z.string(),
|
|
1024
|
+
},
|
|
1025
|
+
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
1026
|
+
errors: [
|
|
1027
|
+
{
|
|
1028
|
+
status: 400,
|
|
1029
|
+
description: `1: The target user is invalid or does not exist.
|
|
1030
|
+
5: The target user is already a friend.
|
|
1031
|
+
6: Invalid parameters.
|
|
1032
|
+
7: The user cannot be friends with itself.
|
|
1033
|
+
31: User with max friends sent friend request.`,
|
|
1034
|
+
},
|
|
1035
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1036
|
+
{
|
|
1037
|
+
status: 403,
|
|
1038
|
+
description: `0: Token Validation Failed
|
|
1039
|
+
2: The user is banned from performing operation.
|
|
1040
|
+
3: The user is blocked from performing this action.
|
|
1041
|
+
14: The user has not passed the captcha.`,
|
|
1042
|
+
},
|
|
1043
|
+
{ status: 429, description: `9: The flood limit has been exceeded.` },
|
|
1044
|
+
],
|
|
1045
|
+
});
|
|
1046
|
+
exports.deleteMyNewFriendRequests = (0, __1.endpoint)({
|
|
1047
|
+
method: 'DELETE',
|
|
1048
|
+
path: '/v1/my/new-friend-requests',
|
|
1049
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1050
|
+
requestFormat: 'json',
|
|
1051
|
+
response: zod_1.z.object({ status: zod_1.z.boolean() }),
|
|
1052
|
+
errors: [
|
|
1053
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1054
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1055
|
+
],
|
|
1056
|
+
});
|
|
1057
|
+
exports.postUserFriendRequestsDeclineAll = (0, __1.endpoint)({
|
|
1058
|
+
method: 'POST',
|
|
1059
|
+
path: '/v1/user/friend-requests/decline-all',
|
|
1060
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1061
|
+
requestFormat: 'json',
|
|
1062
|
+
response: zod_1.z.object({ backgrounded: zod_1.z.boolean() }),
|
|
1063
|
+
errors: [
|
|
1064
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1065
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1066
|
+
],
|
|
1067
|
+
});
|
|
1068
|
+
exports.postUsersRequesteruseridAcceptFriendRequest = (0, __1.endpoint)({
|
|
1069
|
+
method: 'POST',
|
|
1070
|
+
path: '/v1/users/:requesterUserId/accept-friend-request',
|
|
1071
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1072
|
+
requestFormat: 'json',
|
|
1073
|
+
serializationMethod: {
|
|
1074
|
+
requesterUserId: { style: 'simple' },
|
|
1075
|
+
},
|
|
1076
|
+
parameters: {
|
|
1077
|
+
requesterUserId: zod_1.z.number().int(),
|
|
1078
|
+
},
|
|
1079
|
+
response: zod_1.z.object({}),
|
|
1080
|
+
errors: [
|
|
1081
|
+
{
|
|
1082
|
+
status: 400,
|
|
1083
|
+
description: `1: The target user is invalid or does not exist.
|
|
1084
|
+
10: The friend request does not exist.
|
|
1085
|
+
11: The current users friends limit has been exceeded.
|
|
1086
|
+
12: The target users friends limit has been exceeded.`,
|
|
1087
|
+
},
|
|
1088
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1089
|
+
{
|
|
1090
|
+
status: 403,
|
|
1091
|
+
description: `0: Token Validation Failed
|
|
1092
|
+
3: The user is blocked from performing this action.`,
|
|
1093
|
+
},
|
|
1094
|
+
],
|
|
1095
|
+
});
|
|
1096
|
+
exports.postUsersRequesteruseridDeclineFriendRequest = (0, __1.endpoint)({
|
|
1097
|
+
method: 'POST',
|
|
1098
|
+
path: '/v1/users/:requesterUserId/decline-friend-request',
|
|
1099
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1100
|
+
requestFormat: 'json',
|
|
1101
|
+
serializationMethod: {
|
|
1102
|
+
requesterUserId: { style: 'simple' },
|
|
1103
|
+
},
|
|
1104
|
+
parameters: {
|
|
1105
|
+
requesterUserId: zod_1.z.number().int(),
|
|
1106
|
+
},
|
|
1107
|
+
response: zod_1.z.object({}),
|
|
1108
|
+
errors: [
|
|
1109
|
+
{
|
|
1110
|
+
status: 400,
|
|
1111
|
+
description: `1: The target user is invalid or does not exist.
|
|
1112
|
+
10: The friend request does not exist.`,
|
|
1113
|
+
},
|
|
1114
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1115
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1116
|
+
],
|
|
1117
|
+
});
|
|
1118
|
+
exports.postUsersSenderuseridAcceptFriendRequestWithToken = (0, __1.endpoint)({
|
|
1119
|
+
method: 'POST',
|
|
1120
|
+
path: '/v1/users/:senderUserId/accept-friend-request-with-token',
|
|
1121
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1122
|
+
requestFormat: 'json',
|
|
1123
|
+
serializationMethod: {
|
|
1124
|
+
body: {},
|
|
1125
|
+
senderUserId: { style: 'simple' },
|
|
1126
|
+
},
|
|
1127
|
+
parameters: {
|
|
1128
|
+
senderUserId: zod_1.z.number().int(),
|
|
1129
|
+
},
|
|
1130
|
+
body: zod_1.z.object({ friendingToken: zod_1.z.string() }),
|
|
1131
|
+
response: zod_1.z.object({}),
|
|
1132
|
+
errors: [
|
|
1133
|
+
{
|
|
1134
|
+
status: 400,
|
|
1135
|
+
description: `1: The target user is invalid or does not exist.
|
|
1136
|
+
3: The user is blocked from performing this action.
|
|
1137
|
+
5: The target user is already a friend.
|
|
1138
|
+
6: Invalid parameters.
|
|
1139
|
+
7: The user cannot be friends with itself.
|
|
1140
|
+
11: The current users friends limit has been exceeded.
|
|
1141
|
+
12: The target users friends limit has been exceeded.`,
|
|
1142
|
+
},
|
|
1143
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1144
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1145
|
+
],
|
|
1146
|
+
});
|
|
1147
|
+
exports.postUsersTargetuseridRequestFriendship = (0, __1.endpoint)({
|
|
1148
|
+
method: 'POST',
|
|
1149
|
+
path: '/v1/users/:targetUserId/request-friendship',
|
|
1150
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1151
|
+
requestFormat: 'json',
|
|
1152
|
+
serializationMethod: {
|
|
1153
|
+
body: {},
|
|
1154
|
+
targetUserId: { style: 'simple' },
|
|
1155
|
+
},
|
|
1156
|
+
parameters: {
|
|
1157
|
+
targetUserId: zod_1.z.number().int(),
|
|
1158
|
+
},
|
|
1159
|
+
body: Patch_FriendshipRequestModel,
|
|
1160
|
+
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
1161
|
+
errors: [
|
|
1162
|
+
{
|
|
1163
|
+
status: 400,
|
|
1164
|
+
description: `1: The target user is invalid or does not exist.
|
|
1165
|
+
5: The target user is already a friend.
|
|
1166
|
+
6: Invalid parameters.
|
|
1167
|
+
7: The user cannot be friends with itself.
|
|
1168
|
+
10: The friend request does not exist.
|
|
1169
|
+
13: The users are not in the same game.
|
|
1170
|
+
31: User with max friends sent friend request.
|
|
1171
|
+
35: Invalid nickname.`,
|
|
1172
|
+
},
|
|
1173
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1174
|
+
{
|
|
1175
|
+
status: 403,
|
|
1176
|
+
description: `0: Token Validation Failed
|
|
1177
|
+
2: The user is banned from performing operation.
|
|
1178
|
+
3: The user is blocked from performing this action.
|
|
1179
|
+
14: The user has not passed the captcha.`,
|
|
1180
|
+
},
|
|
1181
|
+
{ status: 429, description: `9: The flood limit has been exceeded.` },
|
|
1182
|
+
],
|
|
1183
|
+
});
|
|
1184
|
+
exports.postUsersTargetuseridUnfriend = (0, __1.endpoint)({
|
|
1185
|
+
method: 'POST',
|
|
1186
|
+
path: '/v1/users/:targetUserId/unfriend',
|
|
1187
|
+
baseUrl: 'https://friends.roblox.com',
|
|
1188
|
+
requestFormat: 'json',
|
|
1189
|
+
serializationMethod: {
|
|
1190
|
+
targetUserId: { style: 'simple' },
|
|
1191
|
+
},
|
|
1192
|
+
parameters: {
|
|
1193
|
+
targetUserId: zod_1.z.number().int(),
|
|
1194
|
+
},
|
|
1195
|
+
response: zod_1.z.object({}),
|
|
1196
|
+
errors: [
|
|
1197
|
+
{ status: 400, description: `1: The target user is invalid or does not exist.` },
|
|
1198
|
+
{ status: 401, description: `0: Authorization has been denied for this request.` },
|
|
1199
|
+
{ status: 403, description: `0: Token Validation Failed` },
|
|
1200
|
+
],
|
|
1201
|
+
});
|