valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
32 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.partyJoinByCodeEndpoint = void 0;
const commonTypes_1 = require("../../commonTypes");
const zod_1 = require("zod");
exports.partyJoinByCodeEndpoint = {
name: 'Party Join By Code',
description: 'Join a party using an invite code',
queryName: 'Party_CreateInviteCode',
category: 'Party Endpoints',
type: 'glz',
method: 'POST',
suffix: 'parties/v1/players/joinbycode/{code}',
variables: new Map([
['code', zod_1.z.string().describe('The invite code to join the party')]
]),
riotRequirements: {
token: true,
entitlement: true,
clientPlatform: true,
clientVersion: true
},
responses: {
'200': commonTypes_1.partyPlayerSchema,
'404': zod_1.z.object({
httpStatus: zod_1.z.literal(404),
errorCode: zod_1.z.literal('ERR_MISSING_INVITE_CODE_MAPPING'),
message: zod_1.z.literal('No PartyID <--> InviteCode mapping found')
})
}
};
//# sourceMappingURL=PartyJoinByCode.js.map