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.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/util.rb +3 -1
  5. data/lib/telnyx/models/ai/assistant.rb +6 -149
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
  7. data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
  8. data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
  9. data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
  10. data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
  11. data/lib/telnyx/models/ai/observability.rb +46 -0
  12. data/lib/telnyx/models/ai/observability_req.rb +46 -0
  13. data/lib/telnyx/models/book_appointment_tool.rb +31 -0
  14. data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
  15. data/lib/telnyx/models/call_assistant_request.rb +176 -0
  16. data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
  17. data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
  18. data/lib/telnyx/models/call_dial_params.rb +34 -1
  19. data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
  20. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
  21. data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
  22. data/lib/telnyx/models/check_availability_tool.rb +31 -0
  23. data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
  24. data/lib/telnyx/models/enterprise_create_params.rb +1 -1
  25. data/lib/telnyx/models/enterprise_public.rb +1 -1
  26. data/lib/telnyx/models/enterprise_update_params.rb +1 -1
  27. data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
  28. data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
  29. data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
  30. data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
  31. data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
  32. data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
  33. data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
  34. data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
  35. data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
  36. data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
  37. data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
  38. data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
  39. data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
  40. data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
  41. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
  42. data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
  43. data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
  44. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
  45. data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
  46. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +371 -71
  47. data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
  48. data/lib/telnyx/models/voice_clone_data.rb +51 -4
  49. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
  50. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
  51. data/lib/telnyx/models.rb +20 -0
  52. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  53. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  54. data/lib/telnyx/resources/calls/actions.rb +7 -3
  55. data/lib/telnyx/resources/calls.rb +5 -1
  56. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
  57. data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
  58. data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
  59. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
  60. data/lib/telnyx/resources/voice_clones.rb +7 -27
  61. data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
  62. data/lib/telnyx/version.rb +1 -1
  63. data/lib/telnyx.rb +22 -9
  64. data/rbi/telnyx/models/ai/assistant.rbi +15 -329
  65. data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
  66. data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
  67. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
  68. data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
  69. data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
  70. data/rbi/telnyx/models/ai/observability.rbi +90 -0
  71. data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
  72. data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
  73. data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
  74. data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
  75. data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
  76. data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
  77. data/rbi/telnyx/models/call_dial_params.rbi +52 -0
  78. data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
  79. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
  80. data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
  81. data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
  82. data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
  83. data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
  84. data/rbi/telnyx/models/enterprise_public.rbi +1 -1
  85. data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
  86. data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
  87. data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
  88. data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
  89. data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
  90. data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
  91. data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
  92. data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
  93. data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
  94. data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
  95. data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
  96. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
  97. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
  98. data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
  99. data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
  100. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
  101. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
  102. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
  103. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
  104. data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
  105. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -134
  106. data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
  107. data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
  108. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
  109. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
  110. data/rbi/telnyx/models.rbi +20 -0
  111. data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
  112. data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
  113. data/rbi/telnyx/resources/calls/actions.rbi +14 -3
  114. data/rbi/telnyx/resources/calls.rbi +10 -0
  115. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
  116. data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
  117. data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
  118. data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
  119. data/rbi/telnyx/resources/voice_clones.rbi +17 -41
  120. data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
  121. data/sig/telnyx/models/ai/assistant.rbs +3 -142
  122. data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
  123. data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
  124. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
  125. data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
  126. data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
  127. data/sig/telnyx/models/ai/observability.rbs +58 -0
  128. data/sig/telnyx/models/ai/observability_req.rbs +58 -0
  129. data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
  130. data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
  131. data/sig/telnyx/models/call_assistant_request.rbs +132 -0
  132. data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
  133. data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
  134. data/sig/telnyx/models/call_dial_params.rbs +29 -0
  135. data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
  136. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
  137. data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
  138. data/sig/telnyx/models/check_availability_tool.rbs +35 -0
  139. data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
  140. data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
  141. data/sig/telnyx/models/enterprise_public.rbs +1 -1
  142. data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
  143. data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
  144. data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
  145. data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
  146. data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
  147. data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
  148. data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
  149. data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
  150. data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
  151. data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
  152. data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
  153. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
  154. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
  155. data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
  156. data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
  157. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
  158. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
  159. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
  160. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
  161. data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
  162. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -56
  163. data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
  164. data/sig/telnyx/models/voice_clone_data.rbs +43 -0
  165. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
  166. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
  167. data/sig/telnyx/models.rbs +20 -0
  168. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
  169. data/sig/telnyx/resources/ai/assistants.rbs +2 -2
  170. data/sig/telnyx/resources/calls/actions.rbs +3 -1
  171. data/sig/telnyx/resources/calls.rbs +2 -0
  172. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
  173. data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
  174. data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
  175. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
  176. data/sig/telnyx/resources/voice_clones.rbs +2 -12
  177. data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
  178. metadata +68 -29
  179. data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
  180. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
  181. 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#create
8
- class NumberCreateResponse < Telnyx::Internal::Type::BaseModel
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::NumberCreateResponse::Data>, nil]
11
+ # @return [Array<Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data>, nil]
12
12
  optional :data,
13
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data] }
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::NumberCreateResponse::Data>]
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#delete
8
- class NumberDeleteParams < Telnyx::Internal::Type::BaseModel
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
 
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
- # @see Telnyx::Resources::Enterprises::Reputation#list
7
- class ReputationListParams < Telnyx::Internal::Type::BaseModel
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
 
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
- # @see Telnyx::Resources::Enterprises::Reputation#create
7
- class ReputationCreateParams < Telnyx::Internal::Type::BaseModel
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::ReputationCreateParams::CheckFrequency, nil]
27
- optional :check_frequency, enum: -> { Telnyx::Enterprises::ReputationCreateParams::CheckFrequency }
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::ReputationCreateParams} for more details.
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::ReputationCreateParams::CheckFrequency] Frequency for automatically refreshing reputation data
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
 
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
- # @see Telnyx::Resources::Enterprises::Reputation#create
7
- class ReputationCreateResponse < Telnyx::Internal::Type::BaseModel
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]
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
- # @see Telnyx::Resources::Enterprises::Reputation#delete_all
7
- class ReputationDeleteAllParams < Telnyx::Internal::Type::BaseModel
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
 
@@ -3,8 +3,8 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
- # @see Telnyx::Resources::Enterprises::Reputation#list
7
- class ReputationListResponse < Telnyx::Internal::Type::BaseModel
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::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>, nil]
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::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>] Filter porting orders by status(es). Originally: filter[status], 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::PortingOrderSingleStatus }
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::UnionMember1Array }
167
+ variant -> { Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderStatusListArray }
168
168
 
169
169
  # Filter by single status
170
- module PortingOrderSingleStatus
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 UnionMember1
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::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>)]
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
- UnionMember1Array =
206
+ PortingOrderStatusListArray =
207
207
  Telnyx::Internal::Type::ArrayOf[enum: -> {
208
- Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1
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::PronunciationDictCreateParams::Item::Alias, Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme>]
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::PronunciationDictCreateParams::Item::Alias, Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme>] List of pronunciation items (alias or phoneme type). At least one item is requir
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::PronunciationDictCreateParams::Item::Alias }
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::PronunciationDictCreateParams::Item::Phoneme }
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::PronunciationDictCreateParams::Item::Alias, Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme)]
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::PronunciationDictCreateResponse::Data, nil]
11
- optional :data, -> { Telnyx::Models::PronunciationDictCreateResponse::Data }
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::PronunciationDictCreateResponse::Data] A pronunciation dictionary record.
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