mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-25 19:29:49 +00:00
27 lines
393 B
Protocol Buffer
27 lines
393 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package zed.messages;
|
||
|
|
||
|
message FromClient {
|
||
|
int32 id = 1;
|
||
|
|
||
|
oneof variant {
|
||
|
Auth auth = 2;
|
||
|
}
|
||
|
|
||
|
message Auth {
|
||
|
int32 user_id = 1;
|
||
|
string access_token = 2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
message FromServer {
|
||
|
optional int32 request_id = 1;
|
||
|
|
||
|
oneof variant {
|
||
|
Ack ack = 2;
|
||
|
}
|
||
|
|
||
|
message Ack {
|
||
|
optional string error_message = 1;
|
||
|
}
|
||
|
}
|