UNPKG

valorant-api-types

Version:

A collection of documented endpoints and return types for the unofficial Valorant API

29 lines (28 loc) 1.3 kB
import { z } from 'zod'; export declare const riotClientConfigEndpoint: { readonly name: "Riot Client Config"; readonly description: "Gets the config file used by the Riot Client. This includes a ton of info, most of it undocumented."; readonly category: "Authentication Endpoints"; readonly type: "other"; readonly suffix: "https://clientconfig.rpg.riotgames.com/api/v1/config/player?app=Riot%20Client"; readonly riotRequirements: { readonly token: true; readonly entitlement: true; }; readonly responses: { readonly '200': z.ZodIntersection<z.ZodObject<{ 'chat.affinities': z.ZodRecord<z.ZodString, z.ZodString>; 'chat.affinity_domains': z.ZodRecord<z.ZodString, z.ZodString>; 'chat.port': z.ZodNumber; }, "strip", z.ZodTypeAny, { 'chat.affinities': Record<string, string>; 'chat.affinity_domains': Record<string, string>; 'chat.port': number; }, { 'chat.affinities': Record<string, string>; 'chat.affinity_domains': Record<string, string>; 'chat.port': number; }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>; }; }; export type RiotClientConfigResponse = z.input<typeof riotClientConfigEndpoint.responses['200']>;