diff options
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts | 39 |
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; |
