mirror of
https://github.com/bitwarden/browser
synced 2025-12-25 20:53:22 +00:00
Assign ownership to many of the remaining libs/common files. Criteria for ownership: * Files used by a single team, is now owned by that team. * Files related to a domain owned by a team is now owned by that team. * Where ownership is unclear the "lowest level" service takes ownership.
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
import { KdfType } from "@bitwarden/common/platform/enums";
|
|
import { CipherResponse } from "@bitwarden/common/vault/models/response/cipher.response";
|
|
|
|
import { EmergencyAccessStatusType } from "../enums/emergency-access-status-type";
|
|
import { EmergencyAccessType } from "../enums/emergency-access-type";
|
|
|
|
export class GranteeEmergencyAccess {
|
|
id: string;
|
|
granteeId: string;
|
|
name: string;
|
|
email: string;
|
|
type: EmergencyAccessType;
|
|
status: EmergencyAccessStatusType;
|
|
waitTimeDays: number;
|
|
creationDate: string;
|
|
avatarColor: string;
|
|
}
|
|
|
|
export class GrantorEmergencyAccess {
|
|
id: string;
|
|
grantorId: string;
|
|
name: string;
|
|
email: string;
|
|
type: EmergencyAccessType;
|
|
status: EmergencyAccessStatusType;
|
|
waitTimeDays: number;
|
|
creationDate: string;
|
|
avatarColor: string;
|
|
}
|
|
|
|
export class TakeoverTypeEmergencyAccess {
|
|
keyEncrypted: string;
|
|
kdf: KdfType;
|
|
kdfIterations: number;
|
|
kdfMemory?: number;
|
|
kdfParallelism?: number;
|
|
}
|
|
|
|
export class ViewTypeEmergencyAccess {
|
|
keyEncrypted: string;
|
|
ciphers: CipherResponse[] = [];
|
|
}
|