Skip to content

Commit bc0b39a

Browse files
adding RpcPayloadType enum
1 parent 6c9eb95 commit bc0b39a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

protobufs/livekit_models.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ message ChatMessage {
451451
bool generated = 6; // true if the chat message has been generated by an agent from a participant's audio transcription
452452
}
453453

454+
enum RpcPayloadType {
455+
UNCOMPRESSED = 0;
456+
GZIP = 1;
457+
}
458+
454459
message RpcRequest {
455460
string id = 1;
456461
string method = 2;
@@ -459,6 +464,8 @@ message RpcRequest {
459464
uint32 version = 5;
460465
// Compressed payload data. When set, this field is used instead of `payload`.
461466
bytes compressed_payload = 6;
467+
// Indicates the compression type used for compressed_payload.
468+
RpcPayloadType payload_type = 7;
462469
}
463470

464471
message RpcAck {
@@ -473,6 +480,8 @@ message RpcResponse {
473480
// Compressed payload data. When set, this field is used instead of `payload`.
474481
bytes compressed_payload = 4;
475482
}
483+
// Indicates the compression type used for compressed_payload.
484+
RpcPayloadType payload_type = 5;
476485
}
477486

478487
message RpcError {

0 commit comments

Comments
 (0)