Skip to content

Commit 6e096e9

Browse files
committed
oneof adjust
1 parent d100c4c commit 6e096e9

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

tcnapi/exile/gate/v2/entities.proto

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,30 @@ message ExileTransferInstance {
169169
int64 pending_duration_microseconds = 26;
170170

171171
message Source {
172-
string partner_agent_id = 1;
173-
int64 call_sid = 2;
174-
string call_type = 3;
175-
int64 conversation_id = 4;
176-
int64 session_sid = 5;
177-
string user_id = 6;
172+
Call call = 1;
173+
Agent agent = 2;
178174
}
179175
message Destination {
180-
string partner_agent_id = 1;
181-
int64 call_sid = 2;
182-
string call_type = 3;
183-
int64 conversation_id = 4;
184-
string phone_number = 5;
185-
int64 session_sid = 6;
176+
oneof entity {
177+
Call call = 1;
178+
Agent agent = 2;
179+
Phone phone = 3;
180+
}
186181
map<string, bool> skills = 7;
187182
}
183+
message Call {
184+
int64 call_sid = 1;
185+
string call_type = 2;
186+
int64 conversation_id = 3;
187+
}
188+
message Agent {
189+
int64 session_sid = 1;
190+
string partner_agent_id = 2;
191+
string user_id = 3;
192+
}
193+
message Phone {
194+
string phone_number = 1;
195+
}
188196
enum TransferType {
189197
TRANSFER_TYPE_UNSPECIFIED = 0;
190198
WARM_AGENT = 1;

0 commit comments

Comments
 (0)