1 import type { DecryptedLink } from '../../store';
4 * A decrypted node in the Drive structure.
6 export type DecryptedNode = {
8 nodeId: DecryptedLink['linkId'];
10 * A node may not always have a parent.
12 * For example, when direct sharing a node, the invitee
13 * does not have access to the parent.
15 parentNodeId?: DecryptedLink['parentLinkId'];
16 name: DecryptedLink['name'];
17 hash: DecryptedLink['hash'];
18 createTime: DecryptedLink['createTime'];
19 mimeType: DecryptedLink['mimeType'];
21 signatureAddress?: DecryptedLink['signatureAddress'];
22 nameSignatureAddress?: DecryptedLink['nameSignatureAddress'];
25 * If present, this node's metadata could be corrupted / undecryptable in some way.
27 isCorruptedNode?: DecryptedLink['corruptedLink'];
28 trashed?: DecryptedLink['trashed'];
29 trashedByParent?: DecryptedLink['trashedByParent'];