Skip to content

Commit 4921022

Browse files
authored
Merge pull request #25 from tcncloud/recording-segments
Recording segments
2 parents 65440de + 459b535 commit 4921022

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
version: v2
33
deps:
44
- name: buf.build/googleapis/googleapis
5-
commit: 61b203b9a9164be9a834f58c37be6f62
6-
digest: b5:7811a98b35bd2e4ae5c3ac73c8b3d9ae429f3a790da15de188dc98fc2b77d6bb10e45711f14903af9553fa9821dff256054f2e4b7795789265bc476bec2f088c
5+
commit: 72c8614f3bd0466ea67931ef2c43d608
6+
digest: b5:13efeea24e633fd45327390bdee941207a8727e96cf01affb84c1e4100fd8f48a42bbd508df11930cd2884629bafad685df1ac3111bc78cdaefcd38c9371c6b1

tcnapi/exile/gate/v2/public.proto

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ service GateService {
300300
body: "*"
301301
};
302302
}
303+
rpc CreateRecordingLabel(CreateRecordingLabelRequest) returns (CreateRecordingLabelResponse) {
304+
option (google.api.http) = {
305+
post: "/tcnapi/exile/gate/v2/create_recording_label"
306+
body: "*"
307+
};
308+
}
303309
rpc Transfer(TransferRequest) returns (TransferResponse) {
304310
option (google.api.http) = {
305311
get: "/tcnapi/exile/gate/v2/transfer"
@@ -1356,6 +1362,14 @@ message UnassignAgentSkillRequest {
13561362
}
13571363
message UnassignAgentSkillResponse {}
13581364

1365+
message CreateRecordingLabelRequest {
1366+
int64 call_sid = 1;
1367+
CallType call_type = 2;
1368+
string key = 3;
1369+
string value = 4;
1370+
}
1371+
message CreateRecordingLabelResponse {}
1372+
13591373
/**
13601374
* Request message for searching voice recordings.
13611375
*/
@@ -1374,23 +1388,25 @@ message SearchVoiceRecordingsResponse {
13741388
* Message representing a voice recording.
13751389
*/
13761390
message Recording {
1377-
string name = 1; // The fully qualified resource name of the recording. Format: "orgs/{org}/regions/{region}/zones/{zone}/recordings/{recording}"
1391+
string recording_id = 1; // The fully qualified resource name of the recording. Format: "orgs/{org}/regions/{region}/zones/{zone}/recordings/{recording}"
13781392
int64 call_sid = 2; // The unique identifier of the call recorded.
13791393
CallType call_type = 3; // The type of call recorded.
1380-
google.protobuf.Duration duration = 4; // The duration of the recording.
1381-
string agent_phone = 5; // The phone number of the agent.
1382-
string client_phone = 6; // The phone number of the client.
1383-
string campaign = 7; // The name of the campaign.
1384-
RecordingType recording_type = 8; // The type of the recording.
1394+
google.protobuf.Duration start_offset = 10;
1395+
google.protobuf.Duration end_offset = 11;
13851396
google.protobuf.Timestamp start_time = 9; // The start time of the recording.
1386-
repeated string partner_agent_ids = 10; // The user IDs of participating agents.
13871397
}
13881398

13891399
/**
13901400
* Request message for getting a voice recording download link.
13911401
*/
13921402
message GetVoiceRecordingDownloadLinkRequest {
13931403
string recording_id = 1; // The ID of the recording to get the download link for
1404+
// the offset from the start of the recording to get the link for
1405+
// must be from the recording segments returned from the ListRecordingSegmentsRequest
1406+
google.protobuf.Duration start_offset = 2;
1407+
// the offset from the end of the recording to get the link for
1408+
// must be from the recording segments returned from the ListRecordingSegmentsRequest
1409+
google.protobuf.Duration end_offset = 2;
13941410
}
13951411

13961412
/**

0 commit comments

Comments
 (0)