svix 1.26.0 → 1.28.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 137159e57b6b673d13577f4f6707cacb923cc9c31f00280487d5877073eec8b5
4
- data.tar.gz: a4a8cfbf51502fee0f60119fa61305c83286130295c75db822fd55f76c4fd082
3
+ metadata.gz: 19646ce466dd4ea958259793c083de007d46cf90d5bd6b177b879d66f960a318
4
+ data.tar.gz: b3eefc719892e052305e91a714f2c796c14d4ac875d1b798dac9c82065397209
5
5
  SHA512:
6
- metadata.gz: d511f01e9d2d071d878f859d3ebfc363158930c1f30b470a729d381087a12a7e55c61c47bf07c7a1394a24c102a52a9ac9ec1d45d34fe721287fba280478070b
7
- data.tar.gz: 23ef12bff4592bc625826d993852144052b9d9915aa9d3fa973a49527fe1a2d3583233ab169b11058a6363593647bf72e8d768482791b3bec417329d0f510182
6
+ metadata.gz: a9db009d71092664ff0bf35a6ca18ad9ac2cc589b43df8739525a76f0fa17e879d4fb55a88872b37264abe554360d16530fd10785f047a198d62b42896ff064b
7
+ data.tar.gz: de2ea5623dd139be5bc1ff6dce53e101c5bf6580dc5824b15aa35be01a786af6cd720d59aff498897c886680bcda01a16d9b6eea442e1ac66057152c8c3672f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.26.0)
4
+ svix (1.28.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -28,6 +28,8 @@ module Svix
28
28
 
29
29
  attr_accessor :response
30
30
 
31
+ attr_accessor :response_duration_ms
32
+
31
33
  attr_accessor :response_status_code
32
34
 
33
35
  attr_accessor :status
@@ -46,6 +48,7 @@ module Svix
46
48
  :'msg' => :'msg',
47
49
  :'msg_id' => :'msgId',
48
50
  :'response' => :'response',
51
+ :'response_duration_ms' => :'responseDurationMs',
49
52
  :'response_status_code' => :'responseStatusCode',
50
53
  :'status' => :'status',
51
54
  :'timestamp' => :'timestamp',
@@ -67,6 +70,7 @@ module Svix
67
70
  :'msg' => :'MessageOut',
68
71
  :'msg_id' => :'String',
69
72
  :'response' => :'String',
73
+ :'response_duration_ms' => :'Integer',
70
74
  :'response_status_code' => :'Integer',
71
75
  :'status' => :'MessageStatus',
72
76
  :'timestamp' => :'Time',
@@ -116,6 +120,10 @@ module Svix
116
120
  self.response = attributes[:'response']
117
121
  end
118
122
 
123
+ if attributes.key?(:'response_duration_ms')
124
+ self.response_duration_ms = attributes[:'response_duration_ms']
125
+ end
126
+
119
127
  if attributes.key?(:'response_status_code')
120
128
  self.response_status_code = attributes[:'response_status_code']
121
129
  end
@@ -157,6 +165,10 @@ module Svix
157
165
  invalid_properties.push('invalid value for "response", response cannot be nil.')
158
166
  end
159
167
 
168
+ if @response_duration_ms.nil?
169
+ invalid_properties.push('invalid value for "response_duration_ms", response_duration_ms cannot be nil.')
170
+ end
171
+
160
172
  if @response_status_code.nil?
161
173
  invalid_properties.push('invalid value for "response_status_code", response_status_code cannot be nil.')
162
174
  end
@@ -195,6 +207,7 @@ module Svix
195
207
  return false if @id.nil?
196
208
  return false if @msg_id.nil?
197
209
  return false if @response.nil?
210
+ return false if @response_duration_ms.nil?
198
211
  return false if @response_status_code.nil?
199
212
  return false if @status.nil?
200
213
  return false if @timestamp.nil?
@@ -233,6 +246,7 @@ module Svix
233
246
  msg == o.msg &&
234
247
  msg_id == o.msg_id &&
235
248
  response == o.response &&
249
+ response_duration_ms == o.response_duration_ms &&
236
250
  response_status_code == o.response_status_code &&
237
251
  status == o.status &&
238
252
  timestamp == o.timestamp &&
@@ -249,7 +263,7 @@ module Svix
249
263
  # Calculates hash code according to all attributes.
250
264
  # @return [Integer] Hash code
251
265
  def hash
252
- [endpoint_id, id, msg, msg_id, response, response_status_code, status, timestamp, trigger_type, url].hash
266
+ [endpoint_id, id, msg, msg_id, response, response_duration_ms, response_status_code, status, timestamp, trigger_type, url].hash
253
267
  end
254
268
 
255
269
  # Builds the object from hash
@@ -28,6 +28,8 @@ module Svix
28
28
 
29
29
  attr_accessor :response
30
30
 
31
+ attr_accessor :response_duration_ms
32
+
31
33
  attr_accessor :response_status_code
32
34
 
33
35
  attr_accessor :status
@@ -46,6 +48,7 @@ module Svix
46
48
  :'msg' => :'msg',
47
49
  :'msg_id' => :'msgId',
48
50
  :'response' => :'response',
51
+ :'response_duration_ms' => :'responseDurationMs',
49
52
  :'response_status_code' => :'responseStatusCode',
50
53
  :'status' => :'status',
51
54
  :'timestamp' => :'timestamp',
@@ -67,6 +70,7 @@ module Svix
67
70
  :'msg' => :'MessageOut',
68
71
  :'msg_id' => :'String',
69
72
  :'response' => :'String',
73
+ :'response_duration_ms' => :'Integer',
70
74
  :'response_status_code' => :'Integer',
71
75
  :'status' => :'MessageStatus',
72
76
  :'timestamp' => :'Time',
@@ -116,6 +120,10 @@ module Svix
116
120
  self.response = attributes[:'response']
117
121
  end
118
122
 
123
+ if attributes.key?(:'response_duration_ms')
124
+ self.response_duration_ms = attributes[:'response_duration_ms']
125
+ end
126
+
119
127
  if attributes.key?(:'response_status_code')
120
128
  self.response_status_code = attributes[:'response_status_code']
121
129
  end
@@ -157,6 +165,10 @@ module Svix
157
165
  invalid_properties.push('invalid value for "response", response cannot be nil.')
158
166
  end
159
167
 
168
+ if @response_duration_ms.nil?
169
+ invalid_properties.push('invalid value for "response_duration_ms", response_duration_ms cannot be nil.')
170
+ end
171
+
160
172
  if @response_status_code.nil?
161
173
  invalid_properties.push('invalid value for "response_status_code", response_status_code cannot be nil.')
162
174
  end
@@ -195,6 +207,7 @@ module Svix
195
207
  return false if @id.nil?
196
208
  return false if @msg_id.nil?
197
209
  return false if @response.nil?
210
+ return false if @response_duration_ms.nil?
198
211
  return false if @response_status_code.nil?
199
212
  return false if @status.nil?
200
213
  return false if @timestamp.nil?
@@ -233,6 +246,7 @@ module Svix
233
246
  msg == o.msg &&
234
247
  msg_id == o.msg_id &&
235
248
  response == o.response &&
249
+ response_duration_ms == o.response_duration_ms &&
236
250
  response_status_code == o.response_status_code &&
237
251
  status == o.status &&
238
252
  timestamp == o.timestamp &&
@@ -249,7 +263,7 @@ module Svix
249
263
  # Calculates hash code according to all attributes.
250
264
  # @return [Integer] Hash code
251
265
  def hash
252
- [endpoint_id, id, msg, msg_id, response, response_status_code, status, timestamp, trigger_type, url].hash
266
+ [endpoint_id, id, msg, msg_id, response, response_duration_ms, response_status_code, status, timestamp, trigger_type, url].hash
253
267
  end
254
268
 
255
269
  # 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 = "1.26.0"
4
+ VERSION = "1.28.0"
5
5
  end
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: 1.26.0
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2024-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus