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
|
@@ -58,6 +58,7 @@ const Roblox_Thumbnails_Apis_Models_ThumbnailBatchRequest = zod_1.z.object({
|
|
|
58
58
|
isCircular: zod_1.z.boolean(),
|
|
59
59
|
accessContext: zod_1.z.string(),
|
|
60
60
|
headShape: zod_1.z.string(),
|
|
61
|
+
includeBackground: zod_1.z.boolean(),
|
|
61
62
|
});
|
|
62
63
|
const Roblox_Web_Responses_Thumbnails_ThumbnailBatchResponse = zod_1.z.object({
|
|
63
64
|
requestId: zod_1.z.string(),
|
|
@@ -785,6 +786,7 @@ exports.getPlacesGameicons = (0, __1.endpoint)({
|
|
|
785
786
|
* @api GET https://thumbnails.roblox.com/v1/users/avatar
|
|
786
787
|
* @summary Get Avatar Full body shots for the given CSV of userIds
|
|
787
788
|
* @param userIds CSV for the userIds to get avatar full body shots
|
|
789
|
+
* @param includeBackground Whether to include a background in the thumbnail (defaults to false)
|
|
788
790
|
* @param size The thumbnail size, formatted widthxheight
|
|
789
791
|
* @param format The thumbnail format
|
|
790
792
|
* @param isCircular The circle thumbnail output parameter, true or false
|
|
@@ -798,6 +800,10 @@ exports.getUsersAvatar = (0, __1.endpoint)({
|
|
|
798
800
|
userIds: {
|
|
799
801
|
style: 'form',
|
|
800
802
|
},
|
|
803
|
+
includeBackground: {
|
|
804
|
+
style: 'form',
|
|
805
|
+
explode: true,
|
|
806
|
+
},
|
|
801
807
|
size: {
|
|
802
808
|
style: 'form',
|
|
803
809
|
explode: true,
|
|
@@ -813,6 +819,7 @@ exports.getUsersAvatar = (0, __1.endpoint)({
|
|
|
813
819
|
},
|
|
814
820
|
parameters: {
|
|
815
821
|
userIds: zod_1.z.array(zod_1.z.number()),
|
|
822
|
+
includeBackground: zod_1.z.boolean().optional(),
|
|
816
823
|
size: zod_1.z
|
|
817
824
|
.enum([
|
|
818
825
|
'30x30',
|
|
@@ -878,6 +885,7 @@ exports.getUsersAvatar3d = (0, __1.endpoint)({
|
|
|
878
885
|
* @api GET https://thumbnails.roblox.com/v1/users/avatar-bust
|
|
879
886
|
* @summary Get Avatar Busts for the given CSV of userIds
|
|
880
887
|
* @param userIds CSV for the userIds to get avatar headshots
|
|
888
|
+
* @param includeBackground Whether to include a background in the thumbnail (defaults to false)
|
|
881
889
|
* @param size The thumbnail size, formatted widthxheight
|
|
882
890
|
* @param format The thumbnail format
|
|
883
891
|
* @param isCircular The circle thumbnail output parameter, true or false
|
|
@@ -891,6 +899,10 @@ exports.getUsersAvatarBust = (0, __1.endpoint)({
|
|
|
891
899
|
userIds: {
|
|
892
900
|
style: 'form',
|
|
893
901
|
},
|
|
902
|
+
includeBackground: {
|
|
903
|
+
style: 'form',
|
|
904
|
+
explode: true,
|
|
905
|
+
},
|
|
894
906
|
size: {
|
|
895
907
|
style: 'form',
|
|
896
908
|
explode: true,
|
|
@@ -906,6 +918,7 @@ exports.getUsersAvatarBust = (0, __1.endpoint)({
|
|
|
906
918
|
},
|
|
907
919
|
parameters: {
|
|
908
920
|
userIds: zod_1.z.array(zod_1.z.number()),
|
|
921
|
+
includeBackground: zod_1.z.boolean().optional(),
|
|
909
922
|
size: zod_1.z
|
|
910
923
|
.enum(['48x48', '50x50', '60x60', '75x75', '100x100', '150x150', '180x180', '352x352', '420x420'])
|
|
911
924
|
.optional()
|
|
@@ -929,6 +942,7 @@ exports.getUsersAvatarBust = (0, __1.endpoint)({
|
|
|
929
942
|
* @api GET https://thumbnails.roblox.com/v1/users/avatar-headshot
|
|
930
943
|
* @summary Get Avatar Headshots for the given CSV of userIds
|
|
931
944
|
* @param userIds CSV for the userIds to get avatar headshots
|
|
945
|
+
* @param includeBackground Whether to include a background in the thumbnail (defaults to false)
|
|
932
946
|
* @param size The thumbnail size, formatted widthxheight
|
|
933
947
|
* @param format The thumbnail format
|
|
934
948
|
* @param isCircular The circle thumbnail output parameter, true or false
|
|
@@ -942,6 +956,10 @@ exports.getUsersAvatarHeadshot = (0, __1.endpoint)({
|
|
|
942
956
|
userIds: {
|
|
943
957
|
style: 'form',
|
|
944
958
|
},
|
|
959
|
+
includeBackground: {
|
|
960
|
+
style: 'form',
|
|
961
|
+
explode: true,
|
|
962
|
+
},
|
|
945
963
|
size: {
|
|
946
964
|
style: 'form',
|
|
947
965
|
explode: true,
|
|
@@ -957,6 +975,7 @@ exports.getUsersAvatarHeadshot = (0, __1.endpoint)({
|
|
|
957
975
|
},
|
|
958
976
|
parameters: {
|
|
959
977
|
userIds: zod_1.z.array(zod_1.z.number()),
|
|
978
|
+
includeBackground: zod_1.z.boolean().optional(),
|
|
960
979
|
size: zod_1.z
|
|
961
980
|
.enum([
|
|
962
981
|
'48x48',
|
|
@@ -1014,6 +1033,7 @@ exports.getUsersOutfit3d = (0, __1.endpoint)({
|
|
|
1014
1033
|
* @api GET https://thumbnails.roblox.com/v1/users/outfits
|
|
1015
1034
|
* @summary Get outfits for the given CSV of userOutfitIds
|
|
1016
1035
|
* @param userOutfitIds CSV for the userOutfitIds to get user outfits
|
|
1036
|
+
* @param includeBackground Whether to include a background in the thumbnail (defaults to false)
|
|
1017
1037
|
* @param size The thumbnail size, formatted widthxheight
|
|
1018
1038
|
* @param format The thumbnail format
|
|
1019
1039
|
* @param isCircular The circle thumbnail output parameter, true or false
|
|
@@ -1027,6 +1047,10 @@ exports.getUsersOutfits = (0, __1.endpoint)({
|
|
|
1027
1047
|
userOutfitIds: {
|
|
1028
1048
|
style: 'form',
|
|
1029
1049
|
},
|
|
1050
|
+
includeBackground: {
|
|
1051
|
+
style: 'form',
|
|
1052
|
+
explode: true,
|
|
1053
|
+
},
|
|
1030
1054
|
size: {
|
|
1031
1055
|
style: 'form',
|
|
1032
1056
|
explode: true,
|
|
@@ -1042,6 +1066,7 @@ exports.getUsersOutfits = (0, __1.endpoint)({
|
|
|
1042
1066
|
},
|
|
1043
1067
|
parameters: {
|
|
1044
1068
|
userOutfitIds: zod_1.z.array(zod_1.z.number()),
|
|
1069
|
+
includeBackground: zod_1.z.boolean().optional(),
|
|
1045
1070
|
size: zod_1.z.enum(['150x150', '420x420']).optional().default('150x150'),
|
|
1046
1071
|
format: zod_1.z.enum(['Png', 'Webp']).optional().default('Png'),
|
|
1047
1072
|
isCircular: zod_1.z.union([zod_1.z.literal(true), zod_1.z.literal(false)]).optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
|
|
5
5
|
id: z.number().int(),
|
|
@@ -14,7 +14,7 @@ const Roblox_Trades_Api_UserAssetResponse = z.object({
|
|
|
14
14
|
recentAveragePrice: z.number().int(),
|
|
15
15
|
originalPrice: z.number().int(),
|
|
16
16
|
assetStock: z.number().int(),
|
|
17
|
-
membershipType: z.enum([
|
|
17
|
+
membershipType: z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
|
|
18
18
|
});
|
|
19
19
|
const Roblox_Trades_Api_TradeOfferResponse = z.object({
|
|
20
20
|
user: Roblox_Web_Responses_Users_SkinnyUserResponse,
|
|
@@ -29,17 +29,17 @@ const Roblox_Trades_Api_TradeDetailResponse = z.object({
|
|
|
29
29
|
expiration: z.string().datetime({ offset: true }),
|
|
30
30
|
isActive: z.boolean(),
|
|
31
31
|
status: z.enum([
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
'Unknown',
|
|
33
|
+
'Open',
|
|
34
|
+
'Pending',
|
|
35
|
+
'Completed',
|
|
36
|
+
'Expired',
|
|
37
|
+
'Declined',
|
|
38
|
+
'RejectedDueToError',
|
|
39
|
+
'Countered',
|
|
40
|
+
'Processing',
|
|
41
|
+
'InterventionRequired',
|
|
42
|
+
'TwoStepVerificationRequired',
|
|
43
43
|
]),
|
|
44
44
|
});
|
|
45
45
|
const Roblox_Trades_Api_TradeResponse = z.object({
|
|
@@ -49,25 +49,24 @@ const Roblox_Trades_Api_TradeResponse = z.object({
|
|
|
49
49
|
expiration: z.string().datetime({ offset: true }),
|
|
50
50
|
isActive: z.boolean(),
|
|
51
51
|
status: z.enum([
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
'Unknown',
|
|
53
|
+
'Open',
|
|
54
|
+
'Pending',
|
|
55
|
+
'Completed',
|
|
56
|
+
'Expired',
|
|
57
|
+
'Declined',
|
|
58
|
+
'RejectedDueToError',
|
|
59
|
+
'Countered',
|
|
60
|
+
'Processing',
|
|
61
|
+
'InterventionRequired',
|
|
62
|
+
'TwoStepVerificationRequired',
|
|
63
63
|
]),
|
|
64
64
|
});
|
|
65
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_ =
|
|
66
|
-
z.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
65
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_ = z.object({
|
|
66
|
+
previousPageCursor: z.string(),
|
|
67
|
+
nextPageCursor: z.string(),
|
|
68
|
+
data: z.array(Roblox_Trades_Api_TradeResponse),
|
|
69
|
+
});
|
|
71
70
|
const Roblox_Trades_Api_TradeCountResponse = z.object({
|
|
72
71
|
count: z.number().int(),
|
|
73
72
|
});
|
|
@@ -80,14 +79,14 @@ const Roblox_Trades_Api_TradeMetadata = z.object({
|
|
|
80
79
|
const Roblox_Trades_Api_CanTradeResponse = z.object({
|
|
81
80
|
canTrade: z.boolean(),
|
|
82
81
|
status: z.enum([
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
'Unknown',
|
|
83
|
+
'CanTrade',
|
|
84
|
+
'CannotTradeWithSelf',
|
|
85
|
+
'SenderCannotTrade',
|
|
86
|
+
'ReceiverCannotTrade',
|
|
87
|
+
'SenderPrivacyTooStrict',
|
|
88
|
+
'UsersCannotTrade',
|
|
89
|
+
'TradeAccepterNeedsFriction',
|
|
91
90
|
]),
|
|
92
91
|
});
|
|
93
92
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
@@ -107,13 +106,13 @@ const Roblox_Trades_Api_NewTradeResponse = z.object({ id: z.number().int() });
|
|
|
107
106
|
* @param tradeId The trade id.
|
|
108
107
|
*/
|
|
109
108
|
export const getTradesTradeid = endpoint({
|
|
110
|
-
method:
|
|
111
|
-
path:
|
|
112
|
-
baseUrl:
|
|
113
|
-
requestFormat:
|
|
109
|
+
method: 'GET',
|
|
110
|
+
path: '/v1/trades/:tradeId',
|
|
111
|
+
baseUrl: 'https://trades.roblox.com',
|
|
112
|
+
requestFormat: 'json',
|
|
114
113
|
serializationMethod: {
|
|
115
114
|
tradeId: {
|
|
116
|
-
style:
|
|
115
|
+
style: 'simple',
|
|
117
116
|
},
|
|
118
117
|
},
|
|
119
118
|
parameters: {
|
|
@@ -146,13 +145,13 @@ export const getTradesTradeid = endpoint({
|
|
|
146
145
|
* @param tradeId The trade id.
|
|
147
146
|
*/
|
|
148
147
|
export const postTradesTradeidAccept = endpoint({
|
|
149
|
-
method:
|
|
150
|
-
path:
|
|
151
|
-
baseUrl:
|
|
152
|
-
requestFormat:
|
|
148
|
+
method: 'POST',
|
|
149
|
+
path: '/v1/trades/:tradeId/accept',
|
|
150
|
+
baseUrl: 'https://trades.roblox.com',
|
|
151
|
+
requestFormat: 'json',
|
|
153
152
|
serializationMethod: {
|
|
154
153
|
tradeId: {
|
|
155
|
-
style:
|
|
154
|
+
style: 'simple',
|
|
156
155
|
},
|
|
157
156
|
},
|
|
158
157
|
parameters: {
|
|
@@ -191,14 +190,14 @@ export const postTradesTradeidAccept = endpoint({
|
|
|
191
190
|
* @param tradeId The trade id.
|
|
192
191
|
*/
|
|
193
192
|
export const postTradesTradeidCounter = endpoint({
|
|
194
|
-
method:
|
|
195
|
-
path:
|
|
196
|
-
baseUrl:
|
|
197
|
-
requestFormat:
|
|
193
|
+
method: 'POST',
|
|
194
|
+
path: '/v1/trades/:tradeId/counter',
|
|
195
|
+
baseUrl: 'https://trades.roblox.com',
|
|
196
|
+
requestFormat: 'json',
|
|
198
197
|
serializationMethod: {
|
|
199
198
|
body: {},
|
|
200
199
|
tradeId: {
|
|
201
|
-
style:
|
|
200
|
+
style: 'simple',
|
|
202
201
|
},
|
|
203
202
|
},
|
|
204
203
|
parameters: {
|
|
@@ -254,13 +253,13 @@ export const postTradesTradeidCounter = endpoint({
|
|
|
254
253
|
* @param tradeId The trade id.
|
|
255
254
|
*/
|
|
256
255
|
export const postTradesTradeidDecline = endpoint({
|
|
257
|
-
method:
|
|
258
|
-
path:
|
|
259
|
-
baseUrl:
|
|
260
|
-
requestFormat:
|
|
256
|
+
method: 'POST',
|
|
257
|
+
path: '/v1/trades/:tradeId/decline',
|
|
258
|
+
baseUrl: 'https://trades.roblox.com',
|
|
259
|
+
requestFormat: 'json',
|
|
261
260
|
serializationMethod: {
|
|
262
261
|
tradeId: {
|
|
263
|
-
style:
|
|
262
|
+
style: 'simple',
|
|
264
263
|
},
|
|
265
264
|
},
|
|
266
265
|
parameters: {
|
|
@@ -298,43 +297,37 @@ export const postTradesTradeidDecline = endpoint({
|
|
|
298
297
|
* @param sortOrder Sorted by trade creation date
|
|
299
298
|
*/
|
|
300
299
|
export const getTradesTradestatustype = endpoint({
|
|
301
|
-
method:
|
|
302
|
-
path:
|
|
303
|
-
baseUrl:
|
|
304
|
-
requestFormat:
|
|
300
|
+
method: 'GET',
|
|
301
|
+
path: '/v1/trades/:tradeStatusType',
|
|
302
|
+
baseUrl: 'https://trades.roblox.com',
|
|
303
|
+
requestFormat: 'json',
|
|
305
304
|
serializationMethod: {
|
|
306
305
|
tradeStatusType: {
|
|
307
|
-
style:
|
|
306
|
+
style: 'simple',
|
|
308
307
|
},
|
|
309
308
|
limit: {
|
|
310
|
-
style:
|
|
309
|
+
style: 'form',
|
|
311
310
|
explode: true,
|
|
312
311
|
},
|
|
313
312
|
cursor: {
|
|
314
|
-
style:
|
|
313
|
+
style: 'form',
|
|
315
314
|
explode: true,
|
|
316
315
|
},
|
|
317
316
|
sortOrder: {
|
|
318
|
-
style:
|
|
317
|
+
style: 'form',
|
|
319
318
|
explode: true,
|
|
320
319
|
},
|
|
321
320
|
},
|
|
322
321
|
parameters: {
|
|
323
|
-
tradeStatusType: z.union([
|
|
324
|
-
z.literal(1),
|
|
325
|
-
z.literal(2),
|
|
326
|
-
z.literal(3),
|
|
327
|
-
z.literal(4),
|
|
328
|
-
]),
|
|
322
|
+
tradeStatusType: z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
|
|
329
323
|
limit: z
|
|
330
324
|
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
331
325
|
.optional()
|
|
332
326
|
.default(10),
|
|
333
327
|
cursor: z.string().optional(),
|
|
334
|
-
sortOrder: z.enum([
|
|
328
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
335
329
|
},
|
|
336
|
-
response:
|
|
337
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_,
|
|
330
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_,
|
|
338
331
|
errors: [
|
|
339
332
|
{
|
|
340
333
|
status: 400,
|
|
@@ -353,22 +346,17 @@ Inbound is the only accepted tradeStatusType.
|
|
|
353
346
|
* @param tradeStatusType The trade status type to fetch a total count for.
|
|
354
347
|
*/
|
|
355
348
|
export const getTradesTradestatustypeCount = endpoint({
|
|
356
|
-
method:
|
|
357
|
-
path:
|
|
358
|
-
baseUrl:
|
|
359
|
-
requestFormat:
|
|
349
|
+
method: 'GET',
|
|
350
|
+
path: '/v1/trades/:tradeStatusType/count',
|
|
351
|
+
baseUrl: 'https://trades.roblox.com',
|
|
352
|
+
requestFormat: 'json',
|
|
360
353
|
serializationMethod: {
|
|
361
354
|
tradeStatusType: {
|
|
362
|
-
style:
|
|
355
|
+
style: 'simple',
|
|
363
356
|
},
|
|
364
357
|
},
|
|
365
358
|
parameters: {
|
|
366
|
-
tradeStatusType: z.union([
|
|
367
|
-
z.literal(1),
|
|
368
|
-
z.literal(2),
|
|
369
|
-
z.literal(3),
|
|
370
|
-
z.literal(4),
|
|
371
|
-
]),
|
|
359
|
+
tradeStatusType: z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)]),
|
|
372
360
|
},
|
|
373
361
|
response: z.object({ count: z.number().int() }),
|
|
374
362
|
errors: [
|
|
@@ -388,10 +376,10 @@ export const getTradesTradestatustypeCount = endpoint({
|
|
|
388
376
|
Expires Outdated Inbound Trades for User
|
|
389
377
|
*/
|
|
390
378
|
export const postTradesExpireOutdated = endpoint({
|
|
391
|
-
method:
|
|
392
|
-
path:
|
|
393
|
-
baseUrl:
|
|
394
|
-
requestFormat:
|
|
379
|
+
method: 'POST',
|
|
380
|
+
path: '/v1/trades/expire-outdated',
|
|
381
|
+
baseUrl: 'https://trades.roblox.com',
|
|
382
|
+
requestFormat: 'json',
|
|
395
383
|
response: z.object({}),
|
|
396
384
|
errors: [
|
|
397
385
|
{
|
|
@@ -409,10 +397,10 @@ export const postTradesExpireOutdated = endpoint({
|
|
|
409
397
|
* @summary Gets metadata about the trade system.
|
|
410
398
|
*/
|
|
411
399
|
export const getTradesMetadata = endpoint({
|
|
412
|
-
method:
|
|
413
|
-
path:
|
|
414
|
-
baseUrl:
|
|
415
|
-
requestFormat:
|
|
400
|
+
method: 'GET',
|
|
401
|
+
path: '/v1/trades/metadata',
|
|
402
|
+
baseUrl: 'https://trades.roblox.com',
|
|
403
|
+
requestFormat: 'json',
|
|
416
404
|
response: Roblox_Trades_Api_TradeMetadata,
|
|
417
405
|
errors: [
|
|
418
406
|
{
|
|
@@ -427,10 +415,10 @@ export const getTradesMetadata = endpoint({
|
|
|
427
415
|
* @param body The trade request.
|
|
428
416
|
*/
|
|
429
417
|
export const postTradesSend = endpoint({
|
|
430
|
-
method:
|
|
431
|
-
path:
|
|
432
|
-
baseUrl:
|
|
433
|
-
requestFormat:
|
|
418
|
+
method: 'POST',
|
|
419
|
+
path: '/v1/trades/send',
|
|
420
|
+
baseUrl: 'https://trades.roblox.com',
|
|
421
|
+
requestFormat: 'json',
|
|
434
422
|
serializationMethod: {
|
|
435
423
|
body: {},
|
|
436
424
|
},
|
|
@@ -484,13 +472,13 @@ export const postTradesSend = endpoint({
|
|
|
484
472
|
* @param userId The other user's id.
|
|
485
473
|
*/
|
|
486
474
|
export const getUsersUseridCanTradeWith = endpoint({
|
|
487
|
-
method:
|
|
488
|
-
path:
|
|
489
|
-
baseUrl:
|
|
490
|
-
requestFormat:
|
|
475
|
+
method: 'GET',
|
|
476
|
+
path: '/v1/users/:userId/can-trade-with',
|
|
477
|
+
baseUrl: 'https://trades.roblox.com',
|
|
478
|
+
requestFormat: 'json',
|
|
491
479
|
serializationMethod: {
|
|
492
480
|
userId: {
|
|
493
|
-
style:
|
|
481
|
+
style: 'simple',
|
|
494
482
|
},
|
|
495
483
|
},
|
|
496
484
|
parameters: {
|