telnyx 5.68.2 → 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 +59 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +7 -0
- data/lib/telnyx/internal/util.rb +21 -5
- data/lib/telnyx/models/ai/assistant_create_params.rb +8 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
- data/lib/telnyx/models/ai/assistant_update_params.rb +8 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +8 -1
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +8 -1
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
- 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/pronunciation_dict_create_params.rb +141 -0
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
- data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
- data/lib/telnyx/models/verification.rb +1 -0
- data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
- data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
- data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
- data/lib/telnyx/models/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/models/whatsapp_message_content.rb +196 -1
- data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
- data/lib/telnyx/models.rb +15 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/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/pronunciation_dicts.rb +156 -0
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
- data/lib/telnyx/resources/texml.rb +106 -0
- data/lib/telnyx/resources/verifications.rb +28 -0
- data/lib/telnyx/resources/verify_profiles.rb +5 -2
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -8
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/internal/util.rbi +8 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +13 -0
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +11 -0
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -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/pronunciation_dict_create_params.rbi +246 -0
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
- data/rbi/telnyx/models/verification.rbi +1 -0
- data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
- data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
- data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
- data/rbi/telnyx/models/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/models/whatsapp_message_content.rbi +492 -0
- data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
- data/rbi/telnyx/models.rbi +19 -10
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
- 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/pronunciation_dicts.rbi +131 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
- data/rbi/telnyx/resources/texml.rbi +164 -0
- data/rbi/telnyx/resources/verifications.rbi +23 -0
- data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/internal/util.rbs +4 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -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/pronunciation_dict_create_params.rbs +97 -0
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
- data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
- data/sig/telnyx/models/verification.rbs +2 -1
- data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
- data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
- data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
- data/sig/telnyx/models/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/models/whatsapp_message_content.rbs +205 -0
- data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
- data/sig/telnyx/models.rbs +14 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/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/pronunciation_dicts.rbs +33 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
- data/sig/telnyx/resources/texml.rbs +44 -0
- data/sig/telnyx/resources/verifications.rbs +8 -0
- data/sig/telnyx/resources/verify_profiles.rbs +2 -0
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
- metadata +71 -26
|
@@ -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
|
|
@@ -49,6 +49,19 @@ module Telnyx
|
|
|
49
49
|
# @return [Telnyx::Models::WhatsappMedia, nil]
|
|
50
50
|
optional :sticker, -> { Telnyx::WhatsappMedia }
|
|
51
51
|
|
|
52
|
+
# @!attribute template
|
|
53
|
+
# Template message object. Provide either template_id or name + language to
|
|
54
|
+
# identify the template.
|
|
55
|
+
#
|
|
56
|
+
# @return [Telnyx::Models::WhatsappMessageContent::Template, nil]
|
|
57
|
+
optional :template, -> { Telnyx::WhatsappMessageContent::Template }
|
|
58
|
+
|
|
59
|
+
# @!attribute text
|
|
60
|
+
# Text message content. Can only be sent within a 24-hour customer service window.
|
|
61
|
+
#
|
|
62
|
+
# @return [Telnyx::Models::WhatsappMessageContent::Text, nil]
|
|
63
|
+
optional :text, -> { Telnyx::WhatsappMessageContent::Text }
|
|
64
|
+
|
|
52
65
|
# @!attribute type
|
|
53
66
|
#
|
|
54
67
|
# @return [Symbol, Telnyx::Models::WhatsappMessageContent::Type, nil]
|
|
@@ -59,7 +72,10 @@ module Telnyx
|
|
|
59
72
|
# @return [Telnyx::Models::WhatsappMedia, nil]
|
|
60
73
|
optional :video, -> { Telnyx::WhatsappMedia }
|
|
61
74
|
|
|
62
|
-
# @!method initialize(audio: nil, biz_opaque_callback_data: nil, contacts: nil, document: nil, image: nil, interactive: nil, location: nil, reaction: nil, sticker: nil, type: nil, video: nil)
|
|
75
|
+
# @!method initialize(audio: nil, biz_opaque_callback_data: nil, contacts: nil, document: nil, image: nil, interactive: nil, location: nil, reaction: nil, sticker: nil, template: nil, text: nil, type: nil, video: nil)
|
|
76
|
+
# Some parameter documentations has been truncated, see
|
|
77
|
+
# {Telnyx::Models::WhatsappMessageContent} for more details.
|
|
78
|
+
#
|
|
63
79
|
# @param audio [Telnyx::Models::WhatsappMedia]
|
|
64
80
|
#
|
|
65
81
|
# @param biz_opaque_callback_data [String] custom data to return with status update
|
|
@@ -78,10 +94,188 @@ module Telnyx
|
|
|
78
94
|
#
|
|
79
95
|
# @param sticker [Telnyx::Models::WhatsappMedia]
|
|
80
96
|
#
|
|
97
|
+
# @param template [Telnyx::Models::WhatsappMessageContent::Template] Template message object. Provide either template_id or name + language to identi
|
|
98
|
+
#
|
|
99
|
+
# @param text [Telnyx::Models::WhatsappMessageContent::Text] Text message content. Can only be sent within a 24-hour customer service window.
|
|
100
|
+
#
|
|
81
101
|
# @param type [Symbol, Telnyx::Models::WhatsappMessageContent::Type]
|
|
82
102
|
#
|
|
83
103
|
# @param video [Telnyx::Models::WhatsappMedia]
|
|
84
104
|
|
|
105
|
+
# @see Telnyx::Models::WhatsappMessageContent#template
|
|
106
|
+
class Template < Telnyx::Internal::Type::BaseModel
|
|
107
|
+
# @!attribute components
|
|
108
|
+
# Template parameter values for header, body, and button components.
|
|
109
|
+
#
|
|
110
|
+
# @return [Array<Telnyx::Models::WhatsappMessageContent::Template::Component>, nil]
|
|
111
|
+
optional :components,
|
|
112
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageContent::Template::Component] }
|
|
113
|
+
|
|
114
|
+
# @!attribute language
|
|
115
|
+
# Template language. Required unless template_id is provided.
|
|
116
|
+
#
|
|
117
|
+
# @return [Telnyx::Models::WhatsappMessageContent::Template::Language, nil]
|
|
118
|
+
optional :language, -> { Telnyx::WhatsappMessageContent::Template::Language }
|
|
119
|
+
|
|
120
|
+
# @!attribute name
|
|
121
|
+
# Template name as registered with Meta. Required unless template_id is provided.
|
|
122
|
+
#
|
|
123
|
+
# @return [String, nil]
|
|
124
|
+
optional :name, String
|
|
125
|
+
|
|
126
|
+
# @!attribute template_id
|
|
127
|
+
# Telnyx template ID (the id field from template list/get responses). When
|
|
128
|
+
# provided, name and language are resolved automatically.
|
|
129
|
+
#
|
|
130
|
+
# @return [String, nil]
|
|
131
|
+
optional :template_id, String
|
|
132
|
+
|
|
133
|
+
# @!method initialize(components: nil, language: nil, name: nil, template_id: nil)
|
|
134
|
+
# Some parameter documentations has been truncated, see
|
|
135
|
+
# {Telnyx::Models::WhatsappMessageContent::Template} for more details.
|
|
136
|
+
#
|
|
137
|
+
# Template message object. Provide either template_id or name + language to
|
|
138
|
+
# identify the template.
|
|
139
|
+
#
|
|
140
|
+
# @param components [Array<Telnyx::Models::WhatsappMessageContent::Template::Component>] Template parameter values for header, body, and button components.
|
|
141
|
+
#
|
|
142
|
+
# @param language [Telnyx::Models::WhatsappMessageContent::Template::Language] Template language. Required unless template_id is provided.
|
|
143
|
+
#
|
|
144
|
+
# @param name [String] Template name as registered with Meta. Required unless template_id is provided.
|
|
145
|
+
#
|
|
146
|
+
# @param template_id [String] Telnyx template ID (the id field from template list/get responses). When provide
|
|
147
|
+
|
|
148
|
+
class Component < Telnyx::Internal::Type::BaseModel
|
|
149
|
+
# @!attribute index
|
|
150
|
+
# Button index (required for button components)
|
|
151
|
+
#
|
|
152
|
+
# @return [Integer, nil]
|
|
153
|
+
optional :index, Integer
|
|
154
|
+
|
|
155
|
+
# @!attribute parameters
|
|
156
|
+
#
|
|
157
|
+
# @return [Array<Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter>, nil]
|
|
158
|
+
optional :parameters,
|
|
159
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageContent::Template::Component::Parameter] }
|
|
160
|
+
|
|
161
|
+
# @!attribute sub_type
|
|
162
|
+
#
|
|
163
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::SubType, nil]
|
|
164
|
+
optional :sub_type, enum: -> { Telnyx::WhatsappMessageContent::Template::Component::SubType }
|
|
165
|
+
|
|
166
|
+
# @!attribute type
|
|
167
|
+
#
|
|
168
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::Type, nil]
|
|
169
|
+
optional :type, enum: -> { Telnyx::WhatsappMessageContent::Template::Component::Type }
|
|
170
|
+
|
|
171
|
+
# @!method initialize(index: nil, parameters: nil, sub_type: nil, type: nil)
|
|
172
|
+
# @param index [Integer] Button index (required for button components)
|
|
173
|
+
#
|
|
174
|
+
# @param parameters [Array<Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter>]
|
|
175
|
+
#
|
|
176
|
+
# @param sub_type [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::SubType]
|
|
177
|
+
#
|
|
178
|
+
# @param type [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::Type]
|
|
179
|
+
|
|
180
|
+
class Parameter < Telnyx::Internal::Type::BaseModel
|
|
181
|
+
# @!attribute text
|
|
182
|
+
#
|
|
183
|
+
# @return [String, nil]
|
|
184
|
+
optional :text, String
|
|
185
|
+
|
|
186
|
+
# @!attribute type
|
|
187
|
+
#
|
|
188
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::Type, nil]
|
|
189
|
+
optional :type, enum: -> { Telnyx::WhatsappMessageContent::Template::Component::Parameter::Type }
|
|
190
|
+
|
|
191
|
+
# @!method initialize(text: nil, type: nil)
|
|
192
|
+
# @param text [String]
|
|
193
|
+
# @param type [Symbol, Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter::Type]
|
|
194
|
+
|
|
195
|
+
# @see Telnyx::Models::WhatsappMessageContent::Template::Component::Parameter#type
|
|
196
|
+
module Type
|
|
197
|
+
extend Telnyx::Internal::Type::Enum
|
|
198
|
+
|
|
199
|
+
TEXT = :text
|
|
200
|
+
IMAGE = :image
|
|
201
|
+
VIDEO = :video
|
|
202
|
+
DOCUMENT = :document
|
|
203
|
+
CURRENCY = :currency
|
|
204
|
+
DATE_TIME = :date_time
|
|
205
|
+
|
|
206
|
+
# @!method self.values
|
|
207
|
+
# @return [Array<Symbol>]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# @see Telnyx::Models::WhatsappMessageContent::Template::Component#sub_type
|
|
212
|
+
module SubType
|
|
213
|
+
extend Telnyx::Internal::Type::Enum
|
|
214
|
+
|
|
215
|
+
QUICK_REPLY = :quick_reply
|
|
216
|
+
URL = :url
|
|
217
|
+
|
|
218
|
+
# @!method self.values
|
|
219
|
+
# @return [Array<Symbol>]
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# @see Telnyx::Models::WhatsappMessageContent::Template::Component#type
|
|
223
|
+
module Type
|
|
224
|
+
extend Telnyx::Internal::Type::Enum
|
|
225
|
+
|
|
226
|
+
HEADER = :header
|
|
227
|
+
BODY = :body
|
|
228
|
+
BUTTON = :button
|
|
229
|
+
|
|
230
|
+
# @!method self.values
|
|
231
|
+
# @return [Array<Symbol>]
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# @see Telnyx::Models::WhatsappMessageContent::Template#language
|
|
236
|
+
class Language < Telnyx::Internal::Type::BaseModel
|
|
237
|
+
# @!attribute code
|
|
238
|
+
# Language code (e.g. en_US)
|
|
239
|
+
#
|
|
240
|
+
# @return [String]
|
|
241
|
+
required :code, String
|
|
242
|
+
|
|
243
|
+
# @!attribute policy
|
|
244
|
+
#
|
|
245
|
+
# @return [String, nil]
|
|
246
|
+
optional :policy, String
|
|
247
|
+
|
|
248
|
+
# @!method initialize(code:, policy: nil)
|
|
249
|
+
# Template language. Required unless template_id is provided.
|
|
250
|
+
#
|
|
251
|
+
# @param code [String] Language code (e.g. en_US)
|
|
252
|
+
#
|
|
253
|
+
# @param policy [String]
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# @see Telnyx::Models::WhatsappMessageContent#text
|
|
258
|
+
class Text < Telnyx::Internal::Type::BaseModel
|
|
259
|
+
# @!attribute body
|
|
260
|
+
# The text message body.
|
|
261
|
+
#
|
|
262
|
+
# @return [String]
|
|
263
|
+
required :body, String
|
|
264
|
+
|
|
265
|
+
# @!attribute preview_url
|
|
266
|
+
# Whether to show a URL preview in the message.
|
|
267
|
+
#
|
|
268
|
+
# @return [Boolean, nil]
|
|
269
|
+
optional :preview_url, Telnyx::Internal::Type::Boolean
|
|
270
|
+
|
|
271
|
+
# @!method initialize(body:, preview_url: nil)
|
|
272
|
+
# Text message content. Can only be sent within a 24-hour customer service window.
|
|
273
|
+
#
|
|
274
|
+
# @param body [String] The text message body.
|
|
275
|
+
#
|
|
276
|
+
# @param preview_url [Boolean] Whether to show a URL preview in the message.
|
|
277
|
+
end
|
|
278
|
+
|
|
85
279
|
# @see Telnyx::Models::WhatsappMessageContent#type
|
|
86
280
|
module Type
|
|
87
281
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -96,6 +290,7 @@ module Telnyx
|
|
|
96
290
|
TEMPLATE = :template
|
|
97
291
|
REACTION = :reaction
|
|
98
292
|
CONTACTS = :contacts
|
|
293
|
+
TEXT = :text
|
|
99
294
|
|
|
100
295
|
# @!method self.values
|
|
101
296
|
# @return [Array<Symbol>]
|
|
@@ -7,44 +7,31 @@ module Telnyx
|
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute name
|
|
11
16
|
# The name of the Wireless Blocklist.
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :name, String
|
|
15
20
|
|
|
16
|
-
# @!attribute type
|
|
17
|
-
# The type of wireless blocklist.
|
|
18
|
-
#
|
|
19
|
-
# @return [Symbol, Telnyx::Models::WirelessBlocklistUpdateParams::Type, nil]
|
|
20
|
-
optional :type, enum: -> { Telnyx::WirelessBlocklistUpdateParams::Type }
|
|
21
|
-
|
|
22
21
|
# @!attribute values
|
|
23
22
|
# Values to block. The values here depend on the `type` of Wireless Blocklist.
|
|
24
23
|
#
|
|
25
24
|
# @return [Array<String>, nil]
|
|
26
25
|
optional :values, Telnyx::Internal::Type::ArrayOf[String]
|
|
27
26
|
|
|
28
|
-
# @!method initialize(name: nil,
|
|
29
|
-
# @param
|
|
27
|
+
# @!method initialize(id:, name: nil, values: nil, request_options: {})
|
|
28
|
+
# @param id [String]
|
|
30
29
|
#
|
|
31
|
-
# @param
|
|
30
|
+
# @param name [String] The name of the Wireless Blocklist.
|
|
32
31
|
#
|
|
33
32
|
# @param values [Array<String>] Values to block. The values here depend on the `type` of Wireless Blocklist.
|
|
34
33
|
#
|
|
35
34
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
-
|
|
37
|
-
# The type of wireless blocklist.
|
|
38
|
-
module Type
|
|
39
|
-
extend Telnyx::Internal::Type::Enum
|
|
40
|
-
|
|
41
|
-
COUNTRY = :country
|
|
42
|
-
MCC = :mcc
|
|
43
|
-
PLMN = :plmn
|
|
44
|
-
|
|
45
|
-
# @!method self.values
|
|
46
|
-
# @return [Array<Symbol>]
|
|
47
|
-
end
|
|
48
35
|
end
|
|
49
36
|
end
|
|
50
37
|
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -1239,6 +1239,16 @@ module Telnyx
|
|
|
1239
1239
|
|
|
1240
1240
|
PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
|
|
1241
1241
|
|
|
1242
|
+
PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
|
|
1243
|
+
|
|
1244
|
+
PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
|
|
1245
|
+
|
|
1246
|
+
PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
|
|
1247
|
+
|
|
1248
|
+
PronunciationDictRetrieveParams = Telnyx::Models::PronunciationDictRetrieveParams
|
|
1249
|
+
|
|
1250
|
+
PronunciationDictUpdateParams = Telnyx::Models::PronunciationDictUpdateParams
|
|
1251
|
+
|
|
1242
1252
|
PublicInternetGatewayCreateParams = Telnyx::Models::PublicInternetGatewayCreateParams
|
|
1243
1253
|
|
|
1244
1254
|
PublicInternetGatewayDeleteParams = Telnyx::Models::PublicInternetGatewayDeleteParams
|
|
@@ -1554,6 +1564,8 @@ module Telnyx
|
|
|
1554
1564
|
|
|
1555
1565
|
TexmlApplicationUpdateParams = Telnyx::Models::TexmlApplicationUpdateParams
|
|
1556
1566
|
|
|
1567
|
+
TexmlInitiateAICallParams = Telnyx::Models::TexmlInitiateAICallParams
|
|
1568
|
+
|
|
1557
1569
|
TexmlSecretsParams = Telnyx::Models::TexmlSecretsParams
|
|
1558
1570
|
|
|
1559
1571
|
TextToSpeechGenerateParams = Telnyx::Models::TextToSpeechGenerateParams
|
|
@@ -1622,6 +1634,9 @@ module Telnyx
|
|
|
1622
1634
|
|
|
1623
1635
|
VerificationTriggerSMSParams = Telnyx::Models::VerificationTriggerSMSParams
|
|
1624
1636
|
|
|
1637
|
+
VerificationTriggerWhatsappVerificationParams =
|
|
1638
|
+
Telnyx::Models::VerificationTriggerWhatsappVerificationParams
|
|
1639
|
+
|
|
1625
1640
|
VerifiedNumber = Telnyx::Models::VerifiedNumber
|
|
1626
1641
|
|
|
1627
1642
|
VerifiedNumberCreateParams = Telnyx::Models::VerifiedNumberCreateParams
|
|
@@ -43,7 +43,7 @@ module Telnyx
|
|
|
43
43
|
# Updates the configuration of a specific assistant version. Can not update main
|
|
44
44
|
# version
|
|
45
45
|
#
|
|
46
|
-
# @overload update(version_id, assistant_id:, description: nil, dynamic_variables: nil, dynamic_variables_webhook_url: nil, enabled_features: nil, greeting: nil, insight_settings: nil, instructions: nil, llm_api_key_ref: nil, messaging_settings: nil, model: nil, name: nil, privacy_settings: nil, telephony_settings: nil, tool_ids: nil, tools: nil, transcription: nil, voice_settings: nil, widget_settings: nil, request_options: {})
|
|
46
|
+
# @overload update(version_id, assistant_id:, description: nil, dynamic_variables: nil, dynamic_variables_webhook_url: nil, enabled_features: nil, greeting: nil, insight_settings: nil, instructions: nil, llm_api_key_ref: nil, messaging_settings: nil, model: nil, name: nil, observability_settings: nil, privacy_settings: nil, telephony_settings: nil, tool_ids: nil, tools: nil, transcription: nil, voice_settings: nil, widget_settings: nil, request_options: {})
|
|
47
47
|
#
|
|
48
48
|
# @param version_id [String] Path param
|
|
49
49
|
#
|
|
@@ -71,6 +71,8 @@ module Telnyx
|
|
|
71
71
|
#
|
|
72
72
|
# @param name [String] Body param
|
|
73
73
|
#
|
|
74
|
+
# @param observability_settings [Telnyx::Models::AI::ObservabilityReq] Body param
|
|
75
|
+
#
|
|
74
76
|
# @param privacy_settings [Telnyx::Models::AI::PrivacySettings] Body param
|
|
75
77
|
#
|
|
76
78
|
# @param telephony_settings [Telnyx::Models::AI::TelephonySettings] Body param
|