@secrecy/lib 1.66.0 → 1.67.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.
@@ -24,10 +24,4 @@ export class SecrecyUserClient {
24
24
  async removeContact(input) {
25
25
  return await this.#apiClient.contacts.removeContact.mutate(input);
26
26
  }
27
- async changeContext(input) {
28
- if (!input.userId && !input.orgId) {
29
- throw new Error('Either orgId or userId must be defined as input!');
30
- }
31
- return await this.#apiClient.auth.changeContext.mutate(input);
32
- }
33
27
  }
@@ -16,7 +16,7 @@ export class SecrecyClient extends BaseClient {
16
16
  mail;
17
17
  app;
18
18
  db;
19
- org;
19
+ organization;
20
20
  wallet;
21
21
  pay;
22
22
  user;
@@ -41,7 +41,7 @@ export class SecrecyClient extends BaseClient {
41
41
  this.mail = new SecrecyMailClient(this, this.#keys, this.client);
42
42
  this.app = new SecrecyAppClient(opts.uaJwt, this, this.#keys, this.client);
43
43
  this.db = new SecrecyDbClient(this, this.#keys, this.client);
44
- this.org = new SecrecyOrganizationClient(this, this.#keys, this.client);
44
+ this.organization = new SecrecyOrganizationClient(this, this.#keys, this.client);
45
45
  this.wallet = new SecrecyWalletClient(this);
46
46
  this.pay = new SecrecyPayClient(this, this.#keys, this.client);
47
47
  this.user = new SecrecyUserClient(this, this.#keys, this.client);
@@ -11,5 +11,4 @@ export declare class SecrecyUserClient {
11
11
  getReceivedInvitations(input: RouterInputs['contacts']['getReceivedInvitations']): Promise<RouterOutputs['contacts']['getReceivedInvitations']>;
12
12
  getSentInvitations(input: RouterInputs['contacts']['getSentInvitations']): Promise<RouterOutputs['contacts']['getSentInvitations']>;
13
13
  removeContact(input: RouterInputs['contacts']['removeContact']): Promise<RouterOutputs['contacts']['removeContact']>;
14
- changeContext(input: RouterInputs['auth']['changeContext']): Promise<RouterOutputs['auth']['changeContext']>;
15
14
  }
@@ -26,7 +26,7 @@ export declare class SecrecyClient extends BaseClient {
26
26
  mail: SecrecyMailClient;
27
27
  app: SecrecyAppClient;
28
28
  db: SecrecyDbClient;
29
- org: SecrecyOrganizationClient;
29
+ organization: SecrecyOrganizationClient;
30
30
  wallet: SecrecyWalletClient;
31
31
  pay: SecrecyPayClient;
32
32
  user: SecrecyUserClient;
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.66.0",
5
+ "version": "1.67.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"