Skip to content

Commit 8cd00fb

Browse files
theomonnomclaude
andcommitted
Update protocol submodule to latest main and regenerate protos
Add default values for new fields in connector and sip services, and handle new CompressedPayload RPC response variant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0b54d4a commit 8cd00fb

6 files changed

Lines changed: 396 additions & 6 deletions

File tree

livekit-api/src/services/connector.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl ConnectorClient {
136136
participant_metadata: options.participant_metadata.unwrap_or_default(),
137137
participant_attributes: options.participant_attributes.unwrap_or_default(),
138138
destination_country: options.destination_country.unwrap_or_default(),
139+
ringing_timeout: Default::default(),
139140
},
140141
self.base
141142
.auth_header(VideoGrants { room_create: true, ..Default::default() }, None)?,
@@ -242,6 +243,8 @@ impl ConnectorClient {
242243
participant_metadata: options.participant_metadata.unwrap_or_default(),
243244
participant_attributes: options.participant_attributes.unwrap_or_default(),
244245
destination_country: options.destination_country.unwrap_or_default(),
246+
ringing_timeout: Default::default(),
247+
wait_until_answered: Default::default(),
245248
},
246249
self.base
247250
.auth_header(VideoGrants { room_create: true, ..Default::default() }, None)?,

livekit-api/src/services/sip.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ impl SIPClient {
201201
// TODO: support these attributes
202202
include_headers: Default::default(),
203203
media_encryption: Default::default(),
204+
created_at: Default::default(),
205+
updated_at: Default::default(),
204206
}),
205207
},
206208
self.base.auth_header(
@@ -243,6 +245,9 @@ impl SIPClient {
243245
include_headers: Default::default(),
244246
media_encryption: Default::default(),
245247
destination_country: Default::default(),
248+
created_at: Default::default(),
249+
updated_at: Default::default(),
250+
from_host: Default::default(),
246251
}),
247252
},
248253
self.base.auth_header(

livekit-protocol/protocol

Submodule protocol updated 119 files

livekit-protocol/src/livekit.rs

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ pub struct TrackInfo {
610610
pub audio_features: ::prost::alloc::vec::Vec<i32>,
611611
#[prost(enumeration="BackupCodecPolicy", tag="20")]
612612
pub backup_codec_policy: i32,
613+
#[prost(enumeration="PacketTrailerFeature", repeated, tag="21")]
614+
pub packet_trailer_features: ::prost::alloc::vec::Vec<i32>,
613615
}
614616
#[allow(clippy::derive_partial_eq_without_eq)]
615617
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -2052,6 +2054,29 @@ impl AudioTrackFeature {
20522054
}
20532055
}
20542056
}
2057+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2058+
#[repr(i32)]
2059+
pub enum PacketTrailerFeature {
2060+
PtfUserTimestamp = 0,
2061+
}
2062+
impl PacketTrailerFeature {
2063+
/// String value of the enum field names used in the ProtoBuf definition.
2064+
///
2065+
/// The values are not transformed in any way and thus are considered stable
2066+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
2067+
pub fn as_str_name(&self) -> &'static str {
2068+
match self {
2069+
PacketTrailerFeature::PtfUserTimestamp => "PTF_USER_TIMESTAMP",
2070+
}
2071+
}
2072+
/// Creates an enum from field names used in the ProtoBuf definition.
2073+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2074+
match value {
2075+
"PTF_USER_TIMESTAMP" => Some(Self::PtfUserTimestamp),
2076+
_ => None,
2077+
}
2078+
}
2079+
}
20552080
/// composite using a web browser
20562081
#[allow(clippy::derive_partial_eq_without_eq)]
20572082
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -3368,6 +3393,8 @@ pub struct AddTrackRequest {
33683393
pub backup_codec_policy: i32,
33693394
#[prost(enumeration="AudioTrackFeature", repeated, tag="17")]
33703395
pub audio_features: ::prost::alloc::vec::Vec<i32>,
3396+
#[prost(enumeration="PacketTrailerFeature", repeated, tag="18")]
3397+
pub packet_trailer_features: ::prost::alloc::vec::Vec<i32>,
33713398
}
33723399
#[allow(clippy::derive_partial_eq_without_eq)]
33733400
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -5555,6 +5582,10 @@ pub struct SipInboundTrunkInfo {
55555582
pub krisp_enabled: bool,
55565583
#[prost(enumeration="SipMediaEncryption", tag="16")]
55575584
pub media_encryption: i32,
5585+
#[prost(message, optional, tag="17")]
5586+
pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
5587+
#[prost(message, optional, tag="18")]
5588+
pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
55585589
}
55595590
#[allow(clippy::derive_partial_eq_without_eq)]
55605591
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -5654,6 +5685,15 @@ pub struct SipOutboundTrunkInfo {
56545685
pub include_headers: i32,
56555686
#[prost(enumeration="SipMediaEncryption", tag="13")]
56565687
pub media_encryption: i32,
5688+
/// Optional custom hostname for the 'From' SIP header in outbound INVITEs.
5689+
/// When set, outbound calls from this trunk will use this host instead of the default project SIP domain.
5690+
/// Enables originating calls from custom domains.
5691+
#[prost(string, tag="15")]
5692+
pub from_host: ::prost::alloc::string::String,
5693+
#[prost(message, optional, tag="16")]
5694+
pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
5695+
#[prost(message, optional, tag="17")]
5696+
pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
56575697
}
56585698
#[allow(clippy::derive_partial_eq_without_eq)]
56595699
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -5676,6 +5716,8 @@ pub struct SipOutboundTrunkUpdate {
56765716
pub metadata: ::core::option::Option<::prost::alloc::string::String>,
56775717
#[prost(enumeration="SipMediaEncryption", optional, tag="8")]
56785718
pub media_encryption: ::core::option::Option<i32>,
5719+
#[prost(string, optional, tag="10")]
5720+
pub from_host: ::core::option::Option<::prost::alloc::string::String>,
56795721
}
56805722
#[allow(clippy::derive_partial_eq_without_eq)]
56815723
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -5919,9 +5961,12 @@ pub struct SipDispatchRuleInfo {
59195961
pub room_config: ::core::option::Option<RoomConfiguration>,
59205962
#[prost(bool, tag="11")]
59215963
pub krisp_enabled: bool,
5922-
/// NEXT ID: 14
59235964
#[prost(enumeration="SipMediaEncryption", tag="12")]
59245965
pub media_encryption: i32,
5966+
#[prost(message, optional, tag="14")]
5967+
pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
5968+
#[prost(message, optional, tag="15")]
5969+
pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
59255970
}
59265971
#[allow(clippy::derive_partial_eq_without_eq)]
59275972
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -5991,6 +6036,9 @@ pub struct SipOutboundConfig {
59916036
/// Keys are the names of attributes and values are the names of X-* headers they will be mapped to.
59926037
#[prost(map="string, string", tag="6")]
59936038
pub attributes_to_headers: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
6039+
/// Optional custom hostname for the 'From' SIP header. When set, outbound calls use this host instead of the default project SIP domain.
6040+
#[prost(string, tag="8")]
6041+
pub from_host: ::prost::alloc::string::String,
59946042
}
59956043
/// A SIP Participant is a singular SIP session connected to a LiveKit room via
59966044
/// a SIP Trunk into a SIP DispatchRule
@@ -6750,10 +6798,11 @@ pub struct DialWhatsAppCallRequest {
67506798
#[prost(map="string, string", tag="10")]
67516799
pub participant_attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
67526800
/// Optional - Country where the call terminates as ISO 3166-1 alpha-2 (<https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>). This will be used by the livekit infrastructure to route calls.
6753-
///
6754-
/// Next - 13
67556801
#[prost(string, tag="11")]
67566802
pub destination_country: ::prost::alloc::string::String,
6803+
/// Max time for the callee to answer the call.
6804+
#[prost(message, optional, tag="13")]
6805+
pub ringing_timeout: ::core::option::Option<::pbjson_types::Duration>,
67576806
}
67586807
#[allow(clippy::derive_partial_eq_without_eq)]
67596808
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -6876,10 +6925,14 @@ pub struct AcceptWhatsAppCallRequest {
68766925
#[prost(map="string, string", tag="11")]
68776926
pub participant_attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
68786927
/// Optional - Country where the call terminates as ISO 3166-1 alpha-2 (<https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>). This will be used by the livekit infrastructure to route calls.
6879-
///
6880-
/// Next - 14
68816928
#[prost(string, tag="12")]
68826929
pub destination_country: ::prost::alloc::string::String,
6930+
/// Max time for the callee to answer the call.
6931+
#[prost(message, optional, tag="14")]
6932+
pub ringing_timeout: ::core::option::Option<::pbjson_types::Duration>,
6933+
/// Wait for the answer for the call before returning.
6934+
#[prost(bool, tag="15")]
6935+
pub wait_until_answered: bool,
68836936
}
68846937
#[allow(clippy::derive_partial_eq_without_eq)]
68856938
#[derive(Clone, PartialEq, ::prost::Message)]

0 commit comments

Comments
 (0)