@livekit/protocol 1.20.1 → 1.22.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.20.1",
3
+ "version": "1.22.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -22,11 +22,11 @@
22
22
  "author": "LiveKit",
23
23
  "license": "Apache-2.0",
24
24
  "devDependencies": {
25
- "@bufbuild/protoc-gen-es": "^1.7.2",
25
+ "@bufbuild/protoc-gen-es": "^1.10.0",
26
26
  "genversion": "^3.2.0"
27
27
  },
28
28
  "dependencies": {
29
- "@bufbuild/protobuf": "^1.7.2"
29
+ "@bufbuild/protobuf": "^1.10.0"
30
30
  },
31
31
  "scripts": {
32
32
  "generate:version": "genversion --esm --semi src/gen/version.js",
@@ -311,6 +311,11 @@ export declare class AnalyticsStream extends Message<AnalyticsStream> {
311
311
  */
312
312
  endTime?: Timestamp;
313
313
 
314
+ /**
315
+ * @generated from field: uint32 packets_out_of_order = 19;
316
+ */
317
+ packetsOutOfOrder: number;
318
+
314
319
  constructor(data?: PartialMessage<AnalyticsStream>);
315
320
 
316
321
  static readonly runtime: typeof proto3;
@@ -106,6 +106,7 @@ export const AnalyticsStream = /*@__PURE__*/ proto3.makeMessageType(
106
106
  { no: 15, name: "video_layers", kind: "message", T: AnalyticsVideoLayer, repeated: true },
107
107
  { no: 17, name: "start_time", kind: "message", T: Timestamp },
108
108
  { no: 18, name: "end_time", kind: "message", T: Timestamp },
109
+ { no: 19, name: "packets_out_of_order", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
109
110
  ],
110
111
  );
111
112
 
@@ -3,11 +3,11 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
10
- * index from [0; 512] are for predefined labels (`MetricLabel`)
10
+ * index from [0: MAX_LABEL_PREDEFINED_MAX_VALUE) are for predefined labels (`MetricLabel`)
11
11
  *
12
12
  * @generated from enum livekit.MetricLabel
13
13
  */
@@ -34,32 +34,44 @@ export declare enum MetricLabel {
34
34
  AGENTS_TTS_TTFB = 2,
35
35
 
36
36
  /**
37
- * @generated from enum value: METRIC_LABEL_MAX_VALUE = 512;
37
+ * @generated from enum value: METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096;
38
38
  */
39
- METRIC_LABEL_MAX_VALUE = 512,
39
+ METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096,
40
40
  }
41
41
 
42
42
  /**
43
43
  * @generated from message livekit.MetricsBatch
44
44
  */
45
45
  export declare class MetricsBatch extends Message<MetricsBatch> {
46
+ /**
47
+ * time at which this batch is sent based on a monotonic clock (millisecond resolution)
48
+ *
49
+ * @generated from field: int64 timestamp_ms = 1;
50
+ */
51
+ timestampMs: bigint;
52
+
53
+ /**
54
+ * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
55
+ */
56
+ normalizedTimestamp?: Timestamp;
57
+
46
58
  /**
47
59
  * To avoid repeating string values, we store them in a separate list and reference them by index
48
60
  * This is useful for storing participant identities, track names, etc.
49
61
  * There is also a predefined list of labels that can be used to reference common metrics.
50
- * They have reserved indices from 0 to 512
62
+ * They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1)
51
63
  *
52
- * @generated from field: repeated string str_data = 1;
64
+ * @generated from field: repeated string str_data = 3;
53
65
  */
54
66
  strData: string[];
55
67
 
56
68
  /**
57
- * @generated from field: repeated livekit.TimeSeriesMetric time_series = 2;
69
+ * @generated from field: repeated livekit.TimeSeriesMetric time_series = 4;
58
70
  */
59
71
  timeSeries: TimeSeriesMetric[];
60
72
 
61
73
  /**
62
- * @generated from field: repeated livekit.EventMetric events = 3;
74
+ * @generated from field: repeated livekit.EventMetric events = 5;
63
75
  */
64
76
  events: EventMetric[];
65
77
 
@@ -91,31 +103,21 @@ export declare class TimeSeriesMetric extends Message<TimeSeriesMetric> {
91
103
  label: number;
92
104
 
93
105
  /**
106
+ * index into `str_data`
107
+ *
94
108
  * @generated from field: uint32 participant_identity = 2;
95
109
  */
96
110
  participantIdentity: number;
97
111
 
98
112
  /**
113
+ * index into `str_data`
114
+ *
99
115
  * @generated from field: uint32 track_sid = 3;
100
116
  */
101
117
  trackSid: number;
102
118
 
103
119
  /**
104
- * samples
105
- *
106
- * @generated from field: int64 start_timestamp = 4;
107
- */
108
- startTimestamp: bigint;
109
-
110
- /**
111
- * @generated from field: int64 end_timestamp = 5;
112
- */
113
- endTimestamp: bigint;
114
-
115
- /**
116
- * list of samples between start_timestamp and end_timestamp
117
- *
118
- * @generated from field: repeated livekit.MetricSample samples = 6;
120
+ * @generated from field: repeated livekit.MetricSample samples = 4;
119
121
  */
120
122
  samples: MetricSample[];
121
123
 
@@ -139,12 +141,19 @@ export declare class TimeSeriesMetric extends Message<TimeSeriesMetric> {
139
141
  */
140
142
  export declare class MetricSample extends Message<MetricSample> {
141
143
  /**
142
- * @generated from field: int64 timestamp = 1;
144
+ * time of metric based on a monotonic clock (in milliseconds)
145
+ *
146
+ * @generated from field: int64 timestamp_ms = 1;
147
+ */
148
+ timestampMs: bigint;
149
+
150
+ /**
151
+ * @generated from field: google.protobuf.Timestamp normalized_timestamp = 2;
143
152
  */
144
- timestamp: bigint;
153
+ normalizedTimestamp?: Timestamp;
145
154
 
146
155
  /**
147
- * @generated from field: float value = 2;
156
+ * @generated from field: float value = 3;
148
157
  */
149
158
  value: number;
150
159
 
@@ -173,29 +182,45 @@ export declare class EventMetric extends Message<EventMetric> {
173
182
  label: number;
174
183
 
175
184
  /**
185
+ * index into `str_data`
186
+ *
176
187
  * @generated from field: uint32 participant_identity = 2;
177
188
  */
178
189
  participantIdentity: number;
179
190
 
180
191
  /**
181
- * 0 =
192
+ * index into `str_data`
182
193
  *
183
194
  * @generated from field: uint32 track_sid = 3;
184
195
  */
185
196
  trackSid: number;
186
197
 
187
198
  /**
188
- * @generated from field: int64 start_timestamp = 4;
199
+ * start time of event based on a monotonic clock (in milliseconds)
200
+ *
201
+ * @generated from field: int64 start_timestamp_ms = 4;
202
+ */
203
+ startTimestampMs: bigint;
204
+
205
+ /**
206
+ * end time of event based on a monotonic clock (in milliseconds), if needed
207
+ *
208
+ * @generated from field: optional int64 end_timestamp_ms = 5;
209
+ */
210
+ endTimestampMs?: bigint;
211
+
212
+ /**
213
+ * @generated from field: google.protobuf.Timestamp normalized_start_timestamp = 6;
189
214
  */
190
- startTimestamp: bigint;
215
+ normalizedStartTimestamp?: Timestamp;
191
216
 
192
217
  /**
193
- * @generated from field: optional int64 end_timestamp = 5;
218
+ * @generated from field: optional google.protobuf.Timestamp normalized_end_timestamp = 7;
194
219
  */
195
- endTimestamp?: bigint;
220
+ normalizedEndTimestamp?: Timestamp;
196
221
 
197
222
  /**
198
- * @generated from field: string metadata = 6;
223
+ * @generated from field: string metadata = 8;
199
224
  */
200
225
  metadata: string;
201
226
 
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { proto3 } from "@bufbuild/protobuf";
6
+ import { proto3, Timestamp } from "@bufbuild/protobuf";
7
7
 
8
8
  /**
9
- * index from [0; 512] are for predefined labels (`MetricLabel`)
9
+ * index from [0: MAX_LABEL_PREDEFINED_MAX_VALUE) are for predefined labels (`MetricLabel`)
10
10
  *
11
11
  * @generated from enum livekit.MetricLabel
12
12
  */
@@ -16,7 +16,7 @@ export const MetricLabel = /*@__PURE__*/ proto3.makeEnum(
16
16
  {no: 0, name: "AGENTS_LLM_TTFT"},
17
17
  {no: 1, name: "AGENTS_STT_TTFT"},
18
18
  {no: 2, name: "AGENTS_TTS_TTFB"},
19
- {no: 512, name: "METRIC_LABEL_MAX_VALUE"},
19
+ {no: 4096, name: "METRIC_LABEL_PREDEFINED_MAX_VALUE"},
20
20
  ],
21
21
  );
22
22
 
@@ -26,9 +26,11 @@ export const MetricLabel = /*@__PURE__*/ proto3.makeEnum(
26
26
  export const MetricsBatch = /*@__PURE__*/ proto3.makeMessageType(
27
27
  "livekit.MetricsBatch",
28
28
  () => [
29
- { no: 1, name: "str_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
30
- { no: 2, name: "time_series", kind: "message", T: TimeSeriesMetric, repeated: true },
31
- { no: 3, name: "events", kind: "message", T: EventMetric, repeated: true },
29
+ { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
30
+ { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
31
+ { no: 3, name: "str_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
32
+ { no: 4, name: "time_series", kind: "message", T: TimeSeriesMetric, repeated: true },
33
+ { no: 5, name: "events", kind: "message", T: EventMetric, repeated: true },
32
34
  ],
33
35
  );
34
36
 
@@ -41,9 +43,7 @@ export const TimeSeriesMetric = /*@__PURE__*/ proto3.makeMessageType(
41
43
  { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
42
44
  { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
43
45
  { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
44
- { no: 4, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
45
- { no: 5, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
46
- { no: 6, name: "samples", kind: "message", T: MetricSample, repeated: true },
46
+ { no: 4, name: "samples", kind: "message", T: MetricSample, repeated: true },
47
47
  ],
48
48
  );
49
49
 
@@ -53,8 +53,9 @@ export const TimeSeriesMetric = /*@__PURE__*/ proto3.makeMessageType(
53
53
  export const MetricSample = /*@__PURE__*/ proto3.makeMessageType(
54
54
  "livekit.MetricSample",
55
55
  () => [
56
- { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
57
- { no: 2, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
56
+ { no: 1, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
57
+ { no: 2, name: "normalized_timestamp", kind: "message", T: Timestamp },
58
+ { no: 3, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
58
59
  ],
59
60
  );
60
61
 
@@ -67,9 +68,11 @@ export const EventMetric = /*@__PURE__*/ proto3.makeMessageType(
67
68
  { no: 1, name: "label", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
68
69
  { no: 2, name: "participant_identity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
69
70
  { no: 3, name: "track_sid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
70
- { no: 4, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
71
- { no: 5, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
72
- { no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ { no: 4, name: "start_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
72
+ { no: 5, name: "end_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
73
+ { no: 6, name: "normalized_start_timestamp", kind: "message", T: Timestamp },
74
+ { no: 7, name: "normalized_end_timestamp", kind: "message", T: Timestamp, opt: true },
75
+ { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
76
  ],
74
77
  );
75
78
 
@@ -1088,6 +1088,12 @@ export declare class DataPacket extends Message<DataPacket> {
1088
1088
  */
1089
1089
  value: MetricsBatch;
1090
1090
  case: "metrics";
1091
+ } | {
1092
+ /**
1093
+ * @generated from field: livekit.ChatMessage chat_message = 9;
1094
+ */
1095
+ value: ChatMessage;
1096
+ case: "chatMessage";
1091
1097
  } | { case: undefined; value?: undefined };
1092
1098
 
1093
1099
  constructor(data?: PartialMessage<DataPacket>);
@@ -1378,6 +1384,63 @@ export declare class TranscriptionSegment extends Message<TranscriptionSegment>
1378
1384
  static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1379
1385
  }
1380
1386
 
1387
+ /**
1388
+ * @generated from message livekit.ChatMessage
1389
+ */
1390
+ export declare class ChatMessage extends Message<ChatMessage> {
1391
+ /**
1392
+ * uuid
1393
+ *
1394
+ * @generated from field: string id = 1;
1395
+ */
1396
+ id: string;
1397
+
1398
+ /**
1399
+ * @generated from field: int64 timestamp = 2;
1400
+ */
1401
+ timestamp: bigint;
1402
+
1403
+ /**
1404
+ * populated only if the intent is to edit/update an existing message
1405
+ *
1406
+ * @generated from field: optional int64 edit_timestamp = 3;
1407
+ */
1408
+ editTimestamp?: bigint;
1409
+
1410
+ /**
1411
+ * @generated from field: string message = 4;
1412
+ */
1413
+ message: string;
1414
+
1415
+ /**
1416
+ * true to remove message
1417
+ *
1418
+ * @generated from field: bool deleted = 5;
1419
+ */
1420
+ deleted: boolean;
1421
+
1422
+ /**
1423
+ * true if the chat message has been generated by an agent from a participant's audio transcription
1424
+ *
1425
+ * @generated from field: bool generated = 6;
1426
+ */
1427
+ generated: boolean;
1428
+
1429
+ constructor(data?: PartialMessage<ChatMessage>);
1430
+
1431
+ static readonly runtime: typeof proto3;
1432
+ static readonly typeName = "livekit.ChatMessage";
1433
+ static readonly fields: FieldList;
1434
+
1435
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
1436
+
1437
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
1438
+
1439
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
1440
+
1441
+ static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
1442
+ }
1443
+
1381
1444
  /**
1382
1445
  * @generated from message livekit.ParticipantTracks
1383
1446
  */
@@ -1613,6 +1676,16 @@ export declare enum ClientInfo_SDK {
1613
1676
  * @generated from enum value: CPP = 10;
1614
1677
  */
1615
1678
  CPP = 10,
1679
+
1680
+ /**
1681
+ * @generated from enum value: UNITY_WEB = 11;
1682
+ */
1683
+ UNITY_WEB = 11,
1684
+
1685
+ /**
1686
+ * @generated from enum value: NODE = 12;
1687
+ */
1688
+ NODE = 12,
1616
1689
  }
1617
1690
 
1618
1691
  /**
@@ -1997,17 +2070,22 @@ export declare class RTPStats extends Message<RTPStats> {
1997
2070
  packetDrift?: RTPDrift;
1998
2071
 
1999
2072
  /**
2000
- * @generated from field: livekit.RTPDrift report_drift = 45;
2073
+ * @generated from field: livekit.RTPDrift ntp_report_drift = 45;
2001
2074
  */
2002
- reportDrift?: RTPDrift;
2075
+ ntpReportDrift?: RTPDrift;
2003
2076
 
2004
2077
  /**
2005
- * NEXT_ID: 47
2006
- *
2007
2078
  * @generated from field: livekit.RTPDrift rebased_report_drift = 46;
2008
2079
  */
2009
2080
  rebasedReportDrift?: RTPDrift;
2010
2081
 
2082
+ /**
2083
+ * NEXT_ID: 48
2084
+ *
2085
+ * @generated from field: livekit.RTPDrift received_report_drift = 47;
2086
+ */
2087
+ receivedReportDrift?: RTPDrift;
2088
+
2011
2089
  constructor(data?: PartialMessage<RTPStats>);
2012
2090
 
2013
2091
  static readonly runtime: typeof proto3;
@@ -2023,6 +2101,62 @@ export declare class RTPStats extends Message<RTPStats> {
2023
2101
  static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
2024
2102
  }
2025
2103
 
2104
+ /**
2105
+ * @generated from message livekit.RTCPSenderReportState
2106
+ */
2107
+ export declare class RTCPSenderReportState extends Message<RTCPSenderReportState> {
2108
+ /**
2109
+ * @generated from field: uint32 rtp_timestamp = 1;
2110
+ */
2111
+ rtpTimestamp: number;
2112
+
2113
+ /**
2114
+ * @generated from field: uint64 rtp_timestamp_ext = 2;
2115
+ */
2116
+ rtpTimestampExt: bigint;
2117
+
2118
+ /**
2119
+ * @generated from field: uint64 ntp_timestamp = 3;
2120
+ */
2121
+ ntpTimestamp: bigint;
2122
+
2123
+ /**
2124
+ * time at which this happened
2125
+ *
2126
+ * @generated from field: int64 at = 4;
2127
+ */
2128
+ at: bigint;
2129
+
2130
+ /**
2131
+ * @generated from field: int64 at_adjusted = 5;
2132
+ */
2133
+ atAdjusted: bigint;
2134
+
2135
+ /**
2136
+ * @generated from field: uint32 packets = 6;
2137
+ */
2138
+ packets: number;
2139
+
2140
+ /**
2141
+ * @generated from field: uint64 octets = 7;
2142
+ */
2143
+ octets: bigint;
2144
+
2145
+ constructor(data?: PartialMessage<RTCPSenderReportState>);
2146
+
2147
+ static readonly runtime: typeof proto3;
2148
+ static readonly typeName = "livekit.RTCPSenderReportState";
2149
+ static readonly fields: FieldList;
2150
+
2151
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTCPSenderReportState;
2152
+
2153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2154
+
2155
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2156
+
2157
+ static equals(a: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined, b: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined): boolean;
2158
+ }
2159
+
2026
2160
  /**
2027
2161
  * @generated from message livekit.RTPForwarderState
2028
2162
  */
@@ -2068,6 +2202,11 @@ export declare class RTPForwarderState extends Message<RTPForwarderState> {
2068
2202
  case: "vp8Munger";
2069
2203
  } | { case: undefined; value?: undefined };
2070
2204
 
2205
+ /**
2206
+ * @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8;
2207
+ */
2208
+ senderReportState: RTCPSenderReportState[];
2209
+
2071
2210
  constructor(data?: PartialMessage<RTPForwarderState>);
2072
2211
 
2073
2212
  static readonly runtime: typeof proto3;
@@ -388,6 +388,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
388
388
  { no: 6, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
389
389
  { no: 7, name: "transcription", kind: "message", T: Transcription, oneof: "value" },
390
390
  { no: 8, name: "metrics", kind: "message", T: MetricsBatch, oneof: "value" },
391
+ { no: 9, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
391
392
  ],
392
393
  );
393
394
 
@@ -480,6 +481,21 @@ export const TranscriptionSegment = /*@__PURE__*/ proto3.makeMessageType(
480
481
  ],
481
482
  );
482
483
 
484
+ /**
485
+ * @generated from message livekit.ChatMessage
486
+ */
487
+ export const ChatMessage = /*@__PURE__*/ proto3.makeMessageType(
488
+ "livekit.ChatMessage",
489
+ () => [
490
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
491
+ { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
492
+ { no: 3, name: "edit_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
493
+ { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
494
+ { no: 5, name: "deleted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
495
+ { no: 6, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
496
+ ],
497
+ );
498
+
483
499
  /**
484
500
  * @generated from message livekit.ParticipantTracks
485
501
  */
@@ -558,6 +574,8 @@ export const ClientInfo_SDK = /*@__PURE__*/ proto3.makeEnum(
558
574
  {no: 8, name: "RUST"},
559
575
  {no: 9, name: "PYTHON"},
560
576
  {no: 10, name: "CPP"},
577
+ {no: 11, name: "UNITY_WEB"},
578
+ {no: 12, name: "NODE"},
561
579
  ],
562
580
  );
563
581
 
@@ -664,8 +682,25 @@ export const RTPStats = /*@__PURE__*/ proto3.makeMessageType(
664
682
  { no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
665
683
  { no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp },
666
684
  { no: 44, name: "packet_drift", kind: "message", T: RTPDrift },
667
- { no: 45, name: "report_drift", kind: "message", T: RTPDrift },
685
+ { no: 45, name: "ntp_report_drift", kind: "message", T: RTPDrift },
668
686
  { no: 46, name: "rebased_report_drift", kind: "message", T: RTPDrift },
687
+ { no: 47, name: "received_report_drift", kind: "message", T: RTPDrift },
688
+ ],
689
+ );
690
+
691
+ /**
692
+ * @generated from message livekit.RTCPSenderReportState
693
+ */
694
+ export const RTCPSenderReportState = /*@__PURE__*/ proto3.makeMessageType(
695
+ "livekit.RTCPSenderReportState",
696
+ () => [
697
+ { no: 1, name: "rtp_timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
698
+ { no: 2, name: "rtp_timestamp_ext", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
699
+ { no: 3, name: "ntp_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
700
+ { no: 4, name: "at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
701
+ { no: 5, name: "at_adjusted", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
702
+ { no: 6, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
703
+ { no: 7, name: "octets", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
669
704
  ],
670
705
  );
671
706
 
@@ -682,6 +717,7 @@ export const RTPForwarderState = /*@__PURE__*/ proto3.makeMessageType(
682
717
  { no: 5, name: "dummy_start_timestamp_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
683
718
  { no: 6, name: "rtp_munger", kind: "message", T: RTPMungerState },
684
719
  { no: 7, name: "vp8_munger", kind: "message", T: VP8MungerState, oneof: "codec_munger" },
720
+ { no: 8, name: "sender_report_state", kind: "message", T: RTCPSenderReportState, repeated: true },
685
721
  ],
686
722
  );
687
723
 
@@ -356,6 +356,20 @@ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
356
356
  */
357
357
  authPassword: string;
358
358
 
359
+ /**
360
+ * Include these SIP X-* headers in 200 OK responses.
361
+ *
362
+ * @generated from field: map<string, string> headers = 9;
363
+ */
364
+ headers: { [key: string]: string };
365
+
366
+ /**
367
+ * Map SIP X-* headers from INVITE to SIP participant attributes.
368
+ *
369
+ * @generated from field: map<string, string> headers_to_attributes = 10;
370
+ */
371
+ headersToAttributes: { [key: string]: string };
372
+
359
373
  constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
360
374
 
361
375
  static readonly runtime: typeof proto3;
@@ -455,6 +469,22 @@ export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo>
455
469
  */
456
470
  authPassword: string;
457
471
 
472
+ /**
473
+ * Include these SIP X-* headers in INVITE request.
474
+ * These headers are sent as-is and may help identify this call as coming from LiveKit for the other SIP endpoint.
475
+ *
476
+ * @generated from field: map<string, string> headers = 9;
477
+ */
478
+ headers: { [key: string]: string };
479
+
480
+ /**
481
+ * Map SIP X-* headers from 200 OK to SIP participant attributes.
482
+ * Keys are the names of X-* headers and values are the names of attributes they will be mapped to.
483
+ *
484
+ * @generated from field: map<string, string> headers_to_attributes = 10;
485
+ */
486
+ headersToAttributes: { [key: string]: string };
487
+
458
488
  constructor(data?: PartialMessage<SIPOutboundTrunkInfo>);
459
489
 
460
490
  static readonly runtime: typeof proto3;
@@ -470,6 +500,102 @@ export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo>
470
500
  static equals(a: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined, b: SIPOutboundTrunkInfo | PlainMessage<SIPOutboundTrunkInfo> | undefined): boolean;
471
501
  }
472
502
 
503
+ /**
504
+ * @generated from message livekit.GetSIPInboundTrunkRequest
505
+ */
506
+ export declare class GetSIPInboundTrunkRequest extends Message<GetSIPInboundTrunkRequest> {
507
+ /**
508
+ * @generated from field: string sip_trunk_id = 1;
509
+ */
510
+ sipTrunkId: string;
511
+
512
+ constructor(data?: PartialMessage<GetSIPInboundTrunkRequest>);
513
+
514
+ static readonly runtime: typeof proto3;
515
+ static readonly typeName = "livekit.GetSIPInboundTrunkRequest";
516
+ static readonly fields: FieldList;
517
+
518
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPInboundTrunkRequest;
519
+
520
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkRequest;
521
+
522
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkRequest;
523
+
524
+ static equals(a: GetSIPInboundTrunkRequest | PlainMessage<GetSIPInboundTrunkRequest> | undefined, b: GetSIPInboundTrunkRequest | PlainMessage<GetSIPInboundTrunkRequest> | undefined): boolean;
525
+ }
526
+
527
+ /**
528
+ * @generated from message livekit.GetSIPInboundTrunkResponse
529
+ */
530
+ export declare class GetSIPInboundTrunkResponse extends Message<GetSIPInboundTrunkResponse> {
531
+ /**
532
+ * @generated from field: livekit.SIPInboundTrunkInfo trunk = 1;
533
+ */
534
+ trunk?: SIPInboundTrunkInfo;
535
+
536
+ constructor(data?: PartialMessage<GetSIPInboundTrunkResponse>);
537
+
538
+ static readonly runtime: typeof proto3;
539
+ static readonly typeName = "livekit.GetSIPInboundTrunkResponse";
540
+ static readonly fields: FieldList;
541
+
542
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPInboundTrunkResponse;
543
+
544
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkResponse;
545
+
546
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPInboundTrunkResponse;
547
+
548
+ static equals(a: GetSIPInboundTrunkResponse | PlainMessage<GetSIPInboundTrunkResponse> | undefined, b: GetSIPInboundTrunkResponse | PlainMessage<GetSIPInboundTrunkResponse> | undefined): boolean;
549
+ }
550
+
551
+ /**
552
+ * @generated from message livekit.GetSIPOutboundTrunkRequest
553
+ */
554
+ export declare class GetSIPOutboundTrunkRequest extends Message<GetSIPOutboundTrunkRequest> {
555
+ /**
556
+ * @generated from field: string sip_trunk_id = 1;
557
+ */
558
+ sipTrunkId: string;
559
+
560
+ constructor(data?: PartialMessage<GetSIPOutboundTrunkRequest>);
561
+
562
+ static readonly runtime: typeof proto3;
563
+ static readonly typeName = "livekit.GetSIPOutboundTrunkRequest";
564
+ static readonly fields: FieldList;
565
+
566
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPOutboundTrunkRequest;
567
+
568
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkRequest;
569
+
570
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkRequest;
571
+
572
+ static equals(a: GetSIPOutboundTrunkRequest | PlainMessage<GetSIPOutboundTrunkRequest> | undefined, b: GetSIPOutboundTrunkRequest | PlainMessage<GetSIPOutboundTrunkRequest> | undefined): boolean;
573
+ }
574
+
575
+ /**
576
+ * @generated from message livekit.GetSIPOutboundTrunkResponse
577
+ */
578
+ export declare class GetSIPOutboundTrunkResponse extends Message<GetSIPOutboundTrunkResponse> {
579
+ /**
580
+ * @generated from field: livekit.SIPOutboundTrunkInfo trunk = 1;
581
+ */
582
+ trunk?: SIPOutboundTrunkInfo;
583
+
584
+ constructor(data?: PartialMessage<GetSIPOutboundTrunkResponse>);
585
+
586
+ static readonly runtime: typeof proto3;
587
+ static readonly typeName = "livekit.GetSIPOutboundTrunkResponse";
588
+ static readonly fields: FieldList;
589
+
590
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSIPOutboundTrunkResponse;
591
+
592
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkResponse;
593
+
594
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSIPOutboundTrunkResponse;
595
+
596
+ static equals(a: GetSIPOutboundTrunkResponse | PlainMessage<GetSIPOutboundTrunkResponse> | undefined, b: GetSIPOutboundTrunkResponse | PlainMessage<GetSIPOutboundTrunkResponse> | undefined): boolean;
597
+ }
598
+
473
599
  /**
474
600
  * @generated from message livekit.ListSIPTrunkRequest
475
601
  * @deprecated
@@ -691,6 +817,46 @@ export declare class SIPDispatchRuleIndividual extends Message<SIPDispatchRuleIn
691
817
  static equals(a: SIPDispatchRuleIndividual | PlainMessage<SIPDispatchRuleIndividual> | undefined, b: SIPDispatchRuleIndividual | PlainMessage<SIPDispatchRuleIndividual> | undefined): boolean;
692
818
  }
693
819
 
820
+ /**
821
+ * @generated from message livekit.SIPDispatchRuleCallee
822
+ */
823
+ export declare class SIPDispatchRuleCallee extends Message<SIPDispatchRuleCallee> {
824
+ /**
825
+ * Prefix used on new room name
826
+ *
827
+ * @generated from field: string room_prefix = 1;
828
+ */
829
+ roomPrefix: string;
830
+
831
+ /**
832
+ * Optional pin required to enter room
833
+ *
834
+ * @generated from field: string pin = 2;
835
+ */
836
+ pin: string;
837
+
838
+ /**
839
+ * Optionally append random suffix
840
+ *
841
+ * @generated from field: bool randomize = 3;
842
+ */
843
+ randomize: boolean;
844
+
845
+ constructor(data?: PartialMessage<SIPDispatchRuleCallee>);
846
+
847
+ static readonly runtime: typeof proto3;
848
+ static readonly typeName = "livekit.SIPDispatchRuleCallee";
849
+ static readonly fields: FieldList;
850
+
851
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPDispatchRuleCallee;
852
+
853
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPDispatchRuleCallee;
854
+
855
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPDispatchRuleCallee;
856
+
857
+ static equals(a: SIPDispatchRuleCallee | PlainMessage<SIPDispatchRuleCallee> | undefined, b: SIPDispatchRuleCallee | PlainMessage<SIPDispatchRuleCallee> | undefined): boolean;
858
+ }
859
+
694
860
  /**
695
861
  * @generated from message livekit.SIPDispatchRule
696
862
  */
@@ -716,6 +882,14 @@ export declare class SIPDispatchRule extends Message<SIPDispatchRule> {
716
882
  */
717
883
  value: SIPDispatchRuleIndividual;
718
884
  case: "dispatchRuleIndividual";
885
+ } | {
886
+ /**
887
+ * SIPDispatchRuleCallee is a `SIP Dispatch Rule` that creates a new room for each callee.
888
+ *
889
+ * @generated from field: livekit.SIPDispatchRuleCallee dispatch_rule_callee = 3;
890
+ */
891
+ value: SIPDispatchRuleCallee;
892
+ case: "dispatchRuleCallee";
719
893
  } | { case: undefined; value?: undefined };
720
894
 
721
895
  constructor(data?: PartialMessage<SIPDispatchRule>);
@@ -113,6 +113,8 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
113
113
  { no: 6, name: "allowed_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
114
114
  { no: 7, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
115
  { no: 8, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
+ { no: 9, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
117
+ { no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
116
118
  ],
117
119
  );
118
120
 
@@ -140,6 +142,48 @@ export const SIPOutboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
140
142
  { no: 6, name: "numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
141
143
  { no: 7, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
144
  { no: 8, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
145
+ { no: 9, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
146
+ { no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
147
+ ],
148
+ );
149
+
150
+ /**
151
+ * @generated from message livekit.GetSIPInboundTrunkRequest
152
+ */
153
+ export const GetSIPInboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
154
+ "livekit.GetSIPInboundTrunkRequest",
155
+ () => [
156
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
157
+ ],
158
+ );
159
+
160
+ /**
161
+ * @generated from message livekit.GetSIPInboundTrunkResponse
162
+ */
163
+ export const GetSIPInboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
164
+ "livekit.GetSIPInboundTrunkResponse",
165
+ () => [
166
+ { no: 1, name: "trunk", kind: "message", T: SIPInboundTrunkInfo },
167
+ ],
168
+ );
169
+
170
+ /**
171
+ * @generated from message livekit.GetSIPOutboundTrunkRequest
172
+ */
173
+ export const GetSIPOutboundTrunkRequest = /*@__PURE__*/ proto3.makeMessageType(
174
+ "livekit.GetSIPOutboundTrunkRequest",
175
+ () => [
176
+ { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ ],
178
+ );
179
+
180
+ /**
181
+ * @generated from message livekit.GetSIPOutboundTrunkResponse
182
+ */
183
+ export const GetSIPOutboundTrunkResponse = /*@__PURE__*/ proto3.makeMessageType(
184
+ "livekit.GetSIPOutboundTrunkResponse",
185
+ () => [
186
+ { no: 1, name: "trunk", kind: "message", T: SIPOutboundTrunkInfo },
143
187
  ],
144
188
  );
145
189
 
@@ -231,6 +275,18 @@ export const SIPDispatchRuleIndividual = /*@__PURE__*/ proto3.makeMessageType(
231
275
  ],
232
276
  );
233
277
 
278
+ /**
279
+ * @generated from message livekit.SIPDispatchRuleCallee
280
+ */
281
+ export const SIPDispatchRuleCallee = /*@__PURE__*/ proto3.makeMessageType(
282
+ "livekit.SIPDispatchRuleCallee",
283
+ () => [
284
+ { no: 1, name: "room_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
285
+ { no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
286
+ { no: 3, name: "randomize", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
287
+ ],
288
+ );
289
+
234
290
  /**
235
291
  * @generated from message livekit.SIPDispatchRule
236
292
  */
@@ -239,6 +295,7 @@ export const SIPDispatchRule = /*@__PURE__*/ proto3.makeMessageType(
239
295
  () => [
240
296
  { no: 1, name: "dispatch_rule_direct", kind: "message", T: SIPDispatchRuleDirect, oneof: "rule" },
241
297
  { no: 2, name: "dispatch_rule_individual", kind: "message", T: SIPDispatchRuleIndividual, oneof: "rule" },
298
+ { no: 3, name: "dispatch_rule_callee", kind: "message", T: SIPDispatchRuleCallee, oneof: "rule" },
242
299
  ],
243
300
  );
244
301
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.20.1';
2
+ export const version = '1.22.0';