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_PrivateMessages_Api_Models_VerifiedSkinnyUserResponse = z.object({
5
5
  hasVerifiedBadge: z.boolean(),
@@ -7,24 +7,21 @@ const Roblox_PrivateMessages_Api_Models_VerifiedSkinnyUserResponse = z.object({
7
7
  name: z.string(),
8
8
  displayName: z.string(),
9
9
  });
10
- const Roblox_PrivateMessages_Api_Models_AnnouncementsDetailsResponse = z.object(
11
- {
12
- id: z.number().int(),
13
- sender: Roblox_PrivateMessages_Api_Models_VerifiedSkinnyUserResponse,
14
- subject: z.string(),
15
- body: z.string(),
16
- created: z.string().datetime({ offset: true }),
17
- updated: z.string().datetime({ offset: true }),
18
- }
19
- );
10
+ const Roblox_PrivateMessages_Api_Models_AnnouncementsDetailsResponse = z.object({
11
+ id: z.number().int(),
12
+ sender: Roblox_PrivateMessages_Api_Models_VerifiedSkinnyUserResponse,
13
+ subject: z.string(),
14
+ body: z.string(),
15
+ created: z.string().datetime({ offset: true }),
16
+ updated: z.string().datetime({ offset: true }),
17
+ });
20
18
  const Roblox_PrivateMessages_Api_Models_GetAnnouncementsResponse = z.object({
21
- collection: z.array(
22
- Roblox_PrivateMessages_Api_Models_AnnouncementsDetailsResponse
23
- ),
19
+ collection: z.array(Roblox_PrivateMessages_Api_Models_AnnouncementsDetailsResponse),
24
20
  totalCollectionSize: z.number().int(),
25
21
  });
26
- const Roblox_PrivateMessages_Api_Models_AnnouncementsMetadataResponse =
27
- z.object({ numOfAnnouncements: z.number().int() });
22
+ const Roblox_PrivateMessages_Api_Models_AnnouncementsMetadataResponse = z.object({
23
+ numOfAnnouncements: z.number().int(),
24
+ });
28
25
  const Roblox_PrivateMessages_Api_Models_MessageDetailsResponse = z.object({
29
26
  id: z.number().int(),
30
27
  sender: Roblox_PrivateMessages_Api_Models_VerifiedSkinnyUserResponse,
@@ -54,9 +51,7 @@ const Roblox_PrivateMessages_Api_Models_FailedMessageResponse = z.object({
54
51
  errorMessage: z.string(),
55
52
  });
56
53
  const Roblox_PrivateMessages_Api_Models_BatchMessagesResponse = z.object({
57
- failedMessages: z.array(
58
- Roblox_PrivateMessages_Api_Models_FailedMessageResponse
59
- ),
54
+ failedMessages: z.array(Roblox_PrivateMessages_Api_Models_FailedMessageResponse),
60
55
  });
61
56
 
62
57
  /**
@@ -64,10 +59,10 @@ const Roblox_PrivateMessages_Api_Models_BatchMessagesResponse = z.object({
64
59
  * @summary Migrate from RobloxWebsite project, return news notification for Private Message page
65
60
  */
66
61
  export const getAnnouncements = endpoint({
67
- method: "GET",
68
- path: "/v1/announcements",
69
- baseUrl: "https://privatemessages.roblox.com",
70
- requestFormat: "json",
62
+ method: 'GET',
63
+ path: '/v1/announcements',
64
+ baseUrl: 'https://privatemessages.roblox.com',
65
+ requestFormat: 'json',
71
66
  response: Roblox_PrivateMessages_Api_Models_GetAnnouncementsResponse,
72
67
  errors: [
73
68
  {
@@ -84,10 +79,10 @@ export const getAnnouncements = endpoint({
84
79
  * @api GET https://privatemessages.roblox.com/v1/announcements/metadata
85
80
  */
86
81
  export const getAnnouncementsMetadata = endpoint({
87
- method: "GET",
88
- path: "/v1/announcements/metadata",
89
- baseUrl: "https://privatemessages.roblox.com",
90
- requestFormat: "json",
82
+ method: 'GET',
83
+ path: '/v1/announcements/metadata',
84
+ baseUrl: 'https://privatemessages.roblox.com',
85
+ requestFormat: 'json',
91
86
  response: z.object({ numOfAnnouncements: z.number().int() }),
92
87
  errors: [
93
88
  {
@@ -104,31 +99,28 @@ export const getAnnouncementsMetadata = endpoint({
104
99
  * @param messageTab
105
100
  */
106
101
  export const getMessages = endpoint({
107
- method: "GET",
108
- path: "/v1/messages",
109
- baseUrl: "https://privatemessages.roblox.com",
110
- requestFormat: "json",
102
+ method: 'GET',
103
+ path: '/v1/messages',
104
+ baseUrl: 'https://privatemessages.roblox.com',
105
+ requestFormat: 'json',
111
106
  serializationMethod: {
112
107
  pageNumber: {
113
- style: "form",
108
+ style: 'form',
114
109
  explode: true,
115
110
  },
116
111
  pageSize: {
117
- style: "form",
112
+ style: 'form',
118
113
  explode: true,
119
114
  },
120
115
  messageTab: {
121
- style: "form",
116
+ style: 'form',
122
117
  explode: true,
123
118
  },
124
119
  },
125
120
  parameters: {
126
121
  pageNumber: z.number().int().optional(),
127
122
  pageSize: z.number().int().optional().default(20),
128
- messageTab: z
129
- .enum(["Inbox", "Sent", "Archive"])
130
- .optional()
131
- .default("Inbox"),
123
+ messageTab: z.enum(['Inbox', 'Sent', 'Archive']).optional().default('Inbox'),
132
124
  },
133
125
  response: Roblox_PrivateMessages_Api_Models_GetMessagesResponse,
134
126
  errors: [
@@ -144,13 +136,13 @@ export const getMessages = endpoint({
144
136
  * @param messageId
145
137
  */
146
138
  export const getMessagesMessageid = endpoint({
147
- method: "GET",
148
- path: "/v1/messages/:messageId",
149
- baseUrl: "https://privatemessages.roblox.com",
150
- requestFormat: "json",
139
+ method: 'GET',
140
+ path: '/v1/messages/:messageId',
141
+ baseUrl: 'https://privatemessages.roblox.com',
142
+ requestFormat: 'json',
151
143
  serializationMethod: {
152
144
  messageId: {
153
- style: "simple",
145
+ style: 'simple',
154
146
  },
155
147
  },
156
148
  parameters: {
@@ -174,10 +166,10 @@ export const getMessagesMessageid = endpoint({
174
166
  * @param body
175
167
  */
176
168
  export const postMessagesArchive = endpoint({
177
- method: "POST",
178
- path: "/v1/messages/archive",
179
- baseUrl: "https://privatemessages.roblox.com",
180
- requestFormat: "json",
169
+ method: 'POST',
170
+ path: '/v1/messages/archive',
171
+ baseUrl: 'https://privatemessages.roblox.com',
172
+ requestFormat: 'json',
181
173
  serializationMethod: {
182
174
  body: {},
183
175
  },
@@ -205,10 +197,10 @@ export const postMessagesArchive = endpoint({
205
197
  * @param body
206
198
  */
207
199
  export const postMessagesMarkRead = endpoint({
208
- method: "POST",
209
- path: "/v1/messages/mark-read",
210
- baseUrl: "https://privatemessages.roblox.com",
211
- requestFormat: "json",
200
+ method: 'POST',
201
+ path: '/v1/messages/mark-read',
202
+ baseUrl: 'https://privatemessages.roblox.com',
203
+ requestFormat: 'json',
212
204
  serializationMethod: {
213
205
  body: {},
214
206
  },
@@ -236,10 +228,10 @@ export const postMessagesMarkRead = endpoint({
236
228
  * @param body
237
229
  */
238
230
  export const postMessagesMarkUnread = endpoint({
239
- method: "POST",
240
- path: "/v1/messages/mark-unread",
241
- baseUrl: "https://privatemessages.roblox.com",
242
- requestFormat: "json",
231
+ method: 'POST',
232
+ path: '/v1/messages/mark-unread',
233
+ baseUrl: 'https://privatemessages.roblox.com',
234
+ requestFormat: 'json',
243
235
  serializationMethod: {
244
236
  body: {},
245
237
  },
@@ -267,10 +259,10 @@ export const postMessagesMarkUnread = endpoint({
267
259
  * @param body
268
260
  */
269
261
  export const postMessagesUnarchive = endpoint({
270
- method: "POST",
271
- path: "/v1/messages/unarchive",
272
- baseUrl: "https://privatemessages.roblox.com",
273
- requestFormat: "json",
262
+ method: 'POST',
263
+ path: '/v1/messages/unarchive',
264
+ baseUrl: 'https://privatemessages.roblox.com',
265
+ requestFormat: 'json',
274
266
  serializationMethod: {
275
267
  body: {},
276
268
  },
@@ -297,10 +289,10 @@ export const postMessagesUnarchive = endpoint({
297
289
  * @summary Gets unread messages for the authenticated user.
298
290
  */
299
291
  export const getMessagesUnreadCount = endpoint({
300
- method: "GET",
301
- path: "/v1/messages/unread/count",
302
- baseUrl: "https://privatemessages.roblox.com",
303
- requestFormat: "json",
292
+ method: 'GET',
293
+ path: '/v1/messages/unread/count',
294
+ baseUrl: 'https://privatemessages.roblox.com',
295
+ requestFormat: 'json',
304
296
  response: z.object({ count: z.number().int() }),
305
297
  errors: [
306
298
  {
@@ -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_Publish_Api_AssetQuota = z.object({
5
5
  duration: z.string(),
@@ -52,21 +52,21 @@ const pluginId_icon_body = z.object({ Files: z.instanceof(File) });
52
52
  * @param useDummyData Use dummy data for testing. This is for internal use only
53
53
  */
54
54
  export const getAssetQuotas = endpoint({
55
- method: "GET",
56
- path: "/v1/asset-quotas",
57
- baseUrl: "https://publish.roblox.com",
58
- requestFormat: "json",
55
+ method: 'GET',
56
+ path: '/v1/asset-quotas',
57
+ baseUrl: 'https://publish.roblox.com',
58
+ requestFormat: 'json',
59
59
  serializationMethod: {
60
60
  resourceType: {
61
- style: "form",
61
+ style: 'form',
62
62
  explode: true,
63
63
  },
64
64
  assetType: {
65
- style: "form",
65
+ style: 'form',
66
66
  explode: true,
67
67
  },
68
68
  useDummyData: {
69
- style: "form",
69
+ style: 'form',
70
70
  explode: true,
71
71
  },
72
72
  },
@@ -98,10 +98,10 @@ export const getAssetQuotas = endpoint({
98
98
  * @param body The file upload request body. Roblox.Publish.Api.UploadAudioRequest
99
99
  */
100
100
  export const postAudio = endpoint({
101
- method: "POST",
102
- path: "/v1/audio",
103
- baseUrl: "https://publish.roblox.com",
104
- requestFormat: "json",
101
+ method: 'POST',
102
+ path: '/v1/audio',
103
+ baseUrl: 'https://publish.roblox.com',
104
+ requestFormat: 'json',
105
105
  serializationMethod: {
106
106
  body: {},
107
107
  },
@@ -149,10 +149,10 @@ export const postAudio = endpoint({
149
149
  * @param body The verify audio request body. Roblox.Publish.Api.VerifyAudioRequest
150
150
  */
151
151
  export const postAudioVerify = endpoint({
152
- method: "POST",
153
- path: "/v1/audio/verify",
154
- baseUrl: "https://publish.roblox.com",
155
- requestFormat: "json",
152
+ method: 'POST',
153
+ path: '/v1/audio/verify',
154
+ baseUrl: 'https://publish.roblox.com',
155
+ requestFormat: 'json',
156
156
  serializationMethod: {
157
157
  body: {},
158
158
  },
@@ -188,14 +188,14 @@ export const postAudioVerify = endpoint({
188
188
  * @param badgeId The badge Id.
189
189
  */
190
190
  export const postBadgesBadgeidIcon = endpoint({
191
- method: "POST",
192
- path: "/v1/badges/:badgeId/icon",
193
- baseUrl: "https://publish.roblox.com",
194
- requestFormat: "form-data",
191
+ method: 'POST',
192
+ path: '/v1/badges/:badgeId/icon',
193
+ baseUrl: 'https://publish.roblox.com',
194
+ requestFormat: 'form-data',
195
195
  serializationMethod: {
196
196
  body: {},
197
197
  badgeId: {
198
- style: "simple",
198
+ style: 'simple',
199
199
  },
200
200
  },
201
201
  parameters: {
@@ -235,14 +235,14 @@ export const postBadgesBadgeidIcon = endpoint({
235
235
  * @param gameId The universe Id.
236
236
  */
237
237
  export const postGamesGameidThumbnailImage = endpoint({
238
- method: "POST",
239
- path: "/v1/games/:gameId/thumbnail/image",
240
- baseUrl: "https://publish.roblox.com",
241
- requestFormat: "form-data",
238
+ method: 'POST',
239
+ path: '/v1/games/:gameId/thumbnail/image',
240
+ baseUrl: 'https://publish.roblox.com',
241
+ requestFormat: 'form-data',
242
242
  serializationMethod: {
243
243
  body: {},
244
244
  gameId: {
245
- style: "simple",
245
+ style: 'simple',
246
246
  },
247
247
  },
248
248
  parameters: {
@@ -282,14 +282,14 @@ export const postGamesGameidThumbnailImage = endpoint({
282
282
  * @param pluginId The plugin Id.
283
283
  */
284
284
  export const postPluginsPluginidIcon = endpoint({
285
- method: "POST",
286
- path: "/v1/plugins/:pluginId/icon",
287
- baseUrl: "https://publish.roblox.com",
288
- requestFormat: "form-data",
285
+ method: 'POST',
286
+ path: '/v1/plugins/:pluginId/icon',
287
+ baseUrl: 'https://publish.roblox.com',
288
+ requestFormat: 'form-data',
289
289
  serializationMethod: {
290
290
  body: {},
291
291
  pluginId: {
292
- style: "simple",
292
+ style: 'simple',
293
293
  },
294
294
  },
295
295
  parameters: {
@@ -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
  /**
5
5
  * @api GET https://thumbnailsresizer.roblox.com/v1/resize/:hash/:width/:height/:type/:format/:filterType
@@ -13,32 +13,32 @@ import { endpoint } from "..";
13
13
  * @param shouldModify
14
14
  */
15
15
  export const getResizeHashWidthHeightTypeFormatFiltertype = endpoint({
16
- method: "GET",
17
- path: "/v1/resize/:hash/:width/:height/:type/:format/:filterType",
18
- baseUrl: "https://thumbnailsresizer.roblox.com",
19
- requestFormat: "json",
16
+ method: 'GET',
17
+ path: '/v1/resize/:hash/:width/:height/:type/:format/:filterType',
18
+ baseUrl: 'https://thumbnailsresizer.roblox.com',
19
+ requestFormat: 'json',
20
20
  serializationMethod: {
21
21
  hash: {
22
- style: "simple",
22
+ style: 'simple',
23
23
  },
24
24
  width: {
25
- style: "simple",
25
+ style: 'simple',
26
26
  },
27
27
  height: {
28
- style: "simple",
28
+ style: 'simple',
29
29
  },
30
30
  type: {
31
- style: "simple",
31
+ style: 'simple',
32
32
  },
33
33
  format: {
34
- style: "simple",
34
+ style: 'simple',
35
35
  },
36
36
  filterType: {
37
- style: "form",
37
+ style: 'form',
38
38
  explode: true,
39
39
  },
40
40
  shouldModify: {
41
- style: "form",
41
+ style: 'form',
42
42
  explode: true,
43
43
  },
44
44
  },
@@ -65,45 +65,44 @@ export const getResizeHashWidthHeightTypeFormatFiltertype = endpoint({
65
65
  * @param format Desired image format of the thumbnail
66
66
  * @param filterType E.g. is output circular
67
67
  */
68
- export const getSecureresizeThumbprintHashWidthHeightTypeFormatFiltertype =
69
- endpoint({
70
- method: "GET",
71
- path: "/v1/secureresize/:thumbPrint/:hash/:width/:height/:type/:format/:filterType",
72
- baseUrl: "https://thumbnailsresizer.roblox.com",
73
- requestFormat: "json",
74
- serializationMethod: {
75
- thumbPrint: {
76
- style: "simple",
77
- },
78
- hash: {
79
- style: "simple",
80
- },
81
- width: {
82
- style: "simple",
83
- },
84
- height: {
85
- style: "simple",
86
- },
87
- type: {
88
- style: "simple",
89
- },
90
- format: {
91
- style: "simple",
92
- },
93
- filterType: {
94
- style: "form",
95
- explode: true,
96
- },
68
+ export const getSecureresizeThumbprintHashWidthHeightTypeFormatFiltertype = endpoint({
69
+ method: 'GET',
70
+ path: '/v1/secureresize/:thumbPrint/:hash/:width/:height/:type/:format/:filterType',
71
+ baseUrl: 'https://thumbnailsresizer.roblox.com',
72
+ requestFormat: 'json',
73
+ serializationMethod: {
74
+ thumbPrint: {
75
+ style: 'simple',
76
+ },
77
+ hash: {
78
+ style: 'simple',
79
+ },
80
+ width: {
81
+ style: 'simple',
82
+ },
83
+ height: {
84
+ style: 'simple',
85
+ },
86
+ type: {
87
+ style: 'simple',
97
88
  },
98
- parameters: {
99
- thumbPrint: z.string(),
100
- hash: z.string(),
101
- width: z.number().int(),
102
- height: z.number().int(),
103
- type: z.string(),
104
- format: z.string(),
105
- filterType: z.string().optional(),
89
+ format: {
90
+ style: 'simple',
91
+ },
92
+ filterType: {
93
+ style: 'form',
94
+ explode: true,
106
95
  },
107
- response: z.void(),
108
- errors: [],
109
- });
96
+ },
97
+ parameters: {
98
+ thumbPrint: z.string(),
99
+ hash: z.string(),
100
+ width: z.number().int(),
101
+ height: z.number().int(),
102
+ type: z.string(),
103
+ format: z.string(),
104
+ filterType: z.string().optional(),
105
+ },
106
+ response: z.void(),
107
+ errors: [],
108
+ });