@lansweeper/permissions-grpc 0.0.6 → 0.0.8

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.
@@ -3,29 +3,31 @@ syntax = "proto3";
3
3
  package checkpermission;
4
4
 
5
5
  message CheckPermissionRequest {
6
- string site_id = 1;
7
- string account_id = 2;
6
+ string siteId = 1;
7
+ string accountId = 2;
8
8
  string action = 3;
9
- string trace_id = 4;
9
+ string traceId = 4;
10
10
  }
11
11
 
12
12
  message CheckPermissionResponse {
13
13
  bool granted = 1;
14
14
  repeated string installations = 2;
15
- repeated string asset_scopes = 3;
16
- repeated string derived_permissions = 4;
15
+ repeated string assetScopes = 3;
16
+ repeated string derivedPermissions = 4;
17
+ map<string, string> assetScopesRules = 5;
17
18
  }
18
19
 
19
20
  message GetUserPermissionsRequest {
20
- string user_id = 1;
21
- string site_id = 2;
22
- optional string trace_id = 3;
21
+ string userId = 1;
22
+ string siteId = 2;
23
+ optional string traceId = 3;
23
24
  }
24
25
 
25
26
  message GetUserPermissionsResponse {
26
27
  message Permissions {
27
28
  repeated string installations = 1;
28
- repeated string asset_scopes = 2;
29
+ repeated string assetScopes = 2;
30
+ map<string, string> assetScopesRules = 3;
29
31
  }
30
32
  map<string, Permissions> permissions = 1;
31
33
  }