rozod 3.1.0 → 3.1.2
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 +788 -0
- package/lib/endpoints/accountsettingsv1.d.ts +881 -0
- package/lib/endpoints/assetdeliveryv1.d.ts +847 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +849 -0
- package/lib/endpoints/authv1.d.ts +1615 -0
- package/lib/endpoints/authv2.d.ts +1374 -0
- package/lib/endpoints/authv3.d.ts +59 -0
- package/lib/endpoints/avatarv1.d.ts +936 -0
- package/lib/endpoints/avatarv2.d.ts +393 -0
- package/lib/endpoints/avatarv3.d.ts +279 -0
- package/lib/endpoints/badgesv1.d.ts +483 -0
- package/lib/endpoints/catalogv1.d.ts +1079 -0
- package/lib/endpoints/chatv2.d.ts +911 -0
- package/lib/endpoints/developv1.d.ts +1923 -0
- package/lib/endpoints/developv2.d.ts +418 -0
- package/lib/endpoints/economyv1.d.ts +32 -0
- package/lib/endpoints/friendsv1.d.ts +1124 -0
- package/lib/endpoints/gamejoinv1.d.ts +424 -0
- package/lib/endpoints/gamesv1.d.ts +1807 -0
- package/lib/endpoints/gamesv2.d.ts +389 -0
- package/lib/endpoints/groupsv1.d.ts +3438 -0
- package/lib/endpoints/groupsv2.d.ts +259 -0
- package/lib/endpoints/inventoryv1.d.ts +610 -0
- package/lib/endpoints/inventoryv2.d.ts +331 -0
- package/lib/endpoints/itemconfigurationv1.d.ts +563 -0
- package/lib/endpoints/presencev1.d.ts +116 -0
- package/lib/endpoints/privatemessagesv1.d.ts +420 -0
- package/lib/endpoints/thumbnailsv1.d.ts +1054 -0
- package/lib/endpoints/tradesv1.d.ts +534 -0
- package/lib/endpoints/translationsv1.d.ts +174 -0
- package/lib/endpoints/usersv1.d.ts +693 -0
- package/lib/index.d.ts +9 -9
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { endpoint } from '..';
|
|
3
|
+
|
|
4
|
+
const Roblox_AccountInformation_Api_Models_BirthdateResponse = z
|
|
5
|
+
.object({
|
|
6
|
+
birthMonth: z.number().int(),
|
|
7
|
+
birthDay: z.number().int(),
|
|
8
|
+
birthYear: z.number().int(),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
const Roblox_AccountInformation_Api_Models_BirthdateRequest = z
|
|
12
|
+
.object({
|
|
13
|
+
birthMonth: z.number().int(),
|
|
14
|
+
birthDay: z.number().int(),
|
|
15
|
+
birthYear: z.number().int(),
|
|
16
|
+
password: z.string(),
|
|
17
|
+
})
|
|
18
|
+
.passthrough();
|
|
19
|
+
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({}).passthrough();
|
|
20
|
+
const Roblox_AccountInformation_Api_Models_DescriptionResponse = z.object({ description: z.string() }).passthrough();
|
|
21
|
+
const Roblox_AccountInformation_Api_Models_DescriptionRequest = z.object({ description: z.string() }).passthrough();
|
|
22
|
+
const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({ gender: z.number().int() }).passthrough();
|
|
23
|
+
const Roblox_AccountInformation_Api_Models_GenderRequest = z.object({ gender: z.string() }).passthrough();
|
|
24
|
+
const Roblox_AccountInformation_Api_Models_MetadataResponse = z
|
|
25
|
+
.object({
|
|
26
|
+
isAllowedNotificationsEndpointDisabled: z.boolean(),
|
|
27
|
+
isAccountSettingsPolicyEnabled: z.boolean(),
|
|
28
|
+
isPhoneNumberEnabled: z.boolean(),
|
|
29
|
+
MaxUserDescriptionLength: z.number().int(),
|
|
30
|
+
isUserDescriptionEnabled: z.boolean(),
|
|
31
|
+
isUserBlockEndpointsUpdated: z.boolean(),
|
|
32
|
+
isPasswordRequiredForAgingDown: z.boolean(),
|
|
33
|
+
shouldUsePersonaForIdVerification: z.boolean(),
|
|
34
|
+
shouldDisplaySessionManagement: z.boolean(),
|
|
35
|
+
shouldUseSecurityReactUI: z.boolean(),
|
|
36
|
+
})
|
|
37
|
+
.passthrough();
|
|
38
|
+
const Roblox_AccountInformation_Api_Models_PhoneResponse = z
|
|
39
|
+
.object({
|
|
40
|
+
countryCode: z.string(),
|
|
41
|
+
prefix: z.string(),
|
|
42
|
+
phone: z.string(),
|
|
43
|
+
isVerified: z.boolean(),
|
|
44
|
+
verificationCodeLength: z.number().int(),
|
|
45
|
+
canBypassPasswordForPhoneUpdate: z.boolean(),
|
|
46
|
+
})
|
|
47
|
+
.passthrough();
|
|
48
|
+
const Roblox_AccountInformation_Api_Models_PhoneRequest = z
|
|
49
|
+
.object({
|
|
50
|
+
countryCode: z.string(),
|
|
51
|
+
prefix: z.string(),
|
|
52
|
+
phone: z.string(),
|
|
53
|
+
password: z.string(),
|
|
54
|
+
verificationChannel: z.string(),
|
|
55
|
+
})
|
|
56
|
+
.passthrough();
|
|
57
|
+
const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse = z
|
|
58
|
+
.object({ verificationChannel: z.string(), data: z.string() })
|
|
59
|
+
.passthrough();
|
|
60
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z
|
|
61
|
+
.object({
|
|
62
|
+
promotionChannelsVisibilityPrivacy: z.string(),
|
|
63
|
+
facebook: z.string(),
|
|
64
|
+
twitter: z.string(),
|
|
65
|
+
youtube: z.string(),
|
|
66
|
+
twitch: z.string(),
|
|
67
|
+
guilded: z.string(),
|
|
68
|
+
})
|
|
69
|
+
.passthrough();
|
|
70
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z
|
|
71
|
+
.object({
|
|
72
|
+
facebook: z.string(),
|
|
73
|
+
twitter: z.string(),
|
|
74
|
+
youtube: z.string(),
|
|
75
|
+
twitch: z.string(),
|
|
76
|
+
guilded: z.string(),
|
|
77
|
+
promotionChannelsVisibilityPrivacy: z.string(),
|
|
78
|
+
})
|
|
79
|
+
.passthrough();
|
|
80
|
+
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z
|
|
81
|
+
.object({ userId: z.number().int(), name: z.string(), code: z.string() })
|
|
82
|
+
.passthrough();
|
|
83
|
+
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = z.object({ code: z.string() }).passthrough();
|
|
84
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = z
|
|
85
|
+
.object({
|
|
86
|
+
facebook: z.string(),
|
|
87
|
+
twitter: z.string(),
|
|
88
|
+
youtube: z.string(),
|
|
89
|
+
twitch: z.string(),
|
|
90
|
+
guilded: z.string(),
|
|
91
|
+
})
|
|
92
|
+
.passthrough();
|
|
93
|
+
const Roblox_AccountInformation_Api_RobloxBadgeResponse = z
|
|
94
|
+
.object({
|
|
95
|
+
id: z.number().int(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
description: z.string(),
|
|
98
|
+
imageUrl: z.string(),
|
|
99
|
+
})
|
|
100
|
+
.passthrough();
|
|
101
|
+
const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = z
|
|
102
|
+
.object({ count: z.number().int() })
|
|
103
|
+
.passthrough();
|
|
104
|
+
const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = z.object({ ticket: z.string() }).passthrough();
|
|
105
|
+
const Roblox_AccountInformation_Api_Models_VerifyEmailResponse = z
|
|
106
|
+
.object({ verifiedUserHatAssetId: z.number().int() })
|
|
107
|
+
.passthrough();
|
|
108
|
+
const Roblox_AccountInformation_Api_Models_EmptyRequest = z.object({}).passthrough();
|
|
109
|
+
const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({ code: z.string() }).passthrough();
|
|
110
|
+
|
|
111
|
+
const schemas = {
|
|
112
|
+
Roblox_AccountInformation_Api_Models_BirthdateResponse,
|
|
113
|
+
Roblox_AccountInformation_Api_Models_BirthdateRequest,
|
|
114
|
+
Roblox_Web_WebAPI_ApiEmptyResponseModel,
|
|
115
|
+
Roblox_AccountInformation_Api_Models_DescriptionResponse,
|
|
116
|
+
Roblox_AccountInformation_Api_Models_DescriptionRequest,
|
|
117
|
+
Roblox_AccountInformation_Api_Models_GenderResponse,
|
|
118
|
+
Roblox_AccountInformation_Api_Models_GenderRequest,
|
|
119
|
+
Roblox_AccountInformation_Api_Models_MetadataResponse,
|
|
120
|
+
Roblox_AccountInformation_Api_Models_PhoneResponse,
|
|
121
|
+
Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
122
|
+
Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
123
|
+
Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
|
|
124
|
+
Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
|
|
125
|
+
Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
126
|
+
Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest,
|
|
127
|
+
Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
128
|
+
Roblox_AccountInformation_Api_RobloxBadgeResponse,
|
|
129
|
+
Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse,
|
|
130
|
+
Roblox_AccountInformation_Api_Models_VerifyEmailRequest,
|
|
131
|
+
Roblox_AccountInformation_Api_Models_VerifyEmailResponse,
|
|
132
|
+
Roblox_AccountInformation_Api_Models_EmptyRequest,
|
|
133
|
+
Roblox_AccountInformation_Api_Models_VerifyPhoneRequest,
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @api get https://accountinformation.roblox.com/v1/birthdate
|
|
138
|
+
*/
|
|
139
|
+
export const getBirthdate = endpoint({
|
|
140
|
+
method: 'get' as const,
|
|
141
|
+
path: '/v1/birthdate',
|
|
142
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
143
|
+
requestFormat: 'json' as const,
|
|
144
|
+
response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
|
|
145
|
+
errors: [
|
|
146
|
+
{
|
|
147
|
+
status: 400,
|
|
148
|
+
description: `1: User not found.`,
|
|
149
|
+
schema: z.void(),
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
status: 401,
|
|
153
|
+
description: `0: Authorization has been denied for this request.`,
|
|
154
|
+
schema: z.void(),
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* @api post https://accountinformation.roblox.com/v1/birthdate
|
|
160
|
+
* @param body The Roblox.AccountInformation.Api.Models.BirthdateRequest
|
|
161
|
+
*/
|
|
162
|
+
export const postBirthdate = endpoint({
|
|
163
|
+
method: 'post' as const,
|
|
164
|
+
path: '/v1/birthdate',
|
|
165
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
166
|
+
requestFormat: 'json' as const,
|
|
167
|
+
serializationMethod: {
|
|
168
|
+
body: {},
|
|
169
|
+
},
|
|
170
|
+
parameters: {},
|
|
171
|
+
body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
|
|
172
|
+
response: z.object({}).passthrough(),
|
|
173
|
+
errors: [
|
|
174
|
+
{
|
|
175
|
+
status: 400,
|
|
176
|
+
description: `1: User not found.
|
|
177
|
+
4: The birthdate provided is invalid.
|
|
178
|
+
8: Password is incorrect.`,
|
|
179
|
+
schema: z.void(),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
status: 401,
|
|
183
|
+
description: `0: Authorization has been denied for this request.`,
|
|
184
|
+
schema: z.void(),
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
status: 403,
|
|
188
|
+
description: `0: Token Validation Failed
|
|
189
|
+
2: PIN is locked.
|
|
190
|
+
5: Invalid birthdate change.`,
|
|
191
|
+
schema: z.void(),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
status: 500,
|
|
195
|
+
description: `0: An unknown error occured.
|
|
196
|
+
5: Invalid birthdate change.`,
|
|
197
|
+
schema: z.void(),
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
});
|
|
201
|
+
/**
|
|
202
|
+
* @api get https://accountinformation.roblox.com/v1/description
|
|
203
|
+
*/
|
|
204
|
+
export const getDescription = endpoint({
|
|
205
|
+
method: 'get' as const,
|
|
206
|
+
path: '/v1/description',
|
|
207
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
208
|
+
requestFormat: 'json' as const,
|
|
209
|
+
response: z.object({ description: z.string() }).passthrough(),
|
|
210
|
+
errors: [
|
|
211
|
+
{
|
|
212
|
+
status: 400,
|
|
213
|
+
description: `1: User not found.`,
|
|
214
|
+
schema: z.void(),
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
status: 401,
|
|
218
|
+
description: `0: Authorization has been denied for this request.`,
|
|
219
|
+
schema: z.void(),
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
});
|
|
223
|
+
/**
|
|
224
|
+
* @api post https://accountinformation.roblox.com/v1/description
|
|
225
|
+
* @param body The Roblox.AccountInformation.Api.Models.DescriptionRequest
|
|
226
|
+
*/
|
|
227
|
+
export const postDescription = endpoint({
|
|
228
|
+
method: 'post' as const,
|
|
229
|
+
path: '/v1/description',
|
|
230
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
231
|
+
requestFormat: 'json' as const,
|
|
232
|
+
serializationMethod: {
|
|
233
|
+
body: {},
|
|
234
|
+
},
|
|
235
|
+
parameters: {},
|
|
236
|
+
body: z.object({ description: z.string() }).passthrough(),
|
|
237
|
+
response: z.object({ description: z.string() }).passthrough(),
|
|
238
|
+
errors: [
|
|
239
|
+
{
|
|
240
|
+
status: 400,
|
|
241
|
+
description: `1: User not found.`,
|
|
242
|
+
schema: z.void(),
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
status: 401,
|
|
246
|
+
description: `0: Authorization has been denied for this request.`,
|
|
247
|
+
schema: z.void(),
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
status: 403,
|
|
251
|
+
description: `0: Token Validation Failed
|
|
252
|
+
2: PIN is locked.`,
|
|
253
|
+
schema: z.void(),
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
status: 500,
|
|
257
|
+
description: `0: An unknown error occured.`,
|
|
258
|
+
schema: z.void(),
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
status: 503,
|
|
262
|
+
description: `3: This feature is currently disabled. Please try again later.`,
|
|
263
|
+
schema: z.void(),
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
});
|
|
267
|
+
/**
|
|
268
|
+
* @api post https://accountinformation.roblox.com/v1/email/verify
|
|
269
|
+
* @param body Roblox.AccountInformation.Api.Models.VerifyEmailRequest
|
|
270
|
+
*/
|
|
271
|
+
export const postEmailVerify = endpoint({
|
|
272
|
+
method: 'post' as const,
|
|
273
|
+
path: '/v1/email/verify',
|
|
274
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
275
|
+
requestFormat: 'json' as const,
|
|
276
|
+
serializationMethod: {
|
|
277
|
+
body: {},
|
|
278
|
+
},
|
|
279
|
+
parameters: {},
|
|
280
|
+
body: z.object({ ticket: z.string() }).passthrough(),
|
|
281
|
+
response: z.object({ verifiedUserHatAssetId: z.number().int() }).passthrough(),
|
|
282
|
+
errors: [
|
|
283
|
+
{
|
|
284
|
+
status: 403,
|
|
285
|
+
description: `0: Token Validation Failed`,
|
|
286
|
+
schema: z.void(),
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
});
|
|
290
|
+
/**
|
|
291
|
+
* @api get https://accountinformation.roblox.com/v1/gender
|
|
292
|
+
*/
|
|
293
|
+
export const getGender = endpoint({
|
|
294
|
+
method: 'get' as const,
|
|
295
|
+
path: '/v1/gender',
|
|
296
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
297
|
+
requestFormat: 'json' as const,
|
|
298
|
+
response: z.object({ gender: z.number().int() }).passthrough(),
|
|
299
|
+
errors: [
|
|
300
|
+
{
|
|
301
|
+
status: 400,
|
|
302
|
+
description: `1: User not found.`,
|
|
303
|
+
schema: z.void(),
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
status: 401,
|
|
307
|
+
description: `0: Authorization has been denied for this request.`,
|
|
308
|
+
schema: z.void(),
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
});
|
|
312
|
+
/**
|
|
313
|
+
* @api post https://accountinformation.roblox.com/v1/gender
|
|
314
|
+
* @param body The Roblox.AccountInformation.Api.Models.GenderRequest
|
|
315
|
+
*/
|
|
316
|
+
export const postGender = endpoint({
|
|
317
|
+
method: 'post' as const,
|
|
318
|
+
path: '/v1/gender',
|
|
319
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
320
|
+
requestFormat: 'json' as const,
|
|
321
|
+
serializationMethod: {
|
|
322
|
+
body: {},
|
|
323
|
+
},
|
|
324
|
+
parameters: {},
|
|
325
|
+
body: z.object({ gender: z.string() }).passthrough(),
|
|
326
|
+
response: z.object({}).passthrough(),
|
|
327
|
+
errors: [
|
|
328
|
+
{
|
|
329
|
+
status: 400,
|
|
330
|
+
description: `1: User not found.
|
|
331
|
+
6: The gender provided is invalid.`,
|
|
332
|
+
schema: z.void(),
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
status: 401,
|
|
336
|
+
description: `0: Authorization has been denied for this request.`,
|
|
337
|
+
schema: z.void(),
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
status: 403,
|
|
341
|
+
description: `0: Token Validation Failed
|
|
342
|
+
2: PIN is locked.`,
|
|
343
|
+
schema: z.void(),
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
status: 500,
|
|
347
|
+
description: `0: An unknown error occured.`,
|
|
348
|
+
schema: z.void(),
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
});
|
|
352
|
+
/**
|
|
353
|
+
* @api get https://accountinformation.roblox.com/v1/metadata
|
|
354
|
+
*/
|
|
355
|
+
export const getMetadata = endpoint({
|
|
356
|
+
method: 'get' as const,
|
|
357
|
+
path: '/v1/metadata',
|
|
358
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
359
|
+
requestFormat: 'json' as const,
|
|
360
|
+
response: Roblox_AccountInformation_Api_Models_MetadataResponse,
|
|
361
|
+
errors: [],
|
|
362
|
+
});
|
|
363
|
+
/**
|
|
364
|
+
* @api get https://accountinformation.roblox.com/v1/phone
|
|
365
|
+
*/
|
|
366
|
+
export const getPhone = endpoint({
|
|
367
|
+
method: 'get' as const,
|
|
368
|
+
path: '/v1/phone',
|
|
369
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
370
|
+
requestFormat: 'json' as const,
|
|
371
|
+
response: Roblox_AccountInformation_Api_Models_PhoneResponse,
|
|
372
|
+
errors: [
|
|
373
|
+
{
|
|
374
|
+
status: 401,
|
|
375
|
+
description: `0: Authorization has been denied for this request.`,
|
|
376
|
+
schema: z.void(),
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
status: 500,
|
|
380
|
+
description: `0: An unknown error occured.`,
|
|
381
|
+
schema: z.void(),
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
});
|
|
385
|
+
/**
|
|
386
|
+
* @api post https://accountinformation.roblox.com/v1/phone
|
|
387
|
+
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
388
|
+
*/
|
|
389
|
+
export const postPhone = endpoint({
|
|
390
|
+
method: 'post' as const,
|
|
391
|
+
path: '/v1/phone',
|
|
392
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
393
|
+
requestFormat: 'json' as const,
|
|
394
|
+
serializationMethod: {
|
|
395
|
+
body: {},
|
|
396
|
+
},
|
|
397
|
+
parameters: {},
|
|
398
|
+
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
399
|
+
response: Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
400
|
+
errors: [
|
|
401
|
+
{
|
|
402
|
+
status: 400,
|
|
403
|
+
description: `2: Invalid Phone Number
|
|
404
|
+
3: Phone Number Already Associated
|
|
405
|
+
8: Invalid Phone Number Type`,
|
|
406
|
+
schema: z.void(),
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
status: 401,
|
|
410
|
+
description: `0: Authorization has been denied for this request.`,
|
|
411
|
+
schema: z.void(),
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
status: 403,
|
|
415
|
+
description: `0: Token Validation Failed
|
|
416
|
+
4: Account Pin Locked
|
|
417
|
+
5: Incorrect Password
|
|
418
|
+
10: `,
|
|
419
|
+
schema: z.void(),
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
status: 429,
|
|
423
|
+
description: `6: Flooded`,
|
|
424
|
+
schema: z.void(),
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
status: 500,
|
|
428
|
+
description: `0: An unknown error occured.`,
|
|
429
|
+
schema: z.void(),
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
status: 503,
|
|
433
|
+
description: `1: This feature is currently disabled. Please try again later.`,
|
|
434
|
+
schema: z.void(),
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
});
|
|
438
|
+
/**
|
|
439
|
+
* @api post https://accountinformation.roblox.com/v1/phone/delete
|
|
440
|
+
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
441
|
+
*/
|
|
442
|
+
export const postPhoneDelete = endpoint({
|
|
443
|
+
method: 'post' as const,
|
|
444
|
+
path: '/v1/phone/delete',
|
|
445
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
446
|
+
requestFormat: 'json' as const,
|
|
447
|
+
serializationMethod: {
|
|
448
|
+
body: {},
|
|
449
|
+
},
|
|
450
|
+
parameters: {},
|
|
451
|
+
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
452
|
+
response: z.object({}).passthrough(),
|
|
453
|
+
errors: [
|
|
454
|
+
{
|
|
455
|
+
status: 401,
|
|
456
|
+
description: `0: Authorization has been denied for this request.`,
|
|
457
|
+
schema: z.void(),
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
status: 403,
|
|
461
|
+
description: `0: Token Validation Failed
|
|
462
|
+
4: Account Pin Locked
|
|
463
|
+
5: Incorrect Password`,
|
|
464
|
+
schema: z.void(),
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
status: 429,
|
|
468
|
+
description: `6: Flooded`,
|
|
469
|
+
schema: z.void(),
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
status: 500,
|
|
473
|
+
description: `0: An unknown error occured.`,
|
|
474
|
+
schema: z.void(),
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
status: 503,
|
|
478
|
+
description: `1: This feature is currently disabled. Please try again later.`,
|
|
479
|
+
schema: z.void(),
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
});
|
|
483
|
+
/**
|
|
484
|
+
* @api post https://accountinformation.roblox.com/v1/phone/resend
|
|
485
|
+
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
486
|
+
*/
|
|
487
|
+
export const postPhoneResend = endpoint({
|
|
488
|
+
method: 'post' as const,
|
|
489
|
+
path: '/v1/phone/resend',
|
|
490
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
491
|
+
requestFormat: 'json' as const,
|
|
492
|
+
serializationMethod: {
|
|
493
|
+
body: {},
|
|
494
|
+
},
|
|
495
|
+
parameters: {},
|
|
496
|
+
body: z.object({}).passthrough().optional(),
|
|
497
|
+
response: z.object({}).passthrough(),
|
|
498
|
+
errors: [
|
|
499
|
+
{
|
|
500
|
+
status: 401,
|
|
501
|
+
description: `0: Authorization has been denied for this request.`,
|
|
502
|
+
schema: z.void(),
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
status: 403,
|
|
506
|
+
description: `0: Token Validation Failed`,
|
|
507
|
+
schema: z.void(),
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
status: 429,
|
|
511
|
+
description: `6: Flooded`,
|
|
512
|
+
schema: z.void(),
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
status: 500,
|
|
516
|
+
description: `0: An unknown error occured.`,
|
|
517
|
+
schema: z.void(),
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
status: 503,
|
|
521
|
+
description: `1: This feature is currently disabled. Please try again later.`,
|
|
522
|
+
schema: z.void(),
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
});
|
|
526
|
+
/**
|
|
527
|
+
* @api post https://accountinformation.roblox.com/v1/phone/verify
|
|
528
|
+
* @param body Roblox.AccountInformation.Api.Models.VerifyPhoneRequest
|
|
529
|
+
*/
|
|
530
|
+
export const postPhoneVerify = endpoint({
|
|
531
|
+
method: 'post' as const,
|
|
532
|
+
path: '/v1/phone/verify',
|
|
533
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
534
|
+
requestFormat: 'json' as const,
|
|
535
|
+
serializationMethod: {
|
|
536
|
+
body: {},
|
|
537
|
+
},
|
|
538
|
+
parameters: {},
|
|
539
|
+
body: z.object({ code: z.string() }).passthrough(),
|
|
540
|
+
response: z.object({}).passthrough(),
|
|
541
|
+
errors: [
|
|
542
|
+
{
|
|
543
|
+
status: 400,
|
|
544
|
+
description: `2: Invalid Phone Number
|
|
545
|
+
3: Phone Number Already Associated
|
|
546
|
+
7: Invalid Code`,
|
|
547
|
+
schema: z.void(),
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
status: 401,
|
|
551
|
+
description: `0: Authorization has been denied for this request.`,
|
|
552
|
+
schema: z.void(),
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
status: 403,
|
|
556
|
+
description: `0: Token Validation Failed`,
|
|
557
|
+
schema: z.void(),
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
status: 429,
|
|
561
|
+
description: `6: Flooded`,
|
|
562
|
+
schema: z.void(),
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
status: 500,
|
|
566
|
+
description: `0: An unknown error occured.`,
|
|
567
|
+
schema: z.void(),
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
status: 503,
|
|
571
|
+
description: `1: This feature is currently disabled. Please try again later.`,
|
|
572
|
+
schema: z.void(),
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
});
|
|
576
|
+
/**
|
|
577
|
+
* @api get https://accountinformation.roblox.com/v1/promotion-channels
|
|
578
|
+
*/
|
|
579
|
+
export const getPromotionChannels = endpoint({
|
|
580
|
+
method: 'get' as const,
|
|
581
|
+
path: '/v1/promotion-channels',
|
|
582
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
583
|
+
requestFormat: 'json' as const,
|
|
584
|
+
response: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
|
|
585
|
+
errors: [
|
|
586
|
+
{
|
|
587
|
+
status: 400,
|
|
588
|
+
description: `1: User not found.`,
|
|
589
|
+
schema: z.void(),
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
status: 401,
|
|
593
|
+
description: `0: Authorization has been denied for this request.`,
|
|
594
|
+
schema: z.void(),
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
});
|
|
598
|
+
/**
|
|
599
|
+
* @api post https://accountinformation.roblox.com/v1/promotion-channels
|
|
600
|
+
* @param body The Roblox.AccountInformation.Api.Models.PromotionChannelsRequest
|
|
601
|
+
*/
|
|
602
|
+
export const postPromotionChannels = endpoint({
|
|
603
|
+
method: 'post' as const,
|
|
604
|
+
path: '/v1/promotion-channels',
|
|
605
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
606
|
+
requestFormat: 'json' as const,
|
|
607
|
+
serializationMethod: {
|
|
608
|
+
body: {},
|
|
609
|
+
},
|
|
610
|
+
parameters: {},
|
|
611
|
+
body: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
|
|
612
|
+
response: z.object({}).passthrough(),
|
|
613
|
+
errors: [
|
|
614
|
+
{
|
|
615
|
+
status: 400,
|
|
616
|
+
description: `2: The request was empty.
|
|
617
|
+
11: The Facebook profile url is invalid.
|
|
618
|
+
12: The Twitter handle is invalid.
|
|
619
|
+
13: The YouTube url is invalid.
|
|
620
|
+
14: The Twitch profile url is invalid.
|
|
621
|
+
15: The Guilded profile url is invalid.`,
|
|
622
|
+
schema: z.void(),
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
status: 401,
|
|
626
|
+
description: `0: Authorization has been denied for this request.`,
|
|
627
|
+
schema: z.void(),
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
status: 403,
|
|
631
|
+
description: `0: Token Validation Failed
|
|
632
|
+
3: PIN is locked.
|
|
633
|
+
4: Only users who are over twelve years of age may edit social network channels.`,
|
|
634
|
+
schema: z.void(),
|
|
635
|
+
},
|
|
636
|
+
],
|
|
637
|
+
});
|
|
638
|
+
/**
|
|
639
|
+
* @api get https://accountinformation.roblox.com/v1/star-code-affiliates
|
|
640
|
+
*/
|
|
641
|
+
export const getStarCodeAffiliates = endpoint({
|
|
642
|
+
method: 'get' as const,
|
|
643
|
+
path: '/v1/star-code-affiliates',
|
|
644
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
645
|
+
requestFormat: 'json' as const,
|
|
646
|
+
response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
647
|
+
errors: [
|
|
648
|
+
{
|
|
649
|
+
status: 401,
|
|
650
|
+
description: `0: Authorization has been denied for this request.`,
|
|
651
|
+
schema: z.void(),
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
status: 500,
|
|
655
|
+
description: `0: An unknown error occured.`,
|
|
656
|
+
schema: z.void(),
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
});
|
|
660
|
+
/**
|
|
661
|
+
* @api post https://accountinformation.roblox.com/v1/star-code-affiliates
|
|
662
|
+
* @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
|
|
663
|
+
*/
|
|
664
|
+
export const postStarCodeAffiliates = endpoint({
|
|
665
|
+
method: 'post' as const,
|
|
666
|
+
path: '/v1/star-code-affiliates',
|
|
667
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
668
|
+
requestFormat: 'json' as const,
|
|
669
|
+
serializationMethod: {
|
|
670
|
+
body: {},
|
|
671
|
+
},
|
|
672
|
+
parameters: {},
|
|
673
|
+
body: z.object({ code: z.string() }).passthrough(),
|
|
674
|
+
response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
675
|
+
errors: [
|
|
676
|
+
{
|
|
677
|
+
status: 400,
|
|
678
|
+
description: `1: The code was invalid.`,
|
|
679
|
+
schema: z.void(),
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
status: 401,
|
|
683
|
+
description: `0: Authorization has been denied for this request.`,
|
|
684
|
+
schema: z.void(),
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
status: 403,
|
|
688
|
+
description: `0: Token Validation Failed`,
|
|
689
|
+
schema: z.void(),
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
status: 500,
|
|
693
|
+
description: `0: An unknown error occured.`,
|
|
694
|
+
schema: z.void(),
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
});
|
|
698
|
+
/**
|
|
699
|
+
* @api delete https://accountinformation.roblox.com/v1/star-code-affiliates
|
|
700
|
+
*/
|
|
701
|
+
export const deleteStarCodeAffiliates = endpoint({
|
|
702
|
+
method: 'delete' as const,
|
|
703
|
+
path: '/v1/star-code-affiliates',
|
|
704
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
705
|
+
requestFormat: 'json' as const,
|
|
706
|
+
response: z.object({}).passthrough(),
|
|
707
|
+
errors: [
|
|
708
|
+
{
|
|
709
|
+
status: 401,
|
|
710
|
+
description: `0: Authorization has been denied for this request.`,
|
|
711
|
+
schema: z.void(),
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
status: 403,
|
|
715
|
+
description: `0: Token Validation Failed`,
|
|
716
|
+
schema: z.void(),
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
status: 500,
|
|
720
|
+
description: `0: An unknown error occured.`,
|
|
721
|
+
schema: z.void(),
|
|
722
|
+
},
|
|
723
|
+
],
|
|
724
|
+
});
|
|
725
|
+
/**
|
|
726
|
+
* @api get https://accountinformation.roblox.com/v1/users/:userId/promotion-channels
|
|
727
|
+
* @param userId
|
|
728
|
+
*/
|
|
729
|
+
export const getUsersUseridPromotionChannels = endpoint({
|
|
730
|
+
method: 'get' as const,
|
|
731
|
+
path: '/v1/users/:userId/promotion-channels',
|
|
732
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
733
|
+
requestFormat: 'json' as const,
|
|
734
|
+
serializationMethod: {
|
|
735
|
+
userId: {
|
|
736
|
+
style: 'simple',
|
|
737
|
+
},
|
|
738
|
+
},
|
|
739
|
+
parameters: {
|
|
740
|
+
userId: z.number().int(),
|
|
741
|
+
},
|
|
742
|
+
response: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
743
|
+
errors: [
|
|
744
|
+
{
|
|
745
|
+
status: 400,
|
|
746
|
+
description: `1: User not found.`,
|
|
747
|
+
schema: z.void(),
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
});
|
|
751
|
+
/**
|
|
752
|
+
* @api get https://accountinformation.roblox.com/v1/users/:userId/roblox-badges
|
|
753
|
+
* @param userId
|
|
754
|
+
*/
|
|
755
|
+
export const getUsersUseridRobloxBadges = endpoint({
|
|
756
|
+
method: 'get' as const,
|
|
757
|
+
path: '/v1/users/:userId/roblox-badges',
|
|
758
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
759
|
+
requestFormat: 'json' as const,
|
|
760
|
+
serializationMethod: {
|
|
761
|
+
userId: {
|
|
762
|
+
style: 'simple',
|
|
763
|
+
},
|
|
764
|
+
},
|
|
765
|
+
parameters: {
|
|
766
|
+
userId: z.number().int(),
|
|
767
|
+
},
|
|
768
|
+
response: z.array(Roblox_AccountInformation_Api_RobloxBadgeResponse),
|
|
769
|
+
errors: [],
|
|
770
|
+
});
|
|
771
|
+
/**
|
|
772
|
+
* @api get https://accountinformation.roblox.com/v1/xbox-live/consecutive-login-days
|
|
773
|
+
*/
|
|
774
|
+
export const getXboxLiveConsecutiveLoginDays = endpoint({
|
|
775
|
+
method: 'get' as const,
|
|
776
|
+
path: '/v1/xbox-live/consecutive-login-days',
|
|
777
|
+
baseUrl: 'https://accountinformation.roblox.com',
|
|
778
|
+
requestFormat: 'json' as const,
|
|
779
|
+
response: z.object({ count: z.number().int() }).passthrough(),
|
|
780
|
+
errors: [
|
|
781
|
+
{
|
|
782
|
+
status: 401,
|
|
783
|
+
description: `0: Authorization has been denied for this request.
|
|
784
|
+
7: The account is not connected to an Xbox Live account`,
|
|
785
|
+
schema: z.void(),
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
});
|