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
@@ -2,30 +2,30 @@ module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
4
  module Reputation
5
- type number_create_response =
5
+ type number_associate_response =
6
6
  {
7
- data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data],
7
+ data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data],
8
8
  meta: Telnyx::MetaInfo
9
9
  }
10
10
 
11
- class NumberCreateResponse < Telnyx::Internal::Type::BaseModel
12
- attr_reader data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data]?
11
+ class NumberAssociateResponse < Telnyx::Internal::Type::BaseModel
12
+ attr_reader data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data]?
13
13
 
14
14
  def data=: (
15
- ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data]
16
- ) -> ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data]
15
+ ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data]
16
+ ) -> ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data]
17
17
 
18
18
  attr_reader meta: Telnyx::MetaInfo?
19
19
 
20
20
  def meta=: (Telnyx::MetaInfo) -> Telnyx::MetaInfo
21
21
 
22
22
  def initialize: (
23
- ?data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data],
23
+ ?data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data],
24
24
  ?meta: Telnyx::MetaInfo
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
- data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberCreateResponse::Data],
28
+ data: ::Array[Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data],
29
29
  meta: Telnyx::MetaInfo
30
30
  }
31
31
 
@@ -2,11 +2,11 @@ module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
4
  module Reputation
5
- type number_delete_params =
5
+ type number_disassociate_params =
6
6
  { enterprise_id: String, phone_number: String }
7
7
  & Telnyx::Internal::Type::request_parameters
8
8
 
9
- class NumberDeleteParams < Telnyx::Internal::Type::BaseModel
9
+ class NumberDisassociateParams < Telnyx::Internal::Type::BaseModel
10
10
  extend Telnyx::Internal::Type::RequestParameters::Converter
11
11
  include Telnyx::Internal::Type::RequestParameters
12
12
 
@@ -1,10 +1,10 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
- type reputation_list_params =
4
+ type reputation_disable_params =
5
5
  { enterprise_id: String } & Telnyx::Internal::Type::request_parameters
6
6
 
7
- class ReputationListParams < Telnyx::Internal::Type::BaseModel
7
+ class ReputationDisableParams < Telnyx::Internal::Type::BaseModel
8
8
  extend Telnyx::Internal::Type::RequestParameters::Converter
9
9
  include Telnyx::Internal::Type::RequestParameters
10
10
 
@@ -1,15 +1,15 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
- type reputation_create_params =
4
+ type reputation_enable_params =
5
5
  {
6
6
  enterprise_id: String,
7
7
  loa_document_id: String,
8
- check_frequency: Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency
8
+ check_frequency: Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency
9
9
  }
10
10
  & Telnyx::Internal::Type::request_parameters
11
11
 
12
- class ReputationCreateParams < Telnyx::Internal::Type::BaseModel
12
+ class ReputationEnableParams < Telnyx::Internal::Type::BaseModel
13
13
  extend Telnyx::Internal::Type::RequestParameters::Converter
14
14
  include Telnyx::Internal::Type::RequestParameters
15
15
 
@@ -17,23 +17,23 @@ module Telnyx
17
17
 
18
18
  attr_accessor loa_document_id: String
19
19
 
20
- attr_reader check_frequency: Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency?
20
+ attr_reader check_frequency: Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency?
21
21
 
22
22
  def check_frequency=: (
23
- Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency
24
- ) -> Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency
23
+ Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency
24
+ ) -> Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency
25
25
 
26
26
  def initialize: (
27
27
  enterprise_id: String,
28
28
  loa_document_id: String,
29
- ?check_frequency: Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency,
29
+ ?check_frequency: Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency,
30
30
  ?request_options: Telnyx::request_opts
31
31
  ) -> void
32
32
 
33
33
  def to_hash: -> {
34
34
  enterprise_id: String,
35
35
  loa_document_id: String,
36
- check_frequency: Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency,
36
+ check_frequency: Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency,
37
37
  request_options: Telnyx::RequestOptions
38
38
  }
39
39
 
@@ -50,7 +50,7 @@ module Telnyx
50
50
  MONTHLY: :monthly
51
51
  NEVER: :never
52
52
 
53
- def self?.values: -> ::Array[Telnyx::Models::Enterprises::ReputationCreateParams::check_frequency]
53
+ def self?.values: -> ::Array[Telnyx::Models::Enterprises::ReputationEnableParams::check_frequency]
54
54
  end
55
55
  end
56
56
  end
@@ -1,10 +1,10 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
- type reputation_create_response =
4
+ type reputation_enable_response =
5
5
  { data: Telnyx::Enterprises::EnterpriseReputationPublic }
6
6
 
7
- class ReputationCreateResponse < Telnyx::Internal::Type::BaseModel
7
+ class ReputationEnableResponse < Telnyx::Internal::Type::BaseModel
8
8
  attr_reader data: Telnyx::Enterprises::EnterpriseReputationPublic?
9
9
 
10
10
  def data=: (
@@ -1,10 +1,10 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
- type reputation_delete_all_params =
4
+ type reputation_retrieve_params =
5
5
  { enterprise_id: String } & Telnyx::Internal::Type::request_parameters
6
6
 
7
- class ReputationDeleteAllParams < Telnyx::Internal::Type::BaseModel
7
+ class ReputationRetrieveParams < Telnyx::Internal::Type::BaseModel
8
8
  extend Telnyx::Internal::Type::RequestParameters::Converter
9
9
  include Telnyx::Internal::Type::RequestParameters
10
10
 
@@ -1,10 +1,10 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  module Enterprises
4
- type reputation_list_response =
4
+ type reputation_retrieve_response =
5
5
  { data: Telnyx::Enterprises::EnterpriseReputationPublic }
6
6
 
7
- class ReputationListResponse < Telnyx::Internal::Type::BaseModel
7
+ class ReputationRetrieveResponse < Telnyx::Internal::Type::BaseModel
8
8
  attr_reader data: Telnyx::Enterprises::EnterpriseReputationPublic?
9
9
 
10
10
  def data=: (
@@ -164,13 +164,13 @@ module Telnyx
164
164
  end
165
165
 
166
166
  type status =
167
- Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_single_status
168
- | ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::union_member1]
167
+ Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_multiple_status
168
+ | ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_status_list]
169
169
 
170
170
  module Status
171
171
  extend Telnyx::Internal::Type::Union
172
172
 
173
- type porting_order_single_status =
173
+ type porting_order_multiple_status =
174
174
  :draft
175
175
  | :"in-process"
176
176
  | :submitted
@@ -180,7 +180,7 @@ module Telnyx
180
180
  | :ported
181
181
  | :cancelled
182
182
 
183
- module PortingOrderSingleStatus
183
+ module PortingOrderMultipleStatus
184
184
  extend Telnyx::Internal::Type::Enum
185
185
 
186
186
  DRAFT: :draft
@@ -192,10 +192,10 @@ module Telnyx
192
192
  PORTED: :ported
193
193
  CANCELLED: :cancelled
194
194
 
195
- def self?.values: -> ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_single_status]
195
+ def self?.values: -> ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_multiple_status]
196
196
  end
197
197
 
198
- type union_member1 =
198
+ type porting_order_status_list =
199
199
  :draft
200
200
  | :"in-process"
201
201
  | :submitted
@@ -205,7 +205,7 @@ module Telnyx
205
205
  | :ported
206
206
  | :cancelled
207
207
 
208
- module UnionMember1
208
+ module PortingOrderStatusList
209
209
  extend Telnyx::Internal::Type::Enum
210
210
 
211
211
  DRAFT: :draft
@@ -217,12 +217,12 @@ module Telnyx
217
217
  PORTED: :ported
218
218
  CANCELLED: :cancelled
219
219
 
220
- def self?.values: -> ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::union_member1]
220
+ def self?.values: -> ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::porting_order_status_list]
221
221
  end
222
222
 
223
223
  def self?.variants: -> ::Array[Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::status]
224
224
 
225
- UnionMember1Array: Telnyx::Internal::Type::Converter
225
+ PortingOrderStatusListArray: Telnyx::Internal::Type::Converter
226
226
  end
227
227
 
228
228
  type support_key = String | ::Array[String]
@@ -0,0 +1,40 @@
1
+ module Telnyx
2
+ module Models
3
+ type pronunciation_dict_alias_item =
4
+ {
5
+ alias_: String,
6
+ text: String,
7
+ type: Telnyx::Models::PronunciationDictAliasItem::type_
8
+ }
9
+
10
+ class PronunciationDictAliasItem < Telnyx::Internal::Type::BaseModel
11
+ attr_accessor alias_: String
12
+
13
+ attr_accessor text: String
14
+
15
+ attr_accessor type: Telnyx::Models::PronunciationDictAliasItem::type_
16
+
17
+ def initialize: (
18
+ alias_: String,
19
+ text: String,
20
+ type: Telnyx::Models::PronunciationDictAliasItem::type_
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ alias_: String,
25
+ text: String,
26
+ type: Telnyx::Models::PronunciationDictAliasItem::type_
27
+ }
28
+
29
+ type type_ = :alias
30
+
31
+ module Type
32
+ extend Telnyx::Internal::Type::Enum
33
+
34
+ ALIAS: :alias
35
+
36
+ def self?.values: -> ::Array[Telnyx::Models::PronunciationDictAliasItem::type_]
37
+ end
38
+ end
39
+ end
40
+ end
@@ -28,68 +28,12 @@ module Telnyx
28
28
  }
29
29
 
30
30
  type item =
31
- Telnyx::PronunciationDictCreateParams::Item::Alias
32
- | Telnyx::PronunciationDictCreateParams::Item::Phoneme
31
+ Telnyx::PronunciationDictAliasItem
32
+ | Telnyx::PronunciationDictPhonemeItem
33
33
 
34
34
  module Item
35
35
  extend Telnyx::Internal::Type::Union
36
36
 
37
- type alias_ = { alias_: String, text: String, type: :alias }
38
-
39
- class Alias < Telnyx::Internal::Type::BaseModel
40
- attr_accessor alias_: String
41
-
42
- attr_accessor text: String
43
-
44
- attr_accessor type: :alias
45
-
46
- def initialize: (alias_: String, text: String, ?type: :alias) -> void
47
-
48
- def to_hash: -> { alias_: String, text: String, type: :alias }
49
- end
50
-
51
- type phoneme =
52
- {
53
- alphabet: Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::alphabet,
54
- phoneme: String,
55
- text: String,
56
- type: :phoneme
57
- }
58
-
59
- class Phoneme < Telnyx::Internal::Type::BaseModel
60
- attr_accessor alphabet: Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::alphabet
61
-
62
- attr_accessor phoneme: String
63
-
64
- attr_accessor text: String
65
-
66
- attr_accessor type: :phoneme
67
-
68
- def initialize: (
69
- alphabet: Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::alphabet,
70
- phoneme: String,
71
- text: String,
72
- ?type: :phoneme
73
- ) -> void
74
-
75
- def to_hash: -> {
76
- alphabet: Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::alphabet,
77
- phoneme: String,
78
- text: String,
79
- type: :phoneme
80
- }
81
-
82
- type alphabet = :ipa
83
-
84
- module Alphabet
85
- extend Telnyx::Internal::Type::Enum
86
-
87
- IPA: :ipa
88
-
89
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictCreateParams::Item::Phoneme::alphabet]
90
- end
91
- end
92
-
93
37
  def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictCreateParams::item]
94
38
  end
95
39
  end
@@ -1,167 +1,18 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  type pronunciation_dict_create_response =
4
- { data: Telnyx::Models::PronunciationDictCreateResponse::Data }
4
+ { data: Telnyx::PronunciationDictData }
5
5
 
6
6
  class PronunciationDictCreateResponse < Telnyx::Internal::Type::BaseModel
7
- attr_reader data: Telnyx::Models::PronunciationDictCreateResponse::Data?
7
+ attr_reader data: Telnyx::PronunciationDictData?
8
8
 
9
9
  def data=: (
10
- Telnyx::Models::PronunciationDictCreateResponse::Data
11
- ) -> Telnyx::Models::PronunciationDictCreateResponse::Data
10
+ Telnyx::PronunciationDictData
11
+ ) -> Telnyx::PronunciationDictData
12
12
 
13
- def initialize: (
14
- ?data: Telnyx::Models::PronunciationDictCreateResponse::Data
15
- ) -> void
13
+ def initialize: (?data: Telnyx::PronunciationDictData) -> void
16
14
 
17
- def to_hash: -> {
18
- data: Telnyx::Models::PronunciationDictCreateResponse::Data
19
- }
20
-
21
- type data =
22
- {
23
- id: String,
24
- created_at: Time,
25
- items: ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item],
26
- name: String,
27
- record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type,
28
- updated_at: Time,
29
- version: Integer
30
- }
31
-
32
- class Data < Telnyx::Internal::Type::BaseModel
33
- attr_reader id: String?
34
-
35
- def id=: (String) -> String
36
-
37
- attr_reader created_at: Time?
38
-
39
- def created_at=: (Time) -> Time
40
-
41
- attr_reader items: ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]?
42
-
43
- def items=: (
44
- ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]
45
- ) -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]
46
-
47
- attr_reader name: String?
48
-
49
- def name=: (String) -> String
50
-
51
- attr_reader record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type?
52
-
53
- def record_type=: (
54
- Telnyx::Models::PronunciationDictCreateResponse::Data::record_type
55
- ) -> Telnyx::Models::PronunciationDictCreateResponse::Data::record_type
56
-
57
- attr_reader updated_at: Time?
58
-
59
- def updated_at=: (Time) -> Time
60
-
61
- attr_reader version: Integer?
62
-
63
- def version=: (Integer) -> Integer
64
-
65
- def initialize: (
66
- ?id: String,
67
- ?created_at: Time,
68
- ?items: ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item],
69
- ?name: String,
70
- ?record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type,
71
- ?updated_at: Time,
72
- ?version: Integer
73
- ) -> void
74
-
75
- def to_hash: -> {
76
- id: String,
77
- created_at: Time,
78
- items: ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item],
79
- name: String,
80
- record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type,
81
- updated_at: Time,
82
- version: Integer
83
- }
84
-
85
- type item =
86
- Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias
87
- | Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme
88
-
89
- module Item
90
- extend Telnyx::Internal::Type::Union
91
-
92
- type alias_ = { alias_: String, text: String, type: :alias }
93
-
94
- class Alias < Telnyx::Internal::Type::BaseModel
95
- attr_accessor alias_: String
96
-
97
- attr_accessor text: String
98
-
99
- attr_accessor type: :alias
100
-
101
- def initialize: (
102
- alias_: String,
103
- text: String,
104
- ?type: :alias
105
- ) -> void
106
-
107
- def to_hash: -> { alias_: String, text: String, type: :alias }
108
- end
109
-
110
- type phoneme =
111
- {
112
- alphabet: Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet,
113
- phoneme: String,
114
- text: String,
115
- type: :phoneme
116
- }
117
-
118
- class Phoneme < Telnyx::Internal::Type::BaseModel
119
- attr_accessor alphabet: Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet
120
-
121
- attr_accessor phoneme: String
122
-
123
- attr_accessor text: String
124
-
125
- attr_accessor type: :phoneme
126
-
127
- def initialize: (
128
- alphabet: Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet,
129
- phoneme: String,
130
- text: String,
131
- ?type: :phoneme
132
- ) -> void
133
-
134
- def to_hash: -> {
135
- alphabet: Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet,
136
- phoneme: String,
137
- text: String,
138
- type: :phoneme
139
- }
140
-
141
- type alphabet = :ipa
142
-
143
- module Alphabet
144
- extend Telnyx::Internal::Type::Enum
145
-
146
- IPA: :ipa
147
-
148
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet]
149
- end
150
- end
151
-
152
- def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]
153
- end
154
-
155
- type record_type = :pronunciation_dict
156
-
157
- module RecordType
158
- extend Telnyx::Internal::Type::Enum
159
-
160
- PRONUNCIATION_DICT: :pronunciation_dict
161
-
162
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::record_type]
163
- end
164
- end
15
+ def to_hash: -> { data: Telnyx::PronunciationDictData }
165
16
  end
166
17
  end
167
18
  end
@@ -0,0 +1,88 @@
1
+ module Telnyx
2
+ module Models
3
+ type pronunciation_dict_data =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ items: ::Array[Telnyx::Models::PronunciationDictData::item],
8
+ name: String,
9
+ record_type: Telnyx::Models::PronunciationDictData::record_type,
10
+ updated_at: Time,
11
+ version: Integer
12
+ }
13
+
14
+ class PronunciationDictData < Telnyx::Internal::Type::BaseModel
15
+ attr_reader id: String?
16
+
17
+ def id=: (String) -> String
18
+
19
+ attr_reader created_at: Time?
20
+
21
+ def created_at=: (Time) -> Time
22
+
23
+ attr_reader items: ::Array[Telnyx::Models::PronunciationDictData::item]?
24
+
25
+ def items=: (
26
+ ::Array[Telnyx::Models::PronunciationDictData::item]
27
+ ) -> ::Array[Telnyx::Models::PronunciationDictData::item]
28
+
29
+ attr_reader name: String?
30
+
31
+ def name=: (String) -> String
32
+
33
+ attr_reader record_type: Telnyx::Models::PronunciationDictData::record_type?
34
+
35
+ def record_type=: (
36
+ Telnyx::Models::PronunciationDictData::record_type
37
+ ) -> Telnyx::Models::PronunciationDictData::record_type
38
+
39
+ attr_reader updated_at: Time?
40
+
41
+ def updated_at=: (Time) -> Time
42
+
43
+ attr_reader version: Integer?
44
+
45
+ def version=: (Integer) -> Integer
46
+
47
+ def initialize: (
48
+ ?id: String,
49
+ ?created_at: Time,
50
+ ?items: ::Array[Telnyx::Models::PronunciationDictData::item],
51
+ ?name: String,
52
+ ?record_type: Telnyx::Models::PronunciationDictData::record_type,
53
+ ?updated_at: Time,
54
+ ?version: Integer
55
+ ) -> void
56
+
57
+ def to_hash: -> {
58
+ id: String,
59
+ created_at: Time,
60
+ items: ::Array[Telnyx::Models::PronunciationDictData::item],
61
+ name: String,
62
+ record_type: Telnyx::Models::PronunciationDictData::record_type,
63
+ updated_at: Time,
64
+ version: Integer
65
+ }
66
+
67
+ type item =
68
+ Telnyx::PronunciationDictAliasItem
69
+ | Telnyx::PronunciationDictPhonemeItem
70
+
71
+ module Item
72
+ extend Telnyx::Internal::Type::Union
73
+
74
+ def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictData::item]
75
+ end
76
+
77
+ type record_type = :pronunciation_dict
78
+
79
+ module RecordType
80
+ extend Telnyx::Internal::Type::Enum
81
+
82
+ PRONUNCIATION_DICT: :pronunciation_dict
83
+
84
+ def self?.values: -> ::Array[Telnyx::Models::PronunciationDictData::record_type]
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,55 @@
1
+ module Telnyx
2
+ module Models
3
+ type pronunciation_dict_phoneme_item =
4
+ {
5
+ alphabet: Telnyx::Models::PronunciationDictPhonemeItem::alphabet,
6
+ phoneme: String,
7
+ text: String,
8
+ type: Telnyx::Models::PronunciationDictPhonemeItem::type_
9
+ }
10
+
11
+ class PronunciationDictPhonemeItem < Telnyx::Internal::Type::BaseModel
12
+ attr_accessor alphabet: Telnyx::Models::PronunciationDictPhonemeItem::alphabet
13
+
14
+ attr_accessor phoneme: String
15
+
16
+ attr_accessor text: String
17
+
18
+ attr_accessor type: Telnyx::Models::PronunciationDictPhonemeItem::type_
19
+
20
+ def initialize: (
21
+ alphabet: Telnyx::Models::PronunciationDictPhonemeItem::alphabet,
22
+ phoneme: String,
23
+ text: String,
24
+ type: Telnyx::Models::PronunciationDictPhonemeItem::type_
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ alphabet: Telnyx::Models::PronunciationDictPhonemeItem::alphabet,
29
+ phoneme: String,
30
+ text: String,
31
+ type: Telnyx::Models::PronunciationDictPhonemeItem::type_
32
+ }
33
+
34
+ type alphabet = :ipa
35
+
36
+ module Alphabet
37
+ extend Telnyx::Internal::Type::Enum
38
+
39
+ IPA: :ipa
40
+
41
+ def self?.values: -> ::Array[Telnyx::Models::PronunciationDictPhonemeItem::alphabet]
42
+ end
43
+
44
+ type type_ = :phoneme
45
+
46
+ module Type
47
+ extend Telnyx::Internal::Type::Enum
48
+
49
+ PHONEME: :phoneme
50
+
51
+ def self?.values: -> ::Array[Telnyx::Models::PronunciationDictPhonemeItem::type_]
52
+ end
53
+ end
54
+ end
55
+ end