UNPKG

valorant-api-types

Version:

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

167 lines 11.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configEndpoint = void 0; const zod_1 = require("zod"); const commonTypes_1 = require("../../commonTypes"); const stringNumberSchema = zod_1.z.string().transform(val => Number(val)); exports.configEndpoint = { name: 'Config', description: 'Get the config for the given player', queryName: 'Config_FetchConfig', category: 'PVP Endpoints', type: 'pd', suffix: 'v1/config/{region}', responses: { '200': zod_1.z.object({ LastApplication: zod_1.z.string().datetime({ offset: true }).transform(val => new Date(val)).describe('Date in ISO 8601 format with sub-second precision'), Collapsed: zod_1.z.object({ 'ARES_MOC_ENTITLEMENT': zod_1.z.string(), 'CLIENT.ICONS.ENABLED': commonTypes_1.stringBooleanSchema, 'CLIENT_LEADERBOARDS_ENABLED': commonTypes_1.stringBooleanSchema, 'GAME_ALLOW_CONSOLE': commonTypes_1.stringBooleanSchema, 'GAME_ALLOW_DEVELOPER_MENU': commonTypes_1.stringBooleanSchema, 'GAME_DISABLED_DEATHCAM': commonTypes_1.stringBooleanSchema, 'GAME_DISABLED_SKINS_WEAPONS': zod_1.z.string().transform(val => val.split(',').map(id => id.substring(1, id.length - 1))), 'GAME_PERFREPORTING_ENABLED': commonTypes_1.stringBooleanSchema, 'GAME_REMOTE_MOVE_INTERP_ENABLED': commonTypes_1.stringBooleanSchema, 'GAME_ROAMINGSETTINGS_ENABLED': commonTypes_1.stringBooleanSchema, 'GAME_ROAMINGSETTINGS_KEY': zod_1.z.string(), 'GAME_ROAMINGSETTINGS_STORAGEURL': zod_1.z.string(), 'MAP_PRELOADING_ENABLED': commonTypes_1.stringBooleanSchema, 'NAMECHECK_PLATFORM_REGION': zod_1.z.string(), 'NAMECHECK_PLATFORM_URL': zod_1.z.string(), 'ROSTER_REALM': zod_1.z.string(), 'SECURITY_WATERMARK_ENABLED': commonTypes_1.stringBooleanSchema, 'SECURITY_WATERMARK_MAX_OPACITY': stringNumberSchema, 'SECURITY_WATERMARK_MIN_OPACITY': stringNumberSchema, 'SECURITY_WATERMARK_TILING_FACTOR': stringNumberSchema, 'SERVICEURL_ACCOUNT_XP': zod_1.z.string(), 'SERVICEURL_AGGSTATS': zod_1.z.string(), 'SERVICEURL_AVS': zod_1.z.string(), 'SERVICEURL_CONTENT': zod_1.z.string(), 'SERVICEURL_CONTRACTS': zod_1.z.string(), 'SERVICEURL_CONTRACT_DEFINITIONS': zod_1.z.string(), 'SERVICEURL_COREGAME': zod_1.z.string(), 'SERVICEURL_DAILY_TICKET': zod_1.z.string(), 'SERVICEURL_FAVORITES': zod_1.z.string(), 'SERVICEURL_GALBS_QUERY': zod_1.z.string(), 'SERVICEURL_LATENCY': zod_1.z.string(), 'SERVICEURL_LOGINQUEUE': zod_1.z.string(), 'SERVICEURL_MASS_REWARDS': zod_1.z.string(), 'SERVICEURL_MATCHDETAILS': zod_1.z.string(), 'SERVICEURL_MATCHHISTORY': zod_1.z.string(), 'SERVICEURL_MATCHMAKING': zod_1.z.string(), 'SERVICEURL_MMR': zod_1.z.string(), 'SERVICEURL_NAME': zod_1.z.string(), 'SERVICEURL_PARTY': zod_1.z.string(), 'SERVICEURL_PATCHNOTES': zod_1.z.string(), 'SERVICEURL_PERSONALIZATION': zod_1.z.string(), 'SERVICEURL_PLAYERFEEDBACK': zod_1.z.string(), 'SERVICEURL_PREGAME': zod_1.z.string(), 'SERVICEURL_PREMIER': zod_1.z.string(), 'SERVICEURL_PROGRESSION': zod_1.z.string(), 'SERVICEURL_PURCHASEMERCHANT': zod_1.z.string(), 'SERVICEURL_REPLAY_CATALOG': zod_1.z.string(), 'SERVICEURL_RESTRICTIONS': zod_1.z.string(), 'SERVICEURL_SESSION': zod_1.z.string(), 'SERVICEURL_STORE': zod_1.z.string(), 'SERVICEURL_TOURNAMENTS': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.de-DE': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.es-MX': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.fr-FR': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.it-IT': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.pl-PL': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.pt-BR': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.ru-RU': zod_1.z.string(), 'SERVICE_TICKER_MESSAGE.tr-TR': zod_1.z.string(), 'SERVICE_TICKER_SEVERITY': zod_1.z.string(), 'STORESCREEN_OFFERREFRESH_MAXDELAY_MILLISECONDS': stringNumberSchema, 'avs.enabled': commonTypes_1.stringBooleanSchema, 'cap.location': zod_1.z.string(), 'characterselect.debugwidgets.hide': commonTypes_1.stringBooleanSchema, 'chat.mutedwords.enabled': commonTypes_1.stringBooleanSchema, 'chat.v3.enabled': commonTypes_1.stringBooleanSchema, 'collection.characters.enabled': commonTypes_1.stringBooleanSchema, 'competitiveSeasonOffsetEndTime': stringNumberSchema, 'config.client.telemetry.samplerate': stringNumberSchema, 'content.filter.enabled': commonTypes_1.stringBooleanSchema, 'content.maps.disabled': zod_1.z.string(), 'eog.wip': commonTypes_1.stringBooleanSchema, 'friends.enabled': commonTypes_1.stringBooleanSchema, 'game.umgchat.enabled': commonTypes_1.stringBooleanSchema, 'homescreen.featuredQueues': zod_1.z.string(), 'homescreen.patchnotes.baseURL': zod_1.z.string(), 'homescreen.promo.enabled': commonTypes_1.stringBooleanSchema, 'homescreen.promo.key': zod_1.z.string(), 'homescreen.webtile.baseURL': zod_1.z.string(), 'loginqueue.region': zod_1.z.string(), 'mainmenubar.collections.enabled': commonTypes_1.stringBooleanSchema, 'mainmenubar.debug.enabled': commonTypes_1.stringBooleanSchema, 'mainmenubar.profile.enabled': commonTypes_1.stringBooleanSchema, 'mainmenubar.progression.enabled': commonTypes_1.stringBooleanSchema, 'mainmenubar.shootingrange.enabled': commonTypes_1.stringBooleanSchema, 'mainmenubar.store.enabled': commonTypes_1.stringBooleanSchema, 'match.details.delay': stringNumberSchema, 'notifications.enabled': commonTypes_1.stringBooleanSchema, 'parties.auto.balance.enabled': commonTypes_1.stringBooleanSchema, 'party.observers.enabled': commonTypes_1.stringBooleanSchema, 'partyinvites.enabled': commonTypes_1.stringBooleanSchema, 'patchavailability.enabled': commonTypes_1.stringBooleanSchema, 'personalization.equipAnyLevel.enabled': commonTypes_1.stringBooleanSchema, 'personalization.useWidePlayerIdentityV2': commonTypes_1.stringBooleanSchema, 'ping.update.interval': stringNumberSchema, 'ping.useGamePodsFromParties': commonTypes_1.stringBooleanSchema, 'platformFaulted.level': zod_1.z.string(), 'playerfeedbacktool.accessurl': zod_1.z.string(), 'playerfeedbacktool.locale': zod_1.z.string(), 'playerfeedbacktool.shard': zod_1.z.string(), 'playerfeedbacktool.show': commonTypes_1.stringBooleanSchema, 'playerfeedbacktool.survey_request_rate_float': stringNumberSchema, 'playscreen.partywidget.enabled': commonTypes_1.stringBooleanSchema, 'playscreen.partywidget.matchmaking.maxsize': stringNumberSchema, 'playscreen.premier.enabled': commonTypes_1.stringBooleanSchema, 'premier.conferences.fetch.enabled': commonTypes_1.stringBooleanSchema, 'premier.leaderboardTab.enabled': commonTypes_1.stringBooleanSchema, 'premier.matchHistoryTab.enabled': commonTypes_1.stringBooleanSchema, 'premier.playscreenflow.enabled': commonTypes_1.stringBooleanSchema, 'premier.rosterEligibilityCheck.enabled': commonTypes_1.stringBooleanSchema, 'premier.seasons.activeseason.enabled': commonTypes_1.stringBooleanSchema, 'premier.seasons.fetch.enabled': commonTypes_1.stringBooleanSchema, 'queue.status.enabled': commonTypes_1.stringBooleanSchema, 'rchat.ingame.enabled': commonTypes_1.stringBooleanSchema, 'reporterfeedback.fetch.enabled': commonTypes_1.stringBooleanSchema, 'reporterfeedback.notifications.enabled': commonTypes_1.stringBooleanSchema, 'restrictions.v2.fetch.enabled': commonTypes_1.stringBooleanSchema, 'restrictions.v2.warnings.enabled': commonTypes_1.stringBooleanSchema, 'riotwarning.fetch.enabled': commonTypes_1.stringBooleanSchema, 'riotwarning.notifications.enabled': commonTypes_1.stringBooleanSchema, 'rnet.useAuthenticatedVoice': commonTypes_1.stringBooleanSchema, 'russia.voice.enabled': commonTypes_1.stringBooleanSchema, 'settings.livediagnostics.allowedplayers': zod_1.z.string().transform(val => val.split(',')).describe('Comma separated list of PUUIDs'), 'shootingtest.enabled': commonTypes_1.stringBooleanSchema, 'skillrating.enabled': commonTypes_1.stringBooleanSchema, 'skillrating.inGame.enabled': commonTypes_1.stringBooleanSchema, 'skillrating.preGame.enabled': commonTypes_1.stringBooleanSchema, 'social.panel.v6.enabled': commonTypes_1.stringBooleanSchema, 'socialviewcontroller.enabled': commonTypes_1.stringBooleanSchema, 'socialviewcontroller.v2.enabled': commonTypes_1.stringBooleanSchema, 'store.isXgpDisabled': commonTypes_1.stringBooleanSchema, 'store.use_currency_inventory_models': commonTypes_1.stringBooleanSchema, 'store.use_platform_bundle_discounted_prices': commonTypes_1.stringBooleanSchema, 'telemetry.rtp.eventendpoint': zod_1.z.string(), 'telemetry.rtp.rfc190scope': zod_1.z.string(), 'temp.voice.allowmuting': commonTypes_1.stringBooleanSchema, 'tournaments.enabled': commonTypes_1.stringBooleanSchema, 'tournaments.pregame.enabled': commonTypes_1.stringBooleanSchema, 'vanguard.accessurl': zod_1.z.string(), 'vanguard.netrequired': commonTypes_1.stringBooleanSchema, 'voice.clutchmute.enabled': commonTypes_1.stringBooleanSchema, 'voice.clutchmute.prompt.enabled': commonTypes_1.stringBooleanSchema, 'voice.provider': zod_1.z.string(), 'whisper.enabled': commonTypes_1.stringBooleanSchema }) }) } }; //# sourceMappingURL=Config.js.map