@@ -2210,6 +2210,48 @@ pub struct SetLocalMetadataCallback {
2210
2210
#[ prost( string, optional, tag="2" ) ]
2211
2211
pub error : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
2212
2212
}
2213
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2214
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2215
+ pub struct SendChatMessageRequest {
2216
+ #[ prost( uint64, tag="1" ) ]
2217
+ pub local_participant_handle : u64 ,
2218
+ #[ prost( string, tag="2" ) ]
2219
+ pub message : :: prost:: alloc:: string:: String ,
2220
+ #[ prost( string, repeated, tag="3" ) ]
2221
+ pub destination_identities : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
2222
+ #[ prost( string, optional, tag="4" ) ]
2223
+ pub sender_identity : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
2224
+ }
2225
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2226
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2227
+ pub struct EditChatMessageRequest {
2228
+ #[ prost( uint64, tag="1" ) ]
2229
+ pub local_participant_handle : u64 ,
2230
+ #[ prost( string, tag="2" ) ]
2231
+ pub edit_text : :: prost:: alloc:: string:: String ,
2232
+ #[ prost( message, optional, tag="3" ) ]
2233
+ pub original_message : :: core:: option:: Option < ChatMessage > ,
2234
+ #[ prost( string, repeated, tag="4" ) ]
2235
+ pub destination_identities : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
2236
+ #[ prost( string, optional, tag="5" ) ]
2237
+ pub sender_identity : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
2238
+ }
2239
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2240
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2241
+ pub struct SendChatMessageResponse {
2242
+ #[ prost( uint64, tag="1" ) ]
2243
+ pub async_id : u64 ,
2244
+ }
2245
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2246
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2247
+ pub struct SendChatMessageCallback {
2248
+ #[ prost( uint64, tag="1" ) ]
2249
+ pub async_id : u64 ,
2250
+ #[ prost( string, optional, tag="2" ) ]
2251
+ pub error : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
2252
+ #[ prost( message, optional, tag="3" ) ]
2253
+ pub chat_message : :: core:: option:: Option < ChatMessage > ,
2254
+ }
2213
2255
/// Change the local participant's attributes
2214
2256
#[ allow( clippy:: derive_partial_eq_without_eq) ]
2215
2257
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -2407,7 +2449,7 @@ pub struct OwnedBuffer {
2407
2449
pub struct RoomEvent {
2408
2450
#[ prost( uint64, tag="1" ) ]
2409
2451
pub room_handle : u64 ,
2410
- #[ prost( oneof="room_event::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28" ) ]
2452
+ #[ prost( oneof="room_event::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 " ) ]
2411
2453
pub message : :: core:: option:: Option < room_event:: Message > ,
2412
2454
}
2413
2455
/// Nested message and enum types in `RoomEvent`.
@@ -2471,6 +2513,8 @@ pub mod room_event {
2471
2513
DataPacketReceived ( super :: DataPacketReceived ) ,
2472
2514
#[ prost( message, tag="28" ) ]
2473
2515
TranscriptionReceived ( super :: TranscriptionReceived ) ,
2516
+ #[ prost( message, tag="29" ) ]
2517
+ ChatMessage ( super :: ChatMessageReceived ) ,
2474
2518
}
2475
2519
}
2476
2520
#[ allow( clippy:: derive_partial_eq_without_eq) ]
@@ -2655,6 +2699,30 @@ pub struct UserPacket {
2655
2699
}
2656
2700
#[ allow( clippy:: derive_partial_eq_without_eq) ]
2657
2701
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
2702
+ pub struct ChatMessage {
2703
+ #[ prost( string, tag="1" ) ]
2704
+ pub id : :: prost:: alloc:: string:: String ,
2705
+ #[ prost( int64, tag="2" ) ]
2706
+ pub timestamp : i64 ,
2707
+ #[ prost( string, tag="3" ) ]
2708
+ pub message : :: prost:: alloc:: string:: String ,
2709
+ #[ prost( int64, optional, tag="4" ) ]
2710
+ pub edit_timestamp : :: core:: option:: Option < i64 > ,
2711
+ #[ prost( bool , optional, tag="5" ) ]
2712
+ pub deleted : :: core:: option:: Option < bool > ,
2713
+ #[ prost( bool , optional, tag="6" ) ]
2714
+ pub generated : :: core:: option:: Option < bool > ,
2715
+ }
2716
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2717
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2718
+ pub struct ChatMessageReceived {
2719
+ #[ prost( message, optional, tag="1" ) ]
2720
+ pub message : :: core:: option:: Option < ChatMessage > ,
2721
+ #[ prost( string, tag="2" ) ]
2722
+ pub participant_identity : :: prost:: alloc:: string:: String ,
2723
+ }
2724
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
2725
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
2658
2726
pub struct SipDtmf {
2659
2727
#[ prost( uint32, tag="1" ) ]
2660
2728
pub code : u32 ,
@@ -3443,7 +3511,7 @@ impl AudioSourceType {
3443
3511
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3444
3512
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3445
3513
pub struct FfiRequest {
3446
- #[ prost( oneof="ffi_request::Message" , tags="2, 3, 4, 5, 6, 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" ) ]
3514
+ #[ prost( oneof="ffi_request::Message" , tags="2, 3, 4, 5, 6, 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 " ) ]
3447
3515
pub message : :: core:: option:: Option < ffi_request:: Message > ,
3448
3516
}
3449
3517
/// Nested message and enum types in `FfiRequest`.
@@ -3523,13 +3591,17 @@ pub mod ffi_request {
3523
3591
PushSoxResampler ( super :: PushSoxResamplerRequest ) ,
3524
3592
#[ prost( message, tag="35" ) ]
3525
3593
FlushSoxResampler ( super :: FlushSoxResamplerRequest ) ,
3594
+ #[ prost( message, tag="36" ) ]
3595
+ SendChatMessage ( super :: SendChatMessageRequest ) ,
3596
+ #[ prost( message, tag="37" ) ]
3597
+ EditChatMessage ( super :: EditChatMessageRequest ) ,
3526
3598
}
3527
3599
}
3528
3600
/// This is the output of livekit_ffi_request function.
3529
3601
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3530
3602
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3531
3603
pub struct FfiResponse {
3532
- #[ prost( oneof="ffi_response::Message" , tags="2, 3, 4, 5, 6, 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" ) ]
3604
+ #[ prost( oneof="ffi_response::Message" , tags="2, 3, 4, 5, 6, 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 " ) ]
3533
3605
pub message : :: core:: option:: Option < ffi_response:: Message > ,
3534
3606
}
3535
3607
/// Nested message and enum types in `FfiResponse`.
@@ -3609,6 +3681,8 @@ pub mod ffi_response {
3609
3681
PushSoxResampler ( super :: PushSoxResamplerResponse ) ,
3610
3682
#[ prost( message, tag="35" ) ]
3611
3683
FlushSoxResampler ( super :: FlushSoxResamplerResponse ) ,
3684
+ #[ prost( message, tag="36" ) ]
3685
+ SendChatMessage ( super :: SendChatMessageResponse ) ,
3612
3686
}
3613
3687
}
3614
3688
/// To minimize complexity, participant events are not included in the protocol.
@@ -3617,7 +3691,7 @@ pub mod ffi_response {
3617
3691
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3618
3692
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3619
3693
pub struct FfiEvent {
3620
- #[ 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" ) ]
3694
+ #[ 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 " ) ]
3621
3695
pub message : :: core:: option:: Option < ffi_event:: Message > ,
3622
3696
}
3623
3697
/// Nested message and enum types in `FfiEvent`.
@@ -3665,6 +3739,8 @@ pub mod ffi_event {
3665
3739
Panic ( super :: Panic ) ,
3666
3740
#[ prost( message, tag="21" ) ]
3667
3741
PublishSipDtmf ( super :: PublishSipDtmfCallback ) ,
3742
+ #[ prost( message, tag="22" ) ]
3743
+ ChatMessage ( super :: SendChatMessageCallback ) ,
3668
3744
}
3669
3745
}
3670
3746
/// Stop all rooms synchronously (Do we need async here?).
0 commit comments