36 lines
747 B
Protocol Buffer
36 lines
747 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package it0.comm;
|
|
|
|
service CommService {
|
|
rpc SendMessage (SendMessageRequest) returns (SendMessageResponse);
|
|
rpc TriggerEscalation (TriggerEscalationRequest) returns (TriggerEscalationResponse);
|
|
}
|
|
|
|
message SendMessageRequest {
|
|
string tenant_id = 1;
|
|
string channel = 2;
|
|
string priority = 3;
|
|
string content = 4;
|
|
string contact_id = 5;
|
|
map<string, string> callback_context = 6;
|
|
}
|
|
|
|
message SendMessageResponse {
|
|
string message_id = 1;
|
|
string delivery_status = 2;
|
|
}
|
|
|
|
message TriggerEscalationRequest {
|
|
string tenant_id = 1;
|
|
string execution_id = 2;
|
|
string order_id = 3;
|
|
string severity = 4;
|
|
string situation = 5;
|
|
}
|
|
|
|
message TriggerEscalationResponse {
|
|
bool success = 1;
|
|
string escalation_id = 2;
|
|
}
|