valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
46 lines • 1.75 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.playerInfoEndpoint = void 0;
const zod_1 = require("zod");
const commonTypes_1 = require("../../commonTypes");
exports.playerInfoEndpoint = {
name: 'Player Info',
description: 'Get the PUUID and other info from a token',
category: 'Authentication Endpoints',
type: 'other',
suffix: 'https://auth.riotgames.com/userinfo',
riotRequirements: {
token: true
},
responses: {
'200': zod_1.z.object({
country: zod_1.z.string(),
sub: commonTypes_1.playerUUIDSchema,
email_verified: zod_1.z.boolean(),
player_plocale: zod_1.z.unknown().nullable(),
country_at: commonTypes_1.millisSchema.nullable(),
pw: zod_1.z.object({
cng_at: commonTypes_1.millisSchema,
reset: zod_1.z.boolean(),
must_reset: zod_1.z.boolean()
}),
phone_number_verified: zod_1.z.boolean(),
account_verified: zod_1.z.boolean(),
ppid: zod_1.z.unknown().nullable(),
federated_identity_providers: zod_1.z.array(zod_1.z.string()),
player_locale: zod_1.z.string().nullable(),
acct: zod_1.z.object({
type: zod_1.z.number(),
state: zod_1.z.string(),
adm: zod_1.z.boolean(),
game_name: zod_1.z.string(),
tag_line: zod_1.z.string(),
created_at: commonTypes_1.millisSchema
}),
age: zod_1.z.number(),
jti: zod_1.z.string(),
affinity: zod_1.z.record(zod_1.z.string())
})
}
};
//# sourceMappingURL=PlayerInfo.js.map