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_Notifications_Models_ChromeManifestModel = z.object({
|
|
5
5
|
name: z.string(),
|
|
@@ -17,34 +17,30 @@ const Roblox_Api_Notifications_Models_UserPushDestination = z.object({
|
|
|
17
17
|
userPushNotificationDestinationId: z.number().int(),
|
|
18
18
|
application: z.string(),
|
|
19
19
|
platform: z.enum([
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
'ChromeOnDesktop',
|
|
21
|
+
'AndroidNative',
|
|
22
|
+
'FirefoxOnDesktop',
|
|
23
|
+
'IOSNative',
|
|
24
|
+
'AndroidAmazon',
|
|
25
|
+
'IOSTencent',
|
|
26
|
+
'AndroidTencentService',
|
|
27
|
+
'IOSPushKit',
|
|
28
28
|
]),
|
|
29
29
|
});
|
|
30
|
-
const Roblox_Api_Notifications_Models_GetCurrentPushDestinationResponseModel =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
z.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
detail: z.object({}),
|
|
45
|
-
fallbackDelivered: z.boolean(),
|
|
46
|
-
}
|
|
47
|
-
);
|
|
30
|
+
const Roblox_Api_Notifications_Models_GetCurrentPushDestinationResponseModel = z.object({
|
|
31
|
+
destination: Roblox_Api_Notifications_Models_UserPushDestination,
|
|
32
|
+
statusMessage: z.string(),
|
|
33
|
+
});
|
|
34
|
+
const Roblox_Api_Notifications_Models_GetPushDestinationsResponseModel = z.object({
|
|
35
|
+
destinations: z.array(Roblox_Api_Notifications_Models_UserPushDestination),
|
|
36
|
+
statusMessage: z.string(),
|
|
37
|
+
});
|
|
38
|
+
const Roblox_Api_Notifications_Models_PushNotificationClientMetadata = z.object({
|
|
39
|
+
notificationId: z.string().uuid(),
|
|
40
|
+
type: z.string(),
|
|
41
|
+
detail: z.object({}),
|
|
42
|
+
fallbackDelivered: z.boolean(),
|
|
43
|
+
});
|
|
48
44
|
const Roblox_Api_Notifications_Models_GetMetadataResponseModel = z.object({
|
|
49
45
|
metadata: Roblox_Api_Notifications_Models_PushNotificationClientMetadata,
|
|
50
46
|
statusMessage: z.string(),
|
|
@@ -57,43 +53,41 @@ const Roblox_Api_Notifications_Models_GameUpdateNotificationModel = z.object({
|
|
|
57
53
|
content: z.string(),
|
|
58
54
|
universeName: z.string(),
|
|
59
55
|
});
|
|
60
|
-
const Roblox_Api_Notifications_Models_NotificationStreamEntriesModel = z.object(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
z.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
{ unreadNotifications: z.number().int(), statusMessage: z.string() }
|
|
96
|
-
);
|
|
56
|
+
const Roblox_Api_Notifications_Models_NotificationStreamEntriesModel = z.object({
|
|
57
|
+
id: z.string().uuid(),
|
|
58
|
+
notificationSourceType: z.enum([
|
|
59
|
+
'Test',
|
|
60
|
+
'FriendRequestReceived',
|
|
61
|
+
'FriendRequestAccepted',
|
|
62
|
+
'PartyInviteReceived',
|
|
63
|
+
'PartyMemberJoined',
|
|
64
|
+
'ChatNewMessage',
|
|
65
|
+
'PrivateMessageReceived',
|
|
66
|
+
'UserAddedToPrivateServerWhiteList',
|
|
67
|
+
'ConversationUniverseChanged',
|
|
68
|
+
'TeamCreateInvite',
|
|
69
|
+
'GameUpdate',
|
|
70
|
+
'DeveloperMetricsAvailable',
|
|
71
|
+
'GroupJoinRequestAccepted',
|
|
72
|
+
'Sendr',
|
|
73
|
+
'ExperienceInvitation',
|
|
74
|
+
]),
|
|
75
|
+
eventDate: z.string().datetime({ offset: true }),
|
|
76
|
+
timestamp: z.string(),
|
|
77
|
+
isInteracted: z.boolean(),
|
|
78
|
+
metadataCollection: z.array(z.object({})),
|
|
79
|
+
eventCount: z.number().int(),
|
|
80
|
+
content: z.object({}).passthrough(),
|
|
81
|
+
});
|
|
82
|
+
const Roblox_Api_Notifications_Models_ResponseModels_NotificationStreamMetadataResponse = z.object({
|
|
83
|
+
bannerDismissTimeSpan: z.number().int(),
|
|
84
|
+
signalRDisconnectionResponseInMilliseconds: z.number().int(),
|
|
85
|
+
canLaunchGameFromGameUpdate: z.boolean(),
|
|
86
|
+
});
|
|
87
|
+
const Roblox_Api_Notifications_Models_UnreadStreamNotificationsModel = z.object({
|
|
88
|
+
unreadNotifications: z.number().int(),
|
|
89
|
+
statusMessage: z.string(),
|
|
90
|
+
});
|
|
97
91
|
const Roblox_Api_Notifications_Models_SuccessResponseModel = z.object({
|
|
98
92
|
statusMessage: z.string(),
|
|
99
93
|
});
|
|
@@ -109,14 +103,14 @@ const Roblox_Api_Notifications_Models_PushNotificationRegistration = z.object({
|
|
|
109
103
|
notificationToken: z.string(),
|
|
110
104
|
application: z.string(),
|
|
111
105
|
platform: z.enum([
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
106
|
+
'ChromeOnDesktop',
|
|
107
|
+
'AndroidNative',
|
|
108
|
+
'FirefoxOnDesktop',
|
|
109
|
+
'IOSNative',
|
|
110
|
+
'AndroidAmazon',
|
|
111
|
+
'IOSTencent',
|
|
112
|
+
'AndroidTencentService',
|
|
113
|
+
'IOSPushKit',
|
|
120
114
|
]),
|
|
121
115
|
});
|
|
122
116
|
const Roblox_Api_Notifications_Models_RegistrationResponseModel = z.object({
|
|
@@ -130,25 +124,23 @@ const Roblox_Api_Notifications_Models_RegisterIOSNativeRequestModel = z.object({
|
|
|
130
124
|
oldNotificationToken: z.string(),
|
|
131
125
|
deviceName: z.string(),
|
|
132
126
|
});
|
|
133
|
-
const Roblox_Api_Notifications_Models_RegisterIOSPushKitRequestModel = z.object(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
);
|
|
127
|
+
const Roblox_Api_Notifications_Models_RegisterIOSPushKitRequestModel = z.object({
|
|
128
|
+
notificationToken: z.string(),
|
|
129
|
+
destinationIdentifier: z.string(),
|
|
130
|
+
authorizeForUser: z.boolean(),
|
|
131
|
+
oldNotificationToken: z.string(),
|
|
132
|
+
deviceName: z.string(),
|
|
133
|
+
});
|
|
142
134
|
|
|
143
135
|
/**
|
|
144
136
|
* @api GET https://notifications.roblox.com/v2/push-notifications/chrome-manifest
|
|
145
137
|
* @summary Get Chrome Manifest to link GCM project to Chrome Browser
|
|
146
138
|
*/
|
|
147
139
|
export const getPushNotificationsChromeManifest = endpoint({
|
|
148
|
-
method:
|
|
149
|
-
path:
|
|
150
|
-
baseUrl:
|
|
151
|
-
requestFormat:
|
|
140
|
+
method: 'GET',
|
|
141
|
+
path: '/v2/push-notifications/chrome-manifest',
|
|
142
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
143
|
+
requestFormat: 'json',
|
|
152
144
|
response: Roblox_Api_Notifications_Models_ChromeManifestModel,
|
|
153
145
|
errors: [
|
|
154
146
|
{
|
|
@@ -162,10 +154,10 @@ export const getPushNotificationsChromeManifest = endpoint({
|
|
|
162
154
|
* @summary De-register all devices to disable push notifications
|
|
163
155
|
*/
|
|
164
156
|
export const postPushNotificationsDeregisterAllDevices = endpoint({
|
|
165
|
-
method:
|
|
166
|
-
path:
|
|
167
|
-
baseUrl:
|
|
168
|
-
requestFormat:
|
|
157
|
+
method: 'POST',
|
|
158
|
+
path: '/v2/push-notifications/deregister-all-devices',
|
|
159
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
160
|
+
requestFormat: 'json',
|
|
169
161
|
response: z.object({ statusMessage: z.string() }),
|
|
170
162
|
errors: [
|
|
171
163
|
{
|
|
@@ -183,10 +175,10 @@ export const postPushNotificationsDeregisterAllDevices = endpoint({
|
|
|
183
175
|
* @summary De-register current device to disable push notifications
|
|
184
176
|
*/
|
|
185
177
|
export const postPushNotificationsDeregisterCurrentDevice = endpoint({
|
|
186
|
-
method:
|
|
187
|
-
path:
|
|
188
|
-
baseUrl:
|
|
189
|
-
requestFormat:
|
|
178
|
+
method: 'POST',
|
|
179
|
+
path: '/v2/push-notifications/deregister-current-device',
|
|
180
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
181
|
+
requestFormat: 'json',
|
|
190
182
|
response: z.object({ statusMessage: z.string() }),
|
|
191
183
|
errors: [
|
|
192
184
|
{
|
|
@@ -204,10 +196,10 @@ export const postPushNotificationsDeregisterCurrentDevice = endpoint({
|
|
|
204
196
|
* @summary De-register current device to disable pushkit notifications
|
|
205
197
|
*/
|
|
206
198
|
export const postPushNotificationsDeregisterCurrentDeviceIosPushkit = endpoint({
|
|
207
|
-
method:
|
|
208
|
-
path:
|
|
209
|
-
baseUrl:
|
|
210
|
-
requestFormat:
|
|
199
|
+
method: 'POST',
|
|
200
|
+
path: '/v2/push-notifications/deregister-current-device-ios-pushkit',
|
|
201
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
202
|
+
requestFormat: 'json',
|
|
211
203
|
response: z.object({ statusMessage: z.string() }),
|
|
212
204
|
errors: [
|
|
213
205
|
{
|
|
@@ -225,12 +217,11 @@ export const postPushNotificationsDeregisterCurrentDeviceIosPushkit = endpoint({
|
|
|
225
217
|
* @summary Gets the current device destination
|
|
226
218
|
*/
|
|
227
219
|
export const getPushNotificationsGetCurrentDeviceDestination = endpoint({
|
|
228
|
-
method:
|
|
229
|
-
path:
|
|
230
|
-
baseUrl:
|
|
231
|
-
requestFormat:
|
|
232
|
-
response:
|
|
233
|
-
Roblox_Api_Notifications_Models_GetCurrentPushDestinationResponseModel,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
path: '/v2/push-notifications/get-current-device-destination',
|
|
222
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
223
|
+
requestFormat: 'json',
|
|
224
|
+
response: Roblox_Api_Notifications_Models_GetCurrentPushDestinationResponseModel,
|
|
234
225
|
errors: [
|
|
235
226
|
{
|
|
236
227
|
status: 401,
|
|
@@ -243,10 +234,10 @@ export const getPushNotificationsGetCurrentDeviceDestination = endpoint({
|
|
|
243
234
|
* @summary Gets valid destinations associated with the signed user
|
|
244
235
|
*/
|
|
245
236
|
export const getPushNotificationsGetDestinations = endpoint({
|
|
246
|
-
method:
|
|
247
|
-
path:
|
|
248
|
-
baseUrl:
|
|
249
|
-
requestFormat:
|
|
237
|
+
method: 'GET',
|
|
238
|
+
path: '/v2/push-notifications/get-destinations',
|
|
239
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
240
|
+
requestFormat: 'json',
|
|
250
241
|
response: Roblox_Api_Notifications_Models_GetPushDestinationsResponseModel,
|
|
251
242
|
errors: [
|
|
252
243
|
{
|
|
@@ -262,17 +253,17 @@ export const getPushNotificationsGetDestinations = endpoint({
|
|
|
262
253
|
* @param notificationId Id of the specified notification
|
|
263
254
|
*/
|
|
264
255
|
export const getPushNotificationsMetadata = endpoint({
|
|
265
|
-
method:
|
|
266
|
-
path:
|
|
267
|
-
baseUrl:
|
|
268
|
-
requestFormat:
|
|
256
|
+
method: 'GET',
|
|
257
|
+
path: '/v2/push-notifications/metadata',
|
|
258
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
259
|
+
requestFormat: 'json',
|
|
269
260
|
serializationMethod: {
|
|
270
261
|
notificationToken: {
|
|
271
|
-
style:
|
|
262
|
+
style: 'form',
|
|
272
263
|
explode: true,
|
|
273
264
|
},
|
|
274
265
|
notificationId: {
|
|
275
|
-
style:
|
|
266
|
+
style: 'form',
|
|
276
267
|
explode: true,
|
|
277
268
|
},
|
|
278
269
|
},
|
|
@@ -294,10 +285,10 @@ export const getPushNotificationsMetadata = endpoint({
|
|
|
294
285
|
* @param body
|
|
295
286
|
*/
|
|
296
287
|
export const postPushNotificationsRegisterAndroidNative = endpoint({
|
|
297
|
-
method:
|
|
298
|
-
path:
|
|
299
|
-
baseUrl:
|
|
300
|
-
requestFormat:
|
|
288
|
+
method: 'POST',
|
|
289
|
+
path: '/v2/push-notifications/register-android-native',
|
|
290
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
291
|
+
requestFormat: 'json',
|
|
301
292
|
serializationMethod: {
|
|
302
293
|
body: {},
|
|
303
294
|
},
|
|
@@ -321,10 +312,10 @@ export const postPushNotificationsRegisterAndroidNative = endpoint({
|
|
|
321
312
|
* @param body
|
|
322
313
|
*/
|
|
323
314
|
export const postPushNotificationsRegisterIosNative = endpoint({
|
|
324
|
-
method:
|
|
325
|
-
path:
|
|
326
|
-
baseUrl:
|
|
327
|
-
requestFormat:
|
|
315
|
+
method: 'POST',
|
|
316
|
+
path: '/v2/push-notifications/register-ios-native',
|
|
317
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
318
|
+
requestFormat: 'json',
|
|
328
319
|
serializationMethod: {
|
|
329
320
|
body: {},
|
|
330
321
|
},
|
|
@@ -348,10 +339,10 @@ export const postPushNotificationsRegisterIosNative = endpoint({
|
|
|
348
339
|
* @param body
|
|
349
340
|
*/
|
|
350
341
|
export const postPushNotificationsRegisterIosPushkit = endpoint({
|
|
351
|
-
method:
|
|
352
|
-
path:
|
|
353
|
-
baseUrl:
|
|
354
|
-
requestFormat:
|
|
342
|
+
method: 'POST',
|
|
343
|
+
path: '/v2/push-notifications/register-ios-pushkit',
|
|
344
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
345
|
+
requestFormat: 'json',
|
|
355
346
|
serializationMethod: {
|
|
356
347
|
body: {},
|
|
357
348
|
},
|
|
@@ -374,10 +365,10 @@ export const postPushNotificationsRegisterIosPushkit = endpoint({
|
|
|
374
365
|
* @summary Clears the unread Notification stream count
|
|
375
366
|
*/
|
|
376
367
|
export const postStreamNotificationsClearUnread = endpoint({
|
|
377
|
-
method:
|
|
378
|
-
path:
|
|
379
|
-
baseUrl:
|
|
380
|
-
requestFormat:
|
|
368
|
+
method: 'POST',
|
|
369
|
+
path: '/v2/stream-notifications/clear-unread',
|
|
370
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
371
|
+
requestFormat: 'json',
|
|
381
372
|
response: z.object({ statusMessage: z.string() }),
|
|
382
373
|
errors: [
|
|
383
374
|
{
|
|
@@ -397,17 +388,17 @@ export const postStreamNotificationsClearUnread = endpoint({
|
|
|
397
388
|
* @param sinceDateTime For retrieving only updates that created after a time point.
|
|
398
389
|
*/
|
|
399
390
|
export const getStreamNotificationsGetLatestGameUpdates = endpoint({
|
|
400
|
-
method:
|
|
401
|
-
path:
|
|
402
|
-
baseUrl:
|
|
403
|
-
requestFormat:
|
|
391
|
+
method: 'GET',
|
|
392
|
+
path: '/v2/stream-notifications/get-latest-game-updates',
|
|
393
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
394
|
+
requestFormat: 'json',
|
|
404
395
|
serializationMethod: {
|
|
405
396
|
universeIds: {
|
|
406
|
-
style:
|
|
397
|
+
style: 'form',
|
|
407
398
|
explode: true,
|
|
408
399
|
},
|
|
409
400
|
sinceDateTime: {
|
|
410
|
-
style:
|
|
401
|
+
style: 'form',
|
|
411
402
|
explode: true,
|
|
412
403
|
},
|
|
413
404
|
},
|
|
@@ -415,9 +406,7 @@ export const getStreamNotificationsGetLatestGameUpdates = endpoint({
|
|
|
415
406
|
universeIds: z.array(z.number()),
|
|
416
407
|
sinceDateTime: z.string().datetime({ offset: true }).optional(),
|
|
417
408
|
},
|
|
418
|
-
response: z.array(
|
|
419
|
-
Roblox_Api_Notifications_Models_GameUpdateNotificationModel
|
|
420
|
-
),
|
|
409
|
+
response: z.array(Roblox_Api_Notifications_Models_GameUpdateNotificationModel),
|
|
421
410
|
errors: [
|
|
422
411
|
{
|
|
423
412
|
status: 401,
|
|
@@ -432,17 +421,17 @@ export const getStreamNotificationsGetLatestGameUpdates = endpoint({
|
|
|
432
421
|
* @param maxRows Number of entries to be returned. (Optional : Defaults to 10 entries)
|
|
433
422
|
*/
|
|
434
423
|
export const getStreamNotificationsGetRecent = endpoint({
|
|
435
|
-
method:
|
|
436
|
-
path:
|
|
437
|
-
baseUrl:
|
|
438
|
-
requestFormat:
|
|
424
|
+
method: 'GET',
|
|
425
|
+
path: '/v2/stream-notifications/get-recent',
|
|
426
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
427
|
+
requestFormat: 'json',
|
|
439
428
|
serializationMethod: {
|
|
440
429
|
startIndex: {
|
|
441
|
-
style:
|
|
430
|
+
style: 'form',
|
|
442
431
|
explode: true,
|
|
443
432
|
},
|
|
444
433
|
maxRows: {
|
|
445
|
-
style:
|
|
434
|
+
style: 'form',
|
|
446
435
|
explode: true,
|
|
447
436
|
},
|
|
448
437
|
},
|
|
@@ -450,9 +439,7 @@ export const getStreamNotificationsGetRecent = endpoint({
|
|
|
450
439
|
startIndex: z.number().int().optional(),
|
|
451
440
|
maxRows: z.number().int().optional().default(10),
|
|
452
441
|
},
|
|
453
|
-
response: z.array(
|
|
454
|
-
Roblox_Api_Notifications_Models_NotificationStreamEntriesModel
|
|
455
|
-
),
|
|
442
|
+
response: z.array(Roblox_Api_Notifications_Models_NotificationStreamEntriesModel),
|
|
456
443
|
errors: [
|
|
457
444
|
{
|
|
458
445
|
status: 401,
|
|
@@ -465,12 +452,11 @@ export const getStreamNotificationsGetRecent = endpoint({
|
|
|
465
452
|
* @summary Get Notification Stream metadata.
|
|
466
453
|
*/
|
|
467
454
|
export const getStreamNotificationsMetadata = endpoint({
|
|
468
|
-
method:
|
|
469
|
-
path:
|
|
470
|
-
baseUrl:
|
|
471
|
-
requestFormat:
|
|
472
|
-
response:
|
|
473
|
-
Roblox_Api_Notifications_Models_ResponseModels_NotificationStreamMetadataResponse,
|
|
455
|
+
method: 'GET',
|
|
456
|
+
path: '/v2/stream-notifications/metadata',
|
|
457
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
458
|
+
requestFormat: 'json',
|
|
459
|
+
response: Roblox_Api_Notifications_Models_ResponseModels_NotificationStreamMetadataResponse,
|
|
474
460
|
errors: [
|
|
475
461
|
{
|
|
476
462
|
status: 401,
|
|
@@ -483,10 +469,10 @@ export const getStreamNotificationsMetadata = endpoint({
|
|
|
483
469
|
* @summary Gets the count of unread Notification stream entries
|
|
484
470
|
*/
|
|
485
471
|
export const getStreamNotificationsUnreadCount = endpoint({
|
|
486
|
-
method:
|
|
487
|
-
path:
|
|
488
|
-
baseUrl:
|
|
489
|
-
requestFormat:
|
|
472
|
+
method: 'GET',
|
|
473
|
+
path: '/v2/stream-notifications/unread-count',
|
|
474
|
+
baseUrl: 'https://notifications.roblox.com',
|
|
475
|
+
requestFormat: 'json',
|
|
490
476
|
response: Roblox_Api_Notifications_Models_UnreadStreamNotificationsModel,
|
|
491
477
|
errors: [
|
|
492
478
|
{
|
|
@@ -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
|
/**
|
|
5
5
|
* @api GET https://premiumfeatures.roblox.com/v1/users/:userId/premium-upsell-precheck
|
|
@@ -9,20 +9,20 @@ import { endpoint } from "..";
|
|
|
9
9
|
* @param placeId
|
|
10
10
|
*/
|
|
11
11
|
export const getUsersUseridPremiumUpsellPrecheck = endpoint({
|
|
12
|
-
method:
|
|
13
|
-
path:
|
|
14
|
-
baseUrl:
|
|
15
|
-
requestFormat:
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/v1/users/:userId/premium-upsell-precheck',
|
|
14
|
+
baseUrl: 'https://premiumfeatures.roblox.com',
|
|
15
|
+
requestFormat: 'json',
|
|
16
16
|
serializationMethod: {
|
|
17
17
|
userId: {
|
|
18
|
-
style:
|
|
18
|
+
style: 'simple',
|
|
19
19
|
},
|
|
20
20
|
universeId: {
|
|
21
|
-
style:
|
|
21
|
+
style: 'form',
|
|
22
22
|
explode: true,
|
|
23
23
|
},
|
|
24
24
|
placeId: {
|
|
25
|
-
style:
|
|
25
|
+
style: 'form',
|
|
26
26
|
explode: true,
|
|
27
27
|
},
|
|
28
28
|
},
|
|
@@ -45,13 +45,13 @@ export const getUsersUseridPremiumUpsellPrecheck = endpoint({
|
|
|
45
45
|
* @param userId User ID
|
|
46
46
|
*/
|
|
47
47
|
export const getUsersUseridValidateMembership = endpoint({
|
|
48
|
-
method:
|
|
49
|
-
path:
|
|
50
|
-
baseUrl:
|
|
51
|
-
requestFormat:
|
|
48
|
+
method: 'GET',
|
|
49
|
+
path: '/v1/users/:userId/validate-membership',
|
|
50
|
+
baseUrl: 'https://premiumfeatures.roblox.com',
|
|
51
|
+
requestFormat: 'json',
|
|
52
52
|
serializationMethod: {
|
|
53
53
|
userId: {
|
|
54
|
-
style:
|
|
54
|
+
style: 'simple',
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
parameters: {
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
3
|
|
|
4
4
|
const UserPresenceRequest = z.object({
|
|
5
5
|
userIds: z.array(z.number()).nullable(),
|
|
6
6
|
});
|
|
7
7
|
const presence_users_body = UserPresenceRequest;
|
|
8
|
-
const PresenceType = z.union([
|
|
9
|
-
z.literal(0),
|
|
10
|
-
z.literal(1),
|
|
11
|
-
z.literal(2),
|
|
12
|
-
z.literal(3),
|
|
13
|
-
]);
|
|
8
|
+
const PresenceType = z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)]);
|
|
14
9
|
const UserPresence = z.object({
|
|
15
10
|
userPresenceType: PresenceType,
|
|
16
11
|
lastLocation: z.string().nullable(),
|
|
@@ -34,10 +29,10 @@ const ErrorResponse = z.object({ errors: z.array(Error).nullable() });
|
|
|
34
29
|
* @param body
|
|
35
30
|
*/
|
|
36
31
|
export const postPresenceUsers = endpoint({
|
|
37
|
-
method:
|
|
38
|
-
path:
|
|
39
|
-
baseUrl:
|
|
40
|
-
requestFormat:
|
|
32
|
+
method: 'POST',
|
|
33
|
+
path: '/v1/presence/users',
|
|
34
|
+
baseUrl: 'https://presence.roblox.com',
|
|
35
|
+
requestFormat: 'json',
|
|
41
36
|
serializationMethod: {
|
|
42
37
|
body: {},
|
|
43
38
|
},
|