@voxary/valorant-client 0.1.0 → 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.
- package/README.md +13 -10
- package/dist/index.cjs +1855 -725
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11081 -5533
- package/dist/index.d.ts +11081 -5533
- package/dist/index.js +1851 -721
- package/dist/index.js.map +1 -1
- package/package.json +69 -69
package/dist/index.cjs
CHANGED
|
@@ -52,774 +52,1889 @@ __export(index_exports, {
|
|
|
52
52
|
});
|
|
53
53
|
module.exports = __toCommonJS(index_exports);
|
|
54
54
|
|
|
55
|
-
// src/
|
|
56
|
-
var import_zod4 = require("zod");
|
|
57
|
-
|
|
58
|
-
// src/api/registry.ts
|
|
55
|
+
// src/api/groups/pvp.ts
|
|
59
56
|
var import_valorant_api_types = require("valorant-api-types");
|
|
60
57
|
|
|
61
|
-
// src/
|
|
58
|
+
// src/endpoints/riot/account.ts
|
|
62
59
|
var import_zod = require("zod");
|
|
63
60
|
|
|
64
|
-
// src/
|
|
65
|
-
var
|
|
66
|
-
function markEnveloped(endpoint2) {
|
|
67
|
-
enveloped.add(endpoint2);
|
|
68
|
-
return endpoint2;
|
|
69
|
-
}
|
|
70
|
-
function unwrapEnvelope(endpoint2, body) {
|
|
71
|
-
if (enveloped.has(endpoint2) && typeof body === "object" && body !== null && "data" in body) {
|
|
72
|
-
return body.data;
|
|
73
|
-
}
|
|
74
|
-
return body;
|
|
75
|
-
}
|
|
61
|
+
// src/endpoints/riot/shared.ts
|
|
62
|
+
var player = { token: true, entitlement: true, clientVersion: true, clientPlatform: true };
|
|
76
63
|
|
|
77
|
-
// src/
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
64
|
+
// src/endpoints/riot/account.ts
|
|
65
|
+
var dailyTicketEndpoint = {
|
|
66
|
+
name: "Daily Ticket",
|
|
67
|
+
description: "Daily ticket rewards and the matches already counted.",
|
|
68
|
+
category: "Account Endpoints",
|
|
69
|
+
type: "pd",
|
|
70
|
+
suffix: "daily-ticket/v1/{puuid}",
|
|
71
|
+
riotRequirements: player,
|
|
72
|
+
responses: { "200": import_zod.z.object({
|
|
73
|
+
Version: import_zod.z.number(),
|
|
74
|
+
DailyRewards: import_zod.z.object({
|
|
75
|
+
RemainingLifetimeSeconds: import_zod.z.number(),
|
|
76
|
+
BonusMilestonesPending: import_zod.z.number(),
|
|
77
|
+
Milestones: import_zod.z.array(import_zod.z.object({
|
|
78
|
+
Progress: import_zod.z.number(),
|
|
79
|
+
BonusApplied: import_zod.z.boolean()
|
|
80
|
+
}))
|
|
81
|
+
}),
|
|
82
|
+
ProcessedMatches: import_zod.z.array(import_zod.z.object({
|
|
83
|
+
ID: import_zod.z.string(),
|
|
84
|
+
CreatedAt: import_zod.z.string(),
|
|
85
|
+
DailyExpireTime: import_zod.z.string(),
|
|
86
|
+
PreviousDailyExpireTime: import_zod.z.string(),
|
|
87
|
+
ProgressBefore: import_zod.z.number(),
|
|
88
|
+
ProgressAfter: import_zod.z.number(),
|
|
89
|
+
XP: import_zod.z.number(),
|
|
90
|
+
SoftCurrency: import_zod.z.number(),
|
|
91
|
+
WasPenalized: import_zod.z.boolean(),
|
|
92
|
+
BonusesApplied: import_zod.z.number(),
|
|
93
|
+
DailyBonusState: import_zod.z.array(import_zod.z.boolean())
|
|
94
|
+
}))
|
|
95
|
+
}) }
|
|
96
|
+
};
|
|
97
|
+
var dailyTicketQueueConfigEndpoint = {
|
|
98
|
+
name: "Daily Ticket Queue Config",
|
|
99
|
+
description: "Which queues count for the daily ticket.",
|
|
100
|
+
category: "Account Endpoints",
|
|
101
|
+
type: "pd",
|
|
102
|
+
suffix: "daily-ticket/v1/queue-config",
|
|
103
|
+
riotRequirements: player,
|
|
104
|
+
responses: { "200": import_zod.z.object({
|
|
105
|
+
default: import_zod.z.object({
|
|
106
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
107
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
108
|
+
}),
|
|
109
|
+
queueOverrides: import_zod.z.object({
|
|
110
|
+
abilitydraftarena: import_zod.z.object({
|
|
111
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
112
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
113
|
+
}),
|
|
114
|
+
competitive: import_zod.z.object({
|
|
115
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
116
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
117
|
+
}),
|
|
118
|
+
console_abilitydraftarena: import_zod.z.object({
|
|
119
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
120
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
121
|
+
}),
|
|
122
|
+
console_competitive: import_zod.z.object({
|
|
123
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
124
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
125
|
+
}),
|
|
126
|
+
console_dodgeball: import_zod.z.object({
|
|
127
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
128
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
129
|
+
}),
|
|
130
|
+
console_fortcollins: import_zod.z.object({
|
|
131
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
132
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
133
|
+
}),
|
|
134
|
+
console_hurm: import_zod.z.object({
|
|
135
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
136
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
137
|
+
}),
|
|
138
|
+
console_newmap: import_zod.z.object({
|
|
139
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
140
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
141
|
+
}),
|
|
142
|
+
console_skirmish2v2: import_zod.z.object({
|
|
143
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
144
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
145
|
+
}),
|
|
146
|
+
console_skirmishascension1v1: import_zod.z.object({
|
|
147
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
148
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
149
|
+
}),
|
|
150
|
+
console_skirmishascension2v2: import_zod.z.object({
|
|
151
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
152
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
153
|
+
}),
|
|
154
|
+
console_snowball: import_zod.z.object({
|
|
155
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
156
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
157
|
+
}),
|
|
158
|
+
console_spikerush: import_zod.z.object({
|
|
159
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
160
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
161
|
+
}),
|
|
162
|
+
console_swiftplay: import_zod.z.object({
|
|
163
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
164
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
165
|
+
}),
|
|
166
|
+
console_unrated: import_zod.z.object({
|
|
167
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
168
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
169
|
+
}),
|
|
170
|
+
console_valaram: import_zod.z.object({
|
|
171
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
172
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
173
|
+
}),
|
|
174
|
+
dodgeball: import_zod.z.object({
|
|
175
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
176
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
177
|
+
}),
|
|
178
|
+
fortcollins: import_zod.z.object({
|
|
179
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
180
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
181
|
+
}),
|
|
182
|
+
ggteam: import_zod.z.object({
|
|
183
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
184
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
185
|
+
}),
|
|
186
|
+
hurm: import_zod.z.object({
|
|
187
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
188
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
189
|
+
}),
|
|
190
|
+
newmap: import_zod.z.object({
|
|
191
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
192
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
193
|
+
}),
|
|
194
|
+
premier: import_zod.z.object({
|
|
195
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
196
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
197
|
+
}),
|
|
198
|
+
skirmish2v2: import_zod.z.object({
|
|
199
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
200
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
201
|
+
}),
|
|
202
|
+
skirmishascension1v1: import_zod.z.object({
|
|
203
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
204
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
205
|
+
}),
|
|
206
|
+
skirmishascension2v2: import_zod.z.object({
|
|
207
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
208
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
209
|
+
}),
|
|
210
|
+
snowball: import_zod.z.object({
|
|
211
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
212
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
213
|
+
}),
|
|
214
|
+
spikerush: import_zod.z.object({
|
|
215
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
216
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
217
|
+
}),
|
|
218
|
+
swiftplay: import_zod.z.object({
|
|
219
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
220
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
221
|
+
}),
|
|
222
|
+
unrated: import_zod.z.object({
|
|
223
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
224
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
225
|
+
}),
|
|
226
|
+
valaram: import_zod.z.object({
|
|
227
|
+
flatProgressPerMatch: import_zod.z.number(),
|
|
228
|
+
progressPerRoundWin: import_zod.z.boolean()
|
|
229
|
+
})
|
|
230
|
+
})
|
|
231
|
+
}) }
|
|
232
|
+
};
|
|
233
|
+
var favoritesEndpoint = {
|
|
234
|
+
name: "Favorites",
|
|
235
|
+
description: "Favorited store content of the player.",
|
|
236
|
+
category: "Account Endpoints",
|
|
237
|
+
type: "pd",
|
|
238
|
+
suffix: "favorites/v1/players/{puuid}/favorites",
|
|
239
|
+
riotRequirements: player,
|
|
240
|
+
responses: { "200": import_zod.z.object({
|
|
241
|
+
Subject: import_zod.z.string(),
|
|
242
|
+
FavoritedContent: import_zod.z.record(import_zod.z.string(), import_zod.z.object({
|
|
243
|
+
FavoriteID: import_zod.z.string(),
|
|
244
|
+
ItemID: import_zod.z.string()
|
|
245
|
+
}))
|
|
246
|
+
}) }
|
|
247
|
+
};
|
|
248
|
+
var goldstarsEndpoint = {
|
|
249
|
+
name: "Goldstars",
|
|
250
|
+
description: "Goldstar definitions. Field names are obfuscated by the game.",
|
|
251
|
+
category: "Account Endpoints",
|
|
252
|
+
type: "pd",
|
|
253
|
+
suffix: "goldstars/v1/goldstars",
|
|
254
|
+
riotRequirements: player,
|
|
255
|
+
responses: { "200": import_zod.z.array(import_zod.z.object({
|
|
256
|
+
id: import_zod.z.string(),
|
|
257
|
+
tempT: import_zod.z.number()
|
|
258
|
+
})) }
|
|
259
|
+
};
|
|
260
|
+
var goldstarsPlayerEndpoint = {
|
|
261
|
+
name: "Goldstars Player",
|
|
262
|
+
description: "Goldstars of a player. Field names are obfuscated by the game.",
|
|
263
|
+
category: "Account Endpoints",
|
|
264
|
+
type: "pd",
|
|
265
|
+
suffix: "goldstars/v1/players/{puuid}",
|
|
266
|
+
riotRequirements: player,
|
|
267
|
+
responses: { "200": import_zod.z.object({
|
|
268
|
+
puuid: import_zod.z.string(),
|
|
269
|
+
version: import_zod.z.number(),
|
|
270
|
+
tempS: import_zod.z.object({
|
|
271
|
+
"00000000-0000-0000-0000-000000000000": import_zod.z.object({
|
|
272
|
+
tempS: import_zod.z.string(),
|
|
273
|
+
tempA: import_zod.z.record(import_zod.z.string(), import_zod.z.object({
|
|
274
|
+
id: import_zod.z.string(),
|
|
275
|
+
tempC: import_zod.z.number(),
|
|
276
|
+
tempB: import_zod.z.number()
|
|
277
|
+
}))
|
|
278
|
+
}),
|
|
279
|
+
"8102cd81-43a0-d0d7-bd59-47b8fe9bed1b": import_zod.z.object({
|
|
280
|
+
tempS: import_zod.z.string(),
|
|
281
|
+
tempA: import_zod.z.record(import_zod.z.string(), import_zod.z.object({
|
|
282
|
+
id: import_zod.z.string(),
|
|
283
|
+
tempC: import_zod.z.number(),
|
|
284
|
+
tempB: import_zod.z.number()
|
|
285
|
+
}))
|
|
286
|
+
})
|
|
287
|
+
}),
|
|
288
|
+
tempM: import_zod.z.array(import_zod.z.object({
|
|
289
|
+
id: import_zod.z.string(),
|
|
290
|
+
tempG: import_zod.z.number(),
|
|
291
|
+
tempP: import_zod.z.record(import_zod.z.string(), import_zod.z.object({
|
|
292
|
+
tempA: import_zod.z.record(import_zod.z.string(), import_zod.z.object({
|
|
293
|
+
id: import_zod.z.string(),
|
|
294
|
+
tempV: import_zod.z.number(),
|
|
295
|
+
tempB: import_zod.z.boolean()
|
|
296
|
+
}))
|
|
297
|
+
}))
|
|
298
|
+
}))
|
|
299
|
+
}) }
|
|
300
|
+
};
|
|
301
|
+
var bloomlineQueuesEndpoint = {
|
|
302
|
+
name: "Bloomline Queues",
|
|
303
|
+
description: "Queues handled by the `bloomline` service. The purpose of the service is not documented.",
|
|
304
|
+
category: "Account Endpoints",
|
|
305
|
+
type: "pd",
|
|
306
|
+
suffix: "bloomline/v0/config/valid-queues",
|
|
307
|
+
riotRequirements: player,
|
|
308
|
+
responses: { "200": import_zod.z.object({
|
|
309
|
+
ProcessedQueues: import_zod.z.array(import_zod.z.string()),
|
|
310
|
+
PerformanceScoreQueues: import_zod.z.array(import_zod.z.string())
|
|
311
|
+
}) }
|
|
312
|
+
};
|
|
313
|
+
var bloomlinePlayerEndpoint = {
|
|
314
|
+
name: "Bloomline Player",
|
|
315
|
+
description: "Per-player data of the `bloomline` service. The purpose of the service is not documented.",
|
|
316
|
+
category: "Account Endpoints",
|
|
317
|
+
type: "pd",
|
|
318
|
+
suffix: "bloomline/v0/players/{puuid}",
|
|
319
|
+
riotRequirements: player,
|
|
320
|
+
responses: { "200": import_zod.z.object({
|
|
321
|
+
Subject: import_zod.z.string(),
|
|
322
|
+
Bonsais: import_zod.z.array(import_zod.z.object({
|
|
323
|
+
BonsaiID: import_zod.z.string(),
|
|
324
|
+
HypeID: import_zod.z.string().optional(),
|
|
325
|
+
BackgroundID: import_zod.z.string().optional(),
|
|
326
|
+
ClipID: import_zod.z.string().optional(),
|
|
327
|
+
BorderID: import_zod.z.string().optional(),
|
|
328
|
+
Flourish: import_zod.z.object({
|
|
329
|
+
ShortLevel: import_zod.z.number().optional(),
|
|
330
|
+
PreviousShortLevel: import_zod.z.number().optional(),
|
|
331
|
+
LongLevel: import_zod.z.number().optional(),
|
|
332
|
+
FlourishID: import_zod.z.string().optional(),
|
|
333
|
+
Points: import_zod.z.number().optional(),
|
|
334
|
+
PointsVersion: import_zod.z.number().optional()
|
|
335
|
+
}),
|
|
336
|
+
TrackProgressList: import_zod.z.array(import_zod.z.object({
|
|
337
|
+
TrackID: import_zod.z.string(),
|
|
338
|
+
TrackLevel: import_zod.z.number().optional()
|
|
339
|
+
}))
|
|
340
|
+
})),
|
|
341
|
+
LongGroupVersion: import_zod.z.number()
|
|
342
|
+
}) }
|
|
254
343
|
};
|
|
255
344
|
|
|
256
|
-
// src/
|
|
345
|
+
// src/endpoints/riot/chat.ts
|
|
257
346
|
var import_zod2 = require("zod");
|
|
258
|
-
var
|
|
259
|
-
name: "
|
|
260
|
-
description: "Get
|
|
261
|
-
|
|
262
|
-
category: "Contract Endpoints",
|
|
263
|
-
type: "pd",
|
|
264
|
-
suffix: "contract-definitions/v2/definitions/story",
|
|
265
|
-
riotRequirements: { entitlement: true, token: true, clientPlatform: true, clientVersion: true },
|
|
266
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
267
|
-
};
|
|
268
|
-
var currentGameAllChatTokenEndpoint = {
|
|
269
|
-
name: "All Chat Token",
|
|
270
|
-
description: "Get a token for all chat",
|
|
271
|
-
queryName: "CoreGame_FetchAllChatMUCToken",
|
|
272
|
-
category: "Current Game Endpoints",
|
|
273
|
-
type: "glz",
|
|
274
|
-
suffix: "core-game/v1/matches/{in-progress match id}/allchatmuctoken",
|
|
275
|
-
riotRequirements: { entitlement: true, token: true, clientPlatform: true, clientVersion: true },
|
|
276
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
277
|
-
};
|
|
278
|
-
var currentGameTeamChatTokenEndpoint = {
|
|
279
|
-
name: "Team Chat Token",
|
|
280
|
-
description: "Get a token for team chat",
|
|
281
|
-
queryName: "CoreGame_FetchTeamChatMUCToken",
|
|
282
|
-
category: "Current Game Endpoints",
|
|
283
|
-
type: "glz",
|
|
284
|
-
suffix: "core-game/v1/matches/{in-progress match id}/teamchatmuctoken",
|
|
285
|
-
riotRequirements: { entitlement: true, token: true, clientPlatform: true, clientVersion: true },
|
|
286
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
287
|
-
};
|
|
288
|
-
var localAntiAddictionShutdownEndpoint = {
|
|
289
|
-
name: "Anti Addiction Shutdown",
|
|
290
|
-
description: "GET ANTI_ADDICTION_RNet_FetchShutdownPolicyState",
|
|
291
|
-
queryName: "ANTI_ADDICTION_RNet_FetchShutdownPolicyState",
|
|
292
|
-
category: "Local Endpoints",
|
|
347
|
+
var chatSettingsEndpoint = {
|
|
348
|
+
name: "Settings",
|
|
349
|
+
description: "Get chat settings",
|
|
350
|
+
category: "Local Endpoints - Chat",
|
|
293
351
|
type: "local",
|
|
294
|
-
suffix: "
|
|
352
|
+
suffix: "chat/v1/settings",
|
|
295
353
|
riotRequirements: { localAuth: true },
|
|
296
|
-
responses: { "200": import_zod2.z.
|
|
354
|
+
responses: { "200": import_zod2.z.object({
|
|
355
|
+
bounceDockIconEnabled: import_zod2.z.boolean(),
|
|
356
|
+
"chat-status-message": import_zod2.z.string(),
|
|
357
|
+
chatFilterDisabled: import_zod2.z.boolean(),
|
|
358
|
+
chatGBG: import_zod2.z.boolean(),
|
|
359
|
+
chatGroupDiscord: import_zod2.z.boolean(),
|
|
360
|
+
chatGroupMobile: import_zod2.z.boolean(),
|
|
361
|
+
chatGroupOffline: import_zod2.z.boolean(),
|
|
362
|
+
chatWindow: import_zod2.z.object({
|
|
363
|
+
detached: import_zod2.z.boolean(),
|
|
364
|
+
height: import_zod2.z.number(),
|
|
365
|
+
left: import_zod2.z.number(),
|
|
366
|
+
top: import_zod2.z.number(),
|
|
367
|
+
width: import_zod2.z.number()
|
|
368
|
+
}),
|
|
369
|
+
chatWindowDockedHeight: import_zod2.z.number(),
|
|
370
|
+
"closed-conversations": import_zod2.z.object({
|
|
371
|
+
"ff822fdf-71a3-54ac-814e-7ac752ba428d@eu1.pvp.net": import_zod2.z.number()
|
|
372
|
+
}),
|
|
373
|
+
friendRequestToastsDisabled: import_zod2.z.boolean(),
|
|
374
|
+
"hidden-conversations": import_zod2.z.object({}),
|
|
375
|
+
linkClickWarningEnabled: import_zod2.z.boolean(),
|
|
376
|
+
messageNotificationsEnabled: import_zod2.z.boolean(),
|
|
377
|
+
moreUnreadsEnabled: import_zod2.z.boolean(),
|
|
378
|
+
"muted-conversations": import_zod2.z.object({}),
|
|
379
|
+
recentlyPlayedFirstOpen: import_zod2.z.boolean(),
|
|
380
|
+
recentlyPlayedOpen: import_zod2.z.boolean(),
|
|
381
|
+
"roster-group-collapsed": import_zod2.z.object({}),
|
|
382
|
+
showWhenTypingEnabled: import_zod2.z.boolean(),
|
|
383
|
+
sortBy: import_zod2.z.string(),
|
|
384
|
+
usePlayerPreferences: import_zod2.z.boolean()
|
|
385
|
+
}) }
|
|
297
386
|
};
|
|
298
|
-
var
|
|
299
|
-
name: "
|
|
300
|
-
description: "
|
|
301
|
-
|
|
302
|
-
category: "Local Endpoints",
|
|
387
|
+
var chatTournamentInfoEndpoint = {
|
|
388
|
+
name: "Tournament Info",
|
|
389
|
+
description: "Get in-tournament conversations",
|
|
390
|
+
category: "Local Endpoints - Chat",
|
|
303
391
|
type: "local",
|
|
304
|
-
suffix: "
|
|
392
|
+
suffix: "chat/v6/conversations/ares-tournaments",
|
|
305
393
|
riotRequirements: { localAuth: true },
|
|
306
|
-
responses: { "200": import_zod2.z.
|
|
394
|
+
responses: { "200": import_zod2.z.object({}) }
|
|
307
395
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
396
|
+
|
|
397
|
+
// src/endpoints/riot/contracts.ts
|
|
398
|
+
var import_zod3 = require("zod");
|
|
399
|
+
var activeRecruitmentEventEndpoint = {
|
|
400
|
+
name: "Active Recruitment Event",
|
|
401
|
+
description: "The current agent recruitment event.",
|
|
402
|
+
category: "Contract Endpoints",
|
|
403
|
+
type: "pd",
|
|
404
|
+
suffix: "contracts/v1/agents/activeRecruitmentEvent",
|
|
405
|
+
riotRequirements: player,
|
|
406
|
+
responses: { "200": import_zod3.z.object({
|
|
407
|
+
AgentID: import_zod3.z.string(),
|
|
408
|
+
CounterID: import_zod3.z.string(),
|
|
409
|
+
MilestoneThreshold: import_zod3.z.number(),
|
|
410
|
+
StartDate: import_zod3.z.string(),
|
|
411
|
+
EndDate: import_zod3.z.string(),
|
|
412
|
+
IsActive: import_zod3.z.boolean(),
|
|
413
|
+
includedPlatforms: import_zod3.z.object({
|
|
414
|
+
console: import_zod3.z.object({
|
|
415
|
+
developmentOnly: import_zod3.z.boolean()
|
|
416
|
+
}),
|
|
417
|
+
mobile: import_zod3.z.object({
|
|
418
|
+
developmentOnly: import_zod3.z.boolean()
|
|
419
|
+
}),
|
|
420
|
+
pc: import_zod3.z.object({
|
|
421
|
+
developmentOnly: import_zod3.z.boolean()
|
|
422
|
+
})
|
|
423
|
+
})
|
|
424
|
+
}) }
|
|
317
425
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
426
|
+
|
|
427
|
+
// src/endpoints/riot/esports.ts
|
|
428
|
+
var import_zod4 = require("zod");
|
|
429
|
+
var esportsLiveEventTimesEndpoint = {
|
|
430
|
+
name: "Esports Live Event Times",
|
|
431
|
+
description: "Live and upcoming esports matches, pick blocks and tournaments.",
|
|
432
|
+
category: "Esports Endpoints",
|
|
433
|
+
type: "pd",
|
|
434
|
+
suffix: "esports-service/v2/liveEventTimes",
|
|
435
|
+
riotRequirements: player,
|
|
436
|
+
responses: { "200": import_zod4.z.object({
|
|
437
|
+
Tournaments: import_zod4.z.array(import_zod4.z.object({
|
|
438
|
+
ID: import_zod4.z.string(),
|
|
439
|
+
StartTimeUTC: import_zod4.z.string(),
|
|
440
|
+
EndTimeUTC: import_zod4.z.string()
|
|
441
|
+
}))
|
|
442
|
+
}) }
|
|
327
443
|
};
|
|
328
|
-
var
|
|
329
|
-
name: "
|
|
330
|
-
description: "
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
444
|
+
var esportsUpcomingMatchesEndpoint = {
|
|
445
|
+
name: "Esports Upcoming Matches",
|
|
446
|
+
description: "Upcoming esports matches.",
|
|
447
|
+
category: "Esports Endpoints",
|
|
448
|
+
type: "pd",
|
|
449
|
+
suffix: "esports-service/v2/upcomingMatches",
|
|
450
|
+
riotRequirements: player,
|
|
451
|
+
responses: { "200": import_zod4.z.object({}) }
|
|
337
452
|
};
|
|
338
|
-
var
|
|
339
|
-
name: "
|
|
340
|
-
description: "
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
453
|
+
var esportsPickemLeaguesEndpoint = {
|
|
454
|
+
name: "Esports Pickem Leagues",
|
|
455
|
+
description: "Pick'em leagues.",
|
|
456
|
+
category: "Esports Endpoints",
|
|
457
|
+
type: "pd",
|
|
458
|
+
suffix: "esports-service/v1/pickem/leagues",
|
|
459
|
+
riotRequirements: player,
|
|
460
|
+
responses: { "200": import_zod4.z.object({
|
|
461
|
+
PickemLeagues: import_zod4.z.array(import_zod4.z.object({
|
|
462
|
+
LeagueID: import_zod4.z.string(),
|
|
463
|
+
EldsLeagueID: import_zod4.z.string(),
|
|
464
|
+
Tournament: import_zod4.z.object({
|
|
465
|
+
ID: import_zod4.z.string(),
|
|
466
|
+
EldsTournamentID: import_zod4.z.string(),
|
|
467
|
+
LeagueID: import_zod4.z.string(),
|
|
468
|
+
PickBlocks: import_zod4.z.array(import_zod4.z.object({
|
|
469
|
+
ID: import_zod4.z.string(),
|
|
470
|
+
EldsTournamentID: import_zod4.z.string(),
|
|
471
|
+
Slug: import_zod4.z.object({
|
|
472
|
+
Slug: import_zod4.z.string()
|
|
473
|
+
}),
|
|
474
|
+
PickOpenTime: import_zod4.z.string(),
|
|
475
|
+
PickCloseTime: import_zod4.z.string(),
|
|
476
|
+
State: import_zod4.z.string(),
|
|
477
|
+
OpenLevel: import_zod4.z.string(),
|
|
478
|
+
BlockType: import_zod4.z.string(),
|
|
479
|
+
PickBlockElements: import_zod4.z.array(import_zod4.z.object({
|
|
480
|
+
ID: import_zod4.z.string(),
|
|
481
|
+
PickBlockID: import_zod4.z.string(),
|
|
482
|
+
Section: import_zod4.z.object({
|
|
483
|
+
ID: import_zod4.z.string(),
|
|
484
|
+
EldsSectionID: import_zod4.z.string(),
|
|
485
|
+
CorrectPick: import_zod4.z.object({
|
|
486
|
+
Entries: import_zod4.z.array(import_zod4.z.object({
|
|
487
|
+
Index: import_zod4.z.number(),
|
|
488
|
+
Correctness: import_zod4.z.string(),
|
|
489
|
+
ParticipantID: import_zod4.z.string(),
|
|
490
|
+
Points: import_zod4.z.number(),
|
|
491
|
+
Rank: import_zod4.z.number()
|
|
492
|
+
})).nullable()
|
|
493
|
+
})
|
|
494
|
+
}),
|
|
495
|
+
Match: import_zod4.z.object({
|
|
496
|
+
ID: import_zod4.z.string(),
|
|
497
|
+
EldsMatchID: import_zod4.z.string(),
|
|
498
|
+
BaselinePoints: import_zod4.z.number(),
|
|
499
|
+
CorrectPick: import_zod4.z.string(),
|
|
500
|
+
ResultState: import_zod4.z.string()
|
|
501
|
+
}),
|
|
502
|
+
PickOpenTime: import_zod4.z.string(),
|
|
503
|
+
PickCloseTime: import_zod4.z.string(),
|
|
504
|
+
State: import_zod4.z.string(),
|
|
505
|
+
DisplayOrder: import_zod4.z.number()
|
|
506
|
+
})),
|
|
507
|
+
CompletionStatus: import_zod4.z.string()
|
|
508
|
+
})),
|
|
509
|
+
Participants: import_zod4.z.array(import_zod4.z.object({
|
|
510
|
+
ID: import_zod4.z.string(),
|
|
511
|
+
EldsTeamID: import_zod4.z.string()
|
|
512
|
+
}))
|
|
513
|
+
}),
|
|
514
|
+
Published: import_zod4.z.boolean()
|
|
515
|
+
}))
|
|
516
|
+
}) }
|
|
347
517
|
};
|
|
518
|
+
|
|
519
|
+
// src/endpoints/riot/local.ts
|
|
520
|
+
var import_zod5 = require("zod");
|
|
348
521
|
var localLocaleEndpoint = {
|
|
349
522
|
name: "Locale",
|
|
350
523
|
description: "Get the current locale",
|
|
351
|
-
queryName: "LOCALE_RNet_FetchLocale",
|
|
352
524
|
category: "Local Endpoints",
|
|
353
525
|
type: "local",
|
|
354
526
|
suffix: "riotclient/product-locales/products/valorant/patchlines/live",
|
|
355
527
|
riotRequirements: { localAuth: true },
|
|
356
|
-
responses: { "200":
|
|
357
|
-
};
|
|
358
|
-
var localReporterFeedbackEndpoint = {
|
|
359
|
-
name: "Reporter Feedback",
|
|
360
|
-
description: "GET REPORTER_FEEDBACK_RNet_GetReporterFeedback",
|
|
361
|
-
queryName: "REPORTER_FEEDBACK_RNet_GetReporterFeedback",
|
|
362
|
-
category: "Local Endpoints",
|
|
363
|
-
type: "local",
|
|
364
|
-
suffix: "player-reporting/v1/reporter-feedback",
|
|
365
|
-
riotRequirements: { localAuth: true },
|
|
366
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
528
|
+
responses: { "200": import_zod5.z.string() }
|
|
367
529
|
};
|
|
368
|
-
var
|
|
369
|
-
name: "
|
|
370
|
-
description: "
|
|
371
|
-
queryName: "Riot Client Command-Line Args",
|
|
530
|
+
var localAvailableLocalesEndpoint = {
|
|
531
|
+
name: "Available Locales",
|
|
532
|
+
description: "Get available locales",
|
|
372
533
|
category: "Local Endpoints",
|
|
373
534
|
type: "local",
|
|
374
|
-
suffix: "
|
|
535
|
+
suffix: "rnet-product-registry/v4/available-product-locales/products/valorant/patchlines/live",
|
|
375
536
|
riotRequirements: { localAuth: true },
|
|
376
|
-
responses: { "200":
|
|
537
|
+
responses: { "200": import_zod5.z.array(import_zod5.z.string()) }
|
|
377
538
|
};
|
|
378
539
|
var localRiotStatusEndpoint = {
|
|
379
540
|
name: "Riot Status",
|
|
380
541
|
description: "Get game status information such as maintenances and incidents Response is an escaped JSON string.",
|
|
381
|
-
queryName: "RiotStatus_RNet_FetchStatus",
|
|
382
542
|
category: "Local Endpoints",
|
|
383
543
|
type: "local",
|
|
384
544
|
suffix: "riot-status/v1/products/valorant/patchlines/live/deployments/{region}",
|
|
385
545
|
riotRequirements: { localAuth: true },
|
|
386
|
-
responses: { "200":
|
|
387
|
-
};
|
|
388
|
-
var localRiotWarningEndpoint = {
|
|
389
|
-
name: "Riot Warning",
|
|
390
|
-
description: "GET RIOT_WARNING_RNet_GetRiotWarning",
|
|
391
|
-
queryName: "RIOT_WARNING_RNet_GetRiotWarning",
|
|
392
|
-
category: "Local Endpoints",
|
|
393
|
-
type: "local",
|
|
394
|
-
suffix: "ga-warning/v1/warnings",
|
|
395
|
-
riotRequirements: { localAuth: true },
|
|
396
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
397
|
-
};
|
|
398
|
-
var localClientAuthorizationsEndpoint = {
|
|
399
|
-
name: "Client Authorizations",
|
|
400
|
-
description: "Gets tokens in use by the client",
|
|
401
|
-
queryName: "RSO_RNet_FetchClientAuthorizations",
|
|
402
|
-
category: "Local Endpoints",
|
|
403
|
-
type: "local",
|
|
404
|
-
suffix: "rso-auth/v2/authorizations/valorant-client",
|
|
405
|
-
riotRequirements: { localAuth: true },
|
|
406
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
546
|
+
responses: { "200": import_zod5.z.string() }
|
|
407
547
|
};
|
|
408
548
|
var localAccessTokenEndpoint = {
|
|
409
549
|
name: "Access Token",
|
|
410
550
|
description: "Gets a Riot access token",
|
|
411
|
-
queryName: "RSO_RNet_GetAccessToken",
|
|
412
551
|
category: "Local Endpoints",
|
|
413
552
|
type: "local",
|
|
414
553
|
suffix: "rso-auth/v1/authorization/access-token",
|
|
415
554
|
riotRequirements: { localAuth: true },
|
|
416
|
-
responses: { "200":
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
category: "Local Endpoints",
|
|
423
|
-
type: "local",
|
|
424
|
-
suffix: "rso-auth/v1/userinfo/valorant-client",
|
|
425
|
-
riotRequirements: { localAuth: true },
|
|
426
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
427
|
-
};
|
|
428
|
-
var chatSettingsEndpoint = {
|
|
429
|
-
name: "Settings",
|
|
430
|
-
description: "Get chat settings",
|
|
431
|
-
queryName: "TEXT_CHAT_RNet_FetchSettings",
|
|
432
|
-
category: "Local Endpoints - Chat",
|
|
433
|
-
type: "local",
|
|
434
|
-
suffix: "chat/v1/settings",
|
|
435
|
-
riotRequirements: { localAuth: true },
|
|
436
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
437
|
-
};
|
|
438
|
-
var chatTournamentInfoEndpoint = {
|
|
439
|
-
name: "Tournament Info",
|
|
440
|
-
description: "Get in-tournament conversations",
|
|
441
|
-
queryName: "TEXT_CHAT_RNet_GetMUCInfos - tournaments",
|
|
442
|
-
category: "Local Endpoints - Chat",
|
|
443
|
-
type: "local",
|
|
444
|
-
suffix: "chat/v6/conversations/ares-tournaments",
|
|
445
|
-
riotRequirements: { localAuth: true },
|
|
446
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
555
|
+
responses: { "200": import_zod5.z.object({
|
|
556
|
+
clientId: import_zod5.z.string(),
|
|
557
|
+
expiry: import_zod5.z.number(),
|
|
558
|
+
scopes: import_zod5.z.array(import_zod5.z.string()),
|
|
559
|
+
token: import_zod5.z.string()
|
|
560
|
+
}) }
|
|
447
561
|
};
|
|
448
562
|
var localPluginStatusEndpoint = {
|
|
449
563
|
name: "Plugin Status",
|
|
450
564
|
description: "Gets plugin status",
|
|
451
|
-
queryName: "URNetClient_CheckPluginStatus",
|
|
452
565
|
category: "Local Endpoints",
|
|
453
566
|
type: "local",
|
|
454
567
|
suffix: "plugin-manager/v1/status",
|
|
455
568
|
riotRequirements: { localAuth: true },
|
|
456
|
-
responses: { "200":
|
|
569
|
+
responses: { "200": import_zod5.z.object({
|
|
570
|
+
state: import_zod5.z.string()
|
|
571
|
+
}) }
|
|
457
572
|
};
|
|
458
573
|
var localRmsSessionEndpoint = {
|
|
459
574
|
name: "Rms Session",
|
|
460
575
|
description: "Gets the token for Riot Messaging Service",
|
|
461
|
-
queryName: "URNetClient_CheckRMSSession",
|
|
462
576
|
category: "Local Endpoints",
|
|
463
577
|
type: "local",
|
|
464
578
|
suffix: "riot-messaging-service/v1/session",
|
|
465
579
|
riotRequirements: { localAuth: true },
|
|
466
|
-
responses: { "200":
|
|
580
|
+
responses: { "200": import_zod5.z.object({
|
|
581
|
+
state: import_zod5.z.string(),
|
|
582
|
+
token: import_zod5.z.string(),
|
|
583
|
+
tokenType: import_zod5.z.string()
|
|
584
|
+
}) }
|
|
467
585
|
};
|
|
468
586
|
var localProcessInfoEndpoint = {
|
|
469
587
|
name: "Process Info",
|
|
470
588
|
description: "Gets the Valorant process ID",
|
|
471
|
-
queryName: "URNetClient_GetProcessInfo",
|
|
472
589
|
category: "Local Endpoints",
|
|
473
590
|
type: "local",
|
|
474
591
|
suffix: "process-control/v1/process",
|
|
475
592
|
riotRequirements: { localAuth: true },
|
|
476
|
-
responses: { "200":
|
|
593
|
+
responses: { "200": import_zod5.z.object({
|
|
594
|
+
pid: import_zod5.z.number(),
|
|
595
|
+
status: import_zod5.z.string()
|
|
596
|
+
}) }
|
|
477
597
|
};
|
|
478
598
|
var localLogPathEndpoint = {
|
|
479
599
|
name: "Log Path",
|
|
480
600
|
description: "Gets the Valorant log path",
|
|
481
|
-
queryName: "Valorant Log Path",
|
|
482
601
|
category: "Local Endpoints",
|
|
483
602
|
type: "local",
|
|
484
603
|
suffix: "product-session/v1/logs/path/VALORANT",
|
|
485
604
|
riotRequirements: { localAuth: true },
|
|
486
|
-
responses: { "200":
|
|
605
|
+
responses: { "200": import_zod5.z.string() }
|
|
487
606
|
};
|
|
607
|
+
var localEulaEndpoint = {
|
|
608
|
+
name: "Eula",
|
|
609
|
+
description: "Get the EULA",
|
|
610
|
+
category: "Local Endpoints",
|
|
611
|
+
type: "local",
|
|
612
|
+
suffix: "eula/v1/agreement/content",
|
|
613
|
+
riotRequirements: { localAuth: true },
|
|
614
|
+
responses: { "200": import_zod5.z.string() }
|
|
615
|
+
};
|
|
616
|
+
var localPrivacyPolicyEndpoint = {
|
|
617
|
+
name: "Privacy Policy",
|
|
618
|
+
description: "Get privacy policy",
|
|
619
|
+
category: "Local Endpoints",
|
|
620
|
+
type: "local",
|
|
621
|
+
suffix: "eula/v1/privacy-policy/content",
|
|
622
|
+
riotRequirements: { localAuth: true },
|
|
623
|
+
responses: { "200": import_zod5.z.string() }
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
// src/endpoints/riot/premier.ts
|
|
627
|
+
var import_zod6 = require("zod");
|
|
628
|
+
var premierSeasonsEndpoint = {
|
|
629
|
+
name: "Premier Seasons",
|
|
630
|
+
description: "All Premier seasons of the shard. The affinity in the path is the region of the context.",
|
|
631
|
+
category: "Premier Endpoints",
|
|
632
|
+
type: "pd",
|
|
633
|
+
suffix: "premier/v1/affinities/{region}/premier-seasons",
|
|
634
|
+
riotRequirements: player,
|
|
635
|
+
responses: { "200": import_zod6.z.object({
|
|
636
|
+
PremierSeasons: import_zod6.z.array(import_zod6.z.object({
|
|
637
|
+
ID: import_zod6.z.string(),
|
|
638
|
+
Name: import_zod6.z.string(),
|
|
639
|
+
PreviousPremierSeasonID: import_zod6.z.string(),
|
|
640
|
+
NextPremierSeasonID: import_zod6.z.string(),
|
|
641
|
+
IsActive: import_zod6.z.boolean(),
|
|
642
|
+
StartTime: import_zod6.z.string(),
|
|
643
|
+
EndTime: import_zod6.z.string(),
|
|
644
|
+
Events: import_zod6.z.array(import_zod6.z.object({
|
|
645
|
+
ID: import_zod6.z.string(),
|
|
646
|
+
Type: import_zod6.z.string(),
|
|
647
|
+
StartDateTime: import_zod6.z.string(),
|
|
648
|
+
EndDateTime: import_zod6.z.string(),
|
|
649
|
+
MapSelectionStrategy: import_zod6.z.string(),
|
|
650
|
+
MapPoolMapIDs: import_zod6.z.array(import_zod6.z.string()),
|
|
651
|
+
PointsRequiredToParticipate: import_zod6.z.number()
|
|
652
|
+
})),
|
|
653
|
+
ScheduledEvents: import_zod6.z.array(import_zod6.z.object({
|
|
654
|
+
EventID: import_zod6.z.string(),
|
|
655
|
+
EventType: import_zod6.z.string(),
|
|
656
|
+
Conference: import_zod6.z.string(),
|
|
657
|
+
DivisionGroup: import_zod6.z.string(),
|
|
658
|
+
EventPresetName: import_zod6.z.string(),
|
|
659
|
+
StartDateTime: import_zod6.z.string(),
|
|
660
|
+
EndDateTime: import_zod6.z.string(),
|
|
661
|
+
TournamentRoundTimes: import_zod6.z.array(import_zod6.z.object({
|
|
662
|
+
StartDateTime: import_zod6.z.string(),
|
|
663
|
+
EndDateTime: import_zod6.z.string()
|
|
664
|
+
}))
|
|
665
|
+
})),
|
|
666
|
+
Conferences: import_zod6.z.array(import_zod6.z.object({
|
|
667
|
+
id: import_zod6.z.string(),
|
|
668
|
+
key: import_zod6.z.string(),
|
|
669
|
+
isSuper: import_zod6.z.boolean(),
|
|
670
|
+
gamePods: import_zod6.z.array(import_zod6.z.string()),
|
|
671
|
+
timezone: import_zod6.z.string(),
|
|
672
|
+
superConference: import_zod6.z.string().optional(),
|
|
673
|
+
leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
|
|
674
|
+
leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
|
|
675
|
+
})),
|
|
676
|
+
Divisions: import_zod6.z.array(import_zod6.z.object({
|
|
677
|
+
Division: import_zod6.z.number(),
|
|
678
|
+
DivisionName: import_zod6.z.string(),
|
|
679
|
+
DivisionGroup: import_zod6.z.string(),
|
|
680
|
+
EventPresetName: import_zod6.z.string()
|
|
681
|
+
})),
|
|
682
|
+
DivisionThresholds: import_zod6.z.array(import_zod6.z.object({
|
|
683
|
+
playoffThresholdType: import_zod6.z.string(),
|
|
684
|
+
playoffThresholdValue: import_zod6.z.number(),
|
|
685
|
+
promotionThresholdType: import_zod6.z.string(),
|
|
686
|
+
promotionThresholdValue: import_zod6.z.number(),
|
|
687
|
+
shouldPromoteToSuperConference: import_zod6.z.boolean(),
|
|
688
|
+
skipReseedCriteria: import_zod6.z.string(),
|
|
689
|
+
conference: import_zod6.z.string().optional(),
|
|
690
|
+
division: import_zod6.z.number().optional(),
|
|
691
|
+
promotionConference: import_zod6.z.string().optional(),
|
|
692
|
+
skipReseedCriteriaValue: import_zod6.z.number().optional()
|
|
693
|
+
})),
|
|
694
|
+
EventPresets: import_zod6.z.object({
|
|
695
|
+
PRO: import_zod6.z.object({
|
|
696
|
+
EventPresetsByEventType: import_zod6.z.object({
|
|
697
|
+
LEAGUE: import_zod6.z.object({
|
|
698
|
+
EventPresetName: import_zod6.z.string(),
|
|
699
|
+
eventType: import_zod6.z.string(),
|
|
700
|
+
bestOfN: import_zod6.z.number(),
|
|
701
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
702
|
+
queueID: import_zod6.z.string(),
|
|
703
|
+
pointsConfig: import_zod6.z.object({
|
|
704
|
+
PointsForWin: import_zod6.z.number(),
|
|
705
|
+
PointsForLoss: import_zod6.z.number()
|
|
706
|
+
})
|
|
707
|
+
}),
|
|
708
|
+
SCRIM: import_zod6.z.object({
|
|
709
|
+
EventPresetName: import_zod6.z.string(),
|
|
710
|
+
eventType: import_zod6.z.string(),
|
|
711
|
+
bestOfN: import_zod6.z.number(),
|
|
712
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
713
|
+
queueID: import_zod6.z.string(),
|
|
714
|
+
pointsConfig: import_zod6.z.object({
|
|
715
|
+
PointsForWin: import_zod6.z.number(),
|
|
716
|
+
PointsForLoss: import_zod6.z.number()
|
|
717
|
+
})
|
|
718
|
+
}),
|
|
719
|
+
TOURNAMENT: import_zod6.z.object({
|
|
720
|
+
EventPresetName: import_zod6.z.string(),
|
|
721
|
+
eventType: import_zod6.z.string(),
|
|
722
|
+
bestOfN: import_zod6.z.number(),
|
|
723
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
724
|
+
queueID: import_zod6.z.string(),
|
|
725
|
+
pointsConfig: import_zod6.z.object({
|
|
726
|
+
PointsForWin: import_zod6.z.number(),
|
|
727
|
+
PointsForLoss: import_zod6.z.number()
|
|
728
|
+
})
|
|
729
|
+
})
|
|
730
|
+
})
|
|
731
|
+
}),
|
|
732
|
+
REGULAR: import_zod6.z.object({
|
|
733
|
+
EventPresetsByEventType: import_zod6.z.object({
|
|
734
|
+
LEAGUE: import_zod6.z.object({
|
|
735
|
+
EventPresetName: import_zod6.z.string(),
|
|
736
|
+
eventType: import_zod6.z.string(),
|
|
737
|
+
bestOfN: import_zod6.z.number(),
|
|
738
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
739
|
+
queueID: import_zod6.z.string(),
|
|
740
|
+
pointsConfig: import_zod6.z.object({
|
|
741
|
+
PointsForWin: import_zod6.z.number(),
|
|
742
|
+
PointsForLoss: import_zod6.z.number()
|
|
743
|
+
})
|
|
744
|
+
}),
|
|
745
|
+
SCRIM: import_zod6.z.object({
|
|
746
|
+
EventPresetName: import_zod6.z.string(),
|
|
747
|
+
eventType: import_zod6.z.string(),
|
|
748
|
+
bestOfN: import_zod6.z.number(),
|
|
749
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
750
|
+
queueID: import_zod6.z.string(),
|
|
751
|
+
pointsConfig: import_zod6.z.object({
|
|
752
|
+
PointsForWin: import_zod6.z.number(),
|
|
753
|
+
PointsForLoss: import_zod6.z.number()
|
|
754
|
+
})
|
|
755
|
+
}),
|
|
756
|
+
TOURNAMENT: import_zod6.z.object({
|
|
757
|
+
EventPresetName: import_zod6.z.string(),
|
|
758
|
+
eventType: import_zod6.z.string(),
|
|
759
|
+
bestOfN: import_zod6.z.number(),
|
|
760
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
761
|
+
queueID: import_zod6.z.string(),
|
|
762
|
+
pointsConfig: import_zod6.z.object({
|
|
763
|
+
PointsForWin: import_zod6.z.number(),
|
|
764
|
+
PointsForLoss: import_zod6.z.number()
|
|
765
|
+
})
|
|
766
|
+
})
|
|
767
|
+
})
|
|
768
|
+
})
|
|
769
|
+
}),
|
|
770
|
+
FlawlessPointRequirement: import_zod6.z.number(),
|
|
771
|
+
ChampionshipPointRequirement: import_zod6.z.number(),
|
|
772
|
+
ChampionshipEventID: import_zod6.z.string(),
|
|
773
|
+
EnrollmentPhaseStartDateTime: import_zod6.z.string(),
|
|
774
|
+
EnrollmentPhaseEndDateTime: import_zod6.z.string(),
|
|
775
|
+
LeaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
|
|
776
|
+
LeaderboardPromotionFinalizationDateTime: import_zod6.z.string(),
|
|
777
|
+
LeaderboardFinalizationDateTime: import_zod6.z.string(),
|
|
778
|
+
ContenderEligibilityExpiryDateTime: import_zod6.z.string(),
|
|
779
|
+
StageLockTime: import_zod6.z.string(),
|
|
780
|
+
ParticipationRewardsActIDs: import_zod6.z.array(import_zod6.z.string()),
|
|
781
|
+
ParticipationRewards: import_zod6.z.object({
|
|
782
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
783
|
+
ItemTypeID: import_zod6.z.string(),
|
|
784
|
+
ItemID: import_zod6.z.string(),
|
|
785
|
+
Amount: import_zod6.z.number()
|
|
786
|
+
}))
|
|
787
|
+
}),
|
|
788
|
+
TournamentWinnerRewards: import_zod6.z.object({}),
|
|
789
|
+
DivisionWinnerRewards: import_zod6.z.object({
|
|
790
|
+
ADVANCED: import_zod6.z.object({
|
|
791
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
792
|
+
ItemTypeID: import_zod6.z.string(),
|
|
793
|
+
ItemID: import_zod6.z.string(),
|
|
794
|
+
Amount: import_zod6.z.number()
|
|
795
|
+
}))
|
|
796
|
+
}).optional(),
|
|
797
|
+
CONTENDER: import_zod6.z.object({
|
|
798
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
799
|
+
ItemTypeID: import_zod6.z.string(),
|
|
800
|
+
ItemID: import_zod6.z.string(),
|
|
801
|
+
Amount: import_zod6.z.number()
|
|
802
|
+
}))
|
|
803
|
+
}).optional(),
|
|
804
|
+
ELITE: import_zod6.z.object({
|
|
805
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
806
|
+
ItemTypeID: import_zod6.z.string(),
|
|
807
|
+
ItemID: import_zod6.z.string(),
|
|
808
|
+
Amount: import_zod6.z.number()
|
|
809
|
+
}))
|
|
810
|
+
}).optional(),
|
|
811
|
+
INTERMEDIATE: import_zod6.z.object({
|
|
812
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
813
|
+
ItemTypeID: import_zod6.z.string(),
|
|
814
|
+
ItemID: import_zod6.z.string(),
|
|
815
|
+
Amount: import_zod6.z.number()
|
|
816
|
+
}))
|
|
817
|
+
}).optional(),
|
|
818
|
+
OPEN: import_zod6.z.object({
|
|
819
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
820
|
+
ItemTypeID: import_zod6.z.string(),
|
|
821
|
+
ItemID: import_zod6.z.string(),
|
|
822
|
+
Amount: import_zod6.z.number()
|
|
823
|
+
}))
|
|
824
|
+
}).optional(),
|
|
825
|
+
INVITE: import_zod6.z.object({
|
|
826
|
+
EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
|
|
827
|
+
ItemTypeID: import_zod6.z.string(),
|
|
828
|
+
ItemID: import_zod6.z.string(),
|
|
829
|
+
Amount: import_zod6.z.number()
|
|
830
|
+
}))
|
|
831
|
+
}).optional()
|
|
832
|
+
}),
|
|
833
|
+
RosterRecentActivityNumSeasons: import_zod6.z.number()
|
|
834
|
+
}))
|
|
835
|
+
}) }
|
|
836
|
+
};
|
|
837
|
+
var premierActiveSeasonEndpoint = {
|
|
838
|
+
name: "Premier Active Season",
|
|
839
|
+
description: "The Premier season that is running now.",
|
|
840
|
+
category: "Premier Endpoints",
|
|
841
|
+
type: "pd",
|
|
842
|
+
suffix: "premier/v1/affinities/{region}/premier-seasons/active",
|
|
843
|
+
riotRequirements: player,
|
|
844
|
+
responses: { "200": import_zod6.z.object({
|
|
845
|
+
ID: import_zod6.z.string(),
|
|
846
|
+
Name: import_zod6.z.string(),
|
|
847
|
+
PreviousPremierSeasonID: import_zod6.z.string(),
|
|
848
|
+
NextPremierSeasonID: import_zod6.z.string(),
|
|
849
|
+
IsActive: import_zod6.z.boolean(),
|
|
850
|
+
StartTime: import_zod6.z.string(),
|
|
851
|
+
EndTime: import_zod6.z.string(),
|
|
852
|
+
Events: import_zod6.z.array(import_zod6.z.object({
|
|
853
|
+
ID: import_zod6.z.string(),
|
|
854
|
+
Type: import_zod6.z.string(),
|
|
855
|
+
StartDateTime: import_zod6.z.string(),
|
|
856
|
+
EndDateTime: import_zod6.z.string(),
|
|
857
|
+
MapSelectionStrategy: import_zod6.z.string(),
|
|
858
|
+
MapPoolMapIDs: import_zod6.z.array(import_zod6.z.string()),
|
|
859
|
+
PointsRequiredToParticipate: import_zod6.z.number()
|
|
860
|
+
})),
|
|
861
|
+
ScheduledEvents: import_zod6.z.array(import_zod6.z.object({
|
|
862
|
+
EventID: import_zod6.z.string(),
|
|
863
|
+
EventType: import_zod6.z.string(),
|
|
864
|
+
Conference: import_zod6.z.string(),
|
|
865
|
+
DivisionGroup: import_zod6.z.string(),
|
|
866
|
+
EventPresetName: import_zod6.z.string(),
|
|
867
|
+
StartDateTime: import_zod6.z.string(),
|
|
868
|
+
EndDateTime: import_zod6.z.string(),
|
|
869
|
+
TournamentRoundTimes: import_zod6.z.array(import_zod6.z.object({
|
|
870
|
+
StartDateTime: import_zod6.z.string(),
|
|
871
|
+
EndDateTime: import_zod6.z.string()
|
|
872
|
+
}))
|
|
873
|
+
})),
|
|
874
|
+
Conferences: import_zod6.z.array(import_zod6.z.object({
|
|
875
|
+
id: import_zod6.z.string(),
|
|
876
|
+
key: import_zod6.z.string(),
|
|
877
|
+
isSuper: import_zod6.z.boolean(),
|
|
878
|
+
gamePods: import_zod6.z.array(import_zod6.z.string()),
|
|
879
|
+
timezone: import_zod6.z.string(),
|
|
880
|
+
superConference: import_zod6.z.string().optional(),
|
|
881
|
+
leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
|
|
882
|
+
leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
|
|
883
|
+
})),
|
|
884
|
+
Divisions: import_zod6.z.array(import_zod6.z.object({
|
|
885
|
+
Division: import_zod6.z.number(),
|
|
886
|
+
DivisionName: import_zod6.z.string(),
|
|
887
|
+
DivisionGroup: import_zod6.z.string(),
|
|
888
|
+
EventPresetName: import_zod6.z.string()
|
|
889
|
+
})),
|
|
890
|
+
DivisionThresholds: import_zod6.z.array(import_zod6.z.object({
|
|
891
|
+
playoffThresholdType: import_zod6.z.string(),
|
|
892
|
+
playoffThresholdValue: import_zod6.z.number(),
|
|
893
|
+
promotionThresholdType: import_zod6.z.string(),
|
|
894
|
+
promotionThresholdValue: import_zod6.z.number(),
|
|
895
|
+
shouldPromoteToSuperConference: import_zod6.z.boolean(),
|
|
896
|
+
skipReseedCriteria: import_zod6.z.string(),
|
|
897
|
+
conference: import_zod6.z.string().optional(),
|
|
898
|
+
division: import_zod6.z.number().optional(),
|
|
899
|
+
promotionConference: import_zod6.z.string().optional(),
|
|
900
|
+
skipReseedCriteriaValue: import_zod6.z.number().optional()
|
|
901
|
+
})),
|
|
902
|
+
EventPresets: import_zod6.z.object({
|
|
903
|
+
PRO: import_zod6.z.object({
|
|
904
|
+
EventPresetsByEventType: import_zod6.z.object({
|
|
905
|
+
LEAGUE: import_zod6.z.object({
|
|
906
|
+
EventPresetName: import_zod6.z.string(),
|
|
907
|
+
eventType: import_zod6.z.string(),
|
|
908
|
+
bestOfN: import_zod6.z.number(),
|
|
909
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
910
|
+
queueID: import_zod6.z.string(),
|
|
911
|
+
pointsConfig: import_zod6.z.object({
|
|
912
|
+
PointsForWin: import_zod6.z.number(),
|
|
913
|
+
PointsForLoss: import_zod6.z.number()
|
|
914
|
+
})
|
|
915
|
+
}),
|
|
916
|
+
SCRIM: import_zod6.z.object({
|
|
917
|
+
EventPresetName: import_zod6.z.string(),
|
|
918
|
+
eventType: import_zod6.z.string(),
|
|
919
|
+
bestOfN: import_zod6.z.number(),
|
|
920
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
921
|
+
queueID: import_zod6.z.string(),
|
|
922
|
+
pointsConfig: import_zod6.z.object({
|
|
923
|
+
PointsForWin: import_zod6.z.number(),
|
|
924
|
+
PointsForLoss: import_zod6.z.number()
|
|
925
|
+
})
|
|
926
|
+
}),
|
|
927
|
+
TOURNAMENT: import_zod6.z.object({
|
|
928
|
+
EventPresetName: import_zod6.z.string(),
|
|
929
|
+
eventType: import_zod6.z.string(),
|
|
930
|
+
bestOfN: import_zod6.z.number(),
|
|
931
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
932
|
+
queueID: import_zod6.z.string(),
|
|
933
|
+
pointsConfig: import_zod6.z.object({
|
|
934
|
+
PointsForWin: import_zod6.z.number(),
|
|
935
|
+
PointsForLoss: import_zod6.z.number()
|
|
936
|
+
})
|
|
937
|
+
})
|
|
938
|
+
})
|
|
939
|
+
}),
|
|
940
|
+
REGULAR: import_zod6.z.object({
|
|
941
|
+
EventPresetsByEventType: import_zod6.z.object({
|
|
942
|
+
LEAGUE: import_zod6.z.object({
|
|
943
|
+
EventPresetName: import_zod6.z.string(),
|
|
944
|
+
eventType: import_zod6.z.string(),
|
|
945
|
+
bestOfN: import_zod6.z.number(),
|
|
946
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
947
|
+
queueID: import_zod6.z.string(),
|
|
948
|
+
pointsConfig: import_zod6.z.object({
|
|
949
|
+
PointsForWin: import_zod6.z.number(),
|
|
950
|
+
PointsForLoss: import_zod6.z.number()
|
|
951
|
+
})
|
|
952
|
+
}),
|
|
953
|
+
SCRIM: import_zod6.z.object({
|
|
954
|
+
EventPresetName: import_zod6.z.string(),
|
|
955
|
+
eventType: import_zod6.z.string(),
|
|
956
|
+
bestOfN: import_zod6.z.number(),
|
|
957
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
958
|
+
queueID: import_zod6.z.string(),
|
|
959
|
+
pointsConfig: import_zod6.z.object({
|
|
960
|
+
PointsForWin: import_zod6.z.number(),
|
|
961
|
+
PointsForLoss: import_zod6.z.number()
|
|
962
|
+
})
|
|
963
|
+
}),
|
|
964
|
+
TOURNAMENT: import_zod6.z.object({
|
|
965
|
+
EventPresetName: import_zod6.z.string(),
|
|
966
|
+
eventType: import_zod6.z.string(),
|
|
967
|
+
bestOfN: import_zod6.z.number(),
|
|
968
|
+
matchmakingStrategy: import_zod6.z.string(),
|
|
969
|
+
queueID: import_zod6.z.string(),
|
|
970
|
+
pointsConfig: import_zod6.z.object({
|
|
971
|
+
PointsForWin: import_zod6.z.number(),
|
|
972
|
+
PointsForLoss: import_zod6.z.number()
|
|
973
|
+
})
|
|
974
|
+
})
|
|
975
|
+
})
|
|
976
|
+
})
|
|
977
|
+
}),
|
|
978
|
+
FlawlessPointRequirement: import_zod6.z.number(),
|
|
979
|
+
ChampionshipPointRequirement: import_zod6.z.number(),
|
|
980
|
+
ChampionshipEventID: import_zod6.z.string(),
|
|
981
|
+
EnrollmentPhaseStartDateTime: import_zod6.z.string(),
|
|
982
|
+
EnrollmentPhaseEndDateTime: import_zod6.z.string(),
|
|
983
|
+
LeaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
|
|
984
|
+
LeaderboardPromotionFinalizationDateTime: import_zod6.z.string(),
|
|
985
|
+
LeaderboardFinalizationDateTime: import_zod6.z.string(),
|
|
986
|
+
ContenderEligibilityExpiryDateTime: import_zod6.z.string(),
|
|
987
|
+
StageLockTime: import_zod6.z.string(),
|
|
988
|
+
ParticipationRewards: import_zod6.z.object({}),
|
|
989
|
+
TournamentWinnerRewards: import_zod6.z.object({}),
|
|
990
|
+
DivisionWinnerRewards: import_zod6.z.object({}),
|
|
991
|
+
RosterRecentActivityNumSeasons: import_zod6.z.number()
|
|
992
|
+
}) }
|
|
993
|
+
};
|
|
994
|
+
var premierConferencesEndpoint = {
|
|
995
|
+
name: "Premier Conferences",
|
|
996
|
+
description: "Premier conferences of the region.",
|
|
997
|
+
category: "Premier Endpoints",
|
|
998
|
+
type: "pd",
|
|
999
|
+
suffix: "premier/v1/affinities/{region}/conferences",
|
|
1000
|
+
riotRequirements: player,
|
|
1001
|
+
responses: { "200": import_zod6.z.object({
|
|
1002
|
+
PremierConferences: import_zod6.z.array(import_zod6.z.object({
|
|
1003
|
+
id: import_zod6.z.string(),
|
|
1004
|
+
key: import_zod6.z.string(),
|
|
1005
|
+
isSuper: import_zod6.z.boolean(),
|
|
1006
|
+
gamePods: import_zod6.z.array(import_zod6.z.string()),
|
|
1007
|
+
timezone: import_zod6.z.string(),
|
|
1008
|
+
superConference: import_zod6.z.string().optional(),
|
|
1009
|
+
leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
|
|
1010
|
+
leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
|
|
1011
|
+
}))
|
|
1012
|
+
}) }
|
|
1013
|
+
};
|
|
1014
|
+
var premierMatchLimitEndpoint = {
|
|
1015
|
+
name: "Premier Match Limit",
|
|
1016
|
+
description: "How many Premier matches can still be played and when the limit resets.",
|
|
1017
|
+
category: "Premier Endpoints",
|
|
1018
|
+
type: "pd",
|
|
1019
|
+
suffix: "premier/v1/matchlimitinfo",
|
|
1020
|
+
riotRequirements: player,
|
|
1021
|
+
responses: { "200": import_zod6.z.object({
|
|
1022
|
+
leagueMatchLimit: import_zod6.z.number(),
|
|
1023
|
+
tournamentLimit: import_zod6.z.number(),
|
|
1024
|
+
timeUntilNextResetSeconds: import_zod6.z.number()
|
|
1025
|
+
}) }
|
|
1026
|
+
};
|
|
1027
|
+
var premierEligibilityEndpoint = {
|
|
1028
|
+
name: "Premier Eligibility",
|
|
1029
|
+
description: "Whether the player can join a Premier roster.",
|
|
1030
|
+
category: "Premier Endpoints",
|
|
1031
|
+
type: "pd",
|
|
1032
|
+
suffix: "premier/v1/player/eligibility",
|
|
1033
|
+
riotRequirements: player,
|
|
1034
|
+
responses: { "200": import_zod6.z.object({
|
|
1035
|
+
subject: import_zod6.z.string(),
|
|
1036
|
+
accountVerificationStatus: import_zod6.z.boolean(),
|
|
1037
|
+
rankedPlacementCompletionStatus: import_zod6.z.boolean(),
|
|
1038
|
+
matchLimitReached: import_zod6.z.boolean(),
|
|
1039
|
+
isOnProvidedRoster: import_zod6.z.boolean()
|
|
1040
|
+
}) }
|
|
1041
|
+
};
|
|
1042
|
+
var premierPlayerV2Endpoint = {
|
|
1043
|
+
name: "Premier Player V2",
|
|
1044
|
+
description: "Premier membership of a player: roster id and pending invites.",
|
|
1045
|
+
category: "Premier Endpoints",
|
|
1046
|
+
type: "pd",
|
|
1047
|
+
suffix: "premier/v2/players/{puuid}",
|
|
1048
|
+
riotRequirements: player,
|
|
1049
|
+
responses: { "200": import_zod6.z.object({
|
|
1050
|
+
puuid: import_zod6.z.string(),
|
|
1051
|
+
rosterId: import_zod6.z.string(),
|
|
1052
|
+
version: import_zod6.z.number(),
|
|
1053
|
+
createdAt: import_zod6.z.number(),
|
|
1054
|
+
updatedAt: import_zod6.z.number()
|
|
1055
|
+
}) }
|
|
1056
|
+
};
|
|
1057
|
+
var premierPlayerV3Endpoint = {
|
|
1058
|
+
name: "Premier Player V3",
|
|
1059
|
+
description: "Like v2, with prestige and contender eligibility.",
|
|
1060
|
+
category: "Premier Endpoints",
|
|
1061
|
+
type: "pd",
|
|
1062
|
+
suffix: "premier/v3/players/{puuid}",
|
|
1063
|
+
riotRequirements: player,
|
|
1064
|
+
responses: { "200": import_zod6.z.object({
|
|
1065
|
+
puuid: import_zod6.z.string(),
|
|
1066
|
+
rosterId: import_zod6.z.string(),
|
|
1067
|
+
prestige: import_zod6.z.object({
|
|
1068
|
+
earnedPrestige: import_zod6.z.boolean(),
|
|
1069
|
+
earnedAura: import_zod6.z.boolean(),
|
|
1070
|
+
showTag: import_zod6.z.boolean(),
|
|
1071
|
+
showPlating: import_zod6.z.boolean(),
|
|
1072
|
+
showAura: import_zod6.z.boolean()
|
|
1073
|
+
}),
|
|
1074
|
+
contenderEligibilityExpiry: import_zod6.z.string(),
|
|
1075
|
+
socialVersion: import_zod6.z.number(),
|
|
1076
|
+
premierVersion: import_zod6.z.number(),
|
|
1077
|
+
updatedAt: import_zod6.z.number(),
|
|
1078
|
+
seasons: import_zod6.z.object({
|
|
1079
|
+
"08d281c5-4426-3aaa-3316-ebaf5f2c858a": import_zod6.z.object({
|
|
1080
|
+
seasonId: import_zod6.z.string(),
|
|
1081
|
+
hasEarnedPrestigeAura: import_zod6.z.boolean(),
|
|
1082
|
+
hasEarnedParticipation: import_zod6.z.boolean(),
|
|
1083
|
+
hasEarnedDivisionWinner: import_zod6.z.boolean()
|
|
1084
|
+
}),
|
|
1085
|
+
"91be4c20-439d-8e24-f577-4ca8a98e8dc8": import_zod6.z.object({
|
|
1086
|
+
seasonId: import_zod6.z.string(),
|
|
1087
|
+
hasEarnedPrestigeAura: import_zod6.z.boolean(),
|
|
1088
|
+
hasEarnedParticipation: import_zod6.z.boolean(),
|
|
1089
|
+
hasEarnedDivisionWinner: import_zod6.z.boolean()
|
|
1090
|
+
})
|
|
1091
|
+
})
|
|
1092
|
+
}) }
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
// src/endpoints/riot/pvp.ts
|
|
1096
|
+
var import_zod7 = require("zod");
|
|
1097
|
+
var playerLoadoutV3Endpoint = {
|
|
1098
|
+
name: "Player Loadout V3",
|
|
1099
|
+
description: "Current loadout. The v2 route used by `pvp.playerLoadout` answers 404 on current clients.",
|
|
1100
|
+
category: "PVP Endpoints",
|
|
1101
|
+
type: "pd",
|
|
1102
|
+
suffix: "personalization/v3/players/{puuid}/playerloadout",
|
|
1103
|
+
riotRequirements: player,
|
|
1104
|
+
responses: { "200": import_zod7.z.object({
|
|
1105
|
+
Subject: import_zod7.z.string(),
|
|
1106
|
+
Version: import_zod7.z.number(),
|
|
1107
|
+
Guns: import_zod7.z.array(import_zod7.z.object({
|
|
1108
|
+
ID: import_zod7.z.string(),
|
|
1109
|
+
SkinID: import_zod7.z.string(),
|
|
1110
|
+
SkinLevelID: import_zod7.z.string(),
|
|
1111
|
+
ChromaID: import_zod7.z.string(),
|
|
1112
|
+
CharmInstanceID: import_zod7.z.string().optional(),
|
|
1113
|
+
CharmID: import_zod7.z.string().optional(),
|
|
1114
|
+
CharmLevelID: import_zod7.z.string().optional()
|
|
1115
|
+
})),
|
|
1116
|
+
ActiveExpressions: import_zod7.z.array(import_zod7.z.object({
|
|
1117
|
+
TypeID: import_zod7.z.string(),
|
|
1118
|
+
AssetID: import_zod7.z.string()
|
|
1119
|
+
})),
|
|
1120
|
+
DynamicOptions: import_zod7.z.object({}),
|
|
1121
|
+
Identity: import_zod7.z.object({
|
|
1122
|
+
PlayerCardID: import_zod7.z.string(),
|
|
1123
|
+
PlayerTitleID: import_zod7.z.string(),
|
|
1124
|
+
AccountLevel: import_zod7.z.number(),
|
|
1125
|
+
PreferredLevelBorderID: import_zod7.z.string(),
|
|
1126
|
+
HideAccountLevel: import_zod7.z.boolean()
|
|
1127
|
+
}),
|
|
1128
|
+
Incognito: import_zod7.z.boolean()
|
|
1129
|
+
}) }
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
// src/endpoints/riot/restrictions.ts
|
|
1133
|
+
var import_zod8 = require("zod");
|
|
1134
|
+
var avoidListEndpoint = {
|
|
1135
|
+
name: "Avoid List",
|
|
1136
|
+
description: "Players the account avoids in matchmaking.",
|
|
1137
|
+
category: "Restriction Endpoints",
|
|
1138
|
+
type: "pd",
|
|
1139
|
+
suffix: "restrictions/v1/avoidList",
|
|
1140
|
+
riotRequirements: player,
|
|
1141
|
+
responses: { "200": import_zod8.z.object({
|
|
1142
|
+
Subject: import_zod8.z.string()
|
|
1143
|
+
}) }
|
|
1144
|
+
};
|
|
1145
|
+
var activeFutureInterventionsEndpoint = {
|
|
1146
|
+
name: "Active Future Interventions",
|
|
1147
|
+
description: "Upcoming or active restrictions of the account, by category.",
|
|
1148
|
+
category: "Restriction Endpoints",
|
|
1149
|
+
type: "pd",
|
|
1150
|
+
suffix: "restrictions/v1/activeFutureInterventions",
|
|
1151
|
+
riotRequirements: player,
|
|
1152
|
+
responses: { "200": import_zod8.z.object({
|
|
1153
|
+
Subject: import_zod8.z.string()
|
|
1154
|
+
}) }
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
// src/endpoints/riot/store.ts
|
|
1158
|
+
var import_zod9 = require("zod");
|
|
1159
|
+
var agentStoreEndpoint = {
|
|
1160
|
+
name: "Agent Store",
|
|
1161
|
+
description: "Agents offered in the store.",
|
|
1162
|
+
category: "Store Endpoints",
|
|
1163
|
+
type: "pd",
|
|
1164
|
+
suffix: "store/v1/storefronts/agent",
|
|
1165
|
+
riotRequirements: player,
|
|
1166
|
+
responses: { "200": import_zod9.z.object({
|
|
1167
|
+
AgentStore: import_zod9.z.object({
|
|
1168
|
+
AgentStoreOffers: import_zod9.z.array(import_zod9.z.object({
|
|
1169
|
+
AgentID: import_zod9.z.string(),
|
|
1170
|
+
StoreOffers: import_zod9.z.array(import_zod9.z.object({
|
|
1171
|
+
OfferID: import_zod9.z.string(),
|
|
1172
|
+
IsDirectPurchase: import_zod9.z.boolean(),
|
|
1173
|
+
StartDate: import_zod9.z.string(),
|
|
1174
|
+
Cost: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.number()),
|
|
1175
|
+
Rewards: import_zod9.z.array(import_zod9.z.object({
|
|
1176
|
+
ItemTypeID: import_zod9.z.string(),
|
|
1177
|
+
ItemID: import_zod9.z.string(),
|
|
1178
|
+
Quantity: import_zod9.z.number()
|
|
1179
|
+
}))
|
|
1180
|
+
}))
|
|
1181
|
+
})),
|
|
1182
|
+
CurrentFeaturedAgent: import_zod9.z.string(),
|
|
1183
|
+
NextFeaturedAgent: import_zod9.z.string()
|
|
1184
|
+
})
|
|
1185
|
+
}) }
|
|
1186
|
+
};
|
|
1187
|
+
var allEntitlementsEndpoint = {
|
|
1188
|
+
name: "All Entitlements",
|
|
1189
|
+
description: "Everything the player owns, grouped by item type. This is the call without an item type, which is the shape `store.ownedItems` describes.",
|
|
1190
|
+
category: "Store Endpoints",
|
|
1191
|
+
type: "pd",
|
|
1192
|
+
suffix: "store/v1/entitlements/{puuid}",
|
|
1193
|
+
riotRequirements: player,
|
|
1194
|
+
responses: { "200": import_zod9.z.object({
|
|
1195
|
+
EntitlementsByTypes: import_zod9.z.array(import_zod9.z.object({
|
|
1196
|
+
ItemTypeID: import_zod9.z.string(),
|
|
1197
|
+
Entitlements: import_zod9.z.array(import_zod9.z.object({
|
|
1198
|
+
TypeID: import_zod9.z.string(),
|
|
1199
|
+
ItemID: import_zod9.z.string(),
|
|
1200
|
+
InstanceID: import_zod9.z.string().optional()
|
|
1201
|
+
}))
|
|
1202
|
+
}))
|
|
1203
|
+
}) }
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
// src/endpoints/riot/storefront.ts
|
|
1207
|
+
var import_zod10 = require("zod");
|
|
1208
|
+
var storefrontV3Endpoint = {
|
|
1209
|
+
name: "Storefront V3",
|
|
1210
|
+
description: "Get the current storefront of the player: featured bundles, the daily skin offers, accessories and night market plugins. Replaces the v2 storefront endpoint, which now answers 404.",
|
|
1211
|
+
category: "Store Endpoints",
|
|
1212
|
+
type: "pd",
|
|
1213
|
+
method: "POST",
|
|
1214
|
+
suffix: "store/v3/storefront/{puuid}",
|
|
1215
|
+
headers: /* @__PURE__ */ new Map([["Content-Type", "application/json"]]),
|
|
1216
|
+
riotRequirements: player,
|
|
1217
|
+
responses: { "200": import_zod10.z.object({
|
|
1218
|
+
FeaturedBundle: import_zod10.z.object({
|
|
1219
|
+
Bundle: import_zod10.z.object({
|
|
1220
|
+
ID: import_zod10.z.string(),
|
|
1221
|
+
DataAssetID: import_zod10.z.string(),
|
|
1222
|
+
CurrencyID: import_zod10.z.string(),
|
|
1223
|
+
Items: import_zod10.z.array(import_zod10.z.object({
|
|
1224
|
+
Item: import_zod10.z.object({
|
|
1225
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1226
|
+
ItemID: import_zod10.z.string(),
|
|
1227
|
+
Amount: import_zod10.z.number()
|
|
1228
|
+
}),
|
|
1229
|
+
BasePrice: import_zod10.z.number(),
|
|
1230
|
+
CurrencyID: import_zod10.z.string(),
|
|
1231
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1232
|
+
DiscountedPrice: import_zod10.z.number(),
|
|
1233
|
+
IsPromoItem: import_zod10.z.boolean()
|
|
1234
|
+
})),
|
|
1235
|
+
ItemOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1236
|
+
BundleItemOfferID: import_zod10.z.string(),
|
|
1237
|
+
Offer: import_zod10.z.object({
|
|
1238
|
+
OfferID: import_zod10.z.string(),
|
|
1239
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1240
|
+
StartDate: import_zod10.z.string(),
|
|
1241
|
+
Cost: import_zod10.z.object({
|
|
1242
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1243
|
+
}),
|
|
1244
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1245
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1246
|
+
ItemID: import_zod10.z.string(),
|
|
1247
|
+
Quantity: import_zod10.z.number()
|
|
1248
|
+
}))
|
|
1249
|
+
}),
|
|
1250
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1251
|
+
DiscountedCost: import_zod10.z.object({
|
|
1252
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1253
|
+
})
|
|
1254
|
+
})),
|
|
1255
|
+
TotalBaseCost: import_zod10.z.object({
|
|
1256
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1257
|
+
}),
|
|
1258
|
+
TotalDiscountedCost: import_zod10.z.object({
|
|
1259
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1260
|
+
}),
|
|
1261
|
+
TotalDiscountPercent: import_zod10.z.number(),
|
|
1262
|
+
DurationRemainingInSeconds: import_zod10.z.number(),
|
|
1263
|
+
WholesaleOnly: import_zod10.z.boolean(),
|
|
1264
|
+
IsGiftable: import_zod10.z.number()
|
|
1265
|
+
}),
|
|
1266
|
+
Bundles: import_zod10.z.array(import_zod10.z.object({
|
|
1267
|
+
ID: import_zod10.z.string(),
|
|
1268
|
+
DataAssetID: import_zod10.z.string(),
|
|
1269
|
+
CurrencyID: import_zod10.z.string(),
|
|
1270
|
+
Items: import_zod10.z.array(import_zod10.z.object({
|
|
1271
|
+
Item: import_zod10.z.object({
|
|
1272
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1273
|
+
ItemID: import_zod10.z.string(),
|
|
1274
|
+
Amount: import_zod10.z.number()
|
|
1275
|
+
}),
|
|
1276
|
+
BasePrice: import_zod10.z.number(),
|
|
1277
|
+
CurrencyID: import_zod10.z.string(),
|
|
1278
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1279
|
+
DiscountedPrice: import_zod10.z.number(),
|
|
1280
|
+
IsPromoItem: import_zod10.z.boolean()
|
|
1281
|
+
})),
|
|
1282
|
+
ItemOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1283
|
+
BundleItemOfferID: import_zod10.z.string(),
|
|
1284
|
+
Offer: import_zod10.z.object({
|
|
1285
|
+
OfferID: import_zod10.z.string(),
|
|
1286
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1287
|
+
StartDate: import_zod10.z.string(),
|
|
1288
|
+
Cost: import_zod10.z.object({
|
|
1289
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1290
|
+
}),
|
|
1291
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1292
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1293
|
+
ItemID: import_zod10.z.string(),
|
|
1294
|
+
Quantity: import_zod10.z.number()
|
|
1295
|
+
}))
|
|
1296
|
+
}),
|
|
1297
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1298
|
+
DiscountedCost: import_zod10.z.object({
|
|
1299
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1300
|
+
})
|
|
1301
|
+
})),
|
|
1302
|
+
TotalBaseCost: import_zod10.z.object({
|
|
1303
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1304
|
+
}),
|
|
1305
|
+
TotalDiscountedCost: import_zod10.z.object({
|
|
1306
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1307
|
+
}),
|
|
1308
|
+
TotalDiscountPercent: import_zod10.z.number(),
|
|
1309
|
+
DurationRemainingInSeconds: import_zod10.z.number(),
|
|
1310
|
+
WholesaleOnly: import_zod10.z.boolean(),
|
|
1311
|
+
IsGiftable: import_zod10.z.number()
|
|
1312
|
+
})),
|
|
1313
|
+
FeaturedTileEntries: import_zod10.z.array(import_zod10.z.object({
|
|
1314
|
+
Type: import_zod10.z.number(),
|
|
1315
|
+
Entry: import_zod10.z.object({
|
|
1316
|
+
Bundle: import_zod10.z.object({
|
|
1317
|
+
ID: import_zod10.z.string(),
|
|
1318
|
+
DataAssetID: import_zod10.z.string(),
|
|
1319
|
+
CurrencyID: import_zod10.z.string(),
|
|
1320
|
+
Items: import_zod10.z.array(import_zod10.z.object({
|
|
1321
|
+
Item: import_zod10.z.object({
|
|
1322
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1323
|
+
ItemID: import_zod10.z.string(),
|
|
1324
|
+
Amount: import_zod10.z.number()
|
|
1325
|
+
}),
|
|
1326
|
+
BasePrice: import_zod10.z.number(),
|
|
1327
|
+
CurrencyID: import_zod10.z.string(),
|
|
1328
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1329
|
+
DiscountedPrice: import_zod10.z.number(),
|
|
1330
|
+
IsPromoItem: import_zod10.z.boolean()
|
|
1331
|
+
})),
|
|
1332
|
+
ItemOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1333
|
+
BundleItemOfferID: import_zod10.z.string(),
|
|
1334
|
+
Offer: import_zod10.z.object({
|
|
1335
|
+
OfferID: import_zod10.z.string(),
|
|
1336
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1337
|
+
StartDate: import_zod10.z.string(),
|
|
1338
|
+
Cost: import_zod10.z.object({
|
|
1339
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1340
|
+
}),
|
|
1341
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1342
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1343
|
+
ItemID: import_zod10.z.string(),
|
|
1344
|
+
Quantity: import_zod10.z.number()
|
|
1345
|
+
}))
|
|
1346
|
+
}),
|
|
1347
|
+
DiscountPercent: import_zod10.z.number(),
|
|
1348
|
+
DiscountedCost: import_zod10.z.object({
|
|
1349
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1350
|
+
})
|
|
1351
|
+
})),
|
|
1352
|
+
TotalBaseCost: import_zod10.z.object({
|
|
1353
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1354
|
+
}),
|
|
1355
|
+
TotalDiscountedCost: import_zod10.z.object({
|
|
1356
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1357
|
+
}),
|
|
1358
|
+
TotalDiscountPercent: import_zod10.z.number(),
|
|
1359
|
+
DurationRemainingInSeconds: import_zod10.z.number(),
|
|
1360
|
+
WholesaleOnly: import_zod10.z.boolean(),
|
|
1361
|
+
IsGiftable: import_zod10.z.number()
|
|
1362
|
+
})
|
|
1363
|
+
})
|
|
1364
|
+
})),
|
|
1365
|
+
BundleRemainingDurationInSeconds: import_zod10.z.number()
|
|
1366
|
+
}),
|
|
1367
|
+
SkinsPanelLayout: import_zod10.z.object({
|
|
1368
|
+
SingleItemOffers: import_zod10.z.array(import_zod10.z.string()),
|
|
1369
|
+
SingleItemStoreOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1370
|
+
OfferID: import_zod10.z.string(),
|
|
1371
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1372
|
+
StartDate: import_zod10.z.string(),
|
|
1373
|
+
Cost: import_zod10.z.object({
|
|
1374
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1375
|
+
}),
|
|
1376
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1377
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1378
|
+
ItemID: import_zod10.z.string(),
|
|
1379
|
+
Quantity: import_zod10.z.number()
|
|
1380
|
+
}))
|
|
1381
|
+
})),
|
|
1382
|
+
SingleItemOffersRemainingDurationInSeconds: import_zod10.z.number()
|
|
1383
|
+
}),
|
|
1384
|
+
UpgradeCurrencyStore: import_zod10.z.object({
|
|
1385
|
+
UpgradeCurrencyOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1386
|
+
OfferID: import_zod10.z.string(),
|
|
1387
|
+
StorefrontItemID: import_zod10.z.string(),
|
|
1388
|
+
Offer: import_zod10.z.object({
|
|
1389
|
+
OfferID: import_zod10.z.string(),
|
|
1390
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1391
|
+
StartDate: import_zod10.z.string(),
|
|
1392
|
+
Cost: import_zod10.z.object({
|
|
1393
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1394
|
+
}),
|
|
1395
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1396
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1397
|
+
ItemID: import_zod10.z.string(),
|
|
1398
|
+
Quantity: import_zod10.z.number()
|
|
1399
|
+
}))
|
|
1400
|
+
}),
|
|
1401
|
+
DiscountedPercent: import_zod10.z.number()
|
|
1402
|
+
}))
|
|
1403
|
+
}),
|
|
1404
|
+
AccessoryStore: import_zod10.z.object({
|
|
1405
|
+
AccessoryStoreOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1406
|
+
Offer: import_zod10.z.object({
|
|
1407
|
+
OfferID: import_zod10.z.string(),
|
|
1408
|
+
IsDirectPurchase: import_zod10.z.boolean(),
|
|
1409
|
+
StartDate: import_zod10.z.string(),
|
|
1410
|
+
Cost: import_zod10.z.object({
|
|
1411
|
+
"85ca954a-41f2-ce94-9b45-8ca3dd39a00d": import_zod10.z.number()
|
|
1412
|
+
}),
|
|
1413
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1414
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1415
|
+
ItemID: import_zod10.z.string(),
|
|
1416
|
+
Quantity: import_zod10.z.number()
|
|
1417
|
+
}))
|
|
1418
|
+
}),
|
|
1419
|
+
ContractID: import_zod10.z.string()
|
|
1420
|
+
})),
|
|
1421
|
+
AccessoryStoreRemainingDurationInSeconds: import_zod10.z.number(),
|
|
1422
|
+
StorefrontID: import_zod10.z.string()
|
|
1423
|
+
}),
|
|
1424
|
+
PluginStores: import_zod10.z.array(import_zod10.z.object({
|
|
1425
|
+
PluginID: import_zod10.z.string(),
|
|
1426
|
+
PluginOffers: import_zod10.z.object({
|
|
1427
|
+
StoreOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1428
|
+
PurchaseInformation: import_zod10.z.object({
|
|
1429
|
+
DataAssetID: import_zod10.z.string(),
|
|
1430
|
+
OfferID: import_zod10.z.string(),
|
|
1431
|
+
OfferType: import_zod10.z.number(),
|
|
1432
|
+
StartDate: import_zod10.z.string(),
|
|
1433
|
+
PrimaryCurrencyID: import_zod10.z.string(),
|
|
1434
|
+
Cost: import_zod10.z.object({
|
|
1435
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1436
|
+
}),
|
|
1437
|
+
DiscountedCost: import_zod10.z.object({
|
|
1438
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1439
|
+
}),
|
|
1440
|
+
DiscountedPercentage: import_zod10.z.number(),
|
|
1441
|
+
WholesaleOnly: import_zod10.z.boolean(),
|
|
1442
|
+
IsGiftable: import_zod10.z.number()
|
|
1443
|
+
}),
|
|
1444
|
+
SubOffers: import_zod10.z.array(import_zod10.z.object({
|
|
1445
|
+
PurchaseInformation: import_zod10.z.object({
|
|
1446
|
+
DataAssetID: import_zod10.z.string(),
|
|
1447
|
+
OfferID: import_zod10.z.string(),
|
|
1448
|
+
OfferType: import_zod10.z.number(),
|
|
1449
|
+
StartDate: import_zod10.z.string(),
|
|
1450
|
+
PrimaryCurrencyID: import_zod10.z.string(),
|
|
1451
|
+
Cost: import_zod10.z.object({
|
|
1452
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1453
|
+
}),
|
|
1454
|
+
DiscountedCost: import_zod10.z.object({
|
|
1455
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
|
|
1456
|
+
}),
|
|
1457
|
+
DiscountedPercentage: import_zod10.z.number(),
|
|
1458
|
+
Rewards: import_zod10.z.array(import_zod10.z.object({
|
|
1459
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1460
|
+
ItemID: import_zod10.z.string(),
|
|
1461
|
+
Quantity: import_zod10.z.number()
|
|
1462
|
+
})),
|
|
1463
|
+
WholesaleOnly: import_zod10.z.boolean(),
|
|
1464
|
+
IsGiftable: import_zod10.z.number()
|
|
1465
|
+
})
|
|
1466
|
+
}))
|
|
1467
|
+
})),
|
|
1468
|
+
RemainingDurationInSeconds: import_zod10.z.number()
|
|
1469
|
+
}),
|
|
1470
|
+
StartDate: import_zod10.z.string()
|
|
1471
|
+
}))
|
|
1472
|
+
}) }
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
// src/endpoints/riot/voice.ts
|
|
1476
|
+
var import_zod11 = require("zod");
|
|
488
1477
|
var voiceAudioPropertiesEndpoint = {
|
|
489
1478
|
name: "Audio Properties",
|
|
490
1479
|
description: "Get audio properties such as if the microphone is in use",
|
|
491
|
-
queryName: "VOICE_CHAT_RNet_FetchAudioProperties",
|
|
492
1480
|
category: "Local Endpoints - Voice",
|
|
493
1481
|
type: "local",
|
|
494
1482
|
suffix: "voice-chat/v1/audio-properties",
|
|
495
1483
|
riotRequirements: { localAuth: true },
|
|
496
|
-
responses: { "200":
|
|
1484
|
+
responses: { "200": import_zod11.z.object({
|
|
1485
|
+
fastEnergyMeter: import_zod11.z.number(),
|
|
1486
|
+
isLoopbackEnabled: import_zod11.z.boolean(),
|
|
1487
|
+
isMicActive: import_zod11.z.boolean(),
|
|
1488
|
+
isSpeakerActive: import_zod11.z.boolean(),
|
|
1489
|
+
micEnergy: import_zod11.z.number(),
|
|
1490
|
+
micVolume: import_zod11.z.number(),
|
|
1491
|
+
noiseFloorMeter: import_zod11.z.number(),
|
|
1492
|
+
speakerEnergy: import_zod11.z.number(),
|
|
1493
|
+
speakerVolume: import_zod11.z.number(),
|
|
1494
|
+
speechThresholdMeter: import_zod11.z.number()
|
|
1495
|
+
}) }
|
|
497
1496
|
};
|
|
498
1497
|
var voiceCaptureDevicesEndpoint = {
|
|
499
1498
|
name: "Capture Devices",
|
|
500
1499
|
description: "Get microphone input device info",
|
|
501
|
-
queryName: "VOICE_CHAT_RNet_FetchCaptureDevices",
|
|
502
1500
|
category: "Local Endpoints - Voice",
|
|
503
1501
|
type: "local",
|
|
504
1502
|
suffix: "voice-chat/v2/devices/capture",
|
|
505
1503
|
riotRequirements: { localAuth: true },
|
|
506
|
-
responses: { "200":
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
type: "local",
|
|
514
|
-
suffix: "voice-chat/v2/push-to-talk/valorant",
|
|
515
|
-
riotRequirements: { localAuth: true },
|
|
516
|
-
responses: { "200": import_zod2.z.unknown() }
|
|
1504
|
+
responses: { "200": import_zod11.z.array(import_zod11.z.object({
|
|
1505
|
+
handle: import_zod11.z.string(),
|
|
1506
|
+
is_current_device: import_zod11.z.boolean(),
|
|
1507
|
+
is_default: import_zod11.z.boolean(),
|
|
1508
|
+
is_effective_device: import_zod11.z.boolean(),
|
|
1509
|
+
name: import_zod11.z.string()
|
|
1510
|
+
})) }
|
|
517
1511
|
};
|
|
518
1512
|
var voiceRenderDevicesEndpoint = {
|
|
519
1513
|
name: "Render Devices",
|
|
520
1514
|
description: "Get audio output devices",
|
|
521
|
-
queryName: "VOICE_CHAT_RNet_FetchRenderDevices",
|
|
522
1515
|
category: "Local Endpoints - Voice",
|
|
523
1516
|
type: "local",
|
|
524
1517
|
suffix: "voice-chat/v2/devices/render",
|
|
525
1518
|
riotRequirements: { localAuth: true },
|
|
526
|
-
responses: { "200":
|
|
1519
|
+
responses: { "200": import_zod11.z.array(import_zod11.z.object({
|
|
1520
|
+
handle: import_zod11.z.string(),
|
|
1521
|
+
is_current_device: import_zod11.z.boolean(),
|
|
1522
|
+
is_default: import_zod11.z.boolean(),
|
|
1523
|
+
is_effective_device: import_zod11.z.boolean(),
|
|
1524
|
+
name: import_zod11.z.string()
|
|
1525
|
+
})) }
|
|
527
1526
|
};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
1527
|
+
|
|
1528
|
+
// src/api/groups/pvp.ts
|
|
1529
|
+
var pvp = {
|
|
1530
|
+
content: import_valorant_api_types.endpoints.fetchContentEndpoint,
|
|
1531
|
+
accountXp: import_valorant_api_types.endpoints.accountXPEndpoint,
|
|
1532
|
+
playerLoadout: import_valorant_api_types.endpoints.playerLoadoutEndpoint,
|
|
1533
|
+
setPlayerLoadout: import_valorant_api_types.endpoints.setPlayerLoadoutEndpoint,
|
|
1534
|
+
playerMmr: import_valorant_api_types.endpoints.playerMMREndpoint,
|
|
1535
|
+
matchHistory: import_valorant_api_types.endpoints.matchHistoryEndpoint,
|
|
1536
|
+
matchDetails: import_valorant_api_types.endpoints.matchDetailsEndpoint,
|
|
1537
|
+
competitiveUpdates: import_valorant_api_types.endpoints.competitiveUpdatesEndpoint,
|
|
1538
|
+
leaderboard: import_valorant_api_types.endpoints.leaderboardEndpoint,
|
|
1539
|
+
penalties: import_valorant_api_types.endpoints.penaltiesEndpoint,
|
|
1540
|
+
config: import_valorant_api_types.endpoints.configEndpoint,
|
|
1541
|
+
nameService: import_valorant_api_types.endpoints.nameServiceEndpoint,
|
|
1542
|
+
playerLoadoutV3: playerLoadoutV3Endpoint
|
|
537
1543
|
};
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
1544
|
+
|
|
1545
|
+
// src/api/groups/party.ts
|
|
1546
|
+
var import_valorant_api_types2 = require("valorant-api-types");
|
|
1547
|
+
var party = {
|
|
1548
|
+
get: import_valorant_api_types2.endpoints.partyEndpoint,
|
|
1549
|
+
player: import_valorant_api_types2.endpoints.partyPlayerEndpoint,
|
|
1550
|
+
removePlayer: import_valorant_api_types2.endpoints.partyRemovePlayerEndpoint,
|
|
1551
|
+
setMemberReady: import_valorant_api_types2.endpoints.partySetMemberReadyEndpoint,
|
|
1552
|
+
refreshCompetitiveTier: import_valorant_api_types2.endpoints.refreshCompetitiveTierEndpoint,
|
|
1553
|
+
refreshPlayerIdentity: import_valorant_api_types2.endpoints.refreshPlayerIdentityEndpoint,
|
|
1554
|
+
refreshPings: import_valorant_api_types2.endpoints.refreshPingsEndpoint,
|
|
1555
|
+
changeQueue: import_valorant_api_types2.endpoints.changeQueueEndpoint,
|
|
1556
|
+
startCustomGame: import_valorant_api_types2.endpoints.startCustomGameEndpoint,
|
|
1557
|
+
enterMatchmakingQueue: import_valorant_api_types2.endpoints.enterMatchmakingQueueEndpoint,
|
|
1558
|
+
leaveMatchmakingQueue: import_valorant_api_types2.endpoints.leaveMatchmakingQueueEndpoint,
|
|
1559
|
+
setAccessibility: import_valorant_api_types2.endpoints.setPartyAccessibilityEndpoint,
|
|
1560
|
+
setCustomGameSettings: import_valorant_api_types2.endpoints.setCustomGameSettingsEndpoint,
|
|
1561
|
+
invite: import_valorant_api_types2.endpoints.partyInviteEndpoint,
|
|
1562
|
+
requestToJoin: import_valorant_api_types2.endpoints.partyRequestEndpoint,
|
|
1563
|
+
declineRequest: import_valorant_api_types2.endpoints.partyDeclineEndpoint,
|
|
1564
|
+
customGameConfigs: import_valorant_api_types2.endpoints.customGameConfigsEndpoint,
|
|
1565
|
+
chatToken: import_valorant_api_types2.endpoints.partyChatTokenEndpoint,
|
|
1566
|
+
voiceToken: import_valorant_api_types2.endpoints.partyVoiceTokenEndpoint,
|
|
1567
|
+
disableCode: import_valorant_api_types2.endpoints.partyDisableCodeEndpoint,
|
|
1568
|
+
generateCode: import_valorant_api_types2.endpoints.partyGenerateCodeEndpoint,
|
|
1569
|
+
joinByCode: import_valorant_api_types2.endpoints.partyJoinByCodeEndpoint
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
// src/api/groups/store.ts
|
|
1573
|
+
var import_valorant_api_types3 = require("valorant-api-types");
|
|
1574
|
+
var store = {
|
|
1575
|
+
prices: import_valorant_api_types3.endpoints.pricesEndpoint,
|
|
1576
|
+
storefront: import_valorant_api_types3.endpoints.storefrontEndpoint,
|
|
1577
|
+
wallet: import_valorant_api_types3.endpoints.walletEndpoint,
|
|
1578
|
+
ownedItems: import_valorant_api_types3.endpoints.ownedItemsEndpoint,
|
|
1579
|
+
storefrontV3: storefrontV3Endpoint,
|
|
1580
|
+
agentStore: agentStoreEndpoint,
|
|
1581
|
+
allEntitlements: allEntitlementsEndpoint
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1584
|
+
// src/api/groups/pregame.ts
|
|
1585
|
+
var import_valorant_api_types4 = require("valorant-api-types");
|
|
1586
|
+
var pregame = {
|
|
1587
|
+
player: import_valorant_api_types4.endpoints.pregamePlayerEndpoint,
|
|
1588
|
+
match: import_valorant_api_types4.endpoints.pregameMatchEndpoint,
|
|
1589
|
+
loadouts: import_valorant_api_types4.endpoints.pregameLoadoutsEndpoint,
|
|
1590
|
+
selectCharacter: import_valorant_api_types4.endpoints.selectCharacterEndpoint,
|
|
1591
|
+
lockCharacter: import_valorant_api_types4.endpoints.lockCharacterEndpoint,
|
|
1592
|
+
quit: import_valorant_api_types4.endpoints.pregameQuitEndpoint
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
// src/api/groups/currentGame.ts
|
|
1596
|
+
var import_valorant_api_types5 = require("valorant-api-types");
|
|
1597
|
+
var currentGame = {
|
|
1598
|
+
player: import_valorant_api_types5.endpoints.currentGamePlayerEndpoint,
|
|
1599
|
+
match: import_valorant_api_types5.endpoints.currentGameMatchEndpoint,
|
|
1600
|
+
loadouts: import_valorant_api_types5.endpoints.currentGameLoadoutsEndpoint,
|
|
1601
|
+
quit: import_valorant_api_types5.endpoints.currentGameQuitEndpoint
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1604
|
+
// src/api/groups/contracts.ts
|
|
1605
|
+
var import_valorant_api_types6 = require("valorant-api-types");
|
|
1606
|
+
var contracts = {
|
|
1607
|
+
itemUpgrades: import_valorant_api_types6.endpoints.itemUpgradesEndpoint,
|
|
1608
|
+
list: import_valorant_api_types6.endpoints.contractsEndpoint,
|
|
1609
|
+
activate: import_valorant_api_types6.endpoints.activateContractEndpoint,
|
|
1610
|
+
activeRecruitmentEvent: activeRecruitmentEventEndpoint
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
// src/api/groups/local.ts
|
|
1614
|
+
var import_valorant_api_types7 = require("valorant-api-types");
|
|
1615
|
+
var local = {
|
|
1616
|
+
help: import_valorant_api_types7.endpoints.localHelpEndpoint,
|
|
1617
|
+
sessions: import_valorant_api_types7.endpoints.sessionsEndpoint,
|
|
1618
|
+
rsoUserInfo: import_valorant_api_types7.endpoints.rsoUserInfoEndpoint,
|
|
1619
|
+
clientRegion: import_valorant_api_types7.endpoints.clientRegionEndpoint,
|
|
1620
|
+
accountAlias: import_valorant_api_types7.endpoints.accountAliasEndpoint,
|
|
1621
|
+
entitlementsToken: import_valorant_api_types7.endpoints.entitlementsTokenEndpoint,
|
|
1622
|
+
chatSession: import_valorant_api_types7.endpoints.chatSessionEndpoint,
|
|
1623
|
+
friends: import_valorant_api_types7.endpoints.friendsEndpoint,
|
|
1624
|
+
sendFriendRequest: import_valorant_api_types7.endpoints.sendFriendRequestEndpoint,
|
|
1625
|
+
removeFriendRequest: import_valorant_api_types7.endpoints.removeFriendRequestEndpoint,
|
|
1626
|
+
presence: import_valorant_api_types7.endpoints.presenceEndpoint,
|
|
1627
|
+
friendRequests: import_valorant_api_types7.endpoints.friendRequestsEndpoint,
|
|
1628
|
+
swaggerDocs: import_valorant_api_types7.endpoints.localSwaggerDocsEndpoint,
|
|
1629
|
+
eula: localEulaEndpoint,
|
|
1630
|
+
privacyPolicy: localPrivacyPolicyEndpoint,
|
|
1631
|
+
availableLocales: localAvailableLocalesEndpoint,
|
|
1632
|
+
locale: localLocaleEndpoint,
|
|
1633
|
+
riotStatus: localRiotStatusEndpoint,
|
|
1634
|
+
accessToken: localAccessTokenEndpoint,
|
|
1635
|
+
pluginStatus: localPluginStatusEndpoint,
|
|
1636
|
+
rmsSession: localRmsSessionEndpoint,
|
|
1637
|
+
processInfo: localProcessInfoEndpoint,
|
|
1638
|
+
logPath: localLogPathEndpoint
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
// src/api/groups/chat.ts
|
|
1642
|
+
var import_valorant_api_types8 = require("valorant-api-types");
|
|
1643
|
+
var chat = {
|
|
1644
|
+
partyInfo: import_valorant_api_types8.endpoints.partyChatInfoEndpoint,
|
|
1645
|
+
pregameInfo: import_valorant_api_types8.endpoints.pregameChatInfoEndpoint,
|
|
1646
|
+
currentGameInfo: import_valorant_api_types8.endpoints.currentGameChatInfoEndpoint,
|
|
1647
|
+
allInfo: import_valorant_api_types8.endpoints.allChatInfoEndpoint,
|
|
1648
|
+
participants: import_valorant_api_types8.endpoints.chatParticipantsEndpoint,
|
|
1649
|
+
send: import_valorant_api_types8.endpoints.sendChatEndpoint,
|
|
1650
|
+
history: import_valorant_api_types8.endpoints.chatHistoryEndpoint,
|
|
1651
|
+
settings: chatSettingsEndpoint,
|
|
1652
|
+
tournamentInfo: chatTournamentInfoEndpoint
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
// src/api/groups/voice.ts
|
|
1656
|
+
var voice = {
|
|
1657
|
+
audioProperties: voiceAudioPropertiesEndpoint,
|
|
1658
|
+
captureDevices: voiceCaptureDevicesEndpoint,
|
|
1659
|
+
renderDevices: voiceRenderDevicesEndpoint
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
// src/api/groups/premier.ts
|
|
1663
|
+
var premier = {
|
|
1664
|
+
seasons: premierSeasonsEndpoint,
|
|
1665
|
+
activeSeason: premierActiveSeasonEndpoint,
|
|
1666
|
+
conferences: premierConferencesEndpoint,
|
|
1667
|
+
matchLimit: premierMatchLimitEndpoint,
|
|
1668
|
+
eligibility: premierEligibilityEndpoint,
|
|
1669
|
+
playerV2: premierPlayerV2Endpoint,
|
|
1670
|
+
playerV3: premierPlayerV3Endpoint
|
|
607
1671
|
};
|
|
608
1672
|
|
|
609
|
-
// src/
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
1673
|
+
// src/api/groups/esports.ts
|
|
1674
|
+
var esports = {
|
|
1675
|
+
liveEventTimes: esportsLiveEventTimesEndpoint,
|
|
1676
|
+
upcomingMatches: esportsUpcomingMatchesEndpoint,
|
|
1677
|
+
pickemLeagues: esportsPickemLeaguesEndpoint
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
// src/api/groups/restrictions.ts
|
|
1681
|
+
var restrictions = {
|
|
1682
|
+
avoidList: avoidListEndpoint,
|
|
1683
|
+
activeFutureInterventions: activeFutureInterventionsEndpoint
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
// src/api/groups/account.ts
|
|
1687
|
+
var account = {
|
|
1688
|
+
dailyTicket: dailyTicketEndpoint,
|
|
1689
|
+
dailyTicketQueueConfig: dailyTicketQueueConfigEndpoint,
|
|
1690
|
+
favorites: favoritesEndpoint,
|
|
1691
|
+
goldstars: goldstarsEndpoint,
|
|
1692
|
+
goldstarsPlayer: goldstarsPlayerEndpoint,
|
|
1693
|
+
bloomlineQueues: bloomlineQueuesEndpoint,
|
|
1694
|
+
bloomlinePlayer: bloomlinePlayerEndpoint
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
// src/api/groups/auth.ts
|
|
1698
|
+
var import_valorant_api_types9 = require("valorant-api-types");
|
|
1699
|
+
var auth = {
|
|
1700
|
+
cookies: import_valorant_api_types9.endpoints.authCookiesEndpoint,
|
|
1701
|
+
request: import_valorant_api_types9.endpoints.authRequestEndpoint,
|
|
1702
|
+
multiFactor: import_valorant_api_types9.endpoints.multiFactorAuthenticationEndpoint,
|
|
1703
|
+
cookieReauth: import_valorant_api_types9.endpoints.cookieReauthEndpoint,
|
|
1704
|
+
entitlement: import_valorant_api_types9.endpoints.entitlementEndpoint,
|
|
1705
|
+
playerInfo: import_valorant_api_types9.endpoints.playerInfoEndpoint,
|
|
1706
|
+
riotGeo: import_valorant_api_types9.endpoints.riotGeoEndpoint,
|
|
1707
|
+
pasToken: import_valorant_api_types9.endpoints.pasTokenEndpoint,
|
|
1708
|
+
riotClientConfig: import_valorant_api_types9.endpoints.riotClientConfigEndpoint
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
// src/endpoints/catalog/index.ts
|
|
1712
|
+
var import_zod14 = require("zod");
|
|
1713
|
+
|
|
1714
|
+
// src/endpoints/catalog/factory.ts
|
|
1715
|
+
var import_zod12 = require("zod");
|
|
1716
|
+
|
|
1717
|
+
// src/envelope.ts
|
|
1718
|
+
var enveloped = /* @__PURE__ */ new WeakSet();
|
|
1719
|
+
function markEnveloped(endpoint2) {
|
|
1720
|
+
enveloped.add(endpoint2);
|
|
1721
|
+
return endpoint2;
|
|
1722
|
+
}
|
|
1723
|
+
function unwrapEnvelope(endpoint2, body) {
|
|
1724
|
+
if (enveloped.has(endpoint2) && typeof body === "object" && body !== null && "data" in body) {
|
|
1725
|
+
return body.data;
|
|
1726
|
+
}
|
|
1727
|
+
return body;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
// src/endpoints/catalog/factory.ts
|
|
1731
|
+
var BASE = "https://valorant-api.com/v1/";
|
|
1732
|
+
function query(queryParams = []) {
|
|
1733
|
+
return new Map([
|
|
1734
|
+
["language", import_zod12.z.string().optional().describe("Language code such as `fr-FR`. Defaults to `en-US`.")],
|
|
1735
|
+
...queryParams
|
|
1736
|
+
]);
|
|
1737
|
+
}
|
|
1738
|
+
function endpoint(name, description, path, schema, queryParams = []) {
|
|
1739
|
+
return markEnveloped({
|
|
1740
|
+
name,
|
|
1741
|
+
description,
|
|
1742
|
+
category: "Valorant-API.com",
|
|
1743
|
+
type: "other",
|
|
1744
|
+
suffix: `${BASE}${path}`,
|
|
1745
|
+
query: query(queryParams),
|
|
1746
|
+
responses: { "200": schema }
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
function collection(title, singular, path, schema, queryParams = []) {
|
|
1750
|
+
return {
|
|
1751
|
+
list: endpoint(title, `List of ${title.toLowerCase()}`, path, import_zod12.z.array(schema), queryParams),
|
|
1752
|
+
one: endpoint(singular, `One ${singular.toLowerCase()} by UUID`, `${path}/{uuid}`, schema)
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
// src/endpoints/catalog/schemas.ts
|
|
1757
|
+
var import_zod13 = require("zod");
|
|
1758
|
+
var text = import_zod13.z.string().nullish();
|
|
1759
|
+
var asset = import_zod13.z.object({
|
|
1760
|
+
uuid: import_zod13.z.string(),
|
|
1761
|
+
displayName: text,
|
|
1762
|
+
displayIcon: text,
|
|
1763
|
+
assetPath: text
|
|
1764
|
+
}).passthrough();
|
|
1765
|
+
var agentSchema = asset.extend({
|
|
1766
|
+
description: text,
|
|
1767
|
+
developerName: text,
|
|
1768
|
+
characterTags: import_zod13.z.array(import_zod13.z.string()).nullish(),
|
|
1769
|
+
displayIconSmall: text,
|
|
1770
|
+
bustPortrait: text,
|
|
1771
|
+
fullPortrait: text,
|
|
1772
|
+
killfeedPortrait: text,
|
|
1773
|
+
background: text,
|
|
1774
|
+
isPlayableCharacter: import_zod13.z.boolean(),
|
|
1775
|
+
role: import_zod13.z.object({ uuid: import_zod13.z.string(), displayName: text, description: text, displayIcon: text }).passthrough().nullish(),
|
|
1776
|
+
abilities: import_zod13.z.array(import_zod13.z.object({ slot: import_zod13.z.string(), displayName: text, description: text, displayIcon: text }).passthrough()).nullish()
|
|
1777
|
+
});
|
|
1778
|
+
var mapSchema = asset.extend({
|
|
1779
|
+
coordinates: text,
|
|
1780
|
+
listViewIcon: text,
|
|
1781
|
+
splash: text,
|
|
1782
|
+
mapUrl: text,
|
|
1783
|
+
xMultiplier: import_zod13.z.number(),
|
|
1784
|
+
yMultiplier: import_zod13.z.number(),
|
|
1785
|
+
xScalarToAdd: import_zod13.z.number(),
|
|
1786
|
+
yScalarToAdd: import_zod13.z.number(),
|
|
1787
|
+
callouts: import_zod13.z.array(import_zod13.z.object({ regionName: import_zod13.z.string(), superRegionName: import_zod13.z.string(), location: import_zod13.z.object({ x: import_zod13.z.number(), y: import_zod13.z.number() }) }).passthrough()).nullish()
|
|
1788
|
+
});
|
|
1789
|
+
var weaponSchema = asset.extend({
|
|
1790
|
+
category: import_zod13.z.string(),
|
|
1791
|
+
defaultSkinUuid: import_zod13.z.string(),
|
|
1792
|
+
killStreamIcon: text,
|
|
1793
|
+
weaponStats: import_zod13.z.object({}).passthrough().nullish(),
|
|
1794
|
+
shopData: import_zod13.z.object({}).passthrough().nullish(),
|
|
1795
|
+
skins: import_zod13.z.array(import_zod13.z.object({}).passthrough())
|
|
1796
|
+
});
|
|
1797
|
+
var skinSchema = asset.extend({
|
|
1798
|
+
themeUuid: import_zod13.z.string(),
|
|
1799
|
+
contentTierUuid: text,
|
|
1800
|
+
wallpaper: text,
|
|
1801
|
+
chromas: import_zod13.z.array(asset.passthrough()),
|
|
1802
|
+
levels: import_zod13.z.array(asset.passthrough())
|
|
1803
|
+
});
|
|
1804
|
+
var seasonSchema = import_zod13.z.object({
|
|
1805
|
+
uuid: import_zod13.z.string(),
|
|
1806
|
+
displayName: text,
|
|
1807
|
+
type: text,
|
|
1808
|
+
startTime: import_zod13.z.string(),
|
|
1809
|
+
endTime: import_zod13.z.string(),
|
|
1810
|
+
parentUuid: text,
|
|
1811
|
+
assetPath: text
|
|
621
1812
|
}).passthrough();
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
DurationRemainingInSeconds: import_zod3.z.number(),
|
|
632
|
-
WholesaleOnly: import_zod3.z.boolean()
|
|
1813
|
+
var versionSchema = import_zod13.z.object({
|
|
1814
|
+
manifestId: import_zod13.z.string(),
|
|
1815
|
+
branch: import_zod13.z.string(),
|
|
1816
|
+
version: import_zod13.z.string(),
|
|
1817
|
+
buildVersion: import_zod13.z.string(),
|
|
1818
|
+
engineVersion: import_zod13.z.string(),
|
|
1819
|
+
riotClientVersion: import_zod13.z.string().describe("Value of the X-Riot-ClientVersion header"),
|
|
1820
|
+
riotClientBuild: import_zod13.z.string(),
|
|
1821
|
+
buildDate: import_zod13.z.string()
|
|
633
1822
|
}).passthrough();
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
1823
|
+
|
|
1824
|
+
// src/endpoints/catalog/index.ts
|
|
1825
|
+
var playable = [["isPlayableCharacter", import_zod14.z.boolean().optional().describe("Only return playable agents. Skips the duplicate Sova.")]];
|
|
1826
|
+
var agents = collection("Agents", "Agent", "agents", agentSchema, playable);
|
|
1827
|
+
var buddies = collection("Buddies", "Buddy", "buddies", asset);
|
|
1828
|
+
var buddyLevels = collection("Buddy Levels", "Buddy Level", "buddies/levels", asset);
|
|
1829
|
+
var bundles = collection("Bundles", "Bundle", "bundles", asset);
|
|
1830
|
+
var ceremonies = collection("Ceremonies", "Ceremony", "ceremonies", asset);
|
|
1831
|
+
var competitiveTiers = collection("Competitive Tiers", "Competitive Tier Set", "competitivetiers", import_zod14.z.object({ uuid: import_zod14.z.string(), tiers: import_zod14.z.array(import_zod14.z.object({ tier: import_zod14.z.number(), tierName: text, division: text, color: text }).passthrough()) }).passthrough());
|
|
1832
|
+
var contentTiers = collection("Content Tiers", "Content Tier", "contenttiers", asset);
|
|
1833
|
+
var contracts2 = collection("Contracts", "Contract", "contracts", asset);
|
|
1834
|
+
var currencies = collection("Currencies", "Currency", "currencies", asset);
|
|
1835
|
+
var events = collection("Events", "Event", "events", asset);
|
|
1836
|
+
var flex = collection("Flex", "Flex Item", "flex", asset);
|
|
1837
|
+
var gamemodes = collection("Gamemodes", "Gamemode", "gamemodes", asset);
|
|
1838
|
+
var gamemodeEquippables = collection("Gamemode Equippables", "Gamemode Equippable", "gamemodes/equippables", asset);
|
|
1839
|
+
var gear = collection("Gear", "Gear Item", "gear", asset);
|
|
1840
|
+
var levelBorders = collection("Level Borders", "Level Border", "levelborders", asset);
|
|
1841
|
+
var maps = collection("Maps", "Map", "maps", mapSchema);
|
|
1842
|
+
var missions = collection("Missions", "Mission", "missions", import_zod14.z.object({ uuid: import_zod14.z.string(), displayName: text }).passthrough());
|
|
1843
|
+
var playerCards = collection("Player Cards", "Player Card", "playercards", asset);
|
|
1844
|
+
var playerTitles = collection("Player Titles", "Player Title", "playertitles", import_zod14.z.object({ uuid: import_zod14.z.string(), displayName: text, titleText: text }).passthrough());
|
|
1845
|
+
var seasons = collection("Seasons", "Season", "seasons", seasonSchema);
|
|
1846
|
+
var competitiveSeasons = collection("Competitive Seasons", "Competitive Season", "seasons/competitive", import_zod14.z.object({ uuid: import_zod14.z.string(), seasonUuid: import_zod14.z.string(), startTime: import_zod14.z.string(), endTime: import_zod14.z.string() }).passthrough());
|
|
1847
|
+
var sprays = collection("Sprays", "Spray", "sprays", asset);
|
|
1848
|
+
var sprayLevels = collection("Spray Levels", "Spray Level", "sprays/levels", asset);
|
|
1849
|
+
var themes = collection("Themes", "Theme", "themes", asset);
|
|
1850
|
+
var weapons = collection("Weapons", "Weapon", "weapons", weaponSchema);
|
|
1851
|
+
var weaponSkins = collection("Weapon Skins", "Weapon Skin", "weapons/skins", skinSchema);
|
|
1852
|
+
var weaponSkinChromas = collection("Weapon Skin Chromas", "Weapon Skin Chroma", "weapons/skinchromas", asset);
|
|
1853
|
+
var weaponSkinLevels = collection("Weapon Skin Levels", "Weapon Skin Level", "weapons/skinlevels", asset);
|
|
1854
|
+
var catalogEndpoints = {
|
|
1855
|
+
agents: agents.list,
|
|
1856
|
+
agent: agents.one,
|
|
1857
|
+
buddies: buddies.list,
|
|
1858
|
+
buddy: buddies.one,
|
|
1859
|
+
buddyLevels: buddyLevels.list,
|
|
1860
|
+
buddyLevel: buddyLevels.one,
|
|
1861
|
+
bundles: bundles.list,
|
|
1862
|
+
bundle: bundles.one,
|
|
1863
|
+
ceremonies: ceremonies.list,
|
|
1864
|
+
ceremony: ceremonies.one,
|
|
1865
|
+
competitiveTiers: competitiveTiers.list,
|
|
1866
|
+
competitiveTier: competitiveTiers.one,
|
|
1867
|
+
contentTiers: contentTiers.list,
|
|
1868
|
+
contentTier: contentTiers.one,
|
|
1869
|
+
contracts: contracts2.list,
|
|
1870
|
+
contract: contracts2.one,
|
|
1871
|
+
currencies: currencies.list,
|
|
1872
|
+
currency: currencies.one,
|
|
1873
|
+
events: events.list,
|
|
1874
|
+
event: events.one,
|
|
1875
|
+
flex: flex.list,
|
|
1876
|
+
flexItem: flex.one,
|
|
1877
|
+
gamemodes: gamemodes.list,
|
|
1878
|
+
gamemode: gamemodes.one,
|
|
1879
|
+
gamemodeEquippables: gamemodeEquippables.list,
|
|
1880
|
+
gamemodeEquippable: gamemodeEquippables.one,
|
|
1881
|
+
gear: gear.list,
|
|
1882
|
+
gearItem: gear.one,
|
|
1883
|
+
levelBorders: levelBorders.list,
|
|
1884
|
+
levelBorder: levelBorders.one,
|
|
1885
|
+
maps: maps.list,
|
|
1886
|
+
map: maps.one,
|
|
1887
|
+
missions: missions.list,
|
|
1888
|
+
mission: missions.one,
|
|
1889
|
+
playerCards: playerCards.list,
|
|
1890
|
+
playerCard: playerCards.one,
|
|
1891
|
+
playerTitles: playerTitles.list,
|
|
1892
|
+
playerTitle: playerTitles.one,
|
|
1893
|
+
seasons: seasons.list,
|
|
1894
|
+
season: seasons.one,
|
|
1895
|
+
competitiveSeasons: competitiveSeasons.list,
|
|
1896
|
+
competitiveSeason: competitiveSeasons.one,
|
|
1897
|
+
sprays: sprays.list,
|
|
1898
|
+
spray: sprays.one,
|
|
1899
|
+
sprayLevels: sprayLevels.list,
|
|
1900
|
+
sprayLevel: sprayLevels.one,
|
|
1901
|
+
themes: themes.list,
|
|
1902
|
+
theme: themes.one,
|
|
1903
|
+
version: endpoint("Version", "Current game version and the matching client version", "version", versionSchema),
|
|
1904
|
+
weapons: weapons.list,
|
|
1905
|
+
weapon: weapons.one,
|
|
1906
|
+
weaponSkins: weaponSkins.list,
|
|
1907
|
+
weaponSkin: weaponSkins.one,
|
|
1908
|
+
weaponSkinChromas: weaponSkinChromas.list,
|
|
1909
|
+
weaponSkinChroma: weaponSkinChromas.one,
|
|
1910
|
+
weaponSkinLevels: weaponSkinLevels.list,
|
|
1911
|
+
weaponSkinLevel: weaponSkinLevels.one
|
|
676
1912
|
};
|
|
677
1913
|
|
|
1914
|
+
// src/api/groups/catalog.ts
|
|
1915
|
+
var catalog = catalogEndpoints;
|
|
1916
|
+
|
|
678
1917
|
// src/api/registry.ts
|
|
679
1918
|
var registry = {
|
|
680
|
-
pvp
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
get: import_valorant_api_types.endpoints.partyEndpoint,
|
|
696
|
-
player: import_valorant_api_types.endpoints.partyPlayerEndpoint,
|
|
697
|
-
removePlayer: import_valorant_api_types.endpoints.partyRemovePlayerEndpoint,
|
|
698
|
-
setMemberReady: import_valorant_api_types.endpoints.partySetMemberReadyEndpoint,
|
|
699
|
-
refreshCompetitiveTier: import_valorant_api_types.endpoints.refreshCompetitiveTierEndpoint,
|
|
700
|
-
refreshPlayerIdentity: import_valorant_api_types.endpoints.refreshPlayerIdentityEndpoint,
|
|
701
|
-
refreshPings: import_valorant_api_types.endpoints.refreshPingsEndpoint,
|
|
702
|
-
changeQueue: import_valorant_api_types.endpoints.changeQueueEndpoint,
|
|
703
|
-
startCustomGame: import_valorant_api_types.endpoints.startCustomGameEndpoint,
|
|
704
|
-
enterMatchmakingQueue: import_valorant_api_types.endpoints.enterMatchmakingQueueEndpoint,
|
|
705
|
-
leaveMatchmakingQueue: import_valorant_api_types.endpoints.leaveMatchmakingQueueEndpoint,
|
|
706
|
-
setAccessibility: import_valorant_api_types.endpoints.setPartyAccessibilityEndpoint,
|
|
707
|
-
setCustomGameSettings: import_valorant_api_types.endpoints.setCustomGameSettingsEndpoint,
|
|
708
|
-
invite: import_valorant_api_types.endpoints.partyInviteEndpoint,
|
|
709
|
-
requestToJoin: import_valorant_api_types.endpoints.partyRequestEndpoint,
|
|
710
|
-
declineRequest: import_valorant_api_types.endpoints.partyDeclineEndpoint,
|
|
711
|
-
customGameConfigs: import_valorant_api_types.endpoints.customGameConfigsEndpoint,
|
|
712
|
-
chatToken: import_valorant_api_types.endpoints.partyChatTokenEndpoint,
|
|
713
|
-
voiceToken: import_valorant_api_types.endpoints.partyVoiceTokenEndpoint,
|
|
714
|
-
disableCode: import_valorant_api_types.endpoints.partyDisableCodeEndpoint,
|
|
715
|
-
generateCode: import_valorant_api_types.endpoints.partyGenerateCodeEndpoint,
|
|
716
|
-
joinByCode: import_valorant_api_types.endpoints.partyJoinByCodeEndpoint
|
|
717
|
-
},
|
|
718
|
-
store: {
|
|
719
|
-
prices: import_valorant_api_types.endpoints.pricesEndpoint,
|
|
720
|
-
storefront: import_valorant_api_types.endpoints.storefrontEndpoint,
|
|
721
|
-
wallet: import_valorant_api_types.endpoints.walletEndpoint,
|
|
722
|
-
ownedItems: import_valorant_api_types.endpoints.ownedItemsEndpoint,
|
|
723
|
-
storefrontV3: storefrontV3Endpoint,
|
|
724
|
-
order: storeOrderEndpoint
|
|
725
|
-
},
|
|
726
|
-
pregame: {
|
|
727
|
-
player: import_valorant_api_types.endpoints.pregamePlayerEndpoint,
|
|
728
|
-
match: import_valorant_api_types.endpoints.pregameMatchEndpoint,
|
|
729
|
-
loadouts: import_valorant_api_types.endpoints.pregameLoadoutsEndpoint,
|
|
730
|
-
selectCharacter: import_valorant_api_types.endpoints.selectCharacterEndpoint,
|
|
731
|
-
lockCharacter: import_valorant_api_types.endpoints.lockCharacterEndpoint,
|
|
732
|
-
quit: import_valorant_api_types.endpoints.pregameQuitEndpoint,
|
|
733
|
-
chatToken: pregameChatTokenEndpoint,
|
|
734
|
-
voiceToken: pregameVoiceTokenEndpoint
|
|
735
|
-
},
|
|
736
|
-
currentGame: {
|
|
737
|
-
player: import_valorant_api_types.endpoints.currentGamePlayerEndpoint,
|
|
738
|
-
match: import_valorant_api_types.endpoints.currentGameMatchEndpoint,
|
|
739
|
-
loadouts: import_valorant_api_types.endpoints.currentGameLoadoutsEndpoint,
|
|
740
|
-
quit: import_valorant_api_types.endpoints.currentGameQuitEndpoint,
|
|
741
|
-
allChatToken: currentGameAllChatTokenEndpoint,
|
|
742
|
-
teamChatToken: currentGameTeamChatTokenEndpoint
|
|
743
|
-
},
|
|
744
|
-
contracts: {
|
|
745
|
-
itemUpgrades: import_valorant_api_types.endpoints.itemUpgradesEndpoint,
|
|
746
|
-
list: import_valorant_api_types.endpoints.contractsEndpoint,
|
|
747
|
-
activate: import_valorant_api_types.endpoints.activateContractEndpoint,
|
|
748
|
-
activeStory: contractsActiveStoryEndpoint
|
|
749
|
-
},
|
|
750
|
-
local: {
|
|
751
|
-
help: import_valorant_api_types.endpoints.localHelpEndpoint,
|
|
752
|
-
sessions: import_valorant_api_types.endpoints.sessionsEndpoint,
|
|
753
|
-
rsoUserInfo: import_valorant_api_types.endpoints.rsoUserInfoEndpoint,
|
|
754
|
-
clientRegion: import_valorant_api_types.endpoints.clientRegionEndpoint,
|
|
755
|
-
accountAlias: import_valorant_api_types.endpoints.accountAliasEndpoint,
|
|
756
|
-
entitlementsToken: import_valorant_api_types.endpoints.entitlementsTokenEndpoint,
|
|
757
|
-
chatSession: import_valorant_api_types.endpoints.chatSessionEndpoint,
|
|
758
|
-
friends: import_valorant_api_types.endpoints.friendsEndpoint,
|
|
759
|
-
sendFriendRequest: import_valorant_api_types.endpoints.sendFriendRequestEndpoint,
|
|
760
|
-
removeFriendRequest: import_valorant_api_types.endpoints.removeFriendRequestEndpoint,
|
|
761
|
-
presence: import_valorant_api_types.endpoints.presenceEndpoint,
|
|
762
|
-
friendRequests: import_valorant_api_types.endpoints.friendRequestsEndpoint,
|
|
763
|
-
swaggerDocs: import_valorant_api_types.endpoints.localSwaggerDocsEndpoint,
|
|
764
|
-
antiAddictionShutdown: localAntiAddictionShutdownEndpoint,
|
|
765
|
-
antiAddictionWarning: localAntiAddictionWarningEndpoint,
|
|
766
|
-
clientConfig: localClientConfigEndpoint,
|
|
767
|
-
eula: localEulaEndpoint,
|
|
768
|
-
privacyPolicy: localPrivacyPolicyEndpoint,
|
|
769
|
-
availableLocales: localAvailableLocalesEndpoint,
|
|
770
|
-
locale: localLocaleEndpoint,
|
|
771
|
-
reporterFeedback: localReporterFeedbackEndpoint,
|
|
772
|
-
commandLineArgs: localCommandLineArgsEndpoint,
|
|
773
|
-
riotStatus: localRiotStatusEndpoint,
|
|
774
|
-
riotWarning: localRiotWarningEndpoint,
|
|
775
|
-
clientAuthorizations: localClientAuthorizationsEndpoint,
|
|
776
|
-
accessToken: localAccessTokenEndpoint,
|
|
777
|
-
userInfoToken: localUserInfoTokenEndpoint,
|
|
778
|
-
pluginStatus: localPluginStatusEndpoint,
|
|
779
|
-
rmsSession: localRmsSessionEndpoint,
|
|
780
|
-
processInfo: localProcessInfoEndpoint,
|
|
781
|
-
logPath: localLogPathEndpoint,
|
|
782
|
-
playerSettings: localPlayerSettingsEndpoint
|
|
783
|
-
},
|
|
784
|
-
chat: {
|
|
785
|
-
partyInfo: import_valorant_api_types.endpoints.partyChatInfoEndpoint,
|
|
786
|
-
pregameInfo: import_valorant_api_types.endpoints.pregameChatInfoEndpoint,
|
|
787
|
-
currentGameInfo: import_valorant_api_types.endpoints.currentGameChatInfoEndpoint,
|
|
788
|
-
allInfo: import_valorant_api_types.endpoints.allChatInfoEndpoint,
|
|
789
|
-
participants: import_valorant_api_types.endpoints.chatParticipantsEndpoint,
|
|
790
|
-
send: import_valorant_api_types.endpoints.sendChatEndpoint,
|
|
791
|
-
history: import_valorant_api_types.endpoints.chatHistoryEndpoint,
|
|
792
|
-
settings: chatSettingsEndpoint,
|
|
793
|
-
tournamentInfo: chatTournamentInfoEndpoint
|
|
794
|
-
},
|
|
795
|
-
session: {
|
|
796
|
-
get: sessionGetEndpoint,
|
|
797
|
-
reconnect: sessionReconnectEndpoint
|
|
798
|
-
},
|
|
799
|
-
voice: {
|
|
800
|
-
audioProperties: voiceAudioPropertiesEndpoint,
|
|
801
|
-
captureDevices: voiceCaptureDevicesEndpoint,
|
|
802
|
-
renderDevices: voiceRenderDevicesEndpoint,
|
|
803
|
-
pushToTalk: voicePushToTalkEndpoint,
|
|
804
|
-
sessions: voiceSessionsEndpoint,
|
|
805
|
-
settings: voiceSettingsEndpoint
|
|
806
|
-
},
|
|
807
|
-
auth: {
|
|
808
|
-
cookies: import_valorant_api_types.endpoints.authCookiesEndpoint,
|
|
809
|
-
request: import_valorant_api_types.endpoints.authRequestEndpoint,
|
|
810
|
-
multiFactor: import_valorant_api_types.endpoints.multiFactorAuthenticationEndpoint,
|
|
811
|
-
cookieReauth: import_valorant_api_types.endpoints.cookieReauthEndpoint,
|
|
812
|
-
entitlement: import_valorant_api_types.endpoints.entitlementEndpoint,
|
|
813
|
-
playerInfo: import_valorant_api_types.endpoints.playerInfoEndpoint,
|
|
814
|
-
riotGeo: import_valorant_api_types.endpoints.riotGeoEndpoint,
|
|
815
|
-
pasToken: import_valorant_api_types.endpoints.pasTokenEndpoint,
|
|
816
|
-
riotClientConfig: import_valorant_api_types.endpoints.riotClientConfigEndpoint
|
|
817
|
-
},
|
|
818
|
-
catalog: catalogEndpoints
|
|
1919
|
+
pvp,
|
|
1920
|
+
party,
|
|
1921
|
+
store,
|
|
1922
|
+
pregame,
|
|
1923
|
+
currentGame,
|
|
1924
|
+
contracts,
|
|
1925
|
+
local,
|
|
1926
|
+
chat,
|
|
1927
|
+
voice,
|
|
1928
|
+
premier,
|
|
1929
|
+
esports,
|
|
1930
|
+
restrictions,
|
|
1931
|
+
account,
|
|
1932
|
+
auth,
|
|
1933
|
+
catalog
|
|
819
1934
|
};
|
|
820
1935
|
|
|
821
1936
|
// src/auth.ts
|
|
822
|
-
var
|
|
1937
|
+
var import_valorant_api_types10 = require("valorant-api-types");
|
|
823
1938
|
|
|
824
1939
|
// src/errors.ts
|
|
825
1940
|
var ValorantError = class extends Error {
|
|
@@ -948,7 +2063,7 @@ function createAuthFlows(client) {
|
|
|
948
2063
|
return toLoginResult(data);
|
|
949
2064
|
},
|
|
950
2065
|
async reauthenticate(options) {
|
|
951
|
-
const response = await client.send(
|
|
2066
|
+
const response = await client.send(import_valorant_api_types10.endpoints.cookieReauthEndpoint);
|
|
952
2067
|
const tokens = parseAuthRedirect(response.headers.get("location") ?? "");
|
|
953
2068
|
if (tokens === void 0) throw new ValorantError("Cookie reauthentication failed: the session cookies are missing or expired, log in again");
|
|
954
2069
|
applyTokens(tokens);
|
|
@@ -1139,6 +2254,83 @@ var localTransport = async (request) => {
|
|
|
1139
2254
|
});
|
|
1140
2255
|
};
|
|
1141
2256
|
|
|
2257
|
+
// src/internal/body.ts
|
|
2258
|
+
var import_zod15 = require("zod");
|
|
2259
|
+
function parseBody(text2) {
|
|
2260
|
+
if (text2 === "") return void 0;
|
|
2261
|
+
try {
|
|
2262
|
+
return JSON.parse(text2);
|
|
2263
|
+
} catch {
|
|
2264
|
+
return text2;
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
function safeParse(schema, data) {
|
|
2268
|
+
try {
|
|
2269
|
+
return schema.safeParse(data);
|
|
2270
|
+
} catch (thrown) {
|
|
2271
|
+
if (thrown instanceof import_zod15.ZodError) return { success: false, error: thrown };
|
|
2272
|
+
const message = thrown instanceof Error ? thrown.message : String(thrown);
|
|
2273
|
+
return { success: false, error: new import_zod15.ZodError([{ code: "custom", path: [], message: `Schema transform threw: ${message}` }]) };
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
// src/internal/cookies.ts
|
|
2278
|
+
function storeCookies(context, setCookies) {
|
|
2279
|
+
for (const line of setCookies) {
|
|
2280
|
+
const [pair = "", ...attributes] = line.split(";").map((part) => part.trim());
|
|
2281
|
+
const separator = pair.indexOf("=");
|
|
2282
|
+
if (separator <= 0) continue;
|
|
2283
|
+
const name = pair.slice(0, separator);
|
|
2284
|
+
const value = pair.slice(separator + 1);
|
|
2285
|
+
const expired = value === "" || attributes.some((a) => a.toLowerCase() === "max-age=0");
|
|
2286
|
+
context.setCookie(name, expired ? void 0 : value);
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
// src/internal/retry.ts
|
|
2291
|
+
var RETRYABLE_STATUS = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
2292
|
+
var IDEMPOTENT = /* @__PURE__ */ new Set(["GET", "HEAD", "PUT", "DELETE"]);
|
|
2293
|
+
function isIdempotent(method) {
|
|
2294
|
+
return IDEMPOTENT.has(method);
|
|
2295
|
+
}
|
|
2296
|
+
function isRetryableStatus(status, method) {
|
|
2297
|
+
return RETRYABLE_STATUS.has(status) && (status === 429 || isIdempotent(method));
|
|
2298
|
+
}
|
|
2299
|
+
function parseRetryAfter(value) {
|
|
2300
|
+
if (value === null) return void 0;
|
|
2301
|
+
const seconds = Number(value);
|
|
2302
|
+
if (Number.isFinite(seconds)) return seconds * 1e3;
|
|
2303
|
+
const date = Date.parse(value);
|
|
2304
|
+
return Number.isNaN(date) ? void 0 : Math.max(0, date - Date.now());
|
|
2305
|
+
}
|
|
2306
|
+
function backoff(attempt, retry) {
|
|
2307
|
+
const base = retry?.baseDelayMs ?? 500;
|
|
2308
|
+
const max = retry?.maxDelayMs ?? 8e3;
|
|
2309
|
+
return Math.min(max, base * 2 ** attempt) * (0.5 + Math.random() / 2);
|
|
2310
|
+
}
|
|
2311
|
+
function sleep(ms, signal) {
|
|
2312
|
+
return new Promise((resolve) => {
|
|
2313
|
+
const timer = setTimeout(done, ms);
|
|
2314
|
+
signal?.addEventListener("abort", done, { once: true });
|
|
2315
|
+
function done() {
|
|
2316
|
+
clearTimeout(timer);
|
|
2317
|
+
signal?.removeEventListener("abort", done);
|
|
2318
|
+
resolve();
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
// src/internal/failure.ts
|
|
2324
|
+
function toApiError(endpoint2, request, response) {
|
|
2325
|
+
const body = parseBody(response.text);
|
|
2326
|
+
const args = [response.status, endpoint2.name, request.url, body, response.headers];
|
|
2327
|
+
if (response.status === 429) return new ValorantRateLimitError(...args, parseRetryAfter(response.headers.get("retry-after")));
|
|
2328
|
+
const needsToken = endpoint2.riotRequirements?.token === true;
|
|
2329
|
+
const badClaims = typeof body === "object" && body !== null && body.errorCode === "BAD_CLAIMS";
|
|
2330
|
+
if (needsToken && (response.status === 401 || response.status === 400 && badClaims)) return new ValorantAuthError(...args);
|
|
2331
|
+
return new ValorantApiError(...args);
|
|
2332
|
+
}
|
|
2333
|
+
|
|
1142
2334
|
// src/local.ts
|
|
1143
2335
|
function parseLockfile(content) {
|
|
1144
2336
|
const [name, pid, port, password, protocol] = content.trim().split(":");
|
|
@@ -1223,7 +2415,7 @@ async function openEventStream(ctx) {
|
|
|
1223
2415
|
}
|
|
1224
2416
|
|
|
1225
2417
|
// src/request.ts
|
|
1226
|
-
var
|
|
2418
|
+
var import_valorant_api_types11 = require("valorant-api-types");
|
|
1227
2419
|
|
|
1228
2420
|
// src/types.ts
|
|
1229
2421
|
function paramName(variable) {
|
|
@@ -1250,11 +2442,11 @@ function resolveBase(endpoint2, ctx) {
|
|
|
1250
2442
|
switch (endpoint2.type) {
|
|
1251
2443
|
case "pd":
|
|
1252
2444
|
case "shared":
|
|
1253
|
-
return (0,
|
|
2445
|
+
return (0, import_valorant_api_types11.typeToPrefix)({ type: endpoint2.type, shard: ctx.require("shard") });
|
|
1254
2446
|
case "glz":
|
|
1255
|
-
return (0,
|
|
2447
|
+
return (0, import_valorant_api_types11.typeToPrefix)({ type: "glz", shard: ctx.require("shard"), region: ctx.require("region") });
|
|
1256
2448
|
case "local":
|
|
1257
|
-
return (0,
|
|
2449
|
+
return (0, import_valorant_api_types11.typeToPrefix)({ type: "local", port: ctx.require("localPort") });
|
|
1258
2450
|
case "other":
|
|
1259
2451
|
return "";
|
|
1260
2452
|
}
|
|
@@ -1304,8 +2496,6 @@ function buildRequest(endpoint2, input, ctx) {
|
|
|
1304
2496
|
}
|
|
1305
2497
|
|
|
1306
2498
|
// src/client.ts
|
|
1307
|
-
var RETRYABLE_STATUS = /* @__PURE__ */ new Set([429, 500, 502, 503, 504]);
|
|
1308
|
-
var IDEMPOTENT = /* @__PURE__ */ new Set(["GET", "HEAD", "PUT", "DELETE"]);
|
|
1309
2499
|
var ValorantClient = class {
|
|
1310
2500
|
context;
|
|
1311
2501
|
#options;
|
|
@@ -1334,13 +2524,13 @@ var ValorantClient = class {
|
|
|
1334
2524
|
try {
|
|
1335
2525
|
response = await this.#transportFor(endpoint2)({ ...request, signal: this.#signal(input) });
|
|
1336
2526
|
} catch (cause) {
|
|
1337
|
-
if (canRetry &&
|
|
2527
|
+
if (canRetry && isIdempotent(request.method) && input.signal?.aborted !== true) {
|
|
1338
2528
|
await sleep(backoff(attempt, retry), input.signal);
|
|
1339
2529
|
continue;
|
|
1340
2530
|
}
|
|
1341
2531
|
throw new ValorantNetworkError(`${endpoint2.name} could not reach ${new URL(request.url).host}`, request.url, { cause });
|
|
1342
2532
|
}
|
|
1343
|
-
if (isAuthHost(request.url))
|
|
2533
|
+
if (isAuthHost(request.url)) storeCookies(this.context, response.setCookies);
|
|
1344
2534
|
this.#options.logger?.debug?.(`${request.method} ${request.url} -> ${response.status}`);
|
|
1345
2535
|
if (response.status < 400) {
|
|
1346
2536
|
return {
|
|
@@ -1349,13 +2539,13 @@ var ValorantClient = class {
|
|
|
1349
2539
|
data: this.#parseResponse(endpoint2, response, validation)
|
|
1350
2540
|
};
|
|
1351
2541
|
}
|
|
1352
|
-
const error =
|
|
2542
|
+
const error = toApiError(endpoint2, request, response);
|
|
1353
2543
|
if (error instanceof ValorantAuthError && this.#options.refreshTokens && !refreshed) {
|
|
1354
2544
|
refreshed = true;
|
|
1355
2545
|
await this.#refreshOnce();
|
|
1356
2546
|
continue;
|
|
1357
2547
|
}
|
|
1358
|
-
if (canRetry &&
|
|
2548
|
+
if (canRetry && isRetryableStatus(response.status, request.method)) {
|
|
1359
2549
|
const retryAfter = error instanceof ValorantRateLimitError ? error.retryAfterMs : void 0;
|
|
1360
2550
|
await sleep(retryAfter ?? backoff(attempt, retry), input.signal);
|
|
1361
2551
|
continue;
|
|
@@ -1387,17 +2577,6 @@ var ValorantClient = class {
|
|
|
1387
2577
|
const timeout = AbortSignal.timeout(input.timeoutMs ?? this.#options.timeoutMs ?? 15e3);
|
|
1388
2578
|
return input.signal ? AbortSignal.any([input.signal, timeout]) : timeout;
|
|
1389
2579
|
}
|
|
1390
|
-
#storeCookies(setCookies) {
|
|
1391
|
-
for (const line of setCookies) {
|
|
1392
|
-
const [pair = "", ...attributes] = line.split(";").map((part) => part.trim());
|
|
1393
|
-
const separator = pair.indexOf("=");
|
|
1394
|
-
if (separator <= 0) continue;
|
|
1395
|
-
const name = pair.slice(0, separator);
|
|
1396
|
-
const value = pair.slice(separator + 1);
|
|
1397
|
-
const expired = value === "" || attributes.some((a) => a.toLowerCase() === "max-age=0");
|
|
1398
|
-
this.context.setCookie(name, expired ? void 0 : value);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
2580
|
#parseResponse(endpoint2, response, validation) {
|
|
1402
2581
|
const data = unwrapEnvelope(endpoint2, parseBody(response.text));
|
|
1403
2582
|
const schema = endpoint2.responses?.[String(response.status)];
|
|
@@ -1411,15 +2590,6 @@ var ValorantClient = class {
|
|
|
1411
2590
|
}
|
|
1412
2591
|
return data;
|
|
1413
2592
|
}
|
|
1414
|
-
#toError(endpoint2, request, response) {
|
|
1415
|
-
const body = parseBody(response.text);
|
|
1416
|
-
const args = [response.status, endpoint2.name, request.url, body, response.headers];
|
|
1417
|
-
if (response.status === 429) return new ValorantRateLimitError(...args, parseRetryAfter(response.headers.get("retry-after")));
|
|
1418
|
-
const needsToken = endpoint2.riotRequirements?.token === true;
|
|
1419
|
-
const badClaims = typeof body === "object" && body !== null && body.errorCode === "BAD_CLAIMS";
|
|
1420
|
-
if (needsToken && (response.status === 401 || response.status === 400 && badClaims)) return new ValorantAuthError(...args);
|
|
1421
|
-
return new ValorantApiError(...args);
|
|
1422
|
-
}
|
|
1423
2593
|
#refreshOnce() {
|
|
1424
2594
|
this.#refreshing ??= Promise.resolve(this.#options.refreshTokens(this)).finally(() => {
|
|
1425
2595
|
this.#refreshing = void 0;
|
|
@@ -1427,46 +2597,6 @@ var ValorantClient = class {
|
|
|
1427
2597
|
return this.#refreshing;
|
|
1428
2598
|
}
|
|
1429
2599
|
};
|
|
1430
|
-
function safeParse(schema, data) {
|
|
1431
|
-
try {
|
|
1432
|
-
return schema.safeParse(data);
|
|
1433
|
-
} catch (thrown) {
|
|
1434
|
-
if (thrown instanceof import_zod4.ZodError) return { success: false, error: thrown };
|
|
1435
|
-
const message = thrown instanceof Error ? thrown.message : String(thrown);
|
|
1436
|
-
return { success: false, error: new import_zod4.ZodError([{ code: "custom", path: [], message: `Schema transform threw: ${message}` }]) };
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
function parseBody(text2) {
|
|
1440
|
-
if (text2 === "") return void 0;
|
|
1441
|
-
try {
|
|
1442
|
-
return JSON.parse(text2);
|
|
1443
|
-
} catch {
|
|
1444
|
-
return text2;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
function parseRetryAfter(value) {
|
|
1448
|
-
if (value === null) return void 0;
|
|
1449
|
-
const seconds = Number(value);
|
|
1450
|
-
if (Number.isFinite(seconds)) return seconds * 1e3;
|
|
1451
|
-
const date = Date.parse(value);
|
|
1452
|
-
return Number.isNaN(date) ? void 0 : Math.max(0, date - Date.now());
|
|
1453
|
-
}
|
|
1454
|
-
function backoff(attempt, retry) {
|
|
1455
|
-
const base = retry?.baseDelayMs ?? 500;
|
|
1456
|
-
const max = retry?.maxDelayMs ?? 8e3;
|
|
1457
|
-
return Math.min(max, base * 2 ** attempt) * (0.5 + Math.random() / 2);
|
|
1458
|
-
}
|
|
1459
|
-
function sleep(ms, signal) {
|
|
1460
|
-
return new Promise((resolve) => {
|
|
1461
|
-
const timer = setTimeout(done, ms);
|
|
1462
|
-
signal?.addEventListener("abort", done, { once: true });
|
|
1463
|
-
function done() {
|
|
1464
|
-
clearTimeout(timer);
|
|
1465
|
-
signal?.removeEventListener("abort", done);
|
|
1466
|
-
resolve();
|
|
1467
|
-
}
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
2600
|
|
|
1471
2601
|
// src/index.ts
|
|
1472
2602
|
__reExport(index_exports, require("valorant-api-types"), module.exports);
|