telnyx 5.86.0 → 5.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +209 -1
  5. data/lib/telnyx/models/ai/assistant_update_params.rb +209 -1
  6. data/lib/telnyx/models/ai/assistants/update_assistant.rb +212 -1
  7. data/lib/telnyx/models/ai/inference_embedding.rb +211 -1
  8. data/lib/telnyx/models/ai/transcription_settings.rb +7 -4
  9. data/lib/telnyx/models/call_assistant_request.rb +209 -6
  10. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +189 -3
  11. data/lib/telnyx/resources/ai/assistants/versions.rb +5 -1
  12. data/lib/telnyx/resources/ai/assistants.rb +10 -2
  13. data/lib/telnyx/version.rb +1 -1
  14. data/rbi/telnyx/models/ai/assistant_create_params.rbi +419 -0
  15. data/rbi/telnyx/models/ai/assistant_update_params.rbi +419 -0
  16. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +425 -0
  17. data/rbi/telnyx/models/ai/inference_embedding.rbi +415 -0
  18. data/rbi/telnyx/models/ai/transcription_settings.rbi +11 -5
  19. data/rbi/telnyx/models/call_assistant_request.rbi +416 -8
  20. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +396 -0
  21. data/rbi/telnyx/resources/ai/assistants/versions.rbi +8 -0
  22. data/rbi/telnyx/resources/ai/assistants.rbi +12 -0
  23. data/sig/telnyx/models/ai/assistant_create_params.rbs +193 -0
  24. data/sig/telnyx/models/ai/assistant_update_params.rbs +193 -0
  25. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +193 -0
  26. data/sig/telnyx/models/ai/inference_embedding.rbs +193 -0
  27. data/sig/telnyx/models/call_assistant_request.rbs +197 -10
  28. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +138 -0
  29. data/sig/telnyx/resources/ai/assistants/versions.rbs +2 -0
  30. data/sig/telnyx/resources/ai/assistants.rbs +4 -0
  31. metadata +1 -1
@@ -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
@@ -36,6 +36,10 @@ module Telnyx
36
36
  dynamic_variables: T::Hash[Symbol, T.anything],
37
37
  dynamic_variables_webhook_url: String,
38
38
  enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
39
+ external_llm:
40
+ Telnyx::AI::Assistants::UpdateAssistant::ExternalLlm::OrHash,
41
+ fallback_config:
42
+ Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::OrHash,
39
43
  greeting: String,
40
44
  insight_settings: Telnyx::AI::InsightSettings::OrHash,
41
45
  instructions: String,
@@ -86,6 +90,10 @@ module Telnyx
86
90
  dynamic_variables_webhook_url: nil,
87
91
  # Body param
88
92
  enabled_features: nil,
93
+ # Body param
94
+ external_llm: nil,
95
+ # Body param
96
+ fallback_config: nil,
89
97
  # Body param: Text that the assistant will use to start the conversation. This may
90
98
  # be templated with
91
99
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
@@ -39,6 +39,10 @@ module Telnyx
39
39
  dynamic_variables: T::Hash[Symbol, T.anything],
40
40
  dynamic_variables_webhook_url: String,
41
41
  enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
42
+ external_llm:
43
+ Telnyx::AI::AssistantCreateParams::ExternalLlm::OrHash,
44
+ fallback_config:
45
+ Telnyx::AI::AssistantCreateParams::FallbackConfig::OrHash,
42
46
  greeting: String,
43
47
  insight_settings: Telnyx::AI::InsightSettings::OrHash,
44
48
  llm_api_key_ref: String,
@@ -88,6 +92,8 @@ module Telnyx
88
92
  # for more information.
89
93
  dynamic_variables_webhook_url: nil,
90
94
  enabled_features: nil,
95
+ external_llm: nil,
96
+ fallback_config: nil,
91
97
  # Text that the assistant will use to start the conversation. This may be
92
98
  # templated with
93
99
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
@@ -154,6 +160,10 @@ module Telnyx
154
160
  dynamic_variables: T::Hash[Symbol, T.anything],
155
161
  dynamic_variables_webhook_url: String,
156
162
  enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
163
+ external_llm:
164
+ Telnyx::AI::AssistantUpdateParams::ExternalLlm::OrHash,
165
+ fallback_config:
166
+ Telnyx::AI::AssistantUpdateParams::FallbackConfig::OrHash,
157
167
  greeting: String,
158
168
  insight_settings: Telnyx::AI::InsightSettings::OrHash,
159
169
  instructions: String,
@@ -200,6 +210,8 @@ module Telnyx
200
210
  # for more information.
201
211
  dynamic_variables_webhook_url: nil,
202
212
  enabled_features: nil,
213
+ external_llm: nil,
214
+ fallback_config: nil,
203
215
  # Text that the assistant will use to start the conversation. This may be
204
216
  # templated with
205
217
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).