telnyx 5.1.0 → 5.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -173
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -173
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -175
- data/lib/telnyx/models/ai/audio_visualizer_config.rb +43 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -173
- data/lib/telnyx/models/ai/widget_settings.rb +138 -0
- data/lib/telnyx/models/connection_noise_suppression_details.rb +61 -0
- data/lib/telnyx/models/credential_connection.rb +3 -61
- data/lib/telnyx/models/credential_connection_create_params.rb +3 -61
- data/lib/telnyx/models/credential_connection_update_params.rb +3 -61
- data/lib/telnyx/models/fqdn_connection.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_create_params.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_update_params.rb +3 -60
- data/lib/telnyx/models/ip_connection.rb +3 -60
- data/lib/telnyx/models/ip_connection_create_params.rb +3 -60
- data/lib/telnyx/models/ip_connection_update_params.rb +3 -60
- data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +3 -25
- data/lib/telnyx/models/organizations/user_group_reference.rb +28 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +3 -25
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +3 -25
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +3 -25
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/credential_connections.rb +2 -2
- data/lib/telnyx/resources/fqdn_connections.rb +2 -2
- data/lib/telnyx/resources/ip_connections.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -422
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -422
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -422
- data/rbi/telnyx/models/ai/audio_visualizer_config.rbi +107 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -421
- data/rbi/telnyx/models/ai/widget_settings.rbi +225 -0
- data/rbi/telnyx/models/connection_noise_suppression_details.rbi +141 -0
- data/rbi/telnyx/models/credential_connection.rbi +4 -152
- data/rbi/telnyx/models/credential_connection_create_params.rbi +4 -154
- data/rbi/telnyx/models/credential_connection_update_params.rbi +4 -154
- data/rbi/telnyx/models/fqdn_connection.rbi +4 -150
- data/rbi/telnyx/models/fqdn_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/fqdn_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection.rbi +4 -148
- data/rbi/telnyx/models/ip_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +3 -46
- data/rbi/telnyx/models/organizations/user_group_reference.rbi +39 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +4 -47
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +4 -47
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +4 -47
- data/rbi/telnyx/models.rbi +3 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/credential_connections.rbi +2 -2
- data/rbi/telnyx/resources/fqdn_connections.rbi +2 -2
- data/rbi/telnyx/resources/ip_connections.rbi +2 -2
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -172
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -172
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -172
- data/sig/telnyx/models/ai/audio_visualizer_config.rbs +48 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -172
- data/sig/telnyx/models/ai/widget_settings.rbs +127 -0
- data/sig/telnyx/models/connection_noise_suppression_details.rbs +54 -0
- data/sig/telnyx/models/credential_connection.rbs +6 -57
- data/sig/telnyx/models/credential_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/credential_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection.rbs +6 -57
- data/sig/telnyx/models/ip_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +4 -16
- data/sig/telnyx/models/organizations/user_group_reference.rbs +17 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +6 -18
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +6 -18
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/credential_connections.rbs +2 -2
- data/sig/telnyx/resources/fqdn_connections.rbs +2 -2
- data/sig/telnyx/resources/ip_connections.rbs +2 -2
- metadata +13 -1
|
@@ -112,17 +112,13 @@ module Telnyx
|
|
|
112
112
|
# regardless of the noise_suppression value, but only take effect when
|
|
113
113
|
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
114
114
|
# re-enable it, the previously configured settings will be used.
|
|
115
|
-
sig
|
|
116
|
-
returns(
|
|
117
|
-
T.nilable(Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails)
|
|
118
|
-
)
|
|
119
|
-
end
|
|
115
|
+
sig { returns(T.nilable(Telnyx::ConnectionNoiseSuppressionDetails)) }
|
|
120
116
|
attr_reader :noise_suppression_details
|
|
121
117
|
|
|
122
118
|
sig do
|
|
123
119
|
params(
|
|
124
120
|
noise_suppression_details:
|
|
125
|
-
Telnyx::
|
|
121
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash
|
|
126
122
|
).void
|
|
127
123
|
end
|
|
128
124
|
attr_writer :noise_suppression_details
|
|
@@ -207,7 +203,7 @@ module Telnyx
|
|
|
207
203
|
noise_suppression:
|
|
208
204
|
Telnyx::FqdnConnectionUpdateParams::NoiseSuppression::OrSymbol,
|
|
209
205
|
noise_suppression_details:
|
|
210
|
-
Telnyx::
|
|
206
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
211
207
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
212
208
|
outbound: Telnyx::OutboundFqdn::OrHash,
|
|
213
209
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -301,7 +297,7 @@ module Telnyx
|
|
|
301
297
|
noise_suppression:
|
|
302
298
|
Telnyx::FqdnConnectionUpdateParams::NoiseSuppression::OrSymbol,
|
|
303
299
|
noise_suppression_details:
|
|
304
|
-
Telnyx::
|
|
300
|
+
Telnyx::ConnectionNoiseSuppressionDetails,
|
|
305
301
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
306
302
|
outbound: Telnyx::OutboundFqdn,
|
|
307
303
|
rtcp_settings: Telnyx::ConnectionRtcpSettings,
|
|
@@ -362,150 +358,6 @@ module Telnyx
|
|
|
362
358
|
def self.values
|
|
363
359
|
end
|
|
364
360
|
end
|
|
365
|
-
|
|
366
|
-
class NoiseSuppressionDetails < Telnyx::Internal::Type::BaseModel
|
|
367
|
-
OrHash =
|
|
368
|
-
T.type_alias do
|
|
369
|
-
T.any(
|
|
370
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails,
|
|
371
|
-
Telnyx::Internal::AnyHash
|
|
372
|
-
)
|
|
373
|
-
end
|
|
374
|
-
|
|
375
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
376
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
377
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
378
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
379
|
-
sig { returns(T.nilable(Integer)) }
|
|
380
|
-
attr_reader :attenuation_limit
|
|
381
|
-
|
|
382
|
-
sig { params(attenuation_limit: Integer).void }
|
|
383
|
-
attr_writer :attenuation_limit
|
|
384
|
-
|
|
385
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
386
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
387
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
388
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
389
|
-
# noise suppression capabilities.
|
|
390
|
-
sig do
|
|
391
|
-
returns(
|
|
392
|
-
T.nilable(
|
|
393
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
394
|
-
)
|
|
395
|
-
)
|
|
396
|
-
end
|
|
397
|
-
attr_reader :engine
|
|
398
|
-
|
|
399
|
-
sig do
|
|
400
|
-
params(
|
|
401
|
-
engine:
|
|
402
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
403
|
-
).void
|
|
404
|
-
end
|
|
405
|
-
attr_writer :engine
|
|
406
|
-
|
|
407
|
-
# Configuration options for noise suppression. These settings are stored
|
|
408
|
-
# regardless of the noise_suppression value, but only take effect when
|
|
409
|
-
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
410
|
-
# re-enable it, the previously configured settings will be used.
|
|
411
|
-
sig do
|
|
412
|
-
params(
|
|
413
|
-
attenuation_limit: Integer,
|
|
414
|
-
engine:
|
|
415
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
416
|
-
).returns(T.attached_class)
|
|
417
|
-
end
|
|
418
|
-
def self.new(
|
|
419
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
420
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
421
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
422
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
423
|
-
attenuation_limit: nil,
|
|
424
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
425
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
426
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
427
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
428
|
-
# noise suppression capabilities.
|
|
429
|
-
engine: nil
|
|
430
|
-
)
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
sig do
|
|
434
|
-
override.returns(
|
|
435
|
-
{
|
|
436
|
-
attenuation_limit: Integer,
|
|
437
|
-
engine:
|
|
438
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
439
|
-
}
|
|
440
|
-
)
|
|
441
|
-
end
|
|
442
|
-
def to_hash
|
|
443
|
-
end
|
|
444
|
-
|
|
445
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
446
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
447
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
448
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
449
|
-
# noise suppression capabilities.
|
|
450
|
-
module Engine
|
|
451
|
-
extend Telnyx::Internal::Type::Enum
|
|
452
|
-
|
|
453
|
-
TaggedSymbol =
|
|
454
|
-
T.type_alias do
|
|
455
|
-
T.all(
|
|
456
|
-
Symbol,
|
|
457
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine
|
|
458
|
-
)
|
|
459
|
-
end
|
|
460
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
461
|
-
|
|
462
|
-
DENOISER =
|
|
463
|
-
T.let(
|
|
464
|
-
:denoiser,
|
|
465
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
466
|
-
)
|
|
467
|
-
DEEP_FILTER_NET =
|
|
468
|
-
T.let(
|
|
469
|
-
:deep_filter_net,
|
|
470
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
471
|
-
)
|
|
472
|
-
DEEP_FILTER_NET_LARGE =
|
|
473
|
-
T.let(
|
|
474
|
-
:deep_filter_net_large,
|
|
475
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
476
|
-
)
|
|
477
|
-
KRISP_VIVA_TEL =
|
|
478
|
-
T.let(
|
|
479
|
-
:krisp_viva_tel,
|
|
480
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
481
|
-
)
|
|
482
|
-
KRISP_VIVA_TEL_LITE =
|
|
483
|
-
T.let(
|
|
484
|
-
:krisp_viva_tel_lite,
|
|
485
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
486
|
-
)
|
|
487
|
-
KRISP_VIVA_PROMODEL =
|
|
488
|
-
T.let(
|
|
489
|
-
:krisp_viva_promodel,
|
|
490
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
491
|
-
)
|
|
492
|
-
KRISP_VIVA_SS =
|
|
493
|
-
T.let(
|
|
494
|
-
:krisp_viva_ss,
|
|
495
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
496
|
-
)
|
|
497
|
-
|
|
498
|
-
sig do
|
|
499
|
-
override.returns(
|
|
500
|
-
T::Array[
|
|
501
|
-
Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
502
|
-
]
|
|
503
|
-
)
|
|
504
|
-
end
|
|
505
|
-
def self.values
|
|
506
|
-
end
|
|
507
|
-
end
|
|
508
|
-
end
|
|
509
361
|
end
|
|
510
362
|
end
|
|
511
363
|
end
|
|
@@ -107,13 +107,13 @@ module Telnyx
|
|
|
107
107
|
# regardless of the noise_suppression value, but only take effect when
|
|
108
108
|
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
109
109
|
# re-enable it, the previously configured settings will be used.
|
|
110
|
-
sig { returns(T.nilable(Telnyx::
|
|
110
|
+
sig { returns(T.nilable(Telnyx::ConnectionNoiseSuppressionDetails)) }
|
|
111
111
|
attr_reader :noise_suppression_details
|
|
112
112
|
|
|
113
113
|
sig do
|
|
114
114
|
params(
|
|
115
115
|
noise_suppression_details:
|
|
116
|
-
Telnyx::
|
|
116
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash
|
|
117
117
|
).void
|
|
118
118
|
end
|
|
119
119
|
attr_writer :noise_suppression_details
|
|
@@ -223,7 +223,7 @@ module Telnyx
|
|
|
223
223
|
inbound: Telnyx::InboundIP::OrHash,
|
|
224
224
|
noise_suppression: Telnyx::IPConnection::NoiseSuppression::OrSymbol,
|
|
225
225
|
noise_suppression_details:
|
|
226
|
-
Telnyx::
|
|
226
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
227
227
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
228
228
|
outbound: Telnyx::OutboundIP::OrHash,
|
|
229
229
|
record_type: String,
|
|
@@ -321,7 +321,7 @@ module Telnyx
|
|
|
321
321
|
noise_suppression:
|
|
322
322
|
Telnyx::IPConnection::NoiseSuppression::TaggedSymbol,
|
|
323
323
|
noise_suppression_details:
|
|
324
|
-
Telnyx::
|
|
324
|
+
Telnyx::ConnectionNoiseSuppressionDetails,
|
|
325
325
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
326
326
|
outbound: Telnyx::OutboundIP,
|
|
327
327
|
record_type: String,
|
|
@@ -370,150 +370,6 @@ module Telnyx
|
|
|
370
370
|
end
|
|
371
371
|
end
|
|
372
372
|
|
|
373
|
-
class NoiseSuppressionDetails < Telnyx::Internal::Type::BaseModel
|
|
374
|
-
OrHash =
|
|
375
|
-
T.type_alias do
|
|
376
|
-
T.any(
|
|
377
|
-
Telnyx::IPConnection::NoiseSuppressionDetails,
|
|
378
|
-
Telnyx::Internal::AnyHash
|
|
379
|
-
)
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
383
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
384
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
385
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
386
|
-
sig { returns(T.nilable(Integer)) }
|
|
387
|
-
attr_reader :attenuation_limit
|
|
388
|
-
|
|
389
|
-
sig { params(attenuation_limit: Integer).void }
|
|
390
|
-
attr_writer :attenuation_limit
|
|
391
|
-
|
|
392
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
393
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
394
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
395
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
396
|
-
# noise suppression capabilities.
|
|
397
|
-
sig do
|
|
398
|
-
returns(
|
|
399
|
-
T.nilable(
|
|
400
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
401
|
-
)
|
|
402
|
-
)
|
|
403
|
-
end
|
|
404
|
-
attr_reader :engine
|
|
405
|
-
|
|
406
|
-
sig do
|
|
407
|
-
params(
|
|
408
|
-
engine:
|
|
409
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::OrSymbol
|
|
410
|
-
).void
|
|
411
|
-
end
|
|
412
|
-
attr_writer :engine
|
|
413
|
-
|
|
414
|
-
# Configuration options for noise suppression. These settings are stored
|
|
415
|
-
# regardless of the noise_suppression value, but only take effect when
|
|
416
|
-
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
417
|
-
# re-enable it, the previously configured settings will be used.
|
|
418
|
-
sig do
|
|
419
|
-
params(
|
|
420
|
-
attenuation_limit: Integer,
|
|
421
|
-
engine:
|
|
422
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::OrSymbol
|
|
423
|
-
).returns(T.attached_class)
|
|
424
|
-
end
|
|
425
|
-
def self.new(
|
|
426
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
427
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
428
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
429
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
430
|
-
attenuation_limit: nil,
|
|
431
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
432
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
433
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
434
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
435
|
-
# noise suppression capabilities.
|
|
436
|
-
engine: nil
|
|
437
|
-
)
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
sig do
|
|
441
|
-
override.returns(
|
|
442
|
-
{
|
|
443
|
-
attenuation_limit: Integer,
|
|
444
|
-
engine:
|
|
445
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
446
|
-
}
|
|
447
|
-
)
|
|
448
|
-
end
|
|
449
|
-
def to_hash
|
|
450
|
-
end
|
|
451
|
-
|
|
452
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
453
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
454
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
455
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
456
|
-
# noise suppression capabilities.
|
|
457
|
-
module Engine
|
|
458
|
-
extend Telnyx::Internal::Type::Enum
|
|
459
|
-
|
|
460
|
-
TaggedSymbol =
|
|
461
|
-
T.type_alias do
|
|
462
|
-
T.all(
|
|
463
|
-
Symbol,
|
|
464
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine
|
|
465
|
-
)
|
|
466
|
-
end
|
|
467
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
468
|
-
|
|
469
|
-
DENOISER =
|
|
470
|
-
T.let(
|
|
471
|
-
:denoiser,
|
|
472
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
473
|
-
)
|
|
474
|
-
DEEP_FILTER_NET =
|
|
475
|
-
T.let(
|
|
476
|
-
:deep_filter_net,
|
|
477
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
478
|
-
)
|
|
479
|
-
DEEP_FILTER_NET_LARGE =
|
|
480
|
-
T.let(
|
|
481
|
-
:deep_filter_net_large,
|
|
482
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
483
|
-
)
|
|
484
|
-
KRISP_VIVA_TEL =
|
|
485
|
-
T.let(
|
|
486
|
-
:krisp_viva_tel,
|
|
487
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
488
|
-
)
|
|
489
|
-
KRISP_VIVA_TEL_LITE =
|
|
490
|
-
T.let(
|
|
491
|
-
:krisp_viva_tel_lite,
|
|
492
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
493
|
-
)
|
|
494
|
-
KRISP_VIVA_PROMODEL =
|
|
495
|
-
T.let(
|
|
496
|
-
:krisp_viva_promodel,
|
|
497
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
498
|
-
)
|
|
499
|
-
KRISP_VIVA_SS =
|
|
500
|
-
T.let(
|
|
501
|
-
:krisp_viva_ss,
|
|
502
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
503
|
-
)
|
|
504
|
-
|
|
505
|
-
sig do
|
|
506
|
-
override.returns(
|
|
507
|
-
T::Array[
|
|
508
|
-
Telnyx::IPConnection::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
509
|
-
]
|
|
510
|
-
)
|
|
511
|
-
end
|
|
512
|
-
def self.values
|
|
513
|
-
end
|
|
514
|
-
end
|
|
515
|
-
end
|
|
516
|
-
|
|
517
373
|
# One of UDP, TLS, or TCP. Applies only to connections with IP authentication or
|
|
518
374
|
# FQDN authentication.
|
|
519
375
|
module TransportProtocol
|
|
@@ -113,17 +113,13 @@ module Telnyx
|
|
|
113
113
|
# regardless of the noise_suppression value, but only take effect when
|
|
114
114
|
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
115
115
|
# re-enable it, the previously configured settings will be used.
|
|
116
|
-
sig
|
|
117
|
-
returns(
|
|
118
|
-
T.nilable(Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails)
|
|
119
|
-
)
|
|
120
|
-
end
|
|
116
|
+
sig { returns(T.nilable(Telnyx::ConnectionNoiseSuppressionDetails)) }
|
|
121
117
|
attr_reader :noise_suppression_details
|
|
122
118
|
|
|
123
119
|
sig do
|
|
124
120
|
params(
|
|
125
121
|
noise_suppression_details:
|
|
126
|
-
Telnyx::
|
|
122
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash
|
|
127
123
|
).void
|
|
128
124
|
end
|
|
129
125
|
attr_writer :noise_suppression_details
|
|
@@ -226,7 +222,7 @@ module Telnyx
|
|
|
226
222
|
noise_suppression:
|
|
227
223
|
Telnyx::IPConnectionCreateParams::NoiseSuppression::OrSymbol,
|
|
228
224
|
noise_suppression_details:
|
|
229
|
-
Telnyx::
|
|
225
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
230
226
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
231
227
|
outbound: Telnyx::OutboundIP::OrHash,
|
|
232
228
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -321,7 +317,7 @@ module Telnyx
|
|
|
321
317
|
noise_suppression:
|
|
322
318
|
Telnyx::IPConnectionCreateParams::NoiseSuppression::OrSymbol,
|
|
323
319
|
noise_suppression_details:
|
|
324
|
-
Telnyx::
|
|
320
|
+
Telnyx::ConnectionNoiseSuppressionDetails,
|
|
325
321
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
326
322
|
outbound: Telnyx::OutboundIP,
|
|
327
323
|
rtcp_settings: Telnyx::ConnectionRtcpSettings,
|
|
@@ -881,150 +877,6 @@ module Telnyx
|
|
|
881
877
|
end
|
|
882
878
|
end
|
|
883
879
|
|
|
884
|
-
class NoiseSuppressionDetails < Telnyx::Internal::Type::BaseModel
|
|
885
|
-
OrHash =
|
|
886
|
-
T.type_alias do
|
|
887
|
-
T.any(
|
|
888
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails,
|
|
889
|
-
Telnyx::Internal::AnyHash
|
|
890
|
-
)
|
|
891
|
-
end
|
|
892
|
-
|
|
893
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
894
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
895
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
896
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
897
|
-
sig { returns(T.nilable(Integer)) }
|
|
898
|
-
attr_reader :attenuation_limit
|
|
899
|
-
|
|
900
|
-
sig { params(attenuation_limit: Integer).void }
|
|
901
|
-
attr_writer :attenuation_limit
|
|
902
|
-
|
|
903
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
904
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
905
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
906
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
907
|
-
# noise suppression capabilities.
|
|
908
|
-
sig do
|
|
909
|
-
returns(
|
|
910
|
-
T.nilable(
|
|
911
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
912
|
-
)
|
|
913
|
-
)
|
|
914
|
-
end
|
|
915
|
-
attr_reader :engine
|
|
916
|
-
|
|
917
|
-
sig do
|
|
918
|
-
params(
|
|
919
|
-
engine:
|
|
920
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
921
|
-
).void
|
|
922
|
-
end
|
|
923
|
-
attr_writer :engine
|
|
924
|
-
|
|
925
|
-
# Configuration options for noise suppression. These settings are stored
|
|
926
|
-
# regardless of the noise_suppression value, but only take effect when
|
|
927
|
-
# noise_suppression is not 'disabled'. If you disable noise suppression and later
|
|
928
|
-
# re-enable it, the previously configured settings will be used.
|
|
929
|
-
sig do
|
|
930
|
-
params(
|
|
931
|
-
attenuation_limit: Integer,
|
|
932
|
-
engine:
|
|
933
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
934
|
-
).returns(T.attached_class)
|
|
935
|
-
end
|
|
936
|
-
def self.new(
|
|
937
|
-
# The attenuation limit value for the selected engine. Default values vary by
|
|
938
|
-
# engine: 0 for 'denoiser', 80 for 'deep_filter_net', 'deep_filter_net_large', and
|
|
939
|
-
# all Krisp engines ('krisp_viva_tel', 'krisp_viva_tel_lite',
|
|
940
|
-
# 'krisp_viva_promodel', 'krisp_viva_ss').
|
|
941
|
-
attenuation_limit: nil,
|
|
942
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
943
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
944
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
945
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
946
|
-
# noise suppression capabilities.
|
|
947
|
-
engine: nil
|
|
948
|
-
)
|
|
949
|
-
end
|
|
950
|
-
|
|
951
|
-
sig do
|
|
952
|
-
override.returns(
|
|
953
|
-
{
|
|
954
|
-
attenuation_limit: Integer,
|
|
955
|
-
engine:
|
|
956
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::OrSymbol
|
|
957
|
-
}
|
|
958
|
-
)
|
|
959
|
-
end
|
|
960
|
-
def to_hash
|
|
961
|
-
end
|
|
962
|
-
|
|
963
|
-
# The noise suppression engine to use. 'denoiser' is the default engine.
|
|
964
|
-
# 'deep_filter_net' and 'deep_filter_net_large' are alternative engines with
|
|
965
|
-
# different performance characteristics. Krisp engines ('krisp_viva_tel',
|
|
966
|
-
# 'krisp_viva_tel_lite', 'krisp_viva_promodel', 'krisp_viva_ss') provide advanced
|
|
967
|
-
# noise suppression capabilities.
|
|
968
|
-
module Engine
|
|
969
|
-
extend Telnyx::Internal::Type::Enum
|
|
970
|
-
|
|
971
|
-
TaggedSymbol =
|
|
972
|
-
T.type_alias do
|
|
973
|
-
T.all(
|
|
974
|
-
Symbol,
|
|
975
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine
|
|
976
|
-
)
|
|
977
|
-
end
|
|
978
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
979
|
-
|
|
980
|
-
DENOISER =
|
|
981
|
-
T.let(
|
|
982
|
-
:denoiser,
|
|
983
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
984
|
-
)
|
|
985
|
-
DEEP_FILTER_NET =
|
|
986
|
-
T.let(
|
|
987
|
-
:deep_filter_net,
|
|
988
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
989
|
-
)
|
|
990
|
-
DEEP_FILTER_NET_LARGE =
|
|
991
|
-
T.let(
|
|
992
|
-
:deep_filter_net_large,
|
|
993
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
994
|
-
)
|
|
995
|
-
KRISP_VIVA_TEL =
|
|
996
|
-
T.let(
|
|
997
|
-
:krisp_viva_tel,
|
|
998
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
999
|
-
)
|
|
1000
|
-
KRISP_VIVA_TEL_LITE =
|
|
1001
|
-
T.let(
|
|
1002
|
-
:krisp_viva_tel_lite,
|
|
1003
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
1004
|
-
)
|
|
1005
|
-
KRISP_VIVA_PROMODEL =
|
|
1006
|
-
T.let(
|
|
1007
|
-
:krisp_viva_promodel,
|
|
1008
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
1009
|
-
)
|
|
1010
|
-
KRISP_VIVA_SS =
|
|
1011
|
-
T.let(
|
|
1012
|
-
:krisp_viva_ss,
|
|
1013
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
1014
|
-
)
|
|
1015
|
-
|
|
1016
|
-
sig do
|
|
1017
|
-
override.returns(
|
|
1018
|
-
T::Array[
|
|
1019
|
-
Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::Engine::TaggedSymbol
|
|
1020
|
-
]
|
|
1021
|
-
)
|
|
1022
|
-
end
|
|
1023
|
-
def self.values
|
|
1024
|
-
end
|
|
1025
|
-
end
|
|
1026
|
-
end
|
|
1027
|
-
|
|
1028
880
|
# One of UDP, TLS, or TCP. Applies only to connections with IP authentication or
|
|
1029
881
|
# FQDN authentication.
|
|
1030
882
|
module TransportProtocol
|