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,712 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getV1usersgetDetailedBlockedUsers = exports.getV1usersgetBlockedUsers = exports.postV1usersUserIdunblock = exports.postV1usersUserIdblock = exports.postV1tradeValue = exports.getV1tradeValue = exports.postV1tradePrivacy = exports.getV1tradePrivacy = exports.getV1themestypes = exports.patchV1themesConsumerTypeConsumerId = exports.getV1themesConsumerTypeConsumerId = exports.postV1privateMessagePrivacy = exports.getV1privateMessagePrivacy = exports.postV1inventoryPrivacy = exports.getV1inventoryPrivacy = exports.postV1gameChatPrivacy = exports.getV1gameChatPrivacy = exports.postV1emailverify = exports.postV1email = exports.patchV1email = exports.getV1email = exports.postV1appChatPrivacy = exports.getV1appChatPrivacy = exports.getV1accountsettingsmetadata = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel = zod_1.z
6
+ .object({
7
+ IsAccountsRestrictionsSpamBugFixEnabled: zod_1.z.boolean(),
8
+ MaximumParentalControlsMonthlySpendLimitInUSD: zod_1.z.number().int(),
9
+ IsParentalMonthlyLimitInUIEnabled: zod_1.z.boolean(),
10
+ IsParentalNotificationSettingsInUIEnabled: zod_1.z.boolean(),
11
+ IsContentControlsEnabled: zod_1.z.boolean(),
12
+ })
13
+ .partial();
14
+ var Roblox_AccountSettings_Api_AppChatPrivacyResponse = zod_1.z.object({ appChatPrivacy: zod_1.z.string() }).partial();
15
+ var Roblox_AccountSettings_Api_AppChatPrivacyRequest = zod_1.z
16
+ .object({
17
+ appChatPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
18
+ })
19
+ .partial();
20
+ var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
21
+ var Roblox_AccountSettings_Api_EmailResponse = zod_1.z
22
+ .object({
23
+ emailAddress: zod_1.z.string(),
24
+ verified: zod_1.z.boolean(),
25
+ canBypassPasswordForEmailUpdate: zod_1.z.boolean(),
26
+ })
27
+ .partial();
28
+ var Roblox_AccountSettings_Api_UpdateEmailRequest = zod_1.z
29
+ .object({
30
+ password: zod_1.z.string(),
31
+ emailAddress: zod_1.z.string(),
32
+ skipVerificationEmail: zod_1.z.boolean(),
33
+ isAdsAccount: zod_1.z.boolean(),
34
+ })
35
+ .partial();
36
+ var Roblox_AccountSettings_Api_GameChatPrivacyResponse = zod_1.z.object({ gameChatPrivacy: zod_1.z.string() }).partial();
37
+ var Roblox_AccountSettings_Api_GameChatPrivacyRequest = zod_1.z
38
+ .object({
39
+ gameChatPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
40
+ })
41
+ .partial();
42
+ var Roblox_AccountSettings_Api_InventoryPrivacyResponse = zod_1.z
43
+ .object({
44
+ inventoryPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
45
+ })
46
+ .partial();
47
+ var Roblox_AccountSettings_Api_InventoryPrivacyRequest = zod_1.z
48
+ .object({
49
+ inventoryPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
50
+ })
51
+ .partial();
52
+ var Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse = zod_1.z
53
+ .object({
54
+ inventoryPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
55
+ tradePrivacy: zod_1.z.union([
56
+ zod_1.z.literal(0),
57
+ zod_1.z.literal(1),
58
+ zod_1.z.literal(2),
59
+ zod_1.z.literal(3),
60
+ zod_1.z.literal(4),
61
+ zod_1.z.literal(5),
62
+ zod_1.z.literal(6),
63
+ zod_1.z.literal(7),
64
+ ]),
65
+ privacySettingResponse: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
66
+ })
67
+ .partial();
68
+ var Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse = zod_1.z
69
+ .object({ privateMessagePrivacy: zod_1.z.string() })
70
+ .partial();
71
+ var Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest = zod_1.z
72
+ .object({ privateMessagePrivacy: zod_1.z.string() })
73
+ .partial();
74
+ var Roblox_AccountSettings_Api_ThemeConfigurationResponse = zod_1.z.object({ themeType: zod_1.z.string() }).partial();
75
+ var Roblox_AccountSettings_Api_ThemeConfigurationRequest = zod_1.z.object({ themeType: zod_1.z.string() }).partial();
76
+ var Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = zod_1.z.object({ data: zod_1.z.array(zod_1.z.string()) }).partial();
77
+ var Roblox_AccountSettings_Api_TradePrivacyResponse = zod_1.z.object({ tradePrivacy: zod_1.z.string() }).partial();
78
+ var Roblox_AccountSettings_Api_UpdateTradePrivacyRequest = zod_1.z
79
+ .object({
80
+ tradePrivacy: zod_1.z.union([
81
+ zod_1.z.literal(0),
82
+ zod_1.z.literal(1),
83
+ zod_1.z.literal(2),
84
+ zod_1.z.literal(3),
85
+ zod_1.z.literal(4),
86
+ zod_1.z.literal(5),
87
+ zod_1.z.literal(6),
88
+ zod_1.z.literal(7),
89
+ ]),
90
+ })
91
+ .partial();
92
+ var Roblox_AccountSettings_Api_TradePrivacyUpdateResponse = zod_1.z
93
+ .object({
94
+ tradePrivacy: zod_1.z.union([
95
+ zod_1.z.literal(0),
96
+ zod_1.z.literal(1),
97
+ zod_1.z.literal(2),
98
+ zod_1.z.literal(3),
99
+ zod_1.z.literal(4),
100
+ zod_1.z.literal(5),
101
+ zod_1.z.literal(6),
102
+ zod_1.z.literal(7),
103
+ ]),
104
+ inventoryPrivacy: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4), zod_1.z.literal(5), zod_1.z.literal(6)]),
105
+ privacySettingResponse: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
106
+ })
107
+ .partial();
108
+ var Roblox_AccountSettings_Api_TradeValueResponse = zod_1.z.object({ tradeValue: zod_1.z.string() }).partial();
109
+ var Roblox_AccountSettings_Api_TradeValueRequest = zod_1.z
110
+ .object({
111
+ tradeValue: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
112
+ })
113
+ .partial();
114
+ var Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse = zod_1.z
115
+ .object({ blockedUserIds: zod_1.z.array(zod_1.z.number()) })
116
+ .partial();
117
+ var Roblox_AccountSettings_Api_Models_BlockedUser = zod_1.z
118
+ .object({
119
+ userId: zod_1.z.number().int(),
120
+ name: zod_1.z.string(),
121
+ displayName: zod_1.z.string(),
122
+ })
123
+ .partial();
124
+ var Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse = zod_1.z
125
+ .object({
126
+ blockedUsers: zod_1.z.array(Roblox_AccountSettings_Api_Models_BlockedUser),
127
+ maxBlockedUsers: zod_1.z.number().int(),
128
+ total: zod_1.z.number().int(),
129
+ })
130
+ .partial();
131
+ var Roblox_AccountSettings_Api_SendVerifyEmailRequest = zod_1.z
132
+ .object({ freeItem: zod_1.z.boolean(), isAdsAccount: zod_1.z.boolean() })
133
+ .partial();
134
+ var schemas = {
135
+ Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel: Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel,
136
+ Roblox_AccountSettings_Api_AppChatPrivacyResponse: Roblox_AccountSettings_Api_AppChatPrivacyResponse,
137
+ Roblox_AccountSettings_Api_AppChatPrivacyRequest: Roblox_AccountSettings_Api_AppChatPrivacyRequest,
138
+ Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
139
+ Roblox_AccountSettings_Api_EmailResponse: Roblox_AccountSettings_Api_EmailResponse,
140
+ Roblox_AccountSettings_Api_UpdateEmailRequest: Roblox_AccountSettings_Api_UpdateEmailRequest,
141
+ Roblox_AccountSettings_Api_GameChatPrivacyResponse: Roblox_AccountSettings_Api_GameChatPrivacyResponse,
142
+ Roblox_AccountSettings_Api_GameChatPrivacyRequest: Roblox_AccountSettings_Api_GameChatPrivacyRequest,
143
+ Roblox_AccountSettings_Api_InventoryPrivacyResponse: Roblox_AccountSettings_Api_InventoryPrivacyResponse,
144
+ Roblox_AccountSettings_Api_InventoryPrivacyRequest: Roblox_AccountSettings_Api_InventoryPrivacyRequest,
145
+ Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse: Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse,
146
+ Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse: Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse,
147
+ Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest: Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest,
148
+ Roblox_AccountSettings_Api_ThemeConfigurationResponse: Roblox_AccountSettings_Api_ThemeConfigurationResponse,
149
+ Roblox_AccountSettings_Api_ThemeConfigurationRequest: Roblox_AccountSettings_Api_ThemeConfigurationRequest,
150
+ Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_: Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_,
151
+ Roblox_AccountSettings_Api_TradePrivacyResponse: Roblox_AccountSettings_Api_TradePrivacyResponse,
152
+ Roblox_AccountSettings_Api_UpdateTradePrivacyRequest: Roblox_AccountSettings_Api_UpdateTradePrivacyRequest,
153
+ Roblox_AccountSettings_Api_TradePrivacyUpdateResponse: Roblox_AccountSettings_Api_TradePrivacyUpdateResponse,
154
+ Roblox_AccountSettings_Api_TradeValueResponse: Roblox_AccountSettings_Api_TradeValueResponse,
155
+ Roblox_AccountSettings_Api_TradeValueRequest: Roblox_AccountSettings_Api_TradeValueRequest,
156
+ Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse: Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse,
157
+ Roblox_AccountSettings_Api_Models_BlockedUser: Roblox_AccountSettings_Api_Models_BlockedUser,
158
+ Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse: Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse,
159
+ Roblox_AccountSettings_Api_SendVerifyEmailRequest: Roblox_AccountSettings_Api_SendVerifyEmailRequest,
160
+ };
161
+ exports.getV1accountsettingsmetadata = {
162
+ method: 'get',
163
+ path: '/v1/account/settings/metadata',
164
+ baseUrl: 'https://accountsettings.roblox.com',
165
+ requestFormat: 'json',
166
+ response: Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel,
167
+ errors: [
168
+ {
169
+ status: 401,
170
+ description: "0: Authorization has been denied for this request.",
171
+ schema: zod_1.z.void(),
172
+ },
173
+ ],
174
+ };
175
+ exports.getV1appChatPrivacy = {
176
+ method: 'get',
177
+ path: '/v1/app-chat-privacy',
178
+ baseUrl: 'https://accountsettings.roblox.com',
179
+ requestFormat: 'json',
180
+ response: zod_1.z.object({ appChatPrivacy: zod_1.z.string() }).partial(),
181
+ errors: [
182
+ {
183
+ status: 401,
184
+ description: "0: Authorization has been denied for this request.",
185
+ schema: zod_1.z.void(),
186
+ },
187
+ ],
188
+ };
189
+ exports.postV1appChatPrivacy = {
190
+ method: 'post',
191
+ path: '/v1/app-chat-privacy',
192
+ baseUrl: 'https://accountsettings.roblox.com',
193
+ requestFormat: 'json',
194
+ parameters: {
195
+ body: Roblox_AccountSettings_Api_AppChatPrivacyRequest,
196
+ },
197
+ response: zod_1.z.object({}).partial(),
198
+ errors: [
199
+ {
200
+ status: 400,
201
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
202
+ schema: zod_1.z.void(),
203
+ },
204
+ {
205
+ status: 401,
206
+ description: "0: Authorization has been denied for this request.",
207
+ schema: zod_1.z.void(),
208
+ },
209
+ {
210
+ status: 403,
211
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
212
+ schema: zod_1.z.void(),
213
+ },
214
+ ],
215
+ };
216
+ exports.getV1email = {
217
+ method: 'get',
218
+ path: '/v1/email',
219
+ baseUrl: 'https://accountsettings.roblox.com',
220
+ requestFormat: 'json',
221
+ response: Roblox_AccountSettings_Api_EmailResponse,
222
+ errors: [
223
+ {
224
+ status: 401,
225
+ description: "0: Authorization has been denied for this request.",
226
+ schema: zod_1.z.void(),
227
+ },
228
+ ],
229
+ };
230
+ exports.patchV1email = {
231
+ method: 'patch',
232
+ path: '/v1/email',
233
+ baseUrl: 'https://accountsettings.roblox.com',
234
+ requestFormat: 'json',
235
+ parameters: {
236
+ body: Roblox_AccountSettings_Api_UpdateEmailRequest,
237
+ },
238
+ response: zod_1.z.object({}).partial(),
239
+ errors: [
240
+ {
241
+ status: 400,
242
+ description: "8: Password is incorrect.\n9: Invalid email address.",
243
+ schema: zod_1.z.void(),
244
+ },
245
+ {
246
+ status: 401,
247
+ description: "0: Authorization has been denied for this request.",
248
+ schema: zod_1.z.void(),
249
+ },
250
+ {
251
+ status: 403,
252
+ description: "0: Token Validation Failed\n1: PIN is locked.\n3: There are too many accounts associated with this email address.",
253
+ schema: zod_1.z.void(),
254
+ },
255
+ {
256
+ status: 409,
257
+ description: "4: This is already the current email.",
258
+ schema: zod_1.z.void(),
259
+ },
260
+ {
261
+ status: 429,
262
+ description: "6: Too many attempts to update email. Please try again later.\n7: Too many attempts to send verification email. Please try again later.",
263
+ schema: zod_1.z.void(),
264
+ },
265
+ {
266
+ status: 503,
267
+ description: "2: This feature is currently disabled. Please try again later.",
268
+ schema: zod_1.z.void(),
269
+ },
270
+ ],
271
+ };
272
+ exports.postV1email = {
273
+ method: 'post',
274
+ path: '/v1/email',
275
+ baseUrl: 'https://accountsettings.roblox.com',
276
+ requestFormat: 'json',
277
+ parameters: {
278
+ body: Roblox_AccountSettings_Api_UpdateEmailRequest,
279
+ },
280
+ response: zod_1.z.object({}).partial(),
281
+ errors: [
282
+ {
283
+ status: 400,
284
+ description: "8: Password is incorrect.\n9: Invalid email address.",
285
+ schema: zod_1.z.void(),
286
+ },
287
+ {
288
+ status: 401,
289
+ description: "0: Authorization has been denied for this request.",
290
+ schema: zod_1.z.void(),
291
+ },
292
+ {
293
+ status: 403,
294
+ description: "0: Token Validation Failed\n1: PIN is locked.\n3: There are too many accounts associated with this email address.",
295
+ schema: zod_1.z.void(),
296
+ },
297
+ {
298
+ status: 409,
299
+ description: "4: This is already the current email.",
300
+ schema: zod_1.z.void(),
301
+ },
302
+ {
303
+ status: 429,
304
+ description: "6: Too many attempts to update email. Please try again later.\n7: Too many attempts to send verification email. Please try again later.",
305
+ schema: zod_1.z.void(),
306
+ },
307
+ {
308
+ status: 503,
309
+ description: "2: This feature is currently disabled. Please try again later.",
310
+ schema: zod_1.z.void(),
311
+ },
312
+ ],
313
+ };
314
+ exports.postV1emailverify = {
315
+ method: 'post',
316
+ path: '/v1/email/verify',
317
+ baseUrl: 'https://accountsettings.roblox.com',
318
+ requestFormat: 'json',
319
+ parameters: {
320
+ body: Roblox_AccountSettings_Api_SendVerifyEmailRequest,
321
+ },
322
+ response: zod_1.z.object({}).partial(),
323
+ errors: [
324
+ {
325
+ status: 400,
326
+ description: "10: No email address is associated with the account.",
327
+ schema: zod_1.z.void(),
328
+ },
329
+ {
330
+ status: 401,
331
+ description: "0: Authorization has been denied for this request.",
332
+ schema: zod_1.z.void(),
333
+ },
334
+ {
335
+ status: 403,
336
+ description: "0: Token Validation Failed\n1: PIN is locked.",
337
+ schema: zod_1.z.void(),
338
+ },
339
+ {
340
+ status: 409,
341
+ description: "5: The email is already verified.",
342
+ schema: zod_1.z.void(),
343
+ },
344
+ {
345
+ status: 429,
346
+ description: "7: Too many attempts to send verification email. Please try again later.",
347
+ schema: zod_1.z.void(),
348
+ },
349
+ {
350
+ status: 503,
351
+ description: "2: This feature is currently disabled. Please try again later.",
352
+ schema: zod_1.z.void(),
353
+ },
354
+ ],
355
+ };
356
+ exports.getV1gameChatPrivacy = {
357
+ method: 'get',
358
+ path: '/v1/game-chat-privacy',
359
+ baseUrl: 'https://accountsettings.roblox.com',
360
+ requestFormat: 'json',
361
+ response: zod_1.z.object({ gameChatPrivacy: zod_1.z.string() }).partial(),
362
+ errors: [
363
+ {
364
+ status: 401,
365
+ description: "0: Authorization has been denied for this request.",
366
+ schema: zod_1.z.void(),
367
+ },
368
+ ],
369
+ };
370
+ exports.postV1gameChatPrivacy = {
371
+ method: 'post',
372
+ path: '/v1/game-chat-privacy',
373
+ baseUrl: 'https://accountsettings.roblox.com',
374
+ requestFormat: 'json',
375
+ parameters: {
376
+ body: Roblox_AccountSettings_Api_GameChatPrivacyRequest,
377
+ },
378
+ response: zod_1.z.object({}).partial(),
379
+ errors: [
380
+ {
381
+ status: 400,
382
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
383
+ schema: zod_1.z.void(),
384
+ },
385
+ {
386
+ status: 401,
387
+ description: "0: Authorization has been denied for this request.",
388
+ schema: zod_1.z.void(),
389
+ },
390
+ {
391
+ status: 403,
392
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
393
+ schema: zod_1.z.void(),
394
+ },
395
+ ],
396
+ };
397
+ exports.getV1inventoryPrivacy = {
398
+ method: 'get',
399
+ path: '/v1/inventory-privacy',
400
+ baseUrl: 'https://accountsettings.roblox.com',
401
+ requestFormat: 'json',
402
+ response: Roblox_AccountSettings_Api_InventoryPrivacyResponse,
403
+ errors: [
404
+ {
405
+ status: 401,
406
+ description: "0: Authorization has been denied for this request.",
407
+ schema: zod_1.z.void(),
408
+ },
409
+ ],
410
+ };
411
+ exports.postV1inventoryPrivacy = {
412
+ method: 'post',
413
+ path: '/v1/inventory-privacy',
414
+ baseUrl: 'https://accountsettings.roblox.com',
415
+ requestFormat: 'json',
416
+ parameters: {
417
+ body: Roblox_AccountSettings_Api_InventoryPrivacyRequest,
418
+ },
419
+ response: Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse,
420
+ errors: [
421
+ {
422
+ status: 400,
423
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked",
424
+ schema: zod_1.z.void(),
425
+ },
426
+ {
427
+ status: 401,
428
+ description: "0: Authorization has been denied for this request.",
429
+ schema: zod_1.z.void(),
430
+ },
431
+ {
432
+ status: 403,
433
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InventoryHidingFeatureDisabled\n0: Token Validation Failed",
434
+ schema: zod_1.z.void(),
435
+ },
436
+ ],
437
+ };
438
+ exports.getV1privateMessagePrivacy = {
439
+ method: 'get',
440
+ path: '/v1/private-message-privacy',
441
+ baseUrl: 'https://accountsettings.roblox.com',
442
+ requestFormat: 'json',
443
+ response: zod_1.z.object({ privateMessagePrivacy: zod_1.z.string() }).partial(),
444
+ errors: [
445
+ {
446
+ status: 401,
447
+ description: "0: Authorization has been denied for this request.",
448
+ schema: zod_1.z.void(),
449
+ },
450
+ ],
451
+ };
452
+ exports.postV1privateMessagePrivacy = {
453
+ method: 'post',
454
+ path: '/v1/private-message-privacy',
455
+ baseUrl: 'https://accountsettings.roblox.com',
456
+ requestFormat: 'json',
457
+ parameters: {
458
+ body: zod_1.z.object({ privateMessagePrivacy: zod_1.z.string() }).partial(),
459
+ },
460
+ response: zod_1.z.object({}).partial(),
461
+ errors: [
462
+ {
463
+ status: 400,
464
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
465
+ schema: zod_1.z.void(),
466
+ },
467
+ {
468
+ status: 401,
469
+ description: "0: Authorization has been denied for this request.",
470
+ schema: zod_1.z.void(),
471
+ },
472
+ {
473
+ status: 403,
474
+ description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
475
+ schema: zod_1.z.void(),
476
+ },
477
+ ],
478
+ };
479
+ exports.getV1themesConsumerTypeConsumerId = {
480
+ method: 'get',
481
+ path: '/v1/themes/:consumerType/:consumerId',
482
+ baseUrl: 'https://accountsettings.roblox.com',
483
+ requestFormat: 'json',
484
+ parameters: {
485
+ consumerType: zod_1.z.literal(1),
486
+ consumerId: zod_1.z.string(),
487
+ },
488
+ response: zod_1.z.object({ themeType: zod_1.z.string() }).partial(),
489
+ errors: [
490
+ {
491
+ status: 400,
492
+ description: "3: Invalid consumer type.",
493
+ schema: zod_1.z.void(),
494
+ },
495
+ {
496
+ status: 401,
497
+ description: "0: Authorization has been denied for this request.",
498
+ schema: zod_1.z.void(),
499
+ },
500
+ ],
501
+ };
502
+ exports.patchV1themesConsumerTypeConsumerId = {
503
+ method: 'patch',
504
+ path: '/v1/themes/:consumerType/:consumerId',
505
+ baseUrl: 'https://accountsettings.roblox.com',
506
+ requestFormat: 'json',
507
+ parameters: {
508
+ body: zod_1.z.object({ themeType: zod_1.z.string() }).partial(),
509
+ consumerType: zod_1.z.literal(1),
510
+ consumerId: zod_1.z.number().int(),
511
+ },
512
+ response: zod_1.z.object({}).partial(),
513
+ errors: [
514
+ {
515
+ status: 400,
516
+ description: "2: Invalid theme type.",
517
+ schema: zod_1.z.void(),
518
+ },
519
+ {
520
+ status: 401,
521
+ description: "0: Authorization has been denied for this request.",
522
+ schema: zod_1.z.void(),
523
+ },
524
+ {
525
+ status: 403,
526
+ description: "0: Token Validation Failed",
527
+ schema: zod_1.z.void(),
528
+ },
529
+ ],
530
+ };
531
+ exports.getV1themestypes = {
532
+ method: 'get',
533
+ path: '/v1/themes/types',
534
+ baseUrl: 'https://accountsettings.roblox.com',
535
+ requestFormat: 'json',
536
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_,
537
+ errors: [],
538
+ };
539
+ exports.getV1tradePrivacy = {
540
+ method: 'get',
541
+ path: '/v1/trade-privacy',
542
+ baseUrl: 'https://accountsettings.roblox.com',
543
+ requestFormat: 'json',
544
+ response: zod_1.z.object({ tradePrivacy: zod_1.z.string() }).partial(),
545
+ errors: [
546
+ {
547
+ status: 401,
548
+ description: "0: Authorization has been denied for this request.",
549
+ schema: zod_1.z.void(),
550
+ },
551
+ ],
552
+ };
553
+ exports.postV1tradePrivacy = {
554
+ method: 'post',
555
+ path: '/v1/trade-privacy',
556
+ baseUrl: 'https://accountsettings.roblox.com',
557
+ requestFormat: 'json',
558
+ parameters: {
559
+ body: Roblox_AccountSettings_Api_UpdateTradePrivacyRequest,
560
+ },
561
+ response: Roblox_AccountSettings_Api_TradePrivacyUpdateResponse,
562
+ errors: [
563
+ {
564
+ status: 400,
565
+ description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradePrivacy",
566
+ schema: zod_1.z.void(),
567
+ },
568
+ {
569
+ status: 401,
570
+ description: "0: Authorization has been denied for this request.",
571
+ schema: zod_1.z.void(),
572
+ },
573
+ {
574
+ status: 403,
575
+ description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade\n0: Token Validation Failed",
576
+ schema: zod_1.z.void(),
577
+ },
578
+ ],
579
+ };
580
+ exports.getV1tradeValue = {
581
+ method: 'get',
582
+ path: '/v1/trade-value',
583
+ baseUrl: 'https://accountsettings.roblox.com',
584
+ requestFormat: 'json',
585
+ response: zod_1.z.object({ tradeValue: zod_1.z.string() }).partial(),
586
+ errors: [
587
+ {
588
+ status: 401,
589
+ description: "0: Authorization has been denied for this request.",
590
+ schema: zod_1.z.void(),
591
+ },
592
+ ],
593
+ };
594
+ exports.postV1tradeValue = {
595
+ method: 'post',
596
+ path: '/v1/trade-value',
597
+ baseUrl: 'https://accountsettings.roblox.com',
598
+ requestFormat: 'json',
599
+ parameters: {
600
+ body: Roblox_AccountSettings_Api_TradeValueRequest,
601
+ },
602
+ response: zod_1.z.object({}).partial(),
603
+ errors: [
604
+ {
605
+ status: 400,
606
+ description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradeValue",
607
+ schema: zod_1.z.void(),
608
+ },
609
+ {
610
+ status: 401,
611
+ description: "0: Authorization has been denied for this request.",
612
+ schema: zod_1.z.void(),
613
+ },
614
+ {
615
+ status: 403,
616
+ description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade\n0: Token Validation Failed",
617
+ schema: zod_1.z.void(),
618
+ },
619
+ ],
620
+ };
621
+ exports.postV1usersUserIdblock = {
622
+ method: 'post',
623
+ path: '/v1/users/:userId/block',
624
+ baseUrl: 'https://accountsettings.roblox.com',
625
+ requestFormat: 'json',
626
+ parameters: {
627
+ userId: zod_1.z.number().int(),
628
+ },
629
+ response: zod_1.z.object({}).partial(),
630
+ errors: [
631
+ {
632
+ status: 400,
633
+ description: "0: Target user does not exist.\n1: Target user already blocked.\n2: User sending block request has reached their block limit.",
634
+ schema: zod_1.z.void(),
635
+ },
636
+ {
637
+ status: 401,
638
+ description: "0: Authorization has been denied for this request.\n7: User is not logged in.",
639
+ schema: zod_1.z.void(),
640
+ },
641
+ {
642
+ status: 403,
643
+ description: "0: Token Validation Failed",
644
+ schema: zod_1.z.void(),
645
+ },
646
+ {
647
+ status: 503,
648
+ description: "3: User blocking is disabled.\n8: The request failed internally. Please try again later.",
649
+ schema: zod_1.z.void(),
650
+ },
651
+ ],
652
+ };
653
+ exports.postV1usersUserIdunblock = {
654
+ method: 'post',
655
+ path: '/v1/users/:userId/unblock',
656
+ baseUrl: 'https://accountsettings.roblox.com',
657
+ requestFormat: 'json',
658
+ parameters: {
659
+ userId: zod_1.z.number().int(),
660
+ },
661
+ response: zod_1.z.object({}).partial(),
662
+ errors: [
663
+ {
664
+ status: 400,
665
+ description: "0: Target user does not exist.\n4: Target user for unblock request is not currently blocked.",
666
+ schema: zod_1.z.void(),
667
+ },
668
+ {
669
+ status: 401,
670
+ description: "0: Authorization has been denied for this request.\n7: User is not logged in.",
671
+ schema: zod_1.z.void(),
672
+ },
673
+ {
674
+ status: 403,
675
+ description: "0: Token Validation Failed",
676
+ schema: zod_1.z.void(),
677
+ },
678
+ {
679
+ status: 503,
680
+ description: "3: User blocking is disabled.\n8: The request failed internally. Please try again later.",
681
+ schema: zod_1.z.void(),
682
+ },
683
+ ],
684
+ };
685
+ exports.getV1usersgetBlockedUsers = {
686
+ method: 'get',
687
+ path: '/v1/users/get-blocked-users',
688
+ baseUrl: 'https://accountsettings.roblox.com',
689
+ requestFormat: 'json',
690
+ response: Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse,
691
+ errors: [
692
+ {
693
+ status: 401,
694
+ description: "0: Authorization has been denied for this request.",
695
+ schema: zod_1.z.void(),
696
+ },
697
+ ],
698
+ };
699
+ exports.getV1usersgetDetailedBlockedUsers = {
700
+ method: 'get',
701
+ path: '/v1/users/get-detailed-blocked-users',
702
+ baseUrl: 'https://accountsettings.roblox.com',
703
+ requestFormat: 'json',
704
+ response: Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse,
705
+ errors: [
706
+ {
707
+ status: 401,
708
+ description: "0: Authorization has been denied for this request.",
709
+ schema: zod_1.z.void(),
710
+ },
711
+ ],
712
+ };