diff --git a/client/src/parsec/device.ts b/client/src/parsec/device.ts index 0d84907008a..89d339c9c08 100644 --- a/client/src/parsec/device.ts +++ b/client/src/parsec/device.ts @@ -11,6 +11,7 @@ import { OwnDeviceInfo, Result, UserID, + DevicePurpose, } from '@/parsec/types'; import { ArchiveDeviceError, AvailableDevice, libparsec } from '@/plugins/libparsec'; import { DateTime } from 'luxon'; @@ -103,6 +104,7 @@ export async function importRecoveryDevice( value: { id: 'fake_id', deviceLabel: deviceLabel, + purpose: DevicePurpose.Standard, createdOn: DateTime.now(), createdBy: null, }, @@ -113,6 +115,7 @@ export async function importRecoveryDevice( value: { id: 'fake_id', deviceLabel: deviceLabel, + purpose: DevicePurpose.Standard, createdOn: DateTime.now(), createdBy: null, }, @@ -182,6 +185,7 @@ export async function listOwnDevices(): Promise, Cli { id: 'device1', deviceLabel: 'Web', + purpose: DevicePurpose.Standard, createdOn: DateTime.now(), createdBy: 'some_device', isCurrent: true, @@ -189,6 +193,7 @@ export async function listOwnDevices(): Promise, Cli { id: 'device2', deviceLabel: 'Web', + purpose: DevicePurpose.Standard, createdOn: DateTime.now(), createdBy: 'device1', isCurrent: false, @@ -196,6 +201,7 @@ export async function listOwnDevices(): Promise, Cli { id: `${RECOVERY_DEVICE_PREFIX}_device`, deviceLabel: 'Recovery Device', + purpose: DevicePurpose.PassphraseRecovery, createdOn: DateTime.now(), createdBy: 'device1', isCurrent: false, @@ -224,18 +230,21 @@ export async function listUserDevices(user: UserID): Promise