@secrecy/lib 1.76.0 → 1.78.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/dist/lib/client/SecrecyCloudClient.js +69 -22
- package/dist/lib/client/SecrecyGroupClient.js +10 -6
- package/dist/lib/client/SecrecyMailClient.js +28 -13
- package/dist/lib/client/index.js +11 -0
- package/dist/lib/client/types/identity.js +1 -0
- package/dist/lib/client/upload.js +5 -5
- package/dist/lib/crypto/domain.js +4 -4
- package/dist/types/client/SecrecyCloudClient.d.ts +5 -1
- package/dist/types/client/SecrecyMailClient.d.ts +1 -1
- package/dist/types/client/index.d.ts +3 -0
- package/dist/types/client/types/identity.d.ts +2 -0
- package/dist/types/client/types/index.d.ts +1 -0
- package/dist/types/client/upload.d.ts +3 -3
- package/dist/types/client.d.ts +634 -20
- package/dist/types/crypto/domain.d.ts +3 -3
- package/package.json +2 -2
|
@@ -3,15 +3,15 @@ import { type ApiExtendedData } from '../client/types';
|
|
|
3
3
|
import { type ProgressCallback } from '../client/index';
|
|
4
4
|
import z from 'zod';
|
|
5
5
|
import { downloadDataLinkSchema } from '../client/data-link.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { AccessIdentity } from '../client/types/identity.js';
|
|
7
7
|
/**
|
|
8
8
|
* Encrypt the dataKey and the data as logged or guest user.
|
|
9
9
|
* If a string is provided as keypair, it should be considered as guest with password case.
|
|
10
10
|
* If keypair is not provided, then we generate a key to be used as password for guest too.
|
|
11
11
|
*/
|
|
12
|
-
export declare function encryptDataAndKey({ data,
|
|
12
|
+
export declare function encryptDataAndKey({ data, currentIdentity, keyPairs, progress, signal, }: {
|
|
13
13
|
data: Uint8Array<ArrayBuffer>;
|
|
14
|
-
|
|
14
|
+
currentIdentity?: AccessIdentity;
|
|
15
15
|
keyPairs?: Record<string, string>;
|
|
16
16
|
progress?: ProgressCallback;
|
|
17
17
|
signal?: AbortSignal;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.78.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@js-temporal/polyfill": "^0.5.1",
|
|
79
|
-
"@secrecy/trpc-api-types": "1.33.
|
|
79
|
+
"@secrecy/trpc-api-types": "1.33.9-dev.1",
|
|
80
80
|
"@trpc/client": "11.6.0",
|
|
81
81
|
"@trpc/server": "^11.6.0",
|
|
82
82
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|