@secrecy/lib 1.0.0-dev.7 → 1.0.0

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 (115) hide show
  1. package/README.md +1 -1
  2. package/{lib → dist}/BaseClient.d.ts +62 -69
  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 +101 -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 +164 -0
  21. package/dist/client/index.js +3206 -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 +49 -0
  29. package/dist/client/types/Node.js +3 -0
  30. package/{lib → dist}/client/types/UserAppNotifications.d.ts +1 -1
  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 +7 -13
  35. package/dist/client/types/index.js +8 -0
  36. package/dist/client/types/selectors.d.ts +476 -0
  37. package/dist/client/types/selectors.js +125 -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/{lib → dist}/index.d.ts +4 -3
  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/{lib → dist}/worker/sodium.d.ts +0 -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 +1230 -0
  68. package/dist/zeus/index.d.ts +4069 -0
  69. package/dist/zeus/index.js +657 -0
  70. package/package.json +64 -57
  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 -3746
  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/UserAppNotifications.js +0 -2
  94. package/lib/client/types/UserAppSettings.js +0 -2
  95. package/lib/client/types/VFile.d.ts +0 -62
  96. package/lib/client/types/VFile.js +0 -4
  97. package/lib/client/types/index.js +0 -9
  98. package/lib/client/types/queries.d.ts +0 -535
  99. package/lib/client/types/queries.js +0 -192
  100. package/lib/crypto/file.js +0 -291
  101. package/lib/crypto/index.js +0 -37
  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.js +0 -155
  112. package/lib/worker/workerCodes.js +0 -3
  113. package/lib/zeus/const.js +0 -1643
  114. package/lib/zeus/index.d.ts +0 -26220
  115. 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
+ userAppKeys,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Y29uc3Qgand0ID0gc3RvcmVCdWRkeTxzdHJpbmcgfCBudWxsPihgc2VjcmVjeS5qd3RgLCBzZXNzaW9uKS5pbml0KG51bGwpO1xuICByZXR1cm4geyB1c2VyQXBwS2V5cywgdXNlckFwcFNlc3Npb24sIGp3dCB9O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFFQSxTQUFTQSxVQUFULFFBQTJCLHlCQUEzQjtBQUVBLE9BQU8sU0FBU0MsVUFBVCxDQUFvQkMsT0FBcEIsRUFJTDtFQUNBLE1BQU1DLGNBQWMsR0FBR0gsVUFBVSw2QkFFL0JFLE9BRitCLENBQVYsQ0FHckJFLElBSHFCLENBR2hCLElBSGdCLENBQXZCO0VBSUEsTUFBTUMsV0FBVyxHQUFHTCxVQUFVLDBCQUU1QkUsT0FGNEIsQ0FBVixDQUdsQkUsSUFIa0IsQ0FHYixJQUhhLENBQXBCO0VBSUEsTUFBTUUsR0FBRyxHQUFHTixVQUFVLGdCQUErQkUsT0FBL0IsQ0FBVixDQUFrREUsSUFBbEQsQ0FBdUQsSUFBdkQsQ0FBWjtFQUNBLE9BQU87SUFBRUMsV0FBRjtJQUFlRixjQUFmO0lBQStCRztFQUEvQixDQUFQO0FBQ0QifQ==
@@ -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,49 @@
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
+ declare type NameKey = {
23
+ nameKey?: string;
24
+ };
25
+ export declare type InternalNodeBreadcrumbItem = NodeBreadcrumbItem & NameKey;
26
+ export declare type Node<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends FileMetadata = FileMetadata> = {
27
+ id: string;
28
+ isFavorite: boolean;
29
+ type: NodeType;
30
+ createdAt: Date;
31
+ deletedAt: Date | null;
32
+ updatedAt: Date;
33
+ name: string;
34
+ breadcrumb: T[];
35
+ createdBy: PublicUser;
36
+ access?: NodeAccess<U>;
37
+ current?: V;
38
+ history: V[];
39
+ users: [PublicUser, Rights][];
40
+ };
41
+ export declare type NodeFull<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>, V extends FileMetadata = FileMetadata> = Node<T, U, V> & {
42
+ parent: Node<T, U, V> | null;
43
+ children: Node<T, U, V>[];
44
+ };
45
+ export declare type InternalNode = Node<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
46
+ export declare type InternalNodeFull = NodeFull<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
47
+ export declare type GQLNode = InputType<GraphQLTypes["Node"], typeof nodeSelector>;
48
+ export declare type GQLNodeFull = InputType<GraphQLTypes["Node"], typeof nodeFullSelector>;
49
+ export {};
@@ -0,0 +1,3 @@
1
+ export {};
2
+ export {};
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Ob2RlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTm9kZVR5cGUsIFJpZ2h0cyB9IGZyb20gXCIuLi8uLi96ZXVzL2luZGV4LmpzXCI7XG5pbXBvcnQgdHlwZSB7IEZpbGVNZXRhZGF0YSwgSW50ZXJuYWxGaWxlLCBQdWJsaWNVc2VyIH0gZnJvbSBcIi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgbm9kZUZ1bGxTZWxlY3Rvciwgbm9kZVNlbGVjdG9yIH0gZnJvbSBcIi4vc2VsZWN0b3JzLmpzXCI7XG5pbXBvcnQgdHlwZSB7IEdyYXBoUUxUeXB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RnVsbFNlbGVjdG9yXG4+O1xuIl0sIm1hcHBpbmdzIjoiIn0=
@@ -2,5 +2,5 @@ export declare type UserAppNotifications = {
2
2
  enableAll: boolean;
3
3
  mail: boolean;
4
4
  cloud: boolean;
5
- disableAllUntil: Date | null;
5
+ disableAllUntil?: Date;
6
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,8 +1,8 @@
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
7
  export * from "./UserAppNotifications.js";
8
8
  export * from "./Inputs.js";
@@ -70,9 +70,9 @@ export declare type InternalMail = {
70
70
  id: string;
71
71
  body: string;
72
72
  subject: string;
73
- openedAt?: string;
74
- createdAt: string;
75
- deletedAt?: string;
73
+ openedAt?: Date;
74
+ createdAt: Date;
75
+ deletedAt?: Date;
76
76
  recipient: PublicUser;
77
77
  recipients: PublicUser[];
78
78
  sender: PublicUser;
@@ -104,13 +104,7 @@ export declare type BaseMail = {
104
104
  key: string;
105
105
  }[];
106
106
  };
107
- export declare type PublicUser = {
108
- id: string;
109
- firstname: string;
110
- lastname: string;
111
- email: string;
112
- publicKey: string;
113
- };
107
+ export declare type PublicUser = InputType<GraphQLTypes["User"], typeof userSelector>;
114
108
  export interface ReceivedMail extends BaseMail {
115
109
  type: "received";
116
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 {};
8
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEtleVBhaXIgfSBmcm9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YXBwOiBzdHJpbmc7XG59O1xuXG5leHBvcnQgdHlwZSBVc2VyU2Vzc2lvbiA9IFNlc3Npb24gJiB7XG4gIGFwcFNlc3Npb25zOiBBcHBTZXNzaW9uW107XG59O1xuXG5leHBvcnQgdHlwZSBNYWlsUmVjaXBpZW50SW5wdXQgPSB7XG4gIGJvZHk6IHN0cmluZztcbiAgc3ViamVjdDogc3RyaW5nO1xuICByZWNpcGllbnRJZDogc3RyaW5nO1xuICBmaWxlczogTWFpbEZpbGVJbnB1dFtdO1xufTtcbiJdLCJtYXBwaW5ncyI6IkFBR0EsY0FBYyxXQUFkO0FBQ0EsY0FBYyxXQUFkO0FBQ0EsY0FBYyxzQkFBZDtBQUNBLGNBQWMsMkJBQWQ7QUFDQSxjQUFjLGFBQWQifQ==
@@ -0,0 +1,476 @@
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
+ updatedAt: true;
40
+ name: true;
41
+ access: {
42
+ rights: true;
43
+ isRoot: true;
44
+ nameKey: true;
45
+ sharedBy: {
46
+ keyPair: {
47
+ pub: true;
48
+ };
49
+ };
50
+ userApp: {
51
+ user: {
52
+ id: true;
53
+ firstname: true;
54
+ lastname: true;
55
+ email: true;
56
+ publicKey: true;
57
+ };
58
+ };
59
+ };
60
+ accesses: {
61
+ rights: true;
62
+ isRoot: true;
63
+ nameKey: true;
64
+ sharedBy: {
65
+ keyPair: {
66
+ pub: true;
67
+ };
68
+ };
69
+ userApp: {
70
+ user: {
71
+ id: true;
72
+ firstname: true;
73
+ lastname: true;
74
+ email: true;
75
+ publicKey: true;
76
+ };
77
+ };
78
+ };
79
+ breadcrumb: {
80
+ id: true;
81
+ name: true;
82
+ nameKey: true;
83
+ pubKey: true;
84
+ };
85
+ history: {
86
+ id: true;
87
+ size: true;
88
+ sizeBefore: true;
89
+ createdAt: true;
90
+ md5: true;
91
+ md5Encrypted: true;
92
+ access: {
93
+ key: true;
94
+ sharedBy: {
95
+ keyPair: {
96
+ pub: true;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ current: {
102
+ id: true;
103
+ size: true;
104
+ sizeBefore: true;
105
+ createdAt: true;
106
+ md5: true;
107
+ md5Encrypted: true;
108
+ access: {
109
+ key: true;
110
+ sharedBy: {
111
+ keyPair: {
112
+ pub: true;
113
+ };
114
+ };
115
+ };
116
+ };
117
+ currentFileId: true;
118
+ };
119
+ export declare const nodeFullSelector: {
120
+ parent: {
121
+ id: true;
122
+ isFavorite: true;
123
+ type: true;
124
+ createdAt: true;
125
+ deletedAt: true;
126
+ createdBy: {
127
+ user: {
128
+ id: true;
129
+ firstname: true;
130
+ lastname: true;
131
+ email: true;
132
+ publicKey: true;
133
+ };
134
+ };
135
+ updatedAt: true;
136
+ name: true;
137
+ access: {
138
+ rights: true;
139
+ isRoot: true;
140
+ nameKey: true;
141
+ sharedBy: {
142
+ keyPair: {
143
+ pub: true;
144
+ };
145
+ };
146
+ userApp: {
147
+ user: {
148
+ id: true;
149
+ firstname: true;
150
+ lastname: true;
151
+ email: true;
152
+ publicKey: true;
153
+ };
154
+ };
155
+ };
156
+ accesses: {
157
+ rights: true;
158
+ isRoot: true;
159
+ nameKey: true;
160
+ sharedBy: {
161
+ keyPair: {
162
+ pub: true;
163
+ };
164
+ };
165
+ userApp: {
166
+ user: {
167
+ id: true;
168
+ firstname: true;
169
+ lastname: true;
170
+ email: true;
171
+ publicKey: true;
172
+ };
173
+ };
174
+ };
175
+ breadcrumb: {
176
+ id: true;
177
+ name: true;
178
+ nameKey: true;
179
+ pubKey: true;
180
+ };
181
+ history: {
182
+ id: true;
183
+ size: true;
184
+ sizeBefore: true;
185
+ createdAt: true;
186
+ md5: true;
187
+ md5Encrypted: true;
188
+ access: {
189
+ key: true;
190
+ sharedBy: {
191
+ keyPair: {
192
+ pub: true;
193
+ };
194
+ };
195
+ };
196
+ };
197
+ current: {
198
+ id: true;
199
+ size: true;
200
+ sizeBefore: true;
201
+ createdAt: true;
202
+ md5: true;
203
+ md5Encrypted: true;
204
+ access: {
205
+ key: true;
206
+ sharedBy: {
207
+ keyPair: {
208
+ pub: true;
209
+ };
210
+ };
211
+ };
212
+ };
213
+ currentFileId: true;
214
+ };
215
+ children: {
216
+ id: true;
217
+ isFavorite: true;
218
+ type: true;
219
+ createdAt: true;
220
+ deletedAt: true;
221
+ createdBy: {
222
+ user: {
223
+ id: true;
224
+ firstname: true;
225
+ lastname: true;
226
+ email: true;
227
+ publicKey: true;
228
+ };
229
+ };
230
+ updatedAt: true;
231
+ name: true;
232
+ access: {
233
+ rights: true;
234
+ isRoot: true;
235
+ nameKey: true;
236
+ sharedBy: {
237
+ keyPair: {
238
+ pub: true;
239
+ };
240
+ };
241
+ userApp: {
242
+ user: {
243
+ id: true;
244
+ firstname: true;
245
+ lastname: true;
246
+ email: true;
247
+ publicKey: true;
248
+ };
249
+ };
250
+ };
251
+ accesses: {
252
+ rights: true;
253
+ isRoot: true;
254
+ nameKey: true;
255
+ sharedBy: {
256
+ keyPair: {
257
+ pub: true;
258
+ };
259
+ };
260
+ userApp: {
261
+ user: {
262
+ id: true;
263
+ firstname: true;
264
+ lastname: true;
265
+ email: true;
266
+ publicKey: true;
267
+ };
268
+ };
269
+ };
270
+ breadcrumb: {
271
+ id: true;
272
+ name: true;
273
+ nameKey: true;
274
+ pubKey: true;
275
+ };
276
+ history: {
277
+ id: true;
278
+ size: true;
279
+ sizeBefore: true;
280
+ createdAt: true;
281
+ md5: true;
282
+ md5Encrypted: true;
283
+ access: {
284
+ key: true;
285
+ sharedBy: {
286
+ keyPair: {
287
+ pub: true;
288
+ };
289
+ };
290
+ };
291
+ };
292
+ current: {
293
+ id: true;
294
+ size: true;
295
+ sizeBefore: true;
296
+ createdAt: true;
297
+ md5: true;
298
+ md5Encrypted: true;
299
+ access: {
300
+ key: true;
301
+ sharedBy: {
302
+ keyPair: {
303
+ pub: true;
304
+ };
305
+ };
306
+ };
307
+ };
308
+ currentFileId: true;
309
+ };
310
+ id: true;
311
+ isFavorite: true;
312
+ type: true;
313
+ createdAt: true;
314
+ deletedAt: true;
315
+ createdBy: {
316
+ user: {
317
+ id: true;
318
+ firstname: true;
319
+ lastname: true;
320
+ email: true;
321
+ publicKey: true;
322
+ };
323
+ };
324
+ updatedAt: true;
325
+ name: true;
326
+ access: {
327
+ rights: true;
328
+ isRoot: true;
329
+ nameKey: true;
330
+ sharedBy: {
331
+ keyPair: {
332
+ pub: true;
333
+ };
334
+ };
335
+ userApp: {
336
+ user: {
337
+ id: true;
338
+ firstname: true;
339
+ lastname: true;
340
+ email: true;
341
+ publicKey: true;
342
+ };
343
+ };
344
+ };
345
+ accesses: {
346
+ rights: true;
347
+ isRoot: true;
348
+ nameKey: true;
349
+ sharedBy: {
350
+ keyPair: {
351
+ pub: true;
352
+ };
353
+ };
354
+ userApp: {
355
+ user: {
356
+ id: true;
357
+ firstname: true;
358
+ lastname: true;
359
+ email: true;
360
+ publicKey: true;
361
+ };
362
+ };
363
+ };
364
+ breadcrumb: {
365
+ id: true;
366
+ name: true;
367
+ nameKey: true;
368
+ pubKey: true;
369
+ };
370
+ history: {
371
+ id: true;
372
+ size: true;
373
+ sizeBefore: true;
374
+ createdAt: true;
375
+ md5: true;
376
+ md5Encrypted: true;
377
+ access: {
378
+ key: true;
379
+ sharedBy: {
380
+ keyPair: {
381
+ pub: true;
382
+ };
383
+ };
384
+ };
385
+ };
386
+ current: {
387
+ id: true;
388
+ size: true;
389
+ sizeBefore: true;
390
+ createdAt: true;
391
+ md5: true;
392
+ md5Encrypted: true;
393
+ access: {
394
+ key: true;
395
+ sharedBy: {
396
+ keyPair: {
397
+ pub: true;
398
+ };
399
+ };
400
+ };
401
+ };
402
+ currentFileId: true;
403
+ };
404
+ export declare const mailSelector: {
405
+ id: true;
406
+ type: true;
407
+ body: true;
408
+ subject: true;
409
+ openedAt: true;
410
+ createdAt: true;
411
+ deletedAt: true;
412
+ recipients: {
413
+ id: true;
414
+ firstname: true;
415
+ lastname: true;
416
+ email: true;
417
+ publicKey: true;
418
+ };
419
+ recipient: {
420
+ id: true;
421
+ firstname: true;
422
+ lastname: true;
423
+ email: true;
424
+ publicKey: true;
425
+ };
426
+ sender: {
427
+ id: true;
428
+ firstname: true;
429
+ lastname: true;
430
+ email: true;
431
+ publicKey: true;
432
+ };
433
+ mailIntegrity: {
434
+ id: true;
435
+ hash: true;
436
+ hashKey: true;
437
+ replyTo: {
438
+ id: true;
439
+ };
440
+ temporaryRecipients: {
441
+ email: true;
442
+ };
443
+ recipients: {
444
+ id: true;
445
+ firstname: true;
446
+ lastname: true;
447
+ email: true;
448
+ publicKey: true;
449
+ };
450
+ };
451
+ mailIntegrityDraft: {
452
+ id: true;
453
+ hash: true;
454
+ hashKey: true;
455
+ replyTo: {
456
+ id: true;
457
+ };
458
+ temporaryRecipients: {
459
+ email: true;
460
+ };
461
+ recipients: {
462
+ id: true;
463
+ firstname: true;
464
+ lastname: true;
465
+ email: true;
466
+ publicKey: true;
467
+ };
468
+ };
469
+ files: {
470
+ fileKey: true;
471
+ filename: true;
472
+ file: {
473
+ id: true;
474
+ };
475
+ };
476
+ };