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
@@ -8,326 +8,432 @@ module Telnyx
8
8
  T.any(Telnyx::FaxQueuedWebhookEvent, Telnyx::Internal::AnyHash)
9
9
  end
10
10
 
11
- # Identifies the type of resource.
12
- sig { returns(T.nilable(String)) }
13
- attr_reader :id
11
+ sig { returns(T.nilable(Telnyx::FaxQueuedWebhookEvent::Data)) }
12
+ attr_reader :data
14
13
 
15
- sig { params(id: String).void }
16
- attr_writer :id
14
+ sig { params(data: Telnyx::FaxQueuedWebhookEvent::Data::OrHash).void }
15
+ attr_writer :data
17
16
 
18
- # The type of event being delivered.
19
- sig do
20
- returns(
21
- T.nilable(Telnyx::FaxQueuedWebhookEvent::EventType::TaggedSymbol)
22
- )
23
- end
24
- attr_reader :event_type
25
-
26
- sig do
27
- params(
28
- event_type: Telnyx::FaxQueuedWebhookEvent::EventType::OrSymbol
29
- ).void
30
- end
31
- attr_writer :event_type
32
-
33
- sig { returns(T.nilable(Telnyx::FaxQueuedWebhookEvent::Payload)) }
34
- attr_reader :payload
17
+ # Metadata about the webhook delivery.
18
+ sig { returns(T.nilable(Telnyx::FaxQueuedWebhookEvent::Meta)) }
19
+ attr_reader :meta
35
20
 
36
- sig do
37
- params(payload: Telnyx::FaxQueuedWebhookEvent::Payload::OrHash).void
38
- end
39
- attr_writer :payload
40
-
41
- # Identifies the type of the resource.
42
- sig do
43
- returns(
44
- T.nilable(Telnyx::FaxQueuedWebhookEvent::RecordType::TaggedSymbol)
45
- )
46
- end
47
- attr_reader :record_type
48
-
49
- sig do
50
- params(
51
- record_type: Telnyx::FaxQueuedWebhookEvent::RecordType::OrSymbol
52
- ).void
53
- end
54
- attr_writer :record_type
21
+ sig { params(meta: Telnyx::FaxQueuedWebhookEvent::Meta::OrHash).void }
22
+ attr_writer :meta
55
23
 
56
24
  sig do
57
25
  params(
58
- id: String,
59
- event_type: Telnyx::FaxQueuedWebhookEvent::EventType::OrSymbol,
60
- payload: Telnyx::FaxQueuedWebhookEvent::Payload::OrHash,
61
- record_type: Telnyx::FaxQueuedWebhookEvent::RecordType::OrSymbol
26
+ data: Telnyx::FaxQueuedWebhookEvent::Data::OrHash,
27
+ meta: Telnyx::FaxQueuedWebhookEvent::Meta::OrHash
62
28
  ).returns(T.attached_class)
63
29
  end
64
30
  def self.new(
65
- # Identifies the type of resource.
66
- id: nil,
67
- # The type of event being delivered.
68
- event_type: nil,
69
- payload: nil,
70
- # Identifies the type of the resource.
71
- record_type: nil
31
+ data: nil,
32
+ # Metadata about the webhook delivery.
33
+ meta: nil
72
34
  )
73
35
  end
74
36
 
75
37
  sig do
76
38
  override.returns(
77
39
  {
78
- id: String,
79
- event_type: Telnyx::FaxQueuedWebhookEvent::EventType::TaggedSymbol,
80
- payload: Telnyx::FaxQueuedWebhookEvent::Payload,
81
- record_type: Telnyx::FaxQueuedWebhookEvent::RecordType::TaggedSymbol
40
+ data: Telnyx::FaxQueuedWebhookEvent::Data,
41
+ meta: Telnyx::FaxQueuedWebhookEvent::Meta
82
42
  }
83
43
  )
84
44
  end
85
45
  def to_hash
86
46
  end
87
47
 
88
- # The type of event being delivered.
89
- module EventType
90
- extend Telnyx::Internal::Type::Enum
91
-
92
- TaggedSymbol =
93
- T.type_alias do
94
- T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::EventType)
95
- end
96
- OrSymbol = T.type_alias { T.any(Symbol, String) }
97
-
98
- FAX_QUEUED =
99
- T.let(
100
- :"fax.queued",
101
- Telnyx::FaxQueuedWebhookEvent::EventType::TaggedSymbol
102
- )
103
-
104
- sig do
105
- override.returns(
106
- T::Array[Telnyx::FaxQueuedWebhookEvent::EventType::TaggedSymbol]
107
- )
108
- end
109
- def self.values
110
- end
111
- end
112
-
113
- class Payload < Telnyx::Internal::Type::BaseModel
48
+ class Data < Telnyx::Internal::Type::BaseModel
114
49
  OrHash =
115
50
  T.type_alias do
116
51
  T.any(
117
- Telnyx::FaxQueuedWebhookEvent::Payload,
52
+ Telnyx::FaxQueuedWebhookEvent::Data,
118
53
  Telnyx::Internal::AnyHash
119
54
  )
120
55
  end
121
56
 
122
- # State received from a command.
123
- sig { returns(T.nilable(String)) }
124
- attr_reader :client_state
125
-
126
- sig { params(client_state: String).void }
127
- attr_writer :client_state
128
-
129
- # The ID of the connection used to send the fax.
57
+ # Identifies the type of resource.
130
58
  sig { returns(T.nilable(String)) }
131
- attr_reader :connection_id
59
+ attr_reader :id
132
60
 
133
- sig { params(connection_id: String).void }
134
- attr_writer :connection_id
61
+ sig { params(id: String).void }
62
+ attr_writer :id
135
63
 
136
- # The direction of the fax.
64
+ # The type of event being delivered.
137
65
  sig do
138
66
  returns(
139
67
  T.nilable(
140
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::TaggedSymbol
68
+ Telnyx::FaxQueuedWebhookEvent::Data::EventType::TaggedSymbol
141
69
  )
142
70
  )
143
71
  end
144
- attr_reader :direction
72
+ attr_reader :event_type
145
73
 
146
74
  sig do
147
75
  params(
148
- direction:
149
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::OrSymbol
76
+ event_type: Telnyx::FaxQueuedWebhookEvent::Data::EventType::OrSymbol
150
77
  ).void
151
78
  end
152
- attr_writer :direction
153
-
154
- # Identifies the fax.
155
- sig { returns(T.nilable(String)) }
156
- attr_reader :fax_id
157
-
158
- sig { params(fax_id: String).void }
159
- attr_writer :fax_id
160
-
161
- # The phone number, in E.164 format, the fax will be sent from.
162
- sig { returns(T.nilable(String)) }
163
- attr_reader :from
79
+ attr_writer :event_type
164
80
 
165
- sig { params(from: String).void }
166
- attr_writer :from
81
+ # ISO 8601 datetime of when the event occurred.
82
+ sig { returns(T.nilable(Time)) }
83
+ attr_reader :occurred_at
167
84
 
168
- # The media_name used for the fax's media. Must point to a file previously
169
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
170
- # and media_url/contents can't be submitted together.
171
- sig { returns(T.nilable(String)) }
172
- attr_reader :media_name
173
-
174
- sig { params(media_name: String).void }
175
- attr_writer :media_name
85
+ sig { params(occurred_at: Time).void }
86
+ attr_writer :occurred_at
176
87
 
177
- # The original URL to the PDF used for the fax's media. If media_name was
178
- # supplied, this is omitted
179
- sig { returns(T.nilable(String)) }
180
- attr_reader :original_media_url
88
+ sig { returns(T.nilable(Telnyx::FaxQueuedWebhookEvent::Data::Payload)) }
89
+ attr_reader :payload
181
90
 
182
- sig { params(original_media_url: String).void }
183
- attr_writer :original_media_url
91
+ sig do
92
+ params(
93
+ payload: Telnyx::FaxQueuedWebhookEvent::Data::Payload::OrHash
94
+ ).void
95
+ end
96
+ attr_writer :payload
184
97
 
185
- # The status of the fax.
98
+ # Identifies the type of the resource.
186
99
  sig do
187
100
  returns(
188
101
  T.nilable(
189
- Telnyx::FaxQueuedWebhookEvent::Payload::Status::TaggedSymbol
102
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::TaggedSymbol
190
103
  )
191
104
  )
192
105
  end
193
- attr_reader :status
106
+ attr_reader :record_type
194
107
 
195
108
  sig do
196
109
  params(
197
- status: Telnyx::FaxQueuedWebhookEvent::Payload::Status::OrSymbol
110
+ record_type:
111
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::OrSymbol
198
112
  ).void
199
113
  end
200
- attr_writer :status
201
-
202
- # The phone number, in E.164 format, the fax will be sent to or SIP URI
203
- sig { returns(T.nilable(String)) }
204
- attr_reader :to
205
-
206
- sig { params(to: String).void }
207
- attr_writer :to
208
-
209
- # Identifier of the user to whom the fax belongs
210
- sig { returns(T.nilable(String)) }
211
- attr_reader :user_id
212
-
213
- sig { params(user_id: String).void }
214
- attr_writer :user_id
114
+ attr_writer :record_type
215
115
 
216
116
  sig do
217
117
  params(
218
- client_state: String,
219
- connection_id: String,
220
- direction:
221
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::OrSymbol,
222
- fax_id: String,
223
- from: String,
224
- media_name: String,
225
- original_media_url: String,
226
- status: Telnyx::FaxQueuedWebhookEvent::Payload::Status::OrSymbol,
227
- to: String,
228
- user_id: String
118
+ id: String,
119
+ event_type:
120
+ Telnyx::FaxQueuedWebhookEvent::Data::EventType::OrSymbol,
121
+ occurred_at: Time,
122
+ payload: Telnyx::FaxQueuedWebhookEvent::Data::Payload::OrHash,
123
+ record_type:
124
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::OrSymbol
229
125
  ).returns(T.attached_class)
230
126
  end
231
127
  def self.new(
128
+ # Identifies the type of resource.
129
+ id: nil,
130
+ # The type of event being delivered.
131
+ event_type: nil,
132
+ # ISO 8601 datetime of when the event occurred.
133
+ occurred_at: nil,
134
+ payload: nil,
135
+ # Identifies the type of the resource.
136
+ record_type: nil
137
+ )
138
+ end
139
+
140
+ sig do
141
+ override.returns(
142
+ {
143
+ id: String,
144
+ event_type:
145
+ Telnyx::FaxQueuedWebhookEvent::Data::EventType::TaggedSymbol,
146
+ occurred_at: Time,
147
+ payload: Telnyx::FaxQueuedWebhookEvent::Data::Payload,
148
+ record_type:
149
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::TaggedSymbol
150
+ }
151
+ )
152
+ end
153
+ def to_hash
154
+ end
155
+
156
+ # The type of event being delivered.
157
+ module EventType
158
+ extend Telnyx::Internal::Type::Enum
159
+
160
+ TaggedSymbol =
161
+ T.type_alias do
162
+ T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::Data::EventType)
163
+ end
164
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
165
+
166
+ FAX_QUEUED =
167
+ T.let(
168
+ :"fax.queued",
169
+ Telnyx::FaxQueuedWebhookEvent::Data::EventType::TaggedSymbol
170
+ )
171
+
172
+ sig do
173
+ override.returns(
174
+ T::Array[
175
+ Telnyx::FaxQueuedWebhookEvent::Data::EventType::TaggedSymbol
176
+ ]
177
+ )
178
+ end
179
+ def self.values
180
+ end
181
+ end
182
+
183
+ class Payload < Telnyx::Internal::Type::BaseModel
184
+ OrHash =
185
+ T.type_alias do
186
+ T.any(
187
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload,
188
+ Telnyx::Internal::AnyHash
189
+ )
190
+ end
191
+
232
192
  # State received from a command.
233
- client_state: nil,
193
+ sig { returns(T.nilable(String)) }
194
+ attr_reader :client_state
195
+
196
+ sig { params(client_state: String).void }
197
+ attr_writer :client_state
198
+
234
199
  # The ID of the connection used to send the fax.
235
- connection_id: nil,
200
+ sig { returns(T.nilable(String)) }
201
+ attr_reader :connection_id
202
+
203
+ sig { params(connection_id: String).void }
204
+ attr_writer :connection_id
205
+
236
206
  # The direction of the fax.
237
- direction: nil,
207
+ sig do
208
+ returns(
209
+ T.nilable(
210
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::TaggedSymbol
211
+ )
212
+ )
213
+ end
214
+ attr_reader :direction
215
+
216
+ sig do
217
+ params(
218
+ direction:
219
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::OrSymbol
220
+ ).void
221
+ end
222
+ attr_writer :direction
223
+
238
224
  # Identifies the fax.
239
- fax_id: nil,
225
+ sig { returns(T.nilable(String)) }
226
+ attr_reader :fax_id
227
+
228
+ sig { params(fax_id: String).void }
229
+ attr_writer :fax_id
230
+
240
231
  # The phone number, in E.164 format, the fax will be sent from.
241
- from: nil,
232
+ sig { returns(T.nilable(String)) }
233
+ attr_reader :from
234
+
235
+ sig { params(from: String).void }
236
+ attr_writer :from
237
+
242
238
  # The media_name used for the fax's media. Must point to a file previously
243
239
  # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
244
240
  # and media_url/contents can't be submitted together.
245
- media_name: nil,
241
+ sig { returns(T.nilable(String)) }
242
+ attr_reader :media_name
243
+
244
+ sig { params(media_name: String).void }
245
+ attr_writer :media_name
246
+
246
247
  # The original URL to the PDF used for the fax's media. If media_name was
247
248
  # supplied, this is omitted
248
- original_media_url: nil,
249
+ sig { returns(T.nilable(String)) }
250
+ attr_reader :original_media_url
251
+
252
+ sig { params(original_media_url: String).void }
253
+ attr_writer :original_media_url
254
+
249
255
  # The status of the fax.
250
- status: nil,
256
+ sig do
257
+ returns(
258
+ T.nilable(
259
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::TaggedSymbol
260
+ )
261
+ )
262
+ end
263
+ attr_reader :status
264
+
265
+ sig do
266
+ params(
267
+ status:
268
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::OrSymbol
269
+ ).void
270
+ end
271
+ attr_writer :status
272
+
251
273
  # The phone number, in E.164 format, the fax will be sent to or SIP URI
252
- to: nil,
274
+ sig { returns(T.nilable(String)) }
275
+ attr_reader :to
276
+
277
+ sig { params(to: String).void }
278
+ attr_writer :to
279
+
253
280
  # Identifier of the user to whom the fax belongs
254
- user_id: nil
255
- )
256
- end
281
+ sig { returns(T.nilable(String)) }
282
+ attr_reader :user_id
257
283
 
258
- sig do
259
- override.returns(
260
- {
284
+ sig { params(user_id: String).void }
285
+ attr_writer :user_id
286
+
287
+ sig do
288
+ params(
261
289
  client_state: String,
262
290
  connection_id: String,
263
291
  direction:
264
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::TaggedSymbol,
292
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::OrSymbol,
265
293
  fax_id: String,
266
294
  from: String,
267
295
  media_name: String,
268
296
  original_media_url: String,
269
297
  status:
270
- Telnyx::FaxQueuedWebhookEvent::Payload::Status::TaggedSymbol,
298
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::OrSymbol,
271
299
  to: String,
272
300
  user_id: String
273
- }
301
+ ).returns(T.attached_class)
302
+ end
303
+ def self.new(
304
+ # State received from a command.
305
+ client_state: nil,
306
+ # The ID of the connection used to send the fax.
307
+ connection_id: nil,
308
+ # The direction of the fax.
309
+ direction: nil,
310
+ # Identifies the fax.
311
+ fax_id: nil,
312
+ # The phone number, in E.164 format, the fax will be sent from.
313
+ from: nil,
314
+ # The media_name used for the fax's media. Must point to a file previously
315
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
316
+ # and media_url/contents can't be submitted together.
317
+ media_name: nil,
318
+ # The original URL to the PDF used for the fax's media. If media_name was
319
+ # supplied, this is omitted
320
+ original_media_url: nil,
321
+ # The status of the fax.
322
+ status: nil,
323
+ # The phone number, in E.164 format, the fax will be sent to or SIP URI
324
+ to: nil,
325
+ # Identifier of the user to whom the fax belongs
326
+ user_id: nil
274
327
  )
275
- end
276
- def to_hash
277
- end
278
-
279
- # The direction of the fax.
280
- module Direction
281
- extend Telnyx::Internal::Type::Enum
282
-
283
- TaggedSymbol =
284
- T.type_alias do
285
- T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::Payload::Direction)
286
- end
287
- OrSymbol = T.type_alias { T.any(Symbol, String) }
288
-
289
- INBOUND =
290
- T.let(
291
- :inbound,
292
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::TaggedSymbol
293
- )
294
- OUTBOUND =
295
- T.let(
296
- :outbound,
297
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::TaggedSymbol
298
- )
328
+ end
299
329
 
300
330
  sig do
301
331
  override.returns(
302
- T::Array[
303
- Telnyx::FaxQueuedWebhookEvent::Payload::Direction::TaggedSymbol
304
- ]
332
+ {
333
+ client_state: String,
334
+ connection_id: String,
335
+ direction:
336
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::TaggedSymbol,
337
+ fax_id: String,
338
+ from: String,
339
+ media_name: String,
340
+ original_media_url: String,
341
+ status:
342
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::TaggedSymbol,
343
+ to: String,
344
+ user_id: String
345
+ }
305
346
  )
306
347
  end
307
- def self.values
348
+ def to_hash
349
+ end
350
+
351
+ # The direction of the fax.
352
+ module Direction
353
+ extend Telnyx::Internal::Type::Enum
354
+
355
+ TaggedSymbol =
356
+ T.type_alias do
357
+ T.all(
358
+ Symbol,
359
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction
360
+ )
361
+ end
362
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
363
+
364
+ INBOUND =
365
+ T.let(
366
+ :inbound,
367
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::TaggedSymbol
368
+ )
369
+ OUTBOUND =
370
+ T.let(
371
+ :outbound,
372
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::TaggedSymbol
373
+ )
374
+
375
+ sig do
376
+ override.returns(
377
+ T::Array[
378
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Direction::TaggedSymbol
379
+ ]
380
+ )
381
+ end
382
+ def self.values
383
+ end
384
+ end
385
+
386
+ # The status of the fax.
387
+ module Status
388
+ extend Telnyx::Internal::Type::Enum
389
+
390
+ TaggedSymbol =
391
+ T.type_alias do
392
+ T.all(
393
+ Symbol,
394
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status
395
+ )
396
+ end
397
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
398
+
399
+ QUEUED =
400
+ T.let(
401
+ :queued,
402
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::TaggedSymbol
403
+ )
404
+
405
+ sig do
406
+ override.returns(
407
+ T::Array[
408
+ Telnyx::FaxQueuedWebhookEvent::Data::Payload::Status::TaggedSymbol
409
+ ]
410
+ )
411
+ end
412
+ def self.values
413
+ end
308
414
  end
309
415
  end
310
416
 
311
- # The status of the fax.
312
- module Status
417
+ # Identifies the type of the resource.
418
+ module RecordType
313
419
  extend Telnyx::Internal::Type::Enum
314
420
 
315
421
  TaggedSymbol =
316
422
  T.type_alias do
317
- T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::Payload::Status)
423
+ T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::Data::RecordType)
318
424
  end
319
425
  OrSymbol = T.type_alias { T.any(Symbol, String) }
320
426
 
321
- QUEUED =
427
+ EVENT =
322
428
  T.let(
323
- :queued,
324
- Telnyx::FaxQueuedWebhookEvent::Payload::Status::TaggedSymbol
429
+ :event,
430
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::TaggedSymbol
325
431
  )
326
432
 
327
433
  sig do
328
434
  override.returns(
329
435
  T::Array[
330
- Telnyx::FaxQueuedWebhookEvent::Payload::Status::TaggedSymbol
436
+ Telnyx::FaxQueuedWebhookEvent::Data::RecordType::TaggedSymbol
331
437
  ]
332
438
  )
333
439
  end
@@ -336,25 +442,45 @@ module Telnyx
336
442
  end
337
443
  end
338
444
 
339
- # Identifies the type of the resource.
340
- module RecordType
341
- extend Telnyx::Internal::Type::Enum
342
-
343
- TaggedSymbol =
445
+ class Meta < Telnyx::Internal::Type::BaseModel
446
+ OrHash =
344
447
  T.type_alias do
345
- T.all(Symbol, Telnyx::FaxQueuedWebhookEvent::RecordType)
448
+ T.any(
449
+ Telnyx::FaxQueuedWebhookEvent::Meta,
450
+ Telnyx::Internal::AnyHash
451
+ )
346
452
  end
347
- OrSymbol = T.type_alias { T.any(Symbol, String) }
348
453
 
349
- EVENT =
350
- T.let(:event, Telnyx::FaxQueuedWebhookEvent::RecordType::TaggedSymbol)
454
+ # The delivery attempt number.
455
+ sig { returns(T.nilable(Integer)) }
456
+ attr_reader :attempt
457
+
458
+ sig { params(attempt: Integer).void }
459
+ attr_writer :attempt
460
+
461
+ # The URL the webhook was delivered to.
462
+ sig { returns(T.nilable(String)) }
463
+ attr_reader :delivered_to
464
+
465
+ sig { params(delivered_to: String).void }
466
+ attr_writer :delivered_to
351
467
 
468
+ # Metadata about the webhook delivery.
352
469
  sig do
353
- override.returns(
354
- T::Array[Telnyx::FaxQueuedWebhookEvent::RecordType::TaggedSymbol]
470
+ params(attempt: Integer, delivered_to: String).returns(
471
+ T.attached_class
355
472
  )
356
473
  end
357
- def self.values
474
+ def self.new(
475
+ # The delivery attempt number.
476
+ attempt: nil,
477
+ # The URL the webhook was delivered to.
478
+ delivered_to: nil
479
+ )
480
+ end
481
+
482
+ sig { override.returns({ attempt: Integer, delivered_to: String }) }
483
+ def to_hash
358
484
  end
359
485
  end
360
486
  end