@livekit/protocol 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Message, Timestamp, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage, Duration } from '@bufbuild/protobuf';
1
+ import { Message, Timestamp, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage, Duration, Any } from '@bufbuild/protobuf';
2
2
  export { protoInt64 } from '@bufbuild/protobuf';
3
3
 
4
4
  // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
@@ -181,7 +181,7 @@ declare class MetricsBatch extends Message<MetricsBatch> {
181
181
  * This is useful for storing participant identities, track names, etc.
182
182
  * There is also a predefined list of labels that can be used to reference common metrics.
183
183
  * They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
184
- * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
184
+ * Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
185
185
  * such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
186
186
  *
187
187
  * @generated from field: repeated string str_data = 3;
@@ -376,6 +376,35 @@ declare class EventMetric extends Message<EventMetric> {
376
376
  static equals(a: EventMetric | PlainMessage<EventMetric> | undefined, b: EventMetric | PlainMessage<EventMetric> | undefined): boolean;
377
377
  }
378
378
 
379
+ /**
380
+ * @generated from message livekit.MetricsRecordingHeader
381
+ */
382
+ declare class MetricsRecordingHeader extends Message<MetricsRecordingHeader> {
383
+ /**
384
+ * @generated from field: string room_id = 1;
385
+ */
386
+ roomId: string;
387
+
388
+ /**
389
+ * @generated from field: optional bool enable_user_data_training = 2;
390
+ */
391
+ enableUserDataTraining?: boolean;
392
+
393
+ constructor(data?: PartialMessage<MetricsRecordingHeader>);
394
+
395
+ static readonly runtime: typeof proto3;
396
+ static readonly typeName = "livekit.MetricsRecordingHeader";
397
+ static readonly fields: FieldList;
398
+
399
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsRecordingHeader;
400
+
401
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
402
+
403
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
404
+
405
+ static equals(a: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined, b: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined): boolean;
406
+ }
407
+
379
408
  // Copyright 2023 LiveKit, Inc.
380
409
  //
381
410
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -410,6 +439,11 @@ declare enum AudioCodec {
410
439
  * @generated from enum value: AAC = 2;
411
440
  */
412
441
  AAC = 2,
442
+
443
+ /**
444
+ * @generated from enum value: AC_MP3 = 3;
445
+ */
446
+ AC_MP3 = 3,
413
447
  }
414
448
 
415
449
  /**
@@ -844,6 +878,30 @@ declare class Pagination extends Message<Pagination> {
844
878
  static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
845
879
  }
846
880
 
881
+ /**
882
+ * @generated from message livekit.TokenPagination
883
+ */
884
+ declare class TokenPagination extends Message<TokenPagination> {
885
+ /**
886
+ * @generated from field: string token = 1;
887
+ */
888
+ token: string;
889
+
890
+ constructor(data?: PartialMessage<TokenPagination>);
891
+
892
+ static readonly runtime: typeof proto3;
893
+ static readonly typeName = "livekit.TokenPagination";
894
+ static readonly fields: FieldList;
895
+
896
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenPagination;
897
+
898
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenPagination;
899
+
900
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPagination;
901
+
902
+ static equals(a: TokenPagination | PlainMessage<TokenPagination> | undefined, b: TokenPagination | PlainMessage<TokenPagination> | undefined): boolean;
903
+ }
904
+
847
905
  /**
848
906
  * ListUpdate is used for updated APIs where 'repeated string' field is modified.
849
907
  *
@@ -867,9 +925,9 @@ declare class ListUpdate extends Message<ListUpdate> {
867
925
  /**
868
926
  * delete items from a list
869
927
  *
870
- * @generated from field: repeated string del = 3;
928
+ * @generated from field: repeated string remove = 3;
871
929
  */
872
- del: string[];
930
+ remove: string[];
873
931
 
874
932
  /**
875
933
  * sets the list to an empty list
@@ -1644,6 +1702,11 @@ declare enum VideoLayer_Mode {
1644
1702
  * @generated from enum value: MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2;
1645
1703
  */
1646
1704
  MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2,
1705
+
1706
+ /**
1707
+ * @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3;
1708
+ */
1709
+ ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3,
1647
1710
  }
1648
1711
 
1649
1712
  /**
@@ -1748,6 +1811,12 @@ declare class DataPacket extends Message<DataPacket> {
1748
1811
  */
1749
1812
  value: DataStream_Trailer;
1750
1813
  case: "streamTrailer";
1814
+ } | {
1815
+ /**
1816
+ * @generated from field: livekit.EncryptedPacket encrypted_packet = 18;
1817
+ */
1818
+ value: EncryptedPacket;
1819
+ case: "encryptedPacket";
1751
1820
  } | { case: undefined; value?: undefined };
1752
1821
 
1753
1822
  /**
@@ -1794,6 +1863,119 @@ declare enum DataPacket_Kind {
1794
1863
  LOSSY = 1,
1795
1864
  }
1796
1865
 
1866
+ /**
1867
+ * @generated from message livekit.EncryptedPacket
1868
+ */
1869
+ declare class EncryptedPacket extends Message<EncryptedPacket> {
1870
+ /**
1871
+ * @generated from field: livekit.Encryption.Type encryption_type = 1;
1872
+ */
1873
+ encryptionType: Encryption_Type;
1874
+
1875
+ /**
1876
+ * @generated from field: bytes iv = 2;
1877
+ */
1878
+ iv: Uint8Array;
1879
+
1880
+ /**
1881
+ * @generated from field: uint32 key_index = 3;
1882
+ */
1883
+ keyIndex: number;
1884
+
1885
+ /**
1886
+ * This is an encrypted EncryptedPacketPayload message representation
1887
+ *
1888
+ * @generated from field: bytes encrypted_value = 4;
1889
+ */
1890
+ encryptedValue: Uint8Array;
1891
+
1892
+ constructor(data?: PartialMessage<EncryptedPacket>);
1893
+
1894
+ static readonly runtime: typeof proto3;
1895
+ static readonly typeName = "livekit.EncryptedPacket";
1896
+ static readonly fields: FieldList;
1897
+
1898
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacket;
1899
+
1900
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacket;
1901
+
1902
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacket;
1903
+
1904
+ static equals(a: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined, b: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined): boolean;
1905
+ }
1906
+
1907
+ /**
1908
+ * @generated from message livekit.EncryptedPacketPayload
1909
+ */
1910
+ declare class EncryptedPacketPayload extends Message<EncryptedPacketPayload> {
1911
+ /**
1912
+ * @generated from oneof livekit.EncryptedPacketPayload.value
1913
+ */
1914
+ value: {
1915
+ /**
1916
+ * @generated from field: livekit.UserPacket user = 1;
1917
+ */
1918
+ value: UserPacket;
1919
+ case: "user";
1920
+ } | {
1921
+ /**
1922
+ * @generated from field: livekit.ChatMessage chat_message = 3;
1923
+ */
1924
+ value: ChatMessage;
1925
+ case: "chatMessage";
1926
+ } | {
1927
+ /**
1928
+ * @generated from field: livekit.RpcRequest rpc_request = 4;
1929
+ */
1930
+ value: RpcRequest;
1931
+ case: "rpcRequest";
1932
+ } | {
1933
+ /**
1934
+ * @generated from field: livekit.RpcAck rpc_ack = 5;
1935
+ */
1936
+ value: RpcAck;
1937
+ case: "rpcAck";
1938
+ } | {
1939
+ /**
1940
+ * @generated from field: livekit.RpcResponse rpc_response = 6;
1941
+ */
1942
+ value: RpcResponse;
1943
+ case: "rpcResponse";
1944
+ } | {
1945
+ /**
1946
+ * @generated from field: livekit.DataStream.Header stream_header = 7;
1947
+ */
1948
+ value: DataStream_Header;
1949
+ case: "streamHeader";
1950
+ } | {
1951
+ /**
1952
+ * @generated from field: livekit.DataStream.Chunk stream_chunk = 8;
1953
+ */
1954
+ value: DataStream_Chunk;
1955
+ case: "streamChunk";
1956
+ } | {
1957
+ /**
1958
+ * @generated from field: livekit.DataStream.Trailer stream_trailer = 9;
1959
+ */
1960
+ value: DataStream_Trailer;
1961
+ case: "streamTrailer";
1962
+ } | { case: undefined; value?: undefined };
1963
+
1964
+ constructor(data?: PartialMessage<EncryptedPacketPayload>);
1965
+
1966
+ static readonly runtime: typeof proto3;
1967
+ static readonly typeName = "livekit.EncryptedPacketPayload";
1968
+ static readonly fields: FieldList;
1969
+
1970
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacketPayload;
1971
+
1972
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
1973
+
1974
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
1975
+
1976
+ static equals(a: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined, b: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined): boolean;
1977
+ }
1978
+
1797
1979
  /**
1798
1980
  * @generated from message livekit.ActiveSpeakerUpdate
1799
1981
  * @deprecated
@@ -1906,7 +2088,7 @@ declare class UserPacket extends Message<UserPacket> {
1906
2088
  topic?: string;
1907
2089
 
1908
2090
  /**
1909
- * Unique ID to indentify the message
2091
+ * Unique ID to identify the message
1910
2092
  *
1911
2093
  * @generated from field: optional string id = 8;
1912
2094
  */
@@ -3355,9 +3537,10 @@ declare class DataStream_Header extends Message<DataStream_Header> {
3355
3537
  totalLength?: bigint;
3356
3538
 
3357
3539
  /**
3358
- * defaults to NONE
3540
+ * this is set on the DataPacket
3359
3541
  *
3360
- * @generated from field: livekit.Encryption.Type encryption_type = 7;
3542
+ * @generated from field: livekit.Encryption.Type encryption_type = 7 [deprecated = true];
3543
+ * @deprecated
3361
3544
  */
3362
3545
  encryptionType: Encryption_Type;
3363
3546
 
@@ -3433,9 +3616,10 @@ declare class DataStream_Chunk extends Message<DataStream_Chunk> {
3433
3616
  version: number;
3434
3617
 
3435
3618
  /**
3436
- * optional, initialization vector for AES-GCM encryption
3619
+ * this is set on the DataPacket
3437
3620
  *
3438
- * @generated from field: optional bytes iv = 5;
3621
+ * @generated from field: optional bytes iv = 5 [deprecated = true];
3622
+ * @deprecated
3439
3623
  */
3440
3624
  iv?: Uint8Array;
3441
3625
 
@@ -3523,6 +3707,35 @@ declare class WebhookConfig extends Message<WebhookConfig> {
3523
3707
  static equals(a: WebhookConfig | PlainMessage<WebhookConfig> | undefined, b: WebhookConfig | PlainMessage<WebhookConfig> | undefined): boolean;
3524
3708
  }
3525
3709
 
3710
+ /**
3711
+ * @generated from message livekit.SubscribedAudioCodec
3712
+ */
3713
+ declare class SubscribedAudioCodec extends Message<SubscribedAudioCodec> {
3714
+ /**
3715
+ * @generated from field: string codec = 1;
3716
+ */
3717
+ codec: string;
3718
+
3719
+ /**
3720
+ * @generated from field: bool enabled = 2;
3721
+ */
3722
+ enabled: boolean;
3723
+
3724
+ constructor(data?: PartialMessage<SubscribedAudioCodec>);
3725
+
3726
+ static readonly runtime: typeof proto3;
3727
+ static readonly typeName = "livekit.SubscribedAudioCodec";
3728
+ static readonly fields: FieldList;
3729
+
3730
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodec;
3731
+
3732
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
3733
+
3734
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
3735
+
3736
+ static equals(a: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined, b: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined): boolean;
3737
+ }
3738
+
3526
3739
  // Copyright 2023 LiveKit, Inc.
3527
3740
  //
3528
3741
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -4561,6 +4774,11 @@ declare enum EncodedFileType {
4561
4774
  * @generated from enum value: OGG = 2;
4562
4775
  */
4563
4776
  OGG = 2,
4777
+
4778
+ /**
4779
+ * @generated from enum value: MP3 = 3;
4780
+ */
4781
+ MP3 = 3,
4564
4782
  }
4565
4783
 
4566
4784
  /**
@@ -8437,6 +8655,74 @@ declare class MoveParticipantResponse extends Message<MoveParticipantResponse> {
8437
8655
  static equals(a: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined, b: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined): boolean;
8438
8656
  }
8439
8657
 
8658
+ /**
8659
+ * @generated from message livekit.PerformRpcRequest
8660
+ */
8661
+ declare class PerformRpcRequest extends Message<PerformRpcRequest> {
8662
+ /**
8663
+ * @generated from field: string room = 1;
8664
+ */
8665
+ room: string;
8666
+
8667
+ /**
8668
+ * @generated from field: string destination_identity = 2;
8669
+ */
8670
+ destinationIdentity: string;
8671
+
8672
+ /**
8673
+ * @generated from field: string method = 3;
8674
+ */
8675
+ method: string;
8676
+
8677
+ /**
8678
+ * @generated from field: string payload = 4;
8679
+ */
8680
+ payload: string;
8681
+
8682
+ /**
8683
+ * @generated from field: uint32 response_timeout_ms = 5;
8684
+ */
8685
+ responseTimeoutMs: number;
8686
+
8687
+ constructor(data?: PartialMessage<PerformRpcRequest>);
8688
+
8689
+ static readonly runtime: typeof proto3;
8690
+ static readonly typeName = "livekit.PerformRpcRequest";
8691
+ static readonly fields: FieldList;
8692
+
8693
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcRequest;
8694
+
8695
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcRequest;
8696
+
8697
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcRequest;
8698
+
8699
+ static equals(a: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined, b: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined): boolean;
8700
+ }
8701
+
8702
+ /**
8703
+ * @generated from message livekit.PerformRpcResponse
8704
+ */
8705
+ declare class PerformRpcResponse extends Message<PerformRpcResponse> {
8706
+ /**
8707
+ * @generated from field: string payload = 1;
8708
+ */
8709
+ payload: string;
8710
+
8711
+ constructor(data?: PartialMessage<PerformRpcResponse>);
8712
+
8713
+ static readonly runtime: typeof proto3;
8714
+ static readonly typeName = "livekit.PerformRpcResponse";
8715
+ static readonly fields: FieldList;
8716
+
8717
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcResponse;
8718
+
8719
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcResponse;
8720
+
8721
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcResponse;
8722
+
8723
+ static equals(a: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined, b: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined): boolean;
8724
+ }
8725
+
8440
8726
  // Copyright 2023 LiveKit, Inc.
8441
8727
  //
8442
8728
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -8855,6 +9141,22 @@ declare class SignalResponse extends Message<SignalResponse> {
8855
9141
  */
8856
9142
  value: RoomMovedResponse;
8857
9143
  case: "roomMoved";
9144
+ } | {
9145
+ /**
9146
+ * notify number of required media sections to satisfy subscribed tracks
9147
+ *
9148
+ * @generated from field: livekit.MediaSectionsRequirement media_sections_requirement = 25;
9149
+ */
9150
+ value: MediaSectionsRequirement;
9151
+ case: "mediaSectionsRequirement";
9152
+ } | {
9153
+ /**
9154
+ * when audio subscription changes, used to enable simulcasting of audio codecs based on subscriptions
9155
+ *
9156
+ * @generated from field: livekit.SubscribedAudioCodecUpdate subscribed_audio_codec_update = 26;
9157
+ */
9158
+ value: SubscribedAudioCodecUpdate;
9159
+ case: "subscribedAudioCodecUpdate";
8858
9160
  } | { case: undefined; value?: undefined };
8859
9161
 
8860
9162
  constructor(data?: PartialMessage<SignalResponse>);
@@ -9961,6 +10263,35 @@ declare class SubscribedQualityUpdate extends Message<SubscribedQualityUpdate> {
9961
10263
  static equals(a: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined, b: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined): boolean;
9962
10264
  }
9963
10265
 
10266
+ /**
10267
+ * @generated from message livekit.SubscribedAudioCodecUpdate
10268
+ */
10269
+ declare class SubscribedAudioCodecUpdate extends Message<SubscribedAudioCodecUpdate> {
10270
+ /**
10271
+ * @generated from field: string track_sid = 1;
10272
+ */
10273
+ trackSid: string;
10274
+
10275
+ /**
10276
+ * @generated from field: repeated livekit.SubscribedAudioCodec subscribed_audio_codecs = 2;
10277
+ */
10278
+ subscribedAudioCodecs: SubscribedAudioCodec[];
10279
+
10280
+ constructor(data?: PartialMessage<SubscribedAudioCodecUpdate>);
10281
+
10282
+ static readonly runtime: typeof proto3;
10283
+ static readonly typeName = "livekit.SubscribedAudioCodecUpdate";
10284
+ static readonly fields: FieldList;
10285
+
10286
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodecUpdate;
10287
+
10288
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodecUpdate;
10289
+
10290
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodecUpdate;
10291
+
10292
+ static equals(a: SubscribedAudioCodecUpdate | PlainMessage<SubscribedAudioCodecUpdate> | undefined, b: SubscribedAudioCodecUpdate | PlainMessage<SubscribedAudioCodecUpdate> | undefined): boolean;
10293
+ }
10294
+
9964
10295
  /**
9965
10296
  * @generated from message livekit.TrackPermission
9966
10297
  */
@@ -10113,7 +10444,9 @@ declare class RoomMovedResponse extends Message<RoomMovedResponse> {
10113
10444
  */
10114
10445
  declare class SyncState extends Message<SyncState> {
10115
10446
  /**
10116
- * last subscribe answer before reconnecting
10447
+ * last subscribe/publish answer before reconnecting
10448
+ * subscribe answer if using dual peer connection
10449
+ * publish answer if using single peer connection
10117
10450
  *
10118
10451
  * @generated from field: livekit.SessionDescription answer = 1;
10119
10452
  */
@@ -10135,7 +10468,9 @@ declare class SyncState extends Message<SyncState> {
10135
10468
  dataChannels: DataChannelInfo[];
10136
10469
 
10137
10470
  /**
10138
- * last received server side offer before reconnecting
10471
+ * last received server side offer/sent client side offer before reconnecting
10472
+ * received server side offer if using dual peer connection
10473
+ * sent client side offer if using single peer connection
10139
10474
  *
10140
10475
  * @generated from field: livekit.SessionDescription offer = 5;
10141
10476
  */
@@ -10494,6 +10829,47 @@ declare class RequestResponse extends Message<RequestResponse> {
10494
10829
  */
10495
10830
  message: string;
10496
10831
 
10832
+ /**
10833
+ * @generated from oneof livekit.RequestResponse.request
10834
+ */
10835
+ request: {
10836
+ /**
10837
+ * @generated from field: livekit.TrickleRequest trickle = 4;
10838
+ */
10839
+ value: TrickleRequest;
10840
+ case: "trickle";
10841
+ } | {
10842
+ /**
10843
+ * @generated from field: livekit.AddTrackRequest add_track = 5;
10844
+ */
10845
+ value: AddTrackRequest;
10846
+ case: "addTrack";
10847
+ } | {
10848
+ /**
10849
+ * @generated from field: livekit.MuteTrackRequest mute = 6;
10850
+ */
10851
+ value: MuteTrackRequest;
10852
+ case: "mute";
10853
+ } | {
10854
+ /**
10855
+ * @generated from field: livekit.UpdateParticipantMetadata update_metadata = 7;
10856
+ */
10857
+ value: UpdateParticipantMetadata;
10858
+ case: "updateMetadata";
10859
+ } | {
10860
+ /**
10861
+ * @generated from field: livekit.UpdateLocalAudioTrack update_audio_track = 8;
10862
+ */
10863
+ value: UpdateLocalAudioTrack;
10864
+ case: "updateAudioTrack";
10865
+ } | {
10866
+ /**
10867
+ * @generated from field: livekit.UpdateLocalVideoTrack update_video_track = 9;
10868
+ */
10869
+ value: UpdateLocalVideoTrack;
10870
+ case: "updateVideoTrack";
10871
+ } | { case: undefined; value?: undefined };
10872
+
10497
10873
  constructor(data?: PartialMessage<RequestResponse>);
10498
10874
 
10499
10875
  static readonly runtime: typeof proto3;
@@ -10532,6 +10908,21 @@ declare enum RequestResponse_Reason {
10532
10908
  * @generated from enum value: LIMIT_EXCEEDED = 3;
10533
10909
  */
10534
10910
  LIMIT_EXCEEDED = 3,
10911
+
10912
+ /**
10913
+ * @generated from enum value: QUEUED = 4;
10914
+ */
10915
+ QUEUED = 4,
10916
+
10917
+ /**
10918
+ * @generated from enum value: UNSUPPORTED_TYPE = 5;
10919
+ */
10920
+ UNSUPPORTED_TYPE = 5,
10921
+
10922
+ /**
10923
+ * @generated from enum value: UNCLASSIFIED_ERROR = 6;
10924
+ */
10925
+ UNCLASSIFIED_ERROR = 6,
10535
10926
  }
10536
10927
 
10537
10928
  /**
@@ -10718,6 +11109,35 @@ declare enum WrappedJoinRequest_Compression {
10718
11109
  GZIP = 1,
10719
11110
  }
10720
11111
 
11112
+ /**
11113
+ * @generated from message livekit.MediaSectionsRequirement
11114
+ */
11115
+ declare class MediaSectionsRequirement extends Message<MediaSectionsRequirement> {
11116
+ /**
11117
+ * @generated from field: uint32 num_audios = 1;
11118
+ */
11119
+ numAudios: number;
11120
+
11121
+ /**
11122
+ * @generated from field: uint32 num_videos = 2;
11123
+ */
11124
+ numVideos: number;
11125
+
11126
+ constructor(data?: PartialMessage<MediaSectionsRequirement>);
11127
+
11128
+ static readonly runtime: typeof proto3;
11129
+ static readonly typeName = "livekit.MediaSectionsRequirement";
11130
+ static readonly fields: FieldList;
11131
+
11132
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaSectionsRequirement;
11133
+
11134
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
11135
+
11136
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaSectionsRequirement;
11137
+
11138
+ static equals(a: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined, b: MediaSectionsRequirement | PlainMessage<MediaSectionsRequirement> | undefined): boolean;
11139
+ }
11140
+
10721
11141
  // Copyright 2023 LiveKit, Inc.
10722
11142
  //
10723
11143
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -12967,12 +13387,24 @@ declare class CreateSIPParticipantRequest extends Message<CreateSIPParticipantRe
12967
13387
  /**
12968
13388
  * Wait for the answer for the call before returning.
12969
13389
  *
12970
- * NEXT ID: 21
12971
- *
12972
13390
  * @generated from field: bool wait_until_answered = 19;
12973
13391
  */
12974
13392
  waitUntilAnswered: boolean;
12975
13393
 
13394
+ /**
13395
+ * Optional display name for the 'From' SIP header.
13396
+ *
13397
+ * Cases:
13398
+ * 1) Unspecified: Use legacy behavior - display name will be set to be the caller's number.
13399
+ * 2) Empty string: Do not send a display name, which will result in a CNAM lookup downstream.
13400
+ * 3) Non-empty: Use the specified value as the display name.
13401
+ *
13402
+ * NEXT ID: 22
13403
+ *
13404
+ * @generated from field: optional string display_name = 21;
13405
+ */
13406
+ displayName?: string;
13407
+
12976
13408
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
12977
13409
 
12978
13410
  static readonly runtime: typeof proto3;
@@ -13211,6 +13643,16 @@ declare class SIPCallInfo extends Message<SIPCallInfo> {
13211
13643
  */
13212
13644
  mediaEncryption: string;
13213
13645
 
13646
+ /**
13647
+ * @generated from field: string pcap_file_link = 25;
13648
+ */
13649
+ pcapFileLink: string;
13650
+
13651
+ /**
13652
+ * @generated from field: repeated google.protobuf.Any call_context = 26;
13653
+ */
13654
+ callContext: Any[];
13655
+
13214
13656
  constructor(data?: PartialMessage<SIPCallInfo>);
13215
13657
 
13216
13658
  static readonly runtime: typeof proto3;
@@ -13329,6 +13771,114 @@ declare class SIPUri extends Message<SIPUri> {
13329
13771
  static equals(a: SIPUri | PlainMessage<SIPUri> | undefined, b: SIPUri | PlainMessage<SIPUri> | undefined): boolean;
13330
13772
  }
13331
13773
 
13774
+ // Copyright 2025 LiveKit, Inc.
13775
+ //
13776
+ // Licensed under the Apache License, Version 2.0 (the "License");
13777
+ // you may not use this file except in compliance with the License.
13778
+ // You may obtain a copy of the License at
13779
+ //
13780
+ // http://www.apache.org/licenses/LICENSE-2.0
13781
+ //
13782
+ // Unless required by applicable law or agreed to in writing, software
13783
+ // distributed under the License is distributed on an "AS IS" BASIS,
13784
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13785
+ // See the License for the specific language governing permissions and
13786
+ // limitations under the License.
13787
+
13788
+
13789
+
13790
+ /**
13791
+ * @generated from message livekit.TokenSourceRequest
13792
+ */
13793
+ declare class TokenSourceRequest extends Message<TokenSourceRequest> {
13794
+ /**
13795
+ * The name of the room being requested when generating credentials
13796
+ *
13797
+ * @generated from field: optional string room_name = 1;
13798
+ */
13799
+ roomName?: string;
13800
+
13801
+ /**
13802
+ * The name of the participant being requested for this client when generating credentials
13803
+ *
13804
+ * @generated from field: optional string participant_name = 2;
13805
+ */
13806
+ participantName?: string;
13807
+
13808
+ /**
13809
+ * The identity of the participant being requested for this client when generating credentials
13810
+ *
13811
+ * @generated from field: optional string participant_identity = 3;
13812
+ */
13813
+ participantIdentity?: string;
13814
+
13815
+ /**
13816
+ * Any participant metadata being included along with the credentials generation operation
13817
+ *
13818
+ * @generated from field: optional string participant_metadata = 4;
13819
+ */
13820
+ participantMetadata?: string;
13821
+
13822
+ /**
13823
+ * Any participant attributes being included along with the credentials generation operation
13824
+ *
13825
+ * @generated from field: map<string, string> participant_attributes = 5;
13826
+ */
13827
+ participantAttributes: { [key: string]: string };
13828
+
13829
+ /**
13830
+ * A RoomConfiguration object can be passed to request extra parameters should be included when
13831
+ * generating connection credentials - dispatching agents, defining egress settings, etc
13832
+ * More info: https://docs.livekit.io/home/get-started/authentication/#room-configuration
13833
+ *
13834
+ * @generated from field: optional livekit.RoomConfiguration room_config = 6;
13835
+ */
13836
+ roomConfig?: RoomConfiguration;
13837
+
13838
+ constructor(data?: PartialMessage<TokenSourceRequest>);
13839
+
13840
+ static readonly runtime: typeof proto3;
13841
+ static readonly typeName = "livekit.TokenSourceRequest";
13842
+ static readonly fields: FieldList;
13843
+
13844
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenSourceRequest;
13845
+
13846
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenSourceRequest;
13847
+
13848
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenSourceRequest;
13849
+
13850
+ static equals(a: TokenSourceRequest | PlainMessage<TokenSourceRequest> | undefined, b: TokenSourceRequest | PlainMessage<TokenSourceRequest> | undefined): boolean;
13851
+ }
13852
+
13853
+ /**
13854
+ * @generated from message livekit.TokenSourceResponse
13855
+ */
13856
+ declare class TokenSourceResponse extends Message<TokenSourceResponse> {
13857
+ /**
13858
+ * @generated from field: string server_url = 1;
13859
+ */
13860
+ serverUrl: string;
13861
+
13862
+ /**
13863
+ * @generated from field: string participant_token = 2;
13864
+ */
13865
+ participantToken: string;
13866
+
13867
+ constructor(data?: PartialMessage<TokenSourceResponse>);
13868
+
13869
+ static readonly runtime: typeof proto3;
13870
+ static readonly typeName = "livekit.TokenSourceResponse";
13871
+ static readonly fields: FieldList;
13872
+
13873
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenSourceResponse;
13874
+
13875
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenSourceResponse;
13876
+
13877
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenSourceResponse;
13878
+
13879
+ static equals(a: TokenSourceResponse | PlainMessage<TokenSourceResponse> | undefined, b: TokenSourceResponse | PlainMessage<TokenSourceResponse> | undefined): boolean;
13880
+ }
13881
+
13332
13882
  // Copyright 2023 LiveKit, Inc.
13333
13883
  //
13334
13884
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -13428,4 +13978,4 @@ declare class WebhookEvent extends Message<WebhookEvent> {
13428
13978
 
13429
13979
  declare const version: string;
13430
13980
 
13431
- export { ActiveSpeakerUpdate, AddTrackRequest, AgentDispatch, AgentDispatchState, AliOSSUpload, AudioCodec, AudioMixing, AudioTrackFeature, AutoParticipantEgress, AutoTrackEgress, AvailabilityRequest, AvailabilityResponse, AzureBlobUpload, BackupCodecPolicy, CandidateProtocol, ChatMessage, ClientConfigSetting, ClientConfiguration, ClientInfo, ClientInfo_SDK, Codec, ConnectionQuality, ConnectionQualityInfo, ConnectionQualityUpdate, ConnectionSettings, CreateAgentDispatchRequest, CreateIngressRequest, CreateRoomRequest, CreateSIPDispatchRuleRequest, CreateSIPInboundTrunkRequest, CreateSIPOutboundTrunkRequest, CreateSIPParticipantRequest, CreateSIPTrunkRequest, DataChannelInfo, DataChannelReceiveState, DataPacket, DataPacket_Kind, DataStream, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DeleteAgentDispatchRequest, DeleteIngressRequest, DeleteRoomRequest, DeleteRoomResponse, DeleteSIPDispatchRuleRequest, DeleteSIPTrunkRequest, DirectFileOutput, DisabledCodecs, DisconnectReason, EgressInfo, EgressSourceType, EgressStatus, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, Encryption, Encryption_Type, EventMetric, FileInfo, ForwardParticipantRequest, ForwardParticipantResponse, GCPUpload, GetSIPInboundTrunkRequest, GetSIPInboundTrunkResponse, GetSIPOutboundTrunkRequest, GetSIPOutboundTrunkResponse, ICEServer, ImageCodec, ImageFileSuffix, ImageOutput, ImagesInfo, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressState_Status, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, InputAudioState, InputVideoState, Job, JobAssignment, JobState, JobStatus, JobTermination, JobType, JoinRequest, JoinResponse, LeaveRequest, LeaveRequest_Action, ListAgentDispatchRequest, ListAgentDispatchResponse, ListEgressRequest, ListEgressResponse, ListIngressRequest, ListIngressResponse, ListParticipantsRequest, ListParticipantsResponse, ListRoomsRequest, ListRoomsResponse, ListSIPDispatchRuleRequest, ListSIPDispatchRuleResponse, ListSIPInboundTrunkRequest, ListSIPInboundTrunkResponse, ListSIPOutboundTrunkRequest, ListSIPOutboundTrunkResponse, ListSIPTrunkRequest, ListSIPTrunkResponse, ListUpdate, MetricLabel, MetricSample, MetricsBatch, MigrateJobRequest, MoveParticipantRequest, MoveParticipantResponse, MuteRoomTrackRequest, MuteRoomTrackResponse, MuteTrackRequest, Pagination, ParticipantEgressRequest, ParticipantInfo, ParticipantInfo_Kind, ParticipantInfo_KindDetail, ParticipantInfo_State, ParticipantPermission, ParticipantTracks, ParticipantUpdate, Ping, PlayoutDelay, Pong, ProxyConfig, RTCPSenderReportState, RTPDrift, RTPForwarderState, RTPMungerState, RTPStats, ReconnectReason, ReconnectResponse, RegionInfo, RegionSettings, RegisterWorkerRequest, RegisterWorkerResponse, RemoveParticipantResponse, RequestResponse, RequestResponse_Reason, Room, RoomAgent, RoomAgentDispatch, RoomCompositeEgressRequest, RoomConfiguration, RoomEgress, RoomMovedResponse, RoomParticipantIdentity, RoomUpdate, RpcAck, RpcError, RpcRequest, RpcResponse, S3Upload, SIPCallDirection, SIPCallInfo, SIPCallStatus, SIPDispatchRule, SIPDispatchRuleCallee, SIPDispatchRuleDirect, SIPDispatchRuleIndividual, SIPDispatchRuleInfo, SIPDispatchRuleUpdate, SIPFeature, SIPHeaderOptions, SIPInboundTrunkInfo, SIPInboundTrunkUpdate, SIPMediaEncryption, SIPOutboundConfig, SIPOutboundTrunkInfo, SIPOutboundTrunkUpdate, SIPParticipantInfo, SIPStatus, SIPStatusCode, SIPTransferInfo, SIPTransferStatus, SIPTransport, SIPTrunkInfo, SIPTrunkInfo_TrunkKind, SIPUri, SegmentedFileOutput, SegmentedFileProtocol, SegmentedFileSuffix, SegmentsInfo, SendDataRequest, SendDataResponse, ServerInfo, ServerInfo_Edition, ServerMessage, SessionDescription, SignalRequest, SignalResponse, SignalTarget, SimulateJobRequest, SimulateScenario, SimulcastCodec, SimulcastCodecInfo, SipDTMF, SpeakerInfo, SpeakersChanged, StopEgressRequest, StreamInfo, StreamInfoList, StreamInfo_Status, StreamOutput, StreamProtocol, StreamState, StreamStateInfo, StreamStateUpdate, SubscribedCodec, SubscribedQuality, SubscribedQualityUpdate, SubscriptionError, SubscriptionPermission, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TimeSeriesMetric, TimedVersion, TrackCompositeEgressRequest, TrackEgressRequest, TrackInfo, TrackPermission, TrackPublishedResponse, TrackSource, TrackSubscribed, TrackType, TrackUnpublishedResponse, Transcription, TranscriptionSegment, TransferSIPParticipantRequest, TrickleRequest, UpdateIngressRequest, UpdateJobStatus, UpdateLayoutRequest, UpdateLocalAudioTrack, UpdateLocalVideoTrack, UpdateParticipantMetadata, UpdateParticipantRequest, UpdateRoomMetadataRequest, UpdateSIPDispatchRuleRequest, UpdateSIPInboundTrunkRequest, UpdateSIPOutboundTrunkRequest, UpdateStreamRequest, UpdateSubscription, UpdateSubscriptionsRequest, UpdateSubscriptionsResponse, UpdateTrackSettings, UpdateVideoLayers, UpdateWorkerStatus, UserPacket, VP8MungerState, VideoCodec, VideoConfiguration, VideoLayer, VideoLayer_Mode, VideoQuality, WebEgressRequest, WebhookConfig, WebhookEvent, WorkerMessage, WorkerPing, WorkerPong, WorkerStatus, WrappedJoinRequest, WrappedJoinRequest_Compression, version };
13981
+ export { ActiveSpeakerUpdate, AddTrackRequest, AgentDispatch, AgentDispatchState, AliOSSUpload, AudioCodec, AudioMixing, AudioTrackFeature, AutoParticipantEgress, AutoTrackEgress, AvailabilityRequest, AvailabilityResponse, AzureBlobUpload, BackupCodecPolicy, CandidateProtocol, ChatMessage, ClientConfigSetting, ClientConfiguration, ClientInfo, ClientInfo_SDK, Codec, ConnectionQuality, ConnectionQualityInfo, ConnectionQualityUpdate, ConnectionSettings, CreateAgentDispatchRequest, CreateIngressRequest, CreateRoomRequest, CreateSIPDispatchRuleRequest, CreateSIPInboundTrunkRequest, CreateSIPOutboundTrunkRequest, CreateSIPParticipantRequest, CreateSIPTrunkRequest, DataChannelInfo, DataChannelReceiveState, DataPacket, DataPacket_Kind, DataStream, DataStream_ByteHeader, DataStream_Chunk, DataStream_Header, DataStream_OperationType, DataStream_TextHeader, DataStream_Trailer, DeleteAgentDispatchRequest, DeleteIngressRequest, DeleteRoomRequest, DeleteRoomResponse, DeleteSIPDispatchRuleRequest, DeleteSIPTrunkRequest, DirectFileOutput, DisabledCodecs, DisconnectReason, EgressInfo, EgressSourceType, EgressStatus, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, EncryptedPacket, EncryptedPacketPayload, Encryption, Encryption_Type, EventMetric, FileInfo, ForwardParticipantRequest, ForwardParticipantResponse, GCPUpload, GetSIPInboundTrunkRequest, GetSIPInboundTrunkResponse, GetSIPOutboundTrunkRequest, GetSIPOutboundTrunkResponse, ICEServer, ImageCodec, ImageFileSuffix, ImageOutput, ImagesInfo, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressState_Status, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, InputAudioState, InputVideoState, Job, JobAssignment, JobState, JobStatus, JobTermination, JobType, JoinRequest, JoinResponse, LeaveRequest, LeaveRequest_Action, ListAgentDispatchRequest, ListAgentDispatchResponse, ListEgressRequest, ListEgressResponse, ListIngressRequest, ListIngressResponse, ListParticipantsRequest, ListParticipantsResponse, ListRoomsRequest, ListRoomsResponse, ListSIPDispatchRuleRequest, ListSIPDispatchRuleResponse, ListSIPInboundTrunkRequest, ListSIPInboundTrunkResponse, ListSIPOutboundTrunkRequest, ListSIPOutboundTrunkResponse, ListSIPTrunkRequest, ListSIPTrunkResponse, ListUpdate, MediaSectionsRequirement, MetricLabel, MetricSample, MetricsBatch, MetricsRecordingHeader, MigrateJobRequest, MoveParticipantRequest, MoveParticipantResponse, MuteRoomTrackRequest, MuteRoomTrackResponse, MuteTrackRequest, Pagination, ParticipantEgressRequest, ParticipantInfo, ParticipantInfo_Kind, ParticipantInfo_KindDetail, ParticipantInfo_State, ParticipantPermission, ParticipantTracks, ParticipantUpdate, PerformRpcRequest, PerformRpcResponse, Ping, PlayoutDelay, Pong, ProxyConfig, RTCPSenderReportState, RTPDrift, RTPForwarderState, RTPMungerState, RTPStats, ReconnectReason, ReconnectResponse, RegionInfo, RegionSettings, RegisterWorkerRequest, RegisterWorkerResponse, RemoveParticipantResponse, RequestResponse, RequestResponse_Reason, Room, RoomAgent, RoomAgentDispatch, RoomCompositeEgressRequest, RoomConfiguration, RoomEgress, RoomMovedResponse, RoomParticipantIdentity, RoomUpdate, RpcAck, RpcError, RpcRequest, RpcResponse, S3Upload, SIPCallDirection, SIPCallInfo, SIPCallStatus, SIPDispatchRule, SIPDispatchRuleCallee, SIPDispatchRuleDirect, SIPDispatchRuleIndividual, SIPDispatchRuleInfo, SIPDispatchRuleUpdate, SIPFeature, SIPHeaderOptions, SIPInboundTrunkInfo, SIPInboundTrunkUpdate, SIPMediaEncryption, SIPOutboundConfig, SIPOutboundTrunkInfo, SIPOutboundTrunkUpdate, SIPParticipantInfo, SIPStatus, SIPStatusCode, SIPTransferInfo, SIPTransferStatus, SIPTransport, SIPTrunkInfo, SIPTrunkInfo_TrunkKind, SIPUri, SegmentedFileOutput, SegmentedFileProtocol, SegmentedFileSuffix, SegmentsInfo, SendDataRequest, SendDataResponse, ServerInfo, ServerInfo_Edition, ServerMessage, SessionDescription, SignalRequest, SignalResponse, SignalTarget, SimulateJobRequest, SimulateScenario, SimulcastCodec, SimulcastCodecInfo, SipDTMF, SpeakerInfo, SpeakersChanged, StopEgressRequest, StreamInfo, StreamInfoList, StreamInfo_Status, StreamOutput, StreamProtocol, StreamState, StreamStateInfo, StreamStateUpdate, SubscribedAudioCodec, SubscribedAudioCodecUpdate, SubscribedCodec, SubscribedQuality, SubscribedQualityUpdate, SubscriptionError, SubscriptionPermission, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TimeSeriesMetric, TimedVersion, TokenPagination, TokenSourceRequest, TokenSourceResponse, TrackCompositeEgressRequest, TrackEgressRequest, TrackInfo, TrackPermission, TrackPublishedResponse, TrackSource, TrackSubscribed, TrackType, TrackUnpublishedResponse, Transcription, TranscriptionSegment, TransferSIPParticipantRequest, TrickleRequest, UpdateIngressRequest, UpdateJobStatus, UpdateLayoutRequest, UpdateLocalAudioTrack, UpdateLocalVideoTrack, UpdateParticipantMetadata, UpdateParticipantRequest, UpdateRoomMetadataRequest, UpdateSIPDispatchRuleRequest, UpdateSIPInboundTrunkRequest, UpdateSIPOutboundTrunkRequest, UpdateStreamRequest, UpdateSubscription, UpdateSubscriptionsRequest, UpdateSubscriptionsResponse, UpdateTrackSettings, UpdateVideoLayers, UpdateWorkerStatus, UserPacket, VP8MungerState, VideoCodec, VideoConfiguration, VideoLayer, VideoLayer_Mode, VideoQuality, WebEgressRequest, WebhookConfig, WebhookEvent, WorkerMessage, WorkerPing, WorkerPong, WorkerStatus, WrappedJoinRequest, WrappedJoinRequest_Compression, version };