diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-11-22 12:13:24 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-01-29 09:33:49 +0100 |
| commit | b8eb0a732ce8c9c542203fbc063674fb9cc24384 (patch) | |
| tree | 27231801d7fa663be08b5c9606550cdd6380295b /gui/src/shared | |
| parent | db9f5abf496019d3e40b62833c334b550e2d759a (diff) | |
| download | mullvadvpn-b8eb0a732ce8c9c542203fbc063674fb9cc24384.tar.xz mullvadvpn-b8eb0a732ce8c9c542203fbc063674fb9cc24384.zip | |
Add API access methods to Electron IPC
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index ecf34e93fb..3f348b1d86 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -2,11 +2,13 @@ import { GetTextTranslations } from 'gettext-parser'; import { ILinuxSplitTunnelingApplication, IWindowsApplication } from './application-types'; import { + AccessMethodSetting, AccountDataError, AccountToken, BridgeSettings, BridgeState, CustomListError, + CustomProxy, DeviceEvent, DeviceState, IAccountData, @@ -17,6 +19,7 @@ import { IDnsOptions, IRelayListWithEndpointData, ISettings, + NewAccessMethodSetting, ObfuscationSettings, RelaySettings, TunnelState, @@ -71,6 +74,7 @@ export interface IAppStateSnapshot { changelog: IChangelog; forceShowChanges: boolean; navigationHistory?: IHistoryObject; + currentApiAccessMethod?: AccessMethodSetting; } // The different types of requests are: @@ -160,6 +164,7 @@ export const ipcSchema = { }, settings: { '': notifyRenderer<ISettings>(), + apiAccessMethodSettingChange: notifyRenderer<AccessMethodSetting>(), setAllowLan: invoke<boolean, void>(), setShowBetaReleases: invoke<boolean, void>(), setEnableIpv6: invoke<boolean, void>(), @@ -172,6 +177,12 @@ export const ipcSchema = { updateBridgeSettings: invoke<BridgeSettings, void>(), setDnsOptions: invoke<IDnsOptions, void>(), setObfuscationSettings: invoke<ObfuscationSettings, void>(), + addApiAccessMethod: invoke<NewAccessMethodSetting, string>(), + updateApiAccessMethod: invoke<AccessMethodSetting, void>(), + removeApiAccessMethod: invoke<string, void>(), + setApiAccessMethod: invoke<string, void>(), + testApiAccessMethodById: invoke<string, boolean>(), + testCustomApiAccessMethod: invoke<CustomProxy, boolean>(), }, guiSettings: { '': notifyRenderer<IGuiSettingsState>(), |
