UNPKG

valorant-api-types

Version:

A collection of documented endpoints and return types for the unofficial Valorant API

45 lines 2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.competitiveUpdatesEndpoint = void 0; const zod_1 = require("zod"); const commonTypes_1 = require("../../commonTypes"); exports.competitiveUpdatesEndpoint = { name: 'Competitive Updates', description: 'Get recent games and how they changed ranking', queryName: 'MMR_FetchCompetitiveUpdates', category: 'PVP Endpoints', type: 'pd', suffix: 'mmr/v1/players/{puuid}/competitiveupdates', query: new Map([ ['startIndex', zod_1.z.number().optional().describe('The index of the first match to return. Defaults to 0')], ['endIndex', zod_1.z.number().optional().describe('The index of the last match to return. Defaults to 10')], ['queue', zod_1.z.string().optional().describe('The queue to filter by. Defaults to all queues')], // Not sure why this "as ZodType" is needed ]), riotRequirements: { token: true, entitlement: true, clientPlatform: true, clientVersion: true }, responses: { '200': zod_1.z.object({ Version: zod_1.z.number(), Subject: commonTypes_1.playerUUIDSchema, Matches: zod_1.z.array(zod_1.z.object({ MatchID: commonTypes_1.matchIDSchema, MapID: commonTypes_1.mapIDSchema, SeasonID: commonTypes_1.seasonIDSchema, MatchStartTime: commonTypes_1.millisSchema, TierAfterUpdate: zod_1.z.number(), TierBeforeUpdate: zod_1.z.number(), RankedRatingAfterUpdate: zod_1.z.number(), RankedRatingBeforeUpdate: zod_1.z.number(), RankedRatingEarned: zod_1.z.number(), RankedRatingPerformanceBonus: zod_1.z.number(), CompetitiveMovement: zod_1.z.literal('MOVEMENT_UNKNOWN'), AFKPenalty: zod_1.z.number() })) }) } }; //# sourceMappingURL=CompetitiveUpdates.js.map