@secrecy/lib 1.0.0-dev.39 → 1.0.0-dev.42

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 (63) hide show
  1. package/dist/BaseClient.d.ts +33 -53
  2. package/dist/BaseClient.js +886 -2093
  3. package/dist/PopupTools.js +20 -21
  4. package/dist/ZeusThunder.js +50 -84
  5. package/dist/cache.d.ts +2 -3
  6. package/dist/cache.js +4 -5
  7. package/dist/client/admin/index.js +77 -165
  8. package/dist/client/convert/file.d.ts +3 -3
  9. package/dist/client/convert/file.js +18 -23
  10. package/dist/client/convert/mail.js +13 -13
  11. package/dist/client/convert/node.d.ts +9 -0
  12. package/dist/client/convert/node.js +101 -0
  13. package/dist/client/helpers.js +41 -41
  14. package/dist/client/index.d.ts +63 -74
  15. package/dist/client/index.js +2727 -5759
  16. package/dist/client/storage.js +7 -7
  17. package/dist/client/types/File.d.ts +6 -13
  18. package/dist/client/types/File.js +1 -1
  19. package/dist/client/types/Inputs.d.ts +2 -7
  20. package/dist/client/types/Inputs.js +1 -1
  21. package/dist/client/types/Node.d.ts +49 -0
  22. package/dist/client/types/Node.js +3 -0
  23. package/dist/client/types/UserAppNotifications.d.ts +1 -1
  24. package/dist/client/types/UserAppNotifications.js +1 -1
  25. package/dist/client/types/UserAppSettings.js +1 -1
  26. package/dist/client/types/index.d.ts +7 -13
  27. package/dist/client/types/index.js +2 -4
  28. package/dist/client/types/selectors.d.ts +476 -0
  29. package/dist/client/types/selectors.js +125 -0
  30. package/dist/crypto/file.js +122 -203
  31. package/dist/crypto/index.js +14 -12
  32. package/dist/error.js +1 -1
  33. package/dist/index.d.ts +1 -2
  34. package/dist/index.js +2 -34
  35. package/dist/minify/index.js +7 -7
  36. package/dist/minify/lz4.js +87 -93
  37. package/dist/sodium.js +3 -25
  38. package/dist/utils/store-buddy.js +11 -15
  39. package/dist/utils/time.js +4 -12
  40. package/dist/{utils.d.ts → utils/utils.d.ts} +0 -0
  41. package/dist/utils/utils.js +57 -0
  42. package/dist/worker/__mock__/sodium.worker.js +35 -32
  43. package/dist/worker/md5.js +21 -39
  44. package/dist/worker/sodium.js +95 -130
  45. package/dist/worker/workerCodes.js +3 -3
  46. package/dist/zeus/const.d.ts +5 -0
  47. package/dist/zeus/const.js +303 -1360
  48. package/dist/zeus/index.d.ts +1805 -1817
  49. package/dist/zeus/index.js +542 -434
  50. package/package.json +40 -39
  51. package/dist/client/convert/folder.d.ts +0 -8
  52. package/dist/client/convert/folder.js +0 -264
  53. package/dist/client/convert/vFile.d.ts +0 -5
  54. package/dist/client/convert/vFile.js +0 -164
  55. package/dist/client/types/FilesOnUsersOnApplications.d.ts +0 -9
  56. package/dist/client/types/FilesOnUsersOnApplications.js +0 -3
  57. package/dist/client/types/Folder.d.ts +0 -68
  58. package/dist/client/types/Folder.js +0 -7
  59. package/dist/client/types/VFile.d.ts +0 -62
  60. package/dist/client/types/VFile.js +0 -4
  61. package/dist/client/types/queries.d.ts +0 -535
  62. package/dist/client/types/queries.js +0 -192
  63. package/dist/utils.js +0 -188
@@ -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
+ };
@@ -0,0 +1,125 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ import { Selector } from "../../zeus/index.js";
8
+ export const fileSelector = Selector("File")({
9
+ id: true,
10
+ size: true,
11
+ sizeBefore: true,
12
+ createdAt: true,
13
+ md5: true,
14
+ md5Encrypted: true,
15
+ access: {
16
+ key: true,
17
+ sharedBy: {
18
+ keyPair: {
19
+ pub: true
20
+ }
21
+ }
22
+ }
23
+ });
24
+ export const userSelector = Selector("User")({
25
+ id: true,
26
+ firstname: true,
27
+ lastname: true,
28
+ email: true,
29
+ publicKey: true
30
+ });
31
+ export const nodeSelector = Selector("Node")({
32
+ id: true,
33
+ isFavorite: true,
34
+ type: true,
35
+ createdAt: true,
36
+ deletedAt: true,
37
+ createdBy: {
38
+ user: userSelector
39
+ },
40
+ updatedAt: true,
41
+ name: true,
42
+ access: {
43
+ rights: true,
44
+ isRoot: true,
45
+ nameKey: true,
46
+ sharedBy: {
47
+ keyPair: {
48
+ pub: true
49
+ }
50
+ },
51
+ userApp: {
52
+ user: userSelector
53
+ }
54
+ },
55
+ accesses: {
56
+ rights: true,
57
+ isRoot: true,
58
+ nameKey: true,
59
+ sharedBy: {
60
+ keyPair: {
61
+ pub: true
62
+ }
63
+ },
64
+ userApp: {
65
+ user: userSelector
66
+ }
67
+ },
68
+ breadcrumb: {
69
+ id: true,
70
+ name: true,
71
+ nameKey: true,
72
+ pubKey: true
73
+ },
74
+ history: fileSelector,
75
+ current: fileSelector,
76
+ currentFileId: true
77
+ });
78
+ export const nodeFullSelector = Selector("Node")(_objectSpread(_objectSpread({}, nodeSelector), {}, {
79
+ parent: nodeSelector,
80
+ children: nodeSelector
81
+ }));
82
+ export const mailSelector = Selector("Mail")({
83
+ id: true,
84
+ type: true,
85
+ body: true,
86
+ subject: true,
87
+ openedAt: true,
88
+ createdAt: true,
89
+ deletedAt: true,
90
+ recipients: userSelector,
91
+ recipient: userSelector,
92
+ sender: userSelector,
93
+ mailIntegrity: {
94
+ id: true,
95
+ hash: true,
96
+ hashKey: true,
97
+ replyTo: {
98
+ id: true
99
+ },
100
+ temporaryRecipients: {
101
+ email: true
102
+ },
103
+ recipients: userSelector
104
+ },
105
+ mailIntegrityDraft: {
106
+ id: true,
107
+ hash: true,
108
+ hashKey: true,
109
+ replyTo: {
110
+ id: true
111
+ },
112
+ temporaryRecipients: {
113
+ email: true
114
+ },
115
+ recipients: userSelector
116
+ },
117
+ files: {
118
+ fileKey: true,
119
+ filename: true,
120
+ file: {
121
+ id: true
122
+ }
123
+ }
124
+ });
125
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJTZWxlY3RvciIsImZpbGVTZWxlY3RvciIsImlkIiwic2l6ZSIsInNpemVCZWZvcmUiLCJjcmVhdGVkQXQiLCJtZDUiLCJtZDVFbmNyeXB0ZWQiLCJhY2Nlc3MiLCJrZXkiLCJzaGFyZWRCeSIsImtleVBhaXIiLCJwdWIiLCJ1c2VyU2VsZWN0b3IiLCJmaXJzdG5hbWUiLCJsYXN0bmFtZSIsImVtYWlsIiwicHVibGljS2V5Iiwibm9kZVNlbGVjdG9yIiwiaXNGYXZv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