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
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type texml_initiate_ai_call_params =
|
|
4
|
+
{
|
|
5
|
+
connection_id: String,
|
|
6
|
+
ai_assistant_id: String,
|
|
7
|
+
from: String,
|
|
8
|
+
to: String,
|
|
9
|
+
ai_assistant_dynamic_variables: ::Hash[Symbol, String],
|
|
10
|
+
ai_assistant_version: String,
|
|
11
|
+
async_amd: bool,
|
|
12
|
+
async_amd_status_callback: String,
|
|
13
|
+
async_amd_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method,
|
|
14
|
+
caller_id: String,
|
|
15
|
+
conversation_callback: String,
|
|
16
|
+
conversation_callback_method: Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method,
|
|
17
|
+
conversation_callbacks: ::Array[String],
|
|
18
|
+
custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
|
|
19
|
+
detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
|
|
20
|
+
machine_detection: Telnyx::Models::TexmlInitiateAICallParams::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
|
+
passports: String,
|
|
26
|
+
preferred_codecs: String,
|
|
27
|
+
record: bool,
|
|
28
|
+
recording_channels: Telnyx::Models::TexmlInitiateAICallParams::recording_channels,
|
|
29
|
+
recording_status_callback: String,
|
|
30
|
+
recording_status_callback_event: String,
|
|
31
|
+
recording_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method,
|
|
32
|
+
recording_timeout: Integer,
|
|
33
|
+
recording_track: Telnyx::Models::TexmlInitiateAICallParams::recording_track,
|
|
34
|
+
send_recording_url: bool,
|
|
35
|
+
sip_auth_password: String,
|
|
36
|
+
sip_auth_username: String,
|
|
37
|
+
sip_region: Telnyx::Models::TexmlInitiateAICallParams::sip_region,
|
|
38
|
+
status_callback: String,
|
|
39
|
+
status_callback_event: String,
|
|
40
|
+
status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::status_callback_method,
|
|
41
|
+
status_callbacks: ::Array[String],
|
|
42
|
+
time_limit: Integer,
|
|
43
|
+
timeout_seconds: Integer,
|
|
44
|
+
trim: Telnyx::Models::TexmlInitiateAICallParams::trim
|
|
45
|
+
}
|
|
46
|
+
& Telnyx::Internal::Type::request_parameters
|
|
47
|
+
|
|
48
|
+
class TexmlInitiateAICallParams < Telnyx::Internal::Type::BaseModel
|
|
49
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
50
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
51
|
+
|
|
52
|
+
attr_accessor connection_id: String
|
|
53
|
+
|
|
54
|
+
attr_accessor ai_assistant_id: String
|
|
55
|
+
|
|
56
|
+
attr_accessor from: String
|
|
57
|
+
|
|
58
|
+
attr_accessor to: String
|
|
59
|
+
|
|
60
|
+
attr_reader ai_assistant_dynamic_variables: ::Hash[Symbol, String]?
|
|
61
|
+
|
|
62
|
+
def ai_assistant_dynamic_variables=: (
|
|
63
|
+
::Hash[Symbol, String]
|
|
64
|
+
) -> ::Hash[Symbol, String]
|
|
65
|
+
|
|
66
|
+
attr_reader ai_assistant_version: String?
|
|
67
|
+
|
|
68
|
+
def ai_assistant_version=: (String) -> String
|
|
69
|
+
|
|
70
|
+
attr_reader async_amd: bool?
|
|
71
|
+
|
|
72
|
+
def async_amd=: (bool) -> bool
|
|
73
|
+
|
|
74
|
+
attr_reader async_amd_status_callback: String?
|
|
75
|
+
|
|
76
|
+
def async_amd_status_callback=: (String) -> String
|
|
77
|
+
|
|
78
|
+
attr_reader async_amd_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method?
|
|
79
|
+
|
|
80
|
+
def async_amd_status_callback_method=: (
|
|
81
|
+
Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method
|
|
82
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method
|
|
83
|
+
|
|
84
|
+
attr_reader caller_id: String?
|
|
85
|
+
|
|
86
|
+
def caller_id=: (String) -> String
|
|
87
|
+
|
|
88
|
+
attr_reader conversation_callback: String?
|
|
89
|
+
|
|
90
|
+
def conversation_callback=: (String) -> String
|
|
91
|
+
|
|
92
|
+
attr_reader conversation_callback_method: Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method?
|
|
93
|
+
|
|
94
|
+
def conversation_callback_method=: (
|
|
95
|
+
Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method
|
|
96
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method
|
|
97
|
+
|
|
98
|
+
attr_reader conversation_callbacks: ::Array[String]?
|
|
99
|
+
|
|
100
|
+
def conversation_callbacks=: (::Array[String]) -> ::Array[String]
|
|
101
|
+
|
|
102
|
+
attr_reader custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader]?
|
|
103
|
+
|
|
104
|
+
def custom_headers=: (
|
|
105
|
+
::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader]
|
|
106
|
+
) -> ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader]
|
|
107
|
+
|
|
108
|
+
attr_reader detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode?
|
|
109
|
+
|
|
110
|
+
def detection_mode=: (
|
|
111
|
+
Telnyx::Models::TexmlInitiateAICallParams::detection_mode
|
|
112
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::detection_mode
|
|
113
|
+
|
|
114
|
+
attr_reader machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection?
|
|
115
|
+
|
|
116
|
+
def machine_detection=: (
|
|
117
|
+
Telnyx::Models::TexmlInitiateAICallParams::machine_detection
|
|
118
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::machine_detection
|
|
119
|
+
|
|
120
|
+
attr_reader machine_detection_silence_timeout: Integer?
|
|
121
|
+
|
|
122
|
+
def machine_detection_silence_timeout=: (Integer) -> Integer
|
|
123
|
+
|
|
124
|
+
attr_reader machine_detection_speech_end_threshold: Integer?
|
|
125
|
+
|
|
126
|
+
def machine_detection_speech_end_threshold=: (Integer) -> Integer
|
|
127
|
+
|
|
128
|
+
attr_reader machine_detection_speech_threshold: Integer?
|
|
129
|
+
|
|
130
|
+
def machine_detection_speech_threshold=: (Integer) -> Integer
|
|
131
|
+
|
|
132
|
+
attr_reader machine_detection_timeout: Integer?
|
|
133
|
+
|
|
134
|
+
def machine_detection_timeout=: (Integer) -> Integer
|
|
135
|
+
|
|
136
|
+
attr_reader passports: String?
|
|
137
|
+
|
|
138
|
+
def passports=: (String) -> String
|
|
139
|
+
|
|
140
|
+
attr_reader preferred_codecs: String?
|
|
141
|
+
|
|
142
|
+
def preferred_codecs=: (String) -> String
|
|
143
|
+
|
|
144
|
+
attr_reader record: bool?
|
|
145
|
+
|
|
146
|
+
def record=: (bool) -> bool
|
|
147
|
+
|
|
148
|
+
attr_reader recording_channels: Telnyx::Models::TexmlInitiateAICallParams::recording_channels?
|
|
149
|
+
|
|
150
|
+
def recording_channels=: (
|
|
151
|
+
Telnyx::Models::TexmlInitiateAICallParams::recording_channels
|
|
152
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::recording_channels
|
|
153
|
+
|
|
154
|
+
attr_reader recording_status_callback: String?
|
|
155
|
+
|
|
156
|
+
def recording_status_callback=: (String) -> String
|
|
157
|
+
|
|
158
|
+
attr_reader recording_status_callback_event: String?
|
|
159
|
+
|
|
160
|
+
def recording_status_callback_event=: (String) -> String
|
|
161
|
+
|
|
162
|
+
attr_reader recording_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method?
|
|
163
|
+
|
|
164
|
+
def recording_status_callback_method=: (
|
|
165
|
+
Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method
|
|
166
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method
|
|
167
|
+
|
|
168
|
+
attr_reader recording_timeout: Integer?
|
|
169
|
+
|
|
170
|
+
def recording_timeout=: (Integer) -> Integer
|
|
171
|
+
|
|
172
|
+
attr_reader recording_track: Telnyx::Models::TexmlInitiateAICallParams::recording_track?
|
|
173
|
+
|
|
174
|
+
def recording_track=: (
|
|
175
|
+
Telnyx::Models::TexmlInitiateAICallParams::recording_track
|
|
176
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::recording_track
|
|
177
|
+
|
|
178
|
+
attr_reader send_recording_url: bool?
|
|
179
|
+
|
|
180
|
+
def send_recording_url=: (bool) -> bool
|
|
181
|
+
|
|
182
|
+
attr_reader sip_auth_password: String?
|
|
183
|
+
|
|
184
|
+
def sip_auth_password=: (String) -> String
|
|
185
|
+
|
|
186
|
+
attr_reader sip_auth_username: String?
|
|
187
|
+
|
|
188
|
+
def sip_auth_username=: (String) -> String
|
|
189
|
+
|
|
190
|
+
attr_reader sip_region: Telnyx::Models::TexmlInitiateAICallParams::sip_region?
|
|
191
|
+
|
|
192
|
+
def sip_region=: (
|
|
193
|
+
Telnyx::Models::TexmlInitiateAICallParams::sip_region
|
|
194
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::sip_region
|
|
195
|
+
|
|
196
|
+
attr_reader status_callback: String?
|
|
197
|
+
|
|
198
|
+
def status_callback=: (String) -> String
|
|
199
|
+
|
|
200
|
+
attr_reader status_callback_event: String?
|
|
201
|
+
|
|
202
|
+
def status_callback_event=: (String) -> String
|
|
203
|
+
|
|
204
|
+
attr_reader status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::status_callback_method?
|
|
205
|
+
|
|
206
|
+
def status_callback_method=: (
|
|
207
|
+
Telnyx::Models::TexmlInitiateAICallParams::status_callback_method
|
|
208
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::status_callback_method
|
|
209
|
+
|
|
210
|
+
attr_reader status_callbacks: ::Array[String]?
|
|
211
|
+
|
|
212
|
+
def status_callbacks=: (::Array[String]) -> ::Array[String]
|
|
213
|
+
|
|
214
|
+
attr_reader time_limit: Integer?
|
|
215
|
+
|
|
216
|
+
def time_limit=: (Integer) -> Integer
|
|
217
|
+
|
|
218
|
+
attr_reader timeout_seconds: Integer?
|
|
219
|
+
|
|
220
|
+
def timeout_seconds=: (Integer) -> Integer
|
|
221
|
+
|
|
222
|
+
attr_reader trim: Telnyx::Models::TexmlInitiateAICallParams::trim?
|
|
223
|
+
|
|
224
|
+
def trim=: (
|
|
225
|
+
Telnyx::Models::TexmlInitiateAICallParams::trim
|
|
226
|
+
) -> Telnyx::Models::TexmlInitiateAICallParams::trim
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
connection_id: String,
|
|
230
|
+
ai_assistant_id: String,
|
|
231
|
+
from: String,
|
|
232
|
+
to: String,
|
|
233
|
+
?ai_assistant_dynamic_variables: ::Hash[Symbol, String],
|
|
234
|
+
?ai_assistant_version: String,
|
|
235
|
+
?async_amd: bool,
|
|
236
|
+
?async_amd_status_callback: String,
|
|
237
|
+
?async_amd_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method,
|
|
238
|
+
?caller_id: String,
|
|
239
|
+
?conversation_callback: String,
|
|
240
|
+
?conversation_callback_method: Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method,
|
|
241
|
+
?conversation_callbacks: ::Array[String],
|
|
242
|
+
?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
|
|
243
|
+
?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
|
|
244
|
+
?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
|
|
245
|
+
?machine_detection_silence_timeout: Integer,
|
|
246
|
+
?machine_detection_speech_end_threshold: Integer,
|
|
247
|
+
?machine_detection_speech_threshold: Integer,
|
|
248
|
+
?machine_detection_timeout: Integer,
|
|
249
|
+
?passports: String,
|
|
250
|
+
?preferred_codecs: String,
|
|
251
|
+
?record: bool,
|
|
252
|
+
?recording_channels: Telnyx::Models::TexmlInitiateAICallParams::recording_channels,
|
|
253
|
+
?recording_status_callback: String,
|
|
254
|
+
?recording_status_callback_event: String,
|
|
255
|
+
?recording_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method,
|
|
256
|
+
?recording_timeout: Integer,
|
|
257
|
+
?recording_track: Telnyx::Models::TexmlInitiateAICallParams::recording_track,
|
|
258
|
+
?send_recording_url: bool,
|
|
259
|
+
?sip_auth_password: String,
|
|
260
|
+
?sip_auth_username: String,
|
|
261
|
+
?sip_region: Telnyx::Models::TexmlInitiateAICallParams::sip_region,
|
|
262
|
+
?status_callback: String,
|
|
263
|
+
?status_callback_event: String,
|
|
264
|
+
?status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::status_callback_method,
|
|
265
|
+
?status_callbacks: ::Array[String],
|
|
266
|
+
?time_limit: Integer,
|
|
267
|
+
?timeout_seconds: Integer,
|
|
268
|
+
?trim: Telnyx::Models::TexmlInitiateAICallParams::trim,
|
|
269
|
+
?request_options: Telnyx::request_opts
|
|
270
|
+
) -> void
|
|
271
|
+
|
|
272
|
+
def to_hash: -> {
|
|
273
|
+
connection_id: String,
|
|
274
|
+
ai_assistant_id: String,
|
|
275
|
+
from: String,
|
|
276
|
+
to: String,
|
|
277
|
+
ai_assistant_dynamic_variables: ::Hash[Symbol, String],
|
|
278
|
+
ai_assistant_version: String,
|
|
279
|
+
async_amd: bool,
|
|
280
|
+
async_amd_status_callback: String,
|
|
281
|
+
async_amd_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method,
|
|
282
|
+
caller_id: String,
|
|
283
|
+
conversation_callback: String,
|
|
284
|
+
conversation_callback_method: Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method,
|
|
285
|
+
conversation_callbacks: ::Array[String],
|
|
286
|
+
custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
|
|
287
|
+
detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
|
|
288
|
+
machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
|
|
289
|
+
machine_detection_silence_timeout: Integer,
|
|
290
|
+
machine_detection_speech_end_threshold: Integer,
|
|
291
|
+
machine_detection_speech_threshold: Integer,
|
|
292
|
+
machine_detection_timeout: Integer,
|
|
293
|
+
passports: String,
|
|
294
|
+
preferred_codecs: String,
|
|
295
|
+
record: bool,
|
|
296
|
+
recording_channels: Telnyx::Models::TexmlInitiateAICallParams::recording_channels,
|
|
297
|
+
recording_status_callback: String,
|
|
298
|
+
recording_status_callback_event: String,
|
|
299
|
+
recording_status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method,
|
|
300
|
+
recording_timeout: Integer,
|
|
301
|
+
recording_track: Telnyx::Models::TexmlInitiateAICallParams::recording_track,
|
|
302
|
+
send_recording_url: bool,
|
|
303
|
+
sip_auth_password: String,
|
|
304
|
+
sip_auth_username: String,
|
|
305
|
+
sip_region: Telnyx::Models::TexmlInitiateAICallParams::sip_region,
|
|
306
|
+
status_callback: String,
|
|
307
|
+
status_callback_event: String,
|
|
308
|
+
status_callback_method: Telnyx::Models::TexmlInitiateAICallParams::status_callback_method,
|
|
309
|
+
status_callbacks: ::Array[String],
|
|
310
|
+
time_limit: Integer,
|
|
311
|
+
timeout_seconds: Integer,
|
|
312
|
+
trim: Telnyx::Models::TexmlInitiateAICallParams::trim,
|
|
313
|
+
request_options: Telnyx::RequestOptions
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
type async_amd_status_callback_method = :GET | :POST
|
|
317
|
+
|
|
318
|
+
module AsyncAmdStatusCallbackMethod
|
|
319
|
+
extend Telnyx::Internal::Type::Enum
|
|
320
|
+
|
|
321
|
+
GET: :GET
|
|
322
|
+
POST: :POST
|
|
323
|
+
|
|
324
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::async_amd_status_callback_method]
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
type conversation_callback_method = :GET | :POST
|
|
328
|
+
|
|
329
|
+
module ConversationCallbackMethod
|
|
330
|
+
extend Telnyx::Internal::Type::Enum
|
|
331
|
+
|
|
332
|
+
GET: :GET
|
|
333
|
+
POST: :POST
|
|
334
|
+
|
|
335
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::conversation_callback_method]
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
type custom_header = { name: String, value: String }
|
|
339
|
+
|
|
340
|
+
class CustomHeader < Telnyx::Internal::Type::BaseModel
|
|
341
|
+
attr_accessor name: String
|
|
342
|
+
|
|
343
|
+
attr_accessor value: String
|
|
344
|
+
|
|
345
|
+
def initialize: (name: String, value: String) -> void
|
|
346
|
+
|
|
347
|
+
def to_hash: -> { name: String, value: String }
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
type detection_mode = :Premium | :Regular
|
|
351
|
+
|
|
352
|
+
module DetectionMode
|
|
353
|
+
extend Telnyx::Internal::Type::Enum
|
|
354
|
+
|
|
355
|
+
PREMIUM: :Premium
|
|
356
|
+
REGULAR: :Regular
|
|
357
|
+
|
|
358
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::detection_mode]
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
type machine_detection = :Enable | :Disable | :DetectMessageEnd
|
|
362
|
+
|
|
363
|
+
module MachineDetection
|
|
364
|
+
extend Telnyx::Internal::Type::Enum
|
|
365
|
+
|
|
366
|
+
ENABLE: :Enable
|
|
367
|
+
DISABLE: :Disable
|
|
368
|
+
DETECT_MESSAGE_END: :DetectMessageEnd
|
|
369
|
+
|
|
370
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::machine_detection]
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
type recording_channels = :mono | :dual
|
|
374
|
+
|
|
375
|
+
module RecordingChannels
|
|
376
|
+
extend Telnyx::Internal::Type::Enum
|
|
377
|
+
|
|
378
|
+
MONO: :mono
|
|
379
|
+
DUAL: :dual
|
|
380
|
+
|
|
381
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::recording_channels]
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
type recording_status_callback_method = :GET | :POST
|
|
385
|
+
|
|
386
|
+
module RecordingStatusCallbackMethod
|
|
387
|
+
extend Telnyx::Internal::Type::Enum
|
|
388
|
+
|
|
389
|
+
GET: :GET
|
|
390
|
+
POST: :POST
|
|
391
|
+
|
|
392
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::recording_status_callback_method]
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
type recording_track = :inbound | :outbound | :both
|
|
396
|
+
|
|
397
|
+
module RecordingTrack
|
|
398
|
+
extend Telnyx::Internal::Type::Enum
|
|
399
|
+
|
|
400
|
+
INBOUND: :inbound
|
|
401
|
+
OUTBOUND: :outbound
|
|
402
|
+
BOTH: :both
|
|
403
|
+
|
|
404
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::recording_track]
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
type sip_region = :US | :Europe | :Canada | :Australia | :"Middle East"
|
|
408
|
+
|
|
409
|
+
module SipRegion
|
|
410
|
+
extend Telnyx::Internal::Type::Enum
|
|
411
|
+
|
|
412
|
+
US: :US
|
|
413
|
+
EUROPE: :Europe
|
|
414
|
+
CANADA: :Canada
|
|
415
|
+
AUSTRALIA: :Australia
|
|
416
|
+
MIDDLE_EAST: :"Middle East"
|
|
417
|
+
|
|
418
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::sip_region]
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
type status_callback_method = :GET | :POST
|
|
422
|
+
|
|
423
|
+
module StatusCallbackMethod
|
|
424
|
+
extend Telnyx::Internal::Type::Enum
|
|
425
|
+
|
|
426
|
+
GET: :GET
|
|
427
|
+
POST: :POST
|
|
428
|
+
|
|
429
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::status_callback_method]
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
type trim = :"trim-silence" | :"do-not-trim"
|
|
433
|
+
|
|
434
|
+
module Trim
|
|
435
|
+
extend Telnyx::Internal::Type::Enum
|
|
436
|
+
|
|
437
|
+
TRIM_SILENCE: :"trim-silence"
|
|
438
|
+
DO_NOT_TRIM: :"do-not-trim"
|
|
439
|
+
|
|
440
|
+
def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::trim]
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type texml_initiate_ai_call_response =
|
|
4
|
+
{ call_sid: String, from: String, status: String, to: String }
|
|
5
|
+
|
|
6
|
+
class TexmlInitiateAICallResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader call_sid: String?
|
|
8
|
+
|
|
9
|
+
def call_sid=: (String) -> String
|
|
10
|
+
|
|
11
|
+
attr_reader from: String?
|
|
12
|
+
|
|
13
|
+
def from=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader status: String?
|
|
16
|
+
|
|
17
|
+
def status=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader to: String?
|
|
20
|
+
|
|
21
|
+
def to=: (String) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
?call_sid: String,
|
|
25
|
+
?from: String,
|
|
26
|
+
?status: String,
|
|
27
|
+
?to: String
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
call_sid: String,
|
|
32
|
+
from: String,
|
|
33
|
+
status: String,
|
|
34
|
+
to: String
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -109,7 +109,7 @@ module Telnyx
|
|
|
109
109
|
def self?.values: -> ::Array[Telnyx::Models::Verification::status]
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
type type_ = :sms | :call | :flashcall
|
|
112
|
+
type type_ = :sms | :call | :flashcall | :whatsapp
|
|
113
113
|
|
|
114
114
|
module Type
|
|
115
115
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -117,6 +117,7 @@ module Telnyx
|
|
|
117
117
|
SMS: :sms
|
|
118
118
|
CALL: :call
|
|
119
119
|
FLASHCALL: :flashcall
|
|
120
|
+
WHATSAPP: :whatsapp
|
|
120
121
|
|
|
121
122
|
def self?.values: -> ::Array[Telnyx::Models::Verification::type_]
|
|
122
123
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type verification_trigger_whatsapp_verification_params =
|
|
4
|
+
{
|
|
5
|
+
phone_number: String,
|
|
6
|
+
verify_profile_id: String,
|
|
7
|
+
custom_code: String?,
|
|
8
|
+
timeout_secs: Integer
|
|
9
|
+
}
|
|
10
|
+
& Telnyx::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class VerificationTriggerWhatsappVerificationParams < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor phone_number: String
|
|
17
|
+
|
|
18
|
+
attr_accessor verify_profile_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor custom_code: String?
|
|
21
|
+
|
|
22
|
+
attr_reader timeout_secs: Integer?
|
|
23
|
+
|
|
24
|
+
def timeout_secs=: (Integer) -> Integer
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
phone_number: String,
|
|
28
|
+
verify_profile_id: String,
|
|
29
|
+
?custom_code: String?,
|
|
30
|
+
?timeout_secs: Integer,
|
|
31
|
+
?request_options: Telnyx::request_opts
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
phone_number: String,
|
|
36
|
+
verify_profile_id: String,
|
|
37
|
+
custom_code: String?,
|
|
38
|
+
timeout_secs: Integer,
|
|
39
|
+
request_options: Telnyx::RequestOptions
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -9,7 +9,8 @@ module Telnyx
|
|
|
9
9
|
rcs: Telnyx::VerifyProfileCreateParams::Rcs,
|
|
10
10
|
sms: Telnyx::VerifyProfileCreateParams::SMS,
|
|
11
11
|
webhook_failover_url: String,
|
|
12
|
-
webhook_url: String
|
|
12
|
+
webhook_url: String,
|
|
13
|
+
whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp
|
|
13
14
|
}
|
|
14
15
|
& Telnyx::Internal::Type::request_parameters
|
|
15
16
|
|
|
@@ -55,6 +56,12 @@ module Telnyx
|
|
|
55
56
|
|
|
56
57
|
def webhook_url=: (String) -> String
|
|
57
58
|
|
|
59
|
+
attr_reader whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp?
|
|
60
|
+
|
|
61
|
+
def whatsapp=: (
|
|
62
|
+
Telnyx::VerifyProfileCreateParams::Whatsapp
|
|
63
|
+
) -> Telnyx::VerifyProfileCreateParams::Whatsapp
|
|
64
|
+
|
|
58
65
|
def initialize: (
|
|
59
66
|
name: String,
|
|
60
67
|
?call: Telnyx::VerifyProfileCreateParams::Call,
|
|
@@ -64,6 +71,7 @@ module Telnyx
|
|
|
64
71
|
?sms: Telnyx::VerifyProfileCreateParams::SMS,
|
|
65
72
|
?webhook_failover_url: String,
|
|
66
73
|
?webhook_url: String,
|
|
74
|
+
?whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp,
|
|
67
75
|
?request_options: Telnyx::request_opts
|
|
68
76
|
) -> void
|
|
69
77
|
|
|
@@ -76,6 +84,7 @@ module Telnyx
|
|
|
76
84
|
sms: Telnyx::VerifyProfileCreateParams::SMS,
|
|
77
85
|
webhook_failover_url: String,
|
|
78
86
|
webhook_url: String,
|
|
87
|
+
whatsapp: Telnyx::VerifyProfileCreateParams::Whatsapp,
|
|
79
88
|
request_options: Telnyx::RequestOptions
|
|
80
89
|
}
|
|
81
90
|
|
|
@@ -264,6 +273,39 @@ module Telnyx
|
|
|
264
273
|
whitelisted_destinations: ::Array[String]
|
|
265
274
|
}
|
|
266
275
|
end
|
|
276
|
+
|
|
277
|
+
type whatsapp =
|
|
278
|
+
{
|
|
279
|
+
app_name: String,
|
|
280
|
+
default_verification_timeout_secs: Integer,
|
|
281
|
+
whitelisted_destinations: ::Array[String]
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
class Whatsapp < Telnyx::Internal::Type::BaseModel
|
|
285
|
+
attr_reader app_name: String?
|
|
286
|
+
|
|
287
|
+
def app_name=: (String) -> String
|
|
288
|
+
|
|
289
|
+
attr_reader default_verification_timeout_secs: Integer?
|
|
290
|
+
|
|
291
|
+
def default_verification_timeout_secs=: (Integer) -> Integer
|
|
292
|
+
|
|
293
|
+
attr_reader whitelisted_destinations: ::Array[String]?
|
|
294
|
+
|
|
295
|
+
def whitelisted_destinations=: (::Array[String]) -> ::Array[String]
|
|
296
|
+
|
|
297
|
+
def initialize: (
|
|
298
|
+
?app_name: String,
|
|
299
|
+
?default_verification_timeout_secs: Integer,
|
|
300
|
+
?whitelisted_destinations: ::Array[String]
|
|
301
|
+
) -> void
|
|
302
|
+
|
|
303
|
+
def to_hash: -> {
|
|
304
|
+
app_name: String,
|
|
305
|
+
default_verification_timeout_secs: Integer,
|
|
306
|
+
whitelisted_destinations: ::Array[String]
|
|
307
|
+
}
|
|
308
|
+
end
|
|
267
309
|
end
|
|
268
310
|
end
|
|
269
311
|
end
|
|
@@ -10,7 +10,8 @@ module Telnyx
|
|
|
10
10
|
rcs: Telnyx::VerifyProfileUpdateParams::Rcs,
|
|
11
11
|
sms: Telnyx::VerifyProfileUpdateParams::SMS,
|
|
12
12
|
webhook_failover_url: String,
|
|
13
|
-
webhook_url: String
|
|
13
|
+
webhook_url: String,
|
|
14
|
+
whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp
|
|
14
15
|
}
|
|
15
16
|
& Telnyx::Internal::Type::request_parameters
|
|
16
17
|
|
|
@@ -60,6 +61,12 @@ module Telnyx
|
|
|
60
61
|
|
|
61
62
|
def webhook_url=: (String) -> String
|
|
62
63
|
|
|
64
|
+
attr_reader whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp?
|
|
65
|
+
|
|
66
|
+
def whatsapp=: (
|
|
67
|
+
Telnyx::VerifyProfileUpdateParams::Whatsapp
|
|
68
|
+
) -> Telnyx::VerifyProfileUpdateParams::Whatsapp
|
|
69
|
+
|
|
63
70
|
def initialize: (
|
|
64
71
|
verify_profile_id: String,
|
|
65
72
|
?call: Telnyx::VerifyProfileUpdateParams::Call,
|
|
@@ -70,6 +77,7 @@ module Telnyx
|
|
|
70
77
|
?sms: Telnyx::VerifyProfileUpdateParams::SMS,
|
|
71
78
|
?webhook_failover_url: String,
|
|
72
79
|
?webhook_url: String,
|
|
80
|
+
?whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp,
|
|
73
81
|
?request_options: Telnyx::request_opts
|
|
74
82
|
) -> void
|
|
75
83
|
|
|
@@ -83,6 +91,7 @@ module Telnyx
|
|
|
83
91
|
sms: Telnyx::VerifyProfileUpdateParams::SMS,
|
|
84
92
|
webhook_failover_url: String,
|
|
85
93
|
webhook_url: String,
|
|
94
|
+
whatsapp: Telnyx::VerifyProfileUpdateParams::Whatsapp,
|
|
86
95
|
request_options: Telnyx::RequestOptions
|
|
87
96
|
}
|
|
88
97
|
|
|
@@ -271,6 +280,39 @@ module Telnyx
|
|
|
271
280
|
whitelisted_destinations: ::Array[String]
|
|
272
281
|
}
|
|
273
282
|
end
|
|
283
|
+
|
|
284
|
+
type whatsapp =
|
|
285
|
+
{
|
|
286
|
+
app_name: String,
|
|
287
|
+
default_verification_timeout_secs: Integer,
|
|
288
|
+
whitelisted_destinations: ::Array[String]
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
class Whatsapp < Telnyx::Internal::Type::BaseModel
|
|
292
|
+
attr_reader app_name: String?
|
|
293
|
+
|
|
294
|
+
def app_name=: (String) -> String
|
|
295
|
+
|
|
296
|
+
attr_reader default_verification_timeout_secs: Integer?
|
|
297
|
+
|
|
298
|
+
def default_verification_timeout_secs=: (Integer) -> Integer
|
|
299
|
+
|
|
300
|
+
attr_reader whitelisted_destinations: ::Array[String]?
|
|
301
|
+
|
|
302
|
+
def whitelisted_destinations=: (::Array[String]) -> ::Array[String]
|
|
303
|
+
|
|
304
|
+
def initialize: (
|
|
305
|
+
?app_name: String,
|
|
306
|
+
?default_verification_timeout_secs: Integer,
|
|
307
|
+
?whitelisted_destinations: ::Array[String]
|
|
308
|
+
) -> void
|
|
309
|
+
|
|
310
|
+
def to_hash: -> {
|
|
311
|
+
app_name: String,
|
|
312
|
+
default_verification_timeout_secs: Integer,
|
|
313
|
+
whitelisted_destinations: ::Array[String]
|
|
314
|
+
}
|
|
315
|
+
end
|
|
274
316
|
end
|
|
275
317
|
end
|
|
276
318
|
end
|