@secrecy/lib 1.77.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 +540 -16
- package/dist/types/crypto/domain.d.ts +3 -3
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import type { DataStorageType, LocalData } from './types/data.js';
|
|
|
2
2
|
import type { ProgressCallback } from './index.js';
|
|
3
3
|
import { type FileTypeResult } from 'file-type';
|
|
4
4
|
import { type ApiClient, type RouterInputs } from '../client.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { AccessIdentity } from './types/identity.js';
|
|
6
6
|
export type UploadDataOptions = {
|
|
7
7
|
storageType: DataStorageType;
|
|
8
8
|
data: globalThis.File | Uint8Array<ArrayBuffer>;
|
|
@@ -14,8 +14,8 @@ export type UploadDataOptions = {
|
|
|
14
14
|
meta?: FileTypeResult | true;
|
|
15
15
|
forcePassword?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export declare function uploadData({ storageType, data, password, forcePassword, encrypted, encryptProgress, uploadProgress, signal, meta,
|
|
18
|
-
|
|
17
|
+
export declare function uploadData({ storageType, data, password, forcePassword, encrypted, encryptProgress, uploadProgress, signal, meta, currentIdentity, keyPairs, apiClient, }: UploadDataOptions & {
|
|
18
|
+
currentIdentity?: AccessIdentity;
|
|
19
19
|
keyPairs?: Record<string, string>;
|
|
20
20
|
apiClient?: ApiClient;
|
|
21
21
|
}): Promise<LocalData & {
|