Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / drive / share.ts
blob7a4ff3d2ec243589f388b11cee84452a1d5e5b47
1 import type { ShareMembershipPayload } from './member';
3 export interface CreateDriveShare {
4     AddressID: string;
5     RootLinkID: string;
6     Name: string;
7     ShareKey: string;
8     SharePassphrase: string;
9     SharePassphraseSignature: string;
10     PassphraseKeyPacket: string;
11     NameKeyPacket: string;
13 export interface CreateDrivePhotosShare {
14     Share: {
15         Name: string;
16         AddressID: string;
17         AddressKeyID: string;
18         Key: string;
19         Passphrase: string;
20         PassphraseSignature: string;
21     };
22     Link: {
23         NodeKey: string;
24         NodePassphrase: string;
25         NodePassphraseSignature: string;
26         NodeHashKey: string;
27         Name: string;
28     };
31 export interface UserShareResult {
32     Shares: ShareMetaShort[];
35 export interface ShareMetaShort {
36     AddressID: string;
37     ShareID: string;
38     Type: number;
39     LinkID: string;
40     Locked: boolean;
41     VolumeID: string;
42     Creator: string;
43     Flags: number;
44     PossibleKeyPackets?: { KeyPacket: string }[];
45     VolumeSoftDeleted: boolean;
46     State: number;
47     CreateTime: number;
50 export interface ShareMeta extends ShareMetaShort {
51     Key: string;
52     Passphrase: string;
53     PassphraseSignature: string;
54     AddressID: string;
55     RootLinkRecoveryPassphrase?: string;
56     Memberships: ShareMembershipPayload[];
59 export enum ShareFlags {
60     MainShare = 1,