Skip to content

Commit

Permalink
snake
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Nov 25, 2024
1 parent faaaf56 commit 1a09456
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions protobufs/livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -615,40 +615,40 @@ message DataStream {

// header properties specific to text streams
message TextHeader {
OperationType operationType = 1;
OperationType operation_type = 1;
int32 version = 2; // Optional: Version for updates/edits
string replyToStreamId = 3; // Optional: Reply to specific message
repeated string attachedStreamIds = 4;
string reply_to_stream_id = 3; // Optional: Reply to specific message
repeated string attached_stream_ids = 4;
bool generated = 5; // true if the text has been generated by an agent from a participant's audio transcription

}

// header properties specific to file or image streams
message FileHeader {
string fileName = 1; // name of the file
string file_name = 1; // name of the file
}

// main DataStream.Header that contains a oneof for specific headers
message Header {
string streamId = 1; // unique identifier for this data stream
string stream_id = 1; // unique identifier for this data stream
int64 timestamp = 2; // using int64 for Unix timestamp
string topic = 3;
string mimeType = 4;
optional uint64 totalLength = 5; // only populated for finite streams, if it's a stream of unknown size this stays empty
optional uint64 totalChunks = 6; // only populated for finite streams, if it's a stream of unknown size this stays empty
Encryption.Type encryptionType = 7; // defaults to NONE
string mime_type = 4;
optional uint64 total_length = 5; // only populated for finite streams, if it's a stream of unknown size this stays empty
optional uint64 total_chunks = 6; // only populated for finite streams, if it's a stream of unknown size this stays empty
Encryption.Type encryption_type = 7; // defaults to NONE
map<string, string> extensions = 8; // user defined extensions map that can carry additional info

// oneof to choose between specific header types
oneof content_header {
TextHeader textHeader = 9;
FileHeader fileHeader = 10;
TextHeader text_header = 9;
FileHeader file_header = 10;
}
}

message Chunk {
string streamId = 1; // unique identifier for this data stream to map it to the correct header
uint64 chunkIndex = 2;
string stream_id = 1; // unique identifier for this data stream to map it to the correct header
uint64 chunk_index = 2;
bytes content = 3; // content as binary (bytes)
bool complete = 4; // true only if this is the last chunk of this stream - can also be sent with empty content
optional bytes iv = 5; // optional, initialization vector for AES-GCM encryption
Expand Down

0 comments on commit 1a09456

Please sign in to comment.