@livekit/rtc-node 0.5.1 → 0.6.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.
Files changed (54) hide show
  1. package/README.md +5 -2
  2. package/dist/audio_frame.d.ts.map +1 -1
  3. package/dist/audio_frame.js +5 -0
  4. package/dist/audio_frame.js.map +1 -1
  5. package/dist/audio_source.d.ts +1 -1
  6. package/dist/audio_source.d.ts.map +1 -1
  7. package/dist/audio_source.js +2 -1
  8. package/dist/audio_source.js.map +1 -1
  9. package/dist/audio_stream.d.ts.map +1 -1
  10. package/dist/ffi_client.d.ts.map +1 -1
  11. package/dist/participant.d.ts +5 -2
  12. package/dist/participant.d.ts.map +1 -1
  13. package/dist/participant.js +39 -16
  14. package/dist/participant.js.map +1 -1
  15. package/dist/proto/audio_frame_pb.d.ts +4 -0
  16. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  17. package/dist/proto/audio_frame_pb.js +1 -0
  18. package/dist/proto/audio_frame_pb.js.map +1 -1
  19. package/dist/proto/ffi_pb.d.ts +105 -51
  20. package/dist/proto/ffi_pb.d.ts.map +1 -1
  21. package/dist/proto/ffi_pb.js +48 -39
  22. package/dist/proto/ffi_pb.js.map +1 -1
  23. package/dist/proto/participant_pb.d.ts +6 -0
  24. package/dist/proto/participant_pb.d.ts.map +1 -1
  25. package/dist/proto/participant_pb.js +5 -0
  26. package/dist/proto/participant_pb.js.map +1 -1
  27. package/dist/proto/room_pb.d.ts +471 -111
  28. package/dist/proto/room_pb.d.ts.map +1 -1
  29. package/dist/proto/room_pb.js +639 -128
  30. package/dist/proto/room_pb.js.map +1 -1
  31. package/dist/room.d.ts +5 -2
  32. package/dist/room.d.ts.map +1 -1
  33. package/dist/room.js +40 -24
  34. package/dist/room.js.map +1 -1
  35. package/dist/utils.d.ts +2 -0
  36. package/dist/utils.d.ts.map +1 -0
  37. package/dist/utils.js +20 -0
  38. package/dist/utils.js.map +1 -0
  39. package/dist/video_stream.d.ts.map +1 -1
  40. package/package.json +6 -6
  41. package/src/audio_frame.ts +5 -0
  42. package/src/audio_source.ts +2 -1
  43. package/src/participant.ts +64 -28
  44. package/src/proto/audio_frame_pb.ts +7 -1
  45. package/src/proto/e2ee_pb.ts +1 -1
  46. package/src/proto/ffi_pb.ts +153 -90
  47. package/src/proto/handle_pb.ts +1 -1
  48. package/src/proto/participant_pb.ts +7 -1
  49. package/src/proto/room_pb.ts +845 -169
  50. package/src/proto/stats_pb.ts +1 -1
  51. package/src/proto/track_pb.ts +1 -1
  52. package/src/proto/video_frame_pb.ts +1 -1
  53. package/src/room.ts +55 -26
  54. package/src/utils.ts +25 -0
@@ -589,15 +589,18 @@ export class PublishDataRequest extends Message {
589
589
  */
590
590
  this.dataLen = protoInt64.zero;
591
591
  /**
592
- * @generated from field: livekit.proto.DataPacketKind kind = 4;
592
+ * @generated from field: bool reliable = 4;
593
593
  */
594
- this.kind = DataPacketKind.KIND_LOSSY;
594
+ this.reliable = false;
595
595
  /**
596
- * destination
597
- *
598
- * @generated from field: repeated string destination_sids = 5;
596
+ * @generated from field: repeated string destination_sids = 5 [deprecated = true];
597
+ * @deprecated
599
598
  */
600
599
  this.destinationSids = [];
600
+ /**
601
+ * @generated from field: repeated string destination_identities = 7;
602
+ */
603
+ this.destinationIdentities = [];
601
604
  proto3.util.initPartial(data, this);
602
605
  }
603
606
  static fromBinary(bytes, options) {
@@ -619,9 +622,10 @@ PublishDataRequest.fields = proto3.util.newFieldList(() => [
619
622
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
620
623
  { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
621
624
  { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
622
- { no: 4, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
625
+ { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
623
626
  { no: 5, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
624
627
  { no: 6, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
628
+ { no: 7, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
625
629
  ]);
626
630
  /**
627
631
  * @generated from message livekit.proto.PublishDataResponse
@@ -684,12 +688,228 @@ PublishDataCallback.fields = proto3.util.newFieldList(() => [
684
688
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
685
689
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
686
690
  ]);
691
+ /**
692
+ * Publish transcription messages to room
693
+ *
694
+ * @generated from message livekit.proto.PublishTranscriptionRequest
695
+ */
696
+ export class PublishTranscriptionRequest extends Message {
697
+ constructor(data) {
698
+ super();
699
+ /**
700
+ * @generated from field: uint64 local_participant_handle = 1;
701
+ */
702
+ this.localParticipantHandle = protoInt64.zero;
703
+ /**
704
+ * @generated from field: string participant_identity = 2;
705
+ */
706
+ this.participantIdentity = "";
707
+ /**
708
+ * @generated from field: string track_id = 3;
709
+ */
710
+ this.trackId = "";
711
+ /**
712
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
713
+ */
714
+ this.segments = [];
715
+ proto3.util.initPartial(data, this);
716
+ }
717
+ static fromBinary(bytes, options) {
718
+ return new PublishTranscriptionRequest().fromBinary(bytes, options);
719
+ }
720
+ static fromJson(jsonValue, options) {
721
+ return new PublishTranscriptionRequest().fromJson(jsonValue, options);
722
+ }
723
+ static fromJsonString(jsonString, options) {
724
+ return new PublishTranscriptionRequest().fromJsonString(jsonString, options);
725
+ }
726
+ static equals(a, b) {
727
+ return proto3.util.equals(PublishTranscriptionRequest, a, b);
728
+ }
729
+ }
730
+ PublishTranscriptionRequest.runtime = proto3;
731
+ PublishTranscriptionRequest.typeName = "livekit.proto.PublishTranscriptionRequest";
732
+ PublishTranscriptionRequest.fields = proto3.util.newFieldList(() => [
733
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
734
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
735
+ { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
736
+ { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true },
737
+ ]);
738
+ /**
739
+ * @generated from message livekit.proto.PublishTranscriptionResponse
740
+ */
741
+ export class PublishTranscriptionResponse extends Message {
742
+ constructor(data) {
743
+ super();
744
+ /**
745
+ * @generated from field: uint64 async_id = 1;
746
+ */
747
+ this.asyncId = protoInt64.zero;
748
+ proto3.util.initPartial(data, this);
749
+ }
750
+ static fromBinary(bytes, options) {
751
+ return new PublishTranscriptionResponse().fromBinary(bytes, options);
752
+ }
753
+ static fromJson(jsonValue, options) {
754
+ return new PublishTranscriptionResponse().fromJson(jsonValue, options);
755
+ }
756
+ static fromJsonString(jsonString, options) {
757
+ return new PublishTranscriptionResponse().fromJsonString(jsonString, options);
758
+ }
759
+ static equals(a, b) {
760
+ return proto3.util.equals(PublishTranscriptionResponse, a, b);
761
+ }
762
+ }
763
+ PublishTranscriptionResponse.runtime = proto3;
764
+ PublishTranscriptionResponse.typeName = "livekit.proto.PublishTranscriptionResponse";
765
+ PublishTranscriptionResponse.fields = proto3.util.newFieldList(() => [
766
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
767
+ ]);
768
+ /**
769
+ * @generated from message livekit.proto.PublishTranscriptionCallback
770
+ */
771
+ export class PublishTranscriptionCallback extends Message {
772
+ constructor(data) {
773
+ super();
774
+ /**
775
+ * @generated from field: uint64 async_id = 1;
776
+ */
777
+ this.asyncId = protoInt64.zero;
778
+ proto3.util.initPartial(data, this);
779
+ }
780
+ static fromBinary(bytes, options) {
781
+ return new PublishTranscriptionCallback().fromBinary(bytes, options);
782
+ }
783
+ static fromJson(jsonValue, options) {
784
+ return new PublishTranscriptionCallback().fromJson(jsonValue, options);
785
+ }
786
+ static fromJsonString(jsonString, options) {
787
+ return new PublishTranscriptionCallback().fromJsonString(jsonString, options);
788
+ }
789
+ static equals(a, b) {
790
+ return proto3.util.equals(PublishTranscriptionCallback, a, b);
791
+ }
792
+ }
793
+ PublishTranscriptionCallback.runtime = proto3;
794
+ PublishTranscriptionCallback.typeName = "livekit.proto.PublishTranscriptionCallback";
795
+ PublishTranscriptionCallback.fields = proto3.util.newFieldList(() => [
796
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
797
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
798
+ ]);
799
+ /**
800
+ * Publish Sip DTMF messages to other participants
801
+ *
802
+ * @generated from message livekit.proto.PublishSipDtmfRequest
803
+ */
804
+ export class PublishSipDtmfRequest extends Message {
805
+ constructor(data) {
806
+ super();
807
+ /**
808
+ * @generated from field: uint64 local_participant_handle = 1;
809
+ */
810
+ this.localParticipantHandle = protoInt64.zero;
811
+ /**
812
+ * @generated from field: uint32 code = 2;
813
+ */
814
+ this.code = 0;
815
+ /**
816
+ * @generated from field: string digit = 3;
817
+ */
818
+ this.digit = "";
819
+ /**
820
+ * @generated from field: repeated string destination_identities = 4;
821
+ */
822
+ this.destinationIdentities = [];
823
+ proto3.util.initPartial(data, this);
824
+ }
825
+ static fromBinary(bytes, options) {
826
+ return new PublishSipDtmfRequest().fromBinary(bytes, options);
827
+ }
828
+ static fromJson(jsonValue, options) {
829
+ return new PublishSipDtmfRequest().fromJson(jsonValue, options);
830
+ }
831
+ static fromJsonString(jsonString, options) {
832
+ return new PublishSipDtmfRequest().fromJsonString(jsonString, options);
833
+ }
834
+ static equals(a, b) {
835
+ return proto3.util.equals(PublishSipDtmfRequest, a, b);
836
+ }
837
+ }
838
+ PublishSipDtmfRequest.runtime = proto3;
839
+ PublishSipDtmfRequest.typeName = "livekit.proto.PublishSipDtmfRequest";
840
+ PublishSipDtmfRequest.fields = proto3.util.newFieldList(() => [
841
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
842
+ { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
843
+ { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
844
+ { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
845
+ ]);
846
+ /**
847
+ * @generated from message livekit.proto.PublishSipDtmfResponse
848
+ */
849
+ export class PublishSipDtmfResponse extends Message {
850
+ constructor(data) {
851
+ super();
852
+ /**
853
+ * @generated from field: uint64 async_id = 1;
854
+ */
855
+ this.asyncId = protoInt64.zero;
856
+ proto3.util.initPartial(data, this);
857
+ }
858
+ static fromBinary(bytes, options) {
859
+ return new PublishSipDtmfResponse().fromBinary(bytes, options);
860
+ }
861
+ static fromJson(jsonValue, options) {
862
+ return new PublishSipDtmfResponse().fromJson(jsonValue, options);
863
+ }
864
+ static fromJsonString(jsonString, options) {
865
+ return new PublishSipDtmfResponse().fromJsonString(jsonString, options);
866
+ }
867
+ static equals(a, b) {
868
+ return proto3.util.equals(PublishSipDtmfResponse, a, b);
869
+ }
870
+ }
871
+ PublishSipDtmfResponse.runtime = proto3;
872
+ PublishSipDtmfResponse.typeName = "livekit.proto.PublishSipDtmfResponse";
873
+ PublishSipDtmfResponse.fields = proto3.util.newFieldList(() => [
874
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
875
+ ]);
876
+ /**
877
+ * @generated from message livekit.proto.PublishSipDtmfCallback
878
+ */
879
+ export class PublishSipDtmfCallback extends Message {
880
+ constructor(data) {
881
+ super();
882
+ /**
883
+ * @generated from field: uint64 async_id = 1;
884
+ */
885
+ this.asyncId = protoInt64.zero;
886
+ proto3.util.initPartial(data, this);
887
+ }
888
+ static fromBinary(bytes, options) {
889
+ return new PublishSipDtmfCallback().fromBinary(bytes, options);
890
+ }
891
+ static fromJson(jsonValue, options) {
892
+ return new PublishSipDtmfCallback().fromJson(jsonValue, options);
893
+ }
894
+ static fromJsonString(jsonString, options) {
895
+ return new PublishSipDtmfCallback().fromJsonString(jsonString, options);
896
+ }
897
+ static equals(a, b) {
898
+ return proto3.util.equals(PublishSipDtmfCallback, a, b);
899
+ }
900
+ }
901
+ PublishSipDtmfCallback.runtime = proto3;
902
+ PublishSipDtmfCallback.typeName = "livekit.proto.PublishSipDtmfCallback";
903
+ PublishSipDtmfCallback.fields = proto3.util.newFieldList(() => [
904
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
905
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
906
+ ]);
687
907
  /**
688
908
  * Change the local participant's metadata
689
909
  *
690
- * @generated from message livekit.proto.UpdateLocalMetadataRequest
910
+ * @generated from message livekit.proto.SetLocalMetadataRequest
691
911
  */
692
- export class UpdateLocalMetadataRequest extends Message {
912
+ export class SetLocalMetadataRequest extends Message {
693
913
  constructor(data) {
694
914
  super();
695
915
  /**
@@ -703,28 +923,58 @@ export class UpdateLocalMetadataRequest extends Message {
703
923
  proto3.util.initPartial(data, this);
704
924
  }
705
925
  static fromBinary(bytes, options) {
706
- return new UpdateLocalMetadataRequest().fromBinary(bytes, options);
926
+ return new SetLocalMetadataRequest().fromBinary(bytes, options);
707
927
  }
708
928
  static fromJson(jsonValue, options) {
709
- return new UpdateLocalMetadataRequest().fromJson(jsonValue, options);
929
+ return new SetLocalMetadataRequest().fromJson(jsonValue, options);
710
930
  }
711
931
  static fromJsonString(jsonString, options) {
712
- return new UpdateLocalMetadataRequest().fromJsonString(jsonString, options);
932
+ return new SetLocalMetadataRequest().fromJsonString(jsonString, options);
713
933
  }
714
934
  static equals(a, b) {
715
- return proto3.util.equals(UpdateLocalMetadataRequest, a, b);
935
+ return proto3.util.equals(SetLocalMetadataRequest, a, b);
716
936
  }
717
937
  }
718
- UpdateLocalMetadataRequest.runtime = proto3;
719
- UpdateLocalMetadataRequest.typeName = "livekit.proto.UpdateLocalMetadataRequest";
720
- UpdateLocalMetadataRequest.fields = proto3.util.newFieldList(() => [
938
+ SetLocalMetadataRequest.runtime = proto3;
939
+ SetLocalMetadataRequest.typeName = "livekit.proto.SetLocalMetadataRequest";
940
+ SetLocalMetadataRequest.fields = proto3.util.newFieldList(() => [
721
941
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
722
942
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
723
943
  ]);
724
944
  /**
725
- * @generated from message livekit.proto.UpdateLocalMetadataResponse
945
+ * @generated from message livekit.proto.SetLocalMetadataResponse
946
+ */
947
+ export class SetLocalMetadataResponse extends Message {
948
+ constructor(data) {
949
+ super();
950
+ /**
951
+ * @generated from field: uint64 async_id = 1;
952
+ */
953
+ this.asyncId = protoInt64.zero;
954
+ proto3.util.initPartial(data, this);
955
+ }
956
+ static fromBinary(bytes, options) {
957
+ return new SetLocalMetadataResponse().fromBinary(bytes, options);
958
+ }
959
+ static fromJson(jsonValue, options) {
960
+ return new SetLocalMetadataResponse().fromJson(jsonValue, options);
961
+ }
962
+ static fromJsonString(jsonString, options) {
963
+ return new SetLocalMetadataResponse().fromJsonString(jsonString, options);
964
+ }
965
+ static equals(a, b) {
966
+ return proto3.util.equals(SetLocalMetadataResponse, a, b);
967
+ }
968
+ }
969
+ SetLocalMetadataResponse.runtime = proto3;
970
+ SetLocalMetadataResponse.typeName = "livekit.proto.SetLocalMetadataResponse";
971
+ SetLocalMetadataResponse.fields = proto3.util.newFieldList(() => [
972
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
973
+ ]);
974
+ /**
975
+ * @generated from message livekit.proto.SetLocalMetadataCallback
726
976
  */
727
- export class UpdateLocalMetadataResponse extends Message {
977
+ export class SetLocalMetadataCallback extends Message {
728
978
  constructor(data) {
729
979
  super();
730
980
  /**
@@ -734,27 +984,65 @@ export class UpdateLocalMetadataResponse extends Message {
734
984
  proto3.util.initPartial(data, this);
735
985
  }
736
986
  static fromBinary(bytes, options) {
737
- return new UpdateLocalMetadataResponse().fromBinary(bytes, options);
987
+ return new SetLocalMetadataCallback().fromBinary(bytes, options);
738
988
  }
739
989
  static fromJson(jsonValue, options) {
740
- return new UpdateLocalMetadataResponse().fromJson(jsonValue, options);
990
+ return new SetLocalMetadataCallback().fromJson(jsonValue, options);
741
991
  }
742
992
  static fromJsonString(jsonString, options) {
743
- return new UpdateLocalMetadataResponse().fromJsonString(jsonString, options);
993
+ return new SetLocalMetadataCallback().fromJsonString(jsonString, options);
744
994
  }
745
995
  static equals(a, b) {
746
- return proto3.util.equals(UpdateLocalMetadataResponse, a, b);
996
+ return proto3.util.equals(SetLocalMetadataCallback, a, b);
747
997
  }
748
998
  }
749
- UpdateLocalMetadataResponse.runtime = proto3;
750
- UpdateLocalMetadataResponse.typeName = "livekit.proto.UpdateLocalMetadataResponse";
751
- UpdateLocalMetadataResponse.fields = proto3.util.newFieldList(() => [
999
+ SetLocalMetadataCallback.runtime = proto3;
1000
+ SetLocalMetadataCallback.typeName = "livekit.proto.SetLocalMetadataCallback";
1001
+ SetLocalMetadataCallback.fields = proto3.util.newFieldList(() => [
752
1002
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1003
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1004
+ ]);
1005
+ /**
1006
+ * Change the local participant's attributes
1007
+ *
1008
+ * @generated from message livekit.proto.SetLocalAttributesRequest
1009
+ */
1010
+ export class SetLocalAttributesRequest extends Message {
1011
+ constructor(data) {
1012
+ super();
1013
+ /**
1014
+ * @generated from field: uint64 local_participant_handle = 1;
1015
+ */
1016
+ this.localParticipantHandle = protoInt64.zero;
1017
+ /**
1018
+ * @generated from field: map<string, string> attributes = 2;
1019
+ */
1020
+ this.attributes = {};
1021
+ proto3.util.initPartial(data, this);
1022
+ }
1023
+ static fromBinary(bytes, options) {
1024
+ return new SetLocalAttributesRequest().fromBinary(bytes, options);
1025
+ }
1026
+ static fromJson(jsonValue, options) {
1027
+ return new SetLocalAttributesRequest().fromJson(jsonValue, options);
1028
+ }
1029
+ static fromJsonString(jsonString, options) {
1030
+ return new SetLocalAttributesRequest().fromJsonString(jsonString, options);
1031
+ }
1032
+ static equals(a, b) {
1033
+ return proto3.util.equals(SetLocalAttributesRequest, a, b);
1034
+ }
1035
+ }
1036
+ SetLocalAttributesRequest.runtime = proto3;
1037
+ SetLocalAttributesRequest.typeName = "livekit.proto.SetLocalAttributesRequest";
1038
+ SetLocalAttributesRequest.fields = proto3.util.newFieldList(() => [
1039
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1040
+ { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
753
1041
  ]);
754
1042
  /**
755
- * @generated from message livekit.proto.UpdateLocalMetadataCallback
1043
+ * @generated from message livekit.proto.SetLocalAttributesResponse
756
1044
  */
757
- export class UpdateLocalMetadataCallback extends Message {
1045
+ export class SetLocalAttributesResponse extends Message {
758
1046
  constructor(data) {
759
1047
  super();
760
1048
  /**
@@ -764,29 +1052,60 @@ export class UpdateLocalMetadataCallback extends Message {
764
1052
  proto3.util.initPartial(data, this);
765
1053
  }
766
1054
  static fromBinary(bytes, options) {
767
- return new UpdateLocalMetadataCallback().fromBinary(bytes, options);
1055
+ return new SetLocalAttributesResponse().fromBinary(bytes, options);
768
1056
  }
769
1057
  static fromJson(jsonValue, options) {
770
- return new UpdateLocalMetadataCallback().fromJson(jsonValue, options);
1058
+ return new SetLocalAttributesResponse().fromJson(jsonValue, options);
771
1059
  }
772
1060
  static fromJsonString(jsonString, options) {
773
- return new UpdateLocalMetadataCallback().fromJsonString(jsonString, options);
1061
+ return new SetLocalAttributesResponse().fromJsonString(jsonString, options);
774
1062
  }
775
1063
  static equals(a, b) {
776
- return proto3.util.equals(UpdateLocalMetadataCallback, a, b);
1064
+ return proto3.util.equals(SetLocalAttributesResponse, a, b);
777
1065
  }
778
1066
  }
779
- UpdateLocalMetadataCallback.runtime = proto3;
780
- UpdateLocalMetadataCallback.typeName = "livekit.proto.UpdateLocalMetadataCallback";
781
- UpdateLocalMetadataCallback.fields = proto3.util.newFieldList(() => [
1067
+ SetLocalAttributesResponse.runtime = proto3;
1068
+ SetLocalAttributesResponse.typeName = "livekit.proto.SetLocalAttributesResponse";
1069
+ SetLocalAttributesResponse.fields = proto3.util.newFieldList(() => [
782
1070
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
783
1071
  ]);
1072
+ /**
1073
+ * @generated from message livekit.proto.SetLocalAttributesCallback
1074
+ */
1075
+ export class SetLocalAttributesCallback extends Message {
1076
+ constructor(data) {
1077
+ super();
1078
+ /**
1079
+ * @generated from field: uint64 async_id = 1;
1080
+ */
1081
+ this.asyncId = protoInt64.zero;
1082
+ proto3.util.initPartial(data, this);
1083
+ }
1084
+ static fromBinary(bytes, options) {
1085
+ return new SetLocalAttributesCallback().fromBinary(bytes, options);
1086
+ }
1087
+ static fromJson(jsonValue, options) {
1088
+ return new SetLocalAttributesCallback().fromJson(jsonValue, options);
1089
+ }
1090
+ static fromJsonString(jsonString, options) {
1091
+ return new SetLocalAttributesCallback().fromJsonString(jsonString, options);
1092
+ }
1093
+ static equals(a, b) {
1094
+ return proto3.util.equals(SetLocalAttributesCallback, a, b);
1095
+ }
1096
+ }
1097
+ SetLocalAttributesCallback.runtime = proto3;
1098
+ SetLocalAttributesCallback.typeName = "livekit.proto.SetLocalAttributesCallback";
1099
+ SetLocalAttributesCallback.fields = proto3.util.newFieldList(() => [
1100
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1101
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1102
+ ]);
784
1103
  /**
785
1104
  * Change the local participant's name
786
1105
  *
787
- * @generated from message livekit.proto.UpdateLocalNameRequest
1106
+ * @generated from message livekit.proto.SetLocalNameRequest
788
1107
  */
789
- export class UpdateLocalNameRequest extends Message {
1108
+ export class SetLocalNameRequest extends Message {
790
1109
  constructor(data) {
791
1110
  super();
792
1111
  /**
@@ -800,28 +1119,28 @@ export class UpdateLocalNameRequest extends Message {
800
1119
  proto3.util.initPartial(data, this);
801
1120
  }
802
1121
  static fromBinary(bytes, options) {
803
- return new UpdateLocalNameRequest().fromBinary(bytes, options);
1122
+ return new SetLocalNameRequest().fromBinary(bytes, options);
804
1123
  }
805
1124
  static fromJson(jsonValue, options) {
806
- return new UpdateLocalNameRequest().fromJson(jsonValue, options);
1125
+ return new SetLocalNameRequest().fromJson(jsonValue, options);
807
1126
  }
808
1127
  static fromJsonString(jsonString, options) {
809
- return new UpdateLocalNameRequest().fromJsonString(jsonString, options);
1128
+ return new SetLocalNameRequest().fromJsonString(jsonString, options);
810
1129
  }
811
1130
  static equals(a, b) {
812
- return proto3.util.equals(UpdateLocalNameRequest, a, b);
1131
+ return proto3.util.equals(SetLocalNameRequest, a, b);
813
1132
  }
814
1133
  }
815
- UpdateLocalNameRequest.runtime = proto3;
816
- UpdateLocalNameRequest.typeName = "livekit.proto.UpdateLocalNameRequest";
817
- UpdateLocalNameRequest.fields = proto3.util.newFieldList(() => [
1134
+ SetLocalNameRequest.runtime = proto3;
1135
+ SetLocalNameRequest.typeName = "livekit.proto.SetLocalNameRequest";
1136
+ SetLocalNameRequest.fields = proto3.util.newFieldList(() => [
818
1137
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
819
1138
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
820
1139
  ]);
821
1140
  /**
822
- * @generated from message livekit.proto.UpdateLocalNameResponse
1141
+ * @generated from message livekit.proto.SetLocalNameResponse
823
1142
  */
824
- export class UpdateLocalNameResponse extends Message {
1143
+ export class SetLocalNameResponse extends Message {
825
1144
  constructor(data) {
826
1145
  super();
827
1146
  /**
@@ -831,27 +1150,27 @@ export class UpdateLocalNameResponse extends Message {
831
1150
  proto3.util.initPartial(data, this);
832
1151
  }
833
1152
  static fromBinary(bytes, options) {
834
- return new UpdateLocalNameResponse().fromBinary(bytes, options);
1153
+ return new SetLocalNameResponse().fromBinary(bytes, options);
835
1154
  }
836
1155
  static fromJson(jsonValue, options) {
837
- return new UpdateLocalNameResponse().fromJson(jsonValue, options);
1156
+ return new SetLocalNameResponse().fromJson(jsonValue, options);
838
1157
  }
839
1158
  static fromJsonString(jsonString, options) {
840
- return new UpdateLocalNameResponse().fromJsonString(jsonString, options);
1159
+ return new SetLocalNameResponse().fromJsonString(jsonString, options);
841
1160
  }
842
1161
  static equals(a, b) {
843
- return proto3.util.equals(UpdateLocalNameResponse, a, b);
1162
+ return proto3.util.equals(SetLocalNameResponse, a, b);
844
1163
  }
845
1164
  }
846
- UpdateLocalNameResponse.runtime = proto3;
847
- UpdateLocalNameResponse.typeName = "livekit.proto.UpdateLocalNameResponse";
848
- UpdateLocalNameResponse.fields = proto3.util.newFieldList(() => [
1165
+ SetLocalNameResponse.runtime = proto3;
1166
+ SetLocalNameResponse.typeName = "livekit.proto.SetLocalNameResponse";
1167
+ SetLocalNameResponse.fields = proto3.util.newFieldList(() => [
849
1168
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
850
1169
  ]);
851
1170
  /**
852
- * @generated from message livekit.proto.UpdateLocalNameCallback
1171
+ * @generated from message livekit.proto.SetLocalNameCallback
853
1172
  */
854
- export class UpdateLocalNameCallback extends Message {
1173
+ export class SetLocalNameCallback extends Message {
855
1174
  constructor(data) {
856
1175
  super();
857
1176
  /**
@@ -861,22 +1180,23 @@ export class UpdateLocalNameCallback extends Message {
861
1180
  proto3.util.initPartial(data, this);
862
1181
  }
863
1182
  static fromBinary(bytes, options) {
864
- return new UpdateLocalNameCallback().fromBinary(bytes, options);
1183
+ return new SetLocalNameCallback().fromBinary(bytes, options);
865
1184
  }
866
1185
  static fromJson(jsonValue, options) {
867
- return new UpdateLocalNameCallback().fromJson(jsonValue, options);
1186
+ return new SetLocalNameCallback().fromJson(jsonValue, options);
868
1187
  }
869
1188
  static fromJsonString(jsonString, options) {
870
- return new UpdateLocalNameCallback().fromJsonString(jsonString, options);
1189
+ return new SetLocalNameCallback().fromJsonString(jsonString, options);
871
1190
  }
872
1191
  static equals(a, b) {
873
- return proto3.util.equals(UpdateLocalNameCallback, a, b);
1192
+ return proto3.util.equals(SetLocalNameCallback, a, b);
874
1193
  }
875
1194
  }
876
- UpdateLocalNameCallback.runtime = proto3;
877
- UpdateLocalNameCallback.typeName = "livekit.proto.UpdateLocalNameCallback";
878
- UpdateLocalNameCallback.fields = proto3.util.newFieldList(() => [
1195
+ SetLocalNameCallback.runtime = proto3;
1196
+ SetLocalNameCallback.typeName = "livekit.proto.SetLocalNameCallback";
1197
+ SetLocalNameCallback.fields = proto3.util.newFieldList(() => [
879
1198
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1199
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
880
1200
  ]);
881
1201
  /**
882
1202
  * Change the "desire" to subs2ribe to a track
@@ -1278,6 +1598,61 @@ RoomOptions.fields = proto3.util.newFieldList(() => [
1278
1598
  { no: 5, name: "rtc_config", kind: "message", T: RtcConfig, opt: true },
1279
1599
  { no: 6, name: "join_retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1280
1600
  ]);
1601
+ /**
1602
+ * @generated from message livekit.proto.TranscriptionSegment
1603
+ */
1604
+ export class TranscriptionSegment extends Message {
1605
+ constructor(data) {
1606
+ super();
1607
+ /**
1608
+ * @generated from field: string id = 1;
1609
+ */
1610
+ this.id = "";
1611
+ /**
1612
+ * @generated from field: string text = 2;
1613
+ */
1614
+ this.text = "";
1615
+ /**
1616
+ * @generated from field: uint64 start_time = 3;
1617
+ */
1618
+ this.startTime = protoInt64.zero;
1619
+ /**
1620
+ * @generated from field: uint64 end_time = 4;
1621
+ */
1622
+ this.endTime = protoInt64.zero;
1623
+ /**
1624
+ * @generated from field: bool final = 5;
1625
+ */
1626
+ this.final = false;
1627
+ /**
1628
+ * @generated from field: string language = 6;
1629
+ */
1630
+ this.language = "";
1631
+ proto3.util.initPartial(data, this);
1632
+ }
1633
+ static fromBinary(bytes, options) {
1634
+ return new TranscriptionSegment().fromBinary(bytes, options);
1635
+ }
1636
+ static fromJson(jsonValue, options) {
1637
+ return new TranscriptionSegment().fromJson(jsonValue, options);
1638
+ }
1639
+ static fromJsonString(jsonString, options) {
1640
+ return new TranscriptionSegment().fromJsonString(jsonString, options);
1641
+ }
1642
+ static equals(a, b) {
1643
+ return proto3.util.equals(TranscriptionSegment, a, b);
1644
+ }
1645
+ }
1646
+ TranscriptionSegment.runtime = proto3;
1647
+ TranscriptionSegment.typeName = "livekit.proto.TranscriptionSegment";
1648
+ TranscriptionSegment.fields = proto3.util.newFieldList(() => [
1649
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1650
+ { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1651
+ { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1652
+ { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1653
+ { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1654
+ { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1655
+ ]);
1281
1656
  /**
1282
1657
  * @generated from message livekit.proto.BufferInfo
1283
1658
  */
@@ -1386,16 +1761,18 @@ RoomEvent.fields = proto3.util.newFieldList(() => [
1386
1761
  { no: 12, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
1387
1762
  { no: 13, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
1388
1763
  { no: 14, name: "room_metadata_changed", kind: "message", T: RoomMetadataChanged, oneof: "message" },
1389
- { no: 15, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1390
- { no: 16, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1391
- { no: 17, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1392
- { no: 18, name: "data_received", kind: "message", T: DataReceived, oneof: "message" },
1393
- { no: 19, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1394
- { no: 21, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
1395
- { no: 22, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
1396
- { no: 23, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
1397
- { no: 24, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
1398
- { no: 25, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
1764
+ { no: 15, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
1765
+ { no: 16, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1766
+ { no: 17, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1767
+ { no: 18, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
1768
+ { no: 19, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1769
+ { no: 20, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1770
+ { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
1771
+ { no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
1772
+ { no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
1773
+ { no: 25, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
1774
+ { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
1775
+ { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
1399
1776
  ]);
1400
1777
  /**
1401
1778
  * @generated from message livekit.proto.RoomInfo
@@ -1403,10 +1780,6 @@ RoomEvent.fields = proto3.util.newFieldList(() => [
1403
1780
  export class RoomInfo extends Message {
1404
1781
  constructor(data) {
1405
1782
  super();
1406
- /**
1407
- * @generated from field: string sid = 1;
1408
- */
1409
- this.sid = "";
1410
1783
  /**
1411
1784
  * @generated from field: string name = 2;
1412
1785
  */
@@ -1433,7 +1806,7 @@ export class RoomInfo extends Message {
1433
1806
  RoomInfo.runtime = proto3;
1434
1807
  RoomInfo.typeName = "livekit.proto.RoomInfo";
1435
1808
  RoomInfo.fields = proto3.util.newFieldList(() => [
1436
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1809
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1437
1810
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1438
1811
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1439
1812
  ]);
@@ -1497,9 +1870,9 @@ export class ParticipantDisconnected extends Message {
1497
1870
  constructor(data) {
1498
1871
  super();
1499
1872
  /**
1500
- * @generated from field: string participant_sid = 1;
1873
+ * @generated from field: string participant_identity = 1;
1501
1874
  */
1502
- this.participantSid = "";
1875
+ this.participantIdentity = "";
1503
1876
  proto3.util.initPartial(data, this);
1504
1877
  }
1505
1878
  static fromBinary(bytes, options) {
@@ -1518,7 +1891,7 @@ export class ParticipantDisconnected extends Message {
1518
1891
  ParticipantDisconnected.runtime = proto3;
1519
1892
  ParticipantDisconnected.typeName = "livekit.proto.ParticipantDisconnected";
1520
1893
  ParticipantDisconnected.fields = proto3.util.newFieldList(() => [
1521
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1894
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1522
1895
  ]);
1523
1896
  /**
1524
1897
  * @generated from message livekit.proto.LocalTrackPublished
@@ -1590,9 +1963,9 @@ export class TrackPublished extends Message {
1590
1963
  constructor(data) {
1591
1964
  super();
1592
1965
  /**
1593
- * @generated from field: string participant_sid = 1;
1966
+ * @generated from field: string participant_identity = 1;
1594
1967
  */
1595
- this.participantSid = "";
1968
+ this.participantIdentity = "";
1596
1969
  proto3.util.initPartial(data, this);
1597
1970
  }
1598
1971
  static fromBinary(bytes, options) {
@@ -1611,7 +1984,7 @@ export class TrackPublished extends Message {
1611
1984
  TrackPublished.runtime = proto3;
1612
1985
  TrackPublished.typeName = "livekit.proto.TrackPublished";
1613
1986
  TrackPublished.fields = proto3.util.newFieldList(() => [
1614
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1987
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1615
1988
  { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication },
1616
1989
  ]);
1617
1990
  /**
@@ -1621,9 +1994,9 @@ export class TrackUnpublished extends Message {
1621
1994
  constructor(data) {
1622
1995
  super();
1623
1996
  /**
1624
- * @generated from field: string participant_sid = 1;
1997
+ * @generated from field: string participant_identity = 1;
1625
1998
  */
1626
- this.participantSid = "";
1999
+ this.participantIdentity = "";
1627
2000
  /**
1628
2001
  * @generated from field: string publication_sid = 2;
1629
2002
  */
@@ -1646,7 +2019,7 @@ export class TrackUnpublished extends Message {
1646
2019
  TrackUnpublished.runtime = proto3;
1647
2020
  TrackUnpublished.typeName = "livekit.proto.TrackUnpublished";
1648
2021
  TrackUnpublished.fields = proto3.util.newFieldList(() => [
1649
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2022
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1650
2023
  { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1651
2024
  ]);
1652
2025
  /**
@@ -1659,9 +2032,9 @@ export class TrackSubscribed extends Message {
1659
2032
  constructor(data) {
1660
2033
  super();
1661
2034
  /**
1662
- * @generated from field: string participant_sid = 1;
2035
+ * @generated from field: string participant_identity = 1;
1663
2036
  */
1664
- this.participantSid = "";
2037
+ this.participantIdentity = "";
1665
2038
  proto3.util.initPartial(data, this);
1666
2039
  }
1667
2040
  static fromBinary(bytes, options) {
@@ -1680,7 +2053,7 @@ export class TrackSubscribed extends Message {
1680
2053
  TrackSubscribed.runtime = proto3;
1681
2054
  TrackSubscribed.typeName = "livekit.proto.TrackSubscribed";
1682
2055
  TrackSubscribed.fields = proto3.util.newFieldList(() => [
1683
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2056
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1684
2057
  { no: 2, name: "track", kind: "message", T: OwnedTrack },
1685
2058
  ]);
1686
2059
  /**
@@ -1692,9 +2065,9 @@ export class TrackUnsubscribed extends Message {
1692
2065
  /**
1693
2066
  * The FFI language can dispose/remove the VideoSink here
1694
2067
  *
1695
- * @generated from field: string participant_sid = 1;
2068
+ * @generated from field: string participant_identity = 1;
1696
2069
  */
1697
- this.participantSid = "";
2070
+ this.participantIdentity = "";
1698
2071
  /**
1699
2072
  * @generated from field: string track_sid = 2;
1700
2073
  */
@@ -1717,7 +2090,7 @@ export class TrackUnsubscribed extends Message {
1717
2090
  TrackUnsubscribed.runtime = proto3;
1718
2091
  TrackUnsubscribed.typeName = "livekit.proto.TrackUnsubscribed";
1719
2092
  TrackUnsubscribed.fields = proto3.util.newFieldList(() => [
1720
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2093
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1721
2094
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1722
2095
  ]);
1723
2096
  /**
@@ -1727,9 +2100,9 @@ export class TrackSubscriptionFailed extends Message {
1727
2100
  constructor(data) {
1728
2101
  super();
1729
2102
  /**
1730
- * @generated from field: string participant_sid = 1;
2103
+ * @generated from field: string participant_identity = 1;
1731
2104
  */
1732
- this.participantSid = "";
2105
+ this.participantIdentity = "";
1733
2106
  /**
1734
2107
  * @generated from field: string track_sid = 2;
1735
2108
  */
@@ -1756,7 +2129,7 @@ export class TrackSubscriptionFailed extends Message {
1756
2129
  TrackSubscriptionFailed.runtime = proto3;
1757
2130
  TrackSubscriptionFailed.typeName = "livekit.proto.TrackSubscriptionFailed";
1758
2131
  TrackSubscriptionFailed.fields = proto3.util.newFieldList(() => [
1759
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2132
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1760
2133
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1761
2134
  { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1762
2135
  ]);
@@ -1767,9 +2140,9 @@ export class TrackMuted extends Message {
1767
2140
  constructor(data) {
1768
2141
  super();
1769
2142
  /**
1770
- * @generated from field: string participant_sid = 1;
2143
+ * @generated from field: string participant_identity = 1;
1771
2144
  */
1772
- this.participantSid = "";
2145
+ this.participantIdentity = "";
1773
2146
  /**
1774
2147
  * @generated from field: string track_sid = 2;
1775
2148
  */
@@ -1792,7 +2165,7 @@ export class TrackMuted extends Message {
1792
2165
  TrackMuted.runtime = proto3;
1793
2166
  TrackMuted.typeName = "livekit.proto.TrackMuted";
1794
2167
  TrackMuted.fields = proto3.util.newFieldList(() => [
1795
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2168
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1796
2169
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1797
2170
  ]);
1798
2171
  /**
@@ -1802,9 +2175,9 @@ export class TrackUnmuted extends Message {
1802
2175
  constructor(data) {
1803
2176
  super();
1804
2177
  /**
1805
- * @generated from field: string participant_sid = 1;
2178
+ * @generated from field: string participant_identity = 1;
1806
2179
  */
1807
- this.participantSid = "";
2180
+ this.participantIdentity = "";
1808
2181
  /**
1809
2182
  * @generated from field: string track_sid = 2;
1810
2183
  */
@@ -1827,7 +2200,7 @@ export class TrackUnmuted extends Message {
1827
2200
  TrackUnmuted.runtime = proto3;
1828
2201
  TrackUnmuted.typeName = "livekit.proto.TrackUnmuted";
1829
2202
  TrackUnmuted.fields = proto3.util.newFieldList(() => [
1830
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2203
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1831
2204
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1832
2205
  ]);
1833
2206
  /**
@@ -1839,9 +2212,9 @@ export class E2eeStateChanged extends Message {
1839
2212
  /**
1840
2213
  * Using sid instead of identity for ffi communication
1841
2214
  *
1842
- * @generated from field: string participant_sid = 1;
2215
+ * @generated from field: string participant_identity = 1;
1843
2216
  */
1844
- this.participantSid = "";
2217
+ this.participantIdentity = "";
1845
2218
  /**
1846
2219
  * @generated from field: livekit.proto.EncryptionState state = 2;
1847
2220
  */
@@ -1864,7 +2237,7 @@ export class E2eeStateChanged extends Message {
1864
2237
  E2eeStateChanged.runtime = proto3;
1865
2238
  E2eeStateChanged.typeName = "livekit.proto.E2eeStateChanged";
1866
2239
  E2eeStateChanged.fields = proto3.util.newFieldList(() => [
1867
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2240
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1868
2241
  { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(EncryptionState) },
1869
2242
  ]);
1870
2243
  /**
@@ -1874,9 +2247,9 @@ export class ActiveSpeakersChanged extends Message {
1874
2247
  constructor(data) {
1875
2248
  super();
1876
2249
  /**
1877
- * @generated from field: repeated string participant_sids = 1;
2250
+ * @generated from field: repeated string participant_identities = 1;
1878
2251
  */
1879
- this.participantSids = [];
2252
+ this.participantIdentities = [];
1880
2253
  proto3.util.initPartial(data, this);
1881
2254
  }
1882
2255
  static fromBinary(bytes, options) {
@@ -1895,7 +2268,7 @@ export class ActiveSpeakersChanged extends Message {
1895
2268
  ActiveSpeakersChanged.runtime = proto3;
1896
2269
  ActiveSpeakersChanged.typeName = "livekit.proto.ActiveSpeakersChanged";
1897
2270
  ActiveSpeakersChanged.fields = proto3.util.newFieldList(() => [
1898
- { no: 1, name: "participant_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2271
+ { no: 1, name: "participant_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1899
2272
  ]);
1900
2273
  /**
1901
2274
  * @generated from message livekit.proto.RoomMetadataChanged
@@ -1927,6 +2300,36 @@ RoomMetadataChanged.typeName = "livekit.proto.RoomMetadataChanged";
1927
2300
  RoomMetadataChanged.fields = proto3.util.newFieldList(() => [
1928
2301
  { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1929
2302
  ]);
2303
+ /**
2304
+ * @generated from message livekit.proto.RoomSidChanged
2305
+ */
2306
+ export class RoomSidChanged extends Message {
2307
+ constructor(data) {
2308
+ super();
2309
+ /**
2310
+ * @generated from field: string sid = 1;
2311
+ */
2312
+ this.sid = "";
2313
+ proto3.util.initPartial(data, this);
2314
+ }
2315
+ static fromBinary(bytes, options) {
2316
+ return new RoomSidChanged().fromBinary(bytes, options);
2317
+ }
2318
+ static fromJson(jsonValue, options) {
2319
+ return new RoomSidChanged().fromJson(jsonValue, options);
2320
+ }
2321
+ static fromJsonString(jsonString, options) {
2322
+ return new RoomSidChanged().fromJsonString(jsonString, options);
2323
+ }
2324
+ static equals(a, b) {
2325
+ return proto3.util.equals(RoomSidChanged, a, b);
2326
+ }
2327
+ }
2328
+ RoomSidChanged.runtime = proto3;
2329
+ RoomSidChanged.typeName = "livekit.proto.RoomSidChanged";
2330
+ RoomSidChanged.fields = proto3.util.newFieldList(() => [
2331
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2332
+ ]);
1930
2333
  /**
1931
2334
  * @generated from message livekit.proto.ParticipantMetadataChanged
1932
2335
  */
@@ -1934,9 +2337,9 @@ export class ParticipantMetadataChanged extends Message {
1934
2337
  constructor(data) {
1935
2338
  super();
1936
2339
  /**
1937
- * @generated from field: string participant_sid = 1;
2340
+ * @generated from field: string participant_identity = 1;
1938
2341
  */
1939
- this.participantSid = "";
2342
+ this.participantIdentity = "";
1940
2343
  /**
1941
2344
  * @generated from field: string metadata = 2;
1942
2345
  */
@@ -1959,9 +2362,49 @@ export class ParticipantMetadataChanged extends Message {
1959
2362
  ParticipantMetadataChanged.runtime = proto3;
1960
2363
  ParticipantMetadataChanged.typeName = "livekit.proto.ParticipantMetadataChanged";
1961
2364
  ParticipantMetadataChanged.fields = proto3.util.newFieldList(() => [
1962
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2365
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1963
2366
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1964
2367
  ]);
2368
+ /**
2369
+ * @generated from message livekit.proto.ParticipantAttributesChanged
2370
+ */
2371
+ export class ParticipantAttributesChanged extends Message {
2372
+ constructor(data) {
2373
+ super();
2374
+ /**
2375
+ * @generated from field: string participant_identity = 1;
2376
+ */
2377
+ this.participantIdentity = "";
2378
+ /**
2379
+ * @generated from field: map<string, string> old_attributes = 2;
2380
+ */
2381
+ this.oldAttributes = {};
2382
+ /**
2383
+ * @generated from field: map<string, string> attributes = 3;
2384
+ */
2385
+ this.attributes = {};
2386
+ proto3.util.initPartial(data, this);
2387
+ }
2388
+ static fromBinary(bytes, options) {
2389
+ return new ParticipantAttributesChanged().fromBinary(bytes, options);
2390
+ }
2391
+ static fromJson(jsonValue, options) {
2392
+ return new ParticipantAttributesChanged().fromJson(jsonValue, options);
2393
+ }
2394
+ static fromJsonString(jsonString, options) {
2395
+ return new ParticipantAttributesChanged().fromJsonString(jsonString, options);
2396
+ }
2397
+ static equals(a, b) {
2398
+ return proto3.util.equals(ParticipantAttributesChanged, a, b);
2399
+ }
2400
+ }
2401
+ ParticipantAttributesChanged.runtime = proto3;
2402
+ ParticipantAttributesChanged.typeName = "livekit.proto.ParticipantAttributesChanged";
2403
+ ParticipantAttributesChanged.fields = proto3.util.newFieldList(() => [
2404
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2405
+ { no: 2, name: "old_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
2406
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
2407
+ ]);
1965
2408
  /**
1966
2409
  * @generated from message livekit.proto.ParticipantNameChanged
1967
2410
  */
@@ -1969,9 +2412,9 @@ export class ParticipantNameChanged extends Message {
1969
2412
  constructor(data) {
1970
2413
  super();
1971
2414
  /**
1972
- * @generated from field: string participant_sid = 1;
2415
+ * @generated from field: string participant_identity = 1;
1973
2416
  */
1974
- this.participantSid = "";
2417
+ this.participantIdentity = "";
1975
2418
  /**
1976
2419
  * @generated from field: string name = 2;
1977
2420
  */
@@ -1994,7 +2437,7 @@ export class ParticipantNameChanged extends Message {
1994
2437
  ParticipantNameChanged.runtime = proto3;
1995
2438
  ParticipantNameChanged.typeName = "livekit.proto.ParticipantNameChanged";
1996
2439
  ParticipantNameChanged.fields = proto3.util.newFieldList(() => [
1997
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2440
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1998
2441
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1999
2442
  ]);
2000
2443
  /**
@@ -2004,9 +2447,9 @@ export class ConnectionQualityChanged extends Message {
2004
2447
  constructor(data) {
2005
2448
  super();
2006
2449
  /**
2007
- * @generated from field: string participant_sid = 1;
2450
+ * @generated from field: string participant_identity = 1;
2008
2451
  */
2009
- this.participantSid = "";
2452
+ this.participantIdentity = "";
2010
2453
  /**
2011
2454
  * @generated from field: livekit.proto.ConnectionQuality quality = 2;
2012
2455
  */
@@ -2029,41 +2472,109 @@ export class ConnectionQualityChanged extends Message {
2029
2472
  ConnectionQualityChanged.runtime = proto3;
2030
2473
  ConnectionQualityChanged.typeName = "livekit.proto.ConnectionQualityChanged";
2031
2474
  ConnectionQualityChanged.fields = proto3.util.newFieldList(() => [
2032
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2475
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2033
2476
  { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) },
2034
2477
  ]);
2035
2478
  /**
2036
- * @generated from message livekit.proto.DataReceived
2479
+ * @generated from message livekit.proto.UserPacket
2037
2480
  */
2038
- export class DataReceived extends Message {
2481
+ export class UserPacket extends Message {
2482
+ constructor(data) {
2483
+ super();
2484
+ proto3.util.initPartial(data, this);
2485
+ }
2486
+ static fromBinary(bytes, options) {
2487
+ return new UserPacket().fromBinary(bytes, options);
2488
+ }
2489
+ static fromJson(jsonValue, options) {
2490
+ return new UserPacket().fromJson(jsonValue, options);
2491
+ }
2492
+ static fromJsonString(jsonString, options) {
2493
+ return new UserPacket().fromJsonString(jsonString, options);
2494
+ }
2495
+ static equals(a, b) {
2496
+ return proto3.util.equals(UserPacket, a, b);
2497
+ }
2498
+ }
2499
+ UserPacket.runtime = proto3;
2500
+ UserPacket.typeName = "livekit.proto.UserPacket";
2501
+ UserPacket.fields = proto3.util.newFieldList(() => [
2502
+ { no: 1, name: "data", kind: "message", T: OwnedBuffer },
2503
+ { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2504
+ ]);
2505
+ /**
2506
+ * @generated from message livekit.proto.SipDTMF
2507
+ */
2508
+ export class SipDTMF extends Message {
2039
2509
  constructor(data) {
2040
2510
  super();
2041
2511
  /**
2042
- * @generated from field: livekit.proto.DataPacketKind kind = 3;
2512
+ * @generated from field: uint32 code = 1;
2513
+ */
2514
+ this.code = 0;
2515
+ proto3.util.initPartial(data, this);
2516
+ }
2517
+ static fromBinary(bytes, options) {
2518
+ return new SipDTMF().fromBinary(bytes, options);
2519
+ }
2520
+ static fromJson(jsonValue, options) {
2521
+ return new SipDTMF().fromJson(jsonValue, options);
2522
+ }
2523
+ static fromJsonString(jsonString, options) {
2524
+ return new SipDTMF().fromJsonString(jsonString, options);
2525
+ }
2526
+ static equals(a, b) {
2527
+ return proto3.util.equals(SipDTMF, a, b);
2528
+ }
2529
+ }
2530
+ SipDTMF.runtime = proto3;
2531
+ SipDTMF.typeName = "livekit.proto.SipDTMF";
2532
+ SipDTMF.fields = proto3.util.newFieldList(() => [
2533
+ { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2534
+ { no: 2, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2535
+ ]);
2536
+ /**
2537
+ * @generated from message livekit.proto.DataPacketReceived
2538
+ */
2539
+ export class DataPacketReceived extends Message {
2540
+ constructor(data) {
2541
+ super();
2542
+ /**
2543
+ * @generated from field: livekit.proto.DataPacketKind kind = 1;
2043
2544
  */
2044
2545
  this.kind = DataPacketKind.KIND_LOSSY;
2546
+ /**
2547
+ * Can be empty if the data is sent a server SDK
2548
+ *
2549
+ * @generated from field: string participant_identity = 2;
2550
+ */
2551
+ this.participantIdentity = "";
2552
+ /**
2553
+ * @generated from oneof livekit.proto.DataPacketReceived.value
2554
+ */
2555
+ this.value = { case: undefined };
2045
2556
  proto3.util.initPartial(data, this);
2046
2557
  }
2047
2558
  static fromBinary(bytes, options) {
2048
- return new DataReceived().fromBinary(bytes, options);
2559
+ return new DataPacketReceived().fromBinary(bytes, options);
2049
2560
  }
2050
2561
  static fromJson(jsonValue, options) {
2051
- return new DataReceived().fromJson(jsonValue, options);
2562
+ return new DataPacketReceived().fromJson(jsonValue, options);
2052
2563
  }
2053
2564
  static fromJsonString(jsonString, options) {
2054
- return new DataReceived().fromJsonString(jsonString, options);
2565
+ return new DataPacketReceived().fromJsonString(jsonString, options);
2055
2566
  }
2056
2567
  static equals(a, b) {
2057
- return proto3.util.equals(DataReceived, a, b);
2568
+ return proto3.util.equals(DataPacketReceived, a, b);
2058
2569
  }
2059
2570
  }
2060
- DataReceived.runtime = proto3;
2061
- DataReceived.typeName = "livekit.proto.DataReceived";
2062
- DataReceived.fields = proto3.util.newFieldList(() => [
2063
- { no: 1, name: "data", kind: "message", T: OwnedBuffer },
2064
- { no: 2, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2065
- { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
2066
- { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2571
+ DataPacketReceived.runtime = proto3;
2572
+ DataPacketReceived.typeName = "livekit.proto.DataPacketReceived";
2573
+ DataPacketReceived.fields = proto3.util.newFieldList(() => [
2574
+ { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
2575
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2576
+ { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" },
2577
+ { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
2067
2578
  ]);
2068
2579
  /**
2069
2580
  * @generated from message livekit.proto.ConnectionStateChanged