telnyx 5.176.0 → 5.177.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 (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
  5. data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
  6. data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
  7. data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
  8. data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
  9. data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
  10. data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
  11. data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
  12. data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
  13. data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
  14. data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
  15. data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
  16. data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
  17. data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
  18. data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
  19. data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
  20. data/lib/telnyx/models/email_event_list_response.rb +11 -12
  21. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
  22. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
  23. data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
  24. data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
  25. data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
  26. data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
  27. data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
  28. data/lib/telnyx/models/iam/iam_action.rb +4 -4
  29. data/lib/telnyx/models/iam/iam_settings.rb +60 -0
  30. data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
  31. data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
  32. data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
  33. data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
  34. data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
  35. data/lib/telnyx/models/iam_decision.rb +5 -3
  36. data/lib/telnyx/models/iam_explain_params.rb +13 -1
  37. data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
  38. data/lib/telnyx/models/iam_simulate_params.rb +13 -1
  39. data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
  40. data/lib/telnyx/models/mobile_phone_number.rb +25 -4
  41. data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
  42. data/lib/telnyx/models/model_metadata.rb +28 -1
  43. data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
  44. data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
  45. data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
  46. data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
  47. data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
  48. data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
  49. data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
  50. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
  51. data/lib/telnyx/models/texml_application_list_params.rb +6 -6
  52. data/lib/telnyx/models/user_profile.rb +11 -1
  53. data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
  54. data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
  55. data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
  56. data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
  57. data/lib/telnyx/resources/calls/actions.rb +1 -1
  58. data/lib/telnyx/resources/customer_service_records.rb +4 -4
  59. data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
  60. data/lib/telnyx/resources/iam/guardrail.rb +45 -0
  61. data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
  62. data/lib/telnyx/resources/iam.rb +21 -8
  63. data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
  64. data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
  65. data/lib/telnyx/resources/user_profile.rb +1 -3
  66. data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
  67. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
  68. data/lib/telnyx/version.rb +1 -1
  69. data/lib/telnyx.rb +20 -0
  70. data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
  71. data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
  72. data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
  73. data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
  74. data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
  75. data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
  76. data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
  77. data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
  78. data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
  79. data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
  80. data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
  81. data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
  82. data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
  83. data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
  84. data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
  85. data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
  86. data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
  87. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
  88. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
  89. data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
  90. data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
  91. data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
  92. data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
  93. data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
  94. data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
  95. data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
  96. data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
  97. data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
  98. data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
  99. data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
  100. data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
  101. data/rbi/telnyx/models/iam_decision.rbi +10 -6
  102. data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
  103. data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
  104. data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
  105. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
  106. data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
  107. data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
  108. data/rbi/telnyx/models/model_metadata.rbi +90 -0
  109. data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
  110. data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
  111. data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
  112. data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
  113. data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
  114. data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
  115. data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
  116. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
  117. data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
  118. data/rbi/telnyx/models/user_profile.rbi +11 -0
  119. data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
  120. data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
  121. data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
  122. data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
  123. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  124. data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
  125. data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
  126. data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
  127. data/rbi/telnyx/resources/iam.rbi +18 -7
  128. data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
  129. data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
  130. data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
  131. data/rbi/telnyx/resources/user_profile.rbi +0 -3
  132. data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
  133. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
  134. data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
  135. data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
  136. data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
  137. data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
  138. data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
  139. data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
  140. data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
  141. data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
  142. data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
  143. data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
  144. data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
  145. data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
  146. data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
  147. data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
  148. data/sig/telnyx/models/email_event_list_response.rbs +13 -3
  149. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
  150. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
  151. data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
  152. data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
  153. data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
  154. data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
  155. data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
  156. data/sig/telnyx/models/iam/iam_action.rbs +4 -4
  157. data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
  158. data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
  159. data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
  160. data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
  161. data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
  162. data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
  163. data/sig/telnyx/models/iam_explain_params.rbs +6 -1
  164. data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
  165. data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
  166. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
  167. data/sig/telnyx/models/model_metadata.rbs +26 -0
  168. data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
  169. data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
  170. data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
  171. data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
  172. data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
  173. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
  174. data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
  175. data/sig/telnyx/models/user_profile.rbs +7 -0
  176. data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
  177. data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
  178. data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
  179. data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
  180. data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
  181. data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
  182. data/sig/telnyx/resources/iam.rbs +3 -0
  183. data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
  184. data/sig/telnyx/resources/user_profile.rbs +0 -1
  185. data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
  186. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
  187. metadata +62 -2
@@ -161,7 +161,7 @@ module Telnyx
161
161
  # recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
162
162
  # E.164 phone number.
163
163
  #
164
- # @return [Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String, nil]
164
+ # @return [Array<Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList>, String, nil]
165
165
  optional :to, union: -> { Telnyx::MessagingInboundMessagePayload::To }
166
166
 
167
167
  # @!attribute type
@@ -243,7 +243,7 @@ module Telnyx
243
243
  #
244
244
  # @param text [String] Message body (i.e., content) as a non-empty string.
245
245
  #
246
- # @param to [Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String] Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS rec
246
+ # @param to [Array<Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList>, String] Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS rec
247
247
  #
248
248
  # @param type [Symbol, Telnyx::Models::MessagingInboundMessagePayload::Type] The messaging channel used for the message.
249
249
  #
@@ -830,12 +830,12 @@ module Telnyx
830
830
  module To
831
831
  extend Telnyx::Internal::Type::Union
832
832
 
833
- variant -> { Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0Array }
833
+ variant -> { Telnyx::Models::MessagingInboundMessagePayload::To::RecipientListArray }
834
834
 
835
835
  # WhatsApp receiving address in E.164 format.
836
836
  variant String
837
837
 
838
- class UnionMember0 < Telnyx::Internal::Type::BaseModel
838
+ class RecipientList < Telnyx::Internal::Type::BaseModel
839
839
  # @!attribute agent_id
840
840
  # RCS agent identifier.
841
841
  #
@@ -857,8 +857,8 @@ module Telnyx
857
857
  # @!attribute line_type
858
858
  # The line-type of the receiver.
859
859
  #
860
- # @return [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::LineType, nil]
861
- optional :line_type, enum: -> { Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType }
860
+ # @return [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::LineType, nil]
861
+ optional :line_type, enum: -> { Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType }
862
862
 
863
863
  # @!attribute phone_number
864
864
  # Receiving address (+E.164 formatted phone number or short code).
@@ -868,8 +868,8 @@ module Telnyx
868
868
 
869
869
  # @!attribute status
870
870
  #
871
- # @return [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::Status, nil]
872
- optional :status, enum: -> { Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status }
871
+ # @return [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::Status, nil]
872
+ optional :status, enum: -> { Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status }
873
873
 
874
874
  # @!method initialize(agent_id: nil, agent_name: nil, carrier: nil, line_type: nil, phone_number: nil, status: nil)
875
875
  # @param agent_id [String] RCS agent identifier.
@@ -878,15 +878,15 @@ module Telnyx
878
878
  #
879
879
  # @param carrier [String] The carrier of the receiver.
880
880
  #
881
- # @param line_type [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::LineType] The line-type of the receiver.
881
+ # @param line_type [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::LineType] The line-type of the receiver.
882
882
  #
883
883
  # @param phone_number [String] Receiving address (+E.164 formatted phone number or short code).
884
884
  #
885
- # @param status [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::Status]
885
+ # @param status [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList::Status]
886
886
 
887
887
  # The line-type of the receiver.
888
888
  #
889
- # @see Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0#line_type
889
+ # @see Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList#line_type
890
890
  module LineType
891
891
  extend Telnyx::Internal::Type::Enum
892
892
 
@@ -901,7 +901,7 @@ module Telnyx
901
901
  # @return [Array<Symbol>]
902
902
  end
903
903
 
904
- # @see Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0#status
904
+ # @see Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList#status
905
905
  module Status
906
906
  extend Telnyx::Internal::Type::Enum
907
907
 
@@ -920,11 +920,11 @@ module Telnyx
920
920
  end
921
921
 
922
922
  # @!method self.variants
923
- # @return [Array(Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String)]
923
+ # @return [Array(Array<Telnyx::Models::MessagingInboundMessagePayload::To::RecipientList>, String)]
924
924
 
925
925
  # @type [Telnyx::Internal::Type::Converter]
926
- UnionMember0Array =
927
- Telnyx::Internal::Type::ArrayOf[-> { Telnyx::MessagingInboundMessagePayload::To::UnionMember0 }]
926
+ RecipientListArray =
927
+ Telnyx::Internal::Type::ArrayOf[-> { Telnyx::MessagingInboundMessagePayload::To::RecipientList }]
928
928
  end
929
929
 
930
930
  # The messaging channel used for the message.
@@ -5,6 +5,8 @@ module Telnyx
5
5
  # @see Telnyx::Resources::MobilePhoneNumbers#list
6
6
  class MobilePhoneNumber < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute call_forwarding
8
+ # The call forwarding settings for this mobile phone number. Call forwarding is
9
+ # the same feature as on SIP trunking phone numbers.
8
10
  #
9
11
  # @return [Telnyx::Models::MobilePhoneNumber::CallForwarding, nil]
10
12
  optional :call_forwarding, -> { Telnyx::MobilePhoneNumber::CallForwarding }
@@ -138,9 +140,12 @@ module Telnyx
138
140
  end
139
141
 
140
142
  # @!method initialize(id: nil, call_forwarding: nil, call_recording: nil, caller_id_name_enabled: nil, cnam_listing: nil, connection_id: nil, connection_name: nil, connection_type: nil, country_iso_alpha2: nil, created_at: nil, customer_reference: nil, inbound: nil, inbound_call_screening: nil, mobile_voice_enabled: nil, noise_suppression: nil, outbound: nil, phone_number: nil, record_type: nil, sim_card_id: nil, status: nil, tags: nil, updated_at: nil)
143
+ # Some parameter documentations has been truncated, see
144
+ # {Telnyx::Models::MobilePhoneNumber} for more details.
145
+ #
141
146
  # @param id [String] Identifies the resource.
142
147
  #
143
- # @param call_forwarding [Telnyx::Models::MobilePhoneNumber::CallForwarding]
148
+ # @param call_forwarding [Telnyx::Models::MobilePhoneNumber::CallForwarding] The call forwarding settings for this mobile phone number. Call forwarding is th
144
149
  #
145
150
  # @param call_recording [Telnyx::Models::MobilePhoneNumber::CallRecording]
146
151
  #
@@ -185,11 +190,14 @@ module Telnyx
185
190
  # @see Telnyx::Models::MobilePhoneNumber#call_forwarding
186
191
  class CallForwarding < Telnyx::Internal::Type::BaseModel
187
192
  # @!attribute call_forwarding_enabled
193
+ # Indicates whether call forwarding is enabled for this number. Call forwarding
194
+ # takes effect when forwards_to and forwarding_type are set.
188
195
  #
189
196
  # @return [Boolean, nil]
190
197
  optional :call_forwarding_enabled, Telnyx::Internal::Type::Boolean
191
198
 
192
199
  # @!attribute forwarding_type
200
+ # Call forwarding type. 'forwards_to' must be set for this to have an effect.
193
201
  #
194
202
  # @return [Symbol, Telnyx::Models::MobilePhoneNumber::CallForwarding::ForwardingType, nil]
195
203
  optional :forwarding_type,
@@ -197,15 +205,28 @@ module Telnyx
197
205
  nil?: true
198
206
 
199
207
  # @!attribute forwards_to
208
+ # The phone number to which inbound calls to this number are forwarded. Inbound
209
+ # calls will not be forwarded if this field is left blank. If set, must be a
210
+ # +E.164-formatted phone number.
200
211
  #
201
212
  # @return [String, nil]
202
213
  optional :forwards_to, String, nil?: true
203
214
 
204
215
  # @!method initialize(call_forwarding_enabled: nil, forwarding_type: nil, forwards_to: nil)
205
- # @param call_forwarding_enabled [Boolean]
206
- # @param forwarding_type [Symbol, Telnyx::Models::MobilePhoneNumber::CallForwarding::ForwardingType, nil]
207
- # @param forwards_to [String, nil]
216
+ # Some parameter documentations has been truncated, see
217
+ # {Telnyx::Models::MobilePhoneNumber::CallForwarding} for more details.
218
+ #
219
+ # The call forwarding settings for this mobile phone number. Call forwarding is
220
+ # the same feature as on SIP trunking phone numbers.
221
+ #
222
+ # @param call_forwarding_enabled [Boolean] Indicates whether call forwarding is enabled for this number. Call forwarding ta
223
+ #
224
+ # @param forwarding_type [Symbol, Telnyx::Models::MobilePhoneNumber::CallForwarding::ForwardingType, nil] Call forwarding type. 'forwards_to' must be set for this to have an effect.
225
+ #
226
+ # @param forwards_to [String, nil] The phone number to which inbound calls to this number are forwarded. Inbound ca
208
227
 
228
+ # Call forwarding type. 'forwards_to' must be set for this to have an effect.
229
+ #
209
230
  # @see Telnyx::Models::MobilePhoneNumber::CallForwarding#forwarding_type
210
231
  module ForwardingType
211
232
  extend Telnyx::Internal::Type::Enum
@@ -13,6 +13,8 @@ module Telnyx
13
13
  required :id, String
14
14
 
15
15
  # @!attribute call_forwarding
16
+ # The call forwarding settings for this mobile phone number. Call forwarding is
17
+ # the same feature as on SIP trunking phone numbers.
16
18
  #
17
19
  # @return [Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding, nil]
18
20
  optional :call_forwarding, -> { Telnyx::MobilePhoneNumberUpdateParams::CallForwarding }
@@ -68,27 +70,45 @@ module Telnyx
68
70
  optional :tags, Telnyx::Internal::Type::ArrayOf[String]
69
71
 
70
72
  # @!method initialize(id:, call_forwarding: nil, call_recording: nil, caller_id_name_enabled: nil, cnam_listing: nil, connection_id: nil, customer_reference: nil, inbound: nil, inbound_call_screening: nil, noise_suppression: nil, outbound: nil, tags: nil, request_options: {})
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::MobilePhoneNumberUpdateParams} for more details.
75
+ #
71
76
  # @param id [String]
72
- # @param call_forwarding [Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding]
77
+ #
78
+ # @param call_forwarding [Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding] The call forwarding settings for this mobile phone number. Call forwarding is th
79
+ #
73
80
  # @param call_recording [Telnyx::Models::MobilePhoneNumberUpdateParams::CallRecording]
81
+ #
74
82
  # @param caller_id_name_enabled [Boolean]
83
+ #
75
84
  # @param cnam_listing [Telnyx::Models::MobilePhoneNumberUpdateParams::CnamListing]
85
+ #
76
86
  # @param connection_id [String, nil]
87
+ #
77
88
  # @param customer_reference [String, nil]
89
+ #
78
90
  # @param inbound [Telnyx::Models::MobilePhoneNumberUpdateParams::Inbound]
91
+ #
79
92
  # @param inbound_call_screening [Symbol, Telnyx::Models::MobilePhoneNumberUpdateParams::InboundCallScreening]
93
+ #
80
94
  # @param noise_suppression [Boolean]
95
+ #
81
96
  # @param outbound [Telnyx::Models::MobilePhoneNumberUpdateParams::Outbound]
97
+ #
82
98
  # @param tags [Array<String>]
99
+ #
83
100
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
84
101
 
85
102
  class CallForwarding < Telnyx::Internal::Type::BaseModel
86
103
  # @!attribute call_forwarding_enabled
104
+ # Indicates whether call forwarding is enabled for this number. Call forwarding
105
+ # takes effect when forwards_to and forwarding_type are set.
87
106
  #
88
107
  # @return [Boolean, nil]
89
108
  optional :call_forwarding_enabled, Telnyx::Internal::Type::Boolean
90
109
 
91
110
  # @!attribute forwarding_type
111
+ # Call forwarding type. 'forwards_to' must be set for this to have an effect.
92
112
  #
93
113
  # @return [Symbol, Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding::ForwardingType, nil]
94
114
  optional :forwarding_type,
@@ -96,15 +116,29 @@ module Telnyx
96
116
  nil?: true
97
117
 
98
118
  # @!attribute forwards_to
119
+ # The phone number to which inbound calls to this number are forwarded. Inbound
120
+ # calls will not be forwarded if this field is left blank. If set, must be a
121
+ # +E.164-formatted phone number.
99
122
  #
100
123
  # @return [String, nil]
101
124
  optional :forwards_to, String, nil?: true
102
125
 
103
126
  # @!method initialize(call_forwarding_enabled: nil, forwarding_type: nil, forwards_to: nil)
104
- # @param call_forwarding_enabled [Boolean]
105
- # @param forwarding_type [Symbol, Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding::ForwardingType, nil]
106
- # @param forwards_to [String, nil]
127
+ # Some parameter documentations has been truncated, see
128
+ # {Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding} for more
129
+ # details.
130
+ #
131
+ # The call forwarding settings for this mobile phone number. Call forwarding is
132
+ # the same feature as on SIP trunking phone numbers.
133
+ #
134
+ # @param call_forwarding_enabled [Boolean] Indicates whether call forwarding is enabled for this number. Call forwarding ta
135
+ #
136
+ # @param forwarding_type [Symbol, Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding::ForwardingType, nil] Call forwarding type. 'forwards_to' must be set for this to have an effect.
137
+ #
138
+ # @param forwards_to [String, nil] The phone number to which inbound calls to this number are forwarded. Inbound ca
107
139
 
140
+ # Call forwarding type. 'forwards_to' must be set for this to have an effect.
141
+ #
108
142
  # @see Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding#forwarding_type
109
143
  module ForwardingType
110
144
  extend Telnyx::Internal::Type::Enum
@@ -156,6 +156,16 @@ module Telnyx
156
156
  # @return [Array<Symbol, Telnyx::Models::ModelMetadata::ServiceTier>, nil]
157
157
  optional :service_tiers, -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::ModelMetadata::ServiceTier] }
158
158
 
159
+ # @!attribute supported_reasoning_efforts
160
+ # Reasoning-effort values this reasoning model accepts on Chat Completions and
161
+ # Responses (`reasoning.effort`). Use one of these values as `reasoning_effort`;
162
+ # any other value is rejected with a `400` error naming the value and the
163
+ # supported set. This field is omitted for models that do not reason.
164
+ #
165
+ # @return [Array<Symbol, Telnyx::Models::ModelMetadata::SupportedReasoningEffort>, nil]
166
+ optional :supported_reasoning_efforts,
167
+ -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::ModelMetadata::SupportedReasoningEffort] }
168
+
159
169
  # @!attribute task
160
170
  # Primary task the model is intended for, e.g. `text-generation`,
161
171
  # `audio-text-to-text`, `feature-extraction` (embeddings).
@@ -163,7 +173,7 @@ module Telnyx
163
173
  # @return [String, nil]
164
174
  optional :task, String
165
175
 
166
- # @!method initialize(id:, context_length:, created:, languages:, license:, organization:, owned_by:, parameters:, tier:, base_model: nil, beta: nil, description: nil, is_fine_tunable: nil, is_vision_supported: nil, max_completion_tokens: nil, object: nil, parameters_str: nil, pricing: nil, recommended_for_assistants: nil, regions: nil, service_tiers: nil, task: nil)
176
+ # @!method initialize(id:, context_length:, created:, languages:, license:, organization:, owned_by:, parameters:, tier:, base_model: nil, beta: nil, description: nil, is_fine_tunable: nil, is_vision_supported: nil, max_completion_tokens: nil, object: nil, parameters_str: nil, pricing: nil, recommended_for_assistants: nil, regions: nil, service_tiers: nil, supported_reasoning_efforts: nil, task: nil)
167
177
  # Some parameter documentations has been truncated, see
168
178
  # {Telnyx::Models::ModelMetadata} for more details.
169
179
  #
@@ -215,6 +225,8 @@ module Telnyx
215
225
  #
216
226
  # @param service_tiers [Array<Symbol, Telnyx::Models::ModelMetadata::ServiceTier>] Service tiers supported by this Telnyx-hosted model. Use one of these values as
217
227
  #
228
+ # @param supported_reasoning_efforts [Array<Symbol, Telnyx::Models::ModelMetadata::SupportedReasoningEffort>] Reasoning-effort values this reasoning model accepts on Chat Completions and Res
229
+ #
218
230
  # @param task [String] Primary task the model is intended for, e.g. `text-generation`, `audio-text-to-t
219
231
 
220
232
  # Billing tier the model belongs to. Used together with `pricing` to determine
@@ -243,6 +255,21 @@ module Telnyx
243
255
  # @!method self.values
244
256
  # @return [Array<Symbol>]
245
257
  end
258
+
259
+ module SupportedReasoningEffort
260
+ extend Telnyx::Internal::Type::Enum
261
+
262
+ NONE = :none
263
+ MINIMAL = :minimal
264
+ LOW = :low
265
+ MEDIUM = :medium
266
+ HIGH = :high
267
+ XHIGH = :xhigh
268
+ MAX = :max
269
+
270
+ # @!method self.values
271
+ # @return [Array<Symbol>]
272
+ end
246
273
  end
247
274
  end
248
275
  end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module PhoneNumbers
6
+ class EmergencySettings < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute emergency_address_id
8
+ # Identifies the address to be used with emergency services.
9
+ #
10
+ # @return [String, nil]
11
+ optional :emergency_address_id, String
12
+
13
+ # @!attribute emergency_enabled
14
+ # Allows you to enable or disable emergency services on the phone number. In order
15
+ # to enable emergency services, you must also set an emergency_address_id.
16
+ #
17
+ # @return [Boolean, nil]
18
+ optional :emergency_enabled, Telnyx::Internal::Type::Boolean
19
+
20
+ # @!attribute emergency_status
21
+ # Represents the state of the number regarding emergency activation.
22
+ #
23
+ # @return [Symbol, Telnyx::Models::PhoneNumbers::EmergencySettings::EmergencyStatus, nil]
24
+ optional :emergency_status, enum: -> { Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus }
25
+
26
+ # @!method initialize(emergency_address_id: nil, emergency_enabled: nil, emergency_status: nil)
27
+ # Some parameter documentations has been truncated, see
28
+ # {Telnyx::Models::PhoneNumbers::EmergencySettings} for more details.
29
+ #
30
+ # The emergency services settings for a phone number.
31
+ #
32
+ # @param emergency_address_id [String] Identifies the address to be used with emergency services.
33
+ #
34
+ # @param emergency_enabled [Boolean] Allows you to enable or disable emergency services on the phone number. In order
35
+ #
36
+ # @param emergency_status [Symbol, Telnyx::Models::PhoneNumbers::EmergencySettings::EmergencyStatus] Represents the state of the number regarding emergency activation.
37
+
38
+ # Represents the state of the number regarding emergency activation.
39
+ #
40
+ # @see Telnyx::Models::PhoneNumbers::EmergencySettings#emergency_status
41
+ module EmergencyStatus
42
+ extend Telnyx::Internal::Type::Enum
43
+
44
+ DISABLED = :disabled
45
+ ACTIVE = :active
46
+ PROVISIONING = :provisioning
47
+ DEPROVISIONING = :deprovisioning
48
+ PROVISIONING_FAILED = :"provisioning-failed"
49
+
50
+ # @!method self.values
51
+ # @return [Array<Symbol>]
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module PhoneNumbers
6
+ class NumbersCnamListing < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute cnam_listing_details
8
+ # The CNAM listing details for this number. Must be alphanumeric characters or
9
+ # spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set
10
+ # to true.
11
+ #
12
+ # @return [String, nil]
13
+ optional :cnam_listing_details, String
14
+
15
+ # @!attribute cnam_listing_enabled
16
+ # Enables CNAM listings for this number. Requires cnam_listing_details to also be
17
+ # set.
18
+ #
19
+ # @return [Boolean, nil]
20
+ optional :cnam_listing_enabled, Telnyx::Internal::Type::Boolean
21
+
22
+ # @!method initialize(cnam_listing_details: nil, cnam_listing_enabled: nil)
23
+ # Some parameter documentations has been truncated, see
24
+ # {Telnyx::Models::PhoneNumbers::NumbersCnamListing} for more details.
25
+ #
26
+ # The CNAM listing settings for a phone number. See the
27
+ # [Caller ID & CNAM guide](https://developers.telnyx.com/docs/numbers/phone-numbers/caller-id-cnam)
28
+ # for setup steps and coverage details.
29
+ #
30
+ # @param cnam_listing_details [String] The CNAM listing details for this number. Must be alphanumeric characters or spa
31
+ #
32
+ # @param cnam_listing_enabled [Boolean] Enables CNAM listings for this number. Requires cnam_listing_details to also be
33
+ end
34
+ end
35
+ end
36
+ end
@@ -33,10 +33,12 @@ module Telnyx
33
33
  enum: -> { Telnyx::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::CallerIDNameLookupTier }
34
34
 
35
35
  # @!attribute cnam_listing
36
- # The CNAM listing settings for a phone number.
36
+ # The CNAM listing settings for a phone number. See the
37
+ # [Caller ID & CNAM guide](https://developers.telnyx.com/docs/numbers/phone-numbers/caller-id-cnam)
38
+ # for setup steps and coverage details.
37
39
  #
38
- # @return [Telnyx::Models::PhoneNumbers::CnamListing, nil]
39
- optional :cnam_listing, -> { Telnyx::PhoneNumbers::CnamListing }
40
+ # @return [Telnyx::Models::PhoneNumbers::NumbersCnamListing, nil]
41
+ optional :cnam_listing, -> { Telnyx::PhoneNumbers::NumbersCnamListing }
40
42
 
41
43
  # @!attribute connection_id
42
44
  # Identifies the connection associated with this phone number.
@@ -53,8 +55,8 @@ module Telnyx
53
55
  # @!attribute emergency
54
56
  # The emergency services settings for a phone number.
55
57
  #
56
- # @return [Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency, nil]
57
- optional :emergency, -> { Telnyx::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency }
58
+ # @return [Telnyx::Models::PhoneNumbers::EmergencySettings, nil]
59
+ optional :emergency, -> { Telnyx::PhoneNumbers::EmergencySettings }
58
60
 
59
61
  # @!attribute inbound_call_screening
60
62
  # The inbound_call_screening setting is a phone number configuration option
@@ -128,13 +130,13 @@ module Telnyx
128
130
  #
129
131
  # @param caller_id_name_lookup_tier [Symbol, Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::CallerIDNameLookupTier] The inbound caller name lookup tier. The initial tier is `standard`. This settin
130
132
  #
131
- # @param cnam_listing [Telnyx::Models::PhoneNumbers::CnamListing] The CNAM listing settings for a phone number.
133
+ # @param cnam_listing [Telnyx::Models::PhoneNumbers::NumbersCnamListing] The CNAM listing settings for a phone number. See the [Caller ID & CNAM guide](h
132
134
  #
133
135
  # @param connection_id [String] Identifies the connection associated with this phone number.
134
136
  #
135
137
  # @param customer_reference [String] A customer reference string for customer look ups.
136
138
  #
137
- # @param emergency [Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency] The emergency services settings for a phone number.
139
+ # @param emergency [Telnyx::Models::PhoneNumbers::EmergencySettings] The emergency services settings for a phone number.
138
140
  #
139
141
  # @param inbound_call_screening [Symbol, Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::InboundCallScreening] The inbound_call_screening setting is a phone number configuration option variab
140
142
  #
@@ -165,58 +167,6 @@ module Telnyx
165
167
  # @return [Array<Symbol>]
166
168
  end
167
169
 
168
- # @see Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings#emergency
169
- class Emergency < Telnyx::Internal::Type::BaseModel
170
- # @!attribute emergency_address_id
171
- # Identifies the address to be used with emergency services.
172
- #
173
- # @return [String, nil]
174
- optional :emergency_address_id, String
175
-
176
- # @!attribute emergency_enabled
177
- # Allows you to enable or disable emergency services on the phone number. In order
178
- # to enable emergency services, you must also set an emergency_address_id.
179
- #
180
- # @return [Boolean, nil]
181
- optional :emergency_enabled, Telnyx::Internal::Type::Boolean
182
-
183
- # @!attribute emergency_status
184
- # Represents the state of the number regarding emergency activation.
185
- #
186
- # @return [Symbol, Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency::EmergencyStatus, nil]
187
- optional :emergency_status,
188
- enum: -> { Telnyx::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency::EmergencyStatus }
189
-
190
- # @!method initialize(emergency_address_id: nil, emergency_enabled: nil, emergency_status: nil)
191
- # Some parameter documentations has been truncated, see
192
- # {Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency}
193
- # for more details.
194
- #
195
- # The emergency services settings for a phone number.
196
- #
197
- # @param emergency_address_id [String] Identifies the address to be used with emergency services.
198
- #
199
- # @param emergency_enabled [Boolean] Allows you to enable or disable emergency services on the phone number. In order
200
- #
201
- # @param emergency_status [Symbol, Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency::EmergencyStatus] Represents the state of the number regarding emergency activation.
202
-
203
- # Represents the state of the number regarding emergency activation.
204
- #
205
- # @see Telnyx::Models::PhoneNumbers::NumbersPhoneNumberWithVoiceSettings::Emergency#emergency_status
206
- module EmergencyStatus
207
- extend Telnyx::Internal::Type::Enum
208
-
209
- DISABLED = :disabled
210
- ACTIVE = :active
211
- PROVISIONING = :provisioning
212
- DEPROVISIONING = :deprovisioning
213
- PROVISIONING_FAILED = :"provisioning-failed"
214
-
215
- # @!method self.values
216
- # @return [Array<Symbol>]
217
- end
218
- end
219
-
220
170
  # The inbound_call_screening setting is a phone number configuration option
221
171
  # variable that allows users to configure their settings to block or flag
222
172
  # fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This
@@ -33,10 +33,12 @@ module Telnyx
33
33
  enum: -> { Telnyx::PhoneNumbers::NumbersUpdatePhoneNumberVoiceSettingsRequest::CallerIDNameLookupTier }
34
34
 
35
35
  # @!attribute cnam_listing
36
- # The CNAM listing settings for a phone number.
36
+ # The CNAM listing settings for a phone number. See the
37
+ # [Caller ID & CNAM guide](https://developers.telnyx.com/docs/numbers/phone-numbers/caller-id-cnam)
38
+ # for setup steps and coverage details.
37
39
  #
38
- # @return [Telnyx::Models::PhoneNumbers::CnamListing, nil]
39
- optional :cnam_listing, -> { Telnyx::PhoneNumbers::CnamListing }
40
+ # @return [Telnyx::Models::PhoneNumbers::NumbersCnamListing, nil]
41
+ optional :cnam_listing, -> { Telnyx::PhoneNumbers::NumbersCnamListing }
40
42
 
41
43
  # @!attribute inbound_call_screening
42
44
  # The inbound_call_screening setting is a phone number configuration option
@@ -88,7 +90,7 @@ module Telnyx
88
90
  #
89
91
  # @param caller_id_name_lookup_tier [Symbol, Telnyx::Models::PhoneNumbers::NumbersUpdatePhoneNumberVoiceSettingsRequest::CallerIDNameLookupTier] The inbound caller name lookup tier. The initial tier is `standard`. This settin
90
92
  #
91
- # @param cnam_listing [Telnyx::Models::PhoneNumbers::CnamListing] The CNAM listing settings for a phone number.
93
+ # @param cnam_listing [Telnyx::Models::PhoneNumbers::NumbersCnamListing] The CNAM listing settings for a phone number. See the [Caller ID & CNAM guide](h
92
94
  #
93
95
  # @param inbound_call_screening [Symbol, Telnyx::Models::PhoneNumbers::NumbersUpdatePhoneNumberVoiceSettingsRequest::InboundCallScreening] The inbound_call_screening setting is a phone number configuration option variab
94
96
  #
@@ -37,8 +37,8 @@ module Telnyx
37
37
  # @!attribute emergency
38
38
  # The emergency services settings for a phone number.
39
39
  #
40
- # @return [Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency, nil]
41
- optional :emergency, -> { Telnyx::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency }
40
+ # @return [Telnyx::Models::PhoneNumbers::EmergencySettings, nil]
41
+ optional :emergency, -> { Telnyx::PhoneNumbers::EmergencySettings }
42
42
 
43
43
  # @!attribute inbound_call_screening
44
44
  # The inbound_call_screening setting is a phone number configuration option
@@ -113,7 +113,7 @@ module Telnyx
113
113
  #
114
114
  # @param customer_reference [String] A customer reference string for customer look ups.
115
115
  #
116
- # @param emergency [Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency] The emergency services settings for a phone number.
116
+ # @param emergency [Telnyx::Models::PhoneNumbers::EmergencySettings] The emergency services settings for a phone number.
117
117
  #
118
118
  # @param inbound_call_screening [Symbol, Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::InboundCallScreening] The inbound_call_screening setting is a phone number configuration option variab
119
119
  #
@@ -129,58 +129,6 @@ module Telnyx
129
129
  #
130
130
  # @param usage_payment_method [Symbol, Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::UsagePaymentMethod] Controls whether a number is billed per minute or uses your concurrent channels.
131
131
 
132
- # @see Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings#emergency
133
- class Emergency < Telnyx::Internal::Type::BaseModel
134
- # @!attribute emergency_address_id
135
- # Identifies the address to be used with emergency services.
136
- #
137
- # @return [String, nil]
138
- optional :emergency_address_id, String
139
-
140
- # @!attribute emergency_enabled
141
- # Allows you to enable or disable emergency services on the phone number. In order
142
- # to enable emergency services, you must also set an emergency_address_id.
143
- #
144
- # @return [Boolean, nil]
145
- optional :emergency_enabled, Telnyx::Internal::Type::Boolean
146
-
147
- # @!attribute emergency_status
148
- # Represents the state of the number regarding emergency activation.
149
- #
150
- # @return [Symbol, Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency::EmergencyStatus, nil]
151
- optional :emergency_status,
152
- enum: -> { Telnyx::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency::EmergencyStatus }
153
-
154
- # @!method initialize(emergency_address_id: nil, emergency_enabled: nil, emergency_status: nil)
155
- # Some parameter documentations has been truncated, see
156
- # {Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency} for more
157
- # details.
158
- #
159
- # The emergency services settings for a phone number.
160
- #
161
- # @param emergency_address_id [String] Identifies the address to be used with emergency services.
162
- #
163
- # @param emergency_enabled [Boolean] Allows you to enable or disable emergency services on the phone number. In order
164
- #
165
- # @param emergency_status [Symbol, Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency::EmergencyStatus] Represents the state of the number regarding emergency activation.
166
-
167
- # Represents the state of the number regarding emergency activation.
168
- #
169
- # @see Telnyx::Models::PhoneNumbers::PhoneNumberWithVoiceSettings::Emergency#emergency_status
170
- module EmergencyStatus
171
- extend Telnyx::Internal::Type::Enum
172
-
173
- DISABLED = :disabled
174
- ACTIVE = :active
175
- PROVISIONING = :provisioning
176
- DEPROVISIONING = :deprovisioning
177
- PROVISIONING_FAILED = :"provisioning-failed"
178
-
179
- # @!method self.values
180
- # @return [Array<Symbol>]
181
- end
182
- end
183
-
184
132
  # The inbound_call_screening setting is a phone number configuration option
185
133
  # variable that allows users to configure their settings to block or flag
186
134
  # fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This
@@ -16,8 +16,8 @@ module Telnyx
16
16
  # @!attribute connection_id
17
17
  # The identifier of the Mobile Voice Connection to associate with the SIM cards.
18
18
  # The connection must be owned by the same user and of type
19
- # <code>mobile_voice</code>. If omitted, voice is enabled without a connection
20
- # association.
19
+ # <code>mobile_voice</code>. If omitted, a default Mobile Voice Connection is
20
+ # created and assigned automatically.
21
21
  #
22
22
  # @return [String, nil]
23
23
  optional :connection_id, String
@@ -16,8 +16,8 @@ module Telnyx
16
16
  # @!attribute connection_id
17
17
  # The identifier of the Mobile Voice Connection to associate with this SIM card.
18
18
  # The connection must be owned by the same user and of type
19
- # <code>mobile_voice</code>. If omitted, voice is enabled without a connection
20
- # association.
19
+ # <code>mobile_voice</code>. If omitted, a default Mobile Voice Connection is
20
+ # created and assigned automatically.
21
21
  #
22
22
  # @return [String, nil]
23
23
  optional :connection_id, String