@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/dist/index.cjs +328 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +668 -9
- package/dist/index.d.mts +668 -9
- package/dist/index.d.ts +668 -9
- package/dist/index.mjs +313 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
- package/src/gen/livekit_agent_dispatch_pb.d.ts +1 -1
- package/src/gen/livekit_agent_pb.d.ts +134 -0
- package/src/gen/livekit_agent_pb.js +41 -0
- package/src/gen/livekit_analytics_pb.d.ts +13 -1
- package/src/gen/livekit_analytics_pb.js +2 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +64 -0
- package/src/gen/livekit_cloud_agent_pb.js +26 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +1 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +37 -3
- package/src/gen/livekit_connector_whatsapp_pb.js +12 -0
- package/src/gen/livekit_internal_pb.d.ts +35 -0
- package/src/gen/livekit_internal_pb.js +7 -0
- package/src/gen/livekit_metrics_pb.d.ts +5 -0
- package/src/gen/livekit_metrics_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +144 -2
- package/src/gen/livekit_models_pb.js +49 -0
- package/src/gen/livekit_phone_number_pb.d.ts +24 -2
- package/src/gen/livekit_phone_number_pb.js +3 -0
- package/src/gen/livekit_rtc_pb.d.ts +332 -1
- package/src/gen/livekit_rtc_pb.js +103 -1
- package/src/gen/livekit_sip_pb.d.ts +14 -2
- package/src/gen/livekit_sip_pb.js +2 -0
- package/src/gen/version.js +1 -1
|
@@ -170,6 +170,21 @@ export declare enum TrackSource {
|
|
|
170
170
|
SCREEN_SHARE_AUDIO = 4,
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* @generated from enum livekit.DataTrackExtensionID
|
|
175
|
+
*/
|
|
176
|
+
export declare enum DataTrackExtensionID {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from enum value: DTEI_INVALID = 0;
|
|
179
|
+
*/
|
|
180
|
+
DTEI_INVALID = 0,
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @generated from enum value: DTEI_PARTICIPANT_SID = 1;
|
|
184
|
+
*/
|
|
185
|
+
DTEI_PARTICIPANT_SID = 1,
|
|
186
|
+
}
|
|
187
|
+
|
|
173
188
|
/**
|
|
174
189
|
* @generated from enum livekit.VideoQuality
|
|
175
190
|
*/
|
|
@@ -880,6 +895,11 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
|
|
|
880
895
|
*/
|
|
881
896
|
kindDetails: ParticipantInfo_KindDetail[];
|
|
882
897
|
|
|
898
|
+
/**
|
|
899
|
+
* @generated from field: repeated livekit.DataTrackInfo data_tracks = 19;
|
|
900
|
+
*/
|
|
901
|
+
dataTracks: DataTrackInfo[];
|
|
902
|
+
|
|
883
903
|
constructor(data?: PartialMessage<ParticipantInfo>);
|
|
884
904
|
|
|
885
905
|
static readonly runtime: typeof proto3;
|
|
@@ -970,11 +990,18 @@ export declare enum ParticipantInfo_Kind {
|
|
|
970
990
|
/**
|
|
971
991
|
* Connectors participants
|
|
972
992
|
*
|
|
973
|
-
* NEXT_ID: 8
|
|
974
|
-
*
|
|
975
993
|
* @generated from enum value: CONNECTOR = 7;
|
|
976
994
|
*/
|
|
977
995
|
CONNECTOR = 7,
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Bridge participants
|
|
999
|
+
*
|
|
1000
|
+
* NEXT_ID: 9
|
|
1001
|
+
*
|
|
1002
|
+
* @generated from enum value: BRIDGE = 8;
|
|
1003
|
+
*/
|
|
1004
|
+
BRIDGE = 8,
|
|
978
1005
|
}
|
|
979
1006
|
|
|
980
1007
|
/**
|
|
@@ -1000,6 +1027,13 @@ export declare enum ParticipantInfo_KindDetail {
|
|
|
1000
1027
|
* @generated from enum value: CONNECTOR_TWILIO = 3;
|
|
1001
1028
|
*/
|
|
1002
1029
|
CONNECTOR_TWILIO = 3,
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* NEXT_ID: 5
|
|
1033
|
+
*
|
|
1034
|
+
* @generated from enum value: BRIDGE_RTSP = 4;
|
|
1035
|
+
*/
|
|
1036
|
+
BRIDGE_RTSP = 4,
|
|
1003
1037
|
}
|
|
1004
1038
|
|
|
1005
1039
|
/**
|
|
@@ -1241,6 +1275,109 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1241
1275
|
static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
|
|
1242
1276
|
}
|
|
1243
1277
|
|
|
1278
|
+
/**
|
|
1279
|
+
* @generated from message livekit.DataTrackInfo
|
|
1280
|
+
*/
|
|
1281
|
+
export declare class DataTrackInfo extends Message<DataTrackInfo> {
|
|
1282
|
+
/**
|
|
1283
|
+
* Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
|
|
1284
|
+
*
|
|
1285
|
+
* @generated from field: uint32 pub_handle = 1;
|
|
1286
|
+
*/
|
|
1287
|
+
pubHandle: number;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Server-assigned track identifier.
|
|
1291
|
+
*
|
|
1292
|
+
* @generated from field: string sid = 2;
|
|
1293
|
+
*/
|
|
1294
|
+
sid: string;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
|
|
1298
|
+
*
|
|
1299
|
+
* @generated from field: string name = 3;
|
|
1300
|
+
*/
|
|
1301
|
+
name: string;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Method used for end-to-end encryption (E2EE) on packet payloads.
|
|
1305
|
+
*
|
|
1306
|
+
* @generated from field: livekit.Encryption.Type encryption = 4;
|
|
1307
|
+
*/
|
|
1308
|
+
encryption: Encryption_Type;
|
|
1309
|
+
|
|
1310
|
+
constructor(data?: PartialMessage<DataTrackInfo>);
|
|
1311
|
+
|
|
1312
|
+
static readonly runtime: typeof proto3;
|
|
1313
|
+
static readonly typeName = "livekit.DataTrackInfo";
|
|
1314
|
+
static readonly fields: FieldList;
|
|
1315
|
+
|
|
1316
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackInfo;
|
|
1317
|
+
|
|
1318
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackInfo;
|
|
1319
|
+
|
|
1320
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackInfo;
|
|
1321
|
+
|
|
1322
|
+
static equals(a: DataTrackInfo | PlainMessage<DataTrackInfo> | undefined, b: DataTrackInfo | PlainMessage<DataTrackInfo> | undefined): boolean;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* @generated from message livekit.DataTrackExtensionParticipantSid
|
|
1327
|
+
*/
|
|
1328
|
+
export declare class DataTrackExtensionParticipantSid extends Message<DataTrackExtensionParticipantSid> {
|
|
1329
|
+
/**
|
|
1330
|
+
* @generated from field: livekit.DataTrackExtensionID id = 1;
|
|
1331
|
+
*/
|
|
1332
|
+
id: DataTrackExtensionID;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* @generated from field: string participant_sid = 2;
|
|
1336
|
+
*/
|
|
1337
|
+
participantSid: string;
|
|
1338
|
+
|
|
1339
|
+
constructor(data?: PartialMessage<DataTrackExtensionParticipantSid>);
|
|
1340
|
+
|
|
1341
|
+
static readonly runtime: typeof proto3;
|
|
1342
|
+
static readonly typeName = "livekit.DataTrackExtensionParticipantSid";
|
|
1343
|
+
static readonly fields: FieldList;
|
|
1344
|
+
|
|
1345
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackExtensionParticipantSid;
|
|
1346
|
+
|
|
1347
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackExtensionParticipantSid;
|
|
1348
|
+
|
|
1349
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackExtensionParticipantSid;
|
|
1350
|
+
|
|
1351
|
+
static equals(a: DataTrackExtensionParticipantSid | PlainMessage<DataTrackExtensionParticipantSid> | undefined, b: DataTrackExtensionParticipantSid | PlainMessage<DataTrackExtensionParticipantSid> | undefined): boolean;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* @generated from message livekit.DataTrackSubscriptionOptions
|
|
1356
|
+
*/
|
|
1357
|
+
export declare class DataTrackSubscriptionOptions extends Message<DataTrackSubscriptionOptions> {
|
|
1358
|
+
/**
|
|
1359
|
+
* Rate in frames per second (FPS) the subscriber wants to receive frames at.
|
|
1360
|
+
* If omitted, the subscriber defaults to the publisher's fps
|
|
1361
|
+
*
|
|
1362
|
+
* @generated from field: optional uint32 target_fps = 1;
|
|
1363
|
+
*/
|
|
1364
|
+
targetFps?: number;
|
|
1365
|
+
|
|
1366
|
+
constructor(data?: PartialMessage<DataTrackSubscriptionOptions>);
|
|
1367
|
+
|
|
1368
|
+
static readonly runtime: typeof proto3;
|
|
1369
|
+
static readonly typeName = "livekit.DataTrackSubscriptionOptions";
|
|
1370
|
+
static readonly fields: FieldList;
|
|
1371
|
+
|
|
1372
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataTrackSubscriptionOptions;
|
|
1373
|
+
|
|
1374
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataTrackSubscriptionOptions;
|
|
1375
|
+
|
|
1376
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataTrackSubscriptionOptions;
|
|
1377
|
+
|
|
1378
|
+
static equals(a: DataTrackSubscriptionOptions | PlainMessage<DataTrackSubscriptionOptions> | undefined, b: DataTrackSubscriptionOptions | PlainMessage<DataTrackSubscriptionOptions> | undefined): boolean;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1244
1381
|
/**
|
|
1245
1382
|
* provide information about available spatial layers
|
|
1246
1383
|
*
|
|
@@ -1286,6 +1423,11 @@ export declare class VideoLayer extends Message<VideoLayer> {
|
|
|
1286
1423
|
*/
|
|
1287
1424
|
rid: string;
|
|
1288
1425
|
|
|
1426
|
+
/**
|
|
1427
|
+
* @generated from field: uint32 repair_ssrc = 8;
|
|
1428
|
+
*/
|
|
1429
|
+
repairSsrc: number;
|
|
1430
|
+
|
|
1289
1431
|
constructor(data?: PartialMessage<VideoLayer>);
|
|
1290
1432
|
|
|
1291
1433
|
static readonly runtime: typeof proto3;
|
|
@@ -98,6 +98,17 @@ export const TrackSource = /*@__PURE__*/ proto3.makeEnum(
|
|
|
98
98
|
],
|
|
99
99
|
);
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* @generated from enum livekit.DataTrackExtensionID
|
|
103
|
+
*/
|
|
104
|
+
export const DataTrackExtensionID = /*@__PURE__*/ proto3.makeEnum(
|
|
105
|
+
"livekit.DataTrackExtensionID",
|
|
106
|
+
[
|
|
107
|
+
{no: 0, name: "DTEI_INVALID"},
|
|
108
|
+
{no: 1, name: "DTEI_PARTICIPANT_SID"},
|
|
109
|
+
],
|
|
110
|
+
);
|
|
111
|
+
|
|
101
112
|
/**
|
|
102
113
|
* @generated from enum livekit.VideoQuality
|
|
103
114
|
*/
|
|
@@ -325,6 +336,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
325
336
|
{ no: 15, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
326
337
|
{ no: 16, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
|
|
327
338
|
{ no: 18, name: "kind_details", kind: "enum", T: proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true },
|
|
339
|
+
{ no: 19, name: "data_tracks", kind: "message", T: DataTrackInfo, repeated: true },
|
|
328
340
|
],
|
|
329
341
|
);
|
|
330
342
|
|
|
@@ -353,6 +365,7 @@ export const ParticipantInfo_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
353
365
|
{no: 3, name: "SIP"},
|
|
354
366
|
{no: 4, name: "AGENT"},
|
|
355
367
|
{no: 7, name: "CONNECTOR"},
|
|
368
|
+
{no: 8, name: "BRIDGE"},
|
|
356
369
|
],
|
|
357
370
|
);
|
|
358
371
|
|
|
@@ -366,6 +379,7 @@ export const ParticipantInfo_KindDetail = /*@__PURE__*/ proto3.makeEnum(
|
|
|
366
379
|
{no: 1, name: "FORWARDED"},
|
|
367
380
|
{no: 2, name: "CONNECTOR_WHATSAPP"},
|
|
368
381
|
{no: 3, name: "CONNECTOR_TWILIO"},
|
|
382
|
+
{no: 4, name: "BRIDGE_RTSP"},
|
|
369
383
|
],
|
|
370
384
|
);
|
|
371
385
|
|
|
@@ -433,6 +447,40 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
433
447
|
],
|
|
434
448
|
);
|
|
435
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @generated from message livekit.DataTrackInfo
|
|
452
|
+
*/
|
|
453
|
+
export const DataTrackInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
454
|
+
"livekit.DataTrackInfo",
|
|
455
|
+
() => [
|
|
456
|
+
{ no: 1, name: "pub_handle", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
457
|
+
{ no: 2, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
458
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
459
|
+
{ no: 4, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
460
|
+
],
|
|
461
|
+
);
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @generated from message livekit.DataTrackExtensionParticipantSid
|
|
465
|
+
*/
|
|
466
|
+
export const DataTrackExtensionParticipantSid = /*@__PURE__*/ proto3.makeMessageType(
|
|
467
|
+
"livekit.DataTrackExtensionParticipantSid",
|
|
468
|
+
() => [
|
|
469
|
+
{ no: 1, name: "id", kind: "enum", T: proto3.getEnumType(DataTrackExtensionID) },
|
|
470
|
+
{ no: 2, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
471
|
+
],
|
|
472
|
+
);
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @generated from message livekit.DataTrackSubscriptionOptions
|
|
476
|
+
*/
|
|
477
|
+
export const DataTrackSubscriptionOptions = /*@__PURE__*/ proto3.makeMessageType(
|
|
478
|
+
"livekit.DataTrackSubscriptionOptions",
|
|
479
|
+
() => [
|
|
480
|
+
{ no: 1, name: "target_fps", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
481
|
+
],
|
|
482
|
+
);
|
|
483
|
+
|
|
436
484
|
/**
|
|
437
485
|
* provide information about available spatial layers
|
|
438
486
|
*
|
|
@@ -448,6 +496,7 @@ export const VideoLayer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
448
496
|
{ no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
449
497
|
{ no: 6, name: "spatial_layer", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
450
498
|
{ no: 7, name: "rid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
499
|
+
{ no: 8, name: "repair_ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
451
500
|
],
|
|
452
501
|
);
|
|
453
502
|
|
|
@@ -40,6 +40,13 @@ export declare enum PhoneNumberStatus {
|
|
|
40
40
|
* @generated from enum value: PHONE_NUMBER_STATUS_RELEASED = 3;
|
|
41
41
|
*/
|
|
42
42
|
RELEASED = 3,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Number is offline (not associated with any dispatch rule)
|
|
46
|
+
*
|
|
47
|
+
* @generated from enum value: PHONE_NUMBER_STATUS_OFFLINE = 4;
|
|
48
|
+
*/
|
|
49
|
+
OFFLINE = 4,
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
/**
|
|
@@ -300,6 +307,13 @@ export declare class ListPhoneNumbersResponse extends Message<ListPhoneNumbersRe
|
|
|
300
307
|
*/
|
|
301
308
|
totalCount: number;
|
|
302
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Total number of offline phone numbers
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: int32 offline_count = 4;
|
|
314
|
+
*/
|
|
315
|
+
offlineCount: number;
|
|
316
|
+
|
|
303
317
|
constructor(data?: PartialMessage<ListPhoneNumbersResponse>);
|
|
304
318
|
|
|
305
319
|
static readonly runtime: typeof proto3;
|
|
@@ -611,12 +625,20 @@ export declare class PhoneNumber extends Message<PhoneNumber> {
|
|
|
611
625
|
releasedAt?: Timestamp;
|
|
612
626
|
|
|
613
627
|
/**
|
|
614
|
-
* Associated SIP dispatch rule ID
|
|
628
|
+
* Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)
|
|
615
629
|
*
|
|
616
|
-
* @generated from field: string sip_dispatch_rule_id = 15;
|
|
630
|
+
* @generated from field: string sip_dispatch_rule_id = 15 [deprecated = true];
|
|
631
|
+
* @deprecated
|
|
617
632
|
*/
|
|
618
633
|
sipDispatchRuleId: string;
|
|
619
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Associated SIP dispatch rule IDs
|
|
637
|
+
*
|
|
638
|
+
* @generated from field: repeated string sip_dispatch_rule_ids = 16;
|
|
639
|
+
*/
|
|
640
|
+
sipDispatchRuleIds: string[];
|
|
641
|
+
|
|
620
642
|
constructor(data?: PartialMessage<PhoneNumber>);
|
|
621
643
|
|
|
622
644
|
static readonly runtime: typeof proto3;
|
|
@@ -18,6 +18,7 @@ export const PhoneNumberStatus = /*@__PURE__*/ proto3.makeEnum(
|
|
|
18
18
|
{no: 1, name: "PHONE_NUMBER_STATUS_ACTIVE", localName: "ACTIVE"},
|
|
19
19
|
{no: 2, name: "PHONE_NUMBER_STATUS_PENDING", localName: "PENDING"},
|
|
20
20
|
{no: 3, name: "PHONE_NUMBER_STATUS_RELEASED", localName: "RELEASED"},
|
|
21
|
+
{no: 4, name: "PHONE_NUMBER_STATUS_OFFLINE", localName: "OFFLINE"},
|
|
21
22
|
],
|
|
22
23
|
);
|
|
23
24
|
|
|
@@ -115,6 +116,7 @@ export const ListPhoneNumbersResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
115
116
|
{ no: 1, name: "items", kind: "message", T: PhoneNumber, repeated: true },
|
|
116
117
|
{ no: 2, name: "next_page_token", kind: "message", T: TokenPagination },
|
|
117
118
|
{ no: 3, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
119
|
+
{ no: 4, name: "offline_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
118
120
|
],
|
|
119
121
|
);
|
|
120
122
|
|
|
@@ -217,6 +219,7 @@ export const PhoneNumber = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
217
219
|
{ no: 13, name: "assigned_at", kind: "message", T: Timestamp },
|
|
218
220
|
{ no: 14, name: "released_at", kind: "message", T: Timestamp },
|
|
219
221
|
{ no: 15, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
222
|
+
{ no: 16, name: "sip_dispatch_rule_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
220
223
|
],
|
|
221
224
|
);
|
|
222
225
|
|