rozod 2.0.0 → 2.0.2

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 (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +55 -15
  2. package/lib/endpoints/accountinformationv1.js +193 -128
  3. package/lib/endpoints/accountsettingsv1.d.ts +60 -6
  4. package/lib/endpoints/accountsettingsv1.js +204 -118
  5. package/lib/endpoints/assetdeliveryv1.d.ts +431 -0
  6. package/lib/endpoints/assetdeliveryv1.js +442 -10
  7. package/lib/endpoints/assetdeliveryv2.d.ts +431 -0
  8. package/lib/endpoints/assetdeliveryv2.js +443 -12
  9. package/lib/endpoints/authv1.d.ts +162 -36
  10. package/lib/endpoints/authv1.js +399 -201
  11. package/lib/endpoints/authv2.d.ts +108 -0
  12. package/lib/endpoints/authv2.js +353 -160
  13. package/lib/endpoints/authv3.d.ts +6 -0
  14. package/lib/endpoints/authv3.js +16 -8
  15. package/lib/endpoints/avatarv1.d.ts +94 -0
  16. package/lib/endpoints/avatarv1.js +239 -111
  17. package/lib/endpoints/avatarv2.d.ts +26 -0
  18. package/lib/endpoints/avatarv2.js +109 -59
  19. package/lib/endpoints/avatarv3.d.ts +20 -0
  20. package/lib/endpoints/avatarv3.js +83 -41
  21. package/lib/endpoints/badgesv1.d.ts +80 -3
  22. package/lib/endpoints/badgesv1.js +137 -51
  23. package/lib/endpoints/catalogv1.d.ts +183 -25
  24. package/lib/endpoints/catalogv1.js +307 -131
  25. package/lib/endpoints/chatv2.d.ts +105 -0
  26. package/lib/endpoints/chatv2.js +219 -114
  27. package/lib/endpoints/developv1.d.ts +411 -36
  28. package/lib/endpoints/developv1.js +707 -254
  29. package/lib/endpoints/developv2.d.ts +46 -0
  30. package/lib/endpoints/developv2.js +108 -36
  31. package/lib/endpoints/economyv1.js +7 -7
  32. package/lib/endpoints/friendsv1.d.ts +147 -0
  33. package/lib/endpoints/friendsv1.js +309 -114
  34. package/lib/endpoints/gamejoinv1.d.ts +2321 -0
  35. package/lib/endpoints/gamejoinv1.js +416 -0
  36. package/lib/endpoints/gamesv1.d.ts +319 -14
  37. package/lib/endpoints/gamesv1.js +531 -188
  38. package/lib/endpoints/gamesv2.d.ts +89 -0
  39. package/lib/endpoints/gamesv2.js +108 -19
  40. package/lib/endpoints/groupsv1.d.ts +602 -94
  41. package/lib/endpoints/groupsv1.js +1131 -456
  42. package/lib/endpoints/groupsv2.d.ts +33 -0
  43. package/lib/endpoints/groupsv2.js +74 -37
  44. package/lib/endpoints/inventoryv1.d.ts +108 -9
  45. package/lib/endpoints/inventoryv1.js +166 -45
  46. package/lib/endpoints/inventoryv2.d.ts +62 -1
  47. package/lib/endpoints/inventoryv2.js +91 -26
  48. package/lib/endpoints/presencev1.d.ts +14 -5
  49. package/lib/endpoints/presencev1.js +30 -21
  50. package/lib/endpoints/privatemessagesv1.d.ts +39 -0
  51. package/lib/endpoints/privatemessagesv1.js +90 -51
  52. package/lib/endpoints/thumbnailsv1.d.ts +309 -21
  53. package/lib/endpoints/thumbnailsv1.js +410 -63
  54. package/lib/endpoints/tradesv1.d.ts +51 -0
  55. package/lib/endpoints/tradesv1.js +148 -59
  56. package/lib/endpoints/translationsv1.d.ts +33 -0
  57. package/lib/endpoints/translationsv1.js +49 -14
  58. package/lib/endpoints/usersv1.d.ts +67 -0
  59. package/lib/endpoints/usersv1.js +138 -58
  60. package/lib/index.d.ts +4 -0
  61. package/lib/index.js +151 -240
  62. package/package.json +6 -3
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getUserassetidUserassetid = exports.getMarassethashMarassethashMarchecksumMarchecksum = exports.getAssetversionidAssetversionid = exports.postAssetsBatch = exports.getAssetidAssetidVersionVersion = exports.getAssetidAssetid = exports.getAssethashHash = exports.getAsset = exports.getAliasAlias = void 0;
4
- var zod_1 = require("zod");
5
- var Roblox_Web_Assets_AssetFormatLocation = zod_1.z.object({ assetFormat: zod_1.z.string(), location: zod_1.z.string() });
6
- var Roblox_Web_Assets_IAssetItemError = zod_1.z.object({
4
+ const zod_1 = require("zod");
5
+ const Roblox_Web_Assets_AssetFormatLocation = zod_1.z.object({ assetFormat: zod_1.z.string(), location: zod_1.z.string() });
6
+ const Roblox_Web_Assets_IAssetItemError = zod_1.z.object({
7
7
  Code: zod_1.z.number().int(),
8
8
  Message: zod_1.z.string(),
9
9
  CustomErrorCode: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2)]),
10
10
  });
11
- var Roblox_Web_Assets_IAssetResponseItemV2 = zod_1.z.object({
11
+ const Roblox_Web_Assets_IAssetResponseItemV2 = zod_1.z.object({
12
12
  Locations: zod_1.z.array(Roblox_Web_Assets_AssetFormatLocation),
13
13
  Errors: zod_1.z.array(Roblox_Web_Assets_IAssetItemError),
14
14
  RequestId: zod_1.z.string(),
@@ -17,7 +17,7 @@ var Roblox_Web_Assets_IAssetResponseItemV2 = zod_1.z.object({
17
17
  IsArchived: zod_1.z.boolean(),
18
18
  AssetTypeId: zod_1.z.number().int(),
19
19
  });
20
- var Roblox_Web_Assets_IAssetResponseItem = zod_1.z.object({
20
+ const Roblox_Web_Assets_IAssetResponseItem = zod_1.z.object({
21
21
  Location: zod_1.z.string(),
22
22
  Errors: zod_1.z.array(Roblox_Web_Assets_IAssetItemError),
23
23
  RequestId: zod_1.z.string(),
@@ -25,7 +25,7 @@ var Roblox_Web_Assets_IAssetResponseItem = zod_1.z.object({
25
25
  IsCopyrightProtected: zod_1.z.boolean(),
26
26
  IsArchived: zod_1.z.boolean(),
27
27
  });
28
- var Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z.object({
28
+ const Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z.object({
29
29
  assetName: zod_1.z.string(),
30
30
  assetType: zod_1.z.string(),
31
31
  clientInsert: zod_1.z.boolean(),
@@ -45,12 +45,12 @@ var Roblox_Web_Assets_BatchAssetRequestItem = zod_1.z.object({
45
45
  assetFormat: zod_1.z.string(),
46
46
  'roblox-assetFormat': zod_1.z.string(),
47
47
  });
48
- var schemas = {
49
- Roblox_Web_Assets_AssetFormatLocation: Roblox_Web_Assets_AssetFormatLocation,
50
- Roblox_Web_Assets_IAssetItemError: Roblox_Web_Assets_IAssetItemError,
51
- Roblox_Web_Assets_IAssetResponseItemV2: Roblox_Web_Assets_IAssetResponseItemV2,
52
- Roblox_Web_Assets_IAssetResponseItem: Roblox_Web_Assets_IAssetResponseItem,
53
- Roblox_Web_Assets_BatchAssetRequestItem: Roblox_Web_Assets_BatchAssetRequestItem,
48
+ const schemas = {
49
+ Roblox_Web_Assets_AssetFormatLocation,
50
+ Roblox_Web_Assets_IAssetItemError,
51
+ Roblox_Web_Assets_IAssetResponseItemV2,
52
+ Roblox_Web_Assets_IAssetResponseItem,
53
+ Roblox_Web_Assets_BatchAssetRequestItem,
54
54
  };
55
55
  /**
56
56
  * @api get https://assetdelivery.roblox.com/v2/alias/:alias
@@ -73,6 +73,53 @@ exports.getAliasAlias = {
73
73
  path: '/v2/alias/:alias',
74
74
  baseUrl: 'https://assetdelivery.roblox.com',
75
75
  requestFormat: 'json',
76
+ serializationMethod: {
77
+ alias: {
78
+ style: 'simple',
79
+ },
80
+ 'Accept-Encoding': {
81
+ style: 'simple',
82
+ },
83
+ 'Roblox-Place-Id': {
84
+ style: 'simple',
85
+ },
86
+ AssetType: {
87
+ style: 'simple',
88
+ },
89
+ Accept: {
90
+ style: 'simple',
91
+ },
92
+ AssetFormat: {
93
+ style: 'simple',
94
+ },
95
+ 'Roblox-AssetFormat': {
96
+ style: 'simple',
97
+ },
98
+ skipSigningScripts: {
99
+ style: 'form',
100
+ explode: true,
101
+ },
102
+ clientInsert: {
103
+ style: 'form',
104
+ explode: true,
105
+ },
106
+ scriptinsert: {
107
+ style: 'form',
108
+ explode: true,
109
+ },
110
+ modulePlaceId: {
111
+ style: 'form',
112
+ explode: true,
113
+ },
114
+ serverplaceid: {
115
+ style: 'form',
116
+ explode: true,
117
+ },
118
+ expectedAssetType: {
119
+ style: 'form',
120
+ explode: true,
121
+ },
122
+ },
76
123
  parameters: {
77
124
  alias: zod_1.z.string().regex(/^[0-9]+\\/),
78
125
  'Accept-Encoding': zod_1.z.string(),
@@ -121,6 +168,90 @@ exports.getAsset = {
121
168
  path: '/v2/asset',
122
169
  baseUrl: 'https://assetdelivery.roblox.com',
123
170
  requestFormat: 'json',
171
+ serializationMethod: {
172
+ 'Accept-Encoding': {
173
+ style: 'simple',
174
+ },
175
+ 'Roblox-Place-Id': {
176
+ style: 'simple',
177
+ },
178
+ AssetType: {
179
+ style: 'simple',
180
+ },
181
+ Accept: {
182
+ style: 'simple',
183
+ },
184
+ AssetFormat: {
185
+ style: 'simple',
186
+ },
187
+ 'Roblox-AssetFormat': {
188
+ style: 'simple',
189
+ },
190
+ id: {
191
+ style: 'form',
192
+ explode: true,
193
+ },
194
+ userAssetId: {
195
+ style: 'form',
196
+ explode: true,
197
+ },
198
+ assetVersionId: {
199
+ style: 'form',
200
+ explode: true,
201
+ },
202
+ version: {
203
+ style: 'form',
204
+ explode: true,
205
+ },
206
+ universeId: {
207
+ style: 'form',
208
+ explode: true,
209
+ },
210
+ clientInsert: {
211
+ style: 'form',
212
+ explode: true,
213
+ },
214
+ scriptinsert: {
215
+ style: 'form',
216
+ explode: true,
217
+ },
218
+ modulePlaceId: {
219
+ style: 'form',
220
+ explode: true,
221
+ },
222
+ serverplaceid: {
223
+ style: 'form',
224
+ explode: true,
225
+ },
226
+ assetName: {
227
+ style: 'form',
228
+ explode: true,
229
+ },
230
+ hash: {
231
+ style: 'form',
232
+ explode: true,
233
+ },
234
+ marAssetHash: {
235
+ style: 'form',
236
+ explode: true,
237
+ },
238
+ marCheckSum: {
239
+ style: 'form',
240
+ explode: true,
241
+ },
242
+ expectedAssetType: {
243
+ style: 'form',
244
+ explode: true,
245
+ },
246
+ skipSigningScripts: {
247
+ style: 'form',
248
+ explode: true,
249
+ },
250
+ permissionContext: {
251
+ style: 'form',
252
+ explode: true,
253
+ },
254
+ },
124
255
  parameters: {
125
256
  'Accept-Encoding': zod_1.z.string(),
126
257
  'Roblox-Place-Id': zod_1.z.number().int(),
@@ -169,6 +300,53 @@ exports.getAssethashHash = {
169
300
  path: '/v2/assetHash/:hash',
170
301
  baseUrl: 'https://assetdelivery.roblox.com',
171
302
  requestFormat: 'json',
303
+ serializationMethod: {
304
+ hash: {
305
+ style: 'simple',
306
+ },
307
+ 'Accept-Encoding': {
308
+ style: 'simple',
309
+ },
310
+ 'Roblox-Place-Id': {
311
+ style: 'simple',
312
+ },
313
+ AssetType: {
314
+ style: 'simple',
315
+ },
316
+ Accept: {
317
+ style: 'simple',
318
+ },
319
+ AssetFormat: {
320
+ style: 'simple',
321
+ },
322
+ 'Roblox-AssetFormat': {
323
+ style: 'simple',
324
+ },
325
+ skipSigningScripts: {
326
+ style: 'form',
327
+ explode: true,
328
+ },
329
+ clientInsert: {
330
+ style: 'form',
331
+ explode: true,
332
+ },
333
+ scriptinsert: {
334
+ style: 'form',
335
+ explode: true,
336
+ },
337
+ modulePlaceId: {
338
+ style: 'form',
339
+ explode: true,
340
+ },
341
+ serverplaceid: {
342
+ style: 'form',
343
+ explode: true,
344
+ },
345
+ expectedAssetType: {
346
+ style: 'form',
347
+ explode: true,
348
+ },
349
+ },
172
350
  parameters: {
173
351
  hash: zod_1.z.string(),
174
352
  'Accept-Encoding': zod_1.z.string(),
@@ -208,6 +386,53 @@ exports.getAssetidAssetid = {
208
386
  path: '/v2/assetId/:assetId',
209
387
  baseUrl: 'https://assetdelivery.roblox.com',
210
388
  requestFormat: 'json',
389
+ serializationMethod: {
390
+ assetId: {
391
+ style: 'simple',
392
+ },
393
+ 'Accept-Encoding': {
394
+ style: 'simple',
395
+ },
396
+ 'Roblox-Place-Id': {
397
+ style: 'simple',
398
+ },
399
+ AssetType: {
400
+ style: 'simple',
401
+ },
402
+ Accept: {
403
+ style: 'simple',
404
+ },
405
+ AssetFormat: {
406
+ style: 'simple',
407
+ },
408
+ 'Roblox-AssetFormat': {
409
+ style: 'simple',
410
+ },
411
+ skipSigningScripts: {
412
+ style: 'form',
413
+ explode: true,
414
+ },
415
+ clientInsert: {
416
+ style: 'form',
417
+ explode: true,
418
+ },
419
+ scriptinsert: {
420
+ style: 'form',
421
+ explode: true,
422
+ },
423
+ modulePlaceId: {
424
+ style: 'form',
425
+ explode: true,
426
+ },
427
+ serverplaceid: {
428
+ style: 'form',
429
+ explode: true,
430
+ },
431
+ expectedAssetType: {
432
+ style: 'form',
433
+ explode: true,
434
+ },
435
+ },
211
436
  parameters: {
212
437
  assetId: zod_1.z.number().int(),
213
438
  'Accept-Encoding': zod_1.z.string(),
@@ -248,6 +473,56 @@ exports.getAssetidAssetidVersionVersion = {
248
473
  path: '/v2/assetId/:assetId/version/:version',
249
474
  baseUrl: 'https://assetdelivery.roblox.com',
250
475
  requestFormat: 'json',
476
+ serializationMethod: {
477
+ assetId: {
478
+ style: 'simple',
479
+ },
480
+ version: {
481
+ style: 'simple',
482
+ },
483
+ 'Accept-Encoding': {
484
+ style: 'simple',
485
+ },
486
+ 'Roblox-Place-Id': {
487
+ style: 'simple',
488
+ },
489
+ AssetType: {
490
+ style: 'simple',
491
+ },
492
+ Accept: {
493
+ style: 'simple',
494
+ },
495
+ AssetFormat: {
496
+ style: 'simple',
497
+ },
498
+ 'Roblox-AssetFormat': {
499
+ style: 'simple',
500
+ },
501
+ skipSigningScripts: {
502
+ style: 'form',
503
+ explode: true,
504
+ },
505
+ clientInsert: {
506
+ style: 'form',
507
+ explode: true,
508
+ },
509
+ scriptinsert: {
510
+ style: 'form',
511
+ explode: true,
512
+ },
513
+ modulePlaceId: {
514
+ style: 'form',
515
+ explode: true,
516
+ },
517
+ serverplaceid: {
518
+ style: 'form',
519
+ explode: true,
520
+ },
521
+ expectedAssetType: {
522
+ style: 'form',
523
+ explode: true,
524
+ },
525
+ },
251
526
  parameters: {
252
527
  assetId: zod_1.z.number().int(),
253
528
  version: zod_1.z.number().int(),
@@ -279,6 +554,18 @@ exports.postAssetsBatch = {
279
554
  path: '/v2/assets/batch',
280
555
  baseUrl: 'https://assetdelivery.roblox.com',
281
556
  requestFormat: 'json',
557
+ serializationMethod: {
558
+ body: {},
559
+ 'Roblox-Place-Id': {
560
+ style: 'simple',
561
+ },
562
+ Accept: {
563
+ style: 'simple',
564
+ },
565
+ 'Roblox-Browser-Asset-Request': {
566
+ style: 'simple',
567
+ },
568
+ },
282
569
  parameters: {
283
570
  body: zod_1.z.array(Roblox_Web_Assets_BatchAssetRequestItem),
284
571
  'Roblox-Place-Id': zod_1.z.number().int(),
@@ -309,6 +596,53 @@ exports.getAssetversionidAssetversionid = {
309
596
  path: '/v2/assetVersionId/:assetVersionId',
310
597
  baseUrl: 'https://assetdelivery.roblox.com',
311
598
  requestFormat: 'json',
599
+ serializationMethod: {
600
+ assetVersionId: {
601
+ style: 'simple',
602
+ },
603
+ 'Accept-Encoding': {
604
+ style: 'simple',
605
+ },
606
+ 'Roblox-Place-Id': {
607
+ style: 'simple',
608
+ },
609
+ AssetType: {
610
+ style: 'simple',
611
+ },
612
+ Accept: {
613
+ style: 'simple',
614
+ },
615
+ AssetFormat: {
616
+ style: 'simple',
617
+ },
618
+ 'Roblox-AssetFormat': {
619
+ style: 'simple',
620
+ },
621
+ skipSigningScripts: {
622
+ style: 'form',
623
+ explode: true,
624
+ },
625
+ clientInsert: {
626
+ style: 'form',
627
+ explode: true,
628
+ },
629
+ scriptinsert: {
630
+ style: 'form',
631
+ explode: true,
632
+ },
633
+ modulePlaceId: {
634
+ style: 'form',
635
+ explode: true,
636
+ },
637
+ serverplaceid: {
638
+ style: 'form',
639
+ explode: true,
640
+ },
641
+ expectedAssetType: {
642
+ style: 'form',
643
+ explode: true,
644
+ },
645
+ },
312
646
  parameters: {
313
647
  assetVersionId: zod_1.z.number().int(),
314
648
  'Accept-Encoding': zod_1.z.string(),
@@ -349,6 +683,56 @@ exports.getMarassethashMarassethashMarchecksumMarchecksum = {
349
683
  path: '/v2/marAssetHash/:marAssetHash/marCheckSum/:marCheckSum',
350
684
  baseUrl: 'https://assetdelivery.roblox.com',
351
685
  requestFormat: 'json',
686
+ serializationMethod: {
687
+ marAssetHash: {
688
+ style: 'simple',
689
+ },
690
+ marCheckSum: {
691
+ style: 'simple',
692
+ },
693
+ 'Accept-Encoding': {
694
+ style: 'simple',
695
+ },
696
+ 'Roblox-Place-Id': {
697
+ style: 'simple',
698
+ },
699
+ AssetType: {
700
+ style: 'simple',
701
+ },
702
+ Accept: {
703
+ style: 'simple',
704
+ },
705
+ AssetFormat: {
706
+ style: 'simple',
707
+ },
708
+ 'Roblox-AssetFormat': {
709
+ style: 'simple',
710
+ },
711
+ skipSigningScripts: {
712
+ style: 'form',
713
+ explode: true,
714
+ },
715
+ clientInsert: {
716
+ style: 'form',
717
+ explode: true,
718
+ },
719
+ scriptinsert: {
720
+ style: 'form',
721
+ explode: true,
722
+ },
723
+ modulePlaceId: {
724
+ style: 'form',
725
+ explode: true,
726
+ },
727
+ serverplaceid: {
728
+ style: 'form',
729
+ explode: true,
730
+ },
731
+ expectedAssetType: {
732
+ style: 'form',
733
+ explode: true,
734
+ },
735
+ },
352
736
  parameters: {
353
737
  marAssetHash: zod_1.z.string(),
354
738
  marCheckSum: zod_1.z.string(),
@@ -389,6 +773,53 @@ exports.getUserassetidUserassetid = {
389
773
  path: '/v2/userAssetId/:userAssetId',
390
774
  baseUrl: 'https://assetdelivery.roblox.com',
391
775
  requestFormat: 'json',
776
+ serializationMethod: {
777
+ userAssetId: {
778
+ style: 'simple',
779
+ },
780
+ 'Accept-Encoding': {
781
+ style: 'simple',
782
+ },
783
+ 'Roblox-Place-Id': {
784
+ style: 'simple',
785
+ },
786
+ AssetType: {
787
+ style: 'simple',
788
+ },
789
+ Accept: {
790
+ style: 'simple',
791
+ },
792
+ AssetFormat: {
793
+ style: 'simple',
794
+ },
795
+ 'Roblox-AssetFormat': {
796
+ style: 'simple',
797
+ },
798
+ skipSigningScripts: {
799
+ style: 'form',
800
+ explode: true,
801
+ },
802
+ clientInsert: {
803
+ style: 'form',
804
+ explode: true,
805
+ },
806
+ scriptinsert: {
807
+ style: 'form',
808
+ explode: true,
809
+ },
810
+ modulePlaceId: {
811
+ style: 'form',
812
+ explode: true,
813
+ },
814
+ serverplaceid: {
815
+ style: 'form',
816
+ explode: true,
817
+ },
818
+ expectedAssetType: {
819
+ style: 'form',
820
+ explode: true,
821
+ },
822
+ },
392
823
  parameters: {
393
824
  userAssetId: zod_1.z.number().int(),
394
825
  'Accept-Encoding': zod_1.z.string(),