Skip to content

Commit 729248b

Browse files
committed
Refactor ExileTransferInstance messages for clarity and consistency
Updated the ExileTransferInstance message structure by renaming and reorganizing nested messages. Changed 'Call' to 'SourceCall' and 'DestinationCall', 'Agent' to 'DestinationAgent', and 'Phone' to 'DestinationPhoneNumber' for improved clarity. This enhances the overall readability and maintainability of the proto definitions.
1 parent 6e096e9 commit 729248b

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

tcnapi/exile/gate/v2/entities.proto

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,28 +169,34 @@ message ExileTransferInstance {
169169
int64 pending_duration_microseconds = 26;
170170

171171
message Source {
172-
Call call = 1;
173-
Agent agent = 2;
172+
SourceCall call = 1;
173+
message SourceCall {
174+
string partner_agent_id = 1;
175+
string user_id = 2;
176+
string call_type = 3;
177+
int64 conversation_id = 4;
178+
string session_id = 5;
179+
}
174180
}
175181
message Destination {
176182
oneof entity {
177-
Call call = 1;
178-
Agent agent = 2;
179-
Phone phone = 3;
183+
DestinationCall call = 1;
184+
DestinationAgent agent = 2;
185+
DestinationPhoneNumber phone = 3;
180186
}
181187
map<string, bool> skills = 7;
182188
}
183-
message Call {
189+
message DestinationCall {
184190
int64 call_sid = 1;
185191
string call_type = 2;
186192
int64 conversation_id = 3;
187193
}
188-
message Agent {
194+
message DestinationAgent {
189195
int64 session_sid = 1;
190196
string partner_agent_id = 2;
191197
string user_id = 3;
192198
}
193-
message Phone {
199+
message DestinationPhoneNumber {
194200
string phone_number = 1;
195201
}
196202
enum TransferType {

0 commit comments

Comments
 (0)