@@ -2447,6 +2447,45 @@ pub mod stream_send_file_callback {
24472447 Error ( super :: StreamError ) ,
24482448 }
24492449}
2450+ // MARK: - Send bytes
2451+
2452+ /// Sends bytes over a data stream.
2453+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2454+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2455+ pub struct StreamSendBytesRequest {
2456+ #[ prost( uint64, required, tag="1" ) ]
2457+ pub local_participant_handle : u64 ,
2458+ #[ prost( message, required, tag="2" ) ]
2459+ pub options : StreamByteOptions ,
2460+ /// Bytes to send.
2461+ #[ prost( bytes="vec" , required, tag="3" ) ]
2462+ pub bytes : :: prost:: alloc:: vec:: Vec < u8 > ,
2463+ }
2464+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2465+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2466+ pub struct StreamSendBytesResponse {
2467+ #[ prost( uint64, required, tag="1" ) ]
2468+ pub async_id : u64 ,
2469+ }
2470+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2471+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2472+ pub struct StreamSendBytesCallback {
2473+ #[ prost( uint64, required, tag="1" ) ]
2474+ pub async_id : u64 ,
2475+ #[ prost( oneof="stream_send_bytes_callback::Result" , tags="2, 3" ) ]
2476+ pub result : :: core:: option:: Option < stream_send_bytes_callback:: Result > ,
2477+ }
2478+ /// Nested message and enum types in `StreamSendBytesCallback`.
2479+ pub mod stream_send_bytes_callback {
2480+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2481+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
2482+ pub enum Result {
2483+ #[ prost( message, tag="2" ) ]
2484+ Info ( super :: ByteStreamInfo ) ,
2485+ #[ prost( message, tag="3" ) ]
2486+ Error ( super :: StreamError ) ,
2487+ }
2488+ }
24502489// MARK: - Send text
24512490
24522491/// Sends text over a data stream.
@@ -4889,7 +4928,7 @@ pub struct RpcMethodInvocationEvent {
48894928#[ allow( clippy:: derive_partial_eq_without_eq) ]
48904929#[ derive( Clone , PartialEq , :: prost:: Message ) ]
48914930pub struct FfiRequest {
4892- #[ prost( oneof="ffi_request::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 48, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66" ) ]
4931+ #[ prost( oneof="ffi_request::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 48, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67 " ) ]
48934932 pub message : :: core:: option:: Option < ffi_request:: Message > ,
48944933}
48954934/// Nested message and enum types in `FfiRequest`.
@@ -5037,13 +5076,15 @@ pub mod ffi_request {
50375076 TextStreamWrite ( super :: TextStreamWriterWriteRequest ) ,
50385077 #[ prost( message, tag="66" ) ]
50395078 TextStreamClose ( super :: TextStreamWriterCloseRequest ) ,
5079+ #[ prost( message, tag="67" ) ]
5080+ SendBytes ( super :: StreamSendBytesRequest ) ,
50405081 }
50415082}
50425083/// This is the output of livekit_ffi_request function.
50435084#[ allow( clippy:: derive_partial_eq_without_eq) ]
50445085#[ derive( Clone , PartialEq , :: prost:: Message ) ]
50455086pub struct FfiResponse {
5046- #[ prost( oneof="ffi_response::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 47, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65" ) ]
5087+ #[ prost( oneof="ffi_response::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 47, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66 " ) ]
50475088 pub message : :: core:: option:: Option < ffi_response:: Message > ,
50485089}
50495090/// Nested message and enum types in `FfiResponse`.
@@ -5189,6 +5230,8 @@ pub mod ffi_response {
51895230 TextStreamWrite ( super :: TextStreamWriterWriteResponse ) ,
51905231 #[ prost( message, tag="65" ) ]
51915232 TextStreamClose ( super :: TextStreamWriterCloseResponse ) ,
5233+ #[ prost( message, tag="66" ) ]
5234+ SendBytes ( super :: StreamSendBytesResponse ) ,
51925235 }
51935236}
51945237/// To minimize complexity, participant events are not included in the protocol.
@@ -5197,7 +5240,7 @@ pub mod ffi_response {
51975240#[ allow( clippy:: derive_partial_eq_without_eq) ]
51985241#[ derive( Clone , PartialEq , :: prost:: Message ) ]
51995242pub struct FfiEvent {
5200- #[ prost( oneof="ffi_event::Message" , tags="1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40" ) ]
5243+ #[ prost( oneof="ffi_event::Message" , tags="1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 " ) ]
52015244 pub message : :: core:: option:: Option < ffi_event:: Message > ,
52025245}
52035246/// Nested message and enum types in `FfiEvent`.
@@ -5285,6 +5328,8 @@ pub mod ffi_event {
52855328 TextStreamWriterClose ( super :: TextStreamWriterCloseCallback ) ,
52865329 #[ prost( message, tag="40" ) ]
52875330 SendText ( super :: StreamSendTextCallback ) ,
5331+ #[ prost( message, tag="41" ) ]
5332+ SendBytes ( super :: StreamSendBytesCallback ) ,
52885333 }
52895334}
52905335/// Stop all rooms synchronously (Do we need async here?).
0 commit comments