@livekit/rtc-node 0.10.2 → 0.10.3

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.
@@ -1086,6 +1086,151 @@ SetLocalMetadataCallback.fields = proto3.util.newFieldList(() => [
1086
1086
  { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1087
1087
  { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1088
1088
  ]);
1089
+ /**
1090
+ * @generated from message livekit.proto.SendChatMessageRequest
1091
+ */
1092
+ export class SendChatMessageRequest extends Message {
1093
+ constructor(data) {
1094
+ super();
1095
+ /**
1096
+ * @generated from field: uint64 local_participant_handle = 1;
1097
+ */
1098
+ this.localParticipantHandle = protoInt64.zero;
1099
+ /**
1100
+ * @generated from field: string message = 2;
1101
+ */
1102
+ this.message = "";
1103
+ /**
1104
+ * @generated from field: repeated string destination_identities = 3;
1105
+ */
1106
+ this.destinationIdentities = [];
1107
+ proto3.util.initPartial(data, this);
1108
+ }
1109
+ static fromBinary(bytes, options) {
1110
+ return new SendChatMessageRequest().fromBinary(bytes, options);
1111
+ }
1112
+ static fromJson(jsonValue, options) {
1113
+ return new SendChatMessageRequest().fromJson(jsonValue, options);
1114
+ }
1115
+ static fromJsonString(jsonString, options) {
1116
+ return new SendChatMessageRequest().fromJsonString(jsonString, options);
1117
+ }
1118
+ static equals(a, b) {
1119
+ return proto3.util.equals(SendChatMessageRequest, a, b);
1120
+ }
1121
+ }
1122
+ SendChatMessageRequest.runtime = proto3;
1123
+ SendChatMessageRequest.typeName = "livekit.proto.SendChatMessageRequest";
1124
+ SendChatMessageRequest.fields = proto3.util.newFieldList(() => [
1125
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1126
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1127
+ { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1128
+ { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1129
+ ]);
1130
+ /**
1131
+ * @generated from message livekit.proto.EditChatMessageRequest
1132
+ */
1133
+ export class EditChatMessageRequest extends Message {
1134
+ constructor(data) {
1135
+ super();
1136
+ /**
1137
+ * @generated from field: uint64 local_participant_handle = 1;
1138
+ */
1139
+ this.localParticipantHandle = protoInt64.zero;
1140
+ /**
1141
+ * @generated from field: string edit_text = 2;
1142
+ */
1143
+ this.editText = "";
1144
+ /**
1145
+ * @generated from field: repeated string destination_identities = 4;
1146
+ */
1147
+ this.destinationIdentities = [];
1148
+ proto3.util.initPartial(data, this);
1149
+ }
1150
+ static fromBinary(bytes, options) {
1151
+ return new EditChatMessageRequest().fromBinary(bytes, options);
1152
+ }
1153
+ static fromJson(jsonValue, options) {
1154
+ return new EditChatMessageRequest().fromJson(jsonValue, options);
1155
+ }
1156
+ static fromJsonString(jsonString, options) {
1157
+ return new EditChatMessageRequest().fromJsonString(jsonString, options);
1158
+ }
1159
+ static equals(a, b) {
1160
+ return proto3.util.equals(EditChatMessageRequest, a, b);
1161
+ }
1162
+ }
1163
+ EditChatMessageRequest.runtime = proto3;
1164
+ EditChatMessageRequest.typeName = "livekit.proto.EditChatMessageRequest";
1165
+ EditChatMessageRequest.fields = proto3.util.newFieldList(() => [
1166
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1167
+ { no: 2, name: "edit_text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1168
+ { no: 3, name: "original_message", kind: "message", T: ChatMessage },
1169
+ { no: 4, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1170
+ { no: 5, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1171
+ ]);
1172
+ /**
1173
+ * @generated from message livekit.proto.SendChatMessageResponse
1174
+ */
1175
+ export class SendChatMessageResponse extends Message {
1176
+ constructor(data) {
1177
+ super();
1178
+ /**
1179
+ * @generated from field: uint64 async_id = 1;
1180
+ */
1181
+ this.asyncId = protoInt64.zero;
1182
+ proto3.util.initPartial(data, this);
1183
+ }
1184
+ static fromBinary(bytes, options) {
1185
+ return new SendChatMessageResponse().fromBinary(bytes, options);
1186
+ }
1187
+ static fromJson(jsonValue, options) {
1188
+ return new SendChatMessageResponse().fromJson(jsonValue, options);
1189
+ }
1190
+ static fromJsonString(jsonString, options) {
1191
+ return new SendChatMessageResponse().fromJsonString(jsonString, options);
1192
+ }
1193
+ static equals(a, b) {
1194
+ return proto3.util.equals(SendChatMessageResponse, a, b);
1195
+ }
1196
+ }
1197
+ SendChatMessageResponse.runtime = proto3;
1198
+ SendChatMessageResponse.typeName = "livekit.proto.SendChatMessageResponse";
1199
+ SendChatMessageResponse.fields = proto3.util.newFieldList(() => [
1200
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1201
+ ]);
1202
+ /**
1203
+ * @generated from message livekit.proto.SendChatMessageCallback
1204
+ */
1205
+ export class SendChatMessageCallback extends Message {
1206
+ constructor(data) {
1207
+ super();
1208
+ /**
1209
+ * @generated from field: uint64 async_id = 1;
1210
+ */
1211
+ this.asyncId = protoInt64.zero;
1212
+ proto3.util.initPartial(data, this);
1213
+ }
1214
+ static fromBinary(bytes, options) {
1215
+ return new SendChatMessageCallback().fromBinary(bytes, options);
1216
+ }
1217
+ static fromJson(jsonValue, options) {
1218
+ return new SendChatMessageCallback().fromJson(jsonValue, options);
1219
+ }
1220
+ static fromJsonString(jsonString, options) {
1221
+ return new SendChatMessageCallback().fromJsonString(jsonString, options);
1222
+ }
1223
+ static equals(a, b) {
1224
+ return proto3.util.equals(SendChatMessageCallback, a, b);
1225
+ }
1226
+ }
1227
+ SendChatMessageCallback.runtime = proto3;
1228
+ SendChatMessageCallback.typeName = "livekit.proto.SendChatMessageCallback";
1229
+ SendChatMessageCallback.fields = proto3.util.newFieldList(() => [
1230
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1231
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1232
+ { no: 3, name: "chat_message", kind: "message", T: ChatMessage, opt: true },
1233
+ ]);
1089
1234
  /**
1090
1235
  * Change the local participant's attributes
1091
1236
  *
@@ -1864,6 +2009,7 @@ RoomEvent.fields = proto3.util.newFieldList(() => [
1864
2009
  { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
1865
2010
  { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
1866
2011
  { no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
2012
+ { no: 29, name: "chat_message", kind: "message", T: ChatMessageReceived, oneof: "message" },
1867
2013
  ]);
1868
2014
  /**
1869
2015
  * @generated from message livekit.proto.RoomInfo
@@ -2623,6 +2769,80 @@ UserPacket.fields = proto3.util.newFieldList(() => [
2623
2769
  { no: 1, name: "data", kind: "message", T: OwnedBuffer },
2624
2770
  { no: 2, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2625
2771
  ]);
2772
+ /**
2773
+ * @generated from message livekit.proto.ChatMessage
2774
+ */
2775
+ export class ChatMessage extends Message {
2776
+ constructor(data) {
2777
+ super();
2778
+ /**
2779
+ * @generated from field: string id = 1;
2780
+ */
2781
+ this.id = "";
2782
+ /**
2783
+ * @generated from field: int64 timestamp = 2;
2784
+ */
2785
+ this.timestamp = protoInt64.zero;
2786
+ /**
2787
+ * @generated from field: string message = 3;
2788
+ */
2789
+ this.message = "";
2790
+ proto3.util.initPartial(data, this);
2791
+ }
2792
+ static fromBinary(bytes, options) {
2793
+ return new ChatMessage().fromBinary(bytes, options);
2794
+ }
2795
+ static fromJson(jsonValue, options) {
2796
+ return new ChatMessage().fromJson(jsonValue, options);
2797
+ }
2798
+ static fromJsonString(jsonString, options) {
2799
+ return new ChatMessage().fromJsonString(jsonString, options);
2800
+ }
2801
+ static equals(a, b) {
2802
+ return proto3.util.equals(ChatMessage, a, b);
2803
+ }
2804
+ }
2805
+ ChatMessage.runtime = proto3;
2806
+ ChatMessage.typeName = "livekit.proto.ChatMessage";
2807
+ ChatMessage.fields = proto3.util.newFieldList(() => [
2808
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2809
+ { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2810
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2811
+ { no: 4, name: "edit_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2812
+ { no: 5, name: "deleted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2813
+ { no: 6, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2814
+ ]);
2815
+ /**
2816
+ * @generated from message livekit.proto.ChatMessageReceived
2817
+ */
2818
+ export class ChatMessageReceived extends Message {
2819
+ constructor(data) {
2820
+ super();
2821
+ /**
2822
+ * @generated from field: string participant_identity = 2;
2823
+ */
2824
+ this.participantIdentity = "";
2825
+ proto3.util.initPartial(data, this);
2826
+ }
2827
+ static fromBinary(bytes, options) {
2828
+ return new ChatMessageReceived().fromBinary(bytes, options);
2829
+ }
2830
+ static fromJson(jsonValue, options) {
2831
+ return new ChatMessageReceived().fromJson(jsonValue, options);
2832
+ }
2833
+ static fromJsonString(jsonString, options) {
2834
+ return new ChatMessageReceived().fromJsonString(jsonString, options);
2835
+ }
2836
+ static equals(a, b) {
2837
+ return proto3.util.equals(ChatMessageReceived, a, b);
2838
+ }
2839
+ }
2840
+ ChatMessageReceived.runtime = proto3;
2841
+ ChatMessageReceived.typeName = "livekit.proto.ChatMessageReceived";
2842
+ ChatMessageReceived.fields = proto3.util.newFieldList(() => [
2843
+ { no: 1, name: "message", kind: "message", T: ChatMessage },
2844
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2845
+ ]);
2626
2846
  /**
2627
2847
  * @generated from message livekit.proto.SipDTMF
2628
2848
  */