@wardbox/whisper 0.2.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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/client-B7r2KpHz.js +838 -0
  4. package/dist/client-CxR21ld-.cjs +913 -0
  5. package/dist/client-DrrSDGBt.d.cts +181 -0
  6. package/dist/client-DrrSDGBt.d.cts.map +1 -0
  7. package/dist/client-Xu0AwrUw.d.ts +181 -0
  8. package/dist/client-Xu0AwrUw.d.ts.map +1 -0
  9. package/dist/core/index.cjs +15 -0
  10. package/dist/core/index.d.cts +208 -0
  11. package/dist/core/index.d.cts.map +1 -0
  12. package/dist/core/index.d.ts +208 -0
  13. package/dist/core/index.d.ts.map +1 -0
  14. package/dist/core/index.js +2 -0
  15. package/dist/errors-7wdVIL5Y.d.cts +111 -0
  16. package/dist/errors-7wdVIL5Y.d.cts.map +1 -0
  17. package/dist/errors-DofVFslx.d.ts +111 -0
  18. package/dist/errors-DofVFslx.d.ts.map +1 -0
  19. package/dist/index.cjs +8 -0
  20. package/dist/index.d.cts +3 -0
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.js +2 -0
  23. package/dist/lol/index.cjs +436 -0
  24. package/dist/lol/index.d.cts +7232 -0
  25. package/dist/lol/index.d.cts.map +1 -0
  26. package/dist/lol/index.d.ts +7232 -0
  27. package/dist/lol/index.d.ts.map +1 -0
  28. package/dist/lol/index.js +425 -0
  29. package/dist/lor/index.cjs +44 -0
  30. package/dist/lor/index.d.cts +159 -0
  31. package/dist/lor/index.d.cts.map +1 -0
  32. package/dist/lor/index.d.ts +159 -0
  33. package/dist/lor/index.d.ts.map +1 -0
  34. package/dist/lor/index.js +44 -0
  35. package/dist/riftbound/index.cjs +25 -0
  36. package/dist/riftbound/index.d.cts +97 -0
  37. package/dist/riftbound/index.d.cts.map +1 -0
  38. package/dist/riftbound/index.d.ts +97 -0
  39. package/dist/riftbound/index.d.ts.map +1 -0
  40. package/dist/riftbound/index.js +26 -0
  41. package/dist/riot/index.cjs +31 -0
  42. package/dist/riot/index.d.cts +101 -0
  43. package/dist/riot/index.d.cts.map +1 -0
  44. package/dist/riot/index.d.ts +101 -0
  45. package/dist/riot/index.d.ts.map +1 -0
  46. package/dist/riot/index.js +32 -0
  47. package/dist/tft/index.cjs +152 -0
  48. package/dist/tft/index.d.cts +581 -0
  49. package/dist/tft/index.d.cts.map +1 -0
  50. package/dist/tft/index.d.ts +581 -0
  51. package/dist/tft/index.d.ts.map +1 -0
  52. package/dist/tft/index.js +149 -0
  53. package/dist/val/index.cjs +166 -0
  54. package/dist/val/index.d.cts +952 -0
  55. package/dist/val/index.d.cts.map +1 -0
  56. package/dist/val/index.d.ts +952 -0
  57. package/dist/val/index.d.ts.map +1 -0
  58. package/dist/val/index.js +161 -0
  59. package/package.json +137 -0
@@ -0,0 +1,952 @@
1
+ import { i as ValPlatformRoute, r as VAL_PLATFORM, t as WhisperClient } from "../client-DrrSDGBt.cjs";
2
+
3
+ //#region src/types/generated/val.d.ts
4
+ /** All game content available in Valorant for a given locale. */
5
+ interface Content {
6
+ /** Available competitive acts (seasons). */
7
+ acts: ({
8
+ id: string;
9
+ isActive: boolean;
10
+ localizedNames: {
11
+ "ar-AE": string;
12
+ "de-DE": string;
13
+ "en-GB": string;
14
+ "en-US": string;
15
+ "es-ES": string;
16
+ "es-MX": string;
17
+ "fr-FR": string;
18
+ "id-ID": string;
19
+ "it-IT": string;
20
+ "ja-JP": string;
21
+ "ko-KR": string;
22
+ "pl-PL": string;
23
+ "pt-BR": string;
24
+ "ru-RU": string;
25
+ "th-TH": string;
26
+ "tr-TR": string;
27
+ "vi-VN": string;
28
+ "zh-CN": string;
29
+ "zh-TW": string;
30
+ };
31
+ name: string;
32
+ })[];
33
+ /** Available agent characters. */
34
+ characters: ({
35
+ assetName: string;
36
+ assetPath: string;
37
+ id: string;
38
+ localizedNames: {
39
+ "ar-AE": string;
40
+ "de-DE": string;
41
+ "en-GB": string;
42
+ "en-US": string;
43
+ "es-ES": string;
44
+ "es-MX": string;
45
+ "fr-FR": string;
46
+ "id-ID": string;
47
+ "it-IT": string;
48
+ "ja-JP": string;
49
+ "ko-KR": string;
50
+ "pl-PL": string;
51
+ "pt-BR": string;
52
+ "ru-RU": string;
53
+ "th-TH": string;
54
+ "tr-TR": string;
55
+ "vi-VN": string;
56
+ "zh-CN": string;
57
+ "zh-TW": string;
58
+ };
59
+ name: string;
60
+ })[];
61
+ /** Available charm levels. */
62
+ charmLevels: ({
63
+ assetName: string;
64
+ assetPath: string;
65
+ id: string;
66
+ localizedNames: {
67
+ "ar-AE": string;
68
+ "de-DE": string;
69
+ "en-GB": string;
70
+ "en-US": string;
71
+ "es-ES": string;
72
+ "es-MX": string;
73
+ "fr-FR": string;
74
+ "id-ID": string;
75
+ "it-IT": string;
76
+ "ja-JP": string;
77
+ "ko-KR": string;
78
+ "pl-PL": string;
79
+ "pt-BR": string;
80
+ "ru-RU": string;
81
+ "th-TH": string;
82
+ "tr-TR": string;
83
+ "vi-VN": string;
84
+ "zh-CN": string;
85
+ "zh-TW": string;
86
+ };
87
+ name: string;
88
+ })[];
89
+ /** Available charms. */
90
+ charms: ({
91
+ assetName: string;
92
+ assetPath: string;
93
+ id: string;
94
+ localizedNames: {
95
+ "ar-AE": string;
96
+ "de-DE": string;
97
+ "en-GB": string;
98
+ "en-US": string;
99
+ "es-ES": string;
100
+ "es-MX": string;
101
+ "fr-FR": string;
102
+ "id-ID": string;
103
+ "it-IT": string;
104
+ "ja-JP": string;
105
+ "ko-KR": string;
106
+ "pl-PL": string;
107
+ "pt-BR": string;
108
+ "ru-RU": string;
109
+ "th-TH": string;
110
+ "tr-TR": string;
111
+ "vi-VN": string;
112
+ "zh-CN": string;
113
+ "zh-TW": string;
114
+ };
115
+ name: string;
116
+ })[];
117
+ /** Available weapon skin chromas. */
118
+ chromas: ({
119
+ assetName: string;
120
+ assetPath: string;
121
+ id: string;
122
+ localizedNames: {
123
+ "ar-AE": string;
124
+ "de-DE": string;
125
+ "en-GB": string;
126
+ "en-US": string;
127
+ "es-ES": string;
128
+ "es-MX": string;
129
+ "fr-FR": string;
130
+ "id-ID": string;
131
+ "it-IT": string;
132
+ "ja-JP": string;
133
+ "ko-KR": string;
134
+ "pl-PL": string;
135
+ "pt-BR": string;
136
+ "ru-RU": string;
137
+ "th-TH": string;
138
+ "tr-TR": string;
139
+ "vi-VN": string;
140
+ "zh-CN": string;
141
+ "zh-TW": string;
142
+ };
143
+ name: string;
144
+ })[];
145
+ /** Available equipment items (armor, etc.). */
146
+ equips: ({
147
+ assetName: string;
148
+ assetPath: string;
149
+ id: string;
150
+ localizedNames: {
151
+ "ar-AE": string;
152
+ "de-DE": string;
153
+ "en-GB": string;
154
+ "en-US": string;
155
+ "es-ES": string;
156
+ "es-MX": string;
157
+ "fr-FR": string;
158
+ "id-ID": string;
159
+ "it-IT": string;
160
+ "ja-JP": string;
161
+ "ko-KR": string;
162
+ "pl-PL": string;
163
+ "pt-BR": string;
164
+ "ru-RU": string;
165
+ "th-TH": string;
166
+ "tr-TR": string;
167
+ "vi-VN": string;
168
+ "zh-CN": string;
169
+ "zh-TW": string;
170
+ };
171
+ name: string;
172
+ })[];
173
+ /** Available game modes. */
174
+ gameModes: ({
175
+ assetName: string;
176
+ assetPath: string;
177
+ id: string;
178
+ localizedNames: {
179
+ "ar-AE": string;
180
+ "de-DE": string;
181
+ "en-GB": string;
182
+ "en-US": string;
183
+ "es-ES": string;
184
+ "es-MX": string;
185
+ "fr-FR": string;
186
+ "id-ID": string;
187
+ "it-IT": string;
188
+ "ja-JP": string;
189
+ "ko-KR": string;
190
+ "pl-PL": string;
191
+ "pt-BR": string;
192
+ "ru-RU": string;
193
+ "th-TH": string;
194
+ "tr-TR": string;
195
+ "vi-VN": string;
196
+ "zh-CN": string;
197
+ "zh-TW": string;
198
+ };
199
+ name: string;
200
+ })[];
201
+ /** Available maps. */
202
+ maps: ({
203
+ assetName: string;
204
+ assetPath: string;
205
+ id: string;
206
+ localizedNames: {
207
+ "ar-AE": string;
208
+ "de-DE": string;
209
+ "en-GB": string;
210
+ "en-US": string;
211
+ "es-ES": string;
212
+ "es-MX": string;
213
+ "fr-FR": string;
214
+ "id-ID": string;
215
+ "it-IT": string;
216
+ "ja-JP": string;
217
+ "ko-KR": string;
218
+ "pl-PL": string;
219
+ "pt-BR": string;
220
+ "ru-RU": string;
221
+ "th-TH": string;
222
+ "tr-TR": string;
223
+ "vi-VN": string;
224
+ "zh-CN": string;
225
+ "zh-TW": string;
226
+ };
227
+ name: string;
228
+ })[];
229
+ /** Available player card cosmetics. */
230
+ playerCards: ({
231
+ assetName: string;
232
+ assetPath: string;
233
+ id: string;
234
+ localizedNames: {
235
+ "ar-AE": string;
236
+ "de-DE": string;
237
+ "en-GB": string;
238
+ "en-US": string;
239
+ "es-ES": string;
240
+ "es-MX": string;
241
+ "fr-FR": string;
242
+ "id-ID": string;
243
+ "it-IT": string;
244
+ "ja-JP": string;
245
+ "ko-KR": string;
246
+ "pl-PL": string;
247
+ "pt-BR": string;
248
+ "ru-RU": string;
249
+ "th-TH": string;
250
+ "tr-TR": string;
251
+ "vi-VN": string;
252
+ "zh-CN": string;
253
+ "zh-TW": string;
254
+ };
255
+ name: string;
256
+ })[];
257
+ /** Available player title cosmetics. */
258
+ playerTitles: ({
259
+ assetName: string;
260
+ assetPath: string;
261
+ id: string;
262
+ localizedNames: {
263
+ "ar-AE": string;
264
+ "de-DE": string;
265
+ "en-GB": string;
266
+ "en-US": string;
267
+ "es-ES": string;
268
+ "es-MX": string;
269
+ "fr-FR": string;
270
+ "id-ID": string;
271
+ "it-IT": string;
272
+ "ja-JP": string;
273
+ "ko-KR": string;
274
+ "pl-PL": string;
275
+ "pt-BR": string;
276
+ "ru-RU": string;
277
+ "th-TH": string;
278
+ "tr-TR": string;
279
+ "vi-VN": string;
280
+ "zh-CN": string;
281
+ "zh-TW": string;
282
+ };
283
+ name: string;
284
+ })[];
285
+ /** Available weapon skin upgrade levels. */
286
+ skinLevels: ({
287
+ assetName: string;
288
+ assetPath: string;
289
+ id: string;
290
+ localizedNames: {
291
+ "ar-AE": string;
292
+ "de-DE": string;
293
+ "en-GB": string;
294
+ "en-US": string;
295
+ "es-ES": string;
296
+ "es-MX": string;
297
+ "fr-FR": string;
298
+ "id-ID": string;
299
+ "it-IT": string;
300
+ "ja-JP": string;
301
+ "ko-KR": string;
302
+ "pl-PL": string;
303
+ "pt-BR": string;
304
+ "ru-RU": string;
305
+ "th-TH": string;
306
+ "tr-TR": string;
307
+ "vi-VN": string;
308
+ "zh-CN": string;
309
+ "zh-TW": string;
310
+ };
311
+ name: string;
312
+ })[];
313
+ /** Available weapon skins. */
314
+ skins: ({
315
+ assetName: string;
316
+ assetPath: string;
317
+ id: string;
318
+ localizedNames: {
319
+ "ar-AE": string;
320
+ "de-DE": string;
321
+ "en-GB": string;
322
+ "en-US": string;
323
+ "es-ES": string;
324
+ "es-MX": string;
325
+ "fr-FR": string;
326
+ "id-ID": string;
327
+ "it-IT": string;
328
+ "ja-JP": string;
329
+ "ko-KR": string;
330
+ "pl-PL": string;
331
+ "pt-BR": string;
332
+ "ru-RU": string;
333
+ "th-TH": string;
334
+ "tr-TR": string;
335
+ "vi-VN": string;
336
+ "zh-CN": string;
337
+ "zh-TW": string;
338
+ };
339
+ name: string;
340
+ })[];
341
+ /** Available spray upgrade levels. */
342
+ sprayLevels: ({
343
+ assetName: string;
344
+ assetPath: string;
345
+ id: string;
346
+ localizedNames: {
347
+ "ar-AE": string;
348
+ "de-DE": string;
349
+ "en-GB": string;
350
+ "en-US": string;
351
+ "es-ES": string;
352
+ "es-MX": string;
353
+ "fr-FR": string;
354
+ "id-ID": string;
355
+ "it-IT": string;
356
+ "ja-JP": string;
357
+ "ko-KR": string;
358
+ "pl-PL": string;
359
+ "pt-BR": string;
360
+ "ru-RU": string;
361
+ "th-TH": string;
362
+ "tr-TR": string;
363
+ "vi-VN": string;
364
+ "zh-CN": string;
365
+ "zh-TW": string;
366
+ };
367
+ name: string;
368
+ })[];
369
+ /** Available spray cosmetics. */
370
+ sprays: ({
371
+ assetName: string;
372
+ assetPath: string;
373
+ id: string;
374
+ localizedNames: {
375
+ "ar-AE": string;
376
+ "de-DE": string;
377
+ "en-GB": string;
378
+ "en-US": string;
379
+ "es-ES": string;
380
+ "es-MX": string;
381
+ "fr-FR": string;
382
+ "id-ID": string;
383
+ "it-IT": string;
384
+ "ja-JP": string;
385
+ "ko-KR": string;
386
+ "pl-PL": string;
387
+ "pt-BR": string;
388
+ "ru-RU": string;
389
+ "th-TH": string;
390
+ "tr-TR": string;
391
+ "vi-VN": string;
392
+ "zh-CN": string;
393
+ "zh-TW": string;
394
+ };
395
+ name: string;
396
+ })[];
397
+ /** Current content version string. */
398
+ version: string;
399
+ }
400
+ /** Ranked leaderboard data for a specific competitive act. */
401
+ interface Leaderboard {
402
+ /** Unique identifier of the competitive act. */
403
+ actId: string;
404
+ /** Leaderboard player entries sorted by rank. */
405
+ players: ({
406
+ competitiveTier: number;
407
+ gameName: string;
408
+ leaderboardRank: number;
409
+ numberOfWins: number;
410
+ puuid: string;
411
+ rankedRating: number;
412
+ tagLine: string;
413
+ })[];
414
+ /** Search query used to filter the leaderboard (empty string if no filter). */
415
+ query: string;
416
+ /** Shard identifier this leaderboard was retrieved from. */
417
+ shard: string;
418
+ /** Tier detail information for ranks on this leaderboard. */
419
+ tierDetails: ({})[];
420
+ /** Total number of ranked players on the leaderboard. */
421
+ totalPlayers: number;
422
+ }
423
+ /** A player's match history with match references. */
424
+ interface Matchlist {
425
+ /** List of match history entries. */
426
+ history: ({
427
+ gameStartTimeMillis: number;
428
+ matchId: string;
429
+ queueId: string;
430
+ })[];
431
+ /** Encrypted PUUID of the player. */
432
+ puuid: string;
433
+ }
434
+ /** Recently completed match IDs for a queue. */
435
+ interface RecentMatches {
436
+ /** Server time when this data was retrieved (epoch milliseconds). */
437
+ currentTime: number;
438
+ /** List of recently completed match IDs. */
439
+ matchIds: string[];
440
+ }
441
+ /** Complete data for a Valorant match including players, rounds, and teams. */
442
+ interface ValMatch {
443
+ /** Coaches participating in the match (Premier/tournament only). */
444
+ coaches: ({
445
+ puuid: string;
446
+ teamId: string;
447
+ })[];
448
+ /** Match metadata including mode, map, timing, and identifiers. */
449
+ matchInfo: {
450
+ customGameName: string;
451
+ gameLengthMillis: number;
452
+ gameMode: 'CLASSIC' | 'ODIN' | 'ARAM' | 'TUTORIAL' | 'URF' | 'DOOMBOTSTEEMO' | 'ONEFORALL' | 'ASCENSION' | 'FIRSTBLOOD' | 'KINGPORO' | 'SIEGE' | 'ASSASSINATE' | 'ARSR' | 'DARKSTAR' | 'STARGUARDIAN' | 'PROJECT' | 'GAMEMODEX' | 'NEXUSBLITZ' | 'ULTBOOK' | 'CHERRY' | 'STRAWBERRY';
453
+ gameStartMillis: number;
454
+ gameVersion: string;
455
+ isCompleted: boolean;
456
+ isRanked: boolean;
457
+ mapId: '11' | '12' | '21' | '22' | '30';
458
+ matchId: string;
459
+ premierMatchInfo: Record<string, unknown>[];
460
+ provisioningFlowId: string;
461
+ queueId: string;
462
+ region: string;
463
+ seasonId: string;
464
+ };
465
+ /** All players in the match with their stats and agent selections. */
466
+ players: ({
467
+ accountLevel: number;
468
+ characterId: string;
469
+ competitiveTier: number;
470
+ gameName: string;
471
+ isObserver: boolean;
472
+ partyId: string;
473
+ playerCard: string;
474
+ playerTitle: string;
475
+ puuid: string;
476
+ stats: {
477
+ abilityCasts: {
478
+ ability1Casts: number;
479
+ ability2Casts: number;
480
+ grenadeCasts: number;
481
+ ultimateCasts: number;
482
+ };
483
+ assists: number;
484
+ deaths: number;
485
+ kills: number;
486
+ playtimeMillis: number;
487
+ roundsPlayed: number;
488
+ score: number;
489
+ };
490
+ tagLine: string;
491
+ teamId: string;
492
+ })[];
493
+ /** Detailed results for each round of the match. */
494
+ roundResults: ({
495
+ bombDefuser: string;
496
+ bombPlanter: string;
497
+ defuseLocation: {
498
+ x: number;
499
+ y: number;
500
+ };
501
+ defusePlayerLocations: ({
502
+ location: {
503
+ x: number;
504
+ y: number;
505
+ };
506
+ puuid: string;
507
+ viewRadians: number;
508
+ })[];
509
+ defuseRoundTime: number;
510
+ plantLocation: {
511
+ x: number;
512
+ y: number;
513
+ };
514
+ plantPlayerLocations: ({
515
+ location: {
516
+ x: number;
517
+ y: number;
518
+ };
519
+ puuid: string;
520
+ viewRadians: number;
521
+ })[];
522
+ plantRoundTime: number;
523
+ plantSite: string;
524
+ playerStats: ({
525
+ ability: {
526
+ ability1Effects: string;
527
+ ability2Effects: string;
528
+ grenadeEffects: string;
529
+ ultimateEffects: string;
530
+ };
531
+ damage: ({
532
+ bodyshots: number;
533
+ damage: number;
534
+ headshots: number;
535
+ legshots: number;
536
+ receiver: string;
537
+ })[];
538
+ economy: {
539
+ armor: string;
540
+ loadoutValue: number;
541
+ remaining: number;
542
+ spent: number;
543
+ weapon: string;
544
+ };
545
+ kills: ({
546
+ assistants: string[];
547
+ finishingDamage: {
548
+ damageItem: string;
549
+ damageType: string;
550
+ isSecondaryFireMode: boolean;
551
+ };
552
+ killer: string;
553
+ playerLocations: ({
554
+ location: {
555
+ x: number;
556
+ y: number;
557
+ };
558
+ puuid: string;
559
+ viewRadians: number;
560
+ })[];
561
+ timeSinceGameStartMillis: number;
562
+ timeSinceRoundStartMillis: number;
563
+ victim: string;
564
+ victimLocation: {
565
+ x: number;
566
+ y: number;
567
+ };
568
+ })[];
569
+ puuid: string;
570
+ score: number;
571
+ })[];
572
+ roundCeremony: string;
573
+ roundNum: number;
574
+ roundResult: string;
575
+ roundResultCode: string;
576
+ winningTeam: string;
577
+ winningTeamRole: string;
578
+ })[];
579
+ /** Teams in the match with their scores and win status. */
580
+ teams: ({
581
+ numPoints: number;
582
+ roundsPlayed: number;
583
+ roundsWon: number;
584
+ teamId: string;
585
+ won: boolean;
586
+ })[];
587
+ }
588
+ /** Platform status data for a Valorant shard. */
589
+ interface ValPlatformData {
590
+ /** Shard identifier (e.g., "NA", "EU"). */
591
+ id: string;
592
+ /** Active incidents affecting the platform. */
593
+ incidents: ({
594
+ archive_at: string;
595
+ created_at: string;
596
+ id: number;
597
+ incident_severity: string;
598
+ maintenance_status: string;
599
+ platforms: string[];
600
+ titles: ({
601
+ content: string;
602
+ locale: string;
603
+ })[];
604
+ updated_at: string;
605
+ updates: ({
606
+ author: string;
607
+ created_at: string;
608
+ id: number;
609
+ publish: boolean;
610
+ publish_locations: string[];
611
+ translations: ({
612
+ content: string;
613
+ locale: string;
614
+ })[];
615
+ updated_at: string;
616
+ })[];
617
+ })[];
618
+ /** Supported locale codes. */
619
+ locales: string[];
620
+ /** Scheduled or active maintenance windows. */
621
+ maintenances: ({
622
+ archive_at: string;
623
+ created_at: string;
624
+ id: number;
625
+ incident_severity: string;
626
+ maintenance_status: string;
627
+ platforms: string[];
628
+ titles: ({
629
+ content: string;
630
+ locale: string;
631
+ })[];
632
+ updated_at: string;
633
+ updates: ({
634
+ author: string;
635
+ created_at: string;
636
+ id: number;
637
+ publish: boolean;
638
+ publish_locations: string[];
639
+ translations: ({
640
+ content: string;
641
+ locale: string;
642
+ })[];
643
+ updated_at: string;
644
+ })[];
645
+ })[];
646
+ /** Display name of the platform. */
647
+ name: string;
648
+ }
649
+ //#endregion
650
+ //#region src/val/val-console-match-v1.d.ts
651
+ /**
652
+ * Valorant Console Match API (v1).
653
+ *
654
+ * Retrieve match details and match history for Valorant console players.
655
+ * Console endpoints require a `platformType` parameter for matchlist
656
+ * and leaderboard queries.
657
+ *
658
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
659
+ *
660
+ * @example
661
+ * ```typescript
662
+ * import { valConsoleMatchV1 } from '@wardbox/whisper/val';
663
+ *
664
+ * const match = await valConsoleMatchV1.getMatch(client, 'na', 'match-id-123');
665
+ * const matchlist = await valConsoleMatchV1.getMatchlist(client, 'na', 'puuid-123', 'playstation');
666
+ * ```
667
+ */
668
+ declare const valConsoleMatchV1: {
669
+ /**
670
+ * Get a console match by match ID.
671
+ *
672
+ * @param client - WhisperClient instance
673
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
674
+ * @param matchId - Match ID to retrieve
675
+ * @returns Full match data including players, rounds, and teams
676
+ *
677
+ * @example
678
+ * ```typescript
679
+ * const match = await valConsoleMatchV1.getMatch(client, 'na', 'match-id-123');
680
+ * console.log(match.matchInfo.gameMode);
681
+ * ```
682
+ */
683
+ readonly getMatch: (client: WhisperClient, route: ValPlatformRoute, matchId: string) => Promise<ValMatch>;
684
+ /**
685
+ * Get a console player's match history by PUUID.
686
+ *
687
+ * Requires a `platformType` parameter to specify the console platform.
688
+ *
689
+ * @param client - WhisperClient instance
690
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
691
+ * @param puuid - Encrypted PUUID of the player
692
+ * @param platformType - Console platform ('playstation' or 'xbox')
693
+ * @returns Match history with match IDs and timestamps
694
+ *
695
+ * @example
696
+ * ```typescript
697
+ * const matchlist = await valConsoleMatchV1.getMatchlist(client, 'na', 'puuid-123', 'playstation');
698
+ * console.log(matchlist.history.length, 'console matches found');
699
+ * ```
700
+ */
701
+ readonly getMatchlist: (client: WhisperClient, route: ValPlatformRoute, puuid: string, platformType: "playstation" | "xbox") => Promise<Matchlist>;
702
+ /**
703
+ * Get recent console matches for a queue.
704
+ *
705
+ * @param client - WhisperClient instance
706
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
707
+ * @param queue - Queue type to get recent matches for (e.g., 'competitive', 'unrated')
708
+ * @returns Recently completed match IDs for the queue
709
+ *
710
+ * @example
711
+ * ```typescript
712
+ * const recent = await valConsoleMatchV1.getRecentMatches(client, 'na', 'competitive');
713
+ * console.log(recent.matchIds.length, 'recent console matches');
714
+ * ```
715
+ */
716
+ readonly getRecentMatches: (client: WhisperClient, route: ValPlatformRoute, queue: string) => Promise<RecentMatches>;
717
+ };
718
+ //#endregion
719
+ //#region src/val/val-ranked-v1.d.ts
720
+ /** Options for querying the Valorant ranked leaderboard */
721
+ interface GetValLeaderboardOptions {
722
+ /** Number of players to return */
723
+ size?: number;
724
+ /** Starting index for pagination */
725
+ startIndex?: number;
726
+ }
727
+ /**
728
+ * Valorant Ranked API (v1).
729
+ *
730
+ * Retrieve competitive leaderboard data by act.
731
+ *
732
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
733
+ *
734
+ * @example
735
+ * ```typescript
736
+ * import { valRankedV1 } from '@wardbox/whisper/val';
737
+ *
738
+ * const leaderboard = await valRankedV1.getLeaderboard(client, 'na', 'act-id-123');
739
+ * console.log(leaderboard.totalPlayers, 'ranked players');
740
+ * ```
741
+ */
742
+ declare const valRankedV1: {
743
+ /**
744
+ * Get the competitive leaderboard for a specific act.
745
+ *
746
+ * @param client - WhisperClient instance
747
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
748
+ * @param actId - Unique identifier of the competitive act
749
+ * @param options - Optional pagination parameters
750
+ * @returns Leaderboard data with player rankings
751
+ *
752
+ * @example
753
+ * ```typescript
754
+ * // Get top 100 players
755
+ * const lb = await valRankedV1.getLeaderboard(client, 'na', 'act-id', { size: 100 });
756
+ * lb.players.forEach(p => console.log(p.leaderboardRank, p.gameName));
757
+ *
758
+ * // Paginate through results
759
+ * const page2 = await valRankedV1.getLeaderboard(client, 'na', 'act-id', {
760
+ * size: 100,
761
+ * startIndex: 100,
762
+ * });
763
+ * ```
764
+ */
765
+ readonly getLeaderboard: (client: WhisperClient, route: ValPlatformRoute, actId: string, options?: GetValLeaderboardOptions) => Promise<Leaderboard>;
766
+ };
767
+ //#endregion
768
+ //#region src/val/val-console-ranked-v1.d.ts
769
+ /**
770
+ * Valorant Console Ranked API (v1).
771
+ *
772
+ * Retrieve competitive leaderboard data for console players by act.
773
+ * Console leaderboard queries require a `platformType` parameter.
774
+ *
775
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
776
+ *
777
+ * @example
778
+ * ```typescript
779
+ * import { valConsoleRankedV1 } from '@wardbox/whisper/val';
780
+ *
781
+ * const lb = await valConsoleRankedV1.getLeaderboard(client, 'na', 'act-id', 'playstation');
782
+ * console.log(lb.totalPlayers, 'console ranked players');
783
+ * ```
784
+ */
785
+ declare const valConsoleRankedV1: {
786
+ /**
787
+ * Get the console competitive leaderboard for a specific act.
788
+ *
789
+ * @param client - WhisperClient instance
790
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
791
+ * @param actId - Unique identifier of the competitive act
792
+ * @param platformType - Console platform ('playstation' or 'xbox')
793
+ * @param options - Optional pagination parameters
794
+ * @returns Leaderboard data with player rankings
795
+ *
796
+ * @example
797
+ * ```typescript
798
+ * // Get top 100 PlayStation players
799
+ * const lb = await valConsoleRankedV1.getLeaderboard(
800
+ * client, 'na', 'act-id', 'playstation', { size: 100 },
801
+ * );
802
+ * lb.players.forEach(p => console.log(p.leaderboardRank, p.gameName));
803
+ * ```
804
+ */
805
+ readonly getLeaderboard: (client: WhisperClient, route: ValPlatformRoute, actId: string, platformType: "playstation" | "xbox", options?: GetValLeaderboardOptions) => Promise<Leaderboard>;
806
+ };
807
+ //#endregion
808
+ //#region src/val/val-content-v1.d.ts
809
+ /**
810
+ * Valorant Content API (v1).
811
+ *
812
+ * Retrieve game content including agents, maps, game modes, and cosmetics.
813
+ *
814
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
815
+ *
816
+ * @example
817
+ * ```typescript
818
+ * import { valContentV1 } from '@wardbox/whisper/val';
819
+ *
820
+ * const content = await valContentV1.getContent(client, 'na');
821
+ * console.log(content.characters.length, 'agents available');
822
+ * ```
823
+ */
824
+ declare const valContentV1: {
825
+ /**
826
+ * Get all game content for the given region.
827
+ *
828
+ * Returns agents, maps, game modes, cosmetics, and other content items.
829
+ * Optionally filter by locale to get localized names.
830
+ *
831
+ * @param client - WhisperClient instance
832
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
833
+ * @param options - Optional locale filter
834
+ * @returns All Valorant game content
835
+ *
836
+ * @example
837
+ * ```typescript
838
+ * // Get content with default locale
839
+ * const content = await valContentV1.getContent(client, 'na');
840
+ *
841
+ * // Get content in a specific locale
842
+ * const contentJp = await valContentV1.getContent(client, 'ap', { locale: 'ja-JP' });
843
+ * ```
844
+ */
845
+ readonly getContent: (client: WhisperClient, route: ValPlatformRoute, options?: {
846
+ locale?: string;
847
+ }) => Promise<Content>;
848
+ };
849
+ //#endregion
850
+ //#region src/val/val-match-v1.d.ts
851
+ /**
852
+ * Valorant Match API (v1).
853
+ *
854
+ * Retrieve match details, match history, and recent matches for Valorant.
855
+ *
856
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
857
+ *
858
+ * @example
859
+ * ```typescript
860
+ * import { valMatchV1 } from '@wardbox/whisper/val';
861
+ *
862
+ * const match = await valMatchV1.getMatch(client, 'na', 'match-id-123');
863
+ * const matchlist = await valMatchV1.getMatchlist(client, 'na', 'puuid-123');
864
+ * ```
865
+ */
866
+ declare const valMatchV1: {
867
+ /**
868
+ * Get a match by match ID.
869
+ *
870
+ * @param client - WhisperClient instance
871
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
872
+ * @param matchId - Match ID to retrieve
873
+ * @returns Full match data including players, rounds, and teams
874
+ *
875
+ * @example
876
+ * ```typescript
877
+ * const match = await valMatchV1.getMatch(client, 'na', 'match-id-123');
878
+ * console.log(match.matchInfo.gameMode);
879
+ * ```
880
+ */
881
+ readonly getMatch: (client: WhisperClient, route: ValPlatformRoute, matchId: string) => Promise<ValMatch>;
882
+ /**
883
+ * Get a player's match history by PUUID.
884
+ *
885
+ * @param client - WhisperClient instance
886
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
887
+ * @param puuid - Encrypted PUUID of the player
888
+ * @returns Match history with match IDs and timestamps
889
+ *
890
+ * @example
891
+ * ```typescript
892
+ * const matchlist = await valMatchV1.getMatchlist(client, 'eu', 'puuid-123');
893
+ * console.log(matchlist.history.length, 'matches found');
894
+ * ```
895
+ */
896
+ readonly getMatchlist: (client: WhisperClient, route: ValPlatformRoute, puuid: string) => Promise<Matchlist>;
897
+ /**
898
+ * Get recent matches for a queue.
899
+ *
900
+ * @param client - WhisperClient instance
901
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
902
+ * @param queue - Queue type to get recent matches for (e.g., 'competitive', 'unrated')
903
+ * @returns Recently completed match IDs for the queue
904
+ *
905
+ * @example
906
+ * ```typescript
907
+ * const recent = await valMatchV1.getRecentMatches(client, 'na', 'competitive');
908
+ * console.log(recent.matchIds.length, 'recent matches');
909
+ * ```
910
+ */
911
+ readonly getRecentMatches: (client: WhisperClient, route: ValPlatformRoute, queue: string) => Promise<RecentMatches>;
912
+ };
913
+ //#endregion
914
+ //#region src/val/val-status-v1.d.ts
915
+ /**
916
+ * Valorant Status API (v1).
917
+ *
918
+ * Retrieve platform status information including incidents and maintenances.
919
+ *
920
+ * All methods require a {@link ValPlatformRoute} (e.g., 'na', 'eu', 'ap').
921
+ *
922
+ * @example
923
+ * ```typescript
924
+ * import { valStatusV1 } from '@wardbox/whisper/val';
925
+ *
926
+ * const status = await valStatusV1.getPlatformData(client, 'na');
927
+ * console.log(status.name, status.incidents.length);
928
+ * ```
929
+ */
930
+ declare const valStatusV1: {
931
+ /**
932
+ * Get platform status data for the given Valorant region.
933
+ *
934
+ * Returns incident and maintenance information for the Valorant platform.
935
+ *
936
+ * @param client - WhisperClient instance
937
+ * @param route - Valorant platform routing value (e.g., 'na', 'eu', 'ap')
938
+ * @returns Platform status data with incidents and maintenances
939
+ *
940
+ * @example
941
+ * ```typescript
942
+ * const status = await valStatusV1.getPlatformData(client, 'eu');
943
+ * if (status.maintenances.length > 0) {
944
+ * console.log('Scheduled maintenance active');
945
+ * }
946
+ * ```
947
+ */
948
+ readonly getPlatformData: (client: WhisperClient, route: ValPlatformRoute) => Promise<ValPlatformData>;
949
+ };
950
+ //#endregion
951
+ export { type Content, type GetValLeaderboardOptions, type Leaderboard, type Matchlist, type RecentMatches, VAL_PLATFORM, type ValMatch, type ValPlatformData, type ValPlatformRoute, valConsoleMatchV1, valConsoleRankedV1, valContentV1, valMatchV1, valRankedV1, valStatusV1 };
952
+ //# sourceMappingURL=index.d.cts.map