diff --git a/README.md b/README.md index a6f535d..f05bf2d 100644 --- a/README.md +++ b/README.md @@ -67,5 +67,6 @@ services that Sagittarius must implement as a server. ├── flow_definition - Defines a definition for a Flow ├── runtime_function_definition - Defines types for runtime functions ├── struct - Defines types for json representations - └── translation - Contains translations with country codes and translated messages + ├── translation - Contains translations with country codes and translated messages + └── version - Contains verion type for definitions ``` diff --git a/proto/sagittarius/sagittarius.text_execution.proto b/proto/sagittarius/sagittarius.text_execution.proto index 3b6fe5f..b3d65ed 100644 --- a/proto/sagittarius/sagittarius.text_execution.proto +++ b/proto/sagittarius/sagittarius.text_execution.proto @@ -22,6 +22,26 @@ message TestExecutionResponse { } message Log { + oneof kind { + ApplicationLog application_log = 1; + SuccessLog success_log = 2; + RuntimeErrorLog error_log = 3; + } +} + +message SuccessLog { + int64 note_id = 1; + shared.Value result = 2; +} + +message RuntimeErrorLog { + int64 note_id = 1; + string error_code = 2; + string error_message = 3; + optional string suggestion = 4; +} + +message ApplicationLog { string message = 1; string level = 2; string timestamp = 3;