@livekit/protocol 1.30.0 → 1.32.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 CHANGED
@@ -266,6 +266,25 @@ const AudioTrackFeature = /* @__PURE__ */ protobuf.proto3.makeEnum(
266
266
  { no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION" }
267
267
  ]
268
268
  );
269
+ const Pagination = /* @__PURE__ */ protobuf.proto3.makeMessageType(
270
+ "livekit.Pagination",
271
+ () => [
272
+ {
273
+ no: 1,
274
+ name: "after_id",
275
+ kind: "scalar",
276
+ T: 9
277
+ /* ScalarType.STRING */
278
+ },
279
+ {
280
+ no: 2,
281
+ name: "limit",
282
+ kind: "scalar",
283
+ T: 5
284
+ /* ScalarType.INT32 */
285
+ }
286
+ ]
287
+ );
269
288
  const Room = /* @__PURE__ */ protobuf.proto3.makeMessageType(
270
289
  "livekit.Room",
271
290
  () => [
@@ -490,6 +509,13 @@ const ParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
490
509
  T: 3
491
510
  /* ScalarType.INT64 */
492
511
  },
512
+ {
513
+ no: 17,
514
+ name: "joined_at_ms",
515
+ kind: "scalar",
516
+ T: 3
517
+ /* ScalarType.INT64 */
518
+ },
493
519
  {
494
520
  no: 9,
495
521
  name: "name",
@@ -738,7 +764,8 @@ const DataPacket = /* @__PURE__ */ protobuf.proto3.makeMessageType(
738
764
  { no: 11, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
739
765
  { no: 12, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" },
740
766
  { no: 13, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "value" },
741
- { no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" }
767
+ { no: 14, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "value" },
768
+ { no: 15, name: "stream_trailer", kind: "message", T: DataStream_Trailer, oneof: "value" }
742
769
  ]
743
770
  );
744
771
  const DataPacket_Kind = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -1789,18 +1816,18 @@ const DataStream_TextHeader = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1789
1816
  ],
1790
1817
  { localName: "DataStream_TextHeader" }
1791
1818
  );
1792
- const DataStream_FileHeader = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1793
- "livekit.DataStream.FileHeader",
1819
+ const DataStream_ByteHeader = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1820
+ "livekit.DataStream.ByteHeader",
1794
1821
  () => [
1795
1822
  {
1796
1823
  no: 1,
1797
- name: "file_name",
1824
+ name: "name",
1798
1825
  kind: "scalar",
1799
1826
  T: 9
1800
1827
  /* ScalarType.STRING */
1801
1828
  }
1802
1829
  ],
1803
- { localName: "DataStream_FileHeader" }
1830
+ { localName: "DataStream_ByteHeader" }
1804
1831
  );
1805
1832
  const DataStream_Header = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1806
1833
  "livekit.DataStream.Header",
@@ -1835,13 +1862,13 @@ const DataStream_Header = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1835
1862
  },
1836
1863
  { no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
1837
1864
  { no: 7, name: "encryption_type", kind: "enum", T: protobuf.proto3.getEnumType(Encryption_Type) },
1838
- { no: 8, name: "extensions", kind: "map", K: 9, V: {
1865
+ { no: 8, name: "attributes", kind: "map", K: 9, V: {
1839
1866
  kind: "scalar",
1840
1867
  T: 9
1841
1868
  /* ScalarType.STRING */
1842
1869
  } },
1843
1870
  { no: 9, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
1844
- { no: 10, name: "file_header", kind: "message", T: DataStream_FileHeader, oneof: "content_header" }
1871
+ { no: 10, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" }
1845
1872
  ],
1846
1873
  { localName: "DataStream_Header" }
1847
1874
  );
@@ -1871,22 +1898,40 @@ const DataStream_Chunk = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1871
1898
  },
1872
1899
  {
1873
1900
  no: 4,
1874
- name: "complete",
1875
- kind: "scalar",
1876
- T: 8
1877
- /* ScalarType.BOOL */
1878
- },
1879
- {
1880
- no: 5,
1881
1901
  name: "version",
1882
1902
  kind: "scalar",
1883
1903
  T: 5
1884
1904
  /* ScalarType.INT32 */
1885
1905
  },
1886
- { no: 6, name: "iv", kind: "scalar", T: 12, opt: true }
1906
+ { no: 5, name: "iv", kind: "scalar", T: 12, opt: true }
1887
1907
  ],
1888
1908
  { localName: "DataStream_Chunk" }
1889
1909
  );
1910
+ const DataStream_Trailer = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1911
+ "livekit.DataStream.Trailer",
1912
+ () => [
1913
+ {
1914
+ no: 1,
1915
+ name: "stream_id",
1916
+ kind: "scalar",
1917
+ T: 9
1918
+ /* ScalarType.STRING */
1919
+ },
1920
+ {
1921
+ no: 2,
1922
+ name: "reason",
1923
+ kind: "scalar",
1924
+ T: 9
1925
+ /* ScalarType.STRING */
1926
+ },
1927
+ { no: 3, name: "attributes", kind: "map", K: 9, V: {
1928
+ kind: "scalar",
1929
+ T: 9
1930
+ /* ScalarType.STRING */
1931
+ } }
1932
+ ],
1933
+ { localName: "DataStream_Trailer" }
1934
+ );
1890
1935
 
1891
1936
  const JobType = /* @__PURE__ */ protobuf.proto3.makeEnum(
1892
1937
  "livekit.JobType",
@@ -3532,7 +3577,8 @@ const CreateIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3532
3577
  },
3533
3578
  { no: 11, name: "enable_transcoding", kind: "scalar", T: 8, opt: true },
3534
3579
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
3535
- { no: 7, name: "video", kind: "message", T: IngressVideoOptions }
3580
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
3581
+ { no: 12, name: "enabled", kind: "scalar", T: 8, opt: true }
3536
3582
  ]
3537
3583
  );
3538
3584
  const IngressAudioOptions = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -3683,7 +3729,8 @@ const IngressInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3683
3729
  T: 8
3684
3730
  /* ScalarType.BOOL */
3685
3731
  },
3686
- { no: 12, name: "state", kind: "message", T: IngressState }
3732
+ { no: 12, name: "state", kind: "message", T: IngressState },
3733
+ { no: 16, name: "enabled", kind: "scalar", T: 8, opt: true }
3687
3734
  ]
3688
3735
  );
3689
3736
  const IngressState = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -3868,7 +3915,8 @@ const UpdateIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
3868
3915
  { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8, opt: true },
3869
3916
  { no: 10, name: "enable_transcoding", kind: "scalar", T: 8, opt: true },
3870
3917
  { no: 6, name: "audio", kind: "message", T: IngressAudioOptions },
3871
- { no: 7, name: "video", kind: "message", T: IngressVideoOptions }
3918
+ { no: 7, name: "video", kind: "message", T: IngressVideoOptions },
3919
+ { no: 11, name: "enabled", kind: "scalar", T: 8, opt: true }
3872
3920
  ]
3873
3921
  );
3874
3922
  const ListIngressRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5162,6 +5210,14 @@ const SIPHeaderOptions = /* @__PURE__ */ protobuf.proto3.makeEnum(
5162
5210
  { no: 2, name: "SIP_ALL_HEADERS" }
5163
5211
  ]
5164
5212
  );
5213
+ const SIPMediaEncryption = /* @__PURE__ */ protobuf.proto3.makeEnum(
5214
+ "livekit.SIPMediaEncryption",
5215
+ [
5216
+ { no: 0, name: "SIP_MEDIA_ENCRYPT_DISABLE" },
5217
+ { no: 1, name: "SIP_MEDIA_ENCRYPT_ALLOW" },
5218
+ { no: 2, name: "SIP_MEDIA_ENCRYPT_REQUIRE" }
5219
+ ]
5220
+ );
5165
5221
  const SIPCallStatus = /* @__PURE__ */ protobuf.proto3.makeEnum(
5166
5222
  "livekit.SIPCallStatus",
5167
5223
  [
@@ -5179,6 +5235,14 @@ const SIPFeature = /* @__PURE__ */ protobuf.proto3.makeEnum(
5179
5235
  { no: 1, name: "KRISP_ENABLED" }
5180
5236
  ]
5181
5237
  );
5238
+ const SIPCallDirection = /* @__PURE__ */ protobuf.proto3.makeEnum(
5239
+ "livekit.SIPCallDirection",
5240
+ [
5241
+ { no: 0, name: "SCD_UNKNOWN" },
5242
+ { no: 1, name: "SCD_INBOUND" },
5243
+ { no: 2, name: "SCD_OUTBOUND" }
5244
+ ]
5245
+ );
5182
5246
  const CreateSIPTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5183
5247
  "livekit.CreateSIPTrunkRequest",
5184
5248
  () => [
@@ -5395,7 +5459,8 @@ const SIPInboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5395
5459
  kind: "scalar",
5396
5460
  T: 8
5397
5461
  /* ScalarType.BOOL */
5398
- }
5462
+ },
5463
+ { no: 16, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5399
5464
  ]
5400
5465
  );
5401
5466
  const CreateSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5466,7 +5531,8 @@ const SIPOutboundTrunkInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5466
5531
  T: 9
5467
5532
  /* ScalarType.STRING */
5468
5533
  } },
5469
- { no: 12, name: "include_headers", kind: "enum", T: protobuf.proto3.getEnumType(SIPHeaderOptions) }
5534
+ { no: 12, name: "include_headers", kind: "enum", T: protobuf.proto3.getEnumType(SIPHeaderOptions) },
5535
+ { no: 13, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5470
5536
  ]
5471
5537
  );
5472
5538
  const GetSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5507,7 +5573,9 @@ const GetSIPOutboundTrunkResponse = /* @__PURE__ */ protobuf.proto3.makeMessageT
5507
5573
  );
5508
5574
  const ListSIPTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5509
5575
  "livekit.ListSIPTrunkRequest",
5510
- []
5576
+ () => [
5577
+ { no: 1, name: "page", kind: "message", T: Pagination }
5578
+ ]
5511
5579
  );
5512
5580
  const ListSIPTrunkResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5513
5581
  "livekit.ListSIPTrunkResponse",
@@ -5518,6 +5586,7 @@ const ListSIPTrunkResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5518
5586
  const ListSIPInboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5519
5587
  "livekit.ListSIPInboundTrunkRequest",
5520
5588
  () => [
5589
+ { no: 3, name: "page", kind: "message", T: Pagination },
5521
5590
  { no: 1, name: "trunk_ids", kind: "scalar", T: 9, repeated: true },
5522
5591
  { no: 2, name: "numbers", kind: "scalar", T: 9, repeated: true }
5523
5592
  ]
@@ -5531,6 +5600,7 @@ const ListSIPInboundTrunkResponse = /* @__PURE__ */ protobuf.proto3.makeMessageT
5531
5600
  const ListSIPOutboundTrunkRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5532
5601
  "livekit.ListSIPOutboundTrunkRequest",
5533
5602
  () => [
5603
+ { no: 3, name: "page", kind: "message", T: Pagination },
5534
5604
  { no: 1, name: "trunk_ids", kind: "scalar", T: 9, repeated: true },
5535
5605
  { no: 2, name: "numbers", kind: "scalar", T: 9, repeated: true }
5536
5606
  ]
@@ -5713,12 +5783,21 @@ const SIPDispatchRuleInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5713
5783
  T: 9
5714
5784
  /* ScalarType.STRING */
5715
5785
  },
5716
- { no: 10, name: "room_config", kind: "message", T: RoomConfiguration }
5786
+ { no: 10, name: "room_config", kind: "message", T: RoomConfiguration },
5787
+ {
5788
+ no: 11,
5789
+ name: "krisp_enabled",
5790
+ kind: "scalar",
5791
+ T: 8
5792
+ /* ScalarType.BOOL */
5793
+ },
5794
+ { no: 12, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5717
5795
  ]
5718
5796
  );
5719
5797
  const ListSIPDispatchRuleRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5720
5798
  "livekit.ListSIPDispatchRuleRequest",
5721
5799
  () => [
5800
+ { no: 3, name: "page", kind: "message", T: Pagination },
5722
5801
  { no: 1, name: "dispatch_rule_ids", kind: "scalar", T: 9, repeated: true },
5723
5802
  { no: 2, name: "trunk_ids", kind: "scalar", T: 9, repeated: true }
5724
5803
  ]
@@ -5836,11 +5915,12 @@ const CreateSIPParticipantRequest = /* @__PURE__ */ protobuf.proto3.makeMessageT
5836
5915
  { no: 12, name: "max_call_duration", kind: "message", T: protobuf.Duration },
5837
5916
  {
5838
5917
  no: 14,
5839
- name: "enable_krisp",
5918
+ name: "krisp_enabled",
5840
5919
  kind: "scalar",
5841
5920
  T: 8
5842
5921
  /* ScalarType.BOOL */
5843
- }
5922
+ },
5923
+ { no: 18, name: "media_encryption", kind: "enum", T: protobuf.proto3.getEnumType(SIPMediaEncryption) }
5844
5924
  ]
5845
5925
  );
5846
5926
  const SIPParticipantInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -5955,6 +6035,7 @@ const SIPCallInfo = /* @__PURE__ */ protobuf.proto3.makeMessageType(
5955
6035
  { no: 6, name: "from_uri", kind: "message", T: SIPUri },
5956
6036
  { no: 7, name: "to_uri", kind: "message", T: SIPUri },
5957
6037
  { no: 14, name: "enabled_features", kind: "enum", T: protobuf.proto3.getEnumType(SIPFeature), repeated: true },
6038
+ { no: 15, name: "call_direction", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallDirection) },
5958
6039
  { no: 8, name: "call_status", kind: "enum", T: protobuf.proto3.getEnumType(SIPCallStatus) },
5959
6040
  {
5960
6041
  no: 9,
@@ -6061,7 +6142,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
6061
6142
  ]
6062
6143
  );
6063
6144
 
6064
- const version = "1.30.0";
6145
+ const version = "1.32.0";
6065
6146
 
6066
6147
  exports.protoInt64 = protobuf.protoInt64;
6067
6148
  exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
@@ -6098,11 +6179,12 @@ exports.DataChannelInfo = DataChannelInfo;
6098
6179
  exports.DataPacket = DataPacket;
6099
6180
  exports.DataPacket_Kind = DataPacket_Kind;
6100
6181
  exports.DataStream = DataStream;
6182
+ exports.DataStream_ByteHeader = DataStream_ByteHeader;
6101
6183
  exports.DataStream_Chunk = DataStream_Chunk;
6102
- exports.DataStream_FileHeader = DataStream_FileHeader;
6103
6184
  exports.DataStream_Header = DataStream_Header;
6104
6185
  exports.DataStream_OperationType = DataStream_OperationType;
6105
6186
  exports.DataStream_TextHeader = DataStream_TextHeader;
6187
+ exports.DataStream_Trailer = DataStream_Trailer;
6106
6188
  exports.DeleteAgentDispatchRequest = DeleteAgentDispatchRequest;
6107
6189
  exports.DeleteIngressRequest = DeleteIngressRequest;
6108
6190
  exports.DeleteRoomRequest = DeleteRoomRequest;
@@ -6179,6 +6261,7 @@ exports.MigrateJobRequest = MigrateJobRequest;
6179
6261
  exports.MuteRoomTrackRequest = MuteRoomTrackRequest;
6180
6262
  exports.MuteRoomTrackResponse = MuteRoomTrackResponse;
6181
6263
  exports.MuteTrackRequest = MuteTrackRequest;
6264
+ exports.Pagination = Pagination;
6182
6265
  exports.ParticipantEgressRequest = ParticipantEgressRequest;
6183
6266
  exports.ParticipantInfo = ParticipantInfo;
6184
6267
  exports.ParticipantInfo_Kind = ParticipantInfo_Kind;
@@ -6217,6 +6300,7 @@ exports.RpcError = RpcError;
6217
6300
  exports.RpcRequest = RpcRequest;
6218
6301
  exports.RpcResponse = RpcResponse;
6219
6302
  exports.S3Upload = S3Upload;
6303
+ exports.SIPCallDirection = SIPCallDirection;
6220
6304
  exports.SIPCallInfo = SIPCallInfo;
6221
6305
  exports.SIPCallStatus = SIPCallStatus;
6222
6306
  exports.SIPDispatchRule = SIPDispatchRule;
@@ -6227,6 +6311,7 @@ exports.SIPDispatchRuleInfo = SIPDispatchRuleInfo;
6227
6311
  exports.SIPFeature = SIPFeature;
6228
6312
  exports.SIPHeaderOptions = SIPHeaderOptions;
6229
6313
  exports.SIPInboundTrunkInfo = SIPInboundTrunkInfo;
6314
+ exports.SIPMediaEncryption = SIPMediaEncryption;
6230
6315
  exports.SIPOutboundTrunkInfo = SIPOutboundTrunkInfo;
6231
6316
  exports.SIPParticipantInfo = SIPParticipantInfo;
6232
6317
  exports.SIPTransport = SIPTransport;