feat: require paired browser receiver
This commit is contained in:
@@ -439,6 +439,21 @@ export function createPluginAPI(pluginId) {
|
||||
}
|
||||
},
|
||||
|
||||
browserReceiver: {
|
||||
pairing: function() {
|
||||
assertActive('browserReceiver.pairing');
|
||||
return callBackend(pluginId, 'browserReceiver.pairing', function() {
|
||||
return App.PluginBrowserReceiverPairing(pluginId);
|
||||
});
|
||||
},
|
||||
rotateToken: function() {
|
||||
assertActive('browserReceiver.rotateToken');
|
||||
return callBackend(pluginId, 'browserReceiver.rotateToken', function() {
|
||||
return App.PluginRotateBrowserReceiverToken(pluginId);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
workbench: {
|
||||
openResource: async function(request) {
|
||||
assertActive('workbench.openResource');
|
||||
|
||||
Vendored
+4
@@ -94,6 +94,10 @@ export function PluginSecretsUnlock(arg1:string,arg2:string):Promise<string>;
|
||||
|
||||
export function PluginSecretsWrite(arg1:string,arg2:Record<string, any>):Promise<Record<string, any>|string>;
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1:string):Promise<Record<string, string>|string>;
|
||||
|
||||
export function PluginSyncConfigure(arg1:string,arg2:string,arg3:string,arg4:string):Promise<string>;
|
||||
|
||||
export function PluginSyncDisconnect(arg1:string):Promise<string>;
|
||||
|
||||
@@ -174,6 +174,14 @@ export function PluginSecretsWrite(arg1, arg2) {
|
||||
return window['go']['api']['App']['PluginSecretsWrite'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function PluginBrowserReceiverPairing(arg1) {
|
||||
return window['go']['api']['App']['PluginBrowserReceiverPairing'](arg1);
|
||||
}
|
||||
|
||||
export function PluginRotateBrowserReceiverToken(arg1) {
|
||||
return window['go']['api']['App']['PluginRotateBrowserReceiverToken'](arg1);
|
||||
}
|
||||
|
||||
export function PluginSyncConfigure(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['api']['App']['PluginSyncConfigure'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user