valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
66 lines • 3.23 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.customGameConfigsEndpoint = void 0;
const zod_1 = require("zod");
const commonTypes_1 = require("../../commonTypes");
exports.customGameConfigsEndpoint = {
name: 'Custom Game Configs',
description: 'Get information about the available gamemodes, maps, queues, and gamepods',
queryName: 'Party_FetchCustomGameConfigs',
category: 'Party Endpoints',
type: 'glz',
suffix: 'parties/v1/parties/customgameconfigs',
riotRequirements: {
token: true,
entitlement: true,
clientPlatform: true,
clientVersion: true
},
responses: {
'200': zod_1.z.object({
Enabled: zod_1.z.boolean(),
EnabledMaps: zod_1.z.array(zod_1.z.string()),
EnabledModes: zod_1.z.array(zod_1.z.string()),
Queues: zod_1.z.array(zod_1.z.object({
QueueID: commonTypes_1.queueIDSchema,
Enabled: zod_1.z.boolean(),
TeamSize: zod_1.z.number(),
NumTeams: zod_1.z.number(),
MaxPartySize: zod_1.z.number(),
MinPartySize: zod_1.z.number(),
InvalidPartySizes: zod_1.z.array(zod_1.z.number()),
MaxPartySizeHighSkill: zod_1.z.number(),
HighSkillTier: zod_1.z.number(),
MaxSkillTier: zod_1.z.number(),
AllowFullPartyBypassSkillRestrictions: zod_1.z.boolean(),
Mode: zod_1.z.string(),
IsRanked: zod_1.z.boolean(),
IsTournament: zod_1.z.boolean(),
RequireRoster: zod_1.z.boolean(),
Priority: zod_1.z.number(),
PartyMaxCompetitiveTierRange: zod_1.z.number(),
PartyMaxCompetitiveTierRangePlacementBuffer: zod_1.z.number(),
FullPartyMaxCompetitiveTierRange: zod_1.z.number(),
PartySkillDisparityCompetitiveTiersCeilings: zod_1.z.record(zod_1.z.number()),
UseAccountLevelRequirement: zod_1.z.boolean(),
MinimumAccountLevelRequired: zod_1.z.number(),
GameRules: zod_1.z.record(commonTypes_1.stringBooleanSchema),
SupportedPlatformTypes: zod_1.z.array(commonTypes_1.platformSchema.shape.platformType).length(1),
DisabledContent: zod_1.z.array(zod_1.z.unknown()),
queueFieldA: zod_1.z.array(zod_1.z.unknown()),
NextScheduleChangeSeconds: zod_1.z.number(),
TimeUntilNextScheduleChangeSeconds: zod_1.z.number(),
MapWeights: zod_1.z.array(zod_1.z.string())
.transform(arr => arr.map(el => el.split(':')))
.describe('Array of strings in the format of "map:weight"')
})),
GamePodPingServiceInfo: zod_1.z.record(zod_1.z.string().describe('Game pod ID'), zod_1.z.object({
SecurityHash: zod_1.z.number(),
ObfuscatedIP: zod_1.z.number(),
PingProxyAddress: zod_1.z.string(),
PingProxyAddresses: zod_1.z.array(zod_1.z.string())
}))
})
}
};
//# sourceMappingURL=CustomGameConfigs.js.map