codemp-proto/proto/common.proto

23 lines
391 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;
2024-08-22 01:01:17 +02:00
required string name = 2;
}
2024-08-22 01:01:17 +02:00
// generic Empty message
message Empty { }