Skip to content

Commit

Permalink
Rename File* related DataStream messages to Byte* (#948)
Browse files Browse the repository at this point in the history
* Rename File related DataStream messages to Byte

* generated protobuf

* Add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
lukasIO and github-actions[bot] authored Jan 21, 2025
1 parent 369640e commit afe463f
Show file tree
Hide file tree
Showing 27 changed files with 211 additions and 207 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-eyes-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/protocol": patch
---

Rename File* related DataStream messages to Byte*
2 changes: 1 addition & 1 deletion infra/link.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_agent_dispatch.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_analytics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_egress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_ingress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_internal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_metrics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

353 changes: 176 additions & 177 deletions livekit/livekit_models.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion livekit/livekit_room.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_rtc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_sip.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit/livekit_webhook.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions protobufs/livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,9 @@ message DataStream {

}

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

// main DataStream.Header that contains a oneof for specific headers
Expand All @@ -642,12 +642,12 @@ message DataStream {
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
Encryption.Type encryption_type = 7; // defaults to NONE
map<string, string> extensions = 8; // user defined extensions map that can carry additional info
map<string, string> attributes = 8; // user defined attributes map that can carry additional info

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

Expand All @@ -662,7 +662,7 @@ message DataStream {
message Trailer {
string stream_id = 1; // unique identifier for this data stream
string reason = 2; // reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)
map<string, string> extensions = 3; // finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
map<string, string> attributes = 3; // finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
}
}

2 changes: 1 addition & 1 deletion rpc/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/agent_dispatch.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/analytics.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/egress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/ingress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/io.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/keepalive.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/participant.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/room.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/roommanager.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/signal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rpc/sip.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afe463f

Please sign in to comment.