@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,24 @@
|
|
|
1
|
+
import { OperationResponse } from "./shared";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* SteamClient.MachineStorage affects the "STEAMPATH/config/config.vdf" file.
|
|
5
|
+
* SteamClient.RoamingStorage affects the "STEAMPATH/userdata/STEAMID3/7/remote/sharedconfig.vdf" file.
|
|
6
|
+
* SteamClient.Storage affects the "STEAMPATH/userdata/STEAMID3/config/localconfig.vdf" file.
|
|
7
|
+
*/
|
|
8
|
+
export interface Storage {
|
|
9
|
+
DeleteKey(key: string): Promise<OperationResponse | undefined>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @remarks Use {@link SetObject} to set.
|
|
13
|
+
*/
|
|
14
|
+
GetJSON(key: string): Promise<OperationResponse | string>;
|
|
15
|
+
|
|
16
|
+
GetString(key: string): Promise<OperationResponse | string>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @remarks Use {@link SetObject} to get.
|
|
20
|
+
*/
|
|
21
|
+
SetObject(key: string, value: object): Promise<OperationResponse | undefined>;
|
|
22
|
+
|
|
23
|
+
SetString(key: string, value: string): Promise<OperationResponse | undefined>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EResult, Unregisterable } from "./shared";
|
|
2
|
+
import {LaunchOption} from "./App";
|
|
3
|
+
|
|
4
|
+
export interface Streaming {
|
|
5
|
+
AcceptStreamingEULA(appId: number, id: string, version: number): void;
|
|
6
|
+
|
|
7
|
+
CancelStreamGame(): void; // existing stream
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Registers a callback function to be called when the streaming client finishes.
|
|
11
|
+
* @param callback The callback function to be called.
|
|
12
|
+
* @returns an object that can be used to unregister the callback.
|
|
13
|
+
*/
|
|
14
|
+
RegisterForStreamingClientFinished(callback: (code: EResult, result: string) => void): Unregisterable;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Registers a callback function to be called when there is progress in the launch of the streaming client.
|
|
18
|
+
* @param callback The callback function to be called.
|
|
19
|
+
* @returns an object that can be used to unregister the callback.
|
|
20
|
+
*/
|
|
21
|
+
RegisterForStreamingClientLaunchProgress(
|
|
22
|
+
callback: (actionType: string, taskDetails: string, done: number, total: number) => void,
|
|
23
|
+
): Unregisterable;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Registers a callback function to be called when the streaming client is started (e.g., when clicking the stream button).
|
|
27
|
+
* @param callback The callback function to be called.
|
|
28
|
+
* @returns an object that can be used to unregister the callback.
|
|
29
|
+
*/
|
|
30
|
+
RegisterForStreamingClientStarted(callback: (appId: number) => void): Unregisterable;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Registers a callback function to be called when the streaming launch is complete.
|
|
34
|
+
* @param callback The callback function to be called.
|
|
35
|
+
* @returns an object that can be used to unregister the callback.
|
|
36
|
+
*/
|
|
37
|
+
RegisterForStreamingLaunchComplete(callback: (code: EResult, result: string) => void): Unregisterable;
|
|
38
|
+
|
|
39
|
+
RegisterForStreamingShowEula(callback: (appId: number) => void): Unregisterable;
|
|
40
|
+
|
|
41
|
+
RegisterForStreamingShowIntro(callback: (appId: number, param: string) => void): Unregisterable;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Registers a callback function to be called when the streaming client receives launch options from the host.
|
|
45
|
+
* @param callback The callback function to be called.
|
|
46
|
+
* @returns an object that can be used to unregister the callback.
|
|
47
|
+
*/
|
|
48
|
+
RegisterForStreamingShowLaunchOptions(
|
|
49
|
+
callback: (appId: number, launchOptions: LaunchOption[]) => void,
|
|
50
|
+
): Unregisterable; // Callback when streaming client receives launch options from host
|
|
51
|
+
|
|
52
|
+
StreamingContinueStreamGame(): void; // existing game running on another streaming capable device
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Chooses the launch option for the streamed app by its index
|
|
56
|
+
* and restarts the stream.
|
|
57
|
+
*/
|
|
58
|
+
StreamingSetLaunchOption(index: number): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { EUIMode, Unregisterable } from "./shared";
|
|
2
|
+
import {EOSType} from "./system";
|
|
3
|
+
|
|
4
|
+
export interface UI {
|
|
5
|
+
EnsureMainWindowCreated(): void;
|
|
6
|
+
|
|
7
|
+
ExitBigPictureMode(): void;
|
|
8
|
+
|
|
9
|
+
GetDesiredSteamUIWindows(): Promise<SteamWindow[]>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Gets information about whether your OS will be unsupported in the future or not.
|
|
13
|
+
*/
|
|
14
|
+
GetOSEndOfLifeInfo(): Promise<OSEndOfLifeInfo>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the current UI mode.
|
|
18
|
+
* @returns the current UI mode.
|
|
19
|
+
*/
|
|
20
|
+
GetUIMode(): Promise<EUIMode>;
|
|
21
|
+
|
|
22
|
+
NotifyAppInitialized(): void;
|
|
23
|
+
|
|
24
|
+
RegisterDesiredSteamUIWindowsChanged(callback: () => void): Unregisterable;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Registers a callback function to be called when a convar's value gets changed.
|
|
28
|
+
*
|
|
29
|
+
* Hard crashes if such a convar does not exist or if you can't set it.
|
|
30
|
+
*
|
|
31
|
+
* @param convar The ConVar to watch.
|
|
32
|
+
* @param callback The callback function to be called.
|
|
33
|
+
*/
|
|
34
|
+
RegisterForClientConVar(convar: string, callback: (value: string) => void): Unregisterable;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @todo param{0,1} are enums
|
|
38
|
+
*/
|
|
39
|
+
RegisterForErrorCondition(callback: (param0: number, param1: number) => void): Unregisterable;
|
|
40
|
+
|
|
41
|
+
RegisterForKioskModeResetSignal(callback: () => void): Unregisterable;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @todo This fires multiple times.
|
|
45
|
+
*/
|
|
46
|
+
RegisterForStartupFinished(callback: () => void): Unregisterable;
|
|
47
|
+
|
|
48
|
+
RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
|
|
49
|
+
|
|
50
|
+
ResetErrorCondition(): void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Sets the UI mode to the specified value.
|
|
54
|
+
* @param mode The UI mode to set.
|
|
55
|
+
*/
|
|
56
|
+
SetUIMode(mode: EUIMode): void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export enum EWindowType {
|
|
60
|
+
MainGamepadUI,
|
|
61
|
+
OverlayGamepadUI,
|
|
62
|
+
Keyboard,
|
|
63
|
+
ControllerConfigurator,
|
|
64
|
+
VR,
|
|
65
|
+
MainDesktopUI,
|
|
66
|
+
DesktopLogin,
|
|
67
|
+
OverlayDesktopUI,
|
|
68
|
+
SteamChinaReviewLauncher,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface OSEndOfLifeInfo {
|
|
72
|
+
bOSWillBeUnsupported: boolean;
|
|
73
|
+
osType: EOSType;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The following might have more correct information:
|
|
78
|
+
* https://github.com/SteamDatabase/SteamTracking/blob/master/Protobufs/webuimessages_sharedjscontext.proto
|
|
79
|
+
*/
|
|
80
|
+
export interface SteamWindow {
|
|
81
|
+
appid: number;
|
|
82
|
+
hwndParent: number;
|
|
83
|
+
nBrowserID: number;
|
|
84
|
+
strAppName: string;
|
|
85
|
+
unID: number;
|
|
86
|
+
unPID: number;
|
|
87
|
+
windowType: EWindowType;
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Unregisterable } from "./shared";
|
|
2
|
+
|
|
3
|
+
export interface URL {
|
|
4
|
+
/**
|
|
5
|
+
* Executes a steam:// URL.
|
|
6
|
+
* @param url The URL to execute.
|
|
7
|
+
*/
|
|
8
|
+
ExecuteSteamURL(url: string): void;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @param urls Additional URLs to get. May be empty.
|
|
12
|
+
*/
|
|
13
|
+
GetSteamURLList(urls: SteamWebURL_t[]): Promise<SteamURLs>;
|
|
14
|
+
|
|
15
|
+
GetWebSessionID(): Promise<string>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Registers a callback to be called when a steam:// URL gets executed.
|
|
19
|
+
* @param section `rungameid`, `open`, etc.
|
|
20
|
+
* @param callback The callback function to be called.
|
|
21
|
+
* @returns an object that can be used to unregister the callback.
|
|
22
|
+
*/
|
|
23
|
+
RegisterForRunSteamURL(section: string, callback: (param0: number, url: string) => void): Unregisterable;
|
|
24
|
+
|
|
25
|
+
RegisterForSteamURLChanges(callback: () => void): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type SteamWebURL_t =
|
|
29
|
+
| "AllNotifications"
|
|
30
|
+
| "AppHoverPublic"
|
|
31
|
+
| "AppHoverPublicFull"
|
|
32
|
+
| "AppNewsPage"
|
|
33
|
+
| "AsyncGames"
|
|
34
|
+
| "AvatarBaseURL"
|
|
35
|
+
| "BaseURLSharedCDN"
|
|
36
|
+
| "Chat"
|
|
37
|
+
| "ChatRoot"
|
|
38
|
+
| "ClaimEntitlements"
|
|
39
|
+
| "ClanAssetCDN"
|
|
40
|
+
| "CommentNotifications"
|
|
41
|
+
| "CommunityHome"
|
|
42
|
+
| "CommunityAddFriends"
|
|
43
|
+
| "CommunityCDN"
|
|
44
|
+
| "CommunityFilePage"
|
|
45
|
+
| "CommunityFriendsThatPlay"
|
|
46
|
+
| "CommunityFrontPage"
|
|
47
|
+
| "CommunityGroupSearch"
|
|
48
|
+
| "CommunityImages"
|
|
49
|
+
| "CommunityInventory"
|
|
50
|
+
| "CommunityMarket"
|
|
51
|
+
| "CommunityMarketApp"
|
|
52
|
+
| "CommunityRecommendations"
|
|
53
|
+
| "CommunityScreenshots"
|
|
54
|
+
| "CommunitySingleScreenshot"
|
|
55
|
+
| "CurrentlyPlayedWith"
|
|
56
|
+
| "EventAnnouncementPage"
|
|
57
|
+
| "FamilyManagement"
|
|
58
|
+
| "FamilySharing"
|
|
59
|
+
| "GameHub"
|
|
60
|
+
| "GameHubBroadcasts"
|
|
61
|
+
| "GameHubDiscussions"
|
|
62
|
+
| "GameHubGuides"
|
|
63
|
+
| "GameHubNews"
|
|
64
|
+
| "GameHubReviews"
|
|
65
|
+
| "GlobalAchievementStatsPage"
|
|
66
|
+
| "GlobalLeaderboardsPage"
|
|
67
|
+
| "GroupSteamIDPage"
|
|
68
|
+
| "HardwareSurvey"
|
|
69
|
+
| "HelpAppPage"
|
|
70
|
+
| "HelpChangeEmail"
|
|
71
|
+
| "HelpChangePassword"
|
|
72
|
+
| "HelpFAQ"
|
|
73
|
+
| "HelpFrontPage"
|
|
74
|
+
| "HelpWithLogin"
|
|
75
|
+
| "HelpWithLoginInfo"
|
|
76
|
+
| "HelpWithSteamGuardCode"
|
|
77
|
+
| "HelpVacBans"
|
|
78
|
+
| "ItemStorePage"
|
|
79
|
+
| "ItemStoreDetailPage"
|
|
80
|
+
| "JoinTrade"
|
|
81
|
+
| "LegalInformation"
|
|
82
|
+
| "LibraryAppDetails"
|
|
83
|
+
| "LibraryAppReview"
|
|
84
|
+
| "LibraryFeaturedBroadcasts"
|
|
85
|
+
| "ManageGiftsPage"
|
|
86
|
+
| "ManageSteamGuard"
|
|
87
|
+
| "ModeratorMessages"
|
|
88
|
+
| "Mobile"
|
|
89
|
+
| "MyHelpRequests"
|
|
90
|
+
| "OfficialGameGroupPage"
|
|
91
|
+
| "NewsHomePage"
|
|
92
|
+
| "ParentalBlocked"
|
|
93
|
+
| "ParentalSetup"
|
|
94
|
+
| "PendingFriends"
|
|
95
|
+
| "PendingGift"
|
|
96
|
+
| "PointsShop"
|
|
97
|
+
| "PrivacyPolicy"
|
|
98
|
+
| "RecommendGame"
|
|
99
|
+
| "RedeemWalletVoucher"
|
|
100
|
+
| "RegisterKey"
|
|
101
|
+
| "RegisterKeyNoParams"
|
|
102
|
+
| "SSA"
|
|
103
|
+
| "SteamAnnouncements"
|
|
104
|
+
| "SteamClientBetaBugReports"
|
|
105
|
+
| "SteamClientBetaNewsPage"
|
|
106
|
+
| "SteamClientBetaNewsPageFancy"
|
|
107
|
+
| "SteamClientNewsPage"
|
|
108
|
+
| "SteamClientPatchNotes"
|
|
109
|
+
| "SteamClientBetaPatchNotes"
|
|
110
|
+
| "SteamDiscussions"
|
|
111
|
+
| "SteamIDAchievementsPage"
|
|
112
|
+
| "SteamIDAppTradingCardsPage"
|
|
113
|
+
| "SteamIDBadgeInfo"
|
|
114
|
+
| "SteamIDBadgePage"
|
|
115
|
+
| "SteamIDBroadcastPage"
|
|
116
|
+
| "SteamIDEditPage"
|
|
117
|
+
| "SteamIDEditPrivacyPage"
|
|
118
|
+
| "SteamIDFriendsList"
|
|
119
|
+
| "SteamIDFriendsPage"
|
|
120
|
+
| "SteamIDGroupsPage"
|
|
121
|
+
| "SteamIDMyProfile"
|
|
122
|
+
| "SteamIDPage"
|
|
123
|
+
| "SteamLanguage"
|
|
124
|
+
| "SteamPreferences"
|
|
125
|
+
| "SteamVRHMDHelp"
|
|
126
|
+
| "SteamWorkshop"
|
|
127
|
+
| "SteamWorkshopPage"
|
|
128
|
+
| "SteamWorkshopSubscriptions"
|
|
129
|
+
| "SteamWorkshopUpdatedSubscriptions"
|
|
130
|
+
| "StoreAccount"
|
|
131
|
+
| "StoreAddFundsPage"
|
|
132
|
+
| "StoreAppHover"
|
|
133
|
+
| "StoreAppImages"
|
|
134
|
+
| "StoreAppPage"
|
|
135
|
+
| "StoreAppPageAddToCart"
|
|
136
|
+
| "StoreCart"
|
|
137
|
+
| "StoreCDN"
|
|
138
|
+
| "StoreDlcPage"
|
|
139
|
+
| "StoreExplore"
|
|
140
|
+
| "StoreExploreNew"
|
|
141
|
+
| "StoreFreeToPlay"
|
|
142
|
+
| "StoreFrontPage"
|
|
143
|
+
| "StoreGameSearchPage"
|
|
144
|
+
| "StoreGreatOnDeck"
|
|
145
|
+
| "StorePublisherPage"
|
|
146
|
+
| "StoreSpecials"
|
|
147
|
+
| "StoreStats"
|
|
148
|
+
| "StoreVR"
|
|
149
|
+
| "StoreWebMicroTxnPage"
|
|
150
|
+
| "SupportMessages"
|
|
151
|
+
| "TextFilterSettings"
|
|
152
|
+
| "TodayPage"
|
|
153
|
+
| "TradeOffers"
|
|
154
|
+
| "VideoCDN"
|
|
155
|
+
| "UserAchievementsPage"
|
|
156
|
+
| "UserLeaderboardsPage"
|
|
157
|
+
| "UserStatsPage"
|
|
158
|
+
| "UserWishlist"
|
|
159
|
+
| "WatchVideo"
|
|
160
|
+
| "WebAPI"
|
|
161
|
+
| "WorkshopEula"
|
|
162
|
+
| "YearInReview";
|
|
163
|
+
|
|
164
|
+
export interface SteamURL {
|
|
165
|
+
url: string;
|
|
166
|
+
/**
|
|
167
|
+
* @todo enum?
|
|
168
|
+
*/
|
|
169
|
+
feature: number;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type SteamURLs = {
|
|
173
|
+
[url in SteamWebURL_t]: SteamURL;
|
|
174
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { EResult, JsPbMessage, OperationResponse, Unregisterable } from "./shared";
|
|
2
|
+
|
|
3
|
+
export interface Updates {
|
|
4
|
+
/**
|
|
5
|
+
* @param base64 Serialized base64 message from `CMsgSystemUpdateApplyParams`.
|
|
6
|
+
*/
|
|
7
|
+
ApplyUpdates(base64: string): Promise<OperationResponse>;
|
|
8
|
+
|
|
9
|
+
CheckForUpdates(): Promise<OperationResponse>; // Checks for software updates
|
|
10
|
+
|
|
11
|
+
GetCurrentOSBranch(): Promise<OSBranch>;
|
|
12
|
+
|
|
13
|
+
GetOSBranchList(): Promise<any[]>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* If `data` is deserialized, returns {@link MsgSystemUpdateState}.
|
|
17
|
+
* @returns a ProtoBuf message.
|
|
18
|
+
*/
|
|
19
|
+
RegisterForUpdateStateChanges(callback: (data: ArrayBuffer) => void): Unregisterable;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param base64 Serialized base64 message from `CMsgSelectOSBranchParams`.
|
|
23
|
+
*/
|
|
24
|
+
SelectOSBranch(base64: string): Promise<OperationResponse>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export interface OSBranch {
|
|
29
|
+
eBranch: EOSBranch; // 1 - Stable
|
|
30
|
+
sRawName: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum EOSBranch {
|
|
34
|
+
Unknown,
|
|
35
|
+
Release,
|
|
36
|
+
ReleaseCandidate,
|
|
37
|
+
Beta,
|
|
38
|
+
BetaCandidate,
|
|
39
|
+
Preview,
|
|
40
|
+
PreviewCandidate,
|
|
41
|
+
Main,
|
|
42
|
+
Staging,
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* CMsgSystemUpdateState
|
|
47
|
+
*/
|
|
48
|
+
export interface MsgSystemUpdateState extends JsPbMessage {
|
|
49
|
+
state(): EUpdaterState | undefined;
|
|
50
|
+
|
|
51
|
+
progress(): UpdateProgress | undefined;
|
|
52
|
+
|
|
53
|
+
supports_os_updates(): boolean | undefined;
|
|
54
|
+
|
|
55
|
+
update_apply_results(): UpdateApplyResult[];
|
|
56
|
+
|
|
57
|
+
update_check_results(): UpdateCheckResult[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface UpdateApplyResult {
|
|
61
|
+
type: EUpdaterType;
|
|
62
|
+
eresult: EResult;
|
|
63
|
+
requires_client_restart: boolean;
|
|
64
|
+
requires_system_restart: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface UpdateCheckResult {
|
|
68
|
+
type: EUpdaterType;
|
|
69
|
+
eresult: EResult;
|
|
70
|
+
rtime_checked: number;
|
|
71
|
+
available: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface UpdateProgress {
|
|
75
|
+
stage_progress: number | undefined;
|
|
76
|
+
stage_size_bytes: number | undefined;
|
|
77
|
+
rtime_estimated_completion: number | undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export enum EUpdaterState {
|
|
81
|
+
Invalid,
|
|
82
|
+
// ty valve
|
|
83
|
+
UpToDate = 2,
|
|
84
|
+
Checking,
|
|
85
|
+
Available,
|
|
86
|
+
Applying,
|
|
87
|
+
ClientRestartPending,
|
|
88
|
+
SystemRestartPending,
|
|
89
|
+
RollBack,
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export enum EUpdaterType {
|
|
93
|
+
Invalid,
|
|
94
|
+
Client,
|
|
95
|
+
OS,
|
|
96
|
+
BIOS,
|
|
97
|
+
Aggregated,
|
|
98
|
+
Test1,
|
|
99
|
+
Test2,
|
|
100
|
+
Dummy,
|
|
101
|
+
}
|