rozod 6.7.1 → 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 (87) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +75 -451
  3. package/lib/endpoints/accountinformationv1.d.ts +92 -95
  4. package/lib/endpoints/accountsettingsv1.d.ts +88 -110
  5. package/lib/endpoints/adconfigurationv2.d.ts +108 -215
  6. package/lib/endpoints/assetdeliveryv1.d.ts +267 -230
  7. package/lib/endpoints/assetdeliveryv1.js +38 -0
  8. package/lib/endpoints/assetdeliveryv2.d.ts +201 -176
  9. package/lib/endpoints/assetdeliveryv2.js +26 -0
  10. package/lib/endpoints/authv1.d.ts +480 -517
  11. package/lib/endpoints/authv1.js +3 -1
  12. package/lib/endpoints/authv2.d.ts +210 -222
  13. package/lib/endpoints/authv2.js +1 -1
  14. package/lib/endpoints/authv3.d.ts +32 -35
  15. package/lib/endpoints/avatarv1.d.ts +112 -117
  16. package/lib/endpoints/avatarv2.d.ts +71 -76
  17. package/lib/endpoints/avatarv3.d.ts +27 -33
  18. package/lib/endpoints/badgesv1.d.ts +96 -99
  19. package/lib/endpoints/badgesv1.js +4 -0
  20. package/lib/endpoints/catalogv1.d.ts +209 -234
  21. package/lib/endpoints/catalogv1.js +2 -1
  22. package/lib/endpoints/catalogv2.d.ts +106 -136
  23. package/lib/endpoints/catalogv2.js +21 -17
  24. package/lib/endpoints/chatv2.d.ts +778 -778
  25. package/lib/endpoints/clientsettingsv1.d.ts +33 -35
  26. package/lib/endpoints/clientsettingsv2.d.ts +62 -68
  27. package/lib/endpoints/contactsv1.d.ts +18 -20
  28. package/lib/endpoints/developv1.d.ts +233 -293
  29. package/lib/endpoints/developv1.js +3 -0
  30. package/lib/endpoints/developv2.d.ts +87 -138
  31. package/lib/endpoints/developv2.js +3 -1
  32. package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
  33. package/lib/endpoints/economyv1.d.ts +6 -6
  34. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  35. package/lib/endpoints/followingsv1.d.ts +33 -34
  36. package/lib/endpoints/followingsv2.d.ts +9 -9
  37. package/lib/endpoints/friendsv1.d.ts +416 -545
  38. package/lib/endpoints/friendsv1.js +213 -313
  39. package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
  40. package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
  41. package/lib/endpoints/gamejoinv1.d.ts +458 -458
  42. package/lib/endpoints/gamesv1.d.ts +183 -143
  43. package/lib/endpoints/gamesv1.js +2 -0
  44. package/lib/endpoints/gamesv2.d.ts +161 -158
  45. package/lib/endpoints/gamesv2.js +9 -0
  46. package/lib/endpoints/groupsv1.d.ts +967 -976
  47. package/lib/endpoints/groupsv1.js +48 -4
  48. package/lib/endpoints/groupsv2.d.ts +259 -277
  49. package/lib/endpoints/groupsv2.js +1 -0
  50. package/lib/endpoints/inventoryv1.d.ts +93 -122
  51. package/lib/endpoints/inventoryv1.js +3 -1
  52. package/lib/endpoints/inventoryv2.d.ts +163 -178
  53. package/lib/endpoints/inventoryv2.js +2 -0
  54. package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
  55. package/lib/endpoints/localev1.d.ts +47 -48
  56. package/lib/endpoints/localizationtablesv1.d.ts +315 -353
  57. package/lib/endpoints/matchmakingv1.d.ts +184 -190
  58. package/lib/endpoints/metricsv1.d.ts +88 -88
  59. package/lib/endpoints/notificationsv2.d.ts +144 -158
  60. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  61. package/lib/endpoints/presencev1.d.ts +7 -12
  62. package/lib/endpoints/privatemessagesv1.d.ts +56 -64
  63. package/lib/endpoints/publishv1.d.ts +32 -32
  64. package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
  65. package/lib/endpoints/thumbnailsv1.d.ts +317 -361
  66. package/lib/endpoints/thumbnailsv1.js +25 -0
  67. package/lib/endpoints/tradesv1.d.ts +92 -104
  68. package/lib/endpoints/tradesv2.d.ts +81 -84
  69. package/lib/endpoints/translationrolesv1.d.ts +46 -51
  70. package/lib/endpoints/twostepverificationv1.d.ts +233 -237
  71. package/lib/endpoints/usersv1.d.ts +110 -114
  72. package/lib/index.d.ts +152 -4
  73. package/lib/index.js +273 -4
  74. package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
  75. package/lib/opencloud/v1/assets.d.ts +9 -9
  76. package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
  77. package/lib/opencloud/v1/datastores.d.ts +8 -8
  78. package/lib/opencloud/v1/developer-products.d.ts +4 -4
  79. package/lib/opencloud/v1/game-passes.d.ts +4 -4
  80. package/lib/opencloud/v1/messaging.d.ts +1 -1
  81. package/lib/opencloud/v1/open-eval.d.ts +2 -2
  82. package/lib/opencloud/v1/secrets-store.d.ts +5 -5
  83. package/lib/opencloud/v1/toolbox.d.ts +2 -2
  84. package/lib/opencloud/v1/universes.d.ts +1 -1
  85. package/lib/opencloud/v2/cloud.d.ts +172 -84
  86. package/lib/opencloud/v2/cloud.js +25 -9
  87. 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_Avatar_ScaleModel = z.object({
5
5
  height: z.number(),
@@ -107,11 +107,10 @@ const Roblox_Api_Avatar_Models_OutfitModel = z.object({
107
107
  isEditable: z.boolean(),
108
108
  outfitType: z.string(),
109
109
  });
110
- const Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ =
111
- z.object({
112
- data: z.array(Roblox_Api_Avatar_Models_OutfitModel),
113
- paginationToken: z.string(),
114
- });
110
+ const Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_ = z.object({
111
+ data: z.array(Roblox_Api_Avatar_Models_OutfitModel),
112
+ paginationToken: z.string(),
113
+ });
115
114
  const Roblox_Platform_Avatar_BodyColorsModelV2 = z.object({
116
115
  headColor3: z.string(),
117
116
  torsoColor3: z.string(),
@@ -149,13 +148,7 @@ const Roblox_Api_Avatar_Models_OutfitUpdateModelV2 = z.object({
149
148
  assets: z.array(Roblox_Api_Avatar_Models_AssetWearModel),
150
149
  scale: Roblox_Web_Responses_Avatar_ScaleModel,
151
150
  playerAvatarType: z.string(),
152
- outfitType: z.union([
153
- z.literal(0),
154
- z.literal(1),
155
- z.literal(2),
156
- z.literal(4),
157
- z.literal(5),
158
- ]),
151
+ outfitType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(5)]),
159
152
  });
160
153
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
161
154
 
@@ -166,21 +159,21 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
166
159
  * @param checkAssetAvailability Whether to return assets with availability status.
167
160
  */
168
161
  export const getAvatarAvatar = endpoint({
169
- method: "GET",
170
- path: "/v2/avatar/avatar",
171
- baseUrl: "https://avatar.roblox.com",
172
- requestFormat: "json",
162
+ method: 'GET',
163
+ path: '/v2/avatar/avatar',
164
+ baseUrl: 'https://avatar.roblox.com',
165
+ requestFormat: 'json',
173
166
  serializationMethod: {
174
- "Roblox-Place-Id": {
175
- style: "simple",
167
+ 'Roblox-Place-Id': {
168
+ style: 'simple',
176
169
  },
177
170
  checkAssetAvailability: {
178
- style: "form",
171
+ style: 'form',
179
172
  explode: true,
180
173
  },
181
174
  },
182
175
  parameters: {
183
- "Roblox-Place-Id": z.number().int().optional(),
176
+ 'Roblox-Place-Id': z.number().int().optional(),
184
177
  checkAssetAvailability: z.boolean().optional(),
185
178
  },
186
179
  response: Roblox_Api_Avatar_Models_AvatarModelV3,
@@ -198,18 +191,18 @@ export const getAvatarAvatar = endpoint({
198
191
  * @param Roblox-Place-Id
199
192
  */
200
193
  export const postAvatarSetBodyColors = endpoint({
201
- method: "POST",
202
- path: "/v2/avatar/set-body-colors",
203
- baseUrl: "https://avatar.roblox.com",
204
- requestFormat: "json",
194
+ method: 'POST',
195
+ path: '/v2/avatar/set-body-colors',
196
+ baseUrl: 'https://avatar.roblox.com',
197
+ requestFormat: 'json',
205
198
  serializationMethod: {
206
199
  body: {},
207
- "Roblox-Place-Id": {
208
- style: "simple",
200
+ 'Roblox-Place-Id': {
201
+ style: 'simple',
209
202
  },
210
203
  },
211
204
  parameters: {
212
- "Roblox-Place-Id": z.number().int().optional(),
205
+ 'Roblox-Place-Id': z.number().int().optional(),
213
206
  },
214
207
  body: Roblox_Platform_Avatar_BodyColorsModelV2,
215
208
  response: z.object({ success: z.boolean() }),
@@ -233,18 +226,18 @@ export const postAvatarSetBodyColors = endpoint({
233
226
  Any assets being worn before this method is called are automatically removed.
234
227
  */
235
228
  export const postAvatarSetWearingAssets = endpoint({
236
- method: "POST",
237
- path: "/v2/avatar/set-wearing-assets",
238
- baseUrl: "https://avatar.roblox.com",
239
- requestFormat: "json",
229
+ method: 'POST',
230
+ path: '/v2/avatar/set-wearing-assets',
231
+ baseUrl: 'https://avatar.roblox.com',
232
+ requestFormat: 'json',
240
233
  serializationMethod: {
241
234
  body: {},
242
- "Roblox-Place-Id": {
243
- style: "simple",
235
+ 'Roblox-Place-Id': {
236
+ style: 'simple',
244
237
  },
245
238
  },
246
239
  parameters: {
247
- "Roblox-Place-Id": z.number().int().optional(),
240
+ 'Roblox-Place-Id': z.number().int().optional(),
248
241
  },
249
242
  body: Roblox_Api_Avatar_Models_WearRequestModel,
250
243
  response: Roblox_Api_Avatar_Models_WearResponseModel,
@@ -278,25 +271,25 @@ export const postAvatarSetWearingAssets = endpoint({
278
271
  * @description Includes assets, bodycolors, and playerAvatarType.
279
272
  */
280
273
  export const getAvatarUsersUseridAvatar = endpoint({
281
- method: "GET",
282
- path: "/v2/avatar/users/:userId/avatar",
283
- baseUrl: "https://avatar.roblox.com",
284
- requestFormat: "json",
274
+ method: 'GET',
275
+ path: '/v2/avatar/users/:userId/avatar',
276
+ baseUrl: 'https://avatar.roblox.com',
277
+ requestFormat: 'json',
285
278
  serializationMethod: {
286
279
  userId: {
287
- style: "simple",
280
+ style: 'simple',
288
281
  },
289
- "Roblox-Place-Id": {
290
- style: "simple",
282
+ 'Roblox-Place-Id': {
283
+ style: 'simple',
291
284
  },
292
285
  checkAssetAvailability: {
293
- style: "form",
286
+ style: 'form',
294
287
  explode: true,
295
288
  },
296
289
  },
297
290
  parameters: {
298
291
  userId: z.number().int(),
299
- "Roblox-Place-Id": z.number().int().optional(),
292
+ 'Roblox-Place-Id': z.number().int().optional(),
300
293
  checkAssetAvailability: z.boolean().optional(),
301
294
  },
302
295
  response: Roblox_Api_Avatar_Models_AvatarModelV3,
@@ -320,36 +313,36 @@ export const getAvatarUsersUseridAvatar = endpoint({
320
313
  * @param Roblox-Place-Id The placeId of the caller, not required to be passed in.
321
314
  */
322
315
  export const getAvatarUsersUseridOutfits = endpoint({
323
- method: "GET",
324
- path: "/v2/avatar/users/:userId/outfits",
325
- baseUrl: "https://avatar.roblox.com",
326
- requestFormat: "json",
316
+ method: 'GET',
317
+ path: '/v2/avatar/users/:userId/outfits',
318
+ baseUrl: 'https://avatar.roblox.com',
319
+ requestFormat: 'json',
327
320
  serializationMethod: {
328
321
  userId: {
329
- style: "simple",
322
+ style: 'simple',
330
323
  },
331
324
  paginationToken: {
332
- style: "form",
325
+ style: 'form',
333
326
  explode: true,
334
327
  },
335
328
  outfitType: {
336
- style: "form",
329
+ style: 'form',
337
330
  explode: true,
338
331
  },
339
332
  page: {
340
- style: "form",
333
+ style: 'form',
341
334
  explode: true,
342
335
  },
343
336
  itemsPerPage: {
344
- style: "form",
337
+ style: 'form',
345
338
  explode: true,
346
339
  },
347
340
  isEditable: {
348
- style: "form",
341
+ style: 'form',
349
342
  explode: true,
350
343
  },
351
- "Roblox-Place-Id": {
352
- style: "simple",
344
+ 'Roblox-Place-Id': {
345
+ style: 'simple',
353
346
  },
354
347
  },
355
348
  parameters: {
@@ -359,10 +352,9 @@ export const getAvatarUsersUseridOutfits = endpoint({
359
352
  page: z.number().int().optional().default(1),
360
353
  itemsPerPage: z.number().int().optional().default(25),
361
354
  isEditable: z.boolean().optional(),
362
- "Roblox-Place-Id": z.number().int().optional(),
355
+ 'Roblox-Place-Id': z.number().int().optional(),
363
356
  },
364
- response:
365
- Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
357
+ response: Roblox_Api_Avatar_Models_AvatarPageResponse_Roblox_Api_Avatar_Models_OutfitModel_,
366
358
  errors: [
367
359
  {
368
360
  status: 400,
@@ -381,22 +373,22 @@ export const getAvatarUsersUseridOutfits = endpoint({
381
373
  Accepts partial updates.
382
374
  */
383
375
  export const patchOutfitsUseroutfitid = endpoint({
384
- method: "PATCH",
385
- path: "/v2/outfits/:userOutfitId",
386
- baseUrl: "https://avatar.roblox.com",
387
- requestFormat: "json",
376
+ method: 'PATCH',
377
+ path: '/v2/outfits/:userOutfitId',
378
+ baseUrl: 'https://avatar.roblox.com',
379
+ requestFormat: 'json',
388
380
  serializationMethod: {
389
381
  body: {},
390
382
  userOutfitId: {
391
- style: "simple",
383
+ style: 'simple',
392
384
  },
393
- "Roblox-Place-Id": {
394
- style: "simple",
385
+ 'Roblox-Place-Id': {
386
+ style: 'simple',
395
387
  },
396
388
  },
397
389
  parameters: {
398
390
  userOutfitId: z.number().int(),
399
- "Roblox-Place-Id": z.number().int().optional(),
391
+ 'Roblox-Place-Id': z.number().int().optional(),
400
392
  },
401
393
  body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
402
394
  response: Roblox_Api_Avatar_Models_OutfitModel,
@@ -440,18 +432,18 @@ export const patchOutfitsUseroutfitid = endpoint({
440
432
  The name property of the request is optional as one will be auto-generated when the request has a null name.
441
433
  */
442
434
  export const postOutfitsCreate = endpoint({
443
- method: "POST",
444
- path: "/v2/outfits/create",
445
- baseUrl: "https://avatar.roblox.com",
446
- requestFormat: "json",
435
+ method: 'POST',
436
+ path: '/v2/outfits/create',
437
+ baseUrl: 'https://avatar.roblox.com',
438
+ requestFormat: 'json',
447
439
  serializationMethod: {
448
440
  body: {},
449
- "Roblox-Place-Id": {
450
- style: "simple",
441
+ 'Roblox-Place-Id': {
442
+ style: 'simple',
451
443
  },
452
444
  },
453
445
  parameters: {
454
- "Roblox-Place-Id": z.number().int().optional(),
446
+ 'Roblox-Place-Id': z.number().int().optional(),
455
447
  },
456
448
  body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
457
449
  response: z.object({}),
@@ -499,7 +491,10 @@ export const postOutfitsUseroutfitidUpdate = endpoint({
499
491
  body: Roblox_Api_Avatar_Models_OutfitUpdateModelV2,
500
492
  response: z.object({}),
501
493
  errors: [
502
- { status: 400, description: `1: The specified userOutfit does not exist!\n3: Body colors must be valid BrickColor IDs\n4: Invalid outfit name\n5: Asset is not wearable by you\n7: Invalid assetIds\n8: Invalid Player Avatar Type. Valid types are R6 and R15` },
494
+ {
495
+ status: 400,
496
+ description: `1: The specified userOutfit does not exist!\n3: Body colors must be valid BrickColor IDs\n4: Invalid outfit name\n5: Asset is not wearable by you\n7: Invalid assetIds\n8: Invalid Player Avatar Type. Valid types are R6 and R15`,
497
+ },
503
498
  { status: 401, description: `0: Authorization has been denied for this request.` },
504
499
  { status: 403, description: `0: Token Validation Failed\n2: You don't have permission to update this outfit.` },
505
500
  { status: 500, description: `6: An error occurred while trying to update the outfit` },
@@ -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_Api_Avatar_Models_AssetTypeModel = z.object({
5
5
  id: z.number().int(),
@@ -111,13 +111,7 @@ const Roblox_Api_Avatar_Models_OutfitUpdateModelV3 = z.object({
111
111
  assets: z.array(Roblox_Api_Avatar_Models_AssetWearModel),
112
112
  scale: Roblox_Web_Responses_Avatar_ScaleModel,
113
113
  playerAvatarType: z.string(),
114
- outfitType: z.union([
115
- z.literal(0),
116
- z.literal(1),
117
- z.literal(2),
118
- z.literal(4),
119
- z.literal(5),
120
- ]),
114
+ outfitType: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(5)]),
121
115
  });
122
116
  const Roblox_Api_Avatar_Models_OutfitModel = z.object({
123
117
  id: z.number().int(),
@@ -136,22 +130,22 @@ const Roblox_Api_Avatar_Models_OutfitModel = z.object({
136
130
  Accepts partial updates.
137
131
  */
138
132
  export const patchOutfitsUseroutfitid = endpoint({
139
- method: "PATCH",
140
- path: "/v3/outfits/:userOutfitId",
141
- baseUrl: "https://avatar.roblox.com",
142
- requestFormat: "json",
133
+ method: 'PATCH',
134
+ path: '/v3/outfits/:userOutfitId',
135
+ baseUrl: 'https://avatar.roblox.com',
136
+ requestFormat: 'json',
143
137
  serializationMethod: {
144
138
  body: {},
145
139
  userOutfitId: {
146
- style: "simple",
140
+ style: 'simple',
147
141
  },
148
- "Roblox-Place-Id": {
149
- style: "simple",
142
+ 'Roblox-Place-Id': {
143
+ style: 'simple',
150
144
  },
151
145
  },
152
146
  parameters: {
153
147
  userOutfitId: z.number().int(),
154
- "Roblox-Place-Id": z.number().int().optional(),
148
+ 'Roblox-Place-Id': z.number().int().optional(),
155
149
  },
156
150
  body: Roblox_Api_Avatar_Models_OutfitUpdateModelV3,
157
151
  response: Roblox_Api_Avatar_Models_OutfitModel,
@@ -194,25 +188,25 @@ export const patchOutfitsUseroutfitid = endpoint({
194
188
  * @param checkAssetAvailability Whether to return assets with availability status.
195
189
  */
196
190
  export const getOutfitsUseroutfitidDetails = endpoint({
197
- method: "GET",
198
- path: "/v3/outfits/:userOutfitId/details",
199
- baseUrl: "https://avatar.roblox.com",
200
- requestFormat: "json",
191
+ method: 'GET',
192
+ path: '/v3/outfits/:userOutfitId/details',
193
+ baseUrl: 'https://avatar.roblox.com',
194
+ requestFormat: 'json',
201
195
  serializationMethod: {
202
196
  userOutfitId: {
203
- style: "simple",
197
+ style: 'simple',
204
198
  },
205
- "Roblox-Place-Id": {
206
- style: "simple",
199
+ 'Roblox-Place-Id': {
200
+ style: 'simple',
207
201
  },
208
202
  checkAssetAvailability: {
209
- style: "form",
203
+ style: 'form',
210
204
  explode: true,
211
205
  },
212
206
  },
213
207
  parameters: {
214
208
  userOutfitId: z.number().int(),
215
- "Roblox-Place-Id": z.number().int().optional(),
209
+ 'Roblox-Place-Id': z.number().int().optional(),
216
210
  checkAssetAvailability: z.boolean().optional(),
217
211
  },
218
212
  response: Roblox_Api_Avatar_Models_OutfitDetailsModelV2,
@@ -240,18 +234,18 @@ export const getOutfitsUseroutfitidDetails = endpoint({
240
234
  The name property of the request is optional as one will be auto-generated when the request has a null name.
241
235
  */
242
236
  export const postOutfitsCreate = endpoint({
243
- method: "POST",
244
- path: "/v3/outfits/create",
245
- baseUrl: "https://avatar.roblox.com",
246
- requestFormat: "json",
237
+ method: 'POST',
238
+ path: '/v3/outfits/create',
239
+ baseUrl: 'https://avatar.roblox.com',
240
+ requestFormat: 'json',
247
241
  serializationMethod: {
248
242
  body: {},
249
- "Roblox-Place-Id": {
250
- style: "simple",
243
+ 'Roblox-Place-Id': {
244
+ style: 'simple',
251
245
  },
252
246
  },
253
247
  parameters: {
254
- "Roblox-Place-Id": z.number().int().optional(),
248
+ 'Roblox-Place-Id': z.number().int().optional(),
255
249
  },
256
250
  body: Roblox_Api_Avatar_Models_OutfitUpdateModelV3,
257
251
  response: Roblox_Api_Avatar_Models_OutfitModel,