telnyx 5.7.1 → 5.7.2

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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/fax_delivered_webhook_event.rb +193 -144
  5. data/lib/telnyx/models/fax_failed_webhook_event.rb +195 -146
  6. data/lib/telnyx/models/fax_media_processed_webhook_event.rb +177 -128
  7. data/lib/telnyx/models/fax_queued_webhook_event.rb +177 -128
  8. data/lib/telnyx/models/fax_sending_started_webhook_event.rb +177 -128
  9. data/lib/telnyx/models/faxes/action_cancel_response.rb +16 -5
  10. data/lib/telnyx/models/faxes/action_refresh_response.rb +16 -5
  11. data/lib/telnyx/version.rb +1 -1
  12. data/rbi/telnyx/models/fax_delivered_webhook_event.rbi +368 -247
  13. data/rbi/telnyx/models/fax_failed_webhook_event.rbi +388 -262
  14. data/rbi/telnyx/models/fax_media_processed_webhook_event.rbi +356 -239
  15. data/rbi/telnyx/models/fax_queued_webhook_event.rbi +348 -222
  16. data/rbi/telnyx/models/fax_sending_started_webhook_event.rbi +356 -239
  17. data/rbi/telnyx/models/faxes/action_cancel_response.rbi +45 -7
  18. data/rbi/telnyx/models/faxes/action_refresh_response.rbi +45 -7
  19. data/sig/telnyx/models/fax_delivered_webhook_event.rbs +175 -122
  20. data/sig/telnyx/models/fax_failed_webhook_event.rbs +178 -125
  21. data/sig/telnyx/models/fax_media_processed_webhook_event.rbs +165 -112
  22. data/sig/telnyx/models/fax_queued_webhook_event.rbs +165 -112
  23. data/sig/telnyx/models/fax_sending_started_webhook_event.rbs +165 -112
  24. data/sig/telnyx/models/faxes/action_cancel_response.rbs +24 -5
  25. data/sig/telnyx/models/faxes/action_refresh_response.rbs +24 -5
  26. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e89574319027088675c85fc5ea31eff8e036fe4c39761a0220624b38447b302f
4
- data.tar.gz: 7a9593b6c2ad719c6b965689ccde790180dbaedb9b3e32deac580f8e6b7857be
3
+ metadata.gz: 44673328be367e8f6d1a6aeabecc5b36c8520f2943faf06a88e071dcab166274
4
+ data.tar.gz: b328bd1fb4691753ed233b4e67ca5ad2113f599ce515087d340765e97c0a57db
5
5
  SHA512:
6
- metadata.gz: b9a90014ee5137670f3f37d9e3383721237d04288aa950ff48fb0decf8c51af194e3537581d776c121e192471dbfa56122ef26ce6127ea6012b3b3553a41b087
7
- data.tar.gz: 94d4a9de15d606b748beb970dc47de48929b514ac26fc8021894587d1a2fc4ea74693f8b87f51713064987f2cef1e087629a4367ca7dfc9f55482667879a5ec8
6
+ metadata.gz: 97b4a08db4a7f99cf57bdc4b5499ec3010412fccdc6c5778fa1048cac1f5b38e65615a39a1a351358d75c083493c90b545471c7f477ea01f6f694617b1a70151
7
+ data.tar.gz: ccf0deedf2c5fba7940c1666065e90ddbb9208499b04186449354723b0dc880217a34954f2372e0a878b7b7954aac2f32f487cb3eb0c93aac4915e6a8f211956
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.7.2 (2026-01-30)
4
+
5
+ Full Changelog: [v5.7.1...v5.7.2](https://github.com/team-telnyx/telnyx-ruby/compare/v5.7.1...v5.7.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * use PaginationMeta schema for ListFaxesResponse.meta ([584eea3](https://github.com/team-telnyx/telnyx-ruby/commit/584eea35132ca54d84b21159bd28b30faf9d5655))
10
+
3
11
  ## 5.7.1 (2026-01-30)
4
12
 
5
13
  Full Changelog: [v5.7.0...v5.7.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.7.0...v5.7.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.7.1"
27
+ gem "telnyx", "~> 5.7.2"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -3,191 +3,240 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  class FaxDeliveredWebhookEvent < Telnyx::Internal::Type::BaseModel
6
- # @!attribute id
7
- # Identifies the type of resource.
6
+ # @!attribute data
8
7
  #
9
- # @return [String, nil]
10
- optional :id, String
8
+ # @return [Telnyx::Models::FaxDeliveredWebhookEvent::Data, nil]
9
+ optional :data, -> { Telnyx::FaxDeliveredWebhookEvent::Data }
11
10
 
12
- # @!attribute event_type
13
- # The type of event being delivered.
11
+ # @!attribute meta
12
+ # Metadata about the webhook delivery.
14
13
  #
15
- # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::EventType, nil]
16
- optional :event_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::EventType }
14
+ # @return [Telnyx::Models::FaxDeliveredWebhookEvent::Meta, nil]
15
+ optional :meta, -> { Telnyx::FaxDeliveredWebhookEvent::Meta }
17
16
 
18
- # @!attribute payload
17
+ # @!method initialize(data: nil, meta: nil)
18
+ # @param data [Telnyx::Models::FaxDeliveredWebhookEvent::Data]
19
19
  #
20
- # @return [Telnyx::Models::FaxDeliveredWebhookEvent::Payload, nil]
21
- optional :payload, -> { Telnyx::FaxDeliveredWebhookEvent::Payload }
20
+ # @param meta [Telnyx::Models::FaxDeliveredWebhookEvent::Meta] Metadata about the webhook delivery.
22
21
 
23
- # @!attribute record_type
24
- # Identifies the type of the resource.
25
- #
26
- # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::RecordType, nil]
27
- optional :record_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::RecordType }
28
-
29
- # @!method initialize(id: nil, event_type: nil, payload: nil, record_type: nil)
30
- # @param id [String] Identifies the type of resource.
31
- #
32
- # @param event_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::EventType] The type of event being delivered.
33
- #
34
- # @param payload [Telnyx::Models::FaxDeliveredWebhookEvent::Payload]
35
- #
36
- # @param record_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::RecordType] Identifies the type of the resource.
37
-
38
- # The type of event being delivered.
39
- #
40
- # @see Telnyx::Models::FaxDeliveredWebhookEvent#event_type
41
- module EventType
42
- extend Telnyx::Internal::Type::Enum
43
-
44
- FAX_DELIVERED = :"fax.delivered"
45
-
46
- # @!method self.values
47
- # @return [Array<Symbol>]
48
- end
49
-
50
- # @see Telnyx::Models::FaxDeliveredWebhookEvent#payload
51
- class Payload < Telnyx::Internal::Type::BaseModel
52
- # @!attribute call_duration_secs
53
- # The duration of the call in seconds.
54
- #
55
- # @return [Integer, nil]
56
- optional :call_duration_secs, Integer
57
-
58
- # @!attribute client_state
59
- # State received from a command.
22
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent#data
23
+ class Data < Telnyx::Internal::Type::BaseModel
24
+ # @!attribute id
25
+ # Identifies the type of resource.
60
26
  #
61
27
  # @return [String, nil]
62
- optional :client_state, String
28
+ optional :id, String
63
29
 
64
- # @!attribute connection_id
65
- # The ID of the connection used to send the fax.
30
+ # @!attribute event_type
31
+ # The type of event being delivered.
66
32
  #
67
- # @return [String, nil]
68
- optional :connection_id, String
33
+ # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::EventType, nil]
34
+ optional :event_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::EventType }
69
35
 
70
- # @!attribute direction
71
- # The direction of the fax.
36
+ # @!attribute occurred_at
37
+ # ISO 8601 datetime of when the event occurred.
72
38
  #
73
- # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Direction, nil]
74
- optional :direction, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Payload::Direction }
39
+ # @return [Time, nil]
40
+ optional :occurred_at, Time
75
41
 
76
- # @!attribute fax_id
77
- # Identifies the fax.
42
+ # @!attribute payload
78
43
  #
79
- # @return [String, nil]
80
- optional :fax_id, String
44
+ # @return [Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload, nil]
45
+ optional :payload, -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload }
81
46
 
82
- # @!attribute from
83
- # The phone number, in E.164 format, the fax will be sent from.
47
+ # @!attribute record_type
48
+ # Identifies the type of the resource.
84
49
  #
85
- # @return [String, nil]
86
- optional :from, String
50
+ # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::RecordType, nil]
51
+ optional :record_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::RecordType }
87
52
 
88
- # @!attribute media_name
89
- # The media_name used for the fax's media. Must point to a file previously
90
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
91
- # and media_url/contents can't be submitted together.
53
+ # @!method initialize(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil)
54
+ # @param id [String] Identifies the type of resource.
92
55
  #
93
- # @return [String, nil]
94
- optional :media_name, String
95
-
96
- # @!attribute original_media_url
97
- # The original URL to the PDF used for the fax's media. If media_name was
98
- # supplied, this is omitted
56
+ # @param event_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::EventType] The type of event being delivered.
99
57
  #
100
- # @return [String, nil]
101
- optional :original_media_url, String
102
-
103
- # @!attribute page_count
104
- # Number of transferred pages
105
- #
106
- # @return [Integer, nil]
107
- optional :page_count, Integer
108
-
109
- # @!attribute status
110
- # The status of the fax.
58
+ # @param occurred_at [Time] ISO 8601 datetime of when the event occurred.
111
59
  #
112
- # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Status, nil]
113
- optional :status, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Payload::Status }
114
-
115
- # @!attribute to
116
- # The phone number, in E.164 format, the fax will be sent to or SIP URI
60
+ # @param payload [Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload]
117
61
  #
118
- # @return [String, nil]
119
- optional :to, String
62
+ # @param record_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::RecordType] Identifies the type of the resource.
120
63
 
121
- # @!attribute user_id
122
- # Identifier of the user to whom the fax belongs
64
+ # The type of event being delivered.
123
65
  #
124
- # @return [String, nil]
125
- optional :user_id, String
126
-
127
- # @!method initialize(call_duration_secs: nil, client_state: nil, connection_id: nil, direction: nil, fax_id: nil, from: nil, media_name: nil, original_media_url: nil, page_count: nil, status: nil, to: nil, user_id: nil)
128
- # Some parameter documentations has been truncated, see
129
- # {Telnyx::Models::FaxDeliveredWebhookEvent::Payload} for more details.
130
- #
131
- # @param call_duration_secs [Integer] The duration of the call in seconds.
132
- #
133
- # @param client_state [String] State received from a command.
134
- #
135
- # @param connection_id [String] The ID of the connection used to send the fax.
136
- #
137
- # @param direction [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Direction] The direction of the fax.
138
- #
139
- # @param fax_id [String] Identifies the fax.
140
- #
141
- # @param from [String] The phone number, in E.164 format, the fax will be sent from.
142
- #
143
- # @param media_name [String] The media_name used for the fax's media. Must point to a file previously uploade
144
- #
145
- # @param original_media_url [String] The original URL to the PDF used for the fax's media. If media_name was supplied
146
- #
147
- # @param page_count [Integer] Number of transferred pages
148
- #
149
- # @param status [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Status] The status of the fax.
150
- #
151
- # @param to [String] The phone number, in E.164 format, the fax will be sent to or SIP URI
152
- #
153
- # @param user_id [String] Identifier of the user to whom the fax belongs
154
-
155
- # The direction of the fax.
156
- #
157
- # @see Telnyx::Models::FaxDeliveredWebhookEvent::Payload#direction
158
- module Direction
66
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#event_type
67
+ module EventType
159
68
  extend Telnyx::Internal::Type::Enum
160
69
 
161
- INBOUND = :inbound
162
- OUTBOUND = :outbound
70
+ FAX_DELIVERED = :"fax.delivered"
163
71
 
164
72
  # @!method self.values
165
73
  # @return [Array<Symbol>]
166
74
  end
167
75
 
168
- # The status of the fax.
76
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#payload
77
+ class Payload < Telnyx::Internal::Type::BaseModel
78
+ # @!attribute call_duration_secs
79
+ # The duration of the call in seconds.
80
+ #
81
+ # @return [Integer, nil]
82
+ optional :call_duration_secs, Integer
83
+
84
+ # @!attribute client_state
85
+ # State received from a command.
86
+ #
87
+ # @return [String, nil]
88
+ optional :client_state, String
89
+
90
+ # @!attribute connection_id
91
+ # The ID of the connection used to send the fax.
92
+ #
93
+ # @return [String, nil]
94
+ optional :connection_id, String
95
+
96
+ # @!attribute direction
97
+ # The direction of the fax.
98
+ #
99
+ # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Direction, nil]
100
+ optional :direction, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload::Direction }
101
+
102
+ # @!attribute fax_id
103
+ # Identifies the fax.
104
+ #
105
+ # @return [String, nil]
106
+ optional :fax_id, String
107
+
108
+ # @!attribute from
109
+ # The phone number, in E.164 format, the fax will be sent from.
110
+ #
111
+ # @return [String, nil]
112
+ optional :from, String
113
+
114
+ # @!attribute media_name
115
+ # The media_name used for the fax's media. Must point to a file previously
116
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
117
+ # and media_url/contents can't be submitted together.
118
+ #
119
+ # @return [String, nil]
120
+ optional :media_name, String
121
+
122
+ # @!attribute original_media_url
123
+ # The original URL to the PDF used for the fax's media. If media_name was
124
+ # supplied, this is omitted
125
+ #
126
+ # @return [String, nil]
127
+ optional :original_media_url, String
128
+
129
+ # @!attribute page_count
130
+ # Number of transferred pages
131
+ #
132
+ # @return [Integer, nil]
133
+ optional :page_count, Integer
134
+
135
+ # @!attribute status
136
+ # The status of the fax.
137
+ #
138
+ # @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Status, nil]
139
+ optional :status, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload::Status }
140
+
141
+ # @!attribute to
142
+ # The phone number, in E.164 format, the fax will be sent to or SIP URI
143
+ #
144
+ # @return [String, nil]
145
+ optional :to, String
146
+
147
+ # @!attribute user_id
148
+ # Identifier of the user to whom the fax belongs
149
+ #
150
+ # @return [String, nil]
151
+ optional :user_id, String
152
+
153
+ # @!method initialize(call_duration_secs: nil, client_state: nil, connection_id: nil, direction: nil, fax_id: nil, from: nil, media_name: nil, original_media_url: nil, page_count: nil, status: nil, to: nil, user_id: nil)
154
+ # Some parameter documentations has been truncated, see
155
+ # {Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload} for more details.
156
+ #
157
+ # @param call_duration_secs [Integer] The duration of the call in seconds.
158
+ #
159
+ # @param client_state [String] State received from a command.
160
+ #
161
+ # @param connection_id [String] The ID of the connection used to send the fax.
162
+ #
163
+ # @param direction [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Direction] The direction of the fax.
164
+ #
165
+ # @param fax_id [String] Identifies the fax.
166
+ #
167
+ # @param from [String] The phone number, in E.164 format, the fax will be sent from.
168
+ #
169
+ # @param media_name [String] The media_name used for the fax's media. Must point to a file previously uploade
170
+ #
171
+ # @param original_media_url [String] The original URL to the PDF used for the fax's media. If media_name was supplied
172
+ #
173
+ # @param page_count [Integer] Number of transferred pages
174
+ #
175
+ # @param status [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Status] The status of the fax.
176
+ #
177
+ # @param to [String] The phone number, in E.164 format, the fax will be sent to or SIP URI
178
+ #
179
+ # @param user_id [String] Identifier of the user to whom the fax belongs
180
+
181
+ # The direction of the fax.
182
+ #
183
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload#direction
184
+ module Direction
185
+ extend Telnyx::Internal::Type::Enum
186
+
187
+ INBOUND = :inbound
188
+ OUTBOUND = :outbound
189
+
190
+ # @!method self.values
191
+ # @return [Array<Symbol>]
192
+ end
193
+
194
+ # The status of the fax.
195
+ #
196
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload#status
197
+ module Status
198
+ extend Telnyx::Internal::Type::Enum
199
+
200
+ DELIVERED = :delivered
201
+
202
+ # @!method self.values
203
+ # @return [Array<Symbol>]
204
+ end
205
+ end
206
+
207
+ # Identifies the type of the resource.
169
208
  #
170
- # @see Telnyx::Models::FaxDeliveredWebhookEvent::Payload#status
171
- module Status
209
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#record_type
210
+ module RecordType
172
211
  extend Telnyx::Internal::Type::Enum
173
212
 
174
- DELIVERED = :delivered
213
+ EVENT = :event
175
214
 
176
215
  # @!method self.values
177
216
  # @return [Array<Symbol>]
178
217
  end
179
218
  end
180
219
 
181
- # Identifies the type of the resource.
182
- #
183
- # @see Telnyx::Models::FaxDeliveredWebhookEvent#record_type
184
- module RecordType
185
- extend Telnyx::Internal::Type::Enum
220
+ # @see Telnyx::Models::FaxDeliveredWebhookEvent#meta
221
+ class Meta < Telnyx::Internal::Type::BaseModel
222
+ # @!attribute attempt
223
+ # The delivery attempt number.
224
+ #
225
+ # @return [Integer, nil]
226
+ optional :attempt, Integer
186
227
 
187
- EVENT = :event
228
+ # @!attribute delivered_to
229
+ # The URL the webhook was delivered to.
230
+ #
231
+ # @return [String, nil]
232
+ optional :delivered_to, String
188
233
 
189
- # @!method self.values
190
- # @return [Array<Symbol>]
234
+ # @!method initialize(attempt: nil, delivered_to: nil)
235
+ # Metadata about the webhook delivery.
236
+ #
237
+ # @param attempt [Integer] The delivery attempt number.
238
+ #
239
+ # @param delivered_to [String] The URL the webhook was delivered to.
191
240
  end
192
241
  end
193
242
  end