mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-23 14:27:15 +08:00
34 lines
400 B
Protocol Buffer
34 lines
400 B
Protocol Buffer
|
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;
|
||
|
}
|
||
|
}
|