rozod 1.0.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.
Files changed (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +551 -0
  2. package/lib/endpoints/accountinformationv1.js +652 -0
  3. package/lib/endpoints/accountsettingsv1.d.ts +548 -0
  4. package/lib/endpoints/accountsettingsv1.js +712 -0
  5. package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
  6. package/lib/endpoints/assetdeliveryv1.js +268 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
  8. package/lib/endpoints/assetdeliveryv2.js +271 -0
  9. package/lib/endpoints/authv1.d.ts +1328 -0
  10. package/lib/endpoints/authv1.js +1168 -0
  11. package/lib/endpoints/authv2.d.ts +1239 -0
  12. package/lib/endpoints/authv2.js +1057 -0
  13. package/lib/endpoints/authv3.d.ts +35 -0
  14. package/lib/endpoints/authv3.js +41 -0
  15. package/lib/endpoints/avatarv1.d.ts +1841 -0
  16. package/lib/endpoints/avatarv1.js +726 -0
  17. package/lib/endpoints/avatarv2.d.ts +1077 -0
  18. package/lib/endpoints/avatarv2.js +316 -0
  19. package/lib/endpoints/avatarv3.d.ts +656 -0
  20. package/lib/endpoints/avatarv3.js +219 -0
  21. package/lib/endpoints/badgesv1.d.ts +641 -0
  22. package/lib/endpoints/badgesv1.js +345 -0
  23. package/lib/endpoints/catalogv1.d.ts +1715 -0
  24. package/lib/endpoints/catalogv1.js +792 -0
  25. package/lib/endpoints/chatv2.d.ts +2179 -0
  26. package/lib/endpoints/chatv2.js +721 -0
  27. package/lib/endpoints/developv1.d.ts +2097 -0
  28. package/lib/endpoints/developv1.js +1537 -0
  29. package/lib/endpoints/developv2.d.ts +619 -0
  30. package/lib/endpoints/developv2.js +316 -0
  31. package/lib/endpoints/economyv1.d.ts +20 -0
  32. package/lib/endpoints/economyv1.js +28 -0
  33. package/lib/endpoints/friendsv1.d.ts +1093 -0
  34. package/lib/endpoints/friendsv1.js +818 -0
  35. package/lib/endpoints/gamesv1.d.ts +2749 -0
  36. package/lib/endpoints/gamesv1.js +1294 -0
  37. package/lib/endpoints/gamesv2.d.ts +582 -0
  38. package/lib/endpoints/gamesv2.js +258 -0
  39. package/lib/endpoints/groupsv1.d.ts +5528 -0
  40. package/lib/endpoints/groupsv1.js +2434 -0
  41. package/lib/endpoints/groupsv2.d.ts +530 -0
  42. package/lib/endpoints/groupsv2.js +201 -0
  43. package/lib/endpoints/inventoryv1.d.ts +436 -0
  44. package/lib/endpoints/inventoryv1.js +434 -0
  45. package/lib/endpoints/inventoryv2.d.ts +256 -0
  46. package/lib/endpoints/inventoryv2.js +241 -0
  47. package/lib/endpoints/presencev1.d.ts +134 -0
  48. package/lib/endpoints/presencev1.js +93 -0
  49. package/lib/endpoints/privatemessagesv1.d.ts +620 -0
  50. package/lib/endpoints/privatemessagesv1.js +338 -0
  51. package/lib/endpoints/thumbnailsv1.d.ts +897 -0
  52. package/lib/endpoints/thumbnailsv1.js +560 -0
  53. package/lib/endpoints/tradesv1.d.ts +473 -0
  54. package/lib/endpoints/tradesv1.js +403 -0
  55. package/lib/endpoints/translationsv1.d.ts +80 -0
  56. package/lib/endpoints/translationsv1.js +122 -0
  57. package/lib/endpoints/usersv1.d.ts +391 -0
  58. package/lib/endpoints/usersv1.js +344 -0
  59. package/lib/index.d.ts +85 -0
  60. package/lib/index.js +293 -0
  61. package/package.json +39 -0
  62. package/readme.md +99 -0
@@ -0,0 +1,652 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getV1xboxLiveconsecutiveLoginDays = exports.getV1usersUserIdrobloxBadges = exports.getV1usersUserIdpromotionChannels = exports.postV1starCodeAffiliates = exports.getV1starCodeAffiliates = exports.deleteV1starCodeAffiliates = exports.postV1promotionChannels = exports.getV1promotionChannels = exports.postV1phoneverify = exports.postV1phoneresend = exports.postV1phonedelete = exports.postV1phone = exports.getV1phone = exports.getV1metadata = exports.postV1gender = exports.getV1gender = exports.postV1emailverify = exports.postV1description = exports.getV1description = exports.postV1birthdate = exports.getV1birthdate = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_AccountInformation_Api_Models_BirthdateResponse = zod_1.z
6
+ .object({
7
+ birthMonth: zod_1.z.number().int(),
8
+ birthDay: zod_1.z.number().int(),
9
+ birthYear: zod_1.z.number().int(),
10
+ })
11
+ .partial();
12
+ var Roblox_AccountInformation_Api_Models_BirthdateRequest = zod_1.z
13
+ .object({
14
+ birthMonth: zod_1.z.number().int(),
15
+ birthDay: zod_1.z.number().int(),
16
+ birthYear: zod_1.z.number().int(),
17
+ password: zod_1.z.string(),
18
+ })
19
+ .partial();
20
+ var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
21
+ var Roblox_AccountInformation_Api_Models_DescriptionResponse = zod_1.z.object({ description: zod_1.z.string() }).partial();
22
+ var Roblox_AccountInformation_Api_Models_DescriptionRequest = zod_1.z.object({ description: zod_1.z.string() }).partial();
23
+ var Roblox_AccountInformation_Api_Models_GenderResponse = zod_1.z.object({ gender: zod_1.z.number().int() }).partial();
24
+ var Roblox_AccountInformation_Api_Models_GenderRequest = zod_1.z.object({ gender: zod_1.z.string() }).partial();
25
+ var Roblox_AccountInformation_Api_Models_MetadataResponse = zod_1.z
26
+ .object({
27
+ isAllowedNotificationsEndpointDisabled: zod_1.z.boolean(),
28
+ isAccountSettingsPolicyEnabled: zod_1.z.boolean(),
29
+ isPhoneNumberEnabled: zod_1.z.boolean(),
30
+ MaxUserDescriptionLength: zod_1.z.number().int(),
31
+ isUserDescriptionEnabled: zod_1.z.boolean(),
32
+ isUserBlockEndpointsUpdated: zod_1.z.boolean(),
33
+ isPasswordRequiredForAgingDown: zod_1.z.boolean(),
34
+ shouldUsePersonaForIdVerification: zod_1.z.boolean(),
35
+ shouldDisplaySessionManagement: zod_1.z.boolean(),
36
+ shouldUseSecurityReactUI: zod_1.z.boolean(),
37
+ })
38
+ .partial();
39
+ var Roblox_AccountInformation_Api_Models_PhoneResponse = zod_1.z
40
+ .object({
41
+ countryCode: zod_1.z.string(),
42
+ prefix: zod_1.z.string(),
43
+ phone: zod_1.z.string(),
44
+ isVerified: zod_1.z.boolean(),
45
+ verificationCodeLength: zod_1.z.number().int(),
46
+ canBypassPasswordForPhoneUpdate: zod_1.z.boolean(),
47
+ })
48
+ .partial();
49
+ var Roblox_AccountInformation_Api_Models_PhoneRequest = zod_1.z
50
+ .object({
51
+ countryCode: zod_1.z.string(),
52
+ prefix: zod_1.z.string(),
53
+ phone: zod_1.z.string(),
54
+ password: zod_1.z.string(),
55
+ })
56
+ .partial();
57
+ var Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = zod_1.z
58
+ .object({
59
+ promotionChannelsVisibilityPrivacy: zod_1.z.string(),
60
+ facebook: zod_1.z.string(),
61
+ twitter: zod_1.z.string(),
62
+ youtube: zod_1.z.string(),
63
+ twitch: zod_1.z.string(),
64
+ guilded: zod_1.z.string(),
65
+ })
66
+ .partial();
67
+ var Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = zod_1.z
68
+ .object({
69
+ facebook: zod_1.z.string(),
70
+ twitter: zod_1.z.string(),
71
+ youtube: zod_1.z.string(),
72
+ twitch: zod_1.z.string(),
73
+ guilded: zod_1.z.string(),
74
+ promotionChannelsVisibilityPrivacy: zod_1.z.string(),
75
+ })
76
+ .partial();
77
+ var Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = zod_1.z
78
+ .object({ userId: zod_1.z.number().int(), name: zod_1.z.string(), code: zod_1.z.string() })
79
+ .partial();
80
+ var Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = zod_1.z.object({ code: zod_1.z.string() }).partial();
81
+ var Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse = zod_1.z
82
+ .object({
83
+ facebook: zod_1.z.string(),
84
+ twitter: zod_1.z.string(),
85
+ youtube: zod_1.z.string(),
86
+ twitch: zod_1.z.string(),
87
+ guilded: zod_1.z.string(),
88
+ })
89
+ .partial();
90
+ var Roblox_AccountInformation_Api_RobloxBadgeResponse = zod_1.z
91
+ .object({
92
+ id: zod_1.z.number().int(),
93
+ name: zod_1.z.string(),
94
+ description: zod_1.z.string(),
95
+ imageUrl: zod_1.z.string(),
96
+ })
97
+ .partial();
98
+ var Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = zod_1.z
99
+ .object({ count: zod_1.z.number().int() })
100
+ .partial();
101
+ var Roblox_AccountInformation_Api_Models_VerifyEmailRequest = zod_1.z.object({ ticket: zod_1.z.string() }).partial();
102
+ var Roblox_AccountInformation_Api_Models_VerifyEmailResponse = zod_1.z
103
+ .object({ verifiedUserHatAssetId: zod_1.z.number().int() })
104
+ .partial();
105
+ var Roblox_AccountInformation_Api_Models_EmptyRequest = zod_1.z.object({}).partial();
106
+ var Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = zod_1.z.object({ code: zod_1.z.string() }).partial();
107
+ var schemas = {
108
+ Roblox_AccountInformation_Api_Models_BirthdateResponse: Roblox_AccountInformation_Api_Models_BirthdateResponse,
109
+ Roblox_AccountInformation_Api_Models_BirthdateRequest: Roblox_AccountInformation_Api_Models_BirthdateRequest,
110
+ Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
111
+ Roblox_AccountInformation_Api_Models_DescriptionResponse: Roblox_AccountInformation_Api_Models_DescriptionResponse,
112
+ Roblox_AccountInformation_Api_Models_DescriptionRequest: Roblox_AccountInformation_Api_Models_DescriptionRequest,
113
+ Roblox_AccountInformation_Api_Models_GenderResponse: Roblox_AccountInformation_Api_Models_GenderResponse,
114
+ Roblox_AccountInformation_Api_Models_GenderRequest: Roblox_AccountInformation_Api_Models_GenderRequest,
115
+ Roblox_AccountInformation_Api_Models_MetadataResponse: Roblox_AccountInformation_Api_Models_MetadataResponse,
116
+ Roblox_AccountInformation_Api_Models_PhoneResponse: Roblox_AccountInformation_Api_Models_PhoneResponse,
117
+ Roblox_AccountInformation_Api_Models_PhoneRequest: Roblox_AccountInformation_Api_Models_PhoneRequest,
118
+ Roblox_AccountInformation_Api_Models_PromotionChannelsResponse: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
119
+ Roblox_AccountInformation_Api_Models_PromotionChannelsRequest: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
120
+ Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
121
+ Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest: Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest,
122
+ Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
123
+ Roblox_AccountInformation_Api_RobloxBadgeResponse: Roblox_AccountInformation_Api_RobloxBadgeResponse,
124
+ Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse: Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse,
125
+ Roblox_AccountInformation_Api_Models_VerifyEmailRequest: Roblox_AccountInformation_Api_Models_VerifyEmailRequest,
126
+ Roblox_AccountInformation_Api_Models_VerifyEmailResponse: Roblox_AccountInformation_Api_Models_VerifyEmailResponse,
127
+ Roblox_AccountInformation_Api_Models_EmptyRequest: Roblox_AccountInformation_Api_Models_EmptyRequest,
128
+ Roblox_AccountInformation_Api_Models_VerifyPhoneRequest: Roblox_AccountInformation_Api_Models_VerifyPhoneRequest,
129
+ };
130
+ exports.getV1birthdate = {
131
+ method: 'get',
132
+ path: '/v1/birthdate',
133
+ baseUrl: 'https://accountinformation.roblox.com',
134
+ requestFormat: 'json',
135
+ response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
136
+ errors: [
137
+ {
138
+ status: 400,
139
+ description: "1: User not found.",
140
+ schema: zod_1.z.void(),
141
+ },
142
+ {
143
+ status: 401,
144
+ description: "0: Authorization has been denied for this request.",
145
+ schema: zod_1.z.void(),
146
+ },
147
+ ],
148
+ };
149
+ exports.postV1birthdate = {
150
+ method: 'post',
151
+ path: '/v1/birthdate',
152
+ baseUrl: 'https://accountinformation.roblox.com',
153
+ requestFormat: 'json',
154
+ parameters: {
155
+ body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
156
+ },
157
+ response: zod_1.z.object({}).partial(),
158
+ errors: [
159
+ {
160
+ status: 400,
161
+ description: "1: User not found.\n4: The birthdate provided is invalid.\n8: Password is incorrect.",
162
+ schema: zod_1.z.void(),
163
+ },
164
+ {
165
+ status: 401,
166
+ description: "0: Authorization has been denied for this request.",
167
+ schema: zod_1.z.void(),
168
+ },
169
+ {
170
+ status: 403,
171
+ description: "0: Token Validation Failed\n2: PIN is locked.\n5: Invalid birthdate change.",
172
+ schema: zod_1.z.void(),
173
+ },
174
+ {
175
+ status: 500,
176
+ description: "0: An unknown error occured.\n5: Invalid birthdate change.",
177
+ schema: zod_1.z.void(),
178
+ },
179
+ ],
180
+ };
181
+ exports.getV1description = {
182
+ method: 'get',
183
+ path: '/v1/description',
184
+ baseUrl: 'https://accountinformation.roblox.com',
185
+ requestFormat: 'json',
186
+ response: zod_1.z.object({ description: zod_1.z.string() }).partial(),
187
+ errors: [
188
+ {
189
+ status: 400,
190
+ description: "1: User not found.",
191
+ schema: zod_1.z.void(),
192
+ },
193
+ {
194
+ status: 401,
195
+ description: "0: Authorization has been denied for this request.",
196
+ schema: zod_1.z.void(),
197
+ },
198
+ ],
199
+ };
200
+ exports.postV1description = {
201
+ method: 'post',
202
+ path: '/v1/description',
203
+ baseUrl: 'https://accountinformation.roblox.com',
204
+ requestFormat: 'json',
205
+ parameters: {
206
+ body: zod_1.z.object({ description: zod_1.z.string() }).partial(),
207
+ },
208
+ response: zod_1.z.object({ description: zod_1.z.string() }).partial(),
209
+ errors: [
210
+ {
211
+ status: 400,
212
+ description: "1: User not found.",
213
+ schema: zod_1.z.void(),
214
+ },
215
+ {
216
+ status: 401,
217
+ description: "0: Authorization has been denied for this request.",
218
+ schema: zod_1.z.void(),
219
+ },
220
+ {
221
+ status: 403,
222
+ description: "0: Token Validation Failed\n2: PIN is locked.",
223
+ schema: zod_1.z.void(),
224
+ },
225
+ {
226
+ status: 500,
227
+ description: "0: An unknown error occured.",
228
+ schema: zod_1.z.void(),
229
+ },
230
+ {
231
+ status: 503,
232
+ description: "3: This feature is currently disabled. Please try again later.",
233
+ schema: zod_1.z.void(),
234
+ },
235
+ ],
236
+ };
237
+ exports.postV1emailverify = {
238
+ method: 'post',
239
+ path: '/v1/email/verify',
240
+ baseUrl: 'https://accountinformation.roblox.com',
241
+ requestFormat: 'json',
242
+ parameters: {
243
+ body: zod_1.z.object({ ticket: zod_1.z.string() }).partial(),
244
+ },
245
+ response: zod_1.z.object({ verifiedUserHatAssetId: zod_1.z.number().int() }).partial(),
246
+ errors: [
247
+ {
248
+ status: 403,
249
+ description: "0: Token Validation Failed",
250
+ schema: zod_1.z.void(),
251
+ },
252
+ ],
253
+ };
254
+ exports.getV1gender = {
255
+ method: 'get',
256
+ path: '/v1/gender',
257
+ baseUrl: 'https://accountinformation.roblox.com',
258
+ requestFormat: 'json',
259
+ response: zod_1.z.object({ gender: zod_1.z.number().int() }).partial(),
260
+ errors: [
261
+ {
262
+ status: 400,
263
+ description: "1: User not found.",
264
+ schema: zod_1.z.void(),
265
+ },
266
+ {
267
+ status: 401,
268
+ description: "0: Authorization has been denied for this request.",
269
+ schema: zod_1.z.void(),
270
+ },
271
+ ],
272
+ };
273
+ exports.postV1gender = {
274
+ method: 'post',
275
+ path: '/v1/gender',
276
+ baseUrl: 'https://accountinformation.roblox.com',
277
+ requestFormat: 'json',
278
+ parameters: {
279
+ body: zod_1.z.object({ gender: zod_1.z.string() }).partial(),
280
+ },
281
+ response: zod_1.z.object({}).partial(),
282
+ errors: [
283
+ {
284
+ status: 400,
285
+ description: "1: User not found.\n6: The gender provided is invalid.",
286
+ schema: zod_1.z.void(),
287
+ },
288
+ {
289
+ status: 401,
290
+ description: "0: Authorization has been denied for this request.",
291
+ schema: zod_1.z.void(),
292
+ },
293
+ {
294
+ status: 403,
295
+ description: "0: Token Validation Failed\n2: PIN is locked.",
296
+ schema: zod_1.z.void(),
297
+ },
298
+ {
299
+ status: 500,
300
+ description: "0: An unknown error occured.",
301
+ schema: zod_1.z.void(),
302
+ },
303
+ ],
304
+ };
305
+ exports.getV1metadata = {
306
+ method: 'get',
307
+ path: '/v1/metadata',
308
+ baseUrl: 'https://accountinformation.roblox.com',
309
+ requestFormat: 'json',
310
+ response: Roblox_AccountInformation_Api_Models_MetadataResponse,
311
+ errors: [],
312
+ };
313
+ exports.getV1phone = {
314
+ method: 'get',
315
+ path: '/v1/phone',
316
+ baseUrl: 'https://accountinformation.roblox.com',
317
+ requestFormat: 'json',
318
+ response: Roblox_AccountInformation_Api_Models_PhoneResponse,
319
+ errors: [
320
+ {
321
+ status: 401,
322
+ description: "0: Authorization has been denied for this request.",
323
+ schema: zod_1.z.void(),
324
+ },
325
+ {
326
+ status: 500,
327
+ description: "0: An unknown error occured.",
328
+ schema: zod_1.z.void(),
329
+ },
330
+ ],
331
+ };
332
+ exports.postV1phone = {
333
+ method: 'post',
334
+ path: '/v1/phone',
335
+ baseUrl: 'https://accountinformation.roblox.com',
336
+ requestFormat: 'json',
337
+ parameters: {
338
+ body: Roblox_AccountInformation_Api_Models_PhoneRequest,
339
+ },
340
+ response: zod_1.z.object({}).partial(),
341
+ errors: [
342
+ {
343
+ status: 400,
344
+ description: "2: Invalid Phone Number\n3: Phone Number Already Associated\n8: Invalid Phone Number Type",
345
+ schema: zod_1.z.void(),
346
+ },
347
+ {
348
+ status: 401,
349
+ description: "0: Authorization has been denied for this request.",
350
+ schema: zod_1.z.void(),
351
+ },
352
+ {
353
+ status: 403,
354
+ description: "0: Token Validation Failed\n4: Account Pin Locked\n5: Incorrect Password\n10: ",
355
+ schema: zod_1.z.void(),
356
+ },
357
+ {
358
+ status: 429,
359
+ description: "6: Flooded",
360
+ schema: zod_1.z.void(),
361
+ },
362
+ {
363
+ status: 500,
364
+ description: "0: An unknown error occured.",
365
+ schema: zod_1.z.void(),
366
+ },
367
+ {
368
+ status: 503,
369
+ description: "1: This feature is currently disabled. Please try again later.",
370
+ schema: zod_1.z.void(),
371
+ },
372
+ ],
373
+ };
374
+ exports.postV1phonedelete = {
375
+ method: 'post',
376
+ path: '/v1/phone/delete',
377
+ baseUrl: 'https://accountinformation.roblox.com',
378
+ requestFormat: 'json',
379
+ parameters: {
380
+ body: Roblox_AccountInformation_Api_Models_PhoneRequest,
381
+ },
382
+ response: zod_1.z.object({}).partial(),
383
+ errors: [
384
+ {
385
+ status: 401,
386
+ description: "0: Authorization has been denied for this request.",
387
+ schema: zod_1.z.void(),
388
+ },
389
+ {
390
+ status: 403,
391
+ description: "0: Token Validation Failed\n4: Account Pin Locked\n5: Incorrect Password",
392
+ schema: zod_1.z.void(),
393
+ },
394
+ {
395
+ status: 429,
396
+ description: "6: Flooded",
397
+ schema: zod_1.z.void(),
398
+ },
399
+ {
400
+ status: 500,
401
+ description: "0: An unknown error occured.",
402
+ schema: zod_1.z.void(),
403
+ },
404
+ {
405
+ status: 503,
406
+ description: "1: This feature is currently disabled. Please try again later.",
407
+ schema: zod_1.z.void(),
408
+ },
409
+ ],
410
+ };
411
+ exports.postV1phoneresend = {
412
+ method: 'post',
413
+ path: '/v1/phone/resend',
414
+ baseUrl: 'https://accountinformation.roblox.com',
415
+ requestFormat: 'json',
416
+ parameters: {
417
+ body: zod_1.z.object({}).partial(),
418
+ },
419
+ response: zod_1.z.object({}).partial(),
420
+ errors: [
421
+ {
422
+ status: 401,
423
+ description: "0: Authorization has been denied for this request.",
424
+ schema: zod_1.z.void(),
425
+ },
426
+ {
427
+ status: 403,
428
+ description: "0: Token Validation Failed",
429
+ schema: zod_1.z.void(),
430
+ },
431
+ {
432
+ status: 429,
433
+ description: "6: Flooded",
434
+ schema: zod_1.z.void(),
435
+ },
436
+ {
437
+ status: 500,
438
+ description: "0: An unknown error occured.",
439
+ schema: zod_1.z.void(),
440
+ },
441
+ {
442
+ status: 503,
443
+ description: "1: This feature is currently disabled. Please try again later.",
444
+ schema: zod_1.z.void(),
445
+ },
446
+ ],
447
+ };
448
+ exports.postV1phoneverify = {
449
+ method: 'post',
450
+ path: '/v1/phone/verify',
451
+ baseUrl: 'https://accountinformation.roblox.com',
452
+ requestFormat: 'json',
453
+ parameters: {
454
+ body: zod_1.z.object({ code: zod_1.z.string() }).partial(),
455
+ },
456
+ response: zod_1.z.object({}).partial(),
457
+ errors: [
458
+ {
459
+ status: 400,
460
+ description: "2: Invalid Phone Number\n3: Phone Number Already Associated\n7: Invalid Code",
461
+ schema: zod_1.z.void(),
462
+ },
463
+ {
464
+ status: 401,
465
+ description: "0: Authorization has been denied for this request.",
466
+ schema: zod_1.z.void(),
467
+ },
468
+ {
469
+ status: 403,
470
+ description: "0: Token Validation Failed",
471
+ schema: zod_1.z.void(),
472
+ },
473
+ {
474
+ status: 429,
475
+ description: "6: Flooded",
476
+ schema: zod_1.z.void(),
477
+ },
478
+ {
479
+ status: 500,
480
+ description: "0: An unknown error occured.",
481
+ schema: zod_1.z.void(),
482
+ },
483
+ {
484
+ status: 503,
485
+ description: "1: This feature is currently disabled. Please try again later.",
486
+ schema: zod_1.z.void(),
487
+ },
488
+ ],
489
+ };
490
+ exports.getV1promotionChannels = {
491
+ method: 'get',
492
+ path: '/v1/promotion-channels',
493
+ baseUrl: 'https://accountinformation.roblox.com',
494
+ requestFormat: 'json',
495
+ response: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
496
+ errors: [
497
+ {
498
+ status: 400,
499
+ description: "1: User not found.",
500
+ schema: zod_1.z.void(),
501
+ },
502
+ {
503
+ status: 401,
504
+ description: "0: Authorization has been denied for this request.",
505
+ schema: zod_1.z.void(),
506
+ },
507
+ ],
508
+ };
509
+ exports.postV1promotionChannels = {
510
+ method: 'post',
511
+ path: '/v1/promotion-channels',
512
+ baseUrl: 'https://accountinformation.roblox.com',
513
+ requestFormat: 'json',
514
+ parameters: {
515
+ body: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
516
+ },
517
+ response: zod_1.z.object({}).partial(),
518
+ errors: [
519
+ {
520
+ status: 400,
521
+ description: "2: The request was empty.\n11: The Facebook profile url is invalid.\n12: The Twitter handle is invalid.\n13: The YouTube url is invalid.\n14: The Twitch profile url is invalid.\n15: The Guilded profile url is invalid.",
522
+ schema: zod_1.z.void(),
523
+ },
524
+ {
525
+ status: 401,
526
+ description: "0: Authorization has been denied for this request.",
527
+ schema: zod_1.z.void(),
528
+ },
529
+ {
530
+ status: 403,
531
+ description: "0: Token Validation Failed\n3: PIN is locked.\n4: Only users who are over twelve years of age may edit social network channels.",
532
+ schema: zod_1.z.void(),
533
+ },
534
+ ],
535
+ };
536
+ exports.deleteV1starCodeAffiliates = {
537
+ method: 'delete',
538
+ path: '/v1/star-code-affiliates',
539
+ baseUrl: 'https://accountinformation.roblox.com',
540
+ requestFormat: 'json',
541
+ response: zod_1.z.object({}).partial(),
542
+ errors: [
543
+ {
544
+ status: 401,
545
+ description: "0: Authorization has been denied for this request.",
546
+ schema: zod_1.z.void(),
547
+ },
548
+ {
549
+ status: 403,
550
+ description: "0: Token Validation Failed",
551
+ schema: zod_1.z.void(),
552
+ },
553
+ {
554
+ status: 500,
555
+ description: "0: An unknown error occured.",
556
+ schema: zod_1.z.void(),
557
+ },
558
+ ],
559
+ };
560
+ exports.getV1starCodeAffiliates = {
561
+ method: 'get',
562
+ path: '/v1/star-code-affiliates',
563
+ baseUrl: 'https://accountinformation.roblox.com',
564
+ requestFormat: 'json',
565
+ response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
566
+ errors: [
567
+ {
568
+ status: 401,
569
+ description: "0: Authorization has been denied for this request.",
570
+ schema: zod_1.z.void(),
571
+ },
572
+ {
573
+ status: 500,
574
+ description: "0: An unknown error occured.",
575
+ schema: zod_1.z.void(),
576
+ },
577
+ ],
578
+ };
579
+ exports.postV1starCodeAffiliates = {
580
+ method: 'post',
581
+ path: '/v1/star-code-affiliates',
582
+ baseUrl: 'https://accountinformation.roblox.com',
583
+ requestFormat: 'json',
584
+ parameters: {
585
+ body: zod_1.z.object({ code: zod_1.z.string() }).partial(),
586
+ },
587
+ response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
588
+ errors: [
589
+ {
590
+ status: 400,
591
+ description: "1: The code was invalid.",
592
+ schema: zod_1.z.void(),
593
+ },
594
+ {
595
+ status: 401,
596
+ description: "0: Authorization has been denied for this request.",
597
+ schema: zod_1.z.void(),
598
+ },
599
+ {
600
+ status: 403,
601
+ description: "0: Token Validation Failed",
602
+ schema: zod_1.z.void(),
603
+ },
604
+ {
605
+ status: 500,
606
+ description: "0: An unknown error occured.",
607
+ schema: zod_1.z.void(),
608
+ },
609
+ ],
610
+ };
611
+ exports.getV1usersUserIdpromotionChannels = {
612
+ method: 'get',
613
+ path: '/v1/users/:userId/promotion-channels',
614
+ baseUrl: 'https://accountinformation.roblox.com',
615
+ requestFormat: 'json',
616
+ parameters: {
617
+ userId: zod_1.z.number().int(),
618
+ },
619
+ response: Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
620
+ errors: [
621
+ {
622
+ status: 400,
623
+ description: "1: User not found.",
624
+ schema: zod_1.z.void(),
625
+ },
626
+ ],
627
+ };
628
+ exports.getV1usersUserIdrobloxBadges = {
629
+ method: 'get',
630
+ path: '/v1/users/:userId/roblox-badges',
631
+ baseUrl: 'https://accountinformation.roblox.com',
632
+ requestFormat: 'json',
633
+ parameters: {
634
+ userId: zod_1.z.number().int(),
635
+ },
636
+ response: zod_1.z.array(Roblox_AccountInformation_Api_RobloxBadgeResponse),
637
+ errors: [],
638
+ };
639
+ exports.getV1xboxLiveconsecutiveLoginDays = {
640
+ method: 'get',
641
+ path: '/v1/xbox-live/consecutive-login-days',
642
+ baseUrl: 'https://accountinformation.roblox.com',
643
+ requestFormat: 'json',
644
+ response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
645
+ errors: [
646
+ {
647
+ status: 401,
648
+ description: "0: Authorization has been denied for this request.\n7: The account is not connected to an Xbox Live account",
649
+ schema: zod_1.z.void(),
650
+ },
651
+ ],
652
+ };