rozod 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/endpoints/accountinformationv1.d.ts +551 -0
- package/lib/endpoints/accountinformationv1.js +652 -0
- package/lib/endpoints/accountsettingsv1.d.ts +548 -0
- package/lib/endpoints/accountsettingsv1.js +712 -0
- package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
- package/lib/endpoints/assetdeliveryv1.js +268 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
- package/lib/endpoints/assetdeliveryv2.js +271 -0
- package/lib/endpoints/authv1.d.ts +1328 -0
- package/lib/endpoints/authv1.js +1168 -0
- package/lib/endpoints/authv2.d.ts +1239 -0
- package/lib/endpoints/authv2.js +1057 -0
- package/lib/endpoints/authv3.d.ts +35 -0
- package/lib/endpoints/authv3.js +41 -0
- package/lib/endpoints/avatarv1.d.ts +1841 -0
- package/lib/endpoints/avatarv1.js +726 -0
- package/lib/endpoints/avatarv2.d.ts +1077 -0
- package/lib/endpoints/avatarv2.js +316 -0
- package/lib/endpoints/avatarv3.d.ts +656 -0
- package/lib/endpoints/avatarv3.js +219 -0
- package/lib/endpoints/badgesv1.d.ts +641 -0
- package/lib/endpoints/badgesv1.js +345 -0
- package/lib/endpoints/catalogv1.d.ts +1715 -0
- package/lib/endpoints/catalogv1.js +792 -0
- package/lib/endpoints/chatv2.d.ts +2179 -0
- package/lib/endpoints/chatv2.js +721 -0
- package/lib/endpoints/developv1.d.ts +2097 -0
- package/lib/endpoints/developv1.js +1537 -0
- package/lib/endpoints/developv2.d.ts +619 -0
- package/lib/endpoints/developv2.js +316 -0
- package/lib/endpoints/economyv1.d.ts +20 -0
- package/lib/endpoints/economyv1.js +28 -0
- package/lib/endpoints/friendsv1.d.ts +1093 -0
- package/lib/endpoints/friendsv1.js +818 -0
- package/lib/endpoints/gamesv1.d.ts +2749 -0
- package/lib/endpoints/gamesv1.js +1294 -0
- package/lib/endpoints/gamesv2.d.ts +582 -0
- package/lib/endpoints/gamesv2.js +258 -0
- package/lib/endpoints/groupsv1.d.ts +5528 -0
- package/lib/endpoints/groupsv1.js +2434 -0
- package/lib/endpoints/groupsv2.d.ts +530 -0
- package/lib/endpoints/groupsv2.js +201 -0
- package/lib/endpoints/inventoryv1.d.ts +436 -0
- package/lib/endpoints/inventoryv1.js +434 -0
- package/lib/endpoints/inventoryv2.d.ts +256 -0
- package/lib/endpoints/inventoryv2.js +241 -0
- package/lib/endpoints/presencev1.d.ts +134 -0
- package/lib/endpoints/presencev1.js +93 -0
- package/lib/endpoints/privatemessagesv1.d.ts +620 -0
- package/lib/endpoints/privatemessagesv1.js +338 -0
- package/lib/endpoints/thumbnailsv1.d.ts +897 -0
- package/lib/endpoints/thumbnailsv1.js +560 -0
- package/lib/endpoints/tradesv1.d.ts +473 -0
- package/lib/endpoints/tradesv1.js +403 -0
- package/lib/endpoints/translationsv1.d.ts +80 -0
- package/lib/endpoints/translationsv1.js +122 -0
- package/lib/endpoints/usersv1.d.ts +391 -0
- package/lib/endpoints/usersv1.js +344 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +293 -0
- package/package.json +39 -0
- package/readme.md +99 -0
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getV1usersUserIdfriendsstatuses = exports.getV1usersUserIdfriendsonline = exports.getV1usersUserIdfriendsinactive = exports.getV1usersUserIdfriendscount = exports.getV1usersUserIdfriends = exports.postV1usersTargetUserIdunfriend = exports.postV1usersTargetUserIdunfollow = exports.postV1usersTargetUserIdrequestFriendship = exports.postV1usersTargetUserIdfollowingsrecount = exports.getV1usersTargetUserIdfollowingscount = exports.getV1usersTargetUserIdfollowings = exports.getV1usersTargetUserIdfollowerscount = exports.getV1usersTargetUserIdfollowers = exports.postV1usersTargetUserIdfollow = exports.postV1usersSenderUserIdacceptFriendRequestWithToken = exports.postV1usersRequesterUserIddeclineFriendRequest = exports.postV1usersRequesterUserIdacceptFriendRequest = exports.postV1userfriendRequestsdeclineAll = exports.getV1userfriendRequestscount = exports.postV1userfollowingExists = exports.getV1recommendedUsers = exports.getV1myfriendsrequests = exports.getV1myfriendscount = exports.getV1metadata = exports.postV1contactsTargetContactIdrequestFriendship = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
isFriendsFilterBarEnabled: zod_1.z.boolean(),
|
|
8
|
+
isFriendsPageSortExperimentEnabled: zod_1.z.boolean(),
|
|
9
|
+
isFriendsUserDataStoreCacheEnabled: zod_1.z.boolean(),
|
|
10
|
+
frequentFriendSortRollout: zod_1.z.number().int(),
|
|
11
|
+
userName: zod_1.z.string(),
|
|
12
|
+
displayName: zod_1.z.string(),
|
|
13
|
+
})
|
|
14
|
+
.partial();
|
|
15
|
+
var Roblox_Friends_Api_FriendsCountResponse = zod_1.z.object({ count: zod_1.z.number().int() }).partial();
|
|
16
|
+
var Roblox_Friends_Api_FriendRequest = zod_1.z
|
|
17
|
+
.object({
|
|
18
|
+
sentAt: zod_1.z.string().datetime(),
|
|
19
|
+
senderId: zod_1.z.number().int(),
|
|
20
|
+
sourceUniverseId: zod_1.z.number().int(),
|
|
21
|
+
originSourceType: zod_1.z.union([
|
|
22
|
+
zod_1.z.literal(0),
|
|
23
|
+
zod_1.z.literal(1),
|
|
24
|
+
zod_1.z.literal(2),
|
|
25
|
+
zod_1.z.literal(3),
|
|
26
|
+
zod_1.z.literal(4),
|
|
27
|
+
zod_1.z.literal(5),
|
|
28
|
+
zod_1.z.literal(6),
|
|
29
|
+
zod_1.z.literal(7),
|
|
30
|
+
zod_1.z.literal(8),
|
|
31
|
+
zod_1.z.literal(9),
|
|
32
|
+
]),
|
|
33
|
+
contactName: zod_1.z.string(),
|
|
34
|
+
})
|
|
35
|
+
.partial();
|
|
36
|
+
var Roblox_Friends_Api_FriendRequestResponse = zod_1.z
|
|
37
|
+
.object({
|
|
38
|
+
friendRequest: Roblox_Friends_Api_FriendRequest,
|
|
39
|
+
mutualFriendsList: zod_1.z.array(zod_1.z.string()),
|
|
40
|
+
hasVerifiedBadge: zod_1.z.boolean(),
|
|
41
|
+
description: zod_1.z.string(),
|
|
42
|
+
created: zod_1.z.string().datetime(),
|
|
43
|
+
isBanned: zod_1.z.boolean(),
|
|
44
|
+
externalAppDisplayName: zod_1.z.string(),
|
|
45
|
+
id: zod_1.z.number().int(),
|
|
46
|
+
name: zod_1.z.string(),
|
|
47
|
+
displayName: zod_1.z.string(),
|
|
48
|
+
})
|
|
49
|
+
.partial();
|
|
50
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestResponse_ = zod_1.z
|
|
51
|
+
.object({
|
|
52
|
+
previousPageCursor: zod_1.z.string(),
|
|
53
|
+
nextPageCursor: zod_1.z.string(),
|
|
54
|
+
data: zod_1.z.array(Roblox_Friends_Api_FriendRequestResponse),
|
|
55
|
+
})
|
|
56
|
+
.partial();
|
|
57
|
+
var Roblox_Friends_Api_Models_Response_UserRecommendation = zod_1.z
|
|
58
|
+
.object({
|
|
59
|
+
userId: zod_1.z.number().int(),
|
|
60
|
+
userName: zod_1.z.string(),
|
|
61
|
+
userProfilePageUrl: zod_1.z.string(),
|
|
62
|
+
userPresenceType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
63
|
+
})
|
|
64
|
+
.partial();
|
|
65
|
+
var Roblox_Friends_Api_Models_Response_UserRecommendationsResponse = zod_1.z
|
|
66
|
+
.object({
|
|
67
|
+
recommendedUsers: zod_1.z.array(Roblox_Friends_Api_Models_Response_UserRecommendation),
|
|
68
|
+
})
|
|
69
|
+
.partial();
|
|
70
|
+
var Roblox_Friends_Api_PendingFriendRequestCountModel = zod_1.z.object({ count: zod_1.z.number().int() }).partial();
|
|
71
|
+
var Roblox_Friends_Api_Models_Response_UserResponse = zod_1.z
|
|
72
|
+
.object({
|
|
73
|
+
isOnline: zod_1.z.boolean(),
|
|
74
|
+
presenceType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
75
|
+
isDeleted: zod_1.z.boolean(),
|
|
76
|
+
friendFrequentScore: zod_1.z.number().int(),
|
|
77
|
+
friendFrequentRank: zod_1.z.number().int(),
|
|
78
|
+
hasVerifiedBadge: zod_1.z.boolean(),
|
|
79
|
+
description: zod_1.z.string(),
|
|
80
|
+
created: zod_1.z.string().datetime(),
|
|
81
|
+
isBanned: zod_1.z.boolean(),
|
|
82
|
+
externalAppDisplayName: zod_1.z.string(),
|
|
83
|
+
id: zod_1.z.number().int(),
|
|
84
|
+
name: zod_1.z.string(),
|
|
85
|
+
displayName: zod_1.z.string(),
|
|
86
|
+
})
|
|
87
|
+
.partial();
|
|
88
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_Models_Response_UserResponse_ = zod_1.z
|
|
89
|
+
.object({
|
|
90
|
+
previousPageCursor: zod_1.z.string(),
|
|
91
|
+
nextPageCursor: zod_1.z.string(),
|
|
92
|
+
data: zod_1.z.array(Roblox_Friends_Api_Models_Response_UserResponse),
|
|
93
|
+
})
|
|
94
|
+
.partial();
|
|
95
|
+
var Roblox_Friends_Api_FollowCountResponse = zod_1.z.object({ count: zod_1.z.number().int() }).partial();
|
|
96
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserResponse_ = zod_1.z
|
|
97
|
+
.object({ data: zod_1.z.array(Roblox_Friends_Api_Models_Response_UserResponse) })
|
|
98
|
+
.partial();
|
|
99
|
+
var Roblox_Friends_Api_Models_Response_UserPresenceResponseModel = zod_1.z
|
|
100
|
+
.object({
|
|
101
|
+
UserPresenceType: zod_1.z.string(),
|
|
102
|
+
UserLocationType: zod_1.z.string(),
|
|
103
|
+
lastLocation: zod_1.z.string(),
|
|
104
|
+
placeId: zod_1.z.number().int(),
|
|
105
|
+
rootPlaceId: zod_1.z.number().int(),
|
|
106
|
+
gameInstanceId: zod_1.z.string().uuid(),
|
|
107
|
+
universeId: zod_1.z.number().int(),
|
|
108
|
+
lastOnline: zod_1.z.string().datetime(),
|
|
109
|
+
})
|
|
110
|
+
.partial();
|
|
111
|
+
var Roblox_Friends_Api_Models_Response_UserPresenceResponse = zod_1.z
|
|
112
|
+
.object({
|
|
113
|
+
userPresence: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
|
|
114
|
+
id: zod_1.z.number().int(),
|
|
115
|
+
name: zod_1.z.string(),
|
|
116
|
+
displayName: zod_1.z.string(),
|
|
117
|
+
})
|
|
118
|
+
.partial();
|
|
119
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserPresenceResponse_ = zod_1.z
|
|
120
|
+
.object({
|
|
121
|
+
data: zod_1.z.array(Roblox_Friends_Api_Models_Response_UserPresenceResponse),
|
|
122
|
+
})
|
|
123
|
+
.partial();
|
|
124
|
+
var Roblox_Friends_Api_FriendStatusResponse = zod_1.z
|
|
125
|
+
.object({
|
|
126
|
+
id: zod_1.z.number().int(),
|
|
127
|
+
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)]),
|
|
128
|
+
})
|
|
129
|
+
.partial();
|
|
130
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ = zod_1.z
|
|
131
|
+
.object({ data: zod_1.z.array(Roblox_Friends_Api_FriendStatusResponse) })
|
|
132
|
+
.partial();
|
|
133
|
+
var Roblox_Friends_Api_CaptchaStatusResponseModel = zod_1.z
|
|
134
|
+
.object({ success: zod_1.z.boolean(), isCaptchaRequired: zod_1.z.boolean() })
|
|
135
|
+
.partial();
|
|
136
|
+
var Roblox_Friends_Api_FollowingExistsRequestModel = zod_1.z.object({ targetUserIds: zod_1.z.array(zod_1.z.number()) }).partial();
|
|
137
|
+
var Roblox_Friends_Api_Models_Response_FollowingExistsResponse = zod_1.z
|
|
138
|
+
.object({
|
|
139
|
+
isFollowing: zod_1.z.boolean(),
|
|
140
|
+
isFollowed: zod_1.z.boolean(),
|
|
141
|
+
userId: zod_1.z.number().int(),
|
|
142
|
+
})
|
|
143
|
+
.partial();
|
|
144
|
+
var Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel = zod_1.z
|
|
145
|
+
.object({
|
|
146
|
+
followings: zod_1.z.array(Roblox_Friends_Api_Models_Response_FollowingExistsResponse),
|
|
147
|
+
})
|
|
148
|
+
.partial();
|
|
149
|
+
var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
|
|
150
|
+
var Roblox_Friends_Api_Models_Request_FriendingTokenRequestModel = zod_1.z.object({ friendingToken: zod_1.z.string() }).partial();
|
|
151
|
+
var Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = zod_1.z
|
|
152
|
+
.object({
|
|
153
|
+
captchaId: zod_1.z.string(),
|
|
154
|
+
captchaToken: zod_1.z.string(),
|
|
155
|
+
captchaProvider: zod_1.z.string(),
|
|
156
|
+
challengeId: zod_1.z.string(),
|
|
157
|
+
})
|
|
158
|
+
.partial();
|
|
159
|
+
var Roblox_Friends_Api_RecountResponse = zod_1.z
|
|
160
|
+
.object({
|
|
161
|
+
existingCount: zod_1.z.number().int(),
|
|
162
|
+
computedCount: zod_1.z.number().int(),
|
|
163
|
+
updated: zod_1.z.boolean(),
|
|
164
|
+
})
|
|
165
|
+
.partial();
|
|
166
|
+
var Roblox_Friends_Api_FriendshipRequestModel = zod_1.z
|
|
167
|
+
.object({
|
|
168
|
+
friendshipOriginSourceType: zod_1.z.union([
|
|
169
|
+
zod_1.z.literal(0),
|
|
170
|
+
zod_1.z.literal(1),
|
|
171
|
+
zod_1.z.literal(2),
|
|
172
|
+
zod_1.z.literal(3),
|
|
173
|
+
zod_1.z.literal(4),
|
|
174
|
+
zod_1.z.literal(5),
|
|
175
|
+
zod_1.z.literal(6),
|
|
176
|
+
zod_1.z.literal(7),
|
|
177
|
+
zod_1.z.literal(8),
|
|
178
|
+
zod_1.z.literal(9),
|
|
179
|
+
]),
|
|
180
|
+
})
|
|
181
|
+
.partial();
|
|
182
|
+
var schemas = {
|
|
183
|
+
Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse: Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse,
|
|
184
|
+
Roblox_Friends_Api_FriendsCountResponse: Roblox_Friends_Api_FriendsCountResponse,
|
|
185
|
+
Roblox_Friends_Api_FriendRequest: Roblox_Friends_Api_FriendRequest,
|
|
186
|
+
Roblox_Friends_Api_FriendRequestResponse: Roblox_Friends_Api_FriendRequestResponse,
|
|
187
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestResponse_,
|
|
188
|
+
Roblox_Friends_Api_Models_Response_UserRecommendation: Roblox_Friends_Api_Models_Response_UserRecommendation,
|
|
189
|
+
Roblox_Friends_Api_Models_Response_UserRecommendationsResponse: Roblox_Friends_Api_Models_Response_UserRecommendationsResponse,
|
|
190
|
+
Roblox_Friends_Api_PendingFriendRequestCountModel: Roblox_Friends_Api_PendingFriendRequestCountModel,
|
|
191
|
+
Roblox_Friends_Api_Models_Response_UserResponse: Roblox_Friends_Api_Models_Response_UserResponse,
|
|
192
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_Models_Response_UserResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
193
|
+
Roblox_Friends_Api_FollowCountResponse: Roblox_Friends_Api_FollowCountResponse,
|
|
194
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
195
|
+
Roblox_Friends_Api_Models_Response_UserPresenceResponseModel: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
|
|
196
|
+
Roblox_Friends_Api_Models_Response_UserPresenceResponse: Roblox_Friends_Api_Models_Response_UserPresenceResponse,
|
|
197
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserPresenceResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserPresenceResponse_,
|
|
198
|
+
Roblox_Friends_Api_FriendStatusResponse: Roblox_Friends_Api_FriendStatusResponse,
|
|
199
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_,
|
|
200
|
+
Roblox_Friends_Api_CaptchaStatusResponseModel: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
201
|
+
Roblox_Friends_Api_FollowingExistsRequestModel: Roblox_Friends_Api_FollowingExistsRequestModel,
|
|
202
|
+
Roblox_Friends_Api_Models_Response_FollowingExistsResponse: Roblox_Friends_Api_Models_Response_FollowingExistsResponse,
|
|
203
|
+
Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel: Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel,
|
|
204
|
+
Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
|
|
205
|
+
Roblox_Friends_Api_Models_Request_FriendingTokenRequestModel: Roblox_Friends_Api_Models_Request_FriendingTokenRequestModel,
|
|
206
|
+
Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest: Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest,
|
|
207
|
+
Roblox_Friends_Api_RecountResponse: Roblox_Friends_Api_RecountResponse,
|
|
208
|
+
Roblox_Friends_Api_FriendshipRequestModel: Roblox_Friends_Api_FriendshipRequestModel,
|
|
209
|
+
};
|
|
210
|
+
exports.postV1contactsTargetContactIdrequestFriendship = {
|
|
211
|
+
method: 'post',
|
|
212
|
+
path: '/v1/contacts/:targetContactId/request-friendship',
|
|
213
|
+
baseUrl: 'https://friends.roblox.com',
|
|
214
|
+
requestFormat: 'json',
|
|
215
|
+
parameters: {
|
|
216
|
+
targetContactId: zod_1.z.string(),
|
|
217
|
+
},
|
|
218
|
+
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
219
|
+
errors: [
|
|
220
|
+
{
|
|
221
|
+
status: 400,
|
|
222
|
+
description: "1: The target user is invalid or does not exist.\n5: The target user is already a friend.\n6: Invalid parameters.\n7: The user cannot be friends with itself.\n31: User with max friends sent friend request.",
|
|
223
|
+
schema: zod_1.z.void(),
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
status: 401,
|
|
227
|
+
description: "0: Authorization has been denied for this request.",
|
|
228
|
+
schema: zod_1.z.void(),
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
status: 403,
|
|
232
|
+
description: "0: Token Validation Failed\n2: The user is banned from performing operation.\n3: The user is blocked from performing this action.\n14: The user has not passed the captcha.",
|
|
233
|
+
schema: zod_1.z.void(),
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
status: 429,
|
|
237
|
+
description: "9: The flood limit has been exceeded.",
|
|
238
|
+
schema: zod_1.z.void(),
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
};
|
|
242
|
+
exports.getV1metadata = {
|
|
243
|
+
method: 'get',
|
|
244
|
+
path: '/v1/metadata',
|
|
245
|
+
baseUrl: 'https://friends.roblox.com',
|
|
246
|
+
requestFormat: 'json',
|
|
247
|
+
parameters: {
|
|
248
|
+
targetUserId: zod_1.z.number().int().optional(),
|
|
249
|
+
},
|
|
250
|
+
response: Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse,
|
|
251
|
+
errors: [],
|
|
252
|
+
};
|
|
253
|
+
exports.getV1myfriendscount = {
|
|
254
|
+
method: 'get',
|
|
255
|
+
path: '/v1/my/friends/count',
|
|
256
|
+
baseUrl: 'https://friends.roblox.com',
|
|
257
|
+
requestFormat: 'json',
|
|
258
|
+
response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
|
|
259
|
+
errors: [
|
|
260
|
+
{
|
|
261
|
+
status: 401,
|
|
262
|
+
description: "0: Authorization has been denied for this request.",
|
|
263
|
+
schema: zod_1.z.void(),
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
};
|
|
267
|
+
exports.getV1myfriendsrequests = {
|
|
268
|
+
method: 'get',
|
|
269
|
+
path: '/v1/my/friends/requests',
|
|
270
|
+
baseUrl: 'https://friends.roblox.com',
|
|
271
|
+
requestFormat: 'json',
|
|
272
|
+
parameters: {
|
|
273
|
+
limit: zod_1.z
|
|
274
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
275
|
+
.optional()
|
|
276
|
+
.default(10),
|
|
277
|
+
cursor: zod_1.z.string().optional(),
|
|
278
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Desc'),
|
|
279
|
+
},
|
|
280
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestResponse_,
|
|
281
|
+
errors: [
|
|
282
|
+
{
|
|
283
|
+
status: 400,
|
|
284
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.",
|
|
285
|
+
schema: zod_1.z.void(),
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
status: 401,
|
|
289
|
+
description: "0: Authorization has been denied for this request.",
|
|
290
|
+
schema: zod_1.z.void(),
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
status: 403,
|
|
294
|
+
description: "2: The user is banned from performing operation.\n3: The user is blocked from performing this action.",
|
|
295
|
+
schema: zod_1.z.void(),
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
status: 429,
|
|
299
|
+
description: "9: The flood limit has been exceeded.",
|
|
300
|
+
schema: zod_1.z.void(),
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
};
|
|
304
|
+
exports.getV1recommendedUsers = {
|
|
305
|
+
method: 'get',
|
|
306
|
+
path: '/v1/recommended-users',
|
|
307
|
+
baseUrl: 'https://friends.roblox.com',
|
|
308
|
+
requestFormat: 'json',
|
|
309
|
+
response: Roblox_Friends_Api_Models_Response_UserRecommendationsResponse,
|
|
310
|
+
errors: [
|
|
311
|
+
{
|
|
312
|
+
status: 401,
|
|
313
|
+
description: "0: Authorization has been denied for this request.",
|
|
314
|
+
schema: zod_1.z.void(),
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
};
|
|
318
|
+
exports.postV1userfollowingExists = {
|
|
319
|
+
method: 'post',
|
|
320
|
+
path: '/v1/user/following-exists',
|
|
321
|
+
baseUrl: 'https://friends.roblox.com',
|
|
322
|
+
requestFormat: 'json',
|
|
323
|
+
parameters: {
|
|
324
|
+
body: Roblox_Friends_Api_FollowingExistsRequestModel,
|
|
325
|
+
},
|
|
326
|
+
response: Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel,
|
|
327
|
+
errors: [
|
|
328
|
+
{
|
|
329
|
+
status: 400,
|
|
330
|
+
description: "0: An invalid userId was passed in.",
|
|
331
|
+
schema: zod_1.z.void(),
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
status: 401,
|
|
335
|
+
description: "0: Authorization has been denied for this request.",
|
|
336
|
+
schema: zod_1.z.void(),
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
status: 403,
|
|
340
|
+
description: "0: Token Validation Failed",
|
|
341
|
+
schema: zod_1.z.void(),
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
status: 503,
|
|
345
|
+
description: "1: Followers are disabled at this time.",
|
|
346
|
+
schema: zod_1.z.void(),
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
};
|
|
350
|
+
exports.getV1userfriendRequestscount = {
|
|
351
|
+
method: 'get',
|
|
352
|
+
path: '/v1/user/friend-requests/count',
|
|
353
|
+
baseUrl: 'https://friends.roblox.com',
|
|
354
|
+
requestFormat: 'json',
|
|
355
|
+
response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
|
|
356
|
+
errors: [
|
|
357
|
+
{
|
|
358
|
+
status: 401,
|
|
359
|
+
description: "0: Authorization has been denied for this request.",
|
|
360
|
+
schema: zod_1.z.void(),
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
};
|
|
364
|
+
exports.postV1userfriendRequestsdeclineAll = {
|
|
365
|
+
method: 'post',
|
|
366
|
+
path: '/v1/user/friend-requests/decline-all',
|
|
367
|
+
baseUrl: 'https://friends.roblox.com',
|
|
368
|
+
requestFormat: 'json',
|
|
369
|
+
response: zod_1.z.object({}).partial(),
|
|
370
|
+
errors: [
|
|
371
|
+
{
|
|
372
|
+
status: 401,
|
|
373
|
+
description: "0: Authorization has been denied for this request.",
|
|
374
|
+
schema: zod_1.z.void(),
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
status: 403,
|
|
378
|
+
description: "0: Token Validation Failed",
|
|
379
|
+
schema: zod_1.z.void(),
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
};
|
|
383
|
+
exports.postV1usersRequesterUserIdacceptFriendRequest = {
|
|
384
|
+
method: 'post',
|
|
385
|
+
path: '/v1/users/:requesterUserId/accept-friend-request',
|
|
386
|
+
baseUrl: 'https://friends.roblox.com',
|
|
387
|
+
requestFormat: 'json',
|
|
388
|
+
parameters: {
|
|
389
|
+
requesterUserId: zod_1.z.number().int(),
|
|
390
|
+
},
|
|
391
|
+
response: zod_1.z.object({}).partial(),
|
|
392
|
+
errors: [
|
|
393
|
+
{
|
|
394
|
+
status: 400,
|
|
395
|
+
description: "1: The target user is invalid or does not exist.\n10: The friend request does not exist.\n11: The current users friends limit has been exceeded.\n12: The target users friends limit has been exceeded.",
|
|
396
|
+
schema: zod_1.z.void(),
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
status: 401,
|
|
400
|
+
description: "0: Authorization has been denied for this request.",
|
|
401
|
+
schema: zod_1.z.void(),
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
status: 403,
|
|
405
|
+
description: "0: Token Validation Failed\n3: The user is blocked from performing this action.",
|
|
406
|
+
schema: zod_1.z.void(),
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
};
|
|
410
|
+
exports.postV1usersRequesterUserIddeclineFriendRequest = {
|
|
411
|
+
method: 'post',
|
|
412
|
+
path: '/v1/users/:requesterUserId/decline-friend-request',
|
|
413
|
+
baseUrl: 'https://friends.roblox.com',
|
|
414
|
+
requestFormat: 'json',
|
|
415
|
+
parameters: {
|
|
416
|
+
requesterUserId: zod_1.z.number().int(),
|
|
417
|
+
},
|
|
418
|
+
response: zod_1.z.object({}).partial(),
|
|
419
|
+
errors: [
|
|
420
|
+
{
|
|
421
|
+
status: 400,
|
|
422
|
+
description: "1: The target user is invalid or does not exist.\n10: The friend request does not exist.",
|
|
423
|
+
schema: zod_1.z.void(),
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
status: 401,
|
|
427
|
+
description: "0: Authorization has been denied for this request.",
|
|
428
|
+
schema: zod_1.z.void(),
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
status: 403,
|
|
432
|
+
description: "0: Token Validation Failed",
|
|
433
|
+
schema: zod_1.z.void(),
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
};
|
|
437
|
+
exports.postV1usersSenderUserIdacceptFriendRequestWithToken = {
|
|
438
|
+
method: 'post',
|
|
439
|
+
path: '/v1/users/:senderUserId/accept-friend-request-with-token',
|
|
440
|
+
baseUrl: 'https://friends.roblox.com',
|
|
441
|
+
requestFormat: 'json',
|
|
442
|
+
parameters: {
|
|
443
|
+
body: zod_1.z.object({ friendingToken: zod_1.z.string() }).partial(),
|
|
444
|
+
senderUserId: zod_1.z.number().int(),
|
|
445
|
+
},
|
|
446
|
+
response: zod_1.z.object({}).partial(),
|
|
447
|
+
errors: [
|
|
448
|
+
{
|
|
449
|
+
status: 400,
|
|
450
|
+
description: "1: The target user is invalid or does not exist.\n3: The user is blocked from performing this action.\n5: The target user is already a friend.\n6: Invalid parameters.\n7: The user cannot be friends with itself.\n11: The current users friends limit has been exceeded.\n12: The target users friends limit has been exceeded.",
|
|
451
|
+
schema: zod_1.z.void(),
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
status: 401,
|
|
455
|
+
description: "0: Authorization has been denied for this request.",
|
|
456
|
+
schema: zod_1.z.void(),
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
status: 403,
|
|
460
|
+
description: "0: Token Validation Failed",
|
|
461
|
+
schema: zod_1.z.void(),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
};
|
|
465
|
+
exports.postV1usersTargetUserIdfollow = {
|
|
466
|
+
method: 'post',
|
|
467
|
+
path: '/v1/users/:targetUserId/follow',
|
|
468
|
+
baseUrl: 'https://friends.roblox.com',
|
|
469
|
+
requestFormat: 'json',
|
|
470
|
+
parameters: {
|
|
471
|
+
body: Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest,
|
|
472
|
+
targetUserId: zod_1.z.number().int(),
|
|
473
|
+
},
|
|
474
|
+
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
475
|
+
errors: [
|
|
476
|
+
{
|
|
477
|
+
status: 400,
|
|
478
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.\n8: The user cannot follow itself.",
|
|
479
|
+
schema: zod_1.z.void(),
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
status: 401,
|
|
483
|
+
description: "0: Authorization has been denied for this request.",
|
|
484
|
+
schema: zod_1.z.void(),
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
status: 403,
|
|
488
|
+
description: "0: Token Validation Failed\n2: The user is banned from performing operation.\n3: The user is blocked from performing this action.\n14: The user has not passed the captcha.",
|
|
489
|
+
schema: zod_1.z.void(),
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
status: 429,
|
|
493
|
+
description: "9: The flood limit has been exceeded.",
|
|
494
|
+
schema: zod_1.z.void(),
|
|
495
|
+
},
|
|
496
|
+
],
|
|
497
|
+
};
|
|
498
|
+
exports.getV1usersTargetUserIdfollowers = {
|
|
499
|
+
method: 'get',
|
|
500
|
+
path: '/v1/users/:targetUserId/followers',
|
|
501
|
+
baseUrl: 'https://friends.roblox.com',
|
|
502
|
+
requestFormat: 'json',
|
|
503
|
+
parameters: {
|
|
504
|
+
targetUserId: zod_1.z.number().int(),
|
|
505
|
+
limit: zod_1.z
|
|
506
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
507
|
+
.optional()
|
|
508
|
+
.default(10),
|
|
509
|
+
cursor: zod_1.z.string().optional(),
|
|
510
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
511
|
+
},
|
|
512
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
513
|
+
errors: [
|
|
514
|
+
{
|
|
515
|
+
status: 400,
|
|
516
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.",
|
|
517
|
+
schema: zod_1.z.void(),
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
status: 403,
|
|
521
|
+
description: "2: The user is banned from performing operation.\n3: The user is blocked from performing this action.",
|
|
522
|
+
schema: zod_1.z.void(),
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
status: 429,
|
|
526
|
+
description: "9: The flood limit has been exceeded.",
|
|
527
|
+
schema: zod_1.z.void(),
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
};
|
|
531
|
+
exports.getV1usersTargetUserIdfollowerscount = {
|
|
532
|
+
method: 'get',
|
|
533
|
+
path: '/v1/users/:targetUserId/followers/count',
|
|
534
|
+
baseUrl: 'https://friends.roblox.com',
|
|
535
|
+
requestFormat: 'json',
|
|
536
|
+
parameters: {
|
|
537
|
+
targetUserId: zod_1.z.number().int(),
|
|
538
|
+
},
|
|
539
|
+
response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
|
|
540
|
+
errors: [
|
|
541
|
+
{
|
|
542
|
+
status: 400,
|
|
543
|
+
description: "1: The target user is invalid or does not exist.",
|
|
544
|
+
schema: zod_1.z.void(),
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
};
|
|
548
|
+
exports.getV1usersTargetUserIdfollowings = {
|
|
549
|
+
method: 'get',
|
|
550
|
+
path: '/v1/users/:targetUserId/followings',
|
|
551
|
+
baseUrl: 'https://friends.roblox.com',
|
|
552
|
+
requestFormat: 'json',
|
|
553
|
+
parameters: {
|
|
554
|
+
targetUserId: zod_1.z.number().int(),
|
|
555
|
+
limit: zod_1.z
|
|
556
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
557
|
+
.optional()
|
|
558
|
+
.default(10),
|
|
559
|
+
cursor: zod_1.z.string().optional(),
|
|
560
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
561
|
+
},
|
|
562
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
563
|
+
errors: [
|
|
564
|
+
{
|
|
565
|
+
status: 400,
|
|
566
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.",
|
|
567
|
+
schema: zod_1.z.void(),
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
status: 403,
|
|
571
|
+
description: "2: The user is banned from performing operation.\n3: The user is blocked from performing this action.",
|
|
572
|
+
schema: zod_1.z.void(),
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
status: 429,
|
|
576
|
+
description: "9: The flood limit has been exceeded.",
|
|
577
|
+
schema: zod_1.z.void(),
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
};
|
|
581
|
+
exports.getV1usersTargetUserIdfollowingscount = {
|
|
582
|
+
method: 'get',
|
|
583
|
+
path: '/v1/users/:targetUserId/followings/count',
|
|
584
|
+
baseUrl: 'https://friends.roblox.com',
|
|
585
|
+
requestFormat: 'json',
|
|
586
|
+
parameters: {
|
|
587
|
+
targetUserId: zod_1.z.number().int(),
|
|
588
|
+
},
|
|
589
|
+
response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
|
|
590
|
+
errors: [
|
|
591
|
+
{
|
|
592
|
+
status: 400,
|
|
593
|
+
description: "1: The target user is invalid or does not exist.",
|
|
594
|
+
schema: zod_1.z.void(),
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
};
|
|
598
|
+
exports.postV1usersTargetUserIdfollowingsrecount = {
|
|
599
|
+
method: 'post',
|
|
600
|
+
path: '/v1/users/:targetUserId/followings/recount',
|
|
601
|
+
baseUrl: 'https://friends.roblox.com',
|
|
602
|
+
requestFormat: 'json',
|
|
603
|
+
parameters: {
|
|
604
|
+
targetUserId: zod_1.z.number().int(),
|
|
605
|
+
},
|
|
606
|
+
response: Roblox_Friends_Api_RecountResponse,
|
|
607
|
+
errors: [
|
|
608
|
+
{
|
|
609
|
+
status: 400,
|
|
610
|
+
description: "1: The target user is invalid or does not exist.\n32: Counter over limit.",
|
|
611
|
+
schema: zod_1.z.void(),
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
status: 401,
|
|
615
|
+
description: "0: Authorization has been denied for this request.",
|
|
616
|
+
schema: zod_1.z.void(),
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
status: 403,
|
|
620
|
+
description: "0: Token Validation Failed",
|
|
621
|
+
schema: zod_1.z.void(),
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
status: 429,
|
|
625
|
+
description: "9: The flood limit has been exceeded.",
|
|
626
|
+
schema: zod_1.z.void(),
|
|
627
|
+
},
|
|
628
|
+
],
|
|
629
|
+
};
|
|
630
|
+
exports.postV1usersTargetUserIdrequestFriendship = {
|
|
631
|
+
method: 'post',
|
|
632
|
+
path: '/v1/users/:targetUserId/request-friendship',
|
|
633
|
+
baseUrl: 'https://friends.roblox.com',
|
|
634
|
+
requestFormat: 'json',
|
|
635
|
+
parameters: {
|
|
636
|
+
body: Roblox_Friends_Api_FriendshipRequestModel,
|
|
637
|
+
targetUserId: zod_1.z.number().int(),
|
|
638
|
+
},
|
|
639
|
+
response: Roblox_Friends_Api_CaptchaStatusResponseModel,
|
|
640
|
+
errors: [
|
|
641
|
+
{
|
|
642
|
+
status: 400,
|
|
643
|
+
description: "1: The target user is invalid or does not exist.\n5: The target user is already a friend.\n6: Invalid parameters.\n7: The user cannot be friends with itself.\n10: The friend request does not exist.\n13: The users are not in the same game.\n31: User with max friends sent friend request.",
|
|
644
|
+
schema: zod_1.z.void(),
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
status: 401,
|
|
648
|
+
description: "0: Authorization has been denied for this request.",
|
|
649
|
+
schema: zod_1.z.void(),
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
status: 403,
|
|
653
|
+
description: "0: Token Validation Failed\n2: The user is banned from performing operation.\n3: The user is blocked from performing this action.\n14: The user has not passed the captcha.",
|
|
654
|
+
schema: zod_1.z.void(),
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
status: 429,
|
|
658
|
+
description: "9: The flood limit has been exceeded.",
|
|
659
|
+
schema: zod_1.z.void(),
|
|
660
|
+
},
|
|
661
|
+
],
|
|
662
|
+
};
|
|
663
|
+
exports.postV1usersTargetUserIdunfollow = {
|
|
664
|
+
method: 'post',
|
|
665
|
+
path: '/v1/users/:targetUserId/unfollow',
|
|
666
|
+
baseUrl: 'https://friends.roblox.com',
|
|
667
|
+
requestFormat: 'json',
|
|
668
|
+
parameters: {
|
|
669
|
+
targetUserId: zod_1.z.number().int(),
|
|
670
|
+
},
|
|
671
|
+
response: zod_1.z.object({}).partial(),
|
|
672
|
+
errors: [
|
|
673
|
+
{
|
|
674
|
+
status: 400,
|
|
675
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.\n8: The user cannot follow itself.",
|
|
676
|
+
schema: zod_1.z.void(),
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
status: 401,
|
|
680
|
+
description: "0: Authorization has been denied for this request.",
|
|
681
|
+
schema: zod_1.z.void(),
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
status: 403,
|
|
685
|
+
description: "0: Token Validation Failed\n2: The user is banned from performing operation.\n3: The user is blocked from performing this action.\n14: The user has not passed the captcha.",
|
|
686
|
+
schema: zod_1.z.void(),
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
status: 429,
|
|
690
|
+
description: "9: The flood limit has been exceeded.",
|
|
691
|
+
schema: zod_1.z.void(),
|
|
692
|
+
},
|
|
693
|
+
],
|
|
694
|
+
};
|
|
695
|
+
exports.postV1usersTargetUserIdunfriend = {
|
|
696
|
+
method: 'post',
|
|
697
|
+
path: '/v1/users/:targetUserId/unfriend',
|
|
698
|
+
baseUrl: 'https://friends.roblox.com',
|
|
699
|
+
requestFormat: 'json',
|
|
700
|
+
parameters: {
|
|
701
|
+
targetUserId: zod_1.z.number().int(),
|
|
702
|
+
},
|
|
703
|
+
response: zod_1.z.object({}).partial(),
|
|
704
|
+
errors: [
|
|
705
|
+
{
|
|
706
|
+
status: 400,
|
|
707
|
+
description: "1: The target user is invalid or does not exist.",
|
|
708
|
+
schema: zod_1.z.void(),
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
status: 401,
|
|
712
|
+
description: "0: Authorization has been denied for this request.",
|
|
713
|
+
schema: zod_1.z.void(),
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
status: 403,
|
|
717
|
+
description: "0: Token Validation Failed",
|
|
718
|
+
schema: zod_1.z.void(),
|
|
719
|
+
},
|
|
720
|
+
],
|
|
721
|
+
};
|
|
722
|
+
exports.getV1usersUserIdfriends = {
|
|
723
|
+
method: 'get',
|
|
724
|
+
path: '/v1/users/:userId/friends',
|
|
725
|
+
baseUrl: 'https://friends.roblox.com',
|
|
726
|
+
requestFormat: 'json',
|
|
727
|
+
parameters: {
|
|
728
|
+
userId: zod_1.z.number().int(),
|
|
729
|
+
userSort: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
|
|
730
|
+
},
|
|
731
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
732
|
+
errors: [
|
|
733
|
+
{
|
|
734
|
+
status: 400,
|
|
735
|
+
description: "1: The target user is invalid or does not exist.",
|
|
736
|
+
schema: zod_1.z.void(),
|
|
737
|
+
},
|
|
738
|
+
],
|
|
739
|
+
};
|
|
740
|
+
exports.getV1usersUserIdfriendscount = {
|
|
741
|
+
method: 'get',
|
|
742
|
+
path: '/v1/users/:userId/friends/count',
|
|
743
|
+
baseUrl: 'https://friends.roblox.com',
|
|
744
|
+
requestFormat: 'json',
|
|
745
|
+
parameters: {
|
|
746
|
+
userId: zod_1.z.number().int(),
|
|
747
|
+
},
|
|
748
|
+
response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
|
|
749
|
+
errors: [
|
|
750
|
+
{
|
|
751
|
+
status: 400,
|
|
752
|
+
description: "1: The target user is invalid or does not exist.",
|
|
753
|
+
schema: zod_1.z.void(),
|
|
754
|
+
},
|
|
755
|
+
],
|
|
756
|
+
};
|
|
757
|
+
exports.getV1usersUserIdfriendsinactive = {
|
|
758
|
+
method: 'get',
|
|
759
|
+
path: '/v1/users/:userId/friends/inactive',
|
|
760
|
+
baseUrl: 'https://friends.roblox.com',
|
|
761
|
+
requestFormat: 'json',
|
|
762
|
+
parameters: {
|
|
763
|
+
userId: zod_1.z.number().int(),
|
|
764
|
+
},
|
|
765
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserResponse_,
|
|
766
|
+
errors: [
|
|
767
|
+
{
|
|
768
|
+
status: 400,
|
|
769
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.",
|
|
770
|
+
schema: zod_1.z.void(),
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
status: 401,
|
|
774
|
+
description: "0: Authorization has been denied for this request.",
|
|
775
|
+
schema: zod_1.z.void(),
|
|
776
|
+
},
|
|
777
|
+
],
|
|
778
|
+
};
|
|
779
|
+
exports.getV1usersUserIdfriendsonline = {
|
|
780
|
+
method: 'get',
|
|
781
|
+
path: '/v1/users/:userId/friends/online',
|
|
782
|
+
baseUrl: 'https://friends.roblox.com',
|
|
783
|
+
requestFormat: 'json',
|
|
784
|
+
parameters: {
|
|
785
|
+
userId: zod_1.z.number().int(),
|
|
786
|
+
},
|
|
787
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Response_UserPresenceResponse_,
|
|
788
|
+
errors: [
|
|
789
|
+
{
|
|
790
|
+
status: 400,
|
|
791
|
+
description: "1: The target user is invalid or does not exist.\n6: Invalid parameters.",
|
|
792
|
+
schema: zod_1.z.void(),
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
status: 401,
|
|
796
|
+
description: "0: Authorization has been denied for this request.",
|
|
797
|
+
schema: zod_1.z.void(),
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
};
|
|
801
|
+
exports.getV1usersUserIdfriendsstatuses = {
|
|
802
|
+
method: 'get',
|
|
803
|
+
path: '/v1/users/:userId/friends/statuses',
|
|
804
|
+
baseUrl: 'https://friends.roblox.com',
|
|
805
|
+
requestFormat: 'json',
|
|
806
|
+
parameters: {
|
|
807
|
+
userId: zod_1.z.number().int(),
|
|
808
|
+
userIds: zod_1.z.array(zod_1.z.number()),
|
|
809
|
+
},
|
|
810
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_,
|
|
811
|
+
errors: [
|
|
812
|
+
{
|
|
813
|
+
status: 400,
|
|
814
|
+
description: "1: The target user is invalid or does not exist.\n15: Too many ids.\n16: Invalid ids.",
|
|
815
|
+
schema: zod_1.z.void(),
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
};
|