telnyx 5.69.0 → 5.70.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 +24 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- 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/call_dial_params.rb +24 -1
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- 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/voice_clone_create_from_upload_params.rb +364 -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/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +3 -1
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -8
- 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/call_dial_params.rbi +37 -0
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -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/voice_clone_create_from_upload_params.rbi +711 -136
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- 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 +5 -0
- data/rbi/telnyx/resources/calls.rbi +5 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- 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/call_dial_params.rbs +20 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -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/voice_clone_create_from_upload_params.rbs +269 -58
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -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 +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- metadata +31 -25
|
@@ -7,70 +7,180 @@ module Telnyx
|
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute
|
|
11
|
-
#
|
|
10
|
+
# @!attribute body
|
|
11
|
+
# Request body for creating a voice clone from an existing voice design.
|
|
12
12
|
#
|
|
13
|
-
# @return [
|
|
14
|
-
required :
|
|
13
|
+
# @return [Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone]
|
|
14
|
+
required :body, union: -> { Telnyx::VoiceCloneCreateParams::Body }
|
|
15
15
|
|
|
16
|
-
# @!
|
|
17
|
-
#
|
|
16
|
+
# @!method initialize(body:, request_options: {})
|
|
17
|
+
# @param body [Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone] Request body for creating a voice clone from an existing voice design.
|
|
18
18
|
#
|
|
19
|
-
# @
|
|
20
|
-
required :language, String
|
|
19
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
21
20
|
|
|
22
|
-
#
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# @return [String]
|
|
26
|
-
required :name, String
|
|
21
|
+
# Request body for creating a voice clone from an existing voice design.
|
|
22
|
+
module Body
|
|
23
|
+
extend Telnyx::Internal::Type::Union
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
# UUID of the source voice design to clone.
|
|
30
|
-
#
|
|
31
|
-
# @return [String]
|
|
32
|
-
required :voice_design_id, String
|
|
25
|
+
discriminator :provider
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
#
|
|
37
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateParams::Provider, nil]
|
|
38
|
-
optional :provider, enum: -> { Telnyx::VoiceCloneCreateParams::Provider }
|
|
27
|
+
# Create a voice clone from a voice design using the Telnyx provider.
|
|
28
|
+
variant -> { Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone }
|
|
39
29
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
#
|
|
43
|
-
# @param language [String] ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
|
|
44
|
-
#
|
|
45
|
-
# @param name [String] Name for the voice clone.
|
|
46
|
-
#
|
|
47
|
-
# @param voice_design_id [String] UUID of the source voice design to clone.
|
|
48
|
-
#
|
|
49
|
-
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateParams::Provider] Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
50
|
-
#
|
|
51
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
+
# Create a voice clone from a voice design using the Minimax provider.
|
|
31
|
+
variant -> { Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone }
|
|
52
32
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
class TelnyxDesignClone < Telnyx::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute gender
|
|
35
|
+
# Gender of the voice clone.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender]
|
|
38
|
+
required :gender, enum: -> { Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender }
|
|
56
39
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
40
|
+
# @!attribute language
|
|
41
|
+
# ISO 639-1 language code for the clone. Supports the combined Telnyx language
|
|
42
|
+
# set.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
required :language, String
|
|
60
46
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
# @!attribute name
|
|
48
|
+
# Name for the voice clone.
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
required :name, String
|
|
52
|
+
|
|
53
|
+
# @!attribute voice_design_id
|
|
54
|
+
# UUID of the source voice design to clone.
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :voice_design_id, String
|
|
58
|
+
|
|
59
|
+
# @!attribute provider
|
|
60
|
+
# Voice synthesis provider. Defaults to `telnyx`.
|
|
61
|
+
#
|
|
62
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider, nil]
|
|
63
|
+
optional :provider, enum: -> { Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider }
|
|
64
|
+
|
|
65
|
+
# @!method initialize(gender:, language:, name:, voice_design_id:, provider: nil)
|
|
66
|
+
# Some parameter documentations has been truncated, see
|
|
67
|
+
# {Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone} for more
|
|
68
|
+
# details.
|
|
69
|
+
#
|
|
70
|
+
# Create a voice clone from a voice design using the Telnyx provider.
|
|
71
|
+
#
|
|
72
|
+
# @param gender [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender] Gender of the voice clone.
|
|
73
|
+
#
|
|
74
|
+
# @param language [String] ISO 639-1 language code for the clone. Supports the combined Telnyx language set
|
|
75
|
+
#
|
|
76
|
+
# @param name [String] Name for the voice clone.
|
|
77
|
+
#
|
|
78
|
+
# @param voice_design_id [String] UUID of the source voice design to clone.
|
|
79
|
+
#
|
|
80
|
+
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider] Voice synthesis provider. Defaults to `telnyx`.
|
|
81
|
+
|
|
82
|
+
# Gender of the voice clone.
|
|
83
|
+
#
|
|
84
|
+
# @see Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone#gender
|
|
85
|
+
module Gender
|
|
86
|
+
extend Telnyx::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
MALE = :male
|
|
89
|
+
FEMALE = :female
|
|
90
|
+
NEUTRAL = :neutral
|
|
91
|
+
|
|
92
|
+
# @!method self.values
|
|
93
|
+
# @return [Array<Symbol>]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Voice synthesis provider. Defaults to `telnyx`.
|
|
97
|
+
#
|
|
98
|
+
# @see Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone#provider
|
|
99
|
+
module Provider
|
|
100
|
+
extend Telnyx::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
TELNYX = :telnyx
|
|
103
|
+
TELNYX_2 = :Telnyx
|
|
104
|
+
|
|
105
|
+
# @!method self.values
|
|
106
|
+
# @return [Array<Symbol>]
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class MinimaxDesignClone < Telnyx::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute gender
|
|
112
|
+
# Gender of the voice clone.
|
|
113
|
+
#
|
|
114
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender]
|
|
115
|
+
required :gender, enum: -> { Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender }
|
|
116
|
+
|
|
117
|
+
# @!attribute language
|
|
118
|
+
# ISO 639-1 language code for the clone. Supports the Minimax language set.
|
|
119
|
+
#
|
|
120
|
+
# @return [String]
|
|
121
|
+
required :language, String
|
|
122
|
+
|
|
123
|
+
# @!attribute name
|
|
124
|
+
# Name for the voice clone.
|
|
125
|
+
#
|
|
126
|
+
# @return [String]
|
|
127
|
+
required :name, String
|
|
128
|
+
|
|
129
|
+
# @!attribute provider
|
|
130
|
+
# Voice synthesis provider. Must be `minimax`.
|
|
131
|
+
#
|
|
132
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider]
|
|
133
|
+
required :provider, enum: -> { Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider }
|
|
134
|
+
|
|
135
|
+
# @!attribute voice_design_id
|
|
136
|
+
# UUID of the source voice design to clone.
|
|
137
|
+
#
|
|
138
|
+
# @return [String]
|
|
139
|
+
required :voice_design_id, String
|
|
140
|
+
|
|
141
|
+
# @!method initialize(gender:, language:, name:, provider:, voice_design_id:)
|
|
142
|
+
# Create a voice clone from a voice design using the Minimax provider.
|
|
143
|
+
#
|
|
144
|
+
# @param gender [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender] Gender of the voice clone.
|
|
145
|
+
#
|
|
146
|
+
# @param language [String] ISO 639-1 language code for the clone. Supports the Minimax language set.
|
|
147
|
+
#
|
|
148
|
+
# @param name [String] Name for the voice clone.
|
|
149
|
+
#
|
|
150
|
+
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider] Voice synthesis provider. Must be `minimax`.
|
|
151
|
+
#
|
|
152
|
+
# @param voice_design_id [String] UUID of the source voice design to clone.
|
|
153
|
+
|
|
154
|
+
# Gender of the voice clone.
|
|
155
|
+
#
|
|
156
|
+
# @see Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone#gender
|
|
157
|
+
module Gender
|
|
158
|
+
extend Telnyx::Internal::Type::Enum
|
|
159
|
+
|
|
160
|
+
MALE = :male
|
|
161
|
+
FEMALE = :female
|
|
162
|
+
NEUTRAL = :neutral
|
|
163
|
+
|
|
164
|
+
# @!method self.values
|
|
165
|
+
# @return [Array<Symbol>]
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Voice synthesis provider. Must be `minimax`.
|
|
169
|
+
#
|
|
170
|
+
# @see Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone#provider
|
|
171
|
+
module Provider
|
|
172
|
+
extend Telnyx::Internal::Type::Enum
|
|
64
173
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
extend Telnyx::Internal::Type::Enum
|
|
174
|
+
MINIMAX = :minimax
|
|
175
|
+
MINIMAX_2 = :Minimax
|
|
68
176
|
|
|
69
|
-
|
|
70
|
-
|
|
177
|
+
# @!method self.values
|
|
178
|
+
# @return [Array<Symbol>]
|
|
179
|
+
end
|
|
180
|
+
end
|
|
71
181
|
|
|
72
|
-
# @!method self.
|
|
73
|
-
# @return [Array
|
|
182
|
+
# @!method self.variants
|
|
183
|
+
# @return [Array(Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone)]
|
|
74
184
|
end
|
|
75
185
|
end
|
|
76
186
|
end
|
|
@@ -35,6 +35,12 @@ module Telnyx
|
|
|
35
35
|
# @return [String, nil]
|
|
36
36
|
optional :language, String, nil?: true
|
|
37
37
|
|
|
38
|
+
# @!attribute model_id
|
|
39
|
+
# TTS model identifier for the voice clone.
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneData::ModelID, nil]
|
|
42
|
+
optional :model_id, enum: -> { Telnyx::VoiceCloneData::ModelID }
|
|
43
|
+
|
|
38
44
|
# @!attribute name
|
|
39
45
|
# Name of the voice clone.
|
|
40
46
|
#
|
|
@@ -54,8 +60,8 @@ module Telnyx
|
|
|
54
60
|
optional :provider_supported_models, Telnyx::Internal::Type::ArrayOf[String]
|
|
55
61
|
|
|
56
62
|
# @!attribute provider_voice_id
|
|
57
|
-
# Provider-specific voice identifier used for TTS synthesis.
|
|
58
|
-
#
|
|
63
|
+
# Provider-specific voice identifier used for TTS synthesis. May differ from the
|
|
64
|
+
# clone UUID depending on the provider and model.
|
|
59
65
|
#
|
|
60
66
|
# @return [String, nil]
|
|
61
67
|
optional :provider_voice_id, String, nil?: true
|
|
@@ -78,13 +84,20 @@ module Telnyx
|
|
|
78
84
|
# @return [Integer, nil]
|
|
79
85
|
optional :source_voice_design_version, Integer, nil?: true
|
|
80
86
|
|
|
87
|
+
# @!attribute status
|
|
88
|
+
# Clone status. pending for Ultra clones while on-prem import is in progress,
|
|
89
|
+
# active once ready, failed if verification timed out, expired if not kept alive.
|
|
90
|
+
#
|
|
91
|
+
# @return [Symbol, Telnyx::Models::VoiceCloneData::Status, nil]
|
|
92
|
+
optional :status, enum: -> { Telnyx::VoiceCloneData::Status }
|
|
93
|
+
|
|
81
94
|
# @!attribute updated_at
|
|
82
95
|
# Timestamp when the voice clone was last updated.
|
|
83
96
|
#
|
|
84
97
|
# @return [Time, nil]
|
|
85
98
|
optional :updated_at, Time
|
|
86
99
|
|
|
87
|
-
# @!method initialize(id: nil, created_at: nil, gender: nil, label: nil, language: nil, name: nil, provider: nil, provider_supported_models: nil, provider_voice_id: nil, record_type: nil, source_voice_design_id: nil, source_voice_design_version: nil, updated_at: nil)
|
|
100
|
+
# @!method initialize(id: nil, created_at: nil, gender: nil, label: nil, language: nil, model_id: nil, name: nil, provider: nil, provider_supported_models: nil, provider_voice_id: nil, record_type: nil, source_voice_design_id: nil, source_voice_design_version: nil, status: nil, updated_at: nil)
|
|
88
101
|
# Some parameter documentations has been truncated, see
|
|
89
102
|
# {Telnyx::Models::VoiceCloneData} for more details.
|
|
90
103
|
#
|
|
@@ -100,13 +113,15 @@ module Telnyx
|
|
|
100
113
|
#
|
|
101
114
|
# @param language [String, nil] ISO 639-1 language code of the voice clone.
|
|
102
115
|
#
|
|
116
|
+
# @param model_id [Symbol, Telnyx::Models::VoiceCloneData::ModelID] TTS model identifier for the voice clone.
|
|
117
|
+
#
|
|
103
118
|
# @param name [String] Name of the voice clone.
|
|
104
119
|
#
|
|
105
120
|
# @param provider [Symbol, Telnyx::Models::VoiceCloneData::Provider] Voice synthesis provider used for this clone.
|
|
106
121
|
#
|
|
107
122
|
# @param provider_supported_models [Array<String>] List of TTS model identifiers supported by this clone's provider.
|
|
108
123
|
#
|
|
109
|
-
# @param provider_voice_id [String, nil] Provider-specific voice identifier used for TTS synthesis.
|
|
124
|
+
# @param provider_voice_id [String, nil] Provider-specific voice identifier used for TTS synthesis. May differ from the c
|
|
110
125
|
#
|
|
111
126
|
# @param record_type [Symbol, Telnyx::Models::VoiceCloneData::RecordType] Identifies the resource type.
|
|
112
127
|
#
|
|
@@ -114,6 +129,8 @@ module Telnyx
|
|
|
114
129
|
#
|
|
115
130
|
# @param source_voice_design_version [Integer, nil] Version of the source voice design used. `null` for upload-based clones.
|
|
116
131
|
#
|
|
132
|
+
# @param status [Symbol, Telnyx::Models::VoiceCloneData::Status] Clone status. pending for Ultra clones while on-prem import is in progress, acti
|
|
133
|
+
#
|
|
117
134
|
# @param updated_at [Time] Timestamp when the voice clone was last updated.
|
|
118
135
|
|
|
119
136
|
# Gender of the voice clone.
|
|
@@ -130,6 +147,20 @@ module Telnyx
|
|
|
130
147
|
# @return [Array<Symbol>]
|
|
131
148
|
end
|
|
132
149
|
|
|
150
|
+
# TTS model identifier for the voice clone.
|
|
151
|
+
#
|
|
152
|
+
# @see Telnyx::Models::VoiceCloneData#model_id
|
|
153
|
+
module ModelID
|
|
154
|
+
extend Telnyx::Internal::Type::Enum
|
|
155
|
+
|
|
156
|
+
QWEN3_TTS = :Qwen3TTS
|
|
157
|
+
ULTRA = :Ultra
|
|
158
|
+
SPEECH_2_8_TURBO = :"speech-2.8-turbo"
|
|
159
|
+
|
|
160
|
+
# @!method self.values
|
|
161
|
+
# @return [Array<Symbol>]
|
|
162
|
+
end
|
|
163
|
+
|
|
133
164
|
# Voice synthesis provider used for this clone.
|
|
134
165
|
#
|
|
135
166
|
# @see Telnyx::Models::VoiceCloneData#provider
|
|
@@ -154,6 +185,22 @@ module Telnyx
|
|
|
154
185
|
# @!method self.values
|
|
155
186
|
# @return [Array<Symbol>]
|
|
156
187
|
end
|
|
188
|
+
|
|
189
|
+
# Clone status. pending for Ultra clones while on-prem import is in progress,
|
|
190
|
+
# active once ready, failed if verification timed out, expired if not kept alive.
|
|
191
|
+
#
|
|
192
|
+
# @see Telnyx::Models::VoiceCloneData#status
|
|
193
|
+
module Status
|
|
194
|
+
extend Telnyx::Internal::Type::Enum
|
|
195
|
+
|
|
196
|
+
ACTIVE = :active
|
|
197
|
+
PENDING = :pending
|
|
198
|
+
FAILED = :failed
|
|
199
|
+
EXPIRED = :expired
|
|
200
|
+
|
|
201
|
+
# @!method self.values
|
|
202
|
+
# @return [Array<Symbol>]
|
|
203
|
+
end
|
|
157
204
|
end
|
|
158
205
|
end
|
|
159
206
|
end
|
|
@@ -71,7 +71,7 @@ module Telnyx
|
|
|
71
71
|
#
|
|
72
72
|
# @param name [String] Body param
|
|
73
73
|
#
|
|
74
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
74
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq] Body param
|
|
75
75
|
#
|
|
76
76
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings] Body param
|
|
77
77
|
#
|
|
@@ -58,7 +58,7 @@ module Telnyx
|
|
|
58
58
|
#
|
|
59
59
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
|
|
60
60
|
#
|
|
61
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
61
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
|
|
62
62
|
#
|
|
63
63
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
64
64
|
#
|
|
@@ -147,7 +147,7 @@ module Telnyx
|
|
|
147
147
|
#
|
|
148
148
|
# @param name [String]
|
|
149
149
|
#
|
|
150
|
-
# @param observability_settings [Telnyx::Models::AI::
|
|
150
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
|
|
151
151
|
#
|
|
152
152
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
|
|
153
153
|
#
|
|
@@ -1613,7 +1613,7 @@ module Telnyx
|
|
|
1613
1613
|
# - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium`
|
|
1614
1614
|
# was requested and a beep was detected
|
|
1615
1615
|
#
|
|
1616
|
-
# @overload transfer(call_control_id, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: 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, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
1616
|
+
# @overload transfer(call_control_id, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: 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, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
1617
1617
|
#
|
|
1618
1618
|
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
1619
1619
|
#
|
|
@@ -1647,6 +1647,8 @@ module Telnyx
|
|
|
1647
1647
|
#
|
|
1648
1648
|
# @param preferred_codecs [String] The list of comma-separated codecs in order of preference to be used during the
|
|
1649
1649
|
#
|
|
1650
|
+
# @param privacy [Symbol, Telnyx::Models::Calls::ActionTransferParams::Privacy] Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
1651
|
+
#
|
|
1650
1652
|
# @param record [Symbol, Telnyx::Models::Calls::ActionTransferParams::Record] Start recording automatically after an event. Disabled by default.
|
|
1651
1653
|
#
|
|
1652
1654
|
# @param record_channels [Symbol, Telnyx::Models::Calls::ActionTransferParams::RecordChannels] Defines which channel should be recorded ('single' or 'dual') when `record` is s
|
|
@@ -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, 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, 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
|
#
|
|
@@ -77,6 +77,8 @@ module Telnyx
|
|
|
77
77
|
#
|
|
78
78
|
# @param prevent_double_bridge [Boolean] Prevents bridging and hangs up the call if the target is already bridged. Disabl
|
|
79
79
|
#
|
|
80
|
+
# @param privacy [Symbol, Telnyx::Models::CallDialParams::Privacy] Indicates the privacy level to be used for the call. When set to `id`, caller ID
|
|
81
|
+
#
|
|
80
82
|
# @param record [Symbol, Telnyx::Models::CallDialParams::Record] Start recording automatically after an event. Disabled by default.
|
|
81
83
|
#
|
|
82
84
|
# @param record_channels [Symbol, Telnyx::Models::CallDialParams::RecordChannels] Defines which channel should be recorded ('single' or 'dual') when `record` is s
|
|
@@ -7,44 +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
|
-
#
|
|
26
|
-
# @overload create(enterprise_id, phone_numbers:, request_options: {})
|
|
27
|
-
#
|
|
28
|
-
# @param enterprise_id [String] Unique identifier of the enterprise (UUID)
|
|
29
|
-
#
|
|
30
|
-
# @param phone_numbers [Array<String>] List of phone numbers to associate for reputation monitoring (max 100)
|
|
31
|
-
#
|
|
32
|
-
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
33
|
-
#
|
|
34
|
-
# @return [Telnyx::Models::Enterprises::Reputation::NumberCreateResponse]
|
|
35
|
-
#
|
|
36
|
-
# @see Telnyx::Models::Enterprises::Reputation::NumberCreateParams
|
|
37
|
-
def create(enterprise_id, params)
|
|
38
|
-
parsed, options = Telnyx::Enterprises::Reputation::NumberCreateParams.dump_request(params)
|
|
39
|
-
@client.request(
|
|
40
|
-
method: :post,
|
|
41
|
-
path: ["enterprises/%1$s/reputation/numbers", enterprise_id],
|
|
42
|
-
body: parsed,
|
|
43
|
-
model: Telnyx::Models::Enterprises::Reputation::NumberCreateResponse,
|
|
44
|
-
options: options
|
|
45
|
-
)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
10
|
# Some parameter documentations has been truncated, see
|
|
49
11
|
# {Telnyx::Models::Enterprises::Reputation::NumberRetrieveParams} for more
|
|
50
12
|
# details.
|
|
@@ -131,12 +93,50 @@ module Telnyx
|
|
|
131
93
|
)
|
|
132
94
|
end
|
|
133
95
|
|
|
96
|
+
# Associate one or more phone numbers with an enterprise for Number Reputation
|
|
97
|
+
# monitoring.
|
|
98
|
+
#
|
|
99
|
+
# **Validations:**
|
|
100
|
+
#
|
|
101
|
+
# - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
102
|
+
# - Phone numbers must be in-service and belong to your account (verified via
|
|
103
|
+
# Warehouse)
|
|
104
|
+
# - Phone numbers must be US local numbers
|
|
105
|
+
# - Phone numbers cannot already be associated with any enterprise
|
|
106
|
+
#
|
|
107
|
+
# **Note:** This operation is atomic — if any number fails validation, the entire
|
|
108
|
+
# request fails.
|
|
109
|
+
#
|
|
110
|
+
# **Maximum:** 100 phone numbers per request.
|
|
111
|
+
#
|
|
112
|
+
# @overload associate(enterprise_id, phone_numbers:, request_options: {})
|
|
113
|
+
#
|
|
114
|
+
# @param enterprise_id [String] Unique identifier of the enterprise (UUID)
|
|
115
|
+
#
|
|
116
|
+
# @param phone_numbers [Array<String>] List of phone numbers to associate for reputation monitoring (max 100)
|
|
117
|
+
#
|
|
118
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
119
|
+
#
|
|
120
|
+
# @return [Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse]
|
|
121
|
+
#
|
|
122
|
+
# @see Telnyx::Models::Enterprises::Reputation::NumberAssociateParams
|
|
123
|
+
def associate(enterprise_id, params)
|
|
124
|
+
parsed, options = Telnyx::Enterprises::Reputation::NumberAssociateParams.dump_request(params)
|
|
125
|
+
@client.request(
|
|
126
|
+
method: :post,
|
|
127
|
+
path: ["enterprises/%1$s/reputation/numbers", enterprise_id],
|
|
128
|
+
body: parsed,
|
|
129
|
+
model: Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse,
|
|
130
|
+
options: options
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
134
|
# Remove a phone number from Number Reputation monitoring for an enterprise.
|
|
135
135
|
#
|
|
136
136
|
# The number will no longer be tracked and reputation data will no longer be
|
|
137
137
|
# refreshed.
|
|
138
138
|
#
|
|
139
|
-
# @overload
|
|
139
|
+
# @overload disassociate(phone_number, enterprise_id:, request_options: {})
|
|
140
140
|
#
|
|
141
141
|
# @param phone_number [String] Phone number in E.164 format
|
|
142
142
|
#
|
|
@@ -146,9 +146,9 @@ module Telnyx
|
|
|
146
146
|
#
|
|
147
147
|
# @return [nil]
|
|
148
148
|
#
|
|
149
|
-
# @see Telnyx::Models::Enterprises::Reputation::
|
|
150
|
-
def
|
|
151
|
-
parsed, options = Telnyx::Enterprises::Reputation::
|
|
149
|
+
# @see Telnyx::Models::Enterprises::Reputation::NumberDisassociateParams
|
|
150
|
+
def disassociate(phone_number, params)
|
|
151
|
+
parsed, options = Telnyx::Enterprises::Reputation::NumberDisassociateParams.dump_request(params)
|
|
152
152
|
enterprise_id =
|
|
153
153
|
parsed.delete(:enterprise_id) do
|
|
154
154
|
raise ArgumentError.new("missing required path argument #{_1}")
|