@getpara/user-management-client 2.14.0 → 2.16.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.
@@ -827,6 +827,12 @@ class Client {
827
827
  return res;
828
828
  });
829
829
  }
830
+ getPolicyPermissions(userId, policyId) {
831
+ return __async(this, null, function* () {
832
+ const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions`);
833
+ return res.data;
834
+ });
835
+ }
830
836
  acceptScopes(userId, walletId, body) {
831
837
  return __async(this, null, function* () {
832
838
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/scopes/accept`, body);
@@ -750,6 +750,12 @@ class Client {
750
750
  return res;
751
751
  });
752
752
  }
753
+ getPolicyPermissions(userId, policyId) {
754
+ return __async(this, null, function* () {
755
+ const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions`);
756
+ return res.data;
757
+ });
758
+ }
753
759
  acceptScopes(userId, walletId, body) {
754
760
  return __async(this, null, function* () {
755
761
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/scopes/accept`, body);
@@ -319,6 +319,9 @@ declare class Client {
319
319
  tempTrasmissionInit(message: string, userId?: string): Promise<AxiosResponse<any, any>>;
320
320
  tempTrasmission(id: string): Promise<AxiosResponse<any, any>>;
321
321
  getPartner(partnerId: string): Promise<AxiosResponse<any, any>>;
322
+ getPolicyPermissions(userId: string, policyId: string): Promise<{
323
+ allAccepted: boolean;
324
+ }>;
322
325
  acceptScopes(userId: string, walletId: string, body: AcceptScopesBody): Promise<AxiosResponse<any, any>>;
323
326
  getPendingTransaction(userId: string, pendingTransactionId: string): Promise<AxiosResponse<any, any>>;
324
327
  acceptPendingTransaction(userId: string, pendingTransactionId: string): Promise<AxiosResponse<any, any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "2.14.0",
3
+ "version": "2.16.0",
4
4
  "dependencies": {
5
5
  "@getpara/shared": "1.11.0",
6
6
  "axios": "^1.8.4",
@@ -20,7 +20,7 @@
20
20
  "dist",
21
21
  "package.json"
22
22
  ],
23
- "gitHead": "8ac7cfbe3b106a42e53f6e5439f484ab11b0e1f3",
23
+ "gitHead": "fbe96a062b308d04105213378c12c38ee973c798",
24
24
  "main": "dist/cjs/index.js",
25
25
  "module": "dist/esm/index.js",
26
26
  "scripts": {