syntax = "proto2";

package maps_adv.warden.proto.tasks;

import "google/protobuf/timestamp.proto";

message CreateTaskInput {
    required string type_name = 1;
    required string executor_id = 2;
    optional string metadata = 3;
}

message UpdateTaskInput {
    required string type_name = 1;
    required uint64 task_id = 2;
    required string executor_id = 3;
    required string status = 4;
    optional string metadata = 5;
}

message TaskDetails {
    required uint64 task_id = 1;
    required string status = 2;
    required uint64 time_limit = 3;
    optional string metadata = 4;
}

message UpdateTaskOutput {
    optional google.protobuf.Timestamp scheduled_time = 1;
}