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,147 +1,135 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
- const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ =
5
- z.object({
6
- id: z.number().int(),
7
- type: z.enum(["User", "Group"]),
8
- name: z.string(),
9
- });
4
+ const Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ = z.object({
5
+ id: z.number().int(),
6
+ type: z.enum(['User', 'Group']),
7
+ name: z.string(),
8
+ });
10
9
  const Roblox_Inventory_Api_V2_AssetOwnerResponse = z.object({
11
10
  id: z.number().int(),
12
11
  collectibleItemInstanceId: z.string(),
13
12
  serialNumber: z.number().int(),
14
- owner:
15
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
13
+ owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
16
14
  created: z.string().datetime({ offset: true }),
17
15
  updated: z.string().datetime({ offset: true }),
18
16
  });
19
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_ =
20
- z.object({
21
- previousPageCursor: z.string(),
22
- nextPageCursor: z.string(),
23
- data: z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
24
- });
17
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_ = z.object({
18
+ previousPageCursor: z.string(),
19
+ nextPageCursor: z.string(),
20
+ data: z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
21
+ });
25
22
  const Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse = z.object({
26
23
  collectibleItemInstanceId: z.string(),
27
24
  serialNumber: z.number().int(),
28
- owner:
29
- Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
25
+ owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
26
+ });
27
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ = z.object({
28
+ previousPageCursor: z.string(),
29
+ nextPageCursor: z.string(),
30
+ data: z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
30
31
  });
31
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_ =
32
- z.object({
33
- previousPageCursor: z.string(),
34
- nextPageCursor: z.string(),
35
- data: z.array(Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse),
36
- });
37
32
  const Roblox_Inventory_Api_V2_UserAssetItemModelV2 = z.object({
38
33
  assetId: z.number().int(),
39
34
  name: z.string(),
40
35
  assetType: z.enum([
41
- "Image",
42
- "TShirt",
43
- "Audio",
44
- "Mesh",
45
- "Lua",
46
- "HTML",
47
- "Text",
48
- "Hat",
49
- "Place",
50
- "Model",
51
- "Shirt",
52
- "Pants",
53
- "Decal",
54
- "Avatar",
55
- "Head",
56
- "Face",
57
- "Gear",
58
- "Badge",
59
- "GroupEmblem",
60
- "Animation",
61
- "Arms",
62
- "Legs",
63
- "Torso",
64
- "RightArm",
65
- "LeftArm",
66
- "LeftLeg",
67
- "RightLeg",
68
- "Package",
69
- "YouTubeVideo",
70
- "GamePass",
71
- "App",
72
- "Code",
73
- "Plugin",
74
- "SolidModel",
75
- "MeshPart",
76
- "HairAccessory",
77
- "FaceAccessory",
78
- "NeckAccessory",
79
- "ShoulderAccessory",
80
- "FrontAccessory",
81
- "BackAccessory",
82
- "WaistAccessory",
83
- "ClimbAnimation",
84
- "DeathAnimation",
85
- "FallAnimation",
86
- "IdleAnimation",
87
- "JumpAnimation",
88
- "RunAnimation",
89
- "SwimAnimation",
90
- "WalkAnimation",
91
- "PoseAnimation",
92
- "LocalizationTableManifest",
93
- "LocalizationTableTranslation",
94
- "EmoteAnimation",
95
- "Video",
96
- "TexturePack",
97
- "TShirtAccessory",
98
- "ShirtAccessory",
99
- "PantsAccessory",
100
- "JacketAccessory",
101
- "SweaterAccessory",
102
- "ShortsAccessory",
103
- "LeftShoeAccessory",
104
- "RightShoeAccessory",
105
- "DressSkirtAccessory",
106
- "FontFamily",
107
- "FontFace",
108
- "MeshHiddenSurfaceRemoval",
109
- "EyebrowAccessory",
110
- "EyelashAccessory",
111
- "MoodAnimation",
112
- "DynamicHead",
113
- "CodeSnippet",
114
- "AdsVideo",
115
- "OtaUpdate",
116
- "Screenshot",
117
- "RuntimePropertySet",
118
- "StorePreviewVideo",
119
- "GamePreviewVideo",
120
- "CreatorExperienceConfig",
121
- "FaceMakeup",
122
- "LipMakeup",
123
- "EyeMakeup",
124
- "VoxelFragment",
125
- "AvatarBackground",
36
+ 'Image',
37
+ 'TShirt',
38
+ 'Audio',
39
+ 'Mesh',
40
+ 'Lua',
41
+ 'HTML',
42
+ 'Text',
43
+ 'Hat',
44
+ 'Place',
45
+ 'Model',
46
+ 'Shirt',
47
+ 'Pants',
48
+ 'Decal',
49
+ 'Avatar',
50
+ 'Head',
51
+ 'Face',
52
+ 'Gear',
53
+ 'Badge',
54
+ 'GroupEmblem',
55
+ 'Animation',
56
+ 'Arms',
57
+ 'Legs',
58
+ 'Torso',
59
+ 'RightArm',
60
+ 'LeftArm',
61
+ 'LeftLeg',
62
+ 'RightLeg',
63
+ 'Package',
64
+ 'YouTubeVideo',
65
+ 'GamePass',
66
+ 'App',
67
+ 'Code',
68
+ 'Plugin',
69
+ 'SolidModel',
70
+ 'MeshPart',
71
+ 'HairAccessory',
72
+ 'FaceAccessory',
73
+ 'NeckAccessory',
74
+ 'ShoulderAccessory',
75
+ 'FrontAccessory',
76
+ 'BackAccessory',
77
+ 'WaistAccessory',
78
+ 'ClimbAnimation',
79
+ 'DeathAnimation',
80
+ 'FallAnimation',
81
+ 'IdleAnimation',
82
+ 'JumpAnimation',
83
+ 'RunAnimation',
84
+ 'SwimAnimation',
85
+ 'WalkAnimation',
86
+ 'PoseAnimation',
87
+ 'LocalizationTableManifest',
88
+ 'LocalizationTableTranslation',
89
+ 'EmoteAnimation',
90
+ 'Video',
91
+ 'TexturePack',
92
+ 'TShirtAccessory',
93
+ 'ShirtAccessory',
94
+ 'PantsAccessory',
95
+ 'JacketAccessory',
96
+ 'SweaterAccessory',
97
+ 'ShortsAccessory',
98
+ 'LeftShoeAccessory',
99
+ 'RightShoeAccessory',
100
+ 'DressSkirtAccessory',
101
+ 'FontFamily',
102
+ 'FontFace',
103
+ 'MeshHiddenSurfaceRemoval',
104
+ 'EyebrowAccessory',
105
+ 'EyelashAccessory',
106
+ 'MoodAnimation',
107
+ 'DynamicHead',
108
+ 'CodeSnippet',
109
+ 'AdsVideo',
110
+ 'OtaUpdate',
111
+ 'Screenshot',
112
+ 'RuntimePropertySet',
113
+ 'StorePreviewVideo',
114
+ 'GamePreviewVideo',
115
+ 'CreatorExperienceConfig',
116
+ 'FaceMakeup',
117
+ 'LipMakeup',
118
+ 'EyeMakeup',
119
+ 'VoxelFragment',
120
+ 'AvatarBackground',
126
121
  ]),
127
122
  created: z.string().datetime({ offset: true }),
128
123
  });
129
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ =
130
- z.object({
131
- previousPageCursor: z.string(),
132
- nextPageCursor: z.string(),
133
- data: z.array(Roblox_Inventory_Api_V2_UserAssetItemModelV2),
134
- });
124
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ = z.object({
125
+ previousPageCursor: z.string(),
126
+ nextPageCursor: z.string(),
127
+ data: z.array(Roblox_Inventory_Api_V2_UserAssetItemModelV2),
128
+ });
135
129
  const Roblox_Inventory_Api_Models_UserModel = z.object({
136
130
  userId: z.number().int(),
137
131
  username: z.string(),
138
- buildersClubMembershipType: z.enum([
139
- "None",
140
- "BC",
141
- "TBC",
142
- "OBC",
143
- "RobloxPremium",
144
- ]),
132
+ buildersClubMembershipType: z.enum(['None', 'BC', 'TBC', 'OBC', 'RobloxPremium']),
145
133
  });
146
134
  const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
147
135
  expireAt: z.string().datetime({ offset: true }),
@@ -155,12 +143,11 @@ const Roblox_Inventory_Api_Models_InventoryItemModel = z.object({
155
143
  created: z.string().datetime({ offset: true }),
156
144
  updated: z.string().datetime({ offset: true }),
157
145
  });
158
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ =
159
- z.object({
160
- previousPageCursor: z.string(),
161
- nextPageCursor: z.string(),
162
- data: z.array(Roblox_Inventory_Api_Models_InventoryItemModel),
163
- });
146
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ = z.object({
147
+ previousPageCursor: z.string(),
148
+ nextPageCursor: z.string(),
149
+ data: z.array(Roblox_Inventory_Api_Models_InventoryItemModel),
150
+ });
164
151
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
165
152
 
166
153
  /**
@@ -172,24 +159,24 @@ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
172
159
  * @param sortOrder Sorted by userAssetId
173
160
  */
174
161
  export const getAssetsAssetidOwners = endpoint({
175
- method: "GET",
176
- path: "/v2/assets/:assetId/owners",
177
- baseUrl: "https://inventory.roblox.com",
178
- requestFormat: "json",
162
+ method: 'GET',
163
+ path: '/v2/assets/:assetId/owners',
164
+ baseUrl: 'https://inventory.roblox.com',
165
+ requestFormat: 'json',
179
166
  serializationMethod: {
180
167
  assetId: {
181
- style: "simple",
168
+ style: 'simple',
182
169
  },
183
170
  limit: {
184
- style: "form",
171
+ style: 'form',
185
172
  explode: true,
186
173
  },
187
174
  cursor: {
188
- style: "form",
175
+ style: 'form',
189
176
  explode: true,
190
177
  },
191
178
  sortOrder: {
192
- style: "form",
179
+ style: 'form',
193
180
  explode: true,
194
181
  },
195
182
  },
@@ -200,10 +187,9 @@ export const getAssetsAssetidOwners = endpoint({
200
187
  .optional()
201
188
  .default(10),
202
189
  cursor: z.string().optional(),
203
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
190
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
204
191
  },
205
- response:
206
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
192
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
207
193
  errors: [
208
194
  {
209
195
  status: 400,
@@ -224,24 +210,24 @@ export const getAssetsAssetidOwners = endpoint({
224
210
  * @param sortOrder The order the results are sorted in.
225
211
  */
226
212
  export const getCollectibleItemsCollectibleitemidOwners = endpoint({
227
- method: "GET",
228
- path: "/v2/collectible-items/:collectibleItemId/owners",
229
- baseUrl: "https://inventory.roblox.com",
230
- requestFormat: "json",
213
+ method: 'GET',
214
+ path: '/v2/collectible-items/:collectibleItemId/owners',
215
+ baseUrl: 'https://inventory.roblox.com',
216
+ requestFormat: 'json',
231
217
  serializationMethod: {
232
218
  collectibleItemId: {
233
- style: "simple",
219
+ style: 'simple',
234
220
  },
235
221
  limit: {
236
- style: "form",
222
+ style: 'form',
237
223
  explode: true,
238
224
  },
239
225
  cursor: {
240
- style: "form",
226
+ style: 'form',
241
227
  explode: true,
242
228
  },
243
229
  sortOrder: {
244
- style: "form",
230
+ style: 'form',
245
231
  explode: true,
246
232
  },
247
233
  },
@@ -254,8 +240,7 @@ export const getCollectibleItemsCollectibleitemidOwners = endpoint({
254
240
  .optional()
255
241
  .default(1),
256
242
  },
257
- response:
258
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
243
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_CollectibleItemOwnerResponse_,
259
244
  errors: [
260
245
  {
261
246
  status: 400,
@@ -279,13 +264,13 @@ and will return NotEligibleForDelete.
279
264
  * @param assetId ID of the asset to delete.
280
265
  */
281
266
  export const deleteInventoryAssetAssetid = endpoint({
282
- method: "DELETE",
283
- path: "/v2/inventory/asset/:assetId",
284
- baseUrl: "https://inventory.roblox.com",
285
- requestFormat: "json",
267
+ method: 'DELETE',
268
+ path: '/v2/inventory/asset/:assetId',
269
+ baseUrl: 'https://inventory.roblox.com',
270
+ requestFormat: 'json',
286
271
  serializationMethod: {
287
272
  assetId: {
288
- style: "simple",
273
+ style: 'simple',
289
274
  },
290
275
  },
291
276
  parameters: {
@@ -327,35 +312,35 @@ export const deleteInventoryAssetAssetid = endpoint({
327
312
  * @description GamePass and Badges not allowed.
328
313
  */
329
314
  export const getUsersUseridInventory = endpoint({
330
- method: "GET",
331
- path: "/v2/users/:userId/inventory",
332
- baseUrl: "https://inventory.roblox.com",
333
- requestFormat: "json",
315
+ method: 'GET',
316
+ path: '/v2/users/:userId/inventory',
317
+ baseUrl: 'https://inventory.roblox.com',
318
+ requestFormat: 'json',
334
319
  serializationMethod: {
335
320
  userId: {
336
- style: "simple",
321
+ style: 'simple',
337
322
  },
338
323
  assetTypes: {
339
- style: "form",
324
+ style: 'form',
340
325
  },
341
326
  filterDisapprovedAssets: {
342
- style: "form",
327
+ style: 'form',
343
328
  explode: true,
344
329
  },
345
330
  showApprovedOnly: {
346
- style: "form",
331
+ style: 'form',
347
332
  explode: true,
348
333
  },
349
334
  limit: {
350
- style: "form",
335
+ style: 'form',
351
336
  explode: true,
352
337
  },
353
338
  cursor: {
354
- style: "form",
339
+ style: 'form',
355
340
  explode: true,
356
341
  },
357
342
  sortOrder: {
358
- style: "form",
343
+ style: 'form',
359
344
  explode: true,
360
345
  },
361
346
  },
@@ -369,10 +354,9 @@ export const getUsersUseridInventory = endpoint({
369
354
  .optional()
370
355
  .default(10),
371
356
  cursor: z.string().optional(),
372
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
357
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
373
358
  },
374
- response:
375
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
359
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
376
360
  errors: [
377
361
  {
378
362
  status: 400,
@@ -396,27 +380,27 @@ export const getUsersUseridInventory = endpoint({
396
380
  * @param sortOrder The order the results are sorted in.
397
381
  */
398
382
  export const getUsersUseridInventoryAssettypeid = endpoint({
399
- method: "GET",
400
- path: "/v2/users/:userId/inventory/:assetTypeId",
401
- baseUrl: "https://inventory.roblox.com",
402
- requestFormat: "json",
383
+ method: 'GET',
384
+ path: '/v2/users/:userId/inventory/:assetTypeId',
385
+ baseUrl: 'https://inventory.roblox.com',
386
+ requestFormat: 'json',
403
387
  serializationMethod: {
404
388
  userId: {
405
- style: "simple",
389
+ style: 'simple',
406
390
  },
407
391
  assetTypeId: {
408
- style: "simple",
392
+ style: 'simple',
409
393
  },
410
394
  limit: {
411
- style: "form",
395
+ style: 'form',
412
396
  explode: true,
413
397
  },
414
398
  cursor: {
415
- style: "form",
399
+ style: 'form',
416
400
  explode: true,
417
401
  },
418
402
  sortOrder: {
419
- style: "form",
403
+ style: 'form',
420
404
  explode: true,
421
405
  },
422
406
  },
@@ -428,10 +412,9 @@ export const getUsersUseridInventoryAssettypeid = endpoint({
428
412
  .optional()
429
413
  .default(10),
430
414
  cursor: z.string().optional(),
431
- sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
415
+ sortOrder: z.enum(['Asc', 'Desc']).optional().default('Asc'),
432
416
  },
433
- response:
434
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
417
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
435
418
  errors: [
436
419
  {
437
420
  status: 400,
@@ -1,16 +1,15 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
4
  const Roblox_ItemConfiguration_Api_AssetCreationsResponse = z.object({
5
5
  assetId: z.number().int(),
6
6
  name: z.string(),
7
7
  });
8
- const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_ =
9
- z.object({
10
- previousPageCursor: z.string(),
11
- nextPageCursor: z.string(),
12
- data: z.array(Roblox_ItemConfiguration_Api_AssetCreationsResponse),
13
- });
8
+ const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_ = z.object({
9
+ previousPageCursor: z.string(),
10
+ nextPageCursor: z.string(),
11
+ data: z.array(Roblox_ItemConfiguration_Api_AssetCreationsResponse),
12
+ });
14
13
  const Roblox_ItemConfiguration_Api_AssetCreationsDetailsRequest = z.object({
15
14
  AssetIds: z.array(z.number()),
16
15
  });
@@ -20,25 +19,21 @@ const Roblox_ItemConfiguration_Api_PriceConfigurationModel = z.object({
20
19
  premiumPriceInRobux: z.number().int(),
21
20
  priceOffset: z.number().int(),
22
21
  });
23
- const Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel = z.object(
24
- {
25
- saleAvailabilityLocations: z.array(
26
- z.enum(["Undefined", "Catalog", "AllUniverses", "MyUniverses"])
27
- ),
28
- }
29
- );
22
+ const Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel = z.object({
23
+ saleAvailabilityLocations: z.array(z.enum(['Undefined', 'Catalog', 'AllUniverses', 'MyUniverses'])),
24
+ });
30
25
  const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
31
26
  assetId: z.number().int(),
32
27
  name: z.string(),
33
28
  status: z.enum([
34
- "Unknown",
35
- "ReviewPending",
36
- "Moderated",
37
- "ReviewApproved",
38
- "OnSale",
39
- "OffSale",
40
- "DelayedRelease",
41
- "Free",
29
+ 'Unknown',
30
+ 'ReviewPending',
31
+ 'Moderated',
32
+ 'ReviewApproved',
33
+ 'OnSale',
34
+ 'OffSale',
35
+ 'DelayedRelease',
36
+ 'Free',
42
37
  ]),
43
38
  description: z.string(),
44
39
  creatorType: z.string(),
@@ -47,8 +42,7 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
47
42
  priceConfiguration: Roblox_ItemConfiguration_Api_PriceConfigurationModel,
48
43
  isArchived: z.boolean(),
49
44
  assetType: z.string(),
50
- releaseConfiguration:
51
- Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel,
45
+ releaseConfiguration: Roblox_ItemConfiguration_Api_ReleaseConfigurationResponseModel,
52
46
  created: z.string().datetime({ offset: true }),
53
47
  updated: z.string().datetime({ offset: true }),
54
48
  isDelisted: z.boolean(),
@@ -61,10 +55,10 @@ const Roblox_ItemConfiguration_Api_AssetCreationsDetailsResponse = z.object({
61
55
  * @param body
62
56
  */
63
57
  export const postCreationsGetAssetDetails = endpoint({
64
- method: "POST",
65
- path: "/v1/creations/get-asset-details",
66
- baseUrl: "https://itemconfiguration.roblox.com",
67
- requestFormat: "json",
58
+ method: 'POST',
59
+ path: '/v1/creations/get-asset-details',
60
+ baseUrl: 'https://itemconfiguration.roblox.com',
61
+ requestFormat: 'json',
68
62
  serializationMethod: {
69
63
  body: {},
70
64
  },
@@ -109,29 +103,29 @@ export const postCreationsGetAssetDetails = endpoint({
109
103
  * @param cursor The paging cursor for the previous or next page.
110
104
  */
111
105
  export const getCreationsGetAssets = endpoint({
112
- method: "GET",
113
- path: "/v1/creations/get-assets",
114
- baseUrl: "https://itemconfiguration.roblox.com",
115
- requestFormat: "json",
106
+ method: 'GET',
107
+ path: '/v1/creations/get-assets',
108
+ baseUrl: 'https://itemconfiguration.roblox.com',
109
+ requestFormat: 'json',
116
110
  serializationMethod: {
117
111
  assetType: {
118
- style: "form",
112
+ style: 'form',
119
113
  explode: true,
120
114
  },
121
115
  isArchived: {
122
- style: "form",
116
+ style: 'form',
123
117
  explode: true,
124
118
  },
125
119
  groupId: {
126
- style: "form",
120
+ style: 'form',
127
121
  explode: true,
128
122
  },
129
123
  limit: {
130
- style: "form",
124
+ style: 'form',
131
125
  explode: true,
132
126
  },
133
127
  cursor: {
134
- style: "form",
128
+ style: 'form',
135
129
  explode: true,
136
130
  },
137
131
  },
@@ -145,8 +139,7 @@ export const getCreationsGetAssets = endpoint({
145
139
  .default(10),
146
140
  cursor: z.string().optional(),
147
141
  },
148
- response:
149
- Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_,
142
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_ItemConfiguration_Api_AssetCreationsResponse_,
150
143
  errors: [
151
144
  {
152
145
  status: 400,