telnyx 5.74.0 → 5.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/call_deepfake_detection_error_webhook_event.rb +160 -0
- data/lib/telnyx/models/call_deepfake_detection_result_webhook_event.rb +176 -0
- data/lib/telnyx/models/call_dial_params.rb +48 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +48 -1
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models.rb +4 -0
- data/lib/telnyx/resources/calls/actions.rb +6 -1
- data/lib/telnyx/resources/calls.rb +6 -1
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +2 -0
- data/rbi/telnyx/models/call_deepfake_detection_error_webhook_event.rbi +380 -0
- data/rbi/telnyx/models/call_deepfake_detection_result_webhook_event.rbi +398 -0
- data/rbi/telnyx/models/call_dial_params.rbi +80 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +87 -0
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +2 -0
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/telnyx/models.rbi +6 -0
- data/rbi/telnyx/resources/calls/actions.rbi +10 -0
- data/rbi/telnyx/resources/calls.rbi +9 -0
- data/rbi/telnyx/resources/webhooks.rbi +4 -0
- data/sig/telnyx/models/call_deepfake_detection_error_webhook_event.rbs +166 -0
- data/sig/telnyx/models/call_deepfake_detection_result_webhook_event.rbs +171 -0
- data/sig/telnyx/models/call_dial_params.rbs +36 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +36 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models.rbs +4 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/webhooks.rbs +4 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65d338ab470b2954f903b0844cb28f0bdce65cba7f7695b4c3a57be0269ce505
|
|
4
|
+
data.tar.gz: 2ea91cf048e0e095a7c96abbd74c534b291228aa0d6fe16ff2dcea6a8c0927d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3851768089ad03bab75b2de7c9d1b013f5350983469cec312e184a64b210e2b1ff522f0a6ed05f40d5cd3eed5bc22cc2af041b7fc887f2e1b373175ed2ddf50
|
|
7
|
+
data.tar.gz: 5ee7c87b6b4c058f3f3c485b92b7c28b68d4f2d04e2a8600eebd67d15f8179e8dea0e8025d88fe031bff48fdc74ecfbc4f82097199c1784248d49f5d097de64e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.75.0 (2026-04-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.74.0...v5.75.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.74.0...v5.75.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* TELAPPS-5712: Add deepfake detection to call-control API spec ([863bcf0](https://github.com/team-telnyx/telnyx-ruby/commit/863bcf0aad7fcd68104bf602598c32d267c61be5))
|
|
10
|
+
|
|
3
11
|
## 5.74.0 (2026-04-13)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.73.0...v5.74.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.73.0...v5.74.0)
|
data/README.md
CHANGED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class CallDeepfakeDetectionErrorWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data, nil]
|
|
9
|
+
optional :data, -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data: nil)
|
|
12
|
+
# @param data [Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data]
|
|
13
|
+
|
|
14
|
+
# @see Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent#data
|
|
15
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute id
|
|
17
|
+
# Identifies the type of resource.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute event_type
|
|
23
|
+
# The type of event being delivered.
|
|
24
|
+
#
|
|
25
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::EventType, nil]
|
|
26
|
+
optional :event_type, enum: -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::EventType }
|
|
27
|
+
|
|
28
|
+
# @!attribute occurred_at
|
|
29
|
+
# ISO 8601 datetime of when the event occurred.
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :occurred_at, Time
|
|
33
|
+
|
|
34
|
+
# @!attribute payload
|
|
35
|
+
#
|
|
36
|
+
# @return [Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload, nil]
|
|
37
|
+
optional :payload, -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload }
|
|
38
|
+
|
|
39
|
+
# @!attribute record_type
|
|
40
|
+
# Identifies the type of the resource.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::RecordType, nil]
|
|
43
|
+
optional :record_type, enum: -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::RecordType }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil)
|
|
46
|
+
# @param id [String] Identifies the type of resource.
|
|
47
|
+
#
|
|
48
|
+
# @param event_type [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::EventType] The type of event being delivered.
|
|
49
|
+
#
|
|
50
|
+
# @param occurred_at [Time] ISO 8601 datetime of when the event occurred.
|
|
51
|
+
#
|
|
52
|
+
# @param payload [Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload]
|
|
53
|
+
#
|
|
54
|
+
# @param record_type [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::RecordType] Identifies the type of the resource.
|
|
55
|
+
|
|
56
|
+
# The type of event being delivered.
|
|
57
|
+
#
|
|
58
|
+
# @see Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data#event_type
|
|
59
|
+
module EventType
|
|
60
|
+
extend Telnyx::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
CALL_DEEPFAKE_DETECTION_ERROR = :"call.deepfake_detection.error"
|
|
63
|
+
|
|
64
|
+
# @!method self.values
|
|
65
|
+
# @return [Array<Symbol>]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @see Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data#payload
|
|
69
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
70
|
+
# @!attribute call_control_id
|
|
71
|
+
# Call ID used to issue commands via Call Control API.
|
|
72
|
+
#
|
|
73
|
+
# @return [String, nil]
|
|
74
|
+
optional :call_control_id, String
|
|
75
|
+
|
|
76
|
+
# @!attribute call_leg_id
|
|
77
|
+
# ID that is unique to the call and can be used to correlate webhook events.
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :call_leg_id, String
|
|
81
|
+
|
|
82
|
+
# @!attribute call_session_id
|
|
83
|
+
# ID that is unique to the call session and can be used to correlate webhook
|
|
84
|
+
# events. Call session is a group of related call legs that logically belong to
|
|
85
|
+
# the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :call_session_id, String
|
|
89
|
+
|
|
90
|
+
# @!attribute client_state
|
|
91
|
+
# State received from a command.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :client_state, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute connection_id
|
|
97
|
+
# Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
optional :connection_id, String
|
|
101
|
+
|
|
102
|
+
# @!attribute error_message
|
|
103
|
+
# The error that occurred. 'detection_timeout' = no DFD response received,
|
|
104
|
+
# 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
|
|
105
|
+
# = service connectivity issues.
|
|
106
|
+
#
|
|
107
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::ErrorMessage, nil]
|
|
108
|
+
optional :error_message,
|
|
109
|
+
enum: -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::ErrorMessage }
|
|
110
|
+
|
|
111
|
+
# @!method initialize(call_control_id: nil, call_leg_id: nil, call_session_id: nil, client_state: nil, connection_id: nil, error_message: nil)
|
|
112
|
+
# Some parameter documentations has been truncated, see
|
|
113
|
+
# {Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload} for more
|
|
114
|
+
# details.
|
|
115
|
+
#
|
|
116
|
+
# @param call_control_id [String] Call ID used to issue commands via Call Control API.
|
|
117
|
+
#
|
|
118
|
+
# @param call_leg_id [String] ID that is unique to the call and can be used to correlate webhook events.
|
|
119
|
+
#
|
|
120
|
+
# @param call_session_id [String] ID that is unique to the call session and can be used to correlate webhook event
|
|
121
|
+
#
|
|
122
|
+
# @param client_state [String, nil] State received from a command.
|
|
123
|
+
#
|
|
124
|
+
# @param connection_id [String] Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
125
|
+
#
|
|
126
|
+
# @param error_message [Symbol, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload::ErrorMessage] The error that occurred. 'detection_timeout' = no DFD response received, 'rtp_ti
|
|
127
|
+
|
|
128
|
+
# The error that occurred. 'detection_timeout' = no DFD response received,
|
|
129
|
+
# 'rtp_timeout' = no RTP audio received, 'dfd_connection_error'/'dfd_stream_error'
|
|
130
|
+
# = service connectivity issues.
|
|
131
|
+
#
|
|
132
|
+
# @see Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data::Payload#error_message
|
|
133
|
+
module ErrorMessage
|
|
134
|
+
extend Telnyx::Internal::Type::Enum
|
|
135
|
+
|
|
136
|
+
DETECTION_TIMEOUT = :detection_timeout
|
|
137
|
+
RTP_TIMEOUT = :rtp_timeout
|
|
138
|
+
DFD_CONNECTION_ERROR = :dfd_connection_error
|
|
139
|
+
DFD_STREAM_ERROR = :dfd_stream_error
|
|
140
|
+
|
|
141
|
+
# @!method self.values
|
|
142
|
+
# @return [Array<Symbol>]
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Identifies the type of the resource.
|
|
147
|
+
#
|
|
148
|
+
# @see Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent::Data#record_type
|
|
149
|
+
module RecordType
|
|
150
|
+
extend Telnyx::Internal::Type::Enum
|
|
151
|
+
|
|
152
|
+
EVENT = :event
|
|
153
|
+
|
|
154
|
+
# @!method self.values
|
|
155
|
+
# @return [Array<Symbol>]
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class CallDeepfakeDetectionResultWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data, nil]
|
|
9
|
+
optional :data, -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent::Data }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data: nil)
|
|
12
|
+
# @param data [Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data]
|
|
13
|
+
|
|
14
|
+
# @see Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent#data
|
|
15
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute id
|
|
17
|
+
# Identifies the type of resource.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute event_type
|
|
23
|
+
# The type of event being delivered.
|
|
24
|
+
#
|
|
25
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::EventType, nil]
|
|
26
|
+
optional :event_type, enum: -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent::Data::EventType }
|
|
27
|
+
|
|
28
|
+
# @!attribute occurred_at
|
|
29
|
+
# ISO 8601 datetime of when the event occurred.
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :occurred_at, Time
|
|
33
|
+
|
|
34
|
+
# @!attribute payload
|
|
35
|
+
#
|
|
36
|
+
# @return [Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload, nil]
|
|
37
|
+
optional :payload, -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent::Data::Payload }
|
|
38
|
+
|
|
39
|
+
# @!attribute record_type
|
|
40
|
+
# Identifies the type of the resource.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::RecordType, nil]
|
|
43
|
+
optional :record_type, enum: -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent::Data::RecordType }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil)
|
|
46
|
+
# @param id [String] Identifies the type of resource.
|
|
47
|
+
#
|
|
48
|
+
# @param event_type [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::EventType] The type of event being delivered.
|
|
49
|
+
#
|
|
50
|
+
# @param occurred_at [Time] ISO 8601 datetime of when the event occurred.
|
|
51
|
+
#
|
|
52
|
+
# @param payload [Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload]
|
|
53
|
+
#
|
|
54
|
+
# @param record_type [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::RecordType] Identifies the type of the resource.
|
|
55
|
+
|
|
56
|
+
# The type of event being delivered.
|
|
57
|
+
#
|
|
58
|
+
# @see Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data#event_type
|
|
59
|
+
module EventType
|
|
60
|
+
extend Telnyx::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
CALL_DEEPFAKE_DETECTION_RESULT = :"call.deepfake_detection.result"
|
|
63
|
+
|
|
64
|
+
# @!method self.values
|
|
65
|
+
# @return [Array<Symbol>]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @see Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data#payload
|
|
69
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
70
|
+
# @!attribute call_control_id
|
|
71
|
+
# Call ID used to issue commands via Call Control API.
|
|
72
|
+
#
|
|
73
|
+
# @return [String, nil]
|
|
74
|
+
optional :call_control_id, String
|
|
75
|
+
|
|
76
|
+
# @!attribute call_leg_id
|
|
77
|
+
# ID that is unique to the call and can be used to correlate webhook events.
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :call_leg_id, String
|
|
81
|
+
|
|
82
|
+
# @!attribute call_session_id
|
|
83
|
+
# ID that is unique to the call session and can be used to correlate webhook
|
|
84
|
+
# events. Call session is a group of related call legs that logically belong to
|
|
85
|
+
# the same phone call, e.g. an inbound and outbound leg of a transferred call.
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :call_session_id, String
|
|
89
|
+
|
|
90
|
+
# @!attribute client_state
|
|
91
|
+
# State received from a command.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :client_state, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute connection_id
|
|
97
|
+
# Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
optional :connection_id, String
|
|
101
|
+
|
|
102
|
+
# @!attribute consistency
|
|
103
|
+
# Percentage (0-100) indicating how consistently the model classified the audio
|
|
104
|
+
# across frames. High consistency (>90%) means confident classification
|
|
105
|
+
# throughout; low consistency suggests mixed signals. Null for silence_timeout.
|
|
106
|
+
#
|
|
107
|
+
# @return [Float, nil]
|
|
108
|
+
optional :consistency, Float, nil?: true
|
|
109
|
+
|
|
110
|
+
# @!attribute result
|
|
111
|
+
# Detection outcome. 'real' = human voice, 'fake' = AI-generated voice,
|
|
112
|
+
# 'silence_timeout' = no analyzable speech detected before timeout.
|
|
113
|
+
#
|
|
114
|
+
# @return [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload::Result, nil]
|
|
115
|
+
optional :result, enum: -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent::Data::Payload::Result }
|
|
116
|
+
|
|
117
|
+
# @!attribute score
|
|
118
|
+
# Probability that the audio is AI-generated, from 0.0 (likely real) to 1.0
|
|
119
|
+
# (likely deepfake). Based on the model's aggregated confidence across analyzed
|
|
120
|
+
# audio frames. Null for silence_timeout.
|
|
121
|
+
#
|
|
122
|
+
# @return [Float, nil]
|
|
123
|
+
optional :score, Float, nil?: true
|
|
124
|
+
|
|
125
|
+
# @!method initialize(call_control_id: nil, call_leg_id: nil, call_session_id: nil, client_state: nil, connection_id: nil, consistency: nil, result: nil, score: nil)
|
|
126
|
+
# Some parameter documentations has been truncated, see
|
|
127
|
+
# {Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload} for
|
|
128
|
+
# more details.
|
|
129
|
+
#
|
|
130
|
+
# @param call_control_id [String] Call ID used to issue commands via Call Control API.
|
|
131
|
+
#
|
|
132
|
+
# @param call_leg_id [String] ID that is unique to the call and can be used to correlate webhook events.
|
|
133
|
+
#
|
|
134
|
+
# @param call_session_id [String] ID that is unique to the call session and can be used to correlate webhook event
|
|
135
|
+
#
|
|
136
|
+
# @param client_state [String, nil] State received from a command.
|
|
137
|
+
#
|
|
138
|
+
# @param connection_id [String] Call Control App ID (formerly Telnyx connection ID) used in the call.
|
|
139
|
+
#
|
|
140
|
+
# @param consistency [Float, nil] Percentage (0-100) indicating how consistently the model classified the audio ac
|
|
141
|
+
#
|
|
142
|
+
# @param result [Symbol, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload::Result] Detection outcome. 'real' = human voice, 'fake' = AI-generated voice, 'silence_t
|
|
143
|
+
#
|
|
144
|
+
# @param score [Float, nil] Probability that the audio is AI-generated, from 0.0 (likely real) to 1.0 (likel
|
|
145
|
+
|
|
146
|
+
# Detection outcome. 'real' = human voice, 'fake' = AI-generated voice,
|
|
147
|
+
# 'silence_timeout' = no analyzable speech detected before timeout.
|
|
148
|
+
#
|
|
149
|
+
# @see Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data::Payload#result
|
|
150
|
+
module Result
|
|
151
|
+
extend Telnyx::Internal::Type::Enum
|
|
152
|
+
|
|
153
|
+
REAL = :real
|
|
154
|
+
FAKE = :fake
|
|
155
|
+
SILENCE_TIMEOUT = :silence_timeout
|
|
156
|
+
|
|
157
|
+
# @!method self.values
|
|
158
|
+
# @return [Array<Symbol>]
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Identifies the type of the resource.
|
|
163
|
+
#
|
|
164
|
+
# @see Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent::Data#record_type
|
|
165
|
+
module RecordType
|
|
166
|
+
extend Telnyx::Internal::Type::Enum
|
|
167
|
+
|
|
168
|
+
EVENT = :event
|
|
169
|
+
|
|
170
|
+
# @!method self.values
|
|
171
|
+
# @return [Array<Symbol>]
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
@@ -122,6 +122,15 @@ module Telnyx
|
|
|
122
122
|
# @return [Array<Telnyx::Models::CustomSipHeader>, nil]
|
|
123
123
|
optional :custom_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CustomSipHeader] }
|
|
124
124
|
|
|
125
|
+
# @!attribute deepfake_detection
|
|
126
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
127
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
128
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
129
|
+
# webhook.
|
|
130
|
+
#
|
|
131
|
+
# @return [Telnyx::Models::CallDialParams::DeepfakeDetection, nil]
|
|
132
|
+
optional :deepfake_detection, -> { Telnyx::CallDialParams::DeepfakeDetection }
|
|
133
|
+
|
|
125
134
|
# @!attribute dialogflow_config
|
|
126
135
|
#
|
|
127
136
|
# @return [Telnyx::Models::DialogflowConfig, nil]
|
|
@@ -439,7 +448,7 @@ module Telnyx
|
|
|
439
448
|
# @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod, nil]
|
|
440
449
|
optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod }
|
|
441
450
|
|
|
442
|
-
# @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
451
|
+
# @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
443
452
|
# Some parameter documentations has been truncated, see
|
|
444
453
|
# {Telnyx::Models::CallDialParams} for more details.
|
|
445
454
|
#
|
|
@@ -471,6 +480,8 @@ module Telnyx
|
|
|
471
480
|
#
|
|
472
481
|
# @param custom_headers [Array<Telnyx::Models::CustomSipHeader>] Custom headers to be added to the SIP INVITE.
|
|
473
482
|
#
|
|
483
|
+
# @param deepfake_detection [Telnyx::Models::CallDialParams::DeepfakeDetection] Enables deepfake detection on the call. When enabled, audio from the remote part
|
|
484
|
+
#
|
|
474
485
|
# @param dialogflow_config [Telnyx::Models::DialogflowConfig]
|
|
475
486
|
#
|
|
476
487
|
# @param enable_dialogflow [Boolean] Enables Dialogflow for the current call. The default value is false.
|
|
@@ -886,6 +897,42 @@ module Telnyx
|
|
|
886
897
|
end
|
|
887
898
|
end
|
|
888
899
|
|
|
900
|
+
class DeepfakeDetection < Telnyx::Internal::Type::BaseModel
|
|
901
|
+
# @!attribute enabled
|
|
902
|
+
# Whether deepfake detection is enabled.
|
|
903
|
+
#
|
|
904
|
+
# @return [Boolean]
|
|
905
|
+
required :enabled, Telnyx::Internal::Type::Boolean
|
|
906
|
+
|
|
907
|
+
# @!attribute rtp_timeout
|
|
908
|
+
# Maximum time in seconds to wait for RTP audio before timing out. If no audio is
|
|
909
|
+
# received within this window, detection stops with an error.
|
|
910
|
+
#
|
|
911
|
+
# @return [Integer, nil]
|
|
912
|
+
optional :rtp_timeout, Integer
|
|
913
|
+
|
|
914
|
+
# @!attribute timeout
|
|
915
|
+
# Maximum time in seconds to wait for a detection result before timing out.
|
|
916
|
+
#
|
|
917
|
+
# @return [Integer, nil]
|
|
918
|
+
optional :timeout, Integer
|
|
919
|
+
|
|
920
|
+
# @!method initialize(enabled:, rtp_timeout: nil, timeout: nil)
|
|
921
|
+
# Some parameter documentations has been truncated, see
|
|
922
|
+
# {Telnyx::Models::CallDialParams::DeepfakeDetection} for more details.
|
|
923
|
+
#
|
|
924
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
925
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
926
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
927
|
+
# webhook.
|
|
928
|
+
#
|
|
929
|
+
# @param enabled [Boolean] Whether deepfake detection is enabled.
|
|
930
|
+
#
|
|
931
|
+
# @param rtp_timeout [Integer] Maximum time in seconds to wait for RTP audio before timing out. If no audio is
|
|
932
|
+
#
|
|
933
|
+
# @param timeout [Integer] Maximum time in seconds to wait for a detection result before timing out.
|
|
934
|
+
end
|
|
935
|
+
|
|
889
936
|
# Defines whether media should be encrypted on the call.
|
|
890
937
|
module MediaEncryption
|
|
891
938
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -48,6 +48,15 @@ module Telnyx
|
|
|
48
48
|
# @return [Array<Telnyx::Models::CustomSipHeader>, nil]
|
|
49
49
|
optional :custom_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CustomSipHeader] }
|
|
50
50
|
|
|
51
|
+
# @!attribute deepfake_detection
|
|
52
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
53
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
54
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
55
|
+
# webhook.
|
|
56
|
+
#
|
|
57
|
+
# @return [Telnyx::Models::Calls::ActionAnswerParams::DeepfakeDetection, nil]
|
|
58
|
+
optional :deepfake_detection, -> { Telnyx::Calls::ActionAnswerParams::DeepfakeDetection }
|
|
59
|
+
|
|
51
60
|
# @!attribute preferred_codecs
|
|
52
61
|
# The list of comma-separated codecs in a preferred order for the forked media to
|
|
53
62
|
# be received.
|
|
@@ -218,7 +227,7 @@ module Telnyx
|
|
|
218
227
|
# @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::WebhookURLsMethod, nil]
|
|
219
228
|
optional :webhook_urls_method, enum: -> { Telnyx::Calls::ActionAnswerParams::WebhookURLsMethod }
|
|
220
229
|
|
|
221
|
-
# @!method initialize(call_control_id:, assistant: nil, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
230
|
+
# @!method initialize(call_control_id:, assistant: nil, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, deepfake_detection: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
222
231
|
# Some parameter documentations has been truncated, see
|
|
223
232
|
# {Telnyx::Models::Calls::ActionAnswerParams} for more details.
|
|
224
233
|
#
|
|
@@ -234,6 +243,8 @@ module Telnyx
|
|
|
234
243
|
#
|
|
235
244
|
# @param custom_headers [Array<Telnyx::Models::CustomSipHeader>] Custom headers to be added to the SIP INVITE response.
|
|
236
245
|
#
|
|
246
|
+
# @param deepfake_detection [Telnyx::Models::Calls::ActionAnswerParams::DeepfakeDetection] Enables deepfake detection on the call. When enabled, audio from the remote part
|
|
247
|
+
#
|
|
237
248
|
# @param preferred_codecs [Symbol, Telnyx::Models::Calls::ActionAnswerParams::PreferredCodecs] The list of comma-separated codecs in a preferred order for the forked media to
|
|
238
249
|
#
|
|
239
250
|
# @param record [Symbol, Telnyx::Models::Calls::ActionAnswerParams::Record] Start recording automatically after an event. Disabled by default.
|
|
@@ -287,6 +298,42 @@ module Telnyx
|
|
|
287
298
|
#
|
|
288
299
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
289
300
|
|
|
301
|
+
class DeepfakeDetection < Telnyx::Internal::Type::BaseModel
|
|
302
|
+
# @!attribute enabled
|
|
303
|
+
# Whether deepfake detection is enabled.
|
|
304
|
+
#
|
|
305
|
+
# @return [Boolean]
|
|
306
|
+
required :enabled, Telnyx::Internal::Type::Boolean
|
|
307
|
+
|
|
308
|
+
# @!attribute rtp_timeout
|
|
309
|
+
# Maximum time in seconds to wait for RTP audio before timing out. If no audio is
|
|
310
|
+
# received within this window, detection stops with an error.
|
|
311
|
+
#
|
|
312
|
+
# @return [Integer, nil]
|
|
313
|
+
optional :rtp_timeout, Integer
|
|
314
|
+
|
|
315
|
+
# @!attribute timeout
|
|
316
|
+
# Maximum time in seconds to wait for a detection result before timing out.
|
|
317
|
+
#
|
|
318
|
+
# @return [Integer, nil]
|
|
319
|
+
optional :timeout, Integer
|
|
320
|
+
|
|
321
|
+
# @!method initialize(enabled:, rtp_timeout: nil, timeout: nil)
|
|
322
|
+
# Some parameter documentations has been truncated, see
|
|
323
|
+
# {Telnyx::Models::Calls::ActionAnswerParams::DeepfakeDetection} for more details.
|
|
324
|
+
#
|
|
325
|
+
# Enables deepfake detection on the call. When enabled, audio from the remote
|
|
326
|
+
# party is streamed to a detection service that analyzes whether the voice is
|
|
327
|
+
# AI-generated. Results are delivered via the `call.deepfake_detection.result`
|
|
328
|
+
# webhook.
|
|
329
|
+
#
|
|
330
|
+
# @param enabled [Boolean] Whether deepfake detection is enabled.
|
|
331
|
+
#
|
|
332
|
+
# @param rtp_timeout [Integer] Maximum time in seconds to wait for RTP audio before timing out. If no audio is
|
|
333
|
+
#
|
|
334
|
+
# @param timeout [Integer] Maximum time in seconds to wait for a detection result before timing out.
|
|
335
|
+
end
|
|
336
|
+
|
|
290
337
|
# The list of comma-separated codecs in a preferred order for the forked media to
|
|
291
338
|
# be received.
|
|
292
339
|
module PreferredCodecs
|
|
@@ -21,6 +21,10 @@ module Telnyx
|
|
|
21
21
|
|
|
22
22
|
variant -> { Telnyx::CallCostWebhookEvent }
|
|
23
23
|
|
|
24
|
+
variant -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent }
|
|
25
|
+
|
|
26
|
+
variant -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent }
|
|
27
|
+
|
|
24
28
|
variant -> { Telnyx::CallDtmfReceivedWebhookEvent }
|
|
25
29
|
|
|
26
30
|
variant -> { Telnyx::CallEnqueuedWebhookEvent }
|
|
@@ -128,7 +132,7 @@ module Telnyx
|
|
|
128
132
|
variant -> { Telnyx::TranscriptionWebhookEvent }
|
|
129
133
|
|
|
130
134
|
# @!method self.variants
|
|
131
|
-
# @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdate, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
|
|
135
|
+
# @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdate, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
|
|
132
136
|
end
|
|
133
137
|
end
|
|
134
138
|
end
|
|
@@ -21,6 +21,10 @@ module Telnyx
|
|
|
21
21
|
|
|
22
22
|
variant -> { Telnyx::CallCostWebhookEvent }
|
|
23
23
|
|
|
24
|
+
variant -> { Telnyx::CallDeepfakeDetectionErrorWebhookEvent }
|
|
25
|
+
|
|
26
|
+
variant -> { Telnyx::CallDeepfakeDetectionResultWebhookEvent }
|
|
27
|
+
|
|
24
28
|
variant -> { Telnyx::CallDtmfReceivedWebhookEvent }
|
|
25
29
|
|
|
26
30
|
variant -> { Telnyx::CallEnqueuedWebhookEvent }
|
|
@@ -128,7 +132,7 @@ module Telnyx
|
|
|
128
132
|
variant -> { Telnyx::TranscriptionWebhookEvent }
|
|
129
133
|
|
|
130
134
|
# @!method self.variants
|
|
131
|
-
# @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdate, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
|
|
135
|
+
# @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallCostWebhookEvent, Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent, Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdate, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChanged, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDelivered, Telnyx::Models::FaxFailed, Telnyx::Models::FaxMediaProcessed, Telnyx::Models::FaxQueued, Telnyx::Models::FaxSendingStarted, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdate, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
|
|
132
136
|
end
|
|
133
137
|
end
|
|
134
138
|
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -213,6 +213,10 @@ module Telnyx
|
|
|
213
213
|
|
|
214
214
|
CallCostWebhookEvent = Telnyx::Models::CallCostWebhookEvent
|
|
215
215
|
|
|
216
|
+
CallDeepfakeDetectionErrorWebhookEvent = Telnyx::Models::CallDeepfakeDetectionErrorWebhookEvent
|
|
217
|
+
|
|
218
|
+
CallDeepfakeDetectionResultWebhookEvent = Telnyx::Models::CallDeepfakeDetectionResultWebhookEvent
|
|
219
|
+
|
|
216
220
|
CallDialParams = Telnyx::Models::CallDialParams
|
|
217
221
|
|
|
218
222
|
CallDtmfReceived = Telnyx::Models::CallDtmfReceived
|
|
@@ -45,13 +45,16 @@ module Telnyx
|
|
|
45
45
|
# **Expected Webhooks:**
|
|
46
46
|
#
|
|
47
47
|
# - `call.answered`
|
|
48
|
+
# - `call.deepfake_detection.result` if `deepfake_detection` was enabled
|
|
49
|
+
# - `call.deepfake_detection.error` if `deepfake_detection` was enabled and an
|
|
50
|
+
# error occurred
|
|
48
51
|
# - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url`
|
|
49
52
|
# was set
|
|
50
53
|
#
|
|
51
54
|
# When the `record` parameter is set to `record-from-answer`, the response will
|
|
52
55
|
# include a `recording_id` field.
|
|
53
56
|
#
|
|
54
|
-
# @overload answer(call_control_id, assistant: nil, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
57
|
+
# @overload answer(call_control_id, assistant: nil, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, deepfake_detection: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
55
58
|
#
|
|
56
59
|
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
57
60
|
#
|
|
@@ -65,6 +68,8 @@ module Telnyx
|
|
|
65
68
|
#
|
|
66
69
|
# @param custom_headers [Array<Telnyx::Models::CustomSipHeader>] Custom headers to be added to the SIP INVITE response.
|
|
67
70
|
#
|
|
71
|
+
# @param deepfake_detection [Telnyx::Models::Calls::ActionAnswerParams::DeepfakeDetection] Enables deepfake detection on the call. When enabled, audio from the remote part
|
|
72
|
+
#
|
|
68
73
|
# @param preferred_codecs [Symbol, Telnyx::Models::Calls::ActionAnswerParams::PreferredCodecs] The list of comma-separated codecs in a preferred order for the forked media to
|
|
69
74
|
#
|
|
70
75
|
# @param record [Symbol, Telnyx::Models::Calls::ActionAnswerParams::Record] Start recording automatically after an event. Disabled by default.
|