@livekit/protocol 1.40.0 → 2.0.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 +79 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -8
- package/dist/index.d.mts +194 -8
- package/dist/index.d.ts +194 -8
- package/dist/index.mjs +76 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -0
- package/src/gen/livekit_models_pb.d.ts +150 -5
- package/src/gen/livekit_models_pb.js +41 -0
- package/src/gen/livekit_phone_number_pb.d.ts +577 -0
- package/src/gen/livekit_phone_number_pb.js +198 -0
- package/src/gen/livekit_rtc_pb.d.ts +43 -2
- package/src/gen/livekit_rtc_pb.js +12 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -707,6 +707,11 @@ export declare class StartSession extends Message<StartSession> {
|
|
|
707
707
|
*/
|
|
708
708
|
syncState?: SyncState;
|
|
709
709
|
|
|
710
|
+
/**
|
|
711
|
+
* @generated from field: bool use_single_peer_connection = 24;
|
|
712
|
+
*/
|
|
713
|
+
useSinglePeerConnection: boolean;
|
|
714
|
+
|
|
710
715
|
constructor(data?: PartialMessage<StartSession>);
|
|
711
716
|
|
|
712
717
|
static readonly runtime: typeof proto3;
|
|
@@ -198,6 +198,7 @@ export const StartSession = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
198
198
|
{ no: 21, name: "add_track_requests", kind: "message", T: AddTrackRequest, repeated: true },
|
|
199
199
|
{ no: 22, name: "publisher_offer", kind: "message", T: SessionDescription },
|
|
200
200
|
{ no: 23, name: "sync_state", kind: "message", T: SyncState },
|
|
201
|
+
{ no: 24, name: "use_single_peer_connection", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
201
202
|
],
|
|
202
203
|
);
|
|
203
204
|
|
|
@@ -473,6 +473,30 @@ export declare class Pagination extends Message<Pagination> {
|
|
|
473
473
|
static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
+
/**
|
|
477
|
+
* @generated from message livekit.TokenPagination
|
|
478
|
+
*/
|
|
479
|
+
export declare class TokenPagination extends Message<TokenPagination> {
|
|
480
|
+
/**
|
|
481
|
+
* @generated from field: string token = 1;
|
|
482
|
+
*/
|
|
483
|
+
token: string;
|
|
484
|
+
|
|
485
|
+
constructor(data?: PartialMessage<TokenPagination>);
|
|
486
|
+
|
|
487
|
+
static readonly runtime: typeof proto3;
|
|
488
|
+
static readonly typeName = "livekit.TokenPagination";
|
|
489
|
+
static readonly fields: FieldList;
|
|
490
|
+
|
|
491
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenPagination;
|
|
492
|
+
|
|
493
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenPagination;
|
|
494
|
+
|
|
495
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPagination;
|
|
496
|
+
|
|
497
|
+
static equals(a: TokenPagination | PlainMessage<TokenPagination> | undefined, b: TokenPagination | PlainMessage<TokenPagination> | undefined): boolean;
|
|
498
|
+
}
|
|
499
|
+
|
|
476
500
|
/**
|
|
477
501
|
* ListUpdate is used for updated APIs where 'repeated string' field is modified.
|
|
478
502
|
*
|
|
@@ -1377,6 +1401,12 @@ export declare class DataPacket extends Message<DataPacket> {
|
|
|
1377
1401
|
*/
|
|
1378
1402
|
value: DataStream_Trailer;
|
|
1379
1403
|
case: "streamTrailer";
|
|
1404
|
+
} | {
|
|
1405
|
+
/**
|
|
1406
|
+
* @generated from field: livekit.EncryptedPacket encrypted_packet = 18;
|
|
1407
|
+
*/
|
|
1408
|
+
value: EncryptedPacket;
|
|
1409
|
+
case: "encryptedPacket";
|
|
1380
1410
|
} | { case: undefined; value?: undefined };
|
|
1381
1411
|
|
|
1382
1412
|
/**
|
|
@@ -1423,6 +1453,119 @@ export declare enum DataPacket_Kind {
|
|
|
1423
1453
|
LOSSY = 1,
|
|
1424
1454
|
}
|
|
1425
1455
|
|
|
1456
|
+
/**
|
|
1457
|
+
* @generated from message livekit.EncryptedPacket
|
|
1458
|
+
*/
|
|
1459
|
+
export declare class EncryptedPacket extends Message<EncryptedPacket> {
|
|
1460
|
+
/**
|
|
1461
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 1;
|
|
1462
|
+
*/
|
|
1463
|
+
encryptionType: Encryption_Type;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated from field: bytes iv = 2;
|
|
1467
|
+
*/
|
|
1468
|
+
iv: Uint8Array;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* @generated from field: uint32 key_index = 3;
|
|
1472
|
+
*/
|
|
1473
|
+
keyIndex: number;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* This is an encrypted EncryptedPacketPayload message representation
|
|
1477
|
+
*
|
|
1478
|
+
* @generated from field: bytes encrypted_value = 4;
|
|
1479
|
+
*/
|
|
1480
|
+
encryptedValue: Uint8Array;
|
|
1481
|
+
|
|
1482
|
+
constructor(data?: PartialMessage<EncryptedPacket>);
|
|
1483
|
+
|
|
1484
|
+
static readonly runtime: typeof proto3;
|
|
1485
|
+
static readonly typeName = "livekit.EncryptedPacket";
|
|
1486
|
+
static readonly fields: FieldList;
|
|
1487
|
+
|
|
1488
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacket;
|
|
1489
|
+
|
|
1490
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1491
|
+
|
|
1492
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1493
|
+
|
|
1494
|
+
static equals(a: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined, b: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined): boolean;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
1499
|
+
*/
|
|
1500
|
+
export declare class EncryptedPacketPayload extends Message<EncryptedPacketPayload> {
|
|
1501
|
+
/**
|
|
1502
|
+
* @generated from oneof livekit.EncryptedPacketPayload.value
|
|
1503
|
+
*/
|
|
1504
|
+
value: {
|
|
1505
|
+
/**
|
|
1506
|
+
* @generated from field: livekit.UserPacket user = 1;
|
|
1507
|
+
*/
|
|
1508
|
+
value: UserPacket;
|
|
1509
|
+
case: "user";
|
|
1510
|
+
} | {
|
|
1511
|
+
/**
|
|
1512
|
+
* @generated from field: livekit.ChatMessage chat_message = 3;
|
|
1513
|
+
*/
|
|
1514
|
+
value: ChatMessage;
|
|
1515
|
+
case: "chatMessage";
|
|
1516
|
+
} | {
|
|
1517
|
+
/**
|
|
1518
|
+
* @generated from field: livekit.RpcRequest rpc_request = 4;
|
|
1519
|
+
*/
|
|
1520
|
+
value: RpcRequest;
|
|
1521
|
+
case: "rpcRequest";
|
|
1522
|
+
} | {
|
|
1523
|
+
/**
|
|
1524
|
+
* @generated from field: livekit.RpcAck rpc_ack = 5;
|
|
1525
|
+
*/
|
|
1526
|
+
value: RpcAck;
|
|
1527
|
+
case: "rpcAck";
|
|
1528
|
+
} | {
|
|
1529
|
+
/**
|
|
1530
|
+
* @generated from field: livekit.RpcResponse rpc_response = 6;
|
|
1531
|
+
*/
|
|
1532
|
+
value: RpcResponse;
|
|
1533
|
+
case: "rpcResponse";
|
|
1534
|
+
} | {
|
|
1535
|
+
/**
|
|
1536
|
+
* @generated from field: livekit.DataStream.Header stream_header = 7;
|
|
1537
|
+
*/
|
|
1538
|
+
value: DataStream_Header;
|
|
1539
|
+
case: "streamHeader";
|
|
1540
|
+
} | {
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from field: livekit.DataStream.Chunk stream_chunk = 8;
|
|
1543
|
+
*/
|
|
1544
|
+
value: DataStream_Chunk;
|
|
1545
|
+
case: "streamChunk";
|
|
1546
|
+
} | {
|
|
1547
|
+
/**
|
|
1548
|
+
* @generated from field: livekit.DataStream.Trailer stream_trailer = 9;
|
|
1549
|
+
*/
|
|
1550
|
+
value: DataStream_Trailer;
|
|
1551
|
+
case: "streamTrailer";
|
|
1552
|
+
} | { case: undefined; value?: undefined };
|
|
1553
|
+
|
|
1554
|
+
constructor(data?: PartialMessage<EncryptedPacketPayload>);
|
|
1555
|
+
|
|
1556
|
+
static readonly runtime: typeof proto3;
|
|
1557
|
+
static readonly typeName = "livekit.EncryptedPacketPayload";
|
|
1558
|
+
static readonly fields: FieldList;
|
|
1559
|
+
|
|
1560
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacketPayload;
|
|
1561
|
+
|
|
1562
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1563
|
+
|
|
1564
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1565
|
+
|
|
1566
|
+
static equals(a: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined, b: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined): boolean;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1426
1569
|
/**
|
|
1427
1570
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
1428
1571
|
* @deprecated
|
|
@@ -1535,7 +1678,7 @@ export declare class UserPacket extends Message<UserPacket> {
|
|
|
1535
1678
|
topic?: string;
|
|
1536
1679
|
|
|
1537
1680
|
/**
|
|
1538
|
-
* Unique ID to
|
|
1681
|
+
* Unique ID to identify the message
|
|
1539
1682
|
*
|
|
1540
1683
|
* @generated from field: optional string id = 8;
|
|
1541
1684
|
*/
|
|
@@ -2984,9 +3127,10 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
|
|
|
2984
3127
|
totalLength?: bigint;
|
|
2985
3128
|
|
|
2986
3129
|
/**
|
|
2987
|
-
*
|
|
3130
|
+
* this is set on the DataPacket
|
|
2988
3131
|
*
|
|
2989
|
-
* @generated from field: livekit.Encryption.Type encryption_type = 7;
|
|
3132
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 7 [deprecated = true];
|
|
3133
|
+
* @deprecated
|
|
2990
3134
|
*/
|
|
2991
3135
|
encryptionType: Encryption_Type;
|
|
2992
3136
|
|
|
@@ -3062,9 +3206,10 @@ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
|
|
|
3062
3206
|
version: number;
|
|
3063
3207
|
|
|
3064
3208
|
/**
|
|
3065
|
-
*
|
|
3209
|
+
* this is set on the DataPacket
|
|
3066
3210
|
*
|
|
3067
|
-
* @generated from field: optional bytes iv = 5;
|
|
3211
|
+
* @generated from field: optional bytes iv = 5 [deprecated = true];
|
|
3212
|
+
* @deprecated
|
|
3068
3213
|
*/
|
|
3069
3214
|
iv?: Uint8Array;
|
|
3070
3215
|
|
|
@@ -213,6 +213,16 @@ export const Pagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
213
213
|
],
|
|
214
214
|
);
|
|
215
215
|
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message livekit.TokenPagination
|
|
218
|
+
*/
|
|
219
|
+
export const TokenPagination = /*@__PURE__*/ proto3.makeMessageType(
|
|
220
|
+
"livekit.TokenPagination",
|
|
221
|
+
() => [
|
|
222
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
223
|
+
],
|
|
224
|
+
);
|
|
225
|
+
|
|
216
226
|
/**
|
|
217
227
|
* ListUpdate is used for updated APIs where 'repeated string' field is modified.
|
|
218
228
|
*
|
|
@@ -472,6 +482,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
472
482
|
{ no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
473
483
|
{ no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
474
484
|
{ no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
485
|
+
{ no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
|
|
475
486
|
{ no: 16, name: "sequence", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
476
487
|
{ no: 17, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
477
488
|
],
|
|
@@ -488,6 +499,36 @@ export const DataPacket_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
488
499
|
],
|
|
489
500
|
);
|
|
490
501
|
|
|
502
|
+
/**
|
|
503
|
+
* @generated from message livekit.EncryptedPacket
|
|
504
|
+
*/
|
|
505
|
+
export const EncryptedPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
506
|
+
"livekit.EncryptedPacket",
|
|
507
|
+
() => [
|
|
508
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
509
|
+
{ no: 2, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
510
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
511
|
+
{ no: 4, name: "encrypted_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
512
|
+
],
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
517
|
+
*/
|
|
518
|
+
export const EncryptedPacketPayload = /*@__PURE__*/ proto3.makeMessageType(
|
|
519
|
+
"livekit.EncryptedPacketPayload",
|
|
520
|
+
() => [
|
|
521
|
+
{ no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
522
|
+
{ no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
|
|
523
|
+
{ no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
|
|
524
|
+
{ no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
|
|
525
|
+
{ no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
|
|
526
|
+
{ no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
527
|
+
{ no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
528
|
+
{ no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
529
|
+
],
|
|
530
|
+
);
|
|
531
|
+
|
|
491
532
|
/**
|
|
492
533
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
493
534
|
* @deprecated
|