telnyx 5.7.0 → 5.7.1
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/ai/audio_transcribe_params.rb +32 -5
- data/lib/telnyx/models/calls/action_start_recording_params.rb +122 -7
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_update_response.rb +9 -1
- data/lib/telnyx/resources/ai/audio.rb +5 -1
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/texml/calls.rb +0 -130
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +0 -4
- data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +53 -7
- data/rbi/telnyx/models/calls/action_start_recording_params.rbi +565 -9
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_update_response.rbi +11 -0
- data/rbi/telnyx/resources/ai/audio.rbi +18 -3
- data/rbi/telnyx/resources/calls/actions.rbi +5 -3
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/calls.rbi +0 -180
- data/sig/telnyx/models/ai/audio_transcribe_params.rbs +18 -1
- data/sig/telnyx/models/calls/action_start_recording_params.rbs +219 -5
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_update_response.rbs +7 -0
- data/sig/telnyx/resources/ai/audio.rbs +2 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/texml/calls.rbs +0 -49
- metadata +2 -14
- data/lib/telnyx/models/texml/call_initiate_params.rb +0 -427
- data/lib/telnyx/models/texml/call_initiate_response.rb +0 -41
- data/lib/telnyx/models/texml/call_update_params.rb +0 -16
- data/lib/telnyx/models/texml/call_update_response.rb +0 -35
- data/rbi/telnyx/models/texml/call_initiate_params.rbi +0 -886
- data/rbi/telnyx/models/texml/call_initiate_response.rbi +0 -85
- data/rbi/telnyx/models/texml/call_update_params.rbi +0 -29
- data/rbi/telnyx/models/texml/call_update_response.rbi +0 -75
- data/sig/telnyx/models/texml/call_initiate_params.rbs +0 -371
- data/sig/telnyx/models/texml/call_initiate_response.rbs +0 -44
- data/sig/telnyx/models/texml/call_update_params.rbs +0 -17
- data/sig/telnyx/models/texml/call_update_response.rbs +0 -40
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Texml
|
|
6
|
-
# @see Telnyx::Resources::Texml::Calls#initiate
|
|
7
|
-
class CallInitiateParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!attribute from
|
|
12
|
-
# The phone number of the party that initiated the call. Phone numbers are
|
|
13
|
-
# formatted with a `+` and country code.
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :from, String, api_name: :From
|
|
17
|
-
|
|
18
|
-
# @!attribute to
|
|
19
|
-
# The phone number of the called party. Phone numbers are formatted with a `+` and
|
|
20
|
-
# country code.
|
|
21
|
-
#
|
|
22
|
-
# @return [String]
|
|
23
|
-
required :to, String, api_name: :To
|
|
24
|
-
|
|
25
|
-
# @!attribute async_amd
|
|
26
|
-
# Select whether to perform answering machine detection in the background. By
|
|
27
|
-
# default execution is blocked until Answering Machine Detection is completed.
|
|
28
|
-
#
|
|
29
|
-
# @return [Boolean, nil]
|
|
30
|
-
optional :async_amd, Telnyx::Internal::Type::Boolean, api_name: :AsyncAmd
|
|
31
|
-
|
|
32
|
-
# @!attribute async_amd_status_callback
|
|
33
|
-
# URL destination for Telnyx to send AMD callback events to for the call.
|
|
34
|
-
#
|
|
35
|
-
# @return [String, nil]
|
|
36
|
-
optional :async_amd_status_callback, String, api_name: :AsyncAmdStatusCallback
|
|
37
|
-
|
|
38
|
-
# @!attribute async_amd_status_callback_method
|
|
39
|
-
# HTTP request type used for `AsyncAmdStatusCallback`. The default value is
|
|
40
|
-
# inherited from TeXML Application setting.
|
|
41
|
-
#
|
|
42
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::AsyncAmdStatusCallbackMethod, nil]
|
|
43
|
-
optional :async_amd_status_callback_method,
|
|
44
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::AsyncAmdStatusCallbackMethod },
|
|
45
|
-
api_name: :AsyncAmdStatusCallbackMethod
|
|
46
|
-
|
|
47
|
-
# @!attribute caller_id
|
|
48
|
-
# To be used as the caller id name (SIP From Display Name) presented to the
|
|
49
|
-
# destination (`To` number). The string should have a maximum of 128 characters,
|
|
50
|
-
# containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
51
|
-
# ommited, the display name will be the same as the number in the `From` field.
|
|
52
|
-
#
|
|
53
|
-
# @return [String, nil]
|
|
54
|
-
optional :caller_id, String, api_name: :CallerId
|
|
55
|
-
|
|
56
|
-
# @!attribute cancel_playback_on_detect_message_end
|
|
57
|
-
# Whether to cancel ongoing playback on `greeting ended` detection. Defaults to
|
|
58
|
-
# `true`.
|
|
59
|
-
#
|
|
60
|
-
# @return [Boolean, nil]
|
|
61
|
-
optional :cancel_playback_on_detect_message_end,
|
|
62
|
-
Telnyx::Internal::Type::Boolean,
|
|
63
|
-
api_name: :CancelPlaybackOnDetectMessageEnd
|
|
64
|
-
|
|
65
|
-
# @!attribute cancel_playback_on_machine_detection
|
|
66
|
-
# Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
|
|
67
|
-
#
|
|
68
|
-
# @return [Boolean, nil]
|
|
69
|
-
optional :cancel_playback_on_machine_detection,
|
|
70
|
-
Telnyx::Internal::Type::Boolean,
|
|
71
|
-
api_name: :CancelPlaybackOnMachineDetection
|
|
72
|
-
|
|
73
|
-
# @!attribute detection_mode
|
|
74
|
-
# Allows you to chose between Premium and Standard detections.
|
|
75
|
-
#
|
|
76
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::DetectionMode, nil]
|
|
77
|
-
optional :detection_mode,
|
|
78
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::DetectionMode },
|
|
79
|
-
api_name: :DetectionMode
|
|
80
|
-
|
|
81
|
-
# @!attribute fallback_url
|
|
82
|
-
# A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
83
|
-
# `Url` is not responding.
|
|
84
|
-
#
|
|
85
|
-
# @return [String, nil]
|
|
86
|
-
optional :fallback_url, String, api_name: :FallbackUrl
|
|
87
|
-
|
|
88
|
-
# @!attribute machine_detection
|
|
89
|
-
# Enables Answering Machine Detection.
|
|
90
|
-
#
|
|
91
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::MachineDetection, nil]
|
|
92
|
-
optional :machine_detection,
|
|
93
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::MachineDetection },
|
|
94
|
-
api_name: :MachineDetection
|
|
95
|
-
|
|
96
|
-
# @!attribute machine_detection_silence_timeout
|
|
97
|
-
# If initial silence duration is greater than this value, consider it a machine.
|
|
98
|
-
# Ignored when `premium` detection is used.
|
|
99
|
-
#
|
|
100
|
-
# @return [Integer, nil]
|
|
101
|
-
optional :machine_detection_silence_timeout, Integer, api_name: :MachineDetectionSilenceTimeout
|
|
102
|
-
|
|
103
|
-
# @!attribute machine_detection_speech_end_threshold
|
|
104
|
-
# Silence duration threshold after a greeting message or voice for it be
|
|
105
|
-
# considered human. Ignored when `premium` detection is used.
|
|
106
|
-
#
|
|
107
|
-
# @return [Integer, nil]
|
|
108
|
-
optional :machine_detection_speech_end_threshold,
|
|
109
|
-
Integer,
|
|
110
|
-
api_name: :MachineDetectionSpeechEndThreshold
|
|
111
|
-
|
|
112
|
-
# @!attribute machine_detection_speech_threshold
|
|
113
|
-
# Maximum threshold of a human greeting. If greeting longer than this value,
|
|
114
|
-
# considered machine. Ignored when `premium` detection is used.
|
|
115
|
-
#
|
|
116
|
-
# @return [Integer, nil]
|
|
117
|
-
optional :machine_detection_speech_threshold, Integer, api_name: :MachineDetectionSpeechThreshold
|
|
118
|
-
|
|
119
|
-
# @!attribute machine_detection_timeout
|
|
120
|
-
# Maximum timeout threshold in milliseconds for overall detection.
|
|
121
|
-
#
|
|
122
|
-
# @return [Integer, nil]
|
|
123
|
-
optional :machine_detection_timeout, Integer, api_name: :MachineDetectionTimeout
|
|
124
|
-
|
|
125
|
-
# @!attribute preferred_codecs
|
|
126
|
-
# The list of comma-separated codecs to be offered on a call.
|
|
127
|
-
#
|
|
128
|
-
# @return [String, nil]
|
|
129
|
-
optional :preferred_codecs, String, api_name: :PreferredCodecs
|
|
130
|
-
|
|
131
|
-
# @!attribute record
|
|
132
|
-
# Whether to record the entire participant's call leg. Defaults to `false`.
|
|
133
|
-
#
|
|
134
|
-
# @return [Boolean, nil]
|
|
135
|
-
optional :record, Telnyx::Internal::Type::Boolean, api_name: :Record
|
|
136
|
-
|
|
137
|
-
# @!attribute recording_channels
|
|
138
|
-
# The number of channels in the final recording. Defaults to `mono`.
|
|
139
|
-
#
|
|
140
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingChannels, nil]
|
|
141
|
-
optional :recording_channels,
|
|
142
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::RecordingChannels },
|
|
143
|
-
api_name: :RecordingChannels
|
|
144
|
-
|
|
145
|
-
# @!attribute recording_status_callback
|
|
146
|
-
# The URL the recording callbacks will be sent to.
|
|
147
|
-
#
|
|
148
|
-
# @return [String, nil]
|
|
149
|
-
optional :recording_status_callback, String, api_name: :RecordingStatusCallback
|
|
150
|
-
|
|
151
|
-
# @!attribute recording_status_callback_event
|
|
152
|
-
# The changes to the recording's state that should generate a call to
|
|
153
|
-
# `RecoridngStatusCallback`. Can be: `in-progress`, `completed` and `absent`.
|
|
154
|
-
# Separate multiple values with a space. Defaults to `completed`.
|
|
155
|
-
#
|
|
156
|
-
# @return [String, nil]
|
|
157
|
-
optional :recording_status_callback_event, String, api_name: :RecordingStatusCallbackEvent
|
|
158
|
-
|
|
159
|
-
# @!attribute recording_status_callback_method
|
|
160
|
-
# HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
161
|
-
#
|
|
162
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingStatusCallbackMethod, nil]
|
|
163
|
-
optional :recording_status_callback_method,
|
|
164
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::RecordingStatusCallbackMethod },
|
|
165
|
-
api_name: :RecordingStatusCallbackMethod
|
|
166
|
-
|
|
167
|
-
# @!attribute recording_timeout
|
|
168
|
-
# The number of seconds that Telnyx will wait for the recording to be stopped if
|
|
169
|
-
# silence is detected. The timer only starts when the speech is detected. Please
|
|
170
|
-
# note that the transcription is used to detect silence and the related charge
|
|
171
|
-
# will be applied. The minimum value is 0. The default value is 0 (infinite)
|
|
172
|
-
#
|
|
173
|
-
# @return [Integer, nil]
|
|
174
|
-
optional :recording_timeout, Integer, api_name: :RecordingTimeout
|
|
175
|
-
|
|
176
|
-
# @!attribute recording_track
|
|
177
|
-
# The audio track to record for the call. The default is `both`.
|
|
178
|
-
#
|
|
179
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingTrack, nil]
|
|
180
|
-
optional :recording_track,
|
|
181
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::RecordingTrack },
|
|
182
|
-
api_name: :RecordingTrack
|
|
183
|
-
|
|
184
|
-
# @!attribute sip_auth_password
|
|
185
|
-
# The password to use for SIP authentication.
|
|
186
|
-
#
|
|
187
|
-
# @return [String, nil]
|
|
188
|
-
optional :sip_auth_password, String, api_name: :SipAuthPassword
|
|
189
|
-
|
|
190
|
-
# @!attribute sip_auth_username
|
|
191
|
-
# The username to use for SIP authentication.
|
|
192
|
-
#
|
|
193
|
-
# @return [String, nil]
|
|
194
|
-
optional :sip_auth_username, String, api_name: :SipAuthUsername
|
|
195
|
-
|
|
196
|
-
# @!attribute status_callback
|
|
197
|
-
# URL destination for Telnyx to send status callback events to for the call.
|
|
198
|
-
#
|
|
199
|
-
# @return [String, nil]
|
|
200
|
-
optional :status_callback, String, api_name: :StatusCallback
|
|
201
|
-
|
|
202
|
-
# @!attribute status_callback_event
|
|
203
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
204
|
-
# defined when separated by a space.
|
|
205
|
-
#
|
|
206
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::StatusCallbackEvent, nil]
|
|
207
|
-
optional :status_callback_event,
|
|
208
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::StatusCallbackEvent },
|
|
209
|
-
api_name: :StatusCallbackEvent
|
|
210
|
-
|
|
211
|
-
# @!attribute status_callback_method
|
|
212
|
-
# HTTP request type used for `StatusCallback`.
|
|
213
|
-
#
|
|
214
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::StatusCallbackMethod, nil]
|
|
215
|
-
optional :status_callback_method,
|
|
216
|
-
enum: -> { Telnyx::Texml::CallInitiateParams::StatusCallbackMethod },
|
|
217
|
-
api_name: :StatusCallbackMethod
|
|
218
|
-
|
|
219
|
-
# @!attribute trim
|
|
220
|
-
# Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
221
|
-
# `trim-silence`.
|
|
222
|
-
#
|
|
223
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::Trim, nil]
|
|
224
|
-
optional :trim, enum: -> { Telnyx::Texml::CallInitiateParams::Trim }, api_name: :Trim
|
|
225
|
-
|
|
226
|
-
# @!attribute url
|
|
227
|
-
# The URL from which Telnyx will retrieve the TeXML call instructions.
|
|
228
|
-
#
|
|
229
|
-
# @return [String, nil]
|
|
230
|
-
optional :url, String, api_name: :Url
|
|
231
|
-
|
|
232
|
-
# @!attribute url_method
|
|
233
|
-
# HTTP request type used for `Url`. The default value is inherited from TeXML
|
|
234
|
-
# Application setting.
|
|
235
|
-
#
|
|
236
|
-
# @return [Symbol, Telnyx::Models::Texml::CallInitiateParams::URLMethod, nil]
|
|
237
|
-
optional :url_method, enum: -> { Telnyx::Texml::CallInitiateParams::URLMethod }, api_name: :UrlMethod
|
|
238
|
-
|
|
239
|
-
# @!method initialize(from:, to:, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, detection_mode: nil, fallback_url: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, trim: nil, url: nil, url_method: nil, request_options: {})
|
|
240
|
-
# Some parameter documentations has been truncated, see
|
|
241
|
-
# {Telnyx::Models::Texml::CallInitiateParams} for more details.
|
|
242
|
-
#
|
|
243
|
-
# @param from [String] The phone number of the party that initiated the call. Phone numbers are formatt
|
|
244
|
-
#
|
|
245
|
-
# @param to [String] The phone number of the called party. Phone numbers are formatted with a `+` and
|
|
246
|
-
#
|
|
247
|
-
# @param async_amd [Boolean] Select whether to perform answering machine detection in the background. By defa
|
|
248
|
-
#
|
|
249
|
-
# @param async_amd_status_callback [String] URL destination for Telnyx to send AMD callback events to for the call.
|
|
250
|
-
#
|
|
251
|
-
# @param async_amd_status_callback_method [Symbol, Telnyx::Models::Texml::CallInitiateParams::AsyncAmdStatusCallbackMethod] HTTP request type used for `AsyncAmdStatusCallback`. The default value is inheri
|
|
252
|
-
#
|
|
253
|
-
# @param caller_id [String] To be used as the caller id name (SIP From Display Name) presented to the destin
|
|
254
|
-
#
|
|
255
|
-
# @param cancel_playback_on_detect_message_end [Boolean] Whether to cancel ongoing playback on `greeting ended` detection. Defaults to `t
|
|
256
|
-
#
|
|
257
|
-
# @param cancel_playback_on_machine_detection [Boolean] Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
|
|
258
|
-
#
|
|
259
|
-
# @param detection_mode [Symbol, Telnyx::Models::Texml::CallInitiateParams::DetectionMode] Allows you to chose between Premium and Standard detections.
|
|
260
|
-
#
|
|
261
|
-
# @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
262
|
-
#
|
|
263
|
-
# @param machine_detection [Symbol, Telnyx::Models::Texml::CallInitiateParams::MachineDetection] Enables Answering Machine Detection.
|
|
264
|
-
#
|
|
265
|
-
# @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
|
|
266
|
-
#
|
|
267
|
-
# @param machine_detection_speech_end_threshold [Integer] Silence duration threshold after a greeting message or voice for it be considere
|
|
268
|
-
#
|
|
269
|
-
# @param machine_detection_speech_threshold [Integer] Maximum threshold of a human greeting. If greeting longer than this value, consi
|
|
270
|
-
#
|
|
271
|
-
# @param machine_detection_timeout [Integer] Maximum timeout threshold in milliseconds for overall detection.
|
|
272
|
-
#
|
|
273
|
-
# @param preferred_codecs [String] The list of comma-separated codecs to be offered on a call.
|
|
274
|
-
#
|
|
275
|
-
# @param record [Boolean] Whether to record the entire participant's call leg. Defaults to `false`.
|
|
276
|
-
#
|
|
277
|
-
# @param recording_channels [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingChannels] The number of channels in the final recording. Defaults to `mono`.
|
|
278
|
-
#
|
|
279
|
-
# @param recording_status_callback [String] The URL the recording callbacks will be sent to.
|
|
280
|
-
#
|
|
281
|
-
# @param recording_status_callback_event [String] The changes to the recording's state that should generate a call to `RecoridngSt
|
|
282
|
-
#
|
|
283
|
-
# @param recording_status_callback_method [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingStatusCallbackMethod] HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
284
|
-
#
|
|
285
|
-
# @param recording_timeout [Integer] The number of seconds that Telnyx will wait for the recording to be stopped if s
|
|
286
|
-
#
|
|
287
|
-
# @param recording_track [Symbol, Telnyx::Models::Texml::CallInitiateParams::RecordingTrack] The audio track to record for the call. The default is `both`.
|
|
288
|
-
#
|
|
289
|
-
# @param sip_auth_password [String] The password to use for SIP authentication.
|
|
290
|
-
#
|
|
291
|
-
# @param sip_auth_username [String] The username to use for SIP authentication.
|
|
292
|
-
#
|
|
293
|
-
# @param status_callback [String] URL destination for Telnyx to send status callback events to for the call.
|
|
294
|
-
#
|
|
295
|
-
# @param status_callback_event [Symbol, Telnyx::Models::Texml::CallInitiateParams::StatusCallbackEvent] The call events for which Telnyx should send a webhook. Multiple events can be d
|
|
296
|
-
#
|
|
297
|
-
# @param status_callback_method [Symbol, Telnyx::Models::Texml::CallInitiateParams::StatusCallbackMethod] HTTP request type used for `StatusCallback`.
|
|
298
|
-
#
|
|
299
|
-
# @param trim [Symbol, Telnyx::Models::Texml::CallInitiateParams::Trim] Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
300
|
-
#
|
|
301
|
-
# @param url [String] The URL from which Telnyx will retrieve the TeXML call instructions.
|
|
302
|
-
#
|
|
303
|
-
# @param url_method [Symbol, Telnyx::Models::Texml::CallInitiateParams::URLMethod] HTTP request type used for `Url`. The default value is inherited from TeXML Appl
|
|
304
|
-
#
|
|
305
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
306
|
-
|
|
307
|
-
# HTTP request type used for `AsyncAmdStatusCallback`. The default value is
|
|
308
|
-
# inherited from TeXML Application setting.
|
|
309
|
-
module AsyncAmdStatusCallbackMethod
|
|
310
|
-
extend Telnyx::Internal::Type::Enum
|
|
311
|
-
|
|
312
|
-
GET = :GET
|
|
313
|
-
POST = :POST
|
|
314
|
-
|
|
315
|
-
# @!method self.values
|
|
316
|
-
# @return [Array<Symbol>]
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
# Allows you to chose between Premium and Standard detections.
|
|
320
|
-
module DetectionMode
|
|
321
|
-
extend Telnyx::Internal::Type::Enum
|
|
322
|
-
|
|
323
|
-
PREMIUM = :Premium
|
|
324
|
-
REGULAR = :Regular
|
|
325
|
-
|
|
326
|
-
# @!method self.values
|
|
327
|
-
# @return [Array<Symbol>]
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
# Enables Answering Machine Detection.
|
|
331
|
-
module MachineDetection
|
|
332
|
-
extend Telnyx::Internal::Type::Enum
|
|
333
|
-
|
|
334
|
-
ENABLE = :Enable
|
|
335
|
-
DISABLE = :Disable
|
|
336
|
-
DETECT_MESSAGE_END = :DetectMessageEnd
|
|
337
|
-
|
|
338
|
-
# @!method self.values
|
|
339
|
-
# @return [Array<Symbol>]
|
|
340
|
-
end
|
|
341
|
-
|
|
342
|
-
# The number of channels in the final recording. Defaults to `mono`.
|
|
343
|
-
module RecordingChannels
|
|
344
|
-
extend Telnyx::Internal::Type::Enum
|
|
345
|
-
|
|
346
|
-
MONO = :mono
|
|
347
|
-
DUAL = :dual
|
|
348
|
-
|
|
349
|
-
# @!method self.values
|
|
350
|
-
# @return [Array<Symbol>]
|
|
351
|
-
end
|
|
352
|
-
|
|
353
|
-
# HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
354
|
-
module RecordingStatusCallbackMethod
|
|
355
|
-
extend Telnyx::Internal::Type::Enum
|
|
356
|
-
|
|
357
|
-
GET = :GET
|
|
358
|
-
POST = :POST
|
|
359
|
-
|
|
360
|
-
# @!method self.values
|
|
361
|
-
# @return [Array<Symbol>]
|
|
362
|
-
end
|
|
363
|
-
|
|
364
|
-
# The audio track to record for the call. The default is `both`.
|
|
365
|
-
module RecordingTrack
|
|
366
|
-
extend Telnyx::Internal::Type::Enum
|
|
367
|
-
|
|
368
|
-
INBOUND = :inbound
|
|
369
|
-
OUTBOUND = :outbound
|
|
370
|
-
BOTH = :both
|
|
371
|
-
|
|
372
|
-
# @!method self.values
|
|
373
|
-
# @return [Array<Symbol>]
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
377
|
-
# defined when separated by a space.
|
|
378
|
-
module StatusCallbackEvent
|
|
379
|
-
extend Telnyx::Internal::Type::Enum
|
|
380
|
-
|
|
381
|
-
INITIATED = :initiated
|
|
382
|
-
RINGING = :ringing
|
|
383
|
-
ANSWERED = :answered
|
|
384
|
-
COMPLETED = :completed
|
|
385
|
-
|
|
386
|
-
# @!method self.values
|
|
387
|
-
# @return [Array<Symbol>]
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# HTTP request type used for `StatusCallback`.
|
|
391
|
-
module StatusCallbackMethod
|
|
392
|
-
extend Telnyx::Internal::Type::Enum
|
|
393
|
-
|
|
394
|
-
GET = :GET
|
|
395
|
-
POST = :POST
|
|
396
|
-
|
|
397
|
-
# @!method self.values
|
|
398
|
-
# @return [Array<Symbol>]
|
|
399
|
-
end
|
|
400
|
-
|
|
401
|
-
# Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
402
|
-
# `trim-silence`.
|
|
403
|
-
module Trim
|
|
404
|
-
extend Telnyx::Internal::Type::Enum
|
|
405
|
-
|
|
406
|
-
TRIM_SILENCE = :"trim-silence"
|
|
407
|
-
DO_NOT_TRIM = :"do-not-trim"
|
|
408
|
-
|
|
409
|
-
# @!method self.values
|
|
410
|
-
# @return [Array<Symbol>]
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
# HTTP request type used for `Url`. The default value is inherited from TeXML
|
|
414
|
-
# Application setting.
|
|
415
|
-
module URLMethod
|
|
416
|
-
extend Telnyx::Internal::Type::Enum
|
|
417
|
-
|
|
418
|
-
GET = :GET
|
|
419
|
-
POST = :POST
|
|
420
|
-
|
|
421
|
-
# @!method self.values
|
|
422
|
-
# @return [Array<Symbol>]
|
|
423
|
-
end
|
|
424
|
-
end
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
|
-
end
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Texml
|
|
6
|
-
# @see Telnyx::Resources::Texml::Calls#initiate
|
|
7
|
-
class CallInitiateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute data
|
|
9
|
-
#
|
|
10
|
-
# @return [Telnyx::Models::Texml::CallInitiateResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Telnyx::Models::Texml::CallInitiateResponse::Data }
|
|
12
|
-
|
|
13
|
-
# @!method initialize(data: nil)
|
|
14
|
-
# @param data [Telnyx::Models::Texml::CallInitiateResponse::Data]
|
|
15
|
-
|
|
16
|
-
# @see Telnyx::Models::Texml::CallInitiateResponse#data
|
|
17
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
-
# @!attribute from
|
|
19
|
-
#
|
|
20
|
-
# @return [String, nil]
|
|
21
|
-
optional :from, String
|
|
22
|
-
|
|
23
|
-
# @!attribute status
|
|
24
|
-
#
|
|
25
|
-
# @return [String, nil]
|
|
26
|
-
optional :status, String
|
|
27
|
-
|
|
28
|
-
# @!attribute to
|
|
29
|
-
#
|
|
30
|
-
# @return [String, nil]
|
|
31
|
-
optional :to, String
|
|
32
|
-
|
|
33
|
-
# @!method initialize(from: nil, status: nil, to: nil)
|
|
34
|
-
# @param from [String]
|
|
35
|
-
# @param status [String]
|
|
36
|
-
# @param to [String]
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Texml
|
|
6
|
-
# @see Telnyx::Resources::Texml::Calls#update
|
|
7
|
-
class CallUpdateParams < Telnyx::Models::Texml::Accounts::UpdateCall
|
|
8
|
-
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!method initialize(request_options: {})
|
|
12
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Texml
|
|
6
|
-
# @see Telnyx::Resources::Texml::Calls#update
|
|
7
|
-
class CallUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute data
|
|
9
|
-
#
|
|
10
|
-
# @return [Telnyx::Models::Texml::CallUpdateResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Telnyx::Models::Texml::CallUpdateResponse::Data }
|
|
12
|
-
|
|
13
|
-
# @!method initialize(data: nil)
|
|
14
|
-
# @param data [Telnyx::Models::Texml::CallUpdateResponse::Data]
|
|
15
|
-
|
|
16
|
-
# @see Telnyx::Models::Texml::CallUpdateResponse#data
|
|
17
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
-
# @!attribute sid
|
|
19
|
-
#
|
|
20
|
-
# @return [String, nil]
|
|
21
|
-
optional :sid, String
|
|
22
|
-
|
|
23
|
-
# @!attribute status
|
|
24
|
-
#
|
|
25
|
-
# @return [String, nil]
|
|
26
|
-
optional :status, String
|
|
27
|
-
|
|
28
|
-
# @!method initialize(sid: nil, status: nil)
|
|
29
|
-
# @param sid [String]
|
|
30
|
-
# @param status [String]
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|