@valpro-labs/valorant-api 1.0.1 → 1.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.
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/endpoints/AgentsEndpoints.d.ts +1 -161
- package/dist/endpoints/AgentsEndpoints.js +6 -66
- package/dist/endpoints/BuddiesEndpoints.d.ts +1 -45
- package/dist/endpoints/BuddiesEndpoints.js +1 -19
- package/dist/endpoints/BundlesEndpoints.d.ts +1 -29
- package/dist/endpoints/BundlesEndpoints.js +1 -16
- package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +1 -50
- package/dist/endpoints/CompetitiveTiersEndpoints.js +1 -21
- package/dist/endpoints/ContentTierEndpoints.d.ts +1 -25
- package/dist/endpoints/ContentTierEndpoints.js +1 -14
- package/dist/endpoints/ContractsEndpoints.d.ts +1 -152
- package/dist/endpoints/ContractsEndpoints.js +1 -40
- package/dist/endpoints/CurrenciesEndpoints.d.ts +1 -21
- package/dist/endpoints/CurrenciesEndpoints.js +1 -12
- package/dist/endpoints/EventsEndpoints.d.ts +1 -19
- package/dist/endpoints/EventsEndpoints.js +1 -11
- package/dist/endpoints/FlexEndpoints.d.ts +1 -17
- package/dist/endpoints/FlexEndpoints.js +1 -11
- package/dist/endpoints/GameModesEndpoints.d.ts +1 -63
- package/dist/endpoints/GameModesEndpoints.js +1 -31
- package/dist/endpoints/LevelBordersEndpoints.d.ts +1 -21
- package/dist/endpoints/LevelBordersEndpoints.js +0 -11
- package/dist/endpoints/MapsEndpoints.d.ts +1 -120
- package/dist/endpoints/MapsEndpoints.js +1 -47
- package/dist/endpoints/MissionsEndpoints.d.ts +1 -38
- package/dist/endpoints/MissionsEndpoints.js +1 -20
- package/dist/endpoints/ObjectivesEndpoints.d.ts +1 -13
- package/dist/endpoints/ObjectivesEndpoints.js +1 -8
- package/dist/endpoints/PlayerCardsEndpoints.d.ts +1 -25
- package/dist/endpoints/PlayerCardsEndpoints.js +1 -14
- package/dist/endpoints/PlayerTitlesEndpoints.d.ts +1 -17
- package/dist/endpoints/PlayerTitlesEndpoints.js +1 -10
- package/dist/endpoints/SeasonsEndpoints.d.ts +1 -23
- package/dist/endpoints/SeasonsEndpoints.js +1 -13
- package/dist/endpoints/SpraysEndpoints.d.ts +1 -51
- package/dist/endpoints/SpraysEndpoints.js +1 -24
- package/dist/endpoints/VersionEndpoint.d.ts +1 -12
- package/dist/endpoints/VersionEndpoint.js +1 -12
- package/dist/endpoints/WeaponsEndpoints.d.ts +1 -302
- package/dist/endpoints/WeaponsEndpoints.js +1 -99
- package/dist/endpoints/index.d.ts +21 -0
- package/dist/endpoints/index.js +37 -0
- package/dist/index.d.ts +2 -22
- package/dist/index.js +2 -22
- package/dist/schemas/AgentSchemas.d.ts +161 -0
- package/dist/schemas/AgentSchemas.js +65 -0
- package/dist/schemas/BuddySchemas.d.ts +45 -0
- package/dist/schemas/BuddySchemas.js +21 -0
- package/dist/schemas/BundleSchemas.d.ts +29 -0
- package/dist/schemas/BundleSchemas.js +18 -0
- package/dist/schemas/CompetitiveTierSchemas.d.ts +50 -0
- package/dist/schemas/CompetitiveTierSchemas.js +23 -0
- package/dist/schemas/ContentTierSchemas.d.ts +25 -0
- package/dist/schemas/ContentTierSchemas.js +16 -0
- package/dist/schemas/ContractSchemas.d.ts +152 -0
- package/dist/schemas/ContractSchemas.js +42 -0
- package/dist/schemas/CurrencySchemas.d.ts +21 -0
- package/dist/schemas/CurrencySchemas.js +14 -0
- package/dist/schemas/EventSchemas.d.ts +19 -0
- package/dist/schemas/EventSchemas.js +13 -0
- package/dist/schemas/FlexSchemas.d.ts +17 -0
- package/dist/schemas/FlexSchemas.js +13 -0
- package/dist/schemas/GameModeSchemas.d.ts +63 -0
- package/dist/schemas/GameModeSchemas.js +33 -0
- package/dist/schemas/LevelBorderSchemas.d.ts +21 -0
- package/dist/schemas/LevelBorderSchemas.js +14 -0
- package/dist/schemas/MapSchemas.d.ts +120 -0
- package/dist/schemas/MapSchemas.js +49 -0
- package/dist/schemas/MissionSchemas.d.ts +38 -0
- package/dist/schemas/MissionSchemas.js +22 -0
- package/dist/schemas/ObjectiveSchemas.d.ts +13 -0
- package/dist/schemas/ObjectiveSchemas.js +10 -0
- package/dist/schemas/PlayerCardSchemas.d.ts +25 -0
- package/dist/schemas/PlayerCardSchemas.js +16 -0
- package/dist/schemas/PlayerTitleSchemas.d.ts +17 -0
- package/dist/schemas/PlayerTitleSchemas.js +12 -0
- package/dist/schemas/SeasonSchemas.d.ts +23 -0
- package/dist/schemas/SeasonSchemas.js +15 -0
- package/dist/schemas/SpraySchemas.d.ts +51 -0
- package/dist/schemas/SpraySchemas.js +26 -0
- package/dist/schemas/VersionSchemas.d.ts +12 -0
- package/dist/schemas/VersionSchemas.js +14 -0
- package/dist/schemas/WeaponSchemas.d.ts +302 -0
- package/dist/schemas/WeaponSchemas.js +101 -0
- package/dist/schemas/index.d.ts +21 -0
- package/dist/schemas/index.js +37 -0
- package/package.json +40 -40
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AdsStatsSchema: z.ZodObject<{
|
|
3
|
+
zoomMultiplier: z.ZodNumber;
|
|
4
|
+
fireRate: z.ZodNumber;
|
|
5
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
6
|
+
burstCount: z.ZodNumber;
|
|
7
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type AdsStatsResponse = z.infer<typeof AdsStatsSchema>;
|
|
10
|
+
export declare const AltShotgunStatsSchema: z.ZodObject<{
|
|
11
|
+
shotgunPelletCount: z.ZodNumber;
|
|
12
|
+
burstRate: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type AltShotgunStatsResponse = z.infer<typeof AltShotgunStatsSchema>;
|
|
15
|
+
export declare const AirBurstStatsSchema: z.ZodObject<{
|
|
16
|
+
shotgunPelletCount: z.ZodNumber;
|
|
17
|
+
burstDistance: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type AirBurstStatsResponse = z.infer<typeof AirBurstStatsSchema>;
|
|
20
|
+
export declare const DamageRangeSchema: z.ZodObject<{
|
|
21
|
+
rangeStartMeters: z.ZodNumber;
|
|
22
|
+
rangeEndMeters: z.ZodNumber;
|
|
23
|
+
headDamage: z.ZodNumber;
|
|
24
|
+
bodyDamage: z.ZodNumber;
|
|
25
|
+
legDamage: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type DamageRangeResponse = z.infer<typeof DamageRangeSchema>;
|
|
28
|
+
export declare const WeaponStatsSchema: z.ZodObject<{
|
|
29
|
+
fireRate: z.ZodNumber;
|
|
30
|
+
magazineSize: z.ZodNumber;
|
|
31
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
32
|
+
equipTimeSeconds: z.ZodNumber;
|
|
33
|
+
reloadTimeSeconds: z.ZodNumber;
|
|
34
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
35
|
+
shotgunPelletCount: z.ZodNumber;
|
|
36
|
+
wallPenetration: z.ZodString;
|
|
37
|
+
feature: z.ZodString;
|
|
38
|
+
fireMode: z.ZodString;
|
|
39
|
+
altFireType: z.ZodString;
|
|
40
|
+
adsStats: z.ZodObject<{
|
|
41
|
+
zoomMultiplier: z.ZodNumber;
|
|
42
|
+
fireRate: z.ZodNumber;
|
|
43
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
44
|
+
burstCount: z.ZodNumber;
|
|
45
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
altShotgunStats: z.ZodObject<{
|
|
48
|
+
shotgunPelletCount: z.ZodNumber;
|
|
49
|
+
burstRate: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
airBurstStats: z.ZodObject<{
|
|
52
|
+
shotgunPelletCount: z.ZodNumber;
|
|
53
|
+
burstDistance: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
damageRanges: z.ZodArray<z.ZodObject<{
|
|
56
|
+
rangeStartMeters: z.ZodNumber;
|
|
57
|
+
rangeEndMeters: z.ZodNumber;
|
|
58
|
+
headDamage: z.ZodNumber;
|
|
59
|
+
bodyDamage: z.ZodNumber;
|
|
60
|
+
legDamage: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type WeaponStatsResponse = z.infer<typeof WeaponStatsSchema>;
|
|
64
|
+
export declare const GridPositionSchema: z.ZodObject<{
|
|
65
|
+
row: z.ZodNumber;
|
|
66
|
+
column: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type GridPositionResponse = z.infer<typeof GridPositionSchema>;
|
|
69
|
+
export declare const ShopDataSchema: z.ZodObject<{
|
|
70
|
+
cost: z.ZodNumber;
|
|
71
|
+
category: z.ZodString;
|
|
72
|
+
shopOrderPriority: z.ZodNumber;
|
|
73
|
+
categoryText: z.ZodString;
|
|
74
|
+
gridPosition: z.ZodObject<{
|
|
75
|
+
row: z.ZodNumber;
|
|
76
|
+
column: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
canBeTrashed: z.ZodBoolean;
|
|
79
|
+
image: z.ZodString;
|
|
80
|
+
newImage: z.ZodString;
|
|
81
|
+
newImage2: z.ZodString;
|
|
82
|
+
assetPath: z.ZodString;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type ShopDataResponse = z.infer<typeof ShopDataSchema>;
|
|
85
|
+
export declare const ChromaSchema: z.ZodObject<{
|
|
86
|
+
uuid: z.ZodString;
|
|
87
|
+
displayName: z.ZodString;
|
|
88
|
+
displayIcon: z.ZodString;
|
|
89
|
+
fullRender: z.ZodString;
|
|
90
|
+
swatch: z.ZodString;
|
|
91
|
+
streamedVideo: z.ZodString;
|
|
92
|
+
assetPath: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type ChromaResponse = z.infer<typeof ChromaSchema>;
|
|
95
|
+
export declare const LevelSchema: z.ZodObject<{
|
|
96
|
+
uuid: z.ZodString;
|
|
97
|
+
displayName: z.ZodString;
|
|
98
|
+
levelItem: z.ZodString;
|
|
99
|
+
displayIcon: z.ZodString;
|
|
100
|
+
streamedVideo: z.ZodString;
|
|
101
|
+
assetPath: z.ZodString;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type LevelResponse = z.infer<typeof LevelSchema>;
|
|
104
|
+
export declare const SkinSchema: z.ZodObject<{
|
|
105
|
+
uuid: z.ZodString;
|
|
106
|
+
displayName: z.ZodString;
|
|
107
|
+
themeUuid: z.ZodString;
|
|
108
|
+
contentTierUuid: z.ZodString;
|
|
109
|
+
displayIcon: z.ZodString;
|
|
110
|
+
wallpaper: z.ZodString;
|
|
111
|
+
assetPath: z.ZodString;
|
|
112
|
+
chromas: z.ZodArray<z.ZodObject<{
|
|
113
|
+
uuid: z.ZodString;
|
|
114
|
+
displayName: z.ZodString;
|
|
115
|
+
displayIcon: z.ZodString;
|
|
116
|
+
fullRender: z.ZodString;
|
|
117
|
+
swatch: z.ZodString;
|
|
118
|
+
streamedVideo: z.ZodString;
|
|
119
|
+
assetPath: z.ZodString;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
122
|
+
uuid: z.ZodString;
|
|
123
|
+
displayName: z.ZodString;
|
|
124
|
+
levelItem: z.ZodString;
|
|
125
|
+
displayIcon: z.ZodString;
|
|
126
|
+
streamedVideo: z.ZodString;
|
|
127
|
+
assetPath: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type SkinResponse = z.infer<typeof SkinSchema>;
|
|
131
|
+
export declare const WeaponSchema: z.ZodObject<{
|
|
132
|
+
uuid: z.ZodString;
|
|
133
|
+
displayName: z.ZodString;
|
|
134
|
+
category: z.ZodString;
|
|
135
|
+
defaultSkinUuid: z.ZodString;
|
|
136
|
+
displayIcon: z.ZodString;
|
|
137
|
+
killStreamIcon: z.ZodString;
|
|
138
|
+
assetPath: z.ZodString;
|
|
139
|
+
weaponStats: z.ZodObject<{
|
|
140
|
+
fireRate: z.ZodNumber;
|
|
141
|
+
magazineSize: z.ZodNumber;
|
|
142
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
143
|
+
equipTimeSeconds: z.ZodNumber;
|
|
144
|
+
reloadTimeSeconds: z.ZodNumber;
|
|
145
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
146
|
+
shotgunPelletCount: z.ZodNumber;
|
|
147
|
+
wallPenetration: z.ZodString;
|
|
148
|
+
feature: z.ZodString;
|
|
149
|
+
fireMode: z.ZodString;
|
|
150
|
+
altFireType: z.ZodString;
|
|
151
|
+
adsStats: z.ZodObject<{
|
|
152
|
+
zoomMultiplier: z.ZodNumber;
|
|
153
|
+
fireRate: z.ZodNumber;
|
|
154
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
155
|
+
burstCount: z.ZodNumber;
|
|
156
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
altShotgunStats: z.ZodObject<{
|
|
159
|
+
shotgunPelletCount: z.ZodNumber;
|
|
160
|
+
burstRate: z.ZodNumber;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
airBurstStats: z.ZodObject<{
|
|
163
|
+
shotgunPelletCount: z.ZodNumber;
|
|
164
|
+
burstDistance: z.ZodNumber;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
damageRanges: z.ZodArray<z.ZodObject<{
|
|
167
|
+
rangeStartMeters: z.ZodNumber;
|
|
168
|
+
rangeEndMeters: z.ZodNumber;
|
|
169
|
+
headDamage: z.ZodNumber;
|
|
170
|
+
bodyDamage: z.ZodNumber;
|
|
171
|
+
legDamage: z.ZodNumber;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
shopData: z.ZodObject<{
|
|
175
|
+
cost: z.ZodNumber;
|
|
176
|
+
category: z.ZodString;
|
|
177
|
+
shopOrderPriority: z.ZodNumber;
|
|
178
|
+
categoryText: z.ZodString;
|
|
179
|
+
gridPosition: z.ZodObject<{
|
|
180
|
+
row: z.ZodNumber;
|
|
181
|
+
column: z.ZodNumber;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
canBeTrashed: z.ZodBoolean;
|
|
184
|
+
image: z.ZodString;
|
|
185
|
+
newImage: z.ZodString;
|
|
186
|
+
newImage2: z.ZodString;
|
|
187
|
+
assetPath: z.ZodString;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
skins: z.ZodArray<z.ZodObject<{
|
|
190
|
+
uuid: z.ZodString;
|
|
191
|
+
displayName: z.ZodString;
|
|
192
|
+
themeUuid: z.ZodString;
|
|
193
|
+
contentTierUuid: z.ZodString;
|
|
194
|
+
displayIcon: z.ZodString;
|
|
195
|
+
wallpaper: z.ZodString;
|
|
196
|
+
assetPath: z.ZodString;
|
|
197
|
+
chromas: z.ZodArray<z.ZodObject<{
|
|
198
|
+
uuid: z.ZodString;
|
|
199
|
+
displayName: z.ZodString;
|
|
200
|
+
displayIcon: z.ZodString;
|
|
201
|
+
fullRender: z.ZodString;
|
|
202
|
+
swatch: z.ZodString;
|
|
203
|
+
streamedVideo: z.ZodString;
|
|
204
|
+
assetPath: z.ZodString;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
207
|
+
uuid: z.ZodString;
|
|
208
|
+
displayName: z.ZodString;
|
|
209
|
+
levelItem: z.ZodString;
|
|
210
|
+
displayIcon: z.ZodString;
|
|
211
|
+
streamedVideo: z.ZodString;
|
|
212
|
+
assetPath: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export type WeaponResponse = z.infer<typeof WeaponSchema>;
|
|
217
|
+
export declare const WeaponsSchema: z.ZodArray<z.ZodObject<{
|
|
218
|
+
uuid: z.ZodString;
|
|
219
|
+
displayName: z.ZodString;
|
|
220
|
+
category: z.ZodString;
|
|
221
|
+
defaultSkinUuid: z.ZodString;
|
|
222
|
+
displayIcon: z.ZodString;
|
|
223
|
+
killStreamIcon: z.ZodString;
|
|
224
|
+
assetPath: z.ZodString;
|
|
225
|
+
weaponStats: z.ZodObject<{
|
|
226
|
+
fireRate: z.ZodNumber;
|
|
227
|
+
magazineSize: z.ZodNumber;
|
|
228
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
229
|
+
equipTimeSeconds: z.ZodNumber;
|
|
230
|
+
reloadTimeSeconds: z.ZodNumber;
|
|
231
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
232
|
+
shotgunPelletCount: z.ZodNumber;
|
|
233
|
+
wallPenetration: z.ZodString;
|
|
234
|
+
feature: z.ZodString;
|
|
235
|
+
fireMode: z.ZodString;
|
|
236
|
+
altFireType: z.ZodString;
|
|
237
|
+
adsStats: z.ZodObject<{
|
|
238
|
+
zoomMultiplier: z.ZodNumber;
|
|
239
|
+
fireRate: z.ZodNumber;
|
|
240
|
+
runSpeedMultiplier: z.ZodNumber;
|
|
241
|
+
burstCount: z.ZodNumber;
|
|
242
|
+
firstBulletAccuracy: z.ZodNumber;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
altShotgunStats: z.ZodObject<{
|
|
245
|
+
shotgunPelletCount: z.ZodNumber;
|
|
246
|
+
burstRate: z.ZodNumber;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
airBurstStats: z.ZodObject<{
|
|
249
|
+
shotgunPelletCount: z.ZodNumber;
|
|
250
|
+
burstDistance: z.ZodNumber;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
damageRanges: z.ZodArray<z.ZodObject<{
|
|
253
|
+
rangeStartMeters: z.ZodNumber;
|
|
254
|
+
rangeEndMeters: z.ZodNumber;
|
|
255
|
+
headDamage: z.ZodNumber;
|
|
256
|
+
bodyDamage: z.ZodNumber;
|
|
257
|
+
legDamage: z.ZodNumber;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
shopData: z.ZodObject<{
|
|
261
|
+
cost: z.ZodNumber;
|
|
262
|
+
category: z.ZodString;
|
|
263
|
+
shopOrderPriority: z.ZodNumber;
|
|
264
|
+
categoryText: z.ZodString;
|
|
265
|
+
gridPosition: z.ZodObject<{
|
|
266
|
+
row: z.ZodNumber;
|
|
267
|
+
column: z.ZodNumber;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
canBeTrashed: z.ZodBoolean;
|
|
270
|
+
image: z.ZodString;
|
|
271
|
+
newImage: z.ZodString;
|
|
272
|
+
newImage2: z.ZodString;
|
|
273
|
+
assetPath: z.ZodString;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
skins: z.ZodArray<z.ZodObject<{
|
|
276
|
+
uuid: z.ZodString;
|
|
277
|
+
displayName: z.ZodString;
|
|
278
|
+
themeUuid: z.ZodString;
|
|
279
|
+
contentTierUuid: z.ZodString;
|
|
280
|
+
displayIcon: z.ZodString;
|
|
281
|
+
wallpaper: z.ZodString;
|
|
282
|
+
assetPath: z.ZodString;
|
|
283
|
+
chromas: z.ZodArray<z.ZodObject<{
|
|
284
|
+
uuid: z.ZodString;
|
|
285
|
+
displayName: z.ZodString;
|
|
286
|
+
displayIcon: z.ZodString;
|
|
287
|
+
fullRender: z.ZodString;
|
|
288
|
+
swatch: z.ZodString;
|
|
289
|
+
streamedVideo: z.ZodString;
|
|
290
|
+
assetPath: z.ZodString;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
293
|
+
uuid: z.ZodString;
|
|
294
|
+
displayName: z.ZodString;
|
|
295
|
+
levelItem: z.ZodString;
|
|
296
|
+
displayIcon: z.ZodString;
|
|
297
|
+
streamedVideo: z.ZodString;
|
|
298
|
+
assetPath: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
export type WeaponsResponse = z.infer<typeof WeaponsSchema>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WeaponsSchema = exports.WeaponSchema = exports.SkinSchema = exports.LevelSchema = exports.ChromaSchema = exports.ShopDataSchema = exports.GridPositionSchema = exports.WeaponStatsSchema = exports.DamageRangeSchema = exports.AirBurstStatsSchema = exports.AltShotgunStatsSchema = exports.AdsStatsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const SharedSchemas_1 = require("./SharedSchemas");
|
|
6
|
+
exports.AdsStatsSchema = zod_1.z.object({
|
|
7
|
+
zoomMultiplier: zod_1.z.number(),
|
|
8
|
+
fireRate: zod_1.z.number(),
|
|
9
|
+
runSpeedMultiplier: zod_1.z.number(),
|
|
10
|
+
burstCount: zod_1.z.number().int(),
|
|
11
|
+
firstBulletAccuracy: zod_1.z.number(),
|
|
12
|
+
});
|
|
13
|
+
exports.AltShotgunStatsSchema = zod_1.z.object({
|
|
14
|
+
shotgunPelletCount: zod_1.z.number().int(),
|
|
15
|
+
burstRate: zod_1.z.number(),
|
|
16
|
+
});
|
|
17
|
+
exports.AirBurstStatsSchema = zod_1.z.object({
|
|
18
|
+
shotgunPelletCount: zod_1.z.number().int(),
|
|
19
|
+
burstDistance: zod_1.z.number(),
|
|
20
|
+
});
|
|
21
|
+
exports.DamageRangeSchema = zod_1.z.object({
|
|
22
|
+
rangeStartMeters: zod_1.z.number(),
|
|
23
|
+
rangeEndMeters: zod_1.z.number(),
|
|
24
|
+
headDamage: zod_1.z.number(),
|
|
25
|
+
bodyDamage: zod_1.z.number(),
|
|
26
|
+
legDamage: zod_1.z.number(),
|
|
27
|
+
});
|
|
28
|
+
exports.WeaponStatsSchema = zod_1.z.object({
|
|
29
|
+
fireRate: zod_1.z.number(),
|
|
30
|
+
magazineSize: zod_1.z.number().int(),
|
|
31
|
+
runSpeedMultiplier: zod_1.z.number(),
|
|
32
|
+
equipTimeSeconds: zod_1.z.number(),
|
|
33
|
+
reloadTimeSeconds: zod_1.z.number(),
|
|
34
|
+
firstBulletAccuracy: zod_1.z.number(),
|
|
35
|
+
shotgunPelletCount: zod_1.z.number().int(),
|
|
36
|
+
wallPenetration: zod_1.z.string(),
|
|
37
|
+
feature: zod_1.z.string(),
|
|
38
|
+
fireMode: zod_1.z.string(),
|
|
39
|
+
altFireType: zod_1.z.string(),
|
|
40
|
+
adsStats: exports.AdsStatsSchema,
|
|
41
|
+
altShotgunStats: exports.AltShotgunStatsSchema,
|
|
42
|
+
airBurstStats: exports.AirBurstStatsSchema,
|
|
43
|
+
damageRanges: zod_1.z.array(exports.DamageRangeSchema),
|
|
44
|
+
});
|
|
45
|
+
exports.GridPositionSchema = zod_1.z.object({
|
|
46
|
+
row: zod_1.z.number().int(),
|
|
47
|
+
column: zod_1.z.number().int(),
|
|
48
|
+
});
|
|
49
|
+
exports.ShopDataSchema = zod_1.z.object({
|
|
50
|
+
cost: zod_1.z.number().int(),
|
|
51
|
+
category: zod_1.z.string(),
|
|
52
|
+
shopOrderPriority: zod_1.z.number().int(),
|
|
53
|
+
categoryText: SharedSchemas_1.LocalizedStringSchema,
|
|
54
|
+
gridPosition: exports.GridPositionSchema,
|
|
55
|
+
canBeTrashed: zod_1.z.boolean(),
|
|
56
|
+
image: zod_1.z.string(),
|
|
57
|
+
newImage: zod_1.z.string(),
|
|
58
|
+
newImage2: zod_1.z.string(),
|
|
59
|
+
assetPath: zod_1.z.string(),
|
|
60
|
+
});
|
|
61
|
+
exports.ChromaSchema = zod_1.z.object({
|
|
62
|
+
uuid: zod_1.z.string().uuid(),
|
|
63
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
64
|
+
displayIcon: zod_1.z.string(),
|
|
65
|
+
fullRender: zod_1.z.string(),
|
|
66
|
+
swatch: zod_1.z.string(),
|
|
67
|
+
streamedVideo: zod_1.z.string(),
|
|
68
|
+
assetPath: zod_1.z.string(),
|
|
69
|
+
});
|
|
70
|
+
exports.LevelSchema = zod_1.z.object({
|
|
71
|
+
uuid: zod_1.z.string().uuid(),
|
|
72
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
73
|
+
levelItem: zod_1.z.string(),
|
|
74
|
+
displayIcon: zod_1.z.string(),
|
|
75
|
+
streamedVideo: zod_1.z.string(),
|
|
76
|
+
assetPath: zod_1.z.string(),
|
|
77
|
+
});
|
|
78
|
+
exports.SkinSchema = zod_1.z.object({
|
|
79
|
+
uuid: zod_1.z.string().uuid(),
|
|
80
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
81
|
+
themeUuid: zod_1.z.string().uuid(),
|
|
82
|
+
contentTierUuid: zod_1.z.string().uuid(),
|
|
83
|
+
displayIcon: zod_1.z.string(),
|
|
84
|
+
wallpaper: zod_1.z.string(),
|
|
85
|
+
assetPath: zod_1.z.string(),
|
|
86
|
+
chromas: zod_1.z.array(exports.ChromaSchema),
|
|
87
|
+
levels: zod_1.z.array(exports.LevelSchema),
|
|
88
|
+
});
|
|
89
|
+
exports.WeaponSchema = zod_1.z.object({
|
|
90
|
+
uuid: zod_1.z.string().uuid(),
|
|
91
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
92
|
+
category: zod_1.z.string(),
|
|
93
|
+
defaultSkinUuid: zod_1.z.string().uuid(),
|
|
94
|
+
displayIcon: zod_1.z.string(),
|
|
95
|
+
killStreamIcon: zod_1.z.string(),
|
|
96
|
+
assetPath: zod_1.z.string(),
|
|
97
|
+
weaponStats: exports.WeaponStatsSchema,
|
|
98
|
+
shopData: exports.ShopDataSchema,
|
|
99
|
+
skins: zod_1.z.array(exports.SkinSchema),
|
|
100
|
+
});
|
|
101
|
+
exports.WeaponsSchema = zod_1.z.array(exports.WeaponSchema);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './AgentSchemas';
|
|
2
|
+
export * from './WeaponSchemas';
|
|
3
|
+
export * from './MapSchemas';
|
|
4
|
+
export * from './ContractSchemas';
|
|
5
|
+
export * from './GameModeSchemas';
|
|
6
|
+
export * from './BuddySchemas';
|
|
7
|
+
export * from './BundleSchemas';
|
|
8
|
+
export * from './CompetitiveTierSchemas';
|
|
9
|
+
export * from './ContentTierSchemas';
|
|
10
|
+
export * from './CurrencySchemas';
|
|
11
|
+
export * from './EventSchemas';
|
|
12
|
+
export * from './FlexSchemas';
|
|
13
|
+
export * from './LevelBorderSchemas';
|
|
14
|
+
export * from './MissionSchemas';
|
|
15
|
+
export * from './ObjectiveSchemas';
|
|
16
|
+
export * from './PlayerCardSchemas';
|
|
17
|
+
export * from './PlayerTitleSchemas';
|
|
18
|
+
export * from './SeasonSchemas';
|
|
19
|
+
export * from './SpraySchemas';
|
|
20
|
+
export * from './VersionSchemas';
|
|
21
|
+
export * from './SharedSchemas';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgentSchemas"), exports);
|
|
18
|
+
__exportStar(require("./WeaponSchemas"), exports);
|
|
19
|
+
__exportStar(require("./MapSchemas"), exports);
|
|
20
|
+
__exportStar(require("./ContractSchemas"), exports);
|
|
21
|
+
__exportStar(require("./GameModeSchemas"), exports);
|
|
22
|
+
__exportStar(require("./BuddySchemas"), exports);
|
|
23
|
+
__exportStar(require("./BundleSchemas"), exports);
|
|
24
|
+
__exportStar(require("./CompetitiveTierSchemas"), exports);
|
|
25
|
+
__exportStar(require("./ContentTierSchemas"), exports);
|
|
26
|
+
__exportStar(require("./CurrencySchemas"), exports);
|
|
27
|
+
__exportStar(require("./EventSchemas"), exports);
|
|
28
|
+
__exportStar(require("./FlexSchemas"), exports);
|
|
29
|
+
__exportStar(require("./LevelBorderSchemas"), exports);
|
|
30
|
+
__exportStar(require("./MissionSchemas"), exports);
|
|
31
|
+
__exportStar(require("./ObjectiveSchemas"), exports);
|
|
32
|
+
__exportStar(require("./PlayerCardSchemas"), exports);
|
|
33
|
+
__exportStar(require("./PlayerTitleSchemas"), exports);
|
|
34
|
+
__exportStar(require("./SeasonSchemas"), exports);
|
|
35
|
+
__exportStar(require("./SpraySchemas"), exports);
|
|
36
|
+
__exportStar(require("./VersionSchemas"), exports);
|
|
37
|
+
__exportStar(require("./SharedSchemas"), exports);
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@valpro-labs/valorant-api",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A typed TypeScript client for Valorant-API",
|
|
5
|
-
"homepage": "https://github.com/valpro-labs/valorant-api#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/valpro-labs/valorant-api/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/valpro-labs/valorant-api.git"
|
|
12
|
-
},
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"keywords": [
|
|
15
|
-
"valorant"
|
|
16
|
-
],
|
|
17
|
-
"author": "rhy3h",
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
|
-
"main": "dist/index.js",
|
|
22
|
-
"types": "dist/index.d.ts",
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsc",
|
|
25
|
-
"prepare": "npm run build",
|
|
26
|
-
"test": "jest"
|
|
27
|
-
},
|
|
28
|
-
"type": "commonjs",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"axios": "^1.13.5",
|
|
31
|
-
"zod": "^4.3.6"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/jest": "^30.0.0",
|
|
35
|
-
"@types/node": "^25.3.0",
|
|
36
|
-
"jest": "^30.2.0",
|
|
37
|
-
"ts-jest": "^29.4.6",
|
|
38
|
-
"typescript": "^5.9.3"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@valpro-labs/valorant-api",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "A typed TypeScript client for Valorant-API",
|
|
5
|
+
"homepage": "https://github.com/valpro-labs/valorant-api#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/valpro-labs/valorant-api/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/valpro-labs/valorant-api.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"valorant"
|
|
16
|
+
],
|
|
17
|
+
"author": "rhy3h",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"types": "dist/index.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc",
|
|
25
|
+
"prepare": "npm run build",
|
|
26
|
+
"test": "jest"
|
|
27
|
+
},
|
|
28
|
+
"type": "commonjs",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"axios": "^1.13.5",
|
|
31
|
+
"zod": "^4.3.6"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/jest": "^30.0.0",
|
|
35
|
+
"@types/node": "^25.3.0",
|
|
36
|
+
"jest": "^30.2.0",
|
|
37
|
+
"ts-jest": "^29.4.6",
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
|
+
}
|
|
40
|
+
}
|