Skip to content

Commit

Permalink
feat(frontier): list project groups
Browse files Browse the repository at this point in the history
- List all groups which has viewer access to project
- List organizations with user invitations
- Role scopes

Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Sep 22, 2023
1 parent 8ec78bf commit a5ec989
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 21 additions & 1 deletion raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,16 @@ service FrontierService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Project";
summary: "List project serviceusers"
description: "Returns a collection of users of a project. Filter by user permissions is supported.";
description: "Returns a collection of users of a project.";
};
}

rpc ListProjectGroups(ListProjectGroupsRequest) returns (ListProjectGroupsResponse) {
option (google.api.http) = {get: "/v1beta1/projects/{id}/groups"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Project";
summary: "List project groups"
description: "Returns a collection of groups of a project.";
};
}

Expand Down Expand Up @@ -1637,6 +1646,7 @@ message ListCurrentUserInvitationsRequest {}

message ListCurrentUserInvitationsResponse {
repeated Invitation invitations = 1;
repeated Organization orgs = 2;
}

// Serviceuser
Expand Down Expand Up @@ -1803,6 +1813,7 @@ message UpdateOrganizationRoleResponse {

message ListRolesRequest {
string state = 1;
repeated string scopes = 2;
}

message ListRolesResponse {
Expand All @@ -1812,6 +1823,7 @@ message ListRolesResponse {
message ListOrganizationRolesRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
string state = 2;
repeated string scopes = 3;
}

message ListOrganizationRolesResponse {
Expand Down Expand Up @@ -2179,6 +2191,14 @@ message ListProjectServiceUsersResponse {
repeated RolePair role_pairs = 2;
}

message ListProjectGroupsRequest {
string id = 1 [(validate.rules).string.min_len = 3];
}

message ListProjectGroupsResponse {
repeated Group groups = 1;
}

message EnableProjectRequest {
string id = 1;
}
Expand Down
2 changes: 2 additions & 0 deletions raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ message Role {
}];
string org_id = 9;
string state = 10;
repeated string scopes = 11;
}

message Organization {
Expand Down Expand Up @@ -540,6 +541,7 @@ message RoleRequestBody {
repeated string permissions = 3 [(validate.rules).repeated = {min_items: 1}];
google.protobuf.Struct metadata = 5;
string title = 6;
repeated string scopes = 7;
}

message PreferenceRequestBody {
Expand Down

0 comments on commit a5ec989

Please sign in to comment.