UNPKG

@peacockproject/core

Version:

Type definitions for Peacock's core.

23 lines (22 loc) 1.22 kB
import type { Response } from "express"; import type { RequestWithJwt } from "./types/types"; export declare const H3_EPIC_ENTITLEMENTS: string[]; export declare const H2_STEAM_ENTITLEMENTS: string[]; export declare const STEAM_NAMESPACE_2016 = "236870"; export declare const EPIC_NAMESPACE_2016 = "3c06b15a8a2845c0b725d4f952fe00aa"; export declare const STEAM_NAMESPACE_SCPC = "783781"; export declare const STEAM_NAMESPACE_2018 = "863550"; export declare const EPIC_NAMESPACE_2021 = "ed55aa5edc5941de92fd7f64de415793"; export declare const STEAM_NAMESPACE_2021 = "1659040"; export declare const SCPC_ENTITLEMENTS: string[]; export declare function getPlatformEntitlements(req: RequestWithJwt, res: Response): void; /** * Gets a user's entitlements through Epic. * * @param namespace The Epic namespace. * @param epicUid The user's Epic ID. * @param epicAuth The user's Epic authentication token. * @see https://dev.epicgames.com/docs/services/en-US/WebAPIRef/EcomWebAPI/index.html * @returns A string array with the user's entitlements, or an empty array if failed to acquire entitlements. */ export declare function getEpicEntitlements(namespace: string, epicUid: string, epicAuth: string): Promise<string[]>;