valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
49 lines (48 loc) • 1.5 kB
TypeScript
import { z } from 'zod';
export declare const chatSessionEndpoint: {
readonly name: "Chat Session";
readonly description: "Get the current session including player name and PUUID";
readonly category: "Local Endpoints";
readonly type: "local";
readonly suffix: "chat/v1/session";
readonly riotRequirements: {
readonly localAuth: true;
};
readonly responses: {
readonly '200': z.ZodObject<{
federated: z.ZodBoolean;
game_name: z.ZodString;
game_tag: z.ZodString;
loaded: z.ZodBoolean;
name: z.ZodString;
pid: z.ZodString;
puuid: z.ZodString;
region: z.ZodString;
resource: z.ZodString;
state: z.ZodString;
}, "strip", z.ZodTypeAny, {
game_name: string;
game_tag: string;
name: string;
pid: string;
puuid: string;
region: string;
state: string;
federated: boolean;
loaded: boolean;
resource: string;
}, {
game_name: string;
game_tag: string;
name: string;
pid: string;
puuid: string;
region: string;
state: string;
federated: boolean;
loaded: boolean;
resource: string;
}>;
};
};
export type ChatSessionResponse = z.input<typeof chatSessionEndpoint.responses['200']>;