Skip to content

Commit

Permalink
add pagination parameters for ListProjectsByCurrentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanGIT07 committed Dec 18, 2024
1 parent 251281a commit 59b9faf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2579,6 +2579,7 @@ message ListOrganizationsByUserResponse {

message ListOrganizationsByCurrentUserRequest {
string state = 1;

}

message ListOrganizationsByCurrentUserResponse {
Expand Down Expand Up @@ -2612,6 +2613,21 @@ message ListProjectsByCurrentUserRequest {
bool non_inherited = 3;

bool with_member_count = 4;

int32 page_size = 5 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The maximum number of users to return per page. The default is 50."}
];
int32 page_num = 6 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The page number to return. The default is 1."}
];
}

message ListProjectsByCurrentUserResponse {
Expand All @@ -2622,6 +2638,7 @@ message ListProjectsByCurrentUserResponse {
repeated string permissions = 2;
}
repeated AccessPair access_pairs = 2;
int32 count = 3;
}

message EnableUserRequest {
Expand Down

0 comments on commit 59b9faf

Please sign in to comment.