valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
36 lines (35 loc) • 1.11 kB
TypeScript
import { z } from 'zod';
export declare const multiFactorAuthenticationEndpoint: {
readonly name: "Multi-Factor Authentication";
readonly description: "Submits a multi-factor authentication code for login";
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<"multifactor">;
multifactor: z.ZodObject<{
otp: z.ZodString;
rememberDevice: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
otp: string;
rememberDevice: boolean;
}, {
otp: string;
rememberDevice: boolean;
}>;
}, "strip", z.ZodTypeAny, {
type: "multifactor";
multifactor: {
otp: string;
rememberDevice: boolean;
};
}, {
type: "multifactor";
multifactor: {
otp: string;
rememberDevice: boolean;
};
}>;
};