mirror of
https://github.com/hexedtech/codemp-proto.git
synced 2024-12-23 13:54:53 +01:00
feat: Separate ListWorkspaces into FetchInvitedWorkspaces and FetchOwnedWorkspaces
This commit is contained in:
parent
5c9b5ee78d
commit
51f6bb16e4
1 changed files with 11 additions and 5 deletions
|
@ -12,8 +12,10 @@ service Session {
|
||||||
rpc CreateWorkspace (WorkspaceRequest) returns (common.Empty);
|
rpc CreateWorkspace (WorkspaceRequest) returns (common.Empty);
|
||||||
// Delete a workspace.
|
// Delete a workspace.
|
||||||
rpc DeleteWorkspace (WorkspaceRequest) returns (common.Empty);
|
rpc DeleteWorkspace (WorkspaceRequest) returns (common.Empty);
|
||||||
// List all available workspaces.
|
// List all workspaces the user has been invited to.
|
||||||
rpc ListWorkspaces (common.Empty) returns (WorkspaceList);
|
rpc FetchInvitedWorkspaces (common.Empty) returns (WorkspacesInvitedList);
|
||||||
|
//List all workspaces the user owns
|
||||||
|
rpc FetchOwnedWorkspaces (common.Empty) returns (WorkspacesOwnedList);
|
||||||
// Handle a workspace invite request.
|
// Handle a workspace invite request.
|
||||||
rpc InviteToWorkspace (InviteRequest) returns (common.Empty);
|
rpc InviteToWorkspace (InviteRequest) returns (common.Empty);
|
||||||
}
|
}
|
||||||
|
@ -25,11 +27,15 @@ message WorkspaceRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// A message representing a list of workspaces.
|
// A message representing a list of workspaces.
|
||||||
message WorkspaceList {
|
message WorkspacesInvitedList {
|
||||||
|
// A vector of workspaces the user is invited to.
|
||||||
|
repeated string invited = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// A message representing a list of workspaces.
|
||||||
|
message WorkspacesOwnedList {
|
||||||
// A vector of workspaces owned by the user.
|
// A vector of workspaces owned by the user.
|
||||||
repeated string owned = 1;
|
repeated string owned = 1;
|
||||||
// A vector of workspaces the user is invited to.
|
|
||||||
repeated string invited = 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// A message representing an invitation to a workspace.
|
// A message representing an invitation to a workspace.
|
||||||
|
|
Loading…
Reference in a new issue