codemp-proto/proto/common.proto

23 lines
390 B
Protocol Buffer
Raw Normal View History

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