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
@@ -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
@@ -17,6 +17,8 @@ module Telnyx
17
17
  ?dynamic_variables: ::Hash[Symbol, top],
18
18
  ?dynamic_variables_webhook_url: String,
19
19
  ?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
20
+ ?external_llm: Telnyx::AI::Assistants::UpdateAssistant::ExternalLlm,
21
+ ?fallback_config: Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig,
20
22
  ?greeting: String,
21
23
  ?insight_settings: Telnyx::AI::InsightSettings,
22
24
  ?instructions: String,
@@ -22,6 +22,8 @@ module Telnyx
22
22
  ?dynamic_variables: ::Hash[Symbol, top],
23
23
  ?dynamic_variables_webhook_url: String,
24
24
  ?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
25
+ ?external_llm: Telnyx::AI::AssistantCreateParams::ExternalLlm,
26
+ ?fallback_config: Telnyx::AI::AssistantCreateParams::FallbackConfig,
25
27
  ?greeting: String,
26
28
  ?insight_settings: Telnyx::AI::InsightSettings,
27
29
  ?llm_api_key_ref: String,
@@ -53,6 +55,8 @@ module Telnyx
53
55
  ?dynamic_variables: ::Hash[Symbol, top],
54
56
  ?dynamic_variables_webhook_url: String,
55
57
  ?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
58
+ ?external_llm: Telnyx::AI::AssistantUpdateParams::ExternalLlm,
59
+ ?fallback_config: Telnyx::AI::AssistantUpdateParams::FallbackConfig,
56
60
  ?greeting: String,
57
61
  ?insight_settings: Telnyx::AI::InsightSettings,
58
62
  ?instructions: String,
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.88.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx