Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions colink_policy_module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";
package colink_policy_module;

import "google/protobuf/wrappers.proto";

message Rule {
string rule_id = 1;
TaskFilter task_filter = 2;
string action = 3;
int32 priority = 4;
}

message TaskFilter {
string task_id = 1;
string protocol_name = 2;
repeated string participants = 3;
string role = 4;
TaskFilter parent_task_filter = 5;
google.protobuf.BoolValue require_agreement = 6;
}

message Settings {
bool enable = 1;
repeated Rule rules = 2;
}
25 changes: 25 additions & 0 deletions colink_remote_storage.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";
package remote_storage;

message CreateParams {
string remote_key_name = 1;
bool is_public = 2;
bytes payload = 3;
}

message ReadParams {
string remote_key_name = 1;
bool is_public = 2;
string holder_id = 3;
}

message UpdateParams {
string remote_key_name = 1;
bool is_public = 2;
bytes payload = 3;
}

message DeleteParams {
string remote_key_name = 1;
bool is_public = 2;
}