telnyx 4.0.0 → 4.2.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 (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
  6. data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
  7. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  8. data/lib/telnyx/models/calls/transcription_start_request.rb +448 -10
  9. data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
  10. data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
  11. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
  12. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
  13. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
  14. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
  15. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
  16. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
  17. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
  18. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
  19. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
  20. data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
  21. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
  22. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
  23. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
  24. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
  25. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
  26. data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
  27. data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
  28. data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
  29. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
  30. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
  31. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
  32. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
  33. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
  34. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
  35. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
  36. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
  37. data/lib/telnyx/models/messaging_profile.rb +9 -1
  38. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  39. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  40. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  41. data/lib/telnyx/models/oauth_client.rb +173 -0
  42. data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
  43. data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
  44. data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
  45. data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
  46. data/lib/telnyx/models/oauth_grant.rb +68 -0
  47. data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
  48. data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
  49. data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
  50. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  51. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  52. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  53. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  54. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  55. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  56. data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
  57. data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
  58. data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
  59. data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
  60. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  61. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  62. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  63. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  64. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  65. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  66. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  67. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  68. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  69. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  70. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  71. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  72. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  73. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  74. data/lib/telnyx/models.rb +7 -1
  75. data/lib/telnyx/resources/advanced_orders.rb +26 -26
  76. data/lib/telnyx/resources/calls/actions.rb +2 -2
  77. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
  78. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
  79. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  80. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  81. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  82. data/lib/telnyx/version.rb +1 -1
  83. data/lib/telnyx.rb +11 -2
  84. data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
  85. data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
  86. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  87. data/rbi/telnyx/models/calls/transcription_start_request.rbi +1488 -15
  88. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
  89. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
  90. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
  91. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
  92. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
  93. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
  94. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
  95. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
  96. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
  97. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
  98. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
  99. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
  100. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
  101. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
  102. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
  103. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
  104. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
  105. data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
  106. data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
  107. data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
  108. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
  109. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
  110. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
  111. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
  112. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
  113. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
  114. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
  115. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
  116. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  117. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  118. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  119. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  120. data/rbi/telnyx/models/oauth_client.rbi +250 -0
  121. data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
  122. data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
  123. data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
  124. data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
  125. data/rbi/telnyx/models/oauth_grant.rbi +95 -0
  126. data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
  127. data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
  128. data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
  129. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  130. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  131. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  132. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  133. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  134. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  135. data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
  136. data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
  137. data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
  138. data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
  139. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  140. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  141. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  142. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  143. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  144. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  145. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  146. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  147. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  148. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  149. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  150. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  151. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  152. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  153. data/rbi/telnyx/models.rbi +9 -1
  154. data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
  155. data/rbi/telnyx/resources/calls/actions.rbi +7 -3
  156. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
  157. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
  158. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  159. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  160. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  161. data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
  162. data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
  163. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  164. data/sig/telnyx/models/calls/transcription_start_request.rbs +594 -11
  165. data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
  166. data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
  167. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
  168. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
  169. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
  170. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
  171. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
  172. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
  173. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
  174. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
  175. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
  176. data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
  177. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
  178. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
  179. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
  180. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
  181. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
  182. data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
  183. data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
  184. data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
  185. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
  186. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
  187. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
  188. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
  189. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
  190. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
  191. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
  192. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
  193. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  194. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  195. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  196. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  197. data/sig/telnyx/models/oauth_client.rbs +137 -0
  198. data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
  199. data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
  200. data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
  201. data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
  202. data/sig/telnyx/models/oauth_grant.rbs +55 -0
  203. data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
  204. data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
  205. data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
  206. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  207. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  208. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  209. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  210. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  211. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  212. data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
  213. data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
  214. data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
  215. data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
  216. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  217. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  218. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  219. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  220. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  221. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  222. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  223. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  224. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  225. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  226. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  227. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  228. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  229. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  230. data/sig/telnyx/models.rbs +7 -1
  231. data/sig/telnyx/resources/advanced_orders.rbs +6 -6
  232. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  233. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
  234. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
  235. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  236. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  237. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  238. metadata +35 -8
  239. data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -10,6 +10,7 @@ module Telnyx
10
10
  enabled: bool,
11
11
  mms_fall_back_to_sms: bool,
12
12
  mms_transcoding: bool,
13
+ mobile_only: bool,
13
14
  number_pool_settings: Telnyx::NumberPoolSettings?,
14
15
  url_shortener_settings: Telnyx::URLShortenerSettings?,
15
16
  webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -48,6 +49,10 @@ module Telnyx
48
49
 
49
50
  def mms_transcoding=: (bool) -> bool
50
51
 
52
+ attr_reader mobile_only: bool?
53
+
54
+ def mobile_only=: (bool) -> bool
55
+
51
56
  attr_accessor number_pool_settings: Telnyx::NumberPoolSettings?
52
57
 
53
58
  attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
@@ -71,6 +76,7 @@ module Telnyx
71
76
  ?enabled: bool,
72
77
  ?mms_fall_back_to_sms: bool,
73
78
  ?mms_transcoding: bool,
79
+ ?mobile_only: bool,
74
80
  ?number_pool_settings: Telnyx::NumberPoolSettings?,
75
81
  ?url_shortener_settings: Telnyx::URLShortenerSettings?,
76
82
  ?webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -88,6 +94,7 @@ module Telnyx
88
94
  enabled: bool,
89
95
  mms_fall_back_to_sms: bool,
90
96
  mms_transcoding: bool,
97
+ mobile_only: bool,
91
98
  number_pool_settings: Telnyx::NumberPoolSettings?,
92
99
  url_shortener_settings: Telnyx::URLShortenerSettings?,
93
100
  webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -8,6 +8,7 @@ module Telnyx
8
8
  enabled: bool,
9
9
  mms_fall_back_to_sms: bool,
10
10
  mms_transcoding: bool,
11
+ mobile_only: bool,
11
12
  name: String,
12
13
  number_pool_settings: Telnyx::NumberPoolSettings?,
13
14
  url_shortener_settings: Telnyx::URLShortenerSettings?,
@@ -45,6 +46,10 @@ module Telnyx
45
46
 
46
47
  def mms_transcoding=: (bool) -> bool
47
48
 
49
+ attr_reader mobile_only: bool?
50
+
51
+ def mobile_only=: (bool) -> bool
52
+
48
53
  attr_reader name: String?
49
54
 
50
55
  def name=: (String) -> String
@@ -78,6 +83,7 @@ module Telnyx
78
83
  ?enabled: bool,
79
84
  ?mms_fall_back_to_sms: bool,
80
85
  ?mms_transcoding: bool,
86
+ ?mobile_only: bool,
81
87
  ?name: String,
82
88
  ?number_pool_settings: Telnyx::NumberPoolSettings?,
83
89
  ?url_shortener_settings: Telnyx::URLShortenerSettings?,
@@ -96,6 +102,7 @@ module Telnyx
96
102
  enabled: bool,
97
103
  mms_fall_back_to_sms: bool,
98
104
  mms_transcoding: bool,
105
+ mobile_only: bool,
99
106
  name: String,
100
107
  number_pool_settings: Telnyx::NumberPoolSettings?,
101
108
  url_shortener_settings: Telnyx::URLShortenerSettings?,
@@ -26,6 +26,116 @@ module Telnyx
26
26
  data: ::Array[Telnyx::Models::NetworkListInterfacesResponse::Data],
27
27
  meta: Telnyx::PaginationMeta
28
28
  }
29
+
30
+ type data =
31
+ {
32
+ id: String,
33
+ created_at: String,
34
+ record_type: String,
35
+ updated_at: String,
36
+ name: String,
37
+ network_id: String,
38
+ status: Telnyx::Models::interface_status,
39
+ region: Telnyx::Models::NetworkListInterfacesResponse::Data::Region,
40
+ region_code: String,
41
+ type: String
42
+ }
43
+
44
+ class Data < Telnyx::Internal::Type::BaseModel
45
+ attr_reader name: String?
46
+
47
+ def name=: (String) -> String
48
+
49
+ attr_reader network_id: String?
50
+
51
+ def network_id=: (String) -> String
52
+
53
+ attr_reader region: Telnyx::Models::NetworkListInterfacesResponse::Data::Region?
54
+
55
+ def region=: (
56
+ Telnyx::Models::NetworkListInterfacesResponse::Data::Region
57
+ ) -> Telnyx::Models::NetworkListInterfacesResponse::Data::Region
58
+
59
+ attr_reader region_code: String?
60
+
61
+ def region_code=: (String) -> String
62
+
63
+ attr_reader id: String?
64
+
65
+ def id=: (String) -> String
66
+
67
+ attr_reader created_at: String?
68
+
69
+ def created_at=: (String) -> String
70
+
71
+ attr_reader record_type: String?
72
+
73
+ def record_type=: (String) -> String
74
+
75
+ attr_reader updated_at: String?
76
+
77
+ def updated_at=: (String) -> String
78
+
79
+ attr_reader status: Telnyx::Models::interface_status?
80
+
81
+ def status=: (
82
+ Telnyx::Models::interface_status
83
+ ) -> Telnyx::Models::interface_status
84
+
85
+ attr_reader type: String?
86
+
87
+ def type=: (String) -> String
88
+
89
+ def initialize: (
90
+ ?id: String,
91
+ ?created_at: String,
92
+ ?record_type: String,
93
+ ?updated_at: String,
94
+ ?name: String,
95
+ ?network_id: String,
96
+ ?status: Telnyx::Models::interface_status,
97
+ ?region: Telnyx::Models::NetworkListInterfacesResponse::Data::Region,
98
+ ?region_code: String,
99
+ ?type: String
100
+ ) -> void
101
+
102
+ def to_hash: -> {
103
+ id: String,
104
+ created_at: String,
105
+ record_type: String,
106
+ updated_at: String,
107
+ name: String,
108
+ network_id: String,
109
+ status: Telnyx::Models::interface_status,
110
+ region: Telnyx::Models::NetworkListInterfacesResponse::Data::Region,
111
+ region_code: String,
112
+ type: String
113
+ }
114
+
115
+ type region = { code: String, name: String, record_type: String }
116
+
117
+ class Region < Telnyx::Internal::Type::BaseModel
118
+ attr_reader code: String?
119
+
120
+ def code=: (String) -> String
121
+
122
+ attr_reader name: String?
123
+
124
+ def name=: (String) -> String
125
+
126
+ attr_reader record_type: String?
127
+
128
+ def record_type=: (String) -> String
129
+
130
+ def initialize: (
131
+ ?code: String,
132
+ ?name: String,
133
+ ?record_type: String
134
+ ) -> void
135
+
136
+ def to_hash: -> { code: String, name: String, record_type: String }
137
+ end
138
+ end
29
139
  end
30
140
  end
31
141
  end
@@ -0,0 +1,137 @@
1
+ module Telnyx
2
+ module Models
3
+ type oauth_client =
4
+ {
5
+ client_id: String,
6
+ client_type: Telnyx::Models::OAuthClient::client_type,
7
+ created_at: Time,
8
+ name: String,
9
+ org_id: String,
10
+ record_type: Telnyx::Models::OAuthClient::record_type,
11
+ require_pkce: bool,
12
+ updated_at: Time,
13
+ user_id: String,
14
+ allowed_grant_types: ::Array[Telnyx::Models::OAuthClient::allowed_grant_type],
15
+ allowed_scopes: ::Array[String],
16
+ client_secret: String?,
17
+ logo_uri: String?,
18
+ policy_uri: String?,
19
+ redirect_uris: ::Array[String],
20
+ tos_uri: String?
21
+ }
22
+
23
+ class OAuthClient < Telnyx::Internal::Type::BaseModel
24
+ attr_accessor client_id: String
25
+
26
+ attr_accessor client_type: Telnyx::Models::OAuthClient::client_type
27
+
28
+ attr_accessor created_at: Time
29
+
30
+ attr_accessor name: String
31
+
32
+ attr_accessor org_id: String
33
+
34
+ attr_accessor record_type: Telnyx::Models::OAuthClient::record_type
35
+
36
+ attr_accessor require_pkce: bool
37
+
38
+ attr_accessor updated_at: Time
39
+
40
+ attr_accessor user_id: String
41
+
42
+ attr_reader allowed_grant_types: ::Array[Telnyx::Models::OAuthClient::allowed_grant_type]?
43
+
44
+ def allowed_grant_types=: (
45
+ ::Array[Telnyx::Models::OAuthClient::allowed_grant_type]
46
+ ) -> ::Array[Telnyx::Models::OAuthClient::allowed_grant_type]
47
+
48
+ attr_reader allowed_scopes: ::Array[String]?
49
+
50
+ def allowed_scopes=: (::Array[String]) -> ::Array[String]
51
+
52
+ attr_accessor client_secret: String?
53
+
54
+ attr_accessor logo_uri: String?
55
+
56
+ attr_accessor policy_uri: String?
57
+
58
+ attr_reader redirect_uris: ::Array[String]?
59
+
60
+ def redirect_uris=: (::Array[String]) -> ::Array[String]
61
+
62
+ attr_accessor tos_uri: String?
63
+
64
+ def initialize: (
65
+ client_id: String,
66
+ client_type: Telnyx::Models::OAuthClient::client_type,
67
+ created_at: Time,
68
+ name: String,
69
+ org_id: String,
70
+ record_type: Telnyx::Models::OAuthClient::record_type,
71
+ require_pkce: bool,
72
+ updated_at: Time,
73
+ user_id: String,
74
+ ?allowed_grant_types: ::Array[Telnyx::Models::OAuthClient::allowed_grant_type],
75
+ ?allowed_scopes: ::Array[String],
76
+ ?client_secret: String?,
77
+ ?logo_uri: String?,
78
+ ?policy_uri: String?,
79
+ ?redirect_uris: ::Array[String],
80
+ ?tos_uri: String?
81
+ ) -> void
82
+
83
+ def to_hash: -> {
84
+ client_id: String,
85
+ client_type: Telnyx::Models::OAuthClient::client_type,
86
+ created_at: Time,
87
+ name: String,
88
+ org_id: String,
89
+ record_type: Telnyx::Models::OAuthClient::record_type,
90
+ require_pkce: bool,
91
+ updated_at: Time,
92
+ user_id: String,
93
+ allowed_grant_types: ::Array[Telnyx::Models::OAuthClient::allowed_grant_type],
94
+ allowed_scopes: ::Array[String],
95
+ client_secret: String?,
96
+ logo_uri: String?,
97
+ policy_uri: String?,
98
+ redirect_uris: ::Array[String],
99
+ tos_uri: String?
100
+ }
101
+
102
+ type client_type = :public | :confidential
103
+
104
+ module ClientType
105
+ extend Telnyx::Internal::Type::Enum
106
+
107
+ PUBLIC: :public
108
+ CONFIDENTIAL: :confidential
109
+
110
+ def self?.values: -> ::Array[Telnyx::Models::OAuthClient::client_type]
111
+ end
112
+
113
+ type record_type = :oauth_client
114
+
115
+ module RecordType
116
+ extend Telnyx::Internal::Type::Enum
117
+
118
+ OAUTH_CLIENT: :oauth_client
119
+
120
+ def self?.values: -> ::Array[Telnyx::Models::OAuthClient::record_type]
121
+ end
122
+
123
+ type allowed_grant_type =
124
+ :client_credentials | :authorization_code | :refresh_token
125
+
126
+ module AllowedGrantType
127
+ extend Telnyx::Internal::Type::Enum
128
+
129
+ CLIENT_CREDENTIALS: :client_credentials
130
+ AUTHORIZATION_CODE: :authorization_code
131
+ REFRESH_TOKEN: :refresh_token
132
+
133
+ def self?.values: -> ::Array[Telnyx::Models::OAuthClient::allowed_grant_type]
134
+ end
135
+ end
136
+ end
137
+ end
@@ -1,154 +1,15 @@
1
1
  module Telnyx
2
2
  module Models
3
- type oauth_client_create_response =
4
- { data: Telnyx::Models::OAuthClientCreateResponse::Data }
3
+ type oauth_client_create_response = { data: Telnyx::OAuthClient }
5
4
 
6
5
  class OAuthClientCreateResponse < Telnyx::Internal::Type::BaseModel
7
- attr_reader data: Telnyx::Models::OAuthClientCreateResponse::Data?
6
+ attr_reader data: Telnyx::OAuthClient?
8
7
 
9
- def data=: (
10
- Telnyx::Models::OAuthClientCreateResponse::Data
11
- ) -> Telnyx::Models::OAuthClientCreateResponse::Data
8
+ def data=: (Telnyx::OAuthClient) -> Telnyx::OAuthClient
12
9
 
13
- def initialize: (
14
- ?data: Telnyx::Models::OAuthClientCreateResponse::Data
15
- ) -> void
10
+ def initialize: (?data: Telnyx::OAuthClient) -> void
16
11
 
17
- def to_hash: -> { data: Telnyx::Models::OAuthClientCreateResponse::Data }
18
-
19
- type data =
20
- {
21
- client_id: String,
22
- client_type: Telnyx::Models::OAuthClientCreateResponse::Data::client_type,
23
- created_at: Time,
24
- name: String,
25
- org_id: String,
26
- record_type: Telnyx::Models::OAuthClientCreateResponse::Data::record_type,
27
- require_pkce: bool,
28
- updated_at: Time,
29
- user_id: String,
30
- allowed_grant_types: ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type],
31
- allowed_scopes: ::Array[String],
32
- client_secret: String?,
33
- logo_uri: String?,
34
- policy_uri: String?,
35
- redirect_uris: ::Array[String],
36
- tos_uri: String?
37
- }
38
-
39
- class Data < Telnyx::Internal::Type::BaseModel
40
- attr_accessor client_id: String
41
-
42
- attr_accessor client_type: Telnyx::Models::OAuthClientCreateResponse::Data::client_type
43
-
44
- attr_accessor created_at: Time
45
-
46
- attr_accessor name: String
47
-
48
- attr_accessor org_id: String
49
-
50
- attr_accessor record_type: Telnyx::Models::OAuthClientCreateResponse::Data::record_type
51
-
52
- attr_accessor require_pkce: bool
53
-
54
- attr_accessor updated_at: Time
55
-
56
- attr_accessor user_id: String
57
-
58
- attr_reader allowed_grant_types: ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type]?
59
-
60
- def allowed_grant_types=: (
61
- ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type]
62
- ) -> ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type]
63
-
64
- attr_reader allowed_scopes: ::Array[String]?
65
-
66
- def allowed_scopes=: (::Array[String]) -> ::Array[String]
67
-
68
- attr_accessor client_secret: String?
69
-
70
- attr_accessor logo_uri: String?
71
-
72
- attr_accessor policy_uri: String?
73
-
74
- attr_reader redirect_uris: ::Array[String]?
75
-
76
- def redirect_uris=: (::Array[String]) -> ::Array[String]
77
-
78
- attr_accessor tos_uri: String?
79
-
80
- def initialize: (
81
- client_id: String,
82
- client_type: Telnyx::Models::OAuthClientCreateResponse::Data::client_type,
83
- created_at: Time,
84
- name: String,
85
- org_id: String,
86
- record_type: Telnyx::Models::OAuthClientCreateResponse::Data::record_type,
87
- require_pkce: bool,
88
- updated_at: Time,
89
- user_id: String,
90
- ?allowed_grant_types: ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type],
91
- ?allowed_scopes: ::Array[String],
92
- ?client_secret: String?,
93
- ?logo_uri: String?,
94
- ?policy_uri: String?,
95
- ?redirect_uris: ::Array[String],
96
- ?tos_uri: String?
97
- ) -> void
98
-
99
- def to_hash: -> {
100
- client_id: String,
101
- client_type: Telnyx::Models::OAuthClientCreateResponse::Data::client_type,
102
- created_at: Time,
103
- name: String,
104
- org_id: String,
105
- record_type: Telnyx::Models::OAuthClientCreateResponse::Data::record_type,
106
- require_pkce: bool,
107
- updated_at: Time,
108
- user_id: String,
109
- allowed_grant_types: ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type],
110
- allowed_scopes: ::Array[String],
111
- client_secret: String?,
112
- logo_uri: String?,
113
- policy_uri: String?,
114
- redirect_uris: ::Array[String],
115
- tos_uri: String?
116
- }
117
-
118
- type client_type = :public | :confidential
119
-
120
- module ClientType
121
- extend Telnyx::Internal::Type::Enum
122
-
123
- PUBLIC: :public
124
- CONFIDENTIAL: :confidential
125
-
126
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::client_type]
127
- end
128
-
129
- type record_type = :oauth_client
130
-
131
- module RecordType
132
- extend Telnyx::Internal::Type::Enum
133
-
134
- OAUTH_CLIENT: :oauth_client
135
-
136
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::record_type]
137
- end
138
-
139
- type allowed_grant_type =
140
- :client_credentials | :authorization_code | :refresh_token
141
-
142
- module AllowedGrantType
143
- extend Telnyx::Internal::Type::Enum
144
-
145
- CLIENT_CREDENTIALS: :client_credentials
146
- AUTHORIZATION_CODE: :authorization_code
147
- REFRESH_TOKEN: :refresh_token
148
-
149
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientCreateResponse::Data::allowed_grant_type]
150
- end
151
- end
12
+ def to_hash: -> { data: Telnyx::OAuthClient }
152
13
  end
153
14
  end
154
15
  end
@@ -2,16 +2,14 @@ module Telnyx
2
2
  module Models
3
3
  type oauth_client_list_response =
4
4
  {
5
- data: ::Array[Telnyx::Models::OAuthClientListResponse::Data],
5
+ data: ::Array[Telnyx::OAuthClient],
6
6
  meta: Telnyx::Models::OAuthClientListResponse::Meta
7
7
  }
8
8
 
9
9
  class OAuthClientListResponse < Telnyx::Internal::Type::BaseModel
10
- attr_reader data: ::Array[Telnyx::Models::OAuthClientListResponse::Data]?
10
+ attr_reader data: ::Array[Telnyx::OAuthClient]?
11
11
 
12
- def data=: (
13
- ::Array[Telnyx::Models::OAuthClientListResponse::Data]
14
- ) -> ::Array[Telnyx::Models::OAuthClientListResponse::Data]
12
+ def data=: (::Array[Telnyx::OAuthClient]) -> ::Array[Telnyx::OAuthClient]
15
13
 
16
14
  attr_reader meta: Telnyx::Models::OAuthClientListResponse::Meta?
17
15
 
@@ -20,149 +18,15 @@ module Telnyx
20
18
  ) -> Telnyx::Models::OAuthClientListResponse::Meta
21
19
 
22
20
  def initialize: (
23
- ?data: ::Array[Telnyx::Models::OAuthClientListResponse::Data],
21
+ ?data: ::Array[Telnyx::OAuthClient],
24
22
  ?meta: Telnyx::Models::OAuthClientListResponse::Meta
25
23
  ) -> void
26
24
 
27
25
  def to_hash: -> {
28
- data: ::Array[Telnyx::Models::OAuthClientListResponse::Data],
26
+ data: ::Array[Telnyx::OAuthClient],
29
27
  meta: Telnyx::Models::OAuthClientListResponse::Meta
30
28
  }
31
29
 
32
- type data =
33
- {
34
- client_id: String,
35
- client_type: Telnyx::Models::OAuthClientListResponse::Data::client_type,
36
- created_at: Time,
37
- name: String,
38
- org_id: String,
39
- record_type: Telnyx::Models::OAuthClientListResponse::Data::record_type,
40
- require_pkce: bool,
41
- updated_at: Time,
42
- user_id: String,
43
- allowed_grant_types: ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type],
44
- allowed_scopes: ::Array[String],
45
- client_secret: String?,
46
- logo_uri: String?,
47
- policy_uri: String?,
48
- redirect_uris: ::Array[String],
49
- tos_uri: String?
50
- }
51
-
52
- class Data < Telnyx::Internal::Type::BaseModel
53
- attr_accessor client_id: String
54
-
55
- attr_accessor client_type: Telnyx::Models::OAuthClientListResponse::Data::client_type
56
-
57
- attr_accessor created_at: Time
58
-
59
- attr_accessor name: String
60
-
61
- attr_accessor org_id: String
62
-
63
- attr_accessor record_type: Telnyx::Models::OAuthClientListResponse::Data::record_type
64
-
65
- attr_accessor require_pkce: bool
66
-
67
- attr_accessor updated_at: Time
68
-
69
- attr_accessor user_id: String
70
-
71
- attr_reader allowed_grant_types: ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type]?
72
-
73
- def allowed_grant_types=: (
74
- ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type]
75
- ) -> ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type]
76
-
77
- attr_reader allowed_scopes: ::Array[String]?
78
-
79
- def allowed_scopes=: (::Array[String]) -> ::Array[String]
80
-
81
- attr_accessor client_secret: String?
82
-
83
- attr_accessor logo_uri: String?
84
-
85
- attr_accessor policy_uri: String?
86
-
87
- attr_reader redirect_uris: ::Array[String]?
88
-
89
- def redirect_uris=: (::Array[String]) -> ::Array[String]
90
-
91
- attr_accessor tos_uri: String?
92
-
93
- def initialize: (
94
- client_id: String,
95
- client_type: Telnyx::Models::OAuthClientListResponse::Data::client_type,
96
- created_at: Time,
97
- name: String,
98
- org_id: String,
99
- record_type: Telnyx::Models::OAuthClientListResponse::Data::record_type,
100
- require_pkce: bool,
101
- updated_at: Time,
102
- user_id: String,
103
- ?allowed_grant_types: ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type],
104
- ?allowed_scopes: ::Array[String],
105
- ?client_secret: String?,
106
- ?logo_uri: String?,
107
- ?policy_uri: String?,
108
- ?redirect_uris: ::Array[String],
109
- ?tos_uri: String?
110
- ) -> void
111
-
112
- def to_hash: -> {
113
- client_id: String,
114
- client_type: Telnyx::Models::OAuthClientListResponse::Data::client_type,
115
- created_at: Time,
116
- name: String,
117
- org_id: String,
118
- record_type: Telnyx::Models::OAuthClientListResponse::Data::record_type,
119
- require_pkce: bool,
120
- updated_at: Time,
121
- user_id: String,
122
- allowed_grant_types: ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type],
123
- allowed_scopes: ::Array[String],
124
- client_secret: String?,
125
- logo_uri: String?,
126
- policy_uri: String?,
127
- redirect_uris: ::Array[String],
128
- tos_uri: String?
129
- }
130
-
131
- type client_type = :public | :confidential
132
-
133
- module ClientType
134
- extend Telnyx::Internal::Type::Enum
135
-
136
- PUBLIC: :public
137
- CONFIDENTIAL: :confidential
138
-
139
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientListResponse::Data::client_type]
140
- end
141
-
142
- type record_type = :oauth_client
143
-
144
- module RecordType
145
- extend Telnyx::Internal::Type::Enum
146
-
147
- OAUTH_CLIENT: :oauth_client
148
-
149
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientListResponse::Data::record_type]
150
- end
151
-
152
- type allowed_grant_type =
153
- :client_credentials | :authorization_code | :refresh_token
154
-
155
- module AllowedGrantType
156
- extend Telnyx::Internal::Type::Enum
157
-
158
- CLIENT_CREDENTIALS: :client_credentials
159
- AUTHORIZATION_CODE: :authorization_code
160
- REFRESH_TOKEN: :refresh_token
161
-
162
- def self?.values: -> ::Array[Telnyx::Models::OAuthClientListResponse::Data::allowed_grant_type]
163
- end
164
- end
165
-
166
30
  type meta =
167
31
  {
168
32
  page_number: Integer,