Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

1.0 KB
Raw Blame
export interface WrappedRootContactKey {
    encryptedKey: string;
    header: string;
}

export interface ContactDisplayRecord {
    contactId: string;
    contactUserId: number;
    resolvedEmail: string | undefined;
    displayName: string | undefined;
    profilePictureAttachmentID: string | undefined;
    updatedAt: number;
}

export interface ContactLookup {
    userID?: number;
    email?: string;
}

export interface ContactsDisplaySnapshot {
    isHydrated: boolean;
    recordsByUserID: ReadonlyMap<number, ContactDisplayRecord>;
    recordsByEmail: ReadonlyMap<string, ContactDisplayRecord>;
    avatarURLsByContactID: ReadonlyMap<string, string>;
}

export interface ResolvedContactDisplay {
    contactId: string | undefined;
    profilePictureAttachmentID: string | undefined;
    primaryLabel: string;
    actualEmail: string | undefined;
    initial: string;
    source: "contact" | "fallback";
}

export interface ResolvedContactAvatar extends ResolvedContactDisplay {
    avatarURL: string | undefined;
}