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,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(),
|
|
@@ -7,7 +7,7 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
|
|
|
7
7
|
displayName: z.string(),
|
|
8
8
|
});
|
|
9
9
|
const Roblox_Trades_Api_Models_V2_ItemTarget = z.object({
|
|
10
|
-
itemType: z.enum([
|
|
10
|
+
itemType: z.enum(['Unknown', 'Asset', 'Bundle']),
|
|
11
11
|
targetId: z.string(),
|
|
12
12
|
});
|
|
13
13
|
const Roblox_Trades_Api_Models_V2_TradableItemInstance = z.object({
|
|
@@ -28,17 +28,17 @@ const Roblox_Trades_Api_Models_V2_TradeOffer = z.object({
|
|
|
28
28
|
const Roblox_Trades_Api_Models_V2_TradeDetailsResponse = z.object({
|
|
29
29
|
tradeId: z.number().int(),
|
|
30
30
|
status: z.enum([
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
'Unknown',
|
|
32
|
+
'Open',
|
|
33
|
+
'Pending',
|
|
34
|
+
'Completed',
|
|
35
|
+
'Expired',
|
|
36
|
+
'Declined',
|
|
37
|
+
'RejectedDueToError',
|
|
38
|
+
'Countered',
|
|
39
|
+
'Processing',
|
|
40
|
+
'InterventionRequired',
|
|
41
|
+
'TwoStepVerificationRequired',
|
|
42
42
|
]),
|
|
43
43
|
participantAOffer: Roblox_Trades_Api_Models_V2_TradeOffer,
|
|
44
44
|
participantBOffer: Roblox_Trades_Api_Models_V2_TradeOffer,
|
|
@@ -48,12 +48,12 @@ const Roblox_Trades_Api_Models_V2_CanTradeWithResponse = z.object({
|
|
|
48
48
|
targetUserId: z.number().int(),
|
|
49
49
|
canTrade: z.boolean(),
|
|
50
50
|
mutualTradeEligibility: z.enum([
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
'Unknown',
|
|
52
|
+
'Eligible',
|
|
53
|
+
'CallingUserIneligible',
|
|
54
|
+
'TargetUserIneligible',
|
|
55
|
+
'CannotTradeWithSelf',
|
|
56
|
+
'CallingUserPrivacySettingsRestricted',
|
|
57
57
|
]),
|
|
58
58
|
});
|
|
59
59
|
const Roblox_Trades_Api_Models_V2_TradableItem = z.object({
|
|
@@ -74,13 +74,13 @@ const Roblox_Trades_Api_Models_V2_CanTradeResponse = z.object({
|
|
|
74
74
|
userId: z.number().int(),
|
|
75
75
|
canTrade: z.boolean(),
|
|
76
76
|
tradeEligibility: z.enum([
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
'Unknown',
|
|
78
|
+
'Eligible',
|
|
79
|
+
'IneligibleTradeSystemDisabled',
|
|
80
|
+
'IneligibleCannotTradeWithRoblox',
|
|
81
|
+
'IneligibleUserNotFound',
|
|
82
|
+
'IneligibleMissingPremiumMembership',
|
|
83
|
+
'IneligibleLegalOrRegulatoryRestrictions',
|
|
84
84
|
]),
|
|
85
85
|
});
|
|
86
86
|
const Roblox_Trades_Api_Models_V2_TradeOfferRequest = z.object({
|
|
@@ -102,13 +102,13 @@ const Roblox_Trades_Api_Models_V2_NewTradeResponse = z.object({
|
|
|
102
102
|
* @param tradeId The id of the trade.
|
|
103
103
|
*/
|
|
104
104
|
export const getTradesTradeid = endpoint({
|
|
105
|
-
method:
|
|
106
|
-
path:
|
|
107
|
-
baseUrl:
|
|
108
|
-
requestFormat:
|
|
105
|
+
method: 'GET',
|
|
106
|
+
path: '/v2/trades/:tradeId',
|
|
107
|
+
baseUrl: 'https://trades.roblox.com',
|
|
108
|
+
requestFormat: 'json',
|
|
109
109
|
serializationMethod: {
|
|
110
110
|
tradeId: {
|
|
111
|
-
style:
|
|
111
|
+
style: 'simple',
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
parameters: {
|
|
@@ -142,14 +142,14 @@ export const getTradesTradeid = endpoint({
|
|
|
142
142
|
* @param tradeId
|
|
143
143
|
*/
|
|
144
144
|
export const postTradesTradeidCounter = endpoint({
|
|
145
|
-
method:
|
|
146
|
-
path:
|
|
147
|
-
baseUrl:
|
|
148
|
-
requestFormat:
|
|
145
|
+
method: 'POST',
|
|
146
|
+
path: '/v2/trades/:tradeId/counter',
|
|
147
|
+
baseUrl: 'https://trades.roblox.com',
|
|
148
|
+
requestFormat: 'json',
|
|
149
149
|
serializationMethod: {
|
|
150
150
|
body: {},
|
|
151
151
|
tradeId: {
|
|
152
|
-
style:
|
|
152
|
+
style: 'simple',
|
|
153
153
|
},
|
|
154
154
|
},
|
|
155
155
|
parameters: {
|
|
@@ -179,10 +179,10 @@ export const postTradesTradeidCounter = endpoint({
|
|
|
179
179
|
* @param body
|
|
180
180
|
*/
|
|
181
181
|
export const postTradesSend = endpoint({
|
|
182
|
-
method:
|
|
183
|
-
path:
|
|
184
|
-
baseUrl:
|
|
185
|
-
requestFormat:
|
|
182
|
+
method: 'POST',
|
|
183
|
+
path: '/v2/trades/send',
|
|
184
|
+
baseUrl: 'https://trades.roblox.com',
|
|
185
|
+
requestFormat: 'json',
|
|
186
186
|
serializationMethod: {
|
|
187
187
|
body: {},
|
|
188
188
|
},
|
|
@@ -211,13 +211,13 @@ export const postTradesSend = endpoint({
|
|
|
211
211
|
* @param userId
|
|
212
212
|
*/
|
|
213
213
|
export const getUsersUseridCanTradeWith = endpoint({
|
|
214
|
-
method:
|
|
215
|
-
path:
|
|
216
|
-
baseUrl:
|
|
217
|
-
requestFormat:
|
|
214
|
+
method: 'GET',
|
|
215
|
+
path: '/v2/users/:userId/can-trade-with',
|
|
216
|
+
baseUrl: 'https://trades.roblox.com',
|
|
217
|
+
requestFormat: 'json',
|
|
218
218
|
serializationMethod: {
|
|
219
219
|
userId: {
|
|
220
|
-
style:
|
|
220
|
+
style: 'simple',
|
|
221
221
|
},
|
|
222
222
|
},
|
|
223
223
|
parameters: {
|
|
@@ -244,36 +244,36 @@ export const getUsersUseridCanTradeWith = endpoint({
|
|
|
244
244
|
* @param cursor The pagination cursor.
|
|
245
245
|
*/
|
|
246
246
|
export const getUsersUseridTradableitems = endpoint({
|
|
247
|
-
method:
|
|
248
|
-
path:
|
|
249
|
-
baseUrl:
|
|
250
|
-
requestFormat:
|
|
247
|
+
method: 'GET',
|
|
248
|
+
path: '/v2/users/:userId/tradableItems',
|
|
249
|
+
baseUrl: 'https://trades.roblox.com',
|
|
250
|
+
requestFormat: 'json',
|
|
251
251
|
serializationMethod: {
|
|
252
252
|
userId: {
|
|
253
|
-
style:
|
|
253
|
+
style: 'simple',
|
|
254
254
|
},
|
|
255
255
|
search: {
|
|
256
|
-
style:
|
|
256
|
+
style: 'form',
|
|
257
257
|
explode: true,
|
|
258
258
|
},
|
|
259
259
|
itemTargetTypes: {
|
|
260
|
-
style:
|
|
260
|
+
style: 'form',
|
|
261
261
|
explode: true,
|
|
262
262
|
},
|
|
263
263
|
sortBy: {
|
|
264
|
-
style:
|
|
264
|
+
style: 'form',
|
|
265
265
|
explode: true,
|
|
266
266
|
},
|
|
267
267
|
sortOrder: {
|
|
268
|
-
style:
|
|
268
|
+
style: 'form',
|
|
269
269
|
explode: true,
|
|
270
270
|
},
|
|
271
271
|
limit: {
|
|
272
|
-
style:
|
|
272
|
+
style: 'form',
|
|
273
273
|
explode: true,
|
|
274
274
|
},
|
|
275
275
|
cursor: {
|
|
276
|
-
style:
|
|
276
|
+
style: 'form',
|
|
277
277
|
explode: true,
|
|
278
278
|
},
|
|
279
279
|
},
|
|
@@ -283,31 +283,28 @@ export const getUsersUseridTradableitems = endpoint({
|
|
|
283
283
|
itemTargetTypes: z
|
|
284
284
|
.array(
|
|
285
285
|
z.enum([
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
])
|
|
286
|
+
'Unknown',
|
|
287
|
+
'HatAccessory',
|
|
288
|
+
'HairAccessory',
|
|
289
|
+
'FaceAccessory',
|
|
290
|
+
'NeckAccessory',
|
|
291
|
+
'ShoulderAccessory',
|
|
292
|
+
'FrontAccessory',
|
|
293
|
+
'BackAccessory',
|
|
294
|
+
'WaistAccessory',
|
|
295
|
+
'Gear',
|
|
296
|
+
'Face',
|
|
297
|
+
'JacketAccessory',
|
|
298
|
+
'SweaterAccessory',
|
|
299
|
+
'DressSkirtAccessory',
|
|
300
|
+
'Character',
|
|
301
|
+
'DynamicHead',
|
|
302
|
+
'Shoes',
|
|
303
|
+
'Animation',
|
|
304
|
+
]),
|
|
305
305
|
)
|
|
306
306
|
.optional(),
|
|
307
|
-
sortBy: z
|
|
308
|
-
.enum(["Unknown", "CreationTime", "AcquisitionTime"])
|
|
309
|
-
.optional()
|
|
310
|
-
.default("CreationTime"),
|
|
307
|
+
sortBy: z.enum(['Unknown', 'CreationTime', 'AcquisitionTime']).optional().default('CreationTime'),
|
|
311
308
|
sortOrder: z
|
|
312
309
|
.union([z.literal(0), z.literal(1), z.literal(2)])
|
|
313
310
|
.optional()
|
|
@@ -341,10 +338,10 @@ export const getUsersUseridTradableitems = endpoint({
|
|
|
341
338
|
* @summary Checks if the calling user can trade with others.
|
|
342
339
|
*/
|
|
343
340
|
export const getUsersMeCanTrade = endpoint({
|
|
344
|
-
method:
|
|
345
|
-
path:
|
|
346
|
-
baseUrl:
|
|
347
|
-
requestFormat:
|
|
341
|
+
method: 'GET',
|
|
342
|
+
path: '/v2/users/me/can-trade',
|
|
343
|
+
baseUrl: 'https://trades.roblox.com',
|
|
344
|
+
requestFormat: 'json',
|
|
348
345
|
response: Roblox_Trades_Api_Models_V2_CanTradeResponse,
|
|
349
346
|
errors: [
|
|
350
347
|
{
|
|
@@ -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_WebAPI_Models_ApiArrayResponse_System_String_ = z.object({
|
|
5
5
|
data: z.array(z.string()),
|
|
@@ -7,31 +7,28 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = z.object({
|
|
|
7
7
|
const Roblox_TranslationRoles_Api_Assignee = z.object({
|
|
8
8
|
id: z.number().int(),
|
|
9
9
|
name: z.string(),
|
|
10
|
-
type: z.enum([
|
|
10
|
+
type: z.enum(['user', 'group', 'groupRole']),
|
|
11
|
+
});
|
|
12
|
+
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_ = z.object({
|
|
13
|
+
data: z.array(Roblox_TranslationRoles_Api_Assignee),
|
|
11
14
|
});
|
|
12
|
-
const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_ =
|
|
13
|
-
z.object({ data: z.array(Roblox_TranslationRoles_Api_Assignee) });
|
|
14
15
|
const Roblox_GameLocalization_Client_GameLocalizationRoles_Assignee = z.object({
|
|
15
|
-
assigneeType: z.enum([
|
|
16
|
+
assigneeType: z.enum(['user', 'group', 'groupRole']),
|
|
16
17
|
id: z.number().int(),
|
|
17
18
|
});
|
|
18
|
-
const Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment =
|
|
19
|
-
z.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
z.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
),
|
|
28
|
-
previousPageCursor: z.string(),
|
|
29
|
-
nextPageCursor: z.string(),
|
|
30
|
-
});
|
|
19
|
+
const Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment = z.object({
|
|
20
|
+
gameId: z.number().int(),
|
|
21
|
+
assignee: Roblox_GameLocalization_Client_GameLocalizationRoles_Assignee,
|
|
22
|
+
});
|
|
23
|
+
const Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse = z.object({
|
|
24
|
+
games: z.array(Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment),
|
|
25
|
+
previousPageCursor: z.string(),
|
|
26
|
+
nextPageCursor: z.string(),
|
|
27
|
+
});
|
|
31
28
|
const Roblox_TranslationRoles_Api_UpdateRoleRequest = z.object({
|
|
32
29
|
assigneeId: z.number().int(),
|
|
33
|
-
assigneeType: z.enum([
|
|
34
|
-
role: z.literal(
|
|
30
|
+
assigneeType: z.enum(['user', 'group', 'groupRole']),
|
|
31
|
+
role: z.literal('translator'),
|
|
35
32
|
revoke: z.boolean(),
|
|
36
33
|
});
|
|
37
34
|
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
@@ -43,14 +40,14 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
|
43
40
|
* @param gameId The id of the game
|
|
44
41
|
*/
|
|
45
42
|
export const patchGameLocalizationRolesGamesGameid = endpoint({
|
|
46
|
-
method:
|
|
47
|
-
path:
|
|
48
|
-
baseUrl:
|
|
49
|
-
requestFormat:
|
|
43
|
+
method: 'PATCH',
|
|
44
|
+
path: '/v1/game-localization-roles/games/:gameId',
|
|
45
|
+
baseUrl: 'https://translationroles.roblox.com',
|
|
46
|
+
requestFormat: 'json',
|
|
50
47
|
serializationMethod: {
|
|
51
48
|
body: {},
|
|
52
49
|
gameId: {
|
|
53
|
-
style:
|
|
50
|
+
style: 'simple',
|
|
54
51
|
},
|
|
55
52
|
},
|
|
56
53
|
parameters: {
|
|
@@ -91,13 +88,13 @@ export const patchGameLocalizationRolesGamesGameid = endpoint({
|
|
|
91
88
|
* @param gameId The id of the game
|
|
92
89
|
*/
|
|
93
90
|
export const getGameLocalizationRolesGamesGameidCurrentUserRoles = endpoint({
|
|
94
|
-
method:
|
|
95
|
-
path:
|
|
96
|
-
baseUrl:
|
|
97
|
-
requestFormat:
|
|
91
|
+
method: 'GET',
|
|
92
|
+
path: '/v1/game-localization-roles/games/:gameId/current-user/roles',
|
|
93
|
+
baseUrl: 'https://translationroles.roblox.com',
|
|
94
|
+
requestFormat: 'json',
|
|
98
95
|
serializationMethod: {
|
|
99
96
|
gameId: {
|
|
100
|
-
style:
|
|
97
|
+
style: 'simple',
|
|
101
98
|
},
|
|
102
99
|
},
|
|
103
100
|
parameters: {
|
|
@@ -126,24 +123,23 @@ export const getGameLocalizationRolesGamesGameidCurrentUserRoles = endpoint({
|
|
|
126
123
|
* @param role The Roblox.GameLocalization.Client.GameLocalizationRoles.GameLocalizationRoleType
|
|
127
124
|
*/
|
|
128
125
|
export const getGameLocalizationRolesGamesGameidRolesRoleAssignees = endpoint({
|
|
129
|
-
method:
|
|
130
|
-
path:
|
|
131
|
-
baseUrl:
|
|
132
|
-
requestFormat:
|
|
126
|
+
method: 'GET',
|
|
127
|
+
path: '/v1/game-localization-roles/games/:gameId/roles/:role/assignees',
|
|
128
|
+
baseUrl: 'https://translationroles.roblox.com',
|
|
129
|
+
requestFormat: 'json',
|
|
133
130
|
serializationMethod: {
|
|
134
131
|
gameId: {
|
|
135
|
-
style:
|
|
132
|
+
style: 'simple',
|
|
136
133
|
},
|
|
137
134
|
role: {
|
|
138
|
-
style:
|
|
135
|
+
style: 'simple',
|
|
139
136
|
},
|
|
140
137
|
},
|
|
141
138
|
parameters: {
|
|
142
139
|
gameId: z.number().int(),
|
|
143
|
-
role: z.literal(
|
|
140
|
+
role: z.literal('translator'),
|
|
144
141
|
},
|
|
145
|
-
response:
|
|
146
|
-
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_,
|
|
142
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_,
|
|
147
143
|
errors: [
|
|
148
144
|
{
|
|
149
145
|
status: 400,
|
|
@@ -172,35 +168,34 @@ export const getGameLocalizationRolesGamesGameidRolesRoleAssignees = endpoint({
|
|
|
172
168
|
* @param groupId Optional seleted groupId of resources requested for the user and role.
|
|
173
169
|
*/
|
|
174
170
|
export const getGameLocalizationRolesRolesRoleCurrentUser = endpoint({
|
|
175
|
-
method:
|
|
176
|
-
path:
|
|
177
|
-
baseUrl:
|
|
178
|
-
requestFormat:
|
|
171
|
+
method: 'GET',
|
|
172
|
+
path: '/v1/game-localization-roles/roles/:role/current-user',
|
|
173
|
+
baseUrl: 'https://translationroles.roblox.com',
|
|
174
|
+
requestFormat: 'json',
|
|
179
175
|
serializationMethod: {
|
|
180
176
|
role: {
|
|
181
|
-
style:
|
|
177
|
+
style: 'simple',
|
|
182
178
|
},
|
|
183
179
|
exclusiveStartKey: {
|
|
184
|
-
style:
|
|
180
|
+
style: 'form',
|
|
185
181
|
explode: true,
|
|
186
182
|
},
|
|
187
183
|
pageSize: {
|
|
188
|
-
style:
|
|
184
|
+
style: 'form',
|
|
189
185
|
explode: true,
|
|
190
186
|
},
|
|
191
187
|
groupId: {
|
|
192
|
-
style:
|
|
188
|
+
style: 'form',
|
|
193
189
|
explode: true,
|
|
194
190
|
},
|
|
195
191
|
},
|
|
196
192
|
parameters: {
|
|
197
|
-
role: z.literal(
|
|
193
|
+
role: z.literal('translator'),
|
|
198
194
|
exclusiveStartKey: z.string().optional(),
|
|
199
195
|
pageSize: z.number().int().optional(),
|
|
200
196
|
groupId: z.number().int().optional(),
|
|
201
197
|
},
|
|
202
|
-
response:
|
|
203
|
-
Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse,
|
|
198
|
+
response: Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse,
|
|
204
199
|
errors: [
|
|
205
200
|
{
|
|
206
201
|
status: 400,
|