1 import type { Nullable } from '../utils';
2 import type { Calendar } from './Calendar';
4 export enum ACCESS_LEVEL {
9 export interface CalendarUrl {
10 CalendarUrlID: string;
12 PassphraseID?: string;
13 AccessLevel: ACCESS_LEVEL;
14 EncryptedPurpose: Nullable<string>;
15 EncryptedCacheKey: string;
16 EncryptedPassphrase: Nullable<string>;
20 export interface CalendarUrlResponse {
21 CalendarUrl: CalendarUrl;
25 export interface CalendarUrlsResponse {
26 CalendarUrls: CalendarUrl[];
30 export interface CalendarMap {
31 [key: string]: Calendar;
34 export interface CalendarLink extends Omit<CalendarUrl, 'PassphraseID'> {
35 purpose: Nullable<string>;
39 export interface CopyLinkParams {
42 accessLevel: ACCESS_LEVEL;
43 encryptedPassphrase: Nullable<string>;
44 encryptedCacheKey: string;