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
|
@@ -7,6 +7,7 @@ module Telnyx
|
|
|
7
7
|
gender: Telnyx::Models::VoiceCloneData::gender?,
|
|
8
8
|
label: String?,
|
|
9
9
|
language: String?,
|
|
10
|
+
model_id: Telnyx::Models::VoiceCloneData::model_id,
|
|
10
11
|
name: String,
|
|
11
12
|
provider: Telnyx::Models::VoiceCloneData::provider,
|
|
12
13
|
provider_supported_models: ::Array[String],
|
|
@@ -14,6 +15,7 @@ module Telnyx
|
|
|
14
15
|
record_type: Telnyx::Models::VoiceCloneData::record_type,
|
|
15
16
|
source_voice_design_id: String?,
|
|
16
17
|
source_voice_design_version: Integer?,
|
|
18
|
+
status: Telnyx::Models::VoiceCloneData::status,
|
|
17
19
|
updated_at: Time
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -32,6 +34,12 @@ module Telnyx
|
|
|
32
34
|
|
|
33
35
|
attr_accessor language: String?
|
|
34
36
|
|
|
37
|
+
attr_reader model_id: Telnyx::Models::VoiceCloneData::model_id?
|
|
38
|
+
|
|
39
|
+
def model_id=: (
|
|
40
|
+
Telnyx::Models::VoiceCloneData::model_id
|
|
41
|
+
) -> Telnyx::Models::VoiceCloneData::model_id
|
|
42
|
+
|
|
35
43
|
attr_reader name: String?
|
|
36
44
|
|
|
37
45
|
def name=: (String) -> String
|
|
@@ -58,6 +66,12 @@ module Telnyx
|
|
|
58
66
|
|
|
59
67
|
attr_accessor source_voice_design_version: Integer?
|
|
60
68
|
|
|
69
|
+
attr_reader status: Telnyx::Models::VoiceCloneData::status?
|
|
70
|
+
|
|
71
|
+
def status=: (
|
|
72
|
+
Telnyx::Models::VoiceCloneData::status
|
|
73
|
+
) -> Telnyx::Models::VoiceCloneData::status
|
|
74
|
+
|
|
61
75
|
attr_reader updated_at: Time?
|
|
62
76
|
|
|
63
77
|
def updated_at=: (Time) -> Time
|
|
@@ -68,6 +82,7 @@ module Telnyx
|
|
|
68
82
|
?gender: Telnyx::Models::VoiceCloneData::gender?,
|
|
69
83
|
?label: String?,
|
|
70
84
|
?language: String?,
|
|
85
|
+
?model_id: Telnyx::Models::VoiceCloneData::model_id,
|
|
71
86
|
?name: String,
|
|
72
87
|
?provider: Telnyx::Models::VoiceCloneData::provider,
|
|
73
88
|
?provider_supported_models: ::Array[String],
|
|
@@ -75,6 +90,7 @@ module Telnyx
|
|
|
75
90
|
?record_type: Telnyx::Models::VoiceCloneData::record_type,
|
|
76
91
|
?source_voice_design_id: String?,
|
|
77
92
|
?source_voice_design_version: Integer?,
|
|
93
|
+
?status: Telnyx::Models::VoiceCloneData::status,
|
|
78
94
|
?updated_at: Time
|
|
79
95
|
) -> void
|
|
80
96
|
|
|
@@ -84,6 +100,7 @@ module Telnyx
|
|
|
84
100
|
gender: Telnyx::Models::VoiceCloneData::gender?,
|
|
85
101
|
label: String?,
|
|
86
102
|
language: String?,
|
|
103
|
+
model_id: Telnyx::Models::VoiceCloneData::model_id,
|
|
87
104
|
name: String,
|
|
88
105
|
provider: Telnyx::Models::VoiceCloneData::provider,
|
|
89
106
|
provider_supported_models: ::Array[String],
|
|
@@ -91,6 +108,7 @@ module Telnyx
|
|
|
91
108
|
record_type: Telnyx::Models::VoiceCloneData::record_type,
|
|
92
109
|
source_voice_design_id: String?,
|
|
93
110
|
source_voice_design_version: Integer?,
|
|
111
|
+
status: Telnyx::Models::VoiceCloneData::status,
|
|
94
112
|
updated_at: Time
|
|
95
113
|
}
|
|
96
114
|
|
|
@@ -106,6 +124,18 @@ module Telnyx
|
|
|
106
124
|
def self?.values: -> ::Array[Telnyx::Models::VoiceCloneData::gender]
|
|
107
125
|
end
|
|
108
126
|
|
|
127
|
+
type model_id = :Qwen3TTS | :Ultra | :"speech-2.8-turbo"
|
|
128
|
+
|
|
129
|
+
module ModelID
|
|
130
|
+
extend Telnyx::Internal::Type::Enum
|
|
131
|
+
|
|
132
|
+
QWEN3_TTS: :Qwen3TTS
|
|
133
|
+
ULTRA: :Ultra
|
|
134
|
+
SPEECH_2_8_TURBO: :"speech-2.8-turbo"
|
|
135
|
+
|
|
136
|
+
def self?.values: -> ::Array[Telnyx::Models::VoiceCloneData::model_id]
|
|
137
|
+
end
|
|
138
|
+
|
|
109
139
|
type provider = :telnyx | :minimax
|
|
110
140
|
|
|
111
141
|
module Provider
|
|
@@ -126,6 +156,19 @@ module Telnyx
|
|
|
126
156
|
|
|
127
157
|
def self?.values: -> ::Array[Telnyx::Models::VoiceCloneData::record_type]
|
|
128
158
|
end
|
|
159
|
+
|
|
160
|
+
type status = :active | :pending | :failed | :expired
|
|
161
|
+
|
|
162
|
+
module Status
|
|
163
|
+
extend Telnyx::Internal::Type::Enum
|
|
164
|
+
|
|
165
|
+
ACTIVE: :active
|
|
166
|
+
PENDING: :pending
|
|
167
|
+
FAILED: :failed
|
|
168
|
+
EXPIRED: :expired
|
|
169
|
+
|
|
170
|
+
def self?.values: -> ::Array[Telnyx::Models::VoiceCloneData::status]
|
|
171
|
+
end
|
|
129
172
|
end
|
|
130
173
|
end
|
|
131
174
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Whatsapp
|
|
4
|
+
module PhoneNumbers
|
|
5
|
+
module Profile
|
|
6
|
+
type photo_retrieve_params =
|
|
7
|
+
{ phone_number: String }
|
|
8
|
+
& Telnyx::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class PhotoRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
11
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_accessor phone_number: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
phone_number: String,
|
|
18
|
+
?request_options: Telnyx::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
phone_number: String,
|
|
23
|
+
request_options: Telnyx::RequestOptions
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Whatsapp
|
|
4
|
+
module PhoneNumbers
|
|
5
|
+
module Profile
|
|
6
|
+
type photo_retrieve_response =
|
|
7
|
+
{
|
|
8
|
+
data: Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class PhotoRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_reader data: Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data?
|
|
13
|
+
|
|
14
|
+
def data=: (
|
|
15
|
+
Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
16
|
+
) -> Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
?data: Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
data: Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type data =
|
|
27
|
+
{
|
|
28
|
+
phone_number_id: String,
|
|
29
|
+
profile_photo_url: String,
|
|
30
|
+
record_type: String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
34
|
+
attr_reader phone_number_id: String?
|
|
35
|
+
|
|
36
|
+
def phone_number_id=: (String) -> String
|
|
37
|
+
|
|
38
|
+
attr_reader profile_photo_url: String?
|
|
39
|
+
|
|
40
|
+
def profile_photo_url=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_reader record_type: String?
|
|
43
|
+
|
|
44
|
+
def record_type=: (String) -> String
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
?phone_number_id: String,
|
|
48
|
+
?profile_photo_url: String,
|
|
49
|
+
?record_type: String
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
phone_number_id: String,
|
|
54
|
+
profile_photo_url: String,
|
|
55
|
+
record_type: String
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
data/sig/telnyx/models.rbs
CHANGED
|
@@ -107,6 +107,10 @@ module Telnyx
|
|
|
107
107
|
|
|
108
108
|
class BillingGroupUpdateParams = Telnyx::Models::BillingGroupUpdateParams
|
|
109
109
|
|
|
110
|
+
class BookAppointmentTool = Telnyx::Models::BookAppointmentTool
|
|
111
|
+
|
|
112
|
+
class BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
|
|
113
|
+
|
|
110
114
|
class BulkMessagingSettingsUpdatePhoneNumbers = Telnyx::Models::BulkMessagingSettingsUpdatePhoneNumbers
|
|
111
115
|
|
|
112
116
|
class BulkSimCardActionListParams = Telnyx::Models::BulkSimCardActionListParams
|
|
@@ -131,6 +135,8 @@ module Telnyx
|
|
|
131
135
|
|
|
132
136
|
class CallAnsweredWebhookEvent = Telnyx::Models::CallAnsweredWebhookEvent
|
|
133
137
|
|
|
138
|
+
class CallAssistantRequest = Telnyx::Models::CallAssistantRequest
|
|
139
|
+
|
|
134
140
|
class CallBridged = Telnyx::Models::CallBridged
|
|
135
141
|
|
|
136
142
|
class CallBridgedWebhookEvent = Telnyx::Models::CallBridgedWebhookEvent
|
|
@@ -151,6 +157,10 @@ module Telnyx
|
|
|
151
157
|
|
|
152
158
|
class CallControlApplicationUpdateParams = Telnyx::Models::CallControlApplicationUpdateParams
|
|
153
159
|
|
|
160
|
+
class CallControlBucketIDs = Telnyx::Models::CallControlBucketIDs
|
|
161
|
+
|
|
162
|
+
class CallControlRetrievalTool = Telnyx::Models::CallControlRetrievalTool
|
|
163
|
+
|
|
154
164
|
class CallConversationEnded = Telnyx::Models::CallConversationEnded
|
|
155
165
|
|
|
156
166
|
class CallConversationEndedWebhookEvent = Telnyx::Models::CallConversationEndedWebhookEvent
|
|
@@ -291,6 +301,10 @@ module Telnyx
|
|
|
291
301
|
|
|
292
302
|
class ChargesSummaryRetrieveParams = Telnyx::Models::ChargesSummaryRetrieveParams
|
|
293
303
|
|
|
304
|
+
class CheckAvailabilityTool = Telnyx::Models::CheckAvailabilityTool
|
|
305
|
+
|
|
306
|
+
class CheckAvailabilityToolParams = Telnyx::Models::CheckAvailabilityToolParams
|
|
307
|
+
|
|
294
308
|
module CloudflareSyncStatus = Telnyx::Models::CloudflareSyncStatus
|
|
295
309
|
|
|
296
310
|
class Comment = Telnyx::Models::Comment
|
|
@@ -1183,12 +1197,18 @@ module Telnyx
|
|
|
1183
1197
|
|
|
1184
1198
|
class PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
|
|
1185
1199
|
|
|
1200
|
+
class PronunciationDictAliasItem = Telnyx::Models::PronunciationDictAliasItem
|
|
1201
|
+
|
|
1186
1202
|
class PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
|
|
1187
1203
|
|
|
1204
|
+
class PronunciationDictData = Telnyx::Models::PronunciationDictData
|
|
1205
|
+
|
|
1188
1206
|
class PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
|
|
1189
1207
|
|
|
1190
1208
|
class PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
|
|
1191
1209
|
|
|
1210
|
+
class PronunciationDictPhonemeItem = Telnyx::Models::PronunciationDictPhonemeItem
|
|
1211
|
+
|
|
1192
1212
|
class PronunciationDictRetrieveParams = Telnyx::Models::PronunciationDictRetrieveParams
|
|
1193
1213
|
|
|
1194
1214
|
class PronunciationDictUpdateParams = Telnyx::Models::PronunciationDictUpdateParams
|
|
@@ -24,7 +24,7 @@ module Telnyx
|
|
|
24
24
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
25
25
|
?model: String,
|
|
26
26
|
?name: String,
|
|
27
|
-
?observability_settings: Telnyx::AI::
|
|
27
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
28
28
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
29
29
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
30
30
|
?tool_ids: ::Array[String],
|
|
@@ -26,7 +26,7 @@ module Telnyx
|
|
|
26
26
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
27
27
|
?llm_api_key_ref: String,
|
|
28
28
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
29
|
-
?observability_settings: Telnyx::AI::
|
|
29
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
30
30
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
31
31
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
32
32
|
?tool_ids: ::Array[String],
|
|
@@ -59,7 +59,7 @@ module Telnyx
|
|
|
59
59
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
60
60
|
?model: String,
|
|
61
61
|
?name: String,
|
|
62
|
-
?observability_settings: Telnyx::AI::
|
|
62
|
+
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
63
63
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
64
64
|
?promote_to_main: bool,
|
|
65
65
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -12,6 +12,7 @@ module Telnyx
|
|
|
12
12
|
|
|
13
13
|
def answer: (
|
|
14
14
|
String call_control_id,
|
|
15
|
+
?assistant: Telnyx::CallAssistantRequest,
|
|
15
16
|
?billing_group_id: String,
|
|
16
17
|
?client_state: String,
|
|
17
18
|
?command_id: String,
|
|
@@ -250,7 +251,7 @@ module Telnyx
|
|
|
250
251
|
|
|
251
252
|
def start_ai_assistant: (
|
|
252
253
|
String call_control_id,
|
|
253
|
-
?assistant: Telnyx::
|
|
254
|
+
?assistant: Telnyx::CallAssistantRequest,
|
|
254
255
|
?client_state: String,
|
|
255
256
|
?command_id: String,
|
|
256
257
|
?greeting: String,
|
|
@@ -453,6 +454,7 @@ module Telnyx
|
|
|
453
454
|
?mute_dtmf: Telnyx::Models::Calls::ActionTransferParams::mute_dtmf,
|
|
454
455
|
?park_after_unbridge: String,
|
|
455
456
|
?preferred_codecs: String,
|
|
457
|
+
?privacy: Telnyx::Models::Calls::ActionTransferParams::privacy,
|
|
456
458
|
?record: Telnyx::Models::Calls::ActionTransferParams::record,
|
|
457
459
|
?record_channels: Telnyx::Models::Calls::ActionTransferParams::record_channels,
|
|
458
460
|
?record_custom_file_name: String,
|
|
@@ -9,6 +9,7 @@ module Telnyx
|
|
|
9
9
|
to: Telnyx::Models::CallDialParams::to,
|
|
10
10
|
?answering_machine_detection: Telnyx::Models::CallDialParams::answering_machine_detection,
|
|
11
11
|
?answering_machine_detection_config: Telnyx::CallDialParams::AnsweringMachineDetectionConfig,
|
|
12
|
+
?assistant: Telnyx::CallAssistantRequest,
|
|
12
13
|
?audio_url: String,
|
|
13
14
|
?billing_group_id: String,
|
|
14
15
|
?bridge_intent: bool,
|
|
@@ -26,6 +27,7 @@ module Telnyx
|
|
|
26
27
|
?park_after_unbridge: String,
|
|
27
28
|
?preferred_codecs: String,
|
|
28
29
|
?prevent_double_bridge: bool,
|
|
30
|
+
?privacy: Telnyx::Models::CallDialParams::privacy,
|
|
29
31
|
?record: Telnyx::Models::CallDialParams::record,
|
|
30
32
|
?record_channels: Telnyx::Models::CallDialParams::record_channels,
|
|
31
33
|
?record_custom_file_name: String,
|
|
@@ -3,12 +3,6 @@ module Telnyx
|
|
|
3
3
|
class Enterprises
|
|
4
4
|
class Reputation
|
|
5
5
|
class Numbers
|
|
6
|
-
def create: (
|
|
7
|
-
String enterprise_id,
|
|
8
|
-
phone_numbers: ::Array[String],
|
|
9
|
-
?request_options: Telnyx::request_opts
|
|
10
|
-
) -> Telnyx::Models::Enterprises::Reputation::NumberCreateResponse
|
|
11
|
-
|
|
12
6
|
def retrieve: (
|
|
13
7
|
String phone_number,
|
|
14
8
|
enterprise_id: String,
|
|
@@ -24,7 +18,13 @@ module Telnyx
|
|
|
24
18
|
?request_options: Telnyx::request_opts
|
|
25
19
|
) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::ReputationPhoneNumberWithReputationData]
|
|
26
20
|
|
|
27
|
-
def
|
|
21
|
+
def associate: (
|
|
22
|
+
String enterprise_id,
|
|
23
|
+
phone_numbers: ::Array[String],
|
|
24
|
+
?request_options: Telnyx::request_opts
|
|
25
|
+
) -> Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse
|
|
26
|
+
|
|
27
|
+
def disassociate: (
|
|
28
28
|
String phone_number,
|
|
29
29
|
enterprise_id: String,
|
|
30
30
|
?request_options: Telnyx::request_opts
|
|
@@ -4,22 +4,22 @@ module Telnyx
|
|
|
4
4
|
class Reputation
|
|
5
5
|
attr_reader numbers: Telnyx::Resources::Enterprises::Reputation::Numbers
|
|
6
6
|
|
|
7
|
-
def
|
|
7
|
+
def retrieve: (
|
|
8
8
|
String enterprise_id,
|
|
9
|
-
loa_document_id: String,
|
|
10
|
-
?check_frequency: Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency,
|
|
11
9
|
?request_options: Telnyx::request_opts
|
|
12
|
-
) -> Telnyx::Models::Enterprises::
|
|
10
|
+
) -> Telnyx::Models::Enterprises::ReputationRetrieveResponse
|
|
13
11
|
|
|
14
|
-
def
|
|
12
|
+
def disable: (
|
|
15
13
|
String enterprise_id,
|
|
16
14
|
?request_options: Telnyx::request_opts
|
|
17
|
-
) ->
|
|
15
|
+
) -> nil
|
|
18
16
|
|
|
19
|
-
def
|
|
17
|
+
def enable: (
|
|
20
18
|
String enterprise_id,
|
|
19
|
+
loa_document_id: String,
|
|
20
|
+
?check_frequency: Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency,
|
|
21
21
|
?request_options: Telnyx::request_opts
|
|
22
|
-
) ->
|
|
22
|
+
) -> Telnyx::Models::Enterprises::ReputationEnableResponse
|
|
23
23
|
|
|
24
24
|
def update_frequency: (
|
|
25
25
|
String enterprise_id,
|
|
@@ -23,7 +23,7 @@ module Telnyx
|
|
|
23
23
|
?page_number: Integer,
|
|
24
24
|
?page_size: Integer,
|
|
25
25
|
?request_options: Telnyx::request_opts
|
|
26
|
-
) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::
|
|
26
|
+
) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::PronunciationDictData]
|
|
27
27
|
|
|
28
28
|
def delete: (String id, ?request_options: Telnyx::request_opts) -> nil
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ module Telnyx
|
|
|
33
33
|
|
|
34
34
|
def calls: (
|
|
35
35
|
String account_sid,
|
|
36
|
-
|
|
36
|
+
params: Telnyx::Models::Texml::Accounts::CallCallsParams::params,
|
|
37
37
|
?request_options: Telnyx::request_opts
|
|
38
38
|
) -> Telnyx::Models::Texml::Accounts::CallCallsResponse
|
|
39
39
|
|
|
@@ -2,11 +2,7 @@ module Telnyx
|
|
|
2
2
|
module Resources
|
|
3
3
|
class VoiceClones
|
|
4
4
|
def create: (
|
|
5
|
-
|
|
6
|
-
language: String,
|
|
7
|
-
name: String,
|
|
8
|
-
voice_design_id: String,
|
|
9
|
-
?provider: Telnyx::Models::VoiceCloneCreateParams::provider,
|
|
5
|
+
params: Telnyx::Models::VoiceCloneCreateParams::params,
|
|
10
6
|
?request_options: Telnyx::request_opts
|
|
11
7
|
) -> Telnyx::Models::VoiceCloneCreateResponse
|
|
12
8
|
|
|
@@ -30,13 +26,7 @@ module Telnyx
|
|
|
30
26
|
def delete: (String id, ?request_options: Telnyx::request_opts) -> nil
|
|
31
27
|
|
|
32
28
|
def create_from_upload: (
|
|
33
|
-
|
|
34
|
-
language: String,
|
|
35
|
-
name: String,
|
|
36
|
-
?gender: Telnyx::Models::VoiceCloneCreateFromUploadParams::gender,
|
|
37
|
-
?label: String,
|
|
38
|
-
?provider: Telnyx::Models::VoiceCloneCreateFromUploadParams::provider,
|
|
39
|
-
?ref_text: String,
|
|
29
|
+
upload_params: Telnyx::Models::VoiceCloneCreateFromUploadParams::upload_params,
|
|
40
30
|
?request_options: Telnyx::request_opts
|
|
41
31
|
) -> Telnyx::Models::VoiceCloneCreateFromUploadResponse
|
|
42
32
|
|
|
@@ -4,6 +4,11 @@ module Telnyx
|
|
|
4
4
|
class PhoneNumbers
|
|
5
5
|
class Profile
|
|
6
6
|
class Photo
|
|
7
|
+
def retrieve: (
|
|
8
|
+
String phone_number,
|
|
9
|
+
?request_options: Telnyx::request_opts
|
|
10
|
+
) -> Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse
|
|
11
|
+
|
|
7
12
|
def delete: (
|
|
8
13
|
String phone_number,
|
|
9
14
|
?request_options: Telnyx::request_opts
|