@valpro-labs/valorant-api 1.1.0 → 1.3.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 (105) hide show
  1. package/dist/ValorantApi.d.ts +45 -0
  2. package/dist/ValorantApi.js +48 -0
  3. package/dist/endpoints/AgentsEndpoints.d.ts +13 -0
  4. package/dist/endpoints/AgentsEndpoints.js +13 -0
  5. package/dist/endpoints/BaseEndpoint.d.ts +22 -0
  6. package/dist/endpoints/BaseEndpoint.js +14 -0
  7. package/dist/endpoints/BuddiesEndpoints.d.ts +17 -0
  8. package/dist/endpoints/BuddiesEndpoints.js +17 -0
  9. package/dist/endpoints/BundlesEndpoints.d.ts +12 -0
  10. package/dist/endpoints/BundlesEndpoints.js +12 -0
  11. package/dist/endpoints/CeremoniesEndpoints.d.ts +20 -0
  12. package/dist/endpoints/CeremoniesEndpoints.js +28 -0
  13. package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +12 -0
  14. package/dist/endpoints/CompetitiveTiersEndpoints.js +12 -0
  15. package/dist/endpoints/ContentTierEndpoints.d.ts +12 -0
  16. package/dist/endpoints/ContentTierEndpoints.js +12 -0
  17. package/dist/endpoints/ContractsEndpoints.d.ts +8 -5
  18. package/dist/endpoints/ContractsEndpoints.js +8 -5
  19. package/dist/endpoints/CurrenciesEndpoints.d.ts +12 -0
  20. package/dist/endpoints/CurrenciesEndpoints.js +12 -0
  21. package/dist/endpoints/EventsEndpoints.d.ts +8 -5
  22. package/dist/endpoints/EventsEndpoints.js +8 -5
  23. package/dist/endpoints/FlexEndpoints.d.ts +12 -0
  24. package/dist/endpoints/FlexEndpoints.js +12 -0
  25. package/dist/endpoints/GameModesEndpoints.d.ts +24 -1
  26. package/dist/endpoints/GameModesEndpoints.js +27 -0
  27. package/dist/endpoints/GearEndpoints.d.ts +20 -0
  28. package/dist/endpoints/GearEndpoints.js +28 -0
  29. package/dist/endpoints/LevelBordersEndpoints.d.ts +12 -0
  30. package/dist/endpoints/LevelBordersEndpoints.js +12 -0
  31. package/dist/endpoints/MapsEndpoints.d.ts +12 -0
  32. package/dist/endpoints/MapsEndpoints.js +12 -0
  33. package/dist/endpoints/MissionsEndpoints.d.ts +12 -0
  34. package/dist/endpoints/MissionsEndpoints.js +12 -0
  35. package/dist/endpoints/ObjectivesEndpoints.d.ts +12 -0
  36. package/dist/endpoints/ObjectivesEndpoints.js +12 -0
  37. package/dist/endpoints/PlayerCardsEndpoints.d.ts +12 -0
  38. package/dist/endpoints/PlayerCardsEndpoints.js +12 -0
  39. package/dist/endpoints/PlayerTitlesEndpoints.d.ts +12 -0
  40. package/dist/endpoints/PlayerTitlesEndpoints.js +12 -0
  41. package/dist/endpoints/SeasonsEndpoints.d.ts +20 -6
  42. package/dist/endpoints/SeasonsEndpoints.js +23 -5
  43. package/dist/endpoints/SpraysEndpoints.d.ts +19 -1
  44. package/dist/endpoints/SpraysEndpoints.js +20 -0
  45. package/dist/endpoints/ThemesEndpoints.d.ts +20 -0
  46. package/dist/endpoints/ThemesEndpoints.js +28 -0
  47. package/dist/endpoints/VersionEndpoint.d.ts +7 -0
  48. package/dist/endpoints/VersionEndpoint.js +7 -0
  49. package/dist/endpoints/WeaponsEndpoints.d.ts +36 -1
  50. package/dist/endpoints/WeaponsEndpoints.js +43 -0
  51. package/dist/endpoints/index.d.ts +3 -0
  52. package/dist/endpoints/index.js +3 -0
  53. package/dist/schemas/AgentSchemas.d.ts +14 -0
  54. package/dist/schemas/AgentSchemas.js +7 -0
  55. package/dist/schemas/BuddySchemas.d.ts +8 -0
  56. package/dist/schemas/BuddySchemas.js +4 -0
  57. package/dist/schemas/BundleSchemas.d.ts +6 -0
  58. package/dist/schemas/BundleSchemas.js +3 -0
  59. package/dist/schemas/CeremonySchemas.d.ts +17 -0
  60. package/dist/schemas/CeremonySchemas.js +12 -0
  61. package/dist/schemas/CompetitiveTierSchemas.d.ts +6 -0
  62. package/dist/schemas/CompetitiveTierSchemas.js +3 -0
  63. package/dist/schemas/ContentTierSchemas.d.ts +4 -0
  64. package/dist/schemas/ContentTierSchemas.js +2 -0
  65. package/dist/schemas/ContractSchemas.d.ts +12 -0
  66. package/dist/schemas/ContractSchemas.js +6 -0
  67. package/dist/schemas/CurrencySchemas.d.ts +4 -0
  68. package/dist/schemas/CurrencySchemas.js +2 -0
  69. package/dist/schemas/EventSchemas.d.ts +4 -0
  70. package/dist/schemas/EventSchemas.js +2 -0
  71. package/dist/schemas/FlexSchemas.d.ts +4 -0
  72. package/dist/schemas/FlexSchemas.js +2 -0
  73. package/dist/schemas/GameModeEquippableSchemas.d.ts +23 -0
  74. package/dist/schemas/GameModeEquippableSchemas.js +16 -0
  75. package/dist/schemas/GameModeSchemas.d.ts +8 -0
  76. package/dist/schemas/GameModeSchemas.js +4 -0
  77. package/dist/schemas/GearSchemas.d.ts +69 -0
  78. package/dist/schemas/GearSchemas.js +30 -0
  79. package/dist/schemas/LevelBorderSchemas.d.ts +4 -0
  80. package/dist/schemas/LevelBorderSchemas.js +2 -0
  81. package/dist/schemas/MapSchemas.d.ts +12 -0
  82. package/dist/schemas/MapSchemas.js +6 -0
  83. package/dist/schemas/MissionSchemas.d.ts +6 -0
  84. package/dist/schemas/MissionSchemas.js +3 -0
  85. package/dist/schemas/ObjectiveSchemas.d.ts +4 -0
  86. package/dist/schemas/ObjectiveSchemas.js +2 -0
  87. package/dist/schemas/PlayerCardSchemas.d.ts +4 -0
  88. package/dist/schemas/PlayerCardSchemas.js +2 -0
  89. package/dist/schemas/PlayerTitleSchemas.d.ts +4 -0
  90. package/dist/schemas/PlayerTitleSchemas.js +2 -0
  91. package/dist/schemas/SeasonSchemas.d.ts +53 -0
  92. package/dist/schemas/SeasonSchemas.js +24 -1
  93. package/dist/schemas/SharedSchemas.d.ts +2 -0
  94. package/dist/schemas/SharedSchemas.js +1 -0
  95. package/dist/schemas/SpraySchemas.d.ts +6 -0
  96. package/dist/schemas/SpraySchemas.js +3 -0
  97. package/dist/schemas/ThemeSchemas.d.ts +21 -0
  98. package/dist/schemas/ThemeSchemas.js +14 -0
  99. package/dist/schemas/VersionSchemas.d.ts +2 -0
  100. package/dist/schemas/VersionSchemas.js +1 -0
  101. package/dist/schemas/WeaponSchemas.d.ts +26 -0
  102. package/dist/schemas/WeaponSchemas.js +13 -0
  103. package/dist/schemas/index.d.ts +4 -0
  104. package/dist/schemas/index.js +4 -0
  105. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ /** Schema for a single season. */
2
3
  export declare const SeasonSchema: z.ZodObject<{
3
4
  uuid: z.ZodString;
4
5
  displayName: z.ZodString;
@@ -9,7 +10,9 @@ export declare const SeasonSchema: z.ZodObject<{
9
10
  parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
11
  assetPath: z.ZodString;
11
12
  }, z.core.$strip>;
13
+ /** A single season's data. */
12
14
  export type SeasonResponse = z.infer<typeof SeasonSchema>;
15
+ /** Schema for a list of seasons. */
13
16
  export declare const SeasonsSchema: z.ZodArray<z.ZodObject<{
14
17
  uuid: z.ZodString;
15
18
  displayName: z.ZodString;
@@ -20,4 +23,54 @@ export declare const SeasonsSchema: z.ZodArray<z.ZodObject<{
20
23
  parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
24
  assetPath: z.ZodString;
22
25
  }, z.core.$strip>>;
26
+ /** A list of seasons. */
23
27
  export type SeasonsResponse = z.infer<typeof SeasonsSchema>;
28
+ /** Schema for a single competitive season border. */
29
+ export declare const CompetitiveSeasonBorderSchema: z.ZodObject<{
30
+ uuid: z.ZodString;
31
+ level: z.ZodNumber;
32
+ winsRequired: z.ZodNumber;
33
+ displayIcon: z.ZodNullable<z.ZodString>;
34
+ smallIcon: z.ZodNullable<z.ZodString>;
35
+ assetPath: z.ZodString;
36
+ }, z.core.$strip>;
37
+ /** A single competitive season border's data. */
38
+ export type CompetitiveSeasonBorderResponse = z.infer<typeof CompetitiveSeasonBorderSchema>;
39
+ /** Schema for a single competitive season, including its {@link CompetitiveSeasonBorderResponse | borders}. */
40
+ export declare const CompetitiveSeasonSchema: z.ZodObject<{
41
+ uuid: z.ZodString;
42
+ startTime: z.ZodString;
43
+ endTime: z.ZodString;
44
+ seasonUuid: z.ZodString;
45
+ competitiveTiersUuid: z.ZodString;
46
+ borders: z.ZodNullable<z.ZodArray<z.ZodObject<{
47
+ uuid: z.ZodString;
48
+ level: z.ZodNumber;
49
+ winsRequired: z.ZodNumber;
50
+ displayIcon: z.ZodNullable<z.ZodString>;
51
+ smallIcon: z.ZodNullable<z.ZodString>;
52
+ assetPath: z.ZodString;
53
+ }, z.core.$strip>>>;
54
+ assetPath: z.ZodString;
55
+ }, z.core.$strip>;
56
+ /** A single competitive season's data. */
57
+ export type CompetitiveSeasonResponse = z.infer<typeof CompetitiveSeasonSchema>;
58
+ /** Schema for a list of competitive seasons. */
59
+ export declare const CompetitiveSeasonsSchema: z.ZodArray<z.ZodObject<{
60
+ uuid: z.ZodString;
61
+ startTime: z.ZodString;
62
+ endTime: z.ZodString;
63
+ seasonUuid: z.ZodString;
64
+ competitiveTiersUuid: z.ZodString;
65
+ borders: z.ZodNullable<z.ZodArray<z.ZodObject<{
66
+ uuid: z.ZodString;
67
+ level: z.ZodNumber;
68
+ winsRequired: z.ZodNumber;
69
+ displayIcon: z.ZodNullable<z.ZodString>;
70
+ smallIcon: z.ZodNullable<z.ZodString>;
71
+ assetPath: z.ZodString;
72
+ }, z.core.$strip>>>;
73
+ assetPath: z.ZodString;
74
+ }, z.core.$strip>>;
75
+ /** A list of competitive seasons. */
76
+ export type CompetitiveSeasonsResponse = z.infer<typeof CompetitiveSeasonsSchema>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SeasonsSchema = exports.SeasonSchema = void 0;
3
+ exports.CompetitiveSeasonsSchema = exports.CompetitiveSeasonSchema = exports.CompetitiveSeasonBorderSchema = exports.SeasonsSchema = exports.SeasonSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ /** Schema for a single season. */
5
6
  exports.SeasonSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  displayName: zod_1.z.string(),
@@ -12,4 +13,26 @@ exports.SeasonSchema = zod_1.z.object({
12
13
  parentUuid: zod_1.z.string().uuid().optional().nullable(),
13
14
  assetPath: zod_1.z.string(),
14
15
  });
16
+ /** Schema for a list of seasons. */
15
17
  exports.SeasonsSchema = zod_1.z.array(exports.SeasonSchema);
18
+ /** Schema for a single competitive season border. */
19
+ exports.CompetitiveSeasonBorderSchema = zod_1.z.object({
20
+ uuid: zod_1.z.string().uuid(),
21
+ level: zod_1.z.number().int(),
22
+ winsRequired: zod_1.z.number().int(),
23
+ displayIcon: zod_1.z.string().nullable(),
24
+ smallIcon: zod_1.z.string().nullable(),
25
+ assetPath: zod_1.z.string(),
26
+ });
27
+ /** Schema for a single competitive season, including its {@link CompetitiveSeasonBorderResponse | borders}. */
28
+ exports.CompetitiveSeasonSchema = zod_1.z.object({
29
+ uuid: zod_1.z.string().uuid(),
30
+ startTime: zod_1.z.string(),
31
+ endTime: zod_1.z.string(),
32
+ seasonUuid: zod_1.z.string().uuid(),
33
+ competitiveTiersUuid: zod_1.z.string().uuid(),
34
+ borders: zod_1.z.array(exports.CompetitiveSeasonBorderSchema).nullable(),
35
+ assetPath: zod_1.z.string(),
36
+ });
37
+ /** Schema for a list of competitive seasons. */
38
+ exports.CompetitiveSeasonsSchema = zod_1.z.array(exports.CompetitiveSeasonSchema);
@@ -1,3 +1,5 @@
1
1
  import { z } from 'zod';
2
+ /** Schema for a localized string value. */
2
3
  export declare const LocalizedStringSchema: z.ZodString;
4
+ /** A localized string value. */
3
5
  export type LocalizedStringResponse = z.infer<typeof LocalizedStringSchema>;
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LocalizedStringSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ /** Schema for a localized string value. */
5
6
  exports.LocalizedStringSchema = zod_1.z.string();
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ /** Schema for a single spray level. */
2
3
  export declare const SprayLevelSchema: z.ZodObject<{
3
4
  uuid: z.ZodString;
4
5
  sprayUuid: z.ZodString;
@@ -6,7 +7,9 @@ export declare const SprayLevelSchema: z.ZodObject<{
6
7
  displayIcon: z.ZodNullable<z.ZodString>;
7
8
  assetPath: z.ZodString;
8
9
  }, z.core.$strip>;
10
+ /** A single spray level's data. */
9
11
  export type SprayLevelResponse = z.infer<typeof SprayLevelSchema>;
12
+ /** Schema for a single spray, including its {@link SprayLevelResponse | levels}. */
10
13
  export declare const SpraySchema: z.ZodObject<{
11
14
  uuid: z.ZodString;
12
15
  displayName: z.ZodString;
@@ -27,7 +30,9 @@ export declare const SpraySchema: z.ZodObject<{
27
30
  assetPath: z.ZodString;
28
31
  }, z.core.$strip>>;
29
32
  }, z.core.$strip>;
33
+ /** A single spray's data. */
30
34
  export type SprayResponse = z.infer<typeof SpraySchema>;
35
+ /** Schema for a list of sprays. */
31
36
  export declare const SpraysSchema: z.ZodArray<z.ZodObject<{
32
37
  uuid: z.ZodString;
33
38
  displayName: z.ZodString;
@@ -48,4 +53,5 @@ export declare const SpraysSchema: z.ZodArray<z.ZodObject<{
48
53
  assetPath: z.ZodString;
49
54
  }, z.core.$strip>>;
50
55
  }, z.core.$strip>>;
56
+ /** A list of sprays. */
51
57
  export type SpraysResponse = z.infer<typeof SpraysSchema>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpraysSchema = exports.SpraySchema = exports.SprayLevelSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ /** Schema for a single spray level. */
5
6
  exports.SprayLevelSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  sprayUuid: zod_1.z.string().uuid(),
@@ -9,6 +10,7 @@ exports.SprayLevelSchema = zod_1.z.object({
9
10
  displayIcon: zod_1.z.string().nullable(),
10
11
  assetPath: zod_1.z.string(),
11
12
  });
13
+ /** Schema for a single spray, including its {@link SprayLevelResponse | levels}. */
12
14
  exports.SpraySchema = zod_1.z.object({
13
15
  uuid: zod_1.z.string().uuid(),
14
16
  displayName: zod_1.z.string(),
@@ -23,4 +25,5 @@ exports.SpraySchema = zod_1.z.object({
23
25
  assetPath: zod_1.z.string(),
24
26
  levels: zod_1.z.array(exports.SprayLevelSchema),
25
27
  });
28
+ /** Schema for a list of sprays. */
26
29
  exports.SpraysSchema = zod_1.z.array(exports.SpraySchema);
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ /** Schema for a single theme. */
3
+ export declare const ThemeSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ displayName: z.ZodString;
6
+ displayIcon: z.ZodNullable<z.ZodString>;
7
+ storeFeaturedImage: z.ZodNullable<z.ZodString>;
8
+ assetPath: z.ZodString;
9
+ }, z.core.$strip>;
10
+ /** A single theme's data. */
11
+ export type ThemeResponse = z.infer<typeof ThemeSchema>;
12
+ /** Schema for a list of themes. */
13
+ export declare const ThemesSchema: z.ZodArray<z.ZodObject<{
14
+ uuid: z.ZodString;
15
+ displayName: z.ZodString;
16
+ displayIcon: z.ZodNullable<z.ZodString>;
17
+ storeFeaturedImage: z.ZodNullable<z.ZodString>;
18
+ assetPath: z.ZodString;
19
+ }, z.core.$strip>>;
20
+ /** A list of themes. */
21
+ export type ThemesResponse = z.infer<typeof ThemesSchema>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThemesSchema = exports.ThemeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Schema for a single theme. */
6
+ exports.ThemeSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ displayName: zod_1.z.string(),
9
+ displayIcon: zod_1.z.string().nullable(),
10
+ storeFeaturedImage: zod_1.z.string().nullable(),
11
+ assetPath: zod_1.z.string(),
12
+ });
13
+ /** Schema for a list of themes. */
14
+ exports.ThemesSchema = zod_1.z.array(exports.ThemeSchema);
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ /** Schema for version info. */
2
3
  export declare const VersionSchema: z.ZodObject<{
3
4
  manifestId: z.ZodString;
4
5
  branch: z.ZodString;
@@ -9,4 +10,5 @@ export declare const VersionSchema: z.ZodObject<{
9
10
  riotClientBuild: z.ZodString;
10
11
  buildDate: z.ZodPipe<z.ZodString, z.ZodCoercedDate<string>>;
11
12
  }, z.core.$strip>;
13
+ /** Version info data. */
12
14
  export type VersionResponse = z.infer<typeof VersionSchema>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VersionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ /** Schema for version info. */
5
6
  exports.VersionSchema = zod_1.z.object({
6
7
  manifestId: zod_1.z.string(),
7
8
  branch: zod_1.z.string(),
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ /** Schema for ADS (aim down sights) stats. */
2
3
  export declare const AdsStatsSchema: z.ZodObject<{
3
4
  zoomMultiplier: z.ZodNumber;
4
5
  fireRate: z.ZodNumber;
@@ -6,17 +7,23 @@ export declare const AdsStatsSchema: z.ZodObject<{
6
7
  burstCount: z.ZodNumber;
7
8
  firstBulletAccuracy: z.ZodNumber;
8
9
  }, z.core.$strip>;
10
+ /** ADS stats data. */
9
11
  export type AdsStatsResponse = z.infer<typeof AdsStatsSchema>;
12
+ /** Schema for alternate shotgun stats. */
10
13
  export declare const AltShotgunStatsSchema: z.ZodObject<{
11
14
  shotgunPelletCount: z.ZodNumber;
12
15
  burstRate: z.ZodNumber;
13
16
  }, z.core.$strip>;
17
+ /** Alternate shotgun stats data. */
14
18
  export type AltShotgunStatsResponse = z.infer<typeof AltShotgunStatsSchema>;
19
+ /** Schema for air burst stats. */
15
20
  export declare const AirBurstStatsSchema: z.ZodObject<{
16
21
  shotgunPelletCount: z.ZodNumber;
17
22
  burstDistance: z.ZodNumber;
18
23
  }, z.core.$strip>;
24
+ /** Air burst stats data. */
19
25
  export type AirBurstStatsResponse = z.infer<typeof AirBurstStatsSchema>;
26
+ /** Schema for a single damage range. */
20
27
  export declare const DamageRangeSchema: z.ZodObject<{
21
28
  rangeStartMeters: z.ZodNumber;
22
29
  rangeEndMeters: z.ZodNumber;
@@ -24,7 +31,9 @@ export declare const DamageRangeSchema: z.ZodObject<{
24
31
  bodyDamage: z.ZodNumber;
25
32
  legDamage: z.ZodNumber;
26
33
  }, z.core.$strip>;
34
+ /** A single damage range's data. */
27
35
  export type DamageRangeResponse = z.infer<typeof DamageRangeSchema>;
36
+ /** Schema for weapon stats, including {@link AdsStatsResponse | ADS stats}, {@link AltShotgunStatsResponse | alternate shotgun stats}, {@link AirBurstStatsResponse | air burst stats}, and {@link DamageRangeResponse | damage ranges}. */
28
37
  export declare const WeaponStatsSchema: z.ZodObject<{
29
38
  fireRate: z.ZodNumber;
30
39
  magazineSize: z.ZodNumber;
@@ -60,12 +69,16 @@ export declare const WeaponStatsSchema: z.ZodObject<{
60
69
  legDamage: z.ZodNumber;
61
70
  }, z.core.$strip>>;
62
71
  }, z.core.$strip>;
72
+ /** Weapon stats data. */
63
73
  export type WeaponStatsResponse = z.infer<typeof WeaponStatsSchema>;
74
+ /** Schema for a grid position. */
64
75
  export declare const GridPositionSchema: z.ZodObject<{
65
76
  row: z.ZodNumber;
66
77
  column: z.ZodNumber;
67
78
  }, z.core.$strip>;
79
+ /** A grid position's data. */
68
80
  export type GridPositionResponse = z.infer<typeof GridPositionSchema>;
81
+ /** Schema for shop data, including a {@link GridPositionResponse | grid position}. */
69
82
  export declare const ShopDataSchema: z.ZodObject<{
70
83
  cost: z.ZodNumber;
71
84
  category: z.ZodString;
@@ -81,7 +94,9 @@ export declare const ShopDataSchema: z.ZodObject<{
81
94
  newImage2: z.ZodString;
82
95
  assetPath: z.ZodString;
83
96
  }, z.core.$strip>;
97
+ /** Shop data for a weapon. */
84
98
  export type ShopDataResponse = z.infer<typeof ShopDataSchema>;
99
+ /** Schema for a single skin chroma. */
85
100
  export declare const ChromaSchema: z.ZodObject<{
86
101
  uuid: z.ZodString;
87
102
  displayName: z.ZodString;
@@ -91,7 +106,9 @@ export declare const ChromaSchema: z.ZodObject<{
91
106
  streamedVideo: z.ZodString;
92
107
  assetPath: z.ZodString;
93
108
  }, z.core.$strip>;
109
+ /** A single skin chroma's data. */
94
110
  export type ChromaResponse = z.infer<typeof ChromaSchema>;
111
+ /** Schema for a skin level item type. */
95
112
  export declare const LevelItemSchema: z.ZodEnum<{
96
113
  "EEquippableSkinLevelItem::VFX": "EEquippableSkinLevelItem::VFX";
97
114
  "EEquippableSkinLevelItem::Animation": "EEquippableSkinLevelItem::Animation";
@@ -107,7 +124,9 @@ export declare const LevelItemSchema: z.ZodEnum<{
107
124
  "EEquippableSkinLevelItem::AttackerDefenderSwap": "EEquippableSkinLevelItem::AttackerDefenderSwap";
108
125
  "EEquippableSkinLevelItem::Randomizer": "EEquippableSkinLevelItem::Randomizer";
109
126
  }>;
127
+ /** A skin level item type value. */
110
128
  export type LevelItem = z.infer<typeof LevelItemSchema>;
129
+ /** Schema for a single skin level. */
111
130
  export declare const LevelSchema: z.ZodObject<{
112
131
  uuid: z.ZodString;
113
132
  displayName: z.ZodString;
@@ -130,7 +149,9 @@ export declare const LevelSchema: z.ZodObject<{
130
149
  streamedVideo: z.ZodString;
131
150
  assetPath: z.ZodString;
132
151
  }, z.core.$strip>;
152
+ /** A single skin level's data. */
133
153
  export type LevelResponse = z.infer<typeof LevelSchema>;
154
+ /** Schema for a single weapon skin, including its {@link ChromaResponse | chromas} and {@link LevelResponse | levels}. */
134
155
  export declare const SkinSchema: z.ZodObject<{
135
156
  uuid: z.ZodString;
136
157
  displayName: z.ZodString;
@@ -171,7 +192,9 @@ export declare const SkinSchema: z.ZodObject<{
171
192
  assetPath: z.ZodString;
172
193
  }, z.core.$strip>>;
173
194
  }, z.core.$strip>;
195
+ /** A single weapon skin's data. */
174
196
  export type SkinResponse = z.infer<typeof SkinSchema>;
197
+ /** Schema for a single weapon, including its {@link WeaponStatsResponse | stats}, {@link ShopDataResponse | shop data}, and {@link SkinResponse | skins}. */
175
198
  export declare const WeaponSchema: z.ZodObject<{
176
199
  uuid: z.ZodString;
177
200
  displayName: z.ZodString;
@@ -271,7 +294,9 @@ export declare const WeaponSchema: z.ZodObject<{
271
294
  }, z.core.$strip>>;
272
295
  }, z.core.$strip>>;
273
296
  }, z.core.$strip>;
297
+ /** A single weapon's data. */
274
298
  export type WeaponResponse = z.infer<typeof WeaponSchema>;
299
+ /** Schema for a list of weapons. */
275
300
  export declare const WeaponsSchema: z.ZodArray<z.ZodObject<{
276
301
  uuid: z.ZodString;
277
302
  displayName: z.ZodString;
@@ -371,4 +396,5 @@ export declare const WeaponsSchema: z.ZodArray<z.ZodObject<{
371
396
  }, z.core.$strip>>;
372
397
  }, z.core.$strip>>;
373
398
  }, z.core.$strip>>;
399
+ /** A list of weapons. */
374
400
  export type WeaponsResponse = z.infer<typeof WeaponsSchema>;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WeaponsSchema = exports.WeaponSchema = exports.SkinSchema = exports.LevelSchema = exports.LevelItemSchema = exports.ChromaSchema = exports.ShopDataSchema = exports.GridPositionSchema = exports.WeaponStatsSchema = exports.DamageRangeSchema = exports.AirBurstStatsSchema = exports.AltShotgunStatsSchema = exports.AdsStatsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const SharedSchemas_1 = require("./SharedSchemas");
6
+ /** Schema for ADS (aim down sights) stats. */
6
7
  exports.AdsStatsSchema = zod_1.z.object({
7
8
  zoomMultiplier: zod_1.z.number(),
8
9
  fireRate: zod_1.z.number(),
@@ -10,14 +11,17 @@ exports.AdsStatsSchema = zod_1.z.object({
10
11
  burstCount: zod_1.z.number().int(),
11
12
  firstBulletAccuracy: zod_1.z.number(),
12
13
  });
14
+ /** Schema for alternate shotgun stats. */
13
15
  exports.AltShotgunStatsSchema = zod_1.z.object({
14
16
  shotgunPelletCount: zod_1.z.number().int(),
15
17
  burstRate: zod_1.z.number(),
16
18
  });
19
+ /** Schema for air burst stats. */
17
20
  exports.AirBurstStatsSchema = zod_1.z.object({
18
21
  shotgunPelletCount: zod_1.z.number().int(),
19
22
  burstDistance: zod_1.z.number(),
20
23
  });
24
+ /** Schema for a single damage range. */
21
25
  exports.DamageRangeSchema = zod_1.z.object({
22
26
  rangeStartMeters: zod_1.z.number(),
23
27
  rangeEndMeters: zod_1.z.number(),
@@ -25,6 +29,7 @@ exports.DamageRangeSchema = zod_1.z.object({
25
29
  bodyDamage: zod_1.z.number(),
26
30
  legDamage: zod_1.z.number(),
27
31
  });
32
+ /** Schema for weapon stats, including {@link AdsStatsResponse | ADS stats}, {@link AltShotgunStatsResponse | alternate shotgun stats}, {@link AirBurstStatsResponse | air burst stats}, and {@link DamageRangeResponse | damage ranges}. */
28
33
  exports.WeaponStatsSchema = zod_1.z.object({
29
34
  fireRate: zod_1.z.number(),
30
35
  magazineSize: zod_1.z.number().int(),
@@ -42,10 +47,12 @@ exports.WeaponStatsSchema = zod_1.z.object({
42
47
  airBurstStats: exports.AirBurstStatsSchema,
43
48
  damageRanges: zod_1.z.array(exports.DamageRangeSchema),
44
49
  });
50
+ /** Schema for a grid position. */
45
51
  exports.GridPositionSchema = zod_1.z.object({
46
52
  row: zod_1.z.number().int(),
47
53
  column: zod_1.z.number().int(),
48
54
  });
55
+ /** Schema for shop data, including a {@link GridPositionResponse | grid position}. */
49
56
  exports.ShopDataSchema = zod_1.z.object({
50
57
  cost: zod_1.z.number().int(),
51
58
  category: zod_1.z.string(),
@@ -58,6 +65,7 @@ exports.ShopDataSchema = zod_1.z.object({
58
65
  newImage2: zod_1.z.string(),
59
66
  assetPath: zod_1.z.string(),
60
67
  });
68
+ /** Schema for a single skin chroma. */
61
69
  exports.ChromaSchema = zod_1.z.object({
62
70
  uuid: zod_1.z.string().uuid(),
63
71
  displayName: SharedSchemas_1.LocalizedStringSchema,
@@ -67,6 +75,7 @@ exports.ChromaSchema = zod_1.z.object({
67
75
  streamedVideo: zod_1.z.string(),
68
76
  assetPath: zod_1.z.string(),
69
77
  });
78
+ /** Schema for a skin level item type. */
70
79
  exports.LevelItemSchema = zod_1.z.enum([
71
80
  'EEquippableSkinLevelItem::VFX',
72
81
  'EEquippableSkinLevelItem::Animation',
@@ -82,6 +91,7 @@ exports.LevelItemSchema = zod_1.z.enum([
82
91
  'EEquippableSkinLevelItem::AttackerDefenderSwap',
83
92
  'EEquippableSkinLevelItem::Randomizer',
84
93
  ]);
94
+ /** Schema for a single skin level. */
85
95
  exports.LevelSchema = zod_1.z.object({
86
96
  uuid: zod_1.z.string().uuid(),
87
97
  displayName: SharedSchemas_1.LocalizedStringSchema,
@@ -90,6 +100,7 @@ exports.LevelSchema = zod_1.z.object({
90
100
  streamedVideo: zod_1.z.string(),
91
101
  assetPath: zod_1.z.string(),
92
102
  });
103
+ /** Schema for a single weapon skin, including its {@link ChromaResponse | chromas} and {@link LevelResponse | levels}. */
93
104
  exports.SkinSchema = zod_1.z.object({
94
105
  uuid: zod_1.z.string().uuid(),
95
106
  displayName: SharedSchemas_1.LocalizedStringSchema,
@@ -101,6 +112,7 @@ exports.SkinSchema = zod_1.z.object({
101
112
  chromas: zod_1.z.array(exports.ChromaSchema),
102
113
  levels: zod_1.z.array(exports.LevelSchema),
103
114
  });
115
+ /** Schema for a single weapon, including its {@link WeaponStatsResponse | stats}, {@link ShopDataResponse | shop data}, and {@link SkinResponse | skins}. */
104
116
  exports.WeaponSchema = zod_1.z.object({
105
117
  uuid: zod_1.z.string().uuid(),
106
118
  displayName: SharedSchemas_1.LocalizedStringSchema,
@@ -113,4 +125,5 @@ exports.WeaponSchema = zod_1.z.object({
113
125
  shopData: exports.ShopDataSchema,
114
126
  skins: zod_1.z.array(exports.SkinSchema),
115
127
  });
128
+ /** Schema for a list of weapons. */
116
129
  exports.WeaponsSchema = zod_1.z.array(exports.WeaponSchema);
@@ -1,8 +1,11 @@
1
1
  export * from './AgentSchemas';
2
+ export * from './CeremonySchemas';
3
+ export * from './GearSchemas';
2
4
  export * from './WeaponSchemas';
3
5
  export * from './MapSchemas';
4
6
  export * from './ContractSchemas';
5
7
  export * from './GameModeSchemas';
8
+ export * from './GameModeEquippableSchemas';
6
9
  export * from './BuddySchemas';
7
10
  export * from './BundleSchemas';
8
11
  export * from './CompetitiveTierSchemas';
@@ -18,4 +21,5 @@ export * from './PlayerTitleSchemas';
18
21
  export * from './SeasonSchemas';
19
22
  export * from './SpraySchemas';
20
23
  export * from './VersionSchemas';
24
+ export * from './ThemeSchemas';
21
25
  export * from './SharedSchemas';
@@ -15,10 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AgentSchemas"), exports);
18
+ __exportStar(require("./CeremonySchemas"), exports);
19
+ __exportStar(require("./GearSchemas"), exports);
18
20
  __exportStar(require("./WeaponSchemas"), exports);
19
21
  __exportStar(require("./MapSchemas"), exports);
20
22
  __exportStar(require("./ContractSchemas"), exports);
21
23
  __exportStar(require("./GameModeSchemas"), exports);
24
+ __exportStar(require("./GameModeEquippableSchemas"), exports);
22
25
  __exportStar(require("./BuddySchemas"), exports);
23
26
  __exportStar(require("./BundleSchemas"), exports);
24
27
  __exportStar(require("./CompetitiveTierSchemas"), exports);
@@ -34,4 +37,5 @@ __exportStar(require("./PlayerTitleSchemas"), exports);
34
37
  __exportStar(require("./SeasonSchemas"), exports);
35
38
  __exportStar(require("./SpraySchemas"), exports);
36
39
  __exportStar(require("./VersionSchemas"), exports);
40
+ __exportStar(require("./ThemeSchemas"), exports);
37
41
  __exportStar(require("./SharedSchemas"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valpro-labs/valorant-api",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "A typed TypeScript client for Valorant-API",
5
5
  "homepage": "https://github.com/valpro-labs/valorant-api#readme",
6
6
  "bugs": {