@livekit/rtc-node 0.5.0 → 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 (57) 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/ffi_client.js +1 -0
  12. package/dist/ffi_client.js.map +1 -1
  13. package/dist/participant.d.ts +5 -2
  14. package/dist/participant.d.ts.map +1 -1
  15. package/dist/participant.js +46 -17
  16. package/dist/participant.js.map +1 -1
  17. package/dist/proto/audio_frame_pb.d.ts +4 -0
  18. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  19. package/dist/proto/audio_frame_pb.js +1 -0
  20. package/dist/proto/audio_frame_pb.js.map +1 -1
  21. package/dist/proto/ffi_pb.d.ts +105 -51
  22. package/dist/proto/ffi_pb.d.ts.map +1 -1
  23. package/dist/proto/ffi_pb.js +48 -39
  24. package/dist/proto/ffi_pb.js.map +1 -1
  25. package/dist/proto/participant_pb.d.ts +6 -0
  26. package/dist/proto/participant_pb.d.ts.map +1 -1
  27. package/dist/proto/participant_pb.js +5 -0
  28. package/dist/proto/participant_pb.js.map +1 -1
  29. package/dist/proto/room_pb.d.ts +471 -111
  30. package/dist/proto/room_pb.d.ts.map +1 -1
  31. package/dist/proto/room_pb.js +639 -128
  32. package/dist/proto/room_pb.js.map +1 -1
  33. package/dist/room.d.ts +5 -2
  34. package/dist/room.d.ts.map +1 -1
  35. package/dist/room.js +41 -25
  36. package/dist/room.js.map +1 -1
  37. package/dist/utils.d.ts +2 -0
  38. package/dist/utils.d.ts.map +1 -0
  39. package/dist/utils.js +20 -0
  40. package/dist/utils.js.map +1 -0
  41. package/dist/video_stream.d.ts.map +1 -1
  42. package/package.json +6 -6
  43. package/src/audio_frame.ts +5 -0
  44. package/src/audio_source.ts +2 -1
  45. package/src/ffi_client.ts +1 -0
  46. package/src/participant.ts +73 -29
  47. package/src/proto/audio_frame_pb.ts +7 -1
  48. package/src/proto/e2ee_pb.ts +1 -1
  49. package/src/proto/ffi_pb.ts +153 -90
  50. package/src/proto/handle_pb.ts +1 -1
  51. package/src/proto/participant_pb.ts +7 -1
  52. package/src/proto/room_pb.ts +845 -169
  53. package/src/proto/stats_pb.ts +1 -1
  54. package/src/proto/track_pb.ts +1 -1
  55. package/src/proto/video_frame_pb.ts +1 -1
  56. package/src/room.ts +56 -27
  57. package/src/utils.ts +25 -0
@@ -12,7 +12,7 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
- // @generated by protoc-gen-es v1.7.2 with parameter "target=ts"
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
16
16
  // @generated from file room.proto (package livekit.proto, syntax proto3)
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
@@ -748,14 +748,13 @@ export class PublishDataRequest extends Message<PublishDataRequest> {
748
748
  dataLen = protoInt64.zero;
749
749
 
750
750
  /**
751
- * @generated from field: livekit.proto.DataPacketKind kind = 4;
751
+ * @generated from field: bool reliable = 4;
752
752
  */
753
- kind = DataPacketKind.KIND_LOSSY;
753
+ reliable = false;
754
754
 
755
755
  /**
756
- * destination
757
- *
758
- * @generated from field: repeated string destination_sids = 5;
756
+ * @generated from field: repeated string destination_sids = 5 [deprecated = true];
757
+ * @deprecated
759
758
  */
760
759
  destinationSids: string[] = [];
761
760
 
@@ -764,6 +763,11 @@ export class PublishDataRequest extends Message<PublishDataRequest> {
764
763
  */
765
764
  topic?: string;
766
765
 
766
+ /**
767
+ * @generated from field: repeated string destination_identities = 7;
768
+ */
769
+ destinationIdentities: string[] = [];
770
+
767
771
  constructor(data?: PartialMessage<PublishDataRequest>) {
768
772
  super();
769
773
  proto3.util.initPartial(data, this);
@@ -775,9 +779,10 @@ export class PublishDataRequest extends Message<PublishDataRequest> {
775
779
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
776
780
  { no: 2, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
777
781
  { no: 3, name: "data_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
778
- { no: 4, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
782
+ { no: 4, name: "reliable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
779
783
  { no: 5, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
780
784
  { no: 6, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
785
+ { no: 7, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
781
786
  ]);
782
787
 
783
788
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataRequest {
@@ -877,12 +882,286 @@ export class PublishDataCallback extends Message<PublishDataCallback> {
877
882
  }
878
883
  }
879
884
 
885
+ /**
886
+ * Publish transcription messages to room
887
+ *
888
+ * @generated from message livekit.proto.PublishTranscriptionRequest
889
+ */
890
+ export class PublishTranscriptionRequest extends Message<PublishTranscriptionRequest> {
891
+ /**
892
+ * @generated from field: uint64 local_participant_handle = 1;
893
+ */
894
+ localParticipantHandle = protoInt64.zero;
895
+
896
+ /**
897
+ * @generated from field: string participant_identity = 2;
898
+ */
899
+ participantIdentity = "";
900
+
901
+ /**
902
+ * @generated from field: string track_id = 3;
903
+ */
904
+ trackId = "";
905
+
906
+ /**
907
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
908
+ */
909
+ segments: TranscriptionSegment[] = [];
910
+
911
+ constructor(data?: PartialMessage<PublishTranscriptionRequest>) {
912
+ super();
913
+ proto3.util.initPartial(data, this);
914
+ }
915
+
916
+ static readonly runtime: typeof proto3 = proto3;
917
+ static readonly typeName = "livekit.proto.PublishTranscriptionRequest";
918
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
919
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
920
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
921
+ { no: 3, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
922
+ { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true },
923
+ ]);
924
+
925
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionRequest {
926
+ return new PublishTranscriptionRequest().fromBinary(bytes, options);
927
+ }
928
+
929
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest {
930
+ return new PublishTranscriptionRequest().fromJson(jsonValue, options);
931
+ }
932
+
933
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest {
934
+ return new PublishTranscriptionRequest().fromJsonString(jsonString, options);
935
+ }
936
+
937
+ static equals(a: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined, b: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined): boolean {
938
+ return proto3.util.equals(PublishTranscriptionRequest, a, b);
939
+ }
940
+ }
941
+
942
+ /**
943
+ * @generated from message livekit.proto.PublishTranscriptionResponse
944
+ */
945
+ export class PublishTranscriptionResponse extends Message<PublishTranscriptionResponse> {
946
+ /**
947
+ * @generated from field: uint64 async_id = 1;
948
+ */
949
+ asyncId = protoInt64.zero;
950
+
951
+ constructor(data?: PartialMessage<PublishTranscriptionResponse>) {
952
+ super();
953
+ proto3.util.initPartial(data, this);
954
+ }
955
+
956
+ static readonly runtime: typeof proto3 = proto3;
957
+ static readonly typeName = "livekit.proto.PublishTranscriptionResponse";
958
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
959
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
960
+ ]);
961
+
962
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionResponse {
963
+ return new PublishTranscriptionResponse().fromBinary(bytes, options);
964
+ }
965
+
966
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse {
967
+ return new PublishTranscriptionResponse().fromJson(jsonValue, options);
968
+ }
969
+
970
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse {
971
+ return new PublishTranscriptionResponse().fromJsonString(jsonString, options);
972
+ }
973
+
974
+ static equals(a: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined, b: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined): boolean {
975
+ return proto3.util.equals(PublishTranscriptionResponse, a, b);
976
+ }
977
+ }
978
+
979
+ /**
980
+ * @generated from message livekit.proto.PublishTranscriptionCallback
981
+ */
982
+ export class PublishTranscriptionCallback extends Message<PublishTranscriptionCallback> {
983
+ /**
984
+ * @generated from field: uint64 async_id = 1;
985
+ */
986
+ asyncId = protoInt64.zero;
987
+
988
+ /**
989
+ * @generated from field: optional string error = 2;
990
+ */
991
+ error?: string;
992
+
993
+ constructor(data?: PartialMessage<PublishTranscriptionCallback>) {
994
+ super();
995
+ proto3.util.initPartial(data, this);
996
+ }
997
+
998
+ static readonly runtime: typeof proto3 = proto3;
999
+ static readonly typeName = "livekit.proto.PublishTranscriptionCallback";
1000
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1001
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1002
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1003
+ ]);
1004
+
1005
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionCallback {
1006
+ return new PublishTranscriptionCallback().fromBinary(bytes, options);
1007
+ }
1008
+
1009
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback {
1010
+ return new PublishTranscriptionCallback().fromJson(jsonValue, options);
1011
+ }
1012
+
1013
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback {
1014
+ return new PublishTranscriptionCallback().fromJsonString(jsonString, options);
1015
+ }
1016
+
1017
+ static equals(a: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined, b: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined): boolean {
1018
+ return proto3.util.equals(PublishTranscriptionCallback, a, b);
1019
+ }
1020
+ }
1021
+
1022
+ /**
1023
+ * Publish Sip DTMF messages to other participants
1024
+ *
1025
+ * @generated from message livekit.proto.PublishSipDtmfRequest
1026
+ */
1027
+ export class PublishSipDtmfRequest extends Message<PublishSipDtmfRequest> {
1028
+ /**
1029
+ * @generated from field: uint64 local_participant_handle = 1;
1030
+ */
1031
+ localParticipantHandle = protoInt64.zero;
1032
+
1033
+ /**
1034
+ * @generated from field: uint32 code = 2;
1035
+ */
1036
+ code = 0;
1037
+
1038
+ /**
1039
+ * @generated from field: string digit = 3;
1040
+ */
1041
+ digit = "";
1042
+
1043
+ /**
1044
+ * @generated from field: repeated string destination_identities = 4;
1045
+ */
1046
+ destinationIdentities: string[] = [];
1047
+
1048
+ constructor(data?: PartialMessage<PublishSipDtmfRequest>) {
1049
+ super();
1050
+ proto3.util.initPartial(data, this);
1051
+ }
1052
+
1053
+ static readonly runtime: typeof proto3 = proto3;
1054
+ static readonly typeName = "livekit.proto.PublishSipDtmfRequest";
1055
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1056
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1057
+ { no: 2, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1058
+ { no: 3, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1059
+ { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1060
+ ]);
1061
+
1062
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfRequest {
1063
+ return new PublishSipDtmfRequest().fromBinary(bytes, options);
1064
+ }
1065
+
1066
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest {
1067
+ return new PublishSipDtmfRequest().fromJson(jsonValue, options);
1068
+ }
1069
+
1070
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest {
1071
+ return new PublishSipDtmfRequest().fromJsonString(jsonString, options);
1072
+ }
1073
+
1074
+ static equals(a: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined, b: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined): boolean {
1075
+ return proto3.util.equals(PublishSipDtmfRequest, a, b);
1076
+ }
1077
+ }
1078
+
1079
+ /**
1080
+ * @generated from message livekit.proto.PublishSipDtmfResponse
1081
+ */
1082
+ export class PublishSipDtmfResponse extends Message<PublishSipDtmfResponse> {
1083
+ /**
1084
+ * @generated from field: uint64 async_id = 1;
1085
+ */
1086
+ asyncId = protoInt64.zero;
1087
+
1088
+ constructor(data?: PartialMessage<PublishSipDtmfResponse>) {
1089
+ super();
1090
+ proto3.util.initPartial(data, this);
1091
+ }
1092
+
1093
+ static readonly runtime: typeof proto3 = proto3;
1094
+ static readonly typeName = "livekit.proto.PublishSipDtmfResponse";
1095
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1096
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1097
+ ]);
1098
+
1099
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfResponse {
1100
+ return new PublishSipDtmfResponse().fromBinary(bytes, options);
1101
+ }
1102
+
1103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse {
1104
+ return new PublishSipDtmfResponse().fromJson(jsonValue, options);
1105
+ }
1106
+
1107
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse {
1108
+ return new PublishSipDtmfResponse().fromJsonString(jsonString, options);
1109
+ }
1110
+
1111
+ static equals(a: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined, b: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined): boolean {
1112
+ return proto3.util.equals(PublishSipDtmfResponse, a, b);
1113
+ }
1114
+ }
1115
+
1116
+ /**
1117
+ * @generated from message livekit.proto.PublishSipDtmfCallback
1118
+ */
1119
+ export class PublishSipDtmfCallback extends Message<PublishSipDtmfCallback> {
1120
+ /**
1121
+ * @generated from field: uint64 async_id = 1;
1122
+ */
1123
+ asyncId = protoInt64.zero;
1124
+
1125
+ /**
1126
+ * @generated from field: optional string error = 2;
1127
+ */
1128
+ error?: string;
1129
+
1130
+ constructor(data?: PartialMessage<PublishSipDtmfCallback>) {
1131
+ super();
1132
+ proto3.util.initPartial(data, this);
1133
+ }
1134
+
1135
+ static readonly runtime: typeof proto3 = proto3;
1136
+ static readonly typeName = "livekit.proto.PublishSipDtmfCallback";
1137
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1138
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1139
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1140
+ ]);
1141
+
1142
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfCallback {
1143
+ return new PublishSipDtmfCallback().fromBinary(bytes, options);
1144
+ }
1145
+
1146
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback {
1147
+ return new PublishSipDtmfCallback().fromJson(jsonValue, options);
1148
+ }
1149
+
1150
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback {
1151
+ return new PublishSipDtmfCallback().fromJsonString(jsonString, options);
1152
+ }
1153
+
1154
+ static equals(a: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined, b: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined): boolean {
1155
+ return proto3.util.equals(PublishSipDtmfCallback, a, b);
1156
+ }
1157
+ }
1158
+
880
1159
  /**
881
1160
  * Change the local participant's metadata
882
1161
  *
883
- * @generated from message livekit.proto.UpdateLocalMetadataRequest
1162
+ * @generated from message livekit.proto.SetLocalMetadataRequest
884
1163
  */
885
- export class UpdateLocalMetadataRequest extends Message<UpdateLocalMetadataRequest> {
1164
+ export class SetLocalMetadataRequest extends Message<SetLocalMetadataRequest> {
886
1165
  /**
887
1166
  * @generated from field: uint64 local_participant_handle = 1;
888
1167
  */
@@ -893,115 +1172,246 @@ export class UpdateLocalMetadataRequest extends Message<UpdateLocalMetadataReque
893
1172
  */
894
1173
  metadata = "";
895
1174
 
896
- constructor(data?: PartialMessage<UpdateLocalMetadataRequest>) {
1175
+ constructor(data?: PartialMessage<SetLocalMetadataRequest>) {
897
1176
  super();
898
1177
  proto3.util.initPartial(data, this);
899
1178
  }
900
1179
 
901
1180
  static readonly runtime: typeof proto3 = proto3;
902
- static readonly typeName = "livekit.proto.UpdateLocalMetadataRequest";
1181
+ static readonly typeName = "livekit.proto.SetLocalMetadataRequest";
903
1182
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
904
1183
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
905
1184
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
906
1185
  ]);
907
1186
 
908
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataRequest {
909
- return new UpdateLocalMetadataRequest().fromBinary(bytes, options);
1187
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataRequest {
1188
+ return new SetLocalMetadataRequest().fromBinary(bytes, options);
1189
+ }
1190
+
1191
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest {
1192
+ return new SetLocalMetadataRequest().fromJson(jsonValue, options);
1193
+ }
1194
+
1195
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest {
1196
+ return new SetLocalMetadataRequest().fromJsonString(jsonString, options);
1197
+ }
1198
+
1199
+ static equals(a: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined, b: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined): boolean {
1200
+ return proto3.util.equals(SetLocalMetadataRequest, a, b);
1201
+ }
1202
+ }
1203
+
1204
+ /**
1205
+ * @generated from message livekit.proto.SetLocalMetadataResponse
1206
+ */
1207
+ export class SetLocalMetadataResponse extends Message<SetLocalMetadataResponse> {
1208
+ /**
1209
+ * @generated from field: uint64 async_id = 1;
1210
+ */
1211
+ asyncId = protoInt64.zero;
1212
+
1213
+ constructor(data?: PartialMessage<SetLocalMetadataResponse>) {
1214
+ super();
1215
+ proto3.util.initPartial(data, this);
1216
+ }
1217
+
1218
+ static readonly runtime: typeof proto3 = proto3;
1219
+ static readonly typeName = "livekit.proto.SetLocalMetadataResponse";
1220
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1221
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1222
+ ]);
1223
+
1224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataResponse {
1225
+ return new SetLocalMetadataResponse().fromBinary(bytes, options);
1226
+ }
1227
+
1228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse {
1229
+ return new SetLocalMetadataResponse().fromJson(jsonValue, options);
1230
+ }
1231
+
1232
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse {
1233
+ return new SetLocalMetadataResponse().fromJsonString(jsonString, options);
1234
+ }
1235
+
1236
+ static equals(a: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined, b: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined): boolean {
1237
+ return proto3.util.equals(SetLocalMetadataResponse, a, b);
1238
+ }
1239
+ }
1240
+
1241
+ /**
1242
+ * @generated from message livekit.proto.SetLocalMetadataCallback
1243
+ */
1244
+ export class SetLocalMetadataCallback extends Message<SetLocalMetadataCallback> {
1245
+ /**
1246
+ * @generated from field: uint64 async_id = 1;
1247
+ */
1248
+ asyncId = protoInt64.zero;
1249
+
1250
+ /**
1251
+ * @generated from field: optional string error = 2;
1252
+ */
1253
+ error?: string;
1254
+
1255
+ constructor(data?: PartialMessage<SetLocalMetadataCallback>) {
1256
+ super();
1257
+ proto3.util.initPartial(data, this);
1258
+ }
1259
+
1260
+ static readonly runtime: typeof proto3 = proto3;
1261
+ static readonly typeName = "livekit.proto.SetLocalMetadataCallback";
1262
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1263
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1264
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1265
+ ]);
1266
+
1267
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataCallback {
1268
+ return new SetLocalMetadataCallback().fromBinary(bytes, options);
1269
+ }
1270
+
1271
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback {
1272
+ return new SetLocalMetadataCallback().fromJson(jsonValue, options);
1273
+ }
1274
+
1275
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback {
1276
+ return new SetLocalMetadataCallback().fromJsonString(jsonString, options);
1277
+ }
1278
+
1279
+ static equals(a: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined, b: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined): boolean {
1280
+ return proto3.util.equals(SetLocalMetadataCallback, a, b);
1281
+ }
1282
+ }
1283
+
1284
+ /**
1285
+ * Change the local participant's attributes
1286
+ *
1287
+ * @generated from message livekit.proto.SetLocalAttributesRequest
1288
+ */
1289
+ export class SetLocalAttributesRequest extends Message<SetLocalAttributesRequest> {
1290
+ /**
1291
+ * @generated from field: uint64 local_participant_handle = 1;
1292
+ */
1293
+ localParticipantHandle = protoInt64.zero;
1294
+
1295
+ /**
1296
+ * @generated from field: map<string, string> attributes = 2;
1297
+ */
1298
+ attributes: { [key: string]: string } = {};
1299
+
1300
+ constructor(data?: PartialMessage<SetLocalAttributesRequest>) {
1301
+ super();
1302
+ proto3.util.initPartial(data, this);
1303
+ }
1304
+
1305
+ static readonly runtime: typeof proto3 = proto3;
1306
+ static readonly typeName = "livekit.proto.SetLocalAttributesRequest";
1307
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1308
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1309
+ { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1310
+ ]);
1311
+
1312
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesRequest {
1313
+ return new SetLocalAttributesRequest().fromBinary(bytes, options);
910
1314
  }
911
1315
 
912
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest {
913
- return new UpdateLocalMetadataRequest().fromJson(jsonValue, options);
1316
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest {
1317
+ return new SetLocalAttributesRequest().fromJson(jsonValue, options);
914
1318
  }
915
1319
 
916
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest {
917
- return new UpdateLocalMetadataRequest().fromJsonString(jsonString, options);
1320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest {
1321
+ return new SetLocalAttributesRequest().fromJsonString(jsonString, options);
918
1322
  }
919
1323
 
920
- static equals(a: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined, b: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined): boolean {
921
- return proto3.util.equals(UpdateLocalMetadataRequest, a, b);
1324
+ static equals(a: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined, b: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined): boolean {
1325
+ return proto3.util.equals(SetLocalAttributesRequest, a, b);
922
1326
  }
923
1327
  }
924
1328
 
925
1329
  /**
926
- * @generated from message livekit.proto.UpdateLocalMetadataResponse
1330
+ * @generated from message livekit.proto.SetLocalAttributesResponse
927
1331
  */
928
- export class UpdateLocalMetadataResponse extends Message<UpdateLocalMetadataResponse> {
1332
+ export class SetLocalAttributesResponse extends Message<SetLocalAttributesResponse> {
929
1333
  /**
930
1334
  * @generated from field: uint64 async_id = 1;
931
1335
  */
932
1336
  asyncId = protoInt64.zero;
933
1337
 
934
- constructor(data?: PartialMessage<UpdateLocalMetadataResponse>) {
1338
+ constructor(data?: PartialMessage<SetLocalAttributesResponse>) {
935
1339
  super();
936
1340
  proto3.util.initPartial(data, this);
937
1341
  }
938
1342
 
939
1343
  static readonly runtime: typeof proto3 = proto3;
940
- static readonly typeName = "livekit.proto.UpdateLocalMetadataResponse";
1344
+ static readonly typeName = "livekit.proto.SetLocalAttributesResponse";
941
1345
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
942
1346
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
943
1347
  ]);
944
1348
 
945
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataResponse {
946
- return new UpdateLocalMetadataResponse().fromBinary(bytes, options);
1349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesResponse {
1350
+ return new SetLocalAttributesResponse().fromBinary(bytes, options);
947
1351
  }
948
1352
 
949
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse {
950
- return new UpdateLocalMetadataResponse().fromJson(jsonValue, options);
1353
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse {
1354
+ return new SetLocalAttributesResponse().fromJson(jsonValue, options);
951
1355
  }
952
1356
 
953
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse {
954
- return new UpdateLocalMetadataResponse().fromJsonString(jsonString, options);
1357
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse {
1358
+ return new SetLocalAttributesResponse().fromJsonString(jsonString, options);
955
1359
  }
956
1360
 
957
- static equals(a: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined, b: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined): boolean {
958
- return proto3.util.equals(UpdateLocalMetadataResponse, a, b);
1361
+ static equals(a: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined, b: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined): boolean {
1362
+ return proto3.util.equals(SetLocalAttributesResponse, a, b);
959
1363
  }
960
1364
  }
961
1365
 
962
1366
  /**
963
- * @generated from message livekit.proto.UpdateLocalMetadataCallback
1367
+ * @generated from message livekit.proto.SetLocalAttributesCallback
964
1368
  */
965
- export class UpdateLocalMetadataCallback extends Message<UpdateLocalMetadataCallback> {
1369
+ export class SetLocalAttributesCallback extends Message<SetLocalAttributesCallback> {
966
1370
  /**
967
1371
  * @generated from field: uint64 async_id = 1;
968
1372
  */
969
1373
  asyncId = protoInt64.zero;
970
1374
 
971
- constructor(data?: PartialMessage<UpdateLocalMetadataCallback>) {
1375
+ /**
1376
+ * @generated from field: optional string error = 2;
1377
+ */
1378
+ error?: string;
1379
+
1380
+ constructor(data?: PartialMessage<SetLocalAttributesCallback>) {
972
1381
  super();
973
1382
  proto3.util.initPartial(data, this);
974
1383
  }
975
1384
 
976
1385
  static readonly runtime: typeof proto3 = proto3;
977
- static readonly typeName = "livekit.proto.UpdateLocalMetadataCallback";
1386
+ static readonly typeName = "livekit.proto.SetLocalAttributesCallback";
978
1387
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
979
1388
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1389
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
980
1390
  ]);
981
1391
 
982
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataCallback {
983
- return new UpdateLocalMetadataCallback().fromBinary(bytes, options);
1392
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesCallback {
1393
+ return new SetLocalAttributesCallback().fromBinary(bytes, options);
984
1394
  }
985
1395
 
986
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback {
987
- return new UpdateLocalMetadataCallback().fromJson(jsonValue, options);
1396
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback {
1397
+ return new SetLocalAttributesCallback().fromJson(jsonValue, options);
988
1398
  }
989
1399
 
990
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback {
991
- return new UpdateLocalMetadataCallback().fromJsonString(jsonString, options);
1400
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback {
1401
+ return new SetLocalAttributesCallback().fromJsonString(jsonString, options);
992
1402
  }
993
1403
 
994
- static equals(a: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined, b: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined): boolean {
995
- return proto3.util.equals(UpdateLocalMetadataCallback, a, b);
1404
+ static equals(a: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined, b: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined): boolean {
1405
+ return proto3.util.equals(SetLocalAttributesCallback, a, b);
996
1406
  }
997
1407
  }
998
1408
 
999
1409
  /**
1000
1410
  * Change the local participant's name
1001
1411
  *
1002
- * @generated from message livekit.proto.UpdateLocalNameRequest
1412
+ * @generated from message livekit.proto.SetLocalNameRequest
1003
1413
  */
1004
- export class UpdateLocalNameRequest extends Message<UpdateLocalNameRequest> {
1414
+ export class SetLocalNameRequest extends Message<SetLocalNameRequest> {
1005
1415
  /**
1006
1416
  * @generated from field: uint64 local_participant_handle = 1;
1007
1417
  */
@@ -1012,106 +1422,112 @@ export class UpdateLocalNameRequest extends Message<UpdateLocalNameRequest> {
1012
1422
  */
1013
1423
  name = "";
1014
1424
 
1015
- constructor(data?: PartialMessage<UpdateLocalNameRequest>) {
1425
+ constructor(data?: PartialMessage<SetLocalNameRequest>) {
1016
1426
  super();
1017
1427
  proto3.util.initPartial(data, this);
1018
1428
  }
1019
1429
 
1020
1430
  static readonly runtime: typeof proto3 = proto3;
1021
- static readonly typeName = "livekit.proto.UpdateLocalNameRequest";
1431
+ static readonly typeName = "livekit.proto.SetLocalNameRequest";
1022
1432
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1023
1433
  { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1024
1434
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1025
1435
  ]);
1026
1436
 
1027
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameRequest {
1028
- return new UpdateLocalNameRequest().fromBinary(bytes, options);
1437
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameRequest {
1438
+ return new SetLocalNameRequest().fromBinary(bytes, options);
1029
1439
  }
1030
1440
 
1031
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest {
1032
- return new UpdateLocalNameRequest().fromJson(jsonValue, options);
1441
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameRequest {
1442
+ return new SetLocalNameRequest().fromJson(jsonValue, options);
1033
1443
  }
1034
1444
 
1035
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest {
1036
- return new UpdateLocalNameRequest().fromJsonString(jsonString, options);
1445
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameRequest {
1446
+ return new SetLocalNameRequest().fromJsonString(jsonString, options);
1037
1447
  }
1038
1448
 
1039
- static equals(a: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined, b: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined): boolean {
1040
- return proto3.util.equals(UpdateLocalNameRequest, a, b);
1449
+ static equals(a: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined, b: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined): boolean {
1450
+ return proto3.util.equals(SetLocalNameRequest, a, b);
1041
1451
  }
1042
1452
  }
1043
1453
 
1044
1454
  /**
1045
- * @generated from message livekit.proto.UpdateLocalNameResponse
1455
+ * @generated from message livekit.proto.SetLocalNameResponse
1046
1456
  */
1047
- export class UpdateLocalNameResponse extends Message<UpdateLocalNameResponse> {
1457
+ export class SetLocalNameResponse extends Message<SetLocalNameResponse> {
1048
1458
  /**
1049
1459
  * @generated from field: uint64 async_id = 1;
1050
1460
  */
1051
1461
  asyncId = protoInt64.zero;
1052
1462
 
1053
- constructor(data?: PartialMessage<UpdateLocalNameResponse>) {
1463
+ constructor(data?: PartialMessage<SetLocalNameResponse>) {
1054
1464
  super();
1055
1465
  proto3.util.initPartial(data, this);
1056
1466
  }
1057
1467
 
1058
1468
  static readonly runtime: typeof proto3 = proto3;
1059
- static readonly typeName = "livekit.proto.UpdateLocalNameResponse";
1469
+ static readonly typeName = "livekit.proto.SetLocalNameResponse";
1060
1470
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1061
1471
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1062
1472
  ]);
1063
1473
 
1064
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameResponse {
1065
- return new UpdateLocalNameResponse().fromBinary(bytes, options);
1474
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameResponse {
1475
+ return new SetLocalNameResponse().fromBinary(bytes, options);
1066
1476
  }
1067
1477
 
1068
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse {
1069
- return new UpdateLocalNameResponse().fromJson(jsonValue, options);
1478
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameResponse {
1479
+ return new SetLocalNameResponse().fromJson(jsonValue, options);
1070
1480
  }
1071
1481
 
1072
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse {
1073
- return new UpdateLocalNameResponse().fromJsonString(jsonString, options);
1482
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameResponse {
1483
+ return new SetLocalNameResponse().fromJsonString(jsonString, options);
1074
1484
  }
1075
1485
 
1076
- static equals(a: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined, b: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined): boolean {
1077
- return proto3.util.equals(UpdateLocalNameResponse, a, b);
1486
+ static equals(a: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined, b: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined): boolean {
1487
+ return proto3.util.equals(SetLocalNameResponse, a, b);
1078
1488
  }
1079
1489
  }
1080
1490
 
1081
1491
  /**
1082
- * @generated from message livekit.proto.UpdateLocalNameCallback
1492
+ * @generated from message livekit.proto.SetLocalNameCallback
1083
1493
  */
1084
- export class UpdateLocalNameCallback extends Message<UpdateLocalNameCallback> {
1494
+ export class SetLocalNameCallback extends Message<SetLocalNameCallback> {
1085
1495
  /**
1086
1496
  * @generated from field: uint64 async_id = 1;
1087
1497
  */
1088
1498
  asyncId = protoInt64.zero;
1089
1499
 
1090
- constructor(data?: PartialMessage<UpdateLocalNameCallback>) {
1500
+ /**
1501
+ * @generated from field: optional string error = 2;
1502
+ */
1503
+ error?: string;
1504
+
1505
+ constructor(data?: PartialMessage<SetLocalNameCallback>) {
1091
1506
  super();
1092
1507
  proto3.util.initPartial(data, this);
1093
1508
  }
1094
1509
 
1095
1510
  static readonly runtime: typeof proto3 = proto3;
1096
- static readonly typeName = "livekit.proto.UpdateLocalNameCallback";
1511
+ static readonly typeName = "livekit.proto.SetLocalNameCallback";
1097
1512
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1098
1513
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1514
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1099
1515
  ]);
1100
1516
 
1101
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameCallback {
1102
- return new UpdateLocalNameCallback().fromBinary(bytes, options);
1517
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameCallback {
1518
+ return new SetLocalNameCallback().fromBinary(bytes, options);
1103
1519
  }
1104
1520
 
1105
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback {
1106
- return new UpdateLocalNameCallback().fromJson(jsonValue, options);
1521
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameCallback {
1522
+ return new SetLocalNameCallback().fromJson(jsonValue, options);
1107
1523
  }
1108
1524
 
1109
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback {
1110
- return new UpdateLocalNameCallback().fromJsonString(jsonString, options);
1525
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameCallback {
1526
+ return new SetLocalNameCallback().fromJsonString(jsonString, options);
1111
1527
  }
1112
1528
 
1113
- static equals(a: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined, b: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined): boolean {
1114
- return proto3.util.equals(UpdateLocalNameCallback, a, b);
1529
+ static equals(a: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined, b: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined): boolean {
1530
+ return proto3.util.equals(SetLocalNameCallback, a, b);
1115
1531
  }
1116
1532
  }
1117
1533
 
@@ -1644,6 +2060,73 @@ export class RoomOptions extends Message<RoomOptions> {
1644
2060
  }
1645
2061
  }
1646
2062
 
2063
+ /**
2064
+ * @generated from message livekit.proto.TranscriptionSegment
2065
+ */
2066
+ export class TranscriptionSegment extends Message<TranscriptionSegment> {
2067
+ /**
2068
+ * @generated from field: string id = 1;
2069
+ */
2070
+ id = "";
2071
+
2072
+ /**
2073
+ * @generated from field: string text = 2;
2074
+ */
2075
+ text = "";
2076
+
2077
+ /**
2078
+ * @generated from field: uint64 start_time = 3;
2079
+ */
2080
+ startTime = protoInt64.zero;
2081
+
2082
+ /**
2083
+ * @generated from field: uint64 end_time = 4;
2084
+ */
2085
+ endTime = protoInt64.zero;
2086
+
2087
+ /**
2088
+ * @generated from field: bool final = 5;
2089
+ */
2090
+ final = false;
2091
+
2092
+ /**
2093
+ * @generated from field: string language = 6;
2094
+ */
2095
+ language = "";
2096
+
2097
+ constructor(data?: PartialMessage<TranscriptionSegment>) {
2098
+ super();
2099
+ proto3.util.initPartial(data, this);
2100
+ }
2101
+
2102
+ static readonly runtime: typeof proto3 = proto3;
2103
+ static readonly typeName = "livekit.proto.TranscriptionSegment";
2104
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2105
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2106
+ { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2107
+ { no: 3, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2108
+ { no: 4, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2109
+ { no: 5, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2110
+ { no: 6, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2111
+ ]);
2112
+
2113
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment {
2114
+ return new TranscriptionSegment().fromBinary(bytes, options);
2115
+ }
2116
+
2117
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment {
2118
+ return new TranscriptionSegment().fromJson(jsonValue, options);
2119
+ }
2120
+
2121
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment {
2122
+ return new TranscriptionSegment().fromJsonString(jsonString, options);
2123
+ }
2124
+
2125
+ static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean {
2126
+ return proto3.util.equals(TranscriptionSegment, a, b);
2127
+ }
2128
+ }
2129
+
1647
2130
  /**
1648
2131
  * @generated from message livekit.proto.BufferInfo
1649
2132
  */
@@ -1822,57 +2305,63 @@ export class RoomEvent extends Message<RoomEvent> {
1822
2305
  case: "roomMetadataChanged";
1823
2306
  } | {
1824
2307
  /**
1825
- * @generated from field: livekit.proto.ParticipantMetadataChanged participant_metadata_changed = 15;
2308
+ * @generated from field: livekit.proto.RoomSidChanged room_sid_changed = 15;
2309
+ */
2310
+ value: RoomSidChanged;
2311
+ case: "roomSidChanged";
2312
+ } | {
2313
+ /**
2314
+ * @generated from field: livekit.proto.ParticipantMetadataChanged participant_metadata_changed = 16;
1826
2315
  */
1827
2316
  value: ParticipantMetadataChanged;
1828
2317
  case: "participantMetadataChanged";
1829
2318
  } | {
1830
2319
  /**
1831
- * @generated from field: livekit.proto.ParticipantNameChanged participant_name_changed = 16;
2320
+ * @generated from field: livekit.proto.ParticipantNameChanged participant_name_changed = 17;
1832
2321
  */
1833
2322
  value: ParticipantNameChanged;
1834
2323
  case: "participantNameChanged";
1835
2324
  } | {
1836
2325
  /**
1837
- * @generated from field: livekit.proto.ConnectionQualityChanged connection_quality_changed = 17;
2326
+ * @generated from field: livekit.proto.ParticipantAttributesChanged participant_attributes_changed = 18;
1838
2327
  */
1839
- value: ConnectionQualityChanged;
1840
- case: "connectionQualityChanged";
2328
+ value: ParticipantAttributesChanged;
2329
+ case: "participantAttributesChanged";
1841
2330
  } | {
1842
2331
  /**
1843
- * @generated from field: livekit.proto.DataReceived data_received = 18;
2332
+ * @generated from field: livekit.proto.ConnectionQualityChanged connection_quality_changed = 19;
1844
2333
  */
1845
- value: DataReceived;
1846
- case: "dataReceived";
2334
+ value: ConnectionQualityChanged;
2335
+ case: "connectionQualityChanged";
1847
2336
  } | {
1848
2337
  /**
1849
- * @generated from field: livekit.proto.ConnectionStateChanged connection_state_changed = 19;
2338
+ * @generated from field: livekit.proto.ConnectionStateChanged connection_state_changed = 20;
1850
2339
  */
1851
2340
  value: ConnectionStateChanged;
1852
2341
  case: "connectionStateChanged";
1853
2342
  } | {
1854
2343
  /**
1855
- * Connected connected = 20;
2344
+ * Connected connected = 21;
1856
2345
  *
1857
- * @generated from field: livekit.proto.Disconnected disconnected = 21;
2346
+ * @generated from field: livekit.proto.Disconnected disconnected = 22;
1858
2347
  */
1859
2348
  value: Disconnected;
1860
2349
  case: "disconnected";
1861
2350
  } | {
1862
2351
  /**
1863
- * @generated from field: livekit.proto.Reconnecting reconnecting = 22;
2352
+ * @generated from field: livekit.proto.Reconnecting reconnecting = 23;
1864
2353
  */
1865
2354
  value: Reconnecting;
1866
2355
  case: "reconnecting";
1867
2356
  } | {
1868
2357
  /**
1869
- * @generated from field: livekit.proto.Reconnected reconnected = 23;
2358
+ * @generated from field: livekit.proto.Reconnected reconnected = 24;
1870
2359
  */
1871
2360
  value: Reconnected;
1872
2361
  case: "reconnected";
1873
2362
  } | {
1874
2363
  /**
1875
- * @generated from field: livekit.proto.E2eeStateChanged e2ee_state_changed = 24;
2364
+ * @generated from field: livekit.proto.E2eeStateChanged e2ee_state_changed = 25;
1876
2365
  */
1877
2366
  value: E2eeStateChanged;
1878
2367
  case: "e2eeStateChanged";
@@ -1880,10 +2369,16 @@ export class RoomEvent extends Message<RoomEvent> {
1880
2369
  /**
1881
2370
  * The stream of room events has ended
1882
2371
  *
1883
- * @generated from field: livekit.proto.RoomEOS eos = 25;
2372
+ * @generated from field: livekit.proto.RoomEOS eos = 26;
1884
2373
  */
1885
2374
  value: RoomEOS;
1886
2375
  case: "eos";
2376
+ } | {
2377
+ /**
2378
+ * @generated from field: livekit.proto.DataPacketReceived data_packet_received = 27;
2379
+ */
2380
+ value: DataPacketReceived;
2381
+ case: "dataPacketReceived";
1887
2382
  } | { case: undefined; value?: undefined } = { case: undefined };
1888
2383
 
1889
2384
  constructor(data?: PartialMessage<RoomEvent>) {
@@ -1908,16 +2403,18 @@ export class RoomEvent extends Message<RoomEvent> {
1908
2403
  { no: 12, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
1909
2404
  { no: 13, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
1910
2405
  { no: 14, name: "room_metadata_changed", kind: "message", T: RoomMetadataChanged, oneof: "message" },
1911
- { no: 15, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1912
- { no: 16, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1913
- { no: 17, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1914
- { no: 18, name: "data_received", kind: "message", T: DataReceived, oneof: "message" },
1915
- { no: 19, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1916
- { no: 21, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
1917
- { no: 22, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
1918
- { no: 23, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
1919
- { no: 24, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
1920
- { no: 25, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
2406
+ { no: 15, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
2407
+ { no: 16, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
2408
+ { no: 17, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
2409
+ { no: 18, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
2410
+ { no: 19, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
2411
+ { no: 20, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
2412
+ { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
2413
+ { no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
2414
+ { no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
2415
+ { no: 25, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
2416
+ { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
2417
+ { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
1921
2418
  ]);
1922
2419
 
1923
2420
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEvent {
@@ -1942,9 +2439,9 @@ export class RoomEvent extends Message<RoomEvent> {
1942
2439
  */
1943
2440
  export class RoomInfo extends Message<RoomInfo> {
1944
2441
  /**
1945
- * @generated from field: string sid = 1;
2442
+ * @generated from field: optional string sid = 1;
1946
2443
  */
1947
- sid = "";
2444
+ sid?: string;
1948
2445
 
1949
2446
  /**
1950
2447
  * @generated from field: string name = 2;
@@ -1964,7 +2461,7 @@ export class RoomInfo extends Message<RoomInfo> {
1964
2461
  static readonly runtime: typeof proto3 = proto3;
1965
2462
  static readonly typeName = "livekit.proto.RoomInfo";
1966
2463
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1967
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2464
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1968
2465
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1969
2466
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1970
2467
  ]);
@@ -2071,9 +2568,9 @@ export class ParticipantConnected extends Message<ParticipantConnected> {
2071
2568
  */
2072
2569
  export class ParticipantDisconnected extends Message<ParticipantDisconnected> {
2073
2570
  /**
2074
- * @generated from field: string participant_sid = 1;
2571
+ * @generated from field: string participant_identity = 1;
2075
2572
  */
2076
- participantSid = "";
2573
+ participantIdentity = "";
2077
2574
 
2078
2575
  constructor(data?: PartialMessage<ParticipantDisconnected>) {
2079
2576
  super();
@@ -2083,7 +2580,7 @@ export class ParticipantDisconnected extends Message<ParticipantDisconnected> {
2083
2580
  static readonly runtime: typeof proto3 = proto3;
2084
2581
  static readonly typeName = "livekit.proto.ParticipantDisconnected";
2085
2582
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2086
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2583
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2087
2584
  ]);
2088
2585
 
2089
2586
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantDisconnected {
@@ -2185,9 +2682,9 @@ export class LocalTrackUnpublished extends Message<LocalTrackUnpublished> {
2185
2682
  */
2186
2683
  export class TrackPublished extends Message<TrackPublished> {
2187
2684
  /**
2188
- * @generated from field: string participant_sid = 1;
2685
+ * @generated from field: string participant_identity = 1;
2189
2686
  */
2190
- participantSid = "";
2687
+ participantIdentity = "";
2191
2688
 
2192
2689
  /**
2193
2690
  * @generated from field: livekit.proto.OwnedTrackPublication publication = 2;
@@ -2202,7 +2699,7 @@ export class TrackPublished extends Message<TrackPublished> {
2202
2699
  static readonly runtime: typeof proto3 = proto3;
2203
2700
  static readonly typeName = "livekit.proto.TrackPublished";
2204
2701
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2205
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2702
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2206
2703
  { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication },
2207
2704
  ]);
2208
2705
 
@@ -2228,9 +2725,9 @@ export class TrackPublished extends Message<TrackPublished> {
2228
2725
  */
2229
2726
  export class TrackUnpublished extends Message<TrackUnpublished> {
2230
2727
  /**
2231
- * @generated from field: string participant_sid = 1;
2728
+ * @generated from field: string participant_identity = 1;
2232
2729
  */
2233
- participantSid = "";
2730
+ participantIdentity = "";
2234
2731
 
2235
2732
  /**
2236
2733
  * @generated from field: string publication_sid = 2;
@@ -2245,7 +2742,7 @@ export class TrackUnpublished extends Message<TrackUnpublished> {
2245
2742
  static readonly runtime: typeof proto3 = proto3;
2246
2743
  static readonly typeName = "livekit.proto.TrackUnpublished";
2247
2744
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2248
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2745
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2249
2746
  { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2250
2747
  ]);
2251
2748
 
@@ -2274,9 +2771,9 @@ export class TrackUnpublished extends Message<TrackUnpublished> {
2274
2771
  */
2275
2772
  export class TrackSubscribed extends Message<TrackSubscribed> {
2276
2773
  /**
2277
- * @generated from field: string participant_sid = 1;
2774
+ * @generated from field: string participant_identity = 1;
2278
2775
  */
2279
- participantSid = "";
2776
+ participantIdentity = "";
2280
2777
 
2281
2778
  /**
2282
2779
  * @generated from field: livekit.proto.OwnedTrack track = 2;
@@ -2291,7 +2788,7 @@ export class TrackSubscribed extends Message<TrackSubscribed> {
2291
2788
  static readonly runtime: typeof proto3 = proto3;
2292
2789
  static readonly typeName = "livekit.proto.TrackSubscribed";
2293
2790
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2294
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2791
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2295
2792
  { no: 2, name: "track", kind: "message", T: OwnedTrack },
2296
2793
  ]);
2297
2794
 
@@ -2319,9 +2816,9 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2319
2816
  /**
2320
2817
  * The FFI language can dispose/remove the VideoSink here
2321
2818
  *
2322
- * @generated from field: string participant_sid = 1;
2819
+ * @generated from field: string participant_identity = 1;
2323
2820
  */
2324
- participantSid = "";
2821
+ participantIdentity = "";
2325
2822
 
2326
2823
  /**
2327
2824
  * @generated from field: string track_sid = 2;
@@ -2336,7 +2833,7 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2336
2833
  static readonly runtime: typeof proto3 = proto3;
2337
2834
  static readonly typeName = "livekit.proto.TrackUnsubscribed";
2338
2835
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2339
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2836
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2340
2837
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2341
2838
  ]);
2342
2839
 
@@ -2362,9 +2859,9 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2362
2859
  */
2363
2860
  export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2364
2861
  /**
2365
- * @generated from field: string participant_sid = 1;
2862
+ * @generated from field: string participant_identity = 1;
2366
2863
  */
2367
- participantSid = "";
2864
+ participantIdentity = "";
2368
2865
 
2369
2866
  /**
2370
2867
  * @generated from field: string track_sid = 2;
@@ -2384,7 +2881,7 @@ export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2384
2881
  static readonly runtime: typeof proto3 = proto3;
2385
2882
  static readonly typeName = "livekit.proto.TrackSubscriptionFailed";
2386
2883
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2387
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2884
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2388
2885
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2389
2886
  { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2390
2887
  ]);
@@ -2411,9 +2908,9 @@ export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2411
2908
  */
2412
2909
  export class TrackMuted extends Message<TrackMuted> {
2413
2910
  /**
2414
- * @generated from field: string participant_sid = 1;
2911
+ * @generated from field: string participant_identity = 1;
2415
2912
  */
2416
- participantSid = "";
2913
+ participantIdentity = "";
2417
2914
 
2418
2915
  /**
2419
2916
  * @generated from field: string track_sid = 2;
@@ -2428,7 +2925,7 @@ export class TrackMuted extends Message<TrackMuted> {
2428
2925
  static readonly runtime: typeof proto3 = proto3;
2429
2926
  static readonly typeName = "livekit.proto.TrackMuted";
2430
2927
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2431
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2928
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2432
2929
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2433
2930
  ]);
2434
2931
 
@@ -2454,9 +2951,9 @@ export class TrackMuted extends Message<TrackMuted> {
2454
2951
  */
2455
2952
  export class TrackUnmuted extends Message<TrackUnmuted> {
2456
2953
  /**
2457
- * @generated from field: string participant_sid = 1;
2954
+ * @generated from field: string participant_identity = 1;
2458
2955
  */
2459
- participantSid = "";
2956
+ participantIdentity = "";
2460
2957
 
2461
2958
  /**
2462
2959
  * @generated from field: string track_sid = 2;
@@ -2471,7 +2968,7 @@ export class TrackUnmuted extends Message<TrackUnmuted> {
2471
2968
  static readonly runtime: typeof proto3 = proto3;
2472
2969
  static readonly typeName = "livekit.proto.TrackUnmuted";
2473
2970
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2474
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2971
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2475
2972
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2476
2973
  ]);
2477
2974
 
@@ -2499,9 +2996,9 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2499
2996
  /**
2500
2997
  * Using sid instead of identity for ffi communication
2501
2998
  *
2502
- * @generated from field: string participant_sid = 1;
2999
+ * @generated from field: string participant_identity = 1;
2503
3000
  */
2504
- participantSid = "";
3001
+ participantIdentity = "";
2505
3002
 
2506
3003
  /**
2507
3004
  * @generated from field: livekit.proto.EncryptionState state = 2;
@@ -2516,7 +3013,7 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2516
3013
  static readonly runtime: typeof proto3 = proto3;
2517
3014
  static readonly typeName = "livekit.proto.E2eeStateChanged";
2518
3015
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2519
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3016
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2520
3017
  { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(EncryptionState) },
2521
3018
  ]);
2522
3019
 
@@ -2542,9 +3039,9 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2542
3039
  */
2543
3040
  export class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
2544
3041
  /**
2545
- * @generated from field: repeated string participant_sids = 1;
3042
+ * @generated from field: repeated string participant_identities = 1;
2546
3043
  */
2547
- participantSids: string[] = [];
3044
+ participantIdentities: string[] = [];
2548
3045
 
2549
3046
  constructor(data?: PartialMessage<ActiveSpeakersChanged>) {
2550
3047
  super();
@@ -2554,7 +3051,7 @@ export class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
2554
3051
  static readonly runtime: typeof proto3 = proto3;
2555
3052
  static readonly typeName = "livekit.proto.ActiveSpeakersChanged";
2556
3053
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2557
- { no: 1, name: "participant_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3054
+ { no: 1, name: "participant_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2558
3055
  ]);
2559
3056
 
2560
3057
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakersChanged {
@@ -2611,14 +3108,51 @@ export class RoomMetadataChanged extends Message<RoomMetadataChanged> {
2611
3108
  }
2612
3109
  }
2613
3110
 
3111
+ /**
3112
+ * @generated from message livekit.proto.RoomSidChanged
3113
+ */
3114
+ export class RoomSidChanged extends Message<RoomSidChanged> {
3115
+ /**
3116
+ * @generated from field: string sid = 1;
3117
+ */
3118
+ sid = "";
3119
+
3120
+ constructor(data?: PartialMessage<RoomSidChanged>) {
3121
+ super();
3122
+ proto3.util.initPartial(data, this);
3123
+ }
3124
+
3125
+ static readonly runtime: typeof proto3 = proto3;
3126
+ static readonly typeName = "livekit.proto.RoomSidChanged";
3127
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3128
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3129
+ ]);
3130
+
3131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomSidChanged {
3132
+ return new RoomSidChanged().fromBinary(bytes, options);
3133
+ }
3134
+
3135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomSidChanged {
3136
+ return new RoomSidChanged().fromJson(jsonValue, options);
3137
+ }
3138
+
3139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomSidChanged {
3140
+ return new RoomSidChanged().fromJsonString(jsonString, options);
3141
+ }
3142
+
3143
+ static equals(a: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined, b: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined): boolean {
3144
+ return proto3.util.equals(RoomSidChanged, a, b);
3145
+ }
3146
+ }
3147
+
2614
3148
  /**
2615
3149
  * @generated from message livekit.proto.ParticipantMetadataChanged
2616
3150
  */
2617
3151
  export class ParticipantMetadataChanged extends Message<ParticipantMetadataChanged> {
2618
3152
  /**
2619
- * @generated from field: string participant_sid = 1;
3153
+ * @generated from field: string participant_identity = 1;
2620
3154
  */
2621
- participantSid = "";
3155
+ participantIdentity = "";
2622
3156
 
2623
3157
  /**
2624
3158
  * @generated from field: string metadata = 2;
@@ -2633,7 +3167,7 @@ export class ParticipantMetadataChanged extends Message<ParticipantMetadataChang
2633
3167
  static readonly runtime: typeof proto3 = proto3;
2634
3168
  static readonly typeName = "livekit.proto.ParticipantMetadataChanged";
2635
3169
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2636
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3170
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2637
3171
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2638
3172
  ]);
2639
3173
 
@@ -2654,14 +3188,63 @@ export class ParticipantMetadataChanged extends Message<ParticipantMetadataChang
2654
3188
  }
2655
3189
  }
2656
3190
 
3191
+ /**
3192
+ * @generated from message livekit.proto.ParticipantAttributesChanged
3193
+ */
3194
+ export class ParticipantAttributesChanged extends Message<ParticipantAttributesChanged> {
3195
+ /**
3196
+ * @generated from field: string participant_identity = 1;
3197
+ */
3198
+ participantIdentity = "";
3199
+
3200
+ /**
3201
+ * @generated from field: map<string, string> old_attributes = 2;
3202
+ */
3203
+ oldAttributes: { [key: string]: string } = {};
3204
+
3205
+ /**
3206
+ * @generated from field: map<string, string> attributes = 3;
3207
+ */
3208
+ attributes: { [key: string]: string } = {};
3209
+
3210
+ constructor(data?: PartialMessage<ParticipantAttributesChanged>) {
3211
+ super();
3212
+ proto3.util.initPartial(data, this);
3213
+ }
3214
+
3215
+ static readonly runtime: typeof proto3 = proto3;
3216
+ static readonly typeName = "livekit.proto.ParticipantAttributesChanged";
3217
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3218
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3219
+ { no: 2, name: "old_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3220
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3221
+ ]);
3222
+
3223
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantAttributesChanged {
3224
+ return new ParticipantAttributesChanged().fromBinary(bytes, options);
3225
+ }
3226
+
3227
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged {
3228
+ return new ParticipantAttributesChanged().fromJson(jsonValue, options);
3229
+ }
3230
+
3231
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged {
3232
+ return new ParticipantAttributesChanged().fromJsonString(jsonString, options);
3233
+ }
3234
+
3235
+ static equals(a: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined, b: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined): boolean {
3236
+ return proto3.util.equals(ParticipantAttributesChanged, a, b);
3237
+ }
3238
+ }
3239
+
2657
3240
  /**
2658
3241
  * @generated from message livekit.proto.ParticipantNameChanged
2659
3242
  */
2660
3243
  export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2661
3244
  /**
2662
- * @generated from field: string participant_sid = 1;
3245
+ * @generated from field: string participant_identity = 1;
2663
3246
  */
2664
- participantSid = "";
3247
+ participantIdentity = "";
2665
3248
 
2666
3249
  /**
2667
3250
  * @generated from field: string name = 2;
@@ -2676,7 +3259,7 @@ export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2676
3259
  static readonly runtime: typeof proto3 = proto3;
2677
3260
  static readonly typeName = "livekit.proto.ParticipantNameChanged";
2678
3261
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2679
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3262
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2680
3263
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2681
3264
  ]);
2682
3265
 
@@ -2702,9 +3285,9 @@ export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2702
3285
  */
2703
3286
  export class ConnectionQualityChanged extends Message<ConnectionQualityChanged> {
2704
3287
  /**
2705
- * @generated from field: string participant_sid = 1;
3288
+ * @generated from field: string participant_identity = 1;
2706
3289
  */
2707
- participantSid = "";
3290
+ participantIdentity = "";
2708
3291
 
2709
3292
  /**
2710
3293
  * @generated from field: livekit.proto.ConnectionQuality quality = 2;
@@ -2719,7 +3302,7 @@ export class ConnectionQualityChanged extends Message<ConnectionQualityChanged>
2719
3302
  static readonly runtime: typeof proto3 = proto3;
2720
3303
  static readonly typeName = "livekit.proto.ConnectionQualityChanged";
2721
3304
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2722
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3305
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2723
3306
  { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) },
2724
3307
  ]);
2725
3308
 
@@ -2741,59 +3324,152 @@ export class ConnectionQualityChanged extends Message<ConnectionQualityChanged>
2741
3324
  }
2742
3325
 
2743
3326
  /**
2744
- * @generated from message livekit.proto.DataReceived
3327
+ * @generated from message livekit.proto.UserPacket
2745
3328
  */
2746
- export class DataReceived extends Message<DataReceived> {
3329
+ export class UserPacket extends Message<UserPacket> {
2747
3330
  /**
2748
3331
  * @generated from field: livekit.proto.OwnedBuffer data = 1;
2749
3332
  */
2750
3333
  data?: OwnedBuffer;
2751
3334
 
2752
3335
  /**
2753
- * Can be empty if the data is sent a server SDK
2754
- *
2755
- * @generated from field: optional string participant_sid = 2;
3336
+ * @generated from field: optional string topic = 2;
3337
+ */
3338
+ topic?: string;
3339
+
3340
+ constructor(data?: PartialMessage<UserPacket>) {
3341
+ super();
3342
+ proto3.util.initPartial(data, this);
3343
+ }
3344
+
3345
+ static readonly runtime: typeof proto3 = proto3;
3346
+ static readonly typeName = "livekit.proto.UserPacket";
3347
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3348
+ { no: 1, name: "data", kind: "message", T: OwnedBuffer },
3349
+ { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3350
+ ]);
3351
+
3352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket {
3353
+ return new UserPacket().fromBinary(bytes, options);
3354
+ }
3355
+
3356
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket {
3357
+ return new UserPacket().fromJson(jsonValue, options);
3358
+ }
3359
+
3360
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket {
3361
+ return new UserPacket().fromJsonString(jsonString, options);
3362
+ }
3363
+
3364
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean {
3365
+ return proto3.util.equals(UserPacket, a, b);
3366
+ }
3367
+ }
3368
+
3369
+ /**
3370
+ * @generated from message livekit.proto.SipDTMF
3371
+ */
3372
+ export class SipDTMF extends Message<SipDTMF> {
3373
+ /**
3374
+ * @generated from field: uint32 code = 1;
2756
3375
  */
2757
- participantSid?: string;
3376
+ code = 0;
3377
+
3378
+ /**
3379
+ * @generated from field: optional string digit = 2;
3380
+ */
3381
+ digit?: string;
3382
+
3383
+ constructor(data?: PartialMessage<SipDTMF>) {
3384
+ super();
3385
+ proto3.util.initPartial(data, this);
3386
+ }
2758
3387
 
3388
+ static readonly runtime: typeof proto3 = proto3;
3389
+ static readonly typeName = "livekit.proto.SipDTMF";
3390
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3391
+ { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
3392
+ { no: 2, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3393
+ ]);
3394
+
3395
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF {
3396
+ return new SipDTMF().fromBinary(bytes, options);
3397
+ }
3398
+
3399
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF {
3400
+ return new SipDTMF().fromJson(jsonValue, options);
3401
+ }
3402
+
3403
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF {
3404
+ return new SipDTMF().fromJsonString(jsonString, options);
3405
+ }
3406
+
3407
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean {
3408
+ return proto3.util.equals(SipDTMF, a, b);
3409
+ }
3410
+ }
3411
+
3412
+ /**
3413
+ * @generated from message livekit.proto.DataPacketReceived
3414
+ */
3415
+ export class DataPacketReceived extends Message<DataPacketReceived> {
2759
3416
  /**
2760
- * @generated from field: livekit.proto.DataPacketKind kind = 3;
3417
+ * @generated from field: livekit.proto.DataPacketKind kind = 1;
2761
3418
  */
2762
3419
  kind = DataPacketKind.KIND_LOSSY;
2763
3420
 
2764
3421
  /**
2765
- * @generated from field: optional string topic = 4;
3422
+ * Can be empty if the data is sent a server SDK
3423
+ *
3424
+ * @generated from field: string participant_identity = 2;
2766
3425
  */
2767
- topic?: string;
3426
+ participantIdentity = "";
3427
+
3428
+ /**
3429
+ * @generated from oneof livekit.proto.DataPacketReceived.value
3430
+ */
3431
+ value: {
3432
+ /**
3433
+ * @generated from field: livekit.proto.UserPacket user = 4;
3434
+ */
3435
+ value: UserPacket;
3436
+ case: "user";
3437
+ } | {
3438
+ /**
3439
+ * @generated from field: livekit.proto.SipDTMF sip_dtmf = 5;
3440
+ */
3441
+ value: SipDTMF;
3442
+ case: "sipDtmf";
3443
+ } | { case: undefined; value?: undefined } = { case: undefined };
2768
3444
 
2769
- constructor(data?: PartialMessage<DataReceived>) {
3445
+ constructor(data?: PartialMessage<DataPacketReceived>) {
2770
3446
  super();
2771
3447
  proto3.util.initPartial(data, this);
2772
3448
  }
2773
3449
 
2774
3450
  static readonly runtime: typeof proto3 = proto3;
2775
- static readonly typeName = "livekit.proto.DataReceived";
3451
+ static readonly typeName = "livekit.proto.DataPacketReceived";
2776
3452
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2777
- { no: 1, name: "data", kind: "message", T: OwnedBuffer },
2778
- { no: 2, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2779
- { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
2780
- { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3453
+ { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
3454
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3455
+ { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" },
3456
+ { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
2781
3457
  ]);
2782
3458
 
2783
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataReceived {
2784
- return new DataReceived().fromBinary(bytes, options);
3459
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacketReceived {
3460
+ return new DataPacketReceived().fromBinary(bytes, options);
2785
3461
  }
2786
3462
 
2787
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataReceived {
2788
- return new DataReceived().fromJson(jsonValue, options);
3463
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacketReceived {
3464
+ return new DataPacketReceived().fromJson(jsonValue, options);
2789
3465
  }
2790
3466
 
2791
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataReceived {
2792
- return new DataReceived().fromJsonString(jsonString, options);
3467
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacketReceived {
3468
+ return new DataPacketReceived().fromJsonString(jsonString, options);
2793
3469
  }
2794
3470
 
2795
- static equals(a: DataReceived | PlainMessage<DataReceived> | undefined, b: DataReceived | PlainMessage<DataReceived> | undefined): boolean {
2796
- return proto3.util.equals(DataReceived, a, b);
3471
+ static equals(a: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined, b: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined): boolean {
3472
+ return proto3.util.equals(DataPacketReceived, a, b);
2797
3473
  }
2798
3474
  }
2799
3475