rozod 6.1.0 → 6.1.1

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 (68) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +2 -66
  2. package/lib/endpoints/assetdeliveryv1.d.ts +271 -5
  3. package/lib/endpoints/assetdeliveryv2.d.ts +31 -5
  4. package/lib/endpoints/authv1.d.ts +71 -64
  5. package/lib/endpoints/authv1.js +43 -2
  6. package/lib/endpoints/authv2.d.ts +2 -1
  7. package/lib/endpoints/authv2.js +42 -1
  8. package/lib/endpoints/avatarv1.d.ts +71 -493
  9. package/lib/endpoints/avatarv1.js +2 -48
  10. package/lib/endpoints/avatarv2.d.ts +39 -50
  11. package/lib/endpoints/avatarv2.js +2 -53
  12. package/lib/endpoints/avatarv3.d.ts +39 -2
  13. package/lib/endpoints/avatarv3.js +1 -4
  14. package/lib/endpoints/badgesv1.d.ts +20 -39
  15. package/lib/endpoints/badgesv1.js +20 -0
  16. package/lib/endpoints/catalogv1.d.ts +26 -5
  17. package/lib/endpoints/catalogv1.js +6 -1
  18. package/lib/endpoints/catalogv2.d.ts +20 -2
  19. package/lib/endpoints/catalogv2.js +3 -1
  20. package/lib/endpoints/clientsettingsv1.d.ts +9 -8
  21. package/lib/endpoints/clientsettingsv2.d.ts +53 -0
  22. package/lib/endpoints/developv1.d.ts +1 -1
  23. package/lib/endpoints/developv1.js +45 -1
  24. package/lib/endpoints/developv2.d.ts +1 -0
  25. package/lib/endpoints/friendsv1.d.ts +33 -160
  26. package/lib/endpoints/friendsv1.js +26 -1
  27. package/lib/endpoints/gameinternationalizationv1.d.ts +114 -71
  28. package/lib/endpoints/gameinternationalizationv2.d.ts +4 -0
  29. package/lib/endpoints/gamesv1.d.ts +13 -90
  30. package/lib/endpoints/gamesv1.js +11 -71
  31. package/lib/endpoints/gamesv2.d.ts +1 -0
  32. package/lib/endpoints/gamesv2.js +3 -0
  33. package/lib/endpoints/groupsv1.d.ts +700 -116
  34. package/lib/endpoints/groupsv1.js +3 -0
  35. package/lib/endpoints/groupsv2.d.ts +165 -0
  36. package/lib/endpoints/groupsv2.js +4 -1
  37. package/lib/endpoints/inventoryv1.d.ts +8 -4
  38. package/lib/endpoints/inventoryv2.d.ts +5 -0
  39. package/lib/endpoints/itemconfigurationv1.d.ts +26 -1
  40. package/lib/endpoints/itemconfigurationv1.js +26 -1
  41. package/lib/endpoints/localev1.d.ts +42 -1
  42. package/lib/endpoints/localizationtablesv1.d.ts +15 -0
  43. package/lib/endpoints/matchmakingv1.d.ts +456 -0
  44. package/lib/endpoints/notificationsv2.d.ts +32 -36
  45. package/lib/endpoints/presencev1.d.ts +34 -17
  46. package/lib/endpoints/thumbnailsv1.d.ts +9 -9
  47. package/lib/endpoints/thumbnailsv1.js +2 -0
  48. package/lib/endpoints/tradesv1.js +175 -1
  49. package/lib/endpoints/tradesv2.d.ts +71 -0
  50. package/lib/endpoints/tradesv2.js +83 -1
  51. package/lib/endpoints/twostepverificationv1.d.ts +5 -0
  52. package/lib/endpoints/usersv1.d.ts +4 -2
  53. package/lib/index.js +14 -10
  54. package/lib/opencloud/v1/assets.d.ts +86 -23
  55. package/lib/opencloud/v1/assets.js +4 -10
  56. package/lib/opencloud/v1/datastores-ordered.d.ts +8 -8
  57. package/lib/opencloud/v1/datastores-ordered.js +8 -8
  58. package/lib/opencloud/v1/datastores.d.ts +11 -11
  59. package/lib/opencloud/v1/datastores.js +11 -11
  60. package/lib/opencloud/v1/messaging.d.ts +2 -2
  61. package/lib/opencloud/v1/messaging.js +2 -2
  62. package/lib/opencloud/v1/toolbox.d.ts +3 -1
  63. package/lib/opencloud/v1/toolbox.js +1 -0
  64. package/lib/opencloud/v1/universes.d.ts +2 -2
  65. package/lib/opencloud/v1/universes.js +2 -2
  66. package/lib/opencloud/v2/cloud.d.ts +6 -1
  67. package/lib/opencloud/v2/cloud.js +7 -2
  68. package/package.json +3 -3
@@ -6,13 +6,6 @@ const Roblox_AccountInformation_Api_Models_BirthdateResponse = z.object({
6
6
  birthDay: z.number().int(),
7
7
  birthYear: z.number().int(),
8
8
  });
9
- const Roblox_AccountInformation_Api_Models_BirthdateRequest = z.object({
10
- birthMonth: z.number().int(),
11
- birthDay: z.number().int(),
12
- birthYear: z.number().int(),
13
- password: z.string(),
14
- });
15
- const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
16
9
  const Roblox_AccountInformation_Api_Models_DescriptionResponse = z.object({
17
10
  description: z.string(),
18
11
  });
@@ -25,6 +18,7 @@ const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({
25
18
  const Roblox_AccountInformation_Api_Models_GenderRequest = z.object({
26
19
  gender: z.string(),
27
20
  });
21
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
28
22
  const Roblox_AccountInformation_Api_Models_MetadataResponse = z.object({
29
23
  isAllowedNotificationsEndpointDisabled: z.boolean(),
30
24
  isAccountSettingsPolicyEnabled: z.boolean(),
@@ -32,9 +26,9 @@ const Roblox_AccountInformation_Api_Models_MetadataResponse = z.object({
32
26
  MaxUserDescriptionLength: z.number().int(),
33
27
  isUserDescriptionEnabled: z.boolean(),
34
28
  isUserBlockEndpointsUpdated: z.boolean(),
35
- isPasswordRequiredForAgingDown: z.boolean(),
36
29
  shouldUsePersonaForIdVerification: z.boolean(),
37
30
  shouldDisplaySessionManagement: z.boolean(),
31
+ isPasswordRequiredForAgingDown: z.boolean(),
38
32
  });
39
33
  const Roblox_AccountInformation_Api_Models_PhoneResponse = z.object({
40
34
  countryCode: z.string(),
@@ -92,7 +86,6 @@ const Roblox_AccountInformation_Api_RobloxBadgeResponse = z.object({
92
86
  description: z.string(),
93
87
  imageUrl: z.string(),
94
88
  });
95
- const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse = z.object({ count: z.number().int() });
96
89
  const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = z.object({
97
90
  ticket: z.string(),
98
91
  });
@@ -125,45 +118,6 @@ export const getBirthdate = endpoint({
125
118
  },
126
119
  ],
127
120
  });
128
- /**
129
- * @api POST https://accountinformation.roblox.com/v1/birthdate
130
- * @summary Update the user's birthdate
131
- * @param body The Roblox.AccountInformation.Api.Models.BirthdateRequest
132
- */
133
- export const postBirthdate = endpoint({
134
- method: 'POST',
135
- path: '/v1/birthdate',
136
- baseUrl: 'https://accountinformation.roblox.com',
137
- requestFormat: 'json',
138
- serializationMethod: {
139
- body: {},
140
- },
141
- parameters: {},
142
- body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
143
- response: z.object({}),
144
- errors: [
145
- {
146
- status: 400,
147
- description: `1: User not found.
148
- 4: The birthdate provided is invalid.
149
- 8: Password is incorrect.`,
150
- },
151
- {
152
- status: 401,
153
- description: `0: Authorization has been denied for this request.`,
154
- },
155
- {
156
- status: 403,
157
- description: `0: Token Validation Failed
158
- 5: Invalid birthdate change.`,
159
- },
160
- {
161
- status: 500,
162
- description: `0: An unknown error occured.
163
- 5: Invalid birthdate change.`,
164
- },
165
- ],
166
- });
167
121
  /**
168
122
  * @api GET https://accountinformation.roblox.com/v1/description
169
123
  * @summary Get the user's description
@@ -728,21 +682,3 @@ export const getUsersUseridRobloxBadges = endpoint({
728
682
  response: z.array(Roblox_AccountInformation_Api_RobloxBadgeResponse),
729
683
  errors: [],
730
684
  });
731
- /**
732
- * @api GET https://accountinformation.roblox.com/v1/xbox-live/consecutive-login-days
733
- * @summary Returns number of consecutive login days for xbox users
734
- */
735
- export const getXboxLiveConsecutiveLoginDays = endpoint({
736
- method: 'GET',
737
- path: '/v1/xbox-live/consecutive-login-days',
738
- baseUrl: 'https://accountinformation.roblox.com',
739
- requestFormat: 'json',
740
- response: z.object({ count: z.number().int() }),
741
- errors: [
742
- {
743
- status: 401,
744
- description: `0: Authorization has been denied for this request.
745
- 7: The account is not connected to an Xbox Live account`,
746
- },
747
- ],
748
- });
@@ -22,6 +22,11 @@ const Roblox_Web_Assets_IAssetItemError = z.object({
22
22
  z.literal(14),
23
23
  z.literal(15),
24
24
  z.literal(16),
25
+ z.literal(17),
26
+ z.literal(18),
27
+ z.literal(19),
28
+ z.literal(20),
29
+ z.literal(21),
25
30
  ]),
26
31
  });
27
32
  const Roblox_Web_Assets_AssetContentRepresentationSpecifier = z.object({
@@ -62,6 +67,8 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
62
67
  modulePlaceId: z.number().int(),
63
68
  assetFormat: z.string(),
64
69
  'roblox-assetFormat': z.string(),
70
+ assetResolutionMode: z.string(),
71
+ accessContext: z.string(),
65
72
  contentRepresentationPriorityList: z.string(),
66
73
  doNotFallbackToBaselineRepresentation: z.boolean(),
67
74
  });
@@ -82,6 +89,7 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
82
89
  * @param modulePlaceId
83
90
  * @param serverplaceid
84
91
  * @param expectedAssetType
92
+ * @param accessContext
85
93
  */
86
94
  export const getAliasAlias = endpoint({
87
95
  method: 'GET',
@@ -134,6 +142,10 @@ export const getAliasAlias = endpoint({
134
142
  style: 'form',
135
143
  explode: true,
136
144
  },
145
+ accessContext: {
146
+ style: 'form',
147
+ explode: true,
148
+ },
137
149
  },
138
150
  parameters: {
139
151
  alias: z.string().regex(/^[0-9]+\/.+/),
@@ -149,6 +161,7 @@ export const getAliasAlias = endpoint({
149
161
  modulePlaceId: z.number().int().optional(),
150
162
  serverplaceid: z.number().int().optional(),
151
163
  expectedAssetType: z.string().optional(),
164
+ accessContext: z.string().optional(),
152
165
  },
153
166
  response: Roblox_Web_Assets_AssetResponseItemV1,
154
167
  errors: [],
@@ -179,6 +192,8 @@ export const getAliasAlias = endpoint({
179
192
  * @param permissionContext
180
193
  * @param doNotFallbackToBaselineRepresentation
181
194
  * @param contentRepresentationPriorityList
195
+ * @param assetResolutionMode
196
+ * @param accessContext
182
197
  */
183
198
  export const getAsset = endpoint({
184
199
  method: 'GET',
@@ -276,6 +291,14 @@ export const getAsset = endpoint({
276
291
  style: 'form',
277
292
  explode: true,
278
293
  },
294
+ assetResolutionMode: {
295
+ style: 'form',
296
+ explode: true,
297
+ },
298
+ accessContext: {
299
+ style: 'form',
300
+ explode: true,
301
+ },
279
302
  },
280
303
  parameters: {
281
304
  'Accept-Encoding': z.string(),
@@ -302,6 +325,8 @@ export const getAsset = endpoint({
302
325
  permissionContext: z.string().optional(),
303
326
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
304
327
  contentRepresentationPriorityList: z.string().optional(),
328
+ assetResolutionMode: z.string().optional(),
329
+ accessContext: z.string().optional(),
305
330
  },
306
331
  response: z.void(),
307
332
  errors: [],
@@ -324,6 +349,7 @@ export const getAsset = endpoint({
324
349
  * @param expectedAssetType
325
350
  * @param doNotFallbackToBaselineRepresentation
326
351
  * @param contentRepresentationPriorityList
352
+ * @param accessContext
327
353
  */
328
354
  export const getAssetidAssetid = endpoint({
329
355
  method: 'GET',
@@ -384,6 +410,10 @@ export const getAssetidAssetid = endpoint({
384
410
  style: 'form',
385
411
  explode: true,
386
412
  },
413
+ accessContext: {
414
+ style: 'form',
415
+ explode: true,
416
+ },
387
417
  },
388
418
  parameters: {
389
419
  assetId: z.number().int(),
@@ -401,6 +431,7 @@ export const getAssetidAssetid = endpoint({
401
431
  expectedAssetType: z.string().optional(),
402
432
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
403
433
  contentRepresentationPriorityList: z.string().optional(),
434
+ accessContext: z.string().optional(),
404
435
  },
405
436
  response: Roblox_Web_Assets_AssetResponseItemV1,
406
437
  errors: [],
@@ -424,6 +455,7 @@ export const getAssetidAssetid = endpoint({
424
455
  * @param expectedAssetType
425
456
  * @param doNotFallbackToBaselineRepresentation
426
457
  * @param contentRepresentationPriorityList
458
+ * @param accessContext
427
459
  */
428
460
  export const getAssetidAssetidVersionVersionnumber = endpoint({
429
461
  method: 'GET',
@@ -487,6 +519,10 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
487
519
  style: 'form',
488
520
  explode: true,
489
521
  },
522
+ accessContext: {
523
+ style: 'form',
524
+ explode: true,
525
+ },
490
526
  },
491
527
  parameters: {
492
528
  assetId: z.number().int(),
@@ -505,6 +541,7 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
505
541
  expectedAssetType: z.string().optional(),
506
542
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
507
543
  contentRepresentationPriorityList: z.string().optional(),
544
+ accessContext: z.string().optional(),
508
545
  },
509
546
  response: Roblox_Web_Assets_AssetResponseItemV1,
510
547
  errors: [],
@@ -514,7 +551,6 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
514
551
  * @param body
515
552
  * @param Roblox-Place-Id
516
553
  * @param Accept
517
- * @param Roblox-Browser-Asset-Request
518
554
  */
519
555
  export const postAssetsBatch = endpoint({
520
556
  method: 'POST',
@@ -529,14 +565,10 @@ export const postAssetsBatch = endpoint({
529
565
  Accept: {
530
566
  style: 'simple',
531
567
  },
532
- 'Roblox-Browser-Asset-Request': {
533
- style: 'simple',
534
- },
535
568
  },
536
569
  parameters: {
537
570
  'Roblox-Place-Id': z.number().int(),
538
571
  Accept: z.string(),
539
- 'Roblox-Browser-Asset-Request': z.string(),
540
572
  },
541
573
  body: z.array(Roblox_Web_Assets_BatchAssetRequestItem),
542
574
  response: z.array(Roblox_Web_Assets_AssetResponseItemV1),
@@ -644,3 +676,237 @@ export const getMarassethashMarassethashMarchecksumMarchecksum = endpoint({
644
676
  },
645
677
  ],
646
678
  });
679
+ /**
680
+ * @api GET https://assetdelivery.roblox.com/v1/openCloud/assetId/:assetId
681
+ * @summary Retrieves an asset by its ID with OpenCloud auth.
682
+ * @param assetId The ID of the asset to retrieve.
683
+ * @param Accept-Encoding The Accept-Encoding header value specifying compression formats (e.g., "gzip, deflate"). Defaults to "gzip, deflate" if not provided.
684
+ * @param Roblox-Place-Id The Roblox-Place-Id header value identifying the place making the request.
685
+ * @param AssetType The AssetType header value specifying the expected asset type.
686
+ * @param Accept The Accept header value specifying the preferred response content type.
687
+ * @param AssetFormat The AssetFormat header value specifying the desired asset format. Overridden by robloxAssetFormat if both are provided.
688
+ * @param Roblox-AssetFormat The Roblox-AssetFormat header value specifying the preferred Roblox-specific asset format. Takes precedence over assetFormat.
689
+ * @param skipSigningScripts Whether to skip script signing for the returned asset. Used for script assets that don't require signing.
690
+ * @param clientInsert Set to 1 to indicate this is a client insert request.
691
+ * @param scriptinsert Set to 1 to indicate this is a script insert request.
692
+ * @param modulePlaceId The place ID of the module making the request.
693
+ * @param serverplaceid The server place ID making the request.
694
+ * @param expectedAssetType The expected asset type as a fallback when assetType header is not provided.
695
+ * @param doNotFallbackToBaselineRepresentation Whether to prevent fallback to baseline representation when specific content representations are not available.
696
+ * @param contentRepresentationPriorityList Base64URL-encoded JSON string specifying the priority list of desired content representations (format, version, fidelity).
697
+ * @param accessContext
698
+ * @description Returns an object containing a `location` property which is a temporary CDN URL for the asset content. All asset types are supported.
699
+ You should request that URL with the `Accept-Encoding: gzip` header and decompress the result if the response is gzipped. If you are using cURL, the `--compressed` flag will automate these steps for you.
700
+ This endpoint is expected to be called with API key authentication through `apis.roblox.com/asset-delivery-api/v1/assetId/{assetId}`.
701
+ While you are able to make requests to this endpoint with Cookie authentication via `assetdelivery.roblox.com/v1/openCloud/assetId/{assetId}`, we highly discourage use this way.
702
+ Expect unannounced removal of this second route in the future.
703
+ */
704
+ export const getOpencloudAssetidAssetid = endpoint({
705
+ method: 'GET',
706
+ path: '/v1/openCloud/assetId/:assetId',
707
+ baseUrl: 'https://assetdelivery.roblox.com',
708
+ requestFormat: 'json',
709
+ serializationMethod: {
710
+ assetId: {
711
+ style: 'simple',
712
+ },
713
+ 'Accept-Encoding': {
714
+ style: 'simple',
715
+ },
716
+ 'Roblox-Place-Id': {
717
+ style: 'simple',
718
+ },
719
+ AssetType: {
720
+ style: 'simple',
721
+ },
722
+ Accept: {
723
+ style: 'simple',
724
+ },
725
+ AssetFormat: {
726
+ style: 'simple',
727
+ },
728
+ 'Roblox-AssetFormat': {
729
+ style: 'simple',
730
+ },
731
+ skipSigningScripts: {
732
+ style: 'form',
733
+ explode: true,
734
+ },
735
+ clientInsert: {
736
+ style: 'form',
737
+ explode: true,
738
+ },
739
+ scriptinsert: {
740
+ style: 'form',
741
+ explode: true,
742
+ },
743
+ modulePlaceId: {
744
+ style: 'form',
745
+ explode: true,
746
+ },
747
+ serverplaceid: {
748
+ style: 'form',
749
+ explode: true,
750
+ },
751
+ expectedAssetType: {
752
+ style: 'form',
753
+ explode: true,
754
+ },
755
+ doNotFallbackToBaselineRepresentation: {
756
+ style: 'form',
757
+ explode: true,
758
+ },
759
+ contentRepresentationPriorityList: {
760
+ style: 'form',
761
+ explode: true,
762
+ },
763
+ accessContext: {
764
+ style: 'form',
765
+ explode: true,
766
+ },
767
+ },
768
+ parameters: {
769
+ assetId: z.number().int(),
770
+ 'Accept-Encoding': z.string().optional(),
771
+ 'Roblox-Place-Id': z.number().int().optional(),
772
+ AssetType: z.string().optional(),
773
+ Accept: z.string().optional(),
774
+ AssetFormat: z.string().optional(),
775
+ 'Roblox-AssetFormat': z.string().optional(),
776
+ skipSigningScripts: z.boolean().optional(),
777
+ clientInsert: z.number().int().optional(),
778
+ scriptinsert: z.number().int().optional(),
779
+ modulePlaceId: z.number().int().optional(),
780
+ serverplaceid: z.number().int().optional(),
781
+ expectedAssetType: z.string().optional(),
782
+ doNotFallbackToBaselineRepresentation: z.boolean().optional(),
783
+ contentRepresentationPriorityList: z.string().optional(),
784
+ accessContext: z.string().optional(),
785
+ },
786
+ response: Roblox_Web_Assets_AssetResponseItemV1,
787
+ errors: [
788
+ {
789
+ status: 401,
790
+ description: `0: Authorization has been denied for this request.`,
791
+ },
792
+ ],
793
+ });
794
+ /**
795
+ * @api GET https://assetdelivery.roblox.com/v1/openCloud/assetId/:assetId/version/:versionNumber
796
+ * @summary Retrieves an asset by its ID and version number with OpenCloud auth.
797
+ * @param assetId The ID of the asset to retrieve.
798
+ * @param versionNumber The version number of the asset to retrieve.
799
+ * @param Accept-Encoding
800
+ * @param Roblox-Place-Id
801
+ * @param AssetType
802
+ * @param Accept
803
+ * @param AssetFormat
804
+ * @param Roblox-AssetFormat
805
+ * @param skipSigningScripts
806
+ * @param clientInsert
807
+ * @param scriptinsert
808
+ * @param modulePlaceId
809
+ * @param serverplaceid
810
+ * @param expectedAssetType
811
+ * @param doNotFallbackToBaselineRepresentation
812
+ * @param contentRepresentationPriorityList
813
+ * @param accessContext
814
+ * @description Refer to the assetId endpoint for details on usage.
815
+ This endpoint is expected to be called with API key authentication through `apis.roblox.com/asset-delivery-api/v1/assetId/{assetId}/version/{versionNumber}`.
816
+ While you are able to make requests to this endpoint with Cookie authentication via `assetdelivery.roblox.com/v1/openCloud/assetId/{assetId}/version/{versionNumber}`, we highly discourage use this way.
817
+ Expect unannounced removal of this second route in the future.
818
+ */
819
+ export const getOpencloudAssetidAssetidVersionVersionnumber = endpoint({
820
+ method: 'GET',
821
+ path: '/v1/openCloud/assetId/:assetId/version/:versionNumber',
822
+ baseUrl: 'https://assetdelivery.roblox.com',
823
+ requestFormat: 'json',
824
+ serializationMethod: {
825
+ assetId: {
826
+ style: 'simple',
827
+ },
828
+ versionNumber: {
829
+ style: 'simple',
830
+ },
831
+ 'Accept-Encoding': {
832
+ style: 'simple',
833
+ },
834
+ 'Roblox-Place-Id': {
835
+ style: 'simple',
836
+ },
837
+ AssetType: {
838
+ style: 'simple',
839
+ },
840
+ Accept: {
841
+ style: 'simple',
842
+ },
843
+ AssetFormat: {
844
+ style: 'simple',
845
+ },
846
+ 'Roblox-AssetFormat': {
847
+ style: 'simple',
848
+ },
849
+ skipSigningScripts: {
850
+ style: 'form',
851
+ explode: true,
852
+ },
853
+ clientInsert: {
854
+ style: 'form',
855
+ explode: true,
856
+ },
857
+ scriptinsert: {
858
+ style: 'form',
859
+ explode: true,
860
+ },
861
+ modulePlaceId: {
862
+ style: 'form',
863
+ explode: true,
864
+ },
865
+ serverplaceid: {
866
+ style: 'form',
867
+ explode: true,
868
+ },
869
+ expectedAssetType: {
870
+ style: 'form',
871
+ explode: true,
872
+ },
873
+ doNotFallbackToBaselineRepresentation: {
874
+ style: 'form',
875
+ explode: true,
876
+ },
877
+ contentRepresentationPriorityList: {
878
+ style: 'form',
879
+ explode: true,
880
+ },
881
+ accessContext: {
882
+ style: 'form',
883
+ explode: true,
884
+ },
885
+ },
886
+ parameters: {
887
+ assetId: z.number().int(),
888
+ versionNumber: z.number().int(),
889
+ 'Accept-Encoding': z.string().optional(),
890
+ 'Roblox-Place-Id': z.number().int().optional(),
891
+ AssetType: z.string().optional(),
892
+ Accept: z.string().optional(),
893
+ AssetFormat: z.string().optional(),
894
+ 'Roblox-AssetFormat': z.string().optional(),
895
+ skipSigningScripts: z.boolean().optional(),
896
+ clientInsert: z.number().int().optional(),
897
+ scriptinsert: z.number().int().optional(),
898
+ modulePlaceId: z.number().int().optional(),
899
+ serverplaceid: z.number().int().optional(),
900
+ expectedAssetType: z.string().optional(),
901
+ doNotFallbackToBaselineRepresentation: z.boolean().optional(),
902
+ contentRepresentationPriorityList: z.string().optional(),
903
+ accessContext: z.string().optional(),
904
+ },
905
+ response: Roblox_Web_Assets_AssetResponseItemV1,
906
+ errors: [
907
+ {
908
+ status: 401,
909
+ description: `0: Authorization has been denied for this request.`,
910
+ },
911
+ ],
912
+ });
@@ -31,6 +31,11 @@ const Roblox_Web_Assets_IAssetItemError = z.object({
31
31
  z.literal(14),
32
32
  z.literal(15),
33
33
  z.literal(16),
34
+ z.literal(17),
35
+ z.literal(18),
36
+ z.literal(19),
37
+ z.literal(20),
38
+ z.literal(21),
34
39
  ]),
35
40
  });
36
41
  const Roblox_Web_Assets_AssetContentRepresentationSpecifier = z.object({
@@ -66,6 +71,8 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
66
71
  modulePlaceId: z.number().int(),
67
72
  assetFormat: z.string(),
68
73
  'roblox-assetFormat': z.string(),
74
+ assetResolutionMode: z.string(),
75
+ accessContext: z.string(),
69
76
  contentRepresentationPriorityList: z.string(),
70
77
  doNotFallbackToBaselineRepresentation: z.boolean(),
71
78
  });
@@ -85,6 +92,7 @@ const Roblox_Web_Assets_BatchAssetRequestItem = z.object({
85
92
  * @param modulePlaceId
86
93
  * @param serverplaceid
87
94
  * @param expectedAssetType
95
+ * @param accessContext
88
96
  */
89
97
  export const getAliasAlias = endpoint({
90
98
  method: 'GET',
@@ -137,6 +145,10 @@ export const getAliasAlias = endpoint({
137
145
  style: 'form',
138
146
  explode: true,
139
147
  },
148
+ accessContext: {
149
+ style: 'form',
150
+ explode: true,
151
+ },
140
152
  },
141
153
  parameters: {
142
154
  alias: z.string().regex(/^[0-9]+\/.+/),
@@ -152,6 +164,7 @@ export const getAliasAlias = endpoint({
152
164
  modulePlaceId: z.number().int().optional(),
153
165
  serverplaceid: z.number().int().optional(),
154
166
  expectedAssetType: z.string().optional(),
167
+ accessContext: z.string().optional(),
155
168
  },
156
169
  response: Roblox_Web_Assets_AssetResponseItemV2,
157
170
  errors: [],
@@ -182,6 +195,7 @@ export const getAliasAlias = endpoint({
182
195
  * @param permissionContext
183
196
  * @param doNotFallbackToBaselineRepresentation
184
197
  * @param contentRepresentationPriorityList
198
+ * @param accessContext
185
199
  */
186
200
  export const getAsset = endpoint({
187
201
  method: 'GET',
@@ -279,6 +293,10 @@ export const getAsset = endpoint({
279
293
  style: 'form',
280
294
  explode: true,
281
295
  },
296
+ accessContext: {
297
+ style: 'form',
298
+ explode: true,
299
+ },
282
300
  },
283
301
  parameters: {
284
302
  'Accept-Encoding': z.string(),
@@ -305,6 +323,7 @@ export const getAsset = endpoint({
305
323
  permissionContext: z.string().optional(),
306
324
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
307
325
  contentRepresentationPriorityList: z.string().optional(),
326
+ accessContext: z.string().optional(),
308
327
  },
309
328
  response: Roblox_Web_Assets_AssetResponseItemV2,
310
329
  errors: [],
@@ -326,6 +345,7 @@ export const getAsset = endpoint({
326
345
  * @param expectedAssetType
327
346
  * @param doNotFallbackToBaselineRepresentation
328
347
  * @param contentRepresentationPriorityList
348
+ * @param accessContext
329
349
  */
330
350
  export const getAssetidAssetid = endpoint({
331
351
  method: 'GET',
@@ -386,6 +406,10 @@ export const getAssetidAssetid = endpoint({
386
406
  style: 'form',
387
407
  explode: true,
388
408
  },
409
+ accessContext: {
410
+ style: 'form',
411
+ explode: true,
412
+ },
389
413
  },
390
414
  parameters: {
391
415
  assetId: z.number().int(),
@@ -403,6 +427,7 @@ export const getAssetidAssetid = endpoint({
403
427
  expectedAssetType: z.string().optional(),
404
428
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
405
429
  contentRepresentationPriorityList: z.string().optional(),
430
+ accessContext: z.string().optional(),
406
431
  },
407
432
  response: Roblox_Web_Assets_AssetResponseItemV2,
408
433
  errors: [],
@@ -425,6 +450,7 @@ export const getAssetidAssetid = endpoint({
425
450
  * @param expectedAssetType
426
451
  * @param doNotFallbackToBaselineRepresentation
427
452
  * @param contentRepresentationPriorityList
453
+ * @param accessContext
428
454
  */
429
455
  export const getAssetidAssetidVersionVersionnumber = endpoint({
430
456
  method: 'GET',
@@ -488,6 +514,10 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
488
514
  style: 'form',
489
515
  explode: true,
490
516
  },
517
+ accessContext: {
518
+ style: 'form',
519
+ explode: true,
520
+ },
491
521
  },
492
522
  parameters: {
493
523
  assetId: z.number().int(),
@@ -506,6 +536,7 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
506
536
  expectedAssetType: z.string().optional(),
507
537
  doNotFallbackToBaselineRepresentation: z.boolean().optional(),
508
538
  contentRepresentationPriorityList: z.string().optional(),
539
+ accessContext: z.string().optional(),
509
540
  },
510
541
  response: Roblox_Web_Assets_AssetResponseItemV2,
511
542
  errors: [],
@@ -515,7 +546,6 @@ export const getAssetidAssetidVersionVersionnumber = endpoint({
515
546
  * @param body
516
547
  * @param Roblox-Place-Id
517
548
  * @param Accept
518
- * @param Roblox-Browser-Asset-Request
519
549
  */
520
550
  export const postAssetsBatch = endpoint({
521
551
  method: 'POST',
@@ -530,14 +560,10 @@ export const postAssetsBatch = endpoint({
530
560
  Accept: {
531
561
  style: 'simple',
532
562
  },
533
- 'Roblox-Browser-Asset-Request': {
534
- style: 'simple',
535
- },
536
563
  },
537
564
  parameters: {
538
565
  'Roblox-Place-Id': z.number().int(),
539
566
  Accept: z.string(),
540
- 'Roblox-Browser-Asset-Request': z.string(),
541
567
  },
542
568
  body: z.array(Roblox_Web_Assets_BatchAssetRequestItem),
543
569
  response: z.array(Roblox_Web_Assets_AssetResponseItemV2),