telnyx 5.102.1 → 5.103.1

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
  5. data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
  6. data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
  7. data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
  8. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
  9. data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
  10. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
  11. data/lib/telnyx/models/uac_internal_settings.rb +2 -2
  12. data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
  13. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
  14. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
  15. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
  16. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
  17. data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
  18. data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
  19. data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
  20. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
  21. data/lib/telnyx/models.rb +6 -0
  22. data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
  23. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  24. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  25. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  26. data/lib/telnyx/version.rb +1 -1
  27. data/lib/telnyx.rb +3 -3
  28. data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
  29. data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
  30. data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
  31. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
  32. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
  33. data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
  34. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
  35. data/rbi/telnyx/models/uac_internal_settings.rbi +4 -4
  36. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
  37. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
  38. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
  39. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
  40. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
  41. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
  42. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
  43. data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
  44. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
  45. data/rbi/telnyx/models.rbi +6 -0
  46. data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
  47. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  48. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  49. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  50. data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
  51. data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
  52. data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
  53. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
  54. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
  55. data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
  56. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
  57. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
  58. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
  59. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
  60. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
  61. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
  62. data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
  63. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
  64. data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
  65. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
  66. data/sig/telnyx/models.rbs +6 -0
  67. data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
  68. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  69. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  70. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  71. metadata +10 -10
  72. data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
  73. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
  74. data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
  75. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
  76. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
  77. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
  78. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
  79. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
  80. data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a38a37205d27e81d864e271691c4119c3a10064609ac9d01a2221c29794d960
4
- data.tar.gz: e9dbc5bed0fa3e262e8158bdcfdb8dc7ef4403a13cd399af1e451e8727385dda
3
+ metadata.gz: 92c2f691d2614f5d899710c4d375820facec4037c029150989b6db18632ece47
4
+ data.tar.gz: 848e5a5a014b9d5771d4b0faae85405a24d34a7f9f42abaaa86406597b967597
5
5
  SHA512:
6
- metadata.gz: 548c8922b3d2d5dc946b296661e74e56860fdaef7b870e36ef13183a1adba679f3b417f5c8c81f74215a2e680a67b7f51ef73c60fecbb5f24bdae283684b000f
7
- data.tar.gz: 53181edd738e99468409dc9c5036f95b02357b9650ac2c2a326e6a7fecb55b8925f2663adf826151935c02583c946f928ed61dc3d93d98696557830e9d06fb77
6
+ metadata.gz: 7cc6b26bcfeb843b18bcd6bbb97b7972adbb19fedb84c36fe153b850a9cb2a3f896a1d48b2e910c236479ead709588a1cb4e3eb4469ac89ad37e8a9920e19d52
7
+ data.tar.gz: b1ee7f4de28ee8d1216ef637cf3a2af12354f9c69ae9396184619ba479c5ed8716aecc1a0c18e51142cb38b2899bdb399e816fbd2efce6e58b89083d864f3e62
data/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.103.1 (2026-05-07)
4
+
5
+ Full Changelog: [v5.103.0...v5.103.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.103.0...v5.103.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * update UAC internal settings URI examples ([07542f9](https://github.com/team-telnyx/telnyx-ruby/commit/07542f9b0d6330a9d76652d110e7f5ccefc4830c))
10
+
11
+
12
+ ### Reverts
13
+
14
+ * restore stainless.yml from before 964956c ([dc4498d](https://github.com/team-telnyx/telnyx-ruby/commit/dc4498ddf4139f473022ff6c252075ab07d4d976))
15
+
16
+ ## 5.103.0 (2026-05-07)
17
+
18
+ Full Changelog: [v5.102.1...v5.103.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.102.1...v5.103.0)
19
+
20
+ ### Features
21
+
22
+ * Add Speechmatics provider to standalone STT spec ([ca94503](https://github.com/team-telnyx/telnyx-ruby/commit/ca945036fb52cf72d6cbcdf3a683b77e56aacdf3))
23
+ * Ai-assistant: update scheduled events api ([5567900](https://github.com/team-telnyx/telnyx-ruby/commit/5567900fe1aed9caa1d74188807ef9ec3e15459c))
24
+ * **api:** manual updates ([0261568](https://github.com/team-telnyx/telnyx-ruby/commit/02615682257dfa6d243127d9e1eae6938268a8eb))
25
+ * **api:** manual updates ([044e221](https://github.com/team-telnyx/telnyx-ruby/commit/044e22120a5676d514af5442d913064fc5fa9789))
26
+
27
+
28
+ ### Reverts
29
+
30
+ * restore stainless.yml from before 9853597 ([89c9cfd](https://github.com/team-telnyx/telnyx-ruby/commit/89c9cfdd1ea3879f32247bf59822e38eb870b9cd))
31
+
3
32
  ## 5.102.1 (2026-05-07)
4
33
 
5
34
  Full Changelog: [v5.102.0...v5.102.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.102.0...v5.102.1)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.102.1"
27
+ gem "telnyx", "~> 5.103.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -52,13 +52,25 @@ module Telnyx
52
52
  # @return [Hash{Symbol=>String}, nil]
53
53
  optional :dynamic_variables, Telnyx::Internal::Type::HashOf[String]
54
54
 
55
+ # @!attribute max_retries_client_errors
56
+ # Configure number of retries on client errors: busy, no-answer, failed, canceled
57
+ # (caller hung up before the callee answered)
58
+ #
59
+ # @return [Integer, nil]
60
+ optional :max_retries_client_errors, Integer
61
+
62
+ # @!attribute retry_interval_secs
63
+ #
64
+ # @return [Integer, nil]
65
+ optional :retry_interval_secs, Integer
66
+
55
67
  # @!attribute text
56
68
  # Required for sms scheduled events. The text to be sent to the end user.
57
69
  #
58
70
  # @return [String, nil]
59
71
  optional :text, String
60
72
 
61
- # @!method initialize(assistant_id:, scheduled_at_fixed_datetime:, telnyx_agent_target:, telnyx_conversation_channel:, telnyx_end_user_target:, conversation_metadata: nil, dynamic_variables: nil, text: nil, request_options: {})
73
+ # @!method initialize(assistant_id:, scheduled_at_fixed_datetime:, telnyx_agent_target:, telnyx_conversation_channel:, telnyx_end_user_target:, conversation_metadata: nil, dynamic_variables: nil, max_retries_client_errors: nil, retry_interval_secs: nil, text: nil, request_options: {})
62
74
  # Some parameter documentations has been truncated, see
63
75
  # {Telnyx::Models::AI::Assistants::ScheduledEventCreateParams} for more details.
64
76
  #
@@ -76,6 +88,10 @@ module Telnyx
76
88
  #
77
89
  # @param dynamic_variables [Hash{Symbol=>String}] A map of dynamic variable names to values. These variables can be referenced in
78
90
  #
91
+ # @param max_retries_client_errors [Integer] Configure number of retries on client errors: busy, no-answer, failed, canceled
92
+ #
93
+ # @param retry_interval_secs [Integer]
94
+ #
79
95
  # @param text [String] Required for sms scheduled events. The text to be sent to the end user.
80
96
  #
81
97
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
@@ -30,6 +30,24 @@ module Telnyx
30
30
  # @return [String]
31
31
  required :telnyx_end_user_target, String
32
32
 
33
+ # @!attribute call_attempts
34
+ #
35
+ # @return [Array<Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt>, nil]
36
+ optional :call_attempts,
37
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt] }
38
+
39
+ # @!attribute call_duration
40
+ # Duration of the call in seconds
41
+ #
42
+ # @return [Integer, nil]
43
+ optional :call_duration, Integer
44
+
45
+ # @!attribute call_status
46
+ # Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
47
+ #
48
+ # @return [String, nil]
49
+ optional :call_status, String
50
+
33
51
  # @!attribute conversation_id
34
52
  #
35
53
  # @return [String, nil]
@@ -46,6 +64,12 @@ module Telnyx
46
64
  # @return [Time, nil]
47
65
  optional :created_at, Time
48
66
 
67
+ # @!attribute dispatched_at
68
+ # Date time at which call was sent
69
+ #
70
+ # @return [Time, nil]
71
+ optional :dispatched_at, Time
72
+
49
73
  # @!attribute dynamic_variables
50
74
  # A map of dynamic variable names to values. These variables can be referenced in
51
75
  # the assistant's instructions and messages using {{variable_name}} syntax.
@@ -58,6 +82,13 @@ module Telnyx
58
82
  # @return [Array<String>, nil]
59
83
  optional :errors, Telnyx::Internal::Type::ArrayOf[String]
60
84
 
85
+ # @!attribute max_retries_client_errors
86
+ # Configure number of retries on client errors: busy, no-answer, failed, canceled
87
+ # (caller hung up before the callee answered)
88
+ #
89
+ # @return [Integer, nil]
90
+ optional :max_retries_client_errors, Integer
91
+
61
92
  # @!attribute retry_attempts
62
93
  #
63
94
  # @return [Integer, nil]
@@ -68,6 +99,11 @@ module Telnyx
68
99
  # @return [Integer, nil]
69
100
  optional :retry_count, Integer
70
101
 
102
+ # @!attribute retry_interval_secs
103
+ #
104
+ # @return [Integer, nil]
105
+ optional :retry_interval_secs, Integer
106
+
71
107
  # @!attribute scheduled_event_id
72
108
  #
73
109
  # @return [String, nil]
@@ -78,7 +114,7 @@ module Telnyx
78
114
  # @return [Symbol, Telnyx::Models::AI::Assistants::EventStatus, nil]
79
115
  optional :status, enum: -> { Telnyx::AI::Assistants::EventStatus }
80
116
 
81
- # @!method initialize(assistant_id:, scheduled_at_fixed_datetime:, telnyx_agent_target:, telnyx_conversation_channel:, telnyx_end_user_target:, conversation_id: nil, conversation_metadata: nil, created_at: nil, dynamic_variables: nil, errors: nil, retry_attempts: nil, retry_count: nil, scheduled_event_id: nil, status: nil)
117
+ # @!method initialize(assistant_id:, scheduled_at_fixed_datetime:, telnyx_agent_target:, telnyx_conversation_channel:, telnyx_end_user_target:, call_attempts: nil, call_duration: nil, call_status: nil, conversation_id: nil, conversation_metadata: nil, created_at: nil, dispatched_at: nil, dynamic_variables: nil, errors: nil, max_retries_client_errors: nil, retry_attempts: nil, retry_count: nil, retry_interval_secs: nil, scheduled_event_id: nil, status: nil)
82
118
  # Some parameter documentations has been truncated, see
83
119
  # {Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse} for more
84
120
  # details.
@@ -93,24 +129,78 @@ module Telnyx
93
129
  #
94
130
  # @param telnyx_end_user_target [String]
95
131
  #
132
+ # @param call_attempts [Array<Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt>]
133
+ #
134
+ # @param call_duration [Integer] Duration of the call in seconds
135
+ #
136
+ # @param call_status [String] Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
137
+ #
96
138
  # @param conversation_id [String]
97
139
  #
98
140
  # @param conversation_metadata [Hash{Symbol=>String, Integer, Boolean}]
99
141
  #
100
142
  # @param created_at [Time]
101
143
  #
144
+ # @param dispatched_at [Time] Date time at which call was sent
145
+ #
102
146
  # @param dynamic_variables [Hash{Symbol=>String}] A map of dynamic variable names to values. These variables can be referenced in
103
147
  #
104
148
  # @param errors [Array<String>]
105
149
  #
150
+ # @param max_retries_client_errors [Integer] Configure number of retries on client errors: busy, no-answer, failed, canceled
151
+ #
106
152
  # @param retry_attempts [Integer]
107
153
  #
108
154
  # @param retry_count [Integer]
109
155
  #
156
+ # @param retry_interval_secs [Integer]
157
+ #
110
158
  # @param scheduled_event_id [String]
111
159
  #
112
160
  # @param status [Symbol, Telnyx::Models::AI::Assistants::EventStatus]
113
161
 
162
+ class CallAttempt < Telnyx::Internal::Type::BaseModel
163
+ # @!attribute attempt_number
164
+ #
165
+ # @return [Integer]
166
+ required :attempt_number, Integer
167
+
168
+ # @!attribute attempted_at
169
+ #
170
+ # @return [Time]
171
+ required :attempted_at, Time
172
+
173
+ # @!attribute call_status
174
+ # Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
175
+ #
176
+ # @return [String]
177
+ required :call_status, String
178
+
179
+ # @!attribute call_duration
180
+ # Duration of the call in seconds
181
+ #
182
+ # @return [Integer, nil]
183
+ optional :call_duration, Integer
184
+
185
+ # @!attribute telnyx_call_control_id
186
+ #
187
+ # @return [String, nil]
188
+ optional :telnyx_call_control_id, String
189
+
190
+ # @!method initialize(attempt_number:, attempted_at:, call_status:, call_duration: nil, telnyx_call_control_id: nil)
191
+ # One row in `call_attempts` — captures the terminal outcome of a single dispatch.
192
+ #
193
+ # @param attempt_number [Integer]
194
+ #
195
+ # @param attempted_at [Time]
196
+ #
197
+ # @param call_status [String] Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
198
+ #
199
+ # @param call_duration [Integer] Duration of the call in seconds
200
+ #
201
+ # @param telnyx_call_control_id [String]
202
+ end
203
+
114
204
  module ConversationMetadata
115
205
  extend Telnyx::Internal::Type::Union
116
206
 
@@ -3,8 +3,118 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  # @see Telnyx::Resources::Networks#list_interfaces
6
- class NetworkListInterfacesResponse < Telnyx::Models::Record
7
- # @!method initialize
6
+ class NetworkListInterfacesResponse < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute name
8
+ # A user specified name for the interface.
9
+ #
10
+ # @return [String, nil]
11
+ optional :name, String
12
+
13
+ # @!attribute network_id
14
+ # The id of the network associated with the interface.
15
+ #
16
+ # @return [String, nil]
17
+ optional :network_id, String
18
+
19
+ # @!attribute region
20
+ #
21
+ # @return [Telnyx::Models::NetworkListInterfacesResponse::Region, nil]
22
+ optional :region, -> { Telnyx::Models::NetworkListInterfacesResponse::Region }
23
+
24
+ # @!attribute region_code
25
+ # The region interface is deployed to.
26
+ #
27
+ # @return [String, nil]
28
+ optional :region_code, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute status
50
+ # The current status of the interface deployment.
51
+ #
52
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
53
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
54
+
55
+ # @!attribute type
56
+ # Identifies the type of the interface.
57
+ #
58
+ # @return [String, nil]
59
+ optional :type, String
60
+
61
+ # @!attribute updated_at
62
+ # ISO 8601 formatted date-time indicating when the resource was updated.
63
+ #
64
+ # @return [String, nil]
65
+ optional :updated_at, String
66
+ end
67
+
68
+ # @!method initialize(id: nil, created_at: nil, name: nil, network_id: nil, record_type: nil, region: nil, region_code: nil, status: nil, type: nil, updated_at: nil)
69
+ # @param id [String] Identifies the resource.
70
+ #
71
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
72
+ #
73
+ # @param name [String] A user specified name for the interface.
74
+ #
75
+ # @param network_id [String] The id of the network associated with the interface.
76
+ #
77
+ # @param record_type [String] Identifies the type of the resource.
78
+ #
79
+ # @param region [Telnyx::Models::NetworkListInterfacesResponse::Region]
80
+ #
81
+ # @param region_code [String] The region interface is deployed to.
82
+ #
83
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
84
+ #
85
+ # @param type [String] Identifies the type of the interface.
86
+ #
87
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
88
+
89
+ # @see Telnyx::Models::NetworkListInterfacesResponse#region
90
+ class Region < Telnyx::Internal::Type::BaseModel
91
+ # @!attribute code
92
+ # Region code of the interface.
93
+ #
94
+ # @return [String, nil]
95
+ optional :code, String
96
+
97
+ # @!attribute name
98
+ # Region name of the interface.
99
+ #
100
+ # @return [String, nil]
101
+ optional :name, String
102
+
103
+ response_only do
104
+ # @!attribute record_type
105
+ # Identifies the type of the resource.
106
+ #
107
+ # @return [String, nil]
108
+ optional :record_type, String
109
+ end
110
+
111
+ # @!method initialize(code: nil, name: nil, record_type: nil)
112
+ # @param code [String] Region code of the interface.
113
+ #
114
+ # @param name [String] Region name of the interface.
115
+ #
116
+ # @param record_type [String] Identifies the type of the resource.
117
+ end
8
118
  end
9
119
  end
10
120
  end
@@ -6,16 +6,11 @@ module Telnyx
6
6
  class PublicInternetGatewayCreateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::PublicInternetGatewayCreateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::PublicInternetGatewayCreateResponse::Data }
9
+ # @return [Telnyx::Models::PublicInternetGatewayRead, nil]
10
+ optional :data, -> { Telnyx::PublicInternetGatewayRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::PublicInternetGatewayCreateResponse::Data]
14
-
15
- # @see Telnyx::Models::PublicInternetGatewayCreateResponse#data
16
- class Data < Telnyx::Models::Record
17
- # @!method initialize
18
- end
13
+ # @param data [Telnyx::Models::PublicInternetGatewayRead]
19
14
  end
20
15
  end
21
16
  end
@@ -6,16 +6,11 @@ module Telnyx
6
6
  class PublicInternetGatewayDeleteResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::PublicInternetGatewayDeleteResponse::Data }
9
+ # @return [Telnyx::Models::PublicInternetGatewayRead, nil]
10
+ optional :data, -> { Telnyx::PublicInternetGatewayRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data]
14
-
15
- # @see Telnyx::Models::PublicInternetGatewayDeleteResponse#data
16
- class Data < Telnyx::Models::Record
17
- # @!method initialize
18
- end
13
+ # @param data [Telnyx::Models::PublicInternetGatewayRead]
19
14
  end
20
15
  end
21
16
  end
@@ -0,0 +1,83 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ # @see Telnyx::Resources::PublicInternetGateways#list
6
+ class PublicInternetGatewayRead < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute name
8
+ # A user specified name for the interface.
9
+ #
10
+ # @return [String, nil]
11
+ optional :name, String
12
+
13
+ # @!attribute network_id
14
+ # The id of the network associated with the interface.
15
+ #
16
+ # @return [String, nil]
17
+ optional :network_id, String
18
+
19
+ # @!attribute region_code
20
+ # The region interface is deployed to.
21
+ #
22
+ # @return [String, nil]
23
+ optional :region_code, String
24
+
25
+ response_only do
26
+ # @!attribute id
27
+ # Identifies the resource.
28
+ #
29
+ # @return [String, nil]
30
+ optional :id, String
31
+
32
+ # @!attribute created_at
33
+ # ISO 8601 formatted date-time indicating when the resource was created.
34
+ #
35
+ # @return [String, nil]
36
+ optional :created_at, String
37
+
38
+ # @!attribute public_ip
39
+ # The publically accessible ip for this interface.
40
+ #
41
+ # @return [String, nil]
42
+ optional :public_ip, String
43
+
44
+ # @!attribute record_type
45
+ # Identifies the type of the resource.
46
+ #
47
+ # @return [String, nil]
48
+ optional :record_type, String
49
+
50
+ # @!attribute status
51
+ # The current status of the interface deployment.
52
+ #
53
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
54
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
55
+
56
+ # @!attribute updated_at
57
+ # ISO 8601 formatted date-time indicating when the resource was updated.
58
+ #
59
+ # @return [String, nil]
60
+ optional :updated_at, String
61
+ end
62
+
63
+ # @!method initialize(id: nil, created_at: nil, name: nil, network_id: nil, public_ip: nil, record_type: nil, region_code: nil, status: nil, updated_at: nil)
64
+ # @param id [String] Identifies the resource.
65
+ #
66
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
67
+ #
68
+ # @param name [String] A user specified name for the interface.
69
+ #
70
+ # @param network_id [String] The id of the network associated with the interface.
71
+ #
72
+ # @param public_ip [String] The publically accessible ip for this interface.
73
+ #
74
+ # @param record_type [String] Identifies the type of the resource.
75
+ #
76
+ # @param region_code [String] The region interface is deployed to.
77
+ #
78
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
79
+ #
80
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
81
+ end
82
+ end
83
+ end
@@ -6,16 +6,11 @@ module Telnyx
6
6
  class PublicInternetGatewayRetrieveResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data }
9
+ # @return [Telnyx::Models::PublicInternetGatewayRead, nil]
10
+ optional :data, -> { Telnyx::PublicInternetGatewayRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data]
14
-
15
- # @see Telnyx::Models::PublicInternetGatewayRetrieveResponse#data
16
- class Data < Telnyx::Models::Record
17
- # @!method initialize
18
- end
13
+ # @param data [Telnyx::Models::PublicInternetGatewayRead]
19
14
  end
20
15
  end
21
16
  end
@@ -6,8 +6,8 @@ module Telnyx
6
6
  # @!attribute destination_uri
7
7
  # The SIP URI that Telnyx will call when handling an inbound request from the
8
8
  # external peer. Do not include a `sip:` prefix. The value must be in the format
9
- # `userinfo@[subdomain.]sip.telnyx.com` or
10
- # `userinfo@[subdomain.]sipdev.telnyx.com`; the userinfo portion may contain only
9
+ # `userinfo@<subdomain.>sip.telnyx.com` or
10
+ # `userinfo@<subdomain.>sipdev.telnyx.com`; the userinfo portion may contain only
11
11
  # letters, digits, hyphens, and underscores.
12
12
  #
13
13
  # @return [String, nil]