rozod 6.8.0 → 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/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 +236 -237
- package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
- package/lib/endpoints/authv1.d.ts +479 -521
- package/lib/endpoints/authv2.d.ts +209 -221
- 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 +92 -99
- package/lib/endpoints/catalogv1.d.ts +207 -233
- package/lib/endpoints/catalogv2.d.ts +81 -119
- 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 +230 -293
- package/lib/endpoints/developv2.d.ts +84 -137
- 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 +200 -237
- package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
- package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
- package/lib/endpoints/gamesv1.d.ts +181 -143
- package/lib/endpoints/gamesv2.d.ts +161 -169
- package/lib/endpoints/groupsv1.d.ts +938 -988
- package/lib/endpoints/groupsv2.d.ts +259 -278
- package/lib/endpoints/inventoryv1.d.ts +91 -122
- package/lib/endpoints/inventoryv2.d.ts +163 -180
- 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/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 +325 -326
- package/lib/endpoints/thumbnailsv1.js +24 -24
- 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 +56 -1
- package/lib/index.js +159 -3
- 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_Api_Develop_AssetVersion = z.object({
|
|
5
5
|
Id: z.number().int(),
|
|
@@ -12,12 +12,11 @@ const Roblox_Api_Develop_AssetVersion = z.object({
|
|
|
12
12
|
isEqualToCurrentPublishedVersion: z.boolean(),
|
|
13
13
|
isPublished: z.boolean(),
|
|
14
14
|
});
|
|
15
|
-
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Api_Develop_AssetVersion_ =
|
|
16
|
-
z.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
15
|
+
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Api_Develop_AssetVersion_ = z.object({
|
|
16
|
+
previousPageCursor: z.string(),
|
|
17
|
+
nextPageCursor: z.string(),
|
|
18
|
+
data: z.array(Roblox_Api_Develop_AssetVersion),
|
|
19
|
+
});
|
|
21
20
|
const Roblox_Api_Develop_Models_PlaceModelV2 = z.object({
|
|
22
21
|
maxPlayerCount: z.number().int(),
|
|
23
22
|
socialSlotType: z.string(),
|
|
@@ -37,7 +36,7 @@ const Roblox_Api_Develop_Models_PlaceModelV2 = z.object({
|
|
|
37
36
|
z.literal(14),
|
|
38
37
|
z.literal(21),
|
|
39
38
|
z.literal(22),
|
|
40
|
-
])
|
|
39
|
+
]),
|
|
41
40
|
),
|
|
42
41
|
maxPlayersAllowed: z.number().int(),
|
|
43
42
|
created: z.string().datetime({ offset: true }),
|
|
@@ -58,12 +57,11 @@ const Roblox_Api_Develop_Models_PlaceConfigurationModelV2 = z.object({
|
|
|
58
57
|
allowedGearTypes: z.array(z.string()),
|
|
59
58
|
isAllGenresAllowed: z.boolean(),
|
|
60
59
|
});
|
|
61
|
-
const Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel =
|
|
62
|
-
z.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
60
|
+
const Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel = z.object({
|
|
61
|
+
assetID: z.number().int(),
|
|
62
|
+
assetTypeID: z.number().int(),
|
|
63
|
+
isPlayerChoice: z.boolean(),
|
|
64
|
+
});
|
|
67
65
|
const Roblox_Web_Responses_Avatar_ScaleModel = z.object({
|
|
68
66
|
height: z.number(),
|
|
69
67
|
width: z.number(),
|
|
@@ -72,13 +70,12 @@ const Roblox_Web_Responses_Avatar_ScaleModel = z.object({
|
|
|
72
70
|
proportion: z.number(),
|
|
73
71
|
bodyType: z.number(),
|
|
74
72
|
});
|
|
75
|
-
const Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions =
|
|
76
|
-
z.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
});
|
|
73
|
+
const Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions = z.object({
|
|
74
|
+
IsThirdPartyTeleportAllowed: z.boolean(),
|
|
75
|
+
IsThirdPartyAssetAllowed: z.boolean(),
|
|
76
|
+
IsThirdPartyPurchaseAllowed: z.boolean(),
|
|
77
|
+
IsClientTeleportAllowed: z.boolean(),
|
|
78
|
+
});
|
|
82
79
|
const Roblox_Api_Develop_Models_UniverseSettingsRequestV2 = z.object({
|
|
83
80
|
allowPrivateServers: z.boolean(),
|
|
84
81
|
privateServerPrice: z.number().int(),
|
|
@@ -109,124 +106,75 @@ const Roblox_Api_Develop_Models_UniverseSettingsRequestV2 = z.object({
|
|
|
109
106
|
z.literal(14),
|
|
110
107
|
]),
|
|
111
108
|
playableDevices: z.array(
|
|
112
|
-
z.union([
|
|
113
|
-
z.literal(1),
|
|
114
|
-
z.literal(2),
|
|
115
|
-
z.literal(3),
|
|
116
|
-
z.literal(4),
|
|
117
|
-
z.literal(5),
|
|
118
|
-
z.literal(6),
|
|
119
|
-
])
|
|
109
|
+
z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(5), z.literal(6)]),
|
|
120
110
|
),
|
|
121
111
|
isForSale: z.boolean(),
|
|
122
112
|
price: z.number().int(),
|
|
123
|
-
universeAvatarAssetOverrides: z.array(
|
|
124
|
-
Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel
|
|
125
|
-
),
|
|
113
|
+
universeAvatarAssetOverrides: z.array(Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel),
|
|
126
114
|
universeAvatarMinScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
127
115
|
universeAvatarMaxScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
128
116
|
studioAccessToApisAllowed: z.boolean(),
|
|
129
|
-
permissions:
|
|
130
|
-
Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
|
|
117
|
+
permissions: Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
|
|
131
118
|
optInRegions: z.array(z.union([z.literal(0), z.literal(1)])),
|
|
132
119
|
optOutRegions: z.array(z.union([z.literal(0), z.literal(1)])),
|
|
133
120
|
isMeshTextureApiAccessAllowed: z.boolean(),
|
|
134
121
|
isRewardedOnDemandAdsAllowed: z.boolean(),
|
|
135
122
|
fiatBasePriceId: z.string(),
|
|
136
|
-
fiatProductChangeType: z.union([
|
|
137
|
-
|
|
138
|
-
z.literal(1),
|
|
139
|
-
z.literal(2),
|
|
140
|
-
z.literal(3),
|
|
141
|
-
]),
|
|
142
|
-
audiences: z.array(
|
|
143
|
-
z.union([
|
|
144
|
-
z.literal(0),
|
|
145
|
-
z.literal(1),
|
|
146
|
-
z.literal(2),
|
|
147
|
-
z.literal(3),
|
|
148
|
-
z.literal(4),
|
|
149
|
-
])
|
|
150
|
-
),
|
|
123
|
+
fiatProductChangeType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]),
|
|
124
|
+
audiences: z.array(z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)])),
|
|
151
125
|
demoModeEnabled: z.boolean(),
|
|
152
126
|
});
|
|
153
127
|
const Roblox_Api_Develop_Models_UniverseModerationPolicyStatus = z.object({
|
|
154
|
-
region: z.enum([
|
|
128
|
+
region: z.enum(['Unknown', 'China']),
|
|
155
129
|
status: z.string(),
|
|
156
130
|
});
|
|
157
131
|
const Roblox_Api_Develop_Models_UniverseSettingsResponseV2 = z.object({
|
|
158
132
|
allowPrivateServers: z.boolean(),
|
|
159
133
|
privateServerPrice: z.number().int(),
|
|
160
|
-
optInRegions: z.array(
|
|
161
|
-
Roblox_Api_Develop_Models_UniverseModerationPolicyStatus
|
|
162
|
-
),
|
|
134
|
+
optInRegions: z.array(Roblox_Api_Develop_Models_UniverseModerationPolicyStatus),
|
|
163
135
|
isMeshTextureApiAccessAllowed: z.boolean(),
|
|
164
136
|
isRewardedOnDemandAdsAllowed: z.boolean(),
|
|
165
137
|
id: z.number().int(),
|
|
166
138
|
name: z.string(),
|
|
167
139
|
description: z.string(),
|
|
168
|
-
universeAvatarType: z.enum([
|
|
169
|
-
universeAnimationType: z.enum([
|
|
170
|
-
universeCollisionType: z.enum([
|
|
171
|
-
universeJointPositioningType: z.enum([
|
|
140
|
+
universeAvatarType: z.enum(['MorphToR6', 'PlayerChoice', 'MorphToR15']),
|
|
141
|
+
universeAnimationType: z.enum(['Standard', 'PlayerChoice']),
|
|
142
|
+
universeCollisionType: z.enum(['InnerBox', 'OuterBox']),
|
|
143
|
+
universeJointPositioningType: z.enum(['Standard', 'ArtistIntent']),
|
|
172
144
|
engineAvatarSettings: z.string(),
|
|
173
145
|
isArchived: z.boolean(),
|
|
174
146
|
isFriendsOnly: z.boolean(),
|
|
175
147
|
genre: z.enum([
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
148
|
+
'All',
|
|
149
|
+
'Tutorial',
|
|
150
|
+
'Scary',
|
|
151
|
+
'TownAndCity',
|
|
152
|
+
'War',
|
|
153
|
+
'Funny',
|
|
154
|
+
'Fantasy',
|
|
155
|
+
'Adventure',
|
|
156
|
+
'SciFi',
|
|
157
|
+
'Pirate',
|
|
158
|
+
'FPS',
|
|
159
|
+
'RPG',
|
|
160
|
+
'Sports',
|
|
161
|
+
'Ninja',
|
|
162
|
+
'WildWest',
|
|
191
163
|
]),
|
|
192
164
|
playableDevices: z.array(
|
|
193
|
-
z.union([
|
|
194
|
-
z.literal(1),
|
|
195
|
-
z.literal(2),
|
|
196
|
-
z.literal(3),
|
|
197
|
-
z.literal(4),
|
|
198
|
-
z.literal(5),
|
|
199
|
-
z.literal(6),
|
|
200
|
-
])
|
|
165
|
+
z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(5), z.literal(6)]),
|
|
201
166
|
),
|
|
202
167
|
isForSale: z.boolean(),
|
|
203
168
|
price: z.number().int(),
|
|
204
|
-
universeAvatarAssetOverrides: z.array(
|
|
205
|
-
Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel
|
|
206
|
-
),
|
|
169
|
+
universeAvatarAssetOverrides: z.array(Roblox_Platform_UniverseSettings_UniverseAvatarAssetOverrideResponseModel),
|
|
207
170
|
universeAvatarMinScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
208
171
|
universeAvatarMaxScales: Roblox_Web_Responses_Avatar_ScaleModel,
|
|
209
172
|
studioAccessToApisAllowed: z.boolean(),
|
|
210
|
-
permissions:
|
|
211
|
-
Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
|
|
173
|
+
permissions: Roblox_UniversePluginPermissionAuthority_Models_UniversePluginPermissions,
|
|
212
174
|
isForSaleInFiat: z.boolean(),
|
|
213
175
|
fiatBasePriceId: z.string(),
|
|
214
|
-
fiatModerationStatus: z.enum([
|
|
215
|
-
|
|
216
|
-
"NotModerated",
|
|
217
|
-
"Pending",
|
|
218
|
-
"Approved",
|
|
219
|
-
"Rejected",
|
|
220
|
-
]),
|
|
221
|
-
audiences: z.array(
|
|
222
|
-
z.union([
|
|
223
|
-
z.literal(0),
|
|
224
|
-
z.literal(1),
|
|
225
|
-
z.literal(2),
|
|
226
|
-
z.literal(3),
|
|
227
|
-
z.literal(4),
|
|
228
|
-
])
|
|
229
|
-
),
|
|
176
|
+
fiatModerationStatus: z.enum(['Invalid', 'NotModerated', 'Pending', 'Approved', 'Rejected']),
|
|
177
|
+
audiences: z.array(z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)])),
|
|
230
178
|
demoModeEnabled: z.boolean(),
|
|
231
179
|
demoModeLastChangedTime: z.string().datetime({ offset: true }),
|
|
232
180
|
});
|
|
@@ -243,42 +191,41 @@ or granted by package permission.
|
|
|
243
191
|
* @param sortOrder Sort by version number, default is desc.
|
|
244
192
|
*/
|
|
245
193
|
export const getAssetsIdVersions = endpoint({
|
|
246
|
-
method:
|
|
247
|
-
path:
|
|
248
|
-
baseUrl:
|
|
249
|
-
requestFormat:
|
|
194
|
+
method: 'GET',
|
|
195
|
+
path: '/v2/assets/:id/versions',
|
|
196
|
+
baseUrl: 'https://develop.roblox.com',
|
|
197
|
+
requestFormat: 'json',
|
|
250
198
|
serializationMethod: {
|
|
251
199
|
id: {
|
|
252
|
-
style:
|
|
200
|
+
style: 'simple',
|
|
253
201
|
},
|
|
254
|
-
|
|
255
|
-
style:
|
|
202
|
+
'Roblox-Place-Id': {
|
|
203
|
+
style: 'simple',
|
|
256
204
|
},
|
|
257
205
|
limit: {
|
|
258
|
-
style:
|
|
206
|
+
style: 'form',
|
|
259
207
|
explode: true,
|
|
260
208
|
},
|
|
261
209
|
cursor: {
|
|
262
|
-
style:
|
|
210
|
+
style: 'form',
|
|
263
211
|
explode: true,
|
|
264
212
|
},
|
|
265
213
|
sortOrder: {
|
|
266
|
-
style:
|
|
214
|
+
style: 'form',
|
|
267
215
|
explode: true,
|
|
268
216
|
},
|
|
269
217
|
},
|
|
270
218
|
parameters: {
|
|
271
219
|
id: z.number().int(),
|
|
272
|
-
|
|
220
|
+
'Roblox-Place-Id': z.number().int(),
|
|
273
221
|
limit: z
|
|
274
222
|
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
275
223
|
.optional()
|
|
276
224
|
.default(10),
|
|
277
225
|
cursor: z.string().optional(),
|
|
278
|
-
sortOrder: z.enum([
|
|
226
|
+
sortOrder: z.enum(['Asc', 'Desc']).optional().default('Desc'),
|
|
279
227
|
},
|
|
280
|
-
response:
|
|
281
|
-
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Api_Develop_AssetVersion_,
|
|
228
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Api_Develop_AssetVersion_,
|
|
282
229
|
errors: [],
|
|
283
230
|
});
|
|
284
231
|
/**
|
|
@@ -287,13 +234,13 @@ export const getAssetsIdVersions = endpoint({
|
|
|
287
234
|
* @param placeId The place id for the place to be updated.
|
|
288
235
|
*/
|
|
289
236
|
export const getPlacesPlaceid = endpoint({
|
|
290
|
-
method:
|
|
291
|
-
path:
|
|
292
|
-
baseUrl:
|
|
293
|
-
requestFormat:
|
|
237
|
+
method: 'GET',
|
|
238
|
+
path: '/v2/places/:placeId',
|
|
239
|
+
baseUrl: 'https://develop.roblox.com',
|
|
240
|
+
requestFormat: 'json',
|
|
294
241
|
serializationMethod: {
|
|
295
242
|
placeId: {
|
|
296
|
-
style:
|
|
243
|
+
style: 'simple',
|
|
297
244
|
},
|
|
298
245
|
},
|
|
299
246
|
parameters: {
|
|
@@ -322,14 +269,14 @@ export const getPlacesPlaceid = endpoint({
|
|
|
322
269
|
* @param placeId The place id for the place to be updated.
|
|
323
270
|
*/
|
|
324
271
|
export const patchPlacesPlaceid = endpoint({
|
|
325
|
-
method:
|
|
326
|
-
path:
|
|
327
|
-
baseUrl:
|
|
328
|
-
requestFormat:
|
|
272
|
+
method: 'PATCH',
|
|
273
|
+
path: '/v2/places/:placeId',
|
|
274
|
+
baseUrl: 'https://develop.roblox.com',
|
|
275
|
+
requestFormat: 'json',
|
|
329
276
|
serializationMethod: {
|
|
330
277
|
body: {},
|
|
331
278
|
placeId: {
|
|
332
|
-
style:
|
|
279
|
+
style: 'simple',
|
|
333
280
|
},
|
|
334
281
|
},
|
|
335
282
|
parameters: {
|
|
@@ -360,16 +307,16 @@ export const patchPlacesPlaceid = endpoint({
|
|
|
360
307
|
* @param gameId the Guid of the game instance System.Guid
|
|
361
308
|
*/
|
|
362
309
|
export const deleteTeamtestPlaceid = endpoint({
|
|
363
|
-
method:
|
|
364
|
-
path:
|
|
365
|
-
baseUrl:
|
|
366
|
-
requestFormat:
|
|
310
|
+
method: 'DELETE',
|
|
311
|
+
path: '/v2/teamtest/:placeId',
|
|
312
|
+
baseUrl: 'https://develop.roblox.com',
|
|
313
|
+
requestFormat: 'json',
|
|
367
314
|
serializationMethod: {
|
|
368
315
|
placeId: {
|
|
369
|
-
style:
|
|
316
|
+
style: 'simple',
|
|
370
317
|
},
|
|
371
318
|
gameId: {
|
|
372
|
-
style:
|
|
319
|
+
style: 'form',
|
|
373
320
|
explode: true,
|
|
374
321
|
},
|
|
375
322
|
},
|
|
@@ -397,14 +344,14 @@ V2 Contains data for avatar scale and asset override.
|
|
|
397
344
|
* @param universeId The universeId.
|
|
398
345
|
*/
|
|
399
346
|
export const patchUniversesUniverseidConfiguration = endpoint({
|
|
400
|
-
method:
|
|
401
|
-
path:
|
|
402
|
-
baseUrl:
|
|
403
|
-
requestFormat:
|
|
347
|
+
method: 'PATCH',
|
|
348
|
+
path: '/v2/universes/:universeId/configuration',
|
|
349
|
+
baseUrl: 'https://develop.roblox.com',
|
|
350
|
+
requestFormat: 'json',
|
|
404
351
|
serializationMethod: {
|
|
405
352
|
body: {},
|
|
406
353
|
universeId: {
|
|
407
|
-
style:
|
|
354
|
+
style: 'simple',
|
|
408
355
|
},
|
|
409
356
|
},
|
|
410
357
|
parameters: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = z.object({
|
|
5
|
-
dataGranularity: z.enum([
|
|
5
|
+
dataGranularity: z.enum(['Hourly', 'Daily', 'Monthly']),
|
|
6
6
|
data: z.array(z.array(z.number())),
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -15,30 +15,30 @@ const Roblox_EconomyCreatorStats_Api_Models_StatisticsResponse = z.object({
|
|
|
15
15
|
* @param EndTime
|
|
16
16
|
*/
|
|
17
17
|
export const getUniversesUniverseidStats = endpoint({
|
|
18
|
-
method:
|
|
19
|
-
path:
|
|
20
|
-
baseUrl:
|
|
21
|
-
requestFormat:
|
|
18
|
+
method: 'GET',
|
|
19
|
+
path: '/v1/universes/:universeId/stats',
|
|
20
|
+
baseUrl: 'https://economycreatorstats.roblox.com',
|
|
21
|
+
requestFormat: 'json',
|
|
22
22
|
serializationMethod: {
|
|
23
23
|
universeId: {
|
|
24
|
-
style:
|
|
24
|
+
style: 'simple',
|
|
25
25
|
},
|
|
26
26
|
Type: {
|
|
27
|
-
style:
|
|
27
|
+
style: 'form',
|
|
28
28
|
explode: true,
|
|
29
29
|
},
|
|
30
30
|
StartTime: {
|
|
31
|
-
style:
|
|
31
|
+
style: 'form',
|
|
32
32
|
explode: true,
|
|
33
33
|
},
|
|
34
34
|
EndTime: {
|
|
35
|
-
style:
|
|
35
|
+
style: 'form',
|
|
36
36
|
explode: true,
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
parameters: {
|
|
40
40
|
universeId: z.number().int(),
|
|
41
|
-
Type: z.enum([
|
|
41
|
+
Type: z.enum(['PremiumUpsells', 'PremiumVisits']),
|
|
42
42
|
StartTime: z.string().datetime({ offset: true }),
|
|
43
43
|
EndTime: z.string().datetime({ offset: true }),
|
|
44
44
|
},
|
|
@@ -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_Economy_CurrencyResponse = z.object({
|
|
5
5
|
robux: z.number().int(),
|
|
@@ -11,10 +11,10 @@ const Roblox_Web_Responses_Economy_CurrencyResponse = z.object({
|
|
|
11
11
|
* @description Currency can only be retrieved for the authenticated user.
|
|
12
12
|
*/
|
|
13
13
|
export const getUserCurrency = endpoint({
|
|
14
|
-
method:
|
|
15
|
-
path:
|
|
16
|
-
baseUrl:
|
|
17
|
-
requestFormat:
|
|
14
|
+
method: 'GET',
|
|
15
|
+
path: '/v1/user/currency',
|
|
16
|
+
baseUrl: 'https://economy.roblox.com',
|
|
17
|
+
requestFormat: 'json',
|
|
18
18
|
response: z.object({ robux: z.number().int() }),
|
|
19
19
|
errors: [
|
|
20
20
|
{
|
|
@@ -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_EngagementPayouts_Api_PayoutResponseModel = z.object({
|
|
5
5
|
engagementScore: z.number(),
|
|
@@ -16,21 +16,21 @@ const Roblox_EngagementPayouts_Api_PayoutResponseModel = z.object({
|
|
|
16
16
|
* @param endDate The last date in the range, specified as yyyy-MM-dd.
|
|
17
17
|
*/
|
|
18
18
|
export const getUniversePayoutHistory = endpoint({
|
|
19
|
-
method:
|
|
20
|
-
path:
|
|
21
|
-
baseUrl:
|
|
22
|
-
requestFormat:
|
|
19
|
+
method: 'GET',
|
|
20
|
+
path: '/v1/universe-payout-history',
|
|
21
|
+
baseUrl: 'https://engagementpayouts.roblox.com',
|
|
22
|
+
requestFormat: 'json',
|
|
23
23
|
serializationMethod: {
|
|
24
24
|
universeId: {
|
|
25
|
-
style:
|
|
25
|
+
style: 'form',
|
|
26
26
|
explode: true,
|
|
27
27
|
},
|
|
28
28
|
startDate: {
|
|
29
|
-
style:
|
|
29
|
+
style: 'form',
|
|
30
30
|
explode: true,
|
|
31
31
|
},
|
|
32
32
|
endDate: {
|
|
33
|
-
style:
|
|
33
|
+
style: 'form',
|
|
34
34
|
explode: true,
|
|
35
35
|
},
|
|
36
36
|
},
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_Followings_Api_Models_UserFollowingUniverseResponse = z.object({
|
|
5
5
|
universeId: z.number().int(),
|
|
6
6
|
userId: z.number().int(),
|
|
7
7
|
});
|
|
8
|
-
const Roblox_Followings_Api_Models_UserFollowingUniverseStatusResponse =
|
|
9
|
-
z.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
8
|
+
const Roblox_Followings_Api_Models_UserFollowingUniverseStatusResponse = z.object({
|
|
9
|
+
UniverseId: z.number().int(),
|
|
10
|
+
UserId: z.number().int(),
|
|
11
|
+
CanFollow: z.boolean(),
|
|
12
|
+
IsFollowing: z.boolean(),
|
|
13
|
+
FollowingCountByType: z.number().int(),
|
|
14
|
+
FollowingLimitByType: z.number().int(),
|
|
15
|
+
});
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* @api GET https://followings.roblox.com/v1/users/:userId/universes
|
|
@@ -21,13 +20,13 @@ const Roblox_Followings_Api_Models_UserFollowingUniverseStatusResponse =
|
|
|
21
20
|
* @param userId
|
|
22
21
|
*/
|
|
23
22
|
export const getUsersUseridUniverses = endpoint({
|
|
24
|
-
method:
|
|
25
|
-
path:
|
|
26
|
-
baseUrl:
|
|
27
|
-
requestFormat:
|
|
23
|
+
method: 'GET',
|
|
24
|
+
path: '/v1/users/:userId/universes',
|
|
25
|
+
baseUrl: 'https://followings.roblox.com',
|
|
26
|
+
requestFormat: 'json',
|
|
28
27
|
serializationMethod: {
|
|
29
28
|
userId: {
|
|
30
|
-
style:
|
|
29
|
+
style: 'simple',
|
|
31
30
|
},
|
|
32
31
|
},
|
|
33
32
|
parameters: {
|
|
@@ -52,16 +51,16 @@ export const getUsersUseridUniverses = endpoint({
|
|
|
52
51
|
* @param universeId
|
|
53
52
|
*/
|
|
54
53
|
export const postUsersUseridUniversesUniverseid = endpoint({
|
|
55
|
-
method:
|
|
56
|
-
path:
|
|
57
|
-
baseUrl:
|
|
58
|
-
requestFormat:
|
|
54
|
+
method: 'POST',
|
|
55
|
+
path: '/v1/users/:userId/universes/:universeId',
|
|
56
|
+
baseUrl: 'https://followings.roblox.com',
|
|
57
|
+
requestFormat: 'json',
|
|
59
58
|
serializationMethod: {
|
|
60
59
|
userId: {
|
|
61
|
-
style:
|
|
60
|
+
style: 'simple',
|
|
62
61
|
},
|
|
63
62
|
universeId: {
|
|
64
|
-
style:
|
|
63
|
+
style: 'simple',
|
|
65
64
|
},
|
|
66
65
|
},
|
|
67
66
|
parameters: {
|
|
@@ -92,16 +91,16 @@ export const postUsersUseridUniversesUniverseid = endpoint({
|
|
|
92
91
|
* @param universeId
|
|
93
92
|
*/
|
|
94
93
|
export const deleteUsersUseridUniversesUniverseid = endpoint({
|
|
95
|
-
method:
|
|
96
|
-
path:
|
|
97
|
-
baseUrl:
|
|
98
|
-
requestFormat:
|
|
94
|
+
method: 'DELETE',
|
|
95
|
+
path: '/v1/users/:userId/universes/:universeId',
|
|
96
|
+
baseUrl: 'https://followings.roblox.com',
|
|
97
|
+
requestFormat: 'json',
|
|
99
98
|
serializationMethod: {
|
|
100
99
|
userId: {
|
|
101
|
-
style:
|
|
100
|
+
style: 'simple',
|
|
102
101
|
},
|
|
103
102
|
universeId: {
|
|
104
|
-
style:
|
|
103
|
+
style: 'simple',
|
|
105
104
|
},
|
|
106
105
|
},
|
|
107
106
|
parameters: {
|
|
@@ -128,16 +127,16 @@ export const deleteUsersUseridUniversesUniverseid = endpoint({
|
|
|
128
127
|
* @param universeId
|
|
129
128
|
*/
|
|
130
129
|
export const getUsersUseridUniversesUniverseidStatus = endpoint({
|
|
131
|
-
method:
|
|
132
|
-
path:
|
|
133
|
-
baseUrl:
|
|
134
|
-
requestFormat:
|
|
130
|
+
method: 'GET',
|
|
131
|
+
path: '/v1/users/:userId/universes/:universeId/status',
|
|
132
|
+
baseUrl: 'https://followings.roblox.com',
|
|
133
|
+
requestFormat: 'json',
|
|
135
134
|
serializationMethod: {
|
|
136
135
|
userId: {
|
|
137
|
-
style:
|
|
136
|
+
style: 'simple',
|
|
138
137
|
},
|
|
139
138
|
universeId: {
|
|
140
|
-
style:
|
|
139
|
+
style: 'simple',
|
|
141
140
|
},
|
|
142
141
|
},
|
|
143
142
|
parameters: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const Roblox_Followings_Api_Models_FollowsByTypeResponse = z.object({
|
|
5
|
-
followerType: z.enum([
|
|
5
|
+
followerType: z.enum(['Invalid', 'User']),
|
|
6
6
|
followerId: z.number().int(),
|
|
7
|
-
sourceType: z.enum([
|
|
7
|
+
sourceType: z.enum(['Invalid', 'Universe']),
|
|
8
8
|
followedSources: z.string().datetime({ offset: true }),
|
|
9
9
|
});
|
|
10
10
|
|
|
@@ -14,13 +14,13 @@ const Roblox_Followings_Api_Models_FollowsByTypeResponse = z.object({
|
|
|
14
14
|
* @param userId The user ID.
|
|
15
15
|
*/
|
|
16
16
|
export const getUsersUseridUniverses = endpoint({
|
|
17
|
-
method:
|
|
18
|
-
path:
|
|
19
|
-
baseUrl:
|
|
20
|
-
requestFormat:
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/v2/users/:userId/universes',
|
|
19
|
+
baseUrl: 'https://followings.roblox.com',
|
|
20
|
+
requestFormat: 'json',
|
|
21
21
|
serializationMethod: {
|
|
22
22
|
userId: {
|
|
23
|
-
style:
|
|
23
|
+
style: 'simple',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
parameters: {
|