import { EResult, JsPbMessage, OperationResponse } from './shared'; import { EOSType } from './system'; export interface Auth { /** * @returns a boolean indicating if the operation succeeded. */ ClearCachedSignInPin(): Promise; CurrentUserHasCachedSignInPin(): Promise; GetLocalHostname(): Promise; /** * @returns a ProtoBuf message. If deserialized, returns {@link CAuthentication_DeviceDetails}. */ GetMachineID(): Promise; GetRefreshInfo(): Promise; GetSteamGuardData(param0: string): Promise; /** * "Secured" refers to unshared. */ IsSecureComputer(): Promise; SetCachedSignInPin(pin: string): Promise; SetLoginToken(refreshToken: string, accountName: string): Promise; SetSteamGuardData(accountName: string, newGuardData: string): void; StartSignInFromCache(accountName: string, offlineMode: boolean): Promise; UserHasCachedSignInPin(accountName: string): Promise; ValidateCachedSignInPin(accountName: string, pin: string): Promise; } export interface AuthRefreshInfo { reason: number; account_name: string; login_id_token: string; } export interface SteamGuardData { data: string; eresult: EResult; } /** * `deserializeBinary` argument: * ``` * [ * await SteamClient.System.GetOSType(), * await SteamClient.Auth.GetLocalHostname(), * await SteamClient.Auth.GetMachineID(), * ]; * ``` */ export interface CAuthentication_DeviceDetails extends JsPbMessage { client_count(): number | undefined; device_friendly_name(): string | undefined; gaming_device_type(): EGamingDeviceType | undefined; machine_id(): Uint8Array | string; os_type(): EOSType | undefined; platform_type(): EAuthTokenPlatformType | undefined; set_client_count(): any; set_device_friendly_name(): any; set_gaming_device_type(): any; set_machine_id(): any; set_os_type(): any; set_platform_type(): any; } export enum EAuthTokenPlatformType { Unknown, SteamClient, WebBrowser, MobileApp, } export enum EGamingDeviceType { Unknown, StandardPC, Console = 256, PS3 = 272, Steambox = 288, Tesla = 320, Handheld = 512, Phone = 528, SteamDeck = 544, }