livebook/proto/messages.proto

34 lines
400 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
message User {
string id = 1;
string email = 2;
}
message Error {
string details = 1;
}
message SessionRequest {
string app_version = 1;
}
message SessionResponse {
string id = 1;
User user = 2;
}
message Request {
oneof type {
SessionRequest session = 1;
}
}
message Response {
oneof type {
Error error = 1;
SessionResponse session = 2;
}
}