UNPKG

valorant-api-types

Version:

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

143 lines (142 loc) 4.71 kB
import { z } from 'zod'; export declare const authRequestEndpoint: { readonly name: "Auth Request"; readonly description: string; readonly category: "Authentication Endpoints"; readonly type: "other"; readonly suffix: "https://auth.riotgames.com/api/v1/authorization"; readonly method: "PUT"; readonly headers: Map<string, string>; readonly body: z.ZodObject<{ type: z.ZodLiteral<"auth">; language: z.ZodLiteral<"en_US">; remember: z.ZodBoolean; riot_identity: z.ZodObject<{ captcha: z.ZodString; username: z.ZodString; password: z.ZodString; }, "strip", z.ZodTypeAny, { username: string; captcha: string; password: string; }, { username: string; captcha: string; password: string; }>; }, "strip", z.ZodTypeAny, { type: "auth"; language: "en_US"; remember: boolean; riot_identity: { username: string; captcha: string; password: string; }; }, { type: "auth"; language: "en_US"; remember: boolean; riot_identity: { username: string; captcha: string; password: string; }; }>; readonly responses: { readonly '200': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"success">; success: z.ZodObject<{ login_token: z.ZodString; redirect_url: z.ZodString; is_console_link_session: z.ZodBoolean; auth_method: z.ZodLiteral<"riot_identity">; puuid: z.ZodString; }, "strip", z.ZodTypeAny, { puuid: string; login_token: string; redirect_url: string; is_console_link_session: boolean; auth_method: "riot_identity"; }, { puuid: string; login_token: string; redirect_url: string; is_console_link_session: boolean; auth_method: "riot_identity"; }>; country: z.ZodString; platform: z.ZodString; }, "strip", z.ZodTypeAny, { type: "success"; success: { puuid: string; login_token: string; redirect_url: string; is_console_link_session: boolean; auth_method: "riot_identity"; }; country: string; platform: string; }, { type: "success"; success: { puuid: string; login_token: string; redirect_url: string; is_console_link_session: boolean; auth_method: "riot_identity"; }; country: string; platform: string; }>, z.ZodObject<{ type: z.ZodLiteral<"multifactor">; multifactor: z.ZodObject<{ method: z.ZodLiteral<"email">; methods: z.ZodArray<z.ZodLiteral<"email">, "many">; email: z.ZodString; mode: z.ZodLiteral<"auth">; auth_method: z.ZodLiteral<"riot_identity">; }, "strip", z.ZodTypeAny, { email: string; auth_method: "riot_identity"; method: "email"; methods: "email"[]; mode: "auth"; }, { email: string; auth_method: "riot_identity"; method: "email"; methods: "email"[]; mode: "auth"; }>; country: z.ZodString; platform: z.ZodString; error: z.ZodOptional<z.ZodLiteral<"invalid_code">>; }, "strip", z.ZodTypeAny, { error?: "invalid_code" | undefined; type: "multifactor"; country: string; platform: string; multifactor: { email: string; auth_method: "riot_identity"; method: "email"; methods: "email"[]; mode: "auth"; }; }, { error?: "invalid_code" | undefined; type: "multifactor"; country: string; platform: string; multifactor: { email: string; auth_method: "riot_identity"; method: "email"; methods: "email"[]; mode: "auth"; }; }>]>; }; };