1 import type { PrivateKeyReference, PublicKeyReference } from '@proton/crypto';
3 import type { MEMBER_ORG_KEY_STATE } from './Member';
5 export interface OrganizationKey {
6 LegacyPrivateKey?: string;
10 SignatureAddress?: string | null;
11 AccessToOrgKey?: MEMBER_ORG_KEY_STATE;
12 EncryptionAddressID?: string;
13 Passwordless?: boolean;
14 FingerprintSignature?: string | null;
15 FingerprintSignatureAddress?: string | null;
18 export type PasswordlessOrganizationKey = OrganizationKey &
19 Required<Pick<OrganizationKey, 'Token' | 'Signature' | 'PrivateKey'>>;
21 export type CachedOrganizationKey =
24 privateKey?: undefined;
25 publicKey?: undefined;
27 placeholder?: boolean;
31 privateKey: PrivateKeyReference;
32 publicKey: PublicKeyReference;
34 placeholder?: boolean;