telnyx 5.60.0 → 5.62.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 +37 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +10 -5
- data/lib/telnyx/errors.rb +0 -10
- data/lib/telnyx/lib/webhook_verification.rb +172 -0
- data/lib/telnyx/models/ai/assistants/{tag_delete_params.rb → tag_add_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_delete_response.rb → tag_add_response.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_create_params.rb → tag_remove_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_create_response.rb → tag_remove_response.rb} +2 -2
- data/lib/telnyx/models/call_cost_webhook_event.rb +242 -0
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +135 -8
- data/lib/telnyx/models/text_to_speech_generate_params.rb +3 -3
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +3 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +3 -1
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +27 -6
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +23 -2
- data/lib/telnyx/models/voice_clone_create_params.rb +79 -0
- data/lib/telnyx/models/voice_clone_create_response.rb +19 -0
- data/lib/telnyx/models/voice_clone_data.rb +41 -1
- data/lib/telnyx/models/voice_clone_list_params.rb +22 -1
- data/lib/telnyx/models/voice_design_create_params.rb +24 -1
- data/lib/telnyx/models/voice_design_data.rb +45 -1
- data/lib/telnyx/models/voice_design_list_response.rb +32 -1
- data/lib/telnyx/models/{voice_design_update_params.rb → voice_design_rename_params.rb} +2 -2
- data/lib/telnyx/models/{voice_design_update_response.rb → voice_design_rename_response.rb} +42 -11
- data/lib/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rb → phone_number_initialize_verification_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp/template_create_params.rb +530 -0
- data/lib/telnyx/models/whatsapp/{message_template_create_response.rb → template_create_response.rb} +2 -2
- data/lib/telnyx/models/whatsapp/{message_template_list_params.rb → template_list_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp_message_template_delete_params.rb +20 -0
- data/lib/telnyx/models/whatsapp_message_template_retrieve_params.rb +20 -0
- data/lib/telnyx/models/whatsapp_message_template_retrieve_response.rb +16 -0
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +504 -0
- data/lib/telnyx/models/whatsapp_message_template_update_response.rb +16 -0
- data/lib/telnyx/models/whatsapp_template_data.rb +10 -3
- data/lib/telnyx/models/x402/{credit_account_create_payment_quote_params.rb → credit_account_create_quote_params.rb} +2 -2
- data/lib/telnyx/models/x402/{credit_account_create_payment_quote_response.rb → credit_account_create_quote_response.rb} +31 -32
- data/lib/telnyx/models/x402/{credit_account_settle_payment_params.rb → credit_account_settle_params.rb} +3 -3
- data/lib/telnyx/models/x402/{credit_account_settle_payment_response.rb → credit_account_settle_response.rb} +14 -15
- data/lib/telnyx/models.rb +12 -4
- data/lib/telnyx/resources/ai/assistants/tags.rb +28 -28
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/voice_clones.rb +38 -31
- data/lib/telnyx/resources/voice_designs.rb +27 -25
- data/lib/telnyx/resources/webhooks.rb +10 -183
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +5 -5
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile.rb +0 -4
- data/lib/telnyx/resources/whatsapp/templates.rb +91 -0
- data/lib/telnyx/resources/whatsapp.rb +3 -3
- data/lib/telnyx/resources/whatsapp_message_templates.rb +81 -0
- data/lib/telnyx/resources/x402/credit_account.rb +13 -13
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +25 -24
- data/rbi/telnyx/client.rbi +8 -4
- data/rbi/telnyx/models/ai/assistants/{tag_create_params.rbi → tag_add_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_delete_response.rbi → tag_add_response.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_delete_params.rbi → tag_remove_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_create_response.rbi → tag_remove_response.rbi} +2 -2
- data/rbi/telnyx/models/call_cost_webhook_event.rbi +485 -0
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +338 -12
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +2 -1
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +1 -0
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +1 -0
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +51 -0
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +67 -2
- data/rbi/telnyx/models/voice_clone_create_params.rbi +142 -0
- data/rbi/telnyx/models/voice_clone_create_response.rbi +36 -0
- data/rbi/telnyx/models/voice_clone_data.rbi +57 -0
- data/rbi/telnyx/models/voice_clone_list_params.rbi +62 -0
- data/rbi/telnyx/models/voice_design_create_params.rbi +60 -0
- data/rbi/telnyx/models/voice_design_data.rbi +59 -0
- data/rbi/telnyx/models/voice_design_list_response.rbi +73 -0
- data/rbi/telnyx/models/{voice_design_update_params.rbi → voice_design_rename_params.rbi} +2 -2
- data/rbi/telnyx/models/{voice_design_update_response.rbi → voice_design_rename_response.rbi} +90 -14
- data/rbi/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rbi → phone_number_initialize_verification_params.rbi} +10 -10
- data/rbi/telnyx/models/whatsapp/template_create_params.rbi +1177 -0
- data/rbi/telnyx/models/whatsapp/{message_template_create_response.rbi → template_create_response.rbi} +2 -2
- data/rbi/telnyx/models/whatsapp/{message_template_list_params.rbi → template_list_params.rbi} +11 -11
- data/rbi/telnyx/models/whatsapp_message_template_delete_params.rbi +38 -0
- data/rbi/telnyx/models/whatsapp_message_template_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/whatsapp_message_template_retrieve_response.rbi +33 -0
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +1178 -0
- data/rbi/telnyx/models/whatsapp_message_template_update_response.rbi +33 -0
- data/rbi/telnyx/models/whatsapp_template_data.rbi +10 -2
- data/rbi/telnyx/models/x402/{credit_account_create_payment_quote_params.rbi → credit_account_create_quote_params.rbi} +2 -2
- data/rbi/telnyx/models/x402/{credit_account_create_payment_quote_response.rbi → credit_account_create_quote_response.rbi} +41 -42
- data/rbi/telnyx/models/x402/{credit_account_settle_payment_params.rbi → credit_account_settle_params.rbi} +2 -2
- data/rbi/telnyx/models/x402/{credit_account_settle_payment_response.rbi → credit_account_settle_response.rbi} +21 -26
- data/rbi/telnyx/models.rbi +29 -3
- data/rbi/telnyx/resources/ai/assistants/tags.rbi +13 -13
- data/rbi/telnyx/resources/calls/actions.rbi +4 -3
- data/rbi/telnyx/resources/voice_clones.rbi +36 -25
- data/rbi/telnyx/resources/voice_designs.rbi +21 -17
- data/rbi/telnyx/resources/webhooks.rbi +12 -2
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +2 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile.rbi +0 -5
- data/rbi/telnyx/resources/whatsapp/templates.rbi +85 -0
- data/rbi/telnyx/resources/whatsapp.rbi +2 -2
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +67 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +4 -6
- data/sig/telnyx/client.rbs +4 -2
- data/sig/telnyx/models/ai/assistants/{tag_delete_params.rbs → tag_add_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_delete_response.rbs → tag_add_response.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_create_params.rbs → tag_remove_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_create_response.rbs → tag_remove_response.rbs} +2 -2
- data/sig/telnyx/models/call_cost_webhook_event.rbs +235 -0
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +124 -4
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +1 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +1 -0
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +23 -1
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +22 -0
- data/sig/telnyx/models/voice_clone_create_params.rbs +75 -0
- data/sig/telnyx/models/voice_clone_create_response.rbs +15 -0
- data/sig/telnyx/models/voice_clone_data.rbs +34 -0
- data/sig/telnyx/models/voice_clone_list_params.rbs +22 -0
- data/sig/telnyx/models/voice_design_create_params.rbs +22 -0
- data/sig/telnyx/models/voice_design_data.rbs +30 -0
- data/sig/telnyx/models/voice_design_list_response.rbs +25 -0
- data/sig/telnyx/models/{voice_design_update_params.rbs → voice_design_rename_params.rbs} +2 -2
- data/sig/telnyx/models/voice_design_rename_response.rbs +104 -0
- data/sig/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rbs → phone_number_initialize_verification_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp/template_create_params.rbs +479 -0
- data/sig/telnyx/models/whatsapp/{message_template_update_response.rbs → template_create_response.rbs} +2 -3
- data/sig/telnyx/models/whatsapp/{message_template_list_params.rbs → template_list_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp_message_template_delete_params.rbs +20 -0
- data/sig/telnyx/models/whatsapp_message_template_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/whatsapp_message_template_retrieve_response.rbs +16 -0
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +473 -0
- data/sig/telnyx/models/whatsapp_message_template_update_response.rbs +16 -0
- data/sig/telnyx/models/x402/{credit_account_create_payment_quote_params.rbs → credit_account_create_quote_params.rbs} +2 -2
- data/sig/telnyx/models/x402/{credit_account_create_payment_quote_response.rbs → credit_account_create_quote_response.rbs} +46 -48
- data/sig/telnyx/models/x402/{credit_account_settle_payment_params.rbs → credit_account_settle_params.rbs} +2 -2
- data/sig/telnyx/models/x402/{credit_account_settle_payment_response.rbs → credit_account_settle_response.rbs} +22 -22
- data/sig/telnyx/models.rbs +12 -4
- data/sig/telnyx/resources/ai/assistants/tags.rbs +8 -8
- data/sig/telnyx/resources/voice_clones.rbs +11 -8
- data/sig/telnyx/resources/voice_designs.rbs +7 -6
- data/sig/telnyx/resources/webhooks.rbs +5 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +2 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile.rbs +0 -2
- data/sig/telnyx/resources/whatsapp/templates.rbs +28 -0
- data/sig/telnyx/resources/whatsapp.rbs +1 -1
- data/sig/telnyx/resources/whatsapp_message_templates.rbs +21 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +4 -4
- metadata +75 -65
- data/lib/telnyx/models/whatsapp/message_template_create_params.rb +0 -58
- data/lib/telnyx/models/whatsapp/message_template_delete_params.rb +0 -22
- data/lib/telnyx/models/whatsapp/message_template_retrieve_params.rb +0 -22
- data/lib/telnyx/models/whatsapp/message_template_retrieve_response.rb +0 -18
- data/lib/telnyx/models/whatsapp/message_template_update_params.rb +0 -46
- data/lib/telnyx/models/whatsapp/message_template_update_response.rb +0 -18
- data/lib/telnyx/resources/whatsapp/message_templates.rb +0 -149
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/models.rb +0 -20
- data/rbi/telnyx/models/whatsapp/message_template_create_params.rbi +0 -115
- data/rbi/telnyx/models/whatsapp/message_template_delete_params.rbi +0 -40
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_params.rbi +0 -40
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_response.rbi +0 -35
- data/rbi/telnyx/models/whatsapp/message_template_update_params.rbi +0 -111
- data/rbi/telnyx/models/whatsapp/message_template_update_response.rbi +0 -35
- data/rbi/telnyx/resources/whatsapp/message_templates.rbi +0 -116
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/models.rbi +0 -18
- data/sig/telnyx/models/voice_design_update_response.rbs +0 -79
- data/sig/telnyx/models/whatsapp/message_template_create_params.rbs +0 -60
- data/sig/telnyx/models/whatsapp/message_template_create_response.rbs +0 -20
- data/sig/telnyx/models/whatsapp/message_template_delete_params.rbs +0 -22
- data/sig/telnyx/models/whatsapp/message_template_retrieve_params.rbs +0 -22
- data/sig/telnyx/models/whatsapp/message_template_retrieve_response.rbs +0 -20
- data/sig/telnyx/models/whatsapp/message_template_update_params.rbs +0 -58
- data/sig/telnyx/resources/whatsapp/message_templates.rbs +0 -42
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/models.rbs +0 -13
|
@@ -27,6 +27,26 @@ module Telnyx
|
|
|
27
27
|
# @return [String, nil]
|
|
28
28
|
optional :prompt, String
|
|
29
29
|
|
|
30
|
+
# @!attribute provider
|
|
31
|
+
# Voice synthesis provider used for this design.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, Telnyx::Models::VoiceDesignData::Provider, nil]
|
|
34
|
+
optional :provider, enum: -> { Telnyx::VoiceDesignData::Provider }, nil?: true
|
|
35
|
+
|
|
36
|
+
# @!attribute provider_supported_models
|
|
37
|
+
# List of TTS model identifiers supported by this design's provider (e.g.
|
|
38
|
+
# `Qwen3TTS`, `speech-02-turbo`).
|
|
39
|
+
#
|
|
40
|
+
# @return [Array<String>, nil]
|
|
41
|
+
optional :provider_supported_models, Telnyx::Internal::Type::ArrayOf[String]
|
|
42
|
+
|
|
43
|
+
# @!attribute provider_voice_id
|
|
44
|
+
# Provider-specific voice identifier. For Telnyx designs this is the design
|
|
45
|
+
# version ID; for Minimax it is the Minimax-assigned voice ID.
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
optional :provider_voice_id, String, nil?: true
|
|
49
|
+
|
|
30
50
|
# @!attribute record_type
|
|
31
51
|
# Identifies the resource type.
|
|
32
52
|
#
|
|
@@ -63,7 +83,10 @@ module Telnyx
|
|
|
63
83
|
# @return [Integer, nil]
|
|
64
84
|
optional :voice_sample_size, Integer
|
|
65
85
|
|
|
66
|
-
# @!method initialize(id: nil, created_at: nil, name: nil, prompt: nil, record_type: nil, text: nil, updated_at: nil, version: nil, version_created_at: nil, voice_sample_size: nil)
|
|
86
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, prompt: nil, provider: nil, provider_supported_models: nil, provider_voice_id: nil, record_type: nil, text: nil, updated_at: nil, version: nil, version_created_at: nil, voice_sample_size: nil)
|
|
87
|
+
# Some parameter documentations has been truncated, see
|
|
88
|
+
# {Telnyx::Models::VoiceDesignData} for more details.
|
|
89
|
+
#
|
|
67
90
|
# A voice design object with full version detail.
|
|
68
91
|
#
|
|
69
92
|
# @param id [String] Unique identifier for the voice design.
|
|
@@ -74,6 +97,12 @@ module Telnyx
|
|
|
74
97
|
#
|
|
75
98
|
# @param prompt [String] Natural language prompt used to define the voice style for this version.
|
|
76
99
|
#
|
|
100
|
+
# @param provider [Symbol, Telnyx::Models::VoiceDesignData::Provider, nil] Voice synthesis provider used for this design.
|
|
101
|
+
#
|
|
102
|
+
# @param provider_supported_models [Array<String>] List of TTS model identifiers supported by this design's provider (e.g. `Qwen3TT
|
|
103
|
+
#
|
|
104
|
+
# @param provider_voice_id [String, nil] Provider-specific voice identifier. For Telnyx designs this is the design versio
|
|
105
|
+
#
|
|
77
106
|
# @param record_type [Symbol, Telnyx::Models::VoiceDesignData::RecordType] Identifies the resource type.
|
|
78
107
|
#
|
|
79
108
|
# @param text [String] Sample text used to synthesize this version.
|
|
@@ -86,6 +115,21 @@ module Telnyx
|
|
|
86
115
|
#
|
|
87
116
|
# @param voice_sample_size [Integer] Size of the voice sample audio in bytes.
|
|
88
117
|
|
|
118
|
+
# Voice synthesis provider used for this design.
|
|
119
|
+
#
|
|
120
|
+
# @see Telnyx::Models::VoiceDesignData#provider
|
|
121
|
+
module Provider
|
|
122
|
+
extend Telnyx::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
TELNYX = :telnyx
|
|
125
|
+
TELNYX_2 = :Telnyx
|
|
126
|
+
MINIMAX = :minimax
|
|
127
|
+
MINIMAX_2 = :Minimax
|
|
128
|
+
|
|
129
|
+
# @!method self.values
|
|
130
|
+
# @return [Array<Symbol>]
|
|
131
|
+
end
|
|
132
|
+
|
|
89
133
|
# Identifies the resource type.
|
|
90
134
|
#
|
|
91
135
|
# @see Telnyx::Models::VoiceDesignData#record_type
|
|
@@ -22,6 +22,18 @@ module Telnyx
|
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
optional :name, String
|
|
24
24
|
|
|
25
|
+
# @!attribute provider
|
|
26
|
+
# Voice synthesis provider used for this design.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Telnyx::Models::VoiceDesignListResponse::Provider, nil]
|
|
29
|
+
optional :provider, enum: -> { Telnyx::Models::VoiceDesignListResponse::Provider }, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute provider_supported_models
|
|
32
|
+
# List of TTS model identifiers supported by this design's provider.
|
|
33
|
+
#
|
|
34
|
+
# @return [Array<String>, nil]
|
|
35
|
+
optional :provider_supported_models, Telnyx::Internal::Type::ArrayOf[String]
|
|
36
|
+
|
|
25
37
|
# @!attribute record_type
|
|
26
38
|
# Identifies the resource type.
|
|
27
39
|
#
|
|
@@ -34,7 +46,7 @@ module Telnyx
|
|
|
34
46
|
# @return [Time, nil]
|
|
35
47
|
optional :updated_at, Time
|
|
36
48
|
|
|
37
|
-
# @!method initialize(id: nil, created_at: nil, name: nil, record_type: nil, updated_at: nil)
|
|
49
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, provider: nil, provider_supported_models: nil, record_type: nil, updated_at: nil)
|
|
38
50
|
# A summarized voice design object (without version-specific fields).
|
|
39
51
|
#
|
|
40
52
|
# @param id [String] Unique identifier for the voice design.
|
|
@@ -43,10 +55,29 @@ module Telnyx
|
|
|
43
55
|
#
|
|
44
56
|
# @param name [String] Name of the voice design.
|
|
45
57
|
#
|
|
58
|
+
# @param provider [Symbol, Telnyx::Models::VoiceDesignListResponse::Provider, nil] Voice synthesis provider used for this design.
|
|
59
|
+
#
|
|
60
|
+
# @param provider_supported_models [Array<String>] List of TTS model identifiers supported by this design's provider.
|
|
61
|
+
#
|
|
46
62
|
# @param record_type [Symbol, Telnyx::Models::VoiceDesignListResponse::RecordType] Identifies the resource type.
|
|
47
63
|
#
|
|
48
64
|
# @param updated_at [Time] Timestamp when the voice design was last updated.
|
|
49
65
|
|
|
66
|
+
# Voice synthesis provider used for this design.
|
|
67
|
+
#
|
|
68
|
+
# @see Telnyx::Models::VoiceDesignListResponse#provider
|
|
69
|
+
module Provider
|
|
70
|
+
extend Telnyx::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
TELNYX = :telnyx
|
|
73
|
+
TELNYX_2 = :Telnyx
|
|
74
|
+
MINIMAX = :minimax
|
|
75
|
+
MINIMAX_2 = :Minimax
|
|
76
|
+
|
|
77
|
+
# @!method self.values
|
|
78
|
+
# @return [Array<Symbol>]
|
|
79
|
+
end
|
|
80
|
+
|
|
50
81
|
# Identifies the resource type.
|
|
51
82
|
#
|
|
52
83
|
# @see Telnyx::Models::VoiceDesignListResponse#record_type
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
# @see Telnyx::Resources::VoiceDesigns#
|
|
6
|
-
class
|
|
5
|
+
# @see Telnyx::Resources::VoiceDesigns#rename
|
|
6
|
+
class VoiceDesignRenameParams < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
# @see Telnyx::Resources::VoiceDesigns#
|
|
6
|
-
class
|
|
5
|
+
# @see Telnyx::Resources::VoiceDesigns#rename
|
|
6
|
+
class VoiceDesignRenameResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
# A summarized voice design object (without version-specific fields).
|
|
9
9
|
#
|
|
10
|
-
# @return [Telnyx::Models::
|
|
11
|
-
optional :data, -> { Telnyx::Models::
|
|
10
|
+
# @return [Telnyx::Models::VoiceDesignRenameResponse::Data, nil]
|
|
11
|
+
optional :data, -> { Telnyx::Models::VoiceDesignRenameResponse::Data }
|
|
12
12
|
|
|
13
13
|
# @!method initialize(data: nil)
|
|
14
14
|
# Response envelope for a voice design after a rename operation (no
|
|
15
15
|
# version-specific fields).
|
|
16
16
|
#
|
|
17
|
-
# @param data [Telnyx::Models::
|
|
17
|
+
# @param data [Telnyx::Models::VoiceDesignRenameResponse::Data] A summarized voice design object (without version-specific fields).
|
|
18
18
|
|
|
19
|
-
# @see Telnyx::Models::
|
|
19
|
+
# @see Telnyx::Models::VoiceDesignRenameResponse#data
|
|
20
20
|
class Data < Telnyx::Internal::Type::BaseModel
|
|
21
21
|
# @!attribute id
|
|
22
22
|
# Unique identifier for the voice design.
|
|
@@ -36,11 +36,23 @@ module Telnyx
|
|
|
36
36
|
# @return [String, nil]
|
|
37
37
|
optional :name, String
|
|
38
38
|
|
|
39
|
+
# @!attribute provider
|
|
40
|
+
# Voice synthesis provider used for this design.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, Telnyx::Models::VoiceDesignRenameResponse::Data::Provider, nil]
|
|
43
|
+
optional :provider, enum: -> { Telnyx::Models::VoiceDesignRenameResponse::Data::Provider }, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute provider_supported_models
|
|
46
|
+
# List of TTS model identifiers supported by this design's provider.
|
|
47
|
+
#
|
|
48
|
+
# @return [Array<String>, nil]
|
|
49
|
+
optional :provider_supported_models, Telnyx::Internal::Type::ArrayOf[String]
|
|
50
|
+
|
|
39
51
|
# @!attribute record_type
|
|
40
52
|
# Identifies the resource type.
|
|
41
53
|
#
|
|
42
|
-
# @return [Symbol, Telnyx::Models::
|
|
43
|
-
optional :record_type, enum: -> { Telnyx::Models::
|
|
54
|
+
# @return [Symbol, Telnyx::Models::VoiceDesignRenameResponse::Data::RecordType, nil]
|
|
55
|
+
optional :record_type, enum: -> { Telnyx::Models::VoiceDesignRenameResponse::Data::RecordType }
|
|
44
56
|
|
|
45
57
|
# @!attribute updated_at
|
|
46
58
|
# Timestamp when the voice design was last updated.
|
|
@@ -48,7 +60,7 @@ module Telnyx
|
|
|
48
60
|
# @return [Time, nil]
|
|
49
61
|
optional :updated_at, Time
|
|
50
62
|
|
|
51
|
-
# @!method initialize(id: nil, created_at: nil, name: nil, record_type: nil, updated_at: nil)
|
|
63
|
+
# @!method initialize(id: nil, created_at: nil, name: nil, provider: nil, provider_supported_models: nil, record_type: nil, updated_at: nil)
|
|
52
64
|
# A summarized voice design object (without version-specific fields).
|
|
53
65
|
#
|
|
54
66
|
# @param id [String] Unique identifier for the voice design.
|
|
@@ -57,13 +69,32 @@ module Telnyx
|
|
|
57
69
|
#
|
|
58
70
|
# @param name [String] Name of the voice design.
|
|
59
71
|
#
|
|
60
|
-
# @param
|
|
72
|
+
# @param provider [Symbol, Telnyx::Models::VoiceDesignRenameResponse::Data::Provider, nil] Voice synthesis provider used for this design.
|
|
73
|
+
#
|
|
74
|
+
# @param provider_supported_models [Array<String>] List of TTS model identifiers supported by this design's provider.
|
|
75
|
+
#
|
|
76
|
+
# @param record_type [Symbol, Telnyx::Models::VoiceDesignRenameResponse::Data::RecordType] Identifies the resource type.
|
|
61
77
|
#
|
|
62
78
|
# @param updated_at [Time] Timestamp when the voice design was last updated.
|
|
63
79
|
|
|
80
|
+
# Voice synthesis provider used for this design.
|
|
81
|
+
#
|
|
82
|
+
# @see Telnyx::Models::VoiceDesignRenameResponse::Data#provider
|
|
83
|
+
module Provider
|
|
84
|
+
extend Telnyx::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
TELNYX = :telnyx
|
|
87
|
+
TELNYX_2 = :Telnyx
|
|
88
|
+
MINIMAX = :minimax
|
|
89
|
+
MINIMAX_2 = :Minimax
|
|
90
|
+
|
|
91
|
+
# @!method self.values
|
|
92
|
+
# @return [Array<Symbol>]
|
|
93
|
+
end
|
|
94
|
+
|
|
64
95
|
# Identifies the resource type.
|
|
65
96
|
#
|
|
66
|
-
# @see Telnyx::Models::
|
|
97
|
+
# @see Telnyx::Models::VoiceDesignRenameResponse::Data#record_type
|
|
67
98
|
module RecordType
|
|
68
99
|
extend Telnyx::Internal::Type::Enum
|
|
69
100
|
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Whatsapp
|
|
6
6
|
module BusinessAccounts
|
|
7
|
-
# @see Telnyx::Resources::Whatsapp::BusinessAccounts::PhoneNumbers#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::Whatsapp::BusinessAccounts::PhoneNumbers#initialize_verification
|
|
8
|
+
class PhoneNumberInitializeVerificationParams < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Telnyx::Internal::Type::RequestParameters
|
|
11
11
|
|
|
@@ -31,16 +31,16 @@ module Telnyx
|
|
|
31
31
|
|
|
32
32
|
# @!attribute verification_method
|
|
33
33
|
#
|
|
34
|
-
# @return [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::
|
|
34
|
+
# @return [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberInitializeVerificationParams::VerificationMethod, nil]
|
|
35
35
|
optional :verification_method,
|
|
36
|
-
enum: -> { Telnyx::Whatsapp::BusinessAccounts::
|
|
36
|
+
enum: -> { Telnyx::Whatsapp::BusinessAccounts::PhoneNumberInitializeVerificationParams::VerificationMethod }
|
|
37
37
|
|
|
38
38
|
# @!method initialize(id:, display_name:, phone_number:, language: nil, verification_method: nil, request_options: {})
|
|
39
39
|
# @param id [String]
|
|
40
40
|
# @param display_name [String]
|
|
41
41
|
# @param phone_number [String]
|
|
42
42
|
# @param language [String]
|
|
43
|
-
# @param verification_method [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::
|
|
43
|
+
# @param verification_method [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberInitializeVerificationParams::VerificationMethod]
|
|
44
44
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
45
45
|
|
|
46
46
|
module VerificationMethod
|