@voxary/valorant-client 0.1.0 → 0.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.
- package/LICENSE +21 -21
- package/README.md +16 -11
- package/dist/index.cjs +2640 -732
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36597 -5649
- package/dist/index.d.ts +36597 -5649
- package/dist/index.js +2627 -728
- package/dist/index.js.map +1 -1
- package/package.json +16 -13
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 voxary
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Typed TypeScript client for the unofficial Valorant API.
|
|
4
4
|
|
|
5
|
-
- **173 endpoints** in
|
|
6
|
-
Riot auth, and a static data catalog. Plus a live event stream for the local client.
|
|
5
|
+
- **173 endpoints** in 15 groups: PVP, party, store, pre-game, current game, contracts, local client, local chat, local voice,
|
|
6
|
+
Premier, esports, restrictions, account extras, Riot auth, and a static data catalog. Plus a live event stream for the local client.
|
|
7
7
|
- **One context object** for everything that rarely changes (shard, region, tokens, client version, cookies, local port).
|
|
8
8
|
Replace or update it at any moment and the next request uses it.
|
|
9
9
|
- **Typed end to end**: path parameters, query, body and results are inferred. Wrong calls fail at compile time.
|
|
10
10
|
- **Validated responses** with the schemas of [`valorant-api-types`](https://github.com/techchrism/valorant-api-docs), in a mode that
|
|
11
11
|
survives game updates.
|
|
12
|
+
- **Custom game lobbies**: teams and coaches, map, mode and rules, agent select, with name tables for maps, modes, teams and agents.
|
|
12
13
|
- **Retries, rate limit handling and automatic token refresh.**
|
|
13
14
|
- **Verified against a live client.** See [what was checked](docs/compatibility.md).
|
|
14
15
|
|
|
@@ -69,6 +70,7 @@ See [The context](docs/context.md).
|
|
|
69
70
|
| [Calling endpoints](docs/calling-endpoints.md) | Parameters, query, body, results, validation |
|
|
70
71
|
| [Errors and retries](docs/errors-and-retries.md) | Error classes, retries, token refresh |
|
|
71
72
|
| [Local client](docs/local-client.md) | Lockfile, friends, chat, live events |
|
|
73
|
+
| [Custom games](docs/custom-games.md) | Teams, coaches, map, mode and rules of a lobby |
|
|
72
74
|
| [Static data](docs/static-data.md) | Agents, skins, maps and ranks by UUID |
|
|
73
75
|
| [Recipes](docs/recipes.md) | Rank, daily store, match recap, wallet |
|
|
74
76
|
| [Testing and custom transports](docs/testing.md) | Mocks, proxies, other HTTP stacks |
|
|
@@ -80,15 +82,18 @@ See [The context](docs/context.md).
|
|
|
80
82
|
| Accessor | Endpoints | Notes |
|
|
81
83
|
|----------|-----------|-------|
|
|
82
84
|
| `client.pvp` | 12 | MMR, history, match details, loadout, XP, penalties, leaderboard |
|
|
83
|
-
| `client.party` | 22 | Parties, queue, custom
|
|
84
|
-
| `client.store` |
|
|
85
|
-
| `client.pregame` |
|
|
86
|
-
| `client.currentGame` |
|
|
87
|
-
| `client.contracts` | 4 | Contracts
|
|
88
|
-
| `client.
|
|
89
|
-
| `client.local` | 32 | Riot Client API, plus `connect()` and `events()` |
|
|
85
|
+
| `client.party` | 22 | Parties, queue, custom game lobby (teams, coaches, options), invite codes |
|
|
86
|
+
| `client.store` | 5 | Wallet, storefront v3, entitlements, agent store |
|
|
87
|
+
| `client.pregame` | 6 | Agent select |
|
|
88
|
+
| `client.currentGame` | 4 | Match in progress |
|
|
89
|
+
| `client.contracts` | 4 | Contracts, item upgrades, recruitment event |
|
|
90
|
+
| `client.local` | 23 | Riot Client API, plus `connect()` and `events()` |
|
|
90
91
|
| `client.chat` | 9 | Local chat |
|
|
91
|
-
| `client.voice` |
|
|
92
|
+
| `client.voice` | 3 | Local audio devices and levels |
|
|
93
|
+
| `client.premier` | 7 | Premier seasons, conferences, eligibility, rosters |
|
|
94
|
+
| `client.esports` | 3 | Esports schedule and pickem |
|
|
95
|
+
| `client.restrictions` | 2 | Avoid list, active interventions |
|
|
96
|
+
| `client.account` | 7 | Daily ticket, favorites, goldstars |
|
|
92
97
|
| `client.auth` | 9 | Riot auth, plus `login()`, `reauthenticate()`, `establishSession()` |
|
|
93
98
|
| `client.catalog` | 57 | Static data from valorant-api.com |
|
|
94
99
|
|
|
@@ -104,10 +109,10 @@ The XMPP chat connection (raw TCP).
|
|
|
104
109
|
## Development
|
|
105
110
|
|
|
106
111
|
```bash
|
|
112
|
+
npm run check # typecheck, tests, regenerate docs/api, check links and counts
|
|
107
113
|
npm run typecheck # source, tests and documented recipes
|
|
108
114
|
npm test # unit tests, no network
|
|
109
115
|
npm run build # ESM + CJS + types
|
|
110
|
-
npm run docs:api # regenerate docs/api
|
|
111
116
|
```
|
|
112
117
|
|
|
113
118
|
See [CONTRIBUTING.md](CONTRIBUTING.md).
|