@livekit/protocol 1.40.0 → 1.42.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 +248 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +564 -14
- package/dist/index.d.mts +564 -14
- package/dist/index.d.ts +564 -14
- package/dist/index.mjs +239 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +35 -0
- package/src/gen/livekit_cloud_agent_pb.js +15 -0
- package/src/gen/livekit_egress_pb.d.ts +5 -0
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_internal_pb.d.ts +5 -0
- package/src/gen/livekit_internal_pb.js +1 -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 +191 -7
- package/src/gen/livekit_models_pb.js +55 -1
- 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 +68 -0
- package/src/gen/livekit_room_pb.js +24 -0
- package/src/gen/livekit_rtc_pb.d.ts +137 -3
- package/src/gen/livekit_rtc_pb.js +34 -1
- package/src/gen/livekit_sip_pb.d.ts +25 -3
- package/src/gen/livekit_sip_pb.js +4 -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/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -249,6 +249,11 @@ export declare enum AnalyticsEventType {
|
|
|
249
249
|
*/
|
|
250
250
|
SIP_TRANSFER_COMPLETE = 44,
|
|
251
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from enum value: SIP_CALL_UPDATE = 46;
|
|
254
|
+
*/
|
|
255
|
+
SIP_CALL_UPDATE = 46,
|
|
256
|
+
|
|
252
257
|
/**
|
|
253
258
|
* @generated from enum value: REPORT = 40;
|
|
254
259
|
*/
|
|
@@ -82,6 +82,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
82
82
|
{no: 39, name: "SIP_CALL_ENDED"},
|
|
83
83
|
{no: 43, name: "SIP_TRANSFER_REQUESTED"},
|
|
84
84
|
{no: 44, name: "SIP_TRANSFER_COMPLETE"},
|
|
85
|
+
{no: 46, name: "SIP_CALL_UPDATE"},
|
|
85
86
|
{no: 40, name: "REPORT"},
|
|
86
87
|
{no: 41, name: "API_CALL"},
|
|
87
88
|
{no: 42, name: "WEBHOOK"},
|
|
@@ -20,6 +20,26 @@
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum livekit.AgentSecretKind
|
|
25
|
+
*/
|
|
26
|
+
export declare enum AgentSecretKind {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: AGENT_SECRET_KIND_UNKNOWN = 0;
|
|
29
|
+
*/
|
|
30
|
+
UNKNOWN = 0,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: AGENT_SECRET_KIND_ENVIRONMENT = 1;
|
|
34
|
+
*/
|
|
35
|
+
ENVIRONMENT = 1,
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: AGENT_SECRET_KIND_FILE = 2;
|
|
39
|
+
*/
|
|
40
|
+
FILE = 2,
|
|
41
|
+
}
|
|
42
|
+
|
|
23
43
|
/**
|
|
24
44
|
* @generated from message livekit.AgentSecret
|
|
25
45
|
*/
|
|
@@ -44,6 +64,11 @@ export declare class AgentSecret extends Message<AgentSecret> {
|
|
|
44
64
|
*/
|
|
45
65
|
updatedAt?: Timestamp;
|
|
46
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: livekit.AgentSecretKind kind = 5;
|
|
69
|
+
*/
|
|
70
|
+
kind: AgentSecretKind;
|
|
71
|
+
|
|
47
72
|
constructor(data?: PartialMessage<AgentSecret>);
|
|
48
73
|
|
|
49
74
|
static readonly runtime: typeof proto3;
|
|
@@ -141,6 +166,11 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
|
|
|
141
166
|
*/
|
|
142
167
|
presignedUrl: string;
|
|
143
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string tag = 6;
|
|
171
|
+
*/
|
|
172
|
+
tag: string;
|
|
173
|
+
|
|
144
174
|
constructor(data?: PartialMessage<CreateAgentResponse>);
|
|
145
175
|
|
|
146
176
|
static readonly runtime: typeof proto3;
|
|
@@ -651,6 +681,11 @@ export declare class DeployAgentResponse extends Message<DeployAgentResponse> {
|
|
|
651
681
|
*/
|
|
652
682
|
presignedUrl: string;
|
|
653
683
|
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: string tag = 5;
|
|
686
|
+
*/
|
|
687
|
+
tag: string;
|
|
688
|
+
|
|
654
689
|
constructor(data?: PartialMessage<DeployAgentResponse>);
|
|
655
690
|
|
|
656
691
|
static readonly runtime: typeof proto3;
|
|
@@ -19,6 +19,18 @@
|
|
|
19
19
|
|
|
20
20
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum livekit.AgentSecretKind
|
|
24
|
+
*/
|
|
25
|
+
export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
|
|
26
|
+
"livekit.AgentSecretKind",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "AGENT_SECRET_KIND_UNKNOWN", localName: "UNKNOWN"},
|
|
29
|
+
{no: 1, name: "AGENT_SECRET_KIND_ENVIRONMENT", localName: "ENVIRONMENT"},
|
|
30
|
+
{no: 2, name: "AGENT_SECRET_KIND_FILE", localName: "FILE"},
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
22
34
|
/**
|
|
23
35
|
* @generated from message livekit.AgentSecret
|
|
24
36
|
*/
|
|
@@ -29,6 +41,7 @@ export const AgentSecret = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
29
41
|
{ no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
30
42
|
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
31
43
|
{ no: 4, name: "updated_at", kind: "message", T: Timestamp },
|
|
44
|
+
{ no: 5, name: "kind", kind: "enum", T: proto3.getEnumType(AgentSecretKind) },
|
|
32
45
|
],
|
|
33
46
|
);
|
|
34
47
|
|
|
@@ -58,6 +71,7 @@ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
58
71
|
{ no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
72
|
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
73
|
{ no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 6, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
61
75
|
],
|
|
62
76
|
);
|
|
63
77
|
|
|
@@ -226,6 +240,7 @@ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
226
240
|
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
227
241
|
{ no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
228
242
|
{ no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
243
|
+
{ no: 5, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
229
244
|
],
|
|
230
245
|
);
|
|
231
246
|
|
|
@@ -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
|
|
|
@@ -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
|
*
|
|
@@ -496,9 +525,9 @@ export declare class ListUpdate extends Message<ListUpdate> {
|
|
|
496
525
|
/**
|
|
497
526
|
* delete items from a list
|
|
498
527
|
*
|
|
499
|
-
* @generated from field: repeated string
|
|
528
|
+
* @generated from field: repeated string remove = 3;
|
|
500
529
|
*/
|
|
501
|
-
|
|
530
|
+
remove: string[];
|
|
502
531
|
|
|
503
532
|
/**
|
|
504
533
|
* sets the list to an empty list
|
|
@@ -1273,6 +1302,11 @@ export declare enum VideoLayer_Mode {
|
|
|
1273
1302
|
* @generated from enum value: MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2;
|
|
1274
1303
|
*/
|
|
1275
1304
|
MULTIPLE_SPATIAL_LAYERS_PER_STREAM = 2,
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @generated from enum value: ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3;
|
|
1308
|
+
*/
|
|
1309
|
+
ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR = 3,
|
|
1276
1310
|
}
|
|
1277
1311
|
|
|
1278
1312
|
/**
|
|
@@ -1377,6 +1411,12 @@ export declare class DataPacket extends Message<DataPacket> {
|
|
|
1377
1411
|
*/
|
|
1378
1412
|
value: DataStream_Trailer;
|
|
1379
1413
|
case: "streamTrailer";
|
|
1414
|
+
} | {
|
|
1415
|
+
/**
|
|
1416
|
+
* @generated from field: livekit.EncryptedPacket encrypted_packet = 18;
|
|
1417
|
+
*/
|
|
1418
|
+
value: EncryptedPacket;
|
|
1419
|
+
case: "encryptedPacket";
|
|
1380
1420
|
} | { case: undefined; value?: undefined };
|
|
1381
1421
|
|
|
1382
1422
|
/**
|
|
@@ -1423,6 +1463,119 @@ export declare enum DataPacket_Kind {
|
|
|
1423
1463
|
LOSSY = 1,
|
|
1424
1464
|
}
|
|
1425
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* @generated from message livekit.EncryptedPacket
|
|
1468
|
+
*/
|
|
1469
|
+
export declare class EncryptedPacket extends Message<EncryptedPacket> {
|
|
1470
|
+
/**
|
|
1471
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 1;
|
|
1472
|
+
*/
|
|
1473
|
+
encryptionType: Encryption_Type;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* @generated from field: bytes iv = 2;
|
|
1477
|
+
*/
|
|
1478
|
+
iv: Uint8Array;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* @generated from field: uint32 key_index = 3;
|
|
1482
|
+
*/
|
|
1483
|
+
keyIndex: number;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* This is an encrypted EncryptedPacketPayload message representation
|
|
1487
|
+
*
|
|
1488
|
+
* @generated from field: bytes encrypted_value = 4;
|
|
1489
|
+
*/
|
|
1490
|
+
encryptedValue: Uint8Array;
|
|
1491
|
+
|
|
1492
|
+
constructor(data?: PartialMessage<EncryptedPacket>);
|
|
1493
|
+
|
|
1494
|
+
static readonly runtime: typeof proto3;
|
|
1495
|
+
static readonly typeName = "livekit.EncryptedPacket";
|
|
1496
|
+
static readonly fields: FieldList;
|
|
1497
|
+
|
|
1498
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacket;
|
|
1499
|
+
|
|
1500
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1501
|
+
|
|
1502
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacket;
|
|
1503
|
+
|
|
1504
|
+
static equals(a: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined, b: EncryptedPacket | PlainMessage<EncryptedPacket> | undefined): boolean;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
1509
|
+
*/
|
|
1510
|
+
export declare class EncryptedPacketPayload extends Message<EncryptedPacketPayload> {
|
|
1511
|
+
/**
|
|
1512
|
+
* @generated from oneof livekit.EncryptedPacketPayload.value
|
|
1513
|
+
*/
|
|
1514
|
+
value: {
|
|
1515
|
+
/**
|
|
1516
|
+
* @generated from field: livekit.UserPacket user = 1;
|
|
1517
|
+
*/
|
|
1518
|
+
value: UserPacket;
|
|
1519
|
+
case: "user";
|
|
1520
|
+
} | {
|
|
1521
|
+
/**
|
|
1522
|
+
* @generated from field: livekit.ChatMessage chat_message = 3;
|
|
1523
|
+
*/
|
|
1524
|
+
value: ChatMessage;
|
|
1525
|
+
case: "chatMessage";
|
|
1526
|
+
} | {
|
|
1527
|
+
/**
|
|
1528
|
+
* @generated from field: livekit.RpcRequest rpc_request = 4;
|
|
1529
|
+
*/
|
|
1530
|
+
value: RpcRequest;
|
|
1531
|
+
case: "rpcRequest";
|
|
1532
|
+
} | {
|
|
1533
|
+
/**
|
|
1534
|
+
* @generated from field: livekit.RpcAck rpc_ack = 5;
|
|
1535
|
+
*/
|
|
1536
|
+
value: RpcAck;
|
|
1537
|
+
case: "rpcAck";
|
|
1538
|
+
} | {
|
|
1539
|
+
/**
|
|
1540
|
+
* @generated from field: livekit.RpcResponse rpc_response = 6;
|
|
1541
|
+
*/
|
|
1542
|
+
value: RpcResponse;
|
|
1543
|
+
case: "rpcResponse";
|
|
1544
|
+
} | {
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from field: livekit.DataStream.Header stream_header = 7;
|
|
1547
|
+
*/
|
|
1548
|
+
value: DataStream_Header;
|
|
1549
|
+
case: "streamHeader";
|
|
1550
|
+
} | {
|
|
1551
|
+
/**
|
|
1552
|
+
* @generated from field: livekit.DataStream.Chunk stream_chunk = 8;
|
|
1553
|
+
*/
|
|
1554
|
+
value: DataStream_Chunk;
|
|
1555
|
+
case: "streamChunk";
|
|
1556
|
+
} | {
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: livekit.DataStream.Trailer stream_trailer = 9;
|
|
1559
|
+
*/
|
|
1560
|
+
value: DataStream_Trailer;
|
|
1561
|
+
case: "streamTrailer";
|
|
1562
|
+
} | { case: undefined; value?: undefined };
|
|
1563
|
+
|
|
1564
|
+
constructor(data?: PartialMessage<EncryptedPacketPayload>);
|
|
1565
|
+
|
|
1566
|
+
static readonly runtime: typeof proto3;
|
|
1567
|
+
static readonly typeName = "livekit.EncryptedPacketPayload";
|
|
1568
|
+
static readonly fields: FieldList;
|
|
1569
|
+
|
|
1570
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncryptedPacketPayload;
|
|
1571
|
+
|
|
1572
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1573
|
+
|
|
1574
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncryptedPacketPayload;
|
|
1575
|
+
|
|
1576
|
+
static equals(a: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined, b: EncryptedPacketPayload | PlainMessage<EncryptedPacketPayload> | undefined): boolean;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1426
1579
|
/**
|
|
1427
1580
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
1428
1581
|
* @deprecated
|
|
@@ -1535,7 +1688,7 @@ export declare class UserPacket extends Message<UserPacket> {
|
|
|
1535
1688
|
topic?: string;
|
|
1536
1689
|
|
|
1537
1690
|
/**
|
|
1538
|
-
* Unique ID to
|
|
1691
|
+
* Unique ID to identify the message
|
|
1539
1692
|
*
|
|
1540
1693
|
* @generated from field: optional string id = 8;
|
|
1541
1694
|
*/
|
|
@@ -2984,9 +3137,10 @@ export declare class DataStream_Header extends Message<DataStream_Header> {
|
|
|
2984
3137
|
totalLength?: bigint;
|
|
2985
3138
|
|
|
2986
3139
|
/**
|
|
2987
|
-
*
|
|
3140
|
+
* this is set on the DataPacket
|
|
2988
3141
|
*
|
|
2989
|
-
* @generated from field: livekit.Encryption.Type encryption_type = 7;
|
|
3142
|
+
* @generated from field: livekit.Encryption.Type encryption_type = 7 [deprecated = true];
|
|
3143
|
+
* @deprecated
|
|
2990
3144
|
*/
|
|
2991
3145
|
encryptionType: Encryption_Type;
|
|
2992
3146
|
|
|
@@ -3062,9 +3216,10 @@ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
|
|
|
3062
3216
|
version: number;
|
|
3063
3217
|
|
|
3064
3218
|
/**
|
|
3065
|
-
*
|
|
3219
|
+
* this is set on the DataPacket
|
|
3066
3220
|
*
|
|
3067
|
-
* @generated from field: optional bytes iv = 5;
|
|
3221
|
+
* @generated from field: optional bytes iv = 5 [deprecated = true];
|
|
3222
|
+
* @deprecated
|
|
3068
3223
|
*/
|
|
3069
3224
|
iv?: Uint8Array;
|
|
3070
3225
|
|
|
@@ -3152,3 +3307,32 @@ export declare class WebhookConfig extends Message<WebhookConfig> {
|
|
|
3152
3307
|
static equals(a: WebhookConfig | PlainMessage<WebhookConfig> | undefined, b: WebhookConfig | PlainMessage<WebhookConfig> | undefined): boolean;
|
|
3153
3308
|
}
|
|
3154
3309
|
|
|
3310
|
+
/**
|
|
3311
|
+
* @generated from message livekit.SubscribedAudioCodec
|
|
3312
|
+
*/
|
|
3313
|
+
export declare class SubscribedAudioCodec extends Message<SubscribedAudioCodec> {
|
|
3314
|
+
/**
|
|
3315
|
+
* @generated from field: string codec = 1;
|
|
3316
|
+
*/
|
|
3317
|
+
codec: string;
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* @generated from field: bool enabled = 2;
|
|
3321
|
+
*/
|
|
3322
|
+
enabled: boolean;
|
|
3323
|
+
|
|
3324
|
+
constructor(data?: PartialMessage<SubscribedAudioCodec>);
|
|
3325
|
+
|
|
3326
|
+
static readonly runtime: typeof proto3;
|
|
3327
|
+
static readonly typeName = "livekit.SubscribedAudioCodec";
|
|
3328
|
+
static readonly fields: FieldList;
|
|
3329
|
+
|
|
3330
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedAudioCodec;
|
|
3331
|
+
|
|
3332
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
|
|
3333
|
+
|
|
3334
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedAudioCodec;
|
|
3335
|
+
|
|
3336
|
+
static equals(a: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined, b: SubscribedAudioCodec | PlainMessage<SubscribedAudioCodec> | undefined): boolean;
|
|
3337
|
+
}
|
|
3338
|
+
|
|
@@ -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
|
*
|
|
@@ -223,7 +234,7 @@ export const ListUpdate = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
223
234
|
() => [
|
|
224
235
|
{ no: 1, name: "set", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
225
236
|
{ no: 2, name: "add", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
226
|
-
{ no: 3, name: "
|
|
237
|
+
{ no: 3, name: "remove", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
227
238
|
{ no: 4, name: "clear", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
228
239
|
],
|
|
229
240
|
);
|
|
@@ -446,6 +457,7 @@ export const VideoLayer_Mode = /*@__PURE__*/ proto3.makeEnum(
|
|
|
446
457
|
{no: 0, name: "MODE_UNUSED"},
|
|
447
458
|
{no: 1, name: "ONE_SPATIAL_LAYER_PER_STREAM"},
|
|
448
459
|
{no: 2, name: "MULTIPLE_SPATIAL_LAYERS_PER_STREAM"},
|
|
460
|
+
{no: 3, name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR"},
|
|
449
461
|
],
|
|
450
462
|
);
|
|
451
463
|
|
|
@@ -472,6 +484,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
472
484
|
{ no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
473
485
|
{ no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
474
486
|
{ no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
487
|
+
{ no: 18, name: "encrypted_packet", kind: "message", T: EncryptedPacket, oneof: "value" },
|
|
475
488
|
{ no: 16, name: "sequence", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
476
489
|
{ no: 17, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
477
490
|
],
|
|
@@ -488,6 +501,36 @@ export const DataPacket_Kind = /*@__PURE__*/ proto3.makeEnum(
|
|
|
488
501
|
],
|
|
489
502
|
);
|
|
490
503
|
|
|
504
|
+
/**
|
|
505
|
+
* @generated from message livekit.EncryptedPacket
|
|
506
|
+
*/
|
|
507
|
+
export const EncryptedPacket = /*@__PURE__*/ proto3.makeMessageType(
|
|
508
|
+
"livekit.EncryptedPacket",
|
|
509
|
+
() => [
|
|
510
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
511
|
+
{ no: 2, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
512
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
513
|
+
{ no: 4, name: "encrypted_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
514
|
+
],
|
|
515
|
+
);
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @generated from message livekit.EncryptedPacketPayload
|
|
519
|
+
*/
|
|
520
|
+
export const EncryptedPacketPayload = /*@__PURE__*/ proto3.makeMessageType(
|
|
521
|
+
"livekit.EncryptedPacketPayload",
|
|
522
|
+
() => [
|
|
523
|
+
{ no: 1, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
524
|
+
{ no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
|
|
525
|
+
{ no: 4, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
|
|
526
|
+
{ no: 5, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
|
|
527
|
+
{ no: 6, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
|
|
528
|
+
{ no: 7, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
|
|
529
|
+
{ no: 8, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
|
|
530
|
+
{ no: 9, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
|
|
531
|
+
],
|
|
532
|
+
);
|
|
533
|
+
|
|
491
534
|
/**
|
|
492
535
|
* @generated from message livekit.ActiveSpeakerUpdate
|
|
493
536
|
* @deprecated
|
|
@@ -1014,3 +1057,14 @@ export const WebhookConfig = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
1014
1057
|
],
|
|
1015
1058
|
);
|
|
1016
1059
|
|
|
1060
|
+
/**
|
|
1061
|
+
* @generated from message livekit.SubscribedAudioCodec
|
|
1062
|
+
*/
|
|
1063
|
+
export const SubscribedAudioCodec = /*@__PURE__*/ proto3.makeMessageType(
|
|
1064
|
+
"livekit.SubscribedAudioCodec",
|
|
1065
|
+
() => [
|
|
1066
|
+
{ no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1067
|
+
{ no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1068
|
+
],
|
|
1069
|
+
);
|
|
1070
|
+
|