@livekit/protocol 1.44.0 → 1.45.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 +73 -107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -141
- package/dist/index.d.mts +111 -141
- package/dist/index.d.ts +111 -141
- package/dist/index.mjs +73 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_text_pb.d.ts +281 -0
- package/src/gen/agent/livekit_agent_text_pb.js +106 -0
- package/src/gen/livekit_agent_pb.d.ts +0 -134
- package/src/gen/livekit_agent_pb.js +0 -41
- package/src/gen/livekit_cloud_agent_pb.d.ts +360 -0
- package/src/gen/livekit_cloud_agent_pb.js +140 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +22 -5
- package/src/gen/livekit_connector_whatsapp_pb.js +4 -1
- package/src/gen/livekit_egress_pb.d.ts +7 -2
- package/src/gen/livekit_egress_pb.js +1 -0
- package/src/gen/livekit_ingress_pb.d.ts +13 -1
- package/src/gen/livekit_ingress_pb.js +3 -1
- package/src/gen/livekit_models_pb.d.ts +58 -0
- package/src/gen/livekit_models_pb.js +17 -0
- package/src/gen/livekit_rtc_pb.d.ts +6 -1
- package/src/gen/livekit_rtc_pb.js +2 -1
- package/src/gen/livekit_sip_pb.d.ts +7 -0
- package/src/gen/livekit_sip_pb.js +1 -0
- package/src/gen/version.js +1 -1
|
@@ -368,6 +368,13 @@ export declare enum DisconnectReason {
|
|
|
368
368
|
* @generated from enum value: MEDIA_FAILURE = 15;
|
|
369
369
|
*/
|
|
370
370
|
MEDIA_FAILURE = 15,
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* agent encountered an error
|
|
374
|
+
*
|
|
375
|
+
* @generated from enum value: AGENT_ERROR = 16;
|
|
376
|
+
*/
|
|
377
|
+
AGENT_ERROR = 16,
|
|
371
378
|
}
|
|
372
379
|
|
|
373
380
|
/**
|
|
@@ -462,6 +469,16 @@ export declare enum AudioTrackFeature {
|
|
|
462
469
|
TF_PRECONNECT_BUFFER = 6,
|
|
463
470
|
}
|
|
464
471
|
|
|
472
|
+
/**
|
|
473
|
+
* @generated from enum livekit.PacketTrailerFeature
|
|
474
|
+
*/
|
|
475
|
+
export declare enum PacketTrailerFeature {
|
|
476
|
+
/**
|
|
477
|
+
* @generated from enum value: PTF_USER_TIMESTAMP = 0;
|
|
478
|
+
*/
|
|
479
|
+
PTF_USER_TIMESTAMP = 0,
|
|
480
|
+
}
|
|
481
|
+
|
|
465
482
|
/**
|
|
466
483
|
* @generated from message livekit.Pagination
|
|
467
484
|
*/
|
|
@@ -789,6 +806,13 @@ export declare class ParticipantPermission extends Message<ParticipantPermission
|
|
|
789
806
|
*/
|
|
790
807
|
canSubscribeMetrics: boolean;
|
|
791
808
|
|
|
809
|
+
/**
|
|
810
|
+
* if a participant can manage an agent session via RemoteSession (control and access state)
|
|
811
|
+
*
|
|
812
|
+
* @generated from field: bool can_manage_agent_session = 13;
|
|
813
|
+
*/
|
|
814
|
+
canManageAgentSession: boolean;
|
|
815
|
+
|
|
792
816
|
constructor(data?: PartialMessage<ParticipantPermission>);
|
|
793
817
|
|
|
794
818
|
static readonly runtime: typeof proto3;
|
|
@@ -900,6 +924,13 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
|
|
|
900
924
|
*/
|
|
901
925
|
dataTracks: DataTrackInfo[];
|
|
902
926
|
|
|
927
|
+
/**
|
|
928
|
+
* protocol version used for client feature compatibility
|
|
929
|
+
*
|
|
930
|
+
* @generated from field: int32 client_protocol = 20;
|
|
931
|
+
*/
|
|
932
|
+
clientProtocol: number;
|
|
933
|
+
|
|
903
934
|
constructor(data?: PartialMessage<ParticipantInfo>);
|
|
904
935
|
|
|
905
936
|
static readonly runtime: typeof proto3;
|
|
@@ -1260,6 +1291,11 @@ export declare class TrackInfo extends Message<TrackInfo> {
|
|
|
1260
1291
|
*/
|
|
1261
1292
|
backupCodecPolicy: BackupCodecPolicy;
|
|
1262
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from field: repeated livekit.PacketTrailerFeature packet_trailer_features = 21;
|
|
1296
|
+
*/
|
|
1297
|
+
packetTrailerFeatures: PacketTrailerFeature[];
|
|
1298
|
+
|
|
1263
1299
|
constructor(data?: PartialMessage<TrackInfo>);
|
|
1264
1300
|
|
|
1265
1301
|
static readonly runtime: typeof proto3;
|
|
@@ -2087,6 +2123,13 @@ export declare class RpcRequest extends Message<RpcRequest> {
|
|
|
2087
2123
|
*/
|
|
2088
2124
|
version: number;
|
|
2089
2125
|
|
|
2126
|
+
/**
|
|
2127
|
+
* Compressed payload data. When set, this field is used instead of `payload`.
|
|
2128
|
+
*
|
|
2129
|
+
* @generated from field: bytes compressed_payload = 6;
|
|
2130
|
+
*/
|
|
2131
|
+
compressedPayload: Uint8Array;
|
|
2132
|
+
|
|
2090
2133
|
constructor(data?: PartialMessage<RpcRequest>);
|
|
2091
2134
|
|
|
2092
2135
|
static readonly runtime: typeof proto3;
|
|
@@ -2150,6 +2193,14 @@ export declare class RpcResponse extends Message<RpcResponse> {
|
|
|
2150
2193
|
*/
|
|
2151
2194
|
value: RpcError;
|
|
2152
2195
|
case: "error";
|
|
2196
|
+
} | {
|
|
2197
|
+
/**
|
|
2198
|
+
* Compressed payload data. When set, this field is used instead of `payload`.
|
|
2199
|
+
*
|
|
2200
|
+
* @generated from field: bytes compressed_payload = 4;
|
|
2201
|
+
*/
|
|
2202
|
+
value: Uint8Array;
|
|
2203
|
+
case: "compressedPayload";
|
|
2153
2204
|
} | { case: undefined; value?: undefined };
|
|
2154
2205
|
|
|
2155
2206
|
constructor(data?: PartialMessage<RpcResponse>);
|
|
@@ -2371,6 +2422,13 @@ export declare class ClientInfo extends Message<ClientInfo> {
|
|
|
2371
2422
|
*/
|
|
2372
2423
|
otherSdks: string;
|
|
2373
2424
|
|
|
2425
|
+
/**
|
|
2426
|
+
* client protocol version
|
|
2427
|
+
*
|
|
2428
|
+
* @generated from field: int32 client_protocol = 12;
|
|
2429
|
+
*/
|
|
2430
|
+
clientProtocol: number;
|
|
2431
|
+
|
|
2374
2432
|
constructor(data?: PartialMessage<ClientInfo>);
|
|
2375
2433
|
|
|
2376
2434
|
static readonly runtime: typeof proto3;
|
|
@@ -169,6 +169,7 @@ export const DisconnectReason = /*@__PURE__*/ proto3.makeEnum(
|
|
|
169
169
|
{no: 13, name: "SIP_TRUNK_FAILURE"},
|
|
170
170
|
{no: 14, name: "CONNECTION_TIMEOUT"},
|
|
171
171
|
{no: 15, name: "MEDIA_FAILURE"},
|
|
172
|
+
{no: 16, name: "AGENT_ERROR"},
|
|
172
173
|
],
|
|
173
174
|
);
|
|
174
175
|
|
|
@@ -214,6 +215,16 @@ export const AudioTrackFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
|
214
215
|
],
|
|
215
216
|
);
|
|
216
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @generated from enum livekit.PacketTrailerFeature
|
|
220
|
+
*/
|
|
221
|
+
export const PacketTrailerFeature = /*@__PURE__*/ proto3.makeEnum(
|
|
222
|
+
"livekit.PacketTrailerFeature",
|
|
223
|
+
[
|
|
224
|
+
{no: 0, name: "PTF_USER_TIMESTAMP"},
|
|
225
|
+
],
|
|
226
|
+
);
|
|
227
|
+
|
|
217
228
|
/**
|
|
218
229
|
* @generated from message livekit.Pagination
|
|
219
230
|
*/
|
|
@@ -311,6 +322,7 @@ export const ParticipantPermission = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
311
322
|
{ no: 10, name: "can_update_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
312
323
|
{ no: 11, name: "agent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
313
324
|
{ no: 12, name: "can_subscribe_metrics", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
325
|
+
{ no: 13, name: "can_manage_agent_session", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
314
326
|
],
|
|
315
327
|
);
|
|
316
328
|
|
|
@@ -337,6 +349,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
337
349
|
{ no: 16, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
|
|
338
350
|
{ no: 18, name: "kind_details", kind: "enum", T: proto3.getEnumType(ParticipantInfo_KindDetail), repeated: true },
|
|
339
351
|
{ no: 19, name: "data_tracks", kind: "message", T: DataTrackInfo, repeated: true },
|
|
352
|
+
{ no: 20, name: "client_protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
340
353
|
],
|
|
341
354
|
);
|
|
342
355
|
|
|
@@ -444,6 +457,7 @@ export const TrackInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
444
457
|
{ no: 18, name: "version", kind: "message", T: TimedVersion },
|
|
445
458
|
{ no: 19, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
446
459
|
{ no: 20, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
460
|
+
{ no: 21, name: "packet_trailer_features", kind: "enum", T: proto3.getEnumType(PacketTrailerFeature), repeated: true },
|
|
447
461
|
],
|
|
448
462
|
);
|
|
449
463
|
|
|
@@ -689,6 +703,7 @@ export const RpcRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
689
703
|
{ no: 3, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
690
704
|
{ no: 4, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
691
705
|
{ no: 5, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
706
|
+
{ no: 6, name: "compressed_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
692
707
|
],
|
|
693
708
|
);
|
|
694
709
|
|
|
@@ -711,6 +726,7 @@ export const RpcResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
711
726
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
712
727
|
{ no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
713
728
|
{ no: 3, name: "error", kind: "message", T: RpcError, oneof: "value" },
|
|
729
|
+
{ no: 4, name: "compressed_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "value" },
|
|
714
730
|
],
|
|
715
731
|
);
|
|
716
732
|
|
|
@@ -785,6 +801,7 @@ export const ClientInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
785
801
|
{ no: 9, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
786
802
|
{ no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
787
803
|
{ no: 11, name: "other_sdks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
804
|
+
{ no: 12, name: "client_protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
788
805
|
],
|
|
789
806
|
);
|
|
790
807
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
-
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
|
+
import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @generated from enum livekit.SignalTarget
|
|
@@ -651,6 +651,11 @@ export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
|
|
651
651
|
*/
|
|
652
652
|
audioFeatures: AudioTrackFeature[];
|
|
653
653
|
|
|
654
|
+
/**
|
|
655
|
+
* @generated from field: repeated livekit.PacketTrailerFeature packet_trailer_features = 18;
|
|
656
|
+
*/
|
|
657
|
+
packetTrailerFeatures: PacketTrailerFeature[];
|
|
658
|
+
|
|
654
659
|
constructor(data?: PartialMessage<AddTrackRequest>);
|
|
655
660
|
|
|
656
661
|
static readonly runtime: typeof proto3;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
-
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
21
|
+
import { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, ClientInfo, Codec, ConnectionQuality, DataTrackInfo, DataTrackSubscriptionOptions, DisconnectReason, Encryption_Type, PacketTrailerFeature, ParticipantInfo, ParticipantTracks, ReconnectReason, Room, ServerInfo, SpeakerInfo, SubscribedAudioCodec, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoLayer_Mode, VideoQuality } from "./livekit_models_pb.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @generated from enum livekit.SignalTarget
|
|
@@ -156,6 +156,7 @@ export const AddTrackRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
156
156
|
{ no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
157
157
|
{ no: 16, name: "backup_codec_policy", kind: "enum", T: proto3.getEnumType(BackupCodecPolicy) },
|
|
158
158
|
{ no: 17, name: "audio_features", kind: "enum", T: proto3.getEnumType(AudioTrackFeature), repeated: true },
|
|
159
|
+
{ no: 18, name: "packet_trailer_features", kind: "enum", T: proto3.getEnumType(PacketTrailerFeature), repeated: true },
|
|
159
160
|
],
|
|
160
161
|
);
|
|
161
162
|
|
|
@@ -1760,6 +1760,13 @@ export declare class SIPDispatchRuleIndividual extends Message<SIPDispatchRuleIn
|
|
|
1760
1760
|
*/
|
|
1761
1761
|
pin: string;
|
|
1762
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* Optionally append random suffix
|
|
1765
|
+
*
|
|
1766
|
+
* @generated from field: bool no_randomness = 3;
|
|
1767
|
+
*/
|
|
1768
|
+
noRandomness: boolean;
|
|
1769
|
+
|
|
1763
1770
|
constructor(data?: PartialMessage<SIPDispatchRuleIndividual>);
|
|
1764
1771
|
|
|
1765
1772
|
static readonly runtime: typeof proto3;
|
|
@@ -553,6 +553,7 @@ export const SIPDispatchRuleIndividual = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
553
553
|
() => [
|
|
554
554
|
{ no: 1, name: "room_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
555
555
|
{ no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
556
|
+
{ no: 3, name: "no_randomness", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
556
557
|
],
|
|
557
558
|
);
|
|
558
559
|
|
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.45.0';
|