A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
import { LaunchOption } from 'common/types'
export interface SteamLoginData {
username: string
password: string
}
export interface SteamAccount {
steamId: string
username: string
}
export interface SteamDLCInfo {
appId: string
title: string
owned: boolean
installed: boolean
disabled: boolean
imageUrl: string
imageFallbackUrl: string
storeUrl: string
}
export interface SteamPendingDlcChange {
appId: string
enable: boolean
// Failed apply attempts so far
attempts?: number
}
/** An installed build plus how Steam runs alongside it. */
export interface SteamLaunchTarget {
id: string
platform: 'linux' | 'macos' | 'windows'
// Only set for Windows builds
steamMode: 'wine' | 'host' | 'none' | null
available: boolean
// What must be installed or signed in first
missing: 'build' | 'steam-wine' | 'steam-sign-in' | 'host-steam' | null
// What Aurelia picks without a choice
isDefault: boolean
}
export interface SteamLaunchTargets {
targets: SteamLaunchTarget[]
// User's chosen target id
selected?: string
// Play downloads a missing pick
pinsPlatform?: boolean
}
export interface SteamInstallLibrary {
path: string
free_bytes: number | null
}
/** Best-effort DRM information for an installed Steam game. */
export interface SteamDrmInfo {
/** Third-party DRM declared on the Steam store, e.g. Denuvo. */
notice?: string
/** SteamStub wrapper found on the launch executable. */
steamDrm: boolean
/** Steamworks API DLLs present. Not DRM by itself. */
steamworks: boolean
/** The installed executable was read successfully. */
scanned: boolean
/** The store notice was checked (Aurelia returns the field). */
storeChecked: boolean
}
/** The in-Wine Windows Steam runtime used for Steam-DRM Windows games. */
export interface SteamWindowsRuntimeStatus {
installed: boolean
loggedIn: boolean
savedLogin: boolean
running: boolean
supported: boolean
runnerConfigured: boolean
runnerPath?: string
}
export interface SteamInstallLanguages {
// Steam names, e.g. german
languages: string[]
default_language?: string
installed_language?: string
// Steam name to display locale
language_locales: Record<string, string>
}
interface SteamInstallManifest extends Partial<SteamInstallLanguages> {
download_size: number
disk_size: number
}
interface SteamInstallDlcInfo {
app_name: string
title: string
}
interface SteamGameInstallInfo {
id: string
version: string
path: string
app_name: string
cloud_saves_supported: boolean
external_activation: string
is_dlc: boolean
launch_options: Array<LaunchOption>
owned_dlc: Array<SteamInstallDlcInfo>
platform_versions: Record<string, string>
title: string
}
export interface SteamInstallInfo {
manifest: SteamInstallManifest
game: SteamGameInstallInfo
/** Aurelia binary that produced this info */
aurelia?: string
}
/**
* Outcome of the last Steam Cloud sync for a game
*/
export type SteamCloudSyncState =
| 'unknown'
| 'ok'
| 'syncing'
| 'conflicts'
| 'incomplete'
| 'failed'
export interface SteamCloudSyncStatus {
appId: string
state: SteamCloudSyncState
lastSync?: number
message?: string
conflicts?: number
failed?: number
skipped?: number
}
/** One file in a game's Steam Cloud storage (`aurelia cloud list`). */
export interface SteamCloudFile {
filename: string
size: number
timestamp: number
sha_hash?: string | null
}
export type SteamCloudSyncDirection = 'up' | 'down' | 'both'
/** Game page data fetched through Aurelia. */
export type SteamDataKind =
| 'storeInfo'
| 'achievements'
| 'dlc'
| 'installInfo'
| 'launchOptions'
/** Emitted when a per-game Aurelia fetch fails. */
export interface SteamDataFetchFailure {
appId: string
data: SteamDataKind
/** Aurelia reported no login. */
authRequired: boolean
}
/** Steam Linux Runtime for one Steam game. */
export type SteamLinuxRuntimeChoice =
| 'auto'
| 'none'
| 'scout'
| 'soldier'
| 'sniper'
| 'steamrt4'
/** One game's runtime as Aurelia stores it. */
export interface SteamLinuxRuntimeGame {
supported: boolean
choice?: SteamLinuxRuntimeChoice
// Runtime a native launch uses
effective?: string
}
/** Aurelia's global Steam Linux Runtime switches. */
export interface SteamLinuxRuntimeSettings {
// Aurelia supports runtime containers
supported: boolean
enabled: boolean
autoInstall: boolean
}