1 import type { PublicKeyReference } from '@proton/crypto';
3 import type { CONTACT_CARD_TYPE } from '../../constants';
5 export interface ContactEmail {
17 export interface ContactCard {
18 Type: CONTACT_CARD_TYPE;
20 Signature: string | null;
23 export interface ContactMetadata {
30 ContactEmails: ContactEmail[];
34 export interface Contact extends ContactMetadata {
38 export interface ContactFormatted extends Contact {
42 export interface ContactWithBePinnedPublicKey {
47 bePinnedPublicKey: PublicKeyReference;
50 export interface ContactGroup {
62 export type ContactValue = string | (string | string[])[];
64 export type ContactEmailModel = Pick<ContactEmail, 'Email' | 'ContactID' | 'LabelIDs' | 'Name'> & {
66 changes: { [groupID: string]: boolean };
69 export interface ContactMergeModel {
70 orderedContacts: ContactFormatted[][];
72 [ID: string]: boolean;
75 [ID: string]: boolean;