Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / OrganizationKey.ts
bloba6f38a27c0927a6d17b7face581df60c1b90c669
1 import type { PrivateKeyReference, PublicKeyReference } from '@proton/crypto';
3 import type { MEMBER_ORG_KEY_STATE } from './Member';
5 export interface OrganizationKey {
6     LegacyPrivateKey?: string;
7     PrivateKey?: string;
8     Token?: string;
9     Signature?: 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 =
22     | {
23           Key: OrganizationKey;
24           privateKey?: undefined;
25           publicKey?: undefined;
26           error?: Error;
27           placeholder?: boolean;
28       }
29     | {
30           Key: OrganizationKey;
31           privateKey: PrivateKeyReference;
32           publicKey: PublicKeyReference;
33           error?: undefined;
34           placeholder?: boolean;
35       };