Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / calendar / Decrypt.ts
blob493b96502606b0ac94d8fad550abf96f1e7a157b
1 import type { SessionKey } from '@proton/crypto';
3 import type { EVENT_VERIFICATION_STATUS } from '../../calendar/constants';
4 import type { Address } from '../Address';
5 import type { VcalAttendeeProperty, VcalVeventComponent } from './VcalModel';
7 export interface SelfAddressData {
8     isOrganizer: boolean;
9     isAttendee: boolean;
10     selfAttendee?: VcalAttendeeProperty;
11     selfAddress?: Address;
12     selfAttendeeIndex?: number;
15 export interface CalendarEventEncryptionData {
16     encryptingAddressID?: string;
17     sharedSessionKey?: SessionKey;
18     calendarSessionKey?: SessionKey;
21 export type DecryptedVeventResult = {
22     veventComponent: VcalVeventComponent;
23     hasDefaultNotifications: boolean;
24     verificationStatus: EVENT_VERIFICATION_STATUS;
25     selfAddressData: SelfAddressData;
26     encryptionData: CalendarEventEncryptionData;