Skip to content

Commit 10f1fe6

Browse files
authored
Merge branch 'main' into main
2 parents dde06d7 + 3ec0288 commit 10f1fe6

8 files changed

Lines changed: 381 additions & 151 deletions

.changes/update-protocol-v1-45-8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patch type="changed" "Update generated protocol definitions to v1.45.8"

lib/src/proto/livekit_metrics.pb.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,16 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage {
432432
$fixnum.Int64? duration,
433433
$0.Timestamp? startTime,
434434
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? roomTags,
435+
$core.String? roomName,
436+
$0.Timestamp? roomStartTime,
435437
}) {
436438
final result = create();
437439
if (roomId != null) result.roomId = roomId;
438440
if (duration != null) result.duration = duration;
439441
if (startTime != null) result.startTime = startTime;
440442
if (roomTags != null) result.roomTags.addEntries(roomTags);
443+
if (roomName != null) result.roomName = roomName;
444+
if (roomStartTime != null) result.roomStartTime = roomStartTime;
441445
return result;
442446
}
443447

@@ -460,6 +464,8 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage {
460464
keyFieldType: $pb.PbFieldType.OS,
461465
valueFieldType: $pb.PbFieldType.OS,
462466
packageName: const $pb.PackageName('livekit'))
467+
..aOS(6, _omitFieldNames ? '' : 'roomName')
468+
..aOM<$0.Timestamp>(7, _omitFieldNames ? '' : 'roomStartTime', subBuilder: $0.Timestamp.create)
463469
..hasRequiredFields = false;
464470

465471
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -511,6 +517,26 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage {
511517

512518
@$pb.TagNumber(5)
513519
$pb.PbMap<$core.String, $core.String> get roomTags => $_getMap(3);
520+
521+
@$pb.TagNumber(6)
522+
$core.String get roomName => $_getSZ(4);
523+
@$pb.TagNumber(6)
524+
set roomName($core.String value) => $_setString(4, value);
525+
@$pb.TagNumber(6)
526+
$core.bool hasRoomName() => $_has(4);
527+
@$pb.TagNumber(6)
528+
void clearRoomName() => $_clearField(6);
529+
530+
@$pb.TagNumber(7)
531+
$0.Timestamp get roomStartTime => $_getN(5);
532+
@$pb.TagNumber(7)
533+
set roomStartTime($0.Timestamp value) => $_setField(7, value);
534+
@$pb.TagNumber(7)
535+
$core.bool hasRoomStartTime() => $_has(5);
536+
@$pb.TagNumber(7)
537+
void clearRoomStartTime() => $_clearField(7);
538+
@$pb.TagNumber(7)
539+
$0.Timestamp ensureRoomStartTime() => $_ensure(5);
514540
}
515541

516542
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');

lib/src/proto/livekit_metrics.pbjson.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,12 @@ final $typed_data.Uint8List eventMetricDescriptor =
184184
const MetricsRecordingHeader$json = {
185185
'1': 'MetricsRecordingHeader',
186186
'2': [
187-
{'1': 'room_id', '3': 1, '4': 1, '5': 9, '10': 'roomId'},
187+
{'1': 'room_id', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'roomId'},
188188
{'1': 'duration', '3': 3, '4': 1, '5': 4, '10': 'duration'},
189189
{'1': 'start_time', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'},
190190
{'1': 'room_tags', '3': 5, '4': 3, '5': 11, '6': '.livekit.MetricsRecordingHeader.RoomTagsEntry', '10': 'roomTags'},
191+
{'1': 'room_name', '3': 6, '4': 1, '5': 9, '10': 'roomName'},
192+
{'1': 'room_start_time', '3': 7, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'roomStartTime'},
191193
],
192194
'3': [MetricsRecordingHeader_RoomTagsEntry$json],
193195
};
@@ -204,8 +206,10 @@ const MetricsRecordingHeader_RoomTagsEntry$json = {
204206

205207
/// Descriptor for `MetricsRecordingHeader`. Decode as a `google.protobuf.DescriptorProto`.
206208
final $typed_data.Uint8List metricsRecordingHeaderDescriptor =
207-
$convert.base64Decode('ChZNZXRyaWNzUmVjb3JkaW5nSGVhZGVyEhcKB3Jvb21faWQYASABKAlSBnJvb21JZBIaCghkdX'
208-
'JhdGlvbhgDIAEoBFIIZHVyYXRpb24SOQoKc3RhcnRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90'
209-
'b2J1Zi5UaW1lc3RhbXBSCXN0YXJ0VGltZRJKCglyb29tX3RhZ3MYBSADKAsyLS5saXZla2l0Lk'
210-
'1ldHJpY3NSZWNvcmRpbmdIZWFkZXIuUm9vbVRhZ3NFbnRyeVIIcm9vbVRhZ3MaOwoNUm9vbVRh'
211-
'Z3NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB');
209+
$convert.base64Decode('ChZNZXRyaWNzUmVjb3JkaW5nSGVhZGVyEiIKB3Jvb21faWQYASABKAlCCbpQBnJvb21JRFIGcm'
210+
'9vbUlkEhoKCGR1cmF0aW9uGAMgASgEUghkdXJhdGlvbhI5CgpzdGFydF90aW1lGAQgASgLMhou'
211+
'Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEkoKCXJvb21fdGFncxgFIAMoCz'
212+
'ItLmxpdmVraXQuTWV0cmljc1JlY29yZGluZ0hlYWRlci5Sb29tVGFnc0VudHJ5Ughyb29tVGFn'
213+
'cxIbCglyb29tX25hbWUYBiABKAlSCHJvb21OYW1lEkIKD3Jvb21fc3RhcnRfdGltZRgHIAEoCz'
214+
'IaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSDXJvb21TdGFydFRpbWUaOwoNUm9vbVRhZ3NF'
215+
'bnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB');

lib/src/proto/livekit_models.pb.dart

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ class ParticipantPermission extends $pb.GeneratedMessage {
545545
$core.bool? canUpdateMetadata,
546546
@$core.Deprecated('This field is deprecated.') $core.bool? agent,
547547
$core.bool? canSubscribeMetrics,
548+
$core.bool? canManageAgentSession,
548549
}) {
549550
final result = create();
550551
if (canSubscribe != null) result.canSubscribe = canSubscribe;
@@ -556,6 +557,7 @@ class ParticipantPermission extends $pb.GeneratedMessage {
556557
if (canUpdateMetadata != null) result.canUpdateMetadata = canUpdateMetadata;
557558
if (agent != null) result.agent = agent;
558559
if (canSubscribeMetrics != null) result.canSubscribeMetrics = canSubscribeMetrics;
560+
if (canManageAgentSession != null) result.canManageAgentSession = canManageAgentSession;
559561
return result;
560562
}
561563

@@ -580,6 +582,7 @@ class ParticipantPermission extends $pb.GeneratedMessage {
580582
..aOB(10, _omitFieldNames ? '' : 'canUpdateMetadata')
581583
..aOB(11, _omitFieldNames ? '' : 'agent')
582584
..aOB(12, _omitFieldNames ? '' : 'canSubscribeMetrics')
585+
..aOB(13, _omitFieldNames ? '' : 'canManageAgentSession')
583586
..hasRequiredFields = false;
584587

585588
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -693,6 +696,16 @@ class ParticipantPermission extends $pb.GeneratedMessage {
693696
$core.bool hasCanSubscribeMetrics() => $_has(8);
694697
@$pb.TagNumber(12)
695698
void clearCanSubscribeMetrics() => $_clearField(12);
699+
700+
/// if a participant can manage an agent session via RemoteSession (control and access state)
701+
@$pb.TagNumber(13)
702+
$core.bool get canManageAgentSession => $_getBF(9);
703+
@$pb.TagNumber(13)
704+
set canManageAgentSession($core.bool value) => $_setBool(9, value);
705+
@$pb.TagNumber(13)
706+
$core.bool hasCanManageAgentSession() => $_has(9);
707+
@$pb.TagNumber(13)
708+
void clearCanManageAgentSession() => $_clearField(13);
696709
}
697710

698711
class ParticipantInfo extends $pb.GeneratedMessage {
@@ -714,6 +727,7 @@ class ParticipantInfo extends $pb.GeneratedMessage {
714727
$fixnum.Int64? joinedAtMs,
715728
$core.Iterable<ParticipantInfo_KindDetail>? kindDetails,
716729
$core.Iterable<DataTrackInfo>? dataTracks,
730+
$core.int? clientProtocol,
717731
}) {
718732
final result = create();
719733
if (sid != null) result.sid = sid;
@@ -733,6 +747,7 @@ class ParticipantInfo extends $pb.GeneratedMessage {
733747
if (joinedAtMs != null) result.joinedAtMs = joinedAtMs;
734748
if (kindDetails != null) result.kindDetails.addAll(kindDetails);
735749
if (dataTracks != null) result.dataTracks.addAll(dataTracks);
750+
if (clientProtocol != null) result.clientProtocol = clientProtocol;
736751
return result;
737752
}
738753

@@ -770,6 +785,7 @@ class ParticipantInfo extends $pb.GeneratedMessage {
770785
enumValues: ParticipantInfo_KindDetail.values,
771786
defaultEnumValue: ParticipantInfo_KindDetail.CLOUD_AGENT)
772787
..pPM<DataTrackInfo>(19, _omitFieldNames ? '' : 'dataTracks', subBuilder: DataTrackInfo.create)
788+
..aI(20, _omitFieldNames ? '' : 'clientProtocol')
773789
..hasRequiredFields = false;
774790

775791
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -924,6 +940,16 @@ class ParticipantInfo extends $pb.GeneratedMessage {
924940

925941
@$pb.TagNumber(19)
926942
$pb.PbList<DataTrackInfo> get dataTracks => $_getList(16);
943+
944+
/// protocol version used for client feature compatibility
945+
@$pb.TagNumber(20)
946+
$core.int get clientProtocol => $_getIZ(17);
947+
@$pb.TagNumber(20)
948+
set clientProtocol($core.int value) => $_setSignedInt32(17, value);
949+
@$pb.TagNumber(20)
950+
$core.bool hasClientProtocol() => $_has(17);
951+
@$pb.TagNumber(20)
952+
void clearClientProtocol() => $_clearField(20);
927953
}
928954

929955
class Encryption extends $pb.GeneratedMessage {
@@ -1090,6 +1116,7 @@ class TrackInfo extends $pb.GeneratedMessage {
10901116
TimedVersion? version,
10911117
$core.Iterable<AudioTrackFeature>? audioFeatures,
10921118
BackupCodecPolicy? backupCodecPolicy,
1119+
$core.Iterable<PacketTrailerFeature>? packetTrailerFeatures,
10931120
}) {
10941121
final result = create();
10951122
if (sid != null) result.sid = sid;
@@ -1112,6 +1139,7 @@ class TrackInfo extends $pb.GeneratedMessage {
11121139
if (version != null) result.version = version;
11131140
if (audioFeatures != null) result.audioFeatures.addAll(audioFeatures);
11141141
if (backupCodecPolicy != null) result.backupCodecPolicy = backupCodecPolicy;
1142+
if (packetTrailerFeatures != null) result.packetTrailerFeatures.addAll(packetTrailerFeatures);
11151143
return result;
11161144
}
11171145

@@ -1148,6 +1176,10 @@ class TrackInfo extends $pb.GeneratedMessage {
11481176
enumValues: AudioTrackFeature.values,
11491177
defaultEnumValue: AudioTrackFeature.TF_STEREO)
11501178
..aE<BackupCodecPolicy>(20, _omitFieldNames ? '' : 'backupCodecPolicy', enumValues: BackupCodecPolicy.values)
1179+
..pc<PacketTrailerFeature>(21, _omitFieldNames ? '' : 'packetTrailerFeatures', $pb.PbFieldType.KE,
1180+
valueOf: PacketTrailerFeature.valueOf,
1181+
enumValues: PacketTrailerFeature.values,
1182+
defaultEnumValue: PacketTrailerFeature.PTF_USER_TIMESTAMP)
11511183
..hasRequiredFields = false;
11521184

11531185
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -1351,6 +1383,9 @@ class TrackInfo extends $pb.GeneratedMessage {
13511383
$core.bool hasBackupCodecPolicy() => $_has(19);
13521384
@$pb.TagNumber(20)
13531385
void clearBackupCodecPolicy() => $_clearField(20);
1386+
1387+
@$pb.TagNumber(21)
1388+
$pb.PbList<PacketTrailerFeature> get packetTrailerFeatures => $_getList(20);
13541389
}
13551390

13561391
class DataTrackInfo extends $pb.GeneratedMessage {
@@ -2965,13 +3000,15 @@ class RpcRequest extends $pb.GeneratedMessage {
29653000
$core.String? payload,
29663001
$core.int? responseTimeoutMs,
29673002
$core.int? version,
3003+
$core.List<$core.int>? compressedPayload,
29683004
}) {
29693005
final result = create();
29703006
if (id != null) result.id = id;
29713007
if (method != null) result.method = method;
29723008
if (payload != null) result.payload = payload;
29733009
if (responseTimeoutMs != null) result.responseTimeoutMs = responseTimeoutMs;
29743010
if (version != null) result.version = version;
3011+
if (compressedPayload != null) result.compressedPayload = compressedPayload;
29753012
return result;
29763013
}
29773014

@@ -2990,6 +3027,7 @@ class RpcRequest extends $pb.GeneratedMessage {
29903027
..aOS(3, _omitFieldNames ? '' : 'payload')
29913028
..aI(4, _omitFieldNames ? '' : 'responseTimeoutMs', fieldType: $pb.PbFieldType.OU3)
29923029
..aI(5, _omitFieldNames ? '' : 'version', fieldType: $pb.PbFieldType.OU3)
3030+
..a<$core.List<$core.int>>(6, _omitFieldNames ? '' : 'compressedPayload', $pb.PbFieldType.OY)
29933031
..hasRequiredFields = false;
29943032

29953033
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -3053,6 +3091,16 @@ class RpcRequest extends $pb.GeneratedMessage {
30533091
$core.bool hasVersion() => $_has(4);
30543092
@$pb.TagNumber(5)
30553093
void clearVersion() => $_clearField(5);
3094+
3095+
/// Compressed payload data. When set, this field is used instead of `payload`.
3096+
@$pb.TagNumber(6)
3097+
$core.List<$core.int> get compressedPayload => $_getN(5);
3098+
@$pb.TagNumber(6)
3099+
set compressedPayload($core.List<$core.int> value) => $_setBytes(5, value);
3100+
@$pb.TagNumber(6)
3101+
$core.bool hasCompressedPayload() => $_has(5);
3102+
@$pb.TagNumber(6)
3103+
void clearCompressedPayload() => $_clearField(6);
30563104
}
30573105

30583106
class RpcAck extends $pb.GeneratedMessage {
@@ -3103,18 +3151,20 @@ class RpcAck extends $pb.GeneratedMessage {
31033151
void clearRequestId() => $_clearField(1);
31043152
}
31053153

3106-
enum RpcResponse_Value { payload, error, notSet }
3154+
enum RpcResponse_Value { payload, error, compressedPayload, notSet }
31073155

31083156
class RpcResponse extends $pb.GeneratedMessage {
31093157
factory RpcResponse({
31103158
$core.String? requestId,
31113159
$core.String? payload,
31123160
RpcError? error,
3161+
$core.List<$core.int>? compressedPayload,
31133162
}) {
31143163
final result = create();
31153164
if (requestId != null) result.requestId = requestId;
31163165
if (payload != null) result.payload = payload;
31173166
if (error != null) result.error = error;
3167+
if (compressedPayload != null) result.compressedPayload = compressedPayload;
31183168
return result;
31193169
}
31203170

@@ -3129,14 +3179,16 @@ class RpcResponse extends $pb.GeneratedMessage {
31293179
static const $core.Map<$core.int, RpcResponse_Value> _RpcResponse_ValueByTag = {
31303180
2: RpcResponse_Value.payload,
31313181
3: RpcResponse_Value.error,
3182+
4: RpcResponse_Value.compressedPayload,
31323183
0: RpcResponse_Value.notSet
31333184
};
31343185
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RpcResponse',
31353186
package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create)
3136-
..oo(0, [2, 3])
3187+
..oo(0, [2, 3, 4])
31373188
..aOS(1, _omitFieldNames ? '' : 'requestId')
31383189
..aOS(2, _omitFieldNames ? '' : 'payload')
31393190
..aOM<RpcError>(3, _omitFieldNames ? '' : 'error', subBuilder: RpcError.create)
3191+
..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'compressedPayload', $pb.PbFieldType.OY)
31403192
..hasRequiredFields = false;
31413193

31423194
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -3158,9 +3210,11 @@ class RpcResponse extends $pb.GeneratedMessage {
31583210

31593211
@$pb.TagNumber(2)
31603212
@$pb.TagNumber(3)
3213+
@$pb.TagNumber(4)
31613214
RpcResponse_Value whichValue() => _RpcResponse_ValueByTag[$_whichOneof(0)]!;
31623215
@$pb.TagNumber(2)
31633216
@$pb.TagNumber(3)
3217+
@$pb.TagNumber(4)
31643218
void clearValue() => $_clearField($_whichOneof(0));
31653219

31663220
@$pb.TagNumber(1)
@@ -3191,6 +3245,16 @@ class RpcResponse extends $pb.GeneratedMessage {
31913245
void clearError() => $_clearField(3);
31923246
@$pb.TagNumber(3)
31933247
RpcError ensureError() => $_ensure(2);
3248+
3249+
/// Compressed payload data. When set, this field is used instead of `payload`.
3250+
@$pb.TagNumber(4)
3251+
$core.List<$core.int> get compressedPayload => $_getN(3);
3252+
@$pb.TagNumber(4)
3253+
set compressedPayload($core.List<$core.int> value) => $_setBytes(3, value);
3254+
@$pb.TagNumber(4)
3255+
$core.bool hasCompressedPayload() => $_has(3);
3256+
@$pb.TagNumber(4)
3257+
void clearCompressedPayload() => $_clearField(4);
31943258
}
31953259

31963260
class RpcError extends $pb.GeneratedMessage {
@@ -3461,6 +3525,8 @@ class ClientInfo extends $pb.GeneratedMessage {
34613525
$core.String? address,
34623526
$core.String? network,
34633527
$core.String? otherSdks,
3528+
$core.int? clientProtocol,
3529+
$core.Iterable<ClientInfo_Capability>? capabilities,
34643530
}) {
34653531
final result = create();
34663532
if (sdk != null) result.sdk = sdk;
@@ -3474,6 +3540,8 @@ class ClientInfo extends $pb.GeneratedMessage {
34743540
if (address != null) result.address = address;
34753541
if (network != null) result.network = network;
34763542
if (otherSdks != null) result.otherSdks = otherSdks;
3543+
if (clientProtocol != null) result.clientProtocol = clientProtocol;
3544+
if (capabilities != null) result.capabilities.addAll(capabilities);
34773545
return result;
34783546
}
34793547

@@ -3498,6 +3566,11 @@ class ClientInfo extends $pb.GeneratedMessage {
34983566
..aOS(9, _omitFieldNames ? '' : 'address')
34993567
..aOS(10, _omitFieldNames ? '' : 'network')
35003568
..aOS(11, _omitFieldNames ? '' : 'otherSdks')
3569+
..aI(12, _omitFieldNames ? '' : 'clientProtocol')
3570+
..pc<ClientInfo_Capability>(13, _omitFieldNames ? '' : 'capabilities', $pb.PbFieldType.KE,
3571+
valueOf: ClientInfo_Capability.valueOf,
3572+
enumValues: ClientInfo_Capability.values,
3573+
defaultEnumValue: ClientInfo_Capability.CAP_UNUSED)
35013574
..hasRequiredFields = false;
35023575

35033576
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -3618,6 +3691,21 @@ class ClientInfo extends $pb.GeneratedMessage {
36183691
$core.bool hasOtherSdks() => $_has(10);
36193692
@$pb.TagNumber(11)
36203693
void clearOtherSdks() => $_clearField(11);
3694+
3695+
/// client protocol version
3696+
@$pb.TagNumber(12)
3697+
$core.int get clientProtocol => $_getIZ(11);
3698+
@$pb.TagNumber(12)
3699+
set clientProtocol($core.int value) => $_setSignedInt32(11, value);
3700+
@$pb.TagNumber(12)
3701+
$core.bool hasClientProtocol() => $_has(11);
3702+
@$pb.TagNumber(12)
3703+
void clearClientProtocol() => $_clearField(12);
3704+
3705+
/// capabilities the client advertises. Populated automatically by each SDK;
3706+
/// not a user-configurable setting.
3707+
@$pb.TagNumber(13)
3708+
$pb.PbList<ClientInfo_Capability> get capabilities => $_getList(12);
36213709
}
36223710

36233711
/// server provided client configuration

0 commit comments

Comments
 (0)