/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
protocol/avdl/keybase1/device.avdl
54 строки
1 KB
Alex Gessner
notify for new and revoked devices (#14145)
16 окт 2018, 16:47
Не верифицирован
16 окт 2018, 16:47
e202e65
Код
Авторство
О чём код?
@namespace("keybase.1") protocol device { import idl "common.avdl"; /** List devices for the user. */ array<Device> deviceList(int sessionID); record DeviceDetail { Device device; boolean eldest; union {null, Device} provisioner; union {null, Time} provisionedAt; // not possible to determine revoker without major code change // union {null, Device} revoker; union {null, Time} revokedAt; KID revokedBy; union {null, Device} revokedByDevice; boolean currentDevice; } /** List all devices with detailed history and status information. */ array<DeviceDetail> deviceHistoryList(int sessionID); /** Starts the process of adding a new device using an existing device. It is called on the existing device. This is for kex2. */ void deviceAdd(int sessionID); /** Checks the device name format. */ boolean checkDeviceNameFormat(int sessionID, string name); /** Dismisses the notifications for a new or revoked device assuming this is not that device. */ void dismissDeviceChangeNotifications(); /** Checks a given device against all of user's past devices, including those that predate a reset. It will also check a device name for proper formatting. Return null error on success, and a non-null error otherwise. */ void checkDeviceNameForUser(int sessionID, string username, string devicename); }