@livekit/protocol 1.26.0 → 1.27.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.26.0",
3
+ "version": "1.27.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -1669,6 +1669,18 @@ export declare class EgressInfo extends Message<EgressInfo> {
1669
1669
  */
1670
1670
  imageResults: ImagesInfo[];
1671
1671
 
1672
+ /**
1673
+ * @generated from field: string manifest_location = 23;
1674
+ */
1675
+ manifestLocation: string;
1676
+
1677
+ /**
1678
+ * next ID: 24
1679
+ *
1680
+ * @generated from field: string manifest_presigned_url = 24;
1681
+ */
1682
+ manifestPresignedUrl: string;
1683
+
1672
1684
  constructor(data?: PartialMessage<EgressInfo>);
1673
1685
 
1674
1686
  static readonly runtime: typeof proto3;
@@ -475,6 +475,8 @@ export const EgressInfo = /*@__PURE__*/ proto3.makeMessageType(
475
475
  { no: 16, name: "file_results", kind: "message", T: FileInfo, repeated: true },
476
476
  { no: 17, name: "segment_results", kind: "message", T: SegmentsInfo, repeated: true },
477
477
  { no: 20, name: "image_results", kind: "message", T: ImagesInfo, repeated: true },
478
+ { no: 23, name: "manifest_location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
479
+ { no: 24, name: "manifest_presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
478
480
  ],
479
481
  );
480
482
 
@@ -19,8 +19,8 @@
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 { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
23
22
  import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
23
+ import type { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
24
24
  import type { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
25
25
 
26
26
  /**
@@ -37,9 +37,9 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
37
37
  /**
38
38
  * configuration to use for this room parameters. Setting parameters below override the config defaults.
39
39
  *
40
- * @generated from field: string config_name = 12;
40
+ * @generated from field: string room_preset = 12;
41
41
  */
42
- configName: string;
42
+ roomPreset: string;
43
43
 
44
44
  /**
45
45
  * number of seconds to keep the room open if no one joins
@@ -77,19 +77,12 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
77
77
  metadata: string;
78
78
 
79
79
  /**
80
- * egress
80
+ * auto-egress configurations
81
81
  *
82
82
  * @generated from field: livekit.RoomEgress egress = 6;
83
83
  */
84
84
  egress?: RoomEgress;
85
85
 
86
- /**
87
- * agent
88
- *
89
- * @generated from field: livekit.RoomAgent agent = 11;
90
- */
91
- agent?: RoomAgent;
92
-
93
86
  /**
94
87
  * playout delay of subscriber
95
88
  *
@@ -113,12 +106,19 @@ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
113
106
  /**
114
107
  * replay
115
108
  *
116
- * NEXT-ID: 14
117
- *
118
109
  * @generated from field: bool replay_enabled = 13;
119
110
  */
120
111
  replayEnabled: boolean;
121
112
 
113
+ /**
114
+ * Define agents that should be dispatched to this room
115
+ *
116
+ * NEXT-ID: 15
117
+ *
118
+ * @generated from field: repeated livekit.RoomAgentDispatch agents = 14;
119
+ */
120
+ agents: RoomAgentDispatch[];
121
+
122
122
  constructor(data?: PartialMessage<CreateRoomRequest>);
123
123
 
124
124
  static readonly runtime: typeof proto3;
@@ -717,7 +717,7 @@ export declare class RoomConfiguration extends Message<RoomConfiguration> {
717
717
  departureTimeout: number;
718
718
 
719
719
  /**
720
- * limit number of participants that can be in a room
720
+ * limit number of participants that can be in a room, excluding Egress and Ingress participants
721
721
  *
722
722
  * @generated from field: uint32 max_participants = 4;
723
723
  */
@@ -730,13 +730,6 @@ export declare class RoomConfiguration extends Message<RoomConfiguration> {
730
730
  */
731
731
  egress?: RoomEgress;
732
732
 
733
- /**
734
- * agent
735
- *
736
- * @generated from field: livekit.RoomAgent agent = 6;
737
- */
738
- agent?: RoomAgent;
739
-
740
733
  /**
741
734
  * playout delay of subscriber
742
735
  *
@@ -757,6 +750,13 @@ export declare class RoomConfiguration extends Message<RoomConfiguration> {
757
750
  */
758
751
  syncStreams: boolean;
759
752
 
753
+ /**
754
+ * Define agents that should be dispatched to this room
755
+ *
756
+ * @generated from field: repeated livekit.RoomAgentDispatch agents = 10;
757
+ */
758
+ agents: RoomAgentDispatch[];
759
+
760
760
  constructor(data?: PartialMessage<RoomConfiguration>);
761
761
 
762
762
  static readonly runtime: typeof proto3;
@@ -18,8 +18,8 @@
18
18
  // @ts-nocheck
19
19
 
20
20
  import { proto3 } from "@bufbuild/protobuf";
21
- import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
22
21
  import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
22
+ import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
23
23
  import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
24
24
 
25
25
  /**
@@ -29,18 +29,18 @@ export const CreateRoomRequest = /*@__PURE__*/ proto3.makeMessageType(
29
29
  "livekit.CreateRoomRequest",
30
30
  () => [
31
31
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
- { no: 12, name: "config_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
+ { no: 12, name: "room_preset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
33
  { no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
34
34
  { no: 10, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
35
35
  { no: 3, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
36
36
  { no: 4, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
37
37
  { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
38
38
  { no: 6, name: "egress", kind: "message", T: RoomEgress },
39
- { no: 11, name: "agent", kind: "message", T: RoomAgent },
40
39
  { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
41
40
  { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
42
41
  { no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
43
42
  { no: 13, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
43
+ { no: 14, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
44
44
  ],
45
45
  );
46
46
 
@@ -250,10 +250,10 @@ export const RoomConfiguration = /*@__PURE__*/ proto3.makeMessageType(
250
250
  { no: 3, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
251
251
  { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
252
252
  { no: 5, name: "egress", kind: "message", T: RoomEgress },
253
- { no: 6, name: "agent", kind: "message", T: RoomAgent },
254
253
  { no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
255
254
  { no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
256
255
  { no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
256
+ { no: 10, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
257
257
  ],
258
258
  );
259
259
 
@@ -77,6 +77,13 @@ export declare enum SIPCallStatus {
77
77
  * @generated from enum value: SCS_DISCONNECTED = 3;
78
78
  */
79
79
  SCS_DISCONNECTED = 3,
80
+
81
+ /**
82
+ * Call has ended or never succeeded because of an error
83
+ *
84
+ * @generated from enum value: SCS_ERROR = 4;
85
+ */
86
+ SCS_ERROR = 4,
80
87
  }
81
88
 
82
89
  /**
@@ -418,6 +425,11 @@ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
418
425
  */
419
426
  maxCallDuration?: Duration;
420
427
 
428
+ /**
429
+ * @generated from field: bool krisp_enabled = 13;
430
+ */
431
+ krispEnabled: boolean;
432
+
421
433
  constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
422
434
 
423
435
  static readonly runtime: typeof proto3;
@@ -1226,12 +1238,18 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
1226
1238
  dtmf: string;
1227
1239
 
1228
1240
  /**
1229
- * Optionally play ringtone in the room as an audible indicator for existing participants
1241
+ * Optionally play dialtone in the room as an audible indicator for existing participants. The `play_ringtone` option is deprectated but has the same effect.
1230
1242
  *
1231
- * @generated from field: bool play_ringtone = 6;
1243
+ * @generated from field: bool play_ringtone = 6 [deprecated = true];
1244
+ * @deprecated
1232
1245
  */
1233
1246
  playRingtone: boolean;
1234
1247
 
1248
+ /**
1249
+ * @generated from field: bool play_dialtone = 13;
1250
+ */
1251
+ playDialtone: boolean;
1252
+
1235
1253
  /**
1236
1254
  * By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
1237
1255
  * If true, a random value for identity will be used and numbers will be omitted from attributes.
@@ -1254,6 +1272,15 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
1254
1272
  */
1255
1273
  maxCallDuration?: Duration;
1256
1274
 
1275
+ /**
1276
+ * Enable voice isolation for the callee.
1277
+ *
1278
+ * NEXT ID: 15
1279
+ *
1280
+ * @generated from field: bool enable_krisp = 14;
1281
+ */
1282
+ enableKrisp: boolean;
1283
+
1257
1284
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
1258
1285
 
1259
1286
  static readonly runtime: typeof proto3;
@@ -1327,6 +1354,13 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
1327
1354
  */
1328
1355
  transferTo: string;
1329
1356
 
1357
+ /**
1358
+ * Optionally play dialtone to the SIP participant as an audible indicator of being transferred
1359
+ *
1360
+ * @generated from field: bool play_dialtone = 4;
1361
+ */
1362
+ playDialtone: boolean;
1363
+
1330
1364
  constructor(data?: PartialMessage<TransferSIPParticipantRequest>);
1331
1365
 
1332
1366
  static readonly runtime: typeof proto3;
@@ -1389,20 +1423,30 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
1389
1423
  callStatus: SIPCallStatus;
1390
1424
 
1391
1425
  /**
1392
- * @generated from field: int64 started_at = 9;
1426
+ * @generated from field: int64 created_at = 9;
1427
+ */
1428
+ createdAt: bigint;
1429
+
1430
+ /**
1431
+ * @generated from field: int64 started_at = 10;
1393
1432
  */
1394
1433
  startedAt: bigint;
1395
1434
 
1396
1435
  /**
1397
- * @generated from field: int64 ended_at = 10;
1436
+ * @generated from field: int64 ended_at = 11;
1398
1437
  */
1399
1438
  endedAt: bigint;
1400
1439
 
1401
1440
  /**
1402
- * @generated from field: livekit.DisconnectReason disconnect_reason = 11;
1441
+ * @generated from field: livekit.DisconnectReason disconnect_reason = 12;
1403
1442
  */
1404
1443
  disconnectReason: DisconnectReason;
1405
1444
 
1445
+ /**
1446
+ * @generated from field: string error = 13;
1447
+ */
1448
+ error: string;
1449
+
1406
1450
  constructor(data?: PartialMessage<SIPCallInfo>);
1407
1451
 
1408
1452
  static readonly runtime: typeof proto3;
@@ -43,6 +43,7 @@ export const SIPCallStatus = /*@__PURE__*/ proto3.makeEnum(
43
43
  {no: 1, name: "SCS_PARTICIPANT_JOINED"},
44
44
  {no: 2, name: "SCS_ACTIVE"},
45
45
  {no: 3, name: "SCS_DISCONNECTED"},
46
+ {no: 4, name: "SCS_ERROR"},
46
47
  ],
47
48
  );
48
49
 
@@ -131,6 +132,7 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
131
132
  { no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
132
133
  { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
133
134
  { no: 12, name: "max_call_duration", kind: "message", T: Duration },
135
+ { no: 13, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
134
136
  ],
135
137
  );
136
138
 
@@ -394,9 +396,11 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
394
396
  { no: 9, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
395
397
  { no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
396
398
  { no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
399
+ { no: 13, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
397
400
  { no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
398
401
  { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
399
402
  { no: 12, name: "max_call_duration", kind: "message", T: Duration },
403
+ { no: 14, name: "enable_krisp", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
400
404
  ],
401
405
  );
402
406
 
@@ -422,6 +426,7 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
422
426
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
423
427
  { no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
424
428
  { no: 3, name: "transfer_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
429
+ { no: 4, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
425
430
  ],
426
431
  );
427
432
 
@@ -439,9 +444,11 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
439
444
  { no: 6, name: "from_uri", kind: "message", T: SIPUri },
440
445
  { no: 7, name: "to_uri", kind: "message", T: SIPUri },
441
446
  { no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
442
- { no: 9, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
443
- { no: 10, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
444
- { no: 11, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
447
+ { no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
448
+ { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
449
+ { no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
450
+ { no: 12, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
451
+ { no: 13, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
445
452
  ],
446
453
  );
447
454
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.26.0';
2
+ export const version = '1.27.1';
package/src/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- export * from "./gen/version.js";
2
- export * from "./gen/livekit_room_pb.js";
1
+ export { protoInt64 } from "@bufbuild/protobuf";
2
+ export * from "./gen/livekit_agent_dispatch_pb.js";
3
3
  export * from "./gen/livekit_agent_pb.js";
4
- export * from "./gen/livekit_models_pb.js";
5
- export * from "./gen/livekit_rtc_pb.js";
6
- export * from "./gen/livekit_webhook_pb.js";
7
4
  export * from "./gen/livekit_egress_pb.js";
8
5
  export * from "./gen/livekit_ingress_pb.js";
9
- export * from "./gen/livekit_sip_pb.js";
10
6
  export * from "./gen/livekit_metrics_pb.js";
11
- export { protoInt64 } from "@bufbuild/protobuf";
7
+ export * from "./gen/livekit_models_pb.js";
8
+ export * from "./gen/livekit_room_pb.js";
9
+ export * from "./gen/livekit_rtc_pb.js";
10
+ export * from "./gen/livekit_sip_pb.js";
11
+ export * from "./gen/livekit_webhook_pb.js";
12
+ export * from "./gen/version.js";
package/src/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  // @ts-check
2
- export * from "./gen/version.js";
3
- export * from "./gen/livekit_room_pb.js";
2
+ export { protoInt64 } from "@bufbuild/protobuf";
3
+ export * from "./gen/livekit_agent_dispatch_pb.js";
4
4
  export * from "./gen/livekit_agent_pb.js";
5
- export * from "./gen/livekit_models_pb.js";
6
- export * from "./gen/livekit_rtc_pb.js";
7
- export * from "./gen/livekit_webhook_pb.js";
8
5
  export * from "./gen/livekit_egress_pb.js";
9
6
  export * from "./gen/livekit_ingress_pb.js";
10
- export * from "./gen/livekit_sip_pb.js";
11
7
  export * from "./gen/livekit_metrics_pb.js";
12
- export { protoInt64 } from "@bufbuild/protobuf";
8
+ export * from "./gen/livekit_models_pb.js";
9
+ export * from "./gen/livekit_room_pb.js";
10
+ export * from "./gen/livekit_rtc_pb.js";
11
+ export * from "./gen/livekit_sip_pb.js";
12
+ export * from "./gen/livekit_webhook_pb.js";
13
+ export * from "./gen/version.js";