@livekit/protocol 1.43.2 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.43.2",
3
+ "version": "1.44.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -34,6 +34,9 @@
34
34
  "dependencies": {
35
35
  "@bufbuild/protobuf": "^1.10.0"
36
36
  },
37
+ "repository": {
38
+ "url": "https://github.com/livekit/protocol"
39
+ },
37
40
  "scripts": {
38
41
  "generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto ../../protobufs/agent/livekit_*.proto",
39
42
  "generate:version": "genversion --esm --semi src/gen/version.js",
@@ -219,7 +219,7 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
219
219
  */
220
220
  export declare class AgentDispatchState extends Message<AgentDispatchState> {
221
221
  /**
222
- * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
222
+ * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
223
223
  * For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
224
224
  *
225
225
  * @generated from field: repeated livekit.Job jobs = 1;
@@ -269,6 +269,18 @@ export declare class WorkerMessage extends Message<WorkerMessage> {
269
269
  */
270
270
  value: MigrateJobRequest;
271
271
  case: "migrateJob";
272
+ } | {
273
+ /**
274
+ * @generated from field: livekit.TextMessageResponse text_response = 8;
275
+ */
276
+ value: TextMessageResponse;
277
+ case: "textResponse";
278
+ } | {
279
+ /**
280
+ * @generated from field: livekit.PushTextRequest push_text = 9;
281
+ */
282
+ value: PushTextRequest;
283
+ case: "pushText";
272
284
  } | { case: undefined; value?: undefined };
273
285
 
274
286
  constructor(data?: PartialMessage<WorkerMessage>);
@@ -329,6 +341,12 @@ export declare class ServerMessage extends Message<ServerMessage> {
329
341
  */
330
342
  value: WorkerPong;
331
343
  case: "pong";
344
+ } | {
345
+ /**
346
+ * @generated from field: livekit.TextMessageRequest text_request = 6;
347
+ */
348
+ value: TextMessageRequest;
349
+ case: "textRequest";
332
350
  } | { case: undefined; value?: undefined };
333
351
 
334
352
  constructor(data?: PartialMessage<ServerMessage>);
@@ -766,3 +784,119 @@ export declare class JobTermination extends Message<JobTermination> {
766
784
  static equals(a: JobTermination | PlainMessage<JobTermination> | undefined, b: JobTermination | PlainMessage<JobTermination> | undefined): boolean;
767
785
  }
768
786
 
787
+ /**
788
+ * @generated from message livekit.TextMessageRequest
789
+ */
790
+ export declare class TextMessageRequest extends Message<TextMessageRequest> {
791
+ /**
792
+ * @generated from field: string message_id = 1;
793
+ */
794
+ messageId: string;
795
+
796
+ /**
797
+ * @generated from field: string session_id = 2;
798
+ */
799
+ sessionId: string;
800
+
801
+ /**
802
+ * @generated from field: string agent_name = 3;
803
+ */
804
+ agentName: string;
805
+
806
+ /**
807
+ * @generated from field: string metadata = 4;
808
+ */
809
+ metadata: string;
810
+
811
+ /**
812
+ * @generated from field: bytes session_data = 5;
813
+ */
814
+ sessionData: Uint8Array;
815
+
816
+ /**
817
+ * @generated from field: string text = 6;
818
+ */
819
+ text: string;
820
+
821
+ constructor(data?: PartialMessage<TextMessageRequest>);
822
+
823
+ static readonly runtime: typeof proto3;
824
+ static readonly typeName = "livekit.TextMessageRequest";
825
+ static readonly fields: FieldList;
826
+
827
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageRequest;
828
+
829
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageRequest;
830
+
831
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageRequest;
832
+
833
+ static equals(a: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined, b: TextMessageRequest | PlainMessage<TextMessageRequest> | undefined): boolean;
834
+ }
835
+
836
+ /**
837
+ * @generated from message livekit.PushTextRequest
838
+ */
839
+ export declare class PushTextRequest extends Message<PushTextRequest> {
840
+ /**
841
+ * The message_id of the TextMessageRequest that this push is for
842
+ *
843
+ * @generated from field: string message_id = 1;
844
+ */
845
+ messageId: string;
846
+
847
+ /**
848
+ * @generated from field: string content = 2;
849
+ */
850
+ content: string;
851
+
852
+ constructor(data?: PartialMessage<PushTextRequest>);
853
+
854
+ static readonly runtime: typeof proto3;
855
+ static readonly typeName = "livekit.PushTextRequest";
856
+ static readonly fields: FieldList;
857
+
858
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushTextRequest;
859
+
860
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushTextRequest;
861
+
862
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushTextRequest;
863
+
864
+ static equals(a: PushTextRequest | PlainMessage<PushTextRequest> | undefined, b: PushTextRequest | PlainMessage<PushTextRequest> | undefined): boolean;
865
+ }
866
+
867
+ /**
868
+ * @generated from message livekit.TextMessageResponse
869
+ */
870
+ export declare class TextMessageResponse extends Message<TextMessageResponse> {
871
+ /**
872
+ * Indicate the request is completed
873
+ *
874
+ * @generated from field: string message_id = 1;
875
+ */
876
+ messageId: string;
877
+
878
+ /**
879
+ * @generated from field: bytes session_data = 2;
880
+ */
881
+ sessionData: Uint8Array;
882
+
883
+ /**
884
+ * @generated from field: string error = 3;
885
+ */
886
+ error: string;
887
+
888
+ constructor(data?: PartialMessage<TextMessageResponse>);
889
+
890
+ static readonly runtime: typeof proto3;
891
+ static readonly typeName = "livekit.TextMessageResponse";
892
+ static readonly fields: FieldList;
893
+
894
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextMessageResponse;
895
+
896
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextMessageResponse;
897
+
898
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextMessageResponse;
899
+
900
+ static equals(a: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined, b: TextMessageResponse | PlainMessage<TextMessageResponse> | undefined): boolean;
901
+ }
902
+
@@ -107,6 +107,8 @@ export const WorkerMessage = /*@__PURE__*/ proto3.makeMessageType(
107
107
  { no: 5, name: "ping", kind: "message", T: WorkerPing, oneof: "message" },
108
108
  { no: 6, name: "simulate_job", kind: "message", T: SimulateJobRequest, oneof: "message" },
109
109
  { no: 7, name: "migrate_job", kind: "message", T: MigrateJobRequest, oneof: "message" },
110
+ { no: 8, name: "text_response", kind: "message", T: TextMessageResponse, oneof: "message" },
111
+ { no: 9, name: "push_text", kind: "message", T: PushTextRequest, oneof: "message" },
110
112
  ],
111
113
  );
112
114
 
@@ -123,6 +125,7 @@ export const ServerMessage = /*@__PURE__*/ proto3.makeMessageType(
123
125
  { no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" },
124
126
  { no: 5, name: "termination", kind: "message", T: JobTermination, oneof: "message" },
125
127
  { no: 4, name: "pong", kind: "message", T: WorkerPong, oneof: "message" },
128
+ { no: 6, name: "text_request", kind: "message", T: TextMessageRequest, oneof: "message" },
126
129
  ],
127
130
  );
128
131
 
@@ -269,3 +272,41 @@ export const JobTermination = /*@__PURE__*/ proto3.makeMessageType(
269
272
  ],
270
273
  );
271
274
 
275
+ /**
276
+ * @generated from message livekit.TextMessageRequest
277
+ */
278
+ export const TextMessageRequest = /*@__PURE__*/ proto3.makeMessageType(
279
+ "livekit.TextMessageRequest",
280
+ () => [
281
+ { no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
282
+ { no: 2, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
+ { no: 3, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
285
+ { no: 5, name: "session_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
286
+ { no: 6, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
287
+ ],
288
+ );
289
+
290
+ /**
291
+ * @generated from message livekit.PushTextRequest
292
+ */
293
+ export const PushTextRequest = /*@__PURE__*/ proto3.makeMessageType(
294
+ "livekit.PushTextRequest",
295
+ () => [
296
+ { no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
+ { no: 2, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
298
+ ],
299
+ );
300
+
301
+ /**
302
+ * @generated from message livekit.TextMessageResponse
303
+ */
304
+ export const TextMessageResponse = /*@__PURE__*/ proto3.makeMessageType(
305
+ "livekit.TextMessageResponse",
306
+ () => [
307
+ { no: 1, name: "message_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
308
+ { no: 2, name: "session_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
309
+ { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
310
+ ],
311
+ );
312
+
@@ -1044,12 +1044,19 @@ export declare class FeatureUsageInfo extends Message<FeatureUsageInfo> {
1044
1044
  /**
1045
1045
  * time ranges during which the feature was enabled.
1046
1046
  * for e. g., noise cancellation may not be applied when a media track is paused/muted,
1047
- * this allows reporting only periods during which a feature is avtive.
1047
+ * this allows reporting only periods during which a feature is active.
1048
1048
  *
1049
1049
  * @generated from field: repeated livekit.TimeRange time_ranges = 8;
1050
1050
  */
1051
1051
  timeRanges: TimeRange[];
1052
1052
 
1053
+ /**
1054
+ * Feature specific metadata included in the report
1055
+ *
1056
+ * @generated from field: map<string, string> feature_info = 9;
1057
+ */
1058
+ featureInfo: { [key: string]: string };
1059
+
1053
1060
  constructor(data?: PartialMessage<FeatureUsageInfo>);
1054
1061
 
1055
1062
  static readonly runtime: typeof proto3;
@@ -1078,6 +1085,11 @@ export declare enum FeatureUsageInfo_Feature {
1078
1085
  * @generated from enum value: KRISP_BACKGROUND_VOICE_CANCELLATION = 1;
1079
1086
  */
1080
1087
  KRISP_BACKGROUND_VOICE_CANCELLATION = 1,
1088
+
1089
+ /**
1090
+ * @generated from enum value: AIC_AUDIO_ENHANCEMENT = 2;
1091
+ */
1092
+ AIC_AUDIO_ENHANCEMENT = 2,
1081
1093
  }
1082
1094
 
1083
1095
  /**
@@ -309,6 +309,7 @@ export const FeatureUsageInfo = /*@__PURE__*/ proto3.makeMessageType(
309
309
  { no: 6, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
310
310
  { no: 7, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
311
311
  { no: 8, name: "time_ranges", kind: "message", T: TimeRange, repeated: true },
312
+ { no: 9, name: "feature_info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
312
313
  ],
313
314
  );
314
315
 
@@ -320,6 +321,7 @@ export const FeatureUsageInfo_Feature = /*@__PURE__*/ proto3.makeEnum(
320
321
  [
321
322
  {no: 0, name: "KRISP_NOISE_CANCELLATION"},
322
323
  {no: 1, name: "KRISP_BACKGROUND_VOICE_CANCELLATION"},
324
+ {no: 2, name: "AIC_AUDIO_ENHANCEMENT"},
323
325
  ],
324
326
  );
325
327
 
@@ -40,6 +40,65 @@ export declare enum AgentSecretKind {
40
40
  FILE = 2,
41
41
  }
42
42
 
43
+ /**
44
+ * @generated from enum livekit.AgentEventType
45
+ */
46
+ export declare enum AgentEventType {
47
+ /**
48
+ * @generated from enum value: AGENT_EVENT_TYPE_UNKNOWN = 0;
49
+ */
50
+ UNKNOWN = 0,
51
+
52
+ /**
53
+ * @generated from enum value: AGENT_EVENT_TYPE_APPLICATION_CRASHED = 1;
54
+ */
55
+ APPLICATION_CRASHED = 1,
56
+
57
+ /**
58
+ * @generated from enum value: AGENT_EVENT_TYPE_RESTARTED_HIGH_DISK_USAGE = 2;
59
+ */
60
+ RESTARTED_HIGH_DISK_USAGE = 2,
61
+
62
+ /**
63
+ * @generated from enum value: AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE = 3;
64
+ */
65
+ RESTARTED_HIGH_MEMORY_USAGE = 3,
66
+ }
67
+
68
+ /**
69
+ * @generated from message livekit.AgentEvent
70
+ */
71
+ export declare class AgentEvent extends Message<AgentEvent> {
72
+ /**
73
+ * @generated from field: livekit.AgentEventType type = 1;
74
+ */
75
+ type: AgentEventType;
76
+
77
+ /**
78
+ * @generated from field: int32 count = 2;
79
+ */
80
+ count: number;
81
+
82
+ /**
83
+ * @generated from field: google.protobuf.Timestamp timestamp = 3;
84
+ */
85
+ timestamp?: Timestamp;
86
+
87
+ constructor(data?: PartialMessage<AgentEvent>);
88
+
89
+ static readonly runtime: typeof proto3;
90
+ static readonly typeName = "livekit.AgentEvent";
91
+ static readonly fields: FieldList;
92
+
93
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentEvent;
94
+
95
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentEvent;
96
+
97
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentEvent;
98
+
99
+ static equals(a: AgentEvent | PlainMessage<AgentEvent> | undefined, b: AgentEvent | PlainMessage<AgentEvent> | undefined): boolean;
100
+ }
101
+
43
102
  /**
44
103
  * @generated from message livekit.AgentSecret
45
104
  */
@@ -294,6 +353,11 @@ export declare class AgentDeployment extends Message<AgentDeployment> {
294
353
  */
295
354
  serverRegion: string;
296
355
 
356
+ /**
357
+ * @generated from field: repeated livekit.AgentEvent events = 14;
358
+ */
359
+ events: AgentEvent[];
360
+
297
361
  constructor(data?: PartialMessage<AgentDeployment>);
298
362
 
299
363
  static readonly runtime: typeof proto3;
@@ -31,6 +31,31 @@ export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
31
31
  ],
32
32
  );
33
33
 
34
+ /**
35
+ * @generated from enum livekit.AgentEventType
36
+ */
37
+ export const AgentEventType = /*@__PURE__*/ proto3.makeEnum(
38
+ "livekit.AgentEventType",
39
+ [
40
+ {no: 0, name: "AGENT_EVENT_TYPE_UNKNOWN", localName: "UNKNOWN"},
41
+ {no: 1, name: "AGENT_EVENT_TYPE_APPLICATION_CRASHED", localName: "APPLICATION_CRASHED"},
42
+ {no: 2, name: "AGENT_EVENT_TYPE_RESTARTED_HIGH_DISK_USAGE", localName: "RESTARTED_HIGH_DISK_USAGE"},
43
+ {no: 3, name: "AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE", localName: "RESTARTED_HIGH_MEMORY_USAGE"},
44
+ ],
45
+ );
46
+
47
+ /**
48
+ * @generated from message livekit.AgentEvent
49
+ */
50
+ export const AgentEvent = /*@__PURE__*/ proto3.makeMessageType(
51
+ "livekit.AgentEvent",
52
+ () => [
53
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AgentEventType) },
54
+ { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
55
+ { no: 3, name: "timestamp", kind: "message", T: Timestamp },
56
+ ],
57
+ );
58
+
34
59
  /**
35
60
  * @generated from message livekit.AgentSecret
36
61
  */
@@ -107,6 +132,7 @@ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
107
132
  { no: 11, name: "mem_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
108
133
  { no: 12, name: "cpu_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
134
  { no: 13, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
135
+ { no: 14, name: "events", kind: "message", T: AgentEvent, repeated: true },
110
136
  ],
111
137
  );
112
138
 
@@ -48,6 +48,7 @@ export declare class ConnectTwilioCallRequest extends Message<ConnectTwilioCallR
48
48
 
49
49
  /**
50
50
  * Optional identity of the participant in LiveKit room
51
+ * This is used for logging purposes, so it is advised to not put PII in this field.
51
52
  *
52
53
  * @generated from field: string participant_identity = 4;
53
54
  */
@@ -42,7 +42,7 @@ export declare enum WhatsAppCallDirection {
42
42
  */
43
43
  export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallRequest> {
44
44
  /**
45
- * Required - The number of the business that is initiating the call
45
+ * Required - The phone number id of the business that is initiating the call
46
46
  *
47
47
  * @generated from field: string whatsapp_phone_number_id = 1;
48
48
  */
@@ -92,6 +92,7 @@ export declare class DialWhatsAppCallRequest extends Message<DialWhatsAppCallReq
92
92
 
93
93
  /**
94
94
  * Optional - Identity of the participant in LiveKit room
95
+ * This is used for logging purposes, so it is advised to not put PII in this field.
95
96
  *
96
97
  * @generated from field: string participant_identity = 7;
97
98
  */
@@ -187,12 +188,21 @@ export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWha
187
188
  whatsappCallId: string;
188
189
 
189
190
  /**
190
- * Required - The API key of the business that is disconnecting the call
191
+ * The API key of the whatsapp business.
192
+ * Required if the DisconnectReason is BUSINESS_INITIATED.
193
+ * Optional for USER_INITIATED as no API call to WhatsApp is needed.
191
194
  *
192
195
  * @generated from field: string whatsapp_api_key = 2;
193
196
  */
194
197
  whatsappApiKey: string;
195
198
 
199
+ /**
200
+ * The reason for disconnecting the call
201
+ *
202
+ * @generated from field: livekit.DisconnectWhatsAppCallRequest.DisconnectReason disconnect_reason = 3;
203
+ */
204
+ disconnectReason: DisconnectWhatsAppCallRequest_DisconnectReason;
205
+
196
206
  constructor(data?: PartialMessage<DisconnectWhatsAppCallRequest>);
197
207
 
198
208
  static readonly runtime: typeof proto3;
@@ -208,6 +218,29 @@ export declare class DisconnectWhatsAppCallRequest extends Message<DisconnectWha
208
218
  static equals(a: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined, b: DisconnectWhatsAppCallRequest | PlainMessage<DisconnectWhatsAppCallRequest> | undefined): boolean;
209
219
  }
210
220
 
221
+ /**
222
+ * @generated from enum livekit.DisconnectWhatsAppCallRequest.DisconnectReason
223
+ */
224
+ export declare enum DisconnectWhatsAppCallRequest_DisconnectReason {
225
+ /**
226
+ * The call is being disconnected by the business
227
+ *
228
+ * @generated from enum value: BUSINESS_INITIATED = 0;
229
+ */
230
+ BUSINESS_INITIATED = 0,
231
+
232
+ /**
233
+ * The call is disconnected by the user.
234
+ * This can be tracked as part of call terminate webhook
235
+ * https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/user-initiated-calls#call-terminate-webhook
236
+ * Note that this webhook will also be sent when the call is disconnected by the business.
237
+ * Calling the API twice in such cases will result in an error.
238
+ *
239
+ * @generated from enum value: USER_INITIATED = 1;
240
+ */
241
+ USER_INITIATED = 1,
242
+ }
243
+
211
244
  /**
212
245
  * @generated from message livekit.DisconnectWhatsAppCallResponse
213
246
  */
@@ -285,7 +318,7 @@ export declare class ConnectWhatsAppCallResponse extends Message<ConnectWhatsApp
285
318
  */
286
319
  export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCallRequest> {
287
320
  /**
288
- * Required - The number of the business that is conencting the call
321
+ * Required - The phone number id of the business that is conencting the call
289
322
  *
290
323
  * @generated from field: string whatsapp_phone_number_id = 1;
291
324
  */
@@ -343,6 +376,7 @@ export declare class AcceptWhatsAppCallRequest extends Message<AcceptWhatsAppCal
343
376
 
344
377
  /**
345
378
  * Optional - Identity of the participant in LiveKit room
379
+ * This is used for logging purposes, so it is advised to not put PII in this field.
346
380
  *
347
381
  * @generated from field: string participant_identity = 8;
348
382
  */
@@ -72,6 +72,18 @@ export const DisconnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageTyp
72
72
  () => [
73
73
  { no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
74
  { no: 2, name: "whatsapp_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
75
+ { no: 3, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectWhatsAppCallRequest_DisconnectReason) },
76
+ ],
77
+ );
78
+
79
+ /**
80
+ * @generated from enum livekit.DisconnectWhatsAppCallRequest.DisconnectReason
81
+ */
82
+ export const DisconnectWhatsAppCallRequest_DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
83
+ "livekit.DisconnectWhatsAppCallRequest.DisconnectReason",
84
+ [
85
+ {no: 0, name: "BUSINESS_INITIATED"},
86
+ {no: 1, name: "USER_INITIATED"},
75
87
  ],
76
88
  );
77
89
 
@@ -226,6 +226,11 @@ export declare class NodeStats extends Message<NodeStats> {
226
226
  */
227
227
  trackPublishSuccessPerSec: number;
228
228
 
229
+ /**
230
+ * @generated from field: int32 num_track_publish_cancels = 51;
231
+ */
232
+ numTrackPublishCancels: number;
233
+
229
234
  /**
230
235
  * @generated from field: int32 num_track_subscribe_attempts = 40;
231
236
  */
@@ -248,6 +253,11 @@ export declare class NodeStats extends Message<NodeStats> {
248
253
  */
249
254
  trackSubscribeSuccessPerSec: number;
250
255
 
256
+ /**
257
+ * @generated from field: int32 num_track_subscribe_cancels = 52;
258
+ */
259
+ numTrackSubscribeCancels: number;
260
+
251
261
  /**
252
262
  * packet
253
263
  *
@@ -434,6 +444,11 @@ export declare class NodeStats extends Message<NodeStats> {
434
444
  */
435
445
  participantRtcInitPerSec: number;
436
446
 
447
+ /**
448
+ * @generated from field: uint64 participant_rtc_canceled = 53;
449
+ */
450
+ participantRtcCanceled: bigint;
451
+
437
452
  /**
438
453
  * forward metrics
439
454
  *
@@ -497,6 +512,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
497
512
  */
498
513
  trackPublishSuccess: number;
499
514
 
515
+ /**
516
+ * @generated from field: float track_publish_cancels = 24;
517
+ */
518
+ trackPublishCancels: number;
519
+
500
520
  /**
501
521
  * @generated from field: float track_subscribe_attempts = 6;
502
522
  */
@@ -507,6 +527,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
507
527
  */
508
528
  trackSubscribeSuccess: number;
509
529
 
530
+ /**
531
+ * @generated from field: float track_subscribe_cancels = 25;
532
+ */
533
+ trackSubscribeCancels: number;
534
+
510
535
  /**
511
536
  * @generated from field: float bytes_in = 8;
512
537
  */
@@ -567,6 +592,11 @@ export declare class NodeStatsRate extends Message<NodeStatsRate> {
567
592
  */
568
593
  participantRtcInit: number;
569
594
 
595
+ /**
596
+ * @generated from field: float participant_rtc_canceled = 26;
597
+ */
598
+ participantRtcCanceled: number;
599
+
570
600
  /**
571
601
  * time weighted averages across stats windows forming part of a rate measurement interval
572
602
  *
@@ -635,6 +665,11 @@ export declare class StartSession extends Message<StartSession> {
635
665
  */
636
666
  autoSubscribe: boolean;
637
667
 
668
+ /**
669
+ * @generated from field: optional bool auto_subscribe_data_track = 25;
670
+ */
671
+ autoSubscribeDataTrack?: boolean;
672
+
638
673
  /**
639
674
  * @generated from field: bool hidden = 10 [deprecated = true];
640
675
  * @deprecated
@@ -97,10 +97,12 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
97
97
  { no: 37, name: "track_publish_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
98
98
  { no: 38, name: "num_track_publish_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
99
99
  { no: 39, name: "track_publish_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
100
+ { no: 51, name: "num_track_publish_cancels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
100
101
  { no: 40, name: "num_track_subscribe_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
101
102
  { no: 41, name: "track_subscribe_attempts_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
102
103
  { no: 42, name: "num_track_subscribe_success", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
103
104
  { no: 43, name: "track_subscribe_success_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
105
+ { no: 52, name: "num_track_subscribe_cancels", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
104
106
  { no: 7, name: "bytes_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
105
107
  { no: 8, name: "bytes_out", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
106
108
  { no: 9, name: "packets_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -134,6 +136,7 @@ export const NodeStats = /*@__PURE__*/ proto3.makeMessageType(
134
136
  { no: 45, name: "participant_rtc_connected_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
135
137
  { no: 46, name: "participant_rtc_init", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
136
138
  { no: 47, name: "participant_rtc_init_per_sec", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
139
+ { no: 53, name: "participant_rtc_canceled", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
137
140
  { no: 48, name: "forward_latency", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
138
141
  { no: 49, name: "forward_jitter", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
139
142
  { no: 50, name: "rates", kind: "message", T: NodeStatsRate, repeated: true },
@@ -153,8 +156,10 @@ export const NodeStatsRate = /*@__PURE__*/ proto3.makeMessageType(
153
156
  { no: 3, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
154
157
  { no: 4, name: "track_publish_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
155
158
  { no: 5, name: "track_publish_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
159
+ { no: 24, name: "track_publish_cancels", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
156
160
  { no: 6, name: "track_subscribe_attempts", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
157
161
  { no: 7, name: "track_subscribe_success", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
162
+ { no: 25, name: "track_subscribe_cancels", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
158
163
  { no: 8, name: "bytes_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
159
164
  { no: 9, name: "bytes_out", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
160
165
  { no: 10, name: "packets_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
@@ -167,6 +172,7 @@ export const NodeStatsRate = /*@__PURE__*/ proto3.makeMessageType(
167
172
  { no: 17, name: "participant_signal_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
168
173
  { no: 18, name: "participant_rtc_connected", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
169
174
  { no: 19, name: "participant_rtc_init", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
175
+ { no: 26, name: "participant_rtc_canceled", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
170
176
  { no: 20, name: "cpu_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
171
177
  { no: 21, name: "memory_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
172
178
  { no: 22, name: "memory_used", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
@@ -185,6 +191,7 @@ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
185
191
  { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
192
  { no: 4, name: "reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
187
193
  { no: 9, name: "auto_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
194
+ { no: 25, name: "auto_subscribe_data_track", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
188
195
  { no: 10, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
189
196
  { no: 11, name: "client", kind: "message", T: ClientInfo },
190
197
  { no: 12, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
@@ -395,6 +395,11 @@ export declare class MetricsRecordingHeader extends Message<MetricsRecordingHead
395
395
  */
396
396
  startTime?: Timestamp;
397
397
 
398
+ /**
399
+ * @generated from field: map<string, string> room_tags = 5;
400
+ */
401
+ roomTags: { [key: string]: string };
402
+
398
403
  constructor(data?: PartialMessage<MetricsRecordingHeader>);
399
404
 
400
405
  static readonly runtime: typeof proto3;
@@ -104,6 +104,7 @@ export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
104
104
  { no: 1, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
105
105
  { no: 3, name: "duration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
106
106
  { no: 4, name: "start_time", kind: "message", T: Timestamp },
107
+ { no: 5, name: "room_tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
107
108
  ],
108
109
  );
109
110