valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
30 lines (29 loc) • 1.13 kB
TypeScript
import { z } from "zod";
export declare const authCookiesEndpoint: {
readonly name: "Auth Cookies";
readonly description: "Prepare cookies for auth request";
readonly category: "Authentication Endpoints";
readonly type: "other";
readonly suffix: "https://auth.riotgames.com/api/v1/authorization";
readonly method: "POST";
readonly headers: Map<string, string>;
readonly body: z.ZodObject<{
client_id: z.ZodLiteral<"play-valorant-web-prod">;
nonce: z.ZodLiteral<"1">;
redirect_uri: z.ZodLiteral<"https://playvalorant.com/opt_in">;
response_type: z.ZodLiteral<"token id_token">;
scope: z.ZodLiteral<"account openid">;
}, "strip", z.ZodTypeAny, {
client_id: "play-valorant-web-prod";
nonce: "1";
redirect_uri: "https://playvalorant.com/opt_in";
response_type: "token id_token";
scope: "account openid";
}, {
client_id: "play-valorant-web-prod";
nonce: "1";
redirect_uri: "https://playvalorant.com/opt_in";
response_type: "token id_token";
scope: "account openid";
}>;
};