summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-03-11 16:29:50 +0100
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-05-28 10:28:14 +0200
commitc8d379bd877b950aea18abe0be96e4c6ad8711f2 (patch)
treecc0f266833747065d5d85cab01ba4ff35a3400d7 /desktop
parent5411806fa8adfad9d865c294c801b5c921da8f4b (diff)
downloadmullvadvpn-c8d379bd877b950aea18abe0be96e4c6ad8711f2.tar.xz
mullvadvpn-c8d379bd877b950aea18abe0be96e4c6ad8711f2.zip
Add DaemonAppUpgrade types
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts39
1 files changed, 39 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts b/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts
index 01e1cdae3b..1d0cce76b8 100644
--- a/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts
@@ -175,6 +175,45 @@ export type DaemonEvent =
| { deviceRemoval: Array<IDevice> }
| { accessMethodSetting: AccessMethodSetting };
+export type DaemonAppUpgradeEventStatusDownloadStarted = {
+ type: 'APP_UPGRADE_STATUS_DOWNLOAD_STARTED';
+};
+
+export type DaemonAppUpgradeEventStatusDownloadProgress = {
+ type: 'APP_UPGRADE_STATUS_DOWNLOAD_PROGRESS';
+ progress: number;
+ server: string;
+ timeLeft: number;
+};
+
+export type DaemonAppUpgradeEventStatusAborted = {
+ type: 'APP_UPGRADE_STATUS_ABORTED';
+};
+
+export type DaemonAppUpgradeEventStatusVerifyingInstaller = {
+ type: 'APP_UPGRADE_STATUS_VERIFYING_INSTALLER';
+};
+
+export type DaemonAppUpgradeEventStatusVerifiedInstaller = {
+ type: 'APP_UPGRADE_STATUS_VERIFIED_INSTALLER';
+};
+
+export type DaemonAppUpgradeError = 'DOWNLOAD_FAILED' | 'GENERAL_ERROR' | 'VERIFICATION_FAILED';
+
+export type DaemonAppUpgradeEventError = {
+ type: 'APP_UPGRADE_ERROR';
+ error: DaemonAppUpgradeError;
+};
+
+export type DaemonAppUpgradeEventStatus =
+ | DaemonAppUpgradeEventStatusDownloadStarted
+ | DaemonAppUpgradeEventStatusDownloadProgress
+ | DaemonAppUpgradeEventStatusAborted
+ | DaemonAppUpgradeEventStatusVerifyingInstaller
+ | DaemonAppUpgradeEventStatusVerifiedInstaller;
+
+export type DaemonAppUpgradeEvent = DaemonAppUpgradeEventStatus | DaemonAppUpgradeEventError;
+
export interface ITunnelStateRelayInfo {
endpoint: ITunnelEndpoint;
location?: ILocation;