Skip to content

Commit

Permalink
Merge branch 'app-2508' into app-3239
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebriskin committed Nov 17, 2023
2 parents b9a833e + 2d35136 commit 04bf892
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

package viam.app.v1;

import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "tagger/v1/tagger.proto";
Expand Down Expand Up @@ -37,6 +38,12 @@ service AppService {
// Delete an organization
rpc DeleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse);

// Get user-defined metadata for an organization
rpc GetOrganizationMetadata(GetOrganizationMetadataRequest) returns (GetOrganizationMetadataResponse);

// Update user-defined metadata for an organization
rpc UpdateOrganizationMetadata(UpdateOrganizationMetadataRequest) returns (UpdateOrganizationMetadataResponse);

// List all members of an organization and all invited members to the organization.
rpc ListOrganizationMembers(ListOrganizationMembersRequest) returns (ListOrganizationMembersResponse);

Expand Down Expand Up @@ -69,6 +76,12 @@ service AppService {
// Delete a location
rpc DeleteLocation(DeleteLocationRequest) returns (DeleteLocationResponse);

// Get user-defined metadata for a location
rpc GetLocationMetadata(GetLocationMetadataRequest) returns (GetLocationMetadataResponse);

// Update user-defined metadata for a location
rpc UpdateLocationMetadata(UpdateLocationMetadataRequest) returns (UpdateLocationMetadataResponse);

// Get a list of locations
rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse);

Expand All @@ -91,6 +104,12 @@ service AppService {
// Get a specific robot by ID
rpc GetRobot(GetRobotRequest) returns (GetRobotResponse);

// Get user-defined metadata for a robot
rpc GetRobotMetadata(GetRobotMetadataRequest) returns (GetRobotMetadataResponse);

// Update user-defined metadata for an robot
rpc UpdateRobotMetadata(UpdateRobotMetadataRequest) returns (UpdateRobotMetadataResponse);

// Get Rover Rental Location Robots
rpc GetRoverRentalRobots(GetRoverRentalRobotsRequest) returns (GetRoverRentalRobotsResponse);

Expand All @@ -115,6 +134,12 @@ service AppService {
// Delete a robot part
rpc DeleteRobotPart(DeleteRobotPartRequest) returns (DeleteRobotPartResponse);

// Get user-defined metadata for a robot part
rpc GetRobotPartMetadata(GetRobotPartMetadataRequest) returns (GetRobotPartMetadataResponse);

// Update user-defined metadata for an robot part
rpc UpdateRobotPartMetadata(UpdateRobotPartMetadataRequest) returns (UpdateRobotPartMetadataResponse);

// Gets the Robot API Keys for the robot
rpc GetRobotAPIKeys(GetRobotAPIKeysRequest) returns (GetRobotAPIKeysResponse);

Expand Down Expand Up @@ -311,6 +336,21 @@ message DeleteOrganizationRequest {

message DeleteOrganizationResponse {}

message GetOrganizationMetadataRequest {
string organization_id = 1;
}

message GetOrganizationMetadataResponse {
map<string, google.protobuf.Any> data = 1;
}

message UpdateOrganizationMetadataRequest {
string organization_id = 1;
map<string, google.protobuf.Any> data = 2;
}

message UpdateOrganizationMetadataResponse {}

message ListOrganizationMembersRequest {
string organization_id = 1;
}
Expand Down Expand Up @@ -480,6 +520,21 @@ message DeleteLocationRequest {

message DeleteLocationResponse {}

message GetLocationMetadataRequest {
string location_id = 1;
}

message GetLocationMetadataResponse {
map<string, google.protobuf.Any> data = 1;
}

message UpdateLocationMetadataRequest {
string location_id = 1;
map<string, google.protobuf.Any> data = 2;
}

message UpdateLocationMetadataResponse {}

message ListLocationsRequest {
// Organization ID under which to list all locations.
string organization_id = 1;
Expand Down Expand Up @@ -635,6 +690,21 @@ message DeleteRobotPartRequest {
string part_id = 1;
}

message GetRobotPartMetadataRequest {
string id = 1;
}

message GetRobotPartMetadataResponse {
map<string, google.protobuf.Any> data = 1;
}

message UpdateRobotPartMetadataRequest {
string id = 1;
map<string, google.protobuf.Any> data = 2;
}

message UpdateRobotPartMetadataResponse {}

message GetRobotAPIKeysRequest {
string robot_id = 1;
}
Expand Down Expand Up @@ -745,6 +815,21 @@ message DeleteRobotRequest {

message DeleteRobotResponse {}

message GetRobotMetadataRequest {
string id = 1;
}

message GetRobotMetadataResponse {
map<string, google.protobuf.Any> data = 1;
}

message UpdateRobotMetadataRequest {
string id = 1;
map<string, google.protobuf.Any> data = 2;
}

message UpdateRobotMetadataResponse {}

message MarkPartAsMainRequest {
string part_id = 1;
}
Expand Down

0 comments on commit 04bf892

Please sign in to comment.