// // Copyright 2021 DXOS.org // import { AccountKey } from './account-key'; /** * Accounts with a list of devices. */ export interface Account { id: string, devices: string[], } export interface AccountsClientBackend { getAccount(account: AccountKey): Promise listAccounts(): Promise createAccount(): Promise addDevice(account: AccountKey, device: string): Promise belongsToAccount(account: AccountKey, device: string): Promise }