Skip to content

Commit

Permalink
πŸ”„ Synced file(s) with polarsignals/polarsignals
Browse files Browse the repository at this point in the history
  • Loading branch information
manojVivek committed Oct 27, 2023
1 parent 9fb23b6 commit 755dfcf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions polarsignals/user/v1alpha1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ service UserService {
body: "*"
};
}

// ListSharedProfiles returns the list of profiles shared by the authenticated user.
rpc ListSharedProfiles(ListSharedProfilesRequest) returns (ListSharedProfilesResponse) {
option (google.api.http) = {get: "/v1/self/shared-profiles"};
}
}

// User represents a user.
Expand Down Expand Up @@ -58,3 +63,24 @@ message UpdateSelfRequest {

// UpdateSelfResponse is the response for the UpdateSelf method.
message UpdateSelfResponse {}

message ListSharedProfilesRequest {}

message SharedProfile {
// The unique identifier of the profile.
string id = 1;
// The pprof.me slug of the profile
string slug = 2;
// the description of the profile.
string description = 3;
// The user who created the profile.
string user_id = 4;
// The time when the profile was created.
google.protobuf.Timestamp created_at = 5;
// The time when the profile was last updated.
google.protobuf.Timestamp updated_at = 6;
}

message ListSharedProfilesResponse {
repeated SharedProfile shared_profiles = 1;
}

0 comments on commit 755dfcf

Please sign in to comment.