Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / drive / volume.ts
blobd6a33e7903896d0de9219757d36d80faa275a813
1 import type { ShareURL } from './sharing';
3 export interface CreateDriveVolume {
4     AddressID: string;
5     AddressKeyID: string;
6     VolumeName: string;
7     ShareName: string;
8     FolderName: string;
9     SharePassphrase: string;
10     ShareKey: string;
11     FolderPassphrase: string;
12     FolderKey: string;
13     FolderHashKey: string;
16 export interface DriveVolume {
17     ID: string;
18     Share: {
19         ID: string;
20         LinkID: string;
21     };
24 export interface CreatedDriveVolumeResult {
25     Volume: DriveVolume;
28 export interface RestoreDriveVolume {
29     Name: string;
30     SignatureAddress: string;
31     Hash: string;
32     NodePassphrase: string;
33     NodePassphraseSignature: string;
34     TargetVolumeID: string;
35     Devices?: {
36         LockedShareID: string;
37         ShareKeyPacket: string;
38         PassphraseSignature: string;
39     }[];
40     PhotoShares?: {
41         LockedShareID: string;
42         ShareKeyPacket: string;
43         PassphraseSignature: string;
44     }[];
45     AddressKeyID: string;
48 export interface ListDriveVolumeTrashPayload {
49     Trash: {
50         LinkIDs: string[];
51         ShareID: string;
52         ParentIDs: string[];
53     }[];
56 export interface ListDriveVolumeSharedLinksPayload {
57     ShareURLContexts: {
58         ContextShareID: string;
59         ShareURLs: ShareURL[];
60         LinkIDs: string[];
61     }[];