mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 02:33:44 +03:00
77 lines
1.2 KiB
Dart
77 lines
1.2 KiB
Dart
import 'package:pigeon/pigeon.dart';
|
|
|
|
@HostApi()
|
|
abstract class OathApi {
|
|
@async
|
|
void reset();
|
|
|
|
@async
|
|
bool unlock(String password, bool remember);
|
|
|
|
@async
|
|
void setPassword(String newPassword);
|
|
|
|
@async
|
|
void changePassword(String currentPassword, String newPassword);
|
|
|
|
@async
|
|
void unsetPassword(String currentPassword);
|
|
|
|
@async
|
|
void forgetPassword();
|
|
|
|
@async
|
|
String addAccount(String uri, bool requireTouch);
|
|
|
|
@async
|
|
String renameAccount(String uri, String name);
|
|
|
|
@async
|
|
String renameAccountWithIssuer(String uri, String name, String issuer);
|
|
|
|
@async
|
|
void deleteAccount(String uri);
|
|
|
|
@async
|
|
String refreshCodes();
|
|
|
|
@async
|
|
String calculate(String uri);
|
|
}
|
|
|
|
@HostApi()
|
|
abstract class AppApi {
|
|
@async
|
|
void setContext(int subPageIndex);
|
|
}
|
|
|
|
@FlutterApi()
|
|
abstract class FOathApi {
|
|
@async
|
|
void updateSession(String sessionJson);
|
|
|
|
@async
|
|
void updateOathCredentials(String credentialListJson);
|
|
}
|
|
|
|
@FlutterApi()
|
|
abstract class FManagementApi {
|
|
@async
|
|
void updateDeviceInfo(String deviceInfoJson);
|
|
}
|
|
|
|
@FlutterApi()
|
|
abstract class FDialogApi {
|
|
@async
|
|
void showDialogApi(String dialogParametersJson);
|
|
|
|
@async
|
|
void closeDialogApi();
|
|
}
|
|
|
|
@HostApi()
|
|
abstract class HDialogApi {
|
|
@async
|
|
void dialogClosed();
|
|
}
|