svix 0.45.0 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +62 -8
  4. data/lib/svix/api/application_api.rb +15 -0
  5. data/lib/svix/api/authentication_api.rb +6 -0
  6. data/lib/svix/api/endpoint_api.rb +39 -0
  7. data/lib/svix/api/environment_api.rb +6 -0
  8. data/lib/svix/api/environment_settings_api.rb +3 -0
  9. data/lib/svix/api/event_type_api.rb +18 -0
  10. data/lib/svix/api/health_api.rb +5 -0
  11. data/lib/svix/api/integration_api.rb +21 -0
  12. data/lib/svix/api/message_api.rb +26 -2
  13. data/lib/svix/api/message_attempt_api.rb +363 -4
  14. data/lib/svix/api/organization_api.rb +29 -29
  15. data/lib/svix/api/organization_settings_api.rb +6 -6
  16. data/lib/svix/api/statistics_api.rb +6 -0
  17. data/lib/svix/application_api.rb +5 -3
  18. data/lib/svix/authentication_api.rb +4 -4
  19. data/lib/svix/endpoint_api.rb +6 -6
  20. data/lib/svix/event_type_api.rb +2 -2
  21. data/lib/svix/integration_api.rb +4 -4
  22. data/lib/svix/message_api.rb +2 -2
  23. data/lib/svix/message_attempt_api.rb +13 -3
  24. data/lib/svix/models/export_organization_out.rb +3 -3
  25. data/lib/svix/models/import_organization_in.rb +3 -3
  26. data/lib/svix/models/list_response_endpoint_message_out.rb +13 -4
  27. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +13 -4
  28. data/lib/svix/models/list_response_message_attempt_out.rb +13 -4
  29. data/lib/svix/models/list_response_message_out.rb +13 -4
  30. data/lib/svix/models/message_attempt_endpoint_out.rb +29 -1
  31. data/lib/svix/models/message_attempt_exhausted_event_data.rb +1 -1
  32. data/lib/svix/models/message_attempt_failed_data.rb +251 -0
  33. data/lib/svix/models/message_attempt_failing_event.rb +269 -0
  34. data/lib/svix/models/message_attempt_failing_event_data.rb +310 -0
  35. data/lib/svix/models/message_attempt_out.rb +15 -1
  36. data/lib/svix/models/status_code_class.rb +41 -0
  37. data/lib/svix/models/webhook_types.rb +15 -1
  38. data/lib/svix/version.rb +1 -1
  39. data/lib/svix.rb +1 -0
  40. metadata +6 -2
@@ -0,0 +1,310 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
5
+
6
+ The version of the OpenAPI document: 1.4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ class MessageAttemptFailingEventData
18
+ attr_accessor :app_id
19
+
20
+ # Optional unique identifier for the application
21
+ attr_accessor :app_uid
22
+
23
+ attr_accessor :endpoint_id
24
+
25
+ attr_accessor :last_attempt
26
+
27
+ attr_accessor :msg_id
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'app_id' => :'appId',
33
+ :'app_uid' => :'appUid',
34
+ :'endpoint_id' => :'endpointId',
35
+ :'last_attempt' => :'lastAttempt',
36
+ :'msg_id' => :'msgId'
37
+ }
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'app_id' => :'String',
49
+ :'app_uid' => :'String',
50
+ :'endpoint_id' => :'String',
51
+ :'last_attempt' => :'MessageAttemptFailedData',
52
+ :'msg_id' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::MessageAttemptFailingEventData` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::MessageAttemptFailingEventData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'app_id')
78
+ self.app_id = attributes[:'app_id']
79
+ end
80
+
81
+ if attributes.key?(:'app_uid')
82
+ self.app_uid = attributes[:'app_uid']
83
+ end
84
+
85
+ if attributes.key?(:'endpoint_id')
86
+ self.endpoint_id = attributes[:'endpoint_id']
87
+ end
88
+
89
+ if attributes.key?(:'last_attempt')
90
+ self.last_attempt = attributes[:'last_attempt']
91
+ end
92
+
93
+ if attributes.key?(:'msg_id')
94
+ self.msg_id = attributes[:'msg_id']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ if @app_id.nil?
103
+ invalid_properties.push('invalid value for "app_id", app_id cannot be nil.')
104
+ end
105
+
106
+ if !@app_uid.nil? && @app_uid.to_s.length > 256
107
+ invalid_properties.push('invalid value for "app_uid", the character length must be smaller than or equal to 256.')
108
+ end
109
+
110
+ if !@app_uid.nil? && @app_uid.to_s.length < 1
111
+ invalid_properties.push('invalid value for "app_uid", the character length must be great than or equal to 1.')
112
+ end
113
+
114
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
115
+ if !@app_uid.nil? && @app_uid !~ pattern
116
+ invalid_properties.push("invalid value for \"app_uid\", must conform to the pattern #{pattern}.")
117
+ end
118
+
119
+ if @endpoint_id.nil?
120
+ invalid_properties.push('invalid value for "endpoint_id", endpoint_id cannot be nil.')
121
+ end
122
+
123
+ if @last_attempt.nil?
124
+ invalid_properties.push('invalid value for "last_attempt", last_attempt cannot be nil.')
125
+ end
126
+
127
+ if @msg_id.nil?
128
+ invalid_properties.push('invalid value for "msg_id", msg_id cannot be nil.')
129
+ end
130
+
131
+ invalid_properties
132
+ end
133
+
134
+ # Check to see if the all the properties in the model are valid
135
+ # @return true if the model is valid
136
+ def valid?
137
+ return false if @app_id.nil?
138
+ return false if !@app_uid.nil? && @app_uid.to_s.length > 256
139
+ return false if !@app_uid.nil? && @app_uid.to_s.length < 1
140
+ return false if !@app_uid.nil? && @app_uid !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
141
+ return false if @endpoint_id.nil?
142
+ return false if @last_attempt.nil?
143
+ return false if @msg_id.nil?
144
+ true
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] app_uid Value to be assigned
149
+ def app_uid=(app_uid)
150
+ if !app_uid.nil? && app_uid.to_s.length > 256
151
+ fail ArgumentError, 'invalid value for "app_uid", the character length must be smaller than or equal to 256.'
152
+ end
153
+
154
+ if !app_uid.nil? && app_uid.to_s.length < 1
155
+ fail ArgumentError, 'invalid value for "app_uid", the character length must be great than or equal to 1.'
156
+ end
157
+
158
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
159
+ if !app_uid.nil? && app_uid !~ pattern
160
+ fail ArgumentError, "invalid value for \"app_uid\", must conform to the pattern #{pattern}."
161
+ end
162
+
163
+ @app_uid = app_uid
164
+ end
165
+
166
+ # Checks equality by comparing each attribute.
167
+ # @param [Object] Object to be compared
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ app_id == o.app_id &&
172
+ app_uid == o.app_uid &&
173
+ endpoint_id == o.endpoint_id &&
174
+ last_attempt == o.last_attempt &&
175
+ msg_id == o.msg_id
176
+ end
177
+
178
+ # @see the `==` method
179
+ # @param [Object] Object to be compared
180
+ def eql?(o)
181
+ self == o
182
+ end
183
+
184
+ # Calculates hash code according to all attributes.
185
+ # @return [Integer] Hash code
186
+ def hash
187
+ [app_id, app_uid, endpoint_id, last_attempt, msg_id].hash
188
+ end
189
+
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def self.build_from_hash(attributes)
194
+ new.build_from_hash(attributes)
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def build_from_hash(attributes)
201
+ return nil unless attributes.is_a?(Hash)
202
+ self.class.openapi_types.each_pair do |key, type|
203
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
204
+ self.send("#{key}=", nil)
205
+ elsif type =~ /\AArray<(.*)>/i
206
+ # check to ensure the input is an array given that the attribute
207
+ # is documented as an array but the input is not
208
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
209
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
210
+ end
211
+ elsif !attributes[self.class.attribute_map[key]].nil?
212
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
213
+ end
214
+ end
215
+
216
+ self
217
+ end
218
+
219
+ # Deserializes the data based on type
220
+ # @param string type Data type
221
+ # @param string value Value to be deserialized
222
+ # @return [Object] Deserialized data
223
+ def _deserialize(type, value)
224
+ case type.to_sym
225
+ when :Time
226
+ Time.parse(value)
227
+ when :Date
228
+ Date.parse(value)
229
+ when :String
230
+ value.to_s
231
+ when :Integer
232
+ value.to_i
233
+ when :Float
234
+ value.to_f
235
+ when :Boolean
236
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
237
+ true
238
+ else
239
+ false
240
+ end
241
+ when :Object
242
+ # generic object (usually a Hash), return directly
243
+ value
244
+ when /\AArray<(?<inner_type>.+)>\z/
245
+ inner_type = Regexp.last_match[:inner_type]
246
+ value.map { |v| _deserialize(inner_type, v) }
247
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
248
+ k_type = Regexp.last_match[:k_type]
249
+ v_type = Regexp.last_match[:v_type]
250
+ {}.tap do |hash|
251
+ value.each do |k, v|
252
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
253
+ end
254
+ end
255
+ else # model
256
+ # models (e.g. Pet) or oneOf
257
+ klass = Svix.const_get(type)
258
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
259
+ end
260
+ end
261
+
262
+ # Returns the string representation of the object
263
+ # @return [String] String presentation of the object
264
+ def to_s
265
+ to_hash.to_s
266
+ end
267
+
268
+ # to_body is an alias to to_hash (backward compatibility)
269
+ # @return [Hash] Returns the object in the form of hash
270
+ def to_body
271
+ to_hash
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ # Outputs non-array value in the form of hash
291
+ # For object, use to_hash. Otherwise, just return the value
292
+ # @param [Object] value Any valid value
293
+ # @return [Hash] Returns the value in the form of hash
294
+ def _to_hash(value)
295
+ if value.is_a?(Array)
296
+ value.compact.map { |v| _to_hash(v) }
297
+ elsif value.is_a?(Hash)
298
+ {}.tap do |hash|
299
+ value.each { |k, v| hash[k] = _to_hash(v) }
300
+ end
301
+ elsif value.respond_to? :to_hash
302
+ value.to_hash
303
+ else
304
+ value
305
+ end
306
+ end
307
+
308
+ end
309
+
310
+ end
@@ -19,6 +19,8 @@ module Svix
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :msg_id
23
+
22
24
  attr_accessor :response
23
25
 
24
26
  attr_accessor :response_status_code
@@ -34,6 +36,7 @@ module Svix
34
36
  {
35
37
  :'endpoint_id' => :'endpointId',
36
38
  :'id' => :'id',
39
+ :'msg_id' => :'msgId',
37
40
  :'response' => :'response',
38
41
  :'response_status_code' => :'responseStatusCode',
39
42
  :'status' => :'status',
@@ -52,6 +55,7 @@ module Svix
52
55
  {
53
56
  :'endpoint_id' => :'String',
54
57
  :'id' => :'String',
58
+ :'msg_id' => :'String',
55
59
  :'response' => :'String',
56
60
  :'response_status_code' => :'Integer',
57
61
  :'status' => :'MessageStatus',
@@ -89,6 +93,10 @@ module Svix
89
93
  self.id = attributes[:'id']
90
94
  end
91
95
 
96
+ if attributes.key?(:'msg_id')
97
+ self.msg_id = attributes[:'msg_id']
98
+ end
99
+
92
100
  if attributes.key?(:'response')
93
101
  self.response = attributes[:'response']
94
102
  end
@@ -122,6 +130,10 @@ module Svix
122
130
  invalid_properties.push('invalid value for "id", id cannot be nil.')
123
131
  end
124
132
 
133
+ if @msg_id.nil?
134
+ invalid_properties.push('invalid value for "msg_id", msg_id cannot be nil.')
135
+ end
136
+
125
137
  if @response.nil?
126
138
  invalid_properties.push('invalid value for "response", response cannot be nil.')
127
139
  end
@@ -150,6 +162,7 @@ module Svix
150
162
  def valid?
151
163
  return false if @endpoint_id.nil?
152
164
  return false if @id.nil?
165
+ return false if @msg_id.nil?
153
166
  return false if @response.nil?
154
167
  return false if @response_status_code.nil?
155
168
  return false if @status.nil?
@@ -165,6 +178,7 @@ module Svix
165
178
  self.class == o.class &&
166
179
  endpoint_id == o.endpoint_id &&
167
180
  id == o.id &&
181
+ msg_id == o.msg_id &&
168
182
  response == o.response &&
169
183
  response_status_code == o.response_status_code &&
170
184
  status == o.status &&
@@ -181,7 +195,7 @@ module Svix
181
195
  # Calculates hash code according to all attributes.
182
196
  # @return [Integer] Hash code
183
197
  def hash
184
- [endpoint_id, id, response, response_status_code, status, timestamp, trigger_type].hash
198
+ [endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type].hash
185
199
  end
186
200
 
187
201
  # Builds the object from hash
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
5
+
6
+ The version of the OpenAPI document: 1.4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ class StatusCodeClass
18
+ CodeNone = 0.freeze
19
+ Code1xx = 100.freeze
20
+ Code2xx = 200.freeze
21
+ Code3xx = 300.freeze
22
+ Code4xx = 400.freeze
23
+ Code5xx = 500.freeze
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ constantValues = StatusCodeClass.constants.select { |c| StatusCodeClass::const_get(c) == value }
37
+ raise "Invalid ENUM value #{value} for class #StatusCodeClass" if constantValues.empty?
38
+ value
39
+ end
40
+ end
41
+ end
@@ -18,6 +18,8 @@ module Svix
18
18
  class WebhookTypes
19
19
  attr_accessor :a
20
20
 
21
+ attr_accessor :a1
22
+
21
23
  attr_accessor :b
22
24
 
23
25
  attr_accessor :c
@@ -30,6 +32,7 @@ module Svix
30
32
  def self.attribute_map
31
33
  {
32
34
  :'a' => :'a',
35
+ :'a1' => :'a1',
33
36
  :'b' => :'b',
34
37
  :'c' => :'c',
35
38
  :'d' => :'d',
@@ -46,6 +49,7 @@ module Svix
46
49
  def self.openapi_types
47
50
  {
48
51
  :'a' => :'EndpointDisabledEvent',
52
+ :'a1' => :'MessageAttemptFailingEvent',
49
53
  :'b' => :'EndpointCreatedEvent',
50
54
  :'c' => :'EndpointUpdatedEvent',
51
55
  :'d' => :'EndpointDeletedEvent',
@@ -78,6 +82,10 @@ module Svix
78
82
  self.a = attributes[:'a']
79
83
  end
80
84
 
85
+ if attributes.key?(:'a1')
86
+ self.a1 = attributes[:'a1']
87
+ end
88
+
81
89
  if attributes.key?(:'b')
82
90
  self.b = attributes[:'b']
83
91
  end
@@ -103,6 +111,10 @@ module Svix
103
111
  invalid_properties.push('invalid value for "a", a cannot be nil.')
104
112
  end
105
113
 
114
+ if @a1.nil?
115
+ invalid_properties.push('invalid value for "a1", a1 cannot be nil.')
116
+ end
117
+
106
118
  if @b.nil?
107
119
  invalid_properties.push('invalid value for "b", b cannot be nil.')
108
120
  end
@@ -126,6 +138,7 @@ module Svix
126
138
  # @return true if the model is valid
127
139
  def valid?
128
140
  return false if @a.nil?
141
+ return false if @a1.nil?
129
142
  return false if @b.nil?
130
143
  return false if @c.nil?
131
144
  return false if @d.nil?
@@ -139,6 +152,7 @@ module Svix
139
152
  return true if self.equal?(o)
140
153
  self.class == o.class &&
141
154
  a == o.a &&
155
+ a1 == o.a1 &&
142
156
  b == o.b &&
143
157
  c == o.c &&
144
158
  d == o.d &&
@@ -154,7 +168,7 @@ module Svix
154
168
  # Calculates hash code according to all attributes.
155
169
  # @return [Integer] Hash code
156
170
  def hash
157
- [a, b, c, d, e].hash
171
+ [a, a1, b, c, d, e].hash
158
172
  end
159
173
 
160
174
  # Builds the object from hash
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "0.45.0"
4
+ VERSION = "0.52.0"
5
5
  end
data/lib/svix.rb CHANGED
@@ -66,6 +66,7 @@ require "svix/models/message_status"
66
66
  require "svix/models/recover_in"
67
67
  require "svix/models/validation_error"
68
68
  require "svix/models/webhook_types"
69
+ require "svix/models/status_code_class"
69
70
 
70
71
  # Core
71
72
  require "svix/api_client"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -164,7 +164,10 @@ files:
164
164
  - lib/svix/models/message_attempt_endpoint_out.rb
165
165
  - lib/svix/models/message_attempt_exhausted_event.rb
166
166
  - lib/svix/models/message_attempt_exhausted_event_data.rb
167
+ - lib/svix/models/message_attempt_failed_data.rb
167
168
  - lib/svix/models/message_attempt_failed_event.rb
169
+ - lib/svix/models/message_attempt_failing_event.rb
170
+ - lib/svix/models/message_attempt_failing_event_data.rb
168
171
  - lib/svix/models/message_attempt_out.rb
169
172
  - lib/svix/models/message_attempt_trigger_type.rb
170
173
  - lib/svix/models/message_endpoint_out.rb
@@ -176,6 +179,7 @@ files:
176
179
  - lib/svix/models/settings_in.rb
177
180
  - lib/svix/models/settings_out.rb
178
181
  - lib/svix/models/statistics_period.rb
182
+ - lib/svix/models/status_code_class.rb
179
183
  - lib/svix/models/validation_error.rb
180
184
  - lib/svix/models/webhook_types.rb
181
185
  - lib/svix/svix.rb