@livekit/rtc-node 0.5.1 → 0.6.1

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 (51) 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/napi/native.d.ts +1 -1
  12. package/dist/participant.d.ts +5 -2
  13. package/dist/participant.d.ts.map +1 -1
  14. package/dist/participant.js +40 -16
  15. package/dist/participant.js.map +1 -1
  16. package/dist/proto/audio_frame_pb.d.ts +4 -0
  17. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  18. package/dist/proto/audio_frame_pb.js +1 -0
  19. package/dist/proto/audio_frame_pb.js.map +1 -1
  20. package/dist/proto/ffi_pb.d.ts +105 -51
  21. package/dist/proto/ffi_pb.d.ts.map +1 -1
  22. package/dist/proto/ffi_pb.js +48 -39
  23. package/dist/proto/ffi_pb.js.map +1 -1
  24. package/dist/proto/participant_pb.d.ts +6 -0
  25. package/dist/proto/participant_pb.d.ts.map +1 -1
  26. package/dist/proto/participant_pb.js +5 -0
  27. package/dist/proto/participant_pb.js.map +1 -1
  28. package/dist/proto/room_pb.d.ts +501 -110
  29. package/dist/proto/room_pb.d.ts.map +1 -1
  30. package/dist/proto/room_pb.js +672 -128
  31. package/dist/proto/room_pb.js.map +1 -1
  32. package/dist/room.d.ts +5 -2
  33. package/dist/room.d.ts.map +1 -1
  34. package/dist/room.js +40 -24
  35. package/dist/room.js.map +1 -1
  36. package/dist/video_stream.d.ts.map +1 -1
  37. package/package.json +6 -6
  38. package/src/audio_frame.ts +5 -0
  39. package/src/audio_source.ts +2 -1
  40. package/src/napi/native.d.ts +1 -1
  41. package/src/participant.ts +65 -28
  42. package/src/proto/audio_frame_pb.ts +7 -1
  43. package/src/proto/e2ee_pb.ts +1 -1
  44. package/src/proto/ffi_pb.ts +153 -90
  45. package/src/proto/handle_pb.ts +1 -1
  46. package/src/proto/participant_pb.ts +7 -1
  47. package/src/proto/room_pb.ts +900 -168
  48. package/src/proto/stats_pb.ts +1 -1
  49. package/src/proto/track_pb.ts +1 -1
  50. package/src/proto/video_frame_pb.ts +1 -1
  51. package/src/room.ts +55 -26
@@ -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);
910
1189
  }
911
1190
 
912
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest {
913
- return new UpdateLocalMetadataRequest().fromJson(jsonValue, options);
1191
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest {
1192
+ return new SetLocalMetadataRequest().fromJson(jsonValue, options);
914
1193
  }
915
1194
 
916
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest {
917
- return new UpdateLocalMetadataRequest().fromJsonString(jsonString, options);
1195
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest {
1196
+ return new SetLocalMetadataRequest().fromJsonString(jsonString, options);
918
1197
  }
919
1198
 
920
- static equals(a: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined, b: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined): boolean {
921
- return proto3.util.equals(UpdateLocalMetadataRequest, a, b);
1199
+ static equals(a: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined, b: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined): boolean {
1200
+ return proto3.util.equals(SetLocalMetadataRequest, a, b);
922
1201
  }
923
1202
  }
924
1203
 
925
1204
  /**
926
- * @generated from message livekit.proto.UpdateLocalMetadataResponse
1205
+ * @generated from message livekit.proto.SetLocalMetadataResponse
927
1206
  */
928
- export class UpdateLocalMetadataResponse extends Message<UpdateLocalMetadataResponse> {
1207
+ export class SetLocalMetadataResponse extends Message<SetLocalMetadataResponse> {
929
1208
  /**
930
1209
  * @generated from field: uint64 async_id = 1;
931
1210
  */
932
1211
  asyncId = protoInt64.zero;
933
1212
 
934
- constructor(data?: PartialMessage<UpdateLocalMetadataResponse>) {
1213
+ constructor(data?: PartialMessage<SetLocalMetadataResponse>) {
935
1214
  super();
936
1215
  proto3.util.initPartial(data, this);
937
1216
  }
938
1217
 
939
1218
  static readonly runtime: typeof proto3 = proto3;
940
- static readonly typeName = "livekit.proto.UpdateLocalMetadataResponse";
1219
+ static readonly typeName = "livekit.proto.SetLocalMetadataResponse";
941
1220
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
942
1221
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
943
1222
  ]);
944
1223
 
945
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataResponse {
946
- return new UpdateLocalMetadataResponse().fromBinary(bytes, options);
1224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataResponse {
1225
+ return new SetLocalMetadataResponse().fromBinary(bytes, options);
947
1226
  }
948
1227
 
949
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse {
950
- return new UpdateLocalMetadataResponse().fromJson(jsonValue, options);
1228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse {
1229
+ return new SetLocalMetadataResponse().fromJson(jsonValue, options);
951
1230
  }
952
1231
 
953
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse {
954
- return new UpdateLocalMetadataResponse().fromJsonString(jsonString, options);
1232
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse {
1233
+ return new SetLocalMetadataResponse().fromJsonString(jsonString, options);
955
1234
  }
956
1235
 
957
- static equals(a: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined, b: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined): boolean {
958
- return proto3.util.equals(UpdateLocalMetadataResponse, a, b);
1236
+ static equals(a: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined, b: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined): boolean {
1237
+ return proto3.util.equals(SetLocalMetadataResponse, a, b);
959
1238
  }
960
1239
  }
961
1240
 
962
1241
  /**
963
- * @generated from message livekit.proto.UpdateLocalMetadataCallback
1242
+ * @generated from message livekit.proto.SetLocalMetadataCallback
964
1243
  */
965
- export class UpdateLocalMetadataCallback extends Message<UpdateLocalMetadataCallback> {
1244
+ export class SetLocalMetadataCallback extends Message<SetLocalMetadataCallback> {
966
1245
  /**
967
1246
  * @generated from field: uint64 async_id = 1;
968
1247
  */
969
1248
  asyncId = protoInt64.zero;
970
1249
 
971
- constructor(data?: PartialMessage<UpdateLocalMetadataCallback>) {
1250
+ /**
1251
+ * @generated from field: optional string error = 2;
1252
+ */
1253
+ error?: string;
1254
+
1255
+ constructor(data?: PartialMessage<SetLocalMetadataCallback>) {
972
1256
  super();
973
1257
  proto3.util.initPartial(data, this);
974
1258
  }
975
1259
 
976
1260
  static readonly runtime: typeof proto3 = proto3;
977
- static readonly typeName = "livekit.proto.UpdateLocalMetadataCallback";
1261
+ static readonly typeName = "livekit.proto.SetLocalMetadataCallback";
978
1262
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
979
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 },
980
1265
  ]);
981
1266
 
982
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataCallback {
983
- return new UpdateLocalMetadataCallback().fromBinary(bytes, options);
1267
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataCallback {
1268
+ return new SetLocalMetadataCallback().fromBinary(bytes, options);
984
1269
  }
985
1270
 
986
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback {
987
- return new UpdateLocalMetadataCallback().fromJson(jsonValue, options);
1271
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback {
1272
+ return new SetLocalMetadataCallback().fromJson(jsonValue, options);
988
1273
  }
989
1274
 
990
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback {
991
- return new UpdateLocalMetadataCallback().fromJsonString(jsonString, options);
1275
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback {
1276
+ return new SetLocalMetadataCallback().fromJsonString(jsonString, options);
992
1277
  }
993
1278
 
994
- static equals(a: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined, b: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined): boolean {
995
- return proto3.util.equals(UpdateLocalMetadataCallback, a, b);
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);
1314
+ }
1315
+
1316
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest {
1317
+ return new SetLocalAttributesRequest().fromJson(jsonValue, options);
1318
+ }
1319
+
1320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest {
1321
+ return new SetLocalAttributesRequest().fromJsonString(jsonString, options);
1322
+ }
1323
+
1324
+ static equals(a: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined, b: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined): boolean {
1325
+ return proto3.util.equals(SetLocalAttributesRequest, a, b);
1326
+ }
1327
+ }
1328
+
1329
+ /**
1330
+ * @generated from message livekit.proto.SetLocalAttributesResponse
1331
+ */
1332
+ export class SetLocalAttributesResponse extends Message<SetLocalAttributesResponse> {
1333
+ /**
1334
+ * @generated from field: uint64 async_id = 1;
1335
+ */
1336
+ asyncId = protoInt64.zero;
1337
+
1338
+ constructor(data?: PartialMessage<SetLocalAttributesResponse>) {
1339
+ super();
1340
+ proto3.util.initPartial(data, this);
1341
+ }
1342
+
1343
+ static readonly runtime: typeof proto3 = proto3;
1344
+ static readonly typeName = "livekit.proto.SetLocalAttributesResponse";
1345
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1346
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1347
+ ]);
1348
+
1349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesResponse {
1350
+ return new SetLocalAttributesResponse().fromBinary(bytes, options);
1351
+ }
1352
+
1353
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse {
1354
+ return new SetLocalAttributesResponse().fromJson(jsonValue, options);
1355
+ }
1356
+
1357
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse {
1358
+ return new SetLocalAttributesResponse().fromJsonString(jsonString, options);
1359
+ }
1360
+
1361
+ static equals(a: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined, b: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined): boolean {
1362
+ return proto3.util.equals(SetLocalAttributesResponse, a, b);
1363
+ }
1364
+ }
1365
+
1366
+ /**
1367
+ * @generated from message livekit.proto.SetLocalAttributesCallback
1368
+ */
1369
+ export class SetLocalAttributesCallback extends Message<SetLocalAttributesCallback> {
1370
+ /**
1371
+ * @generated from field: uint64 async_id = 1;
1372
+ */
1373
+ asyncId = protoInt64.zero;
1374
+
1375
+ /**
1376
+ * @generated from field: optional string error = 2;
1377
+ */
1378
+ error?: string;
1379
+
1380
+ constructor(data?: PartialMessage<SetLocalAttributesCallback>) {
1381
+ super();
1382
+ proto3.util.initPartial(data, this);
1383
+ }
1384
+
1385
+ static readonly runtime: typeof proto3 = proto3;
1386
+ static readonly typeName = "livekit.proto.SetLocalAttributesCallback";
1387
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
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 },
1390
+ ]);
1391
+
1392
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesCallback {
1393
+ return new SetLocalAttributesCallback().fromBinary(bytes, options);
1394
+ }
1395
+
1396
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback {
1397
+ return new SetLocalAttributesCallback().fromJson(jsonValue, options);
1398
+ }
1399
+
1400
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback {
1401
+ return new SetLocalAttributesCallback().fromJsonString(jsonString, options);
1402
+ }
1403
+
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,22 @@ 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";
2382
+ } | {
2383
+ /**
2384
+ * @generated from field: livekit.proto.TranscriptionReceived transcription_received = 28;
2385
+ */
2386
+ value: TranscriptionReceived;
2387
+ case: "transcriptionReceived";
1887
2388
  } | { case: undefined; value?: undefined } = { case: undefined };
1888
2389
 
1889
2390
  constructor(data?: PartialMessage<RoomEvent>) {
@@ -1908,16 +2409,19 @@ export class RoomEvent extends Message<RoomEvent> {
1908
2409
  { no: 12, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
1909
2410
  { no: 13, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
1910
2411
  { 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" },
2412
+ { no: 15, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
2413
+ { no: 16, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
2414
+ { no: 17, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
2415
+ { no: 18, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
2416
+ { no: 19, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
2417
+ { no: 20, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
2418
+ { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
2419
+ { no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
2420
+ { no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
2421
+ { no: 25, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
2422
+ { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
2423
+ { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
2424
+ { no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
1921
2425
  ]);
1922
2426
 
1923
2427
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEvent {
@@ -1942,9 +2446,9 @@ export class RoomEvent extends Message<RoomEvent> {
1942
2446
  */
1943
2447
  export class RoomInfo extends Message<RoomInfo> {
1944
2448
  /**
1945
- * @generated from field: string sid = 1;
2449
+ * @generated from field: optional string sid = 1;
1946
2450
  */
1947
- sid = "";
2451
+ sid?: string;
1948
2452
 
1949
2453
  /**
1950
2454
  * @generated from field: string name = 2;
@@ -1964,7 +2468,7 @@ export class RoomInfo extends Message<RoomInfo> {
1964
2468
  static readonly runtime: typeof proto3 = proto3;
1965
2469
  static readonly typeName = "livekit.proto.RoomInfo";
1966
2470
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1967
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2471
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1968
2472
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1969
2473
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1970
2474
  ]);
@@ -2071,9 +2575,9 @@ export class ParticipantConnected extends Message<ParticipantConnected> {
2071
2575
  */
2072
2576
  export class ParticipantDisconnected extends Message<ParticipantDisconnected> {
2073
2577
  /**
2074
- * @generated from field: string participant_sid = 1;
2578
+ * @generated from field: string participant_identity = 1;
2075
2579
  */
2076
- participantSid = "";
2580
+ participantIdentity = "";
2077
2581
 
2078
2582
  constructor(data?: PartialMessage<ParticipantDisconnected>) {
2079
2583
  super();
@@ -2083,7 +2587,7 @@ export class ParticipantDisconnected extends Message<ParticipantDisconnected> {
2083
2587
  static readonly runtime: typeof proto3 = proto3;
2084
2588
  static readonly typeName = "livekit.proto.ParticipantDisconnected";
2085
2589
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2086
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2590
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2087
2591
  ]);
2088
2592
 
2089
2593
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantDisconnected {
@@ -2185,9 +2689,9 @@ export class LocalTrackUnpublished extends Message<LocalTrackUnpublished> {
2185
2689
  */
2186
2690
  export class TrackPublished extends Message<TrackPublished> {
2187
2691
  /**
2188
- * @generated from field: string participant_sid = 1;
2692
+ * @generated from field: string participant_identity = 1;
2189
2693
  */
2190
- participantSid = "";
2694
+ participantIdentity = "";
2191
2695
 
2192
2696
  /**
2193
2697
  * @generated from field: livekit.proto.OwnedTrackPublication publication = 2;
@@ -2202,7 +2706,7 @@ export class TrackPublished extends Message<TrackPublished> {
2202
2706
  static readonly runtime: typeof proto3 = proto3;
2203
2707
  static readonly typeName = "livekit.proto.TrackPublished";
2204
2708
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2205
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2709
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2206
2710
  { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication },
2207
2711
  ]);
2208
2712
 
@@ -2228,9 +2732,9 @@ export class TrackPublished extends Message<TrackPublished> {
2228
2732
  */
2229
2733
  export class TrackUnpublished extends Message<TrackUnpublished> {
2230
2734
  /**
2231
- * @generated from field: string participant_sid = 1;
2735
+ * @generated from field: string participant_identity = 1;
2232
2736
  */
2233
- participantSid = "";
2737
+ participantIdentity = "";
2234
2738
 
2235
2739
  /**
2236
2740
  * @generated from field: string publication_sid = 2;
@@ -2245,7 +2749,7 @@ export class TrackUnpublished extends Message<TrackUnpublished> {
2245
2749
  static readonly runtime: typeof proto3 = proto3;
2246
2750
  static readonly typeName = "livekit.proto.TrackUnpublished";
2247
2751
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2248
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2752
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2249
2753
  { no: 2, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2250
2754
  ]);
2251
2755
 
@@ -2274,9 +2778,9 @@ export class TrackUnpublished extends Message<TrackUnpublished> {
2274
2778
  */
2275
2779
  export class TrackSubscribed extends Message<TrackSubscribed> {
2276
2780
  /**
2277
- * @generated from field: string participant_sid = 1;
2781
+ * @generated from field: string participant_identity = 1;
2278
2782
  */
2279
- participantSid = "";
2783
+ participantIdentity = "";
2280
2784
 
2281
2785
  /**
2282
2786
  * @generated from field: livekit.proto.OwnedTrack track = 2;
@@ -2291,7 +2795,7 @@ export class TrackSubscribed extends Message<TrackSubscribed> {
2291
2795
  static readonly runtime: typeof proto3 = proto3;
2292
2796
  static readonly typeName = "livekit.proto.TrackSubscribed";
2293
2797
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2294
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2798
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2295
2799
  { no: 2, name: "track", kind: "message", T: OwnedTrack },
2296
2800
  ]);
2297
2801
 
@@ -2319,9 +2823,9 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2319
2823
  /**
2320
2824
  * The FFI language can dispose/remove the VideoSink here
2321
2825
  *
2322
- * @generated from field: string participant_sid = 1;
2826
+ * @generated from field: string participant_identity = 1;
2323
2827
  */
2324
- participantSid = "";
2828
+ participantIdentity = "";
2325
2829
 
2326
2830
  /**
2327
2831
  * @generated from field: string track_sid = 2;
@@ -2336,7 +2840,7 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2336
2840
  static readonly runtime: typeof proto3 = proto3;
2337
2841
  static readonly typeName = "livekit.proto.TrackUnsubscribed";
2338
2842
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2339
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2843
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2340
2844
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2341
2845
  ]);
2342
2846
 
@@ -2362,9 +2866,9 @@ export class TrackUnsubscribed extends Message<TrackUnsubscribed> {
2362
2866
  */
2363
2867
  export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2364
2868
  /**
2365
- * @generated from field: string participant_sid = 1;
2869
+ * @generated from field: string participant_identity = 1;
2366
2870
  */
2367
- participantSid = "";
2871
+ participantIdentity = "";
2368
2872
 
2369
2873
  /**
2370
2874
  * @generated from field: string track_sid = 2;
@@ -2384,7 +2888,7 @@ export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2384
2888
  static readonly runtime: typeof proto3 = proto3;
2385
2889
  static readonly typeName = "livekit.proto.TrackSubscriptionFailed";
2386
2890
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2387
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2891
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2388
2892
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2389
2893
  { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2390
2894
  ]);
@@ -2411,9 +2915,9 @@ export class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
2411
2915
  */
2412
2916
  export class TrackMuted extends Message<TrackMuted> {
2413
2917
  /**
2414
- * @generated from field: string participant_sid = 1;
2918
+ * @generated from field: string participant_identity = 1;
2415
2919
  */
2416
- participantSid = "";
2920
+ participantIdentity = "";
2417
2921
 
2418
2922
  /**
2419
2923
  * @generated from field: string track_sid = 2;
@@ -2428,7 +2932,7 @@ export class TrackMuted extends Message<TrackMuted> {
2428
2932
  static readonly runtime: typeof proto3 = proto3;
2429
2933
  static readonly typeName = "livekit.proto.TrackMuted";
2430
2934
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2431
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2935
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2432
2936
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2433
2937
  ]);
2434
2938
 
@@ -2454,9 +2958,9 @@ export class TrackMuted extends Message<TrackMuted> {
2454
2958
  */
2455
2959
  export class TrackUnmuted extends Message<TrackUnmuted> {
2456
2960
  /**
2457
- * @generated from field: string participant_sid = 1;
2961
+ * @generated from field: string participant_identity = 1;
2458
2962
  */
2459
- participantSid = "";
2963
+ participantIdentity = "";
2460
2964
 
2461
2965
  /**
2462
2966
  * @generated from field: string track_sid = 2;
@@ -2471,7 +2975,7 @@ export class TrackUnmuted extends Message<TrackUnmuted> {
2471
2975
  static readonly runtime: typeof proto3 = proto3;
2472
2976
  static readonly typeName = "livekit.proto.TrackUnmuted";
2473
2977
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2474
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2978
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2475
2979
  { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2476
2980
  ]);
2477
2981
 
@@ -2499,9 +3003,9 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2499
3003
  /**
2500
3004
  * Using sid instead of identity for ffi communication
2501
3005
  *
2502
- * @generated from field: string participant_sid = 1;
3006
+ * @generated from field: string participant_identity = 1;
2503
3007
  */
2504
- participantSid = "";
3008
+ participantIdentity = "";
2505
3009
 
2506
3010
  /**
2507
3011
  * @generated from field: livekit.proto.EncryptionState state = 2;
@@ -2516,7 +3020,7 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2516
3020
  static readonly runtime: typeof proto3 = proto3;
2517
3021
  static readonly typeName = "livekit.proto.E2eeStateChanged";
2518
3022
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2519
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3023
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2520
3024
  { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(EncryptionState) },
2521
3025
  ]);
2522
3026
 
@@ -2542,9 +3046,9 @@ export class E2eeStateChanged extends Message<E2eeStateChanged> {
2542
3046
  */
2543
3047
  export class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
2544
3048
  /**
2545
- * @generated from field: repeated string participant_sids = 1;
3049
+ * @generated from field: repeated string participant_identities = 1;
2546
3050
  */
2547
- participantSids: string[] = [];
3051
+ participantIdentities: string[] = [];
2548
3052
 
2549
3053
  constructor(data?: PartialMessage<ActiveSpeakersChanged>) {
2550
3054
  super();
@@ -2554,7 +3058,7 @@ export class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
2554
3058
  static readonly runtime: typeof proto3 = proto3;
2555
3059
  static readonly typeName = "livekit.proto.ActiveSpeakersChanged";
2556
3060
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2557
- { no: 1, name: "participant_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3061
+ { no: 1, name: "participant_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2558
3062
  ]);
2559
3063
 
2560
3064
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakersChanged {
@@ -2611,14 +3115,51 @@ export class RoomMetadataChanged extends Message<RoomMetadataChanged> {
2611
3115
  }
2612
3116
  }
2613
3117
 
3118
+ /**
3119
+ * @generated from message livekit.proto.RoomSidChanged
3120
+ */
3121
+ export class RoomSidChanged extends Message<RoomSidChanged> {
3122
+ /**
3123
+ * @generated from field: string sid = 1;
3124
+ */
3125
+ sid = "";
3126
+
3127
+ constructor(data?: PartialMessage<RoomSidChanged>) {
3128
+ super();
3129
+ proto3.util.initPartial(data, this);
3130
+ }
3131
+
3132
+ static readonly runtime: typeof proto3 = proto3;
3133
+ static readonly typeName = "livekit.proto.RoomSidChanged";
3134
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3135
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3136
+ ]);
3137
+
3138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomSidChanged {
3139
+ return new RoomSidChanged().fromBinary(bytes, options);
3140
+ }
3141
+
3142
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomSidChanged {
3143
+ return new RoomSidChanged().fromJson(jsonValue, options);
3144
+ }
3145
+
3146
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomSidChanged {
3147
+ return new RoomSidChanged().fromJsonString(jsonString, options);
3148
+ }
3149
+
3150
+ static equals(a: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined, b: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined): boolean {
3151
+ return proto3.util.equals(RoomSidChanged, a, b);
3152
+ }
3153
+ }
3154
+
2614
3155
  /**
2615
3156
  * @generated from message livekit.proto.ParticipantMetadataChanged
2616
3157
  */
2617
3158
  export class ParticipantMetadataChanged extends Message<ParticipantMetadataChanged> {
2618
3159
  /**
2619
- * @generated from field: string participant_sid = 1;
3160
+ * @generated from field: string participant_identity = 1;
2620
3161
  */
2621
- participantSid = "";
3162
+ participantIdentity = "";
2622
3163
 
2623
3164
  /**
2624
3165
  * @generated from field: string metadata = 2;
@@ -2633,7 +3174,7 @@ export class ParticipantMetadataChanged extends Message<ParticipantMetadataChang
2633
3174
  static readonly runtime: typeof proto3 = proto3;
2634
3175
  static readonly typeName = "livekit.proto.ParticipantMetadataChanged";
2635
3176
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2636
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3177
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2637
3178
  { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2638
3179
  ]);
2639
3180
 
@@ -2654,14 +3195,63 @@ export class ParticipantMetadataChanged extends Message<ParticipantMetadataChang
2654
3195
  }
2655
3196
  }
2656
3197
 
3198
+ /**
3199
+ * @generated from message livekit.proto.ParticipantAttributesChanged
3200
+ */
3201
+ export class ParticipantAttributesChanged extends Message<ParticipantAttributesChanged> {
3202
+ /**
3203
+ * @generated from field: string participant_identity = 1;
3204
+ */
3205
+ participantIdentity = "";
3206
+
3207
+ /**
3208
+ * @generated from field: map<string, string> attributes = 2;
3209
+ */
3210
+ attributes: { [key: string]: string } = {};
3211
+
3212
+ /**
3213
+ * @generated from field: map<string, string> changed_attributes = 3;
3214
+ */
3215
+ changedAttributes: { [key: string]: string } = {};
3216
+
3217
+ constructor(data?: PartialMessage<ParticipantAttributesChanged>) {
3218
+ super();
3219
+ proto3.util.initPartial(data, this);
3220
+ }
3221
+
3222
+ static readonly runtime: typeof proto3 = proto3;
3223
+ static readonly typeName = "livekit.proto.ParticipantAttributesChanged";
3224
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3225
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3226
+ { no: 2, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3227
+ { no: 3, name: "changed_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3228
+ ]);
3229
+
3230
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantAttributesChanged {
3231
+ return new ParticipantAttributesChanged().fromBinary(bytes, options);
3232
+ }
3233
+
3234
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged {
3235
+ return new ParticipantAttributesChanged().fromJson(jsonValue, options);
3236
+ }
3237
+
3238
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged {
3239
+ return new ParticipantAttributesChanged().fromJsonString(jsonString, options);
3240
+ }
3241
+
3242
+ static equals(a: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined, b: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined): boolean {
3243
+ return proto3.util.equals(ParticipantAttributesChanged, a, b);
3244
+ }
3245
+ }
3246
+
2657
3247
  /**
2658
3248
  * @generated from message livekit.proto.ParticipantNameChanged
2659
3249
  */
2660
3250
  export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2661
3251
  /**
2662
- * @generated from field: string participant_sid = 1;
3252
+ * @generated from field: string participant_identity = 1;
2663
3253
  */
2664
- participantSid = "";
3254
+ participantIdentity = "";
2665
3255
 
2666
3256
  /**
2667
3257
  * @generated from field: string name = 2;
@@ -2676,7 +3266,7 @@ export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2676
3266
  static readonly runtime: typeof proto3 = proto3;
2677
3267
  static readonly typeName = "livekit.proto.ParticipantNameChanged";
2678
3268
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2679
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3269
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2680
3270
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2681
3271
  ]);
2682
3272
 
@@ -2702,9 +3292,9 @@ export class ParticipantNameChanged extends Message<ParticipantNameChanged> {
2702
3292
  */
2703
3293
  export class ConnectionQualityChanged extends Message<ConnectionQualityChanged> {
2704
3294
  /**
2705
- * @generated from field: string participant_sid = 1;
3295
+ * @generated from field: string participant_identity = 1;
2706
3296
  */
2707
- participantSid = "";
3297
+ participantIdentity = "";
2708
3298
 
2709
3299
  /**
2710
3300
  * @generated from field: livekit.proto.ConnectionQuality quality = 2;
@@ -2719,7 +3309,7 @@ export class ConnectionQualityChanged extends Message<ConnectionQualityChanged>
2719
3309
  static readonly runtime: typeof proto3 = proto3;
2720
3310
  static readonly typeName = "livekit.proto.ConnectionQualityChanged";
2721
3311
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2722
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3312
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2723
3313
  { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) },
2724
3314
  ]);
2725
3315
 
@@ -2741,59 +3331,201 @@ export class ConnectionQualityChanged extends Message<ConnectionQualityChanged>
2741
3331
  }
2742
3332
 
2743
3333
  /**
2744
- * @generated from message livekit.proto.DataReceived
3334
+ * @generated from message livekit.proto.UserPacket
2745
3335
  */
2746
- export class DataReceived extends Message<DataReceived> {
3336
+ export class UserPacket extends Message<UserPacket> {
2747
3337
  /**
2748
3338
  * @generated from field: livekit.proto.OwnedBuffer data = 1;
2749
3339
  */
2750
3340
  data?: OwnedBuffer;
2751
3341
 
3342
+ /**
3343
+ * @generated from field: optional string topic = 2;
3344
+ */
3345
+ topic?: string;
3346
+
3347
+ constructor(data?: PartialMessage<UserPacket>) {
3348
+ super();
3349
+ proto3.util.initPartial(data, this);
3350
+ }
3351
+
3352
+ static readonly runtime: typeof proto3 = proto3;
3353
+ static readonly typeName = "livekit.proto.UserPacket";
3354
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3355
+ { no: 1, name: "data", kind: "message", T: OwnedBuffer },
3356
+ { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3357
+ ]);
3358
+
3359
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket {
3360
+ return new UserPacket().fromBinary(bytes, options);
3361
+ }
3362
+
3363
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket {
3364
+ return new UserPacket().fromJson(jsonValue, options);
3365
+ }
3366
+
3367
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket {
3368
+ return new UserPacket().fromJsonString(jsonString, options);
3369
+ }
3370
+
3371
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean {
3372
+ return proto3.util.equals(UserPacket, a, b);
3373
+ }
3374
+ }
3375
+
3376
+ /**
3377
+ * @generated from message livekit.proto.SipDTMF
3378
+ */
3379
+ export class SipDTMF extends Message<SipDTMF> {
3380
+ /**
3381
+ * @generated from field: uint32 code = 1;
3382
+ */
3383
+ code = 0;
3384
+
3385
+ /**
3386
+ * @generated from field: optional string digit = 2;
3387
+ */
3388
+ digit?: string;
3389
+
3390
+ constructor(data?: PartialMessage<SipDTMF>) {
3391
+ super();
3392
+ proto3.util.initPartial(data, this);
3393
+ }
3394
+
3395
+ static readonly runtime: typeof proto3 = proto3;
3396
+ static readonly typeName = "livekit.proto.SipDTMF";
3397
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3398
+ { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
3399
+ { no: 2, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3400
+ ]);
3401
+
3402
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF {
3403
+ return new SipDTMF().fromBinary(bytes, options);
3404
+ }
3405
+
3406
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF {
3407
+ return new SipDTMF().fromJson(jsonValue, options);
3408
+ }
3409
+
3410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF {
3411
+ return new SipDTMF().fromJsonString(jsonString, options);
3412
+ }
3413
+
3414
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean {
3415
+ return proto3.util.equals(SipDTMF, a, b);
3416
+ }
3417
+ }
3418
+
3419
+ /**
3420
+ * @generated from message livekit.proto.DataPacketReceived
3421
+ */
3422
+ export class DataPacketReceived extends Message<DataPacketReceived> {
3423
+ /**
3424
+ * @generated from field: livekit.proto.DataPacketKind kind = 1;
3425
+ */
3426
+ kind = DataPacketKind.KIND_LOSSY;
3427
+
2752
3428
  /**
2753
3429
  * Can be empty if the data is sent a server SDK
2754
3430
  *
2755
- * @generated from field: optional string participant_sid = 2;
3431
+ * @generated from field: string participant_identity = 2;
2756
3432
  */
2757
- participantSid?: string;
3433
+ participantIdentity = "";
2758
3434
 
2759
3435
  /**
2760
- * @generated from field: livekit.proto.DataPacketKind kind = 3;
3436
+ * @generated from oneof livekit.proto.DataPacketReceived.value
2761
3437
  */
2762
- kind = DataPacketKind.KIND_LOSSY;
3438
+ value: {
3439
+ /**
3440
+ * @generated from field: livekit.proto.UserPacket user = 4;
3441
+ */
3442
+ value: UserPacket;
3443
+ case: "user";
3444
+ } | {
3445
+ /**
3446
+ * @generated from field: livekit.proto.SipDTMF sip_dtmf = 5;
3447
+ */
3448
+ value: SipDTMF;
3449
+ case: "sipDtmf";
3450
+ } | { case: undefined; value?: undefined } = { case: undefined };
3451
+
3452
+ constructor(data?: PartialMessage<DataPacketReceived>) {
3453
+ super();
3454
+ proto3.util.initPartial(data, this);
3455
+ }
2763
3456
 
3457
+ static readonly runtime: typeof proto3 = proto3;
3458
+ static readonly typeName = "livekit.proto.DataPacketReceived";
3459
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3460
+ { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacketKind) },
3461
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3462
+ { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" },
3463
+ { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
3464
+ ]);
3465
+
3466
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacketReceived {
3467
+ return new DataPacketReceived().fromBinary(bytes, options);
3468
+ }
3469
+
3470
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacketReceived {
3471
+ return new DataPacketReceived().fromJson(jsonValue, options);
3472
+ }
3473
+
3474
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacketReceived {
3475
+ return new DataPacketReceived().fromJsonString(jsonString, options);
3476
+ }
3477
+
3478
+ static equals(a: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined, b: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined): boolean {
3479
+ return proto3.util.equals(DataPacketReceived, a, b);
3480
+ }
3481
+ }
3482
+
3483
+ /**
3484
+ * @generated from message livekit.proto.TranscriptionReceived
3485
+ */
3486
+ export class TranscriptionReceived extends Message<TranscriptionReceived> {
2764
3487
  /**
2765
- * @generated from field: optional string topic = 4;
3488
+ * @generated from field: optional string participant_identity = 1;
2766
3489
  */
2767
- topic?: string;
3490
+ participantIdentity?: string;
2768
3491
 
2769
- constructor(data?: PartialMessage<DataReceived>) {
3492
+ /**
3493
+ * @generated from field: optional string track_sid = 2;
3494
+ */
3495
+ trackSid?: string;
3496
+
3497
+ /**
3498
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 3;
3499
+ */
3500
+ segments: TranscriptionSegment[] = [];
3501
+
3502
+ constructor(data?: PartialMessage<TranscriptionReceived>) {
2770
3503
  super();
2771
3504
  proto3.util.initPartial(data, this);
2772
3505
  }
2773
3506
 
2774
3507
  static readonly runtime: typeof proto3 = proto3;
2775
- static readonly typeName = "livekit.proto.DataReceived";
3508
+ static readonly typeName = "livekit.proto.TranscriptionReceived";
2776
3509
  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 },
3510
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3511
+ { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3512
+ { no: 3, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true },
2781
3513
  ]);
2782
3514
 
2783
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataReceived {
2784
- return new DataReceived().fromBinary(bytes, options);
3515
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionReceived {
3516
+ return new TranscriptionReceived().fromBinary(bytes, options);
2785
3517
  }
2786
3518
 
2787
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataReceived {
2788
- return new DataReceived().fromJson(jsonValue, options);
3519
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionReceived {
3520
+ return new TranscriptionReceived().fromJson(jsonValue, options);
2789
3521
  }
2790
3522
 
2791
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataReceived {
2792
- return new DataReceived().fromJsonString(jsonString, options);
3523
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionReceived {
3524
+ return new TranscriptionReceived().fromJsonString(jsonString, options);
2793
3525
  }
2794
3526
 
2795
- static equals(a: DataReceived | PlainMessage<DataReceived> | undefined, b: DataReceived | PlainMessage<DataReceived> | undefined): boolean {
2796
- return proto3.util.equals(DataReceived, a, b);
3527
+ static equals(a: TranscriptionReceived | PlainMessage<TranscriptionReceived> | undefined, b: TranscriptionReceived | PlainMessage<TranscriptionReceived> | undefined): boolean {
3528
+ return proto3.util.equals(TranscriptionReceived, a, b);
2797
3529
  }
2798
3530
  }
2799
3531