@secrecy/lib 1.0.0-dev.5 → 1.0.0-dev.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +1 -1
  2. package/{lib → dist}/BaseClient.d.ts +62 -73
  3. package/dist/BaseClient.js +1124 -0
  4. package/{lib → dist}/PopupTools.d.ts +1 -1
  5. package/dist/PopupTools.js +212 -0
  6. package/{lib → dist}/ZeusThunder.d.ts +0 -0
  7. package/dist/ZeusThunder.js +79 -0
  8. package/dist/cache.d.ts +6 -0
  9. package/dist/cache.js +4 -0
  10. package/dist/client/admin/index.d.ts +11 -0
  11. package/dist/client/admin/index.js +110 -0
  12. package/{lib → dist}/client/convert/file.d.ts +3 -3
  13. package/dist/client/convert/file.js +34 -0
  14. package/{lib → dist}/client/convert/mail.d.ts +0 -0
  15. package/dist/client/convert/mail.js +46 -0
  16. package/dist/client/convert/node.d.ts +9 -0
  17. package/dist/client/convert/node.js +102 -0
  18. package/{lib → dist}/client/helpers.d.ts +1 -1
  19. package/dist/client/helpers.js +114 -0
  20. package/dist/client/index.d.ts +163 -0
  21. package/dist/client/index.js +3209 -0
  22. package/{lib → dist}/client/storage.d.ts +0 -0
  23. package/dist/client/storage.js +12 -0
  24. package/dist/client/types/File.d.ts +14 -0
  25. package/dist/client/types/File.js +3 -0
  26. package/{lib → dist}/client/types/Inputs.d.ts +2 -7
  27. package/dist/client/types/Inputs.js +3 -0
  28. package/dist/client/types/Node.d.ts +56 -0
  29. package/dist/client/types/Node.js +3 -0
  30. package/dist/client/types/UserAppNotifications.d.ts +6 -0
  31. package/dist/client/types/UserAppNotifications.js +3 -0
  32. package/{lib → dist}/client/types/UserAppSettings.d.ts +0 -1
  33. package/dist/client/types/UserAppSettings.js +3 -0
  34. package/{lib → dist}/client/types/index.d.ts +8 -13
  35. package/dist/client/types/index.js +8 -0
  36. package/dist/client/types/selectors.d.ts +400 -0
  37. package/dist/client/types/selectors.js +130 -0
  38. package/{lib → dist}/crypto/file.d.ts +0 -0
  39. package/dist/crypto/file.js +210 -0
  40. package/{lib → dist}/crypto/index.d.ts +0 -0
  41. package/dist/crypto/index.js +47 -0
  42. package/dist/error.d.ts +30 -0
  43. package/dist/error.js +3 -0
  44. package/dist/index.d.ts +12 -0
  45. package/dist/index.js +10 -0
  46. package/{lib → dist}/minify/index.d.ts +0 -0
  47. package/dist/minify/index.js +28 -0
  48. package/{lib → dist}/minify/lz4.d.ts +0 -0
  49. package/dist/minify/lz4.js +627 -0
  50. package/{lib → dist}/sodium.d.ts +0 -0
  51. package/dist/sodium.js +6 -0
  52. package/{lib → dist}/utils/store-buddy.d.ts +0 -0
  53. package/dist/utils/store-buddy.js +65 -0
  54. package/{lib → dist}/utils/time.d.ts +0 -0
  55. package/dist/utils/time.js +14 -0
  56. package/{lib → dist/utils}/utils.d.ts +0 -0
  57. package/dist/utils/utils.js +57 -0
  58. package/{lib → dist}/worker/__mock__/sodium.worker.d.ts +0 -0
  59. package/dist/worker/__mock__/sodium.worker.js +49 -0
  60. package/{lib → dist}/worker/md5.d.ts +0 -0
  61. package/dist/worker/md5.js +25 -0
  62. package/dist/worker/sodium.d.ts +3 -0
  63. package/dist/worker/sodium.js +120 -0
  64. package/{lib → dist}/worker/workerCodes.d.ts +0 -0
  65. package/dist/worker/workerCodes.js +3 -0
  66. package/{lib → dist}/zeus/const.d.ts +5 -0
  67. package/dist/zeus/const.js +1234 -0
  68. package/dist/zeus/index.d.ts +5893 -0
  69. package/dist/zeus/index.js +681 -0
  70. package/package.json +58 -51
  71. package/lib/BaseClient.js +0 -1332
  72. package/lib/PopupTools.js +0 -213
  73. package/lib/ZeusThunder.js +0 -112
  74. package/lib/cache.d.ts +0 -7
  75. package/lib/cache.js +0 -5
  76. package/lib/client/convert/file.js +0 -39
  77. package/lib/client/convert/folder.d.ts +0 -8
  78. package/lib/client/convert/folder.js +0 -264
  79. package/lib/client/convert/mail.js +0 -46
  80. package/lib/client/convert/vFile.d.ts +0 -5
  81. package/lib/client/convert/vFile.js +0 -164
  82. package/lib/client/helpers.js +0 -116
  83. package/lib/client/index.d.ts +0 -167
  84. package/lib/client/index.js +0 -3699
  85. package/lib/client/storage.js +0 -12
  86. package/lib/client/types/File.d.ts +0 -21
  87. package/lib/client/types/File.js +0 -2
  88. package/lib/client/types/FilesOnUsersOnApplications.d.ts +0 -9
  89. package/lib/client/types/FilesOnUsersOnApplications.js +0 -2
  90. package/lib/client/types/Folder.d.ts +0 -68
  91. package/lib/client/types/Folder.js +0 -7
  92. package/lib/client/types/Inputs.js +0 -2
  93. package/lib/client/types/UserAppSettings.js +0 -2
  94. package/lib/client/types/VFile.d.ts +0 -62
  95. package/lib/client/types/VFile.js +0 -4
  96. package/lib/client/types/index.js +0 -8
  97. package/lib/client/types/queries.d.ts +0 -535
  98. package/lib/client/types/queries.js +0 -192
  99. package/lib/crypto/file.js +0 -291
  100. package/lib/crypto/index.js +0 -37
  101. package/lib/index.d.ts +0 -11
  102. package/lib/index.js +0 -40
  103. package/lib/minify/index.js +0 -28
  104. package/lib/minify/lz4.js +0 -633
  105. package/lib/sodium.js +0 -28
  106. package/lib/utils/store-buddy.js +0 -69
  107. package/lib/utils/time.js +0 -22
  108. package/lib/utils.js +0 -188
  109. package/lib/worker/__mock__/sodium.worker.js +0 -57
  110. package/lib/worker/md5.js +0 -43
  111. package/lib/worker/sodium.d.ts +0 -3
  112. package/lib/worker/sodium.js +0 -141
  113. package/lib/worker/workerCodes.js +0 -3
  114. package/lib/zeus/const.js +0 -1609
  115. package/lib/zeus/index.d.ts +0 -26113
  116. package/lib/zeus/index.js +0 -552
File without changes
@@ -0,0 +1,12 @@
1
+ import { storeBuddy } from "../utils/store-buddy.js";
2
+ export function getStorage(session) {
3
+ const userAppSession = storeBuddy("secrecy.user_app_session", session).init(null);
4
+ const userAppKeys = storeBuddy("secrecy.user_app_keys", session).init(null);
5
+ const jwt = storeBuddy("secrecy.jwt", session).init(null);
6
+ return {
7
+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TtcbiAgY29uc3Qgand0ID0gc3RvcmVCdWRkeTxzdHJpbmcgfCBudWxsPihgc2VjcmVjeS5qd3RgLCBzZXNzaW9uKS5pbml0KG51bGwpO1xuICByZXR1cm4geyB1c2VyQXBwS2V5cywgdXNlckFwcFNlc3Npb24sIGp3dCB9O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFFQSxTQUFTQSxVQUFULFFBQTJCLHlCQUEzQjtBQUVBLE9BQU8sU0FBU0MsVUFBVCxDQUFvQkMsT0FBcEIsRUFJTDtFQUNBLE1BQU1DLGNBQWMsR0FBR0gsVUFBVSw2QkFFL0JFLE9BRitCLENBQVYsQ0FHckJFLElBSHFCLENBR2hCLElBSGdCLENBQXZCO0VBSUEsTUFBTUMsV0FBVyxHQUFHTCxVQUFVLDBCQUU1QkUsT0FGNEIsQ0FBVixDQUdsQkUsSUFIa0IsQ0FHYixJQUhhLENBQXBCO0VBSUEsTUFBTUUsR0FBRyxHQUFHTixVQUFVLGdCQUErQkUsT0FBL0IsQ0FBVixDQUFrREUsSUFBbEQsQ0FBdUQsSUFBdkQsQ0FBWjtFQUNBLE9BQU87SUFBRUMsV0FBRjtJQUFlRixjQUFmO0lBQStCRztFQUEvQixDQUFQO0FBQ0QifQ==
@@ -0,0 +1,14 @@
1
+ import type { GraphQLTypes, InputType } from "../../zeus/index.js";
2
+ import type { fileSelector } from "./selectors.js";
3
+ export declare type FileMetadata = {
4
+ id: string;
5
+ size: bigint;
6
+ sizeBefore: bigint;
7
+ md5: string;
8
+ md5Encrypted: string;
9
+ createdAt: Date;
10
+ };
11
+ export declare type InternalFile = FileMetadata & {
12
+ key: string;
13
+ };
14
+ export declare type GQLFile = InputType<GraphQLTypes["File"], typeof fileSelector>;
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9GaWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgR3JhcGhRTFR5cGVzLCBJbnB1dFR5cGUgfSBmcm9tIFwiLi4vLi4vemV1cy9pbmRleC5qc1wiO1xuaW1wb3J0IHR5cGUgeyBmaWxlU2VsZWN0b3IgfSBmcm9tIFwiLi9zZWxlY3RvcnMuanNcIjtcblxuZXhwb3J0IHR5cGUgRmlsZU1ldGFkYXRhID0ge1xuICBpZDogc3RyaW5nO1xuICBzaXplOiBiaWdpbnQ7XG4gIHNpemVCZWZvcmU6IGJpZ2ludDtcbiAgbWQ1OiBzdHJpbmc7XG4gIG1kNUVuY3J5cHRlZDogc3RyaW5nO1xuICBjcmVhdGVkQXQ6IERhdGU7XG59O1xuXG5leHBvcnQgdHlwZSBJbnRlcm5hbEZpbGUgPSBGaWxlTWV0YWRhdGEgJiB7XG4gIGtleTogc3RyaW5nO1xufTtcblxuZXhwb3J0IHR5cGUgR1FMRmlsZSA9IElucHV0VHlwZTxHcmFwaFFMVHlwZXNbXCJGaWxlXCJdLCB0eXBlb2YgZmlsZVNlbGVjdG9yPjtcbiJdLCJtYXBwaW5ncyI6IiJ9
@@ -1,7 +1,3 @@
1
- export declare type NameKeyInputFolders = {
2
- id: string;
3
- nameKey: string;
4
- };
5
1
  export declare type ShareFileKeyInput = {
6
2
  id: string;
7
3
  key: string;
@@ -11,9 +7,8 @@ export declare type NameKeyInput = {
11
7
  nameKey: string;
12
8
  files: ShareFileKeyInput[];
13
9
  };
14
- export declare type ShareFoldersInput = {
15
- folders: NameKeyInputFolders[];
16
- vFiles: NameKeyInput[];
10
+ export declare type ShareNodesInput = {
11
+ nodes: NameKeyInput[];
17
12
  };
18
13
  export declare type ShareFileInHistoryInput = {
19
14
  fileId: string;
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9JbnB1dHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgU2hhcmVGaWxlS2V5SW5wdXQgPSB7XG4gIGlkOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xufTtcblxuZXhwb3J0IHR5cGUgTmFtZUtleUlucHV0ID0ge1xuICBpZDogc3RyaW5nO1xuICBuYW1lS2V5OiBzdHJpbmc7XG4gIGZpbGVzOiBTaGFyZUZpbGVLZXlJbnB1dFtdO1xufTtcblxuZXhwb3J0IHR5cGUgU2hhcmVOb2Rlc0lucHV0ID0ge1xuICBub2RlczogTmFtZUtleUlucHV0W107XG59O1xuXG5leHBvcnQgdHlwZSBTaGFyZUZpbGVJbkhpc3RvcnlJbnB1dCA9IHtcbiAgZmlsZUlkOiBzdHJpbmc7XG4gIHVzZXJzOiBTaGFyZUZpbGVLZXlJbnB1dFtdO1xufTtcbiJdLCJtYXBwaW5ncyI6IiJ9
@@ -0,0 +1,56 @@
1
+ import type { NodeType, Rights } from "../../zeus/index.js";
2
+ import type { FileMetadata, InternalFile, PublicUser } from "./index.js";
3
+ import type { nodeFullSelector, nodeSelector } from "./selectors.js";
4
+ import type { GraphQLTypes, InputType } from "../../zeus/index.js";
5
+ export declare type NodeAccess<T extends Record<string, unknown> = Record<string, unknown>> = T & {
6
+ rights: Rights;
7
+ isRoot: boolean;
8
+ sharedBy: {
9
+ keyPair?: {
10
+ pub: string;
11
+ };
12
+ };
13
+ userApp: {
14
+ user: PublicUser;
15
+ };
16
+ };
17
+ export declare type NodeBreadcrumbItem = {
18
+ id: string;
19
+ name: string;
20
+ pubKey: string;
21
+ };
22
+ export declare type NodeSize = {
23
+ size: bigint;
24
+ sizeBefore: bigint;
25
+ };
26
+ declare type NameKey = {
27
+ nameKey?: string;
28
+ };
29
+ export declare type InternalNodeBreadcrumbItem = NodeBreadcrumbItem & NameKey;
30
+ export declare type Node<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>> = {
31
+ id: string;
32
+ isFavorite: boolean;
33
+ type: NodeType;
34
+ createdAt: Date;
35
+ deletedAt: Date | null;
36
+ updatedAt: Date;
37
+ sizes: NodeSize;
38
+ name: string;
39
+ breadcrumb: T[];
40
+ createdBy: PublicUser;
41
+ access?: NodeAccess<U>;
42
+ users: [PublicUser, Rights][];
43
+ parentId: string | null;
44
+ currentFileId: string | null;
45
+ };
46
+ export declare type NodeFull<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends FileMetadata = FileMetadata> = Node<T, U> & {
47
+ parent: Node<T, U> | null;
48
+ children: Node<T, U>[];
49
+ current?: V;
50
+ history: V[];
51
+ };
52
+ export declare type InternalNode = Node<InternalNodeBreadcrumbItem, NameKey>;
53
+ export declare type InternalNodeFull = NodeFull<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
54
+ export declare type GQLNode = InputType<GraphQLTypes["Node"], typeof nodeSelector>;
55
+ export declare type GQLNodeFull = InputType<GraphQLTypes["Node"], typeof nodeFullSelector>;
56
+ export {};
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Ob2RlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTm9kZVR5cGUsIFJpZ2h0cyB9IGZyb20gXCIuLi8uLi96ZXVzL2luZGV4LmpzXCI7XG5pbXBvcnQgdHlwZSB7IEZpbGVNZXRhZGF0YSwgSW50ZXJuYWxGaWxlLCBQdWJsaWNVc2VyIH0gZnJvbSBcIi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgbm9kZUZ1bGxTZWxlY3Rvciwgbm9kZVNlbGVjdG9yI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TxHcmFwaFFMVHlwZXNbXCJOb2RlXCJdLCB0eXBlb2Ygbm9kZVNlbGVjdG9yPjtcbmV4cG9ydCB0eXBlIEdRTE5vZGVGdWxsID0gSW5wdXRUeXBlPFxuICBHcmFwaFFMVHlwZXNbXCJOb2RlXCJdLFxuICB0eXBlb2Ygbm9kZUZ1bGxTZWxlY3RvclxuPjtcbiJdLCJtYXBwaW5ncyI6IiJ9
@@ -0,0 +1,6 @@
1
+ export declare type UserAppNotifications = {
2
+ enableAll: boolean;
3
+ mail: boolean;
4
+ cloud: boolean;
5
+ disableAllUntil?: Date;
6
+ };
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Vc2VyQXBwTm90aWZpY2F0aW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBVc2VyQXBwTm90aWZpY2F0aW9ucyA9IHtcbiAgZW5hYmxlQWxsOiBib29sZWFuO1xuICBtYWlsOiBib29sZWFuO1xuICBjbG91ZDogYm9vbGVhbjtcbiAgZGlzYWJsZUFsbFVudGlsPzogRGF0ZTtcbn07XG4iXSwibWFwcGluZ3MiOiIifQ==
@@ -3,5 +3,4 @@ export declare type UserAppSettings = {
3
3
  cloudFolderDaysForDelete: number;
4
4
  historyFileDaysForDelete?: number;
5
5
  historyMaxFileCount: number;
6
- autoDisconnectDelay?: number;
7
6
  };
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Vc2VyQXBwU2V0dGluZ3MudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgVXNlckFwcFNldHRpbmdzID0ge1xuICBjbG91ZEZpbGVEYXlzRm9yRGVsZXRlOiBudW1iZXI7XG4gIGNsb3VkRm9sZGVyRGF5c0ZvckRlbGV0ZTogbnVtYmVyO1xuICBoaXN0b3J5RmlsZURheXNGb3JEZWxldGU/OiBudW1iZXI7XG4gIGhpc3RvcnlNYXhGaWxlQ291bnQ6IG51bWJlcjtcbn07XG4iXSwibWFwcGluZ3MiOiIifQ==
@@ -1,9 +1,10 @@
1
1
  import type { KeyPair } from "../../index.js";
2
+ import type { InputType, GraphQLTypes } from "../../zeus/index.js";
3
+ import type { userSelector } from "./selectors.js";
2
4
  export * from "./File.js";
3
- export * from "./FilesOnUsersOnApplications.js";
4
- export * from "./Folder.js";
5
- export * from "./VFile.js";
5
+ export * from "./Node.js";
6
6
  export * from "./UserAppSettings.js";
7
+ export * from "./UserAppNotifications.js";
7
8
  export * from "./Inputs.js";
8
9
  export declare type SecrecyUserApp = {
9
10
  keys: KeyPair;
@@ -69,9 +70,9 @@ export declare type InternalMail = {
69
70
  id: string;
70
71
  body: string;
71
72
  subject: string;
72
- openedAt?: string;
73
- createdAt: string;
74
- deletedAt?: string;
73
+ openedAt?: Date;
74
+ createdAt: Date;
75
+ deletedAt?: Date;
75
76
  recipient: PublicUser;
76
77
  recipients: PublicUser[];
77
78
  sender: PublicUser;
@@ -103,13 +104,7 @@ export declare type BaseMail = {
103
104
  key: string;
104
105
  }[];
105
106
  };
106
- export declare type PublicUser = {
107
- id: string;
108
- firstname: string;
109
- lastname: string;
110
- email: string;
111
- publicKey: string;
112
- };
107
+ export declare type PublicUser = InputType<GraphQLTypes["User"], typeof userSelector>;
113
108
  export interface ReceivedMail extends BaseMail {
114
109
  type: "received";
115
110
  sender: PublicUser;
@@ -0,0 +1,8 @@
1
+ export * from "./File.js";
2
+ export * from "./Node.js";
3
+ export * from "./UserAppSettings.js";
4
+ export * from "./UserAppNotifications.js";
5
+ export * from "./Inputs.js";
6
+ export {};
7
+ export {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VmaW5lZDtcbiAgaXA6IHN0cmluZyB8IHVuZGVmaW5lZDtcbiAgY2l0eTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuICBjb3VudHJ5OiBzdHJpbmcgfCB1bmRlZmluZWQ7XG59O1xuXG5leHBvcnQgdHlwZSBBcHBTZXNzaW9uID0gU2Vzc2lvbiAmIHtcbiAgYXBwOiBzdHJpbmc7XG59O1xuXG5leHBvcnQgdHlwZSBVc2VyU2Vzc2lvbiA9IFNlc3Npb24gJiB7XG4gIGFwcFNlc3Npb25zOiBBcHBTZXNzaW9uW107XG59O1xuXG5leHBvcnQgdHlwZSBNYWlsUmVjaXBpZW50SW5wdXQgPSB7XG4gIGJvZHk6IHN0cmluZztcbiAgc3ViamVjdDogc3RyaW5nO1xuICByZWNpcGllbnRJZDogc3RyaW5nO1xuICBmaWxlczogTWFpbEZpbGVJbnB1dFtdO1xufTtcbiJdLCJtYXBwaW5ncyI6IkFBR0EsY0FBYyxXQUFkO0FBQ0EsY0FBYyxXQUFkO0FBQ0EsY0FBYyxzQkFBZDtBQUNBLGNBQWMsMkJBQWQ7QUFDQSxjQUFjLGFBQWQifQ==
@@ -0,0 +1,400 @@
1
+ export declare const fileSelector: {
2
+ id: true;
3
+ size: true;
4
+ sizeBefore: true;
5
+ createdAt: true;
6
+ md5: true;
7
+ md5Encrypted: true;
8
+ access: {
9
+ key: true;
10
+ sharedBy: {
11
+ keyPair: {
12
+ pub: true;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ export declare const userSelector: {
18
+ id: true;
19
+ firstname: true;
20
+ lastname: true;
21
+ email: true;
22
+ publicKey: true;
23
+ };
24
+ export declare const nodeSelector: {
25
+ id: true;
26
+ isFavorite: true;
27
+ type: true;
28
+ createdAt: true;
29
+ deletedAt: true;
30
+ createdBy: {
31
+ user: {
32
+ id: true;
33
+ firstname: true;
34
+ lastname: true;
35
+ email: true;
36
+ publicKey: true;
37
+ };
38
+ };
39
+ sizes: {
40
+ size: true;
41
+ sizeBefore: true;
42
+ };
43
+ updatedAt: true;
44
+ name: true;
45
+ access: {
46
+ rights: true;
47
+ isRoot: true;
48
+ nameKey: true;
49
+ sharedBy: {
50
+ keyPair: {
51
+ pub: true;
52
+ };
53
+ };
54
+ userApp: {
55
+ user: {
56
+ id: true;
57
+ firstname: true;
58
+ lastname: true;
59
+ email: true;
60
+ publicKey: true;
61
+ };
62
+ };
63
+ };
64
+ accesses: {
65
+ rights: true;
66
+ isRoot: true;
67
+ nameKey: true;
68
+ sharedBy: {
69
+ keyPair: {
70
+ pub: true;
71
+ };
72
+ };
73
+ userApp: {
74
+ user: {
75
+ id: true;
76
+ firstname: true;
77
+ lastname: true;
78
+ email: true;
79
+ publicKey: true;
80
+ };
81
+ };
82
+ };
83
+ breadcrumb: {
84
+ id: true;
85
+ name: true;
86
+ nameKey: true;
87
+ pubKey: true;
88
+ };
89
+ parentId: true;
90
+ currentFileId: true;
91
+ };
92
+ export declare const nodeFullSelector: {
93
+ parent: {
94
+ id: true;
95
+ isFavorite: true;
96
+ type: true;
97
+ createdAt: true;
98
+ deletedAt: true;
99
+ createdBy: {
100
+ user: {
101
+ id: true;
102
+ firstname: true;
103
+ lastname: true;
104
+ email: true;
105
+ publicKey: true;
106
+ };
107
+ };
108
+ sizes: {
109
+ size: true;
110
+ sizeBefore: true;
111
+ };
112
+ updatedAt: true;
113
+ name: true;
114
+ access: {
115
+ rights: true;
116
+ isRoot: true;
117
+ nameKey: true;
118
+ sharedBy: {
119
+ keyPair: {
120
+ pub: true;
121
+ };
122
+ };
123
+ userApp: {
124
+ user: {
125
+ id: true;
126
+ firstname: true;
127
+ lastname: true;
128
+ email: true;
129
+ publicKey: true;
130
+ };
131
+ };
132
+ };
133
+ accesses: {
134
+ rights: true;
135
+ isRoot: true;
136
+ nameKey: true;
137
+ sharedBy: {
138
+ keyPair: {
139
+ pub: true;
140
+ };
141
+ };
142
+ userApp: {
143
+ user: {
144
+ id: true;
145
+ firstname: true;
146
+ lastname: true;
147
+ email: true;
148
+ publicKey: true;
149
+ };
150
+ };
151
+ };
152
+ breadcrumb: {
153
+ id: true;
154
+ name: true;
155
+ nameKey: true;
156
+ pubKey: true;
157
+ };
158
+ parentId: true;
159
+ currentFileId: true;
160
+ };
161
+ children: {
162
+ id: true;
163
+ isFavorite: true;
164
+ type: true;
165
+ createdAt: true;
166
+ deletedAt: true;
167
+ createdBy: {
168
+ user: {
169
+ id: true;
170
+ firstname: true;
171
+ lastname: true;
172
+ email: true;
173
+ publicKey: true;
174
+ };
175
+ };
176
+ sizes: {
177
+ size: true;
178
+ sizeBefore: true;
179
+ };
180
+ updatedAt: true;
181
+ name: true;
182
+ access: {
183
+ rights: true;
184
+ isRoot: true;
185
+ nameKey: true;
186
+ sharedBy: {
187
+ keyPair: {
188
+ pub: true;
189
+ };
190
+ };
191
+ userApp: {
192
+ user: {
193
+ id: true;
194
+ firstname: true;
195
+ lastname: true;
196
+ email: true;
197
+ publicKey: true;
198
+ };
199
+ };
200
+ };
201
+ accesses: {
202
+ rights: true;
203
+ isRoot: true;
204
+ nameKey: true;
205
+ sharedBy: {
206
+ keyPair: {
207
+ pub: true;
208
+ };
209
+ };
210
+ userApp: {
211
+ user: {
212
+ id: true;
213
+ firstname: true;
214
+ lastname: true;
215
+ email: true;
216
+ publicKey: true;
217
+ };
218
+ };
219
+ };
220
+ breadcrumb: {
221
+ id: true;
222
+ name: true;
223
+ nameKey: true;
224
+ pubKey: true;
225
+ };
226
+ parentId: true;
227
+ currentFileId: true;
228
+ };
229
+ history: {
230
+ id: true;
231
+ size: true;
232
+ sizeBefore: true;
233
+ createdAt: true;
234
+ md5: true;
235
+ md5Encrypted: true;
236
+ access: {
237
+ key: true;
238
+ sharedBy: {
239
+ keyPair: {
240
+ pub: true;
241
+ };
242
+ };
243
+ };
244
+ };
245
+ current: {
246
+ id: true;
247
+ size: true;
248
+ sizeBefore: true;
249
+ createdAt: true;
250
+ md5: true;
251
+ md5Encrypted: true;
252
+ access: {
253
+ key: true;
254
+ sharedBy: {
255
+ keyPair: {
256
+ pub: true;
257
+ };
258
+ };
259
+ };
260
+ };
261
+ id: true;
262
+ isFavorite: true;
263
+ type: true;
264
+ createdAt: true;
265
+ deletedAt: true;
266
+ createdBy: {
267
+ user: {
268
+ id: true;
269
+ firstname: true;
270
+ lastname: true;
271
+ email: true;
272
+ publicKey: true;
273
+ };
274
+ };
275
+ sizes: {
276
+ size: true;
277
+ sizeBefore: true;
278
+ };
279
+ updatedAt: true;
280
+ name: true;
281
+ access: {
282
+ rights: true;
283
+ isRoot: true;
284
+ nameKey: true;
285
+ sharedBy: {
286
+ keyPair: {
287
+ pub: true;
288
+ };
289
+ };
290
+ userApp: {
291
+ user: {
292
+ id: true;
293
+ firstname: true;
294
+ lastname: true;
295
+ email: true;
296
+ publicKey: true;
297
+ };
298
+ };
299
+ };
300
+ accesses: {
301
+ rights: true;
302
+ isRoot: true;
303
+ nameKey: true;
304
+ sharedBy: {
305
+ keyPair: {
306
+ pub: true;
307
+ };
308
+ };
309
+ userApp: {
310
+ user: {
311
+ id: true;
312
+ firstname: true;
313
+ lastname: true;
314
+ email: true;
315
+ publicKey: true;
316
+ };
317
+ };
318
+ };
319
+ breadcrumb: {
320
+ id: true;
321
+ name: true;
322
+ nameKey: true;
323
+ pubKey: true;
324
+ };
325
+ parentId: true;
326
+ currentFileId: true;
327
+ };
328
+ export declare const mailSelector: {
329
+ id: true;
330
+ type: true;
331
+ body: true;
332
+ subject: true;
333
+ openedAt: true;
334
+ createdAt: true;
335
+ deletedAt: true;
336
+ recipients: {
337
+ id: true;
338
+ firstname: true;
339
+ lastname: true;
340
+ email: true;
341
+ publicKey: true;
342
+ };
343
+ recipient: {
344
+ id: true;
345
+ firstname: true;
346
+ lastname: true;
347
+ email: true;
348
+ publicKey: true;
349
+ };
350
+ sender: {
351
+ id: true;
352
+ firstname: true;
353
+ lastname: true;
354
+ email: true;
355
+ publicKey: true;
356
+ };
357
+ mailIntegrity: {
358
+ id: true;
359
+ hash: true;
360
+ hashKey: true;
361
+ replyTo: {
362
+ id: true;
363
+ };
364
+ temporaryRecipients: {
365
+ email: true;
366
+ };
367
+ recipients: {
368
+ id: true;
369
+ firstname: true;
370
+ lastname: true;
371
+ email: true;
372
+ publicKey: true;
373
+ };
374
+ };
375
+ mailIntegrityDraft: {
376
+ id: true;
377
+ hash: true;
378
+ hashKey: true;
379
+ replyTo: {
380
+ id: true;
381
+ };
382
+ temporaryRecipients: {
383
+ email: true;
384
+ };
385
+ recipients: {
386
+ id: true;
387
+ firstname: true;
388
+ lastname: true;
389
+ email: true;
390
+ publicKey: true;
391
+ };
392
+ };
393
+ files: {
394
+ fileKey: true;
395
+ filename: true;
396
+ file: {
397
+ id: true;
398
+ };
399
+ };
400
+ };