telnyx 5.69.0 → 5.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/util.rb +3 -1
- data/lib/telnyx/models/ai/assistant.rb +6 -149
- data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
- data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
- data/lib/telnyx/models/ai/observability.rb +46 -0
- data/lib/telnyx/models/ai/observability_req.rb +46 -0
- data/lib/telnyx/models/book_appointment_tool.rb +31 -0
- data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
- data/lib/telnyx/models/call_assistant_request.rb +176 -0
- data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
- data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
- data/lib/telnyx/models/call_dial_params.rb +34 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
- data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
- data/lib/telnyx/models/check_availability_tool.rb +31 -0
- data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
- data/lib/telnyx/models/enterprise_create_params.rb +1 -1
- data/lib/telnyx/models/enterprise_public.rb +1 -1
- data/lib/telnyx/models/enterprise_update_params.rb +1 -1
- data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
- data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
- data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
- data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
- data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +371 -71
- data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
- data/lib/telnyx/models/voice_clone_data.rb +51 -4
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +7 -3
- data/lib/telnyx/resources/calls.rb +5 -1
- data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
- data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
- data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
- data/lib/telnyx/resources/voice_clones.rb +7 -27
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +22 -9
- data/rbi/telnyx/models/ai/assistant.rbi +15 -329
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
- data/rbi/telnyx/models/ai/observability.rbi +90 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
- data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
- data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
- data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
- data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
- data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
- data/rbi/telnyx/models/call_dial_params.rbi +52 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
- data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
- data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
- data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
- data/rbi/telnyx/models/enterprise_public.rbi +1 -1
- data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
- data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
- data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
- data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
- data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
- data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -134
- data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
- data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
- data/rbi/telnyx/resources/calls/actions.rbi +14 -3
- data/rbi/telnyx/resources/calls.rbi +10 -0
- data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
- data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
- data/rbi/telnyx/resources/voice_clones.rbi +17 -41
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
- data/sig/telnyx/models/ai/assistant.rbs +3 -142
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
- data/sig/telnyx/models/ai/observability.rbs +58 -0
- data/sig/telnyx/models/ai/observability_req.rbs +58 -0
- data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
- data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
- data/sig/telnyx/models/call_assistant_request.rbs +132 -0
- data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
- data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
- data/sig/telnyx/models/call_dial_params.rbs +29 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
- data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
- data/sig/telnyx/models/check_availability_tool.rbs +35 -0
- data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
- data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
- data/sig/telnyx/models/enterprise_public.rbs +1 -1
- data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
- data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
- data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
- data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
- data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
- data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -56
- data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
- data/sig/telnyx/models/voice_clone_data.rbs +43 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +3 -1
- data/sig/telnyx/resources/calls.rbs +2 -0
- data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
- data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
- data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
- data/sig/telnyx/resources/voice_clones.rbs +2 -12
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
- metadata +68 -29
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
|
@@ -4,13 +4,13 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
# @see Telnyx::Resources::Enterprises::Reputation::Numbers#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::Enterprises::Reputation::Numbers#associate
|
|
8
|
+
class NumberAssociateResponse < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute data
|
|
10
10
|
#
|
|
11
|
-
# @return [Array<Telnyx::Models::Enterprises::Reputation::
|
|
11
|
+
# @return [Array<Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data>, nil]
|
|
12
12
|
optional :data,
|
|
13
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Enterprises::Reputation::
|
|
13
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data] }
|
|
14
14
|
|
|
15
15
|
# @!attribute meta
|
|
16
16
|
#
|
|
@@ -18,7 +18,7 @@ module Telnyx
|
|
|
18
18
|
optional :meta, -> { Telnyx::MetaInfo }
|
|
19
19
|
|
|
20
20
|
# @!method initialize(data: nil, meta: nil)
|
|
21
|
-
# @param data [Array<Telnyx::Models::Enterprises::Reputation::
|
|
21
|
+
# @param data [Array<Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data>]
|
|
22
22
|
# @param meta [Telnyx::Models::MetaInfo]
|
|
23
23
|
|
|
24
24
|
class Data < Telnyx::Internal::Type::BaseModel
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
6
|
module Reputation
|
|
7
|
-
# @see Telnyx::Resources::Enterprises::Reputation::Numbers#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::Enterprises::Reputation::Numbers#disassociate
|
|
8
|
+
class NumberDisassociateParams < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Telnyx::Internal::Type::RequestParameters
|
|
11
11
|
|
data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
# @see Telnyx::Resources::Enterprises::Reputation#
|
|
7
|
-
class
|
|
6
|
+
# @see Telnyx::Resources::Enterprises::Reputation#disable
|
|
7
|
+
class ReputationDisableParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
# @see Telnyx::Resources::Enterprises::Reputation#
|
|
7
|
-
class
|
|
6
|
+
# @see Telnyx::Resources::Enterprises::Reputation#enable
|
|
7
|
+
class ReputationEnableParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -23,18 +23,18 @@ module Telnyx
|
|
|
23
23
|
# @!attribute check_frequency
|
|
24
24
|
# Frequency for automatically refreshing reputation data
|
|
25
25
|
#
|
|
26
|
-
# @return [Symbol, Telnyx::Models::Enterprises::
|
|
27
|
-
optional :check_frequency, enum: -> { Telnyx::Enterprises::
|
|
26
|
+
# @return [Symbol, Telnyx::Models::Enterprises::ReputationEnableParams::CheckFrequency, nil]
|
|
27
|
+
optional :check_frequency, enum: -> { Telnyx::Enterprises::ReputationEnableParams::CheckFrequency }
|
|
28
28
|
|
|
29
29
|
# @!method initialize(enterprise_id:, loa_document_id:, check_frequency: nil, request_options: {})
|
|
30
30
|
# Some parameter documentations has been truncated, see
|
|
31
|
-
# {Telnyx::Models::Enterprises::
|
|
31
|
+
# {Telnyx::Models::Enterprises::ReputationEnableParams} for more details.
|
|
32
32
|
#
|
|
33
33
|
# @param enterprise_id [String]
|
|
34
34
|
#
|
|
35
35
|
# @param loa_document_id [String] ID of the signed Letter of Authorization (LOA) document uploaded to the document
|
|
36
36
|
#
|
|
37
|
-
# @param check_frequency [Symbol, Telnyx::Models::Enterprises::
|
|
37
|
+
# @param check_frequency [Symbol, Telnyx::Models::Enterprises::ReputationEnableParams::CheckFrequency] Frequency for automatically refreshing reputation data
|
|
38
38
|
#
|
|
39
39
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
40
40
|
|
data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
# @see Telnyx::Resources::Enterprises::Reputation#
|
|
7
|
-
class
|
|
6
|
+
# @see Telnyx::Resources::Enterprises::Reputation#enable
|
|
7
|
+
class ReputationEnableResponse < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute data
|
|
9
9
|
#
|
|
10
10
|
# @return [Telnyx::Models::Enterprises::EnterpriseReputationPublic, nil]
|
data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
# @see Telnyx::Resources::Enterprises::Reputation#
|
|
7
|
-
class
|
|
6
|
+
# @see Telnyx::Resources::Enterprises::Reputation#retrieve
|
|
7
|
+
class ReputationRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
10
|
|
data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
module Enterprises
|
|
6
|
-
# @see Telnyx::Resources::Enterprises::Reputation#
|
|
7
|
-
class
|
|
6
|
+
# @see Telnyx::Resources::Enterprises::Reputation#retrieve
|
|
7
|
+
class ReputationRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute data
|
|
9
9
|
#
|
|
10
10
|
# @return [Telnyx::Models::Enterprises::EnterpriseReputationPublic, nil]
|
|
@@ -84,7 +84,7 @@ module Telnyx
|
|
|
84
84
|
# Filter porting orders by status(es). Originally: filter[status],
|
|
85
85
|
# filter[status][in][]
|
|
86
86
|
#
|
|
87
|
-
# @return [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
87
|
+
# @return [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderMultipleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusList>, nil]
|
|
88
88
|
optional :status, union: -> { Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status }
|
|
89
89
|
|
|
90
90
|
# @!attribute support_key
|
|
@@ -111,7 +111,7 @@ module Telnyx
|
|
|
111
111
|
#
|
|
112
112
|
# @param porting_order_id [Array<String>] Filter results by a list of porting order ids
|
|
113
113
|
#
|
|
114
|
-
# @param status [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
114
|
+
# @param status [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderMultipleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusList>] Filter porting orders by status(es). Originally: filter[status], filter[status]
|
|
115
115
|
#
|
|
116
116
|
# @param support_key [String, Array<String>] Filter results by support key(s). Originally: filter[support_key][eq], filter[su
|
|
117
117
|
|
|
@@ -161,13 +161,13 @@ module Telnyx
|
|
|
161
161
|
extend Telnyx::Internal::Type::Union
|
|
162
162
|
|
|
163
163
|
# Filter by single status
|
|
164
|
-
variant enum: -> { Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
164
|
+
variant enum: -> { Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderMultipleStatus }
|
|
165
165
|
|
|
166
166
|
# Filter by multiple statuses (in operation)
|
|
167
|
-
variant -> { Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
167
|
+
variant -> { Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusListArray }
|
|
168
168
|
|
|
169
169
|
# Filter by single status
|
|
170
|
-
module
|
|
170
|
+
module PortingOrderMultipleStatus
|
|
171
171
|
extend Telnyx::Internal::Type::Enum
|
|
172
172
|
|
|
173
173
|
DRAFT = :draft
|
|
@@ -183,7 +183,7 @@ module Telnyx
|
|
|
183
183
|
# @return [Array<Symbol>]
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
module
|
|
186
|
+
module PortingOrderStatusList
|
|
187
187
|
extend Telnyx::Internal::Type::Enum
|
|
188
188
|
|
|
189
189
|
DRAFT = :draft
|
|
@@ -200,12 +200,12 @@ module Telnyx
|
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
# @!method self.variants
|
|
203
|
-
# @return [Array(Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
203
|
+
# @return [Array(Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderMultipleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusList>)]
|
|
204
204
|
|
|
205
205
|
# @type [Telnyx::Internal::Type::Converter]
|
|
206
|
-
|
|
206
|
+
PortingOrderStatusListArray =
|
|
207
207
|
Telnyx::Internal::Type::ArrayOf[enum: -> {
|
|
208
|
-
Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::
|
|
208
|
+
Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusList
|
|
209
209
|
}]
|
|
210
210
|
end
|
|
211
211
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class PronunciationDictAliasItem < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute alias_
|
|
7
|
+
# The replacement text that will be spoken instead.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :alias_, String, api_name: :alias
|
|
11
|
+
|
|
12
|
+
# @!attribute text
|
|
13
|
+
# The text to match in the input. Case-insensitive matching is used during
|
|
14
|
+
# synthesis.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :text, String
|
|
18
|
+
|
|
19
|
+
# @!attribute type
|
|
20
|
+
# The item type.
|
|
21
|
+
#
|
|
22
|
+
# @return [Symbol, Telnyx::Models::PronunciationDictAliasItem::Type]
|
|
23
|
+
required :type, enum: -> { Telnyx::PronunciationDictAliasItem::Type }
|
|
24
|
+
|
|
25
|
+
# @!method initialize(alias_:, text:, type:)
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Telnyx::Models::PronunciationDictAliasItem} for more details.
|
|
28
|
+
#
|
|
29
|
+
# An alias pronunciation item. When the `text` value is found in input, it is
|
|
30
|
+
# replaced with the `alias` before speech synthesis.
|
|
31
|
+
#
|
|
32
|
+
# @param alias_ [String] The replacement text that will be spoken instead.
|
|
33
|
+
#
|
|
34
|
+
# @param text [String] The text to match in the input. Case-insensitive matching is used during synthes
|
|
35
|
+
#
|
|
36
|
+
# @param type [Symbol, Telnyx::Models::PronunciationDictAliasItem::Type] The item type.
|
|
37
|
+
|
|
38
|
+
# The item type.
|
|
39
|
+
#
|
|
40
|
+
# @see Telnyx::Models::PronunciationDictAliasItem#type
|
|
41
|
+
module Type
|
|
42
|
+
extend Telnyx::Internal::Type::Enum
|
|
43
|
+
|
|
44
|
+
ALIAS = :alias
|
|
45
|
+
|
|
46
|
+
# @!method self.values
|
|
47
|
+
# @return [Array<Symbol>]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -11,7 +11,7 @@ module Telnyx
|
|
|
11
11
|
# List of pronunciation items (alias or phoneme type). At least one item is
|
|
12
12
|
# required.
|
|
13
13
|
#
|
|
14
|
-
# @return [Array<Telnyx::Models::
|
|
14
|
+
# @return [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>]
|
|
15
15
|
required :items,
|
|
16
16
|
-> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::PronunciationDictCreateParams::Item] }
|
|
17
17
|
|
|
@@ -25,7 +25,7 @@ module Telnyx
|
|
|
25
25
|
# Some parameter documentations has been truncated, see
|
|
26
26
|
# {Telnyx::Models::PronunciationDictCreateParams} for more details.
|
|
27
27
|
#
|
|
28
|
-
# @param items [Array<Telnyx::Models::
|
|
28
|
+
# @param items [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>] List of pronunciation items (alias or phoneme type). At least one item is requir
|
|
29
29
|
#
|
|
30
30
|
# @param name [String] Human-readable name. Must be unique within the organization.
|
|
31
31
|
#
|
|
@@ -40,101 +40,13 @@ module Telnyx
|
|
|
40
40
|
discriminator :type
|
|
41
41
|
|
|
42
42
|
# An alias pronunciation item. When the `text` value is found in input, it is replaced with the `alias` before speech synthesis.
|
|
43
|
-
variant :alias, -> { Telnyx::
|
|
43
|
+
variant :alias, -> { Telnyx::PronunciationDictAliasItem }
|
|
44
44
|
|
|
45
45
|
# A phoneme pronunciation item. When the `text` value is found in input, it is pronounced using the specified IPA phoneme notation.
|
|
46
|
-
variant :phoneme, -> { Telnyx::
|
|
47
|
-
|
|
48
|
-
class Alias < Telnyx::Internal::Type::BaseModel
|
|
49
|
-
# @!attribute alias_
|
|
50
|
-
# The replacement text that will be spoken instead.
|
|
51
|
-
#
|
|
52
|
-
# @return [String]
|
|
53
|
-
required :alias_, String, api_name: :alias
|
|
54
|
-
|
|
55
|
-
# @!attribute text
|
|
56
|
-
# The text to match in the input. Case-insensitive matching is used during
|
|
57
|
-
# synthesis.
|
|
58
|
-
#
|
|
59
|
-
# @return [String]
|
|
60
|
-
required :text, String
|
|
61
|
-
|
|
62
|
-
# @!attribute type
|
|
63
|
-
# The item type.
|
|
64
|
-
#
|
|
65
|
-
# @return [Symbol, :alias]
|
|
66
|
-
required :type, const: :alias
|
|
67
|
-
|
|
68
|
-
# @!method initialize(alias_:, text:, type: :alias)
|
|
69
|
-
# Some parameter documentations has been truncated, see
|
|
70
|
-
# {Telnyx::Models::PronunciationDictCreateParams::Item::Alias} for more details.
|
|
71
|
-
#
|
|
72
|
-
# An alias pronunciation item. When the `text` value is found in input, it is
|
|
73
|
-
# replaced with the `alias` before speech synthesis.
|
|
74
|
-
#
|
|
75
|
-
# @param alias_ [String] The replacement text that will be spoken instead.
|
|
76
|
-
#
|
|
77
|
-
# @param text [String] The text to match in the input. Case-insensitive matching is used during synthes
|
|
78
|
-
#
|
|
79
|
-
# @param type [Symbol, :alias] The item type.
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
class Phoneme < Telnyx::Internal::Type::BaseModel
|
|
83
|
-
# @!attribute alphabet
|
|
84
|
-
# The phonetic alphabet used for the phoneme notation.
|
|
85
|
-
#
|
|
86
|
-
# @return [Symbol, Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::Alphabet]
|
|
87
|
-
required :alphabet, enum: -> { Telnyx::PronunciationDictCreateParams::Item::Phoneme::Alphabet }
|
|
88
|
-
|
|
89
|
-
# @!attribute phoneme
|
|
90
|
-
# The phoneme notation representing the desired pronunciation.
|
|
91
|
-
#
|
|
92
|
-
# @return [String]
|
|
93
|
-
required :phoneme, String
|
|
94
|
-
|
|
95
|
-
# @!attribute text
|
|
96
|
-
# The text to match in the input. Case-insensitive matching is used during
|
|
97
|
-
# synthesis.
|
|
98
|
-
#
|
|
99
|
-
# @return [String]
|
|
100
|
-
required :text, String
|
|
101
|
-
|
|
102
|
-
# @!attribute type
|
|
103
|
-
# The item type.
|
|
104
|
-
#
|
|
105
|
-
# @return [Symbol, :phoneme]
|
|
106
|
-
required :type, const: :phoneme
|
|
107
|
-
|
|
108
|
-
# @!method initialize(alphabet:, phoneme:, text:, type: :phoneme)
|
|
109
|
-
# Some parameter documentations has been truncated, see
|
|
110
|
-
# {Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme} for more details.
|
|
111
|
-
#
|
|
112
|
-
# A phoneme pronunciation item. When the `text` value is found in input, it is
|
|
113
|
-
# pronounced using the specified IPA phoneme notation.
|
|
114
|
-
#
|
|
115
|
-
# @param alphabet [Symbol, Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::Alphabet] The phonetic alphabet used for the phoneme notation.
|
|
116
|
-
#
|
|
117
|
-
# @param phoneme [String] The phoneme notation representing the desired pronunciation.
|
|
118
|
-
#
|
|
119
|
-
# @param text [String] The text to match in the input. Case-insensitive matching is used during synthes
|
|
120
|
-
#
|
|
121
|
-
# @param type [Symbol, :phoneme] The item type.
|
|
122
|
-
|
|
123
|
-
# The phonetic alphabet used for the phoneme notation.
|
|
124
|
-
#
|
|
125
|
-
# @see Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme#alphabet
|
|
126
|
-
module Alphabet
|
|
127
|
-
extend Telnyx::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
IPA = :ipa
|
|
130
|
-
|
|
131
|
-
# @!method self.values
|
|
132
|
-
# @return [Array<Symbol>]
|
|
133
|
-
end
|
|
134
|
-
end
|
|
46
|
+
variant :phoneme, -> { Telnyx::PronunciationDictPhonemeItem }
|
|
135
47
|
|
|
136
48
|
# @!method self.variants
|
|
137
|
-
# @return [Array(Telnyx::Models::
|
|
49
|
+
# @return [Array(Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem)]
|
|
138
50
|
end
|
|
139
51
|
end
|
|
140
52
|
end
|
|
@@ -7,201 +7,13 @@ module Telnyx
|
|
|
7
7
|
# @!attribute data
|
|
8
8
|
# A pronunciation dictionary record.
|
|
9
9
|
#
|
|
10
|
-
# @return [Telnyx::Models::
|
|
11
|
-
optional :data, -> { Telnyx::
|
|
10
|
+
# @return [Telnyx::Models::PronunciationDictData, nil]
|
|
11
|
+
optional :data, -> { Telnyx::PronunciationDictData }
|
|
12
12
|
|
|
13
13
|
# @!method initialize(data: nil)
|
|
14
14
|
# Response containing a single pronunciation dictionary.
|
|
15
15
|
#
|
|
16
|
-
# @param data [Telnyx::Models::
|
|
17
|
-
|
|
18
|
-
# @see Telnyx::Models::PronunciationDictCreateResponse#data
|
|
19
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
20
|
-
# @!attribute id
|
|
21
|
-
# Unique identifier for the pronunciation dictionary.
|
|
22
|
-
#
|
|
23
|
-
# @return [String, nil]
|
|
24
|
-
optional :id, String
|
|
25
|
-
|
|
26
|
-
# @!attribute created_at
|
|
27
|
-
# ISO 8601 timestamp with millisecond precision.
|
|
28
|
-
#
|
|
29
|
-
# @return [Time, nil]
|
|
30
|
-
optional :created_at, Time
|
|
31
|
-
|
|
32
|
-
# @!attribute items
|
|
33
|
-
# List of pronunciation items (alias or phoneme type).
|
|
34
|
-
#
|
|
35
|
-
# @return [Array<Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias, Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme>, nil]
|
|
36
|
-
optional :items,
|
|
37
|
-
-> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::Models::PronunciationDictCreateResponse::Data::Item] }
|
|
38
|
-
|
|
39
|
-
# @!attribute name
|
|
40
|
-
# Human-readable name for the dictionary. Must be unique within the organization.
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :name, String
|
|
44
|
-
|
|
45
|
-
# @!attribute record_type
|
|
46
|
-
# Identifies the resource type.
|
|
47
|
-
#
|
|
48
|
-
# @return [Symbol, Telnyx::Models::PronunciationDictCreateResponse::Data::RecordType, nil]
|
|
49
|
-
optional :record_type, enum: -> { Telnyx::Models::PronunciationDictCreateResponse::Data::RecordType }
|
|
50
|
-
|
|
51
|
-
# @!attribute updated_at
|
|
52
|
-
# ISO 8601 timestamp with millisecond precision.
|
|
53
|
-
#
|
|
54
|
-
# @return [Time, nil]
|
|
55
|
-
optional :updated_at, Time
|
|
56
|
-
|
|
57
|
-
# @!attribute version
|
|
58
|
-
# Auto-incrementing version number. Increases by 1 on each update. Used for
|
|
59
|
-
# optimistic concurrency control and cache invalidation.
|
|
60
|
-
#
|
|
61
|
-
# @return [Integer, nil]
|
|
62
|
-
optional :version, Integer
|
|
63
|
-
|
|
64
|
-
# @!method initialize(id: nil, created_at: nil, items: nil, name: nil, record_type: nil, updated_at: nil, version: nil)
|
|
65
|
-
# Some parameter documentations has been truncated, see
|
|
66
|
-
# {Telnyx::Models::PronunciationDictCreateResponse::Data} for more details.
|
|
67
|
-
#
|
|
68
|
-
# A pronunciation dictionary record.
|
|
69
|
-
#
|
|
70
|
-
# @param id [String] Unique identifier for the pronunciation dictionary.
|
|
71
|
-
#
|
|
72
|
-
# @param created_at [Time] ISO 8601 timestamp with millisecond precision.
|
|
73
|
-
#
|
|
74
|
-
# @param items [Array<Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias, Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme>] List of pronunciation items (alias or phoneme type).
|
|
75
|
-
#
|
|
76
|
-
# @param name [String] Human-readable name for the dictionary. Must be unique within the organization.
|
|
77
|
-
#
|
|
78
|
-
# @param record_type [Symbol, Telnyx::Models::PronunciationDictCreateResponse::Data::RecordType] Identifies the resource type.
|
|
79
|
-
#
|
|
80
|
-
# @param updated_at [Time] ISO 8601 timestamp with millisecond precision.
|
|
81
|
-
#
|
|
82
|
-
# @param version [Integer] Auto-incrementing version number. Increases by 1 on each update. Used for optimi
|
|
83
|
-
|
|
84
|
-
# A single pronunciation dictionary item. Use type 'alias' to replace matched text
|
|
85
|
-
# with a spoken alias, or type 'phoneme' to specify exact pronunciation using IPA
|
|
86
|
-
# notation.
|
|
87
|
-
module Item
|
|
88
|
-
extend Telnyx::Internal::Type::Union
|
|
89
|
-
|
|
90
|
-
discriminator :type
|
|
91
|
-
|
|
92
|
-
# An alias pronunciation item. When the `text` value is found in input, it is replaced with the `alias` before speech synthesis.
|
|
93
|
-
variant :alias, -> { Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias }
|
|
94
|
-
|
|
95
|
-
# A phoneme pronunciation item. When the `text` value is found in input, it is pronounced using the specified IPA phoneme notation.
|
|
96
|
-
variant :phoneme, -> { Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme }
|
|
97
|
-
|
|
98
|
-
class Alias < Telnyx::Internal::Type::BaseModel
|
|
99
|
-
# @!attribute alias_
|
|
100
|
-
# The replacement text that will be spoken instead.
|
|
101
|
-
#
|
|
102
|
-
# @return [String]
|
|
103
|
-
required :alias_, String, api_name: :alias
|
|
104
|
-
|
|
105
|
-
# @!attribute text
|
|
106
|
-
# The text to match in the input. Case-insensitive matching is used during
|
|
107
|
-
# synthesis.
|
|
108
|
-
#
|
|
109
|
-
# @return [String]
|
|
110
|
-
required :text, String
|
|
111
|
-
|
|
112
|
-
# @!attribute type
|
|
113
|
-
# The item type.
|
|
114
|
-
#
|
|
115
|
-
# @return [Symbol, :alias]
|
|
116
|
-
required :type, const: :alias
|
|
117
|
-
|
|
118
|
-
# @!method initialize(alias_:, text:, type: :alias)
|
|
119
|
-
# Some parameter documentations has been truncated, see
|
|
120
|
-
# {Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias} for more
|
|
121
|
-
# details.
|
|
122
|
-
#
|
|
123
|
-
# An alias pronunciation item. When the `text` value is found in input, it is
|
|
124
|
-
# replaced with the `alias` before speech synthesis.
|
|
125
|
-
#
|
|
126
|
-
# @param alias_ [String] The replacement text that will be spoken instead.
|
|
127
|
-
#
|
|
128
|
-
# @param text [String] The text to match in the input. Case-insensitive matching is used during synthes
|
|
129
|
-
#
|
|
130
|
-
# @param type [Symbol, :alias] The item type.
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
class Phoneme < Telnyx::Internal::Type::BaseModel
|
|
134
|
-
# @!attribute alphabet
|
|
135
|
-
# The phonetic alphabet used for the phoneme notation.
|
|
136
|
-
#
|
|
137
|
-
# @return [Symbol, Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::Alphabet]
|
|
138
|
-
required :alphabet,
|
|
139
|
-
enum: -> { Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::Alphabet }
|
|
140
|
-
|
|
141
|
-
# @!attribute phoneme
|
|
142
|
-
# The phoneme notation representing the desired pronunciation.
|
|
143
|
-
#
|
|
144
|
-
# @return [String]
|
|
145
|
-
required :phoneme, String
|
|
146
|
-
|
|
147
|
-
# @!attribute text
|
|
148
|
-
# The text to match in the input. Case-insensitive matching is used during
|
|
149
|
-
# synthesis.
|
|
150
|
-
#
|
|
151
|
-
# @return [String]
|
|
152
|
-
required :text, String
|
|
153
|
-
|
|
154
|
-
# @!attribute type
|
|
155
|
-
# The item type.
|
|
156
|
-
#
|
|
157
|
-
# @return [Symbol, :phoneme]
|
|
158
|
-
required :type, const: :phoneme
|
|
159
|
-
|
|
160
|
-
# @!method initialize(alphabet:, phoneme:, text:, type: :phoneme)
|
|
161
|
-
# Some parameter documentations has been truncated, see
|
|
162
|
-
# {Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme} for more
|
|
163
|
-
# details.
|
|
164
|
-
#
|
|
165
|
-
# A phoneme pronunciation item. When the `text` value is found in input, it is
|
|
166
|
-
# pronounced using the specified IPA phoneme notation.
|
|
167
|
-
#
|
|
168
|
-
# @param alphabet [Symbol, Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::Alphabet] The phonetic alphabet used for the phoneme notation.
|
|
169
|
-
#
|
|
170
|
-
# @param phoneme [String] The phoneme notation representing the desired pronunciation.
|
|
171
|
-
#
|
|
172
|
-
# @param text [String] The text to match in the input. Case-insensitive matching is used during synthes
|
|
173
|
-
#
|
|
174
|
-
# @param type [Symbol, :phoneme] The item type.
|
|
175
|
-
|
|
176
|
-
# The phonetic alphabet used for the phoneme notation.
|
|
177
|
-
#
|
|
178
|
-
# @see Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme#alphabet
|
|
179
|
-
module Alphabet
|
|
180
|
-
extend Telnyx::Internal::Type::Enum
|
|
181
|
-
|
|
182
|
-
IPA = :ipa
|
|
183
|
-
|
|
184
|
-
# @!method self.values
|
|
185
|
-
# @return [Array<Symbol>]
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# @!method self.variants
|
|
190
|
-
# @return [Array(Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias, Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme)]
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
# Identifies the resource type.
|
|
194
|
-
#
|
|
195
|
-
# @see Telnyx::Models::PronunciationDictCreateResponse::Data#record_type
|
|
196
|
-
module RecordType
|
|
197
|
-
extend Telnyx::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
PRONUNCIATION_DICT = :pronunciation_dict
|
|
200
|
-
|
|
201
|
-
# @!method self.values
|
|
202
|
-
# @return [Array<Symbol>]
|
|
203
|
-
end
|
|
204
|
-
end
|
|
16
|
+
# @param data [Telnyx::Models::PronunciationDictData] A pronunciation dictionary record.
|
|
205
17
|
end
|
|
206
18
|
end
|
|
207
19
|
end
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::PronunciationDicts#list
|
|
6
|
+
class PronunciationDictData < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Unique identifier for the pronunciation dictionary.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
# ISO 8601 timestamp with millisecond precision.
|
|
15
|
+
#
|
|
16
|
+
# @return [Time, nil]
|
|
17
|
+
optional :created_at, Time
|
|
18
|
+
|
|
19
|
+
# @!attribute items
|
|
20
|
+
# List of pronunciation items (alias or phoneme type).
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>, nil]
|
|
23
|
+
optional :items, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::PronunciationDictData::Item] }
|
|
24
|
+
|
|
25
|
+
# @!attribute name
|
|
26
|
+
# Human-readable name for the dictionary. Must be unique within the organization.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :name, String
|
|
30
|
+
|
|
31
|
+
# @!attribute record_type
|
|
32
|
+
# Identifies the resource type.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Telnyx::Models::PronunciationDictData::RecordType, nil]
|
|
35
|
+
optional :record_type, enum: -> { Telnyx::PronunciationDictData::RecordType }
|
|
36
|
+
|
|
37
|
+
# @!attribute updated_at
|
|
38
|
+
# ISO 8601 timestamp with millisecond precision.
|
|
39
|
+
#
|
|
40
|
+
# @return [Time, nil]
|
|
41
|
+
optional :updated_at, Time
|
|
42
|
+
|
|
43
|
+
# @!attribute version
|
|
44
|
+
# Auto-incrementing version number. Increases by 1 on each update. Used for
|
|
45
|
+
# optimistic concurrency control and cache invalidation.
|
|
46
|
+
#
|
|
47
|
+
# @return [Integer, nil]
|
|
48
|
+
optional :version, Integer
|
|
49
|
+
|
|
50
|
+
# @!method initialize(id: nil, created_at: nil, items: nil, name: nil, record_type: nil, updated_at: nil, version: nil)
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Telnyx::Models::PronunciationDictData} for more details.
|
|
53
|
+
#
|
|
54
|
+
# A pronunciation dictionary record.
|
|
55
|
+
#
|
|
56
|
+
# @param id [String] Unique identifier for the pronunciation dictionary.
|
|
57
|
+
#
|
|
58
|
+
# @param created_at [Time] ISO 8601 timestamp with millisecond precision.
|
|
59
|
+
#
|
|
60
|
+
# @param items [Array<Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem>] List of pronunciation items (alias or phoneme type).
|
|
61
|
+
#
|
|
62
|
+
# @param name [String] Human-readable name for the dictionary. Must be unique within the organization.
|
|
63
|
+
#
|
|
64
|
+
# @param record_type [Symbol, Telnyx::Models::PronunciationDictData::RecordType] Identifies the resource type.
|
|
65
|
+
#
|
|
66
|
+
# @param updated_at [Time] ISO 8601 timestamp with millisecond precision.
|
|
67
|
+
#
|
|
68
|
+
# @param version [Integer] Auto-incrementing version number. Increases by 1 on each update. Used for optimi
|
|
69
|
+
|
|
70
|
+
# A single pronunciation dictionary item. Use type 'alias' to replace matched text
|
|
71
|
+
# with a spoken alias, or type 'phoneme' to specify exact pronunciation using IPA
|
|
72
|
+
# notation.
|
|
73
|
+
module Item
|
|
74
|
+
extend Telnyx::Internal::Type::Union
|
|
75
|
+
|
|
76
|
+
discriminator :type
|
|
77
|
+
|
|
78
|
+
# An alias pronunciation item. When the `text` value is found in input, it is replaced with the `alias` before speech synthesis.
|
|
79
|
+
variant :alias, -> { Telnyx::PronunciationDictAliasItem }
|
|
80
|
+
|
|
81
|
+
# A phoneme pronunciation item. When the `text` value is found in input, it is pronounced using the specified IPA phoneme notation.
|
|
82
|
+
variant :phoneme, -> { Telnyx::PronunciationDictPhonemeItem }
|
|
83
|
+
|
|
84
|
+
# @!method self.variants
|
|
85
|
+
# @return [Array(Telnyx::Models::PronunciationDictAliasItem, Telnyx::Models::PronunciationDictPhonemeItem)]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Identifies the resource type.
|
|
89
|
+
#
|
|
90
|
+
# @see Telnyx::Models::PronunciationDictData#record_type
|
|
91
|
+
module RecordType
|
|
92
|
+
extend Telnyx::Internal::Type::Enum
|
|
93
|
+
|
|
94
|
+
PRONUNCIATION_DICT = :pronunciation_dict
|
|
95
|
+
|
|
96
|
+
# @!method self.values
|
|
97
|
+
# @return [Array<Symbol>]
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|