Skip to content

Commit

Permalink
feat: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-goetz committed Jan 5, 2025
1 parent aff7355 commit 27671f7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
1 change: 1 addition & 0 deletions build/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fn main() -> Result<()> {
"datatype_definition.proto",
"runtime_function_definition.proto",
"translations.proto",
"event.proto"
];

let inclusions = &[
Expand Down
27 changes: 21 additions & 6 deletions proto/aquila/action_communication.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
syntax = "proto3";

import "google/protobuf/struct.proto";
import "runtime_function_definition.proto";
import "datatype_definition.proto";
import "translations.proto";
import "event.proto";

option ruby_package = "Tucana::Aquila";

Expand All @@ -11,15 +15,26 @@ message Event {
// Id of Event type
string event_type = 1;
// Payload (JSON) of event params
string payload = 2;
google.protobuf.Value payload = 2;
}

// Action flow/event configuration
message Configuration {
// Action identifier
string identifier = 1;
// Configuration
repeated shared.RuntimeFunctionDefinition function_definition = 2;
// Flow Configuration
repeated shared.RuntimeFunctionDefinition function_definitions = 2;
// Event Configuration
repeated shared.EventType event_types = 3;
// Application Configuration
repeated ActionConfiguration action_configurations = 4;
}

message ActionConfiguration {
repeated shared.Translation name = 1;
repeated shared.Translation description = 2;
shared.DataType type = 3;
optional google.protobuf.Value default_value = 4;
}

// Request to execute a request a flow
Expand All @@ -28,16 +43,16 @@ message ExecutionRequest {
string execution_identifier = 1;
// Function identifier of flow to execute
string function_identifier = 2;
// Parameters of flow required to execute
repeated string parameters = 3;
// Parameters (JSON) of flow required to execute
google.protobuf.Struct parameters = 3;
}

// Result from executed flows by an action
message ExecutionResult {
// Identifier of flow to execute
string execution_identifier = 1;
// Result of executed flow
repeated string result = 2;
google.protobuf.Value result = 2;
}

message TransferRequest {
Expand Down
28 changes: 28 additions & 0 deletions proto/shared/event.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
syntax = "proto3";

import "google/protobuf/struct.proto";
import "translations.proto";
import "datatype_definition.proto";

option ruby_package = "Tucana::Shared";

package shared;

message EventDefinitionSettings {
repeated Translation name = 1;
bool unique = 2;
repeated Translation description = 3;
DataType type = 4;
optional google.protobuf.Value default_value = 5;
}

message EventDefinition {
repeated EventDefinitionSettings settings = 1;
DataType input_type = 2;
bool editable = 3;
}

message EventType {
repeated Translation name = 1;
EventDefinition definition = 2;
}

0 comments on commit 27671f7

Please sign in to comment.