syntax = "proto3";
package qpq.v1;

// Device register/list/revoke (3 methods).
// Method IDs: 700-702.

message RegisterDeviceRequest {
  bytes device_id = 1;
  string device_name = 2;
}

message RegisterDeviceResponse {
  bool success = 1;
}

message ListDevicesRequest {}

message ListDevicesResponse {
  repeated Device devices = 1;
}

message Device {
  bytes device_id = 1;
  string device_name = 2;
  uint64 registered_at = 3;
}

message RevokeDeviceRequest {
  bytes device_id = 1;
}

message RevokeDeviceResponse {
  bool success = 1;
}
