rozod 6.8.0 → 6.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +92 -95
  2. package/lib/endpoints/accountsettingsv1.d.ts +88 -110
  3. package/lib/endpoints/adconfigurationv2.d.ts +108 -215
  4. package/lib/endpoints/assetdeliveryv1.d.ts +236 -237
  5. package/lib/endpoints/assetdeliveryv2.d.ts +180 -181
  6. package/lib/endpoints/authv1.d.ts +479 -521
  7. package/lib/endpoints/authv2.d.ts +209 -221
  8. package/lib/endpoints/authv3.d.ts +32 -35
  9. package/lib/endpoints/avatarv1.d.ts +112 -117
  10. package/lib/endpoints/avatarv2.d.ts +71 -76
  11. package/lib/endpoints/avatarv3.d.ts +27 -33
  12. package/lib/endpoints/badgesv1.d.ts +92 -99
  13. package/lib/endpoints/catalogv1.d.ts +207 -233
  14. package/lib/endpoints/catalogv2.d.ts +81 -119
  15. package/lib/endpoints/clientsettingsv1.d.ts +33 -35
  16. package/lib/endpoints/clientsettingsv2.d.ts +62 -68
  17. package/lib/endpoints/contactsv1.d.ts +18 -20
  18. package/lib/endpoints/developv1.d.ts +230 -293
  19. package/lib/endpoints/developv2.d.ts +84 -137
  20. package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
  21. package/lib/endpoints/economyv1.d.ts +6 -6
  22. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  23. package/lib/endpoints/followingsv1.d.ts +33 -34
  24. package/lib/endpoints/followingsv2.d.ts +9 -9
  25. package/lib/endpoints/friendsv1.d.ts +200 -237
  26. package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
  27. package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
  28. package/lib/endpoints/gamesv1.d.ts +181 -143
  29. package/lib/endpoints/gamesv2.d.ts +161 -169
  30. package/lib/endpoints/groupsv1.d.ts +938 -988
  31. package/lib/endpoints/groupsv2.d.ts +259 -278
  32. package/lib/endpoints/inventoryv1.d.ts +91 -122
  33. package/lib/endpoints/inventoryv2.d.ts +163 -180
  34. package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
  35. package/lib/endpoints/localev1.d.ts +47 -48
  36. package/lib/endpoints/localizationtablesv1.d.ts +315 -353
  37. package/lib/endpoints/matchmakingv1.d.ts +184 -190
  38. package/lib/endpoints/notificationsv2.d.ts +144 -158
  39. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  40. package/lib/endpoints/presencev1.d.ts +7 -12
  41. package/lib/endpoints/privatemessagesv1.d.ts +56 -64
  42. package/lib/endpoints/publishv1.d.ts +32 -32
  43. package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
  44. package/lib/endpoints/thumbnailsv1.d.ts +325 -326
  45. package/lib/endpoints/thumbnailsv1.js +24 -24
  46. package/lib/endpoints/tradesv1.d.ts +92 -104
  47. package/lib/endpoints/tradesv2.d.ts +81 -84
  48. package/lib/endpoints/translationrolesv1.d.ts +46 -51
  49. package/lib/endpoints/twostepverificationv1.d.ts +233 -237
  50. package/lib/endpoints/usersv1.d.ts +110 -114
  51. package/lib/index.d.ts +56 -1
  52. package/lib/index.js +159 -3
  53. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
4
  const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
5
5
  id: z.number().int(),
@@ -7,7 +7,7 @@ const Roblox_Web_Responses_Users_SkinnyUserResponse = z.object({
7
7
  displayName: z.string(),
8
8
  });
9
9
  const Roblox_Trades_Api_Models_V2_ItemTarget = z.object({
10
- itemType: z.enum(["Unknown", "Asset", "Bundle"]),
10
+ itemType: z.enum(['Unknown', 'Asset', 'Bundle']),
11
11
  targetId: z.string(),
12
12
  });
13
13
  const Roblox_Trades_Api_Models_V2_TradableItemInstance = z.object({
@@ -28,17 +28,17 @@ const Roblox_Trades_Api_Models_V2_TradeOffer = z.object({
28
28
  const Roblox_Trades_Api_Models_V2_TradeDetailsResponse = z.object({
29
29
  tradeId: z.number().int(),
30
30
  status: z.enum([
31
- "Unknown",
32
- "Open",
33
- "Pending",
34
- "Completed",
35
- "Expired",
36
- "Declined",
37
- "RejectedDueToError",
38
- "Countered",
39
- "Processing",
40
- "InterventionRequired",
41
- "TwoStepVerificationRequired",
31
+ 'Unknown',
32
+ 'Open',
33
+ 'Pending',
34
+ 'Completed',
35
+ 'Expired',
36
+ 'Declined',
37
+ 'RejectedDueToError',
38
+ 'Countered',
39
+ 'Processing',
40
+ 'InterventionRequired',
41
+ 'TwoStepVerificationRequired',
42
42
  ]),
43
43
  participantAOffer: Roblox_Trades_Api_Models_V2_TradeOffer,
44
44
  participantBOffer: Roblox_Trades_Api_Models_V2_TradeOffer,
@@ -48,12 +48,12 @@ const Roblox_Trades_Api_Models_V2_CanTradeWithResponse = z.object({
48
48
  targetUserId: z.number().int(),
49
49
  canTrade: z.boolean(),
50
50
  mutualTradeEligibility: z.enum([
51
- "Unknown",
52
- "Eligible",
53
- "CallingUserIneligible",
54
- "TargetUserIneligible",
55
- "CannotTradeWithSelf",
56
- "CallingUserPrivacySettingsRestricted",
51
+ 'Unknown',
52
+ 'Eligible',
53
+ 'CallingUserIneligible',
54
+ 'TargetUserIneligible',
55
+ 'CannotTradeWithSelf',
56
+ 'CallingUserPrivacySettingsRestricted',
57
57
  ]),
58
58
  });
59
59
  const Roblox_Trades_Api_Models_V2_TradableItem = z.object({
@@ -74,13 +74,13 @@ const Roblox_Trades_Api_Models_V2_CanTradeResponse = z.object({
74
74
  userId: z.number().int(),
75
75
  canTrade: z.boolean(),
76
76
  tradeEligibility: z.enum([
77
- "Unknown",
78
- "Eligible",
79
- "IneligibleTradeSystemDisabled",
80
- "IneligibleCannotTradeWithRoblox",
81
- "IneligibleUserNotFound",
82
- "IneligibleMissingPremiumMembership",
83
- "IneligibleLegalOrRegulatoryRestrictions",
77
+ 'Unknown',
78
+ 'Eligible',
79
+ 'IneligibleTradeSystemDisabled',
80
+ 'IneligibleCannotTradeWithRoblox',
81
+ 'IneligibleUserNotFound',
82
+ 'IneligibleMissingPremiumMembership',
83
+ 'IneligibleLegalOrRegulatoryRestrictions',
84
84
  ]),
85
85
  });
86
86
  const Roblox_Trades_Api_Models_V2_TradeOfferRequest = z.object({
@@ -102,13 +102,13 @@ const Roblox_Trades_Api_Models_V2_NewTradeResponse = z.object({
102
102
  * @param tradeId The id of the trade.
103
103
  */
104
104
  export const getTradesTradeid = endpoint({
105
- method: "GET",
106
- path: "/v2/trades/:tradeId",
107
- baseUrl: "https://trades.roblox.com",
108
- requestFormat: "json",
105
+ method: 'GET',
106
+ path: '/v2/trades/:tradeId',
107
+ baseUrl: 'https://trades.roblox.com',
108
+ requestFormat: 'json',
109
109
  serializationMethod: {
110
110
  tradeId: {
111
- style: "simple",
111
+ style: 'simple',
112
112
  },
113
113
  },
114
114
  parameters: {
@@ -142,14 +142,14 @@ export const getTradesTradeid = endpoint({
142
142
  * @param tradeId
143
143
  */
144
144
  export const postTradesTradeidCounter = endpoint({
145
- method: "POST",
146
- path: "/v2/trades/:tradeId/counter",
147
- baseUrl: "https://trades.roblox.com",
148
- requestFormat: "json",
145
+ method: 'POST',
146
+ path: '/v2/trades/:tradeId/counter',
147
+ baseUrl: 'https://trades.roblox.com',
148
+ requestFormat: 'json',
149
149
  serializationMethod: {
150
150
  body: {},
151
151
  tradeId: {
152
- style: "simple",
152
+ style: 'simple',
153
153
  },
154
154
  },
155
155
  parameters: {
@@ -179,10 +179,10 @@ export const postTradesTradeidCounter = endpoint({
179
179
  * @param body
180
180
  */
181
181
  export const postTradesSend = endpoint({
182
- method: "POST",
183
- path: "/v2/trades/send",
184
- baseUrl: "https://trades.roblox.com",
185
- requestFormat: "json",
182
+ method: 'POST',
183
+ path: '/v2/trades/send',
184
+ baseUrl: 'https://trades.roblox.com',
185
+ requestFormat: 'json',
186
186
  serializationMethod: {
187
187
  body: {},
188
188
  },
@@ -211,13 +211,13 @@ export const postTradesSend = endpoint({
211
211
  * @param userId
212
212
  */
213
213
  export const getUsersUseridCanTradeWith = endpoint({
214
- method: "GET",
215
- path: "/v2/users/:userId/can-trade-with",
216
- baseUrl: "https://trades.roblox.com",
217
- requestFormat: "json",
214
+ method: 'GET',
215
+ path: '/v2/users/:userId/can-trade-with',
216
+ baseUrl: 'https://trades.roblox.com',
217
+ requestFormat: 'json',
218
218
  serializationMethod: {
219
219
  userId: {
220
- style: "simple",
220
+ style: 'simple',
221
221
  },
222
222
  },
223
223
  parameters: {
@@ -244,36 +244,36 @@ export const getUsersUseridCanTradeWith = endpoint({
244
244
  * @param cursor The pagination cursor.
245
245
  */
246
246
  export const getUsersUseridTradableitems = endpoint({
247
- method: "GET",
248
- path: "/v2/users/:userId/tradableItems",
249
- baseUrl: "https://trades.roblox.com",
250
- requestFormat: "json",
247
+ method: 'GET',
248
+ path: '/v2/users/:userId/tradableItems',
249
+ baseUrl: 'https://trades.roblox.com',
250
+ requestFormat: 'json',
251
251
  serializationMethod: {
252
252
  userId: {
253
- style: "simple",
253
+ style: 'simple',
254
254
  },
255
255
  search: {
256
- style: "form",
256
+ style: 'form',
257
257
  explode: true,
258
258
  },
259
259
  itemTargetTypes: {
260
- style: "form",
260
+ style: 'form',
261
261
  explode: true,
262
262
  },
263
263
  sortBy: {
264
- style: "form",
264
+ style: 'form',
265
265
  explode: true,
266
266
  },
267
267
  sortOrder: {
268
- style: "form",
268
+ style: 'form',
269
269
  explode: true,
270
270
  },
271
271
  limit: {
272
- style: "form",
272
+ style: 'form',
273
273
  explode: true,
274
274
  },
275
275
  cursor: {
276
- style: "form",
276
+ style: 'form',
277
277
  explode: true,
278
278
  },
279
279
  },
@@ -283,31 +283,28 @@ export const getUsersUseridTradableitems = endpoint({
283
283
  itemTargetTypes: z
284
284
  .array(
285
285
  z.enum([
286
- "Unknown",
287
- "HatAccessory",
288
- "HairAccessory",
289
- "FaceAccessory",
290
- "NeckAccessory",
291
- "ShoulderAccessory",
292
- "FrontAccessory",
293
- "BackAccessory",
294
- "WaistAccessory",
295
- "Gear",
296
- "Face",
297
- "JacketAccessory",
298
- "SweaterAccessory",
299
- "DressSkirtAccessory",
300
- "Character",
301
- "DynamicHead",
302
- "Shoes",
303
- "Animation",
304
- ])
286
+ 'Unknown',
287
+ 'HatAccessory',
288
+ 'HairAccessory',
289
+ 'FaceAccessory',
290
+ 'NeckAccessory',
291
+ 'ShoulderAccessory',
292
+ 'FrontAccessory',
293
+ 'BackAccessory',
294
+ 'WaistAccessory',
295
+ 'Gear',
296
+ 'Face',
297
+ 'JacketAccessory',
298
+ 'SweaterAccessory',
299
+ 'DressSkirtAccessory',
300
+ 'Character',
301
+ 'DynamicHead',
302
+ 'Shoes',
303
+ 'Animation',
304
+ ]),
305
305
  )
306
306
  .optional(),
307
- sortBy: z
308
- .enum(["Unknown", "CreationTime", "AcquisitionTime"])
309
- .optional()
310
- .default("CreationTime"),
307
+ sortBy: z.enum(['Unknown', 'CreationTime', 'AcquisitionTime']).optional().default('CreationTime'),
311
308
  sortOrder: z
312
309
  .union([z.literal(0), z.literal(1), z.literal(2)])
313
310
  .optional()
@@ -341,10 +338,10 @@ export const getUsersUseridTradableitems = endpoint({
341
338
  * @summary Checks if the calling user can trade with others.
342
339
  */
343
340
  export const getUsersMeCanTrade = endpoint({
344
- method: "GET",
345
- path: "/v2/users/me/can-trade",
346
- baseUrl: "https://trades.roblox.com",
347
- requestFormat: "json",
341
+ method: 'GET',
342
+ path: '/v2/users/me/can-trade',
343
+ baseUrl: 'https://trades.roblox.com',
344
+ requestFormat: 'json',
348
345
  response: Roblox_Trades_Api_Models_V2_CanTradeResponse,
349
346
  errors: [
350
347
  {
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
4
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = z.object({
5
5
  data: z.array(z.string()),
@@ -7,31 +7,28 @@ const Roblox_Web_WebAPI_Models_ApiArrayResponse_System_String_ = z.object({
7
7
  const Roblox_TranslationRoles_Api_Assignee = z.object({
8
8
  id: z.number().int(),
9
9
  name: z.string(),
10
- type: z.enum(["user", "group", "groupRole"]),
10
+ type: z.enum(['user', 'group', 'groupRole']),
11
+ });
12
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_ = z.object({
13
+ data: z.array(Roblox_TranslationRoles_Api_Assignee),
11
14
  });
12
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_ =
13
- z.object({ data: z.array(Roblox_TranslationRoles_Api_Assignee) });
14
15
  const Roblox_GameLocalization_Client_GameLocalizationRoles_Assignee = z.object({
15
- assigneeType: z.enum(["user", "group", "groupRole"]),
16
+ assigneeType: z.enum(['user', 'group', 'groupRole']),
16
17
  id: z.number().int(),
17
18
  });
18
- const Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment =
19
- z.object({
20
- gameId: z.number().int(),
21
- assignee: Roblox_GameLocalization_Client_GameLocalizationRoles_Assignee,
22
- });
23
- const Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse =
24
- z.object({
25
- games: z.array(
26
- Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment
27
- ),
28
- previousPageCursor: z.string(),
29
- nextPageCursor: z.string(),
30
- });
19
+ const Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment = z.object({
20
+ gameId: z.number().int(),
21
+ assignee: Roblox_GameLocalization_Client_GameLocalizationRoles_Assignee,
22
+ });
23
+ const Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse = z.object({
24
+ games: z.array(Roblox_GameLocalization_Client_GameLocalizationRoles_GameLocalizationRoleAssignment),
25
+ previousPageCursor: z.string(),
26
+ nextPageCursor: z.string(),
27
+ });
31
28
  const Roblox_TranslationRoles_Api_UpdateRoleRequest = z.object({
32
29
  assigneeId: z.number().int(),
33
- assigneeType: z.enum(["user", "group", "groupRole"]),
34
- role: z.literal("translator"),
30
+ assigneeType: z.enum(['user', 'group', 'groupRole']),
31
+ role: z.literal('translator'),
35
32
  revoke: z.boolean(),
36
33
  });
37
34
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
@@ -43,14 +40,14 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
43
40
  * @param gameId The id of the game
44
41
  */
45
42
  export const patchGameLocalizationRolesGamesGameid = endpoint({
46
- method: "PATCH",
47
- path: "/v1/game-localization-roles/games/:gameId",
48
- baseUrl: "https://translationroles.roblox.com",
49
- requestFormat: "json",
43
+ method: 'PATCH',
44
+ path: '/v1/game-localization-roles/games/:gameId',
45
+ baseUrl: 'https://translationroles.roblox.com',
46
+ requestFormat: 'json',
50
47
  serializationMethod: {
51
48
  body: {},
52
49
  gameId: {
53
- style: "simple",
50
+ style: 'simple',
54
51
  },
55
52
  },
56
53
  parameters: {
@@ -91,13 +88,13 @@ export const patchGameLocalizationRolesGamesGameid = endpoint({
91
88
  * @param gameId The id of the game
92
89
  */
93
90
  export const getGameLocalizationRolesGamesGameidCurrentUserRoles = endpoint({
94
- method: "GET",
95
- path: "/v1/game-localization-roles/games/:gameId/current-user/roles",
96
- baseUrl: "https://translationroles.roblox.com",
97
- requestFormat: "json",
91
+ method: 'GET',
92
+ path: '/v1/game-localization-roles/games/:gameId/current-user/roles',
93
+ baseUrl: 'https://translationroles.roblox.com',
94
+ requestFormat: 'json',
98
95
  serializationMethod: {
99
96
  gameId: {
100
- style: "simple",
97
+ style: 'simple',
101
98
  },
102
99
  },
103
100
  parameters: {
@@ -126,24 +123,23 @@ export const getGameLocalizationRolesGamesGameidCurrentUserRoles = endpoint({
126
123
  * @param role The Roblox.GameLocalization.Client.GameLocalizationRoles.GameLocalizationRoleType
127
124
  */
128
125
  export const getGameLocalizationRolesGamesGameidRolesRoleAssignees = endpoint({
129
- method: "GET",
130
- path: "/v1/game-localization-roles/games/:gameId/roles/:role/assignees",
131
- baseUrl: "https://translationroles.roblox.com",
132
- requestFormat: "json",
126
+ method: 'GET',
127
+ path: '/v1/game-localization-roles/games/:gameId/roles/:role/assignees',
128
+ baseUrl: 'https://translationroles.roblox.com',
129
+ requestFormat: 'json',
133
130
  serializationMethod: {
134
131
  gameId: {
135
- style: "simple",
132
+ style: 'simple',
136
133
  },
137
134
  role: {
138
- style: "simple",
135
+ style: 'simple',
139
136
  },
140
137
  },
141
138
  parameters: {
142
139
  gameId: z.number().int(),
143
- role: z.literal("translator"),
140
+ role: z.literal('translator'),
144
141
  },
145
- response:
146
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_,
142
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_TranslationRoles_Api_Assignee_,
147
143
  errors: [
148
144
  {
149
145
  status: 400,
@@ -172,35 +168,34 @@ export const getGameLocalizationRolesGamesGameidRolesRoleAssignees = endpoint({
172
168
  * @param groupId Optional seleted groupId of resources requested for the user and role.
173
169
  */
174
170
  export const getGameLocalizationRolesRolesRoleCurrentUser = endpoint({
175
- method: "GET",
176
- path: "/v1/game-localization-roles/roles/:role/current-user",
177
- baseUrl: "https://translationroles.roblox.com",
178
- requestFormat: "json",
171
+ method: 'GET',
172
+ path: '/v1/game-localization-roles/roles/:role/current-user',
173
+ baseUrl: 'https://translationroles.roblox.com',
174
+ requestFormat: 'json',
179
175
  serializationMethod: {
180
176
  role: {
181
- style: "simple",
177
+ style: 'simple',
182
178
  },
183
179
  exclusiveStartKey: {
184
- style: "form",
180
+ style: 'form',
185
181
  explode: true,
186
182
  },
187
183
  pageSize: {
188
- style: "form",
184
+ style: 'form',
189
185
  explode: true,
190
186
  },
191
187
  groupId: {
192
- style: "form",
188
+ style: 'form',
193
189
  explode: true,
194
190
  },
195
191
  },
196
192
  parameters: {
197
- role: z.literal("translator"),
193
+ role: z.literal('translator'),
198
194
  exclusiveStartKey: z.string().optional(),
199
195
  pageSize: z.number().int().optional(),
200
196
  groupId: z.number().int().optional(),
201
197
  },
202
- response:
203
- Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse,
198
+ response: Roblox_TranslationRoles_Api_GetGameLocalizationRoleAssignmentsForUserResponse,
204
199
  errors: [
205
200
  {
206
201
  status: 400,