@decky/ui 4.9.1 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SidebarNavigation.d.ts +1 -1
- package/dist/globals/SteamClient.d.ts +1 -304
- package/dist/globals/steam-client/App.d.ts +880 -0
- package/dist/globals/steam-client/App.js +320 -0
- package/dist/globals/steam-client/Auth.d.ts +57 -0
- package/dist/globals/steam-client/Auth.js +19 -0
- package/dist/globals/steam-client/Broadcast.d.ts +22 -0
- package/dist/globals/steam-client/Broadcast.js +1 -0
- package/dist/globals/steam-client/Browser.d.ts +45 -0
- package/dist/globals/steam-client/Browser.js +17 -0
- package/dist/globals/steam-client/ClientNotifications.d.ts +20 -0
- package/dist/globals/steam-client/ClientNotifications.js +6 -0
- package/dist/globals/steam-client/Cloud.d.ts +4 -0
- package/dist/globals/steam-client/Cloud.js +1 -0
- package/dist/globals/steam-client/CommunityItems.d.ts +5 -0
- package/dist/globals/steam-client/CommunityItems.js +1 -0
- package/dist/globals/steam-client/Console.d.ts +11 -0
- package/dist/globals/steam-client/Console.js +1 -0
- package/dist/globals/steam-client/Customization.d.ts +8 -0
- package/dist/globals/steam-client/Customization.js +1 -0
- package/dist/globals/steam-client/Downloads.d.ts +63 -0
- package/dist/globals/steam-client/Downloads.js +1 -0
- package/dist/globals/steam-client/FamilySharing.d.ts +20 -0
- package/dist/globals/steam-client/FamilySharing.js +1 -0
- package/dist/globals/steam-client/FriendSettings.d.ts +49 -0
- package/dist/globals/steam-client/FriendSettings.js +6 -0
- package/dist/globals/steam-client/Friends.d.ts +27 -0
- package/dist/globals/steam-client/Friends.js +1 -0
- package/dist/globals/steam-client/GameNotes.d.ts +41 -0
- package/dist/globals/steam-client/GameNotes.js +1 -0
- package/dist/globals/steam-client/GameRecording.d.ts +20 -0
- package/dist/globals/steam-client/GameRecording.js +1 -0
- package/dist/globals/steam-client/GameSessions.d.ts +26 -0
- package/dist/globals/steam-client/GameSessions.js +1 -0
- package/dist/globals/steam-client/Input.d.ts +421 -0
- package/dist/globals/steam-client/Input.js +170 -0
- package/dist/globals/steam-client/InstallFolder.d.ts +57 -0
- package/dist/globals/steam-client/InstallFolder.js +1 -0
- package/dist/globals/steam-client/Installs.d.ts +60 -0
- package/dist/globals/steam-client/Installs.js +20 -0
- package/dist/globals/steam-client/Messaging.d.ts +5 -0
- package/dist/globals/steam-client/Messaging.js +1 -0
- package/dist/globals/steam-client/Music.d.ts +36 -0
- package/dist/globals/steam-client/Music.js +14 -0
- package/dist/globals/steam-client/Notifications.d.ts +260 -0
- package/dist/globals/steam-client/Notifications.js +73 -0
- package/dist/globals/steam-client/OpenVR.d.ts +85 -0
- package/dist/globals/steam-client/OpenVR.js +16 -0
- package/dist/globals/steam-client/Overlay.d.ts +58 -0
- package/dist/globals/steam-client/Overlay.js +18 -0
- package/dist/globals/steam-client/Parental.d.ts +69 -0
- package/dist/globals/steam-client/Parental.js +19 -0
- package/dist/globals/steam-client/RemotePlay.d.ts +225 -0
- package/dist/globals/steam-client/RemotePlay.js +71 -0
- package/dist/globals/steam-client/Screenshots.d.ts +47 -0
- package/dist/globals/steam-client/Screenshots.js +8 -0
- package/dist/globals/steam-client/ServerBrowser.d.ts +117 -0
- package/dist/globals/steam-client/ServerBrowser.js +26 -0
- package/dist/globals/steam-client/Settings.d.ts +398 -0
- package/dist/globals/steam-client/Settings.js +96 -0
- package/dist/globals/steam-client/SharedConnection.d.ts +22 -0
- package/dist/globals/steam-client/SharedConnection.js +1 -0
- package/dist/globals/steam-client/Stats.d.ts +4 -0
- package/dist/globals/steam-client/Stats.js +1 -0
- package/dist/globals/steam-client/SteamChina.d.ts +3 -0
- package/dist/globals/steam-client/SteamChina.js +1 -0
- package/dist/globals/steam-client/Storage.d.ts +8 -0
- package/dist/globals/steam-client/Storage.js +1 -0
- package/dist/globals/steam-client/Streaming.d.ts +15 -0
- package/dist/globals/steam-client/Streaming.js +1 -0
- package/dist/globals/steam-client/UI.d.ts +44 -0
- package/dist/globals/steam-client/UI.js +12 -0
- package/dist/globals/steam-client/URL.d.ts +16 -0
- package/dist/globals/steam-client/URL.js +1 -0
- package/dist/globals/steam-client/Updates.d.ts +68 -0
- package/dist/globals/steam-client/Updates.js +34 -0
- package/dist/globals/steam-client/User.d.ts +130 -0
- package/dist/globals/steam-client/User.js +33 -0
- package/dist/globals/steam-client/WebChat.d.ts +60 -0
- package/dist/globals/steam-client/WebChat.js +6 -0
- package/dist/globals/steam-client/WebUITransport.d.ts +11 -0
- package/dist/globals/steam-client/WebUITransport.js +1 -0
- package/dist/globals/steam-client/Window.d.ts +66 -0
- package/dist/globals/steam-client/Window.js +6 -0
- package/dist/globals/steam-client/browser-view/BrowserViewPopup.d.ts +124 -0
- package/dist/globals/steam-client/browser-view/BrowserViewPopup.js +35 -0
- package/dist/globals/steam-client/browser-view/index.d.ts +20 -0
- package/dist/globals/steam-client/browser-view/index.js +1 -0
- package/dist/globals/steam-client/index.d.ts +89 -0
- package/dist/globals/steam-client/index.js +1 -0
- package/dist/globals/steam-client/shared.d.ts +166 -0
- package/dist/globals/steam-client/shared.js +146 -0
- package/dist/globals/steam-client/system/Audio.d.ts +42 -0
- package/dist/globals/steam-client/system/Audio.js +1 -0
- package/dist/globals/steam-client/system/AudioDevice.d.ts +92 -0
- package/dist/globals/steam-client/system/AudioDevice.js +33 -0
- package/dist/globals/steam-client/system/Bluetooth.d.ts +47 -0
- package/dist/globals/steam-client/system/Bluetooth.js +15 -0
- package/dist/globals/steam-client/system/Devkit.d.ts +7 -0
- package/dist/globals/steam-client/system/Devkit.js +1 -0
- package/dist/globals/steam-client/system/Display.d.ts +10 -0
- package/dist/globals/steam-client/system/Display.js +1 -0
- package/dist/globals/steam-client/system/DisplayManager.d.ts +9 -0
- package/dist/globals/steam-client/system/DisplayManager.js +1 -0
- package/dist/globals/steam-client/system/Dock.d.ts +19 -0
- package/dist/globals/steam-client/system/Dock.js +1 -0
- package/dist/globals/steam-client/system/Perf.d.ts +159 -0
- package/dist/globals/steam-client/system/Perf.js +53 -0
- package/dist/globals/steam-client/system/Report.d.ts +13 -0
- package/dist/globals/steam-client/system/Report.js +1 -0
- package/dist/globals/steam-client/system/UI.d.ts +28 -0
- package/dist/globals/steam-client/system/UI.js +1 -0
- package/dist/globals/steam-client/system/index.d.ts +243 -0
- package/dist/globals/steam-client/system/index.js +111 -0
- package/dist/globals/steam-client/system/network/Device.d.ts +10 -0
- package/dist/globals/steam-client/system/network/Device.js +1 -0
- package/dist/globals/steam-client/system/network/index.d.ts +312 -0
- package/dist/globals/steam-client/system/network/index.js +55 -0
- package/dist/globals/stores.d.ts +26 -13
- package/dist/modules/Router.d.ts +2 -39
- package/dist/modules/Router.js +0 -39
- package/package.json +1 -1
- package/src/components/SidebarNavigation.ts +1 -1
- package/src/globals/SteamClient.ts +4 -320
- package/src/globals/steam-client/App.ts +1749 -0
- package/src/globals/steam-client/Auth.ts +105 -0
- package/src/globals/steam-client/Broadcast.ts +56 -0
- package/src/globals/steam-client/Browser.ts +91 -0
- package/src/globals/steam-client/ClientNotifications.ts +39 -0
- package/src/globals/steam-client/Cloud.ts +14 -0
- package/src/globals/steam-client/CommunityItems.ts +24 -0
- package/src/globals/steam-client/Console.ts +43 -0
- package/src/globals/steam-client/Customization.ts +12 -0
- package/src/globals/steam-client/Downloads.ts +175 -0
- package/src/globals/steam-client/FamilySharing.ts +30 -0
- package/src/globals/steam-client/FriendSettings.ts +80 -0
- package/src/globals/steam-client/Friends.ts +70 -0
- package/src/globals/steam-client/GameNotes.ts +73 -0
- package/src/globals/steam-client/GameRecording.ts +29 -0
- package/src/globals/steam-client/GameSessions.ts +59 -0
- package/src/globals/steam-client/Input.ts +762 -0
- package/src/globals/steam-client/InstallFolder.ts +167 -0
- package/src/globals/steam-client/Installs.ts +131 -0
- package/src/globals/steam-client/Messaging.ts +20 -0
- package/src/globals/steam-client/Music.ts +99 -0
- package/src/globals/steam-client/Notifications.ts +333 -0
- package/src/globals/steam-client/OpenVR.ts +122 -0
- package/src/globals/steam-client/Overlay.ts +172 -0
- package/src/globals/steam-client/Parental.ts +129 -0
- package/src/globals/steam-client/RemotePlay.ts +342 -0
- package/src/globals/steam-client/Screenshots.ts +149 -0
- package/src/globals/steam-client/ServerBrowser.ts +372 -0
- package/src/globals/steam-client/Settings.ts +663 -0
- package/src/globals/steam-client/SharedConnection.ts +43 -0
- package/src/globals/steam-client/Stats.ts +10 -0
- package/src/globals/steam-client/SteamChina.ts +3 -0
- package/src/globals/steam-client/Storage.ts +24 -0
- package/src/globals/steam-client/Streaming.ts +59 -0
- package/src/globals/steam-client/UI.ts +90 -0
- package/src/globals/steam-client/URL.ts +174 -0
- package/src/globals/steam-client/Updates.ts +101 -0
- package/src/globals/steam-client/User.ts +266 -0
- package/src/globals/steam-client/WebChat.ts +164 -0
- package/src/globals/steam-client/WebUITransport.ts +21 -0
- package/src/globals/steam-client/Window.ts +235 -0
- package/src/globals/steam-client/browser-view/BrowserViewPopup.ts +393 -0
- package/src/globals/steam-client/browser-view/index.ts +54 -0
- package/src/globals/steam-client/index.ts +90 -0
- package/src/globals/steam-client/shared.ts +262 -0
- package/src/globals/steam-client/system/Audio.ts +202 -0
- package/src/globals/steam-client/system/AudioDevice.ts +116 -0
- package/src/globals/steam-client/system/Bluetooth.ts +171 -0
- package/src/globals/steam-client/system/Devkit.ts +11 -0
- package/src/globals/steam-client/system/Display.ts +15 -0
- package/src/globals/steam-client/system/DisplayManager.ts +16 -0
- package/src/globals/steam-client/system/Dock.ts +34 -0
- package/src/globals/steam-client/system/Perf.ts +194 -0
- package/src/globals/steam-client/system/Report.ts +39 -0
- package/src/globals/steam-client/system/UI.ts +38 -0
- package/src/globals/steam-client/system/index.ts +390 -0
- package/src/globals/steam-client/system/network/Device.ts +17 -0
- package/src/globals/steam-client/system/network/index.ts +403 -0
- package/src/globals/stores.ts +30 -13
- package/src/modules/Router.ts +2 -40
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ESteamRealm, Unregisterable } from "./shared";
|
|
2
|
+
export interface SharedConnection {
|
|
3
|
+
AllocateSharedConnection(): Promise<number>;
|
|
4
|
+
Close(hSharedConnection: number): void;
|
|
5
|
+
RegisterOnBinaryMessageReceived(hSharedConnection: number, callback: (data: ArrayBuffer) => void): Unregisterable;
|
|
6
|
+
RegisterOnLogonInfoChanged(hSharedConnection: number, callback: (info: LogonInfo) => void): Unregisterable;
|
|
7
|
+
RegisterOnMessageReceived(hSharedConnection: number, callback: (param0: any) => void): Unregisterable;
|
|
8
|
+
SendMsg: any;
|
|
9
|
+
SendMsgAndAwaitBinaryResponse: any;
|
|
10
|
+
SendMsgAndAwaitResponse(hSharedConnection: number, msg: string): Promise<any>;
|
|
11
|
+
SubscribeToClientServiceMethod(hSharedConnection: number, param1: any): any;
|
|
12
|
+
SubscribeToEMsg(hSharedConnection: number, param1: any): any;
|
|
13
|
+
}
|
|
14
|
+
export interface LogonInfo {
|
|
15
|
+
bLoggedOn: boolean;
|
|
16
|
+
eUniverse: ESteamRealm;
|
|
17
|
+
strAccountName: string;
|
|
18
|
+
strCommunityImagesURL: string;
|
|
19
|
+
strPersonaName: string;
|
|
20
|
+
strSteamid: string;
|
|
21
|
+
strUserCountry: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperationResponse } from "./shared";
|
|
2
|
+
export interface Storage {
|
|
3
|
+
DeleteKey(key: string): Promise<OperationResponse | undefined>;
|
|
4
|
+
GetJSON(key: string): Promise<OperationResponse | string>;
|
|
5
|
+
GetString(key: string): Promise<OperationResponse | string>;
|
|
6
|
+
SetObject(key: string, value: object): Promise<OperationResponse | undefined>;
|
|
7
|
+
SetString(key: string, value: string): Promise<OperationResponse | undefined>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EResult, Unregisterable } from "./shared";
|
|
2
|
+
import { LaunchOption } from "./App";
|
|
3
|
+
export interface Streaming {
|
|
4
|
+
AcceptStreamingEULA(appId: number, id: string, version: number): void;
|
|
5
|
+
CancelStreamGame(): void;
|
|
6
|
+
RegisterForStreamingClientFinished(callback: (code: EResult, result: string) => void): Unregisterable;
|
|
7
|
+
RegisterForStreamingClientLaunchProgress(callback: (actionType: string, taskDetails: string, done: number, total: number) => void): Unregisterable;
|
|
8
|
+
RegisterForStreamingClientStarted(callback: (appId: number) => void): Unregisterable;
|
|
9
|
+
RegisterForStreamingLaunchComplete(callback: (code: EResult, result: string) => void): Unregisterable;
|
|
10
|
+
RegisterForStreamingShowEula(callback: (appId: number) => void): Unregisterable;
|
|
11
|
+
RegisterForStreamingShowIntro(callback: (appId: number, param: string) => void): Unregisterable;
|
|
12
|
+
RegisterForStreamingShowLaunchOptions(callback: (appId: number, launchOptions: LaunchOption[]) => void): Unregisterable;
|
|
13
|
+
StreamingContinueStreamGame(): void;
|
|
14
|
+
StreamingSetLaunchOption(index: number): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EUIMode, Unregisterable } from "./shared";
|
|
2
|
+
import { EOSType } from "./system";
|
|
3
|
+
export interface UI {
|
|
4
|
+
EnsureMainWindowCreated(): void;
|
|
5
|
+
ExitBigPictureMode(): void;
|
|
6
|
+
GetDesiredSteamUIWindows(): Promise<SteamWindow[]>;
|
|
7
|
+
GetOSEndOfLifeInfo(): Promise<OSEndOfLifeInfo>;
|
|
8
|
+
GetUIMode(): Promise<EUIMode>;
|
|
9
|
+
NotifyAppInitialized(): void;
|
|
10
|
+
RegisterDesiredSteamUIWindowsChanged(callback: () => void): Unregisterable;
|
|
11
|
+
RegisterForClientConVar(convar: string, callback: (value: string) => void): Unregisterable;
|
|
12
|
+
RegisterForErrorCondition(callback: (param0: number, param1: number) => void): Unregisterable;
|
|
13
|
+
RegisterForKioskModeResetSignal(callback: () => void): Unregisterable;
|
|
14
|
+
RegisterForStartupFinished(callback: () => void): Unregisterable;
|
|
15
|
+
RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
|
|
16
|
+
ResetErrorCondition(): void;
|
|
17
|
+
SetUIMode(mode: EUIMode): void;
|
|
18
|
+
}
|
|
19
|
+
export declare enum EWindowType {
|
|
20
|
+
MainGamepadUI = 0,
|
|
21
|
+
OverlayGamepadUI = 1,
|
|
22
|
+
Keyboard = 2,
|
|
23
|
+
ControllerConfigurator = 3,
|
|
24
|
+
VR = 4,
|
|
25
|
+
MainDesktopUI = 5,
|
|
26
|
+
DesktopLogin = 6,
|
|
27
|
+
OverlayDesktopUI = 7,
|
|
28
|
+
SteamChinaReviewLauncher = 8
|
|
29
|
+
}
|
|
30
|
+
export interface OSEndOfLifeInfo {
|
|
31
|
+
bOSWillBeUnsupported: boolean;
|
|
32
|
+
osType: EOSType;
|
|
33
|
+
}
|
|
34
|
+
export interface SteamWindow {
|
|
35
|
+
appid: number;
|
|
36
|
+
hwndParent: number;
|
|
37
|
+
nBrowserID: number;
|
|
38
|
+
strAppName: string;
|
|
39
|
+
unID: number;
|
|
40
|
+
unPID: number;
|
|
41
|
+
windowType: EWindowType;
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var EWindowType;
|
|
2
|
+
(function (EWindowType) {
|
|
3
|
+
EWindowType[EWindowType["MainGamepadUI"] = 0] = "MainGamepadUI";
|
|
4
|
+
EWindowType[EWindowType["OverlayGamepadUI"] = 1] = "OverlayGamepadUI";
|
|
5
|
+
EWindowType[EWindowType["Keyboard"] = 2] = "Keyboard";
|
|
6
|
+
EWindowType[EWindowType["ControllerConfigurator"] = 3] = "ControllerConfigurator";
|
|
7
|
+
EWindowType[EWindowType["VR"] = 4] = "VR";
|
|
8
|
+
EWindowType[EWindowType["MainDesktopUI"] = 5] = "MainDesktopUI";
|
|
9
|
+
EWindowType[EWindowType["DesktopLogin"] = 6] = "DesktopLogin";
|
|
10
|
+
EWindowType[EWindowType["OverlayDesktopUI"] = 7] = "OverlayDesktopUI";
|
|
11
|
+
EWindowType[EWindowType["SteamChinaReviewLauncher"] = 8] = "SteamChinaReviewLauncher";
|
|
12
|
+
})(EWindowType || (EWindowType = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Unregisterable } from "./shared";
|
|
2
|
+
export interface URL {
|
|
3
|
+
ExecuteSteamURL(url: string): void;
|
|
4
|
+
GetSteamURLList(urls: SteamWebURL_t[]): Promise<SteamURLs>;
|
|
5
|
+
GetWebSessionID(): Promise<string>;
|
|
6
|
+
RegisterForRunSteamURL(section: string, callback: (param0: number, url: string) => void): Unregisterable;
|
|
7
|
+
RegisterForSteamURLChanges(callback: () => void): void;
|
|
8
|
+
}
|
|
9
|
+
export type SteamWebURL_t = "AllNotifications" | "AppHoverPublic" | "AppHoverPublicFull" | "AppNewsPage" | "AsyncGames" | "AvatarBaseURL" | "BaseURLSharedCDN" | "Chat" | "ChatRoot" | "ClaimEntitlements" | "ClanAssetCDN" | "CommentNotifications" | "CommunityHome" | "CommunityAddFriends" | "CommunityCDN" | "CommunityFilePage" | "CommunityFriendsThatPlay" | "CommunityFrontPage" | "CommunityGroupSearch" | "CommunityImages" | "CommunityInventory" | "CommunityMarket" | "CommunityMarketApp" | "CommunityRecommendations" | "CommunityScreenshots" | "CommunitySingleScreenshot" | "CurrentlyPlayedWith" | "EventAnnouncementPage" | "FamilyManagement" | "FamilySharing" | "GameHub" | "GameHubBroadcasts" | "GameHubDiscussions" | "GameHubGuides" | "GameHubNews" | "GameHubReviews" | "GlobalAchievementStatsPage" | "GlobalLeaderboardsPage" | "GroupSteamIDPage" | "HardwareSurvey" | "HelpAppPage" | "HelpChangeEmail" | "HelpChangePassword" | "HelpFAQ" | "HelpFrontPage" | "HelpWithLogin" | "HelpWithLoginInfo" | "HelpWithSteamGuardCode" | "HelpVacBans" | "ItemStorePage" | "ItemStoreDetailPage" | "JoinTrade" | "LegalInformation" | "LibraryAppDetails" | "LibraryAppReview" | "LibraryFeaturedBroadcasts" | "ManageGiftsPage" | "ManageSteamGuard" | "ModeratorMessages" | "Mobile" | "MyHelpRequests" | "OfficialGameGroupPage" | "NewsHomePage" | "ParentalBlocked" | "ParentalSetup" | "PendingFriends" | "PendingGift" | "PointsShop" | "PrivacyPolicy" | "RecommendGame" | "RedeemWalletVoucher" | "RegisterKey" | "RegisterKeyNoParams" | "SSA" | "SteamAnnouncements" | "SteamClientBetaBugReports" | "SteamClientBetaNewsPage" | "SteamClientBetaNewsPageFancy" | "SteamClientNewsPage" | "SteamClientPatchNotes" | "SteamClientBetaPatchNotes" | "SteamDiscussions" | "SteamIDAchievementsPage" | "SteamIDAppTradingCardsPage" | "SteamIDBadgeInfo" | "SteamIDBadgePage" | "SteamIDBroadcastPage" | "SteamIDEditPage" | "SteamIDEditPrivacyPage" | "SteamIDFriendsList" | "SteamIDFriendsPage" | "SteamIDGroupsPage" | "SteamIDMyProfile" | "SteamIDPage" | "SteamLanguage" | "SteamPreferences" | "SteamVRHMDHelp" | "SteamWorkshop" | "SteamWorkshopPage" | "SteamWorkshopSubscriptions" | "SteamWorkshopUpdatedSubscriptions" | "StoreAccount" | "StoreAddFundsPage" | "StoreAppHover" | "StoreAppImages" | "StoreAppPage" | "StoreAppPageAddToCart" | "StoreCart" | "StoreCDN" | "StoreDlcPage" | "StoreExplore" | "StoreExploreNew" | "StoreFreeToPlay" | "StoreFrontPage" | "StoreGameSearchPage" | "StoreGreatOnDeck" | "StorePublisherPage" | "StoreSpecials" | "StoreStats" | "StoreVR" | "StoreWebMicroTxnPage" | "SupportMessages" | "TextFilterSettings" | "TodayPage" | "TradeOffers" | "VideoCDN" | "UserAchievementsPage" | "UserLeaderboardsPage" | "UserStatsPage" | "UserWishlist" | "WatchVideo" | "WebAPI" | "WorkshopEula" | "YearInReview";
|
|
10
|
+
export interface SteamURL {
|
|
11
|
+
url: string;
|
|
12
|
+
feature: number;
|
|
13
|
+
}
|
|
14
|
+
export type SteamURLs = {
|
|
15
|
+
[url in SteamWebURL_t]: SteamURL;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EResult, JsPbMessage, OperationResponse, Unregisterable } from "./shared";
|
|
2
|
+
export interface Updates {
|
|
3
|
+
ApplyUpdates(base64: string): Promise<OperationResponse>;
|
|
4
|
+
CheckForUpdates(): Promise<OperationResponse>;
|
|
5
|
+
GetCurrentOSBranch(): Promise<OSBranch>;
|
|
6
|
+
GetOSBranchList(): Promise<any[]>;
|
|
7
|
+
RegisterForUpdateStateChanges(callback: (data: ArrayBuffer) => void): Unregisterable;
|
|
8
|
+
SelectOSBranch(base64: string): Promise<OperationResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface OSBranch {
|
|
11
|
+
eBranch: EOSBranch;
|
|
12
|
+
sRawName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare enum EOSBranch {
|
|
15
|
+
Unknown = 0,
|
|
16
|
+
Release = 1,
|
|
17
|
+
ReleaseCandidate = 2,
|
|
18
|
+
Beta = 3,
|
|
19
|
+
BetaCandidate = 4,
|
|
20
|
+
Preview = 5,
|
|
21
|
+
PreviewCandidate = 6,
|
|
22
|
+
Main = 7,
|
|
23
|
+
Staging = 8
|
|
24
|
+
}
|
|
25
|
+
export interface MsgSystemUpdateState extends JsPbMessage {
|
|
26
|
+
state(): EUpdaterState | undefined;
|
|
27
|
+
progress(): UpdateProgress | undefined;
|
|
28
|
+
supports_os_updates(): boolean | undefined;
|
|
29
|
+
update_apply_results(): UpdateApplyResult[];
|
|
30
|
+
update_check_results(): UpdateCheckResult[];
|
|
31
|
+
}
|
|
32
|
+
export interface UpdateApplyResult {
|
|
33
|
+
type: EUpdaterType;
|
|
34
|
+
eresult: EResult;
|
|
35
|
+
requires_client_restart: boolean;
|
|
36
|
+
requires_system_restart: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface UpdateCheckResult {
|
|
39
|
+
type: EUpdaterType;
|
|
40
|
+
eresult: EResult;
|
|
41
|
+
rtime_checked: number;
|
|
42
|
+
available: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface UpdateProgress {
|
|
45
|
+
stage_progress: number | undefined;
|
|
46
|
+
stage_size_bytes: number | undefined;
|
|
47
|
+
rtime_estimated_completion: number | undefined;
|
|
48
|
+
}
|
|
49
|
+
export declare enum EUpdaterState {
|
|
50
|
+
Invalid = 0,
|
|
51
|
+
UpToDate = 2,
|
|
52
|
+
Checking = 3,
|
|
53
|
+
Available = 4,
|
|
54
|
+
Applying = 5,
|
|
55
|
+
ClientRestartPending = 6,
|
|
56
|
+
SystemRestartPending = 7,
|
|
57
|
+
RollBack = 8
|
|
58
|
+
}
|
|
59
|
+
export declare enum EUpdaterType {
|
|
60
|
+
Invalid = 0,
|
|
61
|
+
Client = 1,
|
|
62
|
+
OS = 2,
|
|
63
|
+
BIOS = 3,
|
|
64
|
+
Aggregated = 4,
|
|
65
|
+
Test1 = 5,
|
|
66
|
+
Test2 = 6,
|
|
67
|
+
Dummy = 7
|
|
68
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export var EOSBranch;
|
|
2
|
+
(function (EOSBranch) {
|
|
3
|
+
EOSBranch[EOSBranch["Unknown"] = 0] = "Unknown";
|
|
4
|
+
EOSBranch[EOSBranch["Release"] = 1] = "Release";
|
|
5
|
+
EOSBranch[EOSBranch["ReleaseCandidate"] = 2] = "ReleaseCandidate";
|
|
6
|
+
EOSBranch[EOSBranch["Beta"] = 3] = "Beta";
|
|
7
|
+
EOSBranch[EOSBranch["BetaCandidate"] = 4] = "BetaCandidate";
|
|
8
|
+
EOSBranch[EOSBranch["Preview"] = 5] = "Preview";
|
|
9
|
+
EOSBranch[EOSBranch["PreviewCandidate"] = 6] = "PreviewCandidate";
|
|
10
|
+
EOSBranch[EOSBranch["Main"] = 7] = "Main";
|
|
11
|
+
EOSBranch[EOSBranch["Staging"] = 8] = "Staging";
|
|
12
|
+
})(EOSBranch || (EOSBranch = {}));
|
|
13
|
+
export var EUpdaterState;
|
|
14
|
+
(function (EUpdaterState) {
|
|
15
|
+
EUpdaterState[EUpdaterState["Invalid"] = 0] = "Invalid";
|
|
16
|
+
EUpdaterState[EUpdaterState["UpToDate"] = 2] = "UpToDate";
|
|
17
|
+
EUpdaterState[EUpdaterState["Checking"] = 3] = "Checking";
|
|
18
|
+
EUpdaterState[EUpdaterState["Available"] = 4] = "Available";
|
|
19
|
+
EUpdaterState[EUpdaterState["Applying"] = 5] = "Applying";
|
|
20
|
+
EUpdaterState[EUpdaterState["ClientRestartPending"] = 6] = "ClientRestartPending";
|
|
21
|
+
EUpdaterState[EUpdaterState["SystemRestartPending"] = 7] = "SystemRestartPending";
|
|
22
|
+
EUpdaterState[EUpdaterState["RollBack"] = 8] = "RollBack";
|
|
23
|
+
})(EUpdaterState || (EUpdaterState = {}));
|
|
24
|
+
export var EUpdaterType;
|
|
25
|
+
(function (EUpdaterType) {
|
|
26
|
+
EUpdaterType[EUpdaterType["Invalid"] = 0] = "Invalid";
|
|
27
|
+
EUpdaterType[EUpdaterType["Client"] = 1] = "Client";
|
|
28
|
+
EUpdaterType[EUpdaterType["OS"] = 2] = "OS";
|
|
29
|
+
EUpdaterType[EUpdaterType["BIOS"] = 3] = "BIOS";
|
|
30
|
+
EUpdaterType[EUpdaterType["Aggregated"] = 4] = "Aggregated";
|
|
31
|
+
EUpdaterType[EUpdaterType["Test1"] = 5] = "Test1";
|
|
32
|
+
EUpdaterType[EUpdaterType["Test2"] = 6] = "Test2";
|
|
33
|
+
EUpdaterType[EUpdaterType["Dummy"] = 7] = "Dummy";
|
|
34
|
+
})(EUpdaterType || (EUpdaterType = {}));
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EResult, OperationResponse, Unregisterable } from "./shared";
|
|
2
|
+
export interface User {
|
|
3
|
+
AuthorizeMicrotxn(txnId: number | string): void;
|
|
4
|
+
CancelLogin(): void;
|
|
5
|
+
CancelMicrotxn(txnId: number | string): void;
|
|
6
|
+
CancelShutdown(): void;
|
|
7
|
+
ChangeUser(): void;
|
|
8
|
+
Connect(): Promise<OperationResponse>;
|
|
9
|
+
FlipToLogin(): void;
|
|
10
|
+
ForceShutdown(): void;
|
|
11
|
+
ForgetPassword(accountName: string): Promise<boolean>;
|
|
12
|
+
GetIPCountry(): Promise<string>;
|
|
13
|
+
GetLoginProgress(callback: (param0: number, param1: number) => void): Unregisterable;
|
|
14
|
+
GetLoginUsers(): Promise<LoginUser[]>;
|
|
15
|
+
GoOffline(): void;
|
|
16
|
+
GoOnline(): void;
|
|
17
|
+
OptOutOfSurvey(): void;
|
|
18
|
+
PrepareForSystemSuspend(): Promise<{
|
|
19
|
+
result: EResult;
|
|
20
|
+
}>;
|
|
21
|
+
Reconnect(): void;
|
|
22
|
+
RegisterForConnectionAttemptsThrottled(callback: (data: ConnectionAttempt) => void): Unregisterable;
|
|
23
|
+
RegisterForCurrentUserChanges(callback: (user: CurrentUser) => void): void;
|
|
24
|
+
RegisterForLoginStateChange(callback: (accountName: string, state: ELoginState, result: EResult, param3: number, percentage: number, emailDomain: string) => void): Unregisterable;
|
|
25
|
+
RegisterForPrepareForSystemSuspendProgress(callback: (progress: SuspendProgress) => void): Unregisterable;
|
|
26
|
+
RegisterForResumeSuspendedGamesProgress(callback: (progress: SuspendProgress) => void): Unregisterable;
|
|
27
|
+
RegisterForShowHardwareSurvey(callback: () => void): Unregisterable;
|
|
28
|
+
RegisterForShutdownDone(callback: (state: EShutdownStep, appid: number, param2: boolean) => void): Unregisterable;
|
|
29
|
+
RegisterForShutdownFailed(callback: (state: EShutdownStep, appid: number, success: boolean) => void): Unregisterable;
|
|
30
|
+
RegisterForShutdownStart(callback: (param0: boolean) => void): Unregisterable;
|
|
31
|
+
RegisterForShutdownState(callback: (state: EShutdownStep, appid: number, allowForceQuit: boolean) => void): Unregisterable;
|
|
32
|
+
RemoveUser(accountName: string): void;
|
|
33
|
+
RequestSupportSystemReport(reportId: string): Promise<{
|
|
34
|
+
bSuccess: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
ResumeSuspendedGames(param0: boolean): Promise<ResumeSuspendedGamesResult>;
|
|
37
|
+
RunSurvey(callback: (surveySections: SurveySection[]) => void): void;
|
|
38
|
+
SendSurvey(): void;
|
|
39
|
+
SetAsyncNotificationEnabled(appId: number, enable: boolean): void;
|
|
40
|
+
SetLoginCredentials(accountName: string, password: string, rememberMe: boolean): void;
|
|
41
|
+
SetOOBEComplete(): void;
|
|
42
|
+
ShouldShowUserChooser(): Promise<boolean>;
|
|
43
|
+
SignOutAndRestart(): void;
|
|
44
|
+
StartLogin(): void;
|
|
45
|
+
StartOffline(value: boolean): void;
|
|
46
|
+
StartRestart(force: boolean): void;
|
|
47
|
+
StartShutdown(force: boolean): void;
|
|
48
|
+
}
|
|
49
|
+
export interface ConnectionAttempt {
|
|
50
|
+
rtCooldownExpiration: number;
|
|
51
|
+
}
|
|
52
|
+
export interface CurrentUser {
|
|
53
|
+
NotificationCounts: {
|
|
54
|
+
async_game_updates: number;
|
|
55
|
+
comments: number;
|
|
56
|
+
gifts: number;
|
|
57
|
+
help_request_replies: number;
|
|
58
|
+
inventory_items: number;
|
|
59
|
+
invites: number;
|
|
60
|
+
moderator_messages: number;
|
|
61
|
+
offline_messages: number;
|
|
62
|
+
trade_offers: number;
|
|
63
|
+
};
|
|
64
|
+
bHWSurveyPending: boolean;
|
|
65
|
+
bIsLimited: boolean;
|
|
66
|
+
bIsOfflineMode: boolean;
|
|
67
|
+
bPromptToChangePassword: boolean;
|
|
68
|
+
bSupportAckOnlyMessages: boolean;
|
|
69
|
+
bSupportAlertActive: boolean;
|
|
70
|
+
bSupportPopupMessage: boolean;
|
|
71
|
+
clientinstanceid: string;
|
|
72
|
+
strAccountBalance: string;
|
|
73
|
+
strAccountBalancePending: string;
|
|
74
|
+
strAccountName: string;
|
|
75
|
+
strFamilyGroupID: string;
|
|
76
|
+
strSteamID: string;
|
|
77
|
+
}
|
|
78
|
+
export declare enum ELoginState {
|
|
79
|
+
None = 0,
|
|
80
|
+
WelcomeDialog = 1,
|
|
81
|
+
WaitingForCreateUser = 2,
|
|
82
|
+
WaitingForCredentials = 3,
|
|
83
|
+
WaitingForNetwork = 4,
|
|
84
|
+
WaitingForServerResponse = 5,
|
|
85
|
+
WaitingForLibraryReady = 6,
|
|
86
|
+
Success = 7,
|
|
87
|
+
Quit = 8
|
|
88
|
+
}
|
|
89
|
+
export declare enum EShutdownStep {
|
|
90
|
+
None = 0,
|
|
91
|
+
Start = 1,
|
|
92
|
+
WaitForGames = 2,
|
|
93
|
+
WaitForCloud = 3,
|
|
94
|
+
FinishingDownload = 4,
|
|
95
|
+
WaitForDownload = 5,
|
|
96
|
+
WaitForServiceApps = 6,
|
|
97
|
+
WaitForLogOff = 7,
|
|
98
|
+
Done = 8
|
|
99
|
+
}
|
|
100
|
+
export declare enum ESuspendResumeProgressState {
|
|
101
|
+
Invalid = 0,
|
|
102
|
+
Complete = 1,
|
|
103
|
+
CloudSync = 2,
|
|
104
|
+
LoggingIn = 3,
|
|
105
|
+
WaitingForApp = 4,
|
|
106
|
+
Working = 5
|
|
107
|
+
}
|
|
108
|
+
export interface LoginUser {
|
|
109
|
+
personaName: string;
|
|
110
|
+
accountName: string;
|
|
111
|
+
hasPin: boolean;
|
|
112
|
+
rememberPassword: boolean;
|
|
113
|
+
avatarUrl: string;
|
|
114
|
+
}
|
|
115
|
+
export interface ResumeSuspendedGamesResult {
|
|
116
|
+
nAppIDPlayingElsewhere: number;
|
|
117
|
+
result: EResult;
|
|
118
|
+
}
|
|
119
|
+
export interface SuspendProgress {
|
|
120
|
+
bGameSuspended: boolean;
|
|
121
|
+
state: ESuspendResumeProgressState;
|
|
122
|
+
}
|
|
123
|
+
export interface SurveyEntry {
|
|
124
|
+
strName: string;
|
|
125
|
+
vecArgs: string[];
|
|
126
|
+
}
|
|
127
|
+
export interface SurveySection {
|
|
128
|
+
strSectionName: string;
|
|
129
|
+
vecEntries: SurveyEntry[];
|
|
130
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export var ELoginState;
|
|
2
|
+
(function (ELoginState) {
|
|
3
|
+
ELoginState[ELoginState["None"] = 0] = "None";
|
|
4
|
+
ELoginState[ELoginState["WelcomeDialog"] = 1] = "WelcomeDialog";
|
|
5
|
+
ELoginState[ELoginState["WaitingForCreateUser"] = 2] = "WaitingForCreateUser";
|
|
6
|
+
ELoginState[ELoginState["WaitingForCredentials"] = 3] = "WaitingForCredentials";
|
|
7
|
+
ELoginState[ELoginState["WaitingForNetwork"] = 4] = "WaitingForNetwork";
|
|
8
|
+
ELoginState[ELoginState["WaitingForServerResponse"] = 5] = "WaitingForServerResponse";
|
|
9
|
+
ELoginState[ELoginState["WaitingForLibraryReady"] = 6] = "WaitingForLibraryReady";
|
|
10
|
+
ELoginState[ELoginState["Success"] = 7] = "Success";
|
|
11
|
+
ELoginState[ELoginState["Quit"] = 8] = "Quit";
|
|
12
|
+
})(ELoginState || (ELoginState = {}));
|
|
13
|
+
export var EShutdownStep;
|
|
14
|
+
(function (EShutdownStep) {
|
|
15
|
+
EShutdownStep[EShutdownStep["None"] = 0] = "None";
|
|
16
|
+
EShutdownStep[EShutdownStep["Start"] = 1] = "Start";
|
|
17
|
+
EShutdownStep[EShutdownStep["WaitForGames"] = 2] = "WaitForGames";
|
|
18
|
+
EShutdownStep[EShutdownStep["WaitForCloud"] = 3] = "WaitForCloud";
|
|
19
|
+
EShutdownStep[EShutdownStep["FinishingDownload"] = 4] = "FinishingDownload";
|
|
20
|
+
EShutdownStep[EShutdownStep["WaitForDownload"] = 5] = "WaitForDownload";
|
|
21
|
+
EShutdownStep[EShutdownStep["WaitForServiceApps"] = 6] = "WaitForServiceApps";
|
|
22
|
+
EShutdownStep[EShutdownStep["WaitForLogOff"] = 7] = "WaitForLogOff";
|
|
23
|
+
EShutdownStep[EShutdownStep["Done"] = 8] = "Done";
|
|
24
|
+
})(EShutdownStep || (EShutdownStep = {}));
|
|
25
|
+
export var ESuspendResumeProgressState;
|
|
26
|
+
(function (ESuspendResumeProgressState) {
|
|
27
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["Invalid"] = 0] = "Invalid";
|
|
28
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["Complete"] = 1] = "Complete";
|
|
29
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["CloudSync"] = 2] = "CloudSync";
|
|
30
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["LoggingIn"] = 3] = "LoggingIn";
|
|
31
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["WaitingForApp"] = 4] = "WaitingForApp";
|
|
32
|
+
ESuspendResumeProgressState[ESuspendResumeProgressState["Working"] = 5] = "Working";
|
|
33
|
+
})(ESuspendResumeProgressState || (ESuspendResumeProgressState = {}));
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { OverlayBrowserInfo } from "./Overlay";
|
|
2
|
+
import { EResult, EUIMode, Unregisterable } from "./shared";
|
|
3
|
+
export interface WebChat {
|
|
4
|
+
BSuppressPopupsInRestore(): Promise<boolean>;
|
|
5
|
+
GetCurrentUserAccountID(): Promise<number>;
|
|
6
|
+
GetLocalAvatarBase64(): Promise<string>;
|
|
7
|
+
GetLocalPersonaName(): Promise<string>;
|
|
8
|
+
GetOverlayChatBrowserInfo(): Promise<OverlayBrowserInfo[]>;
|
|
9
|
+
GetPrivateConnectString(param0: number): Promise<string>;
|
|
10
|
+
GetPushToTalkEnabled(): Promise<PushToTalkInfo>;
|
|
11
|
+
GetSignIntoFriendsOnStart(): Promise<boolean>;
|
|
12
|
+
GetUIMode(): Promise<EUIMode>;
|
|
13
|
+
OnGroupChatUserStateChange(chatGroupId: number, accountId: number, action: number): void;
|
|
14
|
+
OnNewGroupChatMsgAdded(groupId: string, chatId: string, accountId: number, timestamp: number, param4: number, message: string): void;
|
|
15
|
+
OpenURLInClient(url: string, pid: number, forceExternal: boolean): void;
|
|
16
|
+
RegisterForComputerActiveStateChange(callback: (state: EComputerActiveState, time: number) => void): Unregisterable;
|
|
17
|
+
RegisterForFriendPostMessage(callback: (data: FriendChatDialogData) => void): Unregisterable;
|
|
18
|
+
RegisterForMouseXButtonDown(callback: (param0: number) => void): void;
|
|
19
|
+
RegisterForPushToTalkStateChange(callback: (state: boolean) => void): Unregisterable;
|
|
20
|
+
RegisterForUIModeChange(callback: (mode: EUIMode) => void): Unregisterable;
|
|
21
|
+
RegisterOverlayChatBrowserInfoChanged(callback: () => void): Unregisterable;
|
|
22
|
+
SetActiveClanChatIDs(clanChatIds: number[]): void;
|
|
23
|
+
SetNumChatsWithUnreadPriorityMessages(size: number): void;
|
|
24
|
+
SetPersonaName(value: string): Promise<SetPersonaNameResult>;
|
|
25
|
+
SetPushToMuteEnabled(value: boolean): void;
|
|
26
|
+
SetPushToTalkEnabled(value: boolean): void;
|
|
27
|
+
SetPushToTalkHotKey(param0: number): void;
|
|
28
|
+
SetPushToTalkMouseButton(param0: number): void;
|
|
29
|
+
SetVoiceChatActive(value: boolean): void;
|
|
30
|
+
SetVoiceChatStatus(muted: boolean, deafened: boolean): void;
|
|
31
|
+
ShowChatRoomGroupDialog(param0: number, param1: number): void;
|
|
32
|
+
ShowFriendChatDialog(steamid64: string): void;
|
|
33
|
+
UnregisterForMouseXButtonDown(): void;
|
|
34
|
+
}
|
|
35
|
+
export declare enum EComputerActiveState {
|
|
36
|
+
Invalid = 0,
|
|
37
|
+
Active = 1,
|
|
38
|
+
Idle = 2
|
|
39
|
+
}
|
|
40
|
+
export interface FriendChatDialog {
|
|
41
|
+
browserid: number;
|
|
42
|
+
btakefocus: string;
|
|
43
|
+
command: string;
|
|
44
|
+
pid: number;
|
|
45
|
+
steamid: string;
|
|
46
|
+
}
|
|
47
|
+
export interface FriendChatDialogData {
|
|
48
|
+
data: FriendChatDialog;
|
|
49
|
+
}
|
|
50
|
+
interface SetPersonaNameResult {
|
|
51
|
+
eResult: EResult;
|
|
52
|
+
strMessageToken: string;
|
|
53
|
+
}
|
|
54
|
+
export interface PushToTalkInfo {
|
|
55
|
+
bEnabled: boolean;
|
|
56
|
+
bPushToMute: boolean;
|
|
57
|
+
vkHotKey: number;
|
|
58
|
+
strKeyName: string;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var EComputerActiveState;
|
|
2
|
+
(function (EComputerActiveState) {
|
|
3
|
+
EComputerActiveState[EComputerActiveState["Invalid"] = 0] = "Invalid";
|
|
4
|
+
EComputerActiveState[EComputerActiveState["Active"] = 1] = "Active";
|
|
5
|
+
EComputerActiveState[EComputerActiveState["Idle"] = 2] = "Idle";
|
|
6
|
+
})(EComputerActiveState || (EComputerActiveState = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OperationResponse } from "./shared";
|
|
2
|
+
export interface WebUITransport {
|
|
3
|
+
GetTransportInfo(): Promise<TransportInfo>;
|
|
4
|
+
NotifyTransportFailure(base64: string): Promise<OperationResponse>;
|
|
5
|
+
}
|
|
6
|
+
export interface TransportInfo {
|
|
7
|
+
authKeyClientdll: string;
|
|
8
|
+
authKeySteamUI: string;
|
|
9
|
+
portClientdll: number;
|
|
10
|
+
portSteamUI: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EUIComposition } from "./shared";
|
|
2
|
+
export interface Window {
|
|
3
|
+
BringToFront(forceOS?: EWindowBringToFront): void;
|
|
4
|
+
Close(): void;
|
|
5
|
+
DefaultMonitorHasFullscreenWindow(): Promise<boolean>;
|
|
6
|
+
FlashWindow(): void;
|
|
7
|
+
GetDefaultMonitorDimensions(): Promise<MonitorDimensions>;
|
|
8
|
+
GetMousePositionDetails(): Promise<string>;
|
|
9
|
+
GetWindowDetails(): Promise<WindowDetails>;
|
|
10
|
+
GetWindowDimensions(): Promise<WindowDimensions>;
|
|
11
|
+
GetWindowRestoreDetails(): Promise<string>;
|
|
12
|
+
HideWindow(): void;
|
|
13
|
+
IsWindowMaximized(): Promise<boolean>;
|
|
14
|
+
IsWindowMinimized(): Promise<boolean>;
|
|
15
|
+
MarkLastFocused(): void;
|
|
16
|
+
Minimize(): void;
|
|
17
|
+
MoveTo(x: number, y: number, dpi?: number): void;
|
|
18
|
+
MoveToLocation(location: WindowLocation_t, offset?: number): void;
|
|
19
|
+
PositionWindowRelative(details: string, x: number, y: number, width: number, height: number): void;
|
|
20
|
+
ProcessShuttingDown(): Promise<boolean>;
|
|
21
|
+
ResizeTo(width: number, height: number, applyBrowserScaleOrDPIValue: boolean | number): void;
|
|
22
|
+
RestoreWindowSizeAndPosition(details: string): void;
|
|
23
|
+
SetAutoDisplayScale(value: boolean): void;
|
|
24
|
+
SetComposition(mode: EUIComposition, appIdCompositionQueue: number[], windowId: number): void;
|
|
25
|
+
SetHideOnClose(value: boolean): void;
|
|
26
|
+
SetKeyFocus(value: boolean): void;
|
|
27
|
+
SetManualDisplayScaleFactor(displayScaleFactor: number): void;
|
|
28
|
+
SetMaxSize(width: number, height: number): void;
|
|
29
|
+
SetMinSize(width: number, height: number): void;
|
|
30
|
+
SetModal(value: boolean): void;
|
|
31
|
+
SetResizeGrip(width: number, height: number): void;
|
|
32
|
+
SetWindowIcon(icon: WindowIcon_t): void;
|
|
33
|
+
ShowWindow(): void;
|
|
34
|
+
StopFlashWindow(): void;
|
|
35
|
+
ToggleFullscreen(): void;
|
|
36
|
+
ToggleMaximize(): void;
|
|
37
|
+
}
|
|
38
|
+
export declare enum EWindowBringToFront {
|
|
39
|
+
Invalid = 0,
|
|
40
|
+
AndForceOS = 1,
|
|
41
|
+
WithoutForcingOS = 2
|
|
42
|
+
}
|
|
43
|
+
export type WindowLocation_t = 'upper-left' | 'lower-left' | 'center-top' | 'center-bottom' | 'upper-right' | 'lower-right';
|
|
44
|
+
export type WindowIcon_t = 'steam' | 'messages' | 'voice';
|
|
45
|
+
export interface MonitorDimensions {
|
|
46
|
+
flHorizontalScale: number;
|
|
47
|
+
flVerticalScale: number;
|
|
48
|
+
nFullHeight: number;
|
|
49
|
+
nFullLeft: number;
|
|
50
|
+
nFullTop: number;
|
|
51
|
+
nFullWidth: number;
|
|
52
|
+
nUsableHeight: number;
|
|
53
|
+
nUsableLeft: number;
|
|
54
|
+
nUsableTop: number;
|
|
55
|
+
nUsableWidth: number;
|
|
56
|
+
}
|
|
57
|
+
export interface WindowDetails {
|
|
58
|
+
bGPUEnabled: boolean;
|
|
59
|
+
bUnderlaySupported: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface WindowDimensions {
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var EWindowBringToFront;
|
|
2
|
+
(function (EWindowBringToFront) {
|
|
3
|
+
EWindowBringToFront[EWindowBringToFront["Invalid"] = 0] = "Invalid";
|
|
4
|
+
EWindowBringToFront[EWindowBringToFront["AndForceOS"] = 1] = "AndForceOS";
|
|
5
|
+
EWindowBringToFront[EWindowBringToFront["WithoutForcingOS"] = 2] = "WithoutForcingOS";
|
|
6
|
+
})(EWindowBringToFront || (EWindowBringToFront = {}));
|