diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-01 14:16:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-01 14:16:56 +0530 |
commit | 609397d95a73bdae55de41c47b19932e810d0320 (patch) | |
tree | 34fb9168eb25567c2d14daa5f69301d6932d58c1 /src/webex/wxApi.ts | |
parent | 3f52d293be88f19e8e68aaa8ee6a80cd6c7cc47a (diff) | |
download | wallet-core-609397d95a73bdae55de41c47b19932e810d0320.tar.xz |
drastically reduce permissions for Web integration
The old web integration with more permissions is still available on an
opt-in basis.
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 07b223c87..128041e57 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -41,6 +41,7 @@ import { WithdrawDetails, PreparePayResult, AcceptWithdrawalResponse, + ExtendedPermissionsResponse, } from "../types/walletTypes"; import { MessageMap, MessageType } from "./messages"; @@ -324,3 +325,17 @@ export function acceptWithdrawal( export function getDiagnostics(): Promise<WalletDiagnostics> { return callBackend("get-diagnostics", {}); } + +/** + * Get diagnostics information + */ +export function setExtendedPermissions(value: boolean): Promise<ExtendedPermissionsResponse> { + return callBackend("set-extended-permissions", { value }); +} + +/** + * Get diagnostics information + */ +export function getExtendedPermissions(): Promise<ExtendedPermissionsResponse> { + return callBackend("get-extended-permissions", {}); +} |