2022-11-04 00:49:07 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message User {
|
2022-11-29 07:47:25 +08:00
|
|
|
int32 id = 1;
|
2022-11-04 00:49:07 +08:00
|
|
|
string email = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Error {
|
|
|
|
string details = 1;
|
|
|
|
}
|
|
|
|
|
2022-12-27 08:16:47 +08:00
|
|
|
message SecretCreated {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SecretUpdated {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2022-11-04 00:49:07 +08:00
|
|
|
message SessionRequest {
|
|
|
|
string app_version = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SessionResponse {
|
|
|
|
string id = 1;
|
|
|
|
User user = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Request {
|
2022-12-21 22:28:27 +08:00
|
|
|
int32 id = 1;
|
|
|
|
|
2022-11-04 00:49:07 +08:00
|
|
|
oneof type {
|
2022-12-21 22:28:27 +08:00
|
|
|
SessionRequest session = 2;
|
2022-11-04 00:49:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message Response {
|
2022-12-21 22:28:27 +08:00
|
|
|
int32 id = 1;
|
|
|
|
|
2022-11-04 00:49:07 +08:00
|
|
|
oneof type {
|
2022-12-21 22:28:27 +08:00
|
|
|
Error error = 2;
|
2022-11-04 00:49:07 +08:00
|
|
|
|
2022-12-21 22:28:27 +08:00
|
|
|
SessionResponse session = 3;
|
2022-11-04 00:49:07 +08:00
|
|
|
}
|
|
|
|
}
|
2022-12-27 08:16:47 +08:00
|
|
|
|
|
|
|
message Event {
|
|
|
|
oneof type {
|
|
|
|
SecretCreated secret_created = 100;
|
|
|
|
SecretUpdated secret_updated = 101;
|
|
|
|
}
|
|
|
|
}
|