@decky/ui 4.15.1 → 4.16.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/Dropdown.d.ts +2 -2
- package/dist/components/FooterLegend.d.ts +8 -2
- package/dist/components/FooterLegend.js +7 -0
- package/dist/components/Menu.d.ts +5 -9
- package/dist/components/Modal.d.ts +3 -2
- package/dist/globals/index.d.ts +25 -2
- package/dist/globals/index.js +1 -2
- package/dist/globals/shared/cm.d.ts +112 -0
- package/dist/globals/shared/enums.d.ts +80 -0
- package/dist/globals/shared/enums.js +85 -0
- package/dist/globals/shared/history.d.ts +12 -0
- package/dist/globals/shared/history.js +1 -0
- package/dist/globals/shared/index.d.ts +5 -0
- package/dist/globals/shared/index.js +5 -0
- package/dist/globals/shared/interfaces.d.ts +54 -0
- package/dist/globals/shared/interfaces.js +1 -0
- package/dist/globals/shared/navigation.d.ts +14 -0
- package/dist/globals/shared/navigation.js +10 -0
- package/dist/globals/shared/steamid.d.ts +36 -0
- package/dist/globals/shared/steamid.js +15 -0
- package/dist/globals/shared/storage.d.ts +27 -0
- package/dist/globals/shared/storage.js +11 -0
- package/dist/globals/steam-client/App.d.ts +1 -1
- package/dist/globals/steam-client/Auth.d.ts +1 -1
- package/dist/globals/steam-client/ClientNotifications.d.ts +1 -1
- package/dist/globals/steam-client/Overlay.d.ts +2 -1
- package/dist/globals/steam-client/Settings.d.ts +1 -1
- package/dist/globals/steam-client/SharedConnection.d.ts +2 -1
- package/dist/globals/steam-client/UI.d.ts +14 -3
- package/dist/globals/steam-client/UI.js +11 -0
- package/dist/globals/steam-client/User.d.ts +13 -0
- package/dist/globals/steam-client/User.js +7 -0
- package/dist/globals/steam-client/WebChat.d.ts +3 -2
- package/dist/globals/steam-client/shared.d.ts +0 -29
- package/dist/globals/steam-client/shared.js +0 -24
- package/dist/globals/stores/app.d.ts +35 -0
- package/dist/globals/stores/app.js +1 -0
- package/dist/globals/stores/appdetailsstore.d.ts +86 -0
- package/dist/globals/stores/appdetailsstore.js +1 -0
- package/dist/globals/stores/appinfostore.d.ts +56 -0
- package/dist/globals/stores/appinfostore.js +1 -0
- package/dist/globals/stores/appstore.d.ts +77 -0
- package/dist/globals/stores/appstore.js +1 -0
- package/dist/globals/stores/badgestore.d.ts +52 -0
- package/dist/globals/stores/badgestore.js +1 -0
- package/dist/globals/stores/collectionstore.d.ts +313 -0
- package/dist/globals/stores/collectionstore.js +143 -0
- package/dist/globals/stores/consolestore.d.ts +20 -0
- package/dist/globals/stores/consolestore.js +1 -0
- package/dist/globals/stores/focusnavcontroller.d.ts +383 -0
- package/dist/globals/stores/focusnavcontroller.js +29 -0
- package/dist/globals/stores/friendstore/clanstore.d.ts +75 -0
- package/dist/globals/stores/friendstore/clanstore.js +19 -0
- package/dist/globals/stores/friendstore/friendchat.d.ts +374 -0
- package/dist/globals/stores/friendstore/friendchat.js +56 -0
- package/dist/globals/stores/friendstore/friendgroupstore.d.ts +98 -0
- package/dist/globals/stores/friendstore/friendgroupstore.js +8 -0
- package/dist/globals/stores/friendstore/friendingamenotificationstore.d.ts +2 -0
- package/dist/globals/stores/friendstore/friendingamenotificationstore.js +1 -0
- package/dist/globals/stores/friendstore/friendslistfavoritesstore.d.ts +22 -0
- package/dist/globals/stores/friendstore/friendslistfavoritesstore.js +1 -0
- package/dist/globals/stores/friendstore/friendsuifriendstore.d.ts +125 -0
- package/dist/globals/stores/friendstore/friendsuifriendstore.js +1 -0
- package/dist/globals/stores/friendstore/index.d.ts +25 -0
- package/dist/globals/stores/friendstore/index.js +1 -0
- package/dist/globals/stores/friendstore/shared.d.ts +207 -0
- package/dist/globals/stores/friendstore/shared.js +41 -0
- package/dist/globals/stores/gamerecordingstore.d.ts +263 -0
- package/dist/globals/stores/gamerecordingstore.js +1 -0
- package/dist/globals/stores/index.d.ts +18 -0
- package/dist/globals/stores/index.js +18 -0
- package/dist/globals/stores/libraryuistore.d.ts +179 -0
- package/dist/globals/stores/libraryuistore.js +56 -0
- package/dist/globals/stores/localizationmanager.d.ts +18 -0
- package/dist/globals/stores/localizationmanager.js +1 -0
- package/dist/globals/stores/mainwindowbrowsermanager.d.ts +62 -0
- package/dist/globals/stores/mainwindowbrowsermanager.js +1 -0
- package/dist/globals/stores/notificationstore.d.ts +242 -0
- package/dist/globals/stores/notificationstore.js +20 -0
- package/dist/globals/stores/popupmanager.d.ts +128 -0
- package/dist/globals/stores/popupmanager.js +1 -0
- package/dist/globals/stores/securitystore.d.ts +35 -0
- package/dist/globals/stores/securitystore.js +1 -0
- package/dist/globals/stores/settingsstore.d.ts +86 -0
- package/dist/globals/stores/settingsstore.js +19 -0
- package/dist/globals/stores/steamuistore/gamepadbrowserview.d.ts +143 -0
- package/dist/globals/stores/steamuistore/gamepadbrowserview.js +9 -0
- package/dist/globals/stores/steamuistore/gamepaduiaudio.d.ts +36 -0
- package/dist/globals/stores/steamuistore/gamepaduiaudio.js +1 -0
- package/dist/globals/stores/steamuistore/index.d.ts +129 -0
- package/dist/globals/stores/steamuistore/index.js +11 -0
- package/dist/globals/stores/steamuistore/menu.d.ts +39 -0
- package/dist/globals/stores/steamuistore/menu.js +19 -0
- package/dist/globals/stores/steamuistore/window.d.ts +206 -0
- package/dist/globals/stores/steamuistore/window.js +6 -0
- package/dist/globals/stores/storeitemcache.d.ts +319 -0
- package/dist/globals/stores/storeitemcache.js +17 -0
- package/dist/globals/stores/urlstore.d.ts +57 -0
- package/dist/globals/stores/urlstore.js +1 -0
- package/dist/modules/Router.d.ts +5 -58
- package/dist/modules/Router.js +2 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/Dropdown.tsx +2 -2
- package/src/components/FooterLegend.ts +10 -2
- package/src/components/Menu.ts +11 -21
- package/src/components/Modal.ts +40 -8
- package/src/globals/index.ts +45 -2
- package/src/globals/shared/cm.ts +158 -0
- package/src/globals/shared/enums.ts +97 -0
- package/src/globals/shared/history.ts +15 -0
- package/src/globals/shared/index.ts +5 -0
- package/src/globals/shared/interfaces.ts +147 -0
- package/src/globals/shared/navigation.ts +15 -0
- package/src/globals/shared/steamid.ts +49 -0
- package/src/globals/shared/storage.ts +62 -0
- package/src/globals/steam-client/App.ts +2 -2
- package/src/globals/steam-client/Auth.ts +2 -2
- package/src/globals/steam-client/ClientNotifications.ts +1 -1
- package/src/globals/steam-client/Overlay.ts +2 -1
- package/src/globals/steam-client/Settings.ts +1 -1
- package/src/globals/steam-client/SharedConnection.ts +2 -1
- package/src/globals/steam-client/UI.ts +15 -6
- package/src/globals/steam-client/User.ts +20 -0
- package/src/globals/steam-client/WebChat.ts +3 -2
- package/src/globals/steam-client/shared.ts +0 -69
- package/src/globals/stores/app.ts +102 -0
- package/src/globals/stores/appdetailsstore.ts +235 -0
- package/src/globals/stores/appinfostore.ts +65 -0
- package/src/globals/stores/appstore.ts +166 -0
- package/src/globals/stores/badgestore.ts +87 -0
- package/src/globals/stores/collectionstore.ts +544 -0
- package/src/globals/stores/consolestore.ts +54 -0
- package/src/globals/stores/focusnavcontroller.ts +522 -0
- package/src/globals/stores/friendstore/clanstore.ts +89 -0
- package/src/globals/stores/friendstore/friendchat.ts +646 -0
- package/src/globals/stores/friendstore/friendgroupstore.ts +187 -0
- package/src/globals/stores/friendstore/friendingamenotificationstore.ts +1 -0
- package/src/globals/stores/friendstore/friendslistfavoritesstore.ts +37 -0
- package/src/globals/stores/friendstore/friendsuifriendstore.ts +274 -0
- package/src/globals/stores/friendstore/index.ts +58 -0
- package/src/globals/stores/friendstore/shared.ts +318 -0
- package/src/globals/stores/gamerecordingstore.ts +367 -0
- package/src/globals/stores/index.ts +18 -0
- package/src/globals/stores/libraryuistore.ts +395 -0
- package/src/globals/stores/localizationmanager.ts +56 -0
- package/src/globals/stores/mainwindowbrowsermanager.ts +135 -0
- package/src/globals/stores/notificationstore.ts +298 -0
- package/src/globals/stores/popupmanager.ts +352 -0
- package/src/globals/stores/securitystore.ts +36 -0
- package/src/globals/stores/settingsstore.ts +134 -0
- package/src/globals/stores/steamuistore/gamepadbrowserview.ts +172 -0
- package/src/globals/stores/steamuistore/gamepaduiaudio.ts +117 -0
- package/src/globals/stores/steamuistore/index.ts +212 -0
- package/src/globals/stores/steamuistore/menu.ts +89 -0
- package/src/globals/stores/steamuistore/window.ts +466 -0
- package/src/globals/stores/storeitemcache.ts +347 -0
- package/src/globals/stores/urlstore.ts +150 -0
- package/src/modules/Router.ts +11 -77
- package/src/utils/index.ts +0 -1
- package/dist/globals/SteamClient.d.ts +0 -5
- package/dist/globals/SteamClient.js +0 -1
- package/dist/globals/stores.d.ts +0 -70
- package/src/globals/SteamClient.ts +0 -6
- package/src/globals/stores.ts +0 -74
- /package/dist/globals/{stores.js → shared/cm.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ESteamRealm
|
|
1
|
+
import type { ESteamRealm } from '../shared/enums';
|
|
2
|
+
import type { Unregisterable } from './shared';
|
|
2
3
|
export interface SharedConnection {
|
|
3
4
|
AllocateSharedConnection(): Promise<number>;
|
|
4
5
|
Close(hSharedConnection: number): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { EUIMode
|
|
2
|
-
import {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
|
+
import type { EResult, Unregisterable } from './shared';
|
|
3
|
+
import type { EOSType } from './system';
|
|
3
4
|
export interface UI {
|
|
4
5
|
EnsureMainWindowCreated(): void;
|
|
5
6
|
ExitBigPictureMode(): void;
|
|
@@ -9,13 +10,23 @@ export interface UI {
|
|
|
9
10
|
NotifyAppInitialized(): void;
|
|
10
11
|
RegisterDesiredSteamUIWindowsChanged(callback: () => void): Unregisterable;
|
|
11
12
|
RegisterForClientConVar(convar: string, callback: (value: string) => void): Unregisterable;
|
|
12
|
-
RegisterForErrorCondition(callback: (param0:
|
|
13
|
+
RegisterForErrorCondition(callback: (param0: ERefreshLoginReason, param1: EResult) => void): Unregisterable;
|
|
13
14
|
RegisterForKioskModeResetSignal(callback: () => void): Unregisterable;
|
|
14
15
|
RegisterForStartupFinished(callback: () => void): Unregisterable;
|
|
15
16
|
RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
|
|
16
17
|
ResetErrorCondition(): void;
|
|
17
18
|
SetUIMode(mode: EUIMode): void;
|
|
18
19
|
}
|
|
20
|
+
export declare enum ERefreshLoginReason {
|
|
21
|
+
Success = 1,
|
|
22
|
+
LoggedInElsewhere = 2,
|
|
23
|
+
SteamGuard = 3,
|
|
24
|
+
AccountDisabled = 4,
|
|
25
|
+
Offline = 5,
|
|
26
|
+
UnhandledMailTo = 6,
|
|
27
|
+
Success2 = 7,
|
|
28
|
+
InfoTicketExpired = 8
|
|
29
|
+
}
|
|
19
30
|
export declare enum EWindowType {
|
|
20
31
|
MainGamepadUI = 0,
|
|
21
32
|
OverlayGamepadUI = 1,
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
export var ERefreshLoginReason;
|
|
2
|
+
(function (ERefreshLoginReason) {
|
|
3
|
+
ERefreshLoginReason[ERefreshLoginReason["Success"] = 1] = "Success";
|
|
4
|
+
ERefreshLoginReason[ERefreshLoginReason["LoggedInElsewhere"] = 2] = "LoggedInElsewhere";
|
|
5
|
+
ERefreshLoginReason[ERefreshLoginReason["SteamGuard"] = 3] = "SteamGuard";
|
|
6
|
+
ERefreshLoginReason[ERefreshLoginReason["AccountDisabled"] = 4] = "AccountDisabled";
|
|
7
|
+
ERefreshLoginReason[ERefreshLoginReason["Offline"] = 5] = "Offline";
|
|
8
|
+
ERefreshLoginReason[ERefreshLoginReason["UnhandledMailTo"] = 6] = "UnhandledMailTo";
|
|
9
|
+
ERefreshLoginReason[ERefreshLoginReason["Success2"] = 7] = "Success2";
|
|
10
|
+
ERefreshLoginReason[ERefreshLoginReason["InfoTicketExpired"] = 8] = "InfoTicketExpired";
|
|
11
|
+
})(ERefreshLoginReason || (ERefreshLoginReason = {}));
|
|
1
12
|
export var EWindowType;
|
|
2
13
|
(function (EWindowType) {
|
|
3
14
|
EWindowType[EWindowType["MainGamepadUI"] = 0] = "MainGamepadUI";
|
|
@@ -49,6 +49,9 @@ export interface User {
|
|
|
49
49
|
export interface ConnectionAttempt {
|
|
50
50
|
rtCooldownExpiration: number;
|
|
51
51
|
}
|
|
52
|
+
interface FamilyGroupMember {
|
|
53
|
+
accountid: number;
|
|
54
|
+
}
|
|
52
55
|
export interface CurrentUser {
|
|
53
56
|
NotificationCounts: {
|
|
54
57
|
async_game_updates: number;
|
|
@@ -69,11 +72,20 @@ export interface CurrentUser {
|
|
|
69
72
|
bSupportAlertActive: boolean;
|
|
70
73
|
bSupportPopupMessage: boolean;
|
|
71
74
|
clientinstanceid: string;
|
|
75
|
+
eFamilyGroupRole: EFamilyGroupRole;
|
|
72
76
|
strAccountBalance: string;
|
|
73
77
|
strAccountBalancePending: string;
|
|
74
78
|
strAccountName: string;
|
|
75
79
|
strFamilyGroupID: string;
|
|
80
|
+
strFamilyGroupName: string;
|
|
76
81
|
strSteamID: string;
|
|
82
|
+
rgFamilyGroupMembers: FamilyGroupMember[];
|
|
83
|
+
}
|
|
84
|
+
export declare enum EFamilyGroupRole {
|
|
85
|
+
None = 0,
|
|
86
|
+
Adult = 1,
|
|
87
|
+
Child = 2,
|
|
88
|
+
MAX = 3
|
|
77
89
|
}
|
|
78
90
|
export declare enum ELoginState {
|
|
79
91
|
None = 0,
|
|
@@ -128,3 +140,4 @@ export interface SurveySection {
|
|
|
128
140
|
strSectionName: string;
|
|
129
141
|
vecEntries: SurveyEntry[];
|
|
130
142
|
}
|
|
143
|
+
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export var EFamilyGroupRole;
|
|
2
|
+
(function (EFamilyGroupRole) {
|
|
3
|
+
EFamilyGroupRole[EFamilyGroupRole["None"] = 0] = "None";
|
|
4
|
+
EFamilyGroupRole[EFamilyGroupRole["Adult"] = 1] = "Adult";
|
|
5
|
+
EFamilyGroupRole[EFamilyGroupRole["Child"] = 2] = "Child";
|
|
6
|
+
EFamilyGroupRole[EFamilyGroupRole["MAX"] = 3] = "MAX";
|
|
7
|
+
})(EFamilyGroupRole || (EFamilyGroupRole = {}));
|
|
1
8
|
export var ELoginState;
|
|
2
9
|
(function (ELoginState) {
|
|
3
10
|
ELoginState[ELoginState["None"] = 0] = "None";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
|
+
import type { OverlayBrowserInfo } from './Overlay';
|
|
3
|
+
import type { EResult, Unregisterable } from './shared';
|
|
3
4
|
export interface WebChat {
|
|
4
5
|
BSuppressPopupsInRestore(): Promise<boolean>;
|
|
5
6
|
GetCurrentUserAccountID(): Promise<number>;
|
|
@@ -111,22 +111,6 @@ export declare enum EResult {
|
|
|
111
111
|
AccountNotFriends = 111,
|
|
112
112
|
LimitedUserAccount = 112
|
|
113
113
|
}
|
|
114
|
-
export declare enum EBrowserType {
|
|
115
|
-
OffScreen = 0,
|
|
116
|
-
OpenVROverlay = 1,
|
|
117
|
-
OpenVROverlay_Dashboard = 2,
|
|
118
|
-
DirectHWND = 3,
|
|
119
|
-
DirectHWND_Borderless = 4,
|
|
120
|
-
DirectHWND_Hidden = 5,
|
|
121
|
-
ChildHWNDNative = 6,
|
|
122
|
-
Offscreen_SteamUI = 12,
|
|
123
|
-
OpenVROverlay_Subview = 13
|
|
124
|
-
}
|
|
125
|
-
export declare enum ESteamRealm {
|
|
126
|
-
Unknown = 0,
|
|
127
|
-
Global = 1,
|
|
128
|
-
China = 2
|
|
129
|
-
}
|
|
130
114
|
export declare enum EUIComposition {
|
|
131
115
|
Hidden = 0,
|
|
132
116
|
Notification = 1,
|
|
@@ -134,20 +118,7 @@ export declare enum EUIComposition {
|
|
|
134
118
|
Opaque = 3,
|
|
135
119
|
OverlayKeyboard = 4
|
|
136
120
|
}
|
|
137
|
-
export declare enum EUIMode {
|
|
138
|
-
Unknown = -1,
|
|
139
|
-
GamePad = 4,
|
|
140
|
-
Desktop = 7
|
|
141
|
-
}
|
|
142
121
|
export type VDFBoolean_t = 0 | 1;
|
|
143
|
-
export interface BrowserContext {
|
|
144
|
-
m_eBrowserType?: EBrowserType;
|
|
145
|
-
m_eUIMode?: EUIMode;
|
|
146
|
-
m_gameID?: string;
|
|
147
|
-
m_nBrowserID: number;
|
|
148
|
-
m_unAppID?: number;
|
|
149
|
-
m_unPID: number;
|
|
150
|
-
}
|
|
151
122
|
export interface OperationResponse {
|
|
152
123
|
result: EResult;
|
|
153
124
|
message: string;
|
|
@@ -112,24 +112,6 @@ export var EResult;
|
|
|
112
112
|
EResult[EResult["AccountNotFriends"] = 111] = "AccountNotFriends";
|
|
113
113
|
EResult[EResult["LimitedUserAccount"] = 112] = "LimitedUserAccount";
|
|
114
114
|
})(EResult || (EResult = {}));
|
|
115
|
-
export var EBrowserType;
|
|
116
|
-
(function (EBrowserType) {
|
|
117
|
-
EBrowserType[EBrowserType["OffScreen"] = 0] = "OffScreen";
|
|
118
|
-
EBrowserType[EBrowserType["OpenVROverlay"] = 1] = "OpenVROverlay";
|
|
119
|
-
EBrowserType[EBrowserType["OpenVROverlay_Dashboard"] = 2] = "OpenVROverlay_Dashboard";
|
|
120
|
-
EBrowserType[EBrowserType["DirectHWND"] = 3] = "DirectHWND";
|
|
121
|
-
EBrowserType[EBrowserType["DirectHWND_Borderless"] = 4] = "DirectHWND_Borderless";
|
|
122
|
-
EBrowserType[EBrowserType["DirectHWND_Hidden"] = 5] = "DirectHWND_Hidden";
|
|
123
|
-
EBrowserType[EBrowserType["ChildHWNDNative"] = 6] = "ChildHWNDNative";
|
|
124
|
-
EBrowserType[EBrowserType["Offscreen_SteamUI"] = 12] = "Offscreen_SteamUI";
|
|
125
|
-
EBrowserType[EBrowserType["OpenVROverlay_Subview"] = 13] = "OpenVROverlay_Subview";
|
|
126
|
-
})(EBrowserType || (EBrowserType = {}));
|
|
127
|
-
export var ESteamRealm;
|
|
128
|
-
(function (ESteamRealm) {
|
|
129
|
-
ESteamRealm[ESteamRealm["Unknown"] = 0] = "Unknown";
|
|
130
|
-
ESteamRealm[ESteamRealm["Global"] = 1] = "Global";
|
|
131
|
-
ESteamRealm[ESteamRealm["China"] = 2] = "China";
|
|
132
|
-
})(ESteamRealm || (ESteamRealm = {}));
|
|
133
115
|
export var EUIComposition;
|
|
134
116
|
(function (EUIComposition) {
|
|
135
117
|
EUIComposition[EUIComposition["Hidden"] = 0] = "Hidden";
|
|
@@ -138,9 +120,3 @@ export var EUIComposition;
|
|
|
138
120
|
EUIComposition[EUIComposition["Opaque"] = 3] = "Opaque";
|
|
139
121
|
EUIComposition[EUIComposition["OverlayKeyboard"] = 4] = "OverlayKeyboard";
|
|
140
122
|
})(EUIComposition || (EUIComposition = {}));
|
|
141
|
-
export var EUIMode;
|
|
142
|
-
(function (EUIMode) {
|
|
143
|
-
EUIMode[EUIMode["Unknown"] = -1] = "Unknown";
|
|
144
|
-
EUIMode[EUIMode["GamePad"] = 4] = "GamePad";
|
|
145
|
-
EUIMode[EUIMode["Desktop"] = 7] = "Desktop";
|
|
146
|
-
})(EUIMode || (EUIMode = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CMInterface } from '../shared/cm';
|
|
2
|
+
import type { CCloudStorage, EUserConfigStoreNamespace } from '../shared/storage';
|
|
3
|
+
import type { CurrentUser, ELoginState } from '../steam-client/User';
|
|
4
|
+
export interface CApp {
|
|
5
|
+
m_CurrentUser: CurrentUser;
|
|
6
|
+
m_bFinishedStage1: boolean;
|
|
7
|
+
m_bHaveShownSupportAlertModal: boolean;
|
|
8
|
+
m_bServicesInitialized: boolean;
|
|
9
|
+
m_bStartedStage2: boolean;
|
|
10
|
+
m_bWasEverLoggedIn: boolean;
|
|
11
|
+
m_cm: CMInterface;
|
|
12
|
+
m_eLoginState: ELoginState;
|
|
13
|
+
m_mapCloudStorage: Map<EUserConfigStoreNamespace, CCloudStorage>;
|
|
14
|
+
BFinishedInitStageOne(): boolean;
|
|
15
|
+
BHardwareSurveyPending(): boolean;
|
|
16
|
+
BHasAckOnlyActiveSupportAlerts(): boolean;
|
|
17
|
+
BHasActiveSupportAlerts(): boolean;
|
|
18
|
+
BHasCurrentUser(): boolean;
|
|
19
|
+
BIsFamilyGroupMember(steamid3: number): boolean;
|
|
20
|
+
BIsInFamilyGroup(): boolean;
|
|
21
|
+
BIsInOOBE(): boolean;
|
|
22
|
+
BIsOfflineMode(): boolean;
|
|
23
|
+
BMustShowSupportAlertDialog(): boolean;
|
|
24
|
+
BWasEverLoggedIn(): boolean;
|
|
25
|
+
GetCloudStorage(namespace: EUserConfigStoreNamespace): CCloudStorage | undefined;
|
|
26
|
+
GetCloudStorageForLibrary(): CCloudStorage;
|
|
27
|
+
GetCurrentUser(): CurrentUser;
|
|
28
|
+
GetFamilyGroupID(): CurrentUser['strFamilyGroupID'];
|
|
29
|
+
GetFamilyGroupName(): CurrentUser['strFamilyGroupName'];
|
|
30
|
+
GetServicesInitialized(): boolean;
|
|
31
|
+
OptOutOfSurvey(): void;
|
|
32
|
+
SendSurvey(): void;
|
|
33
|
+
ShowSupportAlertsModal(): void;
|
|
34
|
+
WaitForServicesInitialized(): Promise<boolean>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { AppAchievements, AppAssociations, AppDescription, AppDetails, LogoPosition, SteamAppOverview } from '../steam-client/App';
|
|
2
|
+
import type { EResult } from '../steam-client/shared';
|
|
3
|
+
type AjaxLibraryDetails_t = AppDescription & Omit<AppAssociations, 'rgFranchises'> & {
|
|
4
|
+
appid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
rgSocialMedia: any[];
|
|
7
|
+
status: EResult;
|
|
8
|
+
};
|
|
9
|
+
type AssetsWith2x_t<T extends string[]> = [
|
|
10
|
+
cached2xAsset: string,
|
|
11
|
+
...T
|
|
12
|
+
];
|
|
13
|
+
type AppAssets_t = [
|
|
14
|
+
cachedAsset: string,
|
|
15
|
+
legacyCachedAsset: string,
|
|
16
|
+
storeAsset: string
|
|
17
|
+
];
|
|
18
|
+
type AppAssetsWithCustomImage_t = [
|
|
19
|
+
customJpgAsset: string,
|
|
20
|
+
customPngAsset: string,
|
|
21
|
+
cachedAsset: string,
|
|
22
|
+
cachedLegacyAsset: string,
|
|
23
|
+
storeAsset: string
|
|
24
|
+
];
|
|
25
|
+
interface AppDetailsSpotlight {
|
|
26
|
+
data: {
|
|
27
|
+
events: any[];
|
|
28
|
+
};
|
|
29
|
+
dtLoaded: Date;
|
|
30
|
+
}
|
|
31
|
+
type LogoPositionInStorage = LogoPosition & {
|
|
32
|
+
nVersion: number;
|
|
33
|
+
};
|
|
34
|
+
interface AppData_t {
|
|
35
|
+
appDetailsSpotlight: AppDetailsSpotlight | null;
|
|
36
|
+
associationData: AppAssociations | null;
|
|
37
|
+
bLoadingAchievments: boolean;
|
|
38
|
+
cRegistered: number;
|
|
39
|
+
customImageInfo: LogoPositionInStorage | null;
|
|
40
|
+
customImageInfoRtime: number;
|
|
41
|
+
descriptionsData: AppDescription | null;
|
|
42
|
+
details: AppDetails;
|
|
43
|
+
}
|
|
44
|
+
interface GetLogoImagesResult<T> {
|
|
45
|
+
logoPosition: LogoPosition;
|
|
46
|
+
rgLogoImages: T;
|
|
47
|
+
}
|
|
48
|
+
interface GetHeroImagesResult<T> {
|
|
49
|
+
appid: number;
|
|
50
|
+
bHasHeroImage: boolean;
|
|
51
|
+
rgHeroImages: T;
|
|
52
|
+
}
|
|
53
|
+
export declare class CAppDetailsStore {
|
|
54
|
+
m_mapAppData: Map<number, AppData_t>;
|
|
55
|
+
BAchievementIsHiddenAndAchieved(appid: number, name: string): boolean;
|
|
56
|
+
BHasMarketPresence(details: AppDetails): boolean;
|
|
57
|
+
BHasRecentlyLaunched(details: AppDetails): boolean;
|
|
58
|
+
BIsWorkshopVisible(details: AppDetails): boolean;
|
|
59
|
+
ClearCustomLogoPosition(overview: SteamAppOverview): Promise<void>;
|
|
60
|
+
GetAchievements(appid: number): AppAchievements;
|
|
61
|
+
GetAjaxLibraryAppDetails(appid: number): Promise<AjaxLibraryDetails_t | null>;
|
|
62
|
+
GetAppData(appid: number): AppData_t;
|
|
63
|
+
GetAppDetails(appid: number): AppDetails | null;
|
|
64
|
+
GetAppDetailsSpotlight(appid: number): AppDetailsSpotlight;
|
|
65
|
+
GetAssociations(appid: number): AppAssociations;
|
|
66
|
+
GetCustomLogoPosition(appid: number): LogoPosition | null | undefined;
|
|
67
|
+
GetDescriptions(appid: number): AppDescription;
|
|
68
|
+
GetHeaderImages<T extends boolean>(overview: SteamAppOverview, prefer2x?: T): T extends true ? AssetsWith2x_t<AppAssetsWithCustomImage_t> : AppAssetsWithCustomImage_t;
|
|
69
|
+
GetHeaderImagesForAppId<T extends boolean>(appid: number, localCacheVersion?: number, storeAssetMtime?: number, prefer2x?: T): T extends true ? AssetsWith2x_t<AppAssets_t> : AppAssets_t;
|
|
70
|
+
GetHeroBlurImages(overview: SteamAppOverview): AppAssetsWithCustomImage_t;
|
|
71
|
+
GetHeroBlurImagesForAppId(appid: number, localCacheVersion?: number, storeAssetMtime?: number): AppAssets_t;
|
|
72
|
+
GetHeroImages(overview: SteamAppOverview): GetHeroImagesResult<AppAssetsWithCustomImage_t>;
|
|
73
|
+
GetHeroImagesForAppId(appid: number, localCacheVersion?: number, storeAssetMtime?: number): GetHeroImagesResult<AppAssets_t>;
|
|
74
|
+
GetLogoImages(overview: SteamAppOverview): GetLogoImagesResult<AppAssetsWithCustomImage_t>;
|
|
75
|
+
GetLogoImagesForAppId(appid: number, localCacheVersion?: number, storeAssetMtime?: number): GetLogoImagesResult<AppAssets_t>;
|
|
76
|
+
RequestAppDetails(appid: number): Promise<AppDetails | undefined>;
|
|
77
|
+
RequestAchievements(appid: number): Promise<void>;
|
|
78
|
+
RequestAppDetailsSpotlight(appid: number): Promise<void>;
|
|
79
|
+
RequestAssociationData(appid: number): Promise<void>;
|
|
80
|
+
RequestCustomImageInfo(overview: SteamAppOverview): Promise<void>;
|
|
81
|
+
RequestDescriptionsData(appid: number): Promise<void>;
|
|
82
|
+
SaveCustomLogoPosition(overview: SteamAppOverview, position: LogoPosition): Promise<void>;
|
|
83
|
+
SetAjaxLibraryAppDetails(appid: number, data: AppData_t, details: AjaxLibraryDetails_t): void;
|
|
84
|
+
ValidateCustomImageInfo(info: LogoPositionInStorage): boolean;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { CCallbackList } from '../shared';
|
|
2
|
+
import type { EAppType } from '../steam-client/App';
|
|
3
|
+
interface AppInfoCacheObject_t {
|
|
4
|
+
eAppType: EAppType;
|
|
5
|
+
strIconURL: string;
|
|
6
|
+
strName: string;
|
|
7
|
+
strUpdatedFromServer: string;
|
|
8
|
+
}
|
|
9
|
+
declare class CAppInfo {
|
|
10
|
+
m_unAppID: number;
|
|
11
|
+
m_bInitialized: boolean;
|
|
12
|
+
m_strName: string;
|
|
13
|
+
m_strIconURL: string;
|
|
14
|
+
m_dtUpdatedFromServer: Date;
|
|
15
|
+
m_eAppType: EAppType;
|
|
16
|
+
get appid(): number;
|
|
17
|
+
get is_initialized(): boolean;
|
|
18
|
+
get is_valid(): boolean;
|
|
19
|
+
get name(): string;
|
|
20
|
+
get icon_url_no_default(): string;
|
|
21
|
+
get time_updated_from_server(): Date;
|
|
22
|
+
get apptype(): EAppType;
|
|
23
|
+
BIsApplicationOrTool(): boolean;
|
|
24
|
+
BuildAppURL(imageName: string): string;
|
|
25
|
+
DeserializeFromMessage(e: any): void;
|
|
26
|
+
DeserializeFromAppOverview(e: any): void;
|
|
27
|
+
DeserializeFromCacheObject(e: any): void;
|
|
28
|
+
SerializeToCacheObject(): AppInfoCacheObject_t | null;
|
|
29
|
+
}
|
|
30
|
+
export declare class CAppInfoStore {
|
|
31
|
+
m_mapAppInfo: Map<number, CAppInfo>;
|
|
32
|
+
m_mapRichPresenceLoc: any;
|
|
33
|
+
m_cAppInfoRequestsInFlight: number;
|
|
34
|
+
m_setPendingAppInfo: Set<unknown>;
|
|
35
|
+
m_PendingAppInfoPromise: any;
|
|
36
|
+
m_PendingAppInfoResolve: any;
|
|
37
|
+
m_CacheStorage: any | null;
|
|
38
|
+
m_fnCallbackOnAppInfoLoaded: CCallbackList;
|
|
39
|
+
BHavePendingAppInfoRequests(): boolean;
|
|
40
|
+
EnsureAppInfoForAppIDs(rgAppIDs: number[]): Promise<any>;
|
|
41
|
+
FlushPendingAppInfo(): Promise<void>;
|
|
42
|
+
GetAppInfo(appid: number): CAppInfo;
|
|
43
|
+
GetCacheKeyForAppID(appid: number): string;
|
|
44
|
+
GetRichPresenceLocAsync(e: any): any;
|
|
45
|
+
GetRichPresenceLoc(e: any): any;
|
|
46
|
+
IsLoadingAppID(appid: number): boolean;
|
|
47
|
+
LoadAppInfoBatchFromLocalCache(rgAppInfoBatch: any[]): Promise<any[]>;
|
|
48
|
+
LoadAppInfoBatch(rgAppInfoBatch: any[]): Promise<void>;
|
|
49
|
+
Localize(appid: number, strToken: string, r: any): any;
|
|
50
|
+
QueueAppInfoRequest(e: any): any;
|
|
51
|
+
QueueRichPresenceLocRequest(e: any): any;
|
|
52
|
+
RegisterCallbackOnLoad(callback: () => void): void;
|
|
53
|
+
SaveAppInfoBatchToLocalCache(rgAppInfoBatch: any[]): Promise<void>;
|
|
54
|
+
SetCacheStorage(storage: any): void;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { SteamAppOverview, SteamAppOverviewRemoteClientData } from '../steam-client/App';
|
|
2
|
+
import type { EGenre, EStoreCategory } from './collectionstore';
|
|
3
|
+
export interface IAppOverview extends SteamAppOverview {
|
|
4
|
+
m_setStoreCategories: Set<EStoreCategory>;
|
|
5
|
+
m_setStoreTags: Set<EGenre>;
|
|
6
|
+
BAreCategoriesEqual(protoMsg: any): boolean;
|
|
7
|
+
BAreSetsEqual(lhs: Set<any>, rhs: Set<any>): boolean;
|
|
8
|
+
BAreStoreTagsEqual(): boolean;
|
|
9
|
+
BHasCustomImages(): boolean;
|
|
10
|
+
BHasStoreCategory(category: EStoreCategory): boolean;
|
|
11
|
+
BHasStoreTag(tag: EGenre): boolean;
|
|
12
|
+
BIsAppBlocked(): boolean;
|
|
13
|
+
BIsAppInBlockList(): boolean;
|
|
14
|
+
BIsApplicationOrTool(): boolean;
|
|
15
|
+
BIsBorrowed(): boolean;
|
|
16
|
+
BIsDemo(): boolean;
|
|
17
|
+
BIsGameIDEqual(protoMsg: any): boolean;
|
|
18
|
+
BIsHardware(): boolean;
|
|
19
|
+
BIsLastTimePlayedEqual(protoMsg: any): boolean;
|
|
20
|
+
BIsModOrShortcut(): boolean;
|
|
21
|
+
BIsMusicAlbum(): boolean;
|
|
22
|
+
BIsNewToLibrary(): boolean;
|
|
23
|
+
BIsOwned(): boolean;
|
|
24
|
+
BIsOwnedByAnotherUser(): boolean;
|
|
25
|
+
BIsPerClientDataEqual(protoMsg: any): boolean;
|
|
26
|
+
BIsPerClientDataLocal(protoMsg: any): boolean;
|
|
27
|
+
BIsSelectedClientLocal(): boolean;
|
|
28
|
+
BIsShortcut(): boolean;
|
|
29
|
+
BIsSortAsEqual(protoMsg: any): boolean;
|
|
30
|
+
BIsSteamDeckVerified(): boolean;
|
|
31
|
+
BIsSteamOSCompatible(): boolean;
|
|
32
|
+
BIsSteamVR(): boolean;
|
|
33
|
+
BIsUnreleased(): boolean;
|
|
34
|
+
BIsVisibleInMRUList(): boolean;
|
|
35
|
+
BSupportsVR(): boolean;
|
|
36
|
+
GetCanonicalReleaseDate(): number;
|
|
37
|
+
GetCanonicalReleaseYear(): string;
|
|
38
|
+
GetGameID(): string;
|
|
39
|
+
GetLastPlayedSectionName(): string;
|
|
40
|
+
GetLastTimePlayed(): number;
|
|
41
|
+
GetPerClientData(which: 'local' | 'mostavailable' | 'selected'): SteamAppOverviewRemoteClientData;
|
|
42
|
+
GetPrimaryAppID(): number;
|
|
43
|
+
GetStoreTags(): Set<EGenre>;
|
|
44
|
+
}
|
|
45
|
+
interface StoreTag {
|
|
46
|
+
nTagId: EGenre;
|
|
47
|
+
nCount: number;
|
|
48
|
+
}
|
|
49
|
+
export declare class CAppStore {
|
|
50
|
+
m_bIsInitialized: boolean;
|
|
51
|
+
m_mapApps: Map<IAppOverview, string>;
|
|
52
|
+
m_mapStoreTagLocalization: Map<EGenre, string>;
|
|
53
|
+
m_msTagMapLoaded: number;
|
|
54
|
+
GetAlbumCoverURLForApp(app: SteamAppOverview): string | null;
|
|
55
|
+
GetAppOverviewByAppID(appid: number): SteamAppOverview | null;
|
|
56
|
+
GetAppOverviewByGameID(gameid: string): SteamAppOverview | null;
|
|
57
|
+
GetCachedAlbumCoverURL(app: SteamAppOverview): string | null;
|
|
58
|
+
GetCachedVerticalCapsuleURL(app: SteamAppOverview): string[];
|
|
59
|
+
GetCustomHeroImageURLs(app: SteamAppOverview): string[];
|
|
60
|
+
GetCustomImageURLs(app: SteamAppOverview, assetName: string): string[];
|
|
61
|
+
GetCustomLandcapeImageURLs(app: SteamAppOverview): string[];
|
|
62
|
+
GetCustomLogoImageURLs(app: SteamAppOverview): string[];
|
|
63
|
+
GetCustomVerticalCapsuleURLs(app: SteamAppOverview): string[];
|
|
64
|
+
GetIconURLForApp(app: SteamAppOverview): string;
|
|
65
|
+
GetLocalizationForStoreTag(category: EGenre): string;
|
|
66
|
+
GetPregeneratedVerticalCapsuleForApp(app: SteamAppOverview): string;
|
|
67
|
+
GetStorePageURLForApp(app: SteamAppOverview): string;
|
|
68
|
+
GetTopStoreTags(s: string): StoreTag[];
|
|
69
|
+
GetVerticalCapsuleURLForApp(app: SteamAppOverview): string;
|
|
70
|
+
get allApps(): IAppOverview[];
|
|
71
|
+
get sharedLibraryAccountIds(): number[];
|
|
72
|
+
get siteLicenseApps(): {
|
|
73
|
+
strSiteName: string;
|
|
74
|
+
rgApps: IAppOverview[];
|
|
75
|
+
} | null;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { VDFBoolean_t } from '../steam-client/shared';
|
|
2
|
+
interface BadgeCard_t {
|
|
3
|
+
strName: string;
|
|
4
|
+
strTitle: string;
|
|
5
|
+
strImgURL: string;
|
|
6
|
+
strArtworkURL: string;
|
|
7
|
+
strMarketHash: string;
|
|
8
|
+
nOwned: 0;
|
|
9
|
+
}
|
|
10
|
+
interface BadgeInfo_t {
|
|
11
|
+
bMaxed: VDFBoolean_t;
|
|
12
|
+
dtNextRetry: number;
|
|
13
|
+
strIconURL: string;
|
|
14
|
+
strName: string;
|
|
15
|
+
strNextLevelName: string;
|
|
16
|
+
nLevel: number;
|
|
17
|
+
nMaxLevel: number;
|
|
18
|
+
nXP: number;
|
|
19
|
+
nNextLevelXP: number;
|
|
20
|
+
rgCards: BadgeCard_t[];
|
|
21
|
+
}
|
|
22
|
+
interface CommunityItemDefinition {
|
|
23
|
+
active: boolean;
|
|
24
|
+
appid: number;
|
|
25
|
+
item_class: number;
|
|
26
|
+
item_description: string;
|
|
27
|
+
item_image_composed: string;
|
|
28
|
+
item_image_composed_foil: string;
|
|
29
|
+
item_image_large: string;
|
|
30
|
+
item_image_small: string;
|
|
31
|
+
item_internal_name: string;
|
|
32
|
+
item_last_changed: number;
|
|
33
|
+
item_movie_mp4: string;
|
|
34
|
+
item_movie_mp4_small: string;
|
|
35
|
+
item_movie_webm: string;
|
|
36
|
+
item_movie_webm_small: string;
|
|
37
|
+
item_name: string;
|
|
38
|
+
item_series: number;
|
|
39
|
+
item_title: string;
|
|
40
|
+
item_type: number;
|
|
41
|
+
}
|
|
42
|
+
export declare class CBadgeStore {
|
|
43
|
+
m_mapBadgeData: Map<number, BadgeInfo_t>;
|
|
44
|
+
m_mapCommunityItemDefs: Map<number, CommunityItemDefinition[]>;
|
|
45
|
+
FetchBadgeData(appid: number): Promise<void>;
|
|
46
|
+
FetchCommunityItemDefinitions(appid: number): Promise<void>;
|
|
47
|
+
GetBadgeData(appid: number): BadgeInfo_t;
|
|
48
|
+
GetCommunityItemDefinition(defs: CommunityItemDefinition[], itemClass: number, itemType: number): CommunityItemDefinition | null;
|
|
49
|
+
GetCommunityItemDefinitions(appid: number): CommunityItemDefinition[];
|
|
50
|
+
InvalidateBadgeData(appid: number): void;
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|