@livekit/protocol 1.24.0 → 1.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.24.0",
3
+ "version": "1.27.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -22,6 +22,7 @@ import { Message, proto3 } from "@bufbuild/protobuf";
22
22
  import type { ClientInfo, ParticipantInfo, ParticipantInfo_State, ReconnectReason, Room, RTPStats, TrackInfo, VideoQuality } from "./livekit_models_pb.js";
23
23
  import type { EgressInfo } from "./livekit_egress_pb.js";
24
24
  import type { IngressInfo } from "./livekit_ingress_pb.js";
25
+ import type { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";
25
26
 
26
27
  /**
27
28
  * @generated from enum livekit.StreamType
@@ -181,6 +182,56 @@ export declare enum AnalyticsEventType {
181
182
  * @generated from enum value: INGRESS_UPDATED = 29;
182
183
  */
183
184
  INGRESS_UPDATED = 29,
185
+
186
+ /**
187
+ * @generated from enum value: SIP_INBOUND_TRUNK_CREATED = 30;
188
+ */
189
+ SIP_INBOUND_TRUNK_CREATED = 30,
190
+
191
+ /**
192
+ * @generated from enum value: SIP_INBOUND_TRUNK_DELETED = 31;
193
+ */
194
+ SIP_INBOUND_TRUNK_DELETED = 31,
195
+
196
+ /**
197
+ * @generated from enum value: SIP_OUTBOUND_TRUNK_CREATED = 32;
198
+ */
199
+ SIP_OUTBOUND_TRUNK_CREATED = 32,
200
+
201
+ /**
202
+ * @generated from enum value: SIP_OUTBOUND_TRUNK_DELETED = 33;
203
+ */
204
+ SIP_OUTBOUND_TRUNK_DELETED = 33,
205
+
206
+ /**
207
+ * @generated from enum value: SIP_DISPATCH_RULE_CREATED = 34;
208
+ */
209
+ SIP_DISPATCH_RULE_CREATED = 34,
210
+
211
+ /**
212
+ * @generated from enum value: SIP_DISPATCH_RULE_DELETED = 35;
213
+ */
214
+ SIP_DISPATCH_RULE_DELETED = 35,
215
+
216
+ /**
217
+ * @generated from enum value: SIP_PARTICIPANT_CREATED = 36;
218
+ */
219
+ SIP_PARTICIPANT_CREATED = 36,
220
+
221
+ /**
222
+ * @generated from enum value: SIP_CALL_INCOMING = 37;
223
+ */
224
+ SIP_CALL_INCOMING = 37,
225
+
226
+ /**
227
+ * @generated from enum value: SIP_CALL_STARTED = 38;
228
+ */
229
+ SIP_CALL_STARTED = 38,
230
+
231
+ /**
232
+ * @generated from enum value: SIP_CALL_ENDED = 39;
233
+ */
234
+ SIP_CALL_ENDED = 39,
184
235
  }
185
236
 
186
237
  /**
@@ -635,6 +686,41 @@ export declare class AnalyticsEvent extends Message<AnalyticsEvent> {
635
686
  */
636
687
  nodeId: string;
637
688
 
689
+ /**
690
+ * @generated from field: string sip_call_id = 26;
691
+ */
692
+ sipCallId: string;
693
+
694
+ /**
695
+ * @generated from field: livekit.SIPCallInfo sip_call = 27;
696
+ */
697
+ sipCall?: SIPCallInfo;
698
+
699
+ /**
700
+ * @generated from field: string sip_trunk_id = 28;
701
+ */
702
+ sipTrunkId: string;
703
+
704
+ /**
705
+ * @generated from field: livekit.SIPInboundTrunkInfo sip_inbound_trunk = 29;
706
+ */
707
+ sipInboundTrunk?: SIPInboundTrunkInfo;
708
+
709
+ /**
710
+ * @generated from field: livekit.SIPOutboundTrunkInfo sip_outbound_trunk = 30;
711
+ */
712
+ sipOutboundTrunk?: SIPOutboundTrunkInfo;
713
+
714
+ /**
715
+ * @generated from field: string sip_dispatch_rule_id = 31;
716
+ */
717
+ sipDispatchRuleId: string;
718
+
719
+ /**
720
+ * @generated from field: livekit.SIPDispatchRuleInfo sip_dispatch_rule = 32;
721
+ */
722
+ sipDispatchRule?: SIPDispatchRuleInfo;
723
+
638
724
  constructor(data?: PartialMessage<AnalyticsEvent>);
639
725
 
640
726
  static readonly runtime: typeof proto3;
@@ -21,6 +21,7 @@ import { proto3, Timestamp } from "@bufbuild/protobuf";
21
21
  import { ClientInfo, ParticipantInfo, ParticipantInfo_State, ReconnectReason, Room, RTPStats, TrackInfo, VideoQuality } from "./livekit_models_pb.js";
22
22
  import { EgressInfo } from "./livekit_egress_pb.js";
23
23
  import { IngressInfo } from "./livekit_ingress_pb.js";
24
+ import { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";
24
25
 
25
26
  /**
26
27
  * @generated from enum livekit.StreamType
@@ -67,6 +68,16 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
67
68
  {no: 16, name: "INGRESS_STARTED"},
68
69
  {no: 17, name: "INGRESS_ENDED"},
69
70
  {no: 29, name: "INGRESS_UPDATED"},
71
+ {no: 30, name: "SIP_INBOUND_TRUNK_CREATED"},
72
+ {no: 31, name: "SIP_INBOUND_TRUNK_DELETED"},
73
+ {no: 32, name: "SIP_OUTBOUND_TRUNK_CREATED"},
74
+ {no: 33, name: "SIP_OUTBOUND_TRUNK_DELETED"},
75
+ {no: 34, name: "SIP_DISPATCH_RULE_CREATED"},
76
+ {no: 35, name: "SIP_DISPATCH_RULE_DELETED"},
77
+ {no: 36, name: "SIP_PARTICIPANT_CREATED"},
78
+ {no: 37, name: "SIP_CALL_INCOMING"},
79
+ {no: 38, name: "SIP_CALL_STARTED"},
80
+ {no: 39, name: "SIP_CALL_ENDED"},
70
81
  ],
71
82
  );
72
83
 
@@ -190,6 +201,13 @@ export const AnalyticsEvent = /*@__PURE__*/ proto3.makeMessageType(
190
201
  { no: 21, name: "rtp_stats", kind: "message", T: RTPStats },
191
202
  { no: 22, name: "video_layer", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
192
203
  { no: 24, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
+ { no: 26, name: "sip_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
205
+ { no: 27, name: "sip_call", kind: "message", T: SIPCallInfo },
206
+ { no: 28, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
207
+ { no: 29, name: "sip_inbound_trunk", kind: "message", T: SIPInboundTrunkInfo },
208
+ { no: 30, name: "sip_outbound_trunk", kind: "message", T: SIPOutboundTrunkInfo },
209
+ { no: 31, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
+ { no: 32, name: "sip_dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
193
211
  ],
194
212
  );
195
213
 
@@ -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
 
@@ -17,8 +17,9 @@
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
19
19
 
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
20
+ import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
21
  import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { DisconnectReason } from "./livekit_models_pb.js";
22
23
 
23
24
  /**
24
25
  * @generated from enum livekit.SIPTransport
@@ -45,6 +46,39 @@ export declare enum SIPTransport {
45
46
  SIP_TRANSPORT_TLS = 3,
46
47
  }
47
48
 
49
+ /**
50
+ * @generated from enum livekit.SIPCallStatus
51
+ */
52
+ export declare enum SIPCallStatus {
53
+ /**
54
+ * Incoming call is being handled by the SIP service. The SIP participant hasn't joined a LiveKit room yet
55
+ *
56
+ * @generated from enum value: SCS_CALL_INCOMING = 0;
57
+ */
58
+ SCS_CALL_INCOMING = 0,
59
+
60
+ /**
61
+ * SIP participant for outgoing call has been created. The SIP outgoing call is being established
62
+ *
63
+ * @generated from enum value: SCS_PARTICIPANT_JOINED = 1;
64
+ */
65
+ SCS_PARTICIPANT_JOINED = 1,
66
+
67
+ /**
68
+ * Call is ongoing. SIP participant is active in the LiveKit room
69
+ *
70
+ * @generated from enum value: SCS_ACTIVE = 2;
71
+ */
72
+ SCS_ACTIVE = 2,
73
+
74
+ /**
75
+ * Call has ended
76
+ *
77
+ * @generated from enum value: SCS_DISCONNECTED = 3;
78
+ */
79
+ SCS_DISCONNECTED = 3,
80
+ }
81
+
48
82
  /**
49
83
  * @generated from message livekit.CreateSIPTrunkRequest
50
84
  * @deprecated
@@ -370,6 +404,25 @@ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
370
404
  */
371
405
  headersToAttributes: { [key: string]: string };
372
406
 
407
+ /**
408
+ * Max time for the caller to wait for track subscription.
409
+ *
410
+ * @generated from field: google.protobuf.Duration ringing_timeout = 11;
411
+ */
412
+ ringingTimeout?: Duration;
413
+
414
+ /**
415
+ * Max call duration.
416
+ *
417
+ * @generated from field: google.protobuf.Duration max_call_duration = 12;
418
+ */
419
+ maxCallDuration?: Duration;
420
+
421
+ /**
422
+ * @generated from field: bool krisp_enabled = 13;
423
+ */
424
+ krispEnabled: boolean;
425
+
373
426
  constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
374
427
 
375
428
  static readonly runtime: typeof proto3;
@@ -1178,12 +1231,18 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
1178
1231
  dtmf: string;
1179
1232
 
1180
1233
  /**
1181
- * Optionally play ringtone in the room as an audible indicator for existing participants
1234
+ * Optionally play dialtone in the room as an audible indicator for existing participants. The `play_ringtone` option is deprectated but has the same effect.
1182
1235
  *
1183
- * @generated from field: bool play_ringtone = 6;
1236
+ * @generated from field: bool play_ringtone = 6 [deprecated = true];
1237
+ * @deprecated
1184
1238
  */
1185
1239
  playRingtone: boolean;
1186
1240
 
1241
+ /**
1242
+ * @generated from field: bool play_dialtone = 13;
1243
+ */
1244
+ playDialtone: boolean;
1245
+
1187
1246
  /**
1188
1247
  * By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
1189
1248
  * If true, a random value for identity will be used and numbers will be omitted from attributes.
@@ -1192,6 +1251,20 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
1192
1251
  */
1193
1252
  hidePhoneNumber: boolean;
1194
1253
 
1254
+ /**
1255
+ * Max time for the callee to answer the call.
1256
+ *
1257
+ * @generated from field: google.protobuf.Duration ringing_timeout = 11;
1258
+ */
1259
+ ringingTimeout?: Duration;
1260
+
1261
+ /**
1262
+ * Max call duration.
1263
+ *
1264
+ * @generated from field: google.protobuf.Duration max_call_duration = 12;
1265
+ */
1266
+ maxCallDuration?: Duration;
1267
+
1195
1268
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
1196
1269
 
1197
1270
  static readonly runtime: typeof proto3;
@@ -1265,6 +1338,13 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
1265
1338
  */
1266
1339
  transferTo: string;
1267
1340
 
1341
+ /**
1342
+ * Optionally play dialtone to the SIP participant as an audible indicator of being transferred
1343
+ *
1344
+ * @generated from field: bool play_dialtone = 4;
1345
+ */
1346
+ playDialtone: boolean;
1347
+
1268
1348
  constructor(data?: PartialMessage<TransferSIPParticipantRequest>);
1269
1349
 
1270
1350
  static readonly runtime: typeof proto3;
@@ -1280,3 +1360,123 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
1280
1360
  static equals(a: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined, b: TransferSIPParticipantRequest | PlainMessage<TransferSIPParticipantRequest> | undefined): boolean;
1281
1361
  }
1282
1362
 
1363
+ /**
1364
+ * @generated from message livekit.SIPCallInfo
1365
+ */
1366
+ export declare class SIPCallInfo extends Message<SIPCallInfo> {
1367
+ /**
1368
+ * @generated from field: string call_id = 1;
1369
+ */
1370
+ callId: string;
1371
+
1372
+ /**
1373
+ * @generated from field: string trunk_id = 2;
1374
+ */
1375
+ trunkId: string;
1376
+
1377
+ /**
1378
+ * @generated from field: string room_name = 3;
1379
+ */
1380
+ roomName: string;
1381
+
1382
+ /**
1383
+ * ID of the current/previous room published to
1384
+ *
1385
+ * @generated from field: string room_id = 4;
1386
+ */
1387
+ roomId: string;
1388
+
1389
+ /**
1390
+ * @generated from field: string participant_identity = 5;
1391
+ */
1392
+ participantIdentity: string;
1393
+
1394
+ /**
1395
+ * @generated from field: livekit.SIPUri from_uri = 6;
1396
+ */
1397
+ fromUri?: SIPUri;
1398
+
1399
+ /**
1400
+ * @generated from field: livekit.SIPUri to_uri = 7;
1401
+ */
1402
+ toUri?: SIPUri;
1403
+
1404
+ /**
1405
+ * @generated from field: livekit.SIPCallStatus call_status = 8;
1406
+ */
1407
+ callStatus: SIPCallStatus;
1408
+
1409
+ /**
1410
+ * @generated from field: int64 started_at = 9;
1411
+ */
1412
+ startedAt: bigint;
1413
+
1414
+ /**
1415
+ * @generated from field: int64 ended_at = 10;
1416
+ */
1417
+ endedAt: bigint;
1418
+
1419
+ /**
1420
+ * @generated from field: livekit.DisconnectReason disconnect_reason = 11;
1421
+ */
1422
+ disconnectReason: DisconnectReason;
1423
+
1424
+ constructor(data?: PartialMessage<SIPCallInfo>);
1425
+
1426
+ static readonly runtime: typeof proto3;
1427
+ static readonly typeName = "livekit.SIPCallInfo";
1428
+ static readonly fields: FieldList;
1429
+
1430
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPCallInfo;
1431
+
1432
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPCallInfo;
1433
+
1434
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPCallInfo;
1435
+
1436
+ static equals(a: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined, b: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined): boolean;
1437
+ }
1438
+
1439
+ /**
1440
+ * @generated from message livekit.SIPUri
1441
+ */
1442
+ export declare class SIPUri extends Message<SIPUri> {
1443
+ /**
1444
+ * @generated from field: string user = 1;
1445
+ */
1446
+ user: string;
1447
+
1448
+ /**
1449
+ * @generated from field: string host = 2;
1450
+ */
1451
+ host: string;
1452
+
1453
+ /**
1454
+ * @generated from field: string ip = 3;
1455
+ */
1456
+ ip: string;
1457
+
1458
+ /**
1459
+ * @generated from field: string port = 4;
1460
+ */
1461
+ port: string;
1462
+
1463
+ /**
1464
+ * @generated from field: livekit.SIPTransport transport = 5;
1465
+ */
1466
+ transport: SIPTransport;
1467
+
1468
+ constructor(data?: PartialMessage<SIPUri>);
1469
+
1470
+ static readonly runtime: typeof proto3;
1471
+ static readonly typeName = "livekit.SIPUri";
1472
+ static readonly fields: FieldList;
1473
+
1474
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPUri;
1475
+
1476
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPUri;
1477
+
1478
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPUri;
1479
+
1480
+ static equals(a: SIPUri | PlainMessage<SIPUri> | undefined, b: SIPUri | PlainMessage<SIPUri> | undefined): boolean;
1481
+ }
1482
+
@@ -17,7 +17,8 @@
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
19
19
 
20
- import { proto3 } from "@bufbuild/protobuf";
20
+ import { Duration, proto3 } from "@bufbuild/protobuf";
21
+ import { DisconnectReason } from "./livekit_models_pb.js";
21
22
 
22
23
  /**
23
24
  * @generated from enum livekit.SIPTransport
@@ -32,6 +33,19 @@ export const SIPTransport = /*@__PURE__*/ proto3.makeEnum(
32
33
  ],
33
34
  );
34
35
 
36
+ /**
37
+ * @generated from enum livekit.SIPCallStatus
38
+ */
39
+ export const SIPCallStatus = /*@__PURE__*/ proto3.makeEnum(
40
+ "livekit.SIPCallStatus",
41
+ [
42
+ {no: 0, name: "SCS_CALL_INCOMING"},
43
+ {no: 1, name: "SCS_PARTICIPANT_JOINED"},
44
+ {no: 2, name: "SCS_ACTIVE"},
45
+ {no: 3, name: "SCS_DISCONNECTED"},
46
+ ],
47
+ );
48
+
35
49
  /**
36
50
  * @generated from message livekit.CreateSIPTrunkRequest
37
51
  * @deprecated
@@ -115,6 +129,9 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
115
129
  { no: 8, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
130
  { no: 9, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
117
131
  { no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
132
+ { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
133
+ { no: 12, name: "max_call_duration", kind: "message", T: Duration },
134
+ { no: 13, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
118
135
  ],
119
136
  );
120
137
 
@@ -378,7 +395,10 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
378
395
  { no: 9, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
379
396
  { no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
380
397
  { no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
398
+ { no: 13, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
381
399
  { no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
400
+ { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
401
+ { no: 12, name: "max_call_duration", kind: "message", T: Duration },
382
402
  ],
383
403
  );
384
404
 
@@ -404,6 +424,41 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
404
424
  { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
405
425
  { no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
406
426
  { no: 3, name: "transfer_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
427
+ { no: 4, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
428
+ ],
429
+ );
430
+
431
+ /**
432
+ * @generated from message livekit.SIPCallInfo
433
+ */
434
+ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
435
+ "livekit.SIPCallInfo",
436
+ () => [
437
+ { no: 1, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
438
+ { no: 2, name: "trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
439
+ { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
440
+ { no: 4, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
441
+ { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
442
+ { no: 6, name: "from_uri", kind: "message", T: SIPUri },
443
+ { no: 7, name: "to_uri", kind: "message", T: SIPUri },
444
+ { no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
445
+ { no: 9, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
446
+ { no: 10, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
447
+ { no: 11, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
448
+ ],
449
+ );
450
+
451
+ /**
452
+ * @generated from message livekit.SIPUri
453
+ */
454
+ export const SIPUri = /*@__PURE__*/ proto3.makeMessageType(
455
+ "livekit.SIPUri",
456
+ () => [
457
+ { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ },
458
+ { no: 2, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
459
+ { no: 3, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
460
+ { no: 4, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ },
461
+ { no: 5, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport) },
407
462
  ],
408
463
  );
409
464
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.24.0';
2
+ export const version = '1.27.0';
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";