@@ -128,6 +128,40 @@ message ExileTelephonyResult {
128128 }
129129}
130130
131+ message ExileTask {
132+ int64 task_sid = 1 ;
133+ int64 task_group_sid = 2 ;
134+
135+ repeated google.protobuf.Value task_data_keys = 3 ;
136+ repeated google.protobuf.Value task_data_values = 4 ;
137+
138+ google.protobuf.Timestamp create_time = 5 ;
139+ google.protobuf.Timestamp update_time = 6 ;
140+
141+ string pool_id = 7 ;
142+ string record_id = 8 ;
143+
144+ TaskStatus status = 9 ;
145+ ExileTelephonyResult.Result result = 10 ;
146+
147+ int64 attempts = 11 ;
148+
149+ int64 client_sid = 12 ;
150+ string org_id = 13 ;
151+
152+ enum TaskStatus {
153+ TASK_UNKNOWN = 0 ;
154+ TASK_SCHEDULED = 2100 ; // "TASK_SCHEDULED", "Task is waiting for scheduler"),
155+ TASK_WAITING = 2110 ; // "TASK_WAITING", "Task was running and is waiting to send next call"),
156+ TASK_PREPARING = 2120 ; // "TASK_PREPARING", " Task is currently beeing prepared by the scheduler"),
157+ TASK_RUNNING = 2200 ; // "TASK_RUNNING", "Task is currently executing calls"),
158+ TASK_COMPLETED = 2300 ; // "TASK_COMPLETED", "Task was completed normally"),
159+ TASK_CANCELLED_TIMEOUT = 2310 ; // "TASK_CANCELLED_TIMEOUT", "Task was cancelled due to time restrictions"),
160+ TASK_CANCELLED_USER = 2320 ; // "TASK_CANCELLED_USER", "Task was cancelled by login belonging to client"),
161+ TASK_CANCELLED_ADMIN = 2330 ; // "TASK_CANCELLED_ADMIN", "Task was cancelled by some login not belonging to client
162+ }
163+ }
164+
131165message ExileAgentResponse {
132166 int64 agent_call_response_sid = 1 ;
133167 int64 call_sid = 2 ;
0 commit comments