telnyx 5.86.0 → 5.87.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58f14afb44760134bc518d5f2fd19404bd2a28c981ba0f7b81ddf51c547c41ac
4
- data.tar.gz: ba86eec94a309b3a7d4e1427da30e77a4b6ecec181618ea26d4d5d948f07a89e
3
+ metadata.gz: ffcd66b079e3b1f383cf0129abf12b67c82ce21c68c0c18fb655abce95ef4361
4
+ data.tar.gz: 0d06a0b499a3bb279bec8a233cb5057be066bd5da0c9213bc16178711b98b981
5
5
  SHA512:
6
- metadata.gz: 7553900c258c350fd8c90bcfd8466293bd66b3897ee236ece1ae92f94b71ae64fe1e4c5ee5996c45377fa57334f5c071b775ea7c5b750cc88524d1fc8906e359
7
- data.tar.gz: f4e3e68cea49f93617ac8f50c3a3110a4da031a72dcc0b1ff7c4008072920695d18ee9f82185138fec0afe12cee8123c1821bda9bf842cafef443eebcb28ca87
6
+ metadata.gz: 1eaf982495df8c429c4a9f6feb93565e8167e68d068fbc93c1cf7502944607c361a4266c4330e73832d99accc580f274ca6b0ca3891986653ade9de540c54f55
7
+ data.tar.gz: f2877aeee3f1283b58dbb572f23eef9f1bd99b17a995648cde69c0780eebe6e077644bb71d9d4c366bf749ea5d013cc6f6a0623d2f76aa995da2d041a3b15793
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.87.0 (2026-04-28)
4
+
5
+ Full Changelog: [v5.86.0...v5.87.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.86.0...v5.87.0)
6
+
7
+ ### Features
8
+
9
+ * TELAPPS-5725: Add deepfake detection params to call-scripting API docs ([f2d8e6c](https://github.com/team-telnyx/telnyx-ruby/commit/f2d8e6cff7100ae63512bb6d26f354d680fcc428))
10
+
3
11
  ## 5.86.0 (2026-04-28)
4
12
 
5
13
  Full Changelog: [v5.85.0...v5.86.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.85.0...v5.86.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.86.0"
27
+ gem "telnyx", "~> 5.87.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -107,6 +107,35 @@ module Telnyx
107
107
  },
108
108
  api_name: :CustomHeaders
109
109
 
110
+ # @!attribute deepfake_detection
111
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
112
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
113
+ # are delivered asynchronously via a callback.
114
+ #
115
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection, nil]
116
+ optional :deepfake_detection,
117
+ enum: -> {
118
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection
119
+ },
120
+ api_name: :DeepfakeDetection
121
+
122
+ # @!attribute deepfake_detection_callback_method
123
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
124
+ #
125
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod, nil]
126
+ optional :deepfake_detection_callback_method,
127
+ enum: -> {
128
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod
129
+ },
130
+ api_name: :DeepfakeDetectionCallbackMethod
131
+
132
+ # @!attribute deepfake_detection_callback_url
133
+ # URL destination for Telnyx to send deepfake detection callback events to for the
134
+ # call.
135
+ #
136
+ # @return [String, nil]
137
+ optional :deepfake_detection_callback_url, String, api_name: :DeepfakeDetectionCallbackUrl
138
+
110
139
  # @!attribute detection_mode
111
140
  # Allows you to chose between Premium and Standard detections.
112
141
  #
@@ -364,7 +393,7 @@ module Telnyx
364
393
  enum: -> { Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::URLMethod },
365
394
  api_name: :UrlMethod
366
395
 
367
- # @!method initialize(url:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url_method: nil)
396
+ # @!method initialize(url:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url_method: nil)
368
397
  # Some parameter documentations has been truncated, see
369
398
  # {Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL} for more
370
399
  # details.
@@ -387,6 +416,12 @@ module Telnyx
387
416
  #
388
417
  # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
389
418
  #
419
+ # @param deepfake_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection] Enables Deepfake Detection on the dialed call. When enabled, audio from the remo
420
+ #
421
+ # @param deepfake_detection_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod] HTTP request type used for `DeepfakeDetectionCallbackUrl`.
422
+ #
423
+ # @param deepfake_detection_callback_url [String] URL destination for Telnyx to send deepfake detection callback events to for the
424
+ #
390
425
  # @param detection_mode [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::DetectionMode] Allows you to chose between Premium and Standard detections.
391
426
  #
392
427
  # @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -484,6 +519,33 @@ module Telnyx
484
519
  # @param value [String] The value of the custom header
485
520
  end
486
521
 
522
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
523
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
524
+ # are delivered asynchronously via a callback.
525
+ #
526
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL#deepfake_detection
527
+ module DeepfakeDetection
528
+ extend Telnyx::Internal::Type::Enum
529
+
530
+ ENABLE = :Enable
531
+
532
+ # @!method self.values
533
+ # @return [Array<Symbol>]
534
+ end
535
+
536
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
537
+ #
538
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL#deepfake_detection_callback_method
539
+ module DeepfakeDetectionCallbackMethod
540
+ extend Telnyx::Internal::Type::Enum
541
+
542
+ GET = :GET
543
+ POST = :POST
544
+
545
+ # @!method self.values
546
+ # @return [Array<Symbol>]
547
+ end
548
+
487
549
  # Allows you to chose between Premium and Standard detections.
488
550
  #
489
551
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL#detection_mode
@@ -733,6 +795,35 @@ module Telnyx
733
795
  },
734
796
  api_name: :CustomHeaders
735
797
 
798
+ # @!attribute deepfake_detection
799
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
800
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
801
+ # are delivered asynchronously via a callback.
802
+ #
803
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection, nil]
804
+ optional :deepfake_detection,
805
+ enum: -> {
806
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection
807
+ },
808
+ api_name: :DeepfakeDetection
809
+
810
+ # @!attribute deepfake_detection_callback_method
811
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
812
+ #
813
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod, nil]
814
+ optional :deepfake_detection_callback_method,
815
+ enum: -> {
816
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod
817
+ },
818
+ api_name: :DeepfakeDetectionCallbackMethod
819
+
820
+ # @!attribute deepfake_detection_callback_url
821
+ # URL destination for Telnyx to send deepfake detection callback events to for the
822
+ # call.
823
+ #
824
+ # @return [String, nil]
825
+ optional :deepfake_detection_callback_url, String, api_name: :DeepfakeDetectionCallbackUrl
826
+
736
827
  # @!attribute detection_mode
737
828
  # Allows you to chose between Premium and Standard detections.
738
829
  #
@@ -994,7 +1085,7 @@ module Telnyx
994
1085
  enum: -> { Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::URLMethod },
995
1086
  api_name: :UrlMethod
996
1087
 
997
- # @!method initialize(texml:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
1088
+ # @!method initialize(texml:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
998
1089
  # Some parameter documentations has been truncated, see
999
1090
  # {Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml} for more
1000
1091
  # details.
@@ -1017,6 +1108,12 @@ module Telnyx
1017
1108
  #
1018
1109
  # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
1019
1110
  #
1111
+ # @param deepfake_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection] Enables Deepfake Detection on the dialed call. When enabled, audio from the remo
1112
+ #
1113
+ # @param deepfake_detection_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod] HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1114
+ #
1115
+ # @param deepfake_detection_callback_url [String] URL destination for Telnyx to send deepfake detection callback events to for the
1116
+ #
1020
1117
  # @param detection_mode [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::DetectionMode] Allows you to chose between Premium and Standard detections.
1021
1118
  #
1022
1119
  # @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -1114,6 +1211,33 @@ module Telnyx
1114
1211
  # @param value [String] The value of the custom header
1115
1212
  end
1116
1213
 
1214
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
1215
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
1216
+ # are delivered asynchronously via a callback.
1217
+ #
1218
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml#deepfake_detection
1219
+ module DeepfakeDetection
1220
+ extend Telnyx::Internal::Type::Enum
1221
+
1222
+ ENABLE = :Enable
1223
+
1224
+ # @!method self.values
1225
+ # @return [Array<Symbol>]
1226
+ end
1227
+
1228
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1229
+ #
1230
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml#deepfake_detection_callback_method
1231
+ module DeepfakeDetectionCallbackMethod
1232
+ extend Telnyx::Internal::Type::Enum
1233
+
1234
+ GET = :GET
1235
+ POST = :POST
1236
+
1237
+ # @!method self.values
1238
+ # @return [Array<Symbol>]
1239
+ end
1240
+
1117
1241
  # Allows you to chose between Premium and Standard detections.
1118
1242
  #
1119
1243
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml#detection_mode
@@ -1356,6 +1480,35 @@ module Telnyx
1356
1480
  },
1357
1481
  api_name: :CustomHeaders
1358
1482
 
1483
+ # @!attribute deepfake_detection
1484
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
1485
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
1486
+ # are delivered asynchronously via a callback.
1487
+ #
1488
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection, nil]
1489
+ optional :deepfake_detection,
1490
+ enum: -> {
1491
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection
1492
+ },
1493
+ api_name: :DeepfakeDetection
1494
+
1495
+ # @!attribute deepfake_detection_callback_method
1496
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1497
+ #
1498
+ # @return [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod, nil]
1499
+ optional :deepfake_detection_callback_method,
1500
+ enum: -> {
1501
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod
1502
+ },
1503
+ api_name: :DeepfakeDetectionCallbackMethod
1504
+
1505
+ # @!attribute deepfake_detection_callback_url
1506
+ # URL destination for Telnyx to send deepfake detection callback events to for the
1507
+ # call.
1508
+ #
1509
+ # @return [String, nil]
1510
+ optional :deepfake_detection_callback_url, String, api_name: :DeepfakeDetectionCallbackUrl
1511
+
1359
1512
  # @!attribute detection_mode
1360
1513
  # Allows you to chose between Premium and Standard detections.
1361
1514
  #
@@ -1628,7 +1781,7 @@ module Telnyx
1628
1781
  },
1629
1782
  api_name: :UrlMethod
1630
1783
 
1631
- # @!method initialize(application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
1784
+ # @!method initialize(application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
1632
1785
  # Some parameter documentations has been truncated, see
1633
1786
  # {Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault}
1634
1787
  # for more details.
@@ -1649,6 +1802,12 @@ module Telnyx
1649
1802
  #
1650
1803
  # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
1651
1804
  #
1805
+ # @param deepfake_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection] Enables Deepfake Detection on the dialed call. When enabled, audio from the remo
1806
+ #
1807
+ # @param deepfake_detection_callback_method [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod] HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1808
+ #
1809
+ # @param deepfake_detection_callback_url [String] URL destination for Telnyx to send deepfake detection callback events to for the
1810
+ #
1652
1811
  # @param detection_mode [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DetectionMode] Allows you to chose between Premium and Standard detections.
1653
1812
  #
1654
1813
  # @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -1748,6 +1907,33 @@ module Telnyx
1748
1907
  # @param value [String] The value of the custom header
1749
1908
  end
1750
1909
 
1910
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
1911
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
1912
+ # are delivered asynchronously via a callback.
1913
+ #
1914
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault#deepfake_detection
1915
+ module DeepfakeDetection
1916
+ extend Telnyx::Internal::Type::Enum
1917
+
1918
+ ENABLE = :Enable
1919
+
1920
+ # @!method self.values
1921
+ # @return [Array<Symbol>]
1922
+ end
1923
+
1924
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1925
+ #
1926
+ # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault#deepfake_detection_callback_method
1927
+ module DeepfakeDetectionCallbackMethod
1928
+ extend Telnyx::Internal::Type::Enum
1929
+
1930
+ GET = :GET
1931
+ POST = :POST
1932
+
1933
+ # @!method self.values
1934
+ # @return [Array<Symbol>]
1935
+ end
1936
+
1751
1937
  # Allows you to chose between Premium and Standard detections.
1752
1938
  #
1753
1939
  # @see Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault#detection_mode
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.86.0"
4
+ VERSION = "5.87.0"
5
5
  end
@@ -180,6 +180,52 @@ module Telnyx
180
180
  end
181
181
  attr_writer :custom_headers
182
182
 
183
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
184
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
185
+ # are delivered asynchronously via a callback.
186
+ sig do
187
+ returns(
188
+ T.nilable(
189
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::OrSymbol
190
+ )
191
+ )
192
+ end
193
+ attr_reader :deepfake_detection
194
+
195
+ sig do
196
+ params(
197
+ deepfake_detection:
198
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::OrSymbol
199
+ ).void
200
+ end
201
+ attr_writer :deepfake_detection
202
+
203
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
204
+ sig do
205
+ returns(
206
+ T.nilable(
207
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::OrSymbol
208
+ )
209
+ )
210
+ end
211
+ attr_reader :deepfake_detection_callback_method
212
+
213
+ sig do
214
+ params(
215
+ deepfake_detection_callback_method:
216
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::OrSymbol
217
+ ).void
218
+ end
219
+ attr_writer :deepfake_detection_callback_method
220
+
221
+ # URL destination for Telnyx to send deepfake detection callback events to for the
222
+ # call.
223
+ sig { returns(T.nilable(String)) }
224
+ attr_reader :deepfake_detection_callback_url
225
+
226
+ sig { params(deepfake_detection_callback_url: String).void }
227
+ attr_writer :deepfake_detection_callback_url
228
+
183
229
  # Allows you to chose between Premium and Standard detections.
184
230
  sig do
185
231
  returns(
@@ -573,6 +619,11 @@ module Telnyx
573
619
  T::Array[
574
620
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader::OrHash
575
621
  ],
622
+ deepfake_detection:
623
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::OrSymbol,
624
+ deepfake_detection_callback_method:
625
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::OrSymbol,
626
+ deepfake_detection_callback_url: String,
576
627
  detection_mode:
577
628
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DetectionMode::OrSymbol,
578
629
  fallback_url: String,
@@ -645,6 +696,15 @@ module Telnyx
645
696
  # Custom HTTP headers to be sent with the call. Each header should be an object
646
697
  # with 'name' and 'value' properties.
647
698
  custom_headers: nil,
699
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
700
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
701
+ # are delivered asynchronously via a callback.
702
+ deepfake_detection: nil,
703
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
704
+ deepfake_detection_callback_method: nil,
705
+ # URL destination for Telnyx to send deepfake detection callback events to for the
706
+ # call.
707
+ deepfake_detection_callback_url: nil,
648
708
  # Allows you to chose between Premium and Standard detections.
649
709
  detection_mode: nil,
650
710
  # A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -751,6 +811,11 @@ module Telnyx
751
811
  T::Array[
752
812
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader
753
813
  ],
814
+ deepfake_detection:
815
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::OrSymbol,
816
+ deepfake_detection_callback_method:
817
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::OrSymbol,
818
+ deepfake_detection_callback_url: String,
754
819
  detection_mode:
755
820
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DetectionMode::OrSymbol,
756
821
  fallback_url: String,
@@ -870,6 +935,73 @@ module Telnyx
870
935
  end
871
936
  end
872
937
 
938
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
939
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
940
+ # are delivered asynchronously via a callback.
941
+ module DeepfakeDetection
942
+ extend Telnyx::Internal::Type::Enum
943
+
944
+ TaggedSymbol =
945
+ T.type_alias do
946
+ T.all(
947
+ Symbol,
948
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection
949
+ )
950
+ end
951
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
952
+
953
+ ENABLE =
954
+ T.let(
955
+ :Enable,
956
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::TaggedSymbol
957
+ )
958
+
959
+ sig do
960
+ override.returns(
961
+ T::Array[
962
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetection::TaggedSymbol
963
+ ]
964
+ )
965
+ end
966
+ def self.values
967
+ end
968
+ end
969
+
970
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
971
+ module DeepfakeDetectionCallbackMethod
972
+ extend Telnyx::Internal::Type::Enum
973
+
974
+ TaggedSymbol =
975
+ T.type_alias do
976
+ T.all(
977
+ Symbol,
978
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod
979
+ )
980
+ end
981
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
982
+
983
+ GET =
984
+ T.let(
985
+ :GET,
986
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::TaggedSymbol
987
+ )
988
+ POST =
989
+ T.let(
990
+ :POST,
991
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::TaggedSymbol
992
+ )
993
+
994
+ sig do
995
+ override.returns(
996
+ T::Array[
997
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::DeepfakeDetectionCallbackMethod::TaggedSymbol
998
+ ]
999
+ )
1000
+ end
1001
+ def self.values
1002
+ end
1003
+ end
1004
+
873
1005
  # Allows you to chose between Premium and Standard detections.
874
1006
  module DetectionMode
875
1007
  extend Telnyx::Internal::Type::Enum
@@ -1451,6 +1583,52 @@ module Telnyx
1451
1583
  end
1452
1584
  attr_writer :custom_headers
1453
1585
 
1586
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
1587
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
1588
+ # are delivered asynchronously via a callback.
1589
+ sig do
1590
+ returns(
1591
+ T.nilable(
1592
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::OrSymbol
1593
+ )
1594
+ )
1595
+ end
1596
+ attr_reader :deepfake_detection
1597
+
1598
+ sig do
1599
+ params(
1600
+ deepfake_detection:
1601
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::OrSymbol
1602
+ ).void
1603
+ end
1604
+ attr_writer :deepfake_detection
1605
+
1606
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
1607
+ sig do
1608
+ returns(
1609
+ T.nilable(
1610
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::OrSymbol
1611
+ )
1612
+ )
1613
+ end
1614
+ attr_reader :deepfake_detection_callback_method
1615
+
1616
+ sig do
1617
+ params(
1618
+ deepfake_detection_callback_method:
1619
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::OrSymbol
1620
+ ).void
1621
+ end
1622
+ attr_writer :deepfake_detection_callback_method
1623
+
1624
+ # URL destination for Telnyx to send deepfake detection callback events to for the
1625
+ # call.
1626
+ sig { returns(T.nilable(String)) }
1627
+ attr_reader :deepfake_detection_callback_url
1628
+
1629
+ sig { params(deepfake_detection_callback_url: String).void }
1630
+ attr_writer :deepfake_detection_callback_url
1631
+
1454
1632
  # Allows you to chose between Premium and Standard detections.
1455
1633
  sig do
1456
1634
  returns(
@@ -1844,6 +2022,11 @@ module Telnyx
1844
2022
  T::Array[
1845
2023
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader::OrHash
1846
2024
  ],
2025
+ deepfake_detection:
2026
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::OrSymbol,
2027
+ deepfake_detection_callback_method:
2028
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::OrSymbol,
2029
+ deepfake_detection_callback_url: String,
1847
2030
  detection_mode:
1848
2031
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DetectionMode::OrSymbol,
1849
2032
  fallback_url: String,
@@ -1917,6 +2100,15 @@ module Telnyx
1917
2100
  # Custom HTTP headers to be sent with the call. Each header should be an object
1918
2101
  # with 'name' and 'value' properties.
1919
2102
  custom_headers: nil,
2103
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
2104
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
2105
+ # are delivered asynchronously via a callback.
2106
+ deepfake_detection: nil,
2107
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
2108
+ deepfake_detection_callback_method: nil,
2109
+ # URL destination for Telnyx to send deepfake detection callback events to for the
2110
+ # call.
2111
+ deepfake_detection_callback_url: nil,
1920
2112
  # Allows you to chose between Premium and Standard detections.
1921
2113
  detection_mode: nil,
1922
2114
  # A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -2023,6 +2215,11 @@ module Telnyx
2023
2215
  T::Array[
2024
2216
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader
2025
2217
  ],
2218
+ deepfake_detection:
2219
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::OrSymbol,
2220
+ deepfake_detection_callback_method:
2221
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::OrSymbol,
2222
+ deepfake_detection_callback_url: String,
2026
2223
  detection_mode:
2027
2224
  Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DetectionMode::OrSymbol,
2028
2225
  fallback_url: String,
@@ -2142,6 +2339,73 @@ module Telnyx
2142
2339
  end
2143
2340
  end
2144
2341
 
2342
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
2343
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
2344
+ # are delivered asynchronously via a callback.
2345
+ module DeepfakeDetection
2346
+ extend Telnyx::Internal::Type::Enum
2347
+
2348
+ TaggedSymbol =
2349
+ T.type_alias do
2350
+ T.all(
2351
+ Symbol,
2352
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection
2353
+ )
2354
+ end
2355
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2356
+
2357
+ ENABLE =
2358
+ T.let(
2359
+ :Enable,
2360
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::TaggedSymbol
2361
+ )
2362
+
2363
+ sig do
2364
+ override.returns(
2365
+ T::Array[
2366
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetection::TaggedSymbol
2367
+ ]
2368
+ )
2369
+ end
2370
+ def self.values
2371
+ end
2372
+ end
2373
+
2374
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
2375
+ module DeepfakeDetectionCallbackMethod
2376
+ extend Telnyx::Internal::Type::Enum
2377
+
2378
+ TaggedSymbol =
2379
+ T.type_alias do
2380
+ T.all(
2381
+ Symbol,
2382
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod
2383
+ )
2384
+ end
2385
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2386
+
2387
+ GET =
2388
+ T.let(
2389
+ :GET,
2390
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::TaggedSymbol
2391
+ )
2392
+ POST =
2393
+ T.let(
2394
+ :POST,
2395
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::TaggedSymbol
2396
+ )
2397
+
2398
+ sig do
2399
+ override.returns(
2400
+ T::Array[
2401
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::DeepfakeDetectionCallbackMethod::TaggedSymbol
2402
+ ]
2403
+ )
2404
+ end
2405
+ def self.values
2406
+ end
2407
+ end
2408
+
2145
2409
  # Allows you to chose between Premium and Standard detections.
2146
2410
  module DetectionMode
2147
2411
  extend Telnyx::Internal::Type::Enum
@@ -2718,6 +2982,52 @@ module Telnyx
2718
2982
  end
2719
2983
  attr_writer :custom_headers
2720
2984
 
2985
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
2986
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
2987
+ # are delivered asynchronously via a callback.
2988
+ sig do
2989
+ returns(
2990
+ T.nilable(
2991
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::OrSymbol
2992
+ )
2993
+ )
2994
+ end
2995
+ attr_reader :deepfake_detection
2996
+
2997
+ sig do
2998
+ params(
2999
+ deepfake_detection:
3000
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::OrSymbol
3001
+ ).void
3002
+ end
3003
+ attr_writer :deepfake_detection
3004
+
3005
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
3006
+ sig do
3007
+ returns(
3008
+ T.nilable(
3009
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::OrSymbol
3010
+ )
3011
+ )
3012
+ end
3013
+ attr_reader :deepfake_detection_callback_method
3014
+
3015
+ sig do
3016
+ params(
3017
+ deepfake_detection_callback_method:
3018
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::OrSymbol
3019
+ ).void
3020
+ end
3021
+ attr_writer :deepfake_detection_callback_method
3022
+
3023
+ # URL destination for Telnyx to send deepfake detection callback events to for the
3024
+ # call.
3025
+ sig { returns(T.nilable(String)) }
3026
+ attr_reader :deepfake_detection_callback_url
3027
+
3028
+ sig { params(deepfake_detection_callback_url: String).void }
3029
+ attr_writer :deepfake_detection_callback_url
3030
+
2721
3031
  # Allows you to chose between Premium and Standard detections.
2722
3032
  sig do
2723
3033
  returns(
@@ -3113,6 +3423,11 @@ module Telnyx
3113
3423
  T::Array[
3114
3424
  Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader::OrHash
3115
3425
  ],
3426
+ deepfake_detection:
3427
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::OrSymbol,
3428
+ deepfake_detection_callback_method:
3429
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::OrSymbol,
3430
+ deepfake_detection_callback_url: String,
3116
3431
  detection_mode:
3117
3432
  Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DetectionMode::OrSymbol,
3118
3433
  fallback_url: String,
@@ -3184,6 +3499,15 @@ module Telnyx
3184
3499
  # Custom HTTP headers to be sent with the call. Each header should be an object
3185
3500
  # with 'name' and 'value' properties.
3186
3501
  custom_headers: nil,
3502
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
3503
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
3504
+ # are delivered asynchronously via a callback.
3505
+ deepfake_detection: nil,
3506
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
3507
+ deepfake_detection_callback_method: nil,
3508
+ # URL destination for Telnyx to send deepfake detection callback events to for the
3509
+ # call.
3510
+ deepfake_detection_callback_url: nil,
3187
3511
  # Allows you to chose between Premium and Standard detections.
3188
3512
  detection_mode: nil,
3189
3513
  # A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -3290,6 +3614,11 @@ module Telnyx
3290
3614
  T::Array[
3291
3615
  Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader
3292
3616
  ],
3617
+ deepfake_detection:
3618
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::OrSymbol,
3619
+ deepfake_detection_callback_method:
3620
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::OrSymbol,
3621
+ deepfake_detection_callback_url: String,
3293
3622
  detection_mode:
3294
3623
  Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DetectionMode::OrSymbol,
3295
3624
  fallback_url: String,
@@ -3410,6 +3739,73 @@ module Telnyx
3410
3739
  end
3411
3740
  end
3412
3741
 
3742
+ # Enables Deepfake Detection on the dialed call. When enabled, audio from the
3743
+ # remote party is analyzed to determine whether the voice is AI-generated. Results
3744
+ # are delivered asynchronously via a callback.
3745
+ module DeepfakeDetection
3746
+ extend Telnyx::Internal::Type::Enum
3747
+
3748
+ TaggedSymbol =
3749
+ T.type_alias do
3750
+ T.all(
3751
+ Symbol,
3752
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection
3753
+ )
3754
+ end
3755
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3756
+
3757
+ ENABLE =
3758
+ T.let(
3759
+ :Enable,
3760
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::TaggedSymbol
3761
+ )
3762
+
3763
+ sig do
3764
+ override.returns(
3765
+ T::Array[
3766
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetection::TaggedSymbol
3767
+ ]
3768
+ )
3769
+ end
3770
+ def self.values
3771
+ end
3772
+ end
3773
+
3774
+ # HTTP request type used for `DeepfakeDetectionCallbackUrl`.
3775
+ module DeepfakeDetectionCallbackMethod
3776
+ extend Telnyx::Internal::Type::Enum
3777
+
3778
+ TaggedSymbol =
3779
+ T.type_alias do
3780
+ T.all(
3781
+ Symbol,
3782
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod
3783
+ )
3784
+ end
3785
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3786
+
3787
+ GET =
3788
+ T.let(
3789
+ :GET,
3790
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::TaggedSymbol
3791
+ )
3792
+ POST =
3793
+ T.let(
3794
+ :POST,
3795
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::TaggedSymbol
3796
+ )
3797
+
3798
+ sig do
3799
+ override.returns(
3800
+ T::Array[
3801
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::DeepfakeDetectionCallbackMethod::TaggedSymbol
3802
+ ]
3803
+ )
3804
+ end
3805
+ def self.values
3806
+ end
3807
+ end
3808
+
3413
3809
  # Allows you to chose between Premium and Standard detections.
3414
3810
  module DetectionMode
3415
3811
  extend Telnyx::Internal::Type::Enum
@@ -48,6 +48,9 @@ module Telnyx
48
48
  cancel_playback_on_detect_message_end: bool,
49
49
  cancel_playback_on_machine_detection: bool,
50
50
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader],
51
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection,
52
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method,
53
+ deepfake_detection_callback_url: String,
51
54
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::detection_mode,
52
55
  fallback_url: String,
53
56
  from: String,
@@ -121,6 +124,22 @@ module Telnyx
121
124
  ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader]
122
125
  ) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader]
123
126
 
127
+ attr_reader deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection?
128
+
129
+ def deepfake_detection=: (
130
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection
131
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection
132
+
133
+ attr_reader deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method?
134
+
135
+ def deepfake_detection_callback_method=: (
136
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method
137
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method
138
+
139
+ attr_reader deepfake_detection_callback_url: String?
140
+
141
+ def deepfake_detection_callback_url=: (String) -> String
142
+
124
143
  attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::detection_mode?
125
144
 
126
145
  def detection_mode=: (
@@ -281,6 +300,9 @@ module Telnyx
281
300
  ?cancel_playback_on_detect_message_end: bool,
282
301
  ?cancel_playback_on_machine_detection: bool,
283
302
  ?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader],
303
+ ?deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection,
304
+ ?deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method,
305
+ ?deepfake_detection_callback_url: String,
284
306
  ?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::detection_mode,
285
307
  ?fallback_url: String,
286
308
  ?from: String,
@@ -325,6 +347,9 @@ module Telnyx
325
347
  cancel_playback_on_detect_message_end: bool,
326
348
  cancel_playback_on_machine_detection: bool,
327
349
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::CustomHeader],
350
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection,
351
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method,
352
+ deepfake_detection_callback_url: String,
328
353
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::detection_mode,
329
354
  fallback_url: String,
330
355
  from: String,
@@ -382,6 +407,27 @@ module Telnyx
382
407
  def to_hash: -> { name: String, value: String }
383
408
  end
384
409
 
410
+ type deepfake_detection = :Enable
411
+
412
+ module DeepfakeDetection
413
+ extend Telnyx::Internal::Type::Enum
414
+
415
+ ENABLE: :Enable
416
+
417
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection]
418
+ end
419
+
420
+ type deepfake_detection_callback_method = :GET | :POST
421
+
422
+ module DeepfakeDetectionCallbackMethod
423
+ extend Telnyx::Internal::Type::Enum
424
+
425
+ GET: :GET
426
+ POST: :POST
427
+
428
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method]
429
+ end
430
+
385
431
  type detection_mode = :Premium | :Regular
386
432
 
387
433
  module DetectionMode
@@ -537,6 +583,9 @@ module Telnyx
537
583
  cancel_playback_on_detect_message_end: bool,
538
584
  cancel_playback_on_machine_detection: bool,
539
585
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader],
586
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection,
587
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method,
588
+ deepfake_detection_callback_url: String,
540
589
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::detection_mode,
541
590
  fallback_url: String,
542
591
  from: String,
@@ -610,6 +659,22 @@ module Telnyx
610
659
  ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader]
611
660
  ) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader]
612
661
 
662
+ attr_reader deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection?
663
+
664
+ def deepfake_detection=: (
665
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection
666
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection
667
+
668
+ attr_reader deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method?
669
+
670
+ def deepfake_detection_callback_method=: (
671
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method
672
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method
673
+
674
+ attr_reader deepfake_detection_callback_url: String?
675
+
676
+ def deepfake_detection_callback_url=: (String) -> String
677
+
613
678
  attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::detection_mode?
614
679
 
615
680
  def detection_mode=: (
@@ -770,6 +835,9 @@ module Telnyx
770
835
  ?cancel_playback_on_detect_message_end: bool,
771
836
  ?cancel_playback_on_machine_detection: bool,
772
837
  ?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader],
838
+ ?deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection,
839
+ ?deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method,
840
+ ?deepfake_detection_callback_url: String,
773
841
  ?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::detection_mode,
774
842
  ?fallback_url: String,
775
843
  ?from: String,
@@ -814,6 +882,9 @@ module Telnyx
814
882
  cancel_playback_on_detect_message_end: bool,
815
883
  cancel_playback_on_machine_detection: bool,
816
884
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::CustomHeader],
885
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection,
886
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method,
887
+ deepfake_detection_callback_url: String,
817
888
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::detection_mode,
818
889
  fallback_url: String,
819
890
  from: String,
@@ -871,6 +942,27 @@ module Telnyx
871
942
  def to_hash: -> { name: String, value: String }
872
943
  end
873
944
 
945
+ type deepfake_detection = :Enable
946
+
947
+ module DeepfakeDetection
948
+ extend Telnyx::Internal::Type::Enum
949
+
950
+ ENABLE: :Enable
951
+
952
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection]
953
+ end
954
+
955
+ type deepfake_detection_callback_method = :GET | :POST
956
+
957
+ module DeepfakeDetectionCallbackMethod
958
+ extend Telnyx::Internal::Type::Enum
959
+
960
+ GET: :GET
961
+ POST: :POST
962
+
963
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method]
964
+ end
965
+
874
966
  type detection_mode = :Premium | :Regular
875
967
 
876
968
  module DetectionMode
@@ -1025,6 +1117,9 @@ module Telnyx
1025
1117
  cancel_playback_on_detect_message_end: bool,
1026
1118
  cancel_playback_on_machine_detection: bool,
1027
1119
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader],
1120
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection,
1121
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method,
1122
+ deepfake_detection_callback_url: String,
1028
1123
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::detection_mode,
1029
1124
  fallback_url: String,
1030
1125
  from: String,
@@ -1097,6 +1192,22 @@ module Telnyx
1097
1192
  ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader]
1098
1193
  ) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader]
1099
1194
 
1195
+ attr_reader deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection?
1196
+
1197
+ def deepfake_detection=: (
1198
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection
1199
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection
1200
+
1201
+ attr_reader deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method?
1202
+
1203
+ def deepfake_detection_callback_method=: (
1204
+ Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method
1205
+ ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method
1206
+
1207
+ attr_reader deepfake_detection_callback_url: String?
1208
+
1209
+ def deepfake_detection_callback_url=: (String) -> String
1210
+
1100
1211
  attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::detection_mode?
1101
1212
 
1102
1213
  def detection_mode=: (
@@ -1258,6 +1369,9 @@ module Telnyx
1258
1369
  ?cancel_playback_on_detect_message_end: bool,
1259
1370
  ?cancel_playback_on_machine_detection: bool,
1260
1371
  ?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader],
1372
+ ?deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection,
1373
+ ?deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method,
1374
+ ?deepfake_detection_callback_url: String,
1261
1375
  ?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::detection_mode,
1262
1376
  ?fallback_url: String,
1263
1377
  ?from: String,
@@ -1302,6 +1416,9 @@ module Telnyx
1302
1416
  cancel_playback_on_detect_message_end: bool,
1303
1417
  cancel_playback_on_machine_detection: bool,
1304
1418
  custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::CustomHeader],
1419
+ deepfake_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection,
1420
+ deepfake_detection_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method,
1421
+ deepfake_detection_callback_url: String,
1305
1422
  detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::detection_mode,
1306
1423
  fallback_url: String,
1307
1424
  from: String,
@@ -1360,6 +1477,27 @@ module Telnyx
1360
1477
  def to_hash: -> { name: String, value: String }
1361
1478
  end
1362
1479
 
1480
+ type deepfake_detection = :Enable
1481
+
1482
+ module DeepfakeDetection
1483
+ extend Telnyx::Internal::Type::Enum
1484
+
1485
+ ENABLE: :Enable
1486
+
1487
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection]
1488
+ end
1489
+
1490
+ type deepfake_detection_callback_method = :GET | :POST
1491
+
1492
+ module DeepfakeDetectionCallbackMethod
1493
+ extend Telnyx::Internal::Type::Enum
1494
+
1495
+ GET: :GET
1496
+ POST: :POST
1497
+
1498
+ def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method]
1499
+ end
1500
+
1363
1501
  type detection_mode = :Premium | :Regular
1364
1502
 
1365
1503
  module DetectionMode
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.86.0
4
+ version: 5.87.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx