valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
23 lines • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.riotClientConfigEndpoint = void 0;
const zod_1 = require("zod");
exports.riotClientConfigEndpoint = {
name: 'Riot Client Config',
description: 'Gets the config file used by the Riot Client. This includes a ton of info, most of it undocumented.',
category: 'Authentication Endpoints',
type: 'other',
suffix: 'https://clientconfig.rpg.riotgames.com/api/v1/config/player?app=Riot%20Client',
riotRequirements: {
token: true,
entitlement: true
},
responses: {
'200': zod_1.z.intersection(zod_1.z.object({
'chat.affinities': zod_1.z.record(zod_1.z.string().describe('Affinity ID'), zod_1.z.string().describe('Chat Server Host')).describe('Mapping of affinity ID to chat server host'),
'chat.affinity_domains': zod_1.z.record(zod_1.z.string().describe('Affinity ID'), zod_1.z.string().describe('Affinity Domain')).describe('Mapping of affinity ID to affinity domain'),
'chat.port': zod_1.z.number().describe('Chat server port')
}), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()))
}
};
//# sourceMappingURL=RiotClientConfig.js.map