@secrecy/lib 1.39.0-fix-lp-fixes.1 → 1.39.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/index.js
CHANGED
|
@@ -9,7 +9,6 @@ import { SecrecyDbClient } from './SecrecyDbClient.js';
|
|
|
9
9
|
import { SecrecyWalletClient } from './SecrecyWalletClient.js';
|
|
10
10
|
import { SecrecyPayClient } from './SecrecyPayClient.js';
|
|
11
11
|
import { SecrecyUserClient } from './SecrecyUserClient.js';
|
|
12
|
-
import { SecrecyCareClient } from './SecrecyCareClient.js';
|
|
13
12
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
14
13
|
export const encryptName = async (name, nameKey) => {
|
|
15
14
|
const { data } = await encryptSecretStream(sodium.from_hex(nameKey), sodium.from_string(name));
|
|
@@ -18,7 +17,6 @@ export const encryptName = async (name, nameKey) => {
|
|
|
18
17
|
};
|
|
19
18
|
export class SecrecyClient extends BaseClient {
|
|
20
19
|
#keys;
|
|
21
|
-
care;
|
|
22
20
|
cloud;
|
|
23
21
|
mail;
|
|
24
22
|
app;
|
|
@@ -38,7 +36,6 @@ export class SecrecyClient extends BaseClient {
|
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
38
|
this.#keys = uaKeys;
|
|
41
|
-
this.care = new SecrecyCareClient(this, this.#keys, this.client);
|
|
42
39
|
this.cloud = new SecrecyCloudClient(this, this.#keys, this.client);
|
|
43
40
|
this.mail = new SecrecyMailClient(this, this.#keys, this.client);
|
|
44
41
|
this.app = new SecrecyAppClient(uaJwt, this, this.#keys, this.client);
|
|
@@ -9,14 +9,12 @@ import { SecrecyPayClient } from './SecrecyPayClient.js';
|
|
|
9
9
|
import { type RouterInputs } from '../client.js';
|
|
10
10
|
import { type KeyPair } from './types/index.js';
|
|
11
11
|
import { SecrecyUserClient } from './SecrecyUserClient.js';
|
|
12
|
-
import { SecrecyCareClient } from './SecrecyCareClient.js';
|
|
13
12
|
import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
|
|
14
13
|
export type NewMail = Pick<RouterInputs['mail']['createDraft'], 'body' | 'subject' | 'senderFiles' | 'recipients' | 'replyToId'>;
|
|
15
14
|
export type ProgressCallback = (progress: Progress) => Promise<void>;
|
|
16
15
|
export declare const encryptName: (name: string, nameKey: string) => Promise<string>;
|
|
17
16
|
export declare class SecrecyClient extends BaseClient {
|
|
18
17
|
#private;
|
|
19
|
-
care: SecrecyCareClient;
|
|
20
18
|
cloud: SecrecyCloudClient;
|
|
21
19
|
mail: SecrecyMailClient;
|
|
22
20
|
app: SecrecyAppClient;
|