@cc-livekit/protocol 1.39.5 → 1.42.2
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 +449 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +970 -41
- package/dist/index.d.mts +970 -41
- package/dist/index.d.ts +970 -41
- package/dist/index.mjs +432 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/livekit_agent_pb.d.ts +10 -0
- package/src/gen/livekit_agent_pb.js +2 -0
- package/src/gen/livekit_analytics_pb.d.ts +10 -0
- package/src/gen/livekit_analytics_pb.js +2 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +152 -0
- package/src/gen/livekit_cloud_agent_pb.js +54 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +139 -0
- package/src/gen/livekit_connector_twilio_pb.js +60 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +434 -0
- package/src/gen/livekit_connector_whatsapp_pb.js +144 -0
- package/src/gen/livekit_egress_pb.d.ts +19 -0
- package/src/gen/livekit_egress_pb.js +3 -0
- package/src/gen/livekit_internal_pb.d.ts +30 -2
- package/src/gen/livekit_internal_pb.js +6 -0
- package/src/gen/livekit_metrics_pb.d.ts +30 -1
- package/src/gen/livekit_metrics_pb.js +11 -0
- package/src/gen/livekit_models_pb.d.ts +305 -9
- package/src/gen/livekit_models_pb.js +85 -0
- package/src/gen/livekit_phone_number_pb.d.ts +634 -0
- package/src/gen/livekit_phone_number_pb.js +222 -0
- package/src/gen/livekit_room_pb.d.ts +75 -0
- package/src/gen/livekit_room_pb.js +25 -0
- package/src/gen/livekit_rtc_pb.d.ts +314 -7
- package/src/gen/livekit_rtc_pb.js +91 -1
- package/src/gen/livekit_sip_pb.d.ts +88 -3
- package/src/gen/livekit_sip_pb.js +29 -1
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
21
|
import { ClientInfo, PlayoutDelay, ReconnectReason } from "./livekit_models_pb.js";
|
|
22
22
|
import { CreateRoomRequest } from "./livekit_room_pb.js";
|
|
23
|
+
import { AddTrackRequest, SessionDescription, SyncState } from "./livekit_rtc_pb.js";
|
|
23
24
|
import { AutoParticipantEgress, AutoTrackEgress } from "./livekit_egress_pb.js";
|
|
24
25
|
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
25
26
|
|
|
@@ -36,6 +37,7 @@ export const NodeType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
36
37
|
{no: 5, name: "SWEEPER"},
|
|
37
38
|
{no: 6, name: "DIRECTOR"},
|
|
38
39
|
{no: 7, name: "HOSTED_AGENT"},
|
|
40
|
+
{no: 8, name: "SETTINGS"},
|
|
39
41
|
],
|
|
40
42
|
);
|
|
41
43
|
|
|
@@ -194,6 +196,10 @@ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
194
196
|
{ no: 18, name: "subscriber_allow_pause", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
195
197
|
{ no: 19, name: "disable_ice_lite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
196
198
|
{ no: 20, name: "create_room", kind: "message", T: CreateRoomRequest },
|
|
199
|
+
{ no: 21, name: "add_track_requests", kind: "message", T: AddTrackRequest, repeated: true },
|
|
200
|
+
{ no: 22, name: "publisher_offer", kind: "message", T: SessionDescription },
|
|
201
|
+
{ no: 23, name: "sync_state", kind: "message", T: SyncState },
|
|
202
|
+
{ no: 24, name: "use_single_peer_connection", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
197
203
|
],
|
|
198
204
|
);
|
|
199
205
|
|
|
@@ -179,7 +179,7 @@ export declare class MetricsBatch extends Message<MetricsBatch> {
|
|
|
179
179
|
* This is useful for storing participant identities, track names, etc.
|
|
180
180
|
* There is also a predefined list of labels that can be used to reference common metrics.
|
|
181
181
|
* They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1).
|
|
182
|
-
* Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
|
|
182
|
+
* Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE,
|
|
183
183
|
* such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE.
|
|
184
184
|
*
|
|
185
185
|
* @generated from field: repeated string str_data = 3;
|
|
@@ -374,3 +374,32 @@ export declare class EventMetric extends Message<EventMetric> {
|
|
|
374
374
|
static equals(a: EventMetric | PlainMessage<EventMetric> | undefined, b: EventMetric | PlainMessage<EventMetric> | undefined): boolean;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
+
/**
|
|
378
|
+
* @generated from message livekit.MetricsRecordingHeader
|
|
379
|
+
*/
|
|
380
|
+
export declare class MetricsRecordingHeader extends Message<MetricsRecordingHeader> {
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: string room_id = 1;
|
|
383
|
+
*/
|
|
384
|
+
roomId: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: optional bool enable_user_data_training = 2;
|
|
388
|
+
*/
|
|
389
|
+
enableUserDataTraining?: boolean;
|
|
390
|
+
|
|
391
|
+
constructor(data?: PartialMessage<MetricsRecordingHeader>);
|
|
392
|
+
|
|
393
|
+
static readonly runtime: typeof proto3;
|
|
394
|
+
static readonly typeName = "livekit.MetricsRecordingHeader";
|
|
395
|
+
static readonly fields: FieldList;
|
|
396
|
+
|
|
397
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsRecordingHeader;
|
|
398
|
+
|
|
399
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
|
|
400
|
+
|
|
401
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsRecordingHeader;
|
|
402
|
+
|
|
403
|
+
static equals(a: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined, b: MetricsRecordingHeader | PlainMessage<MetricsRecordingHeader> | undefined): boolean;
|
|
404
|
+
}
|
|
405
|
+
|
|
@@ -95,3 +95,14 @@ export const EventMetric = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
95
95
|
],
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* @generated from message livekit.MetricsRecordingHeader
|
|
100
|
+
*/
|
|
101
|
+
export const MetricsRecordingHeader = /*@__PURE__*/ proto3.makeMessageType(
|
|
102
|
+
"livekit.MetricsRecordingHeader",
|
|
103
|
+
() => [
|
|
104
|
+
{ no: 1, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
|
+
{ no: 2, name: "enable_user_data_training", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
106
|
+
],
|
|
107
|
+
);
|
|
108
|
+
|
|
@@ -39,6 +39,11 @@ export declare enum AudioCodec {
|
|
|
39
39
|
* @generated from enum value: AAC = 2;
|
|
40
40
|
*/
|
|
41
41
|
AAC = 2,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: AC_MP3 = 3;
|
|
45
|
+
*/
|
|
46
|
+
AC_MP3 = 3,
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
/**
|
|
@@ -473,6 +478,30 @@ export declare class Pagination extends Message<Pagination> {
|
|
|
473
478
|
static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
|
|
474
479
|
}
|
|
475
480
|
|
|
481
|
+
/**
|
|
482
|
+
* @generated from message livekit.TokenPagination
|
|
483
|
+
*/
|
|
484
|
+
export declare class TokenPagination extends Message<TokenPagination> {
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: string token = 1;
|
|
487
|
+
*/
|
|
488
|
+
token: string;
|
|
489
|
+
|
|
490
|
+
constructor(data?: PartialMessage<TokenPagination>);
|
|
491
|
+
|
|
492
|
+
static readonly runtime: typeof proto3;
|
|
493
|
+
static readonly typeName = "livekit.TokenPagination";
|
|
494
|
+
static readonly fields: FieldList;
|
|
495
|
+
|
|
496
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenPagination;
|
|
497
|
+
|
|
498
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenPagination;
|
|
499
|
+
|
|
500
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPagination;
|
|
501
|
+
|
|
502
|
+
static equals(a: TokenPagination | PlainMessage<TokenPagination> | undefined, b: TokenPagination | PlainMessage<TokenPagination> | undefined): boolean;
|
|
503
|
+
}
|
|
504
|
+
|
|
476
505
|
/**
|
|
477
506
|
* ListUpdate is used for updated APIs where 'repeated string' field is modified.
|
|
478
507
|
*
|
|
@@ -486,6 +515,27 @@ export declare class ListUpdate extends Message<ListUpdate> {
|
|
|
486
515
|
*/
|
|
487
516
|
set: string[];
|
|
488
517
|
|
|
518
|
+
/**
|
|
519
|
+
* append items to a list, avoiding duplicates
|
|
520
|
+
*
|
|
521
|
+
* @generated from field: repeated string add = 2;
|
|
522
|
+
*/
|
|
523
|
+
add: string[];
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* delete items from a list
|
|
527
|
+
*
|
|
528
|
+
* @generated from field: repeated string remove = 3;
|
|
529
|
+
*/
|
|
530
|
+
remove: string[];
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* sets the list to an empty list
|
|
534
|
+
*
|
|
535
|
+
* @generated from field: bool clear = 4;
|
|
536
|
+
*/
|
|
537
|
+
clear: boolean;
|
|
538
|
+
|
|
489
539
|
constructor(data?: PartialMessage<ListUpdate>);
|
|
490
540
|
|
|
491
541
|
static readonly runtime: typeof proto3;
|
|
@@ -916,6 +966,15 @@ export declare enum ParticipantInfo_Kind {
|
|
|
916
966
|
* @generated from enum value: AGENT = 4;
|
|
917
967
|
*/
|
|
918
968
|
AGENT = 4,
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Connectors participants
|
|
972
|
+
*
|
|
973
|
+
* NEXT_ID: 8
|
|
974
|
+
*
|
|
975
|
+
* @generated from enum value: CONNECTOR = 7;
|
|
976
|
+
*/
|
|
977
|
+
CONNECTOR = 7,
|
|
919
978
|
}
|
|
920
979
|
|
|
921
980
|
/**
|
|
@@ -996,6 +1055,21 @@ export declare class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
|
|
|
996
1055
|
*/
|
|
997
1056
|
layers: VideoLayer[];
|
|
998
1057
|
|
|
1058
|
+
/**
|
|
1059
|
+
* @generated from field: livekit.VideoLayer.Mode video_layer_mode = 5;
|
|
1060
|
+
*/
|
|
1061
|
+
videoLayerMode: VideoLayer_Mode;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* cid (client side id for track) could be different between
|
|
1065
|
+
* signalling (AddTrackRequest) and SDP offer. This field
|
|
1066
|
+
* will be populated only if it is different to avoid
|
|
1067
|
+
* duplication and keep the representation concise.
|
|
1068
|
+
*
|
|
1069
|
+
* @generated from field: string sdp_cid = 6;
|
|
1070
|
+
*/
|
|
1071
|
+
sdpCid: string;
|
|
1072
|
+
|
|
999
1073
|
constructor(data?: PartialMessage<SimulcastCodecInfo>);
|
|
1000
1074
|
|
|
1001
1075
|
static readonly runtime: typeof proto3;
|
|
@@ -1053,14 +1127,20 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1053
1127
|
/**
|
|
1054
1128
|
* true if track is simulcasted
|
|
1055
1129
|
*
|
|
1056
|
-
*
|
|
1130
|
+
* see `video_layer_mode` in `codecs`
|
|
1131
|
+
*
|
|
1132
|
+
* @generated from field: bool simulcast = 7 [deprecated = true];
|
|
1133
|
+
* @deprecated
|
|
1057
1134
|
*/
|
|
1058
1135
|
simulcast: boolean;
|
|
1059
1136
|
|
|
1060
1137
|
/**
|
|
1061
1138
|
* true if DTX (Discontinuous Transmission) is disabled for audio
|
|
1062
1139
|
*
|
|
1063
|
-
*
|
|
1140
|
+
* deprecated in favor of `audio_features`
|
|
1141
|
+
*
|
|
1142
|
+
* @generated from field: bool disable_dtx = 8 [deprecated = true];
|
|
1143
|
+
* @deprecated
|
|
1064
1144
|
*/
|
|
1065
1145
|
disableDtx: boolean;
|
|
1066
1146
|
|
|
@@ -1072,7 +1152,10 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1072
1152
|
source: TrackSource;
|
|
1073
1153
|
|
|
1074
1154
|
/**
|
|
1075
|
-
*
|
|
1155
|
+
* see `codecs` for layers of individual codec
|
|
1156
|
+
*
|
|
1157
|
+
* @generated from field: repeated livekit.VideoLayer layers = 10 [deprecated = true];
|
|
1158
|
+
* @deprecated
|
|
1076
1159
|
*/
|
|
1077
1160
|
layers: VideoLayer[];
|
|
1078
1161
|
|
|
@@ -1094,7 +1177,10 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1094
1177
|
codecs: SimulcastCodecInfo[];
|
|
1095
1178
|
|
|
1096
1179
|
/**
|
|
1097
|
-
*
|
|
1180
|
+
* deprecated in favor of `audio_features`
|
|
1181
|
+
*
|
|
1182
|
+
* @generated from field: bool stereo = 14 [deprecated = true];
|
|
1183
|
+
* @deprecated
|
|
1098
1184
|
*/
|
|
1099
1185
|
stereo: boolean;
|
|
1100
1186
|
|
|
@@ -1205,6 +1291,31 @@ export declare class VideoLayer extends Message<VideoLayer> {
|
|
|
1205
1291
|
static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean;
|
|
1206
1292
|
}
|
|
1207
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from enum livekit.VideoLayer.Mode
|
|
1296
|
+
*/
|
|
1297
|
+
export declare enum VideoLayer_Mode {
|
|
1298
|
+
/**
|
|
1299
|
+
* @generated from enum value: MODE_UNUSED = 0;
|
|
1300
|
+
*/
|
|
1301
|
+
MODE_UNUSED = 0,
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM = 1;
|
|
1305
|
+
*/
|
|
1306
|
+
ONE_SPATIAL_LAYER_PER_STREAM = 1,
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* @generated from enum value: MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2;
|
|
1310
|
+
*/
|
|
1311
|
+
MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2,
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3;
|
|
1315
|
+
*/
|
|
1316
|
+
ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3,
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1208
1319
|
/**
|
|
1209
1320
|
* new DataPacket API
|
|
1210
1321
|
*
|
|
@@ -1307,6 +1418,12 @@ export declare class DataPacket extends Message<DataPacket> {
|
|
|
1307
1418
|
*/
|
|
1308
1419
|
value: DataStream_Trailer;
|
|
1309
1420
|
case: "streamTrailer";
|
|
1421
|
+
} | {
|
|
1422
|
+
/**
|
|
1423
|
+
* @generated from field: livekit.EncryptedPacket encrypted_packet = 18;
|
|
1424
|
+
*/
|
|
1425
|
+
value: EncryptedPacket;
|
|
1426
|
+
case: "encryptedPacket";
|
|
1310
1427
|
} | { case: undefined; value?: undefined };
|
|
1311
1428
|
|
|
1312
1429
|
/**
|
|
@@ -1353,8 +1470,122 @@ export declare enum DataPacket_Kind {
|
|
|
1353
1470
|
LOSSY = 1,
|
|
1354
1471
|
}
|
|
1355
1472
|
|
|
1473
|
+
/**
|
|
1474
|
+
* @generated from message livekit.EncryptedPacket
|
|
1475
|
+
*/
|
|
1476
|
+
export declare class EncryptedPacket extends Message<EncryptedPacket> {
|
|
1477
|
+
/**
|
|
1478
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 1;
|
|
1479
|
+
*/
|
|
1480
|
+
encryptionType: Encryption_Type;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* @generated from field: bytes iv = 2;
|
|
1484
|
+
*/
|
|
1485
|
+
iv: Uint8Array;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* @generated from field: uint32 key_index = 3;
|
|
1489
|
+
*/
|
|
1490
|
+
keyIndex: number;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* This is an encrypted EncryptedPacketPayload message representation
|
|
1494
|
+
*
|
|
1495
|
+
* @generated from field: bytes encrypted_value = 4;
|
|
1496
|
+
*/
|
|
1497
|
+
encryptedValue: Uint8Array;
|
|
1498
|
+
|
|
1499
|
+
constructor(data?: PartialMessage<EncryptedPacket>);
|
|
1500
|
+
|
|
1501
|
+
static readonly runtime: typeof proto3;
|
|
1502
|
+
static readonly typeName = "livekit.EncryptedPacket";
|
|
1503
|
+
static readonly fields: FieldList;
|
|
1504
|
+
|
|
1505
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacket;
|
|
1506
|
+
|
|
1507
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1508
|
+
|
|
1509
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1510
|
+
|
|
1511
|
+
static equals(a: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined, b: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined): boolean;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
1516
|
+
*/
|
|
1517
|
+
export declare class EncryptedPacketPayload extends Message<EncryptedPacketPayload> {
|
|
1518
|
+
/**
|
|
1519
|
+
* @generated from oneof livekit.EncryptedPacketPayload.value
|
|
1520
|
+
*/
|
|
1521
|
+
value: {
|
|
1522
|
+
/**
|
|
1523
|
+
* @generated from field: livekit.UserPacket user = 1;
|
|
1524
|
+
*/
|
|
1525
|
+
value: UserPacket;
|
|
1526
|
+
case: "user";
|
|
1527
|
+
} | {
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from field: livekit.ChatMessage chat_message = 3;
|
|
1530
|
+
*/
|
|
1531
|
+
value: ChatMessage;
|
|
1532
|
+
case: "chatMessage";
|
|
1533
|
+
} | {
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated from field: livekit.RpcRequest rpc_request = 4;
|
|
1536
|
+
*/
|
|
1537
|
+
value: RpcRequest;
|
|
1538
|
+
case: "rpcRequest";
|
|
1539
|
+
} | {
|
|
1540
|
+
/**
|
|
1541
|
+
* @generated from field: livekit.RpcAck rpc_ack = 5;
|
|
1542
|
+
*/
|
|
1543
|
+
value: RpcAck;
|
|
1544
|
+
case: "rpcAck";
|
|
1545
|
+
} | {
|
|
1546
|
+
/**
|
|
1547
|
+
* @generated from field: livekit.RpcResponse rpc_response = 6;
|
|
1548
|
+
*/
|
|
1549
|
+
value: RpcResponse;
|
|
1550
|
+
case: "rpcResponse";
|
|
1551
|
+
} | {
|
|
1552
|
+
/**
|
|
1553
|
+
* @generated from field: livekit.DataStream.Header stream_header = 7;
|
|
1554
|
+
*/
|
|
1555
|
+
value: DataStream_Header;
|
|
1556
|
+
case: "streamHeader";
|
|
1557
|
+
} | {
|
|
1558
|
+
/**
|
|
1559
|
+
* @generated from field: livekit.DataStream.Chunk stream_chunk = 8;
|
|
1560
|
+
*/
|
|
1561
|
+
value: DataStream_Chunk;
|
|
1562
|
+
case: "streamChunk";
|
|
1563
|
+
} | {
|
|
1564
|
+
/**
|
|
1565
|
+
* @generated from field: livekit.DataStream.Trailer stream_trailer = 9;
|
|
1566
|
+
*/
|
|
1567
|
+
value: DataStream_Trailer;
|
|
1568
|
+
case: "streamTrailer";
|
|
1569
|
+
} | { case: undefined; value?: undefined };
|
|
1570
|
+
|
|
1571
|
+
constructor(data?: PartialMessage<EncryptedPacketPayload>);
|
|
1572
|
+
|
|
1573
|
+
static readonly runtime: typeof proto3;
|
|
1574
|
+
static readonly typeName = "livekit.EncryptedPacketPayload";
|
|
1575
|
+
static readonly fields: FieldList;
|
|
1576
|
+
|
|
1577
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacketPayload;
|
|
1578
|
+
|
|
1579
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1580
|
+
|
|
1581
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1582
|
+
|
|
1583
|
+
static equals(a: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined, b: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined): boolean;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1356
1586
|
/**
|
|
1357
1587
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
1588
|
+
* @deprecated
|
|
1358
1589
|
*/
|
|
1359
1590
|
export declare class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
|
|
1360
1591
|
/**
|
|
@@ -1464,7 +1695,7 @@ export declare class UserPacket extends Message<UserPacket> {
|
|
|
1464
1695
|
topic?: string;
|
|
1465
1696
|
|
|
1466
1697
|
/**
|
|
1467
|
-
* Unique ID to
|
|
1698
|
+
* Unique ID to identify the message
|
|
1468
1699
|
*
|
|
1469
1700
|
* @generated from field: optional string id = 8;
|
|
1470
1701
|
*/
|
|
@@ -2913,9 +3144,10 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
|
|
|
2913
3144
|
totalLength?: bigint;
|
|
2914
3145
|
|
|
2915
3146
|
/**
|
|
2916
|
-
*
|
|
3147
|
+
* this is set on the DataPacket
|
|
2917
3148
|
*
|
|
2918
|
-
* @generated from field: livekit.Encryption.Type encryption_type = 7;
|
|
3149
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 7 [deprecated = true];
|
|
3150
|
+
* @deprecated
|
|
2919
3151
|
*/
|
|
2920
3152
|
encryptionType: Encryption_Type;
|
|
2921
3153
|
|
|
@@ -2991,9 +3223,10 @@ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
|
|
|
2991
3223
|
version: number;
|
|
2992
3224
|
|
|
2993
3225
|
/**
|
|
2994
|
-
*
|
|
3226
|
+
* this is set on the DataPacket
|
|
2995
3227
|
*
|
|
2996
|
-
* @generated from field: optional bytes iv = 5;
|
|
3228
|
+
* @generated from field: optional bytes iv = 5 [deprecated = true];
|
|
3229
|
+
* @deprecated
|
|
2997
3230
|
*/
|
|
2998
3231
|
iv?: Uint8Array;
|
|
2999
3232
|
|
|
@@ -3052,6 +3285,35 @@ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
|
|
|
3052
3285
|
static equals(a: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined, b: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined): boolean;
|
|
3053
3286
|
}
|
|
3054
3287
|
|
|
3288
|
+
/**
|
|
3289
|
+
* @generated from message livekit.FilterParams
|
|
3290
|
+
*/
|
|
3291
|
+
export declare class FilterParams extends Message<FilterParams> {
|
|
3292
|
+
/**
|
|
3293
|
+
* @generated from field: repeated string include_events = 1;
|
|
3294
|
+
*/
|
|
3295
|
+
includeEvents: string[];
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* @generated from field: repeated string exclude_events = 2;
|
|
3299
|
+
*/
|
|
3300
|
+
excludeEvents: string[];
|
|
3301
|
+
|
|
3302
|
+
constructor(data?: PartialMessage<FilterParams>);
|
|
3303
|
+
|
|
3304
|
+
static readonly runtime: typeof proto3;
|
|
3305
|
+
static readonly typeName = "livekit.FilterParams";
|
|
3306
|
+
static readonly fields: FieldList;
|
|
3307
|
+
|
|
3308
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FilterParams;
|
|
3309
|
+
|
|
3310
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FilterParams;
|
|
3311
|
+
|
|
3312
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FilterParams;
|
|
3313
|
+
|
|
3314
|
+
static equals(a: FilterParams | PlainMessage<FilterParams> | undefined, b: FilterParams | PlainMessage<FilterParams> | undefined): boolean;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3055
3317
|
/**
|
|
3056
3318
|
* @generated from message livekit.WebhookConfig
|
|
3057
3319
|
*/
|
|
@@ -3066,6 +3328,11 @@ export declare class WebhookConfig extends Message<WebhookConfig> {
|
|
|
3066
3328
|
*/
|
|
3067
3329
|
signingKey: string;
|
|
3068
3330
|
|
|
3331
|
+
/**
|
|
3332
|
+
* @generated from field: livekit.FilterParams filter_params = 3;
|
|
3333
|
+
*/
|
|
3334
|
+
filterParams?: FilterParams;
|
|
3335
|
+
|
|
3069
3336
|
constructor(data?: PartialMessage<WebhookConfig>);
|
|
3070
3337
|
|
|
3071
3338
|
static readonly runtime: typeof proto3;
|
|
@@ -3081,3 +3348,32 @@ export declare class WebhookConfig extends Message<WebhookConfig> {
|
|
|
3081
3348
|
static equals(a: WebhookConfig | PlainMessage<WebhookConfig> | undefined, b: WebhookConfig | PlainMessage<WebhookConfig> | undefined): boolean;
|
|
3082
3349
|
}
|
|
3083
3350
|
|
|
3351
|
+
/**
|
|
3352
|
+
* @generated from message livekit.SubscribedAudioCodec
|
|
3353
|
+
*/
|
|
3354
|
+
export declare class SubscribedAudioCodec extends Message<SubscribedAudioCodec> {
|
|
3355
|
+
/**
|
|
3356
|
+
* @generated from field: string codec = 1;
|
|
3357
|
+
*/
|
|
3358
|
+
codec: string;
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* @generated from field: bool enabled = 2;
|
|
3362
|
+
*/
|
|
3363
|
+
enabled: boolean;
|
|
3364
|
+
|
|
3365
|
+
constructor(data?: PartialMessage<SubscribedAudioCodec>);
|
|
3366
|
+
|
|
3367
|
+
static readonly runtime: typeof proto3;
|
|
3368
|
+
static readonly typeName = "livekit.SubscribedAudioCodec";
|
|
3369
|
+
static readonly fields: FieldList;
|
|
3370
|
+
|
|
3371
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodec;
|
|
3372
|
+
|
|
3373
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
|
|
3374
|
+
|
|
3375
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
|
|
3376
|
+
|
|
3377
|
+
static equals(a: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined, b: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined): boolean;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
@@ -29,6 +29,7 @@ export const AudioCodec = /*@__PURE__*/ proto3.makeEnum(
|
|
|
29
29
|
{no: 0, name: "DEFAULT_AC"},
|
|
30
30
|
{no: 1, name: "OPUS"},
|
|
31
31
|
{no: 2, name: "AAC"},
|
|
32
|
+
{no: 3, name: "AC_MP3"},
|
|
32
33
|
],
|
|
33
34
|
);
|
|
34
35
|
|
|
@@ -213,6 +214,16 @@ export const Pagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
213
214
|
],
|
|
214
215
|
);
|
|
215
216
|
|
|
217
|
+
/**
|
|
218
|
+
* @generated from message livekit.TokenPagination
|
|
219
|
+
*/
|
|
220
|
+
export const TokenPagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
221
|
+
"livekit.TokenPagination",
|
|
222
|
+
() => [
|
|
223
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
224
|
+
],
|
|
225
|
+
);
|
|
226
|
+
|
|
216
227
|
/**
|
|
217
228
|
* ListUpdate is used for updated APIs where 'repeated string' field is modified.
|
|
218
229
|
*
|
|
@@ -222,6 +233,9 @@ export const ListUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
222
233
|
"livekit.ListUpdate",
|
|
223
234
|
() => [
|
|
224
235
|
{ no: 1, name: "set", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
236
|
+
{ no: 2, name: "add", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
237
|
+
{ no: 3, name: "remove", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
238
|
+
{ no: 4, name: "clear", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
225
239
|
],
|
|
226
240
|
);
|
|
227
241
|
|
|
@@ -338,6 +352,7 @@ export const ParticipantInfo_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
338
352
|
{no: 2, name: "EGRESS"},
|
|
339
353
|
{no: 3, name: "SIP"},
|
|
340
354
|
{no: 4, name: "AGENT"},
|
|
355
|
+
{no: 7, name: "CONNECTOR"},
|
|
341
356
|
],
|
|
342
357
|
);
|
|
343
358
|
|
|
@@ -382,6 +397,8 @@ export const SimulcastCodecInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
382
397
|
{ no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
383
398
|
{ no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
384
399
|
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
400
|
+
{ no: 5, name: "video_layer_mode", kind: "enum", T: proto3.getEnumType(VideoLayer_Mode) },
|
|
401
|
+
{ no: 6, name: "sdp_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
385
402
|
],
|
|
386
403
|
);
|
|
387
404
|
|
|
@@ -432,6 +449,19 @@ export const VideoLayer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
432
449
|
],
|
|
433
450
|
);
|
|
434
451
|
|
|
452
|
+
/**
|
|
453
|
+
* @generated from enum livekit.VideoLayer.Mode
|
|
454
|
+
*/
|
|
455
|
+
export const VideoLayer_Mode = /*@__PURE__*/ proto3.makeEnum(
|
|
456
|
+
"livekit.VideoLayer.Mode",
|
|
457
|
+
[
|
|
458
|
+
{no: 0, name: "MODE_UNUSED"},
|
|
459
|
+
{no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM"},
|
|
460
|
+
{no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM"},
|
|
461
|
+
{no: 3, name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR"},
|
|
462
|
+
],
|
|
463
|
+
);
|
|
464
|
+
|
|
435
465
|
/**
|
|
436
466
|
* new DataPacket API
|
|
437
467
|
*
|
|
@@ -455,6 +485,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
455
485
|
{ no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
456
486
|
{ no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
457
487
|
{ no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
488
|
+
{ no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
|
|
458
489
|
{ no: 16, name: "sequence", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
459
490
|
{ no: 17, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
460
491
|
],
|
|
@@ -471,8 +502,39 @@ export const DataPacket_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
471
502
|
],
|
|
472
503
|
);
|
|
473
504
|
|
|
505
|
+
/**
|
|
506
|
+
* @generated from message livekit.EncryptedPacket
|
|
507
|
+
*/
|
|
508
|
+
export const EncryptedPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
509
|
+
"livekit.EncryptedPacket",
|
|
510
|
+
() => [
|
|
511
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
512
|
+
{ no: 2, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
513
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
514
|
+
{ no: 4, name: "encrypted_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
515
|
+
],
|
|
516
|
+
);
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
520
|
+
*/
|
|
521
|
+
export const EncryptedPacketPayload = /*@__PURE__*/ proto3.makeMessageType(
|
|
522
|
+
"livekit.EncryptedPacketPayload",
|
|
523
|
+
() => [
|
|
524
|
+
{ no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
525
|
+
{ no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
|
|
526
|
+
{ no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
|
|
527
|
+
{ no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
|
|
528
|
+
{ no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
|
|
529
|
+
{ no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
530
|
+
{ no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
531
|
+
{ no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
532
|
+
],
|
|
533
|
+
);
|
|
534
|
+
|
|
474
535
|
/**
|
|
475
536
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
537
|
+
* @deprecated
|
|
476
538
|
*/
|
|
477
539
|
export const ActiveSpeakerUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
478
540
|
"livekit.ActiveSpeakerUpdate",
|
|
@@ -985,6 +1047,17 @@ export const DataStream_Trailer = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
985
1047
|
{localName: "DataStream_Trailer"},
|
|
986
1048
|
);
|
|
987
1049
|
|
|
1050
|
+
/**
|
|
1051
|
+
* @generated from message livekit.FilterParams
|
|
1052
|
+
*/
|
|
1053
|
+
export const FilterParams = /*@__PURE__*/ proto3.makeMessageType(
|
|
1054
|
+
"livekit.FilterParams",
|
|
1055
|
+
() => [
|
|
1056
|
+
{ no: 1, name: "include_events", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1057
|
+
{ no: 2, name: "exclude_events", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1058
|
+
],
|
|
1059
|
+
);
|
|
1060
|
+
|
|
988
1061
|
/**
|
|
989
1062
|
* @generated from message livekit.WebhookConfig
|
|
990
1063
|
*/
|
|
@@ -993,6 +1066,18 @@ export const WebhookConfig = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
993
1066
|
() => [
|
|
994
1067
|
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
995
1068
|
{ no: 2, name: "signing_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1069
|
+
{ no: 3, name: "filter_params", kind: "message", T: FilterParams },
|
|
1070
|
+
],
|
|
1071
|
+
);
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* @generated from message livekit.SubscribedAudioCodec
|
|
1075
|
+
*/
|
|
1076
|
+
export const SubscribedAudioCodec = /*@__PURE__*/ proto3.makeMessageType(
|
|
1077
|
+
"livekit.SubscribedAudioCodec",
|
|
1078
|
+
() => [
|
|
1079
|
+
{ no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1080
|
+
{ no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
996
1081
|
],
|
|
997
1082
|
);
|
|
998
1083
|
|