2024-03-09 18:45:32 +01:00
|
|
|
syntax = "proto2";
|
|
|
|
|
|
|
|
package common;
|
|
|
|
|
2024-08-21 21:38:36 +02:00
|
|
|
// authentication token, probably a JWT but should be treated as a raw string
|
|
|
|
message Token {
|
|
|
|
required string token = 1;
|
|
|
|
}
|
|
|
|
|
2024-03-09 18:45:32 +01:00
|
|
|
// a wrapper payload representing an uuid
|
|
|
|
message Identity {
|
2024-08-21 20:16:14 +02:00
|
|
|
required uint64 hi = 1;
|
|
|
|
required uint64 lo = 2;
|
2024-03-09 18:45:32 +01:00
|
|
|
}
|
|
|
|
|
2024-08-21 21:38:36 +02:00
|
|
|
message User {
|
|
|
|
required Identity id = 1;
|
2024-08-22 01:01:17 +02:00
|
|
|
required string name = 2;
|
2024-03-09 18:45:32 +01:00
|
|
|
}
|
|
|
|
|
2024-08-22 01:01:17 +02:00
|
|
|
// generic Empty message
|
2024-03-09 18:45:32 +01:00
|
|
|
message Empty { }
|