valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
25 lines • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendFriendRequestEndpoint = void 0;
const zod_1 = require("zod");
exports.sendFriendRequestEndpoint = {
name: 'Send Friend Request',
description: 'Sends a friend request to a player. Can be used in conjunction with [GET Friend Requests] and [DELETE Remove Friend Request] to determine a player\'s PUUID from their game name.',
category: 'Local Endpoints',
type: 'local',
suffix: 'chat/v4/friendrequests',
method: 'POST',
riotRequirements: {
localAuth: true
},
body: zod_1.z.object({
game_name: zod_1.z.string(),
game_tag: zod_1.z.string()
}),
responses: {
'200': zod_1.z.object({
requests: zod_1.z.array(zod_1.z.any()).length(0).describe('Empty array')
})
}
};
//# sourceMappingURL=SendFriendRequest.js.map