telnyx 5.70.0 → 5.71.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 +26 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant.rb +6 -149
- data/lib/telnyx/models/book_appointment_tool.rb +31 -0
- data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
- data/lib/telnyx/models/call_assistant_request.rb +176 -0
- data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
- data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
- data/lib/telnyx/models/call_dial_params.rb +11 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
- data/lib/telnyx/models/check_availability_tool.rb +31 -0
- data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
- data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
- data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +61 -54
- data/lib/telnyx/models/voice_clone_create_params.rb +28 -28
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/calls/actions.rb +4 -2
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
- data/lib/telnyx/resources/voice_clones.rb +6 -6
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +12 -1
- data/rbi/telnyx/models/ai/assistant.rbi +15 -329
- data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
- data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
- data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
- data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
- data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
- data/rbi/telnyx/models/call_dial_params.rbi +15 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
- data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
- data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
- data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
- data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +94 -92
- data/rbi/telnyx/models/voice_clone_create_params.rbi +53 -53
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/calls/actions.rbi +9 -3
- data/rbi/telnyx/resources/calls.rbi +5 -0
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
- data/rbi/telnyx/resources/voice_clones.rbi +9 -9
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
- data/sig/telnyx/models/ai/assistant.rbs +3 -142
- data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
- data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
- data/sig/telnyx/models/call_assistant_request.rbs +132 -0
- data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
- data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
- data/sig/telnyx/models/call_dial_params.rbs +9 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
- data/sig/telnyx/models/check_availability_tool.rbs +35 -0
- data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
- data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
- data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +63 -61
- data/sig/telnyx/models/voice_clone_create_params.rbs +35 -35
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/calls/actions.rbs +2 -1
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
- data/sig/telnyx/resources/voice_clones.rbs +2 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
- metadata +38 -5
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
data/lib/telnyx/models.rb
CHANGED
|
@@ -147,6 +147,10 @@ module Telnyx
|
|
|
147
147
|
|
|
148
148
|
BillingGroupUpdateParams = Telnyx::Models::BillingGroupUpdateParams
|
|
149
149
|
|
|
150
|
+
BookAppointmentTool = Telnyx::Models::BookAppointmentTool
|
|
151
|
+
|
|
152
|
+
BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
|
|
153
|
+
|
|
150
154
|
BulkMessagingSettingsUpdatePhoneNumbers = Telnyx::Models::BulkMessagingSettingsUpdatePhoneNumbers
|
|
151
155
|
|
|
152
156
|
BulkSimCardActionListParams = Telnyx::Models::BulkSimCardActionListParams
|
|
@@ -172,6 +176,8 @@ module Telnyx
|
|
|
172
176
|
|
|
173
177
|
CallAnsweredWebhookEvent = Telnyx::Models::CallAnsweredWebhookEvent
|
|
174
178
|
|
|
179
|
+
CallAssistantRequest = Telnyx::Models::CallAssistantRequest
|
|
180
|
+
|
|
175
181
|
CallBridged = Telnyx::Models::CallBridged
|
|
176
182
|
|
|
177
183
|
CallBridgedWebhookEvent = Telnyx::Models::CallBridgedWebhookEvent
|
|
@@ -192,6 +198,10 @@ module Telnyx
|
|
|
192
198
|
|
|
193
199
|
CallControlApplicationUpdateParams = Telnyx::Models::CallControlApplicationUpdateParams
|
|
194
200
|
|
|
201
|
+
CallControlBucketIDs = Telnyx::Models::CallControlBucketIDs
|
|
202
|
+
|
|
203
|
+
CallControlRetrievalTool = Telnyx::Models::CallControlRetrievalTool
|
|
204
|
+
|
|
195
205
|
CallConversationEnded = Telnyx::Models::CallConversationEnded
|
|
196
206
|
|
|
197
207
|
CallConversationEndedWebhookEvent = Telnyx::Models::CallConversationEndedWebhookEvent
|
|
@@ -334,6 +344,10 @@ module Telnyx
|
|
|
334
344
|
|
|
335
345
|
ChargesSummaryRetrieveParams = Telnyx::Models::ChargesSummaryRetrieveParams
|
|
336
346
|
|
|
347
|
+
CheckAvailabilityTool = Telnyx::Models::CheckAvailabilityTool
|
|
348
|
+
|
|
349
|
+
CheckAvailabilityToolParams = Telnyx::Models::CheckAvailabilityToolParams
|
|
350
|
+
|
|
337
351
|
CloudflareSyncStatus = Telnyx::Models::CloudflareSyncStatus
|
|
338
352
|
|
|
339
353
|
Comment = Telnyx::Models::Comment
|
|
@@ -1239,12 +1253,18 @@ module Telnyx
|
|
|
1239
1253
|
|
|
1240
1254
|
PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
|
|
1241
1255
|
|
|
1256
|
+
PronunciationDictAliasItem = Telnyx::Models::PronunciationDictAliasItem
|
|
1257
|
+
|
|
1242
1258
|
PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
|
|
1243
1259
|
|
|
1260
|
+
PronunciationDictData = Telnyx::Models::PronunciationDictData
|
|
1261
|
+
|
|
1244
1262
|
PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
|
|
1245
1263
|
|
|
1246
1264
|
PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
|
|
1247
1265
|
|
|
1266
|
+
PronunciationDictPhonemeItem = Telnyx::Models::PronunciationDictPhonemeItem
|
|
1267
|
+
|
|
1248
1268
|
PronunciationDictRetrieveParams = Telnyx::Models::PronunciationDictRetrieveParams
|
|
1249
1269
|
|
|
1250
1270
|
PronunciationDictUpdateParams = Telnyx::Models::PronunciationDictUpdateParams
|
|
@@ -51,10 +51,12 @@ module Telnyx
|
|
|
51
51
|
# When the `record` parameter is set to `record-from-answer`, the response will
|
|
52
52
|
# include a `recording_id` field.
|
|
53
53
|
#
|
|
54
|
-
# @overload answer(call_control_id, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
54
|
+
# @overload answer(call_control_id, assistant: nil, billing_group_id: nil, client_state: nil, command_id: nil, custom_headers: nil, preferred_codecs: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_headers: nil, sound_modifications: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_track: nil, stream_url: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
55
55
|
#
|
|
56
56
|
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
57
57
|
#
|
|
58
|
+
# @param assistant [Telnyx::Models::CallAssistantRequest] AI Assistant configuration. All fields except `id` are optional — the assistant'
|
|
59
|
+
#
|
|
58
60
|
# @param billing_group_id [String] Use this field to set the Billing Group ID for the call. Must be a valid and exi
|
|
59
61
|
#
|
|
60
62
|
# @param client_state [String] Use this field to add state to every subsequent webhook. It must be a valid Base
|
|
@@ -884,7 +886,7 @@ module Telnyx
|
|
|
884
886
|
#
|
|
885
887
|
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
886
888
|
#
|
|
887
|
-
# @param assistant [Telnyx::Models::
|
|
889
|
+
# @param assistant [Telnyx::Models::CallAssistantRequest] AI Assistant configuration. All fields except `id` are optional — the assistant'
|
|
888
890
|
#
|
|
889
891
|
# @param client_state [String] Use this field to add state to every subsequent webhook. It must be a valid Base
|
|
890
892
|
#
|
|
@@ -31,7 +31,7 @@ module Telnyx
|
|
|
31
31
|
# When the `record` parameter is set to `record-from-answer`, the response will
|
|
32
32
|
# include a `recording_id` field.
|
|
33
33
|
#
|
|
34
|
-
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
|
|
34
|
+
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
|
|
35
35
|
#
|
|
36
36
|
# @param connection_id [String] The ID of the Call Control App (formerly ID of the connection) to be used when d
|
|
37
37
|
#
|
|
@@ -43,6 +43,8 @@ module Telnyx
|
|
|
43
43
|
#
|
|
44
44
|
# @param answering_machine_detection_config [Telnyx::Models::CallDialParams::AnsweringMachineDetectionConfig] Optional configuration parameters to modify 'answering_machine_detection' perfor
|
|
45
45
|
#
|
|
46
|
+
# @param assistant [Telnyx::Models::CallAssistantRequest] AI Assistant configuration. All fields except `id` are optional — the assistant'
|
|
47
|
+
#
|
|
46
48
|
# @param audio_url [String] The URL of a file to be played back to the callee when the call is answered. The
|
|
47
49
|
#
|
|
48
50
|
# @param billing_group_id [String] Use this field to set the Billing Group ID for the call. Must be a valid and exi
|
|
@@ -30,7 +30,7 @@ module Telnyx
|
|
|
30
30
|
#
|
|
31
31
|
# @overload create(items:, name:, request_options: {})
|
|
32
32
|
#
|
|
33
|
-
# @param items [Array<Telnyx::Models::
|
|
33
|
+
# @param items [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>] List of pronunciation items (alias or phoneme type). At least one item is requir
|
|
34
34
|
#
|
|
35
35
|
# @param name [String] Human-readable name. Must be unique within the organization.
|
|
36
36
|
#
|
|
@@ -78,7 +78,7 @@ module Telnyx
|
|
|
78
78
|
#
|
|
79
79
|
# @param id [String] The UUID of the pronunciation dictionary.
|
|
80
80
|
#
|
|
81
|
-
# @param items [Array<Telnyx::Models::
|
|
81
|
+
# @param items [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>] Updated list of pronunciation items (alias or phoneme type).
|
|
82
82
|
#
|
|
83
83
|
# @param name [String] Updated dictionary name.
|
|
84
84
|
#
|
|
@@ -109,7 +109,7 @@ module Telnyx
|
|
|
109
109
|
#
|
|
110
110
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
111
|
#
|
|
112
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::
|
|
112
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::PronunciationDictData>]
|
|
113
113
|
#
|
|
114
114
|
# @see Telnyx::Models::PronunciationDictListParams
|
|
115
115
|
def list(params = {})
|
|
@@ -120,7 +120,7 @@ module Telnyx
|
|
|
120
120
|
path: "pronunciation_dicts",
|
|
121
121
|
query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
122
122
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
123
|
-
model: Telnyx::
|
|
123
|
+
model: Telnyx::PronunciationDictData,
|
|
124
124
|
options: options
|
|
125
125
|
)
|
|
126
126
|
end
|
|
@@ -102,11 +102,11 @@ module Telnyx
|
|
|
102
102
|
# Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request
|
|
103
103
|
# URL configured for the connection in the Mission Control Portal.
|
|
104
104
|
#
|
|
105
|
-
# @overload calls(account_sid,
|
|
105
|
+
# @overload calls(account_sid, params:, request_options: {})
|
|
106
106
|
#
|
|
107
107
|
# @param account_sid [String] The id of the account the resource belongs to.
|
|
108
108
|
#
|
|
109
|
-
# @param
|
|
109
|
+
# @param params [Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml, Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault]
|
|
110
110
|
#
|
|
111
111
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
112
112
|
#
|
|
@@ -118,7 +118,7 @@ module Telnyx
|
|
|
118
118
|
@client.request(
|
|
119
119
|
method: :post,
|
|
120
120
|
path: ["texml/Accounts/%1$s/Calls", account_sid],
|
|
121
|
-
body: parsed[:
|
|
121
|
+
body: parsed[:params],
|
|
122
122
|
model: Telnyx::Models::Texml::Accounts::CallCallsResponse,
|
|
123
123
|
options: options
|
|
124
124
|
)
|
|
@@ -8,9 +8,9 @@ module Telnyx
|
|
|
8
8
|
# Creates a new voice clone by capturing the voice identity of an existing voice
|
|
9
9
|
# design. The clone can then be used for text-to-speech synthesis.
|
|
10
10
|
#
|
|
11
|
-
# @overload create(
|
|
11
|
+
# @overload create(params:, request_options: {})
|
|
12
12
|
#
|
|
13
|
-
# @param
|
|
13
|
+
# @param params [Telnyx::Models::VoiceCloneCreateParams::Params::TelnyxDesignClone, Telnyx::Models::VoiceCloneCreateParams::Params::MinimaxDesignClone] Request body for creating a voice clone from an existing voice design.
|
|
14
14
|
#
|
|
15
15
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
16
|
#
|
|
@@ -22,7 +22,7 @@ module Telnyx
|
|
|
22
22
|
@client.request(
|
|
23
23
|
method: :post,
|
|
24
24
|
path: "voice_clones",
|
|
25
|
-
body: parsed[:
|
|
25
|
+
body: parsed[:params],
|
|
26
26
|
model: Telnyx::Models::VoiceCloneCreateResponse,
|
|
27
27
|
options: options
|
|
28
28
|
)
|
|
@@ -120,9 +120,9 @@ module Telnyx
|
|
|
120
120
|
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
|
|
121
121
|
# clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
122
122
|
#
|
|
123
|
-
# @overload create_from_upload(
|
|
123
|
+
# @overload create_from_upload(upload_params:, request_options: {})
|
|
124
124
|
#
|
|
125
|
-
# @param
|
|
125
|
+
# @param upload_params [Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone] Multipart form data for creating a voice clone from a direct audio upload. Maxim
|
|
126
126
|
#
|
|
127
127
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
128
128
|
#
|
|
@@ -135,7 +135,7 @@ module Telnyx
|
|
|
135
135
|
method: :post,
|
|
136
136
|
path: "voice_clones/from_upload",
|
|
137
137
|
headers: {"content-type" => "multipart/form-data"},
|
|
138
|
-
body: parsed[:
|
|
138
|
+
body: parsed[:upload_params],
|
|
139
139
|
model: Telnyx::Models::VoiceCloneCreateFromUploadResponse,
|
|
140
140
|
options: options
|
|
141
141
|
)
|
|
@@ -7,6 +7,26 @@ module Telnyx
|
|
|
7
7
|
class Profile
|
|
8
8
|
# Manage Whatsapp phone numbers
|
|
9
9
|
class Photo
|
|
10
|
+
# Get Whatsapp profile photo
|
|
11
|
+
#
|
|
12
|
+
# @overload retrieve(phone_number, request_options: {})
|
|
13
|
+
#
|
|
14
|
+
# @param phone_number [String] Phone number (E.164 format)
|
|
15
|
+
#
|
|
16
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
|
+
#
|
|
18
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse]
|
|
19
|
+
#
|
|
20
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveParams
|
|
21
|
+
def retrieve(phone_number, params = {})
|
|
22
|
+
@client.request(
|
|
23
|
+
method: :get,
|
|
24
|
+
path: ["v2/whatsapp/phone_numbers/%1$s/profile/photo", phone_number],
|
|
25
|
+
model: Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse,
|
|
26
|
+
options: params[:request_options]
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
10
30
|
# Delete Whatsapp profile photo
|
|
11
31
|
#
|
|
12
32
|
# @overload delete(phone_number, request_options: {})
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -440,6 +440,8 @@ require_relative "telnyx/models/billing_group_retrieve_params"
|
|
|
440
440
|
require_relative "telnyx/models/billing_group_retrieve_response"
|
|
441
441
|
require_relative "telnyx/models/billing_group_update_params"
|
|
442
442
|
require_relative "telnyx/models/billing_group_update_response"
|
|
443
|
+
require_relative "telnyx/models/book_appointment_tool"
|
|
444
|
+
require_relative "telnyx/models/book_appointment_tool_params"
|
|
443
445
|
require_relative "telnyx/models/bulk_messaging_settings_update_phone_numbers"
|
|
444
446
|
require_relative "telnyx/models/bulk_sim_card_action_list_params"
|
|
445
447
|
require_relative "telnyx/models/bulk_sim_card_action_list_response"
|
|
@@ -471,6 +473,7 @@ require_relative "telnyx/models/call_ai_gather_partial_results"
|
|
|
471
473
|
require_relative "telnyx/models/call_ai_gather_partial_results_webhook_event"
|
|
472
474
|
require_relative "telnyx/models/call_answered"
|
|
473
475
|
require_relative "telnyx/models/call_answered_webhook_event"
|
|
476
|
+
require_relative "telnyx/models/call_assistant_request"
|
|
474
477
|
require_relative "telnyx/models/call_bridged"
|
|
475
478
|
require_relative "telnyx/models/call_bridged_webhook_event"
|
|
476
479
|
require_relative "telnyx/models/call_control_application"
|
|
@@ -485,6 +488,8 @@ require_relative "telnyx/models/call_control_application_retrieve_params"
|
|
|
485
488
|
require_relative "telnyx/models/call_control_application_retrieve_response"
|
|
486
489
|
require_relative "telnyx/models/call_control_application_update_params"
|
|
487
490
|
require_relative "telnyx/models/call_control_application_update_response"
|
|
491
|
+
require_relative "telnyx/models/call_control_bucket_ids"
|
|
492
|
+
require_relative "telnyx/models/call_control_retrieval_tool"
|
|
488
493
|
require_relative "telnyx/models/call_conversation_ended"
|
|
489
494
|
require_relative "telnyx/models/call_conversation_ended_webhook_event"
|
|
490
495
|
require_relative "telnyx/models/call_conversation_insights_generated"
|
|
@@ -655,6 +660,8 @@ require_relative "telnyx/models/charges_breakdown_retrieve_params"
|
|
|
655
660
|
require_relative "telnyx/models/charges_breakdown_retrieve_response"
|
|
656
661
|
require_relative "telnyx/models/charges_summary_retrieve_params"
|
|
657
662
|
require_relative "telnyx/models/charges_summary_retrieve_response"
|
|
663
|
+
require_relative "telnyx/models/check_availability_tool"
|
|
664
|
+
require_relative "telnyx/models/check_availability_tool_params"
|
|
658
665
|
require_relative "telnyx/models/cloudflare_sync_status"
|
|
659
666
|
require_relative "telnyx/models/comment_create_params"
|
|
660
667
|
require_relative "telnyx/models/comment_create_response"
|
|
@@ -1753,11 +1760,13 @@ require_relative "telnyx/models/private_wireless_gateway_list_params"
|
|
|
1753
1760
|
require_relative "telnyx/models/private_wireless_gateway_retrieve_params"
|
|
1754
1761
|
require_relative "telnyx/models/private_wireless_gateway_retrieve_response"
|
|
1755
1762
|
require_relative "telnyx/models/private_wireless_gateway_status"
|
|
1763
|
+
require_relative "telnyx/models/pronunciation_dict_alias_item"
|
|
1756
1764
|
require_relative "telnyx/models/pronunciation_dict_create_params"
|
|
1757
1765
|
require_relative "telnyx/models/pronunciation_dict_create_response"
|
|
1766
|
+
require_relative "telnyx/models/pronunciation_dict_data"
|
|
1758
1767
|
require_relative "telnyx/models/pronunciation_dict_delete_params"
|
|
1759
1768
|
require_relative "telnyx/models/pronunciation_dict_list_params"
|
|
1760
|
-
require_relative "telnyx/models/
|
|
1769
|
+
require_relative "telnyx/models/pronunciation_dict_phoneme_item"
|
|
1761
1770
|
require_relative "telnyx/models/pronunciation_dict_retrieve_params"
|
|
1762
1771
|
require_relative "telnyx/models/pronunciation_dict_retrieve_response"
|
|
1763
1772
|
require_relative "telnyx/models/pronunciation_dict_update_params"
|
|
@@ -2300,6 +2309,8 @@ require_relative "telnyx/models/whatsapp/phone_numbers/calling_setting_retrieve_
|
|
|
2300
2309
|
require_relative "telnyx/models/whatsapp/phone_numbers/calling_setting_update_params"
|
|
2301
2310
|
require_relative "telnyx/models/whatsapp/phone_numbers/calling_setting_update_response"
|
|
2302
2311
|
require_relative "telnyx/models/whatsapp/phone_numbers/profile/photo_delete_params"
|
|
2312
|
+
require_relative "telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params"
|
|
2313
|
+
require_relative "telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response"
|
|
2303
2314
|
require_relative "telnyx/models/whatsapp/phone_numbers/profile/photo_upload_params"
|
|
2304
2315
|
require_relative "telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response"
|
|
2305
2316
|
require_relative "telnyx/models/whatsapp/phone_numbers/profile_retrieve_params"
|