diff --git a/proto/viam/robot/v1/robot.proto b/proto/viam/robot/v1/robot.proto index bc247f79..23a1c856 100644 --- a/proto/viam/robot/v1/robot.proto +++ b/proto/viam/robot/v1/robot.proto @@ -149,6 +149,13 @@ service RobotService { get: "/viam/api/v1/machine_status" }; } + + // GetVersion returns version information about the robot. + rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) { + option (google.api.http) = { + get: "/viam/api/v1/version" + }; + } } message FrameSystemConfig { @@ -409,3 +416,15 @@ message ConfigStatus { // config ingestion timestamp. google.protobuf.Timestamp last_updated = 2; } + +message GetVersionRequest {} + +message GetVersionResponse { + // platform type of viam-server, either rdk or micro-rdk. + string platform = 1; + + // version of viam-server. If built without a version, it will be dev-. + string version = 2; + + string api_version = 3; +}