From 609397d95a73bdae55de41c47b19932e810d0320 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 1 May 2020 14:16:56 +0530 Subject: drastically reduce permissions for Web integration The old web integration with more permissions is still available on an opt-in basis. --- src/webex/wxApi.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/webex/wxApi.ts') 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 { return callBackend("get-diagnostics", {}); } + +/** + * Get diagnostics information + */ +export function setExtendedPermissions(value: boolean): Promise { + return callBackend("set-extended-permissions", { value }); +} + +/** + * Get diagnostics information + */ +export function getExtendedPermissions(): Promise { + return callBackend("get-extended-permissions", {}); +} -- cgit v1.2.3