telnyx 5.85.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 +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +32 -13
- data/lib/telnyx/models/ai/transcription_settings_config.rb +30 -1
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +189 -3
- data/lib/telnyx/models/verify_profile.rb +17 -71
- data/lib/telnyx/models/verify_profile_create_params.rb +25 -69
- data/lib/telnyx/models/verify_profile_update_params.rb +23 -111
- data/lib/telnyx/resources/verify_profiles.rb +17 -6
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/transcription_settings.rbi +51 -16
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +43 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +396 -0
- data/rbi/telnyx/models/verify_profile.rbi +22 -115
- data/rbi/telnyx/models/verify_profile_create_params.rbi +22 -118
- data/rbi/telnyx/models/verify_profile_update_params.rbi +20 -205
- data/rbi/telnyx/resources/verify_profiles.rbi +12 -6
- data/sig/telnyx/models/ai/transcription_settings.rbs +11 -0
- data/sig/telnyx/models/ai/transcription_settings_config.rbs +21 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +138 -0
- data/sig/telnyx/models/verify_profile.rbs +14 -61
- data/sig/telnyx/models/verify_profile_create_params.rbs +14 -63
- data/sig/telnyx/models/verify_profile_update_params.rbs +12 -103
- data/sig/telnyx/resources/verify_profiles.rbs +4 -3
- metadata +2 -2
|
@@ -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
|
|
@@ -24,6 +24,20 @@ module Telnyx
|
|
|
24
24
|
sig { params(created_at: String).void }
|
|
25
25
|
attr_writer :created_at
|
|
26
26
|
|
|
27
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
28
|
+
sig { returns(T.nilable(Float)) }
|
|
29
|
+
attr_reader :daily_spend_limit
|
|
30
|
+
|
|
31
|
+
sig { params(daily_spend_limit: Float).void }
|
|
32
|
+
attr_writer :daily_spend_limit
|
|
33
|
+
|
|
34
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
35
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
36
|
+
attr_reader :daily_spend_limit_enabled
|
|
37
|
+
|
|
38
|
+
sig { params(daily_spend_limit_enabled: T::Boolean).void }
|
|
39
|
+
attr_writer :daily_spend_limit_enabled
|
|
40
|
+
|
|
27
41
|
sig { returns(T.nilable(Telnyx::VerifyProfile::Flashcall)) }
|
|
28
42
|
attr_reader :flashcall
|
|
29
43
|
|
|
@@ -42,12 +56,6 @@ module Telnyx
|
|
|
42
56
|
sig { params(name: String).void }
|
|
43
57
|
attr_writer :name
|
|
44
58
|
|
|
45
|
-
sig { returns(T.nilable(Telnyx::VerifyProfile::Rcs)) }
|
|
46
|
-
attr_reader :rcs
|
|
47
|
-
|
|
48
|
-
sig { params(rcs: Telnyx::VerifyProfile::Rcs::OrHash).void }
|
|
49
|
-
attr_writer :rcs
|
|
50
|
-
|
|
51
59
|
# The possible verification profile record types.
|
|
52
60
|
sig do
|
|
53
61
|
returns(T.nilable(Telnyx::VerifyProfile::RecordType::TaggedSymbol))
|
|
@@ -94,10 +102,11 @@ module Telnyx
|
|
|
94
102
|
id: String,
|
|
95
103
|
call: Telnyx::VerifyProfile::Call::OrHash,
|
|
96
104
|
created_at: String,
|
|
105
|
+
daily_spend_limit: Float,
|
|
106
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
97
107
|
flashcall: Telnyx::VerifyProfile::Flashcall::OrHash,
|
|
98
108
|
language: String,
|
|
99
109
|
name: String,
|
|
100
|
-
rcs: Telnyx::VerifyProfile::Rcs::OrHash,
|
|
101
110
|
record_type: Telnyx::VerifyProfile::RecordType::OrSymbol,
|
|
102
111
|
sms: Telnyx::VerifyProfile::SMS::OrHash,
|
|
103
112
|
updated_at: String,
|
|
@@ -110,10 +119,13 @@ module Telnyx
|
|
|
110
119
|
id: nil,
|
|
111
120
|
call: nil,
|
|
112
121
|
created_at: nil,
|
|
122
|
+
# The maximum daily spend allowed on this verify profile, in USD.
|
|
123
|
+
daily_spend_limit: nil,
|
|
124
|
+
# Whether the daily spend limit is enforced for this verify profile.
|
|
125
|
+
daily_spend_limit_enabled: nil,
|
|
113
126
|
flashcall: nil,
|
|
114
127
|
language: nil,
|
|
115
128
|
name: nil,
|
|
116
|
-
rcs: nil,
|
|
117
129
|
# The possible verification profile record types.
|
|
118
130
|
record_type: nil,
|
|
119
131
|
sms: nil,
|
|
@@ -130,10 +142,11 @@ module Telnyx
|
|
|
130
142
|
id: String,
|
|
131
143
|
call: Telnyx::VerifyProfile::Call,
|
|
132
144
|
created_at: String,
|
|
145
|
+
daily_spend_limit: Float,
|
|
146
|
+
daily_spend_limit_enabled: T::Boolean,
|
|
133
147
|
flashcall: Telnyx::VerifyProfile::Flashcall,
|
|
134
148
|
language: String,
|
|
135
149
|
name: String,
|
|
136
|
-
rcs: Telnyx::VerifyProfile::Rcs,
|
|
137
150
|
record_type: Telnyx::VerifyProfile::RecordType::TaggedSymbol,
|
|
138
151
|
sms: Telnyx::VerifyProfile::SMS,
|
|
139
152
|
updated_at: String,
|
|
@@ -292,112 +305,6 @@ module Telnyx
|
|
|
292
305
|
end
|
|
293
306
|
end
|
|
294
307
|
|
|
295
|
-
class Rcs < Telnyx::Internal::Type::BaseModel
|
|
296
|
-
OrHash =
|
|
297
|
-
T.type_alias do
|
|
298
|
-
T.any(Telnyx::VerifyProfile::Rcs, Telnyx::Internal::AnyHash)
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
302
|
-
# message.
|
|
303
|
-
sig { returns(T.nilable(String)) }
|
|
304
|
-
attr_reader :app_name
|
|
305
|
-
|
|
306
|
-
sig { params(app_name: String).void }
|
|
307
|
-
attr_writer :app_name
|
|
308
|
-
|
|
309
|
-
# The length of the verify code to generate.
|
|
310
|
-
sig { returns(T.nilable(Integer)) }
|
|
311
|
-
attr_reader :code_length
|
|
312
|
-
|
|
313
|
-
sig { params(code_length: Integer).void }
|
|
314
|
-
attr_writer :code_length
|
|
315
|
-
|
|
316
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
317
|
-
# number of seconds before a verification request code expires. Once the
|
|
318
|
-
# verification request expires, the user cannot use the code to verify their
|
|
319
|
-
# identity.
|
|
320
|
-
sig { returns(T.nilable(Integer)) }
|
|
321
|
-
attr_reader :default_verification_timeout_secs
|
|
322
|
-
|
|
323
|
-
sig { params(default_verification_timeout_secs: Integer).void }
|
|
324
|
-
attr_writer :default_verification_timeout_secs
|
|
325
|
-
|
|
326
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
327
|
-
sig { returns(T.nilable(String)) }
|
|
328
|
-
attr_reader :messaging_template_id
|
|
329
|
-
|
|
330
|
-
sig { params(messaging_template_id: String).void }
|
|
331
|
-
attr_writer :messaging_template_id
|
|
332
|
-
|
|
333
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
334
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
335
|
-
attr_reader :sms_fallback
|
|
336
|
-
|
|
337
|
-
sig { params(sms_fallback: T::Boolean).void }
|
|
338
|
-
attr_writer :sms_fallback
|
|
339
|
-
|
|
340
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
341
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
342
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
343
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
344
|
-
# destinations; otherwise it is optional.
|
|
345
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
346
|
-
attr_reader :whitelisted_destinations
|
|
347
|
-
|
|
348
|
-
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
349
|
-
attr_writer :whitelisted_destinations
|
|
350
|
-
|
|
351
|
-
sig do
|
|
352
|
-
params(
|
|
353
|
-
app_name: String,
|
|
354
|
-
code_length: Integer,
|
|
355
|
-
default_verification_timeout_secs: Integer,
|
|
356
|
-
messaging_template_id: String,
|
|
357
|
-
sms_fallback: T::Boolean,
|
|
358
|
-
whitelisted_destinations: T::Array[String]
|
|
359
|
-
).returns(T.attached_class)
|
|
360
|
-
end
|
|
361
|
-
def self.new(
|
|
362
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
363
|
-
# message.
|
|
364
|
-
app_name: nil,
|
|
365
|
-
# The length of the verify code to generate.
|
|
366
|
-
code_length: nil,
|
|
367
|
-
# For every request that is initiated via this Verify profile, this sets the
|
|
368
|
-
# number of seconds before a verification request code expires. Once the
|
|
369
|
-
# verification request expires, the user cannot use the code to verify their
|
|
370
|
-
# identity.
|
|
371
|
-
default_verification_timeout_secs: nil,
|
|
372
|
-
# The message template identifier selected from /verify_profiles/templates
|
|
373
|
-
messaging_template_id: nil,
|
|
374
|
-
# Enable SMS fallback when RCS delivery fails.
|
|
375
|
-
sms_fallback: nil,
|
|
376
|
-
# Enabled country destinations to send verification codes. The elements in the
|
|
377
|
-
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
378
|
-
# destinations will be allowed. **Conditionally required:** this field must be
|
|
379
|
-
# provided when your organization is configured to require explicit whitelisted
|
|
380
|
-
# destinations; otherwise it is optional.
|
|
381
|
-
whitelisted_destinations: nil
|
|
382
|
-
)
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
sig do
|
|
386
|
-
override.returns(
|
|
387
|
-
{
|
|
388
|
-
app_name: String,
|
|
389
|
-
code_length: Integer,
|
|
390
|
-
default_verification_timeout_secs: Integer,
|
|
391
|
-
messaging_template_id: String,
|
|
392
|
-
sms_fallback: T::Boolean,
|
|
393
|
-
whitelisted_destinations: T::Array[String]
|
|
394
|
-
}
|
|
395
|
-
)
|
|
396
|
-
end
|
|
397
|
-
def to_hash
|
|
398
|
-
end
|
|
399
|
-
end
|
|
400
|
-
|
|
401
308
|
# The possible verification profile record types.
|
|
402
309
|
module RecordType
|
|
403
310
|
extend Telnyx::Internal::Type::Enum
|