@livekit/protocol 1.21.0 → 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 +3 -3
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_metrics_pb.d.ts +57 -32
- package/src/gen/livekit_metrics_pb.js +17 -14
- package/src/gen/livekit_models_pb.d.ts +133 -4
- package/src/gen/livekit_models_pb.js +35 -1
- package/src/gen/livekit_sip_pb.d.ts +126 -0
- package/src/gen/livekit_sip_pb.js +44 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/protocol",
|
|
3
|
-
"version": "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.
|
|
25
|
+
"@bufbuild/protoc-gen-es": "^1.10.0",
|
|
26
26
|
"genversion": "^3.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@bufbuild/protobuf": "^1.
|
|
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
|
|
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:
|
|
37
|
+
* @generated from enum value: METRIC_LABEL_PREDEFINED_MAX_VALUE = 4096;
|
|
38
38
|
*/
|
|
39
|
-
|
|
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
|
|
62
|
+
* They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1)
|
|
51
63
|
*
|
|
52
|
-
* @generated from field: repeated string str_data =
|
|
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 =
|
|
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 =
|
|
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
|
-
*
|
|
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
|
-
|
|
153
|
+
normalizedTimestamp?: Timestamp;
|
|
145
154
|
|
|
146
155
|
/**
|
|
147
|
-
* @generated from field: float value =
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
215
|
+
normalizedStartTimestamp?: Timestamp;
|
|
191
216
|
|
|
192
217
|
/**
|
|
193
|
-
* @generated from field: optional
|
|
218
|
+
* @generated from field: optional google.protobuf.Timestamp normalized_end_timestamp = 7;
|
|
194
219
|
*/
|
|
195
|
-
|
|
220
|
+
normalizedEndTimestamp?: Timestamp;
|
|
196
221
|
|
|
197
222
|
/**
|
|
198
|
-
* @generated from field: string metadata =
|
|
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
|
|
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:
|
|
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: "
|
|
30
|
-
{ no: 2, name: "
|
|
31
|
-
{ no: 3, name: "
|
|
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: "
|
|
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: "
|
|
57
|
-
{ no: 2, name: "
|
|
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: "
|
|
71
|
-
{ no: 5, name: "
|
|
72
|
-
{ no: 6, name: "
|
|
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
|
*/
|
|
@@ -2007,17 +2070,22 @@ export declare class RTPStats extends Message<RTPStats> {
|
|
|
2007
2070
|
packetDrift?: RTPDrift;
|
|
2008
2071
|
|
|
2009
2072
|
/**
|
|
2010
|
-
* @generated from field: livekit.RTPDrift
|
|
2073
|
+
* @generated from field: livekit.RTPDrift ntp_report_drift = 45;
|
|
2011
2074
|
*/
|
|
2012
|
-
|
|
2075
|
+
ntpReportDrift?: RTPDrift;
|
|
2013
2076
|
|
|
2014
2077
|
/**
|
|
2015
|
-
* NEXT_ID: 47
|
|
2016
|
-
*
|
|
2017
2078
|
* @generated from field: livekit.RTPDrift rebased_report_drift = 46;
|
|
2018
2079
|
*/
|
|
2019
2080
|
rebasedReportDrift?: RTPDrift;
|
|
2020
2081
|
|
|
2082
|
+
/**
|
|
2083
|
+
* NEXT_ID: 48
|
|
2084
|
+
*
|
|
2085
|
+
* @generated from field: livekit.RTPDrift received_report_drift = 47;
|
|
2086
|
+
*/
|
|
2087
|
+
receivedReportDrift?: RTPDrift;
|
|
2088
|
+
|
|
2021
2089
|
constructor(data?: PartialMessage<RTPStats>);
|
|
2022
2090
|
|
|
2023
2091
|
static readonly runtime: typeof proto3;
|
|
@@ -2033,6 +2101,62 @@ export declare class RTPStats extends Message<RTPStats> {
|
|
|
2033
2101
|
static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
|
|
2034
2102
|
}
|
|
2035
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
|
+
|
|
2036
2160
|
/**
|
|
2037
2161
|
* @generated from message livekit.RTPForwarderState
|
|
2038
2162
|
*/
|
|
@@ -2078,6 +2202,11 @@ export declare class RTPForwarderState extends Message<RTPForwarderState> {
|
|
|
2078
2202
|
case: "vp8Munger";
|
|
2079
2203
|
} | { case: undefined; value?: undefined };
|
|
2080
2204
|
|
|
2205
|
+
/**
|
|
2206
|
+
* @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8;
|
|
2207
|
+
*/
|
|
2208
|
+
senderReportState: RTCPSenderReportState[];
|
|
2209
|
+
|
|
2081
2210
|
constructor(data?: PartialMessage<RTPForwarderState>);
|
|
2082
2211
|
|
|
2083
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
|
*/
|
|
@@ -666,8 +682,25 @@ export const RTPStats = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
666
682
|
{ no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
667
683
|
{ no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp },
|
|
668
684
|
{ no: 44, name: "packet_drift", kind: "message", T: RTPDrift },
|
|
669
|
-
{ no: 45, name: "
|
|
685
|
+
{ no: 45, name: "ntp_report_drift", kind: "message", T: RTPDrift },
|
|
670
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 */ },
|
|
671
704
|
],
|
|
672
705
|
);
|
|
673
706
|
|
|
@@ -684,6 +717,7 @@ export const RTPForwarderState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
684
717
|
{ no: 5, name: "dummy_start_timestamp_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
685
718
|
{ no: 6, name: "rtp_munger", kind: "message", T: RTPMungerState },
|
|
686
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 },
|
|
687
721
|
],
|
|
688
722
|
);
|
|
689
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
|
|
@@ -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
|
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.22.0';
|