UNPKG

valorant-api-types

Version:

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

40 lines 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchContentEndpoint = void 0; const zod_1 = require("zod"); const commonTypes_1 = require("../../commonTypes"); exports.fetchContentEndpoint = { name: 'Fetch Content', description: 'Get a list of seasons, acts, and events', queryName: 'Content_FetchContent', category: 'PVP Endpoints', type: 'shared', suffix: 'content-service/v3/content', riotRequirements: { clientVersion: true, clientPlatform: true, token: true, entitlement: true }, responses: { '200': zod_1.z.object({ DisabledIDs: zod_1.z.array(zod_1.z.unknown()), Seasons: zod_1.z.array(zod_1.z.object({ ID: commonTypes_1.weakUUIDSchema, Name: zod_1.z.string(), Type: zod_1.z.enum(['episode', 'act']), StartTime: commonTypes_1.dateSchema, EndTime: commonTypes_1.dateSchema, IsActive: zod_1.z.boolean() })), Events: zod_1.z.array(zod_1.z.object({ ID: commonTypes_1.weakUUIDSchema, Name: zod_1.z.string(), StartTime: commonTypes_1.dateSchema, EndTime: commonTypes_1.dateSchema, IsActive: zod_1.z.boolean() })) }) } }; //# sourceMappingURL=FetchContent.js.map