rozod 6.2.0 → 6.4.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/accountsettingsv1.d.ts +27 -33
- package/lib/endpoints/accountsettingsv1.js +11 -22
- package/lib/endpoints/adconfigurationv2.d.ts +104 -119
- package/lib/endpoints/adconfigurationv2.js +32 -48
- package/lib/endpoints/assetdeliveryv1.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv1.js +25 -24
- package/lib/endpoints/assetdeliveryv2.d.ts +25 -24
- package/lib/endpoints/assetdeliveryv2.js +25 -24
- package/lib/endpoints/authv1.d.ts +132 -84
- package/lib/endpoints/authv1.js +118 -64
- package/lib/endpoints/authv2.d.ts +56 -56
- package/lib/endpoints/authv2.js +57 -50
- package/lib/endpoints/authv3.d.ts +11 -11
- package/lib/endpoints/authv3.js +11 -11
- package/lib/endpoints/avatarv1.d.ts +1 -0
- package/lib/endpoints/avatarv1.js +1 -0
- package/lib/endpoints/avatarv2.d.ts +1 -0
- package/lib/endpoints/avatarv2.js +1 -0
- package/lib/endpoints/avatarv3.d.ts +1 -0
- package/lib/endpoints/avatarv3.js +1 -0
- package/lib/endpoints/badgesv1.d.ts +6 -22
- package/lib/endpoints/badgesv1.js +2 -22
- package/lib/endpoints/catalogv1.d.ts +39 -113
- package/lib/endpoints/catalogv1.js +39 -107
- package/lib/endpoints/catalogv2.d.ts +11 -11
- package/lib/endpoints/catalogv2.js +11 -11
- package/lib/endpoints/clientsettingsv2.d.ts +8 -7
- package/lib/endpoints/clientsettingsv2.js +9 -1
- package/lib/endpoints/developv1.d.ts +31 -31
- package/lib/endpoints/developv1.js +26 -26
- package/lib/endpoints/developv2.d.ts +27 -27
- package/lib/endpoints/developv2.js +22 -22
- package/lib/endpoints/economycreatorstatsv1.d.ts +1 -1
- package/lib/endpoints/economycreatorstatsv1.js +1 -1
- package/lib/endpoints/followingsv2.d.ts +2 -2
- package/lib/endpoints/followingsv2.js +2 -2
- package/lib/endpoints/friendsv1.d.ts +24 -98
- package/lib/endpoints/friendsv1.js +25 -91
- package/lib/endpoints/gamesv1.d.ts +31 -615
- package/lib/endpoints/gamesv1.js +32 -608
- package/lib/endpoints/gamesv2.d.ts +187 -260
- package/lib/endpoints/gamesv2.js +130 -190
- package/lib/endpoints/groupsv1.d.ts +34 -28
- package/lib/endpoints/groupsv1.js +31 -18
- package/lib/endpoints/groupsv2.d.ts +92 -92
- package/lib/endpoints/groupsv2.js +93 -87
- package/lib/endpoints/inventoryv1.d.ts +9 -21
- package/lib/endpoints/inventoryv1.js +4 -4
- package/lib/endpoints/inventoryv2.d.ts +91 -91
- package/lib/endpoints/inventoryv2.js +86 -86
- package/lib/endpoints/itemconfigurationv1.d.ts +1 -1
- package/lib/endpoints/itemconfigurationv1.js +1 -1
- package/lib/endpoints/thumbnailsv1.d.ts +1 -0
- package/lib/endpoints/thumbnailsv1.js +1 -0
- package/lib/endpoints/tradesv1.d.ts +10 -16
- package/lib/endpoints/tradesv1.js +10 -10
- package/lib/endpoints/twostepverificationv1.d.ts +59 -59
- package/lib/endpoints/twostepverificationv1.js +59 -59
- package/lib/endpoints/usersv1.d.ts +1 -1
- package/lib/endpoints/usersv1.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +29 -3
- package/lib/opencloud/v1/asset-permissions.d.ts +7 -2
- package/lib/opencloud/v1/asset-permissions.js +9 -3
- package/lib/opencloud/v1/assets.d.ts +59 -32
- package/lib/opencloud/v1/assets.js +77 -41
- package/lib/opencloud/v1/datastores-ordered.d.ts +50 -14
- package/lib/opencloud/v1/datastores-ordered.js +62 -20
- package/lib/opencloud/v1/datastores.d.ts +99 -42
- package/lib/opencloud/v1/datastores.js +123 -50
- package/lib/opencloud/v1/developer-products.d.ts +29 -11
- package/lib/opencloud/v1/developer-products.js +37 -15
- package/lib/opencloud/v1/game-passes.d.ts +29 -11
- package/lib/opencloud/v1/game-passes.js +37 -15
- package/lib/opencloud/v1/messaging.d.ts +6 -2
- package/lib/opencloud/v1/messaging.js +8 -3
- package/lib/opencloud/v1/open-eval.d.ts +14 -4
- package/lib/opencloud/v1/open-eval.js +18 -6
- package/lib/opencloud/v1/secrets-store.d.ts +46 -26
- package/lib/opencloud/v1/secrets-store.js +56 -31
- package/lib/opencloud/v1/toolbox.d.ts +14 -6
- package/lib/opencloud/v1/toolbox.js +18 -8
- package/lib/opencloud/v1/universes.d.ts +6 -2
- package/lib/opencloud/v1/universes.js +8 -3
- package/lib/opencloud/v2/cloud.d.ts +854 -395
- package/lib/opencloud/v2/cloud.js +967 -395
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequestV2 = zod_1.z.object({
|
|
|
121
121
|
fiatProductChangeType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
122
122
|
});
|
|
123
123
|
const Roblox_Api_Develop_Models_UniverseModerationPolicyStatus = zod_1.z.object({
|
|
124
|
-
region: zod_1.z.
|
|
124
|
+
region: zod_1.z.enum(['Unknown', 'China']),
|
|
125
125
|
status: zod_1.z.string(),
|
|
126
126
|
});
|
|
127
127
|
const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
|
|
@@ -133,29 +133,29 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
|
|
|
133
133
|
id: zod_1.z.number().int(),
|
|
134
134
|
name: zod_1.z.string(),
|
|
135
135
|
description: zod_1.z.string(),
|
|
136
|
-
universeAvatarType: zod_1.z.
|
|
137
|
-
universeAnimationType: zod_1.z.
|
|
138
|
-
universeCollisionType: zod_1.z.
|
|
139
|
-
universeJointPositioningType: zod_1.z.
|
|
136
|
+
universeAvatarType: zod_1.z.enum(['MorphToR6', 'PlayerChoice', 'MorphToR15']),
|
|
137
|
+
universeAnimationType: zod_1.z.enum(['Standard', 'PlayerChoice']),
|
|
138
|
+
universeCollisionType: zod_1.z.enum(['InnerBox', 'OuterBox']),
|
|
139
|
+
universeJointPositioningType: zod_1.z.enum(['Standard', 'ArtistIntent']),
|
|
140
140
|
engineAvatarSettings: zod_1.z.string(),
|
|
141
141
|
isArchived: zod_1.z.boolean(),
|
|
142
142
|
isFriendsOnly: zod_1.z.boolean(),
|
|
143
|
-
genre: zod_1.z.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
143
|
+
genre: zod_1.z.enum([
|
|
144
|
+
'All',
|
|
145
|
+
'Tutorial',
|
|
146
|
+
'Scary',
|
|
147
|
+
'TownAndCity',
|
|
148
|
+
'War',
|
|
149
|
+
'Funny',
|
|
150
|
+
'Fantasy',
|
|
151
|
+
'Adventure',
|
|
152
|
+
'SciFi',
|
|
153
|
+
'Pirate',
|
|
154
|
+
'FPS',
|
|
155
|
+
'RPG',
|
|
156
|
+
'Sports',
|
|
157
|
+
'Ninja',
|
|
158
|
+
'WildWest',
|
|
159
159
|
]),
|
|
160
160
|
playableDevices: zod_1.z.array(zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5)])),
|
|
161
161
|
isForSale: zod_1.z.boolean(),
|
|
@@ -167,7 +167,7 @@ const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = zod_1.z.object({
|
|
|
167
167
|
permissions: Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
|
|
168
168
|
isForSaleInFiat: zod_1.z.boolean(),
|
|
169
169
|
fiatBasePriceId: zod_1.z.string(),
|
|
170
|
-
fiatModerationStatus: zod_1.z.
|
|
170
|
+
fiatModerationStatus: zod_1.z.enum(['Invalid', 'NotModerated', 'Pending', 'Approved', 'Rejected']),
|
|
171
171
|
eligibleForTextChatMigration: zod_1.z.boolean(),
|
|
172
172
|
});
|
|
173
173
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { endpoint } from "..";
|
|
3
3
|
|
|
4
4
|
const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = z.object({
|
|
5
|
-
dataGranularity: z.
|
|
5
|
+
dataGranularity: z.enum(["Hourly", "Daily", "Monthly"]),
|
|
6
6
|
data: z.array(z.array(z.number())),
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ exports.getUniversesUniverseidStats = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = zod_1.z.object({
|
|
7
|
-
dataGranularity: zod_1.z.
|
|
7
|
+
dataGranularity: zod_1.z.enum(['Hourly', 'Daily', 'Monthly']),
|
|
8
8
|
data: zod_1.z.array(zod_1.z.array(zod_1.z.number())),
|
|
9
9
|
});
|
|
10
10
|
/**
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
import { endpoint } from "..";
|
|
3
3
|
|
|
4
4
|
const Roblox_Followings_Api_Models_FollowsByTypeResponse = z.object({
|
|
5
|
-
followerType: z.
|
|
5
|
+
followerType: z.enum(["Invalid", "User"]),
|
|
6
6
|
followerId: z.number().int(),
|
|
7
|
-
sourceType: z.
|
|
7
|
+
sourceType: z.enum(["Invalid", "Universe"]),
|
|
8
8
|
followedSources: z.string().datetime({ offset: true }),
|
|
9
9
|
});
|
|
10
10
|
|
|
@@ -4,9 +4,9 @@ exports.getUsersUseridUniverses = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const __1 = require("..");
|
|
6
6
|
const Roblox_Followings_Api_Models_FollowsByTypeResponse = zod_1.z.object({
|
|
7
|
-
followerType: zod_1.z.
|
|
7
|
+
followerType: zod_1.z.enum(['Invalid', 'User']),
|
|
8
8
|
followerId: zod_1.z.number().int(),
|
|
9
|
-
sourceType: zod_1.z.
|
|
9
|
+
sourceType: zod_1.z.enum(['Invalid', 'Universe']),
|
|
10
10
|
followedSources: zod_1.z.string().datetime({ offset: true }),
|
|
11
11
|
});
|
|
12
12
|
/**
|
|
@@ -18,17 +18,17 @@ const Roblox_Friends_Api_FriendRequest = z.object({
|
|
|
18
18
|
sentAt: z.string().datetime({ offset: true }),
|
|
19
19
|
senderId: z.number().int(),
|
|
20
20
|
sourceUniverseId: z.number().int(),
|
|
21
|
-
originSourceType: z.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
originSourceType: z.enum([
|
|
22
|
+
"Unknown",
|
|
23
|
+
"PlayerSearch",
|
|
24
|
+
"QrCode",
|
|
25
|
+
"InGame",
|
|
26
|
+
"UserProfile",
|
|
27
|
+
"QqContactImporter",
|
|
28
|
+
"WeChatContactImporter",
|
|
29
|
+
"ProfileShare",
|
|
30
|
+
"PhoneContactImporter",
|
|
31
|
+
"FriendRecommendations",
|
|
32
32
|
]),
|
|
33
33
|
contactName: z.string(),
|
|
34
34
|
senderNickname: z.string(),
|
|
@@ -53,20 +53,6 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestR
|
|
|
53
53
|
});
|
|
54
54
|
const Roblox_Friends_Api_Models_Response_NewFriendRequestsCountResponse =
|
|
55
55
|
z.object({ count: z.number().int() });
|
|
56
|
-
const Roblox_Friends_Api_TrustedFriendStatusResponse = z.object({
|
|
57
|
-
status: z.union([
|
|
58
|
-
z.literal(0),
|
|
59
|
-
z.literal(1),
|
|
60
|
-
z.literal(2),
|
|
61
|
-
z.literal(3),
|
|
62
|
-
z.literal(4),
|
|
63
|
-
z.literal(5),
|
|
64
|
-
z.literal(6),
|
|
65
|
-
]),
|
|
66
|
-
});
|
|
67
|
-
const Roblox_Friends_Api_MultigetAreTrustedFriendsResponse = z.object({
|
|
68
|
-
trustedFriendsId: z.array(z.number()),
|
|
69
|
-
});
|
|
70
56
|
const Roblox_Friends_Api_PendingFriendRequestCountModel = z.object({
|
|
71
57
|
count: z.number().int(),
|
|
72
58
|
});
|
|
@@ -126,6 +112,7 @@ const Roblox_Friends_Api_Models_Response_UserPresenceResponseModel = z.object({
|
|
|
126
112
|
const Roblox_Friends_Api_Models_Response_UserPresenceResponse = z.object({
|
|
127
113
|
userPresence: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
|
|
128
114
|
sortScore: z.number(),
|
|
115
|
+
loggingJoinKey: z.string(),
|
|
129
116
|
id: z.number().int(),
|
|
130
117
|
name: z.string(),
|
|
131
118
|
displayName: z.string(),
|
|
@@ -136,7 +123,7 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Respon
|
|
|
136
123
|
});
|
|
137
124
|
const Roblox_Friends_Api_FriendStatusResponse = z.object({
|
|
138
125
|
id: z.number().int(),
|
|
139
|
-
status: z.
|
|
126
|
+
status: z.enum(["NotFriends", "Friends", "RequestSent", "RequestReceived"]),
|
|
140
127
|
});
|
|
141
128
|
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ =
|
|
142
129
|
z.object({ data: z.array(Roblox_Friends_Api_FriendStatusResponse) });
|
|
@@ -180,17 +167,17 @@ const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = z.object({
|
|
|
180
167
|
challengeId: z.string(),
|
|
181
168
|
});
|
|
182
169
|
const Roblox_Friends_Api_FriendshipRequestModel = z.object({
|
|
183
|
-
friendshipOriginSourceType: z.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
170
|
+
friendshipOriginSourceType: z.enum([
|
|
171
|
+
"Unknown",
|
|
172
|
+
"PlayerSearch",
|
|
173
|
+
"QrCode",
|
|
174
|
+
"InGame",
|
|
175
|
+
"UserProfile",
|
|
176
|
+
"QqContactImporter",
|
|
177
|
+
"WeChatContactImporter",
|
|
178
|
+
"ProfileShare",
|
|
179
|
+
"PhoneContactImporter",
|
|
180
|
+
"FriendRecommendations",
|
|
194
181
|
]),
|
|
195
182
|
senderNickname: z.string(),
|
|
196
183
|
});
|
|
@@ -418,36 +405,6 @@ export const getMyNewFriendRequestsCount = endpoint({
|
|
|
418
405
|
},
|
|
419
406
|
],
|
|
420
407
|
});
|
|
421
|
-
/**
|
|
422
|
-
* @api GET https://friends.roblox.com/v1/my/trusted-friends/:userId/status
|
|
423
|
-
* @summary Gets trusted friend status of a specified user against the requesting user.
|
|
424
|
-
* @param userId The user to check the trusted friend status for.
|
|
425
|
-
*/
|
|
426
|
-
export const getMyTrustedFriendsUseridStatus = endpoint({
|
|
427
|
-
method: "GET",
|
|
428
|
-
path: "/v1/my/trusted-friends/:userId/status",
|
|
429
|
-
baseUrl: "https://friends.roblox.com",
|
|
430
|
-
requestFormat: "json",
|
|
431
|
-
serializationMethod: {
|
|
432
|
-
userId: {
|
|
433
|
-
style: "simple",
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
parameters: {
|
|
437
|
-
userId: z.number().int(),
|
|
438
|
-
},
|
|
439
|
-
response: Roblox_Friends_Api_TrustedFriendStatusResponse,
|
|
440
|
-
errors: [
|
|
441
|
-
{
|
|
442
|
-
status: 400,
|
|
443
|
-
description: `1: The target user is invalid or does not exist.`,
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
status: 401,
|
|
447
|
-
description: `0: Authorization has been denied for this request.`,
|
|
448
|
-
},
|
|
449
|
-
],
|
|
450
|
-
});
|
|
451
408
|
/**
|
|
452
409
|
* @api POST https://friends.roblox.com/v1/user/:userId/multiget-are-friends
|
|
453
410
|
* @summary Check if the requesting user is friends with the specified users.
|
|
@@ -481,37 +438,6 @@ export const postUserUseridMultigetAreFriends = endpoint({
|
|
|
481
438
|
},
|
|
482
439
|
],
|
|
483
440
|
});
|
|
484
|
-
/**
|
|
485
|
-
* @api GET https://friends.roblox.com/v1/user/:userId/multiget-are-trusted-friends
|
|
486
|
-
* @summary Check if the requesting user is trusted friends with the specified users.
|
|
487
|
-
* @param userId The requesting userId.
|
|
488
|
-
* @param userIds The user ids to check against with the requesting user.
|
|
489
|
-
*/
|
|
490
|
-
export const getUserUseridMultigetAreTrustedFriends = endpoint({
|
|
491
|
-
method: "GET",
|
|
492
|
-
path: "/v1/user/:userId/multiget-are-trusted-friends",
|
|
493
|
-
baseUrl: "https://friends.roblox.com",
|
|
494
|
-
requestFormat: "json",
|
|
495
|
-
serializationMethod: {
|
|
496
|
-
userId: {
|
|
497
|
-
style: "simple",
|
|
498
|
-
},
|
|
499
|
-
userIds: {
|
|
500
|
-
style: "form",
|
|
501
|
-
},
|
|
502
|
-
},
|
|
503
|
-
parameters: {
|
|
504
|
-
userId: z.number().int(),
|
|
505
|
-
userIds: z.array(z.number()),
|
|
506
|
-
},
|
|
507
|
-
response: Roblox_Friends_Api_MultigetAreTrustedFriendsResponse,
|
|
508
|
-
errors: [
|
|
509
|
-
{
|
|
510
|
-
status: 400,
|
|
511
|
-
description: `1: The target user is invalid or does not exist.`,
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
});
|
|
515
441
|
/**
|
|
516
442
|
* @api POST https://friends.roblox.com/v1/user/following-exists
|
|
517
443
|
* @summary Returns whether or not the current user is following each userId in a list of userIds
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridUnfollow = exports.postUsersTargetuseridRequestFriendship = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.
|
|
3
|
+
exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridUnfollow = exports.postUsersTargetuseridRequestFriendship = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyNewFriendRequestsCount = exports.deleteMyNewFriendRequests = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = exports.postContactsTargetcontactidRequestFriendship = void 0;
|
|
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({
|
|
@@ -18,17 +18,17 @@ const Roblox_Friends_Api_FriendRequest = zod_1.z.object({
|
|
|
18
18
|
sentAt: zod_1.z.string().datetime({ offset: true }),
|
|
19
19
|
senderId: zod_1.z.number().int(),
|
|
20
20
|
sourceUniverseId: zod_1.z.number().int(),
|
|
21
|
-
originSourceType: zod_1.z.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
originSourceType: zod_1.z.enum([
|
|
22
|
+
'Unknown',
|
|
23
|
+
'PlayerSearch',
|
|
24
|
+
'QrCode',
|
|
25
|
+
'InGame',
|
|
26
|
+
'UserProfile',
|
|
27
|
+
'QqContactImporter',
|
|
28
|
+
'WeChatContactImporter',
|
|
29
|
+
'ProfileShare',
|
|
30
|
+
'PhoneContactImporter',
|
|
31
|
+
'FriendRecommendations',
|
|
32
32
|
]),
|
|
33
33
|
contactName: zod_1.z.string(),
|
|
34
34
|
senderNickname: zod_1.z.string(),
|
|
@@ -51,12 +51,6 @@ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Friends_Api_FriendRequestR
|
|
|
51
51
|
data: zod_1.z.array(Roblox_Friends_Api_FriendRequestResponse),
|
|
52
52
|
});
|
|
53
53
|
const Roblox_Friends_Api_Models_Response_NewFriendRequestsCountResponse = zod_1.z.object({ count: zod_1.z.number().int() });
|
|
54
|
-
const Roblox_Friends_Api_TrustedFriendStatusResponse = zod_1.z.object({
|
|
55
|
-
status: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
|
|
56
|
-
});
|
|
57
|
-
const Roblox_Friends_Api_MultigetAreTrustedFriendsResponse = zod_1.z.object({
|
|
58
|
-
trustedFriendsId: zod_1.z.array(zod_1.z.number()),
|
|
59
|
-
});
|
|
60
54
|
const Roblox_Friends_Api_PendingFriendRequestCountModel = zod_1.z.object({
|
|
61
55
|
count: zod_1.z.number().int(),
|
|
62
56
|
});
|
|
@@ -109,6 +103,7 @@ const Roblox_Friends_Api_Models_Response_UserPresenceResponseModel = zod_1.z.obj
|
|
|
109
103
|
const Roblox_Friends_Api_Models_Response_UserPresenceResponse = zod_1.z.object({
|
|
110
104
|
userPresence: Roblox_Friends_Api_Models_Response_UserPresenceResponseModel,
|
|
111
105
|
sortScore: zod_1.z.number(),
|
|
106
|
+
loggingJoinKey: zod_1.z.string(),
|
|
112
107
|
id: zod_1.z.number().int(),
|
|
113
108
|
name: zod_1.z.string(),
|
|
114
109
|
displayName: zod_1.z.string(),
|
|
@@ -118,7 +113,7 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_Models_Respon
|
|
|
118
113
|
});
|
|
119
114
|
const Roblox_Friends_Api_FriendStatusResponse = zod_1.z.object({
|
|
120
115
|
id: zod_1.z.number().int(),
|
|
121
|
-
status: zod_1.z.
|
|
116
|
+
status: zod_1.z.enum(['NotFriends', 'Friends', 'RequestSent', 'RequestReceived']),
|
|
122
117
|
});
|
|
123
118
|
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ = zod_1.z.object({
|
|
124
119
|
data: zod_1.z.array(Roblox_Friends_Api_FriendStatusResponse),
|
|
@@ -159,17 +154,17 @@ const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = zod_1.z.object({
|
|
|
159
154
|
challengeId: zod_1.z.string(),
|
|
160
155
|
});
|
|
161
156
|
const Roblox_Friends_Api_FriendshipRequestModel = zod_1.z.object({
|
|
162
|
-
friendshipOriginSourceType: zod_1.z.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
157
|
+
friendshipOriginSourceType: zod_1.z.enum([
|
|
158
|
+
'Unknown',
|
|
159
|
+
'PlayerSearch',
|
|
160
|
+
'QrCode',
|
|
161
|
+
'InGame',
|
|
162
|
+
'UserProfile',
|
|
163
|
+
'QqContactImporter',
|
|
164
|
+
'WeChatContactImporter',
|
|
165
|
+
'ProfileShare',
|
|
166
|
+
'PhoneContactImporter',
|
|
167
|
+
'FriendRecommendations',
|
|
173
168
|
]),
|
|
174
169
|
senderNickname: zod_1.z.string(),
|
|
175
170
|
});
|
|
@@ -394,36 +389,6 @@ exports.getMyNewFriendRequestsCount = (0, __1.endpoint)({
|
|
|
394
389
|
},
|
|
395
390
|
],
|
|
396
391
|
});
|
|
397
|
-
/**
|
|
398
|
-
* @api GET https://friends.roblox.com/v1/my/trusted-friends/:userId/status
|
|
399
|
-
* @summary Gets trusted friend status of a specified user against the requesting user.
|
|
400
|
-
* @param userId The user to check the trusted friend status for.
|
|
401
|
-
*/
|
|
402
|
-
exports.getMyTrustedFriendsUseridStatus = (0, __1.endpoint)({
|
|
403
|
-
method: 'GET',
|
|
404
|
-
path: '/v1/my/trusted-friends/:userId/status',
|
|
405
|
-
baseUrl: 'https://friends.roblox.com',
|
|
406
|
-
requestFormat: 'json',
|
|
407
|
-
serializationMethod: {
|
|
408
|
-
userId: {
|
|
409
|
-
style: 'simple',
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
parameters: {
|
|
413
|
-
userId: zod_1.z.number().int(),
|
|
414
|
-
},
|
|
415
|
-
response: Roblox_Friends_Api_TrustedFriendStatusResponse,
|
|
416
|
-
errors: [
|
|
417
|
-
{
|
|
418
|
-
status: 400,
|
|
419
|
-
description: `1: The target user is invalid or does not exist.`,
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
status: 401,
|
|
423
|
-
description: `0: Authorization has been denied for this request.`,
|
|
424
|
-
},
|
|
425
|
-
],
|
|
426
|
-
});
|
|
427
392
|
/**
|
|
428
393
|
* @api POST https://friends.roblox.com/v1/user/:userId/multiget-are-friends
|
|
429
394
|
* @summary Check if the requesting user is friends with the specified users.
|
|
@@ -457,37 +422,6 @@ exports.postUserUseridMultigetAreFriends = (0, __1.endpoint)({
|
|
|
457
422
|
},
|
|
458
423
|
],
|
|
459
424
|
});
|
|
460
|
-
/**
|
|
461
|
-
* @api GET https://friends.roblox.com/v1/user/:userId/multiget-are-trusted-friends
|
|
462
|
-
* @summary Check if the requesting user is trusted friends with the specified users.
|
|
463
|
-
* @param userId The requesting userId.
|
|
464
|
-
* @param userIds The user ids to check against with the requesting user.
|
|
465
|
-
*/
|
|
466
|
-
exports.getUserUseridMultigetAreTrustedFriends = (0, __1.endpoint)({
|
|
467
|
-
method: 'GET',
|
|
468
|
-
path: '/v1/user/:userId/multiget-are-trusted-friends',
|
|
469
|
-
baseUrl: 'https://friends.roblox.com',
|
|
470
|
-
requestFormat: 'json',
|
|
471
|
-
serializationMethod: {
|
|
472
|
-
userId: {
|
|
473
|
-
style: 'simple',
|
|
474
|
-
},
|
|
475
|
-
userIds: {
|
|
476
|
-
style: 'form',
|
|
477
|
-
},
|
|
478
|
-
},
|
|
479
|
-
parameters: {
|
|
480
|
-
userId: zod_1.z.number().int(),
|
|
481
|
-
userIds: zod_1.z.array(zod_1.z.number()),
|
|
482
|
-
},
|
|
483
|
-
response: Roblox_Friends_Api_MultigetAreTrustedFriendsResponse,
|
|
484
|
-
errors: [
|
|
485
|
-
{
|
|
486
|
-
status: 400,
|
|
487
|
-
description: `1: The target user is invalid or does not exist.`,
|
|
488
|
-
},
|
|
489
|
-
],
|
|
490
|
-
});
|
|
491
425
|
/**
|
|
492
426
|
* @api POST https://friends.roblox.com/v1/user/following-exists
|
|
493
427
|
* @summary Returns whether or not the current user is following each userId in a list of userIds
|