@livekit/rtc-node 0.5.0 → 0.6.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.
Files changed (57) hide show
  1. package/README.md +5 -2
  2. package/dist/audio_frame.d.ts.map +1 -1
  3. package/dist/audio_frame.js +5 -0
  4. package/dist/audio_frame.js.map +1 -1
  5. package/dist/audio_source.d.ts +1 -1
  6. package/dist/audio_source.d.ts.map +1 -1
  7. package/dist/audio_source.js +2 -1
  8. package/dist/audio_source.js.map +1 -1
  9. package/dist/audio_stream.d.ts.map +1 -1
  10. package/dist/ffi_client.d.ts.map +1 -1
  11. package/dist/ffi_client.js +1 -0
  12. package/dist/ffi_client.js.map +1 -1
  13. package/dist/participant.d.ts +5 -2
  14. package/dist/participant.d.ts.map +1 -1
  15. package/dist/participant.js +46 -17
  16. package/dist/participant.js.map +1 -1
  17. package/dist/proto/audio_frame_pb.d.ts +4 -0
  18. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  19. package/dist/proto/audio_frame_pb.js +1 -0
  20. package/dist/proto/audio_frame_pb.js.map +1 -1
  21. package/dist/proto/ffi_pb.d.ts +105 -51
  22. package/dist/proto/ffi_pb.d.ts.map +1 -1
  23. package/dist/proto/ffi_pb.js +48 -39
  24. package/dist/proto/ffi_pb.js.map +1 -1
  25. package/dist/proto/participant_pb.d.ts +6 -0
  26. package/dist/proto/participant_pb.d.ts.map +1 -1
  27. package/dist/proto/participant_pb.js +5 -0
  28. package/dist/proto/participant_pb.js.map +1 -1
  29. package/dist/proto/room_pb.d.ts +471 -111
  30. package/dist/proto/room_pb.d.ts.map +1 -1
  31. package/dist/proto/room_pb.js +639 -128
  32. package/dist/proto/room_pb.js.map +1 -1
  33. package/dist/room.d.ts +5 -2
  34. package/dist/room.d.ts.map +1 -1
  35. package/dist/room.js +41 -25
  36. package/dist/room.js.map +1 -1
  37. package/dist/utils.d.ts +2 -0
  38. package/dist/utils.d.ts.map +1 -0
  39. package/dist/utils.js +20 -0
  40. package/dist/utils.js.map +1 -0
  41. package/dist/video_stream.d.ts.map +1 -1
  42. package/package.json +6 -6
  43. package/src/audio_frame.ts +5 -0
  44. package/src/audio_source.ts +2 -1
  45. package/src/ffi_client.ts +1 -0
  46. package/src/participant.ts +73 -29
  47. package/src/proto/audio_frame_pb.ts +7 -1
  48. package/src/proto/e2ee_pb.ts +1 -1
  49. package/src/proto/ffi_pb.ts +153 -90
  50. package/src/proto/handle_pb.ts +1 -1
  51. package/src/proto/participant_pb.ts +7 -1
  52. package/src/proto/room_pb.ts +845 -169
  53. package/src/proto/stats_pb.ts +1 -1
  54. package/src/proto/track_pb.ts +1 -1
  55. package/src/proto/video_frame_pb.ts +1 -1
  56. package/src/room.ts +56 -27
  57. package/src/utils.ts +25 -0
@@ -394,19 +394,22 @@ export declare class PublishDataRequest extends Message<PublishDataRequest> {
394
394
  */
395
395
  dataLen: bigint;
396
396
  /**
397
- * @generated from field: livekit.proto.DataPacketKind kind = 4;
397
+ * @generated from field: bool reliable = 4;
398
398
  */
399
- kind: DataPacketKind;
399
+ reliable: boolean;
400
400
  /**
401
- * destination
402
- *
403
- * @generated from field: repeated string destination_sids = 5;
401
+ * @generated from field: repeated string destination_sids = 5 [deprecated = true];
402
+ * @deprecated
404
403
  */
405
404
  destinationSids: string[];
406
405
  /**
407
406
  * @generated from field: optional string topic = 6;
408
407
  */
409
408
  topic?: string;
409
+ /**
410
+ * @generated from field: repeated string destination_identities = 7;
411
+ */
412
+ destinationIdentities: string[];
410
413
  constructor(data?: PartialMessage<PublishDataRequest>);
411
414
  static readonly runtime: typeof proto3;
412
415
  static readonly typeName = "livekit.proto.PublishDataRequest";
@@ -454,12 +457,150 @@ export declare class PublishDataCallback extends Message<PublishDataCallback> {
454
457
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataCallback;
455
458
  static equals(a: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined, b: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined): boolean;
456
459
  }
460
+ /**
461
+ * Publish transcription messages to room
462
+ *
463
+ * @generated from message livekit.proto.PublishTranscriptionRequest
464
+ */
465
+ export declare class PublishTranscriptionRequest extends Message<PublishTranscriptionRequest> {
466
+ /**
467
+ * @generated from field: uint64 local_participant_handle = 1;
468
+ */
469
+ localParticipantHandle: bigint;
470
+ /**
471
+ * @generated from field: string participant_identity = 2;
472
+ */
473
+ participantIdentity: string;
474
+ /**
475
+ * @generated from field: string track_id = 3;
476
+ */
477
+ trackId: string;
478
+ /**
479
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
480
+ */
481
+ segments: TranscriptionSegment[];
482
+ constructor(data?: PartialMessage<PublishTranscriptionRequest>);
483
+ static readonly runtime: typeof proto3;
484
+ static readonly typeName = "livekit.proto.PublishTranscriptionRequest";
485
+ static readonly fields: FieldList;
486
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionRequest;
487
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest;
488
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest;
489
+ static equals(a: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined, b: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined): boolean;
490
+ }
491
+ /**
492
+ * @generated from message livekit.proto.PublishTranscriptionResponse
493
+ */
494
+ export declare class PublishTranscriptionResponse extends Message<PublishTranscriptionResponse> {
495
+ /**
496
+ * @generated from field: uint64 async_id = 1;
497
+ */
498
+ asyncId: bigint;
499
+ constructor(data?: PartialMessage<PublishTranscriptionResponse>);
500
+ static readonly runtime: typeof proto3;
501
+ static readonly typeName = "livekit.proto.PublishTranscriptionResponse";
502
+ static readonly fields: FieldList;
503
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionResponse;
504
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse;
505
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse;
506
+ static equals(a: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined, b: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined): boolean;
507
+ }
508
+ /**
509
+ * @generated from message livekit.proto.PublishTranscriptionCallback
510
+ */
511
+ export declare class PublishTranscriptionCallback extends Message<PublishTranscriptionCallback> {
512
+ /**
513
+ * @generated from field: uint64 async_id = 1;
514
+ */
515
+ asyncId: bigint;
516
+ /**
517
+ * @generated from field: optional string error = 2;
518
+ */
519
+ error?: string;
520
+ constructor(data?: PartialMessage<PublishTranscriptionCallback>);
521
+ static readonly runtime: typeof proto3;
522
+ static readonly typeName = "livekit.proto.PublishTranscriptionCallback";
523
+ static readonly fields: FieldList;
524
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionCallback;
525
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback;
526
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback;
527
+ static equals(a: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined, b: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined): boolean;
528
+ }
529
+ /**
530
+ * Publish Sip DTMF messages to other participants
531
+ *
532
+ * @generated from message livekit.proto.PublishSipDtmfRequest
533
+ */
534
+ export declare class PublishSipDtmfRequest extends Message<PublishSipDtmfRequest> {
535
+ /**
536
+ * @generated from field: uint64 local_participant_handle = 1;
537
+ */
538
+ localParticipantHandle: bigint;
539
+ /**
540
+ * @generated from field: uint32 code = 2;
541
+ */
542
+ code: number;
543
+ /**
544
+ * @generated from field: string digit = 3;
545
+ */
546
+ digit: string;
547
+ /**
548
+ * @generated from field: repeated string destination_identities = 4;
549
+ */
550
+ destinationIdentities: string[];
551
+ constructor(data?: PartialMessage<PublishSipDtmfRequest>);
552
+ static readonly runtime: typeof proto3;
553
+ static readonly typeName = "livekit.proto.PublishSipDtmfRequest";
554
+ static readonly fields: FieldList;
555
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfRequest;
556
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest;
557
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest;
558
+ static equals(a: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined, b: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined): boolean;
559
+ }
560
+ /**
561
+ * @generated from message livekit.proto.PublishSipDtmfResponse
562
+ */
563
+ export declare class PublishSipDtmfResponse extends Message<PublishSipDtmfResponse> {
564
+ /**
565
+ * @generated from field: uint64 async_id = 1;
566
+ */
567
+ asyncId: bigint;
568
+ constructor(data?: PartialMessage<PublishSipDtmfResponse>);
569
+ static readonly runtime: typeof proto3;
570
+ static readonly typeName = "livekit.proto.PublishSipDtmfResponse";
571
+ static readonly fields: FieldList;
572
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfResponse;
573
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse;
574
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse;
575
+ static equals(a: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined, b: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined): boolean;
576
+ }
577
+ /**
578
+ * @generated from message livekit.proto.PublishSipDtmfCallback
579
+ */
580
+ export declare class PublishSipDtmfCallback extends Message<PublishSipDtmfCallback> {
581
+ /**
582
+ * @generated from field: uint64 async_id = 1;
583
+ */
584
+ asyncId: bigint;
585
+ /**
586
+ * @generated from field: optional string error = 2;
587
+ */
588
+ error?: string;
589
+ constructor(data?: PartialMessage<PublishSipDtmfCallback>);
590
+ static readonly runtime: typeof proto3;
591
+ static readonly typeName = "livekit.proto.PublishSipDtmfCallback";
592
+ static readonly fields: FieldList;
593
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfCallback;
594
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback;
595
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback;
596
+ static equals(a: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined, b: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined): boolean;
597
+ }
457
598
  /**
458
599
  * Change the local participant's metadata
459
600
  *
460
- * @generated from message livekit.proto.UpdateLocalMetadataRequest
601
+ * @generated from message livekit.proto.SetLocalMetadataRequest
461
602
  */
462
- export declare class UpdateLocalMetadataRequest extends Message<UpdateLocalMetadataRequest> {
603
+ export declare class SetLocalMetadataRequest extends Message<SetLocalMetadataRequest> {
463
604
  /**
464
605
  * @generated from field: uint64 local_participant_handle = 1;
465
606
  */
@@ -468,55 +609,122 @@ export declare class UpdateLocalMetadataRequest extends Message<UpdateLocalMetad
468
609
  * @generated from field: string metadata = 2;
469
610
  */
470
611
  metadata: string;
471
- constructor(data?: PartialMessage<UpdateLocalMetadataRequest>);
612
+ constructor(data?: PartialMessage<SetLocalMetadataRequest>);
472
613
  static readonly runtime: typeof proto3;
473
- static readonly typeName = "livekit.proto.UpdateLocalMetadataRequest";
614
+ static readonly typeName = "livekit.proto.SetLocalMetadataRequest";
474
615
  static readonly fields: FieldList;
475
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataRequest;
476
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest;
477
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest;
478
- static equals(a: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined, b: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined): boolean;
616
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataRequest;
617
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest;
618
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest;
619
+ static equals(a: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined, b: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined): boolean;
479
620
  }
480
621
  /**
481
- * @generated from message livekit.proto.UpdateLocalMetadataResponse
622
+ * @generated from message livekit.proto.SetLocalMetadataResponse
482
623
  */
483
- export declare class UpdateLocalMetadataResponse extends Message<UpdateLocalMetadataResponse> {
624
+ export declare class SetLocalMetadataResponse extends Message<SetLocalMetadataResponse> {
484
625
  /**
485
626
  * @generated from field: uint64 async_id = 1;
486
627
  */
487
628
  asyncId: bigint;
488
- constructor(data?: PartialMessage<UpdateLocalMetadataResponse>);
629
+ constructor(data?: PartialMessage<SetLocalMetadataResponse>);
489
630
  static readonly runtime: typeof proto3;
490
- static readonly typeName = "livekit.proto.UpdateLocalMetadataResponse";
631
+ static readonly typeName = "livekit.proto.SetLocalMetadataResponse";
491
632
  static readonly fields: FieldList;
492
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataResponse;
493
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse;
494
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse;
495
- static equals(a: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined, b: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined): boolean;
633
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataResponse;
634
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse;
635
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse;
636
+ static equals(a: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined, b: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined): boolean;
496
637
  }
497
638
  /**
498
- * @generated from message livekit.proto.UpdateLocalMetadataCallback
639
+ * @generated from message livekit.proto.SetLocalMetadataCallback
499
640
  */
500
- export declare class UpdateLocalMetadataCallback extends Message<UpdateLocalMetadataCallback> {
641
+ export declare class SetLocalMetadataCallback extends Message<SetLocalMetadataCallback> {
501
642
  /**
502
643
  * @generated from field: uint64 async_id = 1;
503
644
  */
504
645
  asyncId: bigint;
505
- constructor(data?: PartialMessage<UpdateLocalMetadataCallback>);
646
+ /**
647
+ * @generated from field: optional string error = 2;
648
+ */
649
+ error?: string;
650
+ constructor(data?: PartialMessage<SetLocalMetadataCallback>);
506
651
  static readonly runtime: typeof proto3;
507
- static readonly typeName = "livekit.proto.UpdateLocalMetadataCallback";
652
+ static readonly typeName = "livekit.proto.SetLocalMetadataCallback";
508
653
  static readonly fields: FieldList;
509
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataCallback;
510
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback;
511
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback;
512
- static equals(a: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined, b: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined): boolean;
654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataCallback;
655
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback;
656
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback;
657
+ static equals(a: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined, b: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined): boolean;
658
+ }
659
+ /**
660
+ * Change the local participant's attributes
661
+ *
662
+ * @generated from message livekit.proto.SetLocalAttributesRequest
663
+ */
664
+ export declare class SetLocalAttributesRequest extends Message<SetLocalAttributesRequest> {
665
+ /**
666
+ * @generated from field: uint64 local_participant_handle = 1;
667
+ */
668
+ localParticipantHandle: bigint;
669
+ /**
670
+ * @generated from field: map<string, string> attributes = 2;
671
+ */
672
+ attributes: {
673
+ [key: string]: string;
674
+ };
675
+ constructor(data?: PartialMessage<SetLocalAttributesRequest>);
676
+ static readonly runtime: typeof proto3;
677
+ static readonly typeName = "livekit.proto.SetLocalAttributesRequest";
678
+ static readonly fields: FieldList;
679
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesRequest;
680
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest;
681
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest;
682
+ static equals(a: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined, b: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined): boolean;
683
+ }
684
+ /**
685
+ * @generated from message livekit.proto.SetLocalAttributesResponse
686
+ */
687
+ export declare class SetLocalAttributesResponse extends Message<SetLocalAttributesResponse> {
688
+ /**
689
+ * @generated from field: uint64 async_id = 1;
690
+ */
691
+ asyncId: bigint;
692
+ constructor(data?: PartialMessage<SetLocalAttributesResponse>);
693
+ static readonly runtime: typeof proto3;
694
+ static readonly typeName = "livekit.proto.SetLocalAttributesResponse";
695
+ static readonly fields: FieldList;
696
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesResponse;
697
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse;
698
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse;
699
+ static equals(a: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined, b: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined): boolean;
700
+ }
701
+ /**
702
+ * @generated from message livekit.proto.SetLocalAttributesCallback
703
+ */
704
+ export declare class SetLocalAttributesCallback extends Message<SetLocalAttributesCallback> {
705
+ /**
706
+ * @generated from field: uint64 async_id = 1;
707
+ */
708
+ asyncId: bigint;
709
+ /**
710
+ * @generated from field: optional string error = 2;
711
+ */
712
+ error?: string;
713
+ constructor(data?: PartialMessage<SetLocalAttributesCallback>);
714
+ static readonly runtime: typeof proto3;
715
+ static readonly typeName = "livekit.proto.SetLocalAttributesCallback";
716
+ static readonly fields: FieldList;
717
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesCallback;
718
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback;
719
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback;
720
+ static equals(a: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined, b: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined): boolean;
513
721
  }
514
722
  /**
515
723
  * Change the local participant's name
516
724
  *
517
- * @generated from message livekit.proto.UpdateLocalNameRequest
725
+ * @generated from message livekit.proto.SetLocalNameRequest
518
726
  */
519
- export declare class UpdateLocalNameRequest extends Message<UpdateLocalNameRequest> {
727
+ export declare class SetLocalNameRequest extends Message<SetLocalNameRequest> {
520
728
  /**
521
729
  * @generated from field: uint64 local_participant_handle = 1;
522
730
  */
@@ -525,48 +733,52 @@ export declare class UpdateLocalNameRequest extends Message<UpdateLocalNameReque
525
733
  * @generated from field: string name = 2;
526
734
  */
527
735
  name: string;
528
- constructor(data?: PartialMessage<UpdateLocalNameRequest>);
736
+ constructor(data?: PartialMessage<SetLocalNameRequest>);
529
737
  static readonly runtime: typeof proto3;
530
- static readonly typeName = "livekit.proto.UpdateLocalNameRequest";
738
+ static readonly typeName = "livekit.proto.SetLocalNameRequest";
531
739
  static readonly fields: FieldList;
532
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameRequest;
533
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest;
534
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest;
535
- static equals(a: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined, b: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined): boolean;
740
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameRequest;
741
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameRequest;
742
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameRequest;
743
+ static equals(a: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined, b: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined): boolean;
536
744
  }
537
745
  /**
538
- * @generated from message livekit.proto.UpdateLocalNameResponse
746
+ * @generated from message livekit.proto.SetLocalNameResponse
539
747
  */
540
- export declare class UpdateLocalNameResponse extends Message<UpdateLocalNameResponse> {
748
+ export declare class SetLocalNameResponse extends Message<SetLocalNameResponse> {
541
749
  /**
542
750
  * @generated from field: uint64 async_id = 1;
543
751
  */
544
752
  asyncId: bigint;
545
- constructor(data?: PartialMessage<UpdateLocalNameResponse>);
753
+ constructor(data?: PartialMessage<SetLocalNameResponse>);
546
754
  static readonly runtime: typeof proto3;
547
- static readonly typeName = "livekit.proto.UpdateLocalNameResponse";
755
+ static readonly typeName = "livekit.proto.SetLocalNameResponse";
548
756
  static readonly fields: FieldList;
549
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameResponse;
550
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse;
551
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse;
552
- static equals(a: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined, b: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined): boolean;
757
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameResponse;
758
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameResponse;
759
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameResponse;
760
+ static equals(a: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined, b: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined): boolean;
553
761
  }
554
762
  /**
555
- * @generated from message livekit.proto.UpdateLocalNameCallback
763
+ * @generated from message livekit.proto.SetLocalNameCallback
556
764
  */
557
- export declare class UpdateLocalNameCallback extends Message<UpdateLocalNameCallback> {
765
+ export declare class SetLocalNameCallback extends Message<SetLocalNameCallback> {
558
766
  /**
559
767
  * @generated from field: uint64 async_id = 1;
560
768
  */
561
769
  asyncId: bigint;
562
- constructor(data?: PartialMessage<UpdateLocalNameCallback>);
770
+ /**
771
+ * @generated from field: optional string error = 2;
772
+ */
773
+ error?: string;
774
+ constructor(data?: PartialMessage<SetLocalNameCallback>);
563
775
  static readonly runtime: typeof proto3;
564
- static readonly typeName = "livekit.proto.UpdateLocalNameCallback";
776
+ static readonly typeName = "livekit.proto.SetLocalNameCallback";
565
777
  static readonly fields: FieldList;
566
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameCallback;
567
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback;
568
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback;
569
- static equals(a: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined, b: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined): boolean;
778
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameCallback;
779
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameCallback;
780
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameCallback;
781
+ static equals(a: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined, b: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined): boolean;
570
782
  }
571
783
  /**
572
784
  * Change the "desire" to subs2ribe to a track
@@ -839,6 +1051,43 @@ export declare class RoomOptions extends Message<RoomOptions> {
839
1051
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomOptions;
840
1052
  static equals(a: RoomOptions | PlainMessage<RoomOptions> | undefined, b: RoomOptions | PlainMessage<RoomOptions> | undefined): boolean;
841
1053
  }
1054
+ /**
1055
+ * @generated from message livekit.proto.TranscriptionSegment
1056
+ */
1057
+ export declare class TranscriptionSegment extends Message<TranscriptionSegment> {
1058
+ /**
1059
+ * @generated from field: string id = 1;
1060
+ */
1061
+ id: string;
1062
+ /**
1063
+ * @generated from field: string text = 2;
1064
+ */
1065
+ text: string;
1066
+ /**
1067
+ * @generated from field: uint64 start_time = 3;
1068
+ */
1069
+ startTime: bigint;
1070
+ /**
1071
+ * @generated from field: uint64 end_time = 4;
1072
+ */
1073
+ endTime: bigint;
1074
+ /**
1075
+ * @generated from field: bool final = 5;
1076
+ */
1077
+ final: boolean;
1078
+ /**
1079
+ * @generated from field: string language = 6;
1080
+ */
1081
+ language: string;
1082
+ constructor(data?: PartialMessage<TranscriptionSegment>);
1083
+ static readonly runtime: typeof proto3;
1084
+ static readonly typeName = "livekit.proto.TranscriptionSegment";
1085
+ static readonly fields: FieldList;
1086
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment;
1087
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1088
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1089
+ static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1090
+ }
842
1091
  /**
843
1092
  * @generated from message livekit.proto.BufferInfo
844
1093
  */
@@ -972,57 +1221,63 @@ export declare class RoomEvent extends Message<RoomEvent> {
972
1221
  case: "roomMetadataChanged";
973
1222
  } | {
974
1223
  /**
975
- * @generated from field: livekit.proto.ParticipantMetadataChanged participant_metadata_changed = 15;
1224
+ * @generated from field: livekit.proto.RoomSidChanged room_sid_changed = 15;
1225
+ */
1226
+ value: RoomSidChanged;
1227
+ case: "roomSidChanged";
1228
+ } | {
1229
+ /**
1230
+ * @generated from field: livekit.proto.ParticipantMetadataChanged participant_metadata_changed = 16;
976
1231
  */
977
1232
  value: ParticipantMetadataChanged;
978
1233
  case: "participantMetadataChanged";
979
1234
  } | {
980
1235
  /**
981
- * @generated from field: livekit.proto.ParticipantNameChanged participant_name_changed = 16;
1236
+ * @generated from field: livekit.proto.ParticipantNameChanged participant_name_changed = 17;
982
1237
  */
983
1238
  value: ParticipantNameChanged;
984
1239
  case: "participantNameChanged";
985
1240
  } | {
986
1241
  /**
987
- * @generated from field: livekit.proto.ConnectionQualityChanged connection_quality_changed = 17;
1242
+ * @generated from field: livekit.proto.ParticipantAttributesChanged participant_attributes_changed = 18;
988
1243
  */
989
- value: ConnectionQualityChanged;
990
- case: "connectionQualityChanged";
1244
+ value: ParticipantAttributesChanged;
1245
+ case: "participantAttributesChanged";
991
1246
  } | {
992
1247
  /**
993
- * @generated from field: livekit.proto.DataReceived data_received = 18;
1248
+ * @generated from field: livekit.proto.ConnectionQualityChanged connection_quality_changed = 19;
994
1249
  */
995
- value: DataReceived;
996
- case: "dataReceived";
1250
+ value: ConnectionQualityChanged;
1251
+ case: "connectionQualityChanged";
997
1252
  } | {
998
1253
  /**
999
- * @generated from field: livekit.proto.ConnectionStateChanged connection_state_changed = 19;
1254
+ * @generated from field: livekit.proto.ConnectionStateChanged connection_state_changed = 20;
1000
1255
  */
1001
1256
  value: ConnectionStateChanged;
1002
1257
  case: "connectionStateChanged";
1003
1258
  } | {
1004
1259
  /**
1005
- * Connected connected = 20;
1260
+ * Connected connected = 21;
1006
1261
  *
1007
- * @generated from field: livekit.proto.Disconnected disconnected = 21;
1262
+ * @generated from field: livekit.proto.Disconnected disconnected = 22;
1008
1263
  */
1009
1264
  value: Disconnected;
1010
1265
  case: "disconnected";
1011
1266
  } | {
1012
1267
  /**
1013
- * @generated from field: livekit.proto.Reconnecting reconnecting = 22;
1268
+ * @generated from field: livekit.proto.Reconnecting reconnecting = 23;
1014
1269
  */
1015
1270
  value: Reconnecting;
1016
1271
  case: "reconnecting";
1017
1272
  } | {
1018
1273
  /**
1019
- * @generated from field: livekit.proto.Reconnected reconnected = 23;
1274
+ * @generated from field: livekit.proto.Reconnected reconnected = 24;
1020
1275
  */
1021
1276
  value: Reconnected;
1022
1277
  case: "reconnected";
1023
1278
  } | {
1024
1279
  /**
1025
- * @generated from field: livekit.proto.E2eeStateChanged e2ee_state_changed = 24;
1280
+ * @generated from field: livekit.proto.E2eeStateChanged e2ee_state_changed = 25;
1026
1281
  */
1027
1282
  value: E2eeStateChanged;
1028
1283
  case: "e2eeStateChanged";
@@ -1030,10 +1285,16 @@ export declare class RoomEvent extends Message<RoomEvent> {
1030
1285
  /**
1031
1286
  * The stream of room events has ended
1032
1287
  *
1033
- * @generated from field: livekit.proto.RoomEOS eos = 25;
1288
+ * @generated from field: livekit.proto.RoomEOS eos = 26;
1034
1289
  */
1035
1290
  value: RoomEOS;
1036
1291
  case: "eos";
1292
+ } | {
1293
+ /**
1294
+ * @generated from field: livekit.proto.DataPacketReceived data_packet_received = 27;
1295
+ */
1296
+ value: DataPacketReceived;
1297
+ case: "dataPacketReceived";
1037
1298
  } | {
1038
1299
  case: undefined;
1039
1300
  value?: undefined;
@@ -1052,9 +1313,9 @@ export declare class RoomEvent extends Message<RoomEvent> {
1052
1313
  */
1053
1314
  export declare class RoomInfo extends Message<RoomInfo> {
1054
1315
  /**
1055
- * @generated from field: string sid = 1;
1316
+ * @generated from field: optional string sid = 1;
1056
1317
  */
1057
- sid: string;
1318
+ sid?: string;
1058
1319
  /**
1059
1320
  * @generated from field: string name = 2;
1060
1321
  */
@@ -1115,9 +1376,9 @@ export declare class ParticipantConnected extends Message<ParticipantConnected>
1115
1376
  */
1116
1377
  export declare class ParticipantDisconnected extends Message<ParticipantDisconnected> {
1117
1378
  /**
1118
- * @generated from field: string participant_sid = 1;
1379
+ * @generated from field: string participant_identity = 1;
1119
1380
  */
1120
- participantSid: string;
1381
+ participantIdentity: string;
1121
1382
  constructor(data?: PartialMessage<ParticipantDisconnected>);
1122
1383
  static readonly runtime: typeof proto3;
1123
1384
  static readonly typeName = "livekit.proto.ParticipantDisconnected";
@@ -1169,9 +1430,9 @@ export declare class LocalTrackUnpublished extends Message<LocalTrackUnpublished
1169
1430
  */
1170
1431
  export declare class TrackPublished extends Message<TrackPublished> {
1171
1432
  /**
1172
- * @generated from field: string participant_sid = 1;
1433
+ * @generated from field: string participant_identity = 1;
1173
1434
  */
1174
- participantSid: string;
1435
+ participantIdentity: string;
1175
1436
  /**
1176
1437
  * @generated from field: livekit.proto.OwnedTrackPublication publication = 2;
1177
1438
  */
@@ -1190,9 +1451,9 @@ export declare class TrackPublished extends Message<TrackPublished> {
1190
1451
  */
1191
1452
  export declare class TrackUnpublished extends Message<TrackUnpublished> {
1192
1453
  /**
1193
- * @generated from field: string participant_sid = 1;
1454
+ * @generated from field: string participant_identity = 1;
1194
1455
  */
1195
- participantSid: string;
1456
+ participantIdentity: string;
1196
1457
  /**
1197
1458
  * @generated from field: string publication_sid = 2;
1198
1459
  */
@@ -1214,9 +1475,9 @@ export declare class TrackUnpublished extends Message<TrackUnpublished> {
1214
1475
  */
1215
1476
  export declare class TrackSubscribed extends Message<TrackSubscribed> {
1216
1477
  /**
1217
- * @generated from field: string participant_sid = 1;
1478
+ * @generated from field: string participant_identity = 1;
1218
1479
  */
1219
- participantSid: string;
1480
+ participantIdentity: string;
1220
1481
  /**
1221
1482
  * @generated from field: livekit.proto.OwnedTrack track = 2;
1222
1483
  */
@@ -1237,9 +1498,9 @@ export declare class TrackUnsubscribed extends Message<TrackUnsubscribed> {
1237
1498
  /**
1238
1499
  * The FFI language can dispose/remove the VideoSink here
1239
1500
  *
1240
- * @generated from field: string participant_sid = 1;
1501
+ * @generated from field: string participant_identity = 1;
1241
1502
  */
1242
- participantSid: string;
1503
+ participantIdentity: string;
1243
1504
  /**
1244
1505
  * @generated from field: string track_sid = 2;
1245
1506
  */
@@ -1258,9 +1519,9 @@ export declare class TrackUnsubscribed extends Message<TrackUnsubscribed> {
1258
1519
  */
1259
1520
  export declare class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
1260
1521
  /**
1261
- * @generated from field: string participant_sid = 1;
1522
+ * @generated from field: string participant_identity = 1;
1262
1523
  */
1263
- participantSid: string;
1524
+ participantIdentity: string;
1264
1525
  /**
1265
1526
  * @generated from field: string track_sid = 2;
1266
1527
  */
@@ -1283,9 +1544,9 @@ export declare class TrackSubscriptionFailed extends Message<TrackSubscriptionFa
1283
1544
  */
1284
1545
  export declare class TrackMuted extends Message<TrackMuted> {
1285
1546
  /**
1286
- * @generated from field: string participant_sid = 1;
1547
+ * @generated from field: string participant_identity = 1;
1287
1548
  */
1288
- participantSid: string;
1549
+ participantIdentity: string;
1289
1550
  /**
1290
1551
  * @generated from field: string track_sid = 2;
1291
1552
  */
@@ -1304,9 +1565,9 @@ export declare class TrackMuted extends Message<TrackMuted> {
1304
1565
  */
1305
1566
  export declare class TrackUnmuted extends Message<TrackUnmuted> {
1306
1567
  /**
1307
- * @generated from field: string participant_sid = 1;
1568
+ * @generated from field: string participant_identity = 1;
1308
1569
  */
1309
- participantSid: string;
1570
+ participantIdentity: string;
1310
1571
  /**
1311
1572
  * @generated from field: string track_sid = 2;
1312
1573
  */
@@ -1327,9 +1588,9 @@ export declare class E2eeStateChanged extends Message<E2eeStateChanged> {
1327
1588
  /**
1328
1589
  * Using sid instead of identity for ffi communication
1329
1590
  *
1330
- * @generated from field: string participant_sid = 1;
1591
+ * @generated from field: string participant_identity = 1;
1331
1592
  */
1332
- participantSid: string;
1593
+ participantIdentity: string;
1333
1594
  /**
1334
1595
  * @generated from field: livekit.proto.EncryptionState state = 2;
1335
1596
  */
@@ -1348,9 +1609,9 @@ export declare class E2eeStateChanged extends Message<E2eeStateChanged> {
1348
1609
  */
1349
1610
  export declare class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
1350
1611
  /**
1351
- * @generated from field: repeated string participant_sids = 1;
1612
+ * @generated from field: repeated string participant_identities = 1;
1352
1613
  */
1353
- participantSids: string[];
1614
+ participantIdentities: string[];
1354
1615
  constructor(data?: PartialMessage<ActiveSpeakersChanged>);
1355
1616
  static readonly runtime: typeof proto3;
1356
1617
  static readonly typeName = "livekit.proto.ActiveSpeakersChanged";
@@ -1377,14 +1638,31 @@ export declare class RoomMetadataChanged extends Message<RoomMetadataChanged> {
1377
1638
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomMetadataChanged;
1378
1639
  static equals(a: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined, b: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined): boolean;
1379
1640
  }
1641
+ /**
1642
+ * @generated from message livekit.proto.RoomSidChanged
1643
+ */
1644
+ export declare class RoomSidChanged extends Message<RoomSidChanged> {
1645
+ /**
1646
+ * @generated from field: string sid = 1;
1647
+ */
1648
+ sid: string;
1649
+ constructor(data?: PartialMessage<RoomSidChanged>);
1650
+ static readonly runtime: typeof proto3;
1651
+ static readonly typeName = "livekit.proto.RoomSidChanged";
1652
+ static readonly fields: FieldList;
1653
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomSidChanged;
1654
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomSidChanged;
1655
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomSidChanged;
1656
+ static equals(a: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined, b: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined): boolean;
1657
+ }
1380
1658
  /**
1381
1659
  * @generated from message livekit.proto.ParticipantMetadataChanged
1382
1660
  */
1383
1661
  export declare class ParticipantMetadataChanged extends Message<ParticipantMetadataChanged> {
1384
1662
  /**
1385
- * @generated from field: string participant_sid = 1;
1663
+ * @generated from field: string participant_identity = 1;
1386
1664
  */
1387
- participantSid: string;
1665
+ participantIdentity: string;
1388
1666
  /**
1389
1667
  * @generated from field: string metadata = 2;
1390
1668
  */
@@ -1398,14 +1676,43 @@ export declare class ParticipantMetadataChanged extends Message<ParticipantMetad
1398
1676
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantMetadataChanged;
1399
1677
  static equals(a: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined, b: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined): boolean;
1400
1678
  }
1679
+ /**
1680
+ * @generated from message livekit.proto.ParticipantAttributesChanged
1681
+ */
1682
+ export declare class ParticipantAttributesChanged extends Message<ParticipantAttributesChanged> {
1683
+ /**
1684
+ * @generated from field: string participant_identity = 1;
1685
+ */
1686
+ participantIdentity: string;
1687
+ /**
1688
+ * @generated from field: map<string, string> old_attributes = 2;
1689
+ */
1690
+ oldAttributes: {
1691
+ [key: string]: string;
1692
+ };
1693
+ /**
1694
+ * @generated from field: map<string, string> attributes = 3;
1695
+ */
1696
+ attributes: {
1697
+ [key: string]: string;
1698
+ };
1699
+ constructor(data?: PartialMessage<ParticipantAttributesChanged>);
1700
+ static readonly runtime: typeof proto3;
1701
+ static readonly typeName = "livekit.proto.ParticipantAttributesChanged";
1702
+ static readonly fields: FieldList;
1703
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantAttributesChanged;
1704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged;
1705
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged;
1706
+ static equals(a: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined, b: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined): boolean;
1707
+ }
1401
1708
  /**
1402
1709
  * @generated from message livekit.proto.ParticipantNameChanged
1403
1710
  */
1404
1711
  export declare class ParticipantNameChanged extends Message<ParticipantNameChanged> {
1405
1712
  /**
1406
- * @generated from field: string participant_sid = 1;
1713
+ * @generated from field: string participant_identity = 1;
1407
1714
  */
1408
- participantSid: string;
1715
+ participantIdentity: string;
1409
1716
  /**
1410
1717
  * @generated from field: string name = 2;
1411
1718
  */
@@ -1424,9 +1731,9 @@ export declare class ParticipantNameChanged extends Message<ParticipantNameChang
1424
1731
  */
1425
1732
  export declare class ConnectionQualityChanged extends Message<ConnectionQualityChanged> {
1426
1733
  /**
1427
- * @generated from field: string participant_sid = 1;
1734
+ * @generated from field: string participant_identity = 1;
1428
1735
  */
1429
- participantSid: string;
1736
+ participantIdentity: string;
1430
1737
  /**
1431
1738
  * @generated from field: livekit.proto.ConnectionQuality quality = 2;
1432
1739
  */
@@ -1441,35 +1748,88 @@ export declare class ConnectionQualityChanged extends Message<ConnectionQualityC
1441
1748
  static equals(a: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined, b: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined): boolean;
1442
1749
  }
1443
1750
  /**
1444
- * @generated from message livekit.proto.DataReceived
1751
+ * @generated from message livekit.proto.UserPacket
1445
1752
  */
1446
- export declare class DataReceived extends Message<DataReceived> {
1753
+ export declare class UserPacket extends Message<UserPacket> {
1447
1754
  /**
1448
1755
  * @generated from field: livekit.proto.OwnedBuffer data = 1;
1449
1756
  */
1450
1757
  data?: OwnedBuffer;
1451
1758
  /**
1452
- * Can be empty if the data is sent a server SDK
1453
- *
1454
- * @generated from field: optional string participant_sid = 2;
1759
+ * @generated from field: optional string topic = 2;
1455
1760
  */
1456
- participantSid?: string;
1761
+ topic?: string;
1762
+ constructor(data?: PartialMessage<UserPacket>);
1763
+ static readonly runtime: typeof proto3;
1764
+ static readonly typeName = "livekit.proto.UserPacket";
1765
+ static readonly fields: FieldList;
1766
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
1767
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
1768
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
1769
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
1770
+ }
1771
+ /**
1772
+ * @generated from message livekit.proto.SipDTMF
1773
+ */
1774
+ export declare class SipDTMF extends Message<SipDTMF> {
1775
+ /**
1776
+ * @generated from field: uint32 code = 1;
1777
+ */
1778
+ code: number;
1457
1779
  /**
1458
- * @generated from field: livekit.proto.DataPacketKind kind = 3;
1780
+ * @generated from field: optional string digit = 2;
1781
+ */
1782
+ digit?: string;
1783
+ constructor(data?: PartialMessage<SipDTMF>);
1784
+ static readonly runtime: typeof proto3;
1785
+ static readonly typeName = "livekit.proto.SipDTMF";
1786
+ static readonly fields: FieldList;
1787
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF;
1788
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF;
1789
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF;
1790
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
1791
+ }
1792
+ /**
1793
+ * @generated from message livekit.proto.DataPacketReceived
1794
+ */
1795
+ export declare class DataPacketReceived extends Message<DataPacketReceived> {
1796
+ /**
1797
+ * @generated from field: livekit.proto.DataPacketKind kind = 1;
1459
1798
  */
1460
1799
  kind: DataPacketKind;
1461
1800
  /**
1462
- * @generated from field: optional string topic = 4;
1801
+ * Can be empty if the data is sent a server SDK
1802
+ *
1803
+ * @generated from field: string participant_identity = 2;
1463
1804
  */
1464
- topic?: string;
1465
- constructor(data?: PartialMessage<DataReceived>);
1805
+ participantIdentity: string;
1806
+ /**
1807
+ * @generated from oneof livekit.proto.DataPacketReceived.value
1808
+ */
1809
+ value: {
1810
+ /**
1811
+ * @generated from field: livekit.proto.UserPacket user = 4;
1812
+ */
1813
+ value: UserPacket;
1814
+ case: "user";
1815
+ } | {
1816
+ /**
1817
+ * @generated from field: livekit.proto.SipDTMF sip_dtmf = 5;
1818
+ */
1819
+ value: SipDTMF;
1820
+ case: "sipDtmf";
1821
+ } | {
1822
+ case: undefined;
1823
+ value?: undefined;
1824
+ };
1825
+ constructor(data?: PartialMessage<DataPacketReceived>);
1466
1826
  static readonly runtime: typeof proto3;
1467
- static readonly typeName = "livekit.proto.DataReceived";
1827
+ static readonly typeName = "livekit.proto.DataPacketReceived";
1468
1828
  static readonly fields: FieldList;
1469
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataReceived;
1470
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataReceived;
1471
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataReceived;
1472
- static equals(a: DataReceived | PlainMessage<DataReceived> | undefined, b: DataReceived | PlainMessage<DataReceived> | undefined): boolean;
1829
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacketReceived;
1830
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacketReceived;
1831
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacketReceived;
1832
+ static equals(a: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined, b: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined): boolean;
1473
1833
  }
1474
1834
  /**
1475
1835
  * @generated from message livekit.proto.ConnectionStateChanged