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