valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
37 lines (36 loc) • 1.29 kB
TypeScript
import { z } from 'zod';
export declare const nameServiceEndpoint: {
readonly name: "Name Service";
readonly description: "Get a player's name and tagline by their PUUID. Supports retrieving multiple players in one request.";
readonly queryName: "NameService_GetPlayerInfo";
readonly category: "PVP Endpoints";
readonly type: "pd";
readonly method: "PUT";
readonly suffix: "name-service/v2/players";
readonly riotRequirements: {
readonly token: true;
readonly entitlement: true;
readonly clientVersion: true;
readonly clientPlatform: true;
};
readonly responses: {
readonly '200': z.ZodArray<z.ZodObject<{
DisplayName: z.ZodString;
Subject: z.ZodString;
GameName: z.ZodString;
TagLine: z.ZodString;
}, "strip", z.ZodTypeAny, {
Subject: string;
DisplayName: string;
GameName: string;
TagLine: string;
}, {
Subject: string;
DisplayName: string;
GameName: string;
TagLine: string;
}>, "many">;
};
readonly body: z.ZodArray<z.ZodString, "many">;
};
export type NameServiceResponse = z.input<typeof nameServiceEndpoint.responses['200']>;