@livekit/rtc-node 0.13.2 → 0.13.4

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.
Files changed (114) hide show
  1. package/dist/data_streams/index.cjs +25 -0
  2. package/dist/data_streams/index.cjs.map +1 -0
  3. package/dist/data_streams/index.d.cts +11 -0
  4. package/dist/data_streams/index.d.ts +11 -0
  5. package/dist/data_streams/index.d.ts.map +1 -0
  6. package/dist/data_streams/index.js +3 -0
  7. package/dist/data_streams/index.js.map +1 -0
  8. package/dist/data_streams/stream_reader.cjs +145 -0
  9. package/dist/data_streams/stream_reader.cjs.map +1 -0
  10. package/dist/data_streams/stream_reader.d.cts +10 -0
  11. package/dist/data_streams/stream_reader.d.ts +10 -0
  12. package/dist/data_streams/stream_reader.d.ts.map +1 -0
  13. package/dist/data_streams/stream_reader.js +120 -0
  14. package/dist/data_streams/stream_reader.js.map +1 -0
  15. package/dist/data_streams/stream_writer.cjs +51 -0
  16. package/dist/data_streams/stream_writer.cjs.map +1 -0
  17. package/dist/data_streams/stream_writer.d.cts +26 -0
  18. package/dist/data_streams/stream_writer.d.ts +26 -0
  19. package/dist/data_streams/stream_writer.d.ts.map +1 -0
  20. package/dist/data_streams/stream_writer.js +26 -0
  21. package/dist/data_streams/stream_writer.js.map +1 -0
  22. package/dist/data_streams/types.cjs +17 -0
  23. package/dist/data_streams/types.cjs.map +1 -0
  24. package/dist/data_streams/types.d.cts +10 -0
  25. package/dist/data_streams/types.d.ts +10 -0
  26. package/dist/data_streams/types.d.ts.map +1 -0
  27. package/dist/data_streams/types.js +1 -0
  28. package/dist/data_streams/types.js.map +1 -0
  29. package/dist/index.cjs +7 -4
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +4 -0
  32. package/dist/index.d.ts +4 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +1 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/log.cjs +42 -0
  37. package/dist/log.cjs.map +1 -0
  38. package/dist/log.d.cts +7 -0
  39. package/dist/log.d.ts +7 -0
  40. package/dist/log.d.ts.map +1 -0
  41. package/dist/log.js +18 -0
  42. package/dist/log.js.map +1 -0
  43. package/dist/napi/native.d.cjs.map +1 -1
  44. package/dist/napi/native.d.ts +5 -5
  45. package/dist/native.d.ts +5 -5
  46. package/dist/participant.cjs +260 -16
  47. package/dist/participant.cjs.map +1 -1
  48. package/dist/participant.d.cts +40 -6
  49. package/dist/participant.d.ts +40 -6
  50. package/dist/participant.d.ts.map +1 -1
  51. package/dist/participant.js +263 -5
  52. package/dist/participant.js.map +1 -1
  53. package/dist/proto/ffi_pb.cjs +14 -3
  54. package/dist/proto/ffi_pb.cjs.map +1 -1
  55. package/dist/proto/ffi_pb.d.cts +81 -7
  56. package/dist/proto/ffi_pb.d.ts +81 -7
  57. package/dist/proto/ffi_pb.d.ts.map +1 -1
  58. package/dist/proto/ffi_pb.js +15 -4
  59. package/dist/proto/ffi_pb.js.map +1 -1
  60. package/dist/proto/room_pb.cjs +488 -30
  61. package/dist/proto/room_pb.cjs.map +1 -1
  62. package/dist/proto/room_pb.d.cts +412 -50
  63. package/dist/proto/room_pb.d.ts +412 -50
  64. package/dist/proto/room_pb.d.ts.map +1 -1
  65. package/dist/proto/room_pb.js +471 -29
  66. package/dist/proto/room_pb.js.map +1 -1
  67. package/dist/proto/video_frame_pb.cjs.map +1 -1
  68. package/dist/proto/video_frame_pb.d.cts +3 -0
  69. package/dist/proto/video_frame_pb.d.ts +3 -0
  70. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  71. package/dist/proto/video_frame_pb.js.map +1 -1
  72. package/dist/room.cjs +202 -45
  73. package/dist/room.cjs.map +1 -1
  74. package/dist/room.d.cts +21 -3
  75. package/dist/room.d.ts +21 -3
  76. package/dist/room.d.ts.map +1 -1
  77. package/dist/room.js +203 -45
  78. package/dist/room.js.map +1 -1
  79. package/dist/types-BWsKf9LP.d.cts +93 -0
  80. package/dist/types-Ca3IVRvo.d.ts +93 -0
  81. package/dist/utils.cjs +51 -0
  82. package/dist/utils.cjs.map +1 -0
  83. package/dist/utils.d.cts +7 -0
  84. package/dist/utils.d.ts +7 -0
  85. package/dist/utils.d.ts.map +1 -0
  86. package/dist/utils.js +25 -0
  87. package/dist/utils.js.map +1 -0
  88. package/dist/version.cjs +1 -1
  89. package/dist/version.cjs.map +1 -1
  90. package/dist/version.d.cts +1 -1
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/dist/version.js.map +1 -1
  94. package/dist/video_frame.cjs +2 -0
  95. package/dist/video_frame.cjs.map +1 -1
  96. package/dist/video_frame.d.ts.map +1 -1
  97. package/dist/video_frame.js +2 -0
  98. package/dist/video_frame.js.map +1 -1
  99. package/package.json +9 -7
  100. package/src/data_streams/index.ts +7 -0
  101. package/src/data_streams/stream_reader.ts +166 -0
  102. package/src/data_streams/stream_writer.ts +36 -0
  103. package/src/data_streams/types.ts +61 -0
  104. package/src/index.ts +1 -0
  105. package/src/log.ts +25 -0
  106. package/src/napi/native.d.ts +5 -5
  107. package/src/participant.ts +351 -29
  108. package/src/proto/ffi_pb.ts +86 -1
  109. package/src/proto/room_pb.ts +788 -68
  110. package/src/proto/video_frame_pb.ts +3 -0
  111. package/src/room.ts +251 -68
  112. package/src/utils.ts +33 -0
  113. package/src/version.ts +1 -1
  114. package/src/video_frame.ts +2 -0
@@ -2752,16 +2752,28 @@ export class RoomEvent extends Message<RoomEvent> {
2752
2752
  case: "chatMessage";
2753
2753
  } | {
2754
2754
  /**
2755
- * @generated from field: livekit.proto.DataStream.Header stream_header = 30;
2755
+ * @generated from field: livekit.proto.DataStreamHeaderReceived stream_header_received = 30;
2756
2756
  */
2757
- value: DataStream_Header;
2758
- case: "streamHeader";
2757
+ value: DataStreamHeaderReceived;
2758
+ case: "streamHeaderReceived";
2759
2759
  } | {
2760
2760
  /**
2761
- * @generated from field: livekit.proto.DataStream.Chunk stream_chunk = 31;
2761
+ * @generated from field: livekit.proto.DataStreamChunkReceived stream_chunk_received = 31;
2762
2762
  */
2763
- value: DataStream_Chunk;
2764
- case: "streamChunk";
2763
+ value: DataStreamChunkReceived;
2764
+ case: "streamChunkReceived";
2765
+ } | {
2766
+ /**
2767
+ * @generated from field: livekit.proto.DataStreamTrailerReceived stream_trailer_received = 32;
2768
+ */
2769
+ value: DataStreamTrailerReceived;
2770
+ case: "streamTrailerReceived";
2771
+ } | {
2772
+ /**
2773
+ * @generated from field: livekit.proto.DataChannelBufferedAmountLowThresholdChanged data_channel_low_threshold_changed = 33;
2774
+ */
2775
+ value: DataChannelBufferedAmountLowThresholdChanged;
2776
+ case: "dataChannelLowThresholdChanged";
2765
2777
  } | { case: undefined; value?: undefined } = { case: undefined };
2766
2778
 
2767
2779
  constructor(data?: PartialMessage<RoomEvent>) {
@@ -2801,8 +2813,10 @@ export class RoomEvent extends Message<RoomEvent> {
2801
2813
  { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
2802
2814
  { no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
2803
2815
  { no: 29, name: "chat_message", kind: "message", T: ChatMessageReceived, oneof: "message" },
2804
- { no: 30, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "message" },
2805
- { no: 31, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "message" },
2816
+ { no: 30, name: "stream_header_received", kind: "message", T: DataStreamHeaderReceived, oneof: "message" },
2817
+ { no: 31, name: "stream_chunk_received", kind: "message", T: DataStreamChunkReceived, oneof: "message" },
2818
+ { no: 32, name: "stream_trailer_received", kind: "message", T: DataStreamTrailerReceived, oneof: "message" },
2819
+ { no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" },
2806
2820
  ]);
2807
2821
 
2808
2822
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEvent {
@@ -2841,6 +2855,16 @@ export class RoomInfo extends Message<RoomInfo> {
2841
2855
  */
2842
2856
  metadata?: string;
2843
2857
 
2858
+ /**
2859
+ * @generated from field: required uint64 lossy_dc_buffered_amount_low_threshold = 4;
2860
+ */
2861
+ lossyDcBufferedAmountLowThreshold?: bigint;
2862
+
2863
+ /**
2864
+ * @generated from field: required uint64 reliable_dc_buffered_amount_low_threshold = 5;
2865
+ */
2866
+ reliableDcBufferedAmountLowThreshold?: bigint;
2867
+
2844
2868
  constructor(data?: PartialMessage<RoomInfo>) {
2845
2869
  super();
2846
2870
  proto2.util.initPartial(data, this);
@@ -2852,6 +2876,8 @@ export class RoomInfo extends Message<RoomInfo> {
2852
2876
  { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2853
2877
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
2854
2878
  { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
2879
+ { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
2880
+ { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
2855
2881
  ]);
2856
2882
 
2857
2883
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomInfo {
@@ -4334,14 +4360,14 @@ export class DataStream_TextHeader extends Message<DataStream_TextHeader> {
4334
4360
  /**
4335
4361
  * Optional: Version for updates/edits
4336
4362
  *
4337
- * @generated from field: required int32 version = 2;
4363
+ * @generated from field: optional int32 version = 2;
4338
4364
  */
4339
4365
  version?: number;
4340
4366
 
4341
4367
  /**
4342
4368
  * Optional: Reply to specific message
4343
4369
  *
4344
- * @generated from field: required string reply_to_stream_id = 3;
4370
+ * @generated from field: optional string reply_to_stream_id = 3;
4345
4371
  */
4346
4372
  replyToStreamId?: string;
4347
4373
 
@@ -4355,7 +4381,7 @@ export class DataStream_TextHeader extends Message<DataStream_TextHeader> {
4355
4381
  /**
4356
4382
  * true if the text has been generated by an agent from a participant's audio transcription
4357
4383
  *
4358
- * @generated from field: required bool generated = 5;
4384
+ * @generated from field: optional bool generated = 5;
4359
4385
  */
4360
4386
  generated?: boolean;
4361
4387
 
@@ -4368,10 +4394,10 @@ export class DataStream_TextHeader extends Message<DataStream_TextHeader> {
4368
4394
  static readonly typeName = "livekit.proto.DataStream.TextHeader";
4369
4395
  static readonly fields: FieldList = proto2.util.newFieldList(() => [
4370
4396
  { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType), req: true },
4371
- { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
4372
- { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4397
+ { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4398
+ { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4373
4399
  { no: 4, name: "attached_stream_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4374
- { no: 5, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
4400
+ { no: 5, name: "generated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
4375
4401
  ]);
4376
4402
 
4377
4403
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_TextHeader {
@@ -4392,43 +4418,41 @@ export class DataStream_TextHeader extends Message<DataStream_TextHeader> {
4392
4418
  }
4393
4419
 
4394
4420
  /**
4395
- * header properties specific to file or image streams
4421
+ * header properties specific to byte or file streams
4396
4422
  *
4397
- * @generated from message livekit.proto.DataStream.FileHeader
4423
+ * @generated from message livekit.proto.DataStream.ByteHeader
4398
4424
  */
4399
- export class DataStream_FileHeader extends Message<DataStream_FileHeader> {
4425
+ export class DataStream_ByteHeader extends Message<DataStream_ByteHeader> {
4400
4426
  /**
4401
- * name of the file
4402
- *
4403
- * @generated from field: required string file_name = 1;
4427
+ * @generated from field: required string name = 1;
4404
4428
  */
4405
- fileName?: string;
4429
+ name?: string;
4406
4430
 
4407
- constructor(data?: PartialMessage<DataStream_FileHeader>) {
4431
+ constructor(data?: PartialMessage<DataStream_ByteHeader>) {
4408
4432
  super();
4409
4433
  proto2.util.initPartial(data, this);
4410
4434
  }
4411
4435
 
4412
4436
  static readonly runtime: typeof proto2 = proto2;
4413
- static readonly typeName = "livekit.proto.DataStream.FileHeader";
4437
+ static readonly typeName = "livekit.proto.DataStream.ByteHeader";
4414
4438
  static readonly fields: FieldList = proto2.util.newFieldList(() => [
4415
- { no: 1, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4439
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4416
4440
  ]);
4417
4441
 
4418
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_FileHeader {
4419
- return new DataStream_FileHeader().fromBinary(bytes, options);
4442
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_ByteHeader {
4443
+ return new DataStream_ByteHeader().fromBinary(bytes, options);
4420
4444
  }
4421
4445
 
4422
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_FileHeader {
4423
- return new DataStream_FileHeader().fromJson(jsonValue, options);
4446
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_ByteHeader {
4447
+ return new DataStream_ByteHeader().fromJson(jsonValue, options);
4424
4448
  }
4425
4449
 
4426
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_FileHeader {
4427
- return new DataStream_FileHeader().fromJsonString(jsonString, options);
4450
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_ByteHeader {
4451
+ return new DataStream_ByteHeader().fromJsonString(jsonString, options);
4428
4452
  }
4429
4453
 
4430
- static equals(a: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined, b: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined): boolean {
4431
- return proto2.util.equals(DataStream_FileHeader, a, b);
4454
+ static equals(a: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined, b: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined): boolean {
4455
+ return proto2.util.equals(DataStream_ByteHeader, a, b);
4432
4456
  }
4433
4457
  }
4434
4458
 
@@ -4453,14 +4477,14 @@ export class DataStream_Header extends Message<DataStream_Header> {
4453
4477
  timestamp?: bigint;
4454
4478
 
4455
4479
  /**
4456
- * @generated from field: required string topic = 3;
4480
+ * @generated from field: required string mime_type = 3;
4457
4481
  */
4458
- topic?: string;
4482
+ mimeType?: string;
4459
4483
 
4460
4484
  /**
4461
- * @generated from field: required string mime_type = 4;
4485
+ * @generated from field: required string topic = 4;
4462
4486
  */
4463
- mimeType?: string;
4487
+ topic?: string;
4464
4488
 
4465
4489
  /**
4466
4490
  * only populated for finite streams, if it's a stream of unknown size this stays empty
@@ -4470,18 +4494,11 @@ export class DataStream_Header extends Message<DataStream_Header> {
4470
4494
  totalLength?: bigint;
4471
4495
 
4472
4496
  /**
4473
- * only populated for finite streams, if it's a stream of unknown size this stays empty
4474
- *
4475
- * @generated from field: optional uint64 total_chunks = 6;
4476
- */
4477
- totalChunks?: bigint;
4478
-
4479
- /**
4480
- * user defined extensions map that can carry additional info
4497
+ * user defined attributes map that can carry additional info
4481
4498
  *
4482
- * @generated from field: map<string, string> extensions = 7;
4499
+ * @generated from field: map<string, string> attributes = 6;
4483
4500
  */
4484
- extensions: { [key: string]: string } = {};
4501
+ attributes: { [key: string]: string } = {};
4485
4502
 
4486
4503
  /**
4487
4504
  * oneof to choose between specific header types
@@ -4490,16 +4507,16 @@ export class DataStream_Header extends Message<DataStream_Header> {
4490
4507
  */
4491
4508
  contentHeader: {
4492
4509
  /**
4493
- * @generated from field: livekit.proto.DataStream.TextHeader text_header = 8;
4510
+ * @generated from field: livekit.proto.DataStream.TextHeader text_header = 7;
4494
4511
  */
4495
4512
  value: DataStream_TextHeader;
4496
4513
  case: "textHeader";
4497
4514
  } | {
4498
4515
  /**
4499
- * @generated from field: livekit.proto.DataStream.FileHeader file_header = 9;
4516
+ * @generated from field: livekit.proto.DataStream.ByteHeader byte_header = 8;
4500
4517
  */
4501
- value: DataStream_FileHeader;
4502
- case: "fileHeader";
4518
+ value: DataStream_ByteHeader;
4519
+ case: "byteHeader";
4503
4520
  } | { case: undefined; value?: undefined } = { case: undefined };
4504
4521
 
4505
4522
  constructor(data?: PartialMessage<DataStream_Header>) {
@@ -4512,13 +4529,12 @@ export class DataStream_Header extends Message<DataStream_Header> {
4512
4529
  static readonly fields: FieldList = proto2.util.newFieldList(() => [
4513
4530
  { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4514
4531
  { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
4515
- { no: 3, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4516
- { no: 4, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4532
+ { no: 3, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4533
+ { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4517
4534
  { no: 5, name: "total_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
4518
- { no: 6, name: "total_chunks", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
4519
- { no: 7, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
4520
- { no: 8, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
4521
- { no: 9, name: "file_header", kind: "message", T: DataStream_FileHeader, oneof: "content_header" },
4535
+ { no: 6, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
4536
+ { no: 7, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
4537
+ { no: 8, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" },
4522
4538
  ]);
4523
4539
 
4524
4540
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Header {
@@ -4561,24 +4577,17 @@ export class DataStream_Chunk extends Message<DataStream_Chunk> {
4561
4577
  */
4562
4578
  content?: Uint8Array;
4563
4579
 
4564
- /**
4565
- * true only if this is the last chunk of this stream - can also be sent with empty content
4566
- *
4567
- * @generated from field: required bool complete = 4;
4568
- */
4569
- complete?: boolean;
4570
-
4571
4580
  /**
4572
4581
  * a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
4573
4582
  *
4574
- * @generated from field: required int32 version = 5;
4583
+ * @generated from field: optional int32 version = 4;
4575
4584
  */
4576
4585
  version?: number;
4577
4586
 
4578
4587
  /**
4579
4588
  * optional, initialization vector for AES-GCM encryption
4580
4589
  *
4581
- * @generated from field: optional bytes iv = 6;
4590
+ * @generated from field: optional bytes iv = 5;
4582
4591
  */
4583
4592
  iv?: Uint8Array;
4584
4593
 
@@ -4593,9 +4602,8 @@ export class DataStream_Chunk extends Message<DataStream_Chunk> {
4593
4602
  { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4594
4603
  { no: 2, name: "chunk_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
4595
4604
  { no: 3, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true },
4596
- { no: 4, name: "complete", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
4597
- { no: 5, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
4598
- { no: 6, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
4605
+ { no: 4, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4606
+ { no: 5, name: "iv", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
4599
4607
  ]);
4600
4608
 
4601
4609
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Chunk {
@@ -4615,3 +4623,715 @@ export class DataStream_Chunk extends Message<DataStream_Chunk> {
4615
4623
  }
4616
4624
  }
4617
4625
 
4626
+ /**
4627
+ * @generated from message livekit.proto.DataStream.Trailer
4628
+ */
4629
+ export class DataStream_Trailer extends Message<DataStream_Trailer> {
4630
+ /**
4631
+ * unique identifier for this data stream
4632
+ *
4633
+ * @generated from field: required string stream_id = 1;
4634
+ */
4635
+ streamId?: string;
4636
+
4637
+ /**
4638
+ * reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)
4639
+ *
4640
+ * @generated from field: required string reason = 2;
4641
+ */
4642
+ reason?: string;
4643
+
4644
+ /**
4645
+ * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
4646
+ *
4647
+ * @generated from field: map<string, string> attributes = 3;
4648
+ */
4649
+ attributes: { [key: string]: string } = {};
4650
+
4651
+ constructor(data?: PartialMessage<DataStream_Trailer>) {
4652
+ super();
4653
+ proto2.util.initPartial(data, this);
4654
+ }
4655
+
4656
+ static readonly runtime: typeof proto2 = proto2;
4657
+ static readonly typeName = "livekit.proto.DataStream.Trailer";
4658
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4659
+ { no: 1, name: "stream_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4660
+ { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4661
+ { no: 3, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
4662
+ ]);
4663
+
4664
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Trailer {
4665
+ return new DataStream_Trailer().fromBinary(bytes, options);
4666
+ }
4667
+
4668
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Trailer {
4669
+ return new DataStream_Trailer().fromJson(jsonValue, options);
4670
+ }
4671
+
4672
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Trailer {
4673
+ return new DataStream_Trailer().fromJsonString(jsonString, options);
4674
+ }
4675
+
4676
+ static equals(a: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined, b: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined): boolean {
4677
+ return proto2.util.equals(DataStream_Trailer, a, b);
4678
+ }
4679
+ }
4680
+
4681
+ /**
4682
+ * @generated from message livekit.proto.DataStreamHeaderReceived
4683
+ */
4684
+ export class DataStreamHeaderReceived extends Message<DataStreamHeaderReceived> {
4685
+ /**
4686
+ * @generated from field: required string participant_identity = 1;
4687
+ */
4688
+ participantIdentity?: string;
4689
+
4690
+ /**
4691
+ * @generated from field: required livekit.proto.DataStream.Header header = 2;
4692
+ */
4693
+ header?: DataStream_Header;
4694
+
4695
+ constructor(data?: PartialMessage<DataStreamHeaderReceived>) {
4696
+ super();
4697
+ proto2.util.initPartial(data, this);
4698
+ }
4699
+
4700
+ static readonly runtime: typeof proto2 = proto2;
4701
+ static readonly typeName = "livekit.proto.DataStreamHeaderReceived";
4702
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4703
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4704
+ { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true },
4705
+ ]);
4706
+
4707
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStreamHeaderReceived {
4708
+ return new DataStreamHeaderReceived().fromBinary(bytes, options);
4709
+ }
4710
+
4711
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStreamHeaderReceived {
4712
+ return new DataStreamHeaderReceived().fromJson(jsonValue, options);
4713
+ }
4714
+
4715
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStreamHeaderReceived {
4716
+ return new DataStreamHeaderReceived().fromJsonString(jsonString, options);
4717
+ }
4718
+
4719
+ static equals(a: DataStreamHeaderReceived | PlainMessage<DataStreamHeaderReceived> | undefined, b: DataStreamHeaderReceived | PlainMessage<DataStreamHeaderReceived> | undefined): boolean {
4720
+ return proto2.util.equals(DataStreamHeaderReceived, a, b);
4721
+ }
4722
+ }
4723
+
4724
+ /**
4725
+ * @generated from message livekit.proto.DataStreamChunkReceived
4726
+ */
4727
+ export class DataStreamChunkReceived extends Message<DataStreamChunkReceived> {
4728
+ /**
4729
+ * @generated from field: required string participant_identity = 1;
4730
+ */
4731
+ participantIdentity?: string;
4732
+
4733
+ /**
4734
+ * @generated from field: required livekit.proto.DataStream.Chunk chunk = 2;
4735
+ */
4736
+ chunk?: DataStream_Chunk;
4737
+
4738
+ constructor(data?: PartialMessage<DataStreamChunkReceived>) {
4739
+ super();
4740
+ proto2.util.initPartial(data, this);
4741
+ }
4742
+
4743
+ static readonly runtime: typeof proto2 = proto2;
4744
+ static readonly typeName = "livekit.proto.DataStreamChunkReceived";
4745
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4746
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4747
+ { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true },
4748
+ ]);
4749
+
4750
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStreamChunkReceived {
4751
+ return new DataStreamChunkReceived().fromBinary(bytes, options);
4752
+ }
4753
+
4754
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStreamChunkReceived {
4755
+ return new DataStreamChunkReceived().fromJson(jsonValue, options);
4756
+ }
4757
+
4758
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStreamChunkReceived {
4759
+ return new DataStreamChunkReceived().fromJsonString(jsonString, options);
4760
+ }
4761
+
4762
+ static equals(a: DataStreamChunkReceived | PlainMessage<DataStreamChunkReceived> | undefined, b: DataStreamChunkReceived | PlainMessage<DataStreamChunkReceived> | undefined): boolean {
4763
+ return proto2.util.equals(DataStreamChunkReceived, a, b);
4764
+ }
4765
+ }
4766
+
4767
+ /**
4768
+ * @generated from message livekit.proto.DataStreamTrailerReceived
4769
+ */
4770
+ export class DataStreamTrailerReceived extends Message<DataStreamTrailerReceived> {
4771
+ /**
4772
+ * @generated from field: required string participant_identity = 1;
4773
+ */
4774
+ participantIdentity?: string;
4775
+
4776
+ /**
4777
+ * @generated from field: required livekit.proto.DataStream.Trailer trailer = 2;
4778
+ */
4779
+ trailer?: DataStream_Trailer;
4780
+
4781
+ constructor(data?: PartialMessage<DataStreamTrailerReceived>) {
4782
+ super();
4783
+ proto2.util.initPartial(data, this);
4784
+ }
4785
+
4786
+ static readonly runtime: typeof proto2 = proto2;
4787
+ static readonly typeName = "livekit.proto.DataStreamTrailerReceived";
4788
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4789
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4790
+ { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true },
4791
+ ]);
4792
+
4793
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStreamTrailerReceived {
4794
+ return new DataStreamTrailerReceived().fromBinary(bytes, options);
4795
+ }
4796
+
4797
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStreamTrailerReceived {
4798
+ return new DataStreamTrailerReceived().fromJson(jsonValue, options);
4799
+ }
4800
+
4801
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStreamTrailerReceived {
4802
+ return new DataStreamTrailerReceived().fromJsonString(jsonString, options);
4803
+ }
4804
+
4805
+ static equals(a: DataStreamTrailerReceived | PlainMessage<DataStreamTrailerReceived> | undefined, b: DataStreamTrailerReceived | PlainMessage<DataStreamTrailerReceived> | undefined): boolean {
4806
+ return proto2.util.equals(DataStreamTrailerReceived, a, b);
4807
+ }
4808
+ }
4809
+
4810
+ /**
4811
+ * @generated from message livekit.proto.SendStreamHeaderRequest
4812
+ */
4813
+ export class SendStreamHeaderRequest extends Message<SendStreamHeaderRequest> {
4814
+ /**
4815
+ * @generated from field: required uint64 local_participant_handle = 1;
4816
+ */
4817
+ localParticipantHandle?: bigint;
4818
+
4819
+ /**
4820
+ * @generated from field: required livekit.proto.DataStream.Header header = 2;
4821
+ */
4822
+ header?: DataStream_Header;
4823
+
4824
+ /**
4825
+ * @generated from field: repeated string destination_identities = 3;
4826
+ */
4827
+ destinationIdentities: string[] = [];
4828
+
4829
+ /**
4830
+ * @generated from field: required string sender_identity = 4;
4831
+ */
4832
+ senderIdentity?: string;
4833
+
4834
+ constructor(data?: PartialMessage<SendStreamHeaderRequest>) {
4835
+ super();
4836
+ proto2.util.initPartial(data, this);
4837
+ }
4838
+
4839
+ static readonly runtime: typeof proto2 = proto2;
4840
+ static readonly typeName = "livekit.proto.SendStreamHeaderRequest";
4841
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4842
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
4843
+ { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true },
4844
+ { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4845
+ { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4846
+ ]);
4847
+
4848
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamHeaderRequest {
4849
+ return new SendStreamHeaderRequest().fromBinary(bytes, options);
4850
+ }
4851
+
4852
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamHeaderRequest {
4853
+ return new SendStreamHeaderRequest().fromJson(jsonValue, options);
4854
+ }
4855
+
4856
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamHeaderRequest {
4857
+ return new SendStreamHeaderRequest().fromJsonString(jsonString, options);
4858
+ }
4859
+
4860
+ static equals(a: SendStreamHeaderRequest | PlainMessage<SendStreamHeaderRequest> | undefined, b: SendStreamHeaderRequest | PlainMessage<SendStreamHeaderRequest> | undefined): boolean {
4861
+ return proto2.util.equals(SendStreamHeaderRequest, a, b);
4862
+ }
4863
+ }
4864
+
4865
+ /**
4866
+ * @generated from message livekit.proto.SendStreamChunkRequest
4867
+ */
4868
+ export class SendStreamChunkRequest extends Message<SendStreamChunkRequest> {
4869
+ /**
4870
+ * @generated from field: required uint64 local_participant_handle = 1;
4871
+ */
4872
+ localParticipantHandle?: bigint;
4873
+
4874
+ /**
4875
+ * @generated from field: required livekit.proto.DataStream.Chunk chunk = 2;
4876
+ */
4877
+ chunk?: DataStream_Chunk;
4878
+
4879
+ /**
4880
+ * @generated from field: repeated string destination_identities = 3;
4881
+ */
4882
+ destinationIdentities: string[] = [];
4883
+
4884
+ /**
4885
+ * @generated from field: required string sender_identity = 4;
4886
+ */
4887
+ senderIdentity?: string;
4888
+
4889
+ constructor(data?: PartialMessage<SendStreamChunkRequest>) {
4890
+ super();
4891
+ proto2.util.initPartial(data, this);
4892
+ }
4893
+
4894
+ static readonly runtime: typeof proto2 = proto2;
4895
+ static readonly typeName = "livekit.proto.SendStreamChunkRequest";
4896
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4897
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
4898
+ { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true },
4899
+ { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4900
+ { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4901
+ ]);
4902
+
4903
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamChunkRequest {
4904
+ return new SendStreamChunkRequest().fromBinary(bytes, options);
4905
+ }
4906
+
4907
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamChunkRequest {
4908
+ return new SendStreamChunkRequest().fromJson(jsonValue, options);
4909
+ }
4910
+
4911
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamChunkRequest {
4912
+ return new SendStreamChunkRequest().fromJsonString(jsonString, options);
4913
+ }
4914
+
4915
+ static equals(a: SendStreamChunkRequest | PlainMessage<SendStreamChunkRequest> | undefined, b: SendStreamChunkRequest | PlainMessage<SendStreamChunkRequest> | undefined): boolean {
4916
+ return proto2.util.equals(SendStreamChunkRequest, a, b);
4917
+ }
4918
+ }
4919
+
4920
+ /**
4921
+ * @generated from message livekit.proto.SendStreamTrailerRequest
4922
+ */
4923
+ export class SendStreamTrailerRequest extends Message<SendStreamTrailerRequest> {
4924
+ /**
4925
+ * @generated from field: required uint64 local_participant_handle = 1;
4926
+ */
4927
+ localParticipantHandle?: bigint;
4928
+
4929
+ /**
4930
+ * @generated from field: required livekit.proto.DataStream.Trailer trailer = 2;
4931
+ */
4932
+ trailer?: DataStream_Trailer;
4933
+
4934
+ /**
4935
+ * @generated from field: repeated string destination_identities = 3;
4936
+ */
4937
+ destinationIdentities: string[] = [];
4938
+
4939
+ /**
4940
+ * @generated from field: required string sender_identity = 4;
4941
+ */
4942
+ senderIdentity?: string;
4943
+
4944
+ constructor(data?: PartialMessage<SendStreamTrailerRequest>) {
4945
+ super();
4946
+ proto2.util.initPartial(data, this);
4947
+ }
4948
+
4949
+ static readonly runtime: typeof proto2 = proto2;
4950
+ static readonly typeName = "livekit.proto.SendStreamTrailerRequest";
4951
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4952
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
4953
+ { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true },
4954
+ { no: 3, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4955
+ { no: 4, name: "sender_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
4956
+ ]);
4957
+
4958
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamTrailerRequest {
4959
+ return new SendStreamTrailerRequest().fromBinary(bytes, options);
4960
+ }
4961
+
4962
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamTrailerRequest {
4963
+ return new SendStreamTrailerRequest().fromJson(jsonValue, options);
4964
+ }
4965
+
4966
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamTrailerRequest {
4967
+ return new SendStreamTrailerRequest().fromJsonString(jsonString, options);
4968
+ }
4969
+
4970
+ static equals(a: SendStreamTrailerRequest | PlainMessage<SendStreamTrailerRequest> | undefined, b: SendStreamTrailerRequest | PlainMessage<SendStreamTrailerRequest> | undefined): boolean {
4971
+ return proto2.util.equals(SendStreamTrailerRequest, a, b);
4972
+ }
4973
+ }
4974
+
4975
+ /**
4976
+ * @generated from message livekit.proto.SendStreamHeaderResponse
4977
+ */
4978
+ export class SendStreamHeaderResponse extends Message<SendStreamHeaderResponse> {
4979
+ /**
4980
+ * @generated from field: required uint64 async_id = 1;
4981
+ */
4982
+ asyncId?: bigint;
4983
+
4984
+ constructor(data?: PartialMessage<SendStreamHeaderResponse>) {
4985
+ super();
4986
+ proto2.util.initPartial(data, this);
4987
+ }
4988
+
4989
+ static readonly runtime: typeof proto2 = proto2;
4990
+ static readonly typeName = "livekit.proto.SendStreamHeaderResponse";
4991
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
4992
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
4993
+ ]);
4994
+
4995
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamHeaderResponse {
4996
+ return new SendStreamHeaderResponse().fromBinary(bytes, options);
4997
+ }
4998
+
4999
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamHeaderResponse {
5000
+ return new SendStreamHeaderResponse().fromJson(jsonValue, options);
5001
+ }
5002
+
5003
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamHeaderResponse {
5004
+ return new SendStreamHeaderResponse().fromJsonString(jsonString, options);
5005
+ }
5006
+
5007
+ static equals(a: SendStreamHeaderResponse | PlainMessage<SendStreamHeaderResponse> | undefined, b: SendStreamHeaderResponse | PlainMessage<SendStreamHeaderResponse> | undefined): boolean {
5008
+ return proto2.util.equals(SendStreamHeaderResponse, a, b);
5009
+ }
5010
+ }
5011
+
5012
+ /**
5013
+ * @generated from message livekit.proto.SendStreamChunkResponse
5014
+ */
5015
+ export class SendStreamChunkResponse extends Message<SendStreamChunkResponse> {
5016
+ /**
5017
+ * @generated from field: required uint64 async_id = 1;
5018
+ */
5019
+ asyncId?: bigint;
5020
+
5021
+ constructor(data?: PartialMessage<SendStreamChunkResponse>) {
5022
+ super();
5023
+ proto2.util.initPartial(data, this);
5024
+ }
5025
+
5026
+ static readonly runtime: typeof proto2 = proto2;
5027
+ static readonly typeName = "livekit.proto.SendStreamChunkResponse";
5028
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5029
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5030
+ ]);
5031
+
5032
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamChunkResponse {
5033
+ return new SendStreamChunkResponse().fromBinary(bytes, options);
5034
+ }
5035
+
5036
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamChunkResponse {
5037
+ return new SendStreamChunkResponse().fromJson(jsonValue, options);
5038
+ }
5039
+
5040
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamChunkResponse {
5041
+ return new SendStreamChunkResponse().fromJsonString(jsonString, options);
5042
+ }
5043
+
5044
+ static equals(a: SendStreamChunkResponse | PlainMessage<SendStreamChunkResponse> | undefined, b: SendStreamChunkResponse | PlainMessage<SendStreamChunkResponse> | undefined): boolean {
5045
+ return proto2.util.equals(SendStreamChunkResponse, a, b);
5046
+ }
5047
+ }
5048
+
5049
+ /**
5050
+ * @generated from message livekit.proto.SendStreamTrailerResponse
5051
+ */
5052
+ export class SendStreamTrailerResponse extends Message<SendStreamTrailerResponse> {
5053
+ /**
5054
+ * @generated from field: required uint64 async_id = 1;
5055
+ */
5056
+ asyncId?: bigint;
5057
+
5058
+ constructor(data?: PartialMessage<SendStreamTrailerResponse>) {
5059
+ super();
5060
+ proto2.util.initPartial(data, this);
5061
+ }
5062
+
5063
+ static readonly runtime: typeof proto2 = proto2;
5064
+ static readonly typeName = "livekit.proto.SendStreamTrailerResponse";
5065
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5066
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5067
+ ]);
5068
+
5069
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamTrailerResponse {
5070
+ return new SendStreamTrailerResponse().fromBinary(bytes, options);
5071
+ }
5072
+
5073
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamTrailerResponse {
5074
+ return new SendStreamTrailerResponse().fromJson(jsonValue, options);
5075
+ }
5076
+
5077
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamTrailerResponse {
5078
+ return new SendStreamTrailerResponse().fromJsonString(jsonString, options);
5079
+ }
5080
+
5081
+ static equals(a: SendStreamTrailerResponse | PlainMessage<SendStreamTrailerResponse> | undefined, b: SendStreamTrailerResponse | PlainMessage<SendStreamTrailerResponse> | undefined): boolean {
5082
+ return proto2.util.equals(SendStreamTrailerResponse, a, b);
5083
+ }
5084
+ }
5085
+
5086
+ /**
5087
+ * @generated from message livekit.proto.SendStreamHeaderCallback
5088
+ */
5089
+ export class SendStreamHeaderCallback extends Message<SendStreamHeaderCallback> {
5090
+ /**
5091
+ * @generated from field: required uint64 async_id = 1;
5092
+ */
5093
+ asyncId?: bigint;
5094
+
5095
+ /**
5096
+ * @generated from field: optional string error = 2;
5097
+ */
5098
+ error?: string;
5099
+
5100
+ constructor(data?: PartialMessage<SendStreamHeaderCallback>) {
5101
+ super();
5102
+ proto2.util.initPartial(data, this);
5103
+ }
5104
+
5105
+ static readonly runtime: typeof proto2 = proto2;
5106
+ static readonly typeName = "livekit.proto.SendStreamHeaderCallback";
5107
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5108
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5109
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5110
+ ]);
5111
+
5112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamHeaderCallback {
5113
+ return new SendStreamHeaderCallback().fromBinary(bytes, options);
5114
+ }
5115
+
5116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamHeaderCallback {
5117
+ return new SendStreamHeaderCallback().fromJson(jsonValue, options);
5118
+ }
5119
+
5120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamHeaderCallback {
5121
+ return new SendStreamHeaderCallback().fromJsonString(jsonString, options);
5122
+ }
5123
+
5124
+ static equals(a: SendStreamHeaderCallback | PlainMessage<SendStreamHeaderCallback> | undefined, b: SendStreamHeaderCallback | PlainMessage<SendStreamHeaderCallback> | undefined): boolean {
5125
+ return proto2.util.equals(SendStreamHeaderCallback, a, b);
5126
+ }
5127
+ }
5128
+
5129
+ /**
5130
+ * @generated from message livekit.proto.SendStreamChunkCallback
5131
+ */
5132
+ export class SendStreamChunkCallback extends Message<SendStreamChunkCallback> {
5133
+ /**
5134
+ * @generated from field: required uint64 async_id = 1;
5135
+ */
5136
+ asyncId?: bigint;
5137
+
5138
+ /**
5139
+ * @generated from field: optional string error = 2;
5140
+ */
5141
+ error?: string;
5142
+
5143
+ constructor(data?: PartialMessage<SendStreamChunkCallback>) {
5144
+ super();
5145
+ proto2.util.initPartial(data, this);
5146
+ }
5147
+
5148
+ static readonly runtime: typeof proto2 = proto2;
5149
+ static readonly typeName = "livekit.proto.SendStreamChunkCallback";
5150
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5151
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5152
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5153
+ ]);
5154
+
5155
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamChunkCallback {
5156
+ return new SendStreamChunkCallback().fromBinary(bytes, options);
5157
+ }
5158
+
5159
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamChunkCallback {
5160
+ return new SendStreamChunkCallback().fromJson(jsonValue, options);
5161
+ }
5162
+
5163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamChunkCallback {
5164
+ return new SendStreamChunkCallback().fromJsonString(jsonString, options);
5165
+ }
5166
+
5167
+ static equals(a: SendStreamChunkCallback | PlainMessage<SendStreamChunkCallback> | undefined, b: SendStreamChunkCallback | PlainMessage<SendStreamChunkCallback> | undefined): boolean {
5168
+ return proto2.util.equals(SendStreamChunkCallback, a, b);
5169
+ }
5170
+ }
5171
+
5172
+ /**
5173
+ * @generated from message livekit.proto.SendStreamTrailerCallback
5174
+ */
5175
+ export class SendStreamTrailerCallback extends Message<SendStreamTrailerCallback> {
5176
+ /**
5177
+ * @generated from field: required uint64 async_id = 1;
5178
+ */
5179
+ asyncId?: bigint;
5180
+
5181
+ /**
5182
+ * @generated from field: optional string error = 2;
5183
+ */
5184
+ error?: string;
5185
+
5186
+ constructor(data?: PartialMessage<SendStreamTrailerCallback>) {
5187
+ super();
5188
+ proto2.util.initPartial(data, this);
5189
+ }
5190
+
5191
+ static readonly runtime: typeof proto2 = proto2;
5192
+ static readonly typeName = "livekit.proto.SendStreamTrailerCallback";
5193
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5194
+ { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5195
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5196
+ ]);
5197
+
5198
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendStreamTrailerCallback {
5199
+ return new SendStreamTrailerCallback().fromBinary(bytes, options);
5200
+ }
5201
+
5202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendStreamTrailerCallback {
5203
+ return new SendStreamTrailerCallback().fromJson(jsonValue, options);
5204
+ }
5205
+
5206
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendStreamTrailerCallback {
5207
+ return new SendStreamTrailerCallback().fromJsonString(jsonString, options);
5208
+ }
5209
+
5210
+ static equals(a: SendStreamTrailerCallback | PlainMessage<SendStreamTrailerCallback> | undefined, b: SendStreamTrailerCallback | PlainMessage<SendStreamTrailerCallback> | undefined): boolean {
5211
+ return proto2.util.equals(SendStreamTrailerCallback, a, b);
5212
+ }
5213
+ }
5214
+
5215
+ /**
5216
+ * @generated from message livekit.proto.SetDataChannelBufferedAmountLowThresholdRequest
5217
+ */
5218
+ export class SetDataChannelBufferedAmountLowThresholdRequest extends Message<SetDataChannelBufferedAmountLowThresholdRequest> {
5219
+ /**
5220
+ * @generated from field: required uint64 local_participant_handle = 1;
5221
+ */
5222
+ localParticipantHandle?: bigint;
5223
+
5224
+ /**
5225
+ * @generated from field: required uint64 threshold = 2;
5226
+ */
5227
+ threshold?: bigint;
5228
+
5229
+ /**
5230
+ * @generated from field: required livekit.proto.DataPacketKind kind = 3;
5231
+ */
5232
+ kind?: DataPacketKind;
5233
+
5234
+ constructor(data?: PartialMessage<SetDataChannelBufferedAmountLowThresholdRequest>) {
5235
+ super();
5236
+ proto2.util.initPartial(data, this);
5237
+ }
5238
+
5239
+ static readonly runtime: typeof proto2 = proto2;
5240
+ static readonly typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdRequest";
5241
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5242
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5243
+ { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5244
+ { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true },
5245
+ ]);
5246
+
5247
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetDataChannelBufferedAmountLowThresholdRequest {
5248
+ return new SetDataChannelBufferedAmountLowThresholdRequest().fromBinary(bytes, options);
5249
+ }
5250
+
5251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetDataChannelBufferedAmountLowThresholdRequest {
5252
+ return new SetDataChannelBufferedAmountLowThresholdRequest().fromJson(jsonValue, options);
5253
+ }
5254
+
5255
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetDataChannelBufferedAmountLowThresholdRequest {
5256
+ return new SetDataChannelBufferedAmountLowThresholdRequest().fromJsonString(jsonString, options);
5257
+ }
5258
+
5259
+ static equals(a: SetDataChannelBufferedAmountLowThresholdRequest | PlainMessage<SetDataChannelBufferedAmountLowThresholdRequest> | undefined, b: SetDataChannelBufferedAmountLowThresholdRequest | PlainMessage<SetDataChannelBufferedAmountLowThresholdRequest> | undefined): boolean {
5260
+ return proto2.util.equals(SetDataChannelBufferedAmountLowThresholdRequest, a, b);
5261
+ }
5262
+ }
5263
+
5264
+ /**
5265
+ * @generated from message livekit.proto.SetDataChannelBufferedAmountLowThresholdResponse
5266
+ */
5267
+ export class SetDataChannelBufferedAmountLowThresholdResponse extends Message<SetDataChannelBufferedAmountLowThresholdResponse> {
5268
+ constructor(data?: PartialMessage<SetDataChannelBufferedAmountLowThresholdResponse>) {
5269
+ super();
5270
+ proto2.util.initPartial(data, this);
5271
+ }
5272
+
5273
+ static readonly runtime: typeof proto2 = proto2;
5274
+ static readonly typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdResponse";
5275
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5276
+ ]);
5277
+
5278
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetDataChannelBufferedAmountLowThresholdResponse {
5279
+ return new SetDataChannelBufferedAmountLowThresholdResponse().fromBinary(bytes, options);
5280
+ }
5281
+
5282
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetDataChannelBufferedAmountLowThresholdResponse {
5283
+ return new SetDataChannelBufferedAmountLowThresholdResponse().fromJson(jsonValue, options);
5284
+ }
5285
+
5286
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetDataChannelBufferedAmountLowThresholdResponse {
5287
+ return new SetDataChannelBufferedAmountLowThresholdResponse().fromJsonString(jsonString, options);
5288
+ }
5289
+
5290
+ static equals(a: SetDataChannelBufferedAmountLowThresholdResponse | PlainMessage<SetDataChannelBufferedAmountLowThresholdResponse> | undefined, b: SetDataChannelBufferedAmountLowThresholdResponse | PlainMessage<SetDataChannelBufferedAmountLowThresholdResponse> | undefined): boolean {
5291
+ return proto2.util.equals(SetDataChannelBufferedAmountLowThresholdResponse, a, b);
5292
+ }
5293
+ }
5294
+
5295
+ /**
5296
+ * @generated from message livekit.proto.DataChannelBufferedAmountLowThresholdChanged
5297
+ */
5298
+ export class DataChannelBufferedAmountLowThresholdChanged extends Message<DataChannelBufferedAmountLowThresholdChanged> {
5299
+ /**
5300
+ * @generated from field: required livekit.proto.DataPacketKind kind = 1;
5301
+ */
5302
+ kind?: DataPacketKind;
5303
+
5304
+ /**
5305
+ * @generated from field: required uint64 threshold = 2;
5306
+ */
5307
+ threshold?: bigint;
5308
+
5309
+ constructor(data?: PartialMessage<DataChannelBufferedAmountLowThresholdChanged>) {
5310
+ super();
5311
+ proto2.util.initPartial(data, this);
5312
+ }
5313
+
5314
+ static readonly runtime: typeof proto2 = proto2;
5315
+ static readonly typeName = "livekit.proto.DataChannelBufferedAmountLowThresholdChanged";
5316
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
5317
+ { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true },
5318
+ { no: 2, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
5319
+ ]);
5320
+
5321
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelBufferedAmountLowThresholdChanged {
5322
+ return new DataChannelBufferedAmountLowThresholdChanged().fromBinary(bytes, options);
5323
+ }
5324
+
5325
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelBufferedAmountLowThresholdChanged {
5326
+ return new DataChannelBufferedAmountLowThresholdChanged().fromJson(jsonValue, options);
5327
+ }
5328
+
5329
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelBufferedAmountLowThresholdChanged {
5330
+ return new DataChannelBufferedAmountLowThresholdChanged().fromJsonString(jsonString, options);
5331
+ }
5332
+
5333
+ static equals(a: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined, b: DataChannelBufferedAmountLowThresholdChanged | PlainMessage<DataChannelBufferedAmountLowThresholdChanged> | undefined): boolean {
5334
+ return proto2.util.equals(DataChannelBufferedAmountLowThresholdChanged, a, b);
5335
+ }
5336
+ }
5337
+