rozod 2.0.0 → 2.0.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.
Files changed (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +55 -15
  2. package/lib/endpoints/accountinformationv1.js +193 -128
  3. package/lib/endpoints/accountsettingsv1.d.ts +60 -6
  4. package/lib/endpoints/accountsettingsv1.js +204 -118
  5. package/lib/endpoints/assetdeliveryv1.d.ts +431 -0
  6. package/lib/endpoints/assetdeliveryv1.js +442 -10
  7. package/lib/endpoints/assetdeliveryv2.d.ts +431 -0
  8. package/lib/endpoints/assetdeliveryv2.js +443 -12
  9. package/lib/endpoints/authv1.d.ts +162 -36
  10. package/lib/endpoints/authv1.js +399 -201
  11. package/lib/endpoints/authv2.d.ts +108 -0
  12. package/lib/endpoints/authv2.js +353 -160
  13. package/lib/endpoints/authv3.d.ts +6 -0
  14. package/lib/endpoints/authv3.js +16 -8
  15. package/lib/endpoints/avatarv1.d.ts +94 -0
  16. package/lib/endpoints/avatarv1.js +239 -111
  17. package/lib/endpoints/avatarv2.d.ts +26 -0
  18. package/lib/endpoints/avatarv2.js +109 -59
  19. package/lib/endpoints/avatarv3.d.ts +20 -0
  20. package/lib/endpoints/avatarv3.js +83 -41
  21. package/lib/endpoints/badgesv1.d.ts +80 -3
  22. package/lib/endpoints/badgesv1.js +137 -51
  23. package/lib/endpoints/catalogv1.d.ts +183 -25
  24. package/lib/endpoints/catalogv1.js +307 -131
  25. package/lib/endpoints/chatv2.d.ts +105 -0
  26. package/lib/endpoints/chatv2.js +219 -114
  27. package/lib/endpoints/developv1.d.ts +411 -36
  28. package/lib/endpoints/developv1.js +707 -254
  29. package/lib/endpoints/developv2.d.ts +46 -0
  30. package/lib/endpoints/developv2.js +108 -36
  31. package/lib/endpoints/economyv1.js +7 -7
  32. package/lib/endpoints/friendsv1.d.ts +147 -0
  33. package/lib/endpoints/friendsv1.js +309 -114
  34. package/lib/endpoints/gamejoinv1.d.ts +2321 -0
  35. package/lib/endpoints/gamejoinv1.js +416 -0
  36. package/lib/endpoints/gamesv1.d.ts +319 -14
  37. package/lib/endpoints/gamesv1.js +531 -188
  38. package/lib/endpoints/gamesv2.d.ts +89 -0
  39. package/lib/endpoints/gamesv2.js +108 -19
  40. package/lib/endpoints/groupsv1.d.ts +602 -94
  41. package/lib/endpoints/groupsv1.js +1131 -456
  42. package/lib/endpoints/groupsv2.d.ts +33 -0
  43. package/lib/endpoints/groupsv2.js +74 -37
  44. package/lib/endpoints/inventoryv1.d.ts +108 -9
  45. package/lib/endpoints/inventoryv1.js +166 -45
  46. package/lib/endpoints/inventoryv2.d.ts +62 -1
  47. package/lib/endpoints/inventoryv2.js +91 -26
  48. package/lib/endpoints/presencev1.d.ts +14 -5
  49. package/lib/endpoints/presencev1.js +30 -21
  50. package/lib/endpoints/privatemessagesv1.d.ts +39 -0
  51. package/lib/endpoints/privatemessagesv1.js +90 -51
  52. package/lib/endpoints/thumbnailsv1.d.ts +309 -21
  53. package/lib/endpoints/thumbnailsv1.js +410 -63
  54. package/lib/endpoints/tradesv1.d.ts +51 -0
  55. package/lib/endpoints/tradesv1.js +148 -59
  56. package/lib/endpoints/translationsv1.d.ts +33 -0
  57. package/lib/endpoints/translationsv1.js +49 -14
  58. package/lib/endpoints/usersv1.d.ts +67 -0
  59. package/lib/endpoints/usersv1.js +138 -58
  60. package/lib/index.d.ts +4 -0
  61. package/lib/index.js +151 -240
  62. package/package.json +6 -3
@@ -1,45 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUsersGetDetailedBlockedUsers = exports.getUsersGetBlockedUsers = exports.postUsersUseridUnblock = exports.postUsersUseridBlock = exports.postTradeValue = exports.getTradeValue = exports.postTradePrivacy = exports.getTradePrivacy = exports.getThemesTypes = exports.patchThemesConsumertypeConsumerid = exports.getThemesConsumertypeConsumerid = exports.postPrivateMessagePrivacy = exports.getPrivateMessagePrivacy = exports.postInventoryPrivacy = exports.getInventoryPrivacy = exports.postGameChatPrivacy = exports.getGameChatPrivacy = exports.postEmailVerify = exports.postEmail = exports.patchEmail = exports.getEmail = exports.postAppChatPrivacy = exports.getAppChatPrivacy = exports.getAccountSettingsMetadata = void 0;
4
- var zod_1 = require("zod");
5
- var Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel = zod_1.z.object({
3
+ exports.getUsersGetDetailedBlockedUsers = exports.getUsersGetBlockedUsers = exports.postUsersUseridUnblock = exports.postUsersUseridBlock = exports.postTradeValue = exports.getTradeValue = exports.postTradePrivacy = exports.getTradePrivacy = exports.getThemesTypes = exports.patchThemesConsumertypeConsumerid = exports.getThemesConsumertypeConsumerid = exports.postPrivateMessagePrivacy = exports.getPrivateMessagePrivacy = exports.postInventoryPrivacy = exports.getInventoryPrivacy = exports.postGameChatPrivacy = exports.getGameChatPrivacy = exports.postEmailVerify = exports.patchEmail = exports.postEmail = exports.getEmail = exports.postAppChatPrivacy = exports.getAppChatPrivacy = exports.getAccountSettingsMetadata = void 0;
4
+ const zod_1 = require("zod");
5
+ const Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel = zod_1.z.object({
6
6
  IsAccountsRestrictionsSpamBugFixEnabled: zod_1.z.boolean(),
7
7
  MaximumParentalControlsMonthlySpendLimitInUSD: zod_1.z.number().int(),
8
8
  IsParentalMonthlyLimitInUIEnabled: zod_1.z.boolean(),
9
9
  IsParentalNotificationSettingsInUIEnabled: zod_1.z.boolean(),
10
10
  IsContentControlsEnabled: zod_1.z.boolean(),
11
11
  });
12
- var Roblox_AccountSettings_Api_AppChatPrivacyResponse = zod_1.z.object({
12
+ const Roblox_AccountSettings_Api_AppChatPrivacyResponse = zod_1.z.object({
13
13
  appChatPrivacy: zod_1.z.string(),
14
14
  });
15
- var Roblox_AccountSettings_Api_AppChatPrivacyRequest = zod_1.z.object({
15
+ const Roblox_AccountSettings_Api_AppChatPrivacyRequest = zod_1.z.object({
16
16
  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)]),
17
17
  });
18
- var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
19
- var Roblox_AccountSettings_Api_EmailResponse = zod_1.z.object({
18
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
19
+ const Roblox_AccountSettings_Api_EmailResponse = zod_1.z.object({
20
20
  emailAddress: zod_1.z.string(),
21
21
  verified: zod_1.z.boolean(),
22
22
  canBypassPasswordForEmailUpdate: zod_1.z.boolean(),
23
23
  });
24
- var Roblox_AccountSettings_Api_UpdateEmailRequest = zod_1.z.object({
24
+ const Roblox_AccountSettings_Api_UpdateEmailRequest = zod_1.z.object({
25
25
  password: zod_1.z.string(),
26
26
  emailAddress: zod_1.z.string(),
27
27
  skipVerificationEmail: zod_1.z.boolean(),
28
28
  isAdsAccount: zod_1.z.boolean(),
29
29
  });
30
- var Roblox_AccountSettings_Api_GameChatPrivacyResponse = zod_1.z.object({
30
+ const Roblox_AccountSettings_Api_GameChatPrivacyResponse = zod_1.z.object({
31
31
  gameChatPrivacy: zod_1.z.string(),
32
32
  });
33
- var Roblox_AccountSettings_Api_GameChatPrivacyRequest = zod_1.z.object({
33
+ const Roblox_AccountSettings_Api_GameChatPrivacyRequest = zod_1.z.object({
34
34
  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)]),
35
35
  });
36
- var Roblox_AccountSettings_Api_InventoryPrivacyResponse = zod_1.z.object({
36
+ const Roblox_AccountSettings_Api_InventoryPrivacyResponse = zod_1.z.object({
37
37
  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)]),
38
38
  });
39
- var Roblox_AccountSettings_Api_InventoryPrivacyRequest = zod_1.z.object({
39
+ const Roblox_AccountSettings_Api_InventoryPrivacyRequest = zod_1.z.object({
40
40
  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)]),
41
41
  });
42
- var Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse = zod_1.z.object({
42
+ const Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse = zod_1.z.object({
43
43
  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)]),
44
44
  tradePrivacy: zod_1.z.union([
45
45
  zod_1.z.literal(0),
@@ -53,25 +53,25 @@ var Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse = zod_1.z.object({
53
53
  ]),
54
54
  privacySettingResponse: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
55
55
  });
56
- var Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse = zod_1.z.object({
56
+ const Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse = zod_1.z.object({
57
57
  privateMessagePrivacy: zod_1.z.string(),
58
58
  });
59
- var Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest = zod_1.z.object({
59
+ const Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest = zod_1.z.object({
60
60
  privateMessagePrivacy: zod_1.z.string(),
61
61
  });
62
- var Roblox_AccountSettings_Api_ThemeConfigurationResponse = zod_1.z.object({
62
+ const Roblox_AccountSettings_Api_ThemeConfigurationResponse = zod_1.z.object({
63
63
  themeType: zod_1.z.string(),
64
64
  });
65
- var Roblox_AccountSettings_Api_ThemeConfigurationRequest = zod_1.z.object({
65
+ const Roblox_AccountSettings_Api_ThemeConfigurationRequest = zod_1.z.object({
66
66
  themeType: zod_1.z.string(),
67
67
  });
68
- var Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = zod_1.z.object({
68
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = zod_1.z.object({
69
69
  data: zod_1.z.array(zod_1.z.string()),
70
70
  });
71
- var Roblox_AccountSettings_Api_TradePrivacyResponse = zod_1.z.object({
71
+ const Roblox_AccountSettings_Api_TradePrivacyResponse = zod_1.z.object({
72
72
  tradePrivacy: zod_1.z.string(),
73
73
  });
74
- var Roblox_AccountSettings_Api_UpdateTradePrivacyRequest = zod_1.z.object({
74
+ const Roblox_AccountSettings_Api_UpdateTradePrivacyRequest = zod_1.z.object({
75
75
  tradePrivacy: zod_1.z.union([
76
76
  zod_1.z.literal(0),
77
77
  zod_1.z.literal(1),
@@ -83,7 +83,7 @@ var Roblox_AccountSettings_Api_UpdateTradePrivacyRequest = zod_1.z.object({
83
83
  zod_1.z.literal(7),
84
84
  ]),
85
85
  });
86
- var Roblox_AccountSettings_Api_TradePrivacyUpdateResponse = zod_1.z.object({
86
+ const Roblox_AccountSettings_Api_TradePrivacyUpdateResponse = zod_1.z.object({
87
87
  tradePrivacy: zod_1.z.union([
88
88
  zod_1.z.literal(0),
89
89
  zod_1.z.literal(1),
@@ -97,55 +97,55 @@ var Roblox_AccountSettings_Api_TradePrivacyUpdateResponse = zod_1.z.object({
97
97
  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)]),
98
98
  privacySettingResponse: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
99
99
  });
100
- var Roblox_AccountSettings_Api_TradeValueResponse = zod_1.z.object({
100
+ const Roblox_AccountSettings_Api_TradeValueResponse = zod_1.z.object({
101
101
  tradeValue: zod_1.z.string(),
102
102
  });
103
- var Roblox_AccountSettings_Api_TradeValueRequest = zod_1.z.object({
103
+ const Roblox_AccountSettings_Api_TradeValueRequest = zod_1.z.object({
104
104
  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)]),
105
105
  });
106
- var Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse = zod_1.z.object({
106
+ const Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse = zod_1.z.object({
107
107
  blockedUserIds: zod_1.z.array(zod_1.z.number()),
108
108
  });
109
- var Roblox_AccountSettings_Api_Models_BlockedUser = zod_1.z.object({
109
+ const Roblox_AccountSettings_Api_Models_BlockedUser = zod_1.z.object({
110
110
  userId: zod_1.z.number().int(),
111
111
  name: zod_1.z.string(),
112
112
  displayName: zod_1.z.string(),
113
113
  });
114
- var Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse = zod_1.z.object({
114
+ const Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse = zod_1.z.object({
115
115
  blockedUsers: zod_1.z.array(Roblox_AccountSettings_Api_Models_BlockedUser),
116
116
  maxBlockedUsers: zod_1.z.number().int(),
117
117
  total: zod_1.z.number().int(),
118
118
  });
119
- var Roblox_AccountSettings_Api_SendVerifyEmailRequest = zod_1.z.object({
119
+ const Roblox_AccountSettings_Api_SendVerifyEmailRequest = zod_1.z.object({
120
120
  freeItem: zod_1.z.boolean(),
121
121
  isAdsAccount: zod_1.z.boolean(),
122
122
  });
123
- var schemas = {
124
- Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel: Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel,
125
- Roblox_AccountSettings_Api_AppChatPrivacyResponse: Roblox_AccountSettings_Api_AppChatPrivacyResponse,
126
- Roblox_AccountSettings_Api_AppChatPrivacyRequest: Roblox_AccountSettings_Api_AppChatPrivacyRequest,
127
- Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
128
- Roblox_AccountSettings_Api_EmailResponse: Roblox_AccountSettings_Api_EmailResponse,
129
- Roblox_AccountSettings_Api_UpdateEmailRequest: Roblox_AccountSettings_Api_UpdateEmailRequest,
130
- Roblox_AccountSettings_Api_GameChatPrivacyResponse: Roblox_AccountSettings_Api_GameChatPrivacyResponse,
131
- Roblox_AccountSettings_Api_GameChatPrivacyRequest: Roblox_AccountSettings_Api_GameChatPrivacyRequest,
132
- Roblox_AccountSettings_Api_InventoryPrivacyResponse: Roblox_AccountSettings_Api_InventoryPrivacyResponse,
133
- Roblox_AccountSettings_Api_InventoryPrivacyRequest: Roblox_AccountSettings_Api_InventoryPrivacyRequest,
134
- Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse: Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse,
135
- Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse: Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse,
136
- Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest: Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest,
137
- Roblox_AccountSettings_Api_ThemeConfigurationResponse: Roblox_AccountSettings_Api_ThemeConfigurationResponse,
138
- Roblox_AccountSettings_Api_ThemeConfigurationRequest: Roblox_AccountSettings_Api_ThemeConfigurationRequest,
139
- Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_: Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_,
140
- Roblox_AccountSettings_Api_TradePrivacyResponse: Roblox_AccountSettings_Api_TradePrivacyResponse,
141
- Roblox_AccountSettings_Api_UpdateTradePrivacyRequest: Roblox_AccountSettings_Api_UpdateTradePrivacyRequest,
142
- Roblox_AccountSettings_Api_TradePrivacyUpdateResponse: Roblox_AccountSettings_Api_TradePrivacyUpdateResponse,
143
- Roblox_AccountSettings_Api_TradeValueResponse: Roblox_AccountSettings_Api_TradeValueResponse,
144
- Roblox_AccountSettings_Api_TradeValueRequest: Roblox_AccountSettings_Api_TradeValueRequest,
145
- Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse: Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse,
146
- Roblox_AccountSettings_Api_Models_BlockedUser: Roblox_AccountSettings_Api_Models_BlockedUser,
147
- Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse: Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse,
148
- Roblox_AccountSettings_Api_SendVerifyEmailRequest: Roblox_AccountSettings_Api_SendVerifyEmailRequest,
123
+ const schemas = {
124
+ Roblox_AccountSettings_Api_Models_AccountsSettingsMetadataModel,
125
+ Roblox_AccountSettings_Api_AppChatPrivacyResponse,
126
+ Roblox_AccountSettings_Api_AppChatPrivacyRequest,
127
+ Roblox_Web_WebAPI_ApiEmptyResponseModel,
128
+ Roblox_AccountSettings_Api_EmailResponse,
129
+ Roblox_AccountSettings_Api_UpdateEmailRequest,
130
+ Roblox_AccountSettings_Api_GameChatPrivacyResponse,
131
+ Roblox_AccountSettings_Api_GameChatPrivacyRequest,
132
+ Roblox_AccountSettings_Api_InventoryPrivacyResponse,
133
+ Roblox_AccountSettings_Api_InventoryPrivacyRequest,
134
+ Roblox_AccountSettings_Api_InventoryPrivacyUpdateResponse,
135
+ Roblox_AccountSettings_Api_PrivateMessagePrivacyResponse,
136
+ Roblox_AccountSettings_Api_PrivateMessagePrivacyRequest,
137
+ Roblox_AccountSettings_Api_ThemeConfigurationResponse,
138
+ Roblox_AccountSettings_Api_ThemeConfigurationRequest,
139
+ Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_,
140
+ Roblox_AccountSettings_Api_TradePrivacyResponse,
141
+ Roblox_AccountSettings_Api_UpdateTradePrivacyRequest,
142
+ Roblox_AccountSettings_Api_TradePrivacyUpdateResponse,
143
+ Roblox_AccountSettings_Api_TradeValueResponse,
144
+ Roblox_AccountSettings_Api_TradeValueRequest,
145
+ Roblox_AccountSettings_Api_Models_Response_GetBlockedUsersResponse,
146
+ Roblox_AccountSettings_Api_Models_BlockedUser,
147
+ Roblox_AccountSettings_Api_Models_Response_GetDetailedBlockedUsersResponse,
148
+ Roblox_AccountSettings_Api_SendVerifyEmailRequest,
149
149
  };
150
150
  /**
151
151
  * @api get https://accountsettings.roblox.com/v1/account/settings/metadata
@@ -159,7 +159,7 @@ exports.getAccountSettingsMetadata = {
159
159
  errors: [
160
160
  {
161
161
  status: 401,
162
- description: "0: Authorization has been denied for this request.",
162
+ description: `0: Authorization has been denied for this request.`,
163
163
  schema: zod_1.z.void(),
164
164
  },
165
165
  ],
@@ -176,7 +176,7 @@ exports.getAppChatPrivacy = {
176
176
  errors: [
177
177
  {
178
178
  status: 401,
179
- description: "0: Authorization has been denied for this request.",
179
+ description: `0: Authorization has been denied for this request.`,
180
180
  schema: zod_1.z.void(),
181
181
  },
182
182
  ],
@@ -190,6 +190,9 @@ exports.postAppChatPrivacy = {
190
190
  path: '/v1/app-chat-privacy',
191
191
  baseUrl: 'https://accountsettings.roblox.com',
192
192
  requestFormat: 'json',
193
+ serializationMethod: {
194
+ body: {},
195
+ },
193
196
  parameters: {
194
197
  body: Roblox_AccountSettings_Api_AppChatPrivacyRequest,
195
198
  },
@@ -197,17 +200,20 @@ exports.postAppChatPrivacy = {
197
200
  errors: [
198
201
  {
199
202
  status: 400,
200
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
203
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption`,
201
204
  schema: zod_1.z.void(),
202
205
  },
203
206
  {
204
207
  status: 401,
205
- description: "0: Authorization has been denied for this request.",
208
+ description: `0: Authorization has been denied for this request.`,
206
209
  schema: zod_1.z.void(),
207
210
  },
208
211
  {
209
212
  status: 403,
210
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
213
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked
214
+ OR
215
+ Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled
216
+ 0: Token Validation Failed`,
211
217
  schema: zod_1.z.void(),
212
218
  },
213
219
  ],
@@ -224,20 +230,23 @@ exports.getEmail = {
224
230
  errors: [
225
231
  {
226
232
  status: 401,
227
- description: "0: Authorization has been denied for this request.",
233
+ description: `0: Authorization has been denied for this request.`,
228
234
  schema: zod_1.z.void(),
229
235
  },
230
236
  ],
231
237
  };
232
238
  /**
233
- * @api patch https://accountsettings.roblox.com/v1/email
239
+ * @api post https://accountsettings.roblox.com/v1/email
234
240
  * @param body The request body.
235
241
  */
236
- exports.patchEmail = {
237
- method: 'patch',
242
+ exports.postEmail = {
243
+ method: 'post',
238
244
  path: '/v1/email',
239
245
  baseUrl: 'https://accountsettings.roblox.com',
240
246
  requestFormat: 'json',
247
+ serializationMethod: {
248
+ body: {},
249
+ },
241
250
  parameters: {
242
251
  body: Roblox_AccountSettings_Api_UpdateEmailRequest,
243
252
  },
@@ -245,45 +254,52 @@ exports.patchEmail = {
245
254
  errors: [
246
255
  {
247
256
  status: 400,
248
- description: "8: Password is incorrect.\n9: Invalid email address.",
257
+ description: `8: Password is incorrect.
258
+ 9: Invalid email address.`,
249
259
  schema: zod_1.z.void(),
250
260
  },
251
261
  {
252
262
  status: 401,
253
- description: "0: Authorization has been denied for this request.",
263
+ description: `0: Authorization has been denied for this request.`,
254
264
  schema: zod_1.z.void(),
255
265
  },
256
266
  {
257
267
  status: 403,
258
- description: "0: Token Validation Failed\n1: PIN is locked.\n3: There are too many accounts associated with this email address.",
268
+ description: `0: Token Validation Failed
269
+ 1: PIN is locked.
270
+ 3: There are too many accounts associated with this email address.`,
259
271
  schema: zod_1.z.void(),
260
272
  },
261
273
  {
262
274
  status: 409,
263
- description: "4: This is already the current email.",
275
+ description: `4: This is already the current email.`,
264
276
  schema: zod_1.z.void(),
265
277
  },
266
278
  {
267
279
  status: 429,
268
- description: "6: Too many attempts to update email. Please try again later.\n7: Too many attempts to send verification email. Please try again later.",
280
+ description: `6: Too many attempts to update email. Please try again later.
281
+ 7: Too many attempts to send verification email. Please try again later.`,
269
282
  schema: zod_1.z.void(),
270
283
  },
271
284
  {
272
285
  status: 503,
273
- description: "2: This feature is currently disabled. Please try again later.",
286
+ description: `2: This feature is currently disabled. Please try again later.`,
274
287
  schema: zod_1.z.void(),
275
288
  },
276
289
  ],
277
290
  };
278
291
  /**
279
- * @api post https://accountsettings.roblox.com/v1/email
292
+ * @api patch https://accountsettings.roblox.com/v1/email
280
293
  * @param body The request body.
281
294
  */
282
- exports.postEmail = {
283
- method: 'post',
295
+ exports.patchEmail = {
296
+ method: 'patch',
284
297
  path: '/v1/email',
285
298
  baseUrl: 'https://accountsettings.roblox.com',
286
299
  requestFormat: 'json',
300
+ serializationMethod: {
301
+ body: {},
302
+ },
287
303
  parameters: {
288
304
  body: Roblox_AccountSettings_Api_UpdateEmailRequest,
289
305
  },
@@ -291,32 +307,36 @@ exports.postEmail = {
291
307
  errors: [
292
308
  {
293
309
  status: 400,
294
- description: "8: Password is incorrect.\n9: Invalid email address.",
310
+ description: `8: Password is incorrect.
311
+ 9: Invalid email address.`,
295
312
  schema: zod_1.z.void(),
296
313
  },
297
314
  {
298
315
  status: 401,
299
- description: "0: Authorization has been denied for this request.",
316
+ description: `0: Authorization has been denied for this request.`,
300
317
  schema: zod_1.z.void(),
301
318
  },
302
319
  {
303
320
  status: 403,
304
- description: "0: Token Validation Failed\n1: PIN is locked.\n3: There are too many accounts associated with this email address.",
321
+ description: `0: Token Validation Failed
322
+ 1: PIN is locked.
323
+ 3: There are too many accounts associated with this email address.`,
305
324
  schema: zod_1.z.void(),
306
325
  },
307
326
  {
308
327
  status: 409,
309
- description: "4: This is already the current email.",
328
+ description: `4: This is already the current email.`,
310
329
  schema: zod_1.z.void(),
311
330
  },
312
331
  {
313
332
  status: 429,
314
- description: "6: Too many attempts to update email. Please try again later.\n7: Too many attempts to send verification email. Please try again later.",
333
+ description: `6: Too many attempts to update email. Please try again later.
334
+ 7: Too many attempts to send verification email. Please try again later.`,
315
335
  schema: zod_1.z.void(),
316
336
  },
317
337
  {
318
338
  status: 503,
319
- description: "2: This feature is currently disabled. Please try again later.",
339
+ description: `2: This feature is currently disabled. Please try again later.`,
320
340
  schema: zod_1.z.void(),
321
341
  },
322
342
  ],
@@ -330,6 +350,9 @@ exports.postEmailVerify = {
330
350
  path: '/v1/email/verify',
331
351
  baseUrl: 'https://accountsettings.roblox.com',
332
352
  requestFormat: 'json',
353
+ serializationMethod: {
354
+ body: {},
355
+ },
333
356
  parameters: {
334
357
  body: Roblox_AccountSettings_Api_SendVerifyEmailRequest,
335
358
  },
@@ -337,32 +360,33 @@ exports.postEmailVerify = {
337
360
  errors: [
338
361
  {
339
362
  status: 400,
340
- description: "10: No email address is associated with the account.",
363
+ description: `10: No email address is associated with the account.`,
341
364
  schema: zod_1.z.void(),
342
365
  },
343
366
  {
344
367
  status: 401,
345
- description: "0: Authorization has been denied for this request.",
368
+ description: `0: Authorization has been denied for this request.`,
346
369
  schema: zod_1.z.void(),
347
370
  },
348
371
  {
349
372
  status: 403,
350
- description: "0: Token Validation Failed\n1: PIN is locked.",
373
+ description: `0: Token Validation Failed
374
+ 1: PIN is locked.`,
351
375
  schema: zod_1.z.void(),
352
376
  },
353
377
  {
354
378
  status: 409,
355
- description: "5: The email is already verified.",
379
+ description: `5: The email is already verified.`,
356
380
  schema: zod_1.z.void(),
357
381
  },
358
382
  {
359
383
  status: 429,
360
- description: "7: Too many attempts to send verification email. Please try again later.",
384
+ description: `7: Too many attempts to send verification email. Please try again later.`,
361
385
  schema: zod_1.z.void(),
362
386
  },
363
387
  {
364
388
  status: 503,
365
- description: "2: This feature is currently disabled. Please try again later.",
389
+ description: `2: This feature is currently disabled. Please try again later.`,
366
390
  schema: zod_1.z.void(),
367
391
  },
368
392
  ],
@@ -379,7 +403,7 @@ exports.getGameChatPrivacy = {
379
403
  errors: [
380
404
  {
381
405
  status: 401,
382
- description: "0: Authorization has been denied for this request.",
406
+ description: `0: Authorization has been denied for this request.`,
383
407
  schema: zod_1.z.void(),
384
408
  },
385
409
  ],
@@ -393,6 +417,9 @@ exports.postGameChatPrivacy = {
393
417
  path: '/v1/game-chat-privacy',
394
418
  baseUrl: 'https://accountsettings.roblox.com',
395
419
  requestFormat: 'json',
420
+ serializationMethod: {
421
+ body: {},
422
+ },
396
423
  parameters: {
397
424
  body: Roblox_AccountSettings_Api_GameChatPrivacyRequest,
398
425
  },
@@ -400,17 +427,20 @@ exports.postGameChatPrivacy = {
400
427
  errors: [
401
428
  {
402
429
  status: 400,
403
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
430
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption`,
404
431
  schema: zod_1.z.void(),
405
432
  },
406
433
  {
407
434
  status: 401,
408
- description: "0: Authorization has been denied for this request.",
435
+ description: `0: Authorization has been denied for this request.`,
409
436
  schema: zod_1.z.void(),
410
437
  },
411
438
  {
412
439
  status: 403,
413
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
440
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked
441
+ OR
442
+ Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled
443
+ 0: Token Validation Failed`,
414
444
  schema: zod_1.z.void(),
415
445
  },
416
446
  ],
@@ -427,7 +457,7 @@ exports.getInventoryPrivacy = {
427
457
  errors: [
428
458
  {
429
459
  status: 401,
430
- description: "0: Authorization has been denied for this request.",
460
+ description: `0: Authorization has been denied for this request.`,
431
461
  schema: zod_1.z.void(),
432
462
  },
433
463
  ],
@@ -441,6 +471,9 @@ exports.postInventoryPrivacy = {
441
471
  path: '/v1/inventory-privacy',
442
472
  baseUrl: 'https://accountsettings.roblox.com',
443
473
  requestFormat: 'json',
474
+ serializationMethod: {
475
+ body: {},
476
+ },
444
477
  parameters: {
445
478
  body: Roblox_AccountSettings_Api_InventoryPrivacyRequest,
446
479
  },
@@ -448,17 +481,18 @@ exports.postInventoryPrivacy = {
448
481
  errors: [
449
482
  {
450
483
  status: 400,
451
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked",
484
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked`,
452
485
  schema: zod_1.z.void(),
453
486
  },
454
487
  {
455
488
  status: 401,
456
- description: "0: Authorization has been denied for this request.",
489
+ description: `0: Authorization has been denied for this request.`,
457
490
  schema: zod_1.z.void(),
458
491
  },
459
492
  {
460
493
  status: 403,
461
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InventoryHidingFeatureDisabled\n0: Token Validation Failed",
494
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InventoryHidingFeatureDisabled
495
+ 0: Token Validation Failed`,
462
496
  schema: zod_1.z.void(),
463
497
  },
464
498
  ],
@@ -475,7 +509,7 @@ exports.getPrivateMessagePrivacy = {
475
509
  errors: [
476
510
  {
477
511
  status: 401,
478
- description: "0: Authorization has been denied for this request.",
512
+ description: `0: Authorization has been denied for this request.`,
479
513
  schema: zod_1.z.void(),
480
514
  },
481
515
  ],
@@ -489,6 +523,9 @@ exports.postPrivateMessagePrivacy = {
489
523
  path: '/v1/private-message-privacy',
490
524
  baseUrl: 'https://accountsettings.roblox.com',
491
525
  requestFormat: 'json',
526
+ serializationMethod: {
527
+ body: {},
528
+ },
492
529
  parameters: {
493
530
  body: zod_1.z.object({ privateMessagePrivacy: zod_1.z.string() }),
494
531
  },
@@ -496,17 +533,20 @@ exports.postPrivateMessagePrivacy = {
496
533
  errors: [
497
534
  {
498
535
  status: 400,
499
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption",
536
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.InvalidSettingOption`,
500
537
  schema: zod_1.z.void(),
501
538
  },
502
539
  {
503
540
  status: 401,
504
- description: "0: Authorization has been denied for this request.",
541
+ description: `0: Authorization has been denied for this request.`,
505
542
  schema: zod_1.z.void(),
506
543
  },
507
544
  {
508
545
  status: 403,
509
- description: "Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled\n0: Token Validation Failed",
546
+ description: `Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.AccountLocked
547
+ OR
548
+ Roblox.AccountSettings.Api.ResponseEnums.ContactSettingsErrors.SettingLockedCuratedGamesEnabled
549
+ 0: Token Validation Failed`,
510
550
  schema: zod_1.z.void(),
511
551
  },
512
552
  ],
@@ -521,6 +561,14 @@ exports.getThemesConsumertypeConsumerid = {
521
561
  path: '/v1/themes/:consumerType/:consumerId',
522
562
  baseUrl: 'https://accountsettings.roblox.com',
523
563
  requestFormat: 'json',
564
+ serializationMethod: {
565
+ consumerType: {
566
+ style: 'simple',
567
+ },
568
+ consumerId: {
569
+ style: 'simple',
570
+ },
571
+ },
524
572
  parameters: {
525
573
  consumerType: zod_1.z.literal(1),
526
574
  consumerId: zod_1.z.string(),
@@ -529,12 +577,12 @@ exports.getThemesConsumertypeConsumerid = {
529
577
  errors: [
530
578
  {
531
579
  status: 400,
532
- description: "3: Invalid consumer type.",
580
+ description: `3: Invalid consumer type.`,
533
581
  schema: zod_1.z.void(),
534
582
  },
535
583
  {
536
584
  status: 401,
537
- description: "0: Authorization has been denied for this request.",
585
+ description: `0: Authorization has been denied for this request.`,
538
586
  schema: zod_1.z.void(),
539
587
  },
540
588
  ],
@@ -550,6 +598,15 @@ exports.patchThemesConsumertypeConsumerid = {
550
598
  path: '/v1/themes/:consumerType/:consumerId',
551
599
  baseUrl: 'https://accountsettings.roblox.com',
552
600
  requestFormat: 'json',
601
+ serializationMethod: {
602
+ body: {},
603
+ consumerType: {
604
+ style: 'simple',
605
+ },
606
+ consumerId: {
607
+ style: 'simple',
608
+ },
609
+ },
553
610
  parameters: {
554
611
  body: zod_1.z.object({ themeType: zod_1.z.string() }),
555
612
  consumerType: zod_1.z.literal(1),
@@ -559,17 +616,17 @@ exports.patchThemesConsumertypeConsumerid = {
559
616
  errors: [
560
617
  {
561
618
  status: 400,
562
- description: "2: Invalid theme type.",
619
+ description: `2: Invalid theme type.`,
563
620
  schema: zod_1.z.void(),
564
621
  },
565
622
  {
566
623
  status: 401,
567
- description: "0: Authorization has been denied for this request.",
624
+ description: `0: Authorization has been denied for this request.`,
568
625
  schema: zod_1.z.void(),
569
626
  },
570
627
  {
571
628
  status: 403,
572
- description: "0: Token Validation Failed",
629
+ description: `0: Token Validation Failed`,
573
630
  schema: zod_1.z.void(),
574
631
  },
575
632
  ],
@@ -597,7 +654,7 @@ exports.getTradePrivacy = {
597
654
  errors: [
598
655
  {
599
656
  status: 401,
600
- description: "0: Authorization has been denied for this request.",
657
+ description: `0: Authorization has been denied for this request.`,
601
658
  schema: zod_1.z.void(),
602
659
  },
603
660
  ],
@@ -611,6 +668,9 @@ exports.postTradePrivacy = {
611
668
  path: '/v1/trade-privacy',
612
669
  baseUrl: 'https://accountsettings.roblox.com',
613
670
  requestFormat: 'json',
671
+ serializationMethod: {
672
+ body: {},
673
+ },
614
674
  parameters: {
615
675
  body: Roblox_AccountSettings_Api_UpdateTradePrivacyRequest,
616
676
  },
@@ -618,17 +678,20 @@ exports.postTradePrivacy = {
618
678
  errors: [
619
679
  {
620
680
  status: 400,
621
- description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradePrivacy",
681
+ description: `Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradePrivacy`,
622
682
  schema: zod_1.z.void(),
623
683
  },
624
684
  {
625
685
  status: 401,
626
- description: "0: Authorization has been denied for this request.",
686
+ description: `0: Authorization has been denied for this request.`,
627
687
  schema: zod_1.z.void(),
628
688
  },
629
689
  {
630
690
  status: 403,
631
- description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade\n0: Token Validation Failed",
691
+ description: `Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked
692
+ OR
693
+ Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade
694
+ 0: Token Validation Failed`,
632
695
  schema: zod_1.z.void(),
633
696
  },
634
697
  ],
@@ -645,7 +708,7 @@ exports.getTradeValue = {
645
708
  errors: [
646
709
  {
647
710
  status: 401,
648
- description: "0: Authorization has been denied for this request.",
711
+ description: `0: Authorization has been denied for this request.`,
649
712
  schema: zod_1.z.void(),
650
713
  },
651
714
  ],
@@ -659,6 +722,9 @@ exports.postTradeValue = {
659
722
  path: '/v1/trade-value',
660
723
  baseUrl: 'https://accountsettings.roblox.com',
661
724
  requestFormat: 'json',
725
+ serializationMethod: {
726
+ body: {},
727
+ },
662
728
  parameters: {
663
729
  body: Roblox_AccountSettings_Api_TradeValueRequest,
664
730
  },
@@ -666,17 +732,20 @@ exports.postTradeValue = {
666
732
  errors: [
667
733
  {
668
734
  status: 400,
669
- description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradeValue",
735
+ description: `Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.InvalidTradeValue`,
670
736
  schema: zod_1.z.void(),
671
737
  },
672
738
  {
673
739
  status: 401,
674
- description: "0: Authorization has been denied for this request.",
740
+ description: `0: Authorization has been denied for this request.`,
675
741
  schema: zod_1.z.void(),
676
742
  },
677
743
  {
678
744
  status: 403,
679
- description: "Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked\n OR\n Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade\n0: Token Validation Failed",
745
+ description: `Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.AccountLocked
746
+ OR
747
+ Roblox.AccountSettings.Api.ResponseEnums.TradeSettingsErrors.UserCannotTrade
748
+ 0: Token Validation Failed`,
680
749
  schema: zod_1.z.void(),
681
750
  },
682
751
  ],
@@ -690,6 +759,11 @@ exports.postUsersUseridBlock = {
690
759
  path: '/v1/users/:userId/block',
691
760
  baseUrl: 'https://accountsettings.roblox.com',
692
761
  requestFormat: 'json',
762
+ serializationMethod: {
763
+ userId: {
764
+ style: 'simple',
765
+ },
766
+ },
693
767
  parameters: {
694
768
  userId: zod_1.z.number().int(),
695
769
  },
@@ -697,22 +771,26 @@ exports.postUsersUseridBlock = {
697
771
  errors: [
698
772
  {
699
773
  status: 400,
700
- description: "0: Target user does not exist.\n1: Target user already blocked.\n2: User sending block request has reached their block limit.",
774
+ description: `0: Target user does not exist.
775
+ 1: Target user already blocked.
776
+ 2: User sending block request has reached their block limit.`,
701
777
  schema: zod_1.z.void(),
702
778
  },
703
779
  {
704
780
  status: 401,
705
- description: "0: Authorization has been denied for this request.\n7: User is not logged in.",
781
+ description: `0: Authorization has been denied for this request.
782
+ 7: User is not logged in.`,
706
783
  schema: zod_1.z.void(),
707
784
  },
708
785
  {
709
786
  status: 403,
710
- description: "0: Token Validation Failed",
787
+ description: `0: Token Validation Failed`,
711
788
  schema: zod_1.z.void(),
712
789
  },
713
790
  {
714
791
  status: 503,
715
- description: "3: User blocking is disabled.\n8: The request failed internally. Please try again later.",
792
+ description: `3: User blocking is disabled.
793
+ 8: The request failed internally. Please try again later.`,
716
794
  schema: zod_1.z.void(),
717
795
  },
718
796
  ],
@@ -726,6 +804,11 @@ exports.postUsersUseridUnblock = {
726
804
  path: '/v1/users/:userId/unblock',
727
805
  baseUrl: 'https://accountsettings.roblox.com',
728
806
  requestFormat: 'json',
807
+ serializationMethod: {
808
+ userId: {
809
+ style: 'simple',
810
+ },
811
+ },
729
812
  parameters: {
730
813
  userId: zod_1.z.number().int(),
731
814
  },
@@ -733,22 +816,25 @@ exports.postUsersUseridUnblock = {
733
816
  errors: [
734
817
  {
735
818
  status: 400,
736
- description: "0: Target user does not exist.\n4: Target user for unblock request is not currently blocked.",
819
+ description: `0: Target user does not exist.
820
+ 4: Target user for unblock request is not currently blocked.`,
737
821
  schema: zod_1.z.void(),
738
822
  },
739
823
  {
740
824
  status: 401,
741
- description: "0: Authorization has been denied for this request.\n7: User is not logged in.",
825
+ description: `0: Authorization has been denied for this request.
826
+ 7: User is not logged in.`,
742
827
  schema: zod_1.z.void(),
743
828
  },
744
829
  {
745
830
  status: 403,
746
- description: "0: Token Validation Failed",
831
+ description: `0: Token Validation Failed`,
747
832
  schema: zod_1.z.void(),
748
833
  },
749
834
  {
750
835
  status: 503,
751
- description: "3: User blocking is disabled.\n8: The request failed internally. Please try again later.",
836
+ description: `3: User blocking is disabled.
837
+ 8: The request failed internally. Please try again later.`,
752
838
  schema: zod_1.z.void(),
753
839
  },
754
840
  ],
@@ -765,7 +851,7 @@ exports.getUsersGetBlockedUsers = {
765
851
  errors: [
766
852
  {
767
853
  status: 401,
768
- description: "0: Authorization has been denied for this request.",
854
+ description: `0: Authorization has been denied for this request.`,
769
855
  schema: zod_1.z.void(),
770
856
  },
771
857
  ],
@@ -782,7 +868,7 @@ exports.getUsersGetDetailedBlockedUsers = {
782
868
  errors: [
783
869
  {
784
870
  status: 401,
785
- description: "0: Authorization has been denied for this request.",
871
+ description: `0: Authorization has been denied for this request.`,
786
872
  schema: zod_1.z.void(),
787
873
  },
788
874
  ],