UNPKG

valorant-api-types

Version:

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

26 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.entitlementsTokenEndpoint = void 0; const zod_1 = require("zod"); const commonTypes_1 = require("../../commonTypes"); exports.entitlementsTokenEndpoint = { name: 'Entitlements Token', description: 'Gets both the token and entitlement for API usage\n' + '`accessToken` is used as the token and `token` is used as the entitlement.', category: 'Local Endpoints', type: 'local', suffix: 'entitlements/v1/token', riotRequirements: { localAuth: true }, responses: { '200': zod_1.z.object({ accessToken: zod_1.z.string().describe('Used as the token in requests'), entitlements: zod_1.z.array(zod_1.z.unknown()), issuer: zod_1.z.string(), subject: commonTypes_1.playerUUIDSchema, token: zod_1.z.string().describe('Used as the entitlement in requests'), }) } }; //# sourceMappingURL=EntitlementsToken.js.map