valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
33 lines • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.friendsEndpoint = void 0;
const zod_1 = require("zod");
const commonTypes_1 = require("../../commonTypes");
exports.friendsEndpoint = {
name: 'Friends',
description: 'Get a list of friends',
category: 'Local Endpoints',
type: 'local',
suffix: 'chat/v4/friends',
riotRequirements: {
localAuth: true
},
responses: {
'200': zod_1.z.object({
friends: zod_1.z.array(zod_1.z.object({
activePlatform: zod_1.z.string().nullable(),
displayGroup: zod_1.z.string(),
game_name: zod_1.z.string(),
game_tag: zod_1.z.string(),
group: zod_1.z.string(),
last_online_ts: commonTypes_1.millisSchema.nullable(),
name: zod_1.z.string(),
note: zod_1.z.string(),
pid: zod_1.z.string(),
puuid: commonTypes_1.playerUUIDSchema,
region: zod_1.z.string()
}))
})
}
};
//# sourceMappingURL=Friends.js.map