telnyx 5.161.0 → 5.162.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/call_dial_params.rb +27 -1
  5. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +6 -1
  6. data/lib/telnyx/models/calls/action_speak_params.rb +6 -1
  7. data/lib/telnyx/models/calls/action_transfer_params.rb +27 -1
  8. data/lib/telnyx/models/conferences/action_speak_params.rb +6 -1
  9. data/lib/telnyx/models/rime_voice_settings.rb +15 -1
  10. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +96 -3
  11. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +30 -1
  12. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +28 -1
  13. data/lib/telnyx/resources/messaging_profiles.rb +1 -1
  14. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  15. data/lib/telnyx/resources/texml.rb +3 -1
  16. data/lib/telnyx/version.rb +1 -1
  17. data/rbi/telnyx/models/call_dial_params.rbi +65 -0
  18. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +12 -2
  19. data/rbi/telnyx/models/calls/action_speak_params.rbi +12 -2
  20. data/rbi/telnyx/models/calls/action_transfer_params.rbi +65 -0
  21. data/rbi/telnyx/models/conferences/action_speak_params.rbi +12 -2
  22. data/rbi/telnyx/models/rime_voice_settings.rbi +17 -0
  23. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +204 -0
  24. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +68 -0
  25. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +68 -0
  26. data/rbi/telnyx/resources/calls/actions.rbi +12 -2
  27. data/rbi/telnyx/resources/conferences/actions.rbi +6 -1
  28. data/rbi/telnyx/resources/messaging_profiles.rbi +1 -1
  29. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  30. data/rbi/telnyx/resources/texml.rbi +7 -0
  31. data/sig/telnyx/models/call_dial_params.rbs +20 -0
  32. data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
  33. data/sig/telnyx/models/rime_voice_settings.rbs +11 -1
  34. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +60 -0
  35. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +20 -0
  36. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +20 -0
  37. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  38. data/sig/telnyx/resources/texml.rbs +1 -0
  39. metadata +2 -2
@@ -1217,6 +1217,26 @@ module Telnyx
1217
1217
  sig { params(after_greeting_silence_millis: Integer).void }
1218
1218
  attr_writer :after_greeting_silence_millis
1219
1219
 
1220
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1221
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1222
+ # beeps whose volume is too unsteady for the default profile.
1223
+ sig do
1224
+ returns(
1225
+ T.nilable(
1226
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol
1227
+ )
1228
+ )
1229
+ end
1230
+ attr_reader :beep_detection_profile
1231
+
1232
+ sig do
1233
+ params(
1234
+ beep_detection_profile:
1235
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol
1236
+ ).void
1237
+ end
1238
+ attr_writer :beep_detection_profile
1239
+
1220
1240
  # Maximum threshold for silence between words.
1221
1241
  sig { returns(T.nilable(Integer)) }
1222
1242
  attr_reader :between_words_silence_millis
@@ -1290,6 +1310,8 @@ module Telnyx
1290
1310
  sig do
1291
1311
  params(
1292
1312
  after_greeting_silence_millis: Integer,
1313
+ beep_detection_profile:
1314
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
1293
1315
  between_words_silence_millis: Integer,
1294
1316
  greeting_duration_millis: Integer,
1295
1317
  greeting_silence_duration_millis: Integer,
@@ -1305,6 +1327,10 @@ module Telnyx
1305
1327
  # Silence duration threshold after a greeting message or voice for it be
1306
1328
  # considered human.
1307
1329
  after_greeting_silence_millis: nil,
1330
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1331
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1332
+ # beeps whose volume is too unsteady for the default profile.
1333
+ beep_detection_profile: nil,
1308
1334
  # Maximum threshold for silence between words.
1309
1335
  between_words_silence_millis: nil,
1310
1336
  # Maximum threshold of a human greeting. If greeting longer than this value,
@@ -1333,6 +1359,8 @@ module Telnyx
1333
1359
  override.returns(
1334
1360
  {
1335
1361
  after_greeting_silence_millis: Integer,
1362
+ beep_detection_profile:
1363
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
1336
1364
  between_words_silence_millis: Integer,
1337
1365
  greeting_duration_millis: Integer,
1338
1366
  greeting_silence_duration_millis: Integer,
@@ -1347,6 +1375,43 @@ module Telnyx
1347
1375
  end
1348
1376
  def to_hash
1349
1377
  end
1378
+
1379
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1380
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1381
+ # beeps whose volume is too unsteady for the default profile.
1382
+ module BeepDetectionProfile
1383
+ extend Telnyx::Internal::Type::Enum
1384
+
1385
+ TaggedSymbol =
1386
+ T.type_alias do
1387
+ T.all(
1388
+ Symbol,
1389
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile
1390
+ )
1391
+ end
1392
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1393
+
1394
+ BOTH =
1395
+ T.let(
1396
+ :both,
1397
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1398
+ )
1399
+ FREQ_ONLY =
1400
+ T.let(
1401
+ :freq_only,
1402
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1403
+ )
1404
+
1405
+ sig do
1406
+ override.returns(
1407
+ T::Array[
1408
+ Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1409
+ ]
1410
+ )
1411
+ end
1412
+ def self.values
1413
+ end
1414
+ end
1350
1415
  end
1351
1416
 
1352
1417
  class ConferenceConfig < Telnyx::Internal::Type::BaseModel
@@ -58,7 +58,12 @@ module Telnyx
58
58
  # to configure speed, volume, pitch, and language_boost.
59
59
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
60
60
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
61
- # `voice_settings` to configure voice_speed.
61
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
62
+ # provide your Rime API key as an integration secret in
63
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
64
+ # See
65
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
66
+ # for details.
62
67
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
63
68
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
64
69
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -330,7 +335,12 @@ module Telnyx
330
335
  # to configure speed, volume, pitch, and language_boost.
331
336
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
332
337
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
333
- # `voice_settings` to configure voice_speed.
338
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
339
+ # provide your Rime API key as an integration secret in
340
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
341
+ # See
342
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
343
+ # for details.
334
344
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
335
345
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
336
346
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -55,7 +55,12 @@ module Telnyx
55
55
  # to configure speed, volume, pitch, and language_boost.
56
56
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
57
57
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
58
- # `voice_settings` to configure voice_speed.
58
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
59
+ # provide your Rime API key as an integration secret in
60
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
61
+ # See
62
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
63
+ # for details.
59
64
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
60
65
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
61
66
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -285,7 +290,12 @@ module Telnyx
285
290
  # to configure speed, volume, pitch, and language_boost.
286
291
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
287
292
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
288
- # `voice_settings` to configure voice_speed.
293
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
294
+ # provide your Rime API key as an integration secret in
295
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
296
+ # See
297
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
298
+ # for details.
289
299
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
290
300
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
291
301
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -908,6 +908,26 @@ module Telnyx
908
908
  sig { params(after_greeting_silence_millis: Integer).void }
909
909
  attr_writer :after_greeting_silence_millis
910
910
 
911
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
912
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
913
+ # beeps whose volume is too unsteady for the default profile.
914
+ sig do
915
+ returns(
916
+ T.nilable(
917
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol
918
+ )
919
+ )
920
+ end
921
+ attr_reader :beep_detection_profile
922
+
923
+ sig do
924
+ params(
925
+ beep_detection_profile:
926
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol
927
+ ).void
928
+ end
929
+ attr_writer :beep_detection_profile
930
+
911
931
  # Maximum threshold for silence between words.
912
932
  sig { returns(T.nilable(Integer)) }
913
933
  attr_reader :between_words_silence_millis
@@ -981,6 +1001,8 @@ module Telnyx
981
1001
  sig do
982
1002
  params(
983
1003
  after_greeting_silence_millis: Integer,
1004
+ beep_detection_profile:
1005
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
984
1006
  between_words_silence_millis: Integer,
985
1007
  greeting_duration_millis: Integer,
986
1008
  greeting_silence_duration_millis: Integer,
@@ -996,6 +1018,10 @@ module Telnyx
996
1018
  # Silence duration threshold after a greeting message or voice for it be
997
1019
  # considered human.
998
1020
  after_greeting_silence_millis: nil,
1021
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1022
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1023
+ # beeps whose volume is too unsteady for the default profile.
1024
+ beep_detection_profile: nil,
999
1025
  # Maximum threshold for silence between words.
1000
1026
  between_words_silence_millis: nil,
1001
1027
  # Maximum threshold of a human greeting. If greeting longer than this value,
@@ -1024,6 +1050,8 @@ module Telnyx
1024
1050
  override.returns(
1025
1051
  {
1026
1052
  after_greeting_silence_millis: Integer,
1053
+ beep_detection_profile:
1054
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
1027
1055
  between_words_silence_millis: Integer,
1028
1056
  greeting_duration_millis: Integer,
1029
1057
  greeting_silence_duration_millis: Integer,
@@ -1038,6 +1066,43 @@ module Telnyx
1038
1066
  end
1039
1067
  def to_hash
1040
1068
  end
1069
+
1070
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1071
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1072
+ # beeps whose volume is too unsteady for the default profile.
1073
+ module BeepDetectionProfile
1074
+ extend Telnyx::Internal::Type::Enum
1075
+
1076
+ TaggedSymbol =
1077
+ T.type_alias do
1078
+ T.all(
1079
+ Symbol,
1080
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile
1081
+ )
1082
+ end
1083
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1084
+
1085
+ BOTH =
1086
+ T.let(
1087
+ :both,
1088
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1089
+ )
1090
+ FREQ_ONLY =
1091
+ T.let(
1092
+ :freq_only,
1093
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1094
+ )
1095
+
1096
+ sig do
1097
+ override.returns(
1098
+ T::Array[
1099
+ Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::TaggedSymbol
1100
+ ]
1101
+ )
1102
+ end
1103
+ def self.values
1104
+ end
1105
+ end
1041
1106
  end
1042
1107
 
1043
1108
  # Defines whether media should be encrypted on the new call leg. For SIP URI
@@ -58,7 +58,12 @@ module Telnyx
58
58
  # to configure speed, volume, pitch, and language_boost.
59
59
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
60
60
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
61
- # `voice_settings` to configure voice_speed.
61
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
62
+ # provide your Rime API key as an integration secret in
63
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
64
+ # See
65
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
66
+ # for details.
62
67
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
63
68
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
64
69
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -252,7 +257,12 @@ module Telnyx
252
257
  # to configure speed, volume, pitch, and language_boost.
253
258
  # - **Rime:** Use `Rime.<model_id>.<voice_id>` (e.g., `Rime.Arcana.cove`).
254
259
  # Supported model_ids: `Arcana`, `Mist`, `ArcanaV3`, `Coda`. Use
255
- # `voice_settings` to configure voice_speed.
260
+ # `voice_settings` to configure voice_speed. To use your own Rime account,
261
+ # provide your Rime API key as an integration secret in
262
+ # `"voice_settings": {"type": "rime", "api_key_ref": "<secret_identifier>"}`.
263
+ # See
264
+ # [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
265
+ # for details.
256
266
  # - **Resemble:** Use `Resemble.Turbo.<voice_id>` (e.g.,
257
267
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
258
268
  # `voice_settings` to configure precision, sample_rate, and format.
@@ -12,6 +12,16 @@ module Telnyx
12
12
  sig { returns(Telnyx::RimeVoiceSettings::Type::OrSymbol) }
13
13
  attr_accessor :type
14
14
 
15
+ # The `identifier` for an integration secret
16
+ # [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
17
+ # that refers to your Rime API key. Only required when using your own Rime
18
+ # account.
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :api_key_ref
21
+
22
+ sig { params(api_key_ref: String).void }
23
+ attr_writer :api_key_ref
24
+
15
25
  # Speech speed multiplier. Default is 1.0.
16
26
  sig { returns(T.nilable(Float)) }
17
27
  attr_reader :voice_speed
@@ -22,12 +32,18 @@ module Telnyx
22
32
  sig do
23
33
  params(
24
34
  type: Telnyx::RimeVoiceSettings::Type::OrSymbol,
35
+ api_key_ref: String,
25
36
  voice_speed: Float
26
37
  ).returns(T.attached_class)
27
38
  end
28
39
  def self.new(
29
40
  # Voice settings provider type
30
41
  type:,
42
+ # The `identifier` for an integration secret
43
+ # [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
44
+ # that refers to your Rime API key. Only required when using your own Rime
45
+ # account.
46
+ api_key_ref: nil,
31
47
  # Speech speed multiplier. Default is 1.0.
32
48
  voice_speed: nil
33
49
  )
@@ -37,6 +53,7 @@ module Telnyx
37
53
  override.returns(
38
54
  {
39
55
  type: Telnyx::RimeVoiceSettings::Type::OrSymbol,
56
+ api_key_ref: String,
40
57
  voice_speed: Float
41
58
  }
42
59
  )
@@ -280,6 +280,27 @@ module Telnyx
280
280
  end
281
281
  attr_writer :machine_detection
282
282
 
283
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
284
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
285
+ # beeps whose volume is too unsteady for the default profile. Only used when
286
+ # MachineDetection is enabled.
287
+ sig do
288
+ returns(
289
+ T.nilable(
290
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::OrSymbol
291
+ )
292
+ )
293
+ end
294
+ attr_reader :machine_detection_beep_profile
295
+
296
+ sig do
297
+ params(
298
+ machine_detection_beep_profile:
299
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::OrSymbol
300
+ ).void
301
+ end
302
+ attr_writer :machine_detection_beep_profile
303
+
283
304
  # Silence duration threshold after a call screening prompt before ending prompt
284
305
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
285
306
  sig { returns(T.nilable(Integer)) }
@@ -629,6 +650,8 @@ module Telnyx
629
650
  from: String,
630
651
  machine_detection:
631
652
  Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetection::OrSymbol,
653
+ machine_detection_beep_profile:
654
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::OrSymbol,
632
655
  machine_detection_prompt_end_timeout: Integer,
633
656
  machine_detection_silence_timeout: Integer,
634
657
  machine_detection_speech_end_threshold: Integer,
@@ -716,6 +739,11 @@ module Telnyx
716
739
  from: nil,
717
740
  # Enables Answering Machine Detection.
718
741
  machine_detection: nil,
742
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
743
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
744
+ # beeps whose volume is too unsteady for the default profile. Only used when
745
+ # MachineDetection is enabled.
746
+ machine_detection_beep_profile: nil,
719
747
  # Silence duration threshold after a call screening prompt before ending prompt
720
748
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
721
749
  machine_detection_prompt_end_timeout: nil,
@@ -826,6 +854,8 @@ module Telnyx
826
854
  from: String,
827
855
  machine_detection:
828
856
  Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetection::OrSymbol,
857
+ machine_detection_beep_profile:
858
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::OrSymbol,
829
859
  machine_detection_prompt_end_timeout: Integer,
830
860
  machine_detection_silence_timeout: Integer,
831
861
  machine_detection_speech_end_threshold: Integer,
@@ -1088,6 +1118,44 @@ module Telnyx
1088
1118
  end
1089
1119
  end
1090
1120
 
1121
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1122
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1123
+ # beeps whose volume is too unsteady for the default profile. Only used when
1124
+ # MachineDetection is enabled.
1125
+ module MachineDetectionBeepProfile
1126
+ extend Telnyx::Internal::Type::Enum
1127
+
1128
+ TaggedSymbol =
1129
+ T.type_alias do
1130
+ T.all(
1131
+ Symbol,
1132
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile
1133
+ )
1134
+ end
1135
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1136
+
1137
+ BOTH =
1138
+ T.let(
1139
+ :both,
1140
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::TaggedSymbol
1141
+ )
1142
+ FREQ_ONLY =
1143
+ T.let(
1144
+ :freq_only,
1145
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::TaggedSymbol
1146
+ )
1147
+
1148
+ sig do
1149
+ override.returns(
1150
+ T::Array[
1151
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile::TaggedSymbol
1152
+ ]
1153
+ )
1154
+ end
1155
+ def self.values
1156
+ end
1157
+ end
1158
+
1091
1159
  # Defines whether media should be encrypted on the call. When set to `SRTP`, the
1092
1160
  # call will use Secure Real-time Transport Protocol for media encryption. When set
1093
1161
  # to `DTLS`, the call will use DTLS for media encryption. Only supported for SIP
@@ -1648,6 +1716,27 @@ module Telnyx
1648
1716
  end
1649
1717
  attr_writer :machine_detection
1650
1718
 
1719
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
1720
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
1721
+ # beeps whose volume is too unsteady for the default profile. Only used when
1722
+ # MachineDetection is enabled.
1723
+ sig do
1724
+ returns(
1725
+ T.nilable(
1726
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::OrSymbol
1727
+ )
1728
+ )
1729
+ end
1730
+ attr_reader :machine_detection_beep_profile
1731
+
1732
+ sig do
1733
+ params(
1734
+ machine_detection_beep_profile:
1735
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::OrSymbol
1736
+ ).void
1737
+ end
1738
+ attr_writer :machine_detection_beep_profile
1739
+
1651
1740
  # Silence duration threshold after a call screening prompt before ending prompt
1652
1741
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
1653
1742
  sig { returns(T.nilable(Integer)) }
@@ -1997,6 +2086,8 @@ module Telnyx
1997
2086
  from: String,
1998
2087
  machine_detection:
1999
2088
  Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetection::OrSymbol,
2089
+ machine_detection_beep_profile:
2090
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::OrSymbol,
2000
2091
  machine_detection_prompt_end_timeout: Integer,
2001
2092
  machine_detection_silence_timeout: Integer,
2002
2093
  machine_detection_speech_end_threshold: Integer,
@@ -2085,6 +2176,11 @@ module Telnyx
2085
2176
  from: nil,
2086
2177
  # Enables Answering Machine Detection.
2087
2178
  machine_detection: nil,
2179
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
2180
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
2181
+ # beeps whose volume is too unsteady for the default profile. Only used when
2182
+ # MachineDetection is enabled.
2183
+ machine_detection_beep_profile: nil,
2088
2184
  # Silence duration threshold after a call screening prompt before ending prompt
2089
2185
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
2090
2186
  machine_detection_prompt_end_timeout: nil,
@@ -2195,6 +2291,8 @@ module Telnyx
2195
2291
  from: String,
2196
2292
  machine_detection:
2197
2293
  Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetection::OrSymbol,
2294
+ machine_detection_beep_profile:
2295
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::OrSymbol,
2198
2296
  machine_detection_prompt_end_timeout: Integer,
2199
2297
  machine_detection_silence_timeout: Integer,
2200
2298
  machine_detection_speech_end_threshold: Integer,
@@ -2457,6 +2555,44 @@ module Telnyx
2457
2555
  end
2458
2556
  end
2459
2557
 
2558
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
2559
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
2560
+ # beeps whose volume is too unsteady for the default profile. Only used when
2561
+ # MachineDetection is enabled.
2562
+ module MachineDetectionBeepProfile
2563
+ extend Telnyx::Internal::Type::Enum
2564
+
2565
+ TaggedSymbol =
2566
+ T.type_alias do
2567
+ T.all(
2568
+ Symbol,
2569
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile
2570
+ )
2571
+ end
2572
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2573
+
2574
+ BOTH =
2575
+ T.let(
2576
+ :both,
2577
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::TaggedSymbol
2578
+ )
2579
+ FREQ_ONLY =
2580
+ T.let(
2581
+ :freq_only,
2582
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::TaggedSymbol
2583
+ )
2584
+
2585
+ sig do
2586
+ override.returns(
2587
+ T::Array[
2588
+ Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile::TaggedSymbol
2589
+ ]
2590
+ )
2591
+ end
2592
+ def self.values
2593
+ end
2594
+ end
2595
+
2460
2596
  # Defines whether media should be encrypted on the call. When set to `SRTP`, the
2461
2597
  # call will use Secure Real-time Transport Protocol for media encryption. When set
2462
2598
  # to `DTLS`, the call will use DTLS for media encryption. Only supported for SIP
@@ -3012,6 +3148,27 @@ module Telnyx
3012
3148
  end
3013
3149
  attr_writer :machine_detection
3014
3150
 
3151
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
3152
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
3153
+ # beeps whose volume is too unsteady for the default profile. Only used when
3154
+ # MachineDetection is enabled.
3155
+ sig do
3156
+ returns(
3157
+ T.nilable(
3158
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::OrSymbol
3159
+ )
3160
+ )
3161
+ end
3162
+ attr_reader :machine_detection_beep_profile
3163
+
3164
+ sig do
3165
+ params(
3166
+ machine_detection_beep_profile:
3167
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::OrSymbol
3168
+ ).void
3169
+ end
3170
+ attr_writer :machine_detection_beep_profile
3171
+
3015
3172
  # Silence duration threshold after a call screening prompt before ending prompt
3016
3173
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
3017
3174
  sig { returns(T.nilable(Integer)) }
@@ -3363,6 +3520,8 @@ module Telnyx
3363
3520
  from: String,
3364
3521
  machine_detection:
3365
3522
  Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetection::OrSymbol,
3523
+ machine_detection_beep_profile:
3524
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::OrSymbol,
3366
3525
  machine_detection_prompt_end_timeout: Integer,
3367
3526
  machine_detection_silence_timeout: Integer,
3368
3527
  machine_detection_speech_end_threshold: Integer,
@@ -3449,6 +3608,11 @@ module Telnyx
3449
3608
  from: nil,
3450
3609
  # Enables Answering Machine Detection.
3451
3610
  machine_detection: nil,
3611
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
3612
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
3613
+ # beeps whose volume is too unsteady for the default profile. Only used when
3614
+ # MachineDetection is enabled.
3615
+ machine_detection_beep_profile: nil,
3452
3616
  # Silence duration threshold after a call screening prompt before ending prompt
3453
3617
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
3454
3618
  machine_detection_prompt_end_timeout: nil,
@@ -3559,6 +3723,8 @@ module Telnyx
3559
3723
  from: String,
3560
3724
  machine_detection:
3561
3725
  Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetection::OrSymbol,
3726
+ machine_detection_beep_profile:
3727
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::OrSymbol,
3562
3728
  machine_detection_prompt_end_timeout: Integer,
3563
3729
  machine_detection_silence_timeout: Integer,
3564
3730
  machine_detection_speech_end_threshold: Integer,
@@ -3822,6 +3988,44 @@ module Telnyx
3822
3988
  end
3823
3989
  end
3824
3990
 
3991
+ # Selects which detectors must validate a beep. `both` requires the amplitude and
3992
+ # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
3993
+ # beeps whose volume is too unsteady for the default profile. Only used when
3994
+ # MachineDetection is enabled.
3995
+ module MachineDetectionBeepProfile
3996
+ extend Telnyx::Internal::Type::Enum
3997
+
3998
+ TaggedSymbol =
3999
+ T.type_alias do
4000
+ T.all(
4001
+ Symbol,
4002
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile
4003
+ )
4004
+ end
4005
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
4006
+
4007
+ BOTH =
4008
+ T.let(
4009
+ :both,
4010
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::TaggedSymbol
4011
+ )
4012
+ FREQ_ONLY =
4013
+ T.let(
4014
+ :freq_only,
4015
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::TaggedSymbol
4016
+ )
4017
+
4018
+ sig do
4019
+ override.returns(
4020
+ T::Array[
4021
+ Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile::TaggedSymbol
4022
+ ]
4023
+ )
4024
+ end
4025
+ def self.values
4026
+ end
4027
+ end
4028
+
3825
4029
  # Defines whether media should be encrypted on the call. When set to `SRTP`, the
3826
4030
  # call will use Secure Real-time Transport Protocol for media encryption. When set
3827
4031
  # to `DTLS`, the call will use DTLS for media encryption. Only supported for SIP