Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP-6392: Update fragment protos #573

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,25 @@ enum FragmentVisibility {
FRAGMENT_VISIBILITY_PUBLIC_UNLISTED = 3;
}

message FragmentError {
FragmentErrorType error_type = 1;
string fragment_id = 2;
string detail = 3;
}

enum FragmentErrorType {
FRAGMENT_ERROR_TYPE_UNSPECIFIED = 0;
FRAGMENT_ERROR_TYPE_NO_ACCESS = 1;
FRAGMENT_ERROR_TYPE_NESTING_LIMIT_EXCEEDED = 2;
FRAGMENT_ERROR_TYPE_CHILD_ID_INVALID = 3;
FRAGMENT_ERROR_TYPE_DUPLICATE_NAMES = 4;
}

message FragmentTrees {
repeated string fragment_merge_order = 1;
repeated FragmentError errors = 2;
}

message ListFragmentsRequest {
string organization_id = 1;
bool show_public = 2;
Expand Down Expand Up @@ -818,6 +837,7 @@ message ListMachineFragmentsRequest {

message ListMachineFragmentsResponse {
repeated Fragment fragments = 1;
FragmentTrees fragment_trees = 2;
}

message ListRobotsResponse {
Expand Down
Loading