telnyx 5.68.2 → 5.69.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 +35 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +7 -0
- data/lib/telnyx/internal/util.rb +18 -4
- data/lib/telnyx/models/ai/assistant_create_params.rb +47 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
- data/lib/telnyx/models/ai/assistant_update_params.rb +47 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +48 -1
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
- data/lib/telnyx/models/ai/inference_embedding.rb +48 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +141 -0
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
- data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
- data/lib/telnyx/models/verification.rb +1 -0
- data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
- data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
- data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
- data/lib/telnyx/models/whatsapp_message_content.rb +196 -1
- data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
- data/lib/telnyx/models.rb +15 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/pronunciation_dicts.rb +156 -0
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
- data/lib/telnyx/resources/texml.rb +106 -0
- data/lib/telnyx/resources/verifications.rb +28 -0
- data/lib/telnyx/resources/verify_profiles.rb +5 -2
- data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +13 -0
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/internal/util.rbi +8 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +130 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +130 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +132 -0
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
- data/rbi/telnyx/models/ai/inference_embedding.rbi +130 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +246 -0
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
- data/rbi/telnyx/models/verification.rbi +1 -0
- data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
- data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
- data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
- data/rbi/telnyx/models/whatsapp_message_content.rbi +492 -0
- data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
- data/rbi/telnyx/models.rbi +19 -10
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +4 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -0
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +131 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
- data/rbi/telnyx/resources/texml.rbi +164 -0
- data/rbi/telnyx/resources/verifications.rbi +23 -0
- data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
- data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/internal/util.rbs +4 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +62 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
- data/sig/telnyx/models/ai/assistant_update_params.rbs +62 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +62 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
- data/sig/telnyx/models/ai/inference_embedding.rbs +62 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +97 -0
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
- data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
- data/sig/telnyx/models/verification.rbs +2 -1
- data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
- data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
- data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
- data/sig/telnyx/models/whatsapp_message_content.rbs +205 -0
- data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
- data/sig/telnyx/models.rbs +14 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/pronunciation_dicts.rbs +33 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
- data/sig/telnyx/resources/texml.rbs +44 -0
- data/sig/telnyx/resources/verifications.rbs +8 -0
- data/sig/telnyx/resources/verify_profiles.rbs +2 -0
- data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
- metadata +41 -2
|
@@ -5,46 +5,7 @@ module Telnyx
|
|
|
5
5
|
type call_calls_params =
|
|
6
6
|
{
|
|
7
7
|
account_sid: String,
|
|
8
|
-
|
|
9
|
-
from: String,
|
|
10
|
-
to: String,
|
|
11
|
-
async_amd: bool,
|
|
12
|
-
async_amd_status_callback: String,
|
|
13
|
-
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method,
|
|
14
|
-
caller_id: String,
|
|
15
|
-
cancel_playback_on_detect_message_end: bool,
|
|
16
|
-
cancel_playback_on_machine_detection: bool,
|
|
17
|
-
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader],
|
|
18
|
-
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode,
|
|
19
|
-
fallback_url: String,
|
|
20
|
-
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::machine_detection,
|
|
21
|
-
machine_detection_silence_timeout: Integer,
|
|
22
|
-
machine_detection_speech_end_threshold: Integer,
|
|
23
|
-
machine_detection_speech_threshold: Integer,
|
|
24
|
-
machine_detection_timeout: Integer,
|
|
25
|
-
preferred_codecs: String,
|
|
26
|
-
record: bool,
|
|
27
|
-
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels,
|
|
28
|
-
recording_status_callback: String,
|
|
29
|
-
recording_status_callback_event: String,
|
|
30
|
-
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method,
|
|
31
|
-
recording_timeout: Integer,
|
|
32
|
-
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_track,
|
|
33
|
-
send_recording_url: bool,
|
|
34
|
-
sip_auth_password: String,
|
|
35
|
-
sip_auth_username: String,
|
|
36
|
-
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region,
|
|
37
|
-
status_callback: String,
|
|
38
|
-
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event,
|
|
39
|
-
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method,
|
|
40
|
-
supervise_call_sid: String,
|
|
41
|
-
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::supervising_role,
|
|
42
|
-
texml: String,
|
|
43
|
-
time_limit: Integer,
|
|
44
|
-
timeout_seconds: Integer,
|
|
45
|
-
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::trim,
|
|
46
|
-
url: String,
|
|
47
|
-
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::url_method
|
|
8
|
+
body: Telnyx::Models::Texml::Accounts::CallCallsParams::body
|
|
48
9
|
}
|
|
49
10
|
& Telnyx::Internal::Type::request_parameters
|
|
50
11
|
|
|
@@ -54,428 +15,1504 @@ module Telnyx
|
|
|
54
15
|
|
|
55
16
|
attr_accessor account_sid: String
|
|
56
17
|
|
|
57
|
-
attr_accessor
|
|
18
|
+
attr_accessor body: Telnyx::Models::Texml::Accounts::CallCallsParams::body
|
|
58
19
|
|
|
59
|
-
|
|
20
|
+
def initialize: (
|
|
21
|
+
account_sid: String,
|
|
22
|
+
body: Telnyx::Models::Texml::Accounts::CallCallsParams::body,
|
|
23
|
+
?request_options: Telnyx::request_opts
|
|
24
|
+
) -> void
|
|
60
25
|
|
|
61
|
-
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
account_sid: String,
|
|
28
|
+
body: Telnyx::Models::Texml::Accounts::CallCallsParams::body,
|
|
29
|
+
request_options: Telnyx::RequestOptions
|
|
30
|
+
}
|
|
62
31
|
|
|
63
|
-
|
|
32
|
+
type body =
|
|
33
|
+
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL
|
|
34
|
+
| Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml
|
|
35
|
+
| Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault
|
|
64
36
|
|
|
65
|
-
|
|
37
|
+
module Body
|
|
38
|
+
extend Telnyx::Internal::Type::Union
|
|
66
39
|
|
|
67
|
-
|
|
40
|
+
type with_url =
|
|
41
|
+
{
|
|
42
|
+
url: String,
|
|
43
|
+
application_sid: String,
|
|
44
|
+
async_amd: bool,
|
|
45
|
+
async_amd_status_callback: String,
|
|
46
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method,
|
|
47
|
+
caller_id: String,
|
|
48
|
+
cancel_playback_on_detect_message_end: bool,
|
|
49
|
+
cancel_playback_on_machine_detection: bool,
|
|
50
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader],
|
|
51
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode,
|
|
52
|
+
fallback_url: String,
|
|
53
|
+
from: String,
|
|
54
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection,
|
|
55
|
+
machine_detection_silence_timeout: Integer,
|
|
56
|
+
machine_detection_speech_end_threshold: Integer,
|
|
57
|
+
machine_detection_speech_threshold: Integer,
|
|
58
|
+
machine_detection_timeout: Integer,
|
|
59
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption,
|
|
60
|
+
preferred_codecs: String,
|
|
61
|
+
record: bool,
|
|
62
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels,
|
|
63
|
+
recording_status_callback: String,
|
|
64
|
+
recording_status_callback_event: String,
|
|
65
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method,
|
|
66
|
+
recording_timeout: Integer,
|
|
67
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track,
|
|
68
|
+
send_recording_url: bool,
|
|
69
|
+
sip_auth_password: String,
|
|
70
|
+
sip_auth_username: String,
|
|
71
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
|
|
72
|
+
status_callback: String,
|
|
73
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
|
|
74
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
|
|
75
|
+
supervise_call_sid: String,
|
|
76
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
|
|
77
|
+
texml: top,
|
|
78
|
+
time_limit: Integer,
|
|
79
|
+
timeout: Integer,
|
|
80
|
+
to: String,
|
|
81
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim,
|
|
82
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method
|
|
83
|
+
}
|
|
68
84
|
|
|
69
|
-
|
|
85
|
+
class WithURL < Telnyx::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor url: String
|
|
70
87
|
|
|
71
|
-
|
|
88
|
+
attr_reader application_sid: String?
|
|
72
89
|
|
|
73
|
-
|
|
74
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method
|
|
75
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method
|
|
90
|
+
def application_sid=: (String) -> String
|
|
76
91
|
|
|
77
|
-
|
|
92
|
+
attr_reader async_amd: bool?
|
|
78
93
|
|
|
79
|
-
|
|
94
|
+
def async_amd=: (bool) -> bool
|
|
80
95
|
|
|
81
|
-
|
|
96
|
+
attr_reader async_amd_status_callback: String?
|
|
82
97
|
|
|
83
|
-
|
|
98
|
+
def async_amd_status_callback=: (String) -> String
|
|
84
99
|
|
|
85
|
-
|
|
100
|
+
attr_reader async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method?
|
|
86
101
|
|
|
87
|
-
|
|
102
|
+
def async_amd_status_callback_method=: (
|
|
103
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method
|
|
104
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method
|
|
88
105
|
|
|
89
|
-
|
|
106
|
+
attr_reader caller_id: String?
|
|
90
107
|
|
|
91
|
-
|
|
92
|
-
::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader]
|
|
93
|
-
) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader]
|
|
108
|
+
def caller_id=: (String) -> String
|
|
94
109
|
|
|
95
|
-
|
|
110
|
+
attr_reader cancel_playback_on_detect_message_end: bool?
|
|
96
111
|
|
|
97
|
-
|
|
98
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode
|
|
99
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode
|
|
112
|
+
def cancel_playback_on_detect_message_end=: (bool) -> bool
|
|
100
113
|
|
|
101
|
-
|
|
114
|
+
attr_reader cancel_playback_on_machine_detection: bool?
|
|
102
115
|
|
|
103
|
-
|
|
116
|
+
def cancel_playback_on_machine_detection=: (bool) -> bool
|
|
104
117
|
|
|
105
|
-
|
|
118
|
+
attr_reader custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader]?
|
|
106
119
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
120
|
+
def custom_headers=: (
|
|
121
|
+
::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader]
|
|
122
|
+
) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader]
|
|
110
123
|
|
|
111
|
-
|
|
124
|
+
attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode?
|
|
112
125
|
|
|
113
|
-
|
|
126
|
+
def detection_mode=: (
|
|
127
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode
|
|
128
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode
|
|
114
129
|
|
|
115
|
-
|
|
130
|
+
attr_reader fallback_url: String?
|
|
116
131
|
|
|
117
|
-
|
|
132
|
+
def fallback_url=: (String) -> String
|
|
118
133
|
|
|
119
|
-
|
|
134
|
+
attr_reader from: String?
|
|
120
135
|
|
|
121
|
-
|
|
136
|
+
def from=: (String) -> String
|
|
122
137
|
|
|
123
|
-
|
|
138
|
+
attr_reader machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection?
|
|
124
139
|
|
|
125
|
-
|
|
140
|
+
def machine_detection=: (
|
|
141
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection
|
|
142
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection
|
|
126
143
|
|
|
127
|
-
|
|
144
|
+
attr_reader machine_detection_silence_timeout: Integer?
|
|
128
145
|
|
|
129
|
-
|
|
146
|
+
def machine_detection_silence_timeout=: (Integer) -> Integer
|
|
130
147
|
|
|
131
|
-
|
|
148
|
+
attr_reader machine_detection_speech_end_threshold: Integer?
|
|
132
149
|
|
|
133
|
-
|
|
150
|
+
def machine_detection_speech_end_threshold=: (Integer) -> Integer
|
|
134
151
|
|
|
135
|
-
|
|
152
|
+
attr_reader machine_detection_speech_threshold: Integer?
|
|
136
153
|
|
|
137
|
-
|
|
138
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels
|
|
139
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels
|
|
154
|
+
def machine_detection_speech_threshold=: (Integer) -> Integer
|
|
140
155
|
|
|
141
|
-
|
|
156
|
+
attr_reader machine_detection_timeout: Integer?
|
|
142
157
|
|
|
143
|
-
|
|
158
|
+
def machine_detection_timeout=: (Integer) -> Integer
|
|
144
159
|
|
|
145
|
-
|
|
160
|
+
attr_reader media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption?
|
|
146
161
|
|
|
147
|
-
|
|
162
|
+
def media_encryption=: (
|
|
163
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption
|
|
164
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption
|
|
148
165
|
|
|
149
|
-
|
|
166
|
+
attr_reader preferred_codecs: String?
|
|
150
167
|
|
|
151
|
-
|
|
152
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method
|
|
153
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method
|
|
168
|
+
def preferred_codecs=: (String) -> String
|
|
154
169
|
|
|
155
|
-
|
|
170
|
+
attr_reader record: bool?
|
|
156
171
|
|
|
157
|
-
|
|
172
|
+
def record=: (bool) -> bool
|
|
158
173
|
|
|
159
|
-
|
|
174
|
+
attr_reader recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels?
|
|
160
175
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
176
|
+
def recording_channels=: (
|
|
177
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels
|
|
178
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels
|
|
164
179
|
|
|
165
|
-
|
|
180
|
+
attr_reader recording_status_callback: String?
|
|
166
181
|
|
|
167
|
-
|
|
182
|
+
def recording_status_callback=: (String) -> String
|
|
168
183
|
|
|
169
|
-
|
|
184
|
+
attr_reader recording_status_callback_event: String?
|
|
170
185
|
|
|
171
|
-
|
|
186
|
+
def recording_status_callback_event=: (String) -> String
|
|
172
187
|
|
|
173
|
-
|
|
188
|
+
attr_reader recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method?
|
|
174
189
|
|
|
175
|
-
|
|
190
|
+
def recording_status_callback_method=: (
|
|
191
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method
|
|
192
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method
|
|
176
193
|
|
|
177
|
-
|
|
194
|
+
attr_reader recording_timeout: Integer?
|
|
178
195
|
|
|
179
|
-
|
|
180
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region
|
|
181
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region
|
|
196
|
+
def recording_timeout=: (Integer) -> Integer
|
|
182
197
|
|
|
183
|
-
|
|
198
|
+
attr_reader recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track?
|
|
184
199
|
|
|
185
|
-
|
|
200
|
+
def recording_track=: (
|
|
201
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track
|
|
202
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track
|
|
186
203
|
|
|
187
|
-
|
|
204
|
+
attr_reader send_recording_url: bool?
|
|
188
205
|
|
|
189
|
-
|
|
190
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event
|
|
191
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event
|
|
206
|
+
def send_recording_url=: (bool) -> bool
|
|
192
207
|
|
|
193
|
-
|
|
208
|
+
attr_reader sip_auth_password: String?
|
|
194
209
|
|
|
195
|
-
|
|
196
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method
|
|
197
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method
|
|
210
|
+
def sip_auth_password=: (String) -> String
|
|
198
211
|
|
|
199
|
-
|
|
212
|
+
attr_reader sip_auth_username: String?
|
|
200
213
|
|
|
201
|
-
|
|
214
|
+
def sip_auth_username=: (String) -> String
|
|
202
215
|
|
|
203
|
-
|
|
216
|
+
attr_reader sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region?
|
|
204
217
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
218
|
+
def sip_region=: (
|
|
219
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region
|
|
220
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region
|
|
208
221
|
|
|
209
|
-
|
|
222
|
+
attr_reader status_callback: String?
|
|
210
223
|
|
|
211
|
-
|
|
224
|
+
def status_callback=: (String) -> String
|
|
212
225
|
|
|
213
|
-
|
|
226
|
+
attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event?
|
|
214
227
|
|
|
215
|
-
|
|
228
|
+
def status_callback_event=: (
|
|
229
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event
|
|
230
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event
|
|
216
231
|
|
|
217
|
-
|
|
232
|
+
attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method?
|
|
218
233
|
|
|
219
|
-
|
|
234
|
+
def status_callback_method=: (
|
|
235
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method
|
|
236
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method
|
|
220
237
|
|
|
221
|
-
|
|
238
|
+
attr_reader supervise_call_sid: String?
|
|
222
239
|
|
|
223
|
-
|
|
224
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::trim
|
|
225
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::trim
|
|
240
|
+
def supervise_call_sid=: (String) -> String
|
|
226
241
|
|
|
227
|
-
|
|
242
|
+
attr_reader supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role?
|
|
228
243
|
|
|
229
|
-
|
|
244
|
+
def supervising_role=: (
|
|
245
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role
|
|
246
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role
|
|
230
247
|
|
|
231
|
-
|
|
248
|
+
attr_reader texml: top?
|
|
232
249
|
|
|
233
|
-
|
|
234
|
-
Telnyx::Models::Texml::Accounts::CallCallsParams::url_method
|
|
235
|
-
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::url_method
|
|
250
|
+
def texml=: (top) -> top
|
|
236
251
|
|
|
237
|
-
|
|
238
|
-
account_sid: String,
|
|
239
|
-
application_sid: String,
|
|
240
|
-
from: String,
|
|
241
|
-
to: String,
|
|
242
|
-
?async_amd: bool,
|
|
243
|
-
?async_amd_status_callback: String,
|
|
244
|
-
?async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method,
|
|
245
|
-
?caller_id: String,
|
|
246
|
-
?cancel_playback_on_detect_message_end: bool,
|
|
247
|
-
?cancel_playback_on_machine_detection: bool,
|
|
248
|
-
?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader],
|
|
249
|
-
?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode,
|
|
250
|
-
?fallback_url: String,
|
|
251
|
-
?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::machine_detection,
|
|
252
|
-
?machine_detection_silence_timeout: Integer,
|
|
253
|
-
?machine_detection_speech_end_threshold: Integer,
|
|
254
|
-
?machine_detection_speech_threshold: Integer,
|
|
255
|
-
?machine_detection_timeout: Integer,
|
|
256
|
-
?preferred_codecs: String,
|
|
257
|
-
?record: bool,
|
|
258
|
-
?recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels,
|
|
259
|
-
?recording_status_callback: String,
|
|
260
|
-
?recording_status_callback_event: String,
|
|
261
|
-
?recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method,
|
|
262
|
-
?recording_timeout: Integer,
|
|
263
|
-
?recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_track,
|
|
264
|
-
?send_recording_url: bool,
|
|
265
|
-
?sip_auth_password: String,
|
|
266
|
-
?sip_auth_username: String,
|
|
267
|
-
?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region,
|
|
268
|
-
?status_callback: String,
|
|
269
|
-
?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event,
|
|
270
|
-
?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method,
|
|
271
|
-
?supervise_call_sid: String,
|
|
272
|
-
?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::supervising_role,
|
|
273
|
-
?texml: String,
|
|
274
|
-
?time_limit: Integer,
|
|
275
|
-
?timeout_seconds: Integer,
|
|
276
|
-
?trim: Telnyx::Models::Texml::Accounts::CallCallsParams::trim,
|
|
277
|
-
?url: String,
|
|
278
|
-
?url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::url_method,
|
|
279
|
-
?request_options: Telnyx::request_opts
|
|
280
|
-
) -> void
|
|
252
|
+
attr_reader time_limit: Integer?
|
|
281
253
|
|
|
282
|
-
|
|
283
|
-
account_sid: String,
|
|
284
|
-
application_sid: String,
|
|
285
|
-
from: String,
|
|
286
|
-
to: String,
|
|
287
|
-
async_amd: bool,
|
|
288
|
-
async_amd_status_callback: String,
|
|
289
|
-
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::async_amd_status_callback_method,
|
|
290
|
-
caller_id: String,
|
|
291
|
-
cancel_playback_on_detect_message_end: bool,
|
|
292
|
-
cancel_playback_on_machine_detection: bool,
|
|
293
|
-
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader],
|
|
294
|
-
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::detection_mode,
|
|
295
|
-
fallback_url: String,
|
|
296
|
-
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::machine_detection,
|
|
297
|
-
machine_detection_silence_timeout: Integer,
|
|
298
|
-
machine_detection_speech_end_threshold: Integer,
|
|
299
|
-
machine_detection_speech_threshold: Integer,
|
|
300
|
-
machine_detection_timeout: Integer,
|
|
301
|
-
preferred_codecs: String,
|
|
302
|
-
record: bool,
|
|
303
|
-
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_channels,
|
|
304
|
-
recording_status_callback: String,
|
|
305
|
-
recording_status_callback_event: String,
|
|
306
|
-
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_status_callback_method,
|
|
307
|
-
recording_timeout: Integer,
|
|
308
|
-
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::recording_track,
|
|
309
|
-
send_recording_url: bool,
|
|
310
|
-
sip_auth_password: String,
|
|
311
|
-
sip_auth_username: String,
|
|
312
|
-
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::sip_region,
|
|
313
|
-
status_callback: String,
|
|
314
|
-
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_event,
|
|
315
|
-
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::status_callback_method,
|
|
316
|
-
supervise_call_sid: String,
|
|
317
|
-
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::supervising_role,
|
|
318
|
-
texml: String,
|
|
319
|
-
time_limit: Integer,
|
|
320
|
-
timeout_seconds: Integer,
|
|
321
|
-
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::trim,
|
|
322
|
-
url: String,
|
|
323
|
-
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::url_method,
|
|
324
|
-
request_options: Telnyx::RequestOptions
|
|
325
|
-
}
|
|
254
|
+
def time_limit=: (Integer) -> Integer
|
|
326
255
|
|
|
327
|
-
|
|
256
|
+
attr_reader timeout: Integer?
|
|
328
257
|
|
|
329
|
-
|
|
330
|
-
extend Telnyx::Internal::Type::Enum
|
|
258
|
+
def timeout=: (Integer) -> Integer
|
|
331
259
|
|
|
332
|
-
|
|
333
|
-
|
|
260
|
+
attr_reader to: String?
|
|
261
|
+
|
|
262
|
+
def to=: (String) -> String
|
|
263
|
+
|
|
264
|
+
attr_reader trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim?
|
|
334
265
|
|
|
335
|
-
|
|
336
|
-
|
|
266
|
+
def trim=: (
|
|
267
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim
|
|
268
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim
|
|
269
|
+
|
|
270
|
+
attr_reader url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method?
|
|
271
|
+
|
|
272
|
+
def url_method=: (
|
|
273
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method
|
|
274
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method
|
|
275
|
+
|
|
276
|
+
def initialize: (
|
|
277
|
+
url: String,
|
|
278
|
+
?application_sid: String,
|
|
279
|
+
?async_amd: bool,
|
|
280
|
+
?async_amd_status_callback: String,
|
|
281
|
+
?async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method,
|
|
282
|
+
?caller_id: String,
|
|
283
|
+
?cancel_playback_on_detect_message_end: bool,
|
|
284
|
+
?cancel_playback_on_machine_detection: bool,
|
|
285
|
+
?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader],
|
|
286
|
+
?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode,
|
|
287
|
+
?fallback_url: String,
|
|
288
|
+
?from: String,
|
|
289
|
+
?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection,
|
|
290
|
+
?machine_detection_silence_timeout: Integer,
|
|
291
|
+
?machine_detection_speech_end_threshold: Integer,
|
|
292
|
+
?machine_detection_speech_threshold: Integer,
|
|
293
|
+
?machine_detection_timeout: Integer,
|
|
294
|
+
?media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption,
|
|
295
|
+
?preferred_codecs: String,
|
|
296
|
+
?record: bool,
|
|
297
|
+
?recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels,
|
|
298
|
+
?recording_status_callback: String,
|
|
299
|
+
?recording_status_callback_event: String,
|
|
300
|
+
?recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method,
|
|
301
|
+
?recording_timeout: Integer,
|
|
302
|
+
?recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track,
|
|
303
|
+
?send_recording_url: bool,
|
|
304
|
+
?sip_auth_password: String,
|
|
305
|
+
?sip_auth_username: String,
|
|
306
|
+
?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
|
|
307
|
+
?status_callback: String,
|
|
308
|
+
?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
|
|
309
|
+
?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
|
|
310
|
+
?supervise_call_sid: String,
|
|
311
|
+
?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
|
|
312
|
+
?texml: top,
|
|
313
|
+
?time_limit: Integer,
|
|
314
|
+
?timeout: Integer,
|
|
315
|
+
?to: String,
|
|
316
|
+
?trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim,
|
|
317
|
+
?url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method
|
|
318
|
+
) -> void
|
|
319
|
+
|
|
320
|
+
def to_hash: -> {
|
|
321
|
+
url: String,
|
|
322
|
+
application_sid: String,
|
|
323
|
+
async_amd: bool,
|
|
324
|
+
async_amd_status_callback: String,
|
|
325
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method,
|
|
326
|
+
caller_id: String,
|
|
327
|
+
cancel_playback_on_detect_message_end: bool,
|
|
328
|
+
cancel_playback_on_machine_detection: bool,
|
|
329
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::CustomHeader],
|
|
330
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode,
|
|
331
|
+
fallback_url: String,
|
|
332
|
+
from: String,
|
|
333
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection,
|
|
334
|
+
machine_detection_silence_timeout: Integer,
|
|
335
|
+
machine_detection_speech_end_threshold: Integer,
|
|
336
|
+
machine_detection_speech_threshold: Integer,
|
|
337
|
+
machine_detection_timeout: Integer,
|
|
338
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption,
|
|
339
|
+
preferred_codecs: String,
|
|
340
|
+
record: bool,
|
|
341
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels,
|
|
342
|
+
recording_status_callback: String,
|
|
343
|
+
recording_status_callback_event: String,
|
|
344
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method,
|
|
345
|
+
recording_timeout: Integer,
|
|
346
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track,
|
|
347
|
+
send_recording_url: bool,
|
|
348
|
+
sip_auth_password: String,
|
|
349
|
+
sip_auth_username: String,
|
|
350
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region,
|
|
351
|
+
status_callback: String,
|
|
352
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event,
|
|
353
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method,
|
|
354
|
+
supervise_call_sid: String,
|
|
355
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role,
|
|
356
|
+
texml: top,
|
|
357
|
+
time_limit: Integer,
|
|
358
|
+
timeout: Integer,
|
|
359
|
+
to: String,
|
|
360
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim,
|
|
361
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
type async_amd_status_callback_method = :GET | :POST
|
|
365
|
+
|
|
366
|
+
module AsyncAmdStatusCallbackMethod
|
|
367
|
+
extend Telnyx::Internal::Type::Enum
|
|
368
|
+
|
|
369
|
+
GET: :GET
|
|
370
|
+
POST: :POST
|
|
371
|
+
|
|
372
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::async_amd_status_callback_method]
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
type custom_header = { name: String, value: String }
|
|
376
|
+
|
|
377
|
+
class CustomHeader < Telnyx::Internal::Type::BaseModel
|
|
378
|
+
attr_accessor name: String
|
|
379
|
+
|
|
380
|
+
attr_accessor value: String
|
|
381
|
+
|
|
382
|
+
def initialize: (name: String, value: String) -> void
|
|
383
|
+
|
|
384
|
+
def to_hash: -> { name: String, value: String }
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
type detection_mode = :Premium | :Regular
|
|
388
|
+
|
|
389
|
+
module DetectionMode
|
|
390
|
+
extend Telnyx::Internal::Type::Enum
|
|
391
|
+
|
|
392
|
+
PREMIUM: :Premium
|
|
393
|
+
REGULAR: :Regular
|
|
394
|
+
|
|
395
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::detection_mode]
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
type machine_detection = :Enable | :Disable | :DetectMessageEnd
|
|
399
|
+
|
|
400
|
+
module MachineDetection
|
|
401
|
+
extend Telnyx::Internal::Type::Enum
|
|
402
|
+
|
|
403
|
+
ENABLE: :Enable
|
|
404
|
+
DISABLE: :Disable
|
|
405
|
+
DETECT_MESSAGE_END: :DetectMessageEnd
|
|
337
406
|
|
|
338
|
-
|
|
407
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::machine_detection]
|
|
408
|
+
end
|
|
339
409
|
|
|
340
|
-
|
|
341
|
-
attr_accessor name: String
|
|
410
|
+
type media_encryption = :disabled | :SRTP | :DTLS
|
|
342
411
|
|
|
343
|
-
|
|
412
|
+
module MediaEncryption
|
|
413
|
+
extend Telnyx::Internal::Type::Enum
|
|
344
414
|
|
|
345
|
-
|
|
415
|
+
DISABLED: :disabled
|
|
416
|
+
SRTP: :SRTP
|
|
417
|
+
DTLS: :DTLS
|
|
346
418
|
|
|
347
|
-
|
|
348
|
-
|
|
419
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::media_encryption]
|
|
420
|
+
end
|
|
349
421
|
|
|
350
|
-
|
|
422
|
+
type recording_channels = :mono | :dual
|
|
351
423
|
|
|
352
|
-
|
|
353
|
-
|
|
424
|
+
module RecordingChannels
|
|
425
|
+
extend Telnyx::Internal::Type::Enum
|
|
354
426
|
|
|
355
|
-
|
|
356
|
-
|
|
427
|
+
MONO: :mono
|
|
428
|
+
DUAL: :dual
|
|
357
429
|
|
|
358
|
-
|
|
359
|
-
|
|
430
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_channels]
|
|
431
|
+
end
|
|
360
432
|
|
|
361
|
-
|
|
433
|
+
type recording_status_callback_method = :GET | :POST
|
|
362
434
|
|
|
363
|
-
|
|
364
|
-
|
|
435
|
+
module RecordingStatusCallbackMethod
|
|
436
|
+
extend Telnyx::Internal::Type::Enum
|
|
365
437
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
DETECT_MESSAGE_END: :DetectMessageEnd
|
|
438
|
+
GET: :GET
|
|
439
|
+
POST: :POST
|
|
369
440
|
|
|
370
|
-
|
|
371
|
-
|
|
441
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_status_callback_method]
|
|
442
|
+
end
|
|
372
443
|
|
|
373
|
-
|
|
444
|
+
type recording_track = :inbound | :outbound | :both
|
|
374
445
|
|
|
375
|
-
|
|
376
|
-
|
|
446
|
+
module RecordingTrack
|
|
447
|
+
extend Telnyx::Internal::Type::Enum
|
|
377
448
|
|
|
378
|
-
|
|
379
|
-
|
|
449
|
+
INBOUND: :inbound
|
|
450
|
+
OUTBOUND: :outbound
|
|
451
|
+
BOTH: :both
|
|
380
452
|
|
|
381
|
-
|
|
382
|
-
|
|
453
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::recording_track]
|
|
454
|
+
end
|
|
383
455
|
|
|
384
|
-
|
|
456
|
+
type sip_region =
|
|
457
|
+
:US | :Europe | :Canada | :Australia | :"Middle East"
|
|
385
458
|
|
|
386
|
-
|
|
387
|
-
|
|
459
|
+
module SipRegion
|
|
460
|
+
extend Telnyx::Internal::Type::Enum
|
|
388
461
|
|
|
389
|
-
|
|
390
|
-
|
|
462
|
+
US: :US
|
|
463
|
+
EUROPE: :Europe
|
|
464
|
+
CANADA: :Canada
|
|
465
|
+
AUSTRALIA: :Australia
|
|
466
|
+
MIDDLE_EAST: :"Middle East"
|
|
391
467
|
|
|
392
|
-
|
|
393
|
-
|
|
468
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::sip_region]
|
|
469
|
+
end
|
|
394
470
|
|
|
395
|
-
|
|
471
|
+
type status_callback_event =
|
|
472
|
+
:initiated | :ringing | :answered | :completed
|
|
396
473
|
|
|
397
|
-
|
|
398
|
-
|
|
474
|
+
module StatusCallbackEvent
|
|
475
|
+
extend Telnyx::Internal::Type::Enum
|
|
399
476
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
477
|
+
INITIATED: :initiated
|
|
478
|
+
RINGING: :ringing
|
|
479
|
+
ANSWERED: :answered
|
|
480
|
+
COMPLETED: :completed
|
|
403
481
|
|
|
404
|
-
|
|
405
|
-
|
|
482
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_event]
|
|
483
|
+
end
|
|
406
484
|
|
|
407
|
-
|
|
408
|
-
:US | :Europe | :Canada | :Australia | :"Middle East"
|
|
485
|
+
type status_callback_method = :GET | :POST
|
|
409
486
|
|
|
410
|
-
|
|
411
|
-
|
|
487
|
+
module StatusCallbackMethod
|
|
488
|
+
extend Telnyx::Internal::Type::Enum
|
|
412
489
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
CANADA: :Canada
|
|
416
|
-
AUSTRALIA: :Australia
|
|
417
|
-
MIDDLE_EAST: :"Middle East"
|
|
490
|
+
GET: :GET
|
|
491
|
+
POST: :POST
|
|
418
492
|
|
|
419
|
-
|
|
420
|
-
|
|
493
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::status_callback_method]
|
|
494
|
+
end
|
|
421
495
|
|
|
422
|
-
|
|
423
|
-
:initiated | :ringing | :answered | :completed
|
|
496
|
+
type supervising_role = :barge | :whisper | :monitor
|
|
424
497
|
|
|
425
|
-
|
|
426
|
-
|
|
498
|
+
module SupervisingRole
|
|
499
|
+
extend Telnyx::Internal::Type::Enum
|
|
427
500
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
COMPLETED: :completed
|
|
501
|
+
BARGE: :barge
|
|
502
|
+
WHISPER: :whisper
|
|
503
|
+
MONITOR: :monitor
|
|
432
504
|
|
|
433
|
-
|
|
434
|
-
|
|
505
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::supervising_role]
|
|
506
|
+
end
|
|
435
507
|
|
|
436
|
-
|
|
508
|
+
type trim = :"trim-silence" | :"do-not-trim"
|
|
437
509
|
|
|
438
|
-
|
|
439
|
-
|
|
510
|
+
module Trim
|
|
511
|
+
extend Telnyx::Internal::Type::Enum
|
|
440
512
|
|
|
441
|
-
|
|
442
|
-
|
|
513
|
+
TRIM_SILENCE: :"trim-silence"
|
|
514
|
+
DO_NOT_TRIM: :"do-not-trim"
|
|
443
515
|
|
|
444
|
-
|
|
445
|
-
|
|
516
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::trim]
|
|
517
|
+
end
|
|
446
518
|
|
|
447
|
-
|
|
519
|
+
type url_method = :GET | :POST
|
|
448
520
|
|
|
449
|
-
|
|
450
|
-
|
|
521
|
+
module URLMethod
|
|
522
|
+
extend Telnyx::Internal::Type::Enum
|
|
451
523
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
MONITOR: :monitor
|
|
524
|
+
GET: :GET
|
|
525
|
+
POST: :POST
|
|
455
526
|
|
|
456
|
-
|
|
457
|
-
|
|
527
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::url_method]
|
|
528
|
+
end
|
|
529
|
+
end
|
|
458
530
|
|
|
459
|
-
|
|
531
|
+
type with_te_xml =
|
|
532
|
+
{
|
|
533
|
+
texml: String,
|
|
534
|
+
application_sid: String,
|
|
535
|
+
async_amd: bool,
|
|
536
|
+
async_amd_status_callback: String,
|
|
537
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method,
|
|
538
|
+
caller_id: String,
|
|
539
|
+
cancel_playback_on_detect_message_end: bool,
|
|
540
|
+
cancel_playback_on_machine_detection: bool,
|
|
541
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader],
|
|
542
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode,
|
|
543
|
+
fallback_url: String,
|
|
544
|
+
from: String,
|
|
545
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection,
|
|
546
|
+
machine_detection_silence_timeout: Integer,
|
|
547
|
+
machine_detection_speech_end_threshold: Integer,
|
|
548
|
+
machine_detection_speech_threshold: Integer,
|
|
549
|
+
machine_detection_timeout: Integer,
|
|
550
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption,
|
|
551
|
+
preferred_codecs: String,
|
|
552
|
+
record: bool,
|
|
553
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels,
|
|
554
|
+
recording_status_callback: String,
|
|
555
|
+
recording_status_callback_event: String,
|
|
556
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method,
|
|
557
|
+
recording_timeout: Integer,
|
|
558
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track,
|
|
559
|
+
send_recording_url: bool,
|
|
560
|
+
sip_auth_password: String,
|
|
561
|
+
sip_auth_username: String,
|
|
562
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
|
|
563
|
+
status_callback: String,
|
|
564
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
|
|
565
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
|
|
566
|
+
supervise_call_sid: String,
|
|
567
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
|
|
568
|
+
time_limit: Integer,
|
|
569
|
+
timeout: Integer,
|
|
570
|
+
to: String,
|
|
571
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim,
|
|
572
|
+
url: top,
|
|
573
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method
|
|
574
|
+
}
|
|
460
575
|
|
|
461
|
-
|
|
462
|
-
|
|
576
|
+
class WithTeXml < Telnyx::Internal::Type::BaseModel
|
|
577
|
+
attr_accessor texml: String
|
|
463
578
|
|
|
464
|
-
|
|
465
|
-
DO_NOT_TRIM: :"do-not-trim"
|
|
579
|
+
attr_reader application_sid: String?
|
|
466
580
|
|
|
467
|
-
|
|
468
|
-
|
|
581
|
+
def application_sid=: (String) -> String
|
|
582
|
+
|
|
583
|
+
attr_reader async_amd: bool?
|
|
584
|
+
|
|
585
|
+
def async_amd=: (bool) -> bool
|
|
586
|
+
|
|
587
|
+
attr_reader async_amd_status_callback: String?
|
|
588
|
+
|
|
589
|
+
def async_amd_status_callback=: (String) -> String
|
|
590
|
+
|
|
591
|
+
attr_reader async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method?
|
|
592
|
+
|
|
593
|
+
def async_amd_status_callback_method=: (
|
|
594
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method
|
|
595
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method
|
|
596
|
+
|
|
597
|
+
attr_reader caller_id: String?
|
|
598
|
+
|
|
599
|
+
def caller_id=: (String) -> String
|
|
600
|
+
|
|
601
|
+
attr_reader cancel_playback_on_detect_message_end: bool?
|
|
602
|
+
|
|
603
|
+
def cancel_playback_on_detect_message_end=: (bool) -> bool
|
|
604
|
+
|
|
605
|
+
attr_reader cancel_playback_on_machine_detection: bool?
|
|
606
|
+
|
|
607
|
+
def cancel_playback_on_machine_detection=: (bool) -> bool
|
|
608
|
+
|
|
609
|
+
attr_reader custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader]?
|
|
610
|
+
|
|
611
|
+
def custom_headers=: (
|
|
612
|
+
::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader]
|
|
613
|
+
) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader]
|
|
614
|
+
|
|
615
|
+
attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode?
|
|
616
|
+
|
|
617
|
+
def detection_mode=: (
|
|
618
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode
|
|
619
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode
|
|
620
|
+
|
|
621
|
+
attr_reader fallback_url: String?
|
|
622
|
+
|
|
623
|
+
def fallback_url=: (String) -> String
|
|
624
|
+
|
|
625
|
+
attr_reader from: String?
|
|
626
|
+
|
|
627
|
+
def from=: (String) -> String
|
|
628
|
+
|
|
629
|
+
attr_reader machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection?
|
|
630
|
+
|
|
631
|
+
def machine_detection=: (
|
|
632
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection
|
|
633
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection
|
|
634
|
+
|
|
635
|
+
attr_reader machine_detection_silence_timeout: Integer?
|
|
636
|
+
|
|
637
|
+
def machine_detection_silence_timeout=: (Integer) -> Integer
|
|
638
|
+
|
|
639
|
+
attr_reader machine_detection_speech_end_threshold: Integer?
|
|
640
|
+
|
|
641
|
+
def machine_detection_speech_end_threshold=: (Integer) -> Integer
|
|
642
|
+
|
|
643
|
+
attr_reader machine_detection_speech_threshold: Integer?
|
|
644
|
+
|
|
645
|
+
def machine_detection_speech_threshold=: (Integer) -> Integer
|
|
646
|
+
|
|
647
|
+
attr_reader machine_detection_timeout: Integer?
|
|
648
|
+
|
|
649
|
+
def machine_detection_timeout=: (Integer) -> Integer
|
|
650
|
+
|
|
651
|
+
attr_reader media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption?
|
|
652
|
+
|
|
653
|
+
def media_encryption=: (
|
|
654
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption
|
|
655
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption
|
|
656
|
+
|
|
657
|
+
attr_reader preferred_codecs: String?
|
|
658
|
+
|
|
659
|
+
def preferred_codecs=: (String) -> String
|
|
660
|
+
|
|
661
|
+
attr_reader record: bool?
|
|
662
|
+
|
|
663
|
+
def record=: (bool) -> bool
|
|
664
|
+
|
|
665
|
+
attr_reader recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels?
|
|
666
|
+
|
|
667
|
+
def recording_channels=: (
|
|
668
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels
|
|
669
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels
|
|
670
|
+
|
|
671
|
+
attr_reader recording_status_callback: String?
|
|
672
|
+
|
|
673
|
+
def recording_status_callback=: (String) -> String
|
|
674
|
+
|
|
675
|
+
attr_reader recording_status_callback_event: String?
|
|
676
|
+
|
|
677
|
+
def recording_status_callback_event=: (String) -> String
|
|
678
|
+
|
|
679
|
+
attr_reader recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method?
|
|
680
|
+
|
|
681
|
+
def recording_status_callback_method=: (
|
|
682
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method
|
|
683
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method
|
|
684
|
+
|
|
685
|
+
attr_reader recording_timeout: Integer?
|
|
686
|
+
|
|
687
|
+
def recording_timeout=: (Integer) -> Integer
|
|
688
|
+
|
|
689
|
+
attr_reader recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track?
|
|
690
|
+
|
|
691
|
+
def recording_track=: (
|
|
692
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track
|
|
693
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track
|
|
694
|
+
|
|
695
|
+
attr_reader send_recording_url: bool?
|
|
696
|
+
|
|
697
|
+
def send_recording_url=: (bool) -> bool
|
|
698
|
+
|
|
699
|
+
attr_reader sip_auth_password: String?
|
|
700
|
+
|
|
701
|
+
def sip_auth_password=: (String) -> String
|
|
702
|
+
|
|
703
|
+
attr_reader sip_auth_username: String?
|
|
704
|
+
|
|
705
|
+
def sip_auth_username=: (String) -> String
|
|
706
|
+
|
|
707
|
+
attr_reader sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region?
|
|
708
|
+
|
|
709
|
+
def sip_region=: (
|
|
710
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region
|
|
711
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region
|
|
712
|
+
|
|
713
|
+
attr_reader status_callback: String?
|
|
714
|
+
|
|
715
|
+
def status_callback=: (String) -> String
|
|
716
|
+
|
|
717
|
+
attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event?
|
|
718
|
+
|
|
719
|
+
def status_callback_event=: (
|
|
720
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event
|
|
721
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event
|
|
722
|
+
|
|
723
|
+
attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method?
|
|
724
|
+
|
|
725
|
+
def status_callback_method=: (
|
|
726
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method
|
|
727
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method
|
|
728
|
+
|
|
729
|
+
attr_reader supervise_call_sid: String?
|
|
730
|
+
|
|
731
|
+
def supervise_call_sid=: (String) -> String
|
|
732
|
+
|
|
733
|
+
attr_reader supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role?
|
|
734
|
+
|
|
735
|
+
def supervising_role=: (
|
|
736
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role
|
|
737
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role
|
|
738
|
+
|
|
739
|
+
attr_reader time_limit: Integer?
|
|
740
|
+
|
|
741
|
+
def time_limit=: (Integer) -> Integer
|
|
742
|
+
|
|
743
|
+
attr_reader timeout: Integer?
|
|
744
|
+
|
|
745
|
+
def timeout=: (Integer) -> Integer
|
|
746
|
+
|
|
747
|
+
attr_reader to: String?
|
|
748
|
+
|
|
749
|
+
def to=: (String) -> String
|
|
750
|
+
|
|
751
|
+
attr_reader trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim?
|
|
752
|
+
|
|
753
|
+
def trim=: (
|
|
754
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim
|
|
755
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim
|
|
756
|
+
|
|
757
|
+
attr_reader url: top?
|
|
758
|
+
|
|
759
|
+
def url=: (top) -> top
|
|
760
|
+
|
|
761
|
+
attr_reader url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method?
|
|
762
|
+
|
|
763
|
+
def url_method=: (
|
|
764
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method
|
|
765
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method
|
|
766
|
+
|
|
767
|
+
def initialize: (
|
|
768
|
+
texml: String,
|
|
769
|
+
?application_sid: String,
|
|
770
|
+
?async_amd: bool,
|
|
771
|
+
?async_amd_status_callback: String,
|
|
772
|
+
?async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method,
|
|
773
|
+
?caller_id: String,
|
|
774
|
+
?cancel_playback_on_detect_message_end: bool,
|
|
775
|
+
?cancel_playback_on_machine_detection: bool,
|
|
776
|
+
?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader],
|
|
777
|
+
?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode,
|
|
778
|
+
?fallback_url: String,
|
|
779
|
+
?from: String,
|
|
780
|
+
?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection,
|
|
781
|
+
?machine_detection_silence_timeout: Integer,
|
|
782
|
+
?machine_detection_speech_end_threshold: Integer,
|
|
783
|
+
?machine_detection_speech_threshold: Integer,
|
|
784
|
+
?machine_detection_timeout: Integer,
|
|
785
|
+
?media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption,
|
|
786
|
+
?preferred_codecs: String,
|
|
787
|
+
?record: bool,
|
|
788
|
+
?recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels,
|
|
789
|
+
?recording_status_callback: String,
|
|
790
|
+
?recording_status_callback_event: String,
|
|
791
|
+
?recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method,
|
|
792
|
+
?recording_timeout: Integer,
|
|
793
|
+
?recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track,
|
|
794
|
+
?send_recording_url: bool,
|
|
795
|
+
?sip_auth_password: String,
|
|
796
|
+
?sip_auth_username: String,
|
|
797
|
+
?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
|
|
798
|
+
?status_callback: String,
|
|
799
|
+
?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
|
|
800
|
+
?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
|
|
801
|
+
?supervise_call_sid: String,
|
|
802
|
+
?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
|
|
803
|
+
?time_limit: Integer,
|
|
804
|
+
?timeout: Integer,
|
|
805
|
+
?to: String,
|
|
806
|
+
?trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim,
|
|
807
|
+
?url: top,
|
|
808
|
+
?url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method
|
|
809
|
+
) -> void
|
|
810
|
+
|
|
811
|
+
def to_hash: -> {
|
|
812
|
+
texml: String,
|
|
813
|
+
application_sid: String,
|
|
814
|
+
async_amd: bool,
|
|
815
|
+
async_amd_status_callback: String,
|
|
816
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method,
|
|
817
|
+
caller_id: String,
|
|
818
|
+
cancel_playback_on_detect_message_end: bool,
|
|
819
|
+
cancel_playback_on_machine_detection: bool,
|
|
820
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::CustomHeader],
|
|
821
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode,
|
|
822
|
+
fallback_url: String,
|
|
823
|
+
from: String,
|
|
824
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection,
|
|
825
|
+
machine_detection_silence_timeout: Integer,
|
|
826
|
+
machine_detection_speech_end_threshold: Integer,
|
|
827
|
+
machine_detection_speech_threshold: Integer,
|
|
828
|
+
machine_detection_timeout: Integer,
|
|
829
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption,
|
|
830
|
+
preferred_codecs: String,
|
|
831
|
+
record: bool,
|
|
832
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels,
|
|
833
|
+
recording_status_callback: String,
|
|
834
|
+
recording_status_callback_event: String,
|
|
835
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method,
|
|
836
|
+
recording_timeout: Integer,
|
|
837
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track,
|
|
838
|
+
send_recording_url: bool,
|
|
839
|
+
sip_auth_password: String,
|
|
840
|
+
sip_auth_username: String,
|
|
841
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region,
|
|
842
|
+
status_callback: String,
|
|
843
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event,
|
|
844
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method,
|
|
845
|
+
supervise_call_sid: String,
|
|
846
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role,
|
|
847
|
+
time_limit: Integer,
|
|
848
|
+
timeout: Integer,
|
|
849
|
+
to: String,
|
|
850
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim,
|
|
851
|
+
url: top,
|
|
852
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
type async_amd_status_callback_method = :GET | :POST
|
|
856
|
+
|
|
857
|
+
module AsyncAmdStatusCallbackMethod
|
|
858
|
+
extend Telnyx::Internal::Type::Enum
|
|
859
|
+
|
|
860
|
+
GET: :GET
|
|
861
|
+
POST: :POST
|
|
862
|
+
|
|
863
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::async_amd_status_callback_method]
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
type custom_header = { name: String, value: String }
|
|
867
|
+
|
|
868
|
+
class CustomHeader < Telnyx::Internal::Type::BaseModel
|
|
869
|
+
attr_accessor name: String
|
|
870
|
+
|
|
871
|
+
attr_accessor value: String
|
|
872
|
+
|
|
873
|
+
def initialize: (name: String, value: String) -> void
|
|
874
|
+
|
|
875
|
+
def to_hash: -> { name: String, value: String }
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
type detection_mode = :Premium | :Regular
|
|
879
|
+
|
|
880
|
+
module DetectionMode
|
|
881
|
+
extend Telnyx::Internal::Type::Enum
|
|
882
|
+
|
|
883
|
+
PREMIUM: :Premium
|
|
884
|
+
REGULAR: :Regular
|
|
885
|
+
|
|
886
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::detection_mode]
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
type machine_detection = :Enable | :Disable | :DetectMessageEnd
|
|
890
|
+
|
|
891
|
+
module MachineDetection
|
|
892
|
+
extend Telnyx::Internal::Type::Enum
|
|
893
|
+
|
|
894
|
+
ENABLE: :Enable
|
|
895
|
+
DISABLE: :Disable
|
|
896
|
+
DETECT_MESSAGE_END: :DetectMessageEnd
|
|
897
|
+
|
|
898
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::machine_detection]
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
type media_encryption = :disabled | :SRTP | :DTLS
|
|
902
|
+
|
|
903
|
+
module MediaEncryption
|
|
904
|
+
extend Telnyx::Internal::Type::Enum
|
|
905
|
+
|
|
906
|
+
DISABLED: :disabled
|
|
907
|
+
SRTP: :SRTP
|
|
908
|
+
DTLS: :DTLS
|
|
909
|
+
|
|
910
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::media_encryption]
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
type recording_channels = :mono | :dual
|
|
914
|
+
|
|
915
|
+
module RecordingChannels
|
|
916
|
+
extend Telnyx::Internal::Type::Enum
|
|
917
|
+
|
|
918
|
+
MONO: :mono
|
|
919
|
+
DUAL: :dual
|
|
920
|
+
|
|
921
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_channels]
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
type recording_status_callback_method = :GET | :POST
|
|
925
|
+
|
|
926
|
+
module RecordingStatusCallbackMethod
|
|
927
|
+
extend Telnyx::Internal::Type::Enum
|
|
928
|
+
|
|
929
|
+
GET: :GET
|
|
930
|
+
POST: :POST
|
|
931
|
+
|
|
932
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_status_callback_method]
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
type recording_track = :inbound | :outbound | :both
|
|
936
|
+
|
|
937
|
+
module RecordingTrack
|
|
938
|
+
extend Telnyx::Internal::Type::Enum
|
|
939
|
+
|
|
940
|
+
INBOUND: :inbound
|
|
941
|
+
OUTBOUND: :outbound
|
|
942
|
+
BOTH: :both
|
|
943
|
+
|
|
944
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::recording_track]
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
type sip_region =
|
|
948
|
+
:US | :Europe | :Canada | :Australia | :"Middle East"
|
|
949
|
+
|
|
950
|
+
module SipRegion
|
|
951
|
+
extend Telnyx::Internal::Type::Enum
|
|
952
|
+
|
|
953
|
+
US: :US
|
|
954
|
+
EUROPE: :Europe
|
|
955
|
+
CANADA: :Canada
|
|
956
|
+
AUSTRALIA: :Australia
|
|
957
|
+
MIDDLE_EAST: :"Middle East"
|
|
958
|
+
|
|
959
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::sip_region]
|
|
960
|
+
end
|
|
961
|
+
|
|
962
|
+
type status_callback_event =
|
|
963
|
+
:initiated | :ringing | :answered | :completed
|
|
964
|
+
|
|
965
|
+
module StatusCallbackEvent
|
|
966
|
+
extend Telnyx::Internal::Type::Enum
|
|
967
|
+
|
|
968
|
+
INITIATED: :initiated
|
|
969
|
+
RINGING: :ringing
|
|
970
|
+
ANSWERED: :answered
|
|
971
|
+
COMPLETED: :completed
|
|
972
|
+
|
|
973
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_event]
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
type status_callback_method = :GET | :POST
|
|
977
|
+
|
|
978
|
+
module StatusCallbackMethod
|
|
979
|
+
extend Telnyx::Internal::Type::Enum
|
|
980
|
+
|
|
981
|
+
GET: :GET
|
|
982
|
+
POST: :POST
|
|
983
|
+
|
|
984
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::status_callback_method]
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
type supervising_role = :barge | :whisper | :monitor
|
|
988
|
+
|
|
989
|
+
module SupervisingRole
|
|
990
|
+
extend Telnyx::Internal::Type::Enum
|
|
991
|
+
|
|
992
|
+
BARGE: :barge
|
|
993
|
+
WHISPER: :whisper
|
|
994
|
+
MONITOR: :monitor
|
|
995
|
+
|
|
996
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::supervising_role]
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
type trim = :"trim-silence" | :"do-not-trim"
|
|
1000
|
+
|
|
1001
|
+
module Trim
|
|
1002
|
+
extend Telnyx::Internal::Type::Enum
|
|
1003
|
+
|
|
1004
|
+
TRIM_SILENCE: :"trim-silence"
|
|
1005
|
+
DO_NOT_TRIM: :"do-not-trim"
|
|
1006
|
+
|
|
1007
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::trim]
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
type url_method = :GET | :POST
|
|
1011
|
+
|
|
1012
|
+
module URLMethod
|
|
1013
|
+
extend Telnyx::Internal::Type::Enum
|
|
1014
|
+
|
|
1015
|
+
GET: :GET
|
|
1016
|
+
POST: :POST
|
|
1017
|
+
|
|
1018
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::url_method]
|
|
1019
|
+
end
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
type application_default =
|
|
1023
|
+
{
|
|
1024
|
+
application_sid: String,
|
|
1025
|
+
async_amd: bool,
|
|
1026
|
+
async_amd_status_callback: String,
|
|
1027
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method,
|
|
1028
|
+
caller_id: String,
|
|
1029
|
+
cancel_playback_on_detect_message_end: bool,
|
|
1030
|
+
cancel_playback_on_machine_detection: bool,
|
|
1031
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader],
|
|
1032
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode,
|
|
1033
|
+
fallback_url: String,
|
|
1034
|
+
from: String,
|
|
1035
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection,
|
|
1036
|
+
machine_detection_silence_timeout: Integer,
|
|
1037
|
+
machine_detection_speech_end_threshold: Integer,
|
|
1038
|
+
machine_detection_speech_threshold: Integer,
|
|
1039
|
+
machine_detection_timeout: Integer,
|
|
1040
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption,
|
|
1041
|
+
preferred_codecs: String,
|
|
1042
|
+
record: bool,
|
|
1043
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels,
|
|
1044
|
+
recording_status_callback: String,
|
|
1045
|
+
recording_status_callback_event: String,
|
|
1046
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method,
|
|
1047
|
+
recording_timeout: Integer,
|
|
1048
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track,
|
|
1049
|
+
send_recording_url: bool,
|
|
1050
|
+
sip_auth_password: String,
|
|
1051
|
+
sip_auth_username: String,
|
|
1052
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
|
|
1053
|
+
status_callback: String,
|
|
1054
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
|
|
1055
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
|
|
1056
|
+
supervise_call_sid: String,
|
|
1057
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
|
|
1058
|
+
texml: top,
|
|
1059
|
+
time_limit: Integer,
|
|
1060
|
+
timeout: Integer,
|
|
1061
|
+
to: String,
|
|
1062
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim,
|
|
1063
|
+
url: top,
|
|
1064
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
class ApplicationDefault < Telnyx::Internal::Type::BaseModel
|
|
1068
|
+
attr_reader application_sid: String?
|
|
1069
|
+
|
|
1070
|
+
def application_sid=: (String) -> String
|
|
1071
|
+
|
|
1072
|
+
attr_reader async_amd: bool?
|
|
1073
|
+
|
|
1074
|
+
def async_amd=: (bool) -> bool
|
|
1075
|
+
|
|
1076
|
+
attr_reader async_amd_status_callback: String?
|
|
1077
|
+
|
|
1078
|
+
def async_amd_status_callback=: (String) -> String
|
|
1079
|
+
|
|
1080
|
+
attr_reader async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method?
|
|
1081
|
+
|
|
1082
|
+
def async_amd_status_callback_method=: (
|
|
1083
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method
|
|
1084
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method
|
|
1085
|
+
|
|
1086
|
+
attr_reader caller_id: String?
|
|
1087
|
+
|
|
1088
|
+
def caller_id=: (String) -> String
|
|
1089
|
+
|
|
1090
|
+
attr_reader cancel_playback_on_detect_message_end: bool?
|
|
1091
|
+
|
|
1092
|
+
def cancel_playback_on_detect_message_end=: (bool) -> bool
|
|
1093
|
+
|
|
1094
|
+
attr_reader cancel_playback_on_machine_detection: bool?
|
|
1095
|
+
|
|
1096
|
+
def cancel_playback_on_machine_detection=: (bool) -> bool
|
|
1097
|
+
|
|
1098
|
+
attr_reader custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader]?
|
|
1099
|
+
|
|
1100
|
+
def custom_headers=: (
|
|
1101
|
+
::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader]
|
|
1102
|
+
) -> ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader]
|
|
1103
|
+
|
|
1104
|
+
attr_reader detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode?
|
|
1105
|
+
|
|
1106
|
+
def detection_mode=: (
|
|
1107
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode
|
|
1108
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode
|
|
1109
|
+
|
|
1110
|
+
attr_reader fallback_url: String?
|
|
1111
|
+
|
|
1112
|
+
def fallback_url=: (String) -> String
|
|
1113
|
+
|
|
1114
|
+
attr_reader from: String?
|
|
1115
|
+
|
|
1116
|
+
def from=: (String) -> String
|
|
1117
|
+
|
|
1118
|
+
attr_reader machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection?
|
|
1119
|
+
|
|
1120
|
+
def machine_detection=: (
|
|
1121
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection
|
|
1122
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection
|
|
1123
|
+
|
|
1124
|
+
attr_reader machine_detection_silence_timeout: Integer?
|
|
1125
|
+
|
|
1126
|
+
def machine_detection_silence_timeout=: (Integer) -> Integer
|
|
1127
|
+
|
|
1128
|
+
attr_reader machine_detection_speech_end_threshold: Integer?
|
|
1129
|
+
|
|
1130
|
+
def machine_detection_speech_end_threshold=: (Integer) -> Integer
|
|
1131
|
+
|
|
1132
|
+
attr_reader machine_detection_speech_threshold: Integer?
|
|
1133
|
+
|
|
1134
|
+
def machine_detection_speech_threshold=: (Integer) -> Integer
|
|
1135
|
+
|
|
1136
|
+
attr_reader machine_detection_timeout: Integer?
|
|
1137
|
+
|
|
1138
|
+
def machine_detection_timeout=: (Integer) -> Integer
|
|
1139
|
+
|
|
1140
|
+
attr_reader media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption?
|
|
1141
|
+
|
|
1142
|
+
def media_encryption=: (
|
|
1143
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption
|
|
1144
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption
|
|
1145
|
+
|
|
1146
|
+
attr_reader preferred_codecs: String?
|
|
1147
|
+
|
|
1148
|
+
def preferred_codecs=: (String) -> String
|
|
1149
|
+
|
|
1150
|
+
attr_reader record: bool?
|
|
1151
|
+
|
|
1152
|
+
def record=: (bool) -> bool
|
|
1153
|
+
|
|
1154
|
+
attr_reader recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels?
|
|
1155
|
+
|
|
1156
|
+
def recording_channels=: (
|
|
1157
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels
|
|
1158
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels
|
|
1159
|
+
|
|
1160
|
+
attr_reader recording_status_callback: String?
|
|
1161
|
+
|
|
1162
|
+
def recording_status_callback=: (String) -> String
|
|
1163
|
+
|
|
1164
|
+
attr_reader recording_status_callback_event: String?
|
|
1165
|
+
|
|
1166
|
+
def recording_status_callback_event=: (String) -> String
|
|
1167
|
+
|
|
1168
|
+
attr_reader recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method?
|
|
1169
|
+
|
|
1170
|
+
def recording_status_callback_method=: (
|
|
1171
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method
|
|
1172
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method
|
|
1173
|
+
|
|
1174
|
+
attr_reader recording_timeout: Integer?
|
|
1175
|
+
|
|
1176
|
+
def recording_timeout=: (Integer) -> Integer
|
|
1177
|
+
|
|
1178
|
+
attr_reader recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track?
|
|
1179
|
+
|
|
1180
|
+
def recording_track=: (
|
|
1181
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track
|
|
1182
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track
|
|
1183
|
+
|
|
1184
|
+
attr_reader send_recording_url: bool?
|
|
1185
|
+
|
|
1186
|
+
def send_recording_url=: (bool) -> bool
|
|
1187
|
+
|
|
1188
|
+
attr_reader sip_auth_password: String?
|
|
1189
|
+
|
|
1190
|
+
def sip_auth_password=: (String) -> String
|
|
1191
|
+
|
|
1192
|
+
attr_reader sip_auth_username: String?
|
|
1193
|
+
|
|
1194
|
+
def sip_auth_username=: (String) -> String
|
|
1195
|
+
|
|
1196
|
+
attr_reader sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region?
|
|
1197
|
+
|
|
1198
|
+
def sip_region=: (
|
|
1199
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region
|
|
1200
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region
|
|
1201
|
+
|
|
1202
|
+
attr_reader status_callback: String?
|
|
1203
|
+
|
|
1204
|
+
def status_callback=: (String) -> String
|
|
1205
|
+
|
|
1206
|
+
attr_reader status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event?
|
|
1207
|
+
|
|
1208
|
+
def status_callback_event=: (
|
|
1209
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event
|
|
1210
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event
|
|
1211
|
+
|
|
1212
|
+
attr_reader status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method?
|
|
1213
|
+
|
|
1214
|
+
def status_callback_method=: (
|
|
1215
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method
|
|
1216
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method
|
|
1217
|
+
|
|
1218
|
+
attr_reader supervise_call_sid: String?
|
|
1219
|
+
|
|
1220
|
+
def supervise_call_sid=: (String) -> String
|
|
1221
|
+
|
|
1222
|
+
attr_reader supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role?
|
|
1223
|
+
|
|
1224
|
+
def supervising_role=: (
|
|
1225
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role
|
|
1226
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role
|
|
1227
|
+
|
|
1228
|
+
attr_reader texml: top?
|
|
1229
|
+
|
|
1230
|
+
def texml=: (top) -> top
|
|
1231
|
+
|
|
1232
|
+
attr_reader time_limit: Integer?
|
|
1233
|
+
|
|
1234
|
+
def time_limit=: (Integer) -> Integer
|
|
1235
|
+
|
|
1236
|
+
attr_reader timeout: Integer?
|
|
1237
|
+
|
|
1238
|
+
def timeout=: (Integer) -> Integer
|
|
1239
|
+
|
|
1240
|
+
attr_reader to: String?
|
|
1241
|
+
|
|
1242
|
+
def to=: (String) -> String
|
|
1243
|
+
|
|
1244
|
+
attr_reader trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim?
|
|
1245
|
+
|
|
1246
|
+
def trim=: (
|
|
1247
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim
|
|
1248
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim
|
|
1249
|
+
|
|
1250
|
+
attr_reader url: top?
|
|
1251
|
+
|
|
1252
|
+
def url=: (top) -> top
|
|
1253
|
+
|
|
1254
|
+
attr_reader url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method?
|
|
1255
|
+
|
|
1256
|
+
def url_method=: (
|
|
1257
|
+
Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method
|
|
1258
|
+
) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method
|
|
1259
|
+
|
|
1260
|
+
def initialize: (
|
|
1261
|
+
?application_sid: String,
|
|
1262
|
+
?async_amd: bool,
|
|
1263
|
+
?async_amd_status_callback: String,
|
|
1264
|
+
?async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method,
|
|
1265
|
+
?caller_id: String,
|
|
1266
|
+
?cancel_playback_on_detect_message_end: bool,
|
|
1267
|
+
?cancel_playback_on_machine_detection: bool,
|
|
1268
|
+
?custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader],
|
|
1269
|
+
?detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode,
|
|
1270
|
+
?fallback_url: String,
|
|
1271
|
+
?from: String,
|
|
1272
|
+
?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection,
|
|
1273
|
+
?machine_detection_silence_timeout: Integer,
|
|
1274
|
+
?machine_detection_speech_end_threshold: Integer,
|
|
1275
|
+
?machine_detection_speech_threshold: Integer,
|
|
1276
|
+
?machine_detection_timeout: Integer,
|
|
1277
|
+
?media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption,
|
|
1278
|
+
?preferred_codecs: String,
|
|
1279
|
+
?record: bool,
|
|
1280
|
+
?recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels,
|
|
1281
|
+
?recording_status_callback: String,
|
|
1282
|
+
?recording_status_callback_event: String,
|
|
1283
|
+
?recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method,
|
|
1284
|
+
?recording_timeout: Integer,
|
|
1285
|
+
?recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track,
|
|
1286
|
+
?send_recording_url: bool,
|
|
1287
|
+
?sip_auth_password: String,
|
|
1288
|
+
?sip_auth_username: String,
|
|
1289
|
+
?sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
|
|
1290
|
+
?status_callback: String,
|
|
1291
|
+
?status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
|
|
1292
|
+
?status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
|
|
1293
|
+
?supervise_call_sid: String,
|
|
1294
|
+
?supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
|
|
1295
|
+
?texml: top,
|
|
1296
|
+
?time_limit: Integer,
|
|
1297
|
+
?timeout: Integer,
|
|
1298
|
+
?to: String,
|
|
1299
|
+
?trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim,
|
|
1300
|
+
?url: top,
|
|
1301
|
+
?url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method
|
|
1302
|
+
) -> void
|
|
1303
|
+
|
|
1304
|
+
def to_hash: -> {
|
|
1305
|
+
application_sid: String,
|
|
1306
|
+
async_amd: bool,
|
|
1307
|
+
async_amd_status_callback: String,
|
|
1308
|
+
async_amd_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method,
|
|
1309
|
+
caller_id: String,
|
|
1310
|
+
cancel_playback_on_detect_message_end: bool,
|
|
1311
|
+
cancel_playback_on_machine_detection: bool,
|
|
1312
|
+
custom_headers: ::Array[Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::CustomHeader],
|
|
1313
|
+
detection_mode: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode,
|
|
1314
|
+
fallback_url: String,
|
|
1315
|
+
from: String,
|
|
1316
|
+
machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection,
|
|
1317
|
+
machine_detection_silence_timeout: Integer,
|
|
1318
|
+
machine_detection_speech_end_threshold: Integer,
|
|
1319
|
+
machine_detection_speech_threshold: Integer,
|
|
1320
|
+
machine_detection_timeout: Integer,
|
|
1321
|
+
media_encryption: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption,
|
|
1322
|
+
preferred_codecs: String,
|
|
1323
|
+
record: bool,
|
|
1324
|
+
recording_channels: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels,
|
|
1325
|
+
recording_status_callback: String,
|
|
1326
|
+
recording_status_callback_event: String,
|
|
1327
|
+
recording_status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method,
|
|
1328
|
+
recording_timeout: Integer,
|
|
1329
|
+
recording_track: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track,
|
|
1330
|
+
send_recording_url: bool,
|
|
1331
|
+
sip_auth_password: String,
|
|
1332
|
+
sip_auth_username: String,
|
|
1333
|
+
sip_region: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region,
|
|
1334
|
+
status_callback: String,
|
|
1335
|
+
status_callback_event: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event,
|
|
1336
|
+
status_callback_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method,
|
|
1337
|
+
supervise_call_sid: String,
|
|
1338
|
+
supervising_role: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role,
|
|
1339
|
+
texml: top,
|
|
1340
|
+
time_limit: Integer,
|
|
1341
|
+
timeout: Integer,
|
|
1342
|
+
to: String,
|
|
1343
|
+
trim: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim,
|
|
1344
|
+
url: top,
|
|
1345
|
+
url_method: Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
type async_amd_status_callback_method = :GET | :POST
|
|
1349
|
+
|
|
1350
|
+
module AsyncAmdStatusCallbackMethod
|
|
1351
|
+
extend Telnyx::Internal::Type::Enum
|
|
1352
|
+
|
|
1353
|
+
GET: :GET
|
|
1354
|
+
POST: :POST
|
|
1355
|
+
|
|
1356
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::async_amd_status_callback_method]
|
|
1357
|
+
end
|
|
1358
|
+
|
|
1359
|
+
type custom_header = { name: String, value: String }
|
|
1360
|
+
|
|
1361
|
+
class CustomHeader < Telnyx::Internal::Type::BaseModel
|
|
1362
|
+
attr_accessor name: String
|
|
1363
|
+
|
|
1364
|
+
attr_accessor value: String
|
|
1365
|
+
|
|
1366
|
+
def initialize: (name: String, value: String) -> void
|
|
1367
|
+
|
|
1368
|
+
def to_hash: -> { name: String, value: String }
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1371
|
+
type detection_mode = :Premium | :Regular
|
|
1372
|
+
|
|
1373
|
+
module DetectionMode
|
|
1374
|
+
extend Telnyx::Internal::Type::Enum
|
|
1375
|
+
|
|
1376
|
+
PREMIUM: :Premium
|
|
1377
|
+
REGULAR: :Regular
|
|
1378
|
+
|
|
1379
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::detection_mode]
|
|
1380
|
+
end
|
|
1381
|
+
|
|
1382
|
+
type machine_detection = :Enable | :Disable | :DetectMessageEnd
|
|
1383
|
+
|
|
1384
|
+
module MachineDetection
|
|
1385
|
+
extend Telnyx::Internal::Type::Enum
|
|
1386
|
+
|
|
1387
|
+
ENABLE: :Enable
|
|
1388
|
+
DISABLE: :Disable
|
|
1389
|
+
DETECT_MESSAGE_END: :DetectMessageEnd
|
|
1390
|
+
|
|
1391
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::machine_detection]
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
type media_encryption = :disabled | :SRTP | :DTLS
|
|
1395
|
+
|
|
1396
|
+
module MediaEncryption
|
|
1397
|
+
extend Telnyx::Internal::Type::Enum
|
|
1398
|
+
|
|
1399
|
+
DISABLED: :disabled
|
|
1400
|
+
SRTP: :SRTP
|
|
1401
|
+
DTLS: :DTLS
|
|
1402
|
+
|
|
1403
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::media_encryption]
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
type recording_channels = :mono | :dual
|
|
1407
|
+
|
|
1408
|
+
module RecordingChannels
|
|
1409
|
+
extend Telnyx::Internal::Type::Enum
|
|
1410
|
+
|
|
1411
|
+
MONO: :mono
|
|
1412
|
+
DUAL: :dual
|
|
1413
|
+
|
|
1414
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_channels]
|
|
1415
|
+
end
|
|
1416
|
+
|
|
1417
|
+
type recording_status_callback_method = :GET | :POST
|
|
1418
|
+
|
|
1419
|
+
module RecordingStatusCallbackMethod
|
|
1420
|
+
extend Telnyx::Internal::Type::Enum
|
|
1421
|
+
|
|
1422
|
+
GET: :GET
|
|
1423
|
+
POST: :POST
|
|
1424
|
+
|
|
1425
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_status_callback_method]
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
type recording_track = :inbound | :outbound | :both
|
|
1429
|
+
|
|
1430
|
+
module RecordingTrack
|
|
1431
|
+
extend Telnyx::Internal::Type::Enum
|
|
1432
|
+
|
|
1433
|
+
INBOUND: :inbound
|
|
1434
|
+
OUTBOUND: :outbound
|
|
1435
|
+
BOTH: :both
|
|
1436
|
+
|
|
1437
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::recording_track]
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
type sip_region =
|
|
1441
|
+
:US | :Europe | :Canada | :Australia | :"Middle East"
|
|
1442
|
+
|
|
1443
|
+
module SipRegion
|
|
1444
|
+
extend Telnyx::Internal::Type::Enum
|
|
1445
|
+
|
|
1446
|
+
US: :US
|
|
1447
|
+
EUROPE: :Europe
|
|
1448
|
+
CANADA: :Canada
|
|
1449
|
+
AUSTRALIA: :Australia
|
|
1450
|
+
MIDDLE_EAST: :"Middle East"
|
|
1451
|
+
|
|
1452
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::sip_region]
|
|
1453
|
+
end
|
|
1454
|
+
|
|
1455
|
+
type status_callback_event =
|
|
1456
|
+
:initiated | :ringing | :answered | :completed
|
|
1457
|
+
|
|
1458
|
+
module StatusCallbackEvent
|
|
1459
|
+
extend Telnyx::Internal::Type::Enum
|
|
1460
|
+
|
|
1461
|
+
INITIATED: :initiated
|
|
1462
|
+
RINGING: :ringing
|
|
1463
|
+
ANSWERED: :answered
|
|
1464
|
+
COMPLETED: :completed
|
|
1465
|
+
|
|
1466
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_event]
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
type status_callback_method = :GET | :POST
|
|
1470
|
+
|
|
1471
|
+
module StatusCallbackMethod
|
|
1472
|
+
extend Telnyx::Internal::Type::Enum
|
|
1473
|
+
|
|
1474
|
+
GET: :GET
|
|
1475
|
+
POST: :POST
|
|
1476
|
+
|
|
1477
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::status_callback_method]
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
type supervising_role = :barge | :whisper | :monitor
|
|
1481
|
+
|
|
1482
|
+
module SupervisingRole
|
|
1483
|
+
extend Telnyx::Internal::Type::Enum
|
|
1484
|
+
|
|
1485
|
+
BARGE: :barge
|
|
1486
|
+
WHISPER: :whisper
|
|
1487
|
+
MONITOR: :monitor
|
|
1488
|
+
|
|
1489
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::supervising_role]
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
type trim = :"trim-silence" | :"do-not-trim"
|
|
1493
|
+
|
|
1494
|
+
module Trim
|
|
1495
|
+
extend Telnyx::Internal::Type::Enum
|
|
1496
|
+
|
|
1497
|
+
TRIM_SILENCE: :"trim-silence"
|
|
1498
|
+
DO_NOT_TRIM: :"do-not-trim"
|
|
1499
|
+
|
|
1500
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::trim]
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
type url_method = :GET | :POST
|
|
469
1504
|
|
|
470
|
-
|
|
1505
|
+
module URLMethod
|
|
1506
|
+
extend Telnyx::Internal::Type::Enum
|
|
471
1507
|
|
|
472
|
-
|
|
473
|
-
|
|
1508
|
+
GET: :GET
|
|
1509
|
+
POST: :POST
|
|
474
1510
|
|
|
475
|
-
|
|
476
|
-
|
|
1511
|
+
def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::url_method]
|
|
1512
|
+
end
|
|
1513
|
+
end
|
|
477
1514
|
|
|
478
|
-
def self?.
|
|
1515
|
+
def self?.variants: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::body]
|
|
479
1516
|
end
|
|
480
1517
|
end
|
|
481
1518
|
end
|