@secrecy/lib 1.0.0 → 1.1.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.
- package/LICENSE +1 -1
- package/dist/BaseClient.d.ts +29 -177
- package/dist/BaseClient.js +114 -732
- package/dist/PopupTools.d.ts +4 -4
- package/dist/PopupTools.js +24 -41
- package/dist/ZeusThunder.js +3 -17
- package/dist/cache.js +1 -1
- package/dist/client/SecrecyAppClient.d.ts +17 -0
- package/dist/client/SecrecyAppClient.js +226 -0
- package/dist/client/SecrecyCloudClient.d.ts +89 -0
- package/dist/client/SecrecyCloudClient.js +1405 -0
- package/dist/client/SecrecyDbClient.d.ts +21 -0
- package/dist/client/SecrecyDbClient.js +177 -0
- package/dist/client/SecrecyMailClient.d.ts +42 -0
- package/dist/client/SecrecyMailClient.js +1022 -0
- package/dist/client/SecrecyPayClient.d.ts +28 -0
- package/dist/client/SecrecyPayClient.js +68 -0
- package/dist/client/SecrecyWalletClient.d.ts +30 -0
- package/dist/client/SecrecyWalletClient.js +73 -0
- package/dist/client/convert/file.js +2 -3
- package/dist/client/convert/mail.d.ts +2 -2
- package/dist/client/convert/mail.js +7 -11
- package/dist/client/convert/node.js +19 -33
- package/dist/client/helpers.d.ts +9 -4
- package/dist/client/helpers.js +30 -25
- package/dist/client/index.d.ts +15 -145
- package/dist/client/index.js +16 -3176
- package/dist/client/storage.js +4 -4
- package/dist/client/types/File.d.ts +3 -3
- package/dist/client/types/Inputs.d.ts +4 -4
- package/dist/client/types/Node.d.ts +21 -14
- package/dist/client/types/Node.js +1 -1
- package/dist/client/types/UserAppNotifications.d.ts +1 -1
- package/dist/client/types/UserAppSettings.d.ts +2 -3
- package/dist/client/types/UserAppSettings.js +1 -1
- package/dist/client/types/index.d.ts +23 -51
- package/dist/client/types/index.js +1 -1
- package/dist/client/types/selectors.d.ts +51 -127
- package/dist/client/types/selectors.js +21 -11
- package/dist/crypto/file.d.ts +2 -2
- package/dist/crypto/file.js +19 -34
- package/dist/crypto/index.js +1 -3
- package/dist/error.d.ts +5 -2
- package/dist/error.js +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.js +4 -4
- package/dist/minify/index.js +2 -7
- package/dist/minify/lz4.js +79 -167
- package/dist/sodium.js +1 -1
- package/dist/utils/store-buddy.d.ts +1 -1
- package/dist/utils/store-buddy.js +1 -8
- package/dist/utils/time.js +1 -3
- package/dist/utils/utils.js +1 -11
- package/dist/worker/md5.js +1 -2
- package/dist/worker/sodium.js +16 -18
- package/dist/worker/workerCodes.js +255 -3
- package/dist/zeus/const.js +587 -31
- package/dist/zeus/index.d.ts +5014 -631
- package/dist/zeus/index.js +213 -255
- package/package.json +64 -61
- package/dist/client/admin/index.d.ts +0 -11
- package/dist/client/admin/index.js +0 -110
- package/dist/worker/__mock__/sodium.worker.d.ts +0 -19
- package/dist/worker/__mock__/sodium.worker.js +0 -49
package/dist/client/storage.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { storeBuddy } from "../utils/store-buddy.js";
|
|
2
2
|
export function getStorage(session) {
|
|
3
|
-
const userAppSession = storeBuddy(
|
|
4
|
-
const userAppKeys = storeBuddy(
|
|
5
|
-
const jwt = storeBuddy(
|
|
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
6
|
return {
|
|
7
7
|
userAppKeys,
|
|
8
8
|
userAppSession,
|
|
9
9
|
jwt
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJzdG9yZUJ1ZGR5IiwiZ2V0U3RvcmFnZSIsInNlc3Npb24iLCJ1c2VyQXBwU2Vzc2lvbiIsImluaXQiLCJ1c2VyQXBwS2V5cyIsImp3dCJ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YUFBWSxFQUFFRSxPQUFPLENBQUMsQ0FBQ0UsSUFBSSxDQUFDLElBQUksQ0FBQztFQUN4RSxPQUFPO0lBQUVDLFdBQVc7SUFBRUYsY0FBYztJQUFFRztFQUFJLENBQUM7QUFDN0MifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GraphQLTypes, InputType } from "../../zeus/index.js";
|
|
2
2
|
import type { fileSelector } from "./selectors.js";
|
|
3
|
-
export
|
|
3
|
+
export type FileMetadata = {
|
|
4
4
|
id: string;
|
|
5
5
|
size: bigint;
|
|
6
6
|
sizeBefore: bigint;
|
|
@@ -8,7 +8,7 @@ export declare type FileMetadata = {
|
|
|
8
8
|
md5Encrypted: string;
|
|
9
9
|
createdAt: Date;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type InternalFile = FileMetadata & {
|
|
12
12
|
key: string;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type GQLFile = InputType<GraphQLTypes["File"], typeof fileSelector>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ShareFileKeyInput = {
|
|
2
2
|
id: string;
|
|
3
3
|
key: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type NameKeyInput = {
|
|
6
6
|
id: string;
|
|
7
7
|
nameKey: string;
|
|
8
8
|
files: ShareFileKeyInput[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type ShareNodesInput = {
|
|
11
11
|
nodes: NameKeyInput[];
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ShareFileInHistoryInput = {
|
|
14
14
|
fileId: string;
|
|
15
15
|
users: ShareFileKeyInput[];
|
|
16
16
|
};
|
|
@@ -2,7 +2,7 @@ import type { NodeType, Rights } from "../../zeus/index.js";
|
|
|
2
2
|
import type { FileMetadata, InternalFile, PublicUser } from "./index.js";
|
|
3
3
|
import type { nodeFullSelector, nodeSelector } from "./selectors.js";
|
|
4
4
|
import type { GraphQLTypes, InputType } from "../../zeus/index.js";
|
|
5
|
-
export
|
|
5
|
+
export type NodeAccess<T extends Record<string, unknown> = Record<string, unknown>> = T & {
|
|
6
6
|
rights: Rights;
|
|
7
7
|
isRoot: boolean;
|
|
8
8
|
sharedBy: {
|
|
@@ -14,36 +14,43 @@ export declare type NodeAccess<T extends Record<string, unknown> = Record<string
|
|
|
14
14
|
user: PublicUser;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type NodeBreadcrumbItem = {
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
20
|
pubKey: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
export type NodeSize = {
|
|
23
|
+
size: bigint;
|
|
24
|
+
sizeBefore: bigint;
|
|
25
|
+
};
|
|
26
|
+
type NameKey = {
|
|
23
27
|
nameKey?: string;
|
|
24
28
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
29
|
+
export type InternalNodeBreadcrumbItem = NodeBreadcrumbItem & NameKey;
|
|
30
|
+
export type Node<T extends NodeBreadcrumbItem = NodeBreadcrumbItem, U extends Record<string, unknown> = Record<string, unknown>> = {
|
|
27
31
|
id: string;
|
|
28
32
|
isFavorite: boolean;
|
|
29
33
|
type: NodeType;
|
|
30
34
|
createdAt: Date;
|
|
31
35
|
deletedAt: Date | null;
|
|
32
36
|
updatedAt: Date;
|
|
37
|
+
sizes: NodeSize;
|
|
33
38
|
name: string;
|
|
34
39
|
breadcrumb: T[];
|
|
35
40
|
createdBy: PublicUser;
|
|
36
41
|
access?: NodeAccess<U>;
|
|
37
|
-
current?: V;
|
|
38
|
-
history: V[];
|
|
39
42
|
users: [PublicUser, Rights][];
|
|
43
|
+
parentId: string | null;
|
|
44
|
+
currentFileId: string | null;
|
|
40
45
|
};
|
|
41
|
-
export
|
|
42
|
-
parent: Node<T, U
|
|
43
|
-
children: Node<T, U
|
|
46
|
+
export 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[];
|
|
44
51
|
};
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
52
|
+
export type InternalNode = Node<InternalNodeBreadcrumbItem, NameKey>;
|
|
53
|
+
export type InternalNodeFull = NodeFull<InternalNodeBreadcrumbItem, NameKey, InternalFile>;
|
|
54
|
+
export type GQLNode = InputType<GraphQLTypes["Node"], typeof nodeSelector>;
|
|
55
|
+
export type GQLNodeFull = InputType<GraphQLTypes["Node"], typeof nodeFullSelector>;
|
|
49
56
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Ob2RlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTm9kZVR5cGUsIFJpZ2h0cyB9IGZyb20gXCIuLi8uLi96ZXVzL2luZGV4LmpzXCI7XG5pbXBvcnQgdHlwZSB7IEZpbGVNZXRhZGF0YSwgSW50ZXJuYWxGaWxlLCBQdWJsaWNVc2VyIH0gZnJvbSBcIi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgbm9kZUZ1bGxTZWxlY3Rvciwgbm9kZVNlbGVjdG9yIH0gZnJvbSBcIi4vc2VsZWN0b3JzLmpzXCI7XG5pbXBvcnQgdHlwZSB7IEdyYXBoUUxUeXBlcywgSW5wdXRUeXBlIH0gZnJvbSBcIi4uLy4uL3pldXMvaW5kZXguanNcIjtcblxuZXhwb3J0IHR5cGUgTm9kZUFjY2VzczxcbiAgVCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+ID0gUmVjb3JkPHN0cmluZywgdW5rbm93bj5cbj4gPSBUICYge1xuICByaWdodHM6IFJpZ2h0cztcbiAgaXNSb290OiBib29sZWFuO1xuICBzaGFyZWRCeToge1xuICAgIGtleVBhaXI/
|
|
3
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Ob2RlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTm9kZVR5cGUsIFJpZ2h0cyB9IGZyb20gXCIuLi8uLi96ZXVzL2luZGV4LmpzXCI7XG5pbXBvcnQgdHlwZSB7IEZpbGVNZXRhZGF0YSwgSW50ZXJuYWxGaWxlLCBQdWJsaWNVc2VyIH0gZnJvbSBcIi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgbm9kZUZ1bGxTZWxlY3Rvciwgbm9kZVNlbGVjdG9yIH0gZnJvbSBcIi4vc2VsZWN0b3JzLmpzXCI7XG5pbXBvcnQgdHlwZSB7IEdyYXBoUUxUeXBlcywgSW5wdXRUeXBlIH0gZnJvbSBcIi4uLy4uL3pldXMvaW5kZXguanNcIjtcblxuZXhwb3J0IHR5cGUgTm9kZUFjY2VzczxcbiAgVCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+ID0gUmVjb3JkPHN0cmluZywgdW5rbm93bj5cbj4gPSBUICYge1xuICByaWdodHM6IFJpZ2h0cztcbiAgaXNSb290OiBib29sZWFuO1xuICBzaGFyZWRCeToge1xuICAgIGtleVBhaXI/OiB7XG4gICAgICBwdWI6IHN0cmluZztcbiAgICB9O1xuICB9O1xuICB1c2VyQXBwOiB7XG4gICAgdXNlcjogUHVibGljVXNlcjtcbiAgfTtcbn07XG5cbmV4cG9ydCB0eXBlIE5vZGVCcmVhZG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mVhZGNydW1iSXRlbSxcbiAgVSBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+ID0gUmVjb3JkPHN0cmluZywgdW5rbm93bj4sXG4gIFYgZXh0ZW5kcyBGaWxlTWV0YWRhdGEgPSBGaWxlTWV0YWRhdGFcbj4gPSBOb2RlPFQsIFU+ICYge1xuICBwYXJlbnQ6IE5vZGU8VCwgVT4gfCBudWxsO1xuICBjaGlsZHJlbjogTm9kZTxULCBVPltdO1xuICBjdXJyZW50PzogVjtcbiAgaGlzdG9yeTogVltdO1xufTtcblxuZXhwb3J0IHR5cGUgSW50ZXJuYWxOb2RlID0gTm9kZTxJbnRlcm5hbE5vZGVCcmVhZGNydW1iSXRlbSwgTmFtZUtleT47XG5cbmV4cG9ydCB0eXBlIEludGVybmFsTm9kZUZ1bGwgPSBOb2RlRnVsbDxcbiAgSW50ZXJuYWxOb2RlQnJlYWRjcnVtYkl0ZW0sXG4gIE5hbWVLZXksXG4gIEludGVybmFsRmlsZVxuPjtcblxuZXhwb3J0IHR5cGUgR1FMTm9kZSA9IElucHV0VHlwZTxHcmFwaFFMVHlwZXNbXCJOb2RlXCJdLCB0eXBlb2Ygbm9kZVNlbGVjdG9yPjtcbmV4cG9ydCB0eXBlIEdRTE5vZGVGdWxsID0gSW5wdXRUeXBlPFxuICBHcmFwaFFMVHlwZXNbXCJOb2RlXCJdLFxuICB0eXBlb2Ygbm9kZUZ1bGxTZWxlY3RvclxuPjtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
export {};
|
|
3
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9Vc2VyQXBwU2V0dGluZ3MudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgVXNlckFwcFNldHRpbmdzID0ge1xuICBjbG91ZE5vZGVEYXlzRm9yRGVsZXRlOiBudW1iZXI7XG4gIGhpc3RvcnlGaWxlRGF5c0ZvckRlbGV0ZT86IG51bWJlcjtcbiAgaGlzdG9yeU1heEZpbGVDb3VudDogbnVtYmVyO1xufTtcbiJdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { KeyPair } from "../../index.js";
|
|
2
2
|
import type { InputType, GraphQLTypes } from "../../zeus/index.js";
|
|
3
|
-
import type { userSelector } from "./selectors.js";
|
|
3
|
+
import type { mailSelector, userSelector } from "./selectors.js";
|
|
4
4
|
export * from "./File.js";
|
|
5
5
|
export * from "./Node.js";
|
|
6
6
|
export * from "./UserAppSettings.js";
|
|
7
7
|
export * from "./UserAppNotifications.js";
|
|
8
8
|
export * from "./Inputs.js";
|
|
9
|
-
export
|
|
9
|
+
export type SecrecyUserApp = {
|
|
10
10
|
keys: KeyPair;
|
|
11
11
|
jwt: string;
|
|
12
12
|
uaSession: string;
|
|
@@ -16,17 +16,17 @@ export interface FileContentPart {
|
|
|
16
16
|
order: number;
|
|
17
17
|
md5: string;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type FilePartResponse = {
|
|
20
20
|
order: number;
|
|
21
21
|
fields: Record<string, string>;
|
|
22
22
|
url: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type MailFileInput = {
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
fileKey: string;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type MailIntegrity = {
|
|
30
30
|
id: string;
|
|
31
31
|
hash: string;
|
|
32
32
|
hashKey: string;
|
|
@@ -36,20 +36,20 @@ export declare type MailIntegrity = {
|
|
|
36
36
|
temporaryRecipients: TemporaryMailUser[];
|
|
37
37
|
recipients: PublicUser[];
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type MailIntegrityDraft = MailIntegrity & {
|
|
40
40
|
recipients: PublicUser[];
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type TemporaryMailUser = {
|
|
43
43
|
email?: string;
|
|
44
44
|
};
|
|
45
|
-
export
|
|
45
|
+
export type InternalWaitingReceivedMail = {
|
|
46
46
|
sender: PublicUser;
|
|
47
47
|
date: string;
|
|
48
48
|
attachmentsCount: number;
|
|
49
49
|
recipients: PublicUser[];
|
|
50
50
|
temporaryRecipients: TemporaryMailUser[];
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type WaitingReceivedMail = {
|
|
53
53
|
id: string;
|
|
54
54
|
sender: PublicUser;
|
|
55
55
|
date: Date;
|
|
@@ -57,35 +57,21 @@ export declare type WaitingReceivedMail = {
|
|
|
57
57
|
recipients: PublicUser[];
|
|
58
58
|
temporaryRecipients: TemporaryMailUser[];
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type MailFile = {
|
|
61
61
|
fileKey: string;
|
|
62
62
|
filename: string;
|
|
63
63
|
file: {
|
|
64
64
|
id: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
export
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
id: string;
|
|
71
|
-
body: string;
|
|
72
|
-
subject: string;
|
|
73
|
-
openedAt?: Date;
|
|
74
|
-
createdAt: Date;
|
|
75
|
-
deletedAt?: Date;
|
|
76
|
-
recipient: PublicUser;
|
|
77
|
-
recipients: PublicUser[];
|
|
78
|
-
sender: PublicUser;
|
|
79
|
-
mailIntegrity?: MailIntegrity;
|
|
80
|
-
mailIntegrityDraft?: MailIntegrityDraft;
|
|
81
|
-
files: MailFile[];
|
|
82
|
-
};
|
|
83
|
-
export declare type InternalReceivedMail = {
|
|
67
|
+
export type MailType = "sent" | "received" | "draft";
|
|
68
|
+
export type GQLMail = InputType<GraphQLTypes["Mail"], typeof mailSelector>;
|
|
69
|
+
export type InternalReceivedMail = {
|
|
84
70
|
user: {
|
|
85
|
-
receivedMails:
|
|
71
|
+
receivedMails: GQLMail[];
|
|
86
72
|
};
|
|
87
73
|
};
|
|
88
|
-
export
|
|
74
|
+
export type BaseMail = {
|
|
89
75
|
type: MailType;
|
|
90
76
|
id: string;
|
|
91
77
|
mailIntegrityId: string;
|
|
@@ -96,7 +82,7 @@ export declare type BaseMail = {
|
|
|
96
82
|
deletedAt: Date | null;
|
|
97
83
|
openedAt: Date | null;
|
|
98
84
|
isAltered: boolean;
|
|
99
|
-
recipients: PublicUser[];
|
|
85
|
+
recipients: Omit<PublicUser, "publicKey">[];
|
|
100
86
|
temporaryRecipients: TemporaryMailUser[];
|
|
101
87
|
files: {
|
|
102
88
|
id: string;
|
|
@@ -104,19 +90,19 @@ export declare type BaseMail = {
|
|
|
104
90
|
key: string;
|
|
105
91
|
}[];
|
|
106
92
|
};
|
|
107
|
-
export
|
|
93
|
+
export type PublicUser = InputType<GraphQLTypes["User"], typeof userSelector>;
|
|
108
94
|
export interface ReceivedMail extends BaseMail {
|
|
109
95
|
type: "received";
|
|
110
96
|
sender: PublicUser;
|
|
111
97
|
}
|
|
112
|
-
export
|
|
98
|
+
export type InternalSentMail = {
|
|
113
99
|
user: {
|
|
114
|
-
sentMails:
|
|
100
|
+
sentMails: GQLMail[];
|
|
115
101
|
};
|
|
116
102
|
};
|
|
117
|
-
export
|
|
103
|
+
export type InternalDraftMails = {
|
|
118
104
|
user: {
|
|
119
|
-
draftMails:
|
|
105
|
+
draftMails: GQLMail[];
|
|
120
106
|
};
|
|
121
107
|
};
|
|
122
108
|
export interface SentMail extends BaseMail {
|
|
@@ -125,22 +111,8 @@ export interface SentMail extends BaseMail {
|
|
|
125
111
|
export interface DraftMail extends BaseMail {
|
|
126
112
|
type: "draft";
|
|
127
113
|
}
|
|
128
|
-
export
|
|
129
|
-
export
|
|
130
|
-
id: string;
|
|
131
|
-
lastActivity: Date | undefined;
|
|
132
|
-
userAgent: string | undefined;
|
|
133
|
-
ip: string | undefined;
|
|
134
|
-
city: string | undefined;
|
|
135
|
-
country: string | undefined;
|
|
136
|
-
};
|
|
137
|
-
export declare type AppSession = Session & {
|
|
138
|
-
app: string;
|
|
139
|
-
};
|
|
140
|
-
export declare type UserSession = Session & {
|
|
141
|
-
appSessions: AppSession[];
|
|
142
|
-
};
|
|
143
|
-
export declare type MailRecipientInput = {
|
|
114
|
+
export type Mail = DraftMail | SentMail | ReceivedMail;
|
|
115
|
+
export type MailRecipientInput = {
|
|
144
116
|
body: string;
|
|
145
117
|
subject: string;
|
|
146
118
|
recipientId: string;
|
|
@@ -5,4 +5,4 @@ export * from "./UserAppNotifications.js";
|
|
|
5
5
|
export * from "./Inputs.js";
|
|
6
6
|
export {};
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NsaWVudC90eXBlcy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IEtleVBhaXIgfSBmcm9tIFwiLi4vLi4vaW5kZXguanNcIjtcbmltcG9ydCB0eXBlIHsgSW5wdXRUeXBlLCBHcmFwaFFMVHlwZXMgfSBmcm9tIFwiLi4vLi4vemV1cy9pbmRleC5qc1wiO1xuaW1wb3J0IHR5cGUgeyBtYWlsU2VsZWN0b3IsIHVzZXJTZWxlY3RvciB9IGZyb20gXCIuL3NlbGVjdG9ycy5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vRmlsZS5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vTm9kZS5qc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vVXNlckFwcFNldHRpbmdzLmpzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9Vc2VyQXBwTm90aWZpY2F0aW9ucy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WlsIHwgU2VudE1haWwgfCBSZWNlaXZlZE1haWw7XG5cbmV4cG9ydCB0eXBlIE1haWxSZWNpcGllbnRJbnB1dCA9IHtcbiAgYm9keTogc3RyaW5nO1xuICBzdWJqZWN0OiBzdHJpbmc7XG4gIHJlY2lwaWVudElkOiBzdHJpbmc7XG4gIGZpbGVzOiBNYWlsRmlsZUlucHV0W107XG59O1xuIl0sIm1hcHBpbmdzIjoiQUFHQSxjQUFjLFdBQVc7QUFDekIsY0FBYyxXQUFXO0FBQ3pCLGNBQWMsc0JBQXNCO0FBQ3BDLGNBQWMsMkJBQTJCO0FBQ3pDLGNBQWMsYUFBYTtBQUFDO0FBQUEifQ==
|
|
@@ -36,6 +36,10 @@ export declare const nodeSelector: {
|
|
|
36
36
|
publicKey: true;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
sizes: {
|
|
40
|
+
size: true;
|
|
41
|
+
sizeBefore: true;
|
|
42
|
+
};
|
|
39
43
|
updatedAt: true;
|
|
40
44
|
name: true;
|
|
41
45
|
access: {
|
|
@@ -82,38 +86,7 @@ export declare const nodeSelector: {
|
|
|
82
86
|
nameKey: true;
|
|
83
87
|
pubKey: true;
|
|
84
88
|
};
|
|
85
|
-
|
|
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
|
-
};
|
|
89
|
+
parentId: true;
|
|
117
90
|
currentFileId: true;
|
|
118
91
|
};
|
|
119
92
|
export declare const nodeFullSelector: {
|
|
@@ -132,6 +105,10 @@ export declare const nodeFullSelector: {
|
|
|
132
105
|
publicKey: true;
|
|
133
106
|
};
|
|
134
107
|
};
|
|
108
|
+
sizes: {
|
|
109
|
+
size: true;
|
|
110
|
+
sizeBefore: true;
|
|
111
|
+
};
|
|
135
112
|
updatedAt: true;
|
|
136
113
|
name: true;
|
|
137
114
|
access: {
|
|
@@ -178,38 +155,7 @@ export declare const nodeFullSelector: {
|
|
|
178
155
|
nameKey: true;
|
|
179
156
|
pubKey: true;
|
|
180
157
|
};
|
|
181
|
-
|
|
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
|
-
};
|
|
158
|
+
parentId: true;
|
|
213
159
|
currentFileId: true;
|
|
214
160
|
};
|
|
215
161
|
children: {
|
|
@@ -227,6 +173,10 @@ export declare const nodeFullSelector: {
|
|
|
227
173
|
publicKey: true;
|
|
228
174
|
};
|
|
229
175
|
};
|
|
176
|
+
sizes: {
|
|
177
|
+
size: true;
|
|
178
|
+
sizeBefore: true;
|
|
179
|
+
};
|
|
230
180
|
updatedAt: true;
|
|
231
181
|
name: true;
|
|
232
182
|
access: {
|
|
@@ -273,39 +223,40 @@ export declare const nodeFullSelector: {
|
|
|
273
223
|
nameKey: true;
|
|
274
224
|
pubKey: true;
|
|
275
225
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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;
|
|
289
241
|
};
|
|
290
242
|
};
|
|
291
243
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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;
|
|
305
257
|
};
|
|
306
258
|
};
|
|
307
259
|
};
|
|
308
|
-
currentFileId: true;
|
|
309
260
|
};
|
|
310
261
|
id: true;
|
|
311
262
|
isFavorite: true;
|
|
@@ -321,6 +272,10 @@ export declare const nodeFullSelector: {
|
|
|
321
272
|
publicKey: true;
|
|
322
273
|
};
|
|
323
274
|
};
|
|
275
|
+
sizes: {
|
|
276
|
+
size: true;
|
|
277
|
+
sizeBefore: true;
|
|
278
|
+
};
|
|
324
279
|
updatedAt: true;
|
|
325
280
|
name: true;
|
|
326
281
|
access: {
|
|
@@ -367,38 +322,7 @@ export declare const nodeFullSelector: {
|
|
|
367
322
|
nameKey: true;
|
|
368
323
|
pubKey: true;
|
|
369
324
|
};
|
|
370
|
-
|
|
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
|
-
};
|
|
325
|
+
parentId: true;
|
|
402
326
|
currentFileId: true;
|
|
403
327
|
};
|
|
404
328
|
export declare const mailSelector: {
|
|
@@ -410,18 +334,18 @@ export declare const mailSelector: {
|
|
|
410
334
|
createdAt: true;
|
|
411
335
|
deletedAt: true;
|
|
412
336
|
recipients: {
|
|
337
|
+
publicKey: false;
|
|
413
338
|
id: true;
|
|
414
339
|
firstname: true;
|
|
415
340
|
lastname: true;
|
|
416
341
|
email: true;
|
|
417
|
-
publicKey: true;
|
|
418
342
|
};
|
|
419
343
|
recipient: {
|
|
344
|
+
publicKey: false;
|
|
420
345
|
id: true;
|
|
421
346
|
firstname: true;
|
|
422
347
|
lastname: true;
|
|
423
348
|
email: true;
|
|
424
|
-
publicKey: true;
|
|
425
349
|
};
|
|
426
350
|
sender: {
|
|
427
351
|
id: true;
|
|
@@ -441,11 +365,11 @@ export declare const mailSelector: {
|
|
|
441
365
|
email: true;
|
|
442
366
|
};
|
|
443
367
|
recipients: {
|
|
368
|
+
publicKey: false;
|
|
444
369
|
id: true;
|
|
445
370
|
firstname: true;
|
|
446
371
|
lastname: true;
|
|
447
372
|
email: true;
|
|
448
|
-
publicKey: true;
|
|
449
373
|
};
|
|
450
374
|
};
|
|
451
375
|
mailIntegrityDraft: {
|
|
@@ -459,11 +383,11 @@ export declare const mailSelector: {
|
|
|
459
383
|
email: true;
|
|
460
384
|
};
|
|
461
385
|
recipients: {
|
|
386
|
+
publicKey: false;
|
|
462
387
|
id: true;
|
|
463
388
|
firstname: true;
|
|
464
389
|
lastname: true;
|
|
465
390
|
email: true;
|
|
466
|
-
publicKey: true;
|
|
467
391
|
};
|
|
468
392
|
};
|
|
469
393
|
files: {
|