@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.
- package/CHANGELOG.md +16 -0
- package/buf.yaml +1 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/permissions_pb.d.ts +45 -35
- package/gen-proto/permissions_pb.js +130 -64
- package/package.json +2 -2
- package/proto/permissions.proto +11 -9
package/proto/permissions.proto
CHANGED
|
@@ -3,29 +3,31 @@ syntax = "proto3";
|
|
|
3
3
|
package checkpermission;
|
|
4
4
|
|
|
5
5
|
message CheckPermissionRequest {
|
|
6
|
-
string
|
|
7
|
-
string
|
|
6
|
+
string siteId = 1;
|
|
7
|
+
string accountId = 2;
|
|
8
8
|
string action = 3;
|
|
9
|
-
string
|
|
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
|
|
16
|
-
repeated string
|
|
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
|
|
21
|
-
string
|
|
22
|
-
optional string
|
|
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
|
|
29
|
+
repeated string assetScopes = 2;
|
|
30
|
+
map<string, string> assetScopesRules = 3;
|
|
29
31
|
}
|
|
30
32
|
map<string, Permissions> permissions = 1;
|
|
31
33
|
}
|