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
@@ -11,6 +11,121 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::PublicInternetGatewayCreateResponse::Data]
14
+
15
+ # @see Telnyx::Models::PublicInternetGatewayCreateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute region
30
+ #
31
+ # @return [Telnyx::Models::PublicInternetGatewayCreateResponse::Data::Region, nil]
32
+ optional :region, -> { Telnyx::Models::PublicInternetGatewayCreateResponse::Data::Region }
33
+
34
+ # @!attribute region_code
35
+ # The region interface is deployed to.
36
+ #
37
+ # @return [String, nil]
38
+ optional :region_code, String
39
+
40
+ response_only do
41
+ # @!attribute id
42
+ # Identifies the resource.
43
+ #
44
+ # @return [String, nil]
45
+ optional :id, String
46
+
47
+ # @!attribute created_at
48
+ # ISO 8601 formatted date-time indicating when the resource was created.
49
+ #
50
+ # @return [String, nil]
51
+ optional :created_at, String
52
+
53
+ # @!attribute record_type
54
+ # Identifies the type of the resource.
55
+ #
56
+ # @return [String, nil]
57
+ optional :record_type, String
58
+
59
+ # @!attribute updated_at
60
+ # ISO 8601 formatted date-time indicating when the resource was updated.
61
+ #
62
+ # @return [String, nil]
63
+ optional :updated_at, String
64
+
65
+ # @!attribute status
66
+ # The current status of the interface deployment.
67
+ #
68
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
69
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
70
+
71
+ # @!attribute public_ip
72
+ # The publically accessible ip for this interface.
73
+ #
74
+ # @return [String, nil]
75
+ optional :public_ip, String
76
+ end
77
+
78
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, public_ip: nil, region: nil, region_code: nil)
79
+ # @param id [String] Identifies the resource.
80
+ #
81
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
82
+ #
83
+ # @param record_type [String] Identifies the type of the resource.
84
+ #
85
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
86
+ #
87
+ # @param name [String] A user specified name for the interface.
88
+ #
89
+ # @param network_id [String] The id of the network associated with the interface.
90
+ #
91
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
92
+ #
93
+ # @param public_ip [String] The publically accessible ip for this interface.
94
+ #
95
+ # @param region [Telnyx::Models::PublicInternetGatewayCreateResponse::Data::Region]
96
+ #
97
+ # @param region_code [String] The region interface is deployed to.
98
+
99
+ # @see Telnyx::Models::PublicInternetGatewayCreateResponse::Data#region
100
+ class Region < Telnyx::Internal::Type::BaseModel
101
+ # @!attribute code
102
+ # Region code of the interface.
103
+ #
104
+ # @return [String, nil]
105
+ optional :code, String
106
+
107
+ # @!attribute name
108
+ # Region name of the interface.
109
+ #
110
+ # @return [String, nil]
111
+ optional :name, String
112
+
113
+ response_only do
114
+ # @!attribute record_type
115
+ # Identifies the type of the resource.
116
+ #
117
+ # @return [String, nil]
118
+ optional :record_type, String
119
+ end
120
+
121
+ # @!method initialize(code: nil, name: nil, record_type: nil)
122
+ # @param code [String] Region code of the interface.
123
+ #
124
+ # @param name [String] Region name of the interface.
125
+ #
126
+ # @param record_type [String] Identifies the type of the resource.
127
+ end
128
+ end
14
129
  end
15
130
  end
16
131
  end
@@ -11,6 +11,121 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data]
14
+
15
+ # @see Telnyx::Models::PublicInternetGatewayDeleteResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute region
30
+ #
31
+ # @return [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region, nil]
32
+ optional :region, -> { Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region }
33
+
34
+ # @!attribute region_code
35
+ # The region interface is deployed to.
36
+ #
37
+ # @return [String, nil]
38
+ optional :region_code, String
39
+
40
+ response_only do
41
+ # @!attribute id
42
+ # Identifies the resource.
43
+ #
44
+ # @return [String, nil]
45
+ optional :id, String
46
+
47
+ # @!attribute created_at
48
+ # ISO 8601 formatted date-time indicating when the resource was created.
49
+ #
50
+ # @return [String, nil]
51
+ optional :created_at, String
52
+
53
+ # @!attribute record_type
54
+ # Identifies the type of the resource.
55
+ #
56
+ # @return [String, nil]
57
+ optional :record_type, String
58
+
59
+ # @!attribute updated_at
60
+ # ISO 8601 formatted date-time indicating when the resource was updated.
61
+ #
62
+ # @return [String, nil]
63
+ optional :updated_at, String
64
+
65
+ # @!attribute status
66
+ # The current status of the interface deployment.
67
+ #
68
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
69
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
70
+
71
+ # @!attribute public_ip
72
+ # The publically accessible ip for this interface.
73
+ #
74
+ # @return [String, nil]
75
+ optional :public_ip, String
76
+ end
77
+
78
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, public_ip: nil, region: nil, region_code: nil)
79
+ # @param id [String] Identifies the resource.
80
+ #
81
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
82
+ #
83
+ # @param record_type [String] Identifies the type of the resource.
84
+ #
85
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
86
+ #
87
+ # @param name [String] A user specified name for the interface.
88
+ #
89
+ # @param network_id [String] The id of the network associated with the interface.
90
+ #
91
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
92
+ #
93
+ # @param public_ip [String] The publically accessible ip for this interface.
94
+ #
95
+ # @param region [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region]
96
+ #
97
+ # @param region_code [String] The region interface is deployed to.
98
+
99
+ # @see Telnyx::Models::PublicInternetGatewayDeleteResponse::Data#region
100
+ class Region < Telnyx::Internal::Type::BaseModel
101
+ # @!attribute code
102
+ # Region code of the interface.
103
+ #
104
+ # @return [String, nil]
105
+ optional :code, String
106
+
107
+ # @!attribute name
108
+ # Region name of the interface.
109
+ #
110
+ # @return [String, nil]
111
+ optional :name, String
112
+
113
+ response_only do
114
+ # @!attribute record_type
115
+ # Identifies the type of the resource.
116
+ #
117
+ # @return [String, nil]
118
+ optional :record_type, String
119
+ end
120
+
121
+ # @!method initialize(code: nil, name: nil, record_type: nil)
122
+ # @param code [String] Region code of the interface.
123
+ #
124
+ # @param name [String] Region name of the interface.
125
+ #
126
+ # @param record_type [String] Identifies the type of the resource.
127
+ end
128
+ end
14
129
  end
15
130
  end
16
131
  end
@@ -18,6 +18,120 @@ module Telnyx
18
18
  # @!method initialize(data: nil, meta: nil)
19
19
  # @param data [Array<Telnyx::Models::PublicInternetGatewayListResponse::Data>]
20
20
  # @param meta [Telnyx::Models::PaginationMeta]
21
+
22
+ class Data < Telnyx::Internal::Type::BaseModel
23
+ # @!attribute name
24
+ # A user specified name for the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :name, String
28
+
29
+ # @!attribute network_id
30
+ # The id of the network associated with the interface.
31
+ #
32
+ # @return [String, nil]
33
+ optional :network_id, String
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::PublicInternetGatewayListResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::PublicInternetGatewayListResponse::Data::Region }
39
+
40
+ # @!attribute region_code
41
+ # The region interface is deployed to.
42
+ #
43
+ # @return [String, nil]
44
+ optional :region_code, String
45
+
46
+ response_only do
47
+ # @!attribute id
48
+ # Identifies the resource.
49
+ #
50
+ # @return [String, nil]
51
+ optional :id, String
52
+
53
+ # @!attribute created_at
54
+ # ISO 8601 formatted date-time indicating when the resource was created.
55
+ #
56
+ # @return [String, nil]
57
+ optional :created_at, String
58
+
59
+ # @!attribute record_type
60
+ # Identifies the type of the resource.
61
+ #
62
+ # @return [String, nil]
63
+ optional :record_type, String
64
+
65
+ # @!attribute updated_at
66
+ # ISO 8601 formatted date-time indicating when the resource was updated.
67
+ #
68
+ # @return [String, nil]
69
+ optional :updated_at, String
70
+
71
+ # @!attribute status
72
+ # The current status of the interface deployment.
73
+ #
74
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
75
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
76
+
77
+ # @!attribute public_ip
78
+ # The publically accessible ip for this interface.
79
+ #
80
+ # @return [String, nil]
81
+ optional :public_ip, String
82
+ end
83
+
84
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, public_ip: nil, region: nil, region_code: nil)
85
+ # @param id [String] Identifies the resource.
86
+ #
87
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
88
+ #
89
+ # @param record_type [String] Identifies the type of the resource.
90
+ #
91
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
92
+ #
93
+ # @param name [String] A user specified name for the interface.
94
+ #
95
+ # @param network_id [String] The id of the network associated with the interface.
96
+ #
97
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
98
+ #
99
+ # @param public_ip [String] The publically accessible ip for this interface.
100
+ #
101
+ # @param region [Telnyx::Models::PublicInternetGatewayListResponse::Data::Region]
102
+ #
103
+ # @param region_code [String] The region interface is deployed to.
104
+
105
+ # @see Telnyx::Models::PublicInternetGatewayListResponse::Data#region
106
+ class Region < Telnyx::Internal::Type::BaseModel
107
+ # @!attribute code
108
+ # Region code of the interface.
109
+ #
110
+ # @return [String, nil]
111
+ optional :code, String
112
+
113
+ # @!attribute name
114
+ # Region name of the interface.
115
+ #
116
+ # @return [String, nil]
117
+ optional :name, String
118
+
119
+ response_only do
120
+ # @!attribute record_type
121
+ # Identifies the type of the resource.
122
+ #
123
+ # @return [String, nil]
124
+ optional :record_type, String
125
+ end
126
+
127
+ # @!method initialize(code: nil, name: nil, record_type: nil)
128
+ # @param code [String] Region code of the interface.
129
+ #
130
+ # @param name [String] Region name of the interface.
131
+ #
132
+ # @param record_type [String] Identifies the type of the resource.
133
+ end
134
+ end
21
135
  end
22
136
  end
23
137
  end
@@ -11,6 +11,121 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data]
14
+
15
+ # @see Telnyx::Models::PublicInternetGatewayRetrieveResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute region
30
+ #
31
+ # @return [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region, nil]
32
+ optional :region, -> { Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region }
33
+
34
+ # @!attribute region_code
35
+ # The region interface is deployed to.
36
+ #
37
+ # @return [String, nil]
38
+ optional :region_code, String
39
+
40
+ response_only do
41
+ # @!attribute id
42
+ # Identifies the resource.
43
+ #
44
+ # @return [String, nil]
45
+ optional :id, String
46
+
47
+ # @!attribute created_at
48
+ # ISO 8601 formatted date-time indicating when the resource was created.
49
+ #
50
+ # @return [String, nil]
51
+ optional :created_at, String
52
+
53
+ # @!attribute record_type
54
+ # Identifies the type of the resource.
55
+ #
56
+ # @return [String, nil]
57
+ optional :record_type, String
58
+
59
+ # @!attribute updated_at
60
+ # ISO 8601 formatted date-time indicating when the resource was updated.
61
+ #
62
+ # @return [String, nil]
63
+ optional :updated_at, String
64
+
65
+ # @!attribute status
66
+ # The current status of the interface deployment.
67
+ #
68
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
69
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
70
+
71
+ # @!attribute public_ip
72
+ # The publically accessible ip for this interface.
73
+ #
74
+ # @return [String, nil]
75
+ optional :public_ip, String
76
+ end
77
+
78
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, public_ip: nil, region: nil, region_code: nil)
79
+ # @param id [String] Identifies the resource.
80
+ #
81
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
82
+ #
83
+ # @param record_type [String] Identifies the type of the resource.
84
+ #
85
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
86
+ #
87
+ # @param name [String] A user specified name for the interface.
88
+ #
89
+ # @param network_id [String] The id of the network associated with the interface.
90
+ #
91
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
92
+ #
93
+ # @param public_ip [String] The publically accessible ip for this interface.
94
+ #
95
+ # @param region [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region]
96
+ #
97
+ # @param region_code [String] The region interface is deployed to.
98
+
99
+ # @see Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data#region
100
+ class Region < Telnyx::Internal::Type::BaseModel
101
+ # @!attribute code
102
+ # Region code of the interface.
103
+ #
104
+ # @return [String, nil]
105
+ optional :code, String
106
+
107
+ # @!attribute name
108
+ # Region name of the interface.
109
+ #
110
+ # @return [String, nil]
111
+ optional :name, String
112
+
113
+ response_only do
114
+ # @!attribute record_type
115
+ # Identifies the type of the resource.
116
+ #
117
+ # @return [String, nil]
118
+ optional :record_type, String
119
+ end
120
+
121
+ # @!method initialize(code: nil, name: nil, record_type: nil)
122
+ # @param code [String] Region code of the interface.
123
+ #
124
+ # @param name [String] Region name of the interface.
125
+ #
126
+ # @param record_type [String] Identifies the type of the resource.
127
+ end
128
+ end
14
129
  end
15
130
  end
16
131
  end
@@ -77,6 +77,17 @@ module Telnyx
77
77
  Telnyx::Internal::Type::Boolean,
78
78
  api_name: :CancelPlaybackOnMachineDetection
79
79
 
80
+ # @!attribute custom_headers
81
+ # Custom HTTP headers to be sent with the call. Each header should be an object
82
+ # with 'name' and 'value' properties.
83
+ #
84
+ # @return [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::CustomHeader>, nil]
85
+ optional :custom_headers,
86
+ -> {
87
+ Telnyx::Internal::Type::ArrayOf[Telnyx::Texml::Accounts::CallCallsParams::CustomHeader]
88
+ },
89
+ api_name: :CustomHeaders
90
+
80
91
  # @!attribute detection_mode
81
92
  # Allows you to chose between Premium and Standard detections.
82
93
  #
@@ -251,7 +262,7 @@ module Telnyx
251
262
  enum: -> { Telnyx::Texml::Accounts::CallCallsParams::URLMethod },
252
263
  api_name: :UrlMethod
253
264
 
254
- # @!method initialize(application_sid:, from:, to:, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, detection_mode: nil, fallback_url: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, trim: nil, url: nil, url_method: nil, request_options: {})
265
+ # @!method initialize(application_sid:, from:, to:, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, detection_mode: nil, fallback_url: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, trim: nil, url: nil, url_method: nil, request_options: {})
255
266
  # Some parameter documentations has been truncated, see
256
267
  # {Telnyx::Models::Texml::Accounts::CallCallsParams} for more details.
257
268
  #
@@ -273,6 +284,8 @@ module Telnyx
273
284
  #
274
285
  # @param cancel_playback_on_machine_detection [Boolean] Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
275
286
  #
287
+ # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
288
+ #
276
289
  # @param detection_mode [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::DetectionMode] Allows you to chose between Premium and Standard detections.
277
290
  #
278
291
  # @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -335,6 +348,25 @@ module Telnyx
335
348
  # @return [Array<Symbol>]
336
349
  end
337
350
 
351
+ class CustomHeader < Telnyx::Internal::Type::BaseModel
352
+ # @!attribute name
353
+ # The name of the custom header
354
+ #
355
+ # @return [String]
356
+ required :name, String
357
+
358
+ # @!attribute value
359
+ # The value of the custom header
360
+ #
361
+ # @return [String]
362
+ required :value, String
363
+
364
+ # @!method initialize(name:, value:)
365
+ # @param name [String] The name of the custom header
366
+ #
367
+ # @param value [String] The value of the custom header
368
+ end
369
+
338
370
  # Allows you to chose between Premium and Standard detections.
339
371
  module DetectionMode
340
372
  extend Telnyx::Internal::Type::Enum
@@ -166,6 +166,17 @@ module Telnyx
166
166
  },
167
167
  api_name: :ConferenceTrim
168
168
 
169
+ # @!attribute custom_headers
170
+ # Custom HTTP headers to be sent with the call. Each header should be an object
171
+ # with 'name' and 'value' properties.
172
+ #
173
+ # @return [Array<Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::CustomHeader>, nil]
174
+ optional :custom_headers,
175
+ -> {
176
+ Telnyx::Internal::Type::ArrayOf[Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::CustomHeader]
177
+ },
178
+ api_name: :CustomHeaders
179
+
169
180
  # @!attribute early_media
170
181
  # Whether participant shall be bridged to conference before the participant
171
182
  # answers (from early media if available). Defaults to `false`.
@@ -379,7 +390,7 @@ module Telnyx
379
390
  # @return [String, nil]
380
391
  optional :wait_url, String, api_name: :WaitUrl
381
392
 
382
- # @!method initialize(account_sid:, amd_status_callback: nil, amd_status_callback_method: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, early_media: nil, end_conference_on_exit: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
393
+ # @!method initialize(account_sid:, amd_status_callback: nil, amd_status_callback_method: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, custom_headers: nil, early_media: nil, end_conference_on_exit: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
383
394
  # Some parameter documentations has been truncated, see
384
395
  # {Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams}
385
396
  # for more details.
@@ -420,6 +431,8 @@ module Telnyx
420
431
  #
421
432
  # @param conference_trim [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::ConferenceTrim] Whether to trim any leading and trailing silence from the conference recording.
422
433
  #
434
+ # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
435
+ #
423
436
  # @param early_media [Boolean] Whether participant shall be bridged to conference before the participant answer
424
437
  #
425
438
  # @param end_conference_on_exit [Boolean] Whether to end the conference when the participant leaves. Defaults to `false`.
@@ -553,6 +566,25 @@ module Telnyx
553
566
  # @return [Array<Symbol>]
554
567
  end
555
568
 
569
+ class CustomHeader < Telnyx::Internal::Type::BaseModel
570
+ # @!attribute name
571
+ # The name of the custom header
572
+ #
573
+ # @return [String]
574
+ required :name, String
575
+
576
+ # @!attribute value
577
+ # The value of the custom header
578
+ #
579
+ # @return [String]
580
+ required :value, String
581
+
582
+ # @!method initialize(name:, value:)
583
+ # @param name [String] The name of the custom header
584
+ #
585
+ # @param value [String] The value of the custom header
586
+ end
587
+
556
588
  # Whether to detect if a human or an answering machine picked up the call. Use
557
589
  # `Enable` if you would like to ne notified as soon as the called party is
558
590
  # identified. Use `DetectMessageEnd`, if you would like to leave a message on an
@@ -6,28 +6,11 @@ module Telnyx
6
6
  class VerifyProfileCreateTemplateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::VerifyProfileCreateTemplateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::VerifyProfileCreateTemplateResponse::Data }
9
+ # @return [Telnyx::Models::VerifyProfileMessageTemplateResponse, nil]
10
+ optional :data, -> { Telnyx::VerifyProfileMessageTemplateResponse }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::VerifyProfileCreateTemplateResponse::Data]
14
-
15
- # @see Telnyx::Models::VerifyProfileCreateTemplateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
17
- # @!attribute id
18
- #
19
- # @return [String, nil]
20
- optional :id, String
21
-
22
- # @!attribute text
23
- #
24
- # @return [String, nil]
25
- optional :text, String
26
-
27
- # @!method initialize(id: nil, text: nil)
28
- # @param id [String]
29
- # @param text [String]
30
- end
13
+ # @param data [Telnyx::Models::VerifyProfileMessageTemplateResponse]
31
14
  end
32
15
  end
33
16
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class VerifyProfileMessageTemplateResponse < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ #
8
+ # @return [String, nil]
9
+ optional :id, String
10
+
11
+ # @!attribute text
12
+ #
13
+ # @return [String, nil]
14
+ optional :text, String
15
+
16
+ # @!method initialize(id: nil, text: nil)
17
+ # @param id [String]
18
+ # @param text [String]
19
+ end
20
+ end
21
+ end