@livekit/protocol 1.30.0 → 1.31.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.30.0",
3
+ "version": "1.31.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -213,6 +213,13 @@ export declare class CreateIngressRequest extends Message<CreateIngressRequest>
213
213
  */
214
214
  video?: IngressVideoOptions;
215
215
 
216
+ /**
217
+ * The default value is true and when set to false, the new connection attempts will be rejected
218
+ *
219
+ * @generated from field: optional bool enabled = 12;
220
+ */
221
+ enabled?: boolean;
222
+
216
223
  constructor(data?: PartialMessage<CreateIngressRequest>);
217
224
 
218
225
  static readonly runtime: typeof proto3;
@@ -487,6 +494,13 @@ export declare class IngressInfo extends Message<IngressInfo> {
487
494
  */
488
495
  state?: IngressState;
489
496
 
497
+ /**
498
+ * The default value is true and when set to false, the new connection attempts will be rejected
499
+ *
500
+ * @generated from field: optional bool enabled = 16;
501
+ */
502
+ enabled?: boolean;
503
+
490
504
  constructor(data?: PartialMessage<IngressInfo>);
491
505
 
492
506
  static readonly runtime: typeof proto3;
@@ -743,6 +757,13 @@ export declare class UpdateIngressRequest extends Message<UpdateIngressRequest>
743
757
  */
744
758
  video?: IngressVideoOptions;
745
759
 
760
+ /**
761
+ * The default value is true and when set to false, the new connection attempts will be rejected
762
+ *
763
+ * @generated from field: optional bool enabled = 11;
764
+ */
765
+ enabled?: boolean;
766
+
746
767
  constructor(data?: PartialMessage<UpdateIngressRequest>);
747
768
 
748
769
  static readonly runtime: typeof proto3;
@@ -79,6 +79,7 @@ export const CreateIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
79
79
  { no: 11, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
80
80
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
81
81
  { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
82
+ { no: 12, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
82
83
  ],
83
84
  );
84
85
 
@@ -154,6 +155,7 @@ export const IngressInfo = /*@__PURE__*/ proto3.makeMessageType(
154
155
  { no: 14, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
156
  { no: 11, name: "reusable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
156
157
  { no: 12, name: "state", kind: "message", T: IngressState },
158
+ { no: 16, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
157
159
  ],
158
160
  );
159
161
 
@@ -233,6 +235,7 @@ export const UpdateIngressRequest = /*@__PURE__*/ proto3.makeMessageType(
233
235
  { no: 10, name: "enable_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
234
236
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
235
237
  { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
238
+ { no: 11, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
236
239
  ],
237
240
  );
238
241
 
@@ -1145,6 +1145,12 @@ export declare class DataPacket extends Message<DataPacket> {
1145
1145
  */
1146
1146
  value: DataStream_Chunk;
1147
1147
  case: "streamChunk";
1148
+ } | {
1149
+ /**
1150
+ * @generated from field: livekit.DataStream.Trailer stream_trailer = 15;
1151
+ */
1152
+ value: DataStream_Trailer;
1153
+ case: "streamTrailer";
1148
1154
  } | { case: undefined; value?: undefined };
1149
1155
 
1150
1156
  constructor(data?: PartialMessage<DataPacket>);
@@ -2792,24 +2798,17 @@ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
2792
2798
  */
2793
2799
  content: Uint8Array;
2794
2800
 
2795
- /**
2796
- * true only if this is the last chunk of this stream - can also be sent with empty content
2797
- *
2798
- * @generated from field: bool complete = 4;
2799
- */
2800
- complete: boolean;
2801
-
2802
2801
  /**
2803
2802
  * a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
2804
2803
  *
2805
- * @generated from field: int32 version = 5;
2804
+ * @generated from field: int32 version = 4;
2806
2805
  */
2807
2806
  version: number;
2808
2807
 
2809
2808
  /**
2810
2809
  * optional, initialization vector for AES-GCM encryption
2811
2810
  *
2812
- * @generated from field: optional bytes iv = 6;
2811
+ * @generated from field: optional bytes iv = 5;
2813
2812
  */
2814
2813
  iv?: Uint8Array;
2815
2814
 
@@ -2828,3 +2827,43 @@ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
2828
2827
  static equals(a: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined, b: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined): boolean;
2829
2828
  }
2830
2829
 
2830
+ /**
2831
+ * @generated from message livekit.DataStream.Trailer
2832
+ */
2833
+ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
2834
+ /**
2835
+ * unique identifier for this data stream
2836
+ *
2837
+ * @generated from field: string stream_id = 1;
2838
+ */
2839
+ streamId: string;
2840
+
2841
+ /**
2842
+ * reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)
2843
+ *
2844
+ * @generated from field: string reason = 2;
2845
+ */
2846
+ reason: string;
2847
+
2848
+ /**
2849
+ * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
2850
+ *
2851
+ * @generated from field: map<string, string> extensions = 3;
2852
+ */
2853
+ extensions: { [key: string]: string };
2854
+
2855
+ constructor(data?: PartialMessage<DataStream_Trailer>);
2856
+
2857
+ static readonly runtime: typeof proto3;
2858
+ static readonly typeName = "livekit.DataStream.Trailer";
2859
+ static readonly fields: FieldList;
2860
+
2861
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Trailer;
2862
+
2863
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Trailer;
2864
+
2865
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Trailer;
2866
+
2867
+ static equals(a: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined, b: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined): boolean;
2868
+ }
2869
+
@@ -397,6 +397,7 @@ export const DataPacket = /*@__PURE__*/ proto3.makeMessageType(
397
397
  { no: 12, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
398
398
  { no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
399
399
  { no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
400
+ { no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" },
400
401
  ],
401
402
  );
402
403
 
@@ -903,10 +904,22 @@ export const DataStream_Chunk = /*@__PURE__*/ proto3.makeMessageType(
903
904
  { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
904
905
  { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
905
906
  { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
906
- { no: 4, name: "complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
907
- { no: 5, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
908
- { no: 6, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
907
+ { no: 4, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
908
+ { no: 5, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
909
909
  ],
910
910
  {localName: "DataStream_Chunk"},
911
911
  );
912
912
 
913
+ /**
914
+ * @generated from message livekit.DataStream.Trailer
915
+ */
916
+ export const DataStream_Trailer = /*@__PURE__*/ proto3.makeMessageType(
917
+ "livekit.DataStream.Trailer",
918
+ () => [
919
+ { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
920
+ { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
921
+ { no: 3, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
922
+ ],
923
+ {localName: "DataStream_Trailer"},
924
+ );
925
+
@@ -73,6 +73,32 @@ export declare enum SIPHeaderOptions {
73
73
  SIP_ALL_HEADERS = 2,
74
74
  }
75
75
 
76
+ /**
77
+ * @generated from enum livekit.SIPMediaEncryption
78
+ */
79
+ export declare enum SIPMediaEncryption {
80
+ /**
81
+ * do not enable encryption
82
+ *
83
+ * @generated from enum value: SIP_MEDIA_ENCRYPT_DISABLE = 0;
84
+ */
85
+ SIP_MEDIA_ENCRYPT_DISABLE = 0,
86
+
87
+ /**
88
+ * use encryption if available
89
+ *
90
+ * @generated from enum value: SIP_MEDIA_ENCRYPT_ALLOW = 1;
91
+ */
92
+ SIP_MEDIA_ENCRYPT_ALLOW = 1,
93
+
94
+ /**
95
+ * require encryption
96
+ *
97
+ * @generated from enum value: SIP_MEDIA_ENCRYPT_REQUIRE = 2;
98
+ */
99
+ SIP_MEDIA_ENCRYPT_REQUIRE = 2,
100
+ }
101
+
76
102
  /**
77
103
  * @generated from enum livekit.SIPCallStatus
78
104
  */
@@ -128,6 +154,26 @@ export declare enum SIPFeature {
128
154
  KRISP_ENABLED = 1,
129
155
  }
130
156
 
157
+ /**
158
+ * @generated from enum livekit.SIPCallDirection
159
+ */
160
+ export declare enum SIPCallDirection {
161
+ /**
162
+ * @generated from enum value: SCD_UNKNOWN = 0;
163
+ */
164
+ SCD_UNKNOWN = 0,
165
+
166
+ /**
167
+ * @generated from enum value: SCD_INBOUND = 1;
168
+ */
169
+ SCD_INBOUND = 1,
170
+
171
+ /**
172
+ * @generated from enum value: SCD_OUTBOUND = 2;
173
+ */
174
+ SCD_OUTBOUND = 2,
175
+ }
176
+
131
177
  /**
132
178
  * @generated from message livekit.CreateSIPTrunkRequest
133
179
  * @deprecated
@@ -492,6 +538,11 @@ export declare class SIPInboundTrunkInfo extends Message<SIPInboundTrunkInfo> {
492
538
  */
493
539
  krispEnabled: boolean;
494
540
 
541
+ /**
542
+ * @generated from field: livekit.SIPMediaEncryption media_encryption = 16;
543
+ */
544
+ mediaEncryption: SIPMediaEncryption;
545
+
495
546
  constructor(data?: PartialMessage<SIPInboundTrunkInfo>);
496
547
 
497
548
  static readonly runtime: typeof proto3;
@@ -627,6 +678,11 @@ export declare class SIPOutboundTrunkInfo extends Message<SIPOutboundTrunkInfo>
627
678
  */
628
679
  includeHeaders: SIPHeaderOptions;
629
680
 
681
+ /**
682
+ * @generated from field: livekit.SIPMediaEncryption media_encryption = 13;
683
+ */
684
+ mediaEncryption: SIPMediaEncryption;
685
+
630
686
  constructor(data?: PartialMessage<SIPOutboundTrunkInfo>);
631
687
 
632
688
  static readonly runtime: typeof proto3;
@@ -1231,12 +1287,22 @@ export declare class SIPDispatchRuleInfo extends Message<SIPDispatchRuleInfo> {
1231
1287
  /**
1232
1288
  * RoomConfiguration to use if the participant initiates the room
1233
1289
  *
1234
- * NEXT ID: 11
1235
- *
1236
1290
  * @generated from field: livekit.RoomConfiguration room_config = 10;
1237
1291
  */
1238
1292
  roomConfig?: RoomConfiguration;
1239
1293
 
1294
+ /**
1295
+ * @generated from field: bool krisp_enabled = 11;
1296
+ */
1297
+ krispEnabled: boolean;
1298
+
1299
+ /**
1300
+ * NEXT ID: 13
1301
+ *
1302
+ * @generated from field: livekit.SIPMediaEncryption media_encryption = 12;
1303
+ */
1304
+ mediaEncryption: SIPMediaEncryption;
1305
+
1240
1306
  constructor(data?: PartialMessage<SIPDispatchRuleInfo>);
1241
1307
 
1242
1308
  static readonly runtime: typeof proto3;
@@ -1464,11 +1530,16 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
1464
1530
  /**
1465
1531
  * Enable voice isolation for the callee.
1466
1532
  *
1467
- * NEXT ID: 18
1533
+ * @generated from field: bool krisp_enabled = 14;
1534
+ */
1535
+ krispEnabled: boolean;
1536
+
1537
+ /**
1538
+ * NEXT ID: 19
1468
1539
  *
1469
- * @generated from field: bool enable_krisp = 14;
1540
+ * @generated from field: livekit.SIPMediaEncryption media_encryption = 18;
1470
1541
  */
1471
- enableKrisp: boolean;
1542
+ mediaEncryption: SIPMediaEncryption;
1472
1543
 
1473
1544
  constructor(data?: PartialMessage<CreateSIPParticipantRequest>);
1474
1545
 
@@ -1618,6 +1689,11 @@ export declare class SIPCallInfo extends Message<SIPCallInfo> {
1618
1689
  */
1619
1690
  enabledFeatures: SIPFeature[];
1620
1691
 
1692
+ /**
1693
+ * @generated from field: livekit.SIPCallDirection call_direction = 15;
1694
+ */
1695
+ callDirection: SIPCallDirection;
1696
+
1621
1697
  /**
1622
1698
  * @generated from field: livekit.SIPCallStatus call_status = 8;
1623
1699
  */
@@ -46,6 +46,18 @@ export const SIPHeaderOptions = /*@__PURE__*/ proto3.makeEnum(
46
46
  ],
47
47
  );
48
48
 
49
+ /**
50
+ * @generated from enum livekit.SIPMediaEncryption
51
+ */
52
+ export const SIPMediaEncryption = /*@__PURE__*/ proto3.makeEnum(
53
+ "livekit.SIPMediaEncryption",
54
+ [
55
+ {no: 0, name: "SIP_MEDIA_ENCRYPT_DISABLE"},
56
+ {no: 1, name: "SIP_MEDIA_ENCRYPT_ALLOW"},
57
+ {no: 2, name: "SIP_MEDIA_ENCRYPT_REQUIRE"},
58
+ ],
59
+ );
60
+
49
61
  /**
50
62
  * @generated from enum livekit.SIPCallStatus
51
63
  */
@@ -71,6 +83,18 @@ export const SIPFeature = /*@__PURE__*/ proto3.makeEnum(
71
83
  ],
72
84
  );
73
85
 
86
+ /**
87
+ * @generated from enum livekit.SIPCallDirection
88
+ */
89
+ export const SIPCallDirection = /*@__PURE__*/ proto3.makeEnum(
90
+ "livekit.SIPCallDirection",
91
+ [
92
+ {no: 0, name: "SCD_UNKNOWN"},
93
+ {no: 1, name: "SCD_INBOUND"},
94
+ {no: 2, name: "SCD_OUTBOUND"},
95
+ ],
96
+ );
97
+
74
98
  /**
75
99
  * @generated from message livekit.CreateSIPTrunkRequest
76
100
  * @deprecated
@@ -159,6 +183,7 @@ export const SIPInboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
159
183
  { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
160
184
  { no: 12, name: "max_call_duration", kind: "message", T: Duration },
161
185
  { no: 13, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
186
+ { no: 16, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
162
187
  ],
163
188
  );
164
189
 
@@ -190,6 +215,7 @@ export const SIPOutboundTrunkInfo = /*@__PURE__*/ proto3.makeMessageType(
190
215
  { no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
191
216
  { no: 11, name: "attributes_to_headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
192
217
  { no: 12, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
218
+ { no: 13, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
193
219
  ],
194
220
  );
195
221
 
@@ -389,6 +415,8 @@ export const SIPDispatchRuleInfo = /*@__PURE__*/ proto3.makeMessageType(
389
415
  { no: 8, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
390
416
  { no: 9, name: "room_preset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
391
417
  { no: 10, name: "room_config", kind: "message", T: RoomConfiguration },
418
+ { no: 11, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
419
+ { no: 12, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
392
420
  ],
393
421
  );
394
422
 
@@ -450,7 +478,8 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
450
478
  { no: 17, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
451
479
  { no: 11, name: "ringing_timeout", kind: "message", T: Duration },
452
480
  { no: 12, name: "max_call_duration", kind: "message", T: Duration },
453
- { no: 14, name: "enable_krisp", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
481
+ { no: 14, name: "krisp_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
482
+ { no: 18, name: "media_encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption) },
454
483
  ],
455
484
  );
456
485
 
@@ -495,6 +524,7 @@ export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
495
524
  { no: 6, name: "from_uri", kind: "message", T: SIPUri },
496
525
  { no: 7, name: "to_uri", kind: "message", T: SIPUri },
497
526
  { no: 14, name: "enabled_features", kind: "enum", T: proto3.getEnumType(SIPFeature), repeated: true },
527
+ { no: 15, name: "call_direction", kind: "enum", T: proto3.getEnumType(SIPCallDirection) },
498
528
  { no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
499
529
  { no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
500
530
  { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.30.0';
2
+ export const version = '1.31.0';