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
@@ -0,0 +1,173 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ class OAuthClient < Telnyx::Internal::Type::BaseModel
6
+ # @!attribute client_id
7
+ # OAuth client identifier
8
+ #
9
+ # @return [String]
10
+ required :client_id, String
11
+
12
+ # @!attribute client_type
13
+ # OAuth client type
14
+ #
15
+ # @return [Symbol, Telnyx::Models::OAuthClient::ClientType]
16
+ required :client_type, enum: -> { Telnyx::OAuthClient::ClientType }
17
+
18
+ # @!attribute created_at
19
+ # Timestamp when the client was created
20
+ #
21
+ # @return [Time]
22
+ required :created_at, Time
23
+
24
+ # @!attribute name
25
+ # Human-readable name for the OAuth client
26
+ #
27
+ # @return [String]
28
+ required :name, String
29
+
30
+ # @!attribute org_id
31
+ # Organization ID that owns this OAuth client
32
+ #
33
+ # @return [String]
34
+ required :org_id, String
35
+
36
+ # @!attribute record_type
37
+ # Record type identifier
38
+ #
39
+ # @return [Symbol, Telnyx::Models::OAuthClient::RecordType]
40
+ required :record_type, enum: -> { Telnyx::OAuthClient::RecordType }
41
+
42
+ # @!attribute require_pkce
43
+ # Whether PKCE (Proof Key for Code Exchange) is required for this client
44
+ #
45
+ # @return [Boolean]
46
+ required :require_pkce, Telnyx::Internal::Type::Boolean
47
+
48
+ # @!attribute updated_at
49
+ # Timestamp when the client was last updated
50
+ #
51
+ # @return [Time]
52
+ required :updated_at, Time
53
+
54
+ # @!attribute user_id
55
+ # User ID that created this OAuth client
56
+ #
57
+ # @return [String]
58
+ required :user_id, String
59
+
60
+ # @!attribute allowed_grant_types
61
+ # List of allowed OAuth grant types
62
+ #
63
+ # @return [Array<Symbol, Telnyx::Models::OAuthClient::AllowedGrantType>, nil]
64
+ optional :allowed_grant_types,
65
+ -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::OAuthClient::AllowedGrantType] }
66
+
67
+ # @!attribute allowed_scopes
68
+ # List of allowed OAuth scopes
69
+ #
70
+ # @return [Array<String>, nil]
71
+ optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
72
+
73
+ # @!attribute client_secret
74
+ # Client secret (only included when available, for confidential clients)
75
+ #
76
+ # @return [String, nil]
77
+ optional :client_secret, String, nil?: true
78
+
79
+ # @!attribute logo_uri
80
+ # URL of the client logo
81
+ #
82
+ # @return [String, nil]
83
+ optional :logo_uri, String, nil?: true
84
+
85
+ # @!attribute policy_uri
86
+ # URL of the client's privacy policy
87
+ #
88
+ # @return [String, nil]
89
+ optional :policy_uri, String, nil?: true
90
+
91
+ # @!attribute redirect_uris
92
+ # List of allowed redirect URIs
93
+ #
94
+ # @return [Array<String>, nil]
95
+ optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
96
+
97
+ # @!attribute tos_uri
98
+ # URL of the client's terms of service
99
+ #
100
+ # @return [String, nil]
101
+ optional :tos_uri, String, nil?: true
102
+
103
+ # @!method initialize(client_id:, client_type:, created_at:, name:, org_id:, record_type:, require_pkce:, updated_at:, user_id:, allowed_grant_types: nil, allowed_scopes: nil, client_secret: nil, logo_uri: nil, policy_uri: nil, redirect_uris: nil, tos_uri: nil)
104
+ # @param client_id [String] OAuth client identifier
105
+ #
106
+ # @param client_type [Symbol, Telnyx::Models::OAuthClient::ClientType] OAuth client type
107
+ #
108
+ # @param created_at [Time] Timestamp when the client was created
109
+ #
110
+ # @param name [String] Human-readable name for the OAuth client
111
+ #
112
+ # @param org_id [String] Organization ID that owns this OAuth client
113
+ #
114
+ # @param record_type [Symbol, Telnyx::Models::OAuthClient::RecordType] Record type identifier
115
+ #
116
+ # @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
117
+ #
118
+ # @param updated_at [Time] Timestamp when the client was last updated
119
+ #
120
+ # @param user_id [String] User ID that created this OAuth client
121
+ #
122
+ # @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClient::AllowedGrantType>] List of allowed OAuth grant types
123
+ #
124
+ # @param allowed_scopes [Array<String>] List of allowed OAuth scopes
125
+ #
126
+ # @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
127
+ #
128
+ # @param logo_uri [String, nil] URL of the client logo
129
+ #
130
+ # @param policy_uri [String, nil] URL of the client's privacy policy
131
+ #
132
+ # @param redirect_uris [Array<String>] List of allowed redirect URIs
133
+ #
134
+ # @param tos_uri [String, nil] URL of the client's terms of service
135
+
136
+ # OAuth client type
137
+ #
138
+ # @see Telnyx::Models::OAuthClient#client_type
139
+ module ClientType
140
+ extend Telnyx::Internal::Type::Enum
141
+
142
+ PUBLIC = :public
143
+ CONFIDENTIAL = :confidential
144
+
145
+ # @!method self.values
146
+ # @return [Array<Symbol>]
147
+ end
148
+
149
+ # Record type identifier
150
+ #
151
+ # @see Telnyx::Models::OAuthClient#record_type
152
+ module RecordType
153
+ extend Telnyx::Internal::Type::Enum
154
+
155
+ OAUTH_CLIENT = :oauth_client
156
+
157
+ # @!method self.values
158
+ # @return [Array<Symbol>]
159
+ end
160
+
161
+ module AllowedGrantType
162
+ extend Telnyx::Internal::Type::Enum
163
+
164
+ CLIENT_CREDENTIALS = :client_credentials
165
+ AUTHORIZATION_CODE = :authorization_code
166
+ REFRESH_TOKEN = :refresh_token
167
+
168
+ # @!method self.values
169
+ # @return [Array<Symbol>]
170
+ end
171
+ end
172
+ end
173
+ end
@@ -6,180 +6,11 @@ module Telnyx
6
6
  class OAuthClientCreateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::OAuthClientCreateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::OAuthClientCreateResponse::Data }
9
+ # @return [Telnyx::Models::OAuthClient, nil]
10
+ optional :data, -> { Telnyx::OAuthClient }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::OAuthClientCreateResponse::Data]
14
-
15
- # @see Telnyx::Models::OAuthClientCreateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
17
- # @!attribute client_id
18
- # OAuth client identifier
19
- #
20
- # @return [String]
21
- required :client_id, String
22
-
23
- # @!attribute client_type
24
- # OAuth client type
25
- #
26
- # @return [Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::ClientType]
27
- required :client_type, enum: -> { Telnyx::Models::OAuthClientCreateResponse::Data::ClientType }
28
-
29
- # @!attribute created_at
30
- # Timestamp when the client was created
31
- #
32
- # @return [Time]
33
- required :created_at, Time
34
-
35
- # @!attribute name
36
- # Human-readable name for the OAuth client
37
- #
38
- # @return [String]
39
- required :name, String
40
-
41
- # @!attribute org_id
42
- # Organization ID that owns this OAuth client
43
- #
44
- # @return [String]
45
- required :org_id, String
46
-
47
- # @!attribute record_type
48
- # Record type identifier
49
- #
50
- # @return [Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::RecordType]
51
- required :record_type, enum: -> { Telnyx::Models::OAuthClientCreateResponse::Data::RecordType }
52
-
53
- # @!attribute require_pkce
54
- # Whether PKCE (Proof Key for Code Exchange) is required for this client
55
- #
56
- # @return [Boolean]
57
- required :require_pkce, Telnyx::Internal::Type::Boolean
58
-
59
- # @!attribute updated_at
60
- # Timestamp when the client was last updated
61
- #
62
- # @return [Time]
63
- required :updated_at, Time
64
-
65
- # @!attribute user_id
66
- # User ID that created this OAuth client
67
- #
68
- # @return [String]
69
- required :user_id, String
70
-
71
- # @!attribute allowed_grant_types
72
- # List of allowed OAuth grant types
73
- #
74
- # @return [Array<Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::AllowedGrantType>, nil]
75
- optional :allowed_grant_types,
76
- -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Models::OAuthClientCreateResponse::Data::AllowedGrantType] }
77
-
78
- # @!attribute allowed_scopes
79
- # List of allowed OAuth scopes
80
- #
81
- # @return [Array<String>, nil]
82
- optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
83
-
84
- # @!attribute client_secret
85
- # Client secret (only included when available, for confidential clients)
86
- #
87
- # @return [String, nil]
88
- optional :client_secret, String, nil?: true
89
-
90
- # @!attribute logo_uri
91
- # URL of the client logo
92
- #
93
- # @return [String, nil]
94
- optional :logo_uri, String, nil?: true
95
-
96
- # @!attribute policy_uri
97
- # URL of the client's privacy policy
98
- #
99
- # @return [String, nil]
100
- optional :policy_uri, String, nil?: true
101
-
102
- # @!attribute redirect_uris
103
- # List of allowed redirect URIs
104
- #
105
- # @return [Array<String>, nil]
106
- optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
107
-
108
- # @!attribute tos_uri
109
- # URL of the client's terms of service
110
- #
111
- # @return [String, nil]
112
- optional :tos_uri, String, nil?: true
113
-
114
- # @!method initialize(client_id:, client_type:, created_at:, name:, org_id:, record_type:, require_pkce:, updated_at:, user_id:, allowed_grant_types: nil, allowed_scopes: nil, client_secret: nil, logo_uri: nil, policy_uri: nil, redirect_uris: nil, tos_uri: nil)
115
- # @param client_id [String] OAuth client identifier
116
- #
117
- # @param client_type [Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::ClientType] OAuth client type
118
- #
119
- # @param created_at [Time] Timestamp when the client was created
120
- #
121
- # @param name [String] Human-readable name for the OAuth client
122
- #
123
- # @param org_id [String] Organization ID that owns this OAuth client
124
- #
125
- # @param record_type [Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::RecordType] Record type identifier
126
- #
127
- # @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
128
- #
129
- # @param updated_at [Time] Timestamp when the client was last updated
130
- #
131
- # @param user_id [String] User ID that created this OAuth client
132
- #
133
- # @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClientCreateResponse::Data::AllowedGrantType>] List of allowed OAuth grant types
134
- #
135
- # @param allowed_scopes [Array<String>] List of allowed OAuth scopes
136
- #
137
- # @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
138
- #
139
- # @param logo_uri [String, nil] URL of the client logo
140
- #
141
- # @param policy_uri [String, nil] URL of the client's privacy policy
142
- #
143
- # @param redirect_uris [Array<String>] List of allowed redirect URIs
144
- #
145
- # @param tos_uri [String, nil] URL of the client's terms of service
146
-
147
- # OAuth client type
148
- #
149
- # @see Telnyx::Models::OAuthClientCreateResponse::Data#client_type
150
- module ClientType
151
- extend Telnyx::Internal::Type::Enum
152
-
153
- PUBLIC = :public
154
- CONFIDENTIAL = :confidential
155
-
156
- # @!method self.values
157
- # @return [Array<Symbol>]
158
- end
159
-
160
- # Record type identifier
161
- #
162
- # @see Telnyx::Models::OAuthClientCreateResponse::Data#record_type
163
- module RecordType
164
- extend Telnyx::Internal::Type::Enum
165
-
166
- OAUTH_CLIENT = :oauth_client
167
-
168
- # @!method self.values
169
- # @return [Array<Symbol>]
170
- end
171
-
172
- module AllowedGrantType
173
- extend Telnyx::Internal::Type::Enum
174
-
175
- CLIENT_CREDENTIALS = :client_credentials
176
- AUTHORIZATION_CODE = :authorization_code
177
- REFRESH_TOKEN = :refresh_token
178
-
179
- # @!method self.values
180
- # @return [Array<Symbol>]
181
- end
182
- end
13
+ # @param data [Telnyx::Models::OAuthClient]
183
14
  end
184
15
  end
185
16
  end
@@ -6,8 +6,8 @@ module Telnyx
6
6
  class OAuthClientListResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Array<Telnyx::Models::OAuthClientListResponse::Data>, nil]
10
- optional :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::OAuthClientListResponse::Data] }
9
+ # @return [Array<Telnyx::Models::OAuthClient>, nil]
10
+ optional :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::OAuthClient] }
11
11
 
12
12
  # @!attribute meta
13
13
  #
@@ -15,177 +15,9 @@ module Telnyx
15
15
  optional :meta, -> { Telnyx::Models::OAuthClientListResponse::Meta }
16
16
 
17
17
  # @!method initialize(data: nil, meta: nil)
18
- # @param data [Array<Telnyx::Models::OAuthClientListResponse::Data>]
18
+ # @param data [Array<Telnyx::Models::OAuthClient>]
19
19
  # @param meta [Telnyx::Models::OAuthClientListResponse::Meta]
20
20
 
21
- class Data < Telnyx::Internal::Type::BaseModel
22
- # @!attribute client_id
23
- # OAuth client identifier
24
- #
25
- # @return [String]
26
- required :client_id, String
27
-
28
- # @!attribute client_type
29
- # OAuth client type
30
- #
31
- # @return [Symbol, Telnyx::Models::OAuthClientListResponse::Data::ClientType]
32
- required :client_type, enum: -> { Telnyx::Models::OAuthClientListResponse::Data::ClientType }
33
-
34
- # @!attribute created_at
35
- # Timestamp when the client was created
36
- #
37
- # @return [Time]
38
- required :created_at, Time
39
-
40
- # @!attribute name
41
- # Human-readable name for the OAuth client
42
- #
43
- # @return [String]
44
- required :name, String
45
-
46
- # @!attribute org_id
47
- # Organization ID that owns this OAuth client
48
- #
49
- # @return [String]
50
- required :org_id, String
51
-
52
- # @!attribute record_type
53
- # Record type identifier
54
- #
55
- # @return [Symbol, Telnyx::Models::OAuthClientListResponse::Data::RecordType]
56
- required :record_type, enum: -> { Telnyx::Models::OAuthClientListResponse::Data::RecordType }
57
-
58
- # @!attribute require_pkce
59
- # Whether PKCE (Proof Key for Code Exchange) is required for this client
60
- #
61
- # @return [Boolean]
62
- required :require_pkce, Telnyx::Internal::Type::Boolean
63
-
64
- # @!attribute updated_at
65
- # Timestamp when the client was last updated
66
- #
67
- # @return [Time]
68
- required :updated_at, Time
69
-
70
- # @!attribute user_id
71
- # User ID that created this OAuth client
72
- #
73
- # @return [String]
74
- required :user_id, String
75
-
76
- # @!attribute allowed_grant_types
77
- # List of allowed OAuth grant types
78
- #
79
- # @return [Array<Symbol, Telnyx::Models::OAuthClientListResponse::Data::AllowedGrantType>, nil]
80
- optional :allowed_grant_types,
81
- -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Models::OAuthClientListResponse::Data::AllowedGrantType] }
82
-
83
- # @!attribute allowed_scopes
84
- # List of allowed OAuth scopes
85
- #
86
- # @return [Array<String>, nil]
87
- optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
88
-
89
- # @!attribute client_secret
90
- # Client secret (only included when available, for confidential clients)
91
- #
92
- # @return [String, nil]
93
- optional :client_secret, String, nil?: true
94
-
95
- # @!attribute logo_uri
96
- # URL of the client logo
97
- #
98
- # @return [String, nil]
99
- optional :logo_uri, String, nil?: true
100
-
101
- # @!attribute policy_uri
102
- # URL of the client's privacy policy
103
- #
104
- # @return [String, nil]
105
- optional :policy_uri, String, nil?: true
106
-
107
- # @!attribute redirect_uris
108
- # List of allowed redirect URIs
109
- #
110
- # @return [Array<String>, nil]
111
- optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
112
-
113
- # @!attribute tos_uri
114
- # URL of the client's terms of service
115
- #
116
- # @return [String, nil]
117
- optional :tos_uri, String, nil?: true
118
-
119
- # @!method initialize(client_id:, client_type:, created_at:, name:, org_id:, record_type:, require_pkce:, updated_at:, user_id:, allowed_grant_types: nil, allowed_scopes: nil, client_secret: nil, logo_uri: nil, policy_uri: nil, redirect_uris: nil, tos_uri: nil)
120
- # @param client_id [String] OAuth client identifier
121
- #
122
- # @param client_type [Symbol, Telnyx::Models::OAuthClientListResponse::Data::ClientType] OAuth client type
123
- #
124
- # @param created_at [Time] Timestamp when the client was created
125
- #
126
- # @param name [String] Human-readable name for the OAuth client
127
- #
128
- # @param org_id [String] Organization ID that owns this OAuth client
129
- #
130
- # @param record_type [Symbol, Telnyx::Models::OAuthClientListResponse::Data::RecordType] Record type identifier
131
- #
132
- # @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
133
- #
134
- # @param updated_at [Time] Timestamp when the client was last updated
135
- #
136
- # @param user_id [String] User ID that created this OAuth client
137
- #
138
- # @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClientListResponse::Data::AllowedGrantType>] List of allowed OAuth grant types
139
- #
140
- # @param allowed_scopes [Array<String>] List of allowed OAuth scopes
141
- #
142
- # @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
143
- #
144
- # @param logo_uri [String, nil] URL of the client logo
145
- #
146
- # @param policy_uri [String, nil] URL of the client's privacy policy
147
- #
148
- # @param redirect_uris [Array<String>] List of allowed redirect URIs
149
- #
150
- # @param tos_uri [String, nil] URL of the client's terms of service
151
-
152
- # OAuth client type
153
- #
154
- # @see Telnyx::Models::OAuthClientListResponse::Data#client_type
155
- module ClientType
156
- extend Telnyx::Internal::Type::Enum
157
-
158
- PUBLIC = :public
159
- CONFIDENTIAL = :confidential
160
-
161
- # @!method self.values
162
- # @return [Array<Symbol>]
163
- end
164
-
165
- # Record type identifier
166
- #
167
- # @see Telnyx::Models::OAuthClientListResponse::Data#record_type
168
- module RecordType
169
- extend Telnyx::Internal::Type::Enum
170
-
171
- OAUTH_CLIENT = :oauth_client
172
-
173
- # @!method self.values
174
- # @return [Array<Symbol>]
175
- end
176
-
177
- module AllowedGrantType
178
- extend Telnyx::Internal::Type::Enum
179
-
180
- CLIENT_CREDENTIALS = :client_credentials
181
- AUTHORIZATION_CODE = :authorization_code
182
- REFRESH_TOKEN = :refresh_token
183
-
184
- # @!method self.values
185
- # @return [Array<Symbol>]
186
- end
187
- end
188
-
189
21
  # @see Telnyx::Models::OAuthClientListResponse#meta
190
22
  class Meta < Telnyx::Internal::Type::BaseModel
191
23
  # @!attribute page_number