2024-03-09 18:45:32 +01:00
|
|
|
syntax = "proto2";
|
|
|
|
|
|
|
|
package common;
|
|
|
|
|
2024-09-05 00:08:07 +02:00
|
|
|
// The authentication token, as a string.
|
2024-08-21 21:38:36 +02:00
|
|
|
message Token {
|
|
|
|
required string token = 1;
|
|
|
|
}
|
|
|
|
|
2024-09-05 00:08:07 +02:00
|
|
|
// Message representing a UUID.
|
2024-03-09 18:45:32 +01:00
|
|
|
message Identity {
|
2024-09-05 00:08:07 +02:00
|
|
|
// The most significant bits of the UUID.
|
2024-08-21 20:16:14 +02:00
|
|
|
required uint64 hi = 1;
|
2024-09-05 00:08:07 +02:00
|
|
|
// The least significant bits of the UUID.
|
2024-08-21 20:16:14 +02:00
|
|
|
required uint64 lo = 2;
|
2024-03-09 18:45:32 +01:00
|
|
|
}
|
|
|
|
|
2024-09-05 00:08:07 +02:00
|
|
|
// Message representing a user.
|
2024-08-21 21:38:36 +02:00
|
|
|
message User {
|
2024-09-05 00:08:07 +02:00
|
|
|
// The UUID of the user.
|
2024-08-21 21:38:36 +02:00
|
|
|
required Identity id = 1;
|
2024-09-05 00:08:07 +02:00
|
|
|
// The name of a user.
|
2024-08-22 01:01:17 +02:00
|
|
|
required string name = 2;
|
2024-03-09 18:45:32 +01:00
|
|
|
}
|
|
|
|
|
2024-09-05 00:08:07 +02:00
|
|
|
// A generic empty message.
|
2024-03-09 18:45:32 +01:00
|
|
|
message Empty { }
|