@livekit/protocol 1.53.0 → 1.53.2

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.
@@ -484,6 +484,57 @@ export declare enum SIPMediaEncryption {
484
484
  SIP_MEDIA_ENCRYPT_REQUIRE = 2,
485
485
  }
486
486
 
487
+ /**
488
+ * Dial tone (ringback) played while a call is being placed or transferred.
489
+ * Receivers treat unknown values as SIP_DIALTONE_ETSI.
490
+ *
491
+ * @generated from enum livekit.SIPDialtone
492
+ */
493
+ export declare enum SIPDialtone {
494
+ /**
495
+ * no tone
496
+ *
497
+ * @generated from enum value: SIP_DIALTONE_DISABLED = 0;
498
+ */
499
+ SIP_DIALTONE_DISABLED = 0,
500
+
501
+ /**
502
+ * 425 Hz, 1s on / 4s off; the tone play_dialtone used
503
+ *
504
+ * @generated from enum value: SIP_DIALTONE_ETSI = 1;
505
+ */
506
+ SIP_DIALTONE_ETSI = 1,
507
+
508
+ /**
509
+ * pick by the country of the called number, ETSI if unknown
510
+ *
511
+ * @generated from enum value: SIP_DIALTONE_AUTO = 2;
512
+ */
513
+ SIP_DIALTONE_AUTO = 2,
514
+
515
+ /**
516
+ * North America (NANP)
517
+ *
518
+ * @generated from enum value: SIP_DIALTONE_US = 3;
519
+ */
520
+ SIP_DIALTONE_US = 3,
521
+
522
+ /**
523
+ * @generated from enum value: SIP_DIALTONE_UK = 4;
524
+ */
525
+ SIP_DIALTONE_UK = 4,
526
+
527
+ /**
528
+ * @generated from enum value: SIP_DIALTONE_JP = 5;
529
+ */
530
+ SIP_DIALTONE_JP = 5,
531
+
532
+ /**
533
+ * @generated from enum value: SIP_DIALTONE_AU = 6;
534
+ */
535
+ SIP_DIALTONE_AU = 6,
536
+ }
537
+
487
538
  /**
488
539
  * @generated from enum livekit.ProviderType
489
540
  */
@@ -841,6 +892,14 @@ export declare class SIPMediaConfig extends Message<SIPMediaConfig> {
841
892
  */
842
893
  mediaTimeout?: Duration;
843
894
 
895
+ /**
896
+ * Stop sending audio RTP while outbound DTMF digits are sent.
897
+ * Always on when the telephone-event clock rate differs from the audio codec's.
898
+ *
899
+ * @generated from field: bool drop_audio_during_dtmf = 5;
900
+ */
901
+ dropAudioDuringDtmf: boolean;
902
+
844
903
  constructor(data?: PartialMessage<SIPMediaConfig>);
845
904
 
846
905
  static readonly runtime: typeof proto3;
@@ -2667,7 +2726,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
2667
2726
  dtmf: string;
2668
2727
 
2669
2728
  /**
2670
- * Optionally play dialtone in the room as an audible indicator for existing participants. The `play_ringtone` option is deprectated but has the same effect.
2729
+ * Deprecated: use dialtone. Setting play_dialtone (or play_ringtone) is equivalent to SIP_DIALTONE_ETSI when dialtone is unset.
2671
2730
  *
2672
2731
  * @generated from field: bool play_ringtone = 6 [deprecated = true];
2673
2732
  * @deprecated
@@ -2675,10 +2734,18 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
2675
2734
  playRingtone: boolean;
2676
2735
 
2677
2736
  /**
2678
- * @generated from field: bool play_dialtone = 13;
2737
+ * @generated from field: bool play_dialtone = 13 [deprecated = true];
2738
+ * @deprecated
2679
2739
  */
2680
2740
  playDialtone: boolean;
2681
2741
 
2742
+ /**
2743
+ * Optionally play dialtone in the room as an audible indicator for existing participants.
2744
+ *
2745
+ * @generated from field: livekit.SIPDialtone dialtone = 28;
2746
+ */
2747
+ dialtone: SIPDialtone;
2748
+
2682
2749
  /**
2683
2750
  * By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes.
2684
2751
  * If true, a random value for identity will be used and numbers will be omitted from attributes.
@@ -2758,7 +2825,7 @@ export declare class CreateSIPParticipantRequest extends Message<CreateSIPPartic
2758
2825
  displayName?: string;
2759
2826
 
2760
2827
  /**
2761
- * NEXT ID: 28
2828
+ * NEXT ID: 29
2762
2829
  *
2763
2830
  * @generated from field: optional livekit.Destination destination = 22;
2764
2831
  */
@@ -2838,12 +2905,20 @@ export declare class TransferSIPParticipantRequest extends Message<TransferSIPPa
2838
2905
  transferTo: string;
2839
2906
 
2840
2907
  /**
2841
- * Optionally play dialtone to the SIP participant as an audible indicator of being transferred
2908
+ * Deprecated: use dialtone. Setting play_dialtone is equivalent to SIP_DIALTONE_ETSI when dialtone is unset.
2842
2909
  *
2843
- * @generated from field: bool play_dialtone = 4;
2910
+ * @generated from field: bool play_dialtone = 4 [deprecated = true];
2911
+ * @deprecated
2844
2912
  */
2845
2913
  playDialtone: boolean;
2846
2914
 
2915
+ /**
2916
+ * Optionally play dialtone to the SIP participant as an audible indicator of being transferred.
2917
+ *
2918
+ * @generated from field: livekit.SIPDialtone dialtone = 7;
2919
+ */
2920
+ dialtone: SIPDialtone;
2921
+
2847
2922
  /**
2848
2923
  * Add the following headers to the REFER SIP request.
2849
2924
  *
@@ -143,6 +143,25 @@ export const SIPMediaEncryption = /*@__PURE__*/ proto3.makeEnum(
143
143
  ],
144
144
  );
145
145
 
146
+ /**
147
+ * Dial tone (ringback) played while a call is being placed or transferred.
148
+ * Receivers treat unknown values as SIP_DIALTONE_ETSI.
149
+ *
150
+ * @generated from enum livekit.SIPDialtone
151
+ */
152
+ export const SIPDialtone = /*@__PURE__*/ proto3.makeEnum(
153
+ "livekit.SIPDialtone",
154
+ [
155
+ {no: 0, name: "SIP_DIALTONE_DISABLED"},
156
+ {no: 1, name: "SIP_DIALTONE_ETSI"},
157
+ {no: 2, name: "SIP_DIALTONE_AUTO"},
158
+ {no: 3, name: "SIP_DIALTONE_US"},
159
+ {no: 4, name: "SIP_DIALTONE_UK"},
160
+ {no: 5, name: "SIP_DIALTONE_JP"},
161
+ {no: 6, name: "SIP_DIALTONE_AU"},
162
+ ],
163
+ );
164
+
146
165
  /**
147
166
  * @generated from enum livekit.ProviderType
148
167
  */
@@ -275,6 +294,7 @@ export const SIPMediaConfig = /*@__PURE__*/ proto3.makeMessageType(
275
294
  { no: 2, name: "codecs", kind: "message", T: SIPCodec, repeated: true },
276
295
  { no: 3, name: "encryption", kind: "enum", T: proto3.getEnumType(SIPMediaEncryption), opt: true },
277
296
  { no: 4, name: "media_timeout", kind: "message", T: Duration, opt: true },
297
+ { no: 5, name: "drop_audio_during_dtmf", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
278
298
  ],
279
299
  );
280
300
 
@@ -782,6 +802,7 @@ export const CreateSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageType(
782
802
  { no: 5, name: "dtmf", kind: "scalar", T: 9 /* ScalarType.STRING */ },
783
803
  { no: 6, name: "play_ringtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
784
804
  { no: 13, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
805
+ { no: 28, name: "dialtone", kind: "enum", T: proto3.getEnumType(SIPDialtone) },
785
806
  { no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
786
807
  { no: 16, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
787
808
  { no: 17, name: "include_headers", kind: "enum", T: proto3.getEnumType(SIPHeaderOptions) },
@@ -819,6 +840,7 @@ export const TransferSIPParticipantRequest = /*@__PURE__*/ proto3.makeMessageTyp
819
840
  { no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
820
841
  { no: 3, name: "transfer_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
821
842
  { no: 4, name: "play_dialtone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
843
+ { no: 7, name: "dialtone", kind: "enum", T: proto3.getEnumType(SIPDialtone) },
822
844
  { no: 5, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
823
845
  { no: 6, name: "ringing_timeout", kind: "message", T: Duration },
824
846
  ],
@@ -31,7 +31,7 @@ export declare class WebhookEvent extends Message<WebhookEvent> {
31
31
  /**
32
32
  * one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
33
33
  * track_published, track_unpublished, egress_started, egress_updated, egress_ended,
34
- * ingress_started, ingress_ended, agent_job_started, agent_job_ended
34
+ * ingress_started, ingress_ended, agent_job_pending, agent_job_started, agent_job_ended
35
35
  *
36
36
  * @generated from field: string event = 1;
37
37
  */
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.53.0';
2
+ export const version = '1.53.2';