@secrecy/lib 1.74.0-feat-groups-identity.1 → 1.74.0-feat-groups-identity.3

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.
@@ -22,6 +22,7 @@ export function getSecrecyClient(opts = {}) {
22
22
  const infos = parseInfos();
23
23
  if (infos !== null) {
24
24
  storage.identities.save(infos.identities);
25
+ storage.keyPairs.save(infos.keyPairs);
25
26
  storage.userAppSession.save(infos.uaSession);
26
27
  storage.jwt.save(infos.jwt);
27
28
  return new SecrecyClient({
@@ -92,4 +92,7 @@ export class SecrecyClient extends BaseClient {
92
92
  publicKeysCache.clear();
93
93
  await super.logout(sessionId);
94
94
  }
95
+ async getIdentities(input) {
96
+ return await this.client.identity.getMany.query(input);
97
+ }
95
98
  }
@@ -6,7 +6,7 @@ import { SecrecyAppClient } from './SecrecyAppClient.js';
6
6
  import { SecrecyDbClient } from './SecrecyDbClient.js';
7
7
  import { SecrecyWalletClient } from './SecrecyWalletClient.js';
8
8
  import { SecrecyPayClient } from './SecrecyPayClient.js';
9
- import { ApiClient, type RouterInputs } from '../client.js';
9
+ import { ApiClient, type RouterInputs, type RouterOutputs } from '../client.js';
10
10
  import { SecrecyUserClient } from './SecrecyUserClient.js';
11
11
  import { SecrecyPseudonymClient } from './SecrecyPseudonymClient.js';
12
12
  import { SecrecyOrganizationClient } from './SecrecyOrganizationClient.js';
@@ -42,4 +42,5 @@ export declare class SecrecyClient extends BaseClient {
42
42
  get uaIdentity(): Readonly<UserAppIdentity>;
43
43
  decryptAnonymous(data: Uint8Array): Uint8Array;
44
44
  logout(sessionId?: string | null | undefined): Promise<void>;
45
+ getIdentities(input: RouterInputs['identity']['getMany']): Promise<RouterOutputs['identity']['getMany']>;
45
46
  }
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.74.0-feat-groups-identity.1",
5
+ "version": "1.74.0-feat-groups-identity.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"