@decky/ui 4.9.2 → 4.10.1
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/Menu.js +5 -3
- 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/Menu.ts +7 -8
- 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,70 @@
|
|
|
1
|
+
import { Unregisterable } from "./shared";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents functions related to managing friends in Steam.
|
|
5
|
+
*/
|
|
6
|
+
export interface Friends {
|
|
7
|
+
/**
|
|
8
|
+
* Adds a user to the friend list.
|
|
9
|
+
* @param steamId The Steam ID of the user to add as a friend.
|
|
10
|
+
* @returns `true` if the friend was added successfully.
|
|
11
|
+
*/
|
|
12
|
+
AddFriend(steamId: string): Promise<boolean>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @returns a list of players you recently played with.
|
|
16
|
+
*/
|
|
17
|
+
GetCoplayData(): Promise<CoplayData>;
|
|
18
|
+
|
|
19
|
+
InviteUserToCurrentGame(steam64Id: string, steamIdTarget: string): Promise<boolean>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Invites a user to a specific game.
|
|
23
|
+
* @param steamId The Steam ID of the user to invite.
|
|
24
|
+
* @param appId The ID of the game to invite the user to.
|
|
25
|
+
* @param connectString Additional parameters for the invitation.
|
|
26
|
+
* @returns `true` if the user was invited successfully.
|
|
27
|
+
*/
|
|
28
|
+
InviteUserToGame(steamId: string, appId: number, connectString: string): Promise<boolean>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Invites a user to a specific lobby.
|
|
32
|
+
* @returns `true` if the user was invited successfully.
|
|
33
|
+
*/
|
|
34
|
+
InviteUserToLobby(steam64Id: string, steamIdTarget: string): Promise<boolean>;
|
|
35
|
+
|
|
36
|
+
InviteUserToRemotePlayTogetherCurrentGame(steam64Id: string): Promise<boolean>;
|
|
37
|
+
|
|
38
|
+
RegisterForMultiplayerSessionShareURLChanged(
|
|
39
|
+
appId: number,
|
|
40
|
+
callback: (param0: string, param1: string) => void,
|
|
41
|
+
): Unregisterable;
|
|
42
|
+
|
|
43
|
+
RegisterForVoiceChatStatus(callback: (status: VoiceChatStatus) => void): Unregisterable;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Removes a user from the friend list.
|
|
47
|
+
* @param steamId The Steam ID of the user to remove from the friend list.
|
|
48
|
+
* @returns `true` if the friend was removed successfully.
|
|
49
|
+
*/
|
|
50
|
+
RemoveFriend(steamId: string): Promise<boolean>;
|
|
51
|
+
|
|
52
|
+
ShowRemotePlayTogetherUI(): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface CoplayData {
|
|
56
|
+
currentUsers: CoplayUser[];
|
|
57
|
+
recentUsers: CoplayUser[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface CoplayUser {
|
|
61
|
+
accountid: number;
|
|
62
|
+
rtTimePlayed: number;
|
|
63
|
+
appid: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface VoiceChatStatus {
|
|
67
|
+
bVoiceChatActive: boolean;
|
|
68
|
+
bMicMuted: boolean;
|
|
69
|
+
bOutputMuted: boolean;
|
|
70
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EResult, OperationResponse } from "./shared";
|
|
2
|
+
|
|
3
|
+
export interface GameNotes {
|
|
4
|
+
/**
|
|
5
|
+
* @returns a boolean indicating whether the operation was successful.
|
|
6
|
+
*/
|
|
7
|
+
DeleteImage(param0: string): Promise<boolean>;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @returns a boolean indicating whether the operation was successful.
|
|
11
|
+
*/
|
|
12
|
+
DeleteNotes(param0: string): Promise<boolean>;
|
|
13
|
+
|
|
14
|
+
GetNotes(filenameForNotes: string, directoryForNoteImages: string): Promise<Notes>;
|
|
15
|
+
|
|
16
|
+
GetNotesMetadata(note: string): Promise<NoteMetadata>;
|
|
17
|
+
GetNumNotes(): Promise<number>;
|
|
18
|
+
GetQuota: Promise<NotesQuota>;
|
|
19
|
+
|
|
20
|
+
IterateNotes(appId: number, length: number): Promise<NoteMetadata[]>;
|
|
21
|
+
ResolveSyncConflicts(param0: boolean): Promise<EResult>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @param notes Escaped JSON array of {@link Note}.
|
|
25
|
+
*/
|
|
26
|
+
SaveNotes(filenameForNotes: string, notes: string): Promise<EResult>;
|
|
27
|
+
SyncToClient(): Promise<EResult>;
|
|
28
|
+
|
|
29
|
+
SyncToServer(): Promise<EResult>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @param mimeType Image MIME type.
|
|
33
|
+
* @param base64 Image contents in base64.
|
|
34
|
+
* @returns an image file name with its extension that's meant to be used as a part of some URL. (todo)
|
|
35
|
+
* @throws OperationResponse if invalid MIME type or unable to parse base64 BUT NOT if it failed.
|
|
36
|
+
*/
|
|
37
|
+
UploadImage(imageFileNamePrefix: string, mimeType: string, base64: string): Promise<EResult | OperationResponse>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface Note {
|
|
41
|
+
appid: number;
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Note contents in BB code.
|
|
45
|
+
*/
|
|
46
|
+
content: string;
|
|
47
|
+
ordinal: number;
|
|
48
|
+
time_created: number;
|
|
49
|
+
time_modified: number;
|
|
50
|
+
title: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface Notes {
|
|
54
|
+
result: EResult;
|
|
55
|
+
/**
|
|
56
|
+
* Escaped JSON array of {@link Note}. Not present if {@link result} is {@link EResult.FileNotFound}.
|
|
57
|
+
*/
|
|
58
|
+
notes?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface NoteMetadata {
|
|
62
|
+
filename: string;
|
|
63
|
+
filesize: number;
|
|
64
|
+
result: EResult;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface NotesQuota {
|
|
69
|
+
bytes: number;
|
|
70
|
+
bytesAvailable: number;
|
|
71
|
+
numFiles: number;
|
|
72
|
+
numFilesAvailable: number;
|
|
73
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { JsPbMessage, Unregisterable } from "./shared";
|
|
2
|
+
|
|
3
|
+
export interface GameRecording {
|
|
4
|
+
/**
|
|
5
|
+
* If `data` is deserialized, returns {@link CGameRecording_AudioSessionsChanged_Notification}.
|
|
6
|
+
*/
|
|
7
|
+
RegisterForAudioSessionsChanged(callback: (data: ArrayBuffer) => void): Unregisterable;
|
|
8
|
+
SetAudioSessionCaptureState(id: string, name: string, state: boolean): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface AudioSession {
|
|
12
|
+
id(): string | undefined;
|
|
13
|
+
name(): string | undefined;
|
|
14
|
+
is_system(): boolean | undefined;
|
|
15
|
+
is_muted(): boolean | undefined;
|
|
16
|
+
is_active(): boolean | undefined;
|
|
17
|
+
is_captured(): boolean | undefined;
|
|
18
|
+
recent_peak(): number | undefined;
|
|
19
|
+
is_game(): boolean | undefined;
|
|
20
|
+
is_steam(): boolean | undefined;
|
|
21
|
+
is_saved(): boolean | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @note Taken from https://github.com/SteamDatabase/SteamTracking/blob/master/Protobufs/steammessages_gamerecording_objects.proto
|
|
26
|
+
*/
|
|
27
|
+
export interface CGameRecording_AudioSessionsChanged_Notification extends JsPbMessage {
|
|
28
|
+
sessions(): AudioSession[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Unregisterable } from "./shared";
|
|
2
|
+
import {AppAchievements} from "./App";
|
|
3
|
+
import { Screenshot } from "./Screenshots";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents functions related to Steam Game Sessions.
|
|
7
|
+
*/
|
|
8
|
+
export interface GameSessions {
|
|
9
|
+
/**
|
|
10
|
+
* Registers a callback function to be called when an achievement notification is received.
|
|
11
|
+
* @param callback The callback function to be called.
|
|
12
|
+
* @returns an object that can be used to unregister the callback.
|
|
13
|
+
*/
|
|
14
|
+
RegisterForAchievementNotification(
|
|
15
|
+
callback: (notification: AchievementNotification) => void,
|
|
16
|
+
): Unregisterable;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Registers a callback function to be called when an app lifetime notification is received.
|
|
20
|
+
* @param callback The callback function to be called.
|
|
21
|
+
* @returns an object that can be used to unregister the callback.
|
|
22
|
+
*/
|
|
23
|
+
RegisterForAppLifetimeNotifications(
|
|
24
|
+
callback: (notification: AppLifetimeNotification) => void,
|
|
25
|
+
): Unregisterable;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Registers a callback function to be called when a screenshot notification is received.
|
|
29
|
+
* @param callback The callback function to be called.
|
|
30
|
+
* @returns an object that can be used to unregister the callback.
|
|
31
|
+
*/
|
|
32
|
+
RegisterForScreenshotNotification(
|
|
33
|
+
callback: (notification: ScreenshotNotification) => void,
|
|
34
|
+
): Unregisterable;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @prop unAppID is not properly set by Steam for non-steam game shortcuts, so it defaults to 0 for them
|
|
39
|
+
*/
|
|
40
|
+
interface GameSessionNotificationBase {
|
|
41
|
+
unAppID: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface AchievementNotification extends GameSessionNotificationBase {
|
|
45
|
+
achievement: AppAchievements;
|
|
46
|
+
nCurrentProgress: number;
|
|
47
|
+
nMaxProgress: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AppLifetimeNotification extends GameSessionNotificationBase {
|
|
51
|
+
nInstanceID: number;
|
|
52
|
+
bRunning: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ScreenshotNotification extends GameSessionNotificationBase {
|
|
56
|
+
details: Screenshot;
|
|
57
|
+
hScreenshot: number;
|
|
58
|
+
strOperation: "deleted" | "written";
|
|
59
|
+
}
|