2022-07-30 14:35:38 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
package session;
|
|
|
|
|
|
|
|
service Session {
|
2022-09-24 01:14:12 +02:00
|
|
|
// rpc Authenticate(SessionRequest) returns (SessionResponse);
|
|
|
|
// rpc ListWorkspaces(SessionRequest) returns (WorkspaceList);
|
|
|
|
rpc CreateWorkspace(WorkspaceBuilderRequest) returns (SessionResponse);
|
2022-07-30 14:35:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message SessionRequest {
|
2022-07-31 13:44:48 +02:00
|
|
|
string sessionKey = 1;
|
2022-07-30 14:35:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message SessionResponse {
|
|
|
|
string sessionKey = 1;
|
|
|
|
bool accepted = 2;
|
|
|
|
}
|
2022-08-28 23:41:11 +02:00
|
|
|
|
2022-09-24 01:14:12 +02:00
|
|
|
message WorkspaceBuilderRequest {
|
|
|
|
string name = 1;
|
|
|
|
}
|
|
|
|
|
2022-08-28 23:41:11 +02:00
|
|
|
message WorkspaceList {
|
|
|
|
repeated string name = 1; // TODO add more fields
|
|
|
|
}
|