telnyx 5.69.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 +50 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant.rb +6 -149
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- 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 +34 -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/calls/action_transfer_params.rb +24 -1
- 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/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- 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 +371 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- 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/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +7 -3
- data/lib/telnyx/resources/calls.rb +5 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- 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 +7 -27
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +22 -9
- data/rbi/telnyx/models/ai/assistant.rbi +15 -329
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- 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 +52 -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/calls/action_transfer_params.rbi +57 -0
- 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/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- 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 +711 -134
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- 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/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +14 -3
- data/rbi/telnyx/resources/calls.rbi +10 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- 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 +17 -41
- 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/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- 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 +29 -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/calls/action_transfer_params.rbs +20 -0
- 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/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- 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 +269 -56
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- 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/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +3 -1
- data/sig/telnyx/resources/calls.rbs +2 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- 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 -12
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
- metadata +68 -29
- 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
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
module PhoneNumbers
|
|
7
|
+
module Profile
|
|
8
|
+
class PhotoRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
returns(
|
|
19
|
+
T.nilable(
|
|
20
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
attr_reader :data
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
data:
|
|
29
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data::OrHash
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :data
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
data:
|
|
37
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data::OrHash
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(data: nil)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
override.returns(
|
|
45
|
+
{
|
|
46
|
+
data:
|
|
47
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
55
|
+
OrHash =
|
|
56
|
+
T.type_alias do
|
|
57
|
+
T.any(
|
|
58
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data,
|
|
59
|
+
Telnyx::Internal::AnyHash
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Meta phone number ID
|
|
64
|
+
sig { returns(T.nilable(String)) }
|
|
65
|
+
attr_reader :phone_number_id
|
|
66
|
+
|
|
67
|
+
sig { params(phone_number_id: String).void }
|
|
68
|
+
attr_writer :phone_number_id
|
|
69
|
+
|
|
70
|
+
# URL of the business profile photo (served by Meta's CDN). May be empty if no
|
|
71
|
+
# photo is set.
|
|
72
|
+
sig { returns(T.nilable(String)) }
|
|
73
|
+
attr_reader :profile_photo_url
|
|
74
|
+
|
|
75
|
+
sig { params(profile_photo_url: String).void }
|
|
76
|
+
attr_writer :profile_photo_url
|
|
77
|
+
|
|
78
|
+
sig { returns(T.nilable(String)) }
|
|
79
|
+
attr_reader :record_type
|
|
80
|
+
|
|
81
|
+
sig { params(record_type: String).void }
|
|
82
|
+
attr_writer :record_type
|
|
83
|
+
|
|
84
|
+
sig do
|
|
85
|
+
params(
|
|
86
|
+
phone_number_id: String,
|
|
87
|
+
profile_photo_url: String,
|
|
88
|
+
record_type: String
|
|
89
|
+
).returns(T.attached_class)
|
|
90
|
+
end
|
|
91
|
+
def self.new(
|
|
92
|
+
# Meta phone number ID
|
|
93
|
+
phone_number_id: nil,
|
|
94
|
+
# URL of the business profile photo (served by Meta's CDN). May be empty if no
|
|
95
|
+
# photo is set.
|
|
96
|
+
profile_photo_url: nil,
|
|
97
|
+
record_type: nil
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
override.returns(
|
|
103
|
+
{
|
|
104
|
+
phone_number_id: String,
|
|
105
|
+
profile_photo_url: String,
|
|
106
|
+
record_type: String
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
def to_hash
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -121,6 +121,10 @@ module Telnyx
|
|
|
121
121
|
|
|
122
122
|
BillingGroupUpdateParams = Telnyx::Models::BillingGroupUpdateParams
|
|
123
123
|
|
|
124
|
+
BookAppointmentTool = Telnyx::Models::BookAppointmentTool
|
|
125
|
+
|
|
126
|
+
BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
|
|
127
|
+
|
|
124
128
|
BulkMessagingSettingsUpdatePhoneNumbers =
|
|
125
129
|
Telnyx::Models::BulkMessagingSettingsUpdatePhoneNumbers
|
|
126
130
|
|
|
@@ -150,6 +154,8 @@ module Telnyx
|
|
|
150
154
|
|
|
151
155
|
CallAnsweredWebhookEvent = Telnyx::Models::CallAnsweredWebhookEvent
|
|
152
156
|
|
|
157
|
+
CallAssistantRequest = Telnyx::Models::CallAssistantRequest
|
|
158
|
+
|
|
153
159
|
CallBridged = Telnyx::Models::CallBridged
|
|
154
160
|
|
|
155
161
|
CallBridgedWebhookEvent = Telnyx::Models::CallBridgedWebhookEvent
|
|
@@ -176,6 +182,10 @@ module Telnyx
|
|
|
176
182
|
CallControlApplicationUpdateParams =
|
|
177
183
|
Telnyx::Models::CallControlApplicationUpdateParams
|
|
178
184
|
|
|
185
|
+
CallControlBucketIDs = Telnyx::Models::CallControlBucketIDs
|
|
186
|
+
|
|
187
|
+
CallControlRetrievalTool = Telnyx::Models::CallControlRetrievalTool
|
|
188
|
+
|
|
179
189
|
CallConversationEnded = Telnyx::Models::CallConversationEnded
|
|
180
190
|
|
|
181
191
|
CallConversationEndedWebhookEvent =
|
|
@@ -335,6 +345,10 @@ module Telnyx
|
|
|
335
345
|
|
|
336
346
|
ChargesSummaryRetrieveParams = Telnyx::Models::ChargesSummaryRetrieveParams
|
|
337
347
|
|
|
348
|
+
CheckAvailabilityTool = Telnyx::Models::CheckAvailabilityTool
|
|
349
|
+
|
|
350
|
+
CheckAvailabilityToolParams = Telnyx::Models::CheckAvailabilityToolParams
|
|
351
|
+
|
|
338
352
|
CloudflareSyncStatus = Telnyx::Models::CloudflareSyncStatus
|
|
339
353
|
|
|
340
354
|
Comment = Telnyx::Models::Comment
|
|
@@ -1368,12 +1382,18 @@ module Telnyx
|
|
|
1368
1382
|
|
|
1369
1383
|
PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
|
|
1370
1384
|
|
|
1385
|
+
PronunciationDictAliasItem = Telnyx::Models::PronunciationDictAliasItem
|
|
1386
|
+
|
|
1371
1387
|
PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
|
|
1372
1388
|
|
|
1389
|
+
PronunciationDictData = Telnyx::Models::PronunciationDictData
|
|
1390
|
+
|
|
1373
1391
|
PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
|
|
1374
1392
|
|
|
1375
1393
|
PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
|
|
1376
1394
|
|
|
1395
|
+
PronunciationDictPhonemeItem = Telnyx::Models::PronunciationDictPhonemeItem
|
|
1396
|
+
|
|
1377
1397
|
PronunciationDictRetrieveParams =
|
|
1378
1398
|
Telnyx::Models::PronunciationDictRetrieveParams
|
|
1379
1399
|
|
|
@@ -43,8 +43,7 @@ module Telnyx
|
|
|
43
43
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
44
44
|
model: String,
|
|
45
45
|
name: String,
|
|
46
|
-
observability_settings:
|
|
47
|
-
Telnyx::AI::Assistants::UpdateAssistant::ObservabilitySettings::OrHash,
|
|
46
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
48
47
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
49
48
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
50
49
|
tool_ids: T::Array[String],
|
|
@@ -43,8 +43,7 @@ module Telnyx
|
|
|
43
43
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
44
44
|
llm_api_key_ref: String,
|
|
45
45
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
46
|
-
observability_settings:
|
|
47
|
-
Telnyx::AI::AssistantCreateParams::ObservabilitySettings::OrHash,
|
|
46
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
48
47
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
49
48
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
50
49
|
tool_ids: T::Array[String],
|
|
@@ -153,8 +152,7 @@ module Telnyx
|
|
|
153
152
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
154
153
|
model: String,
|
|
155
154
|
name: String,
|
|
156
|
-
observability_settings:
|
|
157
|
-
Telnyx::AI::AssistantUpdateParams::ObservabilitySettings::OrHash,
|
|
155
|
+
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
158
156
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
159
157
|
promote_to_main: T::Boolean,
|
|
160
158
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -53,6 +53,7 @@ module Telnyx
|
|
|
53
53
|
sig do
|
|
54
54
|
params(
|
|
55
55
|
call_control_id: String,
|
|
56
|
+
assistant: Telnyx::CallAssistantRequest::OrHash,
|
|
56
57
|
billing_group_id: String,
|
|
57
58
|
client_state: String,
|
|
58
59
|
command_id: String,
|
|
@@ -104,6 +105,10 @@ module Telnyx
|
|
|
104
105
|
def answer(
|
|
105
106
|
# Unique identifier and token for controlling the call
|
|
106
107
|
call_control_id,
|
|
108
|
+
# AI Assistant configuration. All fields except `id` are optional — the
|
|
109
|
+
# assistant's stored configuration will be used as fallback for any omitted
|
|
110
|
+
# fields.
|
|
111
|
+
assistant: nil,
|
|
107
112
|
# Use this field to set the Billing Group ID for the call. Must be a valid and
|
|
108
113
|
# existing Billing Group ID.
|
|
109
114
|
billing_group_id: nil,
|
|
@@ -1145,8 +1150,7 @@ module Telnyx
|
|
|
1145
1150
|
sig do
|
|
1146
1151
|
params(
|
|
1147
1152
|
call_control_id: String,
|
|
1148
|
-
assistant:
|
|
1149
|
-
Telnyx::Calls::ActionStartAIAssistantParams::Assistant::OrHash,
|
|
1153
|
+
assistant: Telnyx::CallAssistantRequest::OrHash,
|
|
1150
1154
|
client_state: String,
|
|
1151
1155
|
command_id: String,
|
|
1152
1156
|
greeting: String,
|
|
@@ -1183,7 +1187,9 @@ module Telnyx
|
|
|
1183
1187
|
def start_ai_assistant(
|
|
1184
1188
|
# Unique identifier and token for controlling the call
|
|
1185
1189
|
call_control_id,
|
|
1186
|
-
# AI Assistant configuration
|
|
1190
|
+
# AI Assistant configuration. All fields except `id` are optional — the
|
|
1191
|
+
# assistant's stored configuration will be used as fallback for any omitted
|
|
1192
|
+
# fields.
|
|
1187
1193
|
assistant: nil,
|
|
1188
1194
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
1189
1195
|
# Base-64 encoded string.
|
|
@@ -1963,6 +1969,7 @@ module Telnyx
|
|
|
1963
1969
|
mute_dtmf: Telnyx::Calls::ActionTransferParams::MuteDtmf::OrSymbol,
|
|
1964
1970
|
park_after_unbridge: String,
|
|
1965
1971
|
preferred_codecs: String,
|
|
1972
|
+
privacy: Telnyx::Calls::ActionTransferParams::Privacy::OrSymbol,
|
|
1966
1973
|
record: Telnyx::Calls::ActionTransferParams::Record::OrSymbol,
|
|
1967
1974
|
record_channels:
|
|
1968
1975
|
Telnyx::Calls::ActionTransferParams::RecordChannels::OrSymbol,
|
|
@@ -2058,6 +2065,10 @@ module Telnyx
|
|
|
2058
2065
|
# call. The codecs supported are `G722`, `PCMU`, `PCMA`, `G729`, `OPUS`, `VP8`,
|
|
2059
2066
|
# `H264`, `AMR-WB`.
|
|
2060
2067
|
preferred_codecs: nil,
|
|
2068
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
2069
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
2070
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
2071
|
+
privacy: nil,
|
|
2061
2072
|
# Start recording automatically after an event. Disabled by default.
|
|
2062
2073
|
record: nil,
|
|
2063
2074
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -36,6 +36,7 @@ module Telnyx
|
|
|
36
36
|
Telnyx::CallDialParams::AnsweringMachineDetection::OrSymbol,
|
|
37
37
|
answering_machine_detection_config:
|
|
38
38
|
Telnyx::CallDialParams::AnsweringMachineDetectionConfig::OrHash,
|
|
39
|
+
assistant: Telnyx::CallAssistantRequest::OrHash,
|
|
39
40
|
audio_url: String,
|
|
40
41
|
billing_group_id: String,
|
|
41
42
|
bridge_intent: T::Boolean,
|
|
@@ -53,6 +54,7 @@ module Telnyx
|
|
|
53
54
|
park_after_unbridge: String,
|
|
54
55
|
preferred_codecs: String,
|
|
55
56
|
prevent_double_bridge: T::Boolean,
|
|
57
|
+
privacy: Telnyx::CallDialParams::Privacy::OrSymbol,
|
|
56
58
|
record: Telnyx::CallDialParams::Record::OrSymbol,
|
|
57
59
|
record_channels: Telnyx::CallDialParams::RecordChannels::OrSymbol,
|
|
58
60
|
record_custom_file_name: String,
|
|
@@ -125,6 +127,10 @@ module Telnyx
|
|
|
125
127
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
126
128
|
# performance.
|
|
127
129
|
answering_machine_detection_config: nil,
|
|
130
|
+
# AI Assistant configuration. All fields except `id` are optional — the
|
|
131
|
+
# assistant's stored configuration will be used as fallback for any omitted
|
|
132
|
+
# fields.
|
|
133
|
+
assistant: nil,
|
|
128
134
|
# The URL of a file to be played back to the callee when the call is answered. The
|
|
129
135
|
# URL can point to either a WAV or MP3 file. media_name and audio_url cannot be
|
|
130
136
|
# used together in one request.
|
|
@@ -177,6 +183,10 @@ module Telnyx
|
|
|
177
183
|
# Prevents bridging and hangs up the call if the target is already bridged.
|
|
178
184
|
# Disabled by default.
|
|
179
185
|
prevent_double_bridge: nil,
|
|
186
|
+
# Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
187
|
+
# information (name and number) will be hidden from the called party. When set to
|
|
188
|
+
# `none` or omitted, caller ID will be shown normally.
|
|
189
|
+
privacy: nil,
|
|
180
190
|
# Start recording automatically after an event. Disabled by default.
|
|
181
191
|
record: nil,
|
|
182
192
|
# Defines which channel should be recorded ('single' or 'dual') when `record` is
|
|
@@ -7,39 +7,6 @@ module Telnyx
|
|
|
7
7
|
# Associate phone numbers with an enterprise for reputation monitoring and
|
|
8
8
|
# retrieve reputation scores
|
|
9
9
|
class Numbers
|
|
10
|
-
# Associate one or more phone numbers with an enterprise for Number Reputation
|
|
11
|
-
# monitoring.
|
|
12
|
-
#
|
|
13
|
-
# **Validations:**
|
|
14
|
-
#
|
|
15
|
-
# - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
16
|
-
# - Phone numbers must be in-service and belong to your account (verified via
|
|
17
|
-
# Warehouse)
|
|
18
|
-
# - Phone numbers must be US local numbers
|
|
19
|
-
# - Phone numbers cannot already be associated with any enterprise
|
|
20
|
-
#
|
|
21
|
-
# **Note:** This operation is atomic — if any number fails validation, the entire
|
|
22
|
-
# request fails.
|
|
23
|
-
#
|
|
24
|
-
# **Maximum:** 100 phone numbers per request.
|
|
25
|
-
sig do
|
|
26
|
-
params(
|
|
27
|
-
enterprise_id: String,
|
|
28
|
-
phone_numbers: T::Array[String],
|
|
29
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
-
).returns(
|
|
31
|
-
Telnyx::Models::Enterprises::Reputation::NumberCreateResponse
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
def create(
|
|
35
|
-
# Unique identifier of the enterprise (UUID)
|
|
36
|
-
enterprise_id,
|
|
37
|
-
# List of phone numbers to associate for reputation monitoring (max 100)
|
|
38
|
-
phone_numbers:,
|
|
39
|
-
request_options: {}
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
10
|
# Get detailed reputation data for a specific phone number associated with an
|
|
44
11
|
# enterprise.
|
|
45
12
|
#
|
|
@@ -111,6 +78,39 @@ module Telnyx
|
|
|
111
78
|
)
|
|
112
79
|
end
|
|
113
80
|
|
|
81
|
+
# Associate one or more phone numbers with an enterprise for Number Reputation
|
|
82
|
+
# monitoring.
|
|
83
|
+
#
|
|
84
|
+
# **Validations:**
|
|
85
|
+
#
|
|
86
|
+
# - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
87
|
+
# - Phone numbers must be in-service and belong to your account (verified via
|
|
88
|
+
# Warehouse)
|
|
89
|
+
# - Phone numbers must be US local numbers
|
|
90
|
+
# - Phone numbers cannot already be associated with any enterprise
|
|
91
|
+
#
|
|
92
|
+
# **Note:** This operation is atomic — if any number fails validation, the entire
|
|
93
|
+
# request fails.
|
|
94
|
+
#
|
|
95
|
+
# **Maximum:** 100 phone numbers per request.
|
|
96
|
+
sig do
|
|
97
|
+
params(
|
|
98
|
+
enterprise_id: String,
|
|
99
|
+
phone_numbers: T::Array[String],
|
|
100
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
101
|
+
).returns(
|
|
102
|
+
Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
def associate(
|
|
106
|
+
# Unique identifier of the enterprise (UUID)
|
|
107
|
+
enterprise_id,
|
|
108
|
+
# List of phone numbers to associate for reputation monitoring (max 100)
|
|
109
|
+
phone_numbers:,
|
|
110
|
+
request_options: {}
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
114
|
# Remove a phone number from Number Reputation monitoring for an enterprise.
|
|
115
115
|
#
|
|
116
116
|
# The number will no longer be tracked and reputation data will no longer be
|
|
@@ -122,7 +122,7 @@ module Telnyx
|
|
|
122
122
|
request_options: Telnyx::RequestOptions::OrHash
|
|
123
123
|
).void
|
|
124
124
|
end
|
|
125
|
-
def
|
|
125
|
+
def disassociate(
|
|
126
126
|
# Phone number in E.164 format
|
|
127
127
|
phone_number,
|
|
128
128
|
# Unique identifier of the enterprise (UUID)
|
|
@@ -11,6 +11,47 @@ module Telnyx
|
|
|
11
11
|
sig { returns(Telnyx::Resources::Enterprises::Reputation::Numbers) }
|
|
12
12
|
attr_reader :numbers
|
|
13
13
|
|
|
14
|
+
# Retrieve the current Number Reputation settings for an enterprise.
|
|
15
|
+
#
|
|
16
|
+
# Returns the enrollment status (`pending`, `approved`, `rejected`, `deleted`),
|
|
17
|
+
# check frequency, and any rejection reasons.
|
|
18
|
+
#
|
|
19
|
+
# Returns `404` if reputation has not been enabled for this enterprise.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
enterprise_id: String,
|
|
23
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
24
|
+
).returns(Telnyx::Models::Enterprises::ReputationRetrieveResponse)
|
|
25
|
+
end
|
|
26
|
+
def retrieve(
|
|
27
|
+
# Unique identifier of the enterprise (UUID)
|
|
28
|
+
enterprise_id,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Disable Number Reputation for an enterprise.
|
|
34
|
+
#
|
|
35
|
+
# This will:
|
|
36
|
+
#
|
|
37
|
+
# - Delete the reputation settings record
|
|
38
|
+
# - Log the deletion for audit purposes
|
|
39
|
+
# - Stop all future automated reputation checks
|
|
40
|
+
#
|
|
41
|
+
# **Note:** Can only be performed on `approved` reputation settings.
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
enterprise_id: String,
|
|
45
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
46
|
+
).void
|
|
47
|
+
end
|
|
48
|
+
def disable(
|
|
49
|
+
# Unique identifier of the enterprise (UUID)
|
|
50
|
+
enterprise_id,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
14
55
|
# Enable Number Reputation service for an enterprise.
|
|
15
56
|
#
|
|
16
57
|
# **Requirements:**
|
|
@@ -41,11 +82,11 @@ module Telnyx
|
|
|
41
82
|
enterprise_id: String,
|
|
42
83
|
loa_document_id: String,
|
|
43
84
|
check_frequency:
|
|
44
|
-
Telnyx::Enterprises::
|
|
85
|
+
Telnyx::Enterprises::ReputationEnableParams::CheckFrequency::OrSymbol,
|
|
45
86
|
request_options: Telnyx::RequestOptions::OrHash
|
|
46
|
-
).returns(Telnyx::Models::Enterprises::
|
|
87
|
+
).returns(Telnyx::Models::Enterprises::ReputationEnableResponse)
|
|
47
88
|
end
|
|
48
|
-
def
|
|
89
|
+
def enable(
|
|
49
90
|
# Unique identifier of the enterprise (UUID)
|
|
50
91
|
enterprise_id,
|
|
51
92
|
# ID of the signed Letter of Authorization (LOA) document uploaded to the document
|
|
@@ -57,47 +98,6 @@ module Telnyx
|
|
|
57
98
|
)
|
|
58
99
|
end
|
|
59
100
|
|
|
60
|
-
# Retrieve the current Number Reputation settings for an enterprise.
|
|
61
|
-
#
|
|
62
|
-
# Returns the enrollment status (`pending`, `approved`, `rejected`, `deleted`),
|
|
63
|
-
# check frequency, and any rejection reasons.
|
|
64
|
-
#
|
|
65
|
-
# Returns `404` if reputation has not been enabled for this enterprise.
|
|
66
|
-
sig do
|
|
67
|
-
params(
|
|
68
|
-
enterprise_id: String,
|
|
69
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
70
|
-
).returns(Telnyx::Models::Enterprises::ReputationListResponse)
|
|
71
|
-
end
|
|
72
|
-
def list(
|
|
73
|
-
# Unique identifier of the enterprise (UUID)
|
|
74
|
-
enterprise_id,
|
|
75
|
-
request_options: {}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Disable Number Reputation for an enterprise.
|
|
80
|
-
#
|
|
81
|
-
# This will:
|
|
82
|
-
#
|
|
83
|
-
# - Delete the reputation settings record
|
|
84
|
-
# - Log the deletion for audit purposes
|
|
85
|
-
# - Stop all future automated reputation checks
|
|
86
|
-
#
|
|
87
|
-
# **Note:** Can only be performed on `approved` reputation settings.
|
|
88
|
-
sig do
|
|
89
|
-
params(
|
|
90
|
-
enterprise_id: String,
|
|
91
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
92
|
-
).void
|
|
93
|
-
end
|
|
94
|
-
def delete_all(
|
|
95
|
-
# Unique identifier of the enterprise (UUID)
|
|
96
|
-
enterprise_id,
|
|
97
|
-
request_options: {}
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
101
|
# Update how often reputation data is automatically refreshed.
|
|
102
102
|
#
|
|
103
103
|
# **Note:** The enterprise must have `approved` reputation settings. Updating
|
|
@@ -29,8 +29,8 @@ module Telnyx
|
|
|
29
29
|
items:
|
|
30
30
|
T::Array[
|
|
31
31
|
T.any(
|
|
32
|
-
Telnyx::
|
|
33
|
-
Telnyx::
|
|
32
|
+
Telnyx::PronunciationDictAliasItem::OrHash,
|
|
33
|
+
Telnyx::PronunciationDictPhonemeItem::OrHash
|
|
34
34
|
)
|
|
35
35
|
],
|
|
36
36
|
name: String,
|
|
@@ -70,8 +70,8 @@ module Telnyx
|
|
|
70
70
|
items:
|
|
71
71
|
T::Array[
|
|
72
72
|
T.any(
|
|
73
|
-
Telnyx::
|
|
74
|
-
Telnyx::
|
|
73
|
+
Telnyx::PronunciationDictAliasItem::OrHash,
|
|
74
|
+
Telnyx::PronunciationDictPhonemeItem::OrHash
|
|
75
75
|
)
|
|
76
76
|
],
|
|
77
77
|
name: String,
|
|
@@ -97,9 +97,7 @@ module Telnyx
|
|
|
97
97
|
page_size: Integer,
|
|
98
98
|
request_options: Telnyx::RequestOptions::OrHash
|
|
99
99
|
).returns(
|
|
100
|
-
Telnyx::Internal::DefaultFlatPagination[
|
|
101
|
-
Telnyx::Models::PronunciationDictListResponse
|
|
102
|
-
]
|
|
100
|
+
Telnyx::Internal::DefaultFlatPagination[Telnyx::PronunciationDictData]
|
|
103
101
|
)
|
|
104
102
|
end
|
|
105
103
|
def list(
|
|
@@ -95,11 +95,11 @@ module Telnyx
|
|
|
95
95
|
sig do
|
|
96
96
|
params(
|
|
97
97
|
account_sid: String,
|
|
98
|
-
|
|
98
|
+
params:
|
|
99
99
|
T.any(
|
|
100
|
-
Telnyx::Texml::Accounts::CallCallsParams::
|
|
101
|
-
Telnyx::Texml::Accounts::CallCallsParams::
|
|
102
|
-
Telnyx::Texml::Accounts::CallCallsParams::
|
|
100
|
+
Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::OrHash,
|
|
101
|
+
Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::OrHash,
|
|
102
|
+
Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::OrHash
|
|
103
103
|
),
|
|
104
104
|
request_options: Telnyx::RequestOptions::OrHash
|
|
105
105
|
).returns(Telnyx::Models::Texml::Accounts::CallCallsResponse)
|
|
@@ -107,7 +107,7 @@ module Telnyx
|
|
|
107
107
|
def calls(
|
|
108
108
|
# The id of the account the resource belongs to.
|
|
109
109
|
account_sid,
|
|
110
|
-
|
|
110
|
+
params:,
|
|
111
111
|
request_options: {}
|
|
112
112
|
)
|
|
113
113
|
end
|
|
@@ -9,25 +9,17 @@ module Telnyx
|
|
|
9
9
|
# design. The clone can then be used for text-to-speech synthesis.
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
params:
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::OrHash,
|
|
15
|
+
Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::OrHash
|
|
16
|
+
),
|
|
17
17
|
request_options: Telnyx::RequestOptions::OrHash
|
|
18
18
|
).returns(Telnyx::Models::VoiceCloneCreateResponse)
|
|
19
19
|
end
|
|
20
20
|
def create(
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
# ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
|
|
24
|
-
language:,
|
|
25
|
-
# Name for the voice clone.
|
|
26
|
-
name:,
|
|
27
|
-
# UUID of the source voice design to clone.
|
|
28
|
-
voice_design_id:,
|
|
29
|
-
# Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
30
|
-
provider: nil,
|
|
21
|
+
# Request body for creating a voice clone from an existing voice design.
|
|
22
|
+
params:,
|
|
31
23
|
request_options: {}
|
|
32
24
|
)
|
|
33
25
|
end
|
|
@@ -97,38 +89,22 @@ module Telnyx
|
|
|
97
89
|
|
|
98
90
|
# Creates a new voice clone by uploading an audio file directly. Supported
|
|
99
91
|
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
|
|
100
|
-
# clear speech. Maximum file size:
|
|
92
|
+
# clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
101
93
|
sig do
|
|
102
94
|
params(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
Telnyx::VoiceCloneCreateFromUploadParams::Provider::OrSymbol,
|
|
110
|
-
ref_text: String,
|
|
95
|
+
upload_params:
|
|
96
|
+
T.any(
|
|
97
|
+
Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::OrHash,
|
|
98
|
+
Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::OrHash,
|
|
99
|
+
Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::OrHash
|
|
100
|
+
),
|
|
111
101
|
request_options: Telnyx::RequestOptions::OrHash
|
|
112
102
|
).returns(Telnyx::Models::VoiceCloneCreateFromUploadResponse)
|
|
113
103
|
end
|
|
114
104
|
def create_from_upload(
|
|
115
|
-
#
|
|
116
|
-
#
|
|
117
|
-
|
|
118
|
-
audio_file:,
|
|
119
|
-
# ISO 639-1 language code (e.g. `en`, `fr`) or `auto` for automatic detection.
|
|
120
|
-
language:,
|
|
121
|
-
# Name for the voice clone.
|
|
122
|
-
name:,
|
|
123
|
-
# Gender of the voice clone.
|
|
124
|
-
gender: nil,
|
|
125
|
-
# Optional custom label describing the voice style. If omitted, falls back to the
|
|
126
|
-
# source design's prompt text.
|
|
127
|
-
label: nil,
|
|
128
|
-
# Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
129
|
-
provider: nil,
|
|
130
|
-
# Optional transcript of the audio file. Providing this improves clone quality.
|
|
131
|
-
ref_text: nil,
|
|
105
|
+
# Multipart form data for creating a voice clone from a direct audio upload.
|
|
106
|
+
# Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
107
|
+
upload_params:,
|
|
132
108
|
request_options: {}
|
|
133
109
|
)
|
|
134
110
|
end
|
|
@@ -7,6 +7,22 @@ module Telnyx
|
|
|
7
7
|
class Profile
|
|
8
8
|
# Manage Whatsapp phone numbers
|
|
9
9
|
class Photo
|
|
10
|
+
# Get Whatsapp profile photo
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
phone_number: String,
|
|
14
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
15
|
+
).returns(
|
|
16
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def retrieve(
|
|
20
|
+
# Phone number (E.164 format)
|
|
21
|
+
phone_number,
|
|
22
|
+
request_options: {}
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
10
26
|
# Delete Whatsapp profile photo
|
|
11
27
|
sig do
|
|
12
28
|
params(
|